const _0x1c52a4=_0x34f1;(function(_0x54518d,_0x23ced6){const _0x56476d=_0x34f1,_0x4a07f6=_0x54518d();while(!![]){try{const _0xf025b6=parseInt(_0x56476d(0x1b3))/0x1*(-parseInt(_0x56476d(0x195))/0x2)+parseInt(_0x56476d(0x1a9))/0x3*(parseInt(_0x56476d(0x1b6))/0x4)+parseInt(_0x56476d(0x1a1))/0x5*(-parseInt(_0x56476d(0x155))/0x6)+parseInt(_0x56476d(0x154))/0x7*(parseInt(_0x56476d(0x1a5))/0x8)+-parseInt(_0x56476d(0x170))/0x9+parseInt(_0x56476d(0x199))/0xa+parseInt(_0x56476d(0x1a3))/0xb*(parseInt(_0x56476d(0x193))/0xc);if(_0xf025b6===_0x23ced6)break;else _0x4a07f6['push'](_0x4a07f6['shift']());}catch(_0x5add22){_0x4a07f6['push'](_0x4a07f6['shift']());}}}(_0x3e29,0xebfb9));let currentUuid='<?=\x20htmlspecialchars($_SESSION[\x27Create_Riddle_Uuid\x27]\x20??\x20\x27\x27)\x20?>',userId=_0x1c52a4(0x16b),currentQuestionId=_0x1c52a4(0x172),correctAnswersCount=parseInt(localStorage['getItem'](_0x1c52a4(0x1b1)))||0x0,incorrectAnswersCount=parseInt(localStorage['getItem']('incorrectAnswersCount'))||0x0;const savedName=localStorage[_0x1c52a4(0x1af)](_0x1c52a4(0x19f));function getRandomEmoji(_0x2c18b8){const _0x356dbc=_0x1c52a4,_0x42ef57=Math[_0x356dbc(0x183)](Math[_0x356dbc(0x15f)]()*_0x2c18b8[_0x356dbc(0x184)]);return _0x2c18b8[_0x42ef57];}function openApp(){const _0x14b9f4=_0x1c52a4;var _0x5b57d4=_0x14b9f4(0x185),_0x1645fd=_0x14b9f4(0x17a),_0x143f8c=new Date()[_0x14b9f4(0x177)](),_0x163fad=![];function _0x217ba4(){const _0x52d3f8=_0x14b9f4;var _0x386e40=new Date()[_0x52d3f8(0x177)]()-_0x143f8c;!_0x163fad&&_0x386e40<0x7d0&&(window[_0x52d3f8(0x1a7)][_0x52d3f8(0x171)]=_0x1645fd);}window['addEventListener'](_0x14b9f4(0x189),function(){_0x163fad=!![];}),document[_0x14b9f4(0x1a0)](_0x14b9f4(0x19e),function(){document['hidden']&&(_0x163fad=!![]);}),window[_0x14b9f4(0x1a7)][_0x14b9f4(0x167)](_0x5b57d4),setTimeout(_0x217ba4,0x5dc);}function updateEmojiDisplay(_0x2ea69f){const _0x369a2d=_0x1c52a4;if(_0x2ea69f>=0xa){const _0x2d8bdb=['😘','❤️','🎉','🔥'];emojiDisplay[_0x369a2d(0x19b)]=getRandomEmoji(_0x2d8bdb);}else{if(_0x2ea69f>=0x5){const _0x1221cd=['👏','🥰','👍'];emojiDisplay[_0x369a2d(0x19b)]=getRandomEmoji(_0x1221cd);}else{if(_0x2ea69f>=0x2){const _0x45e2bf=['🙂','😊','👌'];emojiDisplay[_0x369a2d(0x19b)]=getRandomEmoji(_0x45e2bf);}else{if(_0x2ea69f>=0x1){const _0x13ecba=['😌','🙌','🤗'];emojiDisplay[_0x369a2d(0x19b)]=getRandomEmoji(_0x13ecba);}}}}}function updateEmojiDisplay2(_0x58ebd3){const _0x6058b7=_0x1c52a4;if(_0x58ebd3>=0xa){const _0x2f446e=['🤡','💀','😭'];emojiDisplay['textContent']=getRandomEmoji(_0x2f446e);}else{if(_0x58ebd3>=0x5){const _0xe3c006=['💩','🙃','😓'];emojiDisplay[_0x6058b7(0x19b)]=getRandomEmoji(_0xe3c006);}else{if(_0x58ebd3>=0x2){const _0x5112eb=['👎','😑','😬'];emojiDisplay[_0x6058b7(0x19b)]=getRandomEmoji(_0x5112eb);}else{if(_0x58ebd3>=0x1){const _0x16e490=['🤨','😶','😕'];emojiDisplay[_0x6058b7(0x19b)]=getRandomEmoji(_0x16e490);}}}}}function saveChoice(_0x8f4c90,_0x4b6213,_0x8a13b7,_0x88c9c6){const _0x517c7d=_0x1c52a4;if(!_0x8f4c90||!_0x4b6213||!_0x8a13b7||!_0x88c9c6){console[_0x517c7d(0x15a)]('Missing\x20parameters\x20for\x20saveChoice:',{'createRiddleUuid':_0x8f4c90,'selectedAnswer':_0x4b6213,'savedName':_0x8a13b7,'UserId':_0x88c9c6});return;}fetch(_0x517c7d(0x196),{'method':_0x517c7d(0x19c),'headers':{'Content-Type':_0x517c7d(0x1b8)},'body':JSON['stringify']({'uuid':_0x8f4c90,'answer':_0x4b6213,'name':_0x8a13b7,'user_id':_0x88c9c6})})[_0x517c7d(0x192)](_0x389f3e=>_0x389f3e[_0x517c7d(0x182)]())[_0x517c7d(0x192)](_0x3bea61=>{const _0x607386=_0x517c7d;console[_0x607386(0x18f)]('Choice\x20saved:',_0x3bea61);})[_0x517c7d(0x18a)](_0x40a18f=>{const _0x3c7710=_0x517c7d;console[_0x3c7710(0x15a)]('Error\x20saving\x20choice:',_0x40a18f);});}function sendNotification(_0x107267,_0x24be52,_0x2f372b,_0x270c9c){const _0x22b0be=_0x1c52a4;_0x107267==='0'&&(_0x107267='123456');if(!_0x107267||!_0x24be52||!_0x2f372b||!_0x270c9c){console['log'](_0x22b0be(0x198),{'Token':_0x107267,'title':_0x24be52,'body':_0x2f372b,'UserId':_0x270c9c});return;}fetch(_0x22b0be(0x181),{'method':'POST','headers':{'Content-Type':_0x22b0be(0x1b8)},'body':JSON[_0x22b0be(0x1a6)]({'token':_0x107267,'title':_0x24be52,'body':_0x2f372b,'user_id':_0x270c9c})})[_0x22b0be(0x192)](_0x235bc3=>_0x235bc3['json']())[_0x22b0be(0x192)](_0x4eff59=>{const _0xa7e17=_0x22b0be;console[_0xa7e17(0x18f)](_0xa7e17(0x16a),_0x4eff59);})[_0x22b0be(0x18a)](_0x227fab=>{const _0x1de205=_0x22b0be;console[_0x1de205(0x15a)](_0x1de205(0x178),_0x227fab);});}const correctAnswer='<?=\x20htmlspecialchars($_SESSION[\x27Create_Riddle_Answer\x27]\x20??\x20\x27\x27)\x20?>',createRiddleUuid='<?=\x20htmlspecialchars($_SESSION[\x27Create_Riddle_Uuid\x27]\x20??\x20\x27\x27)\x20?>',createRiddleToken=_0x1c52a4(0x156),createRiddleUser_id=_0x1c52a4(0x16b),answers=document[_0x1c52a4(0x1a4)](_0x1c52a4(0x174)),notification=document[_0x1c52a4(0x175)](_0x1c52a4(0x188)),emojiDisplay=document[_0x1c52a4(0x15d)](_0x1c52a4(0x1b2));emojiDisplay[_0x1c52a4(0x17d)][_0x1c52a4(0x1ad)]=_0x1c52a4(0x1ab),emojiDisplay[_0x1c52a4(0x17d)][_0x1c52a4(0x19a)]=_0x1c52a4(0x163),emojiDisplay['style'][_0x1c52a4(0x166)]=_0x1c52a4(0x18d),emojiDisplay[_0x1c52a4(0x17d)]['left']=_0x1c52a4(0x18d),emojiDisplay['style'][_0x1c52a4(0x164)]='translate(-50%,\x20-50%)',emojiDisplay['style'][_0x1c52a4(0x186)]=_0x1c52a4(0x1b7),document[_0x1c52a4(0x1ae)][_0x1c52a4(0x16e)](emojiDisplay);let answeredUuids=JSON[_0x1c52a4(0x160)](localStorage['getItem'](_0x1c52a4(0x15e)))||[],alreadyAnswered=answeredUuids['includes'](createRiddleUuid),countdownInterval;if(!alreadyAnswered){const countdownTimer=document[_0x1c52a4(0x175)](_0x1c52a4(0x191));countdownTimer[_0x1c52a4(0x17d)][_0x1c52a4(0x186)]='flex';let timeLeft=0x6;countdownInterval=setInterval(()=>{const _0xac6ba0=_0x1c52a4;timeLeft--,countdownTimer[_0xac6ba0(0x19b)]=timeLeft,timeLeft<=0x0&&(clearInterval(countdownInterval),countdownTimer[_0xac6ba0(0x17d)][_0xac6ba0(0x186)]=_0xac6ba0(0x1b7),disableAnswers(),showTimeoutNotification());},0x3e8);}else{const countdownTimer=document[_0x1c52a4(0x175)](_0x1c52a4(0x191));countdownTimer[_0x1c52a4(0x17d)][_0x1c52a4(0x186)]=_0x1c52a4(0x1b7);}function disableAnswers(){const _0x2fa365=_0x1c52a4;answeredUuids['push'](createRiddleUuid),localStorage[_0x2fa365(0x1ac)](_0x2fa365(0x15e),JSON['stringify'](answeredUuids)),answers[_0x2fa365(0x173)](_0x42b1e7=>{const _0x23950a=_0x2fa365;_0x42b1e7[_0x23950a(0x17d)][_0x23950a(0x1aa)]=_0x23950a(0x1b7),_0x42b1e7[_0x23950a(0x17d)][_0x23950a(0x19d)]=_0x23950a(0x1a2);});}function showTimeoutNotification(){const _0x20737e=_0x1c52a4;notification[_0x20737e(0x18c)]['remove'](_0x20737e(0x161),'incorrect',_0x20737e(0x16d),'show','hide'),notification[_0x20737e(0x18c)][_0x20737e(0x194)]('notification',_0x20737e(0x1b5),_0x20737e(0x180)),notification[_0x20737e(0x19b)]=_0x20737e(0x1b0),setTimeout(()=>{const _0x3afd1a=_0x20737e;notification[_0x3afd1a(0x18c)][_0x3afd1a(0x168)]('show'),notification[_0x3afd1a(0x18c)][_0x3afd1a(0x194)](_0x3afd1a(0x17b));},0xbb8);}answers[_0x1c52a4(0x173)](_0x3d6735=>{const _0x3bb891=_0x1c52a4;_0x3d6735['addEventListener'](_0x3bb891(0x16c),()=>{const _0x151522=_0x3bb891;if(alreadyAnswered){notification[_0x151522(0x18c)][_0x151522(0x168)](_0x151522(0x161),_0x151522(0x1b5),_0x151522(0x16d),_0x151522(0x180),_0x151522(0x17b)),notification['classList'][_0x151522(0x194)](_0x151522(0x188),_0x151522(0x1b5),_0x151522(0x180)),notification[_0x151522(0x19b)]='Whoops,\x20you\x27ve\x20already\x20played\x20for\x20this\x20question!\x20😇',scrollToTop(),setTimeout(()=>{const _0x187eb7=_0x151522;notification['classList'][_0x187eb7(0x168)](_0x187eb7(0x180)),notification[_0x187eb7(0x18c)][_0x187eb7(0x194)](_0x187eb7(0x17b));},0x834);return;}alreadyAnswered=!![],answeredUuids[_0x151522(0x157)](createRiddleUuid),localStorage[_0x151522(0x1ac)]('answeredUuids',JSON[_0x151522(0x1a6)](answeredUuids));const _0x3ef4ee=_0x3d6735[_0x151522(0x17e)]('data-answer');answers[_0x151522(0x173)](_0x1ce238=>{const _0x3f9dcd=_0x151522;_0x1ce238['style'][_0x3f9dcd(0x1aa)]='none',_0x1ce238[_0x3f9dcd(0x17d)][_0x3f9dcd(0x19d)]=_0x3f9dcd(0x1a2);}),notification[_0x151522(0x18c)][_0x151522(0x168)](_0x151522(0x161),_0x151522(0x1b5),'anonymous',_0x151522(0x180),_0x151522(0x17b)),_0x3d6735[_0x151522(0x17d)][_0x151522(0x19d)]='none',clearInterval(countdownInterval);const _0xb4cd15=document[_0x151522(0x175)](_0x151522(0x191));_0xb4cd15[_0x151522(0x17d)]['display']=_0x151522(0x1b7),_0x3ef4ee===correctAnswer?(correctAnswersCount++,localStorage[_0x151522(0x1ac)]('correctAnswersCount',correctAnswersCount),_0x3d6735['classList'][_0x151522(0x194)](_0x151522(0x161)),notification[_0x151522(0x18c)][_0x151522(0x194)]('notification','correct',_0x151522(0x180)),notification['textContent']=_0x151522(0x1a8),updateEmojiDisplay(correctAnswersCount),sendNotification(createRiddleToken,_0x151522(0x179),'New\x20riddle\x20received',createRiddleUser_id),saveChoice(createRiddleUuid,_0x3ef4ee,savedName,createRiddleUser_id)):(incorrectAnswersCount++,localStorage['setItem'](_0x151522(0x16f),incorrectAnswersCount),_0x3d6735[_0x151522(0x18c)][_0x151522(0x194)](_0x151522(0x1b5)),notification[_0x151522(0x18c)][_0x151522(0x194)](_0x151522(0x188),_0x151522(0x1b5),_0x151522(0x180)),notification[_0x151522(0x19b)]=_0x151522(0x162),updateEmojiDisplay2(incorrectAnswersCount),sendNotification(createRiddleToken,_0x151522(0x179),_0x151522(0x169),createRiddleUser_id),saveChoice(createRiddleUuid,_0x3ef4ee,savedName,createRiddleUser_id)),emojiDisplay[_0x151522(0x17d)][_0x151522(0x186)]=_0x151522(0x165),setTimeout(()=>{const _0x324717=_0x151522;emojiDisplay[_0x324717(0x17d)][_0x324717(0x186)]=_0x324717(0x1b7);},0x834),setTimeout(()=>{const _0x618406=_0x151522;notification[_0x618406(0x18c)][_0x618406(0x168)](_0x618406(0x180)),notification['classList'][_0x618406(0x194)](_0x618406(0x17b));},0x834),scrollToTop(),answers[_0x151522(0x173)](_0x2bab83=>_0x2bab83[_0x151522(0x18c)][_0x151522(0x194)]('disabled'));});});function _0x34f1(_0x37734e,_0x2cd2ee){const _0x3e29a9=_0x3e29();return _0x34f1=function(_0x34f126,_0x3a7b0f){_0x34f126=_0x34f126-0x154;let _0x57e8d4=_0x3e29a9[_0x34f126];return _0x57e8d4;},_0x34f1(_0x37734e,_0x2cd2ee);}function goBack(){const _0x57304a=_0x1c52a4;sessionStorage['removeItem'](_0x57304a(0x15c)),sessionStorage['setItem'](_0x57304a(0x18e),_0x57304a(0x18b)),console[_0x57304a(0x18f)](_0x57304a(0x176),document[_0x57304a(0x15b)]),document[_0x57304a(0x15b)]?window[_0x57304a(0x1a7)][_0x57304a(0x171)]=document['referrer']:window['history'][_0x57304a(0x17c)]();}function scrollToTop(){const _0x3c4566=_0x1c52a4,_0x5b3d14=window[_0x3c4566(0x190)];let _0x33a05f=_0x5b3d14;const _0x40e849=setInterval(()=>{_0x33a05f-=0xa,window['scrollTo'](0x0,_0x33a05f),_0x33a05f<=0x0&&clearInterval(_0x40e849);},0xa);}const riddleCounterElement=document[_0x1c52a4(0x175)]('riddleCounter');let currentRiddles=Math['floor'](Math[_0x1c52a4(0x15f)]()*(0xc1c-0xc8+0x1))+0xc8;function _0x3e29(){const _0x4ddf06=['82445FxVAwf','2px\x20solid\x20rgba(211,\x20211,\x20211,\x200.5)','354057RFJwsw','querySelectorAll','1172440HcLpmL','stringify','location','True\x20🎉','3395667wDrEqN','pointerEvents','80px','setItem','fontSize','body','getItem','Time\x27s\x20up!\x20⏳','correctAnswersCount','div','122883XmPDyy','min','incorrect','4MfuUPg','none','application/json','7ZDXMSw','138SrSBmv','<?=\x20htmlspecialchars($_SESSION[\x27Create_Riddle_Token_id\x27]\x20??\x20\x27\x27)\x20?>','push','opacity','+100000\x20riddles\x20💌\x20created!','error','referrer','isReturning','createElement','answeredUuids','random','parse','correct','False\x20💩','absolute','transform','block','top','replace','remove','New\x20riddle\x20received','Notification\x20sent:','<?=\x20htmlspecialchars($_SESSION[\x27Create_Riddle_User_Id\x27]\x20??\x20\x27\x27)\x20?>','click','anonymous','appendChild','incorrectAnswersCount','7856226VWmFSk','href','<?=\x20htmlspecialchars($_SESSION[\x27Create_Riddle_Id\x27]\x20??\x20\x27\x27)\x20?>','forEach','.answer','getElementById','Referrer:','getTime','Error\x20sending\x20notification:','Riddle','https://apps.apple.com/app/id123456789','hide','back','style','getAttribute','innerText','show','/Ozr/sendNotification.php','json','floor','length','riddle://','display','DOMContentLoaded','notification','blur','catch','Answer','classList','50%','lastPage','log','scrollY','countdownTimer','then','900gehddN','add','30QGVMLn','/Ozr/saveChoice.php','\x20riddles\x20💌\x20created!','Missing\x20parameters\x20for\x20sendNotification:','3695220WLPjqk','position','textContent','POST','border','visibilitychange','userName','addEventListener'];_0x3e29=function(){return _0x4ddf06;};return _0x3e29();}function updateRiddleLabel(){const _0x38fcdd=_0x1c52a4;riddleCounterElement[_0x38fcdd(0x17d)]['opacity']=0x0,setTimeout(()=>{const _0x14b026=_0x38fcdd;riddleCounterElement['innerText']=currentRiddles+_0x14b026(0x197),riddleCounterElement[_0x14b026(0x17d)][_0x14b026(0x158)]=0x1;},0x12c);}function startRiddleCounter(){updateRiddleLabel();const _0x4f0fa5=setInterval(()=>{const _0x52db52=_0x34f1;if(currentRiddles>=0x186a0){clearInterval(_0x4f0fa5),riddleCounterElement[_0x52db52(0x17f)]=_0x52db52(0x159);return;}const _0x39c0cc=Math[_0x52db52(0x183)](Math[_0x52db52(0x15f)]()*0x64);currentRiddles=Math[_0x52db52(0x1b4)](currentRiddles+_0x39c0cc,0x186a0),updateRiddleLabel();},0x2710);}document['addEventListener'](_0x1c52a4(0x187),startRiddleCounter);