-
Notifications
You must be signed in to change notification settings - Fork 18
/
m_jd_open_card.js
14 lines (14 loc) · 22.5 KB
/
m_jd_open_card.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
let mode = __dirname.includes('magic')
const {Env} = mode ? require('../magic') : require('./magic')
const $ = new Env('M入会有礼');
$.openCardArgv = decodeURIComponent(process.argv.splice(2)?.[0] || process.env.M_OPEN_CARD_ARGV);
if (mode) {
$.openCardArgv = '650767_655224'
$.openCardArgv = 'https://shopmember.m.jd.com/shopcard/?shopId=123'
$.openCardArgv = 'https://shopmember.m.jd.com/shopcard/?venderId=123'
$.openCardArgv = 'https://shopmember.m.jd.com/shopcard/?shopId=123&venderId=123'
}
//强制开卡 1关闭 2开启
let forceOpen = parseInt(process.env.M_OPEN_CARD_FORCE || "2")
var version_='jsjiami.com.v7';const lIl1iil=ililI1II;(function(li1lill,i1li1IIi,li11IiII,i1ilii11,lIillI1I,lii11li1,iillIi1I){return li1lill=li1lill>>0x1,lii11li1='hs',iillIi1I='hs',function(lIIli111,lIIlIiI,iI11ll1I,iiIIlii,IIlI1i1){const lIIiIiII=ililI1II;iiIIlii='tfi',lii11li1=iiIIlii+lii11li1,IIlI1i1='up',iillIi1I+=IIlI1i1,lii11li1=iI11ll1I(lii11li1),iillIi1I=iI11ll1I(iillIi1I),iI11ll1I=0x0;const lil1llI1=lIIli111();while(!![]&&--i1ilii11+lIIlIiI){try{iiIIlii=-parseInt(lIIiIiII(0x1a4,'&m))'))/0x1+-parseInt(lIIiIiII(0x159,'GW(j'))/0x2*(parseInt(lIIiIiII(0x1a3,'FN24'))/0x3)+parseInt(lIIiIiII(0x17d,'ItBe'))/0x4*(-parseInt(lIIiIiII(0x19f,'c9W('))/0x5)+parseInt(lIIiIiII(0xf2,'97Lf'))/0x6*(-parseInt(lIIiIiII(0x16e,'oeNZ'))/0x7)+-parseInt(lIIiIiII(0x10e,'LLWj'))/0x8*(parseInt(lIIiIiII(0xf7,'36al'))/0x9)+parseInt(lIIiIiII(0x10a,'wfj0'))/0xa+-parseInt(lIIiIiII(0x139,'AD@6'))/0xb*(-parseInt(lIIiIiII(0x1a6,'WtTZ'))/0xc);}catch(iI1IIlIi){iiIIlii=iI11ll1I;}finally{IIlI1i1=lil1llI1[lii11li1]();if(li1lill<=i1ilii11)iI11ll1I?lIillI1I?iiIIlii=IIlI1i1:lIillI1I=IIlI1i1:iI11ll1I=IIlI1i1;else{if(iI11ll1I==lIillI1I['replace'](/[qVwSpPdTCIBGRHkLXyN=]/g,'')){if(iiIIlii===lIIlIiI){lil1llI1['un'+lii11li1](IIlI1i1);break;}lil1llI1[iillIi1I](IIlI1i1);}}}}}(li11IiII,i1li1IIi,function(I1lillIl,Iiiii11i,li1i1I1l,IiI1ll1i,lII11l11,ii1i1lI1,li11IIlI){return Iiiii11i='\x73\x70\x6c\x69\x74',I1lillIl=arguments[0x0],I1lillIl=I1lillIl[Iiiii11i](''),li1i1I1l=`\x72\x65\x76\x65\x72\x73\x65`,I1lillIl=I1lillIl[li1i1I1l]('\x76'),IiI1ll1i=`\x6a\x6f\x69\x6e`,(0x137b23,I1lillIl[IiI1ll1i](''));});}(0x19a,0x4eabd,ilIlII1i,0xcf),ilIlII1i)&&(version_=ilIlII1i);const i1i1l111=(function(){const iIlilI11=ililI1II,iili1i1={'UNzND':function(IIiIII1I,ll1I1lii){return IIiIII1I!==ll1I1lii;},'rDvam':iIlilI11(0x18e,'wfj0')};let iIl1lIiI=!![];return function(liIill1i,l1iIl11l){const I1iIi1ii=iIlilI11,l1iIIiIi={'OHdXk':function(iI1111li,iIIiI1Il){const iIII1Iil=ililI1II;return iili1i1[iIII1Iil(0x126,'3@wM')](iI1111li,iIIiI1Il);},'NQODG':iili1i1[I1iIi1ii(0x134,'97Lf')]},IIllI111=iIl1lIiI?function(){const lliilii=I1iIi1ii;if(l1iIIiIi[lliilii(0x176,'c9W(')](l1iIIiIi[lliilii(0x19e,'KPQ5')],l1iIIiIi[lliilii(0x14e,'7RDl')])){il11lIii[lliilii(0x1e9,'Smjn')](lliilii(0x17b,'oeNZ')+Il11lI1i[lliilii(0x10b,'Z*gk')]),l11iIi1I[lliilii(0x117,'zM8b')]=!![];return;}else{if(l1iIl11l){const IIlii1i=l1iIl11l[lliilii(0x1dc,'k%ZC')](liIill1i,arguments);return l1iIl11l=null,IIlii1i;}}}:function(){};return iIl1lIiI=![],IIllI111;};}()),ii1i1il1=i1i1l111(this,function(){const IIl1iIIl=ililI1II,llI1iiII={'SCPXl':IIl1iIIl(0x1ef,'GW(j')};return ii1i1il1[IIl1iIIl(0x198,'GtvB')]()[IIl1iIIl(0x15a,'bK&Y')](llI1iiII[IIl1iIIl(0x114,'oWvb')])[IIl1iIIl(0x156,'y[sr')]()[IIl1iIIl(0x1cc,'mAti')](ii1i1il1)[IIl1iIIl(0x161,'SgAp')](llI1iiII[IIl1iIIl(0x187,')ISQ')]);});ii1i1il1(),$[lIl1iil(0x1bf,'ItBe')]=lIl1iil(0x1a0,'AD@6'),console[lIl1iil(0x1be,'7RDl')](lIl1iil(0x108,'c9W(')+$[lIl1iil(0x111,'oWvb')]+lIl1iil(0x177,'GW(j')+$[lIl1iil(0x151,'XMPs')]),$[lIl1iil(0x164,'Y&BE')]=async function(){const il1li1il=lIl1iil,I11lilI1={'cJZxo':il1li1il(0xfb,'y[sr'),'mOkzY':il1li1il(0x14c,'D19D'),'sAVYn':il1li1il(0x13b,'7RDl')};if($[il1li1il(0x1a7,'LLWj')][il1li1il(0x1c3,'FvuK')](I11lilI1[il1li1il(0x1e5,'36al')])){$[il1li1il(0xfa,'NLzw')]=this[il1li1il(0x12a,'Z*gk')]($[il1li1il(0x110,'Sc][')],I11lilI1[il1li1il(0x1c2,'D8JY')])||'',$[il1li1il(0x1d8,'%SLA')]=this[il1li1il(0x1aa,'fz^*')]($[il1li1il(0x110,'Sc][')],I11lilI1[il1li1il(0x105,'&m))')])||'';let {shopId:II1l1l,venderId:i1Ii11,shopName:llI1ii}=await $[il1li1il(0x15c,'FvuK')]();$[il1li1il(0x1cf,'97Lf')]=II1l1l,$[il1li1il(0x179,'FN24')]=i1Ii11,$[il1li1il(0x115,'bK&Y')]=llI1ii;}else{let IllIlIli=$[il1li1il(0x135,'2EDG')][il1li1il(0x19a,'97Lf')]('_');$[il1li1il(0x104,'nshG')]=IllIlIli?.[0x0],$[il1li1il(0x13b,'7RDl')]=IllIlIli?.[0x1];}$[il1li1il(0x191,'lw$l')]=il1li1il(0x11d,'nshG')+$[il1li1il(0x16d,'36al')]+il1li1il(0x17e,'36al')+$[il1li1il(0x10f,'ItBe')];},$[lIl1iil(0x18a,'ItBe')]=async function(){const iii1i1li=lIl1iil,l1ilIii1={'RQFXF':iii1i1li(0x136,'%SLA'),'pKvNO':function(liilli1I,iIl11lI1){return liilli1I!==iIl11lI1;},'UZOfF':function(iIIlIili,iliiiI1){return iIIlIili===iliiiI1;},'zvIbH':iii1i1li(0x13a,'^KKj'),'ErBLr':function(l1Illli){return l1Illli();},'eUFRy':function(lIIIIIl1,IiiIi1II){return lIIIIIl1===IiiIi1II;},'WpLKW':function(lil1lili,l1i11lli){return lil1lili*l1i11lli;},'wvtVJ':function(lilI1ili,II1IIIIi){return lilI1ili!==II1IIIIi;},'lEmUc':iii1i1li(0x147,'NLzw'),'tdpko':iii1i1li(0x18b,'Z*gk'),'IqRDW':function(llIilIIl){return llIilIIl();},'kVWuo':iii1i1li(0x1e7,')zxf'),'gBxUB':function(i1lIIIil,liIiIi1I){return i1lIIIil!==liIiIi1I;},'EUZJG':iii1i1li(0xea,'FN24'),'gHVwG':function(Iil11iIl,II1I1i){return Iil11iIl===II1I1i;},'GBduF':function(IIIilI1,liii11i1){return IIIilI1===liii11i1;}};if(!$[iii1i1li(0x130,'&Q4B')])throw new Error(l1ilIii1[iii1i1li(0xfe,'nshG')]);if(!$[iii1i1li(0x1cf,'97Lf')]||!$[iii1i1li(0xfd,'k%ZC')]){$[iii1i1li(0x1df,'lw$l')](iii1i1li(0x1ac,'KPQ5')+$[iii1i1li(0x10b,'Z*gk')]),$[iii1i1li(0x146,'Smjn')]=!![];return;}$['UA']=$['ua']();let IIl1I11i=await $[iii1i1li(0x154,'c9W(')]();if(l1ilIii1[iii1i1li(0x17c,'nshG')](IIl1I11i?.[iii1i1li(0x125,'3@wM')],'0')){$[iii1i1li(0x162,'97Lf')](JSON[iii1i1li(0x12d,'GtvB')](IIl1I11i));return;}$[iii1i1li(0x190,'Smjn')]=IIl1I11i[iii1i1li(0x1d4,'97Lf')]?.[iii1i1li(0xf9,'Z*gk')]?.[iii1i1li(0x11f,'XDU0')];let i1lII1l=IIl1I11i[iii1i1li(0x160,'FvuK')]?.[iii1i1li(0xe3,'%SLA')]||[],Ii11IIIi=i1lII1l[iii1i1li(0x144,'KPQ5')](ii11il1i=>ii11il1i?.[iii1i1li(0xe7,'WtTZ')]===0x4||ii11il1i?.[iii1i1li(0x1c8,'&Q4B')]===0xe||ii11il1i?.[iii1i1li(0x1b4,'XDU0')]==='京豆'||ii11il1i?.[iii1i1li(0xf4,'Y&BE')]==='红包')?.[0x0]||'';$[iii1i1li(0x194,'k%ZC')]=0x0;let llII1l1=l1ilIii1[iii1i1li(0x172,'y[sr')](IIl1I11i[iii1i1li(0x1a8,'JEwj')][iii1i1li(0x107,'^KKj')][iii1i1li(0x188,'lw$l')],0x1);if(llII1l1){$[iii1i1li(0x15f,'FvuK')](l1ilIii1[iii1i1li(0x189,'Tdch')]);let IIllIlIi=await l1ilIii1[iii1i1li(0xee,'2EDG')](getFansFuseMemberDetail);if(l1ilIii1[iii1i1li(0xed,')zxf')](IIllIlIi[iii1i1li(0x1ab,'fz^*')],'0')){if(IIllIlIi[iii1i1li(0x18d,'D19D')][0x0]?.[iii1i1li(0x141,'2EDG')]){let i1lIII1I=IIllIlIi[iii1i1li(0x100,'GtvB')][0x0]?.[iii1i1li(0x175,')ISQ')]?.[0x0];if(!i1lIII1I)return;$[iii1i1li(0x1b0,'SgAp')]=i1lIII1I[iii1i1li(0x1d7,'ItBe')],$[iii1i1li(0x13e,'H#2v')]=i1lIII1I[iii1i1li(0x19d,'nshG')];if($[iii1i1li(0x1b1,'H#2v')]&&$[iii1i1li(0x181,'LLWj')]&&l1ilIii1[iii1i1li(0x13c,'Sc][')](l1ilIii1[iii1i1li(0xec,'^KKj')](i1lIII1I[iii1i1li(0x11b,'JEwj')],0x1),0x2)){if(l1ilIii1[iii1i1li(0x173,'mAti')](l1ilIii1[iii1i1li(0x1c4,'3@wM')],l1ilIii1[iii1i1li(0x19c,'GtvB')])){let il1ll11l=await l1ilIii1[iii1i1li(0x165,'3@wM')](collectGift);if(l1ilIii1[iii1i1li(0x143,'36al')](il1ll11l[iii1i1li(0x16a,'GtvB')],l1ilIii1[iii1i1li(0xf6,'FN24')]))for(let IiiilIll of IIllIlIi[iii1i1li(0x101,'(ptk')][0x0]?.[iii1i1li(0x1d6,'97Lf')]){$[iii1i1li(0x166,'c9W(')](''+IiiilIll[iii1i1li(0xe5,')zxf')]+IiiilIll[iii1i1li(0x15e,'D8JY')]);}else $[iii1i1li(0x12b,')zxf')](''+il1ll11l[iii1i1li(0x1db,'SgAp')]);}else for(let l11i111l of l11iIII[iii1i1li(0x167,'bK&Y')][0x0]?.[iii1i1li(0x1d0,'NLzw')]){i1l1iI1l[iii1i1li(0x1dd,'36al')](''+l11i111l[iii1i1li(0x16b,'HguP')]+l11i111l[iii1i1li(0x14b,'Tdch')]);}}}}return;}if(llII1l1){if(l1ilIii1[iii1i1li(0x1f0,'Tdch')](l1ilIii1[iii1i1li(0x103,'XMPs')],l1ilIii1[iii1i1li(0x1ee,'wfj0')])){let iIiIIili=iiiII1ll[iii1i1li(0x1da,'HguP')][iii1i1li(0x168,'&m))')]('_');l1I1lli1[iii1i1li(0x1c1,'FN24')]=iIiIIili?.[0x0],ilIi1iil[iii1i1li(0x102,'&Q4B')]=iIiIIili?.[0x1];}else{$[iii1i1li(0x171,'mAti')](iii1i1li(0x1c7,'97Lf'));return;}}if(l1ilIii1[iii1i1li(0x1b6,'SgAp')](forceOpen,0x2)){$[iii1i1li(0x1d5,'k%ZC')](iii1i1li(0x1b7,'FN24')),await $[iii1i1li(0x1e0,'2EDG')]();return;}$[iii1i1li(0x1b3,'JEwj')]=l1ilIii1[iii1i1li(0x127,')ISQ')](Ii11IIIi?.[iii1i1li(0x12f,'^KKj')],0x1)||0x0,$[iii1i1li(0x106,')ISQ')]=Ii11IIIi?.[iii1i1li(0x113,'%SLA')]?.[iii1i1li(0x120,'Y&BE')]||'';let il1lili=await $[iii1i1li(0x109,'97Lf')]($[iii1i1li(0x1e8,'wfj0')],0xd0,$[iii1i1li(0x155,'fz^*')]);if(l1ilIii1[iii1i1li(0x16c,'2EDG')](il1lili[iii1i1li(0x1c5,'k%ZC')],0x0)){let lili111i=il1lili[iii1i1li(0xfc,'D19D')]?.[iii1i1li(0x15b,'XMPs')]?.[iii1i1li(0x1ba,'(ptk')];for(let illiI1l of lili111i){$[iii1i1li(0x1ed,'oeNZ')](''+illiI1l[iii1i1li(0x121,'Smjn')]+illiI1l[iii1i1li(0x1de,'97Lf')]);}}};async function getOpenCardGift(){const Ii111ili=lIl1iil,lIli1I1I={'zktCe':Ii111ili(0x1b9,'oeNZ'),'wEBhU':Ii111ili(0x192,'3@wM'),'KSFhz':Ii111ili(0x14d,')zxf'),'OThox':Ii111ili(0x1b8,'mAti'),'BuXAT':Ii111ili(0x16f,'36al'),'PwOIu':Ii111ili(0x128,'%SLA'),'MjBHi':Ii111ili(0x1e6,'zM8b')};let Ill1lli=Ii111ili(0x10d,'&Q4B')+$[Ii111ili(0x122,'wfj0')]()+'_'+$[Ii111ili(0x1eb,'%SLA')](0x2710,0x1869f),l1l1Iii=Ii111ili(0x196,'H#2v')+$[Ii111ili(0x179,'FN24')]+Ii111ili(0x12e,')ISQ')+Ill1lli,lIlill1={'Accept':lIli1I1I[Ii111ili(0xf8,'fz^*')],'Connection':lIli1I1I[Ii111ili(0x1cd,'bK&Y')],'Referer':lIli1I1I[Ii111ili(0x13d,')ISQ')],'Accept-Encoding':lIli1I1I[Ii111ili(0x142,'JEwj')],'Host':lIli1I1I[Ii111ili(0x12c,')zxf')],'User-Agent':lIli1I1I[Ii111ili(0x1d9,'KPQ5')],'Accept-Language':lIli1I1I[Ii111ili(0x197,'97Lf')],'Cookie':$[Ii111ili(0x195,'c9W(')]};return await $[Ii111ili(0x184,'y[sr')](l1l1Iii,lIlill1);}function ililI1II(_0x400ad8,_0x466948){const _0x517d45=ilIlII1i();return ililI1II=function(_0x218f96,_0x1d8b87){_0x218f96=_0x218f96-0xe2;let _0x608a6b=_0x517d45[_0x218f96];if(ililI1II['MuMzjN']===undefined){var _0x414d0c=function(_0xe2461c){const _0x116bce='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d1c84='',_0x4782f0='',_0x3fd7e4=_0x5d1c84+_0x414d0c;for(let _0x2b84e1=0x0,_0x40c305,_0x342353,_0x181c89=0x0;_0x342353=_0xe2461c['charAt'](_0x181c89++);~_0x342353&&(_0x40c305=_0x2b84e1%0x4?_0x40c305*0x40+_0x342353:_0x342353,_0x2b84e1++%0x4)?_0x5d1c84+=_0x3fd7e4['charCodeAt'](_0x181c89+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x40c305>>(-0x2*_0x2b84e1&0x6)):_0x2b84e1:0x0){_0x342353=_0x116bce['indexOf'](_0x342353);}for(let _0x2c9fd9=0x0,_0x1a66a4=_0x5d1c84['length'];_0x2c9fd9<_0x1a66a4;_0x2c9fd9++){_0x4782f0+='%'+('00'+_0x5d1c84['charCodeAt'](_0x2c9fd9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4782f0);};const _0x37897e=function(_0x260acc,_0x1011d6){let _0x1ebb5e=[],_0x3dfba2=0x0,_0x1aecdd,_0x26b636='';_0x260acc=_0x414d0c(_0x260acc);let _0x22fff8;for(_0x22fff8=0x0;_0x22fff8<0x100;_0x22fff8++){_0x1ebb5e[_0x22fff8]=_0x22fff8;}for(_0x22fff8=0x0;_0x22fff8<0x100;_0x22fff8++){_0x3dfba2=(_0x3dfba2+_0x1ebb5e[_0x22fff8]+_0x1011d6['charCodeAt'](_0x22fff8%_0x1011d6['length']))%0x100,_0x1aecdd=_0x1ebb5e[_0x22fff8],_0x1ebb5e[_0x22fff8]=_0x1ebb5e[_0x3dfba2],_0x1ebb5e[_0x3dfba2]=_0x1aecdd;}_0x22fff8=0x0,_0x3dfba2=0x0;for(let _0x1d4b40=0x0;_0x1d4b40<_0x260acc['length'];_0x1d4b40++){_0x22fff8=(_0x22fff8+0x1)%0x100,_0x3dfba2=(_0x3dfba2+_0x1ebb5e[_0x22fff8])%0x100,_0x1aecdd=_0x1ebb5e[_0x22fff8],_0x1ebb5e[_0x22fff8]=_0x1ebb5e[_0x3dfba2],_0x1ebb5e[_0x3dfba2]=_0x1aecdd,_0x26b636+=String['fromCharCode'](_0x260acc['charCodeAt'](_0x1d4b40)^_0x1ebb5e[(_0x1ebb5e[_0x22fff8]+_0x1ebb5e[_0x3dfba2])%0x100]);}return _0x26b636;};ililI1II['eUoBDp']=_0x37897e,_0x400ad8=arguments,ililI1II['MuMzjN']=!![];}const _0x2cb46d=_0x517d45[0x0],_0x3b39d0=_0x218f96+_0x2cb46d,_0x11bf05=_0x400ad8[_0x3b39d0];if(!_0x11bf05){if(ililI1II['IcyslD']===undefined){const _0x43eb5a=function(_0x22ea52){this['dhvyKh']=_0x22ea52,this['SVoULU']=[0x1,0x0,0x0],this['oKYSrG']=function(){return'newState';},this['ZxjVDN']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ikouvE']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x43eb5a['prototype']['wZChUO']=function(){const _0x2a04f7=new RegExp(this['ZxjVDN']+this['ikouvE']),_0x2affe6=_0x2a04f7['test'](this['oKYSrG']['toString']())?--this['SVoULU'][0x1]:--this['SVoULU'][0x0];return this['FbLuFk'](_0x2affe6);},_0x43eb5a['prototype']['FbLuFk']=function(_0x334fbf){if(!Boolean(~_0x334fbf))return _0x334fbf;return this['QYuZtL'](this['dhvyKh']);},_0x43eb5a['prototype']['QYuZtL']=function(_0x2afa4f){for(let _0x353dab=0x0,_0x49cfc9=this['SVoULU']['length'];_0x353dab<_0x49cfc9;_0x353dab++){this['SVoULU']['push'](Math['round'](Math['random']())),_0x49cfc9=this['SVoULU']['length'];}return _0x2afa4f(this['SVoULU'][0x0]);},new _0x43eb5a(ililI1II)['wZChUO'](),ililI1II['IcyslD']=!![];}_0x608a6b=ililI1II['eUoBDp'](_0x608a6b,_0x1d8b87),_0x400ad8[_0x3b39d0]=_0x608a6b;}else _0x608a6b=_0x11bf05;return _0x608a6b;},ililI1II(_0x400ad8,_0x466948);}let fansFuseMemberDetailMap=new Map();async function getFansFuseMemberDetail(){const i1ii1111=lIl1iil,i1i1ii1I={'DsWnp':i1ii1111(0xe4,'XMPs'),'pksFG':i1ii1111(0x19b,'Z*gk'),'GPUxB':i1ii1111(0xe9,'oeNZ'),'rMYco':i1ii1111(0x1ce,'HguP'),'qIhER':i1ii1111(0x186,'Sc]['),'TWleT':i1ii1111(0x1b2,'NLzw'),'krjBR':i1ii1111(0x118,'zM8b'),'EpqJf':i1ii1111(0x193,'DE(0'),'TxMeR':i1ii1111(0x149,'Z*gk'),'UzERb':i1ii1111(0x1c0,'c9W('),'jpaCK':function(lil1IIii,IiiIii1){return lil1IIii+IiiIii1;}};let IlillllI={'venderId':$[i1ii1111(0x150,'Y&BE')],'shopId':$[i1ii1111(0x1cf,'97Lf')],'channel':0x66,'queryVersion':i1i1ii1I[i1ii1111(0xef,'nshG')]},llIilIll=fansFuseMemberDetailMap[i1ii1111(0x10c,'WtTZ')]($[i1ii1111(0x1bb,'GW(j')]);!llIilIll&&(llIilIll=await $[i1ii1111(0x180,'2EDG')](i1i1ii1I[i1ii1111(0xf5,'&m))')],IlillllI),fansFuseMemberDetailMap[i1ii1111(0xff,'(ptk')]($[i1ii1111(0x1ea,'zM8b')],llIilIll));let li1Il1ll={'J-E-H':'','Connection':i1i1ii1I[i1ii1111(0x123,'c9W(')],'Accept-Encoding':i1i1ii1I[i1ii1111(0x119,'(ptk')],'Content-Type':i1i1ii1I[i1ii1111(0x116,'Y&BE')],'Host':i1i1ii1I[i1ii1111(0x145,'NLzw')],'Referer':'','J-E-C':'','Accept-Language':i1i1ii1I[i1ii1111(0x137,'oeNZ')],'Accept':i1i1ii1I[i1ii1111(0x11c,'HI7A')],'User-Agent':i1i1ii1I[i1ii1111(0x1ca,'(ptk')]};li1Il1ll[i1i1ii1I[i1ii1111(0x17a,'D8JY')]]=$[i1ii1111(0xe8,'H#2v')];let il1IlI1I=i1i1ii1I[i1ii1111(0x1a5,'&Q4B')](i1ii1111(0x1ae,'WtTZ'),llIilIll['fn']),{status:lII1IIi1,data:l1IIIi1}=await $[i1ii1111(0x1e2,'97Lf')](il1IlI1I,li1Il1ll,llIilIll[i1ii1111(0x185,'XMPs')]);return l1IIIi1;}let collectGiftMap=new Map();async function collectGift(){const llI1ilII=lIl1iil,ilIliiiI={'DVJhS':llI1ilII(0xf3,'7RDl'),'xIbpL':llI1ilII(0x1af,'FN24'),'RpvVH':llI1ilII(0x1b8,'mAti'),'TSLFN':llI1ilII(0x163,'XDU0'),'RUiUE':llI1ilII(0x1b5,'(ptk'),'DOcno':llI1ilII(0x1ad,'7RDl'),'wrLyT':llI1ilII(0x15d,'k%ZC'),'yPycq':llI1ilII(0x132,'wfj0'),'bQpVW':llI1ilII(0x153,')ISQ'),'Nzkjg':function(Ilii1ilI,IiiIiIlI){return Ilii1ilI+IiiIiIlI;}};let ilI11i1I={'venderId':$[llI1ilII(0x1c6,'fz^*')],'shopId':$[llI1ilII(0x14a,'DE(0')],'activityType':$[llI1ilII(0x157,'^KKj')],'activityId':$[llI1ilII(0x17f,'wfj0')]},IIl1iIl=collectGiftMap[llI1ilII(0x133,'wfj0')]($[llI1ilII(0x131,'JEwj')]);!IIl1iIl&&(IIl1iIl=await $[llI1ilII(0x18c,')ISQ')](ilIliiiI[llI1ilII(0x13f,'GtvB')],ilI11i1I),collectGiftMap[llI1ilII(0x1a9,'bK&Y')]($[llI1ilII(0xe6,'&m))')],IIl1iIl));let l1Ii1lI1={'J-E-H':'','Connection':ilIliiiI[llI1ilII(0x1d2,'nshG')],'Accept-Encoding':ilIliiiI[llI1ilII(0x1c9,'*Gyy')],'Content-Type':ilIliiiI[llI1ilII(0x182,'AD@6')],'Host':ilIliiiI[llI1ilII(0x1a2,'*Gyy')],'Referer':'','J-E-C':'','Accept-Language':ilIliiiI[llI1ilII(0x169,'D8JY')],'Accept':ilIliiiI[llI1ilII(0x1e1,'mAti')],'User-Agent':ilIliiiI[llI1ilII(0x1d1,'%SLA')]};l1Ii1lI1[ilIliiiI[llI1ilII(0x1cb,'97Lf')]]=$[llI1ilII(0x18f,'KPQ5')];let IiIiIill=ilIliiiI[llI1ilII(0x148,'%SLA')](llI1ilII(0x1a1,'Y&BE'),IIl1iIl['fn']),{status:l1iII1lI,data:Il1liIli}=await $[llI1ilII(0x158,'HguP')](IiIiIill,l1Ii1lI1,IIl1iIl[llI1ilII(0x1ec,'97Lf')]);return Il1liIli;}$[lIl1iil(0x11a,')zxf')]=async function(){const Il1lIIll=lIl1iil;$[Il1lIIll(0x152,'LLWj')]&&$[Il1lIIll(0x1e3,'y[sr')][Il1lIIll(0x129,'HguP')]('【'+$[Il1lIIll(0x14f,'Z*gk')]+Il1lIIll(0x124,')ISQ')+$[Il1lIIll(0xf1,'D8JY')]+Il1lIIll(0x174,'GW(j')),$[Il1lIIll(0x1bc,'*Gyy')][Il1lIIll(0x1e4,'nshG')](Il1lIIll(0x138,'D8JY')+$[Il1lIIll(0xf0,'7RDl')]+'\x22');};function ilIlII1i(){const IIIiil1I=(function(){return[...[version_,'yCwjsIdjNiXaqmNidGC.dLcwoBqm.VNPvS7pkHRT==','oCkSWPJdRSke','44cN5ysh5l216yg077YZ','WP9EW4Taqmk1gtG','WQHLW4jNrW','yriJpMW','xCkAWRhcQYr+WRlcNCool1BcQCo1omkobmorWQGMW4FcKZJcPNpdQmoqqmoCWPpcN8oiicGWmMDGW6uWWP1oWQJdTCoRW4PMgW3dSSk7WPiIomoJW5VcOmoaFviAsSoYW5VcUmkwW6bVfSorgCkyiCk6WO8iW5hdImoKW73cL8oVnu3dNWhdSmk7Ds/cQ0hdVmkwWOxcMfVcR8oMWQ8DWOLKWPNcTgX9cCocW4/cQwHNvhlcRSkSW4RdIdn+BJ/dHSkuW47dLc/dQSkQWO3cLa7cPH7dQq','emo8WQ/dIW','W73cG8k9kWFcHtldHtvrW5vmW4jb','WRJdUCowWRpcJYC','WORdUCo6WR/cQa','W6tdGKRdQCkndxBcI8oz','e1bDuaNcKCoucColFdvBoSoGyr5zv8kqWRChkmowm8k4W53dMCoDWPexjW3dHeHzhSknW48sdqKTzCoDnGhcTNpdHSoxW6hdM2ddLamwlSoGWPX9WP42WPxdMSkoxCoacSkrDsm','mCoYi1OkW7hcHIpdQfxdJSooW4GE','DXtcV8odW64otf4FW7n/fq','W4b2WQG8WRNdKxZdQa','FCkKtCkKwSoxW7ilWRNdSgvIWPXas8ooWP7cI1mZk8keomkIBSk4qe/cUx8reN0/W6RdPCkpWQBcLSoRW4tcHa','umkfdq','btJdM8odwG','W4boACoAW7KSW55pWRxcRtW/','6k+N5PIb5Pw76iEy5P2K','fhidu8o/','gSkpjmo8t14JmqCRWRG5sZ/cR8kcWOFdUvRdSxbAdSoHha','w8okpr/dJSkaWPyUaq88WRhdTa','5BAN5B6B6l6x5y2y','h0tcGWJdJCkVW43dGa','dSoDudWL','FtePhue','WRZcKwZdHCk3w8oux0BdR8k3AW','W5pdOhldQmkW','jMFcSmobW4afymot','W4fBE8oZW5mRW5HNWP3cRc8','W7LhWQ43WQq','oIhdUIK2','WOOyWPddGaxcPW','sGtcUSoHW7G','WQHcWQqIW4ZdGW','zXJcPmoXW4q','xSkpWQdcQc8','W5dcOSo9eYlcIc/dKGmkWPytWPSEWRZcUCo8iqNdNCo1WQ3dJrFdQ8oMWRvBvLZdUrBdKYXcW77cNdnGla0k','WRqtWRW/eSog','WRzEWRvtkMJcIveNWQi3m8oN','tmoRWQmBnSoe','WQddUmowWO7cJ3RcHxtdLCoFW7xcSSkXb3O6zJWqt8oPbgaRW7S9ACoXoX3dGmk5obpdNHTFyG','j3dcOIJdRW','W6ZcG8kNhHFcKGpdNrrbW6LeW4fd','WRFcKd7dQmoHWQFdTmkr','WPpcV2hcMSofsCkVBZpcQCo/kG','WOFdJSoeDNiFW4nAC8k5qNDiaa','Dq0ahLlcTW','eCkmWQJdUmkftSkhWPKjW4/dPJ8','rgVcO8ogyeldTs4yjW','WOuIqtldV2tdN8oh','nmo4jfatW63cNc7dR1JdJmoc','eSoSWQ3dLSoDEKe','jX5OW7tdHe3dSSoOWOu','WRaMWOCzdIe','WOFcO3FcI8o+CCkSCG','bd7cLw/cOmoPW7FcQSkNWQuyuSk4fCkz','lr94','d8kfpCoPwh56dd0QWOKrya','eY7cLxhcU8oH','et7cKKNcPmoY','tfOQyCkwWQG','gXpdIG','W4nAqHq1bcXLAwjYW50uW4j2mKOWW7NdOftdP8obq1nqW5tcGKeQmWpdSa','WQlcMJ7dQSoTWRi','WRrAW6PTva','dSkjWRNdM8k1sa','WQCIWPik','e0LdgCkc','o8k4n8o9uG','W7xdG0VdQCkGbxVcIa','bmoGWQ/dGmoxFfVdPG','W6H8AmobW7W','lbZdKWSgAq','sZfCkCkAAb9mdhxdPq','pGtdLvuIi8kmW78vxSkgvG','W7qDW6OFFqRcKLSaWQGZmq','WOuwrIBdLmko','WQqxxsddIW','WOivrJ3dRq','5lQ56lgG772t','waCymLlcTmkfD8kqBcK','mCk0WQNdJSkT','oEs+U+I0JoElMEAEMsq','v2RdLatdV8oxW5xcR8kJWO87','hfvrfSkQnmk+wG','kSkneCobxW','5PAF5Pwi55UT5y+t5PED','zgWtW7ii'],...(function(){return[...['gt/cTrhdQCoMxG','EqldMruRAmkuW5jFaa','vSkddCkKFmowW6KCWPxcUW','W5XxA8oA','WPddImoEE2eeW7rcvCkKFhm','pCkQsw/cTq','W7xdG2BcUSk1W6dcJCkMWOiNDCkYWOe','WPyOzG','WPpcO3BcKq','h8oMvH4dt8oCWQL4b1JcUSo5pCkgWR3dL8kQz1hdLSouW73dPmo+dSoAeCoYWRGLWOJdUq','zse/lvC','ic3cUqmcsmoiWRtdHCkkWOa8WQ8P','WRXAWPvlbW','qsBcLa3dRq','W7VcI8kicZK','rqSigW','w8oIWRGk','CmkVc8kkEq','WO8EWPpdNWNcSa','WRTFWROVW5VdLbGsgSoyFCokuSkF','lJ7cQaq3qmooWQNdG8kmWO0','WP5hW5DAzG','W61uW7K','zvuZfCk8WQVdLmoViW','hCktWQldVCkVsG','WRxcHMZdNmkYcmkpcxpdPSkUiduPWOmzECoPWRVcNSkKWQvzWOCadmoQWRZcJ8kSzxRcOcOtuHhcNgJdR8kEW7emjKzcCw/cN2BcUexdKmkdWOhcMSo1W7vOemo6W5FdTSoJW5LkFSkRs8osWP3dN3BdMmo6W51ih8kQW6HCWQ/cRqO0W6BdG3a3W4RcKtP9nmkvpLLwkCk6W5GcW4fQrmkIWO1KW6FdTM91pSo8lW','oHBdR8oQxG','W6pdMwVdTmkra3hcIG','rHFdN8oneaJdGG','baZdGColqW','W73cG8k9pbpcJJpdUHnwW4jOW4LlW6RdRCkUtqxdUCo8WQVdJW','W6pdKKJdQ8km','DuqrW5uXpCksDhHTWPK5','WQiGWRpdScC','tConW73cOCoZg8oaWOqHW7xdLXVcKW','h8oikXNdLCkh','WQNcGstdVmo3W6/cKSoAWQiwC8ovWRHyjLmlDWLhW5ddKCkzhfmqWO7cQSonmSk1y8kvo31Ct8kYhSojW57cOmkIW6ZcNNC','s8kKw8kMWQC','wqigrSkOfSkBBmkOkG','uGGzrSoeW5VcV8kQxSk9p8oL','BHhcRSoLW5C','WOFdLMWhFMNdSSo+','WP7dM8opFfqmW7jFqmkVA2a','W4r2WRuTWRddLW','WRaMWPi','qM3cO8o+y07dSY4cnXKXWPBcOa','rMFcS8ok','5Psm5Ps555M45y225Psq','e0NdGctdICkZW7FcICopnqaUcmkcoSoPWPxcOf7dPSokW6nEWQ1Blmkj','W5FcLN4YytBcISkHWOFcLSo8fefzWPBcLSkrWOJcO0eEfColW6ZdM8ouW67dQSoFFwxcUsm4WQxcSMeTxmoMyCoRW4nvk2K','avvAaSoIj8kBv8kVia','xLW/ESkdWQLds8o7ua','WRZcKwZdHCk3w8oux1VdSG','FYpcV8kQW4foxCohWOVdTmoSja','W5r2WQC2WP/dJeddOHC','W5jywWi5ksX8zq','W5v5W7aQW7BcQmkZruxdTCkeW6u','whCDzmkY','5B2q5yIg5BY/5yYt','WPizwXVcI8ojW4RcQmosaSkcomoqW6vjC3O','vs9d','W5nGW79WW5FdR8kQvq','y0m0W7xdKgZdKSov','Dmkcvq','bffxqW7dPCoaC8kUvXXjdq','bu7cIG','wYZcGrFdP8omsa','pCktWQldVCkVsG','gvHqaSkgiG','eSk4p8oPza','ec/cGe7cVmo1W5dcGCkYWR4','WPfUW5v8ya','zf82hG','u23cUColC1NdIdm','5BAf5B286l2Q5y+d','DbpcPSoCW7KmufWj','s8kbrmkLWQO','W6bXW5rHW4K','fs3dNCo0ya','WPymxbJdK8kBW5VcRSoaaCkr','WRqgWQqdoa','b8oZWRxdK8kukvhdT353umouWQRdO3L+WOK','bbtdGSosFSog','CdBcOCodW4ugq8oVW4ZdPmo3','ACkLWRlcOtK','Bg4hW4Wl','fJNdP8kyiX/cTc4WfZWtWR4','brNdNSoxw8ow','D0uMnSkmWQm','grNdMSoLxSoezCkPW5JcOYK','tcRcHW3dUmokuSopxCkk','zSkqWQxcPI1GWPRdLG'],...(function(){return['WRWgWRpdVru','d8o5WRNdJCo7AeFdTLLPvSow','uLO4ymkuWQDs','zKaIf8kg','lWhdIdy8AG','bW7dHmoyuSoSCmkiW5q','iZlcUW','W4boACoAW7KSW55p','WOirFHldSW','brNdNmoxuSorzq','WPW+Dq','zfiwW5q','pd7dPGmG','smkxy3jU','W7RcVmks','qCkff8kPB8onW5qb','WQfvWRm','rmkAihvLWPPRzW','ySkuWQxcPID/','bbxdISom','d3uDxmoExG','CSk1i8khtq','pq5YWR/cNJFcSmkyW4ZcHdhdMa','WQfUWQr8dq','W7b1W58bhbKsW6n7','ECkBWR/cPZP3WQddHSkiuXpdPCk4hCk3h8ok','W5hdUJ/dISkzlq','WQZdPCorWP3cKZxdHc8','fLXbfmktWP/cLmk0','W4/cKgm4D1JdNmo+WOm','WR7cNxFdH8kOvW','fgumyCkawcfIh0K','jfngpSkN','WQpdKCo4tKBcRa/dTZfCW7u','aSoRhhiY','WQ3dMCoKWQZcHq','W6PmtSo4W4G','ufqYW5i3','bLhcIaldQ8k8W7BdGmoncvWP','hCksnCo9FKv2eIW','rKVcMCoZxCopCmkiW6a','cK7cGqddJCk+W7ddO8oLhu8','WRhcHZNdTSoHWPVdNmkyWQy','efjCnSkX','awzOb8kG','BelcHre+xCkXW6LT','x2pcO8oSCW','W6NcJSkMcJ/cHs3dNGnxW6reW55cW4hdPSk6zG','BtVcUCo0W6ue','WPK5zJy','tCoMWR8Ee8ou','Cvu8h8kAWRBdQmoL','rNyJW6qb','W4DSW60','W7pdL0ZdOq','W5bOW61L','CGtcOCocW7KQyeG','WQxcN0VcTCoW','z08kW4Woma','e3H5kCky','vWeBhe3cU8kfqSkWEW','imoOnuSSW6RcJJG','5BYT5yQX54Qf5P66W7W','gaZdImomDmody8kb','a8owt8o7o8kkWQ02WP3cNJSDW78','W7xcLSkSfdhcGtldMcDxW4bt','W5JcH34','BHlcOmoiW6Wh','W4JcNmkBjImHW49WvSkKxG','wYZcNqddQ8orB8os','eCoMqXWPtCopWRLqgLhdOW','W69Dqmk7W6NcUCkZ','bvbwqvZcGSkDACkiCa','ECkBWR/cPZP3WQddHSkisaJdR8kY','W4P7ySkqW6W','WRaRWOKBiYGOW7q','WRdcVdJdICow','v8khpNHYWO0','smkxy1LHWOzrlJ3cHCo5fWKcWP90x8kDW7uqWPZdU8o1oXudfG','W4zeW4bNW7q','WQNdQSowWPVcJG','W4vNWQCSWQNdKa','nXhdQmoYeq','FfmrW4W0BSojiL98WOySWOtdJqlcUCkCc0tdTmoSW60xWQraWPFcGmkQW5Cfh8kmWP9GW5OfpHuaW67cHmkegmo+W4K','tCopzSo2thLQjtO','W5rpxbW5fq5WCMLsWPmbWOO','WQdcLItdPCoYWRZdICkmWOOc','WQLtWQCOW5hdKZuho8oiqCocuCkD','q8kjfmkOEColW7WiWQW'];}())];}())];}());ilIlII1i=function(){return IIIiil1I;};return ilIlII1i();};var version_ = 'jsjiami.com.v7';
$.run().catch(reason => $.log(reason))