(function(_0x5e710a,_0x1a2d27){const _0x5a60d1=_0x4ec8,_0x4bf5d3=_0x5e710a();while(!![]){try{const _0x16edbb=-parseInt(_0x5a60d1(0xec))/0x1*(parseInt(_0x5a60d1(0xd9))/0x2)+-parseInt(_0x5a60d1(0xe4))/0x3*(parseInt(_0x5a60d1(0xd5))/0x4)+-parseInt(_0x5a60d1(0xce))/0x5*(-parseInt(_0x5a60d1(0xe2))/0x6)+parseInt(_0x5a60d1(0xe9))/0x7+-parseInt(_0x5a60d1(0xdc))/0x8+-parseInt(_0x5a60d1(0xd8))/0x9+parseInt(_0x5a60d1(0xe7))/0xa*(parseInt(_0x5a60d1(0xdd))/0xb);if(_0x16edbb===_0x1a2d27)break;else _0x4bf5d3['push'](_0x4bf5d3['shift']());}catch(_0x2ff53d){_0x4bf5d3['push'](_0x4bf5d3['shift']());}}}(_0x3d5d,0xa544a));import{Vector3,distance,distanceSquared,cross}from'./vector3';function _0x3d5d(){const _0x5dff4d=['1100270IXkjCO','loot\x20spawn\x20~\x20~\x20~\x20loot\x20\x22tcs/ohs/starting_items\x22','3160633SAfRYl','getDynamicProperty','add','41929ZfxRyg','tcs_ohs:open_book','location','tcs_ohs_book_viewed','5qafyEo','multiply','addTag','tcs_ohs:turn_page_left','dimension','§aWelcome\x20to\x20the\x20100+\x20Structures\x20Add-On.\x20§6This\x20pack\x20was\x20originally\x20given\x20by\x20Panda\x27s!\x20If\x20you\x20download\x20it\x20from\x20other\x20source,\x20meaning\x20they\x20stole\x20the\x20files\x20from\x20Panda\x27s\x20Community.','getPlayerInLocation','4oYQbPO','getViewDirection','first_spawn','10584801kwRiGp','8GKcwcL','sourceEntity','triggerEvent','9101200WiWKmc','264GLVtSO','§l§aWelcome\x20to\x20100+\x20Structures\x20Add-On§f','tellraw','sendMessage','subtract','595050OmnxPj','tcs_ohs:turn_page_right','98847oAVgTS','hasTag','§aOfficial\x20Channel:\x20§5https://nekohub.uwu.ai/'];_0x3d5d=function(){return _0x5dff4d;};return _0x3d5d();}import*as _0x3f77a9 from'./game';world['afterEvents']['playerSpawn']['subscribe'](_0x365393=>{const _0x4e3aa6=_0x4ec8,{initialSpawn:_0x47fb4a,player:_0x3d46c4}=_0x365393;if(!_0x47fb4a)return;_0x3d46c4[_0x4e3aa6(0xea)](_0x4e3aa6(0xd7))===undefined&&(_0x3d46c4['setDynamicProperty'](_0x4e3aa6(0xd7),!![]),_0x3d46c4[_0x4e3aa6(0xe0)](_0x4e3aa6(0xd3)),_0x3d46c4[_0x4e3aa6(0xe0)](_0x4e3aa6(0xe6)));});function _0x4ec8(_0x16b3da,_0x14519c){const _0x3d5d03=_0x3d5d();return _0x4ec8=function(_0x4ec809,_0x15a044){_0x4ec809=_0x4ec809-0xcb;let _0x37e871=_0x3d5d03[_0x4ec809];return _0x37e871;},_0x4ec8(_0x16b3da,_0x14519c);}export async function onScriptEventReceive(_0x582aee){const _0xaf483=_0x4ec8,_0x81fe35=_0x582aee[_0xaf483(0xda)];if(_0x582aee['id']===_0xaf483(0xcb)){const _0x367052=(await _0x3f77a9[_0xaf483(0xd4)](_0x81fe35[_0xaf483(0xd2)],_0x81fe35[_0xaf483(0xcc)]))[0x0];!_0x367052[_0xaf483(0xe5)](_0xaf483(0xcd))&&(_0x367052[_0xaf483(0xd0)](_0xaf483(0xcd)),_0x3f77a9['runPlayerCommand'](_0x367052,_0xaf483(0xe8)),await _0x3f77a9[_0xaf483(0xdf)](_0x367052,'@s',_0xaf483(0xde)));return;}const _0x4d641e=(await _0x3f77a9['getPlayerInLocation'](_0x81fe35[_0xaf483(0xd2)],_0x81fe35[_0xaf483(0xcc)]))[0x0],_0x260f92=distance(_0x81fe35[_0xaf483(0xcc)],_0x4d641e['location']),_0x99c9d1=new Vector3(_0x4d641e[_0xaf483(0xd6)]()),_0x8cecff=_0x99c9d1[_0xaf483(0xcf)](_0x260f92)[_0xaf483(0xeb)](_0x4d641e['location']),_0x4bfe1e=cross(_0x81fe35['getViewDirection'](),{'x':0x0,'y':0x1,'z':0x0}),_0x3ce844=new Vector3(_0x81fe35[_0xaf483(0xcc)])[_0xaf483(0xeb)](_0x4bfe1e),_0x2dd175=new Vector3(_0x81fe35['location'])[_0xaf483(0xe1)](_0x4bfe1e);distanceSquared(_0x3ce844,_0x8cecff)<distanceSquared(_0x2dd175,_0x8cecff)?_0x81fe35[_0xaf483(0xdb)](_0xaf483(0xd1)):_0x81fe35['triggerEvent'](_0xaf483(0xe3));}