isite 2026.1.2 → 2026.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/client-side/site_files/html/directive/i-control.html +1 -1
- package/apps/security/app.js +2 -1
- package/lib/email.js +2 -2
- package/lib/routing.js +34 -13
- package/lib/ws.js +1 -1
- package/object-options/lib/fn.js +517 -481
- package/package.json +3 -3
- package/push.bat +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="mb-3 {{class2}}">
|
|
2
2
|
<label for="{{id2}}" class="form-label"> <span class="red bold"> {{requird}} </span> {{label}}</label>
|
|
3
|
-
<input id="{{id2}}" ng-disabled="disabled" autofocus v="{{v}}" type="{{type}}" ng-model="ngModel" ng-change="ngChange()" ngKeydown="ngKeydown()" class="form-control" placeholder="{{placeholder}}" aria-label="{{label}}" />
|
|
3
|
+
<input id="{{id2}}" ng-disabled="disabled" autofocus v="{{v}}" type="{{type}}" ng-model="ngModel" ng-change="ngChange()" ngKeydown="ngKeydown()" class="form-control " placeholder="{{placeholder}}" aria-label="{{label}}" />
|
|
4
4
|
<div class="invalid-feedback"></div>
|
|
5
5
|
</div>
|
package/apps/security/app.js
CHANGED
|
@@ -32,7 +32,7 @@ module.exports = function init(site) {
|
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
site.get({
|
|
35
|
-
name: ['security
|
|
35
|
+
name: ['security/users'],
|
|
36
36
|
path: __dirname + '/site_files/html/index.html',
|
|
37
37
|
parser: 'html css js',
|
|
38
38
|
compress: !1,
|
|
@@ -273,6 +273,7 @@ module.exports = function init(site) {
|
|
|
273
273
|
res.json(response);
|
|
274
274
|
}
|
|
275
275
|
);
|
|
276
|
+
|
|
276
277
|
});
|
|
277
278
|
|
|
278
279
|
site.post('/api/user/logout', function (req, res) {
|
package/lib/email.js
CHANGED
package/lib/routing.js
CHANGED
|
@@ -444,6 +444,8 @@ module.exports = function init(____0) {
|
|
|
444
444
|
route.name = route.name.replace('//', '/');
|
|
445
445
|
route.nameRaw = route.nameRaw.replace('//', '/');
|
|
446
446
|
|
|
447
|
+
route.ipList = [];
|
|
448
|
+
|
|
447
449
|
let arr = route.name.split('/');
|
|
448
450
|
let arr0 = route.nameRaw.split('/');
|
|
449
451
|
|
|
@@ -491,7 +493,7 @@ module.exports = function init(____0) {
|
|
|
491
493
|
}
|
|
492
494
|
|
|
493
495
|
route.name = encodeURI(route.name);
|
|
494
|
-
let index = _0xrrxo.list.findIndex((rr) => rr.name == route.name && rr.method
|
|
496
|
+
let index = _0xrrxo.list.findIndex((rr) => rr.name == route.name && rr.method.like(route.method));
|
|
495
497
|
if (index === -1) {
|
|
496
498
|
_0xrrxo.list.push(route);
|
|
497
499
|
} else if (!route.overwrite) {
|
|
@@ -694,6 +696,7 @@ module.exports = function init(____0) {
|
|
|
694
696
|
req.host = req.headers['host'] || '';
|
|
695
697
|
req.origin = req.headers['origin'] || '';
|
|
696
698
|
req.referer = req.headers['referer'] || '';
|
|
699
|
+
req.title = req.url.replace('/', '').split('/').join(' - ') || '';
|
|
697
700
|
req.domain = '';
|
|
698
701
|
req.subDomain = '';
|
|
699
702
|
req.obj = {};
|
|
@@ -775,8 +778,8 @@ module.exports = function init(____0) {
|
|
|
775
778
|
res.cookies = res.cookie = req.cookies = req.cookie = ____0.cookie(req, res, ____0);
|
|
776
779
|
|
|
777
780
|
req.urlRaw = req.url;
|
|
778
|
-
req.urlParserRaw = ____0.
|
|
779
|
-
req.urlParser = ____0.
|
|
781
|
+
req.urlParserRaw = ____0.newURL(req.urlRaw);
|
|
782
|
+
req.urlParser = ____0.newURL(req.urlRaw.toLowerCase());
|
|
780
783
|
|
|
781
784
|
for (const key in req.urlParser.query) {
|
|
782
785
|
req.urlParser.query[key.toLowerCase()] = req.urlParser.query[key];
|
|
@@ -1280,21 +1283,39 @@ module.exports = function init(____0) {
|
|
|
1280
1283
|
}
|
|
1281
1284
|
|
|
1282
1285
|
req.route = _0xrrxo.list[findRouteIndex];
|
|
1286
|
+
if (req.route.limitPerIP && !req.headers.range) {
|
|
1287
|
+
if (!req.route.ipList) {
|
|
1288
|
+
req.route.ipList = [];
|
|
1289
|
+
}
|
|
1290
|
+
if (req.route.limitPerIP) {
|
|
1291
|
+
req.route.ipList.push(req.ip);
|
|
1292
|
+
}
|
|
1283
1293
|
|
|
1284
|
-
|
|
1285
|
-
|
|
1294
|
+
if (req.route.limitPerIP && req.route.ipList.filter((ip) => ip == req.ip).length > req.route.limitPerIP) {
|
|
1295
|
+
res.status(429).json({
|
|
1296
|
+
error: 'Too many requests from this IP',
|
|
1297
|
+
});
|
|
1298
|
+
sizeInBytes.log('Too many requests from this IP : ' + req.ip);
|
|
1299
|
+
return;
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1286
1302
|
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1303
|
+
if (req.route.map.length > 0) {
|
|
1304
|
+
req.urlParser.arr = req.urlParser.pathname.split('/');
|
|
1305
|
+
req.urlParserRaw.arr = req.urlParserRaw.pathname.split('/');
|
|
1306
|
+
for (let i = 0; i < req.route.map.length; i++) {
|
|
1307
|
+
let map = req.route.map[i];
|
|
1308
|
+
if (typeof req.urlParser.arr[map.index] === 'string') {
|
|
1309
|
+
try {
|
|
1310
|
+
req.params[map.name] = decodeURIComponent(req.urlParser.arr[map.index].replace(/\+/g, ' '));
|
|
1311
|
+
} catch (error) {
|
|
1312
|
+
req.params[map.name] = req.urlParser.arr[map.index].replace(/\+/g, ' ');
|
|
1313
|
+
}
|
|
1314
|
+
req.paramsRaw[map.name] = req.urlParserRaw.arr[map.index];
|
|
1294
1315
|
}
|
|
1295
|
-
req.paramsRaw[map.name] = req.urlParserRaw.arr[map.index];
|
|
1296
1316
|
}
|
|
1297
1317
|
}
|
|
1318
|
+
|
|
1298
1319
|
req.session = {
|
|
1299
1320
|
$save: () => {},
|
|
1300
1321
|
accessToken: 'SHARED',
|
package/lib/ws.js
CHANGED
|
@@ -62,7 +62,7 @@ module.exports = function init(____0) {
|
|
|
62
62
|
console.log('\n WS Server Ready \n')
|
|
63
63
|
____0.servers.forEach((server) => {
|
|
64
64
|
server.on('upgrade', function upgrade(request, socket, head) {
|
|
65
|
-
let pathname = ____0.
|
|
65
|
+
let pathname = ____0.newURL(request.url).pathname;
|
|
66
66
|
let index = ____0.ws.routeList.findIndex((route) => route.options.name == pathname);
|
|
67
67
|
if (index !== -1) {
|
|
68
68
|
____0.ws.server.handleUpgrade(request, socket, head, function done(ws) {
|
package/object-options/lib/fn.js
CHANGED
|
@@ -1,535 +1,571 @@
|
|
|
1
1
|
exports = module.exports = function init(____0) {
|
|
2
|
-
|
|
2
|
+
const fn = function () {};
|
|
3
|
+
|
|
4
|
+
____0.newURL = function (url, base = 'https://egytag.com') {
|
|
5
|
+
try {
|
|
6
|
+
let parser = new URL(url, base);
|
|
7
|
+
return {
|
|
8
|
+
protocol: parser.protocol,
|
|
9
|
+
slashes: true,
|
|
10
|
+
auth: `${parser.username}:${parser.password}`,
|
|
11
|
+
host: parser.host,
|
|
12
|
+
port: parser.port,
|
|
13
|
+
hostname: parser.hostname,
|
|
14
|
+
hash: parser.hash,
|
|
15
|
+
search: parser.search,
|
|
16
|
+
query: Object.fromEntries(parser.searchParams),
|
|
17
|
+
pathname: parser.pathname,
|
|
18
|
+
path: parser.pathname + parser.search,
|
|
19
|
+
href: parser.href,
|
|
20
|
+
};
|
|
21
|
+
} catch (e) {
|
|
22
|
+
return {
|
|
23
|
+
href: url,
|
|
24
|
+
origin: '',
|
|
25
|
+
protocol: '',
|
|
26
|
+
username: '',
|
|
27
|
+
password: '',
|
|
28
|
+
host: '',
|
|
29
|
+
hostname: '',
|
|
30
|
+
port: '',
|
|
31
|
+
pathname: url,
|
|
32
|
+
search: '',
|
|
33
|
+
searchParams: {},
|
|
34
|
+
hash: '',
|
|
35
|
+
query: {},
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
};
|
|
3
39
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
40
|
+
____0.requireFromString = function (code, filename, opts) {
|
|
41
|
+
if (typeof filename === 'object') {
|
|
42
|
+
opts = filename;
|
|
43
|
+
filename = undefined;
|
|
44
|
+
}
|
|
9
45
|
|
|
10
|
-
|
|
11
|
-
|
|
46
|
+
opts = opts || {};
|
|
47
|
+
filename = filename || '';
|
|
12
48
|
|
|
13
|
-
|
|
14
|
-
|
|
49
|
+
opts.appendPaths = opts.appendPaths || [];
|
|
50
|
+
opts.prependPaths = opts.prependPaths || [];
|
|
15
51
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
52
|
+
if (typeof code !== 'string') {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
19
55
|
|
|
20
|
-
|
|
56
|
+
let paths = ____0.Module._nodeModulePaths(____0.path.dirname(filename));
|
|
21
57
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
58
|
+
let parent = module.parent;
|
|
59
|
+
let m = new ____0.Module(filename, parent);
|
|
60
|
+
m.filename = filename;
|
|
61
|
+
m.paths = [].concat(opts.prependPaths).concat(paths).concat(opts.appendPaths);
|
|
62
|
+
m._compile(code, filename);
|
|
27
63
|
|
|
28
|
-
|
|
29
|
-
|
|
64
|
+
let exports = m.exports;
|
|
65
|
+
parent && parent.children && parent.children.splice(parent.children.indexOf(m), 1);
|
|
30
66
|
|
|
31
|
-
|
|
32
|
-
|
|
67
|
+
return exports;
|
|
68
|
+
};
|
|
33
69
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
70
|
+
fn.fetchURLContent = function (options, callback) {
|
|
71
|
+
if (typeof options == 'string') {
|
|
72
|
+
options = {
|
|
73
|
+
url: options,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
return ____0
|
|
77
|
+
|
|
78
|
+
.fetch(options.url, {
|
|
79
|
+
mode: 'cors',
|
|
80
|
+
method: 'get',
|
|
81
|
+
headers: {
|
|
82
|
+
'User-Agent': `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.${Date.now()} Safari/537.36`,
|
|
83
|
+
},
|
|
84
|
+
redirect: 'follow',
|
|
85
|
+
agent: function (_parsedURL) {
|
|
86
|
+
if (_parsedURL.protocol == 'http:') {
|
|
87
|
+
return new ____0.http.Agent({
|
|
88
|
+
keepAlive: true,
|
|
89
|
+
});
|
|
90
|
+
} else {
|
|
91
|
+
return new ____0.https.Agent({
|
|
92
|
+
keepAlive: true,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
})
|
|
97
|
+
.then((res) => {
|
|
98
|
+
if (callback) {
|
|
99
|
+
callback(res.text());
|
|
100
|
+
} else {
|
|
101
|
+
return res;
|
|
102
|
+
}
|
|
57
103
|
});
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
fn.get_RegExp = function (txt, flag = 'gium') {
|
|
107
|
+
try {
|
|
108
|
+
return new RegExp(txt, flag);
|
|
109
|
+
} catch (error) {
|
|
110
|
+
console.log(error);
|
|
111
|
+
return txt;
|
|
66
112
|
}
|
|
67
|
-
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
fn.get_RegExp = function (txt, flag = 'gium') {
|
|
71
|
-
try {
|
|
72
|
-
return new RegExp(txt, flag);
|
|
73
|
-
} catch (error) {
|
|
74
|
-
console.log(error);
|
|
75
|
-
return txt;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
fn.exe = function (app_path, args, callback) {
|
|
80
|
-
callback = callback || function () {};
|
|
81
|
-
var child = require('child_process').execFile;
|
|
82
|
-
var executablePath = app_path;
|
|
83
|
-
var parameters = args;
|
|
84
|
-
child(executablePath, parameters, function (err, data) {
|
|
85
|
-
callback(err, data);
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
fn.random = function (min, max) {
|
|
90
|
-
max = max + 1;
|
|
91
|
-
return Math.floor(Math.random() * (max - min) + min);
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
fn.guid = function () {
|
|
95
|
-
function s4() {
|
|
96
|
-
return Math.floor((1 + Math.random()) * 0x10000)
|
|
97
|
-
.toString(16)
|
|
98
|
-
.substring(1);
|
|
99
|
-
}
|
|
113
|
+
};
|
|
100
114
|
|
|
101
|
-
|
|
102
|
-
|
|
115
|
+
fn.exe = function (app_path, args, callback) {
|
|
116
|
+
callback = callback || function () {};
|
|
117
|
+
var child = require('child_process').execFile;
|
|
118
|
+
var executablePath = app_path;
|
|
119
|
+
var parameters = args;
|
|
120
|
+
child(executablePath, parameters, function (err, data) {
|
|
121
|
+
callback(err, data);
|
|
122
|
+
});
|
|
123
|
+
};
|
|
103
124
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
125
|
+
fn.random = function (min, max) {
|
|
126
|
+
max = max + 1;
|
|
127
|
+
return Math.floor(Math.random() * (max - min) + min);
|
|
128
|
+
};
|
|
107
129
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
130
|
+
fn.guid = function () {
|
|
131
|
+
function s4() {
|
|
132
|
+
return Math.floor((1 + Math.random()) * 0x10000)
|
|
133
|
+
.toString(16)
|
|
134
|
+
.substring(1);
|
|
135
|
+
}
|
|
111
136
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return {};
|
|
115
|
-
}
|
|
137
|
+
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
|
|
138
|
+
};
|
|
116
139
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
return obj;
|
|
121
|
-
};
|
|
122
|
-
____0._0xddxo = Date;
|
|
140
|
+
fn.isDate = function (date) {
|
|
141
|
+
return date && typeof date === 'string' && date.length === 24 && date.contains('-') && date.contains(':') && new Date(date) !== 'Invalid Date' && !isNaN(new Date(date)) ? !0 : !1;
|
|
142
|
+
};
|
|
123
143
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
fn.toMoney = function (_num, float = true) {
|
|
132
|
-
let n = 0;
|
|
133
|
-
if (_num) {
|
|
134
|
-
_num = _num.toFixed(2).split('.');
|
|
135
|
-
let n1 = _num[0];
|
|
136
|
-
let n2 = _num[1] || '00';
|
|
137
|
-
if (n2) {
|
|
138
|
-
let n3 = n2[0] || '0';
|
|
139
|
-
let n4 = n2[1] || '0';
|
|
140
|
-
if (n4 && parseInt(n4) > 5) {
|
|
141
|
-
n3 = parseInt(n3) + 1;
|
|
142
|
-
n3 = n3 * 10;
|
|
143
|
-
if (n3 == 100) {
|
|
144
|
-
n3 = 0;
|
|
145
|
-
_num[0] = parseInt(_num[0]) + 1;
|
|
146
|
-
_num[1] = '';
|
|
147
|
-
} else {
|
|
148
|
-
_num[1] = n3;
|
|
149
|
-
}
|
|
150
|
-
} else if (n4 && parseInt(n4) == 5) {
|
|
151
|
-
_num[1] = n2;
|
|
152
|
-
} else if (n4 && parseInt(n4) > 2) {
|
|
153
|
-
n4 = 5;
|
|
154
|
-
_num[1] = n3 + n4;
|
|
155
|
-
} else {
|
|
156
|
-
_num[1] = n3 + '0';
|
|
144
|
+
fn.typeOf = function type(elem) {
|
|
145
|
+
return Object.prototype.toString.call(elem).slice(8, -1);
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
fn.copy = function copy(obj) {
|
|
149
|
+
if (obj === undefined || obj === null) {
|
|
150
|
+
return {};
|
|
157
151
|
}
|
|
158
|
-
}
|
|
159
|
-
n = _num.join('.');
|
|
160
|
-
}
|
|
161
|
-
if (!float) {
|
|
162
|
-
if (n && n.endsWith('.')) {
|
|
163
|
-
n = n + '00';
|
|
164
|
-
}
|
|
165
|
-
return n;
|
|
166
|
-
} else {
|
|
167
|
-
return fn.toFloat(n);
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
152
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
fn.toFloat = function (_num) {
|
|
178
|
-
if (_num) {
|
|
179
|
-
return parseFloat(_num);
|
|
180
|
-
}
|
|
181
|
-
return 0;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
fn.getDate = function (_any) {
|
|
185
|
-
let d = _any ? new Date(_any) : new Date();
|
|
186
|
-
return new Date(Date.UTC(d.getFullYear(), d.getMonth(), d.getDate(), 12, 0, 0));
|
|
187
|
-
};
|
|
188
|
-
fn.toDateOnly = function (_any) {
|
|
189
|
-
let d = fn.toDateTime(_any);
|
|
190
|
-
return new Date(Date.UTC(d.getFullYear(), d.getMonth(), d.getDate(), 12, 0, 0));
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
fn.getDateTime = fn.toDateTime = function (_any) {
|
|
194
|
-
let d = _any ? new Date(_any) : new Date();
|
|
195
|
-
return new Date(Date.UTC(d.getFullYear(), d.getMonth(), d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds()));
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
fn.toDateX = function (_any) {
|
|
199
|
-
let d = fn.toDateTime(_any);
|
|
200
|
-
return d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate();
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
fn.toDateXT = function (_any) {
|
|
204
|
-
let d = fn.toDateTime(_any);
|
|
205
|
-
return d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
fn.toDateXF = function (_any) {
|
|
209
|
-
let d = fn.toDateTime(_any);
|
|
210
|
-
return d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
fn.toDateT = function (_any) {
|
|
214
|
-
return fn.toDateOnly(_any).getTime();
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
fn.toDateF = function (_any) {
|
|
218
|
-
return fn.toDateTime(_any).getTime();
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
fn.getExtension = function (filename) {
|
|
222
|
-
var i = filename.lastIndexOf('.');
|
|
223
|
-
return i < 0 ? '' : filename.substr(i);
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
fn.getContentType = function (path) {
|
|
227
|
-
if (typeof path === undefined) {
|
|
228
|
-
return null;
|
|
229
|
-
}
|
|
230
|
-
let ext = ____0.path.extname(path).replace('.', '');
|
|
231
|
-
return ____0.mimeTypes[ext] || 'application/' + ext;
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
fn.getFileEncode = function (path) {
|
|
235
|
-
path = path || '';
|
|
236
|
-
if (path.contains('.woff|.ttf|.svg|.otf|.png|.gif|.jpg|.ico|.bmp|.webp|.xls|.eot')) {
|
|
237
|
-
return 'binary';
|
|
238
|
-
}
|
|
239
|
-
return 'UTF8';
|
|
240
|
-
};
|
|
153
|
+
if (typeof obj === 'object') {
|
|
154
|
+
return Object.assign({}, obj);
|
|
155
|
+
}
|
|
156
|
+
return obj;
|
|
157
|
+
};
|
|
158
|
+
____0._0xddxo = Date;
|
|
241
159
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
let t = fn.typeOf(obj);
|
|
247
|
-
if (fn.typeOf(obj) == 'Object' || fn.typeOf(obj) == 'Function') {
|
|
248
|
-
let table = '<table class="table">';
|
|
249
|
-
for (let index = 0; index < Object.getOwnPropertyNames(obj).length; index++) {
|
|
250
|
-
let p = Object.getOwnPropertyNames(obj)[index];
|
|
251
|
-
table += '<tr>';
|
|
252
|
-
table += `<td> ${p} </td>`;
|
|
253
|
-
if (fn.typeOf(obj[p]) == 'Object' || fn.typeOf(obj[p]) == 'Array') {
|
|
254
|
-
table += `<td> ${fn.toHtmlTable(obj[p])} </td>`;
|
|
255
|
-
} else {
|
|
256
|
-
table += `<td> ${obj[p]} </td>`;
|
|
160
|
+
fn.toNumber = function (_num) {
|
|
161
|
+
if (_num) {
|
|
162
|
+
return parseFloat(parseFloat(_num).toFixed(3));
|
|
257
163
|
}
|
|
164
|
+
return 0;
|
|
165
|
+
};
|
|
258
166
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
167
|
+
fn.toMoney = function (_num, float = true) {
|
|
168
|
+
let n = 0;
|
|
169
|
+
if (_num) {
|
|
170
|
+
_num = _num.toFixed(2).split('.');
|
|
171
|
+
let n1 = _num[0];
|
|
172
|
+
let n2 = _num[1] || '00';
|
|
173
|
+
if (n2) {
|
|
174
|
+
let n3 = n2[0] || '0';
|
|
175
|
+
let n4 = n2[1] || '0';
|
|
176
|
+
if (n4 && parseInt(n4) > 5) {
|
|
177
|
+
n3 = parseInt(n3) + 1;
|
|
178
|
+
n3 = n3 * 10;
|
|
179
|
+
if (n3 == 100) {
|
|
180
|
+
n3 = 0;
|
|
181
|
+
_num[0] = parseInt(_num[0]) + 1;
|
|
182
|
+
_num[1] = '';
|
|
183
|
+
} else {
|
|
184
|
+
_num[1] = n3;
|
|
185
|
+
}
|
|
186
|
+
} else if (n4 && parseInt(n4) == 5) {
|
|
187
|
+
_num[1] = n2;
|
|
188
|
+
} else if (n4 && parseInt(n4) > 2) {
|
|
189
|
+
n4 = 5;
|
|
190
|
+
_num[1] = n3 + n4;
|
|
191
|
+
} else {
|
|
192
|
+
_num[1] = n3 + '0';
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
n = _num.join('.');
|
|
196
|
+
}
|
|
197
|
+
if (!float) {
|
|
198
|
+
if (n && n.endsWith('.')) {
|
|
199
|
+
n = n + '00';
|
|
200
|
+
}
|
|
201
|
+
return n;
|
|
268
202
|
} else {
|
|
269
|
-
|
|
203
|
+
return fn.toFloat(n);
|
|
270
204
|
}
|
|
271
|
-
|
|
272
|
-
table += '</table>';
|
|
273
|
-
return table;
|
|
274
|
-
}
|
|
275
|
-
return '';
|
|
276
|
-
};
|
|
205
|
+
};
|
|
277
206
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
207
|
+
fn.toInt = function (_num) {
|
|
208
|
+
if (_num) {
|
|
209
|
+
return parseInt(_num);
|
|
210
|
+
}
|
|
211
|
+
return 0;
|
|
212
|
+
};
|
|
213
|
+
fn.toFloat = function (_num) {
|
|
214
|
+
if (_num) {
|
|
215
|
+
return parseFloat(_num);
|
|
216
|
+
}
|
|
217
|
+
return 0;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
fn.getDate = function (_any) {
|
|
221
|
+
let d = _any ? new Date(_any) : new Date();
|
|
222
|
+
return new Date(Date.UTC(d.getFullYear(), d.getMonth(), d.getDate(), 12, 0, 0));
|
|
223
|
+
};
|
|
224
|
+
fn.toDateOnly = function (_any) {
|
|
225
|
+
let d = fn.toDateTime(_any);
|
|
226
|
+
return new Date(Date.UTC(d.getFullYear(), d.getMonth(), d.getDate(), 12, 0, 0));
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
fn.getDateTime = fn.toDateTime = function (_any) {
|
|
230
|
+
let d = _any ? new Date(_any) : new Date();
|
|
231
|
+
return new Date(Date.UTC(d.getFullYear(), d.getMonth(), d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds()));
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
fn.toDateX = function (_any) {
|
|
235
|
+
let d = fn.toDateTime(_any);
|
|
236
|
+
return d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate();
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
fn.toDateXT = function (_any) {
|
|
240
|
+
let d = fn.toDateTime(_any);
|
|
241
|
+
return d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
fn.toDateXF = function (_any) {
|
|
245
|
+
let d = fn.toDateTime(_any);
|
|
246
|
+
return d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
fn.toDateT = function (_any) {
|
|
250
|
+
return fn.toDateOnly(_any).getTime();
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
fn.toDateF = function (_any) {
|
|
254
|
+
return fn.toDateTime(_any).getTime();
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
fn.getExtension = function (filename) {
|
|
258
|
+
var i = filename.lastIndexOf('.');
|
|
259
|
+
return i < 0 ? '' : filename.substr(i);
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
fn.getContentType = function (path) {
|
|
263
|
+
if (typeof path === undefined) {
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
let ext = ____0.path.extname(path).replace('.', '');
|
|
267
|
+
return ____0.mimeTypes[ext] || 'application/' + ext;
|
|
268
|
+
};
|
|
282
269
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
270
|
+
fn.getFileEncode = function (path) {
|
|
271
|
+
path = path || '';
|
|
272
|
+
if (path.contains('.woff|.ttf|.svg|.otf|.png|.gif|.jpg|.ico|.bmp|.webp|.xls|.eot')) {
|
|
273
|
+
return 'binary';
|
|
274
|
+
}
|
|
275
|
+
return 'UTF8';
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
fn.toHtmlTable = function (obj) {
|
|
279
|
+
if (obj === undefined || obj === null) {
|
|
280
|
+
return '';
|
|
281
|
+
}
|
|
282
|
+
let t = fn.typeOf(obj);
|
|
283
|
+
if (fn.typeOf(obj) == 'Object' || fn.typeOf(obj) == 'Function') {
|
|
284
|
+
let table = '<table class="table">';
|
|
285
|
+
for (let index = 0; index < Object.getOwnPropertyNames(obj).length; index++) {
|
|
286
|
+
let p = Object.getOwnPropertyNames(obj)[index];
|
|
287
|
+
table += '<tr>';
|
|
288
|
+
table += `<td> ${p} </td>`;
|
|
289
|
+
if (fn.typeOf(obj[p]) == 'Object' || fn.typeOf(obj[p]) == 'Array') {
|
|
290
|
+
table += `<td> ${fn.toHtmlTable(obj[p])} </td>`;
|
|
291
|
+
} else {
|
|
292
|
+
table += `<td> ${obj[p]} </td>`;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
table += '</tr>';
|
|
294
296
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
+
table += '</table>';
|
|
298
|
+
return table;
|
|
299
|
+
} else if (fn.typeOf(obj) == 'Array') {
|
|
300
|
+
let table = '<table class="table">';
|
|
301
|
+
for (let i = 0; i < obj.length; i++) {
|
|
302
|
+
if (fn.typeOf(obj[i]) == 'Object' || fn.typeOf(obj[i]) == 'Array') {
|
|
303
|
+
table += `<tr><td>${fn.toHtmlTable(obj[i])}</td></tr>`;
|
|
304
|
+
} else {
|
|
305
|
+
table += `<tr><td>${obj[i]}</td></tr>`;
|
|
306
|
+
}
|
|
297
307
|
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
308
|
+
table += '</table>';
|
|
309
|
+
return table;
|
|
310
|
+
}
|
|
311
|
+
return '';
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
fn.objectDiff = function (obj1, obj2) {
|
|
315
|
+
if (obj1 === undefined || obj1 === null || obj2 === undefined || obj2 === null) {
|
|
316
|
+
return obj1;
|
|
307
317
|
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
|
|
319
|
+
if (____0.typeOf(obj1) === 'Object') {
|
|
320
|
+
let obj3 = {};
|
|
321
|
+
for (let index = 0; index < Object.getOwnPropertyNames(obj1).length; index++) {
|
|
322
|
+
let p = Object.getOwnPropertyNames(obj1)[index];
|
|
323
|
+
if (____0.typeOf(obj1[p]) === 'Object' || ____0.typeOf(obj1[p]) === 'Array') {
|
|
324
|
+
obj3[p] = fn.objectDiff(obj1[p], obj2[p]);
|
|
325
|
+
if (____0.typeOf(obj3[p]) === 'Array') {
|
|
326
|
+
for (let i2 = 0; i2 < obj3[p].length; i2++) {
|
|
327
|
+
if (obj3[p][i2] === null || obj3[p][i2] === undefined) {
|
|
328
|
+
obj3[p].splice(i2, 1);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
if (obj3[p].length === 0) {
|
|
332
|
+
delete obj3[p];
|
|
333
|
+
}
|
|
334
|
+
} else if (____0.typeOf(obj3[p]) === 'Object' && Object.getOwnPropertyNames(obj3[p]).length === 0) {
|
|
335
|
+
delete obj3[p];
|
|
336
|
+
} else if (obj3[p] === undefined || obj3[p] === null) {
|
|
337
|
+
delete obj3[p];
|
|
338
|
+
}
|
|
339
|
+
} else {
|
|
340
|
+
if (obj1[p] != obj2[p]) {
|
|
341
|
+
obj3[p] = obj1[p];
|
|
342
|
+
}
|
|
320
343
|
}
|
|
321
|
-
}
|
|
322
|
-
if (obj3[i].length === 0) {
|
|
323
|
-
delete obj3[i];
|
|
324
|
-
}
|
|
325
|
-
} else if (____0.typeOf(obj3[i]) === 'Object' && Object.getOwnPropertyNames(obj3[i]).length === 0) {
|
|
326
|
-
delete obj3[i];
|
|
327
|
-
} else if (obj3[i] === undefined || obj3[i] === null) {
|
|
328
|
-
delete obj3[i];
|
|
329
344
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
345
|
+
return obj3;
|
|
346
|
+
} else if (____0.typeOf(obj1) === 'Array') {
|
|
347
|
+
let obj3 = [];
|
|
348
|
+
if (____0.typeOf(obj2) === 'Array') {
|
|
349
|
+
for (let i = 0; i < obj1.length; i++) {
|
|
350
|
+
if (____0.typeOf(obj1[i]) === 'Object' || ____0.typeOf(obj1[i]) === 'Array') {
|
|
351
|
+
obj3.push(fn.objectDiff(obj1[i], obj2[i]));
|
|
352
|
+
if (____0.typeOf(obj3[i]) === 'Array') {
|
|
353
|
+
for (let i2 = 0; i2 < obj3[i].length; i2++) {
|
|
354
|
+
if (obj3[i][i2] === undefined || obj3[i][i2] === null) {
|
|
355
|
+
obj3[i].splice(i2, 1);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
if (obj3[i].length === 0) {
|
|
359
|
+
delete obj3[i];
|
|
360
|
+
}
|
|
361
|
+
} else if (____0.typeOf(obj3[i]) === 'Object' && Object.getOwnPropertyNames(obj3[i]).length === 0) {
|
|
362
|
+
delete obj3[i];
|
|
363
|
+
} else if (obj3[i] === undefined || obj3[i] === null) {
|
|
364
|
+
delete obj3[i];
|
|
365
|
+
}
|
|
366
|
+
} else {
|
|
367
|
+
if (obj1[i] !== undefined && obj1[i] !== null && obj1[i] != obj2[i]) {
|
|
368
|
+
obj3.push(obj1[i]);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
return obj3;
|
|
374
|
+
} else {
|
|
375
|
+
return obj1;
|
|
333
376
|
}
|
|
334
|
-
}
|
|
335
377
|
}
|
|
336
|
-
|
|
337
378
|
return obj3;
|
|
338
|
-
|
|
339
|
-
return obj1;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
return obj3;
|
|
343
|
-
};
|
|
379
|
+
};
|
|
344
380
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
381
|
+
fn.fromJson = (data, Default = {}) => {
|
|
382
|
+
try {
|
|
383
|
+
if (!data) {
|
|
384
|
+
return Default;
|
|
385
|
+
}
|
|
350
386
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
387
|
+
if (data && typeof data === 'string' && data != '') {
|
|
388
|
+
return JSON.parse(data);
|
|
389
|
+
}
|
|
354
390
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
391
|
+
if (typeof data === 'object') {
|
|
392
|
+
return data;
|
|
393
|
+
}
|
|
394
|
+
} catch (e) {
|
|
395
|
+
return Default;
|
|
396
|
+
}
|
|
361
397
|
|
|
362
|
-
|
|
363
|
-
|
|
398
|
+
return Default;
|
|
399
|
+
};
|
|
364
400
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
fn._0xpttxo = function () {
|
|
373
|
-
let ctt = new ____0._0xddxo();
|
|
374
|
-
let msg = ' !! ' + ____0.options.name + ' Alive Since : ' + ((ctt.getTime() - ____0._0xsttxo.getTime()) / 1000 / 60).toFixed(2).toString() + ' Minute !! ';
|
|
375
|
-
____0.const.lg(msg);
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
fn.$base64Letter = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
379
|
-
fn.$base64Numbers = [];
|
|
380
|
-
for (let $i = 11; $i < 99; $i++) {
|
|
381
|
-
if ($i % 10 !== 0 && $i % 11 !== 0) {
|
|
382
|
-
fn.$base64Numbers.push($i);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
401
|
+
fn.toJson = (obj) => {
|
|
402
|
+
if (obj === undefined || obj === null) {
|
|
403
|
+
return '';
|
|
404
|
+
}
|
|
405
|
+
return JSON.stringify(____0.removeRefObject(obj));
|
|
406
|
+
};
|
|
385
407
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
data = JSON.stringify(data);
|
|
392
|
-
}
|
|
393
|
-
return Buffer.from(data).toString('base64');
|
|
394
|
-
};
|
|
408
|
+
fn._0xpttxo = function () {
|
|
409
|
+
let ctt = new ____0._0xddxo();
|
|
410
|
+
let msg = ' !! ' + ____0.options.name + ' Alive Since : ' + ((ctt.getTime() - ____0._0xsttxo.getTime()) / 1000 / 60).toFixed(2).toString() + ' Minute !! ';
|
|
411
|
+
____0.const.lg(msg);
|
|
412
|
+
};
|
|
395
413
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
414
|
+
fn.$base64Letter = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
415
|
+
fn.$base64Numbers = [];
|
|
416
|
+
for (let $i = 11; $i < 99; $i++) {
|
|
417
|
+
if ($i % 10 !== 0 && $i % 11 !== 0) {
|
|
418
|
+
fn.$base64Numbers.push($i);
|
|
419
|
+
}
|
|
399
420
|
}
|
|
400
|
-
return Buffer.from(data, 'base64').toString();
|
|
401
|
-
};
|
|
402
421
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
422
|
+
fn.toBase64 = (data) => {
|
|
423
|
+
if (typeof data === undefined) {
|
|
424
|
+
return '';
|
|
425
|
+
}
|
|
426
|
+
if (typeof data === 'object') {
|
|
427
|
+
data = JSON.stringify(data);
|
|
428
|
+
}
|
|
429
|
+
return Buffer.from(data).toString('base64');
|
|
430
|
+
};
|
|
406
431
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
432
|
+
fn.fromBase64 = (data) => {
|
|
433
|
+
if (typeof data !== 'string') {
|
|
434
|
+
return '';
|
|
435
|
+
}
|
|
436
|
+
return Buffer.from(data, 'base64').toString();
|
|
437
|
+
};
|
|
411
438
|
|
|
412
|
-
|
|
413
|
-
|
|
439
|
+
fn.to123 = (data) => {
|
|
440
|
+
data = fn.toBase64(data);
|
|
441
|
+
let newData = '';
|
|
414
442
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
443
|
+
for (let i = 0; i < data.length; i++) {
|
|
444
|
+
let letter = data[i];
|
|
445
|
+
newData += fn.$base64Numbers[fn.$base64Letter.indexOf(letter)];
|
|
446
|
+
}
|
|
419
447
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
let num = data[i] + data[i + 1];
|
|
423
|
-
let index = fn.$base64Numbers.indexOf(parseInt(num));
|
|
424
|
-
newData += fn.$base64Letter[index];
|
|
425
|
-
i++;
|
|
426
|
-
}
|
|
427
|
-
newData = fn.fromBase64(newData);
|
|
448
|
+
return newData;
|
|
449
|
+
};
|
|
428
450
|
|
|
429
|
-
|
|
430
|
-
|
|
451
|
+
fn.from123 = (data) => {
|
|
452
|
+
if (!data) {
|
|
453
|
+
return '';
|
|
454
|
+
}
|
|
431
455
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
+
let newData = '';
|
|
457
|
+
for (let i = 0; i < data.length; i++) {
|
|
458
|
+
let num = data[i] + data[i + 1];
|
|
459
|
+
let index = fn.$base64Numbers.indexOf(parseInt(num));
|
|
460
|
+
newData += fn.$base64Letter[index];
|
|
461
|
+
i++;
|
|
462
|
+
}
|
|
463
|
+
newData = fn.fromBase64(newData);
|
|
464
|
+
|
|
465
|
+
return newData;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
____0.hide = ____0.hideObject = (data) => {
|
|
469
|
+
if (data === undefined) {
|
|
470
|
+
return '';
|
|
471
|
+
}
|
|
472
|
+
return fn.to123(data);
|
|
473
|
+
};
|
|
474
|
+
____0.ul =
|
|
475
|
+
____0.show =
|
|
476
|
+
____0.showObject =
|
|
477
|
+
(data) => {
|
|
478
|
+
return fn.fromJson(fn.from123(data));
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
____0.removeRefObject = function (obj) {
|
|
482
|
+
const seen = new Set();
|
|
483
|
+
const recurse = (obj) => {
|
|
484
|
+
seen.add(obj, true);
|
|
485
|
+
for (let [k, v] of Object.entries(obj)) {
|
|
486
|
+
if (k !== '_id') {
|
|
487
|
+
if (v && typeof v == 'object') {
|
|
488
|
+
if (seen.has(v)) {
|
|
489
|
+
delete obj[k];
|
|
490
|
+
} else {
|
|
491
|
+
recurse(v);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
456
495
|
}
|
|
457
|
-
|
|
496
|
+
return obj;
|
|
497
|
+
};
|
|
498
|
+
return recurse(obj);
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
____0.fn = fn;
|
|
502
|
+
____0.copy = fn.copy;
|
|
503
|
+
____0.toNumber = ____0.to_number = fn.toNumber;
|
|
504
|
+
____0.toInt = ____0.to_int = fn.toInt;
|
|
505
|
+
____0.toFloat = ____0.to_float = fn.toFloat;
|
|
506
|
+
|
|
507
|
+
____0.getDate = fn.getDate;
|
|
508
|
+
____0.toDateTime = ____0.getDateTime = fn.toDateTime;
|
|
509
|
+
____0.toDateOnly = ____0.toDate = fn.toDateOnly;
|
|
510
|
+
|
|
511
|
+
____0.toDateX = fn.toDateX;
|
|
512
|
+
____0.toDateXT = fn.toDateXT;
|
|
513
|
+
____0.toDateXF = fn.toDateXF;
|
|
514
|
+
____0.toDateT = fn.toDateT;
|
|
515
|
+
____0.toDateF = fn.toDateF;
|
|
516
|
+
|
|
517
|
+
____0.yy = function () {
|
|
518
|
+
return new ____0._0xddxo().getFullYear();
|
|
519
|
+
};
|
|
520
|
+
____0.mm = function () {
|
|
521
|
+
return new ____0._0xddxo().getMonth();
|
|
522
|
+
};
|
|
523
|
+
____0.dd = function () {
|
|
524
|
+
return new ____0._0xddxo().getDate();
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
____0.fromJson = ____0.fromJSON = fn.fromJson;
|
|
528
|
+
____0.toJson = ____0.toJSON = fn.toJson;
|
|
529
|
+
____0.from123 = ____0._x0f1xo = ____0.f1 = fn.from123;
|
|
530
|
+
____0.fromBase64 = fn.fromBase64;
|
|
531
|
+
____0.to123 = fn.to123;
|
|
532
|
+
____0.toBase64 = fn.toBase64;
|
|
533
|
+
____0.toMoney = fn.toMoney;
|
|
534
|
+
____0.getContentType = fn.getContentType;
|
|
535
|
+
____0.getFileEncode = fn.getFileEncode;
|
|
536
|
+
____0.typeof = ____0.typeOf = fn.typeOf;
|
|
537
|
+
____0.objectDiff = fn.objectDiff;
|
|
538
|
+
____0.toHtmlTable = fn.toHtmlTable;
|
|
539
|
+
____0.random = fn.random;
|
|
540
|
+
|
|
541
|
+
____0.exe = fn.exe;
|
|
542
|
+
____0.guid = fn.guid;
|
|
543
|
+
____0.getRegExp = ____0.get_RegExp = fn.get_RegExp;
|
|
544
|
+
____0.fetchURLContent = fn.fetchURLContent;
|
|
545
|
+
|
|
546
|
+
____0._0_car_0_ /* 4178525741786551413872654579465146593768 */ = function () {
|
|
547
|
+
____0._0_ar_0_ /* 413872654579465146593768 */ = ____0.storage('_db_ardb') ?? !0;
|
|
548
|
+
if (____0._0_ar_0_) {
|
|
549
|
+
____0.options._0xyyxo = ____0.storage('_db_ydb') || ____0.options._0xyyxo;
|
|
550
|
+
____0.options._0xmmxo = ____0.storage('_db_mdb') || ____0.options._0xmmxo;
|
|
551
|
+
____0.options.ct = new ____0._0xddxo(____0._x0f1xo(____0.options._0xyyxo), ____0._x0f1xo(____0.options._0xmmxo), 1)[____0._x0f1xo('427837753718576742319191')]();
|
|
552
|
+
____0._0_ar_0_ = new ____0._0xddxo()[____0._x0f1xo('427837753718576742319191')]() < ____0.options.ct;
|
|
553
|
+
____0.storage('_db_ydb', ____0.options._0xyyxo);
|
|
554
|
+
____0.storage('_db_mdb', ____0.options._0xmmxo);
|
|
555
|
+
____0.storage('_db_ardb', ____0._0_ar_0_);
|
|
458
556
|
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
____0.getDate = fn.getDate;
|
|
472
|
-
____0.toDateTime = ____0.getDateTime = fn.toDateTime;
|
|
473
|
-
____0.toDateOnly = ____0.toDate = fn.toDateOnly;
|
|
474
|
-
|
|
475
|
-
____0.toDateX = fn.toDateX;
|
|
476
|
-
____0.toDateXT = fn.toDateXT;
|
|
477
|
-
____0.toDateXF = fn.toDateXF;
|
|
478
|
-
____0.toDateT = fn.toDateT;
|
|
479
|
-
____0.toDateF = fn.toDateF;
|
|
480
|
-
|
|
481
|
-
____0.yy = function () {
|
|
482
|
-
return new ____0._0xddxo().getFullYear();
|
|
483
|
-
};
|
|
484
|
-
____0.mm = function () {
|
|
485
|
-
return new ____0._0xddxo().getMonth();
|
|
486
|
-
};
|
|
487
|
-
____0.dd = function () {
|
|
488
|
-
return new ____0._0xddxo().getDate();
|
|
489
|
-
};
|
|
490
|
-
|
|
491
|
-
____0.fromJson = ____0.fromJSON = fn.fromJson;
|
|
492
|
-
____0.toJson = ____0.toJSON = fn.toJson;
|
|
493
|
-
____0.from123 = ____0._x0f1xo = ____0.f1 = fn.from123;
|
|
494
|
-
____0.fromBase64 = fn.fromBase64;
|
|
495
|
-
____0.to123 = fn.to123;
|
|
496
|
-
____0.toBase64 = fn.toBase64;
|
|
497
|
-
____0.toMoney = fn.toMoney;
|
|
498
|
-
____0.getContentType = fn.getContentType;
|
|
499
|
-
____0.getFileEncode = fn.getFileEncode;
|
|
500
|
-
____0.typeof = ____0.typeOf = fn.typeOf;
|
|
501
|
-
____0.objectDiff = fn.objectDiff;
|
|
502
|
-
____0.toHtmlTable = fn.toHtmlTable;
|
|
503
|
-
____0.random = fn.random;
|
|
504
|
-
|
|
505
|
-
____0.exe = fn.exe;
|
|
506
|
-
____0.guid = fn.guid;
|
|
507
|
-
____0.getRegExp = ____0.get_RegExp = fn.get_RegExp;
|
|
508
|
-
____0.fetchURLContent = fn.fetchURLContent;
|
|
509
|
-
|
|
510
|
-
____0._0_car_0_ /* 4178525741786551413872654579465146593768 */ = function () {
|
|
511
|
-
____0._0_ar_0_ /* 413872654579465146593768 */ = ____0.storage('_db_ardb') ?? !0;
|
|
512
|
-
if (____0._0_ar_0_) {
|
|
513
|
-
____0.options._0xyyxo = ____0.storage('_db_ydb') || ____0.options._0xyyxo;
|
|
514
|
-
____0.options._0xmmxo = ____0.storage('_db_mdb') || ____0.options._0xmmxo;
|
|
515
|
-
____0.options.ct = new ____0._0xddxo(____0._x0f1xo(____0.options._0xyyxo), ____0._x0f1xo(____0.options._0xmmxo), 1)[____0._x0f1xo('427837753718576742319191')]();
|
|
516
|
-
____0._0_ar_0_ = new ____0._0xddxo()[____0._x0f1xo('427837753718576742319191')]() < ____0.options.ct;
|
|
517
|
-
____0.storage('_db_ydb', ____0.options._0xyyxo);
|
|
518
|
-
____0.storage('_db_mdb', ____0.options._0xmmxo);
|
|
519
|
-
____0.storage('_db_ardb', ____0._0_ar_0_);
|
|
520
|
-
}
|
|
521
|
-
____0.call(____0._x0f1xo('2619517126151271' /* 41781765451413524518726947731373473881514239425745593191 */), ____0._0_ar_0_);
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
____0.canRequire = function (name) {
|
|
525
|
-
try {
|
|
526
|
-
require(process.cwd() + '/node_modules/' + name);
|
|
527
|
-
return true;
|
|
528
|
-
} catch (e) {
|
|
529
|
-
console.log(e);
|
|
530
|
-
return false;
|
|
531
|
-
}
|
|
532
|
-
};
|
|
557
|
+
____0.call(____0._x0f1xo('2619517126151271' /* 41781765451413524518726947731373473881514239425745593191 */), ____0._0_ar_0_);
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
____0.canRequire = function (name) {
|
|
561
|
+
try {
|
|
562
|
+
require(process.cwd() + '/node_modules/' + name);
|
|
563
|
+
return true;
|
|
564
|
+
} catch (e) {
|
|
565
|
+
console.log(e);
|
|
566
|
+
return false;
|
|
567
|
+
}
|
|
568
|
+
};
|
|
533
569
|
|
|
534
|
-
|
|
570
|
+
return fn;
|
|
535
571
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isite",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.04.02",
|
|
4
4
|
"description": "Create High Level Multi-Language Web Site [Fast and Easy] ",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"mongodb": "^6.10.0",
|
|
47
47
|
"mv": "^2.1.1",
|
|
48
48
|
"node-fetch": "^3.3.2",
|
|
49
|
-
"node-telegram-bot-api": "^0.
|
|
50
|
-
"nodemailer": "^
|
|
49
|
+
"node-telegram-bot-api": "^0.67.0",
|
|
50
|
+
"nodemailer": "^8.0.5",
|
|
51
51
|
"pdf-lib": "^1.17.1",
|
|
52
52
|
"telegram": "^2.26.22",
|
|
53
53
|
"utf8": "^3.0.0",
|
package/push.bat
CHANGED