-
Notifications
You must be signed in to change notification settings - Fork 137
/
tyshj.js
207 lines (192 loc) · 61.1 KB
/
tyshj.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
/**
作者:临渊
日期:8-15
小程序:统一快乐星球
入口:活动->山海经
抓包:tysc.tuoketech.com/unit-one/login/wx/login 这个登录包里 body 部分的 全部
变量:tyshj='body@xxxx ' 多个账号用 @ 或者 换行 分割
定时一天一次
cron: 11 11 * * *
[task_local]
#统一山海经
11 11 * * * https://raw.githubusercontent.com/LinYuanovo/scripts/main/tyshj.js, tag=统一山海经, enabled=false
[rewrite_local]
https://tysc.tuoketech.com/unit-one/login/wx/login url script-request-body https://raw.githubusercontent.com/LinYuanovo/scripts/main/tyshj.js
[MITM]
hostname = tysc.tuoketech.com
*/
const $ = new Env("统一山海经");
const notify = $.isNode() ? require("./sendNotify") : "";
const {log} = console;
const Notify = 1; //0为关闭通知,1为打开通知,默认为1
const debug = 0; //0为关闭调试,1为打开调试,默认为0
const uaNum = 1; //随机UA,从0-20随便选一个填上去
let scriptVersion = "1.0.1";
//////////////////////
const _0x561c=['em5xZ2k=','ZGFwbW8=','bGVuZ3Ro','d0R6Q0Y=','aHR0cHM6Ly90eXNjLnR1b2tldGVjaC5jb20vdW5pdC1vbmUvYWN0aXZpdHkvZ2V0SGFwcHlTdGFy','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDk7IE1pIE5vdGUgMyBCdWlsZC9QS1ExLjE4MTAwNy4wMDE7IHd2KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzQuMCBDaHJvbWUvNjYuMC4zMzU5LjEyNiBNUVFCcm93c2VyLzYuMiBUQlMvMDQ1MTMxIE1vYmlsZSBTYWZhcmkvNTM3LjM2','c2FKYUY=','cEhsdEo=','Q2FCY0c=','dXpMUFk=','WFBSV2k=','CgrjgJBkZWJ1Z+OAkT09PT09PT09PT09PT09Pei/meaYryDnrb7liLAg6L+U5ZueZGF0YT09PT09PT09PT09PT09','SW5PVmk=','dWNKQ0g=','TEZuZEo=','aXNOb2Rl','ckNKV3Q=','VXN6dnI=','VGhFZ3U=','XeetvuWIsOWksei0pe+8jOWOn+WboOaYr++8mg==','SHpiZ1o=','aFp5aE0=','T1VTeXI=','cWFjek8=','aFVIdno=','dnZURE8=','QlhJTnU=','TFlOUE4=','IAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0K','S2Z4anM=','XemihuWPluW/q+S5kOaYn+eQg++8muWksei0pe+8jOWOn+WboOaYr++8mg==','eWJ1ekY=','R21VRVg=','Y29uc3RydWN0b3I=','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDk7IDE2VCBCdWlsZC9QS1ExLjE5MDYxNi4wMDE7IHd2KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzQuMCBDaHJvbWUvNjYuMC4zMzU5LjEyNiBNUVFCcm93c2VyLzYuMiBUQlMvMDQ0OTQyIE1vYmlsZSBTYWZhcmkvNTM3LjM2','aGFzT3duUHJvcGVydHk=','6I635Y+WVG9rZW7lpLHotKXvvIzljp/lm6DmmK/vvJo=','bmNhUXA=','dHlzaGo=','VE9xTVQ=','Q29udGVudC1UeXBl','eG1UcHk=','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxM181IGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgTW9iaWxlLzE1RTE0OA==','S3pMZnU=','YWNjZXB0LWVuY29kaW5n','c1dMWkI=','CgrjgJBkZWJ1Z+OAkT09PT09PT09PT09PT09Pei/meaYryDojrflj5ZUb2tlbiDov5Tlm55kYXRhPT09PT09PT09PT09PT0=','cmV0dXJuIChmdW5jdGlvbigpIA==','XeaKveWlluaIkOWKn++8jOiOt+W+l++8mg==','Y29kZQ==','aXJrTFg=','Cgo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0gICAgCuiEmuacrOaJp+ihjCAtIOWMl+S6rOaXtumXtChVVEMrOCnvvJo=','QXpxbHI=','eG5PV0U=','WHVGY2U=','RVZodGI=','IOS4qui0puWPt+OAkT09PT09PT09PQo=','enpzWWk=','Z3ppcCxjb21wcmVzcyxicixkZWZsYXRl','IOS4qui0puWPt+aVsOe7hDoKIA==','clVwSVc=','ZFlUVXg=','aGVhZGVycw==','QWJ2aWk=','Z2lEUVg=','XemihuWPluW/q+S5kOaYn+eQg++8muaIkOWKnw==','ak1NQmQ=','SlltUEM=','TWRuc1I=','V3B6QU4=','dXNlci1hZ2VudA==','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDExOyBSZWRtaSBLMzAgNUcgQnVpbGQvUktRMS4yMDA4MjYuMDAyOyB3dikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi80LjAgQ2hyb21lLzc3LjAuMzg2NS4xMjAgTVFRQnJvd3Nlci82LjIgVEJTLzA0NTUxMSBNb2JpbGUgU2FmYXJpLzUzNy4zNg==','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxNF8yIGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzUzMi4wIChLSFRNTCwgbGlrZSBHZWNrbykgQ3JpT1MvNDMuMC44MjMuMCBNb2JpbGUvNjVNNTMyIFNhZmFyaS81MzIuMA==','a1FoU0I=','CuOAkGRlYnVn44CRPT09PT09PT09PT09PT09IOi/meaYryDojrflj5ZUb2tlbiDor7fmsYIgdXJsID09PT09PT09PT09PT09PQ==','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDEwOyBPTkVQTFVTIEE2MDAwIEJ1aWxkL1FLUTEuMTkwNzE2LjAwMzsgd3YpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIFZlcnNpb24vNC4wIENocm9tZS83Ny4wLjM4NjUuMTIwIE1RUUJyb3dzZXIvNi4yIFRCUy8wNDUyMjQgTW9iaWxlIFNhZmFyaS81MzcuMzY=','cGFyc2U=','ZGVidWc=','a2tWZmo=','b0hyb2o=','d2FpdA==','ZnpyWmE=','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxM182IGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgTW9iaWxlLzE1RTE0OA==','aVFFdkE=','WExPSFU=','dG9rZW4=','V3F2S1k=','56We5Yqb5YC8','Z3pHbkQ=','CuOAkGRlYnVn44CRPT09PT09PT09PT09PT09IOi/meaYryDmn6Xor6LkvZnpop0g6K+35rGCIHVybCA9PT09PT09PT09PT09PT0=','RHdNY0E=','Z2V0ZGF0YQ==','Xea1j+iniOW/q+S5kOaYn+eQg++8muWksei0pe+8jOWOn+WboOaYr++8mg==','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDguMC4wOyBIVEMgVS0zdyBCdWlsZC9PUFI2LjE3MDYyMy4wMTM7IHd2KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzQuMCBDaHJvbWUvNjYuMC4zMzU5LjEyNiBNUVFCcm93c2VyLzYuMiBUQlMvMDQ0OTQyIE1vYmlsZSBTYWZhcmkvNTM3LjM2','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDguMS4wOyBNSSA4IEJ1aWxkL09QTTEuMTcxMDE5LjAyNjsgd3YpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIFZlcnNpb24vNC4wIENocm9tZS82Ni4wLjMzNTkuMTI2IE1RUUJyb3dzZXIvNi4yIFRCUy8wNDUxMzEgTW9iaWxlIFNhZmFyaS81MzcuMzY=','Z2V0VGltZXpvbmVPZmZzZXQ=','YlF1R2g=','V3B4WFQ=','SUtDcUo=','WU9Nb08=','R0tMeUY=','VnVpQ3c=','d2Fybg==','Y2F0Y2g=','dElSWU4=','YlZuY0U=','SG9zdA==','5Liq6LSm5Y+36L+Q6KGM57uT5p6c77ya','Mnw1fDF8M3w0fDZ8OXw4fDB8Nw==','ZG9uZQ==','c3RyaW5naWZ5','YlNjQUI=','Y29uc29sZQ==','c0FRamY=','aXhySFE=','ZGF0YQ==','ZW52','YmFBTlY=','cGdpcmw=','eVJDSHo=','YmFSSmo=','V2p2enM=','RVZYdVc=','XeetvuWIsOaIkOWKn++8jOiOt+W+l++8mg==','Z2V0VGltZQ==','CgrjgJBkZWJ1Z+OAkT09PT09PT09PT09PT09Pei/meaYryDmtY/op4jlv6vkuZDmmJ/nkIMg6L+U5ZueZGF0YT09PT09PT09PT09PT09','c0F4cGM=','WFd6T0g=','RnJ3YnI=','WWNYb2g=','RWpycWw=','UGFWaXI=','UFZtbUc=','dHJhY2U=','Z1ZKVEE=','YmtUZkc=','d2xsWWM=','dEFTTm0=','VlFzR2U=','c2xzaks=','clB5eGo=','Y29tcGlsZQ==','XeaKveWlluWksei0pe+8jOWOn+WboOaYr++8mg==','SkJ3ZU8=','U256d08=','dHN1Q0U=','SExxcUU=','eHVrcng=','TWNORWI=','clF3REY=','SFVoT2Y=','YXBwbGljYXRpb24vanNvbg==','cXN0ZVA=','Und6cG8=','aHR0cHM6Ly90eXNjLnR1b2tldGVjaC5jb20vdW5pdC1vbmUvYWN0aXZpdHkvYWN0aXZpdHlKb2lu','VFNmTUs=','Q1l6RGI=','UXZJUWk=','UnViRW4=','bnhseWU=','b01mSWE=','akF2Skc=','aXV4Zlo=','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDEwOyBNMjAwNkoxMEMgQnVpbGQvUVAxQS4xOTA3MTEuMDIwOyB3dikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi80LjAgQ2hyb21lLzc3LjAuMzg2NS4xMjAgTVFRQnJvd3Nlci82LjIgVEJTLzA0NTIzMCBNb2JpbGUgU2FmYXJpLzUzNy4zNg==','aUlTdEU=','YkljTGQ=','Tlltem4=','aXJSY1A=','RHZobkU=','S0RCU3Y=','Ym9keQ==','QW1jeVU=','bHdTblc=','cG9zdA==','bG9n','VFV6THU=','77yM6YCA5Ye6','TGNRWE4=','CuOAkGRlYnVn44CRPT09PT09PT09PT09PT09IOi/meaYryDmir3lpZYg6K+35rGCIHVybCA9PT09PT09PT09PT09PT0=','5bqT5Zyw5Z2A77yaaHR0cHM6Ly9naXRodWIuY29tL0xpbll1YW5vdm8vc2NyaXB0cy5naXQ=','VnRjcEQ=','CuiOt+WPllRva2Vu77ya5aSx6LSl77yM5Y6f5Zug5piv77ya','dFRvRFI=','dUl6T0U=','ZHVmTkk=','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDEwOyBSZWRtaSBLMjAgUHJvIFByZW1pdW0gRWRpdGlvbiBCdWlsZC9RS1ExLjE5MDgyNS4wMDI7IHd2KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzQuMCBDaHJvbWUvNzcuMC4zODY1LjEyMCBNUVFCcm93c2VyLzYuMiBUQlMvMDQ1MjI3IE1vYmlsZSBTYWZhcmkvNTM3LjM2','TVZRZU4=','dGV0Y0k=','dXJs','WFlKenU=','TGdtalI=','V2hFa3E=','U29GRFM=','cmV0dXJuIC8iICsgdGhpcyArICIv','Zk95d3M=','dndlRkY=','amZvTmw=','bm9hc2o=','bG9VRVE=','RUNEQU0=','CuOAkGRlYnVn44CRPT09PT09PT09PT09PT09IOi/meaYryDmtY/op4jlv6vkuZDmmJ/nkIMg6K+35rGCIHVybCA9PT09PT09PT09PT09PT0=','VFFMbGI=','ZmluYWxseQ==','bFdUSmY=','TW96aWxsYS81LjAgKGlQb2Q7IFU7IENQVSBpUGhvbmUgT1MgM18xIGxpa2UgTWFjIE9TIFg7IHJ3LVJXKSBBcHBsZVdlYktpdC81MzEuOS4zIChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi80LjAuNSBNb2JpbGUvOEIxMTggU2FmYXJpLzY1MzEuOS4z','S0hOb3o=','YXNzZXROYW1l','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDk7IE1JIDYgQnVpbGQvUEtRMS4xOTAxMTguMDAxOyB3dikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi80LjAgQ2hyb21lLzY2LjAuMzM1OS4xMjYgTVFRQnJvd3Nlci82LjIgVEJTLzA0NDk0MiBNb2JpbGUgU2FmYXJpLzUzNy4zNg==','ZXhjZXB0aW9u','SVhTSUg=','aHR0cHM6Ly90eXNjLnR1b2tldGVjaC5jb20vdW5pdC1vbmUvYWN0aXZpdHkvZ2V0UG93ZXJWYWx1ZQ==','S2plUW0=','clhIRVI=','WFNxaWo=','UFpkbXA=','dk54aGU=','CgrnrKw=','ckxLR3M=','Cj09PT09PT09PSDlvIDlp4vjgJDnrKwg','WXNqcmc=','TmtzR1k=','aEt6Wmk=','YXBwLXBsYXRmb3JtLWlk','elBMTUw=','XeafpeivouS9memineWksei0pe+8jOWOn+WboOaYr++8mg==','aHR0cHM6Ly90eXNjLnR1b2tldGVjaC5jb20vdW5pdC1vbmUvdXNlci9jZW50ZXIvdW1hL2FjY291bnQvbGlzdA==','SVlMSk4=','a3dMVUY=','WWlqVmI=','VGJOT2k=','Q0FBR1k=','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDEwOyBPTkVQTFVTIEE1MDEwIEJ1aWxkL1FLUTEuMTkxMDE0LjAxMjsgd3YpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIFZlcnNpb24vNC4wIENocm9tZS83Ny4wLjM4NjUuMTIwIE1RUUJyb3dzZXIvNi4yIFRCUy8wNDUyMzAgTW9iaWxlIFNhZmFyaS81MzcuMzY=','ZXJyb3I=','VGJGRnk=','XeS9memine+8mg==','b0d6Unk=','YWNjZXB0','Ykpaekw=','S2FMZVc=','cGhLcGE=','e30uY29uc3RydWN0b3IoInJldHVybiB0aGlzIikoICk=','R2VhUGo=','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxM18zIGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgTW9iaWxlLzE1RTE0OA==','ZnBOeVo=','T0V6Q1Y=','V3VkQ0s=','d0plVnI=','V0xrZmw=','Qk9kVmU=','dFduRW4=','dGVzdA==','ID09PT09PT09PT09PQ==','Z092Zk8=','dGFibGU=','aHR0cHM6Ly90eXNjLnR1b2tldGVjaC5jb20vdW5pdC1vbmUvYWN0aXZpdHkvc2lnbklu','eWJmY0U=','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxNF8zIGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgTW9iaWxlLzE1RTE0OA==','aVNNQ0g=','VlN2Rmk=','Y0dCSkk=','XihbXiBdKyggK1teIF0rKSspK1teIF19','ZE52SWg=','RUdvcUs=','UnVSWVc=','cUpPcG0=','5L2c6ICF77ya5Li05riK','aEZFaFo=','eVhyeG0=','YVNzcEk=','SXNXdFQ=','bXNn','CgrjgJBkZWJ1Z+OAkT09PT09PT09PT09PT09Pei/meaYryDmir3lpZYg6L+U5ZueZGF0YT09PT09PT09PT09PT09','dHlzYy50dW9rZXRlY2guY29t','SnFuWFM=','Xea1j+iniOW/q+S5kOaYn+eQg++8muaIkOWKnw==','VlhuYlA=','TGRpZ0k=','UUpWS1o=','YVZxUmc=','YXBwbHk=','U3RyckE=','ZUhURHY=','Cj09PT09PT09PT09PT09PT09PT0g5YWx5om+5YiwIA==','aFB1RE4=','a0dMdEk=','U2RyWlU=','b1Bad2o=','dW5kZWZpbmVk','S0FNTks=','QmdrbEM=','Q2ZqVGk=','aWpWTHU=','YmFsYW5jZQ==','ZEdES2w=','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDguMS4wOyAxNiBYIEJ1aWxkL09QTTEuMTcxMDE5LjAyNjsgd3YpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIFZlcnNpb24vNC4wIENocm9tZS82Ni4wLjMzNTkuMTI2IE1RUUJyb3dzZXIvNi4yIFRCUy8wNDQ5NDIgTW9iaWxlIFNhZmFyaS81MzcuMzY=','Z1F4SU0=','V1pmZ3M=','Slp4aFU=','eyJsYXRpdHVkZSI6IiIsImxvbmdpdHVkZSI6IiJ9','c3JFcFg=','TW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDEwOyBHTTE5MTAgQnVpbGQvUUtRMS4xOTA3MTYuMDAzOyB3dikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi80LjAgQ2hyb21lLzc3LjAuMzg2NS4xMjAgTVFRQnJvd3Nlci82LjIgVEJTLzA0NTIzMCBNb2JpbGUgU2FmYXJpLzUzNy4zNg==','CgrjgJBkZWJ1Z+OAkT09PT09PT09PT09PT09Pei/meaYryDpooblj5blv6vkuZDmmJ/nkIMg6L+U5ZueZGF0YT09PT09PT09PT09PT09','Z2haQ1M=','c0piVWw=','c3BsaXQ=','R3FkeWE=','SG9Zb3Y=','TU1aZ2c=','d1FlT0g=','em1ERUQ='];(function(_0x47967c,_0x561c1){const _0x1b5a4e=function(_0x488245){while(--_0x488245){_0x47967c['push'](_0x47967c['shift']());}};const _0x1e4b59=function(){const _0x504610={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2ff098,_0x5bcbb0,_0x30902c,_0x1bc4e3){_0x1bc4e3=_0x1bc4e3||{};let _0x313bb5=_0x5bcbb0+'='+_0x30902c;let _0x5188d7=0x0;for(let _0xc3c3f9=0x0,_0x2d9b31=_0x2ff098['length'];_0xc3c3f9<_0x2d9b31;_0xc3c3f9++){const _0x25f5d9=_0x2ff098[_0xc3c3f9];_0x313bb5+=';\x20'+_0x25f5d9;const _0x4e1e63=_0x2ff098[_0x25f5d9];_0x2ff098['push'](_0x4e1e63);_0x2d9b31=_0x2ff098['length'];if(_0x4e1e63!==!![]){_0x313bb5+='='+_0x4e1e63;}}_0x1bc4e3['cookie']=_0x313bb5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4361e5,_0x2719ad){_0x4361e5=_0x4361e5||function(_0x46c340){return _0x46c340;};const _0x3ee738=_0x4361e5(new RegExp('(?:^|;\x20)'+_0x2719ad['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)'));const _0x1449e1=function(_0x2fb171,_0x4d54e3){_0x2fb171(++_0x4d54e3);};_0x1449e1(_0x1b5a4e,_0x561c1);return _0x3ee738?decodeURIComponent(_0x3ee738[0x1]):undefined;}};const _0x44c3cf=function(){const _0x320896=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x320896['test'](_0x504610['removeCookie']['toString']());};_0x504610['updateCookie']=_0x44c3cf;let _0x4af7ec='';const _0x4ac4d3=_0x504610['updateCookie']();if(!_0x4ac4d3){_0x504610['setCookie'](['*'],'counter',0x1);}else if(_0x4ac4d3){_0x4af7ec=_0x504610['getCookie'](null,'counter');}else{_0x504610['removeCookie']();}};_0x1e4b59();}(_0x561c,0x191));const _0x1b5a=function(_0x47967c,_0x561c1){_0x47967c=_0x47967c-0x0;let _0x1b5a4e=_0x561c[_0x47967c];if(_0x1b5a['SovuLP']===undefined){(function(){const _0x488245=function(){let _0x4af7ec;try{_0x4af7ec=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');')();}catch(_0x4ac4d3){_0x4af7ec=window;}return _0x4af7ec;};const _0x504610=_0x488245();const _0x44c3cf='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x504610['atob']||(_0x504610['atob']=function(_0x2ff098){const _0x5bcbb0=String(_0x2ff098)['replace'](/=+$/,'');let _0x30902c='';for(let _0x1bc4e3=0x0,_0x313bb5,_0x5188d7,_0xc3c3f9=0x0;_0x5188d7=_0x5bcbb0['charAt'](_0xc3c3f9++);~_0x5188d7&&(_0x313bb5=_0x1bc4e3%0x4?_0x313bb5*0x40+_0x5188d7:_0x5188d7,_0x1bc4e3++%0x4)?_0x30902c+=String['fromCharCode'](0xff&_0x313bb5>>(-0x2*_0x1bc4e3&0x6)):0x0){_0x5188d7=_0x44c3cf['indexOf'](_0x5188d7);}return _0x30902c;});}());_0x1b5a['wzANlG']=function(_0x2d9b31){const _0x25f5d9=atob(_0x2d9b31);let _0x4e1e63=[];for(let _0x4361e5=0x0,_0x2719ad=_0x25f5d9['length'];_0x4361e5<_0x2719ad;_0x4361e5++){_0x4e1e63+='%'+('00'+_0x25f5d9['charCodeAt'](_0x4361e5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4e1e63);};_0x1b5a['sIEfAE']={};_0x1b5a['SovuLP']=!![];}const _0x1e4b59=_0x1b5a['sIEfAE'][_0x47967c];if(_0x1e4b59===undefined){const _0x3ee738=function(_0x1449e1){this['ENkoJY']=_0x1449e1;this['PvCoQs']=[0x1,0x0,0x0];this['SUACxO']=function(){return'newState';};this['URAZfz']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*';this['HeeNbd']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3ee738['prototype']['htPFgx']=function(){const _0x46c340=new RegExp(this['URAZfz']+this['HeeNbd']);const _0x2fb171=_0x46c340['test'](this['SUACxO']['toString']())?--this['PvCoQs'][0x1]:--this['PvCoQs'][0x0];return this['ywKKwS'](_0x2fb171);};_0x3ee738['prototype']['ywKKwS']=function(_0x4d54e3){if(!Boolean(~_0x4d54e3)){return _0x4d54e3;}return this['wXTdYU'](this['ENkoJY']);};_0x3ee738['prototype']['wXTdYU']=function(_0x320896){for(let _0x223c09=0x0,_0x2d3b99=this['PvCoQs']['length'];_0x223c09<_0x2d3b99;_0x223c09++){this['PvCoQs']['push'](Math['round'](Math['random']()));_0x2d3b99=this['PvCoQs']['length'];}return _0x320896(this['PvCoQs'][0x0]);};new _0x3ee738(_0x1b5a)['htPFgx']();_0x1b5a4e=_0x1b5a['wzANlG'](_0x1b5a4e);_0x1b5a['sIEfAE'][_0x47967c]=_0x1b5a4e;}else{_0x1b5a4e=_0x1e4b59;}return _0x1b5a4e;};const _0x2ff098=function(){const _0xaae3d3={};_0xaae3d3['hawgk']=function(_0xac5e7e,_0x376dd8){return _0xac5e7e===_0x376dd8;};_0xaae3d3[_0x1b5a('0x51')]=_0x1b5a('0x65');const _0x22237a=_0xaae3d3;let _0x1b671f=!![];return function(_0x23e4c1,_0x3e9d46){const _0x194631=_0x1b671f?function(){if(_0x22237a['hawgk'](_0x22237a[_0x1b5a('0x51')],_0x22237a['lwSnW'])){if(_0x3e9d46){const _0x39fbea=_0x3e9d46['apply'](_0x23e4c1,arguments);_0x3e9d46=null;return _0x39fbea;}}else{const _0x3770ca=_0x3e9d46[_0x1b5a('0xbc')](_0x23e4c1,arguments);_0x3e9d46=null;return _0x3770ca;}}:function(){};_0x1b671f=![];return _0x194631;};}();const _0x4ac4d3=_0x2ff098(this,function(){const _0x9da6={};_0x9da6['ixrHQ']=function(_0x28c79d){return _0x28c79d();};_0x9da6[_0x1b5a('0x29')]=function(_0x40d1e4,_0x2f70d1){return _0x40d1e4===_0x2f70d1;};_0x9da6[_0x1b5a('0x45')]='qjyPB';_0x9da6[_0x1b5a('0x111')]=_0x1b5a('0x50');_0x9da6[_0x1b5a('0xbe')]=_0x1b5a('0x66');_0x9da6[_0x1b5a('0x2d')]=_0x1b5a('0xa9');_0x9da6[_0x1b5a('0xe4')]=function(_0x2c339b){return _0x2c339b();};const _0x39d87a=_0x9da6;const _0x111455=function(){const _0x111d47={};_0x111d47[_0x1b5a('0xe')]=_0x1b5a('0x66');_0x111d47[_0x1b5a('0xb8')]=function(_0x3ddb3b){return _0x39d87a[_0x1b5a('0x17')](_0x3ddb3b);};const _0x2ff4d8=_0x111d47;if(_0x39d87a[_0x1b5a('0x29')](_0x39d87a[_0x1b5a('0x45')],_0x39d87a[_0x1b5a('0x111')])){const _0x6589c6=function(){const _0x58afc1=_0x6589c6[_0x1b5a('0xfc')](_0x2ff4d8[_0x1b5a('0xe')])()[_0x1b5a('0x32')](_0x1b5a('0xa9'));return!_0x58afc1[_0x1b5a('0x9f')](_0x4ac4d3);};return _0x2ff4d8[_0x1b5a('0xb8')](_0x6589c6);}else{const _0x16661b=_0x111455[_0x1b5a('0xfc')](_0x39d87a[_0x1b5a('0xbe')])()[_0x1b5a('0x32')](_0x39d87a[_0x1b5a('0x2d')]);return!_0x16661b[_0x1b5a('0x9f')](_0x4ac4d3);}};return _0x39d87a[_0x1b5a('0xe4')](_0x111455);});_0x4ac4d3();const _0x504610=function(){const _0x32909f={};_0x32909f['VtcpD']=function(_0x10edac,_0x32b046){return _0x10edac(_0x32b046);};_0x32909f[_0x1b5a('0xdc')]=function(_0x417ee9,_0x35d8b0){return _0x417ee9!==_0x35d8b0;};_0x32909f[_0x1b5a('0x36')]=_0x1b5a('0x5d');const _0x1f070c=_0x32909f;let _0x17b420=!![];return function(_0x15595e,_0x5d0ab9){const _0x56fa6c=_0x17b420?function(){const _0x565b41={};_0x565b41[_0x1b5a('0x4b')]=function(_0x1811b3,_0x465f1e){return _0x1f070c[_0x1b5a('0x59')](_0x1811b3,_0x465f1e);};const _0x441107=_0x565b41;if(_0x5d0ab9){if(_0x1f070c[_0x1b5a('0xdc')](_0x1f070c[_0x1b5a('0x36')],_0x1b5a('0x5d'))){_0x441107['NYmzn'](log,'['+name+_0x1b5a('0x1')+result[_0x1b5a('0xb3')]);msg+='\x0a['+name+_0x1b5a('0x1')+result[_0x1b5a('0xb3')];}else{const _0x4aeb30=_0x5d0ab9[_0x1b5a('0xbc')](_0x15595e,arguments);_0x5d0ab9=null;return _0x4aeb30;}}}:function(){};_0x17b420=![];return _0x56fa6c;};}();const _0x488245=_0x504610(this,function(){const _0x5ddaea={};_0x5ddaea[_0x1b5a('0xf2')]=function(_0x101aa0,_0x5781e2){return _0x101aa0!==_0x5781e2;};_0x5ddaea[_0x1b5a('0x5')]=_0x1b5a('0xaa');_0x5ddaea[_0x1b5a('0x38')]=_0x1b5a('0x98');_0x5ddaea[_0x1b5a('0xda')]=function(_0x444c11,_0x1f8d96){return _0x444c11(_0x1f8d96);};_0x5ddaea['baRJj']=function(_0x3d3d9d,_0x5b1fc2){return _0x3d3d9d+_0x5b1fc2;};_0x5ddaea[_0x1b5a('0x30')]=_0x1b5a('0x10a');_0x5ddaea[_0x1b5a('0x54')]=_0x1b5a('0x95');_0x5ddaea[_0x1b5a('0xa4')]=function(_0x36d9b0,_0x407219){return _0x36d9b0(_0x407219);};_0x5ddaea[_0x1b5a('0x68')]=function(_0x40b6b4,_0x5f023f){return _0x40b6b4!==_0x5f023f;};_0x5ddaea[_0x1b5a('0x6a')]=_0x1b5a('0x104');_0x5ddaea['srEpX']=function(_0x3170a7,_0x11d238){return _0x3170a7===_0x11d238;};_0x5ddaea[_0x1b5a('0x94')]=_0x1b5a('0xc2');_0x5ddaea[_0x1b5a('0x118')]=_0x1b5a('0xc0');const _0x23bdf2=_0x5ddaea;const _0x4e865d=function(){};const _0x2705fb=function(){const _0x5be436={};_0x5be436[_0x1b5a('0x88')]=function(_0x37d5f8,_0x10b12a){return _0x37d5f8(_0x10b12a);};const _0x552d5a=_0x5be436;let _0x5a39a9;try{if(_0x23bdf2[_0x1b5a('0xf2')](_0x23bdf2[_0x1b5a('0x5')],_0x23bdf2[_0x1b5a('0x38')])){_0x5a39a9=_0x23bdf2[_0x1b5a('0xda')](Function,_0x23bdf2[_0x1b5a('0x1d')](_0x23bdf2[_0x1b5a('0x1d')](_0x23bdf2['slsjK'],_0x23bdf2['TUzLu']),');'))();}else{log('\x0a\x0a【debug】===============这是\x20抽奖\x20返回data==============');_0x552d5a[_0x1b5a('0x88')](log,data);}}catch(_0x4d8862){_0x5a39a9=window;}return _0x5a39a9;};const _0x26da05=_0x2705fb();if(!_0x26da05['console']){if(_0x23bdf2[_0x1b5a('0xd0')](_0x23bdf2[_0x1b5a('0x94')],_0x23bdf2[_0x1b5a('0x118')])){_0x23bdf2[_0x1b5a('0xda')](log,'['+name+_0x1b5a('0xf9')+result[_0x1b5a('0xb3')]);msg+='\x0a['+name+_0x1b5a('0xf9')+result[_0x1b5a('0xb3')];}else{_0x26da05['console']=function(_0x158485){const _0x116a6c={};_0x116a6c['vxrvf']=function(_0x45ac85,_0x1e2091){return _0x23bdf2[_0x1b5a('0xa4')](_0x45ac85,_0x1e2091);};const _0xe3e0af=_0x116a6c;if(_0x23bdf2[_0x1b5a('0x68')]('xmTpy',_0x23bdf2[_0x1b5a('0x6a')])){_0xe3e0af['vxrvf'](log,e);}else{const _0x3f093d={};_0x3f093d[_0x1b5a('0x53')]=_0x158485;_0x3f093d[_0x1b5a('0xb')]=_0x158485;_0x3f093d[_0x1b5a('0x128')]=_0x158485;_0x3f093d['info']=_0x158485;_0x3f093d[_0x1b5a('0x8d')]=_0x158485;_0x3f093d[_0x1b5a('0x75')]=_0x158485;_0x3f093d[_0x1b5a('0xa2')]=_0x158485;_0x3f093d[_0x1b5a('0x2a')]=_0x158485;return _0x3f093d;}}(_0x4e865d);}}else{_0x26da05[_0x1b5a('0x15')]['log']=_0x4e865d;_0x26da05[_0x1b5a('0x15')]['warn']=_0x4e865d;_0x26da05['console']['debug']=_0x4e865d;_0x26da05['console']['info']=_0x4e865d;_0x26da05['console'][_0x1b5a('0x8d')]=_0x4e865d;_0x26da05['console'][_0x1b5a('0x75')]=_0x4e865d;_0x26da05['console'][_0x1b5a('0xa2')]=_0x4e865d;_0x26da05[_0x1b5a('0x15')]['trace']=_0x4e865d;}});_0x488245();let scriptVersionLatest='';let tyau='';let tyshj=($[_0x1b5a('0xea')]()?process[_0x1b5a('0x19')][_0x1b5a('0x101')]:$['getdata'](_0x1b5a('0x101')))||'';let UA=($['isNode']()?process[_0x1b5a('0x19')]['UA']:$[_0x1b5a('0x0')]('UA'))||'';let UAArr=[];let tyshjArr=[];let data='';let msg='';let name='';let token='';let loginBack=0x0;const User_Agents=[_0x1b5a('0x8c'),_0x1b5a('0xa5'),_0x1b5a('0xe0'),_0x1b5a('0xd1'),_0x1b5a('0xfd'),_0x1b5a('0x12d'),_0x1b5a('0x105'),_0x1b5a('0x123'),_0x1b5a('0x71'),_0x1b5a('0x74'),_0x1b5a('0x122'),_0x1b5a('0x126'),'Mozilla/5.0\x20(Linux;\x20Android\x209;\x20MHA-AL00\x20Build/HUAWEIMHA-AL00;\x20wv)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Version/4.0\x20Chrome/66.0.3359.126\x20MQQBrowser/6.2\x20TBS/044942\x20Mobile\x20Safari/537.36',_0x1b5a('0x2'),'Mozilla/5.0\x20(Linux;\x20Android\x2010;\x20LYA-AL00\x20Build/HUAWEILYA-AL00L;\x20wv)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Version/4.0\x20Chrome/77.0.3865.120\x20MQQBrowser/6.2\x20TBS/045230\x20Mobile\x20Safari/537.36',_0x1b5a('0x3'),_0x1b5a('0x5e'),_0x1b5a('0xcb'),_0x1b5a('0x48'),'Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_7\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/532.0\x20(KHTML,\x20like\x20Gecko)\x20FxiOS/18.2n0520.0\x20Mobile/50C216\x20Safari/532.0',_0x1b5a('0x97'),_0x1b5a('0x97')];let ua=User_Agents[uaNum];!(async()=>{const _0xb6f3da={};_0xb6f3da[_0x1b5a('0xd3')]=_0x1b5a('0xb3');_0xb6f3da['BmrpV']=function(_0x2e42cb,_0x2db5aa){return _0x2e42cb(_0x2db5aa);};_0xb6f3da[_0x1b5a('0x12a')]=function(_0x248403,_0x53ea4e){return _0x248403(_0x53ea4e);};_0xb6f3da[_0x1b5a('0xa8')]=function(_0x39fc0b,_0x4c9e2c){return _0x39fc0b!==_0x4c9e2c;};_0xb6f3da[_0x1b5a('0x56')]=_0x1b5a('0xc4');_0xb6f3da[_0x1b5a('0xf8')]=function(_0xfdaecc){return _0xfdaecc();};_0xb6f3da[_0x1b5a('0x16')]=_0x1b5a('0x14');_0xb6f3da[_0x1b5a('0x31')]=_0x1b5a('0x9d');_0xb6f3da[_0x1b5a('0xb1')]=function(_0x2d5421,_0x5d2e69){return _0x2d5421+_0x5d2e69;};_0xb6f3da['dmnoZ']=function(_0x57c2cd,_0x586e0d){return _0x57c2cd*_0x586e0d;};_0xb6f3da['IKCqJ']=function(_0x775bb6,_0x1dbdbc){return _0x775bb6*_0x1dbdbc;};_0xb6f3da[_0x1b5a('0x1c')]=function(_0x550c09,_0x388c4d){return _0x550c09(_0x388c4d);};_0xb6f3da[_0x1b5a('0x102')]=function(_0x4ebffd,_0x208f35){return _0x4ebffd(_0x208f35);};_0xb6f3da[_0x1b5a('0xc3')]=function(_0x38bf7a,_0x362380){return _0x38bf7a(_0x362380);};_0xb6f3da[_0x1b5a('0xf3')]=function(_0x5186f4,_0xc6c226){return _0x5186f4(_0xc6c226);};_0xb6f3da[_0x1b5a('0x120')]=function(_0x2b5d1d,_0x3e17e3){return _0x2b5d1d<_0x3e17e3;};_0xb6f3da[_0x1b5a('0x11d')]=function(_0x2121af,_0x4da8d6){return _0x2121af>=_0x4da8d6;};_0xb6f3da[_0x1b5a('0x3d')]=function(_0x51b24c,_0x1b6e1e){return _0x51b24c(_0x1b6e1e);};_0xb6f3da['iQEvA']=function(_0x2375c2,_0x4f81f9){return _0x2375c2(_0x4f81f9);};_0xb6f3da[_0x1b5a('0x7e')]=function(_0x40c9a0){return _0x40c9a0();};_0xb6f3da['LYNPN']=_0x1b5a('0x11');_0xb6f3da[_0x1b5a('0x78')]=function(_0x400038){return _0x400038();};_0xb6f3da[_0x1b5a('0xe8')]=function(_0x58ef2c,_0x3880f5,_0x2c3de9){return _0x58ef2c(_0x3880f5,_0x2c3de9);};_0xb6f3da[_0x1b5a('0xbd')]=function(_0x2a4411){return _0x2a4411();};_0xb6f3da[_0x1b5a('0xb0')]=function(_0x28ba58,_0x3ba272,_0x37c3ac){return _0x28ba58(_0x3ba272,_0x37c3ac);};_0xb6f3da[_0x1b5a('0x6c')]=function(_0x25b542,_0x34e363,_0x4dfb42){return _0x25b542(_0x34e363,_0x4dfb42);};_0xb6f3da[_0x1b5a('0x110')]=function(_0x189055,_0x461d16,_0x552da9){return _0x189055(_0x461d16,_0x552da9);};_0xb6f3da['CfjTi']=function(_0x93b197,_0x30c3f9,_0x24f066){return _0x93b197(_0x30c3f9,_0x24f066);};const _0x32b49e=_0xb6f3da;if(_0x32b49e['cGBJI'](typeof $request,_0x32b49e['LcQXN'])){await _0x32b49e[_0x1b5a('0xf8')](GetRewrite);}else{if(_0x32b49e[_0x1b5a('0xa8')](_0x32b49e[_0x1b5a('0x16')],_0x32b49e['sAQjf'])){if(result['hasOwnProperty'](_0x32b49e[_0x1b5a('0xd3')])){_0x32b49e['BmrpV'](log,'['+name+_0x1b5a('0x33')+result['msg']);msg+='\x0a['+name+_0x1b5a('0x33')+result['msg'];}else{_0x32b49e['oHroj'](log,'['+name+_0x1b5a('0x33')+result[_0x1b5a('0x8d')]);msg+='\x0a['+name+_0x1b5a('0x33')+result[_0x1b5a('0x8d')];}}else{if(!await _0x32b49e[_0x1b5a('0xf8')](Envs))return;else{if(_0x32b49e[_0x1b5a('0x31')]===_0x32b49e[_0x1b5a('0x31')]){_0x32b49e['oHroj'](log,_0x1b5a('0x10e')+new Date(_0x32b49e[_0x1b5a('0xb1')](_0x32b49e[_0x1b5a('0xb1')](new Date()[_0x1b5a('0x21')](),_0x32b49e['dmnoZ'](new Date()[_0x1b5a('0x4')]()*0x3c,0x3e8)),_0x32b49e[_0x1b5a('0x7')](_0x32b49e[_0x1b5a('0x7')](0x8,0x3c)*0x3c,0x3e8)))['toLocaleString']()+_0x1b5a('0xf7'));_0x32b49e[_0x1b5a('0x1c')](log,_0x1b5a('0xae'));_0x32b49e[_0x1b5a('0x102')](log,_0x1b5a('0x58'));await _0x32b49e[_0x1b5a('0xf8')](getVersion);_0x32b49e[_0x1b5a('0x102')](log,'\x0a============\x20当前版本:'+scriptVersion+'\x20\x20最新版本:'+scriptVersionLatest+_0x1b5a('0xa0'));_0x32b49e['oPZwj'](log,_0x1b5a('0xbf')+tyshjArr['length']+'\x20个账号\x20===================');if(debug){_0x32b49e['hUHvz'](log,'【debug】\x20这是你的全部账号数组:\x0a\x20'+tyshjArr);}for(let _0x176920=0x0;_0x32b49e[_0x1b5a('0x120')](_0x176920,tyshjArr[_0x1b5a('0xdd')]);_0x176920++){ua=User_Agents[uaNum+_0x176920];if(UA){if(_0x32b49e[_0x1b5a('0x11d')](_0x176920,UAArr[_0x1b5a('0xdd')])){let _0x28a968=UAArr[_0x1b5a('0xdd')]+randomInt(0x0,0x2);ua=User_Agents[uaNum+_0x28a968];}else ua=UAArr[_0x176920];}tyshj=tyshjArr[_0x176920];let _0x1c834d=_0x176920+0x1;_0x32b49e[_0x1b5a('0x3d')](log,_0x1b5a('0x7f')+_0x1c834d+_0x1b5a('0x113'));if(debug){_0x32b49e[_0x1b5a('0x12e')](log,'【debug】\x20这是你的第\x20'+_0x1c834d+_0x1b5a('0x116')+tyshj);}msg+=_0x1b5a('0x7d')+_0x1c834d+_0x1b5a('0x10');loginBack=0x0;await _0x32b49e[_0x1b5a('0x7e')](getToken);await $[_0x1b5a('0x12b')](randomInt(0xbb8,0x1770));if(loginBack){const _0x15e3f3=_0x32b49e[_0x1b5a('0xf6')][_0x1b5a('0xd5')]('|');let _0x290e7a=0x0;while(!![]){switch(_0x15e3f3[_0x290e7a++]){case'0':await _0x32b49e[_0x1b5a('0x78')](getBalance);continue;case'1':await getHappyStar();continue;case'2':await _0x32b49e[_0x1b5a('0x78')](doSignin);continue;case'3':await $[_0x1b5a('0x12b')](_0x32b49e[_0x1b5a('0xe8')](randomInt,0xbb8,0x1770));continue;case'4':await _0x32b49e['StrrA'](getPowerValue);continue;case'5':await $[_0x1b5a('0x12b')](_0x32b49e[_0x1b5a('0xb0')](randomInt,0xbb8,0x1770));continue;case'6':await $[_0x1b5a('0x12b')](_0x32b49e['ECDAM'](randomInt,0xbb8,0x1770));continue;case'7':await $[_0x1b5a('0x12b')](_0x32b49e['xnOWE'](randomInt,0xbb8,0x1770));continue;case'8':await $[_0x1b5a('0x12b')](_0x32b49e[_0x1b5a('0xc7')](randomInt,0xbb8,0x1770));continue;case'9':await lottery();continue;}break;}}}await SendMsg(msg);}else{log('['+name+_0x1b5a('0x8f')+result['data']['balance']+_0x1b5a('0x132'));msg+='\x0a['+name+']余额:'+result[_0x1b5a('0x18')][_0x1b5a('0xc9')]+'神力值';}}}}})()[_0x1b5a('0xc')](_0x4db9ba=>log(_0x4db9ba))[_0x1b5a('0x6f')](()=>$[_0x1b5a('0x12')]());function getToken(_0x138a59=0x2*0x3e8){const _0x576ed9={};_0x576ed9[_0x1b5a('0xc5')]=function(_0xf50a53){return _0xf50a53();};_0x576ed9[_0x1b5a('0x41')]=function(_0x4d7f84,_0x16c97b){return _0x4d7f84(_0x16c97b);};_0x576ed9['uIzOE']=function(_0x74ef59,_0x517a73){return _0x74ef59===_0x517a73;};_0x576ed9['JZxhU']='hZyhM';_0x576ed9[_0x1b5a('0xd4')]=function(_0x5bfc92,_0x3a78da){return _0x5bfc92(_0x3a78da);};_0x576ed9[_0x1b5a('0x112')]=function(_0x3e7c4e,_0x91d377){return _0x3e7c4e==_0x91d377;};_0x576ed9[_0x1b5a('0xa')]='BWXcc';_0x576ed9[_0x1b5a('0x70')]='nvZuQ';_0x576ed9[_0x1b5a('0x11b')]=_0x1b5a('0x7a');_0x576ed9['tIRYN']=function(_0x350c66,_0x48071f){return _0x350c66(_0x48071f);};_0x576ed9['LdigI']=_0x1b5a('0x115');_0x576ed9[_0x1b5a('0x23')]='application/json';const _0x5da548=_0x576ed9;const _0x4fe88a={};_0x4fe88a[_0x1b5a('0xf')]=_0x1b5a('0xb5');_0x4fe88a[_0x1b5a('0x121')]=''+ua;_0x4fe88a[_0x1b5a('0x107')]=_0x5da548[_0x1b5a('0xb9')];_0x4fe88a[_0x1b5a('0x91')]=_0x5da548[_0x1b5a('0x23')];_0x4fe88a['Content-Type']=_0x5da548['sAxpc'];_0x4fe88a[_0x1b5a('0x83')]='4';const _0x130f71={};_0x130f71[_0x1b5a('0x61')]='https://tysc.tuoketech.com/unit-one/login/wx/login';_0x130f71[_0x1b5a('0x119')]=_0x4fe88a;_0x130f71[_0x1b5a('0x4f')]=''+tyshj;let _0x41c328=_0x130f71;return new Promise(_0x4a7a9f=>{const _0x46e065={};_0x46e065[_0x1b5a('0xe9')]=function(_0x37432f,_0x243303){return _0x5da548[_0x1b5a('0x41')](_0x37432f,_0x243303);};_0x46e065[_0x1b5a('0xf1')]=function(_0x2a949f,_0x498f8a){return _0x5da548[_0x1b5a('0x5c')](_0x2a949f,_0x498f8a);};_0x46e065[_0x1b5a('0x8')]=_0x5da548[_0x1b5a('0xce')];_0x46e065['NksGY']=function(_0x2108ad,_0x5826d2){return _0x5da548[_0x1b5a('0xd4')](_0x2108ad,_0x5826d2);};_0x46e065[_0x1b5a('0x82')]=function(_0x125b15,_0x1fa03b){return _0x125b15(_0x1fa03b);};_0x46e065[_0x1b5a('0xe1')]=function(_0x20a463,_0x73c44a){return _0x5da548[_0x1b5a('0x112')](_0x20a463,_0x73c44a);};_0x46e065['BXINu']=_0x5da548[_0x1b5a('0xa')];_0x46e065[_0x1b5a('0x39')]='kMWZC';_0x46e065[_0x1b5a('0xa6')]='msg';_0x46e065[_0x1b5a('0x72')]=function(_0x46b0fa){return _0x5da548[_0x1b5a('0xc5')](_0x46b0fa);};const _0x43fe0c=_0x46e065;if(_0x5da548[_0x1b5a('0x70')]!==_0x5da548[_0x1b5a('0x11b')]){if(debug){_0x5da548[_0x1b5a('0xd4')](log,_0x1b5a('0x125'));_0x5da548[_0x1b5a('0xd')](log,JSON[_0x1b5a('0x13')](_0x41c328));}$['post'](_0x41c328,async(_0x444fb8,_0x4ab217,_0x32f729)=>{const _0x5035d6={};_0x5035d6[_0x1b5a('0x129')]=function(_0x37f82c,_0xe5f35d){return _0x43fe0c['LFndJ'](_0x37f82c,_0xe5f35d);};_0x5035d6[_0x1b5a('0x4e')]=function(_0x359ea9,_0xeba04){return _0x43fe0c[_0x1b5a('0xe9')](_0x359ea9,_0xeba04);};const _0x47224c=_0x5035d6;try{if(_0x43fe0c[_0x1b5a('0xf1')](_0x1b5a('0xf0'),_0x43fe0c[_0x1b5a('0x8')])){if(debug){_0x43fe0c[_0x1b5a('0x81')](log,_0x1b5a('0x109'));_0x43fe0c[_0x1b5a('0x82')](log,_0x32f729);}let _0x5c0d74=JSON[_0x1b5a('0x127')](_0x32f729);if(_0x43fe0c['saJaF'](_0x5c0d74[_0x1b5a('0x10c')],0x0)){token=_0x5c0d74[_0x1b5a('0x18')]['token'];name=_0x5c0d74[_0x1b5a('0x18')]['nickName'];loginBack=0x1;}else{if(_0x43fe0c[_0x1b5a('0xf5')]!==_0x43fe0c[_0x1b5a('0x39')]){if(_0x5c0d74[_0x1b5a('0xfe')](_0x43fe0c[_0x1b5a('0xa6')])){_0x43fe0c[_0x1b5a('0x82')](log,_0x1b5a('0xff')+_0x5c0d74['msg']+',退出');msg+='\x0a获取Token:失败,原因是:'+_0x5c0d74['msg']+_0x1b5a('0x55');}else{log(_0x1b5a('0xff')+_0x5c0d74[_0x1b5a('0x8d')]+_0x1b5a('0x55'));msg+='\x0a获取Token:失败,原因是:'+_0x5c0d74[_0x1b5a('0x8d')]+',退出';}loginBack=0x0;}else{_0x47224c['kkVfj'](log,_0x1b5a('0xff')+_0x5c0d74['msg']+_0x1b5a('0x55'));msg+=_0x1b5a('0x5a')+_0x5c0d74[_0x1b5a('0xb3')]+_0x1b5a('0x55');}}}else{_0x47224c[_0x1b5a('0x4e')](log,'['+name+']签到失败,原因是:'+result['error']);msg+='\x0a['+name+_0x1b5a('0xee')+result[_0x1b5a('0x8d')];}}catch(_0x123a06){_0x43fe0c[_0x1b5a('0x82')](log,_0x123a06);}finally{_0x43fe0c['KHNoz'](_0x4a7a9f);}},_0x138a59);}else{_0x5da548[_0x1b5a('0xc5')](_0x4a7a9f);}});}function doSignin(_0x537285=0x2*0x3e8){const _0x36f650={};_0x36f650[_0x1b5a('0xe3')]=function(_0x49c6fa,_0xf5b7c3){return _0x49c6fa!==_0xf5b7c3;};_0x36f650['dBLwN']=_0x1b5a('0xaf');_0x36f650[_0x1b5a('0x2f')]=function(_0x1d03ad,_0x5c4839){return _0x1d03ad(_0x5c4839);};_0x36f650[_0x1b5a('0x1a')]=_0x1b5a('0xb3');_0x36f650[_0x1b5a('0x11e')]=function(_0x277ad2,_0x50b956){return _0x277ad2(_0x50b956);};_0x36f650[_0x1b5a('0x24')]=function(_0x149abb){return _0x149abb();};_0x36f650['Azqlr']=function(_0x2f05aa,_0x543776){return _0x2f05aa(_0x543776);};_0x36f650[_0x1b5a('0x8e')]=_0x1b5a('0xb5');_0x36f650['TbNOi']='gzip,compress,br,deflate';_0x36f650[_0x1b5a('0x106')]=_0x1b5a('0x3c');const _0x11cb78=_0x36f650;const _0x400a2b={};_0x400a2b[_0x1b5a('0x130')]=''+token;_0x400a2b[_0x1b5a('0xf')]=_0x11cb78[_0x1b5a('0x8e')];_0x400a2b['user-agent']=''+ua;_0x400a2b[_0x1b5a('0x107')]=_0x11cb78[_0x1b5a('0x8a')];_0x400a2b['accept']=_0x1b5a('0x3c');_0x400a2b['Content-Type']=_0x11cb78[_0x1b5a('0x106')];_0x400a2b['app-platform-id']='4';const _0x46ceab={};_0x46ceab['url']=_0x1b5a('0xa3');_0x46ceab[_0x1b5a('0x119')]=_0x400a2b;_0x46ceab[_0x1b5a('0x4f')]='{}';let _0x46b3bf=_0x46ceab;return new Promise(_0x49e24e=>{const _0x3b5276={};_0x3b5276[_0x1b5a('0xad')]=function(_0x26b8ae,_0x93a0b3){return _0x11cb78['JYmPC'](_0x26b8ae,_0x93a0b3);};const _0x4399c3=_0x3b5276;if(debug){_0x11cb78[_0x1b5a('0x10f')](log,'\x0a【debug】===============\x20这是\x20签到\x20请求\x20url\x20===============');log(JSON[_0x1b5a('0x13')](_0x46b3bf));}$[_0x1b5a('0x52')](_0x46b3bf,async(_0x276134,_0x30afe2,_0x3a1bcd)=>{if(_0x11cb78[_0x1b5a('0xe3')](_0x11cb78['dBLwN'],_0x1b5a('0x1e'))){try{if(debug){_0x11cb78[_0x1b5a('0x2f')](log,'\x0a\x0a【debug】===============这是\x20签到\x20返回data==============');_0x11cb78[_0x1b5a('0x2f')](log,_0x3a1bcd);}let _0x3ee13a=JSON[_0x1b5a('0x127')](_0x3a1bcd);let _0xaa9d41=_0x11cb78[_0x1b5a('0x2f')](eval,_0x3ee13a['data']);if(_0x3ee13a['code']==0x0){_0x11cb78['VQsGe'](log,'['+name+_0x1b5a('0x20')+_0x3ee13a['data'][_0x1b5a('0x73')]);msg+='\x0a['+name+_0x1b5a('0x20')+_0x3ee13a[_0x1b5a('0x18')]['assetName'];}else{if(_0x3ee13a['hasOwnProperty'](_0x11cb78[_0x1b5a('0x1a')])){log('['+name+_0x1b5a('0xee')+_0x3ee13a[_0x1b5a('0xb3')]);msg+='\x0a['+name+_0x1b5a('0xee')+_0x3ee13a['msg'];}else{_0x11cb78[_0x1b5a('0x11e')](log,'['+name+_0x1b5a('0xee')+_0x3ee13a[_0x1b5a('0x8d')]);msg+='\x0a['+name+_0x1b5a('0xee')+_0x3ee13a[_0x1b5a('0x8d')];}}}catch(_0x5b30ea){log(_0x5b30ea);}finally{_0x11cb78[_0x1b5a('0x24')](_0x49e24e);}}else{_0x4399c3[_0x1b5a('0xad')](log,'['+name+_0x1b5a('0x33')+result[_0x1b5a('0x8d')]);msg+='\x0a['+name+_0x1b5a('0x33')+result[_0x1b5a('0x8d')];}},_0x537285);});}function getHappyStar(_0x26eb98=0x2*0x3e8){const _0x42fc9d={};_0x42fc9d['SnzwO']=function(_0x5da373,_0x114d8c){return _0x5da373(_0x114d8c);};_0x42fc9d[_0x1b5a('0x117')]=function(_0x5377a7,_0x234b84){return _0x5377a7!==_0x234b84;};_0x42fc9d['GKLyF']='bVMBv';_0x42fc9d[_0x1b5a('0x43')]=function(_0x1cd0cc,_0x441b9c){return _0x1cd0cc===_0x441b9c;};_0x42fc9d[_0x1b5a('0x42')]=_0x1b5a('0xa1');_0x42fc9d[_0x1b5a('0xdb')]=function(_0x211962,_0x1b45b0){return _0x211962(_0x1b45b0);};_0x42fc9d['OEzCV']=function(_0x31a95a,_0x5954cd){return _0x31a95a==_0x5954cd;};_0x42fc9d['WZfgs']=_0x1b5a('0xb3');_0x42fc9d['vNxhe']=_0x1b5a('0xa7');_0x42fc9d[_0x1b5a('0xc8')]=_0x1b5a('0xac');_0x42fc9d[_0x1b5a('0xab')]=function(_0x494975){return _0x494975();};_0x42fc9d[_0x1b5a('0x27')]=function(_0x46daf3,_0x59bb66){return _0x46daf3(_0x59bb66);};_0x42fc9d[_0x1b5a('0xd8')]='tysc.tuoketech.com';_0x42fc9d[_0x1b5a('0xe5')]=_0x1b5a('0x115');_0x42fc9d[_0x1b5a('0x64')]=_0x1b5a('0x3c');const _0x2c8651=_0x42fc9d;const _0x11a40a={};_0x11a40a[_0x1b5a('0x130')]=''+token;_0x11a40a['Host']=_0x2c8651[_0x1b5a('0xd8')];_0x11a40a[_0x1b5a('0x121')]=''+ua;_0x11a40a[_0x1b5a('0x107')]=_0x2c8651[_0x1b5a('0xe5')];_0x11a40a[_0x1b5a('0x91')]=_0x2c8651['WhEkq'];_0x11a40a[_0x1b5a('0x103')]='application/json';_0x11a40a['app-platform-id']='4';const _0x282a76={};_0x282a76[_0x1b5a('0x61')]=_0x1b5a('0xdf');_0x282a76[_0x1b5a('0x119')]=_0x11a40a;_0x282a76['body']='{}';let _0x19ffe8=_0x282a76;return new Promise(_0x218658=>{const _0x32070d={};_0x32070d['ThEgu']=function(_0x3d84b5,_0x4a0f9b){return _0x3d84b5(_0x4a0f9b);};const _0x3f0158=_0x32070d;if(debug){_0x2c8651[_0x1b5a('0x27')](log,_0x1b5a('0x6d'));_0x2c8651['Ejrql'](log,JSON[_0x1b5a('0x13')](_0x19ffe8));}$['post'](_0x19ffe8,async(_0x224e22,_0x164851,_0x221252)=>{const _0x59e05={};_0x59e05[_0x1b5a('0x11f')]=function(_0x55c623,_0x377d79){return _0x2c8651['SnzwO'](_0x55c623,_0x377d79);};const _0x44fc09=_0x59e05;if(_0x2c8651[_0x1b5a('0x117')](_0x2c8651[_0x1b5a('0x9')],'bVMBv')){_0x218658();}else{try{if(_0x2c8651['RubEn'](_0x2c8651['QvIQi'],_0x2c8651[_0x1b5a('0x42')])){if(debug){_0x2c8651[_0x1b5a('0x35')](log,_0x1b5a('0x22'));_0x2c8651[_0x1b5a('0xdb')](log,_0x221252);}let _0x599f57=JSON[_0x1b5a('0x127')](_0x221252);let _0x1321da=_0x2c8651[_0x1b5a('0xdb')](eval,_0x599f57[_0x1b5a('0x18')]);if(_0x2c8651[_0x1b5a('0x99')](_0x599f57[_0x1b5a('0x10c')],0x0)){_0x2c8651['znqgi'](log,'['+name+']浏览快乐星球:成功');msg+='\x0a['+name+_0x1b5a('0xb7');}else{if(_0x599f57[_0x1b5a('0xfe')](_0x2c8651[_0x1b5a('0xcd')])){_0x2c8651[_0x1b5a('0xdb')](log,'['+name+_0x1b5a('0x1')+_0x599f57[_0x1b5a('0xb3')]);msg+='\x0a['+name+']浏览快乐星球:失败,原因是:'+_0x599f57[_0x1b5a('0xb3')];}else{_0x2c8651[_0x1b5a('0xdb')](log,'['+name+_0x1b5a('0x1')+_0x599f57['error']);msg+='\x0a['+name+_0x1b5a('0x1')+_0x599f57[_0x1b5a('0x8d')];}}}else{_0x3f0158[_0x1b5a('0xed')](log,e);}}catch(_0x520fb1){if(_0x2c8651[_0x1b5a('0x117')](_0x2c8651[_0x1b5a('0x7c')],_0x2c8651[_0x1b5a('0xc8')])){_0x2c8651[_0x1b5a('0xdb')](log,_0x520fb1);}else{_0x44fc09['MdnsR'](log,_0x520fb1);}}finally{_0x2c8651[_0x1b5a('0xab')](_0x218658);}}},_0x26eb98);});}function getPowerValue(_0x7a8d4a=0x2*0x3e8){const _0x3bb5f4={};_0x3bb5f4[_0x1b5a('0x44')]=function(_0x4c40f0){return _0x4c40f0();};_0x3bb5f4['WudCK']=function(_0x197d69,_0x3c71b5){return _0x197d69(_0x3c71b5);};_0x3bb5f4[_0x1b5a('0x84')]=function(_0x84c4fb,_0xc20028){return _0x84c4fb(_0xc20028);};_0x3bb5f4[_0x1b5a('0x9e')]=function(_0x53d338,_0x11a945){return _0x53d338==_0x11a945;};_0x3bb5f4[_0x1b5a('0x6b')]=function(_0x47c336,_0x15427c){return _0x47c336===_0x15427c;};_0x3bb5f4[_0x1b5a('0xeb')]='uDaSi';_0x3bb5f4[_0x1b5a('0x2e')]=function(_0x1626ac,_0x1d608a){return _0x1626ac(_0x1d608a);};_0x3bb5f4[_0x1b5a('0xe2')]=function(_0x1c290b,_0x5ac9fe){return _0x1c290b!==_0x5ac9fe;};_0x3bb5f4[_0x1b5a('0x62')]='WpxXT';_0x3bb5f4[_0x1b5a('0x69')]=_0x1b5a('0x80');_0x3bb5f4[_0x1b5a('0x79')]='FRSkh';_0x3bb5f4[_0x1b5a('0x4a')]=function(_0x5ef514,_0x18cbe3){return _0x5ef514(_0x18cbe3);};_0x3bb5f4[_0x1b5a('0x87')]=_0x1b5a('0xb5');_0x3bb5f4[_0x1b5a('0x131')]=_0x1b5a('0x3c');const _0xb74aa0=_0x3bb5f4;const _0x667061={};_0x667061['token']=''+token;_0x667061['Host']=_0xb74aa0[_0x1b5a('0x87')];_0x667061[_0x1b5a('0x121')]=''+ua;_0x667061[_0x1b5a('0x107')]=_0x1b5a('0x115');_0x667061[_0x1b5a('0x91')]=_0x1b5a('0x3c');_0x667061[_0x1b5a('0x103')]=_0xb74aa0[_0x1b5a('0x131')];_0x667061[_0x1b5a('0x83')]='4';const _0x8c9a9a={};_0x8c9a9a[_0x1b5a('0x61')]=_0x1b5a('0x77');_0x8c9a9a[_0x1b5a('0x119')]=_0x667061;_0x8c9a9a['body']='{}';let _0x17daae=_0x8c9a9a;return new Promise(_0x1ee9e7=>{const _0x3c00b8={};_0x3c00b8[_0x1b5a('0x7b')]=function(_0x56574d){return _0xb74aa0['nxlye'](_0x56574d);};_0x3c00b8[_0x1b5a('0xfa')]=function(_0x5dd5e1,_0x5f874d){return _0xb74aa0[_0x1b5a('0x9a')](_0x5dd5e1,_0x5f874d);};_0x3c00b8[_0x1b5a('0x46')]=function(_0xea2683,_0x543536){return _0xea2683(_0x543536);};_0x3c00b8[_0x1b5a('0xd7')]=function(_0x3f0aa1,_0x45cc28){return _0x3f0aa1(_0x45cc28);};_0x3c00b8[_0x1b5a('0x37')]=function(_0x23003f,_0x3aec75){return _0xb74aa0[_0x1b5a('0x84')](_0x23003f,_0x3aec75);};_0x3c00b8[_0x1b5a('0xec')]=function(_0x2aa4ab,_0x3ea2e0){return _0x2aa4ab(_0x3ea2e0);};_0x3c00b8[_0x1b5a('0x40')]=function(_0x4d0152,_0x2d5d51){return _0xb74aa0[_0x1b5a('0x9e')](_0x4d0152,_0x2d5d51);};_0x3c00b8['oGzRy']=function(_0x38545a,_0x2637b4){return _0xb74aa0[_0x1b5a('0x6b')](_0x38545a,_0x2637b4);};_0x3c00b8[_0x1b5a('0x12f')]=_0xb74aa0['rCJWt'];_0x3c00b8['FTliM']=function(_0x2d4530,_0xe95718){return _0xb74aa0['tASNm'](_0x2d4530,_0xe95718);};_0x3c00b8[_0x1b5a('0x3e')]=function(_0x3c8f58,_0x47f06a){return _0xb74aa0[_0x1b5a('0xe2')](_0x3c8f58,_0x47f06a);};_0x3c00b8[_0x1b5a('0x5b')]='GWdgu';_0x3c00b8[_0x1b5a('0x133')]=_0x1b5a('0x2c');_0x3c00b8[_0x1b5a('0x3a')]=_0xb74aa0[_0x1b5a('0x62')];const _0x8528d7=_0x3c00b8;if(debug){if(_0xb74aa0[_0x1b5a('0x6b')](_0xb74aa0['jfoNl'],_0xb74aa0[_0x1b5a('0x79')])){_0x8528d7[_0x1b5a('0x7b')](_0x1ee9e7);}else{_0xb74aa0[_0x1b5a('0x2e')](log,'\x0a【debug】===============\x20这是\x20领取快乐星球\x20请求\x20url\x20===============');_0xb74aa0[_0x1b5a('0x4a')](log,JSON[_0x1b5a('0x13')](_0x17daae));}}$[_0x1b5a('0x52')](_0x17daae,async(_0x3f5e8a,_0x3f0266,_0x515aa4)=>{const _0x422c7f={};_0x422c7f[_0x1b5a('0x100')]=function(_0x9f6189,_0x57d164){return _0x8528d7[_0x1b5a('0x46')](_0x9f6189,_0x57d164);};const _0x26676a=_0x422c7f;try{if(debug){_0x8528d7[_0x1b5a('0xd7')](log,_0x1b5a('0xd2'));_0x8528d7['HLqqE'](log,_0x515aa4);}let _0xed78d9=JSON[_0x1b5a('0x127')](_0x515aa4);let _0x49a8d9=_0x8528d7[_0x1b5a('0xec')](eval,_0xed78d9['data']);if(_0x8528d7[_0x1b5a('0x40')](_0xed78d9[_0x1b5a('0x10c')],0x0)){_0x8528d7[_0x1b5a('0xec')](log,'['+name+_0x1b5a('0x11c'));msg+='\x0a['+name+']领取快乐星球:成功';}else{if(_0x8528d7[_0x1b5a('0x90')](_0x8528d7['XLOHU'],_0x8528d7['XLOHU'])){if(_0xed78d9[_0x1b5a('0xfe')](_0x1b5a('0xb3'))){if(_0x8528d7['oGzRy'](_0x1b5a('0x96'),_0x1b5a('0x96'))){_0x8528d7['FTliM'](log,'['+name+_0x1b5a('0xf9')+_0xed78d9[_0x1b5a('0xb3')]);msg+='\x0a['+name+']领取快乐星球:失败,原因是:'+_0xed78d9[_0x1b5a('0xb3')];}else{_0x26676a[_0x1b5a('0x100')](log,'['+name+_0x1b5a('0xf9')+_0xed78d9['error']);msg+='\x0a['+name+_0x1b5a('0xf9')+_0xed78d9[_0x1b5a('0x8d')];}}else{if(_0x8528d7[_0x1b5a('0x3e')](_0x8528d7[_0x1b5a('0x5b')],_0x8528d7['gzGnD'])){_0x8528d7['FTliM'](log,'['+name+_0x1b5a('0xf9')+_0xed78d9['error']);msg+='\x0a['+name+_0x1b5a('0xf9')+_0xed78d9[_0x1b5a('0x8d')];}else{const _0x52af6a={};_0x52af6a[_0x1b5a('0x53')]=func;_0x52af6a['warn']=func;_0x52af6a[_0x1b5a('0x128')]=func;_0x52af6a['info']=func;_0x52af6a[_0x1b5a('0x8d')]=func;_0x52af6a[_0x1b5a('0x75')]=func;_0x52af6a[_0x1b5a('0xa2')]=func;_0x52af6a['trace']=func;return _0x52af6a;}}}else{_0x8528d7['ybuzF'](log,'['+name+_0x1b5a('0x11c'));msg+='\x0a['+name+_0x1b5a('0x11c');}}}catch(_0xc7edfa){log(_0xc7edfa);}finally{if(_0x8528d7[_0x1b5a('0x3a')]===_0x1b5a('0x6')){_0x8528d7['PZdmp'](_0x1ee9e7);}else{const _0x56cc61=firstCall?function(){if(fn){const _0x425478=fn[_0x1b5a('0xbc')](context,arguments);fn=null;return _0x425478;}}:function(){};firstCall=![];return _0x56cc61;}}},_0x7a8d4a);});}function lottery(_0x2aef62=0x2*0x3e8){const _0x4f820e={};_0x4f820e[_0x1b5a('0x89')]=function(_0x14a65f,_0x5854c6){return _0x14a65f(_0x5854c6);};_0x4f820e['MVQeN']=function(_0x40b55a,_0x48838f){return _0x40b55a===_0x48838f;};_0x4f820e[_0x1b5a('0xcc')]=_0x1b5a('0xef');_0x4f820e[_0x1b5a('0x93')]=function(_0xea1aca,_0x5ea6e7){return _0xea1aca(_0x5ea6e7);};_0x4f820e[_0x1b5a('0x4c')]=function(_0x573c8c,_0x1127a2){return _0x573c8c(_0x1127a2);};_0x4f820e[_0x1b5a('0x12c')]='msg';_0x4f820e[_0x1b5a('0x9c')]=_0x1b5a('0xde');_0x4f820e[_0x1b5a('0x1b')]=function(_0xeea96f,_0x308542){return _0xeea96f(_0x308542);};_0x4f820e['wJeVr']=function(_0x261d3c){return _0x261d3c();};_0x4f820e[_0x1b5a('0x108')]=function(_0x30a9c5,_0x5e78ab){return _0x30a9c5(_0x5e78ab);};_0x4f820e[_0x1b5a('0x2b')]=function(_0x1e19d4,_0x3f03eb){return _0x1e19d4(_0x3f03eb);};_0x4f820e['fOyws']=function(_0x330600,_0x32d29c){return _0x330600===_0x32d29c;};_0x4f820e[_0x1b5a('0xd9')]=_0x1b5a('0x92');_0x4f820e[_0x1b5a('0x10d')]=function(_0x218bb1,_0x56115a){return _0x218bb1(_0x56115a);};_0x4f820e[_0x1b5a('0x25')]=_0x1b5a('0x115');_0x4f820e[_0x1b5a('0x76')]=_0x1b5a('0x3c');const _0x4e2cba=_0x4f820e;const _0x113d38={};_0x113d38['token']=''+token;_0x113d38[_0x1b5a('0xf')]='tysc.tuoketech.com';_0x113d38[_0x1b5a('0x121')]=''+ua;_0x113d38['accept-encoding']=_0x4e2cba[_0x1b5a('0x25')];_0x113d38[_0x1b5a('0x91')]=_0x4e2cba[_0x1b5a('0x76')];_0x113d38[_0x1b5a('0x103')]=_0x4e2cba[_0x1b5a('0x76')];_0x113d38['app-platform-id']='4';const _0x527d70={};_0x527d70['url']=_0x1b5a('0x3f');_0x527d70['headers']=_0x113d38;_0x527d70[_0x1b5a('0x4f')]=_0x1b5a('0xcf');let _0x2cda6e=_0x527d70;return new Promise(_0x2f5516=>{const _0x5568ab={};_0x5568ab['QJVKZ']=function(_0x360e33,_0x53574a){return _0x4e2cba['sWLZB'](_0x360e33,_0x53574a);};_0x5568ab[_0x1b5a('0x49')]=function(_0x469de4,_0x47e534){return _0x4e2cba[_0x1b5a('0x2b')](_0x469de4,_0x47e534);};const _0x2b2ea5=_0x5568ab;if(debug){if(_0x4e2cba[_0x1b5a('0x67')](_0x4e2cba[_0x1b5a('0xd9')],_0x4e2cba['wQeOH'])){_0x4e2cba[_0x1b5a('0x2b')](log,_0x1b5a('0x57'));_0x4e2cba[_0x1b5a('0x10d')](log,JSON[_0x1b5a('0x13')](_0x2cda6e));}else{_0x2b2ea5[_0x1b5a('0xba')](log,_0x1b5a('0x22'));_0x2b2ea5[_0x1b5a('0x49')](log,data);}}$[_0x1b5a('0x52')](_0x2cda6e,async(_0x12d161,_0xdca4db,_0x4c9fe1)=>{const _0x83f479={};_0x83f479[_0x1b5a('0x135')]=function(_0x430851,_0x37fe82){return _0x4e2cba['YijVb'](_0x430851,_0x37fe82);};const _0x1fc388=_0x83f479;try{if(debug){if(_0x4e2cba[_0x1b5a('0x5f')](_0x4e2cba[_0x1b5a('0xcc')],_0x4e2cba[_0x1b5a('0xcc')])){_0x4e2cba[_0x1b5a('0x93')](log,_0x1b5a('0xb4'));_0x4e2cba[_0x1b5a('0x93')](log,_0x4c9fe1);}else{_0x1fc388[_0x1b5a('0x135')](log,'['+name+_0x1b5a('0x33')+_0x585ce7[_0x1b5a('0xb3')]);msg+='\x0a['+name+_0x1b5a('0x33')+_0x585ce7['msg'];}}let _0x585ce7=JSON[_0x1b5a('0x127')](_0x4c9fe1);let _0x2afa13=eval(_0x585ce7[_0x1b5a('0x18')]);if(_0x585ce7[_0x1b5a('0x10c')]==0x0){_0x4e2cba[_0x1b5a('0x4c')](log,'['+name+_0x1b5a('0x10b')+_0x585ce7[_0x1b5a('0x18')]['assetName']);msg+='\x0a['+name+_0x1b5a('0x10b')+_0x585ce7[_0x1b5a('0x18')][_0x1b5a('0x73')];}else{if(_0x585ce7[_0x1b5a('0xfe')](_0x4e2cba[_0x1b5a('0x12c')])){_0x4e2cba[_0x1b5a('0x4c')](log,'['+name+_0x1b5a('0x33')+_0x585ce7['msg']);msg+='\x0a['+name+']抽奖失败,原因是:'+_0x585ce7[_0x1b5a('0xb3')];}else{_0x4e2cba['irRcP'](log,'['+name+_0x1b5a('0x33')+_0x585ce7[_0x1b5a('0x8d')]);msg+='\x0a['+name+']抽奖失败,原因是:'+_0x585ce7[_0x1b5a('0x8d')];}}}catch(_0x4cfab0){if(_0x4e2cba['WLkfl']===_0x1b5a('0xde')){_0x4e2cba[_0x1b5a('0x1b')](log,_0x4cfab0);}else{const _0xde84cb=fn[_0x1b5a('0xbc')](context,arguments);fn=null;return _0xde84cb;}}finally{_0x4e2cba[_0x1b5a('0x9b')](_0x2f5516);}},_0x2aef62);});}function getBalance(_0x4dd962=0x2*0x3e8){const _0x14d6cf={};_0x14d6cf['IsWtT']=function(_0x5bcb45){return _0x5bcb45();};_0x14d6cf[_0x1b5a('0x124')]=function(_0x57134b,_0x31e99b){return _0x57134b!==_0x31e99b;};_0x14d6cf[_0x1b5a('0x28')]='paQJw';_0x14d6cf[_0x1b5a('0xca')]='WDugR';_0x14d6cf[_0x1b5a('0xe7')]=function(_0x142580,_0x1e1a74){return _0x142580!==_0x1e1a74;};_0x14d6cf['zzsYi']=_0x1b5a('0x1f');_0x14d6cf[_0x1b5a('0xb6')]=function(_0x3918b2,_0x46776b){return _0x3918b2(_0x46776b);};_0x14d6cf[_0x1b5a('0xf4')]=_0x1b5a('0xb3');_0x14d6cf[_0x1b5a('0xc6')]=function(_0x121d2e,_0x112fc5){return _0x121d2e(_0x112fc5);};_0x14d6cf['CAAGY']=function(_0x16318a,_0x2f1902){return _0x16318a===_0x2f1902;};_0x14d6cf[_0x1b5a('0x6e')]=_0x1b5a('0x3b');_0x14d6cf[_0x1b5a('0x4d')]=function(_0x52f054,_0x4c43b3){return _0x52f054(_0x4c43b3);};_0x14d6cf[_0x1b5a('0x34')]=function(_0x16a2dc,_0x5c7b9a){return _0x16a2dc(_0x5c7b9a);};_0x14d6cf[_0x1b5a('0x60')]=function(_0x1f7897,_0x3bee5e){return _0x1f7897(_0x3bee5e);};_0x14d6cf[_0x1b5a('0x11a')]=function(_0x1cba00,_0x5c8f3e){return _0x1cba00(_0x5c8f3e);};_0x14d6cf[_0x1b5a('0x26')]=function(_0x1c884d,_0x552d1f){return _0x1c884d(_0x552d1f);};_0x14d6cf[_0x1b5a('0xfb')]=_0x1b5a('0xb5');_0x14d6cf[_0x1b5a('0xd6')]=_0x1b5a('0x3c');const _0x593c81=_0x14d6cf;const _0x33844d={};_0x33844d['token']=''+token;_0x33844d['Host']=_0x593c81[_0x1b5a('0xfb')];_0x33844d[_0x1b5a('0x121')]=''+ua;_0x33844d['accept-encoding']='gzip,compress,br,deflate';_0x33844d[_0x1b5a('0x91')]=_0x1b5a('0x3c');_0x33844d[_0x1b5a('0x103')]=_0x593c81[_0x1b5a('0xd6')];_0x33844d[_0x1b5a('0x83')]='4';const _0x305bb0={};_0x305bb0[_0x1b5a('0x61')]=_0x1b5a('0x86');_0x305bb0[_0x1b5a('0x119')]=_0x33844d;_0x305bb0[_0x1b5a('0x4f')]='{\x22direction\x22:0,\x22pageNum\x22:1,\x22pageSize\x22:3}';let _0x25ee44=_0x305bb0;return new Promise(_0x2c5637=>{const _0x10b65a={};_0x10b65a[_0x1b5a('0x63')]=function(_0x57602f,_0x36a9b1){return _0x593c81[_0x1b5a('0x34')](_0x57602f,_0x36a9b1);};_0x10b65a[_0x1b5a('0xc1')]=function(_0x6a5d4f,_0x32fd63){return _0x593c81['tetcI'](_0x6a5d4f,_0x32fd63);};const _0x33e3fe=_0x10b65a;if(debug){_0x593c81[_0x1b5a('0x11a')](log,_0x1b5a('0x134'));_0x593c81[_0x1b5a('0x26')](log,JSON[_0x1b5a('0x13')](_0x25ee44));}$[_0x1b5a('0x52')](_0x25ee44,async(_0x43ca70,_0x29adef,_0x2dc202)=>{const _0x4b40b7={};_0x4b40b7['aVqRg']=function(_0xa9ad89){return _0x593c81[_0x1b5a('0xb2')](_0xa9ad89);};const _0x3105ce=_0x4b40b7;if(_0x593c81[_0x1b5a('0x124')](_0x593c81['PaVir'],_0x593c81[_0x1b5a('0xca')])){try{if(debug){if(_0x593c81['InOVi'](_0x1b5a('0x1f'),_0x593c81[_0x1b5a('0x114')])){_0x3105ce[_0x1b5a('0xbb')](_0x2c5637);}else{_0x593c81[_0x1b5a('0xb6')](log,'\x0a\x0a【debug】===============这是\x20查询余额\x20返回data==============');log(_0x2dc202);}}let _0x30af13=JSON[_0x1b5a('0x127')](_0x2dc202);let _0x40df4b=eval(_0x30af13[_0x1b5a('0x18')]);if(_0x30af13[_0x1b5a('0x10c')]==0x0){_0x593c81['JqnXS'](log,'['+name+_0x1b5a('0x8f')+_0x30af13[_0x1b5a('0x18')][_0x1b5a('0xc9')]+_0x1b5a('0x132'));msg+='\x0a['+name+_0x1b5a('0x8f')+_0x30af13[_0x1b5a('0x18')]['balance']+_0x1b5a('0x132');}else{if(_0x30af13[_0x1b5a('0xfe')](_0x593c81[_0x1b5a('0xf4')])){if(_0x1b5a('0x47')==='iuxfZ'){_0x593c81[_0x1b5a('0xb6')](log,'['+name+_0x1b5a('0x85')+_0x30af13[_0x1b5a('0xb3')]);msg+='\x0a['+name+_0x1b5a('0x85')+_0x30af13[_0x1b5a('0xb3')];}else{_0x33e3fe[_0x1b5a('0x63')](log,e);}}else{_0x593c81[_0x1b5a('0xc6')](log,'['+name+_0x1b5a('0x85')+_0x30af13[_0x1b5a('0x8d')]);msg+='\x0a['+name+_0x1b5a('0x85')+_0x30af13['error'];}}}catch(_0x4f8461){if(_0x593c81[_0x1b5a('0x8b')](_0x593c81[_0x1b5a('0x6e')],_0x593c81[_0x1b5a('0x6e')])){_0x593c81[_0x1b5a('0x4d')](log,_0x4f8461);}else{globalObject=window;}}finally{_0x2c5637();}}else{_0x33e3fe['kGLtI'](log,_0x1b5a('0xe6'));_0x33e3fe[_0x1b5a('0xc1')](log,_0x2dc202);}},_0x4dd962);});}
// ============================================重写============================================ \\
async function GetRewrite() {
if ($request.url.indexOf("in/log") > -1) {
let ck = $request.body;
if (tyshj) {
if (tyshj.indexOf(ck) == -1) {
tyshj = tyshj + "@" + ck;
$.setdata(tyshj, "tyshj");
let List = tyshj.split("@");
$.msg(
$.name +
` 获取第${List.length}个 ck 成功: ${ck} ,不用请自行关闭重写!`
);
}
} else {
$.setdata(ck, "tyshj");
$.msg($.name + ` 获取第1个 ck 成功: ${ck} ,不用请自行关闭重写!`);
}
}
}
// ============================================变量检查============================================ \\
async function Envs() {
if (UA) {
if (UA.indexOf("@") != -1) {
UA.split("@").forEach((item) => {
UAArr.push(item);
});
} else if (UA.indexOf("\n") != -1) {
UA.split("\n").forEach((item) => {
UAArr.push(item);
});
} else {
UAArr.push(UA);
}
}
if (tyshj) {
if (tyshj.indexOf("@") != -1) {
tyshj.split("@").forEach((item) => {
tyshjArr.push(item);
});
} else if (tyshj.indexOf("\n") != -1) {
tyshj.split("\n").forEach((item) => {
tyshjArr.push(item);
});
} else {
tyshjArr.push(tyshj);
}
} else {
log(`\n 【${$.name}】:未填写变量 tyshj`);
return;
}
return true;
}
// ============================================发送消息============================================ \\
async function SendMsg(message) {
if (!message) return;
if (Notify > 0) {
if ($.isNode()) {
var notify = require("./sendNotify");
await notify.sendNotify($.name, message);
} else {
$.msg(message);
}
} else {
log(message);
}
}
/**
* 随机数生成
*/
function randomString(e) {
e = e || 32;
var t = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890",
a = t.length,
n = "";
for (i = 0; i < e; i++) n += t.charAt(Math.floor(Math.random() * a));
return n;
}
/**
* 随机整数生成
*/
function randomInt(min, max) {
return Math.round(Math.random() * (max - min) + min);
}
/**
* 获取毫秒时间戳
*/
function timestampMs() {
return new Date().getTime();
}
/**
* 获取秒时间戳
*/
function timestampS() {
return Date.parse(new Date()) / 1000;
}
/**
* 获取随机诗词
*/
function poem(timeout = 3 * 1000) {
return new Promise((resolve) => {
let url = {
url: `https://v1.jinrishici.com/all.json`,
};
$.get(
url,
async (err, resp, data) => {
try {
data = JSON.parse(data);
log(`${data.content} \n————《${data.origin}》${data.author}`);
} catch (e) {
log(e, resp);
} finally {
resolve();
}
},
timeout
);
});
}
/**
* 修改配置文件
*/
function modify() {
fs.readFile("/ql/data/config/config.sh", "utf8", function (err, dataStr) {
if (err) {
return log("读取文件失败!" + err);
} else {
var result = dataStr.replace(
//g,
``
);
fs.writeFile("/ql/data/config/config.sh", result, "utf8", function (err) {
if (err) {
return log(err);
}
});
}
});
}
/**
* 休眠
*/
function sleep(timeout) {
return new Promise((resolve) => setTimeout(resolve, timeout));
}
/**
* 获取远程版本
*/
function getVersion(timeout = 3 * 1000) {
return new Promise((resolve) => {
let url = {
url: `https://raw.gh.fakev.cn/LinYuanovo/scripts/main/tyshj.js`,
}
$.get(url, async (err, resp, data) => {
try {
scriptVersionLatest = data.match(/scriptVersion = "([\d\.]+)"/)[1]
} catch (e) {
$.logErr(e, resp);
} finally {
resolve()
}
}, timeout)
})
}
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let i = { "M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) } } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }