@enhance-eng/sandbox 0.3.21-dev.fdfcd31 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const _0x1e8c3b=_0x435a;function _0x1bc6(){const _0x1eac51=['@enhance-eng/sandbox','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','readyState','enhance:configure','enableOverlayHmr','\x20Current\x20controller\x20after\x20ready:','http://','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20SW\x20ready!\x20Active:','__enhanceOptions','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','object','\x20Updating\x20overlay...','\x20Failed\x20to\x20import/create\x20overlay:','0.0.0','https://api.enhancelabs.ai','\x20enhancementId:\x20','some','N/A','\x20Starting\x20fresh\x20overlay\x20load...','\x20overlayController\x20exists:\x20','\x20Failed\x20to\x20unregister\x20service\x20worker:','__enhanceOverlay','init','message','645512XtuFHw','onToggle','\x20Service\x20workers\x20supported','enabled','0.3.21','178yXKrgI','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','public','string','options','now','hasEnhancement','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','25083WCgcpY','\x20Calling\x20createOverlay()...','enhance:disable','\x20Setting\x20up\x20remote\x20HMR...','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20loadOverlay()\x20failed:','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','\x20Document\x20readyState:\x20','https://assets-dev.enhancelabs.ai/overlay.js','^11.1.0','./dev/index.js','^24.10.1','module','\x20Sending\x20customer\x20config\x20to\x20SW:','scriptURL','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20No\x20current\x20controller','bun\x20version\x20patch\x20--no-git-tag-version','stringify','3378iRJGbU','2624NBAaLW','info','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20HMR\x20setup\x20complete','\x20Starting\x20overlay\x20load\x20(async)...','serviceWorker','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','^4.1.1','$RefreshReg$','396NIhnyt','\x20loadOverlay()\x20called','__development',',\x20currentOptions:\x20','\x20Unregistering\x20any\x20existing\x20SW...','function','vite:beforeUpdate','\x20ownsServiceWorker?\x20scriptURL=','controller','\x20detectBlocking\x20-\x20existing\x20registration:','\x20Current\x20controller:','/sw-enhance.js','enable','log','\x20doLoadOverlay()\x20starting...','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','[Enhance\x20Runtime]','\x20Failed\x20to\x20register\x20service\x20worker:','\x20URL\x20params\x20parsed:','startsWith',',\x20owns=','^3.22.4','\x20registerServiceWorker()\x20complete','\x20Normalized\x20options:','vite:error','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20BLOCKING\x20SW\x20detected:\x20','./dev/vite/index.d.ts','^7.2.4','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','serviceWorkerURL','active','warn','\x20unregisterServiceWorker()\x20called','undefined','ready','default','controlled','\x20resolveWorker:','enhancementUrl','waiting','\x20Overlay\x20update\x20complete','\x20Overlay\x20origin:\x20','unregister','get','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20overlayPath:\x20','version','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','7328wcOFzO','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','[data-enhance-runtime-bootstrap]','title','[Enhance\x20SW-Client]','enableViteHmr','injectIntoGlobalHook','595281fPxEGi','err','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','__viteHMRLoaded','__enhanceReactRefreshInstalledOrigins','security','\x20Vite\x20client\x20already\x20loaded\x20for\x20','getRegistration','429451ipjHwf','\x20No\x20window\x20object\x20-\x20skipping','createOverlay','\x20React\x20Refresh\x20already\x20installed\x20for\x20','callbackBypass','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','off','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','MIT','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Invalid\x20React\x20Refresh\x20runtime','searchParams','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','search','\x20Current\x20URL:\x20','error','\x20Found\x20registration:','$RefreshSig$','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','none','\x20No\x20blocking\x20SW\x20found','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','\x20Calling\x20updateOverlay()...','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','keys','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20enableViteHmr:\x20','querySelector','980Smkkkw','publishableKey','state','./dev/vite/index.js','trim','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','__enhanceController','includes','\x20Starting\x20SW\x20registration\x20(async)...','\x20Available\x20exports:','/assets/enhance-runtime.js','1351HytFSz','enhancementId','\x20Registration\x20returned:','toLowerCase','\x20detectBlocking\x20error:','enhance','origin','[Enhance\x20Config]\x20Build-time\x20defaults:','appError','\x20No\x20service\x20worker\x20active\x20to\x20configure','reload','https://enhance-api-dev.enhancelabs.workers.dev','false','explicitDisable','\x20Unregistering\x20SW...','permissive','^8.5.1','/@react-refresh','has','...','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','scope','swPath','\x20Config\x20sent\x20to\x20SW','href','overlay','overlayPath','bottom-right','register','__enhanceInitialized','./dev/index.d.ts','installing','1660SiEeZW','\x20Sending\x20customer\x20configuration...','location','./dev/cli.js','backendUrl','disable','\x20enhancementUrl:\x20'];_0x1bc6=function(){return _0x1eac51;};return _0x1bc6();}(function(_0x4c56c0,_0x5b1c0c){const _0x345e6b=_0x435a,_0x3b8307=_0x4c56c0();while(!![]){try{const _0x4e003b=parseInt(_0x345e6b(0xde))/0x1*(parseInt(_0x345e6b(0xfb))/0x2)+-parseInt(_0x345e6b(0x13c))/0x3+-parseInt(_0x345e6b(0x135))/0x4*(parseInt(_0x345e6b(0x162))/0x5)+parseInt(_0x345e6b(0xfa))/0x6*(-parseInt(_0x345e6b(0x16d))/0x7)+-parseInt(_0x345e6b(0xd9))/0x8+-parseInt(_0x345e6b(0xe7))/0x9*(parseInt(_0x345e6b(0x18d))/0xa)+-parseInt(_0x345e6b(0x144))/0xb*(-parseInt(_0x345e6b(0x104))/0xc);if(_0x4e003b===_0x5b1c0c)break;else _0x3b8307['push'](_0x3b8307['shift']());}catch(_0x3a4619){_0x3b8307['push'](_0x3b8307['shift']());}}}(_0x1bc6,0x4c450));var DEFAULT_OVERLAY_PATH=!![]?_0x1e8c3b(0xef):'https://assets.enhancelabs.ai/overlay.js',DEFAULT_BACKEND_URL=!![]?_0x1e8c3b(0x178):_0x1e8c3b(0x1a3),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x1e8c3b(0x111)](_0x1e8c3b(0x174),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x186d3e){const _0x44a43f=_0x1e8c3b;if(!_0x186d3e[_0x44a43f(0x163)])throw new Error(_0x44a43f(0x19e));const _0x50ba57=_0x186d3e[_0x44a43f(0x106)]??{};return{'publishableKey':_0x186d3e['publishableKey'],'callbackBypass':_0x186d3e[_0x44a43f(0x148)]??[],'overlay':{'enabled':!![],'position':_0x44a43f(0x188),'enableViteHmr':_0x50ba57[_0x44a43f(0x198)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x44a43f(0xfc),'swPath':'/sw-enhance.js','overlayPath':_0x50ba57[_0x44a43f(0x187)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x44a43f(0x16c),'security':_0x50ba57[_0x44a43f(0x141)]??_0x44a43f(0x17c),'backendUrl':_0x50ba57[_0x44a43f(0x191)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x4c3f4f=_0x1e8c3b;try{const _0x11bd3a=new URLSearchParams(window[_0x4c3f4f(0x18f)][_0x4c3f4f(0x152)]);return _0x11bd3a[_0x4c3f4f(0x130)]('enhancement')?.[_0x4c3f4f(0x166)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x4ab6ec){const _0x2f638e=_0x1e8c3b;console[_0x2f638e(0x111)](LOG_PREFIX+_0x2f638e(0x105)),console[_0x2f638e(0x111)](LOG_PREFIX+_0x2f638e(0x132)+_0x4ab6ec[_0x2f638e(0x187)]),console['log'](LOG_PREFIX+_0x2f638e(0x160)+_0x4ab6ec['enableViteHmr']),currentOptions=_0x4ab6ec[_0x2f638e(0xe3)],toggleHandler=_0x4ab6ec[_0x2f638e(0xda)];if(overlayController){console[_0x2f638e(0x111)](LOG_PREFIX+_0x2f638e(0x101)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x2f638e(0x111)](LOG_PREFIX+_0x2f638e(0xed)),overlayLoadPromise;console[_0x2f638e(0x111)](LOG_PREFIX+_0x2f638e(0x1a7)),overlayLoadPromise=doLoadOverlay(_0x4ab6ec);try{await overlayLoadPromise,console[_0x2f638e(0x111)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x11f762){console[_0x2f638e(0x154)](LOG_PREFIX+_0x2f638e(0xec),_0x11f762);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x294f35){const _0x1c2d55=_0x1e8c3b;console[_0x1c2d55(0x111)](LOG_PREFIX+_0x1c2d55(0x112));if(typeof window==='undefined'){console['log'](LOG_PREFIX+_0x1c2d55(0x145));return;}if(window[_0x1c2d55(0x1aa)]){console[_0x1c2d55(0x111)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window['__enhanceOverlay'];return;}console[_0x1c2d55(0x111)](LOG_PREFIX+_0x1c2d55(0x11d));try{_0x294f35[_0x1c2d55(0x13a)]&&(console['log'](LOG_PREFIX+_0x1c2d55(0xea)),await setupRemoteHMR(_0x294f35['overlayPath']));console[_0x1c2d55(0x111)](LOG_PREFIX+_0x1c2d55(0x14e)+_0x294f35[_0x1c2d55(0x187)]);const _0x4042ce=Date[_0x1c2d55(0xe4)](),_0x4d673c=await import(_0x294f35[_0x1c2d55(0x187)]);console[_0x1c2d55(0x111)](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date['now']()-_0x4042ce)+'ms'),console[_0x1c2d55(0x111)](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x1c2d55(0x15d)](_0x4d673c));if(typeof _0x4d673c?.[_0x1c2d55(0x146)]!==_0x1c2d55(0x109)){console[_0x1c2d55(0x154)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x1c2d55(0x154)](LOG_PREFIX+_0x1c2d55(0x16b),Object[_0x1c2d55(0x15d)](_0x4d673c));return;}console['log'](LOG_PREFIX+_0x1c2d55(0xe8));const _0x2ad447=_0x4d673c[_0x1c2d55(0x146)]();console[_0x1c2d55(0x111)](LOG_PREFIX+'\x20Controller\x20created:',_0x2ad447),overlayController=_0x2ad447,window[_0x1c2d55(0x1aa)]=_0x2ad447,_0x2ad447[_0x1c2d55(0xda)](_0x294f35[_0x1c2d55(0xda)]),console[_0x1c2d55(0x111)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x1c2d55(0x111)](LOG_PREFIX+_0x1c2d55(0x15b)),updateOverlay();}catch(_0x507323){console[_0x1c2d55(0x154)](LOG_PREFIX+_0x1c2d55(0x1a1),_0x507323);}}function updateOverlay(){const _0x12654a=_0x1e8c3b;console[_0x12654a(0x111)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x12654a(0x111)](LOG_PREFIX+_0x12654a(0x1a8)+!!overlayController),console['log'](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console[_0x12654a(0x111)](LOG_PREFIX+_0x12654a(0xe6));return;}const _0x3ad819=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x12654a(0xf9)](_0x3ad819,null,0x2)),overlayController['update'](_0x3ad819),console[_0x12654a(0x111)](LOG_PREFIX+_0x12654a(0x12d));}function composeOverlayState(_0x36e9b2){const _0x3a2499=_0x1e8c3b,_0x3a6641=getEnhancementId();return console[_0x3a2499(0x111)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x3a6641),console[_0x3a2499(0x111)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x3a2499(0xdc)]),console[_0x3a2499(0x111)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state['controlled']),{'enhancementId':_0x3a6641,'enabled':state[_0x3a2499(0xdc)],'controlled':state['controlled'],'overlayPosition':_0x36e9b2[_0x3a2499(0x186)]['position'],'securityMode':_0x36e9b2[_0x3a2499(0x141)],'backendBaseUrl':_0x36e9b2[_0x3a2499(0x191)],'appError':state[_0x3a2499(0x175)]};}async function setupRemoteHMR(_0x4f221f){const _0x89111=_0x1e8c3b;console[_0x89111(0x111)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x4f221f);if(typeof window===_0x89111(0x126))return;try{const _0x305e3e=new URL(_0x4f221f,window[_0x89111(0x18f)][_0x89111(0x173)]),_0x1d4f10=_0x305e3e[_0x89111(0x173)];console['log'](LOG_PREFIX+_0x89111(0x12e)+_0x1d4f10+',\x20page\x20origin:\x20'+window['location'][_0x89111(0x173)]);if(_0x1d4f10===window[_0x89111(0x18f)]['origin']){console[_0x89111(0x111)](LOG_PREFIX+_0x89111(0xf6));return;}console[_0x89111(0x111)](LOG_PREFIX+_0x89111(0x15c)),await ensureReactRefreshPreamble(_0x1d4f10),await ensureViteClient(_0x1d4f10),console['log'](LOG_PREFIX+_0x89111(0xfe));}catch(_0x231c52){console[_0x89111(0x124)](LOG_PREFIX+_0x89111(0x15a),_0x231c52);}}async function ensureReactRefreshPreamble(_0x41761f){const _0x19ae20=_0x1e8c3b;window[_0x19ae20(0x140)]??(window[_0x19ae20(0x140)]=new Set());if(window[_0x19ae20(0x140)][_0x19ae20(0x17f)](_0x41761f)){console[_0x19ae20(0x111)](LOG_PREFIX+_0x19ae20(0x147)+_0x41761f);return;}console['log'](LOG_PREFIX+_0x19ae20(0x14d)+_0x41761f+_0x19ae20(0x180));const _0x55cac0=await import(_0x41761f+_0x19ae20(0x17e)),_0x5c267e=_0x55cac0&&typeof _0x55cac0===_0x19ae20(0x19f)&&_0x19ae20(0x128)in _0x55cac0?_0x55cac0[_0x19ae20(0x128)]:_0x55cac0;if(!isRefreshRuntime(_0x5c267e)){console['warn'](LOG_PREFIX+_0x19ae20(0x14f));return;}_0x5c267e[_0x19ae20(0x13b)](window),window[_0x19ae20(0x103)]=()=>{},window[_0x19ae20(0x156)]=()=>_0x5516ac=>_0x5516ac,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x19ae20(0x140)]['add'](_0x41761f),console['log'](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x41761f);}async function ensureViteClient(_0x5d2545){const _0x26b2d9=_0x1e8c3b;window['__viteHMRLoaded']??(window['__viteHMRLoaded']=new Set());if(window[_0x26b2d9(0x13f)]['has'](_0x5d2545)){console['log'](LOG_PREFIX+_0x26b2d9(0x142)+_0x5d2545);return;}console[_0x26b2d9(0x111)](LOG_PREFIX+_0x26b2d9(0xeb)+_0x5d2545+_0x26b2d9(0x180)),await import(_0x5d2545+'/@vite/client'),window['__viteHMRLoaded']['add'](_0x5d2545),console[_0x26b2d9(0x111)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x5d2545);}function isRefreshRuntime(_0x5e585b){const _0x2dae8c=_0x1e8c3b;return typeof _0x5e585b===_0x2dae8c(0x19f)&&_0x5e585b!==null&&_0x2dae8c(0x13b)in _0x5e585b&&typeof _0x5e585b[_0x2dae8c(0x13b)]===_0x2dae8c(0x109);}var WORKER_MESSAGE_CONFIG=_0x1e8c3b(0x197),WORKER_MESSAGE_DISABLE=_0x1e8c3b(0xe9),LOG_PREFIX2=_0x1e8c3b(0x139),registration=null,currentOptions2=null;function _0x435a(_0x3ad9c4,_0x4e8c62){_0x3ad9c4=_0x3ad9c4-0xd8;const _0x1bc629=_0x1bc6();let _0x435ac1=_0x1bc629[_0x3ad9c4];return _0x435ac1;}async function registerServiceWorker(_0x46697a){const _0x5431c4=_0x1e8c3b;console[_0x5431c4(0x111)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console['log'](LOG_PREFIX2+'\x20swPath:\x20'+_0x46697a[_0x5431c4(0x183)]);if(!(_0x5431c4(0x100)in navigator)){console[_0x5431c4(0x124)](LOG_PREFIX2+_0x5431c4(0xdf));return;}console[_0x5431c4(0x111)](LOG_PREFIX2+_0x5431c4(0xdb));const _0x5a5d65=navigator[_0x5431c4(0x100)][_0x5431c4(0x10c)];console[_0x5431c4(0x111)](LOG_PREFIX2+_0x5431c4(0x10e),_0x5a5d65?.[_0x5431c4(0xf5)]??_0x5431c4(0x158)),console['log'](LOG_PREFIX2+'\x20Controller\x20state:',_0x5a5d65?.[_0x5431c4(0x164)]??_0x5431c4(0x1a6));const _0x1c3cec=!!_0x5a5d65;currentOptions2=_0x46697a,console[_0x5431c4(0x111)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x358a42=await detectBlockingServiceWorker(_0x46697a['swPath']);if(_0x358a42){console[_0x5431c4(0x154)](LOG_PREFIX2+_0x5431c4(0x11e)+_0x358a42),console[_0x5431c4(0x154)](LOG_PREFIX2+_0x5431c4(0x136));return;}console[_0x5431c4(0x111)](LOG_PREFIX2+_0x5431c4(0x159));try{console[_0x5431c4(0x111)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x46697a[_0x5431c4(0x183)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x5431c4(0x100)][_0x5431c4(0x189)](_0x46697a[_0x5431c4(0x183)],{'scope':'/'}),console[_0x5431c4(0x111)](LOG_PREFIX2+_0x5431c4(0x16f),{'scope':registration[_0x5431c4(0x182)],'active':registration['active']?.[_0x5431c4(0xf5)],'waiting':registration[_0x5431c4(0x12c)]?.[_0x5431c4(0xf5)],'installing':registration[_0x5431c4(0x18c)]?.[_0x5431c4(0xf5)]}),console[_0x5431c4(0x111)](LOG_PREFIX2+_0x5431c4(0x157));const _0x111f2a=await navigator[_0x5431c4(0x100)][_0x5431c4(0x127)];console[_0x5431c4(0x111)](LOG_PREFIX2+_0x5431c4(0x19c),_0x111f2a[_0x5431c4(0x123)]?.[_0x5431c4(0xf5)]);const _0x9e7768=ownsCurrentController(_0x46697a[_0x5431c4(0x183)]);state[_0x5431c4(0x129)]=_0x9e7768,console[_0x5431c4(0x111)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x9e7768),console[_0x5431c4(0x111)](LOG_PREFIX2+_0x5431c4(0x199),navigator[_0x5431c4(0x100)][_0x5431c4(0x10c)]?.[_0x5431c4(0xf5)]??_0x5431c4(0x158));if(!_0x1c3cec&&!navigator[_0x5431c4(0x100)][_0x5431c4(0x10c)]){console[_0x5431c4(0x111)](LOG_PREFIX2+_0x5431c4(0x121)),window[_0x5431c4(0x18f)][_0x5431c4(0x177)]();return;}console['log'](LOG_PREFIX2+_0x5431c4(0x18e)),await sendConfiguration();if(state[_0x5431c4(0xdc)]){const _0xfd49e1=document[_0x5431c4(0x161)](_0x5431c4(0x137))!==null;console[_0x5431c4(0x111)](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0xfd49e1);if(!_0xfd49e1){console['log'](LOG_PREFIX2+_0x5431c4(0x15e)),window['location'][_0x5431c4(0x177)]();return;}}console['log'](LOG_PREFIX2+_0x5431c4(0x1a0)),updateOverlay(),console[_0x5431c4(0x111)](LOG_PREFIX2+_0x5431c4(0x11a));}catch(_0x3dfc38){console[_0x5431c4(0x154)](LOG_PREFIX2+_0x5431c4(0x115),_0x3dfc38);}}async function sendConfiguration(){const _0x4915a7=_0x1e8c3b;console[_0x4915a7(0x111)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console['log'](LOG_PREFIX2+'\x20state.enabled:\x20'+state['enabled']+_0x4915a7(0x107)+!!currentOptions2);if(!state[_0x4915a7(0xdc)]||!currentOptions2){console[_0x4915a7(0x111)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x33ae20=await resolveWorker();if(!_0x33ae20){console[_0x4915a7(0x124)](LOG_PREFIX2+_0x4915a7(0x176));return;}const _0x9d2d23={'publishableKey':currentOptions2[_0x4915a7(0x163)],'callbackBypass':currentOptions2[_0x4915a7(0x148)],'securityMode':currentOptions2[_0x4915a7(0x141)]};console['log'](LOG_PREFIX2+_0x4915a7(0xf4),JSON[_0x4915a7(0xf9)](_0x9d2d23,null,0x2)),_0x33ae20['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x9d2d23}),console[_0x4915a7(0x111)](LOG_PREFIX2+_0x4915a7(0x184));}async function unregisterServiceWorker(_0x510213){const _0x4999fd=_0x1e8c3b;console[_0x4999fd(0x111)](LOG_PREFIX2+_0x4999fd(0x125));if(!('serviceWorker'in navigator)){console[_0x4999fd(0x111)](LOG_PREFIX2+_0x4999fd(0x134));return;}try{const _0x49bf45=registration??await navigator[_0x4999fd(0x100)][_0x4999fd(0x143)]('/');if(!_0x49bf45){console[_0x4999fd(0x111)](LOG_PREFIX2+_0x4999fd(0x15f));return;}console[_0x4999fd(0x111)](LOG_PREFIX2+_0x4999fd(0x155),{'scope':_0x49bf45[_0x4999fd(0x182)],'active':_0x49bf45[_0x4999fd(0x123)]?.[_0x4999fd(0xf5)],'waiting':_0x49bf45[_0x4999fd(0x12c)]?.[_0x4999fd(0xf5)],'installing':_0x49bf45['installing']?.['scriptURL']});const _0xb218ef=[_0x49bf45[_0x4999fd(0x123)]?.[_0x4999fd(0xf5)],_0x49bf45[_0x4999fd(0x12c)]?.[_0x4999fd(0xf5)],_0x49bf45[_0x4999fd(0x18c)]?.[_0x4999fd(0xf5)]],_0x26b788=_0xb218ef[_0x4999fd(0x1a5)](_0x207a17=>_0x207a17&&ownsServiceWorker(_0x207a17,_0x510213));if(!_0x26b788){console[_0x4999fd(0x111)](LOG_PREFIX2+_0x4999fd(0x195));return;}_0x49bf45['active']&&(console['log'](LOG_PREFIX2+_0x4999fd(0x181)),_0x49bf45[_0x4999fd(0x123)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console[_0x4999fd(0x111)](LOG_PREFIX2+_0x4999fd(0x17b)),await _0x49bf45[_0x4999fd(0x12f)](),registration=null,currentOptions2=null,console[_0x4999fd(0x111)](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x3330d3){console[_0x4999fd(0x154)](LOG_PREFIX2+_0x4999fd(0x1a9),_0x3330d3);}}function ownsServiceWorker(_0x102671,_0xa3e842){const _0x445bec=_0x1e8c3b,_0x1dc9b9=typeof window!==_0x445bec(0x126)?window[_0x445bec(0x18f)][_0x445bec(0x173)]:'',_0x13a2e7=new URL(_0xa3e842,_0x1dc9b9||void 0x0)[_0x445bec(0x185)],_0x552d04=_0x102671===_0x13a2e7||_0x102671[_0x445bec(0x169)]('sw-enhance');return console[_0x445bec(0x111)](LOG_PREFIX2+_0x445bec(0x10b)+_0x102671+',\x20expected='+_0x13a2e7+_0x445bec(0x118)+_0x552d04),_0x552d04;}function ownsCurrentController(_0x22e1a6){const _0x4b9107=_0x1e8c3b;if(typeof navigator===_0x4b9107(0x126))return![];const _0x3a0f3a=navigator[_0x4b9107(0x100)]?.['controller'];if(!_0x3a0f3a)return console[_0x4b9107(0x111)](LOG_PREFIX2+_0x4b9107(0xf7)),![];return ownsServiceWorker(_0x3a0f3a[_0x4b9107(0xf5)],_0x22e1a6);}async function detectBlockingServiceWorker(_0x58e4b1){const _0x2e3e15=_0x1e8c3b;if(!navigator[_0x2e3e15(0x100)])return null;try{const _0x4f3c62=await navigator[_0x2e3e15(0x100)][_0x2e3e15(0x143)]('/');console[_0x2e3e15(0x111)](LOG_PREFIX2+_0x2e3e15(0x10d),_0x4f3c62?.['active']?.['scriptURL']??_0x2e3e15(0x158));const _0x44a8d2=_0x4f3c62?.[_0x2e3e15(0x123)]?.['scriptURL'];if(!_0x44a8d2)return null;if(ownsServiceWorker(_0x44a8d2,_0x58e4b1))return null;return _0x44a8d2;}catch(_0x1f3b16){return console[_0x2e3e15(0x154)](LOG_PREFIX2+_0x2e3e15(0x171),_0x1f3b16),null;}}async function resolveWorker(){const _0x20732d=_0x1e8c3b,_0x4156e7=registration??await navigator[_0x20732d(0x100)]?.[_0x20732d(0x143)]('/'),_0x3714d2=_0x4156e7?.[_0x20732d(0x123)]??_0x4156e7?.[_0x20732d(0x12c)]??_0x4156e7?.[_0x20732d(0x18c)]??null;return console[_0x20732d(0x111)](LOG_PREFIX2+_0x20732d(0x12a),_0x3714d2?.[_0x20732d(0xf5)]??_0x20732d(0x158),'state:\x20'+(_0x3714d2?.[_0x20732d(0x164)]??'N/A')),_0x3714d2;}var LOG_PREFIX3=_0x1e8c3b(0x114);function isInitialized(){const _0x4e633b=_0x1e8c3b;return typeof window!=='undefined'&&window[_0x4e633b(0x18a)]===!![];}function setInitialized(_0x5046cb){const _0x4f1494=_0x1e8c3b;typeof window!=='undefined'&&(window[_0x4f1494(0x18a)]=_0x5046cb);}function getOptions(){const _0x1c5af7=_0x1e8c3b;return typeof window!=='undefined'?window[_0x1c5af7(0x19d)]??null:null;}function setOptions(_0x43e3bf){const _0xd3e4d7=_0x1e8c3b;typeof window!==_0xd3e4d7(0x126)&&(window[_0xd3e4d7(0x19d)]=_0x43e3bf);}var Enhance={'init'(_0x5e1cc2){const _0x197b63=_0x1e8c3b,_0x222849=Date[_0x197b63(0xe4)]();console[_0x197b63(0x111)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x222849),console[_0x197b63(0x111)](LOG_PREFIX3+_0x197b63(0x153)+window[_0x197b63(0x18f)][_0x197b63(0x185)]),console['log'](LOG_PREFIX3+_0x197b63(0xee)+document[_0x197b63(0x196)]),console[_0x197b63(0x111)](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x197b63(0xf9)](_0x5e1cc2,null,0x2));if(isInitialized())return console[_0x197b63(0x124)](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window[_0x197b63(0x168)]??createController();setInitialized(!![]),console[_0x197b63(0x111)](LOG_PREFIX3+'\x20First\x20initialization');const _0x1ffec3=normalizeOptions(_0x5e1cc2);setOptions(_0x1ffec3),console[_0x197b63(0x111)](LOG_PREFIX3+_0x197b63(0x11b),JSON[_0x197b63(0xf9)](_0x1ffec3,null,0x2));const _0x17414c=parseUrlParams();console['log'](LOG_PREFIX3+_0x197b63(0x116),JSON[_0x197b63(0xf9)](_0x17414c,null,0x2));if(_0x17414c[_0x197b63(0x17a)])return cleanUrlParam(_0x197b63(0x172)),console['log'](LOG_PREFIX3+_0x197b63(0x19b)),createController();if(_0x17414c[_0x197b63(0xe5)])return console['log'](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console['log'](LOG_PREFIX3+_0x197b63(0x193)+_0x17414c[_0x197b63(0x12b)]),console[_0x197b63(0x111)](LOG_PREFIX3+_0x197b63(0x1a4)+_0x17414c[_0x197b63(0x16e)]),state[_0x197b63(0xdc)]=!![],console[_0x197b63(0x111)](LOG_PREFIX3+_0x197b63(0xff)),void loadOverlay({'overlayPath':_0x1ffec3[_0x197b63(0x187)],'enableViteHmr':_0x1ffec3[_0x197b63(0x186)]['enableViteHmr'],'options':_0x1ffec3,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+_0x197b63(0x16a)),void registerServiceWorker(_0x1ffec3),console[_0x197b63(0x111)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x197b63(0x111)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x197b63(0x111)](LOG_PREFIX3+_0x197b63(0x108)),void unregisterServiceWorker(_0x1ffec3[_0x197b63(0x183)]),console[_0x197b63(0x111)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console[_0x197b63(0x111)](LOG_PREFIX3+_0x197b63(0x149)),import.meta.hot['on'](_0x197b63(0x11c),_0x14bb12=>{const _0x338b49=_0x197b63;console['log'](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x14bb12),state[_0x338b49(0x175)]={'message':_0x14bb12[_0x338b49(0x13d)][_0x338b49(0xd8)]},updateOverlay();}),import.meta.hot['on'](_0x197b63(0x10a),()=>{const _0x168eeb=_0x197b63;state['appError']&&(console[_0x168eeb(0x111)](LOG_PREFIX3+_0x168eeb(0xfd)),state[_0x168eeb(0x175)]=null,updateOverlay());})),createController();}};function createController(){const _0x1aec94=_0x1e8c3b,_0x268879={'enable'(){const _0x2f66a5=_0x435a,_0x34a961=getOptions();if(!_0x34a961)return;state[_0x2f66a5(0xdc)]=!![],void loadOverlay({'overlayPath':_0x34a961[_0x2f66a5(0x187)],'enableViteHmr':_0x34a961[_0x2f66a5(0x186)][_0x2f66a5(0x13a)],'options':_0x34a961,'onToggle':handleToggle}),void registerServiceWorker(_0x34a961),void sendConfiguration(),updateOverlay();},'disable'(){const _0x58687a=_0x435a,_0x122d86=getOptions();if(!_0x122d86)return;state['enabled']=![],state[_0x58687a(0x129)]=![],updateOverlay(),void unregisterServiceWorker(_0x122d86[_0x58687a(0x183)]);},'status'(){const _0x1ae02f=_0x435a;return{'enabled':state['enabled'],'controlled':state[_0x1ae02f(0x129)]};}};return typeof window!==_0x1aec94(0x126)&&(window[_0x1aec94(0x168)]=_0x268879),_0x268879;}function handleToggle(){const _0x41b9d8=_0x1e8c3b,_0x1cd8d0=createController();state[_0x41b9d8(0xdc)]?_0x1cd8d0[_0x41b9d8(0x192)]():_0x1cd8d0[_0x41b9d8(0x110)]();}function parseUrlParams(){const _0x3d9d76=_0x1e8c3b,_0x2575b1=new URL(window[_0x3d9d76(0x18f)][_0x3d9d76(0x185)]),_0x4b7a42=_0x2575b1['searchParams'][_0x3d9d76(0x130)](_0x3d9d76(0x172))?.[_0x3d9d76(0x170)](),_0x1aceeb=_0x2575b1[_0x3d9d76(0x150)][_0x3d9d76(0x130)](_0x3d9d76(0x12b)),_0x5c6ed3=_0x2575b1[_0x3d9d76(0x150)][_0x3d9d76(0x130)]('enhancement');return{'hasEnhancement':Boolean(_0x1aceeb||_0x5c6ed3),'explicitDisable':_0x4b7a42==='0'||_0x4b7a42===_0x3d9d76(0x179)||_0x4b7a42===_0x3d9d76(0x14a),'enhancementUrl':_0x1aceeb,'enhancementId':_0x5c6ed3};}function cleanUrlParam(_0x4a7633){const _0x122e72=_0x1e8c3b,_0x12a4a1=new URL(window['location'][_0x122e72(0x185)]);_0x12a4a1[_0x122e72(0x150)][_0x122e72(0x17f)](_0x4a7633)&&(_0x12a4a1[_0x122e72(0x150)]['delete'](_0x4a7633),window['history']['replaceState'](null,document[_0x122e72(0x138)],_0x12a4a1['toString']()));}var package_default={'name':_0x1e8c3b(0x194),'version':_0x1e8c3b(0xdd),'type':_0x1e8c3b(0xf3),'description':_0x1e8c3b(0x113),'license':_0x1e8c3b(0x14c),'main':'./dev/index.js','module':'./dev/index.js','types':_0x1e8c3b(0x18b),'exports':{'.':{'types':_0x1e8c3b(0x18b),'import':_0x1e8c3b(0xf1)},'./vite':{'types':_0x1e8c3b(0x11f),'import':_0x1e8c3b(0x165)}},'files':['dev/'],'bin':{'enhance-sandbox':_0x1e8c3b(0x190)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x1e8c3b(0x131),'dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x1e8c3b(0xe0),'dev:staging:build':_0x1e8c3b(0x13e),'build':_0x1e8c3b(0x167),'build:release':_0x1e8c3b(0x151),'build:release:dev':_0x1e8c3b(0x14b),'version':_0x1e8c3b(0xf8)},'dependencies':{'commander':_0x1e8c3b(0xf0),'zod':_0x1e8c3b(0x119)},'devDependencies':{'@types/node':_0x1e8c3b(0xf2),'javascript-obfuscator':_0x1e8c3b(0x102),'tsup':_0x1e8c3b(0x17d),'vite':_0x1e8c3b(0x120)},'publishConfig':{'access':_0x1e8c3b(0xe1)}},DEFAULT_SERVICE_WORKER_PATH=_0x1e8c3b(0x10f),DEFAULT_RUNTIME_PATH=_0x1e8c3b(0x16c),PACKAGE_VERSION=typeof package_default[_0x1e8c3b(0x133)]===_0x1e8c3b(0xe2)?package_default[_0x1e8c3b(0x133)]:_0x1e8c3b(0x1a2);function normalizeAssetPath(_0x430bb4){const _0x3a7ee1=_0x1e8c3b;if(!_0x430bb4)return _0x430bb4;if(_0x430bb4['startsWith'](_0x3a7ee1(0x19a))||_0x430bb4[_0x3a7ee1(0x117)]('https://'))return _0x430bb4;const _0x3125fb=_0x430bb4['replace'](/^\.\//,'');return _0x3125fb[_0x3a7ee1(0x117)]('/')?_0x3125fb:'/'+_0x3125fb;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x2522c2){const _0x24360f=_0x1e8c3b;return Enhance[_0x24360f(0x1ab)](_0x2522c2);},'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 _0xaecaa3=_0x1e8c3b;return Enhance2[_0xaecaa3(0x122)]();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
1
+ const _0x1a08ee=_0x7918;(function(_0x19ca46,_0x408113){const _0x5d913c=_0x7918,_0x26030f=_0x19ca46();while(!![]){try{const _0x33f68e=parseInt(_0x5d913c(0x201))/0x1+parseInt(_0x5d913c(0x26e))/0x2*(-parseInt(_0x5d913c(0x249))/0x3)+parseInt(_0x5d913c(0x1e2))/0x4+-parseInt(_0x5d913c(0x215))/0x5*(parseInt(_0x5d913c(0x1cd))/0x6)+-parseInt(_0x5d913c(0x25d))/0x7+-parseInt(_0x5d913c(0x27e))/0x8*(parseInt(_0x5d913c(0x1e6))/0x9)+parseInt(_0x5d913c(0x239))/0xa;if(_0x33f68e===_0x408113)break;else _0x26030f['push'](_0x26030f['shift']());}catch(_0x4a31fe){_0x26030f['push'](_0x26030f['shift']());}}}(_0x12ac,0x73b8b));var DEFAULT_OVERLAY_PATH=!![]?'https://assets.enhancelabs.ai/overlay.js':'https://assets.enhancelabs.ai/overlay.js',DEFAULT_BACKEND_URL=!![]?_0x1a08ee(0x1ae):_0x1a08ee(0x1ae),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x1a08ee(0x1d3)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x3c1f1a){const _0x2271c8=_0x1a08ee;if(!_0x3c1f1a[_0x2271c8(0x279)])throw new Error(_0x2271c8(0x1cb));const _0x5657f3=_0x3c1f1a[_0x2271c8(0x1ac)]??{};return{'publishableKey':_0x3c1f1a[_0x2271c8(0x279)],'callbackBypass':_0x3c1f1a[_0x2271c8(0x1be)]??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x5657f3['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0x2271c8(0x26d),'swPath':_0x2271c8(0x1fe),'overlayPath':_0x5657f3[_0x2271c8(0x27f)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x2271c8(0x256),'security':_0x5657f3[_0x2271c8(0x220)]??_0x2271c8(0x22e),'backendUrl':_0x5657f3[_0x2271c8(0x206)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x58fc6e=_0x1a08ee;try{const _0x3f02b5=new URLSearchParams(window[_0x58fc6e(0x26c)]['search']);return _0x3f02b5[_0x58fc6e(0x25a)](_0x58fc6e(0x217))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x1a08ee(0x236),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x3fa7a7){const _0x3c7771=_0x1a08ee;console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x233)),console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x1f7)+_0x3fa7a7[_0x3c7771(0x27f)]),console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x20b)+_0x3fa7a7[_0x3c7771(0x1bf)]),currentOptions=_0x3fa7a7[_0x3c7771(0x1d9)],toggleHandler=_0x3fa7a7[_0x3c7771(0x202)];if(overlayController){console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x221)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x22d)),overlayLoadPromise;console['log'](LOG_PREFIX+_0x3c7771(0x25b)),overlayLoadPromise=doLoadOverlay(_0x3fa7a7);try{await overlayLoadPromise,console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x210));}catch(_0x103a40){console[_0x3c7771(0x1e4)](LOG_PREFIX+_0x3c7771(0x261),_0x103a40);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x36f647){const _0x557504=_0x1a08ee;console[_0x557504(0x1d3)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x557504(0x241)){console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x22c));return;}if(window['__enhanceOverlay']){console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x23f)),overlayController=window[_0x557504(0x1b9)];return;}console[_0x557504(0x1d3)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x36f647[_0x557504(0x1bf)]&&(console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x262)),await setupRemoteHMR(_0x36f647['overlayPath']));console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x1fa)+_0x36f647['overlayPath']);const _0x429660=Date[_0x557504(0x237)](),_0x3ee60e=await import(_0x36f647[_0x557504(0x27f)]);console['log'](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x557504(0x237)]()-_0x429660)+'ms'),console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x274),Object[_0x557504(0x1c4)](_0x3ee60e));if(typeof _0x3ee60e?.[_0x557504(0x1e0)]!==_0x557504(0x1d0)){console['error'](LOG_PREFIX+_0x557504(0x20d)),console[_0x557504(0x1e4)](LOG_PREFIX+_0x557504(0x269),Object[_0x557504(0x1c4)](_0x3ee60e));return;}console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x1d7));const _0x293147=_0x3ee60e[_0x557504(0x1e0)]();console['log'](LOG_PREFIX+_0x557504(0x1c7),_0x293147),overlayController=_0x293147,window['__enhanceOverlay']=_0x293147,_0x293147['onToggle'](_0x36f647['onToggle']),console['log'](LOG_PREFIX+_0x557504(0x247)),console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x253)),updateOverlay();}catch(_0x1afdd9){console['error'](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x1afdd9);}}function updateOverlay(){const _0xdf3863=_0x1a08ee;console[_0xdf3863(0x1d3)](LOG_PREFIX+_0xdf3863(0x1bb)),console[_0xdf3863(0x1d3)](LOG_PREFIX+_0xdf3863(0x211)+!!overlayController),console[_0xdf3863(0x1d3)](LOG_PREFIX+_0xdf3863(0x1ee)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0xdf3863(0x273));return;}const _0x5966f=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0xdf3863(0x21b),JSON['stringify'](_0x5966f,null,0x2)),overlayController[_0xdf3863(0x25f)](_0x5966f),console['log'](LOG_PREFIX+_0xdf3863(0x21d));}function _0x12ac(){const _0x398394=['\x20Unregistering\x20SW...','\x20overlayPath:\x20','public','controlled','\x20Importing\x20overlay\x20module\x20from:\x20','\x20detectBlocking\x20-\x20existing\x20registration:',',\x20page\x20origin:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','/sw-enhance.js','\x20No\x20service\x20worker\x20active\x20to\x20configure','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','702363WyVUMQ','onToggle','explicitDisable','scriptURL','enhance:disable','backendUrl','object','\x20Updating\x20overlay...','controller','enhancementUrl','\x20enableViteHmr:\x20','\x20with\x20scope\x20\x27/\x27...','\x20Module\x20missing\x20createOverlay\x20export!','\x20registerServiceWorker()\x20complete','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20loadOverlay()\x20complete','\x20overlayController\x20exists:\x20','./dev/cli.js','\x20Registration\x20returned:','scope','25MxBbjI','\x20enhancementId:\x20','enhancement','enhance','version','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20Updating\x20overlay\x20with\x20state:','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20Overlay\x20update\x20complete','^24.10.1','add','security','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','err','off','\x20enhancementUrl:\x20','\x20Checking\x20for\x20blocking\x20service\x20worker...','./dev/vite/index.d.ts','\x20Starting\x20overlay\x20load\x20(async)...','runtimeURL','origin','delete','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20No\x20window\x20object\x20-\x20skipping','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','permissive','\x20composeOverlayState\x20-\x20enhancementId:\x20','history','vite:error','ready','\x20loadOverlay()\x20called','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Enhancement\x20detection:\x20wasEnhanced=','[Enhance\x20Overlay]','now','$RefreshReg$','7317080GqRKgH','\x20Registering\x20SW\x20at\x20','\x20Enhancement\x20mode\x20ENABLED','\x20Config\x20sent\x20to\x20SW','\x20React\x20Refresh\x20already\x20installed\x20for\x20','__enhanceInitialized','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','undefined','position','overlay','\x20Raw\x20options:','\x20Controller\x20state:','getRegistration','\x20Overlay\x20controller\x20initialized\x20and\x20cached','vite:beforeUpdate','19257daCOUj','injectIntoGlobalHook','postMessage','\x20Document\x20readyState:\x20','MIT','\x20Overlay\x20origin:\x20','title','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20',',\x20expected=','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Calling\x20updateOverlay()...','\x20Failed\x20to\x20register\x20service\x20worker:','startsWith','/assets/enhance-runtime.js','$RefreshSig$','^11.1.0','init','get','\x20Starting\x20fresh\x20overlay\x20load...','...','1948625NfVsPY','swPath','update','\x20No\x20blocking\x20SW\x20found','\x20loadOverlay()\x20failed:','\x20Setting\x20up\x20remote\x20HMR...','replace','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Invalid\x20React\x20Refresh\x20runtime','includes','^3.22.4','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Available\x20exports:','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20resolveWorker:','location','info','30GbxkpE','\x20First\x20initialization','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20detectBlocking\x20error:','^8.5.1','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Module\x20exports:','0.3.21','toLowerCase','warn','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','publishableKey','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20HMR\x20setup\x20complete','searchParams','__vite_plugin_react_preamble_installed__','231848bszEkd','overlayPath','__development','\x20Failed\x20to\x20unregister\x20service\x20worker:','https://api.enhancelabs.ai','disable','href','N/A','\x20init()\x20called\x20at\x20','./dev/index.d.ts','enhance:configure','bun\x20version\x20patch\x20--no-git-tag-version','waiting','register','serviceWorker','__enhanceOverlay','\x20SW\x20unregistered\x20successfully','\x20updateOverlay()\x20called','\x20Found\x20registration:','__enhanceReactRefreshInstalledOrigins','callbackBypass','enableViteHmr','[Enhance\x20Runtime]','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','appError','state:\x20','keys','enabled','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20Controller\x20created:','\x20unregisterServiceWorker()\x20called','\x20Starting\x20SW\x20registration\x20(async)...','hasEnhancement','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','956874pUTDcV','replaceState','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','function','\x20Unregistering\x20any\x20existing\x20SW...','\x20registerServiceWorker()\x20called','log','has','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','/@react-refresh','\x20Calling\x20createOverlay()...','active','options','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','./dev/index.js','@enhance-eng/sandbox','some','^7.2.4','installing','createOverlay','\x20Current\x20controller\x20after\x20ready:','2123080VfTbaf','stringify','error','\x20Vite\x20client\x20already\x20loaded\x20for\x20','99dyfFVZ','reload','__viteHMRLoaded','\x20Sending\x20customer\x20configuration...','__enhanceController','tsc\x20--noEmit','http://','state','\x20currentOptions\x20exists:\x20',',\x20currentOptions:\x20','enhancementId','readyState','__enhanceOptions','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20ownsServiceWorker?\x20scriptURL=','none'];_0x12ac=function(){return _0x398394;};return _0x12ac();}function composeOverlayState(_0x4c0663){const _0x4ebe5d=_0x1a08ee,_0x35cfe7=getEnhancementId();return console[_0x4ebe5d(0x1d3)](LOG_PREFIX+_0x4ebe5d(0x22f)+_0x35cfe7),console[_0x4ebe5d(0x1d3)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x4ebe5d(0x1c5)]),console[_0x4ebe5d(0x1d3)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x4ebe5d(0x1f9)]),{'enhancementId':_0x35cfe7,'enabled':state[_0x4ebe5d(0x1c5)],'controlled':state[_0x4ebe5d(0x1f9)],'overlayPosition':_0x4c0663[_0x4ebe5d(0x243)][_0x4ebe5d(0x242)],'securityMode':_0x4c0663['security'],'backendBaseUrl':_0x4c0663[_0x4ebe5d(0x206)],'appError':state[_0x4ebe5d(0x1c2)]};}async function setupRemoteHMR(_0x38a228){const _0x5b2006=_0x1a08ee;console[_0x5b2006(0x1d3)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x38a228);if(typeof window===_0x5b2006(0x241))return;try{const _0x1e34ec=new URL(_0x38a228,window[_0x5b2006(0x26c)][_0x5b2006(0x229)]),_0xf12f=_0x1e34ec[_0x5b2006(0x229)];console['log'](LOG_PREFIX+_0x5b2006(0x24e)+_0xf12f+_0x5b2006(0x1fc)+window[_0x5b2006(0x26c)][_0x5b2006(0x229)]);if(_0xf12f===window[_0x5b2006(0x26c)][_0x5b2006(0x229)]){console['log'](LOG_PREFIX+_0x5b2006(0x252));return;}console[_0x5b2006(0x1d3)](LOG_PREFIX+_0x5b2006(0x264)),await ensureReactRefreshPreamble(_0xf12f),await ensureViteClient(_0xf12f),console[_0x5b2006(0x1d3)](LOG_PREFIX+_0x5b2006(0x27b));}catch(_0x3e86a7){console['warn'](LOG_PREFIX+_0x5b2006(0x1cf),_0x3e86a7);}}async function ensureReactRefreshPreamble(_0x33e299){const _0x273161=_0x1a08ee;window[_0x273161(0x1bd)]??(window['__enhanceReactRefreshInstalledOrigins']=new Set());if(window[_0x273161(0x1bd)][_0x273161(0x1d4)](_0x33e299)){console['log'](LOG_PREFIX+_0x273161(0x23d)+_0x33e299);return;}console['log'](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x33e299+_0x273161(0x25c));const _0xa3a59c=await import(_0x33e299+_0x273161(0x1d6)),_0x174697=_0xa3a59c&&typeof _0xa3a59c===_0x273161(0x207)&&'default'in _0xa3a59c?_0xa3a59c['default']:_0xa3a59c;if(!isRefreshRuntime(_0x174697)){console[_0x273161(0x277)](LOG_PREFIX+_0x273161(0x265));return;}_0x174697[_0x273161(0x24a)](window),window[_0x273161(0x238)]=()=>{},window[_0x273161(0x257)]=()=>_0x4930da=>_0x4930da,window[_0x273161(0x27d)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x273161(0x21f)](_0x33e299),console[_0x273161(0x1d3)](LOG_PREFIX+_0x273161(0x1da)+_0x33e299);}async function ensureViteClient(_0x531dcc){const _0xccee2b=_0x1a08ee;window[_0xccee2b(0x1e8)]??(window['__viteHMRLoaded']=new Set());if(window[_0xccee2b(0x1e8)][_0xccee2b(0x1d4)](_0x531dcc)){console[_0xccee2b(0x1d3)](LOG_PREFIX+_0xccee2b(0x1e5)+_0x531dcc);return;}console['log'](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x531dcc+'...'),await import(_0x531dcc+'/@vite/client'),window[_0xccee2b(0x1e8)][_0xccee2b(0x21f)](_0x531dcc),console[_0xccee2b(0x1d3)](LOG_PREFIX+_0xccee2b(0x250)+_0x531dcc);}function isRefreshRuntime(_0xe4d28e){const _0x5de84e=_0x1a08ee;return typeof _0xe4d28e===_0x5de84e(0x207)&&_0xe4d28e!==null&&'injectIntoGlobalHook'in _0xe4d28e&&typeof _0xe4d28e[_0x5de84e(0x24a)]===_0x5de84e(0x1d0);}var WORKER_MESSAGE_CONFIG=_0x1a08ee(0x1b4),WORKER_MESSAGE_DISABLE=_0x1a08ee(0x205),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x583650){const _0x2b2e53=_0x1a08ee;console['log'](LOG_PREFIX2+_0x2b2e53(0x1d2)),console[_0x2b2e53(0x1d3)](LOG_PREFIX2+'\x20swPath:\x20'+_0x583650['swPath']);if(!(_0x2b2e53(0x1b8)in navigator)){console[_0x2b2e53(0x277)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x2b2e53(0x1d3)](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x42db9b=navigator[_0x2b2e53(0x1b8)][_0x2b2e53(0x209)];console[_0x2b2e53(0x1d3)](LOG_PREFIX2+'\x20Current\x20controller:',_0x42db9b?.[_0x2b2e53(0x204)]??_0x2b2e53(0x1f5)),console['log'](LOG_PREFIX2+_0x2b2e53(0x245),_0x42db9b?.[_0x2b2e53(0x1ed)]??'N/A');const _0x1836cd=!!_0x42db9b;currentOptions2=_0x583650,console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x225));const _0x1f978a=await detectBlockingServiceWorker(_0x583650[_0x2b2e53(0x25e)]);if(_0x1f978a){console[_0x2b2e53(0x1e4)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x1f978a),console['error'](LOG_PREFIX2+_0x2b2e53(0x27a));return;}console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x260));try{console['log'](LOG_PREFIX2+_0x2b2e53(0x23a)+_0x583650[_0x2b2e53(0x25e)]+_0x2b2e53(0x20c)),registration=await navigator[_0x2b2e53(0x1b8)][_0x2b2e53(0x1b7)](_0x583650[_0x2b2e53(0x25e)],{'scope':'/'}),console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x213),{'scope':registration[_0x2b2e53(0x214)],'active':registration['active']?.[_0x2b2e53(0x204)],'waiting':registration['waiting']?.[_0x2b2e53(0x204)],'installing':registration[_0x2b2e53(0x1df)]?.[_0x2b2e53(0x204)]}),console['log'](LOG_PREFIX2+_0x2b2e53(0x20f));const _0x52b6cc=await navigator[_0x2b2e53(0x1b8)][_0x2b2e53(0x232)];console['log'](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x52b6cc['active']?.['scriptURL']);const _0x306a51=ownsCurrentController(_0x583650[_0x2b2e53(0x25e)]);state[_0x2b2e53(0x1f9)]=_0x306a51,console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x1d5)+_0x306a51),console['log'](LOG_PREFIX2+_0x2b2e53(0x1e1),navigator['serviceWorker'][_0x2b2e53(0x209)]?.[_0x2b2e53(0x204)]??_0x2b2e53(0x1f5));if(!_0x1836cd&&!navigator[_0x2b2e53(0x1b8)][_0x2b2e53(0x209)]){console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x240)),window[_0x2b2e53(0x26c)][_0x2b2e53(0x1e7)]();return;}console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x1e9)),await sendConfiguration();if(state[_0x2b2e53(0x1c5)]){const _0x430a32=document['querySelector']('[data-enhance-runtime-bootstrap]')!==null;console['log'](LOG_PREFIX2+_0x2b2e53(0x235)+_0x430a32);if(!_0x430a32){console[_0x2b2e53(0x1d3)](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0x2b2e53(0x26c)][_0x2b2e53(0x1e7)]();return;}}console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x208)),updateOverlay(),console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x20e));}catch(_0x42db88){console[_0x2b2e53(0x1e4)](LOG_PREFIX2+_0x2b2e53(0x254),_0x42db88);}}async function sendConfiguration(){const _0x43b1f2=_0x1a08ee;console['log'](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0x43b1f2(0x1d3)](LOG_PREFIX2+'\x20state.enabled:\x20'+state[_0x43b1f2(0x1c5)]+_0x43b1f2(0x1ef)+!!currentOptions2);if(!state[_0x43b1f2(0x1c5)]||!currentOptions2){console['log'](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x538387=await resolveWorker();if(!_0x538387){console['warn'](LOG_PREFIX2+_0x43b1f2(0x1ff));return;}const _0x5b78b3={'publishableKey':currentOptions2[_0x43b1f2(0x279)],'callbackBypass':currentOptions2[_0x43b1f2(0x1be)],'securityMode':currentOptions2[_0x43b1f2(0x220)]};console[_0x43b1f2(0x1d3)](LOG_PREFIX2+_0x43b1f2(0x234),JSON[_0x43b1f2(0x1e3)](_0x5b78b3,null,0x2)),_0x538387[_0x43b1f2(0x24b)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x5b78b3}),console[_0x43b1f2(0x1d3)](LOG_PREFIX2+_0x43b1f2(0x23c));}async function unregisterServiceWorker(_0x17cdfb){const _0x336a6b=_0x1a08ee;console[_0x336a6b(0x1d3)](LOG_PREFIX2+_0x336a6b(0x1c8));if(!(_0x336a6b(0x1b8)in navigator)){console[_0x336a6b(0x1d3)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}try{const _0x3cf912=registration??await navigator[_0x336a6b(0x1b8)]['getRegistration']('/');if(!_0x3cf912){console[_0x336a6b(0x1d3)](LOG_PREFIX2+_0x336a6b(0x268));return;}console['log'](LOG_PREFIX2+_0x336a6b(0x1bc),{'scope':_0x3cf912[_0x336a6b(0x214)],'active':_0x3cf912[_0x336a6b(0x1d8)]?.[_0x336a6b(0x204)],'waiting':_0x3cf912[_0x336a6b(0x1b6)]?.[_0x336a6b(0x204)],'installing':_0x3cf912[_0x336a6b(0x1df)]?.[_0x336a6b(0x204)]});const _0x1faa48=[_0x3cf912[_0x336a6b(0x1d8)]?.[_0x336a6b(0x204)],_0x3cf912[_0x336a6b(0x1b6)]?.[_0x336a6b(0x204)],_0x3cf912[_0x336a6b(0x1df)]?.[_0x336a6b(0x204)]],_0x399599=_0x1faa48[_0x336a6b(0x1dd)](_0x4a7150=>_0x4a7150&&ownsServiceWorker(_0x4a7150,_0x17cdfb));if(!_0x399599){console[_0x336a6b(0x1d3)](LOG_PREFIX2+_0x336a6b(0x278));return;}_0x3cf912[_0x336a6b(0x1d8)]&&(console['log'](LOG_PREFIX2+_0x336a6b(0x21c)),_0x3cf912['active'][_0x336a6b(0x24b)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x336a6b(0x1d3)](LOG_PREFIX2+_0x336a6b(0x1f6)),await _0x3cf912['unregister'](),registration=null,currentOptions2=null,console[_0x336a6b(0x1d3)](LOG_PREFIX2+_0x336a6b(0x1ba));}catch(_0x10e52e){console[_0x336a6b(0x1e4)](LOG_PREFIX2+_0x336a6b(0x1ad),_0x10e52e);}}function _0x7918(_0x1ce9b4,_0x305fb3){_0x1ce9b4=_0x1ce9b4-0x1ac;const _0x12acba=_0x12ac();let _0x791817=_0x12acba[_0x1ce9b4];return _0x791817;}function ownsServiceWorker(_0x1bcf33,_0x220bc1){const _0x5872b9=_0x1a08ee,_0x55f1eb=typeof window!==_0x5872b9(0x241)?window[_0x5872b9(0x26c)][_0x5872b9(0x229)]:'',_0x2c1da1=new URL(_0x220bc1,_0x55f1eb||void 0x0)[_0x5872b9(0x1b0)],_0x1433ad=_0x1bcf33===_0x2c1da1||_0x1bcf33[_0x5872b9(0x266)]('sw-enhance');return console[_0x5872b9(0x1d3)](LOG_PREFIX2+_0x5872b9(0x1f4)+_0x1bcf33+_0x5872b9(0x251)+_0x2c1da1+',\x20owns='+_0x1433ad),_0x1433ad;}function ownsCurrentController(_0x540a41){const _0x2dd31d=_0x1a08ee;if(typeof navigator===_0x2dd31d(0x241))return![];const _0x11ebfb=navigator[_0x2dd31d(0x1b8)]?.[_0x2dd31d(0x209)];if(!_0x11ebfb)return console[_0x2dd31d(0x1d3)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x11ebfb[_0x2dd31d(0x204)],_0x540a41);}async function detectBlockingServiceWorker(_0x3531ee){const _0x5d4f92=_0x1a08ee;if(!navigator['serviceWorker'])return null;try{const _0xfd0a59=await navigator[_0x5d4f92(0x1b8)][_0x5d4f92(0x246)]('/');console[_0x5d4f92(0x1d3)](LOG_PREFIX2+_0x5d4f92(0x1fb),_0xfd0a59?.[_0x5d4f92(0x1d8)]?.[_0x5d4f92(0x204)]??_0x5d4f92(0x1f5));const _0x2f7800=_0xfd0a59?.[_0x5d4f92(0x1d8)]?.[_0x5d4f92(0x204)];if(!_0x2f7800)return null;if(ownsServiceWorker(_0x2f7800,_0x3531ee))return null;return _0x2f7800;}catch(_0x5e871b){return console[_0x5d4f92(0x1e4)](LOG_PREFIX2+_0x5d4f92(0x271),_0x5e871b),null;}}async function resolveWorker(){const _0x5deac2=_0x1a08ee,_0xa78859=registration??await navigator[_0x5deac2(0x1b8)]?.[_0x5deac2(0x246)]('/'),_0x2db871=_0xa78859?.['active']??_0xa78859?.[_0x5deac2(0x1b6)]??_0xa78859?.['installing']??null;return console[_0x5deac2(0x1d3)](LOG_PREFIX2+_0x5deac2(0x26b),_0x2db871?.[_0x5deac2(0x204)]??_0x5deac2(0x1f5),_0x5deac2(0x1c3)+(_0x2db871?.[_0x5deac2(0x1ed)]??_0x5deac2(0x1b1))),_0x2db871;}var LOG_PREFIX3=_0x1a08ee(0x1c0);function isInitialized(){return typeof window!=='undefined'&&window['__enhanceInitialized']===!![];}function setInitialized(_0x164392){const _0x52039e=_0x1a08ee;typeof window!=='undefined'&&(window[_0x52039e(0x23e)]=_0x164392);}function getOptions(){const _0x22a20a=_0x1a08ee;return typeof window!==_0x22a20a(0x241)?window[_0x22a20a(0x1f2)]??null:null;}function setOptions(_0x2aa541){const _0x865b97=_0x1a08ee;typeof window!==_0x865b97(0x241)&&(window[_0x865b97(0x1f2)]=_0x2aa541);}var Enhance={'init'(_0x77d2f9){const _0x562e38=_0x1a08ee,_0x4696ec=Date[_0x562e38(0x237)]();console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x1b2)+_0x4696ec),console[_0x562e38(0x1d3)](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window['location'][_0x562e38(0x1b0)]),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x24c)+document[_0x562e38(0x1f1)]),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x244),JSON[_0x562e38(0x1e3)](_0x77d2f9,null,0x2));if(isInitialized())return console[_0x562e38(0x277)](LOG_PREFIX3+_0x562e38(0x26a)),window['__enhanceController']??createController();setInitialized(!![]),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x26f));const _0x26e993=normalizeOptions(_0x77d2f9);setOptions(_0x26e993),console[_0x562e38(0x1d3)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON[_0x562e38(0x1e3)](_0x26e993,null,0x2));const _0x4a0ef0=parseUrlParams();console[_0x562e38(0x1d3)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x562e38(0x1e3)](_0x4a0ef0,null,0x2));if(_0x4a0ef0[_0x562e38(0x203)])return cleanUrlParam(_0x562e38(0x218)),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x1f3)),createController();if(_0x4a0ef0[_0x562e38(0x1ca)])return console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x23b)),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x224)+_0x4a0ef0['enhancementUrl']),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x216)+_0x4a0ef0[_0x562e38(0x1f0)]),state[_0x562e38(0x1c5)]=!![],console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x227)),void loadOverlay({'overlayPath':_0x26e993[_0x562e38(0x27f)],'enableViteHmr':_0x26e993[_0x562e38(0x243)]['enableViteHmr'],'options':_0x26e993,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+_0x562e38(0x1c9)),void registerServiceWorker(_0x26e993),console[_0x562e38(0x1d3)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x270)),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x1d1)),void unregisterServiceWorker(_0x26e993[_0x562e38(0x25e)]),console[_0x562e38(0x1d3)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console['log'](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta.hot['on'](_0x562e38(0x231),_0x453547=>{const _0x460729=_0x562e38;console[_0x460729(0x1d3)](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x453547),state[_0x460729(0x1c2)]={'message':_0x453547[_0x460729(0x222)]['message']},updateOverlay();}),import.meta.hot['on'](_0x562e38(0x248),()=>{const _0x5d9991=_0x562e38;state['appError']&&(console[_0x5d9991(0x1d3)](LOG_PREFIX3+_0x5d9991(0x22b)),state[_0x5d9991(0x1c2)]=null,updateOverlay());})),createController();}};function createController(){const _0x179ed0=_0x1a08ee,_0x47551a={'enable'(){const _0x48f3d3=_0x7918,_0xab441a=getOptions();if(!_0xab441a)return;state[_0x48f3d3(0x1c5)]=!![],void loadOverlay({'overlayPath':_0xab441a[_0x48f3d3(0x27f)],'enableViteHmr':_0xab441a[_0x48f3d3(0x243)][_0x48f3d3(0x1bf)],'options':_0xab441a,'onToggle':handleToggle}),void registerServiceWorker(_0xab441a),void sendConfiguration(),updateOverlay();},'disable'(){const _0xfa2c5d=_0x7918,_0x259bc7=getOptions();if(!_0x259bc7)return;state[_0xfa2c5d(0x1c5)]=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(_0x259bc7[_0xfa2c5d(0x25e)]);},'status'(){const _0xbaa3ff=_0x7918;return{'enabled':state[_0xbaa3ff(0x1c5)],'controlled':state[_0xbaa3ff(0x1f9)]};}};return typeof window!=='undefined'&&(window[_0x179ed0(0x1ea)]=_0x47551a),_0x47551a;}function handleToggle(){const _0x8b802e=_0x1a08ee,_0x2df107=createController();state[_0x8b802e(0x1c5)]?_0x2df107[_0x8b802e(0x1af)]():_0x2df107['enable']();}function parseUrlParams(){const _0x5dd8f5=_0x1a08ee,_0xce035b=new URL(window[_0x5dd8f5(0x26c)][_0x5dd8f5(0x1b0)]),_0x4de3fe=_0xce035b['searchParams'][_0x5dd8f5(0x25a)](_0x5dd8f5(0x218))?.[_0x5dd8f5(0x276)](),_0x253024=_0xce035b['searchParams'][_0x5dd8f5(0x25a)](_0x5dd8f5(0x20a)),_0x58ece7=_0xce035b[_0x5dd8f5(0x27c)]['get'](_0x5dd8f5(0x217));return{'hasEnhancement':Boolean(_0x253024||_0x58ece7),'explicitDisable':_0x4de3fe==='0'||_0x4de3fe==='false'||_0x4de3fe===_0x5dd8f5(0x223),'enhancementUrl':_0x253024,'enhancementId':_0x58ece7};}function cleanUrlParam(_0x282338){const _0x5e0cfd=_0x1a08ee,_0x46d9a5=new URL(window[_0x5e0cfd(0x26c)][_0x5e0cfd(0x1b0)]);_0x46d9a5[_0x5e0cfd(0x27c)]['has'](_0x282338)&&(_0x46d9a5[_0x5e0cfd(0x27c)][_0x5e0cfd(0x22a)](_0x282338),window[_0x5e0cfd(0x230)][_0x5e0cfd(0x1ce)](null,document[_0x5e0cfd(0x24f)],_0x46d9a5['toString']()));}var package_default={'name':_0x1a08ee(0x1dc),'version':_0x1a08ee(0x275),'type':'module','description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x1a08ee(0x24d),'main':_0x1a08ee(0x1db),'module':_0x1a08ee(0x1db),'types':_0x1a08ee(0x1b3),'exports':{'.':{'types':_0x1a08ee(0x1b3),'import':_0x1a08ee(0x1db)},'./vite':{'types':_0x1a08ee(0x226),'import':'./dev/vite/index.js'}},'files':['dev/'],'bin':{'enhance-sandbox':_0x1a08ee(0x212)},'scripts':{'typecheck':_0x1a08ee(0x1eb),'dev':_0x1a08ee(0x1fd),'dev:build':_0x1a08ee(0x21a),'dev:staging':_0x1a08ee(0x1c6),'dev:staging:build':_0x1a08ee(0x1cc),'build':_0x1a08ee(0x200),'build:release':_0x1a08ee(0x1c1),'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':_0x1a08ee(0x1b5)},'dependencies':{'commander':_0x1a08ee(0x258),'zod':_0x1a08ee(0x267)},'devDependencies':{'@types/node':_0x1a08ee(0x21e),'javascript-obfuscator':'^4.1.1','tsup':_0x1a08ee(0x272),'vite':_0x1a08ee(0x1de)},'publishConfig':{'access':_0x1a08ee(0x1f8)}},DEFAULT_SERVICE_WORKER_PATH=_0x1a08ee(0x1fe),DEFAULT_RUNTIME_PATH=_0x1a08ee(0x256),PACKAGE_VERSION=typeof package_default[_0x1a08ee(0x219)]==='string'?package_default['version']:'0.0.0';function normalizeAssetPath(_0x1473e4){const _0x4413d1=_0x1a08ee;if(!_0x1473e4)return _0x1473e4;if(_0x1473e4['startsWith'](_0x4413d1(0x1ec))||_0x1473e4[_0x4413d1(0x255)]('https://'))return _0x1473e4;const _0x5f2045=_0x1473e4[_0x4413d1(0x263)](/^\.\//,'');return _0x5f2045['startsWith']('/')?_0x5f2045:'/'+_0x5f2045;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x2071af){const _0x450e51=_0x1a08ee;return Enhance[_0x450e51(0x259)](_0x2071af);},'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 _0x4f04dc=_0x1a08ee;return Enhance2[_0x4f04dc(0x228)]();}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 _0xe594eb=_0x4021;(function(_0xabc5cc,_0x14374a){const _0x3dcb0a=_0x4021,_0xb52e07=_0xabc5cc();while(!![]){try{const _0x4d0e57=parseInt(_0x3dcb0a(0x1a1))/0x1+-parseInt(_0x3dcb0a(0x1df))/0x2*(parseInt(_0x3dcb0a(0x207))/0x3)+parseInt(_0x3dcb0a(0x26f))/0x4+-parseInt(_0x3dcb0a(0x269))/0x5+-parseInt(_0x3dcb0a(0x258))/0x6+-parseInt(_0x3dcb0a(0x25d))/0x7+parseInt(_0x3dcb0a(0x185))/0x8;if(_0x4d0e57===_0x14374a)break;else _0xb52e07['push'](_0xb52e07['shift']());}catch(_0x4537ce){_0xb52e07['push'](_0xb52e07['shift']());}}}(_0x4b8b,0xb00b1));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0xe594eb(0x194)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0xe594eb(0x26e),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!=='undefined'?__ENHANCE_DEFAULT_BACKEND_URL__:_0xe594eb(0x18b),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!=='undefined'?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0xe594eb(0x197)](_0xe594eb(0x1d4),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x3236f6){const _0x550cfd=_0xe594eb;if(!_0x3236f6[_0x550cfd(0x17c)])throw new Error(_0x550cfd(0x210));const _0x5ec9a3=_0x3236f6[_0x550cfd(0x1ba)]??{};return{'publishableKey':_0x3236f6[_0x550cfd(0x17c)],'callbackBypass':_0x3236f6[_0x550cfd(0x1dc)]??[],'overlay':{'enabled':!![],'position':_0x550cfd(0x1c8),'enableViteHmr':_0x5ec9a3[_0x550cfd(0x26d)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x550cfd(0x226),'swPath':_0x550cfd(0x1b6),'overlayPath':_0x5ec9a3[_0x550cfd(0x20b)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x5ec9a3[_0x550cfd(0x23e)]??_0x550cfd(0x1c0),'backendUrl':_0x5ec9a3[_0x550cfd(0x1e3)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x5d029c=_0xe594eb;try{const _0x57c741=new URLSearchParams(window['location'][_0x5d029c(0x171)]);return _0x57c741[_0x5d029c(0x24b)](_0x5d029c(0x250))?.[_0x5d029c(0x1e4)]()||'';}catch{return'';}}var LOG_PREFIX=_0xe594eb(0x1d0),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x3dd2bc){const _0x129cd5=_0xe594eb;console[_0x129cd5(0x197)](LOG_PREFIX+_0x129cd5(0x1c5)),console[_0x129cd5(0x197)](LOG_PREFIX+_0x129cd5(0x232)+_0x3dd2bc['overlayPath']),console[_0x129cd5(0x197)](LOG_PREFIX+_0x129cd5(0x17a)+_0x3dd2bc[_0x129cd5(0x1a4)]),currentOptions=_0x3dd2bc[_0x129cd5(0x214)],toggleHandler=_0x3dd2bc[_0x129cd5(0x241)];if(overlayController){console[_0x129cd5(0x197)](LOG_PREFIX+_0x129cd5(0x1dd)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x129cd5(0x197)](LOG_PREFIX+_0x129cd5(0x1ac)),overlayLoadPromise;console['log'](LOG_PREFIX+_0x129cd5(0x195)),overlayLoadPromise=doLoadOverlay(_0x3dd2bc);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x129cd5(0x24d));}catch(_0x526832){console[_0x129cd5(0x213)](LOG_PREFIX+_0x129cd5(0x1c7),_0x526832);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0xc657b6){const _0x974a20=_0xe594eb;console[_0x974a20(0x197)](LOG_PREFIX+_0x974a20(0x268));if(typeof window===_0x974a20(0x194)){console[_0x974a20(0x197)](LOG_PREFIX+_0x974a20(0x221));return;}if(window[_0x974a20(0x174)]){console['log'](LOG_PREFIX+_0x974a20(0x1d1)),overlayController=window[_0x974a20(0x174)];return;}console[_0x974a20(0x197)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0xc657b6[_0x974a20(0x1a4)]&&(console['log'](LOG_PREFIX+_0x974a20(0x196)),await setupRemoteHMR(_0xc657b6[_0x974a20(0x20b)]));console[_0x974a20(0x197)](LOG_PREFIX+_0x974a20(0x263)+_0xc657b6[_0x974a20(0x20b)]);const _0x53fd4=Date[_0x974a20(0x236)](),_0x4a1241=await import(_0xc657b6[_0x974a20(0x20b)]);console[_0x974a20(0x197)](LOG_PREFIX+_0x974a20(0x200)+(Date[_0x974a20(0x236)]()-_0x53fd4)+'ms'),console['log'](LOG_PREFIX+_0x974a20(0x209),Object[_0x974a20(0x1c3)](_0x4a1241));if(typeof _0x4a1241?.[_0x974a20(0x1cd)]!=='function'){console['error'](LOG_PREFIX+_0x974a20(0x253)),console[_0x974a20(0x213)](LOG_PREFIX+_0x974a20(0x1ea),Object[_0x974a20(0x1c3)](_0x4a1241));return;}console['log'](LOG_PREFIX+_0x974a20(0x1e7));const _0x3f1c64=_0x4a1241[_0x974a20(0x1cd)]();console[_0x974a20(0x197)](LOG_PREFIX+_0x974a20(0x21d),_0x3f1c64),overlayController=_0x3f1c64,window[_0x974a20(0x174)]=_0x3f1c64,_0x3f1c64[_0x974a20(0x241)](_0xc657b6[_0x974a20(0x241)]),console[_0x974a20(0x197)](LOG_PREFIX+_0x974a20(0x1e9)),console['log'](LOG_PREFIX+_0x974a20(0x215)),updateOverlay();}catch(_0x76da56){console[_0x974a20(0x213)](LOG_PREFIX+_0x974a20(0x265),_0x76da56);}}function updateOverlay(){const _0x4dcc6f=_0xe594eb;console[_0x4dcc6f(0x197)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x4dcc6f(0x197)](LOG_PREFIX+_0x4dcc6f(0x1d7)+!!overlayController),console[_0x4dcc6f(0x197)](LOG_PREFIX+_0x4dcc6f(0x181)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0x4dcc6f(0x233));return;}const _0x545f77=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x4dcc6f(0x19b),JSON[_0x4dcc6f(0x218)](_0x545f77,null,0x2)),overlayController['update'](_0x545f77),console[_0x4dcc6f(0x197)](LOG_PREFIX+_0x4dcc6f(0x260));}function composeOverlayState(_0x2abcfb){const _0xc3233a=_0xe594eb,_0x56004b=getEnhancementId();return console['log'](LOG_PREFIX+_0xc3233a(0x23c)+_0x56004b),console[_0xc3233a(0x197)](LOG_PREFIX+_0xc3233a(0x1fd)+state[_0xc3233a(0x211)]),console['log'](LOG_PREFIX+_0xc3233a(0x1db)+state[_0xc3233a(0x1f3)]),{'enhancementId':_0x56004b,'enabled':state[_0xc3233a(0x211)],'controlled':state[_0xc3233a(0x1f3)],'overlayPosition':_0x2abcfb[_0xc3233a(0x25e)]['position'],'securityMode':_0x2abcfb['security'],'backendBaseUrl':_0x2abcfb[_0xc3233a(0x1e3)],'appError':state['appError']};}async function setupRemoteHMR(_0x6e2e3f){const _0x4848cd=_0xe594eb;console[_0x4848cd(0x197)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x6e2e3f);if(typeof window===_0x4848cd(0x194))return;try{const _0xfd87f0=new URL(_0x6e2e3f,window[_0x4848cd(0x1e5)][_0x4848cd(0x267)]),_0x4b2d26=_0xfd87f0[_0x4848cd(0x267)];console[_0x4848cd(0x197)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x4b2d26+_0x4848cd(0x170)+window[_0x4848cd(0x1e5)][_0x4848cd(0x267)]);if(_0x4b2d26===window[_0x4848cd(0x1e5)][_0x4848cd(0x267)]){console[_0x4848cd(0x197)](LOG_PREFIX+_0x4848cd(0x1ca));return;}console['log'](LOG_PREFIX+_0x4848cd(0x271)),await ensureReactRefreshPreamble(_0x4b2d26),await ensureViteClient(_0x4b2d26),console[_0x4848cd(0x197)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x5c2805){console[_0x4848cd(0x18a)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x5c2805);}}async function ensureReactRefreshPreamble(_0x4b6551){const _0x126c91=_0xe594eb;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x126c91(0x266)](_0x4b6551)){console['log'](LOG_PREFIX+_0x126c91(0x1e0)+_0x4b6551);return;}console[_0x126c91(0x197)](LOG_PREFIX+_0x126c91(0x19a)+_0x4b6551+_0x126c91(0x1bd));const _0xafca8a=await import(_0x4b6551+_0x126c91(0x246)),_0xab0b30=_0xafca8a&&typeof _0xafca8a===_0x126c91(0x243)&&'default'in _0xafca8a?_0xafca8a[_0x126c91(0x1b7)]:_0xafca8a;if(!isRefreshRuntime(_0xab0b30)){console['warn'](LOG_PREFIX+_0x126c91(0x247));return;}_0xab0b30['injectIntoGlobalHook'](window),window[_0x126c91(0x1e8)]=()=>{},window[_0x126c91(0x1ec)]=()=>_0x1117fc=>_0x1117fc,window[_0x126c91(0x262)]=!![],window[_0x126c91(0x251)][_0x126c91(0x1ae)](_0x4b6551),console['log'](LOG_PREFIX+_0x126c91(0x26a)+_0x4b6551);}async function ensureViteClient(_0x1db824){const _0x226f97=_0xe594eb;window['__viteHMRLoaded']??=new Set();if(window[_0x226f97(0x1de)][_0x226f97(0x266)](_0x1db824)){console[_0x226f97(0x197)](LOG_PREFIX+_0x226f97(0x1f4)+_0x1db824);return;}console[_0x226f97(0x197)](LOG_PREFIX+_0x226f97(0x189)+_0x1db824+_0x226f97(0x1bd)),await import(_0x1db824+_0x226f97(0x257)),window[_0x226f97(0x1de)]['add'](_0x1db824),console[_0x226f97(0x197)](LOG_PREFIX+_0x226f97(0x203)+_0x1db824);}function isRefreshRuntime(_0x565cac){const _0x535b23=_0xe594eb;return typeof _0x565cac==='object'&&_0x565cac!==null&&'injectIntoGlobalHook'in _0x565cac&&typeof _0x565cac[_0x535b23(0x234)]==='function';}var WORKER_MESSAGE_CONFIG=_0xe594eb(0x205),WORKER_MESSAGE_DISABLE=_0xe594eb(0x1a0),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x4b1bae){const _0x1e9b9f=_0xe594eb;console[_0x1e9b9f(0x197)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x19d)+_0x4b1bae[_0x1e9b9f(0x20c)]);if(!('serviceWorker'in navigator)){console[_0x1e9b9f(0x18a)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x21a));const _0x2bc2e6=navigator[_0x1e9b9f(0x244)]['controller'];console[_0x1e9b9f(0x197)](LOG_PREFIX2+'\x20Current\x20controller:',_0x2bc2e6?.[_0x1e9b9f(0x24f)]??_0x1e9b9f(0x1c4)),console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x201),_0x2bc2e6?.['state']??_0x1e9b9f(0x20a));const _0x27bc71=!!_0x2bc2e6;currentOptions2=_0x4b1bae,console[_0x1e9b9f(0x197)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x34d581=await detectBlockingServiceWorker(_0x4b1bae[_0x1e9b9f(0x20c)]);if(_0x34d581){console[_0x1e9b9f(0x213)](LOG_PREFIX2+_0x1e9b9f(0x192)+_0x34d581),console['error'](LOG_PREFIX2+_0x1e9b9f(0x18c));return;}console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x224));try{console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x230)+_0x4b1bae[_0x1e9b9f(0x20c)]+_0x1e9b9f(0x25b)),registration=await navigator[_0x1e9b9f(0x244)][_0x1e9b9f(0x1fb)](_0x4b1bae[_0x1e9b9f(0x20c)],{'scope':'/'}),console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x184),{'scope':registration[_0x1e9b9f(0x238)],'active':registration[_0x1e9b9f(0x270)]?.[_0x1e9b9f(0x24f)],'waiting':registration[_0x1e9b9f(0x1ed)]?.[_0x1e9b9f(0x24f)],'installing':registration[_0x1e9b9f(0x217)]?.[_0x1e9b9f(0x24f)]}),console[_0x1e9b9f(0x197)](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0x20689e=await navigator[_0x1e9b9f(0x244)][_0x1e9b9f(0x1ce)];console['log'](LOG_PREFIX2+_0x1e9b9f(0x254),_0x20689e[_0x1e9b9f(0x270)]?.[_0x1e9b9f(0x24f)]);const _0x31a434=ownsCurrentController(_0x4b1bae[_0x1e9b9f(0x20c)]);state[_0x1e9b9f(0x1f3)]=_0x31a434,console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x1cf)+_0x31a434),console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x20e),navigator[_0x1e9b9f(0x244)]['controller']?.[_0x1e9b9f(0x24f)]??'none');if(!_0x27bc71&&!navigator[_0x1e9b9f(0x244)][_0x1e9b9f(0x26c)]){console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x212)),window[_0x1e9b9f(0x1e5)][_0x1e9b9f(0x22a)]();return;}console['log'](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x1e9b9f(0x211)]){const _0x16d22e=document[_0x1e9b9f(0x235)]('[data-enhance-runtime-bootstrap]')!==null;console['log'](LOG_PREFIX2+_0x1e9b9f(0x1fc)+_0x16d22e);if(!_0x16d22e){console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x1e2)),window[_0x1e9b9f(0x1e5)][_0x1e9b9f(0x22a)]();return;}}console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x182)),updateOverlay(),console[_0x1e9b9f(0x197)](LOG_PREFIX2+_0x1e9b9f(0x1af));}catch(_0x2be337){console[_0x1e9b9f(0x213)](LOG_PREFIX2+_0x1e9b9f(0x1f5),_0x2be337);}}async function sendConfiguration(){const _0x59f0e4=_0xe594eb;console[_0x59f0e4(0x197)](LOG_PREFIX2+_0x59f0e4(0x1b2)),console[_0x59f0e4(0x197)](LOG_PREFIX2+_0x59f0e4(0x179)+state[_0x59f0e4(0x211)]+',\x20currentOptions:\x20'+!!currentOptions2);if(!state[_0x59f0e4(0x211)]||!currentOptions2){console[_0x59f0e4(0x197)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x5e4557=await resolveWorker();if(!_0x5e4557){console[_0x59f0e4(0x18a)](LOG_PREFIX2+_0x59f0e4(0x1a2));return;}const _0x5944ff={'publishableKey':currentOptions2[_0x59f0e4(0x17c)],'callbackBypass':currentOptions2[_0x59f0e4(0x1dc)],'securityMode':currentOptions2['security']};console[_0x59f0e4(0x197)](LOG_PREFIX2+_0x59f0e4(0x17e),JSON[_0x59f0e4(0x218)](_0x5944ff,null,0x2)),_0x5e4557[_0x59f0e4(0x1f7)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x5944ff}),console['log'](LOG_PREFIX2+_0x59f0e4(0x216));}async function unregisterServiceWorker(_0xd59790){const _0xf75fe=_0xe594eb;console[_0xf75fe(0x197)](LOG_PREFIX2+_0xf75fe(0x21e));if(!(_0xf75fe(0x244)in navigator)){console[_0xf75fe(0x197)](LOG_PREFIX2+_0xf75fe(0x1c9));return;}try{const _0x2e7d8a=registration??await navigator[_0xf75fe(0x244)][_0xf75fe(0x1b0)]('/');if(!_0x2e7d8a){console['log'](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0xf75fe(0x197)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x2e7d8a[_0xf75fe(0x238)],'active':_0x2e7d8a['active']?.[_0xf75fe(0x24f)],'waiting':_0x2e7d8a[_0xf75fe(0x1ed)]?.[_0xf75fe(0x24f)],'installing':_0x2e7d8a[_0xf75fe(0x217)]?.[_0xf75fe(0x24f)]});const _0x1fd1d6=[_0x2e7d8a['active']?.[_0xf75fe(0x24f)],_0x2e7d8a[_0xf75fe(0x1ed)]?.[_0xf75fe(0x24f)],_0x2e7d8a['installing']?.[_0xf75fe(0x24f)]],_0xf62ba7=_0x1fd1d6[_0xf75fe(0x23d)](_0x4aa01a=>_0x4aa01a&&ownsServiceWorker(_0x4aa01a,_0xd59790));if(!_0xf62ba7){console['log'](LOG_PREFIX2+_0xf75fe(0x173));return;}_0x2e7d8a[_0xf75fe(0x270)]&&(console[_0xf75fe(0x197)](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x2e7d8a[_0xf75fe(0x270)][_0xf75fe(0x1f7)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+'\x20Unregistering\x20SW...'),await _0x2e7d8a[_0xf75fe(0x1cc)](),registration=null,currentOptions2=null,console[_0xf75fe(0x197)](LOG_PREFIX2+_0xf75fe(0x22f));}catch(_0x4c56b5){console[_0xf75fe(0x213)](LOG_PREFIX2+_0xf75fe(0x1ef),_0x4c56b5);}}function ownsServiceWorker(_0x264be6,_0x1d91c2){const _0x22581b=_0xe594eb,_0x51960c=typeof window!=='undefined'?window[_0x22581b(0x1e5)][_0x22581b(0x267)]:'',_0xbacf95=new URL(_0x1d91c2,_0x51960c||void 0x0)[_0x22581b(0x1b4)],_0x1d513f=_0x264be6===_0xbacf95||_0x264be6[_0x22581b(0x1b3)](_0x22581b(0x1fe));return console['log'](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x264be6+',\x20expected='+_0xbacf95+_0x22581b(0x175)+_0x1d513f),_0x1d513f;}function _0x4b8b(){const _0x2c703d=['[Enhance\x20Overlay]','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','startsWith','dev/','[Enhance\x20Config]\x20Build-time\x20defaults:','string','sha256','\x20overlayController\x20exists:\x20','./dev/vite/index.d.ts','vite:beforeUpdate','public','\x20composeOverlayState\x20-\x20state.controlled:\x20','callbackBypass','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','__viteHMRLoaded','2364422rcGKas','\x20React\x20Refresh\x20already\x20installed\x20for\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','backendUrl','trim','location','bun\x20version\x20patch\x20--no-git-tag-version','\x20Calling\x20createOverlay()...','$RefreshReg$','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Available\x20exports:','write','$RefreshSig$','waiting','enable','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20URL\x20params\x20parsed:','^24.10.1','cwd','controlled','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Failed\x20to\x20register\x20service\x20worker:','Print\x20the\x20current\x20asset\x20manifest','postMessage','push','\x20enhancementId:\x20','copyFile','register','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20composeOverlayState\x20-\x20state.enabled:\x20','sw-enhance','\x20Unregistering\x20any\x20existing\x20SW...','\x20Module\x20imported\x20in\x20','\x20Controller\x20state:','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','err','enhance:configure','./dev/index.d.ts','3jRYIKi','https://','\x20Module\x20exports:','N/A','overlayPath','swPath','toString','\x20Current\x20controller\x20after\x20ready:','http://','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','enabled','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','error','options','\x20Calling\x20updateOverlay()...','\x20Config\x20sent\x20to\x20SW','installing','stringify','\x20Normalized\x20options:','\x20Service\x20workers\x20supported','disable','replaceState','\x20Controller\x20created:','\x20unregisterServiceWorker()\x20called','skipped','__enhanceController','\x20No\x20window\x20object\x20-\x20skipping','MIT','destinationPath','\x20No\x20blocking\x20SW\x20found','mkdir','info','publicDir','stdout','Enhance\x20sandbox\x20utility\x20CLI','reload','status','--filename\x20<name>','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','sourcePath','\x20SW\x20unregistered\x20successfully','\x20Registering\x20SW\x20at\x20','\x20Raw\x20options:','\x20overlayPath:\x20','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','injectIntoGlobalHook','querySelector','now','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','scope','serviceWorkerURL','./dev/vite/index.js','explicitDisable','\x20composeOverlayState\x20-\x20enhancementId:\x20','some','security','option','\x20→\x20','onToggle','vite:error','object','serviceWorker','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','/@react-refresh','\x20Invalid\x20React\x20Refresh\x20runtime','readyState','\x20(already\x20current)\x20[','runtimeURL','get','replace','\x20loadOverlay()\x20complete','relativeDestination','scriptURL','enhancement','__enhanceReactRefreshInstalledOrigins','state','\x20Module\x20missing\x20createOverlay\x20export!','\x20SW\x20ready!\x20Active:','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','enhancementId','/@vite/client','7722642jlPQYI','Copied\x20','all','\x20with\x20scope\x20\x27/\x27...','^4.1.1','3607534IoLJTb','overlay','^3.22.4','\x20Overlay\x20update\x20complete','\x20First\x20initialization','__vite_plugin_react_preamble_installed__','\x20Importing\x20overlay\x20module\x20from:\x20','^11.1.0','\x20Failed\x20to\x20import/create\x20overlay:','has','origin','\x20doLoadOverlay()\x20starting...','5364070qRWkEL','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','state:\x20','controller','enableOverlayHmr','https://assets.enhancelabs.ai/overlay.js','4472768dXmVUR','active','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','description','false','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch',',\x20page\x20origin:\x20','search','./dev/cli.js','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','__enhanceOverlay',',\x20owns=','--public-dir\x20<path>','init','base64','\x20state.enabled:\x20','\x20enableViteHmr:\x20','0.3.21','publishableKey','__enhanceInitialized','\x20Sending\x20customer\x20config\x20to\x20SW:','tsc\x20--noEmit','[Enhance\x20Runtime]','\x20currentOptions\x20exists:\x20','\x20Updating\x20overlay...','parseAsync','\x20Registration\x20returned:','22748464RYSoZB','action','\x20Document\x20readyState:\x20','./dev/index.js','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','warn','https://api.enhancelabs.ai','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','version','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','override','/assets/enhance-runtime.js','update','\x20BLOCKING\x20SW\x20detected:\x20','^8.5.1','undefined','\x20Starting\x20fresh\x20overlay\x20load...','\x20Setting\x20up\x20remote\x20HMR...','log','manifest','\x20Starting\x20overlay\x20load\x20(async)...','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Updating\x20overlay\x20with\x20state:','Skipped\x20','\x20swPath:\x20','\x20detectBlocking\x20error:','copied','enhance:disable','816817zqPPYS','\x20No\x20service\x20worker\x20active\x20to\x20configure','enhancementUrl','enableViteHmr','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Enhancement\x20mode\x20ENABLED','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','code','name','hasEnhancement','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','ENOENT','add','\x20registerServiceWorker()\x20complete','getRegistration','@enhance-eng/sandbox','\x20sendConfiguration()\x20called','includes','href','searchParams','/sw-enhance.js','default','enhance','__enhanceOptions','__development','filename','assets/enhance-runtime.js','...','../dist/index.js','readFile','permissive','0.0.0','swFilename','keys','none','\x20loadOverlay()\x20called','appError','\x20loadOverlay()\x20failed:','bottom-right','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','unregister','createOverlay','ready','\x20Page\x20controlled\x20by\x20our\x20SW:\x20'];_0x4b8b=function(){return _0x2c703d;};return _0x4b8b();}function ownsCurrentController(_0x41e12e){const _0x435cf3=_0xe594eb;if(typeof navigator==='undefined')return![];const _0x422cde=navigator[_0x435cf3(0x244)]?.[_0x435cf3(0x26c)];if(!_0x422cde)return console[_0x435cf3(0x197)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x422cde[_0x435cf3(0x24f)],_0x41e12e);}async function detectBlockingServiceWorker(_0x552590){const _0x3b097b=_0xe594eb;if(!navigator[_0x3b097b(0x244)])return null;try{const _0x302f2e=await navigator['serviceWorker'][_0x3b097b(0x1b0)]('/');console[_0x3b097b(0x197)](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x302f2e?.['active']?.[_0x3b097b(0x24f)]??_0x3b097b(0x1c4));const _0x31fcd2=_0x302f2e?.[_0x3b097b(0x270)]?.['scriptURL'];if(!_0x31fcd2)return null;if(ownsServiceWorker(_0x31fcd2,_0x552590))return null;return _0x31fcd2;}catch(_0x94922b){return console[_0x3b097b(0x213)](LOG_PREFIX2+_0x3b097b(0x19e),_0x94922b),null;}}async function resolveWorker(){const _0x1a6e71=_0xe594eb,_0x4a9fe9=registration??await navigator['serviceWorker']?.[_0x1a6e71(0x1b0)]('/'),_0x2ff67c=_0x4a9fe9?.['active']??_0x4a9fe9?.['waiting']??_0x4a9fe9?.['installing']??null;return console[_0x1a6e71(0x197)](LOG_PREFIX2+'\x20resolveWorker:',_0x2ff67c?.['scriptURL']??_0x1a6e71(0x1c4),_0x1a6e71(0x26b)+(_0x2ff67c?.[_0x1a6e71(0x252)]??_0x1a6e71(0x20a))),_0x2ff67c;}var LOG_PREFIX3=_0xe594eb(0x180);function isInitialized(){const _0x265b21=_0xe594eb;return typeof window!==_0x265b21(0x194)&&window[_0x265b21(0x17d)]===!![];}function setInitialized(_0x47cae6){const _0x42b041=_0xe594eb;typeof window!=='undefined'&&(window[_0x42b041(0x17d)]=_0x47cae6);}function getOptions(){const _0x591f1c=_0xe594eb;return typeof window!=='undefined'?window[_0x591f1c(0x1b9)]??null:null;}function setOptions(_0x5c3b5e){const _0x50ac20=_0xe594eb;typeof window!==_0x50ac20(0x194)&&(window[_0x50ac20(0x1b9)]=_0x5c3b5e);}var Enhance={'init'(_0x523873){const _0x217773=_0xe594eb,_0x3439a5=Date[_0x217773(0x236)]();console[_0x217773(0x197)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x3439a5),console[_0x217773(0x197)](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window['location']['href']),console[_0x217773(0x197)](LOG_PREFIX3+_0x217773(0x187)+document[_0x217773(0x248)]),console[_0x217773(0x197)](LOG_PREFIX3+_0x217773(0x231),JSON[_0x217773(0x218)](_0x523873,null,0x2));if(isInitialized())return console[_0x217773(0x18a)](LOG_PREFIX3+_0x217773(0x1a7)),window[_0x217773(0x220)]??createController();setInitialized(!![]),console[_0x217773(0x197)](LOG_PREFIX3+_0x217773(0x261));const _0x254f19=normalizeOptions(_0x523873);setOptions(_0x254f19),console[_0x217773(0x197)](LOG_PREFIX3+_0x217773(0x219),JSON[_0x217773(0x218)](_0x254f19,null,0x2));const _0x3c670c=parseUrlParams();console[_0x217773(0x197)](LOG_PREFIX3+_0x217773(0x1f0),JSON[_0x217773(0x218)](_0x3c670c,null,0x2));if(_0x3c670c[_0x217773(0x23b)])return cleanUrlParam(_0x217773(0x1b8)),console['log'](LOG_PREFIX3+_0x217773(0x237)),createController();if(_0x3c670c[_0x217773(0x1ab)])return console[_0x217773(0x197)](LOG_PREFIX3+_0x217773(0x1a6)),console['log'](LOG_PREFIX3+'\x20enhancementUrl:\x20'+_0x3c670c[_0x217773(0x1a3)]),console[_0x217773(0x197)](LOG_PREFIX3+_0x217773(0x1f9)+_0x3c670c[_0x217773(0x256)]),state[_0x217773(0x211)]=!![],console['log'](LOG_PREFIX3+_0x217773(0x199)),void loadOverlay({'overlayPath':_0x254f19[_0x217773(0x20b)],'enableViteHmr':_0x254f19[_0x217773(0x25e)]['enableViteHmr'],'options':_0x254f19,'onToggle':handleToggle}),console[_0x217773(0x197)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x254f19),console[_0x217773(0x197)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x217773(0x197)](LOG_PREFIX3+_0x217773(0x22d)),console['log'](LOG_PREFIX3+_0x217773(0x1ff)),void unregisterServiceWorker(_0x254f19[_0x217773(0x20c)]),console[_0x217773(0x197)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console[_0x217773(0x197)](LOG_PREFIX3+_0x217773(0x18e)),import.meta.hot['on'](_0x217773(0x242),_0x46b6f9=>{const _0x12be8c=_0x217773;console['log'](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x46b6f9),state['appError']={'message':_0x46b6f9[_0x12be8c(0x204)]['message']},updateOverlay();}),import.meta.hot['on'](_0x217773(0x1d9),()=>{const _0x5e5867=_0x217773;state[_0x5e5867(0x1c6)]&&(console[_0x5e5867(0x197)](LOG_PREFIX3+_0x5e5867(0x245)),state[_0x5e5867(0x1c6)]=null,updateOverlay());})),createController();}};function createController(){const _0x290a04=_0xe594eb,_0xe096cb={'enable'(){const _0x3bd11a=_0x4021,_0xdf08f8=getOptions();if(!_0xdf08f8)return;state[_0x3bd11a(0x211)]=!![],void loadOverlay({'overlayPath':_0xdf08f8[_0x3bd11a(0x20b)],'enableViteHmr':_0xdf08f8[_0x3bd11a(0x25e)][_0x3bd11a(0x1a4)],'options':_0xdf08f8,'onToggle':handleToggle}),void registerServiceWorker(_0xdf08f8),void sendConfiguration(),updateOverlay();},'disable'(){const _0x2b3a11=_0x4021,_0x495a2a=getOptions();if(!_0x495a2a)return;state[_0x2b3a11(0x211)]=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(_0x495a2a[_0x2b3a11(0x20c)]);},'status'(){const _0x26637b=_0x4021;return{'enabled':state[_0x26637b(0x211)],'controlled':state[_0x26637b(0x1f3)]};}};return typeof window!==_0x290a04(0x194)&&(window[_0x290a04(0x220)]=_0xe096cb),_0xe096cb;}function handleToggle(){const _0x2e1dca=_0xe594eb,_0x1d7ddb=createController();state[_0x2e1dca(0x211)]?_0x1d7ddb[_0x2e1dca(0x21b)]():_0x1d7ddb[_0x2e1dca(0x1ee)]();}function parseUrlParams(){const _0x58ab3a=_0xe594eb,_0x4f854d=new URL(window[_0x58ab3a(0x1e5)][_0x58ab3a(0x1b4)]),_0x599e79=_0x4f854d[_0x58ab3a(0x1b5)][_0x58ab3a(0x24b)](_0x58ab3a(0x1b8))?.['toLowerCase'](),_0x5945de=_0x4f854d[_0x58ab3a(0x1b5)]['get']('enhancementUrl'),_0x249463=_0x4f854d[_0x58ab3a(0x1b5)][_0x58ab3a(0x24b)]('enhancement');return{'hasEnhancement':Boolean(_0x5945de||_0x249463),'explicitDisable':_0x599e79==='0'||_0x599e79===_0x58ab3a(0x16e)||_0x599e79==='off','enhancementUrl':_0x5945de,'enhancementId':_0x249463};}function cleanUrlParam(_0x115b02){const _0x2bf16d=_0xe594eb,_0x222dda=new URL(window[_0x2bf16d(0x1e5)][_0x2bf16d(0x1b4)]);_0x222dda[_0x2bf16d(0x1b5)][_0x2bf16d(0x266)](_0x115b02)&&(_0x222dda[_0x2bf16d(0x1b5)]['delete'](_0x115b02),window['history'][_0x2bf16d(0x21c)](null,document['title'],_0x222dda[_0x2bf16d(0x20d)]()));}var package_default={'name':_0xe594eb(0x1b1),'version':_0xe594eb(0x17b),'type':'module','description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0xe594eb(0x222),'main':'./dev/index.js','module':_0xe594eb(0x188),'types':_0xe594eb(0x206),'exports':{'.':{'types':_0xe594eb(0x206),'import':_0xe594eb(0x188)},'./vite':{'types':_0xe594eb(0x1d8),'import':_0xe594eb(0x23a)}},'files':[_0xe594eb(0x1d3)],'bin':{'enhance-sandbox':_0xe594eb(0x172)},'scripts':{'typecheck':_0xe594eb(0x17f),'dev':_0xe594eb(0x16f),'dev:build':_0xe594eb(0x1e1),'dev:staging':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','dev:staging:build':_0xe594eb(0x1cb),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0xe594eb(0x1a5),'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':_0xe594eb(0x1e6)},'dependencies':{'commander':_0xe594eb(0x264),'zod':_0xe594eb(0x25f)},'devDependencies':{'@types/node':_0xe594eb(0x1f1),'javascript-obfuscator':_0xe594eb(0x25c),'tsup':_0xe594eb(0x193),'vite':'^7.2.4'},'publishConfig':{'access':_0xe594eb(0x1da)}},DEFAULT_SERVICE_WORKER_PATH=_0xe594eb(0x1b6),DEFAULT_RUNTIME_PATH=_0xe594eb(0x190),DIST_SERVICE_WORKER_PATH='sw-enhance.js',DIST_RUNTIME_PATH=_0xe594eb(0x1bc),PACKAGE_VERSION=typeof package_default[_0xe594eb(0x18d)]===_0xe594eb(0x1d5)?package_default[_0xe594eb(0x18d)]:_0xe594eb(0x1c1);function normalizeAssetPath(_0x4ccdfa){const _0xbe2d0d=_0xe594eb;if(!_0x4ccdfa)return _0x4ccdfa;if(_0x4ccdfa['startsWith'](_0xbe2d0d(0x20f))||_0x4ccdfa[_0xbe2d0d(0x1d2)](_0xbe2d0d(0x208)))return _0x4ccdfa;const _0x4d3ef9=_0x4ccdfa[_0xbe2d0d(0x24c)](/^\.\//,'');return _0x4d3ef9['startsWith']('/')?_0x4d3ef9:'/'+_0x4d3ef9;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x8f1981){const _0x2ef360=_0xe594eb;return Enhance[_0x2ef360(0x177)](_0x8f1981);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function serviceWorkerURL(){const _0x4b2846=_0xe594eb;return Enhance2[_0x4b2846(0x239)]();}function runtimeURL(){const _0x1e7164=_0xe594eb;return Enhance2[_0x1e7164(0x24a)]();}import{promises as _0x28717c}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0xe594eb(0x1be),import.meta.url)));async function syncAssets(_0x4c2576){const _0x114553=_0xe594eb,_0x10a4c0=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x4c2576['swFilename']?'./'+_0x4c2576[_0x114553(0x1c2)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x3afba8=[];for(const _0x2c0cfc of _0x10a4c0){const _0x1f5acf=cleanRelativePath(_0x2c0cfc[_0x114553(0x18f)]??_0x2c0cfc['manifestPath']),_0x2be4b5=join(distDir,cleanRelativePath(_0x2c0cfc[_0x114553(0x22e)])),_0x55d719=join(_0x4c2576['publicDir'],_0x1f5acf),[_0x32874b,_0x48b7ae]=await Promise[_0x114553(0x25a)]([readDigest(_0x2be4b5),readDigest(_0x55d719)]);if(_0x32874b&&_0x48b7ae&&_0x32874b===_0x48b7ae){_0x3afba8[_0x114553(0x1f8)]({'sourcePath':_0x2be4b5,'destinationPath':_0x55d719,'relativeDestination':_0x1f5acf,'status':_0x114553(0x21f)});continue;}await _0x28717c[_0x114553(0x225)](dirname(_0x55d719),{'recursive':!![]}),await _0x28717c[_0x114553(0x1fa)](_0x2be4b5,_0x55d719),_0x3afba8[_0x114553(0x1f8)]({'sourcePath':_0x2be4b5,'destinationPath':_0x55d719,'relativeDestination':_0x1f5acf,'status':_0x114553(0x19f)});}return _0x3afba8;}function cleanRelativePath(_0x5a6ddd){const _0xf316a8=_0xe594eb;return _0x5a6ddd[_0xf316a8(0x24c)](/^[./]+/,'');}async function readDigest(_0x11f198){const _0x4c33d0=_0xe594eb;try{const _0x597253=await _0x28717c[_0x4c33d0(0x1bf)](_0x11f198);return createHash(_0x4c33d0(0x1d6))[_0x4c33d0(0x191)](_0x597253)['digest'](_0x4c33d0(0x178));}catch(_0x2c1e1e){if(_0x2c1e1e[_0x4c33d0(0x1a9)]===_0x4c33d0(0x1ad))return null;throw _0x2c1e1e;}}function _0x4021(_0x4329b1,_0x32a1dc){_0x4329b1=_0x4329b1-0x16d;const _0x4b8bb6=_0x4b8b();let _0x402151=_0x4b8bb6[_0x4329b1];return _0x402151;}var program=new Command();program[_0xe594eb(0x1aa)]('enhance-sandbox')[_0xe594eb(0x16d)](_0xe594eb(0x229))['version']('0.0.0'),program['command'](_0xe594eb(0x198))[_0xe594eb(0x16d)](_0xe594eb(0x1f6))[_0xe594eb(0x186)](()=>{const _0x2a1d4d=_0xe594eb,_0x2de4f5=getAssetManifest();process['stdout'][_0x2a1d4d(0x1eb)](JSON[_0x2a1d4d(0x218)](_0x2de4f5,null,0x2)+'\x0a');}),program['command']('prepare-sw')[_0xe594eb(0x16d)](_0xe594eb(0x1a8))['requiredOption'](_0xe594eb(0x176),_0xe594eb(0x202))[_0xe594eb(0x23f)](_0xe594eb(0x22c),_0xe594eb(0x255))[_0xe594eb(0x186)](async _0x34e288=>{const _0x1c5a98=_0xe594eb,_0x31e457=resolve(process[_0x1c5a98(0x1f2)](),_0x34e288[_0x1c5a98(0x227)]),_0x190637=await syncAssets({'publicDir':_0x31e457,'swFilename':_0x34e288[_0x1c5a98(0x1bb)]});for(const _0x2e7f60 of _0x190637){const _0x3f033e=relative(process[_0x1c5a98(0x1f2)](),_0x2e7f60[_0x1c5a98(0x223)]);_0x2e7f60[_0x1c5a98(0x22b)]===_0x1c5a98(0x21f)?process[_0x1c5a98(0x228)][_0x1c5a98(0x1eb)](_0x1c5a98(0x19c)+_0x2e7f60[_0x1c5a98(0x24e)]+_0x1c5a98(0x249)+_0x3f033e+']\x0a'):process[_0x1c5a98(0x228)][_0x1c5a98(0x1eb)](_0x1c5a98(0x259)+_0x2e7f60['relativeDestination']+_0x1c5a98(0x240)+_0x3f033e+'\x0a');}}),program[_0xe594eb(0x183)]();
3
+ const _0x596cf0=_0x35f4;(function(_0x5eda96,_0x4ac02b){const _0xc4358f=_0x35f4,_0x2f2a8a=_0x5eda96();while(!![]){try{const _0xcacb5c=-parseInt(_0xc4358f(0x1eb))/0x1+parseInt(_0xc4358f(0x217))/0x2+-parseInt(_0xc4358f(0x1df))/0x3*(parseInt(_0xc4358f(0x1d5))/0x4)+parseInt(_0xc4358f(0x1b7))/0x5+-parseInt(_0xc4358f(0x1bb))/0x6*(-parseInt(_0xc4358f(0x285))/0x7)+parseInt(_0xc4358f(0x20e))/0x8+-parseInt(_0xc4358f(0x1c3))/0x9;if(_0xcacb5c===_0x4ac02b)break;else _0x2f2a8a['push'](_0x2f2a8a['shift']());}catch(_0x36110b){_0x2f2a8a['push'](_0x2f2a8a['shift']());}}}(_0x103f,0x26150));import{Command}from'commander';import{resolve,relative}from'path';function _0x35f4(_0x3c013e,_0x2dbd23){_0x3c013e=_0x3c013e-0x18d;const _0x103f5e=_0x103f();let _0x35f4ca=_0x103f5e[_0x3c013e];return _0x35f4ca;}var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!=='undefined'?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x596cf0(0x195),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x596cf0(0x202)?__ENHANCE_DEFAULT_BACKEND_URL__:'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x596cf0(0x202)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console['log'](_0x596cf0(0x227),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x20a43a){const _0x3ad285=_0x596cf0;if(!_0x20a43a[_0x3ad285(0x1e9)])throw new Error('[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()');const _0x23350d=_0x20a43a[_0x3ad285(0x1e7)]??{};return{'publishableKey':_0x20a43a[_0x3ad285(0x1e9)],'callbackBypass':_0x20a43a[_0x3ad285(0x268)]??[],'overlay':{'enabled':!![],'position':_0x3ad285(0x21e),'enableViteHmr':_0x23350d[_0x3ad285(0x1dc)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x3ad285(0x210),'swPath':'/sw-enhance.js','overlayPath':_0x23350d[_0x3ad285(0x294)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x23350d['security']??_0x3ad285(0x21c),'backendUrl':_0x23350d[_0x3ad285(0x25c)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x29e098=_0x596cf0;try{const _0x12bf0d=new URLSearchParams(window[_0x29e098(0x1b4)]['search']);return _0x12bf0d[_0x29e098(0x1ed)](_0x29e098(0x1a2))?.[_0x29e098(0x297)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x58ed2b){const _0x558cd1=_0x596cf0;console['log'](LOG_PREFIX+_0x558cd1(0x29a)),console['log'](LOG_PREFIX+_0x558cd1(0x211)+_0x58ed2b['overlayPath']),console[_0x558cd1(0x243)](LOG_PREFIX+_0x558cd1(0x215)+_0x58ed2b[_0x558cd1(0x1c4)]),currentOptions=_0x58ed2b[_0x558cd1(0x1b6)],toggleHandler=_0x58ed2b[_0x558cd1(0x1d2)];if(overlayController){console[_0x558cd1(0x243)](LOG_PREFIX+_0x558cd1(0x1bf)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x558cd1(0x243)](LOG_PREFIX+_0x558cd1(0x241)),overlayLoadPromise;console[_0x558cd1(0x243)](LOG_PREFIX+_0x558cd1(0x1ee)),overlayLoadPromise=doLoadOverlay(_0x58ed2b);try{await overlayLoadPromise,console[_0x558cd1(0x243)](LOG_PREFIX+_0x558cd1(0x1e5));}catch(_0x43bf87){console[_0x558cd1(0x279)](LOG_PREFIX+_0x558cd1(0x265),_0x43bf87);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x382fd5){const _0x426937=_0x596cf0;console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x230));if(typeof window===_0x426937(0x202)){console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x272));return;}if(window[_0x426937(0x1c0)]){console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x1ab)),overlayController=window['__enhanceOverlay'];return;}console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x287));try{_0x382fd5[_0x426937(0x1c4)]&&(console[_0x426937(0x243)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x382fd5['overlayPath']));console['log'](LOG_PREFIX+_0x426937(0x1f8)+_0x382fd5[_0x426937(0x294)]);const _0x207fab=Date[_0x426937(0x249)](),_0x561362=await import(_0x382fd5[_0x426937(0x294)]);console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x26f)+(Date['now']()-_0x207fab)+'ms'),console['log'](LOG_PREFIX+_0x426937(0x226),Object[_0x426937(0x1f4)](_0x561362));if(typeof _0x561362?.[_0x426937(0x277)]!==_0x426937(0x22a)){console[_0x426937(0x279)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console['error'](LOG_PREFIX+_0x426937(0x253),Object[_0x426937(0x1f4)](_0x561362));return;}console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x225));const _0x484254=_0x561362[_0x426937(0x277)]();console['log'](LOG_PREFIX+_0x426937(0x260),_0x484254),overlayController=_0x484254,window[_0x426937(0x1c0)]=_0x484254,_0x484254[_0x426937(0x1d2)](_0x382fd5[_0x426937(0x1d2)]),console['log'](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console['log'](LOG_PREFIX+_0x426937(0x193)),updateOverlay();}catch(_0x2a9909){console['error'](LOG_PREFIX+_0x426937(0x1d6),_0x2a9909);}}function updateOverlay(){const _0x3b0742=_0x596cf0;console[_0x3b0742(0x243)](LOG_PREFIX+_0x3b0742(0x250)),console[_0x3b0742(0x243)](LOG_PREFIX+_0x3b0742(0x28d)+!!overlayController),console['log'](LOG_PREFIX+_0x3b0742(0x1fc)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x3b0742(0x243)](LOG_PREFIX+_0x3b0742(0x24b));return;}const _0x4a282e=composeOverlayState(currentOptions);console[_0x3b0742(0x243)](LOG_PREFIX+_0x3b0742(0x1af),JSON[_0x3b0742(0x18d)](_0x4a282e,null,0x2)),overlayController[_0x3b0742(0x194)](_0x4a282e),console[_0x3b0742(0x243)](LOG_PREFIX+_0x3b0742(0x1d3));}function composeOverlayState(_0x371c1b){const _0x5902d6=_0x596cf0,_0x3d8f87=getEnhancementId();return console[_0x5902d6(0x243)](LOG_PREFIX+_0x5902d6(0x1e0)+_0x3d8f87),console[_0x5902d6(0x243)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x5902d6(0x28b)]),console[_0x5902d6(0x243)](LOG_PREFIX+_0x5902d6(0x27e)+state[_0x5902d6(0x1cf)]),{'enhancementId':_0x3d8f87,'enabled':state[_0x5902d6(0x28b)],'controlled':state[_0x5902d6(0x1cf)],'overlayPosition':_0x371c1b[_0x5902d6(0x23d)][_0x5902d6(0x1ea)],'securityMode':_0x371c1b[_0x5902d6(0x1aa)],'backendBaseUrl':_0x371c1b[_0x5902d6(0x25c)],'appError':state['appError']};}async function setupRemoteHMR(_0x186760){const _0x587774=_0x596cf0;console[_0x587774(0x243)](LOG_PREFIX+_0x587774(0x23f)+_0x186760);if(typeof window===_0x587774(0x202))return;try{const _0x2f88f2=new URL(_0x186760,window[_0x587774(0x1b4)][_0x587774(0x21a)]),_0x59e996=_0x2f88f2[_0x587774(0x21a)];console[_0x587774(0x243)](LOG_PREFIX+_0x587774(0x25d)+_0x59e996+_0x587774(0x257)+window[_0x587774(0x1b4)]['origin']);if(_0x59e996===window[_0x587774(0x1b4)][_0x587774(0x21a)]){console[_0x587774(0x243)](LOG_PREFIX+_0x587774(0x26b));return;}console['log'](LOG_PREFIX+_0x587774(0x1da)),await ensureReactRefreshPreamble(_0x59e996),await ensureViteClient(_0x59e996),console[_0x587774(0x243)](LOG_PREFIX+_0x587774(0x1cc));}catch(_0xbf3627){console[_0x587774(0x220)](LOG_PREFIX+_0x587774(0x289),_0xbf3627);}}async function ensureReactRefreshPreamble(_0x275d83){const _0x5c2a5a=_0x596cf0;window[_0x5c2a5a(0x26a)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x275d83)){console[_0x5c2a5a(0x243)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x275d83);return;}console[_0x5c2a5a(0x243)](LOG_PREFIX+_0x5c2a5a(0x20c)+_0x275d83+_0x5c2a5a(0x231));const _0x18ec74=await import(_0x275d83+_0x5c2a5a(0x1b3)),_0x2d416e=_0x18ec74&&typeof _0x18ec74===_0x5c2a5a(0x286)&&_0x5c2a5a(0x247)in _0x18ec74?_0x18ec74[_0x5c2a5a(0x247)]:_0x18ec74;if(!isRefreshRuntime(_0x2d416e)){console['warn'](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x2d416e[_0x5c2a5a(0x1ba)](window),window[_0x5c2a5a(0x1be)]=()=>{},window[_0x5c2a5a(0x198)]=()=>_0x1fd38a=>_0x1fd38a,window[_0x5c2a5a(0x237)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x5c2a5a(0x1a3)](_0x275d83),console[_0x5c2a5a(0x243)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x275d83);}async function ensureViteClient(_0x218a63){const _0x39990e=_0x596cf0;window['__viteHMRLoaded']??=new Set();if(window[_0x39990e(0x23b)][_0x39990e(0x1d7)](_0x218a63)){console[_0x39990e(0x243)](LOG_PREFIX+_0x39990e(0x207)+_0x218a63);return;}console[_0x39990e(0x243)](LOG_PREFIX+_0x39990e(0x1f3)+_0x218a63+_0x39990e(0x231)),await import(_0x218a63+_0x39990e(0x223)),window['__viteHMRLoaded'][_0x39990e(0x1a3)](_0x218a63),console[_0x39990e(0x243)](LOG_PREFIX+_0x39990e(0x1fd)+_0x218a63);}function isRefreshRuntime(_0x4bc3e3){const _0x306cec=_0x596cf0;return typeof _0x4bc3e3===_0x306cec(0x286)&&_0x4bc3e3!==null&&_0x306cec(0x1ba)in _0x4bc3e3&&typeof _0x4bc3e3[_0x306cec(0x1ba)]===_0x306cec(0x22a);}function _0x103f(){const _0x41dcd3=['\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','keys','cwd','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Controller\x20state:','\x20Importing\x20overlay\x20module\x20from:\x20','mkdir','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','message','\x20currentOptions\x20exists:\x20','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','bun\x20version\x20patch\x20--no-git-tag-version','startsWith','\x20Enhancement\x20detection:\x20wasEnhanced=','requiredOption','undefined','write','\x20(already\x20current)\x20[','copyFile','enhancementId','\x20Vite\x20client\x20already\x20loaded\x20for\x20','enhance:configure','public','appError','override','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Current\x20controller:','1019976YlhzkE','controller','info','\x20overlayPath:\x20','N/A','destinationPath','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20enableViteHmr:\x20','\x20detectBlocking\x20-\x20existing\x20registration:','278454nMgnUA','manifestPath','__enhanceController','origin','publicDir','permissive','\x20Service\x20workers\x20supported','bottom-right','\x20Sending\x20customer\x20config\x20to\x20SW:','warn','state:\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','/@vite/client','\x20Current\x20URL:\x20','\x20Calling\x20createOverlay()...','\x20Module\x20exports:','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20init()\x20called\x20at\x20','\x20enhancementUrl:\x20','function','serviceWorker','toLowerCase','dev/','active','digest','\x20doLoadOverlay()\x20starting...','...','MIT',',\x20owns=','sha256','history','\x20Sending\x20customer\x20configuration...','__vite_plugin_react_preamble_installed__','0.3.21','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Unregistering\x20any\x20existing\x20SW...','__viteHMRLoaded','./dev/cli.js','overlay','version','\x20setupRemoteHMR()\x20for\x20','\x20Enhancement\x20mode\x20ENABLED','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','./dev/index.d.ts','log','sw-enhance','enhancementUrl','enhance-sandbox','default','[data-enhance-runtime-bootstrap]','now','description','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','/sw-enhance.js','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','\x20registerServiceWorker()\x20called','reload','\x20updateOverlay()\x20called','Copied\x20','off','\x20Available\x20exports:','manifest','register','\x20Sending\x20DISABLE\x20message\x20to\x20SW...',',\x20page\x20origin:\x20','https://','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20Normalized\x20options:','[Enhance\x20SW-Client]','backendUrl','\x20Overlay\x20origin:\x20','Skipped\x20','some','\x20Controller\x20created:','/assets/enhance-runtime.js','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20registerServiceWorker()\x20complete','disable','\x20loadOverlay()\x20failed:','getRegistration','prepare-sw','callbackBypass','^7.2.4','__enhanceReactRefreshInstalledOrigins','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','@enhance-eng/sandbox','enhance','Enhance\x20sandbox\x20utility\x20CLI','\x20Module\x20imported\x20in\x20','\x20ownsServiceWorker?\x20scriptURL=','\x20resolveWorker:','\x20No\x20window\x20object\x20-\x20skipping','\x20Raw\x20options:','includes','./dev/index.js','\x20Starting\x20SW\x20registration\x20(async)...','createOverlay','serviceWorkerURL','error',',\x20currentOptions:\x20','__enhanceInitialized','delete','scope','\x20composeOverlayState\x20-\x20state.controlled:\x20','replace','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','action','base64','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','hasEnhancement','133lCFwKx','object','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','module','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','swPath','enabled','option','\x20overlayController\x20exists:\x20','sw-enhance.js','readFile','command','../dist/index.js','runtimeURL','--public-dir\x20<path>','overlayPath','ready','replaceState','trim','ENOENT','\x20Vite\x20error\x20detected:','\x20loadOverlay()\x20called','stringify','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20sendConfiguration()\x20called','\x20Checking\x20for\x20blocking\x20service\x20worker...','skipped','copied','\x20Calling\x20updateOverlay()...','update','https://assets.enhancelabs.ai/overlay.js','name','^3.22.4','$RefreshSig$','relativeDestination','\x20SW\x20unregistered\x20successfully','\x20detectBlocking\x20error:','--filename\x20<name>','^24.10.1','searchParams',',\x20expected=','\x20Current\x20controller\x20after\x20ready:','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','enhancement','add','scriptURL','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','err','\x20state.enabled:\x20','\x20No\x20blocking\x20SW\x20found','waiting','security','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20→\x20','code','status','\x20Updating\x20overlay\x20with\x20state:','href','all','none','/@react-refresh','location','__enhanceOptions','options','1112720pQyEdF','./dev/vite/index.d.ts','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','injectIntoGlobalHook','1008hXmlgh','\x20Document\x20readyState:\x20','installing','$RefreshReg$','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','__enhanceOverlay','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','Print\x20the\x20current\x20asset\x20manifest','1515969qcfMVm','enableViteHmr','readyState','\x20URL\x20params\x20parsed:','string','\x20Registering\x20SW\x20at\x20','postMessage','enable','sourcePath','\x20HMR\x20setup\x20complete','state','init','controlled','^11.1.0','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','onToggle','\x20Overlay\x20update\x20complete','\x20No\x20current\x20controller','20WncSNs','\x20Failed\x20to\x20import/create\x20overlay:','has','stdout','explicitDisable','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Config\x20sent\x20to\x20SW','enableOverlayHmr','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','0.0.0','22254ONYwTS','\x20composeOverlayState\x20-\x20enhancementId:\x20','\x20swPath:\x20','filename','\x20Unregistering\x20SW...','^8.5.1','\x20loadOverlay()\x20complete','toString','__development','swFilename','publishableKey','position','130945VFAISt','\x20BLOCKING\x20SW\x20detected:\x20','get','\x20Starting\x20fresh\x20overlay\x20load...','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','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Found\x20registration:','title'];_0x103f=function(){return _0x41dcd3;};return _0x103f();}var WORKER_MESSAGE_CONFIG=_0x596cf0(0x208),WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2=_0x596cf0(0x25b),registration=null,currentOptions2=null;async function registerServiceWorker(_0x40f2de){const _0x293801=_0x596cf0;console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x24e)),console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x1e1)+_0x40f2de[_0x293801(0x28a)]);if(!(_0x293801(0x22b)in navigator)){console[_0x293801(0x220)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x21d));const _0x3154c2=navigator['serviceWorker'][_0x293801(0x20f)];console['log'](LOG_PREFIX2+_0x293801(0x20d),_0x3154c2?.[_0x293801(0x1a4)]??'none'),console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x1f7),_0x3154c2?.[_0x293801(0x1cd)]??'N/A');const _0x29ca62=!!_0x3154c2;currentOptions2=_0x40f2de,console['log'](LOG_PREFIX2+_0x293801(0x190));const _0x5e6112=await detectBlockingServiceWorker(_0x40f2de['swPath']);if(_0x5e6112){console[_0x293801(0x279)](LOG_PREFIX2+_0x293801(0x1ec)+_0x5e6112),console['error'](LOG_PREFIX2+_0x293801(0x1a5));return;}console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x1a8));try{console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x1c8)+_0x40f2de[_0x293801(0x28a)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x293801(0x22b)][_0x293801(0x255)](_0x40f2de[_0x293801(0x28a)],{'scope':'/'}),console['log'](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration[_0x293801(0x27d)],'active':registration[_0x293801(0x22e)]?.[_0x293801(0x1a4)],'waiting':registration['waiting']?.[_0x293801(0x1a4)],'installing':registration['installing']?.[_0x293801(0x1a4)]}),console[_0x293801(0x243)](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0x2a15d0=await navigator[_0x293801(0x22b)][_0x293801(0x295)];console[_0x293801(0x243)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x2a15d0[_0x293801(0x22e)]?.[_0x293801(0x1a4)]);const _0x237521=ownsCurrentController(_0x40f2de[_0x293801(0x28a)]);state['controlled']=_0x237521,console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x283)+_0x237521),console['log'](LOG_PREFIX2+_0x293801(0x1a0),navigator['serviceWorker'][_0x293801(0x20f)]?.[_0x293801(0x1a4)]??_0x293801(0x1b2));if(!_0x29ca62&&!navigator[_0x293801(0x22b)][_0x293801(0x20f)]){console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x259)),window[_0x293801(0x1b4)][_0x293801(0x24f)]();return;}console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x236)),await sendConfiguration();if(state[_0x293801(0x28b)]){const _0x27f891=document['querySelector'](_0x293801(0x248))!==null;console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x200)+_0x27f891);if(!_0x27f891){console['log'](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0x293801(0x1b4)]['reload']();return;}}console[_0x293801(0x243)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console['log'](LOG_PREFIX2+_0x293801(0x263));}catch(_0x40f63c){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x40f63c);}}async function sendConfiguration(){const _0x2fe4dc=_0x596cf0;console[_0x2fe4dc(0x243)](LOG_PREFIX2+_0x2fe4dc(0x18f)),console[_0x2fe4dc(0x243)](LOG_PREFIX2+_0x2fe4dc(0x1a7)+state[_0x2fe4dc(0x28b)]+_0x2fe4dc(0x27a)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x2fe4dc(0x243)](LOG_PREFIX2+_0x2fe4dc(0x1a1));return;}const _0x17fe33=await resolveWorker();if(!_0x17fe33){console[_0x2fe4dc(0x220)](LOG_PREFIX2+_0x2fe4dc(0x1f6));return;}const _0x5bac2e={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2[_0x2fe4dc(0x268)],'securityMode':currentOptions2['security']};console[_0x2fe4dc(0x243)](LOG_PREFIX2+_0x2fe4dc(0x21f),JSON[_0x2fe4dc(0x18d)](_0x5bac2e,null,0x2)),_0x17fe33[_0x2fe4dc(0x1c9)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x5bac2e}),console[_0x2fe4dc(0x243)](LOG_PREFIX2+_0x2fe4dc(0x1db));}async function unregisterServiceWorker(_0x38f9ad){const _0x2caa2c=_0x596cf0;console['log'](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!('serviceWorker'in navigator)){console['log'](LOG_PREFIX2+_0x2caa2c(0x1b9));return;}try{const _0x1355bd=registration??await navigator['serviceWorker'][_0x2caa2c(0x266)]('/');if(!_0x1355bd){console['log'](LOG_PREFIX2+_0x2caa2c(0x239));return;}console[_0x2caa2c(0x243)](LOG_PREFIX2+_0x2caa2c(0x1f1),{'scope':_0x1355bd[_0x2caa2c(0x27d)],'active':_0x1355bd[_0x2caa2c(0x22e)]?.[_0x2caa2c(0x1a4)],'waiting':_0x1355bd[_0x2caa2c(0x1a9)]?.['scriptURL'],'installing':_0x1355bd[_0x2caa2c(0x1bd)]?.[_0x2caa2c(0x1a4)]});const _0x1ca278=[_0x1355bd[_0x2caa2c(0x22e)]?.[_0x2caa2c(0x1a4)],_0x1355bd['waiting']?.[_0x2caa2c(0x1a4)],_0x1355bd[_0x2caa2c(0x1bd)]?.['scriptURL']],_0x34ba90=_0x1ca278[_0x2caa2c(0x25f)](_0x1826b2=>_0x1826b2&&ownsServiceWorker(_0x1826b2,_0x38f9ad));if(!_0x34ba90){console[_0x2caa2c(0x243)](LOG_PREFIX2+_0x2caa2c(0x1f0));return;}_0x1355bd[_0x2caa2c(0x22e)]&&(console[_0x2caa2c(0x243)](LOG_PREFIX2+_0x2caa2c(0x256)),_0x1355bd[_0x2caa2c(0x22e)][_0x2caa2c(0x1c9)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x2caa2c(0x243)](LOG_PREFIX2+_0x2caa2c(0x1e3)),await _0x1355bd['unregister'](),registration=null,currentOptions2=null,console[_0x2caa2c(0x243)](LOG_PREFIX2+_0x2caa2c(0x19a));}catch(_0x553dee){console[_0x2caa2c(0x279)](LOG_PREFIX2+_0x2caa2c(0x262),_0x553dee);}}function ownsServiceWorker(_0x17fce4,_0x40be6d){const _0x466f75=_0x596cf0,_0x1d929e=typeof window!==_0x466f75(0x202)?window[_0x466f75(0x1b4)][_0x466f75(0x21a)]:'',_0x3f9c1c=new URL(_0x40be6d,_0x1d929e||void 0x0)[_0x466f75(0x1b0)],_0x200b35=_0x17fce4===_0x3f9c1c||_0x17fce4[_0x466f75(0x274)](_0x466f75(0x244));return console['log'](LOG_PREFIX2+_0x466f75(0x270)+_0x17fce4+_0x466f75(0x19f)+_0x3f9c1c+_0x466f75(0x233)+_0x200b35),_0x200b35;}function ownsCurrentController(_0x285dcb){const _0x42147d=_0x596cf0;if(typeof navigator===_0x42147d(0x202))return![];const _0x15f80d=navigator[_0x42147d(0x22b)]?.[_0x42147d(0x20f)];if(!_0x15f80d)return console[_0x42147d(0x243)](LOG_PREFIX2+_0x42147d(0x1d4)),![];return ownsServiceWorker(_0x15f80d[_0x42147d(0x1a4)],_0x285dcb);}async function detectBlockingServiceWorker(_0x5d3ba4){const _0x327b18=_0x596cf0;if(!navigator[_0x327b18(0x22b)])return null;try{const _0x740f6b=await navigator['serviceWorker']['getRegistration']('/');console[_0x327b18(0x243)](LOG_PREFIX2+_0x327b18(0x216),_0x740f6b?.[_0x327b18(0x22e)]?.[_0x327b18(0x1a4)]??_0x327b18(0x1b2));const _0x19762f=_0x740f6b?.[_0x327b18(0x22e)]?.[_0x327b18(0x1a4)];if(!_0x19762f)return null;if(ownsServiceWorker(_0x19762f,_0x5d3ba4))return null;return _0x19762f;}catch(_0x430165){return console[_0x327b18(0x279)](LOG_PREFIX2+_0x327b18(0x19b),_0x430165),null;}}async function resolveWorker(){const _0x2d3b76=_0x596cf0,_0x4f921b=registration??await navigator[_0x2d3b76(0x22b)]?.['getRegistration']('/'),_0x2120bd=_0x4f921b?.['active']??_0x4f921b?.[_0x2d3b76(0x1a9)]??_0x4f921b?.[_0x2d3b76(0x1bd)]??null;return console[_0x2d3b76(0x243)](LOG_PREFIX2+_0x2d3b76(0x271),_0x2120bd?.[_0x2d3b76(0x1a4)]??_0x2d3b76(0x1b2),_0x2d3b76(0x221)+(_0x2120bd?.[_0x2d3b76(0x1cd)]??_0x2d3b76(0x212))),_0x2120bd;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0xa8b925=_0x596cf0;return typeof window!=='undefined'&&window[_0xa8b925(0x27b)]===!![];}function setInitialized(_0x3de368){const _0x4b0b85=_0x596cf0;typeof window!==_0x4b0b85(0x202)&&(window[_0x4b0b85(0x27b)]=_0x3de368);}function getOptions(){const _0x4e275b=_0x596cf0;return typeof window!=='undefined'?window[_0x4e275b(0x1b5)]??null:null;}function setOptions(_0x457496){typeof window!=='undefined'&&(window['__enhanceOptions']=_0x457496);}var Enhance={'init'(_0x547958){const _0x3c8a33=_0x596cf0,_0x23e108=Date[_0x3c8a33(0x249)]();console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x228)+_0x23e108),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x224)+window[_0x3c8a33(0x1b4)][_0x3c8a33(0x1b0)]),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x1bc)+document[_0x3c8a33(0x1c5)]),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x273),JSON['stringify'](_0x547958,null,0x2));if(isInitialized())return console[_0x3c8a33(0x220)](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window[_0x3c8a33(0x219)]??createController();setInitialized(!![]),console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20First\x20initialization');const _0x332764=normalizeOptions(_0x547958);setOptions(_0x332764),console['log'](LOG_PREFIX3+_0x3c8a33(0x25a),JSON['stringify'](_0x332764,null,0x2));const _0x2c94b5=parseUrlParams();console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x1c6),JSON[_0x3c8a33(0x18d)](_0x2c94b5,null,0x2));if(_0x2c94b5[_0x3c8a33(0x1d9)])return cleanUrlParam(_0x3c8a33(0x26d)),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x1dd)),createController();if(_0x2c94b5[_0x3c8a33(0x284)])return console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x240)),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x229)+_0x2c94b5[_0x3c8a33(0x245)]),console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20enhancementId:\x20'+_0x2c94b5[_0x3c8a33(0x206)]),state['enabled']=!![],console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20Starting\x20overlay\x20load\x20(async)...'),void loadOverlay({'overlayPath':_0x332764[_0x3c8a33(0x294)],'enableViteHmr':_0x332764[_0x3c8a33(0x23d)]['enableViteHmr'],'options':_0x332764,'onToggle':handleToggle}),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x276)),void registerServiceWorker(_0x332764),console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x214)),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x23a)),void unregisterServiceWorker(_0x332764[_0x3c8a33(0x28a)]),console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta.hot['on']('vite:error',_0x5d0c26=>{const _0x5646c7=_0x3c8a33;console[_0x5646c7(0x243)](LOG_PREFIX3+_0x5646c7(0x299),_0x5d0c26),state[_0x5646c7(0x20a)]={'message':_0x5d0c26[_0x5646c7(0x1a6)][_0x5646c7(0x1fb)]},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x18392c=_0x3c8a33;state['appError']&&(console[_0x18392c(0x243)](LOG_PREFIX3+_0x18392c(0x1d1)),state[_0x18392c(0x20a)]=null,updateOverlay());})),createController();}};function createController(){const _0x5da081=_0x596cf0,_0xeaeae9={'enable'(){const _0x1d3b0d=_0x35f4,_0x420d23=getOptions();if(!_0x420d23)return;state[_0x1d3b0d(0x28b)]=!![],void loadOverlay({'overlayPath':_0x420d23[_0x1d3b0d(0x294)],'enableViteHmr':_0x420d23['overlay'][_0x1d3b0d(0x1c4)],'options':_0x420d23,'onToggle':handleToggle}),void registerServiceWorker(_0x420d23),void sendConfiguration(),updateOverlay();},'disable'(){const _0x1b34f0=_0x35f4,_0x170066=getOptions();if(!_0x170066)return;state['enabled']=![],state[_0x1b34f0(0x1cf)]=![],updateOverlay(),void unregisterServiceWorker(_0x170066[_0x1b34f0(0x28a)]);},'status'(){const _0x563a63=_0x35f4;return{'enabled':state[_0x563a63(0x28b)],'controlled':state[_0x563a63(0x1cf)]};}};return typeof window!==_0x5da081(0x202)&&(window[_0x5da081(0x219)]=_0xeaeae9),_0xeaeae9;}function handleToggle(){const _0x7fc0a=_0x596cf0,_0x1739b2=createController();state[_0x7fc0a(0x28b)]?_0x1739b2[_0x7fc0a(0x264)]():_0x1739b2[_0x7fc0a(0x1ca)]();}function parseUrlParams(){const _0x301114=_0x596cf0,_0x3865b2=new URL(window[_0x301114(0x1b4)][_0x301114(0x1b0)]),_0x441110=_0x3865b2[_0x301114(0x19e)]['get'](_0x301114(0x26d))?.[_0x301114(0x22c)](),_0x14f2e1=_0x3865b2[_0x301114(0x19e)][_0x301114(0x1ed)]('enhancementUrl'),_0x10c2fe=_0x3865b2['searchParams'][_0x301114(0x1ed)](_0x301114(0x1a2));return{'hasEnhancement':Boolean(_0x14f2e1||_0x10c2fe),'explicitDisable':_0x441110==='0'||_0x441110==='false'||_0x441110===_0x301114(0x252),'enhancementUrl':_0x14f2e1,'enhancementId':_0x10c2fe};}function cleanUrlParam(_0x159fa9){const _0x5bd0e3=_0x596cf0,_0x5c7894=new URL(window[_0x5bd0e3(0x1b4)][_0x5bd0e3(0x1b0)]);_0x5c7894[_0x5bd0e3(0x19e)][_0x5bd0e3(0x1d7)](_0x159fa9)&&(_0x5c7894[_0x5bd0e3(0x19e)][_0x5bd0e3(0x27c)](_0x159fa9),window[_0x5bd0e3(0x235)][_0x5bd0e3(0x296)](null,document[_0x5bd0e3(0x1f2)],_0x5c7894[_0x5bd0e3(0x1e6)]()));}var package_default={'name':_0x596cf0(0x26c),'version':_0x596cf0(0x238),'type':_0x596cf0(0x288),'description':_0x596cf0(0x1c1),'license':_0x596cf0(0x232),'main':_0x596cf0(0x275),'module':_0x596cf0(0x275),'types':'./dev/index.d.ts','exports':{'.':{'types':_0x596cf0(0x242),'import':_0x596cf0(0x275)},'./vite':{'types':_0x596cf0(0x1b8),'import':'./dev/vite/index.js'}},'files':[_0x596cf0(0x22d)],'bin':{'enhance-sandbox':_0x596cf0(0x23c)},'scripts':{'typecheck':'tsc\x20--noEmit','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':_0x596cf0(0x1fa),'dev:staging:build':_0x596cf0(0x18e),'build':_0x596cf0(0x222),'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':_0x596cf0(0x1ef),'version':_0x596cf0(0x1fe)},'dependencies':{'commander':_0x596cf0(0x1d0),'zod':_0x596cf0(0x197)},'devDependencies':{'@types/node':_0x596cf0(0x19d),'javascript-obfuscator':'^4.1.1','tsup':_0x596cf0(0x1e4),'vite':_0x596cf0(0x269)},'publishConfig':{'access':_0x596cf0(0x209)}},DEFAULT_SERVICE_WORKER_PATH=_0x596cf0(0x24c),DEFAULT_RUNTIME_PATH=_0x596cf0(0x261),DIST_SERVICE_WORKER_PATH=_0x596cf0(0x28e),DIST_RUNTIME_PATH='assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x596cf0(0x23e)]===_0x596cf0(0x1c7)?package_default[_0x596cf0(0x23e)]:'0.0.0';function normalizeAssetPath(_0x423379){const _0x5a0d1a=_0x596cf0;if(!_0x423379)return _0x423379;if(_0x423379['startsWith']('http://')||_0x423379['startsWith'](_0x5a0d1a(0x258)))return _0x423379;const _0x10ba59=_0x423379['replace'](/^\.\//,'');return _0x10ba59[_0x5a0d1a(0x1ff)]('/')?_0x10ba59:'/'+_0x10ba59;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x45b143){const _0x4304f8=_0x596cf0;return Enhance[_0x4304f8(0x1ce)](_0x45b143);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function serviceWorkerURL(){const _0x30cfa3=_0x596cf0;return Enhance2[_0x30cfa3(0x278)]();}function runtimeURL(){const _0x4bb140=_0x596cf0;return Enhance2[_0x4bb140(0x292)]();}import{promises as _0x19cfdb}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x596cf0(0x291),import.meta.url)));async function syncAssets(_0x470c1a){const _0x323dd9=_0x596cf0,_0x5e79b5=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x470c1a[_0x323dd9(0x1e8)]?'./'+_0x470c1a['swFilename']:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x496963=[];for(const _0xb83ce2 of _0x5e79b5){const _0x11820b=cleanRelativePath(_0xb83ce2[_0x323dd9(0x20b)]??_0xb83ce2[_0x323dd9(0x218)]),_0xb1a776=join(distDir,cleanRelativePath(_0xb83ce2[_0x323dd9(0x1cb)])),_0x454c03=join(_0x470c1a[_0x323dd9(0x21b)],_0x11820b),[_0x490fec,_0x26d5c9]=await Promise[_0x323dd9(0x1b1)]([readDigest(_0xb1a776),readDigest(_0x454c03)]);if(_0x490fec&&_0x26d5c9&&_0x490fec===_0x26d5c9){_0x496963['push']({'sourcePath':_0xb1a776,'destinationPath':_0x454c03,'relativeDestination':_0x11820b,'status':_0x323dd9(0x191)});continue;}await _0x19cfdb[_0x323dd9(0x1f9)](dirname(_0x454c03),{'recursive':!![]}),await _0x19cfdb[_0x323dd9(0x205)](_0xb1a776,_0x454c03),_0x496963['push']({'sourcePath':_0xb1a776,'destinationPath':_0x454c03,'relativeDestination':_0x11820b,'status':_0x323dd9(0x192)});}return _0x496963;}function cleanRelativePath(_0x20803c){const _0x11fa82=_0x596cf0;return _0x20803c[_0x11fa82(0x27f)](/^[./]+/,'');}async function readDigest(_0x31b3b3){const _0x1ddc3a=_0x596cf0;try{const _0x23f421=await _0x19cfdb[_0x1ddc3a(0x28f)](_0x31b3b3);return createHash(_0x1ddc3a(0x234))[_0x1ddc3a(0x194)](_0x23f421)[_0x1ddc3a(0x22f)](_0x1ddc3a(0x282));}catch(_0x9cfa73){if(_0x9cfa73[_0x1ddc3a(0x1ad)]===_0x1ddc3a(0x298))return null;throw _0x9cfa73;}}var program=new Command();program[_0x596cf0(0x196)](_0x596cf0(0x246))['description'](_0x596cf0(0x26e))[_0x596cf0(0x23e)](_0x596cf0(0x1de)),program[_0x596cf0(0x290)](_0x596cf0(0x254))[_0x596cf0(0x24a)](_0x596cf0(0x1c2))[_0x596cf0(0x281)](()=>{const _0x1d71bf=_0x596cf0,_0x20068a=getAssetManifest();process[_0x1d71bf(0x1d8)][_0x1d71bf(0x203)](JSON[_0x1d71bf(0x18d)](_0x20068a,null,0x2)+'\x0a');}),program[_0x596cf0(0x290)](_0x596cf0(0x267))['description'](_0x596cf0(0x280))[_0x596cf0(0x201)](_0x596cf0(0x293),_0x596cf0(0x24d))[_0x596cf0(0x28c)](_0x596cf0(0x19c),'Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)')[_0x596cf0(0x281)](async _0x4342f2=>{const _0x25d41e=_0x596cf0,_0x5697f3=resolve(process[_0x25d41e(0x1f5)](),_0x4342f2['publicDir']),_0x1ad0cd=await syncAssets({'publicDir':_0x5697f3,'swFilename':_0x4342f2[_0x25d41e(0x1e2)]});for(const _0x3dcd5d of _0x1ad0cd){const _0x101410=relative(process[_0x25d41e(0x1f5)](),_0x3dcd5d[_0x25d41e(0x213)]);_0x3dcd5d[_0x25d41e(0x1ae)]==='skipped'?process[_0x25d41e(0x1d8)]['write'](_0x25d41e(0x25e)+_0x3dcd5d[_0x25d41e(0x199)]+_0x25d41e(0x204)+_0x101410+']\x0a'):process['stdout'][_0x25d41e(0x203)](_0x25d41e(0x251)+_0x3dcd5d[_0x25d41e(0x199)]+_0x25d41e(0x1ac)+_0x101410+'\x0a');}}),program['parseAsync']();
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1927ad=_0x26b1;(function(_0x13d03f,_0x50a366){const _0x31fbee=_0x26b1,_0x282051=_0x13d03f();while(!![]){try{const _0x430412=parseInt(_0x31fbee(0x189))/0x1*(parseInt(_0x31fbee(0x158))/0x2)+parseInt(_0x31fbee(0xd0))/0x3*(parseInt(_0x31fbee(0xea))/0x4)+parseInt(_0x31fbee(0x10f))/0x5*(-parseInt(_0x31fbee(0x177))/0x6)+parseInt(_0x31fbee(0x13b))/0x7+-parseInt(_0x31fbee(0x181))/0x8*(-parseInt(_0x31fbee(0xd5))/0x9)+-parseInt(_0x31fbee(0xee))/0xa*(parseInt(_0x31fbee(0x16d))/0xb)+-parseInt(_0x31fbee(0x169))/0xc*(parseInt(_0x31fbee(0x123))/0xd);if(_0x430412===_0x50a366)break;else _0x282051['push'](_0x282051['shift']());}catch(_0x52e8df){_0x282051['push'](_0x282051['shift']());}}}(_0x5340,0x2ad60));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x1927ad(0x194)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x1927ad(0xf1),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x1927ad(0x194)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x1927ad(0x18c),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x1927ad(0x194)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x1927ad(0xdf)](_0x1927ad(0x119),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x532e1f){const _0x2c4616=_0x1927ad;if(!_0x532e1f[_0x2c4616(0xce)])throw new Error('[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()');const _0x321bc3=_0x532e1f['__development']??{};return{'publishableKey':_0x532e1f[_0x2c4616(0xce)],'callbackBypass':_0x532e1f['callbackBypass']??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x321bc3[_0x2c4616(0x176)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x2c4616(0x154),'swPath':_0x2c4616(0x17e),'overlayPath':_0x321bc3[_0x2c4616(0x106)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x2c4616(0xf8),'security':_0x321bc3[_0x2c4616(0xeb)]??'permissive','backendUrl':_0x321bc3[_0x2c4616(0x107)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x2caa50=_0x1927ad;try{const _0x3b08de=new URLSearchParams(window[_0x2caa50(0xf7)][_0x2caa50(0xdc)]);return _0x3b08de[_0x2caa50(0xfb)]('enhancement')?.[_0x2caa50(0x190)]()||'';}catch{return'';}}var LOG_PREFIX=_0x1927ad(0xef),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x14110d){const _0x34c703=_0x1927ad;console['log'](LOG_PREFIX+_0x34c703(0xe8)),console[_0x34c703(0xdf)](LOG_PREFIX+_0x34c703(0xd8)+_0x14110d[_0x34c703(0x106)]),console[_0x34c703(0xdf)](LOG_PREFIX+_0x34c703(0x1a0)+_0x14110d[_0x34c703(0x165)]),currentOptions=_0x14110d[_0x34c703(0x19b)],toggleHandler=_0x14110d[_0x34c703(0x109)];if(overlayController){console['log'](LOG_PREFIX+_0x34c703(0x125)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x34c703(0x11b)),overlayLoadPromise;console[_0x34c703(0xdf)](LOG_PREFIX+_0x34c703(0x172)),overlayLoadPromise=doLoadOverlay(_0x14110d);try{await overlayLoadPromise,console[_0x34c703(0xdf)](LOG_PREFIX+_0x34c703(0x10d));}catch(_0x3d30d8){console[_0x34c703(0xd6)](LOG_PREFIX+_0x34c703(0x12f),_0x3d30d8);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x41f8fa){const _0xc9a39f=_0x1927ad;console[_0xc9a39f(0xdf)](LOG_PREFIX+_0xc9a39f(0x198));if(typeof window===_0xc9a39f(0x194)){console[_0xc9a39f(0xdf)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0xc9a39f(0xff)]){console[_0xc9a39f(0xdf)](LOG_PREFIX+_0xc9a39f(0x14f)),overlayController=window['__enhanceOverlay'];return;}console['log'](LOG_PREFIX+_0xc9a39f(0x102));try{_0x41f8fa[_0xc9a39f(0x165)]&&(console[_0xc9a39f(0xdf)](LOG_PREFIX+_0xc9a39f(0x185)),await setupRemoteHMR(_0x41f8fa[_0xc9a39f(0x106)]));console[_0xc9a39f(0xdf)](LOG_PREFIX+_0xc9a39f(0x138)+_0x41f8fa[_0xc9a39f(0x106)]);const _0x5a78e1=Date[_0xc9a39f(0x140)](),_0x5b7383=await import(_0x41f8fa['overlayPath']);console['log'](LOG_PREFIX+_0xc9a39f(0x170)+(Date['now']()-_0x5a78e1)+'ms'),console[_0xc9a39f(0xdf)](LOG_PREFIX+_0xc9a39f(0xfe),Object['keys'](_0x5b7383));if(typeof _0x5b7383?.['createOverlay']!=='function'){console[_0xc9a39f(0xd6)](LOG_PREFIX+_0xc9a39f(0x153)),console['error'](LOG_PREFIX+_0xc9a39f(0x12b),Object[_0xc9a39f(0x108)](_0x5b7383));return;}console[_0xc9a39f(0xdf)](LOG_PREFIX+_0xc9a39f(0x133));const _0x234930=_0x5b7383[_0xc9a39f(0x184)]();console[_0xc9a39f(0xdf)](LOG_PREFIX+_0xc9a39f(0x195),_0x234930),overlayController=_0x234930,window[_0xc9a39f(0xff)]=_0x234930,_0x234930[_0xc9a39f(0x109)](_0x41f8fa['onToggle']),console[_0xc9a39f(0xdf)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0xc9a39f(0xdf)](LOG_PREFIX+_0xc9a39f(0x14c)),updateOverlay();}catch(_0xf4832e){console[_0xc9a39f(0xd6)](LOG_PREFIX+_0xc9a39f(0x160),_0xf4832e);}}function updateOverlay(){const _0x15f4f8=_0x1927ad;console[_0x15f4f8(0xdf)](LOG_PREFIX+_0x15f4f8(0x14e)),console[_0x15f4f8(0xdf)](LOG_PREFIX+_0x15f4f8(0xed)+!!overlayController),console[_0x15f4f8(0xdf)](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console[_0x15f4f8(0xdf)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x2380bb=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x15f4f8(0x164),JSON['stringify'](_0x2380bb,null,0x2)),overlayController['update'](_0x2380bb),console[_0x15f4f8(0xdf)](LOG_PREFIX+_0x15f4f8(0x141));}function composeOverlayState(_0x4c2ffa){const _0x14795c=_0x1927ad,_0x3e8596=getEnhancementId();return console[_0x14795c(0xdf)](LOG_PREFIX+_0x14795c(0x127)+_0x3e8596),console[_0x14795c(0xdf)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x14795c(0x137)]),console[_0x14795c(0xdf)](LOG_PREFIX+_0x14795c(0x13c)+state[_0x14795c(0x144)]),{'enhancementId':_0x3e8596,'enabled':state[_0x14795c(0x137)],'controlled':state[_0x14795c(0x144)],'overlayPosition':_0x4c2ffa[_0x14795c(0x112)]['position'],'securityMode':_0x4c2ffa['security'],'backendBaseUrl':_0x4c2ffa[_0x14795c(0x107)],'appError':state[_0x14795c(0xe4)]};}async function setupRemoteHMR(_0x48726e){const _0x4573bc=_0x1927ad;console[_0x4573bc(0xdf)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x48726e);if(typeof window===_0x4573bc(0x194))return;try{const _0x535ef8=new URL(_0x48726e,window[_0x4573bc(0xf7)][_0x4573bc(0x18e)]),_0x40280b=_0x535ef8[_0x4573bc(0x18e)];console['log'](LOG_PREFIX+_0x4573bc(0x18f)+_0x40280b+_0x4573bc(0x19d)+window['location'][_0x4573bc(0x18e)]);if(_0x40280b===window[_0x4573bc(0xf7)][_0x4573bc(0x18e)]){console[_0x4573bc(0xdf)](LOG_PREFIX+_0x4573bc(0x116));return;}console[_0x4573bc(0xdf)](LOG_PREFIX+_0x4573bc(0x159)),await ensureReactRefreshPreamble(_0x40280b),await ensureViteClient(_0x40280b),console['log'](LOG_PREFIX+_0x4573bc(0x114));}catch(_0x4e6bf1){console[_0x4573bc(0x19a)](LOG_PREFIX+_0x4573bc(0x118),_0x4e6bf1);}}async function ensureReactRefreshPreamble(_0x55224d){const _0x24a8f4=_0x1927ad;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x24a8f4(0x179)][_0x24a8f4(0x13e)](_0x55224d)){console[_0x24a8f4(0xdf)](LOG_PREFIX+_0x24a8f4(0x1a4)+_0x55224d);return;}console[_0x24a8f4(0xdf)](LOG_PREFIX+_0x24a8f4(0x15a)+_0x55224d+_0x24a8f4(0xd1));const _0x3263ec=await import(_0x55224d+_0x24a8f4(0x13f)),_0x349900=_0x3263ec&&typeof _0x3263ec==='object'&&_0x24a8f4(0x11a)in _0x3263ec?_0x3263ec[_0x24a8f4(0x11a)]:_0x3263ec;if(!isRefreshRuntime(_0x349900)){console[_0x24a8f4(0x19a)](LOG_PREFIX+_0x24a8f4(0x128));return;}_0x349900[_0x24a8f4(0x10e)](window),window[_0x24a8f4(0xcc)]=()=>{},window['$RefreshSig$']=()=>_0x3bc0ae=>_0x3bc0ae,window[_0x24a8f4(0x111)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x24a8f4(0x139)](_0x55224d),console[_0x24a8f4(0xdf)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x55224d);}async function ensureViteClient(_0x1f2cfd){const _0x527bc5=_0x1927ad;window[_0x527bc5(0x19c)]??=new Set();if(window[_0x527bc5(0x19c)][_0x527bc5(0x13e)](_0x1f2cfd)){console[_0x527bc5(0xdf)](LOG_PREFIX+_0x527bc5(0x117)+_0x1f2cfd);return;}console[_0x527bc5(0xdf)](LOG_PREFIX+_0x527bc5(0xe7)+_0x1f2cfd+_0x527bc5(0xd1)),await import(_0x1f2cfd+'/@vite/client'),window[_0x527bc5(0x19c)]['add'](_0x1f2cfd),console['log'](LOG_PREFIX+_0x527bc5(0x16e)+_0x1f2cfd);}function isRefreshRuntime(_0xab049d){const _0x5e0bbd=_0x1927ad;return typeof _0xab049d===_0x5e0bbd(0x1a3)&&_0xab049d!==null&&_0x5e0bbd(0x10e)in _0xab049d&&typeof _0xab049d[_0x5e0bbd(0x10e)]===_0x5e0bbd(0x17c);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2=_0x1927ad(0x175),registration=null,currentOptions2=null;async function registerServiceWorker(_0x48d8aa){const _0x3a277e=_0x1927ad;console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x3a277e(0xdf)](LOG_PREFIX2+_0x3a277e(0x166)+_0x48d8aa['swPath']);if(!(_0x3a277e(0xcd)in navigator)){console[_0x3a277e(0x19a)](LOG_PREFIX2+_0x3a277e(0x197));return;}console['log'](LOG_PREFIX2+_0x3a277e(0x148));const _0x47dd33=navigator[_0x3a277e(0xcd)][_0x3a277e(0x13d)];console[_0x3a277e(0xdf)](LOG_PREFIX2+_0x3a277e(0x15d),_0x47dd33?.['scriptURL']??_0x3a277e(0x19e)),console[_0x3a277e(0xdf)](LOG_PREFIX2+_0x3a277e(0x161),_0x47dd33?.[_0x3a277e(0x10c)]??'N/A');const _0x15647a=!!_0x47dd33;currentOptions2=_0x48d8aa,console[_0x3a277e(0xdf)](LOG_PREFIX2+_0x3a277e(0x191));const _0x395fe0=await detectBlockingServiceWorker(_0x48d8aa[_0x3a277e(0xf2)]);if(_0x395fe0){console[_0x3a277e(0xd6)](LOG_PREFIX2+_0x3a277e(0xe3)+_0x395fe0),console[_0x3a277e(0xd6)](LOG_PREFIX2+_0x3a277e(0xe1));return;}console[_0x3a277e(0xdf)](LOG_PREFIX2+_0x3a277e(0x11d));try{console['log'](LOG_PREFIX2+_0x3a277e(0x152)+_0x48d8aa[_0x3a277e(0xf2)]+_0x3a277e(0x196)),registration=await navigator[_0x3a277e(0xcd)][_0x3a277e(0xdd)](_0x48d8aa[_0x3a277e(0xf2)],{'scope':'/'}),console['log'](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration[_0x3a277e(0xd3)],'active':registration[_0x3a277e(0x122)]?.[_0x3a277e(0x14b)],'waiting':registration[_0x3a277e(0x132)]?.[_0x3a277e(0x14b)],'installing':registration[_0x3a277e(0xe6)]?.['scriptURL']}),console[_0x3a277e(0xdf)](LOG_PREFIX2+_0x3a277e(0xd7));const _0x5739c8=await navigator[_0x3a277e(0xcd)]['ready'];console['log'](LOG_PREFIX2+_0x3a277e(0x147),_0x5739c8[_0x3a277e(0x122)]?.[_0x3a277e(0x14b)]);const _0x5962e2=ownsCurrentController(_0x48d8aa[_0x3a277e(0xf2)]);state['controlled']=_0x5962e2,console[_0x3a277e(0xdf)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x5962e2),console[_0x3a277e(0xdf)](LOG_PREFIX2+_0x3a277e(0x17d),navigator['serviceWorker'][_0x3a277e(0x13d)]?.[_0x3a277e(0x14b)]??_0x3a277e(0x19e));if(!_0x15647a&&!navigator['serviceWorker'][_0x3a277e(0x13d)]){console[_0x3a277e(0xdf)](LOG_PREFIX2+_0x3a277e(0x11f)),window['location'][_0x3a277e(0x16b)]();return;}console[_0x3a277e(0xdf)](LOG_PREFIX2+_0x3a277e(0xfa)),await sendConfiguration();if(state[_0x3a277e(0x137)]){const _0xbfa84b=document[_0x3a277e(0xf4)]('[data-enhance-runtime-bootstrap]')!==null;console['log'](LOG_PREFIX2+_0x3a277e(0x113)+_0xbfa84b);if(!_0xbfa84b){console[_0x3a277e(0xdf)](LOG_PREFIX2+_0x3a277e(0x15e)),window[_0x3a277e(0xf7)][_0x3a277e(0x16b)]();return;}}console[_0x3a277e(0xdf)](LOG_PREFIX2+_0x3a277e(0x10a)),updateOverlay(),console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x5eb8a4){console[_0x3a277e(0xd6)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x5eb8a4);}}async function sendConfiguration(){const _0x5c4b06=_0x1927ad;console[_0x5c4b06(0xdf)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console['log'](LOG_PREFIX2+_0x5c4b06(0x183)+state[_0x5c4b06(0x137)]+_0x5c4b06(0x124)+!!currentOptions2);if(!state[_0x5c4b06(0x137)]||!currentOptions2){console[_0x5c4b06(0xdf)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x46f8cf=await resolveWorker();if(!_0x46f8cf){console['warn'](LOG_PREFIX2+_0x5c4b06(0xf6));return;}const _0x431dc1={'publishableKey':currentOptions2[_0x5c4b06(0xce)],'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x5c4b06(0xeb)]};console[_0x5c4b06(0xdf)](LOG_PREFIX2+_0x5c4b06(0x151),JSON[_0x5c4b06(0x174)](_0x431dc1,null,0x2)),_0x46f8cf['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x431dc1}),console[_0x5c4b06(0xdf)](LOG_PREFIX2+_0x5c4b06(0x188));}async function unregisterServiceWorker(_0x493a50){const _0x26b358=_0x1927ad;console[_0x26b358(0xdf)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x26b358(0xcd)in navigator)){console['log'](LOG_PREFIX2+_0x26b358(0x1a1));return;}try{const _0x7bd8b3=registration??await navigator[_0x26b358(0xcd)][_0x26b358(0xe5)]('/');if(!_0x7bd8b3){console[_0x26b358(0xdf)](LOG_PREFIX2+_0x26b358(0x136));return;}console['log'](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x7bd8b3[_0x26b358(0xd3)],'active':_0x7bd8b3[_0x26b358(0x122)]?.[_0x26b358(0x14b)],'waiting':_0x7bd8b3['waiting']?.[_0x26b358(0x14b)],'installing':_0x7bd8b3[_0x26b358(0xe6)]?.['scriptURL']});const _0x44b886=[_0x7bd8b3['active']?.['scriptURL'],_0x7bd8b3[_0x26b358(0x132)]?.['scriptURL'],_0x7bd8b3['installing']?.[_0x26b358(0x14b)]],_0x3f50d8=_0x44b886['some'](_0x425002=>_0x425002&&ownsServiceWorker(_0x425002,_0x493a50));if(!_0x3f50d8){console[_0x26b358(0xdf)](LOG_PREFIX2+_0x26b358(0xe2));return;}_0x7bd8b3[_0x26b358(0x122)]&&(console[_0x26b358(0xdf)](LOG_PREFIX2+_0x26b358(0x134)),_0x7bd8b3[_0x26b358(0x122)][_0x26b358(0x131)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x26b358(0xdf)](LOG_PREFIX2+_0x26b358(0xfd)),await _0x7bd8b3[_0x26b358(0x15b)](),registration=null,currentOptions2=null,console[_0x26b358(0xdf)](LOG_PREFIX2+_0x26b358(0x16f));}catch(_0x48f352){console[_0x26b358(0xd6)](LOG_PREFIX2+_0x26b358(0x12a),_0x48f352);}}function ownsServiceWorker(_0x56080e,_0x1e8225){const _0x5a763a=_0x1927ad,_0x16b0be=typeof window!==_0x5a763a(0x194)?window[_0x5a763a(0xf7)][_0x5a763a(0x18e)]:'',_0x329941=new URL(_0x1e8225,_0x16b0be||void 0x0)[_0x5a763a(0x145)],_0x8e717e=_0x56080e===_0x329941||_0x56080e[_0x5a763a(0x17b)](_0x5a763a(0x129));return console['log'](LOG_PREFIX2+_0x5a763a(0x186)+_0x56080e+_0x5a763a(0x178)+_0x329941+',\x20owns='+_0x8e717e),_0x8e717e;}function ownsCurrentController(_0x39877c){const _0x1e947e=_0x1927ad;if(typeof navigator===_0x1e947e(0x194))return![];const _0x2f8506=navigator[_0x1e947e(0xcd)]?.['controller'];if(!_0x2f8506)return console['log'](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x2f8506['scriptURL'],_0x39877c);}async function detectBlockingServiceWorker(_0x38a9fd){const _0xb1a5b=_0x1927ad;if(!navigator[_0xb1a5b(0xcd)])return null;try{const _0x1a8bba=await navigator['serviceWorker'][_0xb1a5b(0xe5)]('/');console['log'](LOG_PREFIX2+_0xb1a5b(0x14d),_0x1a8bba?.[_0xb1a5b(0x122)]?.['scriptURL']??_0xb1a5b(0x19e));const _0x3e3cb6=_0x1a8bba?.['active']?.[_0xb1a5b(0x14b)];if(!_0x3e3cb6)return null;if(ownsServiceWorker(_0x3e3cb6,_0x38a9fd))return null;return _0x3e3cb6;}catch(_0x228db0){return console['error'](LOG_PREFIX2+_0xb1a5b(0x171),_0x228db0),null;}}async function resolveWorker(){const _0x11dac9=_0x1927ad,_0x1a8d68=registration??await navigator[_0x11dac9(0xcd)]?.[_0x11dac9(0xe5)]('/'),_0x2f510f=_0x1a8d68?.['active']??_0x1a8d68?.[_0x11dac9(0x132)]??_0x1a8d68?.[_0x11dac9(0xe6)]??null;return console[_0x11dac9(0xdf)](LOG_PREFIX2+_0x11dac9(0x162),_0x2f510f?.['scriptURL']??_0x11dac9(0x19e),_0x11dac9(0xf9)+(_0x2f510f?.[_0x11dac9(0x10c)]??'N/A')),_0x2f510f;}var LOG_PREFIX3=_0x1927ad(0x193);function _0x5340(){const _0x14fb76=['\x20swPath:\x20','^4.1.1','disable','3864WrmMGU','\x20Enhancement\x20mode\x20ENABLED','reload','enhancement','121QTcaYt','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20SW\x20unregistered\x20successfully','\x20Module\x20imported\x20in\x20','\x20detectBlocking\x20error:','\x20Starting\x20fresh\x20overlay\x20load...','public','stringify','[Enhance\x20SW-Client]','enableOverlayHmr','14712shXerF',',\x20expected=','__enhanceReactRefreshInstalledOrigins','enhancementId','includes','function','\x20Current\x20controller\x20after\x20ready:','/sw-enhance.js','replaceState','readyState','16OtChTR','hasEnhancement','\x20state.enabled:\x20','createOverlay','\x20Setting\x20up\x20remote\x20HMR...','\x20ownsServiceWorker?\x20scriptURL=','\x20Document\x20readyState:\x20','\x20Config\x20sent\x20to\x20SW','98WtFoll','dev/','vite:error','https://api.enhancelabs.ai','enhance','origin','\x20Overlay\x20origin:\x20','trim','\x20Checking\x20for\x20blocking\x20service\x20worker...','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','[Enhance\x20Runtime]','undefined','\x20Controller\x20created:','\x20with\x20scope\x20\x27/\x27...','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20doLoadOverlay()\x20starting...','tsc\x20--noEmit','warn','options','__viteHMRLoaded',',\x20page\x20origin:\x20','none','^7.2.4','\x20enableViteHmr:\x20','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20enhancementUrl:\x20','object','\x20React\x20Refresh\x20already\x20installed\x20for\x20','$RefreshReg$','serviceWorker','publishableKey','delete','2913UoDtET','...','\x20Starting\x20overlay\x20load\x20(async)...','scope','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','288018wlkNSc','error','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20overlayPath:\x20','__enhanceInitialized','history','^24.10.1','search','register','__enhanceOptions','log','\x20init()\x20complete\x20-\x20normal\x20mode','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20BLOCKING\x20SW\x20detected:\x20','appError','getRegistration','installing','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20loadOverlay()\x20called','enhancementUrl','652SDNfWR','security','\x20Unregistering\x20any\x20existing\x20SW...','\x20overlayController\x20exists:\x20','114510phNVyu','[Enhance\x20Overlay]','./dev/vite/index.d.ts','https://assets.enhancelabs.ai/overlay.js','swPath','title','querySelector','searchParams','\x20No\x20service\x20worker\x20active\x20to\x20configure','location','/assets/enhance-runtime.js','state:\x20','\x20Sending\x20customer\x20configuration...','get','@enhance-eng/sandbox','\x20Unregistering\x20SW...','\x20Module\x20exports:','__enhanceOverlay','https://','0.3.21','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20enhancementId:\x20','__enhanceController','\x20Vite\x20error\x20detected:','overlayPath','backendUrl','keys','onToggle','\x20Updating\x20overlay...','./dev/index.d.ts','state','\x20loadOverlay()\x20complete','injectIntoGlobalHook','565tOQbFj','toLowerCase','__vite_plugin_react_preamble_installed__','overlay','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20HMR\x20setup\x20complete','\x20Current\x20URL:\x20','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','[Enhance\x20Config]\x20Build-time\x20defaults:','default','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','false','\x20No\x20blocking\x20SW\x20found','startsWith','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','^11.1.0','message','active','10673hTsFSk',',\x20currentOptions:\x20','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','runtimeURL','\x20composeOverlayState\x20-\x20enhancementId:\x20','\x20Invalid\x20React\x20Refresh\x20runtime','sw-enhance','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20Available\x20exports:','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','explicitDisable','\x20loadOverlay()\x20failed:','./dev/cli.js','postMessage','waiting','\x20Calling\x20createOverlay()...','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','./dev/vite/index.js','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','enabled','\x20Importing\x20overlay\x20module\x20from:\x20','add','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','2303196tznwsg','\x20composeOverlayState\x20-\x20state.controlled:\x20','controller','has','/@react-refresh','now','\x20Overlay\x20update\x20complete','bun\x20version\x20patch\x20--no-git-tag-version','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','controlled','href','\x20URL\x20params\x20parsed:','\x20SW\x20ready!\x20Active:','\x20Service\x20workers\x20supported','vite:beforeUpdate','replace','scriptURL','\x20Calling\x20updateOverlay()...','\x20detectBlocking\x20-\x20existing\x20registration:','\x20updateOverlay()\x20called','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','err','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Registering\x20SW\x20at\x20','\x20Module\x20missing\x20createOverlay\x20export!','info','\x20Starting\x20SW\x20registration\x20(async)...','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','./dev/index.js','5950budkpM','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','unregister','init','\x20Current\x20controller:','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20Failed\x20to\x20import/create\x20overlay:','\x20Controller\x20state:','\x20resolveWorker:','\x20init()\x20called\x20at\x20','\x20Updating\x20overlay\x20with\x20state:','enableViteHmr'];_0x5340=function(){return _0x14fb76;};return _0x5340();}function isInitialized(){const _0x5148bb=_0x1927ad;return typeof window!==_0x5148bb(0x194)&&window[_0x5148bb(0xd9)]===!![];}function setInitialized(_0x3b8058){typeof window!=='undefined'&&(window['__enhanceInitialized']=_0x3b8058);}function getOptions(){return typeof window!=='undefined'?window['__enhanceOptions']??null:null;}function setOptions(_0x56426f){const _0x496bc0=_0x1927ad;typeof window!==_0x496bc0(0x194)&&(window[_0x496bc0(0xde)]=_0x56426f);}var Enhance={'init'(_0x4f1d0b){const _0x5d50f9=_0x1927ad,_0x548566=Date[_0x5d50f9(0x140)]();console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0x163)+_0x548566),console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0x115)+window[_0x5d50f9(0xf7)][_0x5d50f9(0x145)]),console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0x187)+document[_0x5d50f9(0x180)]),console['log'](LOG_PREFIX3+'\x20Raw\x20options:',JSON['stringify'](_0x4f1d0b,null,0x2));if(isInitialized())return console[_0x5d50f9(0x19a)](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window[_0x5d50f9(0x104)]??createController();setInitialized(!![]),console[_0x5d50f9(0xdf)](LOG_PREFIX3+'\x20First\x20initialization');const _0x4b30c6=normalizeOptions(_0x4f1d0b);setOptions(_0x4b30c6),console['log'](LOG_PREFIX3+'\x20Normalized\x20options:',JSON[_0x5d50f9(0x174)](_0x4b30c6,null,0x2));const _0x7b13bc=parseUrlParams();console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0x146),JSON[_0x5d50f9(0x174)](_0x7b13bc,null,0x2));if(_0x7b13bc[_0x5d50f9(0x12e)])return cleanUrlParam(_0x5d50f9(0x18d)),console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0x13a)),createController();if(_0x7b13bc[_0x5d50f9(0x182)])return console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0x16a)),console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0x1a2)+_0x7b13bc[_0x5d50f9(0xe9)]),console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0x103)+_0x7b13bc[_0x5d50f9(0x17a)]),state[_0x5d50f9(0x137)]=!![],console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0xd2)),void loadOverlay({'overlayPath':_0x4b30c6[_0x5d50f9(0x106)],'enableViteHmr':_0x4b30c6['overlay'][_0x5d50f9(0x165)],'options':_0x4b30c6,'onToggle':handleToggle}),console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0x155)),void registerServiceWorker(_0x4b30c6),console[_0x5d50f9(0xdf)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0xd4)),console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0xec)),void unregisterServiceWorker(_0x4b30c6[_0x5d50f9(0xf2)]),console[_0x5d50f9(0xdf)](LOG_PREFIX3+_0x5d50f9(0xe0)),import.meta.hot&&(console['log'](LOG_PREFIX3+_0x5d50f9(0x12d)),import.meta.hot['on'](_0x5d50f9(0x18b),_0x27c82e=>{const _0x52f084=_0x5d50f9;console[_0x52f084(0xdf)](LOG_PREFIX3+_0x52f084(0x105),_0x27c82e),state[_0x52f084(0xe4)]={'message':_0x27c82e[_0x52f084(0x150)][_0x52f084(0x121)]},updateOverlay();}),import.meta.hot['on'](_0x5d50f9(0x149),()=>{const _0x1e26a4=_0x5d50f9;state['appError']&&(console['log'](LOG_PREFIX3+_0x1e26a4(0x12c)),state[_0x1e26a4(0xe4)]=null,updateOverlay());})),createController();}};function createController(){const _0x3e9ac0=_0x1927ad,_0x315941={'enable'(){const _0x32e55f=_0x26b1,_0x6db331=getOptions();if(!_0x6db331)return;state['enabled']=!![],void loadOverlay({'overlayPath':_0x6db331[_0x32e55f(0x106)],'enableViteHmr':_0x6db331[_0x32e55f(0x112)][_0x32e55f(0x165)],'options':_0x6db331,'onToggle':handleToggle}),void registerServiceWorker(_0x6db331),void sendConfiguration(),updateOverlay();},'disable'(){const _0x52ea39=_0x26b1,_0x23dc3d=getOptions();if(!_0x23dc3d)return;state[_0x52ea39(0x137)]=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(_0x23dc3d[_0x52ea39(0xf2)]);},'status'(){const _0x3914b6=_0x26b1;return{'enabled':state[_0x3914b6(0x137)],'controlled':state[_0x3914b6(0x144)]};}};return typeof window!==_0x3e9ac0(0x194)&&(window['__enhanceController']=_0x315941),_0x315941;}function handleToggle(){const _0x40b782=_0x1927ad,_0x1596c7=createController();state['enabled']?_0x1596c7[_0x40b782(0x168)]():_0x1596c7['enable']();}function parseUrlParams(){const _0x4a613a=_0x1927ad,_0x3cab46=new URL(window[_0x4a613a(0xf7)][_0x4a613a(0x145)]),_0x3a9452=_0x3cab46[_0x4a613a(0xf5)][_0x4a613a(0xfb)](_0x4a613a(0x18d))?.[_0x4a613a(0x110)](),_0x59ea78=_0x3cab46[_0x4a613a(0xf5)]['get'](_0x4a613a(0xe9)),_0xe64773=_0x3cab46[_0x4a613a(0xf5)][_0x4a613a(0xfb)](_0x4a613a(0x16c));return{'hasEnhancement':Boolean(_0x59ea78||_0xe64773),'explicitDisable':_0x3a9452==='0'||_0x3a9452===_0x4a613a(0x11c)||_0x3a9452==='off','enhancementUrl':_0x59ea78,'enhancementId':_0xe64773};}function _0x26b1(_0x266248,_0x426364){_0x266248=_0x266248-0xcc;const _0x53405d=_0x5340();let _0x26b1d8=_0x53405d[_0x266248];return _0x26b1d8;}function cleanUrlParam(_0x7cb9ce){const _0xcd5f29=_0x1927ad,_0x21f745=new URL(window[_0xcd5f29(0xf7)][_0xcd5f29(0x145)]);_0x21f745[_0xcd5f29(0xf5)]['has'](_0x7cb9ce)&&(_0x21f745[_0xcd5f29(0xf5)][_0xcd5f29(0xcf)](_0x7cb9ce),window[_0xcd5f29(0xda)][_0xcd5f29(0x17f)](null,document[_0xcd5f29(0xf3)],_0x21f745['toString']()));}var package_default={'name':_0x1927ad(0xfc),'version':_0x1927ad(0x101),'type':'module','description':_0x1927ad(0x143),'license':'MIT','main':_0x1927ad(0x157),'module':_0x1927ad(0x157),'types':_0x1927ad(0x10b),'exports':{'.':{'types':'./dev/index.d.ts','import':'./dev/index.js'},'./vite':{'types':_0x1927ad(0xf0),'import':_0x1927ad(0x135)}},'files':[_0x1927ad(0x18a)],'bin':{'enhance-sandbox':_0x1927ad(0x130)},'scripts':{'typecheck':_0x1927ad(0x199),'dev':_0x1927ad(0x192),'dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','dev:staging:build':_0x1927ad(0x15f),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','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':_0x1927ad(0x156),'version':_0x1927ad(0x142)},'dependencies':{'commander':_0x1927ad(0x120),'zod':'^3.22.4'},'devDependencies':{'@types/node':_0x1927ad(0xdb),'javascript-obfuscator':_0x1927ad(0x167),'tsup':'^8.5.1','vite':_0x1927ad(0x19f)},'publishConfig':{'access':_0x1927ad(0x173)}},DEFAULT_SERVICE_WORKER_PATH=_0x1927ad(0x17e),DEFAULT_RUNTIME_PATH=_0x1927ad(0xf8),PACKAGE_VERSION=typeof package_default['version']==='string'?package_default['version']:'0.0.0';function normalizeAssetPath(_0x1191ca){const _0x5034aa=_0x1927ad;if(!_0x1191ca)return _0x1191ca;if(_0x1191ca[_0x5034aa(0x11e)]('http://')||_0x1191ca[_0x5034aa(0x11e)](_0x5034aa(0x100)))return _0x1191ca;const _0x53d83f=_0x1191ca[_0x5034aa(0x14a)](/^\.\//,'');return _0x53d83f[_0x5034aa(0x11e)]('/')?_0x53d83f:'/'+_0x53d83f;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x317da3){const _0x414cc8=_0x1927ad;return Enhance[_0x414cc8(0x15c)](_0x317da3);},'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 _0x4e5e15=_0x1927ad;return Enhance2[_0x4e5e15(0x126)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
1
+ const _0x31cd8b=_0x8f9d;(function(_0x35d82f,_0x472ca1){const _0x3f0baf=_0x8f9d,_0x2f4b44=_0x35d82f();while(!![]){try{const _0x2f802a=parseInt(_0x3f0baf(0x142))/0x1*(parseInt(_0x3f0baf(0xca))/0x2)+-parseInt(_0x3f0baf(0xad))/0x3*(parseInt(_0x3f0baf(0xa2))/0x4)+parseInt(_0x3f0baf(0xde))/0x5+-parseInt(_0x3f0baf(0xb1))/0x6+parseInt(_0x3f0baf(0x99))/0x7+-parseInt(_0x3f0baf(0x128))/0x8+parseInt(_0x3f0baf(0xf8))/0x9;if(_0x2f802a===_0x472ca1)break;else _0x2f4b44['push'](_0x2f4b44['shift']());}catch(_0x5a04eb){_0x2f4b44['push'](_0x2f4b44['shift']());}}}(_0x446e,0x7d528));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!=='undefined'?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x31cd8b(0x95),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x31cd8b(0x150)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x31cd8b(0x9d),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!=='undefined'?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x31cd8b(0x15b)](_0x31cd8b(0xd0),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x50ea2a){const _0x15e517=_0x31cd8b;if(!_0x50ea2a[_0x15e517(0xa3)])throw new Error(_0x15e517(0x145));const _0x5b7485=_0x50ea2a[_0x15e517(0x9c)]??{};return{'publishableKey':_0x50ea2a['publishableKey'],'callbackBypass':_0x50ea2a['callbackBypass']??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x5b7485[_0x15e517(0x9b)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x15e517(0xfd),'swPath':'/sw-enhance.js','overlayPath':_0x5b7485['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x15e517(0xbd),'security':_0x5b7485[_0x15e517(0xe7)]??'permissive','backendUrl':_0x5b7485['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x68c09=_0x31cd8b;try{const _0x2d7c38=new URLSearchParams(window['location'][_0x68c09(0x13b)]);return _0x2d7c38[_0x68c09(0x107)](_0x68c09(0x13f))?.[_0x68c09(0xf6)]()||'';}catch{return'';}}var LOG_PREFIX=_0x31cd8b(0x139),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x296753){const _0x137174=_0x31cd8b;console['log'](LOG_PREFIX+_0x137174(0x10b)),console[_0x137174(0x15b)](LOG_PREFIX+_0x137174(0x8d)+_0x296753[_0x137174(0xb3)]),console[_0x137174(0x15b)](LOG_PREFIX+_0x137174(0xc5)+_0x296753['enableViteHmr']),currentOptions=_0x296753['options'],toggleHandler=_0x296753[_0x137174(0xec)];if(overlayController){console[_0x137174(0x15b)](LOG_PREFIX+_0x137174(0x112)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x137174(0x115)),overlayLoadPromise;console[_0x137174(0x15b)](LOG_PREFIX+_0x137174(0x120)),overlayLoadPromise=doLoadOverlay(_0x296753);try{await overlayLoadPromise,console[_0x137174(0x15b)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x1a74c5){console[_0x137174(0xd6)](LOG_PREFIX+_0x137174(0xee),_0x1a74c5);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x28fe78){const _0x158391=_0x31cd8b;console[_0x158391(0x15b)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x158391(0x150)){console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0xba));return;}if(window[_0x158391(0x11c)]){console[_0x158391(0x15b)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x158391(0x11c)];return;}console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0x135));try{_0x28fe78[_0x158391(0xcc)]&&(console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0xe1)),await setupRemoteHMR(_0x28fe78['overlayPath']));console['log'](LOG_PREFIX+_0x158391(0x148)+_0x28fe78['overlayPath']);const _0x238254=Date['now'](),_0x1984fc=await import(_0x28fe78[_0x158391(0xb3)]);console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0xe0)+(Date[_0x158391(0x13d)]()-_0x238254)+'ms'),console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0x10f),Object[_0x158391(0xb9)](_0x1984fc));if(typeof _0x1984fc?.[_0x158391(0x130)]!==_0x158391(0xe9)){console['error'](LOG_PREFIX+_0x158391(0x9a)),console[_0x158391(0xd6)](LOG_PREFIX+_0x158391(0xb8),Object[_0x158391(0xb9)](_0x1984fc));return;}console['log'](LOG_PREFIX+_0x158391(0x149));const _0x27642f=_0x1984fc[_0x158391(0x130)]();console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0xc8),_0x27642f),overlayController=_0x27642f,window[_0x158391(0x11c)]=_0x27642f,_0x27642f[_0x158391(0xec)](_0x28fe78[_0x158391(0xec)]),console['log'](LOG_PREFIX+_0x158391(0xd4)),console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0x11b)),updateOverlay();}catch(_0x3cfd88){console['error'](LOG_PREFIX+_0x158391(0x8e),_0x3cfd88);}}function updateOverlay(){const _0x5ec782=_0x31cd8b;console['log'](LOG_PREFIX+_0x5ec782(0x129)),console['log'](LOG_PREFIX+_0x5ec782(0x146)+!!overlayController),console['log'](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x2a1d3e=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x5ec782(0x10a),JSON['stringify'](_0x2a1d3e,null,0x2)),overlayController[_0x5ec782(0xf2)](_0x2a1d3e),console[_0x5ec782(0x15b)](LOG_PREFIX+_0x5ec782(0xed));}function composeOverlayState(_0x15ad09){const _0x50417c=_0x31cd8b,_0x3b7cf2=getEnhancementId();return console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x3b7cf2),console['log'](LOG_PREFIX+_0x50417c(0xcd)+state[_0x50417c(0xbb)]),console[_0x50417c(0x15b)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x50417c(0x11d)]),{'enhancementId':_0x3b7cf2,'enabled':state[_0x50417c(0xbb)],'controlled':state[_0x50417c(0x11d)],'overlayPosition':_0x15ad09[_0x50417c(0x137)][_0x50417c(0x155)],'securityMode':_0x15ad09['security'],'backendBaseUrl':_0x15ad09['backendUrl'],'appError':state[_0x50417c(0x117)]};}async function setupRemoteHMR(_0x15f10d){const _0x5f3a0b=_0x31cd8b;console[_0x5f3a0b(0x15b)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x15f10d);if(typeof window===_0x5f3a0b(0x150))return;try{const _0xae7429=new URL(_0x15f10d,window[_0x5f3a0b(0x13a)][_0x5f3a0b(0x14f)]),_0x5eaa45=_0xae7429[_0x5f3a0b(0x14f)];console['log'](LOG_PREFIX+_0x5f3a0b(0x151)+_0x5eaa45+_0x5f3a0b(0xc4)+window[_0x5f3a0b(0x13a)][_0x5f3a0b(0x14f)]);if(_0x5eaa45===window[_0x5f3a0b(0x13a)][_0x5f3a0b(0x14f)]){console[_0x5f3a0b(0x15b)](LOG_PREFIX+_0x5f3a0b(0xf3));return;}console[_0x5f3a0b(0x15b)](LOG_PREFIX+_0x5f3a0b(0x10e)),await ensureReactRefreshPreamble(_0x5eaa45),await ensureViteClient(_0x5eaa45),console[_0x5f3a0b(0x15b)](LOG_PREFIX+_0x5f3a0b(0xd9));}catch(_0xfe8e73){console[_0x5f3a0b(0xbf)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0xfe8e73);}}async function ensureReactRefreshPreamble(_0x39dca3){const _0x5df1e4=_0x31cd8b;window[_0x5df1e4(0xdd)]??=new Set();if(window[_0x5df1e4(0xdd)][_0x5df1e4(0x14e)](_0x39dca3)){console['log'](LOG_PREFIX+_0x5df1e4(0xa5)+_0x39dca3);return;}console[_0x5df1e4(0x15b)](LOG_PREFIX+_0x5df1e4(0x102)+_0x39dca3+_0x5df1e4(0x88));const _0x56f3dd=await import(_0x39dca3+_0x5df1e4(0x15d)),_0x179da4=_0x56f3dd&&typeof _0x56f3dd==='object'&&_0x5df1e4(0x12e)in _0x56f3dd?_0x56f3dd[_0x5df1e4(0x12e)]:_0x56f3dd;if(!isRefreshRuntime(_0x179da4)){console[_0x5df1e4(0xbf)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x179da4[_0x5df1e4(0xc2)](window),window[_0x5df1e4(0xa9)]=()=>{},window[_0x5df1e4(0x113)]=()=>_0xb10e9e=>_0xb10e9e,window[_0x5df1e4(0x124)]=!![],window[_0x5df1e4(0xdd)][_0x5df1e4(0x152)](_0x39dca3),console[_0x5df1e4(0x15b)](LOG_PREFIX+_0x5df1e4(0xc6)+_0x39dca3);}async function ensureViteClient(_0x480182){const _0x52fe66=_0x31cd8b;window['__viteHMRLoaded']??=new Set();if(window[_0x52fe66(0xd7)]['has'](_0x480182)){console['log'](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x480182);return;}console[_0x52fe66(0x15b)](LOG_PREFIX+_0x52fe66(0xd3)+_0x480182+'...'),await import(_0x480182+_0x52fe66(0x127)),window[_0x52fe66(0xd7)]['add'](_0x480182),console['log'](LOG_PREFIX+_0x52fe66(0x12c)+_0x480182);}function isRefreshRuntime(_0x42c398){const _0x142b53=_0x31cd8b;return typeof _0x42c398===_0x142b53(0x132)&&_0x42c398!==null&&_0x142b53(0xc2)in _0x42c398&&typeof _0x42c398[_0x142b53(0xc2)]==='function';}var WORKER_MESSAGE_CONFIG=_0x31cd8b(0xd2),WORKER_MESSAGE_DISABLE=_0x31cd8b(0xe6),LOG_PREFIX2=_0x31cd8b(0xc7),registration=null,currentOptions2=null;async function registerServiceWorker(_0x1ec684){const _0x3564f3=_0x31cd8b;console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x106)),console['log'](LOG_PREFIX2+_0x3564f3(0xe5)+_0x1ec684[_0x3564f3(0xf7)]);if(!(_0x3564f3(0x90)in navigator)){console[_0x3564f3(0xbf)](LOG_PREFIX2+_0x3564f3(0x14d));return;}console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0xcf));const _0x29f33c=navigator[_0x3564f3(0x90)][_0x3564f3(0xdb)];console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x15a),_0x29f33c?.[_0x3564f3(0x12b)]??_0x3564f3(0xe3)),console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x89),_0x29f33c?.['state']??'N/A');const _0x3c83a1=!!_0x29f33c;currentOptions2=_0x1ec684,console['log'](LOG_PREFIX2+_0x3564f3(0xc0));const _0x4ad5ee=await detectBlockingServiceWorker(_0x1ec684['swPath']);if(_0x4ad5ee){console['error'](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x4ad5ee),console['error'](LOG_PREFIX2+_0x3564f3(0xef));return;}console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0xb4));try{console['log'](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x1ec684['swPath']+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x3564f3(0x90)][_0x3564f3(0x153)](_0x1ec684[_0x3564f3(0xf7)],{'scope':'/'}),console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x91),{'scope':registration['scope'],'active':registration[_0x3564f3(0x94)]?.[_0x3564f3(0x12b)],'waiting':registration[_0x3564f3(0x105)]?.[_0x3564f3(0x12b)],'installing':registration['installing']?.[_0x3564f3(0x12b)]}),console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x143));const _0x1d1495=await navigator['serviceWorker'][_0x3564f3(0xd8)];console[_0x3564f3(0x15b)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x1d1495[_0x3564f3(0x94)]?.[_0x3564f3(0x12b)]);const _0x55ccad=ownsCurrentController(_0x1ec684[_0x3564f3(0xf7)]);state[_0x3564f3(0x11d)]=_0x55ccad,console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x11a)+_0x55ccad),console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x118),navigator[_0x3564f3(0x90)][_0x3564f3(0xdb)]?.[_0x3564f3(0x12b)]??'none');if(!_0x3c83a1&&!navigator[_0x3564f3(0x90)][_0x3564f3(0xdb)]){console['log'](LOG_PREFIX2+_0x3564f3(0x13c)),window[_0x3564f3(0x13a)]['reload']();return;}console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0xe4)),await sendConfiguration();if(state['enabled']){const _0x24024f=document[_0x3564f3(0x100)](_0x3564f3(0xbe))!==null;console['log'](LOG_PREFIX2+_0x3564f3(0xe2)+_0x24024f);if(!_0x24024f){console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x97)),window[_0x3564f3(0x13a)]['reload']();return;}}console[_0x3564f3(0x15b)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x9f));}catch(_0x257a50){console[_0x3564f3(0xd6)](LOG_PREFIX2+_0x3564f3(0x103),_0x257a50);}}async function sendConfiguration(){const _0x5950f8=_0x31cd8b;console[_0x5950f8(0x15b)](LOG_PREFIX2+_0x5950f8(0x136)),console[_0x5950f8(0x15b)](LOG_PREFIX2+_0x5950f8(0xf9)+state['enabled']+_0x5950f8(0x10d)+!!currentOptions2);if(!state[_0x5950f8(0xbb)]||!currentOptions2){console['log'](LOG_PREFIX2+_0x5950f8(0x14c));return;}const _0x8d88b1=await resolveWorker();if(!_0x8d88b1){console['warn'](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x29eda3={'publishableKey':currentOptions2[_0x5950f8(0xa3)],'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x5950f8(0xe7)]};console['log'](LOG_PREFIX2+_0x5950f8(0x125),JSON[_0x5950f8(0x158)](_0x29eda3,null,0x2)),_0x8d88b1[_0x5950f8(0x8b)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x29eda3}),console[_0x5950f8(0x15b)](LOG_PREFIX2+_0x5950f8(0x156));}async function unregisterServiceWorker(_0x3ed085){const _0x585690=_0x31cd8b;console[_0x585690(0x15b)](LOG_PREFIX2+_0x585690(0xc3));if(!(_0x585690(0x90)in navigator)){console[_0x585690(0x15b)](LOG_PREFIX2+_0x585690(0xd1));return;}try{const _0x2b7272=registration??await navigator[_0x585690(0x90)][_0x585690(0xa4)]('/');if(!_0x2b7272){console['log'](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0x585690(0x15b)](LOG_PREFIX2+_0x585690(0xaa),{'scope':_0x2b7272[_0x585690(0x15e)],'active':_0x2b7272[_0x585690(0x94)]?.[_0x585690(0x12b)],'waiting':_0x2b7272['waiting']?.['scriptURL'],'installing':_0x2b7272['installing']?.[_0x585690(0x12b)]});const _0x48a87b=[_0x2b7272[_0x585690(0x94)]?.[_0x585690(0x12b)],_0x2b7272['waiting']?.['scriptURL'],_0x2b7272['installing']?.[_0x585690(0x12b)]],_0x2359ff=_0x48a87b[_0x585690(0x14b)](_0x4cf1cb=>_0x4cf1cb&&ownsServiceWorker(_0x4cf1cb,_0x3ed085));if(!_0x2359ff){console['log'](LOG_PREFIX2+_0x585690(0xf1));return;}_0x2b7272['active']&&(console['log'](LOG_PREFIX2+_0x585690(0x10c)),_0x2b7272[_0x585690(0x94)][_0x585690(0x8b)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x585690(0x8c)),await _0x2b7272[_0x585690(0xa0)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x585690(0x96));}catch(_0x25e984){console[_0x585690(0xd6)](LOG_PREFIX2+_0x585690(0x86),_0x25e984);}}function ownsServiceWorker(_0x338d1e,_0x3bac6b){const _0x368fb6=_0x31cd8b,_0x3dabcb=typeof window!==_0x368fb6(0x150)?window[_0x368fb6(0x13a)][_0x368fb6(0x14f)]:'',_0x11041d=new URL(_0x3bac6b,_0x3dabcb||void 0x0)[_0x368fb6(0x12f)],_0x35501f=_0x338d1e===_0x11041d||_0x338d1e[_0x368fb6(0x9e)](_0x368fb6(0x93));return console['log'](LOG_PREFIX2+_0x368fb6(0x138)+_0x338d1e+_0x368fb6(0x85)+_0x11041d+_0x368fb6(0x104)+_0x35501f),_0x35501f;}function ownsCurrentController(_0x4566d8){const _0x19780a=_0x31cd8b;if(typeof navigator===_0x19780a(0x150))return![];const _0x554b3a=navigator[_0x19780a(0x90)]?.['controller'];if(!_0x554b3a)return console[_0x19780a(0x15b)](LOG_PREFIX2+_0x19780a(0xaf)),![];return ownsServiceWorker(_0x554b3a[_0x19780a(0x12b)],_0x4566d8);}async function detectBlockingServiceWorker(_0x4cf140){const _0x5c29e0=_0x31cd8b;if(!navigator[_0x5c29e0(0x90)])return null;try{const _0x138c1d=await navigator[_0x5c29e0(0x90)][_0x5c29e0(0xa4)]('/');console['log'](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x138c1d?.[_0x5c29e0(0x94)]?.['scriptURL']??'none');const _0x32d0ef=_0x138c1d?.[_0x5c29e0(0x94)]?.[_0x5c29e0(0x12b)];if(!_0x32d0ef)return null;if(ownsServiceWorker(_0x32d0ef,_0x4cf140))return null;return _0x32d0ef;}catch(_0x66a13e){return console[_0x5c29e0(0xd6)](LOG_PREFIX2+_0x5c29e0(0xff),_0x66a13e),null;}}async function resolveWorker(){const _0x5812aa=_0x31cd8b,_0x1dad54=registration??await navigator[_0x5812aa(0x90)]?.[_0x5812aa(0xa4)]('/'),_0x399d6f=_0x1dad54?.[_0x5812aa(0x94)]??_0x1dad54?.['waiting']??_0x1dad54?.[_0x5812aa(0x14a)]??null;return console[_0x5812aa(0x15b)](LOG_PREFIX2+_0x5812aa(0x131),_0x399d6f?.[_0x5812aa(0x12b)]??_0x5812aa(0xe3),_0x5812aa(0xf5)+(_0x399d6f?.[_0x5812aa(0x12a)]??'N/A')),_0x399d6f;}var LOG_PREFIX3=_0x31cd8b(0xb6);function isInitialized(){const _0xe9f4eb=_0x31cd8b;return typeof window!==_0xe9f4eb(0x150)&&window[_0xe9f4eb(0xa8)]===!![];}function setInitialized(_0x178e54){const _0x524360=_0x31cd8b;typeof window!==_0x524360(0x150)&&(window[_0x524360(0xa8)]=_0x178e54);}function getOptions(){const _0x2f1d2a=_0x31cd8b;return typeof window!==_0x2f1d2a(0x150)?window[_0x2f1d2a(0xe8)]??null:null;}function setOptions(_0xa4cb52){const _0x5a517d=_0x31cd8b;typeof window!==_0x5a517d(0x150)&&(window[_0x5a517d(0xe8)]=_0xa4cb52);}function _0x446e(){const _0x407f6a=['state:\x20','trim','swPath','9001539CEbAsU','\x20state.enabled:\x20','enhance','/sw-enhance.js','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','info','version','\x20detectBlocking\x20error:','querySelector','__enhanceController','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Failed\x20to\x20register\x20service\x20worker:',',\x20owns=','waiting','\x20registerServiceWorker()\x20called','get','bun\x20version\x20patch\x20--no-git-tag-version','history','\x20Updating\x20overlay\x20with\x20state:','\x20loadOverlay()\x20called','\x20Sending\x20DISABLE\x20message\x20to\x20SW...',',\x20currentOptions:\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Module\x20exports:','\x20Raw\x20options:','^4.1.1','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','$RefreshSig$','./dev/vite/index.js','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','public','appError','\x20Current\x20controller\x20after\x20ready:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20Calling\x20updateOverlay()...','__enhanceOverlay','controlled','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_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20Starting\x20fresh\x20overlay\x20load...','false','0.0.0','vite:error','__vite_plugin_react_preamble_installed__','\x20Sending\x20customer\x20config\x20to\x20SW:','init','/@vite/client','1790336OWYtIA','\x20updateOverlay()\x20called','state','scriptURL','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20Normalized\x20options:','default','href','createOverlay','\x20resolveWorker:','object','startsWith','hasEnhancement','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20sendConfiguration()\x20called','overlay','\x20ownsServiceWorker?\x20scriptURL=','[Enhance\x20Overlay]','location','search','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','now','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','enhancement','enable','\x20Enhancement\x20mode\x20ENABLED','3232PCaEjD','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','off','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','\x20overlayController\x20exists:\x20','enhancementId','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Calling\x20createOverlay()...','installing','some','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','has','origin','undefined','\x20Overlay\x20origin:\x20','add','register','^8.5.1','position','\x20Config\x20sent\x20to\x20SW','disable','stringify','^7.2.4','\x20Current\x20controller:','log','module','/@react-refresh','scope','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup',',\x20expected=','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20enhancementUrl:\x20','...','\x20Controller\x20state:','vite:beforeUpdate','postMessage','\x20Unregistering\x20SW...','\x20overlayPath:\x20','\x20Failed\x20to\x20import/create\x20overlay:','runtimeURL','serviceWorker','\x20Registration\x20returned:','http://','sw-enhance','active','https://assets.enhancelabs.ai/overlay.js','\x20SW\x20unregistered\x20successfully','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20init()\x20complete\x20-\x20normal\x20mode','1182825CFzIKS','\x20Module\x20missing\x20createOverlay\x20export!','enableOverlayHmr','__development','https://api.enhancelabs.ai','includes','\x20registerServiceWorker()\x20complete','unregister','./dev/cli.js','4lXOvva','publishableKey','getRegistration','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20init()\x20called\x20at\x20','^3.22.4','__enhanceInitialized','$RefreshReg$','\x20Found\x20registration:','\x20enhancementId:\x20','enhancementUrl','215256vhCDIW','replaceState','\x20No\x20current\x20controller','0.3.21','4719024SnicXq','\x20First\x20initialization','overlayPath','\x20No\x20blocking\x20SW\x20found','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','[Enhance\x20Runtime]','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Available\x20exports:','keys','\x20No\x20window\x20object\x20-\x20skipping','enabled','\x20Current\x20URL:\x20','/assets/enhance-runtime.js','[data-enhance-runtime-bootstrap]','warn','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20init()\x20complete\x20-\x20enhancement\x20mode','injectIntoGlobalHook','\x20unregisterServiceWorker()\x20called',',\x20page\x20origin:\x20','\x20enableViteHmr:\x20','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','[Enhance\x20SW-Client]','\x20Controller\x20created:','./dev/index.d.ts','78fLoQMs','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','enableViteHmr','\x20composeOverlayState\x20-\x20state.enabled:\x20','readyState','\x20Service\x20workers\x20supported','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','enhance:configure','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Vite\x20error\x20detected:','error','__viteHMRLoaded','ready','\x20HMR\x20setup\x20complete','./dev/index.js','controller','@enhance-eng/sandbox','__enhanceReactRefreshInstalledOrigins','1500870CKmdTO','searchParams','\x20Module\x20imported\x20in\x20','\x20Setting\x20up\x20remote\x20HMR...','\x20Enhancement\x20detection:\x20wasEnhanced=','none','\x20Sending\x20customer\x20configuration...','\x20swPath:\x20','enhance:disable','security','__enhanceOptions','function','^11.1.0','err','onToggle','\x20Overlay\x20update\x20complete','\x20loadOverlay()\x20failed:','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','update','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','serviceWorkerURL'];_0x446e=function(){return _0x407f6a;};return _0x446e();}var Enhance={'init'(_0xfe437b){const _0x1e9195=_0x31cd8b,_0x4fbaa4=Date[_0x1e9195(0x13d)]();console['log'](LOG_PREFIX3+_0x1e9195(0xa6)+_0x4fbaa4),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xbc)+window[_0x1e9195(0x13a)][_0x1e9195(0x12f)]),console[_0x1e9195(0x15b)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x1e9195(0xce)]),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0x110),JSON[_0x1e9195(0x158)](_0xfe437b,null,0x2));if(isInitialized())return console[_0x1e9195(0xbf)](LOG_PREFIX3+_0x1e9195(0xb7)),window[_0x1e9195(0x101)]??createController();setInitialized(!![]),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xb2));const _0x3f6972=normalizeOptions(_0xfe437b);setOptions(_0x3f6972),console['log'](LOG_PREFIX3+_0x1e9195(0x12d),JSON[_0x1e9195(0x158)](_0x3f6972,null,0x2));const _0x43ab55=parseUrlParams();console[_0x1e9195(0x15b)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x1e9195(0x158)](_0x43ab55,null,0x2));if(_0x43ab55['explicitDisable'])return cleanUrlParam(_0x1e9195(0xfa)),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xb5)),createController();if(_0x43ab55[_0x1e9195(0x134)])return console['log'](LOG_PREFIX3+_0x1e9195(0x141)),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0x87)+_0x43ab55[_0x1e9195(0xac)]),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xab)+_0x43ab55[_0x1e9195(0x147)]),state[_0x1e9195(0xbb)]=!![],console[_0x1e9195(0x15b)](LOG_PREFIX3+'\x20Starting\x20overlay\x20load\x20(async)...'),void loadOverlay({'overlayPath':_0x3f6972[_0x1e9195(0xb3)],'enableViteHmr':_0x3f6972[_0x1e9195(0x137)][_0x1e9195(0xcc)],'options':_0x3f6972,'onToggle':handleToggle}),console[_0x1e9195(0x15b)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x3f6972),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xc1)),createController();return console['log'](LOG_PREFIX3+_0x1e9195(0xfc)),console[_0x1e9195(0x15b)](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x3f6972['swPath']),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0x98)),import.meta.hot&&(console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xf0)),import.meta.hot['on'](_0x1e9195(0x123),_0x25077f=>{const _0x534143=_0x1e9195;console[_0x534143(0x15b)](LOG_PREFIX3+_0x534143(0xd5),_0x25077f),state[_0x534143(0x117)]={'message':_0x25077f[_0x534143(0xeb)]['message']},updateOverlay();}),import.meta.hot['on'](_0x1e9195(0x8a),()=>{const _0x37f045=_0x1e9195;state[_0x37f045(0x117)]&&(console[_0x37f045(0x15b)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state['appError']=null,updateOverlay());})),createController();}};function createController(){const _0x53f31c=_0x31cd8b,_0x15fd9f={'enable'(){const _0x1c99e0=_0x8f9d,_0x506151=getOptions();if(!_0x506151)return;state[_0x1c99e0(0xbb)]=!![],void loadOverlay({'overlayPath':_0x506151[_0x1c99e0(0xb3)],'enableViteHmr':_0x506151[_0x1c99e0(0x137)]['enableViteHmr'],'options':_0x506151,'onToggle':handleToggle}),void registerServiceWorker(_0x506151),void sendConfiguration(),updateOverlay();},'disable'(){const _0x487713=_0x8f9d,_0x3f063c=getOptions();if(!_0x3f063c)return;state[_0x487713(0xbb)]=![],state[_0x487713(0x11d)]=![],updateOverlay(),void unregisterServiceWorker(_0x3f063c[_0x487713(0xf7)]);},'status'(){const _0x375bee=_0x8f9d;return{'enabled':state[_0x375bee(0xbb)],'controlled':state[_0x375bee(0x11d)]};}};return typeof window!==_0x53f31c(0x150)&&(window[_0x53f31c(0x101)]=_0x15fd9f),_0x15fd9f;}function handleToggle(){const _0x2848e6=_0x31cd8b,_0x153dfe=createController();state[_0x2848e6(0xbb)]?_0x153dfe[_0x2848e6(0x157)]():_0x153dfe[_0x2848e6(0x140)]();}function _0x8f9d(_0x56f3f2,_0x579b14){_0x56f3f2=_0x56f3f2-0x84;const _0x446e23=_0x446e();let _0x8f9d22=_0x446e23[_0x56f3f2];return _0x8f9d22;}function parseUrlParams(){const _0x24ccf6=_0x31cd8b,_0x3d6d4d=new URL(window['location'][_0x24ccf6(0x12f)]),_0x3ebb90=_0x3d6d4d['searchParams'][_0x24ccf6(0x107)](_0x24ccf6(0xfa))?.['toLowerCase'](),_0x32174a=_0x3d6d4d[_0x24ccf6(0xdf)]['get'](_0x24ccf6(0xac)),_0x5a81bc=_0x3d6d4d[_0x24ccf6(0xdf)][_0x24ccf6(0x107)](_0x24ccf6(0x13f));return{'hasEnhancement':Boolean(_0x32174a||_0x5a81bc),'explicitDisable':_0x3ebb90==='0'||_0x3ebb90===_0x24ccf6(0x121)||_0x3ebb90===_0x24ccf6(0x144),'enhancementUrl':_0x32174a,'enhancementId':_0x5a81bc};}function cleanUrlParam(_0xa663b9){const _0x52e46b=_0x31cd8b,_0x50ab88=new URL(window[_0x52e46b(0x13a)][_0x52e46b(0x12f)]);_0x50ab88[_0x52e46b(0xdf)][_0x52e46b(0x14e)](_0xa663b9)&&(_0x50ab88[_0x52e46b(0xdf)]['delete'](_0xa663b9),window[_0x52e46b(0x109)][_0x52e46b(0xae)](null,document['title'],_0x50ab88['toString']()));}var package_default={'name':_0x31cd8b(0xdc),'version':_0x31cd8b(0xb0),'type':_0x31cd8b(0x15c),'description':_0x31cd8b(0x13e),'license':'MIT','main':'./dev/index.js','module':_0x31cd8b(0xda),'types':'./dev/index.d.ts','exports':{'.':{'types':_0x31cd8b(0xc9),'import':_0x31cd8b(0xda)},'./vite':{'types':'./dev/vite/index.d.ts','import':_0x31cd8b(0x114)}},'files':['dev/'],'bin':{'enhance-sandbox':_0x31cd8b(0xa1)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':_0x31cd8b(0x119),'dev:staging':_0x31cd8b(0x11f),'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':_0x31cd8b(0x84),'build:release':_0x31cd8b(0xcb),'build:release:dev':_0x31cd8b(0x11e),'version':_0x31cd8b(0x108)},'dependencies':{'commander':_0x31cd8b(0xea),'zod':_0x31cd8b(0xa7)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x31cd8b(0x111),'tsup':_0x31cd8b(0x154),'vite':_0x31cd8b(0x159)},'publishConfig':{'access':_0x31cd8b(0x116)}},DEFAULT_SERVICE_WORKER_PATH=_0x31cd8b(0xfb),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default['version']==='string'?package_default[_0x31cd8b(0xfe)]:_0x31cd8b(0x122);function normalizeAssetPath(_0x116972){const _0x35c261=_0x31cd8b;if(!_0x116972)return _0x116972;if(_0x116972[_0x35c261(0x133)](_0x35c261(0x92))||_0x116972[_0x35c261(0x133)]('https://'))return _0x116972;const _0x4743f6=_0x116972['replace'](/^\.\//,'');return _0x4743f6['startsWith']('/')?_0x4743f6:'/'+_0x4743f6;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x5ec5ec){const _0x268cfc=_0x31cd8b;return Enhance[_0x268cfc(0x126)](_0x5ec5ec);},'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 _0x28c8f0=_0x31cd8b;return Enhance2[_0x28c8f0(0xf4)]();}function runtimeURL(){const _0x4a0974=_0x31cd8b;return Enhance2[_0x4a0974(0x8f)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
@@ -1 +1 @@
1
- 'use strict';function _0x4aa0(_0x287d1e,_0x1e4ce1){_0x287d1e=_0x287d1e-0x199;const _0x35372f=_0x3537();let _0x4aa029=_0x35372f[_0x287d1e];return _0x4aa029;}(function(_0x5be62a,_0x22fae4){const _0x2e38c4=_0x4aa0,_0x106dc1=_0x5be62a();while(!![]){try{const _0x2a80b0=parseInt(_0x2e38c4(0x253))/0x1+-parseInt(_0x2e38c4(0x2cd))/0x2*(-parseInt(_0x2e38c4(0x219))/0x3)+-parseInt(_0x2e38c4(0x246))/0x4+parseInt(_0x2e38c4(0x1ce))/0x5+parseInt(_0x2e38c4(0x1a5))/0x6+parseInt(_0x2e38c4(0x20a))/0x7*(parseInt(_0x2e38c4(0x251))/0x8)+-parseInt(_0x2e38c4(0x1ff))/0x9;if(_0x2a80b0===_0x22fae4)break;else _0x106dc1['push'](_0x106dc1['shift']());}catch(_0xb6283e){_0x106dc1['push'](_0x106dc1['shift']());}}}(_0x3537,0xaac38));function _0x3537(){const _0x2a04e7=['\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','\x20\x20\x20Enhancement\x20URL:\x20','\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{',',\x20destination:\x20','\x20MESSAGE\x20received:','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20\x20\x20Stripping\x20SRI\x20attributes...','overlayEnableViteHmr','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','/sockjs-node','(function(){','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','/__vite_ping','set-cookie2','$&\x0a','statusText','config','host','\x20\x20\x20\x20\x20\x20return;','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','style','\x20Enhancement\x20','runtimeScriptPath',',\x20null,\x202));','\x20\x20\x20Fetch\x20error:','enhance:configure','\x20Failed\x20to\x20resolve\x20enhancement\x20','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','__esModule','clear','install','request','status',')\x20-\x20returning\x20null','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','cross-origin-resource-policy','\x20\x20\x20\x20\x20\x20return\x20proxied;','no-store','search','data-enhance-runtime-bootstrap','defineProperty','/_next/webpack-hmr','\x20Calling\x20clients.claim()...','include','\x20\x20\x20securityMode:\x20','waitUntil','startsWith','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','none','(async\x20()\x20=>\x20{','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','\x20\x20\x20runtimeScriptPath:\x20','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','/sw-enhance.js','/__vite/client','/webpack-hot-middleware','/webpackhotmiddleware','cache-control','/resolve','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','production','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','\x20Config\x20reset','includes','text','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','\x20\x20\x20Rewriting\x20entry\x20references...','info','\x20\x20\x20Enhancement\x20HIT\x20for\x20','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','\x20\x20\x20\x20\x20\x20try\x20{','\x20ACTIVATE\x20event','content-length','\x20Bootstrap\x20options:','slice','\x20Resolving\x20enhancement\x20','length','\x20via\x20','\x20\x20\x20shouldInjectOverlay:\x20','message','Enhancement\x20miss\x20','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','x-enhance-routing','navigate','37886bZMLms','/webpack-hmr','callbackBypassNormalized','frame-ancestors\x20','delete','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','get','/__snowpack__','function','\x20clients.claim()\x20complete','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20\x20\x20\x20\x20\x20}','\x20\x20\x20Document\x20source:\x20','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','claim','origin','json','\x5cu003e','object-src\x20\x27none\x27','\x20Build\x20config:','stringify','access-control-allow-origin','image','5972004ZCKBaY','\x20Clearing\x20cached\x20enhancement\x20(navigation\x20without\x20param)','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','http://','overlayPath','\x20Invalid\x20message\x20data\x20-\x20ignoring','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','script','hit','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','backendUrl','trim','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','/snowpack/hmr','\x20FETCH:\x20','\x20Enhancement\x20ID\x20from\x20navigation:\x20','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','font','\x20\x20\x20Fetching\x20production\x20response...','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','\x20resolved\x20to:\x20','\x20chars','stylesheet','full','hash','\x20❌\x20Publishable\x20key\x20validation\x20failed:\x20','respondWith','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','\x20\x20\x20Not\x20OK\x20(','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','Enhancement\x20CORS\x20blocked','</script>','\x20\x20\x20enhancementUrl:\x20','enumerable','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','1271740PAQTAF','\x20chars)','getOwnPropertyDescriptor','\x20\x20\x20\x20\x20\x20return\x20false;','src','worker-src\x20\x27self\x27\x20blob:','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','enhance:disable','error','\x20Failed\x20to\x20parse\x20operatingUrl:\x20','test','HEAD','\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\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','toLowerCase','enhancementUrl','join','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','\x20Unknown\x20message\x20type:\x20','\x20shouldRouteAsset:\x20','/@vite/client','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','headers','https://assets-dev.enhancelabs.ai/overlay.js','/__webpack_hmr','content-type','\x20\x20\x20HTML\x20response\x20-\x20processing...','replace','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','permissive','\x20\x20\x20Fetching\x20enhancement\x20document...','location','\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it','content-security-policy','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','access-control-expose-headers','method','set','X-Enhance-Publishable-Key','log','pathname','})();','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','set-cookie','call','[Enhance\x20SW\x20Bootstrap]','mode','15079572HZVoHp','addEventListener','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','href','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','hasOwnProperty','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','?import','\x20\x20\x20\x20try\x20{','default','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','7hwTlmq','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','value','cors','\x20INSTALL\x20event','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20Fetching\x20from\x20enhancement...','push','\x20\x20try\x20{','GET','https://enhance-api-dev.enhancelabs.workers.dev','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','add','\x20\x20\x20Original\x20HTML\x20length:\x20','138hCKUjm','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','cross-origin-embedder-policy','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','enhancement','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','x-enhance-document','Enhancement\x20document\x20CORS\x20blocked','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','toString','/vite/client','font-src\x20*\x20data:','\x20\x20\x20\x20};','modulepreload','publishableKey','endsWith','img-src\x20*\x20data:\x20blob:','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','x-enhance-document-source','map','/webpack-dev-server','has','\x20for\x20','parse','\x20\x20\x20BYPASS:\x20','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','access-control-allow-credentials','match','Enhancement\x20document\x20fetch\x20failed','https://','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','activate','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','cross-origin-opener-policy','\x20\x20}','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20\x20\x20Rewriting\x20document...','\x20\x20\x20Content-Type:\x20','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20-\x20falling\x20back\x20to\x20production','4493084MLBUVH','enhancement-document','/auth/callback','callbackBypass','\x20\x20\x20\x20\x20\x20','<script\x20data-enhance-hmr-bridge>','worker','destination','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','enhancementBase','\x20\x20\x20Enhancement\x20document\x20URL:\x20','9439432cykkEZ','\x20handleNavigationRequest:\x20','197238nTuDnr','\x20\x20\x20Response:\x20','securityMode','\x20\x20\x20mode:\x20','\x20\x20\x20\x20}','\x20resolved\x20from\x20cache:\x20','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','clients','searchParams','[Enhance\x20SW\x20Document]','\x20\x20\x20source:\x20','url','object','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','[Enhance\x20SW\x20Routing]','custom','debug','/__parcel_hmr','data','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','Enhancement\x20document\x20miss\x20','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20fetchFromEnhancement:\x20','type','prototype','x-enhance-enhancement','opaque','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;'];_0x3537=function(){return _0x2a04e7;};return _0x3537();}var EnhanceSW=((()=>{const _0x3d760e=_0x4aa0;var _0x54abbc=Object[_0x3d760e(0x2a0)],_0xb9a32e=Object[_0x3d760e(0x1d0)],_0x4b8929=Object['getOwnPropertyNames'],_0x17dc2a=Object[_0x3d760e(0x26d)][_0x3d760e(0x204)],_0x2976b4=(_0x54ef3d,_0x109c37)=>{for(var _0xc7c76f in _0x109c37)_0x54abbc(_0x54ef3d,_0xc7c76f,{'get':_0x109c37[_0xc7c76f],'enumerable':!![]});},_0x56f813=(_0xef780b,_0x2a2e4b,_0x2fdac5,_0x5a815c)=>{const _0x1c00fa=_0x3d760e;if(_0x2a2e4b&&typeof _0x2a2e4b===_0x1c00fa(0x260)||typeof _0x2a2e4b===_0x1c00fa(0x2d6)){for(let _0x4bdfe6 of _0x4b8929(_0x2a2e4b))if(!_0x17dc2a[_0x1c00fa(0x1fc)](_0xef780b,_0x4bdfe6)&&_0x4bdfe6!==_0x2fdac5)_0x54abbc(_0xef780b,_0x4bdfe6,{'get':()=>_0x2a2e4b[_0x4bdfe6],'enumerable':!(_0x5a815c=_0xb9a32e(_0x2a2e4b,_0x4bdfe6))||_0x5a815c[_0x1c00fa(0x1cc)]});}return _0xef780b;},_0x2d64cc=_0x4a05d8=>_0x56f813(_0x54abbc({},_0x3d760e(0x294),{'value':!![]}),_0x4a05d8),_0x3bed02={};_0x2976b4(_0x3bed02,{'log':()=>_0x4cbd4f});var _0x201752=_0x3d760e(0x291),_0x3c7a83=_0x3d760e(0x1d5);function _0x52fd41(_0x53278b){if(!_0x53278b['startsWith']('/'))return'/'+_0x53278b;return _0x53278b;}function _0x294c3a(_0x3d2fac,_0x38240a){const _0x2129a7=_0x3d760e,_0x246f8c=new URL(_0x3d2fac['toString']()),_0x1aeee4=_0x246f8c[_0x2129a7(0x1f6)][_0x2129a7(0x22b)]('/')?_0x246f8c['pathname'][_0x2129a7(0x2c3)](0x0,-0x1):_0x246f8c[_0x2129a7(0x1f6)],_0x33712d=_0x38240a[_0x2129a7(0x1f6)]['startsWith']('/')?_0x38240a[_0x2129a7(0x1f6)]:'/'+_0x38240a[_0x2129a7(0x1f6)];return _0x246f8c['pathname']=(''+_0x1aeee4+_0x33712d)[_0x2129a7(0x1e9)](/\/+/g,'/'),_0x246f8c[_0x2129a7(0x29e)]=_0x38240a[_0x2129a7(0x29e)],_0x246f8c[_0x2129a7(0x1c2)]='',_0x246f8c;}var _0x4c97b5=_0x3d760e(0x263),_0x595f85=_0x3d760e(0x1f4),_0x4ea944=new Set([_0x3d760e(0x1ad),_0x3d760e(0x28c),_0x3d760e(0x1bb),_0x3d760e(0x1a4),_0x3d760e(0x24c),'sharedworker',_0x3d760e(0x229)]);function _0x52b19b(_0x3c7d9c){const _0x51b80c=_0x3d760e,_0x216a19=_0x3c7d9c[_0x51b80c(0x1f2)]==='GET'||_0x3c7d9c[_0x51b80c(0x1f2)]===_0x51b80c(0x1d9);return _0x216a19;}function _0x34b858(_0x3c1959,_0x42d051){const _0x2e0963=_0x3d760e,_0xecb185=_0x52fd41(_0x42d051),_0x1a51e2=_0x3c1959[_0x2e0963(0x2cf)]['some'](_0x24384a=>_0xecb185['startsWith'](_0x24384a));return _0x1a51e2;}function _0x3e4222(_0xa1e317,_0x324341,_0x5e4ba9){const _0x1d3ca0=_0x3d760e,_0x5bdefa=_0x324341['destination'];if(!_0x5bdefa||!_0x4ea944[_0x1d3ca0(0x231)](_0x5bdefa))return![];if(_0x188695(_0xa1e317,_0x5e4ba9))return console[_0x1d3ca0(0x1f5)](_0x4c97b5+_0x1d3ca0(0x1e1)+_0x5e4ba9[_0x1d3ca0(0x1f6)]+_0x1d3ca0(0x1b2)),![];if(_0x43e7d7(_0xa1e317,_0x5e4ba9))return console[_0x1d3ca0(0x1f5)](_0x4c97b5+'\x20shouldRouteAsset:\x20'+_0x5e4ba9['pathname']+_0x1d3ca0(0x1bd)),![];if(_0x5e4ba9[_0x1d3ca0(0x19d)]!==self['location'][_0x1d3ca0(0x19d)])return![];return!![];}async function _0x1e4b09(_0x283d5e,_0x234666,_0x21ed30){const _0x566747=_0x3d760e;console['log'](_0x4c97b5+_0x566747(0x26b)+_0x21ed30[_0x566747(0x1f6)]);if(!_0x283d5e[_0x566747(0x24f)])return console[_0x566747(0x1f5)](_0x4c97b5+_0x566747(0x1af)),null;const _0x3e114d=_0x1160f4(_0x283d5e,_0x21ed30);console[_0x566747(0x1f5)](_0x4c97b5+_0x566747(0x274)+_0x3e114d['toString']());const _0x2ecda8=new Headers(_0x234666['headers']);_0x2ecda8[_0x566747(0x1f3)](_0x566747(0x2cb),_0x566747(0x21f)),_0x2ecda8[_0x566747(0x2d1)](_0x566747(0x289));_0x283d5e[_0x566747(0x22a)]&&_0x2ecda8[_0x566747(0x1f3)](_0x595f85,_0x283d5e[_0x566747(0x22a)]);const _0x8cd2ae=new Request(_0x3e114d['toString'](),{'method':_0x234666[_0x566747(0x1f2)],'headers':_0x2ecda8,'credentials':_0x566747(0x2a3),'redirect':_0x234666['redirect'],'cache':_0x566747(0x208),'mode':_0x566747(0x20e)});try{console['log'](_0x4c97b5+_0x566747(0x211));const _0x1314a5=await fetch(_0x8cd2ae);console['log'](_0x4c97b5+_0x566747(0x254)+_0x1314a5['status']+'\x20'+_0x1314a5[_0x566747(0x287)]+',\x20type:\x20'+_0x1314a5[_0x566747(0x26c)]);if(_0x1314a5[_0x566747(0x26c)]===_0x566747(0x26f))return console[_0x566747(0x1f5)](_0x4c97b5+_0x566747(0x2b9)),_0x4cbd4f(_0x566747(0x2bb),_0x566747(0x1c9),_0x3e114d[_0x566747(0x225)]()),null;if(!_0x1314a5['ok'])return console['log'](_0x4c97b5+_0x566747(0x1c6)+_0x1314a5[_0x566747(0x298)]+_0x566747(0x299)),_0x4cbd4f(_0x566747(0x265),_0x566747(0x2c9)+_0x1314a5[_0x566747(0x298)]+_0x566747(0x232)+_0x3e114d[_0x566747(0x1f6)]),null;return console[_0x566747(0x1f5)](_0x4c97b5+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),_0xeb1f2d(_0x1314a5,_0x234666[_0x566747(0x1f2)]);}catch(_0x591547){return console[_0x566747(0x1d6)](_0x4c97b5+_0x566747(0x290),_0x591547),_0x4cbd4f(_0x566747(0x2bb),'Enhancement\x20fetch\x20failed',_0x591547),null;}}async function _0x5dfdfe(_0x25dc7e,_0x3160fd){const _0x454fd7=_0x3d760e,_0x23b320=new URL(_0x3160fd[_0x454fd7(0x25f)]);console['log'](_0x4c97b5+'\x20fetchEnhancementDocument:\x20'+_0x23b320[_0x454fd7(0x1f6)]+_0x23b320['search']);if(!_0x25dc7e[_0x454fd7(0x24f)])return console[_0x454fd7(0x1f5)](_0x4c97b5+'\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null'),null;const _0xb5ac66=_0x1160f4(_0x25dc7e,_0x23b320);console['log'](_0x4c97b5+_0x454fd7(0x250)+_0xb5ac66[_0x454fd7(0x225)]());const _0x3573ef=new Headers(_0x3160fd[_0x454fd7(0x1e4)]);_0x3573ef[_0x454fd7(0x1f3)](_0x454fd7(0x2cb),_0x454fd7(0x247)),_0x3573ef[_0x454fd7(0x2d1)](_0x454fd7(0x289)),_0x3573ef[_0x454fd7(0x2d1)](_0x454fd7(0x2c1));_0x25dc7e['publishableKey']&&_0x3573ef[_0x454fd7(0x1f3)](_0x595f85,_0x25dc7e[_0x454fd7(0x22a)]);const _0x597f29=new Request(_0xb5ac66[_0x454fd7(0x225)](),{'method':_0x454fd7(0x214),'headers':_0x3573ef,'credentials':_0x454fd7(0x2a3),'redirect':'follow','cache':_0x454fd7(0x208),'mode':_0x454fd7(0x20e)});try{console[_0x454fd7(0x1f5)](_0x4c97b5+_0x454fd7(0x1ec));const _0x5afb45=await fetch(_0x597f29);console[_0x454fd7(0x1f5)](_0x4c97b5+_0x454fd7(0x254)+_0x5afb45['status']+'\x20'+_0x5afb45['statusText']+',\x20type:\x20'+_0x5afb45[_0x454fd7(0x26c)]),console[_0x454fd7(0x1f5)](_0x4c97b5+_0x454fd7(0x243)+_0x5afb45['headers'][_0x454fd7(0x2d4)](_0x454fd7(0x1e7)));if(_0x5afb45['type']===_0x454fd7(0x26f))return console[_0x454fd7(0x1f5)](_0x4c97b5+_0x454fd7(0x2b9)),_0x4cbd4f(_0x454fd7(0x2bb),_0x454fd7(0x223),_0xb5ac66['toString']()),null;if(!_0x5afb45['ok'])return console[_0x454fd7(0x1f5)](_0x4c97b5+_0x454fd7(0x1c6)+_0x5afb45['status']+')\x20-\x20returning\x20null'),_0x4cbd4f(_0x454fd7(0x265),_0x454fd7(0x269)+_0x5afb45[_0x454fd7(0x298)]+_0x454fd7(0x232)+_0xb5ac66[_0x454fd7(0x1f6)]),null;if(!_0x5f0672(_0x5afb45))return console[_0x454fd7(0x1f5)](_0x4c97b5+_0x454fd7(0x293)),null;return console[_0x454fd7(0x1f5)](_0x4c97b5+_0x454fd7(0x20c)),_0xeb1f2d(_0x5afb45,_0x454fd7(0x214));}catch(_0x20a1ac){return console[_0x454fd7(0x1d6)](_0x4c97b5+'\x20\x20\x20Document\x20fetch\x20error:',_0x20a1ac),_0x4cbd4f(_0x454fd7(0x2bb),_0x454fd7(0x238),_0x20a1ac),null;}}function _0x1160f4(_0x4ed63f,_0x3eb18e){const _0x446e98=_0x3d760e;if(!_0x4ed63f['enhancementBase'])throw new Error(_0x446e98(0x280));return _0x294c3a(_0x4ed63f[_0x446e98(0x24f)],_0x3eb18e);}function _0xeb1f2d(_0x183811,_0x2bb7b5){const _0x3378a5=_0x3d760e,_0x4a1476=_0x183811['clone'](),_0x3b622a=new Headers(_0x4a1476[_0x3378a5(0x1e4)]);_0x3b622a['delete'](_0x3378a5(0x1a3)),_0x3b622a[_0x3378a5(0x2d1)](_0x3378a5(0x236)),_0x3b622a[_0x3378a5(0x2d1)](_0x3378a5(0x1f1)),_0x3b622a[_0x3378a5(0x1f3)](_0x3378a5(0x26e),_0x3378a5(0x1ae)),_0x3e905e(_0x3b622a);const _0x14b0b1=_0x2bb7b5==='HEAD'?null:_0x4a1476['body'];return new Response(_0x14b0b1,{'status':_0x4a1476[_0x3378a5(0x298)],'statusText':_0x4a1476['statusText'],'headers':_0x3b622a});}function _0x5f0672(_0x2f9aed){const _0x93a939=_0x3d760e,_0x202709=_0x2f9aed['headers'][_0x93a939(0x2d4)](_0x93a939(0x1e7));return _0x202709!=null&&_0x202709[_0x93a939(0x2b7)]('text/html');}function _0x188695(_0x27e61c,_0x98a995){const _0x367568=_0x3d760e;return _0x5cff71(_0x98a995,_0x27e61c[_0x367568(0x1a9)]);}function _0x43e7d7(_0x1e8bc4,_0x49b386){const _0x24be95=_0x3d760e;return _0x575b9f(_0x49b386,_0x1e8bc4[_0x24be95(0x28e)]);}function _0x5cff71(_0x13871c,_0x3a7a2a){const _0x520337=_0x3d760e;if(!_0x3a7a2a)return![];if(_0x3a7a2a['startsWith'](_0x520337(0x1a8))||_0x3a7a2a['startsWith'](_0x520337(0x239)))return _0x13871c[_0x520337(0x202)]===_0x3a7a2a;const _0x13e400=_0x1bf96c(_0x3a7a2a);if(!_0x13e400)return![];const _0xe63d0=''+_0x13871c[_0x520337(0x1f6)]+_0x13871c[_0x520337(0x29e)];if(_0xe63d0===_0x13e400)return!![];if(_0x13871c[_0x520337(0x29e)]===_0x520337(0x206))return _0x13871c['pathname']===_0x13e400;return![];}function _0x575b9f(_0x5b7e9a,_0x1be637){const _0x30dfe8=_0x3d760e;if(!_0x1be637)return![];if(_0x1be637[_0x30dfe8(0x2a6)](_0x30dfe8(0x1a8))||_0x1be637[_0x30dfe8(0x2a6)](_0x30dfe8(0x239)))return _0x5b7e9a[_0x30dfe8(0x202)]===_0x1be637;const _0x24e4a4=_0x1bf96c(_0x1be637);if(!_0x24e4a4)return![];const _0x50991b=''+_0x5b7e9a[_0x30dfe8(0x1f6)]+_0x5b7e9a[_0x30dfe8(0x29e)];return _0x50991b===_0x24e4a4;}function _0x1bf96c(_0x2e9bad){const _0x5c0bfa=_0x3d760e;if(!_0x2e9bad)return _0x2e9bad;if(_0x2e9bad[_0x5c0bfa(0x2a6)](_0x5c0bfa(0x1a8))||_0x2e9bad['startsWith'](_0x5c0bfa(0x239)))return _0x2e9bad;const _0x5cf3b5=_0x2e9bad[_0x5c0bfa(0x1e9)](/^\.\//,'');if(_0x5cf3b5['startsWith']('/'))return _0x5cf3b5;return'/'+_0x5cf3b5;}function _0x3e905e(_0x521c60){const _0x1fe2e8=_0x3d760e;_0x521c60[_0x1fe2e8(0x2d1)](_0x1fe2e8(0x1fb)),_0x521c60[_0x1fe2e8(0x2d1)](_0x1fe2e8(0x285));}function _0x3b65a4(_0xb3c305){const _0x53cfe9=_0x3d760e,_0x3505f2=['default-src\x20\x27self\x27\x20blob:\x20data:',_0x53cfe9(0x28b),_0x53cfe9(0x23a),_0x53cfe9(0x22c),_0x53cfe9(0x227),'connect-src\x20*','media-src\x20*\x20data:\x20blob:',_0x53cfe9(0x1d3),_0x53cfe9(0x1a0)],_0x2767f1=_0x3be7ee(_0xb3c305);return _0x2767f1&&_0x3505f2[_0x53cfe9(0x212)](_0x2767f1),_0x3505f2[_0x53cfe9(0x1de)](';\x20');}function _0x361906(_0x5dbb13){const _0xc328=_0x3d760e;_0x5dbb13['delete'](_0xc328(0x1fb)),_0x5dbb13[_0xc328(0x2d1)](_0xc328(0x285));}function _0x3be7ee(_0x3dc5c7){const _0x5acd4c=_0x3d760e;if(!_0x3dc5c7)return null;const _0x30649d=_0x3dc5c7[_0x5acd4c(0x237)](/frame-ancestors\s+([^;]+)/i);if(!_0x30649d)return null;return _0x5acd4c(0x2d0)+_0x30649d[0x1][_0x5acd4c(0x1b5)]();}function _0x19508f(_0x36aa95,_0x390d66){const _0x486753=_0x3d760e;if(/<head[^>]*>/i[_0x486753(0x1d8)](_0x36aa95)){const _0x349cee=_0x36aa95[_0x486753(0x237)](/<head[^>]*>/i);if(_0x349cee){const _0x14f2ef=_0x349cee[0x0];return _0x36aa95[_0x486753(0x1e9)](_0x14f2ef,_0x14f2ef+'\x0a'+_0x390d66);}}if(/<\/head>/i[_0x486753(0x1d8)](_0x36aa95))return _0x36aa95[_0x486753(0x1e9)](/<\/head>/i,_0x390d66+'\x0a</head>');if(/<body\b[^>]*>/i[_0x486753(0x1d8)](_0x36aa95))return _0x36aa95[_0x486753(0x1e9)](/<body\b[^>]*>/i,_0x486753(0x286)+_0x390d66);if(/<\/body>/i['test'](_0x36aa95))return _0x36aa95[_0x486753(0x1e9)](/<\/body>/i,_0x390d66+'\x0a</body>');return _0x390d66+'\x0a'+_0x36aa95;}var _0xc00548=['vite-hmr'],_0x1eee49=[_0x3d760e(0x1e2),_0x3d760e(0x2ae),_0x3d760e(0x226),_0x3d760e(0x284),_0x3d760e(0x281),_0x3d760e(0x230),_0x3d760e(0x2ce),_0x3d760e(0x2b0),_0x3d760e(0x2af),_0x3d760e(0x1e6),_0x3d760e(0x2a1),'/parcel-hmr',_0x3d760e(0x266),_0x3d760e(0x2d5),_0x3d760e(0x1b7)];function _0x1997c8(_0x577d25,_0x2e9ec3){const _0x21bf8d=_0x30a951(_0x577d25);if(!_0x21bf8d)return _0x2e9ec3;return _0x19508f(_0x2e9ec3,_0x21bf8d);}function _0x30a951(_0x1fde9b){const _0x4e3958=_0x3d760e;if(!_0x1fde9b[_0x4e3958(0x24f)])return null;const _0xd7a0c1=_0x1fde9b[_0x4e3958(0x24f)][_0x4e3958(0x225)](),_0x27dc77=_0xdc56b4(_0xc00548),_0x1b0091=_0xdc56b4(_0x1eee49),_0xf7806f=[_0x4e3958(0x24b),_0x4e3958(0x282),_0x4e3958(0x213),_0x4e3958(0x2b5)+JSON[_0x4e3958(0x1a2)](_0xd7a0c1)+');',_0x4e3958(0x1b6),_0x4e3958(0x2d2),_0x4e3958(0x28a),_0x4e3958(0x257),_0x4e3958(0x25a)+JSON[_0x4e3958(0x1a2)](_0x27dc77)+');',_0x4e3958(0x261)+JSON[_0x4e3958(0x1a2)](_0x1b0091)+';',_0x4e3958(0x2d3),_0x4e3958(0x272),_0x4e3958(0x259),'\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];',_0x4e3958(0x228),_0x4e3958(0x276),_0x4e3958(0x1b1),_0x4e3958(0x209),'\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);',_0x4e3958(0x270),'\x20\x20\x20\x20\x20\x20',_0x4e3958(0x2aa),_0x4e3958(0x24a),_0x4e3958(0x21a),_0x4e3958(0x201),_0x4e3958(0x210),_0x4e3958(0x199),'\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);',_0x4e3958(0x24e),'\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];',_0x4e3958(0x268),_0x4e3958(0x27d),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x4e3958(0x199),'\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();',_0x4e3958(0x277),_0x4e3958(0x1f8),_0x4e3958(0x27d),_0x4e3958(0x1f9),_0x4e3958(0x199),_0x4e3958(0x1d1),_0x4e3958(0x228),_0x4e3958(0x1df),_0x4e3958(0x27b),_0x4e3958(0x1c7),_0x4e3958(0x21b),_0x4e3958(0x235),_0x4e3958(0x29c),'\x20\x20\x20\x20};',_0x4e3958(0x1d4),_0x4e3958(0x2bf),_0x4e3958(0x23b),_0x4e3958(0x27a),_0x4e3958(0x21e),_0x4e3958(0x1fa),_0x4e3958(0x1f9),_0x4e3958(0x22d),_0x4e3958(0x221),_0x4e3958(0x199),_0x4e3958(0x2d9),_0x4e3958(0x228),_0x4e3958(0x224),_0x4e3958(0x1db),_0x4e3958(0x21c),_0x4e3958(0x207),'\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});',_0x4e3958(0x26a),_0x4e3958(0x1a7),_0x4e3958(0x257),_0x4e3958(0x244),_0x4e3958(0x2bd),_0x4e3958(0x275),'\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','\x20\x20}',_0x4e3958(0x1f7),_0x4e3958(0x1ca)];return _0xf7806f['join']('\x0a');}function _0xdc56b4(_0x519db8){const _0x394431=_0x3d760e,_0x3cad80=new Set(),_0x4f475b=[];for(const _0x2ac798 of _0x519db8){const _0x24d54f=_0x2ac798[_0x394431(0x1dc)]();if(_0x3cad80[_0x394431(0x231)](_0x24d54f))continue;_0x3cad80[_0x394431(0x217)](_0x24d54f),_0x4f475b[_0x394431(0x212)](_0x24d54f);}return _0x4f475b;}var _0x5a8055=_0x3d760e(0x1fd);function _0x1e92ce(_0x5cfe6a,_0x2581af){const _0xc2ad5b=_0x3d760e;console[_0xc2ad5b(0x1f5)](_0x5a8055+'\x20injectRuntimeBootstrap()\x20called'),console[_0xc2ad5b(0x1f5)](_0x5a8055+_0xc2ad5b(0x2ab)+_0x5cfe6a['runtimeScriptPath']),console[_0xc2ad5b(0x1f5)](_0x5a8055+'\x20\x20\x20overlayPath:\x20'+_0x5cfe6a[_0xc2ad5b(0x1a9)]);if(_0x2581af[_0xc2ad5b(0x2b7)](_0xc2ad5b(0x29f)))return console[_0xc2ad5b(0x1f5)](_0x5a8055+_0xc2ad5b(0x1ee)),_0x2581af;const _0xf33138=_0x446102(_0x5cfe6a);if(!_0xf33138)return console[_0xc2ad5b(0x1f5)](_0x5a8055+_0xc2ad5b(0x2ac)),_0x2581af;console[_0xc2ad5b(0x1f5)](_0x5a8055+'\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20('+_0xf33138[_0xc2ad5b(0x2c5)]+_0xc2ad5b(0x1cf));const _0x629973=_0x19508f(_0x2581af,_0xf33138);return console[_0xc2ad5b(0x1f5)](_0x5a8055+'\x20\x20\x20Script\x20inserted\x20into\x20document'),_0x629973;}function _0x446102(_0x5a92b6){const _0x934699=_0x3d760e,_0x27b6ec=_0x5a92b6[_0x934699(0x28e)];if(!_0x27b6ec)return console['log'](_0x5a8055+'\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null'),null;const _0x5b8139=_0x39df12(_0x5a92b6);console[_0x934699(0x1f5)](_0x5a8055+_0x934699(0x2c2),JSON['stringify'](_0x5b8139,null,0x2));const _0x1c012e=_0x2438a0(_0x5b8139),_0x51c624=JSON[_0x934699(0x1a2)](_0x27b6ec),_0x35fe72=['<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>',_0x934699(0x2a9),'\x20\x20try\x20{',_0x934699(0x1ab)+_0x51c624+';',_0x934699(0x2b3),_0x934699(0x220),_0x934699(0x203),_0x934699(0x2a7),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));',_0x934699(0x241),_0x934699(0x19b),'\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);',_0x934699(0x28a),_0x934699(0x257),_0x934699(0x23e)+_0x1c012e+_0x934699(0x28f),_0x934699(0x1ac)+_0x1c012e+');',_0x934699(0x273),_0x934699(0x271),_0x934699(0x2ca),_0x934699(0x1b3),_0x934699(0x1da),_0x934699(0x2be),_0x934699(0x1cd),_0x934699(0x27c),'\x20\x20\x20\x20}',_0x934699(0x262),_0x934699(0x275),_0x934699(0x1ba),_0x934699(0x240),_0x934699(0x1f7),_0x934699(0x1ca)];return _0x35fe72[_0x934699(0x1de)]('\x0a');}function _0x39df12(_0x1bec83){const _0x436fa5=_0x3d760e,_0x29c2fe={'publishableKey':_0x1bec83['publishableKey'],'callbackBypass':_0x1bec83[_0x436fa5(0x249)],'__development':{'enableOverlayHmr':_0x1bec83[_0x436fa5(0x27f)],'overlayPath':_0x1bec83['overlayPath'],'security':_0x1bec83[_0x436fa5(0x255)],'backendUrl':_0x1bec83[_0x436fa5(0x1b4)]}};return _0x29c2fe;}function _0x2438a0(_0x200f13){const _0x3fffce=_0x3d760e;return JSON[_0x3fffce(0x1a2)](_0x200f13)['replace'](/</g,'\x5cu003c')['replace'](/>/g,_0x3fffce(0x19f));}function _0xdfd0a2(_0x433057,_0xcab03c){const _0x4f06cb=_0x3d760e,_0xd65ab=_0x10ad1c=>_0x1e8491(_0x433057,_0x10ad1c),_0xda5270=_0x45bd4d=>_0x20fe0f(_0x433057,_0x45bd4d);return _0xcab03c[_0x4f06cb(0x1e9)](/<script\b[^>]*>/gi,_0xd65ab)[_0x4f06cb(0x1e9)](/<link\b[^>]*>/gi,_0xda5270);}function _0x320f92(_0x3d7b34){return _0x3d7b34['replace'](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x1e8491(_0x3c4613,_0x1bba34){const _0x56a14a=_0x3d760e,_0x48bc92=_0x166c4a(_0x1bba34,_0x56a14a(0x1d2));if(!_0x48bc92)return _0x1bba34;const _0x2bf749=_0x386fd7(_0x3c4613,_0x48bc92[_0x56a14a(0x20d)]);if(!_0x2bf749||_0x2bf749===_0x48bc92[_0x56a14a(0x20d)])return _0x1bba34;const _0x2d9d71=_0x48bc92[_0x56a14a(0x1c1)][_0x56a14a(0x1e9)](_0x48bc92[_0x56a14a(0x20d)],_0x2bf749);return _0x1bba34[_0x56a14a(0x1e9)](_0x48bc92[_0x56a14a(0x1c1)],_0x2d9d71);}function _0x20fe0f(_0xf101c8,_0x492755){const _0x35c447=_0x3d760e,_0x2b9ee9=_0x492755[_0x35c447(0x237)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x2b9ee9)return _0x492755;const _0x1ea49d=_0x2b9ee9[0x2][_0x35c447(0x1dc)]();if(_0x1ea49d!==_0x35c447(0x1c0)&&_0x1ea49d!==_0x35c447(0x229))return _0x492755;const _0x5b3c4c=_0x166c4a(_0x492755,_0x35c447(0x202));if(!_0x5b3c4c)return _0x492755;const _0x15fe4d=_0x386fd7(_0xf101c8,_0x5b3c4c['value']);if(!_0x15fe4d||_0x15fe4d===_0x5b3c4c['value'])return _0x492755;const _0x43430b=_0x5b3c4c[_0x35c447(0x1c1)][_0x35c447(0x1e9)](_0x5b3c4c[_0x35c447(0x20d)],_0x15fe4d);return _0x492755[_0x35c447(0x1e9)](_0x5b3c4c[_0x35c447(0x1c1)],_0x43430b);}function _0x166c4a(_0x398f24,_0x3c6b3a){const _0x1ffd9d=_0x3d760e,_0x44ac75=new RegExp(_0x3c6b3a+_0x1ffd9d(0x205),'i'),_0x418e5d=_0x398f24[_0x1ffd9d(0x237)](_0x44ac75);if(!_0x418e5d)return null;return{'full':_0x418e5d[0x0],'value':_0x418e5d[0x2]};}function _0x386fd7(_0x5402fe,_0x3d562a){const _0x3f7a17=_0x3d760e,_0x43ab4d=_0x2b312d(_0x3d562a);if(!_0x43ab4d)return null;if(_0x43ab4d['origin']===self[_0x3f7a17(0x1ed)][_0x3f7a17(0x19d)])return''+_0x43ab4d[_0x3f7a17(0x1f6)]+_0x43ab4d['search'];return null;}function _0x2b312d(_0x330a08){const _0xf14457=_0x3d760e;try{return new URL(_0x330a08,self[_0xf14457(0x1ed)]['origin']);}catch{return null;}}var _0x34060f=_0x3d760e(0x25d);async function _0x3158bc(_0x2a83eb,_0xabc62,_0x42ad0c,_0x54c941=!![]){const _0x27ab31=_0x3d760e;console['log'](_0x34060f+'\x20rewriteDocument()\x20called'),console[_0x27ab31(0x1f5)](_0x34060f+_0x27ab31(0x25e)+_0x42ad0c),console[_0x27ab31(0x1f5)](_0x34060f+_0x27ab31(0x2c7)+_0x54c941),console[_0x27ab31(0x1f5)](_0x34060f+_0x27ab31(0x2a4)+_0x2a83eb[_0x27ab31(0x255)]);const _0x2a8ce7=_0xabc62['clone'](),_0x43e15c=await _0x2a8ce7[_0x27ab31(0x2b8)]();console[_0x27ab31(0x1f5)](_0x34060f+_0x27ab31(0x218)+_0x43e15c[_0x27ab31(0x2c5)]+'\x20chars'),console[_0x27ab31(0x1f5)](_0x34060f+_0x27ab31(0x27e));const _0x30ecbf=_0x320f92(_0x43e15c);console['log'](_0x34060f+_0x27ab31(0x2ba));let _0x389a0d=_0xdfd0a2(_0x2a83eb,_0x30ecbf);_0x42ad0c===_0x27ab31(0x21f)?(console[_0x27ab31(0x1f5)](_0x34060f+_0x27ab31(0x1c8)),_0x389a0d=_0x1997c8(_0x2a83eb,_0x389a0d)):console[_0x27ab31(0x1f5)](_0x34060f+_0x27ab31(0x1e3));_0x54c941?(console['log'](_0x34060f+_0x27ab31(0x1ea)),_0x389a0d=_0x1e92ce(_0x2a83eb,_0x389a0d)):console['log'](_0x34060f+_0x27ab31(0x216));console[_0x27ab31(0x1f5)](_0x34060f+_0x27ab31(0x20b)+_0x389a0d[_0x27ab31(0x2c5)]+_0x27ab31(0x1bf));const _0x2113e3=new Headers(_0x2a8ce7['headers']);_0x2113e3[_0x27ab31(0x1f3)](_0x27ab31(0x2b1),_0x27ab31(0x29d)),_0x2113e3['set'](_0x27ab31(0x222),'rewritten'),_0x2113e3[_0x27ab31(0x1f3)](_0x27ab31(0x22e),_0x42ad0c),_0x361906(_0x2113e3);if(_0x2a83eb['securityMode']!==_0x27ab31(0x264)){console[_0x27ab31(0x1f5)](_0x34060f+'\x20\x20\x20Applying\x20permissive\x20CSP...');const _0x11c5ea=_0x2113e3[_0x27ab31(0x2d4)]('content-security-policy');_0x2113e3['set'](_0x27ab31(0x1ef),_0x3b65a4(_0x11c5ea)),_0x2113e3[_0x27ab31(0x2d1)](_0x27ab31(0x23f)),_0x2113e3['delete'](_0x27ab31(0x21d)),_0x2113e3['delete'](_0x27ab31(0x29b));}else console['log'](_0x34060f+_0x27ab31(0x23d));return console[_0x27ab31(0x1f5)](_0x34060f+'\x20\x20\x20Document\x20rewrite\x20complete'),new Response(_0x389a0d,{'status':_0x2a8ce7['status'],'statusText':_0x2a8ce7['statusText'],'headers':_0x2113e3});}var _0x4caf46='[Enhance\x20SW]';console[_0x3d760e(0x1f5)](_0x4caf46+_0x3d760e(0x2d8)+new Date()['toISOString']());var _0x3eba6e={'overlayPath':_0x3d760e(0x1e5),'backendUrl':_0x3d760e(0x215),'overlayEnableViteHmr':![],'runtimeScriptPath':'/assets/enhance-runtime.js','swPath':_0x3d760e(0x2ad)};console[_0x3d760e(0x1f5)](_0x4caf46+_0x3d760e(0x1a1),JSON[_0x3d760e(0x1a2)](_0x3eba6e,null,0x2));var _0x568434={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':_0x3d760e(0x1eb)},_0x474279=_0x3d760e(0x1f4),_0xcf5a43=new Map(),_0x492add=null,_0x14bc2a=null,_0x3bdb7e=null;function _0x53d57a(){const _0x23518a=_0x3d760e,_0x2f6112=_0x14bc2a||'',_0x5a1874=_0x3bdb7e;return{..._0x3eba6e,..._0x568434,'enhancementUrl':_0x2f6112,'enhancementBase':_0x5a1874,'callbackBypassNormalized':_0x568434[_0x23518a(0x249)][_0x23518a(0x22f)](_0x5af4d9=>_0x5af4d9[_0x23518a(0x2a6)]('/')?_0x5af4d9:'/'+_0x5af4d9)};}async function _0x433ff4(_0xb8753,_0x5cc8d3){const _0x55de56=_0x3d760e,_0x248797=_0xb8753[_0x55de56(0x25c)][_0x55de56(0x2d4)]('enhancement');if(_0x5cc8d3&&_0x248797){console['log'](_0x4caf46+_0x55de56(0x1b9)+_0x248797);const _0x3da411=await _0x495c36(_0x248797);if(_0x3da411){_0x492add=_0x248797,_0x14bc2a=_0x3da411;try{_0x3bdb7e=new URL(_0x3da411);}catch{console[_0x55de56(0x1d6)](_0x4caf46+_0x55de56(0x1d7)+_0x3da411),_0x3bdb7e=null;}}else _0x492add=null,_0x14bc2a=null,_0x3bdb7e=null;}return _0x5cc8d3&&!_0x248797&&(_0x492add&&console['log'](_0x4caf46+_0x55de56(0x1a6)),_0x492add=null,_0x14bc2a=null,_0x3bdb7e=null),_0x53d57a();}function _0x4cbd4f(_0x3a7575,_0x115cde,..._0x384159){const _0x2f45a1=_0x3d760e;_0x3a7575==='info'?console[_0x2f45a1(0x2bb)](_0x4caf46,_0x115cde,..._0x384159):console[_0x2f45a1(0x265)](_0x4caf46,_0x115cde,..._0x384159);}async function _0x495c36(_0x2ec833){const _0x370157=_0x3d760e,_0xb4a451=_0xcf5a43[_0x370157(0x2d4)](_0x2ec833);if(_0xb4a451)return console['log'](_0x4caf46+_0x370157(0x28d)+_0x2ec833+_0x370157(0x258)+_0xb4a451),_0xb4a451;if(!_0x568434[_0x370157(0x22a)])return console['error'](_0x4caf46+'\x20Cannot\x20resolve\x20enhancement\x20-\x20no\x20publishable\x20key\x20configured'),null;const _0x514066=_0x3eba6e['backendUrl']+'/public/enhancements/'+_0x2ec833+_0x370157(0x2b2);console[_0x370157(0x1f5)](_0x4caf46+_0x370157(0x2c4)+_0x2ec833+_0x370157(0x2c6)+_0x514066);try{const _0x442107=await fetch(_0x514066,{'headers':{[_0x474279]:_0x568434[_0x370157(0x22a)]}});if(!_0x442107['ok']){let _0x47b212=await _0x442107[_0x370157(0x2b8)]();try{const _0x5e3b9e=JSON[_0x370157(0x233)](_0x47b212);_0x5e3b9e[_0x370157(0x1d6)]&&(_0x47b212=_0x5e3b9e[_0x370157(0x1d6)]);}catch{}return _0x442107['status']===0x193?console[_0x370157(0x1d6)](_0x4caf46+_0x370157(0x1c3)+_0x47b212):console[_0x370157(0x1d6)](_0x4caf46+_0x370157(0x292)+_0x2ec833+':\x20'+_0x442107['status']+'\x20'+_0x47b212),null;}const _0x396345=await _0x442107[_0x370157(0x19e)](),_0x211630=''+_0x3eba6e[_0x370157(0x1b4)]+_0x396345['operatingPath'];return console[_0x370157(0x1f5)](_0x4caf46+'\x20Enhancement\x20'+_0x2ec833+_0x370157(0x1be)+_0x211630),_0xcf5a43[_0x370157(0x1f3)](_0x2ec833,_0x211630),_0x211630;}catch(_0x52321e){return console[_0x370157(0x1d6)](_0x4caf46+'\x20Error\x20resolving\x20enhancement\x20'+_0x2ec833+':',_0x52321e),null;}}self['addEventListener'](_0x3d760e(0x296),_0x574834=>{const _0x3a0204=_0x3d760e;console[_0x3a0204(0x1f5)](_0x4caf46+_0x3a0204(0x20f)),_0x574834[_0x3a0204(0x2a5)](((async()=>{const _0x2c6242=_0x3a0204;console[_0x2c6242(0x1f5)](_0x4caf46+'\x20Calling\x20skipWaiting()...'),await self['skipWaiting'](),console[_0x2c6242(0x1f5)](_0x4caf46+'\x20skipWaiting()\x20complete');})()));}),self[_0x3d760e(0x200)](_0x3d760e(0x23c),_0x11ab40=>{const _0x493466=_0x3d760e;console[_0x493466(0x1f5)](_0x4caf46+_0x493466(0x2c0)),_0x11ab40['waitUntil'](((async()=>{const _0x51d610=_0x493466;console[_0x51d610(0x1f5)](_0x4caf46+_0x51d610(0x2a2)),await self[_0x51d610(0x25b)][_0x51d610(0x19c)](),console['log'](_0x4caf46+_0x51d610(0x2d7));})()));}),self[_0x3d760e(0x200)](_0x3d760e(0x2c8),_0x1959cb=>{const _0x468152=_0x3d760e,_0x22eb4f=_0x1959cb[_0x468152(0x267)];console[_0x468152(0x1f5)](_0x4caf46+_0x468152(0x279),_0x22eb4f);if(!_0x22eb4f||typeof _0x22eb4f!==_0x468152(0x260)){console[_0x468152(0x1f5)](_0x4caf46+_0x468152(0x1aa));return;}switch(_0x22eb4f[_0x468152(0x26c)]){case _0x201752:{console[_0x468152(0x1f5)](_0x4caf46+'\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config');const _0x1aba8a=_0x22eb4f[_0x468152(0x288)];_0x568434={'publishableKey':_0x1aba8a[_0x468152(0x22a)]??'','callbackBypass':_0x1aba8a[_0x468152(0x249)]??[_0x468152(0x248)],'securityMode':_0x1aba8a[_0x468152(0x255)]??_0x468152(0x1eb)},console['log'](_0x4caf46+'\x20Customer\x20config\x20updated:',JSON[_0x468152(0x1a2)](_0x568434,null,0x2));break;}case _0x3c7a83:console[_0x468152(0x1f5)](_0x4caf46+'\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config'),_0x568434={'publishableKey':'','callbackBypass':[_0x468152(0x248)],'securityMode':_0x468152(0x1eb)},_0x492add=null,_0x14bc2a=null,_0x3bdb7e=null,_0xcf5a43[_0x468152(0x295)](),console[_0x468152(0x1f5)](_0x4caf46+_0x468152(0x2b6));break;default:console[_0x468152(0x1f5)](_0x4caf46+_0x468152(0x1e0)+_0x22eb4f[_0x468152(0x26c)]);break;}}),self[_0x3d760e(0x200)]('fetch',_0x288cc7=>{const _0xda78ae=_0x3d760e,_0x2047b6=new URL(_0x288cc7[_0xda78ae(0x297)][_0xda78ae(0x25f)]);if(_0x2047b6[_0xda78ae(0x19d)]!==self[_0xda78ae(0x1ed)][_0xda78ae(0x19d)])return;_0x288cc7[_0xda78ae(0x1c4)](_0x527eb0(_0x288cc7));});async function _0x527eb0(_0x13b789){const _0x29d9d5=_0x3d760e,{request:_0x17021c}=_0x13b789,_0x36d74f=new URL(_0x17021c['url']),_0x15e23a=_0x17021c[_0x29d9d5(0x1fe)]===_0x29d9d5(0x2cc),_0x17c414=_0x15e23a||_0x36d74f['origin']===self[_0x29d9d5(0x1ed)][_0x29d9d5(0x19d)];_0x17c414&&(console['log'](_0x4caf46+_0x29d9d5(0x1b8)+_0x17021c['method']+'\x20'+_0x36d74f[_0x29d9d5(0x1f6)]+_0x36d74f['search']),console[_0x29d9d5(0x1f5)](_0x4caf46+_0x29d9d5(0x256)+_0x17021c[_0x29d9d5(0x1fe)]+_0x29d9d5(0x278)+_0x17021c[_0x29d9d5(0x24d)]));if(!_0x52b19b(_0x17021c))return _0x17c414&&console['log'](_0x4caf46+_0x29d9d5(0x1c5)),fetch(_0x17021c);const _0x34b7d6=_0x15e23a?await _0x433ff4(_0x36d74f,_0x15e23a):_0x53d57a();_0x17c414&&console[_0x29d9d5(0x1f5)](_0x4caf46+_0x29d9d5(0x1cb)+(_0x34b7d6[_0x29d9d5(0x1dd)]||_0x29d9d5(0x2a8)));if(_0x34b858(_0x34b7d6,_0x36d74f[_0x29d9d5(0x1f6)]))return _0x17c414&&console[_0x29d9d5(0x1f5)](_0x4caf46+_0x29d9d5(0x234)+_0x36d74f[_0x29d9d5(0x1f6)]+'\x20matches\x20callbackBypass'),fetch(_0x17021c);if(_0x15e23a)return console[_0x29d9d5(0x1f5)](_0x4caf46+_0x29d9d5(0x283)),_0x1cd753(_0x17021c,_0x34b7d6);if(!_0x3e4222(_0x34b7d6,_0x17021c,_0x36d74f))return _0x17c414&&console[_0x29d9d5(0x1f5)](_0x4caf46+_0x29d9d5(0x1b0)),fetch(_0x17021c);console[_0x29d9d5(0x1f5)](_0x4caf46+'\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20'+_0x36d74f['pathname']);const _0x5b1d3d=await _0x1e4b09(_0x34b7d6,_0x17021c,_0x36d74f);if(_0x5b1d3d)return console[_0x29d9d5(0x1f5)](_0x4caf46+_0x29d9d5(0x2bc)+_0x36d74f[_0x29d9d5(0x1f6)]),_0x5b1d3d;return console[_0x29d9d5(0x1f5)](_0x4caf46+'\x20\x20\x20Enhancement\x20MISS\x20for\x20'+_0x36d74f[_0x29d9d5(0x1f6)]+_0x29d9d5(0x245)),fetch(_0x17021c);}async function _0x1cd753(_0x173a79,_0x1967b3){const _0x3f5027=_0x3d760e,_0x3895f5=new URL(_0x173a79['url']);console[_0x3f5027(0x1f5)](_0x4caf46+_0x3f5027(0x252)+_0x3895f5[_0x3f5027(0x1f6)]+_0x3895f5[_0x3f5027(0x29e)]),console[_0x3f5027(0x1f5)](_0x4caf46+'\x20\x20\x20enhancementUrl\x20in\x20config:\x20'+(_0x1967b3[_0x3f5027(0x1dd)]||_0x3f5027(0x2a8))),console[_0x3f5027(0x1f5)](_0x4caf46+_0x3f5027(0x1bc));const _0x9624f3=await fetch(_0x173a79);console[_0x3f5027(0x1f5)](_0x4caf46+'\x20\x20\x20Production\x20response:\x20'+_0x9624f3[_0x3f5027(0x298)]+'\x20'+_0x9624f3[_0x3f5027(0x287)]),console[_0x3f5027(0x1f5)](_0x4caf46+'\x20\x20\x20Content-Type:\x20'+_0x9624f3[_0x3f5027(0x1e4)]['get']('content-type'));if(!_0x5f0672(_0x9624f3))return console[_0x3f5027(0x1f5)](_0x4caf46+_0x3f5027(0x1f0)),_0x9624f3;console['log'](_0x4caf46+_0x3f5027(0x1e8));const _0x155653=_0xeb1f2d(_0x9624f3,_0x3f5027(0x214));console[_0x3f5027(0x1f5)](_0x4caf46+_0x3f5027(0x29a));const _0x3b7207=await _0x5dfdfe(_0x1967b3,_0x173a79),_0x4ac113=_0x3b7207?_0x3f5027(0x21f):_0x3f5027(0x2b4);console[_0x3f5027(0x1f5)](_0x4caf46+_0x3f5027(0x19a)+_0x4ac113);const _0xe5708f=_0x3b7207??_0x155653,_0x4dfe56=_0x4ac113===_0x3f5027(0x21f)||_0x3895f5[_0x3f5027(0x25c)]['has']('overlay')||_0x3895f5[_0x3f5027(0x25c)][_0x3f5027(0x231)](_0x3f5027(0x21f));console[_0x3f5027(0x1f5)](_0x4caf46+_0x3f5027(0x2c7)+_0x4dfe56);try{console[_0x3f5027(0x1f5)](_0x4caf46+_0x3f5027(0x242));const _0x1f1e12=await _0x3158bc(_0x1967b3,_0xe5708f,_0x4ac113,_0x4dfe56);return console[_0x3f5027(0x1f5)](_0x4caf46+'\x20\x20\x20Document\x20rewritten\x20successfully'),_0x1f1e12;}catch(_0x44320e){return console[_0x3f5027(0x1d6)](_0x4caf46+'\x20\x20\x20Failed\x20to\x20rewrite\x20document:',_0x44320e),_0x4cbd4f(_0x3f5027(0x2bb),'Failed\x20to\x20rewrite\x20document',_0x44320e),_0xe5708f;}}return _0x2d64cc(_0x3bed02);})());
1
+ 'use strict';(function(_0x8f7935,_0x190aab){const _0x4e5d3e=_0x2e89,_0x2a432c=_0x8f7935();while(!![]){try{const _0x15d221=parseInt(_0x4e5d3e(0x1e9))/0x1*(parseInt(_0x4e5d3e(0x1e8))/0x2)+parseInt(_0x4e5d3e(0x176))/0x3+parseInt(_0x4e5d3e(0xda))/0x4*(parseInt(_0x4e5d3e(0x171))/0x5)+-parseInt(_0x4e5d3e(0x179))/0x6+-parseInt(_0x4e5d3e(0x125))/0x7+-parseInt(_0x4e5d3e(0x155))/0x8+-parseInt(_0x4e5d3e(0x1c7))/0x9*(-parseInt(_0x4e5d3e(0x192))/0xa);if(_0x15d221===_0x190aab)break;else _0x2a432c['push'](_0x2a432c['shift']());}catch(_0x3f94c1){_0x2a432c['push'](_0x2a432c['shift']());}}}(_0xa7af,0x9b953));function _0x2e89(_0xea6b3f,_0x16d7ea){_0xea6b3f=_0xea6b3f-0xd8;const _0xa7afc5=_0xa7af();let _0x2e89e1=_0xa7afc5[_0xea6b3f];return _0x2e89e1;}function _0xa7af(){const _0x25e290=['href','navigate','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','match','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','\x20\x20\x20BYPASS:\x20','clear','trim','</script>','skipWaiting','hash','/_next/webpack-hmr','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','push','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','/@vite/client','destination','1604385wDLoih','statusText','cross-origin-resource-policy','\x20Invalid\x20message\x20data\x20-\x20ignoring','search','2018436YlTOPr','get','\x20\x20\x20Enhancement\x20URL:\x20','4789686sXjCph','\x20\x20\x20Fetching\x20production\x20response...','/__webpack_hmr','value','includes','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','[Enhance\x20SW\x20Routing]','call','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20Rewriting\x20entry\x20references...','\x20Bootstrap\x20options:','[Enhance\x20SW\x20Bootstrap]','https://','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','/sockjs-node','\x20\x20\x20mode:\x20','pathname','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','location','src','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','startsWith','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','359110ygJyGk','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','\x20\x20\x20Fetch\x20error:','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','\x20chars)','publishableKey','enhance:disable','object-src\x20\x27none\x27','\x20\x20\x20\x20\x20\x20try\x20{','has','modulepreload','object','\x20\x20\x20Response:\x20','/sw-enhance.js','\x20handleNavigationRequest:\x20','none','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','\x20\x20\x20\x20}','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','\x20\x20\x20Not\x20OK\x20(','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','headers','function','toString','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','connect-src\x20*','Failed\x20to\x20rewrite\x20document','/webpack-dev-server','overlay','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','[Enhance\x20SW]','\x20Build\x20config:','json','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','debug','x-enhance-routing','replace','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','full',',\x20null,\x202));','[Enhance\x20SW\x20Document]','log','\x20Error\x20resolving\x20enhancement\x20','HEAD','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','redirect','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','no-store','backendUrl','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','\x20\x20\x20runtimeScriptPath:\x20','387iZZTlU','\x20\x20\x20Document\x20rewrite\x20complete','text/html','\x20\x20\x20\x20\x20\x20','host','/parcel-hmr','\x20Config\x20reset','style','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','\x20Cannot\x20resolve\x20enhancement\x20-\x20no\x20publishable\x20key\x20configured','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','\x20\x20\x20Document\x20source:\x20','getOwnPropertyNames','\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();',',\x20destination:\x20','waitUntil','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','type','parse','claim','Enhancement\x20document\x20miss\x20','\x20Failed\x20to\x20parse\x20operatingUrl:\x20','/auth/callback','font-src\x20*\x20data:','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20Customer\x20config\x20updated:','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','test','\x20\x20\x20Content-Type:\x20','method','\x20shouldRouteAsset:\x20','13686oXdmQt','89RHMjLT','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','clone','\x5cu003e','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','rewritten','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','info','\x0a</body>','enhancementUrl','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','delete','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','\x20\x20\x20Document\x20rewritten\x20successfully','})();','add','\x0a</head>','content-type','origin','\x20\x20\x20enhancementUrl:\x20','\x20Calling\x20skipWaiting()...','status','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','$&\x0a','worker','?import','\x20fetchFromEnhancement:\x20','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','\x20\x20\x20Enhancement\x20document\x20URL:\x20','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','length','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','8PeMtfo','cache-control','content-security-policy','GET','body','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20FETCH:\x20','x-enhance-enhancement','\x20resolved\x20to:\x20','Enhancement\x20document\x20CORS\x20blocked','install','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','enhancement-document','/__snowpack__','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','access-control-allow-credentials','Enhancement\x20miss\x20','callbackBypassNormalized','\x20chars','production','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','set','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','join','data-enhance-runtime-bootstrap','Enhancement\x20fetch\x20failed','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20fetchEnhancementDocument:\x20','http://','script','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20\x20\x20Rewriting\x20document...','map','\x20\x20\x20\x20\x20\x20}','cors','cross-origin-opener-policy','toISOString','endsWith','\x20Calling\x20clients.claim()...','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','default','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20Enhancement\x20MISS\x20for\x20','callbackBypass','respondWith','sharedworker','Enhancement\x20CORS\x20blocked','text','https://api.enhancelabs.ai',',\x20type:\x20','permissive','activate','defineProperty','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','error','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','clients','\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20\x20\x20\x20};','enhancement','\x20\x20\x20Fetching\x20from\x20enhancement...','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','/snowpack/hmr','access-control-allow-origin','include','addEventListener','runtimeScriptPath','\x20\x20try\x20{','\x20Enhancement\x20','\x20for\x20','\x20Failed\x20to\x20resolve\x20enhancement\x20','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','8380029oZOXqz','\x20\x20\x20Fetching\x20enhancement\x20document...','\x20\x20\x20Enhancement\x20HIT\x20for\x20','/resolve','securityMode','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','\x20\x20}','\x20\x20\x20\x20\x20\x20return;','vite-hmr','\x20\x20\x20HTML\x20response\x20-\x20processing...','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','hasOwnProperty','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20(','(async\x20()\x20=>\x20{','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','\x20Enhancement\x20ID\x20from\x20navigation:\x20','mode','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','/public/enhancements/','default-src\x20\x27self\x27\x20blob:\x20data:','stringify','url','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20matches\x20callbackBypass','/webpack-hmr','\x20❌\x20Publishable\x20key\x20validation\x20failed:\x20','toLowerCase',')\x20-\x20returning\x20null','/webpackhotmiddleware','message','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','access-control-expose-headers','/assets/enhance-runtime.js','X-Enhance-Publishable-Key','img-src\x20*\x20data:\x20blob:','\x20rewriteDocument()\x20called','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','fetch','searchParams','/__vite/client','\x20\x20\x20overlayPath:\x20','set-cookie','enhancementBase','overlayEnableViteHmr','6680568VBNgVX','some','\x20\x20\x20shouldInjectOverlay:\x20','enumerable','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','getOwnPropertyDescriptor','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','slice','\x20-\x20falling\x20back\x20to\x20production'];_0xa7af=function(){return _0x25e290;};return _0xa7af();}var EnhanceSW=((()=>{const _0x1213fe=_0x2e89;var _0x19c216=Object[_0x1213fe(0x110)],_0x472205=Object[_0x1213fe(0x15a)],_0x15d1cc=Object[_0x1213fe(0x1d3)],_0x408366=Object['prototype'][_0x1213fe(0x132)],_0x22b1b0=(_0x14a562,_0x3a443f)=>{for(var _0x48546e in _0x3a443f)_0x19c216(_0x14a562,_0x48546e,{'get':_0x3a443f[_0x48546e],'enumerable':!![]});},_0x145afe=(_0x2b55d8,_0x787696,_0x2ff3ec,_0x4d806a)=>{const _0x1252ce=_0x1213fe;if(_0x787696&&typeof _0x787696==='object'||typeof _0x787696===_0x1252ce(0x1a9)){for(let _0x5380e6 of _0x15d1cc(_0x787696))if(!_0x408366[_0x1252ce(0x180)](_0x2b55d8,_0x5380e6)&&_0x5380e6!==_0x2ff3ec)_0x19c216(_0x2b55d8,_0x5380e6,{'get':()=>_0x787696[_0x5380e6],'enumerable':!(_0x4d806a=_0x472205(_0x787696,_0x5380e6))||_0x4d806a[_0x1252ce(0x158)]});}return _0x2b55d8;},_0x3eeff5=_0x1fb89d=>_0x145afe(_0x19c216({},'__esModule',{'value':!![]}),_0x1fb89d),_0x2b6139={};_0x22b1b0(_0x2b6139,{'log':()=>_0x5032a1});var _0x523196='enhance:configure',_0x2918e3=_0x1213fe(0x199);function _0x5af00b(_0xe878b7){const _0x56de92=_0x1213fe;if(!_0xe878b7[_0x56de92(0x18f)]('/'))return'/'+_0xe878b7;return _0xe878b7;}function _0x2c4a54(_0x4b8847,_0x2c6a77){const _0x5f0058=_0x1213fe,_0x413e6c=new URL(_0x4b8847[_0x5f0058(0x1aa)]()),_0xcbb4e4=_0x413e6c[_0x5f0058(0x189)][_0x5f0058(0x101)]('/')?_0x413e6c[_0x5f0058(0x189)][_0x5f0058(0x15c)](0x0,-0x1):_0x413e6c[_0x5f0058(0x189)],_0x15aa80=_0x2c6a77['pathname'][_0x5f0058(0x18f)]('/')?_0x2c6a77['pathname']:'/'+_0x2c6a77['pathname'];return _0x413e6c[_0x5f0058(0x189)]=(''+_0xcbb4e4+_0x15aa80)['replace'](/\/+/g,'/'),_0x413e6c[_0x5f0058(0x175)]=_0x2c6a77['search'],_0x413e6c[_0x5f0058(0x169)]='',_0x413e6c;}var _0x359abe=_0x1213fe(0x17f),_0x162ebe=_0x1213fe(0x14a),_0x596a75=new Set([_0x1213fe(0xf9),_0x1213fe(0x1ce),'font','image',_0x1213fe(0x205),_0x1213fe(0x109),_0x1213fe(0x19d)]);function _0x2950a9(_0xe1997){const _0x465f0f=_0x1213fe,_0x5b87df=_0xe1997[_0x465f0f(0x1e6)]===_0x465f0f(0xdd)||_0xe1997[_0x465f0f(0x1e6)]===_0x465f0f(0x1bf);return _0x5b87df;}function _0x53f932(_0x4fbabc,_0x235f13){const _0x1de4c3=_0x1213fe,_0x197e71=_0x5af00b(_0x235f13),_0x399642=_0x4fbabc[_0x1de4c3(0xec)][_0x1de4c3(0x156)](_0x38333b=>_0x197e71[_0x1de4c3(0x18f)](_0x38333b));return _0x399642;}function _0x13549b(_0x11e185,_0x131401,_0x50af57){const _0x18ce8b=_0x1213fe,_0x5599c8=_0x131401[_0x18ce8b(0x170)];if(!_0x5599c8||!_0x596a75['has'](_0x5599c8))return![];if(_0xba5b78(_0x11e185,_0x50af57))return console[_0x18ce8b(0x1bd)](_0x359abe+_0x18ce8b(0x1e7)+_0x50af57[_0x18ce8b(0x189)]+_0x18ce8b(0x16c)),![];if(_0x2f18b2(_0x11e185,_0x50af57))return console[_0x18ce8b(0x1bd)](_0x359abe+_0x18ce8b(0x1e7)+_0x50af57[_0x18ce8b(0x189)]+_0x18ce8b(0x139)),![];if(_0x50af57[_0x18ce8b(0x1fe)]!==self['location']['origin'])return![];return!![];}async function _0x593a20(_0x1e3b2d,_0x2aed14,_0x1d1b10){const _0x8d8688=_0x1213fe;console['log'](_0x359abe+_0x8d8688(0x207)+_0x1d1b10[_0x8d8688(0x189)]);if(!_0x1e3b2d[_0x8d8688(0x153)])return console[_0x8d8688(0x1bd)](_0x359abe+'\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping'),null;const _0x3ec917=_0x10264e(_0x1e3b2d,_0x1d1b10);console[_0x8d8688(0x1bd)](_0x359abe+_0x8d8688(0x178)+_0x3ec917[_0x8d8688(0x1aa)]());const _0x4522cb=new Headers(_0x2aed14[_0x8d8688(0x1a8)]);_0x4522cb[_0x8d8688(0xf0)](_0x8d8688(0x1b7),_0x8d8688(0x118)),_0x4522cb[_0x8d8688(0x1f7)](_0x8d8688(0x1cb));_0x1e3b2d[_0x8d8688(0x198)]&&_0x4522cb[_0x8d8688(0xf0)](_0x162ebe,_0x1e3b2d[_0x8d8688(0x198)]);const _0x1503f1=new Request(_0x3ec917['toString'](),{'method':_0x2aed14[_0x8d8688(0x1e6)],'headers':_0x4522cb,'credentials':_0x8d8688(0x11d),'redirect':_0x2aed14[_0x8d8688(0x1c1)],'cache':_0x8d8688(0x104),'mode':_0x8d8688(0xfe)});try{console[_0x8d8688(0x1bd)](_0x359abe+_0x8d8688(0x119));const _0x16c47d=await fetch(_0x1503f1);console['log'](_0x359abe+_0x8d8688(0x19f)+_0x16c47d[_0x8d8688(0x201)]+'\x20'+_0x16c47d[_0x8d8688(0x172)]+_0x8d8688(0x10d)+_0x16c47d[_0x8d8688(0x1d9)]);if(_0x16c47d[_0x8d8688(0x1d9)]==='opaque')return console['log'](_0x359abe+_0x8d8688(0x114)),_0x5032a1(_0x8d8688(0x1f3),_0x8d8688(0x10a),_0x3ec917[_0x8d8688(0x1aa)]()),null;if(!_0x16c47d['ok'])return console[_0x8d8688(0x1bd)](_0x359abe+'\x20\x20\x20Not\x20OK\x20('+_0x16c47d[_0x8d8688(0x201)]+_0x8d8688(0x143)),_0x5032a1(_0x8d8688(0x1b6),_0x8d8688(0xeb)+_0x16c47d[_0x8d8688(0x201)]+_0x8d8688(0x122)+_0x3ec917[_0x8d8688(0x189)]),null;return console[_0x8d8688(0x1bd)](_0x359abe+_0x8d8688(0x1eb)),_0x26433b(_0x16c47d,_0x2aed14[_0x8d8688(0x1e6)]);}catch(_0x488c7e){return console[_0x8d8688(0x112)](_0x359abe+_0x8d8688(0x195),_0x488c7e),_0x5032a1(_0x8d8688(0x1f3),_0x8d8688(0xf4),_0x488c7e),null;}}async function _0x4bf64d(_0x5de519,_0xf0bcc7){const _0xa8fa21=_0x1213fe,_0x549410=new URL(_0xf0bcc7[_0xa8fa21(0x13d)]);console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0xf7)+_0x549410['pathname']+_0x549410[_0xa8fa21(0x175)]);if(!_0x5de519[_0xa8fa21(0x153)])return console['log'](_0x359abe+_0xa8fa21(0x1ee)),null;const _0x2268bb=_0x10264e(_0x5de519,_0x549410);console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x209)+_0x2268bb[_0xa8fa21(0x1aa)]());const _0x573799=new Headers(_0xf0bcc7['headers']);_0x573799[_0xa8fa21(0xf0)](_0xa8fa21(0x1b7),_0xa8fa21(0xe7)),_0x573799[_0xa8fa21(0x1f7)](_0xa8fa21(0x1cb)),_0x573799[_0xa8fa21(0x1f7)]('content-length');_0x5de519[_0xa8fa21(0x198)]&&_0x573799[_0xa8fa21(0xf0)](_0x162ebe,_0x5de519[_0xa8fa21(0x198)]);const _0x3723ba=new Request(_0x2268bb[_0xa8fa21(0x1aa)](),{'method':_0xa8fa21(0xdd),'headers':_0x573799,'credentials':_0xa8fa21(0x11d),'redirect':'follow','cache':_0xa8fa21(0x104),'mode':_0xa8fa21(0xfe)});try{console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x126));const _0x595475=await fetch(_0x3723ba);console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x19f)+_0x595475[_0xa8fa21(0x201)]+'\x20'+_0x595475['statusText']+_0xa8fa21(0x10d)+_0x595475[_0xa8fa21(0x1d9)]),console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x1e5)+_0x595475[_0xa8fa21(0x1a8)][_0xa8fa21(0x177)](_0xa8fa21(0x1fd)));if(_0x595475[_0xa8fa21(0x1d9)]==='opaque')return console[_0xa8fa21(0x1bd)](_0x359abe+'\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)'),_0x5032a1(_0xa8fa21(0x1f3),_0xa8fa21(0xe3),_0x2268bb[_0xa8fa21(0x1aa)]()),null;if(!_0x595475['ok'])return console['log'](_0x359abe+_0xa8fa21(0x1a6)+_0x595475['status']+_0xa8fa21(0x143)),_0x5032a1(_0xa8fa21(0x1b6),_0xa8fa21(0x1dc)+_0x595475['status']+_0xa8fa21(0x122)+_0x2268bb[_0xa8fa21(0x189)]),null;if(!_0xceac14(_0x595475))return console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x208)),null;return console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x1e3)),_0x26433b(_0x595475,_0xa8fa21(0xdd));}catch(_0x4123c7){return console['error'](_0x359abe+'\x20\x20\x20Document\x20fetch\x20error:',_0x4123c7),_0x5032a1(_0xa8fa21(0x1f3),'Enhancement\x20document\x20fetch\x20failed',_0x4123c7),null;}}function _0x10264e(_0x4476d0,_0xf77d15){const _0x550d3c=_0x1213fe;if(!_0x4476d0[_0x550d3c(0x153)])throw new Error(_0x550d3c(0x103));return _0x2c4a54(_0x4476d0[_0x550d3c(0x153)],_0xf77d15);}function _0x26433b(_0x56bf46,_0x4bf268){const _0x3d1b09=_0x1213fe,_0x1356dc=_0x56bf46[_0x3d1b09(0x1ec)](),_0x5901db=new Headers(_0x1356dc[_0x3d1b09(0x1a8)]);_0x5901db[_0x3d1b09(0x1f7)](_0x3d1b09(0x11c)),_0x5901db[_0x3d1b09(0x1f7)](_0x3d1b09(0xea)),_0x5901db[_0x3d1b09(0x1f7)](_0x3d1b09(0x148)),_0x5901db[_0x3d1b09(0xf0)](_0x3d1b09(0xe1),'hit'),_0x3eb34b(_0x5901db);const _0x540460=_0x4bf268==='HEAD'?null:_0x1356dc[_0x3d1b09(0xde)];return new Response(_0x540460,{'status':_0x1356dc[_0x3d1b09(0x201)],'statusText':_0x1356dc[_0x3d1b09(0x172)],'headers':_0x5901db});}function _0xceac14(_0x13813a){const _0x2bcaa9=_0x1213fe,_0x3066e3=_0x13813a[_0x2bcaa9(0x1a8)][_0x2bcaa9(0x177)](_0x2bcaa9(0x1fd));return _0x3066e3!=null&&_0x3066e3[_0x2bcaa9(0x17d)](_0x2bcaa9(0x1c9));}function _0xba5b78(_0x520373,_0x3fb48e){return _0x343a24(_0x3fb48e,_0x520373['overlayPath']);}function _0x2f18b2(_0x16f90a,_0x40aed2){const _0x440c1d=_0x1213fe;return _0x3567fe(_0x40aed2,_0x16f90a[_0x440c1d(0x11f)]);}function _0x343a24(_0xb7f1a5,_0x158464){const _0x51c7ad=_0x1213fe;if(!_0x158464)return![];if(_0x158464[_0x51c7ad(0x18f)](_0x51c7ad(0xf8))||_0x158464['startsWith']('https://'))return _0xb7f1a5[_0x51c7ad(0x15e)]===_0x158464;const _0x40103a=_0x4d62b5(_0x158464);if(!_0x40103a)return![];const _0x59d211=''+_0xb7f1a5[_0x51c7ad(0x189)]+_0xb7f1a5[_0x51c7ad(0x175)];if(_0x59d211===_0x40103a)return!![];if(_0xb7f1a5['search']===_0x51c7ad(0x206))return _0xb7f1a5['pathname']===_0x40103a;return![];}function _0x3567fe(_0x563b6b,_0x5875d9){const _0x548271=_0x1213fe;if(!_0x5875d9)return![];if(_0x5875d9[_0x548271(0x18f)](_0x548271(0xf8))||_0x5875d9['startsWith']('https://'))return _0x563b6b[_0x548271(0x15e)]===_0x5875d9;const _0x17c14d=_0x4d62b5(_0x5875d9);if(!_0x17c14d)return![];const _0x4ebc7e=''+_0x563b6b[_0x548271(0x189)]+_0x563b6b['search'];return _0x4ebc7e===_0x17c14d;}function _0x4d62b5(_0x40e7c7){const _0x451a80=_0x1213fe;if(!_0x40e7c7)return _0x40e7c7;if(_0x40e7c7[_0x451a80(0x18f)](_0x451a80(0xf8))||_0x40e7c7[_0x451a80(0x18f)](_0x451a80(0x185)))return _0x40e7c7;const _0x24a6b9=_0x40e7c7['replace'](/^\.\//,'');if(_0x24a6b9[_0x451a80(0x18f)]('/'))return _0x24a6b9;return'/'+_0x24a6b9;}function _0x3eb34b(_0x4b724d){const _0x4adcb7=_0x1213fe;_0x4b724d[_0x4adcb7(0x1f7)](_0x4adcb7(0x152)),_0x4b724d[_0x4adcb7(0x1f7)]('set-cookie2');}function _0x1baada(_0x296e3d){const _0x52a814=_0x1213fe,_0x240853=[_0x52a814(0x13b),_0x52a814(0x105),_0x52a814(0x111),_0x52a814(0x14b),_0x52a814(0x1df),_0x52a814(0x1ac),'media-src\x20*\x20data:\x20blob:','worker-src\x20\x27self\x27\x20blob:',_0x52a814(0x19a)],_0x165c53=_0x432c00(_0x296e3d);return _0x165c53&&_0x240853[_0x52a814(0x16d)](_0x165c53),_0x240853[_0x52a814(0xf2)](';\x20');}function _0x1050a9(_0x2e3fd5){const _0x15cac0=_0x1213fe;_0x2e3fd5[_0x15cac0(0x1f7)](_0x15cac0(0x152)),_0x2e3fd5[_0x15cac0(0x1f7)]('set-cookie2');}function _0x432c00(_0x2923e2){const _0x59bab7=_0x1213fe;if(!_0x2923e2)return null;const _0x35e743=_0x2923e2[_0x59bab7(0x162)](/frame-ancestors\s+([^;]+)/i);if(!_0x35e743)return null;return'frame-ancestors\x20'+_0x35e743[0x1][_0x59bab7(0x166)]();}function _0x1a0858(_0x18f77e,_0x23a531){const _0x2d3467=_0x1213fe;if(/<head[^>]*>/i[_0x2d3467(0x1e4)](_0x18f77e)){const _0x4b3b84=_0x18f77e[_0x2d3467(0x162)](/<head[^>]*>/i);if(_0x4b3b84){const _0x5c1df9=_0x4b3b84[0x0];return _0x18f77e['replace'](_0x5c1df9,_0x5c1df9+'\x0a'+_0x23a531);}}if(/<\/head>/i[_0x2d3467(0x1e4)](_0x18f77e))return _0x18f77e[_0x2d3467(0x1b8)](/<\/head>/i,_0x23a531+_0x2d3467(0x1fc));if(/<body\b[^>]*>/i[_0x2d3467(0x1e4)](_0x18f77e))return _0x18f77e['replace'](/<body\b[^>]*>/i,_0x2d3467(0x204)+_0x23a531);if(/<\/body>/i['test'](_0x18f77e))return _0x18f77e[_0x2d3467(0x1b8)](/<\/body>/i,_0x23a531+_0x2d3467(0x1f4));return _0x23a531+'\x0a'+_0x18f77e;}var _0x347704=[_0x1213fe(0x12f)],_0x4b80fa=[_0x1213fe(0x16f),_0x1213fe(0x150),'/vite/client','/__vite_ping',_0x1213fe(0x187),_0x1213fe(0x1ae),_0x1213fe(0x140),_0x1213fe(0x144),'/webpack-hot-middleware',_0x1213fe(0x17b),_0x1213fe(0x16a),_0x1213fe(0x1cc),'/__parcel_hmr',_0x1213fe(0xe8),_0x1213fe(0x11b)];function _0x2aa206(_0xa628c5,_0x6ea5d0){const _0x106cf4=_0x347086(_0xa628c5);if(!_0x106cf4)return _0x6ea5d0;return _0x1a0858(_0x6ea5d0,_0x106cf4);}function _0x347086(_0x71fc80){const _0x9a69a9=_0x1213fe;if(!_0x71fc80['enhancementBase'])return null;const _0x69421d=_0x71fc80[_0x9a69a9(0x153)][_0x9a69a9(0x1aa)](),_0x37083b=_0x1ed9c6(_0x347704),_0x2c5188=_0x1ed9c6(_0x4b80fa),_0x2066d2=['<script\x20data-enhance-hmr-bridge>','(function(){',_0x9a69a9(0x120),_0x9a69a9(0x161)+JSON[_0x9a69a9(0x13c)](_0x69421d)+');',_0x9a69a9(0xfa),_0x9a69a9(0x124),_0x9a69a9(0x12e),'\x20\x20\x20\x20}',_0x9a69a9(0xe6)+JSON[_0x9a69a9(0x13c)](_0x37083b)+');',_0x9a69a9(0xe5)+JSON[_0x9a69a9(0x13c)](_0x2c5188)+';',_0x9a69a9(0x1f1),_0x9a69a9(0x194),'\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20\x20\x20\x20};','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{',_0x9a69a9(0x16e),_0x9a69a9(0x196),_0x9a69a9(0x146),_0x9a69a9(0x1b0),'\x20\x20\x20\x20\x20\x20',_0x9a69a9(0x1d1),_0x9a69a9(0x1ca),_0x9a69a9(0x20a),'\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{',_0x9a69a9(0x113),'\x20\x20\x20\x20\x20\x20}','\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{',_0x9a69a9(0x159),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{',_0x9a69a9(0x18e),_0x9a69a9(0xf6),_0x9a69a9(0xfd),_0x9a69a9(0x1d5),_0x9a69a9(0x1a3),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{',_0x9a69a9(0x18e),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x9a69a9(0xfd),'\x20\x20\x20\x20\x20\x20return\x20false;',_0x9a69a9(0x117),_0x9a69a9(0x12a),'\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying',_0x9a69a9(0x1b5),_0x9a69a9(0x18d),_0x9a69a9(0x17e),_0x9a69a9(0x116),_0x9a69a9(0x117),_0x9a69a9(0xe9),_0x9a69a9(0x19b),_0x9a69a9(0x190),_0x9a69a9(0x1c0),_0x9a69a9(0x18a),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);',_0x9a69a9(0xf6),_0x9a69a9(0x1e1),'\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);',_0x9a69a9(0xfd),_0x9a69a9(0x1f2),_0x9a69a9(0x117),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;',_0x9a69a9(0x15b),'\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});',_0x9a69a9(0x191),_0x9a69a9(0x133),'\x20\x20\x20\x20}',_0x9a69a9(0x202),'\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','\x20\x20}\x20catch\x20(error)\x20{',_0x9a69a9(0x1cf),_0x9a69a9(0x12d),_0x9a69a9(0x1fa),_0x9a69a9(0x167)];return _0x2066d2['join']('\x0a');}function _0x1ed9c6(_0x1f460b){const _0x1e72d5=_0x1213fe,_0x55a250=new Set(),_0xec39dd=[];for(const _0x176210 of _0x1f460b){const _0x1159c3=_0x176210[_0x1e72d5(0x142)]();if(_0x55a250['has'](_0x1159c3))continue;_0x55a250[_0x1e72d5(0x1fb)](_0x1159c3),_0xec39dd['push'](_0x1159c3);}return _0xec39dd;}var _0x3b6fb9=_0x1213fe(0x184);function _0x1ab1f8(_0x616c33,_0x5db058){const _0x48efa5=_0x1213fe;console[_0x48efa5(0x1bd)](_0x3b6fb9+'\x20injectRuntimeBootstrap()\x20called'),console[_0x48efa5(0x1bd)](_0x3b6fb9+_0x48efa5(0x1c6)+_0x616c33[_0x48efa5(0x11f)]),console['log'](_0x3b6fb9+_0x48efa5(0x151)+_0x616c33['overlayPath']);if(_0x5db058['includes'](_0x48efa5(0xf3)))return console[_0x48efa5(0x1bd)](_0x3b6fb9+_0x48efa5(0x1d4)),_0x5db058;const _0xcd988a=_0x539caf(_0x616c33);if(!_0xcd988a)return console[_0x48efa5(0x1bd)](_0x3b6fb9+'\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged'),_0x5db058;console[_0x48efa5(0x1bd)](_0x3b6fb9+_0x48efa5(0x134)+_0xcd988a[_0x48efa5(0xd8)]+_0x48efa5(0x197));const _0x5c7164=_0x1a0858(_0x5db058,_0xcd988a);return console[_0x48efa5(0x1bd)](_0x3b6fb9+'\x20\x20\x20Script\x20inserted\x20into\x20document'),_0x5c7164;}function _0x539caf(_0x59f022){const _0x1701ad=_0x1213fe,_0x57fb74=_0x59f022[_0x1701ad(0x11f)];if(!_0x57fb74)return console[_0x1701ad(0x1bd)](_0x3b6fb9+_0x1701ad(0x16b)),null;const _0x1bb8a5=_0x260269(_0x59f022);console['log'](_0x3b6fb9+_0x1701ad(0x183),JSON[_0x1701ad(0x13c)](_0x1bb8a5,null,0x2));const _0x3df347=_0x1e42bf(_0x1bb8a5),_0x4bdd59=JSON['stringify'](_0x57fb74),_0x3504ce=[_0x1701ad(0x1b9),_0x1701ad(0x135),'\x20\x20try\x20{',_0x1701ad(0x11a)+_0x4bdd59+';',_0x1701ad(0x14d),_0x1701ad(0xf5),_0x1701ad(0x160),_0x1701ad(0x1f6),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));',_0x1701ad(0xd9),'\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);',_0x1701ad(0x12e),_0x1701ad(0x1a4),_0x1701ad(0x147)+_0x3df347+_0x1701ad(0x1bb),_0x1701ad(0x203)+_0x3df347+');',_0x1701ad(0x1ab),_0x1701ad(0xef),'\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;',_0x1701ad(0x1d8),'\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',_0x1701ad(0x1b1),_0x1701ad(0x1f0),_0x1701ad(0x131),'\x20\x20\x20\x20}',_0x1701ad(0x181),'\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);',_0x1701ad(0x12d),_0x1701ad(0x1fa),'</script>'];return _0x3504ce[_0x1701ad(0xf2)]('\x0a');}function _0x260269(_0x261fa4){const _0x3b8c45=_0x1213fe,_0x1e2d68={'publishableKey':_0x261fa4['publishableKey'],'callbackBypass':_0x261fa4[_0x3b8c45(0x107)],'__development':{'enableOverlayHmr':_0x261fa4[_0x3b8c45(0x154)],'overlayPath':_0x261fa4['overlayPath'],'security':_0x261fa4['securityMode'],'backendUrl':_0x261fa4[_0x3b8c45(0x1c4)]}};return _0x1e2d68;}function _0x1e42bf(_0x290376){const _0x20cb68=_0x1213fe;return JSON[_0x20cb68(0x13c)](_0x290376)[_0x20cb68(0x1b8)](/</g,'\x5cu003c')[_0x20cb68(0x1b8)](/>/g,_0x20cb68(0x1ed));}function _0x124258(_0x596278,_0x55de87){const _0x126a2c=_0x1213fe,_0x25ddfb=_0x3d2198=>_0x5f144c(_0x596278,_0x3d2198),_0x250a35=_0x48fb8d=>_0x403b36(_0x596278,_0x48fb8d);return _0x55de87[_0x126a2c(0x1b8)](/<script\b[^>]*>/gi,_0x25ddfb)[_0x126a2c(0x1b8)](/<link\b[^>]*>/gi,_0x250a35);}function _0x5e3e45(_0x1454a6){const _0x327d18=_0x1213fe;return _0x1454a6[_0x327d18(0x1b8)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x5f144c(_0x1a5bea,_0x5b248f){const _0x578330=_0x1213fe,_0x3567ac=_0xc7650d(_0x5b248f,_0x578330(0x18c));if(!_0x3567ac)return _0x5b248f;const _0x5629ab=_0x14d29a(_0x1a5bea,_0x3567ac[_0x578330(0x17c)]);if(!_0x5629ab||_0x5629ab===_0x3567ac['value'])return _0x5b248f;const _0x1ad440=_0x3567ac['full'][_0x578330(0x1b8)](_0x3567ac[_0x578330(0x17c)],_0x5629ab);return _0x5b248f[_0x578330(0x1b8)](_0x3567ac[_0x578330(0x1ba)],_0x1ad440);}function _0x403b36(_0x22e555,_0x17dc67){const _0x234c0e=_0x1213fe,_0x53d0c5=_0x17dc67[_0x234c0e(0x162)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x53d0c5)return _0x17dc67;const _0x48fd18=_0x53d0c5[0x2]['toLowerCase']();if(_0x48fd18!=='stylesheet'&&_0x48fd18!=='modulepreload')return _0x17dc67;const _0xe69408=_0xc7650d(_0x17dc67,_0x234c0e(0x15e));if(!_0xe69408)return _0x17dc67;const _0x4bbd02=_0x14d29a(_0x22e555,_0xe69408['value']);if(!_0x4bbd02||_0x4bbd02===_0xe69408[_0x234c0e(0x17c)])return _0x17dc67;const _0x5e156d=_0xe69408[_0x234c0e(0x1ba)][_0x234c0e(0x1b8)](_0xe69408['value'],_0x4bbd02);return _0x17dc67[_0x234c0e(0x1b8)](_0xe69408[_0x234c0e(0x1ba)],_0x5e156d);}function _0xc7650d(_0x1b2ac3,_0x39b56e){const _0x5cb161=_0x1213fe,_0x475ba1=new RegExp(_0x39b56e+_0x5cb161(0x12c),'i'),_0x227d3f=_0x1b2ac3[_0x5cb161(0x162)](_0x475ba1);if(!_0x227d3f)return null;return{'full':_0x227d3f[0x0],'value':_0x227d3f[0x2]};}function _0x14d29a(_0x2ceae2,_0xb215b6){const _0x2aadf8=_0x1213fe,_0x311446=_0x591826(_0xb215b6);if(!_0x311446)return null;if(_0x311446[_0x2aadf8(0x1fe)]===self[_0x2aadf8(0x18b)]['origin'])return''+_0x311446['pathname']+_0x311446[_0x2aadf8(0x175)];return null;}function _0x591826(_0xfe316c){const _0x59fad7=_0x1213fe;try{return new URL(_0xfe316c,self[_0x59fad7(0x18b)]['origin']);}catch{return null;}}var _0x328545=_0x1213fe(0x1bc);async function _0x38050f(_0x3c14d4,_0x1c6e50,_0x2b30a9,_0x443ba9=!![]){const _0x595fd0=_0x1213fe;console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x14c)),console[_0x595fd0(0x1bd)](_0x328545+'\x20\x20\x20source:\x20'+_0x2b30a9),console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x157)+_0x443ba9),console[_0x595fd0(0x1bd)](_0x328545+'\x20\x20\x20securityMode:\x20'+_0x3c14d4[_0x595fd0(0x129)]);const _0x2dbf40=_0x1c6e50[_0x595fd0(0x1ec)](),_0x5b096e=await _0x2dbf40['text']();console['log'](_0x328545+_0x595fd0(0x1e0)+_0x5b096e['length']+_0x595fd0(0xed)),console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x1ea));const _0x3ad4ad=_0x5e3e45(_0x5b096e);console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x182));let _0x287b2a=_0x124258(_0x3c14d4,_0x3ad4ad);_0x2b30a9===_0x595fd0(0x118)?(console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x12b)),_0x287b2a=_0x2aa206(_0x3c14d4,_0x287b2a)):console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x1a7));_0x443ba9?(console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x1c2)),_0x287b2a=_0x1ab1f8(_0x3c14d4,_0x287b2a)):console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x186));console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x13e)+_0x287b2a['length']+_0x595fd0(0xed));const _0x314f75=new Headers(_0x2dbf40[_0x595fd0(0x1a8)]);_0x314f75[_0x595fd0(0xf0)](_0x595fd0(0xdb),_0x595fd0(0x1c3)),_0x314f75[_0x595fd0(0xf0)]('x-enhance-document',_0x595fd0(0x1ef)),_0x314f75[_0x595fd0(0xf0)]('x-enhance-document-source',_0x2b30a9),_0x1050a9(_0x314f75);if(_0x3c14d4[_0x595fd0(0x129)]!=='custom'){console['log'](_0x328545+'\x20\x20\x20Applying\x20permissive\x20CSP...');const _0x23b2d2=_0x314f75[_0x595fd0(0x177)](_0x595fd0(0xdc));_0x314f75['set'](_0x595fd0(0xdc),_0x1baada(_0x23b2d2)),_0x314f75['delete'](_0x595fd0(0xff)),_0x314f75[_0x595fd0(0x1f7)]('cross-origin-embedder-policy'),_0x314f75[_0x595fd0(0x1f7)](_0x595fd0(0x173));}else console[_0x595fd0(0x1bd)](_0x328545+'\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP');return console['log'](_0x328545+_0x595fd0(0x1c8)),new Response(_0x287b2a,{'status':_0x2dbf40['status'],'statusText':_0x2dbf40[_0x595fd0(0x172)],'headers':_0x314f75});}var _0x34de4d=_0x1213fe(0x1b2);console[_0x1213fe(0x1bd)](_0x34de4d+_0x1213fe(0x1c5)+new Date()[_0x1213fe(0x100)]());var _0x2bbaa7={'overlayPath':'https://assets.enhancelabs.ai/overlay.js','backendUrl':_0x1213fe(0x10c),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x1213fe(0x149),'swPath':_0x1213fe(0x1a0)};console[_0x1213fe(0x1bd)](_0x34de4d+_0x1213fe(0x1b3),JSON[_0x1213fe(0x13c)](_0x2bbaa7,null,0x2));var _0x2ba56a={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':_0x1213fe(0x10e)},_0x16acdf=_0x1213fe(0x14a),_0x25a2aa=new Map(),_0x5d5841=null,_0xa6d7ef=null,_0x1b03cd=null;function _0x591723(){const _0x2da590=_0x1213fe,_0x43da09=_0xa6d7ef||'',_0x30bdf1=_0x1b03cd;return{..._0x2bbaa7,..._0x2ba56a,'enhancementUrl':_0x43da09,'enhancementBase':_0x30bdf1,'callbackBypassNormalized':_0x2ba56a[_0x2da590(0x107)][_0x2da590(0xfc)](_0xd5eef9=>_0xd5eef9[_0x2da590(0x18f)]('/')?_0xd5eef9:'/'+_0xd5eef9)};}async function _0x4bbe82(_0x3360d5,_0x372feb){const _0x2fce70=_0x1213fe,_0xdea1f5=_0x3360d5[_0x2fce70(0x14f)][_0x2fce70(0x177)](_0x2fce70(0x118));if(_0x372feb&&_0xdea1f5){console[_0x2fce70(0x1bd)](_0x34de4d+_0x2fce70(0x137)+_0xdea1f5);const _0x3c677d=await _0x2ab4b0(_0xdea1f5);if(_0x3c677d){_0x5d5841=_0xdea1f5,_0xa6d7ef=_0x3c677d;try{_0x1b03cd=new URL(_0x3c677d);}catch{console[_0x2fce70(0x112)](_0x34de4d+_0x2fce70(0x1dd)+_0x3c677d),_0x1b03cd=null;}}else _0x5d5841=null,_0xa6d7ef=null,_0x1b03cd=null;}return _0x372feb&&!_0xdea1f5&&(_0x5d5841&&console[_0x2fce70(0x1bd)](_0x34de4d+'\x20Clearing\x20cached\x20enhancement\x20(navigation\x20without\x20param)'),_0x5d5841=null,_0xa6d7ef=null,_0x1b03cd=null),_0x591723();}function _0x5032a1(_0x1403e1,_0x2bff09,..._0x59a113){const _0xb6b2cb=_0x1213fe;_0x1403e1===_0xb6b2cb(0x1f3)?console[_0xb6b2cb(0x1f3)](_0x34de4d,_0x2bff09,..._0x59a113):console[_0xb6b2cb(0x1b6)](_0x34de4d,_0x2bff09,..._0x59a113);}async function _0x2ab4b0(_0x3257d7){const _0x195a95=_0x1213fe,_0x13521f=_0x25a2aa[_0x195a95(0x177)](_0x3257d7);if(_0x13521f)return console[_0x195a95(0x1bd)](_0x34de4d+_0x195a95(0x121)+_0x3257d7+'\x20resolved\x20from\x20cache:\x20'+_0x13521f),_0x13521f;if(!_0x2ba56a[_0x195a95(0x198)])return console[_0x195a95(0x112)](_0x34de4d+_0x195a95(0x1d0)),null;const _0x598296=_0x2bbaa7[_0x195a95(0x1c4)]+_0x195a95(0x13a)+_0x3257d7+_0x195a95(0x128);console[_0x195a95(0x1bd)](_0x34de4d+'\x20Resolving\x20enhancement\x20'+_0x3257d7+'\x20via\x20'+_0x598296);try{const _0x2cd20c=await fetch(_0x598296,{'headers':{[_0x16acdf]:_0x2ba56a[_0x195a95(0x198)]}});if(!_0x2cd20c['ok']){let _0x40fefd=await _0x2cd20c[_0x195a95(0x10b)]();try{const _0x57907e=JSON[_0x195a95(0x1da)](_0x40fefd);_0x57907e[_0x195a95(0x112)]&&(_0x40fefd=_0x57907e[_0x195a95(0x112)]);}catch{}return _0x2cd20c[_0x195a95(0x201)]===0x193?console['error'](_0x34de4d+_0x195a95(0x141)+_0x40fefd):console[_0x195a95(0x112)](_0x34de4d+_0x195a95(0x123)+_0x3257d7+':\x20'+_0x2cd20c[_0x195a95(0x201)]+'\x20'+_0x40fefd),null;}const _0x4ae374=await _0x2cd20c[_0x195a95(0x1b4)](),_0xad9daf=''+_0x2bbaa7[_0x195a95(0x1c4)]+_0x4ae374['operatingPath'];return console['log'](_0x34de4d+_0x195a95(0x121)+_0x3257d7+_0x195a95(0xe2)+_0xad9daf),_0x25a2aa[_0x195a95(0xf0)](_0x3257d7,_0xad9daf),_0xad9daf;}catch(_0x327e0d){return console[_0x195a95(0x112)](_0x34de4d+_0x195a95(0x1be)+_0x3257d7+':',_0x327e0d),null;}}self[_0x1213fe(0x11e)](_0x1213fe(0xe4),_0x17eb21=>{console['log'](_0x34de4d+'\x20INSTALL\x20event'),_0x17eb21['waitUntil'](((async()=>{const _0x377f42=_0x2e89;console[_0x377f42(0x1bd)](_0x34de4d+_0x377f42(0x200)),await self[_0x377f42(0x168)](),console[_0x377f42(0x1bd)](_0x34de4d+'\x20skipWaiting()\x20complete');})()));}),self[_0x1213fe(0x11e)](_0x1213fe(0x10f),_0x5bee3b=>{const _0x46caa7=_0x1213fe;console[_0x46caa7(0x1bd)](_0x34de4d+'\x20ACTIVATE\x20event'),_0x5bee3b[_0x46caa7(0x1d7)](((async()=>{const _0x463151=_0x46caa7;console[_0x463151(0x1bd)](_0x34de4d+_0x463151(0x102)),await self[_0x463151(0x115)][_0x463151(0x1db)](),console['log'](_0x34de4d+'\x20clients.claim()\x20complete');})()));}),self[_0x1213fe(0x11e)](_0x1213fe(0x145),_0x59adec=>{const _0x49bda4=_0x1213fe,_0x423ce8=_0x59adec['data'];console[_0x49bda4(0x1bd)](_0x34de4d+'\x20MESSAGE\x20received:',_0x423ce8);if(!_0x423ce8||typeof _0x423ce8!==_0x49bda4(0x19e)){console[_0x49bda4(0x1bd)](_0x34de4d+_0x49bda4(0x174));return;}switch(_0x423ce8[_0x49bda4(0x1d9)]){case _0x523196:{console['log'](_0x34de4d+_0x49bda4(0x163));const _0x5ce52e=_0x423ce8['config'];_0x2ba56a={'publishableKey':_0x5ce52e[_0x49bda4(0x198)]??'','callbackBypass':_0x5ce52e[_0x49bda4(0x107)]??['/auth/callback'],'securityMode':_0x5ce52e[_0x49bda4(0x129)]??_0x49bda4(0x10e)},console['log'](_0x34de4d+_0x49bda4(0x1e2),JSON[_0x49bda4(0x13c)](_0x2ba56a,null,0x2));break;}case _0x2918e3:console[_0x49bda4(0x1bd)](_0x34de4d+'\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config'),_0x2ba56a={'publishableKey':'','callbackBypass':[_0x49bda4(0x1de)],'securityMode':_0x49bda4(0x10e)},_0x5d5841=null,_0xa6d7ef=null,_0x1b03cd=null,_0x25a2aa[_0x49bda4(0x165)](),console[_0x49bda4(0x1bd)](_0x34de4d+_0x49bda4(0x1cd));break;default:console[_0x49bda4(0x1bd)](_0x34de4d+'\x20Unknown\x20message\x20type:\x20'+_0x423ce8[_0x49bda4(0x1d9)]);break;}}),self[_0x1213fe(0x11e)](_0x1213fe(0x14e),_0x4aa3fb=>{const _0x9c9eb7=_0x1213fe;_0x4aa3fb[_0x9c9eb7(0x108)](_0x46db8b(_0x4aa3fb));});async function _0x46db8b(_0x122a67){const _0x245d6f=_0x1213fe,{request:_0x3d555a}=_0x122a67,_0x275c80=new URL(_0x3d555a[_0x245d6f(0x13d)]),_0x935eed=_0x3d555a[_0x245d6f(0x138)]===_0x245d6f(0x15f),_0x3986e3=_0x935eed||_0x275c80[_0x245d6f(0x1fe)]===self[_0x245d6f(0x18b)][_0x245d6f(0x1fe)];_0x3986e3&&(console['log'](_0x34de4d+_0x245d6f(0xe0)+_0x3d555a[_0x245d6f(0x1e6)]+'\x20'+_0x275c80[_0x245d6f(0x189)]+_0x275c80[_0x245d6f(0x175)]),console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0x188)+_0x3d555a[_0x245d6f(0x138)]+_0x245d6f(0x1d6)+_0x3d555a[_0x245d6f(0x170)]));if(!_0x2950a9(_0x3d555a))return _0x3986e3&&console[_0x245d6f(0x1bd)](_0x34de4d+'\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)'),fetch(_0x3d555a);const _0x1c4b8b=_0x935eed?await _0x4bbe82(_0x275c80,_0x935eed):_0x591723();_0x3986e3&&console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0x1ff)+(_0x1c4b8b[_0x245d6f(0x1f5)]||'none'));if(_0x53f932(_0x1c4b8b,_0x275c80['pathname']))return _0x3986e3&&console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0x164)+_0x275c80[_0x245d6f(0x189)]+_0x245d6f(0x13f)),fetch(_0x3d555a);if(_0x935eed)return console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0xdf)),_0x1698d4(_0x3d555a,_0x1c4b8b);if(!_0x13549b(_0x1c4b8b,_0x3d555a,_0x275c80))return _0x3986e3&&console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0xf1)),fetch(_0x3d555a);console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0x1f8)+_0x275c80[_0x245d6f(0x189)]);const _0x264eaf=await _0x593a20(_0x1c4b8b,_0x3d555a,_0x275c80);if(_0x264eaf)return console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0x127)+_0x275c80['pathname']),_0x264eaf;return console['log'](_0x34de4d+_0x245d6f(0x106)+_0x275c80['pathname']+_0x245d6f(0x15d)),fetch(_0x3d555a);}async function _0x1698d4(_0x537180,_0x35eb48){const _0x52285d=_0x1213fe,_0x502af7=new URL(_0x537180[_0x52285d(0x13d)]);console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x1a1)+_0x502af7[_0x52285d(0x189)]+_0x502af7[_0x52285d(0x175)]),console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x193)+(_0x35eb48['enhancementUrl']||_0x52285d(0x1a2))),console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x17a));const _0x1d079a=await fetch(_0x537180);console['log'](_0x34de4d+'\x20\x20\x20Production\x20response:\x20'+_0x1d079a[_0x52285d(0x201)]+'\x20'+_0x1d079a[_0x52285d(0x172)]),console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x1e5)+_0x1d079a['headers'][_0x52285d(0x177)]('content-type'));if(!_0xceac14(_0x1d079a))return console['log'](_0x34de4d+_0x52285d(0x1a5)),_0x1d079a;console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x130));const _0x165f3e=_0x26433b(_0x1d079a,_0x52285d(0xdd));console[_0x52285d(0x1bd)](_0x34de4d+'\x20\x20\x20Checking\x20for\x20enhancement\x20document...');const _0x37ccdd=await _0x4bf64d(_0x35eb48,_0x537180),_0x213ecf=_0x37ccdd?'enhancement':_0x52285d(0xee);console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x1d2)+_0x213ecf);const _0x11018b=_0x37ccdd??_0x165f3e,_0x460307=_0x213ecf===_0x52285d(0x118)||_0x502af7[_0x52285d(0x14f)][_0x52285d(0x19c)](_0x52285d(0x1af))||_0x502af7[_0x52285d(0x14f)][_0x52285d(0x19c)]('enhancement');console['log'](_0x34de4d+_0x52285d(0x157)+_0x460307);try{console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0xfb));const _0x1196e4=await _0x38050f(_0x35eb48,_0x11018b,_0x213ecf,_0x460307);return console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x1f9)),_0x1196e4;}catch(_0x3d4992){return console[_0x52285d(0x112)](_0x34de4d+_0x52285d(0x136),_0x3d4992),_0x5032a1(_0x52285d(0x1f3),_0x52285d(0x1ad),_0x3d4992),_0x11018b;}}return _0x3eeff5(_0x2b6139);})());
@@ -1 +1 @@
1
- var _0x473e3a=_0x3385;(function(_0x2bcf36,_0x61f516){var _0x1aac57=_0x3385,_0x1e09e3=_0x2bcf36();while(!![]){try{var _0x11c61f=-parseInt(_0x1aac57(0x20d))/0x1+parseInt(_0x1aac57(0x20c))/0x2+parseInt(_0x1aac57(0x206))/0x3+-parseInt(_0x1aac57(0x201))/0x4+parseInt(_0x1aac57(0x1fb))/0x5*(parseInt(_0x1aac57(0x1f8))/0x6)+parseInt(_0x1aac57(0x20b))/0x7+-parseInt(_0x1aac57(0x209))/0x8;if(_0x11c61f===_0x61f516)break;else _0x1e09e3['push'](_0x1e09e3['shift']());}catch(_0x4af509){_0x1e09e3['push'](_0x1e09e3['shift']());}}}(_0x563b,0x55e62));function _0x3385(_0x45a618,_0x44d5b0){_0x45a618=_0x45a618-0x1f3;var _0x563bf4=_0x563b();var _0x338538=_0x563bf4[_0x45a618];return _0x338538;}import{fileURLToPath}from'url';function _0x563b(){var _0x3f40fe=['\x22;\x0aEnhance.init(','application/javascript','../assets/enhance-runtime.js',');\x0a</script>','570819NljfKN','utf-8','end','5700568XDGvNG','use','3821664BotaQq','1244400ROpMXb','492233uKRtaR','enhance-sandbox','publishableKey','Content-Type','replace','__development','url','emitFile','468906mPaMZZ','callbackBypass','middlewares','15wYMaDd','/sw-enhance.js','setHeader','../sw-enhance.js','asset','assets/enhance-runtime.js','144928mHGCfg'];_0x563b=function(){return _0x3f40fe;};return _0x563b();}import{readFile}from'fs/promises';var runtimePath=fileURLToPath(new URL(_0x473e3a(0x204),import.meta.url)),swPath=fileURLToPath(new URL(_0x473e3a(0x1fe),import.meta.url)),RUNTIME_URL='/assets/enhance-runtime.js',SW_URL=_0x473e3a(0x1fc);function buildInitScript(_0x2ee4d8){var _0x1f80f6=_0x473e3a;const _0x312e27={'publishableKey':_0x2ee4d8[_0x1f80f6(0x20f)],'callbackBypass':_0x2ee4d8[_0x1f80f6(0x1f9)],'__development':_0x2ee4d8[_0x1f80f6(0x1f5)]},_0xb51175=JSON['stringify'](_0x312e27);return'<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22'+RUNTIME_URL+_0x1f80f6(0x202)+_0xb51175+_0x1f80f6(0x205);}var enhance=_0x2801e5=>{var _0x5259c0=_0x473e3a;let _0x594956=null,_0x2e1c59=null;async function _0x38b25a(){var _0x53f3c0=_0x3385;!_0x594956&&(_0x594956=await readFile(runtimePath,_0x53f3c0(0x207))),!_0x2e1c59&&(_0x2e1c59=await readFile(swPath,'utf-8'));}return{'name':_0x5259c0(0x20e),'configureServer'(_0x331793){var _0x51abea=_0x5259c0;_0x331793['middlewares'][_0x51abea(0x20a)](async(_0xac0282,_0x2317fb,_0x483a55)=>{var _0x71a6d2=_0x51abea;if(_0xac0282['url']===RUNTIME_URL||_0xac0282['url']===SW_URL){await _0x38b25a(),_0x2317fb[_0x71a6d2(0x1fd)](_0x71a6d2(0x1f3),_0x71a6d2(0x203)),_0x2317fb[_0x71a6d2(0x208)](_0xac0282['url']===RUNTIME_URL?_0x594956:_0x2e1c59);return;}_0x483a55();});},'configurePreviewServer'(_0x489813){var _0x585b34=_0x5259c0;_0x489813[_0x585b34(0x1fa)]['use'](async(_0x27d8ea,_0x416f8c,_0xc5cf44)=>{var _0x3d5108=_0x585b34;if(_0x27d8ea[_0x3d5108(0x1f6)]===RUNTIME_URL||_0x27d8ea[_0x3d5108(0x1f6)]===SW_URL){await _0x38b25a(),_0x416f8c['setHeader'](_0x3d5108(0x1f3),_0x3d5108(0x203)),_0x416f8c[_0x3d5108(0x208)](_0x27d8ea[_0x3d5108(0x1f6)]===RUNTIME_URL?_0x594956:_0x2e1c59);return;}_0xc5cf44();});},async 'generateBundle'(){var _0x374d3f=_0x5259c0;await _0x38b25a(),this[_0x374d3f(0x1f7)]({'type':_0x374d3f(0x1ff),'fileName':_0x374d3f(0x200),'source':_0x594956}),this['emitFile']({'type':'asset','fileName':'sw-enhance.js','source':_0x2e1c59});},'transformIndexHtml'(_0x51056c){var _0x1f56bc=_0x5259c0;const _0x553f0b=buildInitScript(_0x2801e5);return _0x51056c[_0x1f56bc(0x1f4)](/<head([^>]*)>/,'<head$1>'+_0x553f0b);}};};export{enhance};
1
+ var _0x3dadc9=_0x530b;function _0x4b98(){var _0x5702ee=['stringify','setHeader','2055654cbMBee','725080EFWttz','replace','<head$1>','asset','/assets/enhance-runtime.js','1154jJCaiO','publishableKey','20930TPoPvW','middlewares','end','32oiJLNG','2976hBtLUd','assets/enhance-runtime.js','\x22;\x0aEnhance.init(','5676594jjnqie','__development','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22','application/javascript','../assets/enhance-runtime.js','../sw-enhance.js','utf-8','emitFile','enhance-sandbox','callbackBypass','2648751YSAFCq','25cxRPdv','4462570hGKoxc','sw-enhance.js','url'];_0x4b98=function(){return _0x5702ee;};return _0x4b98();}function _0x530b(_0x1b068a,_0x53e5f9){_0x1b068a=_0x1b068a-0x86;var _0x4b9898=_0x4b98();var _0x530b16=_0x4b9898[_0x1b068a];return _0x530b16;}(function(_0x10c1cd,_0x4b2258){var _0x225953=_0x530b,_0x42abe1=_0x10c1cd();while(!![]){try{var _0x2b8910=parseInt(_0x225953(0xa5))/0x1+-parseInt(_0x225953(0xa3))/0x2*(-parseInt(_0x225953(0x89))/0x3)+-parseInt(_0x225953(0x9e))/0x4*(-parseInt(_0x225953(0x97))/0x5)+parseInt(_0x225953(0x8c))/0x6+-parseInt(_0x225953(0x96))/0x7+parseInt(_0x225953(0x88))/0x8*(-parseInt(_0x225953(0x9d))/0x9)+-parseInt(_0x225953(0x98))/0xa;if(_0x2b8910===_0x4b2258)break;else _0x42abe1['push'](_0x42abe1['shift']());}catch(_0x1f179d){_0x42abe1['push'](_0x42abe1['shift']());}}}(_0x4b98,0xacba1));import{fileURLToPath}from'url';import{readFile}from'fs/promises';var runtimePath=fileURLToPath(new URL(_0x3dadc9(0x90),import.meta.url)),swPath=fileURLToPath(new URL(_0x3dadc9(0x91),import.meta.url)),RUNTIME_URL=_0x3dadc9(0xa2),SW_URL='/sw-enhance.js';function buildInitScript(_0x4134b6){var _0x21cd01=_0x3dadc9;const _0x3d0f57={'publishableKey':_0x4134b6[_0x21cd01(0xa4)],'callbackBypass':_0x4134b6[_0x21cd01(0x95)],'__development':_0x4134b6[_0x21cd01(0x8d)]},_0x59e881=JSON[_0x21cd01(0x9b)](_0x3d0f57);return _0x21cd01(0x8e)+RUNTIME_URL+_0x21cd01(0x8b)+_0x59e881+');\x0a</script>';}var enhance=_0x45cf24=>{var _0x24e5cf=_0x3dadc9;let _0x5e63b3=null,_0x21bf39=null;async function _0xd39236(){var _0x218a29=_0x530b;!_0x5e63b3&&(_0x5e63b3=await readFile(runtimePath,'utf-8')),!_0x21bf39&&(_0x21bf39=await readFile(swPath,_0x218a29(0x92)));}return{'name':_0x24e5cf(0x94),'configureServer'(_0x1ace34){var _0x56086d=_0x24e5cf;_0x1ace34[_0x56086d(0x86)]['use'](async(_0x33505e,_0x322267,_0x3d65f9)=>{var _0x2145f2=_0x56086d;if(_0x33505e[_0x2145f2(0x9a)]===RUNTIME_URL||_0x33505e[_0x2145f2(0x9a)]===SW_URL){await _0xd39236(),_0x322267['setHeader']('Content-Type','application/javascript'),_0x322267['end'](_0x33505e[_0x2145f2(0x9a)]===RUNTIME_URL?_0x5e63b3:_0x21bf39);return;}_0x3d65f9();});},'configurePreviewServer'(_0x5925de){var _0x157336=_0x24e5cf;_0x5925de[_0x157336(0x86)]['use'](async(_0x52a6cb,_0xa2d8ad,_0x2b704c)=>{var _0x23b0d5=_0x157336;if(_0x52a6cb['url']===RUNTIME_URL||_0x52a6cb['url']===SW_URL){await _0xd39236(),_0xa2d8ad[_0x23b0d5(0x9c)]('Content-Type',_0x23b0d5(0x8f)),_0xa2d8ad[_0x23b0d5(0x87)](_0x52a6cb[_0x23b0d5(0x9a)]===RUNTIME_URL?_0x5e63b3:_0x21bf39);return;}_0x2b704c();});},async 'generateBundle'(){var _0x5e5449=_0x24e5cf;await _0xd39236(),this['emitFile']({'type':'asset','fileName':_0x5e5449(0x8a),'source':_0x5e63b3}),this[_0x5e5449(0x93)]({'type':_0x5e5449(0xa1),'fileName':_0x5e5449(0x99),'source':_0x21bf39});},'transformIndexHtml'(_0xd4e195){var _0x28df53=_0x24e5cf;const _0x34a238=buildInitScript(_0x45cf24);return _0xd4e195[_0x28df53(0x9f)](/<head([^>]*)>/,_0x28df53(0xa0)+_0x34a238);}};};export{enhance};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enhance-eng/sandbox",
3
- "version": "0.3.21-dev.fdfcd31",
3
+ "version": "0.3.21",
4
4
  "type": "module",
5
5
  "description": "Enhance preview bootstrap and tooling package.",
6
6
  "license": "MIT",