HJ_Client/extensions/cocos-service/browser/protocol.js
DESKTOP-15R5JU0\legu 62fef0360c init
2023-11-17 14:13:11 +08:00

1 line
6.2 KiB
JavaScript

'use strict';const _0x4a33fa=_0x3884;(function(_0x570e88,_0x2597de){const _0x4c28d6=_0x3884,_0x5e4866=_0x570e88();while(!![]){try{const _0x2706e3=parseInt(_0x4c28d6(0xc2))/0x1*(parseInt(_0x4c28d6(0xbd))/0x2)+parseInt(_0x4c28d6(0xd9))/0x3+-parseInt(_0x4c28d6(0xae))/0x4*(-parseInt(_0x4c28d6(0xa7))/0x5)+-parseInt(_0x4c28d6(0xd7))/0x6*(-parseInt(_0x4c28d6(0xd6))/0x7)+-parseInt(_0x4c28d6(0xd5))/0x8+-parseInt(_0x4c28d6(0xbc))/0x9*(-parseInt(_0x4c28d6(0xce))/0xa)+-parseInt(_0x4c28d6(0xc5))/0xb*(parseInt(_0x4c28d6(0xba))/0xc);if(_0x2706e3===_0x2597de)break;else _0x5e4866['push'](_0x5e4866['shift']());}catch(_0x82aa5e){_0x5e4866['push'](_0x5e4866['shift']());}}}(_0xf32e,0xbbc15));function _0x3884(_0x362372,_0x50cbf8){const _0xf32e3f=_0xf32e();return _0x3884=function(_0x3884ec,_0x3ae32a){_0x3884ec=_0x3884ec-0xa7;let _0x279c2=_0xf32e3f[_0x3884ec];return _0x279c2;},_0x3884(_0x362372,_0x50cbf8);}const _0x3b2836=_0x2d12;function _0xf32e(){const _0x2ca24a=['5495103QkrqFT','1418318tbnAWO','355992ZacHqI','732TlctER','apiPost','__importDefault','2HWAFZG','push','find','385CnVpRw','shift','service/lists','getSessionToken','session/code','objectSortByKey','status','50795xblfme','plugin_id','20ftBHeK','data','&0c234adac31fdec28ac45df0b1c42d532b06321c','cc_version','session_token','1028','session_id','8300712HRcSix','2891cpelFb','15102hPPNzL','cs_require','3266967SBgVyL','__esModule','764545phNIUa','589612eXWAvu','session_code','session/token','64685ssFRxm','default','3vZkhRE','md5','19019qzJRzy','https://creator-api.cocos.com/api/','8hpHKZX','4djEnVq','&redirect_url=','getUserData','catch','sign','10XHczMF','then','is_refresh_token','3918987fdgXNj','paramEncode','132pgHxuN','getServiceVersion','1019748isUyqg','msg'];_0xf32e=function(){return _0x2ca24a;};return _0xf32e();}(function(_0x3eae90,_0x3229d9){const _0x4cb145=_0x3884,_0x104985=_0x2d12,_0x13fdef=_0x3eae90();while(!![]){try{const _0x115b8c=parseInt(_0x104985(0x1fb))/0x1+parseInt(_0x104985(0x1f1))/0x2+-parseInt(_0x104985(0x214))/0x3*(parseInt(_0x104985(0x1f7))/0x4)+-parseInt(_0x104985(0x20f))/0x5*(-parseInt(_0x104985(0x1ea))/0x6)+-parseInt(_0x104985(0x1e7))/0x7*(parseInt(_0x104985(0x1f5))/0x8)+parseInt(_0x104985(0x216))/0x9*(parseInt(_0x104985(0x20c))/0xa)+-parseInt(_0x104985(0x201))/0xb*(parseInt(_0x104985(0x212))/0xc);if(_0x115b8c===_0x3229d9)break;else _0x13fdef[_0x4cb145(0xc3)](_0x13fdef['shift']());}catch(_0x480fe0){_0x13fdef['push'](_0x13fdef[_0x4cb145(0xc6)]());}}}(_0x36c4,0xe42de));function _0x2d12(_0x9be9b4,_0x57b238){const _0x4f9922=_0x36c4();return _0x2d12=function(_0x507912,_0x230c85){_0x507912=_0x507912-0x1e5;let _0x178f7d=_0x4f9922[_0x507912];return _0x178f7d;},_0x2d12(_0x9be9b4,_0x57b238);}var __importDefault=this&&this[_0x3b2836(0x1f9)]||function(_0x595598){const _0x1cf36f=_0x3b2836;return _0x595598&&_0x595598[_0x1cf36f(0x1fe)]?_0x595598:{'default':_0x595598};};function _0x36c4(){const _0x21badf=_0x3884,_0x3ebae5=[_0x21badf(0xbb),_0x21badf(0xad),_0x21badf(0xd0),'5763444OYfHGj',_0x21badf(0xaf),_0x21badf(0xc1),_0x21badf(0xd1),_0x21badf(0xdb),_0x21badf(0xc0),_0x21badf(0xb1),_0x21badf(0xda),'../utils/editor',_0x21badf(0xdd),_0x21badf(0xb8),_0x21badf(0xd2),_0x21badf(0xb9),_0x21badf(0xcf),_0x21badf(0xb0),_0x21badf(0xca),'getCreatorVersion','parse','lang',_0x21badf(0xcd),_0x21badf(0xd8),_0x21badf(0xb3),'cs_version','127.0.0.1',_0x21badf(0xcc),_0x21badf(0xde),_0x21badf(0xc7),_0x21badf(0xbe),'substr',_0x21badf(0xa9),_0x21badf(0xcb),_0x21badf(0xb6),_0x21badf(0xd4),'getLang',_0x21badf(0xd3),_0x21badf(0xab),'defineProperty','stringify',_0x21badf(0xbf),'parseParamter','account/client_signin?session_id=',_0x21badf(0xc8),_0x21badf(0xa8),_0x21badf(0xc9),_0x21badf(0xb2),_0x21badf(0xdc),_0x21badf(0xb7),_0x21badf(0xaa)];return _0x36c4=function(){return _0x3ebae5;},_0x36c4();}Object[_0x3b2836(0x1e8)](exports,'__esModule',{'value':!0x0});const editor_1=__importDefault(require(_0x3b2836(0x1ff))),http_1=__importDefault(require('../utils/http')),domain=_0x4a33fa(0xac),not_require_token_urls=[_0x3b2836(0x1ef),_0x3b2836(0x210),_0x3b2836(0x211)];exports[_0x3b2836(0x1ee)]={'is_refresh_token':!0x1,'session_token':'','parseParamter':function(_0x3a6f62){const _0x37e09b=_0x3b2836;let _0x39ccdf=JSON[_0x37e09b(0x208)](JSON[_0x37e09b(0x1e9)](_0x3a6f62));_0x39ccdf[_0x37e09b(0x20a)]=_0x37e09b(0x1e6),_0x39ccdf['ip']=_0x37e09b(0x20e),_0x39ccdf[_0x37e09b(0x209)]=editor_1[_0x37e09b(0x1ee)][_0x37e09b(0x1e5)](),_0x39ccdf[_0x37e09b(0x20d)]=editor_1[_0x37e09b(0x1ee)][_0x37e09b(0x203)](),_0x39ccdf[_0x37e09b(0x1fa)]=editor_1[_0x37e09b(0x1ee)][_0x37e09b(0x207)](),_0x39ccdf[_0x37e09b(0x20b)]='3x',_0x39ccdf=http_1['default'][_0x37e09b(0x206)](_0x39ccdf);let _0x5d7f7f=http_1[_0x37e09b(0x1ee)][_0x37e09b(0x1f2)](_0x39ccdf)+_0x37e09b(0x1f6);return _0x39ccdf[_0x37e09b(0x1f0)]=require(_0x37e09b(0x1f3))(_0x5d7f7f[_0x37e09b(0x213)](0x1)),_0x39ccdf;},'apiPost':async function(_0x334390,_0x330376={}){const _0x5dcbfa=_0x4a33fa,_0x4b6a70=_0x3b2836;return void 0x0===not_require_token_urls[_0x5dcbfa(0xc4)](_0x46399f=>_0x46399f===_0x334390)&&(''===this[_0x5dcbfa(0xd2)]&&await this[_0x5dcbfa(0xc8)](),_0x330376[_0x4b6a70(0x202)]=this[_0x4b6a70(0x202)]),new Promise((_0x41f717,_0x1aa1a0)=>{const _0x30a056=_0x5dcbfa,_0x18bd2e=_0x4b6a70;http_1['default']['post'](domain+_0x334390,this[_0x18bd2e(0x1eb)](_0x330376))[_0x30a056(0xb4)](async _0x5f4c46=>{const _0x13f9ce=_0x30a056,_0xcf5a3e=_0x18bd2e;0x0===_0x5f4c46[_0xcf5a3e(0x215)]?_0x41f717(_0x5f4c46[_0xcf5a3e(0x204)]):0x196===_0x5f4c46[_0xcf5a3e(0x215)]?(this[_0x13f9ce(0xb5)]=!0x0,await this[_0xcf5a3e(0x1ed)]()):(_0x5f4c46[_0xcf5a3e(0x215)],_0x1aa1a0({'status':_0x5f4c46[_0x13f9ce(0xcb)],'msg':_0x5f4c46[_0xcf5a3e(0x1f4)],'path':_0x334390}));})[_0x18bd2e(0x1fd)](_0x1aa1a0);});},'getSessionToken':async function(){const _0x51a4bf=_0x3b2836;let _0x367ce5=await editor_1[_0x51a4bf(0x1ee)][_0x51a4bf(0x205)](),_0x3989ea=await this[_0x51a4bf(0x1fc)](_0x51a4bf(0x1ef),{'session_id':_0x367ce5[_0x51a4bf(0x217)]}),_0x458bf7=await this[_0x51a4bf(0x1fc)](_0x51a4bf(0x210),{'session_code':_0x3989ea[_0x51a4bf(0x200)]});this[_0x51a4bf(0x202)]=_0x458bf7[_0x51a4bf(0x202)];},'getRedirectUrl':async function(_0x5d7200){const _0x558098=_0x3b2836;let _0x45c1e5=await editor_1[_0x558098(0x1ee)][_0x558098(0x205)]();return domain+_0x558098(0x1ec)+_0x45c1e5[_0x558098(0x217)]+_0x558098(0x1f8)+encodeURIComponent(_0x5d7200);}};