diff --git a/JN/EXT/OPENJS/open/lib/ali.js b/JN/EXT/OPENJS/open/lib/ali.js index ce459bfa..f3e1e07c 100644 --- a/JN/EXT/OPENJS/open/lib/ali.js +++ b/JN/EXT/OPENJS/open/lib/ali.js @@ -1 +1 @@ -(function(c,d){const n=b,e=c();while(!![]){try{const f=-parseInt(n(0x148))/0x1+-parseInt(n(0x140))/0x2*(parseInt(n(0x145))/0x3)+parseInt(n(0x150))/0x4*(parseInt(n(0x14c))/0x5)+-parseInt(n(0x147))/0x6+-parseInt(n(0x13d))/0x7+parseInt(n(0x13c))/0x8+parseInt(n(0x13b))/0x9*(parseInt(n(0x142))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xaf4a3));import{_}from'./cat.js';import{log}from'./utils.js';import{initSome,setToken,setShareId,getVod,playerContent,playerContentByFlag}from'./ali_api.js';function a(){const r=['126jHersJ','8018976SyNpYU','7198947GYbEkJ','wGsFx','isEmpty','50HOYYaa','PIvCN','1745270xSfZmS','match','split','68196ySTEaL','trim','3359892YLzwvG','845051dhMcfo','ali\x20init:','MlDBF','xvRmD','4405TqvVPk','stringify','HyWVX','ali\x20init\x20ext:','1244NAvJeB','ewEMb'];a=function(){return r;};return a();}function b(c,d){const e=a();return b=function(f,g){f=f-0x13a;let h=e[f];return h;},b(c,d);}async function initAli(c){const o=b,d={'HyWVX':function(f,g){return f(g);},'PIvCN':o(0x149),'ewEMb':function(f,g){return f+g;},'xvRmD':o(0x14f)};let e=c['ext'];await d[o(0x14e)](log,d[o(0x141)]+typeof c),await initSome(),await d[o(0x14e)](setToken,e),await d[o(0x14e)](log,d[o(0x13a)](d[o(0x14b)],e));}async function detailContent(c){const p=b,d={'MlDBF':function(l,m){return l(m);}},e=/www.aliyundrive.com\/s\/([^\/]+)(\/folder\/([^\/]+))?/;let f=c[p(0x146)](),g=f[p(0x143)](e);if(_[p(0x13f)](g))return'';let h=g[0x1],i=g['length']==0x3?g[0x3]:'';await d[p(0x14a)](setShareId,h);let j=await getVod(f,i),k=JSON[p(0x14d)]({'list':[j]});return k;}async function playContent(c,d,e){const q=b,f={'wGsFx':function(i,j){return i==j;},'rAcPj':function(i,j,k){return i(j,k);}};let g=d[q(0x144)]('+'),h=f[q(0x13e)](c,'原画')?await playerContent(g):await f['rAcPj'](playerContentByFlag,g,c);return h;}export{initAli,detailContent,playContent}; \ No newline at end of file +(function(_0x24a2d2,_0x5e8b9c){const _0x5df84b=_0x8314,_0x37f89b=_0x24a2d2();while(!![]){try{const _0x2c4d4a=-parseInt(_0x5df84b(0x1f5))/0x1*(-parseInt(_0x5df84b(0x1f6))/0x2)+parseInt(_0x5df84b(0x200))/0x3+-parseInt(_0x5df84b(0x1eb))/0x4*(parseInt(_0x5df84b(0x1ea))/0x5)+parseInt(_0x5df84b(0x1ed))/0x6*(-parseInt(_0x5df84b(0x1e2))/0x7)+-parseInt(_0x5df84b(0x1fc))/0x8*(-parseInt(_0x5df84b(0x1f3))/0x9)+-parseInt(_0x5df84b(0x1ec))/0xa*(parseInt(_0x5df84b(0x1e4))/0xb)+-parseInt(_0x5df84b(0x1e8))/0xc;if(_0x2c4d4a===_0x5e8b9c)break;else _0x37f89b['push'](_0x37f89b['shift']());}catch(_0x42d019){_0x37f89b['push'](_0x37f89b['shift']());}}}(_0x3662,0xc4f19));const _0x5403fe=(function(){let _0x33197a=!![];return function(_0x25661f,_0x19ca25){const _0x33a295=_0x33197a?function(){const _0x229372=_0x8314;if(_0x19ca25){const _0x236c2e=_0x19ca25[_0x229372(0x1ee)](_0x25661f,arguments);return _0x19ca25=null,_0x236c2e;}}:function(){};return _0x33197a=![],_0x33a295;};}()),_0x1a5007=_0x5403fe(this,function(){const _0x516ca0=_0x8314;let _0x4c830a;try{const _0x1d20d6=Function(_0x516ca0(0x1e3)+_0x516ca0(0x1f0)+');');_0x4c830a=_0x1d20d6();}catch(_0x4bf3f9){_0x4c830a=window;}const _0x1f4472=_0x4c830a[_0x516ca0(0x1e6)]=_0x4c830a['console']||{},_0x2283f3=[_0x516ca0(0x1f2),_0x516ca0(0x1f1),_0x516ca0(0x1fe),'error',_0x516ca0(0x1f7),'table','trace'];for(let _0x3cf6e9=0x0;_0x3cf6e9<_0x2283f3[_0x516ca0(0x1fa)];_0x3cf6e9++){const _0x1e114f=_0x5403fe['constructor'][_0x516ca0(0x1f9)]['bind'](_0x5403fe),_0x1a6a55=_0x2283f3[_0x3cf6e9],_0xde1b62=_0x1f4472[_0x1a6a55]||_0x1e114f;_0x1e114f['__proto__']=_0x5403fe['bind'](_0x5403fe),_0x1e114f['toString']=_0xde1b62[_0x516ca0(0x1ef)][_0x516ca0(0x1f8)](_0xde1b62),_0x1f4472[_0x1a6a55]=_0x1e114f;}});_0x1a5007();import{_}from'./cat.js';import{initSome,setToken,setShareId,getVod,playerContent,playerContentByFlag}from'./ali_api.js';async function initAli(_0x3f10ce){await initSome(),await setToken(_0x3f10ce);}function _0x3662(){const _0x323ddf=['match','info','debug','4684176HcWJTq','1211idbeaQ','return\x20(function()\x20','99lEeIGW','-----playContent-------','console','split','19834608jNlQAs','isEmpty','100qLvEjd','123404oxGYjD','132210InTKLS','1722UonmUS','apply','toString','{}.constructor(\x22return\x20this\x22)(\x20)','warn','log','261ILDdxF','stringify','3049bfdvKa','206pnNeHh','exception','bind','prototype','length','trim','377872dYbZkZ'];_0x3662=function(){return _0x323ddf;};return _0x3662();}async function detailContent(_0x1094f1){const _0x55be27=_0x8314,_0x5c056c=/www.aliyundrive.com\/s\/([^\/]+)(\/folder\/([^\/]+))?/;let _0x4cb453=_0x1094f1[_0x55be27(0x1fb)](),_0x49069b=_0x4cb453[_0x55be27(0x1fd)](_0x5c056c);if(_[_0x55be27(0x1e9)](_0x49069b))return'';let _0x1e8a67=_0x49069b[0x1],_0x1943ab=_0x49069b['length']==0x3?_0x49069b[0x3]:'';await setShareId(_0x1e8a67);let _0x5cddd0=await getVod(_0x4cb453,_0x1943ab),_0x538833=JSON[_0x55be27(0x1f4)]({'list':[_0x5cddd0]});return console[_0x55be27(0x1ff)](_0x538833),_0x538833;}function _0x8314(_0x1e522d,_0x76b569){const _0x4e0a8c=_0x3662();return _0x8314=function(_0x1a5007,_0x5403fe){_0x1a5007=_0x1a5007-0x1e2;let _0x6a32f1=_0x4e0a8c[_0x1a5007];return _0x6a32f1;},_0x8314(_0x1e522d,_0x76b569);}async function playContent(_0x292f90,_0xb9135b,_0x254b54){const _0x1a1dc4=_0x8314;let _0x356b9e=_0xb9135b[_0x1a1dc4(0x1e7)]('+'),_0x241b39=_0x292f90=='原画'?await playerContent(_0x356b9e):await playerContentByFlag(_0x356b9e,_0x292f90);return console[_0x1a1dc4(0x1ff)](_0x1a1dc4(0x1e5)),console[_0x1a1dc4(0x1ff)](_0x241b39),_0x241b39;}export{initAli,detailContent,playContent}; \ No newline at end of file diff --git a/JN/EXT/OPENJS/open/lib/ali_api.js b/JN/EXT/OPENJS/open/lib/ali_api.js index 20bcd42c..19972ef2 100644 --- a/JN/EXT/OPENJS/open/lib/ali_api.js +++ b/JN/EXT/OPENJS/open/lib/ali_api.js @@ -1 +1 @@ -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(0x2eb)]],g[U(0x327)]=e['tnhcy'](typeof f[U(0x327)],U(0x2cb))?'':f[U(0x327)],g['type']=typeof f['type']==e['AnDcx']?'':f[e[U(0x2da)]],g[U(0x205)]=e['EblmY'](typeof f[e[U(0x34e)]],e[U(0x2ea)])?'':f[e[U(0x34e)]],g['category']=typeof f[e['WPvTs']]=='undefined'?'':f[e[U(0x308)]],g[U(0x27e)]=e[U(0x281)](typeof f[e[U(0x2d1)]],U(0x2cb))?'':f[e['UjukU']],g[U(0x2bb)]=e[U(0x2de)](typeof f[e['egyYf']],e[U(0x2ea)])?'':f[e[U(0x26b)]],typeof f[U(0x1f9)]!=e[U(0x2ea)]&&Array['isArray'](f[U(0x1f9)])&&!_['isEmpty'](f['items'])&&f[e[U(0x34d)]][U(0x210)](function(h){const V=U;let i=Item[V(0x215)](JSON[V(0x279)](h));g[V(0x1f9)]['push'](i);}),g;}[y(0x325)](){const W=y;return _['isEmpty'](this[W(0x1f9)])?[]:this[W(0x1f9)];}[y(0x221)](){const X=y;return _[X(0x25d)](this['nextMarker'])?'':this['nextMarker'];}['getFileId'](){const Y=y;return _['isEmpty'](this['fileId'])?'':this[Y(0x307)];}[y(0x2b8)](){const Z=y;return _[Z(0x25d)](this[Z(0x327)])?'':this[Z(0x327)];}['getType'](){const a0=y;return _[a0(0x25d)](this[a0(0x29c)])?'':this[a0(0x29c)];}['getExt'](){const a1=y;return _['isEmpty'](this['fileExtension'])?'':this[a1(0x205)];}[y(0x335)](){const a2=y;return _[a2(0x25d)](this[a2(0x23b)])?'':this[a2(0x23b)];}['getSize'](){const a3=y,d={'WIJtp':function(e,f){return e==f;},'CTVsW':function(e,f){return e+f;},'xqapa':function(e,f){return e+f;}};return d[a3(0x31b)](this[a3(0x27e)],0x0)?'':d[a3(0x351)](d[a3(0x320)]('[',c['getSize'](this[a3(0x27e)])),']');}['getParent'](){const a4=y,d={'MuVgL':function(e,f){return e+f;}};return _[a4(0x25d)](this[a4(0x2bb)])?'':d[a4(0x2a9)]('['+this[a4(0x2bb)],']');}['parentFunc'](d){return this['parent']=d,this;}[y(0x2e9)](){const a5=y,d={'YGhdP':function(e,f){return e+f;}};return d['YGhdP'](d[a5(0x312)](this['getParent']()+'\x20',this[a5(0x2b8)]()),'\x20')+this[a5(0x225)]();}}class Code{[y(0x278)]='';static[y(0x215)](d){const a6=y,e={'FLZZh':a6(0x278)};if(_[a6(0x25d)](d))return new Code();let f=JSON[a6(0x2cd)](d),g=new Code();return g['redirectUri']=f[e['FLZZh']],g;}constructor(){}['getRedirectUri'](){const a7=y;return _['isEmpty'](this['redirectUri'])?'':this[a7(0x278)];}[y(0x20d)](){const a8=y,d={'DTswQ':a8(0x32a)};return this['getRedirectUri']()[a8(0x338)](d[a8(0x2a1)])[0x1];}}const UA=y(0x204),CLIENT_ID=y(0x2d5);let quality={},tempIds=[],refreshToken='',shareToken='',shareId='',oauth=new OAuth(),user=new User(),log=c[y(0x24d)];async function getUserCache(){const a9=y,d={'JpwiC':a9(0x20b),'OcxGe':'aliyundrive_user'};var e=await local[a9(0x250)](d[a9(0x314)],d['OcxGe']);return e;}async function getOAuthCache(){const aa=y,d={'BYnXW':'ali','bIGZt':aa(0x201)};var e=await local[aa(0x250)](d['BYnXW'],d[aa(0x33e)]);return e;}async function initSome(){const ab=y,d={'KELrN':function(g){return g();},'ySAeR':function(g,h){return g(h);},'LyJDL':function(g,h){return g+h;},'sMxZd':ab(0x259),'SCZsR':ab(0x332),'XuWHB':function(g,h){return g(h);},'gHbEP':function(g,h){return g+h;},'gJFiF':'initSome----user-','plJlg':ab(0x25f),'RhMwx':ab(0x26e)};tempIds=[];let e=await d[ab(0x2be)](getOAuthCache);await d[ab(0x2b4)](log,d[ab(0x21e)](d[ab(0x2d4)],e)),oauth=OAuth['objectFrom'](e),console['log'](d[ab(0x2a0)]),console[ab(0x24d)](oauth);let f=await getUserCache();console[ab(0x24d)](f),await d[ab(0x1f6)](log,d[ab(0x2ed)](d[ab(0x287)],f)),user=User[ab(0x215)](f),quality={'4K':d[ab(0x2fa)],'2k':d[ab(0x32f)],'超清':ab(0x23a),'高清':'HD','标清':'SD','流畅':'LD'};}function setRefreshToken(d){refreshToken=d;}function getToken(){const ac=y;return user[ac(0x232)]();}async function setShareId(d){const ad=y,e={'LKwAE':function(f,g){return f==g;},'kKgvk':function(f,g){return f==g;},'mjziL':function(f){return f();},'muyXj':function(f){return f();}};e['LKwAE'](getOAuthCache()[ad(0x32e)],0x0)&&await oauth[ad(0x333)]()[ad(0x257)](),e[ad(0x282)](e[ad(0x20e)](getUserCache)[ad(0x32e)],0x0)&&await user['clean']()['save'](),shareId=d,await e['muyXj'](refreshShareToken);}function getHeader(){const ae=y,d={'nMWPN':ae(0x2bf),'VvOUA':ae(0x324),'Mqofq':ae(0x21f)};var e={};return e[d[ae(0x2d6)]]=UA,e[d[ae(0x209)]]=d[ae(0x294)],e;}function getHeaderAuth(){const af=y,d={'BRKuj':'1|3|2|0|4','CILvi':af(0x329),'advFb':af(0x27b),'Iieob':af(0x251)},e=d[af(0x319)][af(0x338)]('|');let f=0x0;while(!![]){switch(e[f++]){case'0':if(user[af(0x22f)]())g[d[af(0x273)]]=user[af(0x202)]();continue;case'1':var g={};continue;case'2':g[d[af(0x212)]]=af(0x20c);continue;case'3':g[d[af(0x25c)]]=shareToken;continue;case'4':return g;}break;}}function getHeaderOpen(){const ag=y,d={'rKNKh':ag(0x329)},e='3|2|0|1|4'[ag(0x338)]('|');let f=0x0;while(!![]){switch(e[f++]){case'0':console['log'](oauth);continue;case'1':g[d[ag(0x2f2)]]=oauth[ag(0x202)]();continue;case'2':console[ag(0x24d)]('getHeaderOpen---');continue;case'3':var g={};continue;case'4':return g;}break;}}async function alist(d,e){const ah=y,f={'ipqtG':function(j,k){return j+k;},'IfVWI':function(j,k,l,m){return j(k,l,m);},'cWzMw':function(j){return j();},'KIjEh':ah(0x258)};let g=f[ah(0x227)](ah(0x330),d),h=await f[ah(0x2fd)](postJson,g,e,f[ah(0x2ec)](getHeader)),i=h[ah(0x2c3)];console[ah(0x24d)](f['KIjEh']),console['log'](i);if(await isManyRequest(i))return![];return oauth=await OAuth[ah(0x215)](i)[ah(0x257)](),!![];}function b(c,d){const e=a();return b=function(f,g){f=f-0x1ef;let h=e[f];return h;},b(c,d);}async function getString(d){const ai=y,e={'GisAr':function(g,h,i){return g(h,i);}};let f=await e[ai(0x280)](req,d,{});return f[ai(0x2c3)];}async function postJson(d,e,f){const aj=y,g={'ekdbI':'Content-Type','jKXdN':aj(0x2bc),'SJkEl':aj(0x21a)};f[g[aj(0x230)]]=g[aj(0x337)];let h=await req(d,{'headers':f,'method':g[aj(0x2c1)],'data':e});return h;}async function post(d,e){const ak=y,f={'ncLfp':ak(0x277),'HHgnl':function(h,i){return h+i;},'xBLyL':ak(0x2e2),'QQWXs':function(h,i,j,k){return h(i,j,k);}};d=d[ak(0x21d)](f[ak(0x2ab)])?d:f[ak(0x345)](f[ak(0x31f)],d);let g=await f[ak(0x256)](postJson,d,e,getHeader());return g[ak(0x2c3)];}async function auth(d,e,f){const al=y,g={'pxFvk':al(0x277),'mMdtB':function(i,j){return i+j;},'YrvVo':al(0x2e2),'eQRbb':function(i){return i();},'jlgJn':function(i,j){return i(j);},'nZpFP':function(i,j){return i+j;},'zVijA':al(0x290),'BoSkN':function(i,j){return i==j;},'mSzjm':function(i,j){return i==j;},'vzWdO':function(i,j){return i==j;},'hiLeM':al(0x2cb),'iESOf':function(i,j){return i+j;},'MIEhJ':al(0x2b1),'pyxfj':function(i,j,k,l){return i(j,k,l);},'bzvtL':function(i,j){return i==j;}};d=d[al(0x21d)](g[al(0x29d)])?d:g[al(0x261)](g[al(0x30a)],d);let h=await postJson(d,e,g['eQRbb'](getHeaderAuth));await g['jlgJn'](log,g['nZpFP'](g[al(0x23f)],h[al(0x2c3)]));if(f&&(g[al(0x284)](h[al(0x31e)],0x190)||g[al(0x30b)](h[al(0x31e)],0x191)||g['vzWdO'](typeof h['code'],g[al(0x2e6)])||_[al(0x25d)](h[al(0x2c3)]))&&await g['eQRbb'](refreshAccessToken))return await g[al(0x2e8)](log,g[al(0x23c)](g[al(0x285)],h[al(0x2c3)])),await g[al(0x2c9)](auth,d,e,![]);if(f&&(g[al(0x305)](h[al(0x31e)],0x1ad)||g[al(0x30b)](typeof h[al(0x31e)],g[al(0x2e6)])))return await g[al(0x2e8)](log,al(0x1f1)+h[al(0x2c3)]),await auth(d,e,![]);return h[al(0x2c3)];}async function oauthFunc(d,e,f){const am=y,g={'uBkSR':am(0x277),'WeLAI':function(i,j){return i+j;},'hEalK':am(0x2e3),'QrCOx':function(i,j,k,l){return i(j,k,l);},'rUxDN':function(i){return i();},'RMOuy':function(i,j){return i(j);},'ZqaxB':am(0x24c),'hAOAA':function(i,j){return i==j;},'udyVK':am(0x344)};d=d[am(0x21d)](g[am(0x2b7)])?d:g['WeLAI'](g[am(0x315)],d);let h=await g[am(0x233)](postJson,d,e,g[am(0x26f)](getHeaderOpen));await g[am(0x25b)](log,g[am(0x33a)]+JSON[am(0x279)](h));if(f&&(g[am(0x2fe)](h[am(0x31e)],0x190)||h[am(0x31e)]==0x191||typeof h[am(0x31e)]==am(0x2cb)||_['isEmpty'](h[am(0x2c3)]))&&await refreshOpenToken())return await g[am(0x25b)](log,g['udyVK']+h['content']),await g['QrCOx'](oauthFunc,d,e,![]);return h[am(0x2c3)];}async function isManyRequest(d){const an=y,e={'HwKXy':an(0x346)};if(!(d[an(0x336)](e[an(0x33c)])>-0x1))return![];return await oauth[an(0x333)]()[an(0x257)](),!![];}async function refreshShareToken(){const ao=y,d={'yHNQc':ao(0x27c),'Gfete':ao(0x2d3),'xVCpe':function(f,g,h){return f(g,h);},'khAEE':'v2/share_link/get_share_token','PHkFb':ao(0x263)};try{let f={};f[d[ao(0x237)]]=shareId,f[d[ao(0x21c)]]='';let g=await d['xVCpe'](post,d[ao(0x219)],f),h=JSON[ao(0x2cd)](g);shareToken=h[d['PHkFb']];}catch(i){console[ao(0x24d)](i['message']);}}async function refreshAccessToken(){const ap=y,d={'VSHRb':function(f,g){return f(g);},'sbuzP':ap(0x1f4),'NCIrQ':ap(0x2ac),'vgwfD':function(f,g){return f(g);},'RWkoQ':function(f,g){return f+g;},'MRZCr':'refreshAccessToken---body--','Rsnnq':function(f,g,h){return f(g,h);},'WkLaB':ap(0x238),'BnGvX':'refreshAccessToken---result--','EgULx':function(f,g){return f(g);},'GhMHz':function(f,g){return f+g;},'QnxIA':ap(0x28e),'Gadbk':function(f,g){return f(g);},'fqxvA':ap(0x34b)};try{let f={},g=user[ap(0x232)]();_[ap(0x25d)](g)&&(g=refreshToken);g[ap(0x21d)](ap(0x222))&&(g=await d[ap(0x2f6)](getString,g),g=g[ap(0x214)]());f[d[ap(0x255)]]=g,f[d['NCIrQ']]=d[ap(0x255)],await d['vgwfD'](log,d['RWkoQ'](d[ap(0x23e)],JSON[ap(0x279)](f)));let h=await d[ap(0x331)](post,d['WkLaB'],f);await log(d[ap(0x28a)](d[ap(0x264)],h)),user=await User[ap(0x215)](h)[ap(0x257)](),await d[ap(0x2b2)](log,d[ap(0x303)](d['QnxIA'],user[ap(0x33b)]()));if(_[ap(0x25d)](user[ap(0x27d)]()))throw new Error(h);return!![];}catch(i){return await d['Gadbk'](log,d[ap(0x2af)]+i[ap(0x2a5)]),console['log'](i[ap(0x2a5)]),await user[ap(0x333)]()['save'](),!![];}}async function oauthRequest(){const aq=y,d={'zzTAE':aq(0x231),'tNoLP':function(f,g){return f+g;},'JRMkp':aq(0x2d0),'VXhAS':aq(0x207),'jFhFf':function(f,g,h,i){return f(g,h,i);},'DpqQD':function(f,g){return f(g);},'xSimp':function(f,g){return f+g;},'ZGvIL':aq(0x31d),'MKBwJ':function(f,g){return f(g);}};try{let f={};f[d[aq(0x32c)]]=0x1,f[aq(0x2d9)]='user:base,file:all:read,file:all:write';let g=d['tNoLP'](d[aq(0x2f1)](d[aq(0x33d)],CLIENT_ID),d[aq(0x276)]),h=await d[aq(0x24e)](auth,g,f,!![]);return await d[aq(0x306)](log,d['xSimp'](d['ZGvIL'],h)),console[aq(0x24d)](d[aq(0x2e7)]),console[aq(0x24d)](h),await d[aq(0x29a)](oauthRedirect,Code[aq(0x215)](h)[aq(0x20d)]());}catch(i){return console[aq(0x29b)](i),![];}}async function oauthRedirect(d){const ar=y,f={'RXdLd':'grant_type','rVDRs':'authorization_code','XLtXk':function(g,h,i){return g(h,i);},'cYZLf':ar(0x31e)};try{let g={};return g['code']=d,g[f[ar(0x326)]]=f[ar(0x1fd)],await f[ar(0x2cc)](alist,f[ar(0x2aa)],g);}catch(h){return console[ar(0x24d)](h[ar(0x2a5)]),await oauth[ar(0x333)]()['save'](),![];}}function a(){const aK=['isEmpty','3469644GzYcqg','UHD','copy---user-','mMdtB','idgqL','share_token','BnGvX','NHyWF','BrVbm','SmPeu','43810OLOQrt','FdWOe','order_direction','egyYf','fileId---','wdOnA','QHD','rUxDN','VdDQX','YKYvF','unshift','CILvi','file_infos','shareId','VXhAS','https','redirectUri','stringify','EQTvw','X-Canary','share_id','getAccessToken','size','jFjWT','GisAr','EblmY','kKgvk','wQIwE','BoSkN','MIEhJ','limit','gJFiF','7131804tvtQBB','mkUgB','RWkoQ','accessToken','removeExt','getExt','refreshAccessToken---','BpZHw','auth--res--','refreshToken','openFile/getVideoPreviewPlayInfo','hasOwnProperty','Mqofq','FZpdd','AHWOY','fadkV','body','RHDSh','MKBwJ','error','type','pxFvk','aCTlR','RSPFq','SCZsR','DTswQ','OAuthobjectFrom-----\x20','tnhcy','Bxrif','message','yyLjc','drive_id','IFSWJ','MuVgL','cYZLf','ncLfp','grant_type','KYglo','sMnPj','fqxvA','video','auth--res--400','EgULx','user_id','ySAeR','tokenType','xYyxS','uBkSR','getName','audio','1709LDZhKF','parent','application/json','adrive/v3/file/list','KELrN','User-Agent','195iJMPXj','SJkEl','setRefreshToken','content','oVQui','hBxyM','uxjpN','getFileId','KqjOy','pyxfj','CNCCd','undefined','XLtXk','parse','XzMkF','video_preview_play_info','https://open.aliyundrive.com/oauth/users/authorize?client_id=','UjukU','$$$','share_pwd','sMxZd','76917ccccd4441c39457a04f6084fb2f','nMWPN','eZVAE','ZfttW','scope','julUf','live_transcoding','url_expire_sec','STftp','PvFot','cdSWt','fENPx','aXHJZ','https://api.aliyundrive.com/','https://open.aliyundrive.com/adrive/v1.0/','lXMfR','668TtGUFT','hiLeM','ZGvIL','jlgJn','getDisplayName','AnDcx','dBNBa','cWzMw','gHbEP','hfMvJ','jQEMF','getType','tNoLP','rKNKh','WTNwF','uUrFz','PJVOQ','VSHRb','LZIlv','toString','阿里云盘','plJlg','push','bNhAN','IfVWI','hAOAA','iLyDO','EXzNC','file','wXaWK','GhMHz','93zuGnIU','bzvtL','DpqQD','fileId','WPvTs','access_token','YrvVo','mSzjm','dhUkc','IBsxH','copy----','KLrmp','nextMarker','VsAzB','YGhdP','64748uavDCD','JpwiC','hEalK','getUserId','BBiWQ','mTeAg','BRKuj','join','WIJtp','eAfvF','oauthRequest---','code','xBLyL','xqapa','LKCUZ','adrive/v2/batch','atWct','Referer','getItems','RXdLd','name','driveId','authorization','code=','proxy://sub/','zzTAE','lXhAy','length','RhMwx','https://api-cf.nn.ci/alist/ali_open/','Rsnnq','initSome----','clean','oDviT','getCategory','indexOf','jKXdN','split','8fZcTry','ZqaxB','getDriveId','HwKXy','JRMkp','bIGZt','xDLZN','KHlnL','ASC','JdLhq','reNyO','oauthFunc--res-2-','HHgnl','Too\x20Many\x20Requests','getTokenType','next_marker','token','LEOIe','refreshAccessToken---error-','default_drive_id','OTAvw','jcLSh','marker','getDownloadUrl---','CTVsW','1067rySqiK','ForbiddenNoPermission.File','auth--res--429','parent_file_id','urGys','refresh_token','parentFunc','XuWHB','ilunC','QwjbN','items','wKdQu','{\x22requests\x22:[{\x22body\x22:{\x22file_id\x22:\x22{{data.fileId}}\x22,\x22share_id\x22:\x22{{data.shareId}}\x22,\x22auto_rename\x22:true,\x22to_parent_file_id\x22:\x22root\x22,\x22to_drive_id\x22:\x22{{data.driveId}}\x22},\x22headers\x22:{\x22Content-Type\x22:\x22application/json\x22},\x22id\x22:\x220\x22,\x22method\x22:\x22POST\x22,\x22url\x22:\x22/file/copy\x22}],\x22resource\x22:\x22file\x22}','live_transcoding_subtitle_task_list','rVDRs','UvHZQ','copy---','set','aliyundrive_oauth','getAuthorization','IeohA','Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_2_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Version/13.0.3\x20Mobile/15E148\x20Safari/604.1','fileExtension','innlI','&redirect_uri=https://alist.nn.ci/tool/aliyundrive/callback&scope=user:base,file:all:read,file:all:write&state=','ZITdS','VvOUA','aliyundrive_user','ali','client=Android,app=adrive,version=v4.3.1','getCode','mjziL','token_type','forEach','ptAgN','advFb','158418PJRwWy','trim','objectFrom','nMbKb','HEuur','rlZMZ','khAEE','post','userId','Gfete','startsWith','LyJDL','https://www.aliyundrive.com/','live_transcoding_task_list','getNextMarker','http','order_by','deleteFile-----','getSize','IizMu','ipqtG','oGzgI','{\x22requests\x22:[{\x22body\x22:{\x22drive_id\x22:\x22{{data.driveId}}\x22,\x22file_id\x22:\x22{{data.fileId}}\x22},\x22headers\x22:{\x22Content-Type\x22:\x22application/json\x22},\x22id\x22:\x22{{data.fileId}}\x22,\x22method\x22:\x22POST\x22,\x22url\x22:\x22/file/delete\x22}],\x22resource\x22:\x22file\x22}','fwnAU','aGHGZ','wKFKk','QIieu','file_id','isAuthed','ekdbI','authorize','getRefreshToken','QrCOx','folder','YWWQD','toLowerCase','yHNQc','https://auth.aliyundrive.com/v2/account/token','lUfjx','FHD','category','iESOf','TJJZM','MRZCr','zVijA','BXqTQ','responses','nypMy','RRzZm','VHdaI','QRqNe','@@@','url','390145GWIXVC','geopG','template_id','file_extension','oauthFunc--res-1-','log','jFhFf','HBirW','get','x-share-token','kSmzw','muPcO','YpxiS','sbuzP','QQWXs','save','alist---','initSome----oauth-','root','RMOuy','Iieob'];a=function(){return aK;};return a();}async function refreshOpenToken(){const as=y,d={'fwnAU':function(f){return f();},'TJJZM':as(0x2ac),'nMbKb':as(0x1f4),'paYzo':as(0x349)};try{if(_[as(0x25d)](oauth['getRefreshToken']()))return await d[as(0x22a)](oauthRequest);let f={};return f[d[as(0x23d)]]=d['nMbKb'],f[d[as(0x216)]]=oauth[as(0x232)](),await alist(d['paYzo'],f);}catch(g){return console[as(0x24d)](g[as(0x2a5)]),oauth[as(0x333)]()[as(0x257)](),![];}}async function getVod(d,e){const at=y,f={'iLyDO':'share_id','uxjpN':function(u,v,w){return u(v,w);},'eZVAE':function(u,v){return u+v;},'aCTlR':function(u,v,w){return u(v,w);},'rlZMZ':function(u,v){return uo;},'STftp':av(0x34f),'WTNwF':function(n,o,p,q){return n(o,p,q);},'IFSWJ':av(0x2bd),'wKFKk':function(n,o){return n==o;},'IBsxH':'folder','QIieu':'video','hBxyM':function(n,o){return n==o;},'IizMu':av(0x2b9),'ptAgN':function(n,o){return n>o;},'etOiS':function(n,o,p,q,r){return n(o,p,q,r);},'AHWOY':function(n,o,p,q){return n(o,p,q);}};let i={},j=[];i[h['fDBZj']]=0xc8,i[h[av(0x254)]]=shareId,i[av(0x1f2)]=d[av(0x2c7)](),i[h[av(0x34a)]]=h[av(0x32d)],i[av(0x26a)]=h[av(0x217)];if(h['RzbYq'](g[av(0x32e)],0x0))i[h[av(0x2dd)]]=g;let k=Item[av(0x215)](await h[av(0x2f3)](auth,h[av(0x2a8)],i,!![]));for(var l of k[av(0x325)]()){if(h['wKFKk'](l[av(0x2f0)](),h[av(0x30d)]))j[av(0x2fb)](l);else{if(h[av(0x22c)](l[av(0x335)](),h[av(0x22d)])||h[av(0x2c5)](l[av(0x335)](),h[av(0x226)]))e[av(0x2fb)](l[av(0x1f5)](d[av(0x2b8)]()));else c['isSub'](l[av(0x28d)]())&&f['push'](l);}}h[av(0x211)](k['getNextMarker']()[av(0x32e)],0x0)&&await h['etOiS'](listFilesMarker,d,e,f,k[av(0x221)]());for(var m of j){await h[av(0x296)](listFiles,m,e,f);}}function getParentFileId(d,e){const aw=y,f={'ykRLt':aw(0x274),'KHlnL':function(i,j){return i==j;},'wKdQu':function(i,j){return i==j;},'EXzNC':'type','kaHOj':aw(0x234),'atWct':'file_id','ZfttW':aw(0x23b),'cdSWt':aw(0x2b0),'VcUup':aw(0x25a)};let g=e[f['ykRLt']];if(!_[aw(0x25d)](d))return d;if(f[aw(0x340)](g['length'],0x0))return'';let h=g[0x0];if(f[aw(0x1fa)](h[f[aw(0x300)]],f['kaHOj']))return h[f[aw(0x323)]];if(f[aw(0x1fa)](h[f[aw(0x300)]],aw(0x301))&&f[aw(0x1fa)](h[f[aw(0x2d8)]],f[aw(0x2df)]))return f['VcUup'];return'';}function pair(d,e,f){const ax=y,g={'YKYvF':function(j,k){return j>k;}};for(var h of e){var i=c[ax(0x28c)](h[ax(0x2b8)]())[ax(0x236)]();if(d['indexOf'](i)>-0x1||g[ax(0x271)](i[ax(0x336)](d),-0x1))f[ax(0x2fb)](h);}}function findSubs(d,e){const ay=y,f={'VdDQX':function(k,l,m,n){return k(l,m,n);},'rzQnO':function(k,l){return k==l;},'hfMvJ':function(k,l){return k+l;},'kSmzw':function(k,l){return k+l;},'yyLjc':ay(0x246)};let g=[];f[ay(0x270)](pair,c[ay(0x28c)](d)[ay(0x236)](),e,g);if(f['rzQnO'](g[ay(0x32e)],0x0))for(var h of e){g[ay(0x2fb)](h);}let i='';for(var j of g){i+=f[ay(0x2ee)](f[ay(0x2ee)](f[ay(0x2ee)](f[ay(0x2ee)](f[ay(0x252)]('+',c[ay(0x28c)](j[ay(0x2b8)]())),ay(0x246)),j[ay(0x28d)]()),f[ay(0x2a6)]),j['getFileId']());}return i;}async function getSubs(d){const az=y,e={'moymn':function(h,i){return h+i;}};let f=[];for(var g of d){if(!(g['indexOf'](az(0x246))>-0x1))continue;let h=g['split'](az(0x246)),i=h[0x0],j=h[0x1],k=e['moymn'](az(0x32b),h[0x2]);f[az(0x2fb)](k);}return f;}async function getDownloadUrl(d){const aA=y,e={'nypMy':function(h,i){return h(i);},'NiXbt':aA(0x2a7),'Bxrif':function(h,i,j,k){return h(i,j,k);},'IeohA':'openFile/getDownloadUrl','fadkV':aA(0x350),'QfNxY':function(h,i){return h(i);}};tempIds['unshift'](await e[aA(0x242)](copy,d));let f={};f[aA(0x22e)]=tempIds[0x0],f[e['NiXbt']]=user[aA(0x33b)]();let g=await e[aA(0x2a4)](oauthFunc,e[aA(0x203)],f,!![]);return console[aA(0x24d)](e['fadkV']),console[aA(0x24d)](g),await e['QfNxY'](log,e[aA(0x297)]+g),await deleteAll(),JSON['parse'](g)[aA(0x247)];}async function getVideoPreviewPlayInfo(d){const aB=y,e={'wdOnA':function(h,i){return h(i);},'VHdaI':aB(0x22e),'RHDSh':aB(0x2a7),'mxBQB':'category','FqIsl':aB(0x2dc),'wQIwE':'14400','XFWdu':function(h,i,j,k){return h(i,j,k);},'BelTx':aB(0x292),'oVQui':'getVideoPreviewPlayInfo===','xVFEZ':function(h){return h();}};tempIds[aB(0x272)](await e[aB(0x26d)](copy,d));let f={};f[e[aB(0x244)]]=tempIds[0x0],f[e[aB(0x299)]]=user[aB(0x33b)](),f[e['mxBQB']]=aB(0x2db),f[e['FqIsl']]=e[aB(0x283)];let g=await e['XFWdu'](oauthFunc,e['BelTx'],f,!![]);return console['log'](e[aB(0x2c4)]),console[aB(0x24d)](g),await e['xVFEZ'](deleteAll),JSON[aB(0x2cd)](g)[aB(0x2cf)];}async function playerContent(d){const aC=y,e={'BpZHw':function(h,i){return h(i);},'xYyxS':function(h,i){return h(i);}};let f=await e[aC(0x28f)](getDownloadUrl,d[0x0]),g=await e[aC(0x2b6)](getSubs,d);return JSON[aC(0x279)]({'parse':0x0,'url':f,'header':getHeader(),'subt':g});}async function playerContentByFlag(d,e){const aD=y,f={'RSPFq':function(l,m,n){return l(m,n);},'HBirW':function(l,m){return l(m);},'bNhAN':function(l){return l();}};let g=await getVideoPreviewPlayInfo(d[0x0]),h=f[aD(0x29f)](getPreviewUrl,g,e),i=await f[aD(0x24f)](getSubs,d),j=f[aD(0x24f)](getSubsByPlayInfo,g);for(var k of j){i[aD(0x2fb)](k);}return JSON[aD(0x279)]({'parse':0x0,'url':h,'header':f[aD(0x2fc)](getHeader),'subt':i});}function getPreviewUrl(d,e){const aE=y,f={'lXMfR':aE(0x220),'ilunC':function(j,k){return jj;},'LZIlv':aG(0x241),'lUfjx':aG(0x298),'wXaWK':aG(0x22e)};await log(e[aG(0x30c)](e[aG(0x206)],user[aG(0x2f8)]()));let f=e[aG(0x266)],g={'fileId':d,'shareId':shareId,'driveId':user[aG(0x33b)]()};f=e[aG(0x2e0)](jinja2,f,{'data':g}),await e[aG(0x245)](log,e[aG(0x2ca)](e['lSakw'],f)),console[aG(0x24d)](e[aG(0x1f3)]),console[aG(0x24d)](f);let h=await e[aG(0x243)](auth,e[aG(0x31c)],JSON['parse'](f),!![]);await e['QRqNe'](log,e[aG(0x321)](e[aG(0x265)],h)),console['log'](e[aG(0x262)]),console[aG(0x24d)](h),console[aG(0x24d)](typeof h);if(e[aG(0x22b)](h[aG(0x336)](aG(0x1f0)),-0x1))return e[aG(0x245)](copy,d);return JSON['parse'](h)[e[aG(0x2f7)]][0x0][e[aG(0x239)]][e[aG(0x302)]];}async function deleteAll(){const aH=y,d={'BBiWQ':'deleteAll-----','QwjbN':function(g,h){return g(h);}};let e=tempIds;console['log'](d[aH(0x317)]),console[aH(0x24d)](e);for(var f of e){let g=await d[aH(0x1f8)](deleteFile,f);if(g)tempIds=e['filter'](h=>h!==f);}}async function deleteFile(d){const aI=y,e={'BXqTQ':aI(0x229),'JdLhq':function(i,j,k){return i(j,k);},'xDLZN':function(i,j,k,l){return i(j,k,l);},'FZpdd':aI(0x224),'jQEMF':function(i,j){return i==j;}};let f=e[aI(0x240)],g={'fileId':d,'driveId':user[aI(0x33b)]()};f=e[aI(0x342)](jinja2,f,{'data':g});let h=await e[aI(0x33f)](auth,'adrive/v2/batch',JSON[aI(0x2cd)](f),!![]);return console['log'](e[aI(0x295)]),console['log'](h),e[aI(0x2ef)](h[aI(0x32e)],0xd3);}async function setToken(d){const aJ=y,e={'oGzgI':function(f){return f();}};user[aJ(0x2c2)](d),await e[aJ(0x228)](refreshAccessToken);}export{initSome,setToken,setShareId,getVod,playerContent,playerContentByFlag}; \ No newline at end of file +const _0x475d0a=_0x1960;(function(_0x58bdb9,_0xcc9f09){const _0x54b68f=_0x1960,_0x24ba8c=_0x58bdb9();while(!![]){try{const _0x4f195b=parseInt(_0x54b68f(0xdd))/0x1+-parseInt(_0x54b68f(0x14d))/0x2+-parseInt(_0x54b68f(0x140))/0x3+parseInt(_0x54b68f(0x153))/0x4*(parseInt(_0x54b68f(0x115))/0x5)+-parseInt(_0x54b68f(0xf2))/0x6*(-parseInt(_0x54b68f(0x10d))/0x7)+parseInt(_0x54b68f(0x17f))/0x8+-parseInt(_0x54b68f(0x186))/0x9*(parseInt(_0x54b68f(0x152))/0xa);if(_0x4f195b===_0xcc9f09)break;else _0x24ba8c['push'](_0x24ba8c['shift']());}catch(_0x3fb5b5){_0x24ba8c['push'](_0x24ba8c['shift']());}}}(_0x2ae1,0x95c58));function _0x1960(_0x3b3566,_0x2e9adf){const _0x4fdc09=_0x2ae1();return _0x1960=function(_0x3a65fa,_0x389bb7){_0x3a65fa=_0x3a65fa-0xcb;let _0x369b0a=_0x4fdc09[_0x3a65fa];return _0x369b0a;},_0x1960(_0x3b3566,_0x2e9adf);}const _0x389bb7=(function(){let _0x1a7634=!![];return function(_0x5b6f22,_0x4aa7a8){const _0x30095d=_0x1a7634?function(){const _0x56cf0a=_0x1960;if(_0x4aa7a8){const _0x28af2f=_0x4aa7a8[_0x56cf0a(0xd4)](_0x5b6f22,arguments);return _0x4aa7a8=null,_0x28af2f;}}:function(){};return _0x1a7634=![],_0x30095d;};}()),_0x3a65fa=_0x389bb7(this,function(){const _0x43683a=_0x1960,_0x1b43ef=function(){const _0x112fa4=_0x1960;let _0x285433;try{_0x285433=Function(_0x112fa4(0x16e)+'{}.constructor(\x22return\x20this\x22)(\x20)'+');')();}catch(_0x5b0321){_0x285433=window;}return _0x285433;},_0x26fa0b=_0x1b43ef(),_0x1de15d=_0x26fa0b[_0x43683a(0xde)]=_0x26fa0b[_0x43683a(0xde)]||{},_0x58df9d=[_0x43683a(0x127),'warn',_0x43683a(0xd3),_0x43683a(0x178),_0x43683a(0x158),'table',_0x43683a(0x14c)];for(let _0x460471=0x0;_0x460471<_0x58df9d[_0x43683a(0x13c)];_0x460471++){const _0x21102a=_0x389bb7[_0x43683a(0x13d)][_0x43683a(0x12b)][_0x43683a(0xf5)](_0x389bb7),_0x3ab8f5=_0x58df9d[_0x460471],_0x1c5cad=_0x1de15d[_0x3ab8f5]||_0x21102a;_0x21102a[_0x43683a(0x160)]=_0x389bb7[_0x43683a(0xf5)](_0x389bb7),_0x21102a[_0x43683a(0x172)]=_0x1c5cad[_0x43683a(0x172)][_0x43683a(0xf5)](_0x1c5cad),_0x1de15d[_0x3ab8f5]=_0x21102a;}});_0x3a65fa();import{_,jinja2}from'./cat.js';import*as _0x5f2ae7 from'./utils.js';class User{constructor(){const _0x10e3ff=_0x1960;this[_0x10e3ff(0x16a)]='',this[_0x10e3ff(0x100)]='',this['tokenType']='',this[_0x10e3ff(0x131)]='',this[_0x10e3ff(0xee)]='';}static['objectFrom'](_0x168463){const _0x59ea84=_0x1960;if(_[_0x59ea84(0x187)](_0x168463))return new User();let _0x69ec9c=JSON['parse'](_0x168463),_0x4764ce=new User();return _0x4764ce[_0x59ea84(0x16a)]=_0x69ec9c['default_drive_id'],_0x4764ce['userId']=_0x69ec9c['user_id'],_0x4764ce['tokenType']=_0x69ec9c['token_type'],_0x4764ce[_0x59ea84(0x131)]=_0x69ec9c[_0x59ea84(0xfd)],_0x4764ce[_0x59ea84(0xee)]=_0x69ec9c['refresh_token'],_0x4764ce;}[_0x475d0a(0x180)](){const _0x3fecce=_0x475d0a;return _[_0x3fecce(0x187)](this[_0x3fecce(0x16a)])?'':this[_0x3fecce(0x16a)];}['getUserId'](){const _0x507a53=_0x475d0a;return _[_0x507a53(0x187)](this[_0x507a53(0x100)])?'':this[_0x507a53(0x100)];}[_0x475d0a(0xf7)](){const _0x363170=_0x475d0a;return _[_0x363170(0x187)](this[_0x363170(0x15b)])?'':this[_0x363170(0x15b)];}[_0x475d0a(0xd0)](){const _0x460056=_0x475d0a;return _[_0x460056(0x187)](this['accessToken'])?'':this[_0x460056(0x131)];}['getRefreshToken'](){const _0x454d4f=_0x475d0a;return _[_0x454d4f(0x187)](this[_0x454d4f(0xee)])?'':this[_0x454d4f(0xee)];}[_0x475d0a(0x170)](_0x47f5b0){this['refreshToken']=_0x47f5b0;}[_0x475d0a(0x102)](){const _0x5b2741=_0x475d0a;return this['getTokenType']()+'\x20'+this[_0x5b2741(0xd0)]();}['isAuthed'](){const _0x47d844=_0x475d0a;return this['getTokenType']()[_0x47d844(0x13c)]>0x0&&this[_0x47d844(0xd0)]()['length']>0x0;}[_0x475d0a(0x13f)](){const _0x3df0d2=_0x475d0a;return this[_0x3df0d2(0xee)]='',this[_0x3df0d2(0x131)]='',this;}async[_0x475d0a(0x117)](){const _0x308ba6=_0x475d0a;return await local[_0x308ba6(0x156)](_0x308ba6(0x162),_0x308ba6(0x12d),this[_0x308ba6(0x172)]()),this;}[_0x475d0a(0x172)](){const _0x409a17=_0x475d0a;var _0x23e797={'default_drive_id':this[_0x409a17(0x180)](),'user_id':this[_0x409a17(0x12c)](),'token_type':this[_0x409a17(0xf7)](),'access_token':this[_0x409a17(0xd0)](),'refresh_token':this[_0x409a17(0x112)]()};return JSON[_0x409a17(0xfb)](_0x23e797);}}class OAuth{constructor(){const _0x5bbff3=_0x475d0a;this[_0x5bbff3(0x15b)]='',this[_0x5bbff3(0x131)]='',this['refreshToken']='';}static[_0x475d0a(0xcf)](_0x31d5ae){const _0x40ac24=_0x475d0a;console[_0x40ac24(0x127)]('OAuthobjectFrom-----\x20'),console['log'](_0x31d5ae);if(_['isEmpty'](_0x31d5ae))return new OAuth();let _0x55f3e2=JSON[_0x40ac24(0x12e)](_0x31d5ae),_0x4d660e=new OAuth();return _0x4d660e[_0x40ac24(0x15b)]=_0x55f3e2[_0x40ac24(0x12f)],_0x4d660e['accessToken']=_0x55f3e2['access_token'],_0x4d660e[_0x40ac24(0xee)]=_0x55f3e2[_0x40ac24(0x143)],_0x4d660e;}[_0x475d0a(0xf7)](){const _0x5d51a7=_0x475d0a;return _[_0x5d51a7(0x187)](this['tokenType'])?'':this['tokenType'];}[_0x475d0a(0xd0)](){const _0x12f670=_0x475d0a;return _['isEmpty'](this['accessToken'])?'':this[_0x12f670(0x131)];}[_0x475d0a(0x112)](){const _0x1acf0=_0x475d0a;return _['isEmpty'](this[_0x1acf0(0xee)])?'':this['refreshToken'];}[_0x475d0a(0x102)](){const _0x5d166e=_0x475d0a;return this[_0x5d166e(0xf7)]()+'\x20'+this[_0x5d166e(0xd0)]();}[_0x475d0a(0x13f)](){const _0x55890b=_0x475d0a;return this[_0x55890b(0xee)]='',this[_0x55890b(0x131)]='',this;}async[_0x475d0a(0x117)](){const _0x20ac2e=_0x475d0a;return await local['set']('ali',_0x20ac2e(0x126),this[_0x20ac2e(0x172)]()),this;}['toString'](){const _0x3b3f46=_0x475d0a;var _0x118f3c={'token_type':this[_0x3b3f46(0xf7)](),'access_token':this[_0x3b3f46(0xd0)](),'refresh_token':this[_0x3b3f46(0x112)]()};return JSON['stringify'](_0x118f3c);}}class Code{constructor(){const _0x41893c=_0x475d0a;this[_0x41893c(0xf6)]='';}static[_0x475d0a(0xcf)](_0x3b40c3){const _0xd9f7e0=_0x475d0a;if(_[_0xd9f7e0(0x187)](_0x3b40c3))return new Code();let _0x506567=JSON['parse'](_0x3b40c3),_0x3afc06=new Code();return _0x3afc06[_0xd9f7e0(0xf6)]=_0x506567[_0xd9f7e0(0xf6)],_0x3afc06;}[_0x475d0a(0xd8)](){const _0x4bf1bd=_0x475d0a;return _['isEmpty'](this[_0x4bf1bd(0xf6)])?'':this['redirectUri'];}['getCode'](){const _0x48a452=_0x475d0a;return this[_0x48a452(0xd8)]()[_0x48a452(0x114)]('code=')[0x1];}}class Item{constructor(_0x55ee5a){const _0x2418c3=_0x475d0a;this[_0x2418c3(0x136)]=[],this['nextMarker']='',this[_0x2418c3(0xf4)]=_0x55ee5a,this[_0x2418c3(0x145)]='',this['name']='',this[_0x2418c3(0x10f)]='',this[_0x2418c3(0xe2)]='',this[_0x2418c3(0xeb)]='',this[_0x2418c3(0x174)]='',this[_0x2418c3(0x122)]='';}static[_0x475d0a(0xcf)](_0x4174d7){const _0x22ffc9=_0x475d0a;if(_['isEmpty'](_0x4174d7))return new Item();let _0x4ca777=JSON[_0x22ffc9(0x12e)](_0x4174d7),_0x6ae688=new Item();return _0x6ae688[_0x22ffc9(0x154)]=typeof _0x4ca777[_0x22ffc9(0x123)]==_0x22ffc9(0xfc)?'':_0x4ca777[_0x22ffc9(0x123)],_0x6ae688['fileId']=typeof _0x4ca777['file_id']=='undefined'?'':_0x4ca777[_0x22ffc9(0xe1)],_0x6ae688[_0x22ffc9(0x145)]=typeof _0x4ca777[_0x22ffc9(0x10a)]=='undefined'?'':_0x4ca777[_0x22ffc9(0x10a)],_0x6ae688[_0x22ffc9(0xe7)]=typeof _0x4ca777[_0x22ffc9(0xe7)]==_0x22ffc9(0xfc)?'':_0x4ca777[_0x22ffc9(0xe7)],_0x6ae688[_0x22ffc9(0x10f)]=typeof _0x4ca777[_0x22ffc9(0x10f)]==_0x22ffc9(0xfc)?'':_0x4ca777[_0x22ffc9(0x10f)],_0x6ae688['fileExtension']=typeof _0x4ca777[_0x22ffc9(0x111)]=='undefined'?'':_0x4ca777[_0x22ffc9(0x111)],_0x6ae688[_0x22ffc9(0xeb)]=typeof _0x4ca777[_0x22ffc9(0xeb)]=='undefined'?'':_0x4ca777[_0x22ffc9(0xeb)],_0x6ae688[_0x22ffc9(0x174)]=typeof _0x4ca777[_0x22ffc9(0x174)]==_0x22ffc9(0xfc)?'':_0x4ca777['size'],_0x6ae688[_0x22ffc9(0x122)]=typeof _0x4ca777[_0x22ffc9(0xdc)]=='undefined'?'':_0x4ca777[_0x22ffc9(0xdc)],typeof _0x4ca777[_0x22ffc9(0x136)]!=_0x22ffc9(0xfc)&&Array[_0x22ffc9(0x11a)](_0x4ca777[_0x22ffc9(0x136)])&&!_[_0x22ffc9(0x187)](_0x4ca777['items'])&&_0x4ca777[_0x22ffc9(0x136)]['forEach'](function(_0x52899a){const _0x30db9a=_0x22ffc9;let _0x2fc86b=Item[_0x30db9a(0xcf)](JSON[_0x30db9a(0xfb)](_0x52899a));_0x6ae688[_0x30db9a(0x136)]['push'](_0x2fc86b);}),_0x6ae688;}[_0x475d0a(0x169)](){const _0x4c67cd=_0x475d0a;return _[_0x4c67cd(0x187)](this[_0x4c67cd(0x136)])?[]:this['items'];}[_0x475d0a(0x119)](){const _0x5e947b=_0x475d0a;return _['isEmpty'](this[_0x5e947b(0x154)])?'':this[_0x5e947b(0x154)];}[_0x475d0a(0xe8)](){const _0x5082db=_0x475d0a;return _[_0x5082db(0x187)](this[_0x5082db(0xf4)])?'':this[_0x5082db(0xf4)];}['getName'](){const _0x467f0c=_0x475d0a;return _[_0x467f0c(0x187)](this['name'])?'':this[_0x467f0c(0xe7)];}[_0x475d0a(0x124)](){const _0x120969=_0x475d0a;return _[_0x120969(0x187)](this[_0x120969(0x10f)])?'':this[_0x120969(0x10f)];}[_0x475d0a(0x113)](){const _0x2e8b65=_0x475d0a;return _[_0x2e8b65(0x187)](this[_0x2e8b65(0xe2)])?'':this[_0x2e8b65(0xe2)];}[_0x475d0a(0x185)](){const _0x543df9=_0x475d0a;return _[_0x543df9(0x187)](this[_0x543df9(0xeb)])?'':this[_0x543df9(0xeb)];}[_0x475d0a(0x120)](){return this['size']==0x0?'':'['+_0x5f2ae7['getSize'](this['size'])+']';}[_0x475d0a(0x176)](){const _0x5956e3=_0x475d0a;return _[_0x5956e3(0x187)](this['parent'])?'':'['+this[_0x5956e3(0x122)]+']';}['parentFunc'](_0x2bc127){const _0x3e7b00=_0x475d0a;return this[_0x3e7b00(0x122)]=_0x2bc127,this;}[_0x475d0a(0x129)](){const _0x153ffe=_0x475d0a;return this[_0x153ffe(0x176)]()+'\x20'+this[_0x153ffe(0xed)]()+'\x20'+this['getSize']();}}class Sub{constructor(){const _0x27438d=_0x475d0a;this[_0x27438d(0x13e)]='',this[_0x27438d(0xe7)]='',this['lang']='',this['format']='';}static[_0x475d0a(0xcd)](){return new Sub();}[_0x475d0a(0x183)](_0xddda04){const _0x1b8f13=_0x475d0a;return this[_0x1b8f13(0xe7)]=_0xddda04,this;}['setUrl'](_0x28433b){const _0x6310b8=_0x475d0a;return this[_0x6310b8(0x13e)]=_0x28433b,this;}['setLang'](_0x403e9a){return this['lang']=_0x403e9a,this;}['setFormat'](_0x510b5b){const _0x2c3149=_0x475d0a;return this[_0x2c3149(0xd6)]=_0x510b5b,this;}[_0x475d0a(0xd2)](_0x1c1623){const _0x3bb80d=_0x475d0a;switch(_0x1c1623){case _0x3bb80d(0xcc):return this[_0x3bb80d(0x177)]('text/vtt');case'ass':case'ssa':return this[_0x3bb80d(0x177)]('text/x-ssa');default:return this[_0x3bb80d(0x177)](_0x3bb80d(0x139));}}}const UA=_0x475d0a(0x159),CLIENT_ID=_0x475d0a(0xda);let quality={},tempIds=[],refreshToken='',shareToken='',shareId='',oauth=new OAuth(),user=new User(),driveInfo={},tmpFolderName='tmp_for_resource',curTmpFolderFileId='',log=_0x5f2ae7['log'];async function getUserCache(){const _0x3172e7=_0x475d0a;var _0x1ec031=await local[_0x3172e7(0x171)]('ali',_0x3172e7(0x12d));return _0x1ec031;}async function getOAuthCache(){const _0x10b9a0=_0x475d0a;var _0x453a02=await local[_0x10b9a0(0x171)]('ali','aliyundrive_oauth');return _0x453a02;}async function initSome(){const _0x51bdb3=_0x475d0a;tempIds=[];let _0x4ab022=await getOAuthCache();await log(_0x51bdb3(0x11c)+_0x4ab022),oauth=OAuth['objectFrom'](_0x4ab022),console[_0x51bdb3(0x13a)](_0x51bdb3(0xf9)),console[_0x51bdb3(0x13a)](oauth);let _0x2286d7=await getUserCache();console[_0x51bdb3(0x13a)](_0x2286d7),await log(_0x51bdb3(0x182)+_0x2286d7),user=User[_0x51bdb3(0xcf)](_0x2286d7),quality={'4K':_0x51bdb3(0x130),'2k':_0x51bdb3(0x104),'超清':_0x51bdb3(0xea),'高清':'HD','标清':'SD','流畅':'LD'};}function setRefreshToken(_0x3ca000){refreshToken=_0x3ca000;}function getToken(){const _0x2976e5=_0x475d0a;return user[_0x2976e5(0x112)]();}async function setShareId(_0x2d393c){const _0x5e37da=_0x475d0a;getOAuthCache()[_0x5e37da(0x13c)]==0x0&&await oauth['clean']()[_0x5e37da(0x117)](),getUserCache()[_0x5e37da(0x13c)]==0x0&&await user[_0x5e37da(0x13f)]()[_0x5e37da(0x117)](),shareId=_0x2d393c,await refreshShareToken();}function getHeader(){const _0x14cec3=_0x475d0a;var _0x1caa15={};return _0x1caa15[_0x14cec3(0xce)]=UA,_0x1caa15[_0x14cec3(0x16f)]=_0x14cec3(0x15e),_0x1caa15;}function getHeaderAuth(){const _0x2e59ce=_0x475d0a;var _0x495cd9={};_0x495cd9['x-share-token']=shareToken,_0x495cd9['X-Canary']=_0x2e59ce(0xef);if(user[_0x2e59ce(0xd5)]())_0x495cd9['authorization']=user['getAuthorization']();return _0x495cd9;}function getHeaderShare(){const _0x4d9780=_0x475d0a;var _0x4da1d6=getHeader();return _0x4da1d6[_0x4d9780(0x105)]=shareToken,_0x4da1d6['X-Canary']=_0x4d9780(0xef),_0x4da1d6;}function getHeaderOpen(){const _0x4acb6a=_0x475d0a;var _0x4cbfa4={};return console['debug'](_0x4acb6a(0x146)),console[_0x4acb6a(0x13a)](oauth),_0x4cbfa4[_0x4acb6a(0x11f)]=oauth[_0x4acb6a(0x102)](),_0x4cbfa4;}async function alist(_0xd7cae8,_0x1c8f86){const _0x20b6b8=_0x475d0a;let _0x27f623=_0x20b6b8(0x150)+_0xd7cae8,_0xf5f2a=await postJson(_0x27f623,_0x1c8f86,getHeader()),_0xed5ef7=_0xf5f2a[_0x20b6b8(0x109)];console[_0x20b6b8(0x13a)](_0x20b6b8(0x173)+_0xd7cae8),console[_0x20b6b8(0x13a)](_0xed5ef7);if(await isManyRequest(_0xed5ef7))return![];return oauth=await OAuth['objectFrom'](_0xed5ef7)['save'](),!![];}async function getString(_0x3f0365){const _0x83af22=_0x475d0a;let _0x35ad12=await req(_0x3f0365,{});return _0x35ad12[_0x83af22(0x109)];}async function postJson(_0x53da97,_0x1cb102,_0x106c3d){const _0x56505c=_0x475d0a;_0x106c3d[_0x56505c(0x142)]=_0x56505c(0x167);let _0x46da1c=await req(_0x53da97,{'headers':_0x106c3d,'method':_0x56505c(0xe6),'data':_0x1cb102});return _0x46da1c;}async function post(_0x1a5b50,_0x1bd558){const _0x2342e6=_0x475d0a;_0x1a5b50=_0x1a5b50[_0x2342e6(0xe3)](_0x2342e6(0x103))?_0x1a5b50:_0x2342e6(0x12a)+_0x1a5b50;let _0x2cd70a=await postJson(_0x1a5b50,_0x1bd558,getHeader());return _0x2cd70a[_0x2342e6(0x109)];}async function auth(_0x2e711e,_0x539d0d,_0x450932){const _0x4d132c=_0x475d0a;_0x2e711e=_0x2e711e[_0x4d132c(0xe3)]('https')?_0x2e711e:_0x4d132c(0x12a)+_0x2e711e;let _0x47047a=await postJson(_0x2e711e,_0x539d0d,getHeaderAuth());await log(_0x4d132c(0x15f)+_0x47047a['content']);if(_0x450932&&(_0x47047a[_0x4d132c(0xd1)]==0x190||_0x47047a[_0x4d132c(0xd1)]==0x191)&&await refreshAccessToken())return await log('auth--res--400'+_0x47047a[_0x4d132c(0x109)]),await auth(_0x2e711e,_0x539d0d,![]);if(_0x450932&&_0x47047a['code']==0x1ad)return await log(_0x4d132c(0xe5)+_0x47047a['content']),await auth(_0x2e711e,_0x539d0d,![]);return _0x47047a['content'];}async function shareFunc(_0x33bb85,_0x20c4e6){const _0x51d581=_0x475d0a;_0x33bb85=_0x33bb85[_0x51d581(0xe3)]('https')?_0x33bb85:'https://api.aliyundrive.com/'+_0x33bb85;let _0x18cc9a=getHeaderShare(),_0x590866=await postJson(_0x33bb85,_0x20c4e6,_0x18cc9a);return console[_0x51d581(0x13a)](_0x51d581(0x13b)+_0x33bb85),console[_0x51d581(0x13a)](_0x18cc9a),console[_0x51d581(0x13a)](_0x20c4e6),console['debug'](_0x590866),_0x590866[_0x51d581(0x109)];}async function oauthFunc(_0xc6dd7f,_0x136b31,_0x3c591c){const _0x3cfe09=_0x475d0a;_0xc6dd7f=_0xc6dd7f[_0x3cfe09(0xe3)](_0x3cfe09(0x103))?_0xc6dd7f:_0x3cfe09(0x11e)+_0xc6dd7f;let _0x3f751a=await postJson(_0xc6dd7f,_0x136b31,getHeaderOpen());await log('oauthFunc--res-1-'+_0xc6dd7f),await log('oauthFunc--res-1-'+JSON[_0x3cfe09(0xfb)](_0x3f751a));if(_0x3c591c&&(_0x3f751a[_0x3cfe09(0xd1)]==0x190||_0x3f751a['code']==0x191)&&await refreshOpenToken())return await log(_0x3cfe09(0xf1)+_0x3f751a[_0x3cfe09(0x109)]),await oauthFunc(_0xc6dd7f,_0x136b31,![]);return _0x3f751a[_0x3cfe09(0x109)];}async function isManyRequest(_0x566244){const _0x4cbd29=_0x475d0a;if(!(_0x566244[_0x4cbd29(0x166)]('Too\x20Many\x20Requests')>-0x1))return![];return await oauth['clean']()[_0x4cbd29(0x117)](),!![];}async function refreshShareToken(){const _0x2850fe=_0x475d0a;try{let _0x1b9661={};_0x1b9661[_0x2850fe(0x10a)]=shareId,_0x1b9661[_0x2850fe(0x189)]='';let _0x57ec20=await post('v2/share_link/get_share_token',_0x1b9661),_0x383e26=JSON[_0x2850fe(0x12e)](_0x57ec20);shareToken=_0x383e26['share_token'];}catch(_0x458cf4){console[_0x2850fe(0x13a)](_0x458cf4);}}async function refreshAccessToken(){const _0x2761b5=_0x475d0a;try{let _0x3eb65f={},_0x1b9846=user[_0x2761b5(0x112)]();_[_0x2761b5(0x187)](_0x1b9846)&&(_0x1b9846=refreshToken);_0x1b9846[_0x2761b5(0xe3)]('http')&&(_0x1b9846=await getString(_0x1b9846),_0x1b9846=_0x1b9846['trim']());_0x3eb65f['refresh_token']=_0x1b9846,_0x3eb65f['grant_type']=_0x2761b5(0x143),await log(_0x2761b5(0x149)+JSON['stringify'](_0x3eb65f));let _0x6463=await post(_0x2761b5(0x17a),_0x3eb65f);await log(_0x2761b5(0x148)+_0x6463),user=await User[_0x2761b5(0xcf)](_0x6463)[_0x2761b5(0x117)](),await log(_0x2761b5(0x157)+user['getDriveId']());if(_['isEmpty'](user['getAccessToken']()))throw new Error(_0x6463);return!![];}catch(_0x1a6f2d){return await log('refreshAccessToken---error-'+_0x1a6f2d[_0x2761b5(0xe4)]),console[_0x2761b5(0x13a)](_0x1a6f2d),await user['clean']()[_0x2761b5(0x117)](),!![];}}function _0x2ae1(){const _0x216394=['share_id','-----createTmpFolder-----','folder','14609vDTFfP','join','type','default_drive_id','file_extension','getRefreshToken','getExt','split','815ZkhJaU','getVideoPreviewPlayInfo===','save','parentFunc','getNextMarker','isArray','unshift','initSome----oauth-','user:base,file:all:read,file:all:write','https://open.aliyundrive.com/adrive/v1.0/','authorization','getSize','adrive/v2/batch','parent','next_marker','getType','阿里云盘','aliyundrive_oauth','log','https://open.aliyundrive.com/oauth/users/authorize?client_id=','getDisplayName','https://api.aliyundrive.com/','prototype','getUserId','aliyundrive_user','parse','token_type','UHD','accessToken','token','video','ASC','adrive/v2/file/list_by_share','items','push','backup_drive_id','application/x-subrip','debug','----shareFunc----','length','constructor','url','clean','2461506OgBhNE','copy---user-','Content-Type','refresh_token','hasOwnProperty','shareId','getHeaderOpen---','v2/batch','refreshAccessToken---result--','refreshAccessToken---body--','drive_id','curDriveInfo---','trace','99882ClAEVN','trashFile-----','application/x-mpegURL','https://api-cf.nn.ci/alist/ali_open/','resource_drive_id','121720JEKXvw','21324xXWquH','nextMarker','getDownloadUrl--fileId-','set','refreshAccessToken--user.driveId-','exception','Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_2_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Version/13.0.3\x20Mobile/15E148\x20Safari/604.1','avatar','tokenType','oauthRequest---','order_by','https://www.aliyundrive.com/','auth--res--','__proto__','getDownloadUrl---','ali','copy---result','application/octet-stream','live_transcoding_task_list','indexOf','application/json','ForbiddenNoPermission.File','getItems','driveId','toLowerCase','video_preview_play_info','openFile/getVideoPreviewPlayInfo','return\x20(function()\x20','Referer','setRefreshToken','get','toString','alist---','size','@@@','getParent','setFormat','error','user/getDriveInfo','https://auth.aliyundrive.com/v2/account/token','language','isSub','openFile/getDownloadUrl','marker','2595072ZXULGt','getDriveId','root','initSome----user-','setName','-----tmpFolderFileId-----','getCategory','612ublqqZ','isEmpty','{\x22requests\x22:[{\x22body\x22:{\x22file_id\x22:\x22{{data.fileId}}\x22,\x22drive_id\x22:\x22{{data.driveId}}\x22},\x22headers\x22:{\x22Content-Type\x22:\x22application/json\x22},\x22id\x22:\x220\x22,\x22method\x22:\x22POST\x22,\x22url\x22:\x22/recyclebin/trash\x22}],\x22resource\x22:\x22file\x22}','share_pwd','limit','vtt','create','User-Agent','objectFrom','getAccessToken','code','setExt','info','apply','isAuthed','format','live_transcoding_subtitle_task_list','getRedirectUri','14400','76917ccccd4441c39457a04f6084fb2f','body','parent_file_id','446252NbMsqD','console','adrive/v3/share_link/get_share_by_anonymous','recyclebinClear-----','file_id','fileExtension','startsWith','message','auth--res--429','post','name','getFileId','grant_type','FHD','category','removeExt','getName','refreshToken','client=Android,app=adrive,version=v4.3.1','------tmpFolderExists-------','oauthFunc--res-2-','1932xiudfA','template_id','fileId','bind','redirectUri','getTokenType','responses','initSome----','copy---','stringify','undefined','access_token','{\x22requests\x22:[{\x22body\x22:{\x22file_id\x22:\x22{{data.fileId}}\x22,\x22share_id\x22:\x22{{data.shareId}}\x22,\x22auto_rename\x22:true,\x22to_parent_file_id\x22:\x22{{data.tmpFolderFileId}}\x22,\x22to_drive_id\x22:\x22{{data.driveId}}\x22},\x22headers\x22:{\x22Content-Type\x22:\x22application/json\x22},\x22id\x22:\x220\x22,\x22method\x22:\x22POST\x22,\x22url\x22:\x22/file/copy\x22}],\x22resource\x22:\x22file\x22}','setUrl','userId','live_transcoding','getAuthorization','https','QHD','x-share-token','openFile/create','authorization_code','authorize','content'];_0x2ae1=function(){return _0x216394;};return _0x2ae1();}async function oauthRequest(){const _0x297408=_0x475d0a;try{let _0x2e1971={};_0x2e1971[_0x297408(0x108)]=0x1,_0x2e1971['scope']=_0x297408(0x11d);let _0x4ba4d3=_0x297408(0x128)+CLIENT_ID+'&redirect_uri=https://alist.nn.ci/tool/aliyundrive/callback&scope=user:base,file:all:read,file:all:write&state=',_0x23a922=await auth(_0x4ba4d3,_0x2e1971,!![]);return await log(_0x297408(0x15c)+_0x23a922),console['debug'](_0x297408(0x15c)),console['debug'](_0x23a922),await oauthRedirect(Code[_0x297408(0xcf)](_0x23a922)['getCode']());}catch(_0x20a5ac){return console[_0x297408(0x13a)](_0x20a5ac),![];}}async function oauthRedirect(_0x464a61){const _0x1c5877=_0x475d0a;try{let _0x4d9e11={};return _0x4d9e11[_0x1c5877(0xd1)]=_0x464a61,_0x4d9e11[_0x1c5877(0xe9)]=_0x1c5877(0x107),await alist(_0x1c5877(0xd1),_0x4d9e11);}catch(_0x114c46){return console[_0x1c5877(0x13a)](_0x114c46),await oauth[_0x1c5877(0x13f)]()[_0x1c5877(0x117)](),![];}}async function refreshOpenToken(){const _0x3cd037=_0x475d0a;try{if(_[_0x3cd037(0x187)](oauth['getRefreshToken']()))return await oauthRequest();let _0x2a7205={};return _0x2a7205[_0x3cd037(0xe9)]=_0x3cd037(0x143),_0x2a7205['refresh_token']=oauth[_0x3cd037(0x112)](),await alist(_0x3cd037(0x132),_0x2a7205);}catch(_0x3d6bf0){return console[_0x3cd037(0x13a)](_0x3d6bf0),oauth[_0x3cd037(0x13f)]()[_0x3cd037(0x117)](),![];}}async function getVod(_0x44edf2,_0x3a1577){const _0x5b9f62=_0x475d0a;let _0x159c79={};_0x159c79[_0x5b9f62(0x10a)]=shareId;let _0x6b815f=await post(_0x5b9f62(0xdf),_0x159c79),_0x187f1c=JSON[_0x5b9f62(0x12e)](_0x6b815f),_0x2a8932=[],_0x185d3e=[],_0x3164ad=getParentFileId(_0x3a1577,_0x187f1c),_0x143f2b=new Item(_0x3164ad);await listFiles(_0x143f2b,_0x2a8932,_0x185d3e);let _0x51f891=['原画','超清','高清'],_0x3048b2=[],_0x4529ae=[];for(var _0x2e60ee of _0x2a8932)_0x3048b2[_0x5b9f62(0x137)](_0x2e60ee[_0x5b9f62(0x129)]()+'$'+_0x2e60ee[_0x5b9f62(0xe8)]()+findSubs(_0x2e60ee[_0x5b9f62(0xed)](),_0x185d3e));for(var _0x30df75=0x0;_0x30df75<_0x51f891[_0x5b9f62(0x13c)];_0x30df75++)_0x4529ae[_0x5b9f62(0x137)](_0x3048b2['join']('#'));let _0x1b2b50={'vod_id':_0x44edf2,'vod_content':_0x44edf2,'vod_pic':_0x187f1c[_0x5b9f62(0x15a)],'vod_name':_0x187f1c['share_name'],'vod_play_url':_0x4529ae[_0x5b9f62(0x10e)]('$$$'),'vod_play_from':_0x51f891[_0x5b9f62(0x10e)]('$$$'),'type_name':_0x5b9f62(0x125),'vod_year':'','vod_area':'','vod_remarks':'','vod_actor':'','vod_director':''};return _0x1b2b50;}async function listFiles(_0x44c747,_0x3fe101,_0x4662ce){return await listFilesMarker(_0x44c747,_0x3fe101,_0x4662ce,'');}async function listFilesMarker(_0x12b384,_0x23dcbe,_0x2b629f,_0x17d2f3){const _0xf2d865=_0x475d0a;let _0x17a017={},_0x58f77e=[];_0x17a017[_0xf2d865(0xcb)]=0xc8,_0x17a017[_0xf2d865(0x10a)]=shareId,_0x17a017[_0xf2d865(0xdc)]=_0x12b384[_0xf2d865(0xe8)](),_0x17a017[_0xf2d865(0x15d)]=_0xf2d865(0xe7),_0x17a017['order_direction']=_0xf2d865(0x134);if(_0x17d2f3[_0xf2d865(0x13c)]>0x0)_0x17a017[_0xf2d865(0x17e)]=_0x17d2f3;let _0x1bcd30=Item[_0xf2d865(0xcf)](await shareFunc(_0xf2d865(0x135),_0x17a017));for(var _0x4b8202 of _0x1bcd30[_0xf2d865(0x169)]()){if(_0x4b8202[_0xf2d865(0x124)]()==_0xf2d865(0x10c))_0x58f77e[_0xf2d865(0x137)](_0x4b8202);else{if(_0x4b8202['getCategory']()=='video'||_0x4b8202[_0xf2d865(0x185)]()=='audio')_0x23dcbe[_0xf2d865(0x137)](_0x4b8202[_0xf2d865(0x118)](_0x12b384[_0xf2d865(0xed)]()));else _0x5f2ae7[_0xf2d865(0x17c)](_0x4b8202[_0xf2d865(0x113)]())&&_0x2b629f[_0xf2d865(0x137)](_0x4b8202);}}_0x1bcd30[_0xf2d865(0x119)]()['length']>0x0&&await listFilesMarker(_0x12b384,_0x23dcbe,_0x2b629f,_0x1bcd30[_0xf2d865(0x119)]());for(var _0x41704d of _0x58f77e){await listFiles(_0x41704d,_0x23dcbe,_0x2b629f);}}function getParentFileId(_0x51a121,_0x254338){const _0x1b764d=_0x475d0a;let _0xc0497=_0x254338['file_infos'];if(!_[_0x1b764d(0x187)](_0x51a121))return _0x51a121;if(_0xc0497[_0x1b764d(0x13c)]==0x0)return'';let _0x491fd2=_0xc0497[0x0];if(_0x491fd2[_0x1b764d(0x10f)]=='folder')return _0x491fd2['file_id'];if(_0x491fd2['type']=='file'&&_0x491fd2[_0x1b764d(0xeb)]==_0x1b764d(0x133))return'root';return'';}function pair(_0x5d750b,_0x4de629,_0x271dd1){const _0x1d5310=_0x475d0a;for(var _0x3ff9a0 of _0x4de629){var _0x1f881c=_0x5f2ae7[_0x1d5310(0xec)](_0x3ff9a0[_0x1d5310(0xed)]())[_0x1d5310(0x16b)]();if(_0x5d750b[_0x1d5310(0x166)](_0x1f881c)>-0x1||_0x1f881c[_0x1d5310(0x166)](_0x5d750b)>-0x1)_0x271dd1['push'](_0x3ff9a0);}}function findSubs(_0x3ede19,_0x4a8833){const _0x2c5c94=_0x475d0a;let _0x423c93=[];pair(_0x5f2ae7[_0x2c5c94(0xec)](_0x3ede19)['toLowerCase'](),_0x4a8833,_0x423c93);if(_0x423c93[_0x2c5c94(0x13c)]==0x0)for(var _0x4afa94 of _0x4a8833){_0x423c93[_0x2c5c94(0x137)](_0x4afa94);}let _0x4c164b='';for(var _0x2f7dbb of _0x423c93){_0x4c164b+='+'+_0x5f2ae7[_0x2c5c94(0xec)](_0x2f7dbb[_0x2c5c94(0xed)]())+_0x2c5c94(0x175)+_0x2f7dbb[_0x2c5c94(0x113)]()+_0x2c5c94(0x175)+_0x2f7dbb[_0x2c5c94(0xe8)]();}return _0x4c164b;}async function getSubs(_0x28986a){const _0xf7429c=_0x475d0a;let _0x2e50d2=[];for(var _0x5a6e4f of _0x28986a){if(!(_0x5a6e4f[_0xf7429c(0x166)](_0xf7429c(0x175))>-0x1))continue;let _0x482f1f=_0x5a6e4f[_0xf7429c(0x114)](_0xf7429c(0x175)),_0x50c7db=_0x482f1f[0x0],_0x2fa639=_0x482f1f[0x1],_0x290983=_0x482f1f[0x2],_0xb0a0ad=await getDownloadUrl(_0x290983);_0x2e50d2['push'](Sub[_0xf7429c(0xcd)]()[_0xf7429c(0x183)](_0x50c7db)['setExt'](_0x2fa639)['setUrl'](_0xb0a0ad));}return _0x2e50d2;}async function getDriveInfo(){const _0x5d01df=_0x475d0a;if(!_[_0x5d01df(0x187)](driveInfo)&&!_[_0x5d01df(0x187)](driveInfo[_0x5d01df(0x110)]))return driveInfo;let _0x3740f3=await oauthFunc(_0x5d01df(0x179),{},!![]),_0x56fde5=JSON[_0x5d01df(0x12e)](_0x3740f3);return driveInfo={'default_drive_id':_0x56fde5['default_drive_id'],'resource_drive_id':_0x56fde5[_0x5d01df(0x151)],'backup_drive_id':_0x56fde5[_0x5d01df(0x138)]},driveInfo;}async function getDriveId(){const _0x1768d7=_0x475d0a;let _0x419112=await getDriveInfo();console[_0x1768d7(0x13a)](_0x1768d7(0x14b)),console[_0x1768d7(0x13a)](_0x419112);if(!_[_0x1768d7(0x187)](_0x419112[_0x1768d7(0x151)]))return _0x419112['resource_drive_id'];return _0x419112[_0x1768d7(0x110)];}async function getDownloadUrl(_0x5be8a4){const _0x1f5ff6=_0x475d0a;let _0xd2176d=await getDriveId();console[_0x1f5ff6(0x13a)](_0x1f5ff6(0x155)),console[_0x1f5ff6(0x13a)](_0x5be8a4),tempIds[_0x1f5ff6(0x11b)](await copy(_0x5be8a4));let _0x604944={};_0x604944[_0x1f5ff6(0xe1)]=tempIds[0x0],_0x604944['drive_id']=_0xd2176d;let _0x4cffce=await oauthFunc(_0x1f5ff6(0x17d),_0x604944,!![]);return console[_0x1f5ff6(0x13a)]('getDownloadUrl---'),console[_0x1f5ff6(0x13a)](_0x4cffce),await log(_0x1f5ff6(0x161)+_0x4cffce),JSON[_0x1f5ff6(0x12e)](_0x4cffce)[_0x1f5ff6(0x13e)];}async function getVideoPreviewPlayInfo(_0xcfd481){const _0x160d91=_0x475d0a;let _0x253de2=await getDriveId();tempIds['unshift'](await copy(_0xcfd481));let _0x53d289={};_0x53d289[_0x160d91(0xe1)]=tempIds[0x0],_0x53d289[_0x160d91(0x14a)]=_0x253de2,_0x53d289[_0x160d91(0xeb)]=_0x160d91(0x101),_0x53d289['url_expire_sec']=_0x160d91(0xd9);let _0x42aaf3=await oauthFunc(_0x160d91(0x16d),_0x53d289,!![]);return console[_0x160d91(0x13a)](_0x160d91(0x116)),console[_0x160d91(0x13a)](_0x42aaf3),JSON[_0x160d91(0x12e)](_0x42aaf3)[_0x160d91(0x16c)];}async function playerContent(_0x2b625d){const _0x481d8d=_0x475d0a;try{await deleteTmpFolderAndRecreate();}catch(_0x107a85){console[_0x481d8d(0x13a)](_0x107a85);}try{let _0x1080b3=await getDownloadUrl(_0x2b625d[0x0]),_0x407ee4=await getSubs(_0x2b625d),_0x26b438=[];for(var _0x2a989c of _0x407ee4){_0x26b438[_0x481d8d(0x137)](_0x2a989c[_0x481d8d(0x13e)]);}return JSON[_0x481d8d(0xfb)]({'parse':0x0,'url':_0x1080b3,'header':getHeader(),'extra':{'subt':_0x26b438},'format':_0x481d8d(0x164),'subs':_0x407ee4});}catch(_0x2c79d4){console[_0x481d8d(0x13a)](_0x2c79d4);}}async function playerContentByFlag(_0x1b7f96,_0x5eb4bf){const _0x5df13e=_0x475d0a;try{await deleteTmpFolderAndRecreate();}catch(_0x2b81f7){console[_0x5df13e(0x13a)](_0x2b81f7);}try{let _0x2b98d2=await getVideoPreviewPlayInfo(_0x1b7f96[0x0]),_0xf32d95=getPreviewUrl(_0x2b98d2,_0x5eb4bf),_0xa8e494=await getSubs(_0x1b7f96),_0x507d22=getSubsByPlayInfo(_0x2b98d2);for(var _0x3b844d of _0x507d22){_0xa8e494[_0x5df13e(0x137)](_0x3b844d);}let _0x524736=[];for(var _0x1b1a81 of _0xa8e494){_0x524736[_0x5df13e(0x137)](_0x1b1a81['url']);}return JSON[_0x5df13e(0xfb)]({'parse':0x0,'url':_0xf32d95,'header':getHeader(),'extra':{'subt':_0x524736},'format':_0x5df13e(0x14f),'subs':_0xa8e494});}catch(_0x4f810b){console[_0x5df13e(0x13a)](_0x4f810b);}}function getPreviewUrl(_0x429883,_0x53b6ac){const _0x58aff7=_0x475d0a;if(!_0x429883[_0x58aff7(0x144)](_0x58aff7(0x165)))return'';let _0x5bb088=_0x429883[_0x58aff7(0x165)];for(var _0x15dcd8=0x0;_0x15dcd8<_0x5bb088['length'];++_0x15dcd8){let _0x8b3730=_0x5bb088[_0x15dcd8];if(_0x8b3730[_0x58aff7(0xf3)]==quality[_0x53b6ac])return _0x8b3730[_0x58aff7(0x13e)];}return _0x5bb088[0x0][_0x58aff7(0x13e)];}function getSubsByPlayInfo(_0x4a91e6){const _0x14f483=_0x475d0a;if(!_0x4a91e6[_0x14f483(0x144)](_0x14f483(0xd7)))return[];let _0x5adb38=_0x4a91e6[_0x14f483(0xd7)],_0x2506c2=[];for(var _0x59872f=0x0;_0x59872f<_0x5adb38['length'];++_0x59872f){let _0x5d089a=_0x5adb38[_0x59872f],_0x54730a=_0x5d089a[_0x14f483(0x17b)],_0xddba3a=_0x5d089a[_0x14f483(0x13e)];_0x2506c2[_0x14f483(0x137)](Sub['create']()[_0x14f483(0xff)](_0xddba3a)[_0x14f483(0x183)](_0x54730a)['setLang'](_0x54730a)[_0x14f483(0xd2)](_0x14f483(0xcc)));}return _0x2506c2;}async function copy(_0x1cc37d){const _0x43a1fc=_0x475d0a;await log(_0x43a1fc(0x141)+user['toString']());let _0x1d5900=_0x43a1fc(0xfe),_0x3ced75=await getDriveId(),_0x329511={'fileId':_0x1cc37d,'shareId':shareId,'driveId':_0x3ced75,'tmpFolderFileId':curTmpFolderFileId};_0x1d5900=jinja2(_0x1d5900,{'data':_0x329511}),await log(_0x43a1fc(0xfa)+_0x1d5900);let _0x3f4a02=await auth(_0x43a1fc(0x121),JSON[_0x43a1fc(0x12e)](_0x1d5900),!![]);await log(_0x43a1fc(0x163)+_0x3f4a02);if(_0x3f4a02[_0x43a1fc(0x166)](_0x43a1fc(0x168))>-0x1)return copy(_0x1cc37d);return JSON[_0x43a1fc(0x12e)](_0x3f4a02)[_0x43a1fc(0xf8)][0x0][_0x43a1fc(0xdb)][_0x43a1fc(0xe1)];}async function deleteTmpFolderAndRecreate(){const _0x3b1ff7=_0x475d0a;let _0x10af5f=await tmpFolderExistsFunc();console[_0x3b1ff7(0x13a)](_0x3b1ff7(0x184)),console[_0x3b1ff7(0x13a)](_0x10af5f),_0x10af5f&&(await trashFile(_0x10af5f),await recyclebinClear()),curTmpFolderFileId=await createTmpFolder();}async function trashFile(_0x328801){const _0x4ac5d1=_0x475d0a;let _0x46cabc=_0x4ac5d1(0x188),_0x57975f=await getDriveId(),_0x336d7={'fileId':_0x328801,'driveId':_0x57975f};_0x46cabc=jinja2(_0x46cabc,{'data':_0x336d7});let _0x189d93=await auth(_0x4ac5d1(0x147),JSON['parse'](_0x46cabc),!![]);return console[_0x4ac5d1(0x13a)](_0x4ac5d1(0x14e)),console[_0x4ac5d1(0x13a)](_0x189d93),!![];}async function recyclebinClear(){const _0x113592=_0x475d0a;let _0xca8e26=await getDriveId(),_0x3ac975={'drive_id':_0xca8e26},_0x128f24=await auth('v2/recyclebin/clear',_0x3ac975,!![]);return console[_0x113592(0x13a)](_0x113592(0xe0)),console[_0x113592(0x13a)](_0x128f24),!![];}async function createTmpFolder(){const _0x20a4b5=_0x475d0a;let _0x30869f=await tmpFolderExistsFunc();if(_0x30869f)return!![];let _0x52b279=await getDriveId(),_0x1f7c7e={'check_name_mode':'refuse','drive_id':_0x52b279,'name':tmpFolderName,'parent_file_id':_0x20a4b5(0x181),'type':_0x20a4b5(0x10c)},_0xcde860=await oauthFunc(_0x20a4b5(0x106),_0x1f7c7e,!![]);console['debug'](_0x20a4b5(0x10b)),console[_0x20a4b5(0x13a)](_0xcde860);let _0x5a8c34=JSON[_0x20a4b5(0x12e)](_0xcde860);if(_[_0x20a4b5(0x187)](_0x5a8c34[_0x20a4b5(0x14a)]))return![];return _0x5a8c34['file_id'];}async function tmpFolderExistsFunc(){const _0x425df8=_0x475d0a;let _0x13ae17=await getDriveId(),_0x461fbd={'drive_id':_0x13ae17,'parent_file_id':_0x425df8(0x181),'limit':0x64,'order_by':'updated_at','order_direction':'DESC'},_0x4f2a1e=await oauthFunc('openFile/list',_0x461fbd,!![]);console[_0x425df8(0x13a)](_0x425df8(0xf0)),console[_0x425df8(0x13a)](_0x4f2a1e);let _0x5de3b1=JSON[_0x425df8(0x12e)](_0x4f2a1e);if(_[_0x425df8(0x187)](_0x5de3b1[_0x425df8(0x136)]))return![];for(var _0x1fa9cf of _0x5de3b1['items']){if(_0x1fa9cf[_0x425df8(0xe7)]==tmpFolderName)return _0x1fa9cf[_0x425df8(0xe1)];}return![];}async function setToken(_0x5d2c52){user['setRefreshToken'](_0x5d2c52),await refreshAccessToken(),await refreshOpenToken();}export{initSome,setToken,setShareId,getVod,playerContent,playerContentByFlag}; \ No newline at end of file