function _0x3eca(){var _0x107af1=['966348EaWBfV','call','676718LzESkw','process','16168AbEotA','enter','7520kKTFWV','94837oUpZga','656211pWbaJt','exit','180tULIFj','115550wCtHFm','144KHBgJP'];_0x3eca=function(){return _0x107af1;};return _0x3eca();}(function(_0x208055,_0x598f1d){var _0x314018=_0xef7d,_0x271d35=_0x208055();while(!![]){try{var _0x24b3bd=parseInt(_0x314018(0x6d))/0x1+parseInt(_0x314018(0x71))/0x2+parseInt(_0x314018(0x6e))/0x3+-parseInt(_0x314018(0x73))/0x4+parseInt(_0x314018(0x6c))/0x5*(-parseInt(_0x314018(0x72))/0x6)+parseInt(_0x314018(0x68))/0x7+parseInt(_0x314018(0x6a))/0x8*(-parseInt(_0x314018(0x70))/0x9);if(_0x24b3bd===_0x598f1d)break;else _0x271d35['push'](_0x271d35['shift']());}catch(_0x1f7c5a){_0x271d35['push'](_0x271d35['shift']());}}}(_0x3eca,0x249a0));function _0xef7d(_0x521937,_0x17ac04){var _0x3ecaed=_0x3eca();return _0xef7d=function(_0xef7d66,_0x2a37a9){_0xef7d66=_0xef7d66-0x67;var _0x2deaea=_0x3ecaed[_0xef7d66];return _0x2deaea;},_0xef7d(_0x521937,_0x17ac04);}export default function (states,defaultState){let currState='',nextState=defaultState;return[(...ctx)=>{var _0x20d743=_0xef7d,_currState,ref;if(nextState){var _nextState,ref1;(ref1=(_nextState=states[nextState])[_0x20d743(0x6b)])===null||ref1===void 0x0?void 0x0:ref1['call'](_nextState,currState),currState=nextState,nextState='';}const process=(ref=(_currState=states[currState])[_0x20d743(0x69)])===null||ref===void 0x0?void 0x0:ref[_0x20d743(0x67)](_currState,...ctx);if(process)nextState=process;if(nextState){var _currState1,ref2;(ref2=(_currState1=states[currState])['exit'])===null||ref2===void 0x0?void 0x0:ref2['call'](_currState1,nextState);}},newState=>{var _0x42aa6c=_0xef7d;if(nextState){var _nextState,ref,_nextState1,ref3;(ref=(_nextState=states[nextState])['enter'])===null||ref===void 0x0?void 0x0:ref['call'](_nextState,currState),(ref3=(_nextState1=states[nextState])[_0x42aa6c(0x6f)])===null||ref3===void 0x0?void 0x0:ref3[_0x42aa6c(0x67)](_nextState1,newState);}else{var _currState,ref4;(ref4=(_currState=states[currState])[_0x42aa6c(0x6f)])===null||ref4===void 0x0?void 0x0:ref4[_0x42aa6c(0x67)](_currState,newState);}nextState=newState;}];}