X/cat/lib/ali_api.js

1 line
40 KiB
JavaScript
Raw Normal View History

2023-12-06 10:48:37 +02:00
const _0x4ed712=_0x5476;(function(_0x1a9977,_0x2c4f5b){const _0x543552=_0x5476,_0x5920fd=_0x1a9977();while(!![]){try{const _0x4691e8=parseInt(_0x543552(0x16f))/0x1+-parseInt(_0x543552(0x1d6))/0x2*(parseInt(_0x543552(0x175))/0x3)+parseInt(_0x543552(0x14e))/0x4*(parseInt(_0x543552(0x126))/0x5)+parseInt(_0x543552(0x1aa))/0x6*(-parseInt(_0x543552(0x182))/0x7)+-parseInt(_0x543552(0x217))/0x8*(-parseInt(_0x543552(0x20c))/0x9)+parseInt(_0x543552(0x22b))/0xa*(-parseInt(_0x543552(0x13b))/0xb)+parseInt(_0x543552(0x232))/0xc*(parseInt(_0x543552(0x12a))/0xd);if(_0x4691e8===_0x2c4f5b)break;else _0x5920fd['push'](_0x5920fd['shift']());}catch(_0x67b1a4){_0x5920fd['push'](_0x5920fd['shift']());}}}(_0x5237,0x6efd9));const _0x283db0=(function(){let _0x3d01d8=!![];return function(_0x1b0a43,_0x50f699){const _0x2d95a5=_0x3d01d8?function(){if(_0x50f699){const _0x4bf423=_0x50f699['apply'](_0x1b0a43,arguments);return _0x50f699=null,_0x4bf423;}}:function(){};return _0x3d01d8=![],_0x2d95a5;};}()),_0x31fc30=_0x283db0(this,function(){const _0x36583d=_0x5476;let _0x302aa5;try{const _0x2e0bd3=Function(_0x36583d(0x12d)+_0x36583d(0x1a3)+(_0x36583d(0x149)+_0x36583d(0x1f9)+_0x36583d(0x190)+'\x20)')+');');_0x302aa5=_0x2e0bd3();}catch(_0x41442c){_0x302aa5=window;}const _0x58ad1a=_0x302aa5[_0x36583d(0x125)]=_0x302aa5[_0x36583d(0x125)]||{},_0x163ee6=[_0x36583d(0x19a),_0x36583d(0x15f),_0x36583d(0x1b2),'error',_0x36583d(0x1dd),'table',_0x36583d(0x130)];for(let _0x28852b=0x0;_0x28852b<_0x163ee6['length'];_0x28852b++){const _0x4cbd9f=_0x283db0[_0x36583d(0x18e)+'r']['prototype'][_0x36583d(0x1ad)](_0x283db0),_0x2a3ead=_0x163ee6[_0x28852b],_0x2b9900=_0x58ad1a[_0x2a3ead]||_0x4cbd9f;_0x4cbd9f[_0x36583d(0x206)]=_0x283db0[_0x36583d(0x1ad)](_0x283db0),_0x4cbd9f[_0x36583d(0x1d0)]=_0x2b9900[_0x36583d(0x1d0)][_0x36583d(0x1ad)](_0x2b9900),_0x58ad1a[_0x2a3ead]=_0x4cbd9f;}});_0x31fc30();import{_,jinja2}from'assets://js/lib/cat.js';import*as _0x4c5aa8 from'./utils.js';class User{constructor(){const _0x16ed2b=_0x5476;this[_0x16ed2b(0x225)]='',this[_0x16ed2b(0x1bf)]='',this['tokenType']='',this[_0x16ed2b(0x155)+'n']='',this['refreshTok'+'en']='',this['expiresIn']=0x0,this[_0x16ed2b(0x167)+_0x16ed2b(0x1a8)]=0x0;}static['objectFrom'](_0x1f02a8){const _0x4f6e4e=_0x5476;if(_[_0x4f6e4e(0x219)](_0x1f02a8))return new User();let _0x269cdf=JSON[_0x4f6e4e(0x11b)](_0x1f02a8),_0x59e318=new User();_0x59e318['driveId']=_0x269cdf[_0x4f6e4e(0x20d)+_0x4f6e4e(0x24f)],_0x59e318[_0x4f6e4e(0x1bf)]=_0x269cdf[_0x4f6e4e(0x21f)],_0x59e318[_0x4f6e4e(0x168)]=_0x269cdf[_0x4f6e4e(0x1cf)],_0x59e318[_0x4f6e4e(0x155)+'n']=_0x269cdf[_0x4f6e4e(0x181)+'en'],_0x59e318[_0x4f6e4e(0x24a)+'en']=_0x269cdf[_0x4f6e4e(0x118)+_0x4f6e4e(0x193)],_0x59e318[_0x4f6e4e(0x23e)]=_0x269cdf[_0x4f6e4e(0x253)];if(typeof _0x269cdf[_0x4f6e4e(0x1b3)+_0x4f6e4e(0x222)]==_0x4f6e4e(0x218)){let _0x3d2cce=new Date()['getTime']()/0x3e8;_0x59e318['expiresTim'+_0x4f6e4e(0x1a8)]=_0x3d2cce+_0x59e318['expiresIn'];}else _0x59e318[_0x4f6e4e(0x167)+_0x4f6e4e(0x1a8)]=_0x269cdf[_0x4f6e4e(0x1b3)+'mestamp'];return _0x59e318;}['getDriveId'](){const _0x349644=_0x5476;return _[_0x349644(0x219)](this['driveId'])?'':this[_0x349644(0x225)];}[_0x4ed712(0x1f6)](){const _0x59c3cc=_0x4ed712;return _[_0x59c3cc(0x219)](this[_0x59c3cc(0x1bf)])?'':this[_0x59c3cc(0x1bf)];}['getTokenTy'+'pe'](){const _0x3c55b0=_0x4ed712;return _[_0x3c55b0(0x219)](this[_0x3c55b0(0x168)])?'':this[_0x3c55b0(0x168)];}[_0x4ed712(0x251)+'oken'](){const _0xe07275=_0x4ed712;return _[_0xe07275(0x219)](this[_0xe07275(0x155)+'n'])?'':this[_0xe07275(0x155)+'n'];}[_0x4ed712(0x202)+_0x4ed712(0x1ec)](){const _0x4c5ef4=_0x4ed712;return _[_0x4c5ef4(0x219)](this[_0x4c5ef4(0x24a)+'en'])?'':this[_0x4c5ef4(0x24a)+'en'];}[_0x4ed712(0x234)+_0x4ed712(0x1ec)](_0x3e6f6e){const _0x3e4e88=_0x4ed712;this[_0x3e4e88(0x24a)+'en']=_0x3e6f6e;}[_0x4ed712(0x177)+_0x4ed712(0x1ba)](){const _0x4cbd16=_0x4ed712;return this[_0x4cbd16(0x143)+'pe']()+'\x20'+this['getAccessT'+_0x4cbd16(0x128)]();}['isAuthed'](){const _0x384597=_0x4ed712;return this[_0x384597(0x143)+'pe']()['length']>0x0&&this[_0x384597(0x251)+_0x384597(0x128)]()[_