@enhance-eng/sandbox 0.3.17 → 0.3.19
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.
- package/dist/assets/enhance-runtime.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +28 -0
- package/dist/index.js +1 -1
- package/dist/postinstall.js +1 -1
- package/dist/sw-enhance.js +1 -1
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
const _0x52b329=_0x3d9a;(function(_0x160bb9,_0x45a1c0){const _0x4e96d7=_0x3d9a,_0x4cc1f0=_0x160bb9();while(!![]){try{const _0x12bfb1=parseInt(_0x4e96d7(0x27d))/0x1+parseInt(_0x4e96d7(0x29f))/0x2*(parseInt(_0x4e96d7(0x2c4))/0x3)+-parseInt(_0x4e96d7(0x1f0))/0x4*(parseInt(_0x4e96d7(0x1f2))/0x5)+parseInt(_0x4e96d7(0x255))/0x6+parseInt(_0x4e96d7(0x281))/0x7*(-parseInt(_0x4e96d7(0x2ae))/0x8)+-parseInt(_0x4e96d7(0x2b6))/0x9+parseInt(_0x4e96d7(0x2a7))/0xa;if(_0x12bfb1===_0x45a1c0)break;else _0x4cc1f0['push'](_0x4cc1f0['shift']());}catch(_0x2ebdd4){_0x4cc1f0['push'](_0x4cc1f0['shift']());}}}(_0xd4e2,0x4b38d));var DEFAULT_OVERLAY_PATH=!![]?_0x52b329(0x275):_0x52b329(0x275),DEFAULT_BACKEND_URL=!![]?_0x52b329(0x247):_0x52b329(0x247),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x52b329(0x26d)](_0x52b329(0x28e),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x19c20c){const _0x51479f=_0x52b329,_0x39a1d=_0x19c20c[_0x51479f(0x231)]??{};return{'callbackBypass':_0x19c20c[_0x51479f(0x244)],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x39a1d[_0x51479f(0x213)]??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x51479f(0x287),'overlayPath':_0x39a1d[_0x51479f(0x25b)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x51479f(0x21c),'security':_0x39a1d[_0x51479f(0x25c)]??_0x51479f(0x1ef),'backendUrl':_0x39a1d[_0x51479f(0x217)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x3ec998=_0x52b329;try{const _0x8b55f7=new URLSearchParams(window['location']['search']);return _0x8b55f7[_0x3ec998(0x2c5)](_0x3ec998(0x1f7))?.[_0x3ec998(0x23b)]()||'';}catch{return'';}}var LOG_PREFIX=_0x52b329(0x2b5),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x18f473){const _0x14a811=_0x52b329;console[_0x14a811(0x26d)](LOG_PREFIX+_0x14a811(0x23f)),console[_0x14a811(0x26d)](LOG_PREFIX+_0x14a811(0x229)+_0x18f473[_0x14a811(0x25b)]),console[_0x14a811(0x26d)](LOG_PREFIX+_0x14a811(0x271)+_0x18f473['enableViteHmr']),currentOptions=_0x18f473[_0x14a811(0x2c6)],toggleHandler=_0x18f473[_0x14a811(0x221)];if(overlayController){console[_0x14a811(0x26d)](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x14a811(0x26d)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x14a811(0x26d)](LOG_PREFIX+_0x14a811(0x20f)),overlayLoadPromise=doLoadOverlay(_0x18f473);try{await overlayLoadPromise,console[_0x14a811(0x26d)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x4520f6){console[_0x14a811(0x219)](LOG_PREFIX+_0x14a811(0x2ad),_0x4520f6);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x274a04){const _0x13d52f=_0x52b329;console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x299));if(typeof window===_0x13d52f(0x20c)){console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x208));return;}if(window[_0x13d52f(0x27c)]){console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x269)),overlayController=window['__enhanceOverlay'],updateOverlay();return;}console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x27a));try{_0x274a04[_0x13d52f(0x22f)]&&(console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x218)),await setupRemoteHMR(_0x274a04['overlayPath']));console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x1fd)+_0x274a04[_0x13d52f(0x25b)]);const _0x4b6cba=Date[_0x13d52f(0x214)](),_0x1b5cc1=await import(_0x274a04['overlayPath']);console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x20b)+(Date[_0x13d52f(0x214)]()-_0x4b6cba)+'ms'),console['log'](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x13d52f(0x29b)](_0x1b5cc1));if(typeof _0x1b5cc1?.[_0x13d52f(0x25e)]!==_0x13d52f(0x26a)){console['error'](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console['error'](LOG_PREFIX+_0x13d52f(0x1f9),Object[_0x13d52f(0x29b)](_0x1b5cc1));return;}console['log'](LOG_PREFIX+_0x13d52f(0x238));const _0x52e4f9=_0x1b5cc1[_0x13d52f(0x25e)]();console[_0x13d52f(0x26d)](LOG_PREFIX+'\x20Controller\x20created:',_0x52e4f9),overlayController=_0x52e4f9,window[_0x13d52f(0x27c)]=_0x52e4f9,_0x52e4f9[_0x13d52f(0x221)](_0x274a04[_0x13d52f(0x221)]),console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x237)),console['log'](LOG_PREFIX+_0x13d52f(0x24d)),updateOverlay();}catch(_0x583d28){console[_0x13d52f(0x219)](LOG_PREFIX+_0x13d52f(0x248),_0x583d28);}}function updateOverlay(){const _0x2fb2ab=_0x52b329;console[_0x2fb2ab(0x26d)](LOG_PREFIX+_0x2fb2ab(0x20d)),console[_0x2fb2ab(0x26d)](LOG_PREFIX+_0x2fb2ab(0x2c3)+!!overlayController),console[_0x2fb2ab(0x26d)](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console[_0x2fb2ab(0x26d)](LOG_PREFIX+_0x2fb2ab(0x2bd));return;}const _0xfeb8cb=composeOverlayState(currentOptions);console[_0x2fb2ab(0x26d)](LOG_PREFIX+_0x2fb2ab(0x285),JSON['stringify'](_0xfeb8cb,null,0x2)),overlayController['update'](_0xfeb8cb),console[_0x2fb2ab(0x26d)](LOG_PREFIX+_0x2fb2ab(0x249));}function composeOverlayState(_0x1627e1){const _0x175492=_0x52b329,_0x27e8f9=getEnhancementUrl();return console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementUrl:\x20'+_0x27e8f9),console['log'](LOG_PREFIX+_0x175492(0x2b9)+state['enabled']),console[_0x175492(0x26d)](LOG_PREFIX+_0x175492(0x2b4)+state[_0x175492(0x26b)]),{'enhancementUrl':_0x27e8f9,'enabled':state[_0x175492(0x2c7)],'controlled':state[_0x175492(0x26b)],'overlayPosition':_0x1627e1[_0x175492(0x2bc)][_0x175492(0x253)],'securityMode':_0x1627e1[_0x175492(0x25c)],'backendBaseUrl':_0x1627e1[_0x175492(0x217)],'appError':state[_0x175492(0x267)]};}async function setupRemoteHMR(_0x5a4a4f){const _0x23b7cc=_0x52b329;console[_0x23b7cc(0x26d)](LOG_PREFIX+_0x23b7cc(0x2a9)+_0x5a4a4f);if(typeof window===_0x23b7cc(0x20c))return;try{const _0x418ec8=new URL(_0x5a4a4f,window[_0x23b7cc(0x27f)][_0x23b7cc(0x234)]),_0x4783a8=_0x418ec8[_0x23b7cc(0x234)];console[_0x23b7cc(0x26d)](LOG_PREFIX+_0x23b7cc(0x26f)+_0x4783a8+',\x20page\x20origin:\x20'+window[_0x23b7cc(0x27f)][_0x23b7cc(0x234)]);if(_0x4783a8===window[_0x23b7cc(0x27f)][_0x23b7cc(0x234)]){console[_0x23b7cc(0x26d)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x23b7cc(0x26d)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x4783a8),await ensureViteClient(_0x4783a8),console[_0x23b7cc(0x26d)](LOG_PREFIX+_0x23b7cc(0x1fc));}catch(_0xf4a780){console[_0x23b7cc(0x261)](LOG_PREFIX+_0x23b7cc(0x26c),_0xf4a780);}}async function ensureReactRefreshPreamble(_0x381d73){const _0x2a80c0=_0x52b329;window['__enhanceReactRefreshInstalledOrigins']??(window['__enhanceReactRefreshInstalledOrigins']=new Set());if(window[_0x2a80c0(0x2ab)][_0x2a80c0(0x202)](_0x381d73)){console['log'](LOG_PREFIX+_0x2a80c0(0x23d)+_0x381d73);return;}console[_0x2a80c0(0x26d)](LOG_PREFIX+_0x2a80c0(0x264)+_0x381d73+_0x2a80c0(0x216));const _0x626136=await import(_0x381d73+_0x2a80c0(0x210)),_0x5f3f60=_0x626136&&typeof _0x626136===_0x2a80c0(0x24c)&&'default'in _0x626136?_0x626136[_0x2a80c0(0x258)]:_0x626136;if(!isRefreshRuntime(_0x5f3f60)){console[_0x2a80c0(0x261)](LOG_PREFIX+_0x2a80c0(0x203));return;}_0x5f3f60['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window['$RefreshSig$']=()=>_0x159ae8=>_0x159ae8,window[_0x2a80c0(0x21a)]=!![],window[_0x2a80c0(0x2ab)][_0x2a80c0(0x282)](_0x381d73),console['log'](LOG_PREFIX+_0x2a80c0(0x200)+_0x381d73);}async function ensureViteClient(_0x47649a){const _0x1b0a3c=_0x52b329;window[_0x1b0a3c(0x2b2)]??(window[_0x1b0a3c(0x2b2)]=new Set());if(window[_0x1b0a3c(0x2b2)][_0x1b0a3c(0x202)](_0x47649a)){console[_0x1b0a3c(0x26d)](LOG_PREFIX+_0x1b0a3c(0x205)+_0x47649a);return;}console['log'](LOG_PREFIX+_0x1b0a3c(0x22c)+_0x47649a+'...'),await import(_0x47649a+_0x1b0a3c(0x29e)),window[_0x1b0a3c(0x2b2)]['add'](_0x47649a),console[_0x1b0a3c(0x26d)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x47649a);}function _0x3d9a(_0x59b5b0,_0x352546){const _0xd4e25d=_0xd4e2();return _0x3d9a=function(_0x3d9a9f,_0x3207c6){_0x3d9a9f=_0x3d9a9f-0x1ef;let _0x5ce7d8=_0xd4e25d[_0x3d9a9f];return _0x5ce7d8;},_0x3d9a(_0x59b5b0,_0x352546);}function isRefreshRuntime(_0x1c9c37){const _0x2da66f=_0x52b329;return typeof _0x1c9c37==='object'&&_0x1c9c37!==null&&'injectIntoGlobalHook'in _0x1c9c37&&typeof _0x1c9c37[_0x2da66f(0x22e)]===_0x2da66f(0x26a);}var WORKER_MESSAGE_CONFIG=_0x52b329(0x26e),WORKER_MESSAGE_DISABLE=_0x52b329(0x1f4),LOG_PREFIX2=_0x52b329(0x235),registration=null,currentOptions2=null;async function registerServiceWorker(_0x387b7e){const _0x53db08=_0x52b329;console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x1f6)),console[_0x53db08(0x26d)](LOG_PREFIX2+'\x20swPath:\x20'+_0x387b7e['swPath']);if(!(_0x53db08(0x278)in navigator)){console[_0x53db08(0x261)](LOG_PREFIX2+_0x53db08(0x294));return;}console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x2ca));const _0x408d5d=navigator[_0x53db08(0x278)]['controller'];console['log'](LOG_PREFIX2+_0x53db08(0x245),_0x408d5d?.['scriptURL']??'none'),console['log'](LOG_PREFIX2+_0x53db08(0x256),_0x408d5d?.['state']??_0x53db08(0x211));const _0x486c69=!!_0x408d5d;currentOptions2=_0x387b7e,console[_0x53db08(0x26d)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x334f11=await detectBlockingServiceWorker(_0x387b7e[_0x53db08(0x251)]);if(_0x334f11){console[_0x53db08(0x219)](LOG_PREFIX2+_0x53db08(0x207)+_0x334f11),console[_0x53db08(0x219)](LOG_PREFIX2+_0x53db08(0x25d));return;}console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x25a));try{console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x22a)+_0x387b7e['swPath']+_0x53db08(0x295)),registration=await navigator[_0x53db08(0x278)][_0x53db08(0x284)](_0x387b7e['swPath'],{'scope':'/'}),console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x28c),{'scope':registration[_0x53db08(0x293)],'active':registration[_0x53db08(0x22d)]?.[_0x53db08(0x29d)],'waiting':registration['waiting']?.[_0x53db08(0x29d)],'installing':registration[_0x53db08(0x2ac)]?.['scriptURL']}),console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x20a));const _0x105054=await navigator[_0x53db08(0x278)][_0x53db08(0x268)];console[_0x53db08(0x26d)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x105054[_0x53db08(0x22d)]?.['scriptURL']);const _0x48362f=ownsCurrentController(_0x387b7e[_0x53db08(0x251)]);state[_0x53db08(0x26b)]=_0x48362f,console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x232)+_0x48362f),console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x21f),navigator[_0x53db08(0x278)]['controller']?.[_0x53db08(0x29d)]??_0x53db08(0x2b7));if(!_0x486c69&&!navigator[_0x53db08(0x278)][_0x53db08(0x254)]){console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x215)),window[_0x53db08(0x27f)]['reload']();return;}console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x2af)),await sendConfiguration();if(state['enabled']){const _0xe0811c=document[_0x53db08(0x250)]('[data-enhance-runtime-bootstrap]')!==null;console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x252)+_0xe0811c);if(!_0xe0811c){console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x286)),window['location'][_0x53db08(0x2a2)]();return;}}console[_0x53db08(0x26d)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x28f));}catch(_0x2f0cc8){console[_0x53db08(0x219)](LOG_PREFIX2+_0x53db08(0x220),_0x2f0cc8);}}async function sendConfiguration(){const _0x3cb86b=_0x52b329;console[_0x3cb86b(0x26d)](LOG_PREFIX2+_0x3cb86b(0x224)),console[_0x3cb86b(0x26d)](LOG_PREFIX2+_0x3cb86b(0x23e)+state[_0x3cb86b(0x2c7)]+_0x3cb86b(0x209)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x3cb86b(0x26d)](LOG_PREFIX2+_0x3cb86b(0x241));return;}const _0x549f40=await resolveWorker();if(!_0x549f40){console[_0x3cb86b(0x261)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x288ae1={'callbackBypass':currentOptions2[_0x3cb86b(0x244)],'securityMode':currentOptions2[_0x3cb86b(0x25c)]};console[_0x3cb86b(0x26d)](LOG_PREFIX2+_0x3cb86b(0x263),JSON[_0x3cb86b(0x2a6)](_0x288ae1,null,0x2)),_0x549f40[_0x3cb86b(0x23c)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x288ae1}),console[_0x3cb86b(0x26d)](LOG_PREFIX2+_0x3cb86b(0x2a5));}async function unregisterServiceWorker(_0x2d6d31){const _0x5c0ab6=_0x52b329;console['log'](LOG_PREFIX2+_0x5c0ab6(0x233));if(!('serviceWorker'in navigator)){console[_0x5c0ab6(0x26d)](LOG_PREFIX2+_0x5c0ab6(0x2c1));return;}try{const _0x12da63=registration??await navigator[_0x5c0ab6(0x278)][_0x5c0ab6(0x291)]('/');if(!_0x12da63){console[_0x5c0ab6(0x26d)](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0x5c0ab6(0x26d)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x12da63[_0x5c0ab6(0x293)],'active':_0x12da63[_0x5c0ab6(0x22d)]?.[_0x5c0ab6(0x29d)],'waiting':_0x12da63[_0x5c0ab6(0x1fa)]?.[_0x5c0ab6(0x29d)],'installing':_0x12da63[_0x5c0ab6(0x2ac)]?.[_0x5c0ab6(0x29d)]});const _0x455c85=[_0x12da63[_0x5c0ab6(0x22d)]?.['scriptURL'],_0x12da63[_0x5c0ab6(0x1fa)]?.['scriptURL'],_0x12da63[_0x5c0ab6(0x2ac)]?.[_0x5c0ab6(0x29d)]],_0x55be93=_0x455c85[_0x5c0ab6(0x225)](_0x470aa1=>_0x470aa1&&ownsServiceWorker(_0x470aa1,_0x2d6d31));if(!_0x55be93){console[_0x5c0ab6(0x26d)](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x12da63[_0x5c0ab6(0x22d)]&&(console[_0x5c0ab6(0x26d)](LOG_PREFIX2+_0x5c0ab6(0x29c)),_0x12da63[_0x5c0ab6(0x22d)][_0x5c0ab6(0x23c)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x5c0ab6(0x26d)](LOG_PREFIX2+_0x5c0ab6(0x1f8)),await _0x12da63[_0x5c0ab6(0x28d)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x5c0ab6(0x2b1));}catch(_0x4868f7){console['error'](LOG_PREFIX2+_0x5c0ab6(0x1ff),_0x4868f7);}}function ownsServiceWorker(_0x1a92ba,_0x21df86){const _0x215810=_0x52b329,_0x3b8969=typeof window!=='undefined'?window[_0x215810(0x27f)][_0x215810(0x234)]:'',_0x46041d=new URL(_0x21df86,_0x3b8969||void 0x0)[_0x215810(0x276)],_0x6d1611=_0x1a92ba===_0x46041d||_0x1a92ba['includes']('sw-enhance');return console[_0x215810(0x26d)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x1a92ba+_0x215810(0x2c8)+_0x46041d+',\x20owns='+_0x6d1611),_0x6d1611;}function ownsCurrentController(_0x4b3378){const _0x1aed2c=_0x52b329;if(typeof navigator===_0x1aed2c(0x20c))return![];const _0x4c0b8d=navigator[_0x1aed2c(0x278)]?.[_0x1aed2c(0x254)];if(!_0x4c0b8d)return console[_0x1aed2c(0x26d)](LOG_PREFIX2+_0x1aed2c(0x288)),![];return ownsServiceWorker(_0x4c0b8d[_0x1aed2c(0x29d)],_0x4b3378);}async function detectBlockingServiceWorker(_0x474138){const _0x6ae43c=_0x52b329;if(!navigator[_0x6ae43c(0x278)])return null;try{const _0x52b6b7=await navigator[_0x6ae43c(0x278)][_0x6ae43c(0x291)]('/');console[_0x6ae43c(0x26d)](LOG_PREFIX2+_0x6ae43c(0x24f),_0x52b6b7?.[_0x6ae43c(0x22d)]?.[_0x6ae43c(0x29d)]??_0x6ae43c(0x2b7));const _0xbc6d68=_0x52b6b7?.[_0x6ae43c(0x22d)]?.[_0x6ae43c(0x29d)];if(!_0xbc6d68)return null;if(ownsServiceWorker(_0xbc6d68,_0x474138))return null;return _0xbc6d68;}catch(_0x1d7d63){return console[_0x6ae43c(0x219)](LOG_PREFIX2+_0x6ae43c(0x2b0),_0x1d7d63),null;}}async function resolveWorker(){const _0x1ca273=_0x52b329,_0x3c2e5a=registration??await navigator[_0x1ca273(0x278)]?.[_0x1ca273(0x291)]('/'),_0x2084b3=_0x3c2e5a?.['active']??_0x3c2e5a?.[_0x1ca273(0x1fa)]??_0x3c2e5a?.[_0x1ca273(0x2ac)]??null;return console[_0x1ca273(0x26d)](LOG_PREFIX2+_0x1ca273(0x2a1),_0x2084b3?.[_0x1ca273(0x29d)]??_0x1ca273(0x2b7),_0x1ca273(0x201)+(_0x2084b3?.[_0x1ca273(0x277)]??_0x1ca273(0x211))),_0x2084b3;}var LOG_PREFIX3=_0x52b329(0x27b);function isInitialized(){const _0x4a0cfe=_0x52b329;return typeof window!==_0x4a0cfe(0x20c)&&window[_0x4a0cfe(0x279)]===!![];}function setInitialized(_0x3b4c97){const _0x28da27=_0x52b329;typeof window!==_0x28da27(0x20c)&&(window[_0x28da27(0x279)]=_0x3b4c97);}function getOptions(){const _0x53b824=_0x52b329;return typeof window!=='undefined'?window[_0x53b824(0x21d)]??null:null;}function setOptions(_0x4ddfcb){const _0x4ba4f7=_0x52b329;typeof window!==_0x4ba4f7(0x20c)&&(window[_0x4ba4f7(0x21d)]=_0x4ddfcb);}var Enhance={'init'(_0x22c553){const _0x331f23=_0x52b329,_0x680d12=Date[_0x331f23(0x214)]();console['log'](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x680d12),console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x2a0)+window[_0x331f23(0x27f)][_0x331f23(0x276)]),console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x21b)+document[_0x331f23(0x29a)]),console['log'](LOG_PREFIX3+_0x331f23(0x2c2),JSON[_0x331f23(0x2a6)](_0x22c553,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window[_0x331f23(0x240)]??createController();setInitialized(!![]),console['log'](LOG_PREFIX3+'\x20First\x20initialization');const _0x522f43=normalizeOptions(_0x22c553);setOptions(_0x522f43),console['log'](LOG_PREFIX3+'\x20Normalized\x20options:',JSON['stringify'](_0x522f43,null,0x2));const _0x4d5fb6=parseUrlParams();console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x274),JSON['stringify'](_0x4d5fb6,null,0x2));if(_0x4d5fb6['explicitDisable'])return cleanUrlParam(_0x331f23(0x230)),console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x2ba)),createController();if(_0x4d5fb6[_0x331f23(0x212)])return console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x242)),console[_0x331f23(0x26d)](LOG_PREFIX3+'\x20enhancementUrl:\x20'+_0x4d5fb6[_0x331f23(0x1f7)]),console['log'](LOG_PREFIX3+_0x331f23(0x24b)+_0x4d5fb6[_0x331f23(0x2be)]),state['enabled']=!![],console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x2c0)),void loadOverlay({'overlayPath':_0x522f43['overlayPath'],'enableViteHmr':_0x522f43[_0x331f23(0x2bc)]['enableViteHmr'],'options':_0x522f43,'onToggle':handleToggle}),console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x2c9)),void registerServiceWorker(_0x522f43),console['log'](LOG_PREFIX3+_0x331f23(0x272)),createController();return console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x1f3)),console['log'](LOG_PREFIX3+_0x331f23(0x283)),void unregisterServiceWorker(_0x522f43[_0x331f23(0x251)]),console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x243)),import.meta[_0x331f23(0x2aa)]&&(console[_0x331f23(0x26d)](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta[_0x331f23(0x2aa)]['on']('vite:error',_0x2b1355=>{const _0x38a326=_0x331f23;console[_0x38a326(0x26d)](LOG_PREFIX3+_0x38a326(0x24a),_0x2b1355),state[_0x38a326(0x267)]={'message':_0x2b1355['err'][_0x38a326(0x2bf)]},updateOverlay();}),import.meta['hot']['on'](_0x331f23(0x27e),()=>{const _0x2ed12d=_0x331f23;state[_0x2ed12d(0x267)]&&(console[_0x2ed12d(0x26d)](LOG_PREFIX3+_0x2ed12d(0x228)),state[_0x2ed12d(0x267)]=null,updateOverlay());})),createController();}};function createController(){const _0x4a6645=_0x52b329,_0x91b870={'enable'(){const _0x2668b3=_0x3d9a,_0x5738a9=getOptions();if(!_0x5738a9)return;state[_0x2668b3(0x2c7)]=!![],void loadOverlay({'overlayPath':_0x5738a9[_0x2668b3(0x25b)],'enableViteHmr':_0x5738a9[_0x2668b3(0x2bc)][_0x2668b3(0x22f)],'options':_0x5738a9,'onToggle':handleToggle}),void registerServiceWorker(_0x5738a9),void sendConfiguration(),updateOverlay();},'disable'(){const _0x419b33=_0x3d9a,_0x3f4bcf=getOptions();if(!_0x3f4bcf)return;state[_0x419b33(0x2c7)]=![],state[_0x419b33(0x26b)]=![],updateOverlay(),void unregisterServiceWorker(_0x3f4bcf['swPath']);},'status'(){const _0x541ad5=_0x3d9a;return{'enabled':state['enabled'],'controlled':state[_0x541ad5(0x26b)]};}};return typeof window!=='undefined'&&(window[_0x4a6645(0x240)]=_0x91b870),_0x91b870;}function handleToggle(){const _0x132284=_0x52b329,_0x56fd3d=createController();state[_0x132284(0x2c7)]?_0x56fd3d[_0x132284(0x236)]():_0x56fd3d[_0x132284(0x297)]();}function parseUrlParams(){const _0xef798d=_0x52b329,_0x5f4a51=new URL(window['location'][_0xef798d(0x276)]),_0x1c5454=_0x5f4a51[_0xef798d(0x2a3)]['get'](_0xef798d(0x230))?.[_0xef798d(0x1f5)](),_0x41922d=_0x5f4a51[_0xef798d(0x2a3)][_0xef798d(0x2c5)](_0xef798d(0x1f7)),_0x4e2112=_0x5f4a51['searchParams'][_0xef798d(0x2c5)](_0xef798d(0x265));return{'hasEnhancement':Boolean(_0x41922d||_0x4e2112),'explicitDisable':_0x1c5454==='0'||_0x1c5454===_0xef798d(0x21e)||_0x1c5454===_0xef798d(0x290),'enhancementUrl':_0x41922d,'enhancementId':_0x4e2112};}function cleanUrlParam(_0x5cd0c1){const _0x5a8baf=_0x52b329,_0x99a74d=new URL(window[_0x5a8baf(0x27f)][_0x5a8baf(0x276)]);_0x99a74d[_0x5a8baf(0x2a3)][_0x5a8baf(0x202)](_0x5cd0c1)&&(_0x99a74d[_0x5a8baf(0x2a3)][_0x5a8baf(0x292)](_0x5cd0c1),window[_0x5a8baf(0x2a8)][_0x5a8baf(0x296)](null,document[_0x5a8baf(0x1f1)],_0x99a74d[_0x5a8baf(0x1fe)]()));}var package_default={'name':_0x52b329(0x273),'version':_0x52b329(0x2a4),'type':_0x52b329(0x22b),'description':_0x52b329(0x298),'license':_0x52b329(0x222),'main':_0x52b329(0x226),'module':'./dist/index.js','types':_0x52b329(0x257),'exports':{'.':{'types':_0x52b329(0x257),'import':'./dist/index.js','require':_0x52b329(0x226)},'./vite':{'types':_0x52b329(0x259),'import':_0x52b329(0x2b8)}},'files':['dist',_0x52b329(0x23a),_0x52b329(0x25f)],'bin':{'enhance-sandbox':'bin/enhance-sandbox.js'},'scripts':{'typecheck':_0x52b329(0x246),'dev':_0x52b329(0x28b),'dev:build':_0x52b329(0x262),'dev:staging':_0x52b329(0x223),'dev:staging:build':_0x52b329(0x28a),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x52b329(0x204),'version':_0x52b329(0x2b3)},'dependencies':{'commander':_0x52b329(0x24e),'zod':_0x52b329(0x280)},'devDependencies':{'@types/node':_0x52b329(0x1fb),'javascript-obfuscator':'^4.1.1','tsup':'^8.5.1','vite':_0x52b329(0x227)},'publishConfig':{'access':_0x52b329(0x20e)}},DEFAULT_SERVICE_WORKER_PATH=_0x52b329(0x287),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x52b329(0x260)]===_0x52b329(0x206)?package_default[_0x52b329(0x260)]:'0.0.0';function normalizeAssetPath(_0x48fefb){const _0x478a20=_0x52b329;if(!_0x48fefb)return _0x48fefb;if(_0x48fefb[_0x478a20(0x289)](_0x478a20(0x239))||_0x48fefb[_0x478a20(0x289)](_0x478a20(0x270)))return _0x48fefb;const _0x3f407e=_0x48fefb[_0x478a20(0x266)](/^\.\//,'');return _0x3f407e[_0x478a20(0x289)]('/')?_0x3f407e:'/'+_0x3f407e;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x2c8b1a){const _0x3fbc0b=_0x52b329;return Enhance[_0x3fbc0b(0x2cb)](_0x2c8b1a);},'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 _0x47158e=_0x52b329;return Enhance2[_0x47158e(0x2bb)]();}function _0xd4e2(){const _0x83ef81=['waiting','^24.10.1','\x20HMR\x20setup\x20complete','\x20Importing\x20overlay\x20module\x20from:\x20','toString','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','state:\x20','has','\x20Invalid\x20React\x20Refresh\x20runtime','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Vite\x20client\x20already\x20loaded\x20for\x20','string','\x20BLOCKING\x20SW\x20detected:\x20','\x20No\x20window\x20object\x20-\x20skipping',',\x20currentOptions:\x20','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20Module\x20imported\x20in\x20','undefined','\x20updateOverlay()\x20called','public','\x20Starting\x20fresh\x20overlay\x20load...','/@react-refresh','N/A','hasEnhancement','enableOverlayHmr','now','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','...','backendUrl','\x20Setting\x20up\x20remote\x20HMR...','error','__vite_plugin_react_preamble_installed__','\x20Document\x20readyState:\x20','/assets/enhance-runtime.js','__enhanceOptions','false','\x20Current\x20controller\x20after\x20ready:','\x20Failed\x20to\x20register\x20service\x20worker:','onToggle','MIT','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20sendConfiguration()\x20called','some','./dist/index.cjs','^7.2.4','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20overlayPath:\x20','\x20Registering\x20SW\x20at\x20','module','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','active','injectIntoGlobalHook','enableViteHmr','enhance','__development','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20unregisterServiceWorker()\x20called','origin','[Enhance\x20SW-Client]','disable','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Calling\x20createOverlay()...','http://','bin','trim','postMessage','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20state.enabled:\x20','\x20loadOverlay()\x20called','__enhanceController','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Enhancement\x20mode\x20ENABLED','\x20init()\x20complete\x20-\x20normal\x20mode','callbackBypass','\x20Current\x20controller:','tsc\x20--noEmit','https://api.enhancelabs.ai','\x20Failed\x20to\x20import/create\x20overlay:','\x20Overlay\x20update\x20complete','\x20Vite\x20error\x20detected:','\x20enhancementId:\x20','object','\x20Calling\x20updateOverlay()...','^11.1.0','\x20detectBlocking\x20-\x20existing\x20registration:','querySelector','swPath','\x20Enhancement\x20detection:\x20wasEnhanced=','position','controller','234366uKqdjD','\x20Controller\x20state:','./dist/index.d.ts','default','./dist/vite/index.d.ts','\x20No\x20blocking\x20SW\x20found','overlayPath','security','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','createOverlay','enhance.config.sample.json','version','warn','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','enhancement','replace','appError','ready','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20reusing','function','controlled','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','log','enhance:configure','\x20Overlay\x20origin:\x20','https://','\x20enableViteHmr:\x20','\x20init()\x20complete\x20-\x20enhancement\x20mode','@enhance-eng/sandbox','\x20URL\x20params\x20parsed:','https://assets.enhancelabs.ai/overlay.js','href','state','serviceWorker','__enhanceInitialized','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','[Enhance\x20Runtime]','__enhanceOverlay','143563zrzAKu','vite:beforeUpdate','location','^3.22.4','234647YeQZDH','add','\x20Unregistering\x20any\x20existing\x20SW...','register','\x20Updating\x20overlay\x20with\x20state:','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','/sw-enhance.js','\x20No\x20current\x20controller','startsWith','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20Registration\x20returned:','unregister','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20registerServiceWorker()\x20complete','off','getRegistration','delete','scope','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20with\x20scope\x20\x27/\x27...','replaceState','enable','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','\x20doLoadOverlay()\x20starting...','readyState','keys','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','scriptURL','/@vite/client','371878EyZIXA','\x20Current\x20URL:\x20','\x20resolveWorker:','reload','searchParams','0.3.19','\x20Config\x20sent\x20to\x20SW','stringify','8912480HhCJqY','history','\x20setupRemoteHMR()\x20for\x20','hot','__enhanceReactRefreshInstalledOrigins','installing','\x20loadOverlay()\x20failed:','80zXOnaw','\x20Sending\x20customer\x20configuration...','\x20detectBlocking\x20error:','\x20SW\x20unregistered\x20successfully','__viteHMRLoaded','pnpm\x20version\x20patch\x20--no-git-tag-version','\x20composeOverlayState\x20-\x20state.controlled:\x20','[Enhance\x20Overlay]','4632651jJzHwc','none','./dist/vite/index.js','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','serviceWorkerURL','overlay','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','enhancementId','message','\x20Starting\x20overlay\x20load\x20(async)...','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20Raw\x20options:','\x20overlayController\x20exists:\x20','3Nhqcom','get','options','enabled',',\x20expected=','\x20Starting\x20SW\x20registration\x20(async)...','\x20Service\x20workers\x20supported','init','permissive','388QDWYPM','title','5245IDEnxu','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','enhance:disable','toLowerCase','\x20registerServiceWorker()\x20called','enhancementUrl','\x20Unregistering\x20SW...','\x20Available\x20exports:'];_0xd4e2=function(){return _0x83ef81;};return _0xd4e2();}function runtimeURL(){return Enhance2['runtimeURL']();}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 _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']();
|
|
3
|
+
const _0x4dd8b6=_0x2163;(function(_0x1767de,_0x398ead){const _0x3774a5=_0x2163,_0x4a7c9f=_0x1767de();while(!![]){try{const _0xbb3341=parseInt(_0x3774a5(0x217))/0x1+-parseInt(_0x3774a5(0x1e2))/0x2*(-parseInt(_0x3774a5(0x20f))/0x3)+-parseInt(_0x3774a5(0x1ee))/0x4*(parseInt(_0x3774a5(0x28a))/0x5)+parseInt(_0x3774a5(0x285))/0x6+-parseInt(_0x3774a5(0x267))/0x7*(parseInt(_0x3774a5(0x1ff))/0x8)+parseInt(_0x3774a5(0x264))/0x9+parseInt(_0x3774a5(0x22c))/0xa*(-parseInt(_0x3774a5(0x1de))/0xb);if(_0xbb3341===_0x398ead)break;else _0x4a7c9f['push'](_0x4a7c9f['shift']());}catch(_0x79f4f0){_0x4a7c9f['push'](_0x4a7c9f['shift']());}}}(_0x4232,0x468b5));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x4dd8b6(0x29a)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x4dd8b6(0x1bd),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x4dd8b6(0x29a)?__ENHANCE_DEFAULT_BACKEND_URL__:'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x4dd8b6(0x29a)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x4dd8b6(0x1cf)](_0x4dd8b6(0x1f5),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x11e6be){const _0xa97834=_0x4dd8b6,_0x3e3a01=_0x11e6be[_0xa97834(0x297)]??{};return{'callbackBypass':_0x11e6be['callbackBypass'],'overlay':{'enabled':!![],'position':_0xa97834(0x24f),'enableViteHmr':_0x3e3a01['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0xa97834(0x26e),'swPath':_0xa97834(0x2a1),'overlayPath':_0x3e3a01[_0xa97834(0x278)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0xa97834(0x1dd),'security':_0x3e3a01[_0xa97834(0x2ae)]??_0xa97834(0x20c),'backendUrl':_0x3e3a01[_0xa97834(0x21c)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x1a1a66=_0x4dd8b6;try{const _0x4525a9=new URLSearchParams(window['location']['search']);return _0x4525a9[_0x1a1a66(0x25c)](_0x1a1a66(0x1d9))?.[_0x1a1a66(0x1c5)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x590aa7){const _0x5b2c03=_0x4dd8b6;console[_0x5b2c03(0x1cf)](LOG_PREFIX+_0x5b2c03(0x2aa)),console['log'](LOG_PREFIX+_0x5b2c03(0x2ac)+_0x590aa7[_0x5b2c03(0x278)]),console['log'](LOG_PREFIX+_0x5b2c03(0x24e)+_0x590aa7[_0x5b2c03(0x21b)]),currentOptions=_0x590aa7[_0x5b2c03(0x200)],toggleHandler=_0x590aa7['onToggle'];if(overlayController){console['log'](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x5b2c03(0x1cf)](LOG_PREFIX+_0x5b2c03(0x255)),overlayLoadPromise;console['log'](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x590aa7);try{await overlayLoadPromise,console[_0x5b2c03(0x1cf)](LOG_PREFIX+_0x5b2c03(0x257));}catch(_0x2eceaa){console[_0x5b2c03(0x2a8)](LOG_PREFIX+_0x5b2c03(0x219),_0x2eceaa);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x59bbbe){const _0x56a88a=_0x4dd8b6;console[_0x56a88a(0x1cf)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x56a88a(0x29a)){console[_0x56a88a(0x1cf)](LOG_PREFIX+_0x56a88a(0x1c3));return;}if(window[_0x56a88a(0x276)]){console['log'](LOG_PREFIX+_0x56a88a(0x239)),overlayController=window['__enhanceOverlay'],updateOverlay();return;}console[_0x56a88a(0x1cf)](LOG_PREFIX+_0x56a88a(0x27a));try{_0x59bbbe[_0x56a88a(0x21b)]&&(console['log'](LOG_PREFIX+_0x56a88a(0x266)),await setupRemoteHMR(_0x59bbbe[_0x56a88a(0x278)]));console['log'](LOG_PREFIX+_0x56a88a(0x26d)+_0x59bbbe[_0x56a88a(0x278)]);const _0x2dc25a=Date['now'](),_0x31d50f=await import(_0x59bbbe['overlayPath']);console[_0x56a88a(0x1cf)](LOG_PREFIX+_0x56a88a(0x2b4)+(Date['now']()-_0x2dc25a)+'ms'),console[_0x56a88a(0x1cf)](LOG_PREFIX+'\x20Module\x20exports:',Object['keys'](_0x31d50f));if(typeof _0x31d50f?.[_0x56a88a(0x293)]!=='function'){console[_0x56a88a(0x2a8)](LOG_PREFIX+_0x56a88a(0x265)),console[_0x56a88a(0x2a8)](LOG_PREFIX+_0x56a88a(0x243),Object[_0x56a88a(0x23d)](_0x31d50f));return;}console[_0x56a88a(0x1cf)](LOG_PREFIX+_0x56a88a(0x29c));const _0x570bcf=_0x31d50f[_0x56a88a(0x293)]();console[_0x56a88a(0x1cf)](LOG_PREFIX+'\x20Controller\x20created:',_0x570bcf),overlayController=_0x570bcf,window[_0x56a88a(0x276)]=_0x570bcf,_0x570bcf[_0x56a88a(0x24d)](_0x59bbbe[_0x56a88a(0x24d)]),console['log'](LOG_PREFIX+_0x56a88a(0x272)),console['log'](LOG_PREFIX+_0x56a88a(0x1e5)),updateOverlay();}catch(_0x37e246){console[_0x56a88a(0x2a8)](LOG_PREFIX+_0x56a88a(0x241),_0x37e246);}}function updateOverlay(){const _0x165684=_0x4dd8b6;console[_0x165684(0x1cf)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x165684(0x1cf)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console[_0x165684(0x1cf)](LOG_PREFIX+_0x165684(0x288)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x30c389=composeOverlayState(currentOptions);console[_0x165684(0x1cf)](LOG_PREFIX+_0x165684(0x245),JSON['stringify'](_0x30c389,null,0x2)),overlayController['update'](_0x30c389),console[_0x165684(0x1cf)](LOG_PREFIX+_0x165684(0x1e9));}function composeOverlayState(_0x39d7d3){const _0x3c1456=_0x4dd8b6,_0x537a38=getEnhancementUrl();return console[_0x3c1456(0x1cf)](LOG_PREFIX+_0x3c1456(0x1d6)+_0x537a38),console[_0x3c1456(0x1cf)](LOG_PREFIX+_0x3c1456(0x287)+state[_0x3c1456(0x23a)]),console[_0x3c1456(0x1cf)](LOG_PREFIX+_0x3c1456(0x25a)+state[_0x3c1456(0x22a)]),{'enhancementUrl':_0x537a38,'enabled':state['enabled'],'controlled':state[_0x3c1456(0x22a)],'overlayPosition':_0x39d7d3[_0x3c1456(0x1ef)][_0x3c1456(0x28e)],'securityMode':_0x39d7d3[_0x3c1456(0x2ae)],'backendBaseUrl':_0x39d7d3[_0x3c1456(0x21c)],'appError':state[_0x3c1456(0x27b)]};}async function setupRemoteHMR(_0x197cac){const _0x2ab816=_0x4dd8b6;console[_0x2ab816(0x1cf)](LOG_PREFIX+_0x2ab816(0x2af)+_0x197cac);if(typeof window==='undefined')return;try{const _0x5dc883=new URL(_0x197cac,window['location'][_0x2ab816(0x202)]),_0x25229a=_0x5dc883[_0x2ab816(0x202)];console[_0x2ab816(0x1cf)](LOG_PREFIX+_0x2ab816(0x231)+_0x25229a+_0x2ab816(0x1ba)+window[_0x2ab816(0x29f)][_0x2ab816(0x202)]);if(_0x25229a===window[_0x2ab816(0x29f)][_0x2ab816(0x202)]){console['log'](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x2ab816(0x1cf)](LOG_PREFIX+_0x2ab816(0x269)),await ensureReactRefreshPreamble(_0x25229a),await ensureViteClient(_0x25229a),console[_0x2ab816(0x1cf)](LOG_PREFIX+_0x2ab816(0x1f0));}catch(_0x2f1f9e){console[_0x2ab816(0x1e6)](LOG_PREFIX+_0x2ab816(0x282),_0x2f1f9e);}}async function ensureReactRefreshPreamble(_0x31d977){const _0x15edbc=_0x4dd8b6;window[_0x15edbc(0x20e)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x15edbc(0x208)](_0x31d977)){console['log'](LOG_PREFIX+_0x15edbc(0x27d)+_0x31d977);return;}console[_0x15edbc(0x1cf)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x31d977+_0x15edbc(0x226));const _0xdf1a64=await import(_0x31d977+_0x15edbc(0x242)),_0x1e0ff4=_0xdf1a64&&typeof _0xdf1a64===_0x15edbc(0x1f3)&&'default'in _0xdf1a64?_0xdf1a64[_0x15edbc(0x1d2)]:_0xdf1a64;if(!isRefreshRuntime(_0x1e0ff4)){console[_0x15edbc(0x1e6)](LOG_PREFIX+_0x15edbc(0x228));return;}_0x1e0ff4[_0x15edbc(0x289)](window),window[_0x15edbc(0x1c1)]=()=>{},window[_0x15edbc(0x1ce)]=()=>_0x508ede=>_0x508ede,window[_0x15edbc(0x230)]=!![],window[_0x15edbc(0x20e)][_0x15edbc(0x27e)](_0x31d977),console[_0x15edbc(0x1cf)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x31d977);}async function ensureViteClient(_0x376050){const _0x3a6b97=_0x4dd8b6;window['__viteHMRLoaded']??=new Set();if(window[_0x3a6b97(0x233)][_0x3a6b97(0x208)](_0x376050)){console[_0x3a6b97(0x1cf)](LOG_PREFIX+_0x3a6b97(0x2a5)+_0x376050);return;}console[_0x3a6b97(0x1cf)](LOG_PREFIX+_0x3a6b97(0x253)+_0x376050+_0x3a6b97(0x226)),await import(_0x376050+'/@vite/client'),window[_0x3a6b97(0x233)][_0x3a6b97(0x27e)](_0x376050),console['log'](LOG_PREFIX+_0x3a6b97(0x271)+_0x376050);}function isRefreshRuntime(_0x4cd40d){const _0x104383=_0x4dd8b6;return typeof _0x4cd40d==='object'&&_0x4cd40d!==null&&_0x104383(0x289)in _0x4cd40d&&typeof _0x4cd40d['injectIntoGlobalHook']===_0x104383(0x25e);}var WORKER_MESSAGE_CONFIG=_0x4dd8b6(0x280),WORKER_MESSAGE_DISABLE=_0x4dd8b6(0x1be),LOG_PREFIX2=_0x4dd8b6(0x2a0),registration=null,currentOptions2=null;async function registerServiceWorker(_0x23b076){const _0x396e5d=_0x4dd8b6;console[_0x396e5d(0x1cf)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x1c6)+_0x23b076[_0x396e5d(0x244)]);if(!(_0x396e5d(0x1e3)in navigator)){console[_0x396e5d(0x1e6)](LOG_PREFIX2+_0x396e5d(0x1c8));return;}console['log'](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x49858f=navigator[_0x396e5d(0x1e3)]['controller'];console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x1d4),_0x49858f?.[_0x396e5d(0x29e)]??_0x396e5d(0x283)),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x290),_0x49858f?.[_0x396e5d(0x22e)]??'N/A');const _0x141823=!!_0x49858f;currentOptions2=_0x23b076,console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x22f));const _0x187954=await detectBlockingServiceWorker(_0x23b076['swPath']);if(_0x187954){console[_0x396e5d(0x2a8)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x187954),console[_0x396e5d(0x2a8)](LOG_PREFIX2+_0x396e5d(0x1fc));return;}console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x20d));try{console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x229)+_0x23b076[_0x396e5d(0x244)]+_0x396e5d(0x207)),registration=await navigator[_0x396e5d(0x1e3)][_0x396e5d(0x1f4)](_0x23b076[_0x396e5d(0x244)],{'scope':'/'}),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x1f2),{'scope':registration[_0x396e5d(0x1c9)],'active':registration[_0x396e5d(0x25d)]?.[_0x396e5d(0x29e)],'waiting':registration[_0x396e5d(0x2a3)]?.[_0x396e5d(0x29e)],'installing':registration[_0x396e5d(0x2ad)]?.['scriptURL']}),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x20b));const _0x382379=await navigator[_0x396e5d(0x1e3)]['ready'];console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x246),_0x382379[_0x396e5d(0x25d)]?.[_0x396e5d(0x29e)]);const _0x9df082=ownsCurrentController(_0x23b076[_0x396e5d(0x244)]);state[_0x396e5d(0x22a)]=_0x9df082,console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x270)+_0x9df082),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x235),navigator['serviceWorker'][_0x396e5d(0x284)]?.[_0x396e5d(0x29e)]??_0x396e5d(0x283));if(!_0x141823&&!navigator[_0x396e5d(0x1e3)][_0x396e5d(0x284)]){console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x22b)),window[_0x396e5d(0x29f)][_0x396e5d(0x1f8)]();return;}console['log'](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state['enabled']){const _0x1d0f48=document['querySelector']('[data-enhance-runtime-bootstrap]')!==null;console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x204)+_0x1d0f48);if(!_0x1d0f48){console['log'](LOG_PREFIX2+_0x396e5d(0x213)),window[_0x396e5d(0x29f)][_0x396e5d(0x1f8)]();return;}}console['log'](LOG_PREFIX2+_0x396e5d(0x238)),updateOverlay(),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x1bb));}catch(_0x293e4e){console[_0x396e5d(0x2a8)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x293e4e);}}async function sendConfiguration(){const _0x7551b2=_0x4dd8b6;console[_0x7551b2(0x1cf)](LOG_PREFIX2+_0x7551b2(0x236)),console[_0x7551b2(0x1cf)](LOG_PREFIX2+_0x7551b2(0x250)+state['enabled']+',\x20currentOptions:\x20'+!!currentOptions2);if(!state[_0x7551b2(0x23a)]||!currentOptions2){console[_0x7551b2(0x1cf)](LOG_PREFIX2+_0x7551b2(0x25f));return;}const _0x586c7b=await resolveWorker();if(!_0x586c7b){console[_0x7551b2(0x1e6)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x4a3c9e={'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x7551b2(0x2ae)]};console[_0x7551b2(0x1cf)](LOG_PREFIX2+_0x7551b2(0x1c0),JSON[_0x7551b2(0x248)](_0x4a3c9e,null,0x2)),_0x586c7b[_0x7551b2(0x206)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x4a3c9e}),console[_0x7551b2(0x1cf)](LOG_PREFIX2+_0x7551b2(0x1f9));}async function unregisterServiceWorker(_0x1c948d){const _0x2c1a10=_0x4dd8b6;console[_0x2c1a10(0x1cf)](LOG_PREFIX2+_0x2c1a10(0x2a7));if(!('serviceWorker'in navigator)){console['log'](LOG_PREFIX2+_0x2c1a10(0x27f));return;}try{const _0x5ba461=registration??await navigator[_0x2c1a10(0x1e3)][_0x2c1a10(0x227)]('/');if(!_0x5ba461){console['log'](LOG_PREFIX2+_0x2c1a10(0x1ea));return;}console[_0x2c1a10(0x1cf)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x5ba461[_0x2c1a10(0x1c9)],'active':_0x5ba461['active']?.[_0x2c1a10(0x29e)],'waiting':_0x5ba461[_0x2c1a10(0x2a3)]?.['scriptURL'],'installing':_0x5ba461[_0x2c1a10(0x2ad)]?.['scriptURL']});const _0x5e28ec=[_0x5ba461[_0x2c1a10(0x25d)]?.['scriptURL'],_0x5ba461[_0x2c1a10(0x2a3)]?.['scriptURL'],_0x5ba461[_0x2c1a10(0x2ad)]?.[_0x2c1a10(0x29e)]],_0x33c2ce=_0x5e28ec[_0x2c1a10(0x1db)](_0x5d8616=>_0x5d8616&&ownsServiceWorker(_0x5d8616,_0x1c948d));if(!_0x33c2ce){console['log'](LOG_PREFIX2+_0x2c1a10(0x1c2));return;}_0x5ba461['active']&&(console[_0x2c1a10(0x1cf)](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x5ba461[_0x2c1a10(0x25d)][_0x2c1a10(0x206)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x2c1a10(0x1cf)](LOG_PREFIX2+_0x2c1a10(0x262)),await _0x5ba461['unregister'](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x2c1a10(0x21a));}catch(_0x373b71){console[_0x2c1a10(0x2a8)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x373b71);}}function ownsServiceWorker(_0x13ce69,_0x4538b2){const _0x1b4296=_0x4dd8b6,_0x2d6457=typeof window!=='undefined'?window[_0x1b4296(0x29f)]['origin']:'',_0x36f930=new URL(_0x4538b2,_0x2d6457||void 0x0)[_0x1b4296(0x221)],_0x4cf7ab=_0x13ce69===_0x36f930||_0x13ce69[_0x1b4296(0x2b3)](_0x1b4296(0x26f));return console[_0x1b4296(0x1cf)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x13ce69+_0x1b4296(0x1f6)+_0x36f930+',\x20owns='+_0x4cf7ab),_0x4cf7ab;}function ownsCurrentController(_0xe902a4){const _0x4f153c=_0x4dd8b6;if(typeof navigator===_0x4f153c(0x29a))return![];const _0x260213=navigator['serviceWorker']?.['controller'];if(!_0x260213)return console[_0x4f153c(0x1cf)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x260213[_0x4f153c(0x29e)],_0xe902a4);}async function detectBlockingServiceWorker(_0xe966c3){const _0xb1e0a7=_0x4dd8b6;if(!navigator[_0xb1e0a7(0x1e3)])return null;try{const _0x5868a7=await navigator['serviceWorker'][_0xb1e0a7(0x227)]('/');console[_0xb1e0a7(0x1cf)](LOG_PREFIX2+_0xb1e0a7(0x254),_0x5868a7?.['active']?.[_0xb1e0a7(0x29e)]??_0xb1e0a7(0x283));const _0x2afbc9=_0x5868a7?.['active']?.[_0xb1e0a7(0x29e)];if(!_0x2afbc9)return null;if(ownsServiceWorker(_0x2afbc9,_0xe966c3))return null;return _0x2afbc9;}catch(_0x3bf34b){return console[_0xb1e0a7(0x2a8)](LOG_PREFIX2+_0xb1e0a7(0x216),_0x3bf34b),null;}}async function resolveWorker(){const _0x55d4d2=_0x4dd8b6,_0x44391f=registration??await navigator[_0x55d4d2(0x1e3)]?.[_0x55d4d2(0x227)]('/'),_0x47bb44=_0x44391f?.[_0x55d4d2(0x25d)]??_0x44391f?.['waiting']??_0x44391f?.[_0x55d4d2(0x2ad)]??null;return console['log'](LOG_PREFIX2+_0x55d4d2(0x1ec),_0x47bb44?.[_0x55d4d2(0x29e)]??_0x55d4d2(0x283),'state:\x20'+(_0x47bb44?.['state']??_0x55d4d2(0x29b))),_0x47bb44;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x5c99e6=_0x4dd8b6;return typeof window!=='undefined'&&window[_0x5c99e6(0x20a)]===!![];}function setInitialized(_0x504e66){const _0x5d3455=_0x4dd8b6;typeof window!==_0x5d3455(0x29a)&&(window['__enhanceInitialized']=_0x504e66);}function getOptions(){const _0x54b387=_0x4dd8b6;return typeof window!==_0x54b387(0x29a)?window['__enhanceOptions']??null:null;}function setOptions(_0x489ce3){const _0x32ffae=_0x4dd8b6;typeof window!==_0x32ffae(0x29a)&&(window[_0x32ffae(0x1e8)]=_0x489ce3);}var Enhance={'init'(_0x5be047){const _0x280361=_0x4dd8b6,_0x5a63ea=Date[_0x280361(0x214)]();console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x2b6)+_0x5a63ea),console['log'](LOG_PREFIX3+_0x280361(0x298)+window[_0x280361(0x29f)][_0x280361(0x221)]),console['log'](LOG_PREFIX3+_0x280361(0x28b)+document['readyState']),console[_0x280361(0x1cf)](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x280361(0x248)](_0x5be047,null,0x2));if(isInitialized())return console[_0x280361(0x1e6)](LOG_PREFIX3+_0x280361(0x1bf)),window[_0x280361(0x256)]??createController();setInitialized(!![]),console['log'](LOG_PREFIX3+_0x280361(0x1d1));const _0x508117=normalizeOptions(_0x5be047);setOptions(_0x508117),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x234),JSON[_0x280361(0x248)](_0x508117,null,0x2));const _0x39f971=parseUrlParams();console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x1ed),JSON[_0x280361(0x248)](_0x39f971,null,0x2));if(_0x39f971[_0x280361(0x249)])return cleanUrlParam(_0x280361(0x215)),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x299)),createController();if(_0x39f971[_0x280361(0x240)])return console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x21f)),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x1ca)+_0x39f971['enhancementUrl']),console['log'](LOG_PREFIX3+_0x280361(0x1f1)+_0x39f971[_0x280361(0x1b9)]),state[_0x280361(0x23a)]=!![],console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x291)),void loadOverlay({'overlayPath':_0x508117[_0x280361(0x278)],'enableViteHmr':_0x508117['overlay']['enableViteHmr'],'options':_0x508117,'onToggle':handleToggle}),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x22d)),void registerServiceWorker(_0x508117),console[_0x280361(0x1cf)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x24a)),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x274)),void unregisterServiceWorker(_0x508117[_0x280361(0x244)]),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x275)),import.meta[_0x280361(0x252)]&&(console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x260)),import.meta[_0x280361(0x252)]['on']('vite:error',_0x42618b=>{const _0xd489ba=_0x280361;console[_0xd489ba(0x1cf)](LOG_PREFIX3+_0xd489ba(0x1fb),_0x42618b),state['appError']={'message':_0x42618b['err']['message']},updateOverlay();}),import.meta[_0x280361(0x252)]['on']('vite:beforeUpdate',()=>{const _0x47fef8=_0x280361;state[_0x47fef8(0x27b)]&&(console['log'](LOG_PREFIX3+_0x47fef8(0x1d7)),state[_0x47fef8(0x27b)]=null,updateOverlay());})),createController();}};function createController(){const _0x551d0a=_0x4dd8b6,_0x5a3b9e={'enable'(){const _0x344125=_0x2163,_0x4efd05=getOptions();if(!_0x4efd05)return;state['enabled']=!![],void loadOverlay({'overlayPath':_0x4efd05['overlayPath'],'enableViteHmr':_0x4efd05[_0x344125(0x1ef)][_0x344125(0x21b)],'options':_0x4efd05,'onToggle':handleToggle}),void registerServiceWorker(_0x4efd05),void sendConfiguration(),updateOverlay();},'disable'(){const _0x547175=_0x2163,_0x2b697e=getOptions();if(!_0x2b697e)return;state['enabled']=![],state[_0x547175(0x22a)]=![],updateOverlay(),void unregisterServiceWorker(_0x2b697e['swPath']);},'status'(){return{'enabled':state['enabled'],'controlled':state['controlled']};}};return typeof window!==_0x551d0a(0x29a)&&(window[_0x551d0a(0x256)]=_0x5a3b9e),_0x5a3b9e;}function handleToggle(){const _0x3903da=_0x4dd8b6,_0x2a0ac4=createController();state[_0x3903da(0x23a)]?_0x2a0ac4['disable']():_0x2a0ac4[_0x3903da(0x1e0)]();}function parseUrlParams(){const _0x3b6f76=_0x4dd8b6,_0x569972=new URL(window[_0x3b6f76(0x29f)][_0x3b6f76(0x221)]),_0x3fee33=_0x569972['searchParams']['get']('enhance')?.[_0x3b6f76(0x28f)](),_0x3c223a=_0x569972['searchParams']['get'](_0x3b6f76(0x1d9)),_0x5316c1=_0x569972[_0x3b6f76(0x2ab)][_0x3b6f76(0x25c)](_0x3b6f76(0x1dc));return{'hasEnhancement':Boolean(_0x3c223a||_0x5316c1),'explicitDisable':_0x3fee33==='0'||_0x3fee33===_0x3b6f76(0x1d0)||_0x3fee33===_0x3b6f76(0x247),'enhancementUrl':_0x3c223a,'enhancementId':_0x5316c1};}function cleanUrlParam(_0x2c1be5){const _0x37408c=_0x4dd8b6,_0x4f7038=new URL(window[_0x37408c(0x29f)][_0x37408c(0x221)]);_0x4f7038[_0x37408c(0x2ab)][_0x37408c(0x208)](_0x2c1be5)&&(_0x4f7038['searchParams']['delete'](_0x2c1be5),window[_0x37408c(0x26b)][_0x37408c(0x261)](null,document['title'],_0x4f7038[_0x37408c(0x23c)]()));}var package_default={'name':'@enhance-eng/sandbox','version':_0x4dd8b6(0x1c7),'type':_0x4dd8b6(0x295),'description':_0x4dd8b6(0x1bc),'license':_0x4dd8b6(0x2a9),'main':'./dist/index.cjs','module':'./dist/index.js','types':_0x4dd8b6(0x1cc),'exports':{'.':{'types':_0x4dd8b6(0x1cc),'import':'./dist/index.js','require':_0x4dd8b6(0x211)},'./vite':{'types':_0x4dd8b6(0x286),'import':_0x4dd8b6(0x1c4)}},'files':[_0x4dd8b6(0x1cb),'bin',_0x4dd8b6(0x2b7)],'bin':{'enhance-sandbox':_0x4dd8b6(0x223)},'scripts':{'typecheck':_0x4dd8b6(0x2b5),'dev':_0x4dd8b6(0x222),'dev:build':_0x4dd8b6(0x201),'dev:staging':_0x4dd8b6(0x25b),'dev:staging:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','build':_0x4dd8b6(0x21d),'build:release':_0x4dd8b6(0x225),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':'^11.1.0','zod':_0x4dd8b6(0x294)},'devDependencies':{'@types/node':_0x4dd8b6(0x24c),'javascript-obfuscator':_0x4dd8b6(0x21e),'tsup':_0x4dd8b6(0x2b2),'vite':'^7.2.4'},'publishConfig':{'access':_0x4dd8b6(0x1e7)}},DEFAULT_SERVICE_WORKER_PATH=_0x4dd8b6(0x2a1),DEFAULT_RUNTIME_PATH=_0x4dd8b6(0x1dd),DIST_SERVICE_WORKER_PATH=_0x4dd8b6(0x218),DIST_RUNTIME_PATH=_0x4dd8b6(0x292),PACKAGE_VERSION=typeof package_default[_0x4dd8b6(0x28d)]===_0x4dd8b6(0x251)?package_default[_0x4dd8b6(0x28d)]:_0x4dd8b6(0x259);function normalizeAssetPath(_0x3e62ee){const _0x5c0d54=_0x4dd8b6;if(!_0x3e62ee)return _0x3e62ee;if(_0x3e62ee[_0x5c0d54(0x1cd)]('http://')||_0x3e62ee[_0x5c0d54(0x1cd)](_0x5c0d54(0x23b)))return _0x3e62ee;const _0x131d77=_0x3e62ee[_0x5c0d54(0x296)](/^\.\//,'');return _0x131d77['startsWith']('/')?_0x131d77:'/'+_0x131d77;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x5907f0){const _0x5054f7=_0x4dd8b6;return Enhance[_0x5054f7(0x1e1)](_0x5907f0);},'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 _0x2adc97=_0x4dd8b6;return Enhance2[_0x2adc97(0x1fd)]();}function _0x2163(_0x31cd6,_0x34b831){const _0x42327b=_0x4232();return _0x2163=function(_0x21631b,_0x15cd66){_0x21631b=_0x21631b-0x1b9;let _0x132de2=_0x42327b[_0x21631b];return _0x132de2;},_0x2163(_0x31cd6,_0x34b831);}function runtimeURL(){const _0x4305f2=_0x4dd8b6;return Enhance2[_0x4305f2(0x28c)]();}import{promises as _0x47fd34}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x4dd8b6(0x2a2),import.meta['url'])));async function syncAssets(_0x249c92){const _0x565b6c=_0x4dd8b6,_0x43c236=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x249c92['swFilename']?'./'+_0x249c92[_0x565b6c(0x1d5)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x5b054e=[];for(const _0x1e0c72 of _0x43c236){const _0x4e4dbe=cleanRelativePath(_0x1e0c72['override']??_0x1e0c72[_0x565b6c(0x263)]),_0x6ba4cf=join(distDir,cleanRelativePath(_0x1e0c72['sourcePath'])),_0x42c00d=join(_0x249c92[_0x565b6c(0x1d3)],_0x4e4dbe),[_0x749d47,_0x2b3096]=await Promise[_0x565b6c(0x1fa)]([readDigest(_0x6ba4cf),readDigest(_0x42c00d)]);if(_0x749d47&&_0x2b3096&&_0x749d47===_0x2b3096){_0x5b054e[_0x565b6c(0x258)]({'sourcePath':_0x6ba4cf,'destinationPath':_0x42c00d,'relativeDestination':_0x4e4dbe,'status':'skipped'});continue;}await _0x47fd34[_0x565b6c(0x220)](dirname(_0x42c00d),{'recursive':!![]}),await _0x47fd34[_0x565b6c(0x224)](_0x6ba4cf,_0x42c00d),_0x5b054e[_0x565b6c(0x258)]({'sourcePath':_0x6ba4cf,'destinationPath':_0x42c00d,'relativeDestination':_0x4e4dbe,'status':_0x565b6c(0x29d)});}return _0x5b054e;}function cleanRelativePath(_0x1023fa){const _0x343651=_0x4dd8b6;return _0x1023fa[_0x343651(0x296)](/^[./]+/,'');}function _0x4232(){const _0x1065f0=['update','\x20resolveWorker:','\x20URL\x20params\x20parsed:','308DXnyOr','overlay','\x20HMR\x20setup\x20complete','\x20enhancementId:\x20','\x20Registration\x20returned:','object','register','[Enhance\x20Config]\x20Build-time\x20defaults:',',\x20expected=','--filename\x20<name>','reload','\x20Config\x20sent\x20to\x20SW','all','\x20Vite\x20error\x20detected:','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','serviceWorkerURL','skipped','2719384QZKmIS','options','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','origin','\x20(already\x20current)\x20[','\x20Enhancement\x20detection:\x20wasEnhanced=','parseAsync','postMessage','\x20with\x20scope\x20\x27/\x27...','has','base64','__enhanceInitialized','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','permissive','\x20No\x20blocking\x20SW\x20found','__enhanceReactRefreshInstalledOrigins','403041tJeyok','stdout','./dist/index.cjs','action','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','now','enhance','\x20detectBlocking\x20error:','436671bkkGyu','sw-enhance.js','\x20loadOverlay()\x20failed:','\x20SW\x20unregistered\x20successfully','enableViteHmr','backendUrl','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','^4.1.1','\x20Enhancement\x20mode\x20ENABLED','mkdir','href','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','bin/enhance-sandbox.js','copyFile','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','...','getRegistration','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Registering\x20SW\x20at\x20','controlled','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','9609910PTwmlC','\x20Starting\x20SW\x20registration\x20(async)...','state','\x20Checking\x20for\x20blocking\x20service\x20worker...','__vite_plugin_react_preamble_installed__','\x20Overlay\x20origin:\x20','filename','__viteHMRLoaded','\x20Normalized\x20options:','\x20Current\x20controller\x20after\x20ready:','\x20sendConfiguration()\x20called','--public-dir\x20<path>','\x20Updating\x20overlay...','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20reusing','enabled','https://','toString','keys','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','hasEnhancement','\x20Failed\x20to\x20import/create\x20overlay:','/@react-refresh','\x20Available\x20exports:','swPath','\x20Updating\x20overlay\x20with\x20state:','\x20SW\x20ready!\x20Active:','off','stringify','explicitDisable','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','cwd','^24.10.1','onToggle','\x20enableViteHmr:\x20','bottom-right','\x20state.enabled:\x20','string','hot','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20detectBlocking\x20-\x20existing\x20registration:','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','__enhanceController','\x20loadOverlay()\x20complete','push','0.0.0','\x20composeOverlayState\x20-\x20state.controlled:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','get','active','function','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','replaceState','\x20Unregistering\x20SW...','manifestPath','4114188uvqWwA','\x20Module\x20missing\x20createOverlay\x20export!','\x20Setting\x20up\x20remote\x20HMR...','7pQXNQT','Skipped\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','status','history','enhance-sandbox','\x20Importing\x20overlay\x20module\x20from:\x20','info','sw-enhance','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20Overlay\x20controller\x20initialized\x20and\x20cached','Enhance\x20sandbox\x20utility\x20CLI','\x20Unregistering\x20any\x20existing\x20SW...','\x20init()\x20complete\x20-\x20normal\x20mode','__enhanceOverlay','code','overlayPath','\x20→\x20','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','appError','option','\x20React\x20Refresh\x20already\x20installed\x20for\x20','add','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','enhance:configure','Copied\x20','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','none','controller','2685348KBbpXU','./dist/vite/index.d.ts','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20currentOptions\x20exists:\x20','injectIntoGlobalHook','10035EWluzy','\x20Document\x20readyState:\x20','runtimeURL','version','position','toLowerCase','\x20Controller\x20state:','\x20Starting\x20overlay\x20load\x20(async)...','assets/enhance-runtime.js','createOverlay','^3.22.4','module','replace','__development','\x20Current\x20URL:\x20','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','undefined','N/A','\x20Calling\x20createOverlay()...','copied','scriptURL','location','[Enhance\x20SW-Client]','/sw-enhance.js','../dist/index.js','waiting','ENOENT','\x20Vite\x20client\x20already\x20loaded\x20for\x20','digest','\x20unregisterServiceWorker()\x20called','error','MIT','\x20loadOverlay()\x20called','searchParams','\x20overlayPath:\x20','installing','security','\x20setupRemoteHMR()\x20for\x20','command','write','^8.5.1','includes','\x20Module\x20imported\x20in\x20','tsc\x20--noEmit','\x20init()\x20called\x20at\x20','enhance.config.sample.json','description','enhancementId',',\x20page\x20origin:\x20','\x20registerServiceWorker()\x20complete','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','https://assets.enhancelabs.ai/overlay.js','enhance:disable','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Sending\x20customer\x20config\x20to\x20SW:','$RefreshReg$','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20No\x20window\x20object\x20-\x20skipping','./dist/vite/index.js','trim','\x20swPath:\x20','0.3.19','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','scope','\x20enhancementUrl:\x20','dist','./dist/index.d.ts','startsWith','$RefreshSig$','log','false','\x20First\x20initialization','default','publicDir','\x20Current\x20controller:','swFilename','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','destinationPath','enhancementUrl','name','some','enhancement','/assets/enhance-runtime.js','11UOryiG','prepare-sw','enable','init','6tueqTM','serviceWorker','relativeDestination','\x20Calling\x20updateOverlay()...','warn','public','__enhanceOptions','\x20Overlay\x20update\x20complete','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister'];_0x4232=function(){return _0x1065f0;};return _0x4232();}async function readDigest(_0x42088e){const _0x385d5a=_0x4dd8b6;try{const _0x1949eb=await _0x47fd34['readFile'](_0x42088e);return createHash('sha256')[_0x385d5a(0x1eb)](_0x1949eb)[_0x385d5a(0x2a6)](_0x385d5a(0x209));}catch(_0x54cd45){if(_0x54cd45[_0x385d5a(0x277)]===_0x385d5a(0x2a4))return null;throw _0x54cd45;}}var program=new Command();program[_0x4dd8b6(0x1da)](_0x4dd8b6(0x26c))[_0x4dd8b6(0x2b8)](_0x4dd8b6(0x273))['version'](_0x4dd8b6(0x259)),program['command']('manifest')[_0x4dd8b6(0x2b8)]('Print\x20the\x20current\x20asset\x20manifest')['action'](()=>{const _0x54c6db=_0x4dd8b6,_0x4d898d=getAssetManifest();process[_0x54c6db(0x210)][_0x54c6db(0x2b1)](JSON['stringify'](_0x4d898d,null,0x2)+'\x0a');}),program[_0x4dd8b6(0x2b0)](_0x4dd8b6(0x1df))[_0x4dd8b6(0x2b8)](_0x4dd8b6(0x23e))['requiredOption'](_0x4dd8b6(0x237),'Directory\x20to\x20copy\x20the\x20service\x20worker\x20into')[_0x4dd8b6(0x27c)](_0x4dd8b6(0x1f7),_0x4dd8b6(0x23f))[_0x4dd8b6(0x212)](async _0x142219=>{const _0x243cc0=_0x4dd8b6,_0x3e1f33=resolve(process[_0x243cc0(0x24b)](),_0x142219[_0x243cc0(0x1d3)]),_0x359e49=await syncAssets({'publicDir':_0x3e1f33,'swFilename':_0x142219[_0x243cc0(0x232)]});for(const _0x41522b of _0x359e49){const _0x10541c=relative(process[_0x243cc0(0x24b)](),_0x41522b[_0x243cc0(0x1d8)]);_0x41522b[_0x243cc0(0x26a)]===_0x243cc0(0x1fe)?process[_0x243cc0(0x210)][_0x243cc0(0x2b1)](_0x243cc0(0x268)+_0x41522b[_0x243cc0(0x1e4)]+_0x243cc0(0x203)+_0x10541c+']\x0a'):process[_0x243cc0(0x210)][_0x243cc0(0x2b1)](_0x243cc0(0x281)+_0x41522b[_0x243cc0(0x1e4)]+_0x243cc0(0x279)+_0x10541c+'\x0a');}}),program[_0x4dd8b6(0x205)]();
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
type SecurityMode$1 = "permissive" | "custom";
|
|
2
|
+
|
|
1
3
|
type RawOptions = {
|
|
2
4
|
callbackBypass: string[];
|
|
3
5
|
__development?: {
|
|
@@ -7,6 +9,20 @@ type RawOptions = {
|
|
|
7
9
|
backendUrl?: string;
|
|
8
10
|
};
|
|
9
11
|
};
|
|
12
|
+
type NormalizedOptions = {
|
|
13
|
+
callbackBypass: string[];
|
|
14
|
+
overlay: {
|
|
15
|
+
enabled: true;
|
|
16
|
+
position: 'bottom-right';
|
|
17
|
+
enableViteHmr: boolean;
|
|
18
|
+
};
|
|
19
|
+
logLevel: 'info';
|
|
20
|
+
swPath: '/sw-enhance.js';
|
|
21
|
+
overlayPath: string;
|
|
22
|
+
runtimeScriptPath: '/assets/enhance-runtime.js';
|
|
23
|
+
security: SecurityMode$1;
|
|
24
|
+
backendUrl: string;
|
|
25
|
+
};
|
|
10
26
|
|
|
11
27
|
type OverlayPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
12
28
|
type SecurityMode = 'permissive' | 'custom';
|
|
@@ -17,6 +33,11 @@ interface OverlayState {
|
|
|
17
33
|
overlayPosition: OverlayPosition;
|
|
18
34
|
securityMode: SecurityMode;
|
|
19
35
|
backendBaseUrl?: string;
|
|
36
|
+
appError: {
|
|
37
|
+
message: string;
|
|
38
|
+
} | null;
|
|
39
|
+
/** Debug flag to force "Working" state */
|
|
40
|
+
forceWorking?: boolean;
|
|
20
41
|
}
|
|
21
42
|
interface OverlayController {
|
|
22
43
|
update(state: OverlayState): void;
|
|
@@ -47,6 +68,13 @@ declare global {
|
|
|
47
68
|
}
|
|
48
69
|
}
|
|
49
70
|
|
|
71
|
+
declare global {
|
|
72
|
+
interface Window {
|
|
73
|
+
__enhanceInitialized?: boolean;
|
|
74
|
+
__enhanceOptions?: NormalizedOptions;
|
|
75
|
+
__enhanceController?: EnhanceController;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
50
78
|
/**
|
|
51
79
|
* Main entry point - the only public API.
|
|
52
80
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
const _0x347f13=_0x4baf;(function(_0x1537ef,_0x1f1fd4){const _0x101f52=_0x4baf,_0x363c15=_0x1537ef();while(!![]){try{const _0x36c82b=parseInt(_0x101f52(0x153))/0x1+-parseInt(_0x101f52(0x148))/0x2*(-parseInt(_0x101f52(0x1d4))/0x3)+parseInt(_0x101f52(0x1cd))/0x4+parseInt(_0x101f52(0x185))/0x5+parseInt(_0x101f52(0x1e4))/0x6+parseInt(_0x101f52(0x200))/0x7+-parseInt(_0x101f52(0x143))/0x8;if(_0x36c82b===_0x1f1fd4)break;else _0x363c15['push'](_0x363c15['shift']());}catch(_0x21d01f){_0x363c15['push'](_0x363c15['shift']());}}}(_0x46d3,0x765b8));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x347f13(0x16e)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x347f13(0x1b3),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x347f13(0x16e)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x347f13(0x164),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x347f13(0x16e)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x347f13(0x13f)](_0x347f13(0x1b1),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0xac1b61){const _0x47eba9=_0x347f13,_0x4aa31e=_0xac1b61['__development']??{};return{'callbackBypass':_0xac1b61['callbackBypass'],'overlay':{'enabled':!![],'position':_0x47eba9(0x177),'enableViteHmr':_0x4aa31e[_0x47eba9(0x1f9)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x47eba9(0x1af),'swPath':_0x47eba9(0x1e0),'overlayPath':_0x4aa31e[_0x47eba9(0x201)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x47eba9(0x139),'security':_0x4aa31e[_0x47eba9(0x151)]??_0x47eba9(0x154),'backendUrl':_0x4aa31e[_0x47eba9(0x147)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x39082b=_0x347f13;try{const _0x5d377e=new URLSearchParams(window[_0x39082b(0x138)][_0x39082b(0x171)]);return _0x5d377e[_0x39082b(0x132)](_0x39082b(0x1c4))?.[_0x39082b(0x1f6)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;function _0x4baf(_0x37a3d6,_0x170d85){const _0x46d328=_0x46d3();return _0x4baf=function(_0x4baf45,_0x50b235){_0x4baf45=_0x4baf45-0x12a;let _0x5d9dac=_0x46d328[_0x4baf45];return _0x5d9dac;},_0x4baf(_0x37a3d6,_0x170d85);}async function loadOverlay(_0x5e50fc){const _0x47b39f=_0x347f13;console[_0x47b39f(0x13f)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x47b39f(0x13f)](LOG_PREFIX+_0x47b39f(0x14c)+_0x5e50fc['overlayPath']),console[_0x47b39f(0x13f)](LOG_PREFIX+_0x47b39f(0x17c)+_0x5e50fc['enableViteHmr']),currentOptions=_0x5e50fc['options'],toggleHandler=_0x5e50fc[_0x47b39f(0x188)];if(overlayController){console[_0x47b39f(0x13f)](LOG_PREFIX+_0x47b39f(0x160)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x47b39f(0x13f)](LOG_PREFIX+_0x47b39f(0x196)),overlayLoadPromise;console[_0x47b39f(0x13f)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x5e50fc);try{await overlayLoadPromise,console[_0x47b39f(0x13f)](LOG_PREFIX+_0x47b39f(0x1ff));}catch(_0x5938db){console['error'](LOG_PREFIX+_0x47b39f(0x1ef),_0x5938db);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x1199cd){const _0x43841a=_0x347f13;console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x1c8));if(typeof window===_0x43841a(0x16e)){console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x1d5));return;}if(window[_0x43841a(0x1ac)]){console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x172)),overlayController=window['__enhanceOverlay'],updateOverlay();return;}console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x156));try{_0x1199cd[_0x43841a(0x1dc)]&&(console[_0x43841a(0x13f)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x1199cd[_0x43841a(0x201)]));console[_0x43841a(0x13f)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x1199cd[_0x43841a(0x201)]);const _0x116b8f=Date[_0x43841a(0x14a)](),_0x329d7f=await import(_0x1199cd['overlayPath']);console[_0x43841a(0x13f)](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x43841a(0x14a)]()-_0x116b8f)+'ms'),console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x1c3),Object[_0x43841a(0x14e)](_0x329d7f));if(typeof _0x329d7f?.[_0x43841a(0x1de)]!==_0x43841a(0x13a)){console[_0x43841a(0x152)](LOG_PREFIX+_0x43841a(0x1c7)),console[_0x43841a(0x152)](LOG_PREFIX+_0x43841a(0x187),Object['keys'](_0x329d7f));return;}console['log'](LOG_PREFIX+_0x43841a(0x1b8));const _0x50ae44=_0x329d7f['createOverlay']();console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x137),_0x50ae44),overlayController=_0x50ae44,window[_0x43841a(0x1ac)]=_0x50ae44,_0x50ae44[_0x43841a(0x188)](_0x1199cd[_0x43841a(0x188)]),console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x204)),console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x176)),updateOverlay();}catch(_0x541533){console['error'](LOG_PREFIX+_0x43841a(0x12e),_0x541533);}}function updateOverlay(){const _0x2e6463=_0x347f13;console[_0x2e6463(0x13f)](LOG_PREFIX+_0x2e6463(0x169)),console[_0x2e6463(0x13f)](LOG_PREFIX+_0x2e6463(0x144)+!!overlayController),console['log'](LOG_PREFIX+_0x2e6463(0x1f7)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x2e6463(0x13f)](LOG_PREFIX+_0x2e6463(0x130));return;}const _0xfbb3b1=composeOverlayState(currentOptions);console[_0x2e6463(0x13f)](LOG_PREFIX+_0x2e6463(0x1ec),JSON['stringify'](_0xfbb3b1,null,0x2)),overlayController[_0x2e6463(0x1e6)](_0xfbb3b1),console[_0x2e6463(0x13f)](LOG_PREFIX+_0x2e6463(0x18e));}function composeOverlayState(_0x508553){const _0x1fee4a=_0x347f13,_0x3a012b=getEnhancementUrl();return console[_0x1fee4a(0x13f)](LOG_PREFIX+_0x1fee4a(0x18b)+_0x3a012b),console[_0x1fee4a(0x13f)](LOG_PREFIX+_0x1fee4a(0x134)+state[_0x1fee4a(0x19c)]),console[_0x1fee4a(0x13f)](LOG_PREFIX+_0x1fee4a(0x194)+state[_0x1fee4a(0x1f8)]),{'enhancementUrl':_0x3a012b,'enabled':state[_0x1fee4a(0x19c)],'controlled':state['controlled'],'overlayPosition':_0x508553[_0x1fee4a(0x166)]['position'],'securityMode':_0x508553[_0x1fee4a(0x151)],'backendBaseUrl':_0x508553[_0x1fee4a(0x147)],'appError':state[_0x1fee4a(0x1bf)]};}async function setupRemoteHMR(_0x35f57e){const _0x106815=_0x347f13;console[_0x106815(0x13f)](LOG_PREFIX+_0x106815(0x184)+_0x35f57e);if(typeof window===_0x106815(0x16e))return;try{const _0x123d1b=new URL(_0x35f57e,window[_0x106815(0x138)]['origin']),_0x32335f=_0x123d1b[_0x106815(0x1e8)];console[_0x106815(0x13f)](LOG_PREFIX+_0x106815(0x1cc)+_0x32335f+',\x20page\x20origin:\x20'+window[_0x106815(0x138)][_0x106815(0x1e8)]);if(_0x32335f===window[_0x106815(0x138)][_0x106815(0x1e8)]){console[_0x106815(0x13f)](LOG_PREFIX+_0x106815(0x18f));return;}console[_0x106815(0x13f)](LOG_PREFIX+_0x106815(0x162)),await ensureReactRefreshPreamble(_0x32335f),await ensureViteClient(_0x32335f),console['log'](LOG_PREFIX+_0x106815(0x17f));}catch(_0x5a97fb){console[_0x106815(0x1c2)](LOG_PREFIX+_0x106815(0x1b0),_0x5a97fb);}}async function ensureReactRefreshPreamble(_0x3df957){const _0x28487a=_0x347f13;window[_0x28487a(0x205)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x28487a(0x1d2)](_0x3df957)){console[_0x28487a(0x13f)](LOG_PREFIX+_0x28487a(0x161)+_0x3df957);return;}console[_0x28487a(0x13f)](LOG_PREFIX+_0x28487a(0x1b2)+_0x3df957+_0x28487a(0x1a6));const _0x308e17=await import(_0x3df957+'/@react-refresh'),_0x1b6c0c=_0x308e17&&typeof _0x308e17===_0x28487a(0x1dd)&&_0x28487a(0x17e)in _0x308e17?_0x308e17[_0x28487a(0x17e)]:_0x308e17;if(!isRefreshRuntime(_0x1b6c0c)){console[_0x28487a(0x1c2)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x1b6c0c[_0x28487a(0x142)](window),window[_0x28487a(0x181)]=()=>{},window['$RefreshSig$']=()=>_0x2677bf=>_0x2677bf,window[_0x28487a(0x1ee)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x28487a(0x198)](_0x3df957),console[_0x28487a(0x13f)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x3df957);}async function ensureViteClient(_0x15c3b6){const _0x20ba99=_0x347f13;window[_0x20ba99(0x1d7)]??=new Set();if(window[_0x20ba99(0x1d7)][_0x20ba99(0x1d2)](_0x15c3b6)){console['log'](LOG_PREFIX+_0x20ba99(0x1fa)+_0x15c3b6);return;}console['log'](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x15c3b6+_0x20ba99(0x1a6)),await import(_0x15c3b6+_0x20ba99(0x18d)),window[_0x20ba99(0x1d7)][_0x20ba99(0x198)](_0x15c3b6),console[_0x20ba99(0x13f)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x15c3b6);}function isRefreshRuntime(_0x3944b7){const _0x390823=_0x347f13;return typeof _0x3944b7==='object'&&_0x3944b7!==null&&'injectIntoGlobalHook'in _0x3944b7&&typeof _0x3944b7[_0x390823(0x142)]===_0x390823(0x13a);}var WORKER_MESSAGE_CONFIG=_0x347f13(0x186),WORKER_MESSAGE_DISABLE=_0x347f13(0x1c6),LOG_PREFIX2=_0x347f13(0x174),registration=null,currentOptions2=null;async function registerServiceWorker(_0x1ae75f){const _0x15e7c3=_0x347f13;console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x1f4)),console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x1fd)+_0x1ae75f['swPath']);if(!('serviceWorker'in navigator)){console[_0x15e7c3(0x1c2)](LOG_PREFIX2+_0x15e7c3(0x170));return;}console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x19e));const _0x3fc9e7=navigator[_0x15e7c3(0x15d)][_0x15e7c3(0x165)];console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x1e9),_0x3fc9e7?.[_0x15e7c3(0x150)]??_0x15e7c3(0x189)),console['log'](LOG_PREFIX2+_0x15e7c3(0x1eb),_0x3fc9e7?.[_0x15e7c3(0x1bc)]??_0x15e7c3(0x15f));const _0x8d3ddc=!!_0x3fc9e7;currentOptions2=_0x1ae75f,console['log'](LOG_PREFIX2+_0x15e7c3(0x15a));const _0x6c0cd6=await detectBlockingServiceWorker(_0x1ae75f[_0x15e7c3(0x1a4)]);if(_0x6c0cd6){console[_0x15e7c3(0x152)](LOG_PREFIX2+_0x15e7c3(0x195)+_0x6c0cd6),console[_0x15e7c3(0x152)](LOG_PREFIX2+_0x15e7c3(0x1d6));return;}console['log'](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x190)+_0x1ae75f['swPath']+_0x15e7c3(0x17b)),registration=await navigator[_0x15e7c3(0x15d)][_0x15e7c3(0x155)](_0x1ae75f[_0x15e7c3(0x1a4)],{'scope':'/'}),console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x167),{'scope':registration[_0x15e7c3(0x1be)],'active':registration[_0x15e7c3(0x149)]?.[_0x15e7c3(0x150)],'waiting':registration[_0x15e7c3(0x1a0)]?.[_0x15e7c3(0x150)],'installing':registration['installing']?.[_0x15e7c3(0x150)]}),console['log'](LOG_PREFIX2+_0x15e7c3(0x1f1));const _0x3c5ede=await navigator[_0x15e7c3(0x15d)]['ready'];console['log'](LOG_PREFIX2+_0x15e7c3(0x14d),_0x3c5ede[_0x15e7c3(0x149)]?.[_0x15e7c3(0x150)]);const _0x700d7e=ownsCurrentController(_0x1ae75f[_0x15e7c3(0x1a4)]);state[_0x15e7c3(0x1f8)]=_0x700d7e,console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x136)+_0x700d7e),console['log'](LOG_PREFIX2+_0x15e7c3(0x1cb),navigator[_0x15e7c3(0x15d)][_0x15e7c3(0x165)]?.[_0x15e7c3(0x150)]??_0x15e7c3(0x189));if(!_0x8d3ddc&&!navigator['serviceWorker'][_0x15e7c3(0x165)]){console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x1aa)),window[_0x15e7c3(0x138)]['reload']();return;}console['log'](LOG_PREFIX2+_0x15e7c3(0x12d)),await sendConfiguration();if(state[_0x15e7c3(0x19c)]){const _0x2fa651=document[_0x15e7c3(0x1e2)]('[data-enhance-runtime-bootstrap]')!==null;console['log'](LOG_PREFIX2+_0x15e7c3(0x1f5)+_0x2fa651);if(!_0x2fa651){console['log'](LOG_PREFIX2+_0x15e7c3(0x1c9)),window[_0x15e7c3(0x138)][_0x15e7c3(0x208)]();return;}}console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x197)),updateOverlay(),console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x1fc));}catch(_0x598e41){console[_0x15e7c3(0x152)](LOG_PREFIX2+_0x15e7c3(0x1b7),_0x598e41);}}async function sendConfiguration(){const _0x152014=_0x347f13;console['log'](LOG_PREFIX2+_0x152014(0x158)),console['log'](LOG_PREFIX2+_0x152014(0x209)+state['enabled']+_0x152014(0x1ba)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x152014(0x13f)](LOG_PREFIX2+_0x152014(0x13e));return;}const _0x206fc8=await resolveWorker();if(!_0x206fc8){console['warn'](LOG_PREFIX2+_0x152014(0x133));return;}const _0x5a056f={'callbackBypass':currentOptions2[_0x152014(0x1a7)],'securityMode':currentOptions2[_0x152014(0x151)]};console['log'](LOG_PREFIX2+_0x152014(0x13d),JSON[_0x152014(0x18c)](_0x5a056f,null,0x2)),_0x206fc8[_0x152014(0x191)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x5a056f}),console[_0x152014(0x13f)](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x2046b6){const _0x4c3eed=_0x347f13;console[_0x4c3eed(0x13f)](LOG_PREFIX2+_0x4c3eed(0x145));if(!(_0x4c3eed(0x15d)in navigator)){console[_0x4c3eed(0x13f)](LOG_PREFIX2+_0x4c3eed(0x1ae));return;}try{const _0x59114a=registration??await navigator[_0x4c3eed(0x15d)][_0x4c3eed(0x1bd)]('/');if(!_0x59114a){console[_0x4c3eed(0x13f)](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0x4c3eed(0x13f)](LOG_PREFIX2+_0x4c3eed(0x1b4),{'scope':_0x59114a[_0x4c3eed(0x1be)],'active':_0x59114a[_0x4c3eed(0x149)]?.[_0x4c3eed(0x150)],'waiting':_0x59114a[_0x4c3eed(0x1a0)]?.[_0x4c3eed(0x150)],'installing':_0x59114a[_0x4c3eed(0x16d)]?.[_0x4c3eed(0x150)]});const _0x286907=[_0x59114a['active']?.[_0x4c3eed(0x150)],_0x59114a['waiting']?.['scriptURL'],_0x59114a[_0x4c3eed(0x16d)]?.[_0x4c3eed(0x150)]],_0x40fea9=_0x286907[_0x4c3eed(0x1f0)](_0x2c4874=>_0x2c4874&&ownsServiceWorker(_0x2c4874,_0x2046b6));if(!_0x40fea9){console['log'](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x59114a[_0x4c3eed(0x149)]&&(console[_0x4c3eed(0x13f)](LOG_PREFIX2+_0x4c3eed(0x1ce)),_0x59114a[_0x4c3eed(0x149)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console[_0x4c3eed(0x13f)](LOG_PREFIX2+_0x4c3eed(0x175)),await _0x59114a[_0x4c3eed(0x1ea)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x4c3eed(0x1f2));}catch(_0x4c3e03){console[_0x4c3eed(0x152)](LOG_PREFIX2+_0x4c3eed(0x15b),_0x4c3e03);}}function _0x46d3(){const _0x3114fd=['warn','\x20Module\x20exports:','enhancementUrl','replaceState','enhance:disable','\x20Module\x20missing\x20createOverlay\x20export!','\x20doLoadOverlay()\x20starting...','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','runtimeURL','\x20Current\x20controller\x20after\x20ready:','\x20Overlay\x20origin:\x20','1133060GEzckg','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','^3.22.4',',\x20owns=','has','\x20Current\x20URL:\x20','222aptjUe','\x20No\x20window\x20object\x20-\x20skipping','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','__viteHMRLoaded','href','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','__enhanceInitialized','enhance','enableViteHmr','object','createOverlay','startsWith','/sw-enhance.js','message','querySelector','hasEnhancement','5115180htRfzI','\x20Document\x20readyState:\x20','update','vite:beforeUpdate','origin','\x20Current\x20controller:','unregister','\x20Controller\x20state:','\x20Updating\x20overlay\x20with\x20state:','\x20enhancementId:\x20','__vite_plugin_react_preamble_installed__','\x20loadOverlay()\x20failed:','some','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20SW\x20unregistered\x20successfully','http://','\x20registerServiceWorker()\x20called','\x20Enhancement\x20detection:\x20wasEnhanced=','trim','\x20currentOptions\x20exists:\x20','controlled','enableOverlayHmr','\x20Vite\x20client\x20already\x20loaded\x20for\x20','[Enhance\x20Runtime]','\x20registerServiceWorker()\x20complete','\x20swPath:\x20','hot','\x20loadOverlay()\x20complete','2085363dWNxwN','overlayPath','\x20Vite\x20error\x20detected:','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20Overlay\x20controller\x20initialized\x20and\x20cached','__enhanceReactRefreshInstalledOrigins','explicitDisable','includes','reload','\x20state.enabled:\x20','\x20init()\x20complete\x20-\x20enhancement\x20mode','@enhance-eng/sandbox','__enhanceOptions','\x20Sending\x20customer\x20configuration...','\x20Failed\x20to\x20import/create\x20overlay:','\x20ownsServiceWorker?\x20scriptURL=','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','get','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20composeOverlayState\x20-\x20state.enabled:\x20','^4.1.1','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20Controller\x20created:','location','/assets/enhance-runtime.js','function','\x20init()\x20complete\x20-\x20normal\x20mode','readyState','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','log','\x20resolveWorker:','^24.10.1','injectIntoGlobalHook','22598048cXugGc','\x20overlayController\x20exists:\x20','\x20unregisterServiceWorker()\x20called','disable','backendUrl','16108cQtsyQ','active','now','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20overlayPath:\x20','\x20SW\x20ready!\x20Active:','keys','./dist/vite/index.js','scriptURL','security','error','672491YWpcjr','permissive','register','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','state:\x20','\x20sendConfiguration()\x20called','\x20First\x20initialization','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20Failed\x20to\x20unregister\x20service\x20worker:','dist','serviceWorker','^7.2.4','N/A','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','tsc\x20--noEmit','https://api.enhancelabs.ai','controller','overlay','\x20Registration\x20returned:','\x20Starting\x20overlay\x20load\x20(async)...','\x20updateOverlay()\x20called','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','__enhanceController','0.0.0','installing','undefined','replace','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','search','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20reusing','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','[Enhance\x20SW-Client]','\x20Unregistering\x20SW...','\x20Calling\x20updateOverlay()...','bottom-right','bin','./dist/index.cjs','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20with\x20scope\x20\x27/\x27...','\x20enableViteHmr:\x20','toString','default','\x20HMR\x20setup\x20complete','version','$RefreshReg$','./dist/index.js','https://','\x20setupRemoteHMR()\x20for\x20','3036785pEySAL','enhance:configure','\x20Available\x20exports:','onToggle','none','module','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','stringify','/@vite/client','\x20Overlay\x20update\x20complete','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Registering\x20SW\x20at\x20','postMessage','init','title','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20BLOCKING\x20SW\x20detected:\x20','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','\x20Updating\x20overlay...','add','\x20enhancementUrl:\x20','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','0.3.19','enabled','searchParams','\x20Service\x20workers\x20supported','history','waiting','delete','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','swPath','\x20Normalized\x20options:','...','callbackBypass','err','bin/enhance-sandbox.js','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','./dist/vite/index.d.ts','__enhanceOverlay','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','info','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','https://assets.enhancelabs.ai/overlay.js','\x20Found\x20registration:','toLowerCase','enhancementId','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Calling\x20createOverlay()...',',\x20expected=',',\x20currentOptions:\x20','\x20init()\x20called\x20at\x20','state','getRegistration','scope','appError','^8.5.1','enhancement'];_0x46d3=function(){return _0x3114fd;};return _0x46d3();}function ownsServiceWorker(_0xfa6f45,_0x3e89d7){const _0x3eb345=_0x347f13,_0x4a48aa=typeof window!==_0x3eb345(0x16e)?window['location'][_0x3eb345(0x1e8)]:'',_0x100930=new URL(_0x3e89d7,_0x4a48aa||void 0x0)[_0x3eb345(0x1d8)],_0x29790b=_0xfa6f45===_0x100930||_0xfa6f45[_0x3eb345(0x207)]('sw-enhance');return console[_0x3eb345(0x13f)](LOG_PREFIX2+_0x3eb345(0x12f)+_0xfa6f45+_0x3eb345(0x1b9)+_0x100930+_0x3eb345(0x1d1)+_0x29790b),_0x29790b;}function ownsCurrentController(_0x4c1c75){const _0x250c5d=_0x347f13;if(typeof navigator===_0x250c5d(0x16e))return![];const _0x119d25=navigator[_0x250c5d(0x15d)]?.['controller'];if(!_0x119d25)return console[_0x250c5d(0x13f)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x119d25[_0x250c5d(0x150)],_0x4c1c75);}async function detectBlockingServiceWorker(_0x375bc6){const _0x3b6a1e=_0x347f13;if(!navigator[_0x3b6a1e(0x15d)])return null;try{const _0x2ed6ac=await navigator['serviceWorker']['getRegistration']('/');console[_0x3b6a1e(0x13f)](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x2ed6ac?.[_0x3b6a1e(0x149)]?.['scriptURL']??_0x3b6a1e(0x189));const _0x4fd3a6=_0x2ed6ac?.[_0x3b6a1e(0x149)]?.[_0x3b6a1e(0x150)];if(!_0x4fd3a6)return null;if(ownsServiceWorker(_0x4fd3a6,_0x375bc6))return null;return _0x4fd3a6;}catch(_0x55a129){return console[_0x3b6a1e(0x152)](LOG_PREFIX2+'\x20detectBlocking\x20error:',_0x55a129),null;}}async function resolveWorker(){const _0x27788b=_0x347f13,_0x880d97=registration??await navigator['serviceWorker']?.[_0x27788b(0x1bd)]('/'),_0x179dde=_0x880d97?.[_0x27788b(0x149)]??_0x880d97?.[_0x27788b(0x1a0)]??_0x880d97?.[_0x27788b(0x16d)]??null;return console[_0x27788b(0x13f)](LOG_PREFIX2+_0x27788b(0x140),_0x179dde?.[_0x27788b(0x150)]??'none',_0x27788b(0x157)+(_0x179dde?.['state']??_0x27788b(0x15f))),_0x179dde;}var LOG_PREFIX3=_0x347f13(0x1fb);function isInitialized(){const _0x4c4f96=_0x347f13;return typeof window!==_0x4c4f96(0x16e)&&window['__enhanceInitialized']===!![];}function setInitialized(_0x1e1d8f){const _0xdaae17=_0x347f13;typeof window!==_0xdaae17(0x16e)&&(window[_0xdaae17(0x1da)]=_0x1e1d8f);}function getOptions(){const _0x2c19e6=_0x347f13;return typeof window!==_0x2c19e6(0x16e)?window[_0x2c19e6(0x12c)]??null:null;}function setOptions(_0x410bc6){const _0x3e159d=_0x347f13;typeof window!==_0x3e159d(0x16e)&&(window[_0x3e159d(0x12c)]=_0x410bc6);}var Enhance={'init'(_0x2295aa){const _0x38bd98=_0x347f13,_0x5b6dad=Date[_0x38bd98(0x14a)]();console['log'](LOG_PREFIX3+_0x38bd98(0x1bb)+_0x5b6dad),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x1d3)+window[_0x38bd98(0x138)]['href']),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x1e5)+document[_0x38bd98(0x13c)]),console[_0x38bd98(0x13f)](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x38bd98(0x18c)](_0x2295aa,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x38bd98(0x16a)),window[_0x38bd98(0x16b)]??createController();setInitialized(!![]),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x159));const _0x28912f=normalizeOptions(_0x2295aa);setOptions(_0x28912f),console['log'](LOG_PREFIX3+_0x38bd98(0x1a5),JSON[_0x38bd98(0x18c)](_0x28912f,null,0x2));const _0x224509=parseUrlParams();console[_0x38bd98(0x13f)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x38bd98(0x18c)](_0x224509,null,0x2));if(_0x224509[_0x38bd98(0x206)])return cleanUrlParam('enhance'),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x203)),createController();if(_0x224509[_0x38bd98(0x1e3)])return console[_0x38bd98(0x13f)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x199)+_0x224509['enhancementUrl']),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x1ed)+_0x224509[_0x38bd98(0x1b6)]),state['enabled']=!![],console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x168)),void loadOverlay({'overlayPath':_0x28912f['overlayPath'],'enableViteHmr':_0x28912f['overlay']['enableViteHmr'],'options':_0x28912f,'onToggle':handleToggle}),console[_0x38bd98(0x13f)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x28912f),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x12a)),createController();return console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x1d9)),console['log'](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x28912f[_0x38bd98(0x1a4)]),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x13b)),import.meta['hot']&&(console['log'](LOG_PREFIX3+_0x38bd98(0x1cf)),import.meta[_0x38bd98(0x1fe)]['on']('vite:error',_0x88793d=>{const _0x1ba3eb=_0x38bd98;console[_0x1ba3eb(0x13f)](LOG_PREFIX3+_0x1ba3eb(0x202),_0x88793d),state[_0x1ba3eb(0x1bf)]={'message':_0x88793d[_0x1ba3eb(0x1a8)][_0x1ba3eb(0x1e1)]},updateOverlay();}),import.meta['hot']['on'](_0x38bd98(0x1e7),()=>{const _0x543321=_0x38bd98;state[_0x543321(0x1bf)]&&(console[_0x543321(0x13f)](LOG_PREFIX3+_0x543321(0x19a)),state[_0x543321(0x1bf)]=null,updateOverlay());})),createController();}};function createController(){const _0x55ebe0=_0x347f13,_0x40c985={'enable'(){const _0xf07fa7=_0x4baf,_0x498d53=getOptions();if(!_0x498d53)return;state[_0xf07fa7(0x19c)]=!![],void loadOverlay({'overlayPath':_0x498d53[_0xf07fa7(0x201)],'enableViteHmr':_0x498d53[_0xf07fa7(0x166)][_0xf07fa7(0x1dc)],'options':_0x498d53,'onToggle':handleToggle}),void registerServiceWorker(_0x498d53),void sendConfiguration(),updateOverlay();},'disable'(){const _0x243036=_0x4baf,_0x15909e=getOptions();if(!_0x15909e)return;state[_0x243036(0x19c)]=![],state[_0x243036(0x1f8)]=![],updateOverlay(),void unregisterServiceWorker(_0x15909e[_0x243036(0x1a4)]);},'status'(){const _0xc2c7e5=_0x4baf;return{'enabled':state[_0xc2c7e5(0x19c)],'controlled':state[_0xc2c7e5(0x1f8)]};}};return typeof window!==_0x55ebe0(0x16e)&&(window['__enhanceController']=_0x40c985),_0x40c985;}function handleToggle(){const _0x23dfb4=_0x347f13,_0x5cf269=createController();state[_0x23dfb4(0x19c)]?_0x5cf269[_0x23dfb4(0x146)]():_0x5cf269['enable']();}function parseUrlParams(){const _0x521935=_0x347f13,_0x53cebd=new URL(window[_0x521935(0x138)][_0x521935(0x1d8)]),_0x37a80a=_0x53cebd[_0x521935(0x19d)]['get'](_0x521935(0x1db))?.[_0x521935(0x1b5)](),_0x54807d=_0x53cebd[_0x521935(0x19d)][_0x521935(0x132)](_0x521935(0x1c4)),_0x5803a2=_0x53cebd[_0x521935(0x19d)][_0x521935(0x132)](_0x521935(0x1c1));return{'hasEnhancement':Boolean(_0x54807d||_0x5803a2),'explicitDisable':_0x37a80a==='0'||_0x37a80a==='false'||_0x37a80a==='off','enhancementUrl':_0x54807d,'enhancementId':_0x5803a2};}function cleanUrlParam(_0x4dec3d){const _0x3d8e8f=_0x347f13,_0x4c1ebb=new URL(window['location'][_0x3d8e8f(0x1d8)]);_0x4c1ebb[_0x3d8e8f(0x19d)][_0x3d8e8f(0x1d2)](_0x4dec3d)&&(_0x4c1ebb[_0x3d8e8f(0x19d)][_0x3d8e8f(0x1a1)](_0x4dec3d),window[_0x3d8e8f(0x19f)][_0x3d8e8f(0x1c5)](null,document[_0x3d8e8f(0x193)],_0x4c1ebb[_0x3d8e8f(0x17d)]()));}var package_default={'name':_0x347f13(0x12b),'version':_0x347f13(0x19b),'type':_0x347f13(0x18a),'description':_0x347f13(0x1a3),'license':'MIT','main':_0x347f13(0x179),'module':'./dist/index.js','types':'./dist/index.d.ts','exports':{'.':{'types':'./dist/index.d.ts','import':_0x347f13(0x182),'require':_0x347f13(0x179)},'./vite':{'types':_0x347f13(0x1ab),'import':_0x347f13(0x14f)}},'files':[_0x347f13(0x15c),_0x347f13(0x178),'enhance.config.sample.json'],'bin':{'enhance-sandbox':_0x347f13(0x1a9)},'scripts':{'typecheck':_0x347f13(0x163),'dev':_0x347f13(0x1a2),'dev:build':_0x347f13(0x1ad),'dev:staging':_0x347f13(0x173),'dev:staging:build':_0x347f13(0x14b),'build':_0x347f13(0x17a),'build:release':_0x347f13(0x131),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':'^11.1.0','zod':_0x347f13(0x1d0)},'devDependencies':{'@types/node':_0x347f13(0x141),'javascript-obfuscator':_0x347f13(0x135),'tsup':_0x347f13(0x1c0),'vite':_0x347f13(0x15e)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH=_0x347f13(0x1e0),DEFAULT_RUNTIME_PATH=_0x347f13(0x139),PACKAGE_VERSION=typeof package_default[_0x347f13(0x180)]==='string'?package_default[_0x347f13(0x180)]:_0x347f13(0x16c);function normalizeAssetPath(_0x37afc8){const _0xd06f22=_0x347f13;if(!_0x37afc8)return _0x37afc8;if(_0x37afc8[_0xd06f22(0x1df)](_0xd06f22(0x1f3))||_0x37afc8[_0xd06f22(0x1df)](_0xd06f22(0x183)))return _0x37afc8;const _0x5b8c5e=_0x37afc8[_0xd06f22(0x16f)](/^\.\//,'');return _0x5b8c5e[_0xd06f22(0x1df)]('/')?_0x5b8c5e:'/'+_0x5b8c5e;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x4d19eb){const _0x2c9fcd=_0x347f13;return Enhance[_0x2c9fcd(0x192)](_0x4d19eb);},'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(){const _0x99d97b=_0x347f13;return Enhance2[_0x99d97b(0x1ca)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
package/dist/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1eff41=_0x2518;(function(_0x156b5d,_0x24a0c1){const _0x3d2db6=_0x2518,_0x18e4d1=_0x156b5d();while(!![]){try{const _0x328bf8=-parseInt(_0x3d2db6(0xed))/0x1*(parseInt(_0x3d2db6(0xfb))/0x2)+parseInt(_0x3d2db6(0xd4))/0x3+-parseInt(_0x3d2db6(0xec))/0x4*(parseInt(_0x3d2db6(0xea))/0x5)+-parseInt(_0x3d2db6(0xd0))/0x6+parseInt(_0x3d2db6(0xd7))/0x7*(-parseInt(_0x3d2db6(0xc5))/0x8)+-parseInt(_0x3d2db6(0xfa))/0x9*(parseInt(_0x3d2db6(0xc6))/0xa)+-parseInt(_0x3d2db6(0xe0))/0xb*(-parseInt(_0x3d2db6(0x104))/0xc);if(_0x328bf8===_0x24a0c1)break;else _0x18e4d1['push'](_0x18e4d1['shift']());}catch(_0x490424){_0x18e4d1['push'](_0x18e4d1['shift']());}}}(_0x5a3b,0x8587f));import{relative,resolve}from'path';import{promises as _0x57d25}from'fs';import{join}from'path';var CONFIG_FILENAME='enhance.config.json';function _0x2518(_0x3b04bb,_0x51bf0e){const _0x5a3b50=_0x5a3b();return _0x2518=function(_0x25185e,_0x996152){_0x25185e=_0x25185e-0xbd;let _0x2a2899=_0x5a3b50[_0x25185e];return _0x2a2899;},_0x2518(_0x3b04bb,_0x51bf0e);}async function loadEnhanceConfig(_0x34e6a2=process[_0x1eff41(0xd1)]()){const _0x485702=_0x1eff41,_0x351c96=join(_0x34e6a2,CONFIG_FILENAME);let _0x39c24e;try{_0x39c24e=await _0x57d25[_0x485702(0xf0)](_0x351c96,_0x485702(0xd5));}catch(_0x11d7cd){if(_0x11d7cd['code']===_0x485702(0xbe))return null;throw new Error(_0x485702(0xe6)+CONFIG_FILENAME+':\x20'+_0x11d7cd[_0x485702(0xd3)]);}let _0x4c183f;try{_0x4c183f=JSON['parse'](_0x39c24e);}catch(_0x47dc7f){throw new Error(_0x485702(0xf6)+CONFIG_FILENAME+':\x20'+_0x47dc7f[_0x485702(0xd3)]);}if(!_0x4c183f||typeof _0x4c183f!==_0x485702(0xe3))throw new Error(CONFIG_FILENAME+'\x20must\x20contain\x20an\x20object');const {publicDir:_0x34326d,swFilename:_0x59c3f3}=_0x4c183f;if(typeof _0x34326d!=='string'||_0x34326d[_0x485702(0xe9)]()[_0x485702(0xca)]===0x0)throw new Error(CONFIG_FILENAME+_0x485702(0x100));if(_0x59c3f3!=null&&(typeof _0x59c3f3!==_0x485702(0xdb)||_0x59c3f3[_0x485702(0xe9)]()[_0x485702(0xca)]===0x0))throw new Error(CONFIG_FILENAME+'\x20has\x20an\x20invalid\x20\x22swFilename\x22;\x20expected\x20a\x20non-empty\x20string');return{'publicDir':_0x34326d['trim'](),'swFilename':typeof _0x59c3f3==='string'?_0x59c3f3[_0x485702(0xe9)]():void 0x0};}import{promises as _0x390276}from'fs';import{createHash}from'crypto';function _0x5a3b(){const _0x4d1e9d=['length','url','./dist/vite/index.d.ts','\x20not\x20found;\x20skipping\x20asset\x20sync','pnpm\x20version\x20patch\x20--no-git-tag-version','\x20→\x20','4150296BePHHE','cwd','^3.22.4','message','2212668KutoRQ','utf8','relativeDestination','2142yJPOLa','skipped','./dist/vite/index.js','push','string','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','./dist/index.cjs','module','MIT','27863GeGiTY','^4.1.1','replace','object','swFilename','/sw-enhance.js','Failed\x20to\x20read\x20','destinationPath','copied','trim','4292845DhByyu','assets/enhance-runtime.js','4JdGXyk','253799PLDGhO','update','status','readFile','info','http://','[enhance-sandbox]\x20Copied\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','publicDir','Invalid\x20JSON\x20in\x20','0.0.0','error','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','179577kfFRfh','2MUejZI','^24.10.1','all','override','./dist/index.d.ts','\x20is\x20missing\x20a\x20non-empty\x20\x22publicDir\x22\x20string','version','code','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','11004hVMdgQ','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','./dist/index.js','\x20(already\x20current)\x20[','manifestPath','exit','../dist/index.js','startsWith','ENOENT','/assets/enhance-runtime.js','catch','bin/enhance-sandbox.js','sw-enhance.js','dist','tsc\x20--noEmit','6024tnmimA','240ppaQBM','enhance.config.sample.json','@enhance-eng/sandbox','public'];_0x5a3b=function(){return _0x4d1e9d;};return _0x5a3b();}import{dirname,join as _0x62512a}from'path';import{fileURLToPath}from'url';var package_default={'name':_0x1eff41(0xc8),'version':'0.3.19','type':_0x1eff41(0xde),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x1eff41(0xdf),'main':'./dist/index.cjs','module':_0x1eff41(0x106),'types':'./dist/index.d.ts','exports':{'.':{'types':_0x1eff41(0xff),'import':'./dist/index.js','require':_0x1eff41(0xdd)},'./vite':{'types':_0x1eff41(0xcc),'import':_0x1eff41(0xd9)}},'files':[_0x1eff41(0xc3),'bin',_0x1eff41(0xc7)],'bin':{'enhance-sandbox':_0x1eff41(0xc1)},'scripts':{'typecheck':_0x1eff41(0xc4),'dev':_0x1eff41(0x103),'dev:build':_0x1eff41(0xdc),'dev:staging':_0x1eff41(0x105),'dev:staging:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','build':_0x1eff41(0xf4),'build:release':_0x1eff41(0xf9),'version':_0x1eff41(0xce)},'dependencies':{'commander':'^11.1.0','zod':_0x1eff41(0xd2)},'devDependencies':{'@types/node':_0x1eff41(0xfc),'javascript-obfuscator':_0x1eff41(0xe1),'tsup':'^8.5.1','vite':'^7.2.4'},'publishConfig':{'access':_0x1eff41(0xc9)}},DEFAULT_SERVICE_WORKER_PATH=_0x1eff41(0xe5),DEFAULT_RUNTIME_PATH=_0x1eff41(0xbf),DIST_SERVICE_WORKER_PATH=_0x1eff41(0xc2),DIST_RUNTIME_PATH=_0x1eff41(0xeb),PACKAGE_VERSION=typeof package_default[_0x1eff41(0x101)]===_0x1eff41(0xdb)?package_default[_0x1eff41(0x101)]:_0x1eff41(0xf7);function normalizeAssetPath(_0x4f0ca0){const _0x2c9d67=_0x1eff41;if(!_0x4f0ca0)return _0x4f0ca0;if(_0x4f0ca0[_0x2c9d67(0xbd)](_0x2c9d67(0xf2))||_0x4f0ca0[_0x2c9d67(0xbd)]('https://'))return _0x4f0ca0;const _0x5d1b5e=_0x4f0ca0[_0x2c9d67(0xe2)](/^\.\//,'');return _0x5d1b5e[_0x2c9d67(0xbd)]('/')?_0x5d1b5e:'/'+_0x5d1b5e;}var distDir=dirname(fileURLToPath(new URL(_0x1eff41(0x10a),import.meta[_0x1eff41(0xcb)])));async function syncAssets(_0x2650b0){const _0x4870b0=_0x1eff41,_0x38f453=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x2650b0[_0x4870b0(0xe4)]?'./'+_0x2650b0[_0x4870b0(0xe4)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x16e161=[];for(const _0x16825f of _0x38f453){const _0x66779f=cleanRelativePath(_0x16825f[_0x4870b0(0xfe)]??_0x16825f[_0x4870b0(0x108)]),_0x274fe6=_0x62512a(distDir,cleanRelativePath(_0x16825f['sourcePath'])),_0x5ae527=_0x62512a(_0x2650b0[_0x4870b0(0xf5)],_0x66779f),[_0x26ff23,_0x441019]=await Promise[_0x4870b0(0xfd)]([readDigest(_0x274fe6),readDigest(_0x5ae527)]);if(_0x26ff23&&_0x441019&&_0x26ff23===_0x441019){_0x16e161[_0x4870b0(0xda)]({'sourcePath':_0x274fe6,'destinationPath':_0x5ae527,'relativeDestination':_0x66779f,'status':'skipped'});continue;}await _0x390276['mkdir'](dirname(_0x5ae527),{'recursive':!![]}),await _0x390276['copyFile'](_0x274fe6,_0x5ae527),_0x16e161[_0x4870b0(0xda)]({'sourcePath':_0x274fe6,'destinationPath':_0x5ae527,'relativeDestination':_0x66779f,'status':_0x4870b0(0xe8)});}return _0x16e161;}function cleanRelativePath(_0x45e8c2){const _0x2de175=_0x1eff41;return _0x45e8c2[_0x2de175(0xe2)](/^[./]+/,'');}async function readDigest(_0xefd347){const _0xd98fb2=_0x1eff41;try{const _0x22ad52=await _0x390276[_0xd98fb2(0xf0)](_0xefd347);return createHash('sha256')[_0xd98fb2(0xee)](_0x22ad52)['digest']('base64');}catch(_0x95efe0){if(_0x95efe0[_0xd98fb2(0x102)]==='ENOENT')return null;throw _0x95efe0;}}async function main(){const _0x98fd98=_0x1eff41,_0x3f78c4=await loadEnhanceConfig();if(!_0x3f78c4){console[_0x98fd98(0xf1)]('[enhance-sandbox]\x20'+CONFIG_FILENAME+_0x98fd98(0xcd));return;}const _0x1dae90=resolve(process['cwd'](),_0x3f78c4['publicDir']),_0x4a12a6=await syncAssets({'publicDir':_0x1dae90,'swFilename':_0x3f78c4[_0x98fd98(0xe4)]});for(const _0x3ee7cb of _0x4a12a6){const _0x2c4d2e=relative(process['cwd'](),_0x3ee7cb[_0x98fd98(0xe7)]);_0x3ee7cb[_0x98fd98(0xef)]===_0x98fd98(0xd8)?console['info']('[enhance-sandbox]\x20Skipped\x20'+_0x3ee7cb['relativeDestination']+_0x98fd98(0x107)+_0x2c4d2e+']'):console['info'](_0x98fd98(0xf3)+_0x3ee7cb[_0x98fd98(0xd6)]+_0x98fd98(0xcf)+_0x2c4d2e);}}main()[_0x1eff41(0xc0)](_0x5cec4e=>{const _0x1d8ec1=_0x1eff41;console['error']('[enhance-sandbox]\x20Failed\x20to\x20sync\x20assets\x20during\x20postinstall'),console[_0x1d8ec1(0xf8)](_0x5cec4e),process[_0x1d8ec1(0x109)](0x1);});
|
package/dist/sw-enhance.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
'use strict';(function(_0x305083,_0x6c87a5){const _0x5c9137=_0x2b38,_0x1485b4=_0x305083();while(!![]){try{const _0xd657f2=parseInt(_0x5c9137(0x187))/0x1+-parseInt(_0x5c9137(0x1c7))/0x2+-parseInt(_0x5c9137(0x1ec))/0x3*(parseInt(_0x5c9137(0x133))/0x4)+parseInt(_0x5c9137(0x17f))/0x5+-parseInt(_0x5c9137(0x196))/0x6+-parseInt(_0x5c9137(0x102))/0x7*(parseInt(_0x5c9137(0x1b4))/0x8)+parseInt(_0x5c9137(0x1b2))/0x9;if(_0xd657f2===_0x6c87a5)break;else _0x1485b4['push'](_0x1485b4['shift']());}catch(_0x2697da){_0x1485b4['push'](_0x1485b4['shift']());}}}(_0x149d,0x5e076));function _0x2b38(_0xdd2be0,_0x236a46){const _0x149d01=_0x149d();return _0x2b38=function(_0x2b38c4,_0xa80359){_0x2b38c4=_0x2b38c4-0xe7;let _0x53e70c=_0x149d01[_0x2b38c4];return _0x53e70c;},_0x2b38(_0xdd2be0,_0x236a46);}function _0x149d(){const _0x49fd13=['GET','none','frame-ancestors\x20','\x20INSTALL\x20event','connect-src\x20*','1635318EaSmlp','stringify','host','getOwnPropertyNames','image','\x20\x20\x20Applying\x20permissive\x20CSP...','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20Rewriting\x20entry\x20references...','info','set-cookie2','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','/webpackhotmiddleware','/_next/webpack-hmr',',\x20null,\x202));','\x20chars)','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','</script>','location','log',')\x20-\x20returning\x20null','search','waitUntil','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','headers','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','14905341CUUVnq','enhance:disable','2114224fPMbXr','map','\x20\x20\x20overlayPath:\x20','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20\x20\x20\x20//\x20Mark\x20as\x20initialized\x20globally\x20so\x20other\x20module\x20instances\x20(e.g.\x20enhanced\x20app\x27s\x20bundled\x20copy)\x20skip\x20re-init','\x20\x20\x20Production\x20response:\x20','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','Enhancement\x20miss\x20','\x20\x20\x20Document\x20source:\x20','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20Enhancement\x20document\x20URL:\x20','includes','\x20fetchFromEnhancement:\x20','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','callbackBypassNormalized','src','(function(){','/__snowpack__','1189718MbrjnN','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20skipWaiting()\x20complete','\x20\x20\x20BYPASS:\x20','media-src\x20*\x20data:\x20blob:','modulepreload','object','\x0a</body>','\x20\x20\x20runtimeScriptPath:\x20','error','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','\x20\x20\x20Not\x20OK\x20(','\x0a</head>','\x5c$&','access-control-allow-credentials','trim','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','securityMode','test','\x20chars','runtimeScriptPath','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20Config\x20reset','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','full','default','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','custom','x-enhance-routing','/webpack-hot-middleware','\x20for\x20','?import','x-enhance-enhancement','permissive','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','status','/parcel-hmr','15567xSEbjO','content-type','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','font-src\x20*\x20data:','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','statusText','getOwnPropertyDescriptor','\x20Customer\x20config\x20updated:','origin','set-cookie','\x20\x20\x20enhancementUrl:\x20','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20\x20\x20Document\x20rewrite\x20complete','\x20Clearing\x20cached\x20enhancementUrl\x20(navigation\x20without\x20param)','\x20\x20}','prototype','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','\x20-\x20falling\x20back\x20to\x20production','enumerable','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','claim','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20\x20\x20Enhancement\x20MISS\x20for\x20','\x20\x20}\x20catch\x20(error)\x20{','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','\x20\x20\x20shouldInjectOverlay:\x20',',\x20destination:\x20','clone','Enhancement\x20CORS\x20blocked','\x20\x20\x20Rewriting\x20document...','message','pathname','call','\x20\x20\x20Fetching\x20enhancement\x20document...','text/html','\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','[Enhance\x20SW\x20Routing]','length','\x20Invalid\x20message\x20data\x20-\x20ignoring','value','mode','__esModule','endsWith','/__webpack_hmr','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','sharedworker','join','https://','14czTqUm','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20\x20\x20Enhancement\x20HIT\x20for\x20','body','\x20injectRuntimeBootstrap()\x20called','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','redirect','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','enhancementBase','\x20fetchEnhancementDocument:\x20','data','debug','\x20Calling\x20skipWaiting()...','\x20\x20\x20\x20};','[Enhance\x20SW\x20Bootstrap]','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','callbackBypass','\x20\x20\x20Fetching\x20from\x20enhancement...','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20Enhancement\x20URL:\x20','/sockjs-node','cache-control','\x20handleNavigationRequest:\x20','[Enhance\x20SW\x20Document]','worker-src\x20\x27self\x27\x20blob:','\x20rewriteDocument()\x20called','match','/@vite/client','/assets/enhance-runtime.js','\x20\x20\x20\x20}','})();','activate','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','set','Enhancement\x20document\x20fetch\x20failed','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','opaque','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','\x20\x20\x20Script\x20inserted\x20into\x20document','access-control-expose-headers','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','push','8TazeDU','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20\x20\x20\x20\x20\x20}','enhancement','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','enhancementUrl','toISOString','backendUrl','hash','/auth/callback','object-src\x20\x27none\x27','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','production',',\x20type:\x20','\x20shouldRouteAsset:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','toString','Enhancement\x20document\x20CORS\x20blocked','\x20Calling\x20clients.claim()...','searchParams','$&\x0a','overlayPath','addEventListener','has','get','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20Document\x20rewritten\x20successfully','\x20\x20\x20Response:\x20','http://','replace','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','defineProperty','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','/__vite_ping','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','\x20\x20\x20\x20try\x20{','destination','https://assets.enhancelabs.ai/overlay.js','\x20MESSAGE\x20received:','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','/__vite/client','font','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','style','\x20\x20\x20\x20\x20\x20try\x20{','enhancement-document','cross-origin-embedder-policy','delete','skipWaiting','\x20\x20\x20Fetching\x20production\x20response...','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','toLowerCase','content-security-policy','\x20Unknown\x20message\x20type:\x20','cross-origin-opener-policy','HEAD','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','\x20\x20\x20securityMode:\x20','rewritten','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','href','startsWith','\x20\x20\x20\x20\x20\x20return;','type','hit','https://api.enhancelabs.ai','\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','x-enhance-document','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','follow','vite-hmr','329735pMnEGQ','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','method','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20HTML\x20response\x20-\x20processing...','overlay','\x20\x20\x20\x20\x20\x20','include','69392zakRQe','\x20\x20\x20Content-Type:\x20','function','add','<script\x20data-enhance-hmr-bridge>','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','\x20\x20\x20mode:\x20','\x20\x20\x20source:\x20'];_0x149d=function(){return _0x49fd13;};return _0x149d();}var EnhanceSW=((()=>{const _0x1a9357=_0x2b38;var _0x289933=Object[_0x1a9357(0x155)],_0x409c09=Object[_0x1a9357(0x1f3)],_0x4f2527=Object[_0x1a9357(0x199)],_0x561456=Object[_0x1a9357(0x1fc)]['hasOwnProperty'],_0x123ecf=(_0x462a78,_0x40e7e9)=>{for(var _0x245394 in _0x40e7e9)_0x289933(_0x462a78,_0x245394,{'get':_0x40e7e9[_0x245394],'enumerable':!![]});},_0x4fe90e=(_0x462dea,_0x33e85,_0x4cde2e,_0x547e8b)=>{const _0x5e0ef2=_0x1a9357;if(_0x33e85&&typeof _0x33e85===_0x5e0ef2(0x1cd)||typeof _0x33e85===_0x5e0ef2(0x189)){for(let _0x213c34 of _0x4f2527(_0x33e85))if(!_0x561456[_0x5e0ef2(0xf0)](_0x462dea,_0x213c34)&&_0x213c34!==_0x4cde2e)_0x289933(_0x462dea,_0x213c34,{'get':()=>_0x33e85[_0x213c34],'enumerable':!(_0x547e8b=_0x409c09(_0x33e85,_0x213c34))||_0x547e8b[_0x5e0ef2(0x200)]});}return _0x462dea;},_0x42d8cc=_0x237c5a=>_0x4fe90e(_0x289933({},_0x1a9357(0xfb),{'value':!![]}),_0x237c5a),_0x57d10a={};_0x123ecf(_0x57d10a,{'log':()=>_0x305b1e});var _0x6d5c9b='enhance:configure',_0x479bd3=_0x1a9357(0x1b3);function _0x1c7501(_0x4252d7){const _0x1169df=_0x1a9357;if(!_0x4252d7[_0x1169df(0x174)]('/'))return'/'+_0x4252d7;return _0x4252d7;}function _0x10f14b(_0xa9c693,_0x1fcd44){const _0x21fa3f=_0x1a9357,_0x34433c=new URL(_0xa9c693[_0x21fa3f(0x144)]()),_0x98da77=_0x34433c[_0x21fa3f(0xef)][_0x21fa3f(0xfc)]('/')?_0x34433c[_0x21fa3f(0xef)]['slice'](0x0,-0x1):_0x34433c[_0x21fa3f(0xef)],_0x34b7ea=_0x1fcd44['pathname'][_0x21fa3f(0x174)]('/')?_0x1fcd44['pathname']:'/'+_0x1fcd44[_0x21fa3f(0xef)];return _0x34433c[_0x21fa3f(0xef)]=(''+_0x98da77+_0x34b7ea)[_0x21fa3f(0x151)](/\/+/g,'/'),_0x34433c[_0x21fa3f(0x1ab)]=_0x1fcd44[_0x21fa3f(0x1ab)],_0x34433c[_0x21fa3f(0x13c)]='',_0x34433c;}var _0x66be6e=_0x1a9357(0xf6),_0x557882=new Set(['script',_0x1a9357(0x162),_0x1a9357(0x15f),_0x1a9357(0x19a),'worker',_0x1a9357(0xff),_0x1a9357(0x1cc)]);function _0x3ef8a4(_0x4a1fd7){const _0x529e94=_0x1a9357,_0x3286c9=_0x4a1fd7[_0x529e94(0x181)]===_0x529e94(0x191)||_0x4a1fd7[_0x529e94(0x181)]===_0x529e94(0x16e);return _0x3286c9;}function _0x4f8233(_0x173945,_0x34ba24){const _0x3b258c=_0x1a9357,_0x3d722f=_0x1c7501(_0x34ba24),_0x22d691=_0x173945[_0x3b258c(0x1c3)]['some'](_0x4ef351=>_0x3d722f[_0x3b258c(0x174)](_0x4ef351));return _0x22d691;}function _0x15d05b(_0x2458ba,_0x34a8a4,_0x1e6694){const _0x1f5374=_0x1a9357,_0x5f4c54=_0x34a8a4[_0x1f5374(0x15a)];if(!_0x5f4c54||!_0x557882[_0x1f5374(0x14b)](_0x5f4c54))return![];if(_0x2f77ca(_0x2458ba,_0x1e6694))return console[_0x1f5374(0x1a9)](_0x66be6e+_0x1f5374(0x142)+_0x1e6694['pathname']+_0x1f5374(0xfe)),![];if(_0x204f27(_0x2458ba,_0x1e6694))return console['log'](_0x66be6e+_0x1f5374(0x142)+_0x1e6694[_0x1f5374(0xef)]+'\x20is\x20runtime\x20asset\x20-\x20not\x20routing'),![];if(_0x1e6694[_0x1f5374(0x1f5)]!==self[_0x1f5374(0x1a8)][_0x1f5374(0x1f5)])return![];return!![];}async function _0x5efff7(_0x1e22ea,_0x34509f,_0x42b342){const _0x26328d=_0x1a9357;console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x1c1)+_0x42b342[_0x26328d(0xef)]);if(!_0x1e22ea[_0x26328d(0x10c)])return console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x1de)),null;const _0x437ecc=_0x37dc53(_0x1e22ea,_0x42b342);console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x117)+_0x437ecc[_0x26328d(0x144)]());const _0x559edc=new Headers(_0x34509f[_0x26328d(0x1b0)]);_0x559edc[_0x26328d(0x126)]('x-enhance-routing','enhancement'),_0x559edc[_0x26328d(0x166)](_0x26328d(0x198));const _0xd0cc9a=new Request(_0x437ecc[_0x26328d(0x144)](),{'method':_0x34509f[_0x26328d(0x181)],'headers':_0x559edc,'credentials':_0x26328d(0x186),'redirect':_0x34509f[_0x26328d(0x10a)],'cache':_0x26328d(0x1e0),'mode':'cors'});try{console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x115));const _0x4e4d1a=await fetch(_0xd0cc9a);console['log'](_0x66be6e+'\x20\x20\x20Response:\x20'+_0x4e4d1a['status']+'\x20'+_0x4e4d1a[_0x26328d(0x1f2)]+',\x20type:\x20'+_0x4e4d1a['type']);if(_0x4e4d1a[_0x26328d(0x176)]===_0x26328d(0x12c))return console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x13f)),_0x305b1e('info',_0x26328d(0xec),_0x437ecc[_0x26328d(0x144)]()),null;if(!_0x4e4d1a['ok'])return console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x1d2)+_0x4e4d1a['status']+_0x26328d(0x1aa)),_0x305b1e(_0x26328d(0x10f),_0x26328d(0x1bc)+_0x4e4d1a[_0x26328d(0x1ea)]+_0x26328d(0x1e5)+_0x437ecc[_0x26328d(0xef)]),null;return console['log'](_0x66be6e+_0x26328d(0x172)),_0x1a1d38(_0x4e4d1a,_0x34509f[_0x26328d(0x181)]);}catch(_0x2dfbda){return console['error'](_0x66be6e+'\x20\x20\x20Fetch\x20error:',_0x2dfbda),_0x305b1e('info','Enhancement\x20fetch\x20failed',_0x2dfbda),null;}}async function _0x411c39(_0x477f7f,_0x398aa3){const _0x2f21ad=_0x1a9357,_0x1a136a=new URL(_0x398aa3['url']);console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x10d)+_0x1a136a[_0x2f21ad(0xef)]+_0x1a136a[_0x2f21ad(0x1ab)]);if(!_0x477f7f[_0x2f21ad(0x10c)])return console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x138)),null;const _0x24c358=_0x37dc53(_0x477f7f,_0x1a136a);console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x1bf)+_0x24c358[_0x2f21ad(0x144)]());const _0x4f4250=new Headers(_0x398aa3[_0x2f21ad(0x1b0)]);_0x4f4250['set'](_0x2f21ad(0x1e3),_0x2f21ad(0x164)),_0x4f4250[_0x2f21ad(0x166)](_0x2f21ad(0x198)),_0x4f4250[_0x2f21ad(0x166)]('content-length');const _0x1b4076=new Request(_0x24c358[_0x2f21ad(0x144)](),{'method':'GET','headers':_0x4f4250,'credentials':_0x2f21ad(0x186),'redirect':_0x2f21ad(0x17d),'cache':_0x2f21ad(0x1e0),'mode':'cors'});try{console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0xf1));const _0x415210=await fetch(_0x1b4076);console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x14f)+_0x415210[_0x2f21ad(0x1ea)]+'\x20'+_0x415210[_0x2f21ad(0x1f2)]+_0x2f21ad(0x141)+_0x415210[_0x2f21ad(0x176)]),console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x188)+_0x415210['headers'][_0x2f21ad(0x14c)](_0x2f21ad(0x1ed)));if(_0x415210[_0x2f21ad(0x176)]==='opaque')return console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x13f)),_0x305b1e(_0x2f21ad(0x19e),_0x2f21ad(0x145),_0x24c358[_0x2f21ad(0x144)]()),null;if(!_0x415210['ok'])return console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x1d2)+_0x415210[_0x2f21ad(0x1ea)]+_0x2f21ad(0x1aa)),_0x305b1e(_0x2f21ad(0x10f),'Enhancement\x20document\x20miss\x20'+_0x415210['status']+_0x2f21ad(0x1e5)+_0x24c358[_0x2f21ad(0xef)]),null;if(!_0x1f0ed0(_0x415210))return console[_0x2f21ad(0x1a9)](_0x66be6e+'\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null'),null;return console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x17a)),_0x1a1d38(_0x415210,'GET');}catch(_0x4a5d06){return console[_0x2f21ad(0x1d0)](_0x66be6e+'\x20\x20\x20Document\x20fetch\x20error:',_0x4a5d06),_0x305b1e(_0x2f21ad(0x19e),_0x2f21ad(0x127),_0x4a5d06),null;}}function _0x37dc53(_0xfdf3d8,_0x357a13){const _0x546546=_0x1a9357;if(!_0xfdf3d8[_0x546546(0x10c)])throw new Error(_0x546546(0x1ee));return _0x10f14b(_0xfdf3d8[_0x546546(0x10c)],_0x357a13);}function _0x1a1d38(_0x37bf39,_0x31d4a7){const _0x375d8e=_0x1a9357,_0x1361a7=_0x37bf39['clone'](),_0x1ca573=new Headers(_0x1361a7[_0x375d8e(0x1b0)]);_0x1ca573[_0x375d8e(0x166)]('access-control-allow-origin'),_0x1ca573['delete'](_0x375d8e(0x1d5)),_0x1ca573[_0x375d8e(0x166)](_0x375d8e(0x130)),_0x1ca573[_0x375d8e(0x126)](_0x375d8e(0x1e7),_0x375d8e(0x177)),_0x4ea040(_0x1ca573);const _0x57b319=_0x31d4a7===_0x375d8e(0x16e)?null:_0x1361a7[_0x375d8e(0x105)];return new Response(_0x57b319,{'status':_0x1361a7['status'],'statusText':_0x1361a7[_0x375d8e(0x1f2)],'headers':_0x1ca573});}function _0x1f0ed0(_0x2ffe2c){const _0x39fb9a=_0x1a9357,_0x308af0=_0x2ffe2c['headers'][_0x39fb9a(0x14c)](_0x39fb9a(0x1ed));return _0x308af0!=null&&_0x308af0[_0x39fb9a(0x1c0)](_0x39fb9a(0xf2));}function _0x2f77ca(_0x49c086,_0x5b04ff){const _0x21a32a=_0x1a9357;return _0x25c6c6(_0x5b04ff,_0x49c086[_0x21a32a(0x149)]);}function _0x204f27(_0x2f7996,_0x1374fa){const _0x1f0a74=_0x1a9357;return _0x2efaa6(_0x1374fa,_0x2f7996[_0x1f0a74(0x1db)]);}function _0x25c6c6(_0x4a1abb,_0x40e2a9){const _0x5304d6=_0x1a9357;if(!_0x40e2a9)return![];if(_0x40e2a9[_0x5304d6(0x174)]('http://')||_0x40e2a9[_0x5304d6(0x174)](_0x5304d6(0x101)))return _0x4a1abb[_0x5304d6(0x173)]===_0x40e2a9;const _0x32dc98=_0x48b439(_0x40e2a9);if(!_0x32dc98)return![];const _0x2839ff=''+_0x4a1abb['pathname']+_0x4a1abb[_0x5304d6(0x1ab)];if(_0x2839ff===_0x32dc98)return!![];if(_0x4a1abb[_0x5304d6(0x1ab)]===_0x5304d6(0x1e6))return _0x4a1abb['pathname']===_0x32dc98;return![];}function _0x2efaa6(_0x5d1350,_0x1c0749){const _0x5a851a=_0x1a9357;if(!_0x1c0749)return![];if(_0x1c0749[_0x5a851a(0x174)](_0x5a851a(0x150))||_0x1c0749[_0x5a851a(0x174)](_0x5a851a(0x101)))return _0x5d1350[_0x5a851a(0x173)]===_0x1c0749;const _0x4717b3=_0x48b439(_0x1c0749);if(!_0x4717b3)return![];const _0x20aec2=''+_0x5d1350[_0x5a851a(0xef)]+_0x5d1350[_0x5a851a(0x1ab)];return _0x20aec2===_0x4717b3;}function _0x48b439(_0x52a37f){const _0x39fc60=_0x1a9357;if(!_0x52a37f)return _0x52a37f;if(_0x52a37f['startsWith']('http://')||_0x52a37f[_0x39fc60(0x174)](_0x39fc60(0x101)))return _0x52a37f;const _0x51d055=_0x52a37f[_0x39fc60(0x151)](/^\.\//,'');if(_0x51d055[_0x39fc60(0x174)]('/'))return _0x51d055;return'/'+_0x51d055;}function _0x4ea040(_0x1f04a0){const _0x4044c0=_0x1a9357;_0x1f04a0[_0x4044c0(0x166)]('set-cookie'),_0x1f04a0[_0x4044c0(0x166)](_0x4044c0(0x19f));}function _0x1173f3(_0x22e61d){const _0x218eae=_0x1a9357,_0x4ae9cf=['default-src\x20\x27self\x27\x20blob:\x20data:',_0x218eae(0x14d),_0x218eae(0x152),'img-src\x20*\x20data:\x20blob:',_0x218eae(0x1f0),_0x218eae(0x195),_0x218eae(0x1cb),_0x218eae(0x11c),_0x218eae(0x13e)],_0x3d0222=_0xa486cb(_0x22e61d);return _0x3d0222&&_0x4ae9cf[_0x218eae(0x132)](_0x3d0222),_0x4ae9cf['join'](';\x20');}function _0x2545bb(_0x2bc0c3){const _0x460d03=_0x1a9357;_0x2bc0c3[_0x460d03(0x166)](_0x460d03(0x1f6)),_0x2bc0c3[_0x460d03(0x166)](_0x460d03(0x19f));}function _0xa486cb(_0x16cf0a){const _0x1953d6=_0x1a9357;if(!_0x16cf0a)return null;const _0x465e07=_0x16cf0a[_0x1953d6(0x11e)](/frame-ancestors\s+([^;]+)/i);if(!_0x465e07)return null;return _0x1953d6(0x193)+_0x465e07[0x1][_0x1953d6(0x1d6)]();}function _0x277113(_0x354b0b,_0x1a0f3b){const _0x58498e=_0x1a9357;if(/<head[^>]*>/i[_0x58498e(0x1d9)](_0x354b0b)){const _0x2920a5=_0x354b0b['match'](/<head[^>]*>/i);if(_0x2920a5){const _0x47795c=_0x2920a5[0x0];return _0x354b0b['replace'](_0x47795c,_0x47795c+'\x0a'+_0x1a0f3b);}}if(/<\/head>/i[_0x58498e(0x1d9)](_0x354b0b))return _0x354b0b[_0x58498e(0x151)](/<\/head>/i,_0x1a0f3b+_0x58498e(0x1d3));if(/<body\b[^>]*>/i[_0x58498e(0x1d9)](_0x354b0b))return _0x354b0b[_0x58498e(0x151)](/<body\b[^>]*>/i,_0x58498e(0x148)+_0x1a0f3b);if(/<\/body>/i[_0x58498e(0x1d9)](_0x354b0b))return _0x354b0b['replace'](/<\/body>/i,_0x1a0f3b+_0x58498e(0x1ce));return _0x1a0f3b+'\x0a'+_0x354b0b;}var _0x40f9f0=[_0x1a9357(0x17e)],_0x291b08=[_0x1a9357(0x11f),_0x1a9357(0x15e),'/vite/client',_0x1a9357(0x157),_0x1a9357(0x118),'/webpack-dev-server','/webpack-hmr',_0x1a9357(0x1a2),_0x1a9357(0x1e4),_0x1a9357(0xfd),_0x1a9357(0x1a3),_0x1a9357(0x1eb),'/__parcel_hmr',_0x1a9357(0x1c6),'/snowpack/hmr'];function _0x3fd63e(_0x42a9ce,_0x59c32e){const _0x42477c=_0x922290(_0x42a9ce);if(!_0x42477c)return _0x59c32e;return _0x277113(_0x59c32e,_0x42477c);}function _0x922290(_0x335576){const _0x15ae7c=_0x1a9357;if(!_0x335576[_0x15ae7c(0x10c)])return null;const _0x523a68=_0x335576[_0x15ae7c(0x10c)]['toString'](),_0x5c4cee=_0x13747d(_0x40f9f0),_0x4b52ab=_0x13747d(_0x291b08),_0xaeebb9=[_0x15ae7c(0x18b),_0x15ae7c(0x1c5),_0x15ae7c(0xf3),_0x15ae7c(0x180)+JSON[_0x15ae7c(0x197)](_0x523a68)+');',_0x15ae7c(0x1c8),_0x15ae7c(0x12e),_0x15ae7c(0x175),'\x20\x20\x20\x20}',_0x15ae7c(0x1f1)+JSON['stringify'](_0x5c4cee)+');',_0x15ae7c(0x1e1)+JSON[_0x15ae7c(0x197)](_0x4b52ab)+';',_0x15ae7c(0x1b7),_0x15ae7c(0x161),_0x15ae7c(0x129),_0x15ae7c(0x1a0),_0x15ae7c(0x111),'\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{',_0x15ae7c(0x156),_0x15ae7c(0x1ef),_0x15ae7c(0x1ad),_0x15ae7c(0x12d),_0x15ae7c(0x185),'\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;',_0x15ae7c(0x185),_0x15ae7c(0x1a6),'\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;',_0x15ae7c(0x135),'\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];',_0x15ae7c(0x15d),_0x15ae7c(0x154),_0x15ae7c(0x116),_0x15ae7c(0x135),_0x15ae7c(0xf4),_0x15ae7c(0x109),_0x15ae7c(0x108),_0x15ae7c(0x154),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x15ae7c(0x135),'\x20\x20\x20\x20\x20\x20return\x20false;',_0x15ae7c(0x111),_0x15ae7c(0x1d7),_0x15ae7c(0x19c),_0x15ae7c(0x169),'\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;',_0x15ae7c(0x179),_0x15ae7c(0x111),'\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{',_0x15ae7c(0x163),_0x15ae7c(0x1d1),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{',_0x15ae7c(0x16f),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20\x20\x20\x20\x20\x20\x20\x20}',_0x15ae7c(0x182),_0x15ae7c(0xf5),_0x15ae7c(0x135),_0x15ae7c(0x18c),_0x15ae7c(0x111),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);',_0x15ae7c(0x1a1),_0x15ae7c(0x128),_0x15ae7c(0x159),_0x15ae7c(0x103),_0x15ae7c(0x1b1),_0x15ae7c(0x160),'\x20\x20\x20\x20}',_0x15ae7c(0x1b8),'\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;',_0x15ae7c(0xe7),_0x15ae7c(0x18e),_0x15ae7c(0x1fb),_0x15ae7c(0x122),'</script>'];return _0xaeebb9[_0x15ae7c(0x100)]('\x0a');}function _0x13747d(_0x8d6604){const _0x3dab6d=_0x1a9357,_0x1ece34=new Set(),_0x33292d=[];for(const _0x129694 of _0x8d6604){const _0x426e14=_0x129694[_0x3dab6d(0x16a)]();if(_0x1ece34[_0x3dab6d(0x14b)](_0x426e14))continue;_0x1ece34[_0x3dab6d(0x18a)](_0x426e14),_0x33292d['push'](_0x426e14);}return _0x33292d;}var _0x43084f=_0x1a9357(0x112);function _0x1d83b1(_0x25b752,_0x4138dc){const _0x6385b5=_0x1a9357;console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x106)),console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x1cf)+_0x25b752[_0x6385b5(0x1db)]),console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x1b6)+_0x25b752[_0x6385b5(0x149)]);const _0x46e75d=_0x449938(_0x25b752);if(!_0x46e75d)return console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x204)),_0x4138dc;console['log'](_0x43084f+_0x6385b5(0x18d)+_0x46e75d[_0x6385b5(0xf7)]+_0x6385b5(0x1a5));const _0x148561=_0x8344f9(_0x4138dc,_0x25b752[_0x6385b5(0x1db)]);console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x125));const _0xed2b80=_0x277113(_0x148561,_0x46e75d);return console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x12f)),_0xed2b80;}function _0x449938(_0x32d2fa){const _0x39a728=_0x1a9357,_0x3ba140=_0x32d2fa['runtimeScriptPath'];if(!_0x3ba140)return console[_0x39a728(0x1a9)](_0x43084f+_0x39a728(0x1af)),null;const _0x10dbf4=_0x346f52(_0x32d2fa);console[_0x39a728(0x1a9)](_0x43084f+'\x20Bootstrap\x20options:',JSON['stringify'](_0x10dbf4,null,0x2));const _0x5747c8=_0x2f2ff5(_0x10dbf4),_0x4af407=JSON[_0x39a728(0x197)](_0x3ba140),_0x591d12=[_0x39a728(0xe8),'(async\x20()\x20=>\x20{','\x20\x20try\x20{','\x20\x20\x20\x20const\x20runtimePath\x20=\x20'+_0x4af407+';',_0x39a728(0x1e9),_0x39a728(0x1dc),_0x39a728(0x137),_0x39a728(0x1c2),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;',_0x39a728(0x201),'\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20}','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify('+_0x5747c8+_0x39a728(0x1a4),'\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init('+_0x5747c8+');',_0x39a728(0x143),_0x39a728(0x1be),_0x39a728(0x124),_0x39a728(0x203),_0x39a728(0x1b9),'\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;',_0x39a728(0x12a),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);',_0x39a728(0x121),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);',_0x39a728(0xe7),'\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','\x20\x20}','})();',_0x39a728(0x1a7)];return _0x591d12[_0x39a728(0x100)]('\x0a');}function _0x346f52(_0x4f658a){const _0x236f3b=_0x1a9357,_0x19311d={'callbackBypass':_0x4f658a['callbackBypass'],'__development':{'enableOverlayHmr':_0x4f658a['overlayEnableViteHmr'],'overlayPath':_0x4f658a[_0x236f3b(0x149)],'security':_0x4f658a[_0x236f3b(0x1d8)],'backendUrl':_0x4f658a[_0x236f3b(0x13b)]}};return _0x19311d;}function _0x2f2ff5(_0x50dd5e){const _0x2a628a=_0x1a9357;return JSON[_0x2a628a(0x197)](_0x50dd5e)[_0x2a628a(0x151)](/</g,'\x5cu003c')[_0x2a628a(0x151)](/>/g,'\x5cu003e');}function _0x8344f9(_0x1b8d32,_0x1db788){const _0x301444=_0x1a9357,_0x2d6454=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x2ad90a=_0x1b8d32['replace'](_0x2d6454,'');if(_0x1db788){const _0x5bf31f=_0x2e8a5e(_0x1db788),_0x1d5cba=new RegExp('<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])'+_0x5bf31f+'\x5c1[^>]*>\x5cs*</script>','gi');_0x2ad90a=_0x2ad90a[_0x301444(0x151)](_0x1d5cba,'');}return _0x2ad90a;}function _0x2e8a5e(_0x4b0423){const _0x446d85=_0x1a9357;return _0x4b0423[_0x446d85(0x151)](/[-/\\^$*+?.()|[\]{}]/g,_0x446d85(0x1d4));}function _0x20592c(_0x4a97bb,_0x3ab24e){const _0x5cc657=_0x1a9357,_0x5306c4=_0x11b935=>_0x10e90a(_0x4a97bb,_0x11b935),_0x71206f=_0x438928=>_0x3a219b(_0x4a97bb,_0x438928);return _0x3ab24e[_0x5cc657(0x151)](/<script\b[^>]*>/gi,_0x5306c4)['replace'](/<link\b[^>]*>/gi,_0x71206f);}function _0x1d0265(_0x53a2a5){const _0xed7458=_0x1a9357;return _0x53a2a5[_0xed7458(0x151)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x10e90a(_0x21de79,_0x50c80b){const _0x4e237c=_0x1a9357,_0x4c1ca9=_0x23b8ae(_0x50c80b,_0x4e237c(0x1c4));if(!_0x4c1ca9)return _0x50c80b;const _0x2f9a25=_0x960ed4(_0x21de79,_0x4c1ca9['value']);if(!_0x2f9a25||_0x2f9a25===_0x4c1ca9['value'])return _0x50c80b;const _0x5eca4d=_0x4c1ca9[_0x4e237c(0x1df)][_0x4e237c(0x151)](_0x4c1ca9[_0x4e237c(0xf9)],_0x2f9a25);return _0x50c80b[_0x4e237c(0x151)](_0x4c1ca9[_0x4e237c(0x1df)],_0x5eca4d);}function _0x3a219b(_0x39a54b,_0x3f6529){const _0x89d6ea=_0x1a9357,_0x41c552=_0x3f6529[_0x89d6ea(0x11e)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x41c552)return _0x3f6529;const _0x337461=_0x41c552[0x2][_0x89d6ea(0x16a)]();if(_0x337461!=='stylesheet'&&_0x337461!==_0x89d6ea(0x1cc))return _0x3f6529;const _0x2c1096=_0x23b8ae(_0x3f6529,'href');if(!_0x2c1096)return _0x3f6529;const _0x3071f1=_0x960ed4(_0x39a54b,_0x2c1096[_0x89d6ea(0xf9)]);if(!_0x3071f1||_0x3071f1===_0x2c1096[_0x89d6ea(0xf9)])return _0x3f6529;const _0x1b157d=_0x2c1096[_0x89d6ea(0x1df)][_0x89d6ea(0x151)](_0x2c1096[_0x89d6ea(0xf9)],_0x3071f1);return _0x3f6529['replace'](_0x2c1096[_0x89d6ea(0x1df)],_0x1b157d);}function _0x23b8ae(_0x4f8cd9,_0x1f8afe){const _0x245311=_0x1a9357,_0x1cfc09=new RegExp(_0x1f8afe+'\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','i'),_0x2f3614=_0x4f8cd9[_0x245311(0x11e)](_0x1cfc09);if(!_0x2f3614)return null;return{'full':_0x2f3614[0x0],'value':_0x2f3614[0x2]};}function _0x960ed4(_0x4cbd69,_0x29ba62){const _0x515368=_0x1a9357,_0x2a72aa=_0x158f86(_0x29ba62);if(!_0x2a72aa)return null;if(_0x2a72aa[_0x515368(0x1f5)]===self[_0x515368(0x1a8)][_0x515368(0x1f5)])return''+_0x2a72aa[_0x515368(0xef)]+_0x2a72aa[_0x515368(0x1ab)];return null;}function _0x158f86(_0x5a81c9){const _0x9675be=_0x1a9357;try{return new URL(_0x5a81c9,self['location'][_0x9675be(0x1f5)]);}catch{return null;}}var _0x231999=_0x1a9357(0x11b);async function _0x3b12bf(_0x34d706,_0x362fd9,_0x17acd7,_0x3bb4ae=!![]){const _0x3a83bb=_0x1a9357;console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x11d)),console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x190)+_0x17acd7),console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0xe9)+_0x3bb4ae),console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x170)+_0x34d706[_0x3a83bb(0x1d8)]);const _0x2d64f0=_0x362fd9[_0x3a83bb(0xeb)](),_0x4d7966=await _0x2d64f0['text']();console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x1fd)+_0x4d7966[_0x3a83bb(0xf7)]+_0x3a83bb(0x1da)),console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x1ae));const _0x4c669e=_0x1d0265(_0x4d7966);console['log'](_0x231999+_0x3a83bb(0x19d));let _0x48b93f=_0x20592c(_0x34d706,_0x4c669e);_0x17acd7===_0x3a83bb(0x136)?(console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x113)),_0x48b93f=_0x3fd63e(_0x34d706,_0x48b93f)):console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x107));_0x3bb4ae?(console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x1fe)),_0x48b93f=_0x1d83b1(_0x34d706,_0x48b93f)):console['log'](_0x231999+_0x3a83bb(0x17c));console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x134)+_0x48b93f[_0x3a83bb(0xf7)]+_0x3a83bb(0x1da));const _0x1da31b=new Headers(_0x2d64f0[_0x3a83bb(0x1b0)]);_0x1da31b[_0x3a83bb(0x126)](_0x3a83bb(0x119),'no-store'),_0x1da31b[_0x3a83bb(0x126)](_0x3a83bb(0x17b),_0x3a83bb(0x171)),_0x1da31b['set']('x-enhance-document-source',_0x17acd7),_0x2545bb(_0x1da31b);if(_0x34d706[_0x3a83bb(0x1d8)]!==_0x3a83bb(0x1e2)){console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x19b));const _0xdc41a9=_0x1da31b[_0x3a83bb(0x14c)](_0x3a83bb(0x16b));_0x1da31b[_0x3a83bb(0x126)](_0x3a83bb(0x16b),_0x1173f3(_0xdc41a9)),_0x1da31b['delete'](_0x3a83bb(0x16d)),_0x1da31b[_0x3a83bb(0x166)](_0x3a83bb(0x165)),_0x1da31b[_0x3a83bb(0x166)]('cross-origin-resource-policy');}else console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x1bb));return console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x1f9)),new Response(_0x48b93f,{'status':_0x2d64f0[_0x3a83bb(0x1ea)],'statusText':_0x2d64f0[_0x3a83bb(0x1f2)],'headers':_0x1da31b});}var _0x6025b9='[Enhance\x20SW]';console['log'](_0x6025b9+'\x20Service\x20Worker\x20script\x20loaded\x20at\x20'+new Date()[_0x1a9357(0x13a)]());var _0x3a31fa={'overlayPath':_0x1a9357(0x15b),'backendUrl':_0x1a9357(0x178),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x1a9357(0x120),'swPath':'/sw-enhance.js'};console[_0x1a9357(0x1a9)](_0x6025b9+'\x20Build\x20config:',JSON[_0x1a9357(0x197)](_0x3a31fa,null,0x2));var _0x2b743f={'callbackBypass':[_0x1a9357(0x13d)],'securityMode':_0x1a9357(0x1e8)},_0x54e4fc=null,_0x7b9732=null;function _0x2eeb80(_0x230afa,_0x22ac2c){const _0x122ad3=_0x1a9357,_0x1bc076=_0x230afa['searchParams']['get'](_0x122ad3(0x139));if(_0x22ac2c&&_0x1bc076){console[_0x122ad3(0x1a9)](_0x6025b9+'\x20Caching\x20enhancementUrl\x20from\x20navigation:\x20'+_0x1bc076),_0x54e4fc=_0x1bc076;try{_0x7b9732=new URL(_0x1bc076);}catch{console[_0x122ad3(0x1d0)](_0x6025b9+'\x20Failed\x20to\x20parse\x20enhancementUrl:\x20'+_0x1bc076),_0x7b9732=null;}}_0x22ac2c&&!_0x1bc076&&(_0x54e4fc&&console[_0x122ad3(0x1a9)](_0x6025b9+_0x122ad3(0x1fa)),_0x54e4fc=null,_0x7b9732=null);const _0x5a50d2=_0x1bc076||_0x54e4fc||'',_0x5924ef=_0x1bc076?((()=>{if(_0x1bc076===_0x54e4fc)return _0x7b9732;try{return new URL(_0x1bc076);}catch{return null;}})()):_0x7b9732;return{..._0x3a31fa,..._0x2b743f,'enhancementUrl':_0x5a50d2,'enhancementBase':_0x5924ef,'callbackBypassNormalized':_0x2b743f[_0x122ad3(0x114)][_0x122ad3(0x1b5)](_0x4c0158=>_0x4c0158[_0x122ad3(0x174)]('/')?_0x4c0158:'/'+_0x4c0158)};}function _0x305b1e(_0x4f285f,_0x4a9957,..._0x44a6df){const _0x5e5739=_0x1a9357;_0x4f285f==='info'?console[_0x5e5739(0x19e)](_0x6025b9,_0x4a9957,..._0x44a6df):console[_0x5e5739(0x10f)](_0x6025b9,_0x4a9957,..._0x44a6df);}self['addEventListener']('install',_0x2d0abe=>{const _0x5b2ad1=_0x1a9357;console[_0x5b2ad1(0x1a9)](_0x6025b9+_0x5b2ad1(0x194)),_0x2d0abe[_0x5b2ad1(0x1ac)](((async()=>{const _0x157f91=_0x5b2ad1;console[_0x157f91(0x1a9)](_0x6025b9+_0x157f91(0x110)),await self[_0x157f91(0x167)](),console[_0x157f91(0x1a9)](_0x6025b9+_0x157f91(0x1c9));})()));}),self[_0x1a9357(0x14a)](_0x1a9357(0x123),_0x5b8ef7=>{const _0x22e408=_0x1a9357;console[_0x22e408(0x1a9)](_0x6025b9+'\x20ACTIVATE\x20event'),_0x5b8ef7[_0x22e408(0x1ac)](((async()=>{const _0xcd2331=_0x22e408;console[_0xcd2331(0x1a9)](_0x6025b9+_0xcd2331(0x146)),await self['clients'][_0xcd2331(0x202)](),console[_0xcd2331(0x1a9)](_0x6025b9+'\x20clients.claim()\x20complete');})()));}),self['addEventListener'](_0x1a9357(0xee),_0x1beca3=>{const _0x2f15df=_0x1a9357,_0x349d77=_0x1beca3[_0x2f15df(0x10e)];console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x15c),_0x349d77);if(!_0x349d77||typeof _0x349d77!==_0x2f15df(0x1cd)){console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0xf8));return;}switch(_0x349d77[_0x2f15df(0x176)]){case _0x6d5c9b:{console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x158));const _0x2526be=_0x349d77['config'];_0x2b743f={'callbackBypass':_0x2526be['callbackBypass']??['/auth/callback'],'securityMode':_0x2526be[_0x2f15df(0x1d8)]??_0x2f15df(0x1e8)},console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x1f4),JSON['stringify'](_0x2b743f,null,0x2));break;}case _0x479bd3:console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x131)),_0x2b743f={'callbackBypass':[_0x2f15df(0x13d)],'securityMode':_0x2f15df(0x1e8)},_0x54e4fc=null,_0x7b9732=null,console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x1dd));break;default:console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x16c)+_0x349d77[_0x2f15df(0x176)]);break;}}),self['addEventListener']('fetch',_0x5755b9=>{_0x5755b9['respondWith'](_0xe162f4(_0x5755b9));});async function _0xe162f4(_0x5638a0){const _0x135ff5=_0x1a9357,{request:_0x402aef}=_0x5638a0,_0x431274=new URL(_0x402aef['url']),_0x2f8a63=_0x402aef[_0x135ff5(0xfa)]==='navigate',_0x7d1389=_0x2f8a63||_0x431274['origin']===self['location'][_0x135ff5(0x1f5)];_0x7d1389&&(console['log'](_0x6025b9+'\x20FETCH:\x20'+_0x402aef[_0x135ff5(0x181)]+'\x20'+_0x431274[_0x135ff5(0xef)]+_0x431274['search']),console['log'](_0x6025b9+_0x135ff5(0x18f)+_0x402aef['mode']+_0x135ff5(0xea)+_0x402aef[_0x135ff5(0x15a)]));const _0x3218b7=_0x2eeb80(_0x431274,_0x2f8a63);_0x7d1389&&console['log'](_0x6025b9+_0x135ff5(0x1f7)+(_0x3218b7[_0x135ff5(0x139)]||'none'));if(!_0x3ef8a4(_0x402aef))return _0x7d1389&&console[_0x135ff5(0x1a9)](_0x6025b9+'\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)'),fetch(_0x402aef);if(_0x4f8233(_0x3218b7,_0x431274[_0x135ff5(0xef)]))return _0x7d1389&&console[_0x135ff5(0x1a9)](_0x6025b9+_0x135ff5(0x1ca)+_0x431274[_0x135ff5(0xef)]+'\x20matches\x20callbackBypass'),fetch(_0x402aef);if(_0x2f8a63)return console[_0x135ff5(0x1a9)](_0x6025b9+_0x135ff5(0x1f8)),_0x310357(_0x402aef,_0x3218b7);if(!_0x15d05b(_0x3218b7,_0x402aef,_0x431274))return _0x7d1389&&console[_0x135ff5(0x1a9)](_0x6025b9+'\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)'),fetch(_0x402aef);console[_0x135ff5(0x1a9)](_0x6025b9+_0x135ff5(0x153)+_0x431274['pathname']);const _0xc02b04=await _0x5efff7(_0x3218b7,_0x402aef,_0x431274);if(_0xc02b04)return console['log'](_0x6025b9+_0x135ff5(0x104)+_0x431274[_0x135ff5(0xef)]),_0xc02b04;return console[_0x135ff5(0x1a9)](_0x6025b9+_0x135ff5(0x205)+_0x431274[_0x135ff5(0xef)]+_0x135ff5(0x1ff)),fetch(_0x402aef);}async function _0x310357(_0x240f9f,_0x27c6c5){const _0x4acf06=_0x1a9357,_0x244c91=new URL(_0x240f9f['url']);console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x11a)+_0x244c91[_0x4acf06(0xef)]+_0x244c91[_0x4acf06(0x1ab)]),console['log'](_0x6025b9+'\x20\x20\x20enhancementUrl\x20in\x20config:\x20'+(_0x27c6c5[_0x4acf06(0x139)]||_0x4acf06(0x192))),console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x168));const _0x277e8e=await fetch(_0x240f9f);console['log'](_0x6025b9+_0x4acf06(0x1ba)+_0x277e8e['status']+'\x20'+_0x277e8e[_0x4acf06(0x1f2)]),console['log'](_0x6025b9+_0x4acf06(0x188)+_0x277e8e[_0x4acf06(0x1b0)][_0x4acf06(0x14c)](_0x4acf06(0x1ed)));if(!_0x1f0ed0(_0x277e8e))return console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x10b)),_0x277e8e;console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x183));const _0x1cf821=_0x1a1d38(_0x277e8e,'GET');console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x12b));const _0x4d508d=await _0x411c39(_0x27c6c5,_0x240f9f),_0x31378f=_0x4d508d?'enhancement':_0x4acf06(0x140);console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x1bd)+_0x31378f);const _0x3e0a94=_0x4d508d??_0x1cf821,_0x187e25=_0x31378f===_0x4acf06(0x136)||_0x244c91[_0x4acf06(0x147)]['has'](_0x4acf06(0x184))||_0x244c91[_0x4acf06(0x147)]['has'](_0x4acf06(0x136))||_0x244c91[_0x4acf06(0x147)][_0x4acf06(0x14b)](_0x4acf06(0x139));console['log'](_0x6025b9+'\x20\x20\x20shouldInjectOverlay:\x20'+_0x187e25);try{console['log'](_0x6025b9+_0x4acf06(0xed));const _0x528384=await _0x3b12bf(_0x27c6c5,_0x3e0a94,_0x31378f,_0x187e25);return console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x14e)),_0x528384;}catch(_0x1df889){return console[_0x4acf06(0x1d0)](_0x6025b9+'\x20\x20\x20Failed\x20to\x20rewrite\x20document:',_0x1df889),_0x305b1e('info','Failed\x20to\x20rewrite\x20document',_0x1df889),_0x3e0a94;}}return _0x42d8cc(_0x57d10a);})());
|
package/dist/vite/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2fa6f0=_0x3308;function _0x1404(){var _0xa2f876=['12539984TDVPXb','message','enhance-runtime.js','[enhance-sandbox]\x20Vite\x20publicDir\x20is\x20disabled,\x20not\x20copying\x20assets.','[enhance-sandbox]\x20Failed\x20to\x20copy\x20assets\x20to\x20public\x20dir:\x20','logger','publicDir','4MxKNza','../assets/enhance-runtime.js','sw-enhance.js','1208990jfrhsn','catch','36idxkwz','1375577NQfTiG','5511908qKseTp','269718dDvdMt','url','38919780sJfzsr','../sw-enhance.js','enhance-sandbox','[enhance-sandbox]\x20Copied\x20runtime\x20and\x20service\x20worker\x20into\x20public/__enhance__','warn','error','assets','info','893893TvdIQc'];_0x1404=function(){return _0xa2f876;};return _0x1404();}(function(_0x1ec289,_0x994054){var _0x4c22e5=_0x3308,_0x332d04=_0x1ec289();while(!![]){try{var _0x2593d8=parseInt(_0x4c22e5(0xd0))/0x1+parseInt(_0x4c22e5(0xd8))/0x2*(parseInt(_0x4c22e5(0xe0))/0x3)+-parseInt(_0x4c22e5(0xdf))/0x4+parseInt(_0x4c22e5(0xdb))/0x5*(-parseInt(_0x4c22e5(0xdd))/0x6)+-parseInt(_0x4c22e5(0xde))/0x7+-parseInt(_0x4c22e5(0xd1))/0x8+parseInt(_0x4c22e5(0xc8))/0x9;if(_0x2593d8===_0x994054)break;else _0x332d04['push'](_0x332d04['shift']());}catch(_0x6dbce){_0x332d04['push'](_0x332d04['shift']());}}}(_0x1404,0xc49e7));import{fileURLToPath}from'url';function _0x3308(_0x35bde7,_0x4fd492){var _0x1404fc=_0x1404();return _0x3308=function(_0x33080b,_0x1432db){_0x33080b=_0x33080b-0xc7;var _0x564430=_0x1404fc[_0x33080b];return _0x564430;},_0x3308(_0x35bde7,_0x4fd492);}import{dirname,join}from'path';import{mkdir,copyFile}from'fs/promises';var thisFile=fileURLToPath(import.meta[_0x2fa6f0(0xc7)]),pluginDir=dirname(thisFile),runtimePath=fileURLToPath(new URL(_0x2fa6f0(0xd9),import.meta[_0x2fa6f0(0xc7)])),swPath=fileURLToPath(new URL(_0x2fa6f0(0xc9),import.meta['url']));async function copyAssetsToPublic(_0x3e9f59){var _0x30dadc=_0x2fa6f0;const _0x2b987c=_0x3e9f59[_0x30dadc(0xd7)];if(!_0x2b987c){_0x3e9f59[_0x30dadc(0xd6)][_0x30dadc(0xcc)](_0x30dadc(0xd4));return;}const _0x59ed99=join(_0x2b987c,_0x30dadc(0xce));await mkdir(_0x59ed99,{'recursive':!![]}),await copyFile(runtimePath,join(_0x59ed99,_0x30dadc(0xd3))),await copyFile(swPath,join(_0x2b987c,_0x30dadc(0xda))),_0x3e9f59['logger'][_0x30dadc(0xcf)](_0x30dadc(0xcb));}var enhanceSandboxPlugin=()=>{var _0x2c2123=_0x2fa6f0;let _0x1c30d3=![];return{'name':_0x2c2123(0xca),'configResolved'(_0x56008d){var _0x561beb=_0x2c2123;if(_0x1c30d3)return;_0x1c30d3=!![],copyAssetsToPublic(_0x56008d)[_0x561beb(0xdc)](_0x4cbffa=>{var _0x2ffc5f=_0x561beb;_0x56008d[_0x2ffc5f(0xd6)][_0x2ffc5f(0xcd)](_0x2ffc5f(0xd5)+_0x4cbffa[_0x2ffc5f(0xd2)]);});}};};export{enhanceSandboxPlugin};
|