tvbox_config/open/lib/quark_api.js
liushiquan 36ab603d34 init
2024-06-01 22:41:46 +08:00

1 line
25 KiB
JavaScript

const _0x3aecc8=_0x39c9;(function(_0xe8ec55,_0x5a89a3){const _0x535354=_0x39c9,_0x412a29=_0xe8ec55();while(!![]){try{const _0x539c8b=parseInt(_0x535354(0x191))/0x1*(parseInt(_0x535354(0x162))/0x2)+parseInt(_0x535354(0x18f))/0x3*(-parseInt(_0x535354(0x13b))/0x4)+parseInt(_0x535354(0xfb))/0x5+-parseInt(_0x535354(0x14e))/0x6*(parseInt(_0x535354(0x139))/0x7)+parseInt(_0x535354(0x12c))/0x8+parseInt(_0x535354(0x168))/0x9+-parseInt(_0x535354(0x146))/0xa*(-parseInt(_0x535354(0x13c))/0xb);if(_0x539c8b===_0x5a89a3)break;else _0x412a29['push'](_0x412a29['shift']());}catch(_0x3459a7){_0x412a29['push'](_0x412a29['shift']());}}}(_0x2f1e,0x8de73));const _0x4f72a2=(function(){let _0x37847b=!![];return function(_0x1643a1,_0x4a0293){const _0x5a4b1d=_0x37847b?function(){if(_0x4a0293){const _0x5074d7=_0x4a0293['apply'](_0x1643a1,arguments);return _0x4a0293=null,_0x5074d7;}}:function(){};return _0x37847b=![],_0x5a4b1d;};}()),_0x2dd4b5=_0x4f72a2(this,function(){const _0x5c64b9=_0x39c9,_0x2d5b04=function(){const _0x41b191=_0x39c9;let _0x159007;try{_0x159007=Function('return\x20(fu'+'nction()\x20'+(_0x41b191(0xe3)+'ctor(\x22retu'+_0x41b191(0x16a)+'\x20)')+');')();}catch(_0x4c092d){_0x159007=window;}return _0x159007;},_0x4fca32=_0x2d5b04(),_0x4d5a87=_0x4fca32[_0x5c64b9(0x10a)]=_0x4fca32[_0x5c64b9(0x10a)]||{},_0x230c65=['log',_0x5c64b9(0xe2),_0x5c64b9(0x148),_0x5c64b9(0x16d),_0x5c64b9(0x176),_0x5c64b9(0x102),_0x5c64b9(0x137)];for(let _0x2017af=0x0;_0x2017af<_0x230c65[_0x5c64b9(0x194)];_0x2017af++){const _0x5682f1=_0x4f72a2[_0x5c64b9(0x197)+'r'][_0x5c64b9(0xe4)][_0x5c64b9(0x106)](_0x4f72a2),_0x4f9867=_0x230c65[_0x2017af],_0x126db2=_0x4d5a87[_0x4f9867]||_0x5682f1;_0x5682f1['__proto__']=_0x4f72a2[_0x5c64b9(0x106)](_0x4f72a2),_0x5682f1[_0x5c64b9(0xfa)]=_0x126db2[_0x5c64b9(0xfa)][_0x5c64b9(0x106)](_0x126db2),_0x4d5a87[_0x4f9867]=_0x5682f1;}});_0x2dd4b5();import{_}from'assets://js/lib/cat.js';import*as _0x51850a from'./utils.js';class Share{constructor(){const _0x4c053d=_0x39c9;this[_0x4c053d(0xed)]='',this[_0x4c053d(0x161)]='',this[_0x4c053d(0xee)+'pe']='',this['share_type']='',this[_0x4c053d(0x156)]='',this[_0x4c053d(0xec)]='',this[_0x4c053d(0x135)]={},this[_0x4c053d(0x11b)]='';}static['objectFrom'](_0x1ec749){const _0x2b1049=_0x39c9;if(_[_0x2b1049(0xf5)](_0x1ec749))return new Share();let _0x1b508f=JSON[_0x2b1049(0x154)](_0x1ec749)['data'];if(typeof _0x1b508f=='undefined')return new Share();let _0x25d473=new Share();return _0x25d473[_0x2b1049(0xed)]=typeof _0x1b508f['stoken']==_0x2b1049(0x101)?'':_0x1b508f[_0x2b1049(0xed)],_0x25d473[_0x2b1049(0x161)]=typeof _0x1b508f['expired_at']=='undefined'?'':_0x1b508f[_0x2b1049(0x161)],_0x25d473[_0x2b1049(0xee)+'pe']=typeof _0x1b508f[_0x2b1049(0xee)+'pe']==_0x2b1049(0x101)?'':_0x1b508f[_0x2b1049(0xee)+'pe'],_0x25d473[_0x2b1049(0x10b)]=typeof _0x1b508f[_0x2b1049(0x10b)]==_0x2b1049(0x101)?'':_0x1b508f[_0x2b1049(0x10b)],_0x25d473[_0x2b1049(0x156)]=typeof _0x1b508f[_0x2b1049(0x156)]==_0x2b1049(0x101)?'':_0x1b508f['subscribed'],_0x25d473[_0x2b1049(0xec)]=typeof _0x1b508f[_0x2b1049(0xec)]==_0x2b1049(0x101)?'':_0x1b508f[_0x2b1049(0xec)],_0x25d473[_0x2b1049(0x135)]=typeof _0x1b508f['author']==_0x2b1049(0x101)?'':_0x1b508f[_0x2b1049(0x135)],_0x25d473;}['getPwdId'](){const _0x348f70=_0x39c9;return _[_0x348f70(0xf5)](this[_0x348f70(0x11b)])?'':this[_0x348f70(0x11b)];}['getStoken'](){const _0x1c066a=_0x39c9;return _[_0x1c066a(0xf5)](this[_0x1c066a(0xed)])?'':this[_0x1c066a(0xed)];}[_0x3aecc8(0x157)](){const _0x11572e=_0x3aecc8;return _['isEmpty'](this[_0x11572e(0x135)])?{}:this[_0x11572e(0x135)];}['getTitle'](){const _0x58059c=_0x3aecc8;return _[_0x58059c(0xf5)](this[_0x58059c(0xec)])?'':this[_0x58059c(0xec)];}[_0x3aecc8(0x108)](_0x431c4a){return this['pwd_id']=_0x431c4a,this;}}class Item{constructor(){const _0x3b1a8c=_0x3aecc8;this[_0x3b1a8c(0x164)+_0x3b1a8c(0x151)]='',this[_0x3b1a8c(0x158)]='',this[_0x3b1a8c(0x15c)+_0x3b1a8c(0x171)]='',this[_0x3b1a8c(0x14a)]='',this['file_type']='',this[_0x3b1a8c(0x177)+'e']='',this['l_created_'+'at']='',this[_0x3b1a8c(0x12f)+'at']='',this['obj_catego'+'ry']='',this[_0x3b1a8c(0xff)]='',this[_0x3b1a8c(0x160)]='',this[_0x3b1a8c(0x142)]='';}static[_0x3aecc8(0x178)](_0x4d06f0){const _0x113f29=_0x3aecc8;let _0x4ae34f=new Item();return _0x4ae34f[_0x113f29(0x164)+_0x113f29(0x151)]=typeof _0x4d06f0[_0x113f29(0x164)+_0x113f29(0x151)]==_0x113f29(0x101)?'':_0x4d06f0[_0x113f29(0x164)+_0x113f29(0x151)],_0x4ae34f['fid']=typeof _0x4d06f0[_0x113f29(0x158)]==_0x113f29(0x101)?'':_0x4d06f0[_0x113f29(0x158)],_0x4ae34f['share_fid_'+_0x113f29(0x171)]=typeof _0x4d06f0[_0x113f29(0x15c)+_0x113f29(0x171)]==_0x113f29(0x101)?'':_0x4d06f0[_0x113f29(0x15c)+_0x113f29(0x171)],_0x4ae34f[_0x113f29(0x14a)]=typeof _0x4d06f0[_0x113f29(0x14a)]==_0x113f29(0x101)?'':_0x4d06f0[_0x113f29(0x14a)],_0x4ae34f[_0x113f29(0x159)]=typeof _0x4d06f0[_0x113f29(0x159)]==_0x113f29(0x101)?'':_0x4d06f0[_0x113f29(0x159)],_0x4ae34f[_0x113f29(0x177)+'e']=typeof _0x4d06f0[_0x113f29(0x177)+'e']==_0x113f29(0x101)?'':_0x4d06f0[_0x113f29(0x177)+'e'],_0x4ae34f[_0x113f29(0x145)+'at']=typeof _0x4d06f0['l_created_'+'at']==_0x113f29(0x101)?'':_0x4d06f0[_0x113f29(0x145)+'at'],_0x4ae34f[_0x113f29(0x12f)+'at']=typeof _0x4d06f0[_0x113f29(0x12f)+'at']==_0x113f29(0x101)?'':_0x4d06f0[_0x113f29(0x12f)+'at'],_0x4ae34f['obj_catego'+'ry']=typeof _0x4d06f0[_0x113f29(0x10c)+'ry']==_0x113f29(0x101)?'':_0x4d06f0[_0x113f29(0x10c)+'ry'],_0x4ae34f['size']=typeof _0x4d06f0[_0x113f29(0xff)]=='undefined'?'':_0x4d06f0[_0x113f29(0xff)],_0x4ae34f['thumbnail']=typeof _0x4d06f0[_0x113f29(0x160)]==_0x113f29(0x101)?'':_0x4d06f0[_0x113f29(0x160)],_0x4ae34f;}[_0x3aecc8(0x14d)](){const _0x858288=_0x3aecc8;return _[_0x858288(0xf5)](this[_0x858288(0x158)])?'':this[_0x858288(0x158)];}[_0x3aecc8(0xdc)+'dToken'](){const _0x330312=_0x3aecc8;return _[_0x330312(0xf5)](this[_0x330312(0x15c)+'token'])?'':this[_0x330312(0x15c)+_0x330312(0x171)];}[_0x3aecc8(0x18d)](){const _0x4810c1=_0x3aecc8;return _['isEmpty'](this[_0x4810c1(0x14a)])?'':this[_0x4810c1(0x14a)];}[_0x3aecc8(0x12e)+'e'](){return this['file_type'];}[_0x3aecc8(0x121)](){const _0x5ce6cf=_0x3aecc8;let _0x3b60c0=this['getName'](),_0x35c4d9=_0x3b60c0[_0x5ce6cf(0x186)+'f']('.');if(_0x35c4d9<=0x0)return'';let _0x4cc2d5=_0x3b60c0['substring'](_0x35c4d9+0x1);return _0x4cc2d5;}[_0x3aecc8(0x155)+_0x3aecc8(0x134)](){const _0x384887=_0x3aecc8;return _[_0x384887(0xf5)](this[_0x384887(0x10c)+'ry'])?'':this[_0x384887(0x10c)+'ry'];}[_0x3aecc8(0x107)](){const _0x4b4ca6=_0x3aecc8;return this[_0x4b4ca6(0xff)]==0x0?'':'['+_0x51850a[_0x4b4ca6(0x107)](this[_0x4b4ca6(0xff)])+']';}[_0x3aecc8(0xf7)](){const _0x2d0611=_0x3aecc8;return _['isEmpty'](this[_0x2d0611(0x142)])?'':'['+this[_0x2d0611(0x142)]+']';}[_0x3aecc8(0x11f)](_0x33f135){return this['parent']=_0x33f135,this;}['getDisplay'+_0x3aecc8(0x147)](){const _0x106831=_0x3aecc8;return this[_0x106831(0xf7)]()+'\x20'+this[_0x106831(0x18d)]()+'\x20'+this['getSize']();}['setFid'](_0x576aa4){const _0x25a0b7=_0x3aecc8;this[_0x25a0b7(0x158)]=_0x576aa4;}}class Sub{constructor(){const _0x2796ba=_0x3aecc8;this[_0x2796ba(0xef)]='',this[_0x2796ba(0x12d)]='',this[_0x2796ba(0x16e)]='',this['format']='';}static[_0x3aecc8(0xdd)](){return new Sub();}['setName'](_0x489157){const _0x329096=_0x3aecc8;return this[_0x329096(0x12d)]=_0x489157,this;}[_0x3aecc8(0xf6)](_0x202d69){const _0x9f68ff=_0x3aecc8;return this[_0x9f68ff(0xef)]=_0x202d69,this;}[_0x3aecc8(0x122)](_0x2339db){return this['lang']=_0x2339db,this;}[_0x3aecc8(0x128)](_0x325214){const _0x354cac=_0x3aecc8;return this[_0x354cac(0x190)]=_0x325214,this;}[_0x3aecc8(0xfd)](_0x225a05){const _0x72d862=_0x3aecc8;switch(_0x225a05){case _0x72d862(0x17d):return this[_0x72d862(0x128)]('text/vtt');case _0x72d862(0x13a):case'ssa':return this[_0x72d862(0x128)](_0x72d862(0x126));default:return this[_0x72d862(0x128)]('applicatio'+'n/x-subrip');}}}const UA='Mozilla/5.'+_0x3aecc8(0x192)+_0x3aecc8(0x103)+_0x3aecc8(0xf0)+_0x3aecc8(0x114)+_0x3aecc8(0x136)+_0x3aecc8(0x152)+'TML,\x20like\x20'+_0x3aecc8(0x111)+_0x3aecc8(0x119)+_0x3aecc8(0x18b)+'\x20Chrome/10'+_0x3aecc8(0xe5)+_0x3aecc8(0x104)+_0x3aecc8(0x116)+_0x3aecc8(0x189)+_0x3aecc8(0x11a)+_0x3aecc8(0x127)+_0x3aecc8(0x118)+_0x3aecc8(0x181);let cookie='',tempIds=[],shareMap={};async function setCookie(_0x20cdaf){const _0x5a1f54=_0x3aecc8;if(_0x20cdaf[_0x5a1f54(0x167)](_0x5a1f54(0x187))){let _0x55ac23={};_0x55ac23[_0x5a1f54(0x196)]=UA,cookie=await getString(_0x20cdaf,_0x55ac23);}else cookie=_0x20cdaf;}async function getString(_0x2c003,_0x57a9cc){const _0x414418=_0x3aecc8,_0x5dcac6={};_0x5dcac6[_0x414418(0x12b)]=_0x57a9cc;let _0x1c8967=await req(_0x2c003,_0x5dcac6);return _0x1c8967[_0x414418(0x112)];}function getHeader(){const _0x2cbb65=_0x3aecc8;var _0xf3b0b2={};return _0xf3b0b2[_0x2cbb65(0x115)]='https://pa'+_0x2cbb65(0x188),_0xf3b0b2['User-Agent']=UA,_0xf3b0b2['Referer']=_0x2cbb65(0x110)+'n.quark.cn'+'/',_0xf3b0b2;}function getAuthHeader(){const _0x18f10e=_0x3aecc8;var _0x4ae045={};return _0x4ae045[_0x18f10e(0x115)]=_0x18f10e(0x110)+'n.quark.cn',_0x4ae045[_0x18f10e(0x196)]=UA,_0x4ae045[_0x18f10e(0xeb)]=_0x18f10e(0x110)+_0x18f10e(0x188)+'/',_0x4ae045[_0x18f10e(0x16b)]=cookie,_0x4ae045;}function _0x39c9(_0x353f8f,_0xd0b94f){const _0xe7b888=_0x2f1e();return _0x39c9=function(_0x2dd4b5,_0x4f72a2){_0x2dd4b5=_0x2dd4b5-0xdc;let _0x4d577f=_0xe7b888[_0x2dd4b5];return _0x4d577f;},_0x39c9(_0x353f8f,_0xd0b94f);}function buildUrlParams(_0x526aad){const _0x3ad595=_0x3aecc8;let _0x2bab9e=[];for(var _0x4d372c in _0x526aad){_0x2bab9e[_0x3ad595(0x153)](_0x4d372c+'='+_0x526aad[_0x4d372c]);}return _0x2bab9e[_0x3ad595(0xde)]('&');}async function get(_0x5efd68,_0x25eb90){const _0x36031c=_0x3aecc8;_0x5efd68=_0x5efd68['startsWith'](_0x36031c(0x166))?_0x5efd68:_0x36031c(0xe1)+_0x36031c(0x129)+_0x36031c(0x180)+_0x5efd68,_0x5efd68=_0x5efd68+'?'+buildUrlParams(_0x25eb90);let _0x19e85e=await getJson(_0x5efd68,getHeader());return _0x19e85e['content'];}async function post(_0x57702e,_0x230e61){const _0x9c818=_0x3aecc8;_0x57702e=_0x57702e[_0x9c818(0x167)]('https')?_0x57702e:_0x9c818(0xe1)+_0x9c818(0x129)+'rk.cn/'+_0x57702e;let _0x5888d4=await postJson(_0x57702e,_0x230e61,getHeader());return _0x5888d4['content'];}function _0x2f1e(){const _0xcb3f5=['set-cookie','exception','format_typ','objectFrom','supports','subt','applicatio','asc,file_n','vtt','filelist','oken','rk.cn/','other_ch','video_info','/play?pr=u','stringify','action_typ','lastIndexO','http','n.quark.cn','2-a038f7b7','list','rive/3.0.1','unshift','getName','normal,low','210DEuUts','format','717051hDzqaN','0\x20(Macinto','toLowerCas','length','debug','User-Agent','constructo','substring','@@@','getStoken','getShareFi','create','join','ve/file/v2','_page','https://dr','warn','{}.constru','prototype','0.0.4896.1','toUpperCas','save_as_to','indexOf','ve/share/s','post','Referer','title','stoken','expired_ty','url','Mac\x20OS\x20X\x201','ave?pr=ucp','harepage/s','_sort','lete?pr=uc','isEmpty','setUrl','getParent','n/json,\x20te','passcode','toString','1829215LOXNgB','metadata','setExt','dToken','size','n/octet-st','undefined','table','sh;\x20Intel\x20','60\x20Electro','force','bind','getSize','setPwdId','getTitle','console','share_type','obj_catego','save_as','data','task_id','https://pa','Gecko)\x20qua','content','audio','0_15_7)\x20Ap','origin','n/18.3.5.1','setFid','nnel/pckk_','rk-cloud-d','98\x20Safari/','pwd_id','ve/file/do','ream','esc','parentFunc','pro&fr=pc','getExt','setLang','ve/file/de','avatar_url','method','text/x-ssa','537.36\x20Cha','setFormat','ive-pc.qua','download_u','headers','2793344QOsDLJ','name','getFileTyp','l_updated_','wnload?pr=','isSub','Max-Age','ucpro','gory','author','pleWebKit/','trace','dated_at:d','35KwZFAR','ass','54788OkSQcc','1442331JrDabZ','p_fids','splice','harepage/t','ame:asc,up','getDisplay','parent','video_list','Expires','l_created_','40bVeUmX','Name','info','*/*','file_name','forEach','1/clouddri','getFid','825582SNXYkJ',',high,supe','sleep','ail','537.36\x20(KH','push','parse','getObjCate','subscribed','getAuthor','fid','file_type','resolution','split','share_fid_','$$$','xt/plain,\x20','pdir_fid','thumbnail','expired_at','2xbpZrT','removeExt','big_thumbn','to_pdir_fi','https','startsWith','2443176LpQiRf','get','rn\x20this\x22)(','Cookie','ro&fr=pc','error','lang','video','_size','token','retry_inde','夸克云盘','_total'];_0x2f1e=function(){return _0xcb3f5;};return _0x2f1e();}async function getJson(_0x23be41,_0x3af9c7){const _0x2ce27c=_0x3aecc8;_0x3af9c7['Accept']='applicatio'+_0x2ce27c(0xf8)+_0x2ce27c(0x15e)+_0x2ce27c(0x149);const _0x2f1114={};_0x2f1114[_0x2ce27c(0x12b)]=_0x3af9c7,_0x2f1114['method']=_0x2ce27c(0x169),_0x2f1114[_0x2ce27c(0x10e)]=null;let _0x5b5033=await req(_0x23be41,_0x2f1114);return setCookies(_0x5b5033),_0x5b5033;}async function postJson(_0x1e2b97,_0x5a24f9,_0x5c7730){const _0x65e959=_0x3aecc8;_0x5c7730['Accept']=_0x65e959(0x17b)+_0x65e959(0xf8)+_0x65e959(0x15e)+_0x65e959(0x149);const _0x430406={};_0x430406[_0x65e959(0x12b)]=_0x5c7730,_0x430406[_0x65e959(0x125)]=_0x65e959(0xea),_0x430406[_0x65e959(0x10e)]=_0x5a24f9;let _0x3c4763=await req(_0x1e2b97,_0x430406);return console[_0x65e959(0x195)](_0x3c4763),setCookies(_0x3c4763),_0x3c4763;}async function authPost(_0x1fd335,_0xe77759){const _0x1781f0=_0x3aecc8;_0x1fd335=_0x1fd335[_0x1781f0(0x167)](_0x1781f0(0x166))?_0x1fd335:_0x1781f0(0xe1)+_0x1781f0(0x129)+_0x1781f0(0x180)+_0x1fd335;let _0x2faea1=await postJson(_0x1fd335,_0xe77759,getAuthHeader());return _0x2faea1['content'];}async function authGet(_0x578877,_0xfde89a){const _0x3b291d=_0x3aecc8;_0x578877=_0x578877[_0x3b291d(0x167)](_0x3b291d(0x166))?_0x578877:'https://dr'+_0x3b291d(0x129)+'rk.cn/'+_0x578877,_0x578877=_0x578877+'?'+buildUrlParams(_0xfde89a);let _0x554a7d=await getJson(_0x578877,getAuthHeader());return _0x554a7d[_0x3b291d(0x112)];}async function setCookies(_0x17d05f){const _0x34307c=_0x3aecc8;if(_0x17d05f[_0x34307c(0x12b)][_0x34307c(0x175)]){const _0x3da068=_['isArray'](_0x17d05f[_0x34307c(0x12b)]['set-cookie'])?_0x17d05f[_0x34307c(0x12b)][_0x34307c(0x175)]['join'](';'):_0x17d05f['headers'][_0x34307c(0x175)];let _0x1c2b29=getCookieMap(_0x3da068),_0x5c1701=getCookieMap(cookie);for(var _0x373172 in _0x1c2b29){_0x5c1701[_0x373172]=_0x1c2b29[_0x373172];}cookie=cookieMapToCookie(_0x5c1701);}}function cookieMapToCookie(_0x334393){const _0x5e3c97=_0x3aecc8;let _0x574ccc=[];for(var _0x42ed95 in _0x334393){if(_[_0x5e3c97(0xf5)](_0x42ed95))continue;_0x574ccc[_0x5e3c97(0x153)](_0x42ed95+'='+_0x334393[_0x42ed95]);}return _0x574ccc[_0x5e3c97(0xde)](';');}function getCookieMap(_0x536e10){const _0x3228ff=_0x3aecc8;let _0x25da49={};const _0xfc2f23=_0x536e10[_0x3228ff(0x15b)](';');for(const _0x2def54 of _0xfc2f23){const _0xbc9045=_0x2def54['trim'](),_0x539c77=_0xbc9045[_0x3228ff(0xe8)]('='),_0x45d9ae=_0xbc9045[_0x3228ff(0x198)](0x0,_0x539c77),_0x45de81=_0xbc9045['substring'](_0x539c77+0x1);if(_['isEmpty'](_0x45d9ae)||_0x45d9ae==_0x3228ff(0x132)||_0x45d9ae==_0x3228ff(0x144)||_0x45d9ae=='Domain'||_0x45d9ae=='Path')continue;_0x25da49[_0x45d9ae]=_0x45de81;}return _0x25da49;}async function refreshShareToken(_0x4188bb){const _0x47d97a=_0x3aecc8;let _0x19a899={};_0x19a899[_0x47d97a(0x11b)]=_0x4188bb,_0x19a899[_0x47d97a(0xf9)]='';let _0x37c492=await post(_0x47d97a(0x14c)+_0x47d97a(0xe9)+_0x47d97a(0x13f)+_0x47d97a(0x17f),_0x19a899);shareMap[_0x4188bb]=Share[_0x47d97a(0x178)](_0x37c492)['setPwdId'](_0x4188bb);}async function getVod(_0x8c0cd0,_0x4f988e){const _0x2f8ca2=_0x3aecc8;await refreshShareToken(_0x8c0cd0);let _0x3018ab=[],_0x2cc9b4=[],_0x1705e7=new Item();_0x1705e7[_0x2f8ca2(0x117)]('0'),await listFiles(_0x8c0cd0,_0x1705e7,_0x3018ab,_0x2cc9b4);let _0x4c76d7=['原画','普画'],_0x5597a2=[],_0xfe3d19=[];for(var _0x4fa1d7 of _0x3018ab)_0x5597a2['push'](_0x4fa1d7[_0x2f8ca2(0x141)+_0x2f8ca2(0x147)]()+'$'+_0x8c0cd0+'+'+_0x4fa1d7[_0x2f8ca2(0x14d)]()+'+'+_0x4fa1d7['getShareFi'+_0x2f8ca2(0xfe)]()+findSubs(_0x4fa1d7[_0x2f8ca2(0x18d)](),_0x2cc9b4));for(var _0x5f3112=0x0;_0x5f3112<_0x4c76d7[_0x2f8ca2(0x194)];_0x5f3112++)_0xfe3d19[_0x2f8ca2(0x153)](_0x5597a2[_0x2f8ca2(0xde)]('#'));let _0x2b5ef0=shareMap[_0x8c0cd0][_0x2f8ca2(0x157)](),_0xebf581={'vod_id':_0x4f988e,'vod_content':_0x4f988e,'vod_pic':!_[_0x2f8ca2(0xf5)](_0x2b5ef0[_0x2f8ca2(0x124)])?_0x2b5ef0[_0x2f8ca2(0x124)]:'','vod_name':shareMap[_0x8c0cd0][_0x2f8ca2(0x109)](),'vod_play_url':_0xfe3d19[_0x2f8ca2(0xde)](_0x2f8ca2(0x15d)),'vod_play_from':_0x4c76d7['join'](_0x2f8ca2(0x15d)),'type_name':_0x2f8ca2(0x173),'vod_year':'','vod_area':'','vod_remarks':'','vod_actor':'','vod_director':''};return _0xebf581;}async function listFiles(_0x1f3d8d,_0x1b2cf0,_0x5d2ebf,_0x59c801){return await listFilesWithPage(_0x1f3d8d,_0x1b2cf0,_0x5d2ebf,_0x59c801,0x1);}async function listFilesWithPage(_0x1fcd8e,_0x367418,_0x52f8fd,_0x1f0ad1,_0xf89b67){const _0x1726d2=_0x3aecc8;let _0x434103=[],_0x1aea5e={};_0x1aea5e[_0x1726d2(0x11b)]=_0x1fcd8e,_0x1aea5e[_0x1726d2(0xed)]=encodeURIComponent(shareMap[_0x1fcd8e][_0x1726d2(0x19a)]()),_0x1aea5e[_0x1726d2(0x15f)]=_0x367418['getFid'](),_0x1aea5e['pr']=_0x1726d2(0x133),_0x1aea5e['fr']='pc',_0x1aea5e[_0x1726d2(0x105)]='0',_0x1aea5e[_0x1726d2(0xe0)]=_0xf89b67,_0x1aea5e[_0x1726d2(0x170)]=0x32,_0x1aea5e[_0x1726d2(0xf3)]='file_type:'+_0x1726d2(0x17c)+_0x1726d2(0x140)+_0x1726d2(0x138)+_0x1726d2(0x11e);let _0x54ef68=await get(_0x1726d2(0x14c)+_0x1726d2(0xe9)+'harepage/d'+'etail',_0x1aea5e),_0x533554=JSON[_0x1726d2(0x154)](_0x54ef68),_0x1b3ed8=_0x533554[_0x1726d2(0x10e)][_0x1726d2(0x18a)],_0x29519d=_0x533554[_0x1726d2(0xfc)];for(var _0x12814a of _0x1b3ed8){let _0xfb88ab=Item['objectFrom'](_0x12814a);if(_0xfb88ab['getFileTyp'+'e']()==0x0)_0x434103[_0x1726d2(0x153)](_0xfb88ab);else{if(_0xfb88ab['getObjCate'+_0x1726d2(0x134)]()==_0x1726d2(0x16f)||_0xfb88ab[_0x1726d2(0x155)+_0x1726d2(0x134)]()==_0x1726d2(0x113))_0x52f8fd[_0x1726d2(0x153)](_0xfb88ab[_0x1726d2(0x11f)](_0x367418['getName']()));else _0x51850a[_0x1726d2(0x131)](_0xfb88ab[_0x1726d2(0x121)]())&&_0x1f0ad1['push'](_0xfb88ab);}}let _0x8415be=_0x29519d[_0x1726d2(0x174)],_0x102efe=_0x29519d[_0x1726d2(0xe0)]*_0x29519d['_size'];_0x8415be>_0x102efe&&await listFilesWithPage(_0x1fcd8e,_0x367418,_0x52f8fd,_0x1f0ad1,_0x29519d[_0x1726d2(0xe0)]+0x1);for(var _0x2be94e of _0x434103){await listFiles(_0x1fcd8e,_0x2be94e,_0x52f8fd,_0x1f0ad1);}}function pair(_0x351405,_0x209e50,_0x524d29){const _0x5b3026=_0x3aecc8;for(var _0x4cee01 of _0x209e50){var _0x1d140e=_0x51850a[_0x5b3026(0x163)](_0x4cee01[_0x5b3026(0x18d)]())['toLowerCas'+'e']();if(_0x351405[_0x5b3026(0xe8)](_0x1d140e)>-0x1||_0x1d140e['indexOf'](_0x351405)>-0x1)_0x524d29[_0x5b3026(0x153)](_0x4cee01);}}function findSubs(_0x5c96e9,_0x291f65){const _0x22e72d=_0x3aecc8;let _0x27664f=[];pair(_0x51850a[_0x22e72d(0x163)](_0x5c96e9)[_0x22e72d(0x193)+'e'](),_0x291f65,_0x27664f);if(_0x27664f[_0x22e72d(0x194)]==0x0)for(var _0x40631b of _0x291f65){_0x27664f['push'](_0x40631b);}let _0x24f1df='';for(var _0x1ed7e3 of _0x27664f){_0x24f1df+='+'+_0x51850a['removeExt'](_0x1ed7e3['getName']())+_0x22e72d(0x199)+_0x1ed7e3[_0x22e72d(0x121)]()+_0x22e72d(0x199)+_0x1ed7e3[_0x22e72d(0x14d)]()+_0x22e72d(0x199)+_0x1ed7e3['getShareFi'+_0x22e72d(0xfe)]();}return _0x24f1df;}async function getSubs(_0x315f3e){const _0xc44e73=_0x3aecc8;let _0x1c637e=[];for(var _0x3a6cab of _0x315f3e){if(!(_0x3a6cab[_0xc44e73(0xe8)](_0xc44e73(0x199))>-0x1))continue;let _0x1e0a51=_0x3a6cab[_0xc44e73(0x15b)](_0xc44e73(0x199)),_0x25397f=_0x1e0a51[0x0],_0x4208e2=_0x1e0a51[0x1],_0x518bd4=_0x1e0a51[0x2],_0x4c6804=_0x1e0a51[0x3],_0x585cb2=await getDownloadUrl(_0x315f3e[0x0],_0x518bd4,_0x4c6804);_0x1c637e['push'](Sub['create']()['setName'](_0x25397f)['setExt'](_0x4208e2)[_0xc44e73(0xf6)](_0x585cb2));}return _0x1c637e;}async function getDownloadUrl(_0x2a27e7,_0x223814,_0x326656){const _0x101c6e=_0x3aecc8;let _0x526c48=await copy(_0x2a27e7,_0x223814,_0x326656);tempIds[_0x101c6e(0x18c)](_0x526c48);let _0x44ef3d=_0x101c6e(0x14c)+_0x101c6e(0x11c)+_0x101c6e(0x130)+'ucpro&fr=p'+'c',_0x41323b={};_0x41323b['fids']=[_0x526c48];let _0x469aff=await authPost(_0x44ef3d,_0x41323b),_0xe712f8=JSON[_0x101c6e(0x154)](_0x469aff)[_0x101c6e(0x10e)];return await deleteAll(),_0xe712f8[0x0][_0x101c6e(0x12a)+'rl'];}async function getVideoPreviewPlayInfo(_0x3ae363,_0x1faeb8,_0x5911fe){const _0x54277f=_0x3aecc8;let _0x498035=await copy(_0x3ae363,_0x1faeb8,_0x5911fe);tempIds[_0x54277f(0x18c)](_0x498035);let _0x262b52=_0x54277f(0x14c)+_0x54277f(0xdf)+_0x54277f(0x183)+'cpro&fr=pc',_0x57fde8={};_0x57fde8[_0x54277f(0x158)]=_0x498035,_0x57fde8[_0x54277f(0x15a)+'s']=_0x54277f(0x18e)+_0x54277f(0x14f)+'r,2k,4k',_0x57fde8[_0x54277f(0x179)]='fmp4,m3u8';let _0x15255f=await authPost(_0x262b52,_0x57fde8),_0x22bbe6=JSON[_0x54277f(0x154)](_0x15255f)[_0x54277f(0x10e)];await deleteAll();let _0x405a71=_0x22bbe6[_0x54277f(0x143)];return _0x405a71;}async function playerContent(_0x4f6a5b){const _0x77b5a4=_0x3aecc8;try{let _0x288395=await getDownloadUrl(_0x4f6a5b[0x0],_0x4f6a5b[0x1],_0x4f6a5b[0x2]),_0x548c19=await getSubs(_0x4f6a5b),_0x2f4cd3=[];for(var _0x81f81b of _0x548c19){const _0x591705={};_0x591705[_0x77b5a4(0xef)]=_0x81f81b[_0x77b5a4(0xef)],_0x591705[_0x77b5a4(0x16e)]=_0x81f81b[_0x77b5a4(0x16e)],_0x591705[_0x77b5a4(0xec)]=_0x81f81b[_0x77b5a4(0x12d)],_0x2f4cd3['push'](_0x591705);}const _0x37fb20={};return _0x37fb20[_0x77b5a4(0x17a)]=_0x2f4cd3,JSON[_0x77b5a4(0x184)]({'parse':0x0,'url':_0x288395,'header':getAuthHeader(),'extra':_0x37fb20,'format':_0x77b5a4(0x17b)+'n/octet-st'+_0x77b5a4(0x11d),'subs':_0x548c19});}catch(_0x380238){console['debug'](_0x380238);}}async function playerContentByFlag(_0x4ba41d,_0x2cbcad){const _0x500b8d=_0x3aecc8;try{let _0xab50c4=await getVideoPreviewPlayInfo(_0x4ba41d[0x0],_0x4ba41d[0x1],_0x4ba41d[0x2]),_0x337826=getPreviewUrl(_0xab50c4,_0x2cbcad),_0x1164fc=await getSubs(_0x4ba41d),_0x3516a1=getSubsByPlayInfo(_0xab50c4);for(var _0x445bcc of _0x3516a1){_0x1164fc[_0x500b8d(0x153)](_0x445bcc);}let _0x3de6b9=[];for(var _0x491b01 of _0x1164fc){const _0x4e65cf={};_0x4e65cf['url']=_0x491b01[_0x500b8d(0xef)],_0x4e65cf[_0x500b8d(0x16e)]=_0x491b01[_0x500b8d(0x16e)],_0x4e65cf[_0x500b8d(0xec)]=_0x491b01[_0x500b8d(0x12d)],_0x3de6b9[_0x500b8d(0x153)](_0x4e65cf);}const _0x17a5df={};return _0x17a5df[_0x500b8d(0x17a)]=_0x3de6b9,JSON['stringify']({'parse':0x0,'url':_0x337826,'header':getAuthHeader(),'extra':_0x17a5df,'format':_0x500b8d(0x17b)+_0x500b8d(0x100)+'ream','subs':_0x1164fc});}catch(_0x37dcd9){console['debug'](_0x37dcd9);}}function getPreviewUrl(_0x38d3d1,_0x40b466){const _0x3cbfc5=_0x3aecc8;let _0x108a55=[];for(var _0x48aaaa of _0x38d3d1){if(typeof _0x48aaaa[_0x3cbfc5(0x182)]==_0x3cbfc5(0x101))continue;_0x108a55['push'](_0x48aaaa[_0x3cbfc5(0x15a)][_0x3cbfc5(0xe6)+'e']()),_0x108a55[_0x3cbfc5(0x153)](_0x48aaaa[_0x3cbfc5(0x182)][_0x3cbfc5(0xef)]);}return _0x108a55;}function getSubsByPlayInfo(_0xad365c){return[];}async function copy(_0x2f0eed,_0x37cf24,_0x354e0d){const _0xa32cf6=_0x3aecc8;let _0xe06473={};_0xe06473['fid_list']=[_0x37cf24],_0xe06473['fid_token_'+_0xa32cf6(0x18a)]=[_0x354e0d],_0xe06473['pdir_fid']='0',_0xe06473[_0xa32cf6(0x165)+'d']='0',_0xe06473[_0xa32cf6(0x11b)]=_0x2f0eed,_0xe06473[_0xa32cf6(0xed)]=shareMap[_0x2f0eed][_0xa32cf6(0x19a)]();let _0x5a41b7=await authPost(_0xa32cf6(0x14c)+'ve/share/s'+_0xa32cf6(0xf2)+_0xa32cf6(0xf1)+_0xa32cf6(0x16c),_0xe06473),_0xe68632=JSON[_0xa32cf6(0x154)](_0x5a41b7)['data'],_0x530813=_0xe68632['task_id'],_0x26e3c4=getTaskSaveFidResult(_0x530813,0x1);return _0x26e3c4;}async function getTaskSaveFidResult(_0x329280,_0x3b5114){const _0x53f16b=_0x3aecc8;_0x3b5114=_0x3b5114||0x1;let _0x5b6604={};_0x5b6604['pr']=_0x53f16b(0x133),_0x5b6604['fr']='pc',_0x5b6604[_0x53f16b(0x10f)]=_0x329280,_0x5b6604[_0x53f16b(0x172)+'x']=_0x3b5114;let _0x5427ae=await authGet(_0x53f16b(0x14c)+'ve/task',_0x5b6604),_0x4b8194=JSON[_0x53f16b(0x154)](_0x5427ae)[_0x53f16b(0x10e)];if(typeof _0x4b8194[_0x53f16b(0x10d)]==_0x53f16b(0x101)||typeof _0x4b8194['save_as'][_0x53f16b(0xe7)+_0x53f16b(0x13d)]==_0x53f16b(0x101)||_0x4b8194[_0x53f16b(0x10d)][_0x53f16b(0xe7)+'p_fids']['length']==0x0){_0x3b5114++;if(_0x3b5114>0xa)return'';return _0x51850a[_0x53f16b(0x150)](0x3e8),getTaskSaveFidResult(_0x329280,_0x3b5114);}return _0x4b8194[_0x53f16b(0x10d)]['save_as_to'+_0x53f16b(0x13d)][0x0];}function deleteAll(){const _0x2d3caf=_0x3aecc8;let _0x3604b8=tempIds;_0x3604b8[_0x2d3caf(0x14b)]((_0x47f01b,_0xaa2b3a)=>{const _0x29e467=_0x2d3caf;let _0xc99e3a=deleteOne(_0x47f01b);if(_0xc99e3a){let _0x45fd69=tempIds['indexOf'](_0x47f01b);_0x45fd69>=0x0&&tempIds[_0x29e467(0x13e)](_0x45fd69,0x1);}});}async function getTaskDeleteResult(_0x3371eb,_0x1a4424){const _0x1ac8d3=_0x3aecc8;_0x1a4424=_0x1a4424||0x1;let _0x3319f7={};_0x3319f7['pr']='ucpro',_0x3319f7['fr']='pc',_0x3319f7[_0x1ac8d3(0x10f)]=_0x3371eb,_0x3319f7[_0x1ac8d3(0x172)+'x']=_0x1a4424;let _0x459a04=await authGet(_0x1ac8d3(0x14c)+'ve/task',_0x3319f7),_0x4dd9f4=JSON[_0x1ac8d3(0x154)](_0x459a04)['data'];if(_0x4dd9f4['status']!=0x2){_0x1a4424++;if(_0x1a4424>0xa)return![];return _0x51850a[_0x1ac8d3(0x150)](0x3e8),getTaskDeleteResult(_0x3371eb,_0x1a4424);}return!![];}async function deleteOne(_0x1525af){const _0x4ec1f3=_0x3aecc8;let _0x26c673={};_0x26c673[_0x4ec1f3(0x185)+'e']=0x2,_0x26c673[_0x4ec1f3(0x17e)]=[_0x1525af],_0x26c673['exclude_fi'+'ds']=[];let _0x2843c5=await authPost(_0x4ec1f3(0x14c)+_0x4ec1f3(0x123)+_0x4ec1f3(0xf4)+_0x4ec1f3(0x120),_0x26c673),_0x30a611=JSON[_0x4ec1f3(0x154)](_0x2843c5)[_0x4ec1f3(0x10e)],_0x120348=_0x30a611['task_id'],_0x3e7559=getTaskDeleteResult(_0x120348,0x1);return _0x3e7559;}export{setCookie,getVod,playerContent,playerContentByFlag};