@enhance-eng/sandbox 0.3.21-beta.fdfcd31 → 0.3.21-dev.a1057ef
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 +1 -3
- package/dist/index.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
|
-
function _0x302f(){const _0x5bf996=['disable','@enhance-eng/sandbox','\x20resolveWorker:','\x20First\x20initialization','enabled','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Available\x20exports:',',\x20expected=','object','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','bottom-right','\x20setupRemoteHMR()\x20for\x20','sw-enhance','enableOverlayHmr','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20SW\x20ready!\x20Active:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','querySelector','\x20React\x20Refresh\x20already\x20installed\x20for\x20','controlled','stringify','^8.5.1','off','register','none','swPath','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Unregistering\x20any\x20existing\x20SW...','search','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Calling\x20createOverlay()...','\x20Starting\x20SW\x20registration\x20(async)...','overlay','backendUrl','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','./dev/vite/index.d.ts',',\x20currentOptions:\x20','./dev/index.js','\x20Service\x20workers\x20supported','waiting','1044064bLQsSq','__enhanceOptions','reload','\x20init()\x20called\x20at\x20','scope','string',',\x20owns=','3690428YqbSfi','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20No\x20window\x20object\x20-\x20skipping','injectIntoGlobalHook','dev/','__vite_plugin_react_preamble_installed__','\x20Config\x20sent\x20to\x20SW','\x20Unregistering\x20SW...','has','unregister','[data-enhance-runtime-bootstrap]','serviceWorker','\x20Updating\x20overlay\x20with\x20state:','\x20Enhancement\x20detection:\x20wasEnhanced=','39IqElrr','toLowerCase','includes','\x20Module\x20imported\x20in\x20','callbackBypass','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20HMR\x20setup\x20complete','\x20updateOverlay()\x20called','https://assets.enhancelabs.ai/overlay.js','runtimeURL','enhancementUrl','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','overlayPath','^11.1.0','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','https://api.enhancelabs.ai','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','href','2331280PNbTOc','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','tsc\x20--noEmit','startsWith','controller','\x20ownsServiceWorker?\x20scriptURL=','undefined','\x20Setting\x20up\x20remote\x20HMR...','scriptURL','security','\x20Module\x20exports:','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','createOverlay','state:\x20','643212xXVDrv','\x20Registering\x20SW\x20at\x20','__enhanceController','$RefreshReg$','0.0.0','\x20No\x20blocking\x20SW\x20found','appError','__enhanceReactRefreshInstalledOrigins','warn','some','^24.10.1','\x20Current\x20controller\x20after\x20ready:','102425PoNRDk','__viteHMRLoaded','0.3.21','\x20Invalid\x20React\x20Refresh\x20runtime','/assets/enhance-runtime.js',',\x20page\x20origin:\x20','permissive','138374htgTHM','public','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','/@vite/client','./dev/index.d.ts','\x20detectBlocking\x20error:','...','position','\x20Starting\x20fresh\x20overlay\x20load...','hasEnhancement','^3.22.4','keys','\x20Calling\x20updateOverlay()...','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20Updating\x20overlay...','vite:error','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20currentOptions\x20exists:\x20','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','add','module','installing','enableViteHmr','__development','1843134lYnoEE','replace','postMessage','\x20Enhancement\x20mode\x20ENABLED','options','log','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20Overlay\x20update\x20complete','/sw-enhance.js','\x20loadOverlay()\x20failed:','origin','\x20Vite\x20error\x20detected:','publishableKey','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','getRegistration','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20state.enabled:\x20','trim','now','enhancement','enhancementId','\x20composeOverlayState\x20-\x20state.enabled:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','^7.2.4','serviceWorkerURL','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','^4.1.1','\x20Checking\x20for\x20blocking\x20service\x20worker...','false','__enhanceInitialized','delete','version','/@react-refresh','\x20Controller\x20created:','\x20Controller\x20state:','\x20registerServiceWorker()\x20called','active','enable','\x20Vite\x20client\x20already\x20loaded\x20for\x20','__enhanceOverlay','\x20init()\x20complete\x20-\x20normal\x20mode','onToggle','init','title','location','state','searchParams','\x20enableViteHmr:\x20','\x20swPath:\x20','default','[Enhance\x20Overlay]','get','enhance','error','vite:beforeUpdate','\x20overlayController\x20exists:\x20','function','\x20Registration\x20returned:','update','\x20Starting\x20overlay\x20load\x20(async)...','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20URL\x20params\x20parsed:','\x20Current\x20controller:','N/A'];_0x302f=function(){return _0x5bf996;};return _0x302f();}const _0x4057b5=_0x5399;(function(_0x18e0ae,_0x3840dd){const _0x49b043=_0x5399,_0x5e333f=_0x18e0ae();while(!![]){try{const _0x33d3e2=-parseInt(_0x49b043(0x1c5))/0x1+-parseInt(_0x49b043(0x20f))/0x2*(-parseInt(_0x49b043(0x1da))/0x3)+parseInt(_0x49b043(0x1fc))/0x4+parseInt(_0x49b043(0x208))/0x5+parseInt(_0x49b043(0x22b))/0x6+parseInt(_0x49b043(0x1cc))/0x7+-parseInt(_0x49b043(0x1ee))/0x8;if(_0x33d3e2===_0x3840dd)break;else _0x5e333f['push'](_0x5e333f['shift']());}catch(_0x1ff3dc){_0x5e333f['push'](_0x5e333f['shift']());}}}(_0x302f,0x8d836));var DEFAULT_OVERLAY_PATH=!![]?'https://assets.enhancelabs.ai/overlay.js':_0x4057b5(0x1e2),DEFAULT_BACKEND_URL=!![]?'https://api.enhancelabs.ai':_0x4057b5(0x1e9),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x4057b5(0x230)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x2a3883){const _0x1779bf=_0x4057b5;if(!_0x2a3883[_0x1779bf(0x237)])throw new Error('[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()');const _0x40905c=_0x2a3883[_0x1779bf(0x22a)]??{};return{'publishableKey':_0x2a3883['publishableKey'],'callbackBypass':_0x2a3883[_0x1779bf(0x1de)]??[],'overlay':{'enabled':!![],'position':_0x1779bf(0x1a7),'enableViteHmr':_0x40905c[_0x1779bf(0x1aa)]??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x1779bf(0x233),'overlayPath':_0x40905c['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x1779bf(0x20c),'security':_0x40905c['security']??_0x1779bf(0x20e),'backendUrl':_0x40905c[_0x1779bf(0x1be)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x367e0e=_0x4057b5;try{const _0x205063=new URLSearchParams(window[_0x367e0e(0x259)][_0x367e0e(0x1b9)]);return _0x205063[_0x367e0e(0x18f)](_0x367e0e(0x240))?.[_0x367e0e(0x23e)]()||'';}catch{return'';}}var LOG_PREFIX=_0x4057b5(0x25f),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x4f42ea){const _0xb5f371=_0x4057b5;console[_0xb5f371(0x230)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0xb5f371(0x230)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x4f42ea[_0xb5f371(0x1e6)]),console[_0xb5f371(0x230)](LOG_PREFIX+_0xb5f371(0x25c)+_0x4f42ea[_0xb5f371(0x229)]),currentOptions=_0x4f42ea[_0xb5f371(0x22f)],toggleHandler=_0x4f42ea[_0xb5f371(0x256)];if(overlayController){console[_0xb5f371(0x230)](LOG_PREFIX+_0xb5f371(0x1a1)),updateOverlay();return;}if(overlayLoadPromise)return console[_0xb5f371(0x230)](LOG_PREFIX+_0xb5f371(0x1bf)),overlayLoadPromise;console[_0xb5f371(0x230)](LOG_PREFIX+_0xb5f371(0x217)),overlayLoadPromise=doLoadOverlay(_0x4f42ea);try{await overlayLoadPromise,console[_0xb5f371(0x230)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x5327f8){console[_0xb5f371(0x191)](LOG_PREFIX+_0xb5f371(0x234),_0x5327f8);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x121a92){const _0x412385=_0x4057b5;console[_0x412385(0x230)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x412385(0x1f4)){console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1ce));return;}if(window[_0x412385(0x254)]){console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1ba)),overlayController=window['__enhanceOverlay'];return;}console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1b7));try{_0x121a92[_0x412385(0x229)]&&(console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1f5)),await setupRemoteHMR(_0x121a92[_0x412385(0x1e6)]));console[_0x412385(0x230)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x121a92[_0x412385(0x1e6)]);const _0x1607c6=Date[_0x412385(0x23f)](),_0x1f5954=await import(_0x121a92[_0x412385(0x1e6)]);console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1dd)+(Date[_0x412385(0x23f)]()-_0x1607c6)+'ms'),console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1f8),Object[_0x412385(0x21a)](_0x1f5954));if(typeof _0x1f5954?.[_0x412385(0x1fa)]!=='function'){console[_0x412385(0x191)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x412385(0x191)](LOG_PREFIX+_0x412385(0x1a2),Object[_0x412385(0x21a)](_0x1f5954));return;}console['log'](LOG_PREFIX+_0x412385(0x1bb));const _0x1c20bc=_0x1f5954['createOverlay']();console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x24e),_0x1c20bc),overlayController=_0x1c20bc,window[_0x412385(0x254)]=_0x1c20bc,_0x1c20bc[_0x412385(0x256)](_0x121a92[_0x412385(0x256)]),console['log'](LOG_PREFIX+_0x412385(0x1df)),console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x21b)),updateOverlay();}catch(_0x1bcd12){console[_0x412385(0x191)](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x1bcd12);}}function updateOverlay(){const _0x1ac72a=_0x4057b5;console[_0x1ac72a(0x230)](LOG_PREFIX+_0x1ac72a(0x1e1)),console[_0x1ac72a(0x230)](LOG_PREFIX+_0x1ac72a(0x193)+!!overlayController),console[_0x1ac72a(0x230)](LOG_PREFIX+_0x1ac72a(0x224)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0x1ac72a(0x223));return;}const _0xb3efe6=composeOverlayState(currentOptions);console[_0x1ac72a(0x230)](LOG_PREFIX+_0x1ac72a(0x1d8),JSON[_0x1ac72a(0x1b1)](_0xb3efe6,null,0x2)),overlayController[_0x1ac72a(0x196)](_0xb3efe6),console['log'](LOG_PREFIX+_0x1ac72a(0x232));}function composeOverlayState(_0x41d627){const _0x51af48=_0x4057b5,_0x3bf3ef=getEnhancementId();return console[_0x51af48(0x230)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x3bf3ef),console[_0x51af48(0x230)](LOG_PREFIX+_0x51af48(0x242)+state[_0x51af48(0x1a0)]),console[_0x51af48(0x230)](LOG_PREFIX+_0x51af48(0x231)+state[_0x51af48(0x1b0)]),{'enhancementId':_0x3bf3ef,'enabled':state['enabled'],'controlled':state[_0x51af48(0x1b0)],'overlayPosition':_0x41d627[_0x51af48(0x1bd)][_0x51af48(0x216)],'securityMode':_0x41d627[_0x51af48(0x1f7)],'backendBaseUrl':_0x41d627[_0x51af48(0x1be)],'appError':state['appError']};}async function setupRemoteHMR(_0x1f95d5){const _0x45dee3=_0x4057b5;console['log'](LOG_PREFIX+_0x45dee3(0x1a8)+_0x1f95d5);if(typeof window==='undefined')return;try{const _0x569bcb=new URL(_0x1f95d5,window['location']['origin']),_0x301c69=_0x569bcb[_0x45dee3(0x235)];console[_0x45dee3(0x230)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x301c69+_0x45dee3(0x20d)+window[_0x45dee3(0x259)]['origin']);if(_0x301c69===window[_0x45dee3(0x259)][_0x45dee3(0x235)]){console[_0x45dee3(0x230)](LOG_PREFIX+_0x45dee3(0x1cd));return;}console[_0x45dee3(0x230)](LOG_PREFIX+_0x45dee3(0x1eb)),await ensureReactRefreshPreamble(_0x301c69),await ensureViteClient(_0x301c69),console[_0x45dee3(0x230)](LOG_PREFIX+_0x45dee3(0x1e0));}catch(_0x541ede){console[_0x45dee3(0x204)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x541ede);}}async function ensureReactRefreshPreamble(_0x535598){const _0x46c33b=_0x4057b5;window['__enhanceReactRefreshInstalledOrigins']??(window[_0x46c33b(0x203)]=new Set());if(window[_0x46c33b(0x203)][_0x46c33b(0x1d4)](_0x535598)){console[_0x46c33b(0x230)](LOG_PREFIX+_0x46c33b(0x1af)+_0x535598);return;}console[_0x46c33b(0x230)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x535598+_0x46c33b(0x215));const _0x3fa1af=await import(_0x535598+_0x46c33b(0x24d)),_0x3fa5c0=_0x3fa1af&&typeof _0x3fa1af===_0x46c33b(0x1a4)&&_0x46c33b(0x25e)in _0x3fa1af?_0x3fa1af[_0x46c33b(0x25e)]:_0x3fa1af;if(!isRefreshRuntime(_0x3fa5c0)){console[_0x46c33b(0x204)](LOG_PREFIX+_0x46c33b(0x20b));return;}_0x3fa5c0[_0x46c33b(0x1cf)](window),window[_0x46c33b(0x1ff)]=()=>{},window['$RefreshSig$']=()=>_0x3ab11c=>_0x3ab11c,window[_0x46c33b(0x1d1)]=!![],window[_0x46c33b(0x203)][_0x46c33b(0x226)](_0x535598),console[_0x46c33b(0x230)](LOG_PREFIX+_0x46c33b(0x1e8)+_0x535598);}async function ensureViteClient(_0x1325e6){const _0x2e501f=_0x4057b5;window['__viteHMRLoaded']??(window[_0x2e501f(0x209)]=new Set());if(window[_0x2e501f(0x209)][_0x2e501f(0x1d4)](_0x1325e6)){console[_0x2e501f(0x230)](LOG_PREFIX+_0x2e501f(0x253)+_0x1325e6);return;}console[_0x2e501f(0x230)](LOG_PREFIX+_0x2e501f(0x1a6)+_0x1325e6+_0x2e501f(0x215)),await import(_0x1325e6+_0x2e501f(0x212)),window[_0x2e501f(0x209)][_0x2e501f(0x226)](_0x1325e6),console['log'](LOG_PREFIX+_0x2e501f(0x211)+_0x1325e6);}function isRefreshRuntime(_0x243010){const _0x1dbae1=_0x4057b5;return typeof _0x243010==='object'&&_0x243010!==null&&_0x1dbae1(0x1cf)in _0x243010&&typeof _0x243010[_0x1dbae1(0x1cf)]===_0x1dbae1(0x194);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x4672ab){const _0x414168=_0x4057b5;console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x250)),console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x25d)+_0x4672ab[_0x414168(0x1b6)]);if(!(_0x414168(0x1d7)in navigator)){console[_0x414168(0x204)](LOG_PREFIX2+_0x414168(0x21c));return;}console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x1c3));const _0x231d9d=navigator[_0x414168(0x1d7)][_0x414168(0x1f2)];console['log'](LOG_PREFIX2+_0x414168(0x19a),_0x231d9d?.[_0x414168(0x1f6)]??_0x414168(0x1b5)),console['log'](LOG_PREFIX2+_0x414168(0x24f),_0x231d9d?.['state']??_0x414168(0x19b));const _0x425576=!!_0x231d9d;currentOptions2=_0x4672ab,console['log'](LOG_PREFIX2+_0x414168(0x248));const _0x2c994e=await detectBlockingServiceWorker(_0x4672ab['swPath']);if(_0x2c994e){console[_0x414168(0x191)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x2c994e),console['error'](LOG_PREFIX2+_0x414168(0x1f9));return;}console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x201));try{console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x1fd)+_0x4672ab[_0x414168(0x1b6)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x414168(0x1d7)][_0x414168(0x1b4)](_0x4672ab[_0x414168(0x1b6)],{'scope':'/'}),console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x195),{'scope':registration[_0x414168(0x1c9)],'active':registration[_0x414168(0x251)]?.[_0x414168(0x1f6)],'waiting':registration[_0x414168(0x1c4)]?.[_0x414168(0x1f6)],'installing':registration[_0x414168(0x228)]?.['scriptURL']}),console['log'](LOG_PREFIX2+_0x414168(0x1ea));const _0xf9c924=await navigator['serviceWorker']['ready'];console['log'](LOG_PREFIX2+_0x414168(0x1ac),_0xf9c924[_0x414168(0x251)]?.[_0x414168(0x1f6)]);const _0x5bd92d=ownsCurrentController(_0x4672ab['swPath']);state[_0x414168(0x1b0)]=_0x5bd92d,console['log'](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x5bd92d),console['log'](LOG_PREFIX2+_0x414168(0x207),navigator['serviceWorker']['controller']?.[_0x414168(0x1f6)]??_0x414168(0x1b5));if(!_0x425576&&!navigator[_0x414168(0x1d7)][_0x414168(0x1f2)]){console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x1ef)),window[_0x414168(0x259)]['reload']();return;}console['log'](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x414168(0x1a0)]){const _0x25ae65=document[_0x414168(0x1ae)](_0x414168(0x1d6))!==null;console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x1d9)+_0x25ae65);if(!_0x25ae65){console['log'](LOG_PREFIX2+_0x414168(0x1a5)),window['location'][_0x414168(0x1c7)]();return;}}console['log'](LOG_PREFIX2+_0x414168(0x21d)),updateOverlay(),console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x4cd436){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x4cd436);}}async function sendConfiguration(){const _0x37b558=_0x4057b5;console[_0x37b558(0x230)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0x37b558(0x230)](LOG_PREFIX2+_0x37b558(0x23d)+state[_0x37b558(0x1a0)]+_0x37b558(0x1c1)+!!currentOptions2);if(!state[_0x37b558(0x1a0)]||!currentOptions2){console[_0x37b558(0x230)](LOG_PREFIX2+_0x37b558(0x23b));return;}const _0x4fcc5c=await resolveWorker();if(!_0x4fcc5c){console['warn'](LOG_PREFIX2+_0x37b558(0x221));return;}const _0x43fa58={'publishableKey':currentOptions2[_0x37b558(0x237)],'callbackBypass':currentOptions2[_0x37b558(0x1de)],'securityMode':currentOptions2[_0x37b558(0x1f7)]};console['log'](LOG_PREFIX2+_0x37b558(0x220),JSON[_0x37b558(0x1b1)](_0x43fa58,null,0x2)),_0x4fcc5c['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x43fa58}),console['log'](LOG_PREFIX2+_0x37b558(0x1d2));}async function unregisterServiceWorker(_0x5d740f){const _0x55ae8a=_0x4057b5;console[_0x55ae8a(0x230)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!('serviceWorker'in navigator)){console[_0x55ae8a(0x230)](LOG_PREFIX2+_0x55ae8a(0x222));return;}try{const _0x1e4a99=registration??await navigator[_0x55ae8a(0x1d7)][_0x55ae8a(0x23a)]('/');if(!_0x1e4a99){console[_0x55ae8a(0x230)](LOG_PREFIX2+_0x55ae8a(0x238));return;}console['log'](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x1e4a99['scope'],'active':_0x1e4a99['active']?.[_0x55ae8a(0x1f6)],'waiting':_0x1e4a99['waiting']?.['scriptURL'],'installing':_0x1e4a99[_0x55ae8a(0x228)]?.['scriptURL']});const _0x59fa31=[_0x1e4a99[_0x55ae8a(0x251)]?.[_0x55ae8a(0x1f6)],_0x1e4a99[_0x55ae8a(0x1c4)]?.['scriptURL'],_0x1e4a99['installing']?.[_0x55ae8a(0x1f6)]],_0x1f35ea=_0x59fa31[_0x55ae8a(0x205)](_0x35f7b8=>_0x35f7b8&&ownsServiceWorker(_0x35f7b8,_0x5d740f));if(!_0x1f35ea){console[_0x55ae8a(0x230)](LOG_PREFIX2+_0x55ae8a(0x1ec));return;}_0x1e4a99[_0x55ae8a(0x251)]&&(console[_0x55ae8a(0x230)](LOG_PREFIX2+_0x55ae8a(0x23c)),_0x1e4a99[_0x55ae8a(0x251)][_0x55ae8a(0x22d)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x55ae8a(0x230)](LOG_PREFIX2+_0x55ae8a(0x1d3)),await _0x1e4a99[_0x55ae8a(0x1d5)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0xc43bb9){console[_0x55ae8a(0x191)](LOG_PREFIX2+_0x55ae8a(0x21f),_0xc43bb9);}}function ownsServiceWorker(_0x25a87f,_0x4bb3fe){const _0x56dcb1=_0x4057b5,_0x13663c=typeof window!=='undefined'?window['location'][_0x56dcb1(0x235)]:'',_0x34a67e=new URL(_0x4bb3fe,_0x13663c||void 0x0)[_0x56dcb1(0x1ed)],_0x101bb5=_0x25a87f===_0x34a67e||_0x25a87f[_0x56dcb1(0x1dc)](_0x56dcb1(0x1a9));return console['log'](LOG_PREFIX2+_0x56dcb1(0x1f3)+_0x25a87f+_0x56dcb1(0x1a3)+_0x34a67e+_0x56dcb1(0x1cb)+_0x101bb5),_0x101bb5;}function ownsCurrentController(_0x2c4551){const _0x519e6a=_0x4057b5;if(typeof navigator===_0x519e6a(0x1f4))return![];const _0x5d690f=navigator[_0x519e6a(0x1d7)]?.['controller'];if(!_0x5d690f)return console[_0x519e6a(0x230)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x5d690f[_0x519e6a(0x1f6)],_0x2c4551);}async function detectBlockingServiceWorker(_0x1bbc9d){const _0x4cba5e=_0x4057b5;if(!navigator[_0x4cba5e(0x1d7)])return null;try{const _0x308db7=await navigator[_0x4cba5e(0x1d7)][_0x4cba5e(0x23a)]('/');console[_0x4cba5e(0x230)](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x308db7?.[_0x4cba5e(0x251)]?.[_0x4cba5e(0x1f6)]??'none');const _0x9dbd19=_0x308db7?.[_0x4cba5e(0x251)]?.['scriptURL'];if(!_0x9dbd19)return null;if(ownsServiceWorker(_0x9dbd19,_0x1bbc9d))return null;return _0x9dbd19;}catch(_0x4aaa06){return console[_0x4cba5e(0x191)](LOG_PREFIX2+_0x4cba5e(0x214),_0x4aaa06),null;}}async function resolveWorker(){const _0xdd0b=_0x4057b5,_0x4d91d9=registration??await navigator['serviceWorker']?.['getRegistration']('/'),_0x296f94=_0x4d91d9?.[_0xdd0b(0x251)]??_0x4d91d9?.['waiting']??_0x4d91d9?.[_0xdd0b(0x228)]??null;return console['log'](LOG_PREFIX2+_0xdd0b(0x19e),_0x296f94?.[_0xdd0b(0x1f6)]??'none',_0xdd0b(0x1fb)+(_0x296f94?.[_0xdd0b(0x25a)]??'N/A')),_0x296f94;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x368536=_0x4057b5;return typeof window!==_0x368536(0x1f4)&&window[_0x368536(0x24a)]===!![];}function setInitialized(_0xc115b2){typeof window!=='undefined'&&(window['__enhanceInitialized']=_0xc115b2);}function getOptions(){const _0x2cfdd3=_0x4057b5;return typeof window!==_0x2cfdd3(0x1f4)?window[_0x2cfdd3(0x1c6)]??null:null;}function setOptions(_0x975f27){const _0x4f3fa6=_0x4057b5;typeof window!=='undefined'&&(window[_0x4f3fa6(0x1c6)]=_0x975f27);}var Enhance={'init'(_0x41e898){const _0x34c4dc=_0x4057b5,_0x3a47b2=Date[_0x34c4dc(0x23f)]();console['log'](LOG_PREFIX3+_0x34c4dc(0x1c8)+_0x3a47b2),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window['location'][_0x34c4dc(0x1ed)]),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document['readyState']),console['log'](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x34c4dc(0x1b1)](_0x41e898,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x34c4dc(0x239)),window[_0x34c4dc(0x1fe)]??createController();setInitialized(!![]),console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x19f));const _0x349763=normalizeOptions(_0x41e898);setOptions(_0x349763),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON[_0x34c4dc(0x1b1)](_0x349763,null,0x2));const _0x110c6f=parseUrlParams();console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x199),JSON[_0x34c4dc(0x1b1)](_0x110c6f,null,0x2));if(_0x110c6f['explicitDisable'])return cleanUrlParam(_0x34c4dc(0x190)),console['log'](LOG_PREFIX3+_0x34c4dc(0x246)),createController();if(_0x110c6f[_0x34c4dc(0x218)])return console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x22e)),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20enhancementUrl:\x20'+_0x110c6f['enhancementUrl']),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20enhancementId:\x20'+_0x110c6f[_0x34c4dc(0x241)]),state[_0x34c4dc(0x1a0)]=!![],console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x197)),void loadOverlay({'overlayPath':_0x349763[_0x34c4dc(0x1e6)],'enableViteHmr':_0x349763[_0x34c4dc(0x1bd)]['enableViteHmr'],'options':_0x349763,'onToggle':handleToggle}),console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x1bc)),void registerServiceWorker(_0x349763),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console['log'](LOG_PREFIX3+_0x34c4dc(0x1ab)),console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x1b8)),void unregisterServiceWorker(_0x349763['swPath']),console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x255)),import.meta.hot&&(console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta.hot['on'](_0x34c4dc(0x21e),_0x360775=>{const _0xe40db4=_0x34c4dc;console[_0xe40db4(0x230)](LOG_PREFIX3+_0xe40db4(0x236),_0x360775),state[_0xe40db4(0x202)]={'message':_0x360775['err']['message']},updateOverlay();}),import.meta.hot['on'](_0x34c4dc(0x192),()=>{const _0xdda400=_0x34c4dc;state[_0xdda400(0x202)]&&(console[_0xdda400(0x230)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state[_0xdda400(0x202)]=null,updateOverlay());})),createController();}};function createController(){const _0x467032=_0x4057b5,_0x4054ab={'enable'(){const _0x3467b2=_0x5399,_0x14d00f=getOptions();if(!_0x14d00f)return;state['enabled']=!![],void loadOverlay({'overlayPath':_0x14d00f['overlayPath'],'enableViteHmr':_0x14d00f[_0x3467b2(0x1bd)][_0x3467b2(0x229)],'options':_0x14d00f,'onToggle':handleToggle}),void registerServiceWorker(_0x14d00f),void sendConfiguration(),updateOverlay();},'disable'(){const _0x2378f5=_0x5399,_0x1baa92=getOptions();if(!_0x1baa92)return;state[_0x2378f5(0x1a0)]=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(_0x1baa92[_0x2378f5(0x1b6)]);},'status'(){const _0x17a515=_0x5399;return{'enabled':state[_0x17a515(0x1a0)],'controlled':state[_0x17a515(0x1b0)]};}};return typeof window!==_0x467032(0x1f4)&&(window[_0x467032(0x1fe)]=_0x4054ab),_0x4054ab;}function handleToggle(){const _0x343365=_0x4057b5,_0x267754=createController();state[_0x343365(0x1a0)]?_0x267754[_0x343365(0x19c)]():_0x267754[_0x343365(0x252)]();}function parseUrlParams(){const _0x3a7150=_0x4057b5,_0x3056f0=new URL(window[_0x3a7150(0x259)]['href']),_0x235052=_0x3056f0[_0x3a7150(0x25b)][_0x3a7150(0x18f)](_0x3a7150(0x190))?.[_0x3a7150(0x1db)](),_0x30ab76=_0x3056f0[_0x3a7150(0x25b)][_0x3a7150(0x18f)](_0x3a7150(0x1e4)),_0x46bf96=_0x3056f0['searchParams'][_0x3a7150(0x18f)](_0x3a7150(0x240));return{'hasEnhancement':Boolean(_0x30ab76||_0x46bf96),'explicitDisable':_0x235052==='0'||_0x235052===_0x3a7150(0x249)||_0x235052===_0x3a7150(0x1b3),'enhancementUrl':_0x30ab76,'enhancementId':_0x46bf96};}function cleanUrlParam(_0xed72aa){const _0x2365eb=_0x4057b5,_0x1ce55b=new URL(window[_0x2365eb(0x259)][_0x2365eb(0x1ed)]);_0x1ce55b[_0x2365eb(0x25b)][_0x2365eb(0x1d4)](_0xed72aa)&&(_0x1ce55b['searchParams'][_0x2365eb(0x24b)](_0xed72aa),window['history']['replaceState'](null,document[_0x2365eb(0x258)],_0x1ce55b['toString']()));}var package_default={'name':_0x4057b5(0x19d),'version':_0x4057b5(0x20a),'type':_0x4057b5(0x227),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':'MIT','main':'./dev/index.js','module':_0x4057b5(0x1c2),'types':_0x4057b5(0x213),'exports':{'.':{'types':_0x4057b5(0x213),'import':_0x4057b5(0x1c2)},'./vite':{'types':_0x4057b5(0x1c0),'import':'./dev/vite/index.js'}},'files':[_0x4057b5(0x1d0)],'bin':{'enhance-sandbox':'./dev/cli.js'},'scripts':{'typecheck':_0x4057b5(0x1f0),'dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x4057b5(0x243),'dev:staging:build':_0x4057b5(0x1ad),'build':_0x4057b5(0x198),'build:release':_0x4057b5(0x1e5),'build:release:dev':_0x4057b5(0x225),'version':'bun\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x4057b5(0x1e7),'zod':_0x4057b5(0x219)},'devDependencies':{'@types/node':_0x4057b5(0x206),'javascript-obfuscator':_0x4057b5(0x247),'tsup':_0x4057b5(0x1b2),'vite':_0x4057b5(0x244)},'publishConfig':{'access':_0x4057b5(0x210)}},DEFAULT_SERVICE_WORKER_PATH=_0x4057b5(0x233),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default['version']===_0x4057b5(0x1ca)?package_default[_0x4057b5(0x24c)]:_0x4057b5(0x200);function normalizeAssetPath(_0x511750){const _0x496b3a=_0x4057b5;if(!_0x511750)return _0x511750;if(_0x511750[_0x496b3a(0x1f1)]('http://')||_0x511750[_0x496b3a(0x1f1)]('https://'))return _0x511750;const _0x4cadb1=_0x511750[_0x496b3a(0x22c)](/^\.\//,'');return _0x4cadb1[_0x496b3a(0x1f1)]('/')?_0x4cadb1:'/'+_0x4cadb1;}function _0x5399(_0x5db9ca,_0x27c789){_0x5db9ca=_0x5db9ca-0x18f;const _0x302fca=_0x302f();let _0x5399b4=_0x302fca[_0x5db9ca];return _0x5399b4;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x597eee){const _0x18cc13=_0x4057b5;return Enhance[_0x18cc13(0x257)](_0x597eee);},'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 _0x41a86f=_0x4057b5;return Enhance2[_0x41a86f(0x245)]();}function runtimeURL(){const _0x376ba3=_0x4057b5;return Enhance2[_0x376ba3(0x1e3)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x397525=_0x4977;(function(_0x3e733f,_0x565363){const _0x43459b=_0x4977,_0x11a850=_0x3e733f();while(!![]){try{const _0x9411be=-parseInt(_0x43459b(0x115))/0x1*(-parseInt(_0x43459b(0x193))/0x2)+parseInt(_0x43459b(0x13f))/0x3+-parseInt(_0x43459b(0x157))/0x4+parseInt(_0x43459b(0x138))/0x5+-parseInt(_0x43459b(0x103))/0x6+-parseInt(_0x43459b(0xe6))/0x7+-parseInt(_0x43459b(0x188))/0x8;if(_0x9411be===_0x565363)break;else _0x11a850['push'](_0x11a850['shift']());}catch(_0x422a55){_0x11a850['push'](_0x11a850['shift']());}}}(_0x3c53,0x19b72));var DEFAULT_OVERLAY_PATH=!![]?'https://assets-dev.enhancelabs.ai/overlay.js':_0x397525(0x108),DEFAULT_BACKEND_URL=!![]?'https://enhance-api-dev.enhancelabs.workers.dev':_0x397525(0xec),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x397525(0x126)](_0x397525(0xee),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x3bb6bc){const _0x2d10c2=_0x397525;if(!_0x3bb6bc['publishableKey'])throw new Error(_0x2d10c2(0x183));const _0x38815e=_0x3bb6bc['__development']??{};return{'publishableKey':_0x3bb6bc[_0x2d10c2(0x12b)],'callbackBypass':_0x3bb6bc['callbackBypass']??[],'overlay':{'enabled':!![],'position':_0x2d10c2(0x1a2),'enableViteHmr':_0x38815e['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0x2d10c2(0x12e),'swPath':'/sw-enhance.js','overlayPath':_0x38815e[_0x2d10c2(0x117)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x38815e[_0x2d10c2(0x14a)]??'permissive','backendUrl':_0x38815e[_0x2d10c2(0x173)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x515f0f=_0x397525;try{const _0x242b6b=new URLSearchParams(window[_0x515f0f(0x125)][_0x515f0f(0x12d)]);return _0x242b6b['get'](_0x515f0f(0x11b))?.[_0x515f0f(0x11f)]()||'';}catch{return'';}}var LOG_PREFIX=_0x397525(0x13a),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x2e2f51){const _0x43590d=_0x397525;console[_0x43590d(0x126)](LOG_PREFIX+_0x43590d(0xf0)),console[_0x43590d(0x126)](LOG_PREFIX+_0x43590d(0x175)+_0x2e2f51['overlayPath']),console['log'](LOG_PREFIX+_0x43590d(0x16b)+_0x2e2f51[_0x43590d(0xf8)]),currentOptions=_0x2e2f51[_0x43590d(0x1a1)],toggleHandler=_0x2e2f51[_0x43590d(0x14b)];if(overlayController){console[_0x43590d(0x126)](LOG_PREFIX+_0x43590d(0x145)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console['log'](LOG_PREFIX+_0x43590d(0x11a)),overlayLoadPromise=doLoadOverlay(_0x2e2f51);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x43590d(0x141));}catch(_0x24b226){console[_0x43590d(0x165)](LOG_PREFIX+_0x43590d(0x184),_0x24b226);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0xa22d1e){const _0x35e27a=_0x397525;console[_0x35e27a(0x126)](LOG_PREFIX+_0x35e27a(0x150));if(typeof window===_0x35e27a(0x102)){console['log'](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x35e27a(0x154)]){console[_0x35e27a(0x126)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window['__enhanceOverlay'];return;}console[_0x35e27a(0x126)](LOG_PREFIX+_0x35e27a(0x198));try{_0xa22d1e[_0x35e27a(0xf8)]&&(console[_0x35e27a(0x126)](LOG_PREFIX+_0x35e27a(0x162)),await setupRemoteHMR(_0xa22d1e[_0x35e27a(0x117)]));console['log'](LOG_PREFIX+_0x35e27a(0x120)+_0xa22d1e[_0x35e27a(0x117)]);const _0x545e9c=Date[_0x35e27a(0xfa)](),_0x3b5309=await import(_0xa22d1e['overlayPath']);console['log'](LOG_PREFIX+_0x35e27a(0x132)+(Date[_0x35e27a(0xfa)]()-_0x545e9c)+'ms'),console[_0x35e27a(0x126)](LOG_PREFIX+_0x35e27a(0x12c),Object[_0x35e27a(0x118)](_0x3b5309));if(typeof _0x3b5309?.['createOverlay']!==_0x35e27a(0x16c)){console[_0x35e27a(0x165)](LOG_PREFIX+_0x35e27a(0x105)),console['error'](LOG_PREFIX+_0x35e27a(0xf5),Object[_0x35e27a(0x118)](_0x3b5309));return;}console['log'](LOG_PREFIX+_0x35e27a(0x10b));const _0x1071bc=_0x3b5309[_0x35e27a(0x15f)]();console['log'](LOG_PREFIX+'\x20Controller\x20created:',_0x1071bc),overlayController=_0x1071bc,window[_0x35e27a(0x154)]=_0x1071bc,_0x1071bc[_0x35e27a(0x14b)](_0xa22d1e['onToggle']),console[_0x35e27a(0x126)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x35e27a(0x126)](LOG_PREFIX+_0x35e27a(0x116)),updateOverlay();}catch(_0x1b6246){console['error'](LOG_PREFIX+_0x35e27a(0x152),_0x1b6246);}}function updateOverlay(){const _0xf67d41=_0x397525;console[_0xf67d41(0x126)](LOG_PREFIX+_0xf67d41(0x179)),console['log'](LOG_PREFIX+_0xf67d41(0x114)+!!overlayController),console[_0xf67d41(0x126)](LOG_PREFIX+_0xf67d41(0xe9)+!!currentOptions);if(!overlayController||!currentOptions){console[_0xf67d41(0x126)](LOG_PREFIX+_0xf67d41(0x186));return;}const _0x315a6a=composeOverlayState(currentOptions);console[_0xf67d41(0x126)](LOG_PREFIX+_0xf67d41(0x12f),JSON[_0xf67d41(0x16e)](_0x315a6a,null,0x2)),overlayController['update'](_0x315a6a),console['log'](LOG_PREFIX+_0xf67d41(0x119));}function composeOverlayState(_0x546aee){const _0x4922e7=_0x397525,_0x5757e2=getEnhancementId();return console['log'](LOG_PREFIX+_0x4922e7(0x178)+_0x5757e2),console[_0x4922e7(0x126)](LOG_PREFIX+_0x4922e7(0x18e)+state['enabled']),console[_0x4922e7(0x126)](LOG_PREFIX+_0x4922e7(0x172)+state[_0x4922e7(0xf2)]),{'enhancementId':_0x5757e2,'enabled':state['enabled'],'controlled':state['controlled'],'overlayPosition':_0x546aee[_0x4922e7(0x19c)][_0x4922e7(0x176)],'securityMode':_0x546aee[_0x4922e7(0x14a)],'backendBaseUrl':_0x546aee[_0x4922e7(0x173)],'appError':state[_0x4922e7(0x158)]};}async function setupRemoteHMR(_0x1c3650){const _0x1498ba=_0x397525;console['log'](LOG_PREFIX+_0x1498ba(0x156)+_0x1c3650);if(typeof window===_0x1498ba(0x102))return;try{const _0x2c1f5e=new URL(_0x1c3650,window[_0x1498ba(0x125)][_0x1498ba(0x107)]),_0x3d711f=_0x2c1f5e[_0x1498ba(0x107)];console[_0x1498ba(0x126)](LOG_PREFIX+_0x1498ba(0x15b)+_0x3d711f+_0x1498ba(0x168)+window[_0x1498ba(0x125)][_0x1498ba(0x107)]);if(_0x3d711f===window[_0x1498ba(0x125)][_0x1498ba(0x107)]){console['log'](LOG_PREFIX+_0x1498ba(0x182));return;}console[_0x1498ba(0x126)](LOG_PREFIX+_0x1498ba(0x16a)),await ensureReactRefreshPreamble(_0x3d711f),await ensureViteClient(_0x3d711f),console[_0x1498ba(0x126)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x260d83){console[_0x1498ba(0xe7)](LOG_PREFIX+_0x1498ba(0x121),_0x260d83);}}async function ensureReactRefreshPreamble(_0x583b41){const _0x4ab439=_0x397525;window[_0x4ab439(0x1a4)]??(window[_0x4ab439(0x1a4)]=new Set());if(window['__enhanceReactRefreshInstalledOrigins'][_0x4ab439(0xfe)](_0x583b41)){console[_0x4ab439(0x126)](LOG_PREFIX+_0x4ab439(0x18a)+_0x583b41);return;}console[_0x4ab439(0x126)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x583b41+_0x4ab439(0x122));const _0x4fecd3=await import(_0x583b41+_0x4ab439(0x10a)),_0x492ed0=_0x4fecd3&&typeof _0x4fecd3===_0x4ab439(0xef)&&'default'in _0x4fecd3?_0x4fecd3[_0x4ab439(0x169)]:_0x4fecd3;if(!isRefreshRuntime(_0x492ed0)){console[_0x4ab439(0xe7)](LOG_PREFIX+_0x4ab439(0x17c));return;}_0x492ed0[_0x4ab439(0xed)](window),window[_0x4ab439(0x1a0)]=()=>{},window[_0x4ab439(0x1a6)]=()=>_0x2a30ec=>_0x2a30ec,window[_0x4ab439(0x106)]=!![],window[_0x4ab439(0x1a4)][_0x4ab439(0x129)](_0x583b41),console[_0x4ab439(0x126)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x583b41);}async function ensureViteClient(_0x461043){const _0x33e7c4=_0x397525;window[_0x33e7c4(0xf7)]??(window['__viteHMRLoaded']=new Set());if(window['__viteHMRLoaded'][_0x33e7c4(0xfe)](_0x461043)){console['log'](LOG_PREFIX+_0x33e7c4(0x14e)+_0x461043);return;}console['log'](LOG_PREFIX+_0x33e7c4(0x19e)+_0x461043+_0x33e7c4(0x122)),await import(_0x461043+'/@vite/client'),window[_0x33e7c4(0xf7)][_0x33e7c4(0x129)](_0x461043),console[_0x33e7c4(0x126)](LOG_PREFIX+_0x33e7c4(0x17d)+_0x461043);}function _0x3c53(){const _0xb14897=['runtimeURL','__enhanceOptions','serviceWorker','reload','https://','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','\x20registerServiceWorker()\x20complete','\x20overlayController\x20exists:\x20','173807nFVzvQ','\x20Calling\x20updateOverlay()...','overlayPath','keys','\x20Overlay\x20update\x20complete','\x20Starting\x20fresh\x20overlay\x20load...','enhancement','getItem','disable','enhance.enhancementId','trim','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','...','querySelector','getRegistration','location','log','ready','\x20Resolved\x20to:\x20','add','string','publishableKey','\x20Module\x20exports:','search','info','\x20Updating\x20overlay\x20with\x20state:','enhance','./dev/index.js','\x20Module\x20imported\x20in\x20','waiting','^4.1.1','^7.2.4','/resolve','./dev/index.d.ts','557505GyTJQY','controller','[Enhance\x20Overlay]','^24.10.1','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20Resolution\x20failed:\x20','href','380367JNlFNh','\x20Calling:\x20','\x20loadOverlay()\x20complete','set','\x20Enhancement\x20mode\x20-\x20ID:\x20','\x20Explicit\x20disable\x20-\x20exiting','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Sending\x20configuration\x20to\x20SW...','\x20registerServiceWorker()\x20called','installing','\x20No\x20service\x20worker\x20active\x20to\x20configure','security','onToggle','\x20Failed\x20to\x20unregister\x20service\x20worker:','MIT','\x20Vite\x20client\x20already\x20loaded\x20for\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20doLoadOverlay()\x20starting...','module','\x20Failed\x20to\x20import/create\x20overlay:','\x20Persisted\x20enhancement\x20to\x20sessionStorage','__enhanceOverlay','off','\x20setupRemoteHMR()\x20for\x20','56700FoiEZy','appError','replace','get','\x20Overlay\x20origin:\x20','removeItem','cachedUrl','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','createOverlay','./dev/cli.js','version','\x20Setting\x20up\x20remote\x20HMR...','serviceWorkerURL','0.3.21','error','\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID','operatingPath',',\x20page\x20origin:\x20','default','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20enableViteHmr:\x20','function','err','stringify','scriptURL','searchParams','toString','\x20composeOverlayState\x20-\x20state.controlled:\x20','backendUrl','__enhanceController','\x20overlayPath:\x20','position','bun\x20version\x20patch\x20--no-git-tag-version','\x20composeOverlayState\x20-\x20enhancementId:\x20','\x20updateOverlay()\x20called','./dev/vite/index.d.ts','readyState','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','/public/enhancements/','\x20Document\x20readyState:\x20','active','enabled','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','\x20loadOverlay()\x20failed:','\x20unregisterServiceWorker()\x20called','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Service\x20workers\x20NOT\x20supported','1623240PJgfpl','public','\x20React\x20Refresh\x20already\x20installed\x20for\x20','^8.5.1','replaceState','init','\x20composeOverlayState\x20-\x20state.enabled:\x20','http://','enhance:disable','history','./dev/vite/index.js','2FMlduT','dev/','swPath','/assets/enhance-runtime.js','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Failed\x20to\x20register\x20service\x20worker:','json','\x20Normal\x20mode\x20-\x20no\x20enhancement','overlay','explicitDisable','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Sending\x20config\x20to\x20SW:','$RefreshReg$','options','bottom-right','enhance.enhancementUrl','__enhanceReactRefreshInstalledOrigins','[data-enhance-runtime-bootstrap]','$RefreshSig$','vite:error','__enhanceResolvedUrl','[Enhance\x20Runtime]','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','startsWith','\x20Page\x20not\x20enhanced\x20-\x20reloading','__enhanceInitialized','356790LksFZb','warn','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','\x20currentOptions\x20exists:\x20','unregister','\x20Resolving\x20enhancement\x20ID:\x20','https://api.enhancelabs.ai','injectIntoGlobalHook','[Enhance\x20Config]\x20Build-time\x20defaults:','object','\x20loadOverlay()\x20called','delete','controlled','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','enhancementId','\x20Available\x20exports:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','__viteHMRLoaded','enableViteHmr','title','now','sw-enhance','\x20Current\x20URL:\x20','@enhance-eng/sandbox','has','status','\x20Registering\x20SW\x20at\x20','\x20BLOCKING\x20SW\x20detected:\x20','undefined','232302tCrAdD','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Module\x20missing\x20createOverlay\x20export!','__vite_plugin_react_preamble_installed__','origin','https://assets.enhancelabs.ai/overlay.js','^11.1.0','/@react-refresh','\x20Calling\x20createOverlay()...','0.0.0'];_0x3c53=function(){return _0xb14897;};return _0x3c53();}function isRefreshRuntime(_0x790df3){const _0x569450=_0x397525;return typeof _0x790df3==='object'&&_0x790df3!==null&&_0x569450(0xed)in _0x790df3&&typeof _0x790df3[_0x569450(0xed)]===_0x569450(0x16c);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x397525(0x190),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x138694){const _0x41ab20=_0x397525;console['log'](LOG_PREFIX2+_0x41ab20(0x147));if(!(_0x41ab20(0x10f)in navigator)){console[_0x41ab20(0xe7)](LOG_PREFIX2+_0x41ab20(0x187));return;}const _0x3a2036=!!navigator[_0x41ab20(0x10f)][_0x41ab20(0x139)];currentOptions2=_0x138694;const _0x8a211=await detectBlockingServiceWorker(_0x138694[_0x41ab20(0x195)]);if(_0x8a211){console[_0x41ab20(0x165)](LOG_PREFIX2+_0x41ab20(0x101)+_0x8a211);return;}try{console[_0x41ab20(0x126)](LOG_PREFIX2+_0x41ab20(0x100)+_0x138694['swPath']+_0x41ab20(0x122)),registration=await navigator[_0x41ab20(0x10f)]['register'](_0x138694[_0x41ab20(0x195)],{'scope':'/'}),console[_0x41ab20(0x126)](LOG_PREFIX2+'\x20Waiting\x20for\x20SW\x20ready...'),await navigator['serviceWorker'][_0x41ab20(0x127)],console[_0x41ab20(0x126)](LOG_PREFIX2+'\x20SW\x20ready'),state[_0x41ab20(0xf2)]=ownsCurrentController(_0x138694['swPath']);if(!_0x3a2036&&!navigator[_0x41ab20(0x10f)]['controller']){console[_0x41ab20(0x126)](LOG_PREFIX2+_0x41ab20(0xe8)),window['location'][_0x41ab20(0x110)]();return;}console[_0x41ab20(0x126)](LOG_PREFIX2+_0x41ab20(0x146)),await sendConfiguration();if(state[_0x41ab20(0x181)]){const _0x5c154c=document[_0x41ab20(0x123)](_0x41ab20(0x1a5))!==null;if(!_0x5c154c){console[_0x41ab20(0x126)](LOG_PREFIX2+_0x41ab20(0xe4)),window[_0x41ab20(0x125)][_0x41ab20(0x110)]();return;}}updateOverlay(),console[_0x41ab20(0x126)](LOG_PREFIX2+_0x41ab20(0x113));}catch(_0x3c29dd){console[_0x41ab20(0x165)](LOG_PREFIX2+_0x41ab20(0x199),_0x3c29dd);}}async function sendConfiguration(){const _0x28c4a2=_0x397525;if(!state[_0x28c4a2(0x181)]||!currentOptions2)return;const _0x47744a=await resolveWorker();if(!_0x47744a){console['warn'](LOG_PREFIX2+_0x28c4a2(0x149));return;}const _0x23bab4=window[_0x28c4a2(0x1a8)]??null,_0x379627={'publishableKey':currentOptions2[_0x28c4a2(0x12b)],'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x28c4a2(0x14a)],'enhancementUrl':_0x23bab4??void 0x0};console[_0x28c4a2(0x126)](LOG_PREFIX2+_0x28c4a2(0x19f),JSON[_0x28c4a2(0x16e)](_0x379627,null,0x2)),_0x47744a['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x379627});}async function unregisterServiceWorker(_0xc85c5e){const _0x39b9fd=_0x397525;console[_0x39b9fd(0x126)](LOG_PREFIX2+_0x39b9fd(0x185));if(!(_0x39b9fd(0x10f)in navigator))return;try{const _0x6d7adf=registration??await navigator['serviceWorker'][_0x39b9fd(0x124)]('/');if(!_0x6d7adf)return;const _0x25c561=[_0x6d7adf[_0x39b9fd(0x180)]?.[_0x39b9fd(0x16f)],_0x6d7adf[_0x39b9fd(0x133)]?.[_0x39b9fd(0x16f)],_0x6d7adf['installing']?.[_0x39b9fd(0x16f)]],_0x36d4e0=_0x25c561['some'](_0x3d5973=>_0x3d5973&&ownsServiceWorker(_0x3d5973,_0xc85c5e));if(!_0x36d4e0)return;_0x6d7adf[_0x39b9fd(0x180)]&&_0x6d7adf[_0x39b9fd(0x180)]['postMessage']({'type':WORKER_MESSAGE_DISABLE}),await _0x6d7adf[_0x39b9fd(0xea)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered');}catch(_0xf5f95f){console['error'](LOG_PREFIX2+_0x39b9fd(0x14c),_0xf5f95f);}}function ownsServiceWorker(_0x164c28,_0x43aeb4){const _0xa29d9a=_0x397525,_0x25b829=typeof window!==_0xa29d9a(0x102)?window['location']['origin']:'',_0x66b21c=new URL(_0x43aeb4,_0x25b829||void 0x0)[_0xa29d9a(0x13e)];return _0x164c28===_0x66b21c||_0x164c28['includes'](_0xa29d9a(0xfb));}function ownsCurrentController(_0x1af7d4){const _0x4d319f=_0x397525,_0x4d99a7=navigator[_0x4d319f(0x10f)]?.[_0x4d319f(0x139)];if(!_0x4d99a7)return![];return ownsServiceWorker(_0x4d99a7[_0x4d319f(0x16f)],_0x1af7d4);}async function detectBlockingServiceWorker(_0x22a185){const _0x9f315c=_0x397525;if(!navigator[_0x9f315c(0x10f)])return null;try{const _0x1f87b0=await navigator['serviceWorker'][_0x9f315c(0x124)]('/'),_0x35c533=_0x1f87b0?.[_0x9f315c(0x180)]?.[_0x9f315c(0x16f)];if(!_0x35c533)return null;if(ownsServiceWorker(_0x35c533,_0x22a185))return null;return _0x35c533;}catch{return null;}}async function resolveWorker(){const _0xd8461b=_0x397525,_0x3b7448=registration??await navigator['serviceWorker']?.['getRegistration']('/');return _0x3b7448?.[_0xd8461b(0x180)]??_0x3b7448?.['waiting']??_0x3b7448?.[_0xd8461b(0x148)]??null;}var LOG_PREFIX3=_0x397525(0x1a9),STORAGE_KEY_ENHANCEMENT_ID=_0x397525(0x11e),STORAGE_KEY_ENHANCEMENT_URL=_0x397525(0x1a3);function isInitialized(){const _0x18cd21=_0x397525;return typeof window!==_0x18cd21(0x102)&&window[_0x18cd21(0xe5)]===!![];}function setInitialized(_0x515711){const _0x13aee6=_0x397525;typeof window!=='undefined'&&(window[_0x13aee6(0xe5)]=_0x515711);}function getOptions(){const _0x5377d3=_0x397525;return typeof window!==_0x5377d3(0x102)?window[_0x5377d3(0x10e)]??null:null;}function setOptions(_0x35fcfb){const _0x4197ab=_0x397525;typeof window!==_0x4197ab(0x102)&&(window[_0x4197ab(0x10e)]=_0x35fcfb);}var Enhance={'init'(_0x27abc8){const _0x4cc6a9=_0x397525,_0x33770d=Date['now']();console['log'](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x33770d),console[_0x4cc6a9(0x126)](LOG_PREFIX3+_0x4cc6a9(0xfc)+window[_0x4cc6a9(0x125)][_0x4cc6a9(0x13e)]),console[_0x4cc6a9(0x126)](LOG_PREFIX3+_0x4cc6a9(0x17f)+document[_0x4cc6a9(0x17b)]);if(isInitialized())return console[_0x4cc6a9(0xe7)](LOG_PREFIX3+_0x4cc6a9(0x112)),window[_0x4cc6a9(0x174)]??createController();setInitialized(!![]);const _0x82c9d7=normalizeOptions(_0x27abc8);setOptions(_0x82c9d7);const _0xeeb2f5=parseEnhancementParams();console[_0x4cc6a9(0x126)](LOG_PREFIX3+'\x20Enhancement\x20params:',JSON[_0x4cc6a9(0x16e)](_0xeeb2f5,null,0x2));if(_0xeeb2f5[_0x4cc6a9(0x19d)])return cleanUrlParam(_0x4cc6a9(0x130)),clearPersistedEnhancement(),console[_0x4cc6a9(0x126)](LOG_PREFIX3+_0x4cc6a9(0x144)),createController();if(!_0xeeb2f5[_0x4cc6a9(0xf4)])return console[_0x4cc6a9(0x126)](LOG_PREFIX3+_0x4cc6a9(0x19b)),void unregisterServiceWorker(_0x82c9d7[_0x4cc6a9(0x195)]),setupViteErrorListeners(),createController();return console[_0x4cc6a9(0x126)](LOG_PREFIX3+_0x4cc6a9(0x143)+_0xeeb2f5[_0x4cc6a9(0xf4)]),state[_0x4cc6a9(0x181)]=!![],void initializeEnhancement(_0x82c9d7,_0xeeb2f5[_0x4cc6a9(0xf4)],_0xeeb2f5[_0x4cc6a9(0x15d)]),createController();}};async function initializeEnhancement(_0x5252a2,_0x28ff9c,_0x18cf18){const _0x85d7a4=_0x397525;let _0x363cbb=_0x18cf18;if(!_0x363cbb){console[_0x85d7a4(0x126)](LOG_PREFIX3+_0x85d7a4(0xeb)+_0x28ff9c),_0x363cbb=await resolveEnhancementUrl(_0x5252a2,_0x28ff9c);if(!_0x363cbb){console[_0x85d7a4(0x165)](LOG_PREFIX3+_0x85d7a4(0x1aa)),state['enabled']=![];return;}}else console[_0x85d7a4(0x126)](LOG_PREFIX3+'\x20Using\x20cached\x20enhancement\x20URL:\x20'+_0x363cbb);persistEnhancement(_0x28ff9c,_0x363cbb),window[_0x85d7a4(0x1a8)]=_0x363cbb,console[_0x85d7a4(0x126)](LOG_PREFIX3+_0x85d7a4(0xf3)),await registerServiceWorker(_0x5252a2),console['log'](LOG_PREFIX3+'\x20Loading\x20overlay...'),await loadOverlay({'overlayPath':_0x5252a2[_0x85d7a4(0x117)],'enableViteHmr':_0x5252a2[_0x85d7a4(0x19c)][_0x85d7a4(0xf8)],'options':_0x5252a2,'onToggle':handleToggle}),console[_0x85d7a4(0x126)](LOG_PREFIX3+'\x20Enhancement\x20initialization\x20complete');}async function resolveEnhancementUrl(_0xd36967,_0x25e03b){const _0x201b29=_0x397525,_0x2339f9=_0xd36967[_0x201b29(0x173)]+_0x201b29(0x17e)+_0x25e03b+_0x201b29(0x136);console['log'](LOG_PREFIX3+_0x201b29(0x140)+_0x2339f9);try{const _0x57bbda=await fetch(_0x2339f9,{'headers':{'X-Enhance-Publishable-Key':_0xd36967['publishableKey']}});if(!_0x57bbda['ok']){const _0x3dc7c3=await _0x57bbda['text']();return console[_0x201b29(0x165)](LOG_PREFIX3+_0x201b29(0x13d)+_0x57bbda[_0x201b29(0xff)]+'\x20'+_0x3dc7c3),null;}const _0x301f4d=await _0x57bbda[_0x201b29(0x19a)](),_0x5bda7c=''+_0xd36967['backendUrl']+_0x301f4d[_0x201b29(0x167)];return console[_0x201b29(0x126)](LOG_PREFIX3+_0x201b29(0x128)+_0x5bda7c),_0x5bda7c;}catch(_0x56b464){return console[_0x201b29(0x165)](LOG_PREFIX3+'\x20Resolution\x20error:',_0x56b464),null;}}function parseEnhancementParams(){const _0xa034bf=_0x397525,_0x153676=new URL(window['location'][_0xa034bf(0x13e)]),_0x3078bd=_0x153676[_0xa034bf(0x170)]['get'](_0xa034bf(0x130))?.['toLowerCase'](),_0x1865a3=_0x3078bd==='0'||_0x3078bd==='false'||_0x3078bd===_0xa034bf(0x155);let _0x24d395=_0x153676['searchParams'][_0xa034bf(0x15a)](_0xa034bf(0x11b)),_0x242808=null;if(_0x24d395)try{const _0x220949=sessionStorage[_0xa034bf(0x11c)](STORAGE_KEY_ENHANCEMENT_ID),_0x32f7ad=sessionStorage[_0xa034bf(0x11c)](STORAGE_KEY_ENHANCEMENT_URL);_0x220949===_0x24d395&&_0x32f7ad&&(_0x242808=_0x32f7ad,console[_0xa034bf(0x126)](LOG_PREFIX3+_0xa034bf(0x166)));}catch{}else try{const _0x3e2ad3=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_ID),_0x2fb2dd=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_URL);_0x3e2ad3&&_0x2fb2dd&&(_0x24d395=_0x3e2ad3,_0x242808=_0x2fb2dd,console[_0xa034bf(0x126)](LOG_PREFIX3+'\x20Restored\x20enhancement\x20from\x20sessionStorage'),_0x153676[_0xa034bf(0x170)][_0xa034bf(0x142)](_0xa034bf(0x11b),_0x24d395),window['history'][_0xa034bf(0x18c)](null,document[_0xa034bf(0xf9)],_0x153676['toString']()));}catch{}return{'enhancementId':_0x24d395,'cachedUrl':_0x242808,'explicitDisable':_0x1865a3};}function persistEnhancement(_0x591407,_0x36ae3e){const _0x2308a0=_0x397525;try{sessionStorage['setItem'](STORAGE_KEY_ENHANCEMENT_ID,_0x591407),sessionStorage['setItem'](STORAGE_KEY_ENHANCEMENT_URL,_0x36ae3e),console[_0x2308a0(0x126)](LOG_PREFIX3+_0x2308a0(0x153));}catch{}}function clearPersistedEnhancement(){const _0x1ed708=_0x397525;try{sessionStorage[_0x1ed708(0x15c)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x1ed708(0x15c)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x1ed708(0x126)](LOG_PREFIX3+'\x20Cleared\x20persisted\x20enhancement');}catch{}}function createController(){const _0x5db5fe=_0x397525,_0x19e8c6={'enable'(){const _0x4aad01=_0x4977,_0x34ca78=getOptions();if(!_0x34ca78)return;state[_0x4aad01(0x181)]=!![],void registerServiceWorker(_0x34ca78),void sendConfiguration(),updateOverlay();},'disable'(){const _0x393487=_0x4977,_0x5e166f=getOptions();if(!_0x5e166f)return;state[_0x393487(0x181)]=![],state['controlled']=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x5e166f[_0x393487(0x195)]);},'status'(){const _0xff1eae=_0x4977;return{'enabled':state[_0xff1eae(0x181)],'controlled':state[_0xff1eae(0xf2)]};}};return typeof window!==_0x5db5fe(0x102)&&(window[_0x5db5fe(0x174)]=_0x19e8c6),_0x19e8c6;}function handleToggle(){const _0xe83edb=_0x397525,_0x13a00b=createController();state[_0xe83edb(0x181)]?_0x13a00b[_0xe83edb(0x11d)]():_0x13a00b['enable']();}function cleanUrlParam(_0x1768f5){const _0x28d06d=_0x397525,_0x354211=new URL(window['location'][_0x28d06d(0x13e)]);_0x354211['searchParams'][_0x28d06d(0xfe)](_0x1768f5)&&(_0x354211[_0x28d06d(0x170)][_0x28d06d(0xf1)](_0x1768f5),window[_0x28d06d(0x191)]['replaceState'](null,document[_0x28d06d(0xf9)],_0x354211[_0x28d06d(0x171)]()));}function setupViteErrorListeners(){const _0x41d7ee=_0x397525;import.meta.hot&&(import.meta.hot['on'](_0x41d7ee(0x1a7),_0x4b9169=>{const _0x2f0a98=_0x41d7ee;state[_0x2f0a98(0x158)]={'message':_0x4b9169[_0x2f0a98(0x16d)]['message']},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x45d4b2=_0x41d7ee;state[_0x45d4b2(0x158)]&&(state[_0x45d4b2(0x158)]=null,updateOverlay());}));}var package_default={'name':_0x397525(0xfd),'version':_0x397525(0x164),'type':_0x397525(0x151),'description':_0x397525(0x15e),'license':_0x397525(0x14d),'main':_0x397525(0x131),'module':_0x397525(0x131),'types':_0x397525(0x137),'exports':{'.':{'types':_0x397525(0x137),'import':_0x397525(0x131)},'./vite':{'types':_0x397525(0x17a),'import':_0x397525(0x192)}},'files':[_0x397525(0x194)],'bin':{'enhance-sandbox':_0x397525(0x160)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x397525(0xf6),'dev:build':_0x397525(0x197),'dev:staging':_0x397525(0x13c),'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':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x397525(0x14f),'build:release:dev':_0x397525(0x104),'version':_0x397525(0x177)},'dependencies':{'commander':_0x397525(0x109),'zod':'^3.22.4'},'devDependencies':{'@types/node':_0x397525(0x13b),'javascript-obfuscator':_0x397525(0x134),'tsup':_0x397525(0x18b),'vite':_0x397525(0x135)},'publishConfig':{'access':_0x397525(0x189)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x397525(0x196),PACKAGE_VERSION=typeof package_default['version']===_0x397525(0x12a)?package_default[_0x397525(0x161)]:_0x397525(0x10c);function normalizeAssetPath(_0x482de1){const _0x186df5=_0x397525;if(!_0x482de1)return _0x482de1;if(_0x482de1[_0x186df5(0xe3)](_0x186df5(0x18f))||_0x482de1[_0x186df5(0xe3)](_0x186df5(0x111)))return _0x482de1;const _0xd3fc87=_0x482de1[_0x186df5(0x159)](/^\.\//,'');return _0xd3fc87['startsWith']('/')?_0xd3fc87:'/'+_0xd3fc87;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x475b13){const _0x392871=_0x397525;return Enhance[_0x392871(0x18d)](_0x475b13);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function _0x4977(_0x16e3cd,_0x1f2f3b){_0x16e3cd=_0x16e3cd-0xe3;const _0x3c53c9=_0x3c53();let _0x497712=_0x3c53c9[_0x16e3cd];return _0x497712;}function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){const _0x59c04d=_0x397525;return Enhance2[_0x59c04d(0x163)]();}function runtimeURL(){const _0x4f0650=_0x397525;return Enhance2[_0x4f0650(0x10d)]();}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 _0x3ae1ef=_0x325a;(function(_0x5c76ae,_0x20a8c0){const _0x5565f8=_0x325a,_0xeaa6cd=_0x5c76ae();while(!![]){try{const _0x2ffa39=-parseInt(_0x5565f8(0x1ae))/0x1*(-parseInt(_0x5565f8(0x192))/0x2)+-parseInt(_0x5565f8(0x1ba))/0x3+parseInt(_0x5565f8(0x137))/0x4*(-parseInt(_0x5565f8(0x156))/0x5)+parseInt(_0x5565f8(0x203))/0x6+parseInt(_0x5565f8(0x1f4))/0x7*(parseInt(_0x5565f8(0x1de))/0x8)+-parseInt(_0x5565f8(0x16f))/0x9+-parseInt(_0x5565f8(0x15a))/0xa*(parseInt(_0x5565f8(0x165))/0xb);if(_0x2ffa39===_0x20a8c0)break;else _0xeaa6cd['push'](_0xeaa6cd['shift']());}catch(_0x362393){_0xeaa6cd['push'](_0xeaa6cd['shift']());}}}(_0x15f2,0xd6284));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x3ae1ef(0x1c6)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x3ae1ef(0x1b8),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!=='undefined'?__ENHANCE_DEFAULT_BACKEND_URL__:_0x3ae1ef(0x1be),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x3ae1ef(0x1c6)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x3ae1ef(0x153)](_0x3ae1ef(0x20f),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x11d8e1){const _0x3b5915=_0x3ae1ef;if(!_0x11d8e1[_0x3b5915(0x139)])throw new Error('[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()');const _0x505b17=_0x11d8e1[_0x3b5915(0x14e)]??{};return{'publishableKey':_0x11d8e1[_0x3b5915(0x139)],'callbackBypass':_0x11d8e1['callbackBypass']??[],'overlay':{'enabled':!![],'position':_0x3b5915(0x146),'enableViteHmr':_0x505b17[_0x3b5915(0x1a6)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x3b5915(0x200),'swPath':_0x3b5915(0x18b),'overlayPath':_0x505b17[_0x3b5915(0x15c)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x3b5915(0x17d),'security':_0x505b17[_0x3b5915(0x1a8)]??_0x3b5915(0x1fd),'backendUrl':_0x505b17['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x2477fa=_0x3ae1ef;try{const _0x81ccfe=new URLSearchParams(window[_0x2477fa(0x18d)][_0x2477fa(0x1b0)]);return _0x81ccfe[_0x2477fa(0x1ed)](_0x2477fa(0x155))?.[_0x2477fa(0x13c)]()||'';}catch{return'';}}function _0x325a(_0x3b3230,_0x1d4758){_0x3b3230=_0x3b3230-0x11f;const _0x15f26c=_0x15f2();let _0x325a17=_0x15f26c[_0x3b3230];return _0x325a17;}var LOG_PREFIX=_0x3ae1ef(0x16e),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0xb68a64){const _0x3c9f1c=_0x3ae1ef;console[_0x3c9f1c(0x153)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x3c9f1c(0x153)](LOG_PREFIX+_0x3c9f1c(0x1ee)+_0xb68a64[_0x3c9f1c(0x15c)]),console[_0x3c9f1c(0x153)](LOG_PREFIX+_0x3c9f1c(0x12b)+_0xb68a64[_0x3c9f1c(0x1d6)]),currentOptions=_0xb68a64[_0x3c9f1c(0x1f3)],toggleHandler=_0xb68a64[_0x3c9f1c(0x1fe)];if(overlayController){console[_0x3c9f1c(0x153)](LOG_PREFIX+_0x3c9f1c(0x1a4)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3c9f1c(0x153)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console['log'](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0xb68a64);try{await overlayLoadPromise,console['log'](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x4d97d7){console[_0x3c9f1c(0x141)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x4d97d7);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x111b74){const _0x829ae0=_0x3ae1ef;console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x1db));if(typeof window===_0x829ae0(0x1c6)){console[_0x829ae0(0x153)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x829ae0(0x1c1)]){console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x1cd)),overlayController=window[_0x829ae0(0x1c1)];return;}console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x14a));try{_0x111b74[_0x829ae0(0x1d6)]&&(console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x1f1)),await setupRemoteHMR(_0x111b74['overlayPath']));console[_0x829ae0(0x153)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x111b74['overlayPath']);const _0x19fbf2=Date[_0x829ae0(0x1dd)](),_0x16d233=await import(_0x111b74['overlayPath']);console['log'](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x829ae0(0x1dd)]()-_0x19fbf2)+'ms'),console['log'](LOG_PREFIX+_0x829ae0(0x13f),Object[_0x829ae0(0x11f)](_0x16d233));if(typeof _0x16d233?.[_0x829ae0(0x1dc)]!==_0x829ae0(0x1aa)){console['error'](LOG_PREFIX+_0x829ae0(0x120)),console[_0x829ae0(0x141)](LOG_PREFIX+_0x829ae0(0x18a),Object[_0x829ae0(0x11f)](_0x16d233));return;}console['log'](LOG_PREFIX+_0x829ae0(0x167));const _0x1b03d2=_0x16d233[_0x829ae0(0x1dc)]();console[_0x829ae0(0x153)](LOG_PREFIX+'\x20Controller\x20created:',_0x1b03d2),overlayController=_0x1b03d2,window[_0x829ae0(0x1c1)]=_0x1b03d2,_0x1b03d2['onToggle'](_0x111b74[_0x829ae0(0x1fe)]),console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x170)),console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x13a)),updateOverlay();}catch(_0x561394){console[_0x829ae0(0x141)](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x561394);}}function updateOverlay(){const _0xc0da7b=_0x3ae1ef;console['log'](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0xc0da7b(0x153)](LOG_PREFIX+_0xc0da7b(0x1e2)+!!overlayController),console[_0xc0da7b(0x153)](LOG_PREFIX+_0xc0da7b(0x144)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x1ee61a=composeOverlayState(currentOptions);console[_0xc0da7b(0x153)](LOG_PREFIX+_0xc0da7b(0x205),JSON[_0xc0da7b(0x12e)](_0x1ee61a,null,0x2)),overlayController['update'](_0x1ee61a),console[_0xc0da7b(0x153)](LOG_PREFIX+_0xc0da7b(0x19b));}function composeOverlayState(_0x490749){const _0x23e82e=_0x3ae1ef,_0x23f102=getEnhancementId();return console[_0x23e82e(0x153)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x23f102),console[_0x23e82e(0x153)](LOG_PREFIX+_0x23e82e(0x1d5)+state[_0x23e82e(0x1a1)]),console[_0x23e82e(0x153)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x23e82e(0x148)]),{'enhancementId':_0x23f102,'enabled':state[_0x23e82e(0x1a1)],'controlled':state[_0x23e82e(0x148)],'overlayPosition':_0x490749[_0x23e82e(0x14f)][_0x23e82e(0x1d1)],'securityMode':_0x490749[_0x23e82e(0x1a8)],'backendBaseUrl':_0x490749['backendUrl'],'appError':state[_0x23e82e(0x17e)]};}async function setupRemoteHMR(_0x3fa712){const _0x5428f2=_0x3ae1ef;console[_0x5428f2(0x153)](LOG_PREFIX+_0x5428f2(0x198)+_0x3fa712);if(typeof window==='undefined')return;try{const _0x22da35=new URL(_0x3fa712,window[_0x5428f2(0x18d)][_0x5428f2(0x20d)]),_0x300072=_0x22da35[_0x5428f2(0x20d)];console[_0x5428f2(0x153)](LOG_PREFIX+_0x5428f2(0x1e7)+_0x300072+',\x20page\x20origin:\x20'+window['location'][_0x5428f2(0x20d)]);if(_0x300072===window[_0x5428f2(0x18d)][_0x5428f2(0x20d)]){console[_0x5428f2(0x153)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console['log'](LOG_PREFIX+_0x5428f2(0x1e4)),await ensureReactRefreshPreamble(_0x300072),await ensureViteClient(_0x300072),console[_0x5428f2(0x153)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x5a0588){console['warn'](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x5a0588);}}async function ensureReactRefreshPreamble(_0x76c2ab){const _0x9317ae=_0x3ae1ef;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x9317ae(0x145)]['has'](_0x76c2ab)){console[_0x9317ae(0x153)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x76c2ab);return;}console[_0x9317ae(0x153)](LOG_PREFIX+_0x9317ae(0x1f8)+_0x76c2ab+_0x9317ae(0x136));const _0x1c282c=await import(_0x76c2ab+_0x9317ae(0x209)),_0x288463=_0x1c282c&&typeof _0x1c282c===_0x9317ae(0x1a7)&&'default'in _0x1c282c?_0x1c282c[_0x9317ae(0x1c4)]:_0x1c282c;if(!isRefreshRuntime(_0x288463)){console[_0x9317ae(0x1e3)](LOG_PREFIX+_0x9317ae(0x183));return;}_0x288463[_0x9317ae(0x1ac)](window),window[_0x9317ae(0x19f)]=()=>{},window[_0x9317ae(0x134)]=()=>_0x1ced70=>_0x1ced70,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x9317ae(0x145)][_0x9317ae(0x1c5)](_0x76c2ab),console['log'](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x76c2ab);}async function ensureViteClient(_0x2d0062){const _0x3c6d35=_0x3ae1ef;window['__viteHMRLoaded']??=new Set();if(window[_0x3c6d35(0x1f2)][_0x3c6d35(0x1a5)](_0x2d0062)){console[_0x3c6d35(0x153)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x2d0062);return;}console[_0x3c6d35(0x153)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x2d0062+_0x3c6d35(0x136)),await import(_0x2d0062+_0x3c6d35(0x15e)),window[_0x3c6d35(0x1f2)][_0x3c6d35(0x1c5)](_0x2d0062),console['log'](LOG_PREFIX+_0x3c6d35(0x140)+_0x2d0062);}function isRefreshRuntime(_0x470586){const _0x4a1ecd=_0x3ae1ef;return typeof _0x470586===_0x4a1ecd(0x1a7)&&_0x470586!==null&&_0x4a1ecd(0x1ac)in _0x470586&&typeof _0x470586[_0x4a1ecd(0x1ac)]===_0x4a1ecd(0x1aa);}var WORKER_MESSAGE_CONFIG=_0x3ae1ef(0x142),WORKER_MESSAGE_DISABLE=_0x3ae1ef(0x1ad),LOG_PREFIX2=_0x3ae1ef(0x176),registration=null,currentOptions2=null;async function registerServiceWorker(_0x44de38){const _0xcd843f=_0x3ae1ef;console[_0xcd843f(0x153)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console['log'](LOG_PREFIX2+_0xcd843f(0x178)+_0x44de38[_0xcd843f(0x1a0)]);if(!('serviceWorker'in navigator)){console[_0xcd843f(0x1e3)](LOG_PREFIX2+_0xcd843f(0x196));return;}console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x1bb));const _0x1123d5=navigator[_0xcd843f(0x12d)][_0xcd843f(0x1c8)];console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x132),_0x1123d5?.['scriptURL']??_0xcd843f(0x1a2)),console[_0xcd843f(0x153)](LOG_PREFIX2+'\x20Controller\x20state:',_0x1123d5?.[_0xcd843f(0x188)]??_0xcd843f(0x12a));const _0x222c45=!!_0x1123d5;currentOptions2=_0x44de38,console[_0xcd843f(0x153)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x2e1fc9=await detectBlockingServiceWorker(_0x44de38[_0xcd843f(0x1a0)]);if(_0x2e1fc9){console['error'](LOG_PREFIX2+_0xcd843f(0x13e)+_0x2e1fc9),console[_0xcd843f(0x141)](LOG_PREFIX2+_0xcd843f(0x202));return;}console['log'](LOG_PREFIX2+_0xcd843f(0x1ab));try{console[_0xcd843f(0x153)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x44de38[_0xcd843f(0x1a0)]+_0xcd843f(0x12c)),registration=await navigator['serviceWorker'][_0xcd843f(0x1e5)](_0x44de38[_0xcd843f(0x1a0)],{'scope':'/'}),console['log'](LOG_PREFIX2+_0xcd843f(0x1c7),{'scope':registration[_0xcd843f(0x1f5)],'active':registration[_0xcd843f(0x182)]?.[_0xcd843f(0x1fc)],'waiting':registration['waiting']?.[_0xcd843f(0x1fc)],'installing':registration[_0xcd843f(0x1c3)]?.['scriptURL']}),console['log'](LOG_PREFIX2+_0xcd843f(0x15b));const _0x407911=await navigator['serviceWorker'][_0xcd843f(0x147)];console[_0xcd843f(0x153)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x407911[_0xcd843f(0x182)]?.[_0xcd843f(0x1fc)]);const _0x160a3d=ownsCurrentController(_0x44de38[_0xcd843f(0x1a0)]);state['controlled']=_0x160a3d,console['log'](LOG_PREFIX2+_0xcd843f(0x13b)+_0x160a3d),console['log'](LOG_PREFIX2+_0xcd843f(0x1da),navigator[_0xcd843f(0x12d)][_0xcd843f(0x1c8)]?.[_0xcd843f(0x1fc)]??_0xcd843f(0x1a2));if(!_0x222c45&&!navigator[_0xcd843f(0x12d)][_0xcd843f(0x1c8)]){console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x14c)),window['location'][_0xcd843f(0x128)]();return;}console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x207)),await sendConfiguration();if(state[_0xcd843f(0x1a1)]){const _0xb9a9ea=document[_0xcd843f(0x208)](_0xcd843f(0x1b5))!==null;console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x171)+_0xb9a9ea);if(!_0xb9a9ea){console['log'](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0xcd843f(0x18d)][_0xcd843f(0x128)]();return;}}console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x20b)),updateOverlay(),console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x122));}catch(_0xaee285){console[_0xcd843f(0x141)](LOG_PREFIX2+_0xcd843f(0x1b9),_0xaee285);}}async function sendConfiguration(){const _0x4764ad=_0x3ae1ef;console['log'](LOG_PREFIX2+_0x4764ad(0x1df)),console[_0x4764ad(0x153)](LOG_PREFIX2+_0x4764ad(0x1f9)+state[_0x4764ad(0x1a1)]+_0x4764ad(0x194)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x4764ad(0x153)](LOG_PREFIX2+_0x4764ad(0x1c9));return;}const _0x14ccf5=await resolveWorker();if(!_0x14ccf5){console[_0x4764ad(0x1e3)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x101d28={'publishableKey':currentOptions2[_0x4764ad(0x139)],'callbackBypass':currentOptions2[_0x4764ad(0x166)],'securityMode':currentOptions2[_0x4764ad(0x1a8)]};console[_0x4764ad(0x153)](LOG_PREFIX2+_0x4764ad(0x193),JSON['stringify'](_0x101d28,null,0x2)),_0x14ccf5[_0x4764ad(0x1cf)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x101d28}),console[_0x4764ad(0x153)](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x3ed5b0){const _0x5e27be=_0x3ae1ef;console['log'](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x5e27be(0x12d)in navigator)){console['log'](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}try{const _0x521e1b=registration??await navigator[_0x5e27be(0x12d)][_0x5e27be(0x20c)]('/');if(!_0x521e1b){console[_0x5e27be(0x153)](LOG_PREFIX2+_0x5e27be(0x1b4));return;}console[_0x5e27be(0x153)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x521e1b[_0x5e27be(0x1f5)],'active':_0x521e1b['active']?.[_0x5e27be(0x1fc)],'waiting':_0x521e1b[_0x5e27be(0x1d9)]?.[_0x5e27be(0x1fc)],'installing':_0x521e1b[_0x5e27be(0x1c3)]?.[_0x5e27be(0x1fc)]});const _0x5a6ba3=[_0x521e1b[_0x5e27be(0x182)]?.[_0x5e27be(0x1fc)],_0x521e1b[_0x5e27be(0x1d9)]?.[_0x5e27be(0x1fc)],_0x521e1b[_0x5e27be(0x1c3)]?.['scriptURL']],_0x1dbd3d=_0x5a6ba3[_0x5e27be(0x1f0)](_0x11a85b=>_0x11a85b&&ownsServiceWorker(_0x11a85b,_0x3ed5b0));if(!_0x1dbd3d){console['log'](LOG_PREFIX2+_0x5e27be(0x151));return;}_0x521e1b[_0x5e27be(0x182)]&&(console[_0x5e27be(0x153)](LOG_PREFIX2+_0x5e27be(0x13d)),_0x521e1b[_0x5e27be(0x182)][_0x5e27be(0x1cf)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x5e27be(0x163)),await _0x521e1b['unregister'](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x39cacf){console[_0x5e27be(0x141)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x39cacf);}}function ownsServiceWorker(_0x2192eb,_0x2ffd6a){const _0x43265b=_0x3ae1ef,_0x55f1f4=typeof window!=='undefined'?window[_0x43265b(0x18d)][_0x43265b(0x20d)]:'',_0x2db389=new URL(_0x2ffd6a,_0x55f1f4||void 0x0)[_0x43265b(0x186)],_0x2a7a3c=_0x2192eb===_0x2db389||_0x2192eb['includes'](_0x43265b(0x162));return console[_0x43265b(0x153)](LOG_PREFIX2+_0x43265b(0x1e0)+_0x2192eb+',\x20expected='+_0x2db389+_0x43265b(0x16b)+_0x2a7a3c),_0x2a7a3c;}function ownsCurrentController(_0x3116a8){const _0x1f86fc=_0x3ae1ef;if(typeof navigator===_0x1f86fc(0x1c6))return![];const _0x2cba13=navigator[_0x1f86fc(0x12d)]?.[_0x1f86fc(0x1c8)];if(!_0x2cba13)return console[_0x1f86fc(0x153)](LOG_PREFIX2+_0x1f86fc(0x16a)),![];return ownsServiceWorker(_0x2cba13[_0x1f86fc(0x1fc)],_0x3116a8);}async function detectBlockingServiceWorker(_0x55fa7d){const _0x1344e3=_0x3ae1ef;if(!navigator[_0x1344e3(0x12d)])return null;try{const _0x425f49=await navigator[_0x1344e3(0x12d)][_0x1344e3(0x20c)]('/');console['log'](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x425f49?.['active']?.[_0x1344e3(0x1fc)]??_0x1344e3(0x1a2));const _0x101259=_0x425f49?.[_0x1344e3(0x182)]?.[_0x1344e3(0x1fc)];if(!_0x101259)return null;if(ownsServiceWorker(_0x101259,_0x55fa7d))return null;return _0x101259;}catch(_0xad1155){return console[_0x1344e3(0x141)](LOG_PREFIX2+_0x1344e3(0x161),_0xad1155),null;}}async function resolveWorker(){const _0x5a6982=_0x3ae1ef,_0x181555=registration??await navigator[_0x5a6982(0x12d)]?.[_0x5a6982(0x20c)]('/'),_0xab45b6=_0x181555?.[_0x5a6982(0x182)]??_0x181555?.[_0x5a6982(0x1d9)]??_0x181555?.[_0x5a6982(0x1c3)]??null;return console['log'](LOG_PREFIX2+_0x5a6982(0x184),_0xab45b6?.['scriptURL']??'none',_0x5a6982(0x17b)+(_0xab45b6?.[_0x5a6982(0x188)]??_0x5a6982(0x12a))),_0xab45b6;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){return typeof window!=='undefined'&&window['__enhanceInitialized']===!![];}function setInitialized(_0x34d653){const _0x218381=_0x3ae1ef;typeof window!==_0x218381(0x1c6)&&(window[_0x218381(0x1b6)]=_0x34d653);}function getOptions(){const _0x557a28=_0x3ae1ef;return typeof window!==_0x557a28(0x1c6)?window[_0x557a28(0x185)]??null:null;}function setOptions(_0x911783){const _0x28d28f=_0x3ae1ef;typeof window!==_0x28d28f(0x1c6)&&(window[_0x28d28f(0x185)]=_0x911783);}var Enhance={'init'(_0x294e19){const _0x195711=_0x3ae1ef,_0x13a0be=Date[_0x195711(0x1dd)]();console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x1cb)+_0x13a0be),console['log'](LOG_PREFIX3+_0x195711(0x1d8)+window[_0x195711(0x18d)][_0x195711(0x186)]),console[_0x195711(0x153)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x195711(0x197)]),console['log'](LOG_PREFIX3+'\x20Raw\x20options:',JSON['stringify'](_0x294e19,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x195711(0x19a)),window[_0x195711(0x1fb)]??createController();setInitialized(!![]),console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x19c));const _0x19d831=normalizeOptions(_0x294e19);setOptions(_0x19d831),console[_0x195711(0x153)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON['stringify'](_0x19d831,null,0x2));const _0x2162c5=parseUrlParams();console['log'](LOG_PREFIX3+_0x195711(0x1ea),JSON['stringify'](_0x2162c5,null,0x2));if(_0x2162c5['explicitDisable'])return cleanUrlParam(_0x195711(0x1ef)),console[_0x195711(0x153)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x2162c5[_0x195711(0x143)])return console[_0x195711(0x153)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x1c0)+_0x2162c5[_0x195711(0x1a9)]),console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x181)+_0x2162c5[_0x195711(0x17f)]),state['enabled']=!![],console['log'](LOG_PREFIX3+_0x195711(0x16c)),void loadOverlay({'overlayPath':_0x19d831[_0x195711(0x15c)],'enableViteHmr':_0x19d831[_0x195711(0x14f)]['enableViteHmr'],'options':_0x19d831,'onToggle':handleToggle}),console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x1af)),void registerServiceWorker(_0x19d831),console[_0x195711(0x153)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console['log'](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x201)),void unregisterServiceWorker(_0x19d831['swPath']),console['log'](LOG_PREFIX3+_0x195711(0x1e8)),import.meta.hot&&(console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x160)),import.meta.hot['on']('vite:error',_0x57426d=>{const _0x3d8efb=_0x195711;console[_0x3d8efb(0x153)](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x57426d),state['appError']={'message':_0x57426d[_0x3d8efb(0x1bc)]['message']},updateOverlay();}),import.meta.hot['on'](_0x195711(0x1d0),()=>{const _0x4d796c=_0x195711;state[_0x4d796c(0x17e)]&&(console[_0x4d796c(0x153)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state[_0x4d796c(0x17e)]=null,updateOverlay());})),createController();}};function createController(){const _0x5a0c2b=_0x3ae1ef,_0x291775={'enable'(){const _0x5e1895=_0x325a,_0x1ddcaf=getOptions();if(!_0x1ddcaf)return;state[_0x5e1895(0x1a1)]=!![],void loadOverlay({'overlayPath':_0x1ddcaf['overlayPath'],'enableViteHmr':_0x1ddcaf[_0x5e1895(0x14f)][_0x5e1895(0x1d6)],'options':_0x1ddcaf,'onToggle':handleToggle}),void registerServiceWorker(_0x1ddcaf),void sendConfiguration(),updateOverlay();},'disable'(){const _0x22a18d=_0x325a,_0x3db5bf=getOptions();if(!_0x3db5bf)return;state['enabled']=![],state[_0x22a18d(0x148)]=![],updateOverlay(),void unregisterServiceWorker(_0x3db5bf['swPath']);},'status'(){const _0xabf079=_0x325a;return{'enabled':state[_0xabf079(0x1a1)],'controlled':state['controlled']};}};return typeof window!=='undefined'&&(window[_0x5a0c2b(0x1fb)]=_0x291775),_0x291775;}function handleToggle(){const _0x13d325=_0x3ae1ef,_0x55aa28=createController();state[_0x13d325(0x1a1)]?_0x55aa28[_0x13d325(0x18c)]():_0x55aa28[_0x13d325(0x157)]();}function parseUrlParams(){const _0x5efd9a=_0x3ae1ef,_0x1f8507=new URL(window['location'][_0x5efd9a(0x186)]),_0x2c623d=_0x1f8507[_0x5efd9a(0x1d3)][_0x5efd9a(0x1ed)](_0x5efd9a(0x1ef))?.[_0x5efd9a(0x20a)](),_0x5c9dcc=_0x1f8507[_0x5efd9a(0x1d3)][_0x5efd9a(0x1ed)]('enhancementUrl'),_0x2446e1=_0x1f8507[_0x5efd9a(0x1d3)][_0x5efd9a(0x1ed)](_0x5efd9a(0x155));return{'hasEnhancement':Boolean(_0x5c9dcc||_0x2446e1),'explicitDisable':_0x2c623d==='0'||_0x2c623d===_0x5efd9a(0x180)||_0x2c623d===_0x5efd9a(0x1ff),'enhancementUrl':_0x5c9dcc,'enhancementId':_0x2446e1};}function _0x15f2(){const _0x450322=['\x20Updating\x20overlay...','getRegistration','origin','^7.2.4','[Enhance\x20Config]\x20Build-time\x20defaults:','delete','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','keys','\x20Module\x20missing\x20createOverlay\x20export!','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20registerServiceWorker()\x20complete','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','module','assets/enhance-runtime.js','cwd','status','reload','description','N/A','\x20enableViteHmr:\x20','\x20with\x20scope\x20\x27/\x27...','serviceWorker','stringify','@enhance-eng/sandbox','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','prepare-sw','\x20Current\x20controller:','publicDir','$RefreshSig$','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','...','1587984IQsovR','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','publishableKey','\x20Calling\x20updateOverlay()...','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','trim','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20BLOCKING\x20SW\x20detected:\x20','\x20Module\x20exports:','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','error','enhance:configure','hasEnhancement','\x20currentOptions\x20exists:\x20','__enhanceReactRefreshInstalledOrigins','bottom-right','ready','controlled','title','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','replace','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','write','__development','overlay','action','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','./dev/vite/index.d.ts','log','Enhance\x20sandbox\x20utility\x20CLI','enhancement','10sfGHuM','enable','./dev/cli.js','command','30WvdpUH','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','overlayPath','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','/@vite/client','readFile','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20detectBlocking\x20error:','sw-enhance','\x20Unregistering\x20SW...','mkdir','7588493kXlKPU','callbackBypass','\x20Calling\x20createOverlay()...','option','manifestPath','\x20No\x20current\x20controller',',\x20owns=','\x20Starting\x20overlay\x20load\x20(async)...','all','[Enhance\x20Overlay]','4335768vBJUbY','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Enhancement\x20detection:\x20wasEnhanced=','^3.22.4','runtimeURL','ENOENT','base64','[Enhance\x20SW-Client]','Copied\x20','\x20swPath:\x20','0.0.0','manifest','state:\x20','sha256','/assets/enhance-runtime.js','appError','enhancementId','false','\x20enhancementId:\x20','active','\x20Invalid\x20React\x20Refresh\x20runtime','\x20resolveWorker:','__enhanceOptions','href','swFilename','state','^24.10.1','\x20Available\x20exports:','/sw-enhance.js','disable','location','toString','--public-dir\x20<path>','\x20→\x20','stdout','3471788aXhlQt','\x20Sending\x20customer\x20config\x20to\x20SW:',',\x20currentOptions:\x20','digest','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','readyState','\x20setupRemoteHMR()\x20for\x20','code','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Overlay\x20update\x20complete','\x20First\x20initialization','./dev/index.d.ts','destinationPath','$RefreshReg$','swPath','enabled','none','MIT','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','has','enableOverlayHmr','object','security','enhancementUrl','function','\x20No\x20blocking\x20SW\x20found','injectIntoGlobalHook','enhance:disable','1cEVunt','\x20Starting\x20SW\x20registration\x20(async)...','search','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','bun\x20version\x20patch\x20--no-git-tag-version','tsc\x20--noEmit','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','[data-enhance-runtime-bootstrap]','__enhanceInitialized','\x20(already\x20current)\x20[','https://assets.enhancelabs.ai/overlay.js','\x20Failed\x20to\x20register\x20service\x20worker:','751119iEffVC','\x20Service\x20workers\x20supported','err','skipped','https://api.enhancelabs.ai','public','\x20enhancementUrl:\x20','__enhanceOverlay','name','installing','default','add','undefined','\x20Registration\x20returned:','controller','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','init','\x20init()\x20called\x20at\x20','update','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','^11.1.0','postMessage','vite:beforeUpdate','position','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','searchParams','startsWith','\x20composeOverlayState\x20-\x20state.enabled:\x20','enableViteHmr','copied','\x20Current\x20URL:\x20','waiting','\x20Current\x20controller\x20after\x20ready:','\x20doLoadOverlay()\x20starting...','createOverlay','now','199840QumcyG','\x20sendConfiguration()\x20called','\x20ownsServiceWorker?\x20scriptURL=','sw-enhance.js','\x20overlayController\x20exists:\x20','warn','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','register','./dev/index.js','\x20Overlay\x20origin:\x20','\x20init()\x20complete\x20-\x20normal\x20mode','https://','\x20URL\x20params\x20parsed:','^4.1.1','version','get','\x20overlayPath:\x20','enhance','some','\x20Setting\x20up\x20remote\x20HMR...','__viteHMRLoaded','options','413EqZIbs','scope','relativeDestination','http://','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20state.enabled:\x20','push','__enhanceController','scriptURL','permissive','onToggle','off','info','\x20Unregistering\x20any\x20existing\x20SW...','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','7579080pGwrMr','Print\x20the\x20current\x20asset\x20manifest','\x20Updating\x20overlay\x20with\x20state:','replaceState','\x20Sending\x20customer\x20configuration...','querySelector','/@react-refresh','toLowerCase'];_0x15f2=function(){return _0x450322;};return _0x15f2();}function cleanUrlParam(_0x20573a){const _0x53f3a7=_0x3ae1ef,_0x3fbada=new URL(window[_0x53f3a7(0x18d)][_0x53f3a7(0x186)]);_0x3fbada[_0x53f3a7(0x1d3)][_0x53f3a7(0x1a5)](_0x20573a)&&(_0x3fbada[_0x53f3a7(0x1d3)][_0x53f3a7(0x210)](_0x20573a),window['history'][_0x53f3a7(0x206)](null,document[_0x53f3a7(0x149)],_0x3fbada[_0x53f3a7(0x18e)]()));}var package_default={'name':_0x3ae1ef(0x12f),'version':'0.3.21','type':_0x3ae1ef(0x124),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x3ae1ef(0x1a3),'main':_0x3ae1ef(0x1e6),'module':'./dev/index.js','types':_0x3ae1ef(0x19d),'exports':{'.':{'types':'./dev/index.d.ts','import':_0x3ae1ef(0x1e6)},'./vite':{'types':_0x3ae1ef(0x152),'import':'./dev/vite/index.js'}},'files':['dev/'],'bin':{'enhance-sandbox':_0x3ae1ef(0x158)},'scripts':{'typecheck':_0x3ae1ef(0x1b3),'dev':_0x3ae1ef(0x121),'dev:build':_0x3ae1ef(0x130),'dev:staging':_0x3ae1ef(0x123),'dev:staging:build':_0x3ae1ef(0x1d2),'build':_0x3ae1ef(0x135),'build:release':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','build:release:dev':_0x3ae1ef(0x1b1),'version':_0x3ae1ef(0x1b2)},'dependencies':{'commander':_0x3ae1ef(0x1ce),'zod':_0x3ae1ef(0x172)},'devDependencies':{'@types/node':_0x3ae1ef(0x189),'javascript-obfuscator':_0x3ae1ef(0x1eb),'tsup':'^8.5.1','vite':_0x3ae1ef(0x20e)},'publishConfig':{'access':_0x3ae1ef(0x1bf)}},DEFAULT_SERVICE_WORKER_PATH=_0x3ae1ef(0x18b),DEFAULT_RUNTIME_PATH=_0x3ae1ef(0x17d),DIST_SERVICE_WORKER_PATH=_0x3ae1ef(0x1e1),DIST_RUNTIME_PATH=_0x3ae1ef(0x125),PACKAGE_VERSION=typeof package_default[_0x3ae1ef(0x1ec)]==='string'?package_default[_0x3ae1ef(0x1ec)]:'0.0.0';function normalizeAssetPath(_0x41eb93){const _0x5cfd8e=_0x3ae1ef;if(!_0x41eb93)return _0x41eb93;if(_0x41eb93[_0x5cfd8e(0x1d4)](_0x5cfd8e(0x1f7))||_0x41eb93['startsWith'](_0x5cfd8e(0x1e9)))return _0x41eb93;const _0x10b1f9=_0x41eb93[_0x5cfd8e(0x14b)](/^\.\//,'');return _0x10b1f9[_0x5cfd8e(0x1d4)]('/')?_0x10b1f9:'/'+_0x10b1f9;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x4b88d8){const _0x19486b=_0x3ae1ef;return Enhance[_0x19486b(0x1ca)](_0x4b88d8);},'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(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){const _0x44b36a=_0x3ae1ef;return Enhance2[_0x44b36a(0x173)]();}import{promises as _0x11bf88}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL('../dist/index.js',import.meta.url)));async function syncAssets(_0x2bde35){const _0x1c4211=_0x3ae1ef,_0x4c7792=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x2bde35[_0x1c4211(0x187)]?'./'+_0x2bde35[_0x1c4211(0x187)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x10b588=[];for(const _0x59e44b of _0x4c7792){const _0x228ec8=cleanRelativePath(_0x59e44b['override']??_0x59e44b[_0x1c4211(0x169)]),_0x47dbb5=join(distDir,cleanRelativePath(_0x59e44b['sourcePath'])),_0x468312=join(_0x2bde35[_0x1c4211(0x133)],_0x228ec8),[_0x57f5db,_0xf54a0b]=await Promise[_0x1c4211(0x16d)]([readDigest(_0x47dbb5),readDigest(_0x468312)]);if(_0x57f5db&&_0xf54a0b&&_0x57f5db===_0xf54a0b){_0x10b588[_0x1c4211(0x1fa)]({'sourcePath':_0x47dbb5,'destinationPath':_0x468312,'relativeDestination':_0x228ec8,'status':_0x1c4211(0x1bd)});continue;}await _0x11bf88[_0x1c4211(0x164)](dirname(_0x468312),{'recursive':!![]}),await _0x11bf88['copyFile'](_0x47dbb5,_0x468312),_0x10b588[_0x1c4211(0x1fa)]({'sourcePath':_0x47dbb5,'destinationPath':_0x468312,'relativeDestination':_0x228ec8,'status':_0x1c4211(0x1d7)});}return _0x10b588;}function cleanRelativePath(_0x4fe826){const _0x1010c1=_0x3ae1ef;return _0x4fe826[_0x1010c1(0x14b)](/^[./]+/,'');}async function readDigest(_0x3d3108){const _0x5de905=_0x3ae1ef;try{const _0x18e74d=await _0x11bf88[_0x5de905(0x15f)](_0x3d3108);return createHash(_0x5de905(0x17c))[_0x5de905(0x1cc)](_0x18e74d)[_0x5de905(0x195)](_0x5de905(0x175));}catch(_0x54c317){if(_0x54c317[_0x5de905(0x199)]===_0x5de905(0x174))return null;throw _0x54c317;}}var program=new Command();program[_0x3ae1ef(0x1c2)]('enhance-sandbox')[_0x3ae1ef(0x129)](_0x3ae1ef(0x154))[_0x3ae1ef(0x1ec)](_0x3ae1ef(0x179)),program[_0x3ae1ef(0x159)](_0x3ae1ef(0x17a))[_0x3ae1ef(0x129)](_0x3ae1ef(0x204))['action'](()=>{const _0x32a93e=_0x3ae1ef,_0x2a5121=getAssetManifest();process['stdout'][_0x32a93e(0x14d)](JSON[_0x32a93e(0x12e)](_0x2a5121,null,0x2)+'\x0a');}),program['command'](_0x3ae1ef(0x131))['description'](_0x3ae1ef(0x138))['requiredOption'](_0x3ae1ef(0x18f),_0x3ae1ef(0x211))[_0x3ae1ef(0x168)]('--filename\x20<name>',_0x3ae1ef(0x15d))[_0x3ae1ef(0x150)](async _0x4b7b56=>{const _0x3aa83d=_0x3ae1ef,_0x9b1def=resolve(process[_0x3aa83d(0x126)](),_0x4b7b56[_0x3aa83d(0x133)]),_0x2f4fcc=await syncAssets({'publicDir':_0x9b1def,'swFilename':_0x4b7b56['filename']});for(const _0x2bafa5 of _0x2f4fcc){const _0x246688=relative(process['cwd'](),_0x2bafa5[_0x3aa83d(0x19e)]);_0x2bafa5[_0x3aa83d(0x127)]===_0x3aa83d(0x1bd)?process['stdout']['write']('Skipped\x20'+_0x2bafa5[_0x3aa83d(0x1f6)]+_0x3aa83d(0x1b7)+_0x246688+']\x0a'):process[_0x3aa83d(0x191)][_0x3aa83d(0x14d)](_0x3aa83d(0x177)+_0x2bafa5[_0x3aa83d(0x1f6)]+_0x3aa83d(0x190)+_0x246688+'\x0a');}}),program['parseAsync']();
|
|
3
|
+
const _0x1c528e=_0xd9a6;(function(_0x2da2a4,_0xab5ca){const _0xf23dc7=_0xd9a6,_0x1350c4=_0x2da2a4();while(!![]){try{const _0x25455f=-parseInt(_0xf23dc7(0xf7))/0x1*(parseInt(_0xf23dc7(0xe9))/0x2)+-parseInt(_0xf23dc7(0x14f))/0x3*(parseInt(_0xf23dc7(0x185))/0x4)+parseInt(_0xf23dc7(0x100))/0x5+-parseInt(_0xf23dc7(0x106))/0x6*(-parseInt(_0xf23dc7(0xed))/0x7)+-parseInt(_0xf23dc7(0xcf))/0x8*(-parseInt(_0xf23dc7(0x16a))/0x9)+-parseInt(_0xf23dc7(0xd5))/0xa+parseInt(_0xf23dc7(0x13b))/0xb*(parseInt(_0xf23dc7(0x1a1))/0xc);if(_0x25455f===_0xab5ca)break;else _0x1350c4['push'](_0x1350c4['shift']());}catch(_0x3c4f77){_0x1350c4['push'](_0x1350c4['shift']());}}}(_0x382c,0xe0fb4));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x1c528e(0x173)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x1c528e(0x15d),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x1c528e(0x173)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x1c528e(0x18e),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x1c528e(0x173)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x1c528e(0x134)](_0x1c528e(0x16c),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x57841c){const _0x1a9c50=_0x1c528e;if(!_0x57841c['publishableKey'])throw new Error(_0x1a9c50(0xef));const _0x5afef8=_0x57841c[_0x1a9c50(0xea)]??{};return{'publishableKey':_0x57841c[_0x1a9c50(0xd6)],'callbackBypass':_0x57841c[_0x1a9c50(0x19d)]??[],'overlay':{'enabled':!![],'position':_0x1a9c50(0x14c),'enableViteHmr':_0x5afef8[_0x1a9c50(0x10a)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x1a9c50(0x177),'swPath':_0x1a9c50(0x122),'overlayPath':_0x5afef8[_0x1a9c50(0x18c)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x1a9c50(0x16e),'security':_0x5afef8[_0x1a9c50(0xd7)]??_0x1a9c50(0xce),'backendUrl':_0x5afef8[_0x1a9c50(0x11e)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x4b7b4e=_0x1c528e;try{const _0x4ebc62=new URLSearchParams(window['location'][_0x4b7b4e(0xf1)]);return _0x4ebc62[_0x4b7b4e(0x107)]('enhancement')?.[_0x4b7b4e(0x17c)]()||'';}catch{return'';}}var LOG_PREFIX=_0x1c528e(0xdf),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x2b3709){const _0x3c02cb=_0x1c528e;console['log'](LOG_PREFIX+_0x3c02cb(0x104)),console[_0x3c02cb(0x134)](LOG_PREFIX+_0x3c02cb(0x144)+_0x2b3709['overlayPath']),console[_0x3c02cb(0x134)](LOG_PREFIX+_0x3c02cb(0x180)+_0x2b3709[_0x3c02cb(0x19f)]),currentOptions=_0x2b3709['options'],toggleHandler=_0x2b3709[_0x3c02cb(0x11c)];if(overlayController){console[_0x3c02cb(0x134)](LOG_PREFIX+_0x3c02cb(0x123)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3c02cb(0x134)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console['log'](LOG_PREFIX+_0x3c02cb(0x133)),overlayLoadPromise=doLoadOverlay(_0x2b3709);try{await overlayLoadPromise,console[_0x3c02cb(0x134)](LOG_PREFIX+_0x3c02cb(0x131));}catch(_0x884c7e){console[_0x3c02cb(0x117)](LOG_PREFIX+_0x3c02cb(0x19c),_0x884c7e);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x25086e){const _0xe1dfff=_0x1c528e;console[_0xe1dfff(0x134)](LOG_PREFIX+_0xe1dfff(0x121));if(typeof window===_0xe1dfff(0x173)){console[_0xe1dfff(0x134)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0xe1dfff(0x14e)]){console[_0xe1dfff(0x134)](LOG_PREFIX+_0xe1dfff(0x101)),overlayController=window[_0xe1dfff(0x14e)];return;}console[_0xe1dfff(0x134)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x25086e[_0xe1dfff(0x19f)]&&(console[_0xe1dfff(0x134)](LOG_PREFIX+_0xe1dfff(0xe2)),await setupRemoteHMR(_0x25086e['overlayPath']));console['log'](LOG_PREFIX+_0xe1dfff(0xb4)+_0x25086e[_0xe1dfff(0x18c)]);const _0x1206aa=Date['now'](),_0x37901e=await import(_0x25086e[_0xe1dfff(0x18c)]);console[_0xe1dfff(0x134)](LOG_PREFIX+_0xe1dfff(0x189)+(Date[_0xe1dfff(0xd8)]()-_0x1206aa)+'ms'),console['log'](LOG_PREFIX+'\x20Module\x20exports:',Object['keys'](_0x37901e));if(typeof _0x37901e?.['createOverlay']!=='function'){console[_0xe1dfff(0x117)](LOG_PREFIX+_0xe1dfff(0x120)),console[_0xe1dfff(0x117)](LOG_PREFIX+'\x20Available\x20exports:',Object['keys'](_0x37901e));return;}console[_0xe1dfff(0x134)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0xb75212=_0x37901e['createOverlay']();console['log'](LOG_PREFIX+'\x20Controller\x20created:',_0xb75212),overlayController=_0xb75212,window[_0xe1dfff(0x14e)]=_0xb75212,_0xb75212[_0xe1dfff(0x11c)](_0x25086e[_0xe1dfff(0x11c)]),console[_0xe1dfff(0x134)](LOG_PREFIX+_0xe1dfff(0x126)),console['log'](LOG_PREFIX+_0xe1dfff(0xec)),updateOverlay();}catch(_0xb9d682){console[_0xe1dfff(0x117)](LOG_PREFIX+_0xe1dfff(0xcd),_0xb9d682);}}function updateOverlay(){const _0x512fac=_0x1c528e;console['log'](LOG_PREFIX+_0x512fac(0xf9)),console['log'](LOG_PREFIX+_0x512fac(0x174)+!!overlayController),console['log'](LOG_PREFIX+_0x512fac(0xf2)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x512fac(0x134)](LOG_PREFIX+_0x512fac(0x147));return;}const _0x4f58ad=composeOverlayState(currentOptions);console[_0x512fac(0x134)](LOG_PREFIX+_0x512fac(0x160),JSON[_0x512fac(0x14b)](_0x4f58ad,null,0x2)),overlayController[_0x512fac(0x11b)](_0x4f58ad),console[_0x512fac(0x134)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x1ba4fd){const _0x286d9b=_0x1c528e,_0x505cb7=getEnhancementId();return console[_0x286d9b(0x134)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x505cb7),console[_0x286d9b(0x134)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x286d9b(0x116)]),console[_0x286d9b(0x134)](LOG_PREFIX+_0x286d9b(0x110)+state[_0x286d9b(0x13c)]),{'enhancementId':_0x505cb7,'enabled':state['enabled'],'controlled':state[_0x286d9b(0x13c)],'overlayPosition':_0x1ba4fd[_0x286d9b(0x142)][_0x286d9b(0x19b)],'securityMode':_0x1ba4fd[_0x286d9b(0xd7)],'backendBaseUrl':_0x1ba4fd[_0x286d9b(0x11e)],'appError':state[_0x286d9b(0x13f)]};}async function setupRemoteHMR(_0x29084f){const _0x1c9a4b=_0x1c528e;console[_0x1c9a4b(0x134)](LOG_PREFIX+_0x1c9a4b(0xeb)+_0x29084f);if(typeof window===_0x1c9a4b(0x173))return;try{const _0x16851c=new URL(_0x29084f,window[_0x1c9a4b(0x111)]['origin']),_0x16bb94=_0x16851c[_0x1c9a4b(0x18b)];console[_0x1c9a4b(0x134)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x16bb94+_0x1c9a4b(0x139)+window[_0x1c9a4b(0x111)][_0x1c9a4b(0x18b)]);if(_0x16bb94===window[_0x1c9a4b(0x111)][_0x1c9a4b(0x18b)]){console[_0x1c9a4b(0x134)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console['log'](LOG_PREFIX+_0x1c9a4b(0x108)),await ensureReactRefreshPreamble(_0x16bb94),await ensureViteClient(_0x16bb94),console['log'](LOG_PREFIX+_0x1c9a4b(0x12f));}catch(_0x2a0e67){console[_0x1c9a4b(0xd1)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x2a0e67);}}async function ensureReactRefreshPreamble(_0x73adbb){const _0x4ae278=_0x1c528e;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x4ae278(0x196)][_0x4ae278(0xc2)](_0x73adbb)){console[_0x4ae278(0x134)](LOG_PREFIX+_0x4ae278(0x12c)+_0x73adbb);return;}console['log'](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x73adbb+'...');const _0x1d7e4f=await import(_0x73adbb+_0x4ae278(0xbf)),_0x23f64b=_0x1d7e4f&&typeof _0x1d7e4f==='object'&&_0x4ae278(0x188)in _0x1d7e4f?_0x1d7e4f[_0x4ae278(0x188)]:_0x1d7e4f;if(!isRefreshRuntime(_0x23f64b)){console['warn'](LOG_PREFIX+_0x4ae278(0x12d));return;}_0x23f64b[_0x4ae278(0x127)](window),window[_0x4ae278(0x184)]=()=>{},window[_0x4ae278(0xb0)]=()=>_0x42cd4f=>_0x42cd4f,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x4ae278(0x196)][_0x4ae278(0x18d)](_0x73adbb),console[_0x4ae278(0x134)](LOG_PREFIX+_0x4ae278(0x103)+_0x73adbb);}async function ensureViteClient(_0x2fa906){const _0x831b8f=_0x1c528e;window[_0x831b8f(0x159)]??=new Set();if(window[_0x831b8f(0x159)]['has'](_0x2fa906)){console[_0x831b8f(0x134)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x2fa906);return;}console['log'](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x2fa906+_0x831b8f(0x187)),await import(_0x2fa906+_0x831b8f(0x172)),window['__viteHMRLoaded'][_0x831b8f(0x18d)](_0x2fa906),console[_0x831b8f(0x134)](LOG_PREFIX+_0x831b8f(0xe0)+_0x2fa906);}function isRefreshRuntime(_0x4d441){const _0x2a9761=_0x1c528e;return typeof _0x4d441===_0x2a9761(0xf6)&&_0x4d441!==null&&'injectIntoGlobalHook'in _0x4d441&&typeof _0x4d441[_0x2a9761(0x127)]===_0x2a9761(0xc1);}var WORKER_MESSAGE_CONFIG=_0x1c528e(0x176),WORKER_MESSAGE_DISABLE=_0x1c528e(0x118),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x3c7c4d){const _0x3d645f=_0x1c528e;console[_0x3d645f(0x134)](LOG_PREFIX2+_0x3d645f(0x15c));if(!(_0x3d645f(0x150)in navigator)){console[_0x3d645f(0xd1)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported');return;}const _0x64c70a=!!navigator['serviceWorker']['controller'];currentOptions2=_0x3c7c4d;const _0xda92d2=await detectBlockingServiceWorker(_0x3c7c4d[_0x3d645f(0x115)]);if(_0xda92d2){console[_0x3d645f(0x117)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0xda92d2);return;}try{console['log'](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x3c7c4d['swPath']+_0x3d645f(0x187)),registration=await navigator[_0x3d645f(0x150)][_0x3d645f(0xe5)](_0x3c7c4d[_0x3d645f(0x115)],{'scope':'/'}),console['log'](LOG_PREFIX2+'\x20Waiting\x20for\x20SW\x20ready...'),await navigator['serviceWorker'][_0x3d645f(0xbe)],console[_0x3d645f(0x134)](LOG_PREFIX2+_0x3d645f(0x186)),state[_0x3d645f(0x13c)]=ownsCurrentController(_0x3c7c4d[_0x3d645f(0x115)]);if(!_0x64c70a&&!navigator[_0x3d645f(0x150)][_0x3d645f(0xee)]){console[_0x3d645f(0x134)](LOG_PREFIX2+_0x3d645f(0x114)),window[_0x3d645f(0x111)][_0x3d645f(0xcc)]();return;}console['log'](LOG_PREFIX2+'\x20Sending\x20configuration\x20to\x20SW...'),await sendConfiguration();if(state['enabled']){const _0x883e8=document[_0x3d645f(0x10c)]('[data-enhance-runtime-bootstrap]')!==null;if(!_0x883e8){console[_0x3d645f(0x134)](LOG_PREFIX2+_0x3d645f(0x161)),window[_0x3d645f(0x111)][_0x3d645f(0xcc)]();return;}}updateOverlay(),console[_0x3d645f(0x134)](LOG_PREFIX2+_0x3d645f(0x190));}catch(_0x387a20){console['error'](LOG_PREFIX2+_0x3d645f(0x18f),_0x387a20);}}async function sendConfiguration(){const _0x1074c6=_0x1c528e;if(!state[_0x1074c6(0x116)]||!currentOptions2)return;const _0x42ed18=await resolveWorker();if(!_0x42ed18){console[_0x1074c6(0xd1)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x5a6c3e=window[_0x1074c6(0x164)]??null,_0x471b0d={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x1074c6(0xd7)],'enhancementUrl':_0x5a6c3e??void 0x0};console[_0x1074c6(0x134)](LOG_PREFIX2+_0x1074c6(0xdd),JSON['stringify'](_0x471b0d,null,0x2)),_0x42ed18['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x471b0d});}async function unregisterServiceWorker(_0x2805a6){const _0xcf8214=_0x1c528e;console[_0xcf8214(0x134)](LOG_PREFIX2+_0xcf8214(0x17b));if(!(_0xcf8214(0x150)in navigator))return;try{const _0x367e5d=registration??await navigator[_0xcf8214(0x150)][_0xcf8214(0x195)]('/');if(!_0x367e5d)return;const _0x4cdf9f=[_0x367e5d[_0xcf8214(0xe3)]?.['scriptURL'],_0x367e5d[_0xcf8214(0x183)]?.['scriptURL'],_0x367e5d[_0xcf8214(0x15b)]?.[_0xcf8214(0x135)]],_0x5c057f=_0x4cdf9f['some'](_0x1e6843=>_0x1e6843&&ownsServiceWorker(_0x1e6843,_0x2805a6));if(!_0x5c057f)return;_0x367e5d[_0xcf8214(0xe3)]&&_0x367e5d[_0xcf8214(0xe3)]['postMessage']({'type':WORKER_MESSAGE_DISABLE}),await _0x367e5d['unregister'](),registration=null,currentOptions2=null,console[_0xcf8214(0x134)](LOG_PREFIX2+_0xcf8214(0x13a));}catch(_0x1b5a7c){console[_0xcf8214(0x117)](LOG_PREFIX2+_0xcf8214(0x112),_0x1b5a7c);}}function ownsServiceWorker(_0x17cfca,_0x425e72){const _0x23557e=_0x1c528e,_0x4310d6=typeof window!=='undefined'?window[_0x23557e(0x111)][_0x23557e(0x18b)]:'',_0x44e415=new URL(_0x425e72,_0x4310d6||void 0x0)[_0x23557e(0x14d)];return _0x17cfca===_0x44e415||_0x17cfca['includes'](_0x23557e(0x129));}function ownsCurrentController(_0x2ed339){const _0x431641=_0x1c528e,_0x2f6d43=navigator[_0x431641(0x150)]?.[_0x431641(0xee)];if(!_0x2f6d43)return![];return ownsServiceWorker(_0x2f6d43['scriptURL'],_0x2ed339);}async function detectBlockingServiceWorker(_0x32de59){const _0x1cc602=_0x1c528e;if(!navigator['serviceWorker'])return null;try{const _0x1dbba5=await navigator['serviceWorker']['getRegistration']('/'),_0x2ec28b=_0x1dbba5?.[_0x1cc602(0xe3)]?.['scriptURL'];if(!_0x2ec28b)return null;if(ownsServiceWorker(_0x2ec28b,_0x32de59))return null;return _0x2ec28b;}catch{return null;}}async function resolveWorker(){const _0x381238=_0x1c528e,_0x4a8019=registration??await navigator['serviceWorker']?.[_0x381238(0x195)]('/');return _0x4a8019?.['active']??_0x4a8019?.[_0x381238(0x183)]??_0x4a8019?.[_0x381238(0x15b)]??null;}var LOG_PREFIX3=_0x1c528e(0xe4),STORAGE_KEY_ENHANCEMENT_ID=_0x1c528e(0x198),STORAGE_KEY_ENHANCEMENT_URL=_0x1c528e(0x13d);function isInitialized(){const _0x4e9a63=_0x1c528e;return typeof window!==_0x4e9a63(0x173)&&window[_0x4e9a63(0xfb)]===!![];}function setInitialized(_0x22c131){typeof window!=='undefined'&&(window['__enhanceInitialized']=_0x22c131);}function getOptions(){const _0xb303b9=_0x1c528e;return typeof window!==_0xb303b9(0x173)?window[_0xb303b9(0x146)]??null:null;}function _0xd9a6(_0x1e7767,_0xa0d95e){_0x1e7767=_0x1e7767-0xb0;const _0x382cef=_0x382c();let _0xd9a666=_0x382cef[_0x1e7767];return _0xd9a666;}function setOptions(_0xb058d0){const _0x913987=_0x1c528e;typeof window!==_0x913987(0x173)&&(window[_0x913987(0x146)]=_0xb058d0);}var Enhance={'init'(_0x4f7287){const _0x195333=_0x1c528e,_0x18b21c=Date[_0x195333(0xd8)]();console[_0x195333(0x134)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x18b21c),console['log'](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window[_0x195333(0x111)][_0x195333(0x14d)]),console[_0x195333(0x134)](LOG_PREFIX3+_0x195333(0x102)+document[_0x195333(0x18a)]);if(isInitialized())return console[_0x195333(0xd1)](LOG_PREFIX3+_0x195333(0x17d)),window[_0x195333(0x157)]??createController();setInitialized(!![]);const _0x4f523c=normalizeOptions(_0x4f7287);setOptions(_0x4f523c);const _0x5d2582=parseEnhancementParams();console[_0x195333(0x134)](LOG_PREFIX3+'\x20Enhancement\x20params:',JSON[_0x195333(0x14b)](_0x5d2582,null,0x2));if(_0x5d2582[_0x195333(0x191)])return cleanUrlParam(_0x195333(0xc9)),clearPersistedEnhancement(),console['log'](LOG_PREFIX3+_0x195333(0x140)),createController();if(!_0x5d2582[_0x195333(0x136)])return console[_0x195333(0x134)](LOG_PREFIX3+_0x195333(0x12e)),void unregisterServiceWorker(_0x4f523c[_0x195333(0x115)]),setupViteErrorListeners(),createController();return console[_0x195333(0x134)](LOG_PREFIX3+_0x195333(0xfc)+_0x5d2582['enhancementId']),state['enabled']=!![],void initializeEnhancement(_0x4f523c,_0x5d2582[_0x195333(0x136)],_0x5d2582[_0x195333(0x119)]),createController();}};async function initializeEnhancement(_0x592665,_0xb77056,_0x525d0b){const _0x43214a=_0x1c528e;let _0x58b39f=_0x525d0b;if(!_0x58b39f){console[_0x43214a(0x134)](LOG_PREFIX3+_0x43214a(0x158)+_0xb77056),_0x58b39f=await resolveEnhancementUrl(_0x592665,_0xb77056);if(!_0x58b39f){console[_0x43214a(0x117)](LOG_PREFIX3+_0x43214a(0xfd)),state['enabled']=![];return;}}else console[_0x43214a(0x134)](LOG_PREFIX3+_0x43214a(0x19a)+_0x58b39f);persistEnhancement(_0xb77056,_0x58b39f),window['__enhanceResolvedUrl']=_0x58b39f,console[_0x43214a(0x134)](LOG_PREFIX3+_0x43214a(0x178)),await registerServiceWorker(_0x592665),console[_0x43214a(0x134)](LOG_PREFIX3+_0x43214a(0x10b)),await loadOverlay({'overlayPath':_0x592665[_0x43214a(0x18c)],'enableViteHmr':_0x592665[_0x43214a(0x142)]['enableViteHmr'],'options':_0x592665,'onToggle':handleToggle}),console[_0x43214a(0x134)](LOG_PREFIX3+_0x43214a(0x141));}async function resolveEnhancementUrl(_0x415043,_0x1795ec){const _0x4c214a=_0x1c528e,_0x3be7aa=_0x415043[_0x4c214a(0x11e)]+_0x4c214a(0xf5)+_0x1795ec+_0x4c214a(0x167);console[_0x4c214a(0x134)](LOG_PREFIX3+_0x4c214a(0x10f)+_0x3be7aa);try{const _0x283564=await fetch(_0x3be7aa,{'headers':{'X-Enhance-Publishable-Key':_0x415043[_0x4c214a(0xd6)]}});if(!_0x283564['ok']){const _0x557111=await _0x283564[_0x4c214a(0x10d)]();return console['error'](LOG_PREFIX3+_0x4c214a(0x12a)+_0x283564[_0x4c214a(0x15e)]+'\x20'+_0x557111),null;}const _0xcafd60=await _0x283564[_0x4c214a(0xb7)](),_0xf520b9=''+_0x415043['backendUrl']+_0xcafd60[_0x4c214a(0xca)];return console['log'](LOG_PREFIX3+_0x4c214a(0x149)+_0xf520b9),_0xf520b9;}catch(_0x1a9f27){return console[_0x4c214a(0x117)](LOG_PREFIX3+_0x4c214a(0xf0),_0x1a9f27),null;}}function parseEnhancementParams(){const _0x27c92c=_0x1c528e,_0xcfac19=new URL(window[_0x27c92c(0x111)][_0x27c92c(0x14d)]),_0x2d141d=_0xcfac19[_0x27c92c(0xd0)][_0x27c92c(0x107)](_0x27c92c(0xc9))?.[_0x27c92c(0xc4)](),_0x2638de=_0x2d141d==='0'||_0x2d141d==='false'||_0x2d141d===_0x27c92c(0xe1);let _0x106bd3=_0xcfac19[_0x27c92c(0xd0)][_0x27c92c(0x107)](_0x27c92c(0x19e)),_0x3dfb18=null;if(_0x106bd3)try{const _0x26387c=sessionStorage[_0x27c92c(0xbb)](STORAGE_KEY_ENHANCEMENT_ID),_0x243da4=sessionStorage[_0x27c92c(0xbb)](STORAGE_KEY_ENHANCEMENT_URL);_0x26387c===_0x106bd3&&_0x243da4&&(_0x3dfb18=_0x243da4,console['log'](LOG_PREFIX3+_0x27c92c(0x137)));}catch{}else try{const _0x226062=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_ID),_0x2e5743=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_URL);_0x226062&&_0x2e5743&&(_0x106bd3=_0x226062,_0x3dfb18=_0x2e5743,console['log'](LOG_PREFIX3+_0x27c92c(0x151)),_0xcfac19[_0x27c92c(0xd0)][_0x27c92c(0x175)](_0x27c92c(0x19e),_0x106bd3),window['history'][_0x27c92c(0x17a)](null,document[_0x27c92c(0xf8)],_0xcfac19[_0x27c92c(0x11f)]()));}catch{}return{'enhancementId':_0x106bd3,'cachedUrl':_0x3dfb18,'explicitDisable':_0x2638de};}function persistEnhancement(_0x2142ec,_0x56ac08){const _0x18244f=_0x1c528e;try{sessionStorage['setItem'](STORAGE_KEY_ENHANCEMENT_ID,_0x2142ec),sessionStorage[_0x18244f(0x197)](STORAGE_KEY_ENHANCEMENT_URL,_0x56ac08),console[_0x18244f(0x134)](LOG_PREFIX3+_0x18244f(0xbd));}catch{}}function clearPersistedEnhancement(){const _0x7802d7=_0x1c528e;try{sessionStorage['removeItem'](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x7802d7(0xd2)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x7802d7(0x134)](LOG_PREFIX3+_0x7802d7(0xcb));}catch{}}function createController(){const _0x5b0da7=_0x1c528e,_0x14f073={'enable'(){const _0x32f9e6=getOptions();if(!_0x32f9e6)return;state['enabled']=!![],void registerServiceWorker(_0x32f9e6),void sendConfiguration(),updateOverlay();},'disable'(){const _0x15eada=_0xd9a6,_0x16e047=getOptions();if(!_0x16e047)return;state[_0x15eada(0x116)]=![],state[_0x15eada(0x13c)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x16e047['swPath']);},'status'(){const _0x3db3fd=_0xd9a6;return{'enabled':state['enabled'],'controlled':state[_0x3db3fd(0x13c)]};}};return typeof window!==_0x5b0da7(0x173)&&(window[_0x5b0da7(0x157)]=_0x14f073),_0x14f073;}function handleToggle(){const _0x5b7739=_0x1c528e,_0x4a5a87=createController();state[_0x5b7739(0x116)]?_0x4a5a87[_0x5b7739(0x163)]():_0x4a5a87[_0x5b7739(0x113)]();}function cleanUrlParam(_0x2c98c9){const _0x4cd4ff=_0x1c528e,_0xe1dfca=new URL(window[_0x4cd4ff(0x111)][_0x4cd4ff(0x14d)]);_0xe1dfca[_0x4cd4ff(0xd0)]['has'](_0x2c98c9)&&(_0xe1dfca[_0x4cd4ff(0xd0)]['delete'](_0x2c98c9),window[_0x4cd4ff(0xd9)]['replaceState'](null,document[_0x4cd4ff(0xf8)],_0xe1dfca['toString']()));}function setupViteErrorListeners(){const _0x302086=_0x1c528e;import.meta.hot&&(import.meta.hot['on'](_0x302086(0x152),_0xf50f50=>{const _0x5dbe5b=_0x302086;state[_0x5dbe5b(0x13f)]={'message':_0xf50f50['err']['message']},updateOverlay();}),import.meta.hot['on'](_0x302086(0xb3),()=>{const _0x2bd281=_0x302086;state[_0x2bd281(0x13f)]&&(state[_0x2bd281(0x13f)]=null,updateOverlay());}));}var package_default={'name':'@enhance-eng/sandbox','version':_0x1c528e(0x125),'type':_0x1c528e(0x179),'description':_0x1c528e(0x145),'license':_0x1c528e(0x155),'main':_0x1c528e(0x165),'module':_0x1c528e(0x165),'types':_0x1c528e(0x17f),'exports':{'.':{'types':_0x1c528e(0x17f),'import':_0x1c528e(0x165)},'./vite':{'types':_0x1c528e(0x169),'import':_0x1c528e(0xd4)}},'files':[_0x1c528e(0xc8)],'bin':{'enhance-sandbox':'./dev/cli.js'},'scripts':{'typecheck':_0x1c528e(0xfe),'dev':_0x1c528e(0x13e),'dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x1c528e(0x16d),'dev:staging:build':_0x1c528e(0x154),'build':_0x1c528e(0xfa),'build:release':_0x1c528e(0x171),'build:release:dev':'ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','version':_0x1c528e(0x17e)},'dependencies':{'commander':_0x1c528e(0x130),'zod':_0x1c528e(0x1a0)},'devDependencies':{'@types/node':_0x1c528e(0xf4),'javascript-obfuscator':'^4.1.1','tsup':_0x1c528e(0x128),'vite':_0x1c528e(0x193)},'publishConfig':{'access':_0x1c528e(0xc7)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',DIST_SERVICE_WORKER_PATH=_0x1c528e(0x109),DIST_RUNTIME_PATH=_0x1c528e(0x10e),PACKAGE_VERSION=typeof package_default[_0x1c528e(0xb1)]===_0x1c528e(0x166)?package_default[_0x1c528e(0xb1)]:'0.0.0';function normalizeAssetPath(_0x3dfc77){const _0x13a3a1=_0x1c528e;if(!_0x3dfc77)return _0x3dfc77;if(_0x3dfc77[_0x13a3a1(0xb5)](_0x13a3a1(0xde))||_0x3dfc77[_0x13a3a1(0xb5)](_0x13a3a1(0x192)))return _0x3dfc77;const _0x469ee=_0x3dfc77['replace'](/^\.\//,'');return _0x469ee[_0x13a3a1(0xb5)]('/')?_0x469ee:'/'+_0x469ee;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x2d6b95){const _0x194b18=_0x1c528e;return Enhance[_0x194b18(0x156)](_0x2d6b95);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function _0x382c(){const _0x4a0e05=['undefined','\x20overlayController\x20exists:\x20','set','enhance:configure','info','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','module','replaceState','\x20unregisterServiceWorker()\x20called','trim','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','bun\x20version\x20patch\x20--no-git-tag-version','./dev/index.d.ts','\x20enableViteHmr:\x20','skipped','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','waiting','$RefreshReg$','284maFLHZ','\x20SW\x20ready','...','default','\x20Module\x20imported\x20in\x20','readyState','origin','overlayPath','add','https://api.enhancelabs.ai','\x20Failed\x20to\x20register\x20service\x20worker:','\x20registerServiceWorker()\x20complete','explicitDisable','https://','^7.2.4','--public-dir\x20<path>','getRegistration','__enhanceReactRefreshInstalledOrigins','setItem','enhance.enhancementId','push','\x20Using\x20cached\x20enhancement\x20URL:\x20','position','\x20loadOverlay()\x20failed:','callbackBypass','enhancement','enableViteHmr','^3.22.4','8555340DZNTwU','$RefreshSig$','version','manifest','vite:beforeUpdate','\x20Importing\x20overlay\x20module\x20from:\x20','startsWith','code','json','--filename\x20<name>','../dist/index.js','sha256','getItem','0.0.0','\x20Persisted\x20enhancement\x20to\x20sessionStorage','ready','/@react-refresh','\x20→\x20','function','has','action','toLowerCase','stdout','relativeDestination','public','dev/','enhance','operatingPath','\x20Cleared\x20persisted\x20enhancement','reload','\x20Failed\x20to\x20import/create\x20overlay:','permissive','579160Oauuro','searchParams','warn','removeItem','replace','./dev/vite/index.js','5927910wairfX','publishableKey','security','now','history','override','Print\x20the\x20current\x20asset\x20manifest','cwd','\x20Sending\x20config\x20to\x20SW:','http://','[Enhance\x20Overlay]','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','off','\x20Setting\x20up\x20remote\x20HMR...','active','[Enhance\x20Runtime]','register','destinationPath','manifestPath','command','1709366uLvgCv','__development','\x20setupRemoteHMR()\x20for\x20','\x20Calling\x20updateOverlay()...','56Wmtcjm','controller','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','\x20Resolution\x20error:','search','\x20currentOptions\x20exists:\x20','filename','^24.10.1','/public/enhancements/','object','1EcdYTS','title','\x20updateOverlay()\x20called','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','__enhanceInitialized','\x20Enhancement\x20mode\x20-\x20ID:\x20','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','tsc\x20--noEmit','runtimeURL','8250275clcQeN','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Document\x20readyState:\x20','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20loadOverlay()\x20called','base64','511488hUbjdy','get','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','sw-enhance.js','enableOverlayHmr','\x20Loading\x20overlay...','querySelector','text','assets/enhance-runtime.js','\x20Calling:\x20','\x20composeOverlayState\x20-\x20state.controlled:\x20','location','\x20Failed\x20to\x20unregister\x20service\x20worker:','enable','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','swPath','enabled','error','enhance:disable','cachedUrl','ENOENT','update','onToggle','Enhance\x20sandbox\x20utility\x20CLI','backendUrl','toString','\x20Module\x20missing\x20createOverlay\x20export!','\x20doLoadOverlay()\x20starting...','/sw-enhance.js','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20(already\x20current)\x20[','0.3.21','\x20Overlay\x20controller\x20initialized\x20and\x20cached','injectIntoGlobalHook','^8.5.1','sw-enhance','\x20Resolution\x20failed:\x20','publicDir','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Normal\x20mode\x20-\x20no\x20enhancement','\x20HMR\x20setup\x20complete','^11.1.0','\x20loadOverlay()\x20complete','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','\x20Starting\x20fresh\x20overlay\x20load...','log','scriptURL','enhancementId','\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID','name',',\x20page\x20origin:\x20','\x20SW\x20unregistered','22KDFhkd','controlled','enhance.enhancementUrl','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','appError','\x20Explicit\x20disable\x20-\x20exiting','\x20Enhancement\x20initialization\x20complete','overlay','swFilename','\x20overlayPath:\x20','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','__enhanceOptions','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','serviceWorkerURL','\x20Resolved\x20to:\x20','copied','stringify','bottom-right','href','__enhanceOverlay','70923ySRfAF','serviceWorker','\x20Restored\x20enhancement\x20from\x20sessionStorage','vite:error','description','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','MIT','init','__enhanceController','\x20Resolving\x20enhancement\x20ID:\x20','__viteHMRLoaded','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','installing','\x20registerServiceWorker()\x20called','https://assets.enhancelabs.ai/overlay.js','status','option','\x20Updating\x20overlay\x20with\x20state:','\x20Page\x20not\x20enhanced\x20-\x20reloading','readFile','disable','__enhanceResolvedUrl','./dev/index.js','string','/resolve','write','./dev/vite/index.d.ts','36flzXKW','copyFile','[Enhance\x20Config]\x20Build-time\x20defaults:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','/assets/enhance-runtime.js','parseAsync','Copied\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','/@vite/client'];_0x382c=function(){return _0x4a0e05;};return _0x382c();}function serviceWorkerURL(){const _0x13c79e=_0x1c528e;return Enhance2[_0x13c79e(0x148)]();}function runtimeURL(){const _0x55dc43=_0x1c528e;return Enhance2[_0x55dc43(0xff)]();}import{promises as _0x4dea89}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x1c528e(0xb9),import.meta.url)));async function syncAssets(_0x456705){const _0x1a2edc=_0x1c528e,_0x3ec3f0=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x456705['swFilename']?'./'+_0x456705[_0x1a2edc(0x143)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0xcb7d0a=[];for(const _0x1c4669 of _0x3ec3f0){const _0x1f9b4b=cleanRelativePath(_0x1c4669[_0x1a2edc(0xda)]??_0x1c4669[_0x1a2edc(0xe7)]),_0x57e55f=join(distDir,cleanRelativePath(_0x1c4669['sourcePath'])),_0x109646=join(_0x456705[_0x1a2edc(0x12b)],_0x1f9b4b),[_0x44a3c1,_0x555c01]=await Promise['all']([readDigest(_0x57e55f),readDigest(_0x109646)]);if(_0x44a3c1&&_0x555c01&&_0x44a3c1===_0x555c01){_0xcb7d0a[_0x1a2edc(0x199)]({'sourcePath':_0x57e55f,'destinationPath':_0x109646,'relativeDestination':_0x1f9b4b,'status':_0x1a2edc(0x181)});continue;}await _0x4dea89['mkdir'](dirname(_0x109646),{'recursive':!![]}),await _0x4dea89[_0x1a2edc(0x16b)](_0x57e55f,_0x109646),_0xcb7d0a[_0x1a2edc(0x199)]({'sourcePath':_0x57e55f,'destinationPath':_0x109646,'relativeDestination':_0x1f9b4b,'status':_0x1a2edc(0x14a)});}return _0xcb7d0a;}function cleanRelativePath(_0x28801d){const _0x1200c3=_0x1c528e;return _0x28801d[_0x1200c3(0xd3)](/^[./]+/,'');}async function readDigest(_0x2e23f7){const _0x288236=_0x1c528e;try{const _0x5d10d0=await _0x4dea89[_0x288236(0x162)](_0x2e23f7);return createHash(_0x288236(0xba))['update'](_0x5d10d0)['digest'](_0x288236(0x105));}catch(_0x5a4a6b){if(_0x5a4a6b[_0x288236(0xb6)]===_0x288236(0x11a))return null;throw _0x5a4a6b;}}var program=new Command();program[_0x1c528e(0x138)]('enhance-sandbox')['description'](_0x1c528e(0x11d))['version'](_0x1c528e(0xbc)),program[_0x1c528e(0xe8)](_0x1c528e(0xb2))[_0x1c528e(0x153)](_0x1c528e(0xdb))[_0x1c528e(0xc3)](()=>{const _0x38d7e1=_0x1c528e,_0x57c566=getAssetManifest();process[_0x38d7e1(0xc5)][_0x38d7e1(0x168)](JSON[_0x38d7e1(0x14b)](_0x57c566,null,0x2)+'\x0a');}),program[_0x1c528e(0xe8)]('prepare-sw')[_0x1c528e(0x153)](_0x1c528e(0x132))['requiredOption'](_0x1c528e(0x194),_0x1c528e(0x15a))[_0x1c528e(0x15f)](_0x1c528e(0xb8),_0x1c528e(0x182))['action'](async _0x471c50=>{const _0x485131=_0x1c528e,_0x462623=resolve(process[_0x485131(0xdc)](),_0x471c50[_0x485131(0x12b)]),_0x18fa15=await syncAssets({'publicDir':_0x462623,'swFilename':_0x471c50[_0x485131(0xf3)]});for(const _0x416b8c of _0x18fa15){const _0x57e1ea=relative(process[_0x485131(0xdc)](),_0x416b8c[_0x485131(0xe6)]);_0x416b8c[_0x485131(0x15e)]===_0x485131(0x181)?process[_0x485131(0xc5)]['write']('Skipped\x20'+_0x416b8c[_0x485131(0xc6)]+_0x485131(0x124)+_0x57e1ea+']\x0a'):process[_0x485131(0xc5)]['write'](_0x485131(0x170)+_0x416b8c['relativeDestination']+_0x485131(0xc0)+_0x57e1ea+'\x0a');}}),program[_0x1c528e(0x16f)]();
|
package/dist/index.d.ts
CHANGED
|
@@ -75,11 +75,9 @@ declare global {
|
|
|
75
75
|
__enhanceInitialized?: boolean;
|
|
76
76
|
__enhanceOptions?: NormalizedOptions;
|
|
77
77
|
__enhanceController?: EnhanceController;
|
|
78
|
+
__enhanceResolvedUrl?: string;
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
|
-
/**
|
|
81
|
-
* Main entry point - the only public API.
|
|
82
|
-
*/
|
|
83
81
|
declare const Enhance$1: {
|
|
84
82
|
init(rawOptions: RawOptions): EnhanceController;
|
|
85
83
|
};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x56724d=_0x5080;(function(_0xff5399,_0x1aafb2){const _0x32088b=_0x5080,_0x2d93e3=_0xff5399();while(!![]){try{const _0x56ee7d=-parseInt(_0x32088b(0x1a1))/0x1+-parseInt(_0x32088b(0x130))/0x2+parseInt(_0x32088b(0x142))/0x3*(-parseInt(_0x32088b(0x18f))/0x4)+parseInt(_0x32088b(0x169))/0x5*(parseInt(_0x32088b(0x138))/0x6)+parseInt(_0x32088b(0x1a0))/0x7+parseInt(_0x32088b(0x196))/0x8+parseInt(_0x32088b(0x137))/0x9;if(_0x56ee7d===_0x1aafb2)break;else _0x2d93e3['push'](_0x2d93e3['shift']());}catch(_0x982aa1){_0x2d93e3['push'](_0x2d93e3['shift']());}}}(_0x3cdb,0xc6c77));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x56724d(0x203)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x56724d(0x1ed),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x56724d(0x203)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x56724d(0x164),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x56724d(0x203)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x56724d(0x204)](_0x56724d(0x1d5),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x1bb356){const _0x32ef53=_0x56724d;if(!_0x1bb356[_0x32ef53(0x17a)])throw new Error(_0x32ef53(0x13e));const _0x4b17f3=_0x1bb356[_0x32ef53(0x1ca)]??{};return{'publishableKey':_0x1bb356[_0x32ef53(0x17a)],'callbackBypass':_0x1bb356[_0x32ef53(0x1b8)]??[],'overlay':{'enabled':!![],'position':_0x32ef53(0x1b9),'enableViteHmr':_0x4b17f3[_0x32ef53(0x173)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x32ef53(0x1f4),'swPath':_0x32ef53(0x1d2),'overlayPath':_0x4b17f3[_0x32ef53(0x187)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x32ef53(0x1dc),'security':_0x4b17f3[_0x32ef53(0x1ce)]??_0x32ef53(0x133),'backendUrl':_0x4b17f3['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function _0x5080(_0x30e4c3,_0xa1cbee){_0x30e4c3=_0x30e4c3-0x130;const _0x3cdb5c=_0x3cdb();let _0x5080ec=_0x3cdb5c[_0x30e4c3];return _0x5080ec;}function getEnhancementId(){const _0x116a54=_0x56724d;try{const _0x492f70=new URLSearchParams(window[_0x116a54(0x154)][_0x116a54(0x183)]);return _0x492f70['get'](_0x116a54(0x18a))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x56724d(0x191),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x225151){const _0x581bc4=_0x56724d;console[_0x581bc4(0x204)](LOG_PREFIX+_0x581bc4(0x170)),console[_0x581bc4(0x204)](LOG_PREFIX+_0x581bc4(0x175)+_0x225151[_0x581bc4(0x187)]),console[_0x581bc4(0x204)](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x225151['enableViteHmr']),currentOptions=_0x225151[_0x581bc4(0x18b)],toggleHandler=_0x225151[_0x581bc4(0x1b0)];if(overlayController){console['log'](LOG_PREFIX+_0x581bc4(0x180)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x581bc4(0x204)](LOG_PREFIX+_0x581bc4(0x182)),overlayLoadPromise;console[_0x581bc4(0x204)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x225151);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x581bc4(0x186));}catch(_0x162603){console[_0x581bc4(0x1fb)](LOG_PREFIX+_0x581bc4(0x1d9),_0x162603);}finally{overlayLoadPromise=null;}}function _0x3cdb(){const _0x1abef5=['location','\x20resolveWorker:','toString','MIT','some','enhancementId','swPath','./dev/vite/index.d.ts','\x20Unregistering\x20SW...','\x20No\x20window\x20object\x20-\x20skipping','replaceState','overlay','object','\x20Vite\x20error\x20detected:','scope','has','https://api.enhancelabs.ai','\x20detectBlocking\x20error:','register','\x20init()\x20complete\x20-\x20enhancement\x20mode','/@vite/client','5bLRFuh','\x20Setting\x20up\x20remote\x20HMR...','/@react-refresh','waiting','\x20composeOverlayState\x20-\x20enhancementId:\x20','default','\x20Registering\x20SW\x20at\x20','\x20loadOverlay()\x20called','\x20composeOverlayState\x20-\x20state.enabled:\x20','searchParams','enableOverlayHmr','add','\x20overlayPath:\x20','\x20Vite\x20client\x20already\x20loaded\x20for\x20','http://','err','\x20Registration\x20returned:','publishableKey','sw-enhance','\x20Unregistering\x20any\x20existing\x20SW...','\x20Controller\x20state:','includes','[Enhance\x20Runtime]','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','search','\x20Found\x20registration:','\x20state.enabled:\x20','\x20loadOverlay()\x20complete','overlayPath','history','./dev/vite/index.js','enhancement','options','^24.10.1','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20doLoadOverlay()\x20starting...','2862056LDDVLe','\x20init()\x20called\x20at\x20','[Enhance\x20Overlay]','replace','\x20enhancementUrl:\x20','@enhance-eng/sandbox','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','606048qDXWrp','\x20Current\x20URL:\x20','\x20currentOptions\x20exists:\x20','\x20composeOverlayState\x20-\x20state.controlled:\x20','get','\x20ownsServiceWorker?\x20scriptURL=','getRegistration','\x20Calling\x20createOverlay()...','\x20Starting\x20SW\x20registration\x20(async)...','serviceWorker','3332700WTWphI','1199515EKtoWu','^4.1.1','querySelector','\x20Config\x20sent\x20to\x20SW','^7.2.4','__viteHMRLoaded',',\x20expected=','\x20Raw\x20options:','scriptURL','position','createOverlay','enable','dev/','active','\x20Overlay\x20origin:\x20','onToggle','\x20Module\x20exports:','title','stringify','update','unregister','\x20registerServiceWorker()\x20complete','readyState','callbackBypass','bottom-right','\x20enhancementId:\x20','toLowerCase','keys','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','N/A','runtimeURL','./dev/index.js','off','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','enhance','none','\x20with\x20scope\x20\x27/\x27...','\x20No\x20blocking\x20SW\x20found','\x20Updating\x20overlay...','__development','0.0.0','module','version','security','__vite_plugin_react_preamble_installed__','0.3.21','controlled','/sw-enhance.js','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','tsc\x20--noEmit','[Enhance\x20Config]\x20Build-time\x20defaults:','public','__enhanceReactRefreshInstalledOrigins','\x20SW\x20ready!\x20Active:','\x20loadOverlay()\x20failed:','\x20Failed\x20to\x20unregister\x20service\x20worker:','injectIntoGlobalHook','/assets/enhance-runtime.js','^3.22.4','appError','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','href','controller','hasEnhancement','\x20Module\x20imported\x20in\x20','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20swPath:\x20','init','\x20overlayController\x20exists:\x20','origin','\x20Document\x20readyState:\x20','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','state','https://assets.enhancelabs.ai/overlay.js','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','__enhanceInitialized','enhance:disable','\x20Calling\x20updateOverlay()...','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20detectBlocking\x20-\x20existing\x20registration:','info','disable','$RefreshSig$','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20HMR\x20setup\x20complete','\x20Service\x20workers\x20supported',',\x20page\x20origin:\x20','error','enabled','\x20Failed\x20to\x20register\x20service\x20worker:','https://','\x20Current\x20controller:','false','__enhanceOptions','...','undefined','log','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','state:\x20','1330016qoDmtS','\x20unregisterServiceWorker()\x20called','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','permissive','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','reload','startsWith','20456640ATkFIk','7709604eZSOlu','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20BLOCKING\x20SW\x20detected:\x20','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','\x20Current\x20controller\x20after\x20ready:','installing','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','warn','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','6ZuIYKT','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','function','\x20init()\x20complete\x20-\x20normal\x20mode','enableViteHmr','\x20First\x20initialization','\x20Controller\x20created:','\x20SW\x20unregistered\x20successfully','\x20setupRemoteHMR()\x20for\x20','\x20Sending\x20customer\x20configuration...','__enhanceOverlay','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','^11.1.0','now','bun\x20version\x20patch\x20--no-git-tag-version','\x20No\x20current\x20controller','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch'];_0x3cdb=function(){return _0x1abef5;};return _0x3cdb();}async function doLoadOverlay(_0x28e7c3){const _0x32a1ee=_0x56724d;console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x18e));if(typeof window===_0x32a1ee(0x203)){console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x15d));return;}if(window[_0x32a1ee(0x14d)]){console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x144)),overlayController=window['__enhanceOverlay'];return;}console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x1ee));try{_0x28e7c3[_0x32a1ee(0x147)]&&(console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x16a)),await setupRemoteHMR(_0x28e7c3['overlayPath']));console[_0x32a1ee(0x204)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x28e7c3[_0x32a1ee(0x187)]);const _0x4b6f5c=Date[_0x32a1ee(0x150)](),_0xdf210b=await import(_0x28e7c3[_0x32a1ee(0x187)]);console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x1e4)+(Date[_0x32a1ee(0x150)]()-_0x4b6f5c)+'ms'),console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x1b1),Object['keys'](_0xdf210b));if(typeof _0xdf210b?.[_0x32a1ee(0x1ab)]!==_0x32a1ee(0x145)){console[_0x32a1ee(0x1fb)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x32a1ee(0x1fb)](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x32a1ee(0x1bc)](_0xdf210b));return;}console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x19d));const _0x21443c=_0xdf210b[_0x32a1ee(0x1ab)]();console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x149),_0x21443c),overlayController=_0x21443c,window[_0x32a1ee(0x14d)]=_0x21443c,_0x21443c['onToggle'](_0x28e7c3[_0x32a1ee(0x1b0)]),console[_0x32a1ee(0x204)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console['log'](LOG_PREFIX+_0x32a1ee(0x1f1)),updateOverlay();}catch(_0x492469){console[_0x32a1ee(0x1fb)](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x492469);}}function updateOverlay(){const _0x21d299=_0x56724d;console[_0x21d299(0x204)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x21d299(0x204)](LOG_PREFIX+_0x21d299(0x1e8)+!!overlayController),console[_0x21d299(0x204)](LOG_PREFIX+_0x21d299(0x198)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x21d299(0x204)](LOG_PREFIX+_0x21d299(0x134));return;}const _0x51c2cf=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x21d299(0x1b3)](_0x51c2cf,null,0x2)),overlayController[_0x21d299(0x1b4)](_0x51c2cf),console[_0x21d299(0x204)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x178dd1){const _0x438409=_0x56724d,_0x441586=getEnhancementId();return console['log'](LOG_PREFIX+_0x438409(0x16d)+_0x441586),console[_0x438409(0x204)](LOG_PREFIX+_0x438409(0x171)+state[_0x438409(0x1fc)]),console[_0x438409(0x204)](LOG_PREFIX+_0x438409(0x199)+state[_0x438409(0x1d1)]),{'enhancementId':_0x441586,'enabled':state[_0x438409(0x1fc)],'controlled':state[_0x438409(0x1d1)],'overlayPosition':_0x178dd1[_0x438409(0x15f)][_0x438409(0x1aa)],'securityMode':_0x178dd1[_0x438409(0x1ce)],'backendBaseUrl':_0x178dd1['backendUrl'],'appError':state[_0x438409(0x1de)]};}async function setupRemoteHMR(_0x1fce53){const _0x396233=_0x56724d;console[_0x396233(0x204)](LOG_PREFIX+_0x396233(0x14b)+_0x1fce53);if(typeof window==='undefined')return;try{const _0x31ddd5=new URL(_0x1fce53,window[_0x396233(0x154)]['origin']),_0x51c433=_0x31ddd5[_0x396233(0x1e9)];console[_0x396233(0x204)](LOG_PREFIX+_0x396233(0x1af)+_0x51c433+_0x396233(0x1fa)+window[_0x396233(0x154)][_0x396233(0x1e9)]);if(_0x51c433===window[_0x396233(0x154)][_0x396233(0x1e9)]){console[_0x396233(0x204)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x396233(0x204)](LOG_PREFIX+_0x396233(0x1c4)),await ensureReactRefreshPreamble(_0x51c433),await ensureViteClient(_0x51c433),console[_0x396233(0x204)](LOG_PREFIX+_0x396233(0x1f8));}catch(_0x341c9f){console[_0x396233(0x140)](LOG_PREFIX+_0x396233(0x13b),_0x341c9f);}}async function ensureReactRefreshPreamble(_0x3c8714){const _0x41350e=_0x56724d;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x41350e(0x1d7)]['has'](_0x3c8714)){console['log'](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x3c8714);return;}console['log'](LOG_PREFIX+_0x41350e(0x1f7)+_0x3c8714+_0x41350e(0x202));const _0x5a3191=await import(_0x3c8714+_0x41350e(0x16b)),_0x57e1d8=_0x5a3191&&typeof _0x5a3191===_0x41350e(0x160)&&_0x41350e(0x16e)in _0x5a3191?_0x5a3191[_0x41350e(0x16e)]:_0x5a3191;if(!isRefreshRuntime(_0x57e1d8)){console[_0x41350e(0x140)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x57e1d8[_0x41350e(0x1db)](window),window['$RefreshReg$']=()=>{},window[_0x41350e(0x1f6)]=()=>_0x11da6c=>_0x11da6c,window[_0x41350e(0x1cf)]=!![],window[_0x41350e(0x1d7)][_0x41350e(0x174)](_0x3c8714),console['log'](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x3c8714);}async function ensureViteClient(_0x41671b){const _0x244c8d=_0x56724d;window[_0x244c8d(0x1a6)]??=new Set();if(window['__viteHMRLoaded']['has'](_0x41671b)){console['log'](LOG_PREFIX+_0x244c8d(0x176)+_0x41671b);return;}console[_0x244c8d(0x204)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x41671b+_0x244c8d(0x202)),await import(_0x41671b+_0x244c8d(0x168)),window[_0x244c8d(0x1a6)][_0x244c8d(0x174)](_0x41671b),console[_0x244c8d(0x204)](LOG_PREFIX+_0x244c8d(0x1bd)+_0x41671b);}function isRefreshRuntime(_0xf3c991){const _0x3e3542=_0x56724d;return typeof _0xf3c991==='object'&&_0xf3c991!==null&&_0x3e3542(0x1db)in _0xf3c991&&typeof _0xf3c991[_0x3e3542(0x1db)]==='function';}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x56724d(0x1f0),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x18ffae){const _0x1233d9=_0x56724d;console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x1e6)+_0x18ffae['swPath']);if(!(_0x1233d9(0x19f)in navigator)){console[_0x1233d9(0x140)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console['log'](LOG_PREFIX2+_0x1233d9(0x1f9));const _0x1e6907=navigator[_0x1233d9(0x19f)]['controller'];console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x1ff),_0x1e6907?.[_0x1233d9(0x1a9)]??'none'),console['log'](LOG_PREFIX2+_0x1233d9(0x17d),_0x1e6907?.[_0x1233d9(0x1ec)]??_0x1233d9(0x1c0));const _0x4cf9bd=!!_0x1e6907;currentOptions2=_0x18ffae,console['log'](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x242c35=await detectBlockingServiceWorker(_0x18ffae['swPath']);if(_0x242c35){console[_0x1233d9(0x1fb)](LOG_PREFIX2+_0x1233d9(0x13a)+_0x242c35),console['error'](LOG_PREFIX2+_0x1233d9(0x143));return;}console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x1c8));try{console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x16f)+_0x18ffae[_0x1233d9(0x15a)]+_0x1233d9(0x1c7)),registration=await navigator[_0x1233d9(0x19f)][_0x1233d9(0x166)](_0x18ffae[_0x1233d9(0x15a)],{'scope':'/'}),console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x179),{'scope':registration[_0x1233d9(0x162)],'active':registration[_0x1233d9(0x1ae)]?.[_0x1233d9(0x1a9)],'waiting':registration['waiting']?.[_0x1233d9(0x1a9)],'installing':registration['installing']?.['scriptURL']}),console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x1eb));const _0x312075=await navigator['serviceWorker']['ready'];console['log'](LOG_PREFIX2+_0x1233d9(0x1d8),_0x312075['active']?.['scriptURL']);const _0x5ba9d9=ownsCurrentController(_0x18ffae[_0x1233d9(0x15a)]);state['controlled']=_0x5ba9d9,console[_0x1233d9(0x204)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x5ba9d9),console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x13c),navigator[_0x1233d9(0x19f)][_0x1233d9(0x1e2)]?.[_0x1233d9(0x1a9)]??_0x1233d9(0x1c6));if(!_0x4cf9bd&&!navigator[_0x1233d9(0x19f)][_0x1233d9(0x1e2)]){console['log'](LOG_PREFIX2+_0x1233d9(0x1be)),window[_0x1233d9(0x154)][_0x1233d9(0x135)]();return;}console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x14c)),await sendConfiguration();if(state['enabled']){const _0x490dc6=document[_0x1233d9(0x1a3)]('[data-enhance-runtime-bootstrap]')!==null;console['log'](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x490dc6);if(!_0x490dc6){console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x195)),window[_0x1233d9(0x154)][_0x1233d9(0x135)]();return;}}console['log'](LOG_PREFIX2+_0x1233d9(0x1c9)),updateOverlay(),console['log'](LOG_PREFIX2+_0x1233d9(0x1b6));}catch(_0x88a426){console[_0x1233d9(0x1fb)](LOG_PREFIX2+_0x1233d9(0x1fd),_0x88a426);}}async function sendConfiguration(){const _0x207e3a=_0x56724d;console[_0x207e3a(0x204)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0x207e3a(0x204)](LOG_PREFIX2+_0x207e3a(0x185)+state[_0x207e3a(0x1fc)]+',\x20currentOptions:\x20'+!!currentOptions2);if(!state[_0x207e3a(0x1fc)]||!currentOptions2){console['log'](LOG_PREFIX2+_0x207e3a(0x1f2));return;}const _0x595223=await resolveWorker();if(!_0x595223){console[_0x207e3a(0x140)](LOG_PREFIX2+_0x207e3a(0x1e5));return;}const _0x3a6afa={'publishableKey':currentOptions2[_0x207e3a(0x17a)],'callbackBypass':currentOptions2[_0x207e3a(0x1b8)],'securityMode':currentOptions2[_0x207e3a(0x1ce)]};console[_0x207e3a(0x204)](LOG_PREFIX2+'\x20Sending\x20customer\x20config\x20to\x20SW:',JSON[_0x207e3a(0x1b3)](_0x3a6afa,null,0x2)),_0x595223['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x3a6afa}),console[_0x207e3a(0x204)](LOG_PREFIX2+_0x207e3a(0x1a4));}async function unregisterServiceWorker(_0x43d135){const _0x4ca94d=_0x56724d;console[_0x4ca94d(0x204)](LOG_PREFIX2+_0x4ca94d(0x131));if(!(_0x4ca94d(0x19f)in navigator)){console['log'](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}try{const _0x4159d7=registration??await navigator[_0x4ca94d(0x19f)][_0x4ca94d(0x19c)]('/');if(!_0x4159d7){console[_0x4ca94d(0x204)](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console['log'](LOG_PREFIX2+_0x4ca94d(0x184),{'scope':_0x4159d7[_0x4ca94d(0x162)],'active':_0x4159d7[_0x4ca94d(0x1ae)]?.[_0x4ca94d(0x1a9)],'waiting':_0x4159d7[_0x4ca94d(0x16c)]?.[_0x4ca94d(0x1a9)],'installing':_0x4159d7[_0x4ca94d(0x13d)]?.[_0x4ca94d(0x1a9)]});const _0x3ec4d5=[_0x4159d7[_0x4ca94d(0x1ae)]?.[_0x4ca94d(0x1a9)],_0x4159d7[_0x4ca94d(0x16c)]?.[_0x4ca94d(0x1a9)],_0x4159d7[_0x4ca94d(0x13d)]?.[_0x4ca94d(0x1a9)]],_0x5c9d60=_0x3ec4d5[_0x4ca94d(0x158)](_0x510d1d=>_0x510d1d&&ownsServiceWorker(_0x510d1d,_0x43d135));if(!_0x5c9d60){console[_0x4ca94d(0x204)](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x4159d7['active']&&(console['log'](LOG_PREFIX2+_0x4ca94d(0x14e)),_0x4159d7[_0x4ca94d(0x1ae)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console[_0x4ca94d(0x204)](LOG_PREFIX2+_0x4ca94d(0x15c)),await _0x4159d7[_0x4ca94d(0x1b5)](),registration=null,currentOptions2=null,console[_0x4ca94d(0x204)](LOG_PREFIX2+_0x4ca94d(0x14a));}catch(_0x1294c8){console[_0x4ca94d(0x1fb)](LOG_PREFIX2+_0x4ca94d(0x1da),_0x1294c8);}}function ownsServiceWorker(_0x4df3ae,_0x1ee5fb){const _0x5c576f=_0x56724d,_0x2cebea=typeof window!==_0x5c576f(0x203)?window['location']['origin']:'',_0x29a730=new URL(_0x1ee5fb,_0x2cebea||void 0x0)['href'],_0x20f8ee=_0x4df3ae===_0x29a730||_0x4df3ae[_0x5c576f(0x17e)](_0x5c576f(0x17b));return console[_0x5c576f(0x204)](LOG_PREFIX2+_0x5c576f(0x19b)+_0x4df3ae+_0x5c576f(0x1a7)+_0x29a730+',\x20owns='+_0x20f8ee),_0x20f8ee;}function ownsCurrentController(_0x3b5df4){const _0x5c53be=_0x56724d;if(typeof navigator===_0x5c53be(0x203))return![];const _0x9fc8f4=navigator[_0x5c53be(0x19f)]?.[_0x5c53be(0x1e2)];if(!_0x9fc8f4)return console[_0x5c53be(0x204)](LOG_PREFIX2+_0x5c53be(0x152)),![];return ownsServiceWorker(_0x9fc8f4['scriptURL'],_0x3b5df4);}async function detectBlockingServiceWorker(_0x1a2f5f){const _0x308a05=_0x56724d;if(!navigator['serviceWorker'])return null;try{const _0x4ee9b1=await navigator[_0x308a05(0x19f)][_0x308a05(0x19c)]('/');console[_0x308a05(0x204)](LOG_PREFIX2+_0x308a05(0x1f3),_0x4ee9b1?.['active']?.[_0x308a05(0x1a9)]??_0x308a05(0x1c6));const _0x4cfbca=_0x4ee9b1?.[_0x308a05(0x1ae)]?.[_0x308a05(0x1a9)];if(!_0x4cfbca)return null;if(ownsServiceWorker(_0x4cfbca,_0x1a2f5f))return null;return _0x4cfbca;}catch(_0x4f7cb5){return console[_0x308a05(0x1fb)](LOG_PREFIX2+_0x308a05(0x165),_0x4f7cb5),null;}}async function resolveWorker(){const _0x17517b=_0x56724d,_0x45ff04=registration??await navigator[_0x17517b(0x19f)]?.[_0x17517b(0x19c)]('/'),_0x2f9513=_0x45ff04?.['active']??_0x45ff04?.[_0x17517b(0x16c)]??_0x45ff04?.[_0x17517b(0x13d)]??null;return console[_0x17517b(0x204)](LOG_PREFIX2+_0x17517b(0x155),_0x2f9513?.[_0x17517b(0x1a9)]??_0x17517b(0x1c6),_0x17517b(0x206)+(_0x2f9513?.[_0x17517b(0x1ec)]??'N/A')),_0x2f9513;}var LOG_PREFIX3=_0x56724d(0x17f);function isInitialized(){const _0x583589=_0x56724d;return typeof window!==_0x583589(0x203)&&window['__enhanceInitialized']===!![];}function setInitialized(_0x5ec6fa){const _0x53767f=_0x56724d;typeof window!=='undefined'&&(window[_0x53767f(0x1ef)]=_0x5ec6fa);}function getOptions(){const _0x6437fd=_0x56724d;return typeof window!=='undefined'?window[_0x6437fd(0x201)]??null:null;}function setOptions(_0x5c9e19){const _0x2a601c=_0x56724d;typeof window!==_0x2a601c(0x203)&&(window[_0x2a601c(0x201)]=_0x5c9e19);}var Enhance={'init'(_0x14a733){const _0x5c607=_0x56724d,_0x3dc0d2=Date[_0x5c607(0x150)]();console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x190)+_0x3dc0d2),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x197)+window[_0x5c607(0x154)][_0x5c607(0x1e1)]),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x1ea)+document[_0x5c607(0x1b7)]),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x1a8),JSON[_0x5c607(0x1b3)](_0x14a733,null,0x2));if(isInitialized())return console[_0x5c607(0x140)](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window['__enhanceController']??createController();setInitialized(!![]),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x148));const _0x9867cf=normalizeOptions(_0x14a733);setOptions(_0x9867cf),console['log'](LOG_PREFIX3+'\x20Normalized\x20options:',JSON[_0x5c607(0x1b3)](_0x9867cf,null,0x2));const _0x3538bd=parseUrlParams();console['log'](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x5c607(0x1b3)](_0x3538bd,null,0x2));if(_0x3538bd['explicitDisable'])return cleanUrlParam(_0x5c607(0x1c5)),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x18d)),createController();if(_0x3538bd[_0x5c607(0x1e3)])return console[_0x5c607(0x204)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x193)+_0x3538bd['enhancementUrl']),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x1ba)+_0x3538bd[_0x5c607(0x159)]),state[_0x5c607(0x1fc)]=!![],console['log'](LOG_PREFIX3+'\x20Starting\x20overlay\x20load\x20(async)...'),void loadOverlay({'overlayPath':_0x9867cf[_0x5c607(0x187)],'enableViteHmr':_0x9867cf[_0x5c607(0x15f)][_0x5c607(0x147)],'options':_0x9867cf,'onToggle':handleToggle}),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x19e)),void registerServiceWorker(_0x9867cf),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x167)),createController();return console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x181)),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x17c)),void unregisterServiceWorker(_0x9867cf['swPath']),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x146)),import.meta.hot&&(console['log'](LOG_PREFIX3+_0x5c607(0x205)),import.meta.hot['on']('vite:error',_0x58b790=>{const _0x270dc9=_0x5c607;console['log'](LOG_PREFIX3+_0x270dc9(0x161),_0x58b790),state[_0x270dc9(0x1de)]={'message':_0x58b790[_0x270dc9(0x178)]['message']},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x472f60=_0x5c607;state[_0x472f60(0x1de)]&&(console[_0x472f60(0x204)](LOG_PREFIX3+_0x472f60(0x1d3)),state[_0x472f60(0x1de)]=null,updateOverlay());})),createController();}};function createController(){const _0x56ec0e={'enable'(){const _0x4e03c1=_0x5080,_0x3018e8=getOptions();if(!_0x3018e8)return;state[_0x4e03c1(0x1fc)]=!![],void loadOverlay({'overlayPath':_0x3018e8[_0x4e03c1(0x187)],'enableViteHmr':_0x3018e8['overlay'][_0x4e03c1(0x147)],'options':_0x3018e8,'onToggle':handleToggle}),void registerServiceWorker(_0x3018e8),void sendConfiguration(),updateOverlay();},'disable'(){const _0x507aca=_0x5080,_0x37aefa=getOptions();if(!_0x37aefa)return;state[_0x507aca(0x1fc)]=![],state[_0x507aca(0x1d1)]=![],updateOverlay(),void unregisterServiceWorker(_0x37aefa[_0x507aca(0x15a)]);},'status'(){const _0x250a1c=_0x5080;return{'enabled':state['enabled'],'controlled':state[_0x250a1c(0x1d1)]};}};return typeof window!=='undefined'&&(window['__enhanceController']=_0x56ec0e),_0x56ec0e;}function handleToggle(){const _0x5a25ce=_0x56724d,_0x411f14=createController();state[_0x5a25ce(0x1fc)]?_0x411f14[_0x5a25ce(0x1f5)]():_0x411f14[_0x5a25ce(0x1ac)]();}function parseUrlParams(){const _0x38e707=_0x56724d,_0x3f5d32=new URL(window[_0x38e707(0x154)][_0x38e707(0x1e1)]),_0x1aceaf=_0x3f5d32[_0x38e707(0x172)]['get'](_0x38e707(0x1c5))?.[_0x38e707(0x1bb)](),_0xffbdbc=_0x3f5d32[_0x38e707(0x172)][_0x38e707(0x19a)]('enhancementUrl'),_0x4e6595=_0x3f5d32[_0x38e707(0x172)][_0x38e707(0x19a)](_0x38e707(0x18a));return{'hasEnhancement':Boolean(_0xffbdbc||_0x4e6595),'explicitDisable':_0x1aceaf==='0'||_0x1aceaf===_0x38e707(0x200)||_0x1aceaf===_0x38e707(0x1c3),'enhancementUrl':_0xffbdbc,'enhancementId':_0x4e6595};}function cleanUrlParam(_0x547aea){const _0x4dfe9f=_0x56724d,_0x700376=new URL(window['location'][_0x4dfe9f(0x1e1)]);_0x700376[_0x4dfe9f(0x172)][_0x4dfe9f(0x163)](_0x547aea)&&(_0x700376['searchParams']['delete'](_0x547aea),window[_0x4dfe9f(0x188)][_0x4dfe9f(0x15e)](null,document[_0x4dfe9f(0x1b2)],_0x700376[_0x4dfe9f(0x156)]()));}var package_default={'name':_0x56724d(0x194),'version':_0x56724d(0x1d0),'type':_0x56724d(0x1cc),'description':_0x56724d(0x1e0),'license':_0x56724d(0x157),'main':'./dev/index.js','module':_0x56724d(0x1c2),'types':'./dev/index.d.ts','exports':{'.':{'types':'./dev/index.d.ts','import':_0x56724d(0x1c2)},'./vite':{'types':_0x56724d(0x15b),'import':_0x56724d(0x189)}},'files':[_0x56724d(0x1ad)],'bin':{'enhance-sandbox':'./dev/cli.js'},'scripts':{'typecheck':_0x56724d(0x1d4),'dev':_0x56724d(0x153),'dev:build':_0x56724d(0x1bf),'dev:staging':_0x56724d(0x132),'dev:staging:build':_0x56724d(0x139),'build':_0x56724d(0x13f),'build:release':_0x56724d(0x141),'build:release:dev':_0x56724d(0x1df),'version':_0x56724d(0x151)},'dependencies':{'commander':_0x56724d(0x14f),'zod':_0x56724d(0x1dd)},'devDependencies':{'@types/node':_0x56724d(0x18c),'javascript-obfuscator':_0x56724d(0x1a2),'tsup':'^8.5.1','vite':_0x56724d(0x1a5)},'publishConfig':{'access':_0x56724d(0x1d6)}},DEFAULT_SERVICE_WORKER_PATH=_0x56724d(0x1d2),DEFAULT_RUNTIME_PATH=_0x56724d(0x1dc),PACKAGE_VERSION=typeof package_default[_0x56724d(0x1cd)]==='string'?package_default[_0x56724d(0x1cd)]:_0x56724d(0x1cb);function normalizeAssetPath(_0x3d97d7){const _0x19b8d6=_0x56724d;if(!_0x3d97d7)return _0x3d97d7;if(_0x3d97d7['startsWith'](_0x19b8d6(0x177))||_0x3d97d7[_0x19b8d6(0x136)](_0x19b8d6(0x1fe)))return _0x3d97d7;const _0x50d354=_0x3d97d7[_0x19b8d6(0x192)](/^\.\//,'');return _0x50d354[_0x19b8d6(0x136)]('/')?_0x50d354:'/'+_0x50d354;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x25a971){const _0x56545e=_0x56724d;return Enhance[_0x56545e(0x1e7)](_0x25a971);},'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 _0x55326d=_0x56724d;return Enhance2[_0x55326d(0x1c1)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x11e49c=_0x14a0;(function(_0xdef4a5,_0x53698c){const _0x205981=_0x14a0,_0x22076b=_0xdef4a5();while(!![]){try{const _0x15c9ed=parseInt(_0x205981(0x114))/0x1+parseInt(_0x205981(0xfd))/0x2+parseInt(_0x205981(0xfc))/0x3*(parseInt(_0x205981(0x11e))/0x4)+-parseInt(_0x205981(0x119))/0x5*(-parseInt(_0x205981(0x154))/0x6)+parseInt(_0x205981(0xe8))/0x7+-parseInt(_0x205981(0x116))/0x8*(-parseInt(_0x205981(0xf9))/0x9)+-parseInt(_0x205981(0x10f))/0xa;if(_0x15c9ed===_0x53698c)break;else _0x22076b['push'](_0x22076b['shift']());}catch(_0x4f7dc1){_0x22076b['push'](_0x22076b['shift']());}}}(_0x1d5f,0x99e36));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x11e49c(0x148)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x11e49c(0xf8),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x11e49c(0x148)?__ENHANCE_DEFAULT_BACKEND_URL__:'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!=='undefined'?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console['log']('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x525aa6){const _0x3f06c4=_0x11e49c;if(!_0x525aa6[_0x3f06c4(0x8d)])throw new Error(_0x3f06c4(0x131));const _0x1cea6a=_0x525aa6[_0x3f06c4(0x8a)]??{};return{'publishableKey':_0x525aa6[_0x3f06c4(0x8d)],'callbackBypass':_0x525aa6[_0x3f06c4(0xad)]??[],'overlay':{'enabled':!![],'position':_0x3f06c4(0x12d),'enableViteHmr':_0x1cea6a[_0x3f06c4(0xe5)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x3f06c4(0xd2),'swPath':_0x3f06c4(0x156),'overlayPath':_0x1cea6a[_0x3f06c4(0x109)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x1cea6a[_0x3f06c4(0x9c)]??_0x3f06c4(0x13c),'backendUrl':_0x1cea6a[_0x3f06c4(0xab)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x22bbfc=_0x11e49c;try{const _0x21f92c=new URLSearchParams(window[_0x22bbfc(0x14b)][_0x22bbfc(0x133)]);return _0x21f92c['get'](_0x22bbfc(0x13b))?.[_0x22bbfc(0x14c)]()||'';}catch{return'';}}var LOG_PREFIX=_0x11e49c(0xf3),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x9d424a){const _0x4095f2=_0x11e49c;console[_0x4095f2(0x90)](LOG_PREFIX+_0x4095f2(0xa1)),console[_0x4095f2(0x90)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x9d424a[_0x4095f2(0x109)]),console[_0x4095f2(0x90)](LOG_PREFIX+_0x4095f2(0xc5)+_0x9d424a[_0x4095f2(0x145)]),currentOptions=_0x9d424a[_0x4095f2(0x155)],toggleHandler=_0x9d424a[_0x4095f2(0xf5)];if(overlayController){console[_0x4095f2(0x90)](LOG_PREFIX+_0x4095f2(0xfe)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x4095f2(0x90)](LOG_PREFIX+_0x4095f2(0x151)),overlayLoadPromise;console['log'](LOG_PREFIX+_0x4095f2(0x12a)),overlayLoadPromise=doLoadOverlay(_0x9d424a);try{await overlayLoadPromise,console[_0x4095f2(0x90)](LOG_PREFIX+_0x4095f2(0xf1));}catch(_0x2bf8a2){console[_0x4095f2(0x152)](LOG_PREFIX+_0x4095f2(0x12f),_0x2bf8a2);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x4026bd){const _0x11db7a=_0x11e49c;console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0xa2));if(typeof window==='undefined'){console['log'](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x11db7a(0xc1)]){console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x11a)),overlayController=window[_0x11db7a(0xc1)];return;}console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0xa8));try{_0x4026bd['enableViteHmr']&&(console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x11b)),await setupRemoteHMR(_0x4026bd['overlayPath']));console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x147)+_0x4026bd[_0x11db7a(0x109)]);const _0x5b6b6e=Date[_0x11db7a(0xc3)](),_0x2fa3d8=await import(_0x4026bd[_0x11db7a(0x109)]);console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x95)+(Date[_0x11db7a(0xc3)]()-_0x5b6b6e)+'ms'),console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0xe0),Object[_0x11db7a(0xd0)](_0x2fa3d8));if(typeof _0x2fa3d8?.[_0x11db7a(0xb4)]!==_0x11db7a(0xa9)){console[_0x11db7a(0x152)](LOG_PREFIX+_0x11db7a(0x117)),console[_0x11db7a(0x152)](LOG_PREFIX+_0x11db7a(0x132),Object['keys'](_0x2fa3d8));return;}console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x103));const _0x40b40a=_0x2fa3d8[_0x11db7a(0xb4)]();console['log'](LOG_PREFIX+_0x11db7a(0x106),_0x40b40a),overlayController=_0x40b40a,window['__enhanceOverlay']=_0x40b40a,_0x40b40a['onToggle'](_0x4026bd[_0x11db7a(0xf5)]),console['log'](LOG_PREFIX+_0x11db7a(0xe7)),console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x93)),updateOverlay();}catch(_0x3ea082){console[_0x11db7a(0x152)](LOG_PREFIX+_0x11db7a(0x113),_0x3ea082);}}function updateOverlay(){const _0x53da00=_0x11e49c;console['log'](LOG_PREFIX+_0x53da00(0x10a)),console[_0x53da00(0x90)](LOG_PREFIX+_0x53da00(0xd4)+!!overlayController),console['log'](LOG_PREFIX+_0x53da00(0x139)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x53da00(0x90)](LOG_PREFIX+_0x53da00(0x134));return;}const _0x271045=composeOverlayState(currentOptions);console[_0x53da00(0x90)](LOG_PREFIX+_0x53da00(0x150),JSON['stringify'](_0x271045,null,0x2)),overlayController[_0x53da00(0x124)](_0x271045),console['log'](LOG_PREFIX+_0x53da00(0xd5));}function composeOverlayState(_0x34225e){const _0x10445d=_0x11e49c,_0x2c11d1=getEnhancementId();return console[_0x10445d(0x90)](LOG_PREFIX+_0x10445d(0xf0)+_0x2c11d1),console[_0x10445d(0x90)](LOG_PREFIX+_0x10445d(0x129)+state[_0x10445d(0xec)]),console['log'](LOG_PREFIX+_0x10445d(0x123)+state[_0x10445d(0xbd)]),{'enhancementId':_0x2c11d1,'enabled':state[_0x10445d(0xec)],'controlled':state[_0x10445d(0xbd)],'overlayPosition':_0x34225e[_0x10445d(0x14e)]['position'],'securityMode':_0x34225e[_0x10445d(0x9c)],'backendBaseUrl':_0x34225e[_0x10445d(0xab)],'appError':state[_0x10445d(0xb6)]};}async function setupRemoteHMR(_0x30053e){const _0x17606d=_0x11e49c;console[_0x17606d(0x90)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x30053e);if(typeof window==='undefined')return;try{const _0x4ebc44=new URL(_0x30053e,window[_0x17606d(0x14b)][_0x17606d(0xd7)]),_0x303f01=_0x4ebc44['origin'];console['log'](LOG_PREFIX+_0x17606d(0xa7)+_0x303f01+_0x17606d(0x107)+window[_0x17606d(0x14b)][_0x17606d(0xd7)]);if(_0x303f01===window['location']['origin']){console['log'](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x17606d(0x90)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x303f01),await ensureViteClient(_0x303f01),console[_0x17606d(0x90)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x5df5e9){console[_0x17606d(0xfa)](LOG_PREFIX+_0x17606d(0x9a),_0x5df5e9);}}async function ensureReactRefreshPreamble(_0x4af0b1){const _0x121ebd=_0x11e49c;window[_0x121ebd(0x144)]??=new Set();if(window[_0x121ebd(0x144)][_0x121ebd(0x105)](_0x4af0b1)){console[_0x121ebd(0x90)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x4af0b1);return;}console[_0x121ebd(0x90)](LOG_PREFIX+_0x121ebd(0xda)+_0x4af0b1+_0x121ebd(0xeb));const _0x43c7fb=await import(_0x4af0b1+'/@react-refresh'),_0x4ef501=_0x43c7fb&&typeof _0x43c7fb===_0x121ebd(0x14a)&&'default'in _0x43c7fb?_0x43c7fb[_0x121ebd(0xe2)]:_0x43c7fb;if(!isRefreshRuntime(_0x4ef501)){console[_0x121ebd(0xfa)](LOG_PREFIX+_0x121ebd(0xc7));return;}_0x4ef501[_0x121ebd(0x102)](window),window['$RefreshReg$']=()=>{},window[_0x121ebd(0xee)]=()=>_0x42de73=>_0x42de73,window['__vite_plugin_react_preamble_installed__']=!![],window['__enhanceReactRefreshInstalledOrigins']['add'](_0x4af0b1),console[_0x121ebd(0x90)](LOG_PREFIX+_0x121ebd(0x8b)+_0x4af0b1);}function _0x1d5f(){const _0x2ba4c1=['328699YieeEU','\x20Enhancement\x20params:','465280BavvKa','\x20Module\x20missing\x20createOverlay\x20export!','some','121135vOqeVf','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Setting\x20up\x20remote\x20HMR...','bun\x20version\x20patch\x20--no-git-tag-version','./dev/index.d.ts','1948yEHQVN','getItem','\x20Page\x20not\x20enhanced\x20-\x20reloading','status','[Enhance\x20Runtime]','\x20composeOverlayState\x20-\x20state.controlled:\x20','update','serviceWorker','ready','./dev/vite/index.js','enhance','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Starting\x20fresh\x20overlay\x20load...','./dev/cli.js','\x20No\x20service\x20worker\x20active\x20to\x20configure','bottom-right','sw-enhance','\x20loadOverlay()\x20failed:','\x20Registering\x20SW\x20at\x20','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','\x20Available\x20exports:','search','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','false','installing','/@vite/client','\x20currentOptions\x20exists:\x20','\x20Current\x20URL:\x20','enhancement','permissive','http://','enhance:disable','./dev/index.js','version','enhancementId','__enhanceController','string','__enhanceReactRefreshInstalledOrigins','enableViteHmr','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','\x20Importing\x20overlay\x20module\x20from:\x20','undefined','disable','object','location','trim','getRegistration','overlay','\x20registerServiceWorker()\x20complete','\x20Updating\x20overlay\x20with\x20state:','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','error','\x20Persisted\x20enhancement\x20to\x20sessionStorage','240YNNIpS','options','/sw-enhance.js','searchParams','toLowerCase','delete','__development','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','toString','publishableKey','unregister','operatingPath','log','__enhanceInitialized','__enhanceResolvedUrl','\x20Calling\x20updateOverlay()...','serviceWorkerURL','\x20Module\x20imported\x20in\x20','^7.2.4','text','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20SW\x20unregistered','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','vite:beforeUpdate','security','/assets/enhance-runtime.js','includes','waiting','json','\x20loadOverlay()\x20called','\x20doLoadOverlay()\x20starting...','stringify','enhance:configure','\x20SW\x20ready','0.3.21','\x20Overlay\x20origin:\x20','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','function','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','backendUrl','swPath','callbackBypass','\x20Resolution\x20error:','controller','\x20registerServiceWorker()\x20called','cachedUrl','message','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','createOverlay','\x20Service\x20workers\x20NOT\x20supported','appError','./dev/vite/index.d.ts','history','\x20Resolved\x20to:\x20','/public/enhancements/','\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID','[data-enhance-runtime-bootstrap]','controlled','setItem','replace','scriptURL','__enhanceOverlay','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','now','href','\x20enableViteHmr:\x20','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Using\x20cached\x20enhancement\x20URL:\x20','startsWith','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','\x20Enhancement\x20mode\x20-\x20ID:\x20','\x20Calling:\x20','replaceState','\x20BLOCKING\x20SW\x20detected:\x20','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','keys','__viteHMRLoaded','info','^4.1.1','\x20overlayController\x20exists:\x20','\x20Overlay\x20update\x20complete','^11.1.0','origin','reload','public','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Enhancement\x20initialization\x20complete','\x20Restored\x20enhancement\x20from\x20sessionStorage','register','title','init','\x20Module\x20exports:','^24.10.1','default','enhance.enhancementId','postMessage','enableOverlayHmr','enhance.enhancementUrl','\x20Overlay\x20controller\x20initialized\x20and\x20cached','1707734MTjWqG','MIT','https://','...','enabled','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','$RefreshSig$','\x20Sending\x20config\x20to\x20SW:','\x20composeOverlayState\x20-\x20enhancementId:\x20','\x20loadOverlay()\x20complete','\x20unregisterServiceWorker()\x20called','[Enhance\x20Overlay]','\x20Document\x20readyState:\x20','onToggle','off','removeItem','https://assets.enhancelabs.ai/overlay.js','126PHTIWG','warn','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','1932kjVOsJ','726748QIcaRF','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','^8.5.1','enable','set','injectIntoGlobalHook','\x20Calling\x20createOverlay()...','readyState','has','\x20Controller\x20created:',',\x20page\x20origin:\x20','err','overlayPath','\x20updateOverlay()\x20called','__enhanceOptions','0.0.0','\x20Resolution\x20failed:\x20','explicitDisable','24026570XpVOLF','active','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Waiting\x20for\x20SW\x20ready...','\x20Failed\x20to\x20import/create\x20overlay:'];_0x1d5f=function(){return _0x2ba4c1;};return _0x1d5f();}async function ensureViteClient(_0x2bedb4){const _0x453227=_0x11e49c;window[_0x453227(0xd1)]??=new Set();if(window[_0x453227(0xd1)][_0x453227(0x105)](_0x2bedb4)){console[_0x453227(0x90)](LOG_PREFIX+_0x453227(0xc6)+_0x2bedb4);return;}console[_0x453227(0x90)](LOG_PREFIX+_0x453227(0x135)+_0x2bedb4+_0x453227(0xeb)),await import(_0x2bedb4+_0x453227(0x138)),window[_0x453227(0xd1)]['add'](_0x2bedb4),console[_0x453227(0x90)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x2bedb4);}function isRefreshRuntime(_0x39954c){const _0x597eed=_0x11e49c;return typeof _0x39954c===_0x597eed(0x14a)&&_0x39954c!==null&&_0x597eed(0x102)in _0x39954c&&typeof _0x39954c[_0x597eed(0x102)]===_0x597eed(0xa9);}var WORKER_MESSAGE_CONFIG=_0x11e49c(0xa4),WORKER_MESSAGE_DISABLE=_0x11e49c(0x13e),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x1d312c){const _0x4be944=_0x11e49c;console[_0x4be944(0x90)](LOG_PREFIX2+_0x4be944(0xb0));if(!('serviceWorker'in navigator)){console[_0x4be944(0xfa)](LOG_PREFIX2+_0x4be944(0xb5));return;}const _0x5214fe=!!navigator['serviceWorker']['controller'];currentOptions2=_0x1d312c;const _0x196899=await detectBlockingServiceWorker(_0x1d312c[_0x4be944(0xac)]);if(_0x196899){console[_0x4be944(0x152)](LOG_PREFIX2+_0x4be944(0xce)+_0x196899);return;}try{console[_0x4be944(0x90)](LOG_PREFIX2+_0x4be944(0x130)+_0x1d312c[_0x4be944(0xac)]+_0x4be944(0xeb)),registration=await navigator[_0x4be944(0x125)][_0x4be944(0xdd)](_0x1d312c[_0x4be944(0xac)],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x4be944(0x112)),await navigator[_0x4be944(0x125)][_0x4be944(0x126)],console['log'](LOG_PREFIX2+_0x4be944(0xa5)),state[_0x4be944(0xbd)]=ownsCurrentController(_0x1d312c[_0x4be944(0xac)]);if(!_0x5214fe&&!navigator['serviceWorker']['controller']){console[_0x4be944(0x90)](LOG_PREFIX2+_0x4be944(0x146)),window['location']['reload']();return;}console[_0x4be944(0x90)](LOG_PREFIX2+'\x20Sending\x20configuration\x20to\x20SW...'),await sendConfiguration();if(state[_0x4be944(0xec)]){const _0x3631bf=document['querySelector'](_0x4be944(0xbc))!==null;if(!_0x3631bf){console[_0x4be944(0x90)](LOG_PREFIX2+_0x4be944(0x120)),window['location'][_0x4be944(0xd8)]();return;}}updateOverlay(),console[_0x4be944(0x90)](LOG_PREFIX2+_0x4be944(0x14f));}catch(_0x269e0c){console[_0x4be944(0x152)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x269e0c);}}async function sendConfiguration(){const _0x3fa8cb=_0x11e49c;if(!state[_0x3fa8cb(0xec)]||!currentOptions2)return;const _0x452a6b=await resolveWorker();if(!_0x452a6b){console[_0x3fa8cb(0xfa)](LOG_PREFIX2+_0x3fa8cb(0x12c));return;}const _0xb8d269=window[_0x3fa8cb(0x92)]??null,_0x3e5f18={'publishableKey':currentOptions2[_0x3fa8cb(0x8d)],'callbackBypass':currentOptions2[_0x3fa8cb(0xad)],'securityMode':currentOptions2[_0x3fa8cb(0x9c)],'enhancementUrl':_0xb8d269??void 0x0};console[_0x3fa8cb(0x90)](LOG_PREFIX2+_0x3fa8cb(0xef),JSON[_0x3fa8cb(0xa3)](_0x3e5f18,null,0x2)),_0x452a6b[_0x3fa8cb(0xe4)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x3e5f18});}async function unregisterServiceWorker(_0x267449){const _0x5ae38f=_0x11e49c;console[_0x5ae38f(0x90)](LOG_PREFIX2+_0x5ae38f(0xf2));if(!(_0x5ae38f(0x125)in navigator))return;try{const _0x1f07f2=registration??await navigator[_0x5ae38f(0x125)][_0x5ae38f(0x14d)]('/');if(!_0x1f07f2)return;const _0x41af07=[_0x1f07f2[_0x5ae38f(0x110)]?.[_0x5ae38f(0xc0)],_0x1f07f2[_0x5ae38f(0x9f)]?.['scriptURL'],_0x1f07f2[_0x5ae38f(0x137)]?.[_0x5ae38f(0xc0)]],_0x7e5d23=_0x41af07[_0x5ae38f(0x118)](_0x17123e=>_0x17123e&&ownsServiceWorker(_0x17123e,_0x267449));if(!_0x7e5d23)return;_0x1f07f2[_0x5ae38f(0x110)]&&_0x1f07f2[_0x5ae38f(0x110)][_0x5ae38f(0xe4)]({'type':WORKER_MESSAGE_DISABLE}),await _0x1f07f2[_0x5ae38f(0x8e)](),registration=null,currentOptions2=null,console[_0x5ae38f(0x90)](LOG_PREFIX2+_0x5ae38f(0x99));}catch(_0x268623){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x268623);}}function ownsServiceWorker(_0x45bb43,_0x4de830){const _0x1f2c25=_0x11e49c,_0x4df3a9=typeof window!==_0x1f2c25(0x148)?window[_0x1f2c25(0x14b)][_0x1f2c25(0xd7)]:'',_0x39527d=new URL(_0x4de830,_0x4df3a9||void 0x0)[_0x1f2c25(0xc4)];return _0x45bb43===_0x39527d||_0x45bb43[_0x1f2c25(0x9e)](_0x1f2c25(0x12e));}function ownsCurrentController(_0x19585a){const _0x33ab58=_0x11e49c,_0x2dd897=navigator['serviceWorker']?.[_0x33ab58(0xaf)];if(!_0x2dd897)return![];return ownsServiceWorker(_0x2dd897[_0x33ab58(0xc0)],_0x19585a);}async function detectBlockingServiceWorker(_0x2a78bb){const _0x3d4228=_0x11e49c;if(!navigator[_0x3d4228(0x125)])return null;try{const _0x4fc45a=await navigator[_0x3d4228(0x125)][_0x3d4228(0x14d)]('/'),_0x48ef53=_0x4fc45a?.[_0x3d4228(0x110)]?.[_0x3d4228(0xc0)];if(!_0x48ef53)return null;if(ownsServiceWorker(_0x48ef53,_0x2a78bb))return null;return _0x48ef53;}catch{return null;}}async function resolveWorker(){const _0x5c47b4=_0x11e49c,_0x22ea7e=registration??await navigator[_0x5c47b4(0x125)]?.[_0x5c47b4(0x14d)]('/');return _0x22ea7e?.['active']??_0x22ea7e?.[_0x5c47b4(0x9f)]??_0x22ea7e?.[_0x5c47b4(0x137)]??null;}var LOG_PREFIX3=_0x11e49c(0x122),STORAGE_KEY_ENHANCEMENT_ID=_0x11e49c(0xe3),STORAGE_KEY_ENHANCEMENT_URL=_0x11e49c(0xe6);function isInitialized(){const _0x41f561=_0x11e49c;return typeof window!==_0x41f561(0x148)&&window[_0x41f561(0x91)]===!![];}function setInitialized(_0x4df62a){typeof window!=='undefined'&&(window['__enhanceInitialized']=_0x4df62a);}function getOptions(){const _0x2ed710=_0x11e49c;return typeof window!==_0x2ed710(0x148)?window[_0x2ed710(0x10b)]??null:null;}function setOptions(_0x197a2c){const _0x4e16eb=_0x11e49c;typeof window!==_0x4e16eb(0x148)&&(window['__enhanceOptions']=_0x197a2c);}var Enhance={'init'(_0x16a04d){const _0x398dad=_0x11e49c,_0x5a0d88=Date['now']();console[_0x398dad(0x90)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x5a0d88),console[_0x398dad(0x90)](LOG_PREFIX3+_0x398dad(0x13a)+window[_0x398dad(0x14b)][_0x398dad(0xc4)]),console[_0x398dad(0x90)](LOG_PREFIX3+_0x398dad(0xf4)+document[_0x398dad(0x104)]);if(isInitialized())return console['warn'](LOG_PREFIX3+_0x398dad(0xcf)),window[_0x398dad(0x142)]??createController();setInitialized(!![]);const _0x3cd6f8=normalizeOptions(_0x16a04d);setOptions(_0x3cd6f8);const _0xeed907=parseEnhancementParams();console[_0x398dad(0x90)](LOG_PREFIX3+_0x398dad(0x115),JSON[_0x398dad(0xa3)](_0xeed907,null,0x2));if(_0xeed907[_0x398dad(0x10e)])return cleanUrlParam('enhance'),clearPersistedEnhancement(),console[_0x398dad(0x90)](LOG_PREFIX3+'\x20Explicit\x20disable\x20-\x20exiting'),createController();if(!_0xeed907[_0x398dad(0x141)])return console[_0x398dad(0x90)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement'),void unregisterServiceWorker(_0x3cd6f8[_0x398dad(0xac)]),setupViteErrorListeners(),createController();return console[_0x398dad(0x90)](LOG_PREFIX3+_0x398dad(0xcb)+_0xeed907[_0x398dad(0x141)]),state[_0x398dad(0xec)]=!![],void initializeEnhancement(_0x3cd6f8,_0xeed907[_0x398dad(0x141)],_0xeed907[_0x398dad(0xb1)]),createController();}};async function initializeEnhancement(_0x3e99f0,_0x4dafcc,_0x479055){const _0x1e9898=_0x11e49c;let _0x414daa=_0x479055;if(!_0x414daa){console[_0x1e9898(0x90)](LOG_PREFIX3+'\x20Resolving\x20enhancement\x20ID:\x20'+_0x4dafcc),_0x414daa=await resolveEnhancementUrl(_0x3e99f0,_0x4dafcc);if(!_0x414daa){console[_0x1e9898(0x152)](LOG_PREFIX3+_0x1e9898(0xca)),state[_0x1e9898(0xec)]=![];return;}}else console[_0x1e9898(0x90)](LOG_PREFIX3+_0x1e9898(0xc8)+_0x414daa);persistEnhancement(_0x4dafcc,_0x414daa),window[_0x1e9898(0x92)]=_0x414daa,console[_0x1e9898(0x90)](LOG_PREFIX3+'\x20Registering\x20SW\x20with\x20enhancement\x20URL...'),await registerServiceWorker(_0x3e99f0),console[_0x1e9898(0x90)](LOG_PREFIX3+'\x20Loading\x20overlay...'),await loadOverlay({'overlayPath':_0x3e99f0[_0x1e9898(0x109)],'enableViteHmr':_0x3e99f0[_0x1e9898(0x14e)][_0x1e9898(0x145)],'options':_0x3e99f0,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+_0x1e9898(0xdb));}async function resolveEnhancementUrl(_0xc8476b,_0x3eaea5){const _0x3fbc4f=_0x11e49c,_0xfd723c=_0xc8476b[_0x3fbc4f(0xab)]+_0x3fbc4f(0xba)+_0x3eaea5+'/resolve';console[_0x3fbc4f(0x90)](LOG_PREFIX3+_0x3fbc4f(0xcc)+_0xfd723c);try{const _0x4d5691=await fetch(_0xfd723c,{'headers':{'X-Enhance-Publishable-Key':_0xc8476b[_0x3fbc4f(0x8d)]}});if(!_0x4d5691['ok']){const _0x118c56=await _0x4d5691[_0x3fbc4f(0x97)]();return console[_0x3fbc4f(0x152)](LOG_PREFIX3+_0x3fbc4f(0x10d)+_0x4d5691[_0x3fbc4f(0x121)]+'\x20'+_0x118c56),null;}const _0x5e6ecd=await _0x4d5691[_0x3fbc4f(0xa0)](),_0x2b52eb=''+_0xc8476b[_0x3fbc4f(0xab)]+_0x5e6ecd[_0x3fbc4f(0x8f)];return console[_0x3fbc4f(0x90)](LOG_PREFIX3+_0x3fbc4f(0xb9)+_0x2b52eb),_0x2b52eb;}catch(_0x435650){return console['error'](LOG_PREFIX3+_0x3fbc4f(0xae),_0x435650),null;}}function parseEnhancementParams(){const _0x45f8d0=_0x11e49c,_0x1bb20c=new URL(window[_0x45f8d0(0x14b)][_0x45f8d0(0xc4)]),_0x41d77e=_0x1bb20c[_0x45f8d0(0x157)]['get'](_0x45f8d0(0x128))?.[_0x45f8d0(0x88)](),_0x950e64=_0x41d77e==='0'||_0x41d77e===_0x45f8d0(0x136)||_0x41d77e===_0x45f8d0(0xf6);let _0x5a29cf=_0x1bb20c[_0x45f8d0(0x157)]['get'](_0x45f8d0(0x13b)),_0x147480=null;if(_0x5a29cf)try{const _0x19bfcf=sessionStorage[_0x45f8d0(0x11f)](STORAGE_KEY_ENHANCEMENT_ID),_0x5c57e1=sessionStorage[_0x45f8d0(0x11f)](STORAGE_KEY_ENHANCEMENT_URL);_0x19bfcf===_0x5a29cf&&_0x5c57e1&&(_0x147480=_0x5c57e1,console[_0x45f8d0(0x90)](LOG_PREFIX3+_0x45f8d0(0xbb)));}catch{}else try{const _0x112141=sessionStorage[_0x45f8d0(0x11f)](STORAGE_KEY_ENHANCEMENT_ID),_0x37be13=sessionStorage[_0x45f8d0(0x11f)](STORAGE_KEY_ENHANCEMENT_URL);_0x112141&&_0x37be13&&(_0x5a29cf=_0x112141,_0x147480=_0x37be13,console['log'](LOG_PREFIX3+_0x45f8d0(0xdc)),_0x1bb20c['searchParams'][_0x45f8d0(0x101)](_0x45f8d0(0x13b),_0x5a29cf),window['history'][_0x45f8d0(0xcd)](null,document[_0x45f8d0(0xde)],_0x1bb20c[_0x45f8d0(0x8c)]()));}catch{}return{'enhancementId':_0x5a29cf,'cachedUrl':_0x147480,'explicitDisable':_0x950e64};}function persistEnhancement(_0x543891,_0x3e1b34){const _0x5230fd=_0x11e49c;try{sessionStorage[_0x5230fd(0xbe)](STORAGE_KEY_ENHANCEMENT_ID,_0x543891),sessionStorage[_0x5230fd(0xbe)](STORAGE_KEY_ENHANCEMENT_URL,_0x3e1b34),console['log'](LOG_PREFIX3+_0x5230fd(0x153));}catch{}}function clearPersistedEnhancement(){const _0x1cc5e0=_0x11e49c;try{sessionStorage[_0x1cc5e0(0xf7)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage['removeItem'](STORAGE_KEY_ENHANCEMENT_URL),console[_0x1cc5e0(0x90)](LOG_PREFIX3+'\x20Cleared\x20persisted\x20enhancement');}catch{}}function _0x14a0(_0x44ecad,_0x25e9d2){_0x44ecad=_0x44ecad-0x88;const _0x1d5f54=_0x1d5f();let _0x14a01e=_0x1d5f54[_0x44ecad];return _0x14a01e;}function createController(){const _0x2d6138=_0x11e49c,_0x4249eb={'enable'(){const _0x2717b1=_0x14a0,_0x1e254c=getOptions();if(!_0x1e254c)return;state[_0x2717b1(0xec)]=!![],void registerServiceWorker(_0x1e254c),void sendConfiguration(),updateOverlay();},'disable'(){const _0x419dfa=_0x14a0,_0x1d6974=getOptions();if(!_0x1d6974)return;state[_0x419dfa(0xec)]=![],state[_0x419dfa(0xbd)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x1d6974[_0x419dfa(0xac)]);},'status'(){const _0x410715=_0x14a0;return{'enabled':state[_0x410715(0xec)],'controlled':state['controlled']};}};return typeof window!=='undefined'&&(window[_0x2d6138(0x142)]=_0x4249eb),_0x4249eb;}function handleToggle(){const _0x3cf78d=_0x11e49c,_0x106de2=createController();state['enabled']?_0x106de2[_0x3cf78d(0x149)]():_0x106de2[_0x3cf78d(0x100)]();}function cleanUrlParam(_0x402db2){const _0x1d48d6=_0x11e49c,_0x71ce73=new URL(window['location'][_0x1d48d6(0xc4)]);_0x71ce73[_0x1d48d6(0x157)]['has'](_0x402db2)&&(_0x71ce73[_0x1d48d6(0x157)][_0x1d48d6(0x89)](_0x402db2),window[_0x1d48d6(0xb8)][_0x1d48d6(0xcd)](null,document[_0x1d48d6(0xde)],_0x71ce73['toString']()));}function setupViteErrorListeners(){const _0x294a55=_0x11e49c;import.meta.hot&&(import.meta.hot['on']('vite:error',_0x53e278=>{const _0x3a01d1=_0x14a0;state['appError']={'message':_0x53e278[_0x3a01d1(0x108)][_0x3a01d1(0xb2)]},updateOverlay();}),import.meta.hot['on'](_0x294a55(0x9b),()=>{const _0x178f78=_0x294a55;state[_0x178f78(0xb6)]&&(state[_0x178f78(0xb6)]=null,updateOverlay());}));}var package_default={'name':'@enhance-eng/sandbox','version':_0x11e49c(0xa6),'type':'module','description':_0x11e49c(0xaa),'license':_0x11e49c(0xe9),'main':_0x11e49c(0x13f),'module':_0x11e49c(0x13f),'types':_0x11e49c(0x11d),'exports':{'.':{'types':_0x11e49c(0x11d),'import':_0x11e49c(0x13f)},'./vite':{'types':_0x11e49c(0xb7),'import':_0x11e49c(0x127)}},'files':['dev/'],'bin':{'enhance-sandbox':_0x11e49c(0x12b)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x11e49c(0xed),'dev:build':_0x11e49c(0xc2),'dev:staging':_0x11e49c(0x98),'dev:staging:build':_0x11e49c(0xfb),'build':_0x11e49c(0xb3),'build:release':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','build:release:dev':_0x11e49c(0x111),'version':_0x11e49c(0x11c)},'dependencies':{'commander':_0x11e49c(0xd6),'zod':'^3.22.4'},'devDependencies':{'@types/node':_0x11e49c(0xe1),'javascript-obfuscator':_0x11e49c(0xd3),'tsup':_0x11e49c(0xff),'vite':_0x11e49c(0x96)},'publishConfig':{'access':_0x11e49c(0xd9)}},DEFAULT_SERVICE_WORKER_PATH=_0x11e49c(0x156),DEFAULT_RUNTIME_PATH=_0x11e49c(0x9d),PACKAGE_VERSION=typeof package_default[_0x11e49c(0x140)]===_0x11e49c(0x143)?package_default['version']:_0x11e49c(0x10c);function normalizeAssetPath(_0x3a8897){const _0x16345a=_0x11e49c;if(!_0x3a8897)return _0x3a8897;if(_0x3a8897[_0x16345a(0xc9)](_0x16345a(0x13d))||_0x3a8897['startsWith'](_0x16345a(0xea)))return _0x3a8897;const _0x1ea053=_0x3a8897[_0x16345a(0xbf)](/^\.\//,'');return _0x1ea053[_0x16345a(0xc9)]('/')?_0x1ea053:'/'+_0x1ea053;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0xe2d824){const _0x3cafb2=_0x11e49c;return Enhance[_0x3cafb2(0xdf)](_0xe2d824);},'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 _0x209ac2=_0x11e49c;return Enhance2[_0x209ac2(0x94)]();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
package/dist/sw-enhance.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(_0x5a73c6,_0x498f78){const _0x56c60e=_0x5a1a,_0x8f0374=_0x5a73c6();while(!![]){try{const _0x25c80a=-parseInt(_0x56c60e(0x1f9))/0x1*(-parseInt(_0x56c60e(0x1f1))/0x2)+parseInt(_0x56c60e(0x16f))/0x3*(parseInt(_0x56c60e(0x159))/0x4)+-parseInt(_0x56c60e(0x10e))/0x5+-parseInt(_0x56c60e(0x107))/0x6+parseInt(_0x56c60e(0x173))/0x7*(-parseInt(_0x56c60e(0xd7))/0x8)+-parseInt(_0x56c60e(0x155))/0x9*(-parseInt(_0x56c60e(0x147))/0xa)+parseInt(_0x56c60e(0x102))/0xb*(-parseInt(_0x56c60e(0x1f5))/0xc);if(_0x25c80a===_0x498f78)break;else _0x8f0374['push'](_0x8f0374['shift']());}catch(_0x31ab5f){_0x8f0374['push'](_0x8f0374['shift']());}}}(_0x5ec7,0x3d8b7));function _0x5a1a(_0x6b9c87,_0x16c607){_0x6b9c87=_0x6b9c87-0xce;const _0x5ec7aa=_0x5ec7();let _0x5a1a03=_0x5ec7aa[_0x6b9c87];return _0x5a1a03;}function _0x5ec7(){const _0x2ae4b5=['statusText','origin','host','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','join','(async\x20()\x20=>\x20{','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','x-enhance-document-source','overlay','\x20\x20\x20\x20\x20\x20}','GET','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','config','connect-src\x20*','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','toISOString','custom','})();','get','\x20injectRuntimeBootstrap()\x20called','map','body','rewritten','request','\x20\x20\x20\x20\x20\x20','enumerable','has','publishableKey','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','style','\x20Resolving\x20enhancement\x20','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','text','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','length','\x20shouldRouteAsset:\x20','\x20\x20\x20\x20}','toLowerCase','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','hash','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','info','enhance:configure','default','object-src\x20\x27none\x27','\x20\x20}\x20catch\x20(error)\x20{','log','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','text/html','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','[Enhance\x20SW]','/webpackhotmiddleware','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','\x20\x20\x20Content-Type:\x20','clone','href','\x20Unknown\x20message\x20type:\x20','https://api.enhancelabs.ai','\x20via\x20','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20FETCH:\x20','value','\x20\x20\x20runtimeScriptPath:\x20','method','\x20MESSAGE\x20received:','[Enhance\x20SW\x20Routing]','getOwnPropertyNames','search','searchParams','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','/snowpack/hmr','frame-ancestors\x20','\x20fetchFromEnhancement:\x20','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','<script\x20data-enhance-hmr-bridge>','url','345518TDEpNX','\x20Customer\x20config\x20updated:','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','headers','180MIqAuV','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','2AnEkBF','Enhancement\x20document\x20fetch\x20failed','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','\x20\x20\x20\x20\x20\x20\x20\x20}','cors','\x20\x20\x20Fetching\x20production\x20response...','\x20fetchEnhancementDocument:\x20','call','image','\x20Enhancement\x20','access-control-allow-credentials','8pSIslF','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','object','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','securityMode','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20\x20};','\x20INSTALL\x20event','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','media-src\x20*\x20data:\x20blob:','claim','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','/auth/callback','\x20\x20\x20Response:\x20','set','/__vite/client','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','includes','production','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','addEventListener','cross-origin-opener-policy','debug','callbackBypass','\x5cu003e','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','runtimeScriptPath','stringify','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','hit','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','\x20ACTIVATE\x20event','</script>','full','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','enhancement','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','clients','110132gmynkV','set-cookie2','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','json','location','861708biyKpn','/vite/client','\x20Bootstrap\x20options:','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','\x20\x20\x20BYPASS:\x20','getOwnPropertyDescriptor','1303875YlHweC','\x20\x20\x20overlayPath:\x20','x-enhance-routing','\x20\x20\x20\x20\x20\x20try\x20{','\x20\x20\x20Failed\x20to\x20rewrite\x20document:',',\x20null,\x202));','no-store','waitUntil','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','mode','match','\x20\x20try\x20{','sharedworker','x-enhance-enhancement','vite-hmr','respondWith','\x20Calling\x20clients.claim()...','test','worker-src\x20\x27self\x27\x20blob:','\x20for\x20','x-enhance-document','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x20\x20\x20Rewriting\x20entry\x20references...','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','enhancementUrl','\x20\x20\x20shouldInjectOverlay:\x20','Failed\x20to\x20rewrite\x20document','permissive','opaque','replace','activate','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','\x20\x20\x20Document\x20source:\x20','\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20(','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','/@vite/client','overlayPath','\x20\x20\x20Fetching\x20from\x20enhancement...','https://','push','type','delete',',\x20destination:\x20','\x20\x20\x20Rewriting\x20document...','parse','none','\x20\x20\x20Enhancement\x20MISS\x20for\x20','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','/assets/enhance-runtime.js','enhancementBase','\x20matches\x20callbackBypass','http://','\x20\x20\x20securityMode:\x20','message','\x20Config\x20reset','content-security-policy','257670ORHMMB','\x0a</head>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','\x20\x20\x20mode:\x20','/sockjs-node','/resolve','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','https://assets.enhancelabs.ai/overlay.js','HEAD','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','\x20Clearing\x20cached\x20enhancement\x20(navigation\x20without\x20param)','\x20\x20\x20\x20\x20\x20return\x20proxied;','63xzkWvN','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','set-cookie','56IvveFF','X-Enhance-Publishable-Key','\x20handleNavigationRequest:\x20','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','Enhancement\x20document\x20miss\x20','cross-origin-embedder-policy','\x20\x20\x20Enhancement\x20URL:\x20','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','\x20\x20\x20Fetch\x20error:','Enhancement\x20fetch\x20failed','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','error','\x20-\x20falling\x20back\x20to\x20production','/_next/webpack-hmr','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','access-control-expose-headers','modulepreload','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','toString','\x20chars','access-control-allow-origin','78543UgpsaS','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','pathname','600327dHvBkh','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','fetch','font','\x20\x20\x20Enhancement\x20HIT\x20for\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\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','endsWith','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','startsWith','\x20\x20}','follow','\x20\x20\x20Document\x20rewritten\x20successfully','status','slice','defineProperty','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','navigate','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','content-length','\x20Failed\x20to\x20resolve\x20enhancement\x20','destination','backendUrl','\x20skipWaiting()\x20complete','\x20\x20\x20Script\x20inserted\x20into\x20document','/__parcel_hmr','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x0a</body>','\x5cu003c','/public/enhancements/','content-type',')\x20-\x20returning\x20null','font-src\x20*\x20data:','/parcel-hmr',',\x20type:\x20','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);'];_0x5ec7=function(){return _0x2ae4b5;};return _0x5ec7();}var EnhanceSW=((()=>{const _0x4dd480=_0x5a1a;var _0x2ef47c=Object[_0x4dd480(0x183)],_0x3a025f=Object[_0x4dd480(0x10d)],_0x421026=Object[_0x4dd480(0x1e7)],_0x54f0b3=Object['prototype']['hasOwnProperty'],_0x5bc5dd=(_0xbd9358,_0x59cab5)=>{for(var _0x155961 in _0x59cab5)_0x2ef47c(_0xbd9358,_0x155961,{'get':_0x59cab5[_0x155961],'enumerable':!![]});},_0x13f092=(_0x46e0da,_0x48e1d5,_0x27ed5e,_0x54815c)=>{const _0x426e8c=_0x4dd480;if(_0x48e1d5&&typeof _0x48e1d5===_0x426e8c(0xd9)||typeof _0x48e1d5==='function'){for(let _0x2d7b54 of _0x421026(_0x48e1d5))if(!_0x54f0b3[_0x426e8c(0xd3)](_0x46e0da,_0x2d7b54)&&_0x2d7b54!==_0x27ed5e)_0x2ef47c(_0x46e0da,_0x2d7b54,{'get':()=>_0x48e1d5[_0x2d7b54],'enumerable':!(_0x54815c=_0x3a025f(_0x48e1d5,_0x2d7b54))||_0x54815c[_0x426e8c(0x1b4)]});}return _0x46e0da;},_0x54c450=_0x1ae875=>_0x13f092(_0x2ef47c({},'__esModule',{'value':!![]}),_0x1ae875),_0x232242={};_0x5bc5dd(_0x232242,{'log':()=>_0x1524f4});var _0x435216=_0x4dd480(0x1ce),_0x474205='enhance:disable';function _0x9d76(_0x50283f){const _0x2b1a93=_0x4dd480;if(!_0x50283f[_0x2b1a93(0x17d)]('/'))return'/'+_0x50283f;return _0x50283f;}function _0x337488(_0x341bc0,_0x5de3fa){const _0x4dc7d1=_0x4dd480,_0x379a36=new URL(_0x341bc0['toString']()),_0xedbae7=_0x379a36[_0x4dc7d1(0x172)][_0x4dc7d1(0x17b)]('/')?_0x379a36[_0x4dc7d1(0x172)][_0x4dc7d1(0x182)](0x0,-0x1):_0x379a36[_0x4dc7d1(0x172)],_0xc45a05=_0x5de3fa[_0x4dc7d1(0x172)]['startsWith']('/')?_0x5de3fa[_0x4dc7d1(0x172)]:'/'+_0x5de3fa[_0x4dc7d1(0x172)];return _0x379a36['pathname']=(''+_0xedbae7+_0xc45a05)[_0x4dc7d1(0x12c)](/\/+/g,'/'),_0x379a36[_0x4dc7d1(0x1e8)]=_0x5de3fa[_0x4dc7d1(0x1e8)],_0x379a36[_0x4dc7d1(0x1cb)]='',_0x379a36;}var _0x3b0cd1=_0x4dd480(0x1e6),_0x238d32=_0x4dd480(0x15a),_0xd37e23=new Set(['script',_0x4dd480(0x1bb),_0x4dd480(0x177),_0x4dd480(0xd4),'worker',_0x4dd480(0x11a),_0x4dd480(0x16a)]);function _0x309a43(_0x568323){const _0x12ec66=_0x4dd480,_0x4c83fe=_0x568323[_0x12ec66(0x1e4)]===_0x12ec66(0x1a5)||_0x568323[_0x12ec66(0x1e4)]===_0x12ec66(0x150);return _0x4c83fe;}function _0x388007(_0xa1e89a,_0x69f477){const _0x5b2109=_0x4dd480,_0x477ebf=_0x9d76(_0x69f477),_0x32b4d5=_0xa1e89a['callbackBypassNormalized']['some'](_0x525503=>_0x477ebf[_0x5b2109(0x17d)](_0x525503));return _0x32b4d5;}function _0x187e96(_0x4ae87f,_0x95371a,_0x2e1a6a){const _0x2247dd=_0x4dd480,_0x33a46=_0x95371a[_0x2247dd(0x18a)];if(!_0x33a46||!_0xd37e23[_0x2247dd(0x1b5)](_0x33a46))return![];if(_0xacddd2(_0x4ae87f,_0x2e1a6a))return console['log'](_0x3b0cd1+_0x2247dd(0x1c4)+_0x2e1a6a['pathname']+_0x2247dd(0x1d8)),![];if(_0x5c24e1(_0x4ae87f,_0x2e1a6a))return console[_0x2247dd(0x1d2)](_0x3b0cd1+_0x2247dd(0x1c4)+_0x2e1a6a[_0x2247dd(0x172)]+_0x2247dd(0x14d)),![];if(_0x2e1a6a[_0x2247dd(0x19b)]!==self[_0x2247dd(0x106)]['origin'])return![];return!![];}async function _0x328d49(_0x542f3d,_0x505fcf,_0x58fdb3){const _0x38a171=_0x4dd480;console['log'](_0x3b0cd1+_0x38a171(0x1ed)+_0x58fdb3[_0x38a171(0x172)]);if(!_0x542f3d[_0x38a171(0x140)])return console[_0x38a171(0x1d2)](_0x3b0cd1+_0x38a171(0x170)),null;const _0x14b53b=_0x19a613(_0x542f3d,_0x58fdb3);console['log'](_0x3b0cd1+_0x38a171(0x15f)+_0x14b53b['toString']());const _0x29158e=new Headers(_0x505fcf['headers']);_0x29158e[_0x38a171(0xe7)](_0x38a171(0x110),'enhancement'),_0x29158e[_0x38a171(0x138)]('host');_0x542f3d[_0x38a171(0x1b6)]&&_0x29158e['set'](_0x238d32,_0x542f3d[_0x38a171(0x1b6)]);const _0xbfaa58=new Request(_0x14b53b['toString'](),{'method':_0x505fcf[_0x38a171(0x1e4)],'headers':_0x29158e,'credentials':'include','redirect':_0x505fcf['redirect'],'cache':_0x38a171(0x1cf),'mode':_0x38a171(0xd0)});try{console['log'](_0x3b0cd1+_0x38a171(0x134));const _0x44ed52=await fetch(_0xbfaa58);console[_0x38a171(0x1d2)](_0x3b0cd1+_0x38a171(0xe6)+_0x44ed52[_0x38a171(0x181)]+'\x20'+_0x44ed52['statusText']+_0x38a171(0x197)+_0x44ed52[_0x38a171(0x137)]);if(_0x44ed52[_0x38a171(0x137)]==='opaque')return console[_0x38a171(0x1d2)](_0x3b0cd1+'\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)'),_0x1524f4(_0x38a171(0x1cd),'Enhancement\x20CORS\x20blocked',_0x14b53b[_0x38a171(0x16c)]()),null;if(!_0x44ed52['ok'])return console[_0x38a171(0x1d2)](_0x3b0cd1+'\x20\x20\x20Not\x20OK\x20('+_0x44ed52[_0x38a171(0x181)]+')\x20-\x20returning\x20null'),_0x1524f4(_0x38a171(0xf0),'Enhancement\x20miss\x20'+_0x44ed52[_0x38a171(0x181)]+_0x38a171(0x121)+_0x14b53b[_0x38a171(0x172)]),null;return console['log'](_0x3b0cd1+_0x38a171(0x174)),_0x44f13b(_0x44ed52,_0x505fcf[_0x38a171(0x1e4)]);}catch(_0x7a7690){return console['error'](_0x3b0cd1+_0x38a171(0x162),_0x7a7690),_0x1524f4(_0x38a171(0x1cd),_0x38a171(0x163),_0x7a7690),null;}}async function _0x3eed2b(_0x5aa732,_0xc5eb2a){const _0x160dec=_0x4dd480,_0x103de8=new URL(_0xc5eb2a['url']);console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0xd2)+_0x103de8[_0x160dec(0x172)]+_0x103de8[_0x160dec(0x1e8)]);if(!_0x5aa732[_0x160dec(0x140)])return console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0x104)),null;const _0x2eb932=_0x19a613(_0x5aa732,_0x103de8);console['log'](_0x3b0cd1+'\x20\x20\x20Enhancement\x20document\x20URL:\x20'+_0x2eb932[_0x160dec(0x16c)]());const _0x3bf744=new Headers(_0xc5eb2a[_0x160dec(0x1f4)]);_0x3bf744[_0x160dec(0xe7)](_0x160dec(0x110),'enhancement-document'),_0x3bf744['delete'](_0x160dec(0x19c)),_0x3bf744[_0x160dec(0x138)](_0x160dec(0x188));_0x5aa732[_0x160dec(0x1b6)]&&_0x3bf744[_0x160dec(0xe7)](_0x238d32,_0x5aa732['publishableKey']);const _0xc10520=new Request(_0x2eb932[_0x160dec(0x16c)](),{'method':_0x160dec(0x1a5),'headers':_0x3bf744,'credentials':'include','redirect':_0x160dec(0x17f),'cache':'default','mode':_0x160dec(0xd0)});try{console[_0x160dec(0x1d2)](_0x3b0cd1+'\x20\x20\x20Fetching\x20enhancement\x20document...');const _0x37e0ff=await fetch(_0xc10520);console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0xe6)+_0x37e0ff[_0x160dec(0x181)]+'\x20'+_0x37e0ff[_0x160dec(0x19a)]+_0x160dec(0x197)+_0x37e0ff[_0x160dec(0x137)]),console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0x1d9)+_0x37e0ff[_0x160dec(0x1f4)]['get']('content-type'));if(_0x37e0ff['type']===_0x160dec(0x12b))return console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0x161)),_0x1524f4(_0x160dec(0x1cd),'Enhancement\x20document\x20CORS\x20blocked',_0x2eb932[_0x160dec(0x16c)]()),null;if(!_0x37e0ff['ok'])return console[_0x160dec(0x1d2)](_0x3b0cd1+'\x20\x20\x20Not\x20OK\x20('+_0x37e0ff[_0x160dec(0x181)]+_0x160dec(0x194)),_0x1524f4(_0x160dec(0xf0),_0x160dec(0x15d)+_0x37e0ff[_0x160dec(0x181)]+_0x160dec(0x121)+_0x2eb932[_0x160dec(0x172)]),null;if(!_0x4a9fb6(_0x37e0ff))return console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0xfe)),null;return console[_0x160dec(0x1d2)](_0x3b0cd1+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document'),_0x44f13b(_0x37e0ff,_0x160dec(0x1a5));}catch(_0xb058f3){return console['error'](_0x3b0cd1+'\x20\x20\x20Document\x20fetch\x20error:',_0xb058f3),_0x1524f4(_0x160dec(0x1cd),_0x160dec(0x1fa),_0xb058f3),null;}}function _0x19a613(_0x37b7a7,_0x57fd3a){const _0x520fa7=_0x4dd480;if(!_0x37b7a7[_0x520fa7(0x140)])throw new Error('Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured');return _0x337488(_0x37b7a7[_0x520fa7(0x140)],_0x57fd3a);}function _0x44f13b(_0x1f7265,_0x5cc14c){const _0x396211=_0x4dd480,_0x24203e=_0x1f7265[_0x396211(0x1da)](),_0x851d95=new Headers(_0x24203e['headers']);_0x851d95[_0x396211(0x138)](_0x396211(0x16e)),_0x851d95['delete'](_0x396211(0xd6)),_0x851d95[_0x396211(0x138)](_0x396211(0x169)),_0x851d95[_0x396211(0xe7)](_0x396211(0x11b),_0x396211(0xf8)),_0x2a23b6(_0x851d95);const _0x2d9071=_0x5cc14c===_0x396211(0x150)?null:_0x24203e[_0x396211(0x1b0)];return new Response(_0x2d9071,{'status':_0x24203e[_0x396211(0x181)],'statusText':_0x24203e['statusText'],'headers':_0x851d95});}function _0x4a9fb6(_0x5f229f){const _0x48003d=_0x4dd480,_0x5153a6=_0x5f229f['headers'][_0x48003d(0x1ad)]('content-type');return _0x5153a6!=null&&_0x5153a6[_0x48003d(0xea)](_0x48003d(0x1d4));}function _0xacddd2(_0x535659,_0x18f066){return _0x3a668b(_0x18f066,_0x535659['overlayPath']);}function _0x5c24e1(_0x3871be,_0xe9f12f){const _0x5d8fbb=_0x4dd480;return _0x3f1c92(_0xe9f12f,_0x3871be[_0x5d8fbb(0xf4)]);}function _0x3a668b(_0x446cb1,_0x206bec){const _0x5e2510=_0x4dd480;if(!_0x206bec)return![];if(_0x206bec['startsWith'](_0x5e2510(0x142))||_0x206bec[_0x5e2510(0x17d)](_0x5e2510(0x135)))return _0x446cb1[_0x5e2510(0x1db)]===_0x206bec;const _0x12c532=_0x4c9036(_0x206bec);if(!_0x12c532)return![];const _0x59916d=''+_0x446cb1['pathname']+_0x446cb1[_0x5e2510(0x1e8)];if(_0x59916d===_0x12c532)return!![];if(_0x446cb1[_0x5e2510(0x1e8)]==='?import')return _0x446cb1[_0x5e2510(0x172)]===_0x12c532;return![];}function _0x3f1c92(_0x4431b,_0x5c12f9){const _0x149dcc=_0x4dd480;if(!_0x5c12f9)return![];if(_0x5c12f9[_0x149dcc(0x17d)]('http://')||_0x5c12f9['startsWith']('https://'))return _0x4431b[_0x149dcc(0x1db)]===_0x5c12f9;const _0x389f43=_0x4c9036(_0x5c12f9);if(!_0x389f43)return![];const _0x53d773=''+_0x4431b[_0x149dcc(0x172)]+_0x4431b[_0x149dcc(0x1e8)];return _0x53d773===_0x389f43;}function _0x4c9036(_0x3860b8){const _0x20f695=_0x4dd480;if(!_0x3860b8)return _0x3860b8;if(_0x3860b8[_0x20f695(0x17d)](_0x20f695(0x142))||_0x3860b8[_0x20f695(0x17d)](_0x20f695(0x135)))return _0x3860b8;const _0x52d55=_0x3860b8[_0x20f695(0x12c)](/^\.\//,'');if(_0x52d55[_0x20f695(0x17d)]('/'))return _0x52d55;return'/'+_0x52d55;}function _0x2a23b6(_0x23e94f){const _0x4c81ec=_0x4dd480;_0x23e94f[_0x4c81ec(0x138)](_0x4c81ec(0x158)),_0x23e94f[_0x4c81ec(0x138)](_0x4c81ec(0x103));}function _0x2c4179(_0x197c70){const _0x10642d=_0x4dd480,_0x586551=['default-src\x20\x27self\x27\x20blob:\x20data:',_0x10642d(0x1be),_0x10642d(0x18f),'img-src\x20*\x20data:\x20blob:',_0x10642d(0x195),_0x10642d(0x1a8),_0x10642d(0xe0),_0x10642d(0x120),_0x10642d(0x1d0)],_0x2ad77c=_0x3873aa(_0x197c70);return _0x2ad77c&&_0x586551[_0x10642d(0x136)](_0x2ad77c),_0x586551[_0x10642d(0x19e)](';\x20');}function _0x3bed7f(_0x3f5738){const _0x584b8f=_0x4dd480;_0x3f5738[_0x584b8f(0x138)](_0x584b8f(0x158)),_0x3f5738[_0x584b8f(0x138)](_0x584b8f(0x103));}function _0x3873aa(_0x1d58ad){const _0x5df2c3=_0x4dd480;if(!_0x1d58ad)return null;const _0x2d21f4=_0x1d58ad[_0x5df2c3(0x118)](/frame-ancestors\s+([^;]+)/i);if(!_0x2d21f4)return null;return _0x5df2c3(0x1ec)+_0x2d21f4[0x1]['trim']();}function _0x16166c(_0x389bbd,_0x1a66a7){const _0x86381b=_0x4dd480;if(/<head[^>]*>/i[_0x86381b(0x11f)](_0x389bbd)){const _0x3c7e7b=_0x389bbd[_0x86381b(0x118)](/<head[^>]*>/i);if(_0x3c7e7b){const _0xe02a0d=_0x3c7e7b[0x0];return _0x389bbd[_0x86381b(0x12c)](_0xe02a0d,_0xe02a0d+'\x0a'+_0x1a66a7);}}if(/<\/head>/i[_0x86381b(0x11f)](_0x389bbd))return _0x389bbd[_0x86381b(0x12c)](/<\/head>/i,_0x1a66a7+_0x86381b(0x148));if(/<body\b[^>]*>/i[_0x86381b(0x11f)](_0x389bbd))return _0x389bbd[_0x86381b(0x12c)](/<body\b[^>]*>/i,'$&\x0a'+_0x1a66a7);if(/<\/body>/i[_0x86381b(0x11f)](_0x389bbd))return _0x389bbd[_0x86381b(0x12c)](/<\/body>/i,_0x1a66a7+_0x86381b(0x190));return _0x1a66a7+'\x0a'+_0x389bbd;}var _0x432e3c=[_0x4dd480(0x11c)],_0x3e8660=[_0x4dd480(0x132),_0x4dd480(0xe8),_0x4dd480(0x108),'/__vite_ping',_0x4dd480(0x14b),'/webpack-dev-server','/webpack-hmr',_0x4dd480(0x1d7),'/webpack-hot-middleware','/__webpack_hmr',_0x4dd480(0x167),_0x4dd480(0x196),_0x4dd480(0x18e),'/__snowpack__',_0x4dd480(0x1eb)];function _0x37e5f4(_0x1d1b20,_0x34b9ef){const _0x63645d=_0x45fef8(_0x1d1b20);if(!_0x63645d)return _0x34b9ef;return _0x16166c(_0x34b9ef,_0x63645d);}function _0x45fef8(_0x416bf1){const _0x472220=_0x4dd480;if(!_0x416bf1[_0x472220(0x140)])return null;const _0x5f5b86=_0x416bf1['enhancementBase']['toString'](),_0x399d93=_0x12a84a(_0x432e3c),_0x13d16c=_0x12a84a(_0x3e8660),_0x33bab8=[_0x472220(0x1ef),'(function(){','\x20\x20try\x20{',_0x472220(0xce)+JSON['stringify'](_0x5f5b86)+');',_0x472220(0x1ee),_0x472220(0x1df),'\x20\x20\x20\x20\x20\x20return;',_0x472220(0x1c5),_0x472220(0x1b7)+JSON[_0x472220(0xf5)](_0x399d93)+');',_0x472220(0x1ba)+JSON['stringify'](_0x13d16c)+';','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;',_0x472220(0xfa),_0x472220(0xdf),'\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];',_0x472220(0xdd),_0x472220(0x152),'\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts',_0x472220(0x1c2),_0x472220(0x1d3),'\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;',_0x472220(0x1b3),'\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{',_0x472220(0x16b),_0x472220(0x1a4),'\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{',_0x472220(0x12e),_0x472220(0x1d5),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20\x20\x20\x20\x20\x20\x20\x20}',_0x472220(0x1a4),'\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();',_0x472220(0x175),_0x472220(0x19d),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0x472220(0xcf),_0x472220(0x1a4),_0x472220(0x1c1),_0x472220(0xdd),_0x472220(0x17a),_0x472220(0x1c9),_0x472220(0xed),_0x472220(0x1f7),_0x472220(0x15c),_0x472220(0x154),_0x472220(0xdd),_0x472220(0x13e),_0x472220(0x111),_0x472220(0x199),_0x472220(0x184),_0x472220(0x149),_0x472220(0xe4),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x472220(0x1bd),'\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);',_0x472220(0x1a4),_0x472220(0xda),_0x472220(0xdd),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);',_0x472220(0x1a6),_0x472220(0x131),'\x20\x20\x20\x20try\x20{',_0x472220(0xf9),_0x472220(0x1b9),_0x472220(0xf3),_0x472220(0x1c5),_0x472220(0xd8),_0x472220(0x168),_0x472220(0x1d1),_0x472220(0x1f3),_0x472220(0x17e),_0x472220(0x1ac),_0x472220(0xfc)];return _0x33bab8['join']('\x0a');}function _0x12a84a(_0x3a6f28){const _0x85887b=_0x4dd480,_0x454d3e=new Set(),_0x407d3f=[];for(const _0x4adf1e of _0x3a6f28){const _0x32b6cb=_0x4adf1e[_0x85887b(0x1c6)]();if(_0x454d3e[_0x85887b(0x1b5)](_0x32b6cb))continue;_0x454d3e['add'](_0x32b6cb),_0x407d3f[_0x85887b(0x136)](_0x32b6cb);}return _0x407d3f;}var _0x48ef23='[Enhance\x20SW\x20Bootstrap]';function _0x4005a6(_0x522665,_0x2924f1){const _0x4ceb35=_0x4dd480;console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x1ae)),console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x1e3)+_0x522665[_0x4ceb35(0xf4)]),console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x10f)+_0x522665['overlayPath']);if(_0x2924f1[_0x4ceb35(0xea)]('data-enhance-runtime-bootstrap'))return console['log'](_0x48ef23+_0x4ceb35(0x1c8)),_0x2924f1;const _0x3220f2=_0x190e50(_0x522665);if(!_0x3220f2)return console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x1ea)),_0x2924f1;console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x130)+_0x3220f2[_0x4ceb35(0x1c3)]+'\x20chars)');const _0x54f0ec=_0x16166c(_0x2924f1,_0x3220f2);return console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x18d)),_0x54f0ec;}function _0x190e50(_0x24c496){const _0x3c591a=_0x4dd480,_0x261a17=_0x24c496[_0x3c591a(0xf4)];if(!_0x261a17)return console[_0x3c591a(0x1d2)](_0x48ef23+_0x3c591a(0xe9)),null;const _0x2b0e30=_0x51909c(_0x24c496);console['log'](_0x48ef23+_0x3c591a(0x109),JSON[_0x3c591a(0xf5)](_0x2b0e30,null,0x2));const _0x426931=_0x3d2aae(_0x2b0e30),_0x5a5d1b=JSON['stringify'](_0x261a17),_0x14ee05=['<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>',_0x3c591a(0x19f),_0x3c591a(0x119),_0x3c591a(0x160)+_0x5a5d1b+';',_0x3c591a(0x1b8),_0x3c591a(0xf6),_0x3c591a(0x1f8),_0x3c591a(0x1cc),_0x3c591a(0x123),_0x3c591a(0x1c7),_0x3c591a(0x116),_0x3c591a(0x1c0),_0x3c591a(0x156),_0x3c591a(0x1c5),_0x3c591a(0x1e0)+_0x426931+_0x3c591a(0x113),_0x3c591a(0x1a9)+_0x426931+');',_0x3c591a(0x1ca),_0x3c591a(0x198),_0x3c591a(0x157),_0x3c591a(0x125),_0x3c591a(0x179),_0x3c591a(0xec),_0x3c591a(0xe2),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);',_0x3c591a(0x1c5),_0x3c591a(0x151),_0x3c591a(0x1d1),_0x3c591a(0x14e),_0x3c591a(0x17e),'})();','</script>'];return _0x14ee05['join']('\x0a');}function _0x51909c(_0x3ef93d){const _0x3b2a46=_0x4dd480,_0x14effb={'publishableKey':_0x3ef93d[_0x3b2a46(0x1b6)],'callbackBypass':_0x3ef93d[_0x3b2a46(0xf1)],'__development':{'enableOverlayHmr':_0x3ef93d['overlayEnableViteHmr'],'overlayPath':_0x3ef93d[_0x3b2a46(0x133)],'security':_0x3ef93d['securityMode'],'backendUrl':_0x3ef93d['backendUrl']}};return _0x14effb;}function _0x3d2aae(_0x2739e2){const _0xfcf8bc=_0x4dd480;return JSON[_0xfcf8bc(0xf5)](_0x2739e2)[_0xfcf8bc(0x12c)](/</g,_0xfcf8bc(0x191))['replace'](/>/g,_0xfcf8bc(0xf2));}function _0x24da2b(_0x306707,_0x3e981a){const _0x583b42=_0x4dd480,_0x17a9db=_0x46d211=>_0xf974a8(_0x306707,_0x46d211),_0x473fbc=_0x41db74=>_0x135a63(_0x306707,_0x41db74);return _0x3e981a[_0x583b42(0x12c)](/<script\b[^>]*>/gi,_0x17a9db)[_0x583b42(0x12c)](/<link\b[^>]*>/gi,_0x473fbc);}function _0x25d896(_0x2fbd8f){const _0x3cd5fd=_0x4dd480;return _0x2fbd8f[_0x3cd5fd(0x12c)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0xf974a8(_0x3cfe1f,_0x41f914){const _0x2a4a8d=_0x4dd480,_0x29783b=_0x43ce61(_0x41f914,'src');if(!_0x29783b)return _0x41f914;const _0x5ee0ba=_0x2d2587(_0x3cfe1f,_0x29783b[_0x2a4a8d(0x1e2)]);if(!_0x5ee0ba||_0x5ee0ba===_0x29783b['value'])return _0x41f914;const _0x227684=_0x29783b[_0x2a4a8d(0xfd)][_0x2a4a8d(0x12c)](_0x29783b['value'],_0x5ee0ba);return _0x41f914[_0x2a4a8d(0x12c)](_0x29783b[_0x2a4a8d(0xfd)],_0x227684);}function _0x135a63(_0x44caff,_0x1c65d8){const _0x22fa1a=_0x4dd480,_0xbf65b3=_0x1c65d8[_0x22fa1a(0x118)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0xbf65b3)return _0x1c65d8;const _0x39b0af=_0xbf65b3[0x2]['toLowerCase']();if(_0x39b0af!=='stylesheet'&&_0x39b0af!==_0x22fa1a(0x16a))return _0x1c65d8;const _0x48bcd9=_0x43ce61(_0x1c65d8,_0x22fa1a(0x1db));if(!_0x48bcd9)return _0x1c65d8;const _0x20d4d7=_0x2d2587(_0x44caff,_0x48bcd9[_0x22fa1a(0x1e2)]);if(!_0x20d4d7||_0x20d4d7===_0x48bcd9['value'])return _0x1c65d8;const _0x1e09b6=_0x48bcd9[_0x22fa1a(0xfd)][_0x22fa1a(0x12c)](_0x48bcd9[_0x22fa1a(0x1e2)],_0x20d4d7);return _0x1c65d8['replace'](_0x48bcd9[_0x22fa1a(0xfd)],_0x1e09b6);}function _0x43ce61(_0x55e72c,_0x4c071b){const _0x3bb797=_0x4dd480,_0x1f21f3=new RegExp(_0x4c071b+_0x3bb797(0x164),'i'),_0x24d5fa=_0x55e72c[_0x3bb797(0x118)](_0x1f21f3);if(!_0x24d5fa)return null;return{'full':_0x24d5fa[0x0],'value':_0x24d5fa[0x2]};}function _0x2d2587(_0x45bfe2,_0x55ae63){const _0x3663e0=_0x4dd480,_0x150ca7=_0x5622cd(_0x55ae63);if(!_0x150ca7)return null;if(_0x150ca7[_0x3663e0(0x19b)]===self[_0x3663e0(0x106)]['origin'])return''+_0x150ca7[_0x3663e0(0x172)]+_0x150ca7['search'];return null;}function _0x5622cd(_0x9cac4e){const _0x331eb1=_0x4dd480;try{return new URL(_0x9cac4e,self[_0x331eb1(0x106)][_0x331eb1(0x19b)]);}catch{return null;}}var _0xd544e9='[Enhance\x20SW\x20Document]';async function _0x1cff46(_0x1545a8,_0x1ccc19,_0x4419a4,_0x384999=!![]){const _0x18590e=_0x4dd480;console[_0x18590e(0x1d2)](_0xd544e9+'\x20rewriteDocument()\x20called'),console[_0x18590e(0x1d2)](_0xd544e9+'\x20\x20\x20source:\x20'+_0x4419a4),console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x128)+_0x384999),console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x143)+_0x1545a8[_0x18590e(0xdb)]);const _0x5d9d8e=_0x1ccc19[_0x18590e(0x1da)](),_0x5ab090=await _0x5d9d8e[_0x18590e(0x1bf)]();console['log'](_0xd544e9+_0x18590e(0xdc)+_0x5ab090[_0x18590e(0x1c3)]+'\x20chars'),console[_0x18590e(0x1d2)](_0xd544e9+'\x20\x20\x20Stripping\x20SRI\x20attributes...');const _0x1653d7=_0x25d896(_0x5ab090);console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x124));let _0x30eb1e=_0x24da2b(_0x1545a8,_0x1653d7);_0x4419a4===_0x18590e(0xff)?(console['log'](_0xd544e9+_0x18590e(0x171)),_0x30eb1e=_0x37e5f4(_0x1545a8,_0x30eb1e)):console[_0x18590e(0x1d2)](_0xd544e9+'\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)');_0x384999?(console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x1f6)),_0x30eb1e=_0x4005a6(_0x1545a8,_0x30eb1e)):console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x1a0));console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x187)+_0x30eb1e[_0x18590e(0x1c3)]+_0x18590e(0x16d));const _0x5e7d2f=new Headers(_0x5d9d8e[_0x18590e(0x1f4)]);_0x5e7d2f[_0x18590e(0xe7)]('cache-control',_0x18590e(0x114)),_0x5e7d2f[_0x18590e(0xe7)](_0x18590e(0x122),_0x18590e(0x1b1)),_0x5e7d2f['set'](_0x18590e(0x1a2),_0x4419a4),_0x3bed7f(_0x5e7d2f);if(_0x1545a8[_0x18590e(0xdb)]!==_0x18590e(0x1ab)){console[_0x18590e(0x1d2)](_0xd544e9+'\x20\x20\x20Applying\x20permissive\x20CSP...');const _0x17d8d2=_0x5e7d2f[_0x18590e(0x1ad)](_0x18590e(0x146));_0x5e7d2f['set']('content-security-policy',_0x2c4179(_0x17d8d2)),_0x5e7d2f[_0x18590e(0x138)](_0x18590e(0xef)),_0x5e7d2f[_0x18590e(0x138)](_0x18590e(0x15e)),_0x5e7d2f[_0x18590e(0x138)]('cross-origin-resource-policy');}else console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x10a));return console[_0x18590e(0x1d2)](_0xd544e9+'\x20\x20\x20Document\x20rewrite\x20complete'),new Response(_0x30eb1e,{'status':_0x5d9d8e['status'],'statusText':_0x5d9d8e[_0x18590e(0x19a)],'headers':_0x5e7d2f});}var _0x19e456=_0x4dd480(0x1d6);console['log'](_0x19e456+_0x4dd480(0x10b)+new Date()[_0x4dd480(0x1aa)]());var _0x27fd6d={'overlayPath':_0x4dd480(0x14f),'backendUrl':_0x4dd480(0x1dd),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x4dd480(0x13f),'swPath':'/sw-enhance.js'};console[_0x4dd480(0x1d2)](_0x19e456+'\x20Build\x20config:',JSON[_0x4dd480(0xf5)](_0x27fd6d,null,0x2));var _0xdc301c={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':_0x4dd480(0x12a)},_0x1493a4=_0x4dd480(0x15a),_0x4ccb4d=new Map(),_0x49c5a9=null,_0x5a4a87=null,_0x3dbaf7=null;function _0x439f11(){const _0x530a6e=_0x4dd480,_0x55a46c=_0x5a4a87||'',_0x3708cb=_0x3dbaf7;return{..._0x27fd6d,..._0xdc301c,'enhancementUrl':_0x55a46c,'enhancementBase':_0x3708cb,'callbackBypassNormalized':_0xdc301c[_0x530a6e(0xf1)][_0x530a6e(0x1af)](_0x2e7185=>_0x2e7185['startsWith']('/')?_0x2e7185:'/'+_0x2e7185)};}async function _0x32e77f(_0x546832,_0x749aa4){const _0x44bd1b=_0x4dd480,_0x430d12=_0x546832['searchParams'][_0x44bd1b(0x1ad)](_0x44bd1b(0xff));if(_0x749aa4&&_0x430d12){console['log'](_0x19e456+'\x20Enhancement\x20ID\x20from\x20navigation:\x20'+_0x430d12);const _0x1f46c9=await _0x330be7(_0x430d12);if(_0x1f46c9){_0x49c5a9=_0x430d12,_0x5a4a87=_0x1f46c9;try{_0x3dbaf7=new URL(_0x1f46c9);}catch{console[_0x44bd1b(0x165)](_0x19e456+'\x20Failed\x20to\x20parse\x20operatingUrl:\x20'+_0x1f46c9),_0x3dbaf7=null;}}else _0x49c5a9=null,_0x5a4a87=null,_0x3dbaf7=null;}return _0x749aa4&&!_0x430d12&&(_0x49c5a9&&console[_0x44bd1b(0x1d2)](_0x19e456+_0x44bd1b(0x153)),_0x49c5a9=null,_0x5a4a87=null,_0x3dbaf7=null),_0x439f11();}function _0x1524f4(_0x5cba77,_0x37e1dd,..._0x5235dc){const _0x126a28=_0x4dd480;_0x5cba77===_0x126a28(0x1cd)?console[_0x126a28(0x1cd)](_0x19e456,_0x37e1dd,..._0x5235dc):console[_0x126a28(0xf0)](_0x19e456,_0x37e1dd,..._0x5235dc);}async function _0x330be7(_0x4e5d75){const _0x4b9baf=_0x4dd480,_0xc84099=_0x4ccb4d[_0x4b9baf(0x1ad)](_0x4e5d75);if(_0xc84099)return console[_0x4b9baf(0x1d2)](_0x19e456+_0x4b9baf(0xd5)+_0x4e5d75+'\x20resolved\x20from\x20cache:\x20'+_0xc84099),_0xc84099;if(!_0xdc301c[_0x4b9baf(0x1b6)])return console['error'](_0x19e456+'\x20Cannot\x20resolve\x20enhancement\x20-\x20no\x20publishable\x20key\x20configured'),null;const _0x362397=_0x27fd6d[_0x4b9baf(0x18b)]+_0x4b9baf(0x192)+_0x4e5d75+_0x4b9baf(0x14c);console[_0x4b9baf(0x1d2)](_0x19e456+_0x4b9baf(0x1bc)+_0x4e5d75+_0x4b9baf(0x1de)+_0x362397);try{const _0x3a9eb2=await fetch(_0x362397,{'headers':{[_0x1493a4]:_0xdc301c[_0x4b9baf(0x1b6)]}});if(!_0x3a9eb2['ok']){let _0x52d27c=await _0x3a9eb2[_0x4b9baf(0x1bf)]();try{const _0x518053=JSON[_0x4b9baf(0x13b)](_0x52d27c);_0x518053[_0x4b9baf(0x165)]&&(_0x52d27c=_0x518053[_0x4b9baf(0x165)]);}catch{}return _0x3a9eb2[_0x4b9baf(0x181)]===0x193?console[_0x4b9baf(0x165)](_0x19e456+'\x20❌\x20Publishable\x20key\x20validation\x20failed:\x20'+_0x52d27c):console[_0x4b9baf(0x165)](_0x19e456+_0x4b9baf(0x189)+_0x4e5d75+':\x20'+_0x3a9eb2[_0x4b9baf(0x181)]+'\x20'+_0x52d27c),null;}const _0x335c3b=await _0x3a9eb2[_0x4b9baf(0x105)](),_0x135d4a=''+_0x27fd6d[_0x4b9baf(0x18b)]+_0x335c3b['operatingPath'];return console[_0x4b9baf(0x1d2)](_0x19e456+_0x4b9baf(0xd5)+_0x4e5d75+'\x20resolved\x20to:\x20'+_0x135d4a),_0x4ccb4d[_0x4b9baf(0xe7)](_0x4e5d75,_0x135d4a),_0x135d4a;}catch(_0x3e4b3b){return console[_0x4b9baf(0x165)](_0x19e456+'\x20Error\x20resolving\x20enhancement\x20'+_0x4e5d75+':',_0x3e4b3b),null;}}self[_0x4dd480(0xee)]('install',_0x485d23=>{const _0x51025a=_0x4dd480;console[_0x51025a(0x1d2)](_0x19e456+_0x51025a(0xde)),_0x485d23[_0x51025a(0x115)](((async()=>{const _0x47fd06=_0x51025a;console['log'](_0x19e456+'\x20Calling\x20skipWaiting()...'),await self['skipWaiting'](),console[_0x47fd06(0x1d2)](_0x19e456+_0x47fd06(0x18c));})()));}),self[_0x4dd480(0xee)](_0x4dd480(0x12d),_0x10551e=>{const _0x57fbde=_0x4dd480;console[_0x57fbde(0x1d2)](_0x19e456+_0x57fbde(0xfb)),_0x10551e['waitUntil'](((async()=>{const _0x83a0b5=_0x57fbde;console[_0x83a0b5(0x1d2)](_0x19e456+_0x83a0b5(0x11e)),await self[_0x83a0b5(0x101)][_0x83a0b5(0xe1)](),console[_0x83a0b5(0x1d2)](_0x19e456+'\x20clients.claim()\x20complete');})()));}),self[_0x4dd480(0xee)](_0x4dd480(0x144),_0x573bb9=>{const _0x214844=_0x4dd480,_0x4f8a4f=_0x573bb9['data'];console[_0x214844(0x1d2)](_0x19e456+_0x214844(0x1e5),_0x4f8a4f);if(!_0x4f8a4f||typeof _0x4f8a4f!==_0x214844(0xd9)){console[_0x214844(0x1d2)](_0x19e456+'\x20Invalid\x20message\x20data\x20-\x20ignoring');return;}switch(_0x4f8a4f[_0x214844(0x137)]){case _0x435216:{console[_0x214844(0x1d2)](_0x19e456+_0x214844(0xe3));const _0x1c5fb8=_0x4f8a4f[_0x214844(0x1a7)];_0xdc301c={'publishableKey':_0x1c5fb8[_0x214844(0x1b6)]??'','callbackBypass':_0x1c5fb8[_0x214844(0xf1)]??[_0x214844(0xe5)],'securityMode':_0x1c5fb8[_0x214844(0xdb)]??_0x214844(0x12a)},console['log'](_0x19e456+_0x214844(0x1f2),JSON[_0x214844(0xf5)](_0xdc301c,null,0x2));break;}case _0x474205:console[_0x214844(0x1d2)](_0x19e456+_0x214844(0x17c)),_0xdc301c={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':_0x214844(0x12a)},_0x49c5a9=null,_0x5a4a87=null,_0x3dbaf7=null,_0x4ccb4d['clear'](),console[_0x214844(0x1d2)](_0x19e456+_0x214844(0x145));break;default:console[_0x214844(0x1d2)](_0x19e456+_0x214844(0x1dc)+_0x4f8a4f[_0x214844(0x137)]);break;}}),self[_0x4dd480(0xee)](_0x4dd480(0x176),_0xc40769=>{const _0x9e8212=_0x4dd480,_0xc65b72=new URL(_0xc40769[_0x9e8212(0x1b2)][_0x9e8212(0x1f0)]);if(_0xc65b72[_0x9e8212(0x19b)]!==self['location'][_0x9e8212(0x19b)])return;_0xc40769[_0x9e8212(0x11d)](_0x381252(_0xc40769));});async function _0x381252(_0xd04799){const _0x229be8=_0x4dd480,{request:_0x39c73b}=_0xd04799,_0x4e19fe=new URL(_0x39c73b[_0x229be8(0x1f0)]),_0x1f2c18=_0x39c73b[_0x229be8(0x117)]===_0x229be8(0x186),_0x55121e=_0x1f2c18||_0x4e19fe[_0x229be8(0x19b)]===self[_0x229be8(0x106)][_0x229be8(0x19b)];_0x55121e&&(console[_0x229be8(0x1d2)](_0x19e456+_0x229be8(0x1e1)+_0x39c73b[_0x229be8(0x1e4)]+'\x20'+_0x4e19fe[_0x229be8(0x172)]+_0x4e19fe[_0x229be8(0x1e8)]),console[_0x229be8(0x1d2)](_0x19e456+_0x229be8(0x14a)+_0x39c73b[_0x229be8(0x117)]+_0x229be8(0x139)+_0x39c73b['destination']));if(!_0x309a43(_0x39c73b))return _0x55121e&&console[_0x229be8(0x1d2)](_0x19e456+_0x229be8(0x1a1)),fetch(_0x39c73b);const _0x2be49a=_0x1f2c18?await _0x32e77f(_0x4e19fe,_0x1f2c18):_0x439f11();_0x55121e&&console[_0x229be8(0x1d2)](_0x19e456+'\x20\x20\x20enhancementUrl:\x20'+(_0x2be49a[_0x229be8(0x127)]||_0x229be8(0x13c)));if(_0x388007(_0x2be49a,_0x4e19fe[_0x229be8(0x172)]))return _0x55121e&&console['log'](_0x19e456+_0x229be8(0x10c)+_0x4e19fe['pathname']+_0x229be8(0x141)),fetch(_0x39c73b);if(_0x1f2c18)return console[_0x229be8(0x1d2)](_0x19e456+'\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation'),_0x371c53(_0x39c73b,_0x2be49a);if(!_0x187e96(_0x2be49a,_0x39c73b,_0x4e19fe))return _0x55121e&&console[_0x229be8(0x1d2)](_0x19e456+_0x229be8(0x185)),fetch(_0x39c73b);console[_0x229be8(0x1d2)](_0x19e456+'\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20'+_0x4e19fe[_0x229be8(0x172)]);const _0x933e6f=await _0x328d49(_0x2be49a,_0x39c73b,_0x4e19fe);if(_0x933e6f)return console['log'](_0x19e456+_0x229be8(0x178)+_0x4e19fe[_0x229be8(0x172)]),_0x933e6f;return console[_0x229be8(0x1d2)](_0x19e456+_0x229be8(0x13d)+_0x4e19fe[_0x229be8(0x172)]+_0x229be8(0x166)),fetch(_0x39c73b);}async function _0x371c53(_0x365403,_0x50d7dd){const _0x1fec4f=_0x4dd480,_0x356469=new URL(_0x365403[_0x1fec4f(0x1f0)]);console[_0x1fec4f(0x1d2)](_0x19e456+_0x1fec4f(0x15b)+_0x356469[_0x1fec4f(0x172)]+_0x356469['search']),console['log'](_0x19e456+_0x1fec4f(0x100)+(_0x50d7dd[_0x1fec4f(0x127)]||_0x1fec4f(0x13c))),console[_0x1fec4f(0x1d2)](_0x19e456+_0x1fec4f(0xd1));const _0x15fe2d=await fetch(_0x365403);console[_0x1fec4f(0x1d2)](_0x19e456+'\x20\x20\x20Production\x20response:\x20'+_0x15fe2d[_0x1fec4f(0x181)]+'\x20'+_0x15fe2d['statusText']),console[_0x1fec4f(0x1d2)](_0x19e456+_0x1fec4f(0x1d9)+_0x15fe2d[_0x1fec4f(0x1f4)][_0x1fec4f(0x1ad)](_0x1fec4f(0x193)));if(!_0x4a9fb6(_0x15fe2d))return console[_0x1fec4f(0x1d2)](_0x19e456+_0x1fec4f(0x126)),_0x15fe2d;console[_0x1fec4f(0x1d2)](_0x19e456+'\x20\x20\x20HTML\x20response\x20-\x20processing...');const _0x562792=_0x44f13b(_0x15fe2d,'GET');console['log'](_0x19e456+_0x1fec4f(0xf7));const _0x567d6e=await _0x3eed2b(_0x50d7dd,_0x365403),_0x37e18c=_0x567d6e?'enhancement':_0x1fec4f(0xeb);console[_0x1fec4f(0x1d2)](_0x19e456+_0x1fec4f(0x12f)+_0x37e18c);const _0x2a01a1=_0x567d6e??_0x562792,_0x22daaa=_0x37e18c==='enhancement'||_0x356469[_0x1fec4f(0x1e9)][_0x1fec4f(0x1b5)](_0x1fec4f(0x1a3))||_0x356469[_0x1fec4f(0x1e9)][_0x1fec4f(0x1b5)](_0x1fec4f(0xff));console['log'](_0x19e456+_0x1fec4f(0x128)+_0x22daaa);try{console['log'](_0x19e456+_0x1fec4f(0x13a));const _0x4f69e6=await _0x1cff46(_0x50d7dd,_0x2a01a1,_0x37e18c,_0x22daaa);return console['log'](_0x19e456+_0x1fec4f(0x180)),_0x4f69e6;}catch(_0x291399){return console[_0x1fec4f(0x165)](_0x19e456+_0x1fec4f(0x112),_0x291399),_0x1524f4('info',_0x1fec4f(0x129),_0x291399),_0x2a01a1;}}return _0x54c450(_0x232242);})());
|
|
1
|
+
'use strict';(function(_0x889117,_0x40900d){const _0xd954e8=_0x1695,_0x135989=_0x889117();while(!![]){try{const _0xf5a45f=-parseInt(_0xd954e8(0x1a8))/0x1+parseInt(_0xd954e8(0x22d))/0x2*(parseInt(_0xd954e8(0x15e))/0x3)+parseInt(_0xd954e8(0x131))/0x4+-parseInt(_0xd954e8(0x1da))/0x5*(-parseInt(_0xd954e8(0x162))/0x6)+-parseInt(_0xd954e8(0x166))/0x7*(parseInt(_0xd954e8(0x159))/0x8)+parseInt(_0xd954e8(0x1e4))/0x9+-parseInt(_0xd954e8(0x222))/0xa;if(_0xf5a45f===_0x40900d)break;else _0x135989['push'](_0x135989['shift']());}catch(_0x13e535){_0x135989['push'](_0x135989['shift']());}}}(_0x48a2,0xd5f37));function _0x1695(_0x45ece7,_0x5fe7d5){_0x45ece7=_0x45ece7-0x11b;const _0x48a2c9=_0x48a2();let _0x1695d7=_0x48a2c9[_0x45ece7];return _0x1695d7;}var EnhanceSW=((()=>{const _0x1e5c8c=_0x1695;var _0x4dc35f=Object['defineProperty'],_0xccc885=Object[_0x1e5c8c(0x1ab)],_0x5d395c=Object[_0x1e5c8c(0x17d)],_0x169db0=Object[_0x1e5c8c(0x221)][_0x1e5c8c(0x1fb)],_0x54ea04=(_0x3a0c13,_0x4d4884)=>{for(var _0x3377c6 in _0x4d4884)_0x4dc35f(_0x3a0c13,_0x3377c6,{'get':_0x4d4884[_0x3377c6],'enumerable':!![]});},_0x399de6=(_0x879ce5,_0xd605ec,_0x813180,_0x443cd8)=>{const _0x461e15=_0x1e5c8c;if(_0xd605ec&&typeof _0xd605ec===_0x461e15(0x22b)||typeof _0xd605ec===_0x461e15(0x1ca)){for(let _0x49652c of _0x5d395c(_0xd605ec))if(!_0x169db0['call'](_0x879ce5,_0x49652c)&&_0x49652c!==_0x813180)_0x4dc35f(_0x879ce5,_0x49652c,{'get':()=>_0xd605ec[_0x49652c],'enumerable':!(_0x443cd8=_0xccc885(_0xd605ec,_0x49652c))||_0x443cd8[_0x461e15(0x135)]});}return _0x879ce5;},_0x3b66c5=_0x2559c8=>_0x399de6(_0x4dc35f({},_0x1e5c8c(0x215),{'value':!![]}),_0x2559c8),_0x14e69b={};_0x54ea04(_0x14e69b,{'log':()=>_0x57fbd2});var _0x52ee4d='enhance:configure',_0x5ace81=_0x1e5c8c(0x212);function _0x2b1df8(_0x1f1a75){const _0x22fef8=_0x1e5c8c;if(!_0x1f1a75[_0x22fef8(0x1de)]('/'))return'/'+_0x1f1a75;return _0x1f1a75;}function _0x277923(_0x225f31,_0x5a129e){const _0x2b1f6f=_0x1e5c8c,_0x146b5b=new URL(_0x225f31[_0x2b1f6f(0x152)]()),_0x2c201e=_0x146b5b[_0x2b1f6f(0x12a)][_0x2b1f6f(0x143)]('/')?_0x146b5b[_0x2b1f6f(0x12a)][_0x2b1f6f(0x1c3)](0x0,-0x1):_0x146b5b['pathname'],_0x2e6b45=_0x5a129e['pathname'][_0x2b1f6f(0x1de)]('/')?_0x5a129e[_0x2b1f6f(0x12a)]:'/'+_0x5a129e['pathname'];return _0x146b5b[_0x2b1f6f(0x12a)]=(''+_0x2c201e+_0x2e6b45)[_0x2b1f6f(0x177)](/\/+/g,'/'),_0x146b5b['search']=_0x5a129e[_0x2b1f6f(0x1c0)],_0x146b5b[_0x2b1f6f(0x1ce)]='',_0x146b5b;}var _0x3d69a0='[Enhance\x20SW\x20Routing]',_0x869b6b='X-Enhance-Publishable-Key',_0x30f1f1=new Set([_0x1e5c8c(0x126),_0x1e5c8c(0x12c),_0x1e5c8c(0x165),'image','worker',_0x1e5c8c(0x1fe),_0x1e5c8c(0x1f7)]);function _0x14250e(_0x3d80d0){const _0x92f25e=_0x1e5c8c,_0x5347e0=_0x3d80d0['method']==='GET'||_0x3d80d0[_0x92f25e(0x133)]===_0x92f25e(0x1b4);return _0x5347e0;}function _0x2c6607(_0x37b9d4,_0x1f554b){const _0x198095=_0x1e5c8c,_0x217132=_0x2b1df8(_0x1f554b),_0x333cc4=_0x37b9d4[_0x198095(0x15a)][_0x198095(0x158)](_0x5db761=>_0x217132['startsWith'](_0x5db761));return _0x333cc4;}function _0x2ea32e(_0x61429d,_0x4bbeda,_0x43fca5){const _0x154740=_0x1e5c8c,_0x1ec9bd=_0x4bbeda[_0x154740(0x1a3)];if(!_0x1ec9bd||!_0x30f1f1[_0x154740(0x20f)](_0x1ec9bd))return![];if(_0x1e1e04(_0x61429d,_0x43fca5))return console['log'](_0x3d69a0+_0x154740(0x124)+_0x43fca5['pathname']+_0x154740(0x210)),![];if(_0x439581(_0x61429d,_0x43fca5))return console[_0x154740(0x1d5)](_0x3d69a0+_0x154740(0x124)+_0x43fca5[_0x154740(0x12a)]+_0x154740(0x22c)),![];if(_0x43fca5['origin']!==self[_0x154740(0x1e8)][_0x154740(0x132)])return![];return!![];}async function _0x108cd2(_0x1f9d84,_0x256e16,_0x2f7556){const _0x6571bb=_0x1e5c8c;console[_0x6571bb(0x1d5)](_0x3d69a0+_0x6571bb(0x198)+_0x2f7556[_0x6571bb(0x12a)]);if(!_0x1f9d84[_0x6571bb(0x13a)])return console[_0x6571bb(0x1d5)](_0x3d69a0+_0x6571bb(0x1a7)),null;const _0x25f89f=_0x4d5f6b(_0x1f9d84,_0x2f7556);console[_0x6571bb(0x1d5)](_0x3d69a0+'\x20\x20\x20Enhancement\x20URL:\x20'+_0x25f89f[_0x6571bb(0x152)]());const _0x4381e2=new Headers(_0x256e16[_0x6571bb(0x1ba)]);_0x4381e2[_0x6571bb(0x1b2)](_0x6571bb(0x14b),'enhancement'),_0x4381e2[_0x6571bb(0x14e)]('host');_0x1f9d84['publishableKey']&&_0x4381e2[_0x6571bb(0x1b2)](_0x869b6b,_0x1f9d84[_0x6571bb(0x213)]);const _0x1e3493=new Request(_0x25f89f[_0x6571bb(0x152)](),{'method':_0x256e16['method'],'headers':_0x4381e2,'credentials':_0x6571bb(0x214),'redirect':_0x256e16[_0x6571bb(0x1a1)],'cache':_0x6571bb(0x169),'mode':_0x6571bb(0x203)});try{console[_0x6571bb(0x1d5)](_0x3d69a0+_0x6571bb(0x220));const _0x3e45e5=await fetch(_0x1e3493);console[_0x6571bb(0x1d5)](_0x3d69a0+_0x6571bb(0x153)+_0x3e45e5['status']+'\x20'+_0x3e45e5['statusText']+',\x20type:\x20'+_0x3e45e5[_0x6571bb(0x123)]);if(_0x3e45e5[_0x6571bb(0x123)]===_0x6571bb(0x136))return console[_0x6571bb(0x1d5)](_0x3d69a0+_0x6571bb(0x1c8)),_0x57fbd2(_0x6571bb(0x1d0),'Enhancement\x20CORS\x20blocked',_0x25f89f['toString']()),null;if(!_0x3e45e5['ok'])return console[_0x6571bb(0x1d5)](_0x3d69a0+'\x20\x20\x20Not\x20OK\x20('+_0x3e45e5[_0x6571bb(0x1a4)]+_0x6571bb(0x140)),_0x57fbd2(_0x6571bb(0x1d2),_0x6571bb(0x15f)+_0x3e45e5[_0x6571bb(0x1a4)]+_0x6571bb(0x1c9)+_0x25f89f[_0x6571bb(0x12a)]),null;return console[_0x6571bb(0x1d5)](_0x3d69a0+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),_0x31f45a(_0x3e45e5,_0x256e16['method']);}catch(_0x5e5386){return console[_0x6571bb(0x170)](_0x3d69a0+_0x6571bb(0x21e),_0x5e5386),_0x57fbd2(_0x6571bb(0x1d0),_0x6571bb(0x1c4),_0x5e5386),null;}}async function _0x30514(_0x3eb517,_0x6b03f9){const _0x330aa5=_0x1e5c8c,_0x47226b=new URL(_0x6b03f9[_0x330aa5(0x1d1)]);console[_0x330aa5(0x1d5)](_0x3d69a0+'\x20fetchEnhancementDocument:\x20'+_0x47226b[_0x330aa5(0x12a)]+_0x47226b[_0x330aa5(0x1c0)]);if(!_0x3eb517[_0x330aa5(0x13a)])return console['log'](_0x3d69a0+_0x330aa5(0x1e1)),null;const _0xe2278=_0x4d5f6b(_0x3eb517,_0x47226b);console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x1f0)+_0xe2278[_0x330aa5(0x152)]());const _0x16a2f0=new Headers(_0x6b03f9[_0x330aa5(0x1ba)]);_0x16a2f0[_0x330aa5(0x1b2)](_0x330aa5(0x14b),_0x330aa5(0x18c)),_0x16a2f0[_0x330aa5(0x14e)]('host'),_0x16a2f0['delete'](_0x330aa5(0x181));_0x3eb517[_0x330aa5(0x213)]&&_0x16a2f0['set'](_0x869b6b,_0x3eb517[_0x330aa5(0x213)]);const _0x944da5=new Request(_0xe2278['toString'](),{'method':'GET','headers':_0x16a2f0,'credentials':_0x330aa5(0x214),'redirect':_0x330aa5(0x1f6),'cache':_0x330aa5(0x169),'mode':_0x330aa5(0x203)});try{console[_0x330aa5(0x1d5)](_0x3d69a0+'\x20\x20\x20Fetching\x20enhancement\x20document...');const _0x4db547=await fetch(_0x944da5);console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x153)+_0x4db547[_0x330aa5(0x1a4)]+'\x20'+_0x4db547[_0x330aa5(0x120)]+_0x330aa5(0x22a)+_0x4db547[_0x330aa5(0x123)]),console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x1e5)+_0x4db547[_0x330aa5(0x1ba)][_0x330aa5(0x21d)](_0x330aa5(0x1dd)));if(_0x4db547[_0x330aa5(0x123)]==='opaque')return console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x1c8)),_0x57fbd2(_0x330aa5(0x1d0),_0x330aa5(0x155),_0xe2278['toString']()),null;if(!_0x4db547['ok'])return console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x11f)+_0x4db547[_0x330aa5(0x1a4)]+_0x330aa5(0x140)),_0x57fbd2('debug',_0x330aa5(0x12d)+_0x4db547[_0x330aa5(0x1a4)]+_0x330aa5(0x1c9)+_0xe2278['pathname']),null;if(!_0x79f0cb(_0x4db547))return console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x173)),null;return console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x179)),_0x31f45a(_0x4db547,_0x330aa5(0x19f));}catch(_0x2cccdd){return console['error'](_0x3d69a0+'\x20\x20\x20Document\x20fetch\x20error:',_0x2cccdd),_0x57fbd2('info',_0x330aa5(0x16f),_0x2cccdd),null;}}function _0x4d5f6b(_0x14c903,_0x3a1db9){const _0x1ac0fd=_0x1e5c8c;if(!_0x14c903[_0x1ac0fd(0x13a)])throw new Error(_0x1ac0fd(0x154));return _0x277923(_0x14c903[_0x1ac0fd(0x13a)],_0x3a1db9);}function _0x31f45a(_0x1da3e8,_0x431455){const _0xbd84b=_0x1e5c8c,_0x37c32a=_0x1da3e8['clone'](),_0x2ef888=new Headers(_0x37c32a[_0xbd84b(0x1ba)]);_0x2ef888[_0xbd84b(0x14e)](_0xbd84b(0x187)),_0x2ef888[_0xbd84b(0x14e)](_0xbd84b(0x216)),_0x2ef888[_0xbd84b(0x14e)](_0xbd84b(0x12e)),_0x2ef888[_0xbd84b(0x1b2)](_0xbd84b(0x1ae),_0xbd84b(0x16b)),_0xeeff9b(_0x2ef888);const _0x434bba=_0x431455==='HEAD'?null:_0x37c32a['body'];return new Response(_0x434bba,{'status':_0x37c32a[_0xbd84b(0x1a4)],'statusText':_0x37c32a['statusText'],'headers':_0x2ef888});}function _0x79f0cb(_0x541f7e){const _0x39d187=_0x1e5c8c,_0x4eb3d8=_0x541f7e['headers'][_0x39d187(0x21d)](_0x39d187(0x1dd));return _0x4eb3d8!=null&&_0x4eb3d8[_0x39d187(0x16e)](_0x39d187(0x13d));}function _0x1e1e04(_0x2ab9f6,_0x25a55e){const _0x378b26=_0x1e5c8c;return _0x5567cf(_0x25a55e,_0x2ab9f6[_0x378b26(0x228)]);}function _0x439581(_0x2835af,_0x13684d){const _0x29caa0=_0x1e5c8c;return _0x28c738(_0x13684d,_0x2835af[_0x29caa0(0x1a5)]);}function _0x5567cf(_0x5a6381,_0x69c8b3){const _0x270125=_0x1e5c8c;if(!_0x69c8b3)return![];if(_0x69c8b3['startsWith']('http://')||_0x69c8b3[_0x270125(0x1de)]('https://'))return _0x5a6381[_0x270125(0x1b1)]===_0x69c8b3;const _0x215af0=_0x41dfd8(_0x69c8b3);if(!_0x215af0)return![];const _0x6b4447=''+_0x5a6381[_0x270125(0x12a)]+_0x5a6381[_0x270125(0x1c0)];if(_0x6b4447===_0x215af0)return!![];if(_0x5a6381[_0x270125(0x1c0)]===_0x270125(0x129))return _0x5a6381[_0x270125(0x12a)]===_0x215af0;return![];}function _0x28c738(_0x3acf65,_0x3cb41c){const _0x589254=_0x1e5c8c;if(!_0x3cb41c)return![];if(_0x3cb41c[_0x589254(0x1de)]('http://')||_0x3cb41c[_0x589254(0x1de)](_0x589254(0x1df)))return _0x3acf65['href']===_0x3cb41c;const _0x9d27e7=_0x41dfd8(_0x3cb41c);if(!_0x9d27e7)return![];const _0x548bf1=''+_0x3acf65[_0x589254(0x12a)]+_0x3acf65[_0x589254(0x1c0)];return _0x548bf1===_0x9d27e7;}function _0x41dfd8(_0x98302c){const _0x922db2=_0x1e5c8c;if(!_0x98302c)return _0x98302c;if(_0x98302c[_0x922db2(0x1de)](_0x922db2(0x11d))||_0x98302c['startsWith']('https://'))return _0x98302c;const _0x1cb493=_0x98302c['replace'](/^\.\//,'');if(_0x1cb493[_0x922db2(0x1de)]('/'))return _0x1cb493;return'/'+_0x1cb493;}function _0xeeff9b(_0x198989){const _0x50bb69=_0x1e5c8c;_0x198989[_0x50bb69(0x14e)]('set-cookie'),_0x198989[_0x50bb69(0x14e)](_0x50bb69(0x149));}function _0x55989a(_0x3eca5f){const _0x5deaf5=_0x1e5c8c,_0x3789a2=[_0x5deaf5(0x1aa),_0x5deaf5(0x1ef),_0x5deaf5(0x13c),_0x5deaf5(0x208),_0x5deaf5(0x18f),'connect-src\x20*',_0x5deaf5(0x190),_0x5deaf5(0x1d9),_0x5deaf5(0x171)],_0x463da5=_0x3fb90d(_0x3eca5f);return _0x463da5&&_0x3789a2[_0x5deaf5(0x1cd)](_0x463da5),_0x3789a2['join'](';\x20');}function _0x330758(_0x3f4e22){const _0x302c5c=_0x1e5c8c;_0x3f4e22[_0x302c5c(0x14e)](_0x302c5c(0x21b)),_0x3f4e22[_0x302c5c(0x14e)](_0x302c5c(0x149));}function _0x3fb90d(_0x49edb2){const _0x3b3661=_0x1e5c8c;if(!_0x49edb2)return null;const _0x3e2d9b=_0x49edb2[_0x3b3661(0x1f1)](/frame-ancestors\s+([^;]+)/i);if(!_0x3e2d9b)return null;return _0x3b3661(0x1d7)+_0x3e2d9b[0x1][_0x3b3661(0x224)]();}function _0x29ba2c(_0x46f5d2,_0x38c0bb){const _0x4653b0=_0x1e5c8c;if(/<head[^>]*>/i[_0x4653b0(0x1e2)](_0x46f5d2)){const _0x3862f9=_0x46f5d2[_0x4653b0(0x1f1)](/<head[^>]*>/i);if(_0x3862f9){const _0x4ada10=_0x3862f9[0x0];return _0x46f5d2[_0x4653b0(0x177)](_0x4ada10,_0x4ada10+'\x0a'+_0x38c0bb);}}if(/<\/head>/i[_0x4653b0(0x1e2)](_0x46f5d2))return _0x46f5d2[_0x4653b0(0x177)](/<\/head>/i,_0x38c0bb+_0x4653b0(0x21c));if(/<body\b[^>]*>/i[_0x4653b0(0x1e2)](_0x46f5d2))return _0x46f5d2[_0x4653b0(0x177)](/<body\b[^>]*>/i,_0x4653b0(0x201)+_0x38c0bb);if(/<\/body>/i['test'](_0x46f5d2))return _0x46f5d2[_0x4653b0(0x177)](/<\/body>/i,_0x38c0bb+'\x0a</body>');return _0x38c0bb+'\x0a'+_0x46f5d2;}var _0x426502=[_0x1e5c8c(0x15d)],_0x4a4688=[_0x1e5c8c(0x1ec),_0x1e5c8c(0x147),_0x1e5c8c(0x223),'/__vite_ping',_0x1e5c8c(0x20a),_0x1e5c8c(0x168),_0x1e5c8c(0x20c),'/webpackhotmiddleware',_0x1e5c8c(0x18d),_0x1e5c8c(0x1ac),_0x1e5c8c(0x15b),'/parcel-hmr',_0x1e5c8c(0x1ed),_0x1e5c8c(0x1c6),_0x1e5c8c(0x1d6)];function _0x2b8bb7(_0x3013d3,_0x4cb072){const _0x26c83a=_0x527161(_0x3013d3);if(!_0x26c83a)return _0x4cb072;return _0x29ba2c(_0x4cb072,_0x26c83a);}function _0x527161(_0x1de0aa){const _0xa765be=_0x1e5c8c;if(!_0x1de0aa[_0xa765be(0x13a)])return null;const _0x36cab6=_0x1de0aa[_0xa765be(0x13a)][_0xa765be(0x152)](),_0x4457f0=_0x47f62(_0x426502),_0x1f4a3f=_0x47f62(_0x4a4688),_0x45d899=['<script\x20data-enhance-hmr-bridge>',_0xa765be(0x1e7),_0xa765be(0x1bd),_0xa765be(0x1d8)+JSON[_0xa765be(0x16a)](_0x36cab6)+');',_0xa765be(0x18a),'\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{',_0xa765be(0x1a9),'\x20\x20\x20\x20}',_0xa765be(0x1ea)+JSON[_0xa765be(0x16a)](_0x4457f0)+');',_0xa765be(0x138)+JSON['stringify'](_0x1f4a3f)+';',_0xa765be(0x17f),_0xa765be(0x218),_0xa765be(0x229),_0xa765be(0x182),_0xa765be(0x1b7),'\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{',_0xa765be(0x1cb),_0xa765be(0x1c2),_0xa765be(0x1b5),_0xa765be(0x156),_0xa765be(0x1db),_0xa765be(0x17b),_0xa765be(0x1db),_0xa765be(0x193),_0xa765be(0x1c1),_0xa765be(0x1d4),_0xa765be(0x1e0),_0xa765be(0x13b),'\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{',_0xa765be(0x175),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{',_0xa765be(0x142),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0xa765be(0x1e0),_0xa765be(0x145),_0xa765be(0x1fd),_0xa765be(0x1f9),_0xa765be(0x142),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0xa765be(0x1e0),_0xa765be(0x19e),'\x20\x20\x20\x20};',_0xa765be(0x1a0),'\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying',_0xa765be(0x12b),'\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;',_0xa765be(0x1af),_0xa765be(0x21f),_0xa765be(0x1b7),_0xa765be(0x195),_0xa765be(0x1f5),_0xa765be(0x1b0),_0xa765be(0x20e),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);',_0xa765be(0x188),_0xa765be(0x225),_0xa765be(0x18e),_0xa765be(0x157),'\x20\x20\x20\x20\x20\x20}',_0xa765be(0x141),_0xa765be(0x1b7),_0xa765be(0x204),_0xa765be(0x19c),_0xa765be(0x205),_0xa765be(0x1b9),'\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});',_0xa765be(0x176),'\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine',_0xa765be(0x178),_0xa765be(0x160),_0xa765be(0x1ad),'\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','\x20\x20}','})();','</script>'];return _0x45d899[_0xa765be(0x139)]('\x0a');}function _0x47f62(_0x3fc5c4){const _0x58dfc8=_0x1e5c8c,_0x31e17=new Set(),_0x300e20=[];for(const _0x5a9436 of _0x3fc5c4){const _0x31d66f=_0x5a9436[_0x58dfc8(0x192)]();if(_0x31e17['has'](_0x31d66f))continue;_0x31e17[_0x58dfc8(0x207)](_0x31d66f),_0x300e20[_0x58dfc8(0x1cd)](_0x31d66f);}return _0x300e20;}var _0x1981af=_0x1e5c8c(0x1ff);function _0x294b15(_0x8fe948,_0x169f6b){const _0x584096=_0x1e5c8c;console[_0x584096(0x1d5)](_0x1981af+'\x20injectRuntimeBootstrap()\x20called'),console[_0x584096(0x1d5)](_0x1981af+'\x20\x20\x20runtimeScriptPath:\x20'+_0x8fe948[_0x584096(0x1a5)]),console['log'](_0x1981af+_0x584096(0x1bc)+_0x8fe948['overlayPath']);if(_0x169f6b[_0x584096(0x16e)](_0x584096(0x184)))return console[_0x584096(0x1d5)](_0x1981af+_0x584096(0x1b3)),_0x169f6b;const _0x485cb2=_0x331bf3(_0x8fe948);if(!_0x485cb2)return console[_0x584096(0x1d5)](_0x1981af+_0x584096(0x19d)),_0x169f6b;console['log'](_0x1981af+'\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20('+_0x485cb2['length']+_0x584096(0x1eb));const _0x14148e=_0x29ba2c(_0x169f6b,_0x485cb2);return console['log'](_0x1981af+_0x584096(0x172)),_0x14148e;}function _0x331bf3(_0x9797d5){const _0x34f455=_0x1e5c8c,_0x553428=_0x9797d5[_0x34f455(0x1a5)];if(!_0x553428)return console[_0x34f455(0x1d5)](_0x1981af+_0x34f455(0x186)),null;const _0x22208c=_0x552fe4(_0x9797d5);console[_0x34f455(0x1d5)](_0x1981af+_0x34f455(0x185),JSON['stringify'](_0x22208c,null,0x2));const _0x18acc7=_0x47fe6a(_0x22208c),_0x2bd64b=JSON[_0x34f455(0x16a)](_0x553428),_0x5ae83e=[_0x34f455(0x127),'(async\x20()\x20=>\x20{','\x20\x20try\x20{',_0x34f455(0x227)+_0x2bd64b+';',_0x34f455(0x1f4),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','\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;',_0x34f455(0x11c),'\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);',_0x34f455(0x1a9),_0x34f455(0x178),_0x34f455(0x1e3)+_0x18acc7+_0x34f455(0x19b),_0x34f455(0x13e)+_0x18acc7+');',_0x34f455(0x16d),'\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{',_0x34f455(0x202),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);',_0x34f455(0x1e6),'\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;',_0x34f455(0x1a2),'\x20\x20\x20\x20}',_0x34f455(0x128),_0x34f455(0x194),_0x34f455(0x200),_0x34f455(0x180),'})();',_0x34f455(0x125)];return _0x5ae83e[_0x34f455(0x139)]('\x0a');}function _0x552fe4(_0x261ea4){const _0x36b3af=_0x1e5c8c,_0x559526={'publishableKey':_0x261ea4[_0x36b3af(0x213)],'callbackBypass':_0x261ea4[_0x36b3af(0x211)],'__development':{'enableOverlayHmr':_0x261ea4[_0x36b3af(0x17c)],'overlayPath':_0x261ea4[_0x36b3af(0x228)],'security':_0x261ea4[_0x36b3af(0x21a)],'backendUrl':_0x261ea4[_0x36b3af(0x130)]}};return _0x559526;}function _0x47fe6a(_0x5bf3b1){const _0x102045=_0x1e5c8c;return JSON['stringify'](_0x5bf3b1)['replace'](/</g,_0x102045(0x17a))[_0x102045(0x177)](/>/g,'\x5cu003e');}function _0x461d09(_0x5445f3,_0x163e1b){const _0x1cdd3d=_0x1e5c8c,_0x329b0a=_0x2ac3c3=>_0x24e9bd(_0x5445f3,_0x2ac3c3),_0x56f808=_0x58db97=>_0x3bf3fd(_0x5445f3,_0x58db97);return _0x163e1b['replace'](/<script\b[^>]*>/gi,_0x329b0a)[_0x1cdd3d(0x177)](/<link\b[^>]*>/gi,_0x56f808);}function _0x3bae03(_0x1aa842){const _0x178236=_0x1e5c8c;return _0x1aa842[_0x178236(0x177)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x24e9bd(_0x17302a,_0x2378e8){const _0x14b5ec=_0x1e5c8c,_0x552390=_0x3d4a2e(_0x2378e8,'src');if(!_0x552390)return _0x2378e8;const _0x5ba756=_0x21c147(_0x17302a,_0x552390['value']);if(!_0x5ba756||_0x5ba756===_0x552390[_0x14b5ec(0x1f8)])return _0x2378e8;const _0x22287a=_0x552390[_0x14b5ec(0x14f)]['replace'](_0x552390[_0x14b5ec(0x1f8)],_0x5ba756);return _0x2378e8[_0x14b5ec(0x177)](_0x552390[_0x14b5ec(0x14f)],_0x22287a);}function _0x3bf3fd(_0x3a46f5,_0x7ac7a0){const _0x196ca1=_0x1e5c8c,_0x4a4b0c=_0x7ac7a0[_0x196ca1(0x1f1)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x4a4b0c)return _0x7ac7a0;const _0x7236b3=_0x4a4b0c[0x2][_0x196ca1(0x192)]();if(_0x7236b3!==_0x196ca1(0x1cf)&&_0x7236b3!==_0x196ca1(0x1f7))return _0x7ac7a0;const _0xf8e7d8=_0x3d4a2e(_0x7ac7a0,_0x196ca1(0x1b1));if(!_0xf8e7d8)return _0x7ac7a0;const _0xde204d=_0x21c147(_0x3a46f5,_0xf8e7d8['value']);if(!_0xde204d||_0xde204d===_0xf8e7d8[_0x196ca1(0x1f8)])return _0x7ac7a0;const _0x16d5f3=_0xf8e7d8[_0x196ca1(0x14f)][_0x196ca1(0x177)](_0xf8e7d8[_0x196ca1(0x1f8)],_0xde204d);return _0x7ac7a0[_0x196ca1(0x177)](_0xf8e7d8['full'],_0x16d5f3);}function _0x3d4a2e(_0x332dc7,_0xeb8e6){const _0x2368f9=_0x1e5c8c,_0x3bfd70=new RegExp(_0xeb8e6+_0x2368f9(0x1d3),'i'),_0x109696=_0x332dc7['match'](_0x3bfd70);if(!_0x109696)return null;return{'full':_0x109696[0x0],'value':_0x109696[0x2]};}function _0x21c147(_0x46fb0e,_0x5561fe){const _0x73b426=_0x1e5c8c,_0x3f1449=_0x4fa091(_0x5561fe);if(!_0x3f1449)return null;if(_0x3f1449[_0x73b426(0x132)]===self[_0x73b426(0x1e8)]['origin'])return''+_0x3f1449[_0x73b426(0x12a)]+_0x3f1449[_0x73b426(0x1c0)];return null;}function _0x4fa091(_0x48eb93){const _0x19e51f=_0x1e5c8c;try{return new URL(_0x48eb93,self['location'][_0x19e51f(0x132)]);}catch{return null;}}var _0x3f91be='[Enhance\x20SW\x20Document]';async function _0x258049(_0x1a0cca,_0x38259d,_0x13a16e,_0x3582dd=!![]){const _0x5f3d21=_0x1e5c8c;console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x1b6)),console[_0x5f3d21(0x1d5)](_0x3f91be+'\x20\x20\x20source:\x20'+_0x13a16e),console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x20b)+_0x3582dd),console[_0x5f3d21(0x1d5)](_0x3f91be+'\x20\x20\x20securityMode:\x20'+_0x1a0cca[_0x5f3d21(0x21a)]);const _0x499e8b=_0x38259d[_0x5f3d21(0x1f3)](),_0xb8e66e=await _0x499e8b[_0x5f3d21(0x14c)]();console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x150)+_0xb8e66e[_0x5f3d21(0x19a)]+_0x5f3d21(0x1bf)),console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x174));const _0x4a8094=_0x3bae03(_0xb8e66e);console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x13f));let _0x21f964=_0x461d09(_0x1a0cca,_0x4a8094);_0x13a16e==='enhancement'?(console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x1fa)),_0x21f964=_0x2b8bb7(_0x1a0cca,_0x21f964)):console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x122));_0x3582dd?(console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x14a)),_0x21f964=_0x294b15(_0x1a0cca,_0x21f964)):console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x1bb));console['log'](_0x3f91be+_0x5f3d21(0x1fc)+_0x21f964[_0x5f3d21(0x19a)]+'\x20chars');const _0x3a1622=new Headers(_0x499e8b['headers']);_0x3a1622[_0x5f3d21(0x1b2)](_0x5f3d21(0x1f2),_0x5f3d21(0x217)),_0x3a1622['set']('x-enhance-document',_0x5f3d21(0x196)),_0x3a1622[_0x5f3d21(0x1b2)](_0x5f3d21(0x151),_0x13a16e),_0x330758(_0x3a1622);if(_0x1a0cca['securityMode']!==_0x5f3d21(0x15c)){console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x12f));const _0x58721b=_0x3a1622['get'](_0x5f3d21(0x183));_0x3a1622[_0x5f3d21(0x1b2)](_0x5f3d21(0x183),_0x55989a(_0x58721b)),_0x3a1622[_0x5f3d21(0x14e)](_0x5f3d21(0x14d)),_0x3a1622[_0x5f3d21(0x14e)]('cross-origin-embedder-policy'),_0x3a1622['delete'](_0x5f3d21(0x197));}else console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x219));return console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x16c)),new Response(_0x21f964,{'status':_0x499e8b[_0x5f3d21(0x1a4)],'statusText':_0x499e8b['statusText'],'headers':_0x3a1622});}var _0x362cdd=_0x1e5c8c(0x1be);console['log'](_0x362cdd+_0x1e5c8c(0x134));var _0x5a4d11={'overlayPath':_0x1e5c8c(0x209),'backendUrl':_0x1e5c8c(0x1e9),'overlayEnableViteHmr':![],'runtimeScriptPath':'/assets/enhance-runtime.js','swPath':_0x1e5c8c(0x17e)},_0xad44cb={'publishableKey':'','callbackBypass':[_0x1e5c8c(0x226)],'securityMode':_0x1e5c8c(0x191),'enhancementUrl':null,'enhancementBase':null};function _0x1246b4(){const _0xb28390=_0x1e5c8c;return{..._0x5a4d11,'publishableKey':_0xad44cb[_0xb28390(0x213)],'enhancementUrl':_0xad44cb[_0xb28390(0x1c5)]??'','enhancementBase':_0xad44cb[_0xb28390(0x13a)],'callbackBypass':_0xad44cb[_0xb28390(0x211)],'callbackBypassNormalized':_0xad44cb[_0xb28390(0x211)][_0xb28390(0x144)](_0x19a4cd=>_0x19a4cd[_0xb28390(0x1de)]('/')?_0x19a4cd:'/'+_0x19a4cd),'securityMode':_0xad44cb[_0xb28390(0x21a)]};}function _0x57fbd2(_0x376855,_0x3faee1,..._0x1a9f0d){const _0x435cc0=_0x1e5c8c;_0x376855===_0x435cc0(0x1d0)?console['info'](_0x362cdd,_0x3faee1,..._0x1a9f0d):console[_0x435cc0(0x1d2)](_0x362cdd,_0x3faee1,..._0x1a9f0d);}self[_0x1e5c8c(0x1c7)](_0x1e5c8c(0x167),_0x32b9a6=>{const _0x10ee64=_0x1e5c8c;console[_0x10ee64(0x1d5)](_0x362cdd+_0x10ee64(0x121)),_0x32b9a6['waitUntil'](self['skipWaiting']());}),self[_0x1e5c8c(0x1c7)]('activate',_0x461cd4=>{const _0x1e63a0=_0x1e5c8c;console[_0x1e63a0(0x1d5)](_0x362cdd+_0x1e63a0(0x163)),_0x461cd4['waitUntil'](self['clients']['claim']());}),self[_0x1e5c8c(0x1c7)]('message',_0x58ff64=>{const _0x167b3a=_0x1e5c8c,_0x58116e=_0x58ff64[_0x167b3a(0x1dc)];if(!_0x58116e||typeof _0x58116e!==_0x167b3a(0x22b))return;switch(_0x58116e[_0x167b3a(0x123)]){case _0x52ee4d:{console[_0x167b3a(0x1d5)](_0x362cdd+_0x167b3a(0x161));const _0x2df4b8=_0x58116e[_0x167b3a(0x11b)];_0xad44cb[_0x167b3a(0x213)]=_0x2df4b8[_0x167b3a(0x213)]??'',_0xad44cb[_0x167b3a(0x211)]=_0x2df4b8['callbackBypass']??[_0x167b3a(0x226)],_0xad44cb[_0x167b3a(0x21a)]=_0x2df4b8[_0x167b3a(0x21a)]??_0x167b3a(0x191);if(_0x2df4b8[_0x167b3a(0x1c5)]){_0xad44cb[_0x167b3a(0x1c5)]=_0x2df4b8[_0x167b3a(0x1c5)];try{_0xad44cb[_0x167b3a(0x13a)]=new URL(_0x2df4b8[_0x167b3a(0x1c5)]);}catch{console[_0x167b3a(0x170)](_0x362cdd+_0x167b3a(0x137)+_0x2df4b8['enhancementUrl']),_0xad44cb['enhancementBase']=null;}}else _0xad44cb[_0x167b3a(0x1c5)]=null,_0xad44cb['enhancementBase']=null;console[_0x167b3a(0x1d5)](_0x362cdd+'\x20Config\x20updated:',{'publishableKey':_0xad44cb[_0x167b3a(0x213)]?_0x167b3a(0x146):_0x167b3a(0x1a6),'enhancementUrl':_0xad44cb[_0x167b3a(0x1c5)]??'none'});break;}case _0x5ace81:console['log'](_0x362cdd+'\x20DISABLE\x20received\x20-\x20resetting\x20config'),_0xad44cb={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':'permissive','enhancementUrl':null,'enhancementBase':null};break;}}),self[_0x1e5c8c(0x1c7)]('fetch',_0x36d495=>{const _0x92f767=_0x1e5c8c,_0x2064d9=new URL(_0x36d495[_0x92f767(0x164)][_0x92f767(0x1d1)]);if(_0x2064d9[_0x92f767(0x132)]!==self[_0x92f767(0x1e8)][_0x92f767(0x132)])return;_0x36d495['respondWith'](_0x515ad8(_0x36d495));});async function _0x515ad8(_0x4d1c64){const _0x3ec1b2=_0x1e5c8c,{request:_0x5da157}=_0x4d1c64,_0x479260=new URL(_0x5da157[_0x3ec1b2(0x1d1)]),_0x55d22c=_0x5da157[_0x3ec1b2(0x11e)]===_0x3ec1b2(0x18b);console['log'](_0x362cdd+_0x3ec1b2(0x206)+_0x5da157['method']+'\x20'+_0x479260[_0x3ec1b2(0x12a)]+_0x479260[_0x3ec1b2(0x1c0)]+'\x20('+_0x5da157[_0x3ec1b2(0x11e)]+')');if(!_0x14250e(_0x5da157))return fetch(_0x5da157);const _0x14f9b2=_0x1246b4();console[_0x3ec1b2(0x1d5)](_0x362cdd+_0x3ec1b2(0x1b8)+(_0x14f9b2['enhancementUrl']||'none'));if(_0x2c6607(_0x14f9b2,_0x479260[_0x3ec1b2(0x12a)]))return console[_0x3ec1b2(0x1d5)](_0x362cdd+_0x3ec1b2(0x189)+_0x479260[_0x3ec1b2(0x12a)]),fetch(_0x5da157);if(_0x55d22c)return _0x2307a6(_0x5da157,_0x14f9b2);if(!_0x2ea32e(_0x14f9b2,_0x5da157,_0x479260))return fetch(_0x5da157);const _0x4900db=await _0x108cd2(_0x14f9b2,_0x5da157,_0x479260);if(_0x4900db)return console['log'](_0x362cdd+_0x3ec1b2(0x1ee)+_0x479260[_0x3ec1b2(0x12a)]),_0x4900db;return console['log'](_0x362cdd+'\x20\x20\x20Enhancement\x20MISS:\x20'+_0x479260['pathname']),fetch(_0x5da157);}async function _0x2307a6(_0x305a03,_0x398b12){const _0x5f40b2=_0x1e5c8c,_0x1f3fd6=new URL(_0x305a03[_0x5f40b2(0x1d1)]);console['log'](_0x362cdd+'\x20Navigation:\x20'+_0x1f3fd6[_0x5f40b2(0x12a)]+_0x1f3fd6[_0x5f40b2(0x1c0)]);const _0x1fac74=await fetch(_0x305a03);if(!_0x79f0cb(_0x1fac74))return _0x1fac74;const _0x18c281=_0x31f45a(_0x1fac74,_0x5f40b2(0x19f)),_0x479277=await _0x30514(_0x398b12,_0x305a03),_0x4072de=_0x479277?_0x5f40b2(0x148):_0x5f40b2(0x199),_0x53b9a1=_0x479277??_0x18c281,_0x2fe6e6=_0x4072de===_0x5f40b2(0x148)||_0x1f3fd6['searchParams'][_0x5f40b2(0x20f)]('overlay')||_0x1f3fd6[_0x5f40b2(0x1cc)][_0x5f40b2(0x20f)](_0x5f40b2(0x148));try{return await _0x258049(_0x398b12,_0x53b9a1,_0x4072de,_0x2fe6e6);}catch(_0x157b8a){return console[_0x5f40b2(0x170)](_0x362cdd+_0x5f40b2(0x20d),_0x157b8a),_0x53b9a1;}}return _0x3b66c5(_0x14e69b);})());function _0x48a2(){const _0x23a559=['\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','sharedworker','[Enhance\x20SW\x20Bootstrap]','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','$&\x0a','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','cors','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','\x20FETCH:\x20','add','img-src\x20*\x20data:\x20blob:','https://assets-dev.enhancelabs.ai/overlay.js','/sockjs-node','\x20\x20\x20shouldInjectOverlay:\x20','/webpack-hmr','\x20Document\x20rewrite\x20failed:','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','has','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','callbackBypass','enhance:disable','publishableKey','include','__esModule','access-control-allow-credentials','no-store','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','securityMode','set-cookie','\x0a</head>','get','\x20\x20\x20Fetch\x20error:','\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20\x20\x20Fetching\x20from\x20enhancement...','prototype','15471110ZIeaxw','/vite/client','trim','\x20\x20\x20\x20\x20\x20\x20\x20}','/auth/callback','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','overlayPath','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];',',\x20type:\x20','object','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','2xjYtTf','config','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','http://','mode','\x20\x20\x20Not\x20OK\x20(','statusText','\x20INSTALL','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','type','\x20shouldRouteAsset:\x20','</script>','script','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','?import','pathname','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','style','Enhancement\x20document\x20miss\x20','access-control-expose-headers','\x20\x20\x20Applying\x20permissive\x20CSP...','backendUrl','5455816SjQkPJ','origin','method','\x20Service\x20Worker\x20loaded','enumerable','opaque','\x20Invalid\x20enhancement\x20URL:\x20','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','join','enhancementBase','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','text/html','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','\x20\x20\x20Rewriting\x20entry\x20references...',')\x20-\x20returning\x20null','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','endsWith','map','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','[set]','/__vite/client','enhancement','set-cookie2','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','x-enhance-routing','text','cross-origin-opener-policy','delete','full','\x20\x20\x20Original\x20HTML\x20length:\x20','x-enhance-document-source','toString','\x20\x20\x20Response:\x20','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','Enhancement\x20document\x20CORS\x20blocked','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','some','4105688FDtGWB','callbackBypassNormalized','/_next/webpack-hmr','custom','vite-hmr','1449477DOGfbT','Enhancement\x20miss\x20','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20CONFIG\x20received','4116534VcNBkL','\x20ACTIVATE','request','font','7sktqnh','install','/webpack-dev-server','default','stringify','hit','\x20\x20\x20Document\x20rewrite\x20complete','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','includes','Enhancement\x20document\x20fetch\x20failed','error','object-src\x20\x27none\x27','\x20\x20\x20Script\x20inserted\x20into\x20document','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','replace','\x20\x20\x20\x20}','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','\x5cu003c','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','overlayEnableViteHmr','getOwnPropertyNames','/sw-enhance.js','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20}','content-length','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','content-security-policy','data-enhance-runtime-bootstrap','\x20Bootstrap\x20options:','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','access-control-allow-origin','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20\x20\x20BYPASS:\x20','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','navigate','enhancement-document','/webpack-hot-middleware','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','font-src\x20*\x20data:','media-src\x20*\x20data:\x20blob:','permissive','toLowerCase','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','rewritten','cross-origin-resource-policy','\x20fetchFromEnhancement:\x20','production','length',',\x20null,\x202));','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20\x20\x20\x20\x20\x20return\x20false;','GET','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','redirect','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','destination','status','runtimeScriptPath','[not\x20set]','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','848286WvzvCT','\x20\x20\x20\x20\x20\x20return;','default-src\x20\x27self\x27\x20blob:\x20data:','getOwnPropertyDescriptor','/__webpack_hmr','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','x-enhance-enhancement','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','href','set','\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it','HEAD','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','\x20rewriteDocument()\x20called','\x20\x20\x20\x20};','\x20\x20\x20enhancementUrl:\x20','\x20\x20\x20\x20try\x20{','headers','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20\x20\x20overlayPath:\x20','\x20\x20try\x20{','[Enhance\x20SW]','\x20chars','search','\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\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','slice','Enhancement\x20fetch\x20failed','enhancementUrl','/__snowpack__','addEventListener','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','\x20for\x20','function','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','searchParams','push','hash','stylesheet','info','url','debug','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','log','/snowpack/hmr','frame-ancestors\x20','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','worker-src\x20\x27self\x27\x20blob:','5HKNkYo','\x20\x20\x20\x20\x20\x20','data','content-type','startsWith','https://','\x20\x20\x20\x20\x20\x20}','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','test','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','11265741criFJd','\x20\x20\x20Content-Type:\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','(function(){','location','https://enhance-api-dev.enhancelabs.workers.dev','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','\x20chars)','/@vite/client','/__parcel_hmr','\x20\x20\x20Enhancement\x20HIT:\x20','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20Enhancement\x20document\x20URL:\x20','match','cache-control','clone','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x20\x20\x20\x20\x20\x20try\x20{','follow','modulepreload','value','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','hasOwnProperty','\x20\x20\x20Rewritten\x20HTML\x20length:\x20'];_0x48a2=function(){return _0x23a559;};return _0x48a2();}
|
package/dist/vite/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x4d1c66=_0x16d7;function _0x16d7(_0x48ebbb,_0x224d7a){_0x48ebbb=_0x48ebbb-0x109;var _0x3e8bc4=_0x3e8b();var _0x16d7c7=_0x3e8bc4[_0x48ebbb];return _0x16d7c7;}(function(_0x526342,_0x412a70){var _0x12fe89=_0x16d7,_0x2b5859=_0x526342();while(!![]){try{var _0x21d372=parseInt(_0x12fe89(0x10c))/0x1+parseInt(_0x12fe89(0x113))/0x2*(-parseInt(_0x12fe89(0x10b))/0x3)+-parseInt(_0x12fe89(0x117))/0x4+-parseInt(_0x12fe89(0x118))/0x5+-parseInt(_0x12fe89(0x111))/0x6*(-parseInt(_0x12fe89(0x115))/0x7)+parseInt(_0x12fe89(0x123))/0x8*(parseInt(_0x12fe89(0x116))/0x9)+parseInt(_0x12fe89(0x11e))/0xa;if(_0x21d372===_0x412a70)break;else _0x2b5859['push'](_0x2b5859['shift']());}catch(_0x15e2bf){_0x2b5859['push'](_0x2b5859['shift']());}}}(_0x3e8b,0x80983));import{fileURLToPath}from'url';import{readFile}from'fs/promises';var runtimePath=fileURLToPath(new URL('../assets/enhance-runtime.js',import.meta.url)),swPath=fileURLToPath(new URL(_0x4d1c66(0x126),import.meta.url)),RUNTIME_URL=_0x4d1c66(0x11a),SW_URL=_0x4d1c66(0x122);function buildInitScript(_0x439a38){var _0x45b2ff=_0x4d1c66;const _0x2ea981={'publishableKey':_0x439a38[_0x45b2ff(0x124)],'callbackBypass':_0x439a38[_0x45b2ff(0x110)],'__development':_0x439a38[_0x45b2ff(0x10f)]},_0x582b3c=JSON[_0x45b2ff(0x11b)](_0x2ea981);return'<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22'+RUNTIME_URL+_0x45b2ff(0x11f)+_0x582b3c+');\x0a</script>';}function _0x3e8b(){var _0x1d22a2=['url','../sw-enhance.js','use','assets/enhance-runtime.js','3elPQwR','520696uCvxEi','<head$1>','Content-Type','__development','callbackBypass','984cHQQuM','asset','216358WawRrG','utf-8','43813ZOfezz','45UcaFIl','2527244yiIANF','2910040GPvsJe','end','/assets/enhance-runtime.js','stringify','replace','enhance-sandbox','751790RwjLnj','\x22;\x0aEnhance.init(','setHeader','emitFile','/sw-enhance.js','362192MOnmas','publishableKey'];_0x3e8b=function(){return _0x1d22a2;};return _0x3e8b();}var enhance=_0x3de534=>{var _0x1a44ee=_0x4d1c66;let _0x24899c=null,_0x4afecd=null;async function _0x10f824(){var _0x1f5406=_0x16d7;!_0x24899c&&(_0x24899c=await readFile(runtimePath,_0x1f5406(0x114))),!_0x4afecd&&(_0x4afecd=await readFile(swPath,_0x1f5406(0x114)));}return{'name':_0x1a44ee(0x11d),'configureServer'(_0x1e0399){var _0x22693d=_0x1a44ee;_0x1e0399['middlewares'][_0x22693d(0x109)](async(_0x35f4c2,_0x233d52,_0x15651d)=>{var _0x36465a=_0x22693d;if(_0x35f4c2[_0x36465a(0x125)]===RUNTIME_URL||_0x35f4c2['url']===SW_URL){await _0x10f824(),_0x233d52[_0x36465a(0x120)]('Content-Type','application/javascript'),_0x233d52[_0x36465a(0x119)](_0x35f4c2[_0x36465a(0x125)]===RUNTIME_URL?_0x24899c:_0x4afecd);return;}_0x15651d();});},'configurePreviewServer'(_0x31f80b){var _0x63c369=_0x1a44ee;_0x31f80b['middlewares'][_0x63c369(0x109)](async(_0x4326a,_0x4bee33,_0x4c3795)=>{var _0x30a785=_0x63c369;if(_0x4326a['url']===RUNTIME_URL||_0x4326a[_0x30a785(0x125)]===SW_URL){await _0x10f824(),_0x4bee33[_0x30a785(0x120)](_0x30a785(0x10e),'application/javascript'),_0x4bee33['end'](_0x4326a[_0x30a785(0x125)]===RUNTIME_URL?_0x24899c:_0x4afecd);return;}_0x4c3795();});},async 'generateBundle'(){var _0x936acc=_0x1a44ee;await _0x10f824(),this[_0x936acc(0x121)]({'type':_0x936acc(0x112),'fileName':_0x936acc(0x10a),'source':_0x24899c}),this[_0x936acc(0x121)]({'type':_0x936acc(0x112),'fileName':'sw-enhance.js','source':_0x4afecd});},'transformIndexHtml'(_0x558004){var _0x704b35=_0x1a44ee;const _0x12cf0a=buildInitScript(_0x3de534);return _0x558004[_0x704b35(0x11c)](/<head([^>]*)>/,_0x704b35(0x10d)+_0x12cf0a);}};};export{enhance};
|