@enhance-eng/sandbox 0.3.20-dev.94284e2 → 0.3.20-dev.97b80d8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/enhance-runtime.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/sw-enhance.js +1 -1
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x48f5(){const _0x6dfef5=['\x20HMR\x20setup\x20complete','./dev/index.js','enhance:disable','serviceWorkerURL','225498tCzkyi','hasEnhancement','add','overlayPath','readyState','\x20Calling\x20createOverlay()...','https://api.enhancelabs.ai',',\x20currentOptions:\x20','\x20Invalid\x20React\x20Refresh\x20runtime','enabled','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','enhancementId','\x20detectBlocking\x20error:','state','/sw-enhance.js','\x20Starting\x20overlay\x20load\x20(async)...','...','some','\x20Checking\x20for\x20blocking\x20service\x20worker...','replace','false','version','__vite_plugin_react_preamble_installed__','\x20unregisterServiceWorker()\x20called','createOverlay','\x20URL\x20params\x20parsed:','title','ready','\x20loadOverlay()\x20complete','\x20No\x20blocking\x20SW\x20found','https://assets-dev.enhancelabs.ai/overlay.js','\x20Updating\x20overlay\x20with\x20state:','https://enhance-api-dev.enhancelabs.workers.dev','62249TlhPJr','\x20Starting\x20fresh\x20overlay\x20load...','\x20Current\x20controller\x20after\x20ready:','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','./dev/index.d.ts','\x20Unregistering\x20any\x20existing\x20SW...','4023WlfaHd','\x20enhancementId:\x20','trim','14nzSbNP','\x20Registration\x20returned:','\x20Failed\x20to\x20register\x20service\x20worker:','serviceWorker','\x20Document\x20readyState:\x20','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','explicitDisable','\x20resolveWorker:',',\x20owns=','__development','\x20First\x20initialization','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','state:\x20','\x20loadOverlay()\x20called','overlay','\x20init()\x20called\x20at\x20','\x20Current\x20URL:\x20','message','location','\x20Vite\x20client\x20already\x20loaded\x20for\x20','1070cEUvLY','\x20enableViteHmr:\x20','http://','[Enhance\x20Runtime]','keys','installing','\x20registerServiceWorker()\x20complete','__enhanceOptions','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20Enhancement\x20mode\x20ENABLED','36qBbWax','https://assets.enhancelabs.ai/overlay.js','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','\x20registerServiceWorker()\x20called','log','enhancementUrl','598074aVXtSS','enhance:configure','warn','\x20Config\x20sent\x20to\x20SW','backendUrl','\x20Controller\x20created:','vite:beforeUpdate','/@react-refresh','\x20init()\x20complete\x20-\x20normal\x20mode','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20Current\x20controller:','toLowerCase','scope','\x20Failed\x20to\x20import/create\x20overlay:','5WXjcwm','\x20React\x20Refresh\x20already\x20installed\x20for\x20','376zclzez','\x20No\x20current\x20controller','controller','onToggle','stringify','\x20state.enabled:\x20','\x20Module\x20imported\x20in\x20','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','public','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','includes','\x20overlayController\x20exists:\x20','getRegistration','__enhanceReactRefreshInstalledOrigins','\x20overlayPath:\x20','undefined','0.0.0','scriptURL','history','3pvltjH','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Overlay\x20controller\x20initialized\x20and\x20cached','__viteHMRLoaded','toString','\x20Unregistering\x20SW...','__enhanceController','security','init','reload','controlled','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20with\x20scope\x20\x27/\x27...','517109GYMVdO','\x20Overlay\x20origin:\x20','^7.2.4','waiting','appError','./dev/cli.js','[Enhance\x20Overlay]','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','default','\x20Vite\x20error\x20detected:','info','/assets/enhance-runtime.js','\x20Setting\x20up\x20remote\x20HMR...','searchParams','\x20Sending\x20customer\x20configuration...','vite:error','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','[Enhance\x20SW-Client]','415236irVywr','\x20swPath:\x20','\x20loadOverlay()\x20failed:','^24.10.1','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20Sending\x20customer\x20config\x20to\x20SW:','enhancement','position','active','delete','\x20Found\x20registration:','sw-enhance','enhance','\x20Starting\x20SW\x20registration\x20(async)...','\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','startsWith','2899004lWrCAe','^4.1.1','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','^11.1.0','enable','\x20currentOptions\x20exists:\x20','replaceState','$RefreshSig$','__enhanceOverlay','enableViteHmr','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','has','injectIntoGlobalHook','now','__enhanceInitialized','module','\x20ownsServiceWorker?\x20scriptURL=','\x20SW\x20unregistered\x20successfully','[data-enhance-runtime-bootstrap]','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','error','href','N/A','\x20SW\x20ready!\x20Active:','function','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','enableOverlayHmr','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','swPath','MIT','none','\x20Raw\x20options:','off','origin','search','get','callbackBypass','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','@enhance-eng/sandbox','permissive','\x20sendConfiguration()\x20called','unregister','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20Overlay\x20update\x20complete','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20Available\x20exports:'];_0x48f5=function(){return _0x6dfef5;};return _0x48f5();}const _0x363c38=_0x3e62;(function(_0x5c7865,_0x1713ef){const _0x4ac1ec=_0x3e62,_0x4dadea=_0x5c7865();while(!![]){try{const _0x115187=parseInt(_0x4ac1ec(0x229))/0x1+parseInt(_0x4ac1ec(0x165))/0x2*(-parseInt(_0x4ac1ec(0x21b))/0x3)+parseInt(_0x4ac1ec(0x176))/0x4*(parseInt(_0x4ac1ec(0x206))/0x5)+-parseInt(_0x4ac1ec(0x1f8))/0x6*(-parseInt(_0x4ac1ec(0x1d4))/0x7)+parseInt(_0x4ac1ec(0x208))/0x8*(-parseInt(_0x4ac1ec(0x1d1))/0x9)+parseInt(_0x4ac1ec(0x1e8))/0xa*(-parseInt(_0x4ac1ec(0x1cb))/0xb)+parseInt(_0x4ac1ec(0x1f2))/0xc*(-parseInt(_0x4ac1ec(0x1aa))/0xd);if(_0x115187===_0x1713ef)break;else _0x4dadea['push'](_0x4dadea['shift']());}catch(_0x3af8e2){_0x4dadea['push'](_0x4dadea['shift']());}}}(_0x48f5,0x87820));var DEFAULT_OVERLAY_PATH=!![]?_0x363c38(0x1c8):_0x363c38(0x1f3),DEFAULT_BACKEND_URL=!![]?_0x363c38(0x1ca):_0x363c38(0x1b0),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x363c38(0x1f6)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x12dc59){const _0x4aeaa0=_0x363c38,_0x412fb0=_0x12dc59[_0x4aeaa0(0x1dd)]??{};return{'callbackBypass':_0x12dc59['callbackBypass']??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x412fb0[_0x4aeaa0(0x191)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x4aeaa0(0x15d),'swPath':_0x4aeaa0(0x1b8),'overlayPath':_0x412fb0['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x412fb0[_0x4aeaa0(0x223)]??_0x4aeaa0(0x19f),'backendUrl':_0x412fb0[_0x4aeaa0(0x1fc)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x43a73d=_0x363c38;try{const _0x204882=new URLSearchParams(window['location'][_0x43a73d(0x199)]);return _0x204882[_0x43a73d(0x19a)]('enhancementUrl')?.[_0x43a73d(0x1d3)]()||'';}catch{return'';}}var LOG_PREFIX=_0x363c38(0x159),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x19f817){const _0x17768f=_0x363c38;console[_0x17768f(0x1f6)](LOG_PREFIX+_0x17768f(0x1e1)),console[_0x17768f(0x1f6)](LOG_PREFIX+_0x17768f(0x216)+_0x19f817[_0x17768f(0x1ad)]),console[_0x17768f(0x1f6)](LOG_PREFIX+_0x17768f(0x1e9)+_0x19f817['enableViteHmr']),currentOptions=_0x19f817['options'],toggleHandler=_0x19f817['onToggle'];if(overlayController){console[_0x17768f(0x1f6)](LOG_PREFIX+_0x17768f(0x1ce)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x17768f(0x1f6)](LOG_PREFIX+_0x17768f(0x19c)),overlayLoadPromise;console[_0x17768f(0x1f6)](LOG_PREFIX+_0x17768f(0x1cc)),overlayLoadPromise=doLoadOverlay(_0x19f817);try{await overlayLoadPromise,console[_0x17768f(0x1f6)](LOG_PREFIX+_0x17768f(0x1c6));}catch(_0x535351){console[_0x17768f(0x18b)](LOG_PREFIX+_0x17768f(0x167),_0x535351);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x573bb3){const _0x31124c=_0x363c38;console[_0x31124c(0x1f6)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x31124c(0x217)){console[_0x31124c(0x1f6)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x31124c(0x17e)]){console[_0x31124c(0x1f6)](LOG_PREFIX+_0x31124c(0x21d)),overlayController=window['__enhanceOverlay'];return;}console[_0x31124c(0x1f6)](LOG_PREFIX+_0x31124c(0x178));try{_0x573bb3['enableViteHmr']&&(console[_0x31124c(0x1f6)](LOG_PREFIX+_0x31124c(0x15f)),await setupRemoteHMR(_0x573bb3[_0x31124c(0x1ad)]));console[_0x31124c(0x1f6)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x573bb3[_0x31124c(0x1ad)]);const _0x2d2531=Date['now'](),_0x349fc2=await import(_0x573bb3['overlayPath']);console[_0x31124c(0x1f6)](LOG_PREFIX+_0x31124c(0x20e)+(Date[_0x31124c(0x184)]()-_0x2d2531)+'ms'),console[_0x31124c(0x1f6)](LOG_PREFIX+'\x20Module\x20exports:',Object['keys'](_0x349fc2));if(typeof _0x349fc2?.[_0x31124c(0x1c2)]!=='function'){console[_0x31124c(0x18b)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x31124c(0x18b)](LOG_PREFIX+_0x31124c(0x1a5),Object[_0x31124c(0x1ec)](_0x349fc2));return;}console[_0x31124c(0x1f6)](LOG_PREFIX+_0x31124c(0x1af));const _0x51158f=_0x349fc2[_0x31124c(0x1c2)]();console[_0x31124c(0x1f6)](LOG_PREFIX+_0x31124c(0x1fd),_0x51158f),overlayController=_0x51158f,window[_0x31124c(0x17e)]=_0x51158f,_0x51158f['onToggle'](_0x573bb3[_0x31124c(0x20b)]),console['log'](LOG_PREFIX+_0x31124c(0x21e)),console[_0x31124c(0x1f6)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x488d66){console[_0x31124c(0x18b)](LOG_PREFIX+_0x31124c(0x205),_0x488d66);}}function updateOverlay(){const _0x275313=_0x363c38;console[_0x275313(0x1f6)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console['log'](LOG_PREFIX+_0x275313(0x213)+!!overlayController),console[_0x275313(0x1f6)](LOG_PREFIX+_0x275313(0x17b)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x275313(0x1f6)](LOG_PREFIX+_0x275313(0x18a));return;}const _0x50e50e=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x275313(0x1c9),JSON[_0x275313(0x20c)](_0x50e50e,null,0x2)),overlayController['update'](_0x50e50e),console['log'](LOG_PREFIX+_0x275313(0x1a3));}function _0x3e62(_0x3e4c1d,_0x50f364){_0x3e4c1d=_0x3e4c1d-0x155;const _0x48f58b=_0x48f5();let _0x3e62fa=_0x48f58b[_0x3e4c1d];return _0x3e62fa;}function composeOverlayState(_0x31df7b){const _0x5655a0=_0x363c38,_0x6bfe5a=getEnhancementUrl();return console[_0x5655a0(0x1f6)](LOG_PREFIX+_0x5655a0(0x1a4)+_0x6bfe5a),console[_0x5655a0(0x1f6)](LOG_PREFIX+_0x5655a0(0x180)+state[_0x5655a0(0x1b3)]),console[_0x5655a0(0x1f6)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state['controlled']),{'enhancementUrl':_0x6bfe5a,'enabled':state[_0x5655a0(0x1b3)],'controlled':state['controlled'],'overlayPosition':_0x31df7b[_0x5655a0(0x1e2)][_0x5655a0(0x16c)],'securityMode':_0x31df7b[_0x5655a0(0x223)],'backendBaseUrl':_0x31df7b['backendUrl'],'appError':state[_0x5655a0(0x157)]};}async function setupRemoteHMR(_0x37ca4c){const _0x174446=_0x363c38;console[_0x174446(0x1f6)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x37ca4c);if(typeof window==='undefined')return;try{const _0x524867=new URL(_0x37ca4c,window[_0x174446(0x1e6)][_0x174446(0x198)]),_0x5091c7=_0x524867[_0x174446(0x198)];console[_0x174446(0x1f6)](LOG_PREFIX+_0x174446(0x22a)+_0x5091c7+',\x20page\x20origin:\x20'+window[_0x174446(0x1e6)][_0x174446(0x198)]);if(_0x5091c7===window[_0x174446(0x1e6)][_0x174446(0x198)]){console[_0x174446(0x1f6)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x174446(0x1f6)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x5091c7),await ensureViteClient(_0x5091c7),console[_0x174446(0x1f6)](LOG_PREFIX+_0x174446(0x1a6));}catch(_0x38c649){console['warn'](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x38c649);}}async function ensureReactRefreshPreamble(_0x41db45){const _0x257c78=_0x363c38;window['__enhanceReactRefreshInstalledOrigins']??(window['__enhanceReactRefreshInstalledOrigins']=new Set());if(window[_0x257c78(0x215)][_0x257c78(0x182)](_0x41db45)){console[_0x257c78(0x1f6)](LOG_PREFIX+_0x257c78(0x207)+_0x41db45);return;}console[_0x257c78(0x1f6)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x41db45+_0x257c78(0x1ba));const _0x4afb3c=await import(_0x41db45+_0x257c78(0x1ff)),_0xa98cd0=_0x4afb3c&&typeof _0x4afb3c==='object'&&_0x257c78(0x15b)in _0x4afb3c?_0x4afb3c['default']:_0x4afb3c;if(!isRefreshRuntime(_0xa98cd0)){console[_0x257c78(0x1fa)](LOG_PREFIX+_0x257c78(0x1b2));return;}_0xa98cd0[_0x257c78(0x183)](window),window['$RefreshReg$']=()=>{},window[_0x257c78(0x17d)]=()=>_0x5d69a4=>_0x5d69a4,window[_0x257c78(0x1c0)]=!![],window[_0x257c78(0x215)][_0x257c78(0x1ac)](_0x41db45),console[_0x257c78(0x1f6)](LOG_PREFIX+_0x257c78(0x201)+_0x41db45);}async function ensureViteClient(_0x4e3c2e){const _0x3562ed=_0x363c38;window[_0x3562ed(0x21f)]??(window[_0x3562ed(0x21f)]=new Set());if(window['__viteHMRLoaded'][_0x3562ed(0x182)](_0x4e3c2e)){console[_0x3562ed(0x1f6)](LOG_PREFIX+_0x3562ed(0x1e7)+_0x4e3c2e);return;}console[_0x3562ed(0x1f6)](LOG_PREFIX+_0x3562ed(0x163)+_0x4e3c2e+'...'),await import(_0x4e3c2e+'/@vite/client'),window[_0x3562ed(0x21f)][_0x3562ed(0x1ac)](_0x4e3c2e),console['log'](LOG_PREFIX+_0x3562ed(0x192)+_0x4e3c2e);}function isRefreshRuntime(_0x2093f6){const _0x5653b2=_0x363c38;return typeof _0x2093f6==='object'&&_0x2093f6!==null&&_0x5653b2(0x183)in _0x2093f6&&typeof _0x2093f6[_0x5653b2(0x183)]===_0x5653b2(0x18f);}var WORKER_MESSAGE_CONFIG=_0x363c38(0x1f9),WORKER_MESSAGE_DISABLE=_0x363c38(0x1a8),LOG_PREFIX2=_0x363c38(0x164),registration=null,currentOptions2=null;async function registerServiceWorker(_0xb5e19d){const _0x316929=_0x363c38;console[_0x316929(0x1f6)](LOG_PREFIX2+_0x316929(0x1f5)),console['log'](LOG_PREFIX2+_0x316929(0x166)+_0xb5e19d[_0x316929(0x193)]);if(!(_0x316929(0x1d7)in navigator)){console[_0x316929(0x1fa)](LOG_PREFIX2+_0x316929(0x173));return;}console['log'](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x41381e=navigator[_0x316929(0x1d7)]['controller'];console[_0x316929(0x1f6)](LOG_PREFIX2+_0x316929(0x202),_0x41381e?.[_0x316929(0x219)]??_0x316929(0x195)),console[_0x316929(0x1f6)](LOG_PREFIX2+'\x20Controller\x20state:',_0x41381e?.[_0x316929(0x1b7)]??'N/A');const _0x1fc066=!!_0x41381e;currentOptions2=_0xb5e19d,console[_0x316929(0x1f6)](LOG_PREFIX2+_0x316929(0x1bc));const _0x21444b=await detectBlockingServiceWorker(_0xb5e19d[_0x316929(0x193)]);if(_0x21444b){console['error'](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x21444b),console['error'](LOG_PREFIX2+_0x316929(0x1f0));return;}console[_0x316929(0x1f6)](LOG_PREFIX2+_0x316929(0x1c7));try{console[_0x316929(0x1f6)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0xb5e19d['swPath']+_0x316929(0x228)),registration=await navigator[_0x316929(0x1d7)]['register'](_0xb5e19d['swPath'],{'scope':'/'}),console[_0x316929(0x1f6)](LOG_PREFIX2+_0x316929(0x1d5),{'scope':registration['scope'],'active':registration[_0x316929(0x16d)]?.['scriptURL'],'waiting':registration[_0x316929(0x156)]?.['scriptURL'],'installing':registration[_0x316929(0x1ed)]?.[_0x316929(0x219)]}),console['log'](LOG_PREFIX2+_0x316929(0x20f));const _0x1c4212=await navigator[_0x316929(0x1d7)][_0x316929(0x1c5)];console[_0x316929(0x1f6)](LOG_PREFIX2+_0x316929(0x18e),_0x1c4212[_0x316929(0x16d)]?.[_0x316929(0x219)]);const _0x2d4c13=ownsCurrentController(_0xb5e19d[_0x316929(0x193)]);state[_0x316929(0x226)]=_0x2d4c13,console['log'](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x2d4c13),console[_0x316929(0x1f6)](LOG_PREFIX2+_0x316929(0x1cd),navigator['serviceWorker'][_0x316929(0x20a)]?.[_0x316929(0x219)]??_0x316929(0x195));if(!_0x1fc066&&!navigator[_0x316929(0x1d7)]['controller']){console['log'](LOG_PREFIX2+'\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...'),window['location'][_0x316929(0x225)]();return;}console[_0x316929(0x1f6)](LOG_PREFIX2+_0x316929(0x161)),await sendConfiguration();if(state[_0x316929(0x1b3)]){const _0x19821c=document['querySelector'](_0x316929(0x189))!==null;console[_0x316929(0x1f6)](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x19821c);if(!_0x19821c){console[_0x316929(0x1f6)](LOG_PREFIX2+_0x316929(0x1d9)),window[_0x316929(0x1e6)]['reload']();return;}}console[_0x316929(0x1f6)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console[_0x316929(0x1f6)](LOG_PREFIX2+_0x316929(0x1ee));}catch(_0x4102e7){console[_0x316929(0x18b)](LOG_PREFIX2+_0x316929(0x1d6),_0x4102e7);}}async function sendConfiguration(){const _0x3cf51b=_0x363c38;console['log'](LOG_PREFIX2+_0x3cf51b(0x1a0)),console[_0x3cf51b(0x1f6)](LOG_PREFIX2+_0x3cf51b(0x20d)+state[_0x3cf51b(0x1b3)]+_0x3cf51b(0x1b1)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x3cf51b(0x1f6)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x2528b5=await resolveWorker();if(!_0x2528b5){console['warn'](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x3bc021={'callbackBypass':currentOptions2[_0x3cf51b(0x19b)],'securityMode':currentOptions2[_0x3cf51b(0x223)]};console[_0x3cf51b(0x1f6)](LOG_PREFIX2+_0x3cf51b(0x16a),JSON[_0x3cf51b(0x20c)](_0x3bc021,null,0x2)),_0x2528b5['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x3bc021}),console[_0x3cf51b(0x1f6)](LOG_PREFIX2+_0x3cf51b(0x1fb));}async function unregisterServiceWorker(_0xfeffa6){const _0x7484f8=_0x363c38;console[_0x7484f8(0x1f6)](LOG_PREFIX2+_0x7484f8(0x1c1));if(!(_0x7484f8(0x1d7)in navigator)){console[_0x7484f8(0x1f6)](LOG_PREFIX2+_0x7484f8(0x211));return;}try{const _0x55d788=registration??await navigator[_0x7484f8(0x1d7)]['getRegistration']('/');if(!_0x55d788){console['log'](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console['log'](LOG_PREFIX2+_0x7484f8(0x16f),{'scope':_0x55d788[_0x7484f8(0x204)],'active':_0x55d788['active']?.[_0x7484f8(0x219)],'waiting':_0x55d788[_0x7484f8(0x156)]?.[_0x7484f8(0x219)],'installing':_0x55d788['installing']?.[_0x7484f8(0x219)]});const _0x4f7d87=[_0x55d788[_0x7484f8(0x16d)]?.['scriptURL'],_0x55d788['waiting']?.['scriptURL'],_0x55d788[_0x7484f8(0x1ed)]?.['scriptURL']],_0x15ae4=_0x4f7d87[_0x7484f8(0x1bb)](_0x2d882e=>_0x2d882e&&ownsServiceWorker(_0x2d882e,_0xfeffa6));if(!_0x15ae4){console['log'](LOG_PREFIX2+_0x7484f8(0x190));return;}_0x55d788['active']&&(console[_0x7484f8(0x1f6)](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x55d788[_0x7484f8(0x16d)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console[_0x7484f8(0x1f6)](LOG_PREFIX2+_0x7484f8(0x221)),await _0x55d788[_0x7484f8(0x1a1)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x7484f8(0x188));}catch(_0x545b4d){console[_0x7484f8(0x18b)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x545b4d);}}function ownsServiceWorker(_0x3fb8bd,_0x36b2a7){const _0x4aa177=_0x363c38,_0x50b1e6=typeof window!=='undefined'?window[_0x4aa177(0x1e6)][_0x4aa177(0x198)]:'',_0x42610d=new URL(_0x36b2a7,_0x50b1e6||void 0x0)[_0x4aa177(0x18c)],_0x28e559=_0x3fb8bd===_0x42610d||_0x3fb8bd[_0x4aa177(0x212)](_0x4aa177(0x170));return console[_0x4aa177(0x1f6)](LOG_PREFIX2+_0x4aa177(0x187)+_0x3fb8bd+',\x20expected='+_0x42610d+_0x4aa177(0x1dc)+_0x28e559),_0x28e559;}function ownsCurrentController(_0x2238bf){const _0x333604=_0x363c38;if(typeof navigator===_0x333604(0x217))return![];const _0x488400=navigator[_0x333604(0x1d7)]?.[_0x333604(0x20a)];if(!_0x488400)return console[_0x333604(0x1f6)](LOG_PREFIX2+_0x333604(0x209)),![];return ownsServiceWorker(_0x488400[_0x333604(0x219)],_0x2238bf);}async function detectBlockingServiceWorker(_0x2dc365){const _0x3447f4=_0x363c38;if(!navigator['serviceWorker'])return null;try{const _0x272ec2=await navigator[_0x3447f4(0x1d7)][_0x3447f4(0x214)]('/');console[_0x3447f4(0x1f6)](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x272ec2?.[_0x3447f4(0x16d)]?.[_0x3447f4(0x219)]??_0x3447f4(0x195));const _0x594d32=_0x272ec2?.[_0x3447f4(0x16d)]?.[_0x3447f4(0x219)];if(!_0x594d32)return null;if(ownsServiceWorker(_0x594d32,_0x2dc365))return null;return _0x594d32;}catch(_0x246391){return console['error'](LOG_PREFIX2+_0x3447f4(0x1b6),_0x246391),null;}}async function resolveWorker(){const _0x5839e3=_0x363c38,_0x34f31c=registration??await navigator[_0x5839e3(0x1d7)]?.[_0x5839e3(0x214)]('/'),_0x2deafc=_0x34f31c?.['active']??_0x34f31c?.[_0x5839e3(0x156)]??_0x34f31c?.[_0x5839e3(0x1ed)]??null;return console[_0x5839e3(0x1f6)](LOG_PREFIX2+_0x5839e3(0x1db),_0x2deafc?.[_0x5839e3(0x219)]??'none',_0x5839e3(0x1e0)+(_0x2deafc?.['state']??_0x5839e3(0x18d))),_0x2deafc;}var LOG_PREFIX3=_0x363c38(0x1eb);function isInitialized(){const _0x467b39=_0x363c38;return typeof window!==_0x467b39(0x217)&&window[_0x467b39(0x185)]===!![];}function setInitialized(_0x34273d){const _0x95e1ad=_0x363c38;typeof window!==_0x95e1ad(0x217)&&(window[_0x95e1ad(0x185)]=_0x34273d);}function getOptions(){const _0x5d3284=_0x363c38;return typeof window!=='undefined'?window[_0x5d3284(0x1ef)]??null:null;}function setOptions(_0x4f3ae9){const _0x899008=_0x363c38;typeof window!==_0x899008(0x217)&&(window[_0x899008(0x1ef)]=_0x4f3ae9);}var Enhance={'init'(_0x148b50={}){const _0x19a3e4=_0x363c38,_0x1b093b=Date['now']();console[_0x19a3e4(0x1f6)](LOG_PREFIX3+_0x19a3e4(0x1e3)+_0x1b093b),console[_0x19a3e4(0x1f6)](LOG_PREFIX3+_0x19a3e4(0x1e4)+window[_0x19a3e4(0x1e6)][_0x19a3e4(0x18c)]),console[_0x19a3e4(0x1f6)](LOG_PREFIX3+_0x19a3e4(0x1d8)+document[_0x19a3e4(0x1ae)]),console[_0x19a3e4(0x1f6)](LOG_PREFIX3+_0x19a3e4(0x196),JSON[_0x19a3e4(0x20c)](_0x148b50,null,0x2));if(isInitialized())return console[_0x19a3e4(0x1fa)](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window['__enhanceController']??createController();setInitialized(!![]),console[_0x19a3e4(0x1f6)](LOG_PREFIX3+_0x19a3e4(0x1de));const _0x52931d=normalizeOptions(_0x148b50);setOptions(_0x52931d),console['log'](LOG_PREFIX3+'\x20Normalized\x20options:',JSON['stringify'](_0x52931d,null,0x2));const _0x15b6db=parseUrlParams();console['log'](LOG_PREFIX3+_0x19a3e4(0x1c3),JSON[_0x19a3e4(0x20c)](_0x15b6db,null,0x2));if(_0x15b6db[_0x19a3e4(0x1da)])return cleanUrlParam('enhance'),console[_0x19a3e4(0x1f6)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x15b6db[_0x19a3e4(0x1ab)])return console['log'](LOG_PREFIX3+_0x19a3e4(0x1f1)),console[_0x19a3e4(0x1f6)](LOG_PREFIX3+'\x20enhancementUrl:\x20'+_0x15b6db['enhancementUrl']),console['log'](LOG_PREFIX3+_0x19a3e4(0x1d2)+_0x15b6db[_0x19a3e4(0x1b5)]),state['enabled']=!![],console[_0x19a3e4(0x1f6)](LOG_PREFIX3+_0x19a3e4(0x1b9)),void loadOverlay({'overlayPath':_0x52931d[_0x19a3e4(0x1ad)],'enableViteHmr':_0x52931d[_0x19a3e4(0x1e2)]['enableViteHmr'],'options':_0x52931d,'onToggle':handleToggle}),console[_0x19a3e4(0x1f6)](LOG_PREFIX3+_0x19a3e4(0x172)),void registerServiceWorker(_0x52931d),console[_0x19a3e4(0x1f6)](LOG_PREFIX3+_0x19a3e4(0x227)),createController();return console[_0x19a3e4(0x1f6)](LOG_PREFIX3+_0x19a3e4(0x1b4)),console[_0x19a3e4(0x1f6)](LOG_PREFIX3+_0x19a3e4(0x1d0)),void unregisterServiceWorker(_0x52931d[_0x19a3e4(0x193)]),console['log'](LOG_PREFIX3+_0x19a3e4(0x200)),import.meta.hot&&(console[_0x19a3e4(0x1f6)](LOG_PREFIX3+_0x19a3e4(0x181)),import.meta.hot['on'](_0x19a3e4(0x162),_0x3cc3ac=>{const _0x1e19be=_0x19a3e4;console[_0x1e19be(0x1f6)](LOG_PREFIX3+_0x1e19be(0x15c),_0x3cc3ac),state[_0x1e19be(0x157)]={'message':_0x3cc3ac['err'][_0x1e19be(0x1e5)]},updateOverlay();}),import.meta.hot['on'](_0x19a3e4(0x1fe),()=>{const _0x21099c=_0x19a3e4;state[_0x21099c(0x157)]&&(console[_0x21099c(0x1f6)](LOG_PREFIX3+_0x21099c(0x169)),state['appError']=null,updateOverlay());})),createController();}};function createController(){const _0x38577b=_0x363c38,_0x4c3a41={'enable'(){const _0x420f87=_0x3e62,_0x1dc63a=getOptions();if(!_0x1dc63a)return;state[_0x420f87(0x1b3)]=!![],void loadOverlay({'overlayPath':_0x1dc63a[_0x420f87(0x1ad)],'enableViteHmr':_0x1dc63a['overlay'][_0x420f87(0x17f)],'options':_0x1dc63a,'onToggle':handleToggle}),void registerServiceWorker(_0x1dc63a),void sendConfiguration(),updateOverlay();},'disable'(){const _0x542dba=_0x3e62,_0x32191e=getOptions();if(!_0x32191e)return;state[_0x542dba(0x1b3)]=![],state[_0x542dba(0x226)]=![],updateOverlay(),void unregisterServiceWorker(_0x32191e[_0x542dba(0x193)]);},'status'(){const _0x407814=_0x3e62;return{'enabled':state[_0x407814(0x1b3)],'controlled':state[_0x407814(0x226)]};}};return typeof window!==_0x38577b(0x217)&&(window[_0x38577b(0x222)]=_0x4c3a41),_0x4c3a41;}function handleToggle(){const _0x41c209=_0x363c38,_0x531dc9=createController();state[_0x41c209(0x1b3)]?_0x531dc9['disable']():_0x531dc9[_0x41c209(0x17a)]();}function parseUrlParams(){const _0xb33efd=_0x363c38,_0x2576fb=new URL(window[_0xb33efd(0x1e6)][_0xb33efd(0x18c)]),_0x13c882=_0x2576fb[_0xb33efd(0x160)][_0xb33efd(0x19a)](_0xb33efd(0x171))?.[_0xb33efd(0x203)](),_0x56c879=_0x2576fb[_0xb33efd(0x160)][_0xb33efd(0x19a)](_0xb33efd(0x1f7)),_0x61175=_0x2576fb[_0xb33efd(0x160)][_0xb33efd(0x19a)](_0xb33efd(0x16b));return{'hasEnhancement':Boolean(_0x56c879||_0x61175),'explicitDisable':_0x13c882==='0'||_0x13c882===_0xb33efd(0x1be)||_0x13c882===_0xb33efd(0x197),'enhancementUrl':_0x56c879,'enhancementId':_0x61175};}function cleanUrlParam(_0x364f35){const _0x3b0a04=_0x363c38,_0x1d957a=new URL(window[_0x3b0a04(0x1e6)][_0x3b0a04(0x18c)]);_0x1d957a['searchParams'][_0x3b0a04(0x182)](_0x364f35)&&(_0x1d957a[_0x3b0a04(0x160)][_0x3b0a04(0x16e)](_0x364f35),window[_0x3b0a04(0x21a)][_0x3b0a04(0x17c)](null,document[_0x3b0a04(0x1c4)],_0x1d957a[_0x3b0a04(0x220)]()));}var package_default={'name':_0x363c38(0x19e),'version':'0.3.20','type':_0x363c38(0x186),'description':_0x363c38(0x21c),'license':_0x363c38(0x194),'main':'./dev/index.js','module':'./dev/index.js','types':'./dev/index.d.ts','exports':{'.':{'types':_0x363c38(0x1cf),'import':_0x363c38(0x1a7)},'./vite':{'types':'./dev/vite/index.d.ts','import':'./dev/vite/index.js'}},'files':['dev/'],'bin':{'enhance-sandbox':_0x363c38(0x158)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x363c38(0x1df),'dev:build':_0x363c38(0x15a),'dev:staging':_0x363c38(0x1a2),'dev:staging:build':_0x363c38(0x174),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x363c38(0x19d),'build:release:dev':_0x363c38(0x1f4),'version':'bun\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x363c38(0x179),'zod':'^3.22.4'},'devDependencies':{'@types/node':_0x363c38(0x168),'javascript-obfuscator':_0x363c38(0x177),'tsup':'^8.5.1','vite':_0x363c38(0x155)},'publishConfig':{'access':_0x363c38(0x210)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x363c38(0x15e),PACKAGE_VERSION=typeof package_default[_0x363c38(0x1bf)]==='string'?package_default[_0x363c38(0x1bf)]:_0x363c38(0x218);function normalizeAssetPath(_0x3561e3){const _0x1e1c11=_0x363c38;if(!_0x3561e3)return _0x3561e3;if(_0x3561e3[_0x1e1c11(0x175)](_0x1e1c11(0x1ea))||_0x3561e3['startsWith']('https://'))return _0x3561e3;const _0x51d054=_0x3561e3[_0x1e1c11(0x1bd)](/^\.\//,'');return _0x51d054[_0x1e1c11(0x175)]('/')?_0x51d054:'/'+_0x51d054;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x54174a){const _0x139347=_0x363c38;return Enhance[_0x139347(0x224)](_0x54174a);},'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 _0x430acd=_0x363c38;return Enhance2[_0x430acd(0x1a9)]();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x53bd1b=_0x17bf;(function(_0x3615,_0x5be152){const _0x36d800=_0x17bf,_0x371fe0=_0x3615();while(!![]){try{const _0x3acd04=parseInt(_0x36d800(0x111))/0x1*(parseInt(_0x36d800(0xa9))/0x2)+-parseInt(_0x36d800(0xb3))/0x3*(parseInt(_0x36d800(0xa4))/0x4)+-parseInt(_0x36d800(0x8d))/0x5+parseInt(_0x36d800(0x6f))/0x6*(-parseInt(_0x36d800(0xb2))/0x7)+parseInt(_0x36d800(0xfd))/0x8+-parseInt(_0x36d800(0xea))/0x9*(parseInt(_0x36d800(0x11f))/0xa)+parseInt(_0x36d800(0x76))/0xb;if(_0x3acd04===_0x5be152)break;else _0x371fe0['push'](_0x371fe0['shift']());}catch(_0x571b6f){_0x371fe0['push'](_0x371fe0['shift']());}}}(_0x426c,0x21a1e));var DEFAULT_OVERLAY_PATH=!![]?'https://assets-dev.enhancelabs.ai/overlay.js':_0x53bd1b(0x102),DEFAULT_BACKEND_URL=!![]?'https://enhance-api-dev.enhancelabs.workers.dev':'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x53bd1b(0xc9)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x469306){const _0x4e7d30=_0x53bd1b,_0x774262=_0x469306[_0x4e7d30(0xad)]??{};return{'callbackBypass':_0x469306[_0x4e7d30(0x83)]??[],'overlay':{'enabled':!![],'position':_0x4e7d30(0xce),'enableViteHmr':_0x774262[_0x4e7d30(0xcc)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x4e7d30(0xbe),'swPath':_0x4e7d30(0x66),'overlayPath':_0x774262['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x4e7d30(0x6a),'security':_0x774262[_0x4e7d30(0x97)]??'permissive','backendUrl':_0x774262[_0x4e7d30(0xf9)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x57e7af=_0x53bd1b;try{const _0x4313d7=new URLSearchParams(window[_0x57e7af(0xa3)][_0x57e7af(0xae)]);return _0x4313d7[_0x57e7af(0xb0)](_0x57e7af(0x110))?.[_0x57e7af(0x125)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x2c03ff){const _0x4ea805=_0x53bd1b;console[_0x4ea805(0xc9)](LOG_PREFIX+_0x4ea805(0x7e)),console['log'](LOG_PREFIX+_0x4ea805(0x9c)+_0x2c03ff[_0x4ea805(0xee)]),console['log'](LOG_PREFIX+_0x4ea805(0xe4)+_0x2c03ff[_0x4ea805(0x94)]),currentOptions=_0x2c03ff[_0x4ea805(0xdc)],toggleHandler=_0x2c03ff[_0x4ea805(0xfc)];if(overlayController){console['log'](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x4ea805(0xc9)](LOG_PREFIX+_0x4ea805(0x13a)),overlayLoadPromise;console[_0x4ea805(0xc9)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x2c03ff);try{await overlayLoadPromise,console[_0x4ea805(0xc9)](LOG_PREFIX+_0x4ea805(0xbf));}catch(_0xfdf814){console['error'](LOG_PREFIX+_0x4ea805(0x117),_0xfdf814);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x3e7315){const _0x2bc1c5=_0x53bd1b;console['log'](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x2bc1c5(0x132)){console['log'](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x2bc1c5(0xfe)]){console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0x93)),overlayController=window[_0x2bc1c5(0xfe)];return;}console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0x119));try{_0x3e7315['enableViteHmr']&&(console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0xc2)),await setupRemoteHMR(_0x3e7315[_0x2bc1c5(0xee)]));console[_0x2bc1c5(0xc9)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x3e7315['overlayPath']);const _0x25b1d9=Date[_0x2bc1c5(0xab)](),_0x4042ad=await import(_0x3e7315[_0x2bc1c5(0xee)]);console['log'](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date['now']()-_0x25b1d9)+'ms'),console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0xaa),Object[_0x2bc1c5(0x12d)](_0x4042ad));if(typeof _0x4042ad?.[_0x2bc1c5(0x80)]!==_0x2bc1c5(0x10c)){console[_0x2bc1c5(0x70)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x2bc1c5(0x70)](LOG_PREFIX+_0x2bc1c5(0x86),Object[_0x2bc1c5(0x12d)](_0x4042ad));return;}console[_0x2bc1c5(0xc9)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0x2532c2=_0x4042ad[_0x2bc1c5(0x80)]();console['log'](LOG_PREFIX+_0x2bc1c5(0xf3),_0x2532c2),overlayController=_0x2532c2,window[_0x2bc1c5(0xfe)]=_0x2532c2,_0x2532c2[_0x2bc1c5(0xfc)](_0x3e7315[_0x2bc1c5(0xfc)]),console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0xbc)),console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0x131)),updateOverlay();}catch(_0x220719){console['error'](LOG_PREFIX+_0x2bc1c5(0xa2),_0x220719);}}function updateOverlay(){const _0x155f99=_0x53bd1b;console[_0x155f99(0xc9)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x155f99(0xc9)](LOG_PREFIX+_0x155f99(0xac)+!!overlayController),console['log'](LOG_PREFIX+_0x155f99(0x98)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0x155f99(0x75));return;}const _0x4a9a73=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x155f99(0xcb),JSON[_0x155f99(0x136)](_0x4a9a73,null,0x2)),overlayController[_0x155f99(0xca)](_0x4a9a73),console['log'](LOG_PREFIX+_0x155f99(0x11b));}function composeOverlayState(_0x13ec9f){const _0x4338b0=_0x53bd1b,_0x5ef2aa=getEnhancementUrl();return console[_0x4338b0(0xc9)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementUrl:\x20'+_0x5ef2aa),console['log'](LOG_PREFIX+_0x4338b0(0xe8)+state['enabled']),console[_0x4338b0(0xc9)](LOG_PREFIX+_0x4338b0(0x81)+state['controlled']),{'enhancementUrl':_0x5ef2aa,'enabled':state['enabled'],'controlled':state['controlled'],'overlayPosition':_0x13ec9f['overlay'][_0x4338b0(0x77)],'securityMode':_0x13ec9f[_0x4338b0(0x97)],'backendBaseUrl':_0x13ec9f[_0x4338b0(0xf9)],'appError':state['appError']};}async function setupRemoteHMR(_0x5df988){const _0x335055=_0x53bd1b;console['log'](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x5df988);if(typeof window===_0x335055(0x132))return;try{const _0x32f1f0=new URL(_0x5df988,window[_0x335055(0xa3)]['origin']),_0x2053cf=_0x32f1f0[_0x335055(0x12b)];console['log'](LOG_PREFIX+_0x335055(0x88)+_0x2053cf+_0x335055(0x8e)+window[_0x335055(0xa3)][_0x335055(0x12b)]);if(_0x2053cf===window[_0x335055(0xa3)][_0x335055(0x12b)]){console[_0x335055(0xc9)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x335055(0xc9)](LOG_PREFIX+_0x335055(0x10a)),await ensureReactRefreshPreamble(_0x2053cf),await ensureViteClient(_0x2053cf),console[_0x335055(0xc9)](LOG_PREFIX+_0x335055(0xe9));}catch(_0x1b56cf){console[_0x335055(0x8a)](LOG_PREFIX+_0x335055(0xbd),_0x1b56cf);}}async function ensureReactRefreshPreamble(_0x5b0e55){const _0x155185=_0x53bd1b;window['__enhanceReactRefreshInstalledOrigins']??(window[_0x155185(0xd3)]=new Set());if(window[_0x155185(0xd3)][_0x155185(0xd0)](_0x5b0e55)){console[_0x155185(0xc9)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x5b0e55);return;}console['log'](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x5b0e55+_0x155185(0xda));const _0x128292=await import(_0x5b0e55+_0x155185(0x120)),_0x2fa1c0=_0x128292&&typeof _0x128292==='object'&&_0x155185(0x126)in _0x128292?_0x128292['default']:_0x128292;if(!isRefreshRuntime(_0x2fa1c0)){console[_0x155185(0x8a)](LOG_PREFIX+_0x155185(0x87));return;}_0x2fa1c0['injectIntoGlobalHook'](window),window[_0x155185(0x103)]=()=>{},window[_0x155185(0x104)]=()=>_0x487677=>_0x487677,window[_0x155185(0xf5)]=!![],window[_0x155185(0xd3)][_0x155185(0xdb)](_0x5b0e55),console[_0x155185(0xc9)](LOG_PREFIX+_0x155185(0x9a)+_0x5b0e55);}async function ensureViteClient(_0x42d66a){const _0x132351=_0x53bd1b;window[_0x132351(0x10b)]??(window[_0x132351(0x10b)]=new Set());if(window[_0x132351(0x10b)][_0x132351(0xd0)](_0x42d66a)){console[_0x132351(0xc9)](LOG_PREFIX+_0x132351(0xba)+_0x42d66a);return;}console['log'](LOG_PREFIX+_0x132351(0x133)+_0x42d66a+_0x132351(0xda)),await import(_0x42d66a+_0x132351(0x129)),window[_0x132351(0x10b)][_0x132351(0xdb)](_0x42d66a),console[_0x132351(0xc9)](LOG_PREFIX+_0x132351(0xb8)+_0x42d66a);}function isRefreshRuntime(_0x1b52a8){const _0x38d91a=_0x53bd1b;return typeof _0x1b52a8===_0x38d91a(0xd6)&&_0x1b52a8!==null&&_0x38d91a(0x6d)in _0x1b52a8&&typeof _0x1b52a8[_0x38d91a(0x6d)]===_0x38d91a(0x10c);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x53bd1b(0xf0),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x40fd82){const _0x57368f=_0x53bd1b;console[_0x57368f(0xc9)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console['log'](LOG_PREFIX2+'\x20swPath:\x20'+_0x40fd82[_0x57368f(0x7f)]);if(!(_0x57368f(0x128)in navigator)){console[_0x57368f(0x8a)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console['log'](LOG_PREFIX2+_0x57368f(0xed));const _0x1649d9=navigator[_0x57368f(0x128)][_0x57368f(0x95)];console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xbb),_0x1649d9?.[_0x57368f(0xb1)]??_0x57368f(0x84)),console[_0x57368f(0xc9)](LOG_PREFIX2+'\x20Controller\x20state:',_0x1649d9?.[_0x57368f(0x118)]??_0x57368f(0x112));const _0x35df7d=!!_0x1649d9;currentOptions2=_0x40fd82,console[_0x57368f(0xc9)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x106f70=await detectBlockingServiceWorker(_0x40fd82[_0x57368f(0x7f)]);if(_0x106f70){console['error'](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x106f70),console[_0x57368f(0x70)](LOG_PREFIX2+_0x57368f(0xc4));return;}console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xf8));try{console['log'](LOG_PREFIX2+_0x57368f(0x115)+_0x40fd82['swPath']+_0x57368f(0xc8)),registration=await navigator[_0x57368f(0x128)][_0x57368f(0x12a)](_0x40fd82[_0x57368f(0x7f)],{'scope':'/'}),console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0x139),{'scope':registration[_0x57368f(0x137)],'active':registration[_0x57368f(0xff)]?.['scriptURL'],'waiting':registration[_0x57368f(0xe3)]?.[_0x57368f(0xb1)],'installing':registration[_0x57368f(0xb6)]?.['scriptURL']}),console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xf7));const _0x890f21=await navigator['serviceWorker'][_0x57368f(0x127)];console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0x8b),_0x890f21['active']?.['scriptURL']);const _0x3bc36a=ownsCurrentController(_0x40fd82[_0x57368f(0x7f)]);state[_0x57368f(0x96)]=_0x3bc36a,console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xb4)+_0x3bc36a),console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0x11d),navigator[_0x57368f(0x128)][_0x57368f(0x95)]?.['scriptURL']??_0x57368f(0x84));if(!_0x35df7d&&!navigator[_0x57368f(0x128)]['controller']){console['log'](LOG_PREFIX2+_0x57368f(0x101)),window['location'][_0x57368f(0x106)]();return;}console['log'](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x57368f(0x7d)]){const _0xc16d3c=document[_0x57368f(0xf2)](_0x57368f(0x82))!==null;console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xb7)+_0xc16d3c);if(!_0xc16d3c){console['log'](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0x57368f(0xa3)][_0x57368f(0x106)]();return;}}console['log'](LOG_PREFIX2+_0x57368f(0xe1)),updateOverlay(),console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xd7));}catch(_0x53a4e8){console[_0x57368f(0x70)](LOG_PREFIX2+_0x57368f(0xc7),_0x53a4e8);}}async function sendConfiguration(){const _0x15e74d=_0x53bd1b;console[_0x15e74d(0xc9)](LOG_PREFIX2+_0x15e74d(0xdd)),console[_0x15e74d(0xc9)](LOG_PREFIX2+'\x20state.enabled:\x20'+state[_0x15e74d(0x7d)]+_0x15e74d(0x72)+!!currentOptions2);if(!state[_0x15e74d(0x7d)]||!currentOptions2){console[_0x15e74d(0xc9)](LOG_PREFIX2+_0x15e74d(0xfa));return;}const _0x1304bd=await resolveWorker();if(!_0x1304bd){console['warn'](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x4c5bc3={'callbackBypass':currentOptions2[_0x15e74d(0x83)],'securityMode':currentOptions2[_0x15e74d(0x97)]};console[_0x15e74d(0xc9)](LOG_PREFIX2+_0x15e74d(0xef),JSON[_0x15e74d(0x136)](_0x4c5bc3,null,0x2)),_0x1304bd[_0x15e74d(0xc0)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x4c5bc3}),console[_0x15e74d(0xc9)](LOG_PREFIX2+_0x15e74d(0x68));}async function unregisterServiceWorker(_0x8f28e6){const _0x19e690=_0x53bd1b;console[_0x19e690(0xc9)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x19e690(0x128)in navigator)){console[_0x19e690(0xc9)](LOG_PREFIX2+_0x19e690(0x7b));return;}try{const _0x38a14f=registration??await navigator['serviceWorker']['getRegistration']('/');if(!_0x38a14f){console[_0x19e690(0xc9)](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0x19e690(0xc9)](LOG_PREFIX2+_0x19e690(0x10f),{'scope':_0x38a14f['scope'],'active':_0x38a14f[_0x19e690(0xff)]?.[_0x19e690(0xb1)],'waiting':_0x38a14f[_0x19e690(0xe3)]?.['scriptURL'],'installing':_0x38a14f[_0x19e690(0xb6)]?.[_0x19e690(0xb1)]});const _0x5d591a=[_0x38a14f['active']?.[_0x19e690(0xb1)],_0x38a14f['waiting']?.[_0x19e690(0xb1)],_0x38a14f[_0x19e690(0xb6)]?.[_0x19e690(0xb1)]],_0x58d9a3=_0x5d591a[_0x19e690(0x6e)](_0x439180=>_0x439180&&ownsServiceWorker(_0x439180,_0x8f28e6));if(!_0x58d9a3){console[_0x19e690(0xc9)](LOG_PREFIX2+_0x19e690(0xde));return;}_0x38a14f[_0x19e690(0xff)]&&(console[_0x19e690(0xc9)](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x38a14f[_0x19e690(0xff)][_0x19e690(0xc0)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x19e690(0x11e)),await _0x38a14f[_0x19e690(0xe6)](),registration=null,currentOptions2=null,console[_0x19e690(0xc9)](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x1407ac){console['error'](LOG_PREFIX2+_0x19e690(0x114),_0x1407ac);}}function ownsServiceWorker(_0x5676a4,_0x3fe998){const _0x44b6fc=_0x53bd1b,_0x56631e=typeof window!=='undefined'?window[_0x44b6fc(0xa3)][_0x44b6fc(0x12b)]:'',_0xd53524=new URL(_0x3fe998,_0x56631e||void 0x0)['href'],_0xde1c72=_0x5676a4===_0xd53524||_0x5676a4[_0x44b6fc(0x130)]('sw-enhance');return console[_0x44b6fc(0xc9)](LOG_PREFIX2+_0x44b6fc(0xcf)+_0x5676a4+_0x44b6fc(0xe2)+_0xd53524+_0x44b6fc(0x121)+_0xde1c72),_0xde1c72;}function ownsCurrentController(_0x4ba773){const _0x187f1e=_0x53bd1b;if(typeof navigator===_0x187f1e(0x132))return![];const _0x1f4925=navigator[_0x187f1e(0x128)]?.[_0x187f1e(0x95)];if(!_0x1f4925)return console[_0x187f1e(0xc9)](LOG_PREFIX2+_0x187f1e(0x100)),![];return ownsServiceWorker(_0x1f4925[_0x187f1e(0xb1)],_0x4ba773);}async function detectBlockingServiceWorker(_0x304748){const _0x9580da=_0x53bd1b;if(!navigator[_0x9580da(0x128)])return null;try{const _0x1eec05=await navigator[_0x9580da(0x128)]['getRegistration']('/');console[_0x9580da(0xc9)](LOG_PREFIX2+_0x9580da(0xd1),_0x1eec05?.['active']?.[_0x9580da(0xb1)]??'none');const _0x301ede=_0x1eec05?.[_0x9580da(0xff)]?.[_0x9580da(0xb1)];if(!_0x301ede)return null;if(ownsServiceWorker(_0x301ede,_0x304748))return null;return _0x301ede;}catch(_0x353cc6){return console[_0x9580da(0x70)](LOG_PREFIX2+_0x9580da(0xe5),_0x353cc6),null;}}async function resolveWorker(){const _0x450af6=_0x53bd1b,_0x4a1f9f=registration??await navigator[_0x450af6(0x128)]?.[_0x450af6(0x122)]('/'),_0x38ed79=_0x4a1f9f?.[_0x450af6(0xff)]??_0x4a1f9f?.['waiting']??_0x4a1f9f?.[_0x450af6(0xb6)]??null;return console[_0x450af6(0xc9)](LOG_PREFIX2+_0x450af6(0x134),_0x38ed79?.[_0x450af6(0xb1)]??_0x450af6(0x84),_0x450af6(0x116)+(_0x38ed79?.[_0x450af6(0x118)]??_0x450af6(0x112))),_0x38ed79;}var LOG_PREFIX3=_0x53bd1b(0xa6);function _0x17bf(_0x34661d,_0x11bec8){_0x34661d=_0x34661d-0x66;const _0x426c0d=_0x426c();let _0x17bf39=_0x426c0d[_0x34661d];return _0x17bf39;}function isInitialized(){const _0xbad604=_0x53bd1b;return typeof window!==_0xbad604(0x132)&&window[_0xbad604(0xa0)]===!![];}function setInitialized(_0x16b8cd){const _0x3a5dd2=_0x53bd1b;typeof window!=='undefined'&&(window[_0x3a5dd2(0xa0)]=_0x16b8cd);}function getOptions(){const _0x2c5a9f=_0x53bd1b;return typeof window!==_0x2c5a9f(0x132)?window['__enhanceOptions']??null:null;}function setOptions(_0x23a499){const _0xb853a2=_0x53bd1b;typeof window!==_0xb853a2(0x132)&&(window[_0xb853a2(0x9d)]=_0x23a499);}var Enhance={'init'(_0x3bf89b={}){const _0x1308e8=_0x53bd1b,_0x36705a=Date['now']();console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x12e)+_0x36705a),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0xc6)+window[_0x1308e8(0xa3)][_0x1308e8(0xb5)]),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x8c)+document[_0x1308e8(0xa1)]),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0xdf),JSON[_0x1308e8(0x136)](_0x3bf89b,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x1308e8(0x11a)),window[_0x1308e8(0x11c)]??createController();setInitialized(!![]),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0xf6));const _0x3da11a=normalizeOptions(_0x3bf89b);setOptions(_0x3da11a),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0xd8),JSON[_0x1308e8(0x136)](_0x3da11a,null,0x2));const _0x52298c=parseUrlParams();console[_0x1308e8(0xc9)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x1308e8(0x136)](_0x52298c,null,0x2));if(_0x52298c['explicitDisable'])return cleanUrlParam(_0x1308e8(0x12f)),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x67)),createController();if(_0x52298c[_0x1308e8(0x135)])return console['log'](LOG_PREFIX3+_0x1308e8(0xe7)),console['log'](LOG_PREFIX3+'\x20enhancementUrl:\x20'+_0x52298c['enhancementUrl']),console[_0x1308e8(0xc9)](LOG_PREFIX3+'\x20enhancementId:\x20'+_0x52298c[_0x1308e8(0xeb)]),state[_0x1308e8(0x7d)]=!![],console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x105)),void loadOverlay({'overlayPath':_0x3da11a[_0x1308e8(0xee)],'enableViteHmr':_0x3da11a['overlay'][_0x1308e8(0x94)],'options':_0x3da11a,'onToggle':handleToggle}),console[_0x1308e8(0xc9)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x3da11a),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x10e)),createController();return console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x6b)),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x124)),void unregisterServiceWorker(_0x3da11a[_0x1308e8(0x7f)]),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0xd2)),import.meta.hot&&(console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x108)),import.meta.hot['on'](_0x1308e8(0xcd),_0x20f5e3=>{const _0x5e1040=_0x1308e8;console['log'](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x20f5e3),state[_0x5e1040(0x91)]={'message':_0x20f5e3[_0x5e1040(0xc3)][_0x5e1040(0xd4)]},updateOverlay();}),import.meta.hot['on'](_0x1308e8(0x99),()=>{const _0x1f6f9e=_0x1308e8;state[_0x1f6f9e(0x91)]&&(console[_0x1f6f9e(0xc9)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state[_0x1f6f9e(0x91)]=null,updateOverlay());})),createController();}};function createController(){const _0x397c12={'enable'(){const _0x24f744=_0x17bf,_0x5c8b96=getOptions();if(!_0x5c8b96)return;state[_0x24f744(0x7d)]=!![],void loadOverlay({'overlayPath':_0x5c8b96[_0x24f744(0xee)],'enableViteHmr':_0x5c8b96[_0x24f744(0x123)]['enableViteHmr'],'options':_0x5c8b96,'onToggle':handleToggle}),void registerServiceWorker(_0x5c8b96),void sendConfiguration(),updateOverlay();},'disable'(){const _0x2996a6=_0x17bf,_0xec0bf=getOptions();if(!_0xec0bf)return;state[_0x2996a6(0x7d)]=![],state[_0x2996a6(0x96)]=![],updateOverlay(),void unregisterServiceWorker(_0xec0bf['swPath']);},'status'(){const _0x166a69=_0x17bf;return{'enabled':state[_0x166a69(0x7d)],'controlled':state[_0x166a69(0x96)]};}};return typeof window!=='undefined'&&(window['__enhanceController']=_0x397c12),_0x397c12;}function handleToggle(){const _0x23800d=_0x53bd1b,_0xd8f3b2=createController();state[_0x23800d(0x7d)]?_0xd8f3b2['disable']():_0xd8f3b2['enable']();}function parseUrlParams(){const _0x1cd01f=_0x53bd1b,_0x4967ec=new URL(window['location'][_0x1cd01f(0xb5)]),_0x3bd9f0=_0x4967ec[_0x1cd01f(0xd5)]['get'](_0x1cd01f(0x12f))?.[_0x1cd01f(0x9e)](),_0x44c2c8=_0x4967ec[_0x1cd01f(0xd5)][_0x1cd01f(0xb0)]('enhancementUrl'),_0x2882b1=_0x4967ec[_0x1cd01f(0xd5)][_0x1cd01f(0xb0)](_0x1cd01f(0x71));return{'hasEnhancement':Boolean(_0x44c2c8||_0x2882b1),'explicitDisable':_0x3bd9f0==='0'||_0x3bd9f0===_0x1cd01f(0xf4)||_0x3bd9f0===_0x1cd01f(0x85),'enhancementUrl':_0x44c2c8,'enhancementId':_0x2882b1};}function _0x426c(){const _0x314ac5=['$RefreshSig$','\x20Starting\x20overlay\x20load\x20(async)...','reload','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','__viteHMRLoaded','function','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20Found\x20registration:','enhancementUrl','1GHlyup','N/A','runtimeURL','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20Registering\x20SW\x20at\x20','state:\x20','\x20loadOverlay()\x20failed:','state','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Overlay\x20update\x20complete','__enhanceController','\x20Current\x20controller\x20after\x20ready:','\x20Unregistering\x20SW...','10WSicaf','/@react-refresh',',\x20owns=','getRegistration','overlay','\x20Unregistering\x20any\x20existing\x20SW...','trim','default','ready','serviceWorker','/@vite/client','register','origin','./dev/vite/index.d.ts','keys','\x20init()\x20called\x20at\x20','enhance','includes','\x20Calling\x20updateOverlay()...','undefined','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20resolveWorker:','hasEnhancement','stringify','scope','^11.1.0','\x20Registration\x20returned:','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','/sw-enhance.js','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20Config\x20sent\x20to\x20SW','version','/assets/enhance-runtime.js','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','^7.2.4','injectIntoGlobalHook','some','1110JfCKMJ','error','enhancement',',\x20currentOptions:\x20','module','tsc\x20--noEmit','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','6512880NxbHXV','position','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev/','0.0.0','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','0.3.20','enabled','\x20loadOverlay()\x20called','swPath','createOverlay','\x20composeOverlayState\x20-\x20state.controlled:\x20','[data-enhance-runtime-bootstrap]','callbackBypass','none','off','\x20Available\x20exports:','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Overlay\x20origin:\x20','toString','warn','\x20SW\x20ready!\x20Active:','\x20Document\x20readyState:\x20','899365gupKmS',',\x20page\x20origin:\x20','startsWith','MIT','appError','./dev/index.js','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','enableViteHmr','controller','controlled','security','\x20currentOptions\x20exists:\x20','vite:beforeUpdate','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','./dev/vite/index.js','\x20overlayPath:\x20','__enhanceOptions','toLowerCase','bun\x20version\x20patch\x20--no-git-tag-version','__enhanceInitialized','readyState','\x20Failed\x20to\x20import/create\x20overlay:','location','22884mvZikp','title','[Enhance\x20Runtime]','^3.22.4','^24.10.1','12962VfUAAR','\x20Module\x20exports:','now','\x20overlayController\x20exists:\x20','__development','search','history','get','scriptURL','8841tyBZIi','3KpMNNL','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','href','installing','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Current\x20controller:','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','info','\x20loadOverlay()\x20complete','postMessage','./dev/index.d.ts','\x20Setting\x20up\x20remote\x20HMR...','err','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','serviceWorkerURL','\x20Current\x20URL:\x20','\x20Failed\x20to\x20register\x20service\x20worker:','\x20with\x20scope\x20\x27/\x27...','log','update','\x20Updating\x20overlay\x20with\x20state:','enableOverlayHmr','vite:error','bottom-right','\x20ownsServiceWorker?\x20scriptURL=','has','\x20detectBlocking\x20-\x20existing\x20registration:','\x20init()\x20complete\x20-\x20normal\x20mode','__enhanceReactRefreshInstalledOrigins','message','searchParams','object','\x20registerServiceWorker()\x20complete','\x20Normalized\x20options:','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','...','add','options','\x20sendConfiguration()\x20called','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Raw\x20options:','replaceState','\x20Updating\x20overlay...',',\x20expected=','waiting','\x20enableViteHmr:\x20','\x20detectBlocking\x20error:','unregister','\x20Enhancement\x20mode\x20ENABLED','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20HMR\x20setup\x20complete','2422638WYVPvI','enhancementId','./dev/cli.js','\x20Service\x20workers\x20supported','overlayPath','\x20Sending\x20customer\x20config\x20to\x20SW:','enhance:disable','string','querySelector','\x20Controller\x20created:','false','__vite_plugin_react_preamble_installed__','\x20First\x20initialization','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20No\x20blocking\x20SW\x20found','backendUrl','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','init','onToggle','1821024ghjiVr','__enhanceOverlay','active','\x20No\x20current\x20controller','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','https://assets.enhancelabs.ai/overlay.js','$RefreshReg$'];_0x426c=function(){return _0x314ac5;};return _0x426c();}function cleanUrlParam(_0x8c39e){const _0x1dbacf=_0x53bd1b,_0x2ad2d8=new URL(window[_0x1dbacf(0xa3)][_0x1dbacf(0xb5)]);_0x2ad2d8['searchParams']['has'](_0x8c39e)&&(_0x2ad2d8[_0x1dbacf(0xd5)]['delete'](_0x8c39e),window[_0x1dbacf(0xaf)][_0x1dbacf(0xe0)](null,document[_0x1dbacf(0xa5)],_0x2ad2d8[_0x1dbacf(0x89)]()));}var package_default={'name':'@enhance-eng/sandbox','version':_0x53bd1b(0x7c),'type':_0x53bd1b(0x73),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x53bd1b(0x90),'main':_0x53bd1b(0x92),'module':_0x53bd1b(0x92),'types':_0x53bd1b(0xc1),'exports':{'.':{'types':_0x53bd1b(0xc1),'import':'./dev/index.js'},'./vite':{'types':_0x53bd1b(0x12c),'import':_0x53bd1b(0x9b)}},'files':[_0x53bd1b(0x79)],'bin':{'enhance-sandbox':_0x53bd1b(0xec)},'scripts':{'typecheck':_0x53bd1b(0x74),'dev':_0x53bd1b(0x107),'dev:build':_0x53bd1b(0x78),'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':_0x53bd1b(0x10d),'build':_0x53bd1b(0x109),'build:release':_0x53bd1b(0xb9),'build:release:dev':_0x53bd1b(0xd9),'version':_0x53bd1b(0x9f)},'dependencies':{'commander':_0x53bd1b(0x138),'zod':_0x53bd1b(0xa7)},'devDependencies':{'@types/node':_0x53bd1b(0xa8),'javascript-obfuscator':'^4.1.1','tsup':'^8.5.1','vite':_0x53bd1b(0x6c)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x53bd1b(0x6a),PACKAGE_VERSION=typeof package_default[_0x53bd1b(0x69)]===_0x53bd1b(0xf1)?package_default[_0x53bd1b(0x69)]:_0x53bd1b(0x7a);function normalizeAssetPath(_0x1a9cb3){const _0x1cb12f=_0x53bd1b;if(!_0x1a9cb3)return _0x1a9cb3;if(_0x1a9cb3[_0x1cb12f(0x8f)]('http://')||_0x1a9cb3[_0x1cb12f(0x8f)]('https://'))return _0x1a9cb3;const _0x283272=_0x1a9cb3['replace'](/^\.\//,'');return _0x283272[_0x1cb12f(0x8f)]('/')?_0x283272:'/'+_0x283272;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x4ec605={}){const _0x3c6b27=_0x53bd1b;return Enhance[_0x3c6b27(0xfb)](_0x4ec605);},'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 _0x1cbd28=_0x53bd1b;return Enhance2[_0x1cbd28(0xc5)]();}function runtimeURL(){const _0x71aee3=_0x53bd1b;return Enhance2[_0x71aee3(0x113)]();}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 _0x37150b=_0x4a33;(function(_0x1eefd2,_0x29976d){const _0x4d087e=_0x4a33,_0x3138cf=_0x1eefd2();while(!![]){try{const _0x89936d=parseInt(_0x4d087e(0x16c))/0x1+-parseInt(_0x4d087e(0x1d8))/0x2*(-parseInt(_0x4d087e(0x22a))/0x3)+parseInt(_0x4d087e(0x21e))/0x4*(-parseInt(_0x4d087e(0x1ad))/0x5)+-parseInt(_0x4d087e(0x189))/0x6*(-parseInt(_0x4d087e(0x147))/0x7)+-parseInt(_0x4d087e(0x1f2))/0x8*(parseInt(_0x4d087e(0x1ee))/0x9)+-parseInt(_0x4d087e(0x20f))/0xa+parseInt(_0x4d087e(0x209))/0xb;if(_0x89936d===_0x29976d)break;else _0x3138cf['push'](_0x3138cf['shift']());}catch(_0x35c0c7){_0x3138cf['push'](_0x3138cf['shift']());}}}(_0xd396,0x77085));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x37150b(0x1f6)?__ENHANCE_DEFAULT_OVERLAY_PATH__:'https://assets.enhancelabs.ai/overlay.js',DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x37150b(0x1f6)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x37150b(0x17c),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x37150b(0x1f6)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x37150b(0x160)](_0x37150b(0x20b),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x2a5664){const _0x261374=_0x37150b,_0x280777=_0x2a5664[_0x261374(0x1a2)]??{};return{'callbackBypass':_0x2a5664[_0x261374(0x229)]??[],'overlay':{'enabled':!![],'position':_0x261374(0x1fc),'enableViteHmr':_0x280777['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x261374(0x1ef),'overlayPath':_0x280777[_0x261374(0x22f)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x261374(0x1bf),'security':_0x280777[_0x261374(0x1c9)]??_0x261374(0x1bb),'backendUrl':_0x280777[_0x261374(0x1f3)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x368044=_0x37150b;try{const _0x36cbac=new URLSearchParams(window[_0x368044(0x180)][_0x368044(0x20d)]);return _0x36cbac[_0x368044(0x14c)](_0x368044(0x1d2))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x37150b(0x142),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0xe65782){const _0x31a697=_0x37150b;console[_0x31a697(0x160)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x31a697(0x160)](LOG_PREFIX+_0x31a697(0x199)+_0xe65782['overlayPath']),console[_0x31a697(0x160)](LOG_PREFIX+_0x31a697(0x215)+_0xe65782[_0x31a697(0x20c)]),currentOptions=_0xe65782[_0x31a697(0x227)],toggleHandler=_0xe65782['onToggle'];if(overlayController){console[_0x31a697(0x160)](LOG_PREFIX+_0x31a697(0x1c0)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x31a697(0x160)](LOG_PREFIX+_0x31a697(0x14a)),overlayLoadPromise;console['log'](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0xe65782);try{await overlayLoadPromise,console[_0x31a697(0x160)](LOG_PREFIX+_0x31a697(0x177));}catch(_0x3116bc){console['error'](LOG_PREFIX+_0x31a697(0x1eb),_0x3116bc);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x361a2e){const _0x54ffce=_0x37150b;console[_0x54ffce(0x160)](LOG_PREFIX+_0x54ffce(0x1bc));if(typeof window==='undefined'){console[_0x54ffce(0x160)](LOG_PREFIX+_0x54ffce(0x21d));return;}if(window[_0x54ffce(0x225)]){console[_0x54ffce(0x160)](LOG_PREFIX+_0x54ffce(0x192)),overlayController=window[_0x54ffce(0x225)];return;}console[_0x54ffce(0x160)](LOG_PREFIX+_0x54ffce(0x1a4));try{_0x361a2e[_0x54ffce(0x20c)]&&(console[_0x54ffce(0x160)](LOG_PREFIX+_0x54ffce(0x19a)),await setupRemoteHMR(_0x361a2e[_0x54ffce(0x22f)]));console[_0x54ffce(0x160)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x361a2e[_0x54ffce(0x22f)]);const _0x186d8b=Date[_0x54ffce(0x169)](),_0x35d024=await import(_0x361a2e['overlayPath']);console[_0x54ffce(0x160)](LOG_PREFIX+_0x54ffce(0x23a)+(Date[_0x54ffce(0x169)]()-_0x186d8b)+'ms'),console[_0x54ffce(0x160)](LOG_PREFIX+_0x54ffce(0x19b),Object[_0x54ffce(0x140)](_0x35d024));if(typeof _0x35d024?.['createOverlay']!==_0x54ffce(0x222)){console['error'](LOG_PREFIX+_0x54ffce(0x1be)),console[_0x54ffce(0x1fd)](LOG_PREFIX+'\x20Available\x20exports:',Object['keys'](_0x35d024));return;}console['log'](LOG_PREFIX+_0x54ffce(0x23b));const _0xbfe95a=_0x35d024[_0x54ffce(0x170)]();console[_0x54ffce(0x160)](LOG_PREFIX+'\x20Controller\x20created:',_0xbfe95a),overlayController=_0xbfe95a,window['__enhanceOverlay']=_0xbfe95a,_0xbfe95a[_0x54ffce(0x218)](_0x361a2e[_0x54ffce(0x218)]),console[_0x54ffce(0x160)](LOG_PREFIX+_0x54ffce(0x17f)),console[_0x54ffce(0x160)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x8c7874){console[_0x54ffce(0x1fd)](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x8c7874);}}function updateOverlay(){const _0x33840f=_0x37150b;console['log'](LOG_PREFIX+_0x33840f(0x1d9)),console[_0x33840f(0x160)](LOG_PREFIX+_0x33840f(0x1c5)+!!overlayController),console[_0x33840f(0x160)](LOG_PREFIX+_0x33840f(0x1c8)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0x33840f(0x13f));return;}const _0x324cf5=composeOverlayState(currentOptions);console[_0x33840f(0x160)](LOG_PREFIX+_0x33840f(0x205),JSON['stringify'](_0x324cf5,null,0x2)),overlayController[_0x33840f(0x148)](_0x324cf5),console[_0x33840f(0x160)](LOG_PREFIX+_0x33840f(0x1f0));}function composeOverlayState(_0x315215){const _0x535683=_0x37150b,_0x30989e=getEnhancementUrl();return console['log'](LOG_PREFIX+_0x535683(0x188)+_0x30989e),console['log'](LOG_PREFIX+_0x535683(0x217)+state[_0x535683(0x1e6)]),console[_0x535683(0x160)](LOG_PREFIX+_0x535683(0x223)+state[_0x535683(0x235)]),{'enhancementUrl':_0x30989e,'enabled':state[_0x535683(0x1e6)],'controlled':state[_0x535683(0x235)],'overlayPosition':_0x315215[_0x535683(0x22e)][_0x535683(0x22b)],'securityMode':_0x315215[_0x535683(0x1c9)],'backendBaseUrl':_0x315215[_0x535683(0x1f3)],'appError':state[_0x535683(0x221)]};}async function setupRemoteHMR(_0x3ce320){const _0x4c3023=_0x37150b;console[_0x4c3023(0x160)](LOG_PREFIX+_0x4c3023(0x1df)+_0x3ce320);if(typeof window===_0x4c3023(0x1f6))return;try{const _0x17181b=new URL(_0x3ce320,window[_0x4c3023(0x180)][_0x4c3023(0x1cc)]),_0x57fdc9=_0x17181b['origin'];console['log'](LOG_PREFIX+_0x4c3023(0x208)+_0x57fdc9+_0x4c3023(0x158)+window[_0x4c3023(0x180)][_0x4c3023(0x1cc)]);if(_0x57fdc9===window[_0x4c3023(0x180)][_0x4c3023(0x1cc)]){console[_0x4c3023(0x160)](LOG_PREFIX+_0x4c3023(0x16b));return;}console['log'](LOG_PREFIX+_0x4c3023(0x16a)),await ensureReactRefreshPreamble(_0x57fdc9),await ensureViteClient(_0x57fdc9),console['log'](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x1143e2){console[_0x4c3023(0x1e7)](LOG_PREFIX+_0x4c3023(0x1ba),_0x1143e2);}}async function ensureReactRefreshPreamble(_0x30f289){const _0x3f8b3d=_0x37150b;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x3f8b3d(0x18a)][_0x3f8b3d(0x1ea)](_0x30f289)){console['log'](LOG_PREFIX+_0x3f8b3d(0x1e4)+_0x30f289);return;}console[_0x3f8b3d(0x160)](LOG_PREFIX+_0x3f8b3d(0x18d)+_0x30f289+'...');const _0x375001=await import(_0x30f289+_0x3f8b3d(0x173)),_0x26e083=_0x375001&&typeof _0x375001===_0x3f8b3d(0x1ab)&&_0x3f8b3d(0x210)in _0x375001?_0x375001[_0x3f8b3d(0x210)]:_0x375001;if(!isRefreshRuntime(_0x26e083)){console[_0x3f8b3d(0x1e7)](LOG_PREFIX+_0x3f8b3d(0x1db));return;}_0x26e083[_0x3f8b3d(0x1a0)](window),window[_0x3f8b3d(0x1af)]=()=>{},window[_0x3f8b3d(0x1de)]=()=>_0x3078e7=>_0x3078e7,window[_0x3f8b3d(0x1ec)]=!![],window[_0x3f8b3d(0x18a)][_0x3f8b3d(0x153)](_0x30f289),console[_0x3f8b3d(0x160)](LOG_PREFIX+_0x3f8b3d(0x1b5)+_0x30f289);}async function ensureViteClient(_0x5c5fdd){const _0x366b12=_0x37150b;window[_0x366b12(0x178)]??=new Set();if(window[_0x366b12(0x178)][_0x366b12(0x1ea)](_0x5c5fdd)){console['log'](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x5c5fdd);return;}console[_0x366b12(0x160)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x5c5fdd+_0x366b12(0x149)),await import(_0x5c5fdd+_0x366b12(0x198)),window[_0x366b12(0x178)][_0x366b12(0x153)](_0x5c5fdd),console[_0x366b12(0x160)](LOG_PREFIX+_0x366b12(0x1d6)+_0x5c5fdd);}function isRefreshRuntime(_0x1009a9){const _0x4c1a1c=_0x37150b;return typeof _0x1009a9===_0x4c1a1c(0x1ab)&&_0x1009a9!==null&&_0x4c1a1c(0x1a0)in _0x1009a9&&typeof _0x1009a9['injectIntoGlobalHook']===_0x4c1a1c(0x222);}var WORKER_MESSAGE_CONFIG=_0x37150b(0x230),WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2=_0x37150b(0x204),registration=null,currentOptions2=null;async function registerServiceWorker(_0x4d72fc){const _0x1ff72f=_0x37150b;console[_0x1ff72f(0x160)](LOG_PREFIX2+_0x1ff72f(0x1ae)),console['log'](LOG_PREFIX2+_0x1ff72f(0x15d)+_0x4d72fc[_0x1ff72f(0x15a)]);if(!(_0x1ff72f(0x1b8)in navigator)){console[_0x1ff72f(0x1e7)](LOG_PREFIX2+_0x1ff72f(0x1dd));return;}console[_0x1ff72f(0x160)](LOG_PREFIX2+_0x1ff72f(0x141));const _0x1a4d0e=navigator[_0x1ff72f(0x1b8)][_0x1ff72f(0x213)];console[_0x1ff72f(0x160)](LOG_PREFIX2+_0x1ff72f(0x203),_0x1a4d0e?.[_0x1ff72f(0x19c)]??_0x1ff72f(0x16e)),console[_0x1ff72f(0x160)](LOG_PREFIX2+_0x1ff72f(0x168),_0x1a4d0e?.[_0x1ff72f(0x20e)]??_0x1ff72f(0x21b));const _0x38e264=!!_0x1a4d0e;currentOptions2=_0x4d72fc,console[_0x1ff72f(0x160)](LOG_PREFIX2+_0x1ff72f(0x1b2));const _0x1989b2=await detectBlockingServiceWorker(_0x4d72fc['swPath']);if(_0x1989b2){console[_0x1ff72f(0x1fd)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x1989b2),console[_0x1ff72f(0x1fd)](LOG_PREFIX2+_0x1ff72f(0x21c));return;}console[_0x1ff72f(0x160)](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x1ff72f(0x160)](LOG_PREFIX2+_0x1ff72f(0x21f)+_0x4d72fc[_0x1ff72f(0x15a)]+_0x1ff72f(0x1e8)),registration=await navigator['serviceWorker']['register'](_0x4d72fc[_0x1ff72f(0x15a)],{'scope':'/'}),console[_0x1ff72f(0x160)](LOG_PREFIX2+_0x1ff72f(0x1e0),{'scope':registration[_0x1ff72f(0x1ca)],'active':registration[_0x1ff72f(0x187)]?.[_0x1ff72f(0x19c)],'waiting':registration['waiting']?.[_0x1ff72f(0x19c)],'installing':registration[_0x1ff72f(0x184)]?.['scriptURL']}),console[_0x1ff72f(0x160)](LOG_PREFIX2+_0x1ff72f(0x15c));const _0xd2e93d=await navigator[_0x1ff72f(0x1b8)][_0x1ff72f(0x166)];console[_0x1ff72f(0x160)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0xd2e93d[_0x1ff72f(0x187)]?.['scriptURL']);const _0x40cb0b=ownsCurrentController(_0x4d72fc['swPath']);state[_0x1ff72f(0x235)]=_0x40cb0b,console['log'](LOG_PREFIX2+_0x1ff72f(0x1f9)+_0x40cb0b),console[_0x1ff72f(0x160)](LOG_PREFIX2+'\x20Current\x20controller\x20after\x20ready:',navigator[_0x1ff72f(0x1b8)][_0x1ff72f(0x213)]?.[_0x1ff72f(0x19c)]??_0x1ff72f(0x16e));if(!_0x38e264&&!navigator['serviceWorker'][_0x1ff72f(0x213)]){console[_0x1ff72f(0x160)](LOG_PREFIX2+_0x1ff72f(0x150)),window[_0x1ff72f(0x180)][_0x1ff72f(0x159)]();return;}console['log'](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x1ff72f(0x1e6)]){const _0xc398cf=document[_0x1ff72f(0x234)](_0x1ff72f(0x22d))!==null;console[_0x1ff72f(0x160)](LOG_PREFIX2+_0x1ff72f(0x176)+_0xc398cf);if(!_0xc398cf){console[_0x1ff72f(0x160)](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0x1ff72f(0x180)][_0x1ff72f(0x159)]();return;}}console[_0x1ff72f(0x160)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console[_0x1ff72f(0x160)](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x14f23b){console[_0x1ff72f(0x1fd)](LOG_PREFIX2+_0x1ff72f(0x162),_0x14f23b);}}async function sendConfiguration(){const _0x34d4e0=_0x37150b;console[_0x34d4e0(0x160)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0x34d4e0(0x160)](LOG_PREFIX2+'\x20state.enabled:\x20'+state[_0x34d4e0(0x1e6)]+_0x34d4e0(0x165)+!!currentOptions2);if(!state[_0x34d4e0(0x1e6)]||!currentOptions2){console[_0x34d4e0(0x160)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x657956=await resolveWorker();if(!_0x657956){console['warn'](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x2e2cad={'callbackBypass':currentOptions2[_0x34d4e0(0x229)],'securityMode':currentOptions2['security']};console[_0x34d4e0(0x160)](LOG_PREFIX2+'\x20Sending\x20customer\x20config\x20to\x20SW:',JSON[_0x34d4e0(0x191)](_0x2e2cad,null,0x2)),_0x657956[_0x34d4e0(0x146)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x2e2cad}),console[_0x34d4e0(0x160)](LOG_PREFIX2+_0x34d4e0(0x1f5));}async function unregisterServiceWorker(_0x4970cb){const _0x2d06a2=_0x37150b;console[_0x2d06a2(0x160)](LOG_PREFIX2+_0x2d06a2(0x181));if(!('serviceWorker'in navigator)){console[_0x2d06a2(0x160)](LOG_PREFIX2+_0x2d06a2(0x1e2));return;}try{const _0x4f2f79=registration??await navigator[_0x2d06a2(0x1b8)]['getRegistration']('/');if(!_0x4f2f79){console[_0x2d06a2(0x160)](LOG_PREFIX2+_0x2d06a2(0x183));return;}console[_0x2d06a2(0x160)](LOG_PREFIX2+_0x2d06a2(0x163),{'scope':_0x4f2f79[_0x2d06a2(0x1ca)],'active':_0x4f2f79[_0x2d06a2(0x187)]?.[_0x2d06a2(0x19c)],'waiting':_0x4f2f79['waiting']?.['scriptURL'],'installing':_0x4f2f79[_0x2d06a2(0x184)]?.['scriptURL']});const _0x53b9d5=[_0x4f2f79[_0x2d06a2(0x187)]?.[_0x2d06a2(0x19c)],_0x4f2f79[_0x2d06a2(0x1f1)]?.['scriptURL'],_0x4f2f79[_0x2d06a2(0x184)]?.['scriptURL']],_0x502bc8=_0x53b9d5['some'](_0x218a0b=>_0x218a0b&&ownsServiceWorker(_0x218a0b,_0x4970cb));if(!_0x502bc8){console['log'](LOG_PREFIX2+_0x2d06a2(0x18f));return;}_0x4f2f79[_0x2d06a2(0x187)]&&(console['log'](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x4f2f79[_0x2d06a2(0x187)][_0x2d06a2(0x146)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x2d06a2(0x1d3)),await _0x4f2f79[_0x2d06a2(0x14e)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x347c4f){console[_0x2d06a2(0x1fd)](LOG_PREFIX2+_0x2d06a2(0x174),_0x347c4f);}}function ownsServiceWorker(_0x1e234c,_0x20065e){const _0x16a41c=_0x37150b,_0x99fb8e=typeof window!==_0x16a41c(0x1f6)?window['location'][_0x16a41c(0x1cc)]:'',_0xc690bd=new URL(_0x20065e,_0x99fb8e||void 0x0)['href'],_0x3170af=_0x1e234c===_0xc690bd||_0x1e234c[_0x16a41c(0x1c7)](_0x16a41c(0x14f));return console['log'](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x1e234c+_0x16a41c(0x1b3)+_0xc690bd+_0x16a41c(0x22c)+_0x3170af),_0x3170af;}function ownsCurrentController(_0x36385c){const _0x25bcdb=_0x37150b;if(typeof navigator===_0x25bcdb(0x1f6))return![];const _0x5cbb97=navigator[_0x25bcdb(0x1b8)]?.[_0x25bcdb(0x213)];if(!_0x5cbb97)return console[_0x25bcdb(0x160)](LOG_PREFIX2+_0x25bcdb(0x239)),![];return ownsServiceWorker(_0x5cbb97['scriptURL'],_0x36385c);}async function detectBlockingServiceWorker(_0x507791){const _0x419ab3=_0x37150b;if(!navigator[_0x419ab3(0x1b8)])return null;try{const _0x236f1c=await navigator[_0x419ab3(0x1b8)]['getRegistration']('/');console['log'](LOG_PREFIX2+_0x419ab3(0x18e),_0x236f1c?.[_0x419ab3(0x187)]?.[_0x419ab3(0x19c)]??_0x419ab3(0x16e));const _0x592ba4=_0x236f1c?.[_0x419ab3(0x187)]?.[_0x419ab3(0x19c)];if(!_0x592ba4)return null;if(ownsServiceWorker(_0x592ba4,_0x507791))return null;return _0x592ba4;}catch(_0x18dcea){return console[_0x419ab3(0x1fd)](LOG_PREFIX2+'\x20detectBlocking\x20error:',_0x18dcea),null;}}async function resolveWorker(){const _0x34fc71=_0x37150b,_0x32bcc3=registration??await navigator[_0x34fc71(0x1b8)]?.[_0x34fc71(0x1c3)]('/'),_0xf5ab75=_0x32bcc3?.[_0x34fc71(0x187)]??_0x32bcc3?.[_0x34fc71(0x1f1)]??_0x32bcc3?.[_0x34fc71(0x184)]??null;return console['log'](LOG_PREFIX2+_0x34fc71(0x186),_0xf5ab75?.['scriptURL']??_0x34fc71(0x16e),_0x34fc71(0x17d)+(_0xf5ab75?.['state']??_0x34fc71(0x21b))),_0xf5ab75;}var LOG_PREFIX3=_0x37150b(0x1c4);function isInitialized(){const _0x5795fd=_0x37150b;return typeof window!==_0x5795fd(0x1f6)&&window[_0x5795fd(0x172)]===!![];}function setInitialized(_0xa7765d){const _0x4f99ee=_0x37150b;typeof window!==_0x4f99ee(0x1f6)&&(window[_0x4f99ee(0x172)]=_0xa7765d);}function getOptions(){const _0x364a42=_0x37150b;return typeof window!==_0x364a42(0x1f6)?window[_0x364a42(0x233)]??null:null;}function setOptions(_0x5bcbd6){const _0x13ca6b=_0x37150b;typeof window!==_0x13ca6b(0x1f6)&&(window[_0x13ca6b(0x233)]=_0x5bcbd6);}var Enhance={'init'(_0x2c5585={}){const _0xec9ab6=_0x37150b,_0x71ded2=Date['now']();console[_0xec9ab6(0x160)](LOG_PREFIX3+_0xec9ab6(0x1dc)+_0x71ded2),console['log'](LOG_PREFIX3+_0xec9ab6(0x156)+window[_0xec9ab6(0x180)][_0xec9ab6(0x1f8)]),console[_0xec9ab6(0x160)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0xec9ab6(0x15e)]),console[_0xec9ab6(0x160)](LOG_PREFIX3+_0xec9ab6(0x1b4),JSON['stringify'](_0x2c5585,null,0x2));if(isInitialized())return console[_0xec9ab6(0x1e7)](LOG_PREFIX3+_0xec9ab6(0x21a)),window[_0xec9ab6(0x15b)]??createController();setInitialized(!![]),console[_0xec9ab6(0x160)](LOG_PREFIX3+_0xec9ab6(0x16d));const _0x46d939=normalizeOptions(_0x2c5585);setOptions(_0x46d939),console[_0xec9ab6(0x160)](LOG_PREFIX3+_0xec9ab6(0x231),JSON['stringify'](_0x46d939,null,0x2));const _0x14bfd9=parseUrlParams();console[_0xec9ab6(0x160)](LOG_PREFIX3+_0xec9ab6(0x164),JSON['stringify'](_0x14bfd9,null,0x2));if(_0x14bfd9[_0xec9ab6(0x201)])return cleanUrlParam('enhance'),console[_0xec9ab6(0x160)](LOG_PREFIX3+_0xec9ab6(0x1a9)),createController();if(_0x14bfd9[_0xec9ab6(0x151)])return console['log'](LOG_PREFIX3+_0xec9ab6(0x1b7)),console['log'](LOG_PREFIX3+_0xec9ab6(0x185)+_0x14bfd9[_0xec9ab6(0x1d2)]),console[_0xec9ab6(0x160)](LOG_PREFIX3+_0xec9ab6(0x1cf)+_0x14bfd9[_0xec9ab6(0x19d)]),state[_0xec9ab6(0x1e6)]=!![],console[_0xec9ab6(0x160)](LOG_PREFIX3+'\x20Starting\x20overlay\x20load\x20(async)...'),void loadOverlay({'overlayPath':_0x46d939[_0xec9ab6(0x22f)],'enableViteHmr':_0x46d939[_0xec9ab6(0x22e)][_0xec9ab6(0x20c)],'options':_0x46d939,'onToggle':handleToggle}),console[_0xec9ab6(0x160)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x46d939),console[_0xec9ab6(0x160)](LOG_PREFIX3+_0xec9ab6(0x1aa)),createController();return console['log'](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0xec9ab6(0x160)](LOG_PREFIX3+_0xec9ab6(0x224)),void unregisterServiceWorker(_0x46d939[_0xec9ab6(0x15a)]),console['log'](LOG_PREFIX3+_0xec9ab6(0x171)),import.meta.hot&&(console['log'](LOG_PREFIX3+_0xec9ab6(0x145)),import.meta.hot['on']('vite:error',_0x5a1dc3=>{const _0x159d4c=_0xec9ab6;console[_0x159d4c(0x160)](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x5a1dc3),state['appError']={'message':_0x5a1dc3[_0x159d4c(0x232)][_0x159d4c(0x1cd)]},updateOverlay();}),import.meta.hot['on'](_0xec9ab6(0x1f4),()=>{const _0x1d027e=_0xec9ab6;state[_0x1d027e(0x221)]&&(console[_0x1d027e(0x160)](LOG_PREFIX3+_0x1d027e(0x1e5)),state[_0x1d027e(0x221)]=null,updateOverlay());})),createController();}};function createController(){const _0xfb727c=_0x37150b,_0x48df4f={'enable'(){const _0x44a2d6=_0x4a33,_0x5ed2d8=getOptions();if(!_0x5ed2d8)return;state[_0x44a2d6(0x1e6)]=!![],void loadOverlay({'overlayPath':_0x5ed2d8[_0x44a2d6(0x22f)],'enableViteHmr':_0x5ed2d8[_0x44a2d6(0x22e)][_0x44a2d6(0x20c)],'options':_0x5ed2d8,'onToggle':handleToggle}),void registerServiceWorker(_0x5ed2d8),void sendConfiguration(),updateOverlay();},'disable'(){const _0x2f4611=_0x4a33,_0x2252b8=getOptions();if(!_0x2252b8)return;state[_0x2f4611(0x1e6)]=![],state[_0x2f4611(0x235)]=![],updateOverlay(),void unregisterServiceWorker(_0x2252b8['swPath']);},'status'(){const _0x19417a=_0x4a33;return{'enabled':state[_0x19417a(0x1e6)],'controlled':state[_0x19417a(0x235)]};}};return typeof window!==_0xfb727c(0x1f6)&&(window['__enhanceController']=_0x48df4f),_0x48df4f;}function handleToggle(){const _0x2f5ee3=_0x37150b,_0x505a87=createController();state[_0x2f5ee3(0x1e6)]?_0x505a87[_0x2f5ee3(0x143)]():_0x505a87['enable']();}function parseUrlParams(){const _0x4108da=_0x37150b,_0x3a1f49=new URL(window['location']['href']),_0x24c2a0=_0x3a1f49[_0x4108da(0x1fa)][_0x4108da(0x14c)](_0x4108da(0x161))?.[_0x4108da(0x1e3)](),_0x18e025=_0x3a1f49[_0x4108da(0x1fa)][_0x4108da(0x14c)]('enhancementUrl'),_0x3f065d=_0x3a1f49[_0x4108da(0x1fa)]['get'](_0x4108da(0x179));return{'hasEnhancement':Boolean(_0x18e025||_0x3f065d),'explicitDisable':_0x24c2a0==='0'||_0x24c2a0===_0x4108da(0x17e)||_0x24c2a0==='off','enhancementUrl':_0x18e025,'enhancementId':_0x3f065d};}function cleanUrlParam(_0x59eeb1){const _0x328e9d=_0x37150b,_0x2db2d2=new URL(window[_0x328e9d(0x180)][_0x328e9d(0x1f8)]);_0x2db2d2[_0x328e9d(0x1fa)][_0x328e9d(0x1ea)](_0x59eeb1)&&(_0x2db2d2[_0x328e9d(0x1fa)]['delete'](_0x59eeb1),window[_0x328e9d(0x1f7)][_0x328e9d(0x194)](null,document[_0x328e9d(0x157)],_0x2db2d2[_0x328e9d(0x17a)]()));}var package_default={'name':_0x37150b(0x167),'version':_0x37150b(0x200),'type':_0x37150b(0x237),'description':_0x37150b(0x1c2),'license':_0x37150b(0x1a6),'main':'./dev/index.js','module':_0x37150b(0x219),'types':_0x37150b(0x1fe),'exports':{'.':{'types':_0x37150b(0x1fe),'import':_0x37150b(0x219)},'./vite':{'types':'./dev/vite/index.d.ts','import':'./dev/vite/index.js'}},'files':[_0x37150b(0x226)],'bin':{'enhance-sandbox':_0x37150b(0x19e)},'scripts':{'typecheck':_0x37150b(0x1bd),'dev':_0x37150b(0x1fb),'dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x37150b(0x1b9),'dev:staging:build':_0x37150b(0x14d),'build':_0x37150b(0x1da),'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':'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':_0x37150b(0x196)},'dependencies':{'commander':_0x37150b(0x1ce),'zod':_0x37150b(0x1c6)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x37150b(0x207),'tsup':_0x37150b(0x1a3),'vite':_0x37150b(0x144)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH=_0x37150b(0x1ef),DEFAULT_RUNTIME_PATH=_0x37150b(0x1bf),DIST_SERVICE_WORKER_PATH=_0x37150b(0x1cb),DIST_RUNTIME_PATH=_0x37150b(0x1d5),PACKAGE_VERSION=typeof package_default['version']===_0x37150b(0x20a)?package_default[_0x37150b(0x18b)]:'0.0.0';function normalizeAssetPath(_0x35de1c){const _0x2f96b5=_0x37150b;if(!_0x35de1c)return _0x35de1c;if(_0x35de1c[_0x2f96b5(0x1c1)](_0x2f96b5(0x17b))||_0x35de1c[_0x2f96b5(0x1c1)](_0x2f96b5(0x212)))return _0x35de1c;const _0x410c40=_0x35de1c['replace'](/^\.\//,'');return _0x410c40['startsWith']('/')?_0x410c40:'/'+_0x410c40;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x391ccf){return Enhance['init'](_0x391ccf);},'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 _0x21696b=_0x37150b;return Enhance2[_0x21696b(0x228)]();}function _0xd396(){const _0x4c348f=['bun\x20version\x20patch\x20--no-git-tag-version','enhance-sandbox','/@vite/client','\x20overlayPath:\x20','\x20Setting\x20up\x20remote\x20HMR...','\x20Module\x20exports:','scriptURL','enhancementId','./dev/cli.js','push','injectIntoGlobalHook','mkdir','__development','^8.5.1','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','manifestPath','MIT','command','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20init()\x20complete\x20-\x20enhancement\x20mode','object','digest','2899985EQbyJp','\x20registerServiceWorker()\x20called','$RefreshReg$','filename','skipped','\x20Checking\x20for\x20blocking\x20service\x20worker...',',\x20expected=','\x20Raw\x20options:','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','parseAsync','\x20Enhancement\x20mode\x20ENABLED','serviceWorker','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','permissive','\x20doLoadOverlay()\x20starting...','tsc\x20--noEmit','\x20Module\x20missing\x20createOverlay\x20export!','/assets/enhance-runtime.js','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','startsWith','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','getRegistration','[Enhance\x20Runtime]','\x20overlayController\x20exists:\x20','^3.22.4','includes','\x20currentOptions\x20exists:\x20','security','scope','sw-enhance.js','origin','message','^11.1.0','\x20enhancementId:\x20','write','Print\x20the\x20current\x20asset\x20manifest','enhancementUrl','\x20Unregistering\x20SW...','relativeDestination','assets/enhance-runtime.js','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','stdout','2UJkFwg','\x20updateOverlay()\x20called','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Invalid\x20React\x20Refresh\x20runtime','\x20init()\x20called\x20at\x20','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','$RefreshSig$','\x20setupRemoteHMR()\x20for\x20','\x20Registration\x20returned:','action','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','toLowerCase','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','enabled','warn','\x20with\x20scope\x20\x27/\x27...','copyFile','has','\x20loadOverlay()\x20failed:','__vite_plugin_react_preamble_installed__','base64','89352jbZGVK','/sw-enhance.js','\x20Overlay\x20update\x20complete','waiting','648WrPOeh','backendUrl','vite:beforeUpdate','\x20Config\x20sent\x20to\x20SW','undefined','history','href','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','searchParams','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','bottom-right','error','./dev/index.d.ts','override','0.3.20','explicitDisable','\x20→\x20','\x20Current\x20controller:','[Enhance\x20SW-Client]','\x20Updating\x20overlay\x20with\x20state:','cwd','^4.1.1','\x20Overlay\x20origin:\x20','4326113saiFmo','string','[Enhance\x20Config]\x20Build-time\x20defaults:','enableViteHmr','search','state','1528400DTdhmB','default','replace','https://','controller','Copied\x20','\x20enableViteHmr:\x20','runtimeURL','\x20composeOverlayState\x20-\x20state.enabled:\x20','onToggle','./dev/index.js','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','N/A','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20No\x20window\x20object\x20-\x20skipping','4MlqcaG','\x20Registering\x20SW\x20at\x20','prepare-sw','appError','function','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20Unregistering\x20any\x20existing\x20SW...','__enhanceOverlay','dev/','options','serviceWorkerURL','callbackBypass','1712382FnqVFP','position',',\x20owns=','[data-enhance-runtime-bootstrap]','overlay','overlayPath','enhance:configure','\x20Normalized\x20options:','err','__enhanceOptions','querySelector','controlled','../dist/index.js','module','status','\x20No\x20current\x20controller','\x20Module\x20imported\x20in\x20','\x20Calling\x20createOverlay()...','copied','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','keys','\x20Service\x20workers\x20supported','[Enhance\x20Overlay]','disable','^7.2.4','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','postMessage','9436ObdxES','update','...','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','get','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','unregister','sw-enhance','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','hasEnhancement','code','add','all','description','\x20Current\x20URL:\x20','title',',\x20page\x20origin:\x20','reload','swPath','__enhanceController','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20swPath:\x20','readyState','--public-dir\x20<path>','log','enhance','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Found\x20registration:','\x20URL\x20params\x20parsed:',',\x20currentOptions:\x20','ready','@enhance-eng/sandbox','\x20Controller\x20state:','now','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','639909UEGkuH','\x20First\x20initialization','none','0.0.0','createOverlay','\x20init()\x20complete\x20-\x20normal\x20mode','__enhanceInitialized','/@react-refresh','\x20Failed\x20to\x20unregister\x20service\x20worker:','Enhance\x20sandbox\x20utility\x20CLI','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20loadOverlay()\x20complete','__viteHMRLoaded','enhancement','toString','http://','https://api.enhancelabs.ai','state:\x20','false','\x20Overlay\x20controller\x20initialized\x20and\x20cached','location','\x20unregisterServiceWorker()\x20called','Skipped\x20','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','installing','\x20enhancementUrl:\x20','\x20resolveWorker:','active','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','1872aZmVho','__enhanceReactRefreshInstalledOrigins','version','destinationPath','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20detectBlocking\x20-\x20existing\x20registration:','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','publicDir','stringify','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20(already\x20current)\x20[','replaceState','sourcePath'];_0xd396=function(){return _0x4c348f;};return _0xd396();}function runtimeURL(){const _0x7e63fb=_0x37150b;return Enhance2[_0x7e63fb(0x216)]();}import{promises as _0x419f9f}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x37150b(0x236),import.meta.url)));async function syncAssets(_0x4c5543){const _0x1acf88=_0x37150b,_0x4198b6=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x4c5543['swFilename']?'./'+_0x4c5543['swFilename']:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x507e2d=[];for(const _0x576f66 of _0x4198b6){const _0x52c69d=cleanRelativePath(_0x576f66[_0x1acf88(0x1ff)]??_0x576f66[_0x1acf88(0x1a5)]),_0x30a7f7=join(distDir,cleanRelativePath(_0x576f66[_0x1acf88(0x195)])),_0x45c2f4=join(_0x4c5543[_0x1acf88(0x190)],_0x52c69d),[_0xfd68ef,_0x5b0ec3]=await Promise[_0x1acf88(0x154)]([readDigest(_0x30a7f7),readDigest(_0x45c2f4)]);if(_0xfd68ef&&_0x5b0ec3&&_0xfd68ef===_0x5b0ec3){_0x507e2d[_0x1acf88(0x19f)]({'sourcePath':_0x30a7f7,'destinationPath':_0x45c2f4,'relativeDestination':_0x52c69d,'status':_0x1acf88(0x1b1)});continue;}await _0x419f9f[_0x1acf88(0x1a1)](dirname(_0x45c2f4),{'recursive':!![]}),await _0x419f9f[_0x1acf88(0x1e9)](_0x30a7f7,_0x45c2f4),_0x507e2d[_0x1acf88(0x19f)]({'sourcePath':_0x30a7f7,'destinationPath':_0x45c2f4,'relativeDestination':_0x52c69d,'status':_0x1acf88(0x13e)});}return _0x507e2d;}function _0x4a33(_0xcdb942,_0x28d0d8){_0xcdb942=_0xcdb942-0x13e;const _0xd396ac=_0xd396();let _0x4a33d6=_0xd396ac[_0xcdb942];return _0x4a33d6;}function cleanRelativePath(_0xae4bd2){const _0x5b73fa=_0x37150b;return _0xae4bd2[_0x5b73fa(0x211)](/^[./]+/,'');}async function readDigest(_0xb776a2){const _0x382a06=_0x37150b;try{const _0x1195d2=await _0x419f9f['readFile'](_0xb776a2);return createHash('sha256')[_0x382a06(0x148)](_0x1195d2)[_0x382a06(0x1ac)](_0x382a06(0x1ed));}catch(_0x3ec713){if(_0x3ec713[_0x382a06(0x152)]==='ENOENT')return null;throw _0x3ec713;}}var program=new Command();program['name'](_0x37150b(0x197))[_0x37150b(0x155)](_0x37150b(0x175))[_0x37150b(0x18b)](_0x37150b(0x16f)),program['command']('manifest')['description'](_0x37150b(0x1d1))[_0x37150b(0x1e1)](()=>{const _0x2ecc6a=_0x37150b,_0x2e1a8b=getAssetManifest();process[_0x2ecc6a(0x1d7)]['write'](JSON[_0x2ecc6a(0x191)](_0x2e1a8b,null,0x2)+'\x0a');}),program[_0x37150b(0x1a7)](_0x37150b(0x220))[_0x37150b(0x155)](_0x37150b(0x1a8))['requiredOption'](_0x37150b(0x15f),'Directory\x20to\x20copy\x20the\x20service\x20worker\x20into')['option']('--filename\x20<name>',_0x37150b(0x14b))[_0x37150b(0x1e1)](async _0x3bbbc6=>{const _0x15adc5=_0x37150b,_0xdeea51=resolve(process[_0x15adc5(0x206)](),_0x3bbbc6[_0x15adc5(0x190)]),_0xeed9fd=await syncAssets({'publicDir':_0xdeea51,'swFilename':_0x3bbbc6[_0x15adc5(0x1b0)]});for(const _0x38a2df of _0xeed9fd){const _0x4de462=relative(process[_0x15adc5(0x206)](),_0x38a2df[_0x15adc5(0x18c)]);_0x38a2df[_0x15adc5(0x238)]===_0x15adc5(0x1b1)?process[_0x15adc5(0x1d7)][_0x15adc5(0x1d0)](_0x15adc5(0x182)+_0x38a2df['relativeDestination']+_0x15adc5(0x193)+_0x4de462+']\x0a'):process[_0x15adc5(0x1d7)]['write'](_0x15adc5(0x214)+_0x38a2df[_0x15adc5(0x1d4)]+_0x15adc5(0x202)+_0x4de462+'\x0a');}}),program[_0x37150b(0x1b6)]();
|
|
3
|
+
const _0x30e6ff=_0x1f86;(function(_0x10f4c2,_0x19c790){const _0x167529=_0x1f86,_0x1f930c=_0x10f4c2();while(!![]){try{const _0x3555fe=parseInt(_0x167529(0x1db))/0x1*(parseInt(_0x167529(0x160))/0x2)+parseInt(_0x167529(0x1fe))/0x3+-parseInt(_0x167529(0x176))/0x4*(parseInt(_0x167529(0x141))/0x5)+-parseInt(_0x167529(0x136))/0x6*(-parseInt(_0x167529(0x1c8))/0x7)+-parseInt(_0x167529(0x16f))/0x8*(-parseInt(_0x167529(0x1b3))/0x9)+-parseInt(_0x167529(0x208))/0xa+-parseInt(_0x167529(0x1c4))/0xb*(parseInt(_0x167529(0x17b))/0xc);if(_0x3555fe===_0x19c790)break;else _0x1f930c['push'](_0x1f930c['shift']());}catch(_0x253fc5){_0x1f930c['push'](_0x1f930c['shift']());}}}(_0x2a6a,0xc34c0));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x30e6ff(0x183)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x30e6ff(0x20c),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x30e6ff(0x183)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x30e6ff(0x20d),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x30e6ff(0x183)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x30e6ff(0x168)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x2c8938){const _0x44a511=_0x30e6ff,_0x509d80=_0x2c8938[_0x44a511(0x1f9)]??{};return{'callbackBypass':_0x2c8938[_0x44a511(0x1b9)]??[],'overlay':{'enabled':!![],'position':_0x44a511(0x169),'enableViteHmr':_0x509d80[_0x44a511(0x1e1)]??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x44a511(0x159),'overlayPath':_0x509d80[_0x44a511(0x1fd)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x44a511(0x16c),'security':_0x509d80[_0x44a511(0x1e3)]??_0x44a511(0x218),'backendUrl':_0x509d80[_0x44a511(0x20a)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x5a4adf=_0x30e6ff;try{const _0x56dd74=new URLSearchParams(window[_0x5a4adf(0x19f)]['search']);return _0x56dd74[_0x5a4adf(0x1ab)](_0x5a4adf(0x15e))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x30e6ff(0x194),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x324c79){const _0xa114c5=_0x30e6ff;console[_0xa114c5(0x168)](LOG_PREFIX+_0xa114c5(0x180)),console[_0xa114c5(0x168)](LOG_PREFIX+_0xa114c5(0x1de)+_0x324c79['overlayPath']),console['log'](LOG_PREFIX+_0xa114c5(0x1e6)+_0x324c79[_0xa114c5(0x1d2)]),currentOptions=_0x324c79[_0xa114c5(0x148)],toggleHandler=_0x324c79[_0xa114c5(0x1d0)];if(overlayController){console[_0xa114c5(0x168)](LOG_PREFIX+_0xa114c5(0x1e4)),updateOverlay();return;}if(overlayLoadPromise)return console[_0xa114c5(0x168)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0xa114c5(0x168)](LOG_PREFIX+_0xa114c5(0x12f)),overlayLoadPromise=doLoadOverlay(_0x324c79);try{await overlayLoadPromise,console[_0xa114c5(0x168)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x189beb){console[_0xa114c5(0x1a5)](LOG_PREFIX+_0xa114c5(0x1df),_0x189beb);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x54517e){const _0x2c4909=_0x30e6ff;console['log'](LOG_PREFIX+_0x2c4909(0x1d3));if(typeof window===_0x2c4909(0x183)){console[_0x2c4909(0x168)](LOG_PREFIX+_0x2c4909(0x149));return;}if(window[_0x2c4909(0x1b7)]){console[_0x2c4909(0x168)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x2c4909(0x1b7)];return;}console[_0x2c4909(0x168)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x54517e[_0x2c4909(0x1d2)]&&(console[_0x2c4909(0x168)](LOG_PREFIX+_0x2c4909(0x1a4)),await setupRemoteHMR(_0x54517e[_0x2c4909(0x1fd)]));console['log'](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x54517e[_0x2c4909(0x1fd)]);const _0x1bbfa1=Date['now'](),_0x3dc8b8=await import(_0x54517e['overlayPath']);console['log'](LOG_PREFIX+_0x2c4909(0x182)+(Date[_0x2c4909(0x1ec)]()-_0x1bbfa1)+'ms'),console[_0x2c4909(0x168)](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x2c4909(0x1eb)](_0x3dc8b8));if(typeof _0x3dc8b8?.[_0x2c4909(0x20f)]!==_0x2c4909(0x213)){console[_0x2c4909(0x1a5)](LOG_PREFIX+_0x2c4909(0x165)),console[_0x2c4909(0x1a5)](LOG_PREFIX+_0x2c4909(0x1b4),Object[_0x2c4909(0x1eb)](_0x3dc8b8));return;}console[_0x2c4909(0x168)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0x25cf4f=_0x3dc8b8['createOverlay']();console[_0x2c4909(0x168)](LOG_PREFIX+_0x2c4909(0x1ba),_0x25cf4f),overlayController=_0x25cf4f,window['__enhanceOverlay']=_0x25cf4f,_0x25cf4f[_0x2c4909(0x1d0)](_0x54517e['onToggle']),console[_0x2c4909(0x168)](LOG_PREFIX+_0x2c4909(0x212)),console['log'](LOG_PREFIX+_0x2c4909(0x154)),updateOverlay();}catch(_0x15ee63){console[_0x2c4909(0x1a5)](LOG_PREFIX+_0x2c4909(0x1f1),_0x15ee63);}}function updateOverlay(){const _0x2cb73a=_0x30e6ff;console['log'](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x2cb73a(0x168)](LOG_PREFIX+_0x2cb73a(0x210)+!!overlayController),console[_0x2cb73a(0x168)](LOG_PREFIX+_0x2cb73a(0x184)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x2cb73a(0x168)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x5089fb=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x2cb73a(0x219)](_0x5089fb,null,0x2)),overlayController[_0x2cb73a(0x12d)](_0x5089fb),console[_0x2cb73a(0x168)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x27428d){const _0x250459=_0x30e6ff,_0xfb4861=getEnhancementUrl();return console[_0x250459(0x168)](LOG_PREFIX+_0x250459(0x1e8)+_0xfb4861),console[_0x250459(0x168)](LOG_PREFIX+_0x250459(0x14d)+state[_0x250459(0x19d)]),console['log'](LOG_PREFIX+_0x250459(0x1aa)+state[_0x250459(0x13b)]),{'enhancementUrl':_0xfb4861,'enabled':state['enabled'],'controlled':state[_0x250459(0x13b)],'overlayPosition':_0x27428d[_0x250459(0x1fb)][_0x250459(0x13d)],'securityMode':_0x27428d[_0x250459(0x1e3)],'backendBaseUrl':_0x27428d[_0x250459(0x20a)],'appError':state[_0x250459(0x12b)]};}async function setupRemoteHMR(_0x53a243){const _0x43b609=_0x30e6ff;console['log'](LOG_PREFIX+_0x43b609(0x144)+_0x53a243);if(typeof window===_0x43b609(0x183))return;try{const _0x50265e=new URL(_0x53a243,window['location'][_0x43b609(0x1f4)]),_0x400367=_0x50265e[_0x43b609(0x1f4)];console[_0x43b609(0x168)](LOG_PREFIX+_0x43b609(0x1d4)+_0x400367+_0x43b609(0x216)+window[_0x43b609(0x19f)]['origin']);if(_0x400367===window[_0x43b609(0x19f)]['origin']){console['log'](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console['log'](LOG_PREFIX+_0x43b609(0x185)),await ensureReactRefreshPreamble(_0x400367),await ensureViteClient(_0x400367),console[_0x43b609(0x168)](LOG_PREFIX+_0x43b609(0x1e9));}catch(_0x5503b0){console[_0x43b609(0x20b)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x5503b0);}}async function ensureReactRefreshPreamble(_0x16389b){const _0x2185c5=_0x30e6ff;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x2185c5(0x15a)]['has'](_0x16389b)){console[_0x2185c5(0x168)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x16389b);return;}console['log'](LOG_PREFIX+_0x2185c5(0x19c)+_0x16389b+_0x2185c5(0x1d1));const _0x9f8860=await import(_0x16389b+'/@react-refresh'),_0x5b9dce=_0x9f8860&&typeof _0x9f8860===_0x2185c5(0x13a)&&'default'in _0x9f8860?_0x9f8860[_0x2185c5(0x1bb)]:_0x9f8860;if(!isRefreshRuntime(_0x5b9dce)){console['warn'](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x5b9dce['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window['$RefreshSig$']=()=>_0x1fb9fc=>_0x1fb9fc,window[_0x2185c5(0x170)]=!![],window[_0x2185c5(0x15a)]['add'](_0x16389b),console[_0x2185c5(0x168)](LOG_PREFIX+_0x2185c5(0x150)+_0x16389b);}async function ensureViteClient(_0x19d2f6){const _0x18e596=_0x30e6ff;window[_0x18e596(0x166)]??=new Set();if(window[_0x18e596(0x166)][_0x18e596(0x1c3)](_0x19d2f6)){console[_0x18e596(0x168)](LOG_PREFIX+_0x18e596(0x15c)+_0x19d2f6);return;}console[_0x18e596(0x168)](LOG_PREFIX+_0x18e596(0x18c)+_0x19d2f6+_0x18e596(0x1d1)),await import(_0x19d2f6+'/@vite/client'),window[_0x18e596(0x166)]['add'](_0x19d2f6),console[_0x18e596(0x168)](LOG_PREFIX+_0x18e596(0x188)+_0x19d2f6);}function isRefreshRuntime(_0x2d2bde){const _0x2a5ca0=_0x30e6ff;return typeof _0x2d2bde===_0x2a5ca0(0x13a)&&_0x2d2bde!==null&&_0x2a5ca0(0x181)in _0x2d2bde&&typeof _0x2d2bde[_0x2a5ca0(0x181)]===_0x2a5ca0(0x213);}var WORKER_MESSAGE_CONFIG=_0x30e6ff(0x1c2),WORKER_MESSAGE_DISABLE=_0x30e6ff(0x139),LOG_PREFIX2=_0x30e6ff(0x130),registration=null,currentOptions2=null;async function registerServiceWorker(_0x368b27){const _0x46e119=_0x30e6ff;console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x1a2)),console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x217)+_0x368b27[_0x46e119(0x140)]);if(!(_0x46e119(0x1da)in navigator)){console[_0x46e119(0x20b)](LOG_PREFIX2+_0x46e119(0x1af));return;}console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x133));const _0x4f2719=navigator[_0x46e119(0x1da)][_0x46e119(0x1b1)];console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x206),_0x4f2719?.[_0x46e119(0x1dd)]??_0x46e119(0x1dc)),console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x204),_0x4f2719?.['state']??_0x46e119(0x138));const _0x928d8a=!!_0x4f2719;currentOptions2=_0x368b27,console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x1ad));const _0xf9654e=await detectBlockingServiceWorker(_0x368b27[_0x46e119(0x140)]);if(_0xf9654e){console[_0x46e119(0x1a5)](LOG_PREFIX2+_0x46e119(0x132)+_0xf9654e),console['error'](LOG_PREFIX2+_0x46e119(0x13e));return;}console['log'](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x46e119(0x168)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x368b27[_0x46e119(0x140)]+_0x46e119(0x1ae)),registration=await navigator[_0x46e119(0x1da)][_0x46e119(0x17f)](_0x368b27[_0x46e119(0x140)],{'scope':'/'}),console[_0x46e119(0x168)](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration['scope'],'active':registration['active']?.[_0x46e119(0x1dd)],'waiting':registration[_0x46e119(0x1f2)]?.[_0x46e119(0x1dd)],'installing':registration['installing']?.['scriptURL']}),console['log'](LOG_PREFIX2+_0x46e119(0x155));const _0x46419a=await navigator['serviceWorker'][_0x46e119(0x203)];console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x1bf),_0x46419a['active']?.[_0x46e119(0x1dd)]);const _0x47ee99=ownsCurrentController(_0x368b27[_0x46e119(0x140)]);state[_0x46e119(0x13b)]=_0x47ee99,console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x1e7)+_0x47ee99),console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x19e),navigator[_0x46e119(0x1da)]['controller']?.[_0x46e119(0x1dd)]??_0x46e119(0x1dc));if(!_0x928d8a&&!navigator[_0x46e119(0x1da)]['controller']){console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x17e)),window[_0x46e119(0x19f)][_0x46e119(0x1a0)]();return;}console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x137)),await sendConfiguration();if(state['enabled']){const _0x2e3932=document[_0x46e119(0x16a)]('[data-enhance-runtime-bootstrap]')!==null;console[_0x46e119(0x168)](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x2e3932);if(!_0x2e3932){console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x162)),window[_0x46e119(0x19f)][_0x46e119(0x1a0)]();return;}}console[_0x46e119(0x168)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x202));}catch(_0x5852c8){console[_0x46e119(0x1a5)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x5852c8);}}function _0x2a6a(){const _0x43549a=['\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Starting\x20overlay\x20load\x20(async)...','__enhanceOptions','serviceWorker','2roRVbz','none','scriptURL','\x20overlayPath:\x20','\x20loadOverlay()\x20failed:','version','enableOverlayHmr','0.3.20','security','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','state:\x20','\x20enableViteHmr:\x20','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20HMR\x20setup\x20complete','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','keys','now','title','__enhanceController','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','./dev/index.js','\x20Failed\x20to\x20import/create\x20overlay:','waiting','copied','origin','sourcePath','disable','enable','status','__development','requiredOption','overlay','getRegistration','overlayPath','3067212jUxHiQ','parseAsync','\x20Found\x20registration:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20registerServiceWorker()\x20complete','ready','\x20Controller\x20state:','\x20enhancementUrl:\x20','\x20Current\x20controller:','digest','3433020cMjKxk','^3.22.4','backendUrl','warn','https://assets.enhancelabs.ai/overlay.js','https://api.enhancelabs.ai','init','createOverlay','\x20overlayController\x20exists:\x20','relativeDestination','\x20Overlay\x20controller\x20initialized\x20and\x20cached','function','\x20Document\x20readyState:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch',',\x20page\x20origin:\x20','\x20swPath:\x20','permissive','stringify','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','\x20Config\x20sent\x20to\x20SW','\x20Normalized\x20options:','\x20detectBlocking\x20-\x20existing\x20registration:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','appError','toLowerCase','update',',\x20expected=','\x20Starting\x20fresh\x20overlay\x20load...','[Enhance\x20SW-Client]','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20BLOCKING\x20SW\x20detected:\x20','\x20Service\x20workers\x20supported','\x20No\x20service\x20worker\x20active\x20to\x20configure','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','6695202PfIFIz','\x20Sending\x20customer\x20configuration...','N/A','enhance:disable','object','controlled','push','position','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','description','swPath','296045mIKeKn','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','./dev/cli.js','\x20setupRemoteHMR()\x20for\x20','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','ENOENT','delete','options','\x20No\x20window\x20object\x20-\x20skipping','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','0.0.0','history','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Current\x20URL:\x20','manifestPath','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','prepare-sw','--public-dir\x20<path>','copyFile','\x20Calling\x20updateOverlay()...','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','publicDir','@enhance-eng/sandbox','^4.1.1','/sw-enhance.js','__enhanceReactRefreshInstalledOrigins','cwd','\x20Vite\x20client\x20already\x20loaded\x20for\x20','Enhance\x20sandbox\x20utility\x20CLI','enhancementUrl','code','1075754HqlPKD','swFilename','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','message','hasEnhancement','\x20Module\x20missing\x20createOverlay\x20export!','__viteHMRLoaded','./dev/index.d.ts','log','bottom-right','querySelector','destinationPath','/assets/enhance-runtime.js','\x20sendConfiguration()\x20called','unregister','40RcVfcL','__vite_plugin_react_preamble_installed__','action','enhance','enhancementId','module','\x20First\x20initialization','44ynHPsR','manifest','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','skipped','tsc\x20--noEmit','35796pTyXJQ','name','enhance-sandbox','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','register','\x20loadOverlay()\x20called','injectIntoGlobalHook','\x20Module\x20imported\x20in\x20','undefined','\x20currentOptions\x20exists:\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','explicitDisable','stdout','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20SW\x20unregistered\x20successfully','\x20init()\x20complete\x20-\x20enhancement\x20mode','runtimeURL','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','includes','installing','^11.1.0','\x20Raw\x20options:','toString',',\x20owns=','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','[Enhance\x20Overlay]','write','replace','false','\x20→\x20','active','./dev/vite/index.d.ts','replaceState','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','enabled','\x20Current\x20controller\x20after\x20ready:','location','reload','vite:beforeUpdate','\x20registerServiceWorker()\x20called','Print\x20the\x20current\x20asset\x20manifest','\x20Setting\x20up\x20remote\x20HMR...','error','sw-enhance','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20No\x20current\x20controller','option','\x20composeOverlayState\x20-\x20state.controlled:\x20','get','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20with\x20scope\x20\x27/\x27...','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','command','controller','some','2873385xKOHJB','\x20Available\x20exports:','off','\x20Failed\x20to\x20unregister\x20service\x20worker:','__enhanceOverlay','\x20detectBlocking\x20error:','callbackBypass','\x20Controller\x20created:','default','\x20resolveWorker:','dev/','\x20Enhancement\x20mode\x20ENABLED','\x20SW\x20ready!\x20Active:','readyState','startsWith','enhance:configure','has','11121ORtihm','__enhanceInitialized','\x20init()\x20called\x20at\x20','^7.2.4','7oljsML','bun\x20version\x20patch\x20--no-git-tag-version','\x20enhancementId:\x20','searchParams','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','vite:error','err','mkdir','onToggle','...','enableViteHmr','\x20doLoadOverlay()\x20starting...','\x20Overlay\x20origin:\x20','--filename\x20<name>','href'];_0x2a6a=function(){return _0x43549a;};return _0x2a6a();}async function sendConfiguration(){const _0x4ab675=_0x30e6ff;console[_0x4ab675(0x168)](LOG_PREFIX2+_0x4ab675(0x16d)),console['log'](LOG_PREFIX2+'\x20state.enabled:\x20'+state['enabled']+',\x20currentOptions:\x20'+!!currentOptions2);if(!state[_0x4ab675(0x19d)]||!currentOptions2){console[_0x4ab675(0x168)](LOG_PREFIX2+_0x4ab675(0x145));return;}const _0x2aad3b=await resolveWorker();if(!_0x2aad3b){console[_0x4ab675(0x20b)](LOG_PREFIX2+_0x4ab675(0x134));return;}const _0x4e8fbe={'callbackBypass':currentOptions2[_0x4ab675(0x1b9)],'securityMode':currentOptions2[_0x4ab675(0x1e3)]};console[_0x4ab675(0x168)](LOG_PREFIX2+'\x20Sending\x20customer\x20config\x20to\x20SW:',JSON[_0x4ab675(0x219)](_0x4e8fbe,null,0x2)),_0x2aad3b['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x4e8fbe}),console[_0x4ab675(0x168)](LOG_PREFIX2+_0x4ab675(0x126));}async function unregisterServiceWorker(_0x2c178a){const _0x4f0fb6=_0x30e6ff;console[_0x4f0fb6(0x168)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x4f0fb6(0x1da)in navigator)){console[_0x4f0fb6(0x168)](LOG_PREFIX2+_0x4f0fb6(0x178));return;}try{const _0x4d0da8=registration??await navigator[_0x4f0fb6(0x1da)][_0x4f0fb6(0x1fc)]('/');if(!_0x4d0da8){console[_0x4f0fb6(0x168)](LOG_PREFIX2+_0x4f0fb6(0x131));return;}console[_0x4f0fb6(0x168)](LOG_PREFIX2+_0x4f0fb6(0x200),{'scope':_0x4d0da8['scope'],'active':_0x4d0da8[_0x4f0fb6(0x199)]?.[_0x4f0fb6(0x1dd)],'waiting':_0x4d0da8['waiting']?.[_0x4f0fb6(0x1dd)],'installing':_0x4d0da8[_0x4f0fb6(0x18e)]?.[_0x4f0fb6(0x1dd)]});const _0x2fe5c9=[_0x4d0da8[_0x4f0fb6(0x199)]?.['scriptURL'],_0x4d0da8[_0x4f0fb6(0x1f2)]?.[_0x4f0fb6(0x1dd)],_0x4d0da8[_0x4f0fb6(0x18e)]?.[_0x4f0fb6(0x1dd)]],_0x3661ba=_0x2fe5c9[_0x4f0fb6(0x1b2)](_0x32bb9d=>_0x32bb9d&&ownsServiceWorker(_0x32bb9d,_0x2c178a));if(!_0x3661ba){console['log'](LOG_PREFIX2+_0x4f0fb6(0x1cc));return;}_0x4d0da8['active']&&(console['log'](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x4d0da8[_0x4f0fb6(0x199)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console[_0x4f0fb6(0x168)](LOG_PREFIX2+'\x20Unregistering\x20SW...'),await _0x4d0da8[_0x4f0fb6(0x16e)](),registration=null,currentOptions2=null,console[_0x4f0fb6(0x168)](LOG_PREFIX2+_0x4f0fb6(0x189));}catch(_0x5a461e){console[_0x4f0fb6(0x1a5)](LOG_PREFIX2+_0x4f0fb6(0x1b6),_0x5a461e);}}function ownsServiceWorker(_0x58c83d,_0x46b7b6){const _0x5c5795=_0x30e6ff,_0x48e6f7=typeof window!==_0x5c5795(0x183)?window[_0x5c5795(0x19f)][_0x5c5795(0x1f4)]:'',_0x4d9e00=new URL(_0x46b7b6,_0x48e6f7||void 0x0)['href'],_0x516ae0=_0x58c83d===_0x4d9e00||_0x58c83d[_0x5c5795(0x18d)](_0x5c5795(0x1a6));return console['log'](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x58c83d+_0x5c5795(0x12e)+_0x4d9e00+_0x5c5795(0x192)+_0x516ae0),_0x516ae0;}function ownsCurrentController(_0x51138e){const _0x2300b2=_0x30e6ff;if(typeof navigator===_0x2300b2(0x183))return![];const _0x5d0ab8=navigator[_0x2300b2(0x1da)]?.['controller'];if(!_0x5d0ab8)return console[_0x2300b2(0x168)](LOG_PREFIX2+_0x2300b2(0x1a8)),![];return ownsServiceWorker(_0x5d0ab8['scriptURL'],_0x51138e);}async function detectBlockingServiceWorker(_0x32c0a6){const _0x2acd87=_0x30e6ff;if(!navigator[_0x2acd87(0x1da)])return null;try{const _0x5322c5=await navigator[_0x2acd87(0x1da)][_0x2acd87(0x1fc)]('/');console[_0x2acd87(0x168)](LOG_PREFIX2+_0x2acd87(0x128),_0x5322c5?.[_0x2acd87(0x199)]?.[_0x2acd87(0x1dd)]??_0x2acd87(0x1dc));const _0x5e28f1=_0x5322c5?.[_0x2acd87(0x199)]?.[_0x2acd87(0x1dd)];if(!_0x5e28f1)return null;if(ownsServiceWorker(_0x5e28f1,_0x32c0a6))return null;return _0x5e28f1;}catch(_0x78dcfe){return console[_0x2acd87(0x1a5)](LOG_PREFIX2+_0x2acd87(0x1b8),_0x78dcfe),null;}}async function resolveWorker(){const _0x4ccf19=_0x30e6ff,_0x5c9120=registration??await navigator[_0x4ccf19(0x1da)]?.[_0x4ccf19(0x1fc)]('/'),_0x583d8f=_0x5c9120?.[_0x4ccf19(0x199)]??_0x5c9120?.[_0x4ccf19(0x1f2)]??_0x5c9120?.[_0x4ccf19(0x18e)]??null;return console[_0x4ccf19(0x168)](LOG_PREFIX2+_0x4ccf19(0x1bc),_0x583d8f?.[_0x4ccf19(0x1dd)]??_0x4ccf19(0x1dc),_0x4ccf19(0x1e5)+(_0x583d8f?.['state']??_0x4ccf19(0x138))),_0x583d8f;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x5a23ae=_0x30e6ff;return typeof window!==_0x5a23ae(0x183)&&window['__enhanceInitialized']===!![];}function _0x1f86(_0x47e0ba,_0x3e724c){_0x47e0ba=_0x47e0ba-0x125;const _0x2a6a0f=_0x2a6a();let _0x1f86cc=_0x2a6a0f[_0x47e0ba];return _0x1f86cc;}function setInitialized(_0x35b903){const _0x30ffe1=_0x30e6ff;typeof window!==_0x30ffe1(0x183)&&(window[_0x30ffe1(0x1c5)]=_0x35b903);}function getOptions(){const _0x1ad9d9=_0x30e6ff;return typeof window!==_0x1ad9d9(0x183)?window[_0x1ad9d9(0x1d9)]??null:null;}function setOptions(_0x128016){const _0x4e99ce=_0x30e6ff;typeof window!==_0x4e99ce(0x183)&&(window[_0x4e99ce(0x1d9)]=_0x128016);}var Enhance={'init'(_0x9d65bd={}){const _0x1a03b3=_0x30e6ff,_0x59a24e=Date[_0x1a03b3(0x1ec)]();console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x1c6)+_0x59a24e),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x14e)+window[_0x1a03b3(0x19f)][_0x1a03b3(0x1d6)]),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x214)+document[_0x1a03b3(0x1c0)]),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x190),JSON[_0x1a03b3(0x219)](_0x9d65bd,null,0x2));if(isInitialized())return console[_0x1a03b3(0x20b)](LOG_PREFIX3+_0x1a03b3(0x1d7)),window[_0x1a03b3(0x1ee)]??createController();setInitialized(!![]),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x175));const _0x1ad3b9=normalizeOptions(_0x9d65bd);setOptions(_0x1ad3b9),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x127),JSON[_0x1a03b3(0x219)](_0x1ad3b9,null,0x2));const _0x58899e=parseUrlParams();console[_0x1a03b3(0x168)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x1a03b3(0x219)](_0x58899e,null,0x2));if(_0x58899e[_0x1a03b3(0x186)])return cleanUrlParam(_0x1a03b3(0x172)),console[_0x1a03b3(0x168)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x58899e[_0x1a03b3(0x164)])return console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x1be)),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x205)+_0x58899e[_0x1a03b3(0x15e)]),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x1ca)+_0x58899e[_0x1a03b3(0x173)]),state['enabled']=!![],console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x1d8)),void loadOverlay({'overlayPath':_0x1ad3b9[_0x1a03b3(0x1fd)],'enableViteHmr':_0x1ad3b9[_0x1a03b3(0x1fb)]['enableViteHmr'],'options':_0x1ad3b9,'onToggle':handleToggle}),console[_0x1a03b3(0x168)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x1ad3b9),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x18a)),createController();return console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x1ef)),console[_0x1a03b3(0x168)](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x1ad3b9[_0x1a03b3(0x140)]),console[_0x1a03b3(0x168)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x193)),import.meta.hot['on'](_0x1a03b3(0x1cd),_0x18c50c=>{const _0x2257b9=_0x1a03b3;console['log'](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x18c50c),state[_0x2257b9(0x12b)]={'message':_0x18c50c[_0x2257b9(0x1ce)][_0x2257b9(0x163)]},updateOverlay();}),import.meta.hot['on'](_0x1a03b3(0x1a1),()=>{const _0x3561e5=_0x1a03b3;state[_0x3561e5(0x12b)]&&(console['log'](LOG_PREFIX3+_0x3561e5(0x1ac)),state[_0x3561e5(0x12b)]=null,updateOverlay());})),createController();}};function createController(){const _0x2a3711={'enable'(){const _0x14fb20=_0x1f86,_0x3115b7=getOptions();if(!_0x3115b7)return;state[_0x14fb20(0x19d)]=!![],void loadOverlay({'overlayPath':_0x3115b7[_0x14fb20(0x1fd)],'enableViteHmr':_0x3115b7[_0x14fb20(0x1fb)][_0x14fb20(0x1d2)],'options':_0x3115b7,'onToggle':handleToggle}),void registerServiceWorker(_0x3115b7),void sendConfiguration(),updateOverlay();},'disable'(){const _0x22feea=_0x1f86,_0x33dd6a=getOptions();if(!_0x33dd6a)return;state[_0x22feea(0x19d)]=![],state[_0x22feea(0x13b)]=![],updateOverlay(),void unregisterServiceWorker(_0x33dd6a[_0x22feea(0x140)]);},'status'(){const _0x15f91a=_0x1f86;return{'enabled':state[_0x15f91a(0x19d)],'controlled':state['controlled']};}};return typeof window!=='undefined'&&(window['__enhanceController']=_0x2a3711),_0x2a3711;}function handleToggle(){const _0x40f730=_0x30e6ff,_0x1f6a51=createController();state[_0x40f730(0x19d)]?_0x1f6a51[_0x40f730(0x1f6)]():_0x1f6a51[_0x40f730(0x1f7)]();}function parseUrlParams(){const _0x1433de=_0x30e6ff,_0x4cdd8e=new URL(window['location'][_0x1433de(0x1d6)]),_0xfd6a61=_0x4cdd8e[_0x1433de(0x1cb)]['get']('enhance')?.[_0x1433de(0x12c)](),_0x2a13c9=_0x4cdd8e['searchParams'][_0x1433de(0x1ab)](_0x1433de(0x15e)),_0x8c5f99=_0x4cdd8e[_0x1433de(0x1cb)][_0x1433de(0x1ab)]('enhancement');return{'hasEnhancement':Boolean(_0x2a13c9||_0x8c5f99),'explicitDisable':_0xfd6a61==='0'||_0xfd6a61===_0x1433de(0x197)||_0xfd6a61===_0x1433de(0x1b5),'enhancementUrl':_0x2a13c9,'enhancementId':_0x8c5f99};}function cleanUrlParam(_0x531bd8){const _0x1e881d=_0x30e6ff,_0x2fea1f=new URL(window[_0x1e881d(0x19f)][_0x1e881d(0x1d6)]);_0x2fea1f[_0x1e881d(0x1cb)]['has'](_0x531bd8)&&(_0x2fea1f[_0x1e881d(0x1cb)][_0x1e881d(0x147)](_0x531bd8),window[_0x1e881d(0x14c)][_0x1e881d(0x19b)](null,document[_0x1e881d(0x1ed)],_0x2fea1f[_0x1e881d(0x191)]()));}var package_default={'name':_0x30e6ff(0x157),'version':_0x30e6ff(0x1e2),'type':_0x30e6ff(0x174),'description':_0x30e6ff(0x142),'license':'MIT','main':'./dev/index.js','module':'./dev/index.js','types':_0x30e6ff(0x167),'exports':{'.':{'types':_0x30e6ff(0x167),'import':_0x30e6ff(0x1f0)},'./vite':{'types':_0x30e6ff(0x19a),'import':'./dev/vite/index.js'}},'files':[_0x30e6ff(0x1bd)],'bin':{'enhance-sandbox':_0x30e6ff(0x143)},'scripts':{'typecheck':_0x30e6ff(0x17a),'dev':_0x30e6ff(0x215),'dev:build':_0x30e6ff(0x129),'dev:staging':_0x30e6ff(0x1a7),'dev:staging:build':_0x30e6ff(0x201),'build':_0x30e6ff(0x14a),'build:release':_0x30e6ff(0x12a),'build:release:dev':_0x30e6ff(0x1ea),'version':_0x30e6ff(0x1c9)},'dependencies':{'commander':_0x30e6ff(0x18f),'zod':_0x30e6ff(0x209)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x30e6ff(0x158),'tsup':'^8.5.1','vite':_0x30e6ff(0x1c7)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH=_0x30e6ff(0x159),DEFAULT_RUNTIME_PATH=_0x30e6ff(0x16c),DIST_SERVICE_WORKER_PATH='sw-enhance.js',DIST_RUNTIME_PATH='assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x30e6ff(0x1e0)]==='string'?package_default[_0x30e6ff(0x1e0)]:_0x30e6ff(0x14b);function normalizeAssetPath(_0x1ce0b7){const _0x2f7401=_0x30e6ff;if(!_0x1ce0b7)return _0x1ce0b7;if(_0x1ce0b7['startsWith']('http://')||_0x1ce0b7['startsWith']('https://'))return _0x1ce0b7;const _0x59235a=_0x1ce0b7[_0x2f7401(0x196)](/^\.\//,'');return _0x59235a[_0x2f7401(0x1c1)]('/')?_0x59235a:'/'+_0x59235a;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x444820={}){const _0x280ba5=_0x30e6ff;return Enhance[_0x280ba5(0x20e)](_0x444820);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){const _0x14d90d=_0x30e6ff;return Enhance2[_0x14d90d(0x18b)]();}import{promises as _0x39e615}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL('../dist/index.js',import.meta.url)));async function syncAssets(_0x50fd56){const _0x97ed4c=_0x30e6ff,_0x263888=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x50fd56[_0x97ed4c(0x161)]?'./'+_0x50fd56[_0x97ed4c(0x161)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x4d77ba=[];for(const _0x5092d4 of _0x263888){const _0x400d7d=cleanRelativePath(_0x5092d4['override']??_0x5092d4[_0x97ed4c(0x14f)]),_0x11eccd=join(distDir,cleanRelativePath(_0x5092d4[_0x97ed4c(0x1f5)])),_0x3e385a=join(_0x50fd56[_0x97ed4c(0x156)],_0x400d7d),[_0x507240,_0xa9c5c8]=await Promise['all']([readDigest(_0x11eccd),readDigest(_0x3e385a)]);if(_0x507240&&_0xa9c5c8&&_0x507240===_0xa9c5c8){_0x4d77ba[_0x97ed4c(0x13c)]({'sourcePath':_0x11eccd,'destinationPath':_0x3e385a,'relativeDestination':_0x400d7d,'status':'skipped'});continue;}await _0x39e615[_0x97ed4c(0x1cf)](dirname(_0x3e385a),{'recursive':!![]}),await _0x39e615[_0x97ed4c(0x153)](_0x11eccd,_0x3e385a),_0x4d77ba[_0x97ed4c(0x13c)]({'sourcePath':_0x11eccd,'destinationPath':_0x3e385a,'relativeDestination':_0x400d7d,'status':_0x97ed4c(0x1f3)});}return _0x4d77ba;}function cleanRelativePath(_0x3ec7fa){const _0x592c89=_0x30e6ff;return _0x3ec7fa[_0x592c89(0x196)](/^[./]+/,'');}async function readDigest(_0x3ccab2){const _0xee7ad=_0x30e6ff;try{const _0x1d4bb5=await _0x39e615['readFile'](_0x3ccab2);return createHash('sha256')[_0xee7ad(0x12d)](_0x1d4bb5)[_0xee7ad(0x207)]('base64');}catch(_0x591414){if(_0x591414[_0xee7ad(0x15f)]===_0xee7ad(0x146))return null;throw _0x591414;}}var program=new Command();program[_0x30e6ff(0x17c)](_0x30e6ff(0x17d))[_0x30e6ff(0x13f)](_0x30e6ff(0x15d))['version'](_0x30e6ff(0x14b)),program[_0x30e6ff(0x1b0)](_0x30e6ff(0x177))[_0x30e6ff(0x13f)](_0x30e6ff(0x1a3))[_0x30e6ff(0x171)](()=>{const _0x550a82=_0x30e6ff,_0x4b8afe=getAssetManifest();process['stdout']['write'](JSON[_0x550a82(0x219)](_0x4b8afe,null,0x2)+'\x0a');}),program[_0x30e6ff(0x1b0)](_0x30e6ff(0x151))['description'](_0x30e6ff(0x125))[_0x30e6ff(0x1fa)](_0x30e6ff(0x152),_0x30e6ff(0x135))[_0x30e6ff(0x1a9)](_0x30e6ff(0x1d5),'Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)')[_0x30e6ff(0x171)](async _0x3c1585=>{const _0x3c5a95=_0x30e6ff,_0x206cda=resolve(process['cwd'](),_0x3c1585[_0x3c5a95(0x156)]),_0x343008=await syncAssets({'publicDir':_0x206cda,'swFilename':_0x3c1585['filename']});for(const _0x430af1 of _0x343008){const _0x3415a6=relative(process[_0x3c5a95(0x15b)](),_0x430af1[_0x3c5a95(0x16b)]);_0x430af1[_0x3c5a95(0x1f8)]===_0x3c5a95(0x179)?process[_0x3c5a95(0x187)][_0x3c5a95(0x195)]('Skipped\x20'+_0x430af1[_0x3c5a95(0x211)]+'\x20(already\x20current)\x20['+_0x3415a6+']\x0a'):process[_0x3c5a95(0x187)]['write']('Copied\x20'+_0x430af1[_0x3c5a95(0x211)]+_0x3c5a95(0x198)+_0x3415a6+'\x0a');}}),program[_0x30e6ff(0x1ff)]();
|
package/dist/index.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ interface EnhanceAssetManifest {
|
|
|
90
90
|
runtimeDigest: string | null;
|
|
91
91
|
}
|
|
92
92
|
declare const Enhance: {
|
|
93
|
-
init(options
|
|
93
|
+
init(options?: Parameters<typeof Enhance$1.init>[0]): EnhanceController;
|
|
94
94
|
serviceWorkerURL(): string;
|
|
95
95
|
runtimeURL(): string;
|
|
96
96
|
assetManifest(): EnhanceAssetManifest;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xc8eafb=_0x5bfb;(function(_0x117d0d,_0x2a1456){const _0x54667c=_0x5bfb,_0x15ea6f=_0x117d0d();while(!![]){try{const _0x234173=parseInt(_0x54667c(0x166))/0x1+-parseInt(_0x54667c(0x189))/0x2+-parseInt(_0x54667c(0x130))/0x3+-parseInt(_0x54667c(0xd7))/0x4*(parseInt(_0x54667c(0x186))/0x5)+-parseInt(_0x54667c(0x1a3))/0x6+parseInt(_0x54667c(0x122))/0x7+-parseInt(_0x54667c(0x180))/0x8;if(_0x234173===_0x2a1456)break;else _0x15ea6f['push'](_0x15ea6f['shift']());}catch(_0x5857ba){_0x15ea6f['push'](_0x15ea6f['shift']());}}}(_0x5670,0x1a034));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0xc8eafb(0xe8)?__ENHANCE_DEFAULT_OVERLAY_PATH__:'https://assets.enhancelabs.ai/overlay.js',DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0xc8eafb(0xe8)?__ENHANCE_DEFAULT_BACKEND_URL__:_0xc8eafb(0x1a4),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0xc8eafb(0xe8)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0xc8eafb(0x118)](_0xc8eafb(0xe7),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x564b71){const _0x58c920=_0xc8eafb,_0x5a6de4=_0x564b71[_0x58c920(0x15e)]??{};return{'callbackBypass':_0x564b71[_0x58c920(0x126)]??[],'overlay':{'enabled':!![],'position':_0x58c920(0x135),'enableViteHmr':_0x5a6de4['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x58c920(0x144),'overlayPath':_0x5a6de4[_0x58c920(0xf4)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x58c920(0x10c),'security':_0x5a6de4[_0x58c920(0x154)]??_0x58c920(0x16f),'backendUrl':_0x5a6de4[_0x58c920(0x16c)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x3c23d1=_0xc8eafb;try{const _0x226191=new URLSearchParams(window[_0x3c23d1(0x108)]['search']);return _0x226191[_0x3c23d1(0x111)](_0x3c23d1(0xdc))?.[_0x3c23d1(0x18c)]()||'';}catch{return'';}}var LOG_PREFIX=_0xc8eafb(0x197),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x26d255){const _0x35d5cf=_0xc8eafb;console['log'](LOG_PREFIX+_0x35d5cf(0x170)),console[_0x35d5cf(0x118)](LOG_PREFIX+_0x35d5cf(0xea)+_0x26d255[_0x35d5cf(0xf4)]),console[_0x35d5cf(0x118)](LOG_PREFIX+_0x35d5cf(0x160)+_0x26d255[_0x35d5cf(0x18a)]),currentOptions=_0x26d255['options'],toggleHandler=_0x26d255[_0x35d5cf(0x134)];if(overlayController){console[_0x35d5cf(0x118)](LOG_PREFIX+_0x35d5cf(0xe3)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x35d5cf(0xf9)),overlayLoadPromise;console[_0x35d5cf(0x118)](LOG_PREFIX+_0x35d5cf(0x13b)),overlayLoadPromise=doLoadOverlay(_0x26d255);try{await overlayLoadPromise,console[_0x35d5cf(0x118)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x24f0e5){console[_0x35d5cf(0x123)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x24f0e5);}finally{overlayLoadPromise=null;}}function _0x5bfb(_0x2bf35f,_0x38a897){_0x2bf35f=_0x2bf35f-0xd5;const _0x567005=_0x5670();let _0x5bfb08=_0x567005[_0x2bf35f];return _0x5bfb08;}async function doLoadOverlay(_0x341c92){const _0x2cc284=_0xc8eafb;console['log'](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x2cc284(0xe8)){console[_0x2cc284(0x118)](LOG_PREFIX+_0x2cc284(0x11b));return;}if(window[_0x2cc284(0x110)]){console[_0x2cc284(0x118)](LOG_PREFIX+_0x2cc284(0x1a7)),overlayController=window[_0x2cc284(0x110)];return;}console['log'](LOG_PREFIX+_0x2cc284(0xdf));try{_0x341c92['enableViteHmr']&&(console[_0x2cc284(0x118)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x341c92['overlayPath']));console['log'](LOG_PREFIX+_0x2cc284(0xf6)+_0x341c92[_0x2cc284(0xf4)]);const _0x3c0587=Date['now'](),_0x38124a=await import(_0x341c92[_0x2cc284(0xf4)]);console[_0x2cc284(0x118)](LOG_PREFIX+_0x2cc284(0x140)+(Date[_0x2cc284(0xfb)]()-_0x3c0587)+'ms'),console[_0x2cc284(0x118)](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x2cc284(0x141)](_0x38124a));if(typeof _0x38124a?.[_0x2cc284(0x16d)]!==_0x2cc284(0x155)){console[_0x2cc284(0x123)](LOG_PREFIX+_0x2cc284(0x169)),console[_0x2cc284(0x123)](LOG_PREFIX+_0x2cc284(0x133),Object['keys'](_0x38124a));return;}console[_0x2cc284(0x118)](LOG_PREFIX+_0x2cc284(0xf5));const _0x409bb6=_0x38124a[_0x2cc284(0x16d)]();console['log'](LOG_PREFIX+_0x2cc284(0x15f),_0x409bb6),overlayController=_0x409bb6,window[_0x2cc284(0x110)]=_0x409bb6,_0x409bb6[_0x2cc284(0x134)](_0x341c92[_0x2cc284(0x134)]),console[_0x2cc284(0x118)](LOG_PREFIX+_0x2cc284(0xd5)),console['log'](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x503574){console[_0x2cc284(0x123)](LOG_PREFIX+_0x2cc284(0x143),_0x503574);}}function updateOverlay(){const _0x24d569=_0xc8eafb;console[_0x24d569(0x118)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x24d569(0x118)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console['log'](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console[_0x24d569(0x118)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x3c73df=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x24d569(0x102),JSON[_0x24d569(0x149)](_0x3c73df,null,0x2)),overlayController['update'](_0x3c73df),console[_0x24d569(0x118)](LOG_PREFIX+_0x24d569(0x11e));}function composeOverlayState(_0x10b7f8){const _0x504ea6=_0xc8eafb,_0x1ea861=getEnhancementUrl();return console[_0x504ea6(0x118)](LOG_PREFIX+_0x504ea6(0x156)+_0x1ea861),console['log'](LOG_PREFIX+_0x504ea6(0x15a)+state[_0x504ea6(0x105)]),console[_0x504ea6(0x118)](LOG_PREFIX+_0x504ea6(0x117)+state['controlled']),{'enhancementUrl':_0x1ea861,'enabled':state[_0x504ea6(0x105)],'controlled':state[_0x504ea6(0x15b)],'overlayPosition':_0x10b7f8['overlay'][_0x504ea6(0xed)],'securityMode':_0x10b7f8[_0x504ea6(0x154)],'backendBaseUrl':_0x10b7f8[_0x504ea6(0x16c)],'appError':state['appError']};}async function setupRemoteHMR(_0x50f25f){const _0x37ccfc=_0xc8eafb;console[_0x37ccfc(0x118)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x50f25f);if(typeof window===_0x37ccfc(0xe8))return;try{const _0x2db521=new URL(_0x50f25f,window[_0x37ccfc(0x108)]['origin']),_0xb072b=_0x2db521[_0x37ccfc(0x163)];console[_0x37ccfc(0x118)](LOG_PREFIX+_0x37ccfc(0x17c)+_0xb072b+_0x37ccfc(0x13f)+window[_0x37ccfc(0x108)][_0x37ccfc(0x163)]);if(_0xb072b===window['location'][_0x37ccfc(0x163)]){console[_0x37ccfc(0x118)](LOG_PREFIX+_0x37ccfc(0x120));return;}console['log'](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0xb072b),await ensureViteClient(_0xb072b),console[_0x37ccfc(0x118)](LOG_PREFIX+_0x37ccfc(0x127));}catch(_0x2deda9){console[_0x37ccfc(0x195)](LOG_PREFIX+_0x37ccfc(0x128),_0x2deda9);}}async function ensureReactRefreshPreamble(_0x2ee0a8){const _0x1bbb04=_0xc8eafb;window[_0x1bbb04(0x161)]??=new Set();if(window[_0x1bbb04(0x161)][_0x1bbb04(0x1a8)](_0x2ee0a8)){console[_0x1bbb04(0x118)](LOG_PREFIX+_0x1bbb04(0x11d)+_0x2ee0a8);return;}console[_0x1bbb04(0x118)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x2ee0a8+_0x1bbb04(0xf1));const _0x8ba4a8=await import(_0x2ee0a8+'/@react-refresh'),_0x493909=_0x8ba4a8&&typeof _0x8ba4a8===_0x1bbb04(0x16a)&&'default'in _0x8ba4a8?_0x8ba4a8[_0x1bbb04(0x142)]:_0x8ba4a8;if(!isRefreshRuntime(_0x493909)){console[_0x1bbb04(0x195)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x493909[_0x1bbb04(0x19f)](window),window[_0x1bbb04(0xda)]=()=>{},window[_0x1bbb04(0x17d)]=()=>_0x44952d=>_0x44952d,window[_0x1bbb04(0x12b)]=!![],window[_0x1bbb04(0x161)][_0x1bbb04(0xef)](_0x2ee0a8),console['log'](LOG_PREFIX+_0x1bbb04(0x114)+_0x2ee0a8);}async function ensureViteClient(_0x1201a2){const _0x2a5583=_0xc8eafb;window[_0x2a5583(0x100)]??=new Set();if(window[_0x2a5583(0x100)][_0x2a5583(0x1a8)](_0x1201a2)){console[_0x2a5583(0x118)](LOG_PREFIX+_0x2a5583(0x13d)+_0x1201a2);return;}console['log'](LOG_PREFIX+_0x2a5583(0xee)+_0x1201a2+_0x2a5583(0xf1)),await import(_0x1201a2+'/@vite/client'),window[_0x2a5583(0x100)]['add'](_0x1201a2),console[_0x2a5583(0x118)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x1201a2);}function isRefreshRuntime(_0x5899fe){const _0x35f30f=_0xc8eafb;return typeof _0x5899fe==='object'&&_0x5899fe!==null&&_0x35f30f(0x19f)in _0x5899fe&&typeof _0x5899fe[_0x35f30f(0x19f)]===_0x35f30f(0x155);}var WORKER_MESSAGE_CONFIG=_0xc8eafb(0x11a),WORKER_MESSAGE_DISABLE=_0xc8eafb(0x190),LOG_PREFIX2=_0xc8eafb(0x15c),registration=null,currentOptions2=null;async function registerServiceWorker(_0x111b6c){const _0x5d124b=_0xc8eafb;console[_0x5d124b(0x118)](LOG_PREFIX2+_0x5d124b(0x13c)),console['log'](LOG_PREFIX2+_0x5d124b(0x101)+_0x111b6c['swPath']);if(!(_0x5d124b(0x147)in navigator)){console['warn'](LOG_PREFIX2+_0x5d124b(0x10e));return;}console[_0x5d124b(0x118)](LOG_PREFIX2+_0x5d124b(0x138));const _0x2c196e=navigator[_0x5d124b(0x147)][_0x5d124b(0x104)];console[_0x5d124b(0x118)](LOG_PREFIX2+_0x5d124b(0x125),_0x2c196e?.[_0x5d124b(0x187)]??_0x5d124b(0x1a5)),console['log'](LOG_PREFIX2+_0x5d124b(0xd8),_0x2c196e?.[_0x5d124b(0x107)]??_0x5d124b(0x18b));const _0x40ead0=!!_0x2c196e;currentOptions2=_0x111b6c,console[_0x5d124b(0x118)](LOG_PREFIX2+_0x5d124b(0x192));const _0x1754ae=await detectBlockingServiceWorker(_0x111b6c[_0x5d124b(0x146)]);if(_0x1754ae){console['error'](LOG_PREFIX2+_0x5d124b(0x16b)+_0x1754ae),console[_0x5d124b(0x123)](LOG_PREFIX2+_0x5d124b(0x182));return;}console[_0x5d124b(0x118)](LOG_PREFIX2+_0x5d124b(0x19e));try{console[_0x5d124b(0x118)](LOG_PREFIX2+_0x5d124b(0x18d)+_0x111b6c[_0x5d124b(0x146)]+_0x5d124b(0x11f)),registration=await navigator[_0x5d124b(0x147)][_0x5d124b(0x1a1)](_0x111b6c[_0x5d124b(0x146)],{'scope':'/'}),console[_0x5d124b(0x118)](LOG_PREFIX2+_0x5d124b(0x191),{'scope':registration[_0x5d124b(0x10f)],'active':registration['active']?.['scriptURL'],'waiting':registration['waiting']?.[_0x5d124b(0x187)],'installing':registration[_0x5d124b(0x151)]?.[_0x5d124b(0x187)]}),console[_0x5d124b(0x118)](LOG_PREFIX2+_0x5d124b(0x11c));const _0x2407a4=await navigator[_0x5d124b(0x147)]['ready'];console[_0x5d124b(0x118)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x2407a4[_0x5d124b(0x139)]?.[_0x5d124b(0x187)]);const _0x446c71=ownsCurrentController(_0x111b6c[_0x5d124b(0x146)]);state['controlled']=_0x446c71,console['log'](LOG_PREFIX2+_0x5d124b(0x119)+_0x446c71),console[_0x5d124b(0x118)](LOG_PREFIX2+'\x20Current\x20controller\x20after\x20ready:',navigator['serviceWorker'][_0x5d124b(0x104)]?.[_0x5d124b(0x187)]??'none');if(!_0x40ead0&&!navigator['serviceWorker'][_0x5d124b(0x104)]){console['log'](LOG_PREFIX2+_0x5d124b(0x116)),window[_0x5d124b(0x108)]['reload']();return;}console[_0x5d124b(0x118)](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x5d124b(0x105)]){const _0x233d17=document['querySelector'](_0x5d124b(0xdb))!==null;console[_0x5d124b(0x118)](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x233d17);if(!_0x233d17){console[_0x5d124b(0x118)](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0x5d124b(0x108)][_0x5d124b(0x153)]();return;}}console['log'](LOG_PREFIX2+_0x5d124b(0x136)),updateOverlay(),console[_0x5d124b(0x118)](LOG_PREFIX2+_0x5d124b(0x13e));}catch(_0x37700e){console[_0x5d124b(0x123)](LOG_PREFIX2+_0x5d124b(0x177),_0x37700e);}}async function sendConfiguration(){const _0x52b30f=_0xc8eafb;console[_0x52b30f(0x118)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0x52b30f(0x118)](LOG_PREFIX2+_0x52b30f(0x14e)+state[_0x52b30f(0x105)]+_0x52b30f(0x199)+!!currentOptions2);if(!state[_0x52b30f(0x105)]||!currentOptions2){console['log'](LOG_PREFIX2+_0x52b30f(0xec));return;}const _0xa5dcd6=await resolveWorker();if(!_0xa5dcd6){console[_0x52b30f(0x195)](LOG_PREFIX2+_0x52b30f(0xf0));return;}const _0x53218d={'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2['security']};console[_0x52b30f(0x118)](LOG_PREFIX2+_0x52b30f(0x106),JSON[_0x52b30f(0x149)](_0x53218d,null,0x2)),_0xa5dcd6['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x53218d}),console['log'](LOG_PREFIX2+_0x52b30f(0xe2));}async function unregisterServiceWorker(_0x9dc858){const _0x124835=_0xc8eafb;console[_0x124835(0x118)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!('serviceWorker'in navigator)){console[_0x124835(0x118)](LOG_PREFIX2+_0x124835(0xe1));return;}try{const _0x4e4d56=registration??await navigator[_0x124835(0x147)][_0x124835(0x10b)]('/');if(!_0x4e4d56){console['log'](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0x124835(0x118)](LOG_PREFIX2+_0x124835(0xfc),{'scope':_0x4e4d56[_0x124835(0x10f)],'active':_0x4e4d56[_0x124835(0x139)]?.[_0x124835(0x187)],'waiting':_0x4e4d56['waiting']?.[_0x124835(0x187)],'installing':_0x4e4d56[_0x124835(0x151)]?.[_0x124835(0x187)]});const _0x5116f7=[_0x4e4d56[_0x124835(0x139)]?.[_0x124835(0x187)],_0x4e4d56['waiting']?.['scriptURL'],_0x4e4d56[_0x124835(0x151)]?.[_0x124835(0x187)]],_0x451515=_0x5116f7[_0x124835(0x132)](_0x57bfd4=>_0x57bfd4&&ownsServiceWorker(_0x57bfd4,_0x9dc858));if(!_0x451515){console[_0x124835(0x118)](LOG_PREFIX2+_0x124835(0x13a));return;}_0x4e4d56[_0x124835(0x139)]&&(console['log'](LOG_PREFIX2+_0x124835(0x183)),_0x4e4d56[_0x124835(0x139)][_0x124835(0xe9)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+'\x20Unregistering\x20SW...'),await _0x4e4d56[_0x124835(0x145)](),registration=null,currentOptions2=null,console[_0x124835(0x118)](LOG_PREFIX2+_0x124835(0x113));}catch(_0x28e86b){console[_0x124835(0x123)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x28e86b);}}function ownsServiceWorker(_0x5ad8dc,_0x35799b){const _0x30cdfd=_0xc8eafb,_0x580cd7=typeof window!==_0x30cdfd(0xe8)?window[_0x30cdfd(0x108)][_0x30cdfd(0x163)]:'',_0x18fffd=new URL(_0x35799b,_0x580cd7||void 0x0)['href'],_0xcd3497=_0x5ad8dc===_0x18fffd||_0x5ad8dc[_0x30cdfd(0x19b)]('sw-enhance');return console[_0x30cdfd(0x118)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x5ad8dc+_0x30cdfd(0x181)+_0x18fffd+',\x20owns='+_0xcd3497),_0xcd3497;}function ownsCurrentController(_0x4a1d9e){const _0x399e41=_0xc8eafb;if(typeof navigator===_0x399e41(0xe8))return![];const _0x213073=navigator[_0x399e41(0x147)]?.[_0x399e41(0x104)];if(!_0x213073)return console[_0x399e41(0x118)](LOG_PREFIX2+_0x399e41(0xfd)),![];return ownsServiceWorker(_0x213073['scriptURL'],_0x4a1d9e);}async function detectBlockingServiceWorker(_0x43d0a8){const _0xbdaadf=_0xc8eafb;if(!navigator[_0xbdaadf(0x147)])return null;try{const _0x1a908f=await navigator['serviceWorker'][_0xbdaadf(0x10b)]('/');console[_0xbdaadf(0x118)](LOG_PREFIX2+_0xbdaadf(0x1a0),_0x1a908f?.[_0xbdaadf(0x139)]?.['scriptURL']??_0xbdaadf(0x1a5));const _0x29ac54=_0x1a908f?.[_0xbdaadf(0x139)]?.[_0xbdaadf(0x187)];if(!_0x29ac54)return null;if(ownsServiceWorker(_0x29ac54,_0x43d0a8))return null;return _0x29ac54;}catch(_0x2fcdb1){return console[_0xbdaadf(0x123)](LOG_PREFIX2+_0xbdaadf(0xf2),_0x2fcdb1),null;}}async function resolveWorker(){const _0x449231=_0xc8eafb,_0x22f528=registration??await navigator['serviceWorker']?.[_0x449231(0x10b)]('/'),_0x4cd521=_0x22f528?.['active']??_0x22f528?.[_0x449231(0x19c)]??_0x22f528?.['installing']??null;return console[_0x449231(0x118)](LOG_PREFIX2+'\x20resolveWorker:',_0x4cd521?.['scriptURL']??'none',_0x449231(0x18f)+(_0x4cd521?.[_0x449231(0x107)]??_0x449231(0x18b))),_0x4cd521;}var LOG_PREFIX3=_0xc8eafb(0x158);function isInitialized(){const _0x3f11e0=_0xc8eafb;return typeof window!=='undefined'&&window[_0x3f11e0(0x159)]===!![];}function setInitialized(_0xc97893){const _0x8d237f=_0xc8eafb;typeof window!=='undefined'&&(window[_0x8d237f(0x159)]=_0xc97893);}function getOptions(){const _0x3f50f5=_0xc8eafb;return typeof window!==_0x3f50f5(0xe8)?window['__enhanceOptions']??null:null;}function setOptions(_0x220ca0){const _0x116544=_0xc8eafb;typeof window!=='undefined'&&(window[_0x116544(0x152)]=_0x220ca0);}var Enhance={'init'(_0x22bc47={}){const _0x5b69e3=_0xc8eafb,_0x27025e=Date[_0x5b69e3(0xfb)]();console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0x176)+_0x27025e),console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0x112)+window[_0x5b69e3(0x108)][_0x5b69e3(0x173)]),console['log'](LOG_PREFIX3+_0x5b69e3(0x19a)+document[_0x5b69e3(0xe4)]),console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0x164),JSON['stringify'](_0x22bc47,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window[_0x5b69e3(0x167)]??createController();setInitialized(!![]),console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0x179));const _0x1c99ed=normalizeOptions(_0x22bc47);setOptions(_0x1c99ed),console['log'](LOG_PREFIX3+_0x5b69e3(0x121),JSON[_0x5b69e3(0x149)](_0x1c99ed,null,0x2));const _0x41d565=parseUrlParams();console['log'](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x5b69e3(0x149)](_0x41d565,null,0x2));if(_0x41d565[_0x5b69e3(0xf8)])return cleanUrlParam(_0x5b69e3(0xeb)),console[_0x5b69e3(0x118)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x41d565[_0x5b69e3(0x162)])return console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0x175)),console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0x131)+_0x41d565['enhancementUrl']),console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0xf7)+_0x41d565[_0x5b69e3(0x193)]),state[_0x5b69e3(0x105)]=!![],console['log'](LOG_PREFIX3+_0x5b69e3(0x115)),void loadOverlay({'overlayPath':_0x1c99ed[_0x5b69e3(0xf4)],'enableViteHmr':_0x1c99ed['overlay']['enableViteHmr'],'options':_0x1c99ed,'onToggle':handleToggle}),console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0xdd)),void registerServiceWorker(_0x1c99ed),console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0xe6)),createController();return console['log'](LOG_PREFIX3+_0x5b69e3(0x171)),console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0x157)),void unregisterServiceWorker(_0x1c99ed[_0x5b69e3(0x146)]),console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0x174)),import.meta.hot&&(console[_0x5b69e3(0x118)](LOG_PREFIX3+_0x5b69e3(0xde)),import.meta.hot['on'](_0x5b69e3(0xd9),_0x3144a7=>{const _0x4004ac=_0x5b69e3;console['log'](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x3144a7),state['appError']={'message':_0x3144a7['err'][_0x4004ac(0x17a)]},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x2014f2=_0x5b69e3;state[_0x2014f2(0x14b)]&&(console['log'](LOG_PREFIX3+_0x2014f2(0x196)),state['appError']=null,updateOverlay());})),createController();}};function createController(){const _0x2b2250=_0xc8eafb,_0x2b1603={'enable'(){const _0x4bd7ba=_0x5bfb,_0x1e607a=getOptions();if(!_0x1e607a)return;state[_0x4bd7ba(0x105)]=!![],void loadOverlay({'overlayPath':_0x1e607a[_0x4bd7ba(0xf4)],'enableViteHmr':_0x1e607a[_0x4bd7ba(0x150)][_0x4bd7ba(0x18a)],'options':_0x1e607a,'onToggle':handleToggle}),void registerServiceWorker(_0x1e607a),void sendConfiguration(),updateOverlay();},'disable'(){const _0x3ae78a=_0x5bfb,_0x2aecc2=getOptions();if(!_0x2aecc2)return;state[_0x3ae78a(0x105)]=![],state[_0x3ae78a(0x15b)]=![],updateOverlay(),void unregisterServiceWorker(_0x2aecc2[_0x3ae78a(0x146)]);},'status'(){const _0x2b5daa=_0x5bfb;return{'enabled':state[_0x2b5daa(0x105)],'controlled':state[_0x2b5daa(0x15b)]};}};return typeof window!=='undefined'&&(window[_0x2b2250(0x167)]=_0x2b1603),_0x2b1603;}function handleToggle(){const _0x4ebc02=_0xc8eafb,_0x5acb8e=createController();state[_0x4ebc02(0x105)]?_0x5acb8e[_0x4ebc02(0x188)]():_0x5acb8e[_0x4ebc02(0x103)]();}function _0x5670(){const _0x423d84=['\x20Config\x20sent\x20to\x20SW','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','readyState','./dev/index.d.ts','\x20init()\x20complete\x20-\x20enhancement\x20mode','[Enhance\x20Config]\x20Build-time\x20defaults:','undefined','postMessage','\x20overlayPath:\x20','enhance','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','position','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','add','\x20No\x20service\x20worker\x20active\x20to\x20configure','...','\x20detectBlocking\x20error:','off','overlayPath','\x20Calling\x20createOverlay()...','\x20Importing\x20overlay\x20module\x20from:\x20','\x20enhancementId:\x20','explicitDisable','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','^4.1.1','now','\x20Found\x20registration:','\x20No\x20current\x20controller','0.3.20','module','__viteHMRLoaded','\x20swPath:\x20','\x20Updating\x20overlay\x20with\x20state:','enable','controller','enabled','\x20Sending\x20customer\x20config\x20to\x20SW:','state','location','bun\x20version\x20patch\x20--no-git-tag-version','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','getRegistration','/assets/enhance-runtime.js','^8.5.1','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','scope','__enhanceOverlay','get','\x20Current\x20URL:\x20','\x20SW\x20unregistered\x20successfully','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20Starting\x20overlay\x20load\x20(async)...','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20composeOverlayState\x20-\x20state.controlled:\x20','log','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','enhance:configure','\x20No\x20window\x20object\x20-\x20skipping','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Overlay\x20update\x20complete','\x20with\x20scope\x20\x27/\x27...','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Normalized\x20options:','954744eupQmC','error','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20Current\x20controller:','callbackBypass','\x20HMR\x20setup\x20complete','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','./dev/cli.js','delete','__vite_plugin_react_preamble_installed__','history','version','https://','tsc\x20--noEmit','114063sOKoRh','\x20enhancementUrl:\x20','some','\x20Available\x20exports:','onToggle','bottom-right','\x20Updating\x20overlay...','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','\x20Service\x20workers\x20supported','active','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Starting\x20fresh\x20overlay\x20load...','\x20registerServiceWorker()\x20called','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20registerServiceWorker()\x20complete',',\x20page\x20origin:\x20','\x20Module\x20imported\x20in\x20','keys','default','\x20Failed\x20to\x20import/create\x20overlay:','/sw-enhance.js','unregister','swPath','serviceWorker','http://','stringify','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','appError','MIT','^7.2.4','\x20state.enabled:\x20','searchParams','overlay','installing','__enhanceOptions','reload','security','function','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20Unregistering\x20any\x20existing\x20SW...','[Enhance\x20Runtime]','__enhanceInitialized','\x20composeOverlayState\x20-\x20state.enabled:\x20','controlled','[Enhance\x20SW-Client]','serviceWorkerURL','__development','\x20Controller\x20created:','\x20enableViteHmr:\x20','__enhanceReactRefreshInstalledOrigins','hasEnhancement','origin','\x20Raw\x20options:','public','210112xfEyjt','__enhanceController','init','\x20Module\x20missing\x20createOverlay\x20export!','object','\x20BLOCKING\x20SW\x20detected:\x20','backendUrl','createOverlay','startsWith','permissive','\x20loadOverlay()\x20called','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','@enhance-eng/sandbox','href','\x20init()\x20complete\x20-\x20normal\x20mode','\x20Enhancement\x20mode\x20ENABLED','\x20init()\x20called\x20at\x20','\x20Failed\x20to\x20register\x20service\x20worker:','runtimeURL','\x20First\x20initialization','message','^24.10.1','\x20Overlay\x20origin:\x20','$RefreshSig$','toLowerCase','^3.22.4','363448TRIapr',',\x20expected=','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','toString','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','1630pJdIXE','scriptURL','disable','211372nIfYhg','enableViteHmr','N/A','trim','\x20Registering\x20SW\x20at\x20','./dev/vite/index.d.ts','state:\x20','enhance:disable','\x20Registration\x20returned:','\x20Checking\x20for\x20blocking\x20service\x20worker...','enhancementId','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','warn','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','[Enhance\x20Overlay]','0.0.0',',\x20currentOptions:\x20','\x20Document\x20readyState:\x20','includes','waiting','dev/','\x20No\x20blocking\x20SW\x20found','injectIntoGlobalHook','\x20detectBlocking\x20-\x20existing\x20registration:','register','enhancement','207108czpNqh','https://api.enhancelabs.ai','none','./dev/vite/index.js','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','has','\x20Overlay\x20controller\x20initialized\x20and\x20cached','./dev/index.js','200MeixME','\x20Controller\x20state:','vite:error','$RefreshReg$','[data-enhance-runtime-bootstrap]','enhancementUrl','\x20Starting\x20SW\x20registration\x20(async)...','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','string','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister'];_0x5670=function(){return _0x423d84;};return _0x5670();}function parseUrlParams(){const _0x1ef526=_0xc8eafb,_0x17b95e=new URL(window[_0x1ef526(0x108)][_0x1ef526(0x173)]),_0x200359=_0x17b95e[_0x1ef526(0x14f)][_0x1ef526(0x111)](_0x1ef526(0xeb))?.[_0x1ef526(0x17e)](),_0x39b066=_0x17b95e[_0x1ef526(0x14f)][_0x1ef526(0x111)](_0x1ef526(0xdc)),_0x39cf4d=_0x17b95e[_0x1ef526(0x14f)]['get'](_0x1ef526(0x1a2));return{'hasEnhancement':Boolean(_0x39b066||_0x39cf4d),'explicitDisable':_0x200359==='0'||_0x200359==='false'||_0x200359===_0x1ef526(0xf3),'enhancementUrl':_0x39b066,'enhancementId':_0x39cf4d};}function cleanUrlParam(_0x2a5278){const _0x591246=_0xc8eafb,_0x30b084=new URL(window[_0x591246(0x108)]['href']);_0x30b084['searchParams']['has'](_0x2a5278)&&(_0x30b084[_0x591246(0x14f)][_0x591246(0x12a)](_0x2a5278),window[_0x591246(0x12c)]['replaceState'](null,document['title'],_0x30b084[_0x591246(0x184)]()));}var package_default={'name':_0xc8eafb(0x172),'version':_0xc8eafb(0xfe),'type':_0xc8eafb(0xff),'description':_0xc8eafb(0x137),'license':_0xc8eafb(0x14c),'main':_0xc8eafb(0xd6),'module':'./dev/index.js','types':_0xc8eafb(0xe5),'exports':{'.':{'types':'./dev/index.d.ts','import':_0xc8eafb(0xd6)},'./vite':{'types':_0xc8eafb(0x18e),'import':_0xc8eafb(0x1a6)}},'files':[_0xc8eafb(0x19d)],'bin':{'enhance-sandbox':_0xc8eafb(0x129)},'scripts':{'typecheck':_0xc8eafb(0x12f),'dev':_0xc8eafb(0x14a),'dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0xc8eafb(0x10a),'dev:staging:build':_0xc8eafb(0x124),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0xc8eafb(0x194),'build:release:dev':_0xc8eafb(0x185),'version':_0xc8eafb(0x109)},'dependencies':{'commander':'^11.1.0','zod':_0xc8eafb(0x17f)},'devDependencies':{'@types/node':_0xc8eafb(0x17b),'javascript-obfuscator':_0xc8eafb(0xfa),'tsup':_0xc8eafb(0x10d),'vite':_0xc8eafb(0x14d)},'publishConfig':{'access':_0xc8eafb(0x165)}},DEFAULT_SERVICE_WORKER_PATH=_0xc8eafb(0x144),DEFAULT_RUNTIME_PATH=_0xc8eafb(0x10c),PACKAGE_VERSION=typeof package_default[_0xc8eafb(0x12d)]===_0xc8eafb(0xe0)?package_default[_0xc8eafb(0x12d)]:_0xc8eafb(0x198);function normalizeAssetPath(_0x3ab8d4){const _0x3e1dbc=_0xc8eafb;if(!_0x3ab8d4)return _0x3ab8d4;if(_0x3ab8d4[_0x3e1dbc(0x16e)](_0x3e1dbc(0x148))||_0x3ab8d4[_0x3e1dbc(0x16e)](_0x3e1dbc(0x12e)))return _0x3ab8d4;const _0x5e5253=_0x3ab8d4['replace'](/^\.\//,'');return _0x5e5253[_0x3e1dbc(0x16e)]('/')?_0x5e5253:'/'+_0x5e5253;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x43a2eb){const _0x18fb49=_0xc8eafb;return Enhance[_0x18fb49(0x168)](_0x43a2eb);},'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 _0x313a9a=_0xc8eafb;return Enhance2[_0x313a9a(0x15d)]();}function runtimeURL(){const _0x105655=_0xc8eafb;return Enhance2[_0x105655(0x178)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x1179fb=_0x1bdb;(function(_0x5c1a6c,_0x52586b){const _0x29ead6=_0x1bdb,_0x267843=_0x5c1a6c();while(!![]){try{const _0x1a293a=parseInt(_0x29ead6(0x68))/0x1+parseInt(_0x29ead6(0xe4))/0x2+-parseInt(_0x29ead6(0x8d))/0x3+parseInt(_0x29ead6(0x102))/0x4+-parseInt(_0x29ead6(0xf3))/0x5*(-parseInt(_0x29ead6(0x112))/0x6)+parseInt(_0x29ead6(0x8a))/0x7+parseInt(_0x29ead6(0x9a))/0x8*(-parseInt(_0x29ead6(0x130))/0x9);if(_0x1a293a===_0x52586b)break;else _0x267843['push'](_0x267843['shift']());}catch(_0x33e8f7){_0x267843['push'](_0x267843['shift']());}}}(_0x57f9,0xc246d));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x1179fb(0xa8)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x1179fb(0xb1),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x1179fb(0xa8)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x1179fb(0x121),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x1179fb(0xa8)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x1179fb(0x107)](_0x1179fb(0xc7),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x4c9f4d){const _0x58b12b=_0x1179fb,_0x58d1de=_0x4c9f4d['__development']??{};return{'callbackBypass':_0x4c9f4d[_0x58b12b(0x84)]??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x58d1de['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':'/sw-enhance.js','overlayPath':_0x58d1de['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x58b12b(0xf8),'security':_0x58d1de['security']??'permissive','backendUrl':_0x58d1de[_0x58b12b(0xe2)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x4a9d89=_0x1179fb;try{const _0x305a39=new URLSearchParams(window['location']['search']);return _0x305a39['get'](_0x4a9d89(0x108))?.[_0x4a9d89(0xfa)]()||'';}catch{return'';}}var LOG_PREFIX=_0x1179fb(0x12e),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x184864){const _0xeb7534=_0x1179fb;console[_0xeb7534(0x107)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console['log'](LOG_PREFIX+_0xeb7534(0xe6)+_0x184864[_0xeb7534(0xec)]),console[_0xeb7534(0x107)](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x184864['enableViteHmr']),currentOptions=_0x184864['options'],toggleHandler=_0x184864[_0xeb7534(0x118)];if(overlayController){console[_0xeb7534(0x107)](LOG_PREFIX+_0xeb7534(0x96)),updateOverlay();return;}if(overlayLoadPromise)return console[_0xeb7534(0x107)](LOG_PREFIX+_0xeb7534(0xc8)),overlayLoadPromise;console[_0xeb7534(0x107)](LOG_PREFIX+_0xeb7534(0xdf)),overlayLoadPromise=doLoadOverlay(_0x184864);try{await overlayLoadPromise,console[_0xeb7534(0x107)](LOG_PREFIX+_0xeb7534(0xd9));}catch(_0x317fe0){console[_0xeb7534(0xd6)](LOG_PREFIX+_0xeb7534(0x10e),_0x317fe0);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x52a95b){const _0x5dace8=_0x1179fb;console[_0x5dace8(0x107)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x5dace8(0xa8)){console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0x12c));return;}if(window['__enhanceOverlay']){console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0x80)),overlayController=window[_0x5dace8(0x9c)];return;}console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0x8b));try{_0x52a95b[_0x5dace8(0x97)]&&(console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0x103)),await setupRemoteHMR(_0x52a95b[_0x5dace8(0xec)]));console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0xfb)+_0x52a95b[_0x5dace8(0xec)]);const _0x4d388b=Date[_0x5dace8(0x7c)](),_0x168b1f=await import(_0x52a95b[_0x5dace8(0xec)]);console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0xde)+(Date[_0x5dace8(0x7c)]()-_0x4d388b)+'ms'),console[_0x5dace8(0x107)](LOG_PREFIX+'\x20Module\x20exports:',Object['keys'](_0x168b1f));if(typeof _0x168b1f?.['createOverlay']!=='function'){console[_0x5dace8(0xd6)](LOG_PREFIX+_0x5dace8(0x6e)),console[_0x5dace8(0xd6)](LOG_PREFIX+_0x5dace8(0xf2),Object[_0x5dace8(0x82)](_0x168b1f));return;}console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0xc1));const _0x118e22=_0x168b1f['createOverlay']();console[_0x5dace8(0x107)](LOG_PREFIX+'\x20Controller\x20created:',_0x118e22),overlayController=_0x118e22,window[_0x5dace8(0x9c)]=_0x118e22,_0x118e22[_0x5dace8(0x118)](_0x52a95b[_0x5dace8(0x118)]),console[_0x5dace8(0x107)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x5dace8(0x107)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x388a6d){console[_0x5dace8(0xd6)](LOG_PREFIX+_0x5dace8(0xe5),_0x388a6d);}}function updateOverlay(){const _0x23c1f3=_0x1179fb;console[_0x23c1f3(0x107)](LOG_PREFIX+_0x23c1f3(0x133)),console['log'](LOG_PREFIX+_0x23c1f3(0xa5)+!!overlayController),console[_0x23c1f3(0x107)](LOG_PREFIX+_0x23c1f3(0x87)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x23c1f3(0x107)](LOG_PREFIX+_0x23c1f3(0xa0));return;}const _0x296015=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x23c1f3(0xe7),JSON['stringify'](_0x296015,null,0x2)),overlayController[_0x23c1f3(0x75)](_0x296015),console[_0x23c1f3(0x107)](LOG_PREFIX+_0x23c1f3(0xe8));}function composeOverlayState(_0x3877c8){const _0x264156=_0x1179fb,_0x425fac=getEnhancementUrl();return console[_0x264156(0x107)](LOG_PREFIX+_0x264156(0xb8)+_0x425fac),console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x264156(0x10b)]),console[_0x264156(0x107)](LOG_PREFIX+_0x264156(0x123)+state[_0x264156(0x134)]),{'enhancementUrl':_0x425fac,'enabled':state[_0x264156(0x10b)],'controlled':state[_0x264156(0x134)],'overlayPosition':_0x3877c8[_0x264156(0xee)][_0x264156(0x11e)],'securityMode':_0x3877c8[_0x264156(0x12d)],'backendBaseUrl':_0x3877c8[_0x264156(0xe2)],'appError':state['appError']};}async function setupRemoteHMR(_0x1229fb){const _0x26ef2d=_0x1179fb;console[_0x26ef2d(0x107)](LOG_PREFIX+_0x26ef2d(0x92)+_0x1229fb);if(typeof window===_0x26ef2d(0xa8))return;try{const _0x3ec29a=new URL(_0x1229fb,window['location'][_0x26ef2d(0xc9)]),_0x4bf65e=_0x3ec29a[_0x26ef2d(0xc9)];console[_0x26ef2d(0x107)](LOG_PREFIX+_0x26ef2d(0xdb)+_0x4bf65e+',\x20page\x20origin:\x20'+window['location']['origin']);if(_0x4bf65e===window[_0x26ef2d(0x91)]['origin']){console[_0x26ef2d(0x107)](LOG_PREFIX+_0x26ef2d(0x11b));return;}console[_0x26ef2d(0x107)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x4bf65e),await ensureViteClient(_0x4bf65e),console['log'](LOG_PREFIX+_0x26ef2d(0xfd));}catch(_0x3783ce){console[_0x26ef2d(0xd7)](LOG_PREFIX+_0x26ef2d(0x89),_0x3783ce);}}async function ensureReactRefreshPreamble(_0x3a25f0){const _0xd1ea8e=_0x1179fb;window[_0xd1ea8e(0x101)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x3a25f0)){console[_0xd1ea8e(0x107)](LOG_PREFIX+_0xd1ea8e(0x8c)+_0x3a25f0);return;}console[_0xd1ea8e(0x107)](LOG_PREFIX+_0xd1ea8e(0x9b)+_0x3a25f0+_0xd1ea8e(0xbf));const _0x3f0d41=await import(_0x3a25f0+_0xd1ea8e(0xcd)),_0x45eca3=_0x3f0d41&&typeof _0x3f0d41===_0xd1ea8e(0xc5)&&_0xd1ea8e(0x131)in _0x3f0d41?_0x3f0d41[_0xd1ea8e(0x131)]:_0x3f0d41;if(!isRefreshRuntime(_0x45eca3)){console[_0xd1ea8e(0xd7)](LOG_PREFIX+_0xd1ea8e(0x120));return;}_0x45eca3[_0xd1ea8e(0xcc)](window),window['$RefreshReg$']=()=>{},window[_0xd1ea8e(0x6c)]=()=>_0xdb112a=>_0xdb112a,window['__vite_plugin_react_preamble_installed__']=!![],window['__enhanceReactRefreshInstalledOrigins'][_0xd1ea8e(0xf7)](_0x3a25f0),console[_0xd1ea8e(0x107)](LOG_PREFIX+_0xd1ea8e(0x127)+_0x3a25f0);}async function ensureViteClient(_0x3d9b40){const _0x570b33=_0x1179fb;window['__viteHMRLoaded']??=new Set();if(window[_0x570b33(0xeb)][_0x570b33(0x85)](_0x3d9b40)){console[_0x570b33(0x107)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x3d9b40);return;}console[_0x570b33(0x107)](LOG_PREFIX+_0x570b33(0xed)+_0x3d9b40+_0x570b33(0xbf)),await import(_0x3d9b40+'/@vite/client'),window[_0x570b33(0xeb)][_0x570b33(0xf7)](_0x3d9b40),console[_0x570b33(0x107)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x3d9b40);}function _0x57f9(){const _0x4bdb6b=['Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20SW\x20unregistered\x20successfully','^4.1.1','reload','error','warn','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20loadOverlay()\x20complete','querySelector','\x20Overlay\x20origin:\x20','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20Module\x20imported\x20in\x20','\x20Starting\x20fresh\x20overlay\x20load...','0.3.20','\x20unregisterServiceWorker()\x20called','backendUrl','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','867462FqrwZZ','\x20Failed\x20to\x20import/create\x20overlay:','\x20overlayPath:\x20','\x20Updating\x20overlay\x20with\x20state:','\x20Overlay\x20update\x20complete','get','scope','__viteHMRLoaded','overlayPath','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','overlay','\x20enhancementUrl:\x20','^24.10.1','serviceWorker','\x20Available\x20exports:','1215yCbGLu','[Enhance\x20Runtime]','toLowerCase','state','add','/assets/enhance-runtime.js','\x20ownsServiceWorker?\x20scriptURL=','trim','\x20Importing\x20overlay\x20module\x20from:\x20','waiting','\x20HMR\x20setup\x20complete','\x20Enhancement\x20detection:\x20wasEnhanced=','__enhanceOptions','init','__enhanceReactRefreshInstalledOrigins','3730660hRTdiQ','\x20Setting\x20up\x20remote\x20HMR...','serviceWorkerURL','swPath','startsWith','log','enhancementUrl','delete',',\x20owns=','enabled','__enhanceController','\x20sendConfiguration()\x20called','\x20loadOverlay()\x20failed:','\x20init()\x20complete\x20-\x20normal\x20mode','\x20swPath:\x20','\x20Updating\x20overlay...','20154DhwWcW','\x20state.enabled:\x20','none','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','stringify','function','onToggle','\x20Enhancement\x20mode\x20ENABLED','href','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','N/A','runtimeURL','position','\x20Starting\x20overlay\x20load\x20(async)...','\x20Invalid\x20React\x20Refresh\x20runtime','https://api.enhancelabs.ai','\x20Vite\x20error\x20detected:','\x20composeOverlayState\x20-\x20state.controlled:\x20',',\x20expected=','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','enable','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','^8.5.1','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','readyState','\x20No\x20window\x20object\x20-\x20skipping','security','[Enhance\x20Overlay]','^3.22.4','31406571jbUCQb','default','sw-enhance','\x20updateOverlay()\x20called','controlled','\x20URL\x20params\x20parsed:','postMessage','vite:beforeUpdate','\x20enhancementId:\x20','register','http://','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','713532IcSpmw','unregister','\x20Current\x20controller:','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','$RefreshSig$','false','\x20Module\x20missing\x20createOverlay\x20export!','./dev/cli.js','0.0.0','version','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20Unregistering\x20SW...','getRegistration','update','err','MIT','__enhanceInitialized','off','module','explicitDisable','now','\x20resolveWorker:','history','\x20Document\x20readyState:\x20','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','toString','keys','https://','callbackBypass','has','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','\x20currentOptions\x20exists:\x20','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','10245256knRMJb','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20React\x20Refresh\x20already\x20installed\x20for\x20','223191IrCVRn','ready','vite:error','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','location','\x20setupRemoteHMR()\x20for\x20','message','\x20Controller\x20state:','./dev/index.js','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','enableViteHmr','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','replaceState','8fVpCxb','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','__enhanceOverlay','active','title','enhancementId','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','includes','\x20BLOCKING\x20SW\x20detected:\x20','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','enhance:disable','\x20overlayController\x20exists:\x20','\x20Checking\x20for\x20blocking\x20service\x20worker...','^7.2.4','undefined','\x20Failed\x20to\x20unregister\x20service\x20worker:','/sw-enhance.js','\x20detectBlocking\x20error:','disable','\x20Found\x20registration:','state:\x20','[Enhance\x20SW-Client]','^11.1.0','https://assets.enhancelabs.ai/overlay.js','\x20Current\x20URL:\x20','@enhance-eng/sandbox','scriptURL','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','appError','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','bun\x20version\x20patch\x20--no-git-tag-version','searchParams','public','\x20Current\x20controller\x20after\x20ready:','\x20Config\x20sent\x20to\x20SW','controller','...','replace','\x20Calling\x20createOverlay()...','dev/','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','installing','object','\x20SW\x20ready!\x20Active:','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','origin','\x20Raw\x20options:','\x20Registration\x20returned:','injectIntoGlobalHook','/@react-refresh','\x20registerServiceWorker()\x20complete','./dev/vite/index.js','\x20First\x20initialization'];_0x57f9=function(){return _0x4bdb6b;};return _0x57f9();}function isRefreshRuntime(_0xf12236){const _0x4d3e0b=_0x1179fb;return typeof _0xf12236===_0x4d3e0b(0xc5)&&_0xf12236!==null&&_0x4d3e0b(0xcc)in _0xf12236&&typeof _0xf12236[_0x4d3e0b(0xcc)]===_0x4d3e0b(0x117);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x1179fb(0xa4),LOG_PREFIX2=_0x1179fb(0xaf),registration=null,currentOptions2=null;async function registerServiceWorker(_0x1e4ead){const _0x4a5cdb=_0x1179fb;console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0x110)+_0x1e4ead[_0x4a5cdb(0x105)]);if(!(_0x4a5cdb(0xf1)in navigator)){console[_0x4a5cdb(0xd7)](LOG_PREFIX2+_0x4a5cdb(0xe3));return;}console['log'](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0xebe29d=navigator[_0x4a5cdb(0xf1)]['controller'];console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0x6a),_0xebe29d?.[_0x4a5cdb(0xb4)]??_0x4a5cdb(0x114)),console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0x94),_0xebe29d?.[_0x4a5cdb(0xf6)]??_0x4a5cdb(0x11c));const _0x27e476=!!_0xebe29d;currentOptions2=_0x1e4ead,console['log'](LOG_PREFIX2+_0x4a5cdb(0xa6));const _0x3f4dd2=await detectBlockingServiceWorker(_0x1e4ead[_0x4a5cdb(0x105)]);if(_0x3f4dd2){console[_0x4a5cdb(0xd6)](LOG_PREFIX2+_0x4a5cdb(0xa2)+_0x3f4dd2),console['error'](LOG_PREFIX2+_0x4a5cdb(0xb6));return;}console[_0x4a5cdb(0x107)](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x4a5cdb(0x107)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x1e4ead[_0x4a5cdb(0x105)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x4a5cdb(0xf1)][_0x4a5cdb(0x65)](_0x1e4ead[_0x4a5cdb(0x105)],{'scope':'/'}),console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xcb),{'scope':registration[_0x4a5cdb(0xea)],'active':registration['active']?.['scriptURL'],'waiting':registration[_0x4a5cdb(0xfc)]?.[_0x4a5cdb(0xb4)],'installing':registration['installing']?.[_0x4a5cdb(0xb4)]}),console['log'](LOG_PREFIX2+_0x4a5cdb(0x125));const _0x1fde43=await navigator[_0x4a5cdb(0xf1)][_0x4a5cdb(0x8e)];console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xc6),_0x1fde43[_0x4a5cdb(0x9d)]?.[_0x4a5cdb(0xb4)]);const _0x15bb0f=ownsCurrentController(_0x1e4ead[_0x4a5cdb(0x105)]);state[_0x4a5cdb(0x134)]=_0x15bb0f,console[_0x4a5cdb(0x107)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x15bb0f),console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xbc),navigator[_0x4a5cdb(0xf1)]['controller']?.[_0x4a5cdb(0xb4)]??_0x4a5cdb(0x114));if(!_0x27e476&&!navigator[_0x4a5cdb(0xf1)][_0x4a5cdb(0xbe)]){console['log'](LOG_PREFIX2+_0x4a5cdb(0xdd)),window[_0x4a5cdb(0x91)][_0x4a5cdb(0xd5)]();return;}console[_0x4a5cdb(0x107)](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x4a5cdb(0x10b)]){const _0x5bea9d=document[_0x4a5cdb(0xda)]('[data-enhance-runtime-bootstrap]')!==null;console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xfe)+_0x5bea9d);if(!_0x5bea9d){console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xa3)),window['location'][_0x4a5cdb(0xd5)]();return;}}console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0x111)),updateOverlay(),console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xce));}catch(_0x37acf0){console[_0x4a5cdb(0xd6)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x37acf0);}}async function sendConfiguration(){const _0x412739=_0x1179fb;console['log'](LOG_PREFIX2+_0x412739(0x10d)),console[_0x412739(0x107)](LOG_PREFIX2+_0x412739(0x113)+state[_0x412739(0x10b)]+',\x20currentOptions:\x20'+!!currentOptions2);if(!state[_0x412739(0x10b)]||!currentOptions2){console[_0x412739(0x107)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x38d058=await resolveWorker();if(!_0x38d058){console['warn'](LOG_PREFIX2+_0x412739(0xb5));return;}const _0x5792e5={'callbackBypass':currentOptions2[_0x412739(0x84)],'securityMode':currentOptions2[_0x412739(0x12d)]};console[_0x412739(0x107)](LOG_PREFIX2+_0x412739(0x88),JSON[_0x412739(0x116)](_0x5792e5,null,0x2)),_0x38d058[_0x412739(0x136)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x5792e5}),console[_0x412739(0x107)](LOG_PREFIX2+_0x412739(0xbd));}async function unregisterServiceWorker(_0x45839a){const _0x1bf708=_0x1179fb;console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0xe1));if(!(_0x1bf708(0xf1)in navigator)){console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0x67));return;}try{const _0x2bf7a0=registration??await navigator[_0x1bf708(0xf1)][_0x1bf708(0x74)]('/');if(!_0x2bf7a0){console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0x90));return;}console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0xad),{'scope':_0x2bf7a0['scope'],'active':_0x2bf7a0[_0x1bf708(0x9d)]?.[_0x1bf708(0xb4)],'waiting':_0x2bf7a0[_0x1bf708(0xfc)]?.[_0x1bf708(0xb4)],'installing':_0x2bf7a0[_0x1bf708(0xc4)]?.['scriptURL']});const _0x5abe18=[_0x2bf7a0['active']?.[_0x1bf708(0xb4)],_0x2bf7a0[_0x1bf708(0xfc)]?.[_0x1bf708(0xb4)],_0x2bf7a0['installing']?.['scriptURL']],_0x47a432=_0x5abe18['some'](_0x8f1e4d=>_0x8f1e4d&&ownsServiceWorker(_0x8f1e4d,_0x45839a));if(!_0x47a432){console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0x6b));return;}_0x2bf7a0[_0x1bf708(0x9d)]&&(console['log'](LOG_PREFIX2+_0x1bf708(0x12a)),_0x2bf7a0[_0x1bf708(0x9d)][_0x1bf708(0x136)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0x73)),await _0x2bf7a0[_0x1bf708(0x69)](),registration=null,currentOptions2=null,console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0xd3));}catch(_0x18eba8){console[_0x1bf708(0xd6)](LOG_PREFIX2+_0x1bf708(0xa9),_0x18eba8);}}function ownsServiceWorker(_0x3c0292,_0x45a820){const _0x40f690=_0x1179fb,_0x36b22b=typeof window!=='undefined'?window['location'][_0x40f690(0xc9)]:'',_0x5dde3d=new URL(_0x45a820,_0x36b22b||void 0x0)[_0x40f690(0x11a)],_0x43431a=_0x3c0292===_0x5dde3d||_0x3c0292[_0x40f690(0xa1)](_0x40f690(0x132));return console['log'](LOG_PREFIX2+_0x40f690(0xf9)+_0x3c0292+_0x40f690(0x124)+_0x5dde3d+_0x40f690(0x10a)+_0x43431a),_0x43431a;}function ownsCurrentController(_0x466b14){const _0x478b8b=_0x1179fb;if(typeof navigator===_0x478b8b(0xa8))return![];const _0x47028b=navigator[_0x478b8b(0xf1)]?.[_0x478b8b(0xbe)];if(!_0x47028b)return console[_0x478b8b(0x107)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x47028b[_0x478b8b(0xb4)],_0x466b14);}async function detectBlockingServiceWorker(_0x5814a0){const _0x37f1fd=_0x1179fb;if(!navigator['serviceWorker'])return null;try{const _0xdf54c2=await navigator[_0x37f1fd(0xf1)]['getRegistration']('/');console[_0x37f1fd(0x107)](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0xdf54c2?.[_0x37f1fd(0x9d)]?.['scriptURL']??_0x37f1fd(0x114));const _0x12efc4=_0xdf54c2?.[_0x37f1fd(0x9d)]?.[_0x37f1fd(0xb4)];if(!_0x12efc4)return null;if(ownsServiceWorker(_0x12efc4,_0x5814a0))return null;return _0x12efc4;}catch(_0x360507){return console[_0x37f1fd(0xd6)](LOG_PREFIX2+_0x37f1fd(0xab),_0x360507),null;}}async function resolveWorker(){const _0x2763f6=_0x1179fb,_0x18cb42=registration??await navigator[_0x2763f6(0xf1)]?.['getRegistration']('/'),_0x551b53=_0x18cb42?.[_0x2763f6(0x9d)]??_0x18cb42?.[_0x2763f6(0xfc)]??_0x18cb42?.[_0x2763f6(0xc4)]??null;return console[_0x2763f6(0x107)](LOG_PREFIX2+_0x2763f6(0x7d),_0x551b53?.[_0x2763f6(0xb4)]??_0x2763f6(0x114),_0x2763f6(0xae)+(_0x551b53?.[_0x2763f6(0xf6)]??_0x2763f6(0x11c))),_0x551b53;}var LOG_PREFIX3=_0x1179fb(0xf4);function isInitialized(){const _0x200201=_0x1179fb;return typeof window!==_0x200201(0xa8)&&window[_0x200201(0x78)]===!![];}function setInitialized(_0x1ec4b4){typeof window!=='undefined'&&(window['__enhanceInitialized']=_0x1ec4b4);}function getOptions(){const _0x419286=_0x1179fb;return typeof window!==_0x419286(0xa8)?window[_0x419286(0xff)]??null:null;}function _0x1bdb(_0x5958a7,_0x2d5ca7){_0x5958a7=_0x5958a7-0x65;const _0x57f950=_0x57f9();let _0x1bdb33=_0x57f950[_0x5958a7];return _0x1bdb33;}function setOptions(_0x209644){const _0x54c88c=_0x1179fb;typeof window!==_0x54c88c(0xa8)&&(window['__enhanceOptions']=_0x209644);}var Enhance={'init'(_0x102a89={}){const _0x2e45cd=_0x1179fb,_0x1dbb41=Date[_0x2e45cd(0x7c)]();console[_0x2e45cd(0x107)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x1dbb41),console['log'](LOG_PREFIX3+_0x2e45cd(0xb2)+window[_0x2e45cd(0x91)][_0x2e45cd(0x11a)]),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0x7f)+document[_0x2e45cd(0x12b)]),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0xca),JSON[_0x2e45cd(0x116)](_0x102a89,null,0x2));if(isInitialized())return console[_0x2e45cd(0xd7)](LOG_PREFIX3+_0x2e45cd(0x115)),window[_0x2e45cd(0x10c)]??createController();setInitialized(!![]),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0xd0));const _0x348d96=normalizeOptions(_0x102a89);setOptions(_0x348d96),console[_0x2e45cd(0x107)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON[_0x2e45cd(0x116)](_0x348d96,null,0x2));const _0x343305=parseUrlParams();console['log'](LOG_PREFIX3+_0x2e45cd(0x135),JSON[_0x2e45cd(0x116)](_0x343305,null,0x2));if(_0x343305[_0x2e45cd(0x7b)])return cleanUrlParam('enhance'),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0x98)),createController();if(_0x343305['hasEnhancement'])return console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0x119)),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0xef)+_0x343305['enhancementUrl']),console['log'](LOG_PREFIX3+_0x2e45cd(0x138)+_0x343305[_0x2e45cd(0x9f)]),state[_0x2e45cd(0x10b)]=!![],console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0x11f)),void loadOverlay({'overlayPath':_0x348d96['overlayPath'],'enableViteHmr':_0x348d96['overlay'][_0x2e45cd(0x97)],'options':_0x348d96,'onToggle':handleToggle}),console[_0x2e45cd(0x107)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x348d96),console['log'](LOG_PREFIX3+_0x2e45cd(0xdc)),createController();return console[_0x2e45cd(0x107)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x2e45cd(0x107)](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x348d96[_0x2e45cd(0x105)]),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0x10f)),import.meta.hot&&(console['log'](LOG_PREFIX3+_0x2e45cd(0x72)),import.meta.hot['on'](_0x2e45cd(0x8f),_0x45ce0c=>{const _0x43c753=_0x2e45cd;console[_0x43c753(0x107)](LOG_PREFIX3+_0x43c753(0x122),_0x45ce0c),state[_0x43c753(0xb7)]={'message':_0x45ce0c[_0x43c753(0x76)][_0x43c753(0x93)]},updateOverlay();}),import.meta.hot['on'](_0x2e45cd(0x137),()=>{const _0x834b5c=_0x2e45cd;state[_0x834b5c(0xb7)]&&(console['log'](LOG_PREFIX3+_0x834b5c(0xc3)),state[_0x834b5c(0xb7)]=null,updateOverlay());})),createController();}};function createController(){const _0x546a09=_0x1179fb,_0x22e481={'enable'(){const _0x53af67=_0x1bdb,_0x2f20ca=getOptions();if(!_0x2f20ca)return;state[_0x53af67(0x10b)]=!![],void loadOverlay({'overlayPath':_0x2f20ca[_0x53af67(0xec)],'enableViteHmr':_0x2f20ca[_0x53af67(0xee)]['enableViteHmr'],'options':_0x2f20ca,'onToggle':handleToggle}),void registerServiceWorker(_0x2f20ca),void sendConfiguration(),updateOverlay();},'disable'(){const _0x418919=getOptions();if(!_0x418919)return;state['enabled']=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(_0x418919['swPath']);},'status'(){const _0x1bd36f=_0x1bdb;return{'enabled':state[_0x1bd36f(0x10b)],'controlled':state[_0x1bd36f(0x134)]};}};return typeof window!==_0x546a09(0xa8)&&(window[_0x546a09(0x10c)]=_0x22e481),_0x22e481;}function handleToggle(){const _0x4b86c8=_0x1179fb,_0x27d0cc=createController();state[_0x4b86c8(0x10b)]?_0x27d0cc[_0x4b86c8(0xac)]():_0x27d0cc[_0x4b86c8(0x126)]();}function parseUrlParams(){const _0x2f0670=_0x1179fb,_0x563823=new URL(window[_0x2f0670(0x91)]['href']),_0x263d66=_0x563823[_0x2f0670(0xba)][_0x2f0670(0xe9)]('enhance')?.[_0x2f0670(0xf5)](),_0x1bfc51=_0x563823[_0x2f0670(0xba)][_0x2f0670(0xe9)]('enhancementUrl'),_0x457ffc=_0x563823[_0x2f0670(0xba)][_0x2f0670(0xe9)]('enhancement');return{'hasEnhancement':Boolean(_0x1bfc51||_0x457ffc),'explicitDisable':_0x263d66==='0'||_0x263d66===_0x2f0670(0x6d)||_0x263d66===_0x2f0670(0x79),'enhancementUrl':_0x1bfc51,'enhancementId':_0x457ffc};}function cleanUrlParam(_0x2d7887){const _0x305f91=_0x1179fb,_0x5ccd6e=new URL(window[_0x305f91(0x91)]['href']);_0x5ccd6e[_0x305f91(0xba)][_0x305f91(0x85)](_0x2d7887)&&(_0x5ccd6e[_0x305f91(0xba)][_0x305f91(0x109)](_0x2d7887),window[_0x305f91(0x7e)][_0x305f91(0x99)](null,document[_0x305f91(0x9e)],_0x5ccd6e[_0x305f91(0x81)]()));}var package_default={'name':_0x1179fb(0xb3),'version':_0x1179fb(0xe0),'type':_0x1179fb(0x7a),'description':_0x1179fb(0xd1),'license':_0x1179fb(0x77),'main':'./dev/index.js','module':_0x1179fb(0x95),'types':'./dev/index.d.ts','exports':{'.':{'types':'./dev/index.d.ts','import':'./dev/index.js'},'./vite':{'types':'./dev/vite/index.d.ts','import':_0x1179fb(0xcf)}},'files':[_0x1179fb(0xc2)],'bin':{'enhance-sandbox':_0x1179fb(0x6f)},'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':'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':_0x1179fb(0xd8),'build':_0x1179fb(0xd2),'build:release':_0x1179fb(0x129),'build:release:dev':_0x1179fb(0x86),'version':_0x1179fb(0xb9)},'dependencies':{'commander':_0x1179fb(0xb0),'zod':_0x1179fb(0x12f)},'devDependencies':{'@types/node':_0x1179fb(0xf0),'javascript-obfuscator':_0x1179fb(0xd4),'tsup':_0x1179fb(0x128),'vite':_0x1179fb(0xa7)},'publishConfig':{'access':_0x1179fb(0xbb)}},DEFAULT_SERVICE_WORKER_PATH=_0x1179fb(0xaa),DEFAULT_RUNTIME_PATH=_0x1179fb(0xf8),PACKAGE_VERSION=typeof package_default[_0x1179fb(0x71)]==='string'?package_default[_0x1179fb(0x71)]:_0x1179fb(0x70);function normalizeAssetPath(_0x440f05){const _0x19b414=_0x1179fb;if(!_0x440f05)return _0x440f05;if(_0x440f05['startsWith'](_0x19b414(0x66))||_0x440f05['startsWith'](_0x19b414(0x83)))return _0x440f05;const _0xa4b98f=_0x440f05[_0x19b414(0xc0)](/^\.\//,'');return _0xa4b98f[_0x19b414(0x106)]('/')?_0xa4b98f:'/'+_0xa4b98f;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x52f500={}){const _0x26da3d=_0x1179fb;return Enhance[_0x26da3d(0x100)](_0x52f500);},'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 _0x217ea5=_0x1179fb;return Enhance2[_0x217ea5(0x104)]();}function runtimeURL(){const _0x56a3ed=_0x1179fb;return Enhance2[_0x56a3ed(0x11d)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
package/dist/sw-enhance.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(_0x3f26a4,_0xeec18b){const _0x3017c2=_0x2261,_0x118649=_0x3f26a4();while(!![]){try{const _0x53aa13=parseInt(_0x3017c2(0x1c6))/0x1*(parseInt(_0x3017c2(0x146))/0x2)+parseInt(_0x3017c2(0x1c9))/0x3*(-parseInt(_0x3017c2(0x1f9))/0x4)+-parseInt(_0x3017c2(0x16a))/0x5*(-parseInt(_0x3017c2(0x189))/0x6)+-parseInt(_0x3017c2(0x1ea))/0x7*(parseInt(_0x3017c2(0x16e))/0x8)+parseInt(_0x3017c2(0x1a9))/0x9+-parseInt(_0x3017c2(0x19a))/0xa+-parseInt(_0x3017c2(0x167))/0xb*(-parseInt(_0x3017c2(0x242))/0xc);if(_0x53aa13===_0xeec18b)break;else _0x118649['push'](_0x118649['shift']());}catch(_0x4189e5){_0x118649['push'](_0x118649['shift']());}}}(_0x35f0,0xd4462));function _0x35f0(){const _0x3ec7fe=['/sockjs-node','56GGQCpq','enhancement','test','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20\x20\x20\x20\x20\x20}','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','__esModule','host','\x20\x20\x20HTML\x20response\x20-\x20processing...','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','function','Enhancement\x20document\x20CORS\x20blocked','full','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','font-src\x20*\x20data:','\x20\x20\x20Document\x20fetch\x20error:','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','/__vite/client','\x20fetchEnhancementDocument:\x20','\x20\x20\x20BYPASS:\x20','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','activate','clone','\x20-\x20falling\x20back\x20to\x20production','href','6iwHSzH','message','\x20\x20\x20\x20}',')\x20-\x20returning\x20null','\x5c1[^>]*>\x5cs*</script>','error','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','x-enhance-document-source','sharedworker','https://','hasOwnProperty','/__vite_ping','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','\x20\x20\x20\x20\x20\x20return\x20false;','trim','log','getOwnPropertyDescriptor','17300160rvycep','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','origin','vite-hmr','\x20\x20\x20Enhancement\x20MISS\x20for\x20','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','delete','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','[Enhance\x20SW\x20Document]','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','destination','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','7189065bGklMz','\x20\x20\x20Production\x20response:\x20','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','$&\x0a','style',',\x20type:\x20','value','frame-ancestors\x20','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','/vite/client','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','toLowerCase','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','fetch','default','push','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','include','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','match','\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','enhancement-document','cross-origin-opener-policy','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','(async\x20()\x20=>\x20{','\x0a</body>','35326yfpXFg','[Enhance\x20SW]','\x20\x20\x20Content-Type:\x20','13695foOQzC','stringify','\x5cu003c','font','headers','mode','info','\x20Customer\x20config\x20updated:','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','respondWith','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','url','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','[Enhance\x20SW\x20Bootstrap]','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','Enhancement\x20CORS\x20blocked','\x20injectRuntimeBootstrap()\x20called','\x20\x20\x20Not\x20OK\x20(','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','search','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','call','statusText','\x20\x20\x20Fetching\x20enhancement\x20document...','\x20rewriteDocument()\x20called','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','callbackBypass','enhance:configure','\x20Calling\x20clients.claim()...','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','enhancementUrl','enhancementBase','522977Sbzxkf','permissive','\x20\x20\x20\x20\x20\x20return\x20proxied;','install','content-type','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20MESSAGE\x20received:','\x20\x20try\x20{','follow','navigate','cross-origin-embedder-policy','\x20\x20\x20Fetching\x20production\x20response...','/sw-enhance.js','\x20clients.claim()\x20complete','1404qEgGyg','includes','access-control-expose-headers','\x20fetchFromEnhancement:\x20','join','worker-src\x20\x27self\x27\x20blob:','\x20shouldRouteAsset:\x20','</script>','text','\x20\x20\x20source:\x20','Enhancement\x20document\x20fetch\x20failed','production','\x20\x20\x20Rewriting\x20document...',',\x20destination:\x20','(function(){','src','http://','skipWaiting','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','\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\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20chars)','\x20\x20\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','cors','/snowpack/hmr','access-control-allow-origin','GET','debug','\x20\x20\x20securityMode:\x20','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','\x20\x20\x20shouldInjectOverlay:\x20','\x20\x20\x20Document\x20source:\x20','rewritten','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','content-security-policy','set','get','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20}','securityMode','redirect','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','x-enhance-routing','Failed\x20to\x20rewrite\x20document','/__webpack_hmr','Enhancement\x20miss\x20','addEventListener','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','stylesheet','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','/auth/callback','\x20\x20\x20Applying\x20permissive\x20CSP...','/__parcel_hmr','toISOString','searchParams','\x20skipWaiting()\x20complete','overlayPath','toString','HEAD','status','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','getOwnPropertyNames','set-cookie','prototype','23829276eQAUDR','<script\x20data-enhance-hmr-bridge>','\x20\x20\x20Document\x20rewrite\x20complete','\x20Calling\x20skipWaiting()...','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','cache-control','x-enhance-enhancement','startsWith','https://assets-dev.enhancelabs.ai/overlay.js','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','cross-origin-resource-policy','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','hit','\x20\x20\x20Script\x20inserted\x20into\x20document','https://enhance-api-dev.enhancelabs.workers.dev','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','set-cookie2','access-control-allow-credentials','data','\x20\x20\x20Enhancement\x20HIT\x20for\x20','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','modulepreload','/__snowpack__','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','\x20handleNavigationRequest:\x20','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','has','add','\x20INSTALL\x20event','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','\x20for\x20','\x20Build\x20config:','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','type','/webpack-hot-middleware','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','media-src\x20*\x20data:\x20blob:','callbackBypassNormalized','\x20chars','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','\x20\x20\x20\x20\x20\x20return;','replace','\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','image','pathname','config',',\x20null,\x202));','\x20ACTIVATE\x20event','74qNQloP','\x20\x20\x20enhancementUrl:\x20','waitUntil','})();','Enhancement\x20fetch\x20failed','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','method','opaque','none','connect-src\x20*','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','claim','worker','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','\x20\x20}','backendUrl','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20Fetching\x20from\x20enhancement...','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','\x20Caching\x20enhancementUrl\x20from\x20navigation:\x20','location','\x20\x20\x20Rewriting\x20entry\x20references...','/_next/webpack-hmr','length','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])','[Enhance\x20SW\x20Routing]','runtimeScriptPath','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20Response:\x20','\x20\x20\x20\x20};','11fjRXSK','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','\x20matches\x20callbackBypass','3165810WdLadw','\x20\x20\x20Enhancement\x20URL:\x20','\x20\x20\x20Enhancement\x20document\x20URL:\x20'];_0x35f0=function(){return _0x3ec7fe;};return _0x35f0();}function _0x2261(_0x337a6e,_0x393f40){_0x337a6e=_0x337a6e-0x113;const _0x35f0e1=_0x35f0();let _0x22610b=_0x35f0e1[_0x337a6e];return _0x22610b;}var EnhanceSW=((()=>{const _0x276728=_0x2261;var _0x5f0a17=Object['defineProperty'],_0x27f286=Object[_0x276728(0x199)],_0x587db9=Object[_0x276728(0x23f)],_0x300288=Object[_0x276728(0x241)][_0x276728(0x193)],_0x12b91d=(_0xdded9,_0x56ea4e)=>{for(var _0x2aa6a3 in _0x56ea4e)_0x5f0a17(_0xdded9,_0x2aa6a3,{'get':_0x56ea4e[_0x2aa6a3],'enumerable':!![]});},_0x2f6388=(_0x2b588d,_0x54d5ac,_0x3816d9,_0x3416ae)=>{const _0x1e106e=_0x276728;if(_0x54d5ac&&typeof _0x54d5ac==='object'||typeof _0x54d5ac===_0x1e106e(0x179)){for(let _0x1ca76f of _0x587db9(_0x54d5ac))if(!_0x300288[_0x1e106e(0x1df)](_0x2b588d,_0x1ca76f)&&_0x1ca76f!==_0x3816d9)_0x5f0a17(_0x2b588d,_0x1ca76f,{'get':()=>_0x54d5ac[_0x1ca76f],'enumerable':!(_0x3416ae=_0x27f286(_0x54d5ac,_0x1ca76f))||_0x3416ae['enumerable']});}return _0x2b588d;},_0x15c80f=_0x5bfe92=>_0x2f6388(_0x5f0a17({},_0x276728(0x174),{'value':!![]}),_0x5bfe92),_0x330128={};_0x12b91d(_0x330128,{'log':()=>_0x4cf6d4});var _0x2f8c71=_0x276728(0x1e5),_0x2dfb5c='enhance:disable';function _0x18df0b(_0x4ecf98){const _0x24a6a2=_0x276728;if(!_0x4ecf98[_0x24a6a2(0x118)]('/'))return'/'+_0x4ecf98;return _0x4ecf98;}function _0x33561d(_0x1dd713,_0x17ab97){const _0x3f2e5b=_0x276728,_0x83e3c4=new URL(_0x1dd713[_0x3f2e5b(0x23a)]()),_0xbd6501=_0x83e3c4[_0x3f2e5b(0x142)]['endsWith']('/')?_0x83e3c4[_0x3f2e5b(0x142)]['slice'](0x0,-0x1):_0x83e3c4['pathname'],_0x46f543=_0x17ab97[_0x3f2e5b(0x142)][_0x3f2e5b(0x118)]('/')?_0x17ab97[_0x3f2e5b(0x142)]:'/'+_0x17ab97[_0x3f2e5b(0x142)];return _0x83e3c4['pathname']=(''+_0xbd6501+_0x46f543)[_0x3f2e5b(0x13e)](/\/+/g,'/'),_0x83e3c4[_0x3f2e5b(0x1dd)]=_0x17ab97[_0x3f2e5b(0x1dd)],_0x83e3c4['hash']='',_0x83e3c4;}var _0x2d5750=_0x276728(0x161),_0x4a215c=new Set(['script',_0x276728(0x1ad),_0x276728(0x1cc),_0x276728(0x141),_0x276728(0x152),_0x276728(0x191),_0x276728(0x127)]);function _0x5003a9(_0x47775f){const _0x10ef71=_0x276728,_0x3c549c=_0x47775f[_0x10ef71(0x14c)]===_0x10ef71(0x217)||_0x47775f['method']===_0x10ef71(0x23b);return _0x3c549c;}function _0x4b79c8(_0x3ce3cd,_0x5ec97a){const _0xd328a5=_0x276728,_0x2dbccc=_0x18df0b(_0x5ec97a),_0x477375=_0x3ce3cd[_0xd328a5(0x13a)]['some'](_0x10ec2d=>_0x2dbccc[_0xd328a5(0x118)](_0x10ec2d));return _0x477375;}function _0x352add(_0x67534c,_0x5a5bc5,_0x4d24aa){const _0x36a74d=_0x276728,_0x14c802=_0x5a5bc5['destination'];if(!_0x14c802||!_0x4a215c[_0x36a74d(0x12f)](_0x14c802))return![];if(_0x1e2906(_0x67534c,_0x4d24aa))return console[_0x36a74d(0x198)](_0x2d5750+_0x36a74d(0x1ff)+_0x4d24aa[_0x36a74d(0x142)]+_0x36a74d(0x15f)),![];if(_0xe169bc(_0x67534c,_0x4d24aa))return console[_0x36a74d(0x198)](_0x2d5750+'\x20shouldRouteAsset:\x20'+_0x4d24aa[_0x36a74d(0x142)]+'\x20is\x20runtime\x20asset\x20-\x20not\x20routing'),![];if(_0x4d24aa['origin']!==self[_0x36a74d(0x15b)][_0x36a74d(0x19c)])return![];return!![];}async function _0x4a43d8(_0xf66b30,_0xf66e43,_0x68b538){const _0x53ac29=_0x276728;console[_0x53ac29(0x198)](_0x2d5750+_0x53ac29(0x1fc)+_0x68b538[_0x53ac29(0x142)]);if(!_0xf66b30[_0x53ac29(0x1e9)])return console[_0x53ac29(0x198)](_0x2d5750+_0x53ac29(0x1b4)),null;const _0x1996a2=_0x5cbbf3(_0xf66b30,_0x68b538);console[_0x53ac29(0x198)](_0x2d5750+_0x53ac29(0x16b)+_0x1996a2['toString']());const _0x51ed7e=new Headers(_0xf66e43['headers']);_0x51ed7e['set'](_0x53ac29(0x22b),'enhancement'),_0x51ed7e[_0x53ac29(0x1a0)](_0x53ac29(0x175));const _0x3293b5=new Request(_0x1996a2['toString'](),{'method':_0xf66e43['method'],'headers':_0x51ed7e,'credentials':_0x53ac29(0x1bb),'redirect':_0xf66e43[_0x53ac29(0x229)],'cache':_0x53ac29(0x1b8),'mode':_0x53ac29(0x214)});try{console[_0x53ac29(0x198)](_0x2d5750+_0x53ac29(0x157));const _0x2973fc=await fetch(_0x3293b5);console[_0x53ac29(0x198)](_0x2d5750+'\x20\x20\x20Response:\x20'+_0x2973fc['status']+'\x20'+_0x2973fc[_0x53ac29(0x1e0)]+_0x53ac29(0x1ae)+_0x2973fc[_0x53ac29(0x136)]);if(_0x2973fc[_0x53ac29(0x136)]===_0x53ac29(0x14d))return console['log'](_0x2d5750+_0x53ac29(0x173)),_0x4cf6d4('info',_0x53ac29(0x1d9),_0x1996a2[_0x53ac29(0x23a)]()),null;if(!_0x2973fc['ok'])return console['log'](_0x2d5750+_0x53ac29(0x1db)+_0x2973fc['status']+')\x20-\x20returning\x20null'),_0x4cf6d4('debug',_0x53ac29(0x22e)+_0x2973fc[_0x53ac29(0x23c)]+_0x53ac29(0x133)+_0x1996a2['pathname']),null;return console[_0x53ac29(0x198)](_0x2d5750+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),_0x21f595(_0x2973fc,_0xf66e43[_0x53ac29(0x14c)]);}catch(_0x1fcbd7){return console[_0x53ac29(0x18e)](_0x2d5750+'\x20\x20\x20Fetch\x20error:',_0x1fcbd7),_0x4cf6d4('info',_0x53ac29(0x14a),_0x1fcbd7),null;}}async function _0x1b95e3(_0x5d29b0,_0xc8ac77){const _0x5b8fb5=_0x276728,_0xe6ca7b=new URL(_0xc8ac77[_0x5b8fb5(0x1d4)]);console[_0x5b8fb5(0x198)](_0x2d5750+_0x5b8fb5(0x181)+_0xe6ca7b[_0x5b8fb5(0x142)]+_0xe6ca7b[_0x5b8fb5(0x1dd)]);if(!_0x5d29b0['enhancementBase'])return console[_0x5b8fb5(0x198)](_0x2d5750+_0x5b8fb5(0x21a)),null;const _0x4444c0=_0x5cbbf3(_0x5d29b0,_0xe6ca7b);console[_0x5b8fb5(0x198)](_0x2d5750+_0x5b8fb5(0x16c)+_0x4444c0['toString']());const _0x45b3f4=new Headers(_0xc8ac77[_0x5b8fb5(0x1cd)]);_0x45b3f4[_0x5b8fb5(0x224)](_0x5b8fb5(0x22b),_0x5b8fb5(0x1c1)),_0x45b3f4[_0x5b8fb5(0x1a0)](_0x5b8fb5(0x175)),_0x45b3f4[_0x5b8fb5(0x1a0)]('content-length');const _0x9aaaf5=new Request(_0x4444c0['toString'](),{'method':_0x5b8fb5(0x217),'headers':_0x45b3f4,'credentials':_0x5b8fb5(0x1bb),'redirect':_0x5b8fb5(0x1f3),'cache':'default','mode':'cors'});try{console[_0x5b8fb5(0x198)](_0x2d5750+_0x5b8fb5(0x1e1));const _0x1d03d4=await fetch(_0x9aaaf5);console['log'](_0x2d5750+_0x5b8fb5(0x165)+_0x1d03d4[_0x5b8fb5(0x23c)]+'\x20'+_0x1d03d4[_0x5b8fb5(0x1e0)]+_0x5b8fb5(0x1ae)+_0x1d03d4[_0x5b8fb5(0x136)]),console[_0x5b8fb5(0x198)](_0x2d5750+'\x20\x20\x20Content-Type:\x20'+_0x1d03d4[_0x5b8fb5(0x1cd)][_0x5b8fb5(0x225)]('content-type'));if(_0x1d03d4[_0x5b8fb5(0x136)]===_0x5b8fb5(0x14d))return console[_0x5b8fb5(0x198)](_0x2d5750+_0x5b8fb5(0x173)),_0x4cf6d4(_0x5b8fb5(0x1cf),_0x5b8fb5(0x17a),_0x4444c0[_0x5b8fb5(0x23a)]()),null;if(!_0x1d03d4['ok'])return console[_0x5b8fb5(0x198)](_0x2d5750+_0x5b8fb5(0x1db)+_0x1d03d4[_0x5b8fb5(0x23c)]+_0x5b8fb5(0x18c)),_0x4cf6d4(_0x5b8fb5(0x218),'Enhancement\x20document\x20miss\x20'+_0x1d03d4[_0x5b8fb5(0x23c)]+_0x5b8fb5(0x133)+_0x4444c0['pathname']),null;if(!_0x38037b(_0x1d03d4))return console[_0x5b8fb5(0x198)](_0x2d5750+_0x5b8fb5(0x21b)),null;return console[_0x5b8fb5(0x198)](_0x2d5750+_0x5b8fb5(0x232)),_0x21f595(_0x1d03d4,_0x5b8fb5(0x217));}catch(_0x555da0){return console[_0x5b8fb5(0x18e)](_0x2d5750+_0x5b8fb5(0x17e),_0x555da0),_0x4cf6d4('info',_0x5b8fb5(0x203),_0x555da0),null;}}function _0x5cbbf3(_0x2082e5,_0x4c993d){const _0x2ae26c=_0x276728;if(!_0x2082e5['enhancementBase'])throw new Error(_0x2ae26c(0x222));return _0x33561d(_0x2082e5['enhancementBase'],_0x4c993d);}function _0x21f595(_0x59f5ee,_0x8c4846){const _0x48e581=_0x276728,_0x4e71d2=_0x59f5ee[_0x48e581(0x186)](),_0x6fb25f=new Headers(_0x4e71d2[_0x48e581(0x1cd)]);_0x6fb25f['delete'](_0x48e581(0x216)),_0x6fb25f[_0x48e581(0x1a0)](_0x48e581(0x123)),_0x6fb25f[_0x48e581(0x1a0)](_0x48e581(0x1fb)),_0x6fb25f[_0x48e581(0x224)](_0x48e581(0x117),_0x48e581(0x11e)),_0x274031(_0x6fb25f);const _0x1ecc8e=_0x8c4846===_0x48e581(0x23b)?null:_0x4e71d2['body'];return new Response(_0x1ecc8e,{'status':_0x4e71d2['status'],'statusText':_0x4e71d2[_0x48e581(0x1e0)],'headers':_0x6fb25f});}function _0x38037b(_0x18cba8){const _0x131d76=_0x276728,_0x9dcf5c=_0x18cba8[_0x131d76(0x1cd)][_0x131d76(0x225)](_0x131d76(0x1ee));return _0x9dcf5c!=null&&_0x9dcf5c[_0x131d76(0x1fa)]('text/html');}function _0x1e2906(_0x150d8f,_0x1ebd07){const _0x2a77cd=_0x276728;return _0x23a269(_0x1ebd07,_0x150d8f[_0x2a77cd(0x239)]);}function _0xe169bc(_0x2220cd,_0xd7c2de){const _0x42babe=_0x276728;return _0x220c2b(_0xd7c2de,_0x2220cd[_0x42babe(0x162)]);}function _0x23a269(_0x461d80,_0x2e3029){const _0x27a6c1=_0x276728;if(!_0x2e3029)return![];if(_0x2e3029['startsWith'](_0x27a6c1(0x209))||_0x2e3029[_0x27a6c1(0x118)](_0x27a6c1(0x192)))return _0x461d80[_0x27a6c1(0x188)]===_0x2e3029;const _0x25b255=_0x32b072(_0x2e3029);if(!_0x25b255)return![];const _0x29392f=''+_0x461d80['pathname']+_0x461d80[_0x27a6c1(0x1dd)];if(_0x29392f===_0x25b255)return!![];if(_0x461d80[_0x27a6c1(0x1dd)]==='?import')return _0x461d80[_0x27a6c1(0x142)]===_0x25b255;return![];}function _0x220c2b(_0x488f0c,_0x5d4422){const _0x45ab3e=_0x276728;if(!_0x5d4422)return![];if(_0x5d4422[_0x45ab3e(0x118)](_0x45ab3e(0x209))||_0x5d4422[_0x45ab3e(0x118)](_0x45ab3e(0x192)))return _0x488f0c[_0x45ab3e(0x188)]===_0x5d4422;const _0x1a5d9a=_0x32b072(_0x5d4422);if(!_0x1a5d9a)return![];const _0x3d2ecd=''+_0x488f0c[_0x45ab3e(0x142)]+_0x488f0c[_0x45ab3e(0x1dd)];return _0x3d2ecd===_0x1a5d9a;}function _0x32b072(_0x5137bb){const _0x274de3=_0x276728;if(!_0x5137bb)return _0x5137bb;if(_0x5137bb[_0x274de3(0x118)]('http://')||_0x5137bb['startsWith'](_0x274de3(0x192)))return _0x5137bb;const _0x40a812=_0x5137bb[_0x274de3(0x13e)](/^\.\//,'');if(_0x40a812['startsWith']('/'))return _0x40a812;return'/'+_0x40a812;}function _0x274031(_0x3e8437){const _0x293796=_0x276728;_0x3e8437[_0x293796(0x1a0)](_0x293796(0x240)),_0x3e8437[_0x293796(0x1a0)](_0x293796(0x122));}function _0x1a6449(_0x165494){const _0x57c6ef=_0x276728,_0x5d1c5f=['default-src\x20\x27self\x27\x20blob:\x20data:','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:',_0x57c6ef(0x1d6),'img-src\x20*\x20data:\x20blob:',_0x57c6ef(0x17d),_0x57c6ef(0x14f),_0x57c6ef(0x139),_0x57c6ef(0x1fe),'object-src\x20\x27none\x27'],_0x3632c=_0x51283f(_0x165494);return _0x3632c&&_0x5d1c5f[_0x57c6ef(0x1b9)](_0x3632c),_0x5d1c5f[_0x57c6ef(0x1fd)](';\x20');}function _0x5f17ae(_0x2de377){const _0x51ab94=_0x276728;_0x2de377[_0x51ab94(0x1a0)](_0x51ab94(0x240)),_0x2de377[_0x51ab94(0x1a0)](_0x51ab94(0x122));}function _0x51283f(_0x4bb4a0){const _0x3f7343=_0x276728;if(!_0x4bb4a0)return null;const _0x2e6cbd=_0x4bb4a0['match'](/frame-ancestors\s+([^;]+)/i);if(!_0x2e6cbd)return null;return _0x3f7343(0x1b0)+_0x2e6cbd[0x1][_0x3f7343(0x197)]();}function _0x15acae(_0x3b2dbd,_0x6b362c){const _0x19adad=_0x276728;if(/<head[^>]*>/i[_0x19adad(0x170)](_0x3b2dbd)){const _0x3a2b95=_0x3b2dbd['match'](/<head[^>]*>/i);if(_0x3a2b95){const _0x283c8c=_0x3a2b95[0x0];return _0x3b2dbd[_0x19adad(0x13e)](_0x283c8c,_0x283c8c+'\x0a'+_0x6b362c);}}if(/<\/head>/i[_0x19adad(0x170)](_0x3b2dbd))return _0x3b2dbd[_0x19adad(0x13e)](/<\/head>/i,_0x6b362c+'\x0a</head>');if(/<body\b[^>]*>/i[_0x19adad(0x170)](_0x3b2dbd))return _0x3b2dbd[_0x19adad(0x13e)](/<body\b[^>]*>/i,_0x19adad(0x1ac)+_0x6b362c);if(/<\/body>/i['test'](_0x3b2dbd))return _0x3b2dbd['replace'](/<\/body>/i,_0x6b362c+_0x19adad(0x1c5));return _0x6b362c+'\x0a'+_0x3b2dbd;}var _0x3730c7=[_0x276728(0x19d)],_0x17a57d=['/@vite/client',_0x276728(0x180),_0x276728(0x1b2),_0x276728(0x194),_0x276728(0x16d),'/webpack-dev-server','/webpack-hmr','/webpackhotmiddleware',_0x276728(0x137),_0x276728(0x22d),_0x276728(0x15d),'/parcel-hmr',_0x276728(0x235),_0x276728(0x128),_0x276728(0x215)];function _0x33be05(_0x25a97e,_0x7c8fab){const _0x58dc56=_0x547a49(_0x25a97e);if(!_0x58dc56)return _0x7c8fab;return _0x15acae(_0x7c8fab,_0x58dc56);}function _0x547a49(_0x1986ad){const _0x22f327=_0x276728;if(!_0x1986ad[_0x22f327(0x1e9)])return null;const _0x3d3d1d=_0x1986ad[_0x22f327(0x1e9)]['toString'](),_0x21442f=_0x65a9e3(_0x3730c7),_0x4a9463=_0x65a9e3(_0x17a57d),_0x332c07=[_0x22f327(0x243),_0x22f327(0x207),_0x22f327(0x1f2),'\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL('+JSON[_0x22f327(0x1ca)](_0x3d3d1d)+');',_0x22f327(0x20f),_0x22f327(0x1ef),_0x22f327(0x13d),_0x22f327(0x18b),_0x22f327(0x153)+JSON[_0x22f327(0x1ca)](_0x21442f)+');',_0x22f327(0x230)+JSON[_0x22f327(0x1ca)](_0x4a9463)+';',_0x22f327(0x1ba),_0x22f327(0x1d3),'\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];',_0x22f327(0x138),_0x22f327(0x166),_0x22f327(0x195),'\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts',_0x22f327(0x14b),'\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);',_0x22f327(0x135),_0x22f327(0x1bf),_0x22f327(0x150),_0x22f327(0x1bf),'\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;',_0x22f327(0x23d),'\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;',_0x22f327(0x172),_0x22f327(0x1f0),_0x22f327(0x210),_0x22f327(0x159),_0x22f327(0x20d),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0x22f327(0x227),'\x20\x20\x20\x20\x20\x20}',_0x22f327(0x1de),_0x22f327(0x11d),_0x22f327(0x1ab),_0x22f327(0x1c3),_0x22f327(0x227),'\x20\x20\x20\x20\x20\x20}',_0x22f327(0x196),'\x20\x20\x20\x20};',_0x22f327(0x21f),_0x22f327(0x163),_0x22f327(0x126),_0x22f327(0x1a1),_0x22f327(0x18f),_0x22f327(0x1ec),_0x22f327(0x166),_0x22f327(0x226),_0x22f327(0x212),_0x22f327(0x20e),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{',_0x22f327(0x213),_0x22f327(0x1bd),_0x22f327(0x227),_0x22f327(0x1c0),_0x22f327(0x184),'\x20\x20\x20\x20\x20\x20}',_0x22f327(0x177),_0x22f327(0x166),_0x22f327(0x164),_0x22f327(0x132),_0x22f327(0x1b6),_0x22f327(0x13f),_0x22f327(0x19f),_0x22f327(0x17c),_0x22f327(0x11a),_0x22f327(0x18b),'\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});',_0x22f327(0x13c),'\x20\x20}\x20catch\x20(error)\x20{',_0x22f327(0x140),_0x22f327(0x154),_0x22f327(0x149),'</script>'];return _0x332c07['join']('\x0a');}function _0x65a9e3(_0x516c69){const _0x2e7a16=_0x276728,_0x8100c=new Set(),_0x3db62a=[];for(const _0x4c853d of _0x516c69){const _0x48cada=_0x4c853d[_0x2e7a16(0x1b5)]();if(_0x8100c[_0x2e7a16(0x12f)](_0x48cada))continue;_0x8100c[_0x2e7a16(0x130)](_0x48cada),_0x3db62a[_0x2e7a16(0x1b9)](_0x48cada);}return _0x3db62a;}var _0x657d1a=_0x276728(0x1d7);function _0x3a04fd(_0x4f8b44,_0x4081f4){const _0x1426f8=_0x276728;console[_0x1426f8(0x198)](_0x657d1a+_0x1426f8(0x1da)),console[_0x1426f8(0x198)](_0x657d1a+'\x20\x20\x20runtimeScriptPath:\x20'+_0x4f8b44[_0x1426f8(0x162)]),console[_0x1426f8(0x198)](_0x657d1a+'\x20\x20\x20overlayPath:\x20'+_0x4f8b44[_0x1426f8(0x239)]);const _0x13a59b=_0xd5c3a3(_0x4f8b44);if(!_0x13a59b)return console[_0x1426f8(0x198)](_0x657d1a+_0x1426f8(0x129)),_0x4081f4;console[_0x1426f8(0x198)](_0x657d1a+'\x20\x20\x20Bootstrap\x20script\x20generated\x20('+_0x13a59b[_0x1426f8(0x15e)]+_0x1426f8(0x211));const _0xe26d5b=_0x152411(_0x4081f4,_0x4f8b44[_0x1426f8(0x162)]);console[_0x1426f8(0x198)](_0x657d1a+_0x1426f8(0x1b1));const _0x245c73=_0x15acae(_0xe26d5b,_0x13a59b);return console[_0x1426f8(0x198)](_0x657d1a+_0x1426f8(0x11f)),_0x245c73;}function _0xd5c3a3(_0x3308b1){const _0x2a6e24=_0x276728,_0x40ca0b=_0x3308b1[_0x2a6e24(0x162)];if(!_0x40ca0b)return console[_0x2a6e24(0x198)](_0x657d1a+'\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null'),null;const _0x5bef7e=_0x3c175b(_0x3308b1);console[_0x2a6e24(0x198)](_0x657d1a+'\x20Bootstrap\x20options:',JSON['stringify'](_0x5bef7e,null,0x2));const _0x3e5aa0=_0x49ae16(_0x5bef7e),_0x17485a=JSON[_0x2a6e24(0x1ca)](_0x40ca0b),_0x20a372=[_0x2a6e24(0x12b),_0x2a6e24(0x1c4),_0x2a6e24(0x1f2),_0x2a6e24(0x1a4)+_0x17485a+';','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);',_0x2a6e24(0x1d5),_0x2a6e24(0x17f),_0x2a6e24(0x121),'\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{',_0x2a6e24(0x1e7),_0x2a6e24(0x13d),'\x20\x20\x20\x20}',_0x2a6e24(0x20b)+_0x3e5aa0+_0x2a6e24(0x144),_0x2a6e24(0x1a2)+_0x3e5aa0+');',_0x2a6e24(0x19b),_0x2a6e24(0x1b3),_0x2a6e24(0x1d8),_0x2a6e24(0x1bc),'\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',_0x2a6e24(0x1d1),'\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;',_0x2a6e24(0x23e),_0x2a6e24(0x18b),_0x2a6e24(0x1dc),'\x20\x20}\x20catch\x20(error)\x20{',_0x2a6e24(0x1e3),_0x2a6e24(0x154),_0x2a6e24(0x149),_0x2a6e24(0x200)];return _0x20a372[_0x2a6e24(0x1fd)]('\x0a');}function _0x3c175b(_0x58d8ba){const _0x1343de=_0x276728,_0x505169={'callbackBypass':_0x58d8ba[_0x1343de(0x1e4)],'__development':{'enableOverlayHmr':_0x58d8ba['overlayEnableViteHmr'],'overlayPath':_0x58d8ba[_0x1343de(0x239)],'security':_0x58d8ba['securityMode'],'backendUrl':_0x58d8ba[_0x1343de(0x155)]}};return _0x505169;}function _0x49ae16(_0xeaa6b5){const _0xfdf072=_0x276728;return JSON['stringify'](_0xeaa6b5)['replace'](/</g,_0xfdf072(0x1cb))[_0xfdf072(0x13e)](/>/g,'\x5cu003e');}function _0x152411(_0xccf1ae,_0x4db517){const _0x390f4a=_0x276728,_0x8f6e9a=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0xd56002=_0xccf1ae['replace'](_0x8f6e9a,'');if(_0x4db517){const _0x579cbe=_0x4d67e8(_0x4db517),_0x1bb519=new RegExp(_0x390f4a(0x160)+_0x579cbe+_0x390f4a(0x18d),'gi');_0xd56002=_0xd56002[_0x390f4a(0x13e)](_0x1bb519,'');}return _0xd56002;}function _0x4d67e8(_0x5c36cc){return _0x5c36cc['replace'](/[-/\\^$*+?.()|[\]{}]/g,'\x5c$&');}function _0x55c41c(_0x324398,_0x448fc8){const _0xe07a04=_0x276728,_0x5a51e6=_0x9ab6a2=>_0x363d1a(_0x324398,_0x9ab6a2),_0x4ca656=_0x5cd064=>_0x13a598(_0x324398,_0x5cd064);return _0x448fc8[_0xe07a04(0x13e)](/<script\b[^>]*>/gi,_0x5a51e6)[_0xe07a04(0x13e)](/<link\b[^>]*>/gi,_0x4ca656);}function _0x1911ad(_0x210d63){const _0x12a391=_0x276728;return _0x210d63[_0x12a391(0x13e)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x363d1a(_0x2317f5,_0x2c939b){const _0x40eddd=_0x276728,_0x3afc02=_0x55953e(_0x2c939b,_0x40eddd(0x208));if(!_0x3afc02)return _0x2c939b;const _0x5784be=_0x113530(_0x2317f5,_0x3afc02[_0x40eddd(0x1af)]);if(!_0x5784be||_0x5784be===_0x3afc02[_0x40eddd(0x1af)])return _0x2c939b;const _0x2d8ee0=_0x3afc02[_0x40eddd(0x17b)]['replace'](_0x3afc02[_0x40eddd(0x1af)],_0x5784be);return _0x2c939b[_0x40eddd(0x13e)](_0x3afc02['full'],_0x2d8ee0);}function _0x13a598(_0x44485,_0x2c0c86){const _0x418847=_0x276728,_0x450aaf=_0x2c0c86[_0x418847(0x1be)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x450aaf)return _0x2c0c86;const _0x3506f9=_0x450aaf[0x2][_0x418847(0x1b5)]();if(_0x3506f9!==_0x418847(0x231)&&_0x3506f9!==_0x418847(0x127))return _0x2c0c86;const _0x3a1bcd=_0x55953e(_0x2c0c86,'href');if(!_0x3a1bcd)return _0x2c0c86;const _0x40ee0e=_0x113530(_0x44485,_0x3a1bcd[_0x418847(0x1af)]);if(!_0x40ee0e||_0x40ee0e===_0x3a1bcd[_0x418847(0x1af)])return _0x2c0c86;const _0x50302b=_0x3a1bcd[_0x418847(0x17b)][_0x418847(0x13e)](_0x3a1bcd['value'],_0x40ee0e);return _0x2c0c86[_0x418847(0x13e)](_0x3a1bcd[_0x418847(0x17b)],_0x50302b);}function _0x55953e(_0x1d26c4,_0x43ad52){const _0x200dd2=_0x276728,_0x2e0013=new RegExp(_0x43ad52+'\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','i'),_0x586463=_0x1d26c4[_0x200dd2(0x1be)](_0x2e0013);if(!_0x586463)return null;return{'full':_0x586463[0x0],'value':_0x586463[0x2]};}function _0x113530(_0x59362d,_0x4161bc){const _0x2917bb=_0x276728,_0x5f0c3b=_0x4045c7(_0x4161bc);if(!_0x5f0c3b)return null;if(_0x5f0c3b[_0x2917bb(0x19c)]===self[_0x2917bb(0x15b)]['origin'])return''+_0x5f0c3b[_0x2917bb(0x142)]+_0x5f0c3b[_0x2917bb(0x1dd)];return null;}function _0x4045c7(_0x541c2){const _0x22a61f=_0x276728;try{return new URL(_0x541c2,self[_0x22a61f(0x15b)][_0x22a61f(0x19c)]);}catch{return null;}}var _0x409652=_0x276728(0x1a3);async function _0x5b85e6(_0x5a42fd,_0x385435,_0x1dde1e,_0x57d0e7=!![]){const _0x518fdd=_0x276728;console[_0x518fdd(0x198)](_0x409652+_0x518fdd(0x1e2)),console[_0x518fdd(0x198)](_0x409652+_0x518fdd(0x202)+_0x1dde1e),console[_0x518fdd(0x198)](_0x409652+_0x518fdd(0x21c)+_0x57d0e7),console['log'](_0x409652+_0x518fdd(0x219)+_0x5a42fd['securityMode']);const _0x1ee63c=_0x385435['clone'](),_0x69ff89=await _0x1ee63c[_0x518fdd(0x201)]();console[_0x518fdd(0x198)](_0x409652+_0x518fdd(0x156)+_0x69ff89[_0x518fdd(0x15e)]+_0x518fdd(0x13b)),console[_0x518fdd(0x198)](_0x409652+_0x518fdd(0x171));const _0xdf3af3=_0x1911ad(_0x69ff89);console['log'](_0x409652+_0x518fdd(0x15c));let _0x4b2896=_0x55c41c(_0x5a42fd,_0xdf3af3);_0x1dde1e===_0x518fdd(0x16f)?(console[_0x518fdd(0x198)](_0x409652+_0x518fdd(0x183)),_0x4b2896=_0x33be05(_0x5a42fd,_0x4b2896)):console[_0x518fdd(0x198)](_0x409652+_0x518fdd(0x168));_0x57d0e7?(console['log'](_0x409652+_0x518fdd(0x12e)),_0x4b2896=_0x3a04fd(_0x5a42fd,_0x4b2896)):console[_0x518fdd(0x198)](_0x409652+_0x518fdd(0x1a6));console[_0x518fdd(0x198)](_0x409652+_0x518fdd(0x115)+_0x4b2896[_0x518fdd(0x15e)]+_0x518fdd(0x13b));const _0x1f8ff6=new Headers(_0x1ee63c[_0x518fdd(0x1cd)]);_0x1f8ff6[_0x518fdd(0x224)](_0x518fdd(0x116),'no-store'),_0x1f8ff6[_0x518fdd(0x224)]('x-enhance-document',_0x518fdd(0x21e)),_0x1f8ff6[_0x518fdd(0x224)](_0x518fdd(0x190),_0x1dde1e),_0x5f17ae(_0x1f8ff6);if(_0x5a42fd['securityMode']!=='custom'){console[_0x518fdd(0x198)](_0x409652+_0x518fdd(0x234));const _0x1f9749=_0x1f8ff6[_0x518fdd(0x225)]('content-security-policy');_0x1f8ff6['set'](_0x518fdd(0x223),_0x1a6449(_0x1f9749)),_0x1f8ff6[_0x518fdd(0x1a0)](_0x518fdd(0x1c2)),_0x1f8ff6[_0x518fdd(0x1a0)](_0x518fdd(0x1f5)),_0x1f8ff6[_0x518fdd(0x1a0)](_0x518fdd(0x11c));}else console[_0x518fdd(0x198)](_0x409652+_0x518fdd(0x1a8));return console['log'](_0x409652+_0x518fdd(0x113)),new Response(_0x4b2896,{'status':_0x1ee63c[_0x518fdd(0x23c)],'statusText':_0x1ee63c[_0x518fdd(0x1e0)],'headers':_0x1f8ff6});}var _0x38cacd=_0x276728(0x1c7);console[_0x276728(0x198)](_0x38cacd+_0x276728(0x220)+new Date()[_0x276728(0x236)]());var _0x410390={'overlayPath':_0x276728(0x119),'backendUrl':_0x276728(0x120),'overlayEnableViteHmr':![],'runtimeScriptPath':'/assets/enhance-runtime.js','swPath':_0x276728(0x1f7)};console['log'](_0x38cacd+_0x276728(0x134),JSON[_0x276728(0x1ca)](_0x410390,null,0x2));var _0x3d1097={'callbackBypass':['/auth/callback'],'securityMode':_0x276728(0x1eb)},_0x4fd5c6=null,_0x5dca68=null;function _0x5e84b7(_0x4d19d6,_0x1caf76){const _0x595a13=_0x276728,_0x4cafff=_0x4d19d6[_0x595a13(0x237)]['get']('enhancementUrl');if(_0x1caf76&&_0x4cafff){console[_0x595a13(0x198)](_0x38cacd+_0x595a13(0x15a)+_0x4cafff),_0x4fd5c6=_0x4cafff;try{_0x5dca68=new URL(_0x4cafff);}catch{console[_0x595a13(0x18e)](_0x38cacd+'\x20Failed\x20to\x20parse\x20enhancementUrl:\x20'+_0x4cafff),_0x5dca68=null;}}_0x1caf76&&!_0x4cafff&&(_0x4fd5c6&&console[_0x595a13(0x198)](_0x38cacd+'\x20Clearing\x20cached\x20enhancementUrl\x20(navigation\x20without\x20param)'),_0x4fd5c6=null,_0x5dca68=null);const _0x3e004f=_0x4cafff||_0x4fd5c6||'',_0x4d1319=_0x4cafff?((()=>{if(_0x4cafff===_0x4fd5c6)return _0x5dca68;try{return new URL(_0x4cafff);}catch{return null;}})()):_0x5dca68;return{..._0x410390,..._0x3d1097,'enhancementUrl':_0x3e004f,'enhancementBase':_0x4d1319,'callbackBypassNormalized':_0x3d1097[_0x595a13(0x1e4)]['map'](_0x4dbe1e=>_0x4dbe1e[_0x595a13(0x118)]('/')?_0x4dbe1e:'/'+_0x4dbe1e)};}function _0x4cf6d4(_0x671845,_0x2d339d,..._0x3e05e1){const _0x2d2526=_0x276728;_0x671845==='info'?console[_0x2d2526(0x1cf)](_0x38cacd,_0x2d339d,..._0x3e05e1):console[_0x2d2526(0x218)](_0x38cacd,_0x2d339d,..._0x3e05e1);}self[_0x276728(0x22f)](_0x276728(0x1ed),_0x1dd389=>{const _0x5d4462=_0x276728;console[_0x5d4462(0x198)](_0x38cacd+_0x5d4462(0x131)),_0x1dd389[_0x5d4462(0x148)](((async()=>{const _0x45879d=_0x5d4462;console[_0x45879d(0x198)](_0x38cacd+_0x45879d(0x114)),await self[_0x45879d(0x20a)](),console[_0x45879d(0x198)](_0x38cacd+_0x45879d(0x238));})()));}),self[_0x276728(0x22f)](_0x276728(0x185),_0x3db888=>{const _0x20aee2=_0x276728;console[_0x20aee2(0x198)](_0x38cacd+_0x20aee2(0x145)),_0x3db888['waitUntil'](((async()=>{const _0x46ea8f=_0x20aee2;console[_0x46ea8f(0x198)](_0x38cacd+_0x46ea8f(0x1e6)),await self['clients'][_0x46ea8f(0x151)](),console[_0x46ea8f(0x198)](_0x38cacd+_0x46ea8f(0x1f8));})()));}),self[_0x276728(0x22f)](_0x276728(0x18a),_0xbe3ef8=>{const _0x13b0d7=_0x276728,_0x37f0d0=_0xbe3ef8[_0x13b0d7(0x124)];console['log'](_0x38cacd+_0x13b0d7(0x1f1),_0x37f0d0);if(!_0x37f0d0||typeof _0x37f0d0!=='object'){console[_0x13b0d7(0x198)](_0x38cacd+'\x20Invalid\x20message\x20data\x20-\x20ignoring');return;}switch(_0x37f0d0[_0x13b0d7(0x136)]){case _0x2f8c71:{console[_0x13b0d7(0x198)](_0x38cacd+_0x13b0d7(0x11b));const _0xda16b6=_0x37f0d0[_0x13b0d7(0x143)];_0x3d1097={'callbackBypass':_0xda16b6['callbackBypass']??[_0x13b0d7(0x233)],'securityMode':_0xda16b6[_0x13b0d7(0x228)]??'permissive'},console[_0x13b0d7(0x198)](_0x38cacd+_0x13b0d7(0x1d0),JSON[_0x13b0d7(0x1ca)](_0x3d1097,null,0x2));break;}case _0x2dfb5c:console[_0x13b0d7(0x198)](_0x38cacd+_0x13b0d7(0x20c)),_0x3d1097={'callbackBypass':[_0x13b0d7(0x233)],'securityMode':_0x13b0d7(0x1eb)},_0x4fd5c6=null,_0x5dca68=null,console['log'](_0x38cacd+'\x20Config\x20reset');break;default:console[_0x13b0d7(0x198)](_0x38cacd+'\x20Unknown\x20message\x20type:\x20'+_0x37f0d0[_0x13b0d7(0x136)]);break;}}),self['addEventListener'](_0x276728(0x1b7),_0x6406d9=>{const _0x2505e1=_0x276728;_0x6406d9[_0x2505e1(0x1d2)](_0x3f7f7b(_0x6406d9));});async function _0x3f7f7b(_0xe9f245){const _0xccaa66=_0x276728,{request:_0x3f5133}=_0xe9f245,_0x2f82a4=new URL(_0x3f5133[_0xccaa66(0x1d4)]),_0x5a82d4=_0x3f5133[_0xccaa66(0x1ce)]===_0xccaa66(0x1f4),_0x5deca0=_0x5a82d4||_0x2f82a4[_0xccaa66(0x19c)]===self[_0xccaa66(0x15b)][_0xccaa66(0x19c)];_0x5deca0&&(console[_0xccaa66(0x198)](_0x38cacd+'\x20FETCH:\x20'+_0x3f5133[_0xccaa66(0x14c)]+'\x20'+_0x2f82a4[_0xccaa66(0x142)]+_0x2f82a4[_0xccaa66(0x1dd)]),console['log'](_0x38cacd+'\x20\x20\x20mode:\x20'+_0x3f5133[_0xccaa66(0x1ce)]+_0xccaa66(0x206)+_0x3f5133[_0xccaa66(0x1a5)]));const _0x59924a=_0x5e84b7(_0x2f82a4,_0x5a82d4);_0x5deca0&&console[_0xccaa66(0x198)](_0x38cacd+_0xccaa66(0x147)+(_0x59924a[_0xccaa66(0x1e8)]||_0xccaa66(0x14e)));if(!_0x5003a9(_0x3f5133))return _0x5deca0&&console[_0xccaa66(0x198)](_0x38cacd+_0xccaa66(0x221)),fetch(_0x3f5133);if(_0x4b79c8(_0x59924a,_0x2f82a4[_0xccaa66(0x142)]))return _0x5deca0&&console[_0xccaa66(0x198)](_0x38cacd+_0xccaa66(0x182)+_0x2f82a4[_0xccaa66(0x142)]+_0xccaa66(0x169)),fetch(_0x3f5133);if(_0x5a82d4)return console[_0xccaa66(0x198)](_0x38cacd+_0xccaa66(0x158)),_0x98a5e6(_0x3f5133,_0x59924a);if(!_0x352add(_0x59924a,_0x3f5133,_0x2f82a4))return _0x5deca0&&console[_0xccaa66(0x198)](_0x38cacd+_0xccaa66(0x1a7)),fetch(_0x3f5133);console[_0xccaa66(0x198)](_0x38cacd+_0xccaa66(0x12d)+_0x2f82a4['pathname']);const _0x37c471=await _0x4a43d8(_0x59924a,_0x3f5133,_0x2f82a4);if(_0x37c471)return console[_0xccaa66(0x198)](_0x38cacd+_0xccaa66(0x125)+_0x2f82a4['pathname']),_0x37c471;return console[_0xccaa66(0x198)](_0x38cacd+_0xccaa66(0x19e)+_0x2f82a4[_0xccaa66(0x142)]+_0xccaa66(0x187)),fetch(_0x3f5133);}async function _0x98a5e6(_0x534056,_0x5c690a){const _0x57325b=_0x276728,_0x281833=new URL(_0x534056['url']);console[_0x57325b(0x198)](_0x38cacd+_0x57325b(0x12c)+_0x281833[_0x57325b(0x142)]+_0x281833[_0x57325b(0x1dd)]),console[_0x57325b(0x198)](_0x38cacd+_0x57325b(0x22a)+(_0x5c690a['enhancementUrl']||_0x57325b(0x14e))),console['log'](_0x38cacd+_0x57325b(0x1f6));const _0x5de5e3=await fetch(_0x534056);console[_0x57325b(0x198)](_0x38cacd+_0x57325b(0x1aa)+_0x5de5e3[_0x57325b(0x23c)]+'\x20'+_0x5de5e3[_0x57325b(0x1e0)]),console['log'](_0x38cacd+_0x57325b(0x1c8)+_0x5de5e3[_0x57325b(0x1cd)]['get']('content-type'));if(!_0x38037b(_0x5de5e3))return console[_0x57325b(0x198)](_0x38cacd+_0x57325b(0x178)),_0x5de5e3;console[_0x57325b(0x198)](_0x38cacd+_0x57325b(0x176));const _0x505e77=_0x21f595(_0x5de5e3,_0x57325b(0x217));console[_0x57325b(0x198)](_0x38cacd+'\x20\x20\x20Checking\x20for\x20enhancement\x20document...');const _0x48a02b=await _0x1b95e3(_0x5c690a,_0x534056),_0x3f8b62=_0x48a02b?_0x57325b(0x16f):_0x57325b(0x204);console['log'](_0x38cacd+_0x57325b(0x21d)+_0x3f8b62);const _0x177c14=_0x48a02b??_0x505e77,_0x2db85c=_0x3f8b62==='enhancement'||_0x281833[_0x57325b(0x237)][_0x57325b(0x12f)]('overlay')||_0x281833['searchParams'][_0x57325b(0x12f)](_0x57325b(0x16f))||_0x281833[_0x57325b(0x237)][_0x57325b(0x12f)](_0x57325b(0x1e8));console[_0x57325b(0x198)](_0x38cacd+_0x57325b(0x21c)+_0x2db85c);try{console[_0x57325b(0x198)](_0x38cacd+_0x57325b(0x205));const _0x475954=await _0x5b85e6(_0x5c690a,_0x177c14,_0x3f8b62,_0x2db85c);return console['log'](_0x38cacd+'\x20\x20\x20Document\x20rewritten\x20successfully'),_0x475954;}catch(_0x264161){return console[_0x57325b(0x18e)](_0x38cacd+_0x57325b(0x12a),_0x264161),_0x4cf6d4(_0x57325b(0x1cf),_0x57325b(0x22c),_0x264161),_0x177c14;}}return _0x15c80f(_0x330128);})());
|
|
1
|
+
'use strict';(function(_0x529b43,_0x3c1240){const _0x2212d1=_0x5eab,_0x386ba1=_0x529b43();while(!![]){try{const _0x32e656=parseInt(_0x2212d1(0x245))/0x1*(parseInt(_0x2212d1(0x152))/0x2)+-parseInt(_0x2212d1(0x247))/0x3*(-parseInt(_0x2212d1(0x239))/0x4)+-parseInt(_0x2212d1(0x14d))/0x5*(-parseInt(_0x2212d1(0x142))/0x6)+-parseInt(_0x2212d1(0x1e0))/0x7+parseInt(_0x2212d1(0x212))/0x8*(parseInt(_0x2212d1(0x1b1))/0x9)+parseInt(_0x2212d1(0x19c))/0xa+parseInt(_0x2212d1(0x154))/0xb*(-parseInt(_0x2212d1(0x12c))/0xc);if(_0x32e656===_0x3c1240)break;else _0x386ba1['push'](_0x386ba1['shift']());}catch(_0x4ba7bd){_0x386ba1['push'](_0x386ba1['shift']());}}}(_0x1ce6,0xe488b));function _0x1ce6(){const _0x1af62d=['\x20\x20}\x20catch\x20(error)\x20{','$&\x0a','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','x-enhance-routing','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','respondWith','enhancementUrl','join','\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','\x5c$&','\x20\x20\x20\x20\x20\x20return\x20false;','include','add','\x20\x20\x20Enhancement\x20document\x20URL:\x20','8odLyOX','script','\x20shouldRouteAsset:\x20','none','Enhancement\x20document\x20CORS\x20blocked','production','\x20\x20\x20Original\x20HTML\x20length:\x20','hash','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','\x20matches\x20callbackBypass','/__vite/client','\x5cu003e','/@vite/client','url','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20Fetching\x20from\x20enhancement...','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','content-length','<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])','overlayPath','image','/snowpack/hmr','\x20MESSAGE\x20received:','\x20Caching\x20enhancementUrl\x20from\x20navigation:\x20','rewritten','clone','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','HEAD','\x20-\x20falling\x20back\x20to\x20production','stringify','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','\x20rewriteDocument()\x20called','prototype','cors','\x20\x20\x20\x20};','\x20\x20\x20enhancementUrl:\x20','826660OqWAWG','frame-ancestors\x20','Enhancement\x20fetch\x20failed','\x20Bootstrap\x20options:','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\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\x20Document\x20source:\x20','map','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','access-control-allow-origin','error','65kJxHMU','(async\x20()\x20=>\x20{','27PbXnlr','[Enhance\x20SW\x20Bootstrap]','toLowerCase','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','message','\x20\x20\x20Enhancement\x20HIT\x20for\x20',',\x20type:\x20','GET','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','test','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','714972IEenlW','call','claim','font','search','info','\x20\x20\x20BYPASS:\x20','\x5c1[^>]*>\x5cs*</script>','destination','set-cookie','navigate','waitUntil','enhance:configure','permissive','config','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','\x20\x20\x20Response:\x20','\x20\x20\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','getOwnPropertyDescriptor','href','content-type','12KrNkMz','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','match','addEventListener','sharedworker','\x20\x20\x20securityMode:\x20','default','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','\x20for\x20','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','overlayEnableViteHmr','551965TxXJks','cross-origin-opener-policy','data','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','text/html','35338cutLjV','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','605qLsTDx','/__parcel_hmr','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','style','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','\x20\x20\x20shouldInjectOverlay:\x20','text','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','status','/__vite_ping','toISOString','type','length','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20\x20\x20Enhancement\x20URL:\x20','\x20Calling\x20skipWaiting()...','font-src\x20*\x20data:','\x20fetchEnhancementDocument:\x20','Enhancement\x20CORS\x20blocked','callbackBypassNormalized','x-enhance-document','skipWaiting','method','custom','\x20\x20\x20runtimeScriptPath:\x20','origin','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','content-security-policy','\x20\x20\x20Document\x20rewrite\x20complete','/assets/enhance-runtime.js','\x20Unknown\x20message\x20type:\x20','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','runtimeScriptPath','media-src\x20*\x20data:\x20blob:','/webpackhotmiddleware','searchParams','\x20Failed\x20to\x20parse\x20enhancementUrl:\x20','get','stylesheet','\x20\x20\x20overlayPath:\x20','modulepreload','/sw-enhance.js','opaque','__esModule','/vite/client','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','http://','set-cookie2','redirect','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','statusText','connect-src\x20*','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','\x20skipWaiting()\x20complete','replace','\x20\x20\x20\x20try\x20{','/webpack-hot-middleware','follow','location','/sockjs-node','object','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20}','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20mode:\x20','\x20\x20\x20Enhancement\x20MISS\x20for\x20','defineProperty','\x20\x20\x20Document\x20rewritten\x20successfully','8633250tLKdpL','https://enhance-api-dev.enhancelabs.workers.dev','full','/parcel-hmr','headers','callbackBypass','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','<script\x20data-enhance-hmr-bridge>','includes','?import','})();','\x20\x20\x20\x20\x20\x20','\x20\x20\x20source:\x20','/__webpack_hmr','activate','\x20\x20\x20\x20\x20\x20return\x20proxied;','enhancement','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','delete','11132874tAVbxF','\x20\x20try\x20{','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','Enhancement\x20document\x20miss\x20','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','Failed\x20to\x20rewrite\x20document','clients','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','object-src\x20\x27none\x27','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','mode','debug','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','cache-control','slice','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','\x20Clearing\x20cached\x20enhancementUrl\x20(navigation\x20without\x20param)','/auth/callback','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','set','host','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','\x20\x20\x20Not\x20OK\x20(','overlay','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','toString','enhancement-document','startsWith','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20Rewriting\x20entry\x20references...','value','\x20fetchFromEnhancement:\x20','\x20\x20\x20\x20\x20\x20}','no-store','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','access-control-allow-credentials','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','pathname','enhancementBase','src','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;',',\x20destination:\x20',',\x20null,\x202));','https://','7815759BeNkyK','worker-src\x20\x27self\x27\x20blob:','\x20\x20\x20Rewriting\x20document...','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','\x20chars)','https://assets-dev.enhancelabs.ai/overlay.js','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20\x20\x20Fetching\x20enhancement\x20document...','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','\x20injectRuntimeBootstrap()\x20called','img-src\x20*\x20data:\x20blob:','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','cross-origin-embedder-policy','has','\x20\x20\x20Script\x20inserted\x20into\x20document','\x0a</body>','hasOwnProperty','log','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','push','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20\x20\x20Document\x20fetch\x20error:','\x20ACTIVATE\x20event','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','[Enhance\x20SW\x20Document]','</script>','securityMode','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20Customer\x20config\x20updated:','\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20INSTALL\x20event',')\x20-\x20returning\x20null','[Enhance\x20SW]'];_0x1ce6=function(){return _0x1af62d;};return _0x1ce6();}function _0x5eab(_0x56239e,_0x4605fd){_0x56239e=_0x56239e-0x11e;const _0x1ce600=_0x1ce6();let _0x5eabf2=_0x1ce600[_0x56239e];return _0x5eabf2;}var EnhanceSW=((()=>{const _0x1a7693=_0x5eab;var _0x2f2594=Object[_0x1a7693(0x19a)],_0x1f1324=Object[_0x1a7693(0x13f)],_0xd7ceba=Object['getOwnPropertyNames'],_0x61b753=Object[_0x1a7693(0x235)][_0x1a7693(0x1f0)],_0x50d86d=(_0x403662,_0x4aa863)=>{for(var _0x19be11 in _0x4aa863)_0x2f2594(_0x403662,_0x19be11,{'get':_0x4aa863[_0x19be11],'enumerable':!![]});},_0x23c616=(_0x376168,_0x1a6581,_0x29e152,_0x5edad6)=>{const _0x3e6470=_0x1a7693;if(_0x1a6581&&typeof _0x1a6581===_0x3e6470(0x194)||typeof _0x1a6581==='function'){for(let _0x133243 of _0xd7ceba(_0x1a6581))if(!_0x61b753[_0x3e6470(0x12d)](_0x376168,_0x133243)&&_0x133243!==_0x29e152)_0x2f2594(_0x376168,_0x133243,{'get':()=>_0x1a6581[_0x133243],'enumerable':!(_0x5edad6=_0x1f1324(_0x1a6581,_0x133243))||_0x5edad6['enumerable']});}return _0x376168;},_0x33d89d=_0xe4d61c=>_0x23c616(_0x2f2594({},_0x1a7693(0x182),{'value':!![]}),_0xe4d61c),_0x50deb5={};_0x50d86d(_0x50deb5,{'log':()=>_0x5b5088});var _0x1a1827=_0x1a7693(0x138),_0x47aecc='enhance:disable';function _0x11aac4(_0x268bc8){if(!_0x268bc8['startsWith']('/'))return'/'+_0x268bc8;return _0x268bc8;}function _0x30fcd0(_0x4d3e1c,_0x4a9baa){const _0x1622fc=_0x1a7693,_0x19cd89=new URL(_0x4d3e1c[_0x1622fc(0x1ca)]()),_0x384218=_0x19cd89[_0x1622fc(0x1d9)]['endsWith']('/')?_0x19cd89[_0x1622fc(0x1d9)][_0x1622fc(0x1bf)](0x0,-0x1):_0x19cd89['pathname'],_0x26942f=_0x4a9baa[_0x1622fc(0x1d9)][_0x1622fc(0x1cc)]('/')?_0x4a9baa[_0x1622fc(0x1d9)]:'/'+_0x4a9baa[_0x1622fc(0x1d9)];return _0x19cd89[_0x1622fc(0x1d9)]=(''+_0x384218+_0x26942f)['replace'](/\/+/g,'/'),_0x19cd89['search']=_0x4a9baa[_0x1622fc(0x130)],_0x19cd89[_0x1622fc(0x219)]='',_0x19cd89;}var _0x126130='[Enhance\x20SW\x20Routing]',_0x3ee469=new Set([_0x1a7693(0x213),_0x1a7693(0x157),_0x1a7693(0x12f),_0x1a7693(0x228),'worker',_0x1a7693(0x146),_0x1a7693(0x17f)]);function _0x378aaa(_0x4d4f82){const _0x1a8bc1=_0x1a7693,_0x26f46d=_0x4d4f82['method']===_0x1a8bc1(0x126)||_0x4d4f82[_0x1a8bc1(0x16b)]===_0x1a8bc1(0x230);return _0x26f46d;}function _0x17181a(_0x3e0b03,_0x241221){const _0x3b2b03=_0x1a7693,_0x4754de=_0x11aac4(_0x241221),_0x4eab4d=_0x3e0b03[_0x3b2b03(0x168)]['some'](_0x50cc86=>_0x4754de['startsWith'](_0x50cc86));return _0x4eab4d;}function _0x55fb66(_0x1e43d6,_0x22a123,_0x5662ae){const _0x5919a1=_0x1a7693,_0x42dcc2=_0x22a123[_0x5919a1(0x134)];if(!_0x42dcc2||!_0x3ee469['has'](_0x42dcc2))return![];if(_0x325721(_0x1e43d6,_0x5662ae))return console[_0x5919a1(0x1f1)](_0x126130+_0x5919a1(0x214)+_0x5662ae[_0x5919a1(0x1d9)]+_0x5919a1(0x18c)),![];if(_0x2588b3(_0x1e43d6,_0x5662ae))return console[_0x5919a1(0x1f1)](_0x126130+_0x5919a1(0x214)+_0x5662ae['pathname']+_0x5919a1(0x1c6)),![];if(_0x5662ae[_0x5919a1(0x16e)]!==self[_0x5919a1(0x192)][_0x5919a1(0x16e)])return![];return!![];}async function _0xfdb5b2(_0x2acbb4,_0x5aaa68,_0x235864){const _0x41a128=_0x1a7693;console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x1d2)+_0x235864['pathname']);if(!_0x2acbb4[_0x41a128(0x1da)])return console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x149)),null;const _0xe645a9=_0x4339ab(_0x2acbb4,_0x235864);console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x163)+_0xe645a9['toString']());const _0x3534a0=new Headers(_0x5aaa68[_0x41a128(0x1a0)]);_0x3534a0[_0x41a128(0x1c4)](_0x41a128(0x207),_0x41a128(0x1ae)),_0x3534a0['delete'](_0x41a128(0x1c5));const _0x45955b=new Request(_0xe645a9[_0x41a128(0x1ca)](),{'method':_0x5aaa68[_0x41a128(0x16b)],'headers':_0x3534a0,'credentials':_0x41a128(0x20f),'redirect':_0x5aaa68[_0x41a128(0x188)],'cache':'default','mode':_0x41a128(0x236)});try{console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x221));const _0x350561=await fetch(_0x45955b);console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x13c)+_0x350561[_0x41a128(0x15d)]+'\x20'+_0x350561[_0x41a128(0x18a)]+',\x20type:\x20'+_0x350561['type']);if(_0x350561['type']==='opaque')return console['log'](_0x126130+_0x41a128(0x206)),_0x5b5088(_0x41a128(0x131),_0x41a128(0x167),_0xe645a9[_0x41a128(0x1ca)]()),null;if(!_0x350561['ok'])return console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x1c7)+_0x350561[_0x41a128(0x15d)]+_0x41a128(0x202)),_0x5b5088(_0x41a128(0x1bc),'Enhancement\x20miss\x20'+_0x350561[_0x41a128(0x15d)]+_0x41a128(0x14a)+_0xe645a9[_0x41a128(0x1d9)]),null;return console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x1bd)),_0x1d1746(_0x350561,_0x5aaa68[_0x41a128(0x16b)]);}catch(_0x5c81ad){return console[_0x41a128(0x244)](_0x126130+'\x20\x20\x20Fetch\x20error:',_0x5c81ad),_0x5b5088(_0x41a128(0x131),_0x41a128(0x23b),_0x5c81ad),null;}}async function _0x1fbeda(_0x17e06a,_0xa92cc1){const _0x4ca658=_0x1a7693,_0x31614b=new URL(_0xa92cc1[_0x4ca658(0x21f)]);console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x166)+_0x31614b['pathname']+_0x31614b[_0x4ca658(0x130)]);if(!_0x17e06a[_0x4ca658(0x1da)])return console[_0x4ca658(0x1f1)](_0x126130+'\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null'),null;const _0x48a311=_0x4339ab(_0x17e06a,_0x31614b);console['log'](_0x126130+_0x4ca658(0x211)+_0x48a311['toString']());const _0x4d7c3a=new Headers(_0xa92cc1['headers']);_0x4d7c3a[_0x4ca658(0x1c4)](_0x4ca658(0x207),_0x4ca658(0x1cb)),_0x4d7c3a['delete']('host'),_0x4d7c3a[_0x4ca658(0x1b0)](_0x4ca658(0x225));const _0x38ddc3=new Request(_0x48a311[_0x4ca658(0x1ca)](),{'method':_0x4ca658(0x126),'headers':_0x4d7c3a,'credentials':_0x4ca658(0x20f),'redirect':_0x4ca658(0x191),'cache':_0x4ca658(0x148),'mode':_0x4ca658(0x236)});try{console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x1e7));const _0x2e7d72=await fetch(_0x38ddc3);console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x13c)+_0x2e7d72[_0x4ca658(0x15d)]+'\x20'+_0x2e7d72[_0x4ca658(0x18a)]+_0x4ca658(0x125)+_0x2e7d72['type']),console['log'](_0x126130+'\x20\x20\x20Content-Type:\x20'+_0x2e7d72[_0x4ca658(0x1a0)]['get'](_0x4ca658(0x141)));if(_0x2e7d72[_0x4ca658(0x160)]===_0x4ca658(0x181))return console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x206)),_0x5b5088(_0x4ca658(0x131),_0x4ca658(0x216),_0x48a311[_0x4ca658(0x1ca)]()),null;if(!_0x2e7d72['ok'])return console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x1c7)+_0x2e7d72[_0x4ca658(0x15d)]+_0x4ca658(0x202)),_0x5b5088(_0x4ca658(0x1bc),_0x4ca658(0x1b4)+_0x2e7d72[_0x4ca658(0x15d)]+_0x4ca658(0x14a)+_0x48a311[_0x4ca658(0x1d9)]),null;if(!_0x5abe17(_0x2e7d72))return console['log'](_0x126130+_0x4ca658(0x129)),null;return console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x184)),_0x1d1746(_0x2e7d72,_0x4ca658(0x126));}catch(_0x29b484){return console[_0x4ca658(0x244)](_0x126130+_0x4ca658(0x1f6),_0x29b484),_0x5b5088(_0x4ca658(0x131),'Enhancement\x20document\x20fetch\x20failed',_0x29b484),null;}}function _0x4339ab(_0x256e58,_0x4e4bd7){const _0x342486=_0x1a7693;if(!_0x256e58[_0x342486(0x1da)])throw new Error(_0x342486(0x122));return _0x30fcd0(_0x256e58['enhancementBase'],_0x4e4bd7);}function _0x1d1746(_0x319c54,_0x53928b){const _0x25668f=_0x1a7693,_0x39f5e3=_0x319c54[_0x25668f(0x22d)](),_0xd66390=new Headers(_0x39f5e3[_0x25668f(0x1a0)]);_0xd66390[_0x25668f(0x1b0)](_0x25668f(0x243)),_0xd66390[_0x25668f(0x1b0)](_0x25668f(0x1d7)),_0xd66390[_0x25668f(0x1b0)]('access-control-expose-headers'),_0xd66390[_0x25668f(0x1c4)]('x-enhance-enhancement','hit'),_0x4b12f3(_0xd66390);const _0x2800a1=_0x53928b===_0x25668f(0x230)?null:_0x39f5e3['body'];return new Response(_0x2800a1,{'status':_0x39f5e3[_0x25668f(0x15d)],'statusText':_0x39f5e3[_0x25668f(0x18a)],'headers':_0xd66390});}function _0x5abe17(_0x5aa69c){const _0x1ad4c4=_0x1a7693,_0x19582e=_0x5aa69c['headers'][_0x1ad4c4(0x17c)](_0x1ad4c4(0x141));return _0x19582e!=null&&_0x19582e[_0x1ad4c4(0x1a6)](_0x1ad4c4(0x151));}function _0x325721(_0x131e34,_0x395a57){const _0x5b3a30=_0x1a7693;return _0x278d35(_0x395a57,_0x131e34[_0x5b3a30(0x227)]);}function _0x2588b3(_0x41c697,_0x2936f9){const _0x425967=_0x1a7693;return _0xc1e5d3(_0x2936f9,_0x41c697[_0x425967(0x177)]);}function _0x278d35(_0xcbb1a6,_0xcda13c){const _0x57e7a1=_0x1a7693;if(!_0xcda13c)return![];if(_0xcda13c['startsWith'](_0x57e7a1(0x186))||_0xcda13c[_0x57e7a1(0x1cc)](_0x57e7a1(0x1df)))return _0xcbb1a6[_0x57e7a1(0x140)]===_0xcda13c;const _0x33b4a4=_0x2ee3ba(_0xcda13c);if(!_0x33b4a4)return![];const _0x1ecd1d=''+_0xcbb1a6['pathname']+_0xcbb1a6[_0x57e7a1(0x130)];if(_0x1ecd1d===_0x33b4a4)return!![];if(_0xcbb1a6[_0x57e7a1(0x130)]===_0x57e7a1(0x1a7))return _0xcbb1a6[_0x57e7a1(0x1d9)]===_0x33b4a4;return![];}function _0xc1e5d3(_0x593dc1,_0x395b23){const _0x5cce55=_0x1a7693;if(!_0x395b23)return![];if(_0x395b23['startsWith'](_0x5cce55(0x186))||_0x395b23['startsWith'](_0x5cce55(0x1df)))return _0x593dc1[_0x5cce55(0x140)]===_0x395b23;const _0x578ab3=_0x2ee3ba(_0x395b23);if(!_0x578ab3)return![];const _0x5172aa=''+_0x593dc1[_0x5cce55(0x1d9)]+_0x593dc1[_0x5cce55(0x130)];return _0x5172aa===_0x578ab3;}function _0x2ee3ba(_0x5aed5b){const _0x321372=_0x1a7693;if(!_0x5aed5b)return _0x5aed5b;if(_0x5aed5b[_0x321372(0x1cc)](_0x321372(0x186))||_0x5aed5b[_0x321372(0x1cc)](_0x321372(0x1df)))return _0x5aed5b;const _0x4f3b06=_0x5aed5b[_0x321372(0x18e)](/^\.\//,'');if(_0x4f3b06[_0x321372(0x1cc)]('/'))return _0x4f3b06;return'/'+_0x4f3b06;}function _0x4b12f3(_0x300b64){const _0x19bd36=_0x1a7693;_0x300b64['delete'](_0x19bd36(0x135)),_0x300b64[_0x19bd36(0x1b0)](_0x19bd36(0x187));}function _0x4065e0(_0x2e6eb3){const _0x4723ca=_0x1a7693,_0x2f0ef1=['default-src\x20\x27self\x27\x20blob:\x20data:',_0x4723ca(0x15b),_0x4723ca(0x175),_0x4723ca(0x1ea),_0x4723ca(0x165),_0x4723ca(0x18b),_0x4723ca(0x178),_0x4723ca(0x1e1),_0x4723ca(0x1b9)],_0x41e9bf=_0x105646(_0x2e6eb3);return _0x41e9bf&&_0x2f0ef1['push'](_0x41e9bf),_0x2f0ef1[_0x4723ca(0x20b)](';\x20');}function _0xd1a8cf(_0x4ee010){const _0x76b6cd=_0x1a7693;_0x4ee010[_0x76b6cd(0x1b0)](_0x76b6cd(0x135)),_0x4ee010['delete'](_0x76b6cd(0x187));}function _0x105646(_0x47d835){const _0x2f5ff7=_0x1a7693;if(!_0x47d835)return null;const _0x3bc689=_0x47d835[_0x2f5ff7(0x144)](/frame-ancestors\s+([^;]+)/i);if(!_0x3bc689)return null;return _0x2f5ff7(0x23a)+_0x3bc689[0x1]['trim']();}function _0x295faf(_0x15d715,_0xf8cd78){const _0x465569=_0x1a7693;if(/<head[^>]*>/i[_0x465569(0x12a)](_0x15d715)){const _0x3ebb2d=_0x15d715['match'](/<head[^>]*>/i);if(_0x3ebb2d){const _0x1e7b31=_0x3ebb2d[0x0];return _0x15d715[_0x465569(0x18e)](_0x1e7b31,_0x1e7b31+'\x0a'+_0xf8cd78);}}if(/<\/head>/i['test'](_0x15d715))return _0x15d715[_0x465569(0x18e)](/<\/head>/i,_0xf8cd78+'\x0a</head>');if(/<body\b[^>]*>/i[_0x465569(0x12a)](_0x15d715))return _0x15d715[_0x465569(0x18e)](/<body\b[^>]*>/i,_0x465569(0x205)+_0xf8cd78);if(/<\/body>/i[_0x465569(0x12a)](_0x15d715))return _0x15d715[_0x465569(0x18e)](/<\/body>/i,_0xf8cd78+_0x465569(0x1ef));return _0xf8cd78+'\x0a'+_0x15d715;}var _0x37f5e2=['vite-hmr'],_0x38de48=[_0x1a7693(0x21e),_0x1a7693(0x21c),_0x1a7693(0x183),_0x1a7693(0x15e),_0x1a7693(0x193),'/webpack-dev-server','/webpack-hmr',_0x1a7693(0x179),_0x1a7693(0x190),_0x1a7693(0x1ab),'/_next/webpack-hmr',_0x1a7693(0x19f),_0x1a7693(0x155),'/__snowpack__',_0x1a7693(0x229)];function _0x39efbf(_0x368ab6,_0x31032d){const _0x419cc8=_0x200eab(_0x368ab6);if(!_0x419cc8)return _0x31032d;return _0x295faf(_0x31032d,_0x419cc8);}function _0x200eab(_0x3fa75a){const _0x3c1a46=_0x1a7693;if(!_0x3fa75a[_0x3c1a46(0x1da)])return null;const _0x18bae2=_0x3fa75a[_0x3c1a46(0x1da)][_0x3c1a46(0x1ca)](),_0x57e541=_0x116817(_0x37f5e2),_0x5822fa=_0x116817(_0x38de48),_0x3b5dab=[_0x3c1a46(0x1a5),'(function(){',_0x3c1a46(0x1b2),_0x3c1a46(0x1c0)+JSON[_0x3c1a46(0x232)](_0x18bae2)+');',_0x3c1a46(0x1e6),_0x3c1a46(0x13e),_0x3c1a46(0x197),_0x3c1a46(0x1ff),_0x3c1a46(0x208)+JSON[_0x3c1a46(0x232)](_0x57e541)+');',_0x3c1a46(0x158)+JSON[_0x3c1a46(0x232)](_0x5822fa)+';',_0x3c1a46(0x23e),'\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{',_0x3c1a46(0x1af),'\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];',_0x3c1a46(0x237),_0x3c1a46(0x1e8),'\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];',_0x3c1a46(0x176),_0x3c1a46(0x195),_0x3c1a46(0x1a9),'\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;',_0x3c1a46(0x1a9),_0x3c1a46(0x1e3),_0x3c1a46(0x1c3),'\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;',_0x3c1a46(0x1d3),_0x3c1a46(0x156),_0x3c1a46(0x1fd),_0x3c1a46(0x185),_0x3c1a46(0x121),_0x3c1a46(0x1f5),_0x3c1a46(0x120),_0x3c1a46(0x1d3),'\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();',_0x3c1a46(0x1eb),_0x3c1a46(0x1cd),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20}',_0x3c1a46(0x20e),_0x3c1a46(0x237),_0x3c1a46(0x1ba),_0x3c1a46(0x200),_0x3c1a46(0x233),_0x3c1a46(0x1dc),'\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;',_0x3c1a46(0x1ad),_0x3c1a46(0x237),_0x3c1a46(0x22f),_0x3c1a46(0x13d),_0x3c1a46(0x23f),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);',_0x3c1a46(0x242),'\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x3c1a46(0x1b8),'\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20\x20\x20\x20};',_0x3c1a46(0x1a2),_0x3c1a46(0x1b5),_0x3c1a46(0x1c9),_0x3c1a46(0x18f),_0x3c1a46(0x23d),_0x3c1a46(0x1d8),_0x3c1a46(0x153),_0x3c1a46(0x1ff),_0x3c1a46(0x220),_0x3c1a46(0x13b),_0x3c1a46(0x204),_0x3c1a46(0x224),_0x3c1a46(0x196),'})();',_0x3c1a46(0x1fa)];return _0x3b5dab['join']('\x0a');}function _0x116817(_0x10a6ab){const _0x33ca10=_0x1a7693,_0x5ac777=new Set(),_0x1b5102=[];for(const _0x2f8731 of _0x10a6ab){const _0x4fb77a=_0x2f8731['toLowerCase']();if(_0x5ac777[_0x33ca10(0x1ed)](_0x4fb77a))continue;_0x5ac777[_0x33ca10(0x210)](_0x4fb77a),_0x1b5102[_0x33ca10(0x1f3)](_0x4fb77a);}return _0x1b5102;}var _0x39b7f8=_0x1a7693(0x11e);function _0x207bb5(_0x2e36be,_0x200b82){const _0x280337=_0x1a7693;console['log'](_0x39b7f8+_0x280337(0x1e9)),console['log'](_0x39b7f8+_0x280337(0x16d)+_0x2e36be[_0x280337(0x177)]),console['log'](_0x39b7f8+_0x280337(0x17e)+_0x2e36be['overlayPath']);const _0x16e65a=_0x148eca(_0x2e36be);if(!_0x16e65a)return console[_0x280337(0x1f1)](_0x39b7f8+_0x280337(0x143)),_0x200b82;console[_0x280337(0x1f1)](_0x39b7f8+_0x280337(0x21a)+_0x16e65a['length']+_0x280337(0x1e4));const _0x1297f8=_0x2cb910(_0x200b82,_0x2e36be[_0x280337(0x177)]);console[_0x280337(0x1f1)](_0x39b7f8+_0x280337(0x1f8));const _0xd63df9=_0x295faf(_0x1297f8,_0x16e65a);return console[_0x280337(0x1f1)](_0x39b7f8+_0x280337(0x1ee)),_0xd63df9;}function _0x148eca(_0x5e5c5e){const _0x122449=_0x1a7693,_0x187f53=_0x5e5c5e[_0x122449(0x177)];if(!_0x187f53)return console[_0x122449(0x1f1)](_0x39b7f8+_0x122449(0x12b)),null;const _0x2ba34c=_0x479fd4(_0x5e5c5e);console['log'](_0x39b7f8+_0x122449(0x23c),JSON[_0x122449(0x232)](_0x2ba34c,null,0x2));const _0x5477ec=_0x1d21b8(_0x2ba34c),_0x1815e9=JSON['stringify'](_0x187f53),_0x19b2ab=[_0x122449(0x1f2),_0x122449(0x246),_0x122449(0x1b2),'\x20\x20\x20\x20const\x20runtimePath\x20=\x20'+_0x1815e9+';','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);',_0x122449(0x222),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));',_0x122449(0x162),'\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{',_0x122449(0x1fc),_0x122449(0x197),_0x122449(0x1ff),_0x122449(0x16f)+_0x5477ec+_0x122449(0x1de),_0x122449(0x174)+_0x5477ec+');','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);',_0x122449(0x1b3),'\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;',_0x122449(0x1d5),_0x122449(0x20c),_0x122449(0x1a4),_0x122449(0x150),_0x122449(0x1a3),'\x20\x20\x20\x20}',_0x122449(0x1cf),'\x20\x20}\x20catch\x20(error)\x20{',_0x122449(0x1d6),_0x122449(0x196),_0x122449(0x1a8),_0x122449(0x1fa)];return _0x19b2ab[_0x122449(0x20b)]('\x0a');}function _0x479fd4(_0x3ff53f){const _0x2d6f24=_0x1a7693,_0x4efbaa={'callbackBypass':_0x3ff53f['callbackBypass'],'__development':{'enableOverlayHmr':_0x3ff53f[_0x2d6f24(0x14c)],'overlayPath':_0x3ff53f[_0x2d6f24(0x227)],'security':_0x3ff53f['securityMode'],'backendUrl':_0x3ff53f['backendUrl']}};return _0x4efbaa;}function _0x1d21b8(_0x3c2a7c){const _0x458170=_0x1a7693;return JSON[_0x458170(0x232)](_0x3c2a7c)[_0x458170(0x18e)](/</g,'\x5cu003c')[_0x458170(0x18e)](/>/g,_0x458170(0x21d));}function _0x2cb910(_0x2c9c28,_0x118110){const _0x15e720=_0x1a7693,_0x1755ad=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x5de325=_0x2c9c28['replace'](_0x1755ad,'');if(_0x118110){const _0x5a7e6f=_0x6e88bf(_0x118110),_0x21468b=new RegExp(_0x15e720(0x226)+_0x5a7e6f+_0x15e720(0x133),'gi');_0x5de325=_0x5de325['replace'](_0x21468b,'');}return _0x5de325;}function _0x6e88bf(_0x3c37c7){const _0x51e187=_0x1a7693;return _0x3c37c7[_0x51e187(0x18e)](/[-/\\^$*+?.()|[\]{}]/g,_0x51e187(0x20d));}function _0xc329e3(_0xdde74b,_0xd8fa6c){const _0x5ab594=_0x1a7693,_0x49d533=_0x34f29c=>_0x74c695(_0xdde74b,_0x34f29c),_0x243980=_0x344653=>_0x4c1371(_0xdde74b,_0x344653);return _0xd8fa6c[_0x5ab594(0x18e)](/<script\b[^>]*>/gi,_0x49d533)[_0x5ab594(0x18e)](/<link\b[^>]*>/gi,_0x243980);}function _0x402fdd(_0x4f4404){const _0x408a0c=_0x1a7693;return _0x4f4404[_0x408a0c(0x18e)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x74c695(_0x3aadc3,_0x92c40){const _0x11b149=_0x1a7693,_0x432612=_0x3a06f1(_0x92c40,_0x11b149(0x1db));if(!_0x432612)return _0x92c40;const _0x599ad2=_0xe3184a(_0x3aadc3,_0x432612[_0x11b149(0x1d1)]);if(!_0x599ad2||_0x599ad2===_0x432612[_0x11b149(0x1d1)])return _0x92c40;const _0x4c0cc7=_0x432612[_0x11b149(0x19e)][_0x11b149(0x18e)](_0x432612[_0x11b149(0x1d1)],_0x599ad2);return _0x92c40[_0x11b149(0x18e)](_0x432612[_0x11b149(0x19e)],_0x4c0cc7);}function _0x4c1371(_0x502050,_0x3e9776){const _0x33cf5a=_0x1a7693,_0x6d87b8=_0x3e9776[_0x33cf5a(0x144)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x6d87b8)return _0x3e9776;const _0x130d5b=_0x6d87b8[0x2][_0x33cf5a(0x11f)]();if(_0x130d5b!==_0x33cf5a(0x17d)&&_0x130d5b!=='modulepreload')return _0x3e9776;const _0x105c68=_0x3a06f1(_0x3e9776,_0x33cf5a(0x140));if(!_0x105c68)return _0x3e9776;const _0x21c548=_0xe3184a(_0x502050,_0x105c68[_0x33cf5a(0x1d1)]);if(!_0x21c548||_0x21c548===_0x105c68[_0x33cf5a(0x1d1)])return _0x3e9776;const _0xc32236=_0x105c68[_0x33cf5a(0x19e)]['replace'](_0x105c68[_0x33cf5a(0x1d1)],_0x21c548);return _0x3e9776['replace'](_0x105c68[_0x33cf5a(0x19e)],_0xc32236);}function _0x3a06f1(_0x48dc81,_0x32dbd4){const _0x2ef1f2=_0x1a7693,_0x149c38=new RegExp(_0x32dbd4+'\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','i'),_0x850242=_0x48dc81[_0x2ef1f2(0x144)](_0x149c38);if(!_0x850242)return null;return{'full':_0x850242[0x0],'value':_0x850242[0x2]};}function _0xe3184a(_0x4e6de1,_0x1763af){const _0x211c45=_0x1a7693,_0x553d55=_0x4b39e3(_0x1763af);if(!_0x553d55)return null;if(_0x553d55[_0x211c45(0x16e)]===self[_0x211c45(0x192)][_0x211c45(0x16e)])return''+_0x553d55['pathname']+_0x553d55['search'];return null;}function _0x4b39e3(_0x3ed308){const _0x334828=_0x1a7693;try{return new URL(_0x3ed308,self[_0x334828(0x192)][_0x334828(0x16e)]);}catch{return null;}}var _0x5ca9b9=_0x1a7693(0x1f9);async function _0x181e40(_0x8ffd65,_0x97f1a0,_0x1843e9,_0x389dad=!![]){const _0x492208=_0x1a7693;console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x234)),console['log'](_0x5ca9b9+_0x492208(0x1aa)+_0x1843e9),console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x159)+_0x389dad),console['log'](_0x5ca9b9+_0x492208(0x147)+_0x8ffd65[_0x492208(0x1fb)]);const _0x110213=_0x97f1a0[_0x492208(0x22d)](),_0x17e84=await _0x110213[_0x492208(0x15a)]();console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x218)+_0x17e84[_0x492208(0x161)]+'\x20chars'),console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x1ce));const _0x12d9cf=_0x402fdd(_0x17e84);console['log'](_0x5ca9b9+_0x492208(0x1d0));let _0x618e53=_0xc329e3(_0x8ffd65,_0x12d9cf);_0x1843e9===_0x492208(0x1ae)?(console[_0x492208(0x1f1)](_0x5ca9b9+'\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...'),_0x618e53=_0x39efbf(_0x8ffd65,_0x618e53)):console[_0x492208(0x1f1)](_0x5ca9b9+'\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)');_0x389dad?(console[_0x492208(0x1f1)](_0x5ca9b9+'\x20\x20\x20Injecting\x20runtime\x20bootstrap...'),_0x618e53=_0x207bb5(_0x8ffd65,_0x618e53)):console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x127));console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x189)+_0x618e53[_0x492208(0x161)]+'\x20chars');const _0x446f36=new Headers(_0x110213[_0x492208(0x1a0)]);_0x446f36[_0x492208(0x1c4)](_0x492208(0x1be),_0x492208(0x1d4)),_0x446f36[_0x492208(0x1c4)](_0x492208(0x169),_0x492208(0x22c)),_0x446f36['set']('x-enhance-document-source',_0x1843e9),_0xd1a8cf(_0x446f36);if(_0x8ffd65[_0x492208(0x1fb)]!==_0x492208(0x16c)){console[_0x492208(0x1f1)](_0x5ca9b9+'\x20\x20\x20Applying\x20permissive\x20CSP...');const _0x194e2a=_0x446f36[_0x492208(0x17c)](_0x492208(0x170));_0x446f36[_0x492208(0x1c4)](_0x492208(0x170),_0x4065e0(_0x194e2a)),_0x446f36[_0x492208(0x1b0)](_0x492208(0x14e)),_0x446f36[_0x492208(0x1b0)](_0x492208(0x1ec)),_0x446f36[_0x492208(0x1b0)]('cross-origin-resource-policy');}else console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x22e));return console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x171)),new Response(_0x618e53,{'status':_0x110213[_0x492208(0x15d)],'statusText':_0x110213[_0x492208(0x18a)],'headers':_0x446f36});}var _0x2ffcaa=_0x1a7693(0x203);console[_0x1a7693(0x1f1)](_0x2ffcaa+'\x20Service\x20Worker\x20script\x20loaded\x20at\x20'+new Date()[_0x1a7693(0x15f)]());var _0x18d6b9={'overlayPath':_0x1a7693(0x1e5),'backendUrl':_0x1a7693(0x19d),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x1a7693(0x172),'swPath':_0x1a7693(0x180)};console[_0x1a7693(0x1f1)](_0x2ffcaa+'\x20Build\x20config:',JSON[_0x1a7693(0x232)](_0x18d6b9,null,0x2));var _0x2fcf0f={'callbackBypass':[_0x1a7693(0x1c2)],'securityMode':_0x1a7693(0x139)},_0x3963a7=null,_0x56f838=null;function _0x4447c8(_0xbe2124,_0x4a8d05){const _0x4720af=_0x1a7693,_0x27d85a=_0xbe2124[_0x4720af(0x17a)][_0x4720af(0x17c)](_0x4720af(0x20a));if(_0x4a8d05&&_0x27d85a){console[_0x4720af(0x1f1)](_0x2ffcaa+_0x4720af(0x22b)+_0x27d85a),_0x3963a7=_0x27d85a;try{_0x56f838=new URL(_0x27d85a);}catch{console['error'](_0x2ffcaa+_0x4720af(0x17b)+_0x27d85a),_0x56f838=null;}}_0x4a8d05&&!_0x27d85a&&(_0x3963a7&&console[_0x4720af(0x1f1)](_0x2ffcaa+_0x4720af(0x1c1)),_0x3963a7=null,_0x56f838=null);const _0x44b60c=_0x27d85a||_0x3963a7||'',_0x3c110f=_0x27d85a?((()=>{if(_0x27d85a===_0x3963a7)return _0x56f838;try{return new URL(_0x27d85a);}catch{return null;}})()):_0x56f838;return{..._0x18d6b9,..._0x2fcf0f,'enhancementUrl':_0x44b60c,'enhancementBase':_0x3c110f,'callbackBypassNormalized':_0x2fcf0f[_0x4720af(0x1a1)][_0x4720af(0x241)](_0x1ba14c=>_0x1ba14c['startsWith']('/')?_0x1ba14c:'/'+_0x1ba14c)};}function _0x5b5088(_0x9327c3,_0xe78ca6,..._0x2930c3){const _0x1e52d0=_0x1a7693;_0x9327c3===_0x1e52d0(0x131)?console['info'](_0x2ffcaa,_0xe78ca6,..._0x2930c3):console[_0x1e52d0(0x1bc)](_0x2ffcaa,_0xe78ca6,..._0x2930c3);}self[_0x1a7693(0x145)]('install',_0x440f9d=>{const _0xd519db=_0x1a7693;console[_0xd519db(0x1f1)](_0x2ffcaa+_0xd519db(0x201)),_0x440f9d[_0xd519db(0x137)](((async()=>{const _0x1a5446=_0xd519db;console[_0x1a5446(0x1f1)](_0x2ffcaa+_0x1a5446(0x164)),await self[_0x1a5446(0x16a)](),console['log'](_0x2ffcaa+_0x1a5446(0x18d));})()));}),self[_0x1a7693(0x145)](_0x1a7693(0x1ac),_0x4b3b7b=>{const _0x166ba4=_0x1a7693;console[_0x166ba4(0x1f1)](_0x2ffcaa+_0x166ba4(0x1f7)),_0x4b3b7b[_0x166ba4(0x137)](((async()=>{const _0x190b8e=_0x166ba4;console[_0x190b8e(0x1f1)](_0x2ffcaa+'\x20Calling\x20clients.claim()...'),await self[_0x190b8e(0x1b7)][_0x190b8e(0x12e)](),console[_0x190b8e(0x1f1)](_0x2ffcaa+'\x20clients.claim()\x20complete');})()));}),self[_0x1a7693(0x145)](_0x1a7693(0x123),_0x47f359=>{const _0x127e0b=_0x1a7693,_0x1f8724=_0x47f359[_0x127e0b(0x14f)];console[_0x127e0b(0x1f1)](_0x2ffcaa+_0x127e0b(0x22a),_0x1f8724);if(!_0x1f8724||typeof _0x1f8724!==_0x127e0b(0x194)){console[_0x127e0b(0x1f1)](_0x2ffcaa+'\x20Invalid\x20message\x20data\x20-\x20ignoring');return;}switch(_0x1f8724[_0x127e0b(0x160)]){case _0x1a1827:{console[_0x127e0b(0x1f1)](_0x2ffcaa+_0x127e0b(0x1f4));const _0x2c9cd1=_0x1f8724[_0x127e0b(0x13a)];_0x2fcf0f={'callbackBypass':_0x2c9cd1[_0x127e0b(0x1a1)]??[_0x127e0b(0x1c2)],'securityMode':_0x2c9cd1[_0x127e0b(0x1fb)]??_0x127e0b(0x139)},console[_0x127e0b(0x1f1)](_0x2ffcaa+_0x127e0b(0x1fe),JSON[_0x127e0b(0x232)](_0x2fcf0f,null,0x2));break;}case _0x47aecc:console[_0x127e0b(0x1f1)](_0x2ffcaa+_0x127e0b(0x223)),_0x2fcf0f={'callbackBypass':[_0x127e0b(0x1c2)],'securityMode':_0x127e0b(0x139)},_0x3963a7=null,_0x56f838=null,console[_0x127e0b(0x1f1)](_0x2ffcaa+'\x20Config\x20reset');break;default:console[_0x127e0b(0x1f1)](_0x2ffcaa+_0x127e0b(0x173)+_0x1f8724['type']);break;}}),self[_0x1a7693(0x145)]('fetch',_0x1af3a9=>{const _0x52f327=_0x1a7693;_0x1af3a9[_0x52f327(0x209)](_0x52f329(_0x1af3a9));});async function _0x52f329(_0x5d4f05){const _0x28ec65=_0x1a7693,{request:_0x16650c}=_0x5d4f05,_0x1fed04=new URL(_0x16650c[_0x28ec65(0x21f)]),_0x2f7ec8=_0x16650c[_0x28ec65(0x1bb)]===_0x28ec65(0x136),_0x300543=_0x2f7ec8||_0x1fed04[_0x28ec65(0x16e)]===self['location'][_0x28ec65(0x16e)];_0x300543&&(console['log'](_0x2ffcaa+'\x20FETCH:\x20'+_0x16650c[_0x28ec65(0x16b)]+'\x20'+_0x1fed04[_0x28ec65(0x1d9)]+_0x1fed04[_0x28ec65(0x130)]),console[_0x28ec65(0x1f1)](_0x2ffcaa+_0x28ec65(0x198)+_0x16650c[_0x28ec65(0x1bb)]+_0x28ec65(0x1dd)+_0x16650c[_0x28ec65(0x134)]));const _0x428e4d=_0x4447c8(_0x1fed04,_0x2f7ec8);_0x300543&&console[_0x28ec65(0x1f1)](_0x2ffcaa+_0x28ec65(0x238)+(_0x428e4d[_0x28ec65(0x20a)]||_0x28ec65(0x215)));if(!_0x378aaa(_0x16650c))return _0x300543&&console['log'](_0x2ffcaa+'\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)'),fetch(_0x16650c);if(_0x17181a(_0x428e4d,_0x1fed04[_0x28ec65(0x1d9)]))return _0x300543&&console[_0x28ec65(0x1f1)](_0x2ffcaa+_0x28ec65(0x132)+_0x1fed04[_0x28ec65(0x1d9)]+_0x28ec65(0x21b)),fetch(_0x16650c);if(_0x2f7ec8)return console[_0x28ec65(0x1f1)](_0x2ffcaa+'\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation'),_0x498e57(_0x16650c,_0x428e4d);if(!_0x55fb66(_0x428e4d,_0x16650c,_0x1fed04))return _0x300543&&console['log'](_0x2ffcaa+_0x28ec65(0x15c)),fetch(_0x16650c);console[_0x28ec65(0x1f1)](_0x2ffcaa+'\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20'+_0x1fed04[_0x28ec65(0x1d9)]);const _0x526f84=await _0xfdb5b2(_0x428e4d,_0x16650c,_0x1fed04);if(_0x526f84)return console[_0x28ec65(0x1f1)](_0x2ffcaa+_0x28ec65(0x124)+_0x1fed04[_0x28ec65(0x1d9)]),_0x526f84;return console[_0x28ec65(0x1f1)](_0x2ffcaa+_0x28ec65(0x199)+_0x1fed04['pathname']+_0x28ec65(0x231)),fetch(_0x16650c);}async function _0x498e57(_0x2d4136,_0x1a16b9){const _0x1314e9=_0x1a7693,_0x588d4e=new URL(_0x2d4136[_0x1314e9(0x21f)]);console[_0x1314e9(0x1f1)](_0x2ffcaa+'\x20handleNavigationRequest:\x20'+_0x588d4e[_0x1314e9(0x1d9)]+_0x588d4e[_0x1314e9(0x130)]),console[_0x1314e9(0x1f1)](_0x2ffcaa+_0x1314e9(0x128)+(_0x1a16b9['enhancementUrl']||_0x1314e9(0x215))),console[_0x1314e9(0x1f1)](_0x2ffcaa+'\x20\x20\x20Fetching\x20production\x20response...');const _0xe27ae1=await fetch(_0x2d4136);console['log'](_0x2ffcaa+'\x20\x20\x20Production\x20response:\x20'+_0xe27ae1[_0x1314e9(0x15d)]+'\x20'+_0xe27ae1[_0x1314e9(0x18a)]),console['log'](_0x2ffcaa+'\x20\x20\x20Content-Type:\x20'+_0xe27ae1[_0x1314e9(0x1a0)][_0x1314e9(0x17c)](_0x1314e9(0x141)));if(!_0x5abe17(_0xe27ae1))return console['log'](_0x2ffcaa+'\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is'),_0xe27ae1;console['log'](_0x2ffcaa+'\x20\x20\x20HTML\x20response\x20-\x20processing...');const _0x5d717f=_0x1d1746(_0xe27ae1,'GET');console[_0x1314e9(0x1f1)](_0x2ffcaa+'\x20\x20\x20Checking\x20for\x20enhancement\x20document...');const _0x2aff99=await _0x1fbeda(_0x1a16b9,_0x2d4136),_0x166035=_0x2aff99?_0x1314e9(0x1ae):_0x1314e9(0x217);console[_0x1314e9(0x1f1)](_0x2ffcaa+_0x1314e9(0x240)+_0x166035);const _0x2743e5=_0x2aff99??_0x5d717f,_0x57c7ec=_0x166035===_0x1314e9(0x1ae)||_0x588d4e[_0x1314e9(0x17a)][_0x1314e9(0x1ed)](_0x1314e9(0x1c8))||_0x588d4e[_0x1314e9(0x17a)]['has'](_0x1314e9(0x1ae))||_0x588d4e[_0x1314e9(0x17a)][_0x1314e9(0x1ed)](_0x1314e9(0x20a));console[_0x1314e9(0x1f1)](_0x2ffcaa+_0x1314e9(0x159)+_0x57c7ec);try{console[_0x1314e9(0x1f1)](_0x2ffcaa+_0x1314e9(0x1e2));const _0x5dd1a7=await _0x181e40(_0x1a16b9,_0x2743e5,_0x166035,_0x57c7ec);return console['log'](_0x2ffcaa+_0x1314e9(0x19b)),_0x5dd1a7;}catch(_0xc7e3bf){return console[_0x1314e9(0x244)](_0x2ffcaa+_0x1314e9(0x14b),_0xc7e3bf),_0x5b5088(_0x1314e9(0x131),_0x1314e9(0x1b6),_0xc7e3bf),_0x2743e5;}}return _0x33d89d(_0x50deb5);})());
|
package/dist/vite/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x38c47b=_0x3e7a;(function(_0x4f5686,_0x1b6c1){var _0x1e93a8=_0x3e7a,_0x2eb189=_0x4f5686();while(!![]){try{var _0x2dc2f8=-parseInt(_0x1e93a8(0x1a4))/0x1*(-parseInt(_0x1e93a8(0x195))/0x2)+parseInt(_0x1e93a8(0x194))/0x3*(-parseInt(_0x1e93a8(0x1a8))/0x4)+-parseInt(_0x1e93a8(0x18c))/0x5+-parseInt(_0x1e93a8(0x1aa))/0x6+parseInt(_0x1e93a8(0x193))/0x7+parseInt(_0x1e93a8(0x18e))/0x8+-parseInt(_0x1e93a8(0x19c))/0x9;if(_0x2dc2f8===_0x1b6c1)break;else _0x2eb189['push'](_0x2eb189['shift']());}catch(_0x437a43){_0x2eb189['push'](_0x2eb189['shift']());}}}(_0x29ef,0x503b3));import{fileURLToPath}from'url';import{readFile}from'fs/promises';function _0x29ef(){var _0x430253=['69TCgZls','998ZzFOGG','../sw-enhance.js','__development','/sw-enhance.js','asset','enhance-sandbox','end','2634867yiGSsP','callbackBypass',');\x0a</script>','utf-8','use','../assets/enhance-runtime.js','stringify','middlewares','1069llZEsS','replace','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22','Content-Type','44372btwtNB','\x22;\x0aEnhance.init(','1167174EbhpKq','1468645zBGJse','emitFile','1814944eHiaJF','<head$1>','setHeader','url','assets/enhance-runtime.js','4231416fAZlMy'];_0x29ef=function(){return _0x430253;};return _0x29ef();}function _0x3e7a(_0x2dba2c,_0x4bc751){_0x2dba2c=_0x2dba2c-0x18c;var _0x29ef0e=_0x29ef();var _0x3e7a8b=_0x29ef0e[_0x2dba2c];return _0x3e7a8b;}var runtimePath=fileURLToPath(new URL(_0x38c47b(0x1a1),import.meta.url)),swPath=fileURLToPath(new URL(_0x38c47b(0x196),import.meta.url)),RUNTIME_URL='/assets/enhance-runtime.js',SW_URL=_0x38c47b(0x198);function buildInitScript(_0x4056c8){var _0x17fb21=_0x38c47b;const _0x4da545={'callbackBypass':_0x4056c8[_0x17fb21(0x19d)],'__development':_0x4056c8[_0x17fb21(0x197)]},_0x2db5d4=JSON[_0x17fb21(0x1a2)](_0x4da545);return _0x17fb21(0x1a6)+RUNTIME_URL+_0x17fb21(0x1a9)+_0x2db5d4+_0x17fb21(0x19e);}var enhance=(_0x558fac={})=>{var _0x2f536b=_0x38c47b;let _0x4058b7=null,_0x208eae=null;async function _0x588bfa(){var _0x1851d9=_0x3e7a;!_0x4058b7&&(_0x4058b7=await readFile(runtimePath,_0x1851d9(0x19f))),!_0x208eae&&(_0x208eae=await readFile(swPath,'utf-8'));}return{'name':_0x2f536b(0x19a),'configureServer'(_0x360425){var _0x1dfbb3=_0x2f536b;_0x360425[_0x1dfbb3(0x1a3)]['use'](async(_0x4f209f,_0x3007aa,_0x3b0fb9)=>{var _0x4b708c=_0x1dfbb3;if(_0x4f209f[_0x4b708c(0x191)]===RUNTIME_URL||_0x4f209f[_0x4b708c(0x191)]===SW_URL){await _0x588bfa(),_0x3007aa[_0x4b708c(0x190)](_0x4b708c(0x1a7),'application/javascript'),_0x3007aa[_0x4b708c(0x19b)](_0x4f209f[_0x4b708c(0x191)]===RUNTIME_URL?_0x4058b7:_0x208eae);return;}_0x3b0fb9();});},'configurePreviewServer'(_0x2eba3a){var _0x3c207c=_0x2f536b;_0x2eba3a[_0x3c207c(0x1a3)][_0x3c207c(0x1a0)](async(_0x3b83f3,_0x2618ce,_0x3a6323)=>{var _0x334b0c=_0x3c207c;if(_0x3b83f3[_0x334b0c(0x191)]===RUNTIME_URL||_0x3b83f3[_0x334b0c(0x191)]===SW_URL){await _0x588bfa(),_0x2618ce[_0x334b0c(0x190)](_0x334b0c(0x1a7),'application/javascript'),_0x2618ce[_0x334b0c(0x19b)](_0x3b83f3[_0x334b0c(0x191)]===RUNTIME_URL?_0x4058b7:_0x208eae);return;}_0x3a6323();});},async 'generateBundle'(){var _0x41c654=_0x2f536b;await _0x588bfa(),this[_0x41c654(0x18d)]({'type':_0x41c654(0x199),'fileName':_0x41c654(0x192),'source':_0x4058b7}),this[_0x41c654(0x18d)]({'type':_0x41c654(0x199),'fileName':'sw-enhance.js','source':_0x208eae});},'transformIndexHtml'(_0x451450){var _0x1f5753=_0x2f536b;const _0x20b75c=buildInitScript(_0x558fac);return _0x451450[_0x1f5753(0x1a5)](/<head([^>]*)>/,_0x1f5753(0x18f)+_0x20b75c);}};};export{enhance};
|