@enhance-eng/sandbox 0.3.16 → 0.3.17

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
- const _0x342511=_0x3436;(function(_0x15343a,_0x5258b5){const _0x5422c0=_0x3436,_0x5b7ad5=_0x15343a();while(!![]){try{const _0x9f5a0e=-parseInt(_0x5422c0(0x1f1))/0x1*(-parseInt(_0x5422c0(0x282))/0x2)+-parseInt(_0x5422c0(0x228))/0x3*(-parseInt(_0x5422c0(0x296))/0x4)+-parseInt(_0x5422c0(0x234))/0x5+-parseInt(_0x5422c0(0x254))/0x6+-parseInt(_0x5422c0(0x2b1))/0x7+parseInt(_0x5422c0(0x299))/0x8*(-parseInt(_0x5422c0(0x260))/0x9)+parseInt(_0x5422c0(0x247))/0xa;if(_0x9f5a0e===_0x5258b5)break;else _0x5b7ad5['push'](_0x5b7ad5['shift']());}catch(_0x260a31){_0x5b7ad5['push'](_0x5b7ad5['shift']());}}}(_0x3a8c,0xb5bcf));function normalizeOptions(_0x3cc3c7){const _0x4c63c6=_0x3436,_0x4d590a=_0x3cc3c7[_0x4c63c6(0x29c)]??{};return{'callbackBypass':_0x3cc3c7[_0x4c63c6(0x241)],'overlay':{'enabled':!![],'position':_0x4c63c6(0x222),'enableViteHmr':_0x4d590a[_0x4c63c6(0x20c)]??![]},'logLevel':_0x4c63c6(0x28d),'swPath':_0x4c63c6(0x218),'overlayPath':_0x4d590a[_0x4c63c6(0x264)]??_0x4c63c6(0x1fc),'runtimeScriptPath':_0x4c63c6(0x245),'security':_0x4d590a[_0x4c63c6(0x20a)]??_0x4c63c6(0x2b3),'backendUrl':_0x4d590a['backendUrl']??_0x4c63c6(0x283)};}var state={'enabled':![],'controlled':![]};function getEnhancementUrl(){const _0x471030=_0x3436;try{const _0x535805=new URLSearchParams(window[_0x471030(0x28f)][_0x471030(0x27f)]);return _0x535805[_0x471030(0x1f2)]('enhancementUrl')?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x342511(0x24c),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x27080b){const _0x3593b4=_0x342511;console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x1fe)),console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x225)+_0x27080b[_0x3593b4(0x264)]),console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x268)+_0x27080b[_0x3593b4(0x27b)]),currentOptions=_0x27080b['options'],toggleHandler=_0x27080b[_0x3593b4(0x258)];if(overlayController){console['log'](LOG_PREFIX+_0x3593b4(0x22d)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x3593b4(0x253)),overlayLoadPromise;console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x279)),overlayLoadPromise=doLoadOverlay(_0x27080b);try{await overlayLoadPromise,console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x1ed));}catch(_0x3147b9){console[_0x3593b4(0x250)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x3147b9);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x10ee8a){const _0x364537=_0x342511;console[_0x364537(0x29e)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x364537(0x226)){console[_0x364537(0x29e)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x364537(0x1fb)]){console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x255)),overlayController=window[_0x364537(0x1fb)],overlayController[_0x364537(0x258)](_0x10ee8a[_0x364537(0x258)]),updateOverlay();return;}console[_0x364537(0x29e)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x10ee8a['enableViteHmr']&&(console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x28a)),await setupRemoteHMR(_0x10ee8a[_0x364537(0x264)]));console['log'](LOG_PREFIX+_0x364537(0x1f6)+_0x10ee8a[_0x364537(0x264)]);const _0x4e1111=Date['now'](),_0x3f3bb1=await import(_0x10ee8a[_0x364537(0x264)]);console['log'](LOG_PREFIX+_0x364537(0x220)+(Date['now']()-_0x4e1111)+'ms'),console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x259),Object[_0x364537(0x22f)](_0x3f3bb1));if(typeof _0x3f3bb1?.[_0x364537(0x27a)]!==_0x364537(0x21b)){console[_0x364537(0x250)](LOG_PREFIX+_0x364537(0x1ec)),console['error'](LOG_PREFIX+_0x364537(0x26b),Object[_0x364537(0x22f)](_0x3f3bb1));return;}console['log'](LOG_PREFIX+_0x364537(0x25b));const _0x4f5e59=_0x3f3bb1[_0x364537(0x27a)]();console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x269),_0x4f5e59),overlayController=_0x4f5e59,window[_0x364537(0x1fb)]=_0x4f5e59,_0x4f5e59['onToggle'](_0x10ee8a[_0x364537(0x258)]),console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x295)),console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x205)),updateOverlay();}catch(_0x3f60b9){console[_0x364537(0x250)](LOG_PREFIX+_0x364537(0x2a5),_0x3f60b9);}}function updateOverlay(){const _0x5e3f95=_0x342511;console['log'](LOG_PREFIX+_0x5e3f95(0x1e8)),console[_0x5e3f95(0x29e)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console['log'](LOG_PREFIX+_0x5e3f95(0x20e)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x5e3f95(0x29e)](LOG_PREFIX+_0x5e3f95(0x23d));return;}const _0x34e329=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x5e3f95(0x243)](_0x34e329,null,0x2)),overlayController[_0x5e3f95(0x286)](_0x34e329),console[_0x5e3f95(0x29e)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x2618e4){const _0x32dfaa=_0x342511,_0x401a5f=getEnhancementUrl();return console[_0x32dfaa(0x29e)](LOG_PREFIX+_0x32dfaa(0x20f)+_0x401a5f),console[_0x32dfaa(0x29e)](LOG_PREFIX+_0x32dfaa(0x209)+state[_0x32dfaa(0x276)]),console['log'](LOG_PREFIX+_0x32dfaa(0x232)+state[_0x32dfaa(0x285)]),{'enhancementUrl':_0x401a5f,'enabled':state['enabled'],'controlled':state[_0x32dfaa(0x285)],'overlayPosition':_0x2618e4[_0x32dfaa(0x27d)][_0x32dfaa(0x216)],'securityMode':_0x2618e4[_0x32dfaa(0x20a)],'backendBaseUrl':_0x2618e4[_0x32dfaa(0x214)]};}async function setupRemoteHMR(_0x546ed9){const _0x40ae93=_0x342511;console[_0x40ae93(0x29e)](LOG_PREFIX+_0x40ae93(0x25d)+_0x546ed9);if(typeof window===_0x40ae93(0x226))return;try{const _0x2901c9=new URL(_0x546ed9,window[_0x40ae93(0x28f)][_0x40ae93(0x22e)]),_0xbf9ee4=_0x2901c9['origin'];console['log'](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0xbf9ee4+_0x40ae93(0x203)+window[_0x40ae93(0x28f)]['origin']);if(_0xbf9ee4===window[_0x40ae93(0x28f)][_0x40ae93(0x22e)]){console[_0x40ae93(0x29e)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console['log'](LOG_PREFIX+_0x40ae93(0x287)),await ensureReactRefreshPreamble(_0xbf9ee4),await ensureViteClient(_0xbf9ee4),console['log'](LOG_PREFIX+_0x40ae93(0x2aa));}catch(_0x41b339){console[_0x40ae93(0x20d)](LOG_PREFIX+_0x40ae93(0x246),_0x41b339);}}async function ensureReactRefreshPreamble(_0x29de09){const _0x455bf8=_0x342511;window[_0x455bf8(0x1e6)]??(window[_0x455bf8(0x1e6)]=new Set());if(window[_0x455bf8(0x1e6)][_0x455bf8(0x25f)](_0x29de09)){console[_0x455bf8(0x29e)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x29de09);return;}console[_0x455bf8(0x29e)](LOG_PREFIX+_0x455bf8(0x221)+_0x29de09+_0x455bf8(0x24d));const _0x46f3df=await import(_0x29de09+_0x455bf8(0x2a6)),_0x4efa0a=_0x46f3df&&typeof _0x46f3df===_0x455bf8(0x256)&&_0x455bf8(0x248)in _0x46f3df?_0x46f3df[_0x455bf8(0x248)]:_0x46f3df;if(!isRefreshRuntime(_0x4efa0a)){console[_0x455bf8(0x20d)](LOG_PREFIX+_0x455bf8(0x266));return;}_0x4efa0a[_0x455bf8(0x1ea)](window),window[_0x455bf8(0x236)]=()=>{},window[_0x455bf8(0x292)]=()=>_0x1fdc1e=>_0x1fdc1e,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x455bf8(0x1e6)]['add'](_0x29de09),console[_0x455bf8(0x29e)](LOG_PREFIX+_0x455bf8(0x290)+_0x29de09);}async function ensureViteClient(_0x1b6c8d){const _0x892529=_0x342511;window[_0x892529(0x289)]??(window[_0x892529(0x289)]=new Set());if(window['__viteHMRLoaded'][_0x892529(0x25f)](_0x1b6c8d)){console[_0x892529(0x29e)](LOG_PREFIX+_0x892529(0x244)+_0x1b6c8d);return;}console[_0x892529(0x29e)](LOG_PREFIX+_0x892529(0x278)+_0x1b6c8d+_0x892529(0x24d)),await import(_0x1b6c8d+_0x892529(0x204)),window['__viteHMRLoaded'][_0x892529(0x1f8)](_0x1b6c8d),console[_0x892529(0x29e)](LOG_PREFIX+_0x892529(0x2a9)+_0x1b6c8d);}function isRefreshRuntime(_0x1e8fba){const _0x3a75d2=_0x342511;return typeof _0x1e8fba==='object'&&_0x1e8fba!==null&&_0x3a75d2(0x1ea)in _0x1e8fba&&typeof _0x1e8fba[_0x3a75d2(0x1ea)]==='function';}var WORKER_MESSAGE_CONFIG=_0x342511(0x20b),WORKER_MESSAGE_DISABLE=_0x342511(0x235),WORKER_MESSAGE_REQUEST_CONFIG=_0x342511(0x242),LOG_PREFIX2=_0x342511(0x212),registration=null,messageListener=null,currentOptions2=null,configGetter=null;async function registerServiceWorker(_0x798642){const _0x22412b=_0x342511;console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x23a)),console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20swPath:\x20'+_0x798642[_0x22412b(0x21a)]);if(!(_0x22412b(0x23f)in navigator)){console['warn'](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x5e3135=navigator[_0x22412b(0x23f)][_0x22412b(0x2b2)];console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x227),_0x5e3135?.[_0x22412b(0x206)]??_0x22412b(0x2ac)),console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20Controller\x20state:',_0x5e3135?.[_0x22412b(0x2a1)]??'N/A');const _0x2862b4=!!_0x5e3135;currentOptions2=_0x798642,configGetter=()=>buildWorkerConfiguration(_0x798642),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x21f));const _0x48dc52=await detectBlockingServiceWorker(_0x798642[_0x22412b(0x21a)]);if(_0x48dc52){console[_0x22412b(0x250)](LOG_PREFIX2+_0x22412b(0x1ee)+_0x48dc52),console[_0x22412b(0x250)](LOG_PREFIX2+_0x22412b(0x231));return;}console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x21e));try{console['log'](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x798642[_0x22412b(0x21a)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x22412b(0x23f)][_0x22412b(0x272)](_0x798642[_0x22412b(0x21a)],{'scope':'/'}),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x1e5),{'scope':registration['scope'],'active':registration[_0x22412b(0x219)]?.[_0x22412b(0x206)],'waiting':registration['waiting']?.[_0x22412b(0x206)],'installing':registration[_0x22412b(0x277)]?.[_0x22412b(0x206)]}),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x293));const _0x2842d4=await navigator['serviceWorker']['ready'];console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x2842d4[_0x22412b(0x219)]?.[_0x22412b(0x206)]);const _0x3949ab=ownsCurrentController(_0x798642[_0x22412b(0x21a)]);state[_0x22412b(0x285)]=_0x3949ab,console['log'](LOG_PREFIX2+_0x22412b(0x233)+_0x3949ab),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x26d),navigator[_0x22412b(0x23f)][_0x22412b(0x2b2)]?.[_0x22412b(0x206)]??_0x22412b(0x2ac));if(!_0x2862b4&&!navigator[_0x22412b(0x23f)][_0x22412b(0x2b2)]){console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x229)),window['location'][_0x22412b(0x297)]();return;}console['log'](LOG_PREFIX2+_0x22412b(0x23c)),attachMessageListener(),console['log'](LOG_PREFIX2+'\x20Sending\x20initial\x20configuration...'),await sendConfiguration();if(state['enabled']){const _0x53e38c=document[_0x22412b(0x26e)](_0x22412b(0x21d))!==null;console['log'](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x53e38c);if(!_0x53e38c){console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x207)),window[_0x22412b(0x28f)][_0x22412b(0x297)]();return;}}console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x29f)),updateOverlay(),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x26a));}catch(_0x14566e){console[_0x22412b(0x250)](LOG_PREFIX2+_0x22412b(0x2b0),_0x14566e);}}async function sendConfiguration(){const _0xe6306b=_0x342511;console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x22b)),console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x2a0)+state[_0xe6306b(0x276)]+_0xe6306b(0x1f0)+!!configGetter);if(!state[_0xe6306b(0x276)]||!configGetter){console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x24a));return;}const _0x22106b=await resolveWorker();if(!_0x22106b){console[_0xe6306b(0x20d)](LOG_PREFIX2+_0xe6306b(0x298));return;}const _0x348c44=configGetter();console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x29b),JSON[_0xe6306b(0x243)](_0x348c44,null,0x2)),_0x22106b[_0xe6306b(0x211)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x348c44}),console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x1fa));}function _0x3a8c(){const _0x251f9c=['\x20Invalid\x20React\x20Refresh\x20runtime','searchParams','\x20enableViteHmr:\x20','\x20Controller\x20created:','\x20registerServiceWorker()\x20complete','\x20Available\x20exports:','MIT','\x20Current\x20controller\x20after\x20ready:','querySelector','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','public','scope','register','replaceState','\x20detectBlocking\x20error:','dist','enabled','installing','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Starting\x20fresh\x20overlay\x20load...','createOverlay','enableViteHmr','./dist/index.cjs','overlay',',\x20owns=','search','\x20detectBlocking\x20-\x20existing\x20registration:','\x20Document\x20readyState:\x20','2DHNnty','https://api.enhancelabs.ai','bin/enhance-sandbox.js','controlled','update','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20enhancementUrl:\x20','__viteHMRLoaded','\x20Setting\x20up\x20remote\x20HMR...','\x20Unregistering\x20SW...','waiting','info','module','location','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','$RefreshSig$','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','^24.10.1','\x20Overlay\x20controller\x20initialized\x20and\x20cached','1704292cdngYX','reload','\x20No\x20service\x20worker\x20active\x20to\x20configure','64mNzvGx','\x20Message\x20listener\x20detached','\x20Sending\x20config\x20to\x20SW:','__development','href','log','\x20Updating\x20overlay...','\x20state.enabled:\x20','state','\x20resolveWorker:','sw-enhance','0.3.16','\x20Failed\x20to\x20import/create\x20overlay:','/@react-refresh','delete','startsWith','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20HMR\x20setup\x20complete','data','none','type','readyState','enhancement','\x20Failed\x20to\x20register\x20service\x20worker:','4986345LFAfte','controller','permissive','\x20Registration\x20returned:','__enhanceReactRefreshInstalledOrigins','./dist/vite/index.js','\x20updateOverlay()\x20called','removeEventListener','injectIntoGlobalHook','state:\x20','\x20Module\x20missing\x20createOverlay\x20export!','\x20loadOverlay()\x20complete','\x20BLOCKING\x20SW\x20detected:\x20','enhancementUrl',',\x20configGetter:\x20','320359bATfUA','get','explicitDisable','\x20No\x20current\x20controller','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Importing\x20overlay\x20module\x20from:\x20','runtimeScriptPath','add','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','\x20Config\x20sent\x20to\x20SW','__enhanceOverlay','https://assets.enhancelabs.ai/overlay.js','./dist/index.d.ts','\x20loadOverlay()\x20called','\x20Current\x20URL:\x20','\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support','\x20URL\x20params\x20parsed:','message',',\x20page\x20origin:\x20','/@vite/client','\x20Calling\x20updateOverlay()...','scriptURL','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','^4.1.1','\x20composeOverlayState\x20-\x20state.enabled:\x20','security','enhance:configure','enableOverlayHmr','warn','\x20currentOptions\x20exists:\x20','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','N/A','postMessage','[Enhance\x20SW-Client]','off','backendUrl','^3.22.4','position','\x20SW\x20requested\x20config\x20-\x20sending...','/sw-enhance.js','active','swPath','function','[Enhance\x20Runtime]','[data-enhance-runtime-bootstrap]','\x20No\x20blocking\x20SW\x20found','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20Module\x20imported\x20in\x20','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','bottom-right','./dist/index.js','some','\x20overlayPath:\x20','undefined','\x20Current\x20controller:','3ecFhuX','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','^11.1.0','\x20sendConfiguration()\x20called','https://','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','origin','keys','enable','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','4023085DsEMsz','enhance:disable','$RefreshReg$','enhance','\x20Raw\x20options:','bin','\x20registerServiceWorker()\x20called','\x20ownsServiceWorker?\x20scriptURL=','\x20Attaching\x20message\x20listener...','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','^7.2.4','serviceWorker','\x20Unregistering\x20any\x20existing\x20SW...','callbackBypass','enhance:request-config','stringify','\x20Vite\x20client\x20already\x20loaded\x20for\x20','/assets/enhance-runtime.js','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','19182760HBAlqg','default','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','history','[Enhance\x20Overlay]','...','includes','enhancementId','error','unregister','\x20Starting\x20overlay\x20load\x20(async)...','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','1792782FmECzf','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','object','\x20Enhancement\x20mode\x20ENABLED','onToggle','\x20Module\x20exports:','false','\x20Calling\x20createOverlay()...','disable','\x20setupRemoteHMR()\x20for\x20','\x20Message\x20listener\x20attached','has','117630FHHchi','getRegistration','init','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','overlayPath','addEventListener'];_0x3a8c=function(){return _0x251f9c;};return _0x3a8c();}async function unregisterServiceWorker(_0x460ab0){const _0x4b5d57=_0x342511;console[_0x4b5d57(0x29e)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x4b5d57(0x23f)in navigator)){console[_0x4b5d57(0x29e)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}detachMessageListener();try{const _0x19cc8d=registration??await navigator[_0x4b5d57(0x23f)]['getRegistration']('/');if(!_0x19cc8d){console[_0x4b5d57(0x29e)](LOG_PREFIX2+_0x4b5d57(0x249));return;}console[_0x4b5d57(0x29e)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x19cc8d[_0x4b5d57(0x271)],'active':_0x19cc8d[_0x4b5d57(0x219)]?.[_0x4b5d57(0x206)],'waiting':_0x19cc8d[_0x4b5d57(0x28c)]?.['scriptURL'],'installing':_0x19cc8d['installing']?.[_0x4b5d57(0x206)]});const _0x62a986=[_0x19cc8d[_0x4b5d57(0x219)]?.[_0x4b5d57(0x206)],_0x19cc8d[_0x4b5d57(0x28c)]?.[_0x4b5d57(0x206)],_0x19cc8d[_0x4b5d57(0x277)]?.[_0x4b5d57(0x206)]],_0x21aec5=_0x62a986[_0x4b5d57(0x224)](_0x4f2c41=>_0x4f2c41&&ownsServiceWorker(_0x4f2c41,_0x460ab0));if(!_0x21aec5){console[_0x4b5d57(0x29e)](LOG_PREFIX2+_0x4b5d57(0x1f5));return;}_0x19cc8d[_0x4b5d57(0x219)]&&(console['log'](LOG_PREFIX2+_0x4b5d57(0x291)),_0x19cc8d[_0x4b5d57(0x219)][_0x4b5d57(0x211)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x4b5d57(0x29e)](LOG_PREFIX2+_0x4b5d57(0x28b)),await _0x19cc8d[_0x4b5d57(0x251)](),registration=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x36c796){console[_0x4b5d57(0x250)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x36c796);}}function attachMessageListener(){const _0x2a5631=_0x342511;if(!navigator[_0x2a5631(0x23f)]||messageListener){console[_0x2a5631(0x29e)](LOG_PREFIX2+_0x2a5631(0x200));return;}messageListener=_0x49d81c=>{const _0x1501ab=_0x2a5631,_0x199312=_0x49d81c[_0x1501ab(0x2ab)];console[_0x1501ab(0x29e)](LOG_PREFIX2+'\x20Received\x20message\x20from\x20SW:',_0x199312);if(!_0x199312||typeof _0x199312!==_0x1501ab(0x256))return;_0x199312[_0x1501ab(0x2ad)]===WORKER_MESSAGE_REQUEST_CONFIG&&(console[_0x1501ab(0x29e)](LOG_PREFIX2+_0x1501ab(0x217)),void sendConfiguration());},navigator[_0x2a5631(0x23f)][_0x2a5631(0x265)](_0x2a5631(0x202),messageListener),console[_0x2a5631(0x29e)](LOG_PREFIX2+_0x2a5631(0x25e));}function _0x3436(_0x3a1671,_0x35ef75){const _0x3a8c39=_0x3a8c();return _0x3436=function(_0x3436e3,_0xcd27d0){_0x3436e3=_0x3436e3-0x1e5;let _0x3118fb=_0x3a8c39[_0x3436e3];return _0x3118fb;},_0x3436(_0x3a1671,_0x35ef75);}function detachMessageListener(){const _0x15b31f=_0x342511;navigator[_0x15b31f(0x23f)]&&messageListener&&(navigator[_0x15b31f(0x23f)][_0x15b31f(0x1e9)]('message',messageListener),messageListener=null,console[_0x15b31f(0x29e)](LOG_PREFIX2+_0x15b31f(0x29a)));}function ownsServiceWorker(_0x25815f,_0x366bb7){const _0x462168=_0x342511,_0x1076f4=typeof window!=='undefined'?window[_0x462168(0x28f)][_0x462168(0x22e)]:'',_0x397283=new URL(_0x366bb7,_0x1076f4||void 0x0)['href'],_0x377007=_0x25815f===_0x397283||_0x25815f[_0x462168(0x24e)](_0x462168(0x2a3));return console[_0x462168(0x29e)](LOG_PREFIX2+_0x462168(0x23b)+_0x25815f+',\x20expected='+_0x397283+_0x462168(0x27e)+_0x377007),_0x377007;}function ownsCurrentController(_0x3e160c){const _0x1a0281=_0x342511;if(typeof navigator==='undefined')return![];const _0x537951=navigator[_0x1a0281(0x23f)]?.[_0x1a0281(0x2b2)];if(!_0x537951)return console[_0x1a0281(0x29e)](LOG_PREFIX2+_0x1a0281(0x1f4)),![];return ownsServiceWorker(_0x537951[_0x1a0281(0x206)],_0x3e160c);}async function detectBlockingServiceWorker(_0x16ca23){const _0x11a41a=_0x342511;if(!navigator[_0x11a41a(0x23f)])return null;try{const _0x21a74a=await navigator['serviceWorker'][_0x11a41a(0x261)]('/');console[_0x11a41a(0x29e)](LOG_PREFIX2+_0x11a41a(0x280),_0x21a74a?.['active']?.[_0x11a41a(0x206)]??_0x11a41a(0x2ac));const _0x2260a6=_0x21a74a?.[_0x11a41a(0x219)]?.['scriptURL'];if(!_0x2260a6)return null;if(ownsServiceWorker(_0x2260a6,_0x16ca23))return null;return _0x2260a6;}catch(_0x3e4dc8){return console['error'](LOG_PREFIX2+_0x11a41a(0x274),_0x3e4dc8),null;}}async function resolveWorker(){const _0x294b07=_0x342511,_0xb983fc=registration??await navigator[_0x294b07(0x23f)]?.[_0x294b07(0x261)]('/'),_0x79f3cf=_0xb983fc?.[_0x294b07(0x219)]??_0xb983fc?.[_0x294b07(0x28c)]??_0xb983fc?.[_0x294b07(0x277)]??null;return console[_0x294b07(0x29e)](LOG_PREFIX2+_0x294b07(0x2a2),_0x79f3cf?.['scriptURL']??'none',_0x294b07(0x1eb)+(_0x79f3cf?.[_0x294b07(0x2a1)]??_0x294b07(0x210))),_0x79f3cf;}function buildWorkerConfiguration(_0x3b0849){const _0x191640=_0x342511,_0x4f18ca=getEnhancementUrl();return console[_0x191640(0x29e)](LOG_PREFIX2+_0x191640(0x1f9)+_0x4f18ca),{'enhancementUrl':_0x4f18ca,'callbackBypass':_0x3b0849['callbackBypass'],'overlayPath':_0x3b0849[_0x191640(0x264)],'overlayEnableViteHmr':_0x3b0849[_0x191640(0x27d)]['enableViteHmr'],'runtimeScriptPath':_0x3b0849[_0x191640(0x1f7)],'swPath':_0x3b0849[_0x191640(0x21a)],'securityMode':_0x3b0849['security'],'backendUrl':_0x3b0849[_0x191640(0x214)]};}var LOG_PREFIX3=_0x342511(0x21c),initialized=![],options=null,Enhance={'init'(_0x337ed7){const _0x15368d=_0x342511,_0x397383=Date['now']();console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x397383),console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x1ff)+window[_0x15368d(0x28f)][_0x15368d(0x29d)]),console['log'](LOG_PREFIX3+_0x15368d(0x281)+document[_0x15368d(0x2ae)]),console['log'](LOG_PREFIX3+_0x15368d(0x238),JSON[_0x15368d(0x243)](_0x337ed7,null,0x2));if(initialized)return console[_0x15368d(0x20d)](LOG_PREFIX3+'\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller'),createController();initialized=!![],console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20First\x20initialization'),options=normalizeOptions(_0x337ed7),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON['stringify'](options,null,0x2));const _0x2620bf=parseUrlParams();console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x201),JSON[_0x15368d(0x243)](_0x2620bf,null,0x2));if(_0x2620bf[_0x15368d(0x1f3)])return cleanUrlParam(_0x15368d(0x237)),console['log'](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x2620bf['hasEnhancement'])return console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x257)),console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x288)+_0x2620bf[_0x15368d(0x1ef)]),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20enhancementId:\x20'+_0x2620bf[_0x15368d(0x24f)]),state[_0x15368d(0x276)]=!![],console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x252)),void loadOverlay({'overlayPath':options[_0x15368d(0x264)],'enableViteHmr':options[_0x15368d(0x27d)]['enableViteHmr'],'options':options,'onToggle':handleToggle}),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(options),console['log'](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console['log'](LOG_PREFIX3+_0x15368d(0x26f)),console['log'](LOG_PREFIX3+_0x15368d(0x240)),void unregisterServiceWorker(options[_0x15368d(0x21a)]),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),createController();}};function createController(){return{'enable'(){const _0x40bbdb=_0x3436;if(!options)return;state[_0x40bbdb(0x276)]=!![],void loadOverlay({'overlayPath':options[_0x40bbdb(0x264)],'enableViteHmr':options['overlay'][_0x40bbdb(0x27b)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){const _0x50c0cf=_0x3436;if(!options)return;state[_0x50c0cf(0x276)]=![],state[_0x50c0cf(0x285)]=![],updateOverlay(),void unregisterServiceWorker(options['swPath']);},'status'(){const _0x4763cb=_0x3436;return{'enabled':state[_0x4763cb(0x276)],'controlled':state[_0x4763cb(0x285)]};}};}function handleToggle(){const _0x5ca225=_0x342511,_0xf869ea=createController();state[_0x5ca225(0x276)]?_0xf869ea[_0x5ca225(0x25c)]():_0xf869ea[_0x5ca225(0x230)]();}function parseUrlParams(){const _0x366d18=_0x342511,_0x4cf7ca=new URL(window[_0x366d18(0x28f)][_0x366d18(0x29d)]),_0x1f2bd8=_0x4cf7ca['searchParams']['get'](_0x366d18(0x237))?.['toLowerCase'](),_0x6d8e43=_0x4cf7ca[_0x366d18(0x267)][_0x366d18(0x1f2)](_0x366d18(0x1ef)),_0xdd4c49=_0x4cf7ca[_0x366d18(0x267)]['get'](_0x366d18(0x2af));return{'hasEnhancement':Boolean(_0x6d8e43||_0xdd4c49),'explicitDisable':_0x1f2bd8==='0'||_0x1f2bd8===_0x366d18(0x25a)||_0x1f2bd8===_0x366d18(0x213),'enhancementUrl':_0x6d8e43,'enhancementId':_0xdd4c49};}function cleanUrlParam(_0xacce9b){const _0x31a4f8=_0x342511,_0x21243d=new URL(window['location']['href']);_0x21243d['searchParams']['has'](_0xacce9b)&&(_0x21243d['searchParams'][_0x31a4f8(0x2a7)](_0xacce9b),window[_0x31a4f8(0x24b)][_0x31a4f8(0x273)](null,document['title'],_0x21243d['toString']()));}var package_default={'name':'@enhance-eng/sandbox','version':_0x342511(0x2a4),'type':_0x342511(0x28e),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x342511(0x26c),'main':_0x342511(0x27c),'module':'./dist/index.js','types':_0x342511(0x1fd),'exports':{'.':{'types':_0x342511(0x1fd),'import':_0x342511(0x223),'require':_0x342511(0x27c)},'./vite':{'types':'./dist/vite/index.d.ts','import':_0x342511(0x1e7)}},'files':[_0x342511(0x275),_0x342511(0x239),'enhance.config.sample.json'],'bin':{'enhance-sandbox':_0x342511(0x284)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','dev:staging':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','build':_0x342511(0x263),'build:release':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x342511(0x22a),'zod':_0x342511(0x215)},'devDependencies':{'@types/node':_0x342511(0x294),'javascript-obfuscator':_0x342511(0x208),'tsup':'^8.5.1','vite':_0x342511(0x23e)},'publishConfig':{'access':_0x342511(0x270)}},DEFAULT_SERVICE_WORKER_PATH=_0x342511(0x218),DEFAULT_RUNTIME_PATH=_0x342511(0x245),PACKAGE_VERSION=typeof package_default['version']==='string'?package_default['version']:'0.0.0';function normalizeAssetPath(_0x1a9653){const _0x8db22a=_0x342511;if(!_0x1a9653)return _0x1a9653;if(_0x1a9653[_0x8db22a(0x2a8)]('http://')||_0x1a9653[_0x8db22a(0x2a8)](_0x8db22a(0x22c)))return _0x1a9653;const _0x3256bc=_0x1a9653['replace'](/^\.\//,'');return _0x3256bc[_0x8db22a(0x2a8)]('/')?_0x3256bc:'/'+_0x3256bc;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x416e2f){const _0xf67fb1=_0x342511;return Enhance[_0xf67fb1(0x262)](_0x416e2f);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
1
+ const _0x2b983a=_0x5263;(function(_0x744622,_0x17218a){const _0x11554d=_0x5263,_0x269b15=_0x744622();while(!![]){try{const _0x5939ec=parseInt(_0x11554d(0x17e))/0x1*(parseInt(_0x11554d(0x186))/0x2)+-parseInt(_0x11554d(0x1f7))/0x3*(-parseInt(_0x11554d(0x239))/0x4)+-parseInt(_0x11554d(0x23e))/0x5+parseInt(_0x11554d(0x215))/0x6+parseInt(_0x11554d(0x1d3))/0x7*(-parseInt(_0x11554d(0x1ec))/0x8)+parseInt(_0x11554d(0x1bd))/0x9*(parseInt(_0x11554d(0x193))/0xa)+parseInt(_0x11554d(0x17f))/0xb;if(_0x5939ec===_0x17218a)break;else _0x269b15['push'](_0x269b15['shift']());}catch(_0x6587d1){_0x269b15['push'](_0x269b15['shift']());}}}(_0x40e7,0x916ab));function normalizeOptions(_0x2149ac){const _0x5c552c=_0x5263,_0x1251e1=_0x2149ac[_0x5c552c(0x1dc)]??{};return{'callbackBypass':_0x2149ac[_0x5c552c(0x1d4)],'overlay':{'enabled':!![],'position':_0x5c552c(0x20c),'enableViteHmr':_0x1251e1[_0x5c552c(0x1ad)]??![]},'logLevel':'info','swPath':_0x5c552c(0x22b),'overlayPath':_0x1251e1['overlayPath']??_0x5c552c(0x20e),'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x1251e1['security']??'permissive','backendUrl':_0x1251e1[_0x5c552c(0x209)]??_0x5c552c(0x1bb)};}function _0x5263(_0x30250d,_0x31dcf5){const _0x40e733=_0x40e7();return _0x5263=function(_0x52633f,_0x521cbe){_0x52633f=_0x52633f-0x172;let _0x15e5ee=_0x40e733[_0x52633f];return _0x15e5ee;},_0x5263(_0x30250d,_0x31dcf5);}var state={'enabled':![],'controlled':![]};function getEnhancementUrl(){const _0x7b43cf=_0x5263;try{const _0x1bc6a5=new URLSearchParams(window[_0x7b43cf(0x1b1)]['search']);return _0x1bc6a5['get']('enhancementUrl')?.[_0x7b43cf(0x175)]()||'';}catch{return'';}}var LOG_PREFIX=_0x2b983a(0x18d),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x248d55){const _0x1dff69=_0x2b983a;console[_0x1dff69(0x17c)](LOG_PREFIX+_0x1dff69(0x21a)),console[_0x1dff69(0x17c)](LOG_PREFIX+_0x1dff69(0x1ea)+_0x248d55[_0x1dff69(0x190)]),console['log'](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x248d55[_0x1dff69(0x23f)]),currentOptions=_0x248d55[_0x1dff69(0x1db)],toggleHandler=_0x248d55[_0x1dff69(0x201)];if(overlayController){console[_0x1dff69(0x17c)](LOG_PREFIX+_0x1dff69(0x1f8)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x1dff69(0x17c)](LOG_PREFIX+_0x1dff69(0x191)),overlayLoadPromise;console[_0x1dff69(0x17c)](LOG_PREFIX+_0x1dff69(0x19f)),overlayLoadPromise=doLoadOverlay(_0x248d55);try{await overlayLoadPromise,console[_0x1dff69(0x17c)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x2a8445){console['error'](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x2a8445);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x43f52a){const _0x2d57bb=_0x2b983a;console[_0x2d57bb(0x17c)](LOG_PREFIX+_0x2d57bb(0x230));if(typeof window===_0x2d57bb(0x1b3)){console[_0x2d57bb(0x17c)](LOG_PREFIX+_0x2d57bb(0x211));return;}if(window[_0x2d57bb(0x1e7)]){console[_0x2d57bb(0x17c)](LOG_PREFIX+_0x2d57bb(0x238)),overlayController=window[_0x2d57bb(0x1e7)],overlayController[_0x2d57bb(0x201)](_0x43f52a[_0x2d57bb(0x201)]),updateOverlay();return;}console['log'](LOG_PREFIX+_0x2d57bb(0x1ef));try{_0x43f52a['enableViteHmr']&&(console[_0x2d57bb(0x17c)](LOG_PREFIX+_0x2d57bb(0x1e2)),await setupRemoteHMR(_0x43f52a[_0x2d57bb(0x190)]));console[_0x2d57bb(0x17c)](LOG_PREFIX+_0x2d57bb(0x216)+_0x43f52a[_0x2d57bb(0x190)]);const _0x3d0a96=Date[_0x2d57bb(0x1a9)](),_0x857092=await import(_0x43f52a[_0x2d57bb(0x190)]);console[_0x2d57bb(0x17c)](LOG_PREFIX+_0x2d57bb(0x236)+(Date[_0x2d57bb(0x1a9)]()-_0x3d0a96)+'ms'),console['log'](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x2d57bb(0x1a8)](_0x857092));if(typeof _0x857092?.[_0x2d57bb(0x218)]!==_0x2d57bb(0x199)){console['error'](LOG_PREFIX+_0x2d57bb(0x1e5)),console[_0x2d57bb(0x242)](LOG_PREFIX+_0x2d57bb(0x195),Object[_0x2d57bb(0x1a8)](_0x857092));return;}console['log'](LOG_PREFIX+_0x2d57bb(0x192));const _0x50d83e=_0x857092[_0x2d57bb(0x218)]();console['log'](LOG_PREFIX+_0x2d57bb(0x1fb),_0x50d83e),overlayController=_0x50d83e,window[_0x2d57bb(0x1e7)]=_0x50d83e,_0x50d83e['onToggle'](_0x43f52a[_0x2d57bb(0x201)]),console[_0x2d57bb(0x17c)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console['log'](LOG_PREFIX+_0x2d57bb(0x18f)),updateOverlay();}catch(_0x3adee9){console['error'](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x3adee9);}}function updateOverlay(){const _0x3c9722=_0x2b983a;console[_0x3c9722(0x17c)](LOG_PREFIX+_0x3c9722(0x1fa)),console[_0x3c9722(0x17c)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console[_0x3c9722(0x17c)](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console[_0x3c9722(0x17c)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x4dec4e=composeOverlayState(currentOptions);console[_0x3c9722(0x17c)](LOG_PREFIX+_0x3c9722(0x205),JSON[_0x3c9722(0x222)](_0x4dec4e,null,0x2)),overlayController[_0x3c9722(0x1a5)](_0x4dec4e),console[_0x3c9722(0x17c)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x59957b){const _0xd1e93c=_0x2b983a,_0x129047=getEnhancementUrl();return console[_0xd1e93c(0x17c)](LOG_PREFIX+_0xd1e93c(0x22a)+_0x129047),console[_0xd1e93c(0x17c)](LOG_PREFIX+_0xd1e93c(0x1c7)+state[_0xd1e93c(0x1b8)]),console[_0xd1e93c(0x17c)](LOG_PREFIX+_0xd1e93c(0x1f9)+state[_0xd1e93c(0x220)]),{'enhancementUrl':_0x129047,'enabled':state[_0xd1e93c(0x1b8)],'controlled':state[_0xd1e93c(0x220)],'overlayPosition':_0x59957b['overlay'][_0xd1e93c(0x1a0)],'securityMode':_0x59957b['security'],'backendBaseUrl':_0x59957b[_0xd1e93c(0x209)]};}async function setupRemoteHMR(_0x1a77a9){const _0x2afcb4=_0x2b983a;console['log'](LOG_PREFIX+_0x2afcb4(0x1a1)+_0x1a77a9);if(typeof window===_0x2afcb4(0x1b3))return;try{const _0x3f9741=new URL(_0x1a77a9,window['location'][_0x2afcb4(0x18a)]),_0x31522c=_0x3f9741[_0x2afcb4(0x18a)];console[_0x2afcb4(0x17c)](LOG_PREFIX+_0x2afcb4(0x208)+_0x31522c+_0x2afcb4(0x202)+window['location'][_0x2afcb4(0x18a)]);if(_0x31522c===window[_0x2afcb4(0x1b1)]['origin']){console[_0x2afcb4(0x17c)](LOG_PREFIX+_0x2afcb4(0x1c0));return;}console[_0x2afcb4(0x17c)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x31522c),await ensureViteClient(_0x31522c),console[_0x2afcb4(0x17c)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x351edf){console[_0x2afcb4(0x241)](LOG_PREFIX+_0x2afcb4(0x1f1),_0x351edf);}}async function ensureReactRefreshPreamble(_0x22712a){const _0x5d4502=_0x2b983a;window[_0x5d4502(0x1d7)]??(window[_0x5d4502(0x1d7)]=new Set());if(window[_0x5d4502(0x1d7)][_0x5d4502(0x1c2)](_0x22712a)){console[_0x5d4502(0x17c)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x22712a);return;}console['log'](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x22712a+'...');const _0x5c1d34=await import(_0x22712a+'/@react-refresh'),_0x139073=_0x5c1d34&&typeof _0x5c1d34===_0x5d4502(0x1aa)&&_0x5d4502(0x244)in _0x5c1d34?_0x5c1d34[_0x5d4502(0x244)]:_0x5c1d34;if(!isRefreshRuntime(_0x139073)){console[_0x5d4502(0x241)](LOG_PREFIX+_0x5d4502(0x1b7));return;}_0x139073['injectIntoGlobalHook'](window),window[_0x5d4502(0x1a7)]=()=>{},window['$RefreshSig$']=()=>_0x410bb5=>_0x410bb5,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x5d4502(0x1d7)][_0x5d4502(0x22e)](_0x22712a),console[_0x5d4502(0x17c)](LOG_PREFIX+_0x5d4502(0x1ed)+_0x22712a);}async function ensureViteClient(_0x257cd3){const _0x2918e8=_0x2b983a;window['__viteHMRLoaded']??(window[_0x2918e8(0x219)]=new Set());if(window[_0x2918e8(0x219)][_0x2918e8(0x1c2)](_0x257cd3)){console[_0x2918e8(0x17c)](LOG_PREFIX+_0x2918e8(0x23c)+_0x257cd3);return;}console[_0x2918e8(0x17c)](LOG_PREFIX+_0x2918e8(0x237)+_0x257cd3+'...'),await import(_0x257cd3+_0x2918e8(0x22c)),window['__viteHMRLoaded'][_0x2918e8(0x22e)](_0x257cd3),console['log'](LOG_PREFIX+_0x2918e8(0x1ac)+_0x257cd3);}function isRefreshRuntime(_0x106943){const _0x5e2508=_0x2b983a;return typeof _0x106943==='object'&&_0x106943!==null&&_0x5e2508(0x196)in _0x106943&&typeof _0x106943[_0x5e2508(0x196)]===_0x5e2508(0x199);}var WORKER_MESSAGE_CONFIG=_0x2b983a(0x185),WORKER_MESSAGE_DISABLE=_0x2b983a(0x1cb),WORKER_MESSAGE_REQUEST_CONFIG=_0x2b983a(0x223),LOG_PREFIX2=_0x2b983a(0x227),registration=null,messageListener=null,currentOptions2=null,configGetter=null;async function registerServiceWorker(_0x58eaf2){const _0x81922e=_0x2b983a;console[_0x81922e(0x17c)](LOG_PREFIX2+_0x81922e(0x19b)),console[_0x81922e(0x17c)](LOG_PREFIX2+'\x20swPath:\x20'+_0x58eaf2[_0x81922e(0x197)]);if(!(_0x81922e(0x17d)in navigator)){console[_0x81922e(0x241)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console['log'](LOG_PREFIX2+_0x81922e(0x1ca));const _0x43e356=navigator[_0x81922e(0x17d)][_0x81922e(0x1af)];console[_0x81922e(0x17c)](LOG_PREFIX2+_0x81922e(0x182),_0x43e356?.['scriptURL']??_0x81922e(0x1e9)),console[_0x81922e(0x17c)](LOG_PREFIX2+_0x81922e(0x1a6),_0x43e356?.[_0x81922e(0x1d8)]??_0x81922e(0x1ee));const _0x3e34f9=!!_0x43e356;currentOptions2=_0x58eaf2,configGetter=()=>buildWorkerConfiguration(_0x58eaf2),console['log'](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x3e937c=await detectBlockingServiceWorker(_0x58eaf2[_0x81922e(0x197)]);if(_0x3e937c){console[_0x81922e(0x242)](LOG_PREFIX2+_0x81922e(0x1ab)+_0x3e937c),console[_0x81922e(0x242)](LOG_PREFIX2+_0x81922e(0x1cc));return;}console[_0x81922e(0x17c)](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x81922e(0x17c)](LOG_PREFIX2+_0x81922e(0x183)+_0x58eaf2[_0x81922e(0x197)]+_0x81922e(0x1df)),registration=await navigator[_0x81922e(0x17d)][_0x81922e(0x1d0)](_0x58eaf2[_0x81922e(0x197)],{'scope':'/'}),console[_0x81922e(0x17c)](LOG_PREFIX2+_0x81922e(0x23a),{'scope':registration[_0x81922e(0x206)],'active':registration['active']?.[_0x81922e(0x233)],'waiting':registration[_0x81922e(0x204)]?.[_0x81922e(0x233)],'installing':registration['installing']?.[_0x81922e(0x233)]}),console[_0x81922e(0x17c)](LOG_PREFIX2+_0x81922e(0x187));const _0x12920f=await navigator[_0x81922e(0x17d)]['ready'];console[_0x81922e(0x17c)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x12920f[_0x81922e(0x1c9)]?.[_0x81922e(0x233)]);const _0x944329=ownsCurrentController(_0x58eaf2[_0x81922e(0x197)]);state[_0x81922e(0x220)]=_0x944329,console['log'](LOG_PREFIX2+_0x81922e(0x184)+_0x944329),console[_0x81922e(0x17c)](LOG_PREFIX2+'\x20Current\x20controller\x20after\x20ready:',navigator[_0x81922e(0x17d)][_0x81922e(0x1af)]?.['scriptURL']??'none');if(!_0x3e34f9&&!navigator[_0x81922e(0x17d)][_0x81922e(0x1af)]){console[_0x81922e(0x17c)](LOG_PREFIX2+_0x81922e(0x207)),window[_0x81922e(0x1b1)][_0x81922e(0x1eb)]();return;}console[_0x81922e(0x17c)](LOG_PREFIX2+_0x81922e(0x20a)),attachMessageListener(),console[_0x81922e(0x17c)](LOG_PREFIX2+_0x81922e(0x1e3)),await sendConfiguration();if(state['enabled']){const _0x1c0ff6=document[_0x81922e(0x17b)](_0x81922e(0x1fc))!==null;console[_0x81922e(0x17c)](LOG_PREFIX2+_0x81922e(0x20f)+_0x1c0ff6);if(!_0x1c0ff6){console['log'](LOG_PREFIX2+_0x81922e(0x224)),window['location'][_0x81922e(0x1eb)]();return;}}console['log'](LOG_PREFIX2+_0x81922e(0x1c4)),updateOverlay(),console[_0x81922e(0x17c)](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x5906cd){console[_0x81922e(0x242)](LOG_PREFIX2+_0x81922e(0x232),_0x5906cd);}}async function sendConfiguration(){const _0x4ae5b0=_0x2b983a;console[_0x4ae5b0(0x17c)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0x4ae5b0(0x17c)](LOG_PREFIX2+_0x4ae5b0(0x1dd)+state[_0x4ae5b0(0x1b8)]+_0x4ae5b0(0x173)+!!configGetter);if(!state[_0x4ae5b0(0x1b8)]||!configGetter){console[_0x4ae5b0(0x17c)](LOG_PREFIX2+_0x4ae5b0(0x1f4));return;}const _0x2d97ec=await resolveWorker();if(!_0x2d97ec){console['warn'](LOG_PREFIX2+_0x4ae5b0(0x1cd));return;}const _0x3a6f99=configGetter();console[_0x4ae5b0(0x17c)](LOG_PREFIX2+_0x4ae5b0(0x203),JSON[_0x4ae5b0(0x222)](_0x3a6f99,null,0x2)),_0x2d97ec['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x3a6f99}),console['log'](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x540080){const _0x19582f=_0x2b983a;console[_0x19582f(0x17c)](LOG_PREFIX2+_0x19582f(0x214));if(!(_0x19582f(0x17d)in navigator)){console['log'](LOG_PREFIX2+_0x19582f(0x1f3));return;}detachMessageListener();try{const _0x2a455e=registration??await navigator[_0x19582f(0x17d)][_0x19582f(0x1d1)]('/');if(!_0x2a455e){console[_0x19582f(0x17c)](LOG_PREFIX2+_0x19582f(0x1d9));return;}console[_0x19582f(0x17c)](LOG_PREFIX2+_0x19582f(0x1b2),{'scope':_0x2a455e[_0x19582f(0x206)],'active':_0x2a455e[_0x19582f(0x1c9)]?.[_0x19582f(0x233)],'waiting':_0x2a455e[_0x19582f(0x204)]?.[_0x19582f(0x233)],'installing':_0x2a455e[_0x19582f(0x19e)]?.[_0x19582f(0x233)]});const _0x117452=[_0x2a455e['active']?.[_0x19582f(0x233)],_0x2a455e['waiting']?.['scriptURL'],_0x2a455e[_0x19582f(0x19e)]?.[_0x19582f(0x233)]],_0x30d45b=_0x117452['some'](_0xc0a4=>_0xc0a4&&ownsServiceWorker(_0xc0a4,_0x540080));if(!_0x30d45b){console[_0x19582f(0x17c)](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x2a455e[_0x19582f(0x1c9)]&&(console[_0x19582f(0x17c)](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x2a455e[_0x19582f(0x1c9)][_0x19582f(0x1c6)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x19582f(0x17c)](LOG_PREFIX2+_0x19582f(0x1c1)),await _0x2a455e[_0x19582f(0x19a)](),registration=null,console[_0x19582f(0x17c)](LOG_PREFIX2+_0x19582f(0x194));}catch(_0x513ade){console[_0x19582f(0x242)](LOG_PREFIX2+_0x19582f(0x245),_0x513ade);}}function attachMessageListener(){const _0x3a3195=_0x2b983a;if(!navigator[_0x3a3195(0x17d)]||messageListener){console[_0x3a3195(0x17c)](LOG_PREFIX2+_0x3a3195(0x23d));return;}messageListener=_0x42eee0=>{const _0x314e52=_0x3a3195,_0x193c20=_0x42eee0['data'];console['log'](LOG_PREFIX2+_0x314e52(0x243),_0x193c20);if(!_0x193c20||typeof _0x193c20!=='object')return;_0x193c20[_0x314e52(0x1a3)]===WORKER_MESSAGE_REQUEST_CONFIG&&(console[_0x314e52(0x17c)](LOG_PREFIX2+'\x20SW\x20requested\x20config\x20-\x20sending...'),void sendConfiguration());},navigator[_0x3a3195(0x17d)][_0x3a3195(0x226)](_0x3a3195(0x225),messageListener),console[_0x3a3195(0x17c)](LOG_PREFIX2+_0x3a3195(0x1ce));}function detachMessageListener(){const _0x5518bc=_0x2b983a;navigator[_0x5518bc(0x17d)]&&messageListener&&(navigator['serviceWorker'][_0x5518bc(0x1ae)](_0x5518bc(0x225),messageListener),messageListener=null,console[_0x5518bc(0x17c)](LOG_PREFIX2+_0x5518bc(0x234)));}function ownsServiceWorker(_0x2e671b,_0x428da3){const _0x55e6b5=_0x2b983a,_0x849681=typeof window!==_0x55e6b5(0x1b3)?window[_0x55e6b5(0x1b1)][_0x55e6b5(0x18a)]:'',_0x40a3f7=new URL(_0x428da3,_0x849681||void 0x0)[_0x55e6b5(0x240)],_0x2d65f3=_0x2e671b===_0x40a3f7||_0x2e671b['includes'](_0x55e6b5(0x1c3));return console[_0x55e6b5(0x17c)](LOG_PREFIX2+_0x55e6b5(0x21b)+_0x2e671b+_0x55e6b5(0x229)+_0x40a3f7+',\x20owns='+_0x2d65f3),_0x2d65f3;}function ownsCurrentController(_0x32e228){const _0x1e1157=_0x2b983a;if(typeof navigator===_0x1e1157(0x1b3))return![];const _0x37daa5=navigator[_0x1e1157(0x17d)]?.[_0x1e1157(0x1af)];if(!_0x37daa5)return console[_0x1e1157(0x17c)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x37daa5[_0x1e1157(0x233)],_0x32e228);}async function detectBlockingServiceWorker(_0x223745){const _0x225ae4=_0x2b983a;if(!navigator[_0x225ae4(0x17d)])return null;try{const _0x18a87f=await navigator[_0x225ae4(0x17d)][_0x225ae4(0x1d1)]('/');console['log'](LOG_PREFIX2+_0x225ae4(0x178),_0x18a87f?.[_0x225ae4(0x1c9)]?.[_0x225ae4(0x233)]??_0x225ae4(0x1e9));const _0x1bc7c7=_0x18a87f?.[_0x225ae4(0x1c9)]?.[_0x225ae4(0x233)];if(!_0x1bc7c7)return null;if(ownsServiceWorker(_0x1bc7c7,_0x223745))return null;return _0x1bc7c7;}catch(_0x2c4681){return console['error'](LOG_PREFIX2+_0x225ae4(0x1e8),_0x2c4681),null;}}function _0x40e7(){const _0x2c91dd=['undefined','security','\x20Raw\x20options:','^8.5.1','\x20Invalid\x20React\x20Refresh\x20runtime','enabled','public','searchParams','https://api.enhancelabs.ai','\x20init()\x20called\x20at\x20','8218593SdnYnX','\x20Current\x20URL:\x20','get','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Unregistering\x20SW...','has','sw-enhance','\x20Updating\x20overlay...','\x20Starting\x20SW\x20registration\x20(async)...','postMessage','\x20composeOverlayState\x20-\x20state.enabled:\x20','[Enhance\x20Runtime]','active','\x20Service\x20workers\x20supported','enhance:disable','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Message\x20listener\x20attached','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','register','getRegistration','enhance.config.sample.json','1324421rgWcvJ','callbackBypass','\x20URL\x20params\x20parsed:','\x20Unregistering\x20any\x20existing\x20SW...','__enhanceReactRefreshInstalledOrigins','state','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','version','options','__development','\x20state.enabled:\x20','explicitDisable','\x20with\x20scope\x20\x27/\x27...','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','enhancement','\x20Setting\x20up\x20remote\x20HMR...','\x20Sending\x20initial\x20configuration...','runtimeURL','\x20Module\x20missing\x20createOverlay\x20export!','serviceWorkerURL','__enhanceOverlay','\x20detectBlocking\x20error:','none','\x20overlayPath:\x20','reload','32lybtTM','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','N/A','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','^11.1.0','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','string','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','./dist/index.d.ts','overlay','156873jpolHh','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20updateOverlay()\x20called','\x20Controller\x20created:','[data-enhance-runtime-bootstrap]','module','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','startsWith','^7.2.4','onToggle',',\x20page\x20origin:\x20','\x20Sending\x20config\x20to\x20SW:','waiting','\x20Updating\x20overlay\x20with\x20state:','scope','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20Overlay\x20origin:\x20','backendUrl','\x20Attaching\x20message\x20listener...','./dist/vite/index.d.ts','bottom-right','readyState','https://assets.enhancelabs.ai/overlay.js','\x20Enhancement\x20detection:\x20wasEnhanced=','replaceState','\x20No\x20window\x20object\x20-\x20skipping','tsc\x20--noEmit','0.0.0','\x20unregisterServiceWorker()\x20called','128850swvTEz','\x20Importing\x20overlay\x20module\x20from:\x20','disable','createOverlay','__viteHMRLoaded','\x20loadOverlay()\x20called','\x20ownsServiceWorker?\x20scriptURL=','\x20Starting\x20overlay\x20load\x20(async)...','dist','0.3.17','\x20resolveWorker:','controlled','\x20enhancementUrl:\x20','stringify','enhance:request-config','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','message','addEventListener','[Enhance\x20SW-Client]','enhance',',\x20expected=','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','/sw-enhance.js','/@vite/client','runtimeScriptPath','add','\x20Normalized\x20options:','\x20doLoadOverlay()\x20starting...','@enhance-eng/sandbox','\x20Failed\x20to\x20register\x20service\x20worker:','scriptURL','\x20Message\x20listener\x20detached','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20Module\x20imported\x20in\x20','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','4KMsIFD','\x20Registration\x20returned:','hasEnhancement','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support','3135000HZUMFV','enableViteHmr','href','warn','error','\x20Received\x20message\x20from\x20SW:','default','\x20Failed\x20to\x20unregister\x20service\x20worker:','bin',',\x20configGetter:\x20','enhancementId','trim','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','\x20detectBlocking\x20-\x20existing\x20registration:','/assets/enhance-runtime.js','https://','querySelector','log','serviceWorker','15361yFUSiJ','4327587ZJWPcv','\x20enhancementId:\x20','toLowerCase','\x20Current\x20controller:','\x20Registering\x20SW\x20at\x20','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','enhance:configure','78pMuYGC','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20Document\x20readyState:\x20','delete','origin','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','./dist/index.js','[Enhance\x20Overlay]','\x20init()\x20complete\x20-\x20normal\x20mode','\x20Calling\x20updateOverlay()...','overlayPath','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','\x20Calling\x20createOverlay()...','10crVwga','\x20SW\x20unregistered\x20successfully','\x20Available\x20exports:','injectIntoGlobalHook','swPath','state:\x20','function','unregister','\x20registerServiceWorker()\x20called','\x20First\x20initialization','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','installing','\x20Starting\x20fresh\x20overlay\x20load...','position','\x20setupRemoteHMR()\x20for\x20','toString','type','\x20Enhancement\x20mode\x20ENABLED','update','\x20Controller\x20state:','$RefreshReg$','keys','now','object','\x20BLOCKING\x20SW\x20detected:\x20','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','enableOverlayHmr','removeEventListener','controller','enhancementUrl','location','\x20Found\x20registration:'];_0x40e7=function(){return _0x2c91dd;};return _0x40e7();}async function resolveWorker(){const _0x234c37=_0x2b983a,_0x302ef6=registration??await navigator[_0x234c37(0x17d)]?.[_0x234c37(0x1d1)]('/'),_0x2f400c=_0x302ef6?.[_0x234c37(0x1c9)]??_0x302ef6?.[_0x234c37(0x204)]??_0x302ef6?.['installing']??null;return console['log'](LOG_PREFIX2+_0x234c37(0x21f),_0x2f400c?.['scriptURL']??_0x234c37(0x1e9),_0x234c37(0x198)+(_0x2f400c?.['state']??_0x234c37(0x1ee))),_0x2f400c;}function buildWorkerConfiguration(_0x5790d2){const _0x352318=_0x2b983a,_0x18682b=getEnhancementUrl();return console[_0x352318(0x17c)](LOG_PREFIX2+_0x352318(0x1fe)+_0x18682b),{'enhancementUrl':_0x18682b,'callbackBypass':_0x5790d2['callbackBypass'],'overlayPath':_0x5790d2['overlayPath'],'overlayEnableViteHmr':_0x5790d2['overlay'][_0x352318(0x23f)],'runtimeScriptPath':_0x5790d2[_0x352318(0x22d)],'swPath':_0x5790d2['swPath'],'securityMode':_0x5790d2[_0x352318(0x1b4)],'backendUrl':_0x5790d2['backendUrl']};}var LOG_PREFIX3=_0x2b983a(0x1c8),initialized=![],options=null,Enhance={'init'(_0x54af80){const _0xdc51ed=_0x2b983a,_0x2d0dd7=Date[_0xdc51ed(0x1a9)]();console['log'](LOG_PREFIX3+_0xdc51ed(0x1bc)+_0x2d0dd7),console['log'](LOG_PREFIX3+_0xdc51ed(0x1be)+window[_0xdc51ed(0x1b1)][_0xdc51ed(0x240)]),console[_0xdc51ed(0x17c)](LOG_PREFIX3+_0xdc51ed(0x188)+document[_0xdc51ed(0x20d)]),console[_0xdc51ed(0x17c)](LOG_PREFIX3+_0xdc51ed(0x1b5),JSON[_0xdc51ed(0x222)](_0x54af80,null,0x2));if(initialized)return console[_0xdc51ed(0x241)](LOG_PREFIX3+_0xdc51ed(0x19d)),createController();initialized=!![],console[_0xdc51ed(0x17c)](LOG_PREFIX3+_0xdc51ed(0x19c)),options=normalizeOptions(_0x54af80),console[_0xdc51ed(0x17c)](LOG_PREFIX3+_0xdc51ed(0x22f),JSON[_0xdc51ed(0x222)](options,null,0x2));const _0xaffffc=parseUrlParams();console[_0xdc51ed(0x17c)](LOG_PREFIX3+_0xdc51ed(0x1d5),JSON['stringify'](_0xaffffc,null,0x2));if(_0xaffffc[_0xdc51ed(0x1de)])return cleanUrlParam('enhance'),console[_0xdc51ed(0x17c)](LOG_PREFIX3+_0xdc51ed(0x18b)),createController();if(_0xaffffc[_0xdc51ed(0x23b)])return console[_0xdc51ed(0x17c)](LOG_PREFIX3+_0xdc51ed(0x1a4)),console['log'](LOG_PREFIX3+_0xdc51ed(0x221)+_0xaffffc[_0xdc51ed(0x1b0)]),console[_0xdc51ed(0x17c)](LOG_PREFIX3+_0xdc51ed(0x180)+_0xaffffc[_0xdc51ed(0x174)]),state['enabled']=!![],console[_0xdc51ed(0x17c)](LOG_PREFIX3+_0xdc51ed(0x21c)),void loadOverlay({'overlayPath':options[_0xdc51ed(0x190)],'enableViteHmr':options['overlay'][_0xdc51ed(0x23f)],'options':options,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+_0xdc51ed(0x1c5)),void registerServiceWorker(options),console[_0xdc51ed(0x17c)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0xdc51ed(0x17c)](LOG_PREFIX3+_0xdc51ed(0x235)),console['log'](LOG_PREFIX3+_0xdc51ed(0x1d6)),void unregisterServiceWorker(options['swPath']),console['log'](LOG_PREFIX3+_0xdc51ed(0x18e)),createController();}};function createController(){return{'enable'(){const _0x468dc3=_0x5263;if(!options)return;state[_0x468dc3(0x1b8)]=!![],void loadOverlay({'overlayPath':options['overlayPath'],'enableViteHmr':options[_0x468dc3(0x1f6)][_0x468dc3(0x23f)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){const _0x40c951=_0x5263;if(!options)return;state[_0x40c951(0x1b8)]=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(options[_0x40c951(0x197)]);},'status'(){const _0x65a269=_0x5263;return{'enabled':state[_0x65a269(0x1b8)],'controlled':state[_0x65a269(0x220)]};}};}function handleToggle(){const _0x261630=_0x2b983a,_0x38bf7b=createController();state[_0x261630(0x1b8)]?_0x38bf7b[_0x261630(0x217)]():_0x38bf7b['enable']();}function parseUrlParams(){const _0x41c413=_0x2b983a,_0x400ae6=new URL(window[_0x41c413(0x1b1)][_0x41c413(0x240)]),_0xb80605=_0x400ae6[_0x41c413(0x1ba)][_0x41c413(0x1bf)](_0x41c413(0x228))?.[_0x41c413(0x181)](),_0x1020da=_0x400ae6[_0x41c413(0x1ba)][_0x41c413(0x1bf)](_0x41c413(0x1b0)),_0x4708dc=_0x400ae6[_0x41c413(0x1ba)][_0x41c413(0x1bf)](_0x41c413(0x1e1));return{'hasEnhancement':Boolean(_0x1020da||_0x4708dc),'explicitDisable':_0xb80605==='0'||_0xb80605==='false'||_0xb80605==='off','enhancementUrl':_0x1020da,'enhancementId':_0x4708dc};}function cleanUrlParam(_0x302571){const _0x3f4265=_0x2b983a,_0x1d1efd=new URL(window[_0x3f4265(0x1b1)][_0x3f4265(0x240)]);_0x1d1efd[_0x3f4265(0x1ba)][_0x3f4265(0x1c2)](_0x302571)&&(_0x1d1efd[_0x3f4265(0x1ba)][_0x3f4265(0x189)](_0x302571),window['history'][_0x3f4265(0x210)](null,document['title'],_0x1d1efd[_0x3f4265(0x1a2)]()));}var package_default={'name':_0x2b983a(0x231),'version':_0x2b983a(0x21e),'type':_0x2b983a(0x1fd),'description':_0x2b983a(0x177),'license':'MIT','main':'./dist/index.cjs','module':_0x2b983a(0x18c),'types':'./dist/index.d.ts','exports':{'.':{'types':_0x2b983a(0x1f5),'import':'./dist/index.js','require':'./dist/index.cjs'},'./vite':{'types':_0x2b983a(0x20b),'import':'./dist/vite/index.js'}},'files':[_0x2b983a(0x21d),_0x2b983a(0x172),_0x2b983a(0x1d2)],'bin':{'enhance-sandbox':'bin/enhance-sandbox.js'},'scripts':{'typecheck':_0x2b983a(0x212),'dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','dev:staging':_0x2b983a(0x1cf),'build':_0x2b983a(0x1e0),'build:release':_0x2b983a(0x176),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x2b983a(0x1f0),'zod':'^3.22.4'},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':'^4.1.1','tsup':_0x2b983a(0x1b6),'vite':_0x2b983a(0x200)},'publishConfig':{'access':_0x2b983a(0x1b9)}},DEFAULT_SERVICE_WORKER_PATH=_0x2b983a(0x22b),DEFAULT_RUNTIME_PATH=_0x2b983a(0x179),PACKAGE_VERSION=typeof package_default[_0x2b983a(0x1da)]===_0x2b983a(0x1f2)?package_default[_0x2b983a(0x1da)]:_0x2b983a(0x213);function normalizeAssetPath(_0x5ffb23){const _0x2b451f=_0x2b983a;if(!_0x5ffb23)return _0x5ffb23;if(_0x5ffb23['startsWith']('http://')||_0x5ffb23[_0x2b451f(0x1ff)](_0x2b451f(0x17a)))return _0x5ffb23;const _0x3449a2=_0x5ffb23['replace'](/^\.\//,'');return _0x3449a2[_0x2b451f(0x1ff)]('/')?_0x3449a2:'/'+_0x3449a2;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x211f65){return Enhance['init'](_0x211f65);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){const _0x1d26ad=_0x2b983a;return Enhance2[_0x1d26ad(0x1e6)]();}function runtimeURL(){const _0x850dbd=_0x2b983a;return Enhance2[_0x850dbd(0x1e4)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
package/dist/cli.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const _0x146bdc=_0x375c;(function(_0x526dfd,_0x2c24bc){const _0x5c1948=_0x375c,_0x523eed=_0x526dfd();while(!![]){try{const _0xc900c7=-parseInt(_0x5c1948(0x22b))/0x1*(parseInt(_0x5c1948(0x1f6))/0x2)+-parseInt(_0x5c1948(0x23a))/0x3+parseInt(_0x5c1948(0x240))/0x4+-parseInt(_0x5c1948(0x1bf))/0x5+parseInt(_0x5c1948(0x23d))/0x6+parseInt(_0x5c1948(0x1af))/0x7+parseInt(_0x5c1948(0x210))/0x8;if(_0xc900c7===_0x2c24bc)break;else _0x523eed['push'](_0x523eed['shift']());}catch(_0x1df68f){_0x523eed['push'](_0x523eed['shift']());}}}(_0x9fdd,0x2481e));import{Command}from'commander';import{resolve,relative}from'path';function normalizeOptions(_0x586e2d){const _0x4aea2c=_0x375c,_0x2a5c2b=_0x586e2d[_0x4aea2c(0x18c)]??{};return{'callbackBypass':_0x586e2d[_0x4aea2c(0x261)],'overlay':{'enabled':!![],'position':_0x4aea2c(0x1d9),'enableViteHmr':_0x2a5c2b[_0x4aea2c(0x19d)]??![]},'logLevel':_0x4aea2c(0x207),'swPath':_0x4aea2c(0x16a),'overlayPath':_0x2a5c2b[_0x4aea2c(0x1ac)]??_0x4aea2c(0x191),'runtimeScriptPath':_0x4aea2c(0x225),'security':_0x2a5c2b[_0x4aea2c(0x190)]??'permissive','backendUrl':_0x2a5c2b[_0x4aea2c(0x1a3)]??_0x4aea2c(0x1d0)};}var state={'enabled':![],'controlled':![]};function _0x9fdd(){const _0x41eb65=['\x20Updating\x20overlay...','data','swFilename','option','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','overlay','replaceState','info','\x20Updating\x20overlay\x20with\x20state:','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','toString','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','^8.5.1','search','all','...','2498944jXkwvT','get','serviceWorkerURL','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','/@react-refresh','waiting','publicDir','reload','unregister','command','\x20Unregistering\x20any\x20existing\x20SW...','./dist/vite/index.d.ts','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20Starting\x20overlay\x20load\x20(async)...','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','href','https://','\x20Registering\x20SW\x20at\x20','stringify','./dist/index.cjs','\x20detectBlocking\x20-\x20existing\x20registration:','/assets/enhance-runtime.js','searchParams','\x20Starting\x20SW\x20registration\x20(async)...','^4.1.1','off','\x20Failed\x20to\x20register\x20service\x20worker:','1samSFM','--filename\x20<name>','\x20detectBlocking\x20error:','\x20SW\x20unregistered\x20successfully','init','enhance-sandbox','ready','\x20URL\x20params\x20parsed:','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','runtimeURL','\x20init()\x20complete\x20-\x20normal\x20mode','getRegistration',',\x20configGetter:\x20','enhancement','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','365379daVEDH',',\x20page\x20origin:\x20','write','602574zMVfwD','\x20setupRemoteHMR()\x20for\x20','stdout','1112276bmXcfw','\x20doLoadOverlay()\x20starting...','filename','cwd','\x20Module\x20exports:','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20registerServiceWorker()\x20complete','\x20currentOptions\x20exists:\x20','__viteHMRLoaded','Print\x20the\x20current\x20asset\x20manifest','active','removeEventListener','\x20First\x20initialization','\x20composeOverlayState\x20-\x20state.enabled:\x20','controlled','enhance.config.sample.json','/@vite/client','\x20No\x20current\x20controller','./dist/index.js','enableViteHmr','enable','\x20overlayPath:\x20','\x20Failed\x20to\x20import/create\x20overlay:','none','addEventListener','\x20Module\x20missing\x20createOverlay\x20export!','toLowerCase','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','^24.10.1','sw-enhance','[Enhance\x20SW-Client]','string','\x20Failed\x20to\x20unregister\x20service\x20worker:','callbackBypass','replace','ENOENT','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20with\x20scope\x20\x27/\x27...','\x20unregisterServiceWorker()\x20called','swPath','update','scope','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20Starting\x20fresh\x20overlay\x20load...','/sw-enhance.js','options','\x20Attaching\x20message\x20listener...','\x20HMR\x20setup\x20complete','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20sendConfiguration()\x20called','\x20state.enabled:\x20','\x20→\x20','N/A','\x20Document\x20readyState:\x20','\x20Current\x20URL:\x20','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','sha256','hasEnhancement','\x20Available\x20exports:','runtimeScriptPath','public','enhance','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20Normalized\x20options:','querySelector','../dist/index.js','\x20resolveWorker:','^3.22.4','[data-enhance-runtime-bootstrap]','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','enabled','location','object','has','__enhanceOverlay','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','\x20enhancementUrl:\x20','__development','__vite_plugin_react_preamble_installed__','disable','$RefreshSig$','security','https://assets.enhancelabs.ai/overlay.js','\x20SW\x20ready!\x20Active:','http://','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','\x20Unregistering\x20SW...','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','version','Skipped\x20','./dist/index.d.ts','dist','bin/enhance-sandbox.js','\x20init()\x20complete\x20-\x20enhancement\x20mode','enableOverlayHmr','\x20React\x20Refresh\x20already\x20installed\x20for\x20','manifestPath','\x20enhancementId:\x20','\x20(already\x20current)\x20[','readyState','backendUrl','\x20No\x20window\x20object\x20-\x20skipping','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Overlay\x20controller\x20initialized\x20and\x20cached','serviceWorker','state','\x20loadOverlay()\x20called','log','now','overlayPath','\x20composeOverlayState\x20-\x20state.controlled:\x20','position','323015eZhjIB','includes','createOverlay','\x20Checking\x20for\x20blocking\x20service\x20worker...','copied','skipped','\x20Current\x20controller\x20after\x20ready:','module','status','\x20Enhancement\x20mode\x20ENABLED','sw-enhance.js','controller','add','onToggle','0.0.0','postMessage','1350865lwyyzJ','Copied\x20','push','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','message','0.3.16','assets/enhance-runtime.js','action','function','\x20Sending\x20initial\x20configuration...','\x20Found\x20registration:','installing','\x20Vite\x20client\x20already\x20loaded\x20for\x20','relativeDestination','state:\x20','\x20Calling\x20createOverlay()...','__enhanceReactRefreshInstalledOrigins','https://api.enhancelabs.ai','description','sourcePath','override','\x20Service\x20workers\x20supported','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','enhance:request-config','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','startsWith','bottom-right','\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support','code','\x20updateOverlay()\x20called','\x20Current\x20controller:','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','scriptURL','enhancementUrl','delete','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','injectIntoGlobalHook','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','warn','parseAsync','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','bin','^7.2.4','keys','\x20No\x20blocking\x20SW\x20found','\x20BLOCKING\x20SW\x20detected:\x20','error','manifest','@enhance-eng/sandbox','MIT','undefined','requiredOption','name','destinationPath','391022LxLpky','copyFile','enhance:disable','trim','\x20Setting\x20up\x20remote\x20HMR...','[Enhance\x20Overlay]','enhancementId','origin','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch',',\x20owns='];_0x9fdd=function(){return _0x41eb65;};return _0x9fdd();}function getEnhancementUrl(){const _0x5c2101=_0x375c;try{const _0x429673=new URLSearchParams(window[_0x5c2101(0x186)][_0x5c2101(0x20d)]);return _0x429673[_0x5c2101(0x211)]('enhancementUrl')?.[_0x5c2101(0x1f9)]()||'';}catch{return'';}}var LOG_PREFIX=_0x146bdc(0x1fb),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x43681a){const _0x239c36=_0x146bdc;console['log'](LOG_PREFIX+_0x239c36(0x1a9)),console[_0x239c36(0x1aa)](LOG_PREFIX+_0x239c36(0x255)+_0x43681a['overlayPath']),console['log'](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x43681a[_0x239c36(0x253)]),currentOptions=_0x43681a[_0x239c36(0x16b)],toggleHandler=_0x43681a[_0x239c36(0x1bc)];if(overlayController){console['log'](LOG_PREFIX+_0x239c36(0x25b)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x239c36(0x1aa)](LOG_PREFIX+_0x239c36(0x1d5)),overlayLoadPromise;console[_0x239c36(0x1aa)](LOG_PREFIX+_0x239c36(0x169)),overlayLoadPromise=doLoadOverlay(_0x43681a);try{await overlayLoadPromise,console[_0x239c36(0x1aa)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x41f2b3){console[_0x239c36(0x1ee)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x41f2b3);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x2c12e3){const _0x4ff8d5=_0x146bdc;console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x241));if(typeof window==='undefined'){console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1a4));return;}if(window['__enhanceOverlay']){console['log'](LOG_PREFIX+_0x4ff8d5(0x1de)),overlayController=window[_0x4ff8d5(0x189)],overlayController[_0x4ff8d5(0x1bc)](_0x2c12e3[_0x4ff8d5(0x1bc)]),updateOverlay();return;}console['log'](LOG_PREFIX+_0x4ff8d5(0x183));try{_0x2c12e3[_0x4ff8d5(0x253)]&&(console['log'](LOG_PREFIX+_0x4ff8d5(0x1fa)),await setupRemoteHMR(_0x2c12e3[_0x4ff8d5(0x1ac)]));console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1a5)+_0x2c12e3['overlayPath']);const _0x48ee17=Date[_0x4ff8d5(0x1ab)](),_0x2d762c=await import(_0x2c12e3[_0x4ff8d5(0x1ac)]);console['log'](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date['now']()-_0x48ee17)+'ms'),console['log'](LOG_PREFIX+_0x4ff8d5(0x244),Object[_0x4ff8d5(0x1eb)](_0x2d762c));if(typeof _0x2d762c?.[_0x4ff8d5(0x1b1)]!==_0x4ff8d5(0x1c7)){console['error'](LOG_PREFIX+_0x4ff8d5(0x259)),console[_0x4ff8d5(0x1ee)](LOG_PREFIX+_0x4ff8d5(0x178),Object[_0x4ff8d5(0x1eb)](_0x2d762c));return;}console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1ce));const _0x52b678=_0x2d762c[_0x4ff8d5(0x1b1)]();console[_0x4ff8d5(0x1aa)](LOG_PREFIX+'\x20Controller\x20created:',_0x52b678),overlayController=_0x52b678,window[_0x4ff8d5(0x189)]=_0x52b678,_0x52b678[_0x4ff8d5(0x1bc)](_0x2c12e3['onToggle']),console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1a6)),console['log'](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x58169a){console[_0x4ff8d5(0x1ee)](LOG_PREFIX+_0x4ff8d5(0x256),_0x58169a);}}function updateOverlay(){const _0x5a44d6=_0x146bdc;console[_0x5a44d6(0x1aa)](LOG_PREFIX+_0x5a44d6(0x1dc)),console[_0x5a44d6(0x1aa)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console['log'](LOG_PREFIX+_0x5a44d6(0x247)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x5a44d6(0x1aa)](LOG_PREFIX+_0x5a44d6(0x184));return;}const _0x1f5ea6=composeOverlayState(currentOptions);console[_0x5a44d6(0x1aa)](LOG_PREFIX+_0x5a44d6(0x208),JSON[_0x5a44d6(0x222)](_0x1f5ea6,null,0x2)),overlayController['update'](_0x1f5ea6),console[_0x5a44d6(0x1aa)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x284c69){const _0x3a8c9e=_0x146bdc,_0x1bd9b6=getEnhancementUrl();return console[_0x3a8c9e(0x1aa)](LOG_PREFIX+_0x3a8c9e(0x175)+_0x1bd9b6),console['log'](LOG_PREFIX+_0x3a8c9e(0x24d)+state[_0x3a8c9e(0x185)]),console[_0x3a8c9e(0x1aa)](LOG_PREFIX+_0x3a8c9e(0x1ad)+state[_0x3a8c9e(0x24e)]),{'enhancementUrl':_0x1bd9b6,'enabled':state[_0x3a8c9e(0x185)],'controlled':state[_0x3a8c9e(0x24e)],'overlayPosition':_0x284c69['overlay'][_0x3a8c9e(0x1ae)],'securityMode':_0x284c69[_0x3a8c9e(0x190)],'backendBaseUrl':_0x284c69[_0x3a8c9e(0x1a3)]};}async function setupRemoteHMR(_0x20c3db){const _0x39e7b6=_0x146bdc;console[_0x39e7b6(0x1aa)](LOG_PREFIX+_0x39e7b6(0x23e)+_0x20c3db);if(typeof window===_0x39e7b6(0x1f2))return;try{const _0x27a8ff=new URL(_0x20c3db,window['location'][_0x39e7b6(0x1fd)]),_0x36f620=_0x27a8ff[_0x39e7b6(0x1fd)];console[_0x39e7b6(0x1aa)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x36f620+_0x39e7b6(0x23b)+window[_0x39e7b6(0x186)][_0x39e7b6(0x1fd)]);if(_0x36f620===window[_0x39e7b6(0x186)][_0x39e7b6(0x1fd)]){console[_0x39e7b6(0x1aa)](LOG_PREFIX+_0x39e7b6(0x196));return;}console['log'](LOG_PREFIX+_0x39e7b6(0x213)),await ensureReactRefreshPreamble(_0x36f620),await ensureViteClient(_0x36f620),console[_0x39e7b6(0x1aa)](LOG_PREFIX+_0x39e7b6(0x16d));}catch(_0x540603){console[_0x39e7b6(0x1e6)](LOG_PREFIX+_0x39e7b6(0x1e2),_0x540603);}}async function ensureReactRefreshPreamble(_0x50d17e){const _0x8497af=_0x146bdc;window[_0x8497af(0x1cf)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x8497af(0x188)](_0x50d17e)){console[_0x8497af(0x1aa)](LOG_PREFIX+_0x8497af(0x19e)+_0x50d17e);return;}console[_0x8497af(0x1aa)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x50d17e+_0x8497af(0x20f));const _0x3e4d68=await import(_0x50d17e+_0x8497af(0x214)),_0x4ea87f=_0x3e4d68&&typeof _0x3e4d68===_0x8497af(0x187)&&'default'in _0x3e4d68?_0x3e4d68['default']:_0x3e4d68;if(!isRefreshRuntime(_0x4ea87f)){console[_0x8497af(0x1e6)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x4ea87f['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window[_0x8497af(0x18f)]=()=>_0x2bd5c9=>_0x2bd5c9,window[_0x8497af(0x18d)]=!![],window[_0x8497af(0x1cf)]['add'](_0x50d17e),console[_0x8497af(0x1aa)](LOG_PREFIX+_0x8497af(0x17c)+_0x50d17e);}async function ensureViteClient(_0x44ac9f){const _0x1c7f17=_0x146bdc;window[_0x1c7f17(0x248)]??=new Set();if(window[_0x1c7f17(0x248)][_0x1c7f17(0x188)](_0x44ac9f)){console[_0x1c7f17(0x1aa)](LOG_PREFIX+_0x1c7f17(0x1cb)+_0x44ac9f);return;}console['log'](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x44ac9f+_0x1c7f17(0x20f)),await import(_0x44ac9f+_0x1c7f17(0x250)),window[_0x1c7f17(0x248)][_0x1c7f17(0x1bb)](_0x44ac9f),console['log'](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x44ac9f);}function isRefreshRuntime(_0x1ee225){const _0x1da44f=_0x146bdc;return typeof _0x1ee225===_0x1da44f(0x187)&&_0x1ee225!==null&&_0x1da44f(0x1e4)in _0x1ee225&&typeof _0x1ee225[_0x1da44f(0x1e4)]==='function';}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x146bdc(0x1f8),WORKER_MESSAGE_REQUEST_CONFIG=_0x146bdc(0x1d6),LOG_PREFIX2=_0x146bdc(0x25e),registration=null,messageListener=null,currentOptions2=null,configGetter=null;async function registerServiceWorker(_0x9fb112){const _0x50433b=_0x146bdc;console[_0x50433b(0x1aa)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console['log'](LOG_PREFIX2+'\x20swPath:\x20'+_0x9fb112[_0x50433b(0x164)]);if(!(_0x50433b(0x1a7)in navigator)){console['warn'](LOG_PREFIX2+_0x50433b(0x21e));return;}console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1d4));const _0x3bd5b2=navigator[_0x50433b(0x1a7)][_0x50433b(0x1ba)];console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1dd),_0x3bd5b2?.[_0x50433b(0x1df)]??_0x50433b(0x257)),console[_0x50433b(0x1aa)](LOG_PREFIX2+'\x20Controller\x20state:',_0x3bd5b2?.[_0x50433b(0x1a8)]??_0x50433b(0x172));const _0x3cb6d7=!!_0x3bd5b2;currentOptions2=_0x9fb112,configGetter=()=>buildWorkerConfiguration(_0x9fb112),console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1b2));const _0x35f157=await detectBlockingServiceWorker(_0x9fb112[_0x50433b(0x164)]);if(_0x35f157){console[_0x50433b(0x1ee)](LOG_PREFIX2+_0x50433b(0x1ed)+_0x35f157),console['error'](LOG_PREFIX2+_0x50433b(0x204));return;}console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1ec));try{console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x221)+_0x9fb112[_0x50433b(0x164)]+_0x50433b(0x265)),registration=await navigator[_0x50433b(0x1a7)]['register'](_0x9fb112[_0x50433b(0x164)],{'scope':'/'}),console[_0x50433b(0x1aa)](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration['scope'],'active':registration[_0x50433b(0x24a)]?.[_0x50433b(0x1df)],'waiting':registration[_0x50433b(0x215)]?.[_0x50433b(0x1df)],'installing':registration[_0x50433b(0x1ca)]?.[_0x50433b(0x1df)]}),console['log'](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0xc8e820=await navigator['serviceWorker'][_0x50433b(0x231)];console['log'](LOG_PREFIX2+_0x50433b(0x192),_0xc8e820[_0x50433b(0x24a)]?.[_0x50433b(0x1df)]);const _0x402dec=ownsCurrentController(_0x9fb112[_0x50433b(0x164)]);state[_0x50433b(0x24e)]=_0x402dec,console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1c2)+_0x402dec),console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1b5),navigator[_0x50433b(0x1a7)][_0x50433b(0x1ba)]?.[_0x50433b(0x1df)]??_0x50433b(0x257));if(!_0x3cb6d7&&!navigator[_0x50433b(0x1a7)][_0x50433b(0x1ba)]){console['log'](LOG_PREFIX2+_0x50433b(0x168)),window[_0x50433b(0x186)][_0x50433b(0x217)]();return;}console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x16c)),attachMessageListener(),console['log'](LOG_PREFIX2+_0x50433b(0x1c8)),await sendConfiguration();if(state[_0x50433b(0x185)]){const _0x30582=document[_0x50433b(0x17e)](_0x50433b(0x182))!==null;console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x264)+_0x30582);if(!_0x30582){console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x245)),window[_0x50433b(0x186)][_0x50433b(0x217)]();return;}}console['log'](LOG_PREFIX2+_0x50433b(0x200)),updateOverlay(),console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x246));}catch(_0xc14890){console[_0x50433b(0x1ee)](LOG_PREFIX2+_0x50433b(0x22a),_0xc14890);}}async function sendConfiguration(){const _0x24caf5=_0x146bdc;console['log'](LOG_PREFIX2+_0x24caf5(0x16f)),console[_0x24caf5(0x1aa)](LOG_PREFIX2+_0x24caf5(0x170)+state[_0x24caf5(0x185)]+_0x24caf5(0x237)+!!configGetter);if(!state[_0x24caf5(0x185)]||!configGetter){console[_0x24caf5(0x1aa)](LOG_PREFIX2+_0x24caf5(0x18a));return;}const _0x3658a6=await resolveWorker();if(!_0x3658a6){console[_0x24caf5(0x1e6)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x18316b=configGetter();console[_0x24caf5(0x1aa)](LOG_PREFIX2+'\x20Sending\x20config\x20to\x20SW:',JSON[_0x24caf5(0x222)](_0x18316b,null,0x2)),_0x3658a6['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x18316b}),console[_0x24caf5(0x1aa)](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x432d55){const _0x91b9b9=_0x146bdc;console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x266));if(!('serviceWorker'in navigator)){console[_0x91b9b9(0x1aa)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}detachMessageListener();try{const _0x19dee9=registration??await navigator[_0x91b9b9(0x1a7)]['getRegistration']('/');if(!_0x19dee9){console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x209));return;}console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x1c9),{'scope':_0x19dee9[_0x91b9b9(0x166)],'active':_0x19dee9['active']?.[_0x91b9b9(0x1df)],'waiting':_0x19dee9[_0x91b9b9(0x215)]?.[_0x91b9b9(0x1df)],'installing':_0x19dee9[_0x91b9b9(0x1ca)]?.[_0x91b9b9(0x1df)]});const _0x131098=[_0x19dee9[_0x91b9b9(0x24a)]?.['scriptURL'],_0x19dee9[_0x91b9b9(0x215)]?.[_0x91b9b9(0x1df)],_0x19dee9[_0x91b9b9(0x1ca)]?.[_0x91b9b9(0x1df)]],_0x9fa264=_0x131098['some'](_0x14e6d8=>_0x14e6d8&&ownsServiceWorker(_0x14e6d8,_0x432d55));if(!_0x9fa264){console[_0x91b9b9(0x1aa)](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x19dee9[_0x91b9b9(0x24a)]&&(console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x16e)),_0x19dee9[_0x91b9b9(0x24a)][_0x91b9b9(0x1be)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x91b9b9(0x195)),await _0x19dee9[_0x91b9b9(0x218)](),registration=null,console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x22e));}catch(_0x1bc5b4){console[_0x91b9b9(0x1ee)](LOG_PREFIX2+_0x91b9b9(0x260),_0x1bc5b4);}}function attachMessageListener(){const _0x261107=_0x146bdc;if(!navigator[_0x261107(0x1a7)]||messageListener){console[_0x261107(0x1aa)](LOG_PREFIX2+_0x261107(0x1da));return;}messageListener=_0x49a4f3=>{const _0x1b6602=_0x261107,_0x545340=_0x49a4f3[_0x1b6602(0x201)];console['log'](LOG_PREFIX2+'\x20Received\x20message\x20from\x20SW:',_0x545340);if(!_0x545340||typeof _0x545340!=='object')return;_0x545340['type']===WORKER_MESSAGE_REQUEST_CONFIG&&(console[_0x1b6602(0x1aa)](LOG_PREFIX2+'\x20SW\x20requested\x20config\x20-\x20sending...'),void sendConfiguration());},navigator[_0x261107(0x1a7)][_0x261107(0x258)]('message',messageListener),console[_0x261107(0x1aa)](LOG_PREFIX2+'\x20Message\x20listener\x20attached');}function detachMessageListener(){const _0x573bf4=_0x146bdc;navigator['serviceWorker']&&messageListener&&(navigator[_0x573bf4(0x1a7)][_0x573bf4(0x24b)](_0x573bf4(0x1c3),messageListener),messageListener=null,console[_0x573bf4(0x1aa)](LOG_PREFIX2+'\x20Message\x20listener\x20detached'));}function ownsServiceWorker(_0xec49ab,_0x2091ea){const _0x36f63e=_0x146bdc,_0x2a91ae=typeof window!==_0x36f63e(0x1f2)?window[_0x36f63e(0x186)][_0x36f63e(0x1fd)]:'',_0x182c61=new URL(_0x2091ea,_0x2a91ae||void 0x0)[_0x36f63e(0x21f)],_0x1e2b6d=_0xec49ab===_0x182c61||_0xec49ab[_0x36f63e(0x1b0)](_0x36f63e(0x25d));return console[_0x36f63e(0x1aa)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0xec49ab+',\x20expected='+_0x182c61+_0x36f63e(0x1ff)+_0x1e2b6d),_0x1e2b6d;}function ownsCurrentController(_0xb52035){const _0x5196ea=_0x146bdc;if(typeof navigator==='undefined')return![];const _0x2f1fc6=navigator[_0x5196ea(0x1a7)]?.[_0x5196ea(0x1ba)];if(!_0x2f1fc6)return console[_0x5196ea(0x1aa)](LOG_PREFIX2+_0x5196ea(0x251)),![];return ownsServiceWorker(_0x2f1fc6[_0x5196ea(0x1df)],_0xb52035);}async function detectBlockingServiceWorker(_0xbccda1){const _0x2a6d65=_0x146bdc;if(!navigator[_0x2a6d65(0x1a7)])return null;try{const _0x25cbc5=await navigator[_0x2a6d65(0x1a7)][_0x2a6d65(0x236)]('/');console[_0x2a6d65(0x1aa)](LOG_PREFIX2+_0x2a6d65(0x224),_0x25cbc5?.[_0x2a6d65(0x24a)]?.['scriptURL']??_0x2a6d65(0x257));const _0x413910=_0x25cbc5?.[_0x2a6d65(0x24a)]?.['scriptURL'];if(!_0x413910)return null;if(ownsServiceWorker(_0x413910,_0xbccda1))return null;return _0x413910;}catch(_0xff67a9){return console[_0x2a6d65(0x1ee)](LOG_PREFIX2+_0x2a6d65(0x22d),_0xff67a9),null;}}async function resolveWorker(){const _0x512667=_0x146bdc,_0x1db6fa=registration??await navigator['serviceWorker']?.[_0x512667(0x236)]('/'),_0x4206cb=_0x1db6fa?.[_0x512667(0x24a)]??_0x1db6fa?.[_0x512667(0x215)]??_0x1db6fa?.[_0x512667(0x1ca)]??null;return console[_0x512667(0x1aa)](LOG_PREFIX2+_0x512667(0x180),_0x4206cb?.[_0x512667(0x1df)]??_0x512667(0x257),_0x512667(0x1cd)+(_0x4206cb?.[_0x512667(0x1a8)]??_0x512667(0x172))),_0x4206cb;}function buildWorkerConfiguration(_0x15f8ac){const _0x2c9eec=_0x146bdc,_0x988472=getEnhancementUrl();return console[_0x2c9eec(0x1aa)](LOG_PREFIX2+_0x2c9eec(0x233)+_0x988472),{'enhancementUrl':_0x988472,'callbackBypass':_0x15f8ac[_0x2c9eec(0x261)],'overlayPath':_0x15f8ac[_0x2c9eec(0x1ac)],'overlayEnableViteHmr':_0x15f8ac[_0x2c9eec(0x205)][_0x2c9eec(0x253)],'runtimeScriptPath':_0x15f8ac[_0x2c9eec(0x179)],'swPath':_0x15f8ac['swPath'],'securityMode':_0x15f8ac[_0x2c9eec(0x190)],'backendUrl':_0x15f8ac[_0x2c9eec(0x1a3)]};}var LOG_PREFIX3='[Enhance\x20Runtime]',initialized=![],options=null,Enhance={'init'(_0x6c2f83){const _0x42d9ee=_0x146bdc,_0x1863a0=Date['now']();console[_0x42d9ee(0x1aa)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x1863a0),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x174)+window['location'][_0x42d9ee(0x21f)]),console['log'](LOG_PREFIX3+_0x42d9ee(0x173)+document[_0x42d9ee(0x1a2)]),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x42d9ee(0x222)](_0x6c2f83,null,0x2));if(initialized)return console[_0x42d9ee(0x1e6)](LOG_PREFIX3+_0x42d9ee(0x194)),createController();initialized=!![],console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x24c)),options=normalizeOptions(_0x6c2f83),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x17d),JSON['stringify'](options,null,0x2));const _0x567bbd=parseUrlParams();console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x232),JSON[_0x42d9ee(0x222)](_0x567bbd,null,0x2));if(_0x567bbd['explicitDisable'])return cleanUrlParam(_0x42d9ee(0x17b)),console['log'](LOG_PREFIX3+_0x42d9ee(0x21c)),createController();if(_0x567bbd[_0x42d9ee(0x177)])return console['log'](LOG_PREFIX3+_0x42d9ee(0x1b8)),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x18b)+_0x567bbd[_0x42d9ee(0x1e0)]),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x1a0)+_0x567bbd[_0x42d9ee(0x1fc)]),state['enabled']=!![],console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x21d)),void loadOverlay({'overlayPath':options[_0x42d9ee(0x1ac)],'enableViteHmr':options[_0x42d9ee(0x205)]['enableViteHmr'],'options':options,'onToggle':handleToggle}),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x227)),void registerServiceWorker(options),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x19c)),createController();return console[_0x42d9ee(0x1aa)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x21a)),void unregisterServiceWorker(options[_0x42d9ee(0x164)]),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x235)),createController();}};function createController(){return{'enable'(){const _0xee9c59=_0x375c;if(!options)return;state['enabled']=!![],void loadOverlay({'overlayPath':options[_0xee9c59(0x1ac)],'enableViteHmr':options['overlay'][_0xee9c59(0x253)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){const _0xce9f=_0x375c;if(!options)return;state['enabled']=![],state[_0xce9f(0x24e)]=![],updateOverlay(),void unregisterServiceWorker(options[_0xce9f(0x164)]);},'status'(){const _0x197a4b=_0x375c;return{'enabled':state[_0x197a4b(0x185)],'controlled':state['controlled']};}};}function handleToggle(){const _0x436f14=_0x146bdc,_0x567472=createController();state[_0x436f14(0x185)]?_0x567472[_0x436f14(0x18e)]():_0x567472[_0x436f14(0x254)]();}function _0x375c(_0x4a8986,_0x1e811d){const _0x9fdd80=_0x9fdd();return _0x375c=function(_0x375c59,_0xd4ae91){_0x375c59=_0x375c59-0x164;let _0x32f9e2=_0x9fdd80[_0x375c59];return _0x32f9e2;},_0x375c(_0x4a8986,_0x1e811d);}function parseUrlParams(){const _0x21a435=_0x146bdc,_0x431e6e=new URL(window[_0x21a435(0x186)]['href']),_0x58781a=_0x431e6e['searchParams']['get'](_0x21a435(0x17b))?.[_0x21a435(0x25a)](),_0x228eb5=_0x431e6e['searchParams'][_0x21a435(0x211)](_0x21a435(0x1e0)),_0x2ebae3=_0x431e6e[_0x21a435(0x226)]['get'](_0x21a435(0x238));return{'hasEnhancement':Boolean(_0x228eb5||_0x2ebae3),'explicitDisable':_0x58781a==='0'||_0x58781a==='false'||_0x58781a===_0x21a435(0x229),'enhancementUrl':_0x228eb5,'enhancementId':_0x2ebae3};}function cleanUrlParam(_0x304556){const _0x3e247b=_0x146bdc,_0x5806d7=new URL(window[_0x3e247b(0x186)][_0x3e247b(0x21f)]);_0x5806d7[_0x3e247b(0x226)][_0x3e247b(0x188)](_0x304556)&&(_0x5806d7[_0x3e247b(0x226)][_0x3e247b(0x1e1)](_0x304556),window['history'][_0x3e247b(0x206)](null,document['title'],_0x5806d7[_0x3e247b(0x20a)]()));}var package_default={'name':_0x146bdc(0x1f0),'version':_0x146bdc(0x1c4),'type':_0x146bdc(0x1b6),'description':_0x146bdc(0x1e5),'license':_0x146bdc(0x1f1),'main':_0x146bdc(0x223),'module':_0x146bdc(0x252),'types':'./dist/index.d.ts','exports':{'.':{'types':_0x146bdc(0x199),'import':_0x146bdc(0x252),'require':_0x146bdc(0x223)},'./vite':{'types':_0x146bdc(0x21b),'import':'./dist/vite/index.js'}},'files':[_0x146bdc(0x19a),_0x146bdc(0x1e9),_0x146bdc(0x24f)],'bin':{'enhance-sandbox':_0x146bdc(0x19b)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x146bdc(0x20b),'dev:staging':_0x146bdc(0x1fe),'build':_0x146bdc(0x239),'build:release':_0x146bdc(0x167),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':'^11.1.0','zod':_0x146bdc(0x181)},'devDependencies':{'@types/node':_0x146bdc(0x25c),'javascript-obfuscator':_0x146bdc(0x228),'tsup':_0x146bdc(0x20c),'vite':_0x146bdc(0x1ea)},'publishConfig':{'access':_0x146bdc(0x17a)}},DEFAULT_SERVICE_WORKER_PATH=_0x146bdc(0x16a),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',DIST_SERVICE_WORKER_PATH=_0x146bdc(0x1b9),DIST_RUNTIME_PATH=_0x146bdc(0x1c5),PACKAGE_VERSION=typeof package_default[_0x146bdc(0x197)]===_0x146bdc(0x25f)?package_default[_0x146bdc(0x197)]:_0x146bdc(0x1bd);function normalizeAssetPath(_0x18f25a){const _0x436171=_0x146bdc;if(!_0x18f25a)return _0x18f25a;if(_0x18f25a['startsWith'](_0x436171(0x193))||_0x18f25a[_0x436171(0x1d8)](_0x436171(0x220)))return _0x18f25a;const _0xb7cb82=_0x18f25a[_0x436171(0x262)](/^\.\//,'');return _0xb7cb82[_0x436171(0x1d8)]('/')?_0xb7cb82:'/'+_0xb7cb82;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x58abdb){const _0x103b79=_0x146bdc;return Enhance[_0x103b79(0x22f)](_0x58abdb);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function serviceWorkerURL(){const _0x3e382f=_0x146bdc;return Enhance2[_0x3e382f(0x212)]();}function runtimeURL(){const _0x4f3555=_0x146bdc;return Enhance2[_0x4f3555(0x234)]();}import{promises as _0x24f58a}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x146bdc(0x17f),import.meta['url'])));async function syncAssets(_0x32359a){const _0x1c8603=_0x146bdc,_0x48fca7=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x32359a[_0x1c8603(0x202)]?'./'+_0x32359a[_0x1c8603(0x202)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x2b2164=[];for(const _0x2b80b7 of _0x48fca7){const _0x4b2896=cleanRelativePath(_0x2b80b7[_0x1c8603(0x1d3)]??_0x2b80b7[_0x1c8603(0x19f)]),_0x5c96a6=join(distDir,cleanRelativePath(_0x2b80b7[_0x1c8603(0x1d2)])),_0x38a9b8=join(_0x32359a[_0x1c8603(0x216)],_0x4b2896),[_0x4f19a9,_0x47a4cb]=await Promise[_0x1c8603(0x20e)]([readDigest(_0x5c96a6),readDigest(_0x38a9b8)]);if(_0x4f19a9&&_0x47a4cb&&_0x4f19a9===_0x47a4cb){_0x2b2164['push']({'sourcePath':_0x5c96a6,'destinationPath':_0x38a9b8,'relativeDestination':_0x4b2896,'status':_0x1c8603(0x1b4)});continue;}await _0x24f58a['mkdir'](dirname(_0x38a9b8),{'recursive':!![]}),await _0x24f58a[_0x1c8603(0x1f7)](_0x5c96a6,_0x38a9b8),_0x2b2164[_0x1c8603(0x1c1)]({'sourcePath':_0x5c96a6,'destinationPath':_0x38a9b8,'relativeDestination':_0x4b2896,'status':_0x1c8603(0x1b3)});}return _0x2b2164;}function cleanRelativePath(_0x4316fb){return _0x4316fb['replace'](/^[./]+/,'');}async function readDigest(_0x1c88c4){const _0x2cac38=_0x146bdc;try{const _0x25564=await _0x24f58a['readFile'](_0x1c88c4);return createHash(_0x2cac38(0x176))[_0x2cac38(0x165)](_0x25564)['digest']('base64');}catch(_0xd65dbf){if(_0xd65dbf[_0x2cac38(0x1db)]===_0x2cac38(0x263))return null;throw _0xd65dbf;}}var program=new Command();program[_0x146bdc(0x1f4)](_0x146bdc(0x230))[_0x146bdc(0x1d1)]('Enhance\x20sandbox\x20utility\x20CLI')[_0x146bdc(0x197)]('0.0.0'),program[_0x146bdc(0x219)](_0x146bdc(0x1ef))['description'](_0x146bdc(0x249))[_0x146bdc(0x1c6)](()=>{const _0x5d752e=_0x146bdc,_0x533200=getAssetManifest();process[_0x5d752e(0x23f)][_0x5d752e(0x23c)](JSON['stringify'](_0x533200,null,0x2)+'\x0a');}),program[_0x146bdc(0x219)]('prepare-sw')[_0x146bdc(0x1d1)](_0x146bdc(0x1d7))[_0x146bdc(0x1f3)]('--public-dir\x20<path>',_0x146bdc(0x1e8))[_0x146bdc(0x203)](_0x146bdc(0x22c),_0x146bdc(0x1e3))[_0x146bdc(0x1c6)](async _0x4202c8=>{const _0x3d6fa8=_0x146bdc,_0x5966db=resolve(process[_0x3d6fa8(0x243)](),_0x4202c8['publicDir']),_0x391a55=await syncAssets({'publicDir':_0x5966db,'swFilename':_0x4202c8[_0x3d6fa8(0x242)]});for(const _0x5248ea of _0x391a55){const _0x401505=relative(process['cwd'](),_0x5248ea[_0x3d6fa8(0x1f5)]);_0x5248ea[_0x3d6fa8(0x1b7)]==='skipped'?process[_0x3d6fa8(0x23f)][_0x3d6fa8(0x23c)](_0x3d6fa8(0x198)+_0x5248ea['relativeDestination']+_0x3d6fa8(0x1a1)+_0x401505+']\x0a'):process[_0x3d6fa8(0x23f)][_0x3d6fa8(0x23c)](_0x3d6fa8(0x1c0)+_0x5248ea[_0x3d6fa8(0x1cc)]+_0x3d6fa8(0x171)+_0x401505+'\x0a');}}),program[_0x146bdc(0x1e7)]();
3
+ const _0x3f14c7=_0x4daf;(function(_0x1b806a,_0x43fbae){const _0x3d4dcc=_0x4daf,_0x121a2e=_0x1b806a();while(!![]){try{const _0x9f777e=-parseInt(_0x3d4dcc(0x127))/0x1+parseInt(_0x3d4dcc(0x141))/0x2*(-parseInt(_0x3d4dcc(0x1b8))/0x3)+-parseInt(_0x3d4dcc(0x121))/0x4+-parseInt(_0x3d4dcc(0x199))/0x5+parseInt(_0x3d4dcc(0x16a))/0x6+-parseInt(_0x3d4dcc(0x148))/0x7+parseInt(_0x3d4dcc(0x1b5))/0x8;if(_0x9f777e===_0x43fbae)break;else _0x121a2e['push'](_0x121a2e['shift']());}catch(_0x4bab9b){_0x121a2e['push'](_0x121a2e['shift']());}}}(_0x1c65,0x35815));import{Command}from'commander';import{resolve,relative}from'path';function normalizeOptions(_0x4e07b7){const _0x812149=_0x4daf,_0x1475cd=_0x4e07b7[_0x812149(0x108)]??{};return{'callbackBypass':_0x4e07b7[_0x812149(0x19c)],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x1475cd[_0x812149(0x1b1)]??![]},'logLevel':_0x812149(0x134),'swPath':_0x812149(0x1c6),'overlayPath':_0x1475cd['overlayPath']??_0x812149(0x120),'runtimeScriptPath':_0x812149(0x17f),'security':_0x1475cd[_0x812149(0x155)]??_0x812149(0xed),'backendUrl':_0x1475cd[_0x812149(0x126)]??_0x812149(0xe3)};}var state={'enabled':![],'controlled':![]};function getEnhancementUrl(){const _0x5a42cd=_0x4daf;try{const _0x1670e4=new URLSearchParams(window[_0x5a42cd(0x157)][_0x5a42cd(0x10c)]);return _0x1670e4[_0x5a42cd(0x1aa)](_0x5a42cd(0x177))?.[_0x5a42cd(0x1e9)]()||'';}catch{return'';}}var LOG_PREFIX=_0x3f14c7(0x110),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x1662d1){const _0x20bead=_0x3f14c7;console[_0x20bead(0x181)](LOG_PREFIX+_0x20bead(0x19f)),console[_0x20bead(0x181)](LOG_PREFIX+_0x20bead(0x1bf)+_0x1662d1[_0x20bead(0xe1)]),console[_0x20bead(0x181)](LOG_PREFIX+_0x20bead(0x132)+_0x1662d1['enableViteHmr']),currentOptions=_0x1662d1[_0x20bead(0x13f)],toggleHandler=_0x1662d1[_0x20bead(0x1dd)];if(overlayController){console['log'](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x20bead(0x181)](LOG_PREFIX+_0x20bead(0xfb)),overlayLoadPromise;console[_0x20bead(0x181)](LOG_PREFIX+_0x20bead(0x14e)),overlayLoadPromise=doLoadOverlay(_0x1662d1);try{await overlayLoadPromise,console[_0x20bead(0x181)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x51169a){console[_0x20bead(0xef)](LOG_PREFIX+_0x20bead(0x175),_0x51169a);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x1e806e){const _0x819e90=_0x3f14c7;console['log'](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x819e90(0x12f)){console[_0x819e90(0x181)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x819e90(0x19a)]){console[_0x819e90(0x181)](LOG_PREFIX+_0x819e90(0x113)),overlayController=window['__enhanceOverlay'],overlayController[_0x819e90(0x1dd)](_0x1e806e[_0x819e90(0x1dd)]),updateOverlay();return;}console[_0x819e90(0x181)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x1e806e[_0x819e90(0x1d4)]&&(console[_0x819e90(0x181)](LOG_PREFIX+_0x819e90(0x1b9)),await setupRemoteHMR(_0x1e806e[_0x819e90(0xe1)]));console['log'](LOG_PREFIX+_0x819e90(0x158)+_0x1e806e[_0x819e90(0xe1)]);const _0x114a53=Date[_0x819e90(0x1de)](),_0x55f2e7=await import(_0x1e806e[_0x819e90(0xe1)]);console[_0x819e90(0x181)](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x819e90(0x1de)]()-_0x114a53)+'ms'),console[_0x819e90(0x181)](LOG_PREFIX+_0x819e90(0x12b),Object[_0x819e90(0x145)](_0x55f2e7));if(typeof _0x55f2e7?.[_0x819e90(0x1b6)]!==_0x819e90(0x186)){console[_0x819e90(0xef)](LOG_PREFIX+_0x819e90(0xe9)),console['error'](LOG_PREFIX+_0x819e90(0x125),Object['keys'](_0x55f2e7));return;}console[_0x819e90(0x181)](LOG_PREFIX+_0x819e90(0x105));const _0x53207a=_0x55f2e7[_0x819e90(0x1b6)]();console[_0x819e90(0x181)](LOG_PREFIX+_0x819e90(0x183),_0x53207a),overlayController=_0x53207a,window[_0x819e90(0x19a)]=_0x53207a,_0x53207a['onToggle'](_0x1e806e[_0x819e90(0x1dd)]),console[_0x819e90(0x181)](LOG_PREFIX+_0x819e90(0x12e)),console[_0x819e90(0x181)](LOG_PREFIX+_0x819e90(0x1e1)),updateOverlay();}catch(_0x2b365c){console['error'](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x2b365c);}}function updateOverlay(){const _0x5eefa1=_0x3f14c7;console[_0x5eefa1(0x181)](LOG_PREFIX+_0x5eefa1(0x11e)),console[_0x5eefa1(0x181)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console['log'](LOG_PREFIX+_0x5eefa1(0x117)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0x5eefa1(0x1d7));return;}const _0x2f7311=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x5eefa1(0x18e),JSON['stringify'](_0x2f7311,null,0x2)),overlayController['update'](_0x2f7311),console['log'](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x2215b){const _0x3e3f27=_0x3f14c7,_0x157e99=getEnhancementUrl();return console[_0x3e3f27(0x181)](LOG_PREFIX+_0x3e3f27(0x1ba)+_0x157e99),console['log'](LOG_PREFIX+_0x3e3f27(0x10e)+state['enabled']),console[_0x3e3f27(0x181)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x3e3f27(0x1d1)]),{'enhancementUrl':_0x157e99,'enabled':state[_0x3e3f27(0xee)],'controlled':state['controlled'],'overlayPosition':_0x2215b['overlay'][_0x3e3f27(0x194)],'securityMode':_0x2215b[_0x3e3f27(0x155)],'backendBaseUrl':_0x2215b[_0x3e3f27(0x126)]};}async function setupRemoteHMR(_0x470b13){const _0x4682be=_0x3f14c7;console[_0x4682be(0x181)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x470b13);if(typeof window===_0x4682be(0x12f))return;try{const _0x1077fa=new URL(_0x470b13,window[_0x4682be(0x157)][_0x4682be(0x164)]),_0x1a85c0=_0x1077fa[_0x4682be(0x164)];console[_0x4682be(0x181)](LOG_PREFIX+_0x4682be(0xf7)+_0x1a85c0+_0x4682be(0x1bd)+window[_0x4682be(0x157)][_0x4682be(0x164)]);if(_0x1a85c0===window[_0x4682be(0x157)][_0x4682be(0x164)]){console[_0x4682be(0x181)](LOG_PREFIX+_0x4682be(0xe7));return;}console[_0x4682be(0x181)](LOG_PREFIX+_0x4682be(0x1ac)),await ensureReactRefreshPreamble(_0x1a85c0),await ensureViteClient(_0x1a85c0),console['log'](LOG_PREFIX+_0x4682be(0x180));}catch(_0x43e023){console[_0x4682be(0x166)](LOG_PREFIX+_0x4682be(0x14c),_0x43e023);}}async function ensureReactRefreshPreamble(_0x3fe325){const _0x58505e=_0x3f14c7;window[_0x58505e(0x1bb)]??=new Set();if(window[_0x58505e(0x1bb)][_0x58505e(0x1c3)](_0x3fe325)){console[_0x58505e(0x181)](LOG_PREFIX+_0x58505e(0x1db)+_0x3fe325);return;}console[_0x58505e(0x181)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x3fe325+_0x58505e(0x15a));const _0x5ebab9=await import(_0x3fe325+_0x58505e(0x138)),_0x12f9cd=_0x5ebab9&&typeof _0x5ebab9===_0x58505e(0x13d)&&_0x58505e(0x11f)in _0x5ebab9?_0x5ebab9['default']:_0x5ebab9;if(!isRefreshRuntime(_0x12f9cd)){console[_0x58505e(0x166)](LOG_PREFIX+_0x58505e(0x103));return;}_0x12f9cd[_0x58505e(0x168)](window),window[_0x58505e(0xe6)]=()=>{},window[_0x58505e(0x114)]=()=>_0x6546d3=>_0x6546d3,window[_0x58505e(0x1b2)]=!![],window[_0x58505e(0x1bb)][_0x58505e(0x17a)](_0x3fe325),console[_0x58505e(0x181)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x3fe325);}async function ensureViteClient(_0x499933){const _0x45010a=_0x3f14c7;window[_0x45010a(0x198)]??=new Set();if(window[_0x45010a(0x198)][_0x45010a(0x1c3)](_0x499933)){console[_0x45010a(0x181)](LOG_PREFIX+_0x45010a(0x1e3)+_0x499933);return;}console[_0x45010a(0x181)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x499933+'...'),await import(_0x499933+_0x45010a(0x118)),window['__viteHMRLoaded'][_0x45010a(0x17a)](_0x499933),console[_0x45010a(0x181)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x499933);}function isRefreshRuntime(_0x2ab473){const _0x5b1f29=_0x3f14c7;return typeof _0x2ab473===_0x5b1f29(0x13d)&&_0x2ab473!==null&&_0x5b1f29(0x168)in _0x2ab473&&typeof _0x2ab473[_0x5b1f29(0x168)]===_0x5b1f29(0x186);}var WORKER_MESSAGE_CONFIG=_0x3f14c7(0x15e),WORKER_MESSAGE_DISABLE=_0x3f14c7(0x14b),WORKER_MESSAGE_REQUEST_CONFIG='enhance:request-config',LOG_PREFIX2=_0x3f14c7(0x12c),registration=null,messageListener=null,currentOptions2=null,configGetter=null;function _0x1c65(){const _0x1dc159=['removeEventListener','function','\x20detectBlocking\x20-\x20existing\x20registration:','all','../dist/index.js','unregister','history','\x20Config\x20sent\x20to\x20SW','override','\x20Updating\x20overlay\x20with\x20state:','\x20(already\x20current)\x20[','\x20Sending\x20config\x20to\x20SW:','\x20Registering\x20SW\x20at\x20','@enhance-eng/sandbox','manifest','position','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','stringify','option','__viteHMRLoaded','868285fHpxAB','__enhanceOverlay','enable','callbackBypass','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','./dist/index.cjs','\x20loadOverlay()\x20called','\x20Message\x20listener\x20attached','\x20unregisterServiceWorker()\x20called','\x20Checking\x20for\x20blocking\x20service\x20worker...','requiredOption','replaceState','Copied\x20','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Raw\x20options:','\x20Registration\x20returned:','get','off','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','bin/enhance-sandbox.js','serviceWorker','\x20Normalized\x20options:','serviceWorkerURL','enableOverlayHmr','__vite_plugin_react_preamble_installed__','http://','runtimeScriptPath','5920496kwiRLN','createOverlay','\x20registerServiceWorker()\x20complete','192xZWKIQ','\x20Setting\x20up\x20remote\x20HMR...','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','__enhanceReactRefreshInstalledOrigins','digest',',\x20page\x20origin:\x20','\x20Message\x20listener\x20detached','\x20overlayPath:\x20','base64','addEventListener','\x20Document\x20readyState:\x20','has','\x20Current\x20URL:\x20','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','/sw-enhance.js','includes','init','write','^8.5.1','hasEnhancement','bin','MIT','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','^4.1.1','^24.10.1','controlled','\x20ownsServiceWorker?\x20scriptURL=','scope','enableViteHmr','update','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','getRegistration','copied','href','\x20React\x20Refresh\x20already\x20installed\x20for\x20','skipped','onToggle','now','code','\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support','\x20Calling\x20updateOverlay()...','0.0.0','\x20Vite\x20client\x20already\x20loaded\x20for\x20','installing','0.3.17','mkdir','replace','\x20Service\x20workers\x20supported','trim','\x20SW\x20unregistered\x20successfully','overlayPath',',\x20expected=','https://api.enhancelabs.ai','stdout','\x20Found\x20registration:','$RefreshReg$','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Starting\x20SW\x20registration\x20(async)...','\x20Module\x20missing\x20createOverlay\x20export!','readyState','\x20No\x20current\x20controller','sourcePath','permissive','enabled','error','\x20Current\x20controller\x20after\x20ready:','register','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','push',',\x20owns=','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','waiting','\x20Overlay\x20origin:\x20','startsWith','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','readFile','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20sendConfiguration()\x20called','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','sw-enhance.js','\x20First\x20initialization','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20Invalid\x20React\x20Refresh\x20runtime','\x20SW\x20ready!\x20Active:','\x20Calling\x20createOverlay()...','scriptURL','Skipped\x20','__development','^11.1.0','querySelector','Print\x20the\x20current\x20asset\x20manifest','search','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','\x20composeOverlayState\x20-\x20state.enabled:\x20','controller','[Enhance\x20Overlay]','./dist/index.d.ts','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','$RefreshSig$','\x20Starting\x20overlay\x20load\x20(async)...','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20currentOptions\x20exists:\x20','/@vite/client','prepare-sw','pnpm\x20version\x20patch\x20--no-git-tag-version','public','--public-dir\x20<path>','state','\x20updateOverlay()\x20called','default','https://assets.enhancelabs.ai/overlay.js','1155168XDhmmT','copyFile','enhance.config.sample.json','reload','\x20Available\x20exports:','backendUrl','1192zxfVui','\x20→\x20',',\x20configGetter:\x20','toString','\x20Module\x20exports:','[Enhance\x20SW-Client]','none','\x20Overlay\x20controller\x20initialized\x20and\x20cached','undefined','\x20No\x20blocking\x20SW\x20found','\x20with\x20scope\x20\x27/\x27...','\x20enableViteHmr:\x20','\x20Current\x20controller:','info','[Enhance\x20Runtime]','\x20Sending\x20initial\x20configuration...','searchParams','/@react-refresh','[data-enhance-runtime-bootstrap]','\x20init()\x20complete\x20-\x20normal\x20mode','enhancementId','\x20BLOCKING\x20SW\x20detected:\x20','object','message','options','action','11794sdojik','version','sha256','publicDir','keys','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','overlay','385392Onslwg','enhance','data','enhance:disable','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','active','\x20Starting\x20fresh\x20overlay\x20load...','\x20Enhancement\x20mode\x20ENABLED','\x20URL\x20params\x20parsed:','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','\x20resolveWorker:','\x20init()\x20called\x20at\x20','runtimeURL','security','cwd','location','\x20Importing\x20overlay\x20module\x20from:\x20','description','...','manifestPath','\x20Failed\x20to\x20register\x20service\x20worker:','command','enhance:configure','filename','postMessage','Enhance\x20sandbox\x20utility\x20CLI','url','state:\x20','origin','some','warn','toLowerCase','injectIntoGlobalHook','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','2251200qnSLLz','\x20enhancementId:\x20','sw-enhance','swFilename','ENOENT','N/A','\x20Controller\x20state:','./dist/vite/index.js','^3.22.4','\x20Unregistering\x20SW...','delete','\x20loadOverlay()\x20failed:','https://','enhancementUrl','\x20registerServiceWorker()\x20called','\x20enhancementUrl:\x20','add','explicitDisable','\x20SW\x20requested\x20config\x20-\x20sending...','relativeDestination','swPath','/assets/enhance-runtime.js','\x20HMR\x20setup\x20complete','log','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20Controller\x20created:','./dist/index.js'];_0x1c65=function(){return _0x1dc159;};return _0x1c65();}async function registerServiceWorker(_0x33cdb8){const _0x152ddf=_0x3f14c7;console[_0x152ddf(0x181)](LOG_PREFIX2+_0x152ddf(0x178)),console[_0x152ddf(0x181)](LOG_PREFIX2+'\x20swPath:\x20'+_0x33cdb8[_0x152ddf(0x17e)]);if(!(_0x152ddf(0x1ae)in navigator)){console[_0x152ddf(0x166)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x152ddf(0x181)](LOG_PREFIX2+_0x152ddf(0x1e8));const _0x5849d4=navigator[_0x152ddf(0x1ae)]['controller'];console[_0x152ddf(0x181)](LOG_PREFIX2+_0x152ddf(0x133),_0x5849d4?.[_0x152ddf(0x106)]??_0x152ddf(0x12d)),console['log'](LOG_PREFIX2+_0x152ddf(0x170),_0x5849d4?.[_0x152ddf(0x11d)]??_0x152ddf(0x16f));const _0x1b3e1a=!!_0x5849d4;currentOptions2=_0x33cdb8,configGetter=()=>buildWorkerConfiguration(_0x33cdb8),console[_0x152ddf(0x181)](LOG_PREFIX2+_0x152ddf(0x1a2));const _0x13a4b2=await detectBlockingServiceWorker(_0x33cdb8['swPath']);if(_0x13a4b2){console[_0x152ddf(0xef)](LOG_PREFIX2+_0x152ddf(0x13c)+_0x13a4b2),console['error'](LOG_PREFIX2+_0x152ddf(0xf2));return;}console[_0x152ddf(0x181)](LOG_PREFIX2+_0x152ddf(0x130));try{console['log'](LOG_PREFIX2+_0x152ddf(0x191)+_0x33cdb8[_0x152ddf(0x17e)]+_0x152ddf(0x131)),registration=await navigator[_0x152ddf(0x1ae)][_0x152ddf(0xf1)](_0x33cdb8[_0x152ddf(0x17e)],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x152ddf(0x1a9),{'scope':registration[_0x152ddf(0x1d3)],'active':registration[_0x152ddf(0x14d)]?.[_0x152ddf(0x106)],'waiting':registration[_0x152ddf(0xf6)]?.['scriptURL'],'installing':registration[_0x152ddf(0x1e4)]?.['scriptURL']}),console['log'](LOG_PREFIX2+_0x152ddf(0x169));const _0x5e873c=await navigator[_0x152ddf(0x1ae)]['ready'];console[_0x152ddf(0x181)](LOG_PREFIX2+_0x152ddf(0x104),_0x5e873c[_0x152ddf(0x14d)]?.[_0x152ddf(0x106)]);const _0x228d93=ownsCurrentController(_0x33cdb8[_0x152ddf(0x17e)]);state[_0x152ddf(0x1d1)]=_0x228d93,console['log'](LOG_PREFIX2+_0x152ddf(0x195)+_0x228d93),console[_0x152ddf(0x181)](LOG_PREFIX2+_0x152ddf(0xf0),navigator['serviceWorker'][_0x152ddf(0x10f)]?.[_0x152ddf(0x106)]??'none');if(!_0x1b3e1a&&!navigator[_0x152ddf(0x1ae)][_0x152ddf(0x10f)]){console['log'](LOG_PREFIX2+_0x152ddf(0x182)),window[_0x152ddf(0x157)][_0x152ddf(0x124)]();return;}console[_0x152ddf(0x181)](LOG_PREFIX2+'\x20Attaching\x20message\x20listener...'),attachMessageListener(),console['log'](LOG_PREFIX2+_0x152ddf(0x136)),await sendConfiguration();if(state[_0x152ddf(0xee)]){const _0x3a334a=document[_0x152ddf(0x10a)](_0x152ddf(0x139))!==null;console[_0x152ddf(0x181)](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x3a334a);if(!_0x3a334a){console['log'](LOG_PREFIX2+_0x152ddf(0x1ce)),window['location'][_0x152ddf(0x124)]();return;}}console[_0x152ddf(0x181)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console['log'](LOG_PREFIX2+_0x152ddf(0x1b7));}catch(_0x536338){console[_0x152ddf(0xef)](LOG_PREFIX2+_0x152ddf(0x15c),_0x536338);}}async function sendConfiguration(){const _0x2de46e=_0x3f14c7;console[_0x2de46e(0x181)](LOG_PREFIX2+_0x2de46e(0xfd)),console[_0x2de46e(0x181)](LOG_PREFIX2+'\x20state.enabled:\x20'+state[_0x2de46e(0xee)]+_0x2de46e(0x129)+!!configGetter);if(!state[_0x2de46e(0xee)]||!configGetter){console[_0x2de46e(0x181)](LOG_PREFIX2+_0x2de46e(0x112));return;}const _0x5d5437=await resolveWorker();if(!_0x5d5437){console[_0x2de46e(0x166)](LOG_PREFIX2+_0x2de46e(0x1d6));return;}const _0x24b3c1=configGetter();console[_0x2de46e(0x181)](LOG_PREFIX2+_0x2de46e(0x190),JSON[_0x2de46e(0x196)](_0x24b3c1,null,0x2)),_0x5d5437[_0x2de46e(0x160)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x24b3c1}),console[_0x2de46e(0x181)](LOG_PREFIX2+_0x2de46e(0x18c));}async function unregisterServiceWorker(_0x3bdecd){const _0x471758=_0x3f14c7;console[_0x471758(0x181)](LOG_PREFIX2+_0x471758(0x1a1));if(!(_0x471758(0x1ae)in navigator)){console[_0x471758(0x181)](LOG_PREFIX2+_0x471758(0xf9));return;}detachMessageListener();try{const _0x211b27=registration??await navigator[_0x471758(0x1ae)][_0x471758(0x1d8)]('/');if(!_0x211b27){console[_0x471758(0x181)](LOG_PREFIX2+_0x471758(0x1a7));return;}console[_0x471758(0x181)](LOG_PREFIX2+_0x471758(0xe5),{'scope':_0x211b27[_0x471758(0x1d3)],'active':_0x211b27[_0x471758(0x14d)]?.[_0x471758(0x106)],'waiting':_0x211b27[_0x471758(0xf6)]?.[_0x471758(0x106)],'installing':_0x211b27['installing']?.[_0x471758(0x106)]});const _0x54842c=[_0x211b27['active']?.[_0x471758(0x106)],_0x211b27[_0x471758(0xf6)]?.['scriptURL'],_0x211b27[_0x471758(0x1e4)]?.[_0x471758(0x106)]],_0x2fc082=_0x54842c[_0x471758(0x165)](_0x450628=>_0x450628&&ownsServiceWorker(_0x450628,_0x3bdecd));if(!_0x2fc082){console[_0x471758(0x181)](LOG_PREFIX2+_0x471758(0xfe));return;}_0x211b27[_0x471758(0x14d)]&&(console[_0x471758(0x181)](LOG_PREFIX2+_0x471758(0x1a6)),_0x211b27['active'][_0x471758(0x160)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x471758(0x173)),await _0x211b27[_0x471758(0x18a)](),registration=null,console[_0x471758(0x181)](LOG_PREFIX2+_0x471758(0xe0));}catch(_0x3a1f2f){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x3a1f2f);}}function attachMessageListener(){const _0x373cea=_0x3f14c7;if(!navigator['serviceWorker']||messageListener){console[_0x373cea(0x181)](LOG_PREFIX2+_0x373cea(0x1e0));return;}messageListener=_0x3eca74=>{const _0x4e8a8b=_0x373cea,_0x411bfa=_0x3eca74[_0x4e8a8b(0x14a)];console[_0x4e8a8b(0x181)](LOG_PREFIX2+'\x20Received\x20message\x20from\x20SW:',_0x411bfa);if(!_0x411bfa||typeof _0x411bfa!==_0x4e8a8b(0x13d))return;_0x411bfa['type']===WORKER_MESSAGE_REQUEST_CONFIG&&(console[_0x4e8a8b(0x181)](LOG_PREFIX2+_0x4e8a8b(0x17c)),void sendConfiguration());},navigator[_0x373cea(0x1ae)][_0x373cea(0x1c1)]('message',messageListener),console[_0x373cea(0x181)](LOG_PREFIX2+_0x373cea(0x1a0));}function _0x4daf(_0x44fe50,_0x6f4527){const _0x1c65ce=_0x1c65();return _0x4daf=function(_0x4dafea,_0x60738d){_0x4dafea=_0x4dafea-0xe0;let _0x49c41b=_0x1c65ce[_0x4dafea];return _0x49c41b;},_0x4daf(_0x44fe50,_0x6f4527);}function detachMessageListener(){const _0xd39320=_0x3f14c7;navigator[_0xd39320(0x1ae)]&&messageListener&&(navigator[_0xd39320(0x1ae)][_0xd39320(0x185)](_0xd39320(0x13e),messageListener),messageListener=null,console[_0xd39320(0x181)](LOG_PREFIX2+_0xd39320(0x1be)));}function ownsServiceWorker(_0x32c44c,_0x4e0ef9){const _0x29b8f7=_0x3f14c7,_0x1f1464=typeof window!=='undefined'?window[_0x29b8f7(0x157)][_0x29b8f7(0x164)]:'',_0x30a004=new URL(_0x4e0ef9,_0x1f1464||void 0x0)['href'],_0xd2c8a0=_0x32c44c===_0x30a004||_0x32c44c[_0x29b8f7(0x1c7)](_0x29b8f7(0x16c));return console['log'](LOG_PREFIX2+_0x29b8f7(0x1d2)+_0x32c44c+_0x29b8f7(0xe2)+_0x30a004+_0x29b8f7(0xf4)+_0xd2c8a0),_0xd2c8a0;}function ownsCurrentController(_0x3e0d18){const _0x3b3bc4=_0x3f14c7;if(typeof navigator===_0x3b3bc4(0x12f))return![];const _0x277d44=navigator['serviceWorker']?.[_0x3b3bc4(0x10f)];if(!_0x277d44)return console[_0x3b3bc4(0x181)](LOG_PREFIX2+_0x3b3bc4(0xeb)),![];return ownsServiceWorker(_0x277d44[_0x3b3bc4(0x106)],_0x3e0d18);}async function detectBlockingServiceWorker(_0x2af035){const _0x413af8=_0x3f14c7;if(!navigator[_0x413af8(0x1ae)])return null;try{const _0x454e37=await navigator[_0x413af8(0x1ae)][_0x413af8(0x1d8)]('/');console[_0x413af8(0x181)](LOG_PREFIX2+_0x413af8(0x187),_0x454e37?.[_0x413af8(0x14d)]?.[_0x413af8(0x106)]??'none');const _0x534087=_0x454e37?.[_0x413af8(0x14d)]?.['scriptURL'];if(!_0x534087)return null;if(ownsServiceWorker(_0x534087,_0x2af035))return null;return _0x534087;}catch(_0xd7b21){return console[_0x413af8(0xef)](LOG_PREFIX2+'\x20detectBlocking\x20error:',_0xd7b21),null;}}async function resolveWorker(){const _0x45f46b=_0x3f14c7,_0x4fde15=registration??await navigator['serviceWorker']?.[_0x45f46b(0x1d8)]('/'),_0x32df5d=_0x4fde15?.['active']??_0x4fde15?.[_0x45f46b(0xf6)]??_0x4fde15?.[_0x45f46b(0x1e4)]??null;return console['log'](LOG_PREFIX2+_0x45f46b(0x152),_0x32df5d?.[_0x45f46b(0x106)]??_0x45f46b(0x12d),_0x45f46b(0x163)+(_0x32df5d?.['state']??_0x45f46b(0x16f))),_0x32df5d;}function buildWorkerConfiguration(_0x31b051){const _0x2e36a1=_0x3f14c7,_0x3fb56b=getEnhancementUrl();return console[_0x2e36a1(0x181)](LOG_PREFIX2+_0x2e36a1(0x10d)+_0x3fb56b),{'enhancementUrl':_0x3fb56b,'callbackBypass':_0x31b051[_0x2e36a1(0x19c)],'overlayPath':_0x31b051[_0x2e36a1(0xe1)],'overlayEnableViteHmr':_0x31b051[_0x2e36a1(0x147)][_0x2e36a1(0x1d4)],'runtimeScriptPath':_0x31b051[_0x2e36a1(0x1b4)],'swPath':_0x31b051[_0x2e36a1(0x17e)],'securityMode':_0x31b051[_0x2e36a1(0x155)],'backendUrl':_0x31b051['backendUrl']};}var LOG_PREFIX3=_0x3f14c7(0x135),initialized=![],options=null,Enhance={'init'(_0x1eaba6){const _0x43154a=_0x3f14c7,_0x44c9ae=Date[_0x43154a(0x1de)]();console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x153)+_0x44c9ae),console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x1c4)+window[_0x43154a(0x157)][_0x43154a(0x1da)]),console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x1c2)+document[_0x43154a(0xea)]),console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x1a8),JSON[_0x43154a(0x196)](_0x1eaba6,null,0x2));if(initialized)return console[_0x43154a(0x166)](LOG_PREFIX3+_0x43154a(0x1c5)),createController();initialized=!![],console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x101)),options=normalizeOptions(_0x1eaba6),console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x1af),JSON[_0x43154a(0x196)](options,null,0x2));const _0x106b02=parseUrlParams();console['log'](LOG_PREFIX3+_0x43154a(0x150),JSON[_0x43154a(0x196)](_0x106b02,null,0x2));if(_0x106b02[_0x43154a(0x17b)])return cleanUrlParam(_0x43154a(0x149)),console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x146)),createController();if(_0x106b02[_0x43154a(0x1cb)])return console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x14f)),console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x179)+_0x106b02['enhancementUrl']),console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x16b)+_0x106b02[_0x43154a(0x13b)]),state[_0x43154a(0xee)]=!![],console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x115)),void loadOverlay({'overlayPath':options[_0x43154a(0xe1)],'enableViteHmr':options[_0x43154a(0x147)][_0x43154a(0x1d4)],'options':options,'onToggle':handleToggle}),console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0xe8)),void registerServiceWorker(options),console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x102)),createController();return console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x116)),console['log'](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(options['swPath']),console[_0x43154a(0x181)](LOG_PREFIX3+_0x43154a(0x13a)),createController();}};function createController(){return{'enable'(){const _0x81f3dd=_0x4daf;if(!options)return;state['enabled']=!![],void loadOverlay({'overlayPath':options[_0x81f3dd(0xe1)],'enableViteHmr':options[_0x81f3dd(0x147)][_0x81f3dd(0x1d4)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){const _0x2a120f=_0x4daf;if(!options)return;state['enabled']=![],state[_0x2a120f(0x1d1)]=![],updateOverlay(),void unregisterServiceWorker(options['swPath']);},'status'(){const _0x127864=_0x4daf;return{'enabled':state['enabled'],'controlled':state[_0x127864(0x1d1)]};}};}function handleToggle(){const _0x599ebe=_0x3f14c7,_0x35468d=createController();state[_0x599ebe(0xee)]?_0x35468d['disable']():_0x35468d[_0x599ebe(0x19b)]();}function parseUrlParams(){const _0x214da4=_0x3f14c7,_0x45d513=new URL(window[_0x214da4(0x157)][_0x214da4(0x1da)]),_0x3e161d=_0x45d513[_0x214da4(0x137)][_0x214da4(0x1aa)]('enhance')?.[_0x214da4(0x167)](),_0x58342e=_0x45d513[_0x214da4(0x137)][_0x214da4(0x1aa)]('enhancementUrl'),_0x478183=_0x45d513[_0x214da4(0x137)][_0x214da4(0x1aa)]('enhancement');return{'hasEnhancement':Boolean(_0x58342e||_0x478183),'explicitDisable':_0x3e161d==='0'||_0x3e161d==='false'||_0x3e161d===_0x214da4(0x1ab),'enhancementUrl':_0x58342e,'enhancementId':_0x478183};}function cleanUrlParam(_0x6c7672){const _0x23e4e0=_0x3f14c7,_0x797729=new URL(window['location']['href']);_0x797729['searchParams'][_0x23e4e0(0x1c3)](_0x6c7672)&&(_0x797729[_0x23e4e0(0x137)][_0x23e4e0(0x174)](_0x6c7672),window[_0x23e4e0(0x18b)][_0x23e4e0(0x1a4)](null,document['title'],_0x797729[_0x23e4e0(0x12a)]()));}var package_default={'name':_0x3f14c7(0x192),'version':_0x3f14c7(0x1e5),'type':'module','description':_0x3f14c7(0xff),'license':_0x3f14c7(0x1cd),'main':_0x3f14c7(0x19e),'module':_0x3f14c7(0x184),'types':_0x3f14c7(0x111),'exports':{'.':{'types':_0x3f14c7(0x111),'import':_0x3f14c7(0x184),'require':_0x3f14c7(0x19e)},'./vite':{'types':'./dist/vite/index.d.ts','import':_0x3f14c7(0x171)}},'files':['dist',_0x3f14c7(0x1cc),_0x3f14c7(0x123)],'bin':{'enhance-sandbox':_0x3f14c7(0x1ad)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x3f14c7(0x19d),'dev:staging':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x3f14c7(0xfc),'version':_0x3f14c7(0x11a)},'dependencies':{'commander':_0x3f14c7(0x109),'zod':_0x3f14c7(0x172)},'devDependencies':{'@types/node':_0x3f14c7(0x1d0),'javascript-obfuscator':_0x3f14c7(0x1cf),'tsup':_0x3f14c7(0x1ca),'vite':'^7.2.4'},'publishConfig':{'access':_0x3f14c7(0x11b)}},DEFAULT_SERVICE_WORKER_PATH=_0x3f14c7(0x1c6),DEFAULT_RUNTIME_PATH=_0x3f14c7(0x17f),DIST_SERVICE_WORKER_PATH=_0x3f14c7(0x100),DIST_RUNTIME_PATH='assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x3f14c7(0x142)]==='string'?package_default[_0x3f14c7(0x142)]:_0x3f14c7(0x1e2);function normalizeAssetPath(_0x33dd2c){const _0x26c8d0=_0x3f14c7;if(!_0x33dd2c)return _0x33dd2c;if(_0x33dd2c['startsWith'](_0x26c8d0(0x1b3))||_0x33dd2c[_0x26c8d0(0xf8)](_0x26c8d0(0x176)))return _0x33dd2c;const _0x49491c=_0x33dd2c['replace'](/^\.\//,'');return _0x49491c['startsWith']('/')?_0x49491c:'/'+_0x49491c;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x9ff2eb){const _0x1d5120=_0x3f14c7;return Enhance[_0x1d5120(0x1c8)](_0x9ff2eb);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function serviceWorkerURL(){const _0x4e5c9e=_0x3f14c7;return Enhance2[_0x4e5c9e(0x1b0)]();}function runtimeURL(){const _0x317faa=_0x3f14c7;return Enhance2[_0x317faa(0x154)]();}import{promises as _0x2b1b86}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x3f14c7(0x189),import.meta[_0x3f14c7(0x162)])));async function syncAssets(_0xaeca91){const _0x571aa0=_0x3f14c7,_0x4f1efc=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0xaeca91[_0x571aa0(0x16d)]?'./'+_0xaeca91[_0x571aa0(0x16d)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x401874=[];for(const _0x51cb1d of _0x4f1efc){const _0x4d10b2=cleanRelativePath(_0x51cb1d[_0x571aa0(0x18d)]??_0x51cb1d[_0x571aa0(0x15b)]),_0x52260=join(distDir,cleanRelativePath(_0x51cb1d[_0x571aa0(0xec)])),_0x89a780=join(_0xaeca91[_0x571aa0(0x144)],_0x4d10b2),[_0x19ba18,_0x179a39]=await Promise[_0x571aa0(0x188)]([readDigest(_0x52260),readDigest(_0x89a780)]);if(_0x19ba18&&_0x179a39&&_0x19ba18===_0x179a39){_0x401874[_0x571aa0(0xf3)]({'sourcePath':_0x52260,'destinationPath':_0x89a780,'relativeDestination':_0x4d10b2,'status':_0x571aa0(0x1dc)});continue;}await _0x2b1b86[_0x571aa0(0x1e6)](dirname(_0x89a780),{'recursive':!![]}),await _0x2b1b86[_0x571aa0(0x122)](_0x52260,_0x89a780),_0x401874[_0x571aa0(0xf3)]({'sourcePath':_0x52260,'destinationPath':_0x89a780,'relativeDestination':_0x4d10b2,'status':_0x571aa0(0x1d9)});}return _0x401874;}function cleanRelativePath(_0x1e64c9){const _0x125f67=_0x3f14c7;return _0x1e64c9[_0x125f67(0x1e7)](/^[./]+/,'');}async function readDigest(_0x11820c){const _0x2a7ede=_0x3f14c7;try{const _0x4701c0=await _0x2b1b86[_0x2a7ede(0xfa)](_0x11820c);return createHash(_0x2a7ede(0x143))[_0x2a7ede(0x1d5)](_0x4701c0)[_0x2a7ede(0x1bc)](_0x2a7ede(0x1c0));}catch(_0x3b10e2){if(_0x3b10e2[_0x2a7ede(0x1df)]===_0x2a7ede(0x16e))return null;throw _0x3b10e2;}}var program=new Command();program['name']('enhance-sandbox')[_0x3f14c7(0x159)](_0x3f14c7(0x161))[_0x3f14c7(0x142)](_0x3f14c7(0x1e2)),program[_0x3f14c7(0x15d)](_0x3f14c7(0x193))['description'](_0x3f14c7(0x10b))[_0x3f14c7(0x140)](()=>{const _0x42ccc7=_0x3f14c7,_0x59709a=getAssetManifest();process[_0x42ccc7(0xe4)][_0x42ccc7(0x1c9)](JSON[_0x42ccc7(0x196)](_0x59709a,null,0x2)+'\x0a');}),program['command'](_0x3f14c7(0x119))[_0x3f14c7(0x159)](_0x3f14c7(0xf5))[_0x3f14c7(0x1a3)](_0x3f14c7(0x11c),'Directory\x20to\x20copy\x20the\x20service\x20worker\x20into')[_0x3f14c7(0x197)]('--filename\x20<name>',_0x3f14c7(0x151))[_0x3f14c7(0x140)](async _0x1253b0=>{const _0x139ba9=_0x3f14c7,_0x35c8d7=resolve(process['cwd'](),_0x1253b0[_0x139ba9(0x144)]),_0x41ab01=await syncAssets({'publicDir':_0x35c8d7,'swFilename':_0x1253b0[_0x139ba9(0x15f)]});for(const _0x52932c of _0x41ab01){const _0x386e7f=relative(process[_0x139ba9(0x156)](),_0x52932c['destinationPath']);_0x52932c['status']===_0x139ba9(0x1dc)?process['stdout'][_0x139ba9(0x1c9)](_0x139ba9(0x107)+_0x52932c[_0x139ba9(0x17d)]+_0x139ba9(0x18f)+_0x386e7f+']\x0a'):process[_0x139ba9(0xe4)][_0x139ba9(0x1c9)](_0x139ba9(0x1a5)+_0x52932c[_0x139ba9(0x17d)]+_0x139ba9(0x128)+_0x386e7f+'\x0a');}}),program['parseAsync']();
package/dist/index.d.ts CHANGED
@@ -22,6 +22,9 @@ interface OverlayController {
22
22
  update(state: OverlayState): void;
23
23
  onToggle(handler: () => void): void;
24
24
  destroy(): void;
25
+ open(): void;
26
+ close(): void;
27
+ isOpen(): boolean;
25
28
  }
26
29
  interface EnhanceStatus {
27
30
  enabled: boolean;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const _0x447c3c=_0x2c38;(function(_0xe6adc8,_0x2f7b78){const _0x2c617d=_0x2c38,_0x596d81=_0xe6adc8();while(!![]){try{const _0x38cbdc=parseInt(_0x2c617d(0x19a))/0x1+parseInt(_0x2c617d(0x199))/0x2*(-parseInt(_0x2c617d(0x175))/0x3)+-parseInt(_0x2c617d(0x21a))/0x4+-parseInt(_0x2c617d(0x168))/0x5*(parseInt(_0x2c617d(0x1b7))/0x6)+-parseInt(_0x2c617d(0x1e9))/0x7*(parseInt(_0x2c617d(0x187))/0x8)+parseInt(_0x2c617d(0x1e0))/0x9+parseInt(_0x2c617d(0x1b8))/0xa*(parseInt(_0x2c617d(0x1f3))/0xb);if(_0x38cbdc===_0x2f7b78)break;else _0x596d81['push'](_0x596d81['shift']());}catch(_0x1887af){_0x596d81['push'](_0x596d81['shift']());}}}(_0x5842,0x4b112));function normalizeOptions(_0x5cc7ee){const _0x38d0aa=_0x2c38,_0x2b62f0=_0x5cc7ee[_0x38d0aa(0x1a9)]??{};return{'callbackBypass':_0x5cc7ee[_0x38d0aa(0x1f9)],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x2b62f0[_0x38d0aa(0x167)]??![]},'logLevel':'info','swPath':_0x38d0aa(0x158),'overlayPath':_0x2b62f0['overlayPath']??'https://assets.enhancelabs.ai/overlay.js','runtimeScriptPath':_0x38d0aa(0x219),'security':_0x2b62f0[_0x38d0aa(0x1b5)]??_0x38d0aa(0x17e),'backendUrl':_0x2b62f0[_0x38d0aa(0x201)]??'https://api.enhancelabs.ai'};}var state={'enabled':![],'controlled':![]};function getEnhancementUrl(){const _0x26968b=_0x2c38;try{const _0x509967=new URLSearchParams(window[_0x26968b(0x17b)]['search']);return _0x509967['get'](_0x26968b(0x1ea))?.[_0x26968b(0x1d8)]()||'';}catch{return'';}}var LOG_PREFIX=_0x447c3c(0x16a),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x31044f){const _0x6341c9=_0x447c3c;console['log'](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x6341c9(0x1b2)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x31044f['overlayPath']),console[_0x6341c9(0x1b2)](LOG_PREFIX+_0x6341c9(0x1ec)+_0x31044f[_0x6341c9(0x20d)]),currentOptions=_0x31044f[_0x6341c9(0x1ae)],toggleHandler=_0x31044f[_0x6341c9(0x224)];if(overlayController){console[_0x6341c9(0x1b2)](LOG_PREFIX+_0x6341c9(0x1cb)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x6341c9(0x1b2)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x6341c9(0x1b2)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x31044f);try{await overlayLoadPromise,console[_0x6341c9(0x1b2)](LOG_PREFIX+_0x6341c9(0x15a));}catch(_0x506b37){console[_0x6341c9(0x1f6)](LOG_PREFIX+_0x6341c9(0x185),_0x506b37);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x121e42){const _0x566dfc=_0x447c3c;console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x566dfc(0x188)){console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x1c0));return;}if(window[_0x566dfc(0x1bb)]){console['log'](LOG_PREFIX+_0x566dfc(0x1af)),overlayController=window[_0x566dfc(0x1bb)],overlayController['onToggle'](_0x121e42[_0x566dfc(0x224)]),updateOverlay();return;}console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x19e));try{_0x121e42['enableViteHmr']&&(console['log'](LOG_PREFIX+_0x566dfc(0x156)),await setupRemoteHMR(_0x121e42[_0x566dfc(0x177)]));console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x121e42['overlayPath']);const _0x1e4021=Date[_0x566dfc(0x17f)](),_0x46904a=await import(_0x121e42[_0x566dfc(0x177)]);console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x221)+(Date[_0x566dfc(0x17f)]()-_0x1e4021)+'ms'),console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x22b),Object[_0x566dfc(0x15b)](_0x46904a));if(typeof _0x46904a?.[_0x566dfc(0x171)]!=='function'){console['error'](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x566dfc(0x1f6)](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x566dfc(0x15b)](_0x46904a));return;}console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x182));const _0x214b46=_0x46904a[_0x566dfc(0x171)]();console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20Controller\x20created:',_0x214b46),overlayController=_0x214b46,window[_0x566dfc(0x1bb)]=_0x214b46,_0x214b46[_0x566dfc(0x224)](_0x121e42[_0x566dfc(0x224)]),console['log'](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x4bd65b){console[_0x566dfc(0x1f6)](LOG_PREFIX+_0x566dfc(0x1ff),_0x4bd65b);}}function updateOverlay(){const _0xf07ed=_0x447c3c;console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x170)),console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x1c2)+!!overlayController),console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x1b1)+!!currentOptions);if(!overlayController||!currentOptions){console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x1e8));return;}const _0xf8a48=composeOverlayState(currentOptions);console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x228),JSON[_0xf07ed(0x1cf)](_0xf8a48,null,0x2)),overlayController[_0xf07ed(0x195)](_0xf8a48),console[_0xf07ed(0x1b2)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x4575a9){const _0x47752b=_0x447c3c,_0x2da3c9=getEnhancementUrl();return console[_0x47752b(0x1b2)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementUrl:\x20'+_0x2da3c9),console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x47752b(0x181)]),console[_0x47752b(0x1b2)](LOG_PREFIX+_0x47752b(0x16c)+state['controlled']),{'enhancementUrl':_0x2da3c9,'enabled':state[_0x47752b(0x181)],'controlled':state[_0x47752b(0x1d2)],'overlayPosition':_0x4575a9['overlay'][_0x47752b(0x222)],'securityMode':_0x4575a9[_0x47752b(0x1b5)],'backendBaseUrl':_0x4575a9[_0x47752b(0x201)]};}async function setupRemoteHMR(_0x575f08){const _0x57314d=_0x447c3c;console['log'](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x575f08);if(typeof window===_0x57314d(0x188))return;try{const _0x39d0cc=new URL(_0x575f08,window[_0x57314d(0x17b)]['origin']),_0x19fe7d=_0x39d0cc[_0x57314d(0x194)];console[_0x57314d(0x1b2)](LOG_PREFIX+_0x57314d(0x17c)+_0x19fe7d+_0x57314d(0x1d9)+window[_0x57314d(0x17b)]['origin']);if(_0x19fe7d===window[_0x57314d(0x17b)]['origin']){console[_0x57314d(0x1b2)](LOG_PREFIX+_0x57314d(0x16f));return;}console['log'](LOG_PREFIX+_0x57314d(0x192)),await ensureReactRefreshPreamble(_0x19fe7d),await ensureViteClient(_0x19fe7d),console[_0x57314d(0x1b2)](LOG_PREFIX+_0x57314d(0x1c3));}catch(_0x4cb35d){console[_0x57314d(0x1e5)](LOG_PREFIX+_0x57314d(0x1df),_0x4cb35d);}}async function ensureReactRefreshPreamble(_0x3b1574){const _0x40b422=_0x447c3c;window[_0x40b422(0x19d)]??=new Set();if(window[_0x40b422(0x19d)][_0x40b422(0x17d)](_0x3b1574)){console[_0x40b422(0x1b2)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x3b1574);return;}console[_0x40b422(0x1b2)](LOG_PREFIX+_0x40b422(0x1ce)+_0x3b1574+_0x40b422(0x1ad));const _0x3b7b75=await import(_0x3b1574+_0x40b422(0x16d)),_0x3307ee=_0x3b7b75&&typeof _0x3b7b75===_0x40b422(0x1f2)&&_0x40b422(0x1a3)in _0x3b7b75?_0x3b7b75['default']:_0x3b7b75;if(!isRefreshRuntime(_0x3307ee)){console['warn'](LOG_PREFIX+_0x40b422(0x1ba));return;}_0x3307ee['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window[_0x40b422(0x15e)]=()=>_0x1c219e=>_0x1c219e,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x40b422(0x19d)][_0x40b422(0x21d)](_0x3b1574),console[_0x40b422(0x1b2)](LOG_PREFIX+_0x40b422(0x1b0)+_0x3b1574);}async function ensureViteClient(_0x3cb3a0){const _0x38fa02=_0x447c3c;window[_0x38fa02(0x215)]??=new Set();if(window[_0x38fa02(0x215)][_0x38fa02(0x17d)](_0x3cb3a0)){console['log'](LOG_PREFIX+_0x38fa02(0x179)+_0x3cb3a0);return;}console[_0x38fa02(0x1b2)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x3cb3a0+_0x38fa02(0x1ad)),await import(_0x3cb3a0+_0x38fa02(0x162)),window['__viteHMRLoaded']['add'](_0x3cb3a0),console[_0x38fa02(0x1b2)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x3cb3a0);}function isRefreshRuntime(_0x2406db){const _0x103be9=_0x447c3c;return typeof _0x2406db===_0x103be9(0x1f2)&&_0x2406db!==null&&_0x103be9(0x159)in _0x2406db&&typeof _0x2406db[_0x103be9(0x159)]===_0x103be9(0x205);}var WORKER_MESSAGE_CONFIG=_0x447c3c(0x1b3),WORKER_MESSAGE_DISABLE='enhance:disable',WORKER_MESSAGE_REQUEST_CONFIG=_0x447c3c(0x208),LOG_PREFIX2=_0x447c3c(0x202),registration=null,messageListener=null,currentOptions2=null,configGetter=null;async function registerServiceWorker(_0x1b4377){const _0x471eac=_0x447c3c;console[_0x471eac(0x1b2)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1aa)+_0x1b4377[_0x471eac(0x1e2)]);if(!(_0x471eac(0x225)in navigator)){console[_0x471eac(0x1e5)](LOG_PREFIX2+_0x471eac(0x200));return;}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x190));const _0x533101=navigator[_0x471eac(0x225)][_0x471eac(0x21b)];console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x18f),_0x533101?.[_0x471eac(0x173)]??_0x471eac(0x1fc)),console['log'](LOG_PREFIX2+'\x20Controller\x20state:',_0x533101?.['state']??_0x471eac(0x193));const _0x3fc05f=!!_0x533101;currentOptions2=_0x1b4377,configGetter=()=>buildWorkerConfiguration(_0x1b4377),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x183));const _0x534937=await detectBlockingServiceWorker(_0x1b4377[_0x471eac(0x1e2)]);if(_0x534937){console['error'](LOG_PREFIX2+_0x471eac(0x198)+_0x534937),console['error'](LOG_PREFIX2+'\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered');return;}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1a8));try{console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1db)+_0x1b4377['swPath']+_0x471eac(0x21e)),registration=await navigator['serviceWorker'][_0x471eac(0x217)](_0x1b4377['swPath'],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x471eac(0x1c1),{'scope':registration['scope'],'active':registration[_0x471eac(0x1d6)]?.['scriptURL'],'waiting':registration[_0x471eac(0x1b6)]?.[_0x471eac(0x173)],'installing':registration[_0x471eac(0x1f0)]?.[_0x471eac(0x173)]}),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x209));const _0x36a772=await navigator[_0x471eac(0x225)][_0x471eac(0x21c)];console['log'](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x36a772[_0x471eac(0x1d6)]?.[_0x471eac(0x173)]);const _0x3dd053=ownsCurrentController(_0x1b4377[_0x471eac(0x1e2)]);state[_0x471eac(0x1d2)]=_0x3dd053,console[_0x471eac(0x1b2)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x3dd053),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1cc),navigator[_0x471eac(0x225)][_0x471eac(0x21b)]?.['scriptURL']??_0x471eac(0x1fc));if(!_0x3fc05f&&!navigator[_0x471eac(0x225)][_0x471eac(0x21b)]){console[_0x471eac(0x1b2)](LOG_PREFIX2+'\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...'),window['location'][_0x471eac(0x220)]();return;}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1a6)),attachMessageListener(),console['log'](LOG_PREFIX2+_0x471eac(0x20a)),await sendConfiguration();if(state['enabled']){const _0x1412fc=document['querySelector'](_0x471eac(0x203))!==null;console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1a5)+_0x1412fc);if(!_0x1412fc){console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1fe)),window[_0x471eac(0x17b)][_0x471eac(0x220)]();return;}}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x15f)),updateOverlay(),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1b9));}catch(_0x4085b5){console[_0x471eac(0x1f6)](LOG_PREFIX2+_0x471eac(0x155),_0x4085b5);}}async function sendConfiguration(){const _0x351027=_0x447c3c;console['log'](LOG_PREFIX2+_0x351027(0x164)),console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x20e)+state['enabled']+',\x20configGetter:\x20'+!!configGetter);if(!state[_0x351027(0x181)]||!configGetter){console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x1fd));return;}const _0x47e260=await resolveWorker();if(!_0x47e260){console[_0x351027(0x1e5)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x4fdd1f=configGetter();console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x1a0),JSON[_0x351027(0x1cf)](_0x4fdd1f,null,0x2)),_0x47e260[_0x351027(0x1fb)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x4fdd1f}),console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x1d0));}async function unregisterServiceWorker(_0x358f96){const _0x28ef05=_0x447c3c;console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x226));if(!(_0x28ef05(0x225)in navigator)){console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1c9));return;}detachMessageListener();try{const _0x3440a7=registration??await navigator['serviceWorker'][_0x28ef05(0x1d1)]('/');if(!_0x3440a7){console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x19b));return;}console[_0x28ef05(0x1b2)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x3440a7[_0x28ef05(0x1f4)],'active':_0x3440a7[_0x28ef05(0x1d6)]?.[_0x28ef05(0x173)],'waiting':_0x3440a7[_0x28ef05(0x1b6)]?.[_0x28ef05(0x173)],'installing':_0x3440a7[_0x28ef05(0x1f0)]?.[_0x28ef05(0x173)]});const _0x48ab2d=[_0x3440a7['active']?.[_0x28ef05(0x173)],_0x3440a7[_0x28ef05(0x1b6)]?.[_0x28ef05(0x173)],_0x3440a7['installing']?.[_0x28ef05(0x173)]],_0x1b0e78=_0x48ab2d['some'](_0x48103b=>_0x48103b&&ownsServiceWorker(_0x48103b,_0x358f96));if(!_0x1b0e78){console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1d7));return;}_0x3440a7[_0x28ef05(0x1d6)]&&(console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1f8)),_0x3440a7[_0x28ef05(0x1d6)][_0x28ef05(0x1fb)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x28ef05(0x1e7)),await _0x3440a7[_0x28ef05(0x20b)](),registration=null,console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1bf));}catch(_0x326a4b){console[_0x28ef05(0x1f6)](LOG_PREFIX2+_0x28ef05(0x1d3),_0x326a4b);}}function attachMessageListener(){const _0x2ab9eb=_0x447c3c;if(!navigator[_0x2ab9eb(0x225)]||messageListener){console['log'](LOG_PREFIX2+_0x2ab9eb(0x16b));return;}messageListener=_0x2eea4a=>{const _0x112ba2=_0x2ab9eb,_0x2c4d9a=_0x2eea4a[_0x112ba2(0x229)];console[_0x112ba2(0x1b2)](LOG_PREFIX2+_0x112ba2(0x196),_0x2c4d9a);if(!_0x2c4d9a||typeof _0x2c4d9a!==_0x112ba2(0x1f2))return;_0x2c4d9a[_0x112ba2(0x18c)]===WORKER_MESSAGE_REQUEST_CONFIG&&(console[_0x112ba2(0x1b2)](LOG_PREFIX2+_0x112ba2(0x1c5)),void sendConfiguration());},navigator['serviceWorker'][_0x2ab9eb(0x18d)]('message',messageListener),console[_0x2ab9eb(0x1b2)](LOG_PREFIX2+_0x2ab9eb(0x178));}function detachMessageListener(){const _0x23c3c4=_0x447c3c;navigator['serviceWorker']&&messageListener&&(navigator[_0x23c3c4(0x225)][_0x23c3c4(0x184)](_0x23c3c4(0x1ab),messageListener),messageListener=null,console['log'](LOG_PREFIX2+_0x23c3c4(0x207)));}function ownsServiceWorker(_0x1aa89e,_0x4dc2c7){const _0x34834f=_0x447c3c,_0x165b3b=typeof window!=='undefined'?window['location']['origin']:'',_0x130741=new URL(_0x4dc2c7,_0x165b3b||void 0x0)[_0x34834f(0x1da)],_0x3ab00d=_0x1aa89e===_0x130741||_0x1aa89e[_0x34834f(0x1c8)](_0x34834f(0x1a7));return console['log'](LOG_PREFIX2+_0x34834f(0x20c)+_0x1aa89e+_0x34834f(0x216)+_0x130741+',\x20owns='+_0x3ab00d),_0x3ab00d;}function ownsCurrentController(_0x35da83){const _0x265edd=_0x447c3c;if(typeof navigator===_0x265edd(0x188))return![];const _0x4502c5=navigator[_0x265edd(0x225)]?.[_0x265edd(0x21b)];if(!_0x4502c5)return console[_0x265edd(0x1b2)](LOG_PREFIX2+_0x265edd(0x163)),![];return ownsServiceWorker(_0x4502c5[_0x265edd(0x173)],_0x35da83);}async function detectBlockingServiceWorker(_0x1d42e7){const _0xaeff2e=_0x447c3c;if(!navigator[_0xaeff2e(0x225)])return null;try{const _0x46d55c=await navigator[_0xaeff2e(0x225)][_0xaeff2e(0x1d1)]('/');console[_0xaeff2e(0x1b2)](LOG_PREFIX2+_0xaeff2e(0x189),_0x46d55c?.[_0xaeff2e(0x1d6)]?.[_0xaeff2e(0x173)]??_0xaeff2e(0x1fc));const _0x1ad8c5=_0x46d55c?.[_0xaeff2e(0x1d6)]?.['scriptURL'];if(!_0x1ad8c5)return null;if(ownsServiceWorker(_0x1ad8c5,_0x1d42e7))return null;return _0x1ad8c5;}catch(_0x5cfbf4){return console[_0xaeff2e(0x1f6)](LOG_PREFIX2+'\x20detectBlocking\x20error:',_0x5cfbf4),null;}}async function resolveWorker(){const _0x489739=_0x447c3c,_0x5aa5e5=registration??await navigator['serviceWorker']?.[_0x489739(0x1d1)]('/'),_0x34c9d4=_0x5aa5e5?.[_0x489739(0x1d6)]??_0x5aa5e5?.[_0x489739(0x1b6)]??_0x5aa5e5?.[_0x489739(0x1f0)]??null;return console[_0x489739(0x1b2)](LOG_PREFIX2+_0x489739(0x223),_0x34c9d4?.[_0x489739(0x173)]??_0x489739(0x1fc),'state:\x20'+(_0x34c9d4?.['state']??_0x489739(0x193))),_0x34c9d4;}function buildWorkerConfiguration(_0x1537e2){const _0x26a9c5=_0x447c3c,_0x3f23fe=getEnhancementUrl();return console[_0x26a9c5(0x1b2)](LOG_PREFIX2+_0x26a9c5(0x169)+_0x3f23fe),{'enhancementUrl':_0x3f23fe,'callbackBypass':_0x1537e2['callbackBypass'],'overlayPath':_0x1537e2[_0x26a9c5(0x177)],'overlayEnableViteHmr':_0x1537e2[_0x26a9c5(0x1eb)][_0x26a9c5(0x20d)],'runtimeScriptPath':_0x1537e2['runtimeScriptPath'],'swPath':_0x1537e2[_0x26a9c5(0x1e2)],'securityMode':_0x1537e2[_0x26a9c5(0x1b5)],'backendUrl':_0x1537e2[_0x26a9c5(0x201)]};}var LOG_PREFIX3=_0x447c3c(0x197),initialized=![],options=null,Enhance={'init'(_0x5c03b2){const _0x3b0887=_0x447c3c,_0x27d64e=Date[_0x3b0887(0x17f)]();console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1e3)+_0x27d64e),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x212)+window[_0x3b0887(0x17b)][_0x3b0887(0x1da)]),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1d5)+document[_0x3b0887(0x1ed)]),console['log'](LOG_PREFIX3+_0x3b0887(0x22a),JSON[_0x3b0887(0x1cf)](_0x5c03b2,null,0x2));if(initialized)return console[_0x3b0887(0x1e5)](LOG_PREFIX3+'\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller'),createController();initialized=!![],console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1f1)),options=normalizeOptions(_0x5c03b2),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1a4),JSON[_0x3b0887(0x1cf)](options,null,0x2));const _0x4f9aa4=parseUrlParams();console[_0x3b0887(0x1b2)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x3b0887(0x1cf)](_0x4f9aa4,null,0x2));if(_0x4f9aa4[_0x3b0887(0x1ca)])return cleanUrlParam(_0x3b0887(0x19c)),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x191)),createController();if(_0x4f9aa4[_0x3b0887(0x1cd)])return console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x160)),console['log'](LOG_PREFIX3+_0x3b0887(0x157)+_0x4f9aa4[_0x3b0887(0x1ea)]),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x206)+_0x4f9aa4[_0x3b0887(0x210)]),state[_0x3b0887(0x181)]=!![],console['log'](LOG_PREFIX3+_0x3b0887(0x1c6)),void loadOverlay({'overlayPath':options['overlayPath'],'enableViteHmr':options[_0x3b0887(0x1eb)][_0x3b0887(0x20d)],'options':options,'onToggle':handleToggle}),console[_0x3b0887(0x1b2)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(options),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x18e)),createController();return console[_0x3b0887(0x1b2)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x165)),void unregisterServiceWorker(options['swPath']),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x18a)),createController();}};function createController(){return{'enable'(){const _0x283446=_0x2c38;if(!options)return;state['enabled']=!![],void loadOverlay({'overlayPath':options[_0x283446(0x177)],'enableViteHmr':options[_0x283446(0x1eb)][_0x283446(0x20d)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){const _0x130160=_0x2c38;if(!options)return;state[_0x130160(0x181)]=![],state[_0x130160(0x1d2)]=![],updateOverlay(),void unregisterServiceWorker(options[_0x130160(0x1e2)]);},'status'(){const _0x490959=_0x2c38;return{'enabled':state[_0x490959(0x181)],'controlled':state[_0x490959(0x1d2)]};}};}function handleToggle(){const _0x17793d=_0x447c3c,_0x399b3f=createController();state[_0x17793d(0x181)]?_0x399b3f[_0x17793d(0x16e)]():_0x399b3f[_0x17793d(0x19f)]();}function parseUrlParams(){const _0x6740d8=_0x447c3c,_0x53172a=new URL(window['location'][_0x6740d8(0x1da)]),_0x3a5bc8=_0x53172a[_0x6740d8(0x20f)][_0x6740d8(0x186)](_0x6740d8(0x19c))?.[_0x6740d8(0x218)](),_0x1613c6=_0x53172a[_0x6740d8(0x20f)][_0x6740d8(0x186)](_0x6740d8(0x1ea)),_0x2d2d51=_0x53172a[_0x6740d8(0x20f)][_0x6740d8(0x186)](_0x6740d8(0x176));return{'hasEnhancement':Boolean(_0x1613c6||_0x2d2d51),'explicitDisable':_0x3a5bc8==='0'||_0x3a5bc8===_0x6740d8(0x214)||_0x3a5bc8===_0x6740d8(0x1a2),'enhancementUrl':_0x1613c6,'enhancementId':_0x2d2d51};}function _0x2c38(_0xc900e2,_0x49d823){const _0x5842ff=_0x5842();return _0x2c38=function(_0x2c38c4,_0x2f0466){_0x2c38c4=_0x2c38c4-0x155;let _0x5ecd43=_0x5842ff[_0x2c38c4];return _0x5ecd43;},_0x2c38(_0xc900e2,_0x49d823);}function cleanUrlParam(_0x1441f0){const _0x5090a1=_0x447c3c,_0x1d61d5=new URL(window[_0x5090a1(0x17b)][_0x5090a1(0x1da)]);_0x1d61d5['searchParams'][_0x5090a1(0x17d)](_0x1441f0)&&(_0x1d61d5[_0x5090a1(0x20f)][_0x5090a1(0x1e6)](_0x1441f0),window[_0x5090a1(0x1bc)][_0x5090a1(0x1ee)](null,document[_0x5090a1(0x21f)],_0x1d61d5[_0x5090a1(0x174)]()));}var package_default={'name':_0x447c3c(0x1b4),'version':_0x447c3c(0x1f7),'type':_0x447c3c(0x1bd),'description':_0x447c3c(0x166),'license':_0x447c3c(0x1e4),'main':_0x447c3c(0x161),'module':_0x447c3c(0x180),'types':_0x447c3c(0x172),'exports':{'.':{'types':_0x447c3c(0x172),'import':'./dist/index.js','require':'./dist/index.cjs'},'./vite':{'types':'./dist/vite/index.d.ts','import':_0x447c3c(0x15c)}},'files':[_0x447c3c(0x227),_0x447c3c(0x1a1),'enhance.config.sample.json'],'bin':{'enhance-sandbox':_0x447c3c(0x1c7)},'scripts':{'typecheck':_0x447c3c(0x1de),'dev':_0x447c3c(0x1dd),'dev:staging':_0x447c3c(0x1be),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x447c3c(0x1e1),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':'^11.1.0','zod':_0x447c3c(0x1c4)},'devDependencies':{'@types/node':_0x447c3c(0x18b),'javascript-obfuscator':_0x447c3c(0x213),'tsup':_0x447c3c(0x17a),'vite':_0x447c3c(0x15d)},'publishConfig':{'access':_0x447c3c(0x1d4)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x447c3c(0x219),PACKAGE_VERSION=typeof package_default[_0x447c3c(0x1ac)]===_0x447c3c(0x1dc)?package_default[_0x447c3c(0x1ac)]:_0x447c3c(0x211);function _0x5842(){const _0x177510=['[data-enhance-runtime-bootstrap]','replace','function','\x20enhancementId:\x20','\x20Message\x20listener\x20detached','enhance:request-config','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20Sending\x20initial\x20configuration...','unregister','\x20ownsServiceWorker?\x20scriptURL=','enableViteHmr','\x20state.enabled:\x20','searchParams','enhancementId','0.0.0','\x20Current\x20URL:\x20','^4.1.1','false','__viteHMRLoaded',',\x20expected=','register','toLowerCase','/assets/enhance-runtime.js','245512hkOjXF','controller','ready','add','\x20with\x20scope\x20\x27/\x27...','title','reload','\x20Module\x20imported\x20in\x20','position','\x20resolveWorker:','onToggle','serviceWorker','\x20unregisterServiceWorker()\x20called','dist','\x20Updating\x20overlay\x20with\x20state:','data','\x20Raw\x20options:','\x20Module\x20exports:','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Setting\x20up\x20remote\x20HMR...','\x20enhancementUrl:\x20','/sw-enhance.js','injectIntoGlobalHook','\x20loadOverlay()\x20complete','keys','./dist/vite/index.js','^7.2.4','$RefreshSig$','\x20Updating\x20overlay...','\x20Enhancement\x20mode\x20ENABLED','./dist/index.cjs','/@vite/client','\x20No\x20current\x20controller','\x20sendConfiguration()\x20called','\x20Unregistering\x20any\x20existing\x20SW...','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','enableOverlayHmr','8005cxAnmh','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','[Enhance\x20Overlay]','\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support','\x20composeOverlayState\x20-\x20state.controlled:\x20','/@react-refresh','disable','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20updateOverlay()\x20called','createOverlay','./dist/index.d.ts','scriptURL','toString','954kHprwT','enhancement','overlayPath','\x20Message\x20listener\x20attached','\x20Vite\x20client\x20already\x20loaded\x20for\x20','^8.5.1','location','\x20Overlay\x20origin:\x20','has','permissive','now','./dist/index.js','enabled','\x20Calling\x20createOverlay()...','\x20Checking\x20for\x20blocking\x20service\x20worker...','removeEventListener','\x20loadOverlay()\x20failed:','get','6424hutHZP','undefined','\x20detectBlocking\x20-\x20existing\x20registration:','\x20init()\x20complete\x20-\x20normal\x20mode','^24.10.1','type','addEventListener','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20Current\x20controller:','\x20Service\x20workers\x20supported','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','N/A','origin','update','\x20Received\x20message\x20from\x20SW:','[Enhance\x20Runtime]','\x20BLOCKING\x20SW\x20detected:\x20','2762OEbcMG','488588UIrhHF','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','enhance','__enhanceReactRefreshInstalledOrigins','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','enable','\x20Sending\x20config\x20to\x20SW:','bin','off','default','\x20Normalized\x20options:','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20Attaching\x20message\x20listener...','sw-enhance','\x20No\x20blocking\x20SW\x20found','__development','\x20swPath:\x20','message','version','...','options','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20currentOptions\x20exists:\x20','log','enhance:configure','@enhance-eng/sandbox','security','waiting','1500ZCLaup','91150MhoLUh','\x20registerServiceWorker()\x20complete','\x20Invalid\x20React\x20Refresh\x20runtime','__enhanceOverlay','history','module','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20SW\x20unregistered\x20successfully','\x20No\x20window\x20object\x20-\x20skipping','\x20Registration\x20returned:','\x20overlayController\x20exists:\x20','\x20HMR\x20setup\x20complete','^3.22.4','\x20SW\x20requested\x20config\x20-\x20sending...','\x20Starting\x20overlay\x20load\x20(async)...','bin/enhance-sandbox.js','includes','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','explicitDisable','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Current\x20controller\x20after\x20ready:','hasEnhancement','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','stringify','\x20Config\x20sent\x20to\x20SW','getRegistration','controlled','\x20Failed\x20to\x20unregister\x20service\x20worker:','public','\x20Document\x20readyState:\x20','active','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','trim',',\x20page\x20origin:\x20','href','\x20Registering\x20SW\x20at\x20','string','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','tsc\x20--noEmit','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','4232250WcVubU','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','swPath','\x20init()\x20called\x20at\x20','MIT','warn','delete','\x20Unregistering\x20SW...','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','2037PzJWof','enhancementUrl','overlay','\x20enableViteHmr:\x20','readyState','replaceState','https://','installing','\x20First\x20initialization','object','583CqWaoJ','scope','init','error','0.3.16','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','callbackBypass','startsWith','postMessage','none','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20Failed\x20to\x20import/create\x20overlay:','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','backendUrl','[Enhance\x20SW-Client]'];_0x5842=function(){return _0x177510;};return _0x5842();}function normalizeAssetPath(_0x2eb819){const _0x5e2ba7=_0x447c3c;if(!_0x2eb819)return _0x2eb819;if(_0x2eb819[_0x5e2ba7(0x1fa)]('http://')||_0x2eb819[_0x5e2ba7(0x1fa)](_0x5e2ba7(0x1ef)))return _0x2eb819;const _0xbd5e67=_0x2eb819[_0x5e2ba7(0x204)](/^\.\//,'');return _0xbd5e67[_0x5e2ba7(0x1fa)]('/')?_0xbd5e67:'/'+_0xbd5e67;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x1f8f53){const _0x486f3b=_0x447c3c;return Enhance[_0x486f3b(0x1f5)](_0x1f8f53);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
1
+ const _0x49519e=_0x36a5;(function(_0x2e6c82,_0x1df309){const _0x19553d=_0x36a5,_0x10fda4=_0x2e6c82();while(!![]){try{const _0x433c87=parseInt(_0x19553d(0x1b7))/0x1*(-parseInt(_0x19553d(0x209))/0x2)+-parseInt(_0x19553d(0x1c3))/0x3+parseInt(_0x19553d(0x1d2))/0x4*(parseInt(_0x19553d(0x26f))/0x5)+-parseInt(_0x19553d(0x1df))/0x6+-parseInt(_0x19553d(0x230))/0x7*(parseInt(_0x19553d(0x1f8))/0x8)+-parseInt(_0x19553d(0x1cf))/0x9+-parseInt(_0x19553d(0x23b))/0xa*(-parseInt(_0x19553d(0x1fc))/0xb);if(_0x433c87===_0x1df309)break;else _0x10fda4['push'](_0x10fda4['shift']());}catch(_0x2cddf0){_0x10fda4['push'](_0x10fda4['shift']());}}}(_0xd144,0xc0b67));function _0x36a5(_0x3f7396,_0x291398){const _0xd144ba=_0xd144();return _0x36a5=function(_0x36a52e,_0x10ab1a){_0x36a52e=_0x36a52e-0x1b6;let _0x405431=_0xd144ba[_0x36a52e];return _0x405431;},_0x36a5(_0x3f7396,_0x291398);}function normalizeOptions(_0x3dbd1b){const _0x4dd4ca=_0x36a5,_0x40b5e6=_0x3dbd1b[_0x4dd4ca(0x219)]??{};return{'callbackBypass':_0x3dbd1b[_0x4dd4ca(0x212)],'overlay':{'enabled':!![],'position':_0x4dd4ca(0x218),'enableViteHmr':_0x40b5e6[_0x4dd4ca(0x225)]??![]},'logLevel':_0x4dd4ca(0x20d),'swPath':_0x4dd4ca(0x1db),'overlayPath':_0x40b5e6[_0x4dd4ca(0x273)]??'https://assets.enhancelabs.ai/overlay.js','runtimeScriptPath':_0x4dd4ca(0x28b),'security':_0x40b5e6['security']??_0x4dd4ca(0x24b),'backendUrl':_0x40b5e6[_0x4dd4ca(0x231)]??_0x4dd4ca(0x272)};}var state={'enabled':![],'controlled':![]};function getEnhancementUrl(){const _0x1bb731=_0x36a5;try{const _0xa55e61=new URLSearchParams(window[_0x1bb731(0x21d)]['search']);return _0xa55e61[_0x1bb731(0x1b9)](_0x1bb731(0x204))?.[_0x1bb731(0x213)]()||'';}catch{return'';}}var LOG_PREFIX=_0x49519e(0x246),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x4d8e20){const _0x73f991=_0x49519e;console['log'](LOG_PREFIX+_0x73f991(0x220)),console['log'](LOG_PREFIX+_0x73f991(0x236)+_0x4d8e20[_0x73f991(0x273)]),console[_0x73f991(0x223)](LOG_PREFIX+_0x73f991(0x229)+_0x4d8e20['enableViteHmr']),currentOptions=_0x4d8e20[_0x73f991(0x277)],toggleHandler=_0x4d8e20[_0x73f991(0x1e6)];if(overlayController){console[_0x73f991(0x223)](LOG_PREFIX+_0x73f991(0x217)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x73f991(0x223)](LOG_PREFIX+_0x73f991(0x203)),overlayLoadPromise;console[_0x73f991(0x223)](LOG_PREFIX+_0x73f991(0x1ec)),overlayLoadPromise=doLoadOverlay(_0x4d8e20);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x73f991(0x24d));}catch(_0x2986fc){console['error'](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x2986fc);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x33c084){const _0x1f71dc=_0x49519e;console['log'](LOG_PREFIX+_0x1f71dc(0x20a));if(typeof window===_0x1f71dc(0x228)){console[_0x1f71dc(0x223)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x1f71dc(0x26a)]){console[_0x1f71dc(0x223)](LOG_PREFIX+_0x1f71dc(0x248)),overlayController=window[_0x1f71dc(0x26a)],overlayController[_0x1f71dc(0x1e6)](_0x33c084[_0x1f71dc(0x1e6)]),updateOverlay();return;}console[_0x1f71dc(0x223)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x33c084[_0x1f71dc(0x238)]&&(console[_0x1f71dc(0x223)](LOG_PREFIX+_0x1f71dc(0x1dc)),await setupRemoteHMR(_0x33c084['overlayPath']));console['log'](LOG_PREFIX+_0x1f71dc(0x1c4)+_0x33c084[_0x1f71dc(0x273)]);const _0x3fb231=Date[_0x1f71dc(0x249)](),_0x15dad0=await import(_0x33c084['overlayPath']);console[_0x1f71dc(0x223)](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x1f71dc(0x249)]()-_0x3fb231)+'ms'),console[_0x1f71dc(0x223)](LOG_PREFIX+_0x1f71dc(0x1f6),Object[_0x1f71dc(0x1e5)](_0x15dad0));if(typeof _0x15dad0?.[_0x1f71dc(0x1de)]!==_0x1f71dc(0x1ff)){console[_0x1f71dc(0x1bb)](LOG_PREFIX+_0x1f71dc(0x224)),console[_0x1f71dc(0x1bb)](LOG_PREFIX+'\x20Available\x20exports:',Object['keys'](_0x15dad0));return;}console[_0x1f71dc(0x223)](LOG_PREFIX+_0x1f71dc(0x1b8));const _0x323056=_0x15dad0[_0x1f71dc(0x1de)]();console[_0x1f71dc(0x223)](LOG_PREFIX+'\x20Controller\x20created:',_0x323056),overlayController=_0x323056,window[_0x1f71dc(0x26a)]=_0x323056,_0x323056[_0x1f71dc(0x1e6)](_0x33c084[_0x1f71dc(0x1e6)]),console[_0x1f71dc(0x223)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x1f71dc(0x223)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x415f18){console['error'](LOG_PREFIX+_0x1f71dc(0x1cd),_0x415f18);}}function updateOverlay(){const _0x4f37b3=_0x49519e;console['log'](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x4f37b3(0x223)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console[_0x4f37b3(0x223)](LOG_PREFIX+_0x4f37b3(0x1fa)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x4f37b3(0x223)](LOG_PREFIX+_0x4f37b3(0x20e));return;}const _0x46fe94=composeOverlayState(currentOptions);console[_0x4f37b3(0x223)](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x4f37b3(0x227)](_0x46fe94,null,0x2)),overlayController[_0x4f37b3(0x27b)](_0x46fe94),console[_0x4f37b3(0x223)](LOG_PREFIX+_0x4f37b3(0x270));}function composeOverlayState(_0xd846f5){const _0x4bc668=_0x49519e,_0x608782=getEnhancementUrl();return console[_0x4bc668(0x223)](LOG_PREFIX+_0x4bc668(0x271)+_0x608782),console[_0x4bc668(0x223)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state['enabled']),console[_0x4bc668(0x223)](LOG_PREFIX+_0x4bc668(0x210)+state[_0x4bc668(0x286)]),{'enhancementUrl':_0x608782,'enabled':state[_0x4bc668(0x1be)],'controlled':state[_0x4bc668(0x286)],'overlayPosition':_0xd846f5[_0x4bc668(0x25e)][_0x4bc668(0x265)],'securityMode':_0xd846f5[_0x4bc668(0x1ed)],'backendBaseUrl':_0xd846f5[_0x4bc668(0x231)]};}async function setupRemoteHMR(_0x4393b9){const _0x1cd8a7=_0x49519e;console['log'](LOG_PREFIX+_0x1cd8a7(0x280)+_0x4393b9);if(typeof window===_0x1cd8a7(0x228))return;try{const _0x11db0c=new URL(_0x4393b9,window[_0x1cd8a7(0x21d)][_0x1cd8a7(0x288)]),_0x4b9ca5=_0x11db0c[_0x1cd8a7(0x288)];console[_0x1cd8a7(0x223)](LOG_PREFIX+_0x1cd8a7(0x1c5)+_0x4b9ca5+_0x1cd8a7(0x245)+window[_0x1cd8a7(0x21d)][_0x1cd8a7(0x288)]);if(_0x4b9ca5===window['location'][_0x1cd8a7(0x288)]){console['log'](LOG_PREFIX+_0x1cd8a7(0x215));return;}console[_0x1cd8a7(0x223)](LOG_PREFIX+_0x1cd8a7(0x1f0)),await ensureReactRefreshPreamble(_0x4b9ca5),await ensureViteClient(_0x4b9ca5),console[_0x1cd8a7(0x223)](LOG_PREFIX+_0x1cd8a7(0x1ca));}catch(_0x43998f){console[_0x1cd8a7(0x27f)](LOG_PREFIX+_0x1cd8a7(0x211),_0x43998f);}}async function ensureReactRefreshPreamble(_0x1ee14f){const _0x4dd27c=_0x49519e;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x4dd27c(0x208)]['has'](_0x1ee14f)){console[_0x4dd27c(0x223)](LOG_PREFIX+_0x4dd27c(0x281)+_0x1ee14f);return;}console[_0x4dd27c(0x223)](LOG_PREFIX+_0x4dd27c(0x1ee)+_0x1ee14f+'...');const _0x3a8693=await import(_0x1ee14f+_0x4dd27c(0x1f2)),_0x27e894=_0x3a8693&&typeof _0x3a8693===_0x4dd27c(0x267)&&_0x4dd27c(0x23d)in _0x3a8693?_0x3a8693[_0x4dd27c(0x23d)]:_0x3a8693;if(!isRefreshRuntime(_0x27e894)){console[_0x4dd27c(0x27f)](LOG_PREFIX+_0x4dd27c(0x1e8));return;}_0x27e894['injectIntoGlobalHook'](window),window[_0x4dd27c(0x279)]=()=>{},window[_0x4dd27c(0x1bf)]=()=>_0x240741=>_0x240741,window[_0x4dd27c(0x1e4)]=!![],window[_0x4dd27c(0x208)][_0x4dd27c(0x200)](_0x1ee14f),console[_0x4dd27c(0x223)](LOG_PREFIX+_0x4dd27c(0x1ef)+_0x1ee14f);}async function ensureViteClient(_0x4759d5){const _0x56af09=_0x49519e;window[_0x56af09(0x26c)]??=new Set();if(window['__viteHMRLoaded']['has'](_0x4759d5)){console[_0x56af09(0x223)](LOG_PREFIX+_0x56af09(0x258)+_0x4759d5);return;}console[_0x56af09(0x223)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x4759d5+'...'),await import(_0x4759d5+_0x56af09(0x23f)),window['__viteHMRLoaded'][_0x56af09(0x200)](_0x4759d5),console[_0x56af09(0x223)](LOG_PREFIX+_0x56af09(0x1e9)+_0x4759d5);}function isRefreshRuntime(_0x2e06a9){const _0x5147cd=_0x49519e;return typeof _0x2e06a9==='object'&&_0x2e06a9!==null&&_0x5147cd(0x250)in _0x2e06a9&&typeof _0x2e06a9[_0x5147cd(0x250)]===_0x5147cd(0x1ff);}var WORKER_MESSAGE_CONFIG=_0x49519e(0x1f9),WORKER_MESSAGE_DISABLE=_0x49519e(0x27a),WORKER_MESSAGE_REQUEST_CONFIG=_0x49519e(0x263),LOG_PREFIX2=_0x49519e(0x256),registration=null,messageListener=null,currentOptions2=null,configGetter=null;async function registerServiceWorker(_0x37cb7f){const _0x5771a2=_0x49519e;console[_0x5771a2(0x223)](LOG_PREFIX2+_0x5771a2(0x241)),console[_0x5771a2(0x223)](LOG_PREFIX2+_0x5771a2(0x269)+_0x37cb7f[_0x5771a2(0x257)]);if(!(_0x5771a2(0x201)in navigator)){console['warn'](LOG_PREFIX2+_0x5771a2(0x23a));return;}console['log'](LOG_PREFIX2+_0x5771a2(0x26b));const _0x3baba0=navigator[_0x5771a2(0x201)][_0x5771a2(0x239)];console[_0x5771a2(0x223)](LOG_PREFIX2+'\x20Current\x20controller:',_0x3baba0?.[_0x5771a2(0x214)]??_0x5771a2(0x282)),console[_0x5771a2(0x223)](LOG_PREFIX2+_0x5771a2(0x1eb),_0x3baba0?.['state']??'N/A');const _0x496031=!!_0x3baba0;currentOptions2=_0x37cb7f,configGetter=()=>buildWorkerConfiguration(_0x37cb7f),console[_0x5771a2(0x223)](LOG_PREFIX2+_0x5771a2(0x216));const _0x7f68a=await detectBlockingServiceWorker(_0x37cb7f[_0x5771a2(0x257)]);if(_0x7f68a){console[_0x5771a2(0x1bb)](LOG_PREFIX2+_0x5771a2(0x1ba)+_0x7f68a),console[_0x5771a2(0x1bb)](LOG_PREFIX2+'\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered');return;}console[_0x5771a2(0x223)](LOG_PREFIX2+_0x5771a2(0x1d9));try{console[_0x5771a2(0x223)](LOG_PREFIX2+_0x5771a2(0x1c1)+_0x37cb7f[_0x5771a2(0x257)]+_0x5771a2(0x1e2)),registration=await navigator[_0x5771a2(0x201)][_0x5771a2(0x24a)](_0x37cb7f[_0x5771a2(0x257)],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x5771a2(0x22e),{'scope':registration[_0x5771a2(0x237)],'active':registration[_0x5771a2(0x1c6)]?.['scriptURL'],'waiting':registration['waiting']?.[_0x5771a2(0x214)],'installing':registration[_0x5771a2(0x27c)]?.[_0x5771a2(0x214)]}),console['log'](LOG_PREFIX2+_0x5771a2(0x22a));const _0x24eae0=await navigator['serviceWorker']['ready'];console['log'](LOG_PREFIX2+_0x5771a2(0x21e),_0x24eae0['active']?.[_0x5771a2(0x214)]);const _0x3cafaf=ownsCurrentController(_0x37cb7f[_0x5771a2(0x257)]);state['controlled']=_0x3cafaf,console[_0x5771a2(0x223)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x3cafaf),console[_0x5771a2(0x223)](LOG_PREFIX2+'\x20Current\x20controller\x20after\x20ready:',navigator['serviceWorker']['controller']?.[_0x5771a2(0x214)]??_0x5771a2(0x282));if(!_0x496031&&!navigator[_0x5771a2(0x201)][_0x5771a2(0x239)]){console[_0x5771a2(0x223)](LOG_PREFIX2+_0x5771a2(0x276)),window[_0x5771a2(0x21d)][_0x5771a2(0x1f5)]();return;}console[_0x5771a2(0x223)](LOG_PREFIX2+'\x20Attaching\x20message\x20listener...'),attachMessageListener(),console['log'](LOG_PREFIX2+_0x5771a2(0x264)),await sendConfiguration();if(state[_0x5771a2(0x1be)]){const _0x3a8d0e=document[_0x5771a2(0x261)](_0x5771a2(0x25d))!==null;console[_0x5771a2(0x223)](LOG_PREFIX2+_0x5771a2(0x1dd)+_0x3a8d0e);if(!_0x3a8d0e){console[_0x5771a2(0x223)](LOG_PREFIX2+_0x5771a2(0x235)),window[_0x5771a2(0x21d)][_0x5771a2(0x1f5)]();return;}}console[_0x5771a2(0x223)](LOG_PREFIX2+_0x5771a2(0x1da)),updateOverlay(),console[_0x5771a2(0x223)](LOG_PREFIX2+_0x5771a2(0x289));}catch(_0x59b6f4){console['error'](LOG_PREFIX2+_0x5771a2(0x23c),_0x59b6f4);}}async function sendConfiguration(){const _0x540e14=_0x49519e;console[_0x540e14(0x223)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0x540e14(0x223)](LOG_PREFIX2+'\x20state.enabled:\x20'+state[_0x540e14(0x1be)]+_0x540e14(0x275)+!!configGetter);if(!state[_0x540e14(0x1be)]||!configGetter){console['log'](LOG_PREFIX2+_0x540e14(0x232));return;}const _0x397b20=await resolveWorker();if(!_0x397b20){console['warn'](LOG_PREFIX2+_0x540e14(0x27d));return;}const _0x550414=configGetter();console[_0x540e14(0x223)](LOG_PREFIX2+'\x20Sending\x20config\x20to\x20SW:',JSON['stringify'](_0x550414,null,0x2)),_0x397b20[_0x540e14(0x1ea)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x550414}),console[_0x540e14(0x223)](LOG_PREFIX2+_0x540e14(0x22d));}async function unregisterServiceWorker(_0x319d91){const _0x57067c=_0x49519e;console[_0x57067c(0x223)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x57067c(0x201)in navigator)){console[_0x57067c(0x223)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}detachMessageListener();try{const _0x24af5d=registration??await navigator['serviceWorker'][_0x57067c(0x1e3)]('/');if(!_0x24af5d){console[_0x57067c(0x223)](LOG_PREFIX2+_0x57067c(0x1d0));return;}console[_0x57067c(0x223)](LOG_PREFIX2+_0x57067c(0x206),{'scope':_0x24af5d[_0x57067c(0x237)],'active':_0x24af5d[_0x57067c(0x1c6)]?.['scriptURL'],'waiting':_0x24af5d[_0x57067c(0x1c7)]?.[_0x57067c(0x214)],'installing':_0x24af5d['installing']?.[_0x57067c(0x214)]});const _0x1aa98d=[_0x24af5d[_0x57067c(0x1c6)]?.[_0x57067c(0x214)],_0x24af5d[_0x57067c(0x1c7)]?.['scriptURL'],_0x24af5d[_0x57067c(0x27c)]?.[_0x57067c(0x214)]],_0x2b7a77=_0x1aa98d['some'](_0x1f3acc=>_0x1f3acc&&ownsServiceWorker(_0x1f3acc,_0x319d91));if(!_0x2b7a77){console[_0x57067c(0x223)](LOG_PREFIX2+_0x57067c(0x1e1));return;}_0x24af5d[_0x57067c(0x1c6)]&&(console['log'](LOG_PREFIX2+_0x57067c(0x25a)),_0x24af5d[_0x57067c(0x1c6)][_0x57067c(0x1ea)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x57067c(0x223)](LOG_PREFIX2+_0x57067c(0x1f4)),await _0x24af5d[_0x57067c(0x22c)](),registration=null,console[_0x57067c(0x223)](LOG_PREFIX2+_0x57067c(0x25c));}catch(_0x6233ab){console[_0x57067c(0x1bb)](LOG_PREFIX2+_0x57067c(0x20f),_0x6233ab);}}function attachMessageListener(){const _0x1c0205=_0x49519e;if(!navigator['serviceWorker']||messageListener){console[_0x1c0205(0x223)](LOG_PREFIX2+'\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support');return;}messageListener=_0x331473=>{const _0x2cf72d=_0x1c0205,_0x3a7d58=_0x331473[_0x2cf72d(0x22b)];console['log'](LOG_PREFIX2+'\x20Received\x20message\x20from\x20SW:',_0x3a7d58);if(!_0x3a7d58||typeof _0x3a7d58!==_0x2cf72d(0x267))return;_0x3a7d58[_0x2cf72d(0x21a)]===WORKER_MESSAGE_REQUEST_CONFIG&&(console['log'](LOG_PREFIX2+_0x2cf72d(0x285)),void sendConfiguration());},navigator[_0x1c0205(0x201)][_0x1c0205(0x1bc)]('message',messageListener),console[_0x1c0205(0x223)](LOG_PREFIX2+'\x20Message\x20listener\x20attached');}function detachMessageListener(){const _0x4b5318=_0x49519e;navigator[_0x4b5318(0x201)]&&messageListener&&(navigator['serviceWorker'][_0x4b5318(0x1d8)]('message',messageListener),messageListener=null,console[_0x4b5318(0x223)](LOG_PREFIX2+'\x20Message\x20listener\x20detached'));}function ownsServiceWorker(_0x3d0507,_0x437d1e){const _0x113c6d=_0x49519e,_0x2ecdbd=typeof window!=='undefined'?window[_0x113c6d(0x21d)][_0x113c6d(0x288)]:'',_0xc96c77=new URL(_0x437d1e,_0x2ecdbd||void 0x0)['href'],_0x267329=_0x3d0507===_0xc96c77||_0x3d0507[_0x113c6d(0x22f)]('sw-enhance');return console['log'](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x3d0507+',\x20expected='+_0xc96c77+_0x113c6d(0x21f)+_0x267329),_0x267329;}function ownsCurrentController(_0x27d276){const _0x4f62ec=_0x49519e;if(typeof navigator==='undefined')return![];const _0x27e360=navigator[_0x4f62ec(0x201)]?.['controller'];if(!_0x27e360)return console[_0x4f62ec(0x223)](LOG_PREFIX2+_0x4f62ec(0x1cc)),![];return ownsServiceWorker(_0x27e360[_0x4f62ec(0x214)],_0x27d276);}async function detectBlockingServiceWorker(_0x21d7ff){const _0x59d770=_0x49519e;if(!navigator['serviceWorker'])return null;try{const _0x4ce55e=await navigator[_0x59d770(0x201)][_0x59d770(0x1e3)]('/');console[_0x59d770(0x223)](LOG_PREFIX2+_0x59d770(0x283),_0x4ce55e?.[_0x59d770(0x1c6)]?.[_0x59d770(0x214)]??_0x59d770(0x282));const _0x1c316a=_0x4ce55e?.[_0x59d770(0x1c6)]?.[_0x59d770(0x214)];if(!_0x1c316a)return null;if(ownsServiceWorker(_0x1c316a,_0x21d7ff))return null;return _0x1c316a;}catch(_0x5588b9){return console[_0x59d770(0x1bb)](LOG_PREFIX2+_0x59d770(0x25f),_0x5588b9),null;}}async function resolveWorker(){const _0x5d22c2=_0x49519e,_0x69fa71=registration??await navigator[_0x5d22c2(0x201)]?.[_0x5d22c2(0x1e3)]('/'),_0x351b75=_0x69fa71?.[_0x5d22c2(0x1c6)]??_0x69fa71?.['waiting']??_0x69fa71?.[_0x5d22c2(0x27c)]??null;return console[_0x5d22c2(0x223)](LOG_PREFIX2+_0x5d22c2(0x27e),_0x351b75?.[_0x5d22c2(0x214)]??_0x5d22c2(0x282),_0x5d22c2(0x1e7)+(_0x351b75?.['state']??_0x5d22c2(0x221))),_0x351b75;}function buildWorkerConfiguration(_0x852fc){const _0x18e46f=_0x49519e,_0x22469c=getEnhancementUrl();return console[_0x18e46f(0x223)](LOG_PREFIX2+_0x18e46f(0x1d5)+_0x22469c),{'enhancementUrl':_0x22469c,'callbackBypass':_0x852fc['callbackBypass'],'overlayPath':_0x852fc[_0x18e46f(0x273)],'overlayEnableViteHmr':_0x852fc[_0x18e46f(0x25e)][_0x18e46f(0x238)],'runtimeScriptPath':_0x852fc[_0x18e46f(0x24e)],'swPath':_0x852fc[_0x18e46f(0x257)],'securityMode':_0x852fc[_0x18e46f(0x1ed)],'backendUrl':_0x852fc[_0x18e46f(0x231)]};}var LOG_PREFIX3=_0x49519e(0x259),initialized=![],options=null,Enhance={'init'(_0xb852e0){const _0x1d7837=_0x49519e,_0x4ccf71=Date[_0x1d7837(0x249)]();console[_0x1d7837(0x223)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x4ccf71),console[_0x1d7837(0x223)](LOG_PREFIX3+_0x1d7837(0x247)+window[_0x1d7837(0x21d)][_0x1d7837(0x243)]),console['log'](LOG_PREFIX3+_0x1d7837(0x1c2)+document[_0x1d7837(0x205)]),console[_0x1d7837(0x223)](LOG_PREFIX3+_0x1d7837(0x253),JSON['stringify'](_0xb852e0,null,0x2));if(initialized)return console['warn'](LOG_PREFIX3+'\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller'),createController();initialized=!![],console['log'](LOG_PREFIX3+_0x1d7837(0x287)),options=normalizeOptions(_0xb852e0),console[_0x1d7837(0x223)](LOG_PREFIX3+_0x1d7837(0x222),JSON[_0x1d7837(0x227)](options,null,0x2));const _0x1505e2=parseUrlParams();console[_0x1d7837(0x223)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON['stringify'](_0x1505e2,null,0x2));if(_0x1505e2[_0x1d7837(0x233)])return cleanUrlParam('enhance'),console[_0x1d7837(0x223)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x1505e2['hasEnhancement'])return console[_0x1d7837(0x223)](LOG_PREFIX3+_0x1d7837(0x1c0)),console[_0x1d7837(0x223)](LOG_PREFIX3+_0x1d7837(0x284)+_0x1505e2['enhancementUrl']),console[_0x1d7837(0x223)](LOG_PREFIX3+_0x1d7837(0x255)+_0x1505e2[_0x1d7837(0x234)]),state[_0x1d7837(0x1be)]=!![],console[_0x1d7837(0x223)](LOG_PREFIX3+_0x1d7837(0x242)),void loadOverlay({'overlayPath':options[_0x1d7837(0x273)],'enableViteHmr':options['overlay'][_0x1d7837(0x238)],'options':options,'onToggle':handleToggle}),console[_0x1d7837(0x223)](LOG_PREFIX3+_0x1d7837(0x21c)),void registerServiceWorker(options),console[_0x1d7837(0x223)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x1d7837(0x223)](LOG_PREFIX3+_0x1d7837(0x244)),console['log'](LOG_PREFIX3+_0x1d7837(0x207)),void unregisterServiceWorker(options[_0x1d7837(0x257)]),console[_0x1d7837(0x223)](LOG_PREFIX3+_0x1d7837(0x1d7)),createController();}};function createController(){return{'enable'(){const _0x5971fe=_0x36a5;if(!options)return;state[_0x5971fe(0x1be)]=!![],void loadOverlay({'overlayPath':options[_0x5971fe(0x273)],'enableViteHmr':options[_0x5971fe(0x25e)][_0x5971fe(0x238)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){if(!options)return;state['enabled']=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(options['swPath']);},'status'(){const _0x20a48a=_0x36a5;return{'enabled':state[_0x20a48a(0x1be)],'controlled':state['controlled']};}};}function handleToggle(){const _0x3e05d2=_0x49519e,_0x45b479=createController();state[_0x3e05d2(0x1be)]?_0x45b479[_0x3e05d2(0x266)]():_0x45b479[_0x3e05d2(0x202)]();}function parseUrlParams(){const _0x2c91d6=_0x49519e,_0x2dc2b7=new URL(window[_0x2c91d6(0x21d)][_0x2c91d6(0x243)]),_0xcbffb7=_0x2dc2b7[_0x2c91d6(0x23e)][_0x2c91d6(0x1b9)](_0x2c91d6(0x21b))?.[_0x2c91d6(0x1e0)](),_0x233feb=_0x2dc2b7['searchParams']['get'](_0x2c91d6(0x204)),_0x47ea38=_0x2dc2b7[_0x2c91d6(0x23e)][_0x2c91d6(0x1b9)](_0x2c91d6(0x1bd));return{'hasEnhancement':Boolean(_0x233feb||_0x47ea38),'explicitDisable':_0xcbffb7==='0'||_0xcbffb7==='false'||_0xcbffb7===_0x2c91d6(0x1fe),'enhancementUrl':_0x233feb,'enhancementId':_0x47ea38};}function _0xd144(){const _0x231982=['\x20with\x20scope\x20\x27/\x27...','getRegistration','__vite_plugin_react_preamble_installed__','keys','onToggle','state:\x20','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','postMessage','\x20Controller\x20state:','\x20Starting\x20fresh\x20overlay\x20load...','security','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','dist','/@react-refresh','version','\x20Unregistering\x20SW...','reload','\x20Module\x20exports:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','184ajKpGS','enhance:configure','\x20currentOptions\x20exists:\x20','^3.22.4','47245396xXhtZE','serviceWorkerURL','off','function','add','serviceWorker','enable','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','enhancementUrl','readyState','\x20Found\x20registration:','\x20Unregistering\x20any\x20existing\x20SW...','__enhanceReactRefreshInstalledOrigins','2930ssibTr','\x20doLoadOverlay()\x20starting...','https://','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','info','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','callbackBypass','trim','scriptURL','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','bottom-right','__development','type','enhance','\x20Starting\x20SW\x20registration\x20(async)...','location','\x20SW\x20ready!\x20Active:',',\x20owns=','\x20loadOverlay()\x20called','N/A','\x20Normalized\x20options:','log','\x20Module\x20missing\x20createOverlay\x20export!','enableOverlayHmr','./dist/vite/index.js','stringify','undefined','\x20enableViteHmr:\x20','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','data','unregister','\x20Config\x20sent\x20to\x20SW','\x20Registration\x20returned:','includes','93401RHytMW','backendUrl','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','explicitDisable','enhancementId','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20overlayPath:\x20','scope','enableViteHmr','controller','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','10DcNMnT','\x20Failed\x20to\x20register\x20service\x20worker:','default','searchParams','/@vite/client','module','\x20registerServiceWorker()\x20called','\x20Starting\x20overlay\x20load\x20(async)...','href','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params',',\x20page\x20origin:\x20','[Enhance\x20Overlay]','\x20Current\x20URL:\x20','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','now','register','permissive','toString','\x20loadOverlay()\x20complete','runtimeScriptPath','replaceState','injectIntoGlobalHook','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','./dist/index.cjs','\x20Raw\x20options:','startsWith','\x20enhancementId:\x20','[Enhance\x20SW-Client]','swPath','\x20Vite\x20client\x20already\x20loaded\x20for\x20','[Enhance\x20Runtime]','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','@enhance-eng/sandbox','\x20SW\x20unregistered\x20successfully','[data-enhance-runtime-bootstrap]','overlay','\x20detectBlocking\x20error:','MIT','querySelector','replace','enhance:request-config','\x20Sending\x20initial\x20configuration...','position','disable','object','pnpm\x20version\x20patch\x20--no-git-tag-version','\x20swPath:\x20','__enhanceOverlay','\x20Service\x20workers\x20supported','__viteHMRLoaded','http://','enhance.config.sample.json','178680hskzNg','\x20Overlay\x20update\x20complete','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','https://api.enhancelabs.ai','overlayPath','^8.5.1',',\x20configGetter:\x20','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','options','0.0.0','$RefreshReg$','enhance:disable','update','installing','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20resolveWorker:','warn','\x20setupRemoteHMR()\x20for\x20','\x20React\x20Refresh\x20already\x20installed\x20for\x20','none','\x20detectBlocking\x20-\x20existing\x20registration:','\x20enhancementUrl:\x20','\x20SW\x20requested\x20config\x20-\x20sending...','controlled','\x20First\x20initialization','origin','\x20registerServiceWorker()\x20complete','./dist/index.js','/assets/enhance-runtime.js','./dist/vite/index.d.ts','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','566DzmsEp','\x20Calling\x20createOverlay()...','get','\x20BLOCKING\x20SW\x20detected:\x20','error','addEventListener','enhancement','enabled','$RefreshSig$','\x20Enhancement\x20mode\x20ENABLED','\x20Registering\x20SW\x20at\x20','\x20Document\x20readyState:\x20','4508499xkwxTl','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Overlay\x20origin:\x20','active','waiting','title','string','\x20HMR\x20setup\x20complete','^7.2.4','\x20No\x20current\x20controller','\x20Failed\x20to\x20import/create\x20overlay:','has','6877026iZSsYI','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','init','12tTHkMG','0.3.17','public','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','./dist/index.d.ts','\x20init()\x20complete\x20-\x20normal\x20mode','removeEventListener','\x20No\x20blocking\x20SW\x20found','\x20Updating\x20overlay...','/sw-enhance.js','\x20Setting\x20up\x20remote\x20HMR...','\x20Enhancement\x20detection:\x20wasEnhanced=','createOverlay','1259202EpJxrw','toLowerCase','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering'];_0xd144=function(){return _0x231982;};return _0xd144();}function cleanUrlParam(_0x2d3544){const _0x329dc6=_0x49519e,_0xce1987=new URL(window[_0x329dc6(0x21d)]['href']);_0xce1987[_0x329dc6(0x23e)][_0x329dc6(0x1ce)](_0x2d3544)&&(_0xce1987[_0x329dc6(0x23e)]['delete'](_0x2d3544),window['history'][_0x329dc6(0x24f)](null,document[_0x329dc6(0x1c8)],_0xce1987[_0x329dc6(0x24c)]()));}var package_default={'name':_0x49519e(0x25b),'version':_0x49519e(0x1d3),'type':_0x49519e(0x240),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x49519e(0x260),'main':'./dist/index.cjs','module':_0x49519e(0x28a),'types':_0x49519e(0x1d6),'exports':{'.':{'types':_0x49519e(0x1d6),'import':_0x49519e(0x28a),'require':_0x49519e(0x252)},'./vite':{'types':_0x49519e(0x28c),'import':_0x49519e(0x226)}},'files':[_0x49519e(0x1f1),'bin',_0x49519e(0x26e)],'bin':{'enhance-sandbox':'bin/enhance-sandbox.js'},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x49519e(0x1f7),'dev:staging':_0x49519e(0x20c),'build':_0x49519e(0x251),'build:release':_0x49519e(0x1b6),'version':_0x49519e(0x268)},'dependencies':{'commander':'^11.1.0','zod':_0x49519e(0x1fb)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':'^4.1.1','tsup':_0x49519e(0x274),'vite':_0x49519e(0x1cb)},'publishConfig':{'access':_0x49519e(0x1d4)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x49519e(0x28b),PACKAGE_VERSION=typeof package_default[_0x49519e(0x1f3)]===_0x49519e(0x1c9)?package_default[_0x49519e(0x1f3)]:_0x49519e(0x278);function normalizeAssetPath(_0x4862f9){const _0x5f421d=_0x49519e;if(!_0x4862f9)return _0x4862f9;if(_0x4862f9[_0x5f421d(0x254)](_0x5f421d(0x26d))||_0x4862f9['startsWith'](_0x5f421d(0x20b)))return _0x4862f9;const _0x58b1fb=_0x4862f9[_0x5f421d(0x262)](/^\.\//,'');return _0x58b1fb[_0x5f421d(0x254)]('/')?_0x58b1fb:'/'+_0x58b1fb;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x4a93cd){const _0x406ddf=_0x49519e;return Enhance[_0x406ddf(0x1d1)](_0x4a93cd);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){const _0x5826aa=_0x49519e;return Enhance2[_0x5826aa(0x1fd)]();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
@@ -1 +1 @@
1
- const _0x27a53e=_0x29f3;(function(_0xa7cb77,_0xe71b8){const _0x1fdec4=_0x29f3,_0x20f184=_0xa7cb77();while(!![]){try{const _0x119db2=parseInt(_0x1fdec4(0x14e))/0x1+parseInt(_0x1fdec4(0x141))/0x2*(-parseInt(_0x1fdec4(0x13a))/0x3)+parseInt(_0x1fdec4(0x150))/0x4*(parseInt(_0x1fdec4(0x131))/0x5)+parseInt(_0x1fdec4(0x169))/0x6+-parseInt(_0x1fdec4(0x16d))/0x7*(parseInt(_0x1fdec4(0x172))/0x8)+-parseInt(_0x1fdec4(0x140))/0x9+-parseInt(_0x1fdec4(0x179))/0xa*(-parseInt(_0x1fdec4(0x145))/0xb);if(_0x119db2===_0xe71b8)break;else _0x20f184['push'](_0x20f184['shift']());}catch(_0x2aad90){_0x20f184['push'](_0x20f184['shift']());}}}(_0x364c,0x6c6e1));import{relative,resolve}from'path';import{promises as _0x5802da}from'fs';import{join}from'path';function _0x364c(){const _0x20d386=['3321mGAWmd','startsWith','\x20(already\x20current)\x20[','code','\x20is\x20missing\x20a\x20non-empty\x20\x22publicDir\x22\x20string','string','6536664rNYSwB','968YnAnzq','error','0.0.0','enhance.config.json','1649615VRRqzC','digest','public','bin/enhance-sandbox.js','object','catch','Failed\x20to\x20read\x20','all','https://','373947xuOKuA','update','544AUYAOh','[enhance-sandbox]\x20','dist','^7.2.4','assets/enhance-runtime.js','skipped','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','http://','@enhance-eng/sandbox','destinationPath','parse','^4.1.1','base64','publicDir','version','utf8','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','trim','tsc\x20--noEmit','exit','enhance.config.sample.json','status','\x20not\x20found;\x20skipping\x20asset\x20sync','sourcePath','./dist/index.cjs','1369866Rpikhk','message','pnpm\x20version\x20patch\x20--no-git-tag-version','^11.1.0','1743987BjYVpn','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20has\x20an\x20invalid\x20\x22swFilename\x22;\x20expected\x20a\x20non-empty\x20string','info','^3.22.4','16QXBuRA','\x20must\x20contain\x20an\x20object','ENOENT','sha256','../dist/index.js','[enhance-sandbox]\x20Copied\x20','Invalid\x20JSON\x20in\x20','90fjFJbM','./dist/index.js','readFile','swFilename','override','copyFile','^8.5.1','MIT','copied','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','url','push','^24.10.1','[enhance-sandbox]\x20Failed\x20to\x20sync\x20assets\x20during\x20postinstall','9285QqzWGs','/assets/enhance-runtime.js','[enhance-sandbox]\x20Skipped\x20','cwd','/sw-enhance.js','./dist/vite/index.js','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','mkdir','relativeDestination'];_0x364c=function(){return _0x20d386;};return _0x364c();}var CONFIG_FILENAME=_0x27a53e(0x144);async function loadEnhanceConfig(_0x4fb751=process['cwd']()){const _0x1dbc4b=_0x27a53e,_0x2de07e=join(_0x4fb751,CONFIG_FILENAME);let _0x469064;try{_0x469064=await _0x5802da[_0x1dbc4b(0x17b)](_0x2de07e,_0x1dbc4b(0x15f));}catch(_0x5db385){if(_0x5db385[_0x1dbc4b(0x13d)]===_0x1dbc4b(0x174))return null;throw new Error(_0x1dbc4b(0x14b)+CONFIG_FILENAME+':\x20'+_0x5db385['message']);}let _0x41551a;try{_0x41551a=JSON[_0x1dbc4b(0x15a)](_0x469064);}catch(_0xf5320c){throw new Error(_0x1dbc4b(0x178)+CONFIG_FILENAME+':\x20'+_0xf5320c[_0x1dbc4b(0x16a)]);}if(!_0x41551a||typeof _0x41551a!==_0x1dbc4b(0x149))throw new Error(CONFIG_FILENAME+_0x1dbc4b(0x173));const {publicDir:_0x17c0c5,swFilename:_0x49db56}=_0x41551a;if(typeof _0x17c0c5!=='string'||_0x17c0c5[_0x1dbc4b(0x161)]()['length']===0x0)throw new Error(CONFIG_FILENAME+_0x1dbc4b(0x13e));if(_0x49db56!=null&&(typeof _0x49db56!==_0x1dbc4b(0x13f)||_0x49db56[_0x1dbc4b(0x161)]()['length']===0x0))throw new Error(CONFIG_FILENAME+_0x1dbc4b(0x16f));return{'publicDir':_0x17c0c5[_0x1dbc4b(0x161)](),'swFilename':typeof _0x49db56===_0x1dbc4b(0x13f)?_0x49db56[_0x1dbc4b(0x161)]():void 0x0};}import{promises as _0x4086b1}from'fs';import{createHash}from'crypto';import{dirname,join as _0x4bb59d}from'path';import{fileURLToPath}from'url';var package_default={'name':_0x27a53e(0x158),'version':'0.3.16','type':'module','description':_0x27a53e(0x156),'license':_0x27a53e(0x180),'main':'./dist/index.cjs','module':_0x27a53e(0x17a),'types':'./dist/index.d.ts','exports':{'.':{'types':'./dist/index.d.ts','import':'./dist/index.js','require':_0x27a53e(0x168)},'./vite':{'types':'./dist/vite/index.d.ts','import':_0x27a53e(0x136)}},'files':[_0x27a53e(0x152),'bin',_0x27a53e(0x164)],'bin':{'enhance-sandbox':_0x27a53e(0x148)},'scripts':{'typecheck':_0x27a53e(0x162),'dev':_0x27a53e(0x160),'dev:staging':_0x27a53e(0x182),'build':_0x27a53e(0x16e),'build:release':_0x27a53e(0x137),'version':_0x27a53e(0x16b)},'dependencies':{'commander':_0x27a53e(0x16c),'zod':_0x27a53e(0x171)},'devDependencies':{'@types/node':_0x27a53e(0x12f),'javascript-obfuscator':_0x27a53e(0x15b),'tsup':_0x27a53e(0x17f),'vite':_0x27a53e(0x153)},'publishConfig':{'access':_0x27a53e(0x147)}},DEFAULT_SERVICE_WORKER_PATH=_0x27a53e(0x135),DEFAULT_RUNTIME_PATH=_0x27a53e(0x132),DIST_SERVICE_WORKER_PATH='sw-enhance.js',DIST_RUNTIME_PATH=_0x27a53e(0x154),PACKAGE_VERSION=typeof package_default[_0x27a53e(0x15e)]===_0x27a53e(0x13f)?package_default[_0x27a53e(0x15e)]:_0x27a53e(0x143);function normalizeAssetPath(_0x1ee25d){const _0x51f1eb=_0x27a53e;if(!_0x1ee25d)return _0x1ee25d;if(_0x1ee25d[_0x51f1eb(0x13b)](_0x51f1eb(0x157))||_0x1ee25d[_0x51f1eb(0x13b)](_0x51f1eb(0x14d)))return _0x1ee25d;const _0x32fe05=_0x1ee25d['replace'](/^\.\//,'');return _0x32fe05['startsWith']('/')?_0x32fe05:'/'+_0x32fe05;}var distDir=dirname(fileURLToPath(new URL(_0x27a53e(0x176),import.meta[_0x27a53e(0x12d)])));async function syncAssets(_0x4f1122){const _0x143e07=_0x27a53e,_0x1da9dc=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x4f1122[_0x143e07(0x17c)]?'./'+_0x4f1122[_0x143e07(0x17c)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x5856a2=[];for(const _0x545b2e of _0x1da9dc){const _0x4cc6ce=cleanRelativePath(_0x545b2e[_0x143e07(0x17d)]??_0x545b2e['manifestPath']),_0x2d9a95=_0x4bb59d(distDir,cleanRelativePath(_0x545b2e[_0x143e07(0x167)])),_0xdcc863=_0x4bb59d(_0x4f1122[_0x143e07(0x15d)],_0x4cc6ce),[_0x5b786e,_0x124f69]=await Promise[_0x143e07(0x14c)]([readDigest(_0x2d9a95),readDigest(_0xdcc863)]);if(_0x5b786e&&_0x124f69&&_0x5b786e===_0x124f69){_0x5856a2[_0x143e07(0x12e)]({'sourcePath':_0x2d9a95,'destinationPath':_0xdcc863,'relativeDestination':_0x4cc6ce,'status':_0x143e07(0x155)});continue;}await _0x4086b1[_0x143e07(0x138)](dirname(_0xdcc863),{'recursive':!![]}),await _0x4086b1[_0x143e07(0x17e)](_0x2d9a95,_0xdcc863),_0x5856a2[_0x143e07(0x12e)]({'sourcePath':_0x2d9a95,'destinationPath':_0xdcc863,'relativeDestination':_0x4cc6ce,'status':_0x143e07(0x181)});}return _0x5856a2;}function cleanRelativePath(_0x5db03f){return _0x5db03f['replace'](/^[./]+/,'');}function _0x29f3(_0x29465e,_0x29c63a){const _0x364c87=_0x364c();return _0x29f3=function(_0x29f35d,_0x17e4d6){_0x29f35d=_0x29f35d-0x12d;let _0x330387=_0x364c87[_0x29f35d];return _0x330387;},_0x29f3(_0x29465e,_0x29c63a);}async function readDigest(_0x264044){const _0x51ea11=_0x27a53e;try{const _0x3d035c=await _0x4086b1[_0x51ea11(0x17b)](_0x264044);return createHash(_0x51ea11(0x175))[_0x51ea11(0x14f)](_0x3d035c)[_0x51ea11(0x146)](_0x51ea11(0x15c));}catch(_0x4ddc3c){if(_0x4ddc3c[_0x51ea11(0x13d)]===_0x51ea11(0x174))return null;throw _0x4ddc3c;}}async function main(){const _0x1e7d1d=_0x27a53e,_0x5e8113=await loadEnhanceConfig();if(!_0x5e8113){console[_0x1e7d1d(0x170)](_0x1e7d1d(0x151)+CONFIG_FILENAME+_0x1e7d1d(0x166));return;}const _0x2f39ec=resolve(process[_0x1e7d1d(0x134)](),_0x5e8113[_0x1e7d1d(0x15d)]),_0x1e0539=await syncAssets({'publicDir':_0x2f39ec,'swFilename':_0x5e8113[_0x1e7d1d(0x17c)]});for(const _0x52db00 of _0x1e0539){const _0x30b6d8=relative(process[_0x1e7d1d(0x134)](),_0x52db00[_0x1e7d1d(0x159)]);_0x52db00[_0x1e7d1d(0x165)]===_0x1e7d1d(0x155)?console[_0x1e7d1d(0x170)](_0x1e7d1d(0x133)+_0x52db00['relativeDestination']+_0x1e7d1d(0x13c)+_0x30b6d8+']'):console['info'](_0x1e7d1d(0x177)+_0x52db00[_0x1e7d1d(0x139)]+'\x20→\x20'+_0x30b6d8);}}main()[_0x27a53e(0x14a)](_0x1b46de=>{const _0x51f812=_0x27a53e;console[_0x51f812(0x142)](_0x51f812(0x130)),console['error'](_0x1b46de),process[_0x51f812(0x163)](0x1);});
1
+ const _0x53c47f=_0x5597;(function(_0x394688,_0x54156e){const _0x41b4fa=_0x5597,_0x5309bb=_0x394688();while(!![]){try{const _0x3f173c=-parseInt(_0x41b4fa(0x12f))/0x1+-parseInt(_0x41b4fa(0xf8))/0x2+-parseInt(_0x41b4fa(0x105))/0x3*(parseInt(_0x41b4fa(0x11d))/0x4)+-parseInt(_0x41b4fa(0x10a))/0x5*(parseInt(_0x41b4fa(0xdf))/0x6)+-parseInt(_0x41b4fa(0x125))/0x7+parseInt(_0x41b4fa(0xde))/0x8+parseInt(_0x41b4fa(0xf4))/0x9;if(_0x3f173c===_0x54156e)break;else _0x5309bb['push'](_0x5309bb['shift']());}catch(_0x11e5a4){_0x5309bb['push'](_0x5309bb['shift']());}}}(_0x22a7,0xbef50));import{relative,resolve}from'path';import{promises as _0xf254a8}from'fs';import{join}from'path';var CONFIG_FILENAME=_0x53c47f(0x115);async function loadEnhanceConfig(_0x49bd15=process[_0x53c47f(0x120)]()){const _0x2c60fb=_0x53c47f,_0x8b9af8=join(_0x49bd15,CONFIG_FILENAME);let _0x566314;try{_0x566314=await _0xf254a8[_0x2c60fb(0xe6)](_0x8b9af8,_0x2c60fb(0x100));}catch(_0xc414f7){if(_0xc414f7[_0x2c60fb(0x11f)]===_0x2c60fb(0xee))return null;throw new Error('Failed\x20to\x20read\x20'+CONFIG_FILENAME+':\x20'+_0xc414f7[_0x2c60fb(0x10b)]);}let _0x4bf996;try{_0x4bf996=JSON[_0x2c60fb(0xf6)](_0x566314);}catch(_0x1b3b1a){throw new Error(_0x2c60fb(0x108)+CONFIG_FILENAME+':\x20'+_0x1b3b1a[_0x2c60fb(0x10b)]);}if(!_0x4bf996||typeof _0x4bf996!==_0x2c60fb(0x113))throw new Error(CONFIG_FILENAME+'\x20must\x20contain\x20an\x20object');const {publicDir:_0x211a2c,swFilename:_0x2fd15b}=_0x4bf996;if(typeof _0x211a2c!==_0x2c60fb(0x123)||_0x211a2c[_0x2c60fb(0x107)]()[_0x2c60fb(0x117)]===0x0)throw new Error(CONFIG_FILENAME+_0x2c60fb(0x11c));if(_0x2fd15b!=null&&(typeof _0x2fd15b!==_0x2c60fb(0x123)||_0x2fd15b[_0x2c60fb(0x107)]()[_0x2c60fb(0x117)]===0x0))throw new Error(CONFIG_FILENAME+_0x2c60fb(0xe5));return{'publicDir':_0x211a2c[_0x2c60fb(0x107)](),'swFilename':typeof _0x2fd15b===_0x2c60fb(0x123)?_0x2fd15b['trim']():void 0x0};}import{promises as _0x46c0cb}from'fs';import{createHash}from'crypto';import{dirname,join as _0xe7276a}from'path';import{fileURLToPath}from'url';function _0x22a7(){const _0x1847e2=['relativeDestination','code','cwd','/sw-enhance.js','base64','string','assets/enhance-runtime.js','1579683MXhnqC','./dist/index.d.ts','exit','https://','version','startsWith','pnpm\x20version\x20patch\x20--no-git-tag-version','^24.10.1','error','update','461635KnJZlV','all','^4.1.1','sha256','dist','986112JOtGSl','12hAotql','bin/enhance-sandbox.js','^3.22.4','^11.1.0','destinationPath','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','\x20has\x20an\x20invalid\x20\x22swFilename\x22;\x20expected\x20a\x20non-empty\x20string','readFile','status','enhance.config.sample.json','url','\x20(already\x20current)\x20[','tsc\x20--noEmit','module','[enhance-sandbox]\x20','ENOENT','^8.5.1','manifestPath','swFilename','./dist/index.js','sw-enhance.js','29224116miqqkr','\x20→\x20','parse','[enhance-sandbox]\x20Failed\x20to\x20sync\x20assets\x20during\x20postinstall','1121306bOCnMK','skipped','^7.2.4','copyFile','MIT','[enhance-sandbox]\x20Copied\x20','digest','catch','utf8','push','/assets/enhance-runtime.js','publicDir','override','2780667dLPliE','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','trim','Invalid\x20JSON\x20in\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','1033455OapnAO','message','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','mkdir','sourcePath','replace','bin','[enhance-sandbox]\x20Skipped\x20','info','object','../dist/index.js','enhance.config.json','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','length','copied','@enhance-eng/sandbox','public','./dist/vite/index.js','\x20is\x20missing\x20a\x20non-empty\x20\x22publicDir\x22\x20string','4Wojpaj'];_0x22a7=function(){return _0x1847e2;};return _0x22a7();}var package_default={'name':_0x53c47f(0x119),'version':'0.3.17','type':_0x53c47f(0xec),'description':_0x53c47f(0xe4),'license':_0x53c47f(0xfc),'main':'./dist/index.cjs','module':_0x53c47f(0xf2),'types':_0x53c47f(0x126),'exports':{'.':{'types':'./dist/index.d.ts','import':_0x53c47f(0xf2),'require':'./dist/index.cjs'},'./vite':{'types':'./dist/vite/index.d.ts','import':_0x53c47f(0x11b)}},'files':[_0x53c47f(0xdd),_0x53c47f(0x110),_0x53c47f(0xe8)],'bin':{'enhance-sandbox':_0x53c47f(0xe0)},'scripts':{'typecheck':_0x53c47f(0xeb),'dev':_0x53c47f(0x10c),'dev:staging':_0x53c47f(0x116),'build':_0x53c47f(0x106),'build:release':_0x53c47f(0x109),'version':_0x53c47f(0x12b)},'dependencies':{'commander':_0x53c47f(0xe2),'zod':_0x53c47f(0xe1)},'devDependencies':{'@types/node':_0x53c47f(0x12c),'javascript-obfuscator':_0x53c47f(0x131),'tsup':_0x53c47f(0xef),'vite':_0x53c47f(0xfa)},'publishConfig':{'access':_0x53c47f(0x11a)}},DEFAULT_SERVICE_WORKER_PATH=_0x53c47f(0x121),DEFAULT_RUNTIME_PATH=_0x53c47f(0x102),DIST_SERVICE_WORKER_PATH=_0x53c47f(0xf3),DIST_RUNTIME_PATH=_0x53c47f(0x124),PACKAGE_VERSION=typeof package_default['version']===_0x53c47f(0x123)?package_default[_0x53c47f(0x129)]:'0.0.0';function normalizeAssetPath(_0x41ac6a){const _0x2c4493=_0x53c47f;if(!_0x41ac6a)return _0x41ac6a;if(_0x41ac6a[_0x2c4493(0x12a)]('http://')||_0x41ac6a['startsWith'](_0x2c4493(0x128)))return _0x41ac6a;const _0x336710=_0x41ac6a[_0x2c4493(0x10f)](/^\.\//,'');return _0x336710[_0x2c4493(0x12a)]('/')?_0x336710:'/'+_0x336710;}var distDir=dirname(fileURLToPath(new URL(_0x53c47f(0x114),import.meta[_0x53c47f(0xe9)])));async function syncAssets(_0xc65ad6){const _0x27ffb9=_0x53c47f,_0x13572f=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0xc65ad6['swFilename']?'./'+_0xc65ad6[_0x27ffb9(0xf1)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x39ae79=[];for(const _0x1c07e9 of _0x13572f){const _0x4b0d59=cleanRelativePath(_0x1c07e9[_0x27ffb9(0x104)]??_0x1c07e9[_0x27ffb9(0xf0)]),_0x391535=_0xe7276a(distDir,cleanRelativePath(_0x1c07e9[_0x27ffb9(0x10e)])),_0x2932ff=_0xe7276a(_0xc65ad6[_0x27ffb9(0x103)],_0x4b0d59),[_0x53e4fe,_0x3035f8]=await Promise[_0x27ffb9(0x130)]([readDigest(_0x391535),readDigest(_0x2932ff)]);if(_0x53e4fe&&_0x3035f8&&_0x53e4fe===_0x3035f8){_0x39ae79['push']({'sourcePath':_0x391535,'destinationPath':_0x2932ff,'relativeDestination':_0x4b0d59,'status':_0x27ffb9(0xf9)});continue;}await _0x46c0cb[_0x27ffb9(0x10d)](dirname(_0x2932ff),{'recursive':!![]}),await _0x46c0cb[_0x27ffb9(0xfb)](_0x391535,_0x2932ff),_0x39ae79[_0x27ffb9(0x101)]({'sourcePath':_0x391535,'destinationPath':_0x2932ff,'relativeDestination':_0x4b0d59,'status':_0x27ffb9(0x118)});}return _0x39ae79;}function cleanRelativePath(_0x3d243f){const _0x4264e8=_0x53c47f;return _0x3d243f[_0x4264e8(0x10f)](/^[./]+/,'');}function _0x5597(_0x168482,_0x21ea3b){const _0x22a76c=_0x22a7();return _0x5597=function(_0x559720,_0x14d036){_0x559720=_0x559720-0xdc;let _0x403acb=_0x22a76c[_0x559720];return _0x403acb;},_0x5597(_0x168482,_0x21ea3b);}async function readDigest(_0x3a47c4){const _0x2373fb=_0x53c47f;try{const _0x4eaa64=await _0x46c0cb[_0x2373fb(0xe6)](_0x3a47c4);return createHash(_0x2373fb(0xdc))[_0x2373fb(0x12e)](_0x4eaa64)[_0x2373fb(0xfe)](_0x2373fb(0x122));}catch(_0x3b6b25){if(_0x3b6b25['code']==='ENOENT')return null;throw _0x3b6b25;}}async function main(){const _0x2b621d=_0x53c47f,_0x52c7cc=await loadEnhanceConfig();if(!_0x52c7cc){console[_0x2b621d(0x112)](_0x2b621d(0xed)+CONFIG_FILENAME+'\x20not\x20found;\x20skipping\x20asset\x20sync');return;}const _0x1e786c=resolve(process[_0x2b621d(0x120)](),_0x52c7cc[_0x2b621d(0x103)]),_0x6158d6=await syncAssets({'publicDir':_0x1e786c,'swFilename':_0x52c7cc[_0x2b621d(0xf1)]});for(const _0x4106dd of _0x6158d6){const _0x383397=relative(process[_0x2b621d(0x120)](),_0x4106dd[_0x2b621d(0xe3)]);_0x4106dd[_0x2b621d(0xe7)]===_0x2b621d(0xf9)?console[_0x2b621d(0x112)](_0x2b621d(0x111)+_0x4106dd[_0x2b621d(0x11e)]+_0x2b621d(0xea)+_0x383397+']'):console[_0x2b621d(0x112)](_0x2b621d(0xfd)+_0x4106dd[_0x2b621d(0x11e)]+_0x2b621d(0xf5)+_0x383397);}}main()[_0x53c47f(0xff)](_0x1673ca=>{const _0x466ff8=_0x53c47f;console[_0x466ff8(0x12d)](_0x466ff8(0xf7)),console[_0x466ff8(0x12d)](_0x1673ca),process[_0x466ff8(0x127)](0x1);});
@@ -1 +1 @@
1
- const _0x3fccef=_0x31ea;(function(_0x3c8a2b,_0x37a1ef){const _0x2ba27b=_0x31ea,_0x1bad27=_0x3c8a2b();while(!![]){try{const _0x43b9d7=-parseInt(_0x2ba27b(0x1e3))/0x1*(parseInt(_0x2ba27b(0x11c))/0x2)+-parseInt(_0x2ba27b(0x190))/0x3*(-parseInt(_0x2ba27b(0x13c))/0x4)+parseInt(_0x2ba27b(0xb7))/0x5+parseInt(_0x2ba27b(0x1d2))/0x6+parseInt(_0x2ba27b(0x1bf))/0x7*(parseInt(_0x2ba27b(0x1c8))/0x8)+-parseInt(_0x2ba27b(0x178))/0x9+parseInt(_0x2ba27b(0x163))/0xa;if(_0x43b9d7===_0x37a1ef)break;else _0x1bad27['push'](_0x1bad27['shift']());}catch(_0x341485){_0x1bad27['push'](_0x1bad27['shift']());}}}(_0x35fb,0x6fc2c));var WORKER_MESSAGE_CONFIG=_0x3fccef(0xe0),WORKER_MESSAGE_DISABLE='enhance:disable',WORKER_MESSAGE_REQUEST_CONFIG=_0x3fccef(0x15f);function ensureLeadingSlash(_0x21a5ca){if(!_0x21a5ca['startsWith']('/'))return'/'+_0x21a5ca;return _0x21a5ca;}function appendRequestToEnhancementBase(_0x2bc306,_0x110ea1){const _0x3ebd34=_0x3fccef,_0x1a712d=new URL(_0x2bc306[_0x3ebd34(0x1d9)]()),_0x284a11=_0x1a712d[_0x3ebd34(0x1df)][_0x3ebd34(0xb6)]('/')?_0x1a712d['pathname'][_0x3ebd34(0xf8)](0x0,-0x1):_0x1a712d[_0x3ebd34(0x1df)],_0x289a3c=_0x110ea1['pathname']['startsWith']('/')?_0x110ea1[_0x3ebd34(0x1df)]:'/'+_0x110ea1[_0x3ebd34(0x1df)];return _0x1a712d[_0x3ebd34(0x1df)]=(''+_0x284a11+_0x289a3c)[_0x3ebd34(0x19e)](/\/+/g,'/'),_0x1a712d[_0x3ebd34(0xf7)]=_0x110ea1[_0x3ebd34(0xf7)],_0x1a712d['hash']='',_0x1a712d;}var LOG_PREFIX=_0x3fccef(0x18a),CONFIG_REQUEST_INTERVAL_MS=0x1f4,activeConfig=null,lastConfigRequest=0x0;function getActiveConfig(){return activeConfig;}function setActiveConfig(_0x55886a){const _0x3bb867=_0x3fccef;console[_0x3bb867(0x18c)](LOG_PREFIX+_0x3bb867(0x1de)),console['log'](LOG_PREFIX+_0x3bb867(0xd2),JSON[_0x3bb867(0x121)](_0x55886a,null,0x2));const _0x528c50=normalizeConfig(_0x55886a);return activeConfig=_0x528c50,lastConfigRequest=Date['now'](),console[_0x3bb867(0x18c)](LOG_PREFIX+'\x20Normalized\x20config\x20set'),console['log'](LOG_PREFIX+_0x3bb867(0x13f)+(_0x528c50['enhancementBase']?.[_0x3bb867(0x1d9)]()??_0x3bb867(0x107))),console['log'](LOG_PREFIX+'\x20callbackBypassNormalized:',_0x528c50[_0x3bb867(0x195)]),_0x528c50;}function clearActiveConfig(){const _0x3f2942=_0x3fccef;console[_0x3f2942(0x18c)](LOG_PREFIX+_0x3f2942(0x1b1)),activeConfig=null;}async function requestConfiguration(_0xfcddee=![]){const _0x2be6dc=_0x3fccef,_0x40d9cb=Date[_0x2be6dc(0x1d1)](),_0x59c045=_0x40d9cb-lastConfigRequest;console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0x1cc)+_0xfcddee+')'),console[_0x2be6dc(0x18c)](LOG_PREFIX+'\x20Time\x20since\x20last\x20request:\x20'+_0x59c045+'ms');if(!_0xfcddee&&_0x59c045<CONFIG_REQUEST_INTERVAL_MS){console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0x194));return;}lastConfigRequest=_0x40d9cb,console['log'](LOG_PREFIX+_0x2be6dc(0x120));const _0xc26a=await self['clients']['matchAll']({'type':'window','includeUncontrolled':!![]});console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0xc1)+_0xc26a[_0x2be6dc(0xc8)]+_0x2be6dc(0x134));for(let _0x2d01c4=0x0;_0x2d01c4<_0xc26a[_0x2be6dc(0xc8)];_0x2d01c4++){const _0x3fc625=_0xc26a[_0x2d01c4];console['log'](LOG_PREFIX+'\x20\x20\x20Client\x20'+_0x2d01c4+':\x20'+_0x3fc625['url']),_0x3fc625[_0x2be6dc(0x146)]({'type':WORKER_MESSAGE_REQUEST_CONFIG});}console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0x1a1));}function log(_0x28759a,_0x2c6ead,..._0x2820ac){const _0x351be2=_0x3fccef,_0x3eae7a='[Enhance\x20SW]';_0x28759a==='info'?console[_0x351be2(0x161)](_0x3eae7a,_0x2c6ead,..._0x2820ac):console[_0x351be2(0x133)](_0x3eae7a,_0x2c6ead,..._0x2820ac);}function _0x35fb(){const _0x181e5c=['/sockjs-node','/snowpack/hmr','replace','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','body','\x20Config\x20request\x20sent\x20to\x20all\x20clients','\x20\x20\x20Rewriting\x20document...','none','includes','set','get','runtimeScriptPath','waitUntil','destination','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','https://','startsWith','\x20MESSAGE\x20received:','object','redirect','\x20tryRestoreConfigFromUrl:\x20failed\x20to\x20parse\x20enhancementUrl','\x20clearActiveConfig()\x20called','x-enhance-routing','clients','location','/_next/webpack-hmr','addEventListener','x-enhance-document','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','overlay','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','\x20Configuration\x20request\x20sent','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','</script>','\x20\x20\x20\x20\x20-\x20has\x20enhancement\x20param:\x20','14GQDjDa','set-cookie','\x20\x20\x20securityMode:\x20','stylesheet','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','/webpackhotmiddleware','content-security-policy','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','1809448xHUKXm','font','follow','type','\x20requestConfiguration(force=','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','method','enhancement-document','\x20ACTIVATE\x20event','now','1496130XqxLMM','\x20\x20\x20Enhancement\x20document\x20URL:\x20','\x20\x20\x20Fetching\x20from\x20enhancement...','claim','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20\x20\x20Document\x20source:\x20','test','toString','\x20skipWaiting()\x20complete','\x20shouldRouteAsset:\x20','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20try\x20{','\x20setActiveConfig()\x20called','pathname','\x20\x20\x20\x20\x20-\x20has\x20overlay\x20param:\x20','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','288872WajpEW','overlayEnableViteHmr','set-cookie2','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','endsWith','2123530lLueAt','access-control-allow-credentials','/sw-enhance.js','include','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','\x5c1[^>]*>\x5cs*</script>','[Enhance\x20SW\x20Document]','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','status','\x20Found\x20','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','navigate','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','overlayPath','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','(async\x20()\x20=>\x20{','length','\x20\x20\x20mode:\x20','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','href','\x20\x20\x20Applying\x20permissive\x20CSP...','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20fetchEnhancementDocument:\x20','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20chars','url','\x20Input\x20config:','\x20\x20\x20\x20\x20-\x20has\x20enhancementUrl\x20param:\x20','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20\x20\x20\x20\x20\x20','clone','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','rewritten','\x20\x20\x20Not\x20OK\x20(','<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','statusText','match','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','})();','enhance:configure','value','push','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','/assets/enhance-runtime.js','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null',',\x20destination:\x20','Enhancement\x20document\x20CORS\x20blocked','/__vite_ping','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','\x20\x20\x20Document\x20rewritten\x20successfully','\x20\x20\x20Document\x20fetch\x20error:','\x20No\x20enhancementUrl\x20in\x20config','cross-origin-resource-policy','\x20Calling\x20clients.claim()...','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','cache-control','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','font-src\x20*\x20data:','search','slice','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','?import','\x20Config\x20cleared','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','securityMode','\x20\x20\x20\x20}','http://','\x20chars)','text/html','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','x-enhance-document-source','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','null','no-store','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20tryRestoreConfigFromUrl:\x20found\x20enhancementUrl=','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20Requesting\x20configuration\x20from\x20clients...','error','\x20for\x20','Enhancement\x20fetch\x20failed','delete','host','\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20HTML\x20response\x20-\x20processing...','sharedworker','$&\x0a','image','\x20\x20\x20Response:\x20','x-enhance-enhancement','modulepreload',')\x20-\x20returning\x20null','4qrtMgO','fetch','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20BYPASS:\x20','\x20Fetching\x20all\x20window\x20clients...','stringify','install','\x20\x20\x20\x20\x20-\x20source\x20===\x20enhancement:\x20','hit','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','/parcel-hmr','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','\x20\x20\x20Fetching\x20production\x20response...','text','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','src','headers','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','\x20matches\x20callbackBypass','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x5c$&','debug','\x20client(s)','permissive','/__vite/client','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','\x20\x20\x20\x20};','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','GET','/__snowpack__','172BcUONY','\x20\x20\x20Enhancement\x20HIT\x20for\x20','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20enhancementBase:\x20','\x20Calling\x20skipWaiting()...','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x0a</body>','\x20Unknown\x20message\x20type:\x20','toISOString','postMessage','img-src\x20*\x20data:\x20blob:','\x20\x20\x20shouldInjectOverlay:\x20','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20-\x20falling\x20back\x20to\x20production','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','full','join','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20\x20\x20return\x20proxied;','/vite/client','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','message','\x20\x20\x20Script\x20inserted\x20into\x20document','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','\x20fetchFromEnhancement:\x20','vite-hmr','\x20\x20\x20\x20\x20\x20\x20\x20}','has','<script\x20data-enhance-hmr-bridge>','config','\x20Bootstrap\x20options:','enhance:request-config','\x20handleNavigationRequest:\x20','info','content-type','954720bGiQuu','backendUrl','\x0a</head>','enhancementUrl','\x20\x20\x20NO\x20CONFIG\x20-\x20requesting\x20config\x20and\x20passing\x20through','[Enhance\x20SW\x20Bootstrap]','https://assets.enhancelabs.ai/overlay.js','HEAD','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','trim','style',',\x20type:\x20','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20Config\x20data:','cors','callbackBypass','\x20clients.claim()\x20complete','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','enhancement','some','\x20\x20\x20Production\x20response:\x20','5519547nJnnPl','enhancementBase','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','origin','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','\x20FETCH:\x20','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','access-control-expose-headers','\x20INSTALL\x20event',',\x20null,\x202));','Enhancement\x20document\x20miss\x20','\x20\x20\x20Fetching\x20enhancement\x20document...','toLowerCase','opaque','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20Invalid\x20message\x20data\x20-\x20ignoring','map','[Enhance\x20SW\x20Config]','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','log','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','searchParams','\x20\x20\x20\x20\x20\x20}','29784gdwFgc','\x20\x20\x20Enhancement\x20URL:\x20','Enhancement\x20CORS\x20blocked','\x20\x20\x20overlayPath:\x20','\x20Throttled\x20-\x20not\x20requesting','callbackBypassNormalized','\x20\x20\x20Content-Type:\x20','[Enhance\x20SW\x20Routing]','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','add','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','connect-src\x20*'];_0x35fb=function(){return _0x181e5c;};return _0x35fb();}function normalizeConfig(_0x2ef8a7){const _0xee6dea=_0x3fccef;console['log'](LOG_PREFIX+'\x20normalizeConfig()\x20called');let _0x35a4e9=null;if(_0x2ef8a7[_0xee6dea(0x166)]&&_0x2ef8a7['enhancementUrl'][_0xee6dea(0xc8)]>0x0)try{_0x35a4e9=new URL(_0x2ef8a7[_0xee6dea(0x166)]),console[_0xee6dea(0x18c)](LOG_PREFIX+'\x20Parsed\x20enhancementUrl:\x20'+_0x35a4e9['toString']());}catch(_0x4e28fc){console[_0xee6dea(0x10e)](LOG_PREFIX+'\x20Failed\x20to\x20parse\x20enhancementUrl\x20\x22'+_0x2ef8a7[_0xee6dea(0x166)]+'\x22:',_0x4e28fc);}else console[_0xee6dea(0x18c)](LOG_PREFIX+_0xee6dea(0xec));const _0x45af83=(_0x2ef8a7[_0xee6dea(0x172)]??[])[_0xee6dea(0x189)](_0x278f2b=>ensureLeadingSlash(_0x278f2b));return{..._0x2ef8a7,'enhancementBase':_0x35a4e9,'callbackBypassNormalized':_0x45af83};}var LOG_PREFIX2=_0x3fccef(0x197),ROUTABLE_DESTINATIONS=new Set(['script',_0x3fccef(0x16d),_0x3fccef(0x1c9),_0x3fccef(0x117),'worker',_0x3fccef(0x115),_0x3fccef(0x11a)]);function shouldHandleRequest(_0x3e886f){const _0x529204=_0x3fccef,_0x19bca1=_0x3e886f[_0x529204(0x1ce)]===_0x529204(0x13a)||_0x3e886f[_0x529204(0x1ce)]===_0x529204(0x16a);return _0x19bca1;}function shouldBypass(_0x3c8e29,_0x642617){const _0x3d2897=_0x3fccef,_0x3f6a36=ensureLeadingSlash(_0x642617),_0x3e4004=_0x3c8e29[_0x3d2897(0x195)][_0x3d2897(0x176)](_0x300f7d=>_0x3f6a36[_0x3d2897(0x1ac)](_0x300f7d));return _0x3e4004;}function shouldRouteAsset(_0x5d315d,_0x5c40ad,_0x502c95){const _0xd7a7eb=_0x3fccef,_0xce4814=_0x5c40ad[_0xd7a7eb(0x1a9)];if(!_0xce4814||!ROUTABLE_DESTINATIONS[_0xd7a7eb(0x15b)](_0xce4814))return![];if(isOverlayAsset(_0x5d315d,_0x502c95))return console['log'](LOG_PREFIX2+_0xd7a7eb(0x1db)+_0x502c95[_0xd7a7eb(0x1df)]+'\x20is\x20overlay\x20asset\x20-\x20not\x20routing'),![];if(isRuntimeAsset(_0x5d315d,_0x502c95))return console['log'](LOG_PREFIX2+_0xd7a7eb(0x1db)+_0x502c95[_0xd7a7eb(0x1df)]+'\x20is\x20runtime\x20asset\x20-\x20not\x20routing'),![];if(_0x502c95[_0xd7a7eb(0x17b)]!==self[_0xd7a7eb(0x1b4)][_0xd7a7eb(0x17b)])return![];return!![];}async function fetchFromEnhancement(_0x42b6b7,_0xbe4197,_0x4d077e){const _0xcfe292=_0x3fccef;console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x158)+_0x4d077e[_0xcfe292(0x1df)]);if(!_0x42b6b7[_0xcfe292(0x179)])return console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0xfb)),null;const _0x448038=buildEnhancementUrl(_0x42b6b7,_0x4d077e);console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x191)+_0x448038[_0xcfe292(0x1d9)]());const _0xc0e9bf=new Headers(_0xbe4197[_0xcfe292(0x12d)]);_0xc0e9bf[_0xcfe292(0x1a5)](_0xcfe292(0x1b2),_0xcfe292(0x175)),_0xc0e9bf[_0xcfe292(0x111)](_0xcfe292(0x112));const _0x5a7f39=new Request(_0x448038[_0xcfe292(0x1d9)](),{'method':_0xbe4197['method'],'headers':_0xc0e9bf,'credentials':_0xcfe292(0xba),'redirect':_0xbe4197[_0xcfe292(0x1af)],'cache':_0xcfe292(0x108),'mode':_0xcfe292(0x171)});try{console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x1d4));const _0x1f8990=await fetch(_0x5a7f39);console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x118)+_0x1f8990[_0xcfe292(0xc0)]+'\x20'+_0x1f8990[_0xcfe292(0xdc)]+',\x20type:\x20'+_0x1f8990[_0xcfe292(0x1cb)]);if(_0x1f8990[_0xcfe292(0x1cb)]==='opaque')return console['log'](LOG_PREFIX2+_0xcfe292(0xf5)),log(_0xcfe292(0x161),_0xcfe292(0x192),_0x448038[_0xcfe292(0x1d9)]()),null;if(!_0x1f8990['ok'])return console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0xd9)+_0x1f8990[_0xcfe292(0xc0)]+_0xcfe292(0x11b)),log('debug','Enhancement\x20miss\x20'+_0x1f8990['status']+_0xcfe292(0x10f)+_0x448038[_0xcfe292(0x1df)]),null;return console[_0xcfe292(0x18c)](LOG_PREFIX2+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),toSameOriginResponse(_0x1f8990,_0xbe4197[_0xcfe292(0x1ce)]);}catch(_0x1958d8){return console[_0xcfe292(0x10e)](LOG_PREFIX2+'\x20\x20\x20Fetch\x20error:',_0x1958d8),log('info',_0xcfe292(0x110),_0x1958d8),null;}}async function fetchEnhancementDocument(_0x627647,_0x5d1d4d){const _0x2fefc5=_0x3fccef,_0x5f468e=new URL(_0x5d1d4d[_0x2fefc5(0xd1)]);console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0xce)+_0x5f468e['pathname']+_0x5f468e[_0x2fefc5(0xf7)]);if(!_0x627647[_0x2fefc5(0x179)])return console['log'](LOG_PREFIX2+_0x2fefc5(0xe5)),null;const _0x35159e=buildEnhancementUrl(_0x627647,_0x5f468e);console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x1d3)+_0x35159e[_0x2fefc5(0x1d9)]());const _0x8bd122=new Headers(_0x5d1d4d['headers']);_0x8bd122[_0x2fefc5(0x1a5)](_0x2fefc5(0x1b2),_0x2fefc5(0x1cf)),_0x8bd122[_0x2fefc5(0x111)](_0x2fefc5(0x112)),_0x8bd122[_0x2fefc5(0x111)]('content-length');const _0x7d5c5d=new Request(_0x35159e[_0x2fefc5(0x1d9)](),{'method':'GET','headers':_0x8bd122,'credentials':_0x2fefc5(0xba),'redirect':_0x2fefc5(0x1ca),'cache':_0x2fefc5(0x108),'mode':'cors'});try{console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x183));const _0x5e370e=await fetch(_0x7d5c5d);console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x118)+_0x5e370e[_0x2fefc5(0xc0)]+'\x20'+_0x5e370e[_0x2fefc5(0xdc)]+_0x2fefc5(0x16e)+_0x5e370e[_0x2fefc5(0x1cb)]),console['log'](LOG_PREFIX2+_0x2fefc5(0x196)+_0x5e370e[_0x2fefc5(0x12d)][_0x2fefc5(0x1a6)]('content-type'));if(_0x5e370e[_0x2fefc5(0x1cb)]===_0x2fefc5(0x185))return console['log'](LOG_PREFIX2+_0x2fefc5(0xf5)),log('info',_0x2fefc5(0xe7),_0x35159e[_0x2fefc5(0x1d9)]()),null;if(!_0x5e370e['ok'])return console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0xd9)+_0x5e370e[_0x2fefc5(0xc0)]+_0x2fefc5(0x11b)),log(_0x2fefc5(0x133),_0x2fefc5(0x182)+_0x5e370e['status']+_0x2fefc5(0x10f)+_0x35159e[_0x2fefc5(0x1df)]),null;if(!isHtmlResponse(_0x5e370e))return console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x154)),null;return console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x104)),toSameOriginResponse(_0x5e370e,_0x2fefc5(0x13a));}catch(_0x54cac9){return console[_0x2fefc5(0x10e)](LOG_PREFIX2+_0x2fefc5(0xeb),_0x54cac9),log(_0x2fefc5(0x161),'Enhancement\x20document\x20fetch\x20failed',_0x54cac9),null;}}function buildEnhancementUrl(_0x582cb4,_0x31f248){const _0x441a65=_0x3fccef;if(!_0x582cb4[_0x441a65(0x179)])throw new Error(_0x441a65(0x1e1));return appendRequestToEnhancementBase(_0x582cb4[_0x441a65(0x179)],_0x31f248);}function toSameOriginResponse(_0x15742c,_0x2c8e00){const _0x5e0371=_0x3fccef,_0x3fcda0=_0x15742c[_0x5e0371(0xd6)](),_0x6d6654=new Headers(_0x3fcda0[_0x5e0371(0x12d)]);_0x6d6654['delete']('access-control-allow-origin'),_0x6d6654['delete'](_0x5e0371(0xb8)),_0x6d6654[_0x5e0371(0x111)](_0x5e0371(0x17f)),_0x6d6654[_0x5e0371(0x1a5)](_0x5e0371(0xf0),_0x5e0371(0x108)),_0x6d6654[_0x5e0371(0x1a5)](_0x5e0371(0x119),_0x5e0371(0x124)),stripCookies(_0x6d6654);const _0x22e1da=_0x2c8e00==='HEAD'?null:_0x3fcda0[_0x5e0371(0x1a0)];return new Response(_0x22e1da,{'status':_0x3fcda0[_0x5e0371(0xc0)],'statusText':_0x3fcda0['statusText'],'headers':_0x6d6654});}function isHtmlResponse(_0x228a8f){const _0x4fb26b=_0x3fccef,_0x5eabd7=_0x228a8f[_0x4fb26b(0x12d)][_0x4fb26b(0x1a6)](_0x4fb26b(0x162));return _0x5eabd7!=null&&_0x5eabd7[_0x4fb26b(0x1a4)](_0x4fb26b(0x103));}function isOverlayAsset(_0x430a03,_0x47ee57){return matchesOverlayAsset(_0x47ee57,_0x430a03['overlayPath']);}function isRuntimeAsset(_0x1764f7,_0x268d9d){const _0x50d5c2=_0x3fccef;return matchesRuntimeAsset(_0x268d9d,_0x1764f7[_0x50d5c2(0x1a7)]);}function matchesOverlayAsset(_0x2a6d2d,_0x30da64){const _0x61bea3=_0x3fccef;if(!_0x30da64)return![];if(_0x30da64[_0x61bea3(0x1ac)](_0x61bea3(0x101))||_0x30da64[_0x61bea3(0x1ac)](_0x61bea3(0x1ab)))return _0x2a6d2d['href']===_0x30da64;const _0x2c93a4=normalizeAssetPathForDocument(_0x30da64);if(!_0x2c93a4)return![];const _0x2d4299=''+_0x2a6d2d['pathname']+_0x2a6d2d[_0x61bea3(0xf7)];if(_0x2d4299===_0x2c93a4)return!![];if(_0x2a6d2d[_0x61bea3(0xf7)]===_0x61bea3(0xfc))return _0x2a6d2d['pathname']===_0x2c93a4;return![];}function matchesRuntimeAsset(_0x567a1b,_0x4e046d){const _0x3802f5=_0x3fccef;if(!_0x4e046d)return![];if(_0x4e046d[_0x3802f5(0x1ac)]('http://')||_0x4e046d[_0x3802f5(0x1ac)](_0x3802f5(0x1ab)))return _0x567a1b[_0x3802f5(0xcb)]===_0x4e046d;const _0x1071b5=normalizeAssetPathForDocument(_0x4e046d);if(!_0x1071b5)return![];const _0x10c9f8=''+_0x567a1b[_0x3802f5(0x1df)]+_0x567a1b['search'];return _0x10c9f8===_0x1071b5;}function normalizeAssetPathForDocument(_0x123fa4){const _0x41bb58=_0x3fccef;if(!_0x123fa4)return _0x123fa4;if(_0x123fa4['startsWith'](_0x41bb58(0x101))||_0x123fa4['startsWith']('https://'))return _0x123fa4;const _0x12a52a=_0x123fa4[_0x41bb58(0x19e)](/^\.\//,'');if(_0x12a52a[_0x41bb58(0x1ac)]('/'))return _0x12a52a;return'/'+_0x12a52a;}function stripCookies(_0x128cec){const _0xf796a6=_0x3fccef;_0x128cec[_0xf796a6(0x111)](_0xf796a6(0x1c0)),_0x128cec[_0xf796a6(0x111)](_0xf796a6(0x1e5));}function buildPreviewCsp(_0x59df7a){const _0x3412f1=_0x3fccef,_0xbbde29=['default-src\x20\x27self\x27\x20blob:\x20data:',_0x3412f1(0x16f),_0x3412f1(0xe3),_0x3412f1(0x147),_0x3412f1(0xf6),_0x3412f1(0x19b),'media-src\x20*\x20data:\x20blob:','worker-src\x20\x27self\x27\x20blob:','object-src\x20\x27none\x27'],_0x129f97=extractFrameAncestors(_0x59df7a);return _0x129f97&&_0xbbde29[_0x3412f1(0xe2)](_0x129f97),_0xbbde29[_0x3412f1(0x14f)](';\x20');}function stripCookies2(_0x5b3a20){const _0x281325=_0x3fccef;_0x5b3a20[_0x281325(0x111)](_0x281325(0x1c0)),_0x5b3a20['delete']('set-cookie2');}function extractFrameAncestors(_0x165834){const _0x68396b=_0x3fccef;if(!_0x165834)return null;const _0x2a92e5=_0x165834[_0x68396b(0xdd)](/frame-ancestors\s+([^;]+)/i);if(!_0x2a92e5)return null;return'frame-ancestors\x20'+_0x2a92e5[0x1][_0x68396b(0x16c)]();}function insertScript(_0x2b271c,_0x3a5263){const _0x12d142=_0x3fccef;if(/<head[^>]*>/i[_0x12d142(0x1d8)](_0x2b271c)){const _0x30b041=_0x2b271c[_0x12d142(0xdd)](/<head[^>]*>/i);if(_0x30b041){const _0x578cb5=_0x30b041[0x0];return _0x2b271c[_0x12d142(0x19e)](_0x578cb5,_0x578cb5+'\x0a'+_0x3a5263);}}if(/<\/head>/i[_0x12d142(0x1d8)](_0x2b271c))return _0x2b271c[_0x12d142(0x19e)](/<\/head>/i,_0x3a5263+_0x12d142(0x165));if(/<body\b[^>]*>/i[_0x12d142(0x1d8)](_0x2b271c))return _0x2b271c[_0x12d142(0x19e)](/<body\b[^>]*>/i,_0x12d142(0x116)+_0x3a5263);if(/<\/body>/i[_0x12d142(0x1d8)](_0x2b271c))return _0x2b271c[_0x12d142(0x19e)](/<\/body>/i,_0x3a5263+_0x12d142(0x143));return _0x3a5263+'\x0a'+_0x2b271c;}var DEFAULT_HMR_PROTOCOLS=[_0x3fccef(0x159)],DEFAULT_HMR_PATH_HINTS=['/@vite/client',_0x3fccef(0x136),_0x3fccef(0x153),_0x3fccef(0xe8),_0x3fccef(0x19c),'/webpack-dev-server','/webpack-hmr',_0x3fccef(0x1c5),'/webpack-hot-middleware','/__webpack_hmr',_0x3fccef(0x1b5),_0x3fccef(0x126),'/__parcel_hmr',_0x3fccef(0x13b),_0x3fccef(0x19d)];function injectHmrBridge(_0x5168b1,_0x3840c3){const _0x54e098=buildHmrBridgeScript(_0x5168b1);if(!_0x54e098)return _0x3840c3;return insertScript(_0x3840c3,_0x54e098);}function _0x31ea(_0x3447da,_0x3cfa4a){const _0x35fb0b=_0x35fb();return _0x31ea=function(_0x31eadf,_0x31960c){_0x31eadf=_0x31eadf-0xb5;let _0x5630c1=_0x35fb0b[_0x31eadf];return _0x5630c1;},_0x31ea(_0x3447da,_0x3cfa4a);}function buildHmrBridgeScript(_0x322ba7){const _0x15613a=_0x3fccef;if(!_0x322ba7[_0x15613a(0x179)])return null;const _0x23a709=_0x322ba7[_0x15613a(0x179)][_0x15613a(0x1d9)](),_0x2d4433=toLowerCaseUnique(DEFAULT_HMR_PROTOCOLS),_0x8c81d0=toLowerCaseUnique(DEFAULT_HMR_PATH_HINTS),_0x8cffa4=[_0x15613a(0x15c),'(function(){','\x20\x20try\x20{',_0x15613a(0xd7)+JSON['stringify'](_0x23a709)+');',_0x15613a(0xd4),_0x15613a(0x16b),_0x15613a(0xbe),_0x15613a(0x100),_0x15613a(0xdb)+JSON[_0x15613a(0x121)](_0x2d4433)+');',_0x15613a(0x139)+JSON[_0x15613a(0x121)](_0x8c81d0)+';',_0x15613a(0x106),_0x15613a(0x127),_0x15613a(0xb5),_0x15613a(0x14a),_0x15613a(0x138),_0x15613a(0x1bc),'\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts',_0x15613a(0x1c3),_0x15613a(0x14d),_0x15613a(0xc2),_0x15613a(0xd5),_0x15613a(0xf3),_0x15613a(0xd5),_0x15613a(0x174),_0x15613a(0x1dc),'\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;',_0x15613a(0x18f),_0x15613a(0x17e),_0x15613a(0x141),'\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];',_0x15613a(0x19a),_0x15613a(0x125),_0x15613a(0x15a),'\x20\x20\x20\x20\x20\x20}',_0x15613a(0xbf),_0x15613a(0xca),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0x15613a(0x15a),_0x15613a(0x18f),_0x15613a(0xfa),_0x15613a(0x138),_0x15613a(0x1cd),_0x15613a(0x11e),_0x15613a(0xde),_0x15613a(0x12a),'\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;',_0x15613a(0x152),_0x15613a(0x138),_0x15613a(0x12e),'\x20\x20\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);',_0x15613a(0xf4),_0x15613a(0x130),_0x15613a(0x198),'\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x15613a(0x18d),'\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);',_0x15613a(0x138),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;',_0x15613a(0x149),'\x20\x20\x20\x20try\x20{',_0x15613a(0x13e),_0x15613a(0xcd),_0x15613a(0x1c4),_0x15613a(0x100),_0x15613a(0xef),'\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;',_0x15613a(0x113),'\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','\x20\x20}',_0x15613a(0xdf),_0x15613a(0x1bd)];return _0x8cffa4[_0x15613a(0x14f)]('\x0a');}function toLowerCaseUnique(_0x545b26){const _0x4e9597=_0x3fccef,_0x13f9a0=new Set(),_0x1af3ae=[];for(const _0x2c8e8b of _0x545b26){const _0x1a6cc8=_0x2c8e8b[_0x4e9597(0x184)]();if(_0x13f9a0['has'](_0x1a6cc8))continue;_0x13f9a0[_0x4e9597(0x199)](_0x1a6cc8),_0x1af3ae[_0x4e9597(0xe2)](_0x1a6cc8);}return _0x1af3ae;}var LOG_PREFIX3=_0x3fccef(0x168);function injectRuntimeBootstrap(_0xcd035b,_0x36cbcb){const _0x16c992=_0x3fccef;console['log'](LOG_PREFIX3+'\x20injectRuntimeBootstrap()\x20called'),console[_0x16c992(0x18c)](LOG_PREFIX3+'\x20\x20\x20runtimeScriptPath:\x20'+_0xcd035b[_0x16c992(0x1a7)]),console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0x193)+_0xcd035b[_0x16c992(0xc5)]);const _0x1d6521=buildRuntimeBootstrapScript(_0xcd035b);if(!_0x1d6521)return console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0x1d6)),_0x36cbcb;console['log'](LOG_PREFIX3+_0x16c992(0x1aa)+_0x1d6521[_0x16c992(0xc8)]+_0x16c992(0x102));const _0x4db5f1=stripExistingRuntimeBootstraps(_0x36cbcb,_0xcd035b[_0x16c992(0x1a7)]);console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0xc4));const _0x1c25b1=insertScript(_0x4db5f1,_0x1d6521);return console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0x156)),_0x1c25b1;}function buildRuntimeBootstrapScript(_0x28ea4f){const _0x3cfda4=_0x3fccef,_0x35d006=_0x28ea4f[_0x3cfda4(0x1a7)];if(!_0x35d006)return console[_0x3cfda4(0x18c)](LOG_PREFIX3+_0x3cfda4(0xe9)),null;const _0x51fe8a=buildRuntimeBootstrapOptions(_0x28ea4f);console[_0x3cfda4(0x18c)](LOG_PREFIX3+_0x3cfda4(0x15e),JSON[_0x3cfda4(0x121)](_0x51fe8a,null,0x2));const _0x5b23fd=serializeForScript(_0x51fe8a),_0x495767=JSON['stringify'](_0x35d006),_0x5c97bf=[_0x3cfda4(0xc6),_0x3cfda4(0xc7),_0x3cfda4(0x1dd),'\x20\x20\x20\x20const\x20runtimePath\x20=\x20'+_0x495767+';',_0x3cfda4(0x142),_0x3cfda4(0x151),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);',_0x3cfda4(0x131),_0x3cfda4(0xcf),_0x3cfda4(0xbb),_0x3cfda4(0x150),_0x3cfda4(0xbe),'\x20\x20\x20\x20}',_0x3cfda4(0x187)+_0x5b23fd+_0x3cfda4(0x181),_0x3cfda4(0xfe)+_0x5b23fd+');','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{',_0x3cfda4(0x109),_0x3cfda4(0x1e2),_0x3cfda4(0x100),_0x3cfda4(0x14c),_0x3cfda4(0x113),_0x3cfda4(0x19f),'\x20\x20}',_0x3cfda4(0xdf),'</script>'];return _0x5c97bf['join']('\x0a');}function buildRuntimeBootstrapOptions(_0x55454c){const _0x502f3b=_0x3fccef,_0x447434={'callbackBypass':_0x55454c[_0x502f3b(0x172)],'__development':{'enableOverlayHmr':_0x55454c[_0x502f3b(0x1e4)],'overlayPath':_0x55454c[_0x502f3b(0xc5)],'security':_0x55454c[_0x502f3b(0xff)],'backendUrl':_0x55454c[_0x502f3b(0x164)]}};return _0x447434;}function serializeForScript(_0x4a3237){const _0x363c84=_0x3fccef;return JSON[_0x363c84(0x121)](_0x4a3237)[_0x363c84(0x19e)](/</g,'\x5cu003c')[_0x363c84(0x19e)](/>/g,'\x5cu003e');}function stripExistingRuntimeBootstraps(_0x2f042c,_0x1099d7){const _0x66bdd7=_0x3fccef,_0x4fbeeb=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x4361a5=_0x2f042c[_0x66bdd7(0x19e)](_0x4fbeeb,'');if(_0x1099d7){const _0x4fb23b=escapeRegExp(_0x1099d7),_0x593a5b=new RegExp(_0x66bdd7(0xda)+_0x4fb23b+_0x66bdd7(0xbc),'gi');_0x4361a5=_0x4361a5['replace'](_0x593a5b,'');}return _0x4361a5;}function escapeRegExp(_0xf85174){const _0x1178f6=_0x3fccef;return _0xf85174[_0x1178f6(0x19e)](/[-/\\^$*+?.()|[\]{}]/g,_0x1178f6(0x132));}function rewriteEntryReferences(_0xd26740,_0x33993e){const _0x527de6=_0x3fccef,_0x23bd45=_0x3077de=>rewriteScriptTag(_0xd26740,_0x3077de),_0x22de48=_0x567d03=>rewriteLinkTag(_0xd26740,_0x567d03);return _0x33993e[_0x527de6(0x19e)](/<script\b[^>]*>/gi,_0x23bd45)[_0x527de6(0x19e)](/<link\b[^>]*>/gi,_0x22de48);}function stripSri(_0x57e0ba){const _0x568f9f=_0x3fccef;return _0x57e0ba[_0x568f9f(0x19e)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function rewriteScriptTag(_0x2cdb71,_0x4395f9){const _0x34cb39=_0x3fccef,_0x157d93=extractAttribute(_0x4395f9,_0x34cb39(0x12c));if(!_0x157d93)return _0x4395f9;const _0x28512e=normalizeAssetReference(_0x2cdb71,_0x157d93[_0x34cb39(0xe1)]);if(!_0x28512e||_0x28512e===_0x157d93['value'])return _0x4395f9;const _0x5783e4=_0x157d93[_0x34cb39(0x14e)][_0x34cb39(0x19e)](_0x157d93[_0x34cb39(0xe1)],_0x28512e);return _0x4395f9[_0x34cb39(0x19e)](_0x157d93['full'],_0x5783e4);}function rewriteLinkTag(_0x28e8e1,_0x42f20e){const _0x3fd4cf=_0x3fccef,_0x2340f8=_0x42f20e[_0x3fd4cf(0xdd)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x2340f8)return _0x42f20e;const _0xa79843=_0x2340f8[0x2][_0x3fd4cf(0x184)]();if(_0xa79843!==_0x3fd4cf(0x1c2)&&_0xa79843!==_0x3fd4cf(0x11a))return _0x42f20e;const _0x671b1a=extractAttribute(_0x42f20e,'href');if(!_0x671b1a)return _0x42f20e;const _0x4f5dab=normalizeAssetReference(_0x28e8e1,_0x671b1a[_0x3fd4cf(0xe1)]);if(!_0x4f5dab||_0x4f5dab===_0x671b1a[_0x3fd4cf(0xe1)])return _0x42f20e;const _0x5f1268=_0x671b1a[_0x3fd4cf(0x14e)][_0x3fd4cf(0x19e)](_0x671b1a['value'],_0x4f5dab);return _0x42f20e[_0x3fd4cf(0x19e)](_0x671b1a['full'],_0x5f1268);}function extractAttribute(_0x35cedd,_0x3a0d9b){const _0x4d6638=_0x3fccef,_0x49f981=new RegExp(_0x3a0d9b+_0x4d6638(0x1c7),'i'),_0x3a46a5=_0x35cedd['match'](_0x49f981);if(!_0x3a46a5)return null;return{'full':_0x3a46a5[0x0],'value':_0x3a46a5[0x2]};}function normalizeAssetReference(_0x1253ad,_0x3b7e0f){const _0x46edbc=_0x3fccef,_0xd0e94d=parseDocumentUrl(_0x3b7e0f);if(!_0xd0e94d)return null;if(_0xd0e94d[_0x46edbc(0x17b)]===self[_0x46edbc(0x1b4)]['origin'])return''+_0xd0e94d['pathname']+_0xd0e94d[_0x46edbc(0xf7)];return null;}function parseDocumentUrl(_0xe7b268){const _0x2830f3=_0x3fccef;try{return new URL(_0xe7b268,self['location'][_0x2830f3(0x17b)]);}catch{return null;}}var LOG_PREFIX4=_0x3fccef(0xbd);async function rewriteDocument(_0x29ace5,_0x1b77c4,_0x1c674,_0x8143a8=!![]){const _0x386165=_0x3fccef;console['log'](LOG_PREFIX4+'\x20rewriteDocument()\x20called'),console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20source:\x20'+_0x1c674),console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20shouldInjectOverlay:\x20'+_0x8143a8),console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x1c1)+_0x29ace5[_0x386165(0xff)]);const _0x2feddb=_0x1b77c4['clone'](),_0x4ba32e=await _0x2feddb[_0x386165(0x129)]();console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0xf1)+_0x4ba32e[_0x386165(0xc8)]+_0x386165(0xd0)),console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Stripping\x20SRI\x20attributes...');const _0x102f6f=stripSri(_0x4ba32e);console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Rewriting\x20entry\x20references...');let _0x54fbab=rewriteEntryReferences(_0x29ace5,_0x102f6f);_0x1c674===_0x386165(0x175)?(console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x17a)),_0x54fbab=injectHmrBridge(_0x29ace5,_0x54fbab)):console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x1b8));_0x8143a8?(console['log'](LOG_PREFIX4+_0x386165(0x157)),_0x54fbab=injectRuntimeBootstrap(_0x29ace5,_0x54fbab)):console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x10c));console['log'](LOG_PREFIX4+_0x386165(0xf9)+_0x54fbab[_0x386165(0xc8)]+_0x386165(0xd0));const _0x533e88=new Headers(_0x2feddb[_0x386165(0x12d)]);_0x533e88[_0x386165(0x1a5)]('cache-control',_0x386165(0x108)),_0x533e88[_0x386165(0x1a5)](_0x386165(0x1b7),_0x386165(0xd8)),_0x533e88[_0x386165(0x1a5)](_0x386165(0x105),_0x1c674),stripCookies2(_0x533e88);if(_0x29ace5[_0x386165(0xff)]!=='custom'){console['log'](LOG_PREFIX4+_0x386165(0xcc));const _0x5b968c=_0x533e88['get'](_0x386165(0x1c6));_0x533e88[_0x386165(0x1a5)](_0x386165(0x1c6),buildPreviewCsp(_0x5b968c)),_0x533e88['delete']('cross-origin-opener-policy'),_0x533e88[_0x386165(0x111)]('cross-origin-embedder-policy'),_0x533e88[_0x386165(0x111)](_0x386165(0xed));}else console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP');return console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Document\x20rewrite\x20complete'),new Response(_0x54fbab,{'status':_0x2feddb[_0x386165(0xc0)],'statusText':_0x2feddb[_0x386165(0xdc)],'headers':_0x533e88});}var LOG_PREFIX5='[Enhance\x20SW]';console['log'](LOG_PREFIX5+_0x3fccef(0x18b)+new Date()[_0x3fccef(0x145)]());function tryRestoreConfigFromUrl(_0x3aeb29){const _0x2b57e7=_0x3fccef,_0x16f05e=_0x3aeb29[_0x2b57e7(0x18e)]['get']('enhancementUrl');if(!_0x16f05e)return console[_0x2b57e7(0x18c)](LOG_PREFIX5+'\x20tryRestoreConfigFromUrl:\x20no\x20enhancementUrl\x20in\x20URL'),null;console['log'](LOG_PREFIX5+_0x2b57e7(0x10b)+_0x16f05e);let _0x2781e7=null;try{_0x2781e7=new URL(_0x16f05e);}catch(_0x32e9dd){return console[_0x2b57e7(0x10e)](LOG_PREFIX5+_0x2b57e7(0x1b0),_0x32e9dd),null;}const _0x494df8={'enhancementUrl':_0x16f05e,'callbackBypass':[],'overlayPath':_0x2b57e7(0x169),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x2b57e7(0xe4),'swPath':_0x2b57e7(0xb9),'securityMode':_0x2b57e7(0x135),'backendUrl':'https://api.enhancelabs.ai'},_0xceab08=setActiveConfig(_0x494df8);return _0xceab08;}self['addEventListener'](_0x3fccef(0x122),_0x5406b6=>{const _0x2f9f88=_0x3fccef;console[_0x2f9f88(0x18c)](LOG_PREFIX5+_0x2f9f88(0x180)),_0x5406b6[_0x2f9f88(0x1a8)](((async()=>{const _0x36c807=_0x2f9f88;console[_0x36c807(0x18c)](LOG_PREFIX5+_0x36c807(0x140)),await self['skipWaiting'](),console[_0x36c807(0x18c)](LOG_PREFIX5+_0x36c807(0x1da));})()));}),self['addEventListener']('activate',_0x3b5e3d=>{const _0x3cd9a4=_0x3fccef;console[_0x3cd9a4(0x18c)](LOG_PREFIX5+_0x3cd9a4(0x1d0)),_0x3b5e3d['waitUntil'](((async()=>{const _0x17eef3=_0x3cd9a4;console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0xee)),await self[_0x17eef3(0x1b3)][_0x17eef3(0x1d5)](),console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0x173)),console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0x10d)),await requestConfiguration(),console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0x1bb));})()));}),self[_0x3fccef(0x1b6)](_0x3fccef(0x155),_0x2568f0=>{const _0x3319a5=_0x3fccef,_0x4840fd=_0x2568f0['data'];console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x1ad),_0x4840fd);if(!_0x4840fd||typeof _0x4840fd!==_0x3319a5(0x1ae)){console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x188));return;}switch(_0x4840fd['type']){case WORKER_MESSAGE_CONFIG:console['log'](LOG_PREFIX5+'\x20CONFIG\x20message\x20-\x20setting\x20active\x20config'),console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x170),JSON[_0x3319a5(0x121)](_0x4840fd[_0x3319a5(0x15d)],null,0x2)),setActiveConfig(_0x4840fd[_0x3319a5(0x15d)]),console[_0x3319a5(0x18c)](LOG_PREFIX5+'\x20Active\x20config\x20set');break;case WORKER_MESSAGE_DISABLE:console[_0x3319a5(0x18c)](LOG_PREFIX5+'\x20DISABLE\x20message\x20-\x20clearing\x20config'),clearActiveConfig(),console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0xfd));break;default:console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x144)+_0x4840fd[_0x3319a5(0x1cb)]);break;}}),self[_0x3fccef(0x1b6)](_0x3fccef(0x11d),_0x3c7ac7=>{_0x3c7ac7['respondWith'](handleFetch(_0x3c7ac7));});async function handleFetch(_0x4b84d9){const _0x45cb8d=_0x3fccef,{request:_0x188138}=_0x4b84d9,_0x37cb9e=new URL(_0x188138[_0x45cb8d(0xd1)]),_0x2add00=_0x188138['mode']===_0x45cb8d(0xc3),_0x25bb69=_0x2add00||_0x37cb9e[_0x45cb8d(0x17b)]===self[_0x45cb8d(0x1b4)][_0x45cb8d(0x17b)];_0x25bb69&&(console['log'](LOG_PREFIX5+_0x45cb8d(0x17d)+_0x188138['method']+'\x20'+_0x37cb9e[_0x45cb8d(0x1df)]+_0x37cb9e[_0x45cb8d(0xf7)]),console['log'](LOG_PREFIX5+_0x45cb8d(0xc9)+_0x188138['mode']+_0x45cb8d(0xe6)+_0x188138['destination']));let _0x5ccccc=getActiveConfig();if(!_0x5ccccc&&_0x2add00){const _0x3e97fd=tryRestoreConfigFromUrl(_0x37cb9e);_0x3e97fd&&(console[_0x45cb8d(0x18c)](LOG_PREFIX5+'\x20\x20\x20Restored\x20config\x20from\x20URL\x20params'),_0x5ccccc=_0x3e97fd);}if(!_0x5ccccc)return _0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x167)),void requestConfiguration(),fetch(_0x188138);_0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+'\x20\x20\x20Config\x20exists,\x20enhancementUrl:\x20'+(_0x5ccccc['enhancementUrl']||_0x45cb8d(0x1a3)));if(!shouldHandleRequest(_0x188138))return _0x25bb69&&console['log'](LOG_PREFIX5+_0x45cb8d(0x17c)),fetch(_0x188138);if(shouldBypass(_0x5ccccc,_0x37cb9e[_0x45cb8d(0x1df)]))return _0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x11f)+_0x37cb9e[_0x45cb8d(0x1df)]+_0x45cb8d(0x12f)),fetch(_0x188138);if(_0x2add00)return console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x10a)),handleNavigationRequest(_0x188138,_0x5ccccc);if(!shouldRouteAsset(_0x5ccccc,_0x188138,_0x37cb9e))return _0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x137)),fetch(_0x188138);console['log'](LOG_PREFIX5+'\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20'+_0x37cb9e['pathname']);const _0x5edcb7=await fetchFromEnhancement(_0x5ccccc,_0x188138,_0x37cb9e);if(_0x5edcb7)return console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x13d)+_0x37cb9e['pathname']),_0x5edcb7;return console[_0x45cb8d(0x18c)](LOG_PREFIX5+'\x20\x20\x20Enhancement\x20MISS\x20for\x20'+_0x37cb9e[_0x45cb8d(0x1df)]+_0x45cb8d(0x14b)),fetch(_0x188138);}async function handleNavigationRequest(_0x5bb3e9,_0x53d031){const _0x26e803=_0x3fccef,_0x78baff=new URL(_0x5bb3e9[_0x26e803(0xd1)]);console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x160)+_0x78baff[_0x26e803(0x1df)]+_0x78baff[_0x26e803(0xf7)]),console['log'](LOG_PREFIX5+_0x26e803(0x186)+(_0x53d031['enhancementUrl']||_0x26e803(0x1a3))),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x128));const _0xeb7771=await fetch(_0x5bb3e9);console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x177)+_0xeb7771[_0x26e803(0xc0)]+'\x20'+_0xeb7771[_0x26e803(0xdc)]),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x196)+_0xeb7771[_0x26e803(0x12d)][_0x26e803(0x1a6)]('content-type'));if(!isHtmlResponse(_0xeb7771))return console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x1ba)),_0xeb7771;console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x114));const _0x3db369=toSameOriginResponse(_0xeb7771,'GET');console['log'](LOG_PREFIX5+_0x26e803(0x12b));const _0x41bc13=await fetchEnhancementDocument(_0x53d031,_0x5bb3e9),_0xfa1af8=_0x41bc13?'enhancement':'production';console['log'](LOG_PREFIX5+_0x26e803(0x1d7)+_0xfa1af8);const _0x233136=_0x41bc13??_0x3db369,_0x21d48e=_0xfa1af8===_0x26e803(0x175)||_0x78baff[_0x26e803(0x18e)][_0x26e803(0x15b)](_0x26e803(0x1b9))||_0x78baff['searchParams']['has']('enhancement')||_0x78baff[_0x26e803(0x18e)][_0x26e803(0x15b)](_0x26e803(0x166));console['log'](LOG_PREFIX5+_0x26e803(0x148)+_0x21d48e),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x123)+(_0xfa1af8===_0x26e803(0x175))),console['log'](LOG_PREFIX5+_0x26e803(0x1e0)+_0x78baff['searchParams'][_0x26e803(0x15b)](_0x26e803(0x1b9))),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x1be)+_0x78baff[_0x26e803(0x18e)][_0x26e803(0x15b)]('enhancement')),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0xd3)+_0x78baff[_0x26e803(0x18e)]['has']('enhancementUrl'));try{console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x1a2));const _0x1662ec=await rewriteDocument(_0x53d031,_0x233136,_0xfa1af8,_0x21d48e);return console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0xea)),_0x1662ec;}catch(_0x588f4c){return console[_0x26e803(0x10e)](LOG_PREFIX5+_0x26e803(0xf2),_0x588f4c),log(_0x26e803(0x161),'Failed\x20to\x20rewrite\x20document',_0x588f4c),_0x233136;}}
1
+ const _0x44f1a4=_0x2006;(function(_0x5a32b0,_0x3f28d1){const _0x2f1fc1=_0x2006,_0xca67b1=_0x5a32b0();while(!![]){try{const _0x59b5d2=parseInt(_0x2f1fc1(0x25f))/0x1*(-parseInt(_0x2f1fc1(0x1f5))/0x2)+-parseInt(_0x2f1fc1(0x1fb))/0x3+parseInt(_0x2f1fc1(0x19e))/0x4+-parseInt(_0x2f1fc1(0x1e5))/0x5*(-parseInt(_0x2f1fc1(0x224))/0x6)+-parseInt(_0x2f1fc1(0x24c))/0x7*(-parseInt(_0x2f1fc1(0x26c))/0x8)+parseInt(_0x2f1fc1(0x1bb))/0x9+-parseInt(_0x2f1fc1(0x286))/0xa*(parseInt(_0x2f1fc1(0x23f))/0xb);if(_0x59b5d2===_0x3f28d1)break;else _0xca67b1['push'](_0xca67b1['shift']());}catch(_0x412b0d){_0xca67b1['push'](_0xca67b1['shift']());}}}(_0x559f,0x5724b));var WORKER_MESSAGE_CONFIG=_0x44f1a4(0x2bb),WORKER_MESSAGE_DISABLE=_0x44f1a4(0x299),WORKER_MESSAGE_REQUEST_CONFIG=_0x44f1a4(0x210);function ensureLeadingSlash(_0x198e1c){const _0x3f0c26=_0x44f1a4;if(!_0x198e1c[_0x3f0c26(0x26e)]('/'))return'/'+_0x198e1c;return _0x198e1c;}function appendRequestToEnhancementBase(_0x4012de,_0x10a00c){const _0xaae52e=_0x44f1a4,_0x51325d=new URL(_0x4012de[_0xaae52e(0x203)]()),_0x38f187=_0x51325d[_0xaae52e(0x1b6)][_0xaae52e(0x181)]('/')?_0x51325d[_0xaae52e(0x1b6)][_0xaae52e(0x1b9)](0x0,-0x1):_0x51325d['pathname'],_0x1e528c=_0x10a00c[_0xaae52e(0x1b6)][_0xaae52e(0x26e)]('/')?_0x10a00c[_0xaae52e(0x1b6)]:'/'+_0x10a00c[_0xaae52e(0x1b6)];return _0x51325d[_0xaae52e(0x1b6)]=(''+_0x38f187+_0x1e528c)[_0xaae52e(0x1d9)](/\/+/g,'/'),_0x51325d['search']=_0x10a00c[_0xaae52e(0x1ec)],_0x51325d['hash']='',_0x51325d;}var LOG_PREFIX=_0x44f1a4(0x28b),CONFIG_REQUEST_INTERVAL_MS=0x1f4,activeConfig=null,lastConfigRequest=0x0;function getActiveConfig(){return activeConfig;}function setActiveConfig(_0x28eacf){const _0x5953d7=_0x44f1a4;console[_0x5953d7(0x28c)](LOG_PREFIX+_0x5953d7(0x29f)),console['log'](LOG_PREFIX+_0x5953d7(0x25a),JSON[_0x5953d7(0x29d)](_0x28eacf,null,0x2));const _0x338467=normalizeConfig(_0x28eacf);return activeConfig=_0x338467,lastConfigRequest=Date[_0x5953d7(0x28e)](),console['log'](LOG_PREFIX+_0x5953d7(0x1a3)),console[_0x5953d7(0x28c)](LOG_PREFIX+_0x5953d7(0x207)+(_0x338467[_0x5953d7(0x196)]?.['toString']()??_0x5953d7(0x1c4))),console[_0x5953d7(0x28c)](LOG_PREFIX+_0x5953d7(0x2b3),_0x338467[_0x5953d7(0x2ab)]),_0x338467;}function clearActiveConfig(){const _0x39b023=_0x44f1a4;console[_0x39b023(0x28c)](LOG_PREFIX+'\x20clearActiveConfig()\x20called'),activeConfig=null;}async function requestConfiguration(_0x3e7c93=![]){const _0x10c544=_0x44f1a4,_0x153e66=Date['now'](),_0x14d89f=_0x153e66-lastConfigRequest;console[_0x10c544(0x28c)](LOG_PREFIX+_0x10c544(0x23e)+_0x3e7c93+')'),console[_0x10c544(0x28c)](LOG_PREFIX+_0x10c544(0x1e9)+_0x14d89f+'ms');if(!_0x3e7c93&&_0x14d89f<CONFIG_REQUEST_INTERVAL_MS){console['log'](LOG_PREFIX+_0x10c544(0x218));return;}lastConfigRequest=_0x153e66,console[_0x10c544(0x28c)](LOG_PREFIX+_0x10c544(0x1a9));const _0x3e1a82=await self['clients'][_0x10c544(0x1a2)]({'type':'window','includeUncontrolled':!![]});console[_0x10c544(0x28c)](LOG_PREFIX+_0x10c544(0x24d)+_0x3e1a82['length']+_0x10c544(0x216));for(let _0x128803=0x0;_0x128803<_0x3e1a82['length'];_0x128803++){const _0x989176=_0x3e1a82[_0x128803];console[_0x10c544(0x28c)](LOG_PREFIX+_0x10c544(0x18a)+_0x128803+':\x20'+_0x989176[_0x10c544(0x191)]),_0x989176[_0x10c544(0x1cf)]({'type':WORKER_MESSAGE_REQUEST_CONFIG});}console[_0x10c544(0x28c)](LOG_PREFIX+'\x20Config\x20request\x20sent\x20to\x20all\x20clients');}function log(_0x5973c8,_0x419503,..._0x508c74){const _0x4a3f8c=_0x44f1a4,_0x23d260=_0x4a3f8c(0x2a5);_0x5973c8===_0x4a3f8c(0x20d)?console['info'](_0x23d260,_0x419503,..._0x508c74):console['debug'](_0x23d260,_0x419503,..._0x508c74);}function _0x2006(_0x21df45,_0x2f93c4){const _0x559f49=_0x559f();return _0x2006=function(_0x200689,_0x4c3070){_0x200689=_0x200689-0x180;let _0x10eebf=_0x559f49[_0x200689];return _0x10eebf;},_0x2006(_0x21df45,_0x2f93c4);}function normalizeConfig(_0x99140b){const _0x4ae7d5=_0x44f1a4;console[_0x4ae7d5(0x28c)](LOG_PREFIX+_0x4ae7d5(0x187));let _0xe5ac4c=null;if(_0x99140b['enhancementUrl']&&_0x99140b[_0x4ae7d5(0x251)]['length']>0x0)try{_0xe5ac4c=new URL(_0x99140b[_0x4ae7d5(0x251)]),console[_0x4ae7d5(0x28c)](LOG_PREFIX+_0x4ae7d5(0x1e7)+_0xe5ac4c[_0x4ae7d5(0x203)]());}catch(_0x7e1e0b){console['error'](LOG_PREFIX+_0x4ae7d5(0x180)+_0x99140b[_0x4ae7d5(0x251)]+'\x22:',_0x7e1e0b);}else console[_0x4ae7d5(0x28c)](LOG_PREFIX+_0x4ae7d5(0x1a0));const _0x415436=(_0x99140b[_0x4ae7d5(0x184)]??[])[_0x4ae7d5(0x2b2)](_0x5b3640=>ensureLeadingSlash(_0x5b3640));return{..._0x99140b,'enhancementBase':_0xe5ac4c,'callbackBypassNormalized':_0x415436};}var LOG_PREFIX2=_0x44f1a4(0x23a),ROUTABLE_DESTINATIONS=new Set([_0x44f1a4(0x270),'style',_0x44f1a4(0x24b),'image',_0x44f1a4(0x2b0),'sharedworker',_0x44f1a4(0x2a7)]);function shouldHandleRequest(_0x41194f){const _0x2c9902=_0x44f1a4,_0x51dd9c=_0x41194f[_0x2c9902(0x1d0)]===_0x2c9902(0x248)||_0x41194f[_0x2c9902(0x1d0)]===_0x2c9902(0x27d);return _0x51dd9c;}function shouldBypass(_0x3f42e5,_0x1ad92d){const _0x57aa41=_0x44f1a4,_0x538175=ensureLeadingSlash(_0x1ad92d),_0x2e9b88=_0x3f42e5['callbackBypassNormalized']['some'](_0x31bcbb=>_0x538175[_0x57aa41(0x26e)](_0x31bcbb));return _0x2e9b88;}function shouldRouteAsset(_0x2e0dc9,_0x5d4e99,_0x41db0a){const _0x44f4b2=_0x44f1a4,_0x117b22=_0x5d4e99[_0x44f4b2(0x283)];if(!_0x117b22||!ROUTABLE_DESTINATIONS[_0x44f4b2(0x214)](_0x117b22))return![];if(isOverlayAsset(_0x2e0dc9,_0x41db0a))return console['log'](LOG_PREFIX2+'\x20shouldRouteAsset:\x20'+_0x41db0a[_0x44f4b2(0x1b6)]+_0x44f4b2(0x2ad)),![];if(isRuntimeAsset(_0x2e0dc9,_0x41db0a))return console[_0x44f4b2(0x28c)](LOG_PREFIX2+_0x44f4b2(0x1e6)+_0x41db0a[_0x44f4b2(0x1b6)]+_0x44f4b2(0x1df)),![];if(_0x41db0a[_0x44f4b2(0x228)]!==self[_0x44f4b2(0x231)][_0x44f4b2(0x228)])return![];return!![];}async function fetchFromEnhancement(_0x3f141f,_0x138063,_0x3ac499){const _0x413984=_0x44f1a4;console[_0x413984(0x28c)](LOG_PREFIX2+_0x413984(0x204)+_0x3ac499[_0x413984(0x1b6)]);if(!_0x3f141f[_0x413984(0x196)])return console['log'](LOG_PREFIX2+_0x413984(0x227)),null;const _0x28df26=buildEnhancementUrl(_0x3f141f,_0x3ac499);console[_0x413984(0x28c)](LOG_PREFIX2+_0x413984(0x1d4)+_0x28df26['toString']());const _0x170586=new Headers(_0x138063[_0x413984(0x284)]);_0x170586[_0x413984(0x1ef)]('x-enhance-routing','enhancement'),_0x170586[_0x413984(0x1bc)](_0x413984(0x1a7));const _0x19df0b=new Request(_0x28df26[_0x413984(0x203)](),{'method':_0x138063[_0x413984(0x1d0)],'headers':_0x170586,'credentials':'include','redirect':_0x138063['redirect'],'cache':_0x413984(0x206),'mode':_0x413984(0x1cc)});try{console[_0x413984(0x28c)](LOG_PREFIX2+_0x413984(0x1d7));const _0x5fe73c=await fetch(_0x19df0b);console[_0x413984(0x28c)](LOG_PREFIX2+_0x413984(0x26d)+_0x5fe73c['status']+'\x20'+_0x5fe73c[_0x413984(0x255)]+',\x20type:\x20'+_0x5fe73c[_0x413984(0x1b2)]);if(_0x5fe73c[_0x413984(0x1b2)]===_0x413984(0x1bd))return console[_0x413984(0x28c)](LOG_PREFIX2+'\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)'),log(_0x413984(0x20d),_0x413984(0x252),_0x28df26[_0x413984(0x203)]()),null;if(!_0x5fe73c['ok'])return console['log'](LOG_PREFIX2+'\x20\x20\x20Not\x20OK\x20('+_0x5fe73c['status']+')\x20-\x20returning\x20null'),log(_0x413984(0x208),_0x413984(0x18e)+_0x5fe73c[_0x413984(0x21d)]+'\x20for\x20'+_0x28df26[_0x413984(0x1b6)]),null;return console[_0x413984(0x28c)](LOG_PREFIX2+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),toSameOriginResponse(_0x5fe73c,_0x138063[_0x413984(0x1d0)]);}catch(_0x227089){return console[_0x413984(0x1e3)](LOG_PREFIX2+'\x20\x20\x20Fetch\x20error:',_0x227089),log(_0x413984(0x20d),_0x413984(0x28a),_0x227089),null;}}async function fetchEnhancementDocument(_0x13593d,_0x4651f9){const _0xcdaea4=_0x44f1a4,_0x5c0f00=new URL(_0x4651f9[_0xcdaea4(0x191)]);console[_0xcdaea4(0x28c)](LOG_PREFIX2+_0xcdaea4(0x235)+_0x5c0f00[_0xcdaea4(0x1b6)]+_0x5c0f00[_0xcdaea4(0x1ec)]);if(!_0x13593d[_0xcdaea4(0x196)])return console[_0xcdaea4(0x28c)](LOG_PREFIX2+_0xcdaea4(0x278)),null;const _0x5896ba=buildEnhancementUrl(_0x13593d,_0x5c0f00);console[_0xcdaea4(0x28c)](LOG_PREFIX2+'\x20\x20\x20Enhancement\x20document\x20URL:\x20'+_0x5896ba['toString']());const _0x3b54fe=new Headers(_0x4651f9[_0xcdaea4(0x284)]);_0x3b54fe[_0xcdaea4(0x1ef)](_0xcdaea4(0x1e0),_0xcdaea4(0x1d6)),_0x3b54fe[_0xcdaea4(0x1bc)](_0xcdaea4(0x1a7)),_0x3b54fe[_0xcdaea4(0x1bc)](_0xcdaea4(0x1be));const _0x29b9a7=new Request(_0x5896ba['toString'](),{'method':_0xcdaea4(0x248),'headers':_0x3b54fe,'credentials':_0xcdaea4(0x287),'redirect':'follow','cache':_0xcdaea4(0x206),'mode':_0xcdaea4(0x1cc)});try{console[_0xcdaea4(0x28c)](LOG_PREFIX2+_0xcdaea4(0x262));const _0x19c57c=await fetch(_0x29b9a7);console[_0xcdaea4(0x28c)](LOG_PREFIX2+_0xcdaea4(0x26d)+_0x19c57c[_0xcdaea4(0x21d)]+'\x20'+_0x19c57c['statusText']+',\x20type:\x20'+_0x19c57c[_0xcdaea4(0x1b2)]),console[_0xcdaea4(0x28c)](LOG_PREFIX2+_0xcdaea4(0x271)+_0x19c57c[_0xcdaea4(0x284)][_0xcdaea4(0x1f6)]('content-type'));if(_0x19c57c[_0xcdaea4(0x1b2)]===_0xcdaea4(0x1bd))return console[_0xcdaea4(0x28c)](LOG_PREFIX2+_0xcdaea4(0x27f)),log(_0xcdaea4(0x20d),_0xcdaea4(0x19d),_0x5896ba[_0xcdaea4(0x203)]()),null;if(!_0x19c57c['ok'])return console['log'](LOG_PREFIX2+_0xcdaea4(0x183)+_0x19c57c[_0xcdaea4(0x21d)]+_0xcdaea4(0x1cb)),log(_0xcdaea4(0x208),_0xcdaea4(0x2ba)+_0x19c57c[_0xcdaea4(0x21d)]+_0xcdaea4(0x1b8)+_0x5896ba[_0xcdaea4(0x1b6)]),null;if(!isHtmlResponse(_0x19c57c))return console[_0xcdaea4(0x28c)](LOG_PREFIX2+_0xcdaea4(0x261)),null;return console[_0xcdaea4(0x28c)](LOG_PREFIX2+_0xcdaea4(0x2a3)),toSameOriginResponse(_0x19c57c,'GET');}catch(_0x22a573){return console[_0xcdaea4(0x1e3)](LOG_PREFIX2+_0xcdaea4(0x1b7),_0x22a573),log(_0xcdaea4(0x20d),_0xcdaea4(0x219),_0x22a573),null;}}function buildEnhancementUrl(_0x2f9571,_0x114d23){const _0x5e3747=_0x44f1a4;if(!_0x2f9571[_0x5e3747(0x196)])throw new Error(_0x5e3747(0x238));return appendRequestToEnhancementBase(_0x2f9571[_0x5e3747(0x196)],_0x114d23);}function toSameOriginResponse(_0x477c42,_0x4b4128){const _0x486115=_0x44f1a4,_0xa197b1=_0x477c42[_0x486115(0x189)](),_0x5defd0=new Headers(_0xa197b1[_0x486115(0x284)]);_0x5defd0['delete'](_0x486115(0x2b8)),_0x5defd0['delete'](_0x486115(0x1aa)),_0x5defd0['delete'](_0x486115(0x1ca)),_0x5defd0[_0x486115(0x1ef)](_0x486115(0x1dd),_0x486115(0x2bd)),stripCookies(_0x5defd0);const _0x52d2ac=_0x4b4128===_0x486115(0x27d)?null:_0xa197b1[_0x486115(0x211)];return new Response(_0x52d2ac,{'status':_0xa197b1[_0x486115(0x21d)],'statusText':_0xa197b1[_0x486115(0x255)],'headers':_0x5defd0});}function isHtmlResponse(_0x58f85f){const _0xa7265=_0x44f1a4,_0xda53b3=_0x58f85f[_0xa7265(0x284)]['get'](_0xa7265(0x2af));return _0xda53b3!=null&&_0xda53b3[_0xa7265(0x285)](_0xa7265(0x29a));}function isOverlayAsset(_0x1052b9,_0x3eb9e6){const _0x332090=_0x44f1a4;return matchesOverlayAsset(_0x3eb9e6,_0x1052b9[_0x332090(0x1b3)]);}function isRuntimeAsset(_0x2358f1,_0x51d90b){const _0x5b3cc2=_0x44f1a4;return matchesRuntimeAsset(_0x51d90b,_0x2358f1[_0x5b3cc2(0x1d8)]);}function matchesOverlayAsset(_0x4485f0,_0x267665){const _0x24a3da=_0x44f1a4;if(!_0x267665)return![];if(_0x267665[_0x24a3da(0x26e)](_0x24a3da(0x282))||_0x267665[_0x24a3da(0x26e)](_0x24a3da(0x290)))return _0x4485f0[_0x24a3da(0x1da)]===_0x267665;const _0x194ba5=normalizeAssetPathForDocument(_0x267665);if(!_0x194ba5)return![];const _0x5de224=''+_0x4485f0['pathname']+_0x4485f0[_0x24a3da(0x1ec)];if(_0x5de224===_0x194ba5)return!![];if(_0x4485f0['search']===_0x24a3da(0x25e))return _0x4485f0[_0x24a3da(0x1b6)]===_0x194ba5;return![];}function matchesRuntimeAsset(_0x4543d8,_0x46142b){const _0x385360=_0x44f1a4;if(!_0x46142b)return![];if(_0x46142b[_0x385360(0x26e)](_0x385360(0x282))||_0x46142b['startsWith'](_0x385360(0x290)))return _0x4543d8[_0x385360(0x1da)]===_0x46142b;const _0x58cd8c=normalizeAssetPathForDocument(_0x46142b);if(!_0x58cd8c)return![];const _0x2f7023=''+_0x4543d8['pathname']+_0x4543d8[_0x385360(0x1ec)];return _0x2f7023===_0x58cd8c;}function normalizeAssetPathForDocument(_0x3a8c10){const _0x292685=_0x44f1a4;if(!_0x3a8c10)return _0x3a8c10;if(_0x3a8c10[_0x292685(0x26e)](_0x292685(0x282))||_0x3a8c10[_0x292685(0x26e)]('https://'))return _0x3a8c10;const _0x5955e2=_0x3a8c10[_0x292685(0x1d9)](/^\.\//,'');if(_0x5955e2[_0x292685(0x26e)]('/'))return _0x5955e2;return'/'+_0x5955e2;}function stripCookies(_0x466851){const _0x4f255d=_0x44f1a4;_0x466851[_0x4f255d(0x1bc)]('set-cookie'),_0x466851['delete'](_0x4f255d(0x230));}function buildPreviewCsp(_0xd6e302){const _0x3012a0=_0x44f1a4,_0x6ca7e9=[_0x3012a0(0x188),_0x3012a0(0x212),'style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:',_0x3012a0(0x19f),_0x3012a0(0x2b6),'connect-src\x20*','media-src\x20*\x20data:\x20blob:','worker-src\x20\x27self\x27\x20blob:',_0x3012a0(0x1af)],_0xe879e1=extractFrameAncestors(_0xd6e302);return _0xe879e1&&_0x6ca7e9[_0x3012a0(0x1a4)](_0xe879e1),_0x6ca7e9[_0x3012a0(0x24e)](';\x20');}function stripCookies2(_0x3a4d88){const _0x265020=_0x44f1a4;_0x3a4d88[_0x265020(0x1bc)](_0x265020(0x1ea)),_0x3a4d88['delete']('set-cookie2');}function extractFrameAncestors(_0x18fe00){const _0x27e39b=_0x44f1a4;if(!_0x18fe00)return null;const _0x2ca230=_0x18fe00[_0x27e39b(0x222)](/frame-ancestors\s+([^;]+)/i);if(!_0x2ca230)return null;return _0x27e39b(0x2ac)+_0x2ca230[0x1][_0x27e39b(0x1e1)]();}function insertScript(_0x4aff9a,_0x113e75){const _0x38b8f0=_0x44f1a4;if(/<head[^>]*>/i['test'](_0x4aff9a)){const _0xa86353=_0x4aff9a[_0x38b8f0(0x222)](/<head[^>]*>/i);if(_0xa86353){const _0x278b79=_0xa86353[0x0];return _0x4aff9a['replace'](_0x278b79,_0x278b79+'\x0a'+_0x113e75);}}if(/<\/head>/i[_0x38b8f0(0x291)](_0x4aff9a))return _0x4aff9a['replace'](/<\/head>/i,_0x113e75+_0x38b8f0(0x293));if(/<body\b[^>]*>/i[_0x38b8f0(0x291)](_0x4aff9a))return _0x4aff9a[_0x38b8f0(0x1d9)](/<body\b[^>]*>/i,_0x38b8f0(0x1ce)+_0x113e75);if(/<\/body>/i[_0x38b8f0(0x291)](_0x4aff9a))return _0x4aff9a[_0x38b8f0(0x1d9)](/<\/body>/i,_0x113e75+_0x38b8f0(0x236));return _0x113e75+'\x0a'+_0x4aff9a;}var DEFAULT_HMR_PROTOCOLS=[_0x44f1a4(0x1ae)],DEFAULT_HMR_PATH_HINTS=[_0x44f1a4(0x279),_0x44f1a4(0x245),_0x44f1a4(0x22e),_0x44f1a4(0x200),_0x44f1a4(0x1bf),_0x44f1a4(0x1a8),_0x44f1a4(0x1b1),_0x44f1a4(0x240),'/webpack-hot-middleware','/__webpack_hmr',_0x44f1a4(0x277),_0x44f1a4(0x1d1),_0x44f1a4(0x2ae),_0x44f1a4(0x21e),'/snowpack/hmr'];function injectHmrBridge(_0x41f7eb,_0x36cf0a){const _0x38986f=buildHmrBridgeScript(_0x41f7eb);if(!_0x38986f)return _0x36cf0a;return insertScript(_0x36cf0a,_0x38986f);}function buildHmrBridgeScript(_0x3511ba){const _0x48aadd=_0x44f1a4;if(!_0x3511ba[_0x48aadd(0x196)])return null;const _0xcdc632=_0x3511ba[_0x48aadd(0x196)][_0x48aadd(0x203)](),_0x53ef56=toLowerCaseUnique(DEFAULT_HMR_PROTOCOLS),_0x2c5c2b=toLowerCaseUnique(DEFAULT_HMR_PATH_HINTS),_0x1ef5c8=[_0x48aadd(0x1c9),_0x48aadd(0x1c7),_0x48aadd(0x1fa),_0x48aadd(0x232)+JSON[_0x48aadd(0x29d)](_0xcdc632)+');','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;',_0x48aadd(0x220),'\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20}',_0x48aadd(0x190)+JSON['stringify'](_0x53ef56)+');',_0x48aadd(0x1c6)+JSON[_0x48aadd(0x29d)](_0x2c5c2b)+';','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{',_0x48aadd(0x27c),_0x48aadd(0x20b),'\x20\x20\x20\x20};',_0x48aadd(0x2b7),_0x48aadd(0x24f),_0x48aadd(0x259),_0x48aadd(0x1ed),_0x48aadd(0x244),_0x48aadd(0x1f9),_0x48aadd(0x23d),_0x48aadd(0x1f9),_0x48aadd(0x292),'\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;',_0x48aadd(0x1fd),_0x48aadd(0x1de),_0x48aadd(0x2a4),_0x48aadd(0x23c),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{',_0x48aadd(0x22f),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x48aadd(0x1fd),_0x48aadd(0x1c5),_0x48aadd(0x2a1),_0x48aadd(0x209),_0x48aadd(0x22f),_0x48aadd(0x25d),_0x48aadd(0x1fd),_0x48aadd(0x1f4),_0x48aadd(0x1f7),_0x48aadd(0x19b),'\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);',_0x48aadd(0x1ab),_0x48aadd(0x24a),'\x20\x20\x20\x20\x20\x20return\x20proxied;',_0x48aadd(0x1f7),'\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','\x20\x20\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);',_0x48aadd(0x247),_0x48aadd(0x237),_0x48aadd(0x294),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x48aadd(0x20e),_0x48aadd(0x275),_0x48aadd(0x1fd),_0x48aadd(0x20a),_0x48aadd(0x1f7),_0x48aadd(0x289),_0x48aadd(0x1b4),_0x48aadd(0x253),_0x48aadd(0x182),_0x48aadd(0x260),_0x48aadd(0x26b),_0x48aadd(0x29b),_0x48aadd(0x18b),_0x48aadd(0x186),_0x48aadd(0x1b5),_0x48aadd(0x1c8),'\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);',_0x48aadd(0x2a9),_0x48aadd(0x2bf),'</script>'];return _0x1ef5c8[_0x48aadd(0x24e)]('\x0a');}function toLowerCaseUnique(_0x1a4fc6){const _0x53a8da=_0x44f1a4,_0x18ceab=new Set(),_0x2319cb=[];for(const _0x28a2aa of _0x1a4fc6){const _0x25f8c3=_0x28a2aa[_0x53a8da(0x25c)]();if(_0x18ceab[_0x53a8da(0x214)](_0x25f8c3))continue;_0x18ceab[_0x53a8da(0x267)](_0x25f8c3),_0x2319cb['push'](_0x25f8c3);}return _0x2319cb;}var LOG_PREFIX3=_0x44f1a4(0x1db);function injectRuntimeBootstrap(_0x55c75f,_0x507ff6){const _0x190a51=_0x44f1a4;console['log'](LOG_PREFIX3+'\x20injectRuntimeBootstrap()\x20called'),console[_0x190a51(0x28c)](LOG_PREFIX3+'\x20\x20\x20runtimeScriptPath:\x20'+_0x55c75f[_0x190a51(0x1d8)]),console['log'](LOG_PREFIX3+_0x190a51(0x2b4)+_0x55c75f[_0x190a51(0x1b3)]);const _0x4771b8=buildRuntimeBootstrapScript(_0x55c75f);if(!_0x4771b8)return console[_0x190a51(0x28c)](LOG_PREFIX3+_0x190a51(0x23b)),_0x507ff6;console[_0x190a51(0x28c)](LOG_PREFIX3+_0x190a51(0x22b)+_0x4771b8['length']+_0x190a51(0x2aa));const _0x419311=stripExistingRuntimeBootstraps(_0x507ff6,_0x55c75f['runtimeScriptPath']);console[_0x190a51(0x28c)](LOG_PREFIX3+_0x190a51(0x233));const _0x41b5f7=insertScript(_0x419311,_0x4771b8);return console[_0x190a51(0x28c)](LOG_PREFIX3+_0x190a51(0x256)),_0x41b5f7;}function buildRuntimeBootstrapScript(_0x398545){const _0x268a61=_0x44f1a4,_0x12488e=_0x398545[_0x268a61(0x1d8)];if(!_0x12488e)return console[_0x268a61(0x28c)](LOG_PREFIX3+_0x268a61(0x2a6)),null;const _0x5ab698=buildRuntimeBootstrapOptions(_0x398545);console[_0x268a61(0x28c)](LOG_PREFIX3+_0x268a61(0x280),JSON[_0x268a61(0x29d)](_0x5ab698,null,0x2));const _0x6b2dc4=serializeForScript(_0x5ab698),_0x500484=JSON['stringify'](_0x12488e),_0x3c7449=[_0x268a61(0x257),_0x268a61(0x281),_0x268a61(0x1fa),_0x268a61(0x19c)+_0x500484+';',_0x268a61(0x27b),_0x268a61(0x1d3),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);',_0x268a61(0x1ad),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));',_0x268a61(0x265),_0x268a61(0x2a0),_0x268a61(0x243),_0x268a61(0x239),_0x268a61(0x18b),_0x268a61(0x288)+_0x6b2dc4+_0x268a61(0x246),_0x268a61(0x26f)+_0x6b2dc4+');',_0x268a61(0x197),_0x268a61(0x20c),_0x268a61(0x1e2),_0x268a61(0x242),_0x268a61(0x18b),_0x268a61(0x1ba),'\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);',_0x268a61(0x2a9),'})();',_0x268a61(0x268)];return _0x3c7449['join']('\x0a');}function buildRuntimeBootstrapOptions(_0x5b3504){const _0x4b52d7=_0x44f1a4,_0x1b9a11={'callbackBypass':_0x5b3504['callbackBypass'],'__development':{'enableOverlayHmr':_0x5b3504['overlayEnableViteHmr'],'overlayPath':_0x5b3504[_0x4b52d7(0x1b3)],'security':_0x5b3504['securityMode'],'backendUrl':_0x5b3504[_0x4b52d7(0x21f)]}};return _0x1b9a11;}function serializeForScript(_0x21db60){const _0xb0fee5=_0x44f1a4;return JSON[_0xb0fee5(0x29d)](_0x21db60)['replace'](/</g,_0xb0fee5(0x241))['replace'](/>/g,'\x5cu003e');}function stripExistingRuntimeBootstraps(_0x265e4d,_0xc06c18){const _0x201e71=_0x44f1a4,_0x4fa697=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x1d7238=_0x265e4d[_0x201e71(0x1d9)](_0x4fa697,'');if(_0xc06c18){const _0x5d6127=escapeRegExp(_0xc06c18),_0x4f4536=new RegExp(_0x201e71(0x274)+_0x5d6127+_0x201e71(0x192),'gi');_0x1d7238=_0x1d7238[_0x201e71(0x1d9)](_0x4f4536,'');}return _0x1d7238;}function escapeRegExp(_0x27e646){const _0x25d528=_0x44f1a4;return _0x27e646[_0x25d528(0x1d9)](/[-/\\^$*+?.()|[\]{}]/g,'\x5c$&');}function rewriteEntryReferences(_0x2cf86d,_0x5af4de){const _0x592770=_0x44f1a4,_0x599232=_0x143e75=>rewriteScriptTag(_0x2cf86d,_0x143e75),_0x2e3be1=_0x36a3b8=>rewriteLinkTag(_0x2cf86d,_0x36a3b8);return _0x5af4de[_0x592770(0x1d9)](/<script\b[^>]*>/gi,_0x599232)[_0x592770(0x1d9)](/<link\b[^>]*>/gi,_0x2e3be1);}function stripSri(_0x120646){return _0x120646['replace'](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function rewriteScriptTag(_0x39649d,_0x5b5ce1){const _0x184e86=_0x44f1a4,_0xeb3eef=extractAttribute(_0x5b5ce1,'src');if(!_0xeb3eef)return _0x5b5ce1;const _0x34864b=normalizeAssetReference(_0x39649d,_0xeb3eef[_0x184e86(0x2c0)]);if(!_0x34864b||_0x34864b===_0xeb3eef[_0x184e86(0x2c0)])return _0x5b5ce1;const _0x410184=_0xeb3eef[_0x184e86(0x258)][_0x184e86(0x1d9)](_0xeb3eef['value'],_0x34864b);return _0x5b5ce1['replace'](_0xeb3eef[_0x184e86(0x258)],_0x410184);}function rewriteLinkTag(_0x11abba,_0x5d0a46){const _0x9c4062=_0x44f1a4,_0x22fcd2=_0x5d0a46[_0x9c4062(0x222)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x22fcd2)return _0x5d0a46;const _0x3c3782=_0x22fcd2[0x2][_0x9c4062(0x25c)]();if(_0x3c3782!==_0x9c4062(0x27a)&&_0x3c3782!==_0x9c4062(0x2a7))return _0x5d0a46;const _0x33f897=extractAttribute(_0x5d0a46,'href');if(!_0x33f897)return _0x5d0a46;const _0x425dc3=normalizeAssetReference(_0x11abba,_0x33f897[_0x9c4062(0x2c0)]);if(!_0x425dc3||_0x425dc3===_0x33f897['value'])return _0x5d0a46;const _0x2f8e3d=_0x33f897[_0x9c4062(0x258)][_0x9c4062(0x1d9)](_0x33f897['value'],_0x425dc3);return _0x5d0a46['replace'](_0x33f897[_0x9c4062(0x258)],_0x2f8e3d);}function extractAttribute(_0xec837c,_0x1bc27c){const _0x3cd2ed=_0x44f1a4,_0xc422f9=new RegExp(_0x1bc27c+_0x3cd2ed(0x28d),'i'),_0x1e345a=_0xec837c['match'](_0xc422f9);if(!_0x1e345a)return null;return{'full':_0x1e345a[0x0],'value':_0x1e345a[0x2]};}function normalizeAssetReference(_0x2a2493,_0x2e9abd){const _0x27d481=_0x44f1a4,_0xd8859e=parseDocumentUrl(_0x2e9abd);if(!_0xd8859e)return null;if(_0xd8859e['origin']===self[_0x27d481(0x231)][_0x27d481(0x228)])return''+_0xd8859e[_0x27d481(0x1b6)]+_0xd8859e[_0x27d481(0x1ec)];return null;}function parseDocumentUrl(_0x3b5b63){const _0x28172d=_0x44f1a4;try{return new URL(_0x3b5b63,self[_0x28172d(0x231)][_0x28172d(0x228)]);}catch{return null;}}var LOG_PREFIX4=_0x44f1a4(0x1fc);async function rewriteDocument(_0x435499,_0x2d56b3,_0x16aeec,_0x45a93b=!![]){const _0x956627=_0x44f1a4;console[_0x956627(0x28c)](LOG_PREFIX4+_0x956627(0x1ac)),console['log'](LOG_PREFIX4+_0x956627(0x22c)+_0x16aeec),console[_0x956627(0x28c)](LOG_PREFIX4+_0x956627(0x2be)+_0x45a93b),console[_0x956627(0x28c)](LOG_PREFIX4+_0x956627(0x26a)+_0x435499[_0x956627(0x1e4)]);const _0x337b1c=_0x2d56b3['clone'](),_0x5acfe7=await _0x337b1c[_0x956627(0x28f)]();console[_0x956627(0x28c)](LOG_PREFIX4+_0x956627(0x19a)+_0x5acfe7[_0x956627(0x22a)]+_0x956627(0x226)),console['log'](LOG_PREFIX4+_0x956627(0x296));const _0xdaee16=stripSri(_0x5acfe7);console[_0x956627(0x28c)](LOG_PREFIX4+'\x20\x20\x20Rewriting\x20entry\x20references...');let _0x33e94e=rewriteEntryReferences(_0x435499,_0xdaee16);_0x16aeec===_0x956627(0x1d5)?(console[_0x956627(0x28c)](LOG_PREFIX4+_0x956627(0x276)),_0x33e94e=injectHmrBridge(_0x435499,_0x33e94e)):console[_0x956627(0x28c)](LOG_PREFIX4+'\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)');_0x45a93b?(console[_0x956627(0x28c)](LOG_PREFIX4+_0x956627(0x185)),_0x33e94e=injectRuntimeBootstrap(_0x435499,_0x33e94e)):console[_0x956627(0x28c)](LOG_PREFIX4+_0x956627(0x264));console[_0x956627(0x28c)](LOG_PREFIX4+'\x20\x20\x20Rewritten\x20HTML\x20length:\x20'+_0x33e94e[_0x956627(0x22a)]+_0x956627(0x226));const _0x3bced9=new Headers(_0x337b1c['headers']);_0x3bced9[_0x956627(0x1ef)](_0x956627(0x272),_0x956627(0x18d)),_0x3bced9['set'](_0x956627(0x215),'rewritten'),_0x3bced9[_0x956627(0x1ef)](_0x956627(0x269),_0x16aeec),stripCookies2(_0x3bced9);if(_0x435499[_0x956627(0x1e4)]!==_0x956627(0x213)){console['log'](LOG_PREFIX4+'\x20\x20\x20Applying\x20permissive\x20CSP...');const _0x343a21=_0x3bced9['get'](_0x956627(0x234));_0x3bced9[_0x956627(0x1ef)]('content-security-policy',buildPreviewCsp(_0x343a21)),_0x3bced9[_0x956627(0x1bc)](_0x956627(0x1ee)),_0x3bced9[_0x956627(0x1bc)](_0x956627(0x194)),_0x3bced9['delete'](_0x956627(0x223));}else console[_0x956627(0x28c)](LOG_PREFIX4+_0x956627(0x20f));return console[_0x956627(0x28c)](LOG_PREFIX4+'\x20\x20\x20Document\x20rewrite\x20complete'),new Response(_0x33e94e,{'status':_0x337b1c[_0x956627(0x21d)],'statusText':_0x337b1c[_0x956627(0x255)],'headers':_0x3bced9});}var LOG_PREFIX5=_0x44f1a4(0x2a5);console['log'](LOG_PREFIX5+_0x44f1a4(0x273)+new Date()[_0x44f1a4(0x1c3)]());function _0x559f(){const _0xca4c9=['\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20normalizeConfig()\x20called','default-src\x20\x27self\x27\x20blob:\x20data:','clone','\x20\x20\x20Client\x20','\x20\x20\x20\x20}','respondWith','no-store','Enhancement\x20miss\x20','\x20Invalid\x20message\x20data\x20-\x20ignoring','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','url','\x5c1[^>]*>\x5cs*</script>','install','cross-origin-embedder-policy','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','enhancementBase','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','https://api.enhancelabs.ai','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','Enhancement\x20document\x20CORS\x20blocked','1692268yMwlcm','img-src\x20*\x20data:\x20blob:','\x20No\x20enhancementUrl\x20in\x20config','\x20CONFIG\x20message\x20-\x20setting\x20active\x20config','matchAll','\x20Normalized\x20config\x20set','push','\x20\x20\x20HTML\x20response\x20-\x20processing...','\x20Configuration\x20request\x20sent','host','/webpack-dev-server','\x20Fetching\x20all\x20window\x20clients...','access-control-allow-credentials','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20rewriteDocument()\x20called','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','vite-hmr','object-src\x20\x27none\x27','\x20FETCH:\x20','/webpack-hmr','type','overlayPath','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','pathname','\x20\x20\x20Document\x20fetch\x20error:','\x20for\x20','slice','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','3014271wvmFda','delete','opaque','content-length','/sockjs-node','data','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','none','toISOString','null','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','(function(){','\x20\x20}\x20catch\x20(error)\x20{','<script\x20data-enhance-hmr-bridge>','access-control-expose-headers',')\x20-\x20returning\x20null','cors','\x20tryRestoreConfigFromUrl:\x20found\x20enhancementUrl=','$&\x0a','postMessage','method','/parcel-hmr','\x20\x20\x20Production\x20response:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20Enhancement\x20URL:\x20','enhancement','enhancement-document','\x20\x20\x20Fetching\x20from\x20enhancement...','runtimeScriptPath','replace','href','[Enhance\x20SW\x20Bootstrap]','\x20\x20\x20Document\x20rewritten\x20successfully','x-enhance-enhancement','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','x-enhance-routing','trim','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','error','securityMode','125hSUxXf','\x20shouldRouteAsset:\x20','\x20Parsed\x20enhancementUrl:\x20','mode','\x20Time\x20since\x20last\x20request:\x20','set-cookie','\x20handleNavigationRequest:\x20','search','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','cross-origin-opener-policy','set','activate','overlay','\x20Calling\x20skipWaiting()...','/assets/enhance-runtime.js','\x20\x20\x20\x20\x20\x20return\x20false;','119594HGlbPf','get','\x20\x20\x20\x20};','\x20tryRestoreConfigFromUrl:\x20no\x20enhancementUrl\x20in\x20URL','\x20\x20\x20\x20\x20\x20','\x20\x20try\x20{','1742391xUlJHc','[Enhance\x20SW\x20Document]','\x20\x20\x20\x20\x20\x20}','\x20tryRestoreConfigFromUrl:\x20failed\x20to\x20parse\x20enhancementUrl','\x20matches\x20callbackBypass','/__vite_ping','addEventListener','\x20INSTALL\x20event','toString','\x20fetchFromEnhancement:\x20','\x20Requesting\x20configuration\x20from\x20clients...','default','\x20enhancementBase:\x20','debug','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','info','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','enhance:request-config','body','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','custom','has','x-enhance-document','\x20client(s)','clients','\x20Throttled\x20-\x20not\x20requesting','Enhancement\x20document\x20fetch\x20failed','claim','\x20\x20\x20mode:\x20','\x20\x20\x20Enhancement\x20HIT\x20for\x20','status','/__snowpack__','backendUrl','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','match','cross-origin-resource-policy','13296tYmESa','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','\x20chars','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','origin','waitUntil','length','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','\x20\x20\x20source:\x20','object','/vite/client','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','set-cookie2','location','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','content-security-policy','\x20fetchEnhancementDocument:\x20','\x0a</body>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','\x20\x20\x20\x20\x20\x20return;','[Enhance\x20SW\x20Routing]','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','\x20requestConfiguration(force=','11npnrtC','/webpackhotmiddleware','\x5cu003c','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','/__vite/client',',\x20null,\x202));','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','GET','production','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','font','245pVFiVg','\x20Found\x20','join','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','enhancementUrl','Enhancement\x20CORS\x20blocked','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20Rewriting\x20document...','statusText','\x20\x20\x20Script\x20inserted\x20into\x20document','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','full','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','\x20Input\x20config:','fetch','toLowerCase','\x20\x20\x20\x20\x20\x20\x20\x20}','?import','2lEpipb','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','\x20\x20\x20Fetching\x20enhancement\x20document...','\x20\x20\x20Document\x20source:\x20','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20skipWaiting()\x20complete','add','</script>','x-enhance-document-source','\x20\x20\x20securityMode:\x20','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','89912yfuJZa','\x20\x20\x20Response:\x20','startsWith','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','script','\x20\x20\x20Content-Type:\x20','cache-control','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','/_next/webpack-hmr','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','/@vite/client','stylesheet','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','HEAD','\x20Config\x20data:','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','\x20Bootstrap\x20options:','(async\x20()\x20=>\x20{','http://','destination','headers','includes','1494210oeXqvf','include','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','Enhancement\x20fetch\x20failed','[Enhance\x20SW\x20Config]','log','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','now','text','https://','test','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','\x0a</head>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','config','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20\x20\x20Fetching\x20production\x20response...','navigate','enhance:disable','text/html','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','stringify','https://assets.enhancelabs.ai/overlay.js','\x20setActiveConfig()\x20called','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','\x20\x20\x20Enhancement\x20MISS\x20for\x20','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','[Enhance\x20SW]','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','modulepreload','Failed\x20to\x20rewrite\x20document','\x20\x20}','\x20chars)','callbackBypassNormalized','frame-ancestors\x20','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','/__parcel_hmr','content-type','worker',',\x20destination:\x20','map','\x20callbackBypassNormalized:','\x20\x20\x20overlayPath:\x20','searchParams','font-src\x20*\x20data:','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','access-control-allow-origin','\x20clients.claim()\x20complete','Enhancement\x20document\x20miss\x20','enhance:configure','permissive','hit','\x20\x20\x20shouldInjectOverlay:\x20','})();','value','\x20Failed\x20to\x20parse\x20enhancementUrl\x20\x22','endsWith','\x20\x20\x20\x20try\x20{','\x20\x20\x20Not\x20OK\x20(','callbackBypass','\x20\x20\x20Injecting\x20runtime\x20bootstrap...'];_0x559f=function(){return _0xca4c9;};return _0x559f();}function tryRestoreConfigFromUrl(_0x1214fd){const _0x12227b=_0x44f1a4,_0x477aa7=_0x1214fd[_0x12227b(0x2b5)][_0x12227b(0x1f6)](_0x12227b(0x251));if(!_0x477aa7)return console[_0x12227b(0x28c)](LOG_PREFIX5+_0x12227b(0x1f8)),null;console['log'](LOG_PREFIX5+_0x12227b(0x1cd)+_0x477aa7);let _0x16ae54=null;try{_0x16ae54=new URL(_0x477aa7);}catch(_0x1837ca){return console['error'](LOG_PREFIX5+_0x12227b(0x1fe),_0x1837ca),null;}const _0x19e537={'enhancementUrl':_0x477aa7,'callbackBypass':[],'overlayPath':_0x12227b(0x29e),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x12227b(0x1f3),'swPath':'/sw-enhance.js','securityMode':_0x12227b(0x2bc),'backendUrl':_0x12227b(0x198)},_0x3ab335=setActiveConfig(_0x19e537);return _0x3ab335;}self['addEventListener'](_0x44f1a4(0x193),_0xcb9d3=>{const _0x1ef284=_0x44f1a4;console[_0x1ef284(0x28c)](LOG_PREFIX5+_0x1ef284(0x202)),_0xcb9d3['waitUntil'](((async()=>{const _0x44be8f=_0x1ef284;console[_0x44be8f(0x28c)](LOG_PREFIX5+_0x44be8f(0x1f2)),await self['skipWaiting'](),console['log'](LOG_PREFIX5+_0x44be8f(0x266));})()));}),self[_0x44f1a4(0x201)](_0x44f1a4(0x1f0),_0x2943f5=>{const _0x52ddd4=_0x44f1a4;console[_0x52ddd4(0x28c)](LOG_PREFIX5+'\x20ACTIVATE\x20event'),_0x2943f5[_0x52ddd4(0x229)](((async()=>{const _0x1e580e=_0x52ddd4;console['log'](LOG_PREFIX5+'\x20Calling\x20clients.claim()...'),await self[_0x1e580e(0x217)][_0x1e580e(0x21a)](),console['log'](LOG_PREFIX5+_0x1e580e(0x2b9)),console['log'](LOG_PREFIX5+_0x1e580e(0x205)),await requestConfiguration(),console[_0x1e580e(0x28c)](LOG_PREFIX5+_0x1e580e(0x1a6));})()));}),self[_0x44f1a4(0x201)]('message',_0x2e3ea5=>{const _0xd81ef8=_0x44f1a4,_0x3c9403=_0x2e3ea5[_0xd81ef8(0x1c0)];console[_0xd81ef8(0x28c)](LOG_PREFIX5+'\x20MESSAGE\x20received:',_0x3c9403);if(!_0x3c9403||typeof _0x3c9403!==_0xd81ef8(0x22d)){console[_0xd81ef8(0x28c)](LOG_PREFIX5+_0xd81ef8(0x18f));return;}switch(_0x3c9403[_0xd81ef8(0x1b2)]){case WORKER_MESSAGE_CONFIG:console[_0xd81ef8(0x28c)](LOG_PREFIX5+_0xd81ef8(0x1a1)),console[_0xd81ef8(0x28c)](LOG_PREFIX5+_0xd81ef8(0x27e),JSON[_0xd81ef8(0x29d)](_0x3c9403[_0xd81ef8(0x295)],null,0x2)),setActiveConfig(_0x3c9403[_0xd81ef8(0x295)]),console[_0xd81ef8(0x28c)](LOG_PREFIX5+'\x20Active\x20config\x20set');break;case WORKER_MESSAGE_DISABLE:console[_0xd81ef8(0x28c)](LOG_PREFIX5+'\x20DISABLE\x20message\x20-\x20clearing\x20config'),clearActiveConfig(),console[_0xd81ef8(0x28c)](LOG_PREFIX5+'\x20Config\x20cleared');break;default:console[_0xd81ef8(0x28c)](LOG_PREFIX5+'\x20Unknown\x20message\x20type:\x20'+_0x3c9403[_0xd81ef8(0x1b2)]);break;}}),self[_0x44f1a4(0x201)](_0x44f1a4(0x25b),_0x4cccbf=>{const _0x22b8f7=_0x44f1a4;_0x4cccbf[_0x22b8f7(0x18c)](handleFetch(_0x4cccbf));});async function handleFetch(_0x5f03b9){const _0x27ef70=_0x44f1a4,{request:_0x1a8e70}=_0x5f03b9,_0x10a354=new URL(_0x1a8e70[_0x27ef70(0x191)]),_0x195bd0=_0x1a8e70[_0x27ef70(0x1e8)]===_0x27ef70(0x298),_0x15fa9c=_0x195bd0||_0x10a354[_0x27ef70(0x228)]===self[_0x27ef70(0x231)][_0x27ef70(0x228)];_0x15fa9c&&(console[_0x27ef70(0x28c)](LOG_PREFIX5+_0x27ef70(0x1b0)+_0x1a8e70[_0x27ef70(0x1d0)]+'\x20'+_0x10a354[_0x27ef70(0x1b6)]+_0x10a354[_0x27ef70(0x1ec)]),console[_0x27ef70(0x28c)](LOG_PREFIX5+_0x27ef70(0x21b)+_0x1a8e70['mode']+_0x27ef70(0x2b1)+_0x1a8e70[_0x27ef70(0x283)]));let _0x5750ea=getActiveConfig();if(!_0x5750ea&&_0x195bd0){const _0x48b255=tryRestoreConfigFromUrl(_0x10a354);_0x48b255&&(console[_0x27ef70(0x28c)](LOG_PREFIX5+'\x20\x20\x20Restored\x20config\x20from\x20URL\x20params'),_0x5750ea=_0x48b255);}if(!_0x5750ea)return _0x15fa9c&&console[_0x27ef70(0x28c)](LOG_PREFIX5+'\x20\x20\x20NO\x20CONFIG\x20-\x20requesting\x20config\x20and\x20passing\x20through'),void requestConfiguration(),fetch(_0x1a8e70);_0x15fa9c&&console[_0x27ef70(0x28c)](LOG_PREFIX5+'\x20\x20\x20Config\x20exists,\x20enhancementUrl:\x20'+(_0x5750ea[_0x27ef70(0x251)]||'none'));if(!shouldHandleRequest(_0x1a8e70))return _0x15fa9c&&console[_0x27ef70(0x28c)](LOG_PREFIX5+'\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)'),fetch(_0x1a8e70);if(shouldBypass(_0x5750ea,_0x10a354[_0x27ef70(0x1b6)]))return _0x15fa9c&&console['log'](LOG_PREFIX5+'\x20\x20\x20BYPASS:\x20'+_0x10a354[_0x27ef70(0x1b6)]+_0x27ef70(0x1ff)),fetch(_0x1a8e70);if(_0x195bd0)return console['log'](LOG_PREFIX5+_0x27ef70(0x221)),handleNavigationRequest(_0x1a8e70,_0x5750ea);if(!shouldRouteAsset(_0x5750ea,_0x1a8e70,_0x10a354))return _0x15fa9c&&console[_0x27ef70(0x28c)](LOG_PREFIX5+_0x27ef70(0x250)),fetch(_0x1a8e70);console[_0x27ef70(0x28c)](LOG_PREFIX5+_0x27ef70(0x225)+_0x10a354[_0x27ef70(0x1b6)]);const _0x298b58=await fetchFromEnhancement(_0x5750ea,_0x1a8e70,_0x10a354);if(_0x298b58)return console[_0x27ef70(0x28c)](LOG_PREFIX5+_0x27ef70(0x21c)+_0x10a354[_0x27ef70(0x1b6)]),_0x298b58;return console[_0x27ef70(0x28c)](LOG_PREFIX5+_0x27ef70(0x2a2)+_0x10a354[_0x27ef70(0x1b6)]+'\x20-\x20falling\x20back\x20to\x20production'),fetch(_0x1a8e70);}async function handleNavigationRequest(_0x67ef70,_0x5c36f8){const _0x22cdee=_0x44f1a4,_0x24f1dd=new URL(_0x67ef70[_0x22cdee(0x191)]);console['log'](LOG_PREFIX5+_0x22cdee(0x1eb)+_0x24f1dd[_0x22cdee(0x1b6)]+_0x24f1dd['search']),console['log'](LOG_PREFIX5+_0x22cdee(0x199)+(_0x5c36f8[_0x22cdee(0x251)]||_0x22cdee(0x1c2))),console[_0x22cdee(0x28c)](LOG_PREFIX5+_0x22cdee(0x297));const _0x5607e8=await fetch(_0x67ef70);console[_0x22cdee(0x28c)](LOG_PREFIX5+_0x22cdee(0x1d2)+_0x5607e8[_0x22cdee(0x21d)]+'\x20'+_0x5607e8[_0x22cdee(0x255)]),console['log'](LOG_PREFIX5+'\x20\x20\x20Content-Type:\x20'+_0x5607e8[_0x22cdee(0x284)][_0x22cdee(0x1f6)](_0x22cdee(0x2af)));if(!isHtmlResponse(_0x5607e8))return console[_0x22cdee(0x28c)](LOG_PREFIX5+_0x22cdee(0x195)),_0x5607e8;console[_0x22cdee(0x28c)](LOG_PREFIX5+_0x22cdee(0x1a5));const _0x41f4bf=toSameOriginResponse(_0x5607e8,_0x22cdee(0x248));console['log'](LOG_PREFIX5+_0x22cdee(0x1c1));const _0x5bd128=await fetchEnhancementDocument(_0x5c36f8,_0x67ef70),_0x47d4bf=_0x5bd128?_0x22cdee(0x1d5):_0x22cdee(0x249);console[_0x22cdee(0x28c)](LOG_PREFIX5+_0x22cdee(0x263)+_0x47d4bf);const _0x339607=_0x5bd128??_0x41f4bf,_0x2c4511=_0x47d4bf==='enhancement'||_0x24f1dd[_0x22cdee(0x2b5)][_0x22cdee(0x214)]('overlay')||_0x24f1dd[_0x22cdee(0x2b5)][_0x22cdee(0x214)](_0x22cdee(0x1d5))||_0x24f1dd[_0x22cdee(0x2b5)]['has']('enhancementUrl');console[_0x22cdee(0x28c)](LOG_PREFIX5+'\x20\x20\x20shouldInjectOverlay:\x20'+_0x2c4511),console['log'](LOG_PREFIX5+'\x20\x20\x20\x20\x20-\x20source\x20===\x20enhancement:\x20'+(_0x47d4bf===_0x22cdee(0x1d5))),console[_0x22cdee(0x28c)](LOG_PREFIX5+'\x20\x20\x20\x20\x20-\x20has\x20overlay\x20param:\x20'+_0x24f1dd['searchParams']['has'](_0x22cdee(0x1f1))),console[_0x22cdee(0x28c)](LOG_PREFIX5+'\x20\x20\x20\x20\x20-\x20has\x20enhancement\x20param:\x20'+_0x24f1dd[_0x22cdee(0x2b5)][_0x22cdee(0x214)](_0x22cdee(0x1d5))),console[_0x22cdee(0x28c)](LOG_PREFIX5+'\x20\x20\x20\x20\x20-\x20has\x20enhancementUrl\x20param:\x20'+_0x24f1dd[_0x22cdee(0x2b5)][_0x22cdee(0x214)](_0x22cdee(0x251)));try{console[_0x22cdee(0x28c)](LOG_PREFIX5+_0x22cdee(0x254));const _0x35e81f=await rewriteDocument(_0x5c36f8,_0x339607,_0x47d4bf,_0x2c4511);return console['log'](LOG_PREFIX5+_0x22cdee(0x1dc)),_0x35e81f;}catch(_0x121700){return console[_0x22cdee(0x1e3)](LOG_PREFIX5+_0x22cdee(0x29c),_0x121700),log(_0x22cdee(0x20d),_0x22cdee(0x2a8),_0x121700),_0x339607;}}
@@ -1 +1 @@
1
- var _0x423882=_0x2a22;(function(_0x1c3cf5,_0x197564){var _0x333346=_0x2a22,_0x445bfb=_0x1c3cf5();while(!![]){try{var _0x167fae=parseInt(_0x333346(0x148))/0x1+parseInt(_0x333346(0x152))/0x2+parseInt(_0x333346(0x156))/0x3+-parseInt(_0x333346(0x158))/0x4+parseInt(_0x333346(0x155))/0x5*(parseInt(_0x333346(0x153))/0x6)+parseInt(_0x333346(0x151))/0x7+-parseInt(_0x333346(0x14d))/0x8;if(_0x167fae===_0x197564)break;else _0x445bfb['push'](_0x445bfb['shift']());}catch(_0x5042a1){_0x445bfb['push'](_0x445bfb['shift']());}}}(_0x37d4,0xe5430));import{fileURLToPath}from'url';import{dirname,join}from'path';import{mkdir,copyFile}from'fs/promises';var thisFile=fileURLToPath(import.meta[_0x423882(0x157)]),pluginDir=dirname(thisFile),runtimePath=fileURLToPath(new URL(_0x423882(0x14a),import.meta[_0x423882(0x157)])),swPath=fileURLToPath(new URL(_0x423882(0x14b),import.meta[_0x423882(0x157)]));async function copyAssetsToPublic(_0x34dce7){var _0x76b0f9=_0x423882;const _0x4f7fdb=_0x34dce7['publicDir'];if(!_0x4f7fdb){_0x34dce7[_0x76b0f9(0x154)][_0x76b0f9(0x14f)](_0x76b0f9(0x150));return;}const _0x3fd861=join(_0x4f7fdb,_0x76b0f9(0x147));await mkdir(_0x3fd861,{'recursive':!![]}),await copyFile(runtimePath,join(_0x3fd861,_0x76b0f9(0x159))),await copyFile(swPath,join(_0x4f7fdb,_0x76b0f9(0x14e))),_0x34dce7[_0x76b0f9(0x154)][_0x76b0f9(0x149)]('[enhance-sandbox]\x20Copied\x20runtime\x20and\x20service\x20worker\x20into\x20public/__enhance__');}var enhanceSandboxPlugin=()=>{var _0x2d45e5=_0x423882;let _0x2e00a2=![];return{'name':_0x2d45e5(0x15b),'configResolved'(_0x1d593b){var _0x402dfb=_0x2d45e5;if(_0x2e00a2)return;_0x2e00a2=!![],copyAssetsToPublic(_0x1d593b)[_0x402dfb(0x15a)](_0x34281b=>{var _0x1ac569=_0x402dfb;_0x1d593b[_0x1ac569(0x154)][_0x1ac569(0x14c)]('[enhance-sandbox]\x20Failed\x20to\x20copy\x20assets\x20to\x20public\x20dir:\x20'+_0x34281b['message']);});}};};export{enhanceSandboxPlugin};function _0x2a22(_0x51d307,_0xe811fb){var _0x37d4f1=_0x37d4();return _0x2a22=function(_0x2a22d7,_0x147705){_0x2a22d7=_0x2a22d7-0x147;var _0x2f5eb6=_0x37d4f1[_0x2a22d7];return _0x2f5eb6;},_0x2a22(_0x51d307,_0xe811fb);}function _0x37d4(){var _0x1baa57=['sw-enhance.js','warn','[enhance-sandbox]\x20Vite\x20publicDir\x20is\x20disabled,\x20not\x20copying\x20assets.','12833030kNWfIg','516758WSgznS','209184CHISmz','logger','200fJaThv','2721384CTgDNg','url','1649332xhMMLk','enhance-runtime.js','catch','enhance-sandbox','assets','11876YqtFCz','info','../assets/enhance-runtime.js','../sw-enhance.js','error','24430752Ojlyde'];_0x37d4=function(){return _0x1baa57;};return _0x37d4();}
1
+ var _0x51e567=_0x4740;(function(_0x5bc58a,_0x44ba14){var _0x27f776=_0x4740,_0x2b77ac=_0x5bc58a();while(!![]){try{var _0x146736=parseInt(_0x27f776(0x135))/0x1*(parseInt(_0x27f776(0x13a))/0x2)+-parseInt(_0x27f776(0x131))/0x3+parseInt(_0x27f776(0x132))/0x4*(-parseInt(_0x27f776(0x130))/0x5)+-parseInt(_0x27f776(0x137))/0x6+-parseInt(_0x27f776(0x13d))/0x7+parseInt(_0x27f776(0x140))/0x8+parseInt(_0x27f776(0x13e))/0x9;if(_0x146736===_0x44ba14)break;else _0x2b77ac['push'](_0x2b77ac['shift']());}catch(_0x3d2456){_0x2b77ac['push'](_0x2b77ac['shift']());}}}(_0x1fbe,0xc2aa2));import{fileURLToPath}from'url';import{dirname,join}from'path';function _0x1fbe(){var _0x1272ec=['508548AzpRjS','error','enhance-sandbox','648146drDGig','logger','7378308hjHzNY','../sw-enhance.js','warn','2VZPNYh','sw-enhance.js','enhance-runtime.js','2066120sSIqbq','9470619uWGVdC','[enhance-sandbox]\x20Vite\x20publicDir\x20is\x20disabled,\x20not\x20copying\x20assets.','6220456BSoxJf','[enhance-sandbox]\x20Copied\x20runtime\x20and\x20service\x20worker\x20into\x20public/__enhance__','catch','url','info','publicDir','5Feclpw','85899KHFQXo'];_0x1fbe=function(){return _0x1272ec;};return _0x1fbe();}function _0x4740(_0x523473,_0xc45d94){var _0x1fbe5b=_0x1fbe();return _0x4740=function(_0x4740e9,_0x42f01f){_0x4740e9=_0x4740e9-0x12f;var _0x4bad05=_0x1fbe5b[_0x4740e9];return _0x4bad05;},_0x4740(_0x523473,_0xc45d94);}import{mkdir,copyFile}from'fs/promises';var thisFile=fileURLToPath(import.meta[_0x51e567(0x143)]),pluginDir=dirname(thisFile),runtimePath=fileURLToPath(new URL('../assets/enhance-runtime.js',import.meta[_0x51e567(0x143)])),swPath=fileURLToPath(new URL(_0x51e567(0x138),import.meta[_0x51e567(0x143)]));async function copyAssetsToPublic(_0xd460c2){var _0x2d2107=_0x51e567;const _0x4a08f0=_0xd460c2[_0x2d2107(0x12f)];if(!_0x4a08f0){_0xd460c2[_0x2d2107(0x136)][_0x2d2107(0x139)](_0x2d2107(0x13f));return;}const _0x29f83a=join(_0x4a08f0,'assets');await mkdir(_0x29f83a,{'recursive':!![]}),await copyFile(runtimePath,join(_0x29f83a,_0x2d2107(0x13c))),await copyFile(swPath,join(_0x4a08f0,_0x2d2107(0x13b))),_0xd460c2[_0x2d2107(0x136)][_0x2d2107(0x144)](_0x2d2107(0x141));}var enhanceSandboxPlugin=()=>{var _0x11fda3=_0x51e567;let _0x3ca431=![];return{'name':_0x11fda3(0x134),'configResolved'(_0x16ba52){var _0x5cf4b2=_0x11fda3;if(_0x3ca431)return;_0x3ca431=!![],copyAssetsToPublic(_0x16ba52)[_0x5cf4b2(0x142)](_0x13d426=>{var _0x232364=_0x5cf4b2;_0x16ba52['logger'][_0x232364(0x133)]('[enhance-sandbox]\x20Failed\x20to\x20copy\x20assets\x20to\x20public\x20dir:\x20'+_0x13d426['message']);});}};};export{enhanceSandboxPlugin};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enhance-eng/sandbox",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "Enhance preview bootstrap and tooling package.",
5
5
  "license": "MIT",
6
6
  "type": "module",