OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / lib / effects.js

1 lines · javascript ref:
(function(_0x52923e,_0x239990){const _0x11e209={_0x546e25:0x6e,_0x5f1c9e:0x74,_0x3e6b72:0x493,_0x249a4e:0x494,_0x220f39:0x484,_0x3e14bb:0x489,_0x5bf6d7:0x492,_0x112c17:0x49c,_0x7d2ecf:0x62,_0x52bbdd:0x6f,_0xae0bbb:0x7d,_0x11f0d3:0x6b,_0x1144e9:0x72,_0x5ea28c:0x83,_0x231ff2:0x7a,_0x43b519:0x63,_0x2300d3:0x56,_0x2c5092:0x4a1,_0x481dac:0x48b,_0x14e874:0x49a,_0x568b21:0x48c},_0x40fd04={_0x37cb9d:0x336},_0x385413={_0x53f03f:0xee};function _0x1169fc(_0x4c5092,_0x5b92e6,_0x30242e,_0x4127cc){return _0x5584(_0x30242e- -_0x385413._0x53f03f,_0x4127cc);}function _0x1825ed(_0x16ed58,_0x3ca0c6,_0x201bc2,_0x6befd9){return _0x5584(_0x201bc2-_0x40fd04._0x37cb9d,_0x6befd9);}const _0x3ef8a5=_0x52923e();while(!![]){try{const _0x4728c1=-parseInt(_0x1169fc(_0x11e209._0x546e25,0x66,_0x11e209._0x5f1c9e,0x66))/(0x10e8+0x250b+0x1af9*-0x2)+-parseInt(_0x1825ed(0x494,_0x11e209._0x3e6b72,0x49d,_0x11e209._0x249a4e))/(-0x1007+-0x13f6+0x23ff)*(parseInt(_0x1825ed(_0x11e209._0x220f39,_0x11e209._0x3e14bb,_0x11e209._0x5bf6d7,_0x11e209._0x112c17))/(-0x6aa+-0x1*-0x2b4+0x1*0x3f9))+-parseInt(_0x1169fc(0x6f,_0x11e209._0x7d2ecf,_0x11e209._0x52bbdd,_0x11e209._0xae0bbb))/(-0x1*-0x1bf+-0x15b8+0x13fd)+-parseInt(_0x1169fc(0x79,_0x11e209._0x11f0d3,0x72,_0x11e209._0x1144e9))/(-0xd41+0xd8f+0x49*-0x1)+-parseInt(_0x1169fc(0x7a,_0x11e209._0x5ea28c,_0x11e209._0x231ff2,0x76))/(-0x1d3b+0xa*-0x259+-0x34bb*-0x1)+parseInt(_0x1169fc(0x67,0x54,_0x11e209._0x43b519,_0x11e209._0x2300d3))/(0xc8d+0x1*-0x20db+0x6c7*0x3)+parseInt(_0x1825ed(_0x11e209._0x2c5092,_0x11e209._0x481dac,_0x11e209._0x14e874,_0x11e209._0x568b21))/(-0x1643+0x316+0x3*0x667);if(_0x4728c1===_0x239990)break;else _0x3ef8a5['push'](_0x3ef8a5['shift']());}catch(_0x2c4ae1){_0x3ef8a5['push'](_0x3ef8a5['shift']());}}}(_0x1fdb,-0x60ad*0x3+-0xc3d9*-0x3+0x42698));function _0x5584(_0x1fdbfd,_0x55847c){const _0x3951de=_0x1fdb();return _0x5584=function(_0x228c9f,_0x4b2dd9){_0x228c9f=_0x228c9f-(0x22bf+0x1eac+-0x401e);let _0x53d74c=_0x3951de[_0x228c9f];return _0x53d74c;},_0x5584(_0x1fdbfd,_0x55847c);}const _0xc2e5ab=(function(){let _0x571b43=!![];return function(_0x30939e,_0xd22cc7){const _0x51c954={_0x4d853e:0x69,_0x1c7a81:0x6b,_0x25b99d:0x72,_0x384648:0x79},_0x45c442={_0x2a084a:0x1cd},_0x1863f7=_0x571b43?function(){function _0x529566(_0x33c333,_0x5f14ef,_0xe59a69,_0x4729bc){return _0x5584(_0xe59a69- -_0x45c442._0x2a084a,_0x33c333);}if(_0xd22cc7){const _0x49607a=_0xd22cc7[_0x529566(-_0x51c954._0x4d853e,-_0x51c954._0x1c7a81,-_0x51c954._0x25b99d,-_0x51c954._0x384648)](_0x30939e,arguments);return _0xd22cc7=null,_0x49607a;}}:function(){};return _0x571b43=![],_0x1863f7;};}()),_0x105e7c=_0xc2e5ab(this,function(){const _0x2c16d2={_0x4a30eb:0x2d5,_0x5aadb7:0x2c7,_0x2029fa:0x2c8,_0x4bd11b:0x2e0,_0x13c356:0x2de,_0x54682b:0x2d2,_0x72a05e:0x2e4,_0x4095b1:0x2da,_0x4a8b79:0x1e6,_0x515a26:0x1e8,_0x589b15:0x1e5,_0x39096a:0x2d5,_0x457ce2:0x2c9,_0x467f45:0x2ca,_0x47b73f:0x2e7,_0x5b4d60:0x1de,_0x380d50:0x1db,_0x1f3d11:0x1dd},_0x319398={_0x5c3ac9:0x8d};function _0x1622b1(_0x5a6bca,_0x39542d,_0x50632a,_0x5d5e87){return _0x5584(_0x5a6bca-0x17f,_0x50632a);}function _0x2d649c(_0xce53b5,_0x44826b,_0x7c0300,_0x2084f3){return _0x5584(_0x44826b-_0x319398._0x5c3ac9,_0x2084f3);}return _0x105e7c[_0x1622b1(_0x2c16d2._0x4a30eb,_0x2c16d2._0x5aadb7,_0x2c16d2._0x2029fa,_0x2c16d2._0x4bd11b)]()[_0x1622b1(_0x2c16d2._0x13c356,_0x2c16d2._0x54682b,_0x2c16d2._0x72a05e,_0x2c16d2._0x4095b1)](_0x2d649c(_0x2c16d2._0x4a8b79,0x1db,_0x2c16d2._0x515a26,_0x2c16d2._0x589b15)+'+$')[_0x1622b1(_0x2c16d2._0x39096a,_0x2c16d2._0x457ce2,_0x2c16d2._0x39096a,_0x2c16d2._0x467f45)]()[_0x1622b1(0x2d9,_0x2c16d2._0x4bd11b,0x2dc,_0x2c16d2._0x47b73f)+'r'](_0x105e7c)['search'](_0x2d649c(_0x2c16d2._0x5b4d60,_0x2c16d2._0x380d50,_0x2c16d2._0x1f3d11,0x1de)+'+$');});_0x105e7c();import{call,spawn,delay,takeEvery,all,fork}from'redux-saga/effects';export function block(){return call(()=>new Promise(()=>{}));}const RESTART_DELAY=-0x1ee6+0x347*-0xb+-0x3*-0x16b5,DEFAULT_RESTARTS=0x795*0x5+-0x1680+-0xf68;function _0x1fdb(){const _0x7e9c5e=['isArray','forEach','unknown','push','toString','nction\x20par','uniqueMap','safeCall:\x20','constructo','apply','933psuFGg','2337952xuLMVH','map','search','3296290lEOebE','string','385496yldAll','keys','22515872WykMTg','length','invalid\x20fu','2378voVfJj','3072354mZKuhu','error','function','(((.+)+)+)','filter','uniqueIds','313488SBHkZN'];_0x1fdb=function(){return _0x7e9c5e;};return _0x1fdb();}export function spawnRestarted(_0x53869b,..._0x4e82f8){const _0x23af5e={_0x251b2f:0x3e7,_0x49fcfc:0x3df};let _0xf753ec=DEFAULT_RESTARTS;return spawn(function*_0x1fc962(){const _0xf0e177={_0x43f5fe:0x274};function _0xc9d369(_0xfc63d5,_0x325b32,_0x3bc9c0,_0x17f0b2){return _0x5584(_0xfc63d5-_0xf0e177._0x43f5fe,_0x3bc9c0);}while(_0xf753ec>=-0x1*-0x1cc7+-0xa*-0x185+-0x2bf9){try{yield call(_0x53869b,..._0x4e82f8);break;}catch(_0x2c7120){console[_0xc9d369(0x3dd,_0x23af5e._0x251b2f,0x3e7,_0x23af5e._0x49fcfc)](_0x2c7120),_0xf753ec-=0x11c8+-0x34e+0x39*-0x41,yield delay(RESTART_DELAY);}}});}export const createSpawnRestarted=({onError:_0x46d33e,attempts:_0x57c4b9})=>(_0x56acbe,..._0x113926)=>{const _0x24fed4={_0xbf413:0x248,_0x117705:0x257};let _0x28c07b=_0x57c4b9||DEFAULT_RESTARTS;return spawn(function*_0x197e11(){const _0x49a7e6={_0x3b09e8:0x100};function _0x20de41(_0x23d6b4,_0x151528,_0x17b402,_0x2dc7f4){return _0x5584(_0x2dc7f4-_0x49a7e6._0x3b09e8,_0x23d6b4);}while(_0x28c07b>=0x26f9+-0x17f6+-0xf03){try{yield call(_0x56acbe,..._0x113926);break;}catch(_0x5a52fc){yield _0x46d33e(_0x56acbe['name']||_0x20de41(_0x24fed4._0xbf413,_0x24fed4._0x117705,0x263,0x254),_0x5a52fc),_0x28c07b-=0x74b+-0x20c+-0x53e,yield delay(RESTART_DELAY);}}});};export function*safeCall(_0xf8b943,..._0x541d8c){const _0x5f16a8={_0x44649f:0x521,_0x31fe49:0x526,_0x41e9ba:0x52b,_0x495b5a:0x42c,_0x572939:0x41d,_0x59be99:0x423,_0x4e7492:0x420,_0x564f5c:0x432,_0x43376f:0x42d,_0x3a34b3:0x414,_0x70074c:0x414,_0x31d691:0x410,_0x3f4795:0x41e,_0x320767:0x54c,_0x1bc758:0x543,_0x49ad11:0x547,_0x3625ac:0x552},_0x116c27={_0x3c5ee1:0x2c7},_0x1ec043={_0x59a775:0x3de};function _0x152b04(_0x114754,_0x175e99,_0x472641,_0x3e51){return _0x5584(_0x472641-_0x1ec043._0x59a775,_0x3e51);}function _0x54fd1c(_0x2ac6dd,_0x496ce6,_0x5cfa7e,_0x2d8d20){return _0x5584(_0x2d8d20-_0x116c27._0x3c5ee1,_0x2ac6dd);}let _0x33cda3;if(typeof _0xf8b943!==_0x152b04(_0x5f16a8._0x44649f,_0x5f16a8._0x31fe49,_0x5f16a8._0x41e9ba,0x52e))return _0x33cda3=new Error(_0x54fd1c(_0x5f16a8._0x495b5a,_0x5f16a8._0x572939,_0x5f16a8._0x59be99,_0x5f16a8._0x4e7492)+_0x54fd1c(0x42c,0x42b,_0x5f16a8._0x564f5c,_0x5f16a8._0x43376f)+_0x54fd1c(_0x5f16a8._0x3a34b3,_0x5f16a8._0x70074c,_0x5f16a8._0x31d691,_0x5f16a8._0x3f4795)+'am'),_0x33cda3;try{yield call(_0xf8b943,..._0x541d8c);}catch(_0x5e75f7){_0x33cda3=_0x5e75f7,console[_0x152b04(_0x5f16a8._0x320767,_0x5f16a8._0x1bc758,_0x5f16a8._0x49ad11,_0x5f16a8._0x3625ac)](_0x5e75f7);}return _0x33cda3;}export function*forkChildren(_0x27f9c3,_0x28729e,_0x277427,_0x2de8a2){const _0x560d74={_0x3999da:0x2ce,_0x57a6b0:0x2cb,_0x552ace:0x2d4,_0x49f722:0x1c6,_0x25f316:0x1c3,_0x29286d:0x1c9,_0x4bc2db:0x1c7,_0x120c7e:0x2e5,_0x5a652f:0x1bf,_0x3c7d2a:0x1c5,_0x1cccfa:0x1be,_0x156caa:0x1c4,_0x18bca3:0x2d6,_0x1c4d3b:0x2da,_0x2b054e:0x2d1,_0x45ee3a:0x1ca,_0x47f55c:0x1d3,_0xf1705d:0x2dc,_0x5ef1fe:0x2c6,_0x92ad35:0x2d5},_0x10a840={_0x2b1318:0x11b,_0x35b30e:0x11c,_0x15158a:0x121},_0x1af605={};let _0x15b2bc=[];function*_0x2834b1({taskId:_0x291578,childSaga:_0x3cbd56}){const _0x31dffc={_0x41a0cc:0x46};function _0x2e79b5(_0x486e65,_0x270671,_0x4d1f3d,_0x105411){return _0x5584(_0x4d1f3d- -_0x31dffc._0x41a0cc,_0x486e65);}try{yield _0x3cbd56({'taskId':_0x291578});}catch(_0x51aacb){_0x2de8a2?yield _0x2de8a2(_0x51aacb):console[_0x2e79b5(_0x10a840._0x2b1318,_0x10a840._0x35b30e,0x123,_0x10a840._0x15158a)](_0x51aacb);}}function*_0x57cdc5(_0x358122){const _0x462ead={_0x475875:0x323,_0x286a8e:0x319,_0x5bdf1b:0x208,_0x150b38:0x1fc,_0xa66f1f:0x314,_0xed379:0x313,_0x415e10:0x311,_0x438d32:0x30e,_0x21fd1f:0x1f4,_0x2243e2:0x1f3,_0x151027:0x1ef,_0xbaf8e8:0x1f9,_0x374f0d:0x1ee},_0x4ef83e={_0x29fbeb:0x30,_0xf3275c:0x3cc,_0x242a26:0x112};function _0x421d85(_0x2c51c3,_0x3ca631,_0x39edf8,_0xf392f7){return _0x5584(_0x3ca631- -0x328,_0xf392f7);}function _0x23c6e5(_0x478ee8,_0x47ca2a,_0x37190f,_0x190c6f){return _0x5584(_0x190c6f-0x182,_0x37190f);}try{const _0xd3e96f=yield _0x28729e(_0x358122);if(_0x15b2bc===_0xd3e96f||!Array[_0x23c6e5(0x2c9,_0x560d74._0x3999da,_0x560d74._0x57a6b0,_0x560d74._0x552ace)](_0xd3e96f))return;let _0x53e0ad;if(_0x15b2bc[_0x421d85(-_0x560d74._0x49f722,-_0x560d74._0x25f316,-_0x560d74._0x29286d,-_0x560d74._0x4bc2db)]===_0xd3e96f['length']){_0x53e0ad=!![];for(let _0xfde282=-0x1c9*-0xd+-0x15ad+-0x188;_0xfde282<_0xd3e96f[_0x23c6e5(0x2e6,_0x560d74._0x120c7e,0x2e7,0x2e7)];_0xfde282+=-0x23a8+0x1e3e+-0x56b*-0x1){if(_0x15b2bc[_0xfde282]!==_0xd3e96f[_0xfde282]){_0x53e0ad=![];break;}}}_0x15b2bc=_0xd3e96f;if(_0x53e0ad)return;const {uniqueIds:_0x2312a5}=_0xd3e96f['reduce']((_0x1fb608,_0x3e29a1)=>{const _0x2e635a={_0xcbe247:0xed,_0x57b180:0x1d7,_0x4f1d76:0x37};function _0x56d840(_0x226385,_0x21c1ae,_0x35bfb5,_0x5a7472){return _0x421d85(_0x226385-_0x4ef83e._0x29fbeb,_0x35bfb5-_0x4ef83e._0xf3275c,_0x35bfb5-_0x4ef83e._0x242a26,_0x226385);}if(!_0x3e29a1||typeof _0x3e29a1!==_0x3532a3(_0x462ead._0x475875,0x31d,0x31a,_0x462ead._0x286a8e))return _0x1fb608;function _0x3532a3(_0x1d08cc,_0x5247f1,_0x526b74,_0x40ae13){return _0x23c6e5(_0x1d08cc-_0x2e635a._0xcbe247,_0x5247f1-_0x2e635a._0x57b180,_0x40ae13,_0x526b74-_0x2e635a._0x4f1d76);}if(_0x1fb608[_0x56d840(_0x462ead._0x5bdf1b,0x20b,_0x462ead._0x150b38,0x1f3)][_0x3e29a1])return _0x1fb608;return _0x1fb608[_0x3532a3(_0x462ead._0xa66f1f,_0x462ead._0xed379,_0x462ead._0x415e10,_0x462ead._0x438d32)][_0x3e29a1]=!![],_0x1fb608[_0x56d840(_0x462ead._0x150b38,0x1ec,_0x462ead._0x21fd1f,0x1f3)][_0x56d840(_0x462ead._0x2243e2,_0x462ead._0x151027,_0x462ead._0xbaf8e8,_0x462ead._0x374f0d)](_0x3e29a1),_0x1fb608;},{'uniqueMap':{},'uniqueIds':[]});Object[_0x421d85(-_0x560d74._0x5a652f,-_0x560d74._0x3c7d2a,-_0x560d74._0x1cccfa,-_0x560d74._0x156caa)](_0x1af605)['forEach'](_0x4768bf=>{!_0x2312a5['includes'](_0x4768bf)&&(_0x1af605[_0x4768bf]['cancel'](),delete _0x1af605[_0x4768bf]);});const _0x5b5b42=_0x2312a5[_0x23c6e5(_0x560d74._0x18bca3,0x2dd,_0x560d74._0x1c4d3b,_0x560d74._0x2b054e)](_0x123abe=>!_0x1af605[_0x123abe]),_0x176020=yield all(_0x5b5b42[_0x421d85(-0x1d6,-_0x560d74._0x45ee3a,-0x1d7,-_0x560d74._0x47f55c)](_0x214dfb=>fork(_0x2834b1,{'taskId':_0x214dfb,'childSaga':_0x277427})));_0x5b5b42[_0x23c6e5(_0x560d74._0xf1705d,_0x560d74._0x1c4d3b,_0x560d74._0x5ef1fe,_0x560d74._0x92ad35)]((_0x238c18,_0x5136da)=>{_0x1af605[_0x238c18]=_0x176020[_0x5136da];});}catch(_0x2cf066){_0x2de8a2?yield _0x2de8a2(_0x2cf066):console['error'](_0x2cf066);}}yield takeEvery(_0x27f9c3,_0x57cdc5);}