UNPKG

hawkclient-cli

Version:

hawkclient-cli, a cli to test apis collection

1 lines 10 kB
const a9_0x485108=a9_0x4bae;(function(_0x4611d8,_0x57e515){const _0x3d8e9c=a9_0x4bae,_0x118837=_0x4611d8();while(!![]){try{const _0x16a519=-parseInt(_0x3d8e9c(0x81))/0x1+parseInt(_0x3d8e9c(0x9e))/0x2*(-parseInt(_0x3d8e9c(0x90))/0x3)+-parseInt(_0x3d8e9c(0x67))/0x4+parseInt(_0x3d8e9c(0x8e))/0x5*(-parseInt(_0x3d8e9c(0x80))/0x6)+-parseInt(_0x3d8e9c(0x73))/0x7+-parseInt(_0x3d8e9c(0x8c))/0x8+parseInt(_0x3d8e9c(0x6d))/0x9;if(_0x16a519===_0x57e515)break;else _0x118837['push'](_0x118837['shift']());}catch(_0x2caa97){_0x118837['push'](_0x118837['shift']());}}}(a9_0x6393,0x589d1));const a9_0x5615af=(function(){const _0x4d9613=a9_0x4bae,_0x327671={};_0x327671[_0x4d9613(0xa4)]=_0x4d9613(0x71),_0x327671[_0x4d9613(0x6e)]='RmFEz';const _0x1a2c52=_0x327671;let _0x5d6272=!![];return function(_0x251cc6,_0xdf2b7a){const _0x45f420=_0x4d9613,_0x1097f7={};_0x1097f7[_0x45f420(0xad)]=_0x1a2c52['QUmVP'],_0x1097f7[_0x45f420(0xa8)]=_0x1a2c52[_0x45f420(0x6e)];const _0x353eb4=_0x1097f7,_0x49f64d=_0x5d6272?function(){const _0x3f0e1b=_0x45f420;if(_0xdf2b7a){if(_0x353eb4[_0x3f0e1b(0xad)]===_0x353eb4[_0x3f0e1b(0xa8)]){const _0x4ab21c=_0x1a48f5?function(){const _0x5a75e0=_0x3f0e1b;if(_0x1570f4){const _0x506ce7=_0x2d11fc[_0x5a75e0(0xb1)](_0x4a4b8a,arguments);return _0x318c45=null,_0x506ce7;}}:function(){};return _0x11fa59=![],_0x4ab21c;}else{const _0x1b8969=_0xdf2b7a['apply'](_0x251cc6,arguments);return _0xdf2b7a=null,_0x1b8969;}}}:function(){};return _0x5d6272=![],_0x49f64d;};}()),a9_0x20238e=a9_0x5615af(this,function(){const _0x29aee9=a9_0x4bae,_0x10c25d={};_0x10c25d[_0x29aee9(0x94)]=_0x29aee9(0x97);const _0x10c383=_0x10c25d;return a9_0x20238e[_0x29aee9(0xb3)]()[_0x29aee9(0x7e)](_0x10c383[_0x29aee9(0x94)])[_0x29aee9(0xb3)]()[_0x29aee9(0xb4)](a9_0x20238e)[_0x29aee9(0x7e)](_0x10c383['NcFYJ']);});a9_0x20238e();const a9_0x530832=require(a9_0x485108(0x96)),{URL:a9_0x199094}=require(a9_0x485108(0x85));function a9_0x2767a3(_0x13c6cd){const _0x154bfe=a9_0x485108,_0x3dcad0={};_0x3dcad0[_0x154bfe(0xb2)]='undefined';const _0x304688=_0x3dcad0;return _0x13c6cd&&_0x13c6cd[_0x154bfe(0x92)]()!==''&&_0x13c6cd[_0x154bfe(0x92)]()!==_0x304688[_0x154bfe(0xb2)];}function a9_0x107531(_0x156244){return _0x156244['replace'](/"/g,'');}function a9_0x4bae(_0x3ccf38,_0x587edd){const _0x83ddca=a9_0x6393();return a9_0x4bae=function(_0x35f2ed,_0x22ef95){_0x35f2ed=_0x35f2ed-0x66;let _0x6393bd=_0x83ddca[_0x35f2ed];if(a9_0x4bae['NPrDkE']===undefined){var _0x4bae2e=function(_0xfab3d){const _0x51d882='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c648c='',_0x54b16a='',_0xe949b5=_0x4c648c+_0x4bae2e;for(let _0x3d80d4=0x0,_0x5cb631,_0x39b5a6,_0x16df6c=0x0;_0x39b5a6=_0xfab3d['charAt'](_0x16df6c++);~_0x39b5a6&&(_0x5cb631=_0x3d80d4%0x4?_0x5cb631*0x40+_0x39b5a6:_0x39b5a6,_0x3d80d4++%0x4)?_0x4c648c+=_0xe949b5['charCodeAt'](_0x16df6c+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5cb631>>(-0x2*_0x3d80d4&0x6)):_0x3d80d4:0x0){_0x39b5a6=_0x51d882['indexOf'](_0x39b5a6);}for(let _0x1a48f5=0x0,_0x527eef=_0x4c648c['length'];_0x1a48f5<_0x527eef;_0x1a48f5++){_0x54b16a+='%'+('00'+_0x4c648c['charCodeAt'](_0x1a48f5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x54b16a);};a9_0x4bae['YeRZdw']=_0x4bae2e,_0x3ccf38=arguments,a9_0x4bae['NPrDkE']=!![];}const _0x314fe5=_0x83ddca[0x0],_0x5934cf=_0x35f2ed+_0x314fe5,_0x29e244=_0x3ccf38[_0x5934cf];if(!_0x29e244){const _0x23f243=function(_0x299bf9){this['EGdfBj']=_0x299bf9,this['QkhbJZ']=[0x1,0x0,0x0],this['ZJCcSc']=function(){return'newState';},this['PNohJy']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['RTBBAz']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x23f243['prototype']['nWLTgA']=function(){const _0x4a3da7=new RegExp(this['PNohJy']+this['RTBBAz']),_0x11fa59=_0x4a3da7['test'](this['ZJCcSc']['toString']())?--this['QkhbJZ'][0x1]:--this['QkhbJZ'][0x0];return this['XVxsoc'](_0x11fa59);},_0x23f243['prototype']['XVxsoc']=function(_0x1570f4){if(!Boolean(~_0x1570f4))return _0x1570f4;return this['SxWfON'](this['EGdfBj']);},_0x23f243['prototype']['SxWfON']=function(_0x521079){for(let _0x250a23=0x0,_0x5e3ebb=this['QkhbJZ']['length'];_0x250a23<_0x5e3ebb;_0x250a23++){this['QkhbJZ']['push'](Math['round'](Math['random']())),_0x5e3ebb=this['QkhbJZ']['length'];}return _0x521079(this['QkhbJZ'][0x0]);},new _0x23f243(a9_0x4bae)['nWLTgA'](),_0x6393bd=a9_0x4bae['YeRZdw'](_0x6393bd),_0x3ccf38[_0x5934cf]=_0x6393bd;}else _0x6393bd=_0x29e244;return _0x6393bd;},a9_0x4bae(_0x3ccf38,_0x587edd);}function a9_0x6393(){const _0x3b632f=['Bwv0Ag9K','uvvTvLa','B2LlrgC','Dg9vChbLCKnHC2u','D3rzuNO','wgfJCLq','yxr0ywnOrgLNzxn0sw50zxjJzxb0B3i','AgvHzgvYCW','wMvdBxi','CMvHBg0','ywL0uu8','rgLNzxn0ia','DxjPpsi','Bwq1','yxbWBhK','s1npwe0','Dg9tDhjPBMC','y29UC3rYDwn0B3i','Dg9mB3DLCKnHC2u','mtC5mZK0ogPQwxfwtq','mdaWmdaWmde','zxHWB3j0CW','s2rQuKS','ANz1ywi','CMvWBgfJzq','mJiWmta5nZzUA0LVq0G','zvjMzxm','Aw5KzxHpzG','BM9Uy2u','z0Hdzhq','BK1oExq','nte3ndyXzK9IqMT1','ywXNB3jPDgHTpsjnrduI','r3jwAK4','AwHICLi','y25VBMnLpsi','y3jLyxrLsgfZAa','Aur4Dfq','zNL6qwK','zgLNzxn0','Bfrvq0e','Agv4','C2vHCMnO','D3D3lwf1DgHLBNrPy2f0zq','mtjgwKLuzKO','mZuXntG2wM1jrM5d','C3bSAxq','BMm9iG','Cgf0Ag5HBwu','DxjS','yxv0Ag9YAxPHDgLVBG','C3vIC3rYAw5N','Cw9WpsjHDxrOiG','CMvHBg09iG','B3bHCxvL','ChvZAa','mZy4nZuYmfD3D2XnwG','CMvQzwn0','mtuXndKXnvftzMTJtW','BwfW','mZnPzKPeuxG','C3rHCNrZv2L0Aa','DhjPBq','CMfUzg9TqNL0zxm','tMngwuO','CfrsAeq','y3j5ChrV','kcGOlISPkYKRksSK','CMvKDwnL','vw5ZDxbWB3j0zwqGywXNB3jPDgHToIa','qxv0Ag9YAxPHDgLVBG','oMf1DgG6','tuq1','AM9PBG','mJu3odjwCg51qwG','CMvZCg9UC2u','CMvZCg9UC2u9iG','x3jLDhj5','yuHxt3m'];a9_0x6393=function(){return _0x3b632f;};return a9_0x6393();}function a9_0x41adc0(_0x78f89f){const _0x22228a=a9_0x485108,_0x8d31a3=_0x78f89f[_0x22228a(0x6f)]('='),_0x4f9921=_0x78f89f[_0x22228a(0x87)](0x0,_0x8d31a3)[_0x22228a(0x92)](),_0x405364=_0x78f89f[_0x22228a(0x87)](_0x8d31a3+0x1);return[_0x4f9921,_0x405364];}function a9_0x2dfaaa(_0x1085dd){const _0x32aabe=a9_0x485108,_0x4a53a3={};_0x4a53a3[_0x32aabe(0x7a)]=_0x32aabe(0x7f),_0x4a53a3[_0x32aabe(0x75)]=_0x32aabe(0x7b);const _0x2b5c26=_0x4a53a3,_0x1f0e73=_0x1085dd?.[_0x32aabe(0xaa)]?.[_0x2b5c26[_0x32aabe(0x7a)]];return _0x1f0e73?_0x1f0e73[_0x32aabe(0x92)]()['toLowerCase']()[_0x32aabe(0x91)](_0x2b5c26['GrVjN']):![];}function a9_0x3fc7d3(_0x27bc78){const _0x28c590=a9_0x485108,_0x36a022={};_0x36a022[_0x28c590(0xa5)]=_0x28c590(0x9a),_0x36a022[_0x28c590(0xab)]=_0x28c590(0x86);const _0x48431a=_0x36a022;return Boolean(_0x27bc78[_0x28c590(0xaa)][_0x48431a[_0x28c590(0xa5)]]||_0x27bc78['headers'][_0x48431a['ZeCmr']]);}function a9_0x4b34b8(_0x45a881){const _0x1c97b9=a9_0x485108,_0x400a00={};_0x400a00['aHWOs']=_0x1c97b9(0xb0),_0x400a00['yIvLt']=_0x1c97b9(0x7d);const _0x1a9a6f=_0x400a00;return a9_0x530832[_0x1c97b9(0x78)](_0x1a9a6f[_0x1c97b9(0xa2)])['update'](_0x45a881)[_0x1c97b9(0x7b)](_0x1a9a6f['yIvLt']);}function a9_0x286408(_0x3c6d61,_0x47340a){const _0x46c21d=a9_0x485108,_0x198b94={'KdjRK':_0x46c21d(0x7c),'iDxtT':function(_0x184c9e,_0x3bf6b2){return _0x184c9e(_0x3bf6b2);},'pTRhD':_0x46c21d(0x7d),'jvuab':function(_0x35854a,_0x4886db){return _0x35854a!==_0x4886db;},'ihbrR':'MD5','nMNyt':function(_0x58acb6,_0x5d41a1){return _0x58acb6(_0x5d41a1);},'FhsMc':function(_0x47a387,_0x4f973e){return _0x47a387(_0x4f973e);},'mhaHt':_0x46c21d(0x9a),'wtYRz':function(_0x11d76c,_0x3df42c){return _0x11d76c(_0x3df42c);}},{username:_0x64324a,password:_0x2dd6d4}=_0x47340a||{};if(!_0x198b94[_0x46c21d(0x79)](a9_0x2767a3,_0x64324a)||!_0x198b94[_0x46c21d(0xa7)](a9_0x2767a3,_0x2dd6d4))return;_0x3c6d61['interceptors']['response']['use'](_0x13dc89=>_0x13dc89,_0x2a8fd8=>{const _0x2447f4=_0x46c21d;if(_0x198b94[_0x2447f4(0x6a)]==='zBtwp')_0x33d8a4[_0x2447f4(0x8b)]('opaque=\x22'+_0x40cc7f[_0x2447f4(0x8a)]+'\x22');else{const _0x1089d6=_0x2a8fd8['config'];if(_0x1089d6[_0x2447f4(0xa1)])return Promise[_0x2447f4(0x8d)](_0x2a8fd8);_0x1089d6['_retry']=!![];if(_0x2a8fd8[_0x2447f4(0x9f)]?.['status']===0x191&&a9_0x2dfaaa(_0x2a8fd8[_0x2447f4(0x9f)])&&!_0x198b94[_0x2447f4(0x79)](a9_0x3fc7d3,_0x1089d6)){const _0x52ef59=_0x2a8fd8[_0x2447f4(0x9f)][_0x2447f4(0xaa)][_0x2447f4(0x7f)],_0x2cb920=_0x52ef59[_0x2447f4(0x82)](',')[_0x2447f4(0x8f)](_0x1e73a3=>a9_0x41adc0(_0x1e73a3)[_0x2447f4(0x8f)](a9_0x107531))[_0x2447f4(0x98)]((_0x2fcdac,[_0x44b0fd,_0x59a003])=>{const _0x2e6acb=_0x2447f4,_0x401329=_0x44b0fd[_0x2e6acb(0x66)]()[_0x2e6acb(0x6c)](/^digest\s+/,'');return _0x2fcdac[_0x401329]=_0x59a003,_0x2fcdac;},{});if(!_0x2cb920['realm']||!_0x2cb920[_0x2447f4(0x70)])return Promise[_0x2447f4(0x8d)](_0x2a8fd8);const _0x4511d3=new a9_0x199094(_0x1089d6[_0x2447f4(0x85)])[_0x2447f4(0x84)],_0xc894a9=_0x1089d6[_0x2447f4(0xa3)]['toUpperCase'](),_0x322156=_0x2447f4(0x68),_0xf8a302=a9_0x530832[_0x2447f4(0x93)](0x10)[_0x2447f4(0xb3)](_0x198b94[_0x2447f4(0x95)]),_0x34f702=(_0x2cb920['algorithm']||_0x2447f4(0x9c))[_0x2447f4(0xa6)]();if(_0x198b94[_0x2447f4(0x6b)](_0x34f702,_0x198b94[_0x2447f4(0x76)]))return Promise[_0x2447f4(0x8d)](new Error(_0x2447f4(0x99)+_0x34f702));const _0x2d320c=_0x198b94['iDxtT'](a9_0x4b34b8,_0x64324a+':'+_0x2cb920[_0x2447f4(0xac)]+':'+_0x2dd6d4),_0x11d76d=_0x198b94[_0x2447f4(0x72)](a9_0x4b34b8,_0xc894a9+':'+_0x4511d3),_0xbf3932=_0x198b94['FhsMc'](a9_0x4b34b8,_0x2d320c+':'+_0x2cb920[_0x2447f4(0x70)]+':'+_0x322156+':'+_0xf8a302+_0x2447f4(0x9b)+_0x11d76d),_0x53b9d0=['username=\x22'+_0x64324a+'\x22',_0x2447f4(0x89)+_0x2cb920[_0x2447f4(0xac)]+'\x22','nonce=\x22'+_0x2cb920['nonce']+'\x22',_0x2447f4(0xaf)+_0x4511d3+'\x22',_0x2447f4(0x88),_0x2447f4(0x83)+_0x322156+'\x22',_0x2447f4(0x77)+_0xf8a302+'\x22',_0x2447f4(0xa0)+_0xbf3932+'\x22',_0x2447f4(0x74)];return _0x2cb920['opaque']&&_0x53b9d0[_0x2447f4(0x8b)]('opaque=\x22'+_0x2cb920['opaque']+'\x22'),_0x1089d6[_0x2447f4(0xaa)]=_0x1089d6[_0x2447f4(0xaa)]||{},_0x1089d6['headers'][_0x198b94['mhaHt']]=_0x2447f4(0xae)+_0x53b9d0[_0x2447f4(0x9d)](',\x20'),_0x198b94['nMNyt'](_0x3c6d61,_0x1089d6);}return Promise['reject'](_0x2a8fd8);}});}const a9_0x204028={};a9_0x204028[a9_0x485108(0xa9)]=a9_0x286408,module[a9_0x485108(0x69)]=a9_0x204028;