diff --git a/ttl2.js b/ttl2.js index 1905b57..b6018e6 100644 --- a/ttl2.js +++ b/ttl2.js @@ -6,8 +6,10 @@ export ttlaccount='' 手机号码#密码 ,多账号@隔开 export ttldh='' 兑换类型,@分割 633=10元手机话费(仅电信用户) 631=30元手机话费(仅移动用户) 62=5元手机话费(仅联通用户) 61=2元手机话费(仅联通用户) ========== -密码 a789654 + [task_local] +0 8-20 * * * task ttl.js +(日常跑一次就行,兑换时可以多跑几次,8-9点会签到分享,其他时间只兑换) 一天2次 */ -const L=O;(function(n,j){const f=O,G=n();while(!![]){try{const N=parseInt(f(0x1d2))/0x1+-parseInt(f(0x1c9))/0x2+parseInt(f(0x1be))/0x3*(-parseInt(f(0x1fd))/0x4)+-parseInt(f(0x1dd))/0x5*(parseInt(f(0x1c6))/0x6)+-parseInt(f(0x1ba))/0x7*(-parseInt(f(0x1cc))/0x8)+-parseInt(f(0x22e))/0x9+-parseInt(f(0x1a4))/0xa*(-parseInt(f(0x21d))/0xb);if(N===j)break;else G['push'](G['shift']());}catch(E){G['push'](G['shift']());}}}(X,0x553df));const $=new Env(L(0x1c1));var request=require(L(0x1a5));let status;status=(status=$[L(0x218)](L(0x235))||'1')>0x1?''+status:'';let giftAmount,giftNames,giftPrice,date,ttlaccounts='',ttlaccountArr=[],ttldhs='',ttldhArr=[],ttlaccount=$[L(0x1ce)]()?process[L(0x1b2)]['ttlaccount']?process['env']['ttlaccount']:'':$['getdata'](L(0x23e))?$['getdata'](L(0x23e)):'';const ttldh=$[L(0x1ce)]()?process[L(0x1b2)][L(0x1a2)]?process[L(0x1b2)]['ttldh']:'':$['getdata'](L(0x1a2))?$[L(0x208)]('ttldh'):'';let stockPrice=0x0,stockAmount2,stockName='',message='',ttlhds='';const logs=0x0,host=L(0x1af);var hours=new Date()[L(0x1e6)](),s=new Date()[L(0x1cf)](),timestamp=Math[L(0x228)](new Date()['getTime']()/0x3e8)[L(0x1c0)]();!(async()=>{const o=L;if(typeof $request!==o(0x1b5)){}else{if(!await checkEnv())return;console['log']('共'+ttlaccountArr[o(0x19c)]+o(0x1e3)),giftAmount={},giftNames={},giftPrice={},await ttl_gift();for(let n=0x0;n$[L(0x202)](n))[L(0x1fe)](()=>$[L(0x1d7)]());function O(n,j){const G=X();return O=function(N,E){N=N-0x18b;let I=G[N];return I;},O(n,j);}async function checkEnv(){const m=L;if(ttlaccount)for(let n of ttlaccount['split']('@')){if(n)ttlaccountArr[m(0x1a3)](n);}else return console[m(0x1da)](m(0x19b)),![];if(ttldh)for(let j of ttldh['split']('@')){if(j)ttldhArr['push'](j);}else return console[m(0x1da)](m(0x199)),![];return!![];}function ttlck(){const A=L;if($request['url'][A(0x1b4)](A(0x22f))>-0x1){const n=$request[A(0x1bb)][A(0x1e5)];if(n)$[A(0x18c)](n,A(0x203)+status);$[A(0x1da)](n),$[A(0x1a9)]($[A(0x1f0)],'',A(0x1c1)+(''+n)+A(0x1fc));}}async function ttl_gift(){const t=L;let n=t(0x1f2),j=populateUrlObject(n);await httpRequest(t(0x1e4),j);if(!httpResult||httpResult['statusCode']!=0xc8)return;let G=JSON[t(0x1b7)](httpResult['body']);if(!G)return;const N=G[t(0x1d9)];let E='';for(let I of N){const i=parseInt(I[t(0x1cb)]),c=I[t(0x19f)],l=I[t(0x20b)],z=parseInt(I[t(0x213)]);E+=c+t(0x1a8)+l+',\x20库存:\x20'+i+',\x20积分:\u3000'+z+'\x0a',giftAmount[l]=i,giftNames[l]=c,giftPrice[l]=z;}$[t(0x1da)](''+E);}async function ttl_login(){const y=L;let n='http://www.ttljf.com/ttl_site/user.do',j=y(0x232)+user+'&password='+pwd+y(0x224),G=populateUrlObject(n,j);await httpRequest(y(0x237),G);if(!httpResult||httpResult[y(0x225)]!=0xc8)return;let N=JSON[y(0x1b7)](httpResult[y(0x1bb)]);if(!N)return;if(N[y(0x233)]==='0000')$[y(0x1e5)]=N[y(0x194)][y(0x22b)],$['userId']=N[y(0x194)]['userId'],$[y(0x18b)]=N[y(0x194)]['userName'],$[y(0x240)]=N[y(0x194)][y(0x240)],console[y(0x1da)]('token:'+$['token']+y(0x214)+$[y(0x240)]),$[y(0x18c)]($[y(0x240)],date+'_'+user),console['log'](y(0x19e)),mobile=N[y(0x194)][y(0x1b3)],console[y(0x1da)](y(0x193)+N['message']),message+=y(0x205)+$['userName']+'('+mobile+')\x20\x0a【登录信息】\x20'+N[y(0x23b)]+y(0x215)+$[y(0x240)];else $['log'](y(0x23d)+N[y(0x23b)]);}async function blog(){return new Promise(n=>{const v=O;body={'id':v(0x21f),'type':v(0x195)},request[v(0x1d1)](ttl(v(0x230),body),function(j,G,N){const h=v;try{j&&(console['log'](''+JSON[h(0x22a)](err)),console[h(0x1da)]($['name']+h(0x1ac)));data=JSON[h(0x1b7)](N);if(data[h(0x233)]==0x0)console[h(0x1da)]('\x0a分享任务:'+data[h(0x23b)]);else data[h(0x233)]!=0x0&&console['log']('\x0a分享任务:'+data[h(0x23b)]);}catch(E){$[h(0x202)](E,resp);}finally{n(data);}});});}async function sign(){return new Promise(n=>{request['put'](ttl('user/api/sign/today',''),function(j,G,N){const g=O;try{j&&(console[g(0x1da)](''+JSON[g(0x22a)](err)),console[g(0x1da)]($['name']+g(0x1ac)));data=JSON[g(0x1b7)](N);if(data['code']==0x0)console['log'](g(0x1ed)+data[g(0x23b)]);else data['code']!=0x0&&console[g(0x1da)]('\x0a签到任务:'+data[g(0x23b)]);}catch(E){$['logErr'](E,resp);}finally{n(data);}});});}async function my(){const a=L;let n='https://www.ttljf.com/ttl_chefHub/user/api/my',j=populateUrlObject(n);await httpRequest('get',j);if(!httpResult||httpResult[a(0x225)]!=0xc8)return;let G=JSON['parse'](httpResult[a(0x1bb)]);if(!G)return;if(G[a(0x233)]==0x0){let N=G['data'][a(0x240)];console[a(0x1da)](a(0x23c)+G[a(0x1d8)]['userName']+a(0x20d)+N);if(N>=stockPrice&&stockAmount>0x0)console[a(0x1da)](a(0x1a7)+stockName),$['setdata']($[a(0x240)]-stockPrice,date+'_'+user);else console['log'](a(0x1b8)+stockName+a(0x216)+stockAmount2);}}function ttl(n,j){const Y=L;return{'url':''+host+n,'body':''+j,'headers':{'Host':Y(0x1c2),'Accept':Y(0x1e7),'content-type':Y(0x1ea),'token':$[Y(0x1e5)],'X-Requested-With':Y(0x18e),'Accept-Encoding':Y(0x198),'User-Agent':Y(0x1c8),'Referer':Y(0x1ee)}};}function populateUrlObject(n,j=''){const W=L;let G=n[W(0x201)]('//','/')[W(0x1c4)]('/')[0x1],N={'url':n,'headers':{'Host':G,'Accept':W(0x1e7),'content-type':'application/json','token':$['token'],'X-Requested-With':W(0x18e),'Accept-Encoding':'gzip,compress,br,deflate','User-Agent':W(0x1c8),'Referer':W(0x1ee)}};if(j)N[W(0x1bb)]=j;return N;}function X(){const XI=['round','mediaUrl','stringify','loginToken','POST','getMonth','3691521UxVpGb','user/api/my','Common/share/A35D575F-C004-4717-AABC-ED9D1979C3FA/blog','tough-cookie','mthd=login&username=','code','GET','ttlstatus','string','post','valueForKey','send','join','message','用户:','登录失败\x20:','ttlaccount','lodash_set','integral','ckjar','userName','setdata','openUrl','XMLHttpRequest','call','url','*/*','path','登录信息\x20','user','blog','服务器访问数据为空,请检查自身设备网络情况','lodash_get','gzip,compress,br,deflate','未设置兑换商品代码:ttldh','dataFile','未找到ttlaccount','length','got','设置当天积分缓存成功!','giftName','time','getMilliseconds','ttldh','push','34940ZjHzqQ','request','isLoon','积分达到兑换标准,尝试开始兑换','\x20id:\x20','msg','assign','opts','\x20API请求失败,请检查网路重试','existsSync',',\x20开始!','https://www.ttljf.com/ttl_chefHub/','getjson','toStr','env','mobile','indexOf','undefined','reduce','parse','设置兑换','toObj','1734719DVBnxy','body','box.dat','concat','2020341effpfd','CookieJar','toString','太太乐','www.ttljf.com','exports','split','exec','354kLobnL','getSeconds','Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2014_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148\x20MicroMessenger/8.0.14(0x18000e2f)\x20NetType/4G\x20Language/zh_CN','31526jyhutT','cookieJar','stockAmount','8LxrZKL','set-cookie','isNode','getMinutes','http','put','23092ymcXJh','substr','read','open-url','Cookie','done','data','gifts','log','请求失败','@chavy_boxjs_userCfgs.httpapi','38185liydYT','isSurge','getScript','/v1/scripting/evaluate','test','writeFileSync','个cookie','get','token','getHours','application/json,\x20text/plain,\x20*/*','setValueForKey','timeout','application/json','trim','isNeedRewrite','\x0a签到任务:','https://servicewechat.com/wxe9aa8f1c4a77ddf5/17/page-frame.html','headers','name','then','http://www.ttljf.com/ttl_site/giftApi.do?mthd=searchGift&giftCategoryId=7&pageNo=1&pageSize=8','resolve','loaddata','wait','startTime','method','setjson','isQuanX','object','cktough','数据获取成功!','4IJLJgr','finally','stack','isMuteLog','replace','logErr','ttlhd','runScript','\x0a【账号】\x20','Content-Type','initGotEnv','getdata','logs','status','giftId','setval','\x20积分\x20','@chavy_boxjs_userCfgs.httpapi_timeout','application/x-www-form-urlencoded','index','Content-Length','http://','price','\x20积分:','\x20\x0a【积分】\x20','\x20库存:','fetch','getval','isArray','writedata','floor','logSeparator','5126IqDedw',',\x20结束!\x20🕛\x20','A35D575F-C004-4717-AABC-ED9D1979C3FA','null','isMute',',\x20错误!','请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie','&platform=android','statusCode','abs','media-url'];X=function(){return XI;};return X();}async function httpRequest(n,j){return httpResult=null,new Promise(G=>{$[n](j,async(N,E,I)=>{const r=O;try{N?(console[r(0x1da)](n+r(0x1db)),console[r(0x1da)](JSON[r(0x22a)](N)),$[r(0x202)](N)):httpResult=E;}catch(i){$['logErr'](i,E);}finally{G();}});});}function SafeGet(n){const k=L;try{if(typeof JSON[k(0x1b7)](n)=='object')return!![];else console['log'](n);}catch(j){return console[k(0x1da)](j),console[k(0x1da)](k(0x196)),![];}}function jsonParse(n){const S=L;if(typeof n==S(0x236))try{return JSON[S(0x1b7)](n);}catch(j){return console['log'](j),$[S(0x1a9)]($['name'],'',S(0x223)),[];}}function Env(n,j){const H=L;class G{constructor(N){this['env']=N;}[H(0x239)](N,E=H(0x234)){const p=H;N=p(0x236)==typeof N?{'url':N}:N;let I=this[p(0x1e4)];return p(0x22c)===E&&(I=this[p(0x237)]),new Promise((c,l)=>{const Z=p;I[Z(0x18f)](this,N,(z,x,K)=>{z?l(z):c(x);});});}[H(0x1e4)](N){const V=H;return this[V(0x239)]['call'](this['env'],N);}[H(0x237)](N){const M=H;return this[M(0x239)][M(0x18f)](this['env'],N,M(0x22c));}}return new class{constructor(N,E){const T=H;this[T(0x1f0)]=N,this[T(0x1d0)]=new G(this),this[T(0x1d8)]=null,this['dataFile']=T(0x1bc),this[T(0x209)]=[],this['isMute']=!0x1,this[T(0x1ec)]=!0x1,this[T(0x21c)]='\x0a',this[T(0x1f6)]=new Date()['getTime'](),Object['assign'](this,E),this['log']('','🔔'+this[T(0x1f0)]+T(0x1ae));}[H(0x1ce)](){const b=H;return'undefined'!=typeof module&&!!module[b(0x1c3)];}[H(0x1f9)](){return'undefined'!=typeof $task;}['isSurge'](){const B=H;return B(0x1b5)!=typeof $httpClient&&B(0x1b5)==typeof $loon;}[H(0x1a6)](){const U=H;return U(0x1b5)!=typeof $loon;}[H(0x1b9)](N,E=null){const J=H;try{return JSON[J(0x1b7)](N);}catch{return E;}}[H(0x1b1)](N,E=null){const P=H;try{return JSON[P(0x22a)](N);}catch{return E;}}[H(0x1b0)](N,E){const q=H;let I=E;const c=this['getdata'](N);if(c)try{I=JSON['parse'](this[q(0x208)](N));}catch{}return I;}[H(0x1f8)](N,E){try{return this['setdata'](JSON['stringify'](N),E);}catch{return!0x1;}}[H(0x1df)](N){return new Promise(E=>{this['get']({'url':N},(I,c,l)=>E(l));});}[H(0x204)](N,E){const R=H;return new Promise(I=>{const Q=O;let c=this[Q(0x208)](Q(0x1dc));c=c?c[Q(0x201)](/\n/g,'')[Q(0x1eb)]():c;let l=this['getdata'](Q(0x20e));l=l?0x1*l:0x14,l=E&&E['timeout']?E[Q(0x1e9)]:l;const [z,x]=c[Q(0x1c4)]('@'),K={'url':Q(0x212)+x+Q(0x1e0),'body':{'script_text':N,'mock_type':'cron','timeout':l},'headers':{'X-Key':z,'Accept':Q(0x191)}};this[Q(0x237)](K,(F,C,D)=>I(D));})['catch'](I=>this[R(0x202)](I));}[H(0x1f4)](){const u=H;if(!this[u(0x1ce)]())return{};{this['fs']=this['fs']?this['fs']:require('fs'),this[u(0x192)]=this['path']?this[u(0x192)]:require(u(0x192));const N=this[u(0x192)][u(0x1f3)](this[u(0x19a)]),E=this[u(0x192)][u(0x1f3)](process['cwd'](),this[u(0x19a)]),I=this['fs']['existsSync'](N),c=!I&&this['fs'][u(0x1ad)](E);if(!I&&!c)return{};{const l=I?N:E;try{return JSON[u(0x1b7)](this['fs']['readFileSync'](l));}catch(z){return{};}}}}[H(0x21a)](){const d=H;if(this[d(0x1ce)]()){this['fs']=this['fs']?this['fs']:require('fs'),this[d(0x192)]=this['path']?this['path']:require(d(0x192));const N=this[d(0x192)][d(0x1f3)](this[d(0x19a)]),E=this[d(0x192)][d(0x1f3)](process['cwd'](),this[d(0x19a)]),I=this['fs']['existsSync'](N),c=!I&&this['fs'][d(0x1ad)](E),l=JSON['stringify'](this[d(0x1d8)]);I?this['fs']['writeFileSync'](N,l):c?this['fs'][d(0x1e2)](E,l):this['fs'][d(0x1e2)](N,l);}}[H(0x197)](N,E,I){const w=H,c=E[w(0x201)](/\[(\d+)\]/g,'.$1')[w(0x1c4)]('.');let l=N;for(const z of c)if(l=Object(l)[z],void 0x0===l)return I;return l;}['lodash_set'](N,E,I){const e=H;return Object(N)!==N?N:(Array[e(0x219)](E)||(E=E[e(0x1c0)]()['match'](/[^.[\]]+/g)||[]),E['slice'](0x0,-0x1)[e(0x1b6)]((c,l,z)=>Object(c[l])===c[l]?c[l]:c[l]=Math[e(0x226)](E[z+0x1])>>0x0==+E[z+0x1]?[]:{},N)[E[E[e(0x19c)]-0x1]]=I,N);}[H(0x208)](N){const X0=H;let E=this['getval'](N);if(/^@/['test'](N)){const [,I,c]=/^@(.*?)\.(.*?)$/[X0(0x1c5)](N),l=I?this['getval'](I):'';if(l)try{const z=JSON[X0(0x1b7)](l);E=z?this[X0(0x197)](z,c,''):E;}catch(x){E='';}}return E;}[H(0x18c)](N,E){const X1=H;let I=!0x1;if(/^@/[X1(0x1e1)](E)){const [,c,l]=/^@(.*?)\.(.*?)$/[X1(0x1c5)](E),z=this[X1(0x218)](c),x=c?X1(0x220)===z?null:z||'{}':'{}';try{const K=JSON[X1(0x1b7)](x);this[X1(0x23f)](K,l,N),I=this['setval'](JSON['stringify'](K),c);}catch(F){const C={};this[X1(0x23f)](C,l,N),I=this[X1(0x20c)](JSON[X1(0x22a)](C),c);}}else I=this[X1(0x20c)](N,E);return I;}[H(0x218)](N){const X2=H;return this[X2(0x1de)]()||this[X2(0x1a6)]()?$persistentStore[X2(0x1d4)](N):this[X2(0x1f9)]()?$prefs[X2(0x238)](N):this[X2(0x1ce)]()?(this[X2(0x1d8)]=this['loaddata'](),this['data'][N]):this[X2(0x1d8)]&&this[X2(0x1d8)][N]||null;}[H(0x20c)](N,E){const X3=H;return this[X3(0x1de)]()||this[X3(0x1a6)]()?$persistentStore['write'](N,E):this[X3(0x1f9)]()?$prefs[X3(0x1e8)](N,E):this[X3(0x1ce)]()?(this[X3(0x1d8)]=this[X3(0x1f4)](),this['data'][E]=N,this[X3(0x21a)](),!0x0):this[X3(0x1d8)]&&this[X3(0x1d8)][E]||null;}[H(0x207)](N){const X4=H;this[X4(0x19d)]=this[X4(0x19d)]?this['got']:require(X4(0x19d)),this[X4(0x1fb)]=this[X4(0x1fb)]?this[X4(0x1fb)]:require(X4(0x231)),this['ckjar']=this['ckjar']?this[X4(0x241)]:new this[(X4(0x1fb))][(X4(0x1bf))](),N&&(N[X4(0x1ef)]=N['headers']?N[X4(0x1ef)]:{},void 0x0===N[X4(0x1ef)][X4(0x1d6)]&&void 0x0===N[X4(0x1ca)]&&(N['cookieJar']=this[X4(0x241)]));}['get'](N,E=()=>{}){const X5=H;N['headers']&&(delete N['headers'][X5(0x206)],delete N[X5(0x1ef)][X5(0x211)]),this[X5(0x1de)]()||this[X5(0x1a6)]()?(this[X5(0x1de)]()&&this['isNeedRewrite']&&(N['headers']=N[X5(0x1ef)]||{},Object[X5(0x1aa)](N['headers'],{'X-Surge-Skip-Scripting':!0x1})),$httpClient[X5(0x1e4)](N,(I,c,l)=>{const X6=X5;!I&&c&&(c[X6(0x1bb)]=l,c[X6(0x225)]=c[X6(0x20a)]),E(I,c,l);})):this[X5(0x1f9)]()?(this['isNeedRewrite']&&(N['opts']=N[X5(0x1ab)]||{},Object[X5(0x1aa)](N[X5(0x1ab)],{'hints':!0x1})),$task[X5(0x217)](N)['then'](I=>{const {statusCode:c,statusCode:l,headers:z,body:x}=I;E(null,{'status':c,'statusCode':l,'headers':z,'body':x},x);},I=>E(I))):this[X5(0x1ce)]()&&(this[X5(0x207)](N),this['got'](N)['on']('redirect',(I,i)=>{const X7=X5;try{if(I['headers'][X7(0x1cd)]){const c=I['headers'][X7(0x1cd)]['map'](this[X7(0x1fb)][X7(0x1d6)][X7(0x1b7)])['toString']();c&&this[X7(0x241)]['setCookieSync'](c,null),i[X7(0x1ca)]=this[X7(0x241)];}}catch(l){this[X7(0x202)](l);}})[X5(0x1f1)](I=>{const {statusCode:c,statusCode:l,headers:z,body:x}=I;E(null,{'status':c,'statusCode':l,'headers':z,'body':x},x);},I=>{const {message:c,response:l}=I;E(c,l,l&&l['body']);}));}['post'](N,E=()=>{}){const X8=H;if(N['body']&&N[X8(0x1ef)]&&!N['headers'][X8(0x206)]&&(N[X8(0x1ef)][X8(0x206)]=X8(0x20f)),N[X8(0x1ef)]&&delete N[X8(0x1ef)][X8(0x211)],this[X8(0x1de)]()||this[X8(0x1a6)]())this['isSurge']()&&this[X8(0x1ec)]&&(N[X8(0x1ef)]=N[X8(0x1ef)]||{},Object[X8(0x1aa)](N[X8(0x1ef)],{'X-Surge-Skip-Scripting':!0x1})),$httpClient[X8(0x237)](N,(I,c,l)=>{const X9=X8;!I&&c&&(c['body']=l,c[X9(0x225)]=c['status']),E(I,c,l);});else{if(this[X8(0x1f9)]())N[X8(0x1f7)]=X8(0x22c),this[X8(0x1ec)]&&(N['opts']=N[X8(0x1ab)]||{},Object[X8(0x1aa)](N[X8(0x1ab)],{'hints':!0x1})),$task[X8(0x217)](N)[X8(0x1f1)](I=>{const {statusCode:c,statusCode:l,headers:z,body:x}=I;E(null,{'status':c,'statusCode':l,'headers':z,'body':x},x);},I=>E(I));else{if(this[X8(0x1ce)]()){this[X8(0x207)](N);const {url:I,...c}=N;this[X8(0x19d)][X8(0x237)](I,c)[X8(0x1f1)](l=>{const {statusCode:z,statusCode:x,headers:K,body:F}=l;E(null,{'status':z,'statusCode':x,'headers':K,'body':F},F);},l=>{const XX=X8,{message:z,response:x}=l;E(z,x,x&&x[XX(0x1bb)]);});}}}}[H(0x1a0)](N){const XO=H;let E={'M+':new Date()[XO(0x22d)]()+0x1,'d+':new Date()['getDate'](),'H+':new Date()[XO(0x1e6)](),'m+':new Date()[XO(0x1cf)](),'s+':new Date()[XO(0x1c7)](),'q+':Math[XO(0x21b)]((new Date()['getMonth']()+0x3)/0x3),'S':new Date()[XO(0x1a1)]()};/(y+)/[XO(0x1e1)](N)&&(N=N[XO(0x201)](RegExp['$1'],(new Date()['getFullYear']()+'')[XO(0x1d3)](0x4-RegExp['$1'][XO(0x19c)])));for(let I in E)new RegExp('('+I+')')[XO(0x1e1)](N)&&(N=N[XO(0x201)](RegExp['$1'],0x1==RegExp['$1'][XO(0x19c)]?E[I]:('00'+E[I])[XO(0x1d3)]((''+E[I])['length'])));return N;}[H(0x1a9)](N=n,E='',I='',c){const Xj=H,l=z=>{const Xn=O;if(!z)return z;if(Xn(0x236)==typeof z)return this[Xn(0x1a6)]()?z:this[Xn(0x1f9)]()?{'open-url':z}:this[Xn(0x1de)]()?{'url':z}:void 0x0;if(Xn(0x1fa)==typeof z){if(this['isLoon']()){let x=z[Xn(0x18d)]||z[Xn(0x190)]||z[Xn(0x1d5)],K=z[Xn(0x229)]||z['media-url'];return{'openUrl':x,'mediaUrl':K};}if(this[Xn(0x1f9)]()){let F=z['open-url']||z['url']||z['openUrl'],C=z[Xn(0x227)]||z['mediaUrl'];return{'open-url':F,'media-url':C};}if(this[Xn(0x1de)]()){let D=z[Xn(0x190)]||z[Xn(0x18d)]||z[Xn(0x1d5)];return{'url':D};}}};if(this[Xj(0x221)]||(this[Xj(0x1de)]()||this['isLoon']()?$notification[Xj(0x237)](N,E,I,l(c)):this['isQuanX']()&&$notify(N,E,I,l(c))),!this[Xj(0x200)]){let z=['','==============📣系统通知📣=============='];z[Xj(0x1a3)](N),E&&z[Xj(0x1a3)](E),I&&z[Xj(0x1a3)](I),console[Xj(0x1da)](z[Xj(0x23a)]('\x0a')),this[Xj(0x209)]=this[Xj(0x209)][Xj(0x1bd)](z);}}[H(0x1da)](...N){const XG=H;N[XG(0x19c)]>0x0&&(this[XG(0x209)]=[...this[XG(0x209)],...N]),console['log'](N[XG(0x23a)](this['logSeparator']));}[H(0x202)](N,E){const XN=H,I=!this[XN(0x1de)]()&&!this[XN(0x1f9)]()&&!this[XN(0x1a6)]();I?this[XN(0x1da)]('','❗️'+this['name']+XN(0x222),N[XN(0x1ff)]):this[XN(0x1da)]('','❗️'+this[XN(0x1f0)]+',\x20错误!',N);}[H(0x1f5)](N){return new Promise(E=>setTimeout(E,N));}[H(0x1d7)](N={}){const XE=H,E=new Date()['getTime'](),I=(E-this['startTime'])/0x3e8;this[XE(0x1da)]('','🔔'+this[XE(0x1f0)]+XE(0x21e)+I+'\x20秒'),this[XE(0x1da)](),(this[XE(0x1de)]()||this[XE(0x1f9)]()||this[XE(0x1a6)]())&&$done(N);}}(n,j);} \ No newline at end of file +const x=j;(function(q,X){const I=j,o=q();while(!![]){try{const i=-parseInt(I(0xd5))/0x1*(parseInt(I(0xb4))/0x2)+parseInt(I(0x154))/0x3*(-parseInt(I(0x145))/0x4)+-parseInt(I(0x12c))/0x5+parseInt(I(0xb1))/0x6+-parseInt(I(0x156))/0x7+parseInt(I(0xbf))/0x8+parseInt(I(0xde))/0x9;if(i===X)break;else o['push'](o['shift']());}catch(A){o['push'](o['shift']());}}}(y,0x6a2f8));const $=new Env(x(0xe8));var request=require(x(0x116));const notify=$[x(0x125)]()?require(x(0x120)):'';let status;status=(status=$['getval']('ttlstatus')||'1')>0x1?''+status:'';const hour=new Date(new Date()[x(0x130)]()+new Date()[x(0x128)]()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)[x(0xe6)](),minute=new Date(new Date()['getTime']()+new Date()['getTimezoneOffset']()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)[x(0x103)]();let giftAmount,giftNames,giftPrice,date,ttlaccounts='',ttlaccountArr=[],ttldhs='',ttldhArr=[],ttlaccount=$[x(0x125)]()?process['env'][x(0x155)]?process[x(0x15e)][x(0x155)]:'':$['getdata'](x(0x155))?$[x(0x133)](x(0x155)):'';const ttldh=$['isNode']()?process['env'][x(0x12d)]?process['env'][x(0x12d)]:'':$[x(0x133)](x(0x12d))?$['getdata'](x(0x12d)):'';let stockPrice=0x0,stockAmount2,stockName='',message='',ttlhds='';const logs=0x0,host=x(0x149);var hours=new Date()[x(0xe6)](),s=new Date()[x(0x103)](),timestamp=Math['round'](new Date()[x(0x130)]()/0x3e8)['toString']();!(async()=>{const w=x;if(typeof $request!=='undefined'){}else{if(!await checkEnv())return;console[w(0xff)]('共'+ttlaccountArr[w(0xd6)]+w(0xf0)),giftAmount={},giftNames={},giftPrice={},await ttl_gift();for(let q=0x0;q0x7&&hour<0xa&&(await sign(),await $[w(0xb5)](0x7d0),await blog()),await $[w(0xb5)](0x3e8),await my();}}})()[x(0xb6)](q=>$[x(0x137)](q))[x(0x13b)](()=>$[x(0x13d)]());async function checkEnv(){const F=x;if(ttlaccount)for(let q of ttlaccount[F(0xb3)]('@')){if(q)ttlaccountArr[F(0x134)](q);}else return console['log']('未找到ttlaccount'),![];if(ttldh)for(let X of ttldh[F(0xb3)]('@')){if(X)ttldhArr[F(0x134)](X);}else return console['log'](F(0x106)),![];return!![];}function ttlck(){const H=x;if($request[H(0x118)][H(0xeb)](H(0xe7))>-0x1){const q=$request[H(0x11c)][H(0xfa)];if(q)$[H(0x101)](q,H(0x168)+status);$[H(0xff)](q),$[H(0xcf)]($[H(0xc9)],'',H(0xe8)+(''+q)+'数据获取成功!');}}function y(){const yr=['ckjar',',\x20错误!','env','Content-Type','giftName','CookieJar','setCookieSync','got','time','existsSync','undefined','服务器访问数据为空,请检查自身设备网络情况','ttlhd','opts','1403004GiIVdw','getScript','split','2nKOSpz','wait','catch','floor','cookieJar','isSurge','user/api/sign/today','call','user','Content-Length','method','5850016GJJgWF','&mobile=','getjson','.$1','lodash_set','data','application/json,\x20text/plain,\x20*/*','parse','concat','replace','name','GET','object','slice','@chavy_boxjs_userCfgs.httpapi','loaddata','msg','用户:','writeFileSync','Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2014_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148\x20MicroMessenger/8.0.14(0x18000e2f)\x20NetType/4G\x20Language/zh_CN','www.ttljf.com','http://','730882oJHjRH','length','getval','\x0a分享任务:','\x20id:\x20','getSeconds','toStr','dataFile','http://www.ttljf.com/ttl_site/chargeApi.do','11713878JxOoXt','put','兑换商品\x20','\x20\x0a【积分】\x20','isNeedRewrite','method=charge&userId=','userName','\x0a开始【太太乐','getHours','user/api/my','太太乐','\x20积分\x20','isMute','indexOf','\x20积分:','\x20结果:','headers','A35D575F-C004-4717-AABC-ED9D1979C3FA','个cookie','status','gzip,compress,br,deflate','resolve','substr','statusCode','logs','post','tough-cookie','cwd','token','path','writedata','getFullYear','/v1/scripting/evaluate','log','price','setdata','setval','getMinutes','isLoon','message','未设置兑换商品代码:ttldh','runScript','gifts','assign',')\x20\x0a【登录信息】\x20','isArray','isQuanX','integral','XMLHttpRequest','giftId','initGotEnv','getDate','set-cookie','cktough','then','登录失败\x20:','request','application/x-www-form-urlencoded','url',',\x20结束!\x20🕛\x20','index','mediaUrl','body','0000','Cookie','token:','./sendNotify','get','test','http://www.ttljf.com/ttl_site/giftApi.do?mthd=searchGift&giftCategoryId=7&pageNo=1&pageSize=8','join','isNode','map','redirect','getTimezoneOffset','open-url','setjson','&platform=android','1031185BnNMpd','ttldh','setValueForKey','send','getTime','code','stringify','getdata','push','application/json','null','logErr','\x20兑换结果:','userId','http://www.ttljf.com/ttl_site/user.do','finally','getMonth','done','stockAmount',',\x20积分:\u3000','\x20库存:','string','POST','startTime','toObj','124ENIKYZ','read','\x0a签到任务:','*/*','https://www.ttljf.com/ttl_chefHub/','isMuteLog','exports','&password=','&loginToken=','openUrl','media-url','fetch',',\x20开始!','登录信息\x20','https://www.ttljf.com/ttl_chefHub/user/api/my','59703OIMzYb','ttlaccount','1943494niALho',',\x20库存:\x20','reduce','cron','\x20API请求失败,请检查网路重试','设置当天积分缓存成功!'];y=function(){return yr;};return y();}async function ttl_gift(){const n=x;let q=n(0x123),X=populateUrlObject(q);await httpRequest(n(0x121),X);if(!httpResult||httpResult[n(0xf5)]!=0xc8)return;let o=JSON[n(0xc6)](httpResult[n(0x11c)]);if(!o)return;const i=o[n(0x108)];let A='';for(let v of i){const M=parseInt(v[n(0x13e)]),W=v[n(0x160)],b=v[n(0x10f)],R=parseInt(v[n(0x100)]);A+=W+n(0xd9)+b+n(0x157)+M+n(0x13f)+R+'\x0a',giftAmount[b]=M,giftNames[b]=W,giftPrice[b]=R;}$[n(0xff)](''+A);}async function ttl_login(){const l=x;let q=l(0x13a),X='mthd=login&username='+user+l(0x14c)+pwd+l(0x12b),o=populateUrlObject(q,X);await httpRequest('post',o);if(!httpResult||httpResult[l(0xf5)]!=0xc8)return;let i=JSON['parse'](httpResult[l(0x11c)]);if(!i)return;if(i['code']===l(0x11d))$[l(0xfa)]=i['user']['loginToken'],$['userId']=i['user'][l(0x139)],$[l(0xe4)]=i[l(0xbc)][l(0xe4)],$['integral']=i[l(0xbc)][l(0x10d)],console[l(0xff)](l(0x11f)+$['token']+l(0xec)+$[l(0x10d)]),$[l(0x101)]($['integral'],date+'_'+user),console[l(0xff)](l(0x15b)),mobile=i[l(0xbc)]['mobile'],console[l(0xff)](l(0x152)+i['message']),message+='\x0a【账号】\x20'+$[l(0xe4)]+'('+mobile+l(0x10a)+i[l(0x105)]+l(0xe1)+$[l(0x10d)];else $[l(0xff)](l(0x115)+i[l(0x105)]);}async function blog(){return new Promise(q=>{const u=j;body={'id':u(0xef),'type':'blog'},request[u(0xdf)](ttl('Common/share/A35D575F-C004-4717-AABC-ED9D1979C3FA/blog',body),function(X,o,i){const h=u;try{X&&(console[h(0xff)](''+JSON[h(0x132)](err)),console[h(0xff)]($[h(0xc9)]+h(0x15a)));data=JSON[h(0xc6)](i);if(data[h(0x131)]==0x0)console[h(0xff)]('\x0a分享任务:'+data['message']);else data[h(0x131)]!=0x0&&console['log'](h(0xd8)+data[h(0x105)]);}catch(A){$['logErr'](A,resp);}finally{q(data);}});});}async function sign(){return new Promise(q=>{const C=j;request[C(0xdf)](ttl(C(0xba),''),function(X,o,i){const K=C;try{X&&(console[K(0xff)](''+JSON['stringify'](err)),console[K(0xff)]($[K(0xc9)]+'\x20API请求失败,请检查网路重试'));data=JSON['parse'](i);if(data[K(0x131)]==0x0)console[K(0xff)]('\x0a签到任务:'+data[K(0x105)]);else data[K(0x131)]!=0x0&&console[K(0xff)](K(0x147)+data[K(0x105)]);}catch(A){$[K(0x137)](A,resp);}finally{q(data);}});});}async function my(){const B=x;let q=B(0x153),X=populateUrlObject(q);await httpRequest(B(0x121),X);if(!httpResult||httpResult['statusCode']!=0xc8)return;let o=JSON[B(0xc6)](httpResult['body']);if(!o)return;if(o[B(0x131)]==0x0){let i=o[B(0xc4)]['integral'];console[B(0xff)](B(0xd0)+o[B(0xc4)][B(0xe4)]+B(0xe9)+i);if(i>=stockPrice&&stockAmount>0x0)console['log']('积分达到兑换标准,尝试开始兑换'+stockName),await ttl_dh(),$['setdata']($['integral']-stockPrice,date+'_'+user);else console[B(0xff)]('设置兑换'+stockName+B(0x140)+stockAmount2);}}async function ttl_dh(){const T=x;let q=T(0xdd),X=T(0xe3)+$[T(0x139)]+T(0x14d)+$[T(0xfa)]+T(0xc0)+user+'&giftId='+giftId,o=populateUrlObject(q,X);await httpRequest(T(0xf7),o);if(!httpResult||httpResult[T(0xf5)]!=0xc8)return;let i=JSON[T(0xc6)](httpResult[T(0x11c)]);if(!i)return;console['log'](''+JSON[T(0x132)](i));if(i['code']==0x0)console['log'](T(0xe0)+stockName+T(0x138)+i[T(0x105)]+'🎉');else $['log']('【兑换商品】\x20'+stockName+'\x20:'+i[T(0x105)]);if($[T(0x125)]())await notify['sendNotify']($[T(0xc9)],T(0xe0)+stockName+T(0xed)+i['message']+'🎉');}function ttl(q,X){const d=x;return{'url':''+host+q,'body':''+X,'headers':{'Host':d(0xd3),'Accept':d(0xc5),'content-type':d(0x135),'token':$[d(0xfa)],'X-Requested-With':'XMLHttpRequest','Accept-Encoding':d(0xf2),'User-Agent':d(0xd2),'Referer':'https://servicewechat.com/wxe9aa8f1c4a77ddf5/17/page-frame.html'}};}function populateUrlObject(q,X=''){const S=x;let o=q[S(0xc8)]('//','/')[S(0xb3)]('/')[0x1],i={'url':q,'headers':{'Host':o,'Accept':S(0xc5),'content-type':S(0x135),'token':$[S(0xfa)],'X-Requested-With':S(0x10e),'Accept-Encoding':S(0xf2),'User-Agent':S(0xd2),'Referer':'https://servicewechat.com/wxe9aa8f1c4a77ddf5/17/page-frame.html'}};if(X)i['body']=X;return i;}async function httpRequest(q,X){return httpResult=null,new Promise(o=>{$[q](X,async(i,A,v)=>{const c=j;try{i?(console[c(0xff)](q+'请求失败'),console[c(0xff)](JSON[c(0x132)](i)),$[c(0x137)](i)):httpResult=A;}catch(M){$[c(0x137)](M,A);}finally{o();}});});}function SafeGet(q){const E=x;try{if(typeof JSON[E(0xc6)](q)==E(0xcb))return!![];else console[E(0xff)](q);}catch(X){return console['log'](X),console[E(0xff)](E(0x167)),![];}}function j(q,X){const o=y();return j=function(i,A){i=i-0xb0;let v=o[i];return v;},j(q,X);}function jsonParse(q){const P=x;if(typeof q==P(0x141))try{return JSON[P(0xc6)](q);}catch(X){return console['log'](X),$['msg']($[P(0xc9)],'','请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie'),[];}}function Env(q,X){const D=x;class o{constructor(i){const m=j;this[m(0x15e)]=i;}[D(0x12f)](i,A=D(0xca)){const N=D;i=N(0x141)==typeof i?{'url':i}:i;let v=this['get'];return'POST'===A&&(v=this[N(0xf7)]),new Promise((M,W)=>{const g=N;v[g(0xbb)](this,i,(b,R,f)=>{b?W(b):M(R);});});}[D(0x121)](i){const U=D;return this[U(0x12f)][U(0xbb)](this[U(0x15e)],i);}[D(0xf7)](i){const Q=D;return this[Q(0x12f)][Q(0xbb)](this['env'],i,Q(0x142));}}return new class{constructor(i,A){const p=D;this['name']=i,this['http']=new o(this),this[p(0xc4)]=null,this[p(0xdc)]='box.dat',this[p(0xf6)]=[],this['isMute']=!0x1,this[p(0xe2)]=!0x1,this['logSeparator']='\x0a',this[p(0x143)]=new Date()[p(0x130)](),Object[p(0x109)](this,A),this[p(0xff)]('','🔔'+this['name']+p(0x151));}[D(0x125)](){const e=D;return e(0x166)!=typeof module&&!!module[e(0x14b)];}[D(0x10c)](){const O=D;return O(0x166)!=typeof $task;}[D(0xb9)](){const z=D;return z(0x166)!=typeof $httpClient&&z(0x166)==typeof $loon;}[D(0x104)](){return'undefined'!=typeof $loon;}[D(0x144)](i,A=null){const G=D;try{return JSON[G(0xc6)](i);}catch{return A;}}[D(0xdb)](i,A=null){const V=D;try{return JSON[V(0x132)](i);}catch{return A;}}[D(0xc1)](A,v){const t=D;let M=v;const W=this['getdata'](A);if(W)try{M=JSON[t(0xc6)](this[t(0x133)](A));}catch{}return M;}[D(0x12a)](i,A){const J=D;try{return this['setdata'](JSON[J(0x132)](i),A);}catch{return!0x1;}}[D(0xb2)](i){return new Promise(A=>{this['get']({'url':i},(v,M,W)=>A(W));});}[D(0x107)](i,A){const y0=D;return new Promise(v=>{const L=j;let M=this['getdata'](L(0xcd));M=M?M[L(0xc8)](/\n/g,'')['trim']():M;let W=this[L(0x133)]('@chavy_boxjs_userCfgs.httpapi_timeout');W=W?0x1*W:0x14,W=A&&A['timeout']?A['timeout']:W;const [b,R]=M[L(0xb3)]('@'),f={'url':L(0xd4)+R+L(0xfe),'body':{'script_text':i,'mock_type':L(0x159),'timeout':W},'headers':{'X-Key':b,'Accept':L(0x148)}};this['post'](f,(Z,Y,k)=>v(k));})[y0(0xb6)](v=>this['logErr'](v));}[D(0xce)](){const y1=D;if(!this[y1(0x125)]())return{};{this['fs']=this['fs']?this['fs']:require('fs'),this['path']=this['path']?this['path']:require(y1(0xfb));const A=this[y1(0xfb)][y1(0xf3)](this['dataFile']),v=this[y1(0xfb)][y1(0xf3)](process[y1(0xf9)](),this['dataFile']),M=this['fs'][y1(0x165)](A),W=!M&&this['fs']['existsSync'](v);if(!M&&!W)return{};{const b=M?A:v;try{return JSON['parse'](this['fs']['readFileSync'](b));}catch(R){return{};}}}}[D(0xfc)](){const y2=D;if(this[y2(0x125)]()){this['fs']=this['fs']?this['fs']:require('fs'),this[y2(0xfb)]=this[y2(0xfb)]?this['path']:require(y2(0xfb));const A=this['path'][y2(0xf3)](this[y2(0xdc)]),v=this[y2(0xfb)]['resolve'](process[y2(0xf9)](),this[y2(0xdc)]),M=this['fs'][y2(0x165)](A),W=!M&&this['fs'][y2(0x165)](v),b=JSON[y2(0x132)](this['data']);M?this['fs'][y2(0xd1)](A,b):W?this['fs'][y2(0xd1)](v,b):this['fs'][y2(0xd1)](A,b);}}['lodash_get'](A,v,M){const y3=D,W=v[y3(0xc8)](/\[(\d+)\]/g,y3(0xc2))[y3(0xb3)]('.');let b=A;for(const R of W)if(b=Object(b)[R],void 0x0===b)return M;return b;}[D(0xc3)](i,A,v){const y4=D;return Object(i)!==i?i:(Array[y4(0x10b)](A)||(A=A['toString']()['match'](/[^.[\]]+/g)||[]),A[y4(0xcc)](0x0,-0x1)[y4(0x158)]((M,W,b)=>Object(M[W])===M[W]?M[W]:M[W]=Math['abs'](A[b+0x1])>>0x0==+A[b+0x1]?[]:{},i)[A[A[y4(0xd6)]-0x1]]=v,i);}[D(0x133)](A){const y5=D;let v=this['getval'](A);if(/^@/['test'](A)){const [,M,W]=/^@(.*?)\.(.*?)$/['exec'](A),b=M?this[y5(0xd7)](M):'';if(b)try{const R=JSON[y5(0xc6)](b);v=R?this['lodash_get'](R,W,''):v;}catch(f){v='';}}return v;}[D(0x101)](A,v){const y6=D;let M=!0x1;if(/^@/[y6(0x122)](v)){const [,W,b]=/^@(.*?)\.(.*?)$/['exec'](v),R=this[y6(0xd7)](W),f=W?y6(0x136)===R?null:R||'{}':'{}';try{const a=JSON['parse'](f);this['lodash_set'](a,b,A),M=this[y6(0x102)](JSON[y6(0x132)](a),W);}catch(Z){const Y={};this[y6(0xc3)](Y,b,A),M=this['setval'](JSON[y6(0x132)](Y),W);}}else M=this[y6(0x102)](A,v);return M;}['getval'](i){const y7=D;return this[y7(0xb9)]()||this[y7(0x104)]()?$persistentStore[y7(0x146)](i):this[y7(0x10c)]()?$prefs['valueForKey'](i):this['isNode']()?(this[y7(0xc4)]=this[y7(0xce)](),this['data'][i]):this['data']&&this[y7(0xc4)][i]||null;}[D(0x102)](i,A){const y8=D;return this[y8(0xb9)]()||this['isLoon']()?$persistentStore['write'](i,A):this[y8(0x10c)]()?$prefs[y8(0x12e)](i,A):this[y8(0x125)]()?(this[y8(0xc4)]=this[y8(0xce)](),this[y8(0xc4)][A]=i,this[y8(0xfc)](),!0x0):this[y8(0xc4)]&&this[y8(0xc4)][A]||null;}[D(0x110)](i){const y9=D;this[y9(0x163)]=this[y9(0x163)]?this[y9(0x163)]:require(y9(0x163)),this[y9(0x113)]=this['cktough']?this[y9(0x113)]:require(y9(0xf8)),this[y9(0x15c)]=this[y9(0x15c)]?this['ckjar']:new this[(y9(0x113))][(y9(0x161))](),i&&(i[y9(0xee)]=i[y9(0xee)]?i[y9(0xee)]:{},void 0x0===i[y9(0xee)][y9(0x11e)]&&void 0x0===i[y9(0xb8)]&&(i['cookieJar']=this[y9(0x15c)]));}[D(0x121)](i,A=()=>{}){const yy=D;i['headers']&&(delete i['headers'][yy(0x15f)],delete i[yy(0xee)]['Content-Length']),this[yy(0xb9)]()||this[yy(0x104)]()?(this[yy(0xb9)]()&&this[yy(0xe2)]&&(i['headers']=i[yy(0xee)]||{},Object[yy(0x109)](i[yy(0xee)],{'X-Surge-Skip-Scripting':!0x1})),$httpClient[yy(0x121)](i,(v,M,W)=>{const yj=yy;!v&&M&&(M[yj(0x11c)]=W,M[yj(0xf5)]=M[yj(0xf1)]),A(v,M,W);})):this[yy(0x10c)]()?(this[yy(0xe2)]&&(i['opts']=i[yy(0xb0)]||{},Object[yy(0x109)](i[yy(0xb0)],{'hints':!0x1})),$task[yy(0x150)](i)['then'](v=>{const {statusCode:M,statusCode:W,headers:b,body:R}=v;A(null,{'status':M,'statusCode':W,'headers':b,'body':R},R);},v=>A(v))):this[yy(0x125)]()&&(this[yy(0x110)](i),this[yy(0x163)](i)['on'](yy(0x127),(v,M)=>{const yq=yy;try{if(v[yq(0xee)][yq(0x112)]){const W=v['headers'][yq(0x112)][yq(0x126)](this['cktough'][yq(0x11e)]['parse'])['toString']();W&&this['ckjar'][yq(0x162)](W,null),M[yq(0xb8)]=this[yq(0x15c)];}}catch(b){this[yq(0x137)](b);}})[yy(0x114)](v=>{const {statusCode:M,statusCode:W,headers:b,body:R}=v;A(null,{'status':M,'statusCode':W,'headers':b,'body':R},R);},v=>{const yX=yy,{message:M,response:W}=v;A(M,W,W&&W[yX(0x11c)]);}));}[D(0xf7)](A,v=()=>{}){const yo=D;if(A[yo(0x11c)]&&A[yo(0xee)]&&!A[yo(0xee)][yo(0x15f)]&&(A['headers'][yo(0x15f)]=yo(0x117)),A[yo(0xee)]&&delete A[yo(0xee)][yo(0xbd)],this[yo(0xb9)]()||this['isLoon']())this[yo(0xb9)]()&&this[yo(0xe2)]&&(A[yo(0xee)]=A[yo(0xee)]||{},Object['assign'](A[yo(0xee)],{'X-Surge-Skip-Scripting':!0x1})),$httpClient[yo(0xf7)](A,(M,W,b)=>{const yi=yo;!M&&W&&(W[yi(0x11c)]=b,W[yi(0xf5)]=W['status']),v(M,W,b);});else{if(this[yo(0x10c)]())A[yo(0xbe)]=yo(0x142),this[yo(0xe2)]&&(A['opts']=A[yo(0xb0)]||{},Object[yo(0x109)](A['opts'],{'hints':!0x1})),$task[yo(0x150)](A)['then'](M=>{const {statusCode:W,statusCode:b,headers:R,body:f}=M;v(null,{'status':W,'statusCode':b,'headers':R,'body':f},f);},M=>v(M));else{if(this[yo(0x125)]()){this[yo(0x110)](A);const {url:M,...W}=A;this[yo(0x163)][yo(0xf7)](M,W)[yo(0x114)](b=>{const {statusCode:R,statusCode:f,headers:a,body:Z}=b;v(null,{'status':R,'statusCode':f,'headers':a,'body':Z},Z);},b=>{const yA=yo,{message:R,response:f}=b;v(R,f,f&&f[yA(0x11c)]);});}}}}[D(0x164)](i){const yv=D;let A={'M+':new Date()['getMonth']()+0x1,'d+':new Date()[yv(0x111)](),'H+':new Date()[yv(0xe6)](),'m+':new Date()[yv(0x103)](),'s+':new Date()[yv(0xda)](),'q+':Math[yv(0xb7)]((new Date()[yv(0x13c)]()+0x3)/0x3),'S':new Date()['getMilliseconds']()};/(y+)/[yv(0x122)](i)&&(i=i['replace'](RegExp['$1'],(new Date()[yv(0xfd)]()+'')['substr'](0x4-RegExp['$1'][yv(0xd6)])));for(let v in A)new RegExp('('+v+')')[yv(0x122)](i)&&(i=i[yv(0xc8)](RegExp['$1'],0x1==RegExp['$1'][yv(0xd6)]?A[v]:('00'+A[v])[yv(0xf4)]((''+A[v])[yv(0xd6)])));return i;}[D(0xcf)](A=q,v='',M='',W){const yW=D,b=R=>{const yM=j;if(!R)return R;if(yM(0x141)==typeof R)return this[yM(0x104)]()?R:this['isQuanX']()?{'open-url':R}:this[yM(0xb9)]()?{'url':R}:void 0x0;if(yM(0xcb)==typeof R){if(this[yM(0x104)]()){let f=R['openUrl']||R[yM(0x118)]||R[yM(0x129)],a=R[yM(0x11b)]||R[yM(0x14f)];return{'openUrl':f,'mediaUrl':a};}if(this[yM(0x10c)]()){let Z=R[yM(0x129)]||R[yM(0x118)]||R[yM(0x14e)],Y=R[yM(0x14f)]||R[yM(0x11b)];return{'open-url':Z,'media-url':Y};}if(this['isSurge']()){let k=R[yM(0x118)]||R[yM(0x14e)]||R[yM(0x129)];return{'url':k};}}};if(this[yW(0xea)]||(this[yW(0xb9)]()||this['isLoon']()?$notification[yW(0xf7)](A,v,M,b(W)):this[yW(0x10c)]()&&$notify(A,v,M,b(W))),!this[yW(0x14a)]){let R=['','==============📣系统通知📣=============='];R[yW(0x134)](A),v&&R[yW(0x134)](v),M&&R[yW(0x134)](M),console[yW(0xff)](R['join']('\x0a')),this[yW(0xf6)]=this[yW(0xf6)][yW(0xc7)](R);}}[D(0xff)](...i){const yb=D;i[yb(0xd6)]>0x0&&(this[yb(0xf6)]=[...this[yb(0xf6)],...i]),console[yb(0xff)](i[yb(0x124)](this['logSeparator']));}[D(0x137)](i,A){const yR=D,v=!this[yR(0xb9)]()&&!this[yR(0x10c)]()&&!this[yR(0x104)]();v?this[yR(0xff)]('','❗️'+this[yR(0xc9)]+yR(0x15d),i['stack']):this['log']('','❗️'+this[yR(0xc9)]+yR(0x15d),i);}[D(0xb5)](i){return new Promise(A=>setTimeout(A,i));}[D(0x13d)](i={}){const yf=D,A=new Date()[yf(0x130)](),v=(A-this['startTime'])/0x3e8;this['log']('','🔔'+this[yf(0xc9)]+yf(0x119)+v+'\x20秒'),this[yf(0xff)](),(this[yf(0xb9)]()||this['isQuanX']()||this[yf(0x104)]())&&$done(i);}}(q,X);} \ No newline at end of file