N3RDN/JN/EXT/OPENJS/open/lib/ali_api.js

1 line
28 KiB
JavaScript
Raw Normal View History

2023-07-25 20:38:30 +08:00
const y=b;(function(d,e){const x=b,f=d();while(!![]){try{const g=-parseInt(x(0x2ba))/0x1*(-parseInt(x(0x2e5))/0x2)+parseInt(x(0x304))/0x3*(parseInt(x(0x313))/0x4)+-parseInt(x(0x2c0))/0x5*(parseInt(x(0x213))/0x6)+parseInt(x(0x248))/0x7*(parseInt(x(0x339))/0x8)+parseInt(x(0x25e))/0x9+-parseInt(x(0x268))/0xa*(parseInt(x(0x1ef))/0xb)+parseInt(x(0x288))/0xc;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x9f8b9));import{_,jinja2}from'./cat.js';import*as c from'./utils.js';class User{['driveId']='';[y(0x21b)]='';[y(0x2b5)]='';['accessToken']='';[y(0x291)]='';static[y(0x215)](d){const z=y,e={'UvHZQ':z(0x34c),'ZITdS':z(0x2b3),'geopG':z(0x1f4)};if(_[z(0x25d)](d))return new User();let f=JSON[z(0x2cd)](d),g=new User();return g[z(0x328)]=f[e[z(0x1fe)]],g[z(0x21b)]=f[e[z(0x208)]],g[z(0x2b5)]=f[z(0x20f)],g[z(0x28b)]=f[z(0x309)],g['refreshToken']=f[e[z(0x249)]],g;}constructor(){}[y(0x33b)](){const A=y;return _[A(0x25d)](this[A(0x328)])?'':this[A(0x328)];}['getUserId'](){const B=y;return _[B(0x25d)](this['userId'])?'':this[B(0x21b)];}['getTokenType'](){const C=y;return _[C(0x25d)](this[C(0x2b5)])?'':this[C(0x2b5)];}[y(0x27d)](){const D=y;return _[D(0x25d)](this[D(0x28b)])?'':this[D(0x28b)];}[y(0x232)](){const E=y;return _[E(0x25d)](this[E(0x291)])?'':this['refreshToken'];}[y(0x2c2)](d){const F=y;this[F(0x291)]=d;}[y(0x202)](){const G=y,d={'uUrFz':function(e,f){return e+f;}};return d['uUrFz'](d[G(0x2f4)](this[G(0x347)](),'\x20'),this[G(0x27d)]());}[y(0x22f)](){const H=y,d={'CUdfL':function(e,f){return e>f;},'sMnPj':function(e,f){return e>f;}};return d['CUdfL'](this[H(0x347)]()[H(0x32e)],0x0)&&d[H(0x2ae)](this[H(0x27d)]()[H(0x32e)],0x0);}[y(0x333)](){const I=y;return this[I(0x291)]='',this[I(0x28b)]='',this;}async[y(0x257)](){const J=y,d={'aXHJZ':J(0x20b),'KqjOy':J(0x20a)};return await local[J(0x200)](d[J(0x2e1)],d[J(0x2c8)],this[J(0x2f8)]()),this;}[y(0x2f8)](){const K=y;var d={'default_drive_id':this[K(0x33b)](),'user_id':this[K(0x316)](),'token_type':this[K(0x347)](),'access_token':this['getAccessToken'](),'refresh_token':this[K(0x232)]()};return JSON[K(0x279)](d);}}class OAuth{[y(0x2b5)]='';[y(0x28b)]='';[y(0x291)]='';static['objectFrom'](d){const L=y,e={'KLrmp':L(0x2a2),'bOOXF':L(0x20f),'winPW':L(0x309)};console['log'](e[L(0x30f)]),console[L(0x24d)](d);if(_[L(0x25d)](d))return new OAuth();let f=JSON['parse'](d),g=new OAuth();return g[L(0x2b5)]=f[e['bOOXF']],g['accessToken']=f[e['winPW']],g['refreshToken']=f[L(0x1f4)],g;}['getTokenType'](){const M=y;return _[M(0x25d)](this[M(0x2b5)])?'':this[M(0x2b5)];}[y(0x27d)](){const N=y;return _['isEmpty'](this[N(0x28b)])?'':this[N(0x28b)];}[y(0x232)](){const O=y;return _[O(0x25d)](this[O(0x291)])?'':this[O(0x291)];}[y(0x202)](){const P=y,d={'mkUgB':function(e,f){return e+f;}};return d[P(0x289)](this[P(0x347)](),'\x20')+this[P(0x27d)]();}[y(0x333)](){const Q=y;return this[Q(0x291)]='',this[Q(0x28b)]='',this;}async[y(0x257)](){const R=y,d={'EQTvw':R(0x201)};return await local['set'](R(0x20b),d[R(0x27a)],this[R(0x2f8)]()),this;}[y(0x2f8)](){const S=y;var d={'token_type':this[S(0x347)](),'access_token':this[S(0x27d)](),'refresh_token':this['getRefreshToken']()};return JSON[S(0x279)](d);}}class Item{[y(0x1f9)]=[];[y(0x310)]='';[y(0x307)]='';[y(0x275)]='';[y(0x327)]='';[y(0x29c)]='';[y(0x205)]='';[y(0x23b)]='';[y(0x27e)]='';[y(0x2bb)]='';constructor(d){const T=y,e={'muPcO':function(f,g){return f+g;},'jFjWT':T(0x26c)};console[T(0x24d)](e[T(0x253)](e[T(0x27f)],d)),this[T(0x307)]=d;}static[y(0x215)](d){const U=y,e={'YWWQD':U(0x348),'AnDcx':'undefined','tnhcy':function(h,i){return h==i;},'reNyO':U(0x22e),'dBNBa':U(0x27c),'julUf':U(0x29c),'EblmY':function(h,i){return h==i;},'jcLSh':U(0x24b),'WPvTs':U(0x23b),'UjukU':U(0x27e),'PvFot':function(h,i){return h==i;},'egyYf':U(0x1f2),'OTAvw':'items'};if(_[U(0x25d)](d))return new Item();let f=JSON[U(0x2cd)](d),g=new Item();return g[U(0x310)]=typeof f[e['YWWQD']]==e[U(0x2ea)]?'':f[e[U(0x235)]],g['fileId']=e[U(0x2a3)](typeof f[e[U(0x343)]],U(0x2cb))?'':f[U(0x22e)],g[U(0x275)]=e[U(0x2a3)](typeof f[U(0x27c)],e['AnDcx'])?'':f[e[U(0x2