function _0xe768(_0x3de72e,_0x58579a){const _0xf694ba=_0x23b0();return _0xe768=function(_0x45287f,_0x39a67d){_0x45287f=_0x45287f-(-0xc89*-0x2+-0x5*-0x169+-0x1fba);let _0x1d86f8=_0xf694ba[_0x45287f];return _0x1d86f8;},_0xe768(_0x3de72e,_0x58579a);}(function(_0x365db7,_0x1e5085){const _0x2f4134={_0x51b026:0x351,_0xaefea8:0x360,_0x3c720f:0x36b,_0x5e5370:0x366,_0x45ed79:0x35b,_0x11ca0a:0x353,_0x11e4c7:0x358,_0xe00227:0x369,_0x11c8cb:0x365,_0x50306b:0x363,_0x2d5d16:0x368,_0x3805e7:0x362,_0x21891b:0x360,_0x555b12:0x316,_0x1c91c6:0x30c,_0x236c12:0x31c,_0xf2ddec:0x30b,_0x466201:0x32b,_0x1fbd35:0x32c,_0x32ed1e:0x330,_0x4f5afe:0x357,_0x22263:0x35a,_0x1dd450:0x34f,_0x50df39:0x324,_0x53611b:0x317,_0x52b1e5:0x31e,_0x361e49:0x360,_0x225344:0x359,_0x4ba64a:0x34c,_0x55d637:0x354,_0x476867:0x34b},_0x2a8670={_0x3a2afa:0x3cb},_0x553040={_0x208932:0x2ae},_0x965514=_0x365db7();function _0x5df64e(_0x25e603,_0x4df4df,_0xa173a6,_0x37ec62){return _0xe768(_0x25e603-_0x553040._0x208932,_0xa173a6);}function _0x538d22(_0x5217d5,_0x4c8578,_0x550b5e,_0x41bf81){return _0xe768(_0x4c8578- -_0x2a8670._0x3a2afa,_0x41bf81);}while(!![]){try{const _0x79c97d=parseInt(_0x538d22(-_0x2f4134._0x51b026,-_0x2f4134._0xaefea8,-_0x2f4134._0x3c720f,-0x35e))/(-0x10cd+-0x1dc6+-0x2*-0x174a)+-parseInt(_0x538d22(-_0x2f4134._0x5e5370,-_0x2f4134._0x45ed79,-_0x2f4134._0x11ca0a,-_0x2f4134._0x11e4c7))/(0x84c+-0x1513+0xcc9)+parseInt(_0x538d22(-_0x2f4134._0xe00227,-_0x2f4134._0x11c8cb,-_0x2f4134._0x50306b,-_0x2f4134._0x45ed79))/(0x1*0x22f+-0xa9a+0x86e)+parseInt(_0x538d22(-_0x2f4134._0x2d5d16,-_0x2f4134._0x3805e7,-_0x2f4134._0x21891b,-0x35c))/(0xae3*0x1+0x1*-0x2005+-0xa93*-0x2)+-parseInt(_0x5df64e(_0x2f4134._0x555b12,_0x2f4134._0x1c91c6,_0x2f4134._0x236c12,_0x2f4134._0xf2ddec))/(0x5e*-0x62+-0xc5*-0x4+-0x1*-0x20ed)*(parseInt(_0x5df64e(_0x2f4134._0x466201,0x328,_0x2f4134._0x1fbd35,_0x2f4134._0x32ed1e))/(-0x4d*-0x1f+0x341*-0xc+-0x5*-0x5f3))+-parseInt(_0x538d22(-_0x2f4134._0xaefea8,-_0x2f4134._0x4f5afe,-_0x2f4134._0x22263,-_0x2f4134._0x1dd450))/(0x628+-0xb8b+0x9a*0x9)*(-parseInt(_0x5df64e(_0x2f4134._0x50df39,_0x2f4134._0x53611b,0x321,_0x2f4134._0x52b1e5))/(-0x1*-0xbbf+-0x5e*0x2f+-0x1*-0x58b))+-parseInt(_0x538d22(-_0x2f4134._0x361e49,-_0x2f4134._0x5e5370,-_0x2f4134._0x11e4c7,-_0x2f4134._0x225344))/(0x11a4+0x21e9+-0x3384)*(parseInt(_0x538d22(-_0x2f4134._0x4ba64a,-_0x2f4134._0x55d637,-0x349,-_0x2f4134._0x476867))/(0x122*0x1d+-0x1da1*-0x1+-0x3e71));if(_0x79c97d===_0x1e5085)break;else _0x965514['push'](_0x965514['shift']());}catch(_0x94459d){_0x965514['push'](_0x965514['shift']());}}}(_0x23b0,0xb7052+-0xddbcc+0x1f*0x510d));const _0x3bdf77=(function(){let _0x3f68b3=!![];return function(_0x325c2c,_0x269064){const _0x18c7eb={_0x1ecdf1:0x7c,_0x74baa1:0x7d,_0xf10a6c:0x72,_0x154ad3:0x64},_0xaa1b71={_0x41a826:0xf0},_0x4ebfee=_0x3f68b3?function(){function _0x4e5db0(_0x7906f,_0x1f9601,_0x1feac0,_0xd36bf7){return _0xe768(_0x1feac0- -_0xaa1b71._0x41a826,_0x7906f);}if(_0x269064){const _0xbfdbca=_0x269064[_0x4e5db0(-_0x18c7eb._0x1ecdf1,-_0x18c7eb._0x74baa1,-_0x18c7eb._0xf10a6c,-_0x18c7eb._0x154ad3)](_0x325c2c,arguments);return _0x269064=null,_0xbfdbca;}}:function(){};return _0x3f68b3=![],_0x4ebfee;};}()),_0xde5e92=_0x3bdf77(this,function(){const _0x484642={_0xd50234:0x2cd,_0x497b7e:0x2dd,_0x928c6a:0x2d3,_0x18f8ca:0x2cb,_0x22ae3a:0x2c7,_0x4b337f:0x2cc,_0x132c9d:0xd5,_0x2b2c2c:0xc1,_0x408652:0xca,_0x5d3a73:0x2dc,_0x206830:0x2d4,_0x4b22fd:0xe1,_0x4bccf6:0xdc,_0x3f8562:0xd8,_0x2911a2:0xc8,_0x1d3ffa:0xd7,_0x208c67:0xd5},_0x2a7333={_0x398c23:0x142},_0x5b5497={_0x6437ac:0x262};function _0x471abd(_0x1dbd8e,_0x91a24b,_0x1f348d,_0x466d46){return _0xe768(_0x466d46-_0x5b5497._0x6437ac,_0x1dbd8e);}function _0x3e825b(_0x5e8478,_0x356be7,_0x15caea,_0x263d14){return _0xe768(_0x263d14- -_0x2a7333._0x398c23,_0x356be7);}return _0xde5e92[_0x471abd(0x2d9,_0x484642._0xd50234,_0x484642._0x497b7e,_0x484642._0x928c6a)]()[_0x471abd(0x2cb,_0x484642._0x18f8ca,_0x484642._0x22ae3a,_0x484642._0x4b337f)](_0x3e825b(-_0x484642._0x132c9d,-_0x484642._0x2b2c2c,-0xc6,-_0x484642._0x408652)+'+$')[_0x471abd(_0x484642._0x5d3a73,0x2c7,_0x484642._0x206830,_0x484642._0x928c6a)]()['constructo'+'r'](_0xde5e92)[_0x3e825b(-_0x484642._0x4b22fd,-0xcb,-_0x484642._0x4bccf6,-_0x484642._0x3f8562)](_0x3e825b(-_0x484642._0x2911a2,-_0x484642._0x1d3ffa,-_0x484642._0x208c67,-0xca)+'+$');});_0xde5e92();import{select,fork,put,take,race,getContext}from'redux-saga/effects';import{getRecentRoomsApi}from'../../../api/core';import{taskErrorSaga}from'../../error';import{TOURS,UI_PANEL,getUITour,toggleUIPanel,tourFinish,tourStart}from'../../ui-desktop';import{PREFERENCES,getPreferencesTourComplete,preferenceUpdateTask}from'../../preferences';import{chatInit}from'../../chat';import{setPairingRoom}from'../../room';import{addIdentityInvitedDevice,getCreateUsernameStatus,getHasIdentityUsername}from'../../identity/identity.reducer';import{IDENTITY_USERNAME_SAVE_STATUS}from'../../identity';import{ENV_CONTEXT_KEY}from'../../constants';export function*updateTourCompletePreferences({tour:_0x99cae8,value:_0x4fe3f4}){const _0x74f442=yield select(getPreferencesTourComplete);yield preferenceUpdateTask(PREFERENCES['TOUR_COMPL'+'ETE'],{..._0x74f442,[_0x99cae8]:_0x4fe3f4});}export function*onboardingTourSaga(){const _0x187e54={_0x3a6dbd:0x13e,_0xb49a81:0x14f,_0x9c32d7:0x142,_0x5071cb:0x143,_0x5ea231:0x156,_0x416b19:0x148,_0x559691:0x1be,_0x85568d:0x1c7,_0x438d7d:0x1d4},_0xf7033b={_0x1f4c1e:0xdb},_0xc4314={_0x2f2f9d:0x233};function _0x5b6849(_0x13a4b2,_0x321f66,_0x10f4f3,_0x4154e8){return _0xe768(_0x321f66- -_0xc4314._0x2f2f9d,_0x13a4b2);}const _0x4878b3=TOURS[_0x12bb9b(_0x187e54._0x3a6dbd,_0x187e54._0xb49a81,_0x187e54._0x9c32d7,_0x187e54._0x5071cb)];function _0x12bb9b(_0x2ee501,_0x56fba6,_0x4c682f,_0x58f2f8){return _0xe768(_0x4c682f-_0xf7033b._0x1f4c1e,_0x2ee501);}try{const {rooms:_0x494965}=yield*getRecentRoomsApi({'limit':0x1});if(_0x494965[_0x12bb9b(_0x187e54._0x5ea231,0x14e,_0x187e54._0x416b19,0x14e)]>0x18eb*0x1+0x2571+-0x3e5c){yield updateTourCompletePreferences({'tour':_0x4878b3,'value':!![]});return;}yield put(tourStart(_0x4878b3));const [_0x31fc8d]=yield race([take(tourFinish),take(setPairingRoom),take(chatInit),take(addIdentityInvitedDevice)]);if(_0x31fc8d)return;const _0x3cdfb0=yield select(getUITour);_0x3cdfb0===_0x4878b3&&(yield put(tourFinish(_0x4878b3)));}catch(_0x12858c){yield taskErrorSaga(_0x5b6849(-_0x187e54._0x559691,-_0x187e54._0x85568d,-_0x187e54._0x438d7d,-_0x187e54._0x438d7d)+'TourSaga',_0x12858c);}}export function*addFriendsTourSaga(){const _0x3f3e01={_0x57d57c:0x20e,_0x5727d2:0x202,_0x4456d0:0x213,_0x3b8efc:0x1f3,_0x364e78:0x1f6,_0x344941:0x1fb,_0x219ba0:0x1fb,_0x4b0178:0x206},_0x9aa75b={_0x2c22f8:0x27c},_0x2c82e9={_0x2bb91a:0x106},_0x49aef0=TOURS[_0x524521(-0x201,-_0x3f3e01._0x57d57c,-0x204,-_0x3f3e01._0x5727d2)+'S'];function _0x1d9293(_0x102116,_0x31fb3e,_0xf09f9a,_0x120ac8){return _0xe768(_0xf09f9a- -_0x2c82e9._0x2bb91a,_0x102116);}try{const {rooms:_0x44087e}=yield*getRecentRoomsApi({'limit':0x1});if(_0x44087e[_0x524521(-0x20b,-0x20f,-_0x3f3e01._0x4456d0,-0x207)]>0x15cb+0x1*-0xd8a+-0x1*0x841){yield updateTourCompletePreferences({'tour':_0x49aef0,'value':!![]});return;}}catch(_0x45e42e){yield taskErrorSaga(_0x524521(-_0x3f3e01._0x3b8efc,-0x1fc,-_0x3f3e01._0x364e78,-_0x3f3e01._0x3b8efc)+_0x524521(-_0x3f3e01._0x344941,-_0x3f3e01._0x219ba0,-_0x3f3e01._0x4b0178,-0x204),_0x45e42e);}function _0x524521(_0x270332,_0x10706e,_0x20b1c0,_0x229392){return _0xe768(_0x10706e- -_0x9aa75b._0x2c22f8,_0x229392);}yield take(chatInit),yield put(tourStart(_0x49aef0));}function _0x23b0(){const _0x511721=['804405lRrFGf','onboarding','length','ADD_FRIEND','\x20preferenc','425428mNKnvM','toString','registerEn','RESERVING','7BrhOit','key','7740504GuYgQA','112770AkRhKx','(((.+)+)+)','match','r\x20complete','payload','update\x20tou','5645058uAOWqr','apply','abled','addFriends','TourSaga','864InQCji','2752740VCDoKv','ONBOARDING','5TfdWoE','124936bgYCMf','search'];_0x23b0=function(){return _0x511721;};return _0x23b0();}export function*profileTourSaga(){const _0x2dbfc8={_0x1014d2:0x339,_0x3450c3:0x34c,_0x118cf5:0x345,_0x1b024e:0x87,_0xfdee2d:0x79,_0x2e7934:0x72,_0x51f7ff:0x34f,_0x4bff5f:0x351},_0x58f0d7={_0x1884cb:0x2d2};function _0x1299e8(_0x52369f,_0x412625,_0x3c5053,_0x3c8628){return _0xe768(_0x3c8628-_0x58f0d7._0x1884cb,_0x3c5053);}const _0x43215e=TOURS['PROFILE'],{username:_0x5bba32}=yield getContext(ENV_CONTEXT_KEY);yield take(_0x189dba=>toggleUIPanel[_0x32e0dd(0x81,0x8f,0x80,0x72)](_0x189dba)&&_0x189dba[_0x32e0dd(0x81,0x7c,0x82,0x7e)][_0x1299e8(0x34c,0x339,0x34b,0x347)]===UI_PANEL['PROFILE']);function _0x32e0dd(_0x97d0b4,_0x2e689c,_0x31e483,_0x401f99){return _0xe768(_0x31e483-0x7,_0x2e689c);}const _0x2110e8=yield select(getHasIdentityUsername),_0x54622f=yield select(getCreateUsernameStatus);!_0x2110e8&&_0x54622f!==IDENTITY_USERNAME_SAVE_STATUS[_0x1299e8(_0x2dbfc8._0x1014d2,0x33c,_0x2dbfc8._0x3450c3,_0x2dbfc8._0x118cf5)]&&_0x5bba32?.[_0x32e0dd(0x81,_0x2dbfc8._0x1b024e,_0x2dbfc8._0xfdee2d,_0x2dbfc8._0x2e7934)+_0x1299e8(_0x2dbfc8._0x51f7ff,_0x2dbfc8._0x4bff5f,0x350,_0x2dbfc8._0x4bff5f)]&&(yield put(tourStart(_0x43215e)));}export function*tourFinishListenerSaga(){const _0xdf9fc6={_0x34c540:0x25a,_0x4faa0f:0x249,_0x34b4e1:0x24c,_0x175317:0x24e,_0x2d5033:0x243,_0x43aa2f:0x248,_0xdf666:0x24d,_0x15a36f:0x23c,_0x30303c:0x251},_0x3e2427={_0x46d04b:0x1d4},_0xd56639={_0x2b9d30:0x1};function _0x33d5d7(_0x48dfd2,_0x265eb8,_0x3ef57a,_0x4ee322){return _0xe768(_0x48dfd2- -_0xd56639._0x2b9d30,_0x4ee322);}function _0x3ad4fb(_0x3783b4,_0x5843ad,_0x2aee5b,_0x8ad5a3){return _0xe768(_0x3783b4-_0x3e2427._0x46d04b,_0x2aee5b);}while(!![]){const {payload:_0x125a2e}=yield take(tourFinish);try{yield updateTourCompletePreferences({'tour':_0x125a2e,'value':!![]});}catch(_0x384e7c){yield taskErrorSaga(_0x3ad4fb(0x250,_0xdf9fc6._0x34c540,_0xdf9fc6._0x4faa0f,_0xdf9fc6._0x34b4e1)+_0x3ad4fb(_0xdf9fc6._0x175317,_0xdf9fc6._0x2d5033,_0xdf9fc6._0x43aa2f,_0xdf9fc6._0xdf666)+_0x3ad4fb(_0xdf9fc6._0x2d5033,_0xdf9fc6._0x15a36f,0x23b,_0xdf9fc6._0x30303c)+'es',_0x384e7c);}}}export function*toursSaga(){const _0x170c6c={_0x3f0071:0x13d,_0x5ed80b:0x129,_0x10da7a:0x12d,_0x1fe82c:0x136,_0x3b4a09:0x130},_0x435a15={_0x2858e9:0x36d};function _0x768200(_0x5af78b,_0x4eb2b7,_0x5f5516,_0x36fe0c){return _0xe768(_0x5f5516- -_0x435a15._0x2858e9,_0x36fe0c);}const _0x2ce967=yield select(getPreferencesTourComplete);let _0x20b75c;!_0x2ce967?.[TOURS[_0x5305c8(-_0x170c6c._0x3f0071,-_0x170c6c._0x5ed80b,-0x13b,-0x137)]]&&(_0x20b75c=!![],yield fork(onboardingTourSaga));!_0x2ce967?.[TOURS[_0x5305c8(-_0x170c6c._0x10da7a,-0x132,-_0x170c6c._0x1fe82c,-_0x170c6c._0x3b4a09)+'S']]&&(_0x20b75c=!![],yield fork(addFriendsTourSaga));!_0x2ce967?.[TOURS['PROFILE']]&&(_0x20b75c=!![],yield fork(profileTourSaga));function _0x5305c8(_0x333f9c,_0x4f69b7,_0x5ce521,_0x2d2c29){return _0xe768(_0x2d2c29- -0x19e,_0x4f69b7);}_0x20b75c&&(yield tourFinishListenerSaga());}