@hotmeshio/hotmesh 0.3.11 → 0.3.13
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/README.md +6 -8
- package/build/modules/key.js +1 -1
- package/build/modules/utils.d.ts +3 -2
- package/build/modules/utils.js +1 -1
- package/build/package.json +5 -5
- package/build/services/activities/activity.js +1 -1
- package/build/services/activities/await.js +1 -1
- package/build/services/activities/cycle.js +1 -1
- package/build/services/activities/hook.js +1 -1
- package/build/services/activities/index.js +1 -1
- package/build/services/activities/interrupt.js +1 -1
- package/build/services/activities/signal.js +1 -1
- package/build/services/activities/trigger.js +1 -1
- package/build/services/activities/worker.js +1 -1
- package/build/services/collator/index.js +1 -1
- package/build/services/compiler/deployer.js +1 -1
- package/build/services/compiler/index.js +1 -1
- package/build/services/compiler/validator.js +1 -1
- package/build/services/engine/index.js +1 -1
- package/build/services/exporter/index.js +1 -1
- package/build/services/mapper/index.js +1 -1
- package/build/services/meshdata/index.d.ts +4 -3
- package/build/services/meshdata/index.js +5 -3
- package/build/services/meshflow/client.d.ts +1 -0
- package/build/services/meshflow/client.js +18 -6
- package/build/services/meshflow/connection.d.ts +2 -2
- package/build/services/meshflow/connection.js +1 -1
- package/build/services/meshflow/exporter.js +1 -1
- package/build/services/meshflow/worker.d.ts +2 -1
- package/build/services/meshflow/worker.js +27 -16
- package/build/services/meshos/index.d.ts +2 -1
- package/build/services/meshos/index.js +8 -5
- package/build/services/pipe/functions/array.js +1 -1
- package/build/services/pipe/functions/bitwise.js +1 -1
- package/build/services/pipe/functions/conditional.js +1 -1
- package/build/services/pipe/functions/cron.js +1 -1
- package/build/services/pipe/functions/date.js +1 -1
- package/build/services/pipe/functions/index.js +1 -1
- package/build/services/pipe/functions/json.js +1 -1
- package/build/services/pipe/functions/logical.js +1 -1
- package/build/services/pipe/functions/math.js +1 -1
- package/build/services/pipe/functions/number.js +1 -1
- package/build/services/pipe/functions/object.js +1 -1
- package/build/services/pipe/functions/string.js +1 -1
- package/build/services/pipe/functions/symbol.js +1 -1
- package/build/services/pipe/functions/unary.js +1 -1
- package/build/services/pipe/index.js +1 -1
- package/build/services/quorum/index.js +1 -1
- package/build/services/reporter/index.js +1 -1
- package/build/services/router/index.js +1 -1
- package/build/services/search/factory.d.ts +2 -2
- package/build/services/search/factory.js +8 -4
- package/build/services/search/providers/postgres/postgres.d.ts +21 -0
- package/build/services/search/providers/postgres/postgres.js +1 -0
- package/build/services/search/providers/redis/ioredis.js +1 -1
- package/build/services/search/providers/redis/redis.js +1 -1
- package/build/services/serializer/index.js +1 -1
- package/build/services/store/providers/postgres/kvsql.d.ts +2 -1
- package/build/services/store/providers/postgres/kvsql.js +1 -1
- package/build/services/store/providers/postgres/postgres.d.ts +1 -1
- package/build/services/store/providers/postgres/postgres.js +1 -1
- package/build/services/store/providers/redis/_base.js +1 -1
- package/build/services/store/providers/redis/ioredis.js +1 -1
- package/build/services/store/providers/redis/redis.js +1 -1
- package/build/services/store/providers/store-initializable.js +1 -1
- package/build/services/stream/providers/nats/nats.js +1 -1
- package/build/services/stream/providers/postgres/postgres.js +1 -1
- package/build/services/stream/providers/redis/ioredis.js +1 -1
- package/build/services/stream/providers/redis/redis.js +1 -1
- package/build/services/stream/providers/stream-initializable.js +1 -1
- package/build/services/sub/providers/redis/ioredis.js +1 -1
- package/build/services/sub/providers/redis/redis.js +1 -1
- package/build/services/task/index.js +1 -1
- package/build/services/telemetry/index.js +1 -1
- package/build/services/worker/index.js +1 -1
- package/build/types/manifest.d.ts +12 -3
- package/build/types/meshflow.d.ts +2 -2
- package/build/types/postgres.d.ts +1 -0
- package/build/types/provider.d.ts +7 -0
- package/package.json +5 -5
- package/types/manifest.ts +12 -3
- package/types/meshflow.ts +2 -2
- package/types/postgres.ts +2 -0
- package/types/provider.ts +7 -0
|
@@ -8,6 +8,7 @@ export declare class ClientService {
|
|
|
8
8
|
constructor(config: ClientConfig);
|
|
9
9
|
getHotMeshClient: (workflowTopic: string | null, namespace?: string) => Promise<HotMesh>;
|
|
10
10
|
static createStream: (hotMeshClient: HotMesh, workflowTopic: string, namespace?: string) => Promise<void>;
|
|
11
|
+
hashOptions(): string;
|
|
11
12
|
verifyStream: (hotMeshClient: HotMesh, workflowTopic: string, namespace?: string) => Promise<void>;
|
|
12
13
|
search: (hotMeshClient: HotMesh, index: string, query: string[]) => Promise<string[]>;
|
|
13
14
|
workflow: ClientWorkflow;
|
|
@@ -13,7 +13,7 @@ const factory_1 = require("./schemas/factory");
|
|
|
13
13
|
class ClientService {
|
|
14
14
|
constructor(config) {
|
|
15
15
|
this.getHotMeshClient = async (workflowTopic, namespace) => {
|
|
16
|
-
const optionsHash =
|
|
16
|
+
const optionsHash = this.hashOptions();
|
|
17
17
|
const targetNS = namespace ?? factory_1.APP_ID;
|
|
18
18
|
const connectionNS = `${optionsHash}.${targetNS}`;
|
|
19
19
|
if (ClientService.instances.has(connectionNS)) {
|
|
@@ -21,14 +21,12 @@ class ClientService {
|
|
|
21
21
|
await this.verifyWorkflowActive(hotMeshClient, targetNS);
|
|
22
22
|
return hotMeshClient;
|
|
23
23
|
}
|
|
24
|
+
const connectionType = 'options' in this.connection ? 'connection' : 'connections';
|
|
24
25
|
const hotMeshClient = hotmesh_1.HotMesh.init({
|
|
25
26
|
appId: targetNS,
|
|
26
27
|
logLevel: enums_1.HMSH_LOGLEVEL,
|
|
27
28
|
engine: {
|
|
28
|
-
|
|
29
|
-
class: this.connection.class,
|
|
30
|
-
options: this.connection.options,
|
|
31
|
-
},
|
|
29
|
+
[connectionType]: this.connection,
|
|
32
30
|
},
|
|
33
31
|
});
|
|
34
32
|
ClientService.instances.set(connectionNS, hotMeshClient);
|
|
@@ -36,7 +34,7 @@ class ClientService {
|
|
|
36
34
|
return hotMeshClient;
|
|
37
35
|
};
|
|
38
36
|
this.verifyStream = async (hotMeshClient, workflowTopic, namespace) => {
|
|
39
|
-
const optionsHash =
|
|
37
|
+
const optionsHash = this.hashOptions();
|
|
40
38
|
const targetNS = namespace ?? factory_1.APP_ID;
|
|
41
39
|
const targetTopic = `${optionsHash}.${targetNS}.${workflowTopic}`;
|
|
42
40
|
if (!ClientService.topics.includes(targetTopic)) {
|
|
@@ -123,6 +121,20 @@ class ClientService {
|
|
|
123
121
|
};
|
|
124
122
|
this.connection = config.connection;
|
|
125
123
|
}
|
|
124
|
+
hashOptions() {
|
|
125
|
+
if ('options' in this.connection) {
|
|
126
|
+
return (0, utils_1.hashOptions)(this.connection.options);
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
const response = [];
|
|
130
|
+
for (let p in this.connection) {
|
|
131
|
+
if (!response.includes(this.connection[p])) {
|
|
132
|
+
response.push((0, utils_1.hashOptions)(this.connection[p]));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return response.join('');
|
|
136
|
+
}
|
|
137
|
+
}
|
|
126
138
|
async deployAndActivate(namespace = factory_1.APP_ID, version = factory_1.APP_VERSION) {
|
|
127
139
|
if (isNaN(Number(version))) {
|
|
128
140
|
throw new Error('Invalid version number');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Connection } from '../../types/meshflow';
|
|
2
|
-
import { ProviderConfig } from '../../types/provider';
|
|
2
|
+
import { ProviderConfig, ProvidersConfig } from '../../types/provider';
|
|
3
3
|
export declare class ConnectionService {
|
|
4
4
|
constructor();
|
|
5
|
-
static connect(config: ProviderConfig): Promise<Connection>;
|
|
5
|
+
static connect(config: ProviderConfig | ProvidersConfig): Promise<Connection>;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(_0x42d507,_0x30e1b7){const _0x35f27b=_0x22cb,_0x175004=_0x42d507();while(!![]){try{const _0x42e8c0=parseInt(_0x35f27b(0x1ca))/0x1+-parseInt(_0x35f27b(0x1cc))/0x2+parseInt(_0x35f27b(0x1d0))/0x3*(parseInt(_0x35f27b(0x1d1))/0x4)+-parseInt(_0x35f27b(0x1cb))/0x5*(parseInt(_0x35f27b(0x1cf))/0x6)+-parseInt(_0x35f27b(0x1c9))/0x7+-parseInt(_0x35f27b(0x1ce))/0x8+-parseInt(_0x35f27b(0x1cd))/0x9*(-parseInt(_0x35f27b(0x1c8))/0xa);if(_0x42e8c0===_0x30e1b7)break;else _0x175004['push'](_0x175004['shift']());}catch(_0x4d2f79){_0x175004['push'](_0x175004['shift']());}}}(_0x11e6,0x52511));function _0x22cb(_0x48c616,_0x44d957){const _0x11e661=_0x11e6();return _0x22cb=function(_0x22cbff,_0x3624c9){_0x22cbff=_0x22cbff-0x1c8;let _0x560345=_0x11e661[_0x22cbff];return _0x560345;},_0x22cb(_0x48c616,_0x44d957);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ExporterService']=void 0x0;function _0x11e6(){const _0x3d0352=['16022CXtvJZ','217715HNTwVv','842338etEZnb','10501479LhDTuS','3443896bXjnNO','6Lbnhfj','779169IFUYhB','4RLqUUe','10AfhgOf','1471456wTmWhV'];_0x11e6=function(){return _0x3d0352;};return _0x11e6();}const utils_1=require('../../modules/utils'),serializer_1=require('../serializer');class ExporterService{constructor(_0xc6c908,_0x2e71f7,_0x41d9ef){this['appId']=_0xc6c908,this['logger']=_0x41d9ef,this['store']=_0x2e71f7;}async['export'](_0x4d7c06,_0x542280={}){if(!ExporterService['symbols']['has'](this['appId'])){const _0x1bd4b9=this['store']['getAllSymbols']();ExporterService['symbols']['set'](this['appId'],await _0x1bd4b9);}const _0x171ab5=await this['store']['getRaw'](_0x4d7c06),_0xd231aa=this['inflate'](_0x171ab5,_0x542280);return _0xd231aa;}['inflate'](_0x4e1ded,_0x17bd32){const _0x3c0a07=[],_0x296891={},_0x302f03={},_0x5147bf={},_0x20a278=/^([a-zA-Z]{3}),(\d+(?:,\d+)*)/;return Object['entries'](_0x4e1ded)['forEach'](([_0x1f27b3,_0x4d1316])=>{const _0x4c7c16=_0x1f27b3['match'](_0x20a278);if(_0x4c7c16)this['inflateTransition'](_0x4c7c16,_0x4d1316,_0x5147bf);else{if(_0x1f27b3['startsWith']('_'))_0x302f03[_0x1f27b3['substring'](0x1)]=_0x4d1316;else{if(_0x1f27b3['startsWith']('-')){const _0x472cee=this['keyToObject'](_0x1f27b3);_0x3c0a07['push']({..._0x472cee,'key':_0x1f27b3,'value':this['resolveValue'](_0x4d1316,_0x17bd32['values'])});}else _0x1f27b3['length']===0x3&&(_0x296891[this['inflateKey'](_0x1f27b3)]=serializer_1['SerializerService']['fromString'](_0x4d1316));}}}),this['filterFields']({'data':(0x0,utils_1['restoreHierarchy'])(_0x302f03),'state':Object['entries']((0x0,utils_1['restoreHierarchy'])(_0x296891))[0x0][0x1],'status':parseInt(_0x4e1ded[':'],0xa),'timeline':this['sortParts'](_0x3c0a07),'transitions':this['sortEntriesByCreated'](_0x5147bf)},_0x17bd32['block'],_0x17bd32['allow']);}['resolveValue'](_0x259775,_0x41fb8d){const _0x319c8e=serializer_1['SerializerService']['fromString'](_0x259775);if(_0x41fb8d!==![])return _0x319c8e;return _0x319c8e&&typeof _0x319c8e==='object'&&('data'in _0x319c8e&&(_0x319c8e['data']={}),'$error'in _0x319c8e&&(_0x319c8e['$error']={})),_0x319c8e;}['inflateKey'](_0x2d187c){const _0x569f43=ExporterService['symbols']['get'](this['appId']);if(_0x2d187c in _0x569f43){const _0xfa0681=_0x569f43[_0x2d187c],_0x3766e8=_0xfa0681['split']('/');return _0x3766e8['join']('/');}return _0x2d187c;}['filterFields'](_0x3964c4,_0x7d05fe=[],_0x2f43cc=[]){let _0x345af8={};return _0x2f43cc&&_0x2f43cc['length']>0x0?_0x2f43cc['forEach'](_0x5977a1=>{_0x5977a1 in _0x3964c4&&(_0x345af8[_0x5977a1]=_0x3964c4[_0x5977a1]);}):_0x345af8={..._0x3964c4},_0x7d05fe&&_0x7d05fe['length']>0x0&&_0x7d05fe['forEach'](_0x397e53=>{_0x397e53 in _0x345af8&&delete _0x345af8[_0x397e53];}),_0x345af8;}['inflateTransition'](_0x58ba43,_0x101f24,_0x2cc9c6){const [_0xd7439d,_0x1cb7d6,_0x419725]=_0x58ba43,_0x567618=this['inflateKey'](_0x1cb7d6),_0x2b3e3c=_0x567618['split']('/'),_0x105a16=_0x2b3e3c[0x0],_0x842de9=_0x567618['endsWith']('/output/metadata/ac'),_0x1cce9f=_0x567618['endsWith']('/output/metadata/au');if(_0x842de9||_0x1cce9f){const _0x4dec8f=_0x105a16+','+_0x419725,_0x42f17a=_0x2cc9c6[_0x4dec8f];!_0x42f17a?_0x2cc9c6[_0x4dec8f]={'activity':_0x105a16,'dimensions':_0x419725,'created':_0x842de9?_0x101f24:null,'updated':_0x1cce9f?_0x101f24:null}:_0x42f17a[_0x842de9?'created':'updated']=_0x101f24;}}['sortEntriesByCreated'](_0x12a01e){const _0x289423=Object['values'](_0x12a01e);return _0x289423['sort']((_0x43dfea,_0x11a88f)=>{return(_0x43dfea['created']||_0x43dfea['updated'])['localeCompare'](_0x11a88f['created']||_0x11a88f['updated']);}),_0x289423;}['keyToObject'](_0x7a0bd9){function _0x2c85d3(_0x26cf46){const _0xbcf0ce=_0x26cf46['split'](',');if(_0xbcf0ce['length']>0x1)return _0xbcf0ce['shift'](),_0xbcf0ce['join'](',');}const _0x3e00bb=_0x7a0bd9['split']('-');return _0x3e00bb['length']===0x4?{'index':parseInt(_0x3e00bb[0x2],0xa),'dimension':_0x2c85d3(_0x3e00bb[0x1])}:{'index':parseInt(_0x3e00bb[0x2],0xa),'secondary':parseInt(_0x3e00bb[0x3],0xa),'dimension':_0x2c85d3(_0x3e00bb[0x1])};}['sortParts'](_0x600324){return _0x600324['sort']((_0x225336,_0x3cf9bd)=>{const {dimension:_0x3cbe3c,index:_0x314730,secondary:_0x38b9b4}=_0x225336,{dimension:_0x474e17,index:_0x155800,secondary:_0x534549}=_0x3cf9bd;if(_0x3cbe3c===undefined&&_0x474e17!==undefined)return-0x1;if(_0x3cbe3c!==undefined&&_0x474e17===undefined)return 0x1;if(_0x3cbe3c!==undefined&&_0x474e17!==undefined){if(_0x3cbe3c<_0x474e17)return-0x1;if(_0x3cbe3c>_0x474e17)return 0x1;}if(_0x314730<_0x155800)return-0x1;if(_0x314730>_0x155800)return 0x1;if(_0x38b9b4===undefined&&_0x534549!==undefined)return-0x1;if(_0x38b9b4!==undefined&&_0x534549===undefined)return 0x1;if(_0x38b9b4!==undefined&&_0x534549!==undefined){if(_0x38b9b4<_0x534549)return-0x1;if(_0x38b9b4>_0x534549)return 0x1;}return 0x0;});}}exports['ExporterService']=ExporterService,ExporterService['symbols']=new Map();
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { HotMesh } from '../hotmesh';
|
|
2
|
-
import { Registry, WorkerConfig, WorkerOptions } from '../../types/meshflow';
|
|
2
|
+
import { Connection, Registry, WorkerConfig, WorkerOptions } from '../../types/meshflow';
|
|
3
3
|
export declare class WorkerService {
|
|
4
4
|
static activityRegistry: Registry;
|
|
5
5
|
static instances: Map<string, HotMesh | Promise<HotMesh>>;
|
|
6
6
|
workflowRunner: HotMesh;
|
|
7
7
|
activityRunner: HotMesh;
|
|
8
8
|
static getHotMesh: (workflowTopic: string, config?: Partial<WorkerConfig>, options?: WorkerOptions) => Promise<HotMesh>;
|
|
9
|
+
static hashOptions(connection: Connection): string;
|
|
9
10
|
constructor();
|
|
10
11
|
static activateWorkflow(hotMesh: HotMesh): Promise<void>;
|
|
11
12
|
static registerActivities<ACT>(activities: ACT): Registry;
|
|
@@ -11,6 +11,20 @@ const stream_1 = require("../../types/stream");
|
|
|
11
11
|
const search_1 = require("./search");
|
|
12
12
|
const factory_1 = require("./schemas/factory");
|
|
13
13
|
class WorkerService {
|
|
14
|
+
static hashOptions(connection) {
|
|
15
|
+
if ('options' in connection) {
|
|
16
|
+
return (0, utils_1.hashOptions)(connection.options);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
const response = [];
|
|
20
|
+
for (let p in connection) {
|
|
21
|
+
if (!response.includes(connection[p])) {
|
|
22
|
+
response.push((0, utils_1.hashOptions)(connection[p]));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return response.join('');
|
|
26
|
+
}
|
|
27
|
+
}
|
|
14
28
|
constructor() { }
|
|
15
29
|
static async activateWorkflow(hotMesh) {
|
|
16
30
|
const app = await hotMesh.engine.store.getApp(hotMesh.engine.appId);
|
|
@@ -84,22 +98,20 @@ class WorkerService {
|
|
|
84
98
|
this.workflowRunner.engine.logger.info('meshflow-worker-running');
|
|
85
99
|
}
|
|
86
100
|
async initActivityWorker(config, activityTopic) {
|
|
87
|
-
const providerConfig =
|
|
88
|
-
class: config.connection.class,
|
|
89
|
-
options: config.connection.options,
|
|
90
|
-
};
|
|
101
|
+
const providerConfig = config.connection;
|
|
91
102
|
const targetNamespace = config?.namespace ?? factory_1.APP_ID;
|
|
92
|
-
const optionsHash =
|
|
103
|
+
const optionsHash = WorkerService.hashOptions(config?.connection);
|
|
93
104
|
const targetTopic = `${optionsHash}.${targetNamespace}.${activityTopic}`;
|
|
105
|
+
const connectionType = 'options' in providerConfig ? 'connection' : 'connections';
|
|
94
106
|
const hotMeshWorker = await hotmesh_1.HotMesh.init({
|
|
95
107
|
guid: config.guid ? `${config.guid}XA` : undefined,
|
|
96
108
|
logLevel: config.options?.logLevel ?? enums_1.HMSH_LOGLEVEL,
|
|
97
109
|
appId: targetNamespace,
|
|
98
|
-
engine: {
|
|
110
|
+
engine: { [connectionType]: providerConfig },
|
|
99
111
|
workers: [
|
|
100
112
|
{
|
|
101
113
|
topic: activityTopic,
|
|
102
|
-
|
|
114
|
+
[connectionType]: providerConfig,
|
|
103
115
|
callback: this.wrapActivityFunctions().bind(this),
|
|
104
116
|
},
|
|
105
117
|
],
|
|
@@ -160,22 +172,20 @@ class WorkerService {
|
|
|
160
172
|
};
|
|
161
173
|
}
|
|
162
174
|
async initWorkflowWorker(config, workflowTopic, workflowFunction) {
|
|
163
|
-
const providerConfig =
|
|
164
|
-
class: config.connection.class,
|
|
165
|
-
options: config.connection.options,
|
|
166
|
-
};
|
|
175
|
+
const providerConfig = config.connection;
|
|
167
176
|
const targetNamespace = config?.namespace ?? factory_1.APP_ID;
|
|
168
|
-
const optionsHash =
|
|
177
|
+
const optionsHash = WorkerService.hashOptions(config?.connection);
|
|
169
178
|
const targetTopic = `${optionsHash}.${targetNamespace}.${workflowTopic}`;
|
|
179
|
+
const connectionType = 'options' in providerConfig ? 'connection' : 'connections';
|
|
170
180
|
const hotMeshWorker = await hotmesh_1.HotMesh.init({
|
|
171
181
|
guid: config.guid,
|
|
172
182
|
logLevel: config.options?.logLevel ?? enums_1.HMSH_LOGLEVEL,
|
|
173
183
|
appId: config.namespace ?? factory_1.APP_ID,
|
|
174
|
-
engine: {
|
|
184
|
+
engine: { [connectionType]: providerConfig },
|
|
175
185
|
workers: [
|
|
176
186
|
{
|
|
177
187
|
topic: workflowTopic,
|
|
178
|
-
|
|
188
|
+
[connectionType]: providerConfig,
|
|
179
189
|
callback: this.wrapWorkflowFunction(workflowFunction, workflowTopic, config).bind(this),
|
|
180
190
|
},
|
|
181
191
|
],
|
|
@@ -365,16 +375,17 @@ WorkerService.activityRegistry = {};
|
|
|
365
375
|
WorkerService.instances = new Map();
|
|
366
376
|
WorkerService.getHotMesh = async (workflowTopic, config, options) => {
|
|
367
377
|
const targetNamespace = config?.namespace ?? factory_1.APP_ID;
|
|
368
|
-
const optionsHash =
|
|
378
|
+
const optionsHash = WorkerService.hashOptions(config?.connection);
|
|
369
379
|
const targetTopic = `${optionsHash}.${targetNamespace}.${workflowTopic}`;
|
|
370
380
|
if (WorkerService.instances.has(targetTopic)) {
|
|
371
381
|
return await WorkerService.instances.get(targetTopic);
|
|
372
382
|
}
|
|
383
|
+
const connectionType = 'options' in config?.connection ? 'connection' : 'connections';
|
|
373
384
|
const hotMeshClient = hotmesh_1.HotMesh.init({
|
|
374
385
|
logLevel: options?.logLevel ?? enums_1.HMSH_LOGLEVEL,
|
|
375
386
|
appId: targetNamespace,
|
|
376
387
|
engine: {
|
|
377
|
-
|
|
388
|
+
[connectionType]: { ...config?.connection },
|
|
378
389
|
},
|
|
379
390
|
});
|
|
380
391
|
WorkerService.instances.set(targetTopic, hotMeshClient);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MeshData } from '../meshdata/index';
|
|
2
2
|
import * as Types from '../../types';
|
|
3
|
+
import { ProvidersConfig } from '../../types/provider';
|
|
3
4
|
declare abstract class MeshOS {
|
|
4
5
|
meshData: MeshData;
|
|
5
6
|
connected: boolean;
|
|
@@ -12,7 +13,7 @@ declare abstract class MeshOS {
|
|
|
12
13
|
static profiles: Types.Profiles;
|
|
13
14
|
static classes: Record<string, typeof MeshOS>;
|
|
14
15
|
static logger: Types.ILogger;
|
|
15
|
-
constructor(providerClass: Types.ProviderClass, namespace: string, namespaceType: string, config: Types.ProviderConfig);
|
|
16
|
+
constructor(providerClass: Types.ProviderClass, namespace: string, namespaceType: string, config: Types.ProviderConfig, connections: ProvidersConfig);
|
|
16
17
|
protected abstract getEntity(): string;
|
|
17
18
|
abstract getSearchOptions(): Types.WorkflowSearchOptions;
|
|
18
19
|
protected abstract getTaskQueue(): string;
|
|
@@ -5,14 +5,17 @@ const index_1 = require("../meshdata/index");
|
|
|
5
5
|
const utils_1 = require("../../modules/utils");
|
|
6
6
|
const logger_1 = require("../logger");
|
|
7
7
|
class MeshOS {
|
|
8
|
-
constructor(providerClass, namespace, namespaceType, config) {
|
|
8
|
+
constructor(providerClass, namespace, namespaceType, config, connections) {
|
|
9
9
|
this.connected = false;
|
|
10
10
|
this.workflow = {};
|
|
11
11
|
this.namespace = namespace;
|
|
12
12
|
this.namespaceType = namespaceType;
|
|
13
|
-
this.meshData = this.initializeMeshData(providerClass, config);
|
|
13
|
+
this.meshData = this.initializeMeshData(providerClass, config, connections);
|
|
14
14
|
}
|
|
15
|
-
initializeMeshData(providerClass, providerConfig) {
|
|
15
|
+
initializeMeshData(providerClass, providerConfig, connections) {
|
|
16
|
+
if (connections) {
|
|
17
|
+
return new index_1.MeshData(providerClass, providerConfig, this.getSearchOptions(), connections);
|
|
18
|
+
}
|
|
16
19
|
return new index_1.MeshData(providerClass, providerConfig, this.getSearchOptions());
|
|
17
20
|
}
|
|
18
21
|
async defaultTargetFn() {
|
|
@@ -192,7 +195,7 @@ class MeshOS {
|
|
|
192
195
|
static async init(p = MeshOS.profiles) {
|
|
193
196
|
for (const key in p) {
|
|
194
197
|
const profile = p[key];
|
|
195
|
-
if (profile.db?.connection?.
|
|
198
|
+
if (profile.db?.connection || profile.db?.connections) {
|
|
196
199
|
this.logger.info(`meshos-initializing`, {
|
|
197
200
|
db: profile.db.name,
|
|
198
201
|
key,
|
|
@@ -214,7 +217,7 @@ class MeshOS {
|
|
|
214
217
|
entity: entity.name,
|
|
215
218
|
label: entity.label,
|
|
216
219
|
});
|
|
217
|
-
const instance = pinstances[entity.name] = new entity.class(profile.db.connection
|
|
220
|
+
const instance = pinstances[entity.name] = new entity.class(profile.db.connection?.class, ns, namespace.type, profile.db.connection?.options, profile.db.connections);
|
|
218
221
|
await instance.init(profile.db.search);
|
|
219
222
|
}
|
|
220
223
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x40f9(){var _0x5d2298=['80KqwiFz','77253nvcrar','5571uUSfAu','8qylRWX','5283355YGJIMt','867917YsBEWA','153498YtphgK','234QWXtrG','1760KwAnnj','2724CeDPwu','42345TRuZqG','1412196PiXWqB'];_0x40f9=function(){return _0x5d2298;};return _0x40f9();}(function(_0x26a515,_0x262692){var _0x17f682=_0x4917,_0x41efda=_0x26a515();while(!![]){try{var _0x344d2e=-parseInt(_0x17f682(0x19a))/0x1+-parseInt(_0x17f682(0x190))/0x2*(parseInt(_0x17f682(0x197))/0x3)+-parseInt(_0x17f682(0x194))/0x4+parseInt(_0x17f682(0x195))/0x5*(parseInt(_0x17f682(0x19b))/0x6)+-parseInt(_0x17f682(0x199))/0x7*(-parseInt(_0x17f682(0x198))/0x8)+parseInt(_0x17f682(0x193))/0x9*(-parseInt(_0x17f682(0x191))/0xa)+parseInt(_0x17f682(0x196))/0xb*(parseInt(_0x17f682(0x192))/0xc);if(_0x344d2e===_0x262692)break;else _0x41efda['push'](_0x41efda['shift']());}catch(_0x3d71dd){_0x41efda['push'](_0x41efda['shift']());}}}(_0x40f9,0x781df));function _0x4917(_0x238e99,_0x5b128d){var _0x40f939=_0x40f9();return _0x4917=function(_0x49172e,_0x1ed782){_0x49172e=_0x49172e-0x190;var _0x5b04a5=_0x40f939[_0x49172e];return _0x5b04a5;},_0x4917(_0x238e99,_0x5b128d);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ArrayHandler']=void 0x0;class ArrayHandler{['get'](_0xeeaeac,_0x3a4bf6){return _0xeeaeac?.[_0x3a4bf6||0x0];}['length'](_0xab82e0){return _0xab82e0?.['length'];}['concat'](_0x27ee6a,_0x58449b){return _0x27ee6a['concat'](_0x58449b);}['indexOf'](_0x4b2bd0,_0x143ed3,_0x5b1c48){return _0x4b2bd0['indexOf'](_0x143ed3,_0x5b1c48);}['join'](_0x1538a2,_0x3a11f7){return _0x1538a2['join'](_0x3a11f7);}['lastIndexOf'](_0x5bf26b,_0x1bf2d6,_0x463729){return _0x5bf26b['lastIndexOf'](_0x1bf2d6,_0x463729);}['pop'](_0x4d3d23){return _0x4d3d23['pop']();}['push'](_0xbd9f7b,..._0x17cfd5){return _0xbd9f7b['push'](..._0x17cfd5),_0xbd9f7b;}['reverse'](_0x113f67){return _0x113f67['reverse']();}['shift'](_0x2009f9){return _0x2009f9['shift']();}['slice'](_0x404251,_0x72174e,_0x280cc2){return _0x404251['slice'](_0x72174e,_0x280cc2);}['sort'](_0x577e0a,_0x3a2233='ASCENDING'){return _0x577e0a['sort']((_0x10abd9,_0x3a5b3e)=>{if(_0x3a2233==='ASCENDING'){if(_0x10abd9===_0x3a5b3e)return 0x0;if(_0x10abd9===null||_0x10abd9===undefined)return-0x1;if(_0x3a5b3e===null||_0x3a5b3e===undefined)return 0x1;if(typeof _0x10abd9==='string'&&typeof _0x3a5b3e==='string')return _0x10abd9['localeCompare'](_0x3a5b3e);return _0x10abd9<_0x3a5b3e?-0x1:0x1;}else{if(_0x10abd9===_0x3a5b3e)return 0x0;if(_0x10abd9===null||_0x10abd9===undefined)return 0x1;if(_0x3a5b3e===null||_0x3a5b3e===undefined)return-0x1;if(typeof _0x10abd9==='string'&&typeof _0x3a5b3e==='string')return _0x3a5b3e['localeCompare'](_0x10abd9);return _0x10abd9>_0x3a5b3e?-0x1:0x1;}});}['splice'](_0x4880d7,_0x3efbca,_0x40c0bf,..._0x37a6f4){return _0x4880d7['splice'](_0x3efbca,_0x40c0bf,..._0x37a6f4);}['unshift'](_0x2ee72f,..._0xa20468){return _0x2ee72f['unshift'](..._0xa20468);}}exports['ArrayHandler']=ArrayHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(_0xeda0c1,_0xb3f66c){var _0x24cd8f=_0x4be6,_0x1b63f3=_0xeda0c1();while(!![]){try{var _0x1e27d4=parseInt(_0x24cd8f(0x12c))/0x1*(parseInt(_0x24cd8f(0x135))/0x2)+parseInt(_0x24cd8f(0x12f))/0x3*(parseInt(_0x24cd8f(0x130))/0x4)+parseInt(_0x24cd8f(0x12d))/0x5*(-parseInt(_0x24cd8f(0x134))/0x6)+-parseInt(_0x24cd8f(0x132))/0x7+parseInt(_0x24cd8f(0x133))/0x8+-parseInt(_0x24cd8f(0x131))/0x9+parseInt(_0x24cd8f(0x12e))/0xa;if(_0x1e27d4===_0xb3f66c)break;else _0x1b63f3['push'](_0x1b63f3['shift']());}catch(_0xa27f1b){_0x1b63f3['push'](_0x1b63f3['shift']());}}}(_0x4c32,0xcd944));function _0x4c32(){var _0xc80549=['710457jVaAnJ','4CKFFhT','6091128RUdfpJ','8414819aEmkKh','5706600jmgKdt','534594gwlmks','6668wPXtah','411pqPEOD','45etWjox','12024340TSiZmw'];_0x4c32=function(){return _0xc80549;};return _0x4c32();}function _0x4be6(_0x1fe4c1,_0x58eae1){var _0x4c3267=_0x4c32();return _0x4be6=function(_0x4be679,_0x4f1a00){_0x4be679=_0x4be679-0x12c;var _0x114293=_0x4c3267[_0x4be679];return _0x114293;},_0x4be6(_0x1fe4c1,_0x58eae1);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['BitwiseHandler']=void 0x0;class BitwiseHandler{['and'](_0x3edb49,_0xf0cae7){return _0x3edb49&_0xf0cae7;}['or'](_0x337ac8,_0xf4af3d){return _0x337ac8|_0xf4af3d;}['xor'](_0x176312,_0x20fa20){return _0x176312^_0x20fa20;}['leftShift'](_0x5e6298,_0x1d6ff2){return _0x5e6298<<_0x1d6ff2;}['rightShift'](_0xb25789,_0x40f752){return _0xb25789>>_0x40f752;}['unsignedRightShift'](_0x309192,_0xe173da){return _0x309192>>>_0xe173da;}}exports['BitwiseHandler']=BitwiseHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(_0x209c00,_0x440ff0){var _0xbeb8aa=_0x4b6f,_0x157eea=_0x209c00();while(!![]){try{var _0x313a65=-parseInt(_0xbeb8aa(0x13f))/0x1+parseInt(_0xbeb8aa(0x13b))/0x2+parseInt(_0xbeb8aa(0x138))/0x3*(parseInt(_0xbeb8aa(0x13e))/0x4)+-parseInt(_0xbeb8aa(0x136))/0x5*(-parseInt(_0xbeb8aa(0x13a))/0x6)+-parseInt(_0xbeb8aa(0x13d))/0x7+-parseInt(_0xbeb8aa(0x139))/0x8*(parseInt(_0xbeb8aa(0x137))/0x9)+parseInt(_0xbeb8aa(0x135))/0xa*(parseInt(_0xbeb8aa(0x13c))/0xb);if(_0x313a65===_0x440ff0)break;else _0x157eea['push'](_0x157eea['shift']());}catch(_0x1012fa){_0x157eea['push'](_0x157eea['shift']());}}}(_0x2cb2,0xe7e69));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ConditionalHandler']=void 0x0;function _0x4b6f(_0x4e7174,_0x21b56a){var _0x2cb29a=_0x2cb2();return _0x4b6f=function(_0x4b6fd8,_0x42a118){_0x4b6fd8=_0x4b6fd8-0x135;var _0xa3884c=_0x2cb29a[_0x4b6fd8];return _0xa3884c;},_0x4b6f(_0x4e7174,_0x21b56a);}class ConditionalHandler{['ternary'](_0xcc89aa,_0x2517c8,_0xcc2c15){return _0xcc89aa?_0x2517c8:_0xcc2c15;}['equality'](_0x26b208,_0x2529f6){return _0x26b208==_0x2529f6;}['strict_equality'](_0x2e891c,_0x464aab){return _0x2e891c===_0x464aab;}['inequality'](_0x17e1e6,_0x1869c8){return _0x17e1e6!=_0x1869c8;}['strict_inequality'](_0x47c544,_0x450d23){return _0x47c544!==_0x450d23;}['greater_than'](_0x2474a5,_0x120650){return _0x2474a5>_0x120650;}['less_than'](_0x169d2c,_0x3f5e3d){return _0x169d2c<_0x3f5e3d;}['greater_than_or_equal'](_0x2251ab,_0x4079d7){return _0x2251ab>=_0x4079d7;}['less_than_or_equal'](_0x14cbed,_0x503f3a){return _0x14cbed<=_0x503f3a;}['nullish'](_0x1e6fe2,_0x54f00e){return _0x1e6fe2??_0x54f00e;}}exports['ConditionalHandler']=ConditionalHandler;function _0x2cb2(){var _0x461e5f=['643818zEFKQB','3943670aNmsCv','5OqtmvA','144dcJGCN','1425NBgrkh','772136MwTUWt','1699986gTtDNg','2340176mRRWyg','44HAZldj','5302024THEkPF','7280RRctay'];_0x2cb2=function(){return _0x461e5f;};return _0x2cb2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(_0x3b2cbc,_0x9b9afe){const _0x1f6d95=_0x1e19,_0x3013ad=_0x3b2cbc();while(!![]){try{const _0x5d72a0=parseInt(_0x1f6d95(0x159))/0x1*(parseInt(_0x1f6d95(0x152))/0x2)+-parseInt(_0x1f6d95(0x153))/0x3*(parseInt(_0x1f6d95(0x155))/0x4)+parseInt(_0x1f6d95(0x157))/0x5+-parseInt(_0x1f6d95(0x15a))/0x6+parseInt(_0x1f6d95(0x154))/0x7*(-parseInt(_0x1f6d95(0x158))/0x8)+parseInt(_0x1f6d95(0x156))/0x9+parseInt(_0x1f6d95(0x15b))/0xa;if(_0x5d72a0===_0x9b9afe)break;else _0x3013ad['push'](_0x3013ad['shift']());}catch(_0x510d4a){_0x3013ad['push'](_0x3013ad['shift']());}}}(_0x5be1,0x49294));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CronHandler']=void 0x0;function _0x1e19(_0x4030fb,_0x5aae67){const _0x5be14a=_0x5be1();return _0x1e19=function(_0x1e190e,_0x4f6f40){_0x1e190e=_0x1e190e-0x152;let _0x48b9ee=_0x5be14a[_0x1e190e];return _0x48b9ee;},_0x1e19(_0x4030fb,_0x5aae67);}const cron_parser_1=require('cron-parser'),enums_1=require('../../../modules/enums'),utils_1=require('../../../modules/utils'),logger_1=require('../../logger');class CronHandler{['nextDelay'](_0x51d2d5){try{if(!(0x0,utils_1['isValidCron'])(_0x51d2d5))return-0x1;const _0x1d6596=(0x0,cron_parser_1['parseExpression'])(_0x51d2d5,{'utc':!![]}),_0x4b8363=_0x1d6596['next']()['toDate'](),_0x4e39ce=new Date(),_0x584e36=(_0x4b8363['getTime']()-_0x4e39ce['getTime']())/0x3e8;if(_0x584e36<=0x0)return-0x1;if(_0x584e36<enums_1['HMSH_FIDELITY_SECONDS'])return enums_1['HMSH_FIDELITY_SECONDS'];const _0x298b3c=Math['round'](_0x584e36);return _0x298b3c;}catch(_0x5c997c){return CronHandler['logger']['error']('Error\x20calculating\x20next\x20cron\x20job\x20execution\x20\x20delay:',{..._0x5c997c}),-0x1;}}}exports['CronHandler']=CronHandler,CronHandler['logger']=new logger_1['LoggerService']('hotmesh','meshos');function _0x5be1(){const _0x487ab5=['11474ePAYwO','9366oZfseB','2653gmAcWA','748KmVNiU','1328508NBvhfF','2024755gdFHof','712kYrslh','64uyjEPw','2952378YkJBXG','4895450SarEIc'];_0x5be1=function(){return _0x487ab5;};return _0x5be1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function _0x1eb8(_0x2b2aff,_0x3f47ac){const _0x18db07=_0x18db();return _0x1eb8=function(_0x1eb8ac,_0x2ef734){_0x1eb8ac=_0x1eb8ac-0x1b3;let _0x55c9b9=_0x18db07[_0x1eb8ac];return _0x55c9b9;},_0x1eb8(_0x2b2aff,_0x3f47ac);}(function(_0x1a12b4,_0x2dc9c4){const _0x1764bb=_0x1eb8,_0x2195ce=_0x1a12b4();while(!![]){try{const _0x5f005b=-parseInt(_0x1764bb(0x1ba))/0x1+-parseInt(_0x1764bb(0x1b8))/0x2*(parseInt(_0x1764bb(0x1b3))/0x3)+-parseInt(_0x1764bb(0x1bb))/0x4*(parseInt(_0x1764bb(0x1b9))/0x5)+-parseInt(_0x1764bb(0x1bd))/0x6*(parseInt(_0x1764bb(0x1bc))/0x7)+-parseInt(_0x1764bb(0x1b7))/0x8+parseInt(_0x1764bb(0x1b4))/0x9*(-parseInt(_0x1764bb(0x1b5))/0xa)+-parseInt(_0x1764bb(0x1b6))/0xb*(-parseInt(_0x1764bb(0x1be))/0xc);if(_0x5f005b===_0x2dc9c4)break;else _0x2195ce['push'](_0x2195ce['shift']());}catch(_0xeb4a5b){_0x2195ce['push'](_0x2195ce['shift']());}}}(_0x18db,0xd2027));function _0x18db(){const _0x216e09=['4072DtdeiG','49HtygIl','925140ajFcMb','12qdSirl','489HFaAie','106596vLAlXJ','660TgmnDI','59110502qlVuva','433040ZnlWuv','7384wxwJZG','5560lgVBWP','864507qiuDDV'];_0x18db=function(){return _0x216e09;};return _0x18db();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['DateHandler']=void 0x0;const utils_1=require('../../../modules/utils');class DateHandler{static['getDateInstance'](_0x5a4a7e){const _0x15f94f=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d{3})?Z)?$/;if(typeof _0x5a4a7e==='string'){if(_0x15f94f['test'](_0x5a4a7e))return new Date(_0x5a4a7e);const _0xae9e89=parseInt(_0x5a4a7e,0xa);if(!isNaN(_0xae9e89))return new Date(_0xae9e89);}else{if(_0x5a4a7e instanceof Date)return _0x5a4a7e;else{if(typeof _0x5a4a7e==='number')return new Date(_0x5a4a7e);}}throw new Error('Invalid\x20date\x20format');}['fromISOString'](_0x26d6a2){return new Date(_0x26d6a2);}['now'](){return Date['now']();}['parse'](_0x2057bd){return Date['parse'](_0x2057bd);}['getDate'](_0xb14363){return DateHandler['getDateInstance'](_0xb14363)['getDate']();}['getDay'](_0x32d188){return DateHandler['getDateInstance'](_0x32d188)['getDay']();}['getFullYear'](_0x47371d){return DateHandler['getDateInstance'](_0x47371d)['getFullYear']();}['getHours'](_0x18e081){return DateHandler['getDateInstance'](_0x18e081)['getHours']();}['getMilliseconds'](_0x545133){return DateHandler['getDateInstance'](_0x545133)['getMilliseconds']();}['getMinutes'](_0x4d6339){return DateHandler['getDateInstance'](_0x4d6339)['getMinutes']();}['getMonth'](_0x33f23d){return DateHandler['getDateInstance'](_0x33f23d)['getMonth']();}['getSeconds'](_0x2bb39c){return DateHandler['getDateInstance'](_0x2bb39c)['getSeconds']();}['getTime'](_0x2e7c85){return DateHandler['getDateInstance'](_0x2e7c85)['getTime']();}['getTimezoneOffset'](_0x471c62){return DateHandler['getDateInstance'](_0x471c62)['getTimezoneOffset']();}['getUTCDate'](_0x3e6776){return DateHandler['getDateInstance'](_0x3e6776)['getUTCDate']();}['getUTCDay'](_0xd15b7b){return DateHandler['getDateInstance'](_0xd15b7b)['getUTCDay']();}['getUTCFullYear'](_0x5b4d28){return DateHandler['getDateInstance'](_0x5b4d28)['getUTCFullYear']();}['getUTCHours'](_0x4fd101){return DateHandler['getDateInstance'](_0x4fd101)['getUTCHours']();}['getUTCMilliseconds'](_0x639a5b){return DateHandler['getDateInstance'](_0x639a5b)['getUTCMilliseconds']();}['getUTCMinutes'](_0x491dd9){return DateHandler['getDateInstance'](_0x491dd9)['getUTCMinutes']();}['getUTCMonth'](_0x4090c4){return DateHandler['getDateInstance'](_0x4090c4)['getUTCMonth']();}['getUTCSeconds'](_0x4fecc1){return DateHandler['getDateInstance'](_0x4fecc1)['getUTCSeconds']();}['setMilliseconds'](_0x131d78,_0x35d428){return DateHandler['getDateInstance'](_0x131d78)['setMilliseconds'](_0x35d428);}['setMinutes'](_0x3b4582,_0x434c6b,_0x4b76da,_0x273ddb){return DateHandler['getDateInstance'](_0x3b4582)['setMinutes'](_0x434c6b,_0x4b76da,_0x273ddb);}['setMonth'](_0x4c4ef1,_0x51a852,_0x3b9b64){return DateHandler['getDateInstance'](_0x4c4ef1)['setMonth'](_0x51a852,_0x3b9b64);}['setSeconds'](_0x340b2e,_0x2c7429,_0x25d7d3){return DateHandler['getDateInstance'](_0x340b2e)['setSeconds'](_0x2c7429,_0x25d7d3);}['setTime'](_0x417746,_0x4e5cd5){return DateHandler['getDateInstance'](_0x417746)['setTime'](_0x4e5cd5);}['setUTCDate'](_0x3dce29,_0x417457){return DateHandler['getDateInstance'](_0x3dce29)['setUTCDate'](_0x417457);}['setUTCFullYear'](_0xf27c7c,_0x1bab7f,_0x43c009,_0x5e12c1){return DateHandler['getDateInstance'](_0xf27c7c)['setUTCFullYear'](_0x1bab7f,_0x43c009,_0x5e12c1);}['setUTCHours'](_0x55e1a2,_0x501f74,_0x20f1ea,_0x19870b,_0xba4b5a){return DateHandler['getDateInstance'](_0x55e1a2)['setUTCHours'](_0x501f74,_0x20f1ea,_0x19870b,_0xba4b5a);}['setUTCMilliseconds'](_0x52bf52,_0x1919f6){return DateHandler['getDateInstance'](_0x52bf52)['setUTCMilliseconds'](_0x1919f6);}['setUTCMinutes'](_0x513fbc,_0x2a8bfa,_0x484609,_0x179e2e){return DateHandler['getDateInstance'](_0x513fbc)['setUTCMinutes'](_0x2a8bfa,_0x484609,_0x179e2e);}['setUTCMonth'](_0x984110,_0x3dcba6,_0x44d7a1){return DateHandler['getDateInstance'](_0x984110)['setUTCMonth'](_0x3dcba6,_0x44d7a1);}['setUTCSeconds'](_0x56b3de,_0x450a23,_0x19e1b8){return DateHandler['getDateInstance'](_0x56b3de)['setUTCSeconds'](_0x450a23,_0x19e1b8);}['setDate'](_0x3e49da,_0x164001){return DateHandler['getDateInstance'](_0x3e49da)['setDate'](_0x164001);}['setFullYear'](_0x1b1bc0,_0x5bd0fe,_0x533d17,_0x412040){return DateHandler['getDateInstance'](_0x1b1bc0)['setFullYear'](_0x5bd0fe,_0x533d17,_0x412040);}['setHours'](_0x47d3f1,_0x3b0248,_0x266401,_0x9a4359,_0x2d6992){return DateHandler['getDateInstance'](_0x47d3f1)['setHours'](_0x3b0248,_0x266401,_0x9a4359,_0x2d6992);}['toDateString'](_0x47780b){return DateHandler['getDateInstance'](_0x47780b)['toDateString']();}['toISOString'](_0xceea15){return DateHandler['getDateInstance'](_0xceea15)['toISOString']();}['toISOXString'](_0xca36f){return(0x0,utils_1['formatISODate'])(_0xca36f?DateHandler['getDateInstance'](_0xca36f):new Date());}['toJSON'](_0x1d61c5){return DateHandler['getDateInstance'](_0x1d61c5)['toJSON']();}['toLocaleDateString'](_0x1151e7,_0x365ac1,_0x52a8c6){return DateHandler['getDateInstance'](_0x1151e7)['toLocaleDateString'](_0x365ac1,_0x52a8c6);}['toLocaleString'](_0x2cd145,_0x362c11,_0x2ae3dd){return DateHandler['getDateInstance'](_0x2cd145)['toLocaleString'](_0x362c11,_0x2ae3dd);}['toLocaleTimeString'](_0x11394e,_0x322730,_0x2dfa32){return DateHandler['getDateInstance'](_0x11394e)['toLocaleTimeString'](_0x322730,_0x2dfa32);}['toString'](_0x3f82ff){return DateHandler['getDateInstance'](_0x3f82ff)['toString']();}['UTC'](_0x1a4929,_0x4b8b60,_0x21a54d,_0x9770ee,_0x5cfd2e,_0x28be2b,_0x1dbffa){return Date['UTC'](_0x1a4929,_0x4b8b60,_0x21a54d,_0x9770ee,_0x5cfd2e,_0x28be2b,_0x1dbffa);}['valueOf'](_0x128af1){return DateHandler['getDateInstance'](_0x128af1)['valueOf']();}}exports['DateHandler']=DateHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x60f9(){const _0x2da2bc=['339936zvHUzS','799596UUvDou','417795VRnWmM','1LGlmmi','526204MQXSwh','517428KoUpTf','99tksStF','60248ELdXsO','537741XmjLpN'];_0x60f9=function(){return _0x2da2bc;};return _0x60f9();}(function(_0xee48df,_0x57c868){const _0x46b63a=_0xa2bb,_0x32ff31=_0xee48df();while(!![]){try{const _0x31583c=parseInt(_0x46b63a(0x175))/0x1*(parseInt(_0x46b63a(0x172))/0x2)+parseInt(_0x46b63a(0x17a))/0x3+-parseInt(_0x46b63a(0x177))/0x4+-parseInt(_0x46b63a(0x174))/0x5+parseInt(_0x46b63a(0x173))/0x6+-parseInt(_0x46b63a(0x176))/0x7+-parseInt(_0x46b63a(0x179))/0x8*(parseInt(_0x46b63a(0x178))/0x9);if(_0x31583c===_0x57c868)break;else _0x32ff31['push'](_0x32ff31['shift']());}catch(_0x5d59fa){_0x32ff31['push'](_0x32ff31['shift']());}}}(_0x60f9,0x1b3c0));function _0xa2bb(_0x7edbf8,_0x3dc476){const _0x60f934=_0x60f9();return _0xa2bb=function(_0xa2bbd4,_0x3704e9){_0xa2bbd4=_0xa2bbd4-0x172;let _0xb7588e=_0x60f934[_0xa2bbd4];return _0xb7588e;},_0xa2bb(_0x7edbf8,_0x3dc476);}Object['defineProperty'](exports,'__esModule',{'value':!![]});const array_1=require('./array'),bitwise_1=require('./bitwise'),conditional_1=require('./conditional'),cron_1=require('./cron'),date_1=require('./date'),json_1=require('./json'),logical_1=require('./logical'),math_1=require('./math'),number_1=require('./number'),object_1=require('./object'),string_1=require('./string'),symbol_1=require('./symbol'),unary_1=require('./unary');exports['default']={'array':new array_1['ArrayHandler'](),'bitwise':new bitwise_1['BitwiseHandler'](),'conditional':new conditional_1['ConditionalHandler'](),'cron':new cron_1['CronHandler'](),'date':new date_1['DateHandler'](),'json':new json_1['JsonHandler'](),'logical':new logical_1['LogicalHandler'](),'math':new math_1['MathHandler'](),'number':new number_1['NumberHandler'](),'object':new object_1['ObjectHandler'](),'string':new string_1['StringHandler'](),'symbol':new symbol_1['SymbolHandler'](),'unary':new unary_1['UnaryHandler']()};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function _0x2318(){var _0xfee273=['10084569cEoDik','12ogXAxI','3249XqqrVq','2879388ouJMFJ','12yuLJim','21qlMQfe','5TSgnmR','1247460ylAsrn','820104bRfKHL','1172kwucuv','560334zogiZd','87269rJRlxp'];_0x2318=function(){return _0xfee273;};return _0x2318();}(function(_0x227360,_0xd9c2b2){var _0x37bf75=_0x19c6,_0x4dea34=_0x227360();while(!![]){try{var _0x4de211=parseInt(_0x37bf75(0x193))/0x1*(parseInt(_0x37bf75(0x198))/0x2)+parseInt(_0x37bf75(0x196))/0x3*(-parseInt(_0x37bf75(0x191))/0x4)+-parseInt(_0x37bf75(0x18e))/0x5*(parseInt(_0x37bf75(0x192))/0x6)+parseInt(_0x37bf75(0x18d))/0x7*(-parseInt(_0x37bf75(0x190))/0x8)+-parseInt(_0x37bf75(0x197))/0x9+-parseInt(_0x37bf75(0x18f))/0xa+parseInt(_0x37bf75(0x194))/0xb*(parseInt(_0x37bf75(0x195))/0xc);if(_0x4de211===_0xd9c2b2)break;else _0x4dea34['push'](_0x4dea34['shift']());}catch(_0x4a8094){_0x4dea34['push'](_0x4dea34['shift']());}}}(_0x2318,0x43bdc));function _0x19c6(_0x1f11aa,_0x5a4665){var _0x231853=_0x2318();return _0x19c6=function(_0x19c6fa,_0x3254c3){_0x19c6fa=_0x19c6fa-0x18d;var _0x446d5f=_0x231853[_0x19c6fa];return _0x446d5f;},_0x19c6(_0x1f11aa,_0x5a4665);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['JsonHandler']=void 0x0;class JsonHandler{['stringify'](_0x12c658,_0x2770a7,_0x289cda){return JSON['stringify'](_0x12c658,_0x2770a7,_0x289cda);}['parse'](_0x4bcace,_0x51556d){return JSON['parse'](_0x4bcace,_0x51556d);}}exports['JsonHandler']=JsonHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function _0x45e9(_0x5dcc87,_0xa30f61){var _0x206abc=_0x206a();return _0x45e9=function(_0x45e98d,_0x8550c6){_0x45e98d=_0x45e98d-0x91;var _0xb00550=_0x206abc[_0x45e98d];return _0xb00550;},_0x45e9(_0x5dcc87,_0xa30f61);}(function(_0x1574af,_0xd7b653){var _0x2b1c68=_0x45e9,_0x5597d3=_0x1574af();while(!![]){try{var _0x531373=parseInt(_0x2b1c68(0x93))/0x1+parseInt(_0x2b1c68(0x97))/0x2+-parseInt(_0x2b1c68(0x92))/0x3*(parseInt(_0x2b1c68(0x98))/0x4)+parseInt(_0x2b1c68(0x94))/0x5*(parseInt(_0x2b1c68(0x9a))/0x6)+-parseInt(_0x2b1c68(0x91))/0x7*(parseInt(_0x2b1c68(0x99))/0x8)+parseInt(_0x2b1c68(0x96))/0x9+parseInt(_0x2b1c68(0x95))/0xa;if(_0x531373===_0xd7b653)break;else _0x5597d3['push'](_0x5597d3['shift']());}catch(_0x1681ab){_0x5597d3['push'](_0x5597d3['shift']());}}}(_0x206a,0x642ec));function _0x206a(){var _0x2c8946=['107230IiNEql','62020YkTwzl','5170923NiwTYd','1002476laCdKO','1558468teFTYB','712NexaUI','102PhpMKI','46067VxLbFi','6krSXru','328722nIUdTv'];_0x206a=function(){return _0x2c8946;};return _0x206a();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['LogicalHandler']=void 0x0;class LogicalHandler{['and'](_0x279bc2,_0x59f2ac){return _0x279bc2&&_0x59f2ac;}['or'](_0x36f22d,_0x5b6fb8){return _0x36f22d||_0x5b6fb8;}}exports['LogicalHandler']=LogicalHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(_0x4cf930,_0x305d64){const _0x146ef1=_0x2a7c,_0x2986e6=_0x4cf930();while(!![]){try{const _0x404947=-parseInt(_0x146ef1(0x11e))/0x1+parseInt(_0x146ef1(0x122))/0x2*(parseInt(_0x146ef1(0x120))/0x3)+parseInt(_0x146ef1(0x11b))/0x4+parseInt(_0x146ef1(0x11d))/0x5*(parseInt(_0x146ef1(0x11a))/0x6)+parseInt(_0x146ef1(0x124))/0x7*(parseInt(_0x146ef1(0x121))/0x8)+parseInt(_0x146ef1(0x11c))/0x9*(-parseInt(_0x146ef1(0x123))/0xa)+parseInt(_0x146ef1(0x11f))/0xb*(-parseInt(_0x146ef1(0x125))/0xc);if(_0x404947===_0x305d64)break;else _0x2986e6['push'](_0x2986e6['shift']());}catch(_0x1ec70e){_0x2986e6['push'](_0x2986e6['shift']());}}}(_0x1111,0x4b456));function _0x1111(){const _0x176eec=['8JlgEPa','2DKEInY','10xnWTLv','1693867qkInlP','599016iHjNzh','61794WEnNyT','1395232yPsZkj','2667285bStFzz','215gueBcX','5393dDhczM','220iQSdKr','1724346MSwhKY'];_0x1111=function(){return _0x176eec;};return _0x1111();}function _0x2a7c(_0x185e5e,_0x33ef00){const _0x111125=_0x1111();return _0x2a7c=function(_0x2a7ca8,_0x1dd616){_0x2a7ca8=_0x2a7ca8-0x11a;let _0x497af5=_0x111125[_0x2a7ca8];return _0x497af5;},_0x2a7c(_0x185e5e,_0x33ef00);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['MathHandler']=void 0x0;class MathHandler{['add'](..._0xe7c77b){return _0xe7c77b['reduce']((_0x1aafbb,_0x4a9daa)=>{return Array['isArray'](_0x4a9daa)?_0x1aafbb+this['add'](..._0x4a9daa):_0x1aafbb+_0x4a9daa;},0x0);}['subtract'](..._0x3e2825){if(_0x3e2825['length']===0x0)throw new Error('At\x20least\x20one\x20operand\x20is\x20required.');let _0x63ab47=[];_0x3e2825['forEach'](_0x3ec53d=>{Array['isArray'](_0x3ec53d)?_0x63ab47=[..._0x63ab47,..._0x3ec53d]:_0x63ab47['push'](_0x3ec53d);});if(_0x63ab47['length']===0x0)throw new Error('At\x20least\x20one\x20operand\x20is\x20required\x20after\x20flattening.');const _0x26f0d=_0x63ab47['reduce']((_0x3de021,_0x5dac0a,_0x598c49)=>{return _0x598c49===0x0?_0x3de021:_0x3de021-_0x5dac0a;});return _0x26f0d;}['multiply'](..._0x4c3d13){if(_0x4c3d13['length']===0x0)throw new Error('At\x20least\x20one\x20operand\x20is\x20required.');return _0x4c3d13['reduce']((_0x39c8f8,_0x49356a)=>{return Array['isArray'](_0x49356a)?_0x39c8f8*this['multiply'](..._0x49356a):_0x39c8f8*_0x49356a;},0x1);}['divide'](..._0x542f1c){if(_0x542f1c['length']===0x0)throw new Error('At\x20least\x20one\x20operand\x20is\x20required.');let _0x152f20=[];_0x542f1c['forEach'](_0x4110bc=>{Array['isArray'](_0x4110bc)?_0x152f20=[..._0x152f20,..._0x4110bc]:_0x152f20['push'](_0x4110bc);});if(_0x152f20['length']===0x0)throw new Error('At\x20least\x20one\x20operand\x20is\x20required\x20after\x20flattening.');const _0x4f2a68=_0x152f20['reduce']((_0x44ed54,_0x5045f3,_0x139108)=>{if(_0x5045f3===0x0)return NaN;return _0x139108===0x0?_0x44ed54:_0x44ed54/_0x5045f3;});if(isNaN(_0x4f2a68))return NaN;return _0x4f2a68;}['abs'](_0x4823f0){return Math['abs'](_0x4823f0);}['acos'](_0xf591d5){return Math['acos'](_0xf591d5);}['acosh'](_0x354d85){return Math['acosh'](_0x354d85);}['asin'](_0x241cab){return Math['asin'](_0x241cab);}['asinh'](_0x534e41){return Math['asinh'](_0x534e41);}['atan'](_0x37e3e5){return Math['atan'](_0x37e3e5);}['atan2'](_0x361b97,_0x2270b7){return Math['atan2'](_0x361b97,_0x2270b7);}['atanh'](_0x2e5440){return Math['atanh'](_0x2e5440);}['cbrt'](_0x2f69d8){return Math['cbrt'](_0x2f69d8);}['ceil'](_0x4afa1d){return Math['ceil'](_0x4afa1d);}['clz32'](_0x4e7ced){return Math['clz32'](_0x4e7ced);}['cos'](_0x438a0f){return Math['cos'](_0x438a0f);}['cosh'](_0xda3fcc){return Math['cosh'](_0xda3fcc);}['exp'](_0x31fcba){return Math['exp'](_0x31fcba);}['expm1'](_0x5e5224){return Math['expm1'](_0x5e5224);}['floor'](_0x7e9295){return Math['floor'](_0x7e9295);}['fround'](_0x3bb8c4){return Math['fround'](_0x3bb8c4);}['hypot'](..._0x5c847c){return Math['hypot'](..._0x5c847c);}['imul'](_0x3e87f,_0x585fd4){return Math['imul'](_0x3e87f,_0x585fd4);}['log'](_0x2c3a6){return Math['log'](_0x2c3a6);}['log10'](_0x6ea58a){return Math['log10'](_0x6ea58a);}['log1p'](_0x300958){return Math['log1p'](_0x300958);}['log2'](_0x47174f){return Math['log2'](_0x47174f);}['max'](..._0x214458){return Math['max'](..._0x214458);}['min'](..._0x4620a2){return Math['min'](..._0x4620a2);}['pow'](_0x1f5b70,_0xbfe8ca){return Math['pow'](_0x1f5b70,_0xbfe8ca);}['random'](){return Math['random']();}['round'](_0x98c8b9){return Math['round'](_0x98c8b9);}['sign'](_0x178e11){return Math['sign'](_0x178e11);}['sin'](_0xa99548){return Math['sin'](_0xa99548);}['sinh'](_0x4b2a77){return Math['sinh'](_0x4b2a77);}['sqrt'](_0x434ffc){return Math['sqrt'](_0x434ffc);}['tan'](_0x267c7c){return Math['tan'](_0x267c7c);}['tanh'](_0x3150b6){return Math['tanh'](_0x3150b6);}['trunc'](_0x1fdf6c){return Math['trunc'](_0x1fdf6c);}}exports['MathHandler']=MathHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(_0x58dadf,_0xc12ca1){var _0x51fff8=_0x37c4,_0x530fc4=_0x58dadf();while(!![]){try{var _0x19ab97=parseInt(_0x51fff8(0x18d))/0x1+-parseInt(_0x51fff8(0x189))/0x2+-parseInt(_0x51fff8(0x188))/0x3+-parseInt(_0x51fff8(0x18a))/0x4+-parseInt(_0x51fff8(0x18b))/0x5+-parseInt(_0x51fff8(0x187))/0x6+parseInt(_0x51fff8(0x18e))/0x7*(parseInt(_0x51fff8(0x18c))/0x8);if(_0x19ab97===_0xc12ca1)break;else _0x530fc4['push'](_0x530fc4['shift']());}catch(_0x5da77b){_0x530fc4['push'](_0x530fc4['shift']());}}}(_0x3a22,0x31f6d));function _0x3a22(){var _0x317778=['873012ByYHxh','715430QZRHLz','96yiuZuP','158513LRStRc','503027COcIgf','220098GgyBFe','1083354nLUOKM','114104ozvwqB'];_0x3a22=function(){return _0x317778;};return _0x3a22();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['NumberHandler']=void 0x0;class NumberHandler{['isFinite'](_0x5eee5f){return Number['isFinite'](_0x5eee5f);}['isEven'](_0x239861){return!isNaN(_0x239861)&&_0x239861%0x2===0x0;}['isOdd'](_0x2a6210){return!isNaN(_0x2a6210)&&_0x2a6210%0x2!==0x0;}['isInteger'](_0x319b4c){return Number['isInteger'](_0x319b4c);}['isNaN'](_0x4eca18){return Number['isNaN'](_0x4eca18);}['parseFloat'](_0x4a068d){return parseFloat(_0x4a068d);}['parseInt'](_0x5a239b,_0x38ce97){return parseInt(_0x5a239b,_0x38ce97);}['toFixed'](_0xaae656,_0x2acb75){return _0xaae656['toFixed'](_0x2acb75);}['toExponential'](_0x3d5904,_0xc80da0){return _0x3d5904['toExponential'](_0xc80da0);}['toPrecision'](_0x19556f,_0x1ab0de){return _0x19556f['toPrecision'](_0x1ab0de);}['gte'](_0x2dd0ab,_0x5bd353){return _0x2dd0ab>=_0x5bd353;}['lte'](_0x12da71,_0x67320c){return _0x12da71<=_0x67320c;}['gt'](_0x502b41,_0x402a38){return _0x502b41>_0x402a38;}['lt'](_0x1d089c,_0x1aac99){return _0x1d089c<_0x1aac99;}['max'](..._0x306450){return Math['max'](..._0x306450);}['min'](..._0x576248){return Math['min'](..._0x576248);}['pow'](_0x4c4e04,_0x4b878a){return Math['pow'](_0x4c4e04,_0x4b878a);}['round'](_0x3b5abc){return Math['round'](_0x3b5abc);}}function _0x37c4(_0x5cfdad,_0x40757f){var _0x3a22ee=_0x3a22();return _0x37c4=function(_0x37c4fd,_0x5a9b66){_0x37c4fd=_0x37c4fd-0x187;var _0x23cd23=_0x3a22ee[_0x37c4fd];return _0x23cd23;},_0x37c4(_0x5cfdad,_0x40757f);}exports['NumberHandler']=NumberHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(_0xe85699,_0x53b766){const _0x49fdef=_0x1625,_0x26878a=_0xe85699();while(!![]){try{const _0x4ad9ed=-parseInt(_0x49fdef(0x14a))/0x1*(-parseInt(_0x49fdef(0x14c))/0x2)+parseInt(_0x49fdef(0x147))/0x3*(-parseInt(_0x49fdef(0x149))/0x4)+-parseInt(_0x49fdef(0x145))/0x5+-parseInt(_0x49fdef(0x141))/0x6+parseInt(_0x49fdef(0x142))/0x7*(-parseInt(_0x49fdef(0x143))/0x8)+parseInt(_0x49fdef(0x148))/0x9*(parseInt(_0x49fdef(0x144))/0xa)+-parseInt(_0x49fdef(0x14b))/0xb*(-parseInt(_0x49fdef(0x146))/0xc);if(_0x4ad9ed===_0x53b766)break;else _0x26878a['push'](_0x26878a['shift']());}catch(_0x4d1c59){_0x26878a['push'](_0x26878a['shift']());}}}(_0x3933,0x8b3c1));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ObjectHandler']=void 0x0;function _0x1625(_0x1fe82d,_0xdf7164){const _0x3933e8=_0x3933();return _0x1625=function(_0x16257c,_0x2b016){_0x16257c=_0x16257c-0x141;let _0x23579b=_0x3933e8[_0x16257c];return _0x23579b;},_0x1625(_0x1fe82d,_0xdf7164);}function _0x3933(){const _0x25a206=['6462472BGeeSf','10349840iVXWnP','4611025wOnaua','21461628SoXfMD','60sFuYSo','9JGGcDu','79428qulBUx','1398qjlwIu','11wyqTUL','276anqXgw','1913508UXSIWY','7lakPpk'];_0x3933=function(){return _0x25a206;};return _0x3933();}class ObjectHandler{['get'](_0x5ac035,_0x703748){return _0x5ac035?.[_0x703748];}['set'](_0x1d25bc,_0x344646,_0x5115e8){if(!_0x1d25bc)_0x1d25bc={};return _0x1d25bc[_0x344646]=_0x5115e8,_0x1d25bc;}['create'](..._0x262c9d){const _0x59cf3b={};if(_0x262c9d['length']===0x0)return _0x59cf3b;for(let _0x108ae2=0x0;_0x108ae2<_0x262c9d['length'];_0x108ae2+=0x2){_0x59cf3b[_0x262c9d[_0x108ae2]]=_0x262c9d[_0x108ae2+0x1];}return _0x59cf3b;}['keys'](_0x12e0d4){return _0x12e0d4&&Object['keys'](_0x12e0d4)||[];}['values'](_0x4a67b8){return _0x4a67b8&&Object['values'](_0x4a67b8)||[];}['entries'](_0x5729f7){return _0x5729f7&&Object['entries'](_0x5729f7)||[];}['fromEntries'](_0x883824){return Object['fromEntries'](_0x883824);}['assign'](_0x1da56a,..._0x195531){return Object['assign'](_0x1da56a||{},..._0x195531);}['getOwnPropertyNames'](_0x5a494d){return Object['getOwnPropertyNames'](_0x5a494d||{});}['getOwnPropertySymbols'](_0x350a2c){return Object['getOwnPropertySymbols'](_0x350a2c||{});}['getOwnPropertyDescriptor'](_0x465b13,_0x44ae4f){return Object['getOwnPropertyDescriptor'](_0x465b13||{},_0x44ae4f);}['defineProperty'](_0x4c18e9,_0xdb595c,_0x5abcb){return Object['defineProperty'](_0x4c18e9,_0xdb595c,_0x5abcb);}['defineProperties'](_0x5cbb12,_0x2a4827){return Object['defineProperties'](_0x5cbb12,_0x2a4827);}['freeze'](_0x3856c5){return Object['freeze'](_0x3856c5);}['isFrozen'](_0x1c9099){return Object['isFrozen'](_0x1c9099);}['seal'](_0x11e8fc){return Object['seal'](_0x11e8fc);}['isSealed'](_0x39123b){return Object['isSealed'](_0x39123b);}['preventExtensions'](_0x3d9e31){return Object['preventExtensions'](_0x3d9e31);}['isExtensible'](_0x3aaae8){return Object['isExtensible'](_0x3aaae8);}['hasOwnProperty'](_0x195d84,_0x30da58){return Object['prototype']['hasOwnProperty']['call'](_0x195d84,_0x30da58);}['isPrototypeOf'](_0x251675,_0x145a7e){return Object['prototype']['isPrototypeOf']['call'](_0x251675,_0x145a7e);}['propertyIsEnumerable'](_0x4a4fc8,_0x4b24d1){return Object['prototype']['propertyIsEnumerable']['call'](_0x4a4fc8,_0x4b24d1);}}exports['ObjectHandler']=ObjectHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(_0xffe52f,_0x37d6bf){var _0xf457cb=_0x25cd,_0x3884dd=_0xffe52f();while(!![]){try{var _0x211a47=-parseInt(_0xf457cb(0x171))/0x1+parseInt(_0xf457cb(0x169))/0x2*(-parseInt(_0xf457cb(0x168))/0x3)+parseInt(_0xf457cb(0x16c))/0x4+parseInt(_0xf457cb(0x170))/0x5*(parseInt(_0xf457cb(0x16e))/0x6)+parseInt(_0xf457cb(0x16f))/0x7+parseInt(_0xf457cb(0x16a))/0x8*(-parseInt(_0xf457cb(0x16d))/0x9)+-parseInt(_0xf457cb(0x16b))/0xa;if(_0x211a47===_0x37d6bf)break;else _0x3884dd['push'](_0x3884dd['shift']());}catch(_0x5dda1a){_0x3884dd['push'](_0x3884dd['shift']());}}}(_0x982c,0xf3769));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['StringHandler']=void 0x0;function _0x982c(){var _0x4252bd=['5571150vKDuWG','2463348SfMKPP','2007SgDEHz','18rkXQhv','13649090ZMaljW','1449075KyYrDm','746352WKorRa','3QKHIdd','207954VVdwZe','36968wjDXvL'];_0x982c=function(){return _0x4252bd;};return _0x982c();}class StringHandler{['split'](_0x1094da,_0x2f4aec){return _0x1094da['split'](_0x2f4aec);}['charAt'](_0x2c0fa8,_0x442136){return _0x2c0fa8['charAt'](_0x442136);}['concat'](..._0x4a64f0){return _0x4a64f0['join']('');}['includes'](_0x3f596c,_0x15ae91,_0x4520ed){return _0x3f596c['includes'](_0x15ae91,_0x4520ed);}['indexOf'](_0x395951,_0x5c829e,_0x5aa774){return _0x395951['indexOf'](_0x5c829e,_0x5aa774);}['lastIndexOf'](_0x27218a,_0x2371d9,_0x36efad){return _0x27218a['lastIndexOf'](_0x2371d9,_0x36efad);}['slice'](_0x182fb0,_0x3b7d6c,_0x313771){return _0x182fb0['slice'](_0x3b7d6c,_0x313771);}['toLowerCase'](_0x4069e6){return _0x4069e6['toLowerCase']();}['toUpperCase'](_0x4ec529){return _0x4ec529['toUpperCase']();}['trim'](_0x367317){return _0x367317['trim']();}['trimStart'](_0x1880cd){return _0x1880cd['trimStart']();}['trimEnd'](_0x1c6c8a){return _0x1c6c8a['trimEnd']();}['padStart'](_0x58fbe9,_0x4b9581,_0x2c6cc4){return _0x58fbe9['padStart'](_0x4b9581,_0x2c6cc4);}['padEnd'](_0x18dc33,_0x2be6e9,_0x270c86){return _0x18dc33['padEnd'](_0x2be6e9,_0x270c86);}['replace'](_0x296533,_0x646ff1,_0x3ab044){return _0x296533['replace'](_0x646ff1,_0x3ab044);}['search'](_0x203db4,_0x3622e3){return _0x203db4['search'](_0x3622e3);}['substring'](_0x532701,_0xd18f88,_0x566a18){return _0x532701['substring'](_0xd18f88,_0x566a18);}['startsWith'](_0xd09fc7,_0x49e93c,_0x2b5aa1){return _0xd09fc7['startsWith'](_0x49e93c,_0x2b5aa1);}['endsWith'](_0x14b99c,_0x467c1b,_0x42e6d8){return _0x14b99c['endsWith'](_0x467c1b,_0x42e6d8);}['repeat'](_0x7b2bd5,_0x145b63){if(_0x145b63<0x0||_0x145b63===Infinity)throw new RangeError('Invalid\x20repeat\x20count.\x20Must\x20be\x20a\x20positive\x20finite\x20number.');return _0x7b2bd5['repeat'](_0x145b63);}}function _0x25cd(_0x36ef1e,_0x52ffcd){var _0x982c51=_0x982c();return _0x25cd=function(_0x25cd94,_0x18d54a){_0x25cd94=_0x25cd94-0x168;var _0x39190e=_0x982c51[_0x25cd94];return _0x39190e;},_0x25cd(_0x36ef1e,_0x52ffcd);}exports['StringHandler']=StringHandler;
|