icoa-cli 2.19.126 → 2.19.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(b,j){const a4=a0j,k=b();while(!![]){try{const p=parseInt(a4(0x280))/(-0x7c6+0x883*-0x1+0x104a)*(-parseInt(a4(0x212))/(-0x9b*-0x19+0x5*-0x6e2+-0x1349*-0x1))+-parseInt(a4(0x27e))/(-0x4f*0x65+-0x1f98*-0x1+-0x6a)+-parseInt(a4(0x23e))/(0x1013+0xa95+-0x1aa4)+parseInt(a4(0x1dd))/(0xf4*0x22+-0x196a+-0x6f9)*(-parseInt(a4(0x1e8))/(-0x36e+0x4b*-0x23+-0xb*-0x13f))+-parseInt(a4(0x2a2))/(0x151*0xb+0xa*-0x293+0xb4a*0x1)+-parseInt(a4(0x28b))/(0xc61*0x3+0x16f*0x15+-0x1*0x4336)*(-parseInt(a4(0x245))/(-0x3*0x3ce+0x1365*-0x1+0x149*0x18))+parseInt(a4(0x237))/(0x70*-0x11+0xbb2+0x21c*-0x2)*(parseInt(a4(0x27d))/(0x12d*-0x6+-0x2*0x91f+0x1957));if(p===j)break;else k['push'](k['shift']());}catch(q){k['push'](k['shift']());}}}(a0b,0x1dceb*0xb+-0x3*-0x7c8a3+0x22f5*-0xda));import a0p from'chalk';import{createChatSession as a0q}from'../lib/gemini.js';import{addTokenUsage as a0v}from'../lib/budget.js';import{getConfig as a0w}from'../lib/config.js';import{logCommand as a0x}from'../lib/logger.js';import{printMarkdown as a0z,printError as a0A}from'../lib/ui.js';import{t as a0B}from'../lib/i18n.js';const i=b=>new Promise(j=>setTimeout(j,b));let s=!(-0x2*0x595+0xc4d+-0x5*0x3a),g=null,r=-0x2178+0x1ed*-0x3+0x11*0x24f,y=!(-0x1*-0x1558+0x15ee+0xd1*-0x35);function a0b(){const ag=['yxbWBgLJyxrPB24VANnVBG','BgvUz3rO','zw5JB2rPBMC','icdILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','iIbSB29RCYbSAwTLigfUie1dusbSzxr0zxiSig5VDcbHigzSywCU','BNvKz2vtAg93BG','y2f0zwDVCNK','icaGicaGicaGicfLy2HVigfxtNzzwhqZttj4AK1hmwXyEKPMwvDRmfKZuM1Mut09ihWGyMfZzty0ic1K','y29UDgLUDwu','ywK0y3rMrxHPDenTze5LEhq','y3rMngfP','ywK0y3rMrxHPDenTzejHy2S','g1SXqrTBmKS','ywK0y3rMtw9KzwW','ywK0y3rMuMv2zwfStg9JA05VDgu','iokvKokvKokvKa','icbdDxjYzw50igfUC3DLCJOG','icbbstrdveyGC2vJDgLVBIbJB21WBgv0zsdIGjqG','ywK0y3rMv3jHCff1B3rHqG','ywK0y3rMv3jHCe5LEhruAxrSzq','ywK0y3rMq21Ku2HLBgXmAw5L','DMLHigfPngn0zIbJAgf0','ywK0y3rMq21KsgLUDeXPBMu','iokaLcb0ExbLia','icbgBgfNigzVCM1HDdOG','icbnB2rLBdOGr29Vz2XLieDLBw1HidqGka','icaGiokgKIa','rMXHzYbMB3jTyxq6igLJB2f7lI4UFq','ywK0y3rMv291BgrfyxjU','ywK0y3rM','ywK0y3rMv3jHCff1B3rHC1rPDgXL','rNvSBcbXDwvZDgLVBJOGia','ywK0y3rMrxHPDa','ig5VDcbMB3vUzcbPBIbZDgf0zs4Gvhj5oIbLEgfTiheG','cIaG','ywrK','icdILjtILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','C3vIBwL0idXMBgfNpG','sunpqxT5B3vYx2zSywD9','ywK0y3rMtg9JA2vKvxnL','icdILiZILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','Cu51Bq','q3j5ChrVz3jHCgH5','icaGicaGicaGicaGica','icaGicaGigHPBNqGyYaGia','ywn0Aw9U','ieLdt0f7lI4UFq','icdIMQaGww91CIbbstrdveyGDg9Rzw4GyNvKz2v0igLZigv4Agf1C3rLzc4','icaKia','icaGigHPBNqGyq','icaGigHPBNqGyW','icaGicaGigHPBNqGysaGia','ue9tva','ywK0y3rMrxHPDe5LEhruAxrSzq','icaGicaGia','Bwf0y2G','nJGZmZvesxHwzfi','y3LHBG','DgLTzw91Da','icaGicaGicaGicaGieXLyxzLignOyxqSihjLDhvYBIb0BYbLEgfT','ywK0y3rMsgLUDem','y29TBwfUza','ywK0y3rMu2fTCgXL','C3vIBwL0ieLdt0f7Ew91CL9MBgfNFq','iwvJAg8GyvDoDI4UlIb8igjHC2u2ncaTza','lZuWmda','ywK0y3rMvgL0Bgu','ntu4CLDWr2jR','oIbhB29NBguGr2vTBweGncaOz2vTBweTnc0ZmwiTAxqP','Dg9mB3DLCKnHC2u','icaG4OAsia','zxHHBsbHBNn3zxiG','Dg9Rzw5ZvxnLza','ywK0y3rMtg9JA2vKvgHLBG','D2HPDgu','icaGia','z3jHEq','icaI','CMvK','lNr4DcbPBNnPzguGDgHLignVBNrLC3rHBNqNCYbZyw5KyM94iokaLcbWyxrOigLZihjLBgf0AxzLihrVihrOzsbZyw5KyM94j3mGl2HVBwuVy29TCgv0AxrVCIb3B3jRAw5NigrPCMvJDg9YEsWGCMvHy2HHyMXLigzYB20Gyw55icfZAgvSBcaVicfWExrOB24ZigLUDM9JyxrPB24PoGO','icaGice8C2HLBgWGy21KpIaGica','zgvZy3jPChrPB24','z2vTAw5Ptw9KzwW','icaGigHPBNqGyG','C3rYAw5NAwz5','zMLUza','iwvJAg8GyvDoDLLyDdnnmNHQtuCXBfH6sMzzv2SWwtnsBwzrpt0GFcbIyxnLnJqGlwq','iMHVDYbKBYbjigrLy3j5ChqGquvtluncqYbPBIbqExrOB24/iG','AwnVyxT3m2XJmg1LxZjFywK0y3rMFq','Dgv4Da','icbHAtrJDgyGAxmGyxzHAwXHyMXLig9UifeZmEkaKZm4icHbstrdveyGC2vJDgLVBIKU','iokaLca','ywK0y3rMrw5Ku2vZC2LVBG','ixnOzwXS','C3rKB3v0','icaGicHhCMfKAw5NigHHChbLBNmGyxqGzxHHBsbZDwjTAxqG4OcuihLVDsbJyw5UB3qGChjLDMLLDYbJB3jYzwn0BMvZCYbKDxjPBMCGDgHLigv4yw0Ukq','AgfZ','E25VuhjVz30','ihDPBgWGB3bLBIbr','icbzB3uGy2fUihn0AwXSoIa','ywK0y3rMv3jHCe5VuhjVzW','yw5ZD2vYCW','icdILRGG','icbezxrLy3rLzcbMBgfNiokaLcb0CMvHDgLUzYbHCZOG','oIbhB29NBguGr2vTBweGncaO','ifn1yM1PDcb5B3vYigzSywCGzM9YihrOAxmGCxvLC3rPB24','z3jLzw4','ywK0y3rMsgLUDefvC2vZ','C3rHCNrZv2L0Aa','mtCXnZuZoeT2DKPquW','D3jPDgu','icbzB3uGyxjLig9Uife','ihrVA2vUCYbSzwz0lG','cGPbvfrbq0HfrcbeqvrbicHHBhnVihnHDMvKihrVignOywXSzw5NzxmVCq','ywK0y3rMv3jHCfrPDgXL','ywK0y3rMv3jHCff1B3rHqW','AgLUDhm','DxrMltG','C2XPy2u','ihb0CW','ywK0y3rMv3jHCe5LEhrcB2r5','ywK0y3rMv3jVBMDgBgfN','icaGigHPBNqGysaVigiGlYbJica','icaGie5VihbYzs13CML0DgvUigHPBNqGyxqGDgHPCYb0AwvYigzVCIb0AgLZihf1zxn0Aw9UlG','icdILzdILzdILzaG','lIbuCNKGywDHAw4GAw5ZAwrLihrOAxmGy2HHDc4','EwvSBg93','icaGicbsDw4GuhL0Ag9UigLUihnOzwXS','ywK0y3rMq29YCMvJDezSywC','icbszxn1Bwu6ia','icdINjmGuq','ywK0y3rMrgvJB2rLza','ywK0y3rMsgLUDe5LEhrb','rMXHzYbMB3jTyxq6icaGieLdt0f7lI4UFq','icaOC3vIBwL0igfNywLUihrVignOyw5NzsK','x2XHC3rr','ywK0y3rMsgLUDenvC2vZ','lIbkDw1WihrOzxjLigzPCNn0oG','icdILii','CxvLC3rPB25Z','sgLKzgvUie1LC3nHz2u','icaGieP1C3qGDhLWzsbMCMvLBhKGDg8Gy2HHDcb3AxrOihrOzsbbssb0zwfTBwf0zs4','CMvWzwf0','lNr4DcaOAw5ZAwrLihrOzsbZyw5KyM94ksbYyxrOzxiGDgHHBIbHC2TPBMCGDgHLignVBNrLC3rHBNqGDg8GCgfZDguGDgHLihDOB2XLigjSB2iGyMfJAY4klsblzwvWihjLC3bVBNnLCYbJB25JAxnLigfUzcbWCMfJDgLJywWUifrOAxmGy29UDgvZDgfUDcbOyxmGBgLTAxrLzcb0Aw1LlG','ywK0y3rMsgLUDfrLy2HUAxf1zq','ywK0y3rMu3vIBwL0q21K','mJu5nJmXmg5wueH3AW','ywK0y3rMv3jHCeXPBMuXsgvHza','yxr0ywnOzwreyxrH','ywK0y3rMv3jHCeXPBMuYsgvHza','ywK0y3rMrMXHz0HPBNq','ywK0y3rMrM91BMrgBgfN','CMvWBgfJzq','mJi1nda2men1y1f3vG','C3vIBwL0qxr0zw1WDgvK','icaGicaGigHPBNqGyIaGia','DhjPBq','ywK0y3rMuMv2zwfSvgL0Bgu','lI4U','zxHPDa','ntG2ogrnAMvQqq','yw5ZD2vYx3n1yM1PDhrLza','ywK0y3rMtgv2zwXZ','icaGifbYzxzPB3vZoIa','ywK0y3rMv2vSy29Tzun0yq','vg9Rzw5Z','ywK0y3rMsw50zxjJzxb0zwq','icaGideUia','ywK0y3rMt3jdAgf0','Dg9Rzw5mAw1PDa','ywK0y3rMvg9Rzw5Z','icdWN5kHie9Uy2uGEw91igHHDMuGsunpqxSUlI59lcbZDwjTAxqGAxqGD2L0AdOG','Aw50zxjHy3rPB25Z','icdILiiG','ywK0y3rMoIa','ihrVignVBNrPBNvL','icaGihn1yM1PDca8zMXHzZ4Gica','ywK0y3rMuMv2zwfSu2vLrMXHzW','icboB3rLoIa1mcuGB2yGC2vJDgLVBIbbssbIDwrNzxqGDxnLzc4','icdILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','jsbVzIbZzwn0Aw9Uiefjigj1zgDLDcb1C2vKiokaLcbVBMX5ih4','ywK0y3rMsgLUDencB2r5','icaGicaGicbPy29HE3CZBgmWBwvFmL9HAtrJDgz9','CxvPDa','y2f0y2G','AgLUDcbI','CxvLC3rPB24','CM91BMq','icaOCMvZDw1PBMCG4OcuihbYAw9YignOyxqGAxmGBM90ihjLBwvTyMvYzwqSigj1Dcb0B2TLBNmGywXYzwfKEsb1C2vKihn0yxKGzgvKDwn0zwqP','ywK0y3rMuMv2zwfSvgHLBLn1yM1PDa','icbB','C3vIBwL0ieLdt0f7lI4UFq','ywK0y3rMrxHPDe5LEhrtDwi','quKGzxjYB3i6ia','yMfJAW','ywLvC2fNzq','zxHHBsbXia','lI4VBgLIl2v4yw0TC3rHDguUANm','icaGigv4AxqGicaGicaGicaGica','C3vIBwL0igLJB2f7DZnSyZbTzv8Yx2fPngn0zN0','icbozxH0oIa','icaGicaGicaGicbuzwnOBMLXDwuGAgLUDcaOChjLlxDYAxr0zw4P','icdILzdILzdILzaGquK0q1rgiokaLcbr','yM9Sza','icaGicaGicaGicbbigDLBNrSzsbUDwrNzsaOChjLlxDYAxr0zw4P','C29Tzq','BwvZC2fNzq','icaGidiUia','Bg9N','icaGicaGicaHzwnOBYbHv052wvH0m00YEgPnrZfSwhPkzLLxAZbzm1jTzLe9psb8igjHC2u2ncaTza','Dg9vChbLCKnHC2u','ihrVig1VDMuGB24','icbzB3uGy2fUihn0AwXSihn1yM1PDcbHigzSywCGzgLYzwn0BhK6ia','ywK0y3rMv3jHCff1B3rHquHPBNq','icaGicbJDgy0ywK','C3vIBwL0ia','mJC1B09vsxfI','ntm5odC2nerxqNnJuW','ywK0y3rMq29TBwfUzhm','mvDUuM9Qyq','ywK0y3rMv3jHCff1B3rHqq','C3bSAxq','igfNywLUihrVignOyw5NzsWGB3iG','ywK0y3rMv3jHCff1B3rHqKHPBNq','ywK0y3rMv3jHCff1B3rHq0HPBNq','ywK0y3rMt3jdAgf0rxHHBxbSzq','icaGicaGicaGicblzxKGyNjLywT0AhjVDwDOicHWCMuTD3jPDhrLBIK','BM93','ywK0y3rMrxHPDe5LEhrcB2r5','Dg9ju09tDhjPBMC','ntm4nhv1uMfzua','z2vTBweTnc0ZmwiTAxq','Ahr0Chm6lY9WCMfJDgLJzs5Py29HmJaYnI5HDs9HCgKVAwnVys9Kzw1Vlxn0yxrZ','imk3ia','C2vUze1LC3nHz2u','ywK0y3rMsgLUDee','ywK0y3rMv3jHCeXPBMuXqM9KEq','icaGigv4Axq','quK0q1rgihnLy3rPB24','icaGicfWExrOB24Zic4UlG','icbiB3CGDg8GD29YAYb0AgLZihf1zxn0Aw9U','icaGifjLywXSEsbZDhvJAZ8Gvhj5oIa','ywK0y3rMrgvJB2rL','ywK0y3rMsgLUDfbYAw5JAxbSzq','DgvZDa','CgfKrw5K','ChvZAa','ihbVAw50CYK6cG','icaGicaODhLWzsbPDcbYAwDODcbOzxjLigLUihrOAxmGy2HHDcdIGjqGBM90igfZigeGC2HLBgWGy29TBwfUzcK','AgLUDcbJ','q29UDgvUDc1uExbL','ywK0y3rMv3jHCff1B3rHrM9VDgvY','sgLUDca','mta1otK0mJHYC1bvz3a','BMfTzq','y2XLyxi','yw5ZD2vYx2nOyw5Nzwq','BNvTyMvY'];a0b=function(){return ag;};return a0b();}const h=-0x5*0x13a1+0x1c2e+0xa79f;let u=null;export function isChatActive(){return s;}function d(){const a5=a0j,b=u?h:-0x160+0x17+0x14d1,j=r,k=Math['min'](Math[a5(0x260)](j/b*(0x10b4+-0x1a*-0xe5+-0x2792)),0x4a*0x24+-0x62b+-0x3d9),p=Math[a5(0x260)](k/(-0x2d*0x5d+0x1*-0x16a7+0x2764)*(-0x28*-0x7a+0x2631+-0x392d)),q=0x2*0x37+-0x1d05*0x1+0x1cab-p,v=k>0x20*-0xb0+0x241*-0x6+0x23d6?a0p[a5(0x1f3)]:k>0x1*-0x2645+0xf*0x3e+0x25*0xf1?a0p[a5(0x223)]:a0p[a5(0x20f)],w=u?a5(0x293):a5(0x24a);console['log'](a0p[a5(0x1f1)]('\x20\x20'+w+':\x20')+v('█'[a5(0x233)](p))+a0p['gray']('░'['repeat'](q))+a0p[a5(0x1f1)]('\x20'+j+'/'+b+'\x20('+k+'%)'));}export async function handleChatMessage(p){const a6=a0j;if(!g)return'exit';if(a0x(a6(0x253)+p),u)return m(p);const q=p[a6(0x241)]()[a6(0x1ea)]()[a6(0x1dc)](/^hint\s+([abc])$/);if(q)return function(z){const a7=a6,A=a0B('a'===z?a7(0x290):'b'===z?'ai4ctfHintB':a7(0x1e1)),B=a0B('a'===z?'ai4ctfHintABody':'b'===z?'ai4ctfHintBBody':a7(0x25a)),C=a7(0x2a1)+z[a7(0x277)](),D='a'===z?a0p[a7(0x20f)]:'b'===z?a0p['yellow']:a0p[a7(0x1f3)];console[a7(0x275)](),console['log'](D['bold'](a7(0x20b)+C+'\x20\x20')+a0p[a7(0x1f1)](A)),console[a7(0x275)]();for(const E of B['split']('\x0a'))''===E?console['log']():console[a7(0x275)](a0p[a7(0x1ef)](a7(0x1f0)+E));console['log'](),'a'===z?(console[a7(0x275)](a0p[a7(0x1f1)](a7(0x1f0)+a0B(a7(0x229))+'\x20')+a0p[a7(0x1de)]('hint\x20b')),console['log']()):'b'===z&&(console[a7(0x275)](a0p[a7(0x1f1)](a7(0x1f0)+a0B('ai4ctfHintNextB')+'\x20')+a0p[a7(0x1de)]('hint\x20c')),console[a7(0x275)]());}(q[-0xf97*-0x2+0x25*-0x10b+0xd*0x92]),a6(0x2af);const v=p[a6(0x1dc)](/^submit\s+(.+)/i);if(v){let z=v[-0x2637+-0x1*-0xb6d+0x1acb][a6(0x241)]();if(/^submit\s+/i[a6(0x299)](z)&&(z=z[a6(0x23d)](/^submit\s+/i,'')['trim']()),z=z[a6(0x23d)](/^["'`]+|["'`]+$/g,'')[a6(0x241)](),a6(0x1fd)===z){console[a6(0x275)](),console[a6(0x275)](a0p[a6(0x20f)][a6(0x270)]('\x20\x20════════════════════════════════════')),console['log'](a0p[a6(0x20f)][a6(0x270)]('\x20\x20'+a0B(a6(0x225)))),console[a6(0x275)](a0p['green']['bold']('\x20\x20════════════════════════════════════')),console['log'](),console['log'](a0p[a6(0x1ef)]('\x20\x20'+a0B(a6(0x228)))),console[a6(0x275)](a0p['gray']('\x20\x20'+a0B(a6(0x2c3)))),console[a6(0x275)](),d(),s=!(0x1*0x7cf+0x1f98+-0x1*0x2766),g=null,fetch('https://practice.icoa2026.au/api/icoa/demo-stats',{'method':a6(0x1d9),'headers':{'Content-Type':a6(0x2a7)},'body':JSON[a6(0x1f9)]({'type':a6(0x2c4),'solved':!(0x1*-0xa59+-0x8b*-0x21+-0x792*0x1),'tokensUsed':r,'timestamp':new Date()[a6(0x28a)]()}),'signal':AbortSignal[a6(0x1df)](0x1950+0x1dc0+0xc*-0x2f6)})['catch'](()=>{}),await i(-0xd5e*0x1+0x5db*0x5+-0xa0d*0x1),console[a6(0x275)](),console[a6(0x275)](a0p[a6(0x1de)](a6(0x258))),console[a6(0x275)](a0p[a6(0x270)][a6(0x1ef)]('\x20\x20'+a0B(a6(0x217)))),console[a6(0x275)](a0p['cyan']('\x20\x20─────────────────────────────────────────────')),console[a6(0x275)]();const A=a0B(a6(0x238)),B=a0B(a6(0x291));console[a6(0x275)](a0p[a6(0x1ef)](a6(0x24c)+A+'\x20')+a0p[a6(0x1f1)](B[a6(0x282)]('\x0a')[-0x1*-0x2492+-0x218c+-0x306]||''));for(const F of B['split']('\x0a')[a6(0x21b)](0xcfb*-0x3+0x202+0x24f0))F[a6(0x241)]()&&console['log'](a0p[a6(0x1f1)](a6(0x1db)+F[a6(0x23d)](/\{thinking\}/g,'thinking')));console[a6(0x275)](),console[a6(0x275)](a0p[a6(0x1ef)](a6(0x274)+a0B(a6(0x23a))+'\x20')+a0p[a6(0x1f1)](a0B('ai4ctfWrapLine2Body'))),console['log'](),console['log'](a0p[a6(0x1de)](a6(0x2ae))),console[a6(0x275)](),await i(-0x4af+0x2565+-0x18e6),console[a6(0x275)](a0p[a6(0x1de)](a6(0x258))),console[a6(0x275)](a0p[a6(0x270)][a6(0x1ef)]('\x20\x20'+a0B(a6(0x2c5)))),console[a6(0x275)](a0p[a6(0x1de)](a6(0x258))),console['log'](),console['log'](a0p[a6(0x223)](a6(0x1d8))+a0p[a6(0x1ef)](a0B(a6(0x281))['padEnd'](0xada+0xefd*-0x1+-0x7*-0x9b))+a0p['gray'](a0B(a6(0x27a)))),console['log'](a0p[a6(0x223)](a6(0x240))+a0p[a6(0x1ef)](a0B(a6(0x2b9))['padEnd'](-0xe04+-0x1364+-0x10c1*-0x2))+a0p[a6(0x1f1)](a0B(a6(0x284)))),console[a6(0x275)](a0p[a6(0x223)](a6(0x1d1))+a0p[a6(0x1ef)](a0B(a6(0x218))[a6(0x29a)](0x44b+-0x4d6+0xa5))+a0p[a6(0x1f1)](a0B(a6(0x285)))),console[a6(0x275)]();for(const G of a0B(a6(0x2a0))[a6(0x282)]('\x0a'))console[a6(0x275)](a0p['gray'](a6(0x1f0)+G));console[a6(0x275)](),await i(0x1aeb+0x1620+-0x293b),console[a6(0x275)](a0p[a6(0x1de)](a6(0x258))),console[a6(0x275)](a0p[a6(0x270)][a6(0x1ef)]('\x20\x20'+a0B(a6(0x2ba))+'\x20')+a0p['red']['bold']('ctf4ai')+a0p['white'](a6(0x200)+a0B('ai4ctfWrapNextSub'))),console[a6(0x275)](a0p['cyan'](a6(0x258))),console[a6(0x275)]();const C=a0B(a6(0x21d)),D=a0B(a6(0x209)),E=C['split']('\x0a');if(E[0x1*-0xc22+-0x1*-0x1956+-0xd34]){const [H,I]=E[0x20d5+0x195e+-0x2f*0x13d][a6(0x282)](a6(0x206));console[a6(0x275)](a0p[a6(0x1ef)](a6(0x1f0)+(H||''))+a0p[a6(0x270)][a6(0x1ef)](D)+a0p[a6(0x1ef)](I||''));}for(const J of E[a6(0x21b)](0x25*0x61+-0x1458+0x654))J[a6(0x241)]()&&console['log'](a0p[a6(0x1ef)](a6(0x1f0)+J));return console[a6(0x275)](),console[a6(0x275)](a0p[a6(0x1f1)](a6(0x1f0)+a0B('ai4ctfWrapTypeCtf4ai')+'\x20')+a0p[a6(0x270)][a6(0x1f3)](a6(0x2b1))),console['log'](),a6(0x244);}return console['log'](),console[a6(0x275)](a0p[a6(0x1f3)]('\x20\x20'+a0B(a6(0x21e)))),console[a6(0x275)](a0p['gray']('\x20\x20'+a0B(a6(0x23b)))),console['log'](),a6(0x2af);}if(p[a6(0x211)]('!')){const K=p[a6(0x21b)](0x1*0x103+-0x352*0xb+-0x1*-0x2384)[a6(0x241)]();if(!K)return'continue';try{const L={};L[a6(0x2a9)]=a6(0x21a),L[a6(0x1df)]=0x2710;const {execSync:M}=await import('node:child_process'),N=M(K,L)[a6(0x241)]();console['log'](),console[a6(0x275)](a0p[a6(0x1f1)](a6(0x1d5))+a0p[a6(0x1ef)](K)),console[a6(0x275)](a0p[a6(0x1ef)]('\x20\x20'+N[a6(0x282)]('\x0a')['join']('\x0a\x20\x20'))),console['log'](),console[a6(0x275)](a0p[a6(0x1f1)]('\x20\x20'+a0B(a6(0x23c)))),console[a6(0x275)]();}catch(O){console[a6(0x275)](),console['log'](a0p[a6(0x1f3)]('\x20\x20Error:\x20'+(O['message']?.[a6(0x282)]('\x0a')[-0x8bd*-0x4+0x1662+-0x3956]||'Command\x20failed'))),console['log']();}return a6(0x2af);}const w={};w['Content-Type']=a6(0x2a7);if(a6(0x244)===p||'back'===p||a6(0x25c)===p||'menu'===p)return s=!(0x123e+-0x83a+-0xa03),g=null,fetch(a6(0x28d),{'method':'POST','headers':w,'body':JSON[a6(0x1f9)]({'type':a6(0x2c4),'tokensUsed':r,'timestamp':new Date()[a6(0x28a)]()}),'signal':AbortSignal[a6(0x1df)](-0x6*-0x659+-0xdf1+-0x49d)})[a6(0x25d)](()=>{}),console['log'](),console[a6(0x275)](a0p[a6(0x1f1)](a6(0x2aa))),console[a6(0x275)](a0p['white']('\x20\x20'+a0B('ai4ctfReport'))),console[a6(0x275)](a0p['gray']('\x20\x20'+a0B(a6(0x24f))+':\x20'+r+a6(0x1e6))),console['log'](a0p[a6(0x1f1)]('\x20\x20'+a0B(a6(0x2b4))+a6(0x1e9))),console['log'](a0p[a6(0x1f1)](a6(0x2aa))),console[a6(0x275)](),console['log'](a0p[a6(0x1de)](a6(0x258))),console[a6(0x275)](a0p[a6(0x1ef)]('\x20\x20'+a0B(a6(0x1da))+'\x20')+a0p[a6(0x270)]['red'](a6(0x2b1))+a0p[a6(0x1ef)](a6(0x200)+a0B(a6(0x265)))),console[a6(0x275)](a0p[a6(0x1f1)]('\x20\x20'+a0B(a6(0x289)))),console[a6(0x275)](a0p[a6(0x1de)](a6(0x258))),console[a6(0x275)](),console[a6(0x275)](a0p['bold']['red'](a6(0x27b))+a0p['gray']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a0B(a6(0x2b0)))),console[a6(0x275)](a0p[a6(0x1ef)]('\x20\x20\x20\x20\x20back')+a0p[a6(0x1f1)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a0B(a6(0x2b2)))),console[a6(0x275)](),a6(0x244);const x={};x[a6(0x29f)]=a6(0x2a7);if(!y&&r>=-0x20*0xaa+-0x1*0x3e8+0x2cb0)return y=!(-0x17f8+0xc*0x133+0x994),fetch(a6(0x28d),{'method':'POST','headers':x,'body':JSON[a6(0x1f9)]({'type':a6(0x2c4),'solved':!(0x2f*0x19+0x2309+-0x7*0x5a9),'tokensUsed':r,'timestamp':new Date()[a6(0x28a)]()}),'signal':AbortSignal[a6(0x1df)](-0x1*0x107d+-0xd7*-0x8+0x1*0x1d4d)})[a6(0x25d)](()=>{}),console[a6(0x275)](),console[a6(0x275)](a0p[a6(0x223)]('\x20\x20'+a0B(a6(0x24e)))),d(),(function(){const a8=a6;console[a8(0x275)](),console[a8(0x275)](a0p[a8(0x223)](a8(0x258))),console[a8(0x275)](a0p[a8(0x270)][a8(0x223)]('\x20\x20'+a0B(a8(0x242)))),console[a8(0x275)](a0p[a8(0x223)](a8(0x258))),console[a8(0x275)]();for(const P of a0B('ai4ctfRevealBody')[a8(0x282)]('\x0a'))''===P?console[a8(0x275)]():console[a8(0x275)](a0p[a8(0x1ef)](a8(0x1f0)+P));console['log'](),console[a8(0x275)](a0p[a8(0x1de)](a8(0x276))),console[a8(0x275)](),console[a8(0x275)](a0p[a8(0x1ef)](a8(0x1f0)+a0B(a8(0x256)))),console[a8(0x275)](),console[a8(0x275)](a0p['green'](a8(0x25b))),console[a8(0x275)](),console[a8(0x275)](a0p['white'](a8(0x1f0)+a0B(a8(0x262)))),console[a8(0x275)](),console[a8(0x275)](a0p[a8(0x1de)]('\x20\x20\x20\x20\x20\x20\x20\x20submit\x20icoa{w3lc0me_2_ai4ctf}')),console[a8(0x275)](),console[a8(0x275)](a0p[a8(0x1f1)](a8(0x1f0)+a0B(a8(0x2b5)))),console['log']();}()),'continue';if(y)return console['log'](),console[a6(0x275)](a0p['yellow']('\x20\x20'+a0B('ai4ctfLockedTitle'))),console['log'](a0p['gray']('\x20\x20'+a0B(a6(0x2ce))+'\x20')+a0p[a6(0x1de)](a6(0x1fb))),console[a6(0x275)](a0p[a6(0x1f1)]('\x20\x20'+a0B(a6(0x1ee))+'\x20')+a0p[a6(0x1de)](a6(0x26c))),console[a6(0x275)](),a6(0x2af);console[a6(0x275)](a0p['gray']('\x20\x20'+a0B('ai4ctfThinking')));try{const P=await g[a6(0x28f)](p);process['stdout'][a6(0x213)]('\x1b[1A\x1b[2K'),r+=P[a6(0x1ed)],a0v(P['tokensUsed']),console[a6(0x275)](),a0z(P['text']),d(),console[a6(0x275)]();}catch(Q){process['stdout'][a6(0x213)](a6(0x2b3)),a0A('AI\x20error:\x20'+Q[a6(0x273)]),console[a6(0x275)]();}return'continue';}function a0j(a,b){a=a-(0x1862+-0x1824+0x191);const c=a0b();let d=c[a];if(a0j['XLHjEo']===undefined){var e=function(i){const j='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let l='',m='';for(let n=-0x7*0x547+0x41b*0x5+0x106a,o,p,q=-0x18f0+0x1573+0x37d;p=i['charAt'](q++);~p&&(o=n%(0x22*-0x4a+0x4f*0x2d+0x1*-0x40b)?o*(0x14b*-0x3+-0x24d7+0x17*0x1c8)+p:p,n++%(-0x68e+-0x433+-0x1*-0xac5))?l+=String['fromCharCode'](0x68*-0x1a+-0x1c51+-0x2c*-0xe8&o>>(-(-0x111+0x4a*0x24+-0x955)*n&-0x169c+-0x2d*0x5d+0x1*0x26fb)):0xb*-0x18+0x1310+-0x1208){p=j['indexOf'](p);}for(let r=-0x21ce+0x2*0x37+-0x10b0*-0x2,s=l['length'];r<s;r++){m+='%'+('00'+l['charCodeAt'](r)['toString'](-0x15c5+0x20*-0xb0+0xe5*0x31))['slice'](-(0x1*-0x18db+0x61*-0x65+0x1f91*0x2));}return decodeURIComponent(m);};a0j['IRsXgg']=e,a0j['VrzcWb']={},a0j['XLHjEo']=!![];}const f=c[0x133b+-0xf97*-0x2+0x1d*-0x1bd],g=a+f,h=a0j['VrzcWb'][g];return!h?(d=a0j['IRsXgg'](d),a0j['VrzcWb'][g]=d):d=h,d;}const f=new Set();async function m(k){const a9=a0j;if(!u||!g)return a9(0x244);const p=k[a9(0x241)](),q=p[a9(0x1ea)](),v=(Date[a9(0x288)]()-u['enteredAt'])/(-0x49d*0x46+-0x11351*0x1+0x3409f);if(!u['nudgeShown']&&!u[a9(0x23f)]&&u['hintsUsed']['size']>=-0x1f2d+-0x1*-0xed9+0x3*0x572&&v>=-0x1*-0x1d9b+0x5de+-0x4*0x8dd&&(u[a9(0x2ac)]=!(-0xe34+0x15a1+-0x76d),console['log'](),console[a9(0x275)](a0p['yellow'](a9(0x250))+a0p[a9(0x270)]['yellow'](a9(0x1e4))),console[a9(0x275)](a0p[a9(0x1f1)](a9(0x29d))),console[a9(0x275)]()),/^ICOA\{[^}]+\}$/i[a9(0x299)](p))return console[a9(0x275)](),console[a9(0x275)](a0p['gray'](a9(0x20c))+a0p[a9(0x1ef)](a9(0x27c)+p)),m(a9(0x27c)+p);const x=q[a9(0x1dc)](/^hint\s+([abc])$/);if(x){const A=x[0x254c+-0x26cb*-0x1+0x260b*-0x2][a9(0x277)](),B=u[a9(0x25f)][a9(0x219)],C=B?.[A],D='A'===A?a0p['green']:'B'===A?a0p[a9(0x223)]:a0p[a9(0x1f3)];if(console['log'](),console[a9(0x275)](D[a9(0x270)]('\x20\x20▸\x20Hint\x20'+A)),console[a9(0x275)](),C){for(const E of String(C)[a9(0x282)]('\x0a'))console['log'](a0p['white'](a9(0x1f0)+E));}else console[a9(0x275)](a0p['gray'](a9(0x220)));return console['log'](),'A'===A?console[a9(0x275)](a0p[a9(0x1f1)]('\x20\x20\x20\x20Stuck?\x20Try:\x20')+a0p[a9(0x1de)](a9(0x25e))):'B'===A?console[a9(0x275)](a0p['gray'](a9(0x296))+a0p[a9(0x1de)](a9(0x29e))):'C'===A&&console[a9(0x275)](a0p[a9(0x1f1)]('\x20\x20\x20\x20'+a0B('ai4ctfHintNextC')+'\x20')+a0p[a9(0x270)][a9(0x20f)](a9(0x1e4))),console[a9(0x275)](),a9(0x2af);}const z=p['match'](/^submit\s+(.+)/i);if(z){let F=z[0x1249*-0x1+-0x206d+0x32b7][a9(0x241)]();if(/^submit\s+/i[a9(0x299)](F)&&(F=F[a9(0x23d)](/^submit\s+/i,'')[a9(0x241)]()),F=F[a9(0x23d)](/^["'`]+|["'`]+$/g,'')[a9(0x241)](),/^[A-Da-d]$/['test'](F))return console[a9(0x275)](),console[a9(0x275)](a0p[a9(0x223)](a9(0x1f2)+F+a9(0x2ab))),console[a9(0x275)](a0p['gray'](a9(0x2bf))+a0p['green'](a9(0x2cd))+a0p['gray'](a9(0x222))),console[a9(0x275)](),a9(0x2af);const {getExamState:G,saveExamState:H}=await import(a9(0x26a)),I=G();if(!I)return'exit';if(!I[a9(0x230)][a9(0x1fa)](L=>L[a9(0x2a6)]===u[a9(0x2d0)]))return console[a9(0x275)](a0p[a9(0x1f3)]('\x20\x20Q'+u['qNum']+'\x20not\x20found\x20in\x20state.')),'continue';const J=I[a9(0x20a)][u[a9(0x2d0)]];I[a9(0x251)]||(I[a9(0x251)]=[]),I[a9(0x251)][a9(0x29b)]({'ts':new Date()[a9(0x28a)](),'q':u[a9(0x2d0)],'type':J?a9(0x2a5):a9(0x246),'input':F,'result':a9(0x2bc)}),I[a9(0x20a)][u['qNum']]=F;const K=u[a9(0x2d0)]+(-0x1*-0x397+-0x1af5+-0x1*-0x175f);return I[a9(0x22c)]=K<=0x2*0x5a4+-0xc06+-0x26*-0x6?K:u[a9(0x2d0)],H(I),console[a9(0x275)](),J?(console[a9(0x275)](a0p[a9(0x20f)](a9(0x227)+u['qNum']+'\x20answer\x20updated:\x20')+a0p[a9(0x223)](F)),console[a9(0x275)](a0p[a9(0x1f1)](a9(0x248)+J))):console[a9(0x275)](a0p['green'][a9(0x270)]('\x20\x20✓\x20Answer\x20for\x20Q'+u[a9(0x2d0)]+'\x20recorded:\x20'+F)),console[a9(0x275)](a0p[a9(0x1f1)](a9(0x204))),console[a9(0x275)](),console['log'](a0p[a9(0x1f1)]('\x20\x20')+a0p[a9(0x1ef)](a9(0x264))+a0p['gray'](a9(0x283))+a0p[a9(0x1ef)](a9(0x244))+a0p[a9(0x1f1)](a9(0x278))),K<=-0x3*0x1f3+0x21e+0x14b*0x3?console[a9(0x275)](a0p[a9(0x1f1)]('\x20\x20After\x20exit:\x20')+a0p[a9(0x1de)](a9(0x2c4))+a0p['gray'](a9(0x207)+K)):console['log'](a0p['gray']('\x20\x20After\x20exit:\x20AI4CTF\x20section\x20complete.\x20Next:\x20')+a0p[a9(0x1f3)](a9(0x2b1))+a0p[a9(0x1f1)]('\x20on\x20Q39')),console['log'](),'continue';}if(k[a9(0x211)]('!')){const L=k['slice'](-0xe*0x95+-0x9b1+0x11d8)['trim']();if(!L)return a9(0x2af);try{const M={};M[a9(0x2a9)]=a9(0x21a),M['timeout']=0x2710;const {execSync:N}=await import('node:child_process'),O=N(L,M)[a9(0x241)]();console[a9(0x275)](),console[a9(0x275)](a0p['gray']('\x20\x20$\x20')+a0p[a9(0x1ef)](L)),console[a9(0x275)](a0p[a9(0x1ef)]('\x20\x20'+O['split']('\x0a')['join'](a9(0x2c9)))),console[a9(0x275)]();}catch(P){console['log'](),console['log'](a0p[a9(0x1f3)]('\x20\x20Error:\x20'+(P['message']?.[a9(0x282)]('\x0a')[-0xc86+0x1d6b+-0x10e5]||'Command\x20failed'))),console[a9(0x275)]();}return a9(0x2af);}if('exit'===q||a9(0x267)===q||a9(0x25c)===q){const Q=u[a9(0x2d0)],{getExamState:R}=await import(a9(0x26a)),S=R(),T=S&&null!=S[a9(0x20a)][Q],U=S?.[a9(0x22c)]||Q;return s=!(0x26f2+-0x46b+-0x9*0x3d6),g=null,u=null,f[a9(0x2a4)](),console['log'](),console['log'](a0p[a9(0x1f1)]('\x20\x20AI4CTF\x20chat\x20ended\x20for\x20Q'+Q+'.')),T&&U>Q&&U<=0xc5*0x31+-0x1fc0+0x1*-0x5cf?console[a9(0x275)](a0p[a9(0x1ef)](a9(0x26d))+a0p[a9(0x270)][a9(0x20f)]('Q'+U)+a0p[a9(0x1f1)](a9(0x2be))+a0p[a9(0x1de)]('ai4ctf')+a0p[a9(0x1f1)](a9(0x254))):T&&Q>=-0x26ff+-0x1409+0x3b2e?console[a9(0x275)](a0p[a9(0x1ef)](a9(0x2b8))+a0p[a9(0x270)]['red'](a9(0x2b1))+a0p['gray']('\x20for\x20Q39')):console[a9(0x275)](a0p[a9(0x1f1)](a9(0x226))+a0p[a9(0x1ef)](a9(0x269)+Q)+a0p[a9(0x1f1)]('\x20\x20·\x20\x20Re-enter:\x20')+a0p[a9(0x1ef)](a9(0x2c4))),console[a9(0x275)](),a9(0x244);}if(y)return console[a9(0x275)](),console[a9(0x275)](a0p['yellow']('\x20\x20AI\x20budget\x20exhausted\x20for\x20AI4CTF\x20section.')),console[a9(0x275)](a0p[a9(0x1f1)]('\x20\x20Still\x20available:\x20')+a0p['white'](a9(0x2cc))+a0p['gray'](a9(0x28e))+a0p['white'](a9(0x202))+a0p[a9(0x1f1)](a9(0x28e))+a0p['white'](a9(0x244))),console[a9(0x275)](),a9(0x2af);if(r>=h)return y=!(-0x187b+-0x1aa+-0x1*-0x1a25),console['log'](),console[a9(0x275)](a0p[a9(0x1f3)][a9(0x270)]('\x20\x20⚠\x20AI4CTF\x20token\x20budget\x20exhausted\x20(25,000\x20used).')),console[a9(0x275)](a0p[a9(0x1f1)](a9(0x208))+a0p['white'](a9(0x2cc))+a0p[a9(0x1f1)](a9(0x28e))+a0p[a9(0x1ef)]('!shell')+a0p[a9(0x1f1)]('\x20·\x20')+a0p['white']('exit')),console[a9(0x275)](),a9(0x2af);console[a9(0x275)](a0p[a9(0x1f1)]('\x20\x20Thinking...'));try{const V=await g['sendMessage'](k);process[a9(0x203)][a9(0x213)](a9(0x2b3)),r+=V[a9(0x1ed)];const {getRealExamState:W,saveExamState:X}=await import(a9(0x26a)),Y=W(),Z={};Z[a9(0x2c4)]=0x0,Z['ctf4ai']=0x0,(Y&&(Y[a9(0x268)]||(Y[a9(0x268)]=Z),Y[a9(0x268)][a9(0x2c4)]=r,X(Y)),console[a9(0x275)](),a0z(V[a9(0x1fe)]),d(),function(a0,a1,a2){const aa=a9,a3=a0/a1*(0x17b2+-0x15*-0x4e+-0x76d*0x4);a3>=-0xb4*0x2c+0xdf8+-0x1157*-0x1&&!a2[aa(0x205)]('95')?(console[aa(0x275)](a0p[aa(0x1f3)][aa(0x270)]('\x20\x20⚠\x20'+Math[aa(0x260)](a3)+aa(0x259)+(a1-a0)+aa(0x215))),a2[aa(0x2ca)]('95')):a3>=-0x34*0x3e+-0x1*-0x385+-0x3*-0x321&&!a2['has']('80')?(console[aa(0x275)](a0p[aa(0x223)]('\x20\x20⚠\x2080%\x20of\x20section\x20AI\x20budget\x20used.')),a2[aa(0x2ca)]('80')):a3>=0x1*0x1e10+-0x1*0xa25+-0x13b9&&!a2['has']('50')&&(console[aa(0x275)](a0p[aa(0x1f1)](aa(0x257))),a2[aa(0x2ca)]('50'));}(r,h,f),console['log']());}catch(a0){process[a9(0x203)][a9(0x213)](a9(0x2b3)),a0A(a9(0x266)+a0[a9(0x273)]),console[a9(0x275)]();}return'continue';}export function registerAi4ctfCommand(b){const ab=a0j;b[ab(0x1e2)](ab(0x2c4))['description']('Chat\x20with\x20your\x20AI\x20teammate')[ab(0x1d2)](async()=>{const ac=ab;a0x(ac(0x2c4));const {getRealExamState:j}=await import(ac(0x26a)),k=j(),p=k?.[ac(0x230)][ac(0x272)](x=>x['number']>=0x6*-0x11c+0x2*0xc0c+-0x1151&&x[ac(0x2a6)]<=0x33d*-0x5+0x57*0x33+-0xfe);if(k&&p){const x=k[ac(0x22c)]||0xc7*-0x2e+-0x20f9+0x44bc;if(x<0x1523+0x1*-0x9+-0x29*0x83||x>0x2514+0x3b9*0x4+-0x4b6*0xb)return console['log'](),console['log'](a0p['yellow'](ac(0x1ff))),console[ac(0x275)](a0p['gray'](ac(0x214)+x+ac(0x22e))),console[ac(0x275)](a0p[ac(0x1f1)](ac(0x2c1))+a0p[ac(0x270)]['cyan']('exam\x20q\x2031')),void console['log']();const z=k['questions'][ac(0x1fa)](A=>A['number']===x);return z?void await async function(A,B){const ad=ac,{getRealExamState:C,refetchQuestionDataIfStale:D,materializeAttachedData:E}=await import(ad(0x26a));await D();const F=C();if(!F)return!(0x4*0x464+-0xb6b*-0x1+0xe7d*-0x2);const G=F[ad(0x230)][ad(0x1fa)](J=>J[ad(0x2a6)]===A);G&&(B=G),E(A,B?.[ad(0x239)]);const H=F[ad(0x268)]?.[ad(0x2c4)]??0x1ed6+0x9*0x2cd+-0x380b;if(H>=h)return console['log'](),console[ad(0x275)](a0p[ad(0x223)](ad(0x1d4))),console[ad(0x275)](a0p['gray'](ad(0x279))+a0p[ad(0x1ef)](ad(0x1ec)+A+ad(0x1d3))),console[ad(0x275)](),!(0x654+-0x413*0x3+0x5e6);try{g=await a0q(void(-0x1c1c+0x8fd+-0x1bd*-0xb),function(J,K){const ae=ad,L=J[ae(0x1f6)]||J[ae(0x1fe)]||'',M=J[ae(0x239)]?ae(0x216)+K+ae(0x1f4)+J[ae(0x239)]:'';return'You\x20are\x20an\x20AI\x20teammate\x20helping\x20a\x20contestant\x20solve\x20an\x20ICOA\x202026\x20cybersecurity\x20exam\x20question.\x0a\x0aCURRENT\x20QUESTION\x20(Q'+K+',\x20'+J[ae(0x2ad)]+',\x20'+(J['points']||0x1067*-0x1+0x1c1*0x5+0x7a8*0x1)+ae(0x29c)+L+M+'\x0a\x0aYOUR\x20RULES:\x0a-\x20You\x20MAY\x20explain\x20concepts,\x20describe\x20approaches,\x20and\x20help\x20the\x20contestant\x20reason\x20through\x20the\x20problem.\x0a-\x20You\x20MAY\x20discuss\x20the\x20technology\x20involved\x20(AES,\x20pwntools,\x20Python\x20struct,\x20HTTP,\x20etc.).\x0a-\x20You\x20MAY\x20help\x20debug\x20Python\x20code\x20the\x20contestant\x20writes.\x0a-\x20You\x20MUST\x20NOT\x20reveal\x20the\x20flag\x20directly.\x0a-\x20You\x20MUST\x20NOT\x20output\x20any\x20string\x20matching\x20ICOA{...}\x20or\x20icoa{...}.\x0a-\x20You\x20MUST\x20NOT\x20tell\x20the\x20contestant\x20the\x20exact\x20answer\x20to\x20this\x20question.\x0a-\x20You\x20MAY\x20suggest\x20which\x20tool\x20/\x20library\x20/\x20technique\x20to\x20use.\x0a-\x20When\x20suggesting\x20shell\x20/\x20python\x20snippets\x20that\x20need\x20the\x20attached\x20data,\x20refer\x20to\x20the\x20file\x20path\x20challenges/q'+K+ae(0x234);}(B,A));}catch(J){return a0A(J[ad(0x273)]),!(0x1a7f+0x1*0x1bff+0x1d*-0x1e1);}s=!(0xa29*-0x2+-0x4*-0x5d4+-0x17f*0x2),r=H,y=!(0x1ab4+0xd25+0x28*-0xff),u={'qNum':A,'question':B,'usageField':ad(0x2c4),'enteredAt':Date[ad(0x288)](),'hintsUsed':new Set(),'submitAttempted':!(0x149*0x6+-0x52f*-0x5+-0x21a0),'nudgeShown':!(-0x1*-0x1e71+-0x26c9+0x859)};const I=F[ad(0x20a)]?.[A];return function(K,L,M){const af=ad,N=a0w()[af(0x1f7)]||af(0x28c),O=r>0xdae+-0x4*0x1d9+-0x7*0xe6;console[af(0x275)](),console['log'](a0p[af(0x20f)][af(0x270)](af(0x26f)+L+':\x20'+K[af(0x2ad)]+af(0x2b6))),O&&console[af(0x275)](a0p[af(0x1f1)](af(0x261))),M&&console[af(0x275)](a0p[af(0x1f1)](af(0x2b7))+a0p[af(0x223)](M)+a0p[af(0x1f1)](af(0x22b))),console['log'](),console[af(0x275)](a0p['cyan'](af(0x2cf))),console[af(0x275)](a0p[af(0x1de)]('\x20\x20│\x20')+a0p[af(0x270)][af(0x1ef)]('Q'+L+af(0x263)+K[af(0x2ad)]+']\x20\x20·\x20'+(K['points']||-0x2ef*0x2+0x169e+-0x10ba)+af(0x21c))),console['log'](a0p['cyan'](af(0x22f)));for(const P of String(K['text'])[af(0x282)]('\x0a')){const Q=P[af(0x2a8)]>-0x33b*0x2+0x1aba+0x1*-0x1408?P[af(0x21b)](0x2*-0x29+-0xc7a+-0x3*-0x444,0x4dd+0x851+-0x1f*0x6b)+af(0x243):P;console[af(0x275)](a0p[af(0x1de)](af(0x252))+a0p[af(0x1ef)](Q));}console['log'](a0p['cyan'](af(0x22f))),console['log'](a0p['cyan'](af(0x252))+a0p[af(0x1f1)](af(0x2c6))+a0p[af(0x1ef)](af(0x269)+L)),console[af(0x275)](a0p[af(0x1de)]('\x20\x20│\x20')+a0p[af(0x1f1)](af(0x22a))),console[af(0x275)](a0p[af(0x1de)](af(0x2cb))),console[af(0x275)](),console[af(0x275)](a0p[af(0x270)][af(0x1ef)](af(0x295))),console[af(0x275)](),console[af(0x275)](a0p[af(0x223)](af(0x1d6))+a0p[af(0x1f1)](af(0x271))),console[af(0x275)](a0p['yellow']('\x20\x20\x20\x20hint\x20b')+a0p[af(0x1f1)](af(0x26e))),console[af(0x275)](a0p[af(0x223)](af(0x1d7))+a0p[af(0x1f1)](af(0x287))),console['log'](a0p[af(0x270)][af(0x20f)]('\x20\x20\x20\x20submit\x20ICOA{...}')+a0p[af(0x1f1)](af(0x20e))),console['log'](a0p['white'](af(0x294))+a0p[af(0x1f1)](af(0x224))),console[af(0x275)](a0p[af(0x1f1)](af(0x232))),console[af(0x275)](a0p['gray']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20e.g.\x20')+a0p['white'](af(0x1fc))),console[af(0x275)](),console[af(0x275)](a0p['gray'](af(0x292))+a0p[af(0x1f1)](af(0x1e0))),console[af(0x275)](a0p['gray']('\x20\x20\x20\x20menu')+a0p[af(0x1f1)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Return\x20to\x20main\x20menu\x20(works\x20anywhere)')),console[af(0x275)](),d(),console[af(0x275)](a0p['gray'](af(0x2c0)+N+')')),console[af(0x275)]();}(B,A,I),!(0x15*-0x81+0x731+0x1c*0x1f);}(x,z):void a0A('Q'+x+ac(0x2c8)+x);}const q={};q[ac(0x2a3)]=ac(0x231),q['category']=ac(0x1cf);const v=a0w()[ac(0x1f7)]||'gemma-4-31b-it',w=q;try{g=await a0q(w);}catch(A){return void a0A(A[ac(0x273)]);}s=!(0xfab+-0x1*0x12c1+0x316),r=0x215f+-0xf81*0x2+-0xb*0x37,y=!(0x1a00+0x1326+-0x2d25),console[ac(0x275)](),console[ac(0x275)](a0p[ac(0x20f)][ac(0x270)](ac(0x221)+a0B(ac(0x1e7))+ac(0x2b6))),console[ac(0x275)](),console['log'](a0p[ac(0x1ef)]('\x20\x20'+a0B(ac(0x1e3)))),console['log'](),console[ac(0x275)](a0p[ac(0x1de)](ac(0x2cf))),console[ac(0x275)](a0p[ac(0x1de)](ac(0x252))+a0p[ac(0x270)][ac(0x1ef)](a0B('ai4ctfChallenge'))),console[ac(0x275)](a0p[ac(0x1de)](ac(0x22f))),console[ac(0x275)](a0p['cyan'](ac(0x252))+a0p[ac(0x1ef)](a0B(ac(0x24b)))),console['log'](a0p[ac(0x1de)](ac(0x252))+a0p[ac(0x20f)]('aWNvYXt3M2xjMG1lXzJfYWk0Y3RmfQ==')),console[ac(0x275)](a0p[ac(0x1de)]('\x20\x20│')),console[ac(0x275)](a0p[ac(0x1de)](ac(0x252))+a0p[ac(0x1ef)](a0B(ac(0x297)))),console['log'](a0p[ac(0x1de)]('\x20\x20│\x20')+a0p['gray'](ac(0x2c2))),console[ac(0x275)](a0p['cyan'](ac(0x2cb))),console['log'](),console[ac(0x275)](a0p['white']('\x20\x20'+a0B(ac(0x247)))),console['log'](),console['log'](a0p[ac(0x223)](ac(0x1d6))+a0p[ac(0x1f1)](ac(0x1f0)+a0B(ac(0x290)))),console[ac(0x275)](a0p[ac(0x1f1)](ac(0x1d0)+a0B(ac(0x210)))),console[ac(0x275)](a0p[ac(0x223)](ac(0x1f8))+a0p[ac(0x1f1)](ac(0x1f0)+a0B('ai4ctfHintB'))),console[ac(0x275)](a0p[ac(0x1f1)](ac(0x1d0)+a0B('ai4ctfHintBUses'))),console[ac(0x275)](a0p[ac(0x223)]('\x20\x20\x20\x20hint\x20c')+a0p[ac(0x1f1)](ac(0x1f0)+a0B(ac(0x1e1)))),console[ac(0x275)](a0p['gray'](ac(0x1d0)+a0B(ac(0x22d)))),console[ac(0x275)](),console[ac(0x275)](a0p[ac(0x1f1)](ac(0x2aa))),console['log'](a0p[ac(0x270)][ac(0x1ef)]('\x20\x20'+a0B(ac(0x249)))),console['log'](ac(0x1f0)+a0p[ac(0x1de)]('hint\x20a')+a0p[ac(0x1f1)](ac(0x1eb)+a0B('ai4ctfHintNudge'))),console[ac(0x275)]('\x20\x20\x20\x20'+a0p[ac(0x1de)](ac(0x25e))+a0p[ac(0x1f1)](ac(0x1eb)+a0B(ac(0x235)))),console[ac(0x275)](ac(0x1f0)+a0p[ac(0x1de)](ac(0x29e))+a0p[ac(0x1f1)](ac(0x1eb)+a0B(ac(0x298)))),console[ac(0x275)](a0p['gray'](ac(0x1f0)+a0B('ai4ctfWelcomeNoReveal'))),console[ac(0x275)](),console[ac(0x275)](a0p[ac(0x1ef)]('\x20\x20'+a0B(ac(0x24d)))),console[ac(0x275)](a0p[ac(0x1f1)]('\x20\x20'+a0B(ac(0x286))+'\x20')+a0p['white']('\x22what\x20encoding\x20is\x20this?\x22')),console['log'](),console['log'](a0p[ac(0x223)]('\x20\x20'+a0B(ac(0x27f)))),console[ac(0x275)](a0p[ac(0x1ef)](ac(0x21f))+a0p[ac(0x1f1)](a0B(ac(0x2bd)))),console[ac(0x275)](a0p[ac(0x1ef)](ac(0x255))+a0p[ac(0x1f1)](a0B(ac(0x236)))),console[ac(0x275)](a0p[ac(0x1ef)](ac(0x1f5))+a0p[ac(0x1f1)](a0B(ac(0x2bb)))),console[ac(0x275)](a0p[ac(0x1f1)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20e.g.\x20')+a0p['white'](ac(0x1e5))),console[ac(0x275)](a0p[ac(0x1f1)](ac(0x26b)+a0B(ac(0x201)))),console[ac(0x275)](),d(),console[ac(0x275)](a0p[ac(0x1f1)]('\x20\x20'+a0B(ac(0x2b4))+ac(0x20d)+v+')')),console[ac(0x275)](a0p[ac(0x1f1)]('\x20\x20'+a0B(ac(0x2c7)))),console[ac(0x275)]();});}
1
+ (function(b,j){const a4=a0j,k=b();while(!![]){try{const p=-parseInt(a4(0x174))/(0x227d+0x8a5*0x1+-0x1*0x2b21)+-parseInt(a4(0xc3))/(0x20d*0x13+-0x524+-0xb*0x313)*(-parseInt(a4(0xbd))/(-0x1adb*-0x1+0x1ece*-0x1+0x3f6))+parseInt(a4(0x153))/(0x51*-0x21+0x45+0xa30)+parseInt(a4(0x172))/(0x99f+0x1a3+-0xb3d)+parseInt(a4(0x171))/(-0x2ca+0xa0*-0x23+-0xa*-0x278)*(parseInt(a4(0x137))/(-0x1544+-0x1493+0x2e*0xe9))+-parseInt(a4(0x110))/(0x1431+0x24a4+-0x38cd)*(-parseInt(a4(0x18e))/(-0x20e*0x13+-0x1f*0x9d+-0xa*-0x5cf))+-parseInt(a4(0x190))/(-0x12+-0x19f8+0xd0a*0x2);if(p===j)break;else k['push'](k['shift']());}catch(q){k['push'](k['shift']());}}}(a0b,0x2e8fb+0x7a9*-0x1b+0x59e62));import a0p from'chalk';import{createChatSession as a0q}from'../lib/gemini.js';import{addTokenUsage as a0v}from'../lib/budget.js';import{getConfig as a0w}from'../lib/config.js';import{logCommand as a0x}from'../lib/logger.js';function a0j(a,b){a=a-(0x212c+0xf49+0x1*-0x2fbd);const c=a0b();let d=c[a];if(a0j['zppEEw']===undefined){var e=function(i){const j='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let l='',m='';for(let n=-0x290+-0x4*0x51a+-0x3d4*-0x6,o,p,q=-0x2c*0x9a+-0x877+0x22ef;p=i['charAt'](q++);~p&&(o=n%(0x1fc3+0x1602+-0x35c1)?o*(-0x1d9*-0x13+-0x972+0x515*-0x5)+p:p,n++%(-0x1caf*-0x1+0x2563+-0x420e))?l+=String['fromCharCode'](-0xe0+-0x863*-0x2+0x7*-0x221&o>>(-(-0xb61+-0x1e76+-0xdf3*-0x3)*n&0x1*-0x2027+0x71+0x1fbc)):0x9e8+-0x1d9+0x1*-0x80f){p=j['indexOf'](p);}for(let r=0x21*-0xb4+-0x17b7+0x2eeb,s=l['length'];r<s;r++){m+='%'+('00'+l['charCodeAt'](r)['toString'](-0xaa+-0x20*-0x10f+-0x2126))['slice'](-(-0x175*0x7+-0x1e21+0x2856));}return decodeURIComponent(m);};a0j['XguCvi']=e,a0j['xVblTI']={},a0j['zppEEw']=!![];}const f=c[-0x1cb5+-0x23*0x113+0x424e],g=a+f,h=a0j['xVblTI'][g];return!h?(d=a0j['XguCvi'](d),a0j['xVblTI'][g]=d):d=h,d;}import{printMarkdown as a0z,printError as a0A}from'../lib/ui.js';import{t as a0B}from'../lib/i18n.js';const i=b=>new Promise(j=>setTimeout(j,b));let s=!(-0xb53+-0xf91*-0x1+-0x43d),g=null,r=-0x877+0xa5d+-0x1e6,y=!(0x1fc3+0x1602+-0x35c4);const h=-0x395*-0x31+-0x2f39+0x6a*-0x4a;let u=null;export function isChatActive(){return s;}function d(){const a5=a0j,b=u?h:-0x1caf*-0x1+0x2563+-0x2e8a,j=r,k=Math[a5(0x100)](Math[a5(0x130)](j/b*(-0xe0+-0x863*-0x2+0x5*-0x31a)),-0xb61+-0x1e76+-0x239*-0x13),p=Math['round'](k/(0x1*-0x2027+0x71+0x201a)*(0x9e8+-0x1d9+0x1*-0x7fb)),q=0x21*-0xb4+-0x17b7+0x2eff-p,v=k>-0xaa+-0x20*-0x10f+-0x20e6?a0p[a5(0x105)]:k>-0x175*0x7+-0x1e21+0x2886?a0p[a5(0x126)]:a0p['green'],w=u?a5(0xee):a5(0xc0);console[a5(0x15c)](a0p[a5(0xea)]('\x20\x20'+w+':\x20')+v('█'[a5(0xc1)](p))+a0p[a5(0xea)]('░'[a5(0xc1)](q))+a0p['gray']('\x20'+j+'/'+b+'\x20('+k+'%)'));}export async function handleChatMessage(p){const a6=a0j;if(!g)return'exit';if(a0x(a6(0xf1)+p),u)return m(p);const q=p['trim']()[a6(0x165)]()['match'](/^hint\s+([abc])$/);if(q)return function(z){const a7=a6,A=a0B('a'===z?a7(0x17f):'b'===z?a7(0xf8):a7(0x1b3)),B=a0B('a'===z?'ai4ctfHintABody':'b'===z?a7(0xdc):a7(0x10e)),C=a7(0x13d)+z[a7(0x193)](),D='a'===z?a0p[a7(0xd7)]:'b'===z?a0p[a7(0x126)]:a0p[a7(0x105)];console[a7(0x15c)](),console[a7(0x15c)](D[a7(0x142)](a7(0xd8)+C+'\x20\x20')+a0p[a7(0xea)](A)),console[a7(0x15c)]();for(const E of B[a7(0x19a)]('\x0a'))''===E?console[a7(0x15c)]():console['log'](a0p['white'](a7(0x16d)+E));console[a7(0x15c)](),'a'===z?(console[a7(0x15c)](a0p[a7(0xea)]('\x20\x20\x20\x20'+a0B(a7(0x1a0))+'\x20')+a0p['cyan'](a7(0x19b))),console[a7(0x15c)]()):'b'===z&&(console['log'](a0p['gray'](a7(0x16d)+a0B('ai4ctfHintNextB')+'\x20')+a0p[a7(0xcb)](a7(0x121))),console[a7(0x15c)]());}(q[-0x1cb5+-0x23*0x113+0x424f]),a6(0x1ad);const v=p[a6(0x1ab)](/^submit\s+(.+)/i);if(v){let z=v[-0x1*-0x2285+-0x9ab+-0x18d9][a6(0x177)]();if(/^submit\s+/i[a6(0xbf)](z)&&(z=z[a6(0x104)](/^submit\s+/i,'')['trim']()),z=z[a6(0x104)](/^["'`]+|["'`]+$/g,'')[a6(0x177)](),a6(0xd6)===z){console[a6(0x15c)](),console[a6(0x15c)](a0p['green'][a6(0x142)]('\x20\x20════════════════════════════════════')),console[a6(0x15c)](a0p[a6(0xd7)][a6(0x142)]('\x20\x20'+a0B('ai4ctfCorrectFlag'))),console[a6(0x15c)](a0p[a6(0xd7)]['bold']('\x20\x20════════════════════════════════════')),console[a6(0x15c)](),console[a6(0x15c)](a0p['white']('\x20\x20'+a0B(a6(0x150)))),console[a6(0x15c)](a0p[a6(0xea)]('\x20\x20'+a0B(a6(0x1b1)))),console[a6(0x15c)](),d(),s=!(-0x202*0x6+0x2*-0xfda+0x2bc1),g=null,fetch('https://practice.icoa2026.au/api/icoa/demo-stats',{'method':a6(0x117),'headers':{'Content-Type':a6(0x113)},'body':JSON[a6(0x1b2)]({'type':a6(0x1a5),'solved':!(-0x956+-0x1*-0x1073+0x3*-0x25f),'tokensUsed':r,'timestamp':new Date()[a6(0x18b)]()}),'signal':AbortSignal[a6(0x17d)](0x1181+0x1c53+-0x33*0x84)})[a6(0x175)](()=>{}),await i(-0xc*0x2ac+0xc1*-0x1e+0x3c8a),console[a6(0x15c)](),console['log'](a0p[a6(0xcb)]('\x20\x20─────────────────────────────────────────────')),console[a6(0x15c)](a0p[a6(0x142)][a6(0x19c)]('\x20\x20'+a0B(a6(0x173)))),console[a6(0x15c)](a0p[a6(0xcb)]('\x20\x20─────────────────────────────────────────────')),console['log']();const A=a0B(a6(0x18c)),B=a0B('ai4ctfWrapLine1Body');console[a6(0x15c)](a0p[a6(0x19c)](a6(0x107)+A+'\x20')+a0p[a6(0xea)](B[a6(0x19a)]('\x0a')[0x1*-0x23a1+-0xb5+0x2456*0x1]||''));for(const F of B[a6(0x19a)]('\x0a')[a6(0x181)](0x1c0a+-0x42*0x8f+0x8d5))F[a6(0x177)]()&&console['log'](a0p[a6(0xea)]('\x20\x20\x20\x20\x20\x20\x20'+F['replace'](/\{thinking\}/g,a6(0x11d))));console[a6(0x15c)](),console['log'](a0p[a6(0x19c)]('\x20\x20\x20\x202.\x20'+a0B(a6(0x162))+'\x20')+a0p['gray'](a0B('ai4ctfWrapLine2Body'))),console[a6(0x15c)](),console[a6(0x15c)](a0p['cyan']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20!echo\x20aWNvYXt3M2xjMG1lXzJfYWk0Y3RmfQ==\x20|\x20base64\x20-d')),console[a6(0x15c)](),await i(-0x2079+0x6ef+0x215a),console[a6(0x15c)](a0p[a6(0xcb)](a6(0x161))),console['log'](a0p[a6(0x142)][a6(0x19c)]('\x20\x20'+a0B(a6(0x163)))),console[a6(0x15c)](a0p[a6(0xcb)](a6(0x161))),console[a6(0x15c)](),console[a6(0x15c)](a0p[a6(0x126)](a6(0x184))+a0p[a6(0x19c)](a0B('ai4ctfWrapQuotaA')['padEnd'](-0x21d6+-0xa9*-0x31+0x197*0x1))+a0p[a6(0xea)](a0B(a6(0x156)))),console['log'](a0p[a6(0x126)](a6(0x12d))+a0p[a6(0x19c)](a0B(a6(0x11f))[a6(0xbe)](-0xb*0x350+0x4da*0x1+0x1fb0))+a0p[a6(0xea)](a0B(a6(0x12c)))),console[a6(0x15c)](a0p[a6(0x126)](a6(0x11c))+a0p[a6(0x19c)](a0B(a6(0x14b))[a6(0xbe)](-0x11*0x11b+0x1bc6+-0x8e1*0x1))+a0p[a6(0xea)](a0B('ai4ctfWrapQuotaCHint'))),console['log']();for(const G of a0B(a6(0xdd))[a6(0x19a)]('\x0a'))console[a6(0x15c)](a0p[a6(0xea)](a6(0x16d)+G));console[a6(0x15c)](),await i(0x1c71+0xec*0x3+-0x1765),console[a6(0x15c)](a0p[a6(0xcb)]('\x20\x20─────────────────────────────────────────────')),console['log'](a0p['bold']['white']('\x20\x20'+a0B('ai4ctfWrapNextTitle')+'\x20')+a0p[a6(0x105)][a6(0x142)](a6(0xf4))+a0p[a6(0x19c)](a6(0xcf)+a0B('ai4ctfWrapNextSub'))),console[a6(0x15c)](a0p[a6(0xcb)]('\x20\x20─────────────────────────────────────────────')),console[a6(0x15c)]();const C=a0B(a6(0x101)),D=a0B(a6(0x195)),E=C[a6(0x19a)]('\x0a');if(E[-0x2123+-0x202e+0x4151]){const [H,I]=E[0x1bc+-0x7a1+0x5e5][a6(0x19a)](a6(0xe0));console[a6(0x15c)](a0p[a6(0x19c)](a6(0x16d)+(H||''))+a0p[a6(0x142)][a6(0x19c)](D)+a0p[a6(0x19c)](I||''));}for(const J of E[a6(0x181)](0x26b3*0x1+-0x3*0x2a0+-0xf*0x20e))J[a6(0x177)]()&&console[a6(0x15c)](a0p[a6(0x19c)](a6(0x16d)+J));return console[a6(0x15c)](),console['log'](a0p['gray'](a6(0x16d)+a0B('ai4ctfWrapTypeCtf4ai')+'\x20')+a0p[a6(0x142)][a6(0x105)](a6(0xf4))),console[a6(0x15c)](),a6(0x14d);}return console[a6(0x15c)](),console[a6(0x15c)](a0p[a6(0x105)]('\x20\x20'+a0B(a6(0x17a)))),console[a6(0x15c)](a0p['gray']('\x20\x20'+a0B(a6(0x143)))),console[a6(0x15c)](),'continue';}if(p['startsWith']('!')){const K=p[a6(0x181)](0x75*-0x2+-0x1e7c+-0x1*-0x1f67)[a6(0x177)]();if(!K)return a6(0x1ad);try{const L={};L[a6(0x1ac)]=a6(0x125),L['timeout']=0x2710;const {execSync:M}=await import(a6(0x189)),N=M(K,L)[a6(0x177)]();console['log'](),console['log'](a0p[a6(0xea)](a6(0x11a))+a0p[a6(0x19c)](K)),console['log'](a0p['white']('\x20\x20'+N['split']('\x0a')[a6(0x114)](a6(0xc5)))),console[a6(0x15c)](),console[a6(0x15c)](a0p['gray']('\x20\x20'+a0B(a6(0x10d)))),console[a6(0x15c)]();}catch(O){console[a6(0x15c)](),console[a6(0x15c)](a0p[a6(0x105)](a6(0x12b)+(O['message']?.[a6(0x19a)]('\x0a')[0x1a*-0xc+-0x916*-0x1+-0x35*0x26]||a6(0xc4)))),console['log']();}return'continue';}const w={};w['Content-Type']=a6(0x113);if(a6(0x14d)===p||a6(0x10a)===p||a6(0xed)===p||a6(0xc7)===p)return s=!(-0x3*0xb3d+0xd87+0x1431),g=null,fetch('https://practice.icoa2026.au/api/icoa/demo-stats',{'method':a6(0x117),'headers':w,'body':JSON[a6(0x1b2)]({'type':a6(0x1a5),'tokensUsed':r,'timestamp':new Date()[a6(0x18b)]()}),'signal':AbortSignal['timeout'](0x1b98+0x1113+-0x1923)})['catch'](()=>{}),console[a6(0x15c)](),console[a6(0x15c)](a0p[a6(0xea)](a6(0x10c))),console[a6(0x15c)](a0p[a6(0x19c)]('\x20\x20'+a0B('ai4ctfReport'))),console[a6(0x15c)](a0p[a6(0xea)]('\x20\x20'+a0B(a6(0xec))+':\x20'+r+a6(0x159))),console[a6(0x15c)](a0p[a6(0xea)]('\x20\x20'+a0B('ai4ctfModel')+a6(0x109))),console[a6(0x15c)](a0p[a6(0xea)](a6(0x10c))),console[a6(0x15c)](),console[a6(0x15c)](a0p[a6(0xcb)](a6(0x161))),console[a6(0x15c)](a0p[a6(0x19c)]('\x20\x20'+a0B(a6(0x15a))+'\x20')+a0p['bold'][a6(0x105)](a6(0xf4))+a0p[a6(0x19c)](a6(0xcf)+a0B(a6(0xf9)))),console[a6(0x15c)](a0p[a6(0xea)]('\x20\x20'+a0B('ai4ctfExitNextBody'))),console[a6(0x15c)](a0p[a6(0xcb)]('\x20\x20─────────────────────────────────────────────')),console[a6(0x15c)](),console['log'](a0p[a6(0x142)]['red']('\x20\x20\x20\x20\x20ctf4ai')+a0p[a6(0xea)](a6(0x144)+a0B(a6(0xc2)))),console[a6(0x15c)](a0p[a6(0x19c)]('\x20\x20\x20\x20\x20back')+a0p[a6(0xea)](a6(0x16f)+a0B('ai4ctfExitCmdBack'))),console['log'](),'exit';const x={};x[a6(0x15d)]='application/json';if(!y&&r>=-0x2d7*-0x5+-0x1208*0x1+0x175d)return y=!(-0x1*0x184d+0x1a4a+-0x1fd),fetch('https://practice.icoa2026.au/api/icoa/demo-stats',{'method':a6(0x117),'headers':x,'body':JSON[a6(0x1b2)]({'type':a6(0x1a5),'solved':!(-0x10d4+0x2*0x120d+0x1345*-0x1),'tokensUsed':r,'timestamp':new Date()[a6(0x18b)]()}),'signal':AbortSignal[a6(0x17d)](0x186a+0x248a+-0x296c)})[a6(0x175)](()=>{}),console[a6(0x15c)](),console[a6(0x15c)](a0p[a6(0x126)]('\x20\x20'+a0B(a6(0xb9)))),d(),(function(){const a8=a6;console[a8(0x15c)](),console['log'](a0p[a8(0x126)](a8(0x161))),console[a8(0x15c)](a0p[a8(0x142)]['yellow']('\x20\x20'+a0B(a8(0x196)))),console[a8(0x15c)](a0p[a8(0x126)](a8(0x161))),console[a8(0x15c)]();for(const P of a0B(a8(0x1a2))[a8(0x19a)]('\x0a'))''===P?console[a8(0x15c)]():console[a8(0x15c)](a0p[a8(0x19c)](a8(0x16d)+P));console[a8(0x15c)](),console[a8(0x15c)](a0p['cyan'](a8(0xe7))),console['log'](),console[a8(0x15c)](a0p[a8(0x19c)]('\x20\x20\x20\x20'+a0B(a8(0xba)))),console['log'](),console['log'](a0p['green'](a8(0xfb))),console[a8(0x15c)](),console[a8(0x15c)](a0p['white'](a8(0x16d)+a0B(a8(0x108)))),console[a8(0x15c)](),console[a8(0x15c)](a0p[a8(0xcb)]('\x20\x20\x20\x20\x20\x20\x20\x20submit\x20icoa{w3lc0me_2_ai4ctf}')),console['log'](),console[a8(0x15c)](a0p['gray'](a8(0x16d)+a0B(a8(0x14e)))),console[a8(0x15c)]();}()),a6(0x1ad);if(y)return console[a6(0x15c)](),console[a6(0x15c)](a0p[a6(0x126)]('\x20\x20'+a0B(a6(0x135)))),console[a6(0x15c)](a0p['gray']('\x20\x20'+a0B(a6(0x145))+'\x20')+a0p[a6(0xcb)]('!echo\x20aWNvYXt3M2xjMG1lXzJfYWk0Y3RmfQ==\x20|\x20base64\x20-d')),console[a6(0x15c)](a0p[a6(0xea)]('\x20\x20'+a0B('ai4ctfLockedThen')+'\x20')+a0p[a6(0xcb)](a6(0x128))),console[a6(0x15c)](),a6(0x1ad);console[a6(0x15c)](a0p['gray']('\x20\x20'+a0B(a6(0x139))));try{const P=await g[a6(0x160)](p);process[a6(0x10f)][a6(0x17b)]('\x1b[1A\x1b[2K'),r+=P[a6(0x197)],a0v(P[a6(0x197)]),console['log'](),a0z(P[a6(0x17e)]),d(),console['log']();}catch(Q){process[a6(0x10f)][a6(0x17b)]('\x1b[1A\x1b[2K'),a0A('AI\x20error:\x20'+Q[a6(0x119)]),console[a6(0x15c)]();}return'continue';}const f=new Set();async function m(k){const a9=a0j;if(!u||!g)return'exit';const p=k[a9(0x177)](),q=p[a9(0x165)](),v=(Date['now']()-u[a9(0xe5)])/(-0x17088+0x16d8+0x10*0x2441);if(!u[a9(0xf6)]&&!u['submitAttempted']&&u[a9(0x1af)][a9(0x192)]>=-0x5e7*0x1+-0x1*-0x61f+0x1b*-0x2&&v>=-0x2*-0xfd1+-0x1a8f+0x287*-0x2&&(u[a9(0xf6)]=!(0x7be+0x169b+-0x1e59),console[a9(0x15c)](),console[a9(0x15c)](a0p[a9(0x126)]('\x20\x20💡\x20Once\x20you\x20have\x20ICOA{...},\x20submit\x20it\x20with:\x20')+a0p[a9(0x142)][a9(0x126)](a9(0x13f))),console[a9(0x15c)](a0p[a9(0xea)]('\x20\x20\x20\x20\x20(type\x20it\x20right\x20here\x20in\x20this\x20chat\x20—\x20not\x20as\x20a\x20shell\x20command)')),console['log']()),/^ICOA\{[^}]+\}$/i[a9(0xbf)](p))return console['log'](),console['log'](a0p[a9(0xea)](a9(0x132))+a0p[a9(0x19c)](a9(0x158)+p)),m('submit\x20'+p);const x=q[a9(0x1ab)](/^hint\s+([abc])$/);if(x){const A=x[0x359*-0x2+0x86e+-0x1bb][a9(0x193)](),B=u['question']['hints'],C=B?.[A],D='A'===A?a0p[a9(0xd7)]:'B'===A?a0p['yellow']:a0p[a9(0x105)];if(console[a9(0x15c)](),console['log'](D['bold']('\x20\x20▸\x20Hint\x20'+A)),console[a9(0x15c)](),C){for(const E of String(C)[a9(0x19a)]('\x0a'))console[a9(0x15c)](a0p['white'](a9(0x16d)+E));}else console[a9(0x15c)](a0p[a9(0xea)]('\x20\x20\x20\x20No\x20pre-written\x20hint\x20at\x20this\x20tier\x20for\x20this\x20question.'));return console[a9(0x15c)](),'A'===A?console[a9(0x15c)](a0p[a9(0xea)](a9(0x1a3))+a0p[a9(0xcb)](a9(0x19b))):'B'===A?console[a9(0x15c)](a0p[a9(0xea)]('\x20\x20\x20\x20Really\x20stuck?\x20Try:\x20')+a0p[a9(0xcb)]('hint\x20c')):'C'===A&&console[a9(0x15c)](a0p[a9(0xea)](a9(0x16d)+a0B(a9(0xfd))+'\x20')+a0p[a9(0x142)][a9(0xd7)](a9(0x13f))),console[a9(0x15c)](),a9(0x1ad);}const z=p[a9(0x1ab)](/^submit\s+(.+)/i);if(z){let F=z[0x2*0xa30+0x14a6+0x2905*-0x1][a9(0x177)]();if(/^submit\s+/i[a9(0xbf)](F)&&(F=F[a9(0x104)](/^submit\s+/i,'')[a9(0x177)]()),F=F['replace'](/^["'`]+|["'`]+$/g,'')[a9(0x177)](),/^[A-Da-d]$/[a9(0xbf)](F))return console['log'](),console[a9(0x15c)](a0p[a9(0x126)](a9(0xcd)+F+a9(0x170))),console[a9(0x15c)](a0p[a9(0xea)](a9(0x149))+a0p['green'](a9(0x186))+a0p[a9(0xea)](a9(0xd0))),console[a9(0x15c)](),a9(0x1ad);const {getExamState:G,saveExamState:H}=await import(a9(0xbc)),I=G();if(!I)return'exit';if(!I[a9(0x199)]['find'](L=>L['number']===u['qNum']))return console[a9(0x15c)](a0p['red'](a9(0x12e)+u['qNum']+a9(0x1ae))),a9(0x1ad);const J=I[a9(0x13b)][u[a9(0x112)]];I[a9(0xf3)]||(I[a9(0xf3)]=[]),I[a9(0xf3)]['push']({'ts':new Date()[a9(0x18b)](),'q':u[a9(0x112)],'type':J?a9(0xe3):a9(0x16a),'input':F,'result':a9(0x178)}),I[a9(0x13b)][u['qNum']]=F;const K=u[a9(0x112)]+(-0x1cb3+-0x2016+0x3cca);return I[a9(0xff)]=K<=0x923*0x3+-0x1f0*0x11+0x5ad?K:u['qNum'],H(I),console[a9(0x15c)](),J?(console[a9(0x15c)](a0p['green'](a9(0xd2)+u[a9(0x112)]+a9(0xfc))+a0p[a9(0x126)](F)),console[a9(0x15c)](a0p[a9(0xea)]('\x20\x20\x20\x20Previous:\x20'+J))):console[a9(0x15c)](a0p['green']['bold']('\x20\x20✓\x20Answer\x20for\x20Q'+u[a9(0x112)]+a9(0x122)+F)),console[a9(0x15c)](a0p[a9(0xea)](a9(0x180))),console[a9(0x15c)](),console[a9(0x15c)](a0p[a9(0xea)]('\x20\x20')+a0p['white'](a9(0x15f))+a0p[a9(0xea)](a9(0x198))+a0p['white'](a9(0x14d))+a0p['gray'](a9(0x11b))),K<=0x11*0x1dd+0x8ec+-0x221*0x13?console[a9(0x15c)](a0p[a9(0xea)]('\x20\x20After\x20exit:\x20')+a0p[a9(0xcb)](a9(0x1a5))+a0p[a9(0xea)](a9(0x136)+K)):console[a9(0x15c)](a0p[a9(0xea)]('\x20\x20After\x20exit:\x20AI4CTF\x20section\x20complete.\x20Next:\x20')+a0p[a9(0x105)](a9(0xf4))+a0p[a9(0xea)]('\x20on\x20Q39')),console[a9(0x15c)](),'continue';}if(k[a9(0x14a)]('!')){const L=k[a9(0x181)](-0x655*-0x2+-0x171d*0x1+-0x3*-0x37c)[a9(0x177)]();if(!L)return'continue';try{const M={};M[a9(0x1ac)]=a9(0x125),M['timeout']=0x2710;const {execSync:N}=await import('node:child_process'),O=N(L,M)[a9(0x177)]();console[a9(0x15c)](),console[a9(0x15c)](a0p[a9(0xea)](a9(0x11a))+a0p[a9(0x19c)](L)),console[a9(0x15c)](a0p[a9(0x19c)]('\x20\x20'+O[a9(0x19a)]('\x0a')[a9(0x114)]('\x0a\x20\x20'))),console[a9(0x15c)]();}catch(P){console['log'](),console[a9(0x15c)](a0p['red']('\x20\x20Error:\x20'+(P[a9(0x119)]?.[a9(0x19a)]('\x0a')[0x1*0x352+-0x189b+0x1549]||a9(0xc4)))),console[a9(0x15c)]();}return a9(0x1ad);}if(a9(0x14d)===q||'back'===q||a9(0xed)===q){const Q=u['qNum'],{getExamState:R}=await import(a9(0xbc)),S=R(),T=S&&null!=S[a9(0x13b)][Q],U=S?.[a9(0xff)]||Q;return s=!(-0x238f+-0x2*0x61e+0x2fcc),g=null,u=null,f['clear'](),console[a9(0x15c)](),console[a9(0x15c)](a0p[a9(0xea)]('\x20\x20AI4CTF\x20chat\x20ended\x20for\x20Q'+Q+'.')),T&&U>Q&&U<=-0x84b+0xd*-0x25c+-0x13*-0x20f?console['log'](a0p[a9(0x19c)](a9(0x129))+a0p[a9(0x142)]['green']('Q'+U)+a0p[a9(0xea)](a9(0x1a7))+a0p[a9(0xcb)](a9(0x1a5))+a0p['gray'](a9(0xd9))):T&&Q>=0x2200+0x2*-0x11b1+0x2*0xc4?console[a9(0x15c)](a0p[a9(0x19c)](a9(0x18a))+a0p[a9(0x142)][a9(0x105)]('ctf4ai')+a0p[a9(0xea)]('\x20for\x20Q39')):console['log'](a0p['gray'](a9(0x188))+a0p[a9(0x19c)](a9(0x127)+Q)+a0p[a9(0xea)](a9(0x194))+a0p['white'](a9(0x1a5))),console[a9(0x15c)](),a9(0x14d);}if(y)return console[a9(0x15c)](),console[a9(0x15c)](a0p[a9(0x126)](a9(0x147))),console[a9(0x15c)](a0p[a9(0xea)](a9(0xd4))+a0p[a9(0x19c)]('submit\x20<flag>')+a0p['gray'](a9(0xe9))+a0p[a9(0x19c)]('!shell')+a0p[a9(0xea)](a9(0xe9))+a0p[a9(0x19c)]('exit')),console[a9(0x15c)](),'continue';if(r>=h)return y=!(-0x40e+0x123d+-0xe2f),console[a9(0x15c)](),console[a9(0x15c)](a0p[a9(0x105)][a9(0x142)](a9(0x16b))),console[a9(0x15c)](a0p[a9(0xea)](a9(0x179))+a0p[a9(0x19c)](a9(0xc9))+a0p['gray'](a9(0xe9))+a0p['white'](a9(0x102))+a0p[a9(0xea)]('\x20·\x20')+a0p[a9(0x19c)]('exit')),console[a9(0x15c)](),a9(0x1ad);console[a9(0x15c)](a0p['gray'](a9(0xeb)));try{const V=await g[a9(0x160)](k);process[a9(0x10f)][a9(0x17b)](a9(0x183)),r+=V['tokensUsed'];const {getRealExamState:W,saveExamState:X}=await import(a9(0xbc)),Y=W(),Z={};Z[a9(0x1a5)]=0x0,Z[a9(0xf4)]=0x0,(Y&&(Y[a9(0x118)]||(Y[a9(0x118)]=Z),Y['aiUsage']['ai4ctf']=r,X(Y)),console[a9(0x15c)](),a0z(V['text']),d(),function(a0,a1,a2){const aa=a9,a3=a0/a1*(-0xe0*0xe+0x7f9*-0x1+0x149d);a3>=-0x1f*0x83+-0x1*0x62d+-0x1*-0x1669&&!a2[aa(0x12a)]('95')?(console[aa(0x15c)](a0p[aa(0x105)]['bold'](aa(0x1a6)+Math[aa(0x130)](a3)+'%\x20of\x20section\x20AI\x20budget\x20used\x20—\x20only\x20~'+(a1-a0)+'\x20tokens\x20left.')),a2[aa(0xbb)]('95')):a3>=0x4*-0x914+0x4*0xc9+0x217c&&!a2[aa(0x12a)]('80')?(console[aa(0x15c)](a0p[aa(0x126)](aa(0x15b))),a2['add']('80')):a3>=0x1*0x1403+-0x41*0xf+-0x3*0x556&&!a2[aa(0x12a)]('50')&&(console[aa(0x15c)](a0p['gray'](aa(0x148))),a2[aa(0xbb)]('50'));}(r,h,f),console[a9(0x15c)]());}catch(a0){process[a9(0x10f)][a9(0x17b)](a9(0x183)),a0A(a9(0x15e)+a0[a9(0x119)]),console['log']();}return a9(0x1ad);}export function registerAi4ctfCommand(b){const ab=a0j;b[ab(0x115)](ab(0x1a5))[ab(0x168)](ab(0x187))['action'](async()=>{const ac=ab;a0x(ac(0x1a5));const {getRealExamState:j}=await import(ac(0xbc)),k=j(),p=k?.[ac(0x199)][ac(0xe1)](x=>x[ac(0x1a9)]>=-0x8b2+-0xb6b*-0x1+-0x29a&&x[ac(0x1a9)]<=-0xac7+-0x1d*0x103+-0x2*-0x1422);if(k&&p){const x=k[ac(0xff)]||0x26e3+-0x1701*0x1+-0x10f*0xf;if(x<-0x2*0x1a+0x9*-0x2e1+0x1a3c*0x1||x>0x2*0x75b+-0x1182+0x2f2*0x1)return console[ac(0x15c)](),console[ac(0x15c)](a0p[ac(0x126)](ac(0x13a))),console['log'](a0p['gray']('\x20\x20You\x20are\x20on\x20Q'+x+'.\x20Jump\x20there\x20first:')),console[ac(0x15c)](a0p['gray'](ac(0x191))+a0p[ac(0x142)][ac(0xcb)]('exam\x20q\x2031')),void console['log']();const z=k[ac(0x199)][ac(0x19e)](A=>A[ac(0x1a9)]===x);return z?void await async function(A,B){const ad=ac,{getRealExamState:C,refetchQuestionDataIfStale:D,materializeAttachedData:E}=await import(ad(0xbc));await D();const F=C();if(!F)return!(-0x1*0x1+-0x1*-0x79f+-0x79d);const G=F['questions'][ad(0x19e)](J=>J[ad(0x1a9)]===A);G&&(B=G),E(A,B?.[ad(0x151)]);const H=F[ad(0x118)]?.[ad(0x1a5)]??0x130*0xb+0x8a2+-0x1*0x15b2;if(H>=h)return console[ad(0x15c)](),console[ad(0x15c)](a0p[ad(0x126)](ad(0x1a4))),console[ad(0x15c)](a0p[ad(0xea)](ad(0xdb))+a0p['white']('exam\x20answer\x20'+A+ad(0xf5))),console[ad(0x15c)](),!(-0x2299+0xc53*0x2+0x9f4);try{g=await a0q(void(0x737*0x1+-0x12af*-0x1+-0x451*0x6),function(J,K){const ae=ad,L=J[ae(0x168)]||J[ae(0x17e)]||'',M=J['attachedData']?ae(0xe4)+K+ae(0x152)+J[ae(0x151)]:'';return ae(0x146)+K+',\x20'+J['category']+',\x20'+(J[ae(0xce)]||-0x1bdd+-0x2ba+0x1e9d)+ae(0x106)+L+M+ae(0xb8)+K+ae(0x1b0);}(B,A));}catch(J){return a0A(J[ad(0x119)]),!(-0x868*-0x1+-0x286*0xb+0x135b*0x1);}s=!(0x1677+0x5e+-0x16d5),r=H,y=!(0x389+-0x718*0x4+0x18d8),u={'qNum':A,'question':B,'usageField':ad(0x1a5),'enteredAt':Date[ad(0x120)](),'hintsUsed':new Set(),'submitAttempted':!(-0x2406*0x1+0x4ff+0x1f08),'nudgeShown':!(0x1f74+0x22f7+-0x426a)};const I=F[ad(0x13b)]?.[A];return function(K,L,M){const af=ad,N=a0w()[af(0x182)]||af(0x16e),O=r>-0x2*0xb29+0x1*0xfb5+0x1*0x69d;console['log'](),console[af(0x15c)](a0p['green']['bold'](af(0x12f)+L+':\x20'+K['category']+af(0xef))),O&&console[af(0x15c)](a0p[af(0xea)](af(0x176))),M&&console['log'](a0p['gray']('\x20\x20Current\x20answer:\x20')+a0p[af(0x126)](M)+a0p[af(0xea)]('\x20\x20(submit\x20again\x20to\x20change)')),console[af(0x15c)](),console[af(0x15c)](a0p[af(0xcb)](af(0x141))),console[af(0x15c)](a0p[af(0xcb)]('\x20\x20│\x20')+a0p[af(0x142)][af(0x19c)]('Q'+L+af(0x140)+K[af(0xe2)]+af(0x157)+(K[af(0xce)]||-0x1*-0x22d4+-0x2548+0x27a*0x1)+af(0x111))),console['log'](a0p[af(0xcb)]('\x20\x20│'));for(const P of String(K[af(0x17e)])[af(0x19a)]('\x0a')){const Q=P[af(0x167)]>0x1208+0x1d46+-0x2f12?P[af(0x181)](-0x1483+0x32b*-0xa+-0x1af*-0x1f,0x3*0x78b+0x23c3+-0x3a2b)+'...':P;console[af(0x15c)](a0p[af(0xcb)](af(0x1b5))+a0p[af(0x19c)](Q));}console[af(0x15c)](a0p[af(0xcb)]('\x20\x20│')),console[af(0x15c)](a0p['cyan'](af(0x1b5))+a0p[af(0xea)]('Full\x20question:\x20\x20')+a0p[af(0x19c)](af(0x127)+L)),console[af(0x15c)](a0p[af(0xcb)]('\x20\x20│\x20')+a0p[af(0xea)]('Flag\x20format:\x20\x20\x20\x20ICOA{...}')),console[af(0x15c)](a0p[af(0xcb)]('\x20\x20└─────────────────────────────────────────────')),console[af(0x15c)](),console[af(0x15c)](a0p[af(0x142)][af(0x19c)](af(0x155))),console[af(0x15c)](),console[af(0x15c)](a0p[af(0x126)](af(0x169))+a0p[af(0xea)](af(0xf0))),console['log'](a0p[af(0x126)](af(0x10b))+a0p['gray'](af(0x18f))),console[af(0x15c)](a0p[af(0x126)](af(0x19f))+a0p['gray'](af(0x103))),console[af(0x15c)](a0p[af(0x142)][af(0xd7)]('\x20\x20\x20\x20submit\x20ICOA{...}')+a0p[af(0xea)]('\x20Submit\x20your\x20flag\x20for\x20this\x20question')),console[af(0x15c)](a0p[af(0x19c)](af(0x16c))+a0p[af(0xea)](af(0xe6))),console['log'](a0p[af(0xea)](af(0xde))),console[af(0x15c)](a0p[af(0xea)](af(0x138))+a0p[af(0x19c)](af(0x13c))),console['log'](),console[af(0x15c)](a0p[af(0xea)]('\x20\x20\x20\x20exit')+a0p['gray'](af(0x1b4))),console[af(0x15c)](a0p['gray'](af(0xd3))+a0p[af(0xea)](af(0xfa))),console[af(0x15c)](),d(),console[af(0x15c)](a0p[af(0xea)]('\x20\x20Model:\x20Google\x20Gemma\x204\x20('+N+')')),console[af(0x15c)]();}(B,A,I),!(0x1564+-0x2133*0x1+0xbcf);}(x,z):void a0A('Q'+x+ac(0x17c)+x);}const q={};q[ac(0x19d)]=ac(0xc6),q['category']='Cryptography';const v=a0w()[ac(0x182)]||'gemma-4-31b-it',w=q;try{g=await a0q(w);}catch(A){return void a0A(A['message']);}s=!(0xe*-0x13+0xe*-0x10f+-0x7ee*-0x2),r=-0x2bf*0xb+0xa54+-0x7*-0x2d7,y=!(-0x950+-0xc25+0x1576),console[ac(0x15c)](),console[ac(0x15c)](a0p[ac(0xd7)]['bold']('\x20\x20═══\x20'+a0B(ac(0x1aa))+'\x20═══')),console['log'](),console[ac(0x15c)](a0p[ac(0x19c)]('\x20\x20'+a0B(ac(0xfe)))),console['log'](),console['log'](a0p[ac(0xcb)](ac(0x141))),console['log'](a0p[ac(0xcb)](ac(0x1b5))+a0p[ac(0x142)][ac(0x19c)](a0B(ac(0xf2)))),console[ac(0x15c)](a0p[ac(0xcb)](ac(0x134))),console[ac(0x15c)](a0p[ac(0xcb)]('\x20\x20│\x20')+a0p['white'](a0B(ac(0x154)))),console[ac(0x15c)](a0p[ac(0xcb)](ac(0x1b5))+a0p[ac(0xd7)](ac(0x18d))),console['log'](a0p['cyan'](ac(0x134))),console['log'](a0p[ac(0xcb)]('\x20\x20│\x20')+a0p[ac(0x19c)](a0B(ac(0x124)))),console[ac(0x15c)](a0p[ac(0xcb)](ac(0x1b5))+a0p['gray'](ac(0xd1))),console['log'](a0p['cyan'](ac(0x164))),console['log'](),console[ac(0x15c)](a0p[ac(0x19c)]('\x20\x20'+a0B(ac(0x11e)))),console[ac(0x15c)](),console['log'](a0p[ac(0x126)](ac(0x169))+a0p[ac(0xea)]('\x20\x20\x20\x20'+a0B('ai4ctfHintA'))),console[ac(0x15c)](a0p[ac(0xea)](ac(0xc8)+a0B(ac(0x123)))),console['log'](a0p[ac(0x126)]('\x20\x20\x20\x20hint\x20b')+a0p['gray']('\x20\x20\x20\x20'+a0B(ac(0xf8)))),console[ac(0x15c)](a0p['gray']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a0B(ac(0xdf)))),console[ac(0x15c)](a0p[ac(0x126)](ac(0x19f))+a0p[ac(0xea)]('\x20\x20\x20\x20'+a0B(ac(0x1b3)))),console[ac(0x15c)](a0p[ac(0xea)](ac(0xc8)+a0B(ac(0x14c)))),console[ac(0x15c)](),console[ac(0x15c)](a0p[ac(0xea)](ac(0x10c))),console['log'](a0p[ac(0x142)][ac(0x19c)]('\x20\x20'+a0B(ac(0xcc)))),console['log']('\x20\x20\x20\x20'+a0p[ac(0xcb)](ac(0x131))+a0p[ac(0xea)](ac(0x166)+a0B(ac(0xd5)))),console['log'](ac(0x16d)+a0p[ac(0xcb)](ac(0x19b))+a0p[ac(0xea)]('\x20\x20\x20→\x20'+a0B('ai4ctfHintTechnique'))),console[ac(0x15c)](ac(0x16d)+a0p[ac(0xcb)]('hint\x20c')+a0p[ac(0xea)](ac(0x166)+a0B(ac(0x1a1)))),console['log'](a0p[ac(0xea)](ac(0x16d)+a0B(ac(0x1a8)))),console[ac(0x15c)](),console[ac(0x15c)](a0p['white']('\x20\x20'+a0B(ac(0xca)))),console[ac(0x15c)](a0p[ac(0xea)]('\x20\x20'+a0B(ac(0xe8))+'\x20')+a0p[ac(0x19c)](ac(0x14f))),console[ac(0x15c)](),console[ac(0x15c)](a0p[ac(0x126)]('\x20\x20'+a0B('ai4ctfCommands'))),console[ac(0x15c)](a0p[ac(0x19c)](ac(0xda))+a0p[ac(0xea)](a0B('ai4ctfCmdHintLine'))),console[ac(0x15c)](a0p[ac(0x19c)](ac(0x13e))+a0p[ac(0xea)](a0B('ai4ctfSubmitCmd'))),console[ac(0x15c)](a0p['white']('\x20\x20\x20\x20!<shell\x20cmd>\x20\x20\x20\x20')+a0p[ac(0xea)](a0B(ac(0x185)))),console[ac(0x15c)](a0p['gray'](ac(0x138))+a0p['white']('!echo\x20aWNv...\x20|\x20base64\x20-d')),console['log'](a0p[ac(0xea)](ac(0xf7)+a0B(ac(0x133)))),console[ac(0x15c)](),d(),console[ac(0x15c)](a0p[ac(0xea)]('\x20\x20'+a0B('ai4ctfModel')+':\x20Google\x20Gemma\x204\x20('+v+')')),console[ac(0x15c)](a0p['gray']('\x20\x20'+a0B(ac(0x116)))),console[ac(0x15c)]();});}function a0b(){const ag=['ywLvC2fNzq','BwvZC2fNzq','icaKia','ihrVig1VDMuGB24','icaGicaGigHPBNqGyYaGia','DgHPBMTPBMC','ywK0y3rMtgv2zwXZ','ywK0y3rMv3jHCff1B3rHqG','BM93','AgLUDcbJ','ihjLy29YzgvKoIa','ywK0y3rMsgLUDefvC2vZ','ywK0y3rMrgvJB2rL','DxrMltG','EwvSBg93','zxHHBsbXia','C3vIBwL0igLJB2f7DZnSyZbTzv8Yx2fPngn0zN0','icbozxH0oIa','AgfZ','icbfCNjVCJOG','ywK0y3rMv3jHCff1B3rHqKHPBNq','icaGicaGigHPBNqGyIaGia','icbr','icdILzdILzdILzaGquK0q1rgiokaLcbr','CM91BMq','AgLUDcbH','icbezxrLy3rLzcbMBgfNiokaLcb0CMvHDgLUzYbHCZOG','ywK0y3rMrw5Ku2vZC2LVBG','icdILii','ywK0y3rMtg9JA2vKvgL0Bgu','ihDPBgWGB3bLBIbr','mti0ntiZyNDosKvs','icaGicaGicaGicaGicaGicaGicbLlMCUia','ywK0y3rMvgHPBMTPBMC','icbHAtrJDgyGAxmGyxzHAwXHyMXLig9UifeZmEkaKZm4icHbstrdveyGC2vJDgLVBIKU','yw5ZD2vYCW','iMHVDYbKBYbjigrLy3j5ChqGquvtluncqYbPBIbqExrOB24/iG','sgLUDca','icaGihn1yM1PDca8zMXHzZ4Gica','C3vIBwL0ieLdt0f7Ew91CL9MBgfNFq','icbB','icdILiZILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','yM9Sza','ywK0y3rMrMXHz0HPBNq','icaGicaGicaGia','ywK0y3rMtg9JA2vKvxnL','ww91igfYzsbHBIbbssb0zwfTBwf0zsbOzwXWAw5NigeGy29UDgvZDgfUDcbZB2X2zsbHBIbjq09bidiWmJyGy3LIzxjZzwn1CML0EsbLEgfTihf1zxn0Aw9UlGOkq1vsuKvovcbrvuvtveLptIaOuq','icbbssbIDwrNzxqGzxHOyxvZDgvKigzVCIbbstrdveyGC2vJDgLVBI4','icboB3rLoIa1mcuGB2yGC2vJDgLVBIbbssbIDwrNzxqGDxnLzc4','icbgBgfNigzVCM1HDdOG','C3rHCNrZv2L0Aa','ywK0y3rMv3jHCff1B3rHqW','ywK0y3rMsgLUDenvC2vZ','zxHPDa','ywK0y3rMuMv2zwfStg9JA05VDgu','iNDOyxqGzw5JB2rPBMCGAxmGDgHPCZ8I','ywK0y3rMrgvJB2rLza','yxr0ywnOzwreyxrH','lNr4DcbPBNnPzguGDgHLignVBNrLC3rHBNqNCYbZyw5KyM94iokaLcbWyxrOigLZihjLBgf0AxzLihrVihrOzsbZyw5KyM94j3mGl2HVBwuVy29TCgv0AxrVCIb3B3jRAw5NigrPCMvJDg9YEsWGCMvHy2HHyMXLigzYB20Gyw55icfZAgvSBcaVicfWExrOB24ZigLUDM9JyxrPB24PoGO','mJiXmtqZnMzzDhj3uW','ywK0y3rMsw50zxjJzxb0zwq','icbiB3CGDg8GD29YAYb0AgLZihf1zxn0Aw9U','ywK0y3rMv3jHCff1B3rHquHPBNq','xsaGWRCG','C3vIBwL0ia','lZuWmda','ywK0y3rMrxHPDe5LEhruAxrSzq','icdIMQaGodaLig9MihnLy3rPB24GquKGyNvKz2v0ihvZzwqU','Bg9N','q29UDgvUDc1uExbL','quKGzxjYB3i6ia','C3vIBwL0ieLdt0f7lI4UFq','C2vUze1LC3nHz2u','icdILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','ywK0y3rMv3jHCeXPBMuYsgvHza','ywK0y3rMv3jHCff1B3rHC1rPDgXL','icdILjtILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','Dg9mB3DLCKnHC2u','icaG4OAsia','BgvUz3rO','zgvZy3jPChrPB24','icaGigHPBNqGyq','yw5ZD2vYx3n1yM1PDhrLza','icdIMQaGquK0q1rgihrVA2vUigj1zgDLDcbLEgHHDxn0zwqGkdi1ldaWmcb1C2vKks4','icaGicfWExrOB24Zic4UlG','icaGia','z2vTBweTnc0ZmwiTAxq','icaGicaGicaGicaG','iIbSB29RCYbSAwTLigfUie1dusbSzxr0zxiSig5VDcbHigzSywCU','mJrhtfHVuva','mJe0mta2nw5lC1jeDG','ywK0y3rMv3jHCfrPDgXL','ndCZmdqZtLnmvLft','y2f0y2G','icaOCMvZDw1PBMCG4OcuihbYAw9YignOyxqGAxmGBM90ihjLBwvTyMvYzwqSigj1Dcb0B2TLBNmGywXYzwfKEsb1C2vKihn0yxKGzgvKDwn0zwqP','DhjPBq','DMLHigfPngn0zIbJAgf0','icbzB3uGy2fUihn0AwXSoIa','ywK0y3rMv3jVBMDgBgfN','D3jPDgu','ig5VDcbMB3vUzcbPBIbZDgf0zs4Gvhj5oIbLEgfTiheG','DgLTzw91Da','Dgv4Da','ywK0y3rMsgLUDee','icaGicHhCMfKAw5NigHHChbLBNmGyxqGzxHHBsbZDwjTAxqG4OcuihLVDsbJyw5UB3qGChjLDMLLDYbJB3jYzwn0BMvZCYbKDxjPBMCGDgHLigv4yw0Ukq','C2XPy2u','z2vTAw5Ptw9KzwW','g1SXqrTBmKS','icaGicaGigHPBNqGysaGia','ywK0y3rMq21Ku2HLBgXmAw5L','sunpqxT5B3vYx2zSywD9','q2HHDcb3AxrOihLVDxiGquKGDgvHBw1HDgu','icbszxn1Bwu6ia','BM9KztPJAgLSzf9WCM9JzxnZ','icbbstrdveyGC2vJDgLVBIbJB21WBgv0zsdIGjqG','Dg9ju09tDhjPBMC','ywK0y3rMv3jHCeXPBMuXsgvHza','yvDoDLLyDdnnmNHQtuCXBfH6sMzzv2SWwtnsBwzrpt0','mtiYnta3muv0B2fKtW','icaGicaGicaGicbuzwnOBMLXDwuGAgLUDcaOChjLlxDYAxr0zw4P','nty2mZa1mevSEfvJDq','icaGiokgKIa','C2L6zq','Dg9vChbLCKnHC2u','icdcTYaGuMuTzw50zxi6ia','ywK0y3rMv3jHCe5VuhjVzW','ywK0y3rMuMv2zwfSvgL0Bgu','Dg9Rzw5ZvxnLza','igfNywLUihrVignOyw5NzsWGB3iG','CxvLC3rPB25Z','C3bSAxq','AgLUDcbI','D2HPDgu','BMfTzq','zMLUza','icaGigHPBNqGyW','ywK0y3rMsgLUDe5LEhrb','ywK0y3rMsgLUDfbYAw5JAxbSzq','ywK0y3rMuMv2zwfSqM9KEq','icaGifn0DwnRpYbuCNK6ia','icdIMQaGww91CIbbstrdveyGDg9Rzw4GyNvKz2v0igLZigv4Agf1C3rLzc4','ywK0y3rM','icdIMQaG','iokaLcb0ExbLia','ywK0y3rMv2vSy29Tzu5VuMv2zwfS','BNvTyMvY','ywK0y3rMvgL0Bgu','Bwf0y2G','zw5JB2rPBMC','y29UDgLUDwu','ig5VDcbMB3vUzcbPBIbZDgf0zs4','AgLUDhnvC2vK','lNr4DcaOAw5ZAwrLihrOzsbZyw5KyM94ksbYyxrOzxiGDgHHBIbHC2TPBMCGDgHLignVBNrLC3rHBNqGDg8GCgfZDguGDgHLihDOB2XLigjSB2iGyMfJAY4klsblzwvWihjLC3bVBNnLCYbJB25JAxnLigfUzcbWCMfJDgLJywWUifrOAxmGy29UDgvZDgfUDcbOyxmGBgLTAxrLzcb0Aw1LlG','ywK0y3rMv291BgrfyxjU','C3rYAw5NAwz5','ywK0y3rMsgLUDem','icaGicaGicaGicaGieXLyxzLignOyxqSihjLDhvYBIb0BYbLEgfT','icdILiiG','cGPzt1vsifjvtevtoGOTifLVDsbnqvKGzxHWBgfPBIbJB25Jzxb0CYWGzgvZy3jPyMuGyxbWCM9Hy2HLCYWGyw5KigHLBhaGDgHLignVBNrLC3rHBNqGCMvHC29UihrOCM91z2GGDgHLihbYB2jSzw0UcI0Gww91ie1bwsbKAxnJDxnZihrOzsb0zwnOBM9SB2D5igLUDM9SDMvKicHbrvmSihb3BNrVB2XZlcbqExrOB24GC3rYDwn0lcbivfrqlcbLDgmUks4klsbzB3uGtufzigHLBhaGzgvIDwCGuhL0Ag9UignVzguGDgHLignVBNrLC3rHBNqGD3jPDgvZlGOTifLVDsbnvvnuie5pvcbYzxzLywWGDgHLigzSywCGzgLYzwn0BhKUcI0Gww91ie1vu1qGtK9uig91Dhb1DcbHBNKGC3rYAw5Nig1HDgnOAw5NieLdt0f7lI4UFsbVCIbPy29HEY4UlN0UcI0Gww91ie1vu1qGtK9uihrLBgWGDgHLignVBNrLC3rHBNqGDgHLigv4ywn0igfUC3DLCIb0BYb0AgLZihf1zxn0Aw9UlGOTifLVDsbnqvKGC3vNz2vZDcb3AgLJAcb0B29Sic8GBgLICMfYEsaVihrLy2HUAxf1zsb0BYb1C2uUcI0Gv2HLBIbZDwDNzxn0Aw5NihnOzwXSic8GChL0Ag9UihnUAxbWzxrZihrOyxqGBMvLzcb0AguGyxr0ywnOzwqGzgf0ysWGCMvMzxiGDg8GDgHLigzPBguGCgf0AcbJAgfSBgvUz2vZl3e','Dg9Rzw5mAw1PDa','ywK0y3rMuMv2zwfSu2vLrMXHzW','ywrK','lI4VBgLIl2v4yw0TC3rHDguUANm','mta3mdK4nu9izvnxqG','CgfKrw5K','DgvZDa','vg9Rzw5Z','CMvWzwf0','ywK0y3rMrxHPDenTze5LEhq','mKHhy0jIrq','q29TBwfUzcbMywLSzwq','cIaG','sgLKzgvUie1LC3nHz2u','BwvUDq','icaGicaGicaGicaGica','C3vIBwL0idXMBgfNpG','ywK0y3rMt3jdAgf0','y3LHBG','ywK0y3rMv2vSy29Tzun0yq','icaI','Cg9PBNrZ','iokaLca','lIbuCNKGywDHAw4GAw5ZAwrLihrOAxmGy2HHDc4','rMXHzYbMB3jTyxq6igLJB2f7lI4UFq','icdINjmGuq','icaGig1LBNu','icbtDgLSBcbHDMfPBgfIBgu6ia','ywK0y3rMsgLUDe51zgDL','AwnVyxT3m2XJmg1LxZjFywK0y3rMFq','z3jLzw4','icdILRGG','ihrVignVBNrPBNvL','icaGigHPBNqGysaVigiGlYbJica','icbzB3uGy2fUihn0AwXSihn1yM1PDcbHigzSywCGzgLYzwn0BhK6ia','ywK0y3rMsgLUDejcB2r5','ywK0y3rMv3jHCff1B3rHrM9VDgvY','icaGieP1C3qGDhLWzsbMCMvLBhKGDg8Gy2HHDcb3AxrOihrOzsbbssb0zwfTBwf0zs4','ywK0y3rMsgLUDejvC2vZ','E25VuhjVz30','C29Tzq','y2f0zwDVCNK','yw5ZD2vYx2nOyw5Nzwq','cGPbvfrbq0HfrcbeqvrbicHHBhnVihnHDMvKihrVignOywXSzw5NzxmVCq','zw50zxjLzef0','icaGicbsDw4GuhL0Ag9UigLUihnOzwXS','icaGicaGicaHzwnOBYbHv052wvH0m00YEgPnrZfSwhPkzLLxAZbzm1jTzLe9psb8igjHC2u2ncaTza','ywK0y3rMt3jdAgf0rxHHBxbSzq','imk3ia','z3jHEq','icbuAgLUA2LUzY4UlG','ywK0y3rMvg9Rzw5Z','CxvPDa','quK0q1rgihnLy3rPB24','iokvKokvKokvKa','icaGicaGicaGicbbigDLBNrSzsbUDwrNzsaOChjLlxDYAxr0zw4P','ywK0y3rMoIa','ywK0y3rMq2HHBgXLBMDL','Aw50zxjHy3rPB25Z','y3rMngfP','ieLdt0f7lI4UFq','BNvKz2vtAg93BG','icaGigv4AxqGicaGicaGicaGica','ywK0y3rMsgLUDei','ywK0y3rMrxHPDe5LEhrtDwi','icaGicaGicaGicaGifjLDhvYBIb0BYbTywLUig1LBNuGkhDVCMTZigfUExDOzxjLkq','icaGicaGicbPy29HE3CZBgmWBwvFmL9HAtrJDgz9','igfUC3DLCIb1CgrHDgvKoIa','ywK0y3rMsgLUDe5LEhrd','ywK0y3rMu2fTCgXL','x2XHC3rr','BwLU','ywK0y3rMv3jHCe5LEhrcB2r5','ixnOzwXS','icaGicaGicaGicblzxKGyNjLywT0AhjVDwDOicHWCMuTD3jPDhrLBIK','CMvWBgfJzq','CMvK','ihbVAw50CYK6cG','icaGideUia','ywK0y3rMuMv2zwfSvgHLBLn1yM1PDa','oIbhB29NBguGr2vTBweGncaOz2vTBweTnc0ZmwiTAxqP','yMfJAW','icaGigHPBNqGyG','icdILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','ywK0y3rMrM91BMrgBgfN','ywK0y3rMsgLUDencB2r5','C3rKB3v0','ohrgshnxzW','ihb0CW','Cu51Bq','yxbWBgLJyxrPB24VANnVBG','AM9PBG','y29TBwfUza','ywK0y3rMrxHPDa','ue9tva'];a0b=function(){return ag;};return a0b();}
@@ -1 +1 @@
1
- (function(z,B){const aX=a0B,F=z();while(!![]){try{const G=parseInt(aX(0x1f6))/(0xb*0xd3+-0x24fe+0x1bee)+parseInt(aX(0x1f9))/(0x1*0x213d+-0x708+-0x1a33)+-parseInt(aX(0x117))/(-0x1e70+0x10c*-0x19+-0x389f*-0x1)*(parseInt(aX(0x33e))/(-0x259f+0x34e*-0x7+0x3cc5))+-parseInt(aX(0x219))/(0x4d5*-0x1+-0x1b37*-0x1+-0x5*0x479)*(parseInt(aX(0x396))/(-0xe*0x8e+0x147b+0x43b*-0x3))+-parseInt(aX(0x2f6))/(-0x3*-0x29d+0x225d+-0x2a2d)*(parseInt(aX(0x2eb))/(0x1651+0x1d01+0x1f9*-0x1a))+-parseInt(aX(0x203))/(0x2*0xea2+-0x12f0+0x5*-0x20f)+parseInt(aX(0x1a1))/(0x142a+-0x544*0x1+-0xedc);if(G===B)break;else F['push'](F['shift']());}catch(H){F['push'](F['shift']());}}}(a0z,0x6bf8a+0xbd41*0xa+0x1*-0x687bb));import a0L from'chalk';import{confirm as a0Q}from'@inquirer/prompts';import{ExamClient as a0V}from'../lib/exam-client.js';import{getConfig as a0W,saveConfig as a0X}from'../lib/config.js';function a0B(a,b){a=a-(0x12f7+0x63e+-0x18a1);const c=a0z();let d=c[a];if(a0B['htodTj']===undefined){var e=function(i){const j='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let l='',m='';for(let n=0x1*-0xf82+0x242a+-0x14a8,o,p,q=-0x174f+-0x10cf+-0x1a*-0x18b;p=i['charAt'](q++);~p&&(o=n%(-0x229*0x7+0x15f0+-0x6cd)?o*(0x24bd+0x2632+-0x4aaf)+p:p,n++%(-0x1fa2+-0x1a38+0x1cef*0x2))?l+=String['fromCharCode'](0x13a4+0x9c*-0x39+0x1017&o>>(-(-0x1*-0x2333+-0xf8d+-0x346*0x6)*n&-0x1*-0x1049+0x246c+-0x34af)):-0x1743+-0x135d+0x2aa0){p=j['indexOf'](p);}for(let r=-0x183a+-0x13c5+0x7*0x649,s=l['length'];r<s;r++){m+='%'+('00'+l['charCodeAt'](r)['toString'](0x4f*0x6+-0xa91+0x8c7))['slice'](-(0x275*0x3+0x1a2c+-0x2189));}return decodeURIComponent(m);};a0B['DdtAKR']=e,a0B['PyzZSt']={},a0B['htodTj']=!![];}const f=c[-0x1204*0x2+-0x2*-0x12c4+-0x10*0x18],g=a+f,h=a0B['PyzZSt'][g];return!h?(d=a0B['DdtAKR'](d),a0B['PyzZSt'][g]=d):d=h,d;}import{getExamState as a0Y,saveExamState as a0Z,clearExamState as a0a0,getExamDeadline as a0a1,materializeAttachedData as a0a2}from'../lib/exam-state.js';import{getDemoStats as a0a3,recordDemoAttempt as a0a4,saveRetryQueue as a0a5,getRetryQueue as a0a6,clearRetryQueue as a0a7}from'../lib/demo-stats.js';import{logCommand as a0a8}from'../lib/logger.js';import{printSuccess as a0a9,printError as a0aa,printWarning as a0ab,printInfo as a0ac,printTable as a0ad,printHeader as a0ae,printKeyValue as a0af,createSpinner as a0ag,formatCountdown as a0ah}from'../lib/ui.js';import{t as a0ai}from'../lib/i18n.js';import{getDeviceFingerprint as a0aj}from'../lib/access.js';function a0z(){const bK=['CxvLC3rPB25dB3vUDa','tMfTzq','icdIHPiGia','icdIMQaGifjLC2v0ihDPBgWGywjHBMrVBIb5B3vYign1CNjLBNqGzxHHBsbZzxnZAw9Uig9UihrOAxmGzgv2AwnLlG','icaGihn1zg8Gyxb0igLUC3rHBgWGlxKGChL0Ag9UmY4XmIbWExrOB24ZlJeYlxzLBNyGChL0Ag9UmY4XmI1KAxn0DxrPBhm','icbuBYbJB250Aw51zsb0AgLZigv4yw06','CMv2Awv3','CMvWBgfJzq','ndvAvMjvAwK','sw5ZDgfSBcbqExrOB24Gzw52AxjVBM1LBNqGzM9YihbYywn0AwnHBcbLEgfTihf1zxn0Aw9UCW','t24GDgHLig1VBMv5lG','sw5KB25LC2LH','Cgf1C2u','tM90ignVBM5Ly3rLzc4GuNvUoIbQB2LUidX1CMW+','icaGrwXHChnLzdOG','icdILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILie','icaGicaGicaGkgn0zJrHAsK','yNjLDYbSAw5Ric0TB3zLCNDYAxrLihb5DgHVBKaZlJeY','vhj5igeGzNjLzsbWCMfJDgLJzsbLEgfTicHUBYbHy2nVDw50ig5LzwrLzcK','igfUC3DLCNmU','igzVCIb0AgLZihnLy3rPB24','icHxu0WYkq','ihbYB21WDcWGANvZDcbSAwTLihrOzsbKzw1V','rxHHBsbZDgfYDgvKisbuAw1LCIbPCYbYDw5UAw5NlG','ixb5DgHVBJmGC29SDMuUChK','rxHHBsbfBNzPCM9UBwvUDcbtzxr1Ca','igfUC3DLCMvK','icbezxrLy3rLzdOG','ihbVAw50C10','zwDNnW','C3vIBwL0ieLdt0f7Ew91CL9MBgfNFq','icaGigjYzxCGAw5ZDgfSBcbWExrOB25amY4XmG','ic1JicjPBxbVCNqG','DgLTzw91Da','BM9KztPJAgLSzf9WCM9JzxnZ','C3vJy2vLza','icbpChrPB25ZigHHDMuGyMvLBIbYzxnODwzMBgvKlG','AgvSCf91C2vK','sw52ywXPzcb0B2TLBG','D3jPDgu','icaGicaGifrOzw4GAw5ZDgfSBcbqExrOB246','C3rHCNrLzef0','icbfEgfTCgXLoIa','q29UDgvUDc1uExbL','icbzB3vYigfUC3DLCJOG','C19HAtrJDgy','zw50CMLLCW','uhjLCgfYAw5NlI4U','Dg9ju09tDhjPBMC','rMfPBgvKihrVihn0yxj0igv4yw0','CMvWzwf0','icaGihn1zg8GywrKlwfWDc1YzxbVC2L0B3j5ihbWytPKzwfKC25HA2vZl3bWysaTEq','icaGifb5DgHVBJOG','zxHHBsbZDwjTAxqG','icaGidmUieLUC2LKzsbvyNvUDhuSigLUC3rHBgWGtM9Kzs5QCYaYmIaRifb5DgHVBIb0B29SCYaRigLJB2e6','icbozwvKig1VCMu/ifr5Cgu6ia','z3jHEq','icHLEhbSB3jLicyGzxHWzxjPBwvUDcK','C3bSAwnL','x3n1yM1PDenVBMzPCM1Lza','AhrWsNvTCa','ixzPihnVBhzLlNb5','uhjLCgfYAw5Nigv4yw0Gzw52AxjVBM1LBNqUlI4','icdINjmG','icbjq09bidiWmJyGWRCGu3LKBMv5lcbbDxn0CMfSAweGWRCGsNvUidi3iokaKYbkDwWGmG','icbuAw1LoIaGica','icaGicaGC3rHCNqGuhL0Ag9UihnOzwXS','u2nVCMu','lI4VBgLIl2nVBMzPzY5QCW','icbtDgfYDcbHifb5DgHVBIbZzxnZAw9Ulcb0ExbLignVBw1HBMrZig9UzsbIEsbVBMu6','icbvC2u6igv4yw0GCMv2Awv3imk3igv4yw0GC3vIBwL0','u291DgGGqwzYAwnH','icbtDhvJAZ8Grw1HAwWGEw91CIbZzwXLy3rPB24Gy29VCMrPBMf0B3iGD2L0Acb0AguGC2nYzwvUC2HVDcbHyM92zs4','icaGicaGicbLBNrLCIbdvey0quKGy2HHDcdIGjqGyxr0ywnRihrOzsbbssb0yxjNzxqGkhjLy29TBwvUzgvKkq','ihrVihDPCguGBg9JywWGC3rHDguSihrOzw4GCMuTzw50zxiGDgHLig5LDYb0B2TLBI4','y2vPBa','icaGWRCGmtuSmdaWkYbJB25JDxjYzw50ihbHCNrPy2LWyw50CW','A2v5','zgfYD2LU','rMXHzYbHihf1zxn0Aw9UihrVihjLDMLLDYbSyxrLCIaODg9Nz2XLCYK','C3vKBYbHChqGAw5ZDgfSBcaTEsbWExrOB24ZlxbPCcbWExrOB24ZlxzLBNy','cIaG','BwLZC2LUzW','vw5HBNn3zxjLza','tM8GzxHHBxmGyxzHAwXHyMXLigzVCIb5B3vYignVDw50CNKGEwv0lG','y2HHBMDLzcbMCM9Tia','zxHHBsbKzw1V','zxHHBq','icdILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','EwvSBg93','zgvTBY1LEgfT','C3vIBwL0ieLdt0f7lI4UFq','Dg9tDhjPBMC','Axnoyu4','AhrWtMf2','icaGicaGigvUDgvYifzmqsbHDhrHy2SGBw9KzsbMB3iGDgHPCYbXDwvZDgLVBIaOCMvJB21Tzw5KzwqP','Aw5JB3jYzwn0sw50CM8','zxHHBsbZDwjTAxqGy29UzMLYBq','icaGigHLBha','zxHPDa','y2XLyxi','icbszwfKEt8GvxnLia','Dw5KzxjSAw5L','CgvYzMvJDfnJB3jL','drTBmKSGia','y3rMngfP','C2vZC2LVBG','zxHHBvDHExntAgvSBa','Dg9mB3DLCKnHC2u','icdWN5Miie1HEcaYigHLBhbZihbLCIbXDwvZDgLVBIdIGjqGEw91igfSCMvHzhKGAgf2zsbHiduWlZuWiq','qw5ZD2vYihf1zxn0Aw9Uie4GkeeVqI9dl0qGzM9Yie1dusWGsunpqxTMBgfNFsbMB3iGChjHy3rPy2fSkq','yw5ZD2vYCW','C3rVCa','sgfJAYb0AguGquKNCYbNDwfYzhjHAwXZ','rvHqsvjfra','icbnzxrOB2qGmtOGt25LlwXPBMvY','icaGicdcTYbtzxbHCMf0zsbIDwrNzxq6ia','rxHHy3rSEs4','ChjLlxDYAxr0zw4GCgvYihf1zxn0Aw9U','CdmW','khbYzxnZigfUEsbRzxKGDg8GC2TPCcK','icHJB21WBgv4ihnVBhv0Aw9UCYK','AgvSCfvZzwrvCa','y3LHBG','tMf0Aw9UywWGC2vSzwn0Aw9Uigv4yw0','icbdyw5JzwXSzwqU','icHr','zgvHzgXPBMvtzxj2zxjnCW','uhL0Ag9Uia','icbzB3uGy2fUihbHDxnLihDPDgGG','icaGicbuAguGDg9Rzw4GAxrZzwXMigLZie5pvcbYzxzVA2vKihnLCNzLCI1ZAwrLlIbjzIb5B3vYihnLC3nPB24GAxm','icbqCMfJDgLJAw5Nia','icaGimk3ia','l2fUC3DLCG','y3vYBcaTzNnttcbODhrWCZOVl2rLyI5UB2rLC291CMnLlMnVBs9Zzxr1Cf8YmI54ihWGC3vKBYaTrsbIyxnOic0','icaGicaGC3vKBYbHChqGAw5ZDgfSBcbWExrOB24ZlJeYihb5DgHVBJmUmtiTDMvUDG','CgfKu3rHCNq','icbnzxrOB2qGmZOGu2nYAxb0igzPBgu','ChL0Ag9UvMvYC2LVBG','icaGicaGia','icdILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','u3rHCNqGyw4GzxHHBsaOyMvNAw5ZihrPBwvYkq','icaGicbjBNnPzguGy2HHDdOGicaG','ihvUzMXHz2DLzc4','oJaW','icaGicbfEgL0ignOyxq6icaGicaG','icaGu3LKBMv5lcbbDxn0CMfSAweGimk3icbkDw4GmJCG4OctieP1BcaYlcaYmdi2','icaG','wYbDica','ks4Gww91j3jLig9UihLVDxiGB3DUisdWN5kQ','DMXH','uhjVz3jLC3m','uM9VBsb0BYbNCM93oIaGia','icdINjmGCgLWigLUC3rHBgXLza','ihvUyw5ZD2vYzwq6ia','Aw5ZDgfSBgvKugfJA2fNzxm','ChjLDG','icaGDgHLig9Yz2fUAxPLCIbPBIb5B3vYignVDw50CNKU','icdIMQaGieXfu1mGveHbtIaXie1jtLvursbmruzu','icaGid4+pIbMCM9TienYExb0BY5dAxbOzxiGAw1WB3j0ieffuW','rxHHBsaI','icaG8j+AGcaGu2vJDgLVBIaYoIbbstrdveyG4OcuiefjigLZihLVDxiGDgvHBw1HDgu','zNjVBq','icaGicbbssb0B2TLBNm6icaGicaG','r0vu','vgLTzsbszw1HAw5PBMC','icaGicaGicaGia','Dg9vChbLCKnHC2u','zNvUy3rPB24','t3rOzxi','vxnLicjLEgfTihjLDMLLDYiGDg8Gy2HLy2SGChjVz3jLC3mGB3iGiMv4yw0GC3vIBwL0iIb0BYbZDwjTAxqU','icaGidmUifjLC3rHCNqGAwnVysbHBMqGCMv0CNK6','ig9YigXLyxzLihDPDgGG','rMXHz2DLzdOGica','u2v0DxaGzMfPBgvKiokaLcaWig9Mia','vw5PDgvKieTPBMDKB20','icaGieHLBha6icaGideWihvZzxmGkYa1igHPzgrLBIbIB251CYaOtunrig9UBhKP','vhLWztOGzgvTBYb0BYbZDgfYDcbHz2fPBI4','zxHHBsbZDwjTAxq','uMvHzhKH','iokaLcbZzwuGzNvSBcbLCNjVCG','z3jHzgLUzW','icaG8j+oRYaGu2vJDgLVBIaZoIbdvey0quKG4OcuienOywXSzw5Nzsb0AguGquK','l3n1yM1PDa','C3rYAw5NAwz5','zw1VAMK','ywXS','y2f0','BNvTChK','DdeW','icbkDw1WihrVigeGzMXHz2DLzcbXDwvZDgLVBJOG','ChDUDg9VBhm','BMfTzq','zxHHBsbTB3jLlwHLBha','iokaLcb5B3uGy2fUBM90ignOyw5Nzsb0AgvTigfMDgvYihn1yM1PDc4','CgfKrw5K','icbszxj1BIb3AgvUigzPEgvKoIa','ls11C2vYic0TyNjLywSTC3LZDgvTlxbHy2THz2vZ','vMLLDYbLEgfTihjLC3vSDa','yw5ZD2vYx2nOyw5Nzwq','icbpCIbKB3DUBg9HzcbPBNn0ywXSzxi6','icbzB3uGD2LSBcbZDwjTAxqG','oIdIGjq','ic1TihbPCcbZAg93ici','tgfVCW','icaGu3LKBMv5lcbbDxn0CMfSAweGWRCGsNvUidi3ic0GsNvSidiSidiWmJy','CMvZDw1L','icaGigXHBMC','icdINjmGuhL0Ag9Uia','r3jHzgLUzY4UlG','zMXVB3i','lIboBYb0Aw1LCI4GrNjLzsbWCMfJDgLJzs4','qw5ZD2vYihnVBwuGCxvLC3rPB25ZigzPCNn0oIbLEgfTiheGmq','y2XVy2TpzMzZzxrnCW','C3rHCNq','icbxCML0zsbHic5WEsbMAwXLlcb0AgvUihj1BIbPDdO','ig1PBIbYzw1HAw5PBMC','icbozxCGzxHHBxmGyxjLignVBwLUzYbZB29Uiq','ntzQBu5vAMK','zxHHBvDHExnuB1nVBhzL','x2vSAw1PBMf0zwq','yxbWBgLJyxrPB24VANnVBG','icbfEhbLy3rLzdOGms0Yig1PBNv0zxmGWRCGFJe1me1cigrPC2S','icaGid4+pIbRzxKGpsbIExrLCY5MCM9TAgv4kci0otqZngy0ms4UlIiP','AhrWtw9YzuHLBha','icdWN5kHie9WDgLVBIa','u291DgGGs29Yzwe','zxHHBsbZDgfYDca','icaGutm54OctndaGkdiGCxvLC3rPB25Zimk3ide2ihb0CYbLywnOiokaLcbOAwDOzxn0ihzHBhvLisK','mZm1nJu3yuvXu2TI','CMvZDwX0ifTPzf0','icaGid4+pIbWCMLUDcHJAxbOzxiUzgvJCNLWDcHKyxrHksK','zgvTBY1YzxrYEq','yMvZDfbLCMnLBNrHz2u','icbuB2TLBJOGica','icboyxrPB25HBcbsB3vUzcaXifnLBgvJDgLVBIbLEgfTCYbHCMuGyMvPBMCGChjLCgfYzwqU','ic1TigvUC3vYzxbPCcaTlxvWz3jHzgu','CsbBBL0','uxvLC3rPB24G','z2v0vgLTzq','zhvYyxrPB25nAw51DgvZ','icHXDwLJAYb0yxnRCYK','y291BNrYEq','q291BgqGBM90igLUC3rHBgWGCgLWiokaLcbWAxaGAxmGBM90igLUC3rHBgXLzcbVBIb5B3vYihn5C3rLBs4','BMv3','icaGihzSytrJDgy','ig1PBG','uMvJB21Tzw5Kzwq6ignVBxbSzxrLigrLBw8GzMLYC3q','icaG4PAi4PAi4Pwr4PAi4PAi4PwricaGicdILOJILOJILzeGicdILOJILOJILzhILOJILOJILOJILOJILOJILOJILOJILze','igLUC3rHBgXLza','yw5ZD2vYzwq','lI4VBgLIl2v4yw0TC3rHDguUANm','Cg9PBNrZ','icdILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILie','ugXLyxnLihbYB3zPzguGEw91CIbMBgfNoIbLEgfTigfUC3DLCIa8BJ4GsunpqxT5B3vYx2zSywD9','icbtDgfYDdOGzxHHBsbZDgfYDca8Awq+','icaGifnVBwuGCgfJA2fNzxmGkhb3BNrVB2XZlcbZy2fWEsKGBwf5ig5VDcbOyxzLihDOzwvSCYb5zxqGzM9YidmUmtmU','igf0igfUEsb0Aw1LlG','D2LUmZi','zxHHBsbZzxr1Ca','Aw5JBhvKzxm','ANnVBG','ig1PBNv0zxm','ywrK','icboBYbHy3rPDMuGzxHHBsbZzxnZAw9UihrVihjLC2v0lG','Dw5TyxjRifTUxq','AwnVyt4','mJuSmdaW','x2HLBhbqzxjr','icaGs2v5igrPzMzLCMvUy2vZigzYB20GquK0q1rg','Dg9Rzw4GpgnVzgu+','y3rMzfvYBa','Bsb0B3rHBa','CMvNzxG','icbbBNn3zxjZoIa','Dg9Vx29Sza','C3bSAxq','DgvZDa','iIbPCYbPBIbWCM9NCMvZCY4','DhjPBq','C29YDa','icaGicfWExrOB24ZihnVBhzLlNb5','Ag93vg9qBgf5','zxHHBsbXide','CM91BMq','icbgCMvLihbYywn0AwnLimk3ie5VigfJy291BNqGBMvLzgvKimk3ie5VihrPBwuGBgLTAxq','Bwf0y2G','icdILRGG','icaGicdILQmG','qwjHBMrVBIbJDxjYzw50igv4yw0GC2vZC2LVBIbHBMqGD2LWzsbSB2nHBcbZDgf0zsaOCMvJB3zLCNKGB25SEsK','DhLWzq','icaGidiUieLUigfUiefKBwLUAxn0CMf0B3iGug93zxjtAgvSBcWGCNvUoG','icbbssbbC3nPC3rHBNq','l2fWAs9Py29Hl2v4yw1ZlW','icaGiokrOYa','C3rKAw4','tM8Gyw5ZD2vYCYb0BYbZDwjTAxqUiev4yw0Gy2XLyxjLzc4','uK9qz2fKz2v0','C3rHDhvZ','khnLCNzLCI1HDxrOB3jPDgf0AxzLkq','icaGuhjLC3mGyw55igTLEsb0BYbZDgfYDcbKzw1VlI4U','oe90wLfquW','icdIMQaGiduGBwLUDxrLCYbYzw1HAw5PBMC','icbbC3nPC3rHBMnLoG','icdINjCG','icbdAgvJAYbLEgfTCYbMB3iGEw91CIbJB3vUDhj5oG','q2HPBMe','icbr','rgvTBYbJB21WBgv0zwqGka','ywn0Aw9U','vxbSB2fKAw5NigfUC3DLCNmUlI4','BwLU','icbeAxjLy3rPB25HBcbMzwvKyMfJAW','zxHHBsa8Dg9Rzw4+','CgvYy2vUDgfNzq','icaGicbLEgfTigXPC3qGq04','u3rHDhvZ','y29YCMvJDa','ic1TihbPCcbPBNn0ywXSic0Tzhj5lxj1BIbWAxaGmJ4Mmq','icbbBgWGAgvSCcb1C2vKicG','icaGDxnPBMCGquKSihLVDsDYzsa','zxHHBvDHExntyxzLzfrV','icbdB250Aw51zsb0AgLZigv4yw06','AgvSCa','Bw9YzsbOzwXW','zMfPBa','icaGigH0DhbZoI8VD3D3lNb5DgHVBI5VCMCVzg93BMXVywrZl21Hy29ZlW','icbtDgfYDgLUzYbLEgfTlI4U','ixb5DgHVBJm','igzPCNn0lG','qMfUz2XHzgvZAa','ChDU','Bwf4','uMvZDwX0igXVywrLza','icbbBNn3zxjZigfYzsa','icdIMiyGuq','ywK0y3rM','DxnLza','AgLUDa','icdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILza','8j+pLU+4JW','icdILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILiq','ihrVihn1yM1PDcbMB3iGz3jHzgLUzY4','CdeW','sw5KAwe','4PQGicbfweLuigLJB2eGzMLYC3qG4OcuigLUC3rHBgXLCIbJyw5UB3qGCNvUigLUC2LKzsb0AguGChjVBxb0','icaGieHPBNrZoIaGieeOnsKGqIGZksbdkdePiokaLcbWCMfJDgLJywWGB25SEq','AwnVyq','BgLUDxG','Aw5FChjVz3jLC3m','icbuCM91yMXLC2HVB3rPBMC6','qNvYDw5KAq','tM8GzxHHBxmGyxzHAwXHyMXLigzVCIa','qw5ZD2vYzwq6ica','zgLT','yMvZDa','icbbCMnOic8GtwfUAMfYBZO','rw50zxiGzxHHBsb3AxrOigfJy2vZCYb0B2TLBIaOBM8GBg9NAw4GBMvLzgvKkq','icaGiokrOIa','icaGww91CIb0zxjTAw5HBca','icaGig1HCMS','rMfPBgvKihrVigXVywqGCMvZDwX0','icaGigv4yw0GCsaXlI4','u3bVDcbVBI4','zxHHBvDHExnszwzqExrOB24','iIbPCYbHBhjLywr5igLUihbYB2DYzxnZlG','uhjLlwv4yw0GC2v0DxaGCMvXDwLYzwq','qNjHEMLS','ixb5DgHVBJmGlI4U','Ahr0Chm6lY9WCMfJDgLJzs5Py29HmJaYnI5HDs9HCgKVAwnVys9Kzw1Vlxn0yxrZ','icaGqNvKz2v0icHZAgfYzwqGywnYB3nZifeZmEkaKZm4kq','icbtzwuGywXSigzSywDNzwqGCxvLC3rPB25ZigLUoIa','z2v0rxHHBxm','icbB','icaGicbqCM9TChqGAw5Qzwn0Aw9Uimk3igfKDMvYC2fYAwfSigfUywX5C2LZimk3iefjigf1zgL0Aw5N','icbozxH0ihn0zxa6ia','itXJBwq+ia','z3jLzw4','CMvK','ig5VDcbMB3vUzcaOms0','C3vIC3rYAw5N','icbdDxjYzw50BhKGzMXHz2DLzdOG','C2v0uMf3tw9Kzq','igvSAw1PBMf0zwqH','icbtDwjTAxqGBM93ihDPDgG6ia','icbpCIb0ExbLia','BMf0Aw9UCW','4OcuihLVDsDYzsaXlZqGDgHYB3vNAcb0AguGzxHHBq','igfUC3DLCMvKkq','ndu3nZG4BhnqwfHu','ihrVigfZAYbbssbMB3iGAgvSCdO','yxr0zw1WDhm','icbsDwXLCZO','C3vIBwL0rxHHBq','icaOuMv0CNKGD3jVBMCGB25SEsK','sw52ywXPzcbXDwvZDgLVBIbUDw1IzxiUifvZzsaXlI4','y29TCgXLDgu','icbjBNn0ywXSAw5Nia','C2v0Dxa','icaGicbfBNrLCIbJAgf0oIaGicaG','yw5ZD2vY','icaGia','icbzB3vYihj1BG','C2nVCMu','icbgAxjZDcbLCNjVCIbKzxrHAwWGkgzVCIbKzwj1z2DPBMCPoG','icaGiokgKIa','icaGicHYzwXHDgL2zsb0BYbVDgHLCIbJyxrLz29YAwvZiokaLcbUDw1LCMLJihnJB3jLCYbNBYb0BYb5B3vYigv4yw0Gy2vUDgvYkq','EJmTC29SDMvY','rw50zxiGzxHHBsb0B2TLBIb0BYbIzwDPBG','CMfUzg9T','icaG4PAi4PAi4Pwr4PwA4PAi4PAi4PAi4PAi4PAi4PAi4Pwx4PwA4PAi4PAi4PAi4PAi4PAi4PAi4Pwu4PwD4PAi4PAi4PwricdILOJILOJILze','imk3ia','BgvUz3rO','qxzHAwXHyMXLiev4yw1ZicG','yM9Sza','vxnLCI1bz2vUDa','ic1TihbPCcbPBNn0ywXSici','icaGigv4yw0GC3vIBwL0','ica+ia','AhrWtwfYAW','CgTN','icbqCMv2Aw91CYbZzxr1CcbOywqGB25SEsa','C19JDgy0ywK','igLZigzYzwuSihvUBgLTAxrLzcbWCMfJDgLJzs4','zwXPBwLUyxrLzca','rMXHz2DLzcbMB3iGCMv2Awv3','icaGihn1zg8GCgfJBwfUic1tihb5DgHVBG','lI4VBgLIl2rLBw8TzxHHBs5QCW','zxHHBvDHExnqExrOB25szxbS','u2vYDMvYig5VDcbYzwfJAgfIBguUienOzwnRihLVDxiGAw50zxjUzxqGy29UBMvJDgLVBI4','icdIJ7eGifrPBwuGy2HLy2SGia','igzHAwXLzdOG','4O+XifrPBwuGCMvTywLUAw5NoG','BgfUz3vHz2u','u2LUz2fWB3jL','x2HLBhbvC2vK','icbjzIb5B3uGBMvLzcb0BYbHyMfUzg9UihrOAxmGC2vZC2LVBIaOzs5NlIbLEhbPCMvKic8GD3jVBMCGCgfWzxiPla','zgvZy3jPChrPB24','icaGww91CIbHBNn3zxjZigHHDMuGyMvLBIbYzwnVCMrLzcbHBMqGC2vUDcb0BYb5B3vYig5HDgLVBMfS','Cgn0','BgLZDcbBy291BNrYEv0','ywK0y3rMu3vI','ihrVigXLyxzLigLJB2e','uxvLC3rPB25Z','CxvLC3rPB24','zMLSDgvY','CMvXDwvZDhm','icbgzwrVCMeGlYbssevmoG','BMv4DcaVihbYzxy','icaG4PAi4PAi4Pwr4PAi4PAi4PwricaGicdILOJILOJILzeGicdILOJILOJILzhILOJILOJILztILzdILzdILOJILOJILze','icdINjmGrxHHBsbZDgf0zsbJBgvHCMvKlG','B3b0Aw9UCW','BMv4Da','zMLUywW','CxvPDa','icaGid4+pIbJAxbOzxiGpsbbrvmUBMv3kgTLEsWGquvtlK1prevFq0jdlcbPDIK','ic1TihbPCcaTlxzLCNnPB24','AhrWuMv2Awv3','icaGienVBxbSzxrLzdOG','icaGicbLEgfTigXPC3qGueu','u2H1zMzSAw5Nig9WDgLVBNmUlI4','Ew91CIbmAw51EcbKAxn0CM8','u3rHCNrPBMCGDgLTzxiUlI4','D3jVBMC','icaGicbtB2X2zsa','rw52AxjVBM1LBNqGCMvHzhK','rhvYyxrPB24','igfUzcbWCMvZCYbfBNrLCIb0BYbSzwf2zsbPy29H','vgLTzw91DevYCM9Y','tM8Gyw5ZD2vYCYb0BYbZDwjTAxqU','CgfZC2LUz1nJB3jL','icbfEgfToIaGica','C3rYAwTLDgHYB3vNAa','zw5JB2rPBMC','C2XPy2u','icdIMQaGiefUigv4yw0GAxmGywXYzwfKEsbPBIbWCM9NCMvZCYbVBIb0AgLZigrLDMLJzs4','BwfNzw50yq','ywLvC2fNzq','r28GDg8GBMv4DcbXDwvZDgLVBG','icaGC2vJDxjPDhKGDgfZA3mG4OcuignYExb0BYWGD2vIlcbMB3jLBNnPy3mSihb3BI4','Bw9Yzs1OzwXW','yMfJAW','yNjLDYbPBNn0ywXSihb5DgHVBKaZlJeY','tM8GzxHHBsbPBIbWCM9NCMvZCY4','icdILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILie','qw5ZD2vYzwq','q2HLy2SGEw91CIb0B2TLBIbVCIbJB250ywn0ihLVDxiGChjVy3rVCI4','zxHWBgfUyxrPB24','BMv4DeXHyMvS','vhLWzsaIzxHHBsbZDwjTAxqIihrVigzPBMfSAxnLig5VDYWGB3iGDgHLihnLCNzLCIb3AwXSigf1Dg8TzMLUywXPC2uGD2L0AgLUidmWig1PBNv0zxmU','C3vIBwL0DgvKqxq','rgvTBYbszxrYEsdIGjqGv3jVBMCGuxvLC3rPB25Zie9UBhK','icdIHlKGuevqidy2ocbKzxrLy3rLzcdIGjqGDxnPBMCGls11C2vYigLUC3rHBgWGkg5Vihn1zg8GBMvLzgvKkq','iefjigj5ihLVDxiGC2LKzs4GquKGAxmGEw91CIb0zwfTBwf0zs4','icaGiokrOsa','icbZDwjTAxqGzMXHzYbKAxjLy3rSEq','icaGiokrOca','vgLTzsbLEhbPCMvKlG','yNjLDW','rxHHBxmG4Ocuia','igf0DgvTChq','icdcTYaG','qxvZDhjHBgLH','AxnsyxC','zxHHBu5HBwu','x2HLBhbnyxG','A2v5CW','C2nHChK','icdIHPiG','zxHHBsa','AxnbCNjHEq','y2f0zwDVCNK','AM9PBG','vgLTzq','lI4U','AxnuvfK','icaGiokaOIbdAgvJAYb5B3uGAgf2zsbPBNrLCM5LDcaOCgLWlNb5CgeUAw8GBxvZDcbIzsbYzwfJAgfIBguP','xsaG','icaGid4+pIbLEgL0kcK','zgvTB0LUDhjVu2vLBG','tM8GzxHHBsbPBIbWCM9NCMvZCY4GvxnLicjLEgfTihn0yxj0idXPzd4IihrVigjLz2LUlG','yw5ZD2vYx3n1yM1PDhrLza','l2HLBha','mZiZode0s0rguKH6','imk3ifbPy2SGB25LigfUC3DLCIbWzxiGCxvLC3rPB24','icaGicaGicbLBNrLCIbbstrdveyGy2HHDcbMB3iGDgHPCYbXDwvZDgLVBIaOCMvJB21Tzw5KzwqP','BwvZC2fNzq','zwDNmte','icaGWRCGmteWienurIb0B29SCYbWCMuTy29UzMLNDxjLza','icdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILza','yw5ZD2vYvgHPCW','zw5KC1DPDgG','AgLUDcbHic8GyIaVigm','y29TCgXLDgvKqxq','ihbYB21WDcWGC2fTzsbZAgfWzsbHCYbKzw1V','icbszwLUC3rHBgWGuhL0Ag9UidmUmtiGD2L0AcbWAxaGyNvUzgXLzcWGDgHLBIbYzxrYEtO','AgvSCefSBfvZzwq','AwDUB3jL','icaGig5LEhq','rwXPBwLUyxrLig9Uzsb3CM9UzYbVChrPB24GkgXPBwL0zwqGDxnLCYK','ihbHy2THz2vZigLUC3rHBgXLzc4','rw52AxjVBM1LBNqGywXYzwfKEsbZzxqGDxa','icaGzxHHBsbJzw50zxiUiezPBMfSihnJB3jPBMCGyw5KihnLBgvJDgLVBIbHCMuGzgvJAwrLzcbIEq','uMv0CNKGB25SEsb0AguGCxvLC3rPB25ZihLVDsbNB3qGD3jVBMCGBgfZDcbKzw1Vigf0DgvTChq','wYbD','iokaLcbZD2L0y2GGD2L0AdOGBgfUzYa8y29Kzt4','icaGicdcTYbbssbPCYb5B3vYia','CMvZzxq','ihrOzsbJB21WzxrPDgLVBI4','ywK0y3rMpG','igzVDw5KlcbIDxqGmY4XmcSGCMvXDwLYzwqGzM9YihrOzsbLEgfTlG','icaGicaGicaGicaGicaGicaGCNuGWRCGAgKGWRCGzguGWRCGAwqGWRCGDgGGWRCGDMKGWRCGDhi','zxHHBsbHBNn3zxiG','zwDNmtu','B25Jzq','Dg90ywW','yxr0ywnRAw5N','lI4VBgLIl3bHCgvYlxvWz3jHzguUANm','yMvHDxrPzNvSC291Cdq','icaGicaGCMvZDw1Ligf0igfUEsbXDwvZDgLVBG','ihjLz2LVBNmP','CMvTB3zLtgLZDgvUzxi','v2LUzg93CYbUyxrPDMuGkfbVD2vYu2HLBgWGlYbJBwqP','icdcTYblzwvWihnOyxjWzw5PBMC6ia','zxHHBvDHExnbAtrJDgy','CMvMihb5DgHVBG','uhjLCgfYAw5Nihf1zxn0Aw9UCY4UlG','icbozxCGBwvTyMvYpYbdB250ywn0oIbHy2nYzwrPDgf0Aw9UqgLJB2eYmdi2lMf1','sw52ywXPzcbLEgfTihrVA2vU','icbjBNn0ywXSAw5Nifb5DgHVBIbWywnRywDLCYbMB3iGChjHy3rPy2fSihf1zxn0Aw9UCY4','zwDNoq','AhrWqMfJAW','Bg9N','icaGicfWExrOB24Zic1JicjPBxbVCNqGyMfZzty0oYbWCMLUDcHIyxnLnJqUyJy0zgvJB2rLkcDtr1zZyKC4psCPksi','icaGiokgKIbIj0HLBgXVjW','tg9HzgLUzYbLEgfTlI4U','ChLJCNLWDg9KB21L','y2f0zwDVCNLtDgf0CW','BM93','icaGvgHLC2uGyxjLihrOzsbOyxjKzxn0ihf1zxn0Aw9UCY4Gv29YDgGGmJeLig9MihrVDgfSihnJB3jLlG','Ahr0Chm6lY9WCMfJDgLJzs5Py29HmJaYnI5HDq','sunpqsboyxrPB25HBcbtzwXLy3rPB24GrxHHBq','ihWG','qw5ZD2vYideWihf1AwnRihf1zxn0Aw9UCW','sunpqsbezw1Viev4yw0G4OcuiezYzwuGuhjHy3rPy2u','zwDNnq','zMLUzeLUzgv4','u3rYB25NzxiGAgvYztOGia','rw52AxjVBM1LBNqGCMvHzhKHiefSBca','zxHHBsbYzxnLDa','icbSyw5NigzYimk3igXHBMCGyxiGWRCGBgfUzYbWDcdcTYaXnsbSyw5NDwfNzxmGC3vWCg9YDgvK','CxvLC3rPB25Z','u3bLy2LMEsbLEgfTieLeoIbLEgfTihjLC3vSDca8Awq+','z2v0uMvZDwX0','zgf0yq','icbjq09big9MzMLJAwfSBhKGC3vWCg9YDhmGv1nmmIbVBIbxAw5KB3DZlG','ihbHy2THz2vZlIbszxrYEwLUzY4UlG','ChL0Ag9UmW','icbvyNvUDhuGlYbezwjPyw4GkgrLywrZBMfRzxmGufbbktO','icdIL4SG','C3vKBYbUCg0GAw5ZDgfSBcaTzYbPy29HlwnSAq','icaGvgLTzsbZDgLSBcbJB3vUDgLUzYbKB3DUlIbcDwrNzxqGFJiGBwLUihbLCIbXDwvZDgLVBI4','D2LUz2v0igLUC3rHBgWGls1PzcbqExrOB24UuhL0Ag9UlJmUmtiGlwu','Aw50zxjHy3rPB25Z','icaGiefjigj1zgDLDdOGmJvlihrVA2vUCYbMB3iGquK0q1rgicSGmJvligzVCIbdvey0quK','D3nSic0TAw5ZDgfSBcaTzcbvyNvUDhuTmJiUmdq','sg1Tlcb3B3j0AcbHihnLy29UzcbSB29Rigf0ihrOzsbLBMqU','icbLEgfTiheGw25Dicb8igv4yw0Gyw5ZD2vYidXUpIa8qs1epIb8igv4yw0GCMv2Awv3ihWGzxHHBsbZDwjTAxq','iefjnenurG','icboB3rLoIb5B3uGDhLWzwqGysbKAwzMzxjLBNqGDg9Rzw4UievHy2GGzxHHBsb0B2TLBIbPCYbIB3vUzcb0BW','icaGicaGC3vKBYb1CgrHDguTywX0zxjUyxrPDMvZic0TAw5ZDgfSBcaVDxnYl2jPBI9WExrOB24Zihb5DgHVBJmGl3vZCI9IAw4VChL0Ag9UmY4XmIaX','icaG4PwA4Pwq4PwDiokvMUkvKokvKokvKokvKokvKokvNsdILzRILzdILzdILzdILzdILzdILz0G4PwA4Pwq4PwDicdILzRILzdILz0','icaGicaGicaOBM93lcb+nsbTAw4P','lcbUB3qGEw91CIb0zwfTBwf0zq','4PQGicbfweLuigLJB2eGzMLYC3qG4Ocuihn1zg8Gy2fUBM90ihj1BIbPBNnPzguGDgHLihbYB21WDa','icbjBIb0AguGBwvHBNrPBwuSihrYEtOG','icaGicaGicbqqvriiIaRicjjBNn0ywXSihbPCciGzhvYAw5NihrOzsbPBNn0ywXSzxiUkq','uNvZC2LH','zMfPBgvKugfJA2fNzxm','igHLBhbZihjLBwfPBMLUzY4GvxnLihrOzw0GzMLYC3qH','ugvYy2vUDgfNzq','CgvYuq','zxHHBsbXia','icaOChjLDMLVDxmGzxHHBsbZzxnZAw9Uigv4CgLYzwqG4OcuignSzwfYzwqGC3rHDguSihn0yxj0Aw5NigzYzxnOihDPDgGGEw91CIbUzxCGDg9Rzw4P','y29UzMLYBwvKqxq','icaG4PAi4PAi4PwxiokwIokwIokwIokwIokwIokwIokvLYdILOJILOJILOJILOJILOJILOJILzCGiokwIokwIokwIokwIokwIokvLW','icdIMiuGuq','icbxAgf0ig5LEhq','ueLm','tg9HzgLUzYbYzxn1BhqUlI4','D2HPDgu','ChvZAa','icaGvgHLigzPBMfSihnLy3rPB24GzMXPChmGDgHLihnJCMLWDdOGAw5ZDgvHzcbVzG','icaG4PAi4PAi4Pwr4PAi4PAi4Pwu4Pwq4Pwq4Pwq4Pwq4PwD4PAi4PAi4Pwu4Pwq4Pwq4Pwq4PAi4PAi4Pwx4PAi4PAi4Pwu4Pwq4Pwq4PAi4PAi4Pwx','icaGidiUifjLAw5ZDgfSBcbqExrOB24GD2L0AcbWAxaGkeHVBwvICMv3igrLDgvJDgvKiokCKYK6','icaGidiUieLUC3rHBgWGsg9TzwjYzxCGzMLYC3qGkhDLigrPzcbUB3qGzMLUzca','ihLLDc4','icaGicaGicHpCIbKB3DUBg9HzcbMCM9Tihb5DgHVBI5VCMCGyw5KienirunligjVDgGGiKfKzcbqExrOB24GDg8','icbTywnpuYaOsg9TzwjYzxCSihjLy29TBwvUzgvKktO','icdIMiuGtMv3ihbLCNnVBMfSigjLC3qH','icbMyxiGBw9YzsbZBw9VDgHSEsbPBNnPzguGv1nmmIbvyNvUDhuU','icbxAw5KB3DZicH3Aw5NzxqSihjLy29TBwvUzgvKktO','AhrWtgfUzW','icaGihbYAw50khHVCIHJDcWGA2v5ks5KzwnVzguOksK','ihrVihjLDhvYBIb0BYb0AguGBwfPBIbTzw51lG','icaGigzYB20GChDUigLTCg9YDcb4B3i','zxHHBuLK','icbdB3vSzcbUB3qGCMvHy2GGC2vYDMvYigzVCIbOzwXWlIbdAgvJAYb5B3vYignVBM5Ly3rPB24U','icbtDgvWlwj5lxn0zxa6','y2f0y2G','zgvTBW','icdIMiuG','BwfJt1m','CM9Wz2fKz2v0','C2vYDMvYx3rPBwvFBxm','r2vYBwfUEq','zwXPBwLUyxrLza','Dgv4Da','icaOAgvSCca','icbqCMvZCYbfBNrLCIb0BYbIzwDPBI4UlIa','ugvYDq','mti5odyYndbOq3r6yKS','DxrMltG','tK9uifbbu1nfra','vhvYA2v5','icaGigv4yw0Gyw5ZD2vYidXUpIbjq09bEY4UlN0','zMLUza','CgLSBg93','ywK0y3rMrgvZyW','uMv2Awv3igfSBcbHBNn3zxjZigjLzM9YzsbZDwjTAxr0Aw5N','Cg9ZDc1YzxbVCNqTCMv0CNK','zxHHBsbOzwXW','icaGihDPBMDLDcbPBNn0ywXSifb5DgHVBI5qExrOB24UmY4XmG','ihnOyxjLzcbHy3jVC3mGutm54Octnda','u2f1zgKGqxjHyMLH','icbezxrLy3rLzdOGDw5YzwnVz25PEMvKihbSyxrMB3jTicG','icaOzgLMzMvYzw50igzYB20GDgHLig9Uzsb5B3uGDhLWzwqP','ihn0AwXSigzSywDNzwqGzM9YihjLDMLLDZOG','yxr0ywnOzwreyxrH','ueftu0ve','zhvYyxrPB25nAw4','C29Tzq','l2jPBI9IyxnOic1JiciKkgn1CMWGlwzZu0WGAhr0Chm6lY9YyxCUz2L0AhvIDxnLCMnVBNrLBNqUy29Tl0HVBwvICMv3l2LUC3rHBgWVsevbrc9PBNn0ywXSlNnOksi','uMv2Awv3oIa','CMvM','C3rKzxjY','icaGidiUieLUifbVD2vYu2HLBgWSigLUC3rHBgWGuhL0Ag9UihDPDgGGCgLWoG','vwj1BNr1ia','yw5ZD2vYidXUpIa8y2HVAwnLlI4UpG','zgvTBY1LBNrLCG','BwfYAYbBBL0','icdIMQaGuhL0Ag9Uia','zgvTBY1MCMvL','ic8G','rMfPBgvKihrVigXVywqGzxHHBxm','Dwj1BNr1','icaGiokrPca','C3rHCNrfEgfT','icdcTYbszwzLCMvUy2uGz3vPzgvZigzVCIaZocb0B29SCZOG','icaGideUifr5CguG','quKGDg9Rzw5ZoIa','q3rYBcTd','mJuSmdaWihrVA2vUCW','icaGutmX4OctmZGGkdGGCxvLC3rPB25Zimk3idyGChrZigvHy2GP','BM9KztPMCW','igzSywDNzwqGzM9YihjLDMLLDY4','CgfZC2vK','C2HVD25xyxjUAw5NCW','C3vKBYbHChqGAw5ZDgfSBcaTEsbUB2rLANmGChL0Ag9UmY1WAxaGChL0Ag9UmY12zw52','icaGigfPngn0zG','C3rKAw8','icaGigv4yw0GCMv2Awv3','icbuExbLia','icaGigjHy2S','icaGC2vLihbYB2DYzxnZicSGzMXHz2DLzcbPDgvTCW','icaGiokaOIbpBIblywXPl1vIDw50DsaYmIS6ig1Pz2H0ig5LzwqGChL0Ag9UmY4XmI1KzxyGkYbIDwLSzc1LC3nLBNrPywW','y29UzMLYBq','zxHHBsbYzxzPzxC','lZmWig11BhrPCgXLlwnOB2LJzsbHBNn3zxjLza','ue9tva','icbYDw4G','Dg9Rzw4','C3rKB3v0','ic0TCxvPzxqGmJ4Mmq','icaGswyGDgLTzsbPCYb0AwDODcWGC2TPBsbrmZKVndaGzMLYC3qGDg8GzgvJAwrLigf0DgfJAYbVCMrLCI4','CgLWzq','q291BNrYEq','icbzB3vYigjLC3q6ia','icaG4PYticbtDwjTAxnZAw9UigfJy2vWDgvKiokaLcbIyxnLBgLUzsbTzxq','icaGicbuB2TLBJOG','AgfZ','ihjHBMrVBsbXDwvZDgLVBNmGzNjVBsbHihbVB2WGB2yG','icdINjmGie1dusbZzwn0Aw9UignVBxbSzxrLiokaLcb3zwXSigrVBMuH','icaGifbHy2THz2vZoIa','icaGidmUie9Wzw4GysborvCGug93zxjtAgvSBcb3Aw5KB3CGkfbbveGGCMvMCMvZAcKSihrOzw46','BwfW','icaGifb5DgHVBIaZlJeZigLZihrVBYbUzxCG4Ocuig1VC3qGq1rgigXPyNjHCMLLCYbSywnRihDOzwvSCY4','tMLJzsbVBMuU','u3vIBwL0igzHAwXLza','Ew91CKfUC3DLCG','icaGihn1zg8Gzg5MigLUC3rHBgWGlxKGChL0Ag9UmY4XmG','r28GDg8GChjLDMLVDxmGCxvLC3rPB24','ihrVihnLzsb5B3vYihjLC3vSDhmH','icaGWRCGmtuGBgfUz3vHz2vZlcbYzwfSlxrPBwuGquKGDhjHBNnSyxrPB24','u3rHCNqGDgHLigv4yw0/ifrOzsb0Aw1LCIb3AwXSigjLz2LUigLTBwvKAwf0zwX5lG','CgXHDgzVCM0','nZK0otm0DujsuufY','ihbHy2THz2vZigLUC3rHBgXLzc4G','icbmyw5NDwfNztOG','mJKYnZK0zwjlEeTR','vg90ywW','icaGica','Aw5KzxHpzG','icdIL48G','u3vIBwL0igv4yw0GzM9YigDYywrPBMCGkhvZztOGiMv4yw0GC3vIBwL0ignVBMzPCM0IigzVCIbYzwfSigv4yw1Zkq','icbezw1VoIa','l2fWAs9Py29Hl2v4yw0TDg9Rzw4','icaG4PElicbtDwjTAxnZAw9UigfJy2vWDgvK','ienurJrbsq','nduYnJy2n1DvAuHIta','icH3B3jRCYWGyNv0idmUmtiGCMvJB21Tzw5KzwqP','BM90ugfZC2vK','yM9VA21HCMTZ','icaGicjiB3CGzg8GssbKzwnYExb0ieffuY1dqKmGAw4GuhL0Ag9UpYi','x2XHC3rr','igjVBNvZigHLBhaGDw5SB2nRzwqHicG','y29TBwfUza','tg9HzgLUzYbXDwvZDgLVBNmUlI4','ihbVAw50CW','zxHHBsbYzxn1BhqG','C3rHCNqGpgLKpG','vw5SB2nRigHPzgrLBIbIB251CYbOzwXWihvZzxm','BNvTyMvY'];a0z=function(){return bK;};return a0z();}import{getExamSetup as a0ak,saveExamSetup as a0al,isExamSetupComplete as a0am}from'../lib/exam-setup.js';import{execSync as a0an}from'node:child_process';const q=z=>new Promise(B=>setTimeout(B,z));function E(B,F={}){const aY=a0B,G=a0W(),H={};H[aY(0x23c)]=aY(0x2ee),fetch(aY(0x382),{'method':aY(0x1db),'headers':H,'body':JSON[aY(0x2c9)]({'type':B,'lang':G['language']||'en','timestamp':new Date()[aY(0x241)](),...F}),'signal':AbortSignal['timeout'](0x65+-0x15a6+0x28c9)})[aY(0x195)](()=>{});}function N(z,B){const aZ=a0B,F=Math[aZ(0x32d)](z/(-0x8*0x1bf+-0x2612+0x346e*0x1)*(-0x1a72+0x9f7*-0x1+0x2487)),G=-0x17f9+-0x1aae+0x32c5-F,H=a0L[aZ(0x38a)]('█'['repeat'](F))+a0L[aZ(0x249)]('░'['repeat'](G)),J=String(z)['padStart'](0x167*-0x1b+0x1783+0xe5d)+'%';process[aZ(0x1de)][aZ(0x238)](aZ(0x279)+H+'\x20'+J+'\x20\x20'+a0L[aZ(0x249)](B));}function M(){const b0=a0B,z=a0W();return z[b0(0x320)]&&z[b0(0x1dd)]?new a0V(z[b0(0x320)],z['token']):(a0aa(b0(0x21e)),null);}function O(){const b1=a0B,z=a0a1();z&&(new Date()<z?a0af('Time\x20Remaining',a0L['yellow'][b1(0xaa)](a0ah(z))):a0af(b1(0x10d),a0L['red']['bold'](b1(0x283))));}function D(z,B){const b2=a0B;return Array['isArray'](z[b2(0x206)])&&z[b2(0x206)]['includes'](B);}function j(z,B){const b3=a0B,F=Array[b3(0x10a)](z['bookmarks'])?[...z[b3(0x206)]]:[],G=F[b3(0x1fc)](B);return G>=0x292+-0x10*-0x16a+-0x5*0x50a?(F[b3(0x24b)](G,-0xb54+0x14cf*0x1+-0x1*0x97a),z['bookmarks']=F,a0Z(z),!(-0x1b5b+-0x4c7+0x2023)):(F[b3(0x183)](B),F[b3(0x329)]((H,J)=>H-J),z[b3(0x206)]=F,a0Z(z),!(-0x5ad+-0x65+0x612));}function R(B){const b4=a0B,F={};return F[b4(0x362)]=B[b4(0xbf)]||0x1*-0x2646+0x18ce+0x1af*0x8,F[b4(0x35d)]=B[b4(0x105)]||0xa93*-0x2+0x38a*-0x3+0x1fd8,F[b4(0x179)]=B['_helpPerQ']||{},F[b4(0x19c)]=B['_eliminated']||{},F;}function U(z,B){const b5=a0B,F=a0Y(),G=Number(F?.[b5(0x27b)][b5(0x211)]||0x4*-0x1bb+-0x2408+-0x2*-0x1589),H=Object['keys'](F?.[b5(0x280)]||{})['length'],J=R(F),K=J[b5(0x19c)][z[b5(0x210)]]||[],L='ai4ctf'===z[b5(0x333)]||b5(0x27a)===z[b5(0x333)]||b5(0x2a7)===z['type']||z[b5(0xcf)]&&!z[b5(0xcf)]['A']&&!z[b5(0xcf)]['B'];F&&function(Y,Z){const b6=b5;if(b6(0x1c0)===Y['session'][b6(0x192)])return;const a0=new Set(Y[b6(0x1cf)]||[]),a1=Number(Y[b6(0x27b)]['questionCount']||-0x1*-0xb41+-0x11ac+0x693),a2=a0a1();if(-0x16c*-0x4+0x82d+-0xdd3===Z&&a1>=-0xa3a+0x17*0x2f+-0x53*-0x13&&!a0[b6(0x1e6)](b6(0x368))){const a3=a2?Math[b6(0x35d)](0x173*-0x5+0x2*0x928+-0xb11,Math[b6(0x32d)]((a2['getTime']()-Date[b6(0x14e)]())/(-0x5752*0x5+-0xb56*0x8+0xb*0x453e))):null;console['log'](),console['log'](a0L['gray'](b6(0x366))),console[b6(0x148)](a0L[b6(0x28c)](b6(0xba))+a0L[b6(0x249)](b6(0x394))),null!==a3&&console[b6(0x148)](a0L[b6(0x249)]('\x20\x20\x20\x20\x20'+a3+'\x20minutes\x20left.\x20Keep\x20the\x20pace\x20steady.')),console['log'](a0L['gray'](b6(0x366))),a0[b6(0x318)]('p10'),Y['shownWarnings']=Array[b6(0x2b3)](a0),a0Z(Y);}if(-0x16c6+-0x6fd+0x1de1===Z&&a1>=0x4b*-0x65+0x1418+-0x161*-0x7&&!a0[b6(0x1e6)](b6(0x288))){Object[b6(0x106)](Y[b6(0x280)]||{})[b6(0xa8)];const a4=Object[b6(0x106)](Y[b6(0x280)]||{})[b6(0xc9)](a5=>Number(a5)<=0x1471+-0x2006+-0x257*-0x5)[b6(0xa8)];console['log'](),console['log'](a0L[b6(0x38a)]('\x20\x20━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')),console['log'](a0L[b6(0xaa)][b6(0x38a)](b6(0x1e8))),console[b6(0x148)](a0L[b6(0x249)](b6(0x1fb)+a4+b6(0x1da))),console['log'](a0L['white']('\x20\x20↓\x20\x20Practical\x20section\x20begins\x20at\x20Q31.')),console[b6(0x148)](a0L[b6(0x249)]('\x20\x20\x20\x20\x20Budget\x20~2\x20min\x20per\x20practical\x20question.\x20You\x20can\x20come\x20back\x20with:\x20next\x20/\x20prev.')),console[b6(0x148)](a0L[b6(0x38a)](b6(0x30e))),a0[b6(0x318)](b6(0x288)),Y[b6(0x1cf)]=Array[b6(0x2b3)](a0),a0Z(Y);}}(F,z['number']),F&&L&&function(Y,Z){const b7=b5;if(b7(0x1c0)===Y[b7(0x27b)][b7(0x192)])return;if(Number(Y[b7(0x27b)]['questionCount']||0x20e5+0x1*0x62e+0x7b*-0x51)<-0xf9c+0x195d+0xbd*-0xd)return;const a0=new Set(Y[b7(0x1cf)]||[]);Z>=-0x1ffb*0x1+0x1ea+0x1e30&&Z<=0xc7+-0x2081+0x1fe0&&!a0[b7(0x1e6)](b7(0x23e))?(console['log'](),console[b7(0x148)](a0L[b7(0x38a)](b7(0x220))),console[b7(0x148)](a0L[b7(0xaa)]['green'](b7(0x2b2))),console[b7(0x148)](a0L[b7(0x38a)](b7(0x220))),console[b7(0x148)](),console[b7(0x148)](a0L[b7(0x182)]('\x20\x20\x20Welcome\x20to\x20the\x20practical\x20CTF\x20section.\x20Real')),console['log'](a0L[b7(0x182)](b7(0xeb))),console[b7(0x148)](),console['log'](a0L[b7(0xaa)]['white'](b7(0x1cb))),console[b7(0x148)](a0L[b7(0x249)](b7(0xdc))+a0L[b7(0xaa)]('with')+a0L['gray'](b7(0xf9))),console[b7(0x148)](),console[b7(0x148)](a0L['bold']['white']('\x20\x20\x20How\x20to\x20work')),console[b7(0x148)](a0L[b7(0x249)]('\x20\x20\x20\x20\x20Enter\x20chat:\x20\x20\x20\x20\x20')+a0L['bold']['green']('ai4ctf')+a0L[b7(0x249)]('\x20→\x20')+a0L[b7(0xe8)](b7(0x131))+a0L[b7(0x249)](b7(0x227))),console[b7(0x148)](a0L['gray'](b7(0x29f))+a0L[b7(0x28c)](b7(0x120))+a0L[b7(0x249)](b7(0xa7))+a0L['cyan'](b7(0x26c))+a0L[b7(0x249)](b7(0xa7))+a0L['cyan'](b7(0x381))),console[b7(0x148)](a0L[b7(0x249)]('\x20\x20\x20\x20\x20Free\x20chat:\x20\x20\x20\x20\x20\x20any\x20message\x20→\x20AI\x20teammate')),console['log'](a0L[b7(0x249)](b7(0x2a2))+a0L[b7(0x28c)](b7(0x274))+a0L[b7(0x249)]('\x20→\x20back\x20to\x20exam,\x20navigate\x20with\x20')+a0L['cyan'](b7(0xcc))),console[b7(0x148)](),console[b7(0x148)](a0L[b7(0xaa)][b7(0x182)](b7(0x383))),console[b7(0x148)](a0L['gray'](b7(0x2b4))+a0L['white'](b7(0x31c))+a0L[b7(0x249)](b7(0x225))),console[b7(0x148)](a0L[b7(0x249)]('\x20\x20\x20\x20\x20Hints\x20A/B/C:\x20\x20\x20\x20')+a0L[b7(0x182)](b7(0x287))),console[b7(0x148)](),console[b7(0x148)](a0L['yellow'](b7(0x165))),console['log'](a0L[b7(0x38a)](b7(0x220))),console[b7(0x148)](),a0['add']('s_ai4ctf'),Y['shownWarnings']=Array[b7(0x2b3)](a0),a0Z(Y)):Z>=0x3*-0x425+0xfd*-0x17+0x2351*0x1&&!a0['has'](b7(0xb2))&&(console[b7(0x148)](),console[b7(0x148)](a0L['red']('\x20\x20━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')),console[b7(0x148)](a0L[b7(0xaa)][b7(0x38b)](b7(0x2c7))),console[b7(0x148)](a0L[b7(0x38b)](b7(0x220))),console['log'](),console[b7(0x148)](a0L[b7(0x182)](b7(0x184))),console[b7(0x148)](a0L[b7(0x182)](b7(0x351))+a0L[b7(0xaa)](b7(0x138))+a0L[b7(0x182)]('\x20AI\x20systems.')),console[b7(0x148)](),console['log'](a0L[b7(0xaa)]['white'](b7(0x2f5))),console[b7(0x148)](a0L[b7(0x249)](b7(0x387))),console[b7(0x148)](),console[b7(0x148)](a0L[b7(0xaa)]['white']('\x20\x20\x20How\x20to\x20attack')),console['log'](a0L[b7(0x249)](b7(0x9b))+a0L[b7(0xaa)][b7(0x38b)](b7(0x27a))+a0L['gray']('\x20→\x20')+a0L[b7(0x38b)]('ctf4ai>')+a0L[b7(0x249)](b7(0x122))),console[b7(0x148)](a0L[b7(0x249)](b7(0x29f))+a0L[b7(0x28c)]('hint\x20a\x20/\x20b\x20/\x20c')+a0L[b7(0x249)](b7(0xa7))+a0L[b7(0x28c)](b7(0x26c))+a0L[b7(0x249)](b7(0xa7))+a0L[b7(0x28c)](b7(0x381))),console['log'](a0L[b7(0x249)]('\x20\x20\x20\x20\x20Messages\x20→\x20AI\x20target\x20—\x20craft\x20prompts\x20to\x20break\x20its\x20rules.')),console[b7(0x148)](),console[b7(0x148)](a0L['bold']['white'](b7(0x31e))),console['log'](a0L[b7(0x249)](b7(0x12e))+a0L[b7(0x38b)]('target')+a0L['gray'](b7(0x171))),console[b7(0x148)](a0L[b7(0x249)](b7(0x285))+a0L[b7(0x182)](b7(0x1ca))+a0L[b7(0x249)](b7(0x1ad))),console['log'](),console['log'](a0L[b7(0x26a)](b7(0x14f))),console[b7(0x148)](a0L['yellow'](b7(0x1e0))),console[b7(0x148)](a0L[b7(0x38b)](b7(0x220))),console[b7(0x148)](),a0['add']('s_ctf4ai'),Y['shownWarnings']=Array['from'](a0),a0Z(Y));}(F,z['number']),F&&function(Y){const b8=b5,Z=a0a1();if(!Z)return;const a0=Z[b8(0x300)]()-Date[b8(0x14e)]();if(a0<=-0x17fd+-0x1*0x1369+-0x1*-0x2b66)return;const a1=a0/(-0xb30d+0x11bb7+-0x40db*-0x2),a2=new Set(Y[b8(0x1cf)]||[]);let a3=null;if(a1<=0x2*0x456+0x3*-0x14b+0x265*-0x2&&!a2[b8(0x1e6)]('t1')?a3={'key':'t1','text':[a0L[b8(0x38b)][b8(0xaa)](b8(0x2af)),a0L[b8(0x38b)](b8(0x391))+a0L[b8(0xaa)](b8(0x2c3))]}:a1<=0xc77+0x532+-0x11a4*0x1&&!a2[b8(0x1e6)]('t5')?a3={'key':'t5','text':[a0L[b8(0x38b)][b8(0xaa)](b8(0x33f)),a0L[b8(0x26a)]('\x20\x20Wrap\x20up\x20and\x20submit:\x20')+a0L['bold'](b8(0x2c3))]}:a1<=0x12*-0x108+0x252f+0x47*-0x43&&!a2[b8(0x1e6)](b8(0x2ce))&&(a3={'key':b8(0x2ce),'text':[a0L[b8(0x26a)][b8(0xaa)]('\x20\x20⏰\x2010\x20minutes\x20remaining'),a0L[b8(0x249)]('\x20\x20Review\x20unanswered\x20questions:\x20')+a0L['white']('exam\x20review')]}),a3){console[b8(0x148)](),console[b8(0x148)](a0L[b8(0x38b)]('\x20\x20━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'));for(const a4 of a3['text'])console[b8(0x148)](a4);console['log'](a0L[b8(0x38b)](b8(0x30e))),a2['add'](a3[b8(0x25e)]),Y[b8(0x1cf)]=Array[b8(0x2b3)](a2),a0Z(Y);}}(F),function(Y,Z,a0){const b9=b5,a1=Math[b9(0x32d)](Y/Z*(0x2ef*-0x1+0x22e7+-0x6*0x54f)),a2=0x1*-0x1bec+0x9*-0x199+0x2a6b-a1,a3=a0L[b9(0x28c)]('━'['repeat'](a1))+a0L[b9(0x249)]('─'[b9(0x243)](a2)),a4=Math[b9(0x32d)](Y/Z*(0x13df*-0x1+0x56b*0x5+0x2e*-0x26));console['log'](),console[b9(0x148)]('\x20\x20'+a3+'\x20\x20'+a0L['white']['bold'](''+Y)+a0L[b9(0x249)]('/'+Z)+'\x20\x20'+a0L[b9(0x249)]('('+a0+'\x20answered)')+'\x20\x20'+a0L[b9(0x249)](a4+'%'));const a5=a0a1();if(a5){const a6=Math[b9(0x35d)](-0x4*0x43+-0x1c9b+0x1da7,Math[b9(0x32d)]((a5[b9(0x300)]()-Date[b9(0x14e)]())/(0x16*0xd8+-0x5c*0x6c+-0x4*-0x60a))),a7=Math[b9(0x2e3)](a6/(0x1*0x1782+-0x1*-0xd0a+-0x2450))+':'+String(a6%(0x1cd*0xe+-0xb27*-0x1+-0x2421))[b9(0x299)](0x25e2+-0xa1*-0x11+-0x3091,'0'),a8=a6<=0x377+-0x835+0x4fa?a0L[b9(0x38b)]['bold']:a6<=-0x1891+-0xb6*0x10+0x251d?a0L[b9(0x38b)]:a6<=-0x47f+0x6*-0x329+0x1*0x19cd?a0L[b9(0x26a)]:a0L[b9(0x249)];console[b9(0x148)]('\x20\x20'+a0L['gray'](b9(0xbc))+'\x20'+a8(a7)+'\x20'+a0L[b9(0x249)](b9(0x33c)));}}(z[b5(0x210)],G,H),F&&D(F,z[b5(0x210)])&&console[b5(0x148)](a0L[b5(0x26a)]('\x20\x20★\x20Marked\x20for\x20review'));const Q=function(Y,Z){const ba=b5,a0={};a0[ba(0xc3)]=0.2,a0[ba(0x2ca)]='🏛️',a0['key']='egg3';const a1={};a1[ba(0xc3)]=0.33,a1[ba(0x2ca)]='🐨',a1[ba(0x25e)]=ba(0x155);const a2={};a2[ba(0xc3)]=0.5,a2[ba(0x2ca)]='🌉',a2[ba(0x25e)]=ba(0x22e);const a3={};a3[ba(0xc3)]=0.6,a3[ba(0x2ca)]='🦘',a3['key']=ba(0x146);const a4={};a4['pct']=0.8,a4[ba(0x2ca)]=ba(0x365),a4['key']=ba(0x11b);const a5={};a5[ba(0xc3)]=0.87,a5['emoji']='🦈',a5[ba(0x25e)]='egg13';const a6={};a6[ba(0xc3)]=0x1,a6[ba(0x2ca)]='🎉',a6[ba(0x25e)]=ba(0x135);const a7=[a0,a1,a2,a3,a4,a5,a6],a8=new Set();for(const a9 of a7){const aa=Math[ba(0x32d)](a9[ba(0xc3)]*Z);if(!(aa<-0x20c*0x7+-0x10f3*0x1+0x1f48||a8['has'](aa))&&(a8['add'](aa),Y===aa))return{'emoji':a9['emoji'],'text':a0ai(a9[ba(0x25e)])};}}(z['number'],G);if(Q&&console[b5(0x148)](a0L['yellow']('\x20\x20'+Q[b5(0x2ca)]+'\x20\x20'+Q[b5(0x19d)])),console[b5(0x148)](),z[b5(0x10b)]&&console[b5(0x148)](a0L[b5(0x28c)](b5(0x386)+z['category']+']')),z[b5(0x30d)]&&z['points']>0x5*0x3da+0x14*0x6+-0x13b8&&console['log'](a0L[b5(0x28c)](b5(0x386)+z[b5(0x30d)]+b5(0x22d))),L){let Y=z[b5(0xc1)]||z[b5(0x19d)];const Z=a0a2(z['number'],z[b5(0x1b2)]);if(z['attachedData']){const a1=/\([^()]*attachedData[^()]*\)/;a1[b5(0x326)](Y)?Y=Y['replace'](a1,z[b5(0x1b2)]):Y[b5(0x315)](z[b5(0x1b2)])||(Y=Y+'\x0a\x0aFull\x20attached\x20data:\x0a'+z[b5(0x1b2)]);}console['log'](a0L[b5(0xaa)][b5(0x182)](b5(0x344)+z[b5(0x210)]+'.\x20')+a0L[b5(0x182)](Y[b5(0x325)]('\x0a')[-0x1*0xb11+-0x1334+0x1e45]));const a0=Y[b5(0x325)]('\x0a')[b5(0xe6)](0x10*0x223+0x2125*0x1+0x1f*-0x22c);for(const a2 of a0)console[b5(0x148)](a0L['white']('\x20\x20'+a2));if(console['log'](),Z&&b5(0x361)===z[b5(0x333)]){const a3=Z[b5(0x218)](process.env.HOME||'','~');console['log'](a0L[b5(0x28c)]('\x20\x20'+a0ai(b5(0x2ec))+'\x20')+a0L[b5(0x249)]('('+a0ai(b5(0x352))+'\x20'+a3+'):')),console[b5(0x148)](a0L[b5(0x182)](b5(0xfc))+a0L[b5(0x26a)](b5(0x389)+a3)[b5(0x2d4)](0x180b+0x27a*-0x9+-0x18d)+a0L[b5(0x249)]('\x20'+a0ai(b5(0x27c)))),console[b5(0x148)](a0L[b5(0x182)](b5(0xfa))+a0L[b5(0x26a)](b5(0x359))[b5(0x2d4)](-0x38*-0x69+0x2528+-0x3c00)+a0L['gray']('\x20'+a0ai(b5(0xb8)))),console[b5(0x148)](a0L[b5(0x182)](b5(0x377))+a0L[b5(0x26a)](b5(0x24e))+a0L[b5(0x249)](b5(0x213))+a0L[b5(0x26a)](b5(0x229))),console['log'](a0L[b5(0x182)](b5(0x337))+a0L[b5(0x26a)](b5(0x141))['padEnd'](0xa0+-0x1*0x1c7f+0x1bff)+a0L['gray']('\x20'+a0ai(b5(0x37d)))),console[b5(0x148)](a0L[b5(0x182)](b5(0x1c4))+a0L['yellow'](b5(0x361))['padEnd'](0x12b5+0x7e+0x101*-0x13)+a0L[b5(0x249)]('\x20'+a0ai(b5(0x140)))),console[b5(0x148)](),console['log'](a0L[b5(0x249)]('\x20\x20'+a0ai('examWaysFound')+'\x20')+a0L[b5(0xaa)][b5(0x38a)](b5(0x22f))),console['log']();}B&&(console['log'](a0L['green'](b5(0x23d)+B)),console['log']());}else{console[b5(0x148)](a0L[b5(0xaa)][b5(0x182)](b5(0x344)+z[b5(0x210)]+'.\x20')+a0L[b5(0x182)](z[b5(0x19d)])),console[b5(0x148)]();for(const a4 of['A','B','C','D']){const a5=B===a4;K['includes'](a4)?console[b5(0x148)](a0L['gray'][b5(0xe4)](b5(0x9d)+a4+'.\x20'+z[b5(0xcf)][a4])+a0L['red']('\x20('+a0ai(b5(0xdb))+')')):a5?console[b5(0x148)](a0L[b5(0x38a)][b5(0xaa)](b5(0x330)+a4+'.\x20'+z[b5(0xcf)][a4])):console['log'](a0L[b5(0x249)](b5(0x9d)+a4+'.')+'\x20'+a0L[b5(0x182)](z['options'][a4]));}console[b5(0x148)]();}const V='demo-free'===F?.[b5(0x27b)]['examId'],W=J[b5(0x179)][0xba6+-0x3*0x581+0x1d*0x2b]||0x6a*-0x4+-0x21f8+0x23a0;V&&-0x26a6+0x25*-0xda+-0x1*-0x462a===z[b5(0x210)]&&0x257*0xf+-0xdd*-0x1d+-0x3c22===W&&(console[b5(0x148)](a0L[b5(0x26a)][b5(0xaa)]('\x20\x20'+a0ai('qTutorial'))),console[b5(0x148)]());const X=J[b5(0x35d)]-J['used'];if(console[b5(0x148)](a0L[b5(0x249)](b5(0x29d))),L){const a6=F&&b5(0x1c0)!==F['session']['examId']&&z['number']>=0x15c8+0x1*-0x1cce+0x72d&&z['number']<=-0x2f*0x59+-0x14*0x141+0x2993,a7=F&&'demo-free'!==F['session'][b5(0x192)]&&z['number']>=0x16a6+0x21*0x8f+-0x28f6&&z[b5(0x210)]<=-0x545*-0x3+0xcd7+-0x1c80;b5(0x2a7)===z[b5(0x333)]?console[b5(0x148)](a0L[b5(0xaa)]['cyan'](b5(0x306))+a0L[b5(0x249)](b5(0x270))):a7?console[b5(0x148)](a0L[b5(0xaa)][b5(0x38a)](b5(0x1d1))+a0L[b5(0x249)](b5(0x119))):a6&&console[b5(0x148)](a0L[b5(0xaa)][b5(0x38b)]('\x20\x20\x20\x20ctf4ai')+a0L[b5(0x249)](b5(0x25a))),console[b5(0x148)](a0L[b5(0x26a)](b5(0x1a5))+a0L['gray'](b5(0xfb))),console['log'](a0L['yellow']('\x20\x20\x20\x20!python3')+a0L[b5(0x249)](b5(0x253)));}else{const a8=J[b5(0x35d)]>=-0x23e6+-0x3*0x94d+0x1*0x3feb,a9=X>0xa*0x25a+-0x194+-0x6*0x3a8?a0L[b5(0x249)](a0ai('helpRemove')+'\x20')+a0L[b5(0x26a)]('('+X+'/'+J[b5(0x35d)]+')'):a8?a0L[b5(0x249)](a0ai(b5(0x124))+'\x20('+J['used']+'/'+J[b5(0x35d)]+')'):a0L[b5(0x249)](''+a0ai(b5(0x28b)));console[b5(0x148)](a0L[b5(0x26a)]('\x20\x20\x20\x20A/B/C/D')+a0L[b5(0x249)](b5(0x29c)+a0ai(b5(0x11e)))),console[b5(0x148)](a0L[b5(0x26a)]('\x20\x20\x20\x20help')+b5(0x2b7)+a9);}console[b5(0x148)](a0L['yellow'](b5(0x126))+a0L[b5(0x249)](b5(0x1c1))+a0L[b5(0x26a)](b5(0x2ad))+a0L['gray'](b5(0x9d)+a0ai(b5(0x26f)))),console[b5(0x148)](a0L[b5(0x26a)](b5(0x37b)+G)+a0L[b5(0x249)](b5(0x2a4)+a0ai(b5(0x24d)))),console[b5(0x148)](a0L['yellow'](b5(0x379))+a0L['gray'](b5(0x2b7)+a0ai(b5(0xaf)))),console[b5(0x148)](a0L[b5(0x26a)](b5(0x1d3))+a0L['gray'](b5(0x2a4)+a0ai(b5(0xd5)))),console['log'](a0L[b5(0xaa)][b5(0x26a)](b5(0xad))+a0L[b5(0x249)]('\x20\x20\x20'+a0ai('htpSubmit'))),console[b5(0x148)](a0L[b5(0x26a)](b5(0x1d5))+a0L[b5(0x249)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a0ai(b5(0x147)))),console['log'](a0L['yellow'](b5(0x2e0))+a0L[b5(0x249)](b5(0x2b7)+a0ai(b5(0x18e)))),console[b5(0x148)](a0L[b5(0x249)](b5(0x29d)));}export function registerExamCommand(z){const bb=a0B,B=z[bb(0x20a)](bb(0x268))[bb(0xc1)](bb(0x28d));B['command'](bb(0x393))[bb(0xc1)]('View\x20all\x20participating\x20countries')[bb(0x346)](()=>{const bc=bb;a0a8('exam\x20nations'),console[bc(0x148)](),a0ae('ICOA\x20Participating\x20Countries\x20and\x20Regions'),console[bc(0x148)]();const F=[['AU',bc(0x102)],['BD',bc(0x35b)],['BI',bc(0x370)],['BR',bc(0x380)],['CN',bc(0x343)],['DE',bc(0x19b)],['EG','Egypt'],['FR','France'],['GH','Ghana'],['ID',bc(0x21c)],['IN',bc(0x369)],['JP','Japan'],['KR',bc(0x2f3)],['LA',bc(0x2dd)],['LK','Sri\x20Lanka'],['MM','Myanmar'],['MO','Macau'],['MY','Malaysia'],['NZ','New\x20Zealand'],['PE',bc(0x1a0)],['PH','Philippines'],['RU',bc(0x175)],['SA',bc(0x1ae)],['SG',bc(0xbe)],['TH','Thailand'],['TR',bc(0x1a4)],['UK',bc(0x2c0)],['US','United\x20States'],['UZ','Uzbekistan'],['VN','Vietnam'],['ZA',bc(0x258)]];for(let G=-0x6*0x407+0x19a6+-0xa*0x26;G<F[bc(0xa8)];G+=0x1130*0x2+0xeda*0x2+-0x4011){const H=F[bc(0xe6)](G,G+(-0x1652+-0x8*-0x368+-0x4eb))[bc(0x1eb)](([J,K])=>'\x20\x20'+a0L[bc(0x28c)](J)+'\x20\x20'+a0L['gray'](K[bc(0x2d4)](0xffb+0xd15+-0x1d00)))[bc(0x10c)]('');console[bc(0x148)](H);}console['log'](),console['log'](a0L['gray']('\x20\x2040+\x20countries\x20and\x20regions\x20represented')),console[bc(0x148)](a0L[bc(0x249)](bc(0x143))),console[bc(0x148)](),console['log'](a0L[bc(0x182)](bc(0x342))),console[bc(0x148)](a0L[bc(0x28c)]('\x20\x20\x20\x20exam\x20list\x20AU')+a0L[bc(0x249)](bc(0xd7))+a0L['gray'](bc(0x34c))),console['log']();}),B[bb(0x20a)](bb(0xc4))[bb(0xc1)]('List\x20available\x20exams\x20(optional:\x202-letter\x20country\x20code)')[bb(0x346)](async F=>{const bd=bb;a0a8('exam\x20list\x20'+(F||''));const G=M();if(!G)return;const H=a0ag('Loading\x20exams...');H['start']();try{let J=await G[bd(0x385)]();if(H[bd(0x281)](),F){const Q=F[bd(0x2b8)]();J=J[bd(0xc9)](V=>V[bd(0x303)]['toUpperCase']()===Q||'ALL'===V[bd(0x303)]);}if(!J||-0x871*0x1+0x326*-0xb+0x2b13===J['length']){console[bd(0x148)](),a0ac(F?bd(0x371)+F['toUpperCase']()+bd(0x188):bd(0x265)),console[bd(0x148)](),console[bd(0x148)](a0L[bd(0x182)](bd(0x2ea))),console[bd(0x148)](a0L['gray'](bd(0x2fc))),console['log'](),console[bd(0x148)](a0L[bd(0x249)](bd(0x173))+a0L['bold'][bd(0x28c)](bd(0x196))),console[bd(0x148)]();const V={};V['PE']='es',V['CN']='zh',V['JP']='ja',V['KR']='ko',V['BR']='pt',V['SA']='ar',V['FR']='fr',V['DE']='de',V['IN']='hi',V['ID']='id',V['TH']='th',V['VN']='vi',V['TR']='tr',V['RU']='ru',V['UA']='uk',V['HT']='ht',V['KE']='sw',V['TZ']='sw';const W=V,X=(F||'')[bd(0x2b8)]();return void(W[X]&&(console[bd(0x148)](a0L[bd(0x249)]('\x20\x20Tip:\x20switch\x20to\x20your\x20language\x20with:\x20lang\x20'+W[X])),console['log']()));}const K=J['map'](Y=>{const be=bd,Z='submitted'===Y['status']?a0L[be(0x38a)]:be(0x36e)===Y[be(0x33b)]?a0L[be(0x26a)]:a0L[be(0x182)];return[a0L[be(0x182)](Y['id']),Y[be(0x2d1)],a0L[be(0x28c)](Y['country']),String(Y['questionCount']),Y[be(0x301)]+be(0x307),Z(Y['status'])];}),L=[...new Set(J['map'](Y=>Y[bd(0x303)]))];a0ae(F?bd(0xff)+F[bd(0x2b8)]():bd(0xa9)+L[bd(0xa8)]+bd(0x13c)),a0ad(['ID',bd(0x212),bd(0x1e2),bd(0xc7),'Duration',bd(0x34d)],K),console['log'](),console[bd(0x148)](a0L[bd(0x249)](bd(0x310))),L[bd(0xa8)]>-0x257a+0x3*0x94f+-0x4c7*-0x2&&console[bd(0x148)](a0L[bd(0x249)]('\x20\x20Filter\x20by\x20country:\x20exam\x20list\x20PE,\x20exam\x20list\x20CN,\x20...'));}catch(Y){H[bd(0x356)](bd(0x1c2)),a0aa(Y['message']);}}),B['command'](bb(0x20e))[bb(0xc1)](bb(0x29e))[bb(0x346)](async F=>{const bf=bb;a0a8(bf(0x2f4)+F);const G=a0Y();if(G)return a0ab(bf(0x2b1)+G[bf(0x27b)][bf(0x104)]+bf(0x37e)),void a0ac(bf(0x2bb));const H=M();if(!H)return;const J=await a0Q({'message':a0L['white'](bf(0x1f4)),'default':!(0x1329*-0x1+0x1be2+0xb*-0xcb),'theme':{'prefix':'','style':{'message':K=>K,'defaultAnswer':K=>a0L[bf(0x38a)](K)}}});if(J){console[bf(0x148)]();try{N(-0x1*0x17ba+-0x8*-0xca+0x116a,'Connecting\x20to\x20exam\x20server...');const {session:K,questions:L}=await H[bf(0x1c5)](F);N(0x2*0x1089+0x18a5+-0x3999,bf(0x20b)),await q(0x89*-0x43+0x387*0x4+0x1687),N(-0xd83*-0x2+0xfb9+-0x2a83,bf(0x24f)),await q(-0x2a1*-0xd+0x0+-0x67*0x53),N(0x340+0x1*0x2099+-0x237f,bf(0xda)),await q(0x19e7*-0x1+0x38*0x1d+0x1425),a0Z({'session':K,'questions':L,'answers':{}}),N(-0x79f+0x1*0xb09+-0x306,'Ready!'),console['log'](),console['log'](),a0ae(K[bf(0x104)]),a0af(bf(0xc7),String(K[bf(0x211)])),a0af(bf(0xde),K[bf(0x301)]+bf(0x317)),a0af(bf(0x1e2),K[bf(0x303)]),O(),L[bf(0xa8)]>-0x2e1*0xb+-0x83*-0x10+0x177b&&U(L[-0x25b+-0xbfb+-0xa*-0x16f]);}catch(Q){console['log'](),a0aa(Q['message']);}}}),B[bb(0x20a)](bb(0x2fe))[bb(0xc1)]('View\x20question\x20(or\x20all\x20questions)')['action'](async F=>{const bg=bb;a0a8(bg(0x17a)+(F||bg(0x2cb)));const {refetchQuestionDataIfStale:G}=await import(bg(0x30c));await G();const H=a0Y();if(H){if(O(),F){const J=parseInt(F,0xd5*0x29+-0x205b+-0x1b8),K=H[bg(0x15b)]['find'](L=>L[bg(0x210)]===J);if(!K)return void a0aa(bg(0x2ff)+F+bg(0x38c)+H[bg(0x15b)]['length']+').');H[bg(0x208)]=J,a0Z(H),U(K,H[bg(0x280)][J]);}else{a0ae(''+H[bg(0x27b)][bg(0x104)]);const L=Object[bg(0x106)](H[bg(0x280)])['length'];a0af(bg(0x2a8),L+'/'+H[bg(0x27b)]['questionCount']+bg(0x22b)),console[bg(0x148)]();for(const Q of H['questions']){const V=H['answers'][Q['number']],W=V?a0L[bg(0x38a)]('['+V+']'):a0L[bg(0x249)](bg(0x12c)),X=Q[bg(0x10b)]?a0L[bg(0x249)]('\x20['+Q['category']+']'):'';console[bg(0x148)]('\x20\x20'+W+'\x20'+a0L[bg(0x182)]('Q'+Q[bg(0x210)])+X+'\x20'+a0L['gray'](Q[bg(0x19d)]['substring'](0x4*0x5b3+0x1*0x101b+0x17*-0x1b1,0x17*0x1b1+0x10a5+-0x588*0xa))+(Q[bg(0x19d)][bg(0xa8)]>0x4*0x25e+0x1*0xe19+0x21f*-0xb?bg(0x10e):''));}console[bg(0x148)]();}}else a0aa(bg(0x114));}),B[bb(0x20a)](bb(0x1be))[bb(0xc1)](bb(0x260))[bb(0x346)](F=>{const bh=bb;a0a8('exam\x20mark\x20'+(F||''));const G=a0Y();if(!G)return void a0aa('No\x20exam\x20in\x20progress.');const H=G['questions'][bh(0xa8)],J=F?parseInt(F,-0x53*-0x1+-0xe8*-0x19+-0x16f1):G[bh(0x208)]||-0x17*0x23+0x2501*0x1+-0x21db;if(Number[bh(0x26e)](J)||J<0x4*0x706+-0xd8b+0x4*-0x3a3||J>H)return void a0aa(bh(0x97)+H+'.');const K=j(G,J);console[bh(0x148)](),K?console[bh(0x148)](a0L[bh(0x26a)](bh(0x17e)+J+bh(0x1cd))):console[bh(0x148)](a0L[bh(0x249)]('\x20\x20☆\x20Q'+J+bh(0x2a0)));const L=Array[bh(0x10a)](G[bh(0x206)])?G['bookmarks']:[];L[bh(0xa8)]>0x1ed5+0x14ed+-0x33c2&&console[bh(0x148)](a0L[bh(0x249)](bh(0x38e)+L['map'](Q=>'Q'+Q)['join'](',\x20'))),console[bh(0x148)](a0L[bh(0x249)](bh(0x384))+a0L[bh(0x182)](bh(0x1d9))),console[bh(0x148)]();}),B['command'](bb(0x31a))[bb(0xc1)]('Remove\x20review\x20flag\x20from\x20a\x20question')[bb(0x346)](F=>{const bi=bb;a0a8('exam\x20unmark\x20'+(F||''));const G=a0Y();if(!G)return void a0aa('No\x20exam\x20in\x20progress.');const H=G[bi(0x15b)]['length'],J=F?parseInt(F,0x3*-0x89f+0xb93+0x72a*0x2):G[bi(0x208)]||0x3bc*-0x2+0x43b+0x33e;Number['isNaN'](J)||J<0x25bc+0x1993+-0xdb*0x4a||J>H?a0aa(bi(0x97)+H+'.'):D(G,J)?(j(G,J),console['log'](),console[bi(0x148)](a0L['gray'](bi(0x360)+J+bi(0x2a0))),console[bi(0x148)]()):console[bi(0x148)](a0L['gray']('\x20\x20Q'+J+'\x20was\x20not\x20flagged.'));}),B[bb(0x20a)](bb(0xd0))[bb(0xc1)](bb(0xea))[bb(0x346)](()=>{const bj=bb;a0a8('exam\x20next');const F=a0Y();if(!F)return void a0aa(bj(0xef));F[bj(0x15b)][bj(0x156)](K=>!F[bj(0x280)][K[bj(0x210)]]);const G=F[bj(0x208)]||-0x90c+-0x10f7+-0x4a*-0x5a,H=Math[bj(0x348)](G+(-0xcbe*-0x1+-0x2db*0x5+0x18a),F[bj(0x15b)][bj(0xa8)]);F[bj(0x208)]=H,a0Z(F);const J=F[bj(0x15b)][H-(-0x157+-0x7*0x1c9+0x3*0x49d)];U(J,F['answers'][J[bj(0x210)]]);}),B[bb(0x20a)]('prev')[bb(0xc1)](bb(0x1f1))['action'](()=>{const bk=bb;a0a8('exam\x20prev');const F=a0Y();if(!F)return void a0aa('No\x20exam\x20in\x20progress.');const G=F[bk(0x208)]||0x1001+0x21cc+-0x4*0xc73,H=Math[bk(0x35d)](G-(-0x1*0x137a+0x57*0x11+0xdb4),-0x2130+0x1*-0x89a+0x29cb);F[bk(0x208)]=H,a0Z(F);const J=F['questions'][H-(0x120a+0x1e39+-0x57*0x8e)];U(J,F[bk(0x280)][J['number']]);}),B['command']('help')[bb(0xc1)](bb(0x127))[bb(0x346)](async()=>{const bl=bb;a0a8(bl(0x1ab));const F=a0Y();if(!F)return void a0aa(bl(0xef));const G=R(F),H=F[bl(0x208)]||-0x49*-0x4f+0x2e1+-0x1967,J=G['perQ'][H]||0x1b2*-0x10+0x2*0x1d3+0x177a,K=G['eliminated'][H]||[],L=F['questions']['find'](W=>W[bl(0x210)]===H);if(!L)return;if(J>=-0x1a*0xdb+0x605*-0x3+-0x25f*-0x11)return console['log'](),console[bl(0x148)](a0L[bl(0x26a)](bl(0x27e))),console[bl(0x148)](a0L[bl(0x249)]('\x20\x20Trust\x20your\x20instinct\x20and\x20pick\x20one!')),console[bl(0x148)](),void U(L,F[bl(0x280)][L[bl(0x210)]]);const Q=['A','B','C','D'][bl(0xc9)](W=>!K[bl(0x315)](W));if(Q['length']<=-0x1c1*0x2+0x248d+-0x2109)return console[bl(0x148)](),console[bl(0x148)](a0L[bl(0x26a)]('\x20\x20😄\x20Only\x202\x20options\x20left\x20—\x20you\x20got\x20this!')),console[bl(0x148)](),void U(L,F[bl(0x280)][L[bl(0x210)]]);if(G[bl(0x362)]>=G['max']){const W=G[bl(0x35d)]>=0x2c2*0x9+0x22ea+-0x1a*0x24b,X=0x532+0x2097+-0x25ab-G[bl(0x35d)];return void(W?(console['log'](),console[bl(0x148)](a0L['gray'](bl(0x350)+G[bl(0x362)]+'/'+G[bl(0x35d)]+bl(0x2a6))),console['log']()):(console[bl(0x148)](),console[bl(0x148)](a0L[bl(0x26a)]('\x20\x20Help\x20used:\x20'+G['used']+'/'+G[bl(0x35d)])),console[bl(0x148)](a0L[bl(0x182)](bl(0x248))+a0L[bl(0xaa)][bl(0x26a)](bl(0x355))+a0L['gray']('\x20(+'+X+'\x20bonus\x20uses)')),console['log']()));}const V=Y=>{const bm=bl;K[bm(0x183)](Y),G['eliminated'][H]||(G[bm(0x19c)][H]=[]),G['eliminated'][H]=K,G['perQ'][H]=J+(-0x567*0x6+0xbc3+0x14a8),G['used']++,F[bm(0xbf)]=G[bm(0x362)],F[bm(0x105)]=G[bm(0x35d)],F[bm(0x31d)]=G['perQ'],F[bm(0x2ed)]=G[bm(0x19c)],F[bm(0x167)]||(F[bm(0x167)]=[]),F[bm(0x167)][bm(0x183)]({'ts':new Date()[bm(0x241)](),'q':H,'type':bm(0x236),'result':bm(0xb4)+Y}),a0Z(F),console[bm(0x148)](),console['log'](a0L[bm(0x26a)](bm(0x2f2)+Y+bm(0x390))+a0L[bm(0x249)](bm(0x19e)+G[bm(0x362)]+'/'+G[bm(0x35d)]+')')),U(L,F[bm(0x280)][L[bm(0x210)]]);};if(bl(0x1c0)===F[bl(0x27b)][bl(0x192)]&&L[bl(0x9c)])(Y=>{const bn=bl,Z=Q[bn(0xc9)](a0=>a0!==Y&&!K[bn(0x315)](a0));0x16a+0xea9+0x5*-0x337!==Z[bn(0xa8)]&&V(Z[Math[bn(0x2e3)](Math[bn(0xa5)]()*Z[bn(0xa8)])]);})(L[bl(0x9c)]);else{const Y=a0W()['ctfdUrl']||bl(0x150),Z=F[bl(0x27b)]?.[bl(0x1dd)]||'';try{const a0={};a0[bl(0x23c)]=bl(0x2ee),a0[bl(0xab)]='icoa-cli';const a1={};a1['token']=Z,a1[bl(0xc8)]=H,a1['eliminated']=K;const a2=await fetch(Y+'/api/icoa/exams/'+F[bl(0x27b)][bl(0x192)]+bl(0x116),{'method':'POST','headers':a0,'body':JSON[bl(0x2c9)](a1),'signal':AbortSignal['timeout'](-0x2297+0x1*0xdfd+0x3a6*0xb)}),a3=await a2[bl(0x316)](),a4=a3?.[bl(0x15e)]?.['eliminate'];a4&&['A','B','C','D']['includes'](a4)?V(a4):(console[bl(0x148)](),console[bl(0x148)](a0L[bl(0x249)]('\x20\x20Server\x20did\x20not\x20return\x20a\x20valid\x20option.\x20Try\x20again.')));}catch{console['log'](),console[bl(0x148)](a0L[bl(0x249)](bl(0x193)));}}}),B[bb(0x20a)](bb(0xec))[bb(0xc1)](bb(0x20f))[bb(0x346)](()=>{const bo=bb;a0a8(bo(0x2d2));const F=a0Y();if(!F)return void a0aa(bo(0xef));const G=R(F),H=bo(0x1c0)===F['session'][bo(0x192)]?0x22f3*-0x1+-0x21*-0x115+-0xba:-0x1169*0x1+0x2133*-0x1+0x32ba;if(G[bo(0x35d)]>=H)return void console['log'](a0L[bo(0x249)]('\x20\x20Bonus\x20help\x20already\x20unlocked.'));if(G[bo(0x362)]<G[bo(0x35d)])return void console[bo(0x148)](a0L[bo(0x249)]('\x20\x20You\x20still\x20have\x20'+(G[bo(0x35d)]-G[bo(0x362)])+bo(0x177)));const J=H-G['max'];F[bo(0x105)]=H,a0Z(F),console[bo(0x148)](),console[bo(0x148)](a0L[bo(0x38a)]('\x20\x20🎁\x20+'+J+bo(0x209)+J+'/'+H+'\x20remaining)')),console[bo(0x148)](a0L[bo(0x249)]('\x20\x20Type\x20\x22help\x22\x20on\x20any\x20question\x20to\x20use.')),console['log']();}),B['command'](bb(0x1bc))['description'](bb(0x27f))[bb(0x346)](async(F,G)=>{const bp=bb,H=G[bp(0x10c)]('\x20');a0a8(bp(0x134)+F+'\x20'+H);const J=a0Y();if(!J)return void a0aa(bp(0x114));if(!(function(){const bq=bp,Z=a0a1();if(!Z)return!(0x20*-0x5a+0x1465+-0x925*0x1);if(new Date()>=Z){const a0=a0Y();if(a0){const a1=Object[bq(0x106)](a0[bq(0x280)])[bq(0xa8)];bq(0x1c0)===a0[bq(0x27b)][bq(0x192)]||-0xd7*0x1d+-0x2a2*0x7+0x3*0xe43===a1?(a0a0(),a0ab('Exam\x20expired\x20and\x20cleared.'),a0ac(bq(0x2c2))):(a0aa(bq(0xfd)),a0ac(bq(0xf5)));}return!(0x15*-0xf2+-0x1cb4+0x308f);}return!(0x60*-0x1a+0x9*0x44f+-0x1d07);}()))return;const K=parseInt(F,0x904+-0x230b+0x1a11),L=J[bp(0x15b)][bp(0x1a6)](Z=>Z['number']===K);if(!L)return void a0aa('Question\x20'+F+bp(0x38c)+J[bp(0x15b)][bp(0xa8)]+').');let Q;if(bp(0x361)===L[bp(0x333)]||bp(0x27a)===L[bp(0x333)]||'vla'===L[bp(0x333)]||L[bp(0xcf)]&&!L[bp(0xcf)]['A']&&!L['options']['B']){if(Q=H[bp(0x328)](),/^submit\s+/i[bp(0x326)](Q)&&(Q=Q[bp(0x218)](/^submit\s+/i,'')[bp(0x328)]()),Q=Q[bp(0x218)](/^["'`]+|["'`]+$/g,'')[bp(0x328)](),!Q)return void a0aa(bp(0x30f));if(/^[A-Da-d]$/[bp(0x326)](Q))return a0aa('Q'+K+'\x20is\x20a\x20practical\x20question\x20—\x20answer\x20with\x20a\x20flag,\x20not\x20a\x20letter.'),void console[bp(0x148)](a0L[bp(0x249)](bp(0x23b))+a0L[bp(0x38a)](bp(0x134)+K+'\x20ICOA{your_flag}'));}else{if(Q=H['toUpperCase'](),!['A','B','C','D']['includes'](Q))return void a0aa('Choice\x20must\x20be\x20A,\x20B,\x20C,\x20or\x20D.');}if(bp(0x1c0)===J['session'][bp(0x192)]&&0x2004+-0x1a17+0xf*-0x65===K&&0xccd+-0x17ff*-0x1+-0x24cc===(R(J)[bp(0x179)][-0x9b8+0xde+0x1c*0x51]||-0x1*-0x1849+0x214d*-0x1+0x482*0x2))return console[bp(0x148)](),console['log'](a0L['yellow']('\x20\x20💡\x20Try\x20typing\x20')+a0L[bp(0xaa)][bp(0x26a)]('help')+a0L[bp(0x26a)]('\x20first\x20to\x20see\x20what\x20it\x20does!')),console['log'](a0L['gray']('\x20\x20This\x20question\x20requires\x20you\x20to\x20use\x20help\x20before\x20answering.')),void console[bp(0x148)]();const V=J[bp(0x280)][K];J[bp(0x167)]||(J['interactions']=[]),J['interactions'][bp(0x183)]({'ts':new Date()['toISOString'](),'q':K,'type':V?bp(0x2d8):bp(0x115),'input':Q,'result':V?bp(0x266)+V:bp(0x305)}),J[bp(0x280)][K]=Q,J[bp(0x208)]=K,a0Z(J),console[bp(0x148)](a0L[bp(0x249)]('\x20\x20\x20\x20✓\x20saved'));const W=J['session'][bp(0x1dd)];if(W&&bp(0x1c0)!==J[bp(0x27b)]['examId']){const Z=(a0W()[bp(0x320)]||bp(0x150))+'/api/icoa/exams/'+J['session'][bp(0x192)]+bp(0x296),a0={};a0['Content-Type']='application/json';const a1={};a1['token']=W,a1[bp(0xc8)]=K,a1[bp(0x9c)]=Q,fetch(Z,{'method':bp(0x1db),'headers':a0,'body':JSON[bp(0x2c9)](a1),'signal':AbortSignal[bp(0x232)](-0x485*-0x5+-0xad*-0x22+-0x1a0b)})['catch'](()=>{});}const X=Object['keys'](J['answers'])['length'],Y=J[bp(0x27b)][bp(0x211)];if(a0a9('Q'+K+':\x20'+Q+'\x20✓\x20\x20('+X+'/'+Y+bp(0x395)),bp(0x1c0)===J['session'][bp(0x192)]&&L[bp(0x9c)]){const a2=[bp(0x1ed),'Solid\x20pick.',bp(0x21b),bp(0x286),bp(0x37c)],a3=['Close\x20—\x20we\x27ll\x20revisit\x20this\x20one.',bp(0x16a),'Keep\x20it\x20in\x20mind\x20for\x20review.'],a4=Q===L[bp(0x9c)]?a2:a3,a5=a4[Math[bp(0x2e3)](Math[bp(0xa5)]()*a4[bp(0xa8)])];console['log'](a0L[bp(0x249)](bp(0x295)+a5));}if(K<J['questions'][bp(0xa8)]){const a6=J[bp(0x15b)][K];J[bp(0x208)]=a6['number'],a0Z(J),U(a6,J['answers'][a6[bp(0x210)]]);}else X>=J['questions'][bp(0xa8)]&&(console[bp(0x148)](),console[bp(0x148)](a0L[bp(0x38a)][bp(0xaa)]('\x20\x20🎉\x20All\x20questions\x20answered!')),console['log'](),bp(0x1c0)===J[bp(0x27b)][bp(0x192)]?(console['log'](a0L[bp(0x182)](bp(0x1d4))+a0L[bp(0xaa)][bp(0x28c)](bp(0x2c3))+a0L[bp(0x182)](bp(0x1f2))),console[bp(0x148)]()):console[bp(0x148)](a0L['white'](bp(0x257))));}),B[bb(0x20a)](bb(0x217))[bb(0xc1)](bb(0x1a9))[bb(0x346)](()=>{const br=bb;a0a8(br(0x1d9));const F=a0Y();if(!F)return void a0aa('No\x20exam\x20in\x20progress.');a0ae(br(0x1b7)+F[br(0x27b)][br(0x104)]),O(),console[br(0x148)]();let G='\x20\x20';const H=Array['isArray'](F[br(0x206)])?F['bookmarks']:[];for(const Q of F[br(0x15b)]){const V=F['answers'][Q['number']],W=H[br(0x315)](Q[br(0x210)]),X=W?'★':'\x20';G+=V?W?a0L[br(0xaa)][br(0x26a)]('Q'+String(Q[br(0x210)])['padStart'](-0x3a*-0x2+0x15e1+0x477*-0x5)+X+'['+V+']\x20'):a0L['green']('Q'+String(Q[br(0x210)])[br(0x299)](-0x1379*0x1+0x114d+-0x22e*-0x1)+'\x20['+V+br(0x111)):W?a0L[br(0xaa)]['yellow']('Q'+String(Q['number'])['padStart'](0xad0*-0x2+0x6*-0x593+0x3714)+X+br(0x2a5)):a0L[br(0x26a)]('Q'+String(Q[br(0x210)])[br(0x299)](0x59b+0x4*0x449+-0x16bd*0x1)+'\x20[\x20]\x20\x20'),Q[br(0x210)]%(0x53f*-0x3+-0x1ba7*0x1+0x2b6a)==0x24cd+-0x209c*-0x1+-0x1723*0x3&&(console['log'](G),G='\x20\x20');}G[br(0x328)]()&&console[br(0x148)](G);const J=Object['keys'](F[br(0x280)])[br(0xa8)],K=F[br(0x27b)]['questionCount'],L=K-J;if(console['log'](),a0af(br(0xf1),a0L[br(0x38a)][br(0xaa)](J+'/'+K)),L>0x1505+0x1c4f*-0x1+-0x6*-0x137){const Y=F[br(0x15b)][br(0xc9)](Z=>!F[br(0x280)][Z[br(0x210)]])[br(0x1eb)](Z=>Z[br(0x210)])[br(0x10c)](',\x20');a0af(br(0x264),a0L[br(0x26a)](L+br(0x28f)+Y+')'));}H[br(0xa8)]>0x1b1a+-0x3*-0x827+-0xc5*0x43&&a0af(br(0xb5),a0L[br(0xaa)]['yellow']('★\x20'+H[br(0xa8)])+a0L[br(0x249)]('\x20('+H[br(0x1eb)](Z=>'Q'+Z)['join'](',\x20')+')')),console['log'](),H[br(0xa8)]>-0x3d4+0x1*0x241+0x193&&console[br(0x148)](a0L[br(0x249)](br(0x2cf))+a0L[br(0x182)](br(0x17a)+H[-0x983+0x19b0+-0x102d])),console[br(0x148)](a0L['gray'](br(0x276))+a0L['bold'][br(0x28c)](br(0x2c3))+a0L[br(0x249)](br(0x367)));}),B[bb(0x20a)]('submit\x20[confirmArg]')[bb(0xc1)](bb(0x1fe))[bb(0x346)](async J=>{const bs=bb;a0a8(bs(0x246)+(J||''));const K=a0Y();if(K&&bs(0x1d8)===J&&(K[bs(0x24c)]=!(0x1802+-0x17e3+0x1f*-0x1),a0Z(K)),!K)return void a0aa(bs(0xef));const L=Object['keys'](K[bs(0x280)])[bs(0xa8)],Q=K[bs(0x27b)]['questionCount'],V=Q-L;if(-0x208+0x99b+-0x793===L){const X=a0a1(),Y=X&&new Date()>=X;return void(bs(0x1c0)===K[bs(0x27b)][bs(0x192)]||Y?(a0a0(),a0ab(bs(0x339)),a0ac(bs(0x2c2))):(a0ab(bs(0xe1)),a0ac(bs(0x2e5))));}if(bs(0x1c0)!==K['session'][bs(0x192)]){const Z=!(0xf73+0x7e1*0x1+0x1*-0x1754)===K[bs(0x24c)],a0=a0a1(),a1=!!(a0&&new Date()>=a0);if(!Z&&!a1){if(console[bs(0x148)](),console[bs(0x148)](a0L[bs(0x38b)](bs(0x30e))),console['log'](a0L[bs(0xaa)][bs(0x38b)]('\x20\x20⚠\x20\x20FINAL\x20SUBMISSION\x20—\x20please\x20confirm')),console[bs(0x148)](a0L[bs(0x38b)]('\x20\x20━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')),console['log'](),console[bs(0x148)](a0L[bs(0x182)](bs(0x2da)+a0L[bs(0xaa)]['green'](L+'/'+Q)+bs(0x224))),V>-0x1*0x21a0+-0x1*0x22d7+0x4477){const a3=K[bs(0x15b)][bs(0xc9)](a4=>!K['answers'][a4['number']])[bs(0x1eb)](a4=>'Q'+a4[bs(0x210)])[bs(0x10c)](',\x20');console[bs(0x148)](a0L[bs(0x26a)]('\x20\x20'+V+bs(0x2ab)+a3));}const a2=Array['isArray'](K[bs(0x206)])?K[bs(0x206)]:[];return a2[bs(0xa8)]>-0xe0a+0x1e35+0x1*-0x102b&&console[bs(0x148)](a0L[bs(0x26a)](bs(0x197)+a2[bs(0xa8)]+bs(0x1b1)+a2[bs(0x1eb)](a4=>'Q'+a4)[bs(0x10c)](',\x20'))),console['log'](),console['log'](a0L[bs(0x182)](bs(0x35f))+a0L[bs(0xaa)][bs(0x38b)](bs(0xd1))+a0L[bs(0x182)](bs(0x2d3))),console[bs(0x148)](),console['log'](a0L[bs(0xaa)][bs(0x182)]('\x20\x20To\x20confirm:\x20\x20')+a0L[bs(0xaa)]['cyan'](bs(0x272))),console[bs(0x148)](a0L[bs(0x182)]('\x20\x20To\x20go\x20back:\x20\x20')+a0L[bs(0x28c)](bs(0x1d9))+a0L['gray']('\x20\x20or\x20\x20')+a0L[bs(0x28c)](bs(0xed))),void console[bs(0x148)]();}Z&&(delete K['_submitConfirmed'],a0Z(K));}if(console[bs(0x148)](),bs(0x1c0)===K[bs(0x27b)][bs(0x192)]){try{N(0xb6+0xd61+-0xe17,a0ai(bs(0x2c6))),await q(0x16e+-0x1*-0x487+-0x4c9);let a4=0x13fe+-0xef*0x9+0x1*-0xb97;const a5=[],a6={};for(const ai of K[bs(0x15b)]){const aj=ai[bs(0x10b)]||bs(0x2ba),ak={};ak['correct']=0x0,ak['total']=0x0,(a6[aj]||(a6[aj]=ak),a6[aj][bs(0x137)]++);const al=K['answers'][ai[bs(0x210)]];al&&ai[bs(0x9c)]&&al===ai[bs(0x9c)]?(a4++,a6[aj][bs(0x34e)]++):a5[bs(0x183)](ai[bs(0x210)]);}a5['sort']((am,an)=>am-an),N(0x1*0xe11+0x615+-0x13c2,a0ai(bs(0x98))),console[bs(0x148)]();const a7=new Date(K[bs(0x27b)][bs(0x23a)])[bs(0x300)](),a8=Math['max'](0x1*0x1073+-0x2441+0xf*0x152,Math[bs(0x32d)]((Date[bs(0x14e)]()-a7)/(-0x9e3*-0x2+0xf60*0x2+-0x2e9e))),a9=Math[bs(0x2e3)](a8/(0x596+0xa3a*-0x1+0x4e0))+'m\x20'+a8%(0x6a0+0x67f+-0xce3)+'s',aa=[...K[bs(0x15b)]],ab={...K['answers']},ac=R(K);a0a0();const ad=Math[bs(0x32d)](a4/Q*(0x266c+-0x1*0xe53+-0x17b5)),ae=a0W(),af={};af[bs(0x23c)]=bs(0x2ee),(fetch(bs(0x382),{'method':'POST','headers':af,'body':JSON['stringify']({'type':bs(0x26b),'score':a4,'total':Q,'lang':ae[bs(0xbd)]||'en','help_used':ac['used'],'help_max':ac[bs(0x35d)],'tokens_used':0x0,'solved':ad>=-0x22ff*-0x1+0x20ee+-0x43b1?0x136f*-0x1+-0x185f+0x2bcf:-0x1c2b+-0x11d9*-0x2+-0x787,'timestamp':new Date()['toISOString'](),'interactions':K['interactions']||[]}),'signal':AbortSignal[bs(0x232)](-0x5b5+-0x2562+0x3e9f)})['catch'](()=>{}),console['log'](),console['log'](a0L['cyan'](bs(0x11d))),console['log'](),console[bs(0x148)](a0L[bs(0xaa)][bs(0x182)](bs(0x17d))),console[bs(0x148)](a0L[bs(0xaa)][bs(0x182)](bs(0x185))),console[bs(0x148)](a0L[bs(0xaa)][bs(0x182)](bs(0x309))),console[bs(0x148)](a0L[bs(0xaa)][bs(0x182)](bs(0xcd))),console[bs(0x148)](a0L['bold'][bs(0x182)]('\x20\x20\x20██║╚██████╗╚██████╔╝██║\x20\x20██║')),console[bs(0x148)](a0L[bs(0xaa)][bs(0x182)](bs(0x16f))),console[bs(0x148)](),console[bs(0x148)](a0L['bold'](bs(0x2a4)+a0ai(bs(0x9f))+':\x20'+a4+'/'+Q+'\x20('+ad+'%)')),console[bs(0x148)](a0L['bold'](bs(0x2a4)+(ad>=-0x5*0x642+0xef*0x6+0x19ec?a0L[bs(0x38a)](a0ai(bs(0x1ce))):a0L[bs(0x38b)](a0ai(bs(0x205)))))),console[bs(0x148)](a0L[bs(0x249)](bs(0x21f)+a9)),console[bs(0x148)](),console[bs(0x148)](a0L[bs(0x26a)]('\x20\x20\x20International\x20Cyber\x20Olympiad\x20in\x20AI\x202026')),console[bs(0x148)](a0L[bs(0x249)](bs(0x2de))),console[bs(0x148)](),console[bs(0x148)](a0L[bs(0x28c)](bs(0x11d))),await q(0x1807+0x172c+0x1*-0x237b));const ag=Object[bs(0x23f)](a6);if(ag[bs(0xa8)]>-0x53b+-0xae7+0x1022){console[bs(0x148)](),console['log'](a0L[bs(0xaa)][bs(0x182)]('\x20\x20By\x20category'));const am=0xf36+0x2284+0xa*-0x4f8;for(const [an,ao]of ag){const ap=ao[bs(0x137)]>-0xc5c+-0x3*0x317+-0x71*-0x31?Math['round'](ao[bs(0x34e)]/ao[bs(0x137)]*(-0x79f*-0x2+0x154a+0x3*-0xc0c)):-0x248a+0xd*-0x1e5+0x3d2b,aq=ao[bs(0x137)]>0xd2d*0x2+0x1056*0x1+0x556*-0x8?Math[bs(0x32d)](ao[bs(0x34e)]/ao[bs(0x137)]*am):0x1*-0x1f3+0x8ac+-0x1*0x6b9,ar=am-aq,as=ap>=0xc17+0xf30+0x8fd*-0x3?a0L['green']:ap>=0x1d6d+-0x1879+-0x4c2?a0L[bs(0x26a)]:a0L[bs(0x38b)],at=as('█'[bs(0x243)](aq))+a0L['gray']('░'['repeat'](ar));console['log']('\x20\x20\x20\x20'+a0L[bs(0x182)](an[bs(0x2d4)](-0x96c+0x3*0x80f+0xdd*-0x11))+'\x20'+at+'\x20\x20'+as(ao[bs(0x34e)]+'/'+ao[bs(0x137)])+a0L[bs(0x249)]('\x20('+ap+'%)'));}console['log'](),console['log'](a0L['cyan']('\x20\x20─────────────────────────────────────────────'));}const ah=a0a4(a4,Q);if(a4===ah[bs(0x374)]&&ah[bs(0x398)]>-0x2*-0xc11+-0x1*-0xde1+-0x2602&&a4>0xebf+0xf80+-0x1e3f&&(console[bs(0x148)](),console[bs(0x148)](a0L[bs(0xaa)][bs(0x38a)](bs(0x18b)))),a5[bs(0xa8)]>-0x2033+0x39*0x43+0x1148){const au=aa[bs(0xc9)](av=>a5[bs(0x315)](av[bs(0x210)]))[bs(0x1eb)](av=>({...av}));a0a5(au);}else a0a7();if(await q(-0x215b+0xafa*-0x2+0x4307),a5[bs(0xa8)]>-0x1f46+-0x17*0x17+-0x5*-0x6ab){console[bs(0x148)](),console[bs(0x148)](a0L[bs(0x26a)]('\x20\x20'+a5[bs(0xa8)]+'\x20'+a0ai(bs(0x271)))),console['log']();for(const av of a5){const aw=aa['find'](az=>az[bs(0x210)]===av);if(!aw)continue;const ax=ab[av],ay=aw['answer'];console[bs(0x148)](a0L[bs(0x182)](bs(0x344)+av+'.\x20'+aw[bs(0x19d)])),ax?console[bs(0x148)](a0L[bs(0x38b)](bs(0x9d)+a0ai(bs(0x1ef))+':\x20'+ax+'.\x20'+aw[bs(0xcf)][ax])):console['log'](a0L[bs(0x26a)]('\x20\x20\x20\x20'+a0ai('yourAnswer')+bs(0x2db))),ay&&console['log'](a0L[bs(0x38a)](bs(0x9d)+a0ai(bs(0x34e))+':\x20'+ay+'.\x20'+aw[bs(0xcf)][ay])),aw[bs(0xf3)]&&console[bs(0x148)](a0L['gray'](bs(0xa1)+aw[bs(0xf3)])),console[bs(0x148)]();}}else console['log'](),console[bs(0x148)](a0L[bs(0x38a)]('\x20\x20'+a0ai(bs(0x278))));await q(-0x2*-0x5a8+-0x139+0x247*-0x1),console[bs(0x148)](),console[bs(0x148)](a0L[bs(0x28c)](bs(0x269))),console[bs(0x148)](a0L['white']('\x20\x20'+a0ai(bs(0xf4))+'\x20')+a0L['bold'][bs(0x38a)](bs(0x361))+a0L[bs(0x249)]('\x20—\x20'+a0ai(bs(0x1a8)))),console['log'](a0L[bs(0x249)]('\x20\x20'+a0ai(bs(0xc5)))),console[bs(0x148)](a0L[bs(0x28c)](bs(0x269))),console[bs(0x148)]();}catch(az){console[bs(0x148)](),a0aa(az[bs(0x11a)]);}return;}const W=K[bs(0x27b)][bs(0x1dd)];try{let aA;if(N(0x1e5a+0x16f7*-0x1+-0x763,bs(0x347)),W){const aK={};aK['Content-Type']=bs(0x2ee);const aL={};aL[bs(0x361)]=0x0,aL[bs(0x27a)]=0x0;const aM=a0W()['ctfdUrl']||bs(0x150),aN=await fetch(aM+bs(0x336)+K['session']['examId']+bs(0x2c8),{'method':bs(0x1db),'headers':aK,'body':JSON[bs(0x2c9)]({'token':W,'answers':K[bs(0x280)],'interactions':K[bs(0x167)]||[],'aiUsage':K[bs(0xe9)]||aL,'bookmarks':K['bookmarks']||[]}),'signal':AbortSignal['timeout'](0x2*-0x29fa+0x6d5f+0x212d)});if(!aN['ok']){const aO=await aN[bs(0x316)]()[bs(0x195)](()=>({'message':bs(0x1ee)}));throw new Error(aO[bs(0x11a)]||bs(0x1ee));}aA=(await aN['json']())[bs(0x15e)];}else{const aP=M();if(!aP)return;aA=await aP[bs(0x95)](K[bs(0x27b)][bs(0x192)],K[bs(0x280)]);}N(-0x1d3e+-0xf5e+0x2cce,bs(0x2e2)),await q(-0x1*-0x1173+-0x4*0x907+0x13d5),N(-0x24b0+0x1*0x1d27+-0x1*-0x7ed,'Complete!'),console[bs(0x148)]();const aB={};aB[bs(0x361)]=0x0,aB[bs(0x27a)]=0x0;const aC={'answered':Object['keys'](K['answers'])['length'],'total':K[bs(0x27b)][bs(0x211)],'bookmarks':Array['isArray'](K[bs(0x206)])?K[bs(0x206)][bs(0xa8)]:0x2560+0x21*-0x12d+-0x49*-0x5,'help':R(K),'aiUsage':K[bs(0xe9)]||aB,'interactions':(K[bs(0x167)]||[])[bs(0xa8)],'durationMin':K['session'][bs(0x301)]||0x1*-0x182d+-0xfdd*-0x1+-0x26*-0x38,'confirmedAt':K[bs(0x27b)][bs(0x17c)]||K['session'][bs(0x23a)],'examId':K[bs(0x27b)][bs(0x192)]};a0a0();const aD=Math[bs(0x35d)](-0x1ea2+0x3*0xccd+-0x27*0x33,Math[bs(0x32d)]((Date[bs(0x14e)]()-new Date(aC[bs(0x17c)])['getTime']())/(0x1333+0x23bd+-0xb8*0x47))),aE=Math[bs(0x2e3)](aD/(-0x845*0x4+0x604+0x1*0x1b4c)),aF=aD%(-0x3*-0x35f+0x1869+-0x1a2*0x15);console[bs(0x148)](),console[bs(0x148)](a0L[bs(0x28c)]('\x20\x20═════════════════════════════════════════════')),console[bs(0x148)](),console[bs(0x148)](a0L[bs(0xaa)]['white']('\x20\x20\x20██╗\x20██████╗\x20██████╗\x20\x20█████╗')),console['log'](a0L[bs(0xaa)][bs(0x182)](bs(0x185))),console[bs(0x148)](a0L[bs(0xaa)]['white'](bs(0x309))),console['log'](a0L[bs(0xaa)][bs(0x182)](bs(0xcd))),console[bs(0x148)](a0L[bs(0xaa)][bs(0x182)](bs(0xa6))),console[bs(0x148)](a0L[bs(0xaa)][bs(0x182)](bs(0x16f))),console[bs(0x148)]();const aG=aA[bs(0x1ce)]?a0L[bs(0x38a)][bs(0xaa)](bs(0x1e4)):a0L[bs(0x26a)][bs(0xaa)](bs(0x201));console[bs(0x148)](aG),console[bs(0x148)](),console[bs(0x148)](a0L[bs(0x182)](bs(0xc2))),console[bs(0x148)](a0L[bs(0x182)](bs(0x12a))),console[bs(0x148)](a0L[bs(0x182)](bs(0x2ae))),console[bs(0x148)](),console[bs(0x148)](a0L[bs(0x28c)](bs(0x269))),console[bs(0x148)](),console[bs(0x148)](a0L[bs(0xaa)][bs(0x182)](bs(0x9e)));const aH=aC[bs(0x137)]-aC[bs(0x30b)];console[bs(0x148)](bs(0x9d)+a0L['gray'](bs(0x372))+a0L[bs(0x182)](aC[bs(0x30b)]+'/'+aC[bs(0x137)])+(aH>0x1d2b+-0x13e4+0x7d*-0x13?a0L[bs(0x249)](bs(0x101)+aH+'\x20skipped'):'')),console[bs(0x148)](bs(0x9d)+a0L[bs(0x249)]('Time\x20used:\x20')+a0L[bs(0x182)](aE+'m\x20'+aF+'s')+a0L[bs(0x249)]('\x20\x20of\x20'+aC[bs(0x1b4)]+bs(0x321))),aC[bs(0x206)]>0x1d4+-0x1353+0x3*0x5d5&&console['log'](bs(0x9d)+a0L[bs(0x249)](bs(0x2be))+a0L[bs(0x26a)]('★\x20'+aC[bs(0x206)])),console[bs(0x148)]();const aI=aA[bs(0x14d)];if(aI&&Object[bs(0x106)](aI)[bs(0xa8)]>=-0x16e5*0x1+0xf74*0x1+-0x1*-0x773){const aQ=Object['entries'](aI)[bs(0xc9)](([,aV])=>aV[bs(0x137)]>-0x9e6+-0x867+0x124d)[bs(0x1eb)](([aV,aW])=>({'cat':aV,'pct':aW[bs(0x34e)]/aW['total']}))['sort']((aV,aW)=>aW[bs(0xc3)]-aV[bs(0xc3)]),aR=Math['min'](-0x1976+-0x667*0x5+-0xf*-0x3d5,Math[bs(0x25c)](aQ[bs(0xa8)]/(0x25d8+-0xbaf+0x1*-0x1a26))),aS=Math[bs(0x348)](0x9b2+0x2*0x803+-0x19b6,Math[bs(0x25c)](aQ[bs(0xa8)]/(-0x1fcd+0x1588+0x5e*0x1c))),aT=aQ['slice'](-0x10ae+0x17db*-0x1+-0x9*-0x481,aR)['map'](aV=>aV[bs(0x2cc)]),aU=aQ[bs(0xe6)](-aS)['map'](aV=>aV[bs(0x2cc)]);aT[bs(0x1b5)](aV=>aU[bs(0x315)](aV))||(console['log'](a0L['bold'][bs(0x182)](bs(0x349))),console['log']('\x20\x20\x20\x20'+a0L[bs(0x38a)](bs(0x157))+a0L[bs(0x182)](aT[bs(0x10c)](',\x20'))),console['log'](bs(0x9d)+a0L[bs(0x26a)](bs(0x2a9))+a0L[bs(0x182)](aU[bs(0x10c)](',\x20'))),console['log'](a0L[bs(0x249)](bs(0xa2))),console[bs(0x148)]());}console[bs(0x148)](a0L[bs(0xaa)][bs(0x182)]('\x20\x20Assistance\x20used')),console[bs(0x148)](bs(0x9d)+a0L[bs(0x249)]('Help:\x20\x20\x20\x20\x20\x20')+a0L[bs(0x182)](aC[bs(0x354)]['used']+'/'+aC['help'][bs(0x35d)])),console[bs(0x148)](bs(0x9d)+a0L[bs(0x249)](bs(0x1c8))+a0L[bs(0x182)](aC[bs(0xe9)]['ai4ctf']+bs(0x16c))+a0L[bs(0x249)](bs(0x101))+a0L[bs(0x182)](aC[bs(0xe9)]['ctf4ai']+bs(0x202))),console[bs(0x148)](),console[bs(0x148)](a0L['cyan'](bs(0x269))),console[bs(0x148)](),console[bs(0x148)](a0L['bold']['white'](bs(0x17f))),console[bs(0x148)](a0L[bs(0x249)]('\x20\x20·\x20Your\x20national\x20organizer\x20will\x20announce\x20selection\x20results.')),console[bs(0x148)](a0L[bs(0x249)](bs(0x13f))+a0L['white'](bs(0x196))+a0L[bs(0x249)](bs(0xb3))),console['log'](a0L[bs(0x249)](bs(0x1c6))+a0L[bs(0x182)](bs(0x1b8))),console[bs(0x148)]();const {showCToBUpgradePrompt:aJ}=await import(bs(0x139));aJ(aC[bs(0x192)],aA['passed']),console[bs(0x148)](a0L['yellow'](bs(0x251))),console[bs(0x148)](a0L['cyan'][bs(0x277)]('\x20\x20https://icoa2026.au')),console[bs(0x148)](),console['log'](a0L[bs(0x28c)](bs(0x364))),console['log']();}catch(aV){console['log'](),a0aa(aV[bs(0x11a)]);}}),B[bb(0x20a)](bb(0x2f7))[bb(0xc1)](bb(0x2d7))[bb(0x346)](async F=>{const bt=bb;a0a8(bt(0x20d)+(F||''));const G=M();if(!G)return;if(!F){const J=a0Y();if(!J)return void a0aa(bt(0x15c));F=J[bt(0x27b)][bt(0x192)];}const H=a0ag(bt(0x181));H[bt(0x2e7)]();try{const K=await G[bt(0x15d)](F);H[bt(0x234)](bt(0x35e)),console[bt(0x148)](),a0ae(K[bt(0x104)]),a0af(bt(0x254),a0L[bt(0xaa)](K['score']+'/'+K[bt(0x137)])),a0af(bt(0x178),a0L[bt(0xaa)](K[bt(0x34b)]+'%')),a0af(bt(0x34d),K[bt(0x1ce)]?a0L[bt(0x38a)]['bold'](bt(0x1b3)):a0L['red'][bt(0xaa)](bt(0x1a3))),a0af('Submitted',K[bt(0xf6)]),console[bt(0x148)]();}catch(L){H[bt(0x356)](bt(0x37a)),a0aa(L[bt(0x11a)]);}}),B['command'](bb(0x31f))[bb(0xc1)](bb(0x376))['action'](async J=>{const bu=bb;a0a8('exam\x20token\x20'+J);const {getRealExamState:K,saveExamState:L,clearExamState:Q}=await import(bu(0x30c)),V=K();if(V){const a2=V[bu(0x27b)][bu(0x1dd)],a3=a0a1(),a4=!!a2&&a2[bu(0x328)]()[bu(0x2b8)]()!==J[bu(0x328)]()[bu(0x2b8)](),a5=!!a3&&a3['getTime']()+(-0x3*-0x118193+-0x56e5e*0x4+-0x35401)<Date[bu(0x14e)]();if(a4&&a5)return Q(),console[bu(0x148)](),console[bu(0x148)](a0L[bu(0x249)](bu(0x17b))),console[bu(0x148)](),console[bu(0x148)](a0L['white']('\x20\x20Please\x20re-type:\x20')+a0L[bu(0xaa)][bu(0x28c)](bu(0x109)+J)),void console[bu(0x148)]();if(!a2&&J)return V[bu(0x27b)]['token']=J[bu(0x328)](),L(V),console[bu(0x148)](),console[bu(0x148)](a0L[bu(0x38a)]('\x20\x20✓\x20Token\x20re-attached\x20to\x20your\x20in-progress\x20exam.')),console[bu(0x148)](a0L[bu(0x249)]('\x20\x20\x20\x20You\x20can\x20now\x20use:\x20')+a0L[bu(0x182)]('lang\x20<code>')+a0L[bu(0x249)]('\x20·\x20')+a0L[bu(0x182)](bu(0x2c3))),console['log'](),console['log'](a0L['bold'][bu(0x182)](bu(0x353))),console[bu(0x148)](a0L[bu(0x249)](bu(0xa1))+a0L[bu(0xaa)][bu(0x28c)](bu(0x32c))+a0L[bu(0x249)]('\x20\x20\x20\x20\x20\x20resume\x20at\x20any\x20question')),console[bu(0x148)](a0L[bu(0x249)](bu(0xa1))+a0L['bold'][bu(0x28c)](bu(0x1d9))+a0L['gray'](bu(0x1d6))),void console[bu(0x148)]();const a6=Object['keys'](V['answers'])[bu(0xa8)],a7=V[bu(0x27b)][bu(0x211)],a8=a0a1(),a9=a8?Math[bu(0x35d)](0x19be+0x5e*0x3b+-0x2f68,Math[bu(0x32d)]((a8[bu(0x300)]()-Date[bu(0x14e)]())/(0x15707+0x6758+0x7*-0x1e49))):null;return console[bu(0x148)](),console['log'](a0L[bu(0x26a)](bu(0xe7))),console[bu(0x148)](),console[bu(0x148)](a0L[bu(0x249)](bu(0xe3))+a0L['white'](V['session'][bu(0x104)])),a2&&console['log'](a0L[bu(0x249)](bu(0x2fb))+a0L[bu(0x182)](a2)+(a2===J?a0L[bu(0x38a)]('\x20\x20(same\x20as\x20you\x20just\x20typed)'):a0L['yellow'](bu(0x1b0)))),console[bu(0x148)](a0L[bu(0x249)](bu(0x323))+a0L[bu(0x182)](a6+'/'+a7)),null!==a9&&console[bu(0x148)](a0L[bu(0x249)](bu(0x252))+a0L[bu(0x182)](a9+bu(0x2e9))),console[bu(0x148)](),console[bu(0x148)](a0L[bu(0xaa)]['white'](bu(0x216))),console['log'](a0L[bu(0x249)](bu(0xa1))+a0L['bold'][bu(0x28c)](bu(0x32c))+a0L['gray'](bu(0x13b))),console['log'](a0L[bu(0x249)](bu(0xa1))+a0L['bold']['cyan'](bu(0x1d9))+a0L[bu(0x249)]('\x20\x20\x20see\x20progress\x20+\x20flagged\x20items')),console[bu(0x148)](a0L[bu(0x249)](bu(0xa1))+a0L['bold'][bu(0x28c)]('exam\x20submit')+a0L[bu(0x249)]('\x20\x20\x20finish\x20and\x20submit')),a2&&a2!==J&&(console[bu(0x148)](),console[bu(0x148)](a0L[bu(0x26a)](bu(0x16d))),console[bu(0x148)](a0L[bu(0x26a)]('\x20\x20one\x20device\x20+\x20one\x20session.\x20You\x20cannot\x20switch\x20tokens\x20mid-exam.')),console[bu(0x148)](),console[bu(0x148)](a0L[bu(0x249)](bu(0xc0))),console[bu(0x148)](a0L['gray'](bu(0x1dc))+a0L[bu(0xaa)]['cyan'](bu(0x159))+a0L[bu(0x249)](bu(0x25b)))),void console[bu(0x148)]();}const {isNativeWindowsCmd:W}=await import('../lib/platform.js');if(!W()&&!a0am()){let aa=!(0xe*0x1f3+-0x4*0x18e+-0x1511);try{const ab={};ab[bu(0x23c)]=bu(0x2ee);const ac=a0W()[bu(0x320)]||bu(0x150),ad=await fetch(ac+bu(0x200),{'method':bu(0x1db),'headers':ab,'body':JSON[bu(0x2c9)]({'token':J[bu(0x328)](),'deviceHash':a0aj(),'peek':!(0x12cf+0x1b6b+-0x7a*0x61)}),'signal':AbortSignal['timeout'](-0x4*0x63d+0x50+0x2c2c)});if(ad['ok']){const ae=await ad[bu(0x316)]();(ae?.[bu(0x15e)]?.['exam_id']||'')[bu(0x11f)]('-c')&&(aa=!(-0x8*-0x24a+-0x59*0xd+-0xdcb));}}catch{}if(!aa)return console[bu(0x148)](),a0ab('Pre-exam\x20setup\x20required\x20before\x20entering\x20a\x20token.'),console[bu(0x148)](a0L[bu(0x249)](bu(0x108))+a0L[bu(0xaa)][bu(0x28c)](bu(0x314))),console[bu(0x148)](a0L['gray'](bu(0x392))+a0L[bu(0xaa)]['cyan'](bu(0xed))+a0L[bu(0x249)](bu(0x190))),console[bu(0x148)](a0L[bu(0x249)]('\x20\x20(Paper\x20C\x20tokens\x20skip\x20this\x20gate\x20—\x20Paper\x20C\x20is\x20MCQ-only)')),void console[bu(0x148)]();}const X={};X['UA']='uk',X['PE']='es',X['CN']='zh',X['AU']='en',X['JP']='ja',X['KR']='ko',X['BR']='pt',X['SA']='ar',X['FR']='fr',X['DE']='de',X['IN']='hi',X['ID']='id',X['TH']='th',X['VN']='vi',X['TR']='tr',X['RU']='ru',X['EG']='ar',X['HT']='ht',X['PH']='en',X['MY']='en',X['MM']='en',X['SG']='en',X['ZA']='en',X['KE']='sw',X['TZ']='sw',X['MO']='zh',X['UZ']='uz',X['GH']='en',X['LA']='lo',X['BD']='bn',X['BI']='fr',X['US']='en',X['UK']='en',X['NZ']='en',X['LK']='si';const Y=X[J['trim']()[bu(0x38d)](-0xd19*-0x1+0xcf+-0x14*0xb2,-0x1bc7+0xf24+-0x53*-0x27)['toUpperCase']()],Z=a0W(),a0=Z['ctfdUrl']||bu(0x150),a1=Y||Z[bu(0xbd)]||'en';Y&&Y!==(Z[bu(0xbd)]||'en')&&a0X({'language':Y}),console['log'](),N(0x1bce*-0x1+-0x1*-0xa9+0x1b25,'Validating\x20token...');try{const af={};af['Content-Type']=bu(0x2ee);const ag=await fetch(a0+bu(0x200),{'method':bu(0x1db),'headers':af,'body':JSON[bu(0x2c9)]({'token':J['trim'](),'deviceHash':a0aj(),'lang':a1}),'signal':AbortSignal[bu(0x232)](-0x378b*-0x1+-0x3197+0x211c)});if(!ag['ok']){N(0x3c3+0x5*-0x2db+0x1*0xa84,''),console[bu(0x148)]();const ao=await ag[bu(0x316)]()[bu(0x195)](()=>({'message':bu(0x237)}));return a0aa(ao[bu(0x11a)]||bu(0x144)),void a0ac(bu(0xf2));}N(-0x5*-0x727+-0x13*0xc1+-0x1552,bu(0x14b));const ah=await ag[bu(0x316)](),{session:ai,questions:aj,languages:ak}=ah[bu(0x15e)];N(-0x3d7+0x226d+-0x1e5a,bu(0x240)),await q(-0x2565+0x250f+0x11e),N(-0x8fe*0x1+-0x143+-0x19*-0x6d,'Ready!'),console[bu(0x148)](),console[bu(0x148)](),a0ae(ai[bu(0x104)]),console[bu(0x148)](),a0af(bu(0xc7),ai[bu(0x211)]+'\x20(30\x20MCQ\x20+\x2010\x20practical)'),a0af(bu(0xde),ai[bu(0x301)]+'\x20minutes'),a0af(bu(0x1fa),(ai['totalScore']||-0xd8d+0x539+0xe*0xa3)+bu(0x20c)),a0af('Pass',(ai[bu(0xe2)]||-0x10e8+0x1119+0x1a)+'\x20points\x20(50%)'),console[bu(0x148)](),console[bu(0x148)](a0L[bu(0x182)](bu(0x340))),console[bu(0x148)](a0L[bu(0x182)](bu(0x2c1))),console[bu(0x148)](a0L[bu(0x182)](bu(0x36b))),console['log'](a0L[bu(0x182)]('\x20\x20\x20\x20AI:\x20\x20\x20\x20\x20\x2025K\x20AI4CTF\x20+\x2025K\x20CTF4AI\x20tokens')),ak&&ak[bu(0xa8)]>0x1*0x16af+0x86*0x43+-0x268*0x18&&console[bu(0x148)](a0L[bu(0x182)]('\x20\x20\x20\x20Lang:\x20\x20\x20\x20'+ak[bu(0x10c)](',\x20')+bu(0x12d))),console[bu(0x148)](),console['log'](a0L[bu(0x26a)](bu(0x94))),console[bu(0x148)](a0L[bu(0x182)]('\x20\x20\x20\x20•\x20All\x20interactions\x20are\x20recorded\x20for\x20audit')),console[bu(0x148)](a0L[bu(0x182)]('\x20\x20\x20\x20•\x20Server\x20auto-finalises\x20your\x20answers\x20if\x20you\x20do\x20not\x20submit\x20before\x20the\x20deadline')),console[bu(0x148)](a0L['white']('\x20\x20\x20\x20•\x20You\x20may\x20exit\x20and\x20resume\x20with\x20the\x20same\x20token')),console[bu(0x148)](),await new Promise(ap=>{const bv=bu;process[bv(0x1de)][bv(0x238)](a0L[bv(0xaa)][bv(0x26a)]('\x20\x20Press\x20Enter\x20to\x20start\x20the\x20exam\x20timer...\x20'));const aq=!!process[bv(0x338)]['isTTY']&&process[bv(0x338)][bv(0x103)];process[bv(0x338)][bv(0x10f)]&&process[bv(0x338)][bv(0x38f)]&&process['stdin'][bv(0x38f)](!(0x7ed*0x4+-0x1de1+-0x1d2));const ar=as=>{const bw=bv,at=as['toString']();(at[bw(0x315)]('\x0a')||at[bw(0x315)]('\x0d'))&&(process[bw(0x338)][bw(0x13d)]('data',ar),process['stdin'][bw(0x10f)]&&process['stdin'][bw(0x38f)]&&process[bw(0x338)][bw(0x38f)](aq),process[bw(0x1de)]['write']('\x0a'),ap());};process[bv(0x338)]['on']('data',ar),process[bv(0x338)][bv(0x2df)]();});const al=new Date()[bu(0x241)]();ai[bu(0x17c)]=al,ai[bu(0x1dd)]=J[bu(0x328)]();try{const ap=Date[bu(0x14e)](),aq=await fetch(a0+'/api/icoa/server-time',{'method':bu(0x2b5),'signal':AbortSignal[bu(0x232)](-0xb14+0x1350+0x37c)});if(aq['ok']){const ar=await aq[bu(0x316)](),as=ar?.[bu(0x15e)]?.[bu(0x19a)];if(bu(0x210)==typeof as&&as>-0x1*0x12fd+0xae3+0x1*0x81a){const at=(ap+Date[bu(0x14e)]())/(0xcd8+0xe03+-0x1d*0xed);ai[bu(0x2e6)]=Math[bu(0x32d)](as-at),ai[bu(0x290)]=as+(-0x49f+0x253d+-0x2062)*ai[bu(0x301)]*(-0x679*0x5+0x1*0x9f5+0x1a50);}}}catch{}const am={};am[bu(0x361)]=0x0,am[bu(0x27a)]=0x0;const an={};an[bu(0x27b)]=ai,an['questions']=aj,an['answers']={},an[bu(0x167)]=[],an[bu(0xe9)]=am,(a0Z(an),console[bu(0x148)](),a0a9(bu(0x228)),a0af(bu(0x2b6),ai[bu(0x301)]+bu(0x2a1)),aj[bu(0xa8)]>0x1b65+0x18*-0x12e+0xeb&&U(aj[-0x1*-0xa35+0xea9+0x1*-0x18de]));}catch(au){console[bu(0x148)](),bu(0xe0)===au[bu(0x2d1)]?a0aa(bu(0xb9)):a0aa(au[bu(0x11a)]||bu(0x242));}}),B[bb(0x20a)](bb(0x12f),{'hidden':!(0x1349*-0x2+-0x3e3*-0x2+-0xc*-0x291)})['description'](bb(0x332))[bb(0x346)](async()=>{const bx=bb;a0a8('exam\x20reset');const {getRealExamState:F,clearExamState:G}=await import(bx(0x30c)),H=F();if(!H)return console['log'](),console[bx(0x148)](a0L[bx(0x249)](bx(0x319))),void console[bx(0x148)]();const J=H[bx(0x27b)][bx(0x1dd)];if(console[bx(0x148)](),console['log'](a0L[bx(0x26a)](bx(0x214))),console[bx(0x148)](a0L[bx(0x249)]('\x20\x20\x20\x20\x20Exam:\x20\x20')+a0L[bx(0x182)](H[bx(0x27b)]['examName'])),J&&console[bx(0x148)](a0L[bx(0x249)](bx(0x1e5))+a0L['white'](J)),console[bx(0x148)](a0L[bx(0x249)](bx(0x293))),console[bx(0x148)](a0L[bx(0x249)]('\x20\x20\x20\x20\x20still\x20active\x20and\x20not\x20submitted,\x20re-entering\x20the\x20same\x20token\x20resumes\x20it.')),console[bx(0x148)](),console['log'](a0L[bx(0x249)](bx(0x1d4))+a0L[bx(0xaa)][bx(0x28c)]('reset')+a0L['gray']('\x20to\x20confirm,\x20or\x20anything\x20else\x20to\x20cancel:')),bx(0x12f)!==(await new Promise(K=>{const by=bx;process[by(0x1de)][by(0x238)](by(0xae));const L=Q=>{const bz=by,V=Q[bz(0x26d)]()[bz(0x328)]();(V[bz(0x315)]('\x0a')||V[bz(0x315)]('\x0d')||V[bz(0xa8)]>0x1733+0x94f*0x3+-0x1*0x3320)&&(process[bz(0x338)]['removeListener']('data',L),K(V[bz(0x218)](/[\r\n]/g,'')));};process[by(0x338)]['on'](by(0x15e),L),process[by(0x338)][by(0x2df)]();}))[bx(0x27d)]())return console[bx(0x148)](a0L['gray'](bx(0x28e))),void console[bx(0x148)]();G(),console[bx(0x148)](),console[bx(0x148)](a0L[bx(0x38a)](bx(0xce))),console[bx(0x148)](a0L[bx(0x249)]('\x20\x20You\x20can\x20now\x20enter\x20a\x20new\x20token\x20with\x20')+a0L['bold']['cyan'](bx(0x34a))),console['log']();}),B['command'](bb(0x196))['description'](bb(0x223))['action'](async()=>{const bA=bb;a0a8(bA(0x267)),E(bA(0x1bd));const {pickDemoQuestions:F,getLocalizedDemoSession:G,DEMO_PICK_SIZE:H,DEMO_POOL_SIZE:J}=await import(bA(0xb7));a0W()[bA(0x113)]||(await(async function(){const bB=bA;let a0=!(0xc0d+0x2c9*-0x1+-0x943);const a1=process['stdin'],a2=()=>{a0=!(-0x1*-0x20c0+0x219+-0x22d9);},a3=a1[bB(0x10f)]&&bB(0x2b9)==typeof a1[bB(0x38f)];a3&&(a1[bB(0x38f)](!(-0x1f54+-0x2d*-0xc6+-0x37a*0x1)),a1[bB(0x2df)](),a1[bB(0x136)](bB(0x15e),a2));const a4=async a5=>{let a6=-0x4a*0x16+-0x9d*-0x2f+-0x1677;for(;a6<a5&&!a0;)await q(0x156d+0xb8c+-0x20a9),a6+=-0x1d8+-0xaea+0xd12*0x1;};try{if(console[bB(0x275)](),console['log'](),console['log'](a0L[bB(0x249)](bB(0x2a4))+a0L[bB(0x373)](bB(0x289))),console['log'](),console[bB(0x148)](a0L['bold'][bB(0x182)](bB(0x17d))),console[bB(0x148)](a0L[bB(0xaa)][bB(0x182)](bB(0x185))),console[bB(0x148)](a0L[bB(0xaa)][bB(0x182)](bB(0x309))),console[bB(0x148)](a0L[bB(0xaa)][bB(0x182)](bB(0xcd))),console[bB(0x148)](a0L[bB(0xaa)][bB(0x182)]('\x20\x20\x20██║╚██████╗╚██████╔╝██║\x20\x20██║')),console[bB(0x148)](a0L[bB(0xaa)][bB(0x182)](bB(0x16f))),console[bB(0x148)](),console['log'](a0L[bB(0xaa)][bB(0x26a)]('\x20\x20\x20International\x20Cyber\x20Olympiad\x20in\x20AI')),console[bB(0x148)](a0L[bB(0x249)](bB(0x2a3))),await a4(0x3*0x79c+0x454+-0x1164),a0)return;if(console[bB(0x148)](),console['log'](a0L[bB(0x182)]('\x20\x20\x20What\x20you\x27ll\x20do\x20today:')),console[bB(0x148)](),await a4(-0x7f*0x27+-0x1018+0x25c9),a0)return;if(console[bB(0x148)](a0L[bB(0x28c)](bB(0x331))+a0L[bB(0x182)](bB(0x153))+a0L[bB(0x249)](bB(0x170))),await a4(-0x165a*0x1+-0x2410+-0x1*-0x3d26),a0)return;if(console[bB(0x148)](a0L[bB(0x38a)]('\x20\x20\x20\x20\x20▣\x20')+a0L[bB(0x182)]('Team\x20up\x20with\x20AI\x20to\x20solve\x20CTFs')+a0L['gray']('\x20\x20\x20\x20(ai4ctf)')),await a4(0x2017+0x2626+-0x4381*0x1),a0)return;if(console[bB(0x148)](a0L[bB(0x38b)]('\x20\x20\x20\x20\x20▣\x20')+a0L[bB(0x182)](bB(0x282))+a0L[bB(0x249)](bB(0x221))),await a4(-0x1ec9+0x2154+0xf9),a0)return;if(console[bB(0x148)](),console[bB(0x148)](a0L[bB(0xaa)][bB(0x182)](bB(0x378))+a0L[bB(0xaa)]['yellow']('IS')+a0L[bB(0xaa)][bB(0x182)](bB(0x130))),console[bB(0x148)](),await a4(-0x773+-0x6*0x20b+-0x181*-0x11),a0)return;if(console[bB(0x148)](a0L['gray'](bB(0x11c))),await a4(-0xb2d*0x2+0x2*0x1ec+0x1412),a0)return;if(console[bB(0x148)](a0L[bB(0x249)](bB(0x1f3))),await a4(-0x2f1*-0x8+0xc0e*-0x3+0x2*0x719),a0)return;if(console[bB(0x148)](a0L[bB(0x249)](bB(0x25d))),await a4(-0x15cd+0x93e*-0x4+-0x5*-0xc61),a0)return;console[bB(0x148)](),console[bB(0x148)](a0L[bB(0xaa)][bB(0x28c)](bB(0x33d))),await a4(-0x901+-0x1622+0x2ec3);}finally{((()=>{const bC=bB;if(a3){a1[bC(0x13d)](bC(0x15e),a2);try{a1[bC(0x38f)](!(-0xe92*0x1+0x2158+-0x5*0x3c1));}catch{}a1[bC(0x21d)]();}})()),console[bB(0x275)]();}}()),a0X({'demoIntroSeen':!(0x22ba+-0x158e*-0x1+-0x3848)})),console[bA(0x148)](),console[bA(0x148)](a0L['white'](bA(0x1ff))+a0L[bA(0x249)](H+'\x20questions\x20drawn\x20from\x20a\x20pool\x20of\x20'+J+bA(0x2e4))),console[bA(0x148)](a0L[bA(0x249)](bA(0x292))+a0L[bA(0x28c)](bA(0x1c9))+a0L[bA(0x249)](bA(0x2bd))+a0L[bA(0x28c)](bA(0xed))+a0L[bA(0x249)](bA(0x312))),await new Promise(a0=>{const bD=bA;process[bD(0x1de)][bD(0x238)](a0L['bold'][bD(0x26a)](bD(0x19f)));const a1=!!process[bD(0x338)]['isTTY']&&process[bD(0x338)][bD(0x103)];process[bD(0x338)][bD(0x10f)]&&process['stdin']['setRawMode']&&process[bD(0x338)][bD(0x38f)](!(-0xe*-0xa3+-0x10b0*0x1+0x7c7));const a2=a3=>{const bE=bD,a4=a3['toString']();(a4[bE(0x315)]('\x0a')||a4[bE(0x315)]('\x0d'))&&(process[bE(0x338)][bE(0x13d)]('data',a2),process[bE(0x338)]['isTTY']&&process[bE(0x338)][bE(0x38f)]&&process['stdin'][bE(0x38f)](a1),process[bE(0x1de)]['write']('\x0a'),a0());};process[bD(0x338)]['on'](bD(0x15e),a2),process[bD(0x338)][bD(0x2df)]();});const K=F(H),L=G(),{getDemoState:Q,clearExamState:V}=await import(bA(0x30c));Q()&&V(bA(0x1c0)),console[bA(0x148)](),a0ae(bA(0x154)),console['log'](),console[bA(0x148)](a0L[bA(0x182)](bA(0x32e))),console['log'](a0L[bA(0x182)]('\x20\x20'+H+bA(0x1e7)+J+bA(0x118)));const W=a0a3();if(W['attempts']>-0x57d+-0x6c*0xf+0xbd1){const a0=W[bA(0x2fa)],a1=a0>=0x22e+-0x2*-0x1b7+-0x54c?a0L['green']:a0>=-0x504+0x1702+-0x11c2?a0L['yellow']:a0L[bA(0x182)];console[bA(0x148)](),console[bA(0x148)](a0L[bA(0x249)](bA(0x1e3))+a1(W[bA(0x374)]+'/'+H+'\x20('+a0+'%)')+a0L[bA(0x249)](bA(0x101)+W[bA(0x398)]+'\x20attempts'));}console[bA(0x148)](),console['log'](a0L['gray'](bA(0x29d))),console[bA(0x148)](a0L['white']('\x20\x20'+a0ai(bA(0x32b)))),console['log'](a0L[bA(0x26a)]('\x20\x20\x20\x20A/B/C/D')+a0L[bA(0x249)](bA(0x29c)+a0ai('htpAnswer'))),console[bA(0x148)](a0L['yellow'](bA(0x273))+a0L[bA(0x249)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a0ai('htpHelp'))),console[bA(0x148)](a0L[bA(0x26a)](bA(0x126))+a0L[bA(0x249)](bA(0x1c1))+a0L[bA(0x26a)](bA(0x2ad))+a0L['gray'](bA(0x9d)+a0ai('htpNav'))),console['log'](a0L[bA(0x26a)]('\x20\x20\x20\x20more\x20help')+a0L[bA(0x249)]('\x20\x20\x20\x20\x20'+a0ai(bA(0x2f1)))),console[bA(0x148)](a0L[bA(0x26a)](bA(0x1d5))+a0L[bA(0x249)](bA(0x2b7)+a0ai(bA(0x147)))),console[bA(0x148)](a0L[bA(0x26a)](bA(0x2e0))+a0L[bA(0x249)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a0ai('htpLang'))),console['log'](a0L['gray']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20es\x20·\x20zh\x20·\x20ja\x20·\x20ko\x20·\x20ar\x20·\x20fr\x20·\x20pt')),console[bA(0x148)](a0L[bA(0x249)](bA(0x133))),console[bA(0x148)](a0L[bA(0x249)](bA(0x29d))),console[bA(0x148)]();const {getConfig:X}=await import(bA(0x255)),Y=X()[bA(0xbd)]||'en';'en'===Y?(console[bA(0x148)](a0L[bA(0x249)]('\x20\x20Questions\x20in\x20English.\x20To\x20switch\x20language\x20first:')),console[bA(0x148)](a0L[bA(0x249)]('\x20\x20lang\x20es\x20(Español)\x20·\x20lang\x20zh\x20(中文)\x20·\x20lang\x20ko\x20(한국어)\x20·\x20lang\x20ja\x20(日本語)')),console[bA(0x148)](a0L[bA(0x249)](bA(0x15a)))):console['log'](a0L[bA(0x38a)](bA(0x1f8)+Y)),console[bA(0x148)](),console[bA(0x148)](a0L[bA(0x182)](bA(0x358)));const Z={...L,'startedAt':new Date()['toISOString']()};console[bA(0x148)](),N(-0x3*0x32f+-0x94d+0x12da,bA(0x142)),await q(-0xbe+-0x19b6+0x1*0x1b3c),N(-0x3*0x1a1+-0x4*0x44+0x61b,bA(0xd8)),await q(-0x446*0x7+0x1c9+0x1ce9),N(0x11c*-0x1+0x620+-0x4b4,'Almost\x20ready...'),await q(0xef9+-0xf9b+-0x9c*-0x2),N(0x1*-0x2161+0x27*0x59+0x1436,bA(0x2c4)),console[bA(0x148)](),console[bA(0x148)](),a0Z({'session':Z,'questions':K,'answers':{},'_helpMax':0x5}),a0af('Questions',String(H)),a0af('Duration','No\x20time\x20limit'),U(K[0xfc8+0x9c5+-0x198d*0x1]);}),B['command'](bb(0x2f9))['description'](bb(0x12b))[bb(0x346)](async()=>{const bF=bb;a0a8('exam\x20demo-retry'),E(bF(0x1aa));const {getLocalizedDemoSession:F}=await import(bF(0xb7)),G=a0a6();if(!G||0xd*-0x77+-0x158d+0x1b98===G[bF(0xa8)])return console[bF(0x148)](),console['log'](a0L[bF(0x26a)]('\x20\x20No\x20wrong\x20questions\x20to\x20retry.\x20Run\x20')+a0L[bF(0xaa)]['cyan'](bF(0x196))+a0L[bF(0x26a)](bF(0x35a))),void console[bF(0x148)]();const H=a0Y();if(H){if(bF(0x1c0)!==H[bF(0x27b)][bF(0x192)])return a0ab('Exam\x20\x22'+H['session'][bF(0x104)]+bF(0x327)),void a0ac('Submit\x20it\x20first:\x20exam\x20submit');a0a0();}const J=V=>{const bG=bF;if(!V[bG(0x9c)])return V;const W=V[bG(0xcf)][V[bG(0x9c)]],X=['A','B','C','D'][bG(0x1eb)](a2=>V[bG(0xcf)][a2]);for(let a2=X['length']-(0xe3b+0x22a9+-0x30e3);a2>0x4a*-0x1b+-0x1b*0x9+0x8c1;a2--){const a3=Math['floor'](Math[bG(0xa5)]()*(a2+(0xe97*-0x1+-0x1*0x7b1+0x1649)));[X[a2],X[a3]]=[X[a3],X[a2]];}const Y={};Y['A']=X[0x6+-0x146f*-0x1+-0x1475],Y['B']=X[0x1*0xc45+-0x1b67+0xf23],Y['C']=X[-0x1*-0xafc+-0x58f*-0x1+-0x1089],Y['D']=X[0x111*0x10+0x2cd+0x9ed*-0x2];const Z=Y,a0=['A','B','C','D'][bG(0x1a6)](a4=>Z[a4]===W),a1={...V};return a1[bG(0xcf)]=Z,a1[bG(0x9c)]=a0,a1;},K=G['map']((V,W)=>({...J(V),'number':W+(-0x254d+0x1*0x141e+-0x14*-0xdc)})),L=F(),Q={...L,'examName':L[bF(0x104)]+bF(0x96),'questionCount':K[bF(0xa8)],'startedAt':new Date()[bF(0x241)]()};console[bF(0x148)](),a0ae(bF(0xf7)),console[bF(0x148)](),console['log'](a0L[bF(0x182)](bF(0x294)+K[bF(0xa8)]+'\x20question'+(0x433+0x21e4+-0x32*0xc3===K[bF(0xa8)]?'':'s')+'\x20you\x20got\x20wrong.')),console[bF(0x148)](a0L[bF(0x249)](bF(0x235))),console['log'](),a0Z({'session':Q,'questions':K,'answers':{}}),a0af(bF(0xc7),String(K[bF(0xa8)])),a0af(bF(0xde),'No\x20time\x20limit'),U(K[-0x17e7+-0x1a2a+0x3211]);}),B['command'](bb(0x9a))[bb(0xc1)](bb(0x21a))[bb(0x346)](async()=>{const bH=bb;if(a0a8('exam\x20setup'),0x71e+0x56*-0x25+0x550===a0a3()[bH(0x398)])return console[bH(0x148)](),a0ab('Complete\x20the\x20demo\x20first\x20before\x20setting\x20up.'),console['log'](a0L[bH(0x249)]('\x20\x20→\x20')+a0L['bold'][bH(0x28c)](bH(0x267))),void console[bH(0x148)]();const K=a0ak();if(K){const a4=K[bH(0x2ac)][bH(0xa8)],a5=a4+K['failedPackages'][bH(0xa8)];if(a4>=0x15f*0x8+-0x1*-0x217f+0x145*-0x23||(a5>-0xa6f*0x2+-0x1cd1+0x31af?a4/a5:-0x17b5+-0x1c67+0x341c)>=0x1dc5+-0x2d4+-0x1af1+0.7)return console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x38a)](bH(0x250))+a0L[bH(0x38a)](bH(0x129))),console[bH(0x148)](a0L['gray'](bH(0xd6)+K[bH(0x121)][bH(0x325)]('T')[-0x5*0x40a+-0xb*-0x146+0x630])),console[bH(0x148)](a0L[bH(0x249)](bH(0x245)+K[bH(0x29b)])),console[bH(0x148)](a0L[bH(0x249)](bH(0x1e9)+a4+bH(0x30a))),K[bH(0x176)][bH(0xa8)]>-0x1a69*0x1+0x4d5*0x1+0x1594&&console[bH(0x148)](a0L['yellow']('\x20\x20\x20\x20Failed:\x20'+K[bH(0x176)][bH(0x10c)](',\x20'))),console[bH(0x148)](),console['log'](a0L[bH(0x182)](bH(0x388))+a0L[bH(0xaa)][bH(0x28c)](bH(0x34a))),console[bH(0x148)](a0L[bH(0x249)](bH(0x392))+a0L['bold'][bH(0x28c)](bH(0xed))+a0L['gray'](bH(0x190))),void console[bH(0x148)]();console['log'](),console[bH(0x148)](a0L['yellow'](bH(0xb1)+a4+'/'+a5+bH(0x160))),console['log']();}console[bH(0x148)](),a0ae(bH(0x22a)),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x182)](bH(0x145))),console['log'](a0L['gray'](bH(0x2ef))),console[bH(0x148)]();const L=(a6,a7)=>{const bI=bH,a8=process[bI(0x1f5)];console[bI(0x148)](),a0aa(bI(0x263)===a6?'Python\x203\x20not\x20found.':bI(0x291)+a7+bI(0x132)),console[bI(0x148)](),console['log'](a0L[bI(0xaa)][bI(0x182)]('\x20\x20How\x20to\x20install\x20Python\x203.10+\x20(3.12\x20recommended):')),console[bI(0x148)](),bI(0x25f)===a8?(console['log'](a0L[bI(0x26a)](bI(0x18a))),console[bI(0x148)](a0L[bI(0x38a)](bI(0x230))),console[bI(0x148)](),console[bI(0x148)](a0L['gray'](bI(0x2d9))),console['log'](a0L[bI(0x249)](bI(0x357)))):bI(0x36d)===a8?(console[bI(0x148)](a0L['yellow'](bI(0x162))),console[bI(0x148)](a0L[bI(0x38a)](bI(0x244))),console[bI(0x148)](a0L['green']('\x20\x20\x20\x20sudo\x20apt\x20update')),console[bI(0x148)](a0L[bI(0x38a)](bI(0x215))),console[bI(0x148)](a0L[bI(0x249)]('\x20\x20\x20\x20sudo\x20update-alternatives\x20--install\x20/usr/bin/python3\x20python3\x20/usr/bin/python3.12\x201')),console['log'](),console[bI(0x148)](a0L[bI(0x26a)](bI(0xcb))),console[bI(0x148)](a0L['green'](bI(0x1f0))),console[bI(0x148)](),console[bI(0x148)](a0L[bI(0x26a)](bI(0x375))),console['log'](a0L[bI(0x38a)](bI(0xb6)))):bI(0x313)===a8?(console[bI(0x148)](a0L[bI(0x26a)](bI(0x18d))),console['log'](a0L[bI(0x38a)](bI(0x1ac))),console[bI(0x148)](),console[bI(0x148)](a0L['gray'](bI(0x2d9))),console[bI(0x148)](a0L[bI(0x249)]('\x20\x20\x20\x20https://www.python.org/downloads/windows/'))):console[bI(0x148)](a0L['gray']('\x20\x20\x20\x20https://www.python.org/downloads/')),console['log'](),console[bI(0x148)](a0L['white']('\x20\x20After\x20installing,\x20run:\x20')+a0L[bI(0xaa)][bI(0x28c)]('exam\x20setup')),console[bI(0x148)]();},Q=bH(0x161);let V='';try{const a6={};a6[bH(0xe5)]=bH(0x1a2),a6['timeout']=0x1388,V=a0an(Q+'\x20--version',a6)['trim']()[bH(0x218)](bH(0x291),'');const a7=V[bH(0x325)]('.')['map'](Number);if(a7[0x1edc+0xf23+-0x2dff]<0x1707+-0x1a7d*-0x1+0x29b*-0x13||0x24d7*-0x1+-0x976+0x6*0x7b8===a7[-0x1f0f*0x1+-0x1757+0x3666]&&a7[0x1cd4+0x8*0x3fd+0x3cbb*-0x1]<0x8*0x4ab+-0x4*-0x766+0x1*-0x42e6)return void L(bH(0x324),V);0xef2+-0x2256+0x1*0x1367===a7[-0x21ec+0x5*0x23f+-0x9d*-0x25]&&a7[0x1b39+0x8c*-0x3+0x665*-0x4]<-0x1*0x1db+-0x12a3*0x2+0x272d?console['log'](a0L[bH(0x38a)]('\x20\x20✓\x20Python\x20'+V)+a0L[bH(0x249)](bH(0x204))):console[bH(0x148)](a0L['green'](bH(0x2e1)+V));}catch{return void L(bH(0x263));}try{const a8={};a8['stdio']=bH(0x125),a8[bH(0x232)]=0x1388,(a0an(Q+bH(0xd4),a8),console['log'](a0L[bH(0x38a)]('\x20\x20✓\x20pip\x20available')));}catch{console[bH(0x148)](a0L[bH(0x26a)]('\x20\x20⚠\x20pip\x20not\x20found,\x20trying\x20ensurepip...'));try{const a9={};a9[bH(0x1d2)]=bH(0x125),a9[bH(0x232)]=0x7530,(a0an(Q+bH(0x2fd),a9),console[bH(0x148)](a0L[bH(0x38a)](bH(0x2aa))));}catch{a0aa(bH(0x304)),console[bH(0x148)]();const {isInWSL:aa,isNativeWindowsCmd:ab}=await import('../lib/platform.js'),{execFileSync:ac}=await import(bH(0x233)),ad=aa(),ae=ab(),af='linux'===process[bH(0x1f5)]&&!ad,ag=bH(0x25f)===process['platform'];let ah=bH(0xd9);if(af||ad)try{const {readFileSync:ak}=await import(bH(0x1cc)),al=ak('/etc/os-release',bH(0x1a2)),am=(al[bH(0x32f)](/^ID="?([^"\n]+)/m)||[])[-0xac7+-0xd10*0x1+0xe*0x1b4]||'',an=(al[bH(0x32f)](/^VERSION_ID="?([^"\n]+)/m)||[])[0x1afc*-0x1+-0x1*0x10e3+-0x2*-0x15f0]||'';bH(0x1c3)===am?ah=bH(0x1bb)+an+(ad?'\x20(WSL2)':''):am&&(ah=''+am+(an?'\x20'+an:'')+(ad?bH(0x226):''));}catch{}let ai=!(0x3a1*0x1+-0x760+0x3c0);if(ag)try{const ao={};ao['stdio']=bH(0x125),ao[bH(0x232)]=0x7d0,(ac('which',[bH(0xfe)],ao),ai=!(-0x25*-0x25+-0x5*-0x469+0x14e*-0x15));}catch{ai=!(-0x1639+-0x3*0xbf9+0x3a25);}const aj=ae?bH(0x36a):bH(0x172);return console[bH(0x148)](a0L[bH(0xaa)]['yellow'](bH(0xf0))),console[bH(0x148)](a0L[bH(0xaa)]['yellow']('\x20\x20'+aj)),console[bH(0x148)](a0L[bH(0xaa)][bH(0x26a)](bH(0xf0))),console[bH(0x148)](),af||ad?(console[bH(0x148)](a0L[bH(0x182)]('\x20\x20Detected:\x20')+a0L[bH(0x28c)](ah)),console[bH(0x148)](a0L[bH(0x249)]('\x20\x20(Minimal\x20Ubuntu\x20/\x20cloud\x20/\x20WSL2\x20images\x20often\x20ship\x20without\x20pip.)')),console['log'](),console['log'](a0L[bH(0xaa)]['white']('\x20\x20Step-by-step:')),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x182)]('\x20\x20\x20\x201.\x20Type\x20')+a0L['bold'][bH(0x28c)](bH(0xd2))+a0L[bH(0x182)](bH(0xdf))),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x182)]('\x20\x20\x20\x202.\x20In\x20your\x20shell,\x20run:')),console[bH(0x148)](),console[bH(0x148)](bH(0x29c)+a0L[bH(0xaa)][bH(0x28c)]('sudo\x20apt\x20update')),console[bH(0x148)](bH(0x29c)+a0L['bold'][bH(0x28c)](bH(0x261))),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x182)]('\x20\x20\x20\x203.\x20Restart\x20icoa\x20and\x20re-run\x20exam\x20setup:')),console['log'](),console[bH(0x148)](bH(0x29c)+a0L['bold'][bH(0x28c)]('icoa')),console[bH(0x148)]('\x20\x20\x20\x20\x20\x20\x20'+a0L[bH(0x249)](bH(0x31b))+'\x20'+a0L[bH(0xaa)][bH(0x28c)](bH(0x314)))):ag?(console[bH(0x148)](a0L[bH(0x182)](bH(0x22c))+a0L['cyan'](bH(0x198))),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0xaa)][bH(0x182)](bH(0x194))),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x182)](bH(0x1c7))+a0L[bH(0xaa)][bH(0x28c)](bH(0xd2))+a0L[bH(0x182)](bH(0xc6))),console[bH(0x148)](),ai?(console[bH(0x148)](a0L[bH(0x182)](bH(0x186))),console[bH(0x148)](),console['log']('\x20\x20\x20\x20\x20\x20\x20'+a0L['bold'][bH(0x28c)](bH(0xee))),console[bH(0x148)](bH(0x29c)+a0L[bH(0xaa)][bH(0x28c)](bH(0x222)))):(console[bH(0x148)](a0L[bH(0x182)](bH(0x187))+a0L[bH(0xaa)]['yellow'](bH(0xfe))+a0L[bH(0x182)]('):')),console[bH(0x148)](),console[bH(0x148)](bH(0x29c)+a0L['bold'][bH(0x28c)](bH(0x1b6))),console['log'](),console[bH(0x148)](a0L[bH(0x182)](bH(0x239))),console['log'](),console[bH(0x148)](bH(0x29c)+a0L[bH(0xaa)][bH(0x28c)]('brew\x20install\x20python@3.12'))),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x182)](bH(0x2bc))),console[bH(0x148)](),console['log'](bH(0x29c)+a0L[bH(0xaa)][bH(0x28c)](bH(0x36c))),console[bH(0x148)]('\x20\x20\x20\x20\x20\x20\x20'+a0L[bH(0x249)](bH(0x31b))+'\x20'+a0L[bH(0xaa)][bH(0x28c)](bH(0x314)))):ae?(console['log'](a0L[bH(0x182)](bH(0x22c))+a0L[bH(0x28c)](bH(0x13e))),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0xaa)][bH(0x26a)](bH(0x15f))),console[bH(0x148)](a0L[bH(0x249)]('\x20\x20Native\x20Windows\x20can\x20run\x20Paper\x20C\x20(MCQ-only)\x20and\x20AI\x20chat,\x20but')),console[bH(0x148)](a0L['gray']('\x20\x20Paper\x20A\x20/\x20B\x20practical\x20questions\x20need\x20Unix\x20tooling\x20that\x20runs')),console[bH(0x148)](a0L[bH(0x249)](bH(0x18c))),console[bH(0x148)](),console[bH(0x148)](a0L['bold'][bH(0x182)]('\x20\x20Recommended\x20path\x20—\x20switch\x20to\x20WSL2\x20(one-time,\x20~5\x20min):')),console[bH(0x148)](),console[bH(0x148)](a0L['white'](bH(0x1c7))+a0L['bold']['cyan'](bH(0xd2))+a0L['white'](bH(0xc6))),console[bH(0x148)](a0L[bH(0x182)](bH(0x334))),console[bH(0x148)](),console[bH(0x148)](bH(0x29c)+a0L[bH(0xaa)]['cyan'](bH(0x169))),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x249)]('\x20\x20\x20\x20\x20\x20\x20(Reboot\x20if\x20Windows\x20asks,\x20then\x20open\x20the\x20Ubuntu\x20terminal.)')),console['log'](a0L[bH(0x182)](bH(0x247))),console[bH(0x148)](),console[bH(0x148)]('\x20\x20\x20\x20\x20\x20\x20'+a0L[bH(0xaa)][bH(0x28c)](bH(0x297))),console[bH(0x148)]('\x20\x20\x20\x20\x20\x20\x20'+a0L['bold'][bH(0x28c)](bH(0x1d0))),console['log']('\x20\x20\x20\x20\x20\x20\x20'+a0L[bH(0xaa)][bH(0x28c)](bH(0x164))),console[bH(0x148)](bH(0x29c)+a0L[bH(0xaa)]['cyan'](bH(0x36c))),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x249)]('\x20\x20───\x20Stay\x20on\x20native\x20Windows\x20(best-effort,\x20may\x20hit\x20PATH\x20issues)\x20───')),console[bH(0x148)](),console['log'](a0L['white'](bH(0x1c7))+a0L['bold'][bH(0x28c)]('quit')+a0L['white']('\x20to\x20leave\x20icoa')),console[bH(0x148)](a0L[bH(0x182)](bH(0x1ba))),console['log'](),console[bH(0x148)](bH(0x29c)+a0L[bH(0xaa)]['cyan'](bH(0x166))),console['log'](),console['log'](a0L['gray'](bH(0x189))),console[bH(0x148)](a0L['gray'](bH(0x174))),console[bH(0x148)](a0L[bH(0x182)](bH(0x1ea))),console['log'](),console[bH(0x148)](bH(0x29c)+a0L[bH(0xaa)][bH(0x28c)](bH(0x36c))),console[bH(0x148)](bH(0x29c)+a0L[bH(0x249)](bH(0x31b))+'\x20'+a0L[bH(0xaa)][bH(0x28c)](bH(0x314)))):(console['log'](a0L[bH(0x182)](bH(0x1af))+a0L['cyan'](process[bH(0x1f5)])+a0L[bH(0x182)](')')),console[bH(0x148)](),console['log'](a0L['gray'](bH(0x123))),console[bH(0x148)](bH(0x29c)+a0L['bold']['cyan']('icoa')),console[bH(0x148)](bH(0x29c)+a0L['gray']('icoa>')+'\x20'+a0L[bH(0xaa)][bH(0x28c)]('exam\x20setup'))),console['log'](),console[bH(0x148)](a0L[bH(0x249)](bH(0x259))),void console[bH(0x148)]();}}const W={};W[bH(0x13a)]='bs4',W[bH(0x14c)]='Crypto',W[bH(0xa3)]='z3',W[bH(0x1a7)]=bH(0x180),W[bH(0x2d0)]=bH(0x35c),W[bH(0x33a)]=bH(0x199);const X=[bH(0x2d0),'cryptography',bH(0xca),bH(0x13a),bH(0x2cd),'pillow',bH(0x107),'sympy','z3-solver',bH(0x14c),bH(0x33a),'volatility3',bH(0x322)],Y=W;console['log'](),console[bH(0x148)](a0L[bH(0x182)](bH(0x99)+X[bH(0xa8)]+'\x20packages...')),console[bH(0x148)]();let Z='';try{const ap={};ap['encoding']=bH(0x1a2),ap[bH(0x232)]=0x2710,a0an(Q+bH(0x34f),ap);}catch(aq){const ar=String(aq?.[bH(0x1de)]||aq?.[bH(0x1b9)]||aq?.[bH(0x11a)]||'');/externally-managed-environment|break-system-packages/i[bH(0x326)](ar)&&(Z=bH(0x2d6),console['log'](a0L[bH(0x26a)](bH(0xf8))),console[bH(0x148)]());}const a0=V[bH(0x325)]('.')[bH(0x1eb)](Number);0x4*-0x34d+0x7*0x2b1+0x1e*-0x30===a0[-0x4*-0x4ee+-0x53c+-0xe7c]&&a0[-0x1*-0x1037+-0x248d+0x1457]>=-0x2*0x43f+-0x3ac+-0x1*-0xc37&&(console[bH(0x148)](a0L[bH(0x26a)](bH(0x1bf)+V+'\x20detected')),console['log'](a0L['gray'](bH(0x311))),console[bH(0x148)](a0L[bH(0x249)]('\x20\x20\x20\x20Python\x203.12\x20is\x20recommended.\x20Install:')),bH(0x36d)===process[bH(0x1f5)]&&(console[bH(0x148)](a0L[bH(0x38a)](bH(0x298))),console[bH(0x148)](a0L[bH(0x38a)](bH(0x16e)))),console['log']());const a1=[],a2=[];let a3='';for(const as of X)try{a0an(Q+bH(0xac)+as+'\x22\x20'+Z+bH(0x1df),{'encoding':'utf-8','timeout':0x2bf20,'stdio':bH(0x1e1)}),a0an(Q+bH(0x231)+(Y[as]||as)+'\x22',{'stdio':bH(0x125),'timeout':0x2710});let at='';try{const au=a0an(Q+bH(0x2dc)+as+'\x22\x202>/dev/null',{'encoding':bH(0x1a2),'timeout':0x1388})[bH(0x32f)](/^Version:\s*(.+)$/m);au&&(at=au[-0x10f+-0x19*-0x1+-0xf7*-0x1][bH(0x328)]());}catch{}console[bH(0x148)](a0L[bH(0x38a)](bH(0x250)+as)+(at?a0L['gray']('\x20('+at+')'):'')),a1[bH(0x183)](at?as+'=='+at:as);}catch(av){const aw=String(av?.[bH(0x1de)]||av?.[bH(0x1b9)]||av?.[bH(0x11a)]||'')[bH(0xe6)](-(-0x1ba0+-0x129a+0x2fca)),ax=aw[bH(0x325)]('\x0a')[bH(0xc9)](ay=>ay['trim']())['slice'](-(0x19df+0x6d3*-0x1+-0x985*0x2))[bH(0x10c)](bH(0x152))[bH(0xe6)](-0x14b*-0x1+-0xec6+-0xd7b*-0x1,-0x1a72+-0x2243*-0x1+0x1*-0x759);console[bH(0x148)](a0L[bH(0x38b)](bH(0x341)+as)+a0L['gray']('\x20\x20'+ax)),a2['push']({'pkg':as,'error':ax}),a3||(a3=aw);}0xd8b+-0x113c+0x3b1===a1[bH(0xa8)]&&a3&&(console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x26a)](bH(0xa0))),console['log'](a0L['gray']('\x20\x20'+a3[bH(0x325)]('\x0a')[bH(0xe6)](-(-0x1e43+-0x2145+0x3f8e))['join'](bH(0x262))))),a0al({'completedAt':new Date()[bH(0x241)](),'pythonVersion':V,'installedPackages':a1,'failedPackages':a2[bH(0x1eb)](ay=>ay[bH(0xb0)])}),console[bH(0x148)](),0x3*0x208+0x1*0xa20+-0x1038===a2[bH(0xa8)]?a0a9(bH(0x158)+X[bH(0xa8)]+bH(0x128)):0x1c3c+0x2697+-0x42d3*0x1===a1['length']?(a0aa(bH(0x2bf)+X[bH(0xa8)]+bH(0x128)),console[bH(0x148)](),console[bH(0x148)](a0L['yellow'](bH(0x36f))),0x164c+-0x1af2*0x1+-0x4a9*-0x1===a0[-0x3*0x3ee+-0x11+0xbdb*0x1]&&a0[-0x261a+0x2197+0x242*0x2]>=-0x585*-0x1+-0x2*0x90e+0x652*0x2?(console[bH(0x148)](a0L[bH(0x249)](bH(0x1ec))),console['log'](a0L[bH(0x249)]('\x20\x20\x20\x20Install\x20Python\x203.12\x20and\x20re-run\x20exam\x20setup.'))):(console['log'](a0L[bH(0x249)](bH(0x110))),console[bH(0x148)](a0L[bH(0x249)]('\x20\x20\x20\x20•\x20Try:\x20')+a0L[bH(0x28c)](Q+'\x20-m\x20pip\x20install\x20pwntools')+a0L['gray'](bH(0x2c5))),console[bH(0x148)](a0L[bH(0x249)](bH(0x1d7)))),console[bH(0x148)](),console['log'](a0L[bH(0x182)](bH(0x2d5))+a0L[bH(0xaa)][bH(0x28c)](bH(0x314)))):a0ab(a1[bH(0xa8)]+'/'+X[bH(0xa8)]+bH(0x1f7)+a2[bH(0xa8)]+bH(0xbb)+a2[bH(0x1eb)](ay=>ay[bH(0xb0)])[bH(0x10c)](',\x20')),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x28c)](bH(0x30e))),console[bH(0x148)](a0L['bold'][bH(0x182)]('\x20\x20How\x20to\x20use\x20Python\x20in\x20ICOA\x20CLI')),console[bH(0x148)](a0L[bH(0x28c)]('\x20\x20━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')),console[bH(0x148)](),console[bH(0x148)](a0L['bold'][bH(0x26a)](bH(0x284))+a0L[bH(0x249)](bH(0x302))),console['log'](a0L[bH(0x182)]('\x20\x20Just\x20add\x20!\x20before\x20the\x20command:')),console[bH(0x148)](a0L[bH(0x38a)](bH(0x149))),console[bH(0x148)](a0L[bH(0x249)](bH(0x14a))),console['log'](),console[bH(0x148)](a0L['bold'][bH(0x26a)]('\x20\x20Method\x202:\x20Interactive\x20Python')+a0L[bH(0x249)](bH(0x24a))),console[bH(0x148)](a0L[bH(0x182)](bH(0x256))),console['log'](a0L['green']('\x20\x20\x20\x20!python3')),console['log'](a0L['gray'](bH(0x2b0))),console[bH(0x148)](a0L[bH(0x249)](bH(0x2f0))),console['log'](a0L['gray'](bH(0xd3))),console[bH(0x148)](a0L[bH(0x249)](bH(0x2f8))),console[bH(0x148)](a0L['gray'](bH(0x112))),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0xaa)][bH(0x26a)](bH(0x29a))+a0L[bH(0x249)](bH(0x28a))),console['log'](a0L[bH(0x182)](bH(0x2e8))),console[bH(0x148)](a0L[bH(0x38a)]('\x20\x20\x20\x20!cat\x20<<\x20\x27EOF\x27\x20>\x20solve.py')),console['log'](a0L['gray'](bH(0x191))),console['log'](a0L[bH(0x249)]('\x20\x20\x20\x20ct\x20=\x20bytes.fromhex(\x220a2b0e1c...\x22)')),console[bH(0x148)](a0L['gray']('\x20\x20\x20\x20key\x20=\x20xor(ct[:5],\x20b\x22ICOA{\x22)')),console[bH(0x148)](a0L[bH(0x249)](bH(0x18f))),console[bH(0x148)](a0L[bH(0x38a)]('\x20\x20\x20\x20EOF')),console[bH(0x148)](a0L[bH(0x38a)](bH(0x32a))),console[bH(0x148)](),console['log'](a0L[bH(0xaa)][bH(0x26a)](bH(0x335))),console[bH(0x148)](a0L[bH(0x182)]('\x20\x20During\x20the\x20exam,\x20type\x20')+a0L[bH(0xaa)][bH(0x28c)](bH(0x363))+a0L[bH(0x182)](bH(0x397))),console[bH(0x148)](a0L[bH(0x249)](bH(0x207))),console['log'](a0L[bH(0x249)]('\x20\x20\x20\x20\x22Show\x20me\x20how\x20to\x20use\x20struct.unpack\x22')),console['log'](a0L[bH(0x249)](bH(0x168))),console[bH(0x148)](a0L[bH(0x28c)](bH(0x30e))),console[bH(0x148)](),console[bH(0x148)](a0L[bH(0x182)](bH(0x388))+a0L['bold'][bH(0x28c)](bH(0x34a))),console[bH(0x148)](a0L[bH(0x249)]('\x20\x20Or\x20type\x20')+a0L[bH(0xaa)][bH(0x28c)](bH(0xed))+a0L[bH(0x249)](bH(0x190))),console['log']();}),B[bb(0x346)](()=>{const bJ=bb;a0a8(bJ(0x268));const F=a0Y();if(F){a0ae('In\x20Progress:\x20'+F[bJ(0x27b)][bJ(0x104)]),O();const J=Object[bJ(0x106)](F[bJ(0x280)])[bJ(0xa8)];return a0af(bJ(0x2a8),J+'/'+F[bJ(0x27b)][bJ(0x211)]+bJ(0x22b)),console[bJ(0x148)](),void console[bJ(0x148)](a0L[bJ(0x249)](bJ(0x16b)));}const G=a0a3(),H=a0ak();console[bJ(0x148)](),a0ae(bJ(0x151)),console[bJ(0x148)](),0x427*-0x1+0xb3a+0x1*-0x713===G[bJ(0x398)]?(console[bJ(0x148)](a0L[bJ(0x26a)]('\x20\x20○\x20')+a0L['yellow'](bJ(0x308))),console['log'](a0L['gray'](bJ(0xa1))+a0L[bJ(0xaa)][bJ(0x28c)](bJ(0x267)))):(console[bJ(0x148)](a0L[bJ(0x38a)](bJ(0x1fd))+a0L[bJ(0x38a)](bJ(0x345)+G[bJ(0x398)]+bJ(0x100)+(-0xea1*-0x1+0x2568+0x78*-0x6f!==G[bJ(0x398)]?'s':'')+')')),H?(console[bJ(0x148)](a0L['green'](bJ(0x1fd))+a0L[bJ(0x38a)](bJ(0xdd))),console[bJ(0x148)](a0L[bJ(0x26a)](bJ(0x163))+a0L['yellow'](bJ(0xa4))),console['log'](a0L[bJ(0x249)](bJ(0xa1))+a0L[bJ(0xaa)]['cyan']('exam\x20<token>'))):(console['log'](a0L[bJ(0x26a)]('\x20\x20○\x20')+a0L[bJ(0x26a)](bJ(0x37f))),console[bJ(0x148)](a0L[bJ(0x249)](bJ(0xa1))+a0L[bJ(0xaa)][bJ(0x28c)](bJ(0x314))))),console[bJ(0x148)]();});}
1
+ (function(z,B){const aX=a0B,F=z();while(!![]){try{const G=parseInt(aX(0xe6))/(-0x2*0x7a2+0xb3*0xa+0x847)+-parseInt(aX(0x71))/(0x2648+0x13c2+-0x3a08)+parseInt(aX(0x29a))/(-0x9*0x3e7+-0xc*0x262+0x3fba)*(parseInt(aX(0x1f9))/(-0x43f*-0x2+0x464*-0x4+0x916))+parseInt(aX(0x119))/(-0x17b9*0x1+-0x97*-0x2b+-0x19f)+parseInt(aX(0x199))/(-0x2b*0x47+-0x611+0x1204)+parseInt(aX(0x22b))/(0x10*-0x11b+-0x493*-0x5+-0x528)*(parseInt(aX(0x1ed))/(0x904+0xe67+0x1*-0x1763))+-parseInt(aX(0x281))/(-0x4d*-0x7f+-0x1*-0x1715+0x3d3f*-0x1)*(parseInt(aX(0x113))/(0xc9+0x19d5*0x1+0x6c*-0x3f));if(G===B)break;else F['push'](F['shift']());}catch(H){F['push'](F['shift']());}}}(a0z,0x9b55*-0x13+0x3f009+-0x128659*-0x1));import a0L from'chalk';import{confirm as a0Q}from'@inquirer/prompts';import{ExamClient as a0V}from'../lib/exam-client.js';import{getConfig as a0W,saveConfig as a0X}from'../lib/config.js';import{getExamState as a0Y,saveExamState as a0Z,clearExamState as a0a0,getExamDeadline as a0a1,materializeAttachedData as a0a2}from'../lib/exam-state.js';import{getDemoStats as a0a3,recordDemoAttempt as a0a4,saveRetryQueue as a0a5,getRetryQueue as a0a6,clearRetryQueue as a0a7}from'../lib/demo-stats.js';function a0z(){const bK=['s2vLCcbPDcbPBIbTAw5KigzVCIbYzxzPzxCU','tg9HzgLUzYbLEgfTlI4U','rw50zxiGzxHHBsb3AxrOigfJy2vZCYb0B2TLBIaOBM8GBg9NAw4GBMvLzgvKkq','icdcTYaG','AwDUB3jL','icaGu3LKBMv5lcbbDxn0CMfSAweGimk3icbkDw4GmJCG4OctieP1BcaYlcaYmdi2','ks4Gww91j3jLig9UihLVDxiGB3DUisdWN5kQ','x2HLBhbnyxG','icaGieLUC3rHBgWGuhL0Ag9UidmUmtiGyw5KihjLlxj1BIbLEgfTihnLDhvWlG','icbzB3uGy2fUig5VDYbLBNrLCIbHig5LDYb0B2TLBIb3AxrOia','icaGDgHLig9Yz2fUAxPLCIbPBIb5B3vYignVDw50CNKU','zw50CMLLCW','icaOugfWzxiGqYb0B2TLBNmGC2TPCcb0AgLZigDHDguG4OcuifbHCgvYiemGAxmGtunrlw9UBhKP','icdcTYbszwzLCMvUy2uGz3vPzgvZigzVCIaZocb0B29SCZOG','icbdB250Aw51zsb0AgLZigv4yw06','Cvr1Dg9YAwfS','icaGsw50zxjUyxrPB25HBcbdEwjLCIbpBhLTCgLHzcbPBIbbssaYmdi2','CxvLC3rPB25Z','icaGid4+pIbJAxbOzxiGpsbbrvmUBMv3kgTLEsWGquvtlK1prevFq0jdlcbPDIK','icbpCIbKB3DUBg9HzcbPBNn0ywXSzxi6','C3vIBwL0DgvK','icaGicaGicaGicaGicaGicaGCNuGWRCGAgKGWRCGzguGWRCGAwqGWRCGDgGGWRCGDMKGWRCGDhi','icaGicaGicaOBM93lcb+nsbTAw4P','AwnVys1JBgK','uhjLCgfYAw5Nigv4yw0Gzw52AxjVBM1LBNqUlI4','x2HLBhbvC2vK','icaGicbiAw50CYbbl0iVqZOGicaG','icaGieXHBMC6icaGia','icbszwnVBw1LBMrLzcbWyxrOiokaLcbZD2L0y2GGDg8Gv1nmmIaOB25LlxrPBwuSih41ig1PBIK6','EJmTC29SDMvY','DxnLza','icaGifb5DgHVBIaZlJeZigLZihrVBYbUzxCG4Ocuig1VC3qGq1rgigXPyNjHCMLLCYbSywnRihDOzwvSCY4','C2nVCMu','lIboBYb0Aw1LCI4GrNjLzsbWCMfJDgLJzs4','ihrVignVBMzPCM0Sig9YigfUExrOAw5NigvSC2uGDg8Gy2fUy2vSoG','CdmW','icbbssbbC3nPC3rHBNq','vgLTzq','C3rKzxjY','C3rVCa','icaGidmUieLUC2LKzsbvyNvUDhuSigLUC3rHBgWGtM9Kzs5QCYaYmIaRifb5DgHVBIb0B29SCYaRigLJB2e6','rxHHy3rSEs4','icaGvgLTzsbZDgLSBcbJB3vUDgLUzYbKB3DUlIbcDwrNzxqGFJiGBwLUihbLCIbXDwvZDgLVBI4','BMv4DeXHyMvS','x2vSAw1PBMf0zwq','BNvTChK','t3rOzxi','C3vIBwL0ieLdt0f7Ew91CL9MBgfNFq','ChL0Ag9UvMvYC2LVBG','icaGiokgKIbIj0HLBgXVjW','BgLUDxG','vwj1BNr1ia','icaGihDPBMDLDcbPBNn0ywXSifb5DgHVBI5qExrOB24UmY4XmG','q29UBMvJDgLUzYb0BYbLEgfTihnLCNzLCI4UlG','icH3B3jRCYWGyNv0idmUmtiGCMvJB21Tzw5KzwqP','Dg9tDhjPBMC','sMfWyw4','icaGicdILQmG','ovrtA2TeAW','C3rKAw8','icdINjmGrxHHBsbZDgf0zsbJBgvHCMvKlG','C2XPy2u','ig1PBG','icaOC2fTzsbHCYb5B3uGANvZDcb0ExbLzcK','D3jPDgu','icaGicHYzwXHDgL2zsb0BYbVDgHLCIbJyxrLz29YAwvZiokaLcbUDw1LCMLJihnJB3jLCYbNBYb0BYb5B3vYigv4yw0Gy2vUDgvYkq','Dwj1BNr1','icaGicbZDgLSBcbHy3rPDMuGyw5Kig5VDcbZDwjTAxr0zwqSihjLlwvUDgvYAw5NihrOzsbZyw1LihrVA2vUihjLC3vTzxmGAxqU','yxr0zw1WDhm','u3rHCNqGDgHLigv4yw0/ifrOzsb0Aw1LCIb3AwXSigjLz2LUigLTBwvKAwf0zwX5lG','D2LUz2v0igLUC3rHBgWGls1PzcbqExrOB24UuhL0Ag9UlJmUmtiGlwu','uK9qz2fKz2v0','D3nSic0TAw5ZDgfSBcaTzcbvyNvUDhuTmJiUmdq','ihvUzMXHz2DLzc4','icdIHlKGuevqidy2ocbKzxrLy3rLzcdIGjqGDxnPBMCGls11C2vYigLUC3rHBgWGkg5Vihn1zg8GBMvLzgvKkq','zhvYyxrPB25nAw51DgvZ','uMvJB21Tzw5Kzwq6ignVBxbSzxrLigrLBw8GzMLYC3q','icaGifb5DgHVBIaZlJeYigLZihjLy29TBwvUzgvKlIbjBNn0ywXSoG','C29YDa','yMvHDxrPzNvSC291Cdq','icaGzMLUAxnOigfUzcbZDwjTAxq','CMvK','iIaYpI9KzxyVBNvSBa','mZuXzM1bt2Dh','icbVzIa','icbvC2u6igv4yw0GCMv2Awv3imk3igv4yw0GC3vIBwL0','icaGigv4yw0GC3vIBwL0','CgfKrw5K','sgvSCdOGicaGica','icaGig1HCMS','u29SAwqGCgLJAY4','icaGicfWExrOB24Z','BMfTzq','CMvWBgfJzq','icaGswyGDgLTzsbPCYb0AwDODcWGC2TPBsbrmZKVndaGzMLYC3qGDg8GzgvJAwrLigf0DgfJAYbVCMrLCI4','AgvSCfjLBw92zq','ywK0y3rM','icHXDwLJAYb0yxnRCYK','icaGiokaOIbbBgWGAw50zxjHy3rPB25ZigfYzsbYzwnVCMrLzcbMB3iGyxvKAxq','icdIMQaGifjLC2v0ihDPBgWGywjHBMrVBIb5B3vYign1CNjLBNqGzxHHBsbZzxnZAw9Uig9UihrOAxmGzgv2AwnLlG','vhvYA2v5','l2fWAs9Py29Hl3nLCNzLCI10Aw1L','ANnVBG','icHJB21WBgv4ihnVBhv0Aw9UCYK','icaGicfJyxqGpdWGj0vprICGpIbZB2X2zs5WEq','ica0mcSGy291BNrYAwvZigfUzcbYzwDPB25ZihjLChjLC2vUDgvK','z3jLzw4','icaGign0zJrHAq','D2L0Aa','igf0DgvTChq','zwDNmW','vgLTzsbszw1HAw5PBMC','4OcuihLVDsDYzsaXlZqGDgHYB3vNAcb0AguGzxHHBq','tg9HzgLUzYbLEgfTCY4UlG','AhrWqMfJAW','icaG8j+oRYaGu2vJDgLVBIaZoIbdvey0quKG4OcuienOywXSzw5Nzsb0AguGquK','u3rYB25NzxiGAgvYztOGia','icaGicbuB2TLBJOG','l2fUC3DLCG','tM8Gyw5ZD2vYCYb0BYbZDwjTAxqUiev4yw0Gy2XLyxjLzc4','icaGicaGC3vKBYbHChqGAw5ZDgfSBcbWExrOB24ZlJeYihb5DgHVBJmUmtiTDMvUDG','uM9VBsb0BYbNCM93oIaGia','lcbUB3qGEw91CIb0zwfTBwf0zq','C3vKBYbUCg0GAw5ZDgfSBcaTzYbPy29HlwnSAq','sg1Tlcb3B3j0AcbHihnLy29UzcbSB29Rigf0ihrOzsbLBMqU','4O+XifrPBwuGCMvTywLUAw5NoG','C19HAtrJDgy','zwDNmtm','icbuBYbJB250Aw51zsb0AgLZigv4yw06','icaGigfPngn0zG','zgvTB0LUDhjVu2vLBG','icbODhrWCZOVl2LJB2eYmdi2lMf1','zxHHBsbSAxn0ia','icaOuMv0CNKGD3jVBMCGB25SEsK','DxrMltG','u3vIBwL0igL0igzPCNn0oIbLEgfTihn1yM1PDa','ic1TigvUC3vYzxbPCcaTlxvWz3jHzgu','sw5KB25LC2LH','uhjLCgfYAw5Nihf1zxn0Aw9UCY4UlG','yw5ZD2vYx2nOyw5Nzwq','icbTywnpuYaOsg9TzwjYzxCSihjLy29TBwvUzgvKktO','icbbzNrLCIbPBNn0ywXSAw5NlcbYDw46ia','yNjLDW','yNjLDYbPBNn0ywXSihb5DgHVBKaZlJeY','y2f0zwDVCNLtDgf0CW','Ew91CIbmAw51EcbKAxn0CM8','icaGicbtB2X2zsa','vgLTzsb1C2vKoIa','icaGC2vJDxjPDhKGDgfZA3mG4OcuignYExb0BYWGD2vIlcbMB3jLBNnPy3mSihb3BI4','icHLEhbSB3jLicyGzxHWzxjPBwvUDcK','zxHHBsbZDwjTAxqG','icaGigHLBha','y29UzMLYBwvKqxq','icGR','zxHHBq','Ahr0Chm6lY9WCMfJDgLJzs5Py29HmJaYnI5HDs9HCgKVAwnVys9Kzw1Vlxn0yxrZ','ihLLDc4','v2LUzg93CYbUyxrPDMuGkfbVD2vYu2HLBgWGlYbJBwqP','icaGigzYB20GChDUigLTCg9YDcb4B3i','icbxAw5KB3DZicH3Aw5NzxqSihjLy29TBwvUzgvKktO','AhrWsgvSCa','Dg9mB3DLCKnHC2u','r3jHzgLUzY4UlG','rw52AxjVBM1LBNqGCMvHzhKHiefSBca','zw5JB2rPBMC','C2v0Dxa','icaGifb5DgHVBJOG','igLZigeGChjHy3rPy2fSihf1zxn0Aw9UiokaLcbHBNn3zxiGD2L0AcbHigzSywCSig5VDcbHigXLDhrLCI4','iefjihn5C3rLBxmU','icaGidiUieLUifbVD2vYu2HLBgWSigLUC3rHBgWGuhL0Ag9UihDPDgGGCgLWoG','AhrWtgfUzW','ic8G','icaGifbHy2THz2vZoIa','Dgv4Da','ihDHCYbUB3qGzMXHz2DLzc4','vhLWztOGzgvTBYb0BYbZDgfYDcbHz2fPBI4','BwLU','C3rKAw4','icaGieeVqI9dl0q','Cgn0','ig9YigXLyxzLihDPDgGG','zxHPDa','vg90ywW','icbzB3vYihj1BG','AhrWuMv2Awv3','ifSGxsaG','zxHHBu5HBwu','tMfTzq','l3n1yM1PDa','icaGicbfEgfToIaG','tM8GzxHHBxmGyxzHAwXHyMXLigzVCIb5B3vYignVDw50CNKGEwv0lG','rxHHBsaI','icbjzIb5B3uGBMvLzcb0BYbHyMfUzg9UihrOAxmGC2vZC2LVBIaOzs5NlIbLEhbPCMvKic8GD3jVBMCGCgfWzxiPla','icbdB3vSzcbUB3qGCMvHy2GGC2vYDMvYigzVCIbOzwXWlIbdAgvJAYb5B3vYignVBM5Ly3rPB24U','mJuSmdaWihrVA2vUCW','rw52AxjVBM1LBNqGywXYzwfKEsbZzxqGDxa','igfUzcbWCMvZCYbfBNrLCIb0BYbSzwf2zsbPy29H','zwXPBwLUyxrLza','tMLJzsbVBMuU','zxHHBsbZDgfYDca','zxHHBsbZzxr1Ca','x2XHC3rr','igjVBNvZigHLBhaGDw5SB2nRzwqHicG','C3rHCNqGpgLKpG','icaG4PAi4PAi4Pwr4PAi4PAi4PwricaGicdILOJILOJILzeGicdILOJILOJILzhILOJILOJILztILzdILzdILOJILOJILze','icbeAxjLy3rPB25HBcbMzwvKyMfJAW','CsbBBL0','Dw5KzxjSAw5L','sunpqsboyxrPB25HBcbtzwXLy3rPB24GrxHHBq','DhLWzq','xsaG','zxHHBsbZDwjTAxq','sw52ywXPzcb0B2TLBG','icaGia','oJaW','yM9Sza','x2HLBhbqzxjr','icdINjmG','y3rMngfP','ixb5DgHVBJm','icbjq09bidiWmJyGWRCGu3LKBMv5lcbbDxn0CMfSAweGWRCGsNvUidi3iokaKYbkDwWGmG','icbVCIaG','zgvHzgXPBMvtzxj2zxjnCW','CgLWzq','icaGidiUifjLAw5ZDgfSBcbqExrOB24GD2L0AcbWAxaGkeHVBwvICMv3igrLDgvJDgvKiokCKYK6','ihrOzsbJB21WzxrPDgLVBI4','zw5KC1DPDgG','uMvHzhKH','zNjVBq','AwnVyq','rgvTBYbszxrYEsdIGjqGv3jVBMCGuxvLC3rPB25Zie9UBhK','icbfEgfTCgXLoIa','BwvZC2fNzq','icboyxrPB25HBcbsB3vUzcaXifnLBgvJDgLVBIbLEgfTCYbHCMuGyMvPBMCGChjLCgfYzwqU','quXm','BwfYAYbBBL0','AgvSCefSBfvZzwq','BgLZDcbBy291BNrYEv0','zxHHBsbKzw1V','icdILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','BMv4DcaVihbYzxy','ueftu0ve','C19JDgy0ywK','iefjnenurG','z2v0vgLTzq','Dg9vChbLCKnHC2u','l2fWAs9Py29Hl2v4yw0TDg9Rzw4','C3rHDhvZ','CMv2Awv3','yw5ZD2vYidXUpIa8y2HVAwnLlI4UpG','icbuExbLia','zxHHBsa8Dg9Rzw4+','Bwf4','zxHHBvDHExnbAtrJDgy','qw5ZD2vYihf1zxn0Aw9Uie4GkeeVqI9dl0qGzM9Yie1dusWGsunpqxTMBgfNFsbMB3iGChjHy3rPy2fSkq','C3vIC3rYAw5N','u2LUz2fWB3jL','y3LHBG','ig5VDcbMB3vUzcaOms0','icbVBMuGzgv2AwnLicSGB25LihnLC3nPB24UifLVDsbJyw5UB3qGC3DPDgnOihrVA2vUCYbTAwqTzxHHBs4','uMv0CNKGB25SEsb0AguGCxvLC3rPB25ZihLVDsbNB3qGD3jVBMCGBgfZDcbKzw1Vigf0DgvTChq','BgfUzYa8y29Kzt4','icaGutm54OctndaGkdiGCxvLC3rPB25Zimk3ide2ihb0CYbLywnOiokaLcbOAwDOzxn0ihzHBhvLisK','icaOzgLMzMvYzw50igzYB20GDgHLig9Uzsb5B3uGDhLWzwqP','igf0DgvTChrZ','C2HVD25xyxjUAw5NCW','cIaG','icbszwLUC3rHBgWGuhL0Ag9UidmUmtiGD2L0AcbWAxaGyNvUzgXLzcWGDgHLBIbYzxrYEtO','q3rYBcTd','icaGv2HHDcb5B3uNBgWGzg8GDg9KyxK6','Ahr0Chm6lY9WCMfJDgLJzs5Py29HmJaYnI5HDq','icbnzxrOB2qGmJOGsw50zxjHy3rPDMuGuhL0Ag9U','icdIMQaGiduGBwLUDxrLCYbYzw1HAw5PBMC','zxHHBsbOzwXW','icaGihn1zg8Gyxb0ihvWzgf0zq','vMLLDYbHBgWGCgfYDgLJAxbHDgLUzYbJB3vUDhjPzxm','Ag93vg9qBgf5','icbuBYbJB25MAxjToIaG','ig1PBNv0zxm','icaGigv4yw0GBgLZDcbbvq','icaGigH0DhbZoI8VD3D3lNb5DgHVBI5VCMCVzg93BMXVywrZl3DPBMrVD3mV','icaGieHPBNrZoIaGieeOnsKGqIGZksbdkdePiokaLcbWCMfJDgLJywWGB25SEq','ic1TihbPCcbPBNn0ywXSihb3BNrVB2XZ','twfSyxLZAwe','CMvXDwvZDhm','icbkDxn0igfKzcaHigjLzM9Yzsb0AguGy29TBwfUzdO','icbtDgfYDcbHifb5DgHVBIbZzxnZAw9Ulcb0ExbLignVBw1HBMrZig9UzsbIEsbVBMu6','ls11C2vYic0TyNjLywSTC3LZDgvTlxbHy2THz2vZ','vxnLCI1bz2vUDa','q29TCgXLDguH','C3rHCNq','AxnbCNjHEq','icbvyNvUDhuGlYbezwjPyw4GkgrLywrZBMfRzxmGufbbktO','icaGifLVDsbJyw4GBM93ihvZztOG','Axnoyu4','icdILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILie','BM93','icbZDwjTAxqGzMXHzYbKAxjLy3rSEq','vgHHAwXHBMq','tK9uifbbu1nfra','icHr','mJC5mZKZngDWBuXjva','icdIMQaGuhL0Ag9Uia','icaGicfWExrOB24ZihnVBhzLlNb5','icaGid4+pIbRzxKGpsbIExrLCY5MCM9TAgv4kci0otqZngy0ms4UlIiP','ChL0Ag9UmW','CM9Wz2fKz2v0','ic1TihbPCcbPBNn0ywXSic0Tzhj5lxj1BIbWAxaGmJ4Mmq','igLZigzYzwuSihvUBgLTAxrLzcbWCMfJDgLJzs4','CdeW','u2vYDMvYig5VDcbYzwfJAgfIBguUienOzwnRihLVDxiGAw50zxjUzxqGy29UBMvJDgLVBI4','B3b0Aw9UCW','CMfUzg9T','u3rHDhvZ','ihjHBMrVBsbXDwvZDgLVBNmGzNjVBsbHihbVB2WGB2yG','yNjLDYbSAw5Ric0TB3zLCNDYAxrLihb5DgHVBKaZlJeY','Aw5JBhvKzxm','icaGuhjLC3mGyw55igTLEsb0BYbZDgfYDcbKzw1VlI4U','z2v0uMvZDwX0','icaG4PAi4PAi4Pwr4PwA4PAi4PAi4PAi4PAi4PAi4PAi4Pwx4PwA4PAi4PAi4PAi4PAi4PAi4PAi4Pwu4PwD4PAi4PAi4PwricdILOJILOJILze','icaGicbuAguGDg9Rzw4GAxrZzwXMigLZie5pvcbYzxzVA2vKihnLCNzLCI1ZAwrLlIbjzIb5B3vYihnLC3nPB24GAxm','icaGqNvKz2v0icHZAgfYzwqGywnYB3nZifeZmEkaKZm4kq','sunpqsbqyxj0AwnPCgf0Aw5NienVDw50CMLLCYbHBMqGuMvNAw9UCW','C3vIBwL0ifTJB25MAxjTqxjNxq','D3jVBMC','iokgKIa','icdIL4SG','ixb5DgHVBJmGlI4U','yNm0','zgfYD2LU','icbr','icaGicaGicaGia','zxHHBuLK','icbozxCGzxHHBxmGyxjLignVBwLUzYbZB29Uiq','vMLLDg5HBq','y3rMzfvYBa','icaGidmUie9Wzw4GysborvCGug93zxjtAgvSBcb3Aw5KB3CGkfbbveGGCMvMCMvZAcKSihrOzw46','8j+pLU+4JW','yw5ZD2vY','icdILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILie','icaGzxHHBsbJzw50zxiUiezPBMfSihnJB3jPBMCGyw5KihnLBgvJDgLVBIbHCMuGzgvJAwrLzcbIEq','BMf0Aw9UCW','icaGigjYzxCGAw5ZDgfSBcbWExrOB25amY4XmG','ihf1zxn0Aw9UCYbKCMf3BIbMCM9TigeGCg9VBcbVzIa','CMvTB3zLtgLZDgvUzxi','iokaLcbZzwuGzNvSBcbLCNjVCG','CxvPDa','ywLvC2fNzq','icaGiokrOIa','icaGihn1zg8GCgfJBwfUic1tihb5DgHVBG','y2vPBa','icbezxrLy3rLzdOG','tMf0Aw9UywWGC2vSzwn0Aw9Uigv4yw0','icbbBNn3zxjZigfYzsa','icaGicbbssb0B2TLBNm6icaGicaG','icaGideUifr5CguG','vMfSAwrHDgLUzYb0B2TLBI4UlG','ugvYy2vUDgfNzq','icbozxCGBwvTyMvYpYbdB250ywn0oIbHy2nYzwrPDgf0Aw9UqgLJB2eYmdi2lMf1','zxHHBsbYzxnLDa','ica+ia','igzVCIb0AgLZihnLy3rPB24','Aw5KzxHpzG','yxr0ywnOzwreyxrH','zxHHBsbHBNn3zxiG','icbzB3uGy2fUihbHDxnLihDPDgGG','ihrVigfZAYbbssbMB3iGAgvSCdO','icaG4PElicbtDwjTAxnZAw9UigfJy2vWDgvK','ugvYDq','yxr0ywnRAw5N','CM91BMq','rxHHBxmG4Ocuia','ywn0Aw9U','y2f0y2G','Dg90ywXty29Yzq','icbqCMvZCYbfBNrLCIb0BYbZDgfYDcb0AguGzxHHBsb0Aw1LCI4UlIa','vw5SB2nRigHPzgrLBIbIB251CYbOzwXWihvZzxm','AhrWu3vIBwL0','icbqyxbLCIbbic8GqIbWCMfJDgLJywWGCxvLC3rPB25Zig5LzwqGvw5PEcb0B29SAw5NihrOyxqGCNvUCW','icaGidmUifjLC3rHCNqGAwnVysbHBMqGCMv0CNK6','ihjLBwfPBMLUzYK','icaGicaGifrOzw4GAw5ZDgfSBcbqExrOB246','CgvYy2vUDgfNzq','igfUC3DLCMvKkq','DM9SyxrPBgL0Etm','ywK0y3rMu3vI','imk3ia','icbtzwuGywXSigzSywDNzwqGCxvLC3rPB25ZigLUoIa','BM9KztPJAgLSzf9WCM9JzxnZ','ig1PBIbYzw1HAw5PBMC','icaGicbfBNrLCIbJAgf0oIaGicaG','Dg9Rzw4','icaGid4+pIbMCM9TienYExb0BY5dAxbOzxiGAw1WB3j0ieffuW','vxbSB2fKAw5NigfUC3DLCNmUlI4','rxHHBsbLEhbPCMvKigfUzcbJBgvHCMvKlG','Cg9ZDc1YzxbVCNqTCMv0CNK','icbozwvKig1VCMu/ifr5Cgu6ia','u3rHCNqGyw4GzxHHBsaOyMvNAw5ZihrPBwvYkq','zwDNmtu','z3jHzgLUzW','CMvZzxq','icaGicaGCMvZDw1Ligf0igfUEsbXDwvZDgLVBG','icaGiokrOsa','igzSywDNzwqGzM9YihjLDMLLDY4','icbgAwX0zxiGyNKGy291BNrYEtOGzxHHBsbSAxn0ifbflcbLEgfTigXPC3qGq04Sic4UlG','icaGiokCKYbZyxzLza','rwD5Chq','icbuCNvZDcb5B3vYigLUC3rPBMn0igfUzcbWAwnRig9Uzse','BgfUz3vHz2u','sw52ywXPzcbXDwvZDgLVBIbUDw1IzxiUifvZzsaXlI4','ugHPBgLWCgLUzxm','AM9PBG','vxPIzwTPC3rHBG','icbzB3vYigfUC3DLCJOG','y2XLyxi','icbtDgfYDdOGzxHHBsbZDgfYDca8Awq+','vgLTzsbLEhbPCMvKlG','vw5PDgvKifn0yxrLCW','odiXnZi0yxbLq3bW','icaG4PAi4PAi4PwxiokwIokwIokwIokwIokwIokwIokvLYdILOJILOJILOJILOJILOJILOJILzCGiokwIokwIokwIokwIokwIokvLW','C3rYAwTLDgHYB3vNAa','ihLVDsbNB3qGD3jVBMCU','qw5ZD2vYzwq6ica','mJuSmdaW','uhjLlwv4yw0GC2v0DxaGCMvXDwLYzwq','icbgCMvLihbYywn0AwnLimk3ie5VigfJy291BNqGBMvLzgvKimk3ie5VihrPBwuGBgLTAxq','icaGiokgKIa','icaGC2vLihbYB2DYzxnZicSGzMXHz2DLzcbPDgvTCW','twfJyxu','icdILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILitILiq','vMLLDYbXDwvZDgLVBIaOB3iGywXSihf1zxn0Aw9UCYK','BMv3','y3j5ChrVz3jHCgH5','DgvZDa','icbxCML0zsbHic5WEsbMAwXLlcb0AgvUihj1BIbPDdO','C3bSAxq','icaGww91CIb0zxjTAw5HBca','icbfEhbLy3rLzdOGms0Yig1PBNv0zxmGWRCGFJe1me1cigrPC2S','icdWN46bicS','icdWN46jiefSBcbXDwvZDgLVBNmGyw5ZD2vYzwqH','AhrWqw5ZD2vY','ChDU','rMXHz2DLzdOGica','BwLZC2LUzW','uhjVz3jLC3m','imk3ifbPy2SGB25LigfUC3DLCIbWzxiGCxvLC3rPB24','icaGign0id0GyNL0zxmUzNjVBwHLEcGImgeYyJbLmwmUlI4Ikq','igfUC3DLCMvK','ihrVihn1yM1PDcbMB3iGz3jHzgLUzY4','icbzB3uGC3rPBgWGAgf2zsa','icaGrwXHChnLzdOG','zw1VAMK','yw5ZD2vYCW','vhj5igeGzNjLzsbWCMfJDgLJzsbLEgfTicHUBYbHy2nVDw50ig5LzwrLzcK','tM8GzxHHBsbPBIbWCM9NCMvZCY4','ChjLDG','icdILidILidILiaGu3rHEsbVBIbUyxrPDMuGv2LUzg93CYaOyMvZDc1LzMzVCNqSig1HEsbOAxqGuefuscbPC3n1zxmPiokuGokuGokuGa','BNvTyMvY','C2vZC2LVBG','ChvZAa','icdIHPiGia','zxHHBsbTB3jLlwHLBha','qMfUz2XHzgvZAa','mJGYnZa0mtb4y1P6yNG','ig1PBNv0zxmGBgvMDc4Gs2vLCcb0AguGCgfJzsbZDgvHzhKU','ugXLyxnLihbYB3zPzguGEw91CIbMBgfNoIbLEgfTigfUC3DLCIa8BJ4GsunpqxT5B3vYx2zSywD9','qwjHBMrVBIbJDxjYzw50igv4yw0GC2vZC2LVBIbHBMqGD2LWzsbSB2nHBcbZDgf0zsaOCMvJB3zLCNKGB25SEsK','Aw5ZDgfSBgvKugfJA2fNzxm','tg9HzgLUzYbXDwvZDgLVBNmUlI4','ntG3mZa4nwX6whDwBa','icaGWRCGmteWienurIb0B29SCYbWCMuTy29UzMLNDxjLza','C3vKBYbHChqGAw5ZDgfSBcaTEsbWExrOB24ZlxbPCcbWExrOB24ZlxzLBNy','vw5PDgvKieTPBMDKB20','C2v0uMf3tw9Kzq','icaG4PAi4PAi4Pwr4PAi4PAi4Pwu4Pwq4Pwq4Pwq4Pwq4PwD4PAi4PAi4Pwu4Pwq4Pwq4Pwq4PAi4PAi4Pwx4PAi4PAi4Pwu4Pwq4Pwq4PAi4PAi4Pwx','CgfZC2LUz1nJB3jL','AwnVyt4','ihbHy2THz2vZlI4U','icdIMiyGuq','icbxCMfWihvWigfUzcbZDwjTAxq6ia','icaG4PwA4Pwq4PwDiokvMUkvKokvKokvKokvKokvKokvNsdILzRILzdILzdILzdILzdILzdILz0G4PwA4Pwq4PwDicdILzRILzdILz0','qw5ZD2vYzwq','icbszwfKEt8GvxnLia','igrLDgvJDgvK','BM9KztPMCW','lI4U','A2v5CW','D2HPDgu','icdINjmGvg9Rzw4GCMuTyxr0ywnOzwqGDg8GEw91CIbPBI1WCM9NCMvZCYbLEgfTlG','uhjLCgfYAw5NlI4U','y291BNrYEq','ic1TihbPCcbZAg93ici','C3rHCNrfEgfT','icdWN5kHie9WDgLVBIa','icaGiokaOIbuCNK6ia','zxHHBvDHExngB3vUza','icdINjmGCgLWigLUC3rHBgXLza','q2HVAwnLig11C3qGyMuGqsWGqIWGqYWGB3iGrc4','igvSAw1PBMf0zwqH','CgXHDgzVCM0','AgvSCfvZzwrvCa','icbqBgvHC2uGCMuTDhLWztOG','Aw50zxjHy3rPB25Z','tg9HzgLUzYbYzxn1BhqUlI4','zgvTBY1LBNrLCG','icdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILza','r0vu','C3vIBwL0ieLdt0f7lI4UFq','icdIJ7aGmtaGBwLUDxrLCYbYzw1HAw5PBMC','y29YCMvJDa','u291DgGGs29Yzwe','CgvYuq','qNjHEMLS','AhrWtMf2','l2v0yY9VCY1YzwXLyxnL','icaOtwLUAw1HBcbvyNvUDhuGlYbJBg91zcaVifDttdiGAw1Hz2vZig9MDgvUihnOAxaGD2L0Ag91DcbWAxaUkq','yw5ZD2vYvgHPCW','zxHHBsbXia','rw52AxjVBM1LBNqGCMvHzhK','y3vYBcaTzNnttcbODhrWCZOVl2rLyI5UB2rLC291CMnLlMnVBs9Zzxr1Cf8YmI54ihWGC3vKBYaTrsbIyxnOic0','C3vIBwL0rxHHBq','icaGica','icbpCIb0ExbLia','t24GDgHLig1VBMv5lG','icbjBNn0ywXSAw5Nia','lI4VBgLIl2v4yw0TC3rHDguUANm','icdIMQaGiefUigv4yw0GAxmGywXYzwfKEsbPBIbWCM9NCMvZCYbVBIb0AgLZigrLDMLJzs4','Bsb0B3rHBa','y2f0zwDVCNK','zxHHBsbTyxjRia','C3vKBYbHChqGAw5ZDgfSBcaTEsbUB2rLANmGChL0Ag9UmY1WAxaGChL0Ag9UmY12zw52','AhrWtw9YzuHLBha','l2fWAs9Py29Hl2v4yw1ZlW','AgvSCa','ic1TihbPCcbPBNn0ywXSici','ihnRAxbWzwq','zgvTBW','zMfPBgvKugfJA2fNzxm','zMXVB3i','igf0igfUEsb0Aw1LlG','y29TBwfUza','icdIHPiG','Dg90ywW','icaGicaGC3rHCNqGuhL0Ag9UihnOzwXS','zwDNnW','q291BNrYEq','ihbHy2THz2vZigLUC3rHBgXLzc4','icbuAgLZihf1zxn0Aw9UihjLCxvPCMvZihLVDsb0BYb1C2uGAgvSCcbIzwzVCMuGyw5ZD2vYAw5NlG','icdIL48G','icbiB3CGDg8GDxnLifb5DgHVBIbPBIbjq09bienmsq','CMvZDwX0ifTPzf0','iokCKYaGka','lI4VBgLIl2nVBMzPzY5QCW','icbiB3CGDg8GAw5ZDgfSBcbqExrOB24GmY4XmcSGkdmUmtiGCMvJB21Tzw5KzwqPoG','icdINjmGie1dusbZzwn0Aw9UignVBxbSzxrLiokaLcb3zwXSigrVBMuH','DdeW','zxHHBvDHExnuB1nVBhzL','CMvM','icbizwXWihvZzwq6ia','icbrDwvZDgLVBNmGAw4Grw5NBgLZAc4Gvg8GC3DPDgnOigXHBMD1ywDLigzPCNn0oG','icaGicbLEgfTigXPC3qGq04','rw50zxiGzxHHBsb0B2TLBIb0BYbIzwDPBG','ic1JicjPBxbVCNqG','lZmWig11BhrPCgXLlwnOB2LJzsbHBNn3zxjLza','AxnsyxC','iokaLcbZD2L0y2GGD2L0AdOGBgfUzYa8y29Kzt4','icaGicHHAtrJDgyP','DMXH','icaGidiUieLUC3rHBgWGsg9TzwjYzxCGzMLYC3qGkhDLigrPzcbUB3qGzMLUzca','yM9VA21HCMTZ','icHxu0WYkq','quKGDg9Rzw5ZoIa','icaGihzSytrJDgy','zxHHBv9Pza','icdILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILihILie','icbjBIb0AguGBwvHBNrPBwuSihrYEtOG','q29UDgvUDc1uExbL','icaG','r2vYBwfUEq','ihbHy2THz2vZigLUC3rHBgXLzc4G','iefjigj5ihLVDxiGC2LKzs4GquKGAxmGEw91CIb0zwfTBwf0zs4','icbtDwjTAxqGBM93ihDPDgG6ia','C3rYAw5NAwz5','A2v5','zxHHBsbUyxrPB25Z','AxnuvfK','icboyxrPDMuGv2LUzg93CYbJyw4GCNvUifbHCgvYiemGke1dus1VBMX5ksbHBMqGquKGy2HHDcWGyNv0','C29Tzq','rMfPBgvKihrVigXVywqGCMvZDwX0','icaGsg93ihrVigf0DgfJAW','CMvWzwf0','icbSyw5NigzYimk3igXHBMCGyxiGWRCGBgfUzYbWDcdcTYaXnsbSyw5NDwfNzxmGC3vWCg9YDgvK','Cg9PBNrZ','icdIMiuGuq','C2nHChK','vxnLicjLEgfTihjLDMLLDYiGDg8Gy2HLy2SGChjVz3jLC3mGB3iGiMv4yw0GC3vIBwL0iIb0BYbZDwjTAxqU','icbgAxjZDcbLCNjVCIbKzxrHAwWGkgzVCIbKzwj1z2DPBMCPoG','nZKZmdeYmLrzvLn3wG','icbfEgfToIaGica','ihnOyxjLzcbHy3jVC3mGutm54Octnda','tM8GzxHHBxmGyxzHAwXHyMXLigzVCIa','r28GDg8GChjLDMLVDxmGCxvLC3rPB24','C3rKB3v0','zxHWBgfUyxrPB24','icbqCMfJDgLJAw5Nia','yMvZDa','y2f0','rNjHBMnL','vw5HBNn3zxjLza','icbbBNn3zxjZoIa','Dw5TyxjRifTUxq','icbnzxrOB2qGmZOGu2nYAxb0igzPBgu','icaGigv4yw0GCsaXlI4','icaGid4+pIbWCMLUDcHJAxbOzxiUzgvJCNLWDcHKyxrHksK','icaGigv4yw0Gyw5ZD2vYidXUpIbjq09bEY4UlN0','EwvSBg93','icdcTYblzwvWihnOyxjWzw5PBMC6ia','CgLSBg93','yw5ZD2vYx3n1yM1PDhrLza','icbuB2TLBJOGica','zMLSDgvY','AgfZ','ihrVigXLyxzLigLJB2e','ue9tva','Aw5JB3jYzwn0sw50CM8','icaGifnVBwuGCgfJA2fNzxmGkhb3BNrVB2XZlcbZy2fWEsKGBwf5ig5VDcbOyxzLihDOzwvSCYb5zxqGzM9YidmUmtmU','BgvUz3rO','CxvLC3rPB24','icaGimk3ia','zxHHBsbZDwjTAxqGy29UzMLYBq','ihn0AwXSigzSywDNzwqGzM9YihjLDMLLDZOG','icbB','ic0TDMvYC2LVBG','icaGicbfEgL0ignOyxq6icaGicaG','CgTN','uMv2Awv3igfSBcbHBNn3zxjZigjLzM9YzsbZDwjTAxr0Aw5N','zxHHBsbKzw1VlxjLDhj5','icaGiokaOIbdAgvJAYb5B3uGAgf2zsbPBNrLCM5LDcaOCgLWlNb5CgeUAw8GBxvZDcbIzsbYzwfJAgfIBguP','u2nVCMu','zgvZy3jPChrPB24','u3bLy2LMEsbLEgfTieLeoIbLEgfTihjLC3vSDca8Awq+','icbLEgfTiheGw25Dicb8igv4yw0Gyw5ZD2vYidXUpIa8qs1epIb8igv4yw0GCMv2Awv3ihWGzxHHBsbZDwjTAxq','icbkDw1WihrVigeGzMXHz2DLzcbXDwvZDgLVBJOG','icaGiokaOIbpBIblywXPl1vIDw50DsaYmIS6ig1Pz2H0ig5LzwqGChL0Ag9UmY4XmI1KzxyGkYbIDwLSzc1LC3nLBNrPywW','icbYDw4G','icaGicbnzxnZywDLCYdIHPiGquKGDgfYz2v0iokaLcbJCMfMDcbWCM9TChrZihrVigjYzwfRigL0CYbYDwXLCY4','Bg9N','iokaLca','icaGihn1zg8Gzg5MigLUC3rHBgWGlxKGChL0Ag9UmY4XmG','q29TCgXLDguGDgHLigrLBw8GzMLYC3qGyMvMB3jLihnLDhrPBMCGDxaU','icdIMQaGiezjtKfmifnvqK1ju1njt04G4OcuihbSzwfZzsbJB25MAxjT','zMLUzeLUzgv4','ihWG','C3bSAwnL','C2vYDMvYx3rPBwvFBxm','D2HPy2G','zxHHBsbXide','icaGievprG','icaGigXHBMC','ixzPihnVBhzLlNb5','l2jPBI9IyxnOic1JiciKkgn1CMWGlwzZu0WGAhr0Chm6lY9YyxCUz2L0AhvIDxnLCMnVBNrLBNqUy29Tl0HVBwvICMv3l2LUC3rHBgWVsevbrc9PBNn0ywXSlNnOksi','uMvTB3zLihjLDMLLDYbMBgfNigzYB20GysbXDwvZDgLVBG','y29TCgXLDgu','ChLJCNLWDg9KB21L','icdIMQaGieXfu1mGveHbtIaXie1jtLvursbmruzu','icaGicfWExrOB24Zic1JicjPBxbVCNqGyMfZzty0oYbWCMLUDcHIyxnLnJqUyJy0zgvJB2rLkcDtr1zZyKC4psCPksi','lI4VBgLIl3bSyxrMB3jTlMPZ','CMvZDw1L','icbjq09big9MzMLJAwfSBhKGC3vWCg9YDhmGv1nmmIbVBIbxAw5KB3DZlG','CgfKu3rHCNq','icbtDgvWlwj5lxn0zxa6','ChDUDg9VBhm','ihbVAw50CYaOntaLkq','uNvZC2LH','icaGDxnPBMCGquKSihLVDsDYzsa','icaGigjHy2S','tM8Gyw5ZD2vYCYb0BYbZDwjTAxqU','Ew91CKfUC3DLCG','zhvYyxrPB25nAw4','zgvTBY1MCMvL','icaGiokrOca','mZeYndi2ngPtuwnqCq','u3vIBwL0igzHAwXLza','zwDNoq','icbozxH0ihn0zxa6ia','r2HHBMe','C3rHCNrLzef0','icaGigH0DhbZoI8VD3D3lNb5DgHVBI5VCMCVzg93BMXVywrZlW','zgvTBY1LEgfT','uxvLC3rPB25Z','icdIMiuGtMv3ihbLCNnVBMfSigjLC3qH','tM8GzxHHBsbPBIbWCM9NCMvZCY4GvxnLicjLEgfTihn0yxj0idXPzd4IihrVigjLz2LUlG','lI4VBgLIl3bHCgvYlxvWz3jHzguUANm','ndiXmJb2z05YqMu','tgfVCW','igzHAwXLzdOG','BwfW','icaGicaGicbLBNrLCIbdvey0quKGy2HHDcdIGjqGyxr0ywnRihrOzsbbssb0yxjNzxqGkhjLy29TBwvUzgvKkq','rMfPBgvKihrVigXVywqGzxHHBxm','zMLUza','u291DgGGqwzYAwnH','icaGienVBxbSzxrLzdOG','igLUC3rHBgXLza','vgvHBsb1Ccb3AxrOiefjihrVihnVBhzLienurNm','icbsDwXLCZO','4PQGicbfweLuigLJB2eGzMLYC3qG4Ocuihn1zg8Gy2fUBM90ihj1BIbPBNnPzguGDgHLihbYB21WDa','BM90ugfZC2vK','zMfPBa','zxHHBvDHExntAgvSBa','icdINjmGuhL0Ag9Uia','rgvTBYbJB21WBgv0zwqGka','icaGidiUieLUigfUiefKBwLUAxn0CMf0B3iGug93zxjtAgvSBcWGCNvUoG','icaGicaGia','icaGicbcDwrNzxqGFJiGBwLUihbLCIbWCMfJDgLJywWGCxvLC3rPB24UifLVDsbJyw4Gy29TzsbIywnRihDPDgG6ig5LEhqGlYbWCMv2lG','icbmyw5NDwfNztOG','ieLdt0f7Ew91CL9MBgfNFq','ueLm','icaG4PAi4PAi4Pwr4PAi4PAi4PwricaGicdILOJILOJILzeGicdILOJILOJILzhILOJILOJILOJILOJILOJILOJILOJILze','qxvZDhjHBgLH','icbbC3nPC3rHBMnLihvZzwq','zxHHBsbYzxzPzxC','yMfJAW','rhvYyxrPB24','DhjPBq','icaGs2v5igrPzMzLCMvUy2vZigzYB20GquK0q1rg','icdILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILidILia','icdIJ7eGifrPBwuGy2HLy2SGia','tgLZDcbHDMfPBgfIBguGzxHHBxmGkg9WDgLVBMfSoIaYlwXLDhrLCIbJB3vUDhj5ignVzguP','ihbYB21WDcWGANvZDcbSAwTLihrOzsbKzw1V','rwXPBwLUyxrLig9Uzsb3CM9UzYbVChrPB24GkgXPBwL0zwqGDxnLCYK','DgLTzw91Da','qxzHAwXHyMXLiev4yw1ZicG','zgf0yq','x3n1yM1PDenVBMzPCM1Lza','zwXPBwLUyxrL','u3vIBwL0igv4yw0GzM9YigDYywrPBMCGkhvZztOGiMv4yw0GC3vIBwL0ignVBMzPCM0IigzVCIbYzwfSigv4yw1Zkq','icbszxzPzxCGDw5HBNn3zxjLzcbXDwvZDgLVBNm6ia','r28GDg8GBMv4DcbXDwvZDgLVBG','z3jHEq','icbpChrPB25ZigHHDMuGyMvLBIbYzxnODwzMBgvKlG','B25Jzq','ywK0y3rMpG','icbdDxjYzw50BhKGzMXHz2DLzdOG','n0TLs2rVCW','uhL0Ag9Uia','ywK0y3rMrgvZyW','CxvLC3rPB25dB3vUDa','icbuAxa6ihn3AxrJAcb0BYb5B3vYigXHBMD1ywDLihDPDgG6igXHBMCG','icaGicdcTYbtzxbHCMf0zsbIDwrNzxq6ia','icbuAw1LoIaGica','zNvUy3rPB24','icaGig5LEhq','icaGv2vSy29Tzsb0BYb0AguGChjHy3rPy2fSienurIbZzwn0Aw9UlIbszwfS','vMLLDYbLEgfTihjLC3vSDa','sw4GuhjVz3jLC3m6ia','ywrK','C3LTChK','CgfZC2vK','y29TCgXLDgvKqxq','zxHHBvDHExntyxzLzfrV','yxbWBgLJyxrPB24VANnVBG','icbuCM91yMXLC2HVB3rPBMC6','icdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILza','lI4VBgLIl2rLBw8TzxHHBs5QCW','BwfJt1m','ihbVAw50CW','ihrVihjLDhvYBIb0BYb0AguGBwfPBIbTzw51lG','y2XVy2TpzMzZzxrnCW','icaGicaGicHszwjVB3qGAwyGv2LUzg93CYbHC2TZlcb0AgvUig9Wzw4GDgHLifvIDw50Dsb0zxjTAw5HBc4P','iIbPCYbPBIbWCM9NCMvZCY4','Dg9ju09tDhjPBMC'];a0z=function(){return bK;};return a0z();}import{logCommand as a0a8}from'../lib/logger.js';import{printSuccess as a0a9,printError as a0aa,printWarning as a0ab,printInfo as a0ac,printTable as a0ad,printHeader as a0ae,printKeyValue as a0af,createSpinner as a0ag,formatCountdown as a0ah}from'../lib/ui.js';import{t as a0ai}from'../lib/i18n.js';import{getDeviceFingerprint as a0aj}from'../lib/access.js';import{getExamSetup as a0ak,saveExamSetup as a0al,isExamSetupComplete as a0am}from'../lib/exam-setup.js';import{execSync as a0an}from'node:child_process';const q=z=>new Promise(B=>setTimeout(B,z));function a0B(a,b){a=a-(-0x22*-0x124+0xb3f*0x1+-0x31a3*0x1);const c=a0z();let d=c[a];if(a0B['Rgajle']===undefined){var e=function(i){const j='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let l='',m='';for(let n=-0x3*-0xac9+0x18a5+-0x3900,o,p,q=0x2341+0x1*0x1424+0x3765*-0x1;p=i['charAt'](q++);~p&&(o=n%(0x166d*-0x1+0x1b5b*-0x1+0x4*0xc73)?o*(-0x2*0x253+0x11e3+-0xcfd)+p:p,n++%(0x1ea*0x1+0x2f*0x4+-0x2*0x151))?l+=String['fromCharCode'](0x7f9+0x4*-0xd7+-0x39e&o>>(-(-0x88*0x2+-0x23f4+0x2506)*n&-0x1*-0xbef+0x15bf*0x1+0x4*-0x86a)):-0x4*-0x684+0x235e+0x3*-0x147a){p=j['indexOf'](p);}for(let r=0x295*-0x5+-0x6a3+-0x8b*-0x24,s=l['length'];r<s;r++){m+='%'+('00'+l['charCodeAt'](r)['toString'](0x22c2*-0x1+-0x11*-0x1b1+0x611))['slice'](-(0x3*-0xb51+0x1ca0+0x555));}return decodeURIComponent(m);};a0B['jXiYoo']=e,a0B['IodNfB']={},a0B['Rgajle']=!![];}const f=c[-0x1772*-0x1+0x405+0x59*-0x4f],g=a+f,h=a0B['IodNfB'][g];return!h?(d=a0B['jXiYoo'](d),a0B['IodNfB'][g]=d):d=h,d;}function E(B,F={}){const aY=a0B,G=a0W(),H={};H[aY(0x184)]=aY(0x23c),fetch(aY(0x2e2),{'method':'POST','headers':H,'body':JSON[aY(0x18a)]({'type':B,'lang':G[aY(0xdc)]||'en','timestamp':new Date()['toISOString'](),...F}),'signal':AbortSignal['timeout'](-0x3*-0xac9+0x18a5+-0x2578)})[aY(0xb9)](()=>{});}function N(z,B){const aZ=a0B,F=Math[aZ(0xb6)](z/(0x2341+0x1*0x1424+0x3701*-0x1)*(0x166d*-0x1+0x1b5b*-0x1+0x6*0x851)),G=-0x2*0x253+0x11e3+-0xd1f-F,H=a0L[aZ(0x2b1)]('█'['repeat'](F))+a0L[aZ(0x226)]('░'[aZ(0x192)](G)),J=String(z)[aZ(0x1e1)](0x1ea*0x1+0x2f*0x4+-0x19*0x1b)+'%';process['stdout'][aZ(0x287)]('\x0d\x1b[2K\x20\x20'+H+'\x20'+J+'\x20\x20'+a0L[aZ(0x226)](B));}function M(){const b0=a0B,z=a0W();return z[b0(0x93)]&&z[b0(0xcb)]?new a0V(z[b0(0x93)],z[b0(0xcb)]):(a0aa('Not\x20connected.\x20Run:\x20join\x20<url>'),null);}function O(){const b1=a0B,z=a0a1();z&&(new Date()<z?a0af(b1(0x2b6),a0L[b1(0x1ab)][b1(0x31e)](a0ah(z))):a0af(b1(0x26c),a0L['red'][b1(0x31e)]('EXPIRED')));}function D(z,B){const b2=a0B;return Array[b2(0x67)](z[b2(0x17d)])&&z[b2(0x17d)][b2(0x80)](B);}function j(z,B){const b3=a0B,F=Array['isArray'](z[b3(0x17d)])?[...z['bookmarks']]:[],G=F[b3(0xae)](B);return G>=0x7f9+0x4*-0xd7+-0x49d?(F[b3(0x1d1)](G,-0x88*0x2+-0x23f4+0x2505),z[b3(0x17d)]=F,a0Z(z),!(-0x1*-0xbef+0x15bf*0x1+0x1*-0x21ad)):(F['push'](B),F[b3(0x295)]((H,J)=>H-J),z[b3(0x17d)]=F,a0Z(z),!(-0x4*-0x684+0x235e+0x3*-0x147a));}function R(B){const b4=a0B,F={};return F[b4(0x265)]=B[b4(0x260)]||0x295*-0x5+-0x6a3+-0x8b*-0x24,F[b4(0x343)]=B['_helpMax']||0x22c2*-0x1+-0x11*-0x1b1+0x615,F[b4(0x143)]=B[b4(0x31f)]||{},F[b4(0x30c)]=B[b4(0x273)]||{},F;}function U(z,B){const b5=a0B,F=a0Y(),G=Number(F?.[b5(0x10e)][b5(0x22e)]||0x3*-0xb51+0x1ca0+0x571),H=Object[b5(0x12a)](F?.[b5(0x108)]||{})[b5(0x1b6)],J=R(F),K=J[b5(0x30c)][z[b5(0x10d)]]||[],L=b5(0x2a7)===z[b5(0x318)]||b5(0x321)===z[b5(0x318)]||b5(0x17b)===z[b5(0x318)]||z[b5(0x7b)]&&!z[b5(0x7b)]['A']&&!z['options']['B'];F&&function(Y,Z){const b6=b5;if(b6(0x1eb)===Y['session'][b6(0x90)])return;const a0=new Set(Y['shownWarnings']||[]),a1=Number(Y[b6(0x10e)][b6(0x22e)]||-0x1772*-0x1+0x405+0x1b4f*-0x1),a2=a0a1();if(-0x13c9+0x2093+0x660*-0x2===Z&&a1>=-0x1f*-0x3b+-0x1*-0x1d87+-0x2484&&!a0[b6(0x1b1)]('p10')){const a3=a2?Math[b6(0x343)](0x26c5+-0x196d*0x1+-0xd58,Math[b6(0xb6)]((a2[b6(0x33b)]()-Date[b6(0x6c)]())/(0x610+-0x611*0x32+0xb136*0x3))):null;console['log'](),console[b6(0x1ca)](a0L[b6(0x226)](b6(0xf1))),console[b6(0x1ca)](a0L[b6(0x348)](b6(0x21a))+a0L[b6(0x226)](b6(0x2b7))),null!==a3&&console[b6(0x1ca)](a0L[b6(0x226)](b6(0x14d)+a3+b6(0x114))),console['log'](a0L[b6(0x226)]('\x20\x20┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄')),a0['add'](b6(0x79)),Y[b6(0x350)]=Array[b6(0x32b)](a0),a0Z(Y);}if(-0x201*-0x5+-0x217*0xd+0x2*0x8a2===Z&&a1>=0x529*-0x5+0x1ecd+-0x9b*0x8&&!a0['has']('p30')){Object['keys'](Y[b6(0x108)]||{})['length'];const a4=Object[b6(0x12a)](Y[b6(0x108)]||{})[b6(0x1b0)](a5=>Number(a5)<=-0x943+-0xe49+0xd*0x1d2)[b6(0x1b6)];console[b6(0x1ca)](),console['log'](a0L[b6(0x2b1)]('\x20\x20━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')),console[b6(0x1ca)](a0L[b6(0x31e)][b6(0x2b1)](b6(0x16e))),console[b6(0x1ca)](a0L[b6(0x226)](b6(0x14d)+a4+b6(0x177))),console[b6(0x1ca)](a0L[b6(0x12b)]('\x20\x20↓\x20\x20Practical\x20section\x20begins\x20at\x20Q31.')),console[b6(0x1ca)](a0L['gray'](b6(0x20d))),console[b6(0x1ca)](a0L['green'](b6(0x6b))),a0[b6(0x237)](b6(0x26a)),Y[b6(0x350)]=Array[b6(0x32b)](a0),a0Z(Y);}}(F,z[b5(0x10d)]),F&&L&&function(Y,Z){const b7=b5;if(b7(0x1eb)===Y[b7(0x10e)][b7(0x90)])return;if(Number(Y[b7(0x10e)][b7(0x22e)]||0x109e+0x2628+-0x369e)<-0x223+0xb22+-0x8d7)return;const a0=new Set(Y['shownWarnings']||[]);Z>=-0x2616+0x3f5+0x2240&&Z<=-0x261a+0x323+0x231d&&!a0['has']('s_ai4ctf')?(console['log'](),console[b7(0x1ca)](a0L['green'](b7(0x97))),console['log'](a0L[b7(0x31e)][b7(0x2b1)]('\x20\x20\x20🚀\x20\x20Section\x202:\x20AI4CTF\x20—\x20AI\x20is\x20your\x20teammate')),console[b7(0x1ca)](a0L[b7(0x2b1)](b7(0x97))),console[b7(0x1ca)](),console[b7(0x1ca)](a0L['white'](b7(0x234))),console[b7(0x1ca)](a0L[b7(0x12b)](b7(0x2db))),console[b7(0x1ca)](),console[b7(0x1ca)](a0L['bold']['white']('\x20\x20\x20Q31–38\x20(8\x20questions\x20·\x206\x20pts\x20each)')),console[b7(0x1ca)](a0L[b7(0x226)](b7(0x2d9))+a0L[b7(0x31e)](b7(0x2b3))+a0L[b7(0x226)](b7(0x188))),console[b7(0x1ca)](),console[b7(0x1ca)](a0L['bold'][b7(0x12b)]('\x20\x20\x20How\x20to\x20work')),console[b7(0x1ca)](a0L[b7(0x226)]('\x20\x20\x20\x20\x20Enter\x20chat:\x20\x20\x20\x20\x20')+a0L['bold'][b7(0x2b1)](b7(0x2a7))+a0L[b7(0x226)](b7(0x89))+a0L['magenta'](b7(0x229))+a0L['gray'](b7(0x21c))),console[b7(0x1ca)](a0L['gray']('\x20\x20\x20\x20\x20Inside\x20chat:\x20\x20\x20\x20')+a0L[b7(0x348)]('hint\x20a\x20/\x20b\x20/\x20c')+a0L[b7(0x226)](b7(0xc6))+a0L[b7(0x348)]('submit\x20ICOA{...}')+a0L[b7(0x226)]('\x20·\x20')+a0L[b7(0x348)](b7(0x8b))),console[b7(0x1ca)](a0L[b7(0x226)]('\x20\x20\x20\x20\x20Free\x20chat:\x20\x20\x20\x20\x20\x20any\x20message\x20→\x20AI\x20teammate')),console[b7(0x1ca)](a0L[b7(0x226)](b7(0x1bd))+a0L[b7(0x348)](b7(0x2fc))+a0L[b7(0x226)]('\x20→\x20back\x20to\x20exam,\x20navigate\x20with\x20')+a0L[b7(0x348)](b7(0x337))),console[b7(0x1ca)](),console['log'](a0L[b7(0x31e)][b7(0x12b)](b7(0x85))),console[b7(0x1ca)](a0L[b7(0x226)](b7(0xa6))+a0L[b7(0x12b)](b7(0xeb))+a0L[b7(0x226)](b7(0xad))),console['log'](a0L[b7(0x226)](b7(0x261))+a0L[b7(0x12b)]('pre-written\x20per\x20question')),console['log'](),console[b7(0x1ca)](a0L['yellow'](b7(0x271))),console[b7(0x1ca)](a0L['green'](b7(0x97))),console[b7(0x1ca)](),a0[b7(0x237)](b7(0x2c5)),Y[b7(0x350)]=Array['from'](a0),a0Z(Y)):Z>=0x9e0+0x16eb+-0x829*0x4&&!a0[b7(0x1b1)](b7(0x339))&&(console[b7(0x1ca)](),console[b7(0x1ca)](a0L[b7(0x298)](b7(0x97))),console[b7(0x1ca)](a0L[b7(0x31e)]['red'](b7(0x2ba))),console[b7(0x1ca)](a0L[b7(0x298)](b7(0x97))),console[b7(0x1ca)](),console[b7(0x1ca)](a0L[b7(0x12b)]('\x20\x20\x20The\x20final\x20section\x20flips\x20the\x20script:\x20instead\x20of')),console['log'](a0L[b7(0x12b)](b7(0x1e6))+a0L[b7(0x31e)](b7(0xb5))+a0L[b7(0x12b)](b7(0x2ef))),console['log'](),console[b7(0x1ca)](a0L[b7(0x31e)][b7(0x12b)](b7(0x34d))),console['log'](a0L[b7(0x226)]('\x20\x20\x20\x20\x20Prompt\x20injection\x20·\x20adversarial\x20analysis\x20·\x20AI\x20auditing')),console[b7(0x1ca)](),console[b7(0x1ca)](a0L[b7(0x31e)]['white'](b7(0x191))),console['log'](a0L['gray'](b7(0xca))+a0L['bold']['red'](b7(0x321))+a0L[b7(0x226)](b7(0x89))+a0L[b7(0x298)]('ctf4ai>')+a0L[b7(0x226)]('\x20prompt,\x20same\x20shape\x20as\x20demo')),console['log'](a0L[b7(0x226)]('\x20\x20\x20\x20\x20Inside\x20chat:\x20\x20\x20\x20')+a0L[b7(0x348)]('hint\x20a\x20/\x20b\x20/\x20c')+a0L[b7(0x226)](b7(0xc6))+a0L[b7(0x348)](b7(0x13f))+a0L[b7(0x226)](b7(0xc6))+a0L[b7(0x348)]('!python3\x20...')),console['log'](a0L['gray'](b7(0x1c9))),console[b7(0x1ca)](),console[b7(0x1ca)](a0L['bold'][b7(0x12b)](b7(0x218))),console[b7(0x1ca)](a0L['gray']('\x20\x20\x20\x20\x20·\x20AI\x20is\x20your\x20')+a0L[b7(0x298)]('target')+a0L[b7(0x226)](b7(0x2c1))),console[b7(0x1ca)](a0L[b7(0x226)](b7(0x230))+a0L['white'](b7(0x309))+a0L[b7(0x226)](b7(0x19b))),console['log'](),console[b7(0x1ca)](a0L['yellow']('\x20\x20\x20These\x20are\x20the\x20hardest\x20questions.\x20Worth\x2021%\x20of\x20total\x20score.')),console[b7(0x1ca)](a0L[b7(0x1ab)](b7(0x2a5))),console[b7(0x1ca)](a0L[b7(0x298)](b7(0x97))),console[b7(0x1ca)](),a0[b7(0x237)]('s_ctf4ai'),Y[b7(0x350)]=Array[b7(0x32b)](a0),a0Z(Y));}(F,z[b5(0x10d)]),F&&function(Y){const b8=b5,Z=a0a1();if(!Z)return;const a0=Z[b8(0x33b)]()-Date[b8(0x6c)]();if(a0<=0x1*-0x13cd+-0x42*-0x8f+-0x101*0x11)return;const a1=a0/(0x91*-0x159+0x18484+0x841*0x5),a2=new Set(Y[b8(0x350)]||[]);let a3=null;if(a1<=-0x23e+-0x2430+0x266f&&!a2[b8(0x1b1)]('t1')?a3={'key':'t1','text':[a0L[b8(0x298)][b8(0x31e)](b8(0x1dc)),a0L[b8(0x298)](b8(0x189))+a0L[b8(0x31e)](b8(0x31a))]}:a1<=-0xabf+0x5*0xe5+0x64b&&!a2['has']('t5')?a3={'key':'t5','text':[a0L[b8(0x298)]['bold'](b8(0x357)),a0L[b8(0x1ab)](b8(0x123))+a0L[b8(0x31e)](b8(0x31a))]}:a1<=0x179+0x2f*-0x39+0x908&&!a2['has'](b8(0x16f))&&(a3={'key':b8(0x16f),'text':[a0L[b8(0x1ab)]['bold'](b8(0x140)),a0L[b8(0x226)](b8(0x224))+a0L[b8(0x12b)](b8(0x214))]}),a3){console[b8(0x1ca)](),console[b8(0x1ca)](a0L[b8(0x298)](b8(0x6b)));for(const a4 of a3[b8(0x2f4)])console[b8(0x1ca)](a4);console[b8(0x1ca)](a0L[b8(0x298)](b8(0x6b))),a2[b8(0x237)](a3['key']),Y[b8(0x350)]=Array[b8(0x32b)](a2),a0Z(Y);}}(F),function(Y,Z,a0){const b9=b5,a1=Math[b9(0xb6)](Y/Z*(-0x508+-0xa*-0x23f+0x2*-0x8a8)),a2=-0xb*0x67+-0x19a3*-0x1+-0x1*0x1518-a1,a3=a0L[b9(0x348)]('━'[b9(0x192)](a1))+a0L[b9(0x226)]('─'[b9(0x192)](a2)),a4=Math[b9(0xb6)](Y/Z*(0x1399*0x1+0x18d5+-0x2c0a));console[b9(0x1ca)](),console[b9(0x1ca)]('\x20\x20'+a3+'\x20\x20'+a0L[b9(0x12b)][b9(0x31e)](''+Y)+a0L['gray']('/'+Z)+'\x20\x20'+a0L[b9(0x226)]('('+a0+b9(0xc3))+'\x20\x20'+a0L[b9(0x226)](a4+'%'));const a5=a0a1();if(a5){const a6=Math[b9(0x343)](-0xfdd+0x21b1+-0xa3*0x1c,Math[b9(0xb6)]((a5['getTime']()-Date[b9(0x6c)]())/(0x1f9f+0x229b*0x1+-0x3e52))),a7=Math[b9(0x15e)](a6/(-0x1284+-0x4*0x200+0x1ac0))+':'+String(a6%(0x2228+0xe55+-0x463*0xb))[b9(0x1e1)](-0x14b1+0x1c5b+-0x7a8,'0'),a8=a6<=-0x1f17+0x1201+0x5*0x2aa?a0L[b9(0x298)]['bold']:a6<=0x249f+-0xea7+-0x1e4*0xb?a0L[b9(0x298)]:a6<=0x26ad*-0x1+-0x35*0x1d+0x1cf*0x1a?a0L[b9(0x1ab)]:a0L['gray'];console[b9(0x1ca)]('\x20\x20'+a0L['gray'](b9(0x2c4))+'\x20'+a8(a7)+'\x20'+a0L[b9(0x226)]('(server-authoritative)'));}}(z['number'],G,H),F&&D(F,z['number'])&&console['log'](a0L[b5(0x1ab)]('\x20\x20★\x20Marked\x20for\x20review'));const Q=function(Y,Z){const ba=b5,a0={};a0[ba(0x2fa)]=0.2,a0[ba(0x107)]='🏛️',a0['key']=ba(0x2b5);const a1={};a1[ba(0x2fa)]=0.33,a1['emoji']='🐨',a1[ba(0x18b)]='egg5';const a2={};a2[ba(0x2fa)]=0.5,a2[ba(0x107)]='🌉',a2[ba(0x18b)]=ba(0x164);const a3={};a3['pct']=0.6,a3[ba(0x107)]='🦘',a3[ba(0x18b)]=ba(0x1ef);const a4={};a4[ba(0x2fa)]=0.8,a4[ba(0x107)]=ba(0x95),a4['key']='egg11';const a5={};a5[ba(0x2fa)]=0.87,a5[ba(0x107)]='🦈',a5[ba(0x18b)]=ba(0x2c6);const a6={};a6[ba(0x2fa)]=0x1,a6[ba(0x107)]='🎉',a6[ba(0x18b)]=ba(0xd2);const a7=[a0,a1,a2,a3,a4,a5,a6],a8=new Set();for(const a9 of a7){const aa=Math[ba(0xb6)](a9[ba(0x2fa)]*Z);if(!(aa<0x130a*-0x1+0x20e*0xb+0x1*-0x38f||a8[ba(0x1b1)](aa))&&(a8[ba(0x237)](aa),Y===aa))return{'emoji':a9[ba(0x107)],'text':a0ai(a9['key'])};}}(z[b5(0x10d)],G);if(Q&&console['log'](a0L[b5(0x1ab)]('\x20\x20'+Q[b5(0x107)]+'\x20\x20'+Q[b5(0x2f4)])),console['log'](),z[b5(0x154)]&&console[b5(0x1ca)](a0L[b5(0x348)]('\x20\x20['+z[b5(0x154)]+']')),z[b5(0x194)]&&z['points']>-0x1ed9+0x205e+-0x3*0x81&&console['log'](a0L[b5(0x348)](b5(0x1bb)+z[b5(0x194)]+'\x20points]')),L){let Y=z['description']||z[b5(0x2f4)];const Z=a0a2(z[b5(0x10d)],z[b5(0xaf)]);if(z['attachedData']){const a1=/\([^()]*attachedData[^()]*\)/;a1[b5(0xf5)](Y)?Y=Y['replace'](a1,z[b5(0xaf)]):Y[b5(0x80)](z['attachedData'])||(Y=Y+'\x0a\x0aFull\x20attached\x20data:\x0a'+z[b5(0xaf)]);}console[b5(0x1ca)](a0L[b5(0x31e)][b5(0x12b)](b5(0x8e)+z[b5(0x10d)]+'.\x20')+a0L['white'](Y[b5(0xf7)]('\x0a')[0x98a+0x6*0x15a+0x3*-0x5e2]));const a0=Y[b5(0xf7)]('\x0a')['slice'](-0x20c5+-0x1a90+0x3b56);for(const a2 of a0)console[b5(0x1ca)](a0L[b5(0x12b)]('\x20\x20'+a2));if(console[b5(0x1ca)](),Z&&'ai4ctf'===z['type']){const a3=Z[b5(0x2a4)](process.env.HOME||'','~');console[b5(0x1ca)](a0L['cyan']('\x20\x20'+a0ai(b5(0x170))+'\x20')+a0L[b5(0x226)]('('+a0ai(b5(0x23b))+'\x20'+a3+'):')),console[b5(0x1ca)](a0L['white'](b5(0x1ec))+a0L[b5(0x1ab)]('!<cmd>\x20'+a3)[b5(0x29e)](-0x1*-0x16af+-0x10d+0x1a*-0xd3)+a0L[b5(0x226)]('\x20'+a0ai(b5(0x208)))),console[b5(0x1ca)](a0L[b5(0x12b)](b5(0xd6))+a0L[b5(0x1ab)](b5(0x322))[b5(0x29e)](0xe*-0x1eb+0x259*0x9+0x5d9*0x1)+a0L[b5(0x226)]('\x20'+a0ai('examWaysPythonRepl'))),console[b5(0x1ca)](a0L[b5(0x12b)](b5(0xa0))+a0L[b5(0x1ab)](b5(0x1d7))+a0L[b5(0x226)](b5(0x110))+a0L[b5(0x1ab)]('!python3\x20solve.py')),console['log'](a0L[b5(0x12b)]('\x20\x20\x20\x20④\x20')+a0L[b5(0x1ab)]('ref\x20python')['padEnd'](-0x251c+0x1ee9*-0x1+0x1*0x4425)+a0L[b5(0x226)]('\x20'+a0ai('examWaysRefPython'))),console['log'](a0L[b5(0x12b)]('\x20\x20\x20\x20⑤\x20')+a0L[b5(0x1ab)](b5(0x2a7))[b5(0x29e)](-0x50c+-0x1327+-0x1853*-0x1)+a0L[b5(0x226)]('\x20'+a0ai(b5(0x344)))),console[b5(0x1ca)](),console[b5(0x1ca)](a0L[b5(0x226)]('\x20\x20'+a0ai(b5(0x133))+'\x20')+a0L[b5(0x31e)][b5(0x2b1)](b5(0x276))),console[b5(0x1ca)]();}B&&(console[b5(0x1ca)](a0L[b5(0x2b1)](b5(0xe1)+B)),console['log']());}else{console[b5(0x1ca)](a0L[b5(0x31e)][b5(0x12b)](b5(0x8e)+z[b5(0x10d)]+'.\x20')+a0L['white'](z['text'])),console['log']();for(const a4 of['A','B','C','D']){const a5=B===a4;K[b5(0x80)](a4)?console['log'](a0L[b5(0x226)][b5(0xe8)](b5(0x31c)+a4+'.\x20'+z['options'][a4])+a0L['red']('\x20('+a0ai(b5(0x88))+')')):a5?console[b5(0x1ca)](a0L['green'][b5(0x31e)]('\x20\x20▸\x20'+a4+'.\x20'+z[b5(0x7b)][a4])):console[b5(0x1ca)](a0L[b5(0x226)](b5(0x31c)+a4+'.')+'\x20'+a0L[b5(0x12b)](z[b5(0x7b)][a4]));}console[b5(0x1ca)]();}const V='demo-free'===F?.[b5(0x10e)][b5(0x90)],W=J[b5(0x143)][-0x2d*-0xaf+-0x2214+-0x1*-0x353]||-0x3c*-0x6d+0x17f6+-0x3182;V&&0x1*-0x907+0x5*0x59f+-0x1312===z[b5(0x10d)]&&-0x1ba2+0x25b8+-0x50b*0x2===W&&(console['log'](a0L[b5(0x1ab)][b5(0x31e)]('\x20\x20'+a0ai(b5(0x256)))),console[b5(0x1ca)]());const X=J[b5(0x343)]-J['used'];if(console[b5(0x1ca)](a0L[b5(0x226)](b5(0x336))),L){const a6=F&&b5(0x1eb)!==F[b5(0x10e)][b5(0x90)]&&z[b5(0x10d)]>=0x169+-0x26e+0x12c&&z[b5(0x10d)]<=0x1b8+-0xe8+-0xa8,a7=F&&b5(0x1eb)!==F[b5(0x10e)][b5(0x90)]&&z['number']>=0x558+-0x1*-0x2651+-0x2b8a*0x1&&z[b5(0x10d)]<=0xe69+0x182*-0x6+-0x537;b5(0x17b)===z[b5(0x318)]?console[b5(0x1ca)](a0L[b5(0x31e)][b5(0x348)](b5(0x180))+a0L['gray']('\x20\x20\x20\x20\x20\x20\x20enter\x20VLA\x20attack\x20mode\x20for\x20this\x20question\x20(recommended)')):a7?console[b5(0x1ca)](a0L[b5(0x31e)]['green'](b5(0x2c8))+a0L[b5(0x226)]('\x20\x20\x20\x20\x20\x20\x20\x20enter\x20AI4CTF\x20chat\x20for\x20this\x20question\x20(recommended)')):a6&&console[b5(0x1ca)](a0L[b5(0x31e)][b5(0x298)](b5(0x2b2))+a0L[b5(0x226)](b5(0x1fd))),console[b5(0x1ca)](a0L[b5(0x1ab)](b5(0x1aa))+a0L['gray'](b5(0x6d))),console[b5(0x1ca)](a0L[b5(0x1ab)](b5(0x2a2))+a0L[b5(0x226)](b5(0x163)));}else{const a8=J[b5(0x343)]>=-0x1*-0xd93+0xd*-0x2f6+-0x179*-0x11,a9=X>-0x25d8+0x1098+0x1540?a0L['gray'](a0ai(b5(0x2a6))+'\x20')+a0L['yellow']('('+X+'/'+J[b5(0x343)]+')'):a8?a0L['gray'](a0ai(b5(0x333))+'\x20('+J[b5(0x265)]+'/'+J[b5(0x343)]+')'):a0L[b5(0x226)](''+a0ai(b5(0x138)));console['log'](a0L['yellow'](b5(0x2f9))+a0L[b5(0x226)](b5(0x20c)+a0ai(b5(0x148)))),console[b5(0x1ca)](a0L['yellow'](b5(0x2de))+b5(0x8f)+a9);}console['log'](a0L[b5(0x1ab)]('\x20\x20\x20\x20next')+a0L[b5(0x226)](b5(0x2f2))+a0L[b5(0x1ab)]('prev')+a0L[b5(0x226)](b5(0x31c)+a0ai(b5(0x145)))),console[b5(0x1ca)](a0L[b5(0x1ab)](b5(0x1a8)+G)+a0L[b5(0x226)]('\x20\x20\x20'+a0ai('htpJump'))),console[b5(0x1ca)](a0L[b5(0x1ab)](b5(0x2a0))+a0L['gray'](b5(0x8f)+a0ai('htpMark'))),console[b5(0x1ca)](a0L[b5(0x1ab)]('\x20\x20\x20\x20exam\x20review')+a0L[b5(0x226)](b5(0x185)+a0ai(b5(0x2ff)))),console[b5(0x1ca)](a0L['bold']['yellow'](b5(0x29d))+a0L[b5(0x226)](b5(0x185)+a0ai(b5(0xbd)))),console['log'](a0L[b5(0x1ab)](b5(0x1e7))+a0L[b5(0x226)](b5(0x8f)+a0ai(b5(0x2b9)))),console[b5(0x1ca)](a0L[b5(0x1ab)](b5(0x1d6))+a0L['gray']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a0ai(b5(0x2f1)))),console['log'](a0L[b5(0x226)]('\x20\x20─────────────────────────────────────────'));}export function registerExamCommand(z){const bb=a0B,B=z[bb(0x160)](bb(0x2e1))[bb(0x1c3)](bb(0xa4));B[bb(0x160)](bb(0x99))[bb(0x1c3)](bb(0x35a))[bb(0xb8)](()=>{const bc=bb;a0a8(bc(0x18c)),console[bc(0x1ca)](),a0ae(bc(0x86)),console[bc(0x1ca)]();const F=[['AU',bc(0x212)],['BD',bc(0x112)],['BI','Burundi'],['BR',bc(0x144)],['CN','China'],['DE',bc(0x186)],['EG',bc(0xda)],['FR',bc(0x1a3)],['GH',bc(0x1f1)],['ID',bc(0x2d0)],['IN','India'],['JP',bc(0x27f)],['KR',bc(0x142)],['LA',bc(0x1fa)],['LK','Sri\x20Lanka'],['MM','Myanmar'],['MO',bc(0xf0)],['MY',bc(0x362)],['NZ','New\x20Zealand'],['PE',bc(0xb4)],['PH',bc(0xde)],['RU',bc(0x1e5)],['SA','Saudi\x20Arabia'],['SG',bc(0x347)],['TH',bc(0x6e)],['TR',bc(0x2ab)],['UK',bc(0x11c)],['US',bc(0xe5)],['UZ',bc(0xe0)],['VN',bc(0x92)],['ZA',bc(0x200)]];for(let G=0x1*-0x1397+-0xa9d+0x2*0xf1a;G<F[bc(0x1b6)];G+=-0x100*0x3+0x1*0x872+0x6b*-0xd){const H=F['slice'](G,G+(-0x4*-0x421+-0x697+0x3*-0x34e))[bc(0x1fc)](([J,K])=>'\x20\x20'+a0L[bc(0x348)](J)+'\x20\x20'+a0L['gray'](K[bc(0x29e)](0x223f*-0x1+-0x235*-0x1+0x201a)))['join']('');console[bc(0x1ca)](H);}console[bc(0x1ca)](),console['log'](a0L[bc(0x226)](bc(0x2b0))),console['log'](a0L['gray'](bc(0xaa))),console[bc(0x1ca)](),console[bc(0x1ca)](a0L[bc(0x12b)]('\x20\x20Check\x20exams\x20for\x20your\x20country:')),console['log'](a0L[bc(0x348)](bc(0x35e))+a0L['gray']('\x20\x20\x20\x20\x20exam\x20list\x20PE')+a0L[bc(0x226)](bc(0x174))),console[bc(0x1ca)]();}),B[bb(0x160)](bb(0x334))[bb(0x1c3)](bb(0x21b))['action'](async F=>{const bd=bb;a0a8(bd(0x2cb)+(F||''));const G=M();if(!G)return;const H=a0ag(bd(0x2b8));H[bd(0x66)]();try{let J=await G['getExams']();if(H[bd(0x26e)](),F){const Q=F[bd(0x33c)]();J=J[bd(0x1b0)](V=>V['country'][bd(0x33c)]()===Q||bd(0x331)===V['country']);}if(!J||-0x1af7+0x6eb+0x1*0x140c===J['length']){console[bd(0x1ca)](),a0ac(F?bd(0x19c)+F[bd(0x33c)]()+bd(0x2e3):bd(0x305)),console[bd(0x1ca)](),console[bd(0x1ca)](a0L[bd(0x12b)](bd(0x91))),console[bd(0x1ca)](a0L[bd(0x226)](bd(0x330))),console[bd(0x1ca)](),console['log'](a0L[bd(0x226)](bd(0x183))+a0L[bd(0x31e)][bd(0x348)](bd(0x15c))),console['log']();const V={};V['PE']='es',V['CN']='zh',V['JP']='ja',V['KR']='ko',V['BR']='pt',V['SA']='ar',V['FR']='fr',V['DE']='de',V['IN']='hi',V['ID']='id',V['TH']='th',V['VN']='vi',V['TR']='tr',V['RU']='ru',V['UA']='uk',V['HT']='ht',V['KE']='sw',V['TZ']='sw';const W=V,X=(F||'')['toUpperCase']();return void(W[X]&&(console[bd(0x1ca)](a0L[bd(0x226)](bd(0x22f)+W[X])),console[bd(0x1ca)]()));}const K=J['map'](Y=>{const be=bd,Z=be(0x25b)===Y[be(0x33e)]?a0L[be(0x2b1)]:'in_progress'===Y[be(0x33e)]?a0L[be(0x1ab)]:a0L[be(0x12b)];return[a0L['white'](Y['id']),Y[be(0x2a3)],a0L[be(0x348)](Y[be(0x12e)]),String(Y[be(0x22e)]),Y[be(0x292)]+be(0x285),Z(Y['status'])];}),L=[...new Set(J[bd(0x1fc)](Y=>Y['country']))];a0ae(F?bd(0xb7)+F[bd(0x33c)]():bd(0x21f)+L[bd(0x1b6)]+'\x20regions)'),a0ad(['ID',bd(0x302),bd(0x165),'Questions','Duration','Status'],K),console[bd(0x1ca)](),console[bd(0x1ca)](a0L[bd(0x226)](bd(0xe3))),L[bd(0x1b6)]>0x3f5*-0x3+0x1c75+-0x1095&&console[bd(0x1ca)](a0L[bd(0x226)](bd(0xd8)));}catch(Y){H[bd(0x207)](bd(0x1fe)),a0aa(Y[bd(0x32f)]);}}),B[bb(0x160)](bb(0x312))[bb(0x1c3)](bb(0xd1))[bb(0xb8)](async F=>{const bf=bb;a0a8(bf(0x30e)+F);const G=a0Y();if(G)return a0ab('Exam\x20\x22'+G[bf(0x10e)][bf(0x301)]+'\x22\x20is\x20already\x20in\x20progress.'),void a0ac(bf(0x197));const H=M();if(!H)return;const J=await a0Q({'message':a0L['white'](bf(0x28c)),'default':!(0x151+0x3c1*0x1+-0x512),'theme':{'prefix':'','style':{'message':K=>K,'defaultAnswer':K=>a0L[bf(0x2b1)](K)}}});if(J){console[bf(0x1ca)]();try{N(0x93c*-0x1+-0x3*-0x52a+-0x642,bf(0x27c));const {session:K,questions:L}=await H[bf(0x130)](F);N(-0xe27*-0x1+-0x45*-0x77+-0xd*0x38c,bf(0x118)),await q(0xcee+0x18c6+-0x22c*0x11),N(0xd06+0x1*-0x12cb+-0x601*-0x1,bf(0x25f)),await q(-0x4*-0x248+0x19f6+-0x224e),N(-0x23e6+0x1f26+0x2*0x28d,'Starting\x20timer...'),await q(0x1acd+-0x1dc2+0x38b*0x1),a0Z({'session':K,'questions':L,'answers':{}}),N(-0x439+-0x1*-0xf92+-0xaf5,'Ready!'),console[bf(0x1ca)](),console[bf(0x1ca)](),a0ae(K[bf(0x301)]),a0af(bf(0x1f5),String(K[bf(0x22e)])),a0af(bf(0x216),K['durationMinutes']+bf(0x35d)),a0af(bf(0x165),K[bf(0x12e)]),O(),L['length']>-0x1b42+-0xbfe+-0x9d0*-0x4&&U(L[-0x498+-0x32f*-0x7+-0x11b1]);}catch(Q){console[bf(0x1ca)](),a0aa(Q['message']);}}}),B['command'](bb(0x315))[bb(0x1c3)](bb(0xf2))[bb(0xb8)](async F=>{const bg=bb;a0a8(bg(0x149)+(F||'all'));const {refetchQuestionDataIfStale:G}=await import(bg(0x151));await G();const H=a0Y();if(H){if(O(),F){const J=parseInt(F,0x35*0x9d+-0x1a57*0x1+-0x620),K=H['questions'][bg(0x1ff)](L=>L['number']===J);if(!K)return void a0aa('Question\x20'+F+bg(0x349)+H['questions'][bg(0x1b6)]+').');H[bg(0x310)]=J,a0Z(H),U(K,H[bg(0x108)][J]);}else{a0ae(''+H['session'][bg(0x301)]);const L=Object['keys'](H[bg(0x108)])['length'];a0af(bg(0x100),L+'/'+H[bg(0x10e)][bg(0x22e)]+bg(0x103)),console[bg(0x1ca)]();for(const Q of H[bg(0x258)]){const V=H['answers'][Q[bg(0x10d)]],W=V?a0L[bg(0x2b1)]('['+V+']'):a0L[bg(0x226)]('[\x20]'),X=Q['category']?a0L[bg(0x226)]('\x20['+Q[bg(0x154)]+']'):'';console[bg(0x1ca)]('\x20\x20'+W+'\x20'+a0L[bg(0x12b)]('Q'+Q[bg(0x10d)])+X+'\x20'+a0L['gray'](Q[bg(0x2f4)][bg(0x346)](-0x2462+0x73e+0x749*0x4,0x1787+0xa43*-0x3+0x3bf*0x2))+(Q[bg(0x2f4)][bg(0x1b6)]>-0x2437+-0x238*-0x2+0x2003?bg(0x129):''));}console['log']();}}else a0aa(bg(0x1f7));}),B[bb(0x160)](bb(0x332))[bb(0x1c3)]('Flag\x20a\x20question\x20to\x20review\x20later\x20(toggles)')['action'](F=>{const bh=bb;a0a8(bh(0x155)+(F||''));const G=a0Y();if(!G)return void a0aa(bh(0x10a));const H=G[bh(0x258)]['length'],J=F?parseInt(F,-0x1242+0x1c9*0xb+-0x157):G[bh(0x310)]||-0x200a*0x1+0x1*0x210b+-0x100;if(Number[bh(0x6a)](J)||J<0xa34+-0x2437+0x1a04||J>H)return void a0aa('Invalid\x20question\x20number.\x20Use\x201..'+H+'.');const K=j(G,J);console[bh(0x1ca)](),K?console['log'](a0L['yellow'](bh(0x195)+J+bh(0xd7))):console['log'](a0L[bh(0x226)](bh(0x122)+J+bh(0x290)));const L=Array[bh(0x67)](G[bh(0x17d)])?G[bh(0x17d)]:[];L[bh(0x1b6)]>-0x1f*-0xd+0x20c6*-0x1+0x1f33&&console[bh(0x1ca)](a0L[bh(0x226)](bh(0x22a)+L[bh(0x1fc)](Q=>'Q'+Q)[bh(0xdf)](',\x20'))),console[bh(0x1ca)](a0L['gray'](bh(0xc7))+a0L['white'](bh(0x214))),console[bh(0x1ca)]();}),B[bb(0x160)](bb(0x1a6))[bb(0x1c3)](bb(0x1d9))[bb(0xb8)](F=>{const bi=bb;a0a8('exam\x20unmark\x20'+(F||''));const G=a0Y();if(!G)return void a0aa('No\x20exam\x20in\x20progress.');const H=G[bi(0x258)][bi(0x1b6)],J=F?parseInt(F,0x32*0x44+-0x421*-0x7+-0x2a25):G[bi(0x310)]||0xd4b+0x610*-0x1+-0x73a;Number[bi(0x6a)](J)||J<-0xb7b+-0x6*-0xed+0x6*0xfd||J>H?a0aa(bi(0xdd)+H+'.'):D(G,J)?(j(G,J),console[bi(0x1ca)](),console[bi(0x1ca)](a0L['gray'](bi(0x122)+J+bi(0x290))),console[bi(0x1ca)]()):console[bi(0x1ca)](a0L[bi(0x226)](bi(0x8e)+J+bi(0x2f5)));}),B[bb(0x160)]('next')['description'](bb(0x225))[bb(0xb8)](()=>{const bj=bb;a0a8('exam\x20next');const F=a0Y();if(!F)return void a0aa(bj(0x10a));F[bj(0x258)][bj(0x1cf)](K=>!F[bj(0x108)][K[bj(0x10d)]]);const G=F[bj(0x310)]||-0x867+0x1589+-0xd21,H=Math[bj(0x2f7)](G+(0x1f7f+0x39*0x1c+-0x1b7*0x16),F[bj(0x258)]['length']);F['_lastQ']=H,a0Z(F);const J=F[bj(0x258)][H-(-0x25a0+0x1f5c+-0x645*-0x1)];U(J,F[bj(0x108)][J[bj(0x10d)]]);}),B[bb(0x160)](bb(0x10b))[bb(0x1c3)](bb(0x19d))[bb(0xb8)](()=>{const bk=bb;a0a8('exam\x20prev');const F=a0Y();if(!F)return void a0aa(bk(0x10a));const G=F[bk(0x310)]||0x1*0x1acf+0x5b*0x2f+-0x2b83,H=Math[bk(0x343)](G-(-0x35f*-0x3+0x15ef+-0xd*0x277),0xf*0x1eb+0x119*-0x16+0xc5*-0x6);F['_lastQ']=H,a0Z(F);const J=F[bk(0x258)][H-(-0x3de*-0x6+-0x7*0x13+-0xb57*0x2)];U(J,F['answers'][J['number']]);}),B['command'](bb(0x159))['description'](bb(0x21d))[bb(0xb8)](async()=>{const bl=bb;a0a8(bl(0x358));const F=a0Y();if(!F)return void a0aa(bl(0x10a));const G=R(F),H=F[bl(0x310)]||-0x9e3*-0x3+0x5fa*0x5+0x3b8a*-0x1,J=G[bl(0x143)][H]||0x1f7a+0x17d4+0x1ba7*-0x2,K=G[bl(0x30c)][H]||[],L=F['questions'][bl(0x1ff)](W=>W[bl(0x10d)]===H);if(!L)return;if(J>=0x21b*-0xc+-0x2*-0xb92+0xd*0x2a)return console[bl(0x1ca)](),console[bl(0x1ca)](a0L[bl(0x1ab)]('\x20\x20🙈\x20Max\x202\x20helps\x20per\x20question\x20—\x20you\x20already\x20have\x20a\x2050/50!')),console[bl(0x1ca)](a0L[bl(0x226)](bl(0xdb))),console[bl(0x1ca)](),void U(L,F['answers'][L[bl(0x10d)]]);const Q=['A','B','C','D']['filter'](W=>!K[bl(0x80)](W));if(Q[bl(0x1b6)]<=-0xde*-0x6+0x628+-0xb5a)return console['log'](),console[bl(0x1ca)](a0L[bl(0x1ab)]('\x20\x20😄\x20Only\x202\x20options\x20left\x20—\x20you\x20got\x20this!')),console[bl(0x1ca)](),void U(L,F[bl(0x108)][L[bl(0x10d)]]);if(G['used']>=G[bl(0x343)]){const W=G[bl(0x343)]>=0x136+-0x1707*0x1+-0x15ef*-0x1,X=0xc75+-0x192e+0xcd7-G[bl(0x343)];return void(W?(console[bl(0x1ca)](),console['log'](a0L[bl(0x226)]('\x20\x20All\x20help\x20used\x20('+G['used']+'/'+G[bl(0x343)]+bl(0x24d))),console[bl(0x1ca)]()):(console['log'](),console[bl(0x1ca)](a0L[bl(0x1ab)](bl(0x172)+G[bl(0x265)]+'/'+G[bl(0x343)])),console['log'](a0L[bl(0x12b)](bl(0xd0))+a0L[bl(0x31e)][bl(0x1ab)]('more\x20help')+a0L[bl(0x226)](bl(0x2e0)+X+'\x20bonus\x20uses)')),console[bl(0x1ca)]()));}const V=Y=>{const bm=bl;K[bm(0x10f)](Y),G[bm(0x30c)][H]||(G[bm(0x30c)][H]=[]),G[bm(0x30c)][H]=K,G[bm(0x143)][H]=J+(0x1284+0x77*-0x29+-0x7*-0x14),G[bm(0x265)]++,F[bm(0x260)]=G[bm(0x265)],F[bm(0x24e)]=G[bm(0x343)],F[bm(0x31f)]=G[bm(0x143)],F['_eliminated']=G[bm(0x30c)],F[bm(0x13a)]||(F[bm(0x13a)]=[]),F[bm(0x13a)][bm(0x10f)]({'ts':new Date()[bm(0x246)](),'q':H,'type':'help_used','result':'eliminated\x20'+Y}),a0Z(F),console[bm(0x1ca)](),console['log'](a0L[bm(0x1ab)](bm(0x131)+Y+bm(0x136))+a0L[bm(0x226)]('\x20\x20(help\x20'+G[bm(0x265)]+'/'+G[bm(0x343)]+')')),U(L,F['answers'][L[bm(0x10d)]]);};if(bl(0x1eb)===F[bl(0x10e)][bl(0x90)]&&L[bl(0x96)])(Y=>{const bn=bl,Z=Q['filter'](a0=>a0!==Y&&!K[bn(0x80)](a0));-0x265a+-0x679*0x2+0x19a6*0x2!==Z[bn(0x1b6)]&&V(Z[Math[bn(0x15e)](Math[bn(0x7c)]()*Z[bn(0x1b6)])]);})(L[bl(0x96)]);else{const Y=a0W()['ctfdUrl']||'https://practice.icoa2026.au',Z=F[bl(0x10e)]?.[bl(0xcb)]||'';try{const a0={};a0[bl(0x184)]='application/json',a0[bl(0x64)]=bl(0x25e);const a1={};a1['token']=Z,a1[bl(0x1b7)]=H,a1[bl(0x30c)]=K;const a2=await fetch(Y+bl(0x158)+F['session'][bl(0x90)]+'/help',{'method':bl(0x1b3),'headers':a0,'body':JSON[bl(0x18a)](a1),'signal':AbortSignal[bl(0x21e)](-0x1*0x71b+-0x138+0x1bdb)}),a3=await a2['json'](),a4=a3?.[bl(0x220)]?.[bl(0x222)];a4&&['A','B','C','D'][bl(0x80)](a4)?V(a4):(console[bl(0x1ca)](),console[bl(0x1ca)](a0L['gray']('\x20\x20Server\x20did\x20not\x20return\x20a\x20valid\x20option.\x20Try\x20again.')));}catch{console[bl(0x1ca)](),console[bl(0x1ca)](a0L[bl(0x226)](bl(0x308)));}}}),B[bb(0x160)]('more-help')[bb(0x1c3)](bb(0xbc))[bb(0xb8)](()=>{const bo=bb;a0a8(bo(0x111));const F=a0Y();if(!F)return void a0aa(bo(0x10a));const G=R(F),H=bo(0x1eb)===F[bo(0x10e)][bo(0x90)]?-0x1*-0x141d+-0x11*-0xbf+-0x1062*0x2:-0x7*0xb5+0x1*0xc49+0x16*-0x54;if(G[bo(0x343)]>=H)return void console['log'](a0L[bo(0x226)]('\x20\x20Bonus\x20help\x20already\x20unlocked.'));if(G[bo(0x265)]<G[bo(0x343)])return void console['log'](a0L[bo(0x226)](bo(0x105)+(G[bo(0x343)]-G[bo(0x265)])+'\x20helps\x20remaining.\x20Use\x20them\x20first!'));const J=H-G[bo(0x343)];F[bo(0x24e)]=H,a0Z(F),console[bo(0x1ca)](),console[bo(0x1ca)](a0L['green'](bo(0xfa)+J+bo(0x311)+J+'/'+H+bo(0xc0))),console[bo(0x1ca)](a0L[bo(0x226)]('\x20\x20Type\x20\x22help\x22\x20on\x20any\x20question\x20to\x20use.')),console[bo(0x1ca)]();}),B[bb(0x160)](bb(0x340))[bb(0x1c3)](bb(0x345))[bb(0xb8)](async(F,G)=>{const bp=bb,H=G[bp(0xdf)]('\x20');a0a8(bp(0xb0)+F+'\x20'+H);const J=a0Y();if(!J)return void a0aa(bp(0x1f7));if(!(function(){const bq=bp,Z=a0a1();if(!Z)return!(0x14*0x8e+-0x10d1+0x5b9);if(new Date()>=Z){const a0=a0Y();if(a0){const a1=Object[bq(0x12a)](a0[bq(0x108)])[bq(0x1b6)];bq(0x1eb)===a0['session'][bq(0x90)]||0x1533+0xc9d*0x1+0x874*-0x4===a1?(a0a0(),a0ab(bq(0xce)),a0ac(bq(0x2f6))):(a0aa(bq(0xe4)),a0ac('Type\x20\x22exam\x20submit\x22\x20to\x20finalise\x20now,\x20or\x20the\x20server\x20will\x20auto-finalise\x20within\x2030\x20minutes.'));}return!(-0x529*-0x1+0x12df*-0x1+-0x1*-0xdb7);}return!(0xdf*-0x5+0x1*0xd8d+-0x932);}()))return;const K=parseInt(F,0x56*0x23+-0x5*-0x4eb+0xb*-0x34d),L=J['questions']['find'](Z=>Z[bp(0x10d)]===K);if(!L)return void a0aa('Question\x20'+F+bp(0x349)+J[bp(0x258)][bp(0x1b6)]+').');let Q;if(bp(0x2a7)===L[bp(0x318)]||'ctf4ai'===L[bp(0x318)]||'vla'===L['type']||L[bp(0x7b)]&&!L['options']['A']&&!L[bp(0x7b)]['B']){if(Q=H[bp(0x217)](),/^submit\s+/i[bp(0xf5)](Q)&&(Q=Q[bp(0x2a4)](/^submit\s+/i,'')[bp(0x217)]()),Q=Q['replace'](/^["'`]+|["'`]+$/g,'')['trim'](),!Q)return void a0aa(bp(0x115));if(/^[A-Da-d]$/[bp(0xf5)](Q))return a0aa('Q'+K+bp(0x2ee)),void console[bp(0x1ca)](a0L[bp(0x226)](bp(0x32e))+a0L[bp(0x2b1)]('exam\x20answer\x20'+K+bp(0x20f)));}else{if(Q=H[bp(0x33c)](),!['A','B','C','D'][bp(0x80)](Q))return void a0aa(bp(0x135));}if(bp(0x1eb)===J[bp(0x10e)][bp(0x90)]&&-0x19ad+0x14d6+0x4d9===K&&-0x1bd*0xf+-0x1244*0x2+-0x1f*-0x205===(R(J)[bp(0x143)][0x535*0x5+-0xd6+-0x1*0x1931]||0x63c+-0x2*-0x312+-0x10*0xc6))return console[bp(0x1ca)](),console[bp(0x1ca)](a0L[bp(0x1ab)]('\x20\x20💡\x20Try\x20typing\x20')+a0L['bold'][bp(0x1ab)](bp(0x159))+a0L['yellow']('\x20first\x20to\x20see\x20what\x20it\x20does!')),console['log'](a0L[bp(0x226)](bp(0x167))),void console[bp(0x1ca)]();const V=J['answers'][K];J[bp(0x13a)]||(J['interactions']=[]),J[bp(0x13a)][bp(0x10f)]({'ts':new Date()['toISOString'](),'q':K,'type':V?bp(0x2d2):bp(0x1ae),'input':Q,'result':V?'changed\x20from\x20'+V:bp(0xf3)}),J[bp(0x108)][K]=Q,J[bp(0x310)]=K,a0Z(J),console[bp(0x1ca)](a0L[bp(0x226)](bp(0xd9)));const W=J['session']['token'];if(W&&'demo-free'!==J['session'][bp(0x90)]){const Z=(a0W()[bp(0x93)]||bp(0x355))+'/api/icoa/exams/'+J['session'][bp(0x90)]+bp(0x2bd),a0={};a0[bp(0x184)]=bp(0x23c);const a1={};a1['token']=W,a1[bp(0x1b7)]=K,a1[bp(0x96)]=Q,fetch(Z,{'method':bp(0x1b3),'headers':a0,'body':JSON[bp(0x18a)](a1),'signal':AbortSignal[bp(0x21e)](0x1c8d+0x1*0x670+-0xf75)})[bp(0xb9)](()=>{});}const X=Object[bp(0x12a)](J[bp(0x108)])['length'],Y=J[bp(0x10e)]['questionCount'];if(a0a9('Q'+K+':\x20'+Q+bp(0x16b)+X+'/'+Y+'\x20answered)'),bp(0x1eb)===J['session'][bp(0x90)]&&L['answer']){const a2=[bp(0x30d),bp(0x2a1),bp(0x14f),bp(0x270),'Spot\x20on.'],a3=['Close\x20—\x20we\x27ll\x20revisit\x20this\x20one.',bp(0x2c3),bp(0x247)],a4=Q===L[bp(0x96)]?a2:a3,a5=a4[Math['floor'](Math[bp(0x7c)]()*a4['length'])];console[bp(0x1ca)](a0L[bp(0x226)](bp(0x1b8)+a5));}if(K<J[bp(0x258)][bp(0x1b6)]){const a6=J[bp(0x258)][K];J[bp(0x310)]=a6['number'],a0Z(J),U(a6,J[bp(0x108)][a6['number']]);}else X>=J[bp(0x258)]['length']&&(console[bp(0x1ca)](),console[bp(0x1ca)](a0L[bp(0x2b1)][bp(0x31e)](bp(0xfb))),console[bp(0x1ca)](),bp(0x1eb)===J[bp(0x10e)]['examId']?(console['log'](a0L['white'](bp(0x341))+a0L['bold'][bp(0x348)](bp(0x31a))+a0L[bp(0x12b)]('\x20to\x20see\x20your\x20results!')),console[bp(0x1ca)]()):console[bp(0x1ca)](a0L[bp(0x12b)](bp(0x29c))));}),B[bb(0x160)](bb(0x33f))[bb(0x1c3)](bb(0x1bf))[bb(0xb8)](()=>{const br=bb;a0a8(br(0x214));const F=a0Y();if(!F)return void a0aa(br(0x10a));a0ae('Review:\x20'+F[br(0x10e)][br(0x301)]),O(),console[br(0x1ca)]();let G='\x20\x20';const H=Array[br(0x67)](F[br(0x17d)])?F['bookmarks']:[];for(const Q of F['questions']){const V=F[br(0x108)][Q['number']],W=H[br(0x80)](Q[br(0x10d)]),X=W?'★':'\x20';G+=V?W?a0L[br(0x31e)][br(0x1ab)]('Q'+String(Q[br(0x10d)])[br(0x1e1)](-0x10d0+-0x1870+0x2942*0x1)+X+'['+V+']\x20'):a0L[br(0x2b1)]('Q'+String(Q[br(0x10d)])[br(0x1e1)](0x209*-0x1+-0xe0a+0x17*0xb3)+'\x20['+V+br(0x319)):W?a0L['bold'][br(0x1ab)]('Q'+String(Q[br(0x10d)])['padStart'](-0x4f4*0x2+-0xc62+0x164c)+X+'[\x20]\x20\x20'):a0L[br(0x1ab)]('Q'+String(Q[br(0x10d)])[br(0x1e1)](-0x14fa+-0x181f*-0x1+0x49*-0xb)+br(0x300)),Q['number']%(0x24c2+0x5be+-0x2a7a)==0x2d*-0x9e+0x80a+0x13bc&&(console[br(0x1ca)](G),G='\x20\x20');}G['trim']()&&console['log'](G);const J=Object['keys'](F[br(0x108)])['length'],K=F[br(0x10e)][br(0x22e)],L=K-J;if(console[br(0x1ca)](),a0af(br(0x125),a0L[br(0x2b1)][br(0x31e)](J+'/'+K)),L>0x16d7*0x1+-0x435*0x2+-0xe6d){const Y=F[br(0x258)][br(0x1b0)](Z=>!F[br(0x108)][Z[br(0x10d)]])['map'](Z=>Z['number'])['join'](',\x20');a0af(br(0x1a4),a0L[br(0x1ab)](L+br(0x70)+Y+')'));}H[br(0x1b6)]>0xe1c+0x1d5b+-0x2b77&&a0af('Flagged\x20for\x20review',a0L[br(0x31e)][br(0x1ab)]('★\x20'+H['length'])+a0L['gray']('\x20('+H[br(0x1fc)](Z=>'Q'+Z)[br(0xdf)](',\x20')+')')),console[br(0x1ca)](),H['length']>-0x2*-0x48c+0x42*0x67+-0x23a6&&console[br(0x1ca)](a0L[br(0x226)](br(0x1c6))+a0L[br(0x12b)](br(0x149)+H[0x13d9+-0xc06+0x7d3*-0x1])),console[br(0x1ca)](a0L[br(0x226)](br(0x126))+a0L[br(0x31e)][br(0x348)](br(0x31a))+a0L[br(0x226)](br(0x104)));}),B[bb(0x160)](bb(0x87))[bb(0x1c3)](bb(0x223))[bb(0xb8)](async J=>{const bs=bb;a0a8(bs(0x2dd)+(J||''));const K=a0Y();if(K&&'confirm'===J&&(K['_submitConfirmed']=!(-0x841+0xbe0+-0x67*0x9),a0Z(K)),!K)return void a0aa(bs(0x10a));const L=Object[bs(0x12a)](K[bs(0x108)])[bs(0x1b6)],Q=K['session'][bs(0x22e)],V=Q-L;if(-0x1*0x61a+-0x1*-0x1a07+-0x13ed===L){const X=a0a1(),Y=X&&new Date()>=X;return void(bs(0x1eb)===K[bs(0x10e)][bs(0x90)]||Y?(a0a0(),a0ab(bs(0x2be)),a0ac(bs(0x2f6))):(a0ab(bs(0x1e8)),a0ac('Answer\x20some\x20questions\x20first:\x20exam\x20q\x201')));}if('demo-free'!==K[bs(0x10e)][bs(0x90)]){const Z=!(0x50e+-0x1*0x7bb+0x2ad)===K[bs(0x221)],a0=a0a1(),a1=!!(a0&&new Date()>=a0);if(!Z&&!a1){if(console[bs(0x1ca)](),console['log'](a0L[bs(0x298)](bs(0x6b))),console['log'](a0L[bs(0x31e)][bs(0x298)](bs(0x1ce))),console[bs(0x1ca)](a0L[bs(0x298)](bs(0x6b))),console[bs(0x1ca)](),console[bs(0x1ca)](a0L[bs(0x12b)]('\x20\x20You\x20will\x20submit\x20'+a0L[bs(0x31e)][bs(0x2b1)](L+'/'+Q)+'\x20answers.')),V>-0x1*-0x979+-0x5*0x3d7+0x9ba){const a3=K[bs(0x258)]['filter'](a4=>!K['answers'][a4[bs(0x10d)]])['map'](a4=>'Q'+a4['number'])['join'](',\x20');console['log'](a0L[bs(0x1ab)]('\x20\x20'+V+'\x20unanswered:\x20'+a3));}const a2=Array[bs(0x67)](K[bs(0x17d)])?K[bs(0x17d)]:[];return a2['length']>0x796*0x4+-0x2*0x1152+0x44c&&console[bs(0x1ca)](a0L[bs(0x1ab)]('\x20\x20★\x20'+a2[bs(0x1b6)]+bs(0x1ba)+a2[bs(0x1fc)](a4=>'Q'+a4)[bs(0xdf)](',\x20'))),console[bs(0x1ca)](),console[bs(0x1ca)](a0L['white'](bs(0xa5))+a0L[bs(0x31e)]['red']('final')+a0L[bs(0x12b)]('\x20—\x20you\x20cannot\x20change\x20them\x20after\x20submit.')),console['log'](),console[bs(0x1ca)](a0L['bold'][bs(0x12b)](bs(0x35c))+a0L[bs(0x31e)][bs(0x348)](bs(0x1b9))),console['log'](a0L[bs(0x12b)]('\x20\x20To\x20go\x20back:\x20\x20')+a0L['cyan']('exam\x20review')+a0L[bs(0x226)](bs(0x324))+a0L['cyan']('back')),void console[bs(0x1ca)]();}Z&&(delete K[bs(0x221)],a0Z(K));}if(console[bs(0x1ca)](),bs(0x1eb)===K['session'][bs(0x90)]){try{N(-0x26cd+0x1b4d+0xb80,a0ai(bs(0xd3))),await q(0x1*0xa5f+0x16a5+0x1fd8*-0x1);let a4=0x1d75+0x1*0x21ce+-0x4f*0xcd;const a5=[],a6={};for(const ai of K[bs(0x258)]){const aj=ai[bs(0x154)]||bs(0x275),ak={};ak[bs(0x141)]=0x0,ak[bs(0x162)]=0x0,(a6[aj]||(a6[aj]=ak),a6[aj][bs(0x162)]++);const al=K[bs(0x108)][ai[bs(0x10d)]];al&&ai[bs(0x96)]&&al===ai[bs(0x96)]?(a4++,a6[aj]['correct']++):a5[bs(0x10f)](ai[bs(0x10d)]);}a5[bs(0x295)]((am,an)=>am-an),N(-0x1475*-0x1+0x141+-0x1552,a0ai(bs(0x1da))),console[bs(0x1ca)]();const a7=new Date(K[bs(0x10e)][bs(0x1f2)])[bs(0x33b)](),a8=Math[bs(0x343)](0x4bd*0x3+-0x2*-0x126+-0x3*0x581,Math[bs(0xb6)]((Date['now']()-a7)/(0x2148+0x18d*0x13+-0x3ad7*0x1))),a9=Math[bs(0x15e)](a8/(0x2*-0x934+0x250*0x2+0xe04))+'m\x20'+a8%(0x7*0xfa+-0x2*0x1163+-0xe16*-0x2)+'s',aa=[...K[bs(0x258)]],ab={...K['answers']},ac=R(K);a0a0();const ad=Math['round'](a4/Q*(0x1*0x21f5+-0x22ff+0x16e)),ae=a0W(),af={};af[bs(0x184)]=bs(0x23c),(fetch(bs(0x2e2),{'method':bs(0x1b3),'headers':af,'body':JSON[bs(0x18a)]({'type':bs(0x1f4),'score':a4,'total':Q,'lang':ae[bs(0xdc)]||'en','help_used':ac[bs(0x265)],'help_max':ac[bs(0x343)],'tokens_used':0x0,'solved':ad>=-0x2664+0x433*-0x1+-0x1*-0x2ad3?-0x6*0x3ba+0xbb*0x22+-0x279:0x2140+0x998*-0x1+-0x17a8,'timestamp':new Date()[bs(0x246)](),'interactions':K['interactions']||[]}),'signal':AbortSignal[bs(0x21e)](0x14c4+-0x22d3+-0x2197*-0x1)})['catch'](()=>{}),console['log'](),console[bs(0x1ca)](a0L['cyan'](bs(0x13d))),console[bs(0x1ca)](),console[bs(0x1ca)](a0L['bold'][bs(0x12b)](bs(0xe7))),console[bs(0x1ca)](a0L['bold']['white']('\x20\x20\x20██║██╔════╝██╔═══██╗██╔══██╗')),console[bs(0x1ca)](a0L[bs(0x31e)]['white']('\x20\x20\x20██║██║\x20\x20\x20\x20\x20██║\x20\x20\x20██║███████║')),console[bs(0x1ca)](a0L['bold']['white'](bs(0x313))),console[bs(0x1ca)](a0L[bs(0x31e)]['white'](bs(0x83))),console[bs(0x1ca)](a0L[bs(0x31e)][bs(0x12b)](bs(0x124))),console['log'](),console[bs(0x1ca)](a0L[bs(0x31e)](bs(0x185)+a0ai(bs(0x267))+':\x20'+a4+'/'+Q+'\x20('+ad+'%)')),console['log'](a0L[bs(0x31e)]('\x20\x20\x20'+(ad>=-0x405+-0x1a21+0x1e62*0x1?a0L[bs(0x2b1)](a0ai(bs(0x239))):a0L[bs(0x298)](a0ai(bs(0x206)))))),console[bs(0x1ca)](a0L[bs(0x226)](bs(0x106)+a9)),console[bs(0x1ca)](),console[bs(0x1ca)](a0L[bs(0x1ab)](bs(0x257))),console[bs(0x1ca)](a0L[bs(0x226)]('\x20\x20\x20Sydney,\x20Australia\x20·\x20Jun\x2027\x20-\x20Jul\x202,\x202026')),console[bs(0x1ca)](),console[bs(0x1ca)](a0L[bs(0x348)](bs(0x13d))),await q(0x1c8d+0x25c5+-0x369a));const ag=Object[bs(0x252)](a6);if(ag[bs(0x1b6)]>0x23*0x115+0x11a1+-0x2*0x1bc0){console[bs(0x1ca)](),console[bs(0x1ca)](a0L[bs(0x31e)][bs(0x12b)]('\x20\x20By\x20category'));const am=-0x115f+-0xe5*-0x18+-0x40f;for(const [an,ao]of ag){const ap=ao[bs(0x162)]>-0x1*0x17cd+-0x17*-0x199+-0x1*0xcf2?Math['round'](ao['correct']/ao[bs(0x162)]*(-0x1fd3+-0x331+0x2368)):0x1ca*0x4+-0x126*0x9+0x32e,aq=ao[bs(0x162)]>0x47*0x20+-0x16b6+-0x7*-0x1fa?Math['round'](ao[bs(0x141)]/ao[bs(0x162)]*am):-0x118e+-0x1*-0x7c9+0x9c5,ar=am-aq,as=ap>=-0x2*-0x1247+-0xfe2*0x2+-0x6*0xbf?a0L[bs(0x2b1)]:ap>=0x26bb+-0xca7*-0x1+-0x3330?a0L[bs(0x1ab)]:a0L[bs(0x298)],at=as('█'['repeat'](aq))+a0L[bs(0x226)]('░'[bs(0x192)](ar));console[bs(0x1ca)](bs(0x31c)+a0L[bs(0x12b)](an[bs(0x29e)](-0x2195+-0x10b8+-0x3261*-0x1))+'\x20'+at+'\x20\x20'+as(ao['correct']+'/'+ao[bs(0x162)])+a0L[bs(0x226)]('\x20('+ap+'%)'));}console[bs(0x1ca)](),console['log'](a0L[bs(0x348)](bs(0x219)));}const ah=a0a4(a4,Q);if(a4===ah[bs(0x1a1)]&&ah['attempts']>-0x76a*0x4+-0x1ff+0x1fa8&&a4>0x9*0x139+-0x3d*0x49+0x664&&(console['log'](),console['log'](a0L[bs(0x31e)][bs(0x2b1)](bs(0x1f6)))),a5['length']>-0x232a+0xcad+-0x1*-0x167d){const au=aa[bs(0x1b0)](av=>a5[bs(0x80)](av['number']))[bs(0x1fc)](av=>({...av}));a0a5(au);}else a0a7();if(await q(-0x11a+-0xa22+-0x1*-0x16f4),a5[bs(0x1b6)]>-0xd1a+-0x14c0+0x21da){console['log'](),console['log'](a0L[bs(0x1ab)]('\x20\x20'+a5[bs(0x1b6)]+'\x20'+a0ai(bs(0x1b4)))),console[bs(0x1ca)]();for(const av of a5){const aw=aa[bs(0x1ff)](az=>az[bs(0x10d)]===av);if(!aw)continue;const ax=ab[av],ay=aw[bs(0x96)];console[bs(0x1ca)](a0L[bs(0x12b)](bs(0x8e)+av+'.\x20'+aw[bs(0x2f4)])),ax?console[bs(0x1ca)](a0L[bs(0x298)](bs(0x31c)+a0ai(bs(0x1e9))+':\x20'+ax+'.\x20'+aw['options'][ax])):console['log'](a0L['yellow'](bs(0x31c)+a0ai(bs(0x1e9))+':\x20—')),ay&&console[bs(0x1ca)](a0L[bs(0x2b1)](bs(0x31c)+a0ai(bs(0x141))+':\x20'+ay+'.\x20'+aw[bs(0x7b)][ay])),aw['explanation']&&console[bs(0x1ca)](a0L[bs(0x226)](bs(0xee)+aw[bs(0x19f)])),console['log']();}}else console[bs(0x1ca)](),console[bs(0x1ca)](a0L['green']('\x20\x20'+a0ai('perfectScore')));await q(-0x7c0+0x13*0x1d+0xd69),console['log'](),console[bs(0x1ca)](a0L[bs(0x348)](bs(0x219))),console['log'](a0L[bs(0x12b)]('\x20\x20'+a0ai(bs(0x272))+'\x20')+a0L[bs(0x31e)][bs(0x2b1)](bs(0x2a7))+a0L[bs(0x226)](bs(0x1cb)+a0ai(bs(0x22d)))),console[bs(0x1ca)](a0L[bs(0x226)]('\x20\x20'+a0ai(bs(0xc5)))),console['log'](a0L[bs(0x348)](bs(0x219))),console[bs(0x1ca)]();}catch(az){console[bs(0x1ca)](),a0aa(az[bs(0x32f)]);}return;}const W=K['session'][bs(0xcb)];try{let aA;if(N(0x3d5+0x6*0x323+-0x16a7,bs(0xcd)),W){const aK={};aK[bs(0x184)]=bs(0x23c);const aL={};aL['ai4ctf']=0x0,aL[bs(0x321)]=0x0;const aM=a0W()[bs(0x93)]||bs(0x355),aN=await fetch(aM+bs(0x158)+K[bs(0x10e)]['examId']+bs(0x303),{'method':bs(0x1b3),'headers':aK,'body':JSON[bs(0x18a)]({'token':W,'answers':K[bs(0x108)],'interactions':K['interactions']||[],'aiUsage':K[bs(0x9f)]||aL,'bookmarks':K[bs(0x17d)]||[]}),'signal':AbortSignal['timeout'](0x1*0x5ea7+-0x10cc+-0x1343)});if(!aN['ok']){const aO=await aN['json']()['catch'](()=>({'message':bs(0x1ee)}));throw new Error(aO[bs(0x32f)]||bs(0x1ee));}aA=(await aN[bs(0x2ad)]())[bs(0x220)];}else{const aP=M();if(!aP)return;aA=await aP[bs(0x14c)](K[bs(0x10e)][bs(0x90)],K[bs(0x108)]);}N(-0x8a*0x1d+-0x2*-0x1a6+0xc88,bs(0x2e9)),await q(0x7d2+-0x1815+0x116f*0x1),N(0x421*0x1+0x6c6+-0xa83,bs(0x65)),console[bs(0x1ca)]();const aB={};aB[bs(0x2a7)]=0x0,aB[bs(0x321)]=0x0;const aC={'answered':Object[bs(0x12a)](K[bs(0x108)])['length'],'total':K[bs(0x10e)][bs(0x22e)],'bookmarks':Array[bs(0x67)](K[bs(0x17d)])?K[bs(0x17d)][bs(0x1b6)]:-0x815*0x1+0x1*0x11ff+-0x4f5*0x2,'help':R(K),'aiUsage':K[bs(0x9f)]||aB,'interactions':(K['interactions']||[])[bs(0x1b6)],'durationMin':K[bs(0x10e)][bs(0x292)]||0x1*-0x38b+-0x1bff*0x1+0x1f8a,'confirmedAt':K['session'][bs(0x2df)]||K['session'][bs(0x1f2)],'examId':K['session'][bs(0x90)]};a0a0();const aD=Math[bs(0x343)](-0x1*-0xb3d+0x4*-0x1a5+0x1*-0x4a9,Math[bs(0xb6)]((Date[bs(0x6c)]()-new Date(aC['confirmedAt'])[bs(0x33b)]())/(-0x48*0x84+-0xc28+-0x6a6*-0x8))),aE=Math['floor'](aD/(-0xe41+0x65*0x23+-0x1*-0xae)),aF=aD%(-0x2e*0x1c+0x22*-0x55+0x108e);console['log'](),console['log'](a0L[bs(0x348)](bs(0x23e))),console[bs(0x1ca)](),console[bs(0x1ca)](a0L[bs(0x31e)][bs(0x12b)](bs(0xe7))),console[bs(0x1ca)](a0L['bold'][bs(0x12b)](bs(0x11e))),console[bs(0x1ca)](a0L[bs(0x31e)][bs(0x12b)](bs(0x211))),console['log'](a0L['bold'][bs(0x12b)]('\x20\x20\x20██║██║\x20\x20\x20\x20\x20██║\x20\x20\x20██║██╔══██║')),console['log'](a0L[bs(0x31e)][bs(0x12b)](bs(0x83))),console['log'](a0L['bold']['white']('\x20\x20\x20╚═╝\x20╚═════╝\x20╚═════╝\x20╚═╝\x20\x20╚═╝')),console['log']();const aG=aA[bs(0x239)]?a0L[bs(0x2b1)]['bold']('\x20\x20\x20✓\x20\x20Submission\x20accepted\x20—\x20baseline\x20met'):a0L[bs(0x1ab)][bs(0x31e)](bs(0xb3));console[bs(0x1ca)](aG),console['log'](),console[bs(0x1ca)](a0L[bs(0x12b)]('\x20\x20\x20Your\x20answers\x20have\x20been\x20recorded\x20and\x20sent\x20to\x20your\x20national')),console[bs(0x1ca)](a0L[bs(0x12b)](bs(0x98))),console['log'](a0L[bs(0x12b)](bs(0x251))),console[bs(0x1ca)](),console[bs(0x1ca)](a0L['cyan'](bs(0x219))),console[bs(0x1ca)](),console['log'](a0L[bs(0x31e)][bs(0x12b)](bs(0x2fe)));const aH=aC[bs(0x162)]-aC['answered'];console[bs(0x1ca)]('\x20\x20\x20\x20'+a0L[bs(0x226)](bs(0xea))+a0L[bs(0x12b)](aC['answered']+'/'+aC['total'])+(aH>-0x8*0x92+-0xf7*-0x13+-0x19*0x8d?a0L[bs(0x226)](bs(0x24a)+aH+bs(0x15b)):'')),console[bs(0x1ca)]('\x20\x20\x20\x20'+a0L[bs(0x226)](bs(0x2da))+a0L[bs(0x12b)](aE+'m\x20'+aF+'s')+a0L[bs(0x226)](bs(0x29b)+aC[bs(0x1ea)]+bs(0x153))),aC[bs(0x17d)]>-0x3*-0x273+-0xacc+0x1*0x373&&console['log']('\x20\x20\x20\x20'+a0L[bs(0x226)](bs(0xfe))+a0L[bs(0x1ab)]('★\x20'+aC[bs(0x17d)])),console['log']();const aI=aA[bs(0x2d7)];if(aI&&Object[bs(0x12a)](aI)['length']>=-0x65b*0x2+-0xc*0x251+-0x2884*-0x1){const aQ=Object[bs(0x252)](aI)[bs(0x1b0)](([,aV])=>aV[bs(0x162)]>0xe3*-0x23+0x2546+0x1*-0x63d)['map'](([aV,aW])=>({'cat':aV,'pct':aW[bs(0x141)]/aW[bs(0x162)]}))[bs(0x295)]((aV,aW)=>aW[bs(0x2fa)]-aV[bs(0x2fa)]),aR=Math[bs(0x2f7)](-0x2a9*0x6+-0x136a+0x2*0x11b1,Math[bs(0xa2)](aQ[bs(0x1b6)]/(-0x19*-0x2d+-0x1*-0x18fb+0x1*-0x1d5d))),aS=Math[bs(0x2f7)](-0x5*-0x3cb+-0x15*-0x199+-0x3482,Math[bs(0xa2)](aQ[bs(0x1b6)]/(-0x1*0x25+-0xd81+0xda9))),aT=aQ[bs(0x284)](-0x9d6+0x1f67+-0x1591,aR)['map'](aV=>aV[bs(0x1a2)]),aU=aQ[bs(0x284)](-aS)[bs(0x1fc)](aV=>aV[bs(0x1a2)]);aT[bs(0x18f)](aV=>aU['includes'](aV))||(console[bs(0x1ca)](a0L['bold'][bs(0x12b)](bs(0x314))),console['log'](bs(0x31c)+a0L['green'](bs(0x2bb))+a0L['white'](aT[bs(0xdf)](',\x20'))),console[bs(0x1ca)](bs(0x31c)+a0L[bs(0x1ab)](bs(0x2c0))+a0L[bs(0x12b)](aU[bs(0xdf)](',\x20'))),console[bs(0x1ca)](a0L[bs(0x226)](bs(0x288))),console[bs(0x1ca)]());}console[bs(0x1ca)](a0L[bs(0x31e)]['white'](bs(0x213))),console[bs(0x1ca)](bs(0x31c)+a0L[bs(0x226)](bs(0x29f))+a0L[bs(0x12b)](aC[bs(0x159)]['used']+'/'+aC['help'][bs(0x343)])),console[bs(0x1ca)](bs(0x31c)+a0L['gray'](bs(0x17f))+a0L[bs(0x12b)](aC[bs(0x9f)][bs(0x2a7)]+bs(0x33a))+a0L[bs(0x226)](bs(0x24a))+a0L[bs(0x12b)](aC[bs(0x9f)]['ctf4ai']+'\x20CTF4AI')),console[bs(0x1ca)](),console[bs(0x1ca)](a0L['cyan'](bs(0x219))),console[bs(0x1ca)](),console[bs(0x1ca)](a0L[bs(0x31e)]['white']('\x20\x20What\x20next')),console[bs(0x1ca)](a0L['gray']('\x20\x20·\x20Your\x20national\x20organizer\x20will\x20announce\x20selection\x20results.')),console['log'](a0L[bs(0x226)](bs(0x1ac))+a0L[bs(0x12b)]('demo')+a0L['gray'](bs(0x78))),console[bs(0x1ca)](a0L[bs(0x226)](bs(0x254))+a0L[bs(0x12b)](bs(0x171))),console[bs(0x1ca)]();const {showCToBUpgradePrompt:aJ}=await import(bs(0x1f8));aJ(aC[bs(0x90)],aA[bs(0x239)]),console[bs(0x1ca)](a0L['yellow'](bs(0x323))),console[bs(0x1ca)](a0L[bs(0x348)][bs(0x316)](bs(0x2ca))),console[bs(0x1ca)](),console[bs(0x1ca)](a0L[bs(0x348)](bs(0x23e))),console[bs(0x1ca)]();}catch(aV){console[bs(0x1ca)](),a0aa(aV[bs(0x32f)]);}}),B['command'](bb(0x16a))[bb(0x1c3)](bb(0x235))[bb(0xb8)](async F=>{const bt=bb;a0a8('exam\x20result\x20'+(F||''));const G=M();if(!G)return;if(!F){const J=a0Y();if(!J)return void a0aa(bt(0x1c4));F=J[bt(0x10e)][bt(0x90)];}const H=a0ag(bt(0x13b));H[bt(0x66)]();try{const K=await G[bt(0x82)](F);H['succeed']('Result\x20loaded'),console[bt(0x1ca)](),a0ae(K[bt(0x301)]),a0af(bt(0x1c2),a0L[bt(0x31e)](K[bt(0x267)]+'/'+K['total'])),a0af(bt(0xa9),a0L['bold'](K[bt(0xc2)]+'%')),a0af(bt(0x7d),K['passed']?a0L['green'][bt(0x31e)](bt(0x338)):a0L[bt(0x298)][bt(0x31e)](bt(0x6f))),a0af('Submitted',K['submittedAt']),console[bt(0x1ca)]();}catch(L){H[bt(0x207)](bt(0x190)),a0aa(L[bt(0x32f)]);}}),B['command']('token\x20<code>')[bb(0x1c3)](bb(0x249))['action'](async J=>{const bu=bb;a0a8('exam\x20token\x20'+J);const {getRealExamState:K,saveExamState:L,clearExamState:Q}=await import(bu(0x151)),V=K();if(V){const a2=V[bu(0x10e)][bu(0xcb)],a3=a0a1(),a4=!!a2&&a2[bu(0x217)]()['toUpperCase']()!==J['trim']()[bu(0x33c)](),a5=!!a3&&a3[bu(0x33b)]()+(-0x1*-0x924f1+-0xd683b+-0x541*-0x60a)<Date['now']();if(a4&&a5)return Q(),console[bu(0x1ca)](),console[bu(0x1ca)](a0L[bu(0x226)]('\x20\x20(previous\x20exam\x20session\x20expired\x20—\x20cleared\x20state,\x20starting\x20fresh\x20with\x20your\x20new\x20token)')),console[bu(0x1ca)](),console[bu(0x1ca)](a0L[bu(0x12b)](bu(0x139))+a0L[bu(0x31e)][bu(0x348)]('exam\x20'+J)),void console[bu(0x1ca)]();if(!a2&&J)return V[bu(0x10e)][bu(0xcb)]=J[bu(0x217)](),L(V),console[bu(0x1ca)](),console['log'](a0L[bu(0x2b1)](bu(0x12c))),console[bu(0x1ca)](a0L[bu(0x226)](bu(0x69))+a0L[bu(0x12b)](bu(0x34c))+a0L[bu(0x226)](bu(0xc6))+a0L[bu(0x12b)](bu(0x31a))),console[bu(0x1ca)](),console[bu(0x1ca)](a0L[bu(0x31e)][bu(0x12b)](bu(0x255))),console[bu(0x1ca)](a0L[bu(0x226)]('\x20\x20\x20\x20→\x20')+a0L['bold'][bu(0x348)](bu(0x1d4))+a0L['gray'](bu(0xd5))),console[bu(0x1ca)](a0L['gray'](bu(0xee))+a0L[bu(0x31e)]['cyan'](bu(0x214))+a0L[bu(0x226)](bu(0xef))),void console[bu(0x1ca)]();const a6=Object['keys'](V['answers'])[bu(0x1b6)],a7=V[bu(0x10e)][bu(0x22e)],a8=a0a1(),a9=a8?Math['max'](-0x2*0x10c7+-0x16ef+0x387d,Math[bu(0xb6)]((a8[bu(0x33b)]()-Date[bu(0x6c)]())/(0x7120*0x3+0xf49f+-0x3b*0x5ed))):null;return console[bu(0x1ca)](),console[bu(0x1ca)](a0L['yellow'](bu(0x152))),console['log'](),console['log'](a0L[bu(0x226)](bu(0x19a))+a0L[bu(0x12b)](V['session'][bu(0x301)])),a2&&console[bu(0x1ca)](a0L[bu(0x226)](bu(0x1af))+a0L['white'](a2)+(a2===J?a0L['green'](bu(0x286)):a0L[bu(0x1ab)](bu(0x34e)))),console[bu(0x1ca)](a0L[bu(0x226)](bu(0x1a5))+a0L[bu(0x12b)](a6+'/'+a7)),null!==a9&&console['log'](a0L[bu(0x226)](bu(0x231))+a0L[bu(0x12b)](a9+bu(0xc9))),console[bu(0x1ca)](),console[bu(0x1ca)](a0L[bu(0x31e)]['white'](bu(0x2c7))),console[bu(0x1ca)](a0L[bu(0x226)](bu(0xee))+a0L[bu(0x31e)][bu(0x348)]('exam\x20q\x201')+a0L[bu(0x226)]('\x20\x20\x20\x20\x20\x20resume\x20at\x20any\x20question')),console[bu(0x1ca)](a0L[bu(0x226)]('\x20\x20\x20\x20→\x20')+a0L['bold'][bu(0x348)](bu(0x214))+a0L[bu(0x226)]('\x20\x20\x20see\x20progress\x20+\x20flagged\x20items')),console[bu(0x1ca)](a0L['gray'](bu(0xee))+a0L[bu(0x31e)][bu(0x348)](bu(0x31a))+a0L['gray'](bu(0x297))),a2&&a2!==J&&(console[bu(0x1ca)](),console[bu(0x1ca)](a0L[bu(0x1ab)]('\x20\x20Note:\x20you\x20typed\x20a\x20different\x20token.\x20Each\x20exam\x20token\x20is\x20bound\x20to')),console[bu(0x1ca)](a0L['yellow'](bu(0x34a))),console[bu(0x1ca)](),console[bu(0x1ca)](a0L[bu(0x226)](bu(0x307))),console[bu(0x1ca)](a0L[bu(0x226)](bu(0x1c8))+a0L[bu(0x31e)]['cyan'](bu(0xab))+a0L[bu(0x226)]('\x20to\x20wipe\x20local\x20state,\x20then\x20re-enter\x20the\x20new\x20token.'))),void console[bu(0x1ca)]();}const {isNativeWindowsCmd:W}=await import(bu(0x1de));if(!W()&&!a0am()){let aa=!(0x117a+-0x9*-0x20e+-0x23f7);try{const ab={};ab[bu(0x184)]='application/json';const ac=a0W()['ctfdUrl']||bu(0x355),ad=await fetch(ac+bu(0x33d),{'method':bu(0x1b3),'headers':ab,'body':JSON[bu(0x18a)]({'token':J[bu(0x217)](),'deviceHash':a0aj(),'peek':!(-0x71*0x5+0x97d*0x3+-0x1a42*0x1)}),'signal':AbortSignal[bu(0x21e)](-0x103b+-0x767+-0xd*-0x352)});if(ad['ok']){const ae=await ad[bu(0x2ad)]();(ae?.[bu(0x220)]?.[bu(0x181)]||'')[bu(0x329)]('-c')&&(aa=!(0x3e*-0x15+-0xc41+-0xc1*-0x17));}}catch{}if(!aa)return console[bu(0x1ca)](),a0ab('Pre-exam\x20setup\x20required\x20before\x20entering\x20a\x20token.'),console['log'](a0L['gray'](bu(0x161))+a0L['bold'][bu(0x348)](bu(0x30f))),console[bu(0x1ca)](a0L['gray']('\x20\x20Or\x20type\x20')+a0L[bu(0x31e)][bu(0x348)]('back')+a0L['gray'](bu(0x242))),console[bu(0x1ca)](a0L[bu(0x226)](bu(0x253))),void console[bu(0x1ca)]();}const X={};X['UA']='uk',X['PE']='es',X['CN']='zh',X['AU']='en',X['JP']='ja',X['KR']='ko',X['BR']='pt',X['SA']='ar',X['FR']='fr',X['DE']='de',X['IN']='hi',X['ID']='id',X['TH']='th',X['VN']='vi',X['TR']='tr',X['RU']='ru',X['EG']='ar',X['HT']='ht',X['PH']='en',X['MY']='en',X['MM']='en',X['SG']='en',X['ZA']='en',X['KE']='sw',X['TZ']='sw',X['MO']='zh',X['UZ']='uz',X['GH']='en',X['LA']='lo',X['BD']='bn',X['BI']='fr',X['US']='en',X['UK']='en',X['NZ']='en',X['LK']='si';const Y=X[J[bu(0x217)]()[bu(0x346)](0x5ba+0x257a+0x4f*-0x8c,0xf91*0x2+0x2*0x9df+-0x32de)['toUpperCase']()],Z=a0W(),a0=Z['ctfdUrl']||bu(0x355),a1=Y||Z[bu(0xdc)]||'en';Y&&Y!==(Z[bu(0xdc)]||'en')&&a0X({'language':Y}),console[bu(0x1ca)](),N(0x1*0xf61+0x1d21+-0x2c82,bu(0xa8));try{const af={};af['Content-Type']=bu(0x23c);const ag=await fetch(a0+bu(0x33d),{'method':bu(0x1b3),'headers':af,'body':JSON[bu(0x18a)]({'token':J[bu(0x217)](),'deviceHash':a0aj(),'lang':a1}),'signal':AbortSignal[bu(0x21e)](-0x264*0xc+-0x22*0x5e+0x503c)});if(!ag['ok']){N(-0x1bb8+-0x1111*0x1+-0x2cc9*-0x1,''),console[bu(0x1ca)]();const ao=await ag[bu(0x2ad)]()[bu(0xb9)](()=>({'message':bu(0x31b)}));return a0aa(ao[bu(0x32f)]||'Invalid\x20exam\x20token'),void a0ac('Check\x20your\x20token\x20or\x20contact\x20your\x20proctor.');}N(0xaa3+-0x1b59+0x10d4,bu(0x248));const ah=await ag[bu(0x2ad)](),{session:ai,questions:aj,languages:ak}=ah['data'];N(-0x1207*0x1+-0x1ff+0x2*0xa21,bu(0x12d)),await q(0x7c*-0x45+-0x1abf*0x1+0x3*0x1451),N(-0x1752+0xb2e+0xc88,bu(0x32a)),console[bu(0x1ca)](),console['log'](),a0ae(ai['examName']),console['log'](),a0af(bu(0x1f5),ai[bu(0x22e)]+'\x20(30\x20MCQ\x20+\x2010\x20practical)'),a0af(bu(0x216),ai[bu(0x292)]+bu(0x35d)),a0af(bu(0x2fd),(ai[bu(0xba)]||0x101c*-0x1+-0x26ae+0x3760)+bu(0x241)),a0af('Pass',(ai[bu(0x11f)]||-0x386*0x6+0x1*-0x1613+-0x2*-0x15c1)+bu(0x1e4)),console[bu(0x1ca)](),console[bu(0x1ca)](a0L[bu(0x12b)]('\x20\x20Assistance:')),console[bu(0x1ca)](a0L[bu(0x12b)]('\x20\x20\x20\x20Help:\x20\x20\x20\x2010\x20uses\x20+\x205\x20hidden\x20bonus\x20(MCQ\x20only)')),console[bu(0x1ca)](a0L[bu(0x12b)](bu(0x360))),console['log'](a0L[bu(0x12b)]('\x20\x20\x20\x20AI:\x20\x20\x20\x20\x20\x2025K\x20AI4CTF\x20+\x2025K\x20CTF4AI\x20tokens')),ak&&ak[bu(0x1b6)]>0x1*0x599+0xb*-0x9d+0x127&&console[bu(0x1ca)](a0L[bu(0x12b)](bu(0x262)+ak[bu(0xdf)](',\x20')+bu(0x179))),console['log'](),console[bu(0x1ca)](a0L[bu(0x1ab)](bu(0x204))),console[bu(0x1ca)](a0L[bu(0x12b)](bu(0x2a9))),console[bu(0x1ca)](a0L[bu(0x12b)]('\x20\x20\x20\x20•\x20Server\x20auto-finalises\x20your\x20answers\x20if\x20you\x20do\x20not\x20submit\x20before\x20the\x20deadline')),console[bu(0x1ca)](a0L['white']('\x20\x20\x20\x20•\x20You\x20may\x20exit\x20and\x20resume\x20with\x20the\x20same\x20token')),console['log'](),await new Promise(ap=>{const bv=bu;process['stdout'][bv(0x287)](a0L[bv(0x31e)][bv(0x1ab)](bv(0xbb)));const aq=!!process[bv(0x2f8)][bv(0x18d)]&&process[bv(0x2f8)]['isRaw'];process[bv(0x2f8)][bv(0x18d)]&&process[bv(0x2f8)][bv(0x11d)]&&process[bv(0x2f8)][bv(0x11d)](!(-0x127d*0x1+-0x1fe6+0x81*0x64));const ar=as=>{const bw=bv,at=as[bw(0x27e)]();(at[bw(0x80)]('\x0a')||at[bw(0x80)]('\x0d'))&&(process['stdin']['removeListener']('data',ar),process[bw(0x2f8)][bw(0x18d)]&&process['stdin'][bw(0x11d)]&&process[bw(0x2f8)][bw(0x11d)](aq),process[bw(0x19e)][bw(0x287)]('\x0a'),ap());};process[bv(0x2f8)]['on'](bv(0x220),ar),process[bv(0x2f8)][bv(0x1df)]();});const al=new Date()['toISOString']();ai[bu(0x2df)]=al,ai[bu(0xcb)]=J[bu(0x217)]();try{const ap=Date[bu(0x6c)](),aq=await fetch(a0+bu(0x2ac),{'method':bu(0x13e),'signal':AbortSignal['timeout'](-0x9c3*0x1+0x14c*0x5+-0x1*-0xeff)});if(aq['ok']){const ar=await aq[bu(0x2ad)](),as=ar?.[bu(0x220)]?.[bu(0x1d2)];if(bu(0x10d)==typeof as&&as>0x16bb+0x934+-0x1fef){const at=(ap+Date[bu(0x6c)]())/(-0x1*-0x451+-0x110*-0x11+-0x165f);ai[bu(0x243)]=Math[bu(0xb6)](as-at),ai[bu(0x325)]=as+(-0x1*-0x245b+0x1*0x1e4d+-0x426c)*ai[bu(0x292)]*(0x1c28+-0x3*-0x38b+-0x22e1*0x1);}}}catch{}const am={};am[bu(0x2a7)]=0x0,am['ctf4ai']=0x0;const an={};an[bu(0x10e)]=ai,an[bu(0x258)]=aj,an[bu(0x108)]={},an[bu(0x13a)]=[],an[bu(0x9f)]=am,(a0Z(an),console[bu(0x1ca)](),a0a9('Exam\x20started!\x20Timer\x20is\x20running.'),a0af(bu(0x2b6),ai[bu(0x292)]+bu(0x31d)),aj[bu(0x1b6)]>-0x1*0x1102+0x223*0x1+0x9*0x1a7&&U(aj[0x18b9+-0x10e4+0x1*-0x7d5]));}catch(au){console[bu(0x1ca)](),'TimeoutError'===au[bu(0x2a3)]?a0aa(bu(0x7a)):a0aa(au[bu(0x32f)]||'Failed\x20to\x20start\x20exam');}}),B[bb(0x160)](bb(0xd4),{'hidden':!(-0xb46+0x1*-0x110+0x1*0xc56)})['description'](bb(0x116))[bb(0xb8)](async()=>{const bx=bb;a0a8('exam\x20reset');const {getRealExamState:F,clearExamState:G}=await import('../lib/exam-state.js'),H=F();if(!H)return console[bx(0x1ca)](),console[bx(0x1ca)](a0L[bx(0x226)]('\x20\x20No\x20active\x20exam\x20session\x20to\x20reset.')),void console[bx(0x1ca)]();const J=H[bx(0x10e)][bx(0xcb)];if(console[bx(0x1ca)](),console['log'](a0L[bx(0x1ab)](bx(0x2aa))),console[bx(0x1ca)](a0L['gray'](bx(0x304))+a0L[bx(0x12b)](H[bx(0x10e)][bx(0x301)])),J&&console['log'](a0L[bx(0x226)](bx(0x2bc))+a0L[bx(0x12b)](J)),console[bx(0x1ca)](a0L[bx(0x226)](bx(0x84))),console['log'](a0L['gray'](bx(0x28a))),console['log'](),console[bx(0x1ca)](a0L[bx(0x226)]('\x20\x20Type\x20')+a0L['bold'][bx(0x348)](bx(0xd4))+a0L[bx(0x226)](bx(0x269))),bx(0xd4)!==(await new Promise(K=>{const by=bx;process['stdout'][by(0x287)](by(0xac));const L=Q=>{const bz=by,V=Q[bz(0x27e)]()[bz(0x217)]();(V[bz(0x80)]('\x0a')||V[bz(0x80)]('\x0d')||V[bz(0x1b6)]>-0x2092+0x1*-0x3f2+0x2484)&&(process['stdin'][bz(0x9c)]('data',L),K(V[bz(0x2a4)](/[\r\n]/g,'')));};process[by(0x2f8)]['on'](by(0x220),L),process[by(0x2f8)]['resume']();}))[bx(0x2e8)]())return console['log'](a0L[bx(0x226)]('\x20\x20Cancelled.')),void console[bx(0x1ca)]();G(),console['log'](),console[bx(0x1ca)](a0L[bx(0x2b1)](bx(0x283))),console[bx(0x1ca)](a0L['gray'](bx(0x250))+a0L[bx(0x31e)][bx(0x348)]('exam\x20<token>')),console[bx(0x1ca)]();}),B[bb(0x160)]('demo')[bb(0x1c3)](bb(0x109))[bb(0xb8)](async()=>{const bA=bb;a0a8(bA(0x335)),E(bA(0x13c));const {pickDemoQuestions:F,getLocalizedDemoSession:G,DEMO_PICK_SIZE:H,DEMO_POOL_SIZE:J}=await import(bA(0x23f));a0W()[bA(0x2c9)]||(await(async function(){const bB=bA;let a0=!(-0xe9*-0x11+0x8df+-0x1857);const a1=process['stdin'],a2=()=>{a0=!(0x1fd3+-0x4*0x75a+-0x26b*0x1);},a3=a1['isTTY']&&bB(0x232)==typeof a1['setRawMode'];a3&&(a1[bB(0x11d)](!(0x1aeb+-0x88c+-0x1*0x125f)),a1[bB(0x1df)](),a1[bB(0x228)](bB(0x220),a2));const a4=async a5=>{let a6=0x25*-0x10d+0x3ab+0x2336;for(;a6<a5&&!a0;)await q(0x9b2+0x1f9*-0xe+-0x185*-0xc),a6+=-0x2b*0x35+0x9fa+-0xc3;};try{if(console[bB(0xe2)](),console[bB(0x1ca)](),console['log'](a0L['gray']('\x20\x20\x20')+a0L['dim']('(press\x20any\x20key\x20to\x20skip)')),console[bB(0x1ca)](),console[bB(0x1ca)](a0L[bB(0x31e)][bB(0x12b)](bB(0xe7))),console[bB(0x1ca)](a0L['bold'][bB(0x12b)](bB(0x11e))),console['log'](a0L['bold'][bB(0x12b)](bB(0x211))),console['log'](a0L[bB(0x31e)][bB(0x12b)](bB(0x313))),console['log'](a0L[bB(0x31e)][bB(0x12b)]('\x20\x20\x20██║╚██████╗╚██████╔╝██║\x20\x20██║')),console['log'](a0L[bB(0x31e)][bB(0x12b)](bB(0x124))),console[bB(0x1ca)](),console['log'](a0L[bB(0x31e)][bB(0x1ab)]('\x20\x20\x20International\x20Cyber\x20Olympiad\x20in\x20AI')),console[bB(0x1ca)](a0L[bB(0x226)](bB(0x24c))),await a4(-0x1ca6+0x54c+-0x1b*-0x13a),a0)return;if(console['log'](),console[bB(0x1ca)](a0L[bB(0x12b)](bB(0x354))),console[bB(0x1ca)](),await a4(0x76e+-0x25a8+0x17b*0x16),a0)return;if(console[bB(0x1ca)](a0L[bB(0x348)](bB(0x280))+a0L[bB(0x12b)]('Answer\x2010\x20quick\x20questions')+a0L[bB(0x226)](bB(0x25d))),await a4(-0x1ba9+0x2388+0x523*-0x1),a0)return;if(console[bB(0x1ca)](a0L[bB(0x2b1)](bB(0x280))+a0L['white'](bB(0x203))+a0L[bB(0x226)](bB(0x17a))),await a4(0x2*-0xdf5+0xf09*-0x2+0x3cb8),a0)return;if(console[bB(0x1ca)](a0L[bB(0x298)]('\x20\x20\x20\x20\x20▣\x20')+a0L[bB(0x12b)]('Hack\x20the\x20AI\x27s\x20guardrails')+a0L[bB(0x226)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20(ctf4ai)')),await a4(-0x3a5+-0x5*0x397+-0x2*-0xc8e),a0)return;if(console[bB(0x1ca)](),console['log'](a0L[bB(0x31e)][bB(0x12b)](bB(0xf8))+a0L[bB(0x31e)][bB(0x1ab)]('IS')+a0L[bB(0x31e)][bB(0x12b)](bB(0x328))),console['log'](),await a4(0xaed*-0x3+-0x3bb*0x7+-0x818*-0x8),a0)return;if(console[bB(0x1ca)](a0L['gray'](bB(0x11a))),await a4(-0x23*0x9b+0x2*-0x6be+0x243d),a0)return;if(console['log'](a0L[bB(0x226)]('\x20\x20\x20·\x2015\x20languages,\x20real-time\x20AI\x20translation')),await a4(0x3*-0xa39+0x1998+-0x1*-0x6a3),a0)return;if(console[bB(0x1ca)](a0L[bB(0x226)]('\x20\x20\x20·\x2015,000+\x20concurrent\x20participants')),await a4(-0x20e5+-0x49a+-0x1*-0x289f),a0)return;console[bB(0x1ca)](),console['log'](a0L[bB(0x31e)][bB(0x348)](bB(0x81))),await a4(0x118c*-0x1+0xa4f+0x16dd);}finally{((()=>{const bC=bB;if(a3){a1[bC(0x9c)](bC(0x220),a2);try{a1['setRawMode'](!(0x1*0x1981+-0x6*0x6d+0x216*-0xb));}catch{}a1['pause']();}})()),console[bB(0xe2)]();}}()),a0X({'demoIntroSeen':!(0x25bd*0x1+-0x2599+-0x4*0x9)})),console[bA(0x1ca)](),console[bA(0x1ca)](a0L[bA(0x12b)]('\x20\x20Demo:\x20')+a0L[bA(0x226)](H+bA(0x9b)+J+bA(0x268))),console[bA(0x1ca)](a0L['gray'](bA(0xb1))+a0L[bA(0x348)](bA(0x353))+a0L[bA(0x226)](bA(0x2fb))+a0L[bA(0x348)]('back')+a0L[bA(0x226)](bA(0x15f))),await new Promise(a0=>{const bD=bA;process[bD(0x19e)]['write'](a0L[bD(0x31e)][bD(0x1ab)]('\x20\x20Press\x20Enter\x20to\x20begin...\x20'));const a1=!!process[bD(0x2f8)][bD(0x18d)]&&process[bD(0x2f8)][bD(0x178)];process[bD(0x2f8)][bD(0x18d)]&&process[bD(0x2f8)][bD(0x11d)]&&process[bD(0x2f8)][bD(0x11d)](!(0x19*-0x8e+0x1963+-0x10c*0xb));const a2=a3=>{const bE=bD,a4=a3[bE(0x27e)]();(a4['includes']('\x0a')||a4[bE(0x80)]('\x0d'))&&(process['stdin'][bE(0x9c)]('data',a2),process['stdin'][bE(0x18d)]&&process['stdin']['setRawMode']&&process['stdin'][bE(0x11d)](a1),process[bE(0x19e)][bE(0x287)]('\x0a'),a0());};process['stdin']['on'](bD(0x220),a2),process['stdin'][bD(0x1df)]();});const K=F(H),L=G(),{getDemoState:Q,clearExamState:V}=await import(bA(0x151));Q()&&V(bA(0x1eb)),console['log'](),a0ae('ICOA\x20Demo\x20Exam\x20—\x20Free\x20Practice'),console[bA(0x1ca)](),console[bA(0x1ca)](a0L[bA(0x12b)](bA(0xed))),console[bA(0x1ca)](a0L['white']('\x20\x20'+H+bA(0x7e)+J+bA(0x101)));const W=a0a3();if(W[bA(0x28b)]>0x242e+-0x5cb*0x1+0x3*-0xa21){const a0=W['bestPercentage'],a1=a0>=-0x8f4*0x2+0xe53+0x3e5*0x1?a0L[bA(0x2b1)]:a0>=-0xcc*0xe+-0x29*-0xf+0xb1*0xd?a0L[bA(0x1ab)]:a0L[bA(0x12b)];console[bA(0x1ca)](),console[bA(0x1ca)](a0L[bA(0x226)]('\x20\x20Your\x20best:\x20')+a1(W[bA(0x1a1)]+'/'+H+'\x20('+a0+'%)')+a0L[bA(0x226)]('\x20\x20·\x20\x20'+W[bA(0x28b)]+bA(0x34f)));}console[bA(0x1ca)](),console[bA(0x1ca)](a0L[bA(0x226)]('\x20\x20─────────────────────────────────────────')),console[bA(0x1ca)](a0L['white']('\x20\x20'+a0ai(bA(0x35b)))),console[bA(0x1ca)](a0L[bA(0x1ab)](bA(0x2f9))+a0L[bA(0x226)](bA(0x20c)+a0ai(bA(0xfc)))),console['log'](a0L[bA(0x1ab)](bA(0x2de))+a0L['gray']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a0ai(bA(0x2e7)))),console[bA(0x1ca)](a0L[bA(0x1ab)](bA(0x233))+a0L[bA(0x226)](bA(0x2f2))+a0L[bA(0x1ab)]('prev')+a0L['gray'](bA(0x31c)+a0ai('htpNav'))),console[bA(0x1ca)](a0L[bA(0x1ab)]('\x20\x20\x20\x20more\x20help')+a0L[bA(0x226)](bA(0x14d)+a0ai(bA(0x157)))),console[bA(0x1ca)](a0L[bA(0x1ab)](bA(0x1e7))+a0L[bA(0x226)](bA(0x8f)+a0ai(bA(0x2b9)))),console[bA(0x1ca)](a0L[bA(0x1ab)](bA(0x1d6))+a0L['gray']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a0ai(bA(0x2f1)))),console[bA(0x1ca)](a0L[bA(0x226)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20es\x20·\x20zh\x20·\x20ja\x20·\x20ko\x20·\x20ar\x20·\x20fr\x20·\x20pt')),console[bA(0x1ca)](a0L[bA(0x226)](bA(0x25c))),console[bA(0x1ca)](a0L[bA(0x226)](bA(0x336))),console[bA(0x1ca)]();const {getConfig:X}=await import(bA(0x16c)),Y=X()['language']||'en';'en'===Y?(console[bA(0x1ca)](a0L[bA(0x226)](bA(0x173))),console[bA(0x1ca)](a0L[bA(0x226)]('\x20\x20lang\x20es\x20(Español)\x20·\x20lang\x20zh\x20(中文)\x20·\x20lang\x20ko\x20(한국어)\x20·\x20lang\x20ja\x20(日本語)')),console[bA(0x1ca)](a0L['gray'](bA(0x193)))):console[bA(0x1ca)](a0L['green'](bA(0x20e)+Y)),console[bA(0x1ca)](),console[bA(0x1ca)](a0L['white']('\x20\x20Starting\x20exam...'));const Z={...L,'startedAt':new Date()[bA(0x246)]()};console[bA(0x1ca)](),N(-0x1348+-0x13d6+-0x138f*-0x2,bA(0x2d1)),await q(-0x7f5+-0xa3b*0x1+0x4be*0x4),N(-0x1e28+0x1711*0x1+0x73f,'Shuffling\x20options...'),await q(0x624+0xee1+-0x143d),N(0xd6*-0x1+0x7*0x403+-0x1aef,'Almost\x20ready...'),await q(-0x25d9+-0x225b+-0x34f*-0x16),N(0x155c+-0x626+-0xed2,bA(0x32a)),console[bA(0x1ca)](),console[bA(0x1ca)](),a0Z({'session':Z,'questions':K,'answers':{},'_helpMax':0x5}),a0af(bA(0x1f5),String(H)),a0af(bA(0x216),'No\x20time\x20limit'),U(K[-0x23c4+-0x1470+-0x1c1a*-0x2]);}),B['command']('demo-retry')[bb(0x1c3)](bb(0x34b))[bb(0xb8)](async()=>{const bF=bb;a0a8(bF(0x1c0)),E(bF(0xcf));const {getLocalizedDemoSession:F}=await import(bF(0x23f)),G=a0a6();if(!G||0x2531*0x1+-0x3f9*-0x2+-0x2d23===G['length'])return console['log'](),console[bF(0x1ca)](a0L[bF(0x1ab)]('\x20\x20No\x20wrong\x20questions\x20to\x20retry.\x20Run\x20')+a0L[bF(0x31e)][bF(0x348)](bF(0x15c))+a0L['yellow']('\x20first.')),void console[bF(0x1ca)]();const H=a0Y();if(H){if(bF(0x1eb)!==H[bF(0x10e)][bF(0x90)])return a0ab(bF(0x306)+H[bF(0x10e)][bF(0x301)]+bF(0x245)),void a0ac(bF(0x2ce));a0a0();}const J=V=>{const bG=bF;if(!V['answer'])return V;const W=V['options'][V[bG(0x96)]],X=['A','B','C','D'][bG(0x1fc)](a2=>V[bG(0x7b)][a2]);for(let a2=X[bG(0x1b6)]-(-0x8b2+-0x7*-0x161+0xf4*-0x1);a2>0x4*-0x991+0x262*0xd+0x74a;a2--){const a3=Math[bG(0x15e)](Math[bG(0x7c)]()*(a2+(-0x1cd0+-0x63+0x1d34)));[X[a2],X[a3]]=[X[a3],X[a2]];}const Y={};Y['A']=X[0x2419+-0x1f75+-0x4a4],Y['B']=X[0x1a65+0x7d+-0x1ae1],Y['C']=X[-0x307+0x1*-0x1118+0x1421],Y['D']=X[-0xe63+0x465+-0xd*-0xc5];const Z=Y,a0=['A','B','C','D'][bG(0x1ff)](a4=>Z[a4]===W),a1={...V};return a1['options']=Z,a1[bG(0x96)]=a0,a1;},K=G[bF(0x1fc)]((V,W)=>({...J(V),'number':W+(-0x7*0x247+0x1cef+-0x19*0x85)})),L=F(),Q={...L,'examName':L['examName']+bF(0x2cc),'questionCount':K[bF(0x1b6)],'startedAt':new Date()[bF(0x246)]()};console[bF(0x1ca)](),a0ae(bF(0x32d)),console[bF(0x1ca)](),console[bF(0x1ca)](a0L[bF(0x12b)](bF(0x1a0)+K[bF(0x1b6)]+'\x20question'+(0x1*0x1d2e+-0x2b9+-0x2*0xd3a===K[bF(0x1b6)]?'':'s')+bF(0xe9))),console['log'](a0L[bF(0x226)](bF(0x227))),console[bF(0x1ca)](),a0Z({'session':Q,'questions':K,'answers':{}}),a0af(bF(0x1f5),String(K[bF(0x1b6)])),a0af(bF(0x216),'No\x20time\x20limit'),U(K[0x118+-0x951+-0x1*-0x839]);}),B['command'](bb(0x2ec))[bb(0x1c3)]('Install\x20Python\x20environment\x20for\x20practical\x20exam\x20questions')[bb(0xb8)](async()=>{const bH=bb;if(a0a8(bH(0x30f)),0x2ca+-0x61e+0x354===a0a3()[bH(0x28b)])return console['log'](),a0ab(bH(0x1cd)),console[bH(0x1ca)](a0L[bH(0x226)](bH(0x161))+a0L[bH(0x31e)][bH(0x348)](bH(0x335))),void console[bH(0x1ca)]();const K=a0ak();if(K){const a4=K[bH(0x117)]['length'],a5=a4+K[bH(0x15d)][bH(0x1b6)];if(a4>=0x1c4+-0x11a7*-0x1+-0x1363||(a5>-0x263b*0x1+-0x22ed+0x4928?a4/a5:-0xf0d+0x24f9*-0x1+-0x1*-0x3406)>=0x18d+0x166e+-0x17fb+0.7)return console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x2b1)](bH(0x320))+a0L['green'](bH(0x30a))),console['log'](a0L[bH(0x226)](bH(0x201)+K[bH(0x23a)][bH(0xf7)]('T')[-0x11e5*0x1+0x1d39*0x1+-0xb54])),console[bH(0x1ca)](a0L[bH(0x226)](bH(0x2ed)+K[bH(0x277)])),console[bH(0x1ca)](a0L['gray'](bH(0x2f3)+a4+bH(0x202))),K[bH(0x15d)][bH(0x1b6)]>0x15a9+0x2139+0x232*-0x19&&console[bH(0x1ca)](a0L['yellow']('\x20\x20\x20\x20Failed:\x20'+K[bH(0x15d)][bH(0xdf)](',\x20'))),console['log'](),console[bH(0x1ca)](a0L[bH(0x12b)](bH(0x1f0))+a0L['bold'][bH(0x348)](bH(0x342))),console[bH(0x1ca)](a0L[bH(0x226)]('\x20\x20Or\x20type\x20')+a0L[bH(0x31e)]['cyan'](bH(0x215))+a0L[bH(0x226)](bH(0x242))),void console['log']();console[bH(0x1ca)](),console['log'](a0L[bH(0x1ab)]('\x20\x20Previous\x20setup\x20had\x20only\x20'+a4+'/'+a5+'\x20packages.\x20Retrying...')),console['log']();}console['log'](),a0ae('Exam\x20Environment\x20Setup'),console[bH(0x1ca)](),console['log'](a0L[bH(0x12b)]('\x20\x20Installing\x20Python\x20packages\x20for\x20practical\x20questions.')),console[bH(0x1ca)](a0L[bH(0x226)](bH(0xf9))),console['log']();const L=(a6,a7)=>{const bI=bH,a8=process[bI(0x137)];console[bI(0x1ca)](),a0aa('missing'===a6?'Python\x203\x20not\x20found.':bI(0x22c)+a7+'\x20found,\x20but\x203.10+\x20required\x20for\x20the\x20exam.'),console['log'](),console[bI(0x1ca)](a0L[bI(0x31e)][bI(0x12b)](bI(0x16d))),console['log'](),bI(0x8d)===a8?(console[bI(0x1ca)](a0L[bI(0x1ab)](bI(0x2d3))),console[bI(0x1ca)](a0L[bI(0x2b1)](bI(0x9a))),console['log'](),console[bI(0x1ca)](a0L[bI(0x226)](bI(0x25a))),console[bI(0x1ca)](a0L[bI(0x226)]('\x20\x20\x20\x20https://www.python.org/downloads/macos/'))):bI(0x279)===a8?(console[bI(0x1ca)](a0L[bI(0x1ab)](bI(0x68))),console[bI(0x1ca)](a0L['green']('\x20\x20\x20\x20sudo\x20add-apt-repository\x20ppa:deadsnakes/ppa\x20-y')),console[bI(0x1ca)](a0L[bI(0x2b1)](bI(0x359))),console['log'](a0L[bI(0x2b1)]('\x20\x20\x20\x20sudo\x20apt\x20install\x20-y\x20python3.12\x20python3.12-venv\x20python3.12-distutils')),console[bI(0x1ca)](a0L['gray']('\x20\x20\x20\x20sudo\x20update-alternatives\x20--install\x20/usr/bin/python3\x20python3\x20/usr/bin/python3.12\x201')),console[bI(0x1ca)](),console[bI(0x1ca)](a0L[bI(0x1ab)]('\x20\x20Fedora\x20/\x20RHEL:')),console[bI(0x1ca)](a0L['green'](bI(0x1cc))),console['log'](),console[bI(0x1ca)](a0L[bI(0x1ab)]('\x20\x20Arch\x20/\x20Manjaro:')),console[bI(0x1ca)](a0L[bI(0x2b1)](bI(0xa1)))):'win32'===a8?(console[bI(0x1ca)](a0L[bI(0x1ab)](bI(0x2e6))),console['log'](a0L['green'](bI(0x27b))),console[bI(0x1ca)](),console[bI(0x1ca)](a0L[bI(0x226)](bI(0x25a))),console[bI(0x1ca)](a0L[bI(0x226)](bI(0x35f)))):console[bI(0x1ca)](a0L[bI(0x226)](bI(0x1f3))),console['log'](),console[bI(0x1ca)](a0L[bI(0x12b)](bI(0x2d4))+a0L[bI(0x31e)][bI(0x348)](bI(0x30f))),console[bI(0x1ca)]();},Q=bH(0x75);let V='';try{const a6={};a6[bH(0x2eb)]='utf-8',a6[bH(0x21e)]=0x1388,V=a0an(Q+bH(0x1bc),a6)[bH(0x217)]()[bH(0x2a4)](bH(0x22c),'');const a7=V[bH(0xf7)]('.')[bH(0x1fc)](Number);if(a7[0x67b+0x31*0x1+-0x6ac]<0x14ed+0x17d7+-0x2cc1||-0x4f*-0x20+-0xa37+0x5a===a7[-0x16b5*0x1+0x1974+-0x2bf]&&a7[0x1590+-0x2b*-0x20+0x7*-0x3d9]<0x13*-0x19d+-0x3d*-0x38+-0x1159*-0x1)return void L('too_old',V);0xee6+0x2376+-0x1*0x3259===a7[-0x8b8+0x2*0x874+0x20c*-0x4]&&a7[-0x8*-0x48b+0x6d4+-0x2b2b]<-0xab2+0x1ee6+0x1e*-0xac?console[bH(0x1ca)](a0L[bH(0x2b1)]('\x20\x20✓\x20Python\x20'+V)+a0L['gray'](bH(0x27d))):console[bH(0x1ca)](a0L[bH(0x2b1)](bH(0x209)+V));}catch{return void L(bH(0xff));}try{const a8={};a8[bH(0x282)]='ignore',a8[bH(0x21e)]=0x1388,(a0an(Q+'\x20-m\x20pip\x20--version',a8),console[bH(0x1ca)](a0L['green']('\x20\x20✓\x20pip\x20available')));}catch{console[bH(0x1ca)](a0L[bH(0x1ab)]('\x20\x20⚠\x20pip\x20not\x20found,\x20trying\x20ensurepip...'));try{const a9={};a9[bH(0x282)]=bH(0x24b),a9[bH(0x21e)]=0x7530,(a0an(Q+bH(0x2cf),a9),console['log'](a0L['green'](bH(0x134))));}catch{a0aa('Could\x20not\x20install\x20pip\x20—\x20pip\x20is\x20not\x20installed\x20on\x20your\x20system.'),console[bH(0x1ca)]();const {isInWSL:aa,isNativeWindowsCmd:ab}=await import(bH(0x1de)),{execFileSync:ac}=await import(bH(0xc8)),ad=aa(),ae=ab(),af='linux'===process[bH(0x137)]&&!ad,ag='darwin'===process[bH(0x137)];let ah=bH(0x2d8);if(af||ad)try{const {readFileSync:ak}=await import(bH(0x128)),al=ak(bH(0x146),bH(0x2cd)),am=(al['match'](/^ID="?([^"\n]+)/m)||[])[-0x397*0x8+-0x2c0+0x1f79]||'',an=(al['match'](/^VERSION_ID="?([^"\n]+)/m)||[])[0x1*0x7f1+0x2590+-0x2d80]||'';bH(0x289)===am?ah=bH(0x27a)+an+(ad?bH(0x17e):''):am&&(ah=''+am+(an?'\x20'+an:'')+(ad?bH(0x17e):''));}catch{}let ai=!(-0x850+-0x9a5+-0x1*-0x11f6);if(ag)try{const ao={};ao['stdio']=bH(0x24b),ao[bH(0x21e)]=0x7d0,(ac(bH(0x1d3),[bH(0x2d5)],ao),ai=!(-0x1*0x21eb+-0xea1+0x34*0xef));}catch{ai=!(0x3e*0x21+-0xd*0x2a1+0x1a30);}const aj=ae?'⚠\x20\x20EXIT\x20icoa\x20first\x20—\x20installer\x20cannot\x20run\x20inside\x20the\x20prompt':bH(0x205);return console['log'](a0L[bH(0x31e)][bH(0x1ab)](bH(0x182))),console['log'](a0L[bH(0x31e)][bH(0x1ab)]('\x20\x20'+aj)),console[bH(0x1ca)](a0L[bH(0x31e)][bH(0x1ab)](bH(0x182))),console[bH(0x1ca)](),af||ad?(console[bH(0x1ca)](a0L[bH(0x12b)](bH(0xa3))+a0L[bH(0x348)](ah)),console[bH(0x1ca)](a0L[bH(0x226)](bH(0x147))),console['log'](),console[bH(0x1ca)](a0L[bH(0x31e)]['white'](bH(0x1e2))),console['log'](),console[bH(0x1ca)](a0L[bH(0x12b)](bH(0xa7))+a0L[bH(0x31e)][bH(0x348)](bH(0x9e))+a0L['white'](bH(0x30b))),console[bH(0x1ca)](),console['log'](a0L['white']('\x20\x20\x20\x202.\x20In\x20your\x20shell,\x20run:')),console[bH(0x1ca)](),console[bH(0x1ca)](bH(0x20c)+a0L[bH(0x31e)][bH(0x348)]('sudo\x20apt\x20update')),console[bH(0x1ca)]('\x20\x20\x20\x20\x20\x20\x20'+a0L[bH(0x31e)][bH(0x348)](bH(0x11b))),console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x12b)]('\x20\x20\x20\x203.\x20Restart\x20icoa\x20and\x20re-run\x20exam\x20setup:')),console[bH(0x1ca)](),console[bH(0x1ca)](bH(0x20c)+a0L[bH(0x31e)][bH(0x348)](bH(0x32c))),console['log'](bH(0x20c)+a0L[bH(0x226)](bH(0x120))+'\x20'+a0L[bH(0x31e)][bH(0x348)](bH(0x30f)))):ag?(console[bH(0x1ca)](a0L[bH(0x12b)](bH(0xa3))+a0L[bH(0x348)](bH(0x240))),console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x31e)][bH(0x12b)](bH(0x1e2))),console['log'](),console[bH(0x1ca)](a0L[bH(0x12b)](bH(0xa7))+a0L[bH(0x31e)][bH(0x348)]('quit')+a0L['white'](bH(0x1b2))),console[bH(0x1ca)](),ai?(console[bH(0x1ca)](a0L['white'](bH(0x327))),console[bH(0x1ca)](),console[bH(0x1ca)](bH(0x20c)+a0L['bold'][bH(0x348)](bH(0x2d6))),console[bH(0x1ca)](bH(0x20c)+a0L[bH(0x31e)][bH(0x348)](bH(0x7f)))):(console['log'](a0L[bH(0x12b)](bH(0x17c))+a0L[bH(0x31e)][bH(0x1ab)](bH(0x2d5))+a0L[bH(0x12b)]('):')),console[bH(0x1ca)](),console['log']('\x20\x20\x20\x20\x20\x20\x20'+a0L[bH(0x31e)]['cyan'](bH(0x1d8))),console[bH(0x1ca)](),console[bH(0x1ca)](a0L['white'](bH(0xc1))),console[bH(0x1ca)](),console[bH(0x1ca)](bH(0x20c)+a0L[bH(0x31e)]['cyan']('brew\x20install\x20python@3.12'))),console['log'](),console[bH(0x1ca)](a0L[bH(0x12b)](bH(0xbf))),console['log'](),console[bH(0x1ca)](bH(0x20c)+a0L[bH(0x31e)][bH(0x348)](bH(0x32c))),console['log']('\x20\x20\x20\x20\x20\x20\x20'+a0L['gray'](bH(0x120))+'\x20'+a0L[bH(0x31e)]['cyan']('exam\x20setup'))):ae?(console[bH(0x1ca)](a0L[bH(0x12b)]('\x20\x20Detected:\x20')+a0L[bH(0x348)](bH(0x2e4))),console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x31e)][bH(0x1ab)](bH(0x1e0))),console['log'](a0L[bH(0x226)](bH(0x18e))),console['log'](a0L[bH(0x226)](bH(0xbe))),console[bH(0x1ca)](a0L[bH(0x226)]('\x20\x20far\x20more\x20smoothly\x20inside\x20WSL2\x20Ubuntu.')),console[bH(0x1ca)](),console['log'](a0L[bH(0x31e)]['white'](bH(0x263))),console[bH(0x1ca)](),console['log'](a0L[bH(0x12b)]('\x20\x20\x20\x201.\x20Type\x20')+a0L['bold'][bH(0x348)](bH(0x9e))+a0L[bH(0x12b)](bH(0x1b2))),console[bH(0x1ca)](a0L['white'](bH(0x20b))),console['log'](),console[bH(0x1ca)](bH(0x20c)+a0L[bH(0x31e)][bH(0x348)](bH(0x28f))),console[bH(0x1ca)](),console[bH(0x1ca)](a0L['gray'](bH(0x244))),console[bH(0x1ca)](a0L[bH(0x12b)](bH(0x26f))),console['log'](),console[bH(0x1ca)](bH(0x20c)+a0L[bH(0x31e)][bH(0x348)](bH(0x14b))),console[bH(0x1ca)]('\x20\x20\x20\x20\x20\x20\x20'+a0L['bold'][bH(0x348)](bH(0x156))),console[bH(0x1ca)](bH(0x20c)+a0L[bH(0x31e)][bH(0x348)](bH(0x2c2))),console[bH(0x1ca)](bH(0x20c)+a0L['bold'][bH(0x348)](bH(0x32c))),console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x226)](bH(0x10c))),console[bH(0x1ca)](),console[bH(0x1ca)](a0L['white']('\x20\x20\x20\x201.\x20Type\x20')+a0L[bH(0x31e)][bH(0x348)](bH(0x9e))+a0L[bH(0x12b)](bH(0x1b2))),console[bH(0x1ca)](a0L[bH(0x12b)](bH(0x2f0))),console['log'](),console[bH(0x1ca)](bH(0x20c)+a0L['bold'][bH(0x348)](bH(0x28d))),console['log'](),console[bH(0x1ca)](a0L[bH(0x226)]('\x20\x20\x20\x20\x20\x20\x20(Or\x20download\x20from\x20python.org\x20and\x20CHECK\x20both\x20\x22Add\x20Python\x20to')),console[bH(0x1ca)](a0L[bH(0x226)]('\x20\x20\x20\x20\x20\x20\x20\x20PATH\x22\x20+\x20\x22Install\x20pip\x22\x20during\x20the\x20installer.)')),console['log'](a0L['white'](bH(0x94))),console['log'](),console[bH(0x1ca)](bH(0x20c)+a0L[bH(0x31e)][bH(0x348)](bH(0x32c))),console['log'](bH(0x20c)+a0L['gray']('icoa>')+'\x20'+a0L[bH(0x31e)][bH(0x348)](bH(0x30f)))):(console[bH(0x1ca)](a0L[bH(0x12b)]('\x20\x20Detected:\x20unrecognized\x20platform\x20(')+a0L[bH(0x348)](process['platform'])+a0L[bH(0x12b)](')')),console['log'](),console[bH(0x1ca)](a0L['gray'](bH(0x352))),console[bH(0x1ca)](bH(0x20c)+a0L[bH(0x31e)][bH(0x348)](bH(0x32c))),console['log'](bH(0x20c)+a0L[bH(0x226)]('icoa>')+'\x20'+a0L[bH(0x31e)][bH(0x348)](bH(0x30f)))),console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x226)]('\x20\x20Stuck?\x20Email\x20your\x20selection\x20coordinator\x20with\x20the\x20screenshot\x20above.')),void console[bH(0x1ca)]();}}const W={};W[bH(0x296)]=bH(0x8c),W[bH(0x1db)]='Crypto',W[bH(0x264)]='z3',W['pillow']=bH(0x210),W[bH(0x1e3)]=bH(0xfd),W[bH(0x28e)]=bH(0x76);const X=[bH(0x1e3),bH(0xf4),bH(0x363),'beautifulsoup4',bH(0x274),bH(0x1ad),bH(0x196),bH(0x238),bH(0x264),'pycryptodome',bH(0x28e),bH(0xc4),'regex'],Y=W;console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x12b)](bH(0x150)+X['length']+bH(0x121))),console[bH(0x1ca)]();let Z='';try{const ap={};ap[bH(0x2eb)]=bH(0x2cd),ap[bH(0x21e)]=0x2710,a0an(Q+bH(0x77),ap);}catch(aq){const ar=String(aq?.[bH(0x19e)]||aq?.[bH(0x26d)]||aq?.[bH(0x32f)]||'');/externally-managed-environment|break-system-packages/i['test'](ar)&&(Z=bH(0x366),console['log'](a0L['yellow'](bH(0x291))),console[bH(0x1ca)]());}const a0=V[bH(0xf7)]('.')[bH(0x1fc)](Number);0x67d+-0x713+0x99===a0[0x1*0x1df5+-0xb30*-0x2+-0x1*0x3455]&&a0[0x13f1+-0x5b6+-0x25f*0x6]>=-0xe6*-0x1+0x20b4+-0x7*0x4cb&&(console[bH(0x1ca)](a0L['yellow'](bH(0x72)+V+bH(0x127))),console['log'](a0L[bH(0x226)](bH(0x1b5))),console['log'](a0L[bH(0x226)](bH(0x294))),'linux'===process[bH(0x137)]&&(console[bH(0x1ca)](a0L['green'](bH(0x2bf))),console[bH(0x1ca)](a0L['green']('\x20\x20\x20\x20\x20\x20sudo\x20update-alternatives\x20--install\x20/usr/bin/python3\x20python3\x20/usr/bin/python3.12\x201'))),console[bH(0x1ca)]());const a1=[],a2=[];let a3='';for(const as of X)try{a0an(Q+bH(0x15a)+as+'\x22\x20'+Z+'\x20--quiet\x202>&1',{'encoding':bH(0x2cd),'timeout':0x2bf20,'stdio':bH(0x326)}),a0an(Q+bH(0x176)+(Y[as]||as)+'\x22',{'stdio':bH(0x24b),'timeout':0x2710});let at='';try{const au=a0an(Q+bH(0x12f)+as+bH(0x299),{'encoding':bH(0x2cd),'timeout':0x1388})['match'](/^Version:\s*(.+)$/m);au&&(at=au[-0x523+-0xebb+0x13df][bH(0x217)]());}catch{}console[bH(0x1ca)](a0L['green'](bH(0x320)+as)+(at?a0L['gray']('\x20('+at+')'):'')),a1[bH(0x10f)](at?as+'=='+at:as);}catch(av){const aw=String(av?.['stdout']||av?.['stderr']||av?.[bH(0x32f)]||'')[bH(0x284)](-(-0x1*-0x24f1+0x6fd*-0x4+-0x76d)),ax=aw[bH(0xf7)]('\x0a')[bH(0x1b0)](ay=>ay[bH(0x217)]())[bH(0x284)](-(0x2*-0x162+0x4a3*0x7+-0x1*0x1daf))['join'](bH(0x1d0))[bH(0x284)](-0x1bd4+-0x1a8+0x22*0xde,0x1c*0x9d+0x27a+-0x132e*0x1);console[bH(0x1ca)](a0L[bH(0x298)]('\x20\x20✗\x20'+as)+a0L[bH(0x226)]('\x20\x20'+ax)),a2[bH(0x10f)]({'pkg':as,'error':ax}),a3||(a3=aw);}-0x1*-0xf1a+0x894+0x1*-0x17ae===a1[bH(0x1b6)]&&a3&&(console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x1ab)](bH(0x198))),console[bH(0x1ca)](a0L['gray']('\x20\x20'+a3[bH(0xf7)]('\x0a')[bH(0x284)](-(-0x7*0x4c1+0x131a+-0x1*-0xe33))['join'](bH(0x351))))),a0al({'completedAt':new Date()[bH(0x246)](),'pythonVersion':V,'installedPackages':a1,'failedPackages':a2[bH(0x1fc)](ay=>ay[bH(0x1be)])}),console['log'](),0x12c5+0x24f5*0x1+-0x37ba===a2[bH(0x1b6)]?a0a9(bH(0x2ea)+X['length']+bH(0x166)):0x1*-0x103a+-0x2248+0x3282===a1[bH(0x1b6)]?(a0aa('Setup\x20failed\x20—\x200\x20of\x20'+X[bH(0x1b6)]+bH(0x166)),console[bH(0x1ca)](),console[bH(0x1ca)](a0L['yellow'](bH(0x23d))),-0x2c2*-0x6+-0x220a+-0x1181*-0x1===a0[0x112*0x11+-0x37*-0xa1+0x34c9*-0x1]&&a0[0x1322+-0x23*-0x101+-0x97*0x5c]>=0x2*-0xa7b+0x527*-0x5+0x2ec6?(console['log'](a0L['gray'](bH(0x266))),console[bH(0x1ca)](a0L[bH(0x226)](bH(0x24f)))):(console[bH(0x1ca)](a0L[bH(0x226)](bH(0x1c1))),console[bH(0x1ca)](a0L[bH(0x226)](bH(0x132))+a0L[bH(0x348)](Q+bH(0x361))+a0L[bH(0x226)](bH(0x9d))),console[bH(0x1ca)](a0L['gray'](bH(0x1c7)))),console[bH(0x1ca)](),console['log'](a0L[bH(0x12b)]('\x20\x20Rerun\x20when\x20fixed:\x20')+a0L['bold'][bH(0x348)](bH(0x30f)))):a0ab(a1[bH(0x1b6)]+'/'+X['length']+bH(0x187)+a2['length']+bH(0x1fb)+a2[bH(0x1fc)](ay=>ay['pkg'])['join'](',\x20')),console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x348)](bH(0x6b))),console[bH(0x1ca)](a0L['bold'][bH(0x12b)](bH(0x169))),console['log'](a0L[bH(0x348)](bH(0x6b))),console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x31e)][bH(0x1ab)]('\x20\x20Method\x201:\x20One-liner')+a0L[bH(0x226)](bH(0x2a8))),console['log'](a0L[bH(0x12b)](bH(0x364))),console[bH(0x1ca)](a0L[bH(0x2b1)](bH(0x1dd))),console[bH(0x1ca)](a0L[bH(0x226)](bH(0x278))),console[bH(0x1ca)](),console['log'](a0L[bH(0x31e)][bH(0x1ab)](bH(0x356))+a0L[bH(0x226)](bH(0x2dc))),console[bH(0x1ca)](a0L[bH(0x12b)](bH(0x365))),console[bH(0x1ca)](a0L[bH(0x2b1)](bH(0x2a2))),console['log'](a0L[bH(0x226)](bH(0xcc))),console[bH(0x1ca)](a0L['gray'](bH(0x74))),console['log'](a0L[bH(0x226)](bH(0x259))),console[bH(0x1ca)](a0L[bH(0x226)](bH(0x1a9))),console[bH(0x1ca)](a0L[bH(0x226)]('\x20\x20\x20\x20>>>\x20exit()')),console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x31e)]['yellow'](bH(0x1a7))+a0L['gray'](bH(0x2ae))),console[bH(0x1ca)](a0L[bH(0x12b)](bH(0xf6))),console[bH(0x1ca)](a0L[bH(0x2b1)](bH(0x2af))),console[bH(0x1ca)](a0L['gray'](bH(0x2e5))),console[bH(0x1ca)](a0L[bH(0x226)](bH(0x102))),console[bH(0x1ca)](a0L[bH(0x226)]('\x20\x20\x20\x20key\x20=\x20xor(ct[:5],\x20b\x22ICOA{\x22)')),console[bH(0x1ca)](a0L['gray']('\x20\x20\x20\x20print(xor(ct,\x20key).decode())')),console[bH(0x1ca)](a0L[bH(0x2b1)](bH(0x1d5))),console['log'](a0L[bH(0x2b1)](bH(0x73))),console[bH(0x1ca)](),console[bH(0x1ca)](a0L[bH(0x31e)][bH(0x1ab)](bH(0x26b))),console['log'](a0L[bH(0x12b)]('\x20\x20During\x20the\x20exam,\x20type\x20')+a0L[bH(0x31e)]['cyan']('hint')+a0L['white'](bH(0xb2))),console[bH(0x1ca)](a0L[bH(0x226)]('\x20\x20\x20\x20\x22How\x20do\x20I\x20decrypt\x20AES-CBC\x20in\x20Python?\x22')),console[bH(0x1ca)](a0L[bH(0x226)]('\x20\x20\x20\x20\x22Show\x20me\x20how\x20to\x20use\x20struct.unpack\x22')),console[bH(0x1ca)](a0L[bH(0x226)]('\x20\x20\x20\x20AI\x20budget:\x2025K\x20tokens\x20for\x20AI4CTF\x20+\x2025K\x20for\x20CTF4AI')),console[bH(0x1ca)](a0L['cyan'](bH(0x6b))),console['log'](),console['log'](a0L[bH(0x12b)](bH(0x1f0))+a0L[bH(0x31e)][bH(0x348)](bH(0x342))),console[bH(0x1ca)](a0L[bH(0x226)](bH(0x14e))+a0L['bold']['cyan']('back')+a0L['gray']('\x20to\x20return\x20to\x20the\x20main\x20menu.')),console['log']();}),B[bb(0xb8)](()=>{const bJ=bb;a0a8(bJ(0x2e1));const F=a0Y();if(F){a0ae(bJ(0x236)+F[bJ(0x10e)][bJ(0x301)]),O();const J=Object[bJ(0x12a)](F['answers'])['length'];return a0af(bJ(0x100),J+'/'+F[bJ(0x10e)][bJ(0x22e)]+'\x20answered'),console[bJ(0x1ca)](),void console[bJ(0x1ca)](a0L[bJ(0x226)](bJ(0x1c5)));}const G=a0a3(),H=a0ak();console['log'](),a0ae(bJ(0x317)),console[bJ(0x1ca)](),0x1727+-0xe03+-0x4e*0x1e===G[bJ(0x28b)]?(console['log'](a0L[bJ(0x1ab)](bJ(0x8a))+a0L[bJ(0x1ab)](bJ(0x293))),console[bJ(0x1ca)](a0L[bJ(0x226)](bJ(0xee))+a0L[bJ(0x31e)][bJ(0x348)](bJ(0x335)))):(console[bJ(0x1ca)](a0L[bJ(0x2b1)](bJ(0x168))+a0L[bJ(0x2b1)](bJ(0x20a)+G[bJ(0x28b)]+bJ(0x2b4)+(0x38b*-0x1+0x8a*0x37+0xd0d*-0x2!==G[bJ(0x28b)]?'s':'')+')')),H?(console[bJ(0x1ca)](a0L[bJ(0x2b1)](bJ(0x168))+a0L[bJ(0x2b1)](bJ(0x14a))),console[bJ(0x1ca)](a0L['yellow']('\x20\x20○\x20')+a0L[bJ(0x1ab)](bJ(0x175))),console['log'](a0L[bJ(0x226)](bJ(0xee))+a0L[bJ(0x31e)][bJ(0x348)](bJ(0x342)))):(console[bJ(0x1ca)](a0L['yellow'](bJ(0x8a))+a0L[bJ(0x1ab)](bJ(0xec))),console[bJ(0x1ca)](a0L[bJ(0x226)](bJ(0xee))+a0L[bJ(0x31e)][bJ(0x348)](bJ(0x30f))))),console[bJ(0x1ca)]();});}
@@ -1 +1 @@
1
- import chalk from"chalk";import{createInterface as o}from"node:readline";import{spawn as e}from"node:child_process";import{existsSync as r}from"node:fs";import{dirname as n,join as l}from"node:path";import{fileURLToPath as t}from"node:url";import{loadCurriculum as a,loadCurriculumById as s,validateEAToken as i,syncProgress as c}from"../lib/learn-curricula.js";import{getConfig as u}from"../lib/config.js";import{loadLearnState as d,saveLearnState as m,newLearnState as g,updateStreak as y,markCardComplete as p,recordMCQ as f,markPracticalComplete as b,addAchievement as h}from"../lib/learn-state.js";import{renderWelcome as k,renderKnowledgeCard as w,renderMCQCard as v,renderMCQFeedback as C,renderPracticalCard as x,renderPracticalSuccess as P,renderSimDemoCard as _,renderMilestone as j,renderStatus as A}from"../lib/learn-render.js";import{printError as T}from"../lib/ui.js";export function registerLearnCommand(S){S.command("learn <token>").description("Enter learn mode (Embodied AI Security curriculum)").action(async S=>{const E=S.trim().toUpperCase();let $=a(E);if(!$&&/^EA[A-Z0-9]{8}$/i.test(E)){const o=u().ctfdUrl||"https://practice.icoa2026.au";console.log(),console.log(chalk.gray(" Validating EA token..."));const e=await i(E,o);if(!e.ok)return T(`Token validation failed: ${e.message}`),console.log(),console.log(chalk.gray(" Possible causes:")),console.log(chalk.gray(" · Token expired or revoked")),console.log(chalk.gray(" · Network down (check connection)")),console.log(chalk.gray(" · Typo in token")),void console.log();if(console.log(chalk.green(` ✓ Token valid · curriculum: ${e.curriculumId} · status: ${e.status}`)),$=await s(e.curriculumId||"LEARNDEMO01"),!$)return T(`Curriculum '${e.curriculumId}' not bundled in this CLI version.`),void console.log(chalk.gray(" Upgrade with: ")+chalk.bold.cyan("npm install -g icoa-cli@latest"))}if(!$)return T(`Unknown learn token: ${E}`),console.log(),console.log(chalk.gray(" Available tokens:")),console.log(chalk.gray(" ")+chalk.bold.green("LEARNDEMO01")+chalk.gray(" free 10-card demo (anyone can use)")),console.log(chalk.gray(" ")+chalk.bold.yellow("EAxxxxxxxx")+chalk.gray(" full curriculum (issued by team leader)")),console.log(),console.log(chalk.gray(" To get the full curriculum (n=480 cards, PhD-entry), email ")),console.log(chalk.gray(" ")+chalk.cyan("asra@icoa2026.au")+chalk.gray(" or ask your country's team leader.")),void console.log();let q=d(),I=!1;q&&q.token===E?y(q):(q=g(E,$.id,$.totalCards),I=!0),m(q),k($,q,I);const M=o({input:process.stdin,output:process.stdout,terminal:!0}),L=()=>{M.setPrompt(chalk.bold.cyan("learn> ")),M.prompt()};L();let U=null,D=null;const O=[],N=o=>$.cards.find(e=>e.number===o),J=()=>{const o=N(q.currentCard);if(!o)return console.log(),console.log(chalk.gray(" No more cards in this curriculum.")),console.log(chalk.gray(" Type ")+chalk.bold.green("status")+chalk.gray(" for the dashboard or ")+chalk.bold.green("quit")+chalk.gray(" to exit.")),void console.log();switch(o.type){case"knowledge":w(o,$),p(q,o.number),m(q);break;case"mcq":v(o,$),U=o.number;break;case"practical":x(o,$),D=o.number;break;case"sim_demo":_(o,$),p(q,o.number),m(q);break;case"milestone":j(o,$),h(q,o.badge),p(q,o.number),m(q)}};M.on("line",async o=>{const a=o.trim().toLowerCase();if(a){if("menu"===a||"menu confirm"===a){O.length>0&&await Promise.race([Promise.allSettled(O),new Promise(o=>setTimeout(o,3e3))]);const{returnToMainMenu:o}=await import("../lib/menu-nav.js");return void o(M)}if("quit"===a||"exit"===a||"q"===a)return O.length>0&&await Promise.race([Promise.allSettled(O),new Promise(o=>setTimeout(o,5e3))]),console.log(),console.log(chalk.gray(" Saved. See you next session.")),console.log(chalk.gray(" Streak: ")+chalk.yellow(`🔥 ${q.streakDays} day(s)`)),console.log(),void M.close();if("status"===a)return A($,q),void L();if("sim"===a){const o=N(q.currentCard);return o&&"sim_demo"===o.type?(function(o){const a=function(){const o=n(t(import.meta.url)),e=[l(o,"..","..","panda","mujoco-launcher.py"),l(o,"..","..","..","panda","mujoco-launcher.py")];for(const o of e)if(r(o))return o;return null}();if(!a)return console.log(chalk.yellow(" MuJoCo launcher not found.")),console.log(chalk.gray(" Get it from: https://github.com/newaipanda/ICOA_CLI/blob/main/panda/mujoco-launcher.py")),void console.log(chalk.gray(" Or use the sandbox-vla docker image (Phase 3)."));const s={baseline:"baseline",prompt_injected:"prompt_inj",patch_attacked:"patch",modality_confused:"confused"}[o]||"baseline";console.log(chalk.gray(` Launching MuJoCo viewer (scenario: ${s})...`)),console.log(chalk.gray(" Close the window or press ESC to return to learn mode.")),e("python3",[a,s,"--seconds","5"],{stdio:"inherit"}).on("exit",o=>{0!==o?console.log(chalk.yellow(` MuJoCo exited with code ${o} (install: pip install mujoco)`)):console.log(chalk.gray(" Returned from sim."))})}(o.simAction),void L()):(console.log(chalk.gray(" (sim only available on simulation cards)")),void L())}if("bookmark"===a){const o=q.currentCard;return q.bookmarks.includes(o)||q.bookmarks.push(o),m(q),console.log(chalk.gray(` ✓ Card ${o} bookmarked.`)),void L()}if("back"===a)return q.currentCard>1&&(q.currentCard-=1),U=null,D=null,m(q),J(),void L();if(null!==U&&["a","b","c","d"].includes(a)){const o=N(U);if(o&&"mcq"===o.type){const e=a.toUpperCase(),r=e===o.answer;f(q,o.number,{answer:e,correct:r,submittedAt:(new Date).toISOString()}),p(q,o.number),m(q),C(o,e,r,q);const n=u();return O.push(c(E,n.ctfdUrl||"https://practice.icoa2026.au",{card_number:o.number,event_type:"mcq_answered",mcq_answer:e,mcq_correct:r}).catch(()=>{})),U=null,void L()}}if(null!==D){if("done"===a){const o=N(D);if(o&&"practical"===o.type)return b(q,o.number),p(q,o.number),m(q),P(o),D=null,void L()}if("skip"===a)return p(q,D),m(q),console.log(chalk.gray(" Skipped (counts as not completed).")),console.log(),D=null,void L()}if("ok"===a||"next"===a||"continue"===a||"n"===a)return null!==U?(console.log(chalk.yellow(" Please answer the MCQ first (A / B / C / D).")),void L()):null!==D?(console.log(chalk.yellow(" Please type ")+chalk.bold.green("done")+chalk.yellow(" or ")+chalk.bold.yellow("skip")+chalk.yellow(" for the practical.")),void L()):(q.currentCard+=1,m(q),q.currentCard>$.totalCards?(console.log(),console.log(chalk.bold.green(" 🎉 You've reached the end of the demo curriculum!")),console.log(chalk.gray(" Type ")+chalk.bold.green("status")+chalk.gray(" to see your full stats.")),console.log()):J(),void L());console.log(chalk.gray(" Unknown command. Try: ")+chalk.white("ok")+chalk.gray(" / ")+chalk.white("status")+chalk.gray(" / ")+chalk.white("quit")),L()}else L()}),M.on("close",async()=>{O.length>0&&await Promise.race([Promise.allSettled(O),new Promise(o=>setTimeout(o,5e3))]),process.exit(0)}),J(),L()})}
1
+ import chalk from"chalk";import{createInterface as o}from"node:readline";import{spawn as e}from"node:child_process";import{existsSync as r}from"node:fs";import{dirname as n,join as l}from"node:path";import{fileURLToPath as t}from"node:url";import{loadCurriculum as a,loadCurriculumById as s,validateEAToken as c,syncProgress as i}from"../lib/learn-curricula.js";import{getConfig as u}from"../lib/config.js";import{loadLearnState as d,saveLearnState as m,newLearnState as g,updateStreak as y,markCardComplete as p,recordMCQ as f,markPracticalComplete as b,addAchievement as h}from"../lib/learn-state.js";import{renderWelcome as k,renderKnowledgeCard as w,renderMCQCard as x,renderMCQFeedback as v,renderPracticalCard as C,renderPracticalSuccess as A,renderSimDemoCard as E,renderMilestone as P,renderStatus as _}from"../lib/learn-render.js";import{printError as j}from"../lib/ui.js";export function registerLearnCommand(T){T.command("learn [token]").description("Enter learn mode (free if no token; team-issued EAxxxxxxxx for full curriculum)").action(async T=>{T&&T.trim()||(console.log(),console.log(chalk.gray(" No token given — starting free 11-card demo (")+chalk.bold.green("LEARNDEMO01")+chalk.gray(").")),console.log(chalk.gray(" Full curriculum (100/480 cards): ")+chalk.bold.yellow("learn EAxxxxxxxx")+chalk.gray(" — token from your country team leader.")),console.log(),T="LEARNDEMO01");const M=T.trim().toUpperCase();let S=a(M);if(!S&&/^EA[A-Z0-9]{8}$/i.test(M)){const o=u().ctfdUrl||"https://practice.icoa2026.au";console.log(),console.log(chalk.gray(" Validating EA token..."));const e=await c(M,o);if(!e.ok)return j(`Token validation failed: ${e.message}`),console.log(),console.log(chalk.gray(" Possible causes:")),console.log(chalk.gray(" · Token expired or revoked")),console.log(chalk.gray(" · Network down (check connection)")),console.log(chalk.gray(" · Typo in token")),void console.log();if(console.log(chalk.green(` ✓ Token valid · curriculum: ${e.curriculumId} · status: ${e.status}`)),S=await s(e.curriculumId||"LEARNDEMO01"),!S)return j(`Curriculum '${e.curriculumId}' not bundled in this CLI version.`),void console.log(chalk.gray(" Upgrade with: ")+chalk.bold.cyan("npm install -g icoa-cli@latest"))}if(!S)return j(`Unknown learn token: ${M}`),console.log(),console.log(chalk.gray(" Available tokens:")),console.log(chalk.gray(" ")+chalk.bold.green("LEARNDEMO01")+chalk.gray(" free 10-card demo (anyone can use)")),console.log(chalk.gray(" ")+chalk.bold.yellow("EAxxxxxxxx")+chalk.gray(" full curriculum (issued by team leader)")),console.log(),console.log(chalk.gray(" To get the full curriculum (n=480 cards, PhD-entry), email ")),console.log(chalk.gray(" ")+chalk.cyan("asra@icoa2026.au")+chalk.gray(" or ask your country's team leader.")),void console.log();let $=d(),q=!1;$&&$.token===M?y($):($=g(M,S.id,S.totalCards),q=!0),m($),k(S,$,q);const L=o({input:process.stdin,output:process.stdout,terminal:!0}),D=()=>{L.setPrompt(chalk.bold.cyan("learn> ")),L.prompt()};D();let I=null,N=null;const O=[],U=o=>S.cards.find(e=>e.number===o),R=()=>{const o=U($.currentCard);if(!o)return console.log(),console.log(chalk.gray(" No more cards in this curriculum.")),console.log(chalk.gray(" Type ")+chalk.bold.green("status")+chalk.gray(" for the dashboard or ")+chalk.bold.green("quit")+chalk.gray(" to exit.")),void console.log();switch(o.type){case"knowledge":w(o,S),p($,o.number),m($);break;case"mcq":x(o,S),I=o.number;break;case"practical":C(o,S),N=o.number;break;case"sim_demo":E(o,S),p($,o.number),m($);break;case"milestone":P(o,S),h($,o.badge),p($,o.number),m($)}};L.on("line",async o=>{const a=o.trim().toLowerCase();if(a){if("menu"===a||"menu confirm"===a){O.length>0&&await Promise.race([Promise.allSettled(O),new Promise(o=>setTimeout(o,3e3))]);const{returnToMainMenu:o}=await import("../lib/menu-nav.js");return void o(L)}if("quit"===a||"exit"===a||"q"===a)return O.length>0&&await Promise.race([Promise.allSettled(O),new Promise(o=>setTimeout(o,5e3))]),console.log(),console.log(chalk.gray(" Saved. See you next session.")),console.log(chalk.gray(" Streak: ")+chalk.yellow(`🔥 ${$.streakDays} day(s)`)),console.log(),void L.close();if("status"===a)return _(S,$),void D();if("sim"===a){const o=U($.currentCard);return o&&"sim_demo"===o.type?(function(o){const a=function(){const o=n(t(import.meta.url)),e=[l(o,"..","..","panda","mujoco-launcher.py"),l(o,"..","..","..","panda","mujoco-launcher.py")];for(const o of e)if(r(o))return o;return null}();if(!a)return console.log(chalk.yellow(" MuJoCo launcher not found.")),console.log(chalk.gray(" Get it from: https://github.com/newaipanda/ICOA_CLI/blob/main/panda/mujoco-launcher.py")),void console.log(chalk.gray(" Or use the sandbox-vla docker image (Phase 3)."));const s={baseline:"baseline",prompt_injected:"prompt_inj",patch_attacked:"patch",modality_confused:"confused"}[o]||"baseline";console.log(chalk.gray(` Launching MuJoCo viewer (scenario: ${s})...`)),console.log(chalk.gray(" Close the window or press ESC to return to learn mode.")),e("python3",[a,s,"--seconds","5"],{stdio:"inherit"}).on("exit",o=>{0!==o?console.log(chalk.yellow(` MuJoCo exited with code ${o} (install: pip install mujoco)`)):console.log(chalk.gray(" Returned from sim."))})}(o.simAction),void D()):(console.log(chalk.gray(" (sim only available on simulation cards)")),void D())}if("bookmark"===a){const o=$.currentCard;return $.bookmarks.includes(o)||$.bookmarks.push(o),m($),console.log(chalk.gray(` ✓ Card ${o} bookmarked.`)),void D()}if("back"===a)return $.currentCard>1&&($.currentCard-=1),I=null,N=null,m($),R(),void D();if(null!==I&&["a","b","c","d"].includes(a)){const o=U(I);if(o&&"mcq"===o.type){const e=a.toUpperCase(),r=e===o.answer;f($,o.number,{answer:e,correct:r,submittedAt:(new Date).toISOString()}),p($,o.number),m($),v(o,e,r,$);const n=u();return O.push(i(M,n.ctfdUrl||"https://practice.icoa2026.au",{card_number:o.number,event_type:"mcq_answered",mcq_answer:e,mcq_correct:r}).catch(()=>{})),I=null,void D()}}if(null!==N){if("done"===a){const o=U(N);if(o&&"practical"===o.type)return b($,o.number),p($,o.number),m($),A(o),N=null,void D()}if("skip"===a)return p($,N),m($),console.log(chalk.gray(" Skipped (counts as not completed).")),console.log(),N=null,void D()}if("ok"===a||"next"===a||"continue"===a||"n"===a)return null!==I?(console.log(chalk.yellow(" Please answer the MCQ first (A / B / C / D).")),void D()):null!==N?(console.log(chalk.yellow(" Please type ")+chalk.bold.green("done")+chalk.yellow(" or ")+chalk.bold.yellow("skip")+chalk.yellow(" for the practical.")),void D()):($.currentCard+=1,m($),$.currentCard>S.totalCards?(console.log(),console.log(chalk.bold.green(" 🎉 You've reached the end of the demo curriculum!")),console.log(chalk.gray(" Type ")+chalk.bold.green("status")+chalk.gray(" to see your full stats.")),console.log()):R(),void D());console.log(chalk.gray(" Unknown command. Try: ")+chalk.white("ok")+chalk.gray(" / ")+chalk.white("status")+chalk.gray(" / ")+chalk.white("quit")),D()}else D()}),L.on("close",async()=>{O.length>0&&await Promise.race([Promise.allSettled(O),new Promise(o=>setTimeout(o,5e3))]),process.exit(0)}),R(),D()})}
package/dist/repl.js CHANGED
@@ -1 +1 @@
1
- import{createInterface as o}from"node:readline";import{spawn as e,execSync as t}from"node:child_process";import chalk from"chalk";import{isConnected as l,getConfig as n,saveConfig as s}from"./lib/config.js";import{isActivated as a,activateToken as r,isFreeCommand as i,isDeviceMatch as c,recordExit as g,recordResume as y,isFirstRunOrUpgrade as m,markVersionSeen as d}from"./lib/access.js";import{setReplMode as p}from"./lib/ui.js";import{returnToMainMenu as u,printMenuHint as h,menuHintInline as w}from"./lib/menu-nav.js";import{isChatActive as f,handleChatMessage as b}from"./commands/ai4ctf.js";import{isCtf4aiActive as v,handleCtf4aiMessage as x}from"./commands/ctf4ai-demo.js";import{isVla4CtfActive as C,handleVla4CtfMessage as A}from"./commands/vla4ctf.js";import{getExamState as I,getRealExamState as k,getDemoState as T}from"./lib/exam-state.js";import{getDemoStats as $}from"./lib/demo-stats.js";import{isExamSetupComplete as S}from"./lib/exam-setup.js";import{DEMO_PICK_SIZE as O,DEMO_POOL_SIZE as L}from"./lib/demo-exam.js";import{isNativeWindowsCmd as P}from"./lib/platform.js";import{resetTerminalTheme as E}from"./lib/theme.js";import{ensureSandbox as q,runInSandbox as D,isDockerAvailable as j}from"./lib/sandbox.js";import{logCommand as R}from"./lib/logger.js";import{startLogSync as N,stopLogSync as F}from"./lib/log-sync.js";import{existsSync as M,mkdirSync as U,writeFileSync as z}from"node:fs";import{join as B}from"node:path";import{homedir as W}from"node:os";function Q(){return k()?chalk.cyan("exam> "):T()?chalk.yellow("demo> "):chalk.green("icoa> ")}const _=B(W(),"icoa-workspace");function Y(){return M(_)||U(_,{recursive:!0}),_}const V=new Set(["sudo","su","doas","pkexec","brew","apt","apt-get","yum","choco","npm","npx","pip","pip3","shutdown","reboot","halt","mkfs","fdisk","dd","iptables","ufw"]),J="__REPL_NO_EXIT__",G="2.5.1";function K(){const o=$(),e=S(),l=`Free practice — ${O} questions (from pool of ${L})`,n=P();if(console.log(),console.log(` ${chalk.cyan.bold("[Selection Mode]")}`),console.log(),n)console.log(chalk.gray(" Platform: ")+chalk.white("Windows cmd.exe")+chalk.gray(" — routed to Paper C (MCQ-only, 45 min, 70 pts, zero extra tools)")),console.log();else if(o.attempts>0){const o=function(){const o=["python3.12 --version","/opt/homebrew/opt/python@3.12/bin/python3.12 --version","/usr/local/opt/python@3.12/bin/python3.12 --version","python3 --version","python --version","py -3.12 --version","py -3 --version"];let e="",l="missing";for(const n of o)try{const o=t(n,{encoding:"utf-8",timeout:2e3,stdio:["ignore","pipe","ignore"]}).trim().replace("Python ",""),[s,a]=o.split(".").map(Number);if(3===s&&12===a)return{ok:!0,version:o,status:"ok"};e=o,l=3===s&&a>=10&&a<12?"old":3===s&&a>12?"new":"missing"}catch{}return{ok:"missing"!==l,version:e,status:l}}();"missing"===o.status?(console.log(chalk.yellow(" ⚠ Python not detected. For exam practical questions:")),console.log(chalk.gray(" → ")+chalk.bold.cyan("env python")+chalk.gray(" (platform install guide)")),console.log()):"new"===o.status&&(console.log(chalk.yellow(` ⚠ Python ${o.version} may lack CTF wheels. Python 3.12 recommended:`)),console.log(chalk.gray(" → ")+chalk.bold.cyan("env python")+chalk.gray(" (install guide)")),console.log())}if(0===o.attempts)console.log(chalk.white(" New here? Start with ")+chalk.bold.cyan("demo")+chalk.white(" — it takes a few minutes.")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.bold.cyan(" demo")+chalk.gray(` ${l}`)),console.log(chalk.white(" lang")+chalk.gray(" List all supported languages")),console.log(chalk.white(" lang es")+chalk.gray(" Switch language (e.g. lang es, lang zh, lang fr)")),console.log(chalk.gray(" ─────────────────────────────────────────────"));else if(e||n){const e=1===o.attempts?"attempt":"attempts";o.attempts>0&&console.log(chalk.green(" ✓ Demo completed ")+chalk.gray(`(${o.attempts} ${e})`)),n||console.log(chalk.green(" ✓ Environment ready")),console.log(chalk.yellow(" → Enter your exam token to begin.")),console.log(chalk.gray(" (10-char code from your organizer, starts with your country code like ")+chalk.cyan("UA")+chalk.gray(" — case-insensitive)")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.bold.yellow(" exam <token>")+chalk.gray(" Enter exam (primary action — use your organizer-issued token)")),console.log(chalk.gray(" format: ")+chalk.white("exam UAxxxxxxxx")+chalk.gray(" (2-letter country prefix + 8 chars)")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.gray(" Other commands:")),console.log(chalk.white(" demo")+chalk.gray(` ${l}`)),n||console.log(chalk.white(" exam setup")+chalk.gray(" Re-verify tool environment")),console.log(chalk.white(" lang")+chalk.gray(" List all supported languages")),console.log(chalk.white(" lang es")+chalk.gray(" Switch language (e.g. lang es, lang zh, lang fr)")),console.log(chalk.gray(" ─────────────────────────────────────────────"))}else{const e=1===o.attempts?"attempt":"attempts";console.log(chalk.green(" ✓ Demo completed ")+chalk.gray(`(${o.attempts} ${e}${o.bestPercentage>0?` · best ${o.bestPercentage}%`:""})`)),console.log(chalk.yellow(" → Next: prepare your environment for the real exam.")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.white(" demo")+chalk.gray(` ${l}`)),console.log(chalk.bold.yellow(" exam setup")+chalk.gray(" Install tools for national selection (~150MB)")),console.log(chalk.white(" lang")+chalk.gray(" List all supported languages")),console.log(chalk.white(" lang es")+chalk.gray(" Switch language (e.g. lang es, lang zh, lang fr)")),console.log(chalk.gray(" ─────────────────────────────────────────────"))}console.log(chalk.gray(" ")+chalk.gray("Tip: ")+chalk.cyan("help")+chalk.gray(" for commands · ")+w()+chalk.gray(" · ")+chalk.cyan("Ctrl+C")+chalk.gray(" pauses · ")+chalk.cyan("quit")+chalk.gray(" closes")),console.log()}export async function startRepl(e,T){const $=n(),S=l(),O=process.exit.bind(process),L=a();if($.demoCleanedForVersion!==G){try{const{existsSync:o,unlinkSync:e}=await import("node:fs"),{join:t}=await import("node:path"),{getIcoaDir:l}=await import("./lib/config.js"),n=t(l(),"demo-state.json");o(n)&&e(n)}catch{}s({demoCleanedForVersion:G})}const{select:P,confirm:H}=await import("@inquirer/prompts"),X=$.mode||"",oo=[{name:` ${chalk.bold("National Selection")} ${chalk.gray("—")} ${chalk.gray("demo, exam (lightweight)")}`,value:"selection"},{name:` ${chalk.bold("International Olympiad")} ${chalk.gray("—")} ${chalk.gray("CTF × AI (~500MB, advanced)")}`,value:"olympiad"},{name:` ${chalk.bold("Embodied AI Security")} 🤖 ${chalk.gray("—")} ${chalk.gray("VLA4CTF: demo, learn, Paper D")}`,value:"embodied"},{name:` ${chalk.bold("National/Regional Partner")} ${chalk.gray("—")} ${chalk.gray("organizer tools (tokens, competitions)")}`,value:"organizer"},{name:` ${chalk.gray("About ICOA")} ${chalk.gray("·")} ${chalk.gray("Info & contact")}`,value:"about"}];console.log(chalk.gray(" Use ")+chalk.yellow("↑")+chalk.gray(" or ")+chalk.yellow("↓")+chalk.gray(" to select, ")+chalk.yellow("Enter")+chalk.gray(" to confirm.")),console.log();let eo="";for(;!eo;){const o=await P({message:"Mode",choices:oo,default:X||"selection"});"about"!==o?eo=o:(console.clear(),console.log(),console.log(chalk.cyan(" ═══════════════════════════════════════════════════")),console.log(chalk.bold.yellow(" ICOA")+chalk.white(" — AI-Native CLI OS for Cyber & AI Security")),console.log(chalk.gray(" Olympiad & Competition · K-12 to University")),console.log(chalk.cyan(" ───────────────────────────────────────────────────")),console.log(),console.log(chalk.bold.white(" What Makes ICOA Different")),console.log(chalk.gray(" · AI-native AI teammate, AI adversary, AI translation")),console.log(chalk.gray(" · CLI OS Complete competition environment in terminal")),console.log(chalk.gray(" · 110 tools pwntools, z3, gdb, nmap, sleuthkit... pre-configured")),console.log(chalk.gray(" · Global scale 15,000+ concurrent exams · 15 languages")),console.log(),console.log(chalk.bold.white(" Competition Format")),console.log(` ${chalk.green.bold("AI4CTF")}${chalk.gray(" [Day 1] AI as teammate — 5hr jeopardy CTF")}`),console.log(` ${chalk.red.bold("CTF4AI")}${chalk.gray(" [Day 2] Challenge AI — adversarial ML, red-team")}`),console.log(` ${chalk.cyan.bold("VLA4CTF")}${chalk.gray(" [Day 3] Embodied AI — attack robot brains (NEW)")}`),console.log(),console.log(chalk.white(" Sydney, Australia")+chalk.gray(" · Jun 27 - Jul 2, 2026 · 40+ countries")),console.log(),console.log(chalk.bold.white(" Organized by")+chalk.gray(" ASRA (Australia) · ICO Foundation Inc")),console.log(chalk.bold.white(" Contact ")+chalk.cyan(" australia@icoa2026.au · accreditation@icoa2026.au")),console.log(chalk.bold.white(" Website ")+chalk.cyan.underline(" https://icoa2026.au")),console.log(chalk.cyan(" ═══════════════════════════════════════════════════")),console.log(),console.log(chalk.gray(" Press ")+chalk.yellow("Enter")+chalk.gray(" to return...")),await new Promise(o=>{const e=t=>{process.stdin.removeListener("data",e),process.stdin.isTTY&&process.stdin.setRawMode&&process.stdin.setRawMode(!1),process.stdin.pause(),o()};process.stdin.isTTY&&process.stdin.setRawMode&&process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.once("data",e)}),console.clear())}if("olympiad"===eo&&"olympiad"!==X&&(console.log(),console.log(chalk.yellow(" This mode will download ~500MB of CTF tools and AI models.")),await H({message:"Continue?",default:!0})||(eo="selection",console.log(chalk.gray(" Switched to National Selection mode.")))),eo!==X&&s({mode:eo}),console.log(),"olympiad"===eo&&m(G)){d(G),console.log(chalk.gray(" Checking competition environment..."));const{execSync:o}=await import("node:child_process"),e=[{name:"pwntools",cmd:'python3 -c "import pwn"'},{name:"z3-solver",cmd:'python3 -c "import z3"'},{name:"numpy",cmd:'python3 -c "import numpy"'},{name:"requests",cmd:'python3 -c "import requests"'}];let t=0;for(const l of e)try{o(l.cmd,{stdio:"ignore"})}catch{t++}if(t>0){console.log(chalk.yellow(` ${t} core libraries missing.`));try{const{confirm:o}=await import("@inquirer/prompts");if(await o({message:" Install competition Python libraries now?",default:!0,theme:{prefix:"",style:{message:o=>chalk.green(o),defaultAnswer:o=>chalk.green(o)}}})){console.log();const{execSync:o}=await import("node:child_process");o("icoa env setup",{stdio:"inherit"})}}catch{console.log(chalk.gray(" Run ")+chalk.white("env setup")+chalk.gray(" later to install."))}console.log()}else console.log(chalk.green(" All core libraries ready.")),console.log()}if(T){const o=y();if(o){const e=Math.floor(o.awaySeconds/60),t=o.awaySeconds%60;console.log(chalk.yellow(` Session resumed. Away: ${e}m ${t}s | Total exits: ${o.exitCount}`)),console.log()}}"selection"===eo?K():"embodied"===eo?(console.log(chalk.cyan.bold(" [Embodied AI Security 🤖]")),console.log(),console.log(chalk.bold.cyan(" VLA4CTF")+chalk.gray(" — ICOA 2026's new competition track")),console.log(chalk.gray(" alongside ")+chalk.green("AI4CTF")+chalk.gray(" (Day 1) and ")+chalk.red("CTF4AI")+chalk.gray(" (Day 2)")),console.log(),console.log(chalk.white(" Embodied AI is at its ImageNet moment.")),console.log(chalk.gray(" VLA models, MuJoCo physics, real robot arms —")),console.log(chalk.gray(" all running on ICOA servers, zero local setup.")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.bold.green(" demo2")+chalk.gray(" ~5 min interactive intro + live MuJoCo sim")),console.log(chalk.bold.green(" learn")+chalk.gray(" free 11-card intro (LEARNDEMO01) · 100/480 with ")+chalk.bold.yellow("EA")+chalk.gray(" token")),console.log(chalk.bold.green(" exam <PD-token>")+chalk.gray(" Paper D (VLA4CTF) — national selection contestants")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(),console.log(chalk.gray(" Three open tiers: ")+chalk.green("free 11")+chalk.gray(" · ")+chalk.yellow("registered 100")+chalk.gray(" · ")+chalk.bold.magenta("national team 480")+chalk.gray(" (PhD-ready)")),console.log(chalk.gray(" Country team contact: ")+chalk.cyan("australia@icoa2026.au")),console.log(),h(),console.log()):"organizer"===eo?(console.log(chalk.yellow.bold(" [National/Regional Partner]")),console.log(),console.log(chalk.bold.white(" ██╗ ██████╗ ██████╗ █████╗")),console.log(chalk.bold.white(" ██║██╔════╝██╔═══██╗██╔══██╗")),console.log(chalk.bold.white(" ██║██║ ██║ ██║███████║")),console.log(chalk.bold.white(" ██║██║ ██║ ██║██╔══██║")),console.log(chalk.bold.white(" ██║╚██████╗╚██████╔╝██║ ██║")),console.log(chalk.bold.white(" ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝")),console.log(),console.log(chalk.yellow(" International Cyber Olympiad in AI 2026")),console.log(chalk.bold.magenta(" The World's First AI-Native CLI Operating System")),console.log(chalk.bold.magenta(" for Cybersecurity & AI Security Competition")),console.log(chalk.bold.magenta(" and Olympiad for K-12")),console.log(chalk.gray(" Sydney, Australia · Jun 27 - Jul 2, 2026")),console.log(),console.log(chalk.white(" Vision")),console.log(chalk.gray(" Building a global pipeline for youth cyber & AI")),console.log(chalk.gray(" security talent through education and competition.")),console.log(),console.log(chalk.white(" Capacity")),console.log(chalk.gray(" 15,000+ concurrent online examinations")),console.log(chalk.gray(" National selection, training, and education support")),console.log(),console.log(chalk.white(" Olympic Spirit")),console.log(chalk.gray(" Excellence · Friendship · Respect")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.white(" New country accreditation & support:")),console.log(chalk.cyan(" australia@icoa2026.au")),console.log(chalk.cyan(" accreditation@icoa2026.au")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(),S?(console.log(chalk.green(` Logged in as ${$.userName}`)),console.log(chalk.white(" exam list")+chalk.gray(" Manage exams")),console.log(chalk.white(" logout")+chalk.gray(" Disconnect"))):console.log(chalk.white(" join <url>")+chalk.gray(" Connect to manage exams")),console.log(),h(),console.log()):L&&!c()?(console.log(chalk.red(" Token was activated on a different device.")),console.log(chalk.gray(" Contact organizer for assistance.")),console.log()):S?(console.log(chalk.green.bold(` Welcome back, ${$.userName}!`)),console.log(chalk.gray(` Connected to ${$.ctfdUrl}`)),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.white(" Ready to compete? Start here:")),console.log(),console.log(chalk.bold.cyan(" challenges")+chalk.gray(" Browse challenges by category")),console.log(chalk.white(" status")+chalk.gray(" Your score & hint budget")),console.log(chalk.white(" scoreboard")+chalk.gray(" Live rankings")),console.log(chalk.white(" help")+chalk.gray(" Full command list")),console.log(),console.log(chalk.gray(" Tool environment:")),console.log(chalk.white(" env")+chalk.gray(" See which of the 110 CTF tools are installed")),console.log(chalk.white(" env setup")+chalk.gray(" Install anything missing (~5 min, one-time)")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.gray(" Tip: ")+chalk.cyan("help")+chalk.gray(" · ")+w()+chalk.gray(" · ")+chalk.cyan("Ctrl+C")+chalk.gray(" pauses · ")+chalk.cyan("quit")+chalk.gray(" closes")),console.log()):L?(Y(),console.log(chalk.green.bold(" Welcome, competitor!")),console.log(chalk.gray(` Workspace: ${_}`)),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.white(" Get started:")),console.log(),console.log(chalk.white(" Step 1 ")+chalk.bold.cyan("join <url>")+chalk.gray(" Connect to competition server")),console.log(chalk.white(" Step 2 ")+chalk.bold.cyan("challenges")+chalk.gray(" Browse & solve challenges")),console.log(chalk.white(" Step 3 ")+chalk.bold.cyan("ai4ctf")+chalk.gray(" Ask AI when stuck")),console.log(),console.log(chalk.gray(" Before Step 1 — make sure your tools are ready:")),console.log(chalk.white(" env")+chalk.gray(" See which of the 110 CTF tools are installed")),console.log(chalk.white(" env setup")+chalk.gray(" Install anything missing (~5 min, one-time)")),console.log(),console.log(chalk.gray(" Also: ")+chalk.white("help")+chalk.gray(" all commands")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.gray(" Tip: ")+chalk.cyan("Ctrl+C")+chalk.gray(" pauses · ")+w()+chalk.gray(" · ")+chalk.cyan("quit")+chalk.gray(" closes CLI")),console.log()):(console.log(chalk.bold.white(" Welcome to ICOA CLI — International Olympiad")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.white(" To begin, activate your competition token:")),console.log(),console.log(chalk.bold.cyan(" activate <token>")),console.log(),console.log(chalk.gray(" While waiting, explore:")),console.log(chalk.white(" ref linux")+chalk.gray(" Quick reference for Linux")),console.log(chalk.white(" ref web")+chalk.gray(" Quick reference for Web")),console.log(chalk.white(" env")+chalk.gray(" See which of the 110 CTF tools are installed")),console.log(chalk.white(" env setup")+chalk.gray(" Install anything missing (~5 min, one-time)")),console.log(chalk.white(" help")+chalk.gray(" All available commands")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.gray(" Tip: ")+chalk.cyan("Ctrl+C")+chalk.gray(" pauses · ")+w()+chalk.gray(" · ")+chalk.cyan("quit")+chalk.gray(" closes CLI")),console.log()),e.exitOverride(),e.configureOutput({writeErr:()=>{},writeOut:o=>{console.log(o)}});const to=o({input:process.stdin,output:process.stdout,prompt:Q(),terminal:!0});let lo=!1;p(!0),N();const no=to.prompt.bind(to);to.prompt=o=>{f()||v()||C()||to.setPrompt(Q()),no(o)},to.prompt(),to.on("line",async o=>{if(lo)return;const l=o.trim();if(!l)return to.setPrompt(f()?chalk.magenta("ai4ctf> "):Q()),void to.prompt();if("menu"===l||"menu confirm"===l)return k()&&"menu confirm"!==l?(console.log(),console.log(chalk.yellow(" Real exam active. Progress is auto-saved.")),console.log(chalk.gray(" To return to main menu anyway, type ")+chalk.white("menu confirm")),console.log(),void to.prompt()):void u(to);if(f()){lo=!0;const o=await b(l);return lo=!1,"exit"===o&&to.setPrompt(Q()),void to.prompt()}if(v()){lo=!0;const o=await x(l);return lo=!1,"exit"!==o&&"solved"!==o||to.setPrompt(Q()),void to.prompt()}if(C()){lo=!0;const o=await A(l);return lo=!1,"exit"===o&&to.setPrompt(Q()),to.setPrompt(C()?chalk.bold.cyan("vla4ctf> "):Q()),void to.prompt()}if(R(l),"exit"===l)return I()?(console.log(),console.log(chalk.yellow(" ⚠ An exam is in progress.")),console.log(chalk.white(" To return to menu without losing progress, type: ")+chalk.bold.cyan("back")),console.log(chalk.white(" To fully close ICOA CLI, type: ")+chalk.bold.cyan("quit")),console.log(chalk.gray(" Your progress is auto-saved either way.")),console.log(),void to.prompt()):(console.log(),console.log(chalk.gray(" ")+chalk.white("exit")+chalk.gray(" returns to the main menu. To fully close ICOA CLI, type ")+chalk.bold.cyan("quit")+chalk.gray(".")),"selection"===eo&&K(),void to.prompt());if("quit"===l||"q"===l||"quit confirm"===l){const o=I();return o&&"demo-free"!==o.session.examId&&"quit confirm"!==l?(console.log(),console.log(chalk.yellow(" ⚠ A real exam is in progress.")),console.log(chalk.gray(" Your answers are auto-saved on the server, but the exam timer keeps ticking")),console.log(chalk.gray(" on the server side even if you close the CLI.")),console.log(),console.log(chalk.white(" To leave the CLI but keep the exam alive, type: ")+chalk.bold.cyan("back")),console.log(chalk.gray(" (recommended — you can resume with ")+chalk.cyan("exam q 1")+chalk.gray(" after relaunching icoa)")),console.log(),console.log(chalk.white(" To really close ICOA CLI, type: ")+chalk.bold.cyan("quit confirm")),console.log(),void to.prompt()):(o&&"demo-free"===o.session.examId&&(console.log(),console.log(chalk.gray(" Demo paused. Resume with: ")+chalk.white("demo")+chalk.gray(" (fresh) or ")+chalk.white("exam q 1")+chalk.gray(" (continue)."))),F(),g(),console.log(chalk.gray(" Session saved. Use ")+chalk.white("icoa --resume")+chalk.gray(" to continue.")),E(),void O(0))}if("back"===l){const o=I(),e=o&&"demo-free"!==o.session.examId,t=o&&"demo-free"===o.session.examId&&(()=>{const e=new Date(o.session.startedAt||0).getTime();return Date.now()-e<18e5})();if(e)console.log(),console.log(chalk.gray(" Exam paused. Your progress is saved.")),console.log(chalk.white(" Resume: exam q 1")+chalk.gray(" · ")+chalk.white("exam review")+chalk.gray(" · ")+chalk.white("exam submit")),console.log();else if(t){const e=Object.keys(o.answers).length,t=o.session.questionCount;console.log(),console.log(chalk.gray(` Demo paused (${e}/${t} answered). Resume with: `)+chalk.white("exam q 1")),console.log(chalk.gray(" Or type ")+chalk.white("demo")+chalk.gray(" to restart.")),console.log()}else{if(o&&"demo-free"===o.session.examId){const{clearExamState:o}=await import("./lib/exam-state.js");o("demo-free")}const e=n();fetch("https://practice.icoa2026.au/api/icoa/demo-stats",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"post-report-back",lang:e.language||"en",timestamp:(new Date).toISOString()}),signal:AbortSignal.timeout(5e3)}).catch(()=>{}),"selection"===eo?K():console.log(chalk.gray(" Already at main menu."))}return void to.prompt()}if("help"===l||"?"===l){if(I()){lo=!0;try{await e.parseAsync(["node","icoa","exam","help"])}catch{}return lo=!1,void to.prompt()}return function(o,e="olympiad"){console.log(),"selection"===e||"organizer"===e?(console.log(chalk.bold.white(" Exam")),console.log(chalk.white(" join <url> ")+chalk.gray("Connect to exam server")),console.log(chalk.white(" exam list ")+chalk.gray("Available exams")),console.log(chalk.white(" exam start <id> ")+chalk.gray("Begin an exam")),console.log(chalk.white(" exam q [n] ")+chalk.gray("View questions")),console.log(chalk.white(" exam answer <n> <X> ")+chalk.gray("Answer question")),console.log(chalk.white(" exam review ")+chalk.gray("Review all answers")),console.log(chalk.white(" exam submit ")+chalk.gray("Submit for grading")),console.log(chalk.white(" exam result ")+chalk.gray("View your score")),console.log(),console.log(chalk.bold.white(" System")),console.log(chalk.white(" ref [topic] ")+chalk.gray("Quick reference")),console.log(chalk.white(" setup ")+chalk.gray("Settings / switch mode")),console.log(chalk.white(" lang [code] ")+chalk.gray("Switch language")),console.log(chalk.white(" clear ")+chalk.gray("Clear screen")),console.log(chalk.white(" exit ")+chalk.gray("Quit")),console.log()):o?(console.log(chalk.cyan(" ═══════════════════════════════════════════════")),console.log(chalk.bold.white(" How it works")),console.log(),console.log(chalk.gray(" 1. Browse ")+chalk.white("challenges")+chalk.gray(" and pick one")),console.log(chalk.gray(" 2. ")+chalk.white("open <id>")+chalk.gray(" to read the challenge")),console.log(chalk.gray(" 3. Use ")+chalk.white("ai4ctf")+chalk.gray(" to chat with AI when stuck")),console.log(chalk.gray(" 4. ")+chalk.white("submit <id> icoa{flag}")+chalk.gray(" to score points")),console.log(chalk.gray(" 5. Check ")+chalk.white("scoreboard")+chalk.gray(" to track your rank")),console.log(chalk.cyan(" ═══════════════════════════════════════════════")),console.log(),console.log(chalk.bold.white(" Competition")),console.log(chalk.white(" join <url> ")+chalk.gray("Connect to CTFd")),console.log(chalk.white(" challenges (ch) ")+chalk.gray("List challenges by category")),console.log(chalk.white(" open <id> ")+chalk.gray("Read challenge + get next steps")),console.log(chalk.white(" submit <id> <flag> ")+chalk.gray("Submit a flag")),console.log(chalk.white(" scoreboard (sb) ")+chalk.gray("Live rankings")),console.log(chalk.white(" status ")+chalk.gray("Your score, budget & timer")),console.log(chalk.white(" time ")+chalk.gray("Countdown timer")),console.log(),console.log(chalk.bold.white(" AI Teammate")+chalk.gray(" — 3 levels, use wisely")),console.log(chalk.white(' hint "question" ')+chalk.gray("Level A — General guidance (50 uses)")),console.log(chalk.white(' hint-b "question" ')+chalk.gray("Level B — Deep analysis (10 uses)")),console.log(chalk.white(' hint-c "question" ')+chalk.gray("Level C — Critical assist (2 uses)")),console.log(chalk.white(" hint budget ")+chalk.gray("Check remaining uses")),console.log(chalk.white(" ai4ctf ")+chalk.gray("Free-chat with AI (no limit)")),console.log(),console.log(chalk.bold.white(" Tools")),console.log(chalk.white(" ref [topic] ")+chalk.gray("Quick reference (linux, web, crypto...)")),console.log(chalk.white(" shell ")+chalk.gray("Docker sandbox")),console.log(chalk.white(" files <id> ")+chalk.gray("Download challenge files")),console.log(chalk.white(" connect <id> ")+chalk.gray("Connect to remote target")),console.log(chalk.white(" note [text] ")+chalk.gray("Personal notepad")),console.log(chalk.white(" log ")+chalk.gray("Session history")),console.log(),console.log(chalk.bold.white(" System")),console.log(chalk.white(" setup ")+chalk.gray("Configure settings")),console.log(chalk.white(" lang [code] ")+chalk.gray("Switch language (15 supported)")),console.log(chalk.white(" logout ")+chalk.gray("Disconnect")),console.log(chalk.white(" clear ")+chalk.gray("Clear screen")),console.log(chalk.white(" exit ")+chalk.gray("Quit (session saved)")),console.log()):(console.log(chalk.bold.yellow(" Restricted Mode — activate with a token to unlock all commands")),console.log(),console.log(chalk.white(" activate <token> ")+chalk.gray("Unlock full access")),console.log(chalk.white(" ref [topic] ")+chalk.gray("Quick reference")),console.log(chalk.white(" exit ")+chalk.gray("Quit")),console.log())}(a(),eo),void to.prompt()}if("more help"===l.toLowerCase()&&I()){lo=!0;try{await e.parseAsync(["node","icoa","exam","more-help"])}catch{}return lo=!1,void to.prompt()}if("continue"===l.toLowerCase())return console.log(),console.log(chalk.green.bold(" ═══ AI4CTF — AI as Your Teammate ═══")),console.log(),console.log(chalk.white(" In AI4CTF, you solve cybersecurity challenges")),console.log(chalk.white(" with AI by your side.")),console.log(),console.log(chalk.white(" In competition, you get AI help at 3 levels:")),console.log(chalk.yellow(" hint a")+chalk.gray(" General guidance (50 uses)")),console.log(chalk.yellow(" hint b")+chalk.gray(" Deep analysis (10 uses)")),console.log(chalk.yellow(" hint c")+chalk.gray(" Critical assist (2 uses)")),console.log(),console.log(chalk.white(" Try it now! Type: ")+chalk.bold.green("ai4ctf")),console.log(chalk.gray(' Chat freely with your AI teammate. Type "exit" when done.')),console.log(),console.log(chalk.gray(" After ai4ctf, try: ")+chalk.bold.red("ctf4ai")+chalk.gray(' — trick the AI into saying "koala"')),console.log(),void to.prompt();if(/^ICOA-[A-Z]{2,3}-\d{1,6}$/i.test(l.trim())){lo=!0;try{await e.parseAsync(["node","icoa","exam","token",l.trim()])}catch{}return lo=!1,void to.prompt()}if(/^[A-Z]{2}[0-9A-HJKMNP-TV-Z]{8}$/i.test(l.trim())){lo=!0;try{await e.parseAsync(["node","icoa","exam","token",l.trim().toUpperCase()])}catch{}return lo=!1,void to.prompt()}const s=l.match(/^exam\s+([A-Z]{2}[0-9A-HJKMNP-TV-Z]{8})$/i);if(s){lo=!0;try{await e.parseAsync(["node","icoa","exam","token",s[1].toUpperCase()])}catch{}return lo=!1,void to.prompt()}const y=l.match(/^exam\s+([A-Z]{2,3})$/i);if(y){lo=!0;try{await e.parseAsync(["node","icoa","exam","list",y[1]])}catch{}return lo=!1,void to.prompt()}if("clear"===l||"cls"===l)return console.clear(),void to.prompt();if(l.startsWith("activate ")){const o=l.slice(9).trim(),e=r(o);return"ok"===e?console.log(chalk.green(" Access granted! Token bound to this device.")):"already_bound"===e?(console.log(),console.log(chalk.red(" Token already activated on a different device.")),console.log(chalk.gray(" Each token binds to the first device that uses it. If you lost the device,")),console.log(chalk.gray(" contact your proctor to have the token re-issued for a new device."))):(console.log(),console.log(chalk.red(" Token not recognized.")),console.log(chalk.gray(" Possible reasons:")),console.log(chalk.white(" • ")+chalk.gray("Typo — tokens are case-insensitive, 10 chars, start with a 2-letter country code (e.g. ")+chalk.cyan("UAK7M2R9Q4")+chalk.gray(")")),console.log(chalk.white(" • ")+chalk.gray("Expired — ask your proctor or organizer for a fresh token")),console.log(chalk.white(" • ")+chalk.gray("Network — verify connection to ")+chalk.cyan("practice.icoa2026.au")),console.log(chalk.gray(" Still stuck? type ")+chalk.cyan("help")+chalk.gray(" or try ")+chalk.cyan("exam demo")+chalk.gray(" for a free practice round."))),console.log(),void to.prompt()}if("activate"===l)return console.log(chalk.gray(" Usage: ")+chalk.white("activate <token>")),console.log(),void to.prompt();const m=I();if(m){const o=l.toUpperCase().trim(),t=o=>{const e=m.questions.find(e=>e.number===o);return!!e&&("ai4ctf"===e.type||"ctf4ai"===e.type||e.options&&!e.options.A&&!e.options.B)},n=o=>{const e="demo-free"!==m.session.examId,t=e&&o>=39?"ctf4ai":e&&o>=31?"ai4ctf":null;console.log(),console.log(chalk.yellow(` Q${o} is a practical question — letters (A/B/C/D) don't apply here.`)),t?(console.log(chalk.white(" Enter the AI chat for this question: ")+chalk.bold.cyan(t)),console.log(chalk.gray(" Or submit a flag directly: ")+chalk.green(`exam answer ${o} ICOA{your_flag}`))):console.log(chalk.gray(" Submit a flag: ")+chalk.green(`exam answer ${o} ICOA{your_flag}`)),console.log()};if(/^[ABCD]$/.test(o)){const l=m._lastQ||1;if(t(l))return n(l),void to.prompt();lo=!0;try{await e.parseAsync(["node","icoa","exam","answer",String(l),o])}catch{}return lo=!1,void to.prompt()}const s=o.match(/^(\d+)\s+([ABCD])$/);if(s){const o=parseInt(s[1],10);if(t(o))return n(o),void to.prompt();lo=!0;try{await e.parseAsync(["node","icoa","exam","answer",s[1],s[2]])}catch{}return lo=!1,void to.prompt()}}const d=l.split(/\s+/)[0].toLowerCase(),p=/^python3?(\.\d+)?$/.test(d),h=l.startsWith("!")||d.startsWith("!")||p;if("embodied"===eo&&!h&&!["demo2","learn","exam","vla4ctf","lang","ref","setup","env"].includes(d))return console.log(chalk.gray(" Not available in Embodied AI Security mode.")),console.log(chalk.white(" Try ")+chalk.bold.cyan("demo2")+chalk.gray(" (intro) · ")+chalk.bold.cyan("learn")+chalk.gray(" (curriculum) · ")+chalk.bold.cyan("exam <PD-token>")+chalk.gray(" (Paper D)")),console.log(),void to.prompt();if("selection"===eo&&!h&&!["exam","demo","retry","nations","next","prev","continue","setup","lang","ref","ai4ctf","ctf4ai","mark","unmark","review","submit","env"].includes(d)){if(console.log(chalk.gray(" Not available in Selection mode.")),m){const o=m._lastQ||1;console.log(chalk.white(` Resume exam: exam q ${o}`)+chalk.gray(" · ")+chalk.white("A/B/C/D")+chalk.gray(" to answer"))}else console.log(chalk.gray(" Try: demo · setup to switch mode"));return console.log(),void to.prompt()}if("organizer"===eo&&!["join","exam","demo","retry","next","prev","logout","setup","lang","ref","ctf","mark","unmark","review","submit"].includes(d))return console.log(chalk.gray(" Not available in Organizer mode. Switch via: setup")),console.log(),void to.prompt();if(!("olympiad"!==eo||a()&&c()||i(d)))return console.log(chalk.yellow(" Restricted mode. ")+chalk.gray("Enter your access token:")),console.log(chalk.white(" activate <token>")),console.log(),console.log(chalk.gray(" Free commands: ")+chalk.white("ref [topic]")+chalk.gray(", ")+chalk.white("help")+chalk.gray(", ")+chalk.white("exit")),console.log(),void to.prompt();if(!["join","activate","challenges","ch","open","submit","flag","scoreboard","sb","status","time","ref","shell","files","connect","note","log","lang","setup","env","ai4ctf","model","ctf","exam","demo","retry","nations","next","prev","continue","logout","ctf4ai","mark","unmark","review","submit","learn","demo2","vla4ctf","theme"].includes(d)){if(V.has(d))return console.log(chalk.red(` Blocked: ${d} is not allowed during competition.`)),console.log(),void to.prompt();if(/(?:^|\s)(?:\/(?!home\/|Users\/|tmp\/)|\.\.\/|~\/)/.test(l)&&!l.startsWith("cd ")){const o=/(?:^|\s)\/(?!home\/\w+\/icoa-workspace|Users\/\w+\/icoa-workspace|tmp\/)/.test(l),e=/\.\./.test(l);if(o||e)return console.log(chalk.red(" Blocked: access outside workspace is not allowed.")),console.log(chalk.gray(` Workspace: ${_}`)),console.log(),void to.prompt()}let o=l.startsWith("!")?l.slice(1).trim():l;if("darwin"===process.platform){const e="/opt/homebrew/opt/python@3.12/bin/python3.12";o=o.replace(/^python3?\s/,`${e} `).replace(/^(python3|python)$/,e)}else if("win32"===process.platform){const e=(()=>{try{return t("py -3 --version",{stdio:["ignore","ignore","ignore"],timeout:1500}),"py -3"}catch{}return"python"})();o=o.replace(/^python3?(\.\d+)?\s/,`${e} `).replace(/^python3?(\.\d+)?$/,e)}else{const e=(()=>{try{return t("which python3.12",{stdio:"ignore"}),"python3.12"}catch{return"python3"}})();o=o.replace(/^python\s/,`${e} `).replace(/^python$/,e)}const e=Y();/^(\S*python3?(\.\d+)?)\s*$/.test(o)&&(o=`PYTHONSTARTUP="${function(){const o=B(W(),".icoa");M(o)||U(o,{recursive:!0});const e=B(o,"python-startup.py");return M(e)||z(e,"# ICOA exam interactive startup — auto-loaded by PYTHONSTARTUP\nimport base64, struct, hashlib, re, json, os, sys, binascii\ntry: import requests\nexcept ImportError: pass\ntry: from Crypto.Cipher import AES\nexcept ImportError: pass\ntry: from Crypto.Util.Padding import pad, unpad\nexcept ImportError: pass\ntry: from pwn import xor, p32, u32, p64, u64\nexcept ImportError: pass\ntry: import bs4\nexcept ImportError: pass\ntry: import numpy as np\nexcept ImportError: pass\n"),e}()}" ${o}`,console.log(),console.log(chalk.cyan(" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")),console.log(chalk.bold.white(" Python ready — ICOA exam toolkit pre-loaded")),console.log(chalk.cyan(" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")),console.log(),console.log(chalk.white(" Already imported: ")+chalk.gray("base64, struct, hashlib, re, json, binascii")),console.log(chalk.white(" Also available: ")+chalk.gray("requests, bs4, numpy, AES, pad/unpad, xor, p32/u32/p64/u64")),console.log(),console.log(chalk.yellow(" Quick examples:")),console.log(chalk.gray(' base64.b64decode("aGVsbG8=") ')+chalk.gray("# decode base64")),console.log(chalk.gray(' bytes.fromhex("48656c6c6f") ')+chalk.gray("# hex → bytes")),console.log(chalk.gray(' "ICOA{x}".encode() ')+chalk.gray("# str → bytes")),console.log(chalk.gray(" [chr(c) for c in [73,67,79,65]] ")+chalk.gray("# ASCII codes")),console.log(chalk.gray(' xor(bytes.fromhex("0a2b"), b"IC") ')+chalk.gray("# pwntools XOR")),console.log(),console.log(chalk.gray(" Exit: ")+chalk.white("exit()")+chalk.gray(" or Ctrl-D")),console.log(chalk.cyan(" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")),console.log()),lo=!0;try{j()&&await q()?await D(o,to):await Z(o,to,e)}catch{console.log(chalk.yellow(` Command failed: ${d}`))}return lo=!1,console.log(),void to.prompt()}lo=!0;const w=l.trim(),T=w.toLowerCase();let $,S=null,L="";if(m)if("submit"===T)S="final";else if(T.startsWith("submit ")){let o=w.slice(7).trim();/^submit\s+/i.test(o)&&(o=o.replace(/^submit\s+/i,"").trim()),o=o.replace(/^["'`]+|["'`]+$/g,"").trim(),o&&/^ICOA\{[^}]*\}?$/i.test(o)&&(S="flag",L=o)}else/^ICOA\{[^}]+\}$/i.test(w)&&(S="flag",L=w);$="final"===S?["exam","submit"]:"flag"===S?["exam","answer",String(m?._lastQ||1),L]:function(o){const e=o.split(/\s+/),t=e[0].toLowerCase(),l=e.slice(1),n={demo:["exam","demo"],retry:["exam","demo-retry"],nations:["exam","nations"],next:["exam","next"],prev:["exam","prev"],mark:["exam","mark",...l],unmark:["exam","unmark",...l],review:["exam","review"],logout:["ctf","logout"],join:["ctf","join",...l],activate:["ctf","activate",...l],challenges:["ctf","challenges"],ch:["ctf","challenges"],open:["ctf","open",...l],submit:["ctf","submit",...l],flag:["ctf","submit",...l],scoreboard:["ctf","scoreboard",...l],sb:["ctf","scoreboard",...l],status:["ctf","status"],time:["ctf","time"]};return n[t]?n[t]:["ref","shell","files","connect","note","log","lang","setup","env","ai4ctf","model","ctf","exam","ctf4ai"].includes(t)?[t,...l]:e}(l);const P="ctf"===$[0]&&"join"===$[1];P&&to.pause(),process.exit=()=>{throw new Error(J)};try{await e.parseAsync(["node","icoa",...$])}catch(o){const e=o instanceof Error?o.message:String(o);if(e===J);else if(e.includes("commander.unknownCommand")){const{distance:o}=await import("fastest-levenshtein"),e=["ctf","ref","shell","files","connect","note","log","lang","setup","env","ai4ctf","exam","ctf4ai","theme","clear","cls","quit","exit","back","menu","help","continue","activate","demo","challenges","status","scoreboard","join","logout"],t=d.split(/\s+/)[0]||d;let l={word:"",dist:1/0};for(const n of e){const e=o(t.toLowerCase(),n);e<l.dist&&(l={word:n,dist:e})}console.log(chalk.yellow(` Unknown command: ${d}.`)),l.dist>0&&l.dist<=2&&console.log(chalk.gray(" Did you mean: ")+chalk.bold.cyan(l.word)+chalk.gray("?")),console.log(chalk.gray(" Type ")+chalk.cyan("help")+chalk.gray(" for the full command list."))}else e.includes("commander.")||(e.includes("fetch failed")||e.includes("ECONNREFUSED")||e.includes("ETIMEDOUT"))&&console.log(chalk.yellow(" Network error. Check your connection."))}finally{process.exit=O,lo=!1,P&&to.resume()}f()?to.setPrompt(chalk.magenta("ai4ctf> ")):v()?to.setPrompt(chalk.red("ctf4ai> ")):C()&&to.setPrompt(chalk.bold.cyan("vla4ctf> ")),console.log(),to.prompt()}),to.on("SIGINT",()=>{if(console.log(),f()||v())console.log(chalk.yellow(" Ctrl+C did not close ICOA CLI — you are still in the AI chat.")),console.log(chalk.white(" Type ")+chalk.bold.cyan("exit")+chalk.white(" to leave the chat and return to the menu."));else if(I()){const o="demo-free"!==I().session.examId;console.log(chalk.yellow(" Ctrl+C did NOT close ICOA CLI.")),console.log(chalk.gray(` Your ${o?"exam":"demo"} is paused and every answer is auto-saved.`)),console.log(),console.log(chalk.white(" Resume: ")+chalk.cyan("exam q 1")+chalk.gray(" · Back to menu: ")+chalk.cyan("back")+chalk.gray(" · Close CLI: ")+chalk.cyan(o?"quit confirm":"quit"))}else console.log(chalk.yellow(" Ctrl+C did not close ICOA CLI — you are still at the ")+chalk.cyan("icoa>")+chalk.yellow(" prompt.")),console.log(chalk.gray(" Keep typing — ")+chalk.cyan("help")+chalk.gray(" lists commands. (Only ")+chalk.cyan("quit")+chalk.gray(" or Ctrl+D actually close the CLI.)"));console.log(),to.prompt()}),to.on("close",()=>{F(),g(),E(),O(0)})}function Z(o,t,l){return new Promise(n=>{const s=process.stdin,a=!!s.isTTY&&!!s.isRaw;if(t.pause(),s.isTTY&&"function"==typeof s.setRawMode)try{s.setRawMode(!1)}catch{}const r=e(o,{shell:!0,stdio:"inherit",cwd:l||process.cwd()}),i=()=>{if(s.isTTY&&"function"==typeof s.setRawMode&&a)try{s.setRawMode(!0)}catch{}t.resume(),n()};r.on("close",i),r.on("error",i)})}
1
+ import{createInterface as o}from"node:readline";import{spawn as e,execSync as t}from"node:child_process";import chalk from"chalk";import{isConnected as l,getConfig as n,saveConfig as s}from"./lib/config.js";import{isActivated as a,activateToken as r,isFreeCommand as i,isDeviceMatch as c,recordExit as g,recordResume as y,isFirstRunOrUpgrade as m,markVersionSeen as d}from"./lib/access.js";import{setReplMode as p}from"./lib/ui.js";import{returnToMainMenu as u,printMenuHint as h,menuHintInline as w}from"./lib/menu-nav.js";import{isChatActive as f,handleChatMessage as b}from"./commands/ai4ctf.js";import{isCtf4aiActive as x,handleCtf4aiMessage as v}from"./commands/ctf4ai-demo.js";import{isVla4CtfActive as C,handleVla4CtfMessage as A}from"./commands/vla4ctf.js";import{getExamState as I,getRealExamState as k,getDemoState as T}from"./lib/exam-state.js";import{getDemoStats as $}from"./lib/demo-stats.js";import{isExamSetupComplete as S}from"./lib/exam-setup.js";import{DEMO_PICK_SIZE as O,DEMO_POOL_SIZE as L}from"./lib/demo-exam.js";import{isNativeWindowsCmd as P}from"./lib/platform.js";import{resetTerminalTheme as E}from"./lib/theme.js";import{ensureSandbox as q,runInSandbox as D,isDockerAvailable as j}from"./lib/sandbox.js";import{logCommand as R}from"./lib/logger.js";import{startLogSync as N,stopLogSync as F}from"./lib/log-sync.js";import{existsSync as M,mkdirSync as U,writeFileSync as z}from"node:fs";import{join as B}from"node:path";import{homedir as W}from"node:os";function Q(){return k()?chalk.cyan("exam> "):T()?chalk.yellow("demo> "):chalk.green("icoa> ")}const _=B(W(),"icoa-workspace");function Y(){return M(_)||U(_,{recursive:!0}),_}const V=new Set(["sudo","su","doas","pkexec","brew","apt","apt-get","yum","choco","npm","npx","pip","pip3","shutdown","reboot","halt","mkfs","fdisk","dd","iptables","ufw"]),J="__REPL_NO_EXIT__",G="2.5.1";function K(){const o=$(),e=S(),l=`Free practice — ${O} questions (from pool of ${L})`,n=P();if(console.log(),console.log(` ${chalk.cyan.bold("[Selection Mode]")}`),console.log(),n)console.log(chalk.gray(" Platform: ")+chalk.white("Windows cmd.exe")+chalk.gray(" — routed to Paper C (MCQ-only, 45 min, 70 pts, zero extra tools)")),console.log();else if(o.attempts>0){const o=function(){const o=["python3.12 --version","/opt/homebrew/opt/python@3.12/bin/python3.12 --version","/usr/local/opt/python@3.12/bin/python3.12 --version","python3 --version","python --version","py -3.12 --version","py -3 --version"];let e="",l="missing";for(const n of o)try{const o=t(n,{encoding:"utf-8",timeout:2e3,stdio:["ignore","pipe","ignore"]}).trim().replace("Python ",""),[s,a]=o.split(".").map(Number);if(3===s&&12===a)return{ok:!0,version:o,status:"ok"};e=o,l=3===s&&a>=10&&a<12?"old":3===s&&a>12?"new":"missing"}catch{}return{ok:"missing"!==l,version:e,status:l}}();"missing"===o.status?(console.log(chalk.yellow(" ⚠ Python not detected. For exam practical questions:")),console.log(chalk.gray(" → ")+chalk.bold.cyan("env python")+chalk.gray(" (platform install guide)")),console.log()):"new"===o.status&&(console.log(chalk.yellow(` ⚠ Python ${o.version} may lack CTF wheels. Python 3.12 recommended:`)),console.log(chalk.gray(" → ")+chalk.bold.cyan("env python")+chalk.gray(" (install guide)")),console.log())}if(0===o.attempts)console.log(chalk.white(" New here? Start with ")+chalk.bold.cyan("demo")+chalk.white(" — it takes a few minutes.")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.bold.cyan(" demo")+chalk.gray(` ${l}`)),console.log(chalk.white(" lang")+chalk.gray(" List all supported languages")),console.log(chalk.white(" lang es")+chalk.gray(" Switch language (e.g. lang es, lang zh, lang fr)")),console.log(chalk.gray(" ─────────────────────────────────────────────"));else if(e||n){const e=1===o.attempts?"attempt":"attempts";o.attempts>0&&console.log(chalk.green(" ✓ Demo completed ")+chalk.gray(`(${o.attempts} ${e})`)),n||console.log(chalk.green(" ✓ Environment ready")),console.log(chalk.yellow(" → Enter your exam token to begin.")),console.log(chalk.gray(" (10-char code from your organizer, starts with your country code like ")+chalk.cyan("UA")+chalk.gray(" — case-insensitive)")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.bold.yellow(" exam <token>")+chalk.gray(" Enter exam (primary action — use your organizer-issued token)")),console.log(chalk.gray(" format: ")+chalk.white("exam UAxxxxxxxx")+chalk.gray(" (2-letter country prefix + 8 chars)")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.gray(" Other commands:")),console.log(chalk.white(" demo")+chalk.gray(` ${l}`)),n||console.log(chalk.white(" exam setup")+chalk.gray(" Re-verify tool environment")),console.log(chalk.white(" lang")+chalk.gray(" List all supported languages")),console.log(chalk.white(" lang es")+chalk.gray(" Switch language (e.g. lang es, lang zh, lang fr)")),console.log(chalk.gray(" ─────────────────────────────────────────────"))}else{const e=1===o.attempts?"attempt":"attempts";console.log(chalk.green(" ✓ Demo completed ")+chalk.gray(`(${o.attempts} ${e}${o.bestPercentage>0?` · best ${o.bestPercentage}%`:""})`)),console.log(chalk.yellow(" → Next: prepare your environment for the real exam.")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.white(" demo")+chalk.gray(` ${l}`)),console.log(chalk.bold.yellow(" exam setup")+chalk.gray(" Install tools for national selection (~150MB)")),console.log(chalk.white(" lang")+chalk.gray(" List all supported languages")),console.log(chalk.white(" lang es")+chalk.gray(" Switch language (e.g. lang es, lang zh, lang fr)")),console.log(chalk.gray(" ─────────────────────────────────────────────"))}console.log(chalk.gray(" ")+chalk.gray("Tip: ")+chalk.cyan("help")+chalk.gray(" for commands · ")+w()+chalk.gray(" · ")+chalk.cyan("Ctrl+C")+chalk.gray(" pauses · ")+chalk.cyan("quit")+chalk.gray(" closes")),console.log()}export async function startRepl(e,T){const $=n(),S=l(),O=process.exit.bind(process),L=a();if($.demoCleanedForVersion!==G){try{const{existsSync:o,unlinkSync:e}=await import("node:fs"),{join:t}=await import("node:path"),{getIcoaDir:l}=await import("./lib/config.js"),n=t(l(),"demo-state.json");o(n)&&e(n)}catch{}s({demoCleanedForVersion:G})}const{select:P,confirm:H}=await import("@inquirer/prompts"),X=$.mode||"",oo=[{name:` ${chalk.bold("National Selection")} ${chalk.gray("—")} ${chalk.gray("demo, exam (lightweight)")}`,value:"selection"},{name:` ${chalk.bold("International Olympiad")} ${chalk.gray("—")} ${chalk.gray("CTF × AI (~500MB, advanced)")}`,value:"olympiad"},{name:` ${chalk.bold("Embodied AI Security")} 🤖 ${chalk.gray("—")} ${chalk.gray("VLA4CTF: demo, learn, Paper D")}`,value:"embodied"},{name:` ${chalk.bold("National/Regional Partner")} ${chalk.gray("—")} ${chalk.gray("organizer tools (tokens, competitions)")}`,value:"organizer"},{name:` ${chalk.gray("About ICOA")} ${chalk.gray("·")} ${chalk.gray("Info & contact")}`,value:"about"}];console.log(chalk.gray(" Use ")+chalk.yellow("↑")+chalk.gray(" or ")+chalk.yellow("↓")+chalk.gray(" to select, ")+chalk.yellow("Enter")+chalk.gray(" to confirm.")),console.log();let eo="";for(;!eo;){const o=await P({message:"Mode",choices:oo,default:X||"selection"});"about"!==o?eo=o:(console.clear(),console.log(),console.log(chalk.cyan(" ═══════════════════════════════════════════════════")),console.log(chalk.bold.yellow(" ICOA")+chalk.white(" — AI-Native CLI OS for Cyber & AI Security")),console.log(chalk.gray(" Olympiad & Competition · K-12 to University")),console.log(chalk.cyan(" ───────────────────────────────────────────────────")),console.log(),console.log(chalk.bold.white(" What Makes ICOA Different")),console.log(chalk.gray(" · AI-native AI teammate, AI adversary, AI translation")),console.log(chalk.gray(" · CLI OS Complete competition environment in terminal")),console.log(chalk.gray(" · 110 tools pwntools, z3, gdb, nmap, sleuthkit... pre-configured")),console.log(chalk.gray(" · Global scale 15,000+ concurrent exams · 15 languages")),console.log(),console.log(chalk.bold.white(" Competition Format")),console.log(` ${chalk.green.bold("AI4CTF")}${chalk.gray(" [Day 1] AI as teammate — 5hr jeopardy CTF")}`),console.log(` ${chalk.red.bold("CTF4AI")}${chalk.gray(" [Day 2] Challenge AI — adversarial ML, red-team")}`),console.log(` ${chalk.cyan.bold("VLA4CTF")}${chalk.gray(" [Day 3] Embodied AI — attack robot brains (NEW)")}`),console.log(),console.log(chalk.white(" Sydney, Australia")+chalk.gray(" · Jun 27 - Jul 2, 2026 · 40+ countries")),console.log(),console.log(chalk.bold.white(" Organized by")+chalk.gray(" ASRA (Australia) · ICO Foundation Inc")),console.log(chalk.bold.white(" Contact ")+chalk.cyan(" australia@icoa2026.au · accreditation@icoa2026.au")),console.log(chalk.bold.white(" Website ")+chalk.cyan.underline(" https://icoa2026.au")),console.log(chalk.cyan(" ═══════════════════════════════════════════════════")),console.log(),console.log(chalk.gray(" Press ")+chalk.yellow("Enter")+chalk.gray(" to return...")),await new Promise(o=>{const e=t=>{process.stdin.removeListener("data",e),process.stdin.isTTY&&process.stdin.setRawMode&&process.stdin.setRawMode(!1),process.stdin.pause(),o()};process.stdin.isTTY&&process.stdin.setRawMode&&process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.once("data",e)}),console.clear())}if("olympiad"===eo&&"olympiad"!==X&&(console.log(),console.log(chalk.yellow(" This mode will download ~500MB of CTF tools and AI models.")),await H({message:"Continue?",default:!0})||(eo="selection",console.log(chalk.gray(" Switched to National Selection mode.")))),eo!==X&&s({mode:eo}),console.log(),"olympiad"===eo&&m(G)){d(G),console.log(chalk.gray(" Checking competition environment..."));const{execSync:o}=await import("node:child_process"),e=[{name:"pwntools",cmd:'python3 -c "import pwn"'},{name:"z3-solver",cmd:'python3 -c "import z3"'},{name:"numpy",cmd:'python3 -c "import numpy"'},{name:"requests",cmd:'python3 -c "import requests"'}];let t=0;for(const l of e)try{o(l.cmd,{stdio:"ignore"})}catch{t++}if(t>0){console.log(chalk.yellow(` ${t} core libraries missing.`));try{const{confirm:o}=await import("@inquirer/prompts");if(await o({message:" Install competition Python libraries now?",default:!0,theme:{prefix:"",style:{message:o=>chalk.green(o),defaultAnswer:o=>chalk.green(o)}}})){console.log();const{execSync:o}=await import("node:child_process");o("icoa env setup",{stdio:"inherit"})}}catch{console.log(chalk.gray(" Run ")+chalk.white("env setup")+chalk.gray(" later to install."))}console.log()}else console.log(chalk.green(" All core libraries ready.")),console.log()}if(T){const o=y();if(o){const e=Math.floor(o.awaySeconds/60),t=o.awaySeconds%60;console.log(chalk.yellow(` Session resumed. Away: ${e}m ${t}s | Total exits: ${o.exitCount}`)),console.log()}}"selection"===eo?K():"embodied"===eo?(console.log(chalk.cyan.bold(" [Embodied AI Security 🤖]")),console.log(),console.log(chalk.bold.cyan(" VLA4CTF")+chalk.gray(" — ICOA 2026's new competition track")),console.log(chalk.gray(" alongside ")+chalk.green("AI4CTF")+chalk.gray(" (Day 1) and ")+chalk.red("CTF4AI")+chalk.gray(" (Day 2)")),console.log(),console.log(chalk.white(" Embodied AI is at its ImageNet moment.")),console.log(chalk.gray(" VLA models, MuJoCo physics, real robot arms —")),console.log(chalk.gray(" all running on ICOA servers, zero local setup.")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.bold.green(" demo2")+chalk.gray(" ~5 min interactive intro + live MuJoCo sim")),console.log(chalk.bold.green(" learn")+chalk.gray(" free 11-card intro (LEARNDEMO01)")),console.log(chalk.bold.green(" learn ")+chalk.bold.yellow("EAxxxxxxxx")+chalk.gray(" full 100/480-card curriculum (team-issued)")),console.log(chalk.bold.green(" exam ")+chalk.bold.yellow("PDxxxxxxxx")+chalk.gray(" Paper D (VLA4CTF) — national selection contestants")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(),console.log(chalk.gray(" Three open tiers: ")+chalk.green("free 11")+chalk.gray(" · ")+chalk.yellow("registered 100")+chalk.gray(" · ")+chalk.bold.magenta("national team 480")+chalk.gray(" (PhD-ready)")),console.log(chalk.gray(" Country team contact: ")+chalk.cyan("australia@icoa2026.au")),console.log(),h(),console.log()):"organizer"===eo?(console.log(chalk.yellow.bold(" [National/Regional Partner]")),console.log(),console.log(chalk.bold.white(" ██╗ ██████╗ ██████╗ █████╗")),console.log(chalk.bold.white(" ██║██╔════╝██╔═══██╗██╔══██╗")),console.log(chalk.bold.white(" ██║██║ ██║ ██║███████║")),console.log(chalk.bold.white(" ██║██║ ██║ ██║██╔══██║")),console.log(chalk.bold.white(" ██║╚██████╗╚██████╔╝██║ ██║")),console.log(chalk.bold.white(" ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝")),console.log(),console.log(chalk.yellow(" International Cyber Olympiad in AI 2026")),console.log(chalk.bold.magenta(" The World's First AI-Native CLI Operating System")),console.log(chalk.bold.magenta(" for Cybersecurity & AI Security Competition")),console.log(chalk.bold.magenta(" and Olympiad for K-12")),console.log(chalk.gray(" Sydney, Australia · Jun 27 - Jul 2, 2026")),console.log(),console.log(chalk.white(" Vision")),console.log(chalk.gray(" Building a global pipeline for youth cyber & AI")),console.log(chalk.gray(" security talent through education and competition.")),console.log(),console.log(chalk.white(" Capacity")),console.log(chalk.gray(" 15,000+ concurrent online examinations")),console.log(chalk.gray(" National selection, training, and education support")),console.log(),console.log(chalk.white(" Olympic Spirit")),console.log(chalk.gray(" Excellence · Friendship · Respect")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.white(" New country accreditation & support:")),console.log(chalk.cyan(" australia@icoa2026.au")),console.log(chalk.cyan(" accreditation@icoa2026.au")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(),S?(console.log(chalk.green(` Logged in as ${$.userName}`)),console.log(chalk.white(" exam list")+chalk.gray(" Manage exams")),console.log(chalk.white(" logout")+chalk.gray(" Disconnect"))):console.log(chalk.white(" join <url>")+chalk.gray(" Connect to manage exams")),console.log(),h(),console.log()):L&&!c()?(console.log(chalk.red(" Token was activated on a different device.")),console.log(chalk.gray(" Contact organizer for assistance.")),console.log()):S?(console.log(chalk.green.bold(` Welcome back, ${$.userName}!`)),console.log(chalk.gray(` Connected to ${$.ctfdUrl}`)),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.white(" Ready to compete? Start here:")),console.log(),console.log(chalk.bold.cyan(" challenges")+chalk.gray(" Browse challenges by category")),console.log(chalk.white(" status")+chalk.gray(" Your score & hint budget")),console.log(chalk.white(" scoreboard")+chalk.gray(" Live rankings")),console.log(chalk.white(" help")+chalk.gray(" Full command list")),console.log(),console.log(chalk.gray(" Tool environment:")),console.log(chalk.white(" env")+chalk.gray(" See which of the 110 CTF tools are installed")),console.log(chalk.white(" env setup")+chalk.gray(" Install anything missing (~5 min, one-time)")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.gray(" Tip: ")+chalk.cyan("help")+chalk.gray(" · ")+w()+chalk.gray(" · ")+chalk.cyan("Ctrl+C")+chalk.gray(" pauses · ")+chalk.cyan("quit")+chalk.gray(" closes")),console.log()):L?(Y(),console.log(chalk.green.bold(" Welcome, competitor!")),console.log(chalk.gray(` Workspace: ${_}`)),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.white(" Get started:")),console.log(),console.log(chalk.white(" Step 1 ")+chalk.bold.cyan("join <url>")+chalk.gray(" Connect to competition server")),console.log(chalk.white(" Step 2 ")+chalk.bold.cyan("challenges")+chalk.gray(" Browse & solve challenges")),console.log(chalk.white(" Step 3 ")+chalk.bold.cyan("ai4ctf")+chalk.gray(" Ask AI when stuck")),console.log(),console.log(chalk.gray(" Before Step 1 — make sure your tools are ready:")),console.log(chalk.white(" env")+chalk.gray(" See which of the 110 CTF tools are installed")),console.log(chalk.white(" env setup")+chalk.gray(" Install anything missing (~5 min, one-time)")),console.log(),console.log(chalk.gray(" Also: ")+chalk.white("help")+chalk.gray(" all commands")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.gray(" Tip: ")+chalk.cyan("Ctrl+C")+chalk.gray(" pauses · ")+w()+chalk.gray(" · ")+chalk.cyan("quit")+chalk.gray(" closes CLI")),console.log()):(console.log(chalk.bold.white(" Welcome to ICOA CLI — International Olympiad")),console.log(),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.white(" To begin, activate your competition token:")),console.log(),console.log(chalk.bold.cyan(" activate <token>")),console.log(),console.log(chalk.gray(" While waiting, explore:")),console.log(chalk.white(" ref linux")+chalk.gray(" Quick reference for Linux")),console.log(chalk.white(" ref web")+chalk.gray(" Quick reference for Web")),console.log(chalk.white(" env")+chalk.gray(" See which of the 110 CTF tools are installed")),console.log(chalk.white(" env setup")+chalk.gray(" Install anything missing (~5 min, one-time)")),console.log(chalk.white(" help")+chalk.gray(" All available commands")),console.log(chalk.gray(" ─────────────────────────────────────────────")),console.log(chalk.gray(" Tip: ")+chalk.cyan("Ctrl+C")+chalk.gray(" pauses · ")+w()+chalk.gray(" · ")+chalk.cyan("quit")+chalk.gray(" closes CLI")),console.log()),e.exitOverride(),e.configureOutput({writeErr:()=>{},writeOut:o=>{console.log(o)}});const to=o({input:process.stdin,output:process.stdout,prompt:Q(),terminal:!0});let lo=!1;p(!0),N();const no=to.prompt.bind(to);to.prompt=o=>{f()||x()||C()||to.setPrompt(Q()),no(o)},to.prompt(),to.on("line",async o=>{if(lo)return;const l=o.trim();if(!l)return to.setPrompt(f()?chalk.magenta("ai4ctf> "):Q()),void to.prompt();if("menu"===l||"menu confirm"===l)return k()&&"menu confirm"!==l?(console.log(),console.log(chalk.yellow(" Real exam active. Progress is auto-saved.")),console.log(chalk.gray(" To return to main menu anyway, type ")+chalk.white("menu confirm")),console.log(),void to.prompt()):void u(to);if(f()){lo=!0;const o=await b(l);return lo=!1,"exit"===o&&to.setPrompt(Q()),void to.prompt()}if(x()){lo=!0;const o=await v(l);return lo=!1,"exit"!==o&&"solved"!==o||to.setPrompt(Q()),void to.prompt()}if(C()){lo=!0;const o=await A(l);return lo=!1,"exit"===o&&to.setPrompt(Q()),to.setPrompt(C()?chalk.bold.cyan("vla4ctf> "):Q()),void to.prompt()}if(R(l),"exit"===l)return I()?(console.log(),console.log(chalk.yellow(" ⚠ An exam is in progress.")),console.log(chalk.white(" To return to menu without losing progress, type: ")+chalk.bold.cyan("back")),console.log(chalk.white(" To fully close ICOA CLI, type: ")+chalk.bold.cyan("quit")),console.log(chalk.gray(" Your progress is auto-saved either way.")),console.log(),void to.prompt()):(console.log(),console.log(chalk.gray(" ")+chalk.white("exit")+chalk.gray(" returns to the main menu. To fully close ICOA CLI, type ")+chalk.bold.cyan("quit")+chalk.gray(".")),"selection"===eo&&K(),void to.prompt());if("quit"===l||"q"===l||"quit confirm"===l){const o=I();return o&&"demo-free"!==o.session.examId&&"quit confirm"!==l?(console.log(),console.log(chalk.yellow(" ⚠ A real exam is in progress.")),console.log(chalk.gray(" Your answers are auto-saved on the server, but the exam timer keeps ticking")),console.log(chalk.gray(" on the server side even if you close the CLI.")),console.log(),console.log(chalk.white(" To leave the CLI but keep the exam alive, type: ")+chalk.bold.cyan("back")),console.log(chalk.gray(" (recommended — you can resume with ")+chalk.cyan("exam q 1")+chalk.gray(" after relaunching icoa)")),console.log(),console.log(chalk.white(" To really close ICOA CLI, type: ")+chalk.bold.cyan("quit confirm")),console.log(),void to.prompt()):(o&&"demo-free"===o.session.examId&&(console.log(),console.log(chalk.gray(" Demo paused. Resume with: ")+chalk.white("demo")+chalk.gray(" (fresh) or ")+chalk.white("exam q 1")+chalk.gray(" (continue)."))),F(),g(),console.log(chalk.gray(" Session saved. Use ")+chalk.white("icoa --resume")+chalk.gray(" to continue.")),E(),void O(0))}if("back"===l){const o=I(),e=o&&"demo-free"!==o.session.examId,t=o&&"demo-free"===o.session.examId&&(()=>{const e=new Date(o.session.startedAt||0).getTime();return Date.now()-e<18e5})();if(e)console.log(),console.log(chalk.gray(" Exam paused. Your progress is saved.")),console.log(chalk.white(" Resume: exam q 1")+chalk.gray(" · ")+chalk.white("exam review")+chalk.gray(" · ")+chalk.white("exam submit")),console.log();else if(t){const e=Object.keys(o.answers).length,t=o.session.questionCount;console.log(),console.log(chalk.gray(` Demo paused (${e}/${t} answered). Resume with: `)+chalk.white("exam q 1")),console.log(chalk.gray(" Or type ")+chalk.white("demo")+chalk.gray(" to restart.")),console.log()}else{if(o&&"demo-free"===o.session.examId){const{clearExamState:o}=await import("./lib/exam-state.js");o("demo-free")}const e=n();fetch("https://practice.icoa2026.au/api/icoa/demo-stats",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"post-report-back",lang:e.language||"en",timestamp:(new Date).toISOString()}),signal:AbortSignal.timeout(5e3)}).catch(()=>{}),"selection"===eo?K():console.log(chalk.gray(" Already at main menu."))}return void to.prompt()}if("help"===l||"?"===l){if(I()){lo=!0;try{await e.parseAsync(["node","icoa","exam","help"])}catch{}return lo=!1,void to.prompt()}return function(o,e="olympiad"){console.log(),"selection"===e||"organizer"===e?(console.log(chalk.bold.white(" Exam")),console.log(chalk.white(" join <url> ")+chalk.gray("Connect to exam server")),console.log(chalk.white(" exam list ")+chalk.gray("Available exams")),console.log(chalk.white(" exam start <id> ")+chalk.gray("Begin an exam")),console.log(chalk.white(" exam q [n] ")+chalk.gray("View questions")),console.log(chalk.white(" exam answer <n> <X> ")+chalk.gray("Answer question")),console.log(chalk.white(" exam review ")+chalk.gray("Review all answers")),console.log(chalk.white(" exam submit ")+chalk.gray("Submit for grading")),console.log(chalk.white(" exam result ")+chalk.gray("View your score")),console.log(),console.log(chalk.bold.white(" System")),console.log(chalk.white(" ref [topic] ")+chalk.gray("Quick reference")),console.log(chalk.white(" setup ")+chalk.gray("Settings / switch mode")),console.log(chalk.white(" lang [code] ")+chalk.gray("Switch language")),console.log(chalk.white(" clear ")+chalk.gray("Clear screen")),console.log(chalk.white(" exit ")+chalk.gray("Quit")),console.log()):o?(console.log(chalk.cyan(" ═══════════════════════════════════════════════")),console.log(chalk.bold.white(" How it works")),console.log(),console.log(chalk.gray(" 1. Browse ")+chalk.white("challenges")+chalk.gray(" and pick one")),console.log(chalk.gray(" 2. ")+chalk.white("open <id>")+chalk.gray(" to read the challenge")),console.log(chalk.gray(" 3. Use ")+chalk.white("ai4ctf")+chalk.gray(" to chat with AI when stuck")),console.log(chalk.gray(" 4. ")+chalk.white("submit <id> icoa{flag}")+chalk.gray(" to score points")),console.log(chalk.gray(" 5. Check ")+chalk.white("scoreboard")+chalk.gray(" to track your rank")),console.log(chalk.cyan(" ═══════════════════════════════════════════════")),console.log(),console.log(chalk.bold.white(" Competition")),console.log(chalk.white(" join <url> ")+chalk.gray("Connect to CTFd")),console.log(chalk.white(" challenges (ch) ")+chalk.gray("List challenges by category")),console.log(chalk.white(" open <id> ")+chalk.gray("Read challenge + get next steps")),console.log(chalk.white(" submit <id> <flag> ")+chalk.gray("Submit a flag")),console.log(chalk.white(" scoreboard (sb) ")+chalk.gray("Live rankings")),console.log(chalk.white(" status ")+chalk.gray("Your score, budget & timer")),console.log(chalk.white(" time ")+chalk.gray("Countdown timer")),console.log(),console.log(chalk.bold.white(" AI Teammate")+chalk.gray(" — 3 levels, use wisely")),console.log(chalk.white(' hint "question" ')+chalk.gray("Level A — General guidance (50 uses)")),console.log(chalk.white(' hint-b "question" ')+chalk.gray("Level B — Deep analysis (10 uses)")),console.log(chalk.white(' hint-c "question" ')+chalk.gray("Level C — Critical assist (2 uses)")),console.log(chalk.white(" hint budget ")+chalk.gray("Check remaining uses")),console.log(chalk.white(" ai4ctf ")+chalk.gray("Free-chat with AI (no limit)")),console.log(),console.log(chalk.bold.white(" Tools")),console.log(chalk.white(" ref [topic] ")+chalk.gray("Quick reference (linux, web, crypto...)")),console.log(chalk.white(" shell ")+chalk.gray("Docker sandbox")),console.log(chalk.white(" files <id> ")+chalk.gray("Download challenge files")),console.log(chalk.white(" connect <id> ")+chalk.gray("Connect to remote target")),console.log(chalk.white(" note [text] ")+chalk.gray("Personal notepad")),console.log(chalk.white(" log ")+chalk.gray("Session history")),console.log(),console.log(chalk.bold.white(" System")),console.log(chalk.white(" setup ")+chalk.gray("Configure settings")),console.log(chalk.white(" lang [code] ")+chalk.gray("Switch language (15 supported)")),console.log(chalk.white(" logout ")+chalk.gray("Disconnect")),console.log(chalk.white(" clear ")+chalk.gray("Clear screen")),console.log(chalk.white(" exit ")+chalk.gray("Quit (session saved)")),console.log()):(console.log(chalk.bold.yellow(" Restricted Mode — activate with a token to unlock all commands")),console.log(),console.log(chalk.white(" activate <token> ")+chalk.gray("Unlock full access")),console.log(chalk.white(" ref [topic] ")+chalk.gray("Quick reference")),console.log(chalk.white(" exit ")+chalk.gray("Quit")),console.log())}(a(),eo),void to.prompt()}if("more help"===l.toLowerCase()&&I()){lo=!0;try{await e.parseAsync(["node","icoa","exam","more-help"])}catch{}return lo=!1,void to.prompt()}if("continue"===l.toLowerCase())return console.log(),console.log(chalk.green.bold(" ═══ AI4CTF — AI as Your Teammate ═══")),console.log(),console.log(chalk.white(" In AI4CTF, you solve cybersecurity challenges")),console.log(chalk.white(" with AI by your side.")),console.log(),console.log(chalk.white(" In competition, you get AI help at 3 levels:")),console.log(chalk.yellow(" hint a")+chalk.gray(" General guidance (50 uses)")),console.log(chalk.yellow(" hint b")+chalk.gray(" Deep analysis (10 uses)")),console.log(chalk.yellow(" hint c")+chalk.gray(" Critical assist (2 uses)")),console.log(),console.log(chalk.white(" Try it now! Type: ")+chalk.bold.green("ai4ctf")),console.log(chalk.gray(' Chat freely with your AI teammate. Type "exit" when done.')),console.log(),console.log(chalk.gray(" After ai4ctf, try: ")+chalk.bold.red("ctf4ai")+chalk.gray(' — trick the AI into saying "koala"')),console.log(),void to.prompt();if(/^ICOA-[A-Z]{2,3}-\d{1,6}$/i.test(l.trim())){lo=!0;try{await e.parseAsync(["node","icoa","exam","token",l.trim()])}catch{}return lo=!1,void to.prompt()}if(/^[A-Z]{2}[0-9A-HJKMNP-TV-Z]{8}$/i.test(l.trim())){lo=!0;try{await e.parseAsync(["node","icoa","exam","token",l.trim().toUpperCase()])}catch{}return lo=!1,void to.prompt()}const s=l.match(/^exam\s+([A-Z]{2}[0-9A-HJKMNP-TV-Z]{8})$/i);if(s){lo=!0;try{await e.parseAsync(["node","icoa","exam","token",s[1].toUpperCase()])}catch{}return lo=!1,void to.prompt()}const y=l.match(/^exam\s+([A-Z]{2,3})$/i);if(y){lo=!0;try{await e.parseAsync(["node","icoa","exam","list",y[1]])}catch{}return lo=!1,void to.prompt()}if("clear"===l||"cls"===l)return console.clear(),void to.prompt();if(l.startsWith("activate ")){const o=l.slice(9).trim(),e=r(o);return"ok"===e?console.log(chalk.green(" Access granted! Token bound to this device.")):"already_bound"===e?(console.log(),console.log(chalk.red(" Token already activated on a different device.")),console.log(chalk.gray(" Each token binds to the first device that uses it. If you lost the device,")),console.log(chalk.gray(" contact your proctor to have the token re-issued for a new device."))):(console.log(),console.log(chalk.red(" Token not recognized.")),console.log(chalk.gray(" Possible reasons:")),console.log(chalk.white(" • ")+chalk.gray("Typo — tokens are case-insensitive, 10 chars, start with a 2-letter country code (e.g. ")+chalk.cyan("UAK7M2R9Q4")+chalk.gray(")")),console.log(chalk.white(" • ")+chalk.gray("Expired — ask your proctor or organizer for a fresh token")),console.log(chalk.white(" • ")+chalk.gray("Network — verify connection to ")+chalk.cyan("practice.icoa2026.au")),console.log(chalk.gray(" Still stuck? type ")+chalk.cyan("help")+chalk.gray(" or try ")+chalk.cyan("exam demo")+chalk.gray(" for a free practice round."))),console.log(),void to.prompt()}if("activate"===l)return console.log(chalk.gray(" Usage: ")+chalk.white("activate <token>")),console.log(),void to.prompt();const m=I();if(m){const o=l.toUpperCase().trim(),t=o=>{const e=m.questions.find(e=>e.number===o);return!!e&&("ai4ctf"===e.type||"ctf4ai"===e.type||e.options&&!e.options.A&&!e.options.B)},n=o=>{const e="demo-free"!==m.session.examId,t=e&&o>=39?"ctf4ai":e&&o>=31?"ai4ctf":null;console.log(),console.log(chalk.yellow(` Q${o} is a practical question — letters (A/B/C/D) don't apply here.`)),t?(console.log(chalk.white(" Enter the AI chat for this question: ")+chalk.bold.cyan(t)),console.log(chalk.gray(" Or submit a flag directly: ")+chalk.green(`exam answer ${o} ICOA{your_flag}`))):console.log(chalk.gray(" Submit a flag: ")+chalk.green(`exam answer ${o} ICOA{your_flag}`)),console.log()};if(/^[ABCD]$/.test(o)){const l=m._lastQ||1;if(t(l))return n(l),void to.prompt();lo=!0;try{await e.parseAsync(["node","icoa","exam","answer",String(l),o])}catch{}return lo=!1,void to.prompt()}const s=o.match(/^(\d+)\s+([ABCD])$/);if(s){const o=parseInt(s[1],10);if(t(o))return n(o),void to.prompt();lo=!0;try{await e.parseAsync(["node","icoa","exam","answer",s[1],s[2]])}catch{}return lo=!1,void to.prompt()}}const d=l.split(/\s+/)[0].toLowerCase(),p=/^python3?(\.\d+)?$/.test(d),h=l.startsWith("!")||d.startsWith("!")||p;if("embodied"===eo&&!h&&!["demo2","learn","exam","vla4ctf","lang","ref","setup","env"].includes(d))return console.log(chalk.gray(" Not available in Embodied AI Security mode.")),console.log(chalk.white(" Try ")+chalk.bold.cyan("demo2")+chalk.gray(" (intro) · ")+chalk.bold.cyan("learn")+chalk.gray(" (curriculum) · ")+chalk.bold.cyan("exam <PD-token>")+chalk.gray(" (Paper D)")),console.log(),void to.prompt();if("selection"===eo&&!h&&!["exam","demo","retry","nations","next","prev","continue","setup","lang","ref","ai4ctf","ctf4ai","mark","unmark","review","submit","env"].includes(d)){if(console.log(chalk.gray(" Not available in Selection mode.")),m){const o=m._lastQ||1;console.log(chalk.white(` Resume exam: exam q ${o}`)+chalk.gray(" · ")+chalk.white("A/B/C/D")+chalk.gray(" to answer"))}else console.log(chalk.gray(" Try: demo · setup to switch mode"));return console.log(),void to.prompt()}if("organizer"===eo&&!["join","exam","demo","retry","next","prev","logout","setup","lang","ref","ctf","mark","unmark","review","submit"].includes(d))return console.log(chalk.gray(" Not available in Organizer mode. Switch via: setup")),console.log(),void to.prompt();if(!("olympiad"!==eo||a()&&c()||i(d)))return console.log(chalk.yellow(" Restricted mode. ")+chalk.gray("Enter your access token:")),console.log(chalk.white(" activate <token>")),console.log(),console.log(chalk.gray(" Free commands: ")+chalk.white("ref [topic]")+chalk.gray(", ")+chalk.white("help")+chalk.gray(", ")+chalk.white("exit")),console.log(),void to.prompt();if(!["join","activate","challenges","ch","open","submit","flag","scoreboard","sb","status","time","ref","shell","files","connect","note","log","lang","setup","env","ai4ctf","model","ctf","exam","demo","retry","nations","next","prev","continue","logout","ctf4ai","mark","unmark","review","submit","learn","demo2","vla4ctf","theme"].includes(d)){if(V.has(d))return console.log(chalk.red(` Blocked: ${d} is not allowed during competition.`)),console.log(),void to.prompt();if(/(?:^|\s)(?:\/(?!home\/|Users\/|tmp\/)|\.\.\/|~\/)/.test(l)&&!l.startsWith("cd ")){const o=/(?:^|\s)\/(?!home\/\w+\/icoa-workspace|Users\/\w+\/icoa-workspace|tmp\/)/.test(l),e=/\.\./.test(l);if(o||e)return console.log(chalk.red(" Blocked: access outside workspace is not allowed.")),console.log(chalk.gray(` Workspace: ${_}`)),console.log(),void to.prompt()}let o=l.startsWith("!")?l.slice(1).trim():l;if("darwin"===process.platform){const e="/opt/homebrew/opt/python@3.12/bin/python3.12";o=o.replace(/^python3?\s/,`${e} `).replace(/^(python3|python)$/,e)}else if("win32"===process.platform){const e=(()=>{try{return t("py -3 --version",{stdio:["ignore","ignore","ignore"],timeout:1500}),"py -3"}catch{}return"python"})();o=o.replace(/^python3?(\.\d+)?\s/,`${e} `).replace(/^python3?(\.\d+)?$/,e)}else{const e=(()=>{try{return t("which python3.12",{stdio:"ignore"}),"python3.12"}catch{return"python3"}})();o=o.replace(/^python\s/,`${e} `).replace(/^python$/,e)}const e=Y();/^(\S*python3?(\.\d+)?)\s*$/.test(o)&&(o=`PYTHONSTARTUP="${function(){const o=B(W(),".icoa");M(o)||U(o,{recursive:!0});const e=B(o,"python-startup.py");return M(e)||z(e,"# ICOA exam interactive startup — auto-loaded by PYTHONSTARTUP\nimport base64, struct, hashlib, re, json, os, sys, binascii\ntry: import requests\nexcept ImportError: pass\ntry: from Crypto.Cipher import AES\nexcept ImportError: pass\ntry: from Crypto.Util.Padding import pad, unpad\nexcept ImportError: pass\ntry: from pwn import xor, p32, u32, p64, u64\nexcept ImportError: pass\ntry: import bs4\nexcept ImportError: pass\ntry: import numpy as np\nexcept ImportError: pass\n"),e}()}" ${o}`,console.log(),console.log(chalk.cyan(" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")),console.log(chalk.bold.white(" Python ready — ICOA exam toolkit pre-loaded")),console.log(chalk.cyan(" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")),console.log(),console.log(chalk.white(" Already imported: ")+chalk.gray("base64, struct, hashlib, re, json, binascii")),console.log(chalk.white(" Also available: ")+chalk.gray("requests, bs4, numpy, AES, pad/unpad, xor, p32/u32/p64/u64")),console.log(),console.log(chalk.yellow(" Quick examples:")),console.log(chalk.gray(' base64.b64decode("aGVsbG8=") ')+chalk.gray("# decode base64")),console.log(chalk.gray(' bytes.fromhex("48656c6c6f") ')+chalk.gray("# hex → bytes")),console.log(chalk.gray(' "ICOA{x}".encode() ')+chalk.gray("# str → bytes")),console.log(chalk.gray(" [chr(c) for c in [73,67,79,65]] ")+chalk.gray("# ASCII codes")),console.log(chalk.gray(' xor(bytes.fromhex("0a2b"), b"IC") ')+chalk.gray("# pwntools XOR")),console.log(),console.log(chalk.gray(" Exit: ")+chalk.white("exit()")+chalk.gray(" or Ctrl-D")),console.log(chalk.cyan(" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")),console.log()),lo=!0;try{j()&&await q()?await D(o,to):await Z(o,to,e)}catch{console.log(chalk.yellow(` Command failed: ${d}`))}return lo=!1,console.log(),void to.prompt()}lo=!0;const w=l.trim(),T=w.toLowerCase();let $,S=null,L="";if(m)if("submit"===T)S="final";else if(T.startsWith("submit ")){let o=w.slice(7).trim();/^submit\s+/i.test(o)&&(o=o.replace(/^submit\s+/i,"").trim()),o=o.replace(/^["'`]+|["'`]+$/g,"").trim(),o&&/^ICOA\{[^}]*\}?$/i.test(o)&&(S="flag",L=o)}else/^ICOA\{[^}]+\}$/i.test(w)&&(S="flag",L=w);$="final"===S?["exam","submit"]:"flag"===S?["exam","answer",String(m?._lastQ||1),L]:function(o){const e=o.split(/\s+/),t=e[0].toLowerCase(),l=e.slice(1),n={demo:["exam","demo"],retry:["exam","demo-retry"],nations:["exam","nations"],next:["exam","next"],prev:["exam","prev"],mark:["exam","mark",...l],unmark:["exam","unmark",...l],review:["exam","review"],logout:["ctf","logout"],join:["ctf","join",...l],activate:["ctf","activate",...l],challenges:["ctf","challenges"],ch:["ctf","challenges"],open:["ctf","open",...l],submit:["ctf","submit",...l],flag:["ctf","submit",...l],scoreboard:["ctf","scoreboard",...l],sb:["ctf","scoreboard",...l],status:["ctf","status"],time:["ctf","time"]};return n[t]?n[t]:["ref","shell","files","connect","note","log","lang","setup","env","ai4ctf","model","ctf","exam","ctf4ai"].includes(t)?[t,...l]:e}(l);const P="ctf"===$[0]&&"join"===$[1];P&&to.pause(),process.exit=()=>{throw new Error(J)};try{await e.parseAsync(["node","icoa",...$])}catch(o){const e=o instanceof Error?o.message:String(o);if(e===J);else if(e.includes("commander.unknownCommand")){const{distance:o}=await import("fastest-levenshtein"),e=["ctf","ref","shell","files","connect","note","log","lang","setup","env","ai4ctf","exam","ctf4ai","theme","clear","cls","quit","exit","back","menu","help","continue","activate","demo","challenges","status","scoreboard","join","logout"],t=d.split(/\s+/)[0]||d;let l={word:"",dist:1/0};for(const n of e){const e=o(t.toLowerCase(),n);e<l.dist&&(l={word:n,dist:e})}console.log(chalk.yellow(` Unknown command: ${d}.`)),l.dist>0&&l.dist<=2&&console.log(chalk.gray(" Did you mean: ")+chalk.bold.cyan(l.word)+chalk.gray("?")),console.log(chalk.gray(" Type ")+chalk.cyan("help")+chalk.gray(" for the full command list."))}else e.includes("commander.")||(e.includes("fetch failed")||e.includes("ECONNREFUSED")||e.includes("ETIMEDOUT"))&&console.log(chalk.yellow(" Network error. Check your connection."))}finally{process.exit=O,lo=!1,P&&to.resume()}f()?to.setPrompt(chalk.magenta("ai4ctf> ")):x()?to.setPrompt(chalk.red("ctf4ai> ")):C()&&to.setPrompt(chalk.bold.cyan("vla4ctf> ")),console.log(),to.prompt()}),to.on("SIGINT",()=>{if(console.log(),f()||x())console.log(chalk.yellow(" Ctrl+C did not close ICOA CLI — you are still in the AI chat.")),console.log(chalk.white(" Type ")+chalk.bold.cyan("exit")+chalk.white(" to leave the chat and return to the menu."));else if(I()){const o="demo-free"!==I().session.examId;console.log(chalk.yellow(" Ctrl+C did NOT close ICOA CLI.")),console.log(chalk.gray(` Your ${o?"exam":"demo"} is paused and every answer is auto-saved.`)),console.log(),console.log(chalk.white(" Resume: ")+chalk.cyan("exam q 1")+chalk.gray(" · Back to menu: ")+chalk.cyan("back")+chalk.gray(" · Close CLI: ")+chalk.cyan(o?"quit confirm":"quit"))}else console.log(chalk.yellow(" Ctrl+C did not close ICOA CLI — you are still at the ")+chalk.cyan("icoa>")+chalk.yellow(" prompt.")),console.log(chalk.gray(" Keep typing — ")+chalk.cyan("help")+chalk.gray(" lists commands. (Only ")+chalk.cyan("quit")+chalk.gray(" or Ctrl+D actually close the CLI.)"));console.log(),to.prompt()}),to.on("close",()=>{F(),g(),E(),O(0)})}function Z(o,t,l){return new Promise(n=>{const s=process.stdin,a=!!s.isTTY&&!!s.isRaw;if(t.pause(),s.isTTY&&"function"==typeof s.setRawMode)try{s.setRawMode(!1)}catch{}const r=e(o,{shell:!0,stdio:"inherit",cwd:l||process.cwd()}),i=()=>{if(s.isTTY&&"function"==typeof s.setRawMode&&a)try{s.setRawMode(!0)}catch{}t.resume(),n()};r.on("close",i),r.on("error",i)})}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "2.19.126",
3
+ "version": "2.19.127",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {