@enhance-eng/sandbox 0.3.19 → 0.3.20-beta.1ab5433
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/README.md +44 -0
- package/dist/assets/enhance-runtime.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +11 -9
- package/dist/index.js +1 -1
- package/dist/sw-enhance.js +1 -1
- package/dist/vite/index.d.ts +12 -2
- package/dist/vite/index.js +1 -1
- package/package.json +4 -5
- package/dist/postinstall.d.ts +0 -2
- package/dist/postinstall.js +0 -1
- package/enhance.config.sample.json +0 -4
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# @enhance-eng/sandbox
|
|
2
|
+
|
|
3
|
+
Enhance sandbox library for adding preview functionality to your application.
|
|
4
|
+
|
|
5
|
+
**Supported frameworks:** React SPAs and statically generated sites. SSR is not supported.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @enhance-eng/sandbox
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Vite
|
|
14
|
+
|
|
15
|
+
Add the plugin to your Vite config:
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
// vite.config.ts
|
|
19
|
+
import { enhance } from "@enhance-eng/sandbox/vite";
|
|
20
|
+
|
|
21
|
+
export default defineConfig({
|
|
22
|
+
plugins: [enhance()],
|
|
23
|
+
});
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
That's it. The plugin handles everything automatically.
|
|
27
|
+
|
|
28
|
+
## Other Build Tools
|
|
29
|
+
|
|
30
|
+
For non-Vite setups, use the CLI to copy the required assets to your public directory:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx enhance-sandbox prepare-sw --public-dir ./public
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Then initialize Enhance in your application entry point:
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import { Enhance } from "@enhance-eng/sandbox";
|
|
40
|
+
|
|
41
|
+
Enhance.init();
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Run the CLI as part of your build process to keep assets up to date.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x52b329=_0x3d9a;(function(_0x160bb9,_0x45a1c0){const _0x4e96d7=_0x3d9a,_0x4cc1f0=_0x160bb9();while(!![]){try{const _0x12bfb1=parseInt(_0x4e96d7(0x27d))/0x1+parseInt(_0x4e96d7(0x29f))/0x2*(parseInt(_0x4e96d7(0x2c4))/0x3)+-parseInt(_0x4e96d7(0x1f0))/0x4*(parseInt(_0x4e96d7(0x1f2))/0x5)+parseInt(_0x4e96d7(0x255))/0x6+parseInt(_0x4e96d7(0x281))/0x7*(-parseInt(_0x4e96d7(0x2ae))/0x8)+-parseInt(_0x4e96d7(0x2b6))/0x9+parseInt(_0x4e96d7(0x2a7))/0xa;if(_0x12bfb1===_0x45a1c0)break;else _0x4cc1f0['push'](_0x4cc1f0['shift']());}catch(_0x2ebdd4){_0x4cc1f0['push'](_0x4cc1f0['shift']());}}}(_0xd4e2,0x4b38d));var DEFAULT_OVERLAY_PATH=!![]?_0x52b329(0x275):_0x52b329(0x275),DEFAULT_BACKEND_URL=!![]?_0x52b329(0x247):_0x52b329(0x247),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x52b329(0x26d)](_0x52b329(0x28e),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x19c20c){const _0x51479f=_0x52b329,_0x39a1d=_0x19c20c[_0x51479f(0x231)]??{};return{'callbackBypass':_0x19c20c[_0x51479f(0x244)],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x39a1d[_0x51479f(0x213)]??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x51479f(0x287),'overlayPath':_0x39a1d[_0x51479f(0x25b)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x51479f(0x21c),'security':_0x39a1d[_0x51479f(0x25c)]??_0x51479f(0x1ef),'backendUrl':_0x39a1d[_0x51479f(0x217)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x3ec998=_0x52b329;try{const _0x8b55f7=new URLSearchParams(window['location']['search']);return _0x8b55f7[_0x3ec998(0x2c5)](_0x3ec998(0x1f7))?.[_0x3ec998(0x23b)]()||'';}catch{return'';}}var LOG_PREFIX=_0x52b329(0x2b5),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x18f473){const _0x14a811=_0x52b329;console[_0x14a811(0x26d)](LOG_PREFIX+_0x14a811(0x23f)),console[_0x14a811(0x26d)](LOG_PREFIX+_0x14a811(0x229)+_0x18f473[_0x14a811(0x25b)]),console[_0x14a811(0x26d)](LOG_PREFIX+_0x14a811(0x271)+_0x18f473['enableViteHmr']),currentOptions=_0x18f473[_0x14a811(0x2c6)],toggleHandler=_0x18f473[_0x14a811(0x221)];if(overlayController){console[_0x14a811(0x26d)](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x14a811(0x26d)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x14a811(0x26d)](LOG_PREFIX+_0x14a811(0x20f)),overlayLoadPromise=doLoadOverlay(_0x18f473);try{await overlayLoadPromise,console[_0x14a811(0x26d)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x4520f6){console[_0x14a811(0x219)](LOG_PREFIX+_0x14a811(0x2ad),_0x4520f6);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x274a04){const _0x13d52f=_0x52b329;console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x299));if(typeof window===_0x13d52f(0x20c)){console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x208));return;}if(window[_0x13d52f(0x27c)]){console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x269)),overlayController=window['__enhanceOverlay'],updateOverlay();return;}console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x27a));try{_0x274a04[_0x13d52f(0x22f)]&&(console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x218)),await setupRemoteHMR(_0x274a04['overlayPath']));console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x1fd)+_0x274a04[_0x13d52f(0x25b)]);const _0x4b6cba=Date[_0x13d52f(0x214)](),_0x1b5cc1=await import(_0x274a04['overlayPath']);console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x20b)+(Date[_0x13d52f(0x214)]()-_0x4b6cba)+'ms'),console['log'](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x13d52f(0x29b)](_0x1b5cc1));if(typeof _0x1b5cc1?.[_0x13d52f(0x25e)]!==_0x13d52f(0x26a)){console['error'](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console['error'](LOG_PREFIX+_0x13d52f(0x1f9),Object[_0x13d52f(0x29b)](_0x1b5cc1));return;}console['log'](LOG_PREFIX+_0x13d52f(0x238));const _0x52e4f9=_0x1b5cc1[_0x13d52f(0x25e)]();console[_0x13d52f(0x26d)](LOG_PREFIX+'\x20Controller\x20created:',_0x52e4f9),overlayController=_0x52e4f9,window[_0x13d52f(0x27c)]=_0x52e4f9,_0x52e4f9[_0x13d52f(0x221)](_0x274a04[_0x13d52f(0x221)]),console[_0x13d52f(0x26d)](LOG_PREFIX+_0x13d52f(0x237)),console['log'](LOG_PREFIX+_0x13d52f(0x24d)),updateOverlay();}catch(_0x583d28){console[_0x13d52f(0x219)](LOG_PREFIX+_0x13d52f(0x248),_0x583d28);}}function updateOverlay(){const _0x2fb2ab=_0x52b329;console[_0x2fb2ab(0x26d)](LOG_PREFIX+_0x2fb2ab(0x20d)),console[_0x2fb2ab(0x26d)](LOG_PREFIX+_0x2fb2ab(0x2c3)+!!overlayController),console[_0x2fb2ab(0x26d)](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console[_0x2fb2ab(0x26d)](LOG_PREFIX+_0x2fb2ab(0x2bd));return;}const _0xfeb8cb=composeOverlayState(currentOptions);console[_0x2fb2ab(0x26d)](LOG_PREFIX+_0x2fb2ab(0x285),JSON['stringify'](_0xfeb8cb,null,0x2)),overlayController['update'](_0xfeb8cb),console[_0x2fb2ab(0x26d)](LOG_PREFIX+_0x2fb2ab(0x249));}function composeOverlayState(_0x1627e1){const _0x175492=_0x52b329,_0x27e8f9=getEnhancementUrl();return console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementUrl:\x20'+_0x27e8f9),console['log'](LOG_PREFIX+_0x175492(0x2b9)+state['enabled']),console[_0x175492(0x26d)](LOG_PREFIX+_0x175492(0x2b4)+state[_0x175492(0x26b)]),{'enhancementUrl':_0x27e8f9,'enabled':state[_0x175492(0x2c7)],'controlled':state[_0x175492(0x26b)],'overlayPosition':_0x1627e1[_0x175492(0x2bc)][_0x175492(0x253)],'securityMode':_0x1627e1[_0x175492(0x25c)],'backendBaseUrl':_0x1627e1[_0x175492(0x217)],'appError':state[_0x175492(0x267)]};}async function setupRemoteHMR(_0x5a4a4f){const _0x23b7cc=_0x52b329;console[_0x23b7cc(0x26d)](LOG_PREFIX+_0x23b7cc(0x2a9)+_0x5a4a4f);if(typeof window===_0x23b7cc(0x20c))return;try{const _0x418ec8=new URL(_0x5a4a4f,window[_0x23b7cc(0x27f)][_0x23b7cc(0x234)]),_0x4783a8=_0x418ec8[_0x23b7cc(0x234)];console[_0x23b7cc(0x26d)](LOG_PREFIX+_0x23b7cc(0x26f)+_0x4783a8+',\x20page\x20origin:\x20'+window[_0x23b7cc(0x27f)][_0x23b7cc(0x234)]);if(_0x4783a8===window[_0x23b7cc(0x27f)][_0x23b7cc(0x234)]){console[_0x23b7cc(0x26d)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x23b7cc(0x26d)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x4783a8),await ensureViteClient(_0x4783a8),console[_0x23b7cc(0x26d)](LOG_PREFIX+_0x23b7cc(0x1fc));}catch(_0xf4a780){console[_0x23b7cc(0x261)](LOG_PREFIX+_0x23b7cc(0x26c),_0xf4a780);}}async function ensureReactRefreshPreamble(_0x381d73){const _0x2a80c0=_0x52b329;window['__enhanceReactRefreshInstalledOrigins']??(window['__enhanceReactRefreshInstalledOrigins']=new Set());if(window[_0x2a80c0(0x2ab)][_0x2a80c0(0x202)](_0x381d73)){console['log'](LOG_PREFIX+_0x2a80c0(0x23d)+_0x381d73);return;}console[_0x2a80c0(0x26d)](LOG_PREFIX+_0x2a80c0(0x264)+_0x381d73+_0x2a80c0(0x216));const _0x626136=await import(_0x381d73+_0x2a80c0(0x210)),_0x5f3f60=_0x626136&&typeof _0x626136===_0x2a80c0(0x24c)&&'default'in _0x626136?_0x626136[_0x2a80c0(0x258)]:_0x626136;if(!isRefreshRuntime(_0x5f3f60)){console[_0x2a80c0(0x261)](LOG_PREFIX+_0x2a80c0(0x203));return;}_0x5f3f60['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window['$RefreshSig$']=()=>_0x159ae8=>_0x159ae8,window[_0x2a80c0(0x21a)]=!![],window[_0x2a80c0(0x2ab)][_0x2a80c0(0x282)](_0x381d73),console['log'](LOG_PREFIX+_0x2a80c0(0x200)+_0x381d73);}async function ensureViteClient(_0x47649a){const _0x1b0a3c=_0x52b329;window[_0x1b0a3c(0x2b2)]??(window[_0x1b0a3c(0x2b2)]=new Set());if(window[_0x1b0a3c(0x2b2)][_0x1b0a3c(0x202)](_0x47649a)){console[_0x1b0a3c(0x26d)](LOG_PREFIX+_0x1b0a3c(0x205)+_0x47649a);return;}console['log'](LOG_PREFIX+_0x1b0a3c(0x22c)+_0x47649a+'...'),await import(_0x47649a+_0x1b0a3c(0x29e)),window[_0x1b0a3c(0x2b2)]['add'](_0x47649a),console[_0x1b0a3c(0x26d)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x47649a);}function _0x3d9a(_0x59b5b0,_0x352546){const _0xd4e25d=_0xd4e2();return _0x3d9a=function(_0x3d9a9f,_0x3207c6){_0x3d9a9f=_0x3d9a9f-0x1ef;let _0x5ce7d8=_0xd4e25d[_0x3d9a9f];return _0x5ce7d8;},_0x3d9a(_0x59b5b0,_0x352546);}function isRefreshRuntime(_0x1c9c37){const _0x2da66f=_0x52b329;return typeof _0x1c9c37==='object'&&_0x1c9c37!==null&&'injectIntoGlobalHook'in _0x1c9c37&&typeof _0x1c9c37[_0x2da66f(0x22e)]===_0x2da66f(0x26a);}var WORKER_MESSAGE_CONFIG=_0x52b329(0x26e),WORKER_MESSAGE_DISABLE=_0x52b329(0x1f4),LOG_PREFIX2=_0x52b329(0x235),registration=null,currentOptions2=null;async function registerServiceWorker(_0x387b7e){const _0x53db08=_0x52b329;console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x1f6)),console[_0x53db08(0x26d)](LOG_PREFIX2+'\x20swPath:\x20'+_0x387b7e['swPath']);if(!(_0x53db08(0x278)in navigator)){console[_0x53db08(0x261)](LOG_PREFIX2+_0x53db08(0x294));return;}console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x2ca));const _0x408d5d=navigator[_0x53db08(0x278)]['controller'];console['log'](LOG_PREFIX2+_0x53db08(0x245),_0x408d5d?.['scriptURL']??'none'),console['log'](LOG_PREFIX2+_0x53db08(0x256),_0x408d5d?.['state']??_0x53db08(0x211));const _0x486c69=!!_0x408d5d;currentOptions2=_0x387b7e,console[_0x53db08(0x26d)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x334f11=await detectBlockingServiceWorker(_0x387b7e[_0x53db08(0x251)]);if(_0x334f11){console[_0x53db08(0x219)](LOG_PREFIX2+_0x53db08(0x207)+_0x334f11),console[_0x53db08(0x219)](LOG_PREFIX2+_0x53db08(0x25d));return;}console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x25a));try{console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x22a)+_0x387b7e['swPath']+_0x53db08(0x295)),registration=await navigator[_0x53db08(0x278)][_0x53db08(0x284)](_0x387b7e['swPath'],{'scope':'/'}),console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x28c),{'scope':registration[_0x53db08(0x293)],'active':registration[_0x53db08(0x22d)]?.[_0x53db08(0x29d)],'waiting':registration['waiting']?.[_0x53db08(0x29d)],'installing':registration[_0x53db08(0x2ac)]?.['scriptURL']}),console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x20a));const _0x105054=await navigator[_0x53db08(0x278)][_0x53db08(0x268)];console[_0x53db08(0x26d)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x105054[_0x53db08(0x22d)]?.['scriptURL']);const _0x48362f=ownsCurrentController(_0x387b7e[_0x53db08(0x251)]);state[_0x53db08(0x26b)]=_0x48362f,console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x232)+_0x48362f),console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x21f),navigator[_0x53db08(0x278)]['controller']?.[_0x53db08(0x29d)]??_0x53db08(0x2b7));if(!_0x486c69&&!navigator[_0x53db08(0x278)][_0x53db08(0x254)]){console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x215)),window[_0x53db08(0x27f)]['reload']();return;}console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x2af)),await sendConfiguration();if(state['enabled']){const _0xe0811c=document[_0x53db08(0x250)]('[data-enhance-runtime-bootstrap]')!==null;console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x252)+_0xe0811c);if(!_0xe0811c){console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x286)),window['location'][_0x53db08(0x2a2)]();return;}}console[_0x53db08(0x26d)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console[_0x53db08(0x26d)](LOG_PREFIX2+_0x53db08(0x28f));}catch(_0x2f0cc8){console[_0x53db08(0x219)](LOG_PREFIX2+_0x53db08(0x220),_0x2f0cc8);}}async function sendConfiguration(){const _0x3cb86b=_0x52b329;console[_0x3cb86b(0x26d)](LOG_PREFIX2+_0x3cb86b(0x224)),console[_0x3cb86b(0x26d)](LOG_PREFIX2+_0x3cb86b(0x23e)+state[_0x3cb86b(0x2c7)]+_0x3cb86b(0x209)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x3cb86b(0x26d)](LOG_PREFIX2+_0x3cb86b(0x241));return;}const _0x549f40=await resolveWorker();if(!_0x549f40){console[_0x3cb86b(0x261)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x288ae1={'callbackBypass':currentOptions2[_0x3cb86b(0x244)],'securityMode':currentOptions2[_0x3cb86b(0x25c)]};console[_0x3cb86b(0x26d)](LOG_PREFIX2+_0x3cb86b(0x263),JSON[_0x3cb86b(0x2a6)](_0x288ae1,null,0x2)),_0x549f40[_0x3cb86b(0x23c)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x288ae1}),console[_0x3cb86b(0x26d)](LOG_PREFIX2+_0x3cb86b(0x2a5));}async function unregisterServiceWorker(_0x2d6d31){const _0x5c0ab6=_0x52b329;console['log'](LOG_PREFIX2+_0x5c0ab6(0x233));if(!('serviceWorker'in navigator)){console[_0x5c0ab6(0x26d)](LOG_PREFIX2+_0x5c0ab6(0x2c1));return;}try{const _0x12da63=registration??await navigator[_0x5c0ab6(0x278)][_0x5c0ab6(0x291)]('/');if(!_0x12da63){console[_0x5c0ab6(0x26d)](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0x5c0ab6(0x26d)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x12da63[_0x5c0ab6(0x293)],'active':_0x12da63[_0x5c0ab6(0x22d)]?.[_0x5c0ab6(0x29d)],'waiting':_0x12da63[_0x5c0ab6(0x1fa)]?.[_0x5c0ab6(0x29d)],'installing':_0x12da63[_0x5c0ab6(0x2ac)]?.[_0x5c0ab6(0x29d)]});const _0x455c85=[_0x12da63[_0x5c0ab6(0x22d)]?.['scriptURL'],_0x12da63[_0x5c0ab6(0x1fa)]?.['scriptURL'],_0x12da63[_0x5c0ab6(0x2ac)]?.[_0x5c0ab6(0x29d)]],_0x55be93=_0x455c85[_0x5c0ab6(0x225)](_0x470aa1=>_0x470aa1&&ownsServiceWorker(_0x470aa1,_0x2d6d31));if(!_0x55be93){console[_0x5c0ab6(0x26d)](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x12da63[_0x5c0ab6(0x22d)]&&(console[_0x5c0ab6(0x26d)](LOG_PREFIX2+_0x5c0ab6(0x29c)),_0x12da63[_0x5c0ab6(0x22d)][_0x5c0ab6(0x23c)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x5c0ab6(0x26d)](LOG_PREFIX2+_0x5c0ab6(0x1f8)),await _0x12da63[_0x5c0ab6(0x28d)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x5c0ab6(0x2b1));}catch(_0x4868f7){console['error'](LOG_PREFIX2+_0x5c0ab6(0x1ff),_0x4868f7);}}function ownsServiceWorker(_0x1a92ba,_0x21df86){const _0x215810=_0x52b329,_0x3b8969=typeof window!=='undefined'?window[_0x215810(0x27f)][_0x215810(0x234)]:'',_0x46041d=new URL(_0x21df86,_0x3b8969||void 0x0)[_0x215810(0x276)],_0x6d1611=_0x1a92ba===_0x46041d||_0x1a92ba['includes']('sw-enhance');return console[_0x215810(0x26d)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x1a92ba+_0x215810(0x2c8)+_0x46041d+',\x20owns='+_0x6d1611),_0x6d1611;}function ownsCurrentController(_0x4b3378){const _0x1aed2c=_0x52b329;if(typeof navigator===_0x1aed2c(0x20c))return![];const _0x4c0b8d=navigator[_0x1aed2c(0x278)]?.[_0x1aed2c(0x254)];if(!_0x4c0b8d)return console[_0x1aed2c(0x26d)](LOG_PREFIX2+_0x1aed2c(0x288)),![];return ownsServiceWorker(_0x4c0b8d[_0x1aed2c(0x29d)],_0x4b3378);}async function detectBlockingServiceWorker(_0x474138){const _0x6ae43c=_0x52b329;if(!navigator[_0x6ae43c(0x278)])return null;try{const _0x52b6b7=await navigator[_0x6ae43c(0x278)][_0x6ae43c(0x291)]('/');console[_0x6ae43c(0x26d)](LOG_PREFIX2+_0x6ae43c(0x24f),_0x52b6b7?.[_0x6ae43c(0x22d)]?.[_0x6ae43c(0x29d)]??_0x6ae43c(0x2b7));const _0xbc6d68=_0x52b6b7?.[_0x6ae43c(0x22d)]?.[_0x6ae43c(0x29d)];if(!_0xbc6d68)return null;if(ownsServiceWorker(_0xbc6d68,_0x474138))return null;return _0xbc6d68;}catch(_0x1d7d63){return console[_0x6ae43c(0x219)](LOG_PREFIX2+_0x6ae43c(0x2b0),_0x1d7d63),null;}}async function resolveWorker(){const _0x1ca273=_0x52b329,_0x3c2e5a=registration??await navigator[_0x1ca273(0x278)]?.[_0x1ca273(0x291)]('/'),_0x2084b3=_0x3c2e5a?.['active']??_0x3c2e5a?.[_0x1ca273(0x1fa)]??_0x3c2e5a?.[_0x1ca273(0x2ac)]??null;return console[_0x1ca273(0x26d)](LOG_PREFIX2+_0x1ca273(0x2a1),_0x2084b3?.[_0x1ca273(0x29d)]??_0x1ca273(0x2b7),_0x1ca273(0x201)+(_0x2084b3?.[_0x1ca273(0x277)]??_0x1ca273(0x211))),_0x2084b3;}var LOG_PREFIX3=_0x52b329(0x27b);function isInitialized(){const _0x4a0cfe=_0x52b329;return typeof window!==_0x4a0cfe(0x20c)&&window[_0x4a0cfe(0x279)]===!![];}function setInitialized(_0x3b4c97){const _0x28da27=_0x52b329;typeof window!==_0x28da27(0x20c)&&(window[_0x28da27(0x279)]=_0x3b4c97);}function getOptions(){const _0x53b824=_0x52b329;return typeof window!=='undefined'?window[_0x53b824(0x21d)]??null:null;}function setOptions(_0x4ddfcb){const _0x4ba4f7=_0x52b329;typeof window!==_0x4ba4f7(0x20c)&&(window[_0x4ba4f7(0x21d)]=_0x4ddfcb);}var Enhance={'init'(_0x22c553){const _0x331f23=_0x52b329,_0x680d12=Date[_0x331f23(0x214)]();console['log'](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x680d12),console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x2a0)+window[_0x331f23(0x27f)][_0x331f23(0x276)]),console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x21b)+document[_0x331f23(0x29a)]),console['log'](LOG_PREFIX3+_0x331f23(0x2c2),JSON[_0x331f23(0x2a6)](_0x22c553,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window[_0x331f23(0x240)]??createController();setInitialized(!![]),console['log'](LOG_PREFIX3+'\x20First\x20initialization');const _0x522f43=normalizeOptions(_0x22c553);setOptions(_0x522f43),console['log'](LOG_PREFIX3+'\x20Normalized\x20options:',JSON['stringify'](_0x522f43,null,0x2));const _0x4d5fb6=parseUrlParams();console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x274),JSON['stringify'](_0x4d5fb6,null,0x2));if(_0x4d5fb6['explicitDisable'])return cleanUrlParam(_0x331f23(0x230)),console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x2ba)),createController();if(_0x4d5fb6[_0x331f23(0x212)])return console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x242)),console[_0x331f23(0x26d)](LOG_PREFIX3+'\x20enhancementUrl:\x20'+_0x4d5fb6[_0x331f23(0x1f7)]),console['log'](LOG_PREFIX3+_0x331f23(0x24b)+_0x4d5fb6[_0x331f23(0x2be)]),state['enabled']=!![],console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x2c0)),void loadOverlay({'overlayPath':_0x522f43['overlayPath'],'enableViteHmr':_0x522f43[_0x331f23(0x2bc)]['enableViteHmr'],'options':_0x522f43,'onToggle':handleToggle}),console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x2c9)),void registerServiceWorker(_0x522f43),console['log'](LOG_PREFIX3+_0x331f23(0x272)),createController();return console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x1f3)),console['log'](LOG_PREFIX3+_0x331f23(0x283)),void unregisterServiceWorker(_0x522f43[_0x331f23(0x251)]),console[_0x331f23(0x26d)](LOG_PREFIX3+_0x331f23(0x243)),import.meta[_0x331f23(0x2aa)]&&(console[_0x331f23(0x26d)](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta[_0x331f23(0x2aa)]['on']('vite:error',_0x2b1355=>{const _0x38a326=_0x331f23;console[_0x38a326(0x26d)](LOG_PREFIX3+_0x38a326(0x24a),_0x2b1355),state[_0x38a326(0x267)]={'message':_0x2b1355['err'][_0x38a326(0x2bf)]},updateOverlay();}),import.meta['hot']['on'](_0x331f23(0x27e),()=>{const _0x2ed12d=_0x331f23;state[_0x2ed12d(0x267)]&&(console[_0x2ed12d(0x26d)](LOG_PREFIX3+_0x2ed12d(0x228)),state[_0x2ed12d(0x267)]=null,updateOverlay());})),createController();}};function createController(){const _0x4a6645=_0x52b329,_0x91b870={'enable'(){const _0x2668b3=_0x3d9a,_0x5738a9=getOptions();if(!_0x5738a9)return;state[_0x2668b3(0x2c7)]=!![],void loadOverlay({'overlayPath':_0x5738a9[_0x2668b3(0x25b)],'enableViteHmr':_0x5738a9[_0x2668b3(0x2bc)][_0x2668b3(0x22f)],'options':_0x5738a9,'onToggle':handleToggle}),void registerServiceWorker(_0x5738a9),void sendConfiguration(),updateOverlay();},'disable'(){const _0x419b33=_0x3d9a,_0x3f4bcf=getOptions();if(!_0x3f4bcf)return;state[_0x419b33(0x2c7)]=![],state[_0x419b33(0x26b)]=![],updateOverlay(),void unregisterServiceWorker(_0x3f4bcf['swPath']);},'status'(){const _0x541ad5=_0x3d9a;return{'enabled':state['enabled'],'controlled':state[_0x541ad5(0x26b)]};}};return typeof window!=='undefined'&&(window[_0x4a6645(0x240)]=_0x91b870),_0x91b870;}function handleToggle(){const _0x132284=_0x52b329,_0x56fd3d=createController();state[_0x132284(0x2c7)]?_0x56fd3d[_0x132284(0x236)]():_0x56fd3d[_0x132284(0x297)]();}function parseUrlParams(){const _0xef798d=_0x52b329,_0x5f4a51=new URL(window['location'][_0xef798d(0x276)]),_0x1c5454=_0x5f4a51[_0xef798d(0x2a3)]['get'](_0xef798d(0x230))?.[_0xef798d(0x1f5)](),_0x41922d=_0x5f4a51[_0xef798d(0x2a3)][_0xef798d(0x2c5)](_0xef798d(0x1f7)),_0x4e2112=_0x5f4a51['searchParams'][_0xef798d(0x2c5)](_0xef798d(0x265));return{'hasEnhancement':Boolean(_0x41922d||_0x4e2112),'explicitDisable':_0x1c5454==='0'||_0x1c5454===_0xef798d(0x21e)||_0x1c5454===_0xef798d(0x290),'enhancementUrl':_0x41922d,'enhancementId':_0x4e2112};}function cleanUrlParam(_0x5cd0c1){const _0x5a8baf=_0x52b329,_0x99a74d=new URL(window[_0x5a8baf(0x27f)][_0x5a8baf(0x276)]);_0x99a74d[_0x5a8baf(0x2a3)][_0x5a8baf(0x202)](_0x5cd0c1)&&(_0x99a74d[_0x5a8baf(0x2a3)][_0x5a8baf(0x292)](_0x5cd0c1),window[_0x5a8baf(0x2a8)][_0x5a8baf(0x296)](null,document[_0x5a8baf(0x1f1)],_0x99a74d[_0x5a8baf(0x1fe)]()));}var package_default={'name':_0x52b329(0x273),'version':_0x52b329(0x2a4),'type':_0x52b329(0x22b),'description':_0x52b329(0x298),'license':_0x52b329(0x222),'main':_0x52b329(0x226),'module':'./dist/index.js','types':_0x52b329(0x257),'exports':{'.':{'types':_0x52b329(0x257),'import':'./dist/index.js','require':_0x52b329(0x226)},'./vite':{'types':_0x52b329(0x259),'import':_0x52b329(0x2b8)}},'files':['dist',_0x52b329(0x23a),_0x52b329(0x25f)],'bin':{'enhance-sandbox':'bin/enhance-sandbox.js'},'scripts':{'typecheck':_0x52b329(0x246),'dev':_0x52b329(0x28b),'dev:build':_0x52b329(0x262),'dev:staging':_0x52b329(0x223),'dev:staging:build':_0x52b329(0x28a),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x52b329(0x204),'version':_0x52b329(0x2b3)},'dependencies':{'commander':_0x52b329(0x24e),'zod':_0x52b329(0x280)},'devDependencies':{'@types/node':_0x52b329(0x1fb),'javascript-obfuscator':'^4.1.1','tsup':'^8.5.1','vite':_0x52b329(0x227)},'publishConfig':{'access':_0x52b329(0x20e)}},DEFAULT_SERVICE_WORKER_PATH=_0x52b329(0x287),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x52b329(0x260)]===_0x52b329(0x206)?package_default[_0x52b329(0x260)]:'0.0.0';function normalizeAssetPath(_0x48fefb){const _0x478a20=_0x52b329;if(!_0x48fefb)return _0x48fefb;if(_0x48fefb[_0x478a20(0x289)](_0x478a20(0x239))||_0x48fefb[_0x478a20(0x289)](_0x478a20(0x270)))return _0x48fefb;const _0x3f407e=_0x48fefb[_0x478a20(0x266)](/^\.\//,'');return _0x3f407e[_0x478a20(0x289)]('/')?_0x3f407e:'/'+_0x3f407e;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x2c8b1a){const _0x3fbc0b=_0x52b329;return Enhance[_0x3fbc0b(0x2cb)](_0x2c8b1a);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){const _0x47158e=_0x52b329;return Enhance2[_0x47158e(0x2bb)]();}function _0xd4e2(){const _0x83ef81=['waiting','^24.10.1','\x20HMR\x20setup\x20complete','\x20Importing\x20overlay\x20module\x20from:\x20','toString','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','state:\x20','has','\x20Invalid\x20React\x20Refresh\x20runtime','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Vite\x20client\x20already\x20loaded\x20for\x20','string','\x20BLOCKING\x20SW\x20detected:\x20','\x20No\x20window\x20object\x20-\x20skipping',',\x20currentOptions:\x20','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20Module\x20imported\x20in\x20','undefined','\x20updateOverlay()\x20called','public','\x20Starting\x20fresh\x20overlay\x20load...','/@react-refresh','N/A','hasEnhancement','enableOverlayHmr','now','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','...','backendUrl','\x20Setting\x20up\x20remote\x20HMR...','error','__vite_plugin_react_preamble_installed__','\x20Document\x20readyState:\x20','/assets/enhance-runtime.js','__enhanceOptions','false','\x20Current\x20controller\x20after\x20ready:','\x20Failed\x20to\x20register\x20service\x20worker:','onToggle','MIT','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20sendConfiguration()\x20called','some','./dist/index.cjs','^7.2.4','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20overlayPath:\x20','\x20Registering\x20SW\x20at\x20','module','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','active','injectIntoGlobalHook','enableViteHmr','enhance','__development','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20unregisterServiceWorker()\x20called','origin','[Enhance\x20SW-Client]','disable','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Calling\x20createOverlay()...','http://','bin','trim','postMessage','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20state.enabled:\x20','\x20loadOverlay()\x20called','__enhanceController','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Enhancement\x20mode\x20ENABLED','\x20init()\x20complete\x20-\x20normal\x20mode','callbackBypass','\x20Current\x20controller:','tsc\x20--noEmit','https://api.enhancelabs.ai','\x20Failed\x20to\x20import/create\x20overlay:','\x20Overlay\x20update\x20complete','\x20Vite\x20error\x20detected:','\x20enhancementId:\x20','object','\x20Calling\x20updateOverlay()...','^11.1.0','\x20detectBlocking\x20-\x20existing\x20registration:','querySelector','swPath','\x20Enhancement\x20detection:\x20wasEnhanced=','position','controller','234366uKqdjD','\x20Controller\x20state:','./dist/index.d.ts','default','./dist/vite/index.d.ts','\x20No\x20blocking\x20SW\x20found','overlayPath','security','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','createOverlay','enhance.config.sample.json','version','warn','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','enhancement','replace','appError','ready','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20reusing','function','controlled','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','log','enhance:configure','\x20Overlay\x20origin:\x20','https://','\x20enableViteHmr:\x20','\x20init()\x20complete\x20-\x20enhancement\x20mode','@enhance-eng/sandbox','\x20URL\x20params\x20parsed:','https://assets.enhancelabs.ai/overlay.js','href','state','serviceWorker','__enhanceInitialized','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','[Enhance\x20Runtime]','__enhanceOverlay','143563zrzAKu','vite:beforeUpdate','location','^3.22.4','234647YeQZDH','add','\x20Unregistering\x20any\x20existing\x20SW...','register','\x20Updating\x20overlay\x20with\x20state:','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','/sw-enhance.js','\x20No\x20current\x20controller','startsWith','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20Registration\x20returned:','unregister','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20registerServiceWorker()\x20complete','off','getRegistration','delete','scope','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20with\x20scope\x20\x27/\x27...','replaceState','enable','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','\x20doLoadOverlay()\x20starting...','readyState','keys','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','scriptURL','/@vite/client','371878EyZIXA','\x20Current\x20URL:\x20','\x20resolveWorker:','reload','searchParams','0.3.19','\x20Config\x20sent\x20to\x20SW','stringify','8912480HhCJqY','history','\x20setupRemoteHMR()\x20for\x20','hot','__enhanceReactRefreshInstalledOrigins','installing','\x20loadOverlay()\x20failed:','80zXOnaw','\x20Sending\x20customer\x20configuration...','\x20detectBlocking\x20error:','\x20SW\x20unregistered\x20successfully','__viteHMRLoaded','pnpm\x20version\x20patch\x20--no-git-tag-version','\x20composeOverlayState\x20-\x20state.controlled:\x20','[Enhance\x20Overlay]','4632651jJzHwc','none','./dist/vite/index.js','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','serviceWorkerURL','overlay','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','enhancementId','message','\x20Starting\x20overlay\x20load\x20(async)...','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20Raw\x20options:','\x20overlayController\x20exists:\x20','3Nhqcom','get','options','enabled',',\x20expected=','\x20Starting\x20SW\x20registration\x20(async)...','\x20Service\x20workers\x20supported','init','permissive','388QDWYPM','title','5245IDEnxu','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','enhance:disable','toLowerCase','\x20registerServiceWorker()\x20called','enhancementUrl','\x20Unregistering\x20SW...','\x20Available\x20exports:'];_0xd4e2=function(){return _0x83ef81;};return _0xd4e2();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x4bad8d=_0x4652;function _0x33ee(){const _0x33fc99=['__enhanceOverlay','active','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Overlay\x20origin:\x20','\x20Enhancement\x20detection:\x20wasEnhanced=','https://','\x20detectBlocking\x20-\x20existing\x20registration:',',\x20currentOptions:\x20','532212CkVAdW','__viteHMRLoaded','history','none','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','replaceState','4000110vEWhJY','__enhanceReactRefreshInstalledOrigins',',\x20page\x20origin:\x20','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','__enhanceController','\x20Calling\x20createOverlay()...','\x20URL\x20params\x20parsed:','register','serviceWorker','warn','public','keys','searchParams','includes','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','^4.1.1','trim','\x20Vite\x20client\x20already\x20loaded\x20for\x20','...','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','stringify','callbackBypass','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','\x20Setting\x20up\x20remote\x20HMR...','^7.2.4','\x20enhancementUrl:\x20','\x20BLOCKING\x20SW\x20detected:\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','\x20Controller\x20state:','$RefreshSig$','__development','\x20overlayPath:\x20','__enhanceOptions','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','explicitDisable','^8.5.1','enable','onToggle','\x20Failed\x20to\x20import/create\x20overlay:','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','init','bottom-right','object','\x20Calling\x20updateOverlay()...','security','[Enhance\x20SW-Client]','installing','\x20Failed\x20to\x20unregister\x20service\x20worker:','waiting','overlayPath','__enhanceInitialized','\x20Config\x20sent\x20to\x20SW','\x20Service\x20workers\x20supported','/@vite/client','enabled','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20currentOptions\x20exists:\x20','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','permissive','swPath','state','https://assets.enhancelabs.ai/overlay.js','\x20composeOverlayState\x20-\x20state.enabled:\x20','runtimeURL','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','false','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20loadOverlay()\x20called','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','delete','\x20Controller\x20created:','\x20Found\x20registration:','add','\x20ownsServiceWorker?\x20scriptURL=','0.3.20','\x20HMR\x20setup\x20complete','501221sNLvjA','/sw-enhance.js','^3.22.4','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Updating\x20overlay\x20with\x20state:','\x20Unregistering\x20any\x20existing\x20SW...','createOverlay','$RefreshReg$','./dev/index.js','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','get','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','log','\x20Available\x20exports:','/assets/enhance-runtime.js','\x20Current\x20controller:','@enhance-eng/sandbox','sw-enhance','\x20Enhancement\x20mode\x20ENABLED','controller','\x20registerServiceWorker()\x20complete','\x20init()\x20called\x20at\x20','https://api.enhancelabs.ai','toLowerCase','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20detectBlocking\x20error:','enhancementUrl','err','toString','scriptURL','serviceWorkerURL','appError','6546222JveBRf','readyState','controlled','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','replace','injectIntoGlobalHook','\x20No\x20window\x20object\x20-\x20skipping','error','href','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','module','\x20enhancementId:\x20','./dev/cli.js','[Enhance\x20Runtime]','enhance:disable','\x20Unregistering\x20SW...','\x20registerServiceWorker()\x20called','\x20unregisterServiceWorker()\x20called','function','\x20Normalized\x20options:','info','enableViteHmr','\x20overlayController\x20exists:\x20','string','version','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','backendUrl','postMessage','3678651TnWiTh','origin','now','\x20No\x20current\x20controller','off','\x20First\x20initialization','8PwxsRZ','\x20Failed\x20to\x20register\x20service\x20worker:','disable','startsWith','\x20doLoadOverlay()\x20starting...','\x20Sending\x20customer\x20configuration...','N/A','scope','\x20Module\x20missing\x20createOverlay\x20export!','vite:beforeUpdate','\x20sendConfiguration()\x20called','http://','undefined','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20composeOverlayState\x20-\x20enhancementId:\x20','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20',',\x20owns=','hasEnhancement','publishableKey','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','title','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Module\x20exports:','has','0.0.0','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','options','120087awkbfQ','location','\x20Overlay\x20update\x20complete','enhance','\x20Registering\x20SW\x20at\x20','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','bun\x20version\x20patch\x20--no-git-tag-version','\x20Vite\x20error\x20detected:','\x20Module\x20imported\x20in\x20','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20loadOverlay()\x20failed:','default','dev/','16oxitdP','2010207clzEpb','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20Current\x20URL:\x20','reload','\x20resolveWorker:'];_0x33ee=function(){return _0x33fc99;};return _0x33ee();}(function(_0x16424e,_0x127661){const _0x1b22ff=_0x4652,_0x5c4e32=_0x16424e();while(!![]){try{const _0x5721a9=-parseInt(_0x1b22ff(0x25a))/0x1*(-parseInt(_0x1b22ff(0x23e))/0x2)+-parseInt(_0x1b22ff(0x268))/0x3+-parseInt(_0x1b22ff(0x277))/0x4+-parseInt(_0x1b22ff(0x27d))/0x5+parseInt(_0x1b22ff(0x21b))/0x6+parseInt(_0x1b22ff(0x1fb))/0x7+-parseInt(_0x1b22ff(0x267))/0x8*(-parseInt(_0x1b22ff(0x238))/0x9);if(_0x5721a9===_0x127661)break;else _0x5c4e32['push'](_0x5c4e32['shift']());}catch(_0x15fde6){_0x5c4e32['push'](_0x5c4e32['shift']());}}}(_0x33ee,0xd14ea));var DEFAULT_OVERLAY_PATH=!![]?'https://assets.enhancelabs.ai/overlay.js':_0x4bad8d(0x1eb),DEFAULT_BACKEND_URL=!![]?_0x4bad8d(0x211):'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x4bad8d(0x207)](_0x4bad8d(0x263),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x5d7870){const _0x54c365=_0x4bad8d;if(!_0x5d7870['publishableKey'])throw new Error(_0x54c365(0x1ce));const _0xaeac8d=_0x5d7870[_0x54c365(0x29e)]??{};return{'publishableKey':_0x5d7870[_0x54c365(0x250)],'callbackBypass':_0x5d7870[_0x54c365(0x292)]??[],'overlay':{'enabled':!![],'position':_0x54c365(0x1d6),'enableViteHmr':_0xaeac8d['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0x54c365(0x230),'swPath':_0x54c365(0x1fc),'overlayPath':_0xaeac8d[_0x54c365(0x1de)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0xaeac8d[_0x54c365(0x1d9)]??_0x54c365(0x1e8),'backendUrl':_0xaeac8d[_0x54c365(0x236)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0xe7b3e3=_0x4bad8d;try{const _0x5aa24f=new URLSearchParams(window[_0xe7b3e3(0x25b)]['search']);return _0x5aa24f[_0xe7b3e3(0x205)]('enhancement')?.[_0xe7b3e3(0x28d)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0xb9dfb2){const _0x26c161=_0x4bad8d;console[_0x26c161(0x207)](LOG_PREFIX+_0x26c161(0x1f2)),console[_0x26c161(0x207)](LOG_PREFIX+_0x26c161(0x29f)+_0xb9dfb2[_0x26c161(0x1de)]),console[_0x26c161(0x207)](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0xb9dfb2['enableViteHmr']),currentOptions=_0xb9dfb2[_0x26c161(0x259)],toggleHandler=_0xb9dfb2['onToggle'];if(overlayController){console[_0x26c161(0x207)](LOG_PREFIX+_0x26c161(0x21e)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x26c161(0x207)](LOG_PREFIX+_0x26c161(0x269)),overlayLoadPromise;console[_0x26c161(0x207)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0xb9dfb2);try{await overlayLoadPromise,console[_0x26c161(0x207)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x454aca){console['error'](LOG_PREFIX+_0x26c161(0x264),_0x454aca);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x246972){const _0x5d353d=_0x4bad8d;console[_0x5d353d(0x207)](LOG_PREFIX+_0x5d353d(0x242));if(typeof window==='undefined'){console['log'](LOG_PREFIX+_0x5d353d(0x222));return;}if(window['__enhanceOverlay']){console[_0x5d353d(0x207)](LOG_PREFIX+_0x5d353d(0x251)),overlayController=window[_0x5d353d(0x26e)];return;}console['log'](LOG_PREFIX+_0x5d353d(0x271));try{_0x246972[_0x5d353d(0x231)]&&(console['log'](LOG_PREFIX+_0x5d353d(0x295)),await setupRemoteHMR(_0x246972[_0x5d353d(0x1de)]));console[_0x5d353d(0x207)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x246972['overlayPath']);const _0x3f9892=Date[_0x5d353d(0x23a)](),_0x5c3cca=await import(_0x246972[_0x5d353d(0x1de)]);console[_0x5d353d(0x207)](LOG_PREFIX+_0x5d353d(0x262)+(Date[_0x5d353d(0x23a)]()-_0x3f9892)+'ms'),console['log'](LOG_PREFIX+_0x5d353d(0x255),Object[_0x5d353d(0x288)](_0x5c3cca));if(typeof _0x5c3cca?.[_0x5d353d(0x201)]!==_0x5d353d(0x22e)){console[_0x5d353d(0x223)](LOG_PREFIX+_0x5d353d(0x246)),console['error'](LOG_PREFIX+_0x5d353d(0x208),Object[_0x5d353d(0x288)](_0x5c3cca));return;}console[_0x5d353d(0x207)](LOG_PREFIX+_0x5d353d(0x282));const _0x4901b3=_0x5c3cca[_0x5d353d(0x201)]();console[_0x5d353d(0x207)](LOG_PREFIX+_0x5d353d(0x1f5),_0x4901b3),overlayController=_0x4901b3,window[_0x5d353d(0x26e)]=_0x4901b3,_0x4901b3[_0x5d353d(0x1d2)](_0x246972[_0x5d353d(0x1d2)]),console[_0x5d353d(0x207)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x5d353d(0x207)](LOG_PREFIX+_0x5d353d(0x1d8)),updateOverlay();}catch(_0x423eae){console[_0x5d353d(0x223)](LOG_PREFIX+_0x5d353d(0x1d3),_0x423eae);}}function updateOverlay(){const _0x1beef7=_0x4bad8d;console['log'](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x1beef7(0x207)](LOG_PREFIX+_0x1beef7(0x232)+!!overlayController),console['log'](LOG_PREFIX+_0x1beef7(0x1e5)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x4eedd3=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x1beef7(0x1ff),JSON[_0x1beef7(0x291)](_0x4eedd3,null,0x2)),overlayController['update'](_0x4eedd3),console[_0x1beef7(0x207)](LOG_PREFIX+_0x1beef7(0x25c));}function composeOverlayState(_0x28c6a9){const _0x5ee871=_0x4bad8d,_0xe29b11=getEnhancementId();return console[_0x5ee871(0x207)](LOG_PREFIX+_0x5ee871(0x24c)+_0xe29b11),console[_0x5ee871(0x207)](LOG_PREFIX+_0x5ee871(0x1ec)+state['enabled']),console['log'](LOG_PREFIX+_0x5ee871(0x1e6)+state[_0x5ee871(0x21d)]),{'enhancementId':_0xe29b11,'enabled':state[_0x5ee871(0x1e3)],'controlled':state[_0x5ee871(0x21d)],'overlayPosition':_0x28c6a9['overlay']['position'],'securityMode':_0x28c6a9['security'],'backendBaseUrl':_0x28c6a9[_0x5ee871(0x236)],'appError':state['appError']};}async function setupRemoteHMR(_0x5585ea){const _0x377264=_0x4bad8d;console[_0x377264(0x207)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x5585ea);if(typeof window===_0x377264(0x24a))return;try{const _0x28936e=new URL(_0x5585ea,window[_0x377264(0x25b)][_0x377264(0x239)]),_0x5bb1d9=_0x28936e[_0x377264(0x239)];console[_0x377264(0x207)](LOG_PREFIX+_0x377264(0x272)+_0x5bb1d9+_0x377264(0x27f)+window[_0x377264(0x25b)][_0x377264(0x239)]);if(_0x5bb1d9===window[_0x377264(0x25b)][_0x377264(0x239)]){console['log'](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x377264(0x207)](LOG_PREFIX+_0x377264(0x1ef)),await ensureReactRefreshPreamble(_0x5bb1d9),await ensureViteClient(_0x5bb1d9),console['log'](LOG_PREFIX+_0x377264(0x1fa));}catch(_0x1d8b11){console['warn'](LOG_PREFIX+_0x377264(0x294),_0x1d8b11);}}async function ensureReactRefreshPreamble(_0x1a336e){const _0x3bf0f2=_0x4bad8d;window[_0x3bf0f2(0x27e)]??(window[_0x3bf0f2(0x27e)]=new Set());if(window[_0x3bf0f2(0x27e)]['has'](_0x1a336e)){console[_0x3bf0f2(0x207)](LOG_PREFIX+_0x3bf0f2(0x1fe)+_0x1a336e);return;}console[_0x3bf0f2(0x207)](LOG_PREFIX+_0x3bf0f2(0x213)+_0x1a336e+'...');const _0x43f741=await import(_0x1a336e+'/@react-refresh'),_0x306366=_0x43f741&&typeof _0x43f741==='object'&&_0x3bf0f2(0x265)in _0x43f741?_0x43f741['default']:_0x43f741;if(!isRefreshRuntime(_0x306366)){console['warn'](LOG_PREFIX+_0x3bf0f2(0x254));return;}_0x306366[_0x3bf0f2(0x221)](window),window[_0x3bf0f2(0x202)]=()=>{},window[_0x3bf0f2(0x29d)]=()=>_0x29fb2c=>_0x29fb2c,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x3bf0f2(0x27e)]['add'](_0x1a336e),console[_0x3bf0f2(0x207)](LOG_PREFIX+_0x3bf0f2(0x28b)+_0x1a336e);}async function ensureViteClient(_0xb7af17){const _0x24dd4c=_0x4bad8d;window['__viteHMRLoaded']??(window[_0x24dd4c(0x278)]=new Set());if(window[_0x24dd4c(0x278)][_0x24dd4c(0x256)](_0xb7af17)){console[_0x24dd4c(0x207)](LOG_PREFIX+_0x24dd4c(0x28e)+_0xb7af17);return;}console[_0x24dd4c(0x207)](LOG_PREFIX+_0x24dd4c(0x24d)+_0xb7af17+_0x24dd4c(0x28f)),await import(_0xb7af17+_0x24dd4c(0x1e2)),window[_0x24dd4c(0x278)][_0x24dd4c(0x1f7)](_0xb7af17),console[_0x24dd4c(0x207)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0xb7af17);}function isRefreshRuntime(_0x29fa54){const _0x15521a=_0x4bad8d;return typeof _0x29fa54===_0x15521a(0x1d7)&&_0x29fa54!==null&&_0x15521a(0x221)in _0x29fa54&&typeof _0x29fa54[_0x15521a(0x221)]===_0x15521a(0x22e);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x4bad8d(0x22a),LOG_PREFIX2=_0x4bad8d(0x1da),registration=null,currentOptions2=null;async function registerServiceWorker(_0x53dd19){const _0x1ce90d=_0x4bad8d;console[_0x1ce90d(0x207)](LOG_PREFIX2+_0x1ce90d(0x22c)),console[_0x1ce90d(0x207)](LOG_PREFIX2+'\x20swPath:\x20'+_0x53dd19[_0x1ce90d(0x1e9)]);if(!(_0x1ce90d(0x285)in navigator)){console[_0x1ce90d(0x286)](LOG_PREFIX2+_0x1ce90d(0x1f3));return;}console[_0x1ce90d(0x207)](LOG_PREFIX2+_0x1ce90d(0x1e1));const _0x162780=navigator['serviceWorker'][_0x1ce90d(0x20e)];console[_0x1ce90d(0x207)](LOG_PREFIX2+_0x1ce90d(0x20a),_0x162780?.[_0x1ce90d(0x218)]??_0x1ce90d(0x27a)),console[_0x1ce90d(0x207)](LOG_PREFIX2+_0x1ce90d(0x29c),_0x162780?.[_0x1ce90d(0x1ea)]??_0x1ce90d(0x244));const _0x2daea6=!!_0x162780;currentOptions2=_0x53dd19,console['log'](LOG_PREFIX2+_0x1ce90d(0x1ee));const _0x3395ca=await detectBlockingServiceWorker(_0x53dd19[_0x1ce90d(0x1e9)]);if(_0x3395ca){console['error'](LOG_PREFIX2+_0x1ce90d(0x298)+_0x3395ca),console['error'](LOG_PREFIX2+_0x1ce90d(0x206));return;}console['log'](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console['log'](LOG_PREFIX2+_0x1ce90d(0x25e)+_0x53dd19[_0x1ce90d(0x1e9)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x1ce90d(0x285)][_0x1ce90d(0x284)](_0x53dd19['swPath'],{'scope':'/'}),console[_0x1ce90d(0x207)](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration['scope'],'active':registration[_0x1ce90d(0x26f)]?.['scriptURL'],'waiting':registration[_0x1ce90d(0x1dd)]?.[_0x1ce90d(0x218)],'installing':registration[_0x1ce90d(0x1db)]?.[_0x1ce90d(0x218)]}),console['log'](LOG_PREFIX2+_0x1ce90d(0x1f1));const _0x5d3883=await navigator[_0x1ce90d(0x285)]['ready'];console[_0x1ce90d(0x207)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x5d3883[_0x1ce90d(0x26f)]?.[_0x1ce90d(0x218)]);const _0x4b0969=ownsCurrentController(_0x53dd19[_0x1ce90d(0x1e9)]);state[_0x1ce90d(0x21d)]=_0x4b0969,console[_0x1ce90d(0x207)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x4b0969),console['log'](LOG_PREFIX2+'\x20Current\x20controller\x20after\x20ready:',navigator[_0x1ce90d(0x285)][_0x1ce90d(0x20e)]?.[_0x1ce90d(0x218)]??_0x1ce90d(0x27a));if(!_0x2daea6&&!navigator['serviceWorker'][_0x1ce90d(0x20e)]){console['log'](LOG_PREFIX2+_0x1ce90d(0x1d4)),window[_0x1ce90d(0x25b)][_0x1ce90d(0x26c)]();return;}console['log'](LOG_PREFIX2+_0x1ce90d(0x243)),await sendConfiguration();if(state[_0x1ce90d(0x1e3)]){const _0x563dfd=document['querySelector']('[data-enhance-runtime-bootstrap]')!==null;console[_0x1ce90d(0x207)](LOG_PREFIX2+_0x1ce90d(0x273)+_0x563dfd);if(!_0x563dfd){console[_0x1ce90d(0x207)](LOG_PREFIX2+_0x1ce90d(0x25f)),window[_0x1ce90d(0x25b)]['reload']();return;}}console[_0x1ce90d(0x207)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console['log'](LOG_PREFIX2+_0x1ce90d(0x20f));}catch(_0x495b7f){console[_0x1ce90d(0x223)](LOG_PREFIX2+_0x1ce90d(0x23f),_0x495b7f);}}async function sendConfiguration(){const _0x33ac91=_0x4bad8d;console[_0x33ac91(0x207)](LOG_PREFIX2+_0x33ac91(0x248)),console['log'](LOG_PREFIX2+'\x20state.enabled:\x20'+state[_0x33ac91(0x1e3)]+_0x33ac91(0x276)+!!currentOptions2);if(!state[_0x33ac91(0x1e3)]||!currentOptions2){console[_0x33ac91(0x207)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x1d6d8c=await resolveWorker();if(!_0x1d6d8c){console[_0x33ac91(0x286)](LOG_PREFIX2+_0x33ac91(0x253));return;}const _0x4c4b0b={'publishableKey':currentOptions2[_0x33ac91(0x250)],'callbackBypass':currentOptions2[_0x33ac91(0x292)],'securityMode':currentOptions2[_0x33ac91(0x1d9)]};console[_0x33ac91(0x207)](LOG_PREFIX2+_0x33ac91(0x1e4),JSON['stringify'](_0x4c4b0b,null,0x2)),_0x1d6d8c[_0x33ac91(0x237)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x4c4b0b}),console['log'](LOG_PREFIX2+_0x33ac91(0x1e0));}async function unregisterServiceWorker(_0x240996){const _0x443fde=_0x4bad8d;console[_0x443fde(0x207)](LOG_PREFIX2+_0x443fde(0x22d));if(!(_0x443fde(0x285)in navigator)){console[_0x443fde(0x207)](LOG_PREFIX2+_0x443fde(0x204));return;}try{const _0x5b6a8e=registration??await navigator[_0x443fde(0x285)]['getRegistration']('/');if(!_0x5b6a8e){console['log'](LOG_PREFIX2+_0x443fde(0x280));return;}console[_0x443fde(0x207)](LOG_PREFIX2+_0x443fde(0x1f6),{'scope':_0x5b6a8e[_0x443fde(0x245)],'active':_0x5b6a8e[_0x443fde(0x26f)]?.[_0x443fde(0x218)],'waiting':_0x5b6a8e[_0x443fde(0x1dd)]?.['scriptURL'],'installing':_0x5b6a8e['installing']?.['scriptURL']});const _0x33b135=[_0x5b6a8e[_0x443fde(0x26f)]?.[_0x443fde(0x218)],_0x5b6a8e[_0x443fde(0x1dd)]?.[_0x443fde(0x218)],_0x5b6a8e[_0x443fde(0x1db)]?.[_0x443fde(0x218)]],_0x515c2b=_0x33b135['some'](_0x57b6d4=>_0x57b6d4&&ownsServiceWorker(_0x57b6d4,_0x240996));if(!_0x515c2b){console[_0x443fde(0x207)](LOG_PREFIX2+_0x443fde(0x29a));return;}_0x5b6a8e[_0x443fde(0x26f)]&&(console[_0x443fde(0x207)](LOG_PREFIX2+_0x443fde(0x21f)),_0x5b6a8e[_0x443fde(0x26f)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x443fde(0x22b)),await _0x5b6a8e['unregister'](),registration=null,currentOptions2=null,console[_0x443fde(0x207)](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x168029){console[_0x443fde(0x223)](LOG_PREFIX2+_0x443fde(0x1dc),_0x168029);}}function ownsServiceWorker(_0x3de5ba,_0x2be842){const _0x241a5c=_0x4bad8d,_0x33b21c=typeof window!=='undefined'?window[_0x241a5c(0x25b)][_0x241a5c(0x239)]:'',_0xc0cb82=new URL(_0x2be842,_0x33b21c||void 0x0)['href'],_0x16b9af=_0x3de5ba===_0xc0cb82||_0x3de5ba[_0x241a5c(0x28a)](_0x241a5c(0x20c));return console[_0x241a5c(0x207)](LOG_PREFIX2+_0x241a5c(0x1f8)+_0x3de5ba+',\x20expected='+_0xc0cb82+_0x241a5c(0x24e)+_0x16b9af),_0x16b9af;}function _0x4652(_0x49e111,_0x6f478b){_0x49e111=_0x49e111-0x1cd;const _0x33ee6f=_0x33ee();let _0x4652d6=_0x33ee6f[_0x49e111];return _0x4652d6;}function ownsCurrentController(_0x514146){const _0x15c3c4=_0x4bad8d;if(typeof navigator===_0x15c3c4(0x24a))return![];const _0x39c965=navigator[_0x15c3c4(0x285)]?.[_0x15c3c4(0x20e)];if(!_0x39c965)return console[_0x15c3c4(0x207)](LOG_PREFIX2+_0x15c3c4(0x23b)),![];return ownsServiceWorker(_0x39c965[_0x15c3c4(0x218)],_0x514146);}async function detectBlockingServiceWorker(_0x17f6b8){const _0x547941=_0x4bad8d;if(!navigator[_0x547941(0x285)])return null;try{const _0x495cee=await navigator['serviceWorker']['getRegistration']('/');console['log'](LOG_PREFIX2+_0x547941(0x275),_0x495cee?.[_0x547941(0x26f)]?.['scriptURL']??'none');const _0x57cd7f=_0x495cee?.[_0x547941(0x26f)]?.[_0x547941(0x218)];if(!_0x57cd7f)return null;if(ownsServiceWorker(_0x57cd7f,_0x17f6b8))return null;return _0x57cd7f;}catch(_0x483952){return console[_0x547941(0x223)](LOG_PREFIX2+_0x547941(0x214),_0x483952),null;}}async function resolveWorker(){const _0x435ac7=_0x4bad8d,_0x2aeed4=registration??await navigator[_0x435ac7(0x285)]?.['getRegistration']('/'),_0xf64dbd=_0x2aeed4?.[_0x435ac7(0x26f)]??_0x2aeed4?.[_0x435ac7(0x1dd)]??_0x2aeed4?.['installing']??null;return console[_0x435ac7(0x207)](LOG_PREFIX2+_0x435ac7(0x26d),_0xf64dbd?.[_0x435ac7(0x218)]??_0x435ac7(0x27a),'state:\x20'+(_0xf64dbd?.[_0x435ac7(0x1ea)]??_0x435ac7(0x244))),_0xf64dbd;}var LOG_PREFIX3=_0x4bad8d(0x229);function isInitialized(){const _0x56e8e0=_0x4bad8d;return typeof window!==_0x56e8e0(0x24a)&&window[_0x56e8e0(0x1df)]===!![];}function setInitialized(_0x20b2ae){const _0x4c2319=_0x4bad8d;typeof window!=='undefined'&&(window[_0x4c2319(0x1df)]=_0x20b2ae);}function getOptions(){const _0x3abc73=_0x4bad8d;return typeof window!==_0x3abc73(0x24a)?window['__enhanceOptions']??null:null;}function setOptions(_0x25f93f){const _0x42ccd9=_0x4bad8d;typeof window!==_0x42ccd9(0x24a)&&(window[_0x42ccd9(0x1cd)]=_0x25f93f);}var Enhance={'init'(_0x1dbaa6){const _0x1c8eb6=_0x4bad8d,_0x11c97c=Date['now']();console[_0x1c8eb6(0x207)](LOG_PREFIX3+_0x1c8eb6(0x210)+_0x11c97c),console[_0x1c8eb6(0x207)](LOG_PREFIX3+_0x1c8eb6(0x26b)+window[_0x1c8eb6(0x25b)][_0x1c8eb6(0x224)]),console[_0x1c8eb6(0x207)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x1c8eb6(0x21c)]),console['log'](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x1c8eb6(0x291)](_0x1dbaa6,null,0x2));if(isInitialized())return console[_0x1c8eb6(0x286)](LOG_PREFIX3+_0x1c8eb6(0x270)),window[_0x1c8eb6(0x281)]??createController();setInitialized(!![]),console['log'](LOG_PREFIX3+_0x1c8eb6(0x23d));const _0x58b493=normalizeOptions(_0x1dbaa6);setOptions(_0x58b493),console[_0x1c8eb6(0x207)](LOG_PREFIX3+_0x1c8eb6(0x22f),JSON['stringify'](_0x58b493,null,0x2));const _0x491dd2=parseUrlParams();console['log'](LOG_PREFIX3+_0x1c8eb6(0x283),JSON[_0x1c8eb6(0x291)](_0x491dd2,null,0x2));if(_0x491dd2[_0x1c8eb6(0x1cf)])return cleanUrlParam(_0x1c8eb6(0x25d)),console[_0x1c8eb6(0x207)](LOG_PREFIX3+_0x1c8eb6(0x24b)),createController();if(_0x491dd2[_0x1c8eb6(0x24f)])return console[_0x1c8eb6(0x207)](LOG_PREFIX3+_0x1c8eb6(0x20d)),console[_0x1c8eb6(0x207)](LOG_PREFIX3+_0x1c8eb6(0x297)+_0x491dd2[_0x1c8eb6(0x215)]),console['log'](LOG_PREFIX3+_0x1c8eb6(0x227)+_0x491dd2['enhancementId']),state[_0x1c8eb6(0x1e3)]=!![],console[_0x1c8eb6(0x207)](LOG_PREFIX3+'\x20Starting\x20overlay\x20load\x20(async)...'),void loadOverlay({'overlayPath':_0x58b493[_0x1c8eb6(0x1de)],'enableViteHmr':_0x58b493['overlay'][_0x1c8eb6(0x231)],'options':_0x58b493,'onToggle':handleToggle}),console[_0x1c8eb6(0x207)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x58b493),console['log'](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console['log'](LOG_PREFIX3+_0x1c8eb6(0x26a)),console['log'](LOG_PREFIX3+_0x1c8eb6(0x200)),void unregisterServiceWorker(_0x58b493[_0x1c8eb6(0x1e9)]),console[_0x1c8eb6(0x207)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console[_0x1c8eb6(0x207)](LOG_PREFIX3+_0x1c8eb6(0x1e7)),import.meta.hot['on']('vite:error',_0xa340b9=>{const _0xaec891=_0x1c8eb6;console[_0xaec891(0x207)](LOG_PREFIX3+_0xaec891(0x261),_0xa340b9),state[_0xaec891(0x21a)]={'message':_0xa340b9[_0xaec891(0x216)]['message']},updateOverlay();}),import.meta.hot['on'](_0x1c8eb6(0x247),()=>{const _0x22659b=_0x1c8eb6;state[_0x22659b(0x21a)]&&(console['log'](LOG_PREFIX3+_0x22659b(0x235)),state[_0x22659b(0x21a)]=null,updateOverlay());})),createController();}};function createController(){const _0x51bfd3=_0x4bad8d,_0x5f2b99={'enable'(){const _0x295ecf=_0x4652,_0x1ad900=getOptions();if(!_0x1ad900)return;state[_0x295ecf(0x1e3)]=!![],void loadOverlay({'overlayPath':_0x1ad900[_0x295ecf(0x1de)],'enableViteHmr':_0x1ad900['overlay']['enableViteHmr'],'options':_0x1ad900,'onToggle':handleToggle}),void registerServiceWorker(_0x1ad900),void sendConfiguration(),updateOverlay();},'disable'(){const _0x2d80ba=_0x4652,_0x59a7a9=getOptions();if(!_0x59a7a9)return;state['enabled']=![],state[_0x2d80ba(0x21d)]=![],updateOverlay(),void unregisterServiceWorker(_0x59a7a9[_0x2d80ba(0x1e9)]);},'status'(){const _0x178a27=_0x4652;return{'enabled':state[_0x178a27(0x1e3)],'controlled':state['controlled']};}};return typeof window!=='undefined'&&(window[_0x51bfd3(0x281)]=_0x5f2b99),_0x5f2b99;}function handleToggle(){const _0x5b5558=_0x4bad8d,_0x573e0f=createController();state[_0x5b5558(0x1e3)]?_0x573e0f[_0x5b5558(0x240)]():_0x573e0f[_0x5b5558(0x1d1)]();}function parseUrlParams(){const _0x494eaf=_0x4bad8d,_0x49d273=new URL(window[_0x494eaf(0x25b)][_0x494eaf(0x224)]),_0x45b9ff=_0x49d273['searchParams'][_0x494eaf(0x205)](_0x494eaf(0x25d))?.[_0x494eaf(0x212)](),_0x1eb16b=_0x49d273[_0x494eaf(0x289)]['get'](_0x494eaf(0x215)),_0xd0fc45=_0x49d273[_0x494eaf(0x289)][_0x494eaf(0x205)]('enhancement');return{'hasEnhancement':Boolean(_0x1eb16b||_0xd0fc45),'explicitDisable':_0x45b9ff==='0'||_0x45b9ff===_0x494eaf(0x1f0)||_0x45b9ff===_0x494eaf(0x23c),'enhancementUrl':_0x1eb16b,'enhancementId':_0xd0fc45};}function cleanUrlParam(_0xd2cb4b){const _0x3f8772=_0x4bad8d,_0x2fd800=new URL(window['location'][_0x3f8772(0x224)]);_0x2fd800[_0x3f8772(0x289)]['has'](_0xd2cb4b)&&(_0x2fd800[_0x3f8772(0x289)][_0x3f8772(0x1f4)](_0xd2cb4b),window[_0x3f8772(0x279)][_0x3f8772(0x27c)](null,document[_0x3f8772(0x252)],_0x2fd800[_0x3f8772(0x217)]()));}var package_default={'name':_0x4bad8d(0x20b),'version':_0x4bad8d(0x1f9),'type':_0x4bad8d(0x226),'description':_0x4bad8d(0x29b),'license':'MIT','main':_0x4bad8d(0x203),'module':_0x4bad8d(0x203),'types':'./dev/index.d.ts','exports':{'.':{'types':'./dev/index.d.ts','import':'./dev/index.js'},'./vite':{'types':'./dev/vite/index.d.ts','import':'./dev/vite/index.js'}},'files':[_0x4bad8d(0x266)],'bin':{'enhance-sandbox':_0x4bad8d(0x228)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x4bad8d(0x258),'dev:build':_0x4bad8d(0x27b),'dev:staging':_0x4bad8d(0x290),'dev:staging:build':_0x4bad8d(0x293),'build':_0x4bad8d(0x225),'build:release':_0x4bad8d(0x299),'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':_0x4bad8d(0x260)},'dependencies':{'commander':'^11.1.0','zod':_0x4bad8d(0x1fd)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x4bad8d(0x28c),'tsup':_0x4bad8d(0x1d0),'vite':_0x4bad8d(0x296)},'publishConfig':{'access':_0x4bad8d(0x287)}},DEFAULT_SERVICE_WORKER_PATH=_0x4bad8d(0x1fc),DEFAULT_RUNTIME_PATH=_0x4bad8d(0x209),PACKAGE_VERSION=typeof package_default[_0x4bad8d(0x234)]===_0x4bad8d(0x233)?package_default['version']:_0x4bad8d(0x257);function normalizeAssetPath(_0x3ec9a4){const _0x37e7fc=_0x4bad8d;if(!_0x3ec9a4)return _0x3ec9a4;if(_0x3ec9a4['startsWith'](_0x37e7fc(0x249))||_0x3ec9a4[_0x37e7fc(0x241)](_0x37e7fc(0x274)))return _0x3ec9a4;const _0x1cc591=_0x3ec9a4[_0x37e7fc(0x220)](/^\.\//,'');return _0x1cc591[_0x37e7fc(0x241)]('/')?_0x1cc591:'/'+_0x1cc591;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x45971b){const _0x483768=_0x4bad8d;return Enhance[_0x483768(0x1d5)](_0x45971b);},'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 _0x2897d1=_0x4bad8d;return Enhance2[_0x2897d1(0x219)]();}function runtimeURL(){const _0x41daa4=_0x4bad8d;return Enhance2[_0x41daa4(0x1ed)]();}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 _0x4dd8b6=_0x2163;(function(_0x1767de,_0x398ead){const _0x3774a5=_0x2163,_0x4a7c9f=_0x1767de();while(!![]){try{const _0xbb3341=parseInt(_0x3774a5(0x217))/0x1+-parseInt(_0x3774a5(0x1e2))/0x2*(-parseInt(_0x3774a5(0x20f))/0x3)+-parseInt(_0x3774a5(0x1ee))/0x4*(parseInt(_0x3774a5(0x28a))/0x5)+parseInt(_0x3774a5(0x285))/0x6+-parseInt(_0x3774a5(0x267))/0x7*(parseInt(_0x3774a5(0x1ff))/0x8)+parseInt(_0x3774a5(0x264))/0x9+parseInt(_0x3774a5(0x22c))/0xa*(-parseInt(_0x3774a5(0x1de))/0xb);if(_0xbb3341===_0x398ead)break;else _0x4a7c9f['push'](_0x4a7c9f['shift']());}catch(_0x79f4f0){_0x4a7c9f['push'](_0x4a7c9f['shift']());}}}(_0x4232,0x468b5));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x4dd8b6(0x29a)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x4dd8b6(0x1bd),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x4dd8b6(0x29a)?__ENHANCE_DEFAULT_BACKEND_URL__:'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x4dd8b6(0x29a)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x4dd8b6(0x1cf)](_0x4dd8b6(0x1f5),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x11e6be){const _0xa97834=_0x4dd8b6,_0x3e3a01=_0x11e6be[_0xa97834(0x297)]??{};return{'callbackBypass':_0x11e6be['callbackBypass'],'overlay':{'enabled':!![],'position':_0xa97834(0x24f),'enableViteHmr':_0x3e3a01['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0xa97834(0x26e),'swPath':_0xa97834(0x2a1),'overlayPath':_0x3e3a01[_0xa97834(0x278)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0xa97834(0x1dd),'security':_0x3e3a01[_0xa97834(0x2ae)]??_0xa97834(0x20c),'backendUrl':_0x3e3a01[_0xa97834(0x21c)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x1a1a66=_0x4dd8b6;try{const _0x4525a9=new URLSearchParams(window['location']['search']);return _0x4525a9[_0x1a1a66(0x25c)](_0x1a1a66(0x1d9))?.[_0x1a1a66(0x1c5)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x590aa7){const _0x5b2c03=_0x4dd8b6;console[_0x5b2c03(0x1cf)](LOG_PREFIX+_0x5b2c03(0x2aa)),console['log'](LOG_PREFIX+_0x5b2c03(0x2ac)+_0x590aa7[_0x5b2c03(0x278)]),console['log'](LOG_PREFIX+_0x5b2c03(0x24e)+_0x590aa7[_0x5b2c03(0x21b)]),currentOptions=_0x590aa7[_0x5b2c03(0x200)],toggleHandler=_0x590aa7['onToggle'];if(overlayController){console['log'](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x5b2c03(0x1cf)](LOG_PREFIX+_0x5b2c03(0x255)),overlayLoadPromise;console['log'](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x590aa7);try{await overlayLoadPromise,console[_0x5b2c03(0x1cf)](LOG_PREFIX+_0x5b2c03(0x257));}catch(_0x2eceaa){console[_0x5b2c03(0x2a8)](LOG_PREFIX+_0x5b2c03(0x219),_0x2eceaa);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x59bbbe){const _0x56a88a=_0x4dd8b6;console[_0x56a88a(0x1cf)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x56a88a(0x29a)){console[_0x56a88a(0x1cf)](LOG_PREFIX+_0x56a88a(0x1c3));return;}if(window[_0x56a88a(0x276)]){console['log'](LOG_PREFIX+_0x56a88a(0x239)),overlayController=window['__enhanceOverlay'],updateOverlay();return;}console[_0x56a88a(0x1cf)](LOG_PREFIX+_0x56a88a(0x27a));try{_0x59bbbe[_0x56a88a(0x21b)]&&(console['log'](LOG_PREFIX+_0x56a88a(0x266)),await setupRemoteHMR(_0x59bbbe[_0x56a88a(0x278)]));console['log'](LOG_PREFIX+_0x56a88a(0x26d)+_0x59bbbe[_0x56a88a(0x278)]);const _0x2dc25a=Date['now'](),_0x31d50f=await import(_0x59bbbe['overlayPath']);console[_0x56a88a(0x1cf)](LOG_PREFIX+_0x56a88a(0x2b4)+(Date['now']()-_0x2dc25a)+'ms'),console[_0x56a88a(0x1cf)](LOG_PREFIX+'\x20Module\x20exports:',Object['keys'](_0x31d50f));if(typeof _0x31d50f?.[_0x56a88a(0x293)]!=='function'){console[_0x56a88a(0x2a8)](LOG_PREFIX+_0x56a88a(0x265)),console[_0x56a88a(0x2a8)](LOG_PREFIX+_0x56a88a(0x243),Object[_0x56a88a(0x23d)](_0x31d50f));return;}console[_0x56a88a(0x1cf)](LOG_PREFIX+_0x56a88a(0x29c));const _0x570bcf=_0x31d50f[_0x56a88a(0x293)]();console[_0x56a88a(0x1cf)](LOG_PREFIX+'\x20Controller\x20created:',_0x570bcf),overlayController=_0x570bcf,window[_0x56a88a(0x276)]=_0x570bcf,_0x570bcf[_0x56a88a(0x24d)](_0x59bbbe[_0x56a88a(0x24d)]),console['log'](LOG_PREFIX+_0x56a88a(0x272)),console['log'](LOG_PREFIX+_0x56a88a(0x1e5)),updateOverlay();}catch(_0x37e246){console[_0x56a88a(0x2a8)](LOG_PREFIX+_0x56a88a(0x241),_0x37e246);}}function updateOverlay(){const _0x165684=_0x4dd8b6;console[_0x165684(0x1cf)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x165684(0x1cf)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console[_0x165684(0x1cf)](LOG_PREFIX+_0x165684(0x288)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x30c389=composeOverlayState(currentOptions);console[_0x165684(0x1cf)](LOG_PREFIX+_0x165684(0x245),JSON['stringify'](_0x30c389,null,0x2)),overlayController['update'](_0x30c389),console[_0x165684(0x1cf)](LOG_PREFIX+_0x165684(0x1e9));}function composeOverlayState(_0x39d7d3){const _0x3c1456=_0x4dd8b6,_0x537a38=getEnhancementUrl();return console[_0x3c1456(0x1cf)](LOG_PREFIX+_0x3c1456(0x1d6)+_0x537a38),console[_0x3c1456(0x1cf)](LOG_PREFIX+_0x3c1456(0x287)+state[_0x3c1456(0x23a)]),console[_0x3c1456(0x1cf)](LOG_PREFIX+_0x3c1456(0x25a)+state[_0x3c1456(0x22a)]),{'enhancementUrl':_0x537a38,'enabled':state['enabled'],'controlled':state[_0x3c1456(0x22a)],'overlayPosition':_0x39d7d3[_0x3c1456(0x1ef)][_0x3c1456(0x28e)],'securityMode':_0x39d7d3[_0x3c1456(0x2ae)],'backendBaseUrl':_0x39d7d3[_0x3c1456(0x21c)],'appError':state[_0x3c1456(0x27b)]};}async function setupRemoteHMR(_0x197cac){const _0x2ab816=_0x4dd8b6;console[_0x2ab816(0x1cf)](LOG_PREFIX+_0x2ab816(0x2af)+_0x197cac);if(typeof window==='undefined')return;try{const _0x5dc883=new URL(_0x197cac,window['location'][_0x2ab816(0x202)]),_0x25229a=_0x5dc883[_0x2ab816(0x202)];console[_0x2ab816(0x1cf)](LOG_PREFIX+_0x2ab816(0x231)+_0x25229a+_0x2ab816(0x1ba)+window[_0x2ab816(0x29f)][_0x2ab816(0x202)]);if(_0x25229a===window[_0x2ab816(0x29f)][_0x2ab816(0x202)]){console['log'](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x2ab816(0x1cf)](LOG_PREFIX+_0x2ab816(0x269)),await ensureReactRefreshPreamble(_0x25229a),await ensureViteClient(_0x25229a),console[_0x2ab816(0x1cf)](LOG_PREFIX+_0x2ab816(0x1f0));}catch(_0x2f1f9e){console[_0x2ab816(0x1e6)](LOG_PREFIX+_0x2ab816(0x282),_0x2f1f9e);}}async function ensureReactRefreshPreamble(_0x31d977){const _0x15edbc=_0x4dd8b6;window[_0x15edbc(0x20e)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x15edbc(0x208)](_0x31d977)){console['log'](LOG_PREFIX+_0x15edbc(0x27d)+_0x31d977);return;}console[_0x15edbc(0x1cf)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x31d977+_0x15edbc(0x226));const _0xdf1a64=await import(_0x31d977+_0x15edbc(0x242)),_0x1e0ff4=_0xdf1a64&&typeof _0xdf1a64===_0x15edbc(0x1f3)&&'default'in _0xdf1a64?_0xdf1a64[_0x15edbc(0x1d2)]:_0xdf1a64;if(!isRefreshRuntime(_0x1e0ff4)){console[_0x15edbc(0x1e6)](LOG_PREFIX+_0x15edbc(0x228));return;}_0x1e0ff4[_0x15edbc(0x289)](window),window[_0x15edbc(0x1c1)]=()=>{},window[_0x15edbc(0x1ce)]=()=>_0x508ede=>_0x508ede,window[_0x15edbc(0x230)]=!![],window[_0x15edbc(0x20e)][_0x15edbc(0x27e)](_0x31d977),console[_0x15edbc(0x1cf)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x31d977);}async function ensureViteClient(_0x376050){const _0x3a6b97=_0x4dd8b6;window['__viteHMRLoaded']??=new Set();if(window[_0x3a6b97(0x233)][_0x3a6b97(0x208)](_0x376050)){console[_0x3a6b97(0x1cf)](LOG_PREFIX+_0x3a6b97(0x2a5)+_0x376050);return;}console[_0x3a6b97(0x1cf)](LOG_PREFIX+_0x3a6b97(0x253)+_0x376050+_0x3a6b97(0x226)),await import(_0x376050+'/@vite/client'),window[_0x3a6b97(0x233)][_0x3a6b97(0x27e)](_0x376050),console['log'](LOG_PREFIX+_0x3a6b97(0x271)+_0x376050);}function isRefreshRuntime(_0x4cd40d){const _0x104383=_0x4dd8b6;return typeof _0x4cd40d==='object'&&_0x4cd40d!==null&&_0x104383(0x289)in _0x4cd40d&&typeof _0x4cd40d['injectIntoGlobalHook']===_0x104383(0x25e);}var WORKER_MESSAGE_CONFIG=_0x4dd8b6(0x280),WORKER_MESSAGE_DISABLE=_0x4dd8b6(0x1be),LOG_PREFIX2=_0x4dd8b6(0x2a0),registration=null,currentOptions2=null;async function registerServiceWorker(_0x23b076){const _0x396e5d=_0x4dd8b6;console[_0x396e5d(0x1cf)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x1c6)+_0x23b076[_0x396e5d(0x244)]);if(!(_0x396e5d(0x1e3)in navigator)){console[_0x396e5d(0x1e6)](LOG_PREFIX2+_0x396e5d(0x1c8));return;}console['log'](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x49858f=navigator[_0x396e5d(0x1e3)]['controller'];console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x1d4),_0x49858f?.[_0x396e5d(0x29e)]??_0x396e5d(0x283)),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x290),_0x49858f?.[_0x396e5d(0x22e)]??'N/A');const _0x141823=!!_0x49858f;currentOptions2=_0x23b076,console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x22f));const _0x187954=await detectBlockingServiceWorker(_0x23b076['swPath']);if(_0x187954){console[_0x396e5d(0x2a8)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x187954),console[_0x396e5d(0x2a8)](LOG_PREFIX2+_0x396e5d(0x1fc));return;}console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x20d));try{console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x229)+_0x23b076[_0x396e5d(0x244)]+_0x396e5d(0x207)),registration=await navigator[_0x396e5d(0x1e3)][_0x396e5d(0x1f4)](_0x23b076[_0x396e5d(0x244)],{'scope':'/'}),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x1f2),{'scope':registration[_0x396e5d(0x1c9)],'active':registration[_0x396e5d(0x25d)]?.[_0x396e5d(0x29e)],'waiting':registration[_0x396e5d(0x2a3)]?.[_0x396e5d(0x29e)],'installing':registration[_0x396e5d(0x2ad)]?.['scriptURL']}),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x20b));const _0x382379=await navigator[_0x396e5d(0x1e3)]['ready'];console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x246),_0x382379[_0x396e5d(0x25d)]?.[_0x396e5d(0x29e)]);const _0x9df082=ownsCurrentController(_0x23b076[_0x396e5d(0x244)]);state[_0x396e5d(0x22a)]=_0x9df082,console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x270)+_0x9df082),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x235),navigator['serviceWorker'][_0x396e5d(0x284)]?.[_0x396e5d(0x29e)]??_0x396e5d(0x283));if(!_0x141823&&!navigator[_0x396e5d(0x1e3)][_0x396e5d(0x284)]){console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x22b)),window[_0x396e5d(0x29f)][_0x396e5d(0x1f8)]();return;}console['log'](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state['enabled']){const _0x1d0f48=document['querySelector']('[data-enhance-runtime-bootstrap]')!==null;console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x204)+_0x1d0f48);if(!_0x1d0f48){console['log'](LOG_PREFIX2+_0x396e5d(0x213)),window[_0x396e5d(0x29f)][_0x396e5d(0x1f8)]();return;}}console['log'](LOG_PREFIX2+_0x396e5d(0x238)),updateOverlay(),console[_0x396e5d(0x1cf)](LOG_PREFIX2+_0x396e5d(0x1bb));}catch(_0x293e4e){console[_0x396e5d(0x2a8)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x293e4e);}}async function sendConfiguration(){const _0x7551b2=_0x4dd8b6;console[_0x7551b2(0x1cf)](LOG_PREFIX2+_0x7551b2(0x236)),console[_0x7551b2(0x1cf)](LOG_PREFIX2+_0x7551b2(0x250)+state['enabled']+',\x20currentOptions:\x20'+!!currentOptions2);if(!state[_0x7551b2(0x23a)]||!currentOptions2){console[_0x7551b2(0x1cf)](LOG_PREFIX2+_0x7551b2(0x25f));return;}const _0x586c7b=await resolveWorker();if(!_0x586c7b){console[_0x7551b2(0x1e6)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x4a3c9e={'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x7551b2(0x2ae)]};console[_0x7551b2(0x1cf)](LOG_PREFIX2+_0x7551b2(0x1c0),JSON[_0x7551b2(0x248)](_0x4a3c9e,null,0x2)),_0x586c7b[_0x7551b2(0x206)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x4a3c9e}),console[_0x7551b2(0x1cf)](LOG_PREFIX2+_0x7551b2(0x1f9));}async function unregisterServiceWorker(_0x1c948d){const _0x2c1a10=_0x4dd8b6;console[_0x2c1a10(0x1cf)](LOG_PREFIX2+_0x2c1a10(0x2a7));if(!('serviceWorker'in navigator)){console['log'](LOG_PREFIX2+_0x2c1a10(0x27f));return;}try{const _0x5ba461=registration??await navigator[_0x2c1a10(0x1e3)][_0x2c1a10(0x227)]('/');if(!_0x5ba461){console['log'](LOG_PREFIX2+_0x2c1a10(0x1ea));return;}console[_0x2c1a10(0x1cf)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x5ba461[_0x2c1a10(0x1c9)],'active':_0x5ba461['active']?.[_0x2c1a10(0x29e)],'waiting':_0x5ba461[_0x2c1a10(0x2a3)]?.['scriptURL'],'installing':_0x5ba461[_0x2c1a10(0x2ad)]?.['scriptURL']});const _0x5e28ec=[_0x5ba461[_0x2c1a10(0x25d)]?.['scriptURL'],_0x5ba461[_0x2c1a10(0x2a3)]?.['scriptURL'],_0x5ba461[_0x2c1a10(0x2ad)]?.[_0x2c1a10(0x29e)]],_0x33c2ce=_0x5e28ec[_0x2c1a10(0x1db)](_0x5d8616=>_0x5d8616&&ownsServiceWorker(_0x5d8616,_0x1c948d));if(!_0x33c2ce){console['log'](LOG_PREFIX2+_0x2c1a10(0x1c2));return;}_0x5ba461['active']&&(console[_0x2c1a10(0x1cf)](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x5ba461[_0x2c1a10(0x25d)][_0x2c1a10(0x206)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x2c1a10(0x1cf)](LOG_PREFIX2+_0x2c1a10(0x262)),await _0x5ba461['unregister'](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x2c1a10(0x21a));}catch(_0x373b71){console[_0x2c1a10(0x2a8)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x373b71);}}function ownsServiceWorker(_0x13ce69,_0x4538b2){const _0x1b4296=_0x4dd8b6,_0x2d6457=typeof window!=='undefined'?window[_0x1b4296(0x29f)]['origin']:'',_0x36f930=new URL(_0x4538b2,_0x2d6457||void 0x0)[_0x1b4296(0x221)],_0x4cf7ab=_0x13ce69===_0x36f930||_0x13ce69[_0x1b4296(0x2b3)](_0x1b4296(0x26f));return console[_0x1b4296(0x1cf)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x13ce69+_0x1b4296(0x1f6)+_0x36f930+',\x20owns='+_0x4cf7ab),_0x4cf7ab;}function ownsCurrentController(_0xe902a4){const _0x4f153c=_0x4dd8b6;if(typeof navigator===_0x4f153c(0x29a))return![];const _0x260213=navigator['serviceWorker']?.['controller'];if(!_0x260213)return console[_0x4f153c(0x1cf)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x260213[_0x4f153c(0x29e)],_0xe902a4);}async function detectBlockingServiceWorker(_0xe966c3){const _0xb1e0a7=_0x4dd8b6;if(!navigator[_0xb1e0a7(0x1e3)])return null;try{const _0x5868a7=await navigator['serviceWorker'][_0xb1e0a7(0x227)]('/');console[_0xb1e0a7(0x1cf)](LOG_PREFIX2+_0xb1e0a7(0x254),_0x5868a7?.['active']?.[_0xb1e0a7(0x29e)]??_0xb1e0a7(0x283));const _0x2afbc9=_0x5868a7?.['active']?.[_0xb1e0a7(0x29e)];if(!_0x2afbc9)return null;if(ownsServiceWorker(_0x2afbc9,_0xe966c3))return null;return _0x2afbc9;}catch(_0x3bf34b){return console[_0xb1e0a7(0x2a8)](LOG_PREFIX2+_0xb1e0a7(0x216),_0x3bf34b),null;}}async function resolveWorker(){const _0x55d4d2=_0x4dd8b6,_0x44391f=registration??await navigator[_0x55d4d2(0x1e3)]?.[_0x55d4d2(0x227)]('/'),_0x47bb44=_0x44391f?.[_0x55d4d2(0x25d)]??_0x44391f?.['waiting']??_0x44391f?.[_0x55d4d2(0x2ad)]??null;return console['log'](LOG_PREFIX2+_0x55d4d2(0x1ec),_0x47bb44?.[_0x55d4d2(0x29e)]??_0x55d4d2(0x283),'state:\x20'+(_0x47bb44?.['state']??_0x55d4d2(0x29b))),_0x47bb44;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x5c99e6=_0x4dd8b6;return typeof window!=='undefined'&&window[_0x5c99e6(0x20a)]===!![];}function setInitialized(_0x504e66){const _0x5d3455=_0x4dd8b6;typeof window!==_0x5d3455(0x29a)&&(window['__enhanceInitialized']=_0x504e66);}function getOptions(){const _0x54b387=_0x4dd8b6;return typeof window!==_0x54b387(0x29a)?window['__enhanceOptions']??null:null;}function setOptions(_0x489ce3){const _0x32ffae=_0x4dd8b6;typeof window!==_0x32ffae(0x29a)&&(window[_0x32ffae(0x1e8)]=_0x489ce3);}var Enhance={'init'(_0x5be047){const _0x280361=_0x4dd8b6,_0x5a63ea=Date[_0x280361(0x214)]();console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x2b6)+_0x5a63ea),console['log'](LOG_PREFIX3+_0x280361(0x298)+window[_0x280361(0x29f)][_0x280361(0x221)]),console['log'](LOG_PREFIX3+_0x280361(0x28b)+document['readyState']),console[_0x280361(0x1cf)](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x280361(0x248)](_0x5be047,null,0x2));if(isInitialized())return console[_0x280361(0x1e6)](LOG_PREFIX3+_0x280361(0x1bf)),window[_0x280361(0x256)]??createController();setInitialized(!![]),console['log'](LOG_PREFIX3+_0x280361(0x1d1));const _0x508117=normalizeOptions(_0x5be047);setOptions(_0x508117),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x234),JSON[_0x280361(0x248)](_0x508117,null,0x2));const _0x39f971=parseUrlParams();console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x1ed),JSON[_0x280361(0x248)](_0x39f971,null,0x2));if(_0x39f971[_0x280361(0x249)])return cleanUrlParam(_0x280361(0x215)),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x299)),createController();if(_0x39f971[_0x280361(0x240)])return console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x21f)),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x1ca)+_0x39f971['enhancementUrl']),console['log'](LOG_PREFIX3+_0x280361(0x1f1)+_0x39f971[_0x280361(0x1b9)]),state[_0x280361(0x23a)]=!![],console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x291)),void loadOverlay({'overlayPath':_0x508117[_0x280361(0x278)],'enableViteHmr':_0x508117['overlay']['enableViteHmr'],'options':_0x508117,'onToggle':handleToggle}),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x22d)),void registerServiceWorker(_0x508117),console[_0x280361(0x1cf)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x24a)),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x274)),void unregisterServiceWorker(_0x508117[_0x280361(0x244)]),console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x275)),import.meta[_0x280361(0x252)]&&(console[_0x280361(0x1cf)](LOG_PREFIX3+_0x280361(0x260)),import.meta[_0x280361(0x252)]['on']('vite:error',_0x42618b=>{const _0xd489ba=_0x280361;console[_0xd489ba(0x1cf)](LOG_PREFIX3+_0xd489ba(0x1fb),_0x42618b),state['appError']={'message':_0x42618b['err']['message']},updateOverlay();}),import.meta[_0x280361(0x252)]['on']('vite:beforeUpdate',()=>{const _0x47fef8=_0x280361;state[_0x47fef8(0x27b)]&&(console['log'](LOG_PREFIX3+_0x47fef8(0x1d7)),state[_0x47fef8(0x27b)]=null,updateOverlay());})),createController();}};function createController(){const _0x551d0a=_0x4dd8b6,_0x5a3b9e={'enable'(){const _0x344125=_0x2163,_0x4efd05=getOptions();if(!_0x4efd05)return;state['enabled']=!![],void loadOverlay({'overlayPath':_0x4efd05['overlayPath'],'enableViteHmr':_0x4efd05[_0x344125(0x1ef)][_0x344125(0x21b)],'options':_0x4efd05,'onToggle':handleToggle}),void registerServiceWorker(_0x4efd05),void sendConfiguration(),updateOverlay();},'disable'(){const _0x547175=_0x2163,_0x2b697e=getOptions();if(!_0x2b697e)return;state['enabled']=![],state[_0x547175(0x22a)]=![],updateOverlay(),void unregisterServiceWorker(_0x2b697e['swPath']);},'status'(){return{'enabled':state['enabled'],'controlled':state['controlled']};}};return typeof window!==_0x551d0a(0x29a)&&(window[_0x551d0a(0x256)]=_0x5a3b9e),_0x5a3b9e;}function handleToggle(){const _0x3903da=_0x4dd8b6,_0x2a0ac4=createController();state[_0x3903da(0x23a)]?_0x2a0ac4['disable']():_0x2a0ac4[_0x3903da(0x1e0)]();}function parseUrlParams(){const _0x3b6f76=_0x4dd8b6,_0x569972=new URL(window[_0x3b6f76(0x29f)][_0x3b6f76(0x221)]),_0x3fee33=_0x569972['searchParams']['get']('enhance')?.[_0x3b6f76(0x28f)](),_0x3c223a=_0x569972['searchParams']['get'](_0x3b6f76(0x1d9)),_0x5316c1=_0x569972[_0x3b6f76(0x2ab)][_0x3b6f76(0x25c)](_0x3b6f76(0x1dc));return{'hasEnhancement':Boolean(_0x3c223a||_0x5316c1),'explicitDisable':_0x3fee33==='0'||_0x3fee33===_0x3b6f76(0x1d0)||_0x3fee33===_0x3b6f76(0x247),'enhancementUrl':_0x3c223a,'enhancementId':_0x5316c1};}function cleanUrlParam(_0x2c1be5){const _0x37408c=_0x4dd8b6,_0x4f7038=new URL(window[_0x37408c(0x29f)][_0x37408c(0x221)]);_0x4f7038[_0x37408c(0x2ab)][_0x37408c(0x208)](_0x2c1be5)&&(_0x4f7038['searchParams']['delete'](_0x2c1be5),window[_0x37408c(0x26b)][_0x37408c(0x261)](null,document['title'],_0x4f7038[_0x37408c(0x23c)]()));}var package_default={'name':'@enhance-eng/sandbox','version':_0x4dd8b6(0x1c7),'type':_0x4dd8b6(0x295),'description':_0x4dd8b6(0x1bc),'license':_0x4dd8b6(0x2a9),'main':'./dist/index.cjs','module':'./dist/index.js','types':_0x4dd8b6(0x1cc),'exports':{'.':{'types':_0x4dd8b6(0x1cc),'import':'./dist/index.js','require':_0x4dd8b6(0x211)},'./vite':{'types':_0x4dd8b6(0x286),'import':_0x4dd8b6(0x1c4)}},'files':[_0x4dd8b6(0x1cb),'bin',_0x4dd8b6(0x2b7)],'bin':{'enhance-sandbox':_0x4dd8b6(0x223)},'scripts':{'typecheck':_0x4dd8b6(0x2b5),'dev':_0x4dd8b6(0x222),'dev:build':_0x4dd8b6(0x201),'dev:staging':_0x4dd8b6(0x25b),'dev:staging:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','build':_0x4dd8b6(0x21d),'build:release':_0x4dd8b6(0x225),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':'^11.1.0','zod':_0x4dd8b6(0x294)},'devDependencies':{'@types/node':_0x4dd8b6(0x24c),'javascript-obfuscator':_0x4dd8b6(0x21e),'tsup':_0x4dd8b6(0x2b2),'vite':'^7.2.4'},'publishConfig':{'access':_0x4dd8b6(0x1e7)}},DEFAULT_SERVICE_WORKER_PATH=_0x4dd8b6(0x2a1),DEFAULT_RUNTIME_PATH=_0x4dd8b6(0x1dd),DIST_SERVICE_WORKER_PATH=_0x4dd8b6(0x218),DIST_RUNTIME_PATH=_0x4dd8b6(0x292),PACKAGE_VERSION=typeof package_default[_0x4dd8b6(0x28d)]===_0x4dd8b6(0x251)?package_default[_0x4dd8b6(0x28d)]:_0x4dd8b6(0x259);function normalizeAssetPath(_0x3e62ee){const _0x5c0d54=_0x4dd8b6;if(!_0x3e62ee)return _0x3e62ee;if(_0x3e62ee[_0x5c0d54(0x1cd)]('http://')||_0x3e62ee[_0x5c0d54(0x1cd)](_0x5c0d54(0x23b)))return _0x3e62ee;const _0x131d77=_0x3e62ee[_0x5c0d54(0x296)](/^\.\//,'');return _0x131d77['startsWith']('/')?_0x131d77:'/'+_0x131d77;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x5907f0){const _0x5054f7=_0x4dd8b6;return Enhance[_0x5054f7(0x1e1)](_0x5907f0);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function serviceWorkerURL(){const _0x2adc97=_0x4dd8b6;return Enhance2[_0x2adc97(0x1fd)]();}function _0x2163(_0x31cd6,_0x34b831){const _0x42327b=_0x4232();return _0x2163=function(_0x21631b,_0x15cd66){_0x21631b=_0x21631b-0x1b9;let _0x132de2=_0x42327b[_0x21631b];return _0x132de2;},_0x2163(_0x31cd6,_0x34b831);}function runtimeURL(){const _0x4305f2=_0x4dd8b6;return Enhance2[_0x4305f2(0x28c)]();}import{promises as _0x47fd34}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x4dd8b6(0x2a2),import.meta['url'])));async function syncAssets(_0x249c92){const _0x565b6c=_0x4dd8b6,_0x43c236=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x249c92['swFilename']?'./'+_0x249c92[_0x565b6c(0x1d5)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x5b054e=[];for(const _0x1e0c72 of _0x43c236){const _0x4e4dbe=cleanRelativePath(_0x1e0c72['override']??_0x1e0c72[_0x565b6c(0x263)]),_0x6ba4cf=join(distDir,cleanRelativePath(_0x1e0c72['sourcePath'])),_0x42c00d=join(_0x249c92[_0x565b6c(0x1d3)],_0x4e4dbe),[_0x749d47,_0x2b3096]=await Promise[_0x565b6c(0x1fa)]([readDigest(_0x6ba4cf),readDigest(_0x42c00d)]);if(_0x749d47&&_0x2b3096&&_0x749d47===_0x2b3096){_0x5b054e[_0x565b6c(0x258)]({'sourcePath':_0x6ba4cf,'destinationPath':_0x42c00d,'relativeDestination':_0x4e4dbe,'status':'skipped'});continue;}await _0x47fd34[_0x565b6c(0x220)](dirname(_0x42c00d),{'recursive':!![]}),await _0x47fd34[_0x565b6c(0x224)](_0x6ba4cf,_0x42c00d),_0x5b054e[_0x565b6c(0x258)]({'sourcePath':_0x6ba4cf,'destinationPath':_0x42c00d,'relativeDestination':_0x4e4dbe,'status':_0x565b6c(0x29d)});}return _0x5b054e;}function cleanRelativePath(_0x1023fa){const _0x343651=_0x4dd8b6;return _0x1023fa[_0x343651(0x296)](/^[./]+/,'');}function _0x4232(){const _0x1065f0=['update','\x20resolveWorker:','\x20URL\x20params\x20parsed:','308DXnyOr','overlay','\x20HMR\x20setup\x20complete','\x20enhancementId:\x20','\x20Registration\x20returned:','object','register','[Enhance\x20Config]\x20Build-time\x20defaults:',',\x20expected=','--filename\x20<name>','reload','\x20Config\x20sent\x20to\x20SW','all','\x20Vite\x20error\x20detected:','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','serviceWorkerURL','skipped','2719384QZKmIS','options','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','origin','\x20(already\x20current)\x20[','\x20Enhancement\x20detection:\x20wasEnhanced=','parseAsync','postMessage','\x20with\x20scope\x20\x27/\x27...','has','base64','__enhanceInitialized','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','permissive','\x20No\x20blocking\x20SW\x20found','__enhanceReactRefreshInstalledOrigins','403041tJeyok','stdout','./dist/index.cjs','action','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','now','enhance','\x20detectBlocking\x20error:','436671bkkGyu','sw-enhance.js','\x20loadOverlay()\x20failed:','\x20SW\x20unregistered\x20successfully','enableViteHmr','backendUrl','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','^4.1.1','\x20Enhancement\x20mode\x20ENABLED','mkdir','href','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','bin/enhance-sandbox.js','copyFile','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','...','getRegistration','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Registering\x20SW\x20at\x20','controlled','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','9609910PTwmlC','\x20Starting\x20SW\x20registration\x20(async)...','state','\x20Checking\x20for\x20blocking\x20service\x20worker...','__vite_plugin_react_preamble_installed__','\x20Overlay\x20origin:\x20','filename','__viteHMRLoaded','\x20Normalized\x20options:','\x20Current\x20controller\x20after\x20ready:','\x20sendConfiguration()\x20called','--public-dir\x20<path>','\x20Updating\x20overlay...','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20reusing','enabled','https://','toString','keys','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','hasEnhancement','\x20Failed\x20to\x20import/create\x20overlay:','/@react-refresh','\x20Available\x20exports:','swPath','\x20Updating\x20overlay\x20with\x20state:','\x20SW\x20ready!\x20Active:','off','stringify','explicitDisable','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','cwd','^24.10.1','onToggle','\x20enableViteHmr:\x20','bottom-right','\x20state.enabled:\x20','string','hot','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20detectBlocking\x20-\x20existing\x20registration:','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','__enhanceController','\x20loadOverlay()\x20complete','push','0.0.0','\x20composeOverlayState\x20-\x20state.controlled:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','get','active','function','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','replaceState','\x20Unregistering\x20SW...','manifestPath','4114188uvqWwA','\x20Module\x20missing\x20createOverlay\x20export!','\x20Setting\x20up\x20remote\x20HMR...','7pQXNQT','Skipped\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','status','history','enhance-sandbox','\x20Importing\x20overlay\x20module\x20from:\x20','info','sw-enhance','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20Overlay\x20controller\x20initialized\x20and\x20cached','Enhance\x20sandbox\x20utility\x20CLI','\x20Unregistering\x20any\x20existing\x20SW...','\x20init()\x20complete\x20-\x20normal\x20mode','__enhanceOverlay','code','overlayPath','\x20→\x20','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','appError','option','\x20React\x20Refresh\x20already\x20installed\x20for\x20','add','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','enhance:configure','Copied\x20','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','none','controller','2685348KBbpXU','./dist/vite/index.d.ts','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20currentOptions\x20exists:\x20','injectIntoGlobalHook','10035EWluzy','\x20Document\x20readyState:\x20','runtimeURL','version','position','toLowerCase','\x20Controller\x20state:','\x20Starting\x20overlay\x20load\x20(async)...','assets/enhance-runtime.js','createOverlay','^3.22.4','module','replace','__development','\x20Current\x20URL:\x20','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','undefined','N/A','\x20Calling\x20createOverlay()...','copied','scriptURL','location','[Enhance\x20SW-Client]','/sw-enhance.js','../dist/index.js','waiting','ENOENT','\x20Vite\x20client\x20already\x20loaded\x20for\x20','digest','\x20unregisterServiceWorker()\x20called','error','MIT','\x20loadOverlay()\x20called','searchParams','\x20overlayPath:\x20','installing','security','\x20setupRemoteHMR()\x20for\x20','command','write','^8.5.1','includes','\x20Module\x20imported\x20in\x20','tsc\x20--noEmit','\x20init()\x20called\x20at\x20','enhance.config.sample.json','description','enhancementId',',\x20page\x20origin:\x20','\x20registerServiceWorker()\x20complete','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','https://assets.enhancelabs.ai/overlay.js','enhance:disable','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Sending\x20customer\x20config\x20to\x20SW:','$RefreshReg$','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20No\x20window\x20object\x20-\x20skipping','./dist/vite/index.js','trim','\x20swPath:\x20','0.3.19','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','scope','\x20enhancementUrl:\x20','dist','./dist/index.d.ts','startsWith','$RefreshSig$','log','false','\x20First\x20initialization','default','publicDir','\x20Current\x20controller:','swFilename','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','destinationPath','enhancementUrl','name','some','enhancement','/assets/enhance-runtime.js','11UOryiG','prepare-sw','enable','init','6tueqTM','serviceWorker','relativeDestination','\x20Calling\x20updateOverlay()...','warn','public','__enhanceOptions','\x20Overlay\x20update\x20complete','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister'];_0x4232=function(){return _0x1065f0;};return _0x4232();}async function readDigest(_0x42088e){const _0x385d5a=_0x4dd8b6;try{const _0x1949eb=await _0x47fd34['readFile'](_0x42088e);return createHash('sha256')[_0x385d5a(0x1eb)](_0x1949eb)[_0x385d5a(0x2a6)](_0x385d5a(0x209));}catch(_0x54cd45){if(_0x54cd45[_0x385d5a(0x277)]===_0x385d5a(0x2a4))return null;throw _0x54cd45;}}var program=new Command();program[_0x4dd8b6(0x1da)](_0x4dd8b6(0x26c))[_0x4dd8b6(0x2b8)](_0x4dd8b6(0x273))['version'](_0x4dd8b6(0x259)),program['command']('manifest')[_0x4dd8b6(0x2b8)]('Print\x20the\x20current\x20asset\x20manifest')['action'](()=>{const _0x54c6db=_0x4dd8b6,_0x4d898d=getAssetManifest();process[_0x54c6db(0x210)][_0x54c6db(0x2b1)](JSON['stringify'](_0x4d898d,null,0x2)+'\x0a');}),program[_0x4dd8b6(0x2b0)](_0x4dd8b6(0x1df))[_0x4dd8b6(0x2b8)](_0x4dd8b6(0x23e))['requiredOption'](_0x4dd8b6(0x237),'Directory\x20to\x20copy\x20the\x20service\x20worker\x20into')[_0x4dd8b6(0x27c)](_0x4dd8b6(0x1f7),_0x4dd8b6(0x23f))[_0x4dd8b6(0x212)](async _0x142219=>{const _0x243cc0=_0x4dd8b6,_0x3e1f33=resolve(process[_0x243cc0(0x24b)](),_0x142219[_0x243cc0(0x1d3)]),_0x359e49=await syncAssets({'publicDir':_0x3e1f33,'swFilename':_0x142219[_0x243cc0(0x232)]});for(const _0x41522b of _0x359e49){const _0x10541c=relative(process[_0x243cc0(0x24b)](),_0x41522b[_0x243cc0(0x1d8)]);_0x41522b[_0x243cc0(0x26a)]===_0x243cc0(0x1fe)?process[_0x243cc0(0x210)][_0x243cc0(0x2b1)](_0x243cc0(0x268)+_0x41522b[_0x243cc0(0x1e4)]+_0x243cc0(0x203)+_0x10541c+']\x0a'):process[_0x243cc0(0x210)][_0x243cc0(0x2b1)](_0x243cc0(0x281)+_0x41522b[_0x243cc0(0x1e4)]+_0x243cc0(0x279)+_0x10541c+'\x0a');}}),program[_0x4dd8b6(0x205)]();
|
|
3
|
+
const _0x1ec475=_0x3c23;(function(_0x67fb6a,_0x22736e){const _0x1c5684=_0x3c23,_0x54213d=_0x67fb6a();while(!![]){try{const _0x149867=parseInt(_0x1c5684(0x189))/0x1+-parseInt(_0x1c5684(0xb1))/0x2*(parseInt(_0x1c5684(0x13d))/0x3)+parseInt(_0x1c5684(0xea))/0x4+-parseInt(_0x1c5684(0x137))/0x5+parseInt(_0x1c5684(0xb2))/0x6*(parseInt(_0x1c5684(0xe5))/0x7)+parseInt(_0x1c5684(0xe0))/0x8*(parseInt(_0x1c5684(0xeb))/0x9)+-parseInt(_0x1c5684(0xd3))/0xa*(parseInt(_0x1c5684(0xb3))/0xb);if(_0x149867===_0x22736e)break;else _0x54213d['push'](_0x54213d['shift']());}catch(_0x14826a){_0x54213d['push'](_0x54213d['shift']());}}}(_0x223f,0x8dd6e));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!=='undefined'?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x1ec475(0x161),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x1ec475(0xda)?__ENHANCE_DEFAULT_BACKEND_URL__:'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x1ec475(0xda)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console['log'](_0x1ec475(0x118),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x3d0233){const _0x2ed092=_0x1ec475;if(!_0x3d0233[_0x2ed092(0x198)])throw new Error(_0x2ed092(0x136));const _0xa0c998=_0x3d0233[_0x2ed092(0x130)]??{};return{'publishableKey':_0x3d0233['publishableKey'],'callbackBypass':_0x3d0233[_0x2ed092(0x127)]??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0xa0c998[_0x2ed092(0xe8)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x2ed092(0x14b),'swPath':_0x2ed092(0x120),'overlayPath':_0xa0c998[_0x2ed092(0x12e)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x2ed092(0x14e),'security':_0xa0c998['security']??'permissive','backendUrl':_0xa0c998[_0x2ed092(0x121)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x2c680e=_0x1ec475;try{const _0x50fa4c=new URLSearchParams(window[_0x2c680e(0x18e)]['search']);return _0x50fa4c[_0x2c680e(0x142)](_0x2c680e(0xca))?.[_0x2c680e(0x169)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x5ad9c0){const _0x4e52cd=_0x1ec475;console['log'](LOG_PREFIX+_0x4e52cd(0x174)),console[_0x4e52cd(0x159)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x5ad9c0['overlayPath']),console[_0x4e52cd(0x159)](LOG_PREFIX+_0x4e52cd(0xff)+_0x5ad9c0[_0x4e52cd(0x193)]),currentOptions=_0x5ad9c0[_0x4e52cd(0x194)],toggleHandler=_0x5ad9c0[_0x4e52cd(0x19f)];if(overlayController){console['log'](LOG_PREFIX+_0x4e52cd(0x113)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x4e52cd(0x159)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console['log'](LOG_PREFIX+_0x4e52cd(0x183)),overlayLoadPromise=doLoadOverlay(_0x5ad9c0);try{await overlayLoadPromise,console['log'](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x51c866){console['error'](LOG_PREFIX+_0x4e52cd(0x153),_0x51c866);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x4f4d45){const _0x1b6a24=_0x1ec475;console[_0x1b6a24(0x159)](LOG_PREFIX+_0x1b6a24(0x15e));if(typeof window===_0x1b6a24(0xda)){console['log'](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x1b6a24(0x157)]){console[_0x1b6a24(0x159)](LOG_PREFIX+_0x1b6a24(0x165)),overlayController=window[_0x1b6a24(0x157)];return;}console[_0x1b6a24(0x159)](LOG_PREFIX+_0x1b6a24(0x13a));try{_0x4f4d45[_0x1b6a24(0x193)]&&(console[_0x1b6a24(0x159)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x4f4d45[_0x1b6a24(0x12e)]));console['log'](LOG_PREFIX+_0x1b6a24(0xbd)+_0x4f4d45['overlayPath']);const _0x39877f=Date[_0x1b6a24(0x112)](),_0xd4a85f=await import(_0x4f4d45[_0x1b6a24(0x12e)]);console['log'](LOG_PREFIX+_0x1b6a24(0xd2)+(Date[_0x1b6a24(0x112)]()-_0x39877f)+'ms'),console['log'](LOG_PREFIX+_0x1b6a24(0x100),Object[_0x1b6a24(0xd6)](_0xd4a85f));if(typeof _0xd4a85f?.[_0x1b6a24(0x138)]!==_0x1b6a24(0xf0)){console[_0x1b6a24(0x17f)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x1b6a24(0x17f)](LOG_PREFIX+_0x1b6a24(0x11d),Object[_0x1b6a24(0xd6)](_0xd4a85f));return;}console[_0x1b6a24(0x159)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0x19d9da=_0xd4a85f[_0x1b6a24(0x138)]();console[_0x1b6a24(0x159)](LOG_PREFIX+'\x20Controller\x20created:',_0x19d9da),overlayController=_0x19d9da,window[_0x1b6a24(0x157)]=_0x19d9da,_0x19d9da[_0x1b6a24(0x19f)](_0x4f4d45[_0x1b6a24(0x19f)]),console[_0x1b6a24(0x159)](LOG_PREFIX+_0x1b6a24(0x11f)),console[_0x1b6a24(0x159)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x188001){console['error'](LOG_PREFIX+_0x1b6a24(0xe1),_0x188001);}}function updateOverlay(){const _0x469649=_0x1ec475;console[_0x469649(0x159)](LOG_PREFIX+_0x469649(0x17e)),console[_0x469649(0x159)](LOG_PREFIX+_0x469649(0xd8)+!!overlayController),console[_0x469649(0x159)](LOG_PREFIX+_0x469649(0x172)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x469649(0x159)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x539f50=composeOverlayState(currentOptions);console[_0x469649(0x159)](LOG_PREFIX+_0x469649(0xb4),JSON[_0x469649(0xd4)](_0x539f50,null,0x2)),overlayController[_0x469649(0x144)](_0x539f50),console[_0x469649(0x159)](LOG_PREFIX+_0x469649(0xf8));}function composeOverlayState(_0x41f6a8){const _0x5bdb91=_0x1ec475,_0x5e804c=getEnhancementId();return console[_0x5bdb91(0x159)](LOG_PREFIX+_0x5bdb91(0x10c)+_0x5e804c),console[_0x5bdb91(0x159)](LOG_PREFIX+_0x5bdb91(0x17d)+state[_0x5bdb91(0x151)]),console['log'](LOG_PREFIX+_0x5bdb91(0x191)+state['controlled']),{'enhancementId':_0x5e804c,'enabled':state[_0x5bdb91(0x151)],'controlled':state[_0x5bdb91(0xf2)],'overlayPosition':_0x41f6a8['overlay']['position'],'securityMode':_0x41f6a8[_0x5bdb91(0x13c)],'backendBaseUrl':_0x41f6a8[_0x5bdb91(0x121)],'appError':state[_0x5bdb91(0x109)]};}async function setupRemoteHMR(_0x300ab5){const _0x21b2a7=_0x1ec475;console[_0x21b2a7(0x159)](LOG_PREFIX+_0x21b2a7(0x14c)+_0x300ab5);if(typeof window===_0x21b2a7(0xda))return;try{const _0x28b238=new URL(_0x300ab5,window[_0x21b2a7(0x18e)][_0x21b2a7(0xf1)]),_0x12a718=_0x28b238[_0x21b2a7(0xf1)];console[_0x21b2a7(0x159)](LOG_PREFIX+_0x21b2a7(0x13e)+_0x12a718+_0x21b2a7(0x107)+window['location'][_0x21b2a7(0xf1)]);if(_0x12a718===window[_0x21b2a7(0x18e)][_0x21b2a7(0xf1)]){console[_0x21b2a7(0x159)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x21b2a7(0x159)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x12a718),await ensureViteClient(_0x12a718),console[_0x21b2a7(0x159)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x4975ae){console[_0x21b2a7(0x132)](LOG_PREFIX+_0x21b2a7(0x18a),_0x4975ae);}}async function ensureReactRefreshPreamble(_0x247708){const _0x1667ab=_0x1ec475;window[_0x1667ab(0x158)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x247708)){console[_0x1667ab(0x159)](LOG_PREFIX+_0x1667ab(0x11c)+_0x247708);return;}console[_0x1667ab(0x159)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x247708+_0x1667ab(0xb9));const _0x1e5ae0=await import(_0x247708+_0x1667ab(0x19a)),_0x484cf5=_0x1e5ae0&&typeof _0x1e5ae0===_0x1667ab(0x10b)&&'default'in _0x1e5ae0?_0x1e5ae0[_0x1667ab(0x168)]:_0x1e5ae0;if(!isRefreshRuntime(_0x484cf5)){console[_0x1667ab(0x132)](LOG_PREFIX+_0x1667ab(0x154));return;}_0x484cf5[_0x1667ab(0xf5)](window),window['$RefreshReg$']=()=>{},window['$RefreshSig$']=()=>_0x488870=>_0x488870,window['__vite_plugin_react_preamble_installed__']=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x1667ab(0x17c)](_0x247708),console[_0x1667ab(0x159)](LOG_PREFIX+_0x1667ab(0x155)+_0x247708);}async function ensureViteClient(_0x4e252e){const _0x2b8189=_0x1ec475;window[_0x2b8189(0xce)]??=new Set();if(window[_0x2b8189(0xce)][_0x2b8189(0x12a)](_0x4e252e)){console[_0x2b8189(0x159)](LOG_PREFIX+_0x2b8189(0xd5)+_0x4e252e);return;}console[_0x2b8189(0x159)](LOG_PREFIX+_0x2b8189(0x119)+_0x4e252e+_0x2b8189(0xb9)),await import(_0x4e252e+_0x2b8189(0x10d)),window[_0x2b8189(0xce)][_0x2b8189(0x17c)](_0x4e252e),console[_0x2b8189(0x159)](LOG_PREFIX+_0x2b8189(0x143)+_0x4e252e);}function isRefreshRuntime(_0x48b22c){const _0x2ebb82=_0x1ec475;return typeof _0x48b22c===_0x2ebb82(0x10b)&&_0x48b22c!==null&&'injectIntoGlobalHook'in _0x48b22c&&typeof _0x48b22c[_0x2ebb82(0xf5)]===_0x2ebb82(0xf0);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2=_0x1ec475(0x188),registration=null,currentOptions2=null;async function registerServiceWorker(_0x59088b){const _0x28e13e=_0x1ec475;console[_0x28e13e(0x159)](LOG_PREFIX2+_0x28e13e(0xfc)),console[_0x28e13e(0x159)](LOG_PREFIX2+'\x20swPath:\x20'+_0x59088b[_0x28e13e(0x16d)]);if(!(_0x28e13e(0x122)in navigator)){console[_0x28e13e(0x132)](LOG_PREFIX2+_0x28e13e(0xc2));return;}console[_0x28e13e(0x159)](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x34f10a=navigator[_0x28e13e(0x122)][_0x28e13e(0xf9)];console[_0x28e13e(0x159)](LOG_PREFIX2+'\x20Current\x20controller:',_0x34f10a?.['scriptURL']??_0x28e13e(0x152)),console[_0x28e13e(0x159)](LOG_PREFIX2+_0x28e13e(0x129),_0x34f10a?.['state']??_0x28e13e(0xc1));const _0x21f51b=!!_0x34f10a;currentOptions2=_0x59088b,console['log'](LOG_PREFIX2+_0x28e13e(0x12f));const _0x2179bf=await detectBlockingServiceWorker(_0x59088b['swPath']);if(_0x2179bf){console['error'](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x2179bf),console[_0x28e13e(0x17f)](LOG_PREFIX2+_0x28e13e(0x177));return;}console[_0x28e13e(0x159)](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x28e13e(0x159)](LOG_PREFIX2+_0x28e13e(0xef)+_0x59088b['swPath']+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator['serviceWorker'][_0x28e13e(0x19e)](_0x59088b['swPath'],{'scope':'/'}),console[_0x28e13e(0x159)](LOG_PREFIX2+_0x28e13e(0x102),{'scope':registration['scope'],'active':registration[_0x28e13e(0xdd)]?.[_0x28e13e(0x166)],'waiting':registration['waiting']?.[_0x28e13e(0x166)],'installing':registration['installing']?.[_0x28e13e(0x166)]}),console[_0x28e13e(0x159)](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0x33d3d3=await navigator[_0x28e13e(0x122)]['ready'];console[_0x28e13e(0x159)](LOG_PREFIX2+_0x28e13e(0x16a),_0x33d3d3['active']?.['scriptURL']);const _0x141eec=ownsCurrentController(_0x59088b[_0x28e13e(0x16d)]);state[_0x28e13e(0xf2)]=_0x141eec,console['log'](LOG_PREFIX2+_0x28e13e(0xbe)+_0x141eec),console[_0x28e13e(0x159)](LOG_PREFIX2+'\x20Current\x20controller\x20after\x20ready:',navigator[_0x28e13e(0x122)][_0x28e13e(0xf9)]?.[_0x28e13e(0x166)]??'none');if(!_0x21f51b&&!navigator['serviceWorker']['controller']){console[_0x28e13e(0x159)](LOG_PREFIX2+_0x28e13e(0xfa)),window[_0x28e13e(0x18e)][_0x28e13e(0x13f)]();return;}console[_0x28e13e(0x159)](LOG_PREFIX2+_0x28e13e(0x16e)),await sendConfiguration();if(state[_0x28e13e(0x151)]){const _0x452d94=document['querySelector'](_0x28e13e(0xc7))!==null;console[_0x28e13e(0x159)](LOG_PREFIX2+_0x28e13e(0xec)+_0x452d94);if(!_0x452d94){console[_0x28e13e(0x159)](LOG_PREFIX2+_0x28e13e(0x14f)),window[_0x28e13e(0x18e)][_0x28e13e(0x13f)]();return;}}console[_0x28e13e(0x159)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x464f9a){console[_0x28e13e(0x17f)](LOG_PREFIX2+_0x28e13e(0x16c),_0x464f9a);}}async function sendConfiguration(){const _0x18b1e6=_0x1ec475;console[_0x18b1e6(0x159)](LOG_PREFIX2+_0x18b1e6(0xba)),console[_0x18b1e6(0x159)](LOG_PREFIX2+_0x18b1e6(0x108)+state[_0x18b1e6(0x151)]+_0x18b1e6(0xfb)+!!currentOptions2);if(!state[_0x18b1e6(0x151)]||!currentOptions2){console['log'](LOG_PREFIX2+_0x18b1e6(0x128));return;}const _0xfe12f5=await resolveWorker();if(!_0xfe12f5){console[_0x18b1e6(0x132)](LOG_PREFIX2+_0x18b1e6(0x13b));return;}const _0x17046b={'publishableKey':currentOptions2[_0x18b1e6(0x198)],'callbackBypass':currentOptions2[_0x18b1e6(0x127)],'securityMode':currentOptions2[_0x18b1e6(0x13c)]};console[_0x18b1e6(0x159)](LOG_PREFIX2+_0x18b1e6(0x187),JSON[_0x18b1e6(0xd4)](_0x17046b,null,0x2)),_0xfe12f5['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x17046b}),console['log'](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x3db328){const _0x318d1f=_0x1ec475;console[_0x318d1f(0x159)](LOG_PREFIX2+_0x318d1f(0xfe));if(!(_0x318d1f(0x122)in navigator)){console[_0x318d1f(0x159)](LOG_PREFIX2+_0x318d1f(0x18c));return;}try{const _0x3f2a68=registration??await navigator[_0x318d1f(0x122)]['getRegistration']('/');if(!_0x3f2a68){console[_0x318d1f(0x159)](LOG_PREFIX2+_0x318d1f(0x19d));return;}console[_0x318d1f(0x159)](LOG_PREFIX2+_0x318d1f(0xb8),{'scope':_0x3f2a68[_0x318d1f(0x131)],'active':_0x3f2a68[_0x318d1f(0xdd)]?.[_0x318d1f(0x166)],'waiting':_0x3f2a68['waiting']?.[_0x318d1f(0x166)],'installing':_0x3f2a68[_0x318d1f(0xd9)]?.[_0x318d1f(0x166)]});const _0x110c7c=[_0x3f2a68['active']?.[_0x318d1f(0x166)],_0x3f2a68['waiting']?.[_0x318d1f(0x166)],_0x3f2a68[_0x318d1f(0xd9)]?.[_0x318d1f(0x166)]],_0x48d7f8=_0x110c7c[_0x318d1f(0x190)](_0x24ac9c=>_0x24ac9c&&ownsServiceWorker(_0x24ac9c,_0x3db328));if(!_0x48d7f8){console[_0x318d1f(0x159)](LOG_PREFIX2+_0x318d1f(0xbc));return;}_0x3f2a68['active']&&(console[_0x318d1f(0x159)](LOG_PREFIX2+_0x318d1f(0x11a)),_0x3f2a68[_0x318d1f(0xdd)][_0x318d1f(0x18d)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x318d1f(0x159)](LOG_PREFIX2+_0x318d1f(0x14d)),await _0x3f2a68[_0x318d1f(0x101)](),registration=null,currentOptions2=null,console[_0x318d1f(0x159)](LOG_PREFIX2+_0x318d1f(0x10e));}catch(_0x417f7f){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x417f7f);}}function ownsServiceWorker(_0x4a7870,_0x40f28c){const _0x33708f=_0x1ec475,_0x5a768c=typeof window!==_0x33708f(0xda)?window[_0x33708f(0x18e)][_0x33708f(0xf1)]:'',_0x24280c=new URL(_0x40f28c,_0x5a768c||void 0x0)[_0x33708f(0xde)],_0x4037dc=_0x4a7870===_0x24280c||_0x4a7870[_0x33708f(0xc6)]('sw-enhance');return console[_0x33708f(0x159)](LOG_PREFIX2+_0x33708f(0x1a0)+_0x4a7870+_0x33708f(0xf3)+_0x24280c+_0x33708f(0x185)+_0x4037dc),_0x4037dc;}function ownsCurrentController(_0x1b53d1){const _0x551211=_0x1ec475;if(typeof navigator===_0x551211(0xda))return![];const _0x397300=navigator[_0x551211(0x122)]?.[_0x551211(0xf9)];if(!_0x397300)return console[_0x551211(0x159)](LOG_PREFIX2+_0x551211(0xb5)),![];return ownsServiceWorker(_0x397300['scriptURL'],_0x1b53d1);}async function detectBlockingServiceWorker(_0x271519){const _0x3b94b4=_0x1ec475;if(!navigator[_0x3b94b4(0x122)])return null;try{const _0x107382=await navigator[_0x3b94b4(0x122)][_0x3b94b4(0xb6)]('/');console[_0x3b94b4(0x159)](LOG_PREFIX2+_0x3b94b4(0x105),_0x107382?.[_0x3b94b4(0xdd)]?.[_0x3b94b4(0x166)]??'none');const _0x40b052=_0x107382?.[_0x3b94b4(0xdd)]?.['scriptURL'];if(!_0x40b052)return null;if(ownsServiceWorker(_0x40b052,_0x271519))return null;return _0x40b052;}catch(_0x6003f2){return console['error'](LOG_PREFIX2+_0x3b94b4(0xe6),_0x6003f2),null;}}async function resolveWorker(){const _0x424a4d=_0x1ec475,_0x439e07=registration??await navigator[_0x424a4d(0x122)]?.['getRegistration']('/'),_0x4d333d=_0x439e07?.[_0x424a4d(0xdd)]??_0x439e07?.['waiting']??_0x439e07?.[_0x424a4d(0xd9)]??null;return console[_0x424a4d(0x159)](LOG_PREFIX2+_0x424a4d(0xf4),_0x4d333d?.['scriptURL']??'none',_0x424a4d(0xe4)+(_0x4d333d?.['state']??_0x424a4d(0xc1))),_0x4d333d;}var LOG_PREFIX3=_0x1ec475(0x181);function isInitialized(){const _0x51dcad=_0x1ec475;return typeof window!==_0x51dcad(0xda)&&window[_0x51dcad(0x15c)]===!![];}function setInitialized(_0x275f39){const _0x412713=_0x1ec475;typeof window!=='undefined'&&(window[_0x412713(0x15c)]=_0x275f39);}function _0x3c23(_0x13a6b3,_0x4c2d4a){_0x13a6b3=_0x13a6b3-0xb1;const _0x223f69=_0x223f();let _0x3c23d9=_0x223f69[_0x13a6b3];return _0x3c23d9;}function getOptions(){const _0xac194c=_0x1ec475;return typeof window!==_0xac194c(0xda)?window['__enhanceOptions']??null:null;}function setOptions(_0x55adea){const _0x5ed1aa=_0x1ec475;typeof window!==_0x5ed1aa(0xda)&&(window['__enhanceOptions']=_0x55adea);}var Enhance={'init'(_0x5c212b){const _0x340c7d=_0x1ec475,_0x4f69a0=Date[_0x340c7d(0x112)]();console[_0x340c7d(0x159)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x4f69a0),console[_0x340c7d(0x159)](LOG_PREFIX3+_0x340c7d(0x19b)+window[_0x340c7d(0x18e)][_0x340c7d(0xde)]),console[_0x340c7d(0x159)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x340c7d(0xf7)]),console[_0x340c7d(0x159)](LOG_PREFIX3+_0x340c7d(0x11e),JSON[_0x340c7d(0xd4)](_0x5c212b,null,0x2));if(isInitialized())return console[_0x340c7d(0x132)](LOG_PREFIX3+_0x340c7d(0x178)),window[_0x340c7d(0x18b)]??createController();setInitialized(!![]),console[_0x340c7d(0x159)](LOG_PREFIX3+_0x340c7d(0x116));const _0x504bb6=normalizeOptions(_0x5c212b);setOptions(_0x504bb6),console[_0x340c7d(0x159)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON['stringify'](_0x504bb6,null,0x2));const _0x1c6485=parseUrlParams();console['log'](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x340c7d(0xd4)](_0x1c6485,null,0x2));if(_0x1c6485[_0x340c7d(0x156)])return cleanUrlParam(_0x340c7d(0x134)),console[_0x340c7d(0x159)](LOG_PREFIX3+_0x340c7d(0x19c)),createController();if(_0x1c6485['hasEnhancement'])return console['log'](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console['log'](LOG_PREFIX3+_0x340c7d(0x12b)+_0x1c6485[_0x340c7d(0x146)]),console[_0x340c7d(0x159)](LOG_PREFIX3+_0x340c7d(0x17b)+_0x1c6485[_0x340c7d(0xbf)]),state[_0x340c7d(0x151)]=!![],console[_0x340c7d(0x159)](LOG_PREFIX3+_0x340c7d(0xbb)),void loadOverlay({'overlayPath':_0x504bb6[_0x340c7d(0x12e)],'enableViteHmr':_0x504bb6[_0x340c7d(0x115)]['enableViteHmr'],'options':_0x504bb6,'onToggle':handleToggle}),console[_0x340c7d(0x159)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x504bb6),console[_0x340c7d(0x159)](LOG_PREFIX3+_0x340c7d(0x12d)),createController();return console[_0x340c7d(0x159)](LOG_PREFIX3+_0x340c7d(0xc9)),console['log'](LOG_PREFIX3+_0x340c7d(0x197)),void unregisterServiceWorker(_0x504bb6[_0x340c7d(0x16d)]),console[_0x340c7d(0x159)](LOG_PREFIX3+_0x340c7d(0x164)),import.meta.hot&&(console['log'](LOG_PREFIX3+_0x340c7d(0x11b)),import.meta.hot['on'](_0x340c7d(0x104),_0x32fa21=>{const _0x40de41=_0x340c7d;console[_0x40de41(0x159)](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x32fa21),state[_0x40de41(0x109)]={'message':_0x32fa21['err'][_0x40de41(0x123)]},updateOverlay();}),import.meta.hot['on'](_0x340c7d(0x171),()=>{const _0x3ad50a=_0x340c7d;state[_0x3ad50a(0x109)]&&(console[_0x3ad50a(0x159)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state[_0x3ad50a(0x109)]=null,updateOverlay());})),createController();}};function createController(){const _0x3e5836=_0x1ec475,_0x141c2e={'enable'(){const _0x3161ba=_0x3c23,_0x561251=getOptions();if(!_0x561251)return;state[_0x3161ba(0x151)]=!![],void loadOverlay({'overlayPath':_0x561251[_0x3161ba(0x12e)],'enableViteHmr':_0x561251[_0x3161ba(0x115)][_0x3161ba(0x193)],'options':_0x561251,'onToggle':handleToggle}),void registerServiceWorker(_0x561251),void sendConfiguration(),updateOverlay();},'disable'(){const _0x1491b0=_0x3c23,_0x15d459=getOptions();if(!_0x15d459)return;state[_0x1491b0(0x151)]=![],state[_0x1491b0(0xf2)]=![],updateOverlay(),void unregisterServiceWorker(_0x15d459[_0x1491b0(0x16d)]);},'status'(){const _0x119bf2=_0x3c23;return{'enabled':state[_0x119bf2(0x151)],'controlled':state[_0x119bf2(0xf2)]};}};return typeof window!==_0x3e5836(0xda)&&(window[_0x3e5836(0x18b)]=_0x141c2e),_0x141c2e;}function handleToggle(){const _0x310e6f=_0x1ec475,_0x5bb983=createController();state['enabled']?_0x5bb983['disable']():_0x5bb983[_0x310e6f(0xe2)]();}function parseUrlParams(){const _0x50e2ca=_0x1ec475,_0x4eda1b=new URL(window['location'][_0x50e2ca(0xde)]),_0x20373a=_0x4eda1b[_0x50e2ca(0x117)][_0x50e2ca(0x142)]('enhance')?.[_0x50e2ca(0x186)](),_0x58fe70=_0x4eda1b[_0x50e2ca(0x117)][_0x50e2ca(0x142)]('enhancementUrl'),_0x4e6a07=_0x4eda1b[_0x50e2ca(0x117)][_0x50e2ca(0x142)](_0x50e2ca(0xca));return{'hasEnhancement':Boolean(_0x58fe70||_0x4e6a07),'explicitDisable':_0x20373a==='0'||_0x20373a===_0x50e2ca(0x114)||_0x20373a==='off','enhancementUrl':_0x58fe70,'enhancementId':_0x4e6a07};}function cleanUrlParam(_0x4fb481){const _0x1fe22b=_0x1ec475,_0x48519f=new URL(window[_0x1fe22b(0x18e)]['href']);_0x48519f['searchParams'][_0x1fe22b(0x12a)](_0x4fb481)&&(_0x48519f[_0x1fe22b(0x117)][_0x1fe22b(0xd1)](_0x4fb481),window[_0x1fe22b(0x162)]['replaceState'](null,document[_0x1fe22b(0x16b)],_0x48519f['toString']()));}var package_default={'name':'@enhance-eng/sandbox','version':_0x1ec475(0x110),'type':_0x1ec475(0x111),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':'MIT','main':_0x1ec475(0x14a),'module':_0x1ec475(0x14a),'types':_0x1ec475(0x12c),'exports':{'.':{'types':_0x1ec475(0x12c),'import':_0x1ec475(0x14a)},'./vite':{'types':_0x1ec475(0x199),'import':'./dev/vite/index.js'}},'files':[_0x1ec475(0xcf)],'bin':{'enhance-sandbox':_0x1ec475(0x150)},'scripts':{'typecheck':_0x1ec475(0x133),'dev':_0x1ec475(0x179),'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':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x1ec475(0xed),'build:release:dev':_0x1ec475(0x184),'version':_0x1ec475(0xf6)},'dependencies':{'commander':_0x1ec475(0x180),'zod':_0x1ec475(0x192)},'devDependencies':{'@types/node':_0x1ec475(0x176),'javascript-obfuscator':_0x1ec475(0xc4),'tsup':_0x1ec475(0x125),'vite':'^7.2.4'},'publishConfig':{'access':_0x1ec475(0x16f)}},DEFAULT_SERVICE_WORKER_PATH=_0x1ec475(0x120),DEFAULT_RUNTIME_PATH=_0x1ec475(0x14e),DIST_SERVICE_WORKER_PATH=_0x1ec475(0x182),DIST_RUNTIME_PATH=_0x1ec475(0x148),PACKAGE_VERSION=typeof package_default[_0x1ec475(0xcb)]==='string'?package_default['version']:'0.0.0';function normalizeAssetPath(_0x1dfa58){const _0x57a40e=_0x1ec475;if(!_0x1dfa58)return _0x1dfa58;if(_0x1dfa58[_0x57a40e(0x195)](_0x57a40e(0xd7))||_0x1dfa58[_0x57a40e(0x195)](_0x57a40e(0x126)))return _0x1dfa58;const _0x44dded=_0x1dfa58[_0x57a40e(0x10a)](/^\.\//,'');return _0x44dded[_0x57a40e(0x195)]('/')?_0x44dded:'/'+_0x44dded;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x2d844b){return Enhance['init'](_0x2d844b);},'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 _0x4bfff9=_0x1ec475;return Enhance2[_0x4bfff9(0x163)]();}function runtimeURL(){const _0x40bcf2=_0x1ec475;return Enhance2[_0x40bcf2(0xc3)]();}import{promises as _0x3ee664}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x223f(){const _0x528d6d=['\x20Registration\x20returned:','code','vite:error','\x20detectBlocking\x20-\x20existing\x20registration:','publicDir',',\x20page\x20origin:\x20','\x20state.enabled:\x20','appError','replace','object','\x20composeOverlayState\x20-\x20enhancementId:\x20','/@vite/client','\x20SW\x20unregistered\x20successfully','copied','0.3.20','module','now','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','false','overlay','\x20First\x20initialization','searchParams','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Available\x20exports:','\x20Raw\x20options:','\x20Overlay\x20controller\x20initialized\x20and\x20cached','/sw-enhance.js','backendUrl','serviceWorker','message','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','^8.5.1','https://','callbackBypass','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Controller\x20state:','has','\x20enhancementUrl:\x20','./dev/index.d.ts','\x20init()\x20complete\x20-\x20enhancement\x20mode','overlayPath','\x20Checking\x20for\x20blocking\x20service\x20worker...','__development','scope','warn','tsc\x20--noEmit','enhance','copyFile','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','4547945fhuAcv','createOverlay','relativeDestination','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20No\x20service\x20worker\x20active\x20to\x20configure','security','1923eLByVM','\x20Overlay\x20origin:\x20','reload','Print\x20the\x20current\x20asset\x20manifest','enhance-sandbox','get','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','update','sourcePath','enhancementUrl','description','assets/enhance-runtime.js','--filename\x20<name>','./dev/index.js','info','\x20setupRemoteHMR()\x20for\x20','\x20Unregistering\x20SW...','/assets/enhance-runtime.js','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','./dev/cli.js','enabled','none','\x20loadOverlay()\x20failed:','\x20Invalid\x20React\x20Refresh\x20runtime','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','explicitDisable','__enhanceOverlay','__enhanceReactRefreshInstalledOrigins','log','override','prepare-sw','__enhanceInitialized','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','\x20doLoadOverlay()\x20starting...','cwd','Enhance\x20sandbox\x20utility\x20CLI','https://assets.enhancelabs.ai/overlay.js','history','serviceWorkerURL','\x20init()\x20complete\x20-\x20normal\x20mode','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','scriptURL','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','default','trim','\x20SW\x20ready!\x20Active:','title','\x20Failed\x20to\x20register\x20service\x20worker:','swPath','\x20Sending\x20customer\x20configuration...','public','write','vite:beforeUpdate','\x20currentOptions\x20exists:\x20','manifestPath','\x20loadOverlay()\x20called','../dist/index.js','^24.10.1','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','mkdir','\x20enhancementId:\x20','add','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20updateOverlay()\x20called','error','^11.1.0','[Enhance\x20Runtime]','sw-enhance.js','\x20Starting\x20fresh\x20overlay\x20load...','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup',',\x20owns=','toLowerCase','\x20Sending\x20customer\x20config\x20to\x20SW:','[Enhance\x20SW-Client]','1129865itJxah','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','__enhanceController','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','postMessage','location','all','some','\x20composeOverlayState\x20-\x20state.controlled:\x20','^3.22.4','enableViteHmr','options','startsWith','status','\x20Unregistering\x20any\x20existing\x20SW...','publishableKey','./dev/vite/index.d.ts','/@react-refresh','\x20Current\x20URL:\x20','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','register','onToggle','\x20ownsServiceWorker?\x20scriptURL=','2066KvMTiV','24LwIENZ','508981hLMIrB','\x20Updating\x20overlay\x20with\x20state:','\x20No\x20current\x20controller','getRegistration','stdout','\x20Found\x20registration:','...','\x20sendConfiguration()\x20called','\x20Starting\x20overlay\x20load\x20(async)...','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','enhancementId','option','N/A','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','runtimeURL','^4.1.1','destinationPath','includes','[data-enhance-runtime-bootstrap]','action','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','enhancement','version','push','\x20(already\x20current)\x20[','__viteHMRLoaded','dev/','digest','delete','\x20Module\x20imported\x20in\x20','310AcPhSg','stringify','\x20Vite\x20client\x20already\x20loaded\x20for\x20','keys','http://','\x20overlayController\x20exists:\x20','installing','undefined','requiredOption','ENOENT','active','href','parseAsync','3272096JHTiUp','\x20Failed\x20to\x20import/create\x20overlay:','enable','0.0.0','state:\x20','1408967QwdXub','\x20detectBlocking\x20error:','command','enableOverlayHmr','--public-dir\x20<path>','3336416qFEBRp','18OCYibH','\x20Enhancement\x20detection:\x20wasEnhanced=','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','filename','\x20Registering\x20SW\x20at\x20','function','origin','controlled',',\x20expected=','\x20resolveWorker:','injectIntoGlobalHook','bun\x20version\x20patch\x20--no-git-tag-version','readyState','\x20Overlay\x20update\x20complete','controller','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...',',\x20currentOptions:\x20','\x20registerServiceWorker()\x20called','\x20→\x20','\x20unregisterServiceWorker()\x20called','\x20enableViteHmr:\x20','\x20Module\x20exports:','unregister'];_0x223f=function(){return _0x528d6d;};return _0x223f();}var distDir=dirname(fileURLToPath(new URL(_0x1ec475(0x175),import.meta.url)));async function syncAssets(_0x24694e){const _0x53ea31=_0x1ec475,_0x5c969f=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x24694e['swFilename']?'./'+_0x24694e['swFilename']:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x2b8095=[];for(const _0x39c39e of _0x5c969f){const _0x3d6272=cleanRelativePath(_0x39c39e[_0x53ea31(0x15a)]??_0x39c39e[_0x53ea31(0x173)]),_0x414c7c=join(distDir,cleanRelativePath(_0x39c39e[_0x53ea31(0x145)])),_0xafc666=join(_0x24694e[_0x53ea31(0x106)],_0x3d6272),[_0x309863,_0xc4070e]=await Promise[_0x53ea31(0x18f)]([readDigest(_0x414c7c),readDigest(_0xafc666)]);if(_0x309863&&_0xc4070e&&_0x309863===_0xc4070e){_0x2b8095[_0x53ea31(0xcc)]({'sourcePath':_0x414c7c,'destinationPath':_0xafc666,'relativeDestination':_0x3d6272,'status':'skipped'});continue;}await _0x3ee664[_0x53ea31(0x17a)](dirname(_0xafc666),{'recursive':!![]}),await _0x3ee664[_0x53ea31(0x135)](_0x414c7c,_0xafc666),_0x2b8095[_0x53ea31(0xcc)]({'sourcePath':_0x414c7c,'destinationPath':_0xafc666,'relativeDestination':_0x3d6272,'status':_0x53ea31(0x10f)});}return _0x2b8095;}function cleanRelativePath(_0x35bfe2){return _0x35bfe2['replace'](/^[./]+/,'');}async function readDigest(_0xf84490){const _0x3028b2=_0x1ec475;try{const _0x2c508a=await _0x3ee664['readFile'](_0xf84490);return createHash('sha256')[_0x3028b2(0x144)](_0x2c508a)[_0x3028b2(0xd0)]('base64');}catch(_0x5229ff){if(_0x5229ff[_0x3028b2(0x103)]===_0x3028b2(0xdc))return null;throw _0x5229ff;}}var program=new Command();program['name'](_0x1ec475(0x141))['description'](_0x1ec475(0x160))[_0x1ec475(0xcb)](_0x1ec475(0xe3)),program[_0x1ec475(0xe7)]('manifest')[_0x1ec475(0x147)](_0x1ec475(0x140))[_0x1ec475(0xc8)](()=>{const _0x4d3b2f=_0x1ec475,_0x387076=getAssetManifest();process[_0x4d3b2f(0xb7)][_0x4d3b2f(0x170)](JSON[_0x4d3b2f(0xd4)](_0x387076,null,0x2)+'\x0a');}),program[_0x1ec475(0xe7)](_0x1ec475(0x15b))[_0x1ec475(0x147)](_0x1ec475(0x15d))[_0x1ec475(0xdb)](_0x1ec475(0xe9),_0x1ec475(0x167))[_0x1ec475(0xc0)](_0x1ec475(0x149),_0x1ec475(0x124))[_0x1ec475(0xc8)](async _0x4eb727=>{const _0x11eb55=_0x1ec475,_0x1e0ea4=resolve(process[_0x11eb55(0x15f)](),_0x4eb727[_0x11eb55(0x106)]),_0x2291c0=await syncAssets({'publicDir':_0x1e0ea4,'swFilename':_0x4eb727[_0x11eb55(0xee)]});for(const _0x4f457c of _0x2291c0){const _0x2e4f18=relative(process[_0x11eb55(0x15f)](),_0x4f457c[_0x11eb55(0xc5)]);_0x4f457c[_0x11eb55(0x196)]==='skipped'?process['stdout'][_0x11eb55(0x170)]('Skipped\x20'+_0x4f457c[_0x11eb55(0x139)]+_0x11eb55(0xcd)+_0x2e4f18+']\x0a'):process[_0x11eb55(0xb7)][_0x11eb55(0x170)]('Copied\x20'+_0x4f457c[_0x11eb55(0x139)]+_0x11eb55(0xfd)+_0x2e4f18+'\x0a');}}),program[_0x1ec475(0xdf)]();
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
type SecurityMode$1 = "permissive" | "custom";
|
|
2
2
|
|
|
3
3
|
type RawOptions = {
|
|
4
|
-
|
|
4
|
+
publishableKey: string;
|
|
5
|
+
callbackBypass?: string[];
|
|
5
6
|
__development?: {
|
|
6
7
|
enableOverlayHmr?: boolean;
|
|
7
8
|
overlayPath?: string;
|
|
8
|
-
security?:
|
|
9
|
+
security?: "permissive" | "custom";
|
|
9
10
|
backendUrl?: string;
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
13
|
type NormalizedOptions = {
|
|
14
|
+
publishableKey: string;
|
|
13
15
|
callbackBypass: string[];
|
|
14
16
|
overlay: {
|
|
15
17
|
enabled: true;
|
|
16
|
-
position:
|
|
18
|
+
position: "bottom-right";
|
|
17
19
|
enableViteHmr: boolean;
|
|
18
20
|
};
|
|
19
|
-
logLevel:
|
|
20
|
-
swPath:
|
|
21
|
+
logLevel: "info";
|
|
22
|
+
swPath: "/sw-enhance.js";
|
|
21
23
|
overlayPath: string;
|
|
22
|
-
runtimeScriptPath:
|
|
24
|
+
runtimeScriptPath: "/assets/enhance-runtime.js";
|
|
23
25
|
security: SecurityMode$1;
|
|
24
26
|
backendUrl: string;
|
|
25
27
|
};
|
|
26
28
|
|
|
27
|
-
type OverlayPosition =
|
|
28
|
-
type SecurityMode =
|
|
29
|
+
type OverlayPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
30
|
+
type SecurityMode = "permissive" | "custom";
|
|
29
31
|
interface OverlayState {
|
|
30
|
-
|
|
32
|
+
enhancementId: string;
|
|
31
33
|
enabled: boolean;
|
|
32
34
|
controlled: boolean;
|
|
33
35
|
overlayPosition: OverlayPosition;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x347f13=_0x4baf;(function(_0x1537ef,_0x1f1fd4){const _0x101f52=_0x4baf,_0x363c15=_0x1537ef();while(!![]){try{const _0x36c82b=parseInt(_0x101f52(0x153))/0x1+-parseInt(_0x101f52(0x148))/0x2*(-parseInt(_0x101f52(0x1d4))/0x3)+parseInt(_0x101f52(0x1cd))/0x4+parseInt(_0x101f52(0x185))/0x5+parseInt(_0x101f52(0x1e4))/0x6+parseInt(_0x101f52(0x200))/0x7+-parseInt(_0x101f52(0x143))/0x8;if(_0x36c82b===_0x1f1fd4)break;else _0x363c15['push'](_0x363c15['shift']());}catch(_0x21d01f){_0x363c15['push'](_0x363c15['shift']());}}}(_0x46d3,0x765b8));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x347f13(0x16e)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x347f13(0x1b3),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x347f13(0x16e)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x347f13(0x164),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x347f13(0x16e)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x347f13(0x13f)](_0x347f13(0x1b1),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0xac1b61){const _0x47eba9=_0x347f13,_0x4aa31e=_0xac1b61['__development']??{};return{'callbackBypass':_0xac1b61['callbackBypass'],'overlay':{'enabled':!![],'position':_0x47eba9(0x177),'enableViteHmr':_0x4aa31e[_0x47eba9(0x1f9)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x47eba9(0x1af),'swPath':_0x47eba9(0x1e0),'overlayPath':_0x4aa31e[_0x47eba9(0x201)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x47eba9(0x139),'security':_0x4aa31e[_0x47eba9(0x151)]??_0x47eba9(0x154),'backendUrl':_0x4aa31e[_0x47eba9(0x147)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x39082b=_0x347f13;try{const _0x5d377e=new URLSearchParams(window[_0x39082b(0x138)][_0x39082b(0x171)]);return _0x5d377e[_0x39082b(0x132)](_0x39082b(0x1c4))?.[_0x39082b(0x1f6)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;function _0x4baf(_0x37a3d6,_0x170d85){const _0x46d328=_0x46d3();return _0x4baf=function(_0x4baf45,_0x50b235){_0x4baf45=_0x4baf45-0x12a;let _0x5d9dac=_0x46d328[_0x4baf45];return _0x5d9dac;},_0x4baf(_0x37a3d6,_0x170d85);}async function loadOverlay(_0x5e50fc){const _0x47b39f=_0x347f13;console[_0x47b39f(0x13f)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x47b39f(0x13f)](LOG_PREFIX+_0x47b39f(0x14c)+_0x5e50fc['overlayPath']),console[_0x47b39f(0x13f)](LOG_PREFIX+_0x47b39f(0x17c)+_0x5e50fc['enableViteHmr']),currentOptions=_0x5e50fc['options'],toggleHandler=_0x5e50fc[_0x47b39f(0x188)];if(overlayController){console[_0x47b39f(0x13f)](LOG_PREFIX+_0x47b39f(0x160)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x47b39f(0x13f)](LOG_PREFIX+_0x47b39f(0x196)),overlayLoadPromise;console[_0x47b39f(0x13f)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x5e50fc);try{await overlayLoadPromise,console[_0x47b39f(0x13f)](LOG_PREFIX+_0x47b39f(0x1ff));}catch(_0x5938db){console['error'](LOG_PREFIX+_0x47b39f(0x1ef),_0x5938db);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x1199cd){const _0x43841a=_0x347f13;console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x1c8));if(typeof window===_0x43841a(0x16e)){console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x1d5));return;}if(window[_0x43841a(0x1ac)]){console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x172)),overlayController=window['__enhanceOverlay'],updateOverlay();return;}console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x156));try{_0x1199cd[_0x43841a(0x1dc)]&&(console[_0x43841a(0x13f)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x1199cd[_0x43841a(0x201)]));console[_0x43841a(0x13f)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x1199cd[_0x43841a(0x201)]);const _0x116b8f=Date[_0x43841a(0x14a)](),_0x329d7f=await import(_0x1199cd['overlayPath']);console[_0x43841a(0x13f)](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x43841a(0x14a)]()-_0x116b8f)+'ms'),console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x1c3),Object[_0x43841a(0x14e)](_0x329d7f));if(typeof _0x329d7f?.[_0x43841a(0x1de)]!==_0x43841a(0x13a)){console[_0x43841a(0x152)](LOG_PREFIX+_0x43841a(0x1c7)),console[_0x43841a(0x152)](LOG_PREFIX+_0x43841a(0x187),Object['keys'](_0x329d7f));return;}console['log'](LOG_PREFIX+_0x43841a(0x1b8));const _0x50ae44=_0x329d7f['createOverlay']();console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x137),_0x50ae44),overlayController=_0x50ae44,window[_0x43841a(0x1ac)]=_0x50ae44,_0x50ae44[_0x43841a(0x188)](_0x1199cd[_0x43841a(0x188)]),console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x204)),console[_0x43841a(0x13f)](LOG_PREFIX+_0x43841a(0x176)),updateOverlay();}catch(_0x541533){console['error'](LOG_PREFIX+_0x43841a(0x12e),_0x541533);}}function updateOverlay(){const _0x2e6463=_0x347f13;console[_0x2e6463(0x13f)](LOG_PREFIX+_0x2e6463(0x169)),console[_0x2e6463(0x13f)](LOG_PREFIX+_0x2e6463(0x144)+!!overlayController),console['log'](LOG_PREFIX+_0x2e6463(0x1f7)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x2e6463(0x13f)](LOG_PREFIX+_0x2e6463(0x130));return;}const _0xfbb3b1=composeOverlayState(currentOptions);console[_0x2e6463(0x13f)](LOG_PREFIX+_0x2e6463(0x1ec),JSON['stringify'](_0xfbb3b1,null,0x2)),overlayController[_0x2e6463(0x1e6)](_0xfbb3b1),console[_0x2e6463(0x13f)](LOG_PREFIX+_0x2e6463(0x18e));}function composeOverlayState(_0x508553){const _0x1fee4a=_0x347f13,_0x3a012b=getEnhancementUrl();return console[_0x1fee4a(0x13f)](LOG_PREFIX+_0x1fee4a(0x18b)+_0x3a012b),console[_0x1fee4a(0x13f)](LOG_PREFIX+_0x1fee4a(0x134)+state[_0x1fee4a(0x19c)]),console[_0x1fee4a(0x13f)](LOG_PREFIX+_0x1fee4a(0x194)+state[_0x1fee4a(0x1f8)]),{'enhancementUrl':_0x3a012b,'enabled':state[_0x1fee4a(0x19c)],'controlled':state['controlled'],'overlayPosition':_0x508553[_0x1fee4a(0x166)]['position'],'securityMode':_0x508553[_0x1fee4a(0x151)],'backendBaseUrl':_0x508553[_0x1fee4a(0x147)],'appError':state[_0x1fee4a(0x1bf)]};}async function setupRemoteHMR(_0x35f57e){const _0x106815=_0x347f13;console[_0x106815(0x13f)](LOG_PREFIX+_0x106815(0x184)+_0x35f57e);if(typeof window===_0x106815(0x16e))return;try{const _0x123d1b=new URL(_0x35f57e,window[_0x106815(0x138)]['origin']),_0x32335f=_0x123d1b[_0x106815(0x1e8)];console[_0x106815(0x13f)](LOG_PREFIX+_0x106815(0x1cc)+_0x32335f+',\x20page\x20origin:\x20'+window[_0x106815(0x138)][_0x106815(0x1e8)]);if(_0x32335f===window[_0x106815(0x138)][_0x106815(0x1e8)]){console[_0x106815(0x13f)](LOG_PREFIX+_0x106815(0x18f));return;}console[_0x106815(0x13f)](LOG_PREFIX+_0x106815(0x162)),await ensureReactRefreshPreamble(_0x32335f),await ensureViteClient(_0x32335f),console['log'](LOG_PREFIX+_0x106815(0x17f));}catch(_0x5a97fb){console[_0x106815(0x1c2)](LOG_PREFIX+_0x106815(0x1b0),_0x5a97fb);}}async function ensureReactRefreshPreamble(_0x3df957){const _0x28487a=_0x347f13;window[_0x28487a(0x205)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x28487a(0x1d2)](_0x3df957)){console[_0x28487a(0x13f)](LOG_PREFIX+_0x28487a(0x161)+_0x3df957);return;}console[_0x28487a(0x13f)](LOG_PREFIX+_0x28487a(0x1b2)+_0x3df957+_0x28487a(0x1a6));const _0x308e17=await import(_0x3df957+'/@react-refresh'),_0x1b6c0c=_0x308e17&&typeof _0x308e17===_0x28487a(0x1dd)&&_0x28487a(0x17e)in _0x308e17?_0x308e17[_0x28487a(0x17e)]:_0x308e17;if(!isRefreshRuntime(_0x1b6c0c)){console[_0x28487a(0x1c2)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x1b6c0c[_0x28487a(0x142)](window),window[_0x28487a(0x181)]=()=>{},window['$RefreshSig$']=()=>_0x2677bf=>_0x2677bf,window[_0x28487a(0x1ee)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x28487a(0x198)](_0x3df957),console[_0x28487a(0x13f)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x3df957);}async function ensureViteClient(_0x15c3b6){const _0x20ba99=_0x347f13;window[_0x20ba99(0x1d7)]??=new Set();if(window[_0x20ba99(0x1d7)][_0x20ba99(0x1d2)](_0x15c3b6)){console['log'](LOG_PREFIX+_0x20ba99(0x1fa)+_0x15c3b6);return;}console['log'](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x15c3b6+_0x20ba99(0x1a6)),await import(_0x15c3b6+_0x20ba99(0x18d)),window[_0x20ba99(0x1d7)][_0x20ba99(0x198)](_0x15c3b6),console[_0x20ba99(0x13f)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x15c3b6);}function isRefreshRuntime(_0x3944b7){const _0x390823=_0x347f13;return typeof _0x3944b7==='object'&&_0x3944b7!==null&&'injectIntoGlobalHook'in _0x3944b7&&typeof _0x3944b7[_0x390823(0x142)]===_0x390823(0x13a);}var WORKER_MESSAGE_CONFIG=_0x347f13(0x186),WORKER_MESSAGE_DISABLE=_0x347f13(0x1c6),LOG_PREFIX2=_0x347f13(0x174),registration=null,currentOptions2=null;async function registerServiceWorker(_0x1ae75f){const _0x15e7c3=_0x347f13;console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x1f4)),console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x1fd)+_0x1ae75f['swPath']);if(!('serviceWorker'in navigator)){console[_0x15e7c3(0x1c2)](LOG_PREFIX2+_0x15e7c3(0x170));return;}console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x19e));const _0x3fc9e7=navigator[_0x15e7c3(0x15d)][_0x15e7c3(0x165)];console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x1e9),_0x3fc9e7?.[_0x15e7c3(0x150)]??_0x15e7c3(0x189)),console['log'](LOG_PREFIX2+_0x15e7c3(0x1eb),_0x3fc9e7?.[_0x15e7c3(0x1bc)]??_0x15e7c3(0x15f));const _0x8d3ddc=!!_0x3fc9e7;currentOptions2=_0x1ae75f,console['log'](LOG_PREFIX2+_0x15e7c3(0x15a));const _0x6c0cd6=await detectBlockingServiceWorker(_0x1ae75f[_0x15e7c3(0x1a4)]);if(_0x6c0cd6){console[_0x15e7c3(0x152)](LOG_PREFIX2+_0x15e7c3(0x195)+_0x6c0cd6),console[_0x15e7c3(0x152)](LOG_PREFIX2+_0x15e7c3(0x1d6));return;}console['log'](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x190)+_0x1ae75f['swPath']+_0x15e7c3(0x17b)),registration=await navigator[_0x15e7c3(0x15d)][_0x15e7c3(0x155)](_0x1ae75f[_0x15e7c3(0x1a4)],{'scope':'/'}),console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x167),{'scope':registration[_0x15e7c3(0x1be)],'active':registration[_0x15e7c3(0x149)]?.[_0x15e7c3(0x150)],'waiting':registration[_0x15e7c3(0x1a0)]?.[_0x15e7c3(0x150)],'installing':registration['installing']?.[_0x15e7c3(0x150)]}),console['log'](LOG_PREFIX2+_0x15e7c3(0x1f1));const _0x3c5ede=await navigator[_0x15e7c3(0x15d)]['ready'];console['log'](LOG_PREFIX2+_0x15e7c3(0x14d),_0x3c5ede[_0x15e7c3(0x149)]?.[_0x15e7c3(0x150)]);const _0x700d7e=ownsCurrentController(_0x1ae75f[_0x15e7c3(0x1a4)]);state[_0x15e7c3(0x1f8)]=_0x700d7e,console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x136)+_0x700d7e),console['log'](LOG_PREFIX2+_0x15e7c3(0x1cb),navigator[_0x15e7c3(0x15d)][_0x15e7c3(0x165)]?.[_0x15e7c3(0x150)]??_0x15e7c3(0x189));if(!_0x8d3ddc&&!navigator['serviceWorker'][_0x15e7c3(0x165)]){console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x1aa)),window[_0x15e7c3(0x138)]['reload']();return;}console['log'](LOG_PREFIX2+_0x15e7c3(0x12d)),await sendConfiguration();if(state[_0x15e7c3(0x19c)]){const _0x2fa651=document[_0x15e7c3(0x1e2)]('[data-enhance-runtime-bootstrap]')!==null;console['log'](LOG_PREFIX2+_0x15e7c3(0x1f5)+_0x2fa651);if(!_0x2fa651){console['log'](LOG_PREFIX2+_0x15e7c3(0x1c9)),window[_0x15e7c3(0x138)][_0x15e7c3(0x208)]();return;}}console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x197)),updateOverlay(),console[_0x15e7c3(0x13f)](LOG_PREFIX2+_0x15e7c3(0x1fc));}catch(_0x598e41){console[_0x15e7c3(0x152)](LOG_PREFIX2+_0x15e7c3(0x1b7),_0x598e41);}}async function sendConfiguration(){const _0x152014=_0x347f13;console['log'](LOG_PREFIX2+_0x152014(0x158)),console['log'](LOG_PREFIX2+_0x152014(0x209)+state['enabled']+_0x152014(0x1ba)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x152014(0x13f)](LOG_PREFIX2+_0x152014(0x13e));return;}const _0x206fc8=await resolveWorker();if(!_0x206fc8){console['warn'](LOG_PREFIX2+_0x152014(0x133));return;}const _0x5a056f={'callbackBypass':currentOptions2[_0x152014(0x1a7)],'securityMode':currentOptions2[_0x152014(0x151)]};console['log'](LOG_PREFIX2+_0x152014(0x13d),JSON[_0x152014(0x18c)](_0x5a056f,null,0x2)),_0x206fc8[_0x152014(0x191)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x5a056f}),console[_0x152014(0x13f)](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x2046b6){const _0x4c3eed=_0x347f13;console[_0x4c3eed(0x13f)](LOG_PREFIX2+_0x4c3eed(0x145));if(!(_0x4c3eed(0x15d)in navigator)){console[_0x4c3eed(0x13f)](LOG_PREFIX2+_0x4c3eed(0x1ae));return;}try{const _0x59114a=registration??await navigator[_0x4c3eed(0x15d)][_0x4c3eed(0x1bd)]('/');if(!_0x59114a){console[_0x4c3eed(0x13f)](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0x4c3eed(0x13f)](LOG_PREFIX2+_0x4c3eed(0x1b4),{'scope':_0x59114a[_0x4c3eed(0x1be)],'active':_0x59114a[_0x4c3eed(0x149)]?.[_0x4c3eed(0x150)],'waiting':_0x59114a[_0x4c3eed(0x1a0)]?.[_0x4c3eed(0x150)],'installing':_0x59114a[_0x4c3eed(0x16d)]?.[_0x4c3eed(0x150)]});const _0x286907=[_0x59114a['active']?.[_0x4c3eed(0x150)],_0x59114a['waiting']?.['scriptURL'],_0x59114a[_0x4c3eed(0x16d)]?.[_0x4c3eed(0x150)]],_0x40fea9=_0x286907[_0x4c3eed(0x1f0)](_0x2c4874=>_0x2c4874&&ownsServiceWorker(_0x2c4874,_0x2046b6));if(!_0x40fea9){console['log'](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x59114a[_0x4c3eed(0x149)]&&(console[_0x4c3eed(0x13f)](LOG_PREFIX2+_0x4c3eed(0x1ce)),_0x59114a[_0x4c3eed(0x149)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console[_0x4c3eed(0x13f)](LOG_PREFIX2+_0x4c3eed(0x175)),await _0x59114a[_0x4c3eed(0x1ea)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x4c3eed(0x1f2));}catch(_0x4c3e03){console[_0x4c3eed(0x152)](LOG_PREFIX2+_0x4c3eed(0x15b),_0x4c3e03);}}function _0x46d3(){const _0x3114fd=['warn','\x20Module\x20exports:','enhancementUrl','replaceState','enhance:disable','\x20Module\x20missing\x20createOverlay\x20export!','\x20doLoadOverlay()\x20starting...','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','runtimeURL','\x20Current\x20controller\x20after\x20ready:','\x20Overlay\x20origin:\x20','1133060GEzckg','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','^3.22.4',',\x20owns=','has','\x20Current\x20URL:\x20','222aptjUe','\x20No\x20window\x20object\x20-\x20skipping','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','__viteHMRLoaded','href','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','__enhanceInitialized','enhance','enableViteHmr','object','createOverlay','startsWith','/sw-enhance.js','message','querySelector','hasEnhancement','5115180htRfzI','\x20Document\x20readyState:\x20','update','vite:beforeUpdate','origin','\x20Current\x20controller:','unregister','\x20Controller\x20state:','\x20Updating\x20overlay\x20with\x20state:','\x20enhancementId:\x20','__vite_plugin_react_preamble_installed__','\x20loadOverlay()\x20failed:','some','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20SW\x20unregistered\x20successfully','http://','\x20registerServiceWorker()\x20called','\x20Enhancement\x20detection:\x20wasEnhanced=','trim','\x20currentOptions\x20exists:\x20','controlled','enableOverlayHmr','\x20Vite\x20client\x20already\x20loaded\x20for\x20','[Enhance\x20Runtime]','\x20registerServiceWorker()\x20complete','\x20swPath:\x20','hot','\x20loadOverlay()\x20complete','2085363dWNxwN','overlayPath','\x20Vite\x20error\x20detected:','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20Overlay\x20controller\x20initialized\x20and\x20cached','__enhanceReactRefreshInstalledOrigins','explicitDisable','includes','reload','\x20state.enabled:\x20','\x20init()\x20complete\x20-\x20enhancement\x20mode','@enhance-eng/sandbox','__enhanceOptions','\x20Sending\x20customer\x20configuration...','\x20Failed\x20to\x20import/create\x20overlay:','\x20ownsServiceWorker?\x20scriptURL=','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','get','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20composeOverlayState\x20-\x20state.enabled:\x20','^4.1.1','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20Controller\x20created:','location','/assets/enhance-runtime.js','function','\x20init()\x20complete\x20-\x20normal\x20mode','readyState','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','log','\x20resolveWorker:','^24.10.1','injectIntoGlobalHook','22598048cXugGc','\x20overlayController\x20exists:\x20','\x20unregisterServiceWorker()\x20called','disable','backendUrl','16108cQtsyQ','active','now','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20overlayPath:\x20','\x20SW\x20ready!\x20Active:','keys','./dist/vite/index.js','scriptURL','security','error','672491YWpcjr','permissive','register','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','state:\x20','\x20sendConfiguration()\x20called','\x20First\x20initialization','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20Failed\x20to\x20unregister\x20service\x20worker:','dist','serviceWorker','^7.2.4','N/A','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','tsc\x20--noEmit','https://api.enhancelabs.ai','controller','overlay','\x20Registration\x20returned:','\x20Starting\x20overlay\x20load\x20(async)...','\x20updateOverlay()\x20called','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','__enhanceController','0.0.0','installing','undefined','replace','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','search','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20reusing','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','[Enhance\x20SW-Client]','\x20Unregistering\x20SW...','\x20Calling\x20updateOverlay()...','bottom-right','bin','./dist/index.cjs','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20with\x20scope\x20\x27/\x27...','\x20enableViteHmr:\x20','toString','default','\x20HMR\x20setup\x20complete','version','$RefreshReg$','./dist/index.js','https://','\x20setupRemoteHMR()\x20for\x20','3036785pEySAL','enhance:configure','\x20Available\x20exports:','onToggle','none','module','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','stringify','/@vite/client','\x20Overlay\x20update\x20complete','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Registering\x20SW\x20at\x20','postMessage','init','title','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20BLOCKING\x20SW\x20detected:\x20','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','\x20Updating\x20overlay...','add','\x20enhancementUrl:\x20','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','0.3.19','enabled','searchParams','\x20Service\x20workers\x20supported','history','waiting','delete','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','swPath','\x20Normalized\x20options:','...','callbackBypass','err','bin/enhance-sandbox.js','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','./dist/vite/index.d.ts','__enhanceOverlay','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','info','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','https://assets.enhancelabs.ai/overlay.js','\x20Found\x20registration:','toLowerCase','enhancementId','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Calling\x20createOverlay()...',',\x20expected=',',\x20currentOptions:\x20','\x20init()\x20called\x20at\x20','state','getRegistration','scope','appError','^8.5.1','enhancement'];_0x46d3=function(){return _0x3114fd;};return _0x46d3();}function ownsServiceWorker(_0xfa6f45,_0x3e89d7){const _0x3eb345=_0x347f13,_0x4a48aa=typeof window!==_0x3eb345(0x16e)?window['location'][_0x3eb345(0x1e8)]:'',_0x100930=new URL(_0x3e89d7,_0x4a48aa||void 0x0)[_0x3eb345(0x1d8)],_0x29790b=_0xfa6f45===_0x100930||_0xfa6f45[_0x3eb345(0x207)]('sw-enhance');return console[_0x3eb345(0x13f)](LOG_PREFIX2+_0x3eb345(0x12f)+_0xfa6f45+_0x3eb345(0x1b9)+_0x100930+_0x3eb345(0x1d1)+_0x29790b),_0x29790b;}function ownsCurrentController(_0x4c1c75){const _0x250c5d=_0x347f13;if(typeof navigator===_0x250c5d(0x16e))return![];const _0x119d25=navigator[_0x250c5d(0x15d)]?.['controller'];if(!_0x119d25)return console[_0x250c5d(0x13f)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x119d25[_0x250c5d(0x150)],_0x4c1c75);}async function detectBlockingServiceWorker(_0x375bc6){const _0x3b6a1e=_0x347f13;if(!navigator[_0x3b6a1e(0x15d)])return null;try{const _0x2ed6ac=await navigator['serviceWorker']['getRegistration']('/');console[_0x3b6a1e(0x13f)](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x2ed6ac?.[_0x3b6a1e(0x149)]?.['scriptURL']??_0x3b6a1e(0x189));const _0x4fd3a6=_0x2ed6ac?.[_0x3b6a1e(0x149)]?.[_0x3b6a1e(0x150)];if(!_0x4fd3a6)return null;if(ownsServiceWorker(_0x4fd3a6,_0x375bc6))return null;return _0x4fd3a6;}catch(_0x55a129){return console[_0x3b6a1e(0x152)](LOG_PREFIX2+'\x20detectBlocking\x20error:',_0x55a129),null;}}async function resolveWorker(){const _0x27788b=_0x347f13,_0x880d97=registration??await navigator['serviceWorker']?.[_0x27788b(0x1bd)]('/'),_0x179dde=_0x880d97?.[_0x27788b(0x149)]??_0x880d97?.[_0x27788b(0x1a0)]??_0x880d97?.[_0x27788b(0x16d)]??null;return console[_0x27788b(0x13f)](LOG_PREFIX2+_0x27788b(0x140),_0x179dde?.[_0x27788b(0x150)]??'none',_0x27788b(0x157)+(_0x179dde?.['state']??_0x27788b(0x15f))),_0x179dde;}var LOG_PREFIX3=_0x347f13(0x1fb);function isInitialized(){const _0x4c4f96=_0x347f13;return typeof window!==_0x4c4f96(0x16e)&&window['__enhanceInitialized']===!![];}function setInitialized(_0x1e1d8f){const _0xdaae17=_0x347f13;typeof window!==_0xdaae17(0x16e)&&(window[_0xdaae17(0x1da)]=_0x1e1d8f);}function getOptions(){const _0x2c19e6=_0x347f13;return typeof window!==_0x2c19e6(0x16e)?window[_0x2c19e6(0x12c)]??null:null;}function setOptions(_0x410bc6){const _0x3e159d=_0x347f13;typeof window!==_0x3e159d(0x16e)&&(window[_0x3e159d(0x12c)]=_0x410bc6);}var Enhance={'init'(_0x2295aa){const _0x38bd98=_0x347f13,_0x5b6dad=Date[_0x38bd98(0x14a)]();console['log'](LOG_PREFIX3+_0x38bd98(0x1bb)+_0x5b6dad),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x1d3)+window[_0x38bd98(0x138)]['href']),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x1e5)+document[_0x38bd98(0x13c)]),console[_0x38bd98(0x13f)](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x38bd98(0x18c)](_0x2295aa,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x38bd98(0x16a)),window[_0x38bd98(0x16b)]??createController();setInitialized(!![]),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x159));const _0x28912f=normalizeOptions(_0x2295aa);setOptions(_0x28912f),console['log'](LOG_PREFIX3+_0x38bd98(0x1a5),JSON[_0x38bd98(0x18c)](_0x28912f,null,0x2));const _0x224509=parseUrlParams();console[_0x38bd98(0x13f)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x38bd98(0x18c)](_0x224509,null,0x2));if(_0x224509[_0x38bd98(0x206)])return cleanUrlParam('enhance'),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x203)),createController();if(_0x224509[_0x38bd98(0x1e3)])return console[_0x38bd98(0x13f)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x199)+_0x224509['enhancementUrl']),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x1ed)+_0x224509[_0x38bd98(0x1b6)]),state['enabled']=!![],console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x168)),void loadOverlay({'overlayPath':_0x28912f['overlayPath'],'enableViteHmr':_0x28912f['overlay']['enableViteHmr'],'options':_0x28912f,'onToggle':handleToggle}),console[_0x38bd98(0x13f)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x28912f),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x12a)),createController();return console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x1d9)),console['log'](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x28912f[_0x38bd98(0x1a4)]),console[_0x38bd98(0x13f)](LOG_PREFIX3+_0x38bd98(0x13b)),import.meta['hot']&&(console['log'](LOG_PREFIX3+_0x38bd98(0x1cf)),import.meta[_0x38bd98(0x1fe)]['on']('vite:error',_0x88793d=>{const _0x1ba3eb=_0x38bd98;console[_0x1ba3eb(0x13f)](LOG_PREFIX3+_0x1ba3eb(0x202),_0x88793d),state[_0x1ba3eb(0x1bf)]={'message':_0x88793d[_0x1ba3eb(0x1a8)][_0x1ba3eb(0x1e1)]},updateOverlay();}),import.meta['hot']['on'](_0x38bd98(0x1e7),()=>{const _0x543321=_0x38bd98;state[_0x543321(0x1bf)]&&(console[_0x543321(0x13f)](LOG_PREFIX3+_0x543321(0x19a)),state[_0x543321(0x1bf)]=null,updateOverlay());})),createController();}};function createController(){const _0x55ebe0=_0x347f13,_0x40c985={'enable'(){const _0xf07fa7=_0x4baf,_0x498d53=getOptions();if(!_0x498d53)return;state[_0xf07fa7(0x19c)]=!![],void loadOverlay({'overlayPath':_0x498d53[_0xf07fa7(0x201)],'enableViteHmr':_0x498d53[_0xf07fa7(0x166)][_0xf07fa7(0x1dc)],'options':_0x498d53,'onToggle':handleToggle}),void registerServiceWorker(_0x498d53),void sendConfiguration(),updateOverlay();},'disable'(){const _0x243036=_0x4baf,_0x15909e=getOptions();if(!_0x15909e)return;state[_0x243036(0x19c)]=![],state[_0x243036(0x1f8)]=![],updateOverlay(),void unregisterServiceWorker(_0x15909e[_0x243036(0x1a4)]);},'status'(){const _0xc2c7e5=_0x4baf;return{'enabled':state[_0xc2c7e5(0x19c)],'controlled':state[_0xc2c7e5(0x1f8)]};}};return typeof window!==_0x55ebe0(0x16e)&&(window['__enhanceController']=_0x40c985),_0x40c985;}function handleToggle(){const _0x23dfb4=_0x347f13,_0x5cf269=createController();state[_0x23dfb4(0x19c)]?_0x5cf269[_0x23dfb4(0x146)]():_0x5cf269['enable']();}function parseUrlParams(){const _0x521935=_0x347f13,_0x53cebd=new URL(window[_0x521935(0x138)][_0x521935(0x1d8)]),_0x37a80a=_0x53cebd[_0x521935(0x19d)]['get'](_0x521935(0x1db))?.[_0x521935(0x1b5)](),_0x54807d=_0x53cebd[_0x521935(0x19d)][_0x521935(0x132)](_0x521935(0x1c4)),_0x5803a2=_0x53cebd[_0x521935(0x19d)][_0x521935(0x132)](_0x521935(0x1c1));return{'hasEnhancement':Boolean(_0x54807d||_0x5803a2),'explicitDisable':_0x37a80a==='0'||_0x37a80a==='false'||_0x37a80a==='off','enhancementUrl':_0x54807d,'enhancementId':_0x5803a2};}function cleanUrlParam(_0x4dec3d){const _0x3d8e8f=_0x347f13,_0x4c1ebb=new URL(window['location'][_0x3d8e8f(0x1d8)]);_0x4c1ebb[_0x3d8e8f(0x19d)][_0x3d8e8f(0x1d2)](_0x4dec3d)&&(_0x4c1ebb[_0x3d8e8f(0x19d)][_0x3d8e8f(0x1a1)](_0x4dec3d),window[_0x3d8e8f(0x19f)][_0x3d8e8f(0x1c5)](null,document[_0x3d8e8f(0x193)],_0x4c1ebb[_0x3d8e8f(0x17d)]()));}var package_default={'name':_0x347f13(0x12b),'version':_0x347f13(0x19b),'type':_0x347f13(0x18a),'description':_0x347f13(0x1a3),'license':'MIT','main':_0x347f13(0x179),'module':'./dist/index.js','types':'./dist/index.d.ts','exports':{'.':{'types':'./dist/index.d.ts','import':_0x347f13(0x182),'require':_0x347f13(0x179)},'./vite':{'types':_0x347f13(0x1ab),'import':_0x347f13(0x14f)}},'files':[_0x347f13(0x15c),_0x347f13(0x178),'enhance.config.sample.json'],'bin':{'enhance-sandbox':_0x347f13(0x1a9)},'scripts':{'typecheck':_0x347f13(0x163),'dev':_0x347f13(0x1a2),'dev:build':_0x347f13(0x1ad),'dev:staging':_0x347f13(0x173),'dev:staging:build':_0x347f13(0x14b),'build':_0x347f13(0x17a),'build:release':_0x347f13(0x131),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':'^11.1.0','zod':_0x347f13(0x1d0)},'devDependencies':{'@types/node':_0x347f13(0x141),'javascript-obfuscator':_0x347f13(0x135),'tsup':_0x347f13(0x1c0),'vite':_0x347f13(0x15e)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH=_0x347f13(0x1e0),DEFAULT_RUNTIME_PATH=_0x347f13(0x139),PACKAGE_VERSION=typeof package_default[_0x347f13(0x180)]==='string'?package_default[_0x347f13(0x180)]:_0x347f13(0x16c);function normalizeAssetPath(_0x37afc8){const _0xd06f22=_0x347f13;if(!_0x37afc8)return _0x37afc8;if(_0x37afc8[_0xd06f22(0x1df)](_0xd06f22(0x1f3))||_0x37afc8[_0xd06f22(0x1df)](_0xd06f22(0x183)))return _0x37afc8;const _0x5b8c5e=_0x37afc8[_0xd06f22(0x16f)](/^\.\//,'');return _0x5b8c5e[_0xd06f22(0x1df)]('/')?_0x5b8c5e:'/'+_0x5b8c5e;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x4d19eb){const _0x2c9fcd=_0x347f13;return Enhance[_0x2c9fcd(0x192)](_0x4d19eb);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){const _0x99d97b=_0x347f13;return Enhance2[_0x99d97b(0x1ca)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
function _0x3550(_0x435e0f,_0x49f84c){_0x435e0f=_0x435e0f-0x15b;const _0x2a973f=_0x2a97();let _0x35504a=_0x2a973f[_0x435e0f];return _0x35504a;}const _0x36099e=_0x3550;(function(_0xa7f983,_0x46edd7){const _0x153a2b=_0x3550,_0x2b5ece=_0xa7f983();while(!![]){try{const _0x221ade=parseInt(_0x153a2b(0x229))/0x1+-parseInt(_0x153a2b(0x17f))/0x2*(-parseInt(_0x153a2b(0x1bc))/0x3)+parseInt(_0x153a2b(0x1b3))/0x4*(parseInt(_0x153a2b(0x1e7))/0x5)+parseInt(_0x153a2b(0x213))/0x6+-parseInt(_0x153a2b(0x192))/0x7+-parseInt(_0x153a2b(0x1d4))/0x8+-parseInt(_0x153a2b(0x181))/0x9;if(_0x221ade===_0x46edd7)break;else _0x2b5ece['push'](_0x2b5ece['shift']());}catch(_0x3ed1d2){_0x2b5ece['push'](_0x2b5ece['shift']());}}}(_0x2a97,0xa55be));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!=='undefined'?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x36099e(0x1fe),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x36099e(0x1ab)?__ENHANCE_DEFAULT_BACKEND_URL__:'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x36099e(0x1ab)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x36099e(0x188)](_0x36099e(0x223),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x5d878f){const _0x32d07d=_0x36099e;if(!_0x5d878f[_0x32d07d(0x1d5)])throw new Error('[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()');const _0x293fcd=_0x5d878f[_0x32d07d(0x1ff)]??{};return{'publishableKey':_0x5d878f[_0x32d07d(0x1d5)],'callbackBypass':_0x5d878f[_0x32d07d(0x20b)]??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x293fcd[_0x32d07d(0x184)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x32d07d(0x1ae),'swPath':_0x32d07d(0x176),'overlayPath':_0x293fcd[_0x32d07d(0x1e1)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x32d07d(0x225),'security':_0x293fcd[_0x32d07d(0x19d)]??'permissive','backendUrl':_0x293fcd['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x150712=_0x36099e;try{const _0x34b48b=new URLSearchParams(window['location'][_0x150712(0x21f)]);return _0x34b48b[_0x150712(0x217)](_0x150712(0x206))?.[_0x150712(0x1eb)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x402bc0){const _0x29313d=_0x36099e;console['log'](LOG_PREFIX+_0x29313d(0x230)),console[_0x29313d(0x188)](LOG_PREFIX+_0x29313d(0x221)+_0x402bc0[_0x29313d(0x1e1)]),console[_0x29313d(0x188)](LOG_PREFIX+_0x29313d(0x195)+_0x402bc0['enableViteHmr']),currentOptions=_0x402bc0[_0x29313d(0x18f)],toggleHandler=_0x402bc0[_0x29313d(0x1d1)];if(overlayController){console[_0x29313d(0x188)](LOG_PREFIX+_0x29313d(0x1df)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x29313d(0x188)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x29313d(0x188)](LOG_PREFIX+_0x29313d(0x170)),overlayLoadPromise=doLoadOverlay(_0x402bc0);try{await overlayLoadPromise,console[_0x29313d(0x188)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x38074d){console[_0x29313d(0x1a7)](LOG_PREFIX+_0x29313d(0x1c5),_0x38074d);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x2dfba1){const _0x5348ba=_0x36099e;console[_0x5348ba(0x188)](LOG_PREFIX+_0x5348ba(0x160));if(typeof window===_0x5348ba(0x1ab)){console[_0x5348ba(0x188)](LOG_PREFIX+_0x5348ba(0x210));return;}if(window[_0x5348ba(0x162)]){console['log'](LOG_PREFIX+_0x5348ba(0x1b7)),overlayController=window[_0x5348ba(0x162)];return;}console['log'](LOG_PREFIX+_0x5348ba(0x1d6));try{_0x2dfba1[_0x5348ba(0x22f)]&&(console[_0x5348ba(0x188)](LOG_PREFIX+_0x5348ba(0x211)),await setupRemoteHMR(_0x2dfba1[_0x5348ba(0x1e1)]));console[_0x5348ba(0x188)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x2dfba1[_0x5348ba(0x1e1)]);const _0x168b2c=Date['now'](),_0x4b3429=await import(_0x2dfba1[_0x5348ba(0x1e1)]);console[_0x5348ba(0x188)](LOG_PREFIX+_0x5348ba(0x1d9)+(Date['now']()-_0x168b2c)+'ms'),console[_0x5348ba(0x188)](LOG_PREFIX+_0x5348ba(0x180),Object[_0x5348ba(0x1c6)](_0x4b3429));if(typeof _0x4b3429?.['createOverlay']!=='function'){console[_0x5348ba(0x1a7)](LOG_PREFIX+_0x5348ba(0x17a)),console[_0x5348ba(0x1a7)](LOG_PREFIX+_0x5348ba(0x1bf),Object[_0x5348ba(0x1c6)](_0x4b3429));return;}console[_0x5348ba(0x188)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0xe289a7=_0x4b3429[_0x5348ba(0x18c)]();console[_0x5348ba(0x188)](LOG_PREFIX+_0x5348ba(0x1ee),_0xe289a7),overlayController=_0xe289a7,window[_0x5348ba(0x162)]=_0xe289a7,_0xe289a7[_0x5348ba(0x1d1)](_0x2dfba1['onToggle']),console[_0x5348ba(0x188)](LOG_PREFIX+_0x5348ba(0x182)),console[_0x5348ba(0x188)](LOG_PREFIX+_0x5348ba(0x17e)),updateOverlay();}catch(_0x3dfcd8){console[_0x5348ba(0x1a7)](LOG_PREFIX+_0x5348ba(0x1b9),_0x3dfcd8);}}function updateOverlay(){const _0x2e7228=_0x36099e;console[_0x2e7228(0x188)](LOG_PREFIX+_0x2e7228(0x163)),console[_0x2e7228(0x188)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console[_0x2e7228(0x188)](LOG_PREFIX+_0x2e7228(0x1f6)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x2e7228(0x188)](LOG_PREFIX+_0x2e7228(0x19a));return;}const _0x15023b=composeOverlayState(currentOptions);console[_0x2e7228(0x188)](LOG_PREFIX+_0x2e7228(0x1c3),JSON['stringify'](_0x15023b,null,0x2)),overlayController[_0x2e7228(0x1f0)](_0x15023b),console[_0x2e7228(0x188)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x110fb0){const _0x2216d0=_0x36099e,_0x534a25=getEnhancementId();return console[_0x2216d0(0x188)](LOG_PREFIX+_0x2216d0(0x1ef)+_0x534a25),console['log'](LOG_PREFIX+_0x2216d0(0x227)+state[_0x2216d0(0x179)]),console[_0x2216d0(0x188)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x2216d0(0x215)]),{'enhancementId':_0x534a25,'enabled':state[_0x2216d0(0x179)],'controlled':state['controlled'],'overlayPosition':_0x110fb0[_0x2216d0(0x1a4)][_0x2216d0(0x18a)],'securityMode':_0x110fb0['security'],'backendBaseUrl':_0x110fb0[_0x2216d0(0x1ba)],'appError':state[_0x2216d0(0x1dd)]};}async function setupRemoteHMR(_0x4cc3b8){const _0x52512f=_0x36099e;console[_0x52512f(0x188)](LOG_PREFIX+_0x52512f(0x18e)+_0x4cc3b8);if(typeof window===_0x52512f(0x1ab))return;try{const _0x5a7bf1=new URL(_0x4cc3b8,window['location'][_0x52512f(0x168)]),_0x5280a7=_0x5a7bf1[_0x52512f(0x168)];console[_0x52512f(0x188)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x5280a7+',\x20page\x20origin:\x20'+window[_0x52512f(0x1b0)][_0x52512f(0x168)]);if(_0x5280a7===window['location'][_0x52512f(0x168)]){console['log'](LOG_PREFIX+_0x52512f(0x22c));return;}console['log'](LOG_PREFIX+_0x52512f(0x1a1)),await ensureReactRefreshPreamble(_0x5280a7),await ensureViteClient(_0x5280a7),console[_0x52512f(0x188)](LOG_PREFIX+_0x52512f(0x1cd));}catch(_0x2a7c68){console[_0x52512f(0x219)](LOG_PREFIX+_0x52512f(0x1fd),_0x2a7c68);}}async function ensureReactRefreshPreamble(_0x18ad6b){const _0x5a5027=_0x36099e;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x18ad6b)){console[_0x5a5027(0x188)](LOG_PREFIX+_0x5a5027(0x1b8)+_0x18ad6b);return;}console[_0x5a5027(0x188)](LOG_PREFIX+_0x5a5027(0x196)+_0x18ad6b+_0x5a5027(0x16d));const _0x1fb9aa=await import(_0x18ad6b+_0x5a5027(0x20e)),_0x45c4cf=_0x1fb9aa&&typeof _0x1fb9aa===_0x5a5027(0x17c)&&_0x5a5027(0x193)in _0x1fb9aa?_0x1fb9aa[_0x5a5027(0x193)]:_0x1fb9aa;if(!isRefreshRuntime(_0x45c4cf)){console[_0x5a5027(0x219)](LOG_PREFIX+_0x5a5027(0x228));return;}_0x45c4cf['injectIntoGlobalHook'](window),window[_0x5a5027(0x1a6)]=()=>{},window[_0x5a5027(0x21d)]=()=>_0x1099b1=>_0x1099b1,window[_0x5a5027(0x1e8)]=!![],window[_0x5a5027(0x214)][_0x5a5027(0x20f)](_0x18ad6b),console[_0x5a5027(0x188)](LOG_PREFIX+_0x5a5027(0x1f1)+_0x18ad6b);}async function ensureViteClient(_0x928efb){const _0x34b08f=_0x36099e;window[_0x34b08f(0x1a5)]??=new Set();if(window[_0x34b08f(0x1a5)][_0x34b08f(0x1a9)](_0x928efb)){console[_0x34b08f(0x188)](LOG_PREFIX+_0x34b08f(0x164)+_0x928efb);return;}console[_0x34b08f(0x188)](LOG_PREFIX+_0x34b08f(0x167)+_0x928efb+_0x34b08f(0x16d)),await import(_0x928efb+_0x34b08f(0x22e)),window['__viteHMRLoaded'][_0x34b08f(0x20f)](_0x928efb),console[_0x34b08f(0x188)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x928efb);}function isRefreshRuntime(_0x4c77e9){const _0x18d5b2=_0x36099e;return typeof _0x4c77e9===_0x18d5b2(0x17c)&&_0x4c77e9!==null&&'injectIntoGlobalHook'in _0x4c77e9&&typeof _0x4c77e9[_0x18d5b2(0x208)]==='function';}var WORKER_MESSAGE_CONFIG=_0x36099e(0x1fc),WORKER_MESSAGE_DISABLE=_0x36099e(0x1d2),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x21d36a){const _0x433eb5=_0x36099e;console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x1ed)+_0x21d36a[_0x433eb5(0x1b4)]);if(!(_0x433eb5(0x165)in navigator)){console[_0x433eb5(0x219)](LOG_PREFIX2+_0x433eb5(0x21c));return;}console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x1bb));const _0x10c7fb=navigator[_0x433eb5(0x165)][_0x433eb5(0x191)];console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x19b),_0x10c7fb?.[_0x433eb5(0x220)]??_0x433eb5(0x19e)),console[_0x433eb5(0x188)](LOG_PREFIX2+'\x20Controller\x20state:',_0x10c7fb?.['state']??_0x433eb5(0x1e6));const _0x4c106a=!!_0x10c7fb;currentOptions2=_0x21d36a,console[_0x433eb5(0x188)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0xac7ab7=await detectBlockingServiceWorker(_0x21d36a[_0x433eb5(0x1b4)]);if(_0xac7ab7){console['error'](LOG_PREFIX2+_0x433eb5(0x187)+_0xac7ab7),console[_0x433eb5(0x1a7)](LOG_PREFIX2+_0x433eb5(0x1c8));return;}console[_0x433eb5(0x188)](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x1e5)+_0x21d36a['swPath']+_0x433eb5(0x22b)),registration=await navigator[_0x433eb5(0x165)][_0x433eb5(0x200)](_0x21d36a[_0x433eb5(0x1b4)],{'scope':'/'}),console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x1fb),{'scope':registration[_0x433eb5(0x1c1)],'active':registration[_0x433eb5(0x22a)]?.['scriptURL'],'waiting':registration[_0x433eb5(0x1e9)]?.['scriptURL'],'installing':registration['installing']?.[_0x433eb5(0x220)]}),console['log'](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0x3040e5=await navigator[_0x433eb5(0x165)][_0x433eb5(0x224)];console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x194),_0x3040e5[_0x433eb5(0x22a)]?.[_0x433eb5(0x220)]);const _0x4e1699=ownsCurrentController(_0x21d36a[_0x433eb5(0x1b4)]);state[_0x433eb5(0x215)]=_0x4e1699,console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x1f7)+_0x4e1699),console['log'](LOG_PREFIX2+_0x433eb5(0x1c2),navigator[_0x433eb5(0x165)][_0x433eb5(0x191)]?.[_0x433eb5(0x220)]??_0x433eb5(0x19e));if(!_0x4c106a&&!navigator[_0x433eb5(0x165)][_0x433eb5(0x191)]){console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x1d3)),window['location'][_0x433eb5(0x1e0)]();return;}console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x183)),await sendConfiguration();if(state[_0x433eb5(0x179)]){const _0x17a4cb=document[_0x433eb5(0x1f8)]('[data-enhance-runtime-bootstrap]')!==null;console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x1c0)+_0x17a4cb);if(!_0x17a4cb){console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x207)),window[_0x433eb5(0x1b0)]['reload']();return;}}console[_0x433eb5(0x188)](LOG_PREFIX2+_0x433eb5(0x161)),updateOverlay(),console['log'](LOG_PREFIX2+_0x433eb5(0x1ce));}catch(_0x9ca3d7){console[_0x433eb5(0x1a7)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x9ca3d7);}}async function sendConfiguration(){const _0x169b26=_0x36099e;console[_0x169b26(0x188)](LOG_PREFIX2+_0x169b26(0x1b5)),console[_0x169b26(0x188)](LOG_PREFIX2+_0x169b26(0x1ca)+state[_0x169b26(0x179)]+_0x169b26(0x1f3)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x169b26(0x188)](LOG_PREFIX2+_0x169b26(0x186));return;}const _0x31ee40=await resolveWorker();if(!_0x31ee40){console['warn'](LOG_PREFIX2+_0x169b26(0x173));return;}const _0x3d8ae2={'publishableKey':currentOptions2[_0x169b26(0x1d5)],'callbackBypass':currentOptions2[_0x169b26(0x20b)],'securityMode':currentOptions2['security']};console[_0x169b26(0x188)](LOG_PREFIX2+_0x169b26(0x1d8),JSON['stringify'](_0x3d8ae2,null,0x2)),_0x31ee40[_0x169b26(0x234)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x3d8ae2}),console[_0x169b26(0x188)](LOG_PREFIX2+_0x169b26(0x1c9));}async function unregisterServiceWorker(_0x3ad352){const _0x5f1c63=_0x36099e;console[_0x5f1c63(0x188)](LOG_PREFIX2+_0x5f1c63(0x231));if(!('serviceWorker'in navigator)){console[_0x5f1c63(0x188)](LOG_PREFIX2+_0x5f1c63(0x21a));return;}try{const _0x110b6e=registration??await navigator[_0x5f1c63(0x165)][_0x5f1c63(0x1af)]('/');if(!_0x110b6e){console['log'](LOG_PREFIX2+_0x5f1c63(0x22d));return;}console[_0x5f1c63(0x188)](LOG_PREFIX2+_0x5f1c63(0x1ea),{'scope':_0x110b6e[_0x5f1c63(0x1c1)],'active':_0x110b6e['active']?.[_0x5f1c63(0x220)],'waiting':_0x110b6e[_0x5f1c63(0x1e9)]?.[_0x5f1c63(0x220)],'installing':_0x110b6e[_0x5f1c63(0x1cb)]?.[_0x5f1c63(0x220)]});const _0x191961=[_0x110b6e[_0x5f1c63(0x22a)]?.[_0x5f1c63(0x220)],_0x110b6e[_0x5f1c63(0x1e9)]?.[_0x5f1c63(0x220)],_0x110b6e[_0x5f1c63(0x1cb)]?.[_0x5f1c63(0x220)]],_0x5badf=_0x191961[_0x5f1c63(0x1a8)](_0x3a2b01=>_0x3a2b01&&ownsServiceWorker(_0x3a2b01,_0x3ad352));if(!_0x5badf){console[_0x5f1c63(0x188)](LOG_PREFIX2+_0x5f1c63(0x203));return;}_0x110b6e[_0x5f1c63(0x22a)]&&(console[_0x5f1c63(0x188)](LOG_PREFIX2+_0x5f1c63(0x1b2)),_0x110b6e[_0x5f1c63(0x22a)][_0x5f1c63(0x234)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x5f1c63(0x188)](LOG_PREFIX2+'\x20Unregistering\x20SW...'),await _0x110b6e['unregister'](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x5f1c63(0x1f5));}catch(_0x19527f){console[_0x5f1c63(0x1a7)](LOG_PREFIX2+_0x5f1c63(0x232),_0x19527f);}}function ownsServiceWorker(_0x2ab02c,_0x26dc81){const _0x2b99ec=_0x36099e,_0x20397e=typeof window!=='undefined'?window[_0x2b99ec(0x1b0)]['origin']:'',_0x4ef561=new URL(_0x26dc81,_0x20397e||void 0x0)['href'],_0x13d631=_0x2ab02c===_0x4ef561||_0x2ab02c[_0x2b99ec(0x15d)](_0x2b99ec(0x209));return console['log'](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x2ab02c+_0x2b99ec(0x1b6)+_0x4ef561+',\x20owns='+_0x13d631),_0x13d631;}function ownsCurrentController(_0x4a681e){const _0x2c975a=_0x36099e;if(typeof navigator===_0x2c975a(0x1ab))return![];const _0x26085b=navigator[_0x2c975a(0x165)]?.[_0x2c975a(0x191)];if(!_0x26085b)return console[_0x2c975a(0x188)](LOG_PREFIX2+_0x2c975a(0x204)),![];return ownsServiceWorker(_0x26085b[_0x2c975a(0x220)],_0x4a681e);}function _0x2a97(){const _0xa2483f=['onToggle','enhance:disable','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','3572088wpHpKZ','publishableKey','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','enhancementUrl','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Module\x20imported\x20in\x20','__enhanceInitialized','runtimeURL','startsWith','appError','^11.1.0','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','reload','overlayPath','title','toString','./dev/vite/index.d.ts','\x20Registering\x20SW\x20at\x20','N/A','25OwoENa','__vite_plugin_react_preamble_installed__','waiting','\x20Found\x20registration:','trim','^24.10.1','\x20swPath:\x20','\x20Controller\x20created:','\x20composeOverlayState\x20-\x20enhancementId:\x20','update','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','https://',',\x20currentOptions:\x20','[Enhance\x20Runtime]','\x20SW\x20unregistered\x20successfully','\x20currentOptions\x20exists:\x20','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','querySelector','readyState','false','\x20Registration\x20returned:','enhance:configure','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','https://assets.enhancelabs.ai/overlay.js','__development','register','serviceWorkerURL','\x20Document\x20readyState:\x20','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20No\x20current\x20controller','\x20init()\x20complete\x20-\x20normal\x20mode','enhancement','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','injectIntoGlobalHook','sw-enhance','vite:beforeUpdate','callbackBypass','state','stringify','/@react-refresh','add','\x20No\x20window\x20object\x20-\x20skipping','\x20Setting\x20up\x20remote\x20HMR...','enhance','963234traxHb','__enhanceReactRefreshInstalledOrigins','controlled','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','get','replace','warn','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20Vite\x20error\x20detected:','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','$RefreshSig$','delete','search','scriptURL','\x20overlayPath:\x20','0.0.0','[Enhance\x20Config]\x20Build-time\x20defaults:','ready','/assets/enhance-runtime.js','replaceState','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Invalid\x20React\x20Refresh\x20runtime','484866qIfbMl','active','\x20with\x20scope\x20\x27/\x27...','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','/@vite/client','enableViteHmr','\x20loadOverlay()\x20called','\x20unregisterServiceWorker()\x20called','\x20Failed\x20to\x20unregister\x20service\x20worker:','searchParams','postMessage','disable','\x20detectBlocking\x20-\x20existing\x20registration:','includes','__enhanceOptions','./dev/index.js','\x20doLoadOverlay()\x20starting...','\x20Updating\x20overlay...','__enhanceOverlay','\x20updateOverlay()\x20called','\x20Vite\x20client\x20already\x20loaded\x20for\x20','serviceWorker','href','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','origin','\x20Raw\x20options:','^3.22.4','off','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','...','./dev/index.d.ts','hasEnhancement','\x20Starting\x20fresh\x20overlay\x20load...','\x20Normalized\x20options:','\x20First\x20initialization','\x20No\x20service\x20worker\x20active\x20to\x20configure','err','explicitDisable','/sw-enhance.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','enhancementId','enabled','\x20Module\x20missing\x20createOverlay\x20export!','module','object','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20Calling\x20updateOverlay()...','3702qfhHWE','\x20Module\x20exports:','11863260GSQGNo','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Sending\x20customer\x20configuration...','enableOverlayHmr','\x20Unregistering\x20any\x20existing\x20SW...','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20BLOCKING\x20SW\x20detected:\x20','log','^4.1.1','position','^8.5.1','createOverlay','history','\x20setupRemoteHMR()\x20for\x20','options','toLowerCase','controller','1522248WwurVE','default','\x20SW\x20ready!\x20Active:','\x20enableViteHmr:\x20','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','MIT','\x20Enhancement\x20mode\x20ENABLED','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Current\x20controller:','\x20resolveWorker:','security','none','\x20init()\x20complete\x20-\x20enhancement\x20mode','version','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Starting\x20SW\x20registration\x20(async)...','enable','overlay','__viteHMRLoaded','$RefreshReg$','error','some','has','dev/','undefined','\x20enhancementUrl:\x20','@enhance-eng/sandbox','info','getRegistration','location','init','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','818988XBHLgc','swPath','\x20sendConfiguration()\x20called',',\x20expected=','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Failed\x20to\x20import/create\x20overlay:','backendUrl','\x20Service\x20workers\x20supported','1605RHybzo','./dev/vite/index.js','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Available\x20exports:','\x20Enhancement\x20detection:\x20wasEnhanced=','scope','\x20Current\x20controller\x20after\x20ready:','\x20Updating\x20overlay\x20with\x20state:','^7.2.4','\x20loadOverlay()\x20failed:','keys','\x20init()\x20called\x20at\x20','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20Config\x20sent\x20to\x20SW','\x20state.enabled:\x20','installing','\x20enhancementId:\x20','\x20HMR\x20setup\x20complete','\x20registerServiceWorker()\x20complete','tsc\x20--noEmit','__enhanceController'];_0x2a97=function(){return _0xa2483f;};return _0x2a97();}async function detectBlockingServiceWorker(_0x3a6eaa){const _0x2233f1=_0x36099e;if(!navigator[_0x2233f1(0x165)])return null;try{const _0x51bf55=await navigator[_0x2233f1(0x165)][_0x2233f1(0x1af)]('/');console[_0x2233f1(0x188)](LOG_PREFIX2+_0x2233f1(0x15c),_0x51bf55?.[_0x2233f1(0x22a)]?.[_0x2233f1(0x220)]??_0x2233f1(0x19e));const _0x55034e=_0x51bf55?.[_0x2233f1(0x22a)]?.['scriptURL'];if(!_0x55034e)return null;if(ownsServiceWorker(_0x55034e,_0x3a6eaa))return null;return _0x55034e;}catch(_0x4f7070){return console['error'](LOG_PREFIX2+'\x20detectBlocking\x20error:',_0x4f7070),null;}}async function resolveWorker(){const _0x70b879=_0x36099e,_0x4c5a51=registration??await navigator[_0x70b879(0x165)]?.[_0x70b879(0x1af)]('/'),_0x4943c9=_0x4c5a51?.[_0x70b879(0x22a)]??_0x4c5a51?.[_0x70b879(0x1e9)]??_0x4c5a51?.[_0x70b879(0x1cb)]??null;return console[_0x70b879(0x188)](LOG_PREFIX2+_0x70b879(0x19c),_0x4943c9?.[_0x70b879(0x220)]??_0x70b879(0x19e),'state:\x20'+(_0x4943c9?.[_0x70b879(0x20c)]??'N/A')),_0x4943c9;}var LOG_PREFIX3=_0x36099e(0x1f4);function isInitialized(){const _0x5d6f14=_0x36099e;return typeof window!==_0x5d6f14(0x1ab)&&window[_0x5d6f14(0x1da)]===!![];}function setInitialized(_0x101afb){const _0x4a5140=_0x36099e;typeof window!==_0x4a5140(0x1ab)&&(window[_0x4a5140(0x1da)]=_0x101afb);}function getOptions(){const _0x2e70a9=_0x36099e;return typeof window!==_0x2e70a9(0x1ab)?window[_0x2e70a9(0x15e)]??null:null;}function setOptions(_0x171868){const _0x4f054f=_0x36099e;typeof window!==_0x4f054f(0x1ab)&&(window[_0x4f054f(0x15e)]=_0x171868);}var Enhance={'init'(_0x231b0b){const _0x3dfb6b=_0x36099e,_0xaf1c0d=Date['now']();console['log'](LOG_PREFIX3+_0x3dfb6b(0x1c7)+_0xaf1c0d),console[_0x3dfb6b(0x188)](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window[_0x3dfb6b(0x1b0)][_0x3dfb6b(0x166)]),console['log'](LOG_PREFIX3+_0x3dfb6b(0x202)+document[_0x3dfb6b(0x1f9)]),console['log'](LOG_PREFIX3+_0x3dfb6b(0x169),JSON[_0x3dfb6b(0x20d)](_0x231b0b,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x3dfb6b(0x1be)),window[_0x3dfb6b(0x1d0)]??createController();setInitialized(!![]),console[_0x3dfb6b(0x188)](LOG_PREFIX3+_0x3dfb6b(0x172));const _0x3e7b2b=normalizeOptions(_0x231b0b);setOptions(_0x3e7b2b),console['log'](LOG_PREFIX3+_0x3dfb6b(0x171),JSON[_0x3dfb6b(0x20d)](_0x3e7b2b,null,0x2));const _0x48a44f=parseUrlParams();console['log'](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x3dfb6b(0x20d)](_0x48a44f,null,0x2));if(_0x48a44f[_0x3dfb6b(0x175)])return cleanUrlParam('enhance'),console[_0x3dfb6b(0x188)](LOG_PREFIX3+_0x3dfb6b(0x16c)),createController();if(_0x48a44f[_0x3dfb6b(0x16f)])return console[_0x3dfb6b(0x188)](LOG_PREFIX3+_0x3dfb6b(0x198)),console[_0x3dfb6b(0x188)](LOG_PREFIX3+_0x3dfb6b(0x1ac)+_0x48a44f['enhancementUrl']),console[_0x3dfb6b(0x188)](LOG_PREFIX3+_0x3dfb6b(0x1cc)+_0x48a44f[_0x3dfb6b(0x178)]),state[_0x3dfb6b(0x179)]=!![],console[_0x3dfb6b(0x188)](LOG_PREFIX3+'\x20Starting\x20overlay\x20load\x20(async)...'),void loadOverlay({'overlayPath':_0x3e7b2b['overlayPath'],'enableViteHmr':_0x3e7b2b[_0x3dfb6b(0x1a4)]['enableViteHmr'],'options':_0x3e7b2b,'onToggle':handleToggle}),console[_0x3dfb6b(0x188)](LOG_PREFIX3+_0x3dfb6b(0x1a2)),void registerServiceWorker(_0x3e7b2b),console[_0x3dfb6b(0x188)](LOG_PREFIX3+_0x3dfb6b(0x19f)),createController();return console[_0x3dfb6b(0x188)](LOG_PREFIX3+_0x3dfb6b(0x216)),console[_0x3dfb6b(0x188)](LOG_PREFIX3+_0x3dfb6b(0x185)),void unregisterServiceWorker(_0x3e7b2b[_0x3dfb6b(0x1b4)]),console[_0x3dfb6b(0x188)](LOG_PREFIX3+_0x3dfb6b(0x205)),import.meta.hot&&(console[_0x3dfb6b(0x188)](LOG_PREFIX3+_0x3dfb6b(0x17d)),import.meta.hot['on']('vite:error',_0x264021=>{const _0xf84f36=_0x3dfb6b;console[_0xf84f36(0x188)](LOG_PREFIX3+_0xf84f36(0x21b),_0x264021),state[_0xf84f36(0x1dd)]={'message':_0x264021[_0xf84f36(0x174)]['message']},updateOverlay();}),import.meta.hot['on'](_0x3dfb6b(0x20a),()=>{const _0x372da6=_0x3dfb6b;state[_0x372da6(0x1dd)]&&(console[_0x372da6(0x188)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state[_0x372da6(0x1dd)]=null,updateOverlay());})),createController();}};function createController(){const _0x2d1df0=_0x36099e,_0x28c808={'enable'(){const _0x163afa=_0x3550,_0x5b8805=getOptions();if(!_0x5b8805)return;state[_0x163afa(0x179)]=!![],void loadOverlay({'overlayPath':_0x5b8805[_0x163afa(0x1e1)],'enableViteHmr':_0x5b8805[_0x163afa(0x1a4)][_0x163afa(0x22f)],'options':_0x5b8805,'onToggle':handleToggle}),void registerServiceWorker(_0x5b8805),void sendConfiguration(),updateOverlay();},'disable'(){const _0x1b60a4=_0x3550,_0x3c45c3=getOptions();if(!_0x3c45c3)return;state[_0x1b60a4(0x179)]=![],state[_0x1b60a4(0x215)]=![],updateOverlay(),void unregisterServiceWorker(_0x3c45c3[_0x1b60a4(0x1b4)]);},'status'(){const _0x37d93c=_0x3550;return{'enabled':state[_0x37d93c(0x179)],'controlled':state[_0x37d93c(0x215)]};}};return typeof window!==_0x2d1df0(0x1ab)&&(window[_0x2d1df0(0x1d0)]=_0x28c808),_0x28c808;}function handleToggle(){const _0x28230f=_0x36099e,_0x5196fd=createController();state['enabled']?_0x5196fd[_0x28230f(0x15b)]():_0x5196fd[_0x28230f(0x1a3)]();}function parseUrlParams(){const _0x43fe48=_0x36099e,_0x5f1973=new URL(window['location'][_0x43fe48(0x166)]),_0x226272=_0x5f1973['searchParams']['get'](_0x43fe48(0x212))?.[_0x43fe48(0x190)](),_0x3e8a68=_0x5f1973[_0x43fe48(0x233)][_0x43fe48(0x217)](_0x43fe48(0x1d7)),_0x9bef40=_0x5f1973[_0x43fe48(0x233)][_0x43fe48(0x217)]('enhancement');return{'hasEnhancement':Boolean(_0x3e8a68||_0x9bef40),'explicitDisable':_0x226272==='0'||_0x226272===_0x43fe48(0x1fa)||_0x226272===_0x43fe48(0x16b),'enhancementUrl':_0x3e8a68,'enhancementId':_0x9bef40};}function cleanUrlParam(_0x5e172e){const _0x9f6a36=_0x36099e,_0x44491d=new URL(window[_0x9f6a36(0x1b0)]['href']);_0x44491d[_0x9f6a36(0x233)][_0x9f6a36(0x1a9)](_0x5e172e)&&(_0x44491d['searchParams'][_0x9f6a36(0x21e)](_0x5e172e),window[_0x9f6a36(0x18d)][_0x9f6a36(0x226)](null,document[_0x9f6a36(0x1e2)],_0x44491d[_0x9f6a36(0x1e3)]()));}var package_default={'name':_0x36099e(0x1ad),'version':'0.3.20','type':_0x36099e(0x17b),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x36099e(0x197),'main':'./dev/index.js','module':_0x36099e(0x15f),'types':'./dev/index.d.ts','exports':{'.':{'types':_0x36099e(0x16e),'import':_0x36099e(0x15f)},'./vite':{'types':_0x36099e(0x1e4),'import':_0x36099e(0x1bd)}},'files':[_0x36099e(0x1aa)],'bin':{'enhance-sandbox':'./dev/cli.js'},'scripts':{'typecheck':_0x36099e(0x1cf),'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':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','build':_0x36099e(0x199),'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':_0x36099e(0x177),'version':'bun\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x36099e(0x1de),'zod':_0x36099e(0x16a)},'devDependencies':{'@types/node':_0x36099e(0x1ec),'javascript-obfuscator':_0x36099e(0x189),'tsup':_0x36099e(0x18b),'vite':_0x36099e(0x1c4)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH=_0x36099e(0x176),DEFAULT_RUNTIME_PATH=_0x36099e(0x225),PACKAGE_VERSION=typeof package_default[_0x36099e(0x1a0)]==='string'?package_default[_0x36099e(0x1a0)]:_0x36099e(0x222);function normalizeAssetPath(_0xace22d){const _0x6c0ec8=_0x36099e;if(!_0xace22d)return _0xace22d;if(_0xace22d[_0x6c0ec8(0x1dc)]('http://')||_0xace22d[_0x6c0ec8(0x1dc)](_0x6c0ec8(0x1f2)))return _0xace22d;const _0x1d1eb0=_0xace22d[_0x6c0ec8(0x218)](/^\.\//,'');return _0x1d1eb0[_0x6c0ec8(0x1dc)]('/')?_0x1d1eb0:'/'+_0x1d1eb0;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x56f0f3){const _0x4fbca5=_0x36099e;return Enhance[_0x4fbca5(0x1b1)](_0x56f0f3);},'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 _0x4ce1df=_0x36099e;return Enhance2[_0x4ce1df(0x201)]();}function runtimeURL(){const _0x28d265=_0x36099e;return Enhance2[_0x28d265(0x1db)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
package/dist/sw-enhance.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(_0x305083,_0x6c87a5){const _0x5c9137=_0x2b38,_0x1485b4=_0x305083();while(!![]){try{const _0xd657f2=parseInt(_0x5c9137(0x187))/0x1+-parseInt(_0x5c9137(0x1c7))/0x2+-parseInt(_0x5c9137(0x1ec))/0x3*(parseInt(_0x5c9137(0x133))/0x4)+parseInt(_0x5c9137(0x17f))/0x5+-parseInt(_0x5c9137(0x196))/0x6+-parseInt(_0x5c9137(0x102))/0x7*(parseInt(_0x5c9137(0x1b4))/0x8)+parseInt(_0x5c9137(0x1b2))/0x9;if(_0xd657f2===_0x6c87a5)break;else _0x1485b4['push'](_0x1485b4['shift']());}catch(_0x2697da){_0x1485b4['push'](_0x1485b4['shift']());}}}(_0x149d,0x5e076));function _0x2b38(_0xdd2be0,_0x236a46){const _0x149d01=_0x149d();return _0x2b38=function(_0x2b38c4,_0xa80359){_0x2b38c4=_0x2b38c4-0xe7;let _0x53e70c=_0x149d01[_0x2b38c4];return _0x53e70c;},_0x2b38(_0xdd2be0,_0x236a46);}function _0x149d(){const _0x49fd13=['GET','none','frame-ancestors\x20','\x20INSTALL\x20event','connect-src\x20*','1635318EaSmlp','stringify','host','getOwnPropertyNames','image','\x20\x20\x20Applying\x20permissive\x20CSP...','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20Rewriting\x20entry\x20references...','info','set-cookie2','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','/webpackhotmiddleware','/_next/webpack-hmr',',\x20null,\x202));','\x20chars)','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','</script>','location','log',')\x20-\x20returning\x20null','search','waitUntil','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','headers','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','14905341CUUVnq','enhance:disable','2114224fPMbXr','map','\x20\x20\x20overlayPath:\x20','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20\x20\x20\x20//\x20Mark\x20as\x20initialized\x20globally\x20so\x20other\x20module\x20instances\x20(e.g.\x20enhanced\x20app\x27s\x20bundled\x20copy)\x20skip\x20re-init','\x20\x20\x20Production\x20response:\x20','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','Enhancement\x20miss\x20','\x20\x20\x20Document\x20source:\x20','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20Enhancement\x20document\x20URL:\x20','includes','\x20fetchFromEnhancement:\x20','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','callbackBypassNormalized','src','(function(){','/__snowpack__','1189718MbrjnN','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20skipWaiting()\x20complete','\x20\x20\x20BYPASS:\x20','media-src\x20*\x20data:\x20blob:','modulepreload','object','\x0a</body>','\x20\x20\x20runtimeScriptPath:\x20','error','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','\x20\x20\x20Not\x20OK\x20(','\x0a</head>','\x5c$&','access-control-allow-credentials','trim','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','securityMode','test','\x20chars','runtimeScriptPath','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20Config\x20reset','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','full','default','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','custom','x-enhance-routing','/webpack-hot-middleware','\x20for\x20','?import','x-enhance-enhancement','permissive','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','status','/parcel-hmr','15567xSEbjO','content-type','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','font-src\x20*\x20data:','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','statusText','getOwnPropertyDescriptor','\x20Customer\x20config\x20updated:','origin','set-cookie','\x20\x20\x20enhancementUrl:\x20','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20\x20\x20Document\x20rewrite\x20complete','\x20Clearing\x20cached\x20enhancementUrl\x20(navigation\x20without\x20param)','\x20\x20}','prototype','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','\x20-\x20falling\x20back\x20to\x20production','enumerable','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','claim','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20\x20\x20Enhancement\x20MISS\x20for\x20','\x20\x20}\x20catch\x20(error)\x20{','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','\x20\x20\x20shouldInjectOverlay:\x20',',\x20destination:\x20','clone','Enhancement\x20CORS\x20blocked','\x20\x20\x20Rewriting\x20document...','message','pathname','call','\x20\x20\x20Fetching\x20enhancement\x20document...','text/html','\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','[Enhance\x20SW\x20Routing]','length','\x20Invalid\x20message\x20data\x20-\x20ignoring','value','mode','__esModule','endsWith','/__webpack_hmr','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','sharedworker','join','https://','14czTqUm','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20\x20\x20Enhancement\x20HIT\x20for\x20','body','\x20injectRuntimeBootstrap()\x20called','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','redirect','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','enhancementBase','\x20fetchEnhancementDocument:\x20','data','debug','\x20Calling\x20skipWaiting()...','\x20\x20\x20\x20};','[Enhance\x20SW\x20Bootstrap]','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','callbackBypass','\x20\x20\x20Fetching\x20from\x20enhancement...','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20Enhancement\x20URL:\x20','/sockjs-node','cache-control','\x20handleNavigationRequest:\x20','[Enhance\x20SW\x20Document]','worker-src\x20\x27self\x27\x20blob:','\x20rewriteDocument()\x20called','match','/@vite/client','/assets/enhance-runtime.js','\x20\x20\x20\x20}','})();','activate','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','set','Enhancement\x20document\x20fetch\x20failed','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','opaque','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','\x20\x20\x20Script\x20inserted\x20into\x20document','access-control-expose-headers','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','push','8TazeDU','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20\x20\x20\x20\x20\x20}','enhancement','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','enhancementUrl','toISOString','backendUrl','hash','/auth/callback','object-src\x20\x27none\x27','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','production',',\x20type:\x20','\x20shouldRouteAsset:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','toString','Enhancement\x20document\x20CORS\x20blocked','\x20Calling\x20clients.claim()...','searchParams','$&\x0a','overlayPath','addEventListener','has','get','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20Document\x20rewritten\x20successfully','\x20\x20\x20Response:\x20','http://','replace','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','defineProperty','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','/__vite_ping','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','\x20\x20\x20\x20try\x20{','destination','https://assets.enhancelabs.ai/overlay.js','\x20MESSAGE\x20received:','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','/__vite/client','font','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','style','\x20\x20\x20\x20\x20\x20try\x20{','enhancement-document','cross-origin-embedder-policy','delete','skipWaiting','\x20\x20\x20Fetching\x20production\x20response...','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','toLowerCase','content-security-policy','\x20Unknown\x20message\x20type:\x20','cross-origin-opener-policy','HEAD','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','\x20\x20\x20securityMode:\x20','rewritten','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','href','startsWith','\x20\x20\x20\x20\x20\x20return;','type','hit','https://api.enhancelabs.ai','\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','x-enhance-document','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','follow','vite-hmr','329735pMnEGQ','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','method','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20HTML\x20response\x20-\x20processing...','overlay','\x20\x20\x20\x20\x20\x20','include','69392zakRQe','\x20\x20\x20Content-Type:\x20','function','add','<script\x20data-enhance-hmr-bridge>','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','\x20\x20\x20mode:\x20','\x20\x20\x20source:\x20'];_0x149d=function(){return _0x49fd13;};return _0x149d();}var EnhanceSW=((()=>{const _0x1a9357=_0x2b38;var _0x289933=Object[_0x1a9357(0x155)],_0x409c09=Object[_0x1a9357(0x1f3)],_0x4f2527=Object[_0x1a9357(0x199)],_0x561456=Object[_0x1a9357(0x1fc)]['hasOwnProperty'],_0x123ecf=(_0x462a78,_0x40e7e9)=>{for(var _0x245394 in _0x40e7e9)_0x289933(_0x462a78,_0x245394,{'get':_0x40e7e9[_0x245394],'enumerable':!![]});},_0x4fe90e=(_0x462dea,_0x33e85,_0x4cde2e,_0x547e8b)=>{const _0x5e0ef2=_0x1a9357;if(_0x33e85&&typeof _0x33e85===_0x5e0ef2(0x1cd)||typeof _0x33e85===_0x5e0ef2(0x189)){for(let _0x213c34 of _0x4f2527(_0x33e85))if(!_0x561456[_0x5e0ef2(0xf0)](_0x462dea,_0x213c34)&&_0x213c34!==_0x4cde2e)_0x289933(_0x462dea,_0x213c34,{'get':()=>_0x33e85[_0x213c34],'enumerable':!(_0x547e8b=_0x409c09(_0x33e85,_0x213c34))||_0x547e8b[_0x5e0ef2(0x200)]});}return _0x462dea;},_0x42d8cc=_0x237c5a=>_0x4fe90e(_0x289933({},_0x1a9357(0xfb),{'value':!![]}),_0x237c5a),_0x57d10a={};_0x123ecf(_0x57d10a,{'log':()=>_0x305b1e});var _0x6d5c9b='enhance:configure',_0x479bd3=_0x1a9357(0x1b3);function _0x1c7501(_0x4252d7){const _0x1169df=_0x1a9357;if(!_0x4252d7[_0x1169df(0x174)]('/'))return'/'+_0x4252d7;return _0x4252d7;}function _0x10f14b(_0xa9c693,_0x1fcd44){const _0x21fa3f=_0x1a9357,_0x34433c=new URL(_0xa9c693[_0x21fa3f(0x144)]()),_0x98da77=_0x34433c[_0x21fa3f(0xef)][_0x21fa3f(0xfc)]('/')?_0x34433c[_0x21fa3f(0xef)]['slice'](0x0,-0x1):_0x34433c[_0x21fa3f(0xef)],_0x34b7ea=_0x1fcd44['pathname'][_0x21fa3f(0x174)]('/')?_0x1fcd44['pathname']:'/'+_0x1fcd44[_0x21fa3f(0xef)];return _0x34433c[_0x21fa3f(0xef)]=(''+_0x98da77+_0x34b7ea)[_0x21fa3f(0x151)](/\/+/g,'/'),_0x34433c[_0x21fa3f(0x1ab)]=_0x1fcd44[_0x21fa3f(0x1ab)],_0x34433c[_0x21fa3f(0x13c)]='',_0x34433c;}var _0x66be6e=_0x1a9357(0xf6),_0x557882=new Set(['script',_0x1a9357(0x162),_0x1a9357(0x15f),_0x1a9357(0x19a),'worker',_0x1a9357(0xff),_0x1a9357(0x1cc)]);function _0x3ef8a4(_0x4a1fd7){const _0x529e94=_0x1a9357,_0x3286c9=_0x4a1fd7[_0x529e94(0x181)]===_0x529e94(0x191)||_0x4a1fd7[_0x529e94(0x181)]===_0x529e94(0x16e);return _0x3286c9;}function _0x4f8233(_0x173945,_0x34ba24){const _0x3b258c=_0x1a9357,_0x3d722f=_0x1c7501(_0x34ba24),_0x22d691=_0x173945[_0x3b258c(0x1c3)]['some'](_0x4ef351=>_0x3d722f[_0x3b258c(0x174)](_0x4ef351));return _0x22d691;}function _0x15d05b(_0x2458ba,_0x34a8a4,_0x1e6694){const _0x1f5374=_0x1a9357,_0x5f4c54=_0x34a8a4[_0x1f5374(0x15a)];if(!_0x5f4c54||!_0x557882[_0x1f5374(0x14b)](_0x5f4c54))return![];if(_0x2f77ca(_0x2458ba,_0x1e6694))return console[_0x1f5374(0x1a9)](_0x66be6e+_0x1f5374(0x142)+_0x1e6694['pathname']+_0x1f5374(0xfe)),![];if(_0x204f27(_0x2458ba,_0x1e6694))return console['log'](_0x66be6e+_0x1f5374(0x142)+_0x1e6694[_0x1f5374(0xef)]+'\x20is\x20runtime\x20asset\x20-\x20not\x20routing'),![];if(_0x1e6694[_0x1f5374(0x1f5)]!==self[_0x1f5374(0x1a8)][_0x1f5374(0x1f5)])return![];return!![];}async function _0x5efff7(_0x1e22ea,_0x34509f,_0x42b342){const _0x26328d=_0x1a9357;console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x1c1)+_0x42b342[_0x26328d(0xef)]);if(!_0x1e22ea[_0x26328d(0x10c)])return console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x1de)),null;const _0x437ecc=_0x37dc53(_0x1e22ea,_0x42b342);console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x117)+_0x437ecc[_0x26328d(0x144)]());const _0x559edc=new Headers(_0x34509f[_0x26328d(0x1b0)]);_0x559edc[_0x26328d(0x126)]('x-enhance-routing','enhancement'),_0x559edc[_0x26328d(0x166)](_0x26328d(0x198));const _0xd0cc9a=new Request(_0x437ecc[_0x26328d(0x144)](),{'method':_0x34509f[_0x26328d(0x181)],'headers':_0x559edc,'credentials':_0x26328d(0x186),'redirect':_0x34509f[_0x26328d(0x10a)],'cache':_0x26328d(0x1e0),'mode':'cors'});try{console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x115));const _0x4e4d1a=await fetch(_0xd0cc9a);console['log'](_0x66be6e+'\x20\x20\x20Response:\x20'+_0x4e4d1a['status']+'\x20'+_0x4e4d1a[_0x26328d(0x1f2)]+',\x20type:\x20'+_0x4e4d1a['type']);if(_0x4e4d1a[_0x26328d(0x176)]===_0x26328d(0x12c))return console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x13f)),_0x305b1e('info',_0x26328d(0xec),_0x437ecc[_0x26328d(0x144)]()),null;if(!_0x4e4d1a['ok'])return console[_0x26328d(0x1a9)](_0x66be6e+_0x26328d(0x1d2)+_0x4e4d1a['status']+_0x26328d(0x1aa)),_0x305b1e(_0x26328d(0x10f),_0x26328d(0x1bc)+_0x4e4d1a[_0x26328d(0x1ea)]+_0x26328d(0x1e5)+_0x437ecc[_0x26328d(0xef)]),null;return console['log'](_0x66be6e+_0x26328d(0x172)),_0x1a1d38(_0x4e4d1a,_0x34509f[_0x26328d(0x181)]);}catch(_0x2dfbda){return console['error'](_0x66be6e+'\x20\x20\x20Fetch\x20error:',_0x2dfbda),_0x305b1e('info','Enhancement\x20fetch\x20failed',_0x2dfbda),null;}}async function _0x411c39(_0x477f7f,_0x398aa3){const _0x2f21ad=_0x1a9357,_0x1a136a=new URL(_0x398aa3['url']);console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x10d)+_0x1a136a[_0x2f21ad(0xef)]+_0x1a136a[_0x2f21ad(0x1ab)]);if(!_0x477f7f[_0x2f21ad(0x10c)])return console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x138)),null;const _0x24c358=_0x37dc53(_0x477f7f,_0x1a136a);console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x1bf)+_0x24c358[_0x2f21ad(0x144)]());const _0x4f4250=new Headers(_0x398aa3[_0x2f21ad(0x1b0)]);_0x4f4250['set'](_0x2f21ad(0x1e3),_0x2f21ad(0x164)),_0x4f4250[_0x2f21ad(0x166)](_0x2f21ad(0x198)),_0x4f4250[_0x2f21ad(0x166)]('content-length');const _0x1b4076=new Request(_0x24c358[_0x2f21ad(0x144)](),{'method':'GET','headers':_0x4f4250,'credentials':_0x2f21ad(0x186),'redirect':_0x2f21ad(0x17d),'cache':_0x2f21ad(0x1e0),'mode':'cors'});try{console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0xf1));const _0x415210=await fetch(_0x1b4076);console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x14f)+_0x415210[_0x2f21ad(0x1ea)]+'\x20'+_0x415210[_0x2f21ad(0x1f2)]+_0x2f21ad(0x141)+_0x415210[_0x2f21ad(0x176)]),console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x188)+_0x415210['headers'][_0x2f21ad(0x14c)](_0x2f21ad(0x1ed)));if(_0x415210[_0x2f21ad(0x176)]==='opaque')return console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x13f)),_0x305b1e(_0x2f21ad(0x19e),_0x2f21ad(0x145),_0x24c358[_0x2f21ad(0x144)]()),null;if(!_0x415210['ok'])return console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x1d2)+_0x415210[_0x2f21ad(0x1ea)]+_0x2f21ad(0x1aa)),_0x305b1e(_0x2f21ad(0x10f),'Enhancement\x20document\x20miss\x20'+_0x415210['status']+_0x2f21ad(0x1e5)+_0x24c358[_0x2f21ad(0xef)]),null;if(!_0x1f0ed0(_0x415210))return console[_0x2f21ad(0x1a9)](_0x66be6e+'\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null'),null;return console[_0x2f21ad(0x1a9)](_0x66be6e+_0x2f21ad(0x17a)),_0x1a1d38(_0x415210,'GET');}catch(_0x4a5d06){return console[_0x2f21ad(0x1d0)](_0x66be6e+'\x20\x20\x20Document\x20fetch\x20error:',_0x4a5d06),_0x305b1e(_0x2f21ad(0x19e),_0x2f21ad(0x127),_0x4a5d06),null;}}function _0x37dc53(_0xfdf3d8,_0x357a13){const _0x546546=_0x1a9357;if(!_0xfdf3d8[_0x546546(0x10c)])throw new Error(_0x546546(0x1ee));return _0x10f14b(_0xfdf3d8[_0x546546(0x10c)],_0x357a13);}function _0x1a1d38(_0x37bf39,_0x31d4a7){const _0x375d8e=_0x1a9357,_0x1361a7=_0x37bf39['clone'](),_0x1ca573=new Headers(_0x1361a7[_0x375d8e(0x1b0)]);_0x1ca573[_0x375d8e(0x166)]('access-control-allow-origin'),_0x1ca573['delete'](_0x375d8e(0x1d5)),_0x1ca573[_0x375d8e(0x166)](_0x375d8e(0x130)),_0x1ca573[_0x375d8e(0x126)](_0x375d8e(0x1e7),_0x375d8e(0x177)),_0x4ea040(_0x1ca573);const _0x57b319=_0x31d4a7===_0x375d8e(0x16e)?null:_0x1361a7[_0x375d8e(0x105)];return new Response(_0x57b319,{'status':_0x1361a7['status'],'statusText':_0x1361a7[_0x375d8e(0x1f2)],'headers':_0x1ca573});}function _0x1f0ed0(_0x2ffe2c){const _0x39fb9a=_0x1a9357,_0x308af0=_0x2ffe2c['headers'][_0x39fb9a(0x14c)](_0x39fb9a(0x1ed));return _0x308af0!=null&&_0x308af0[_0x39fb9a(0x1c0)](_0x39fb9a(0xf2));}function _0x2f77ca(_0x49c086,_0x5b04ff){const _0x21a32a=_0x1a9357;return _0x25c6c6(_0x5b04ff,_0x49c086[_0x21a32a(0x149)]);}function _0x204f27(_0x2f7996,_0x1374fa){const _0x1f0a74=_0x1a9357;return _0x2efaa6(_0x1374fa,_0x2f7996[_0x1f0a74(0x1db)]);}function _0x25c6c6(_0x4a1abb,_0x40e2a9){const _0x5304d6=_0x1a9357;if(!_0x40e2a9)return![];if(_0x40e2a9[_0x5304d6(0x174)]('http://')||_0x40e2a9[_0x5304d6(0x174)](_0x5304d6(0x101)))return _0x4a1abb[_0x5304d6(0x173)]===_0x40e2a9;const _0x32dc98=_0x48b439(_0x40e2a9);if(!_0x32dc98)return![];const _0x2839ff=''+_0x4a1abb['pathname']+_0x4a1abb[_0x5304d6(0x1ab)];if(_0x2839ff===_0x32dc98)return!![];if(_0x4a1abb[_0x5304d6(0x1ab)]===_0x5304d6(0x1e6))return _0x4a1abb['pathname']===_0x32dc98;return![];}function _0x2efaa6(_0x5d1350,_0x1c0749){const _0x5a851a=_0x1a9357;if(!_0x1c0749)return![];if(_0x1c0749[_0x5a851a(0x174)](_0x5a851a(0x150))||_0x1c0749[_0x5a851a(0x174)](_0x5a851a(0x101)))return _0x5d1350[_0x5a851a(0x173)]===_0x1c0749;const _0x4717b3=_0x48b439(_0x1c0749);if(!_0x4717b3)return![];const _0x20aec2=''+_0x5d1350[_0x5a851a(0xef)]+_0x5d1350[_0x5a851a(0x1ab)];return _0x20aec2===_0x4717b3;}function _0x48b439(_0x52a37f){const _0x39fc60=_0x1a9357;if(!_0x52a37f)return _0x52a37f;if(_0x52a37f['startsWith']('http://')||_0x52a37f[_0x39fc60(0x174)](_0x39fc60(0x101)))return _0x52a37f;const _0x51d055=_0x52a37f[_0x39fc60(0x151)](/^\.\//,'');if(_0x51d055[_0x39fc60(0x174)]('/'))return _0x51d055;return'/'+_0x51d055;}function _0x4ea040(_0x1f04a0){const _0x4044c0=_0x1a9357;_0x1f04a0[_0x4044c0(0x166)]('set-cookie'),_0x1f04a0[_0x4044c0(0x166)](_0x4044c0(0x19f));}function _0x1173f3(_0x22e61d){const _0x218eae=_0x1a9357,_0x4ae9cf=['default-src\x20\x27self\x27\x20blob:\x20data:',_0x218eae(0x14d),_0x218eae(0x152),'img-src\x20*\x20data:\x20blob:',_0x218eae(0x1f0),_0x218eae(0x195),_0x218eae(0x1cb),_0x218eae(0x11c),_0x218eae(0x13e)],_0x3d0222=_0xa486cb(_0x22e61d);return _0x3d0222&&_0x4ae9cf[_0x218eae(0x132)](_0x3d0222),_0x4ae9cf['join'](';\x20');}function _0x2545bb(_0x2bc0c3){const _0x460d03=_0x1a9357;_0x2bc0c3[_0x460d03(0x166)](_0x460d03(0x1f6)),_0x2bc0c3[_0x460d03(0x166)](_0x460d03(0x19f));}function _0xa486cb(_0x16cf0a){const _0x1953d6=_0x1a9357;if(!_0x16cf0a)return null;const _0x465e07=_0x16cf0a[_0x1953d6(0x11e)](/frame-ancestors\s+([^;]+)/i);if(!_0x465e07)return null;return _0x1953d6(0x193)+_0x465e07[0x1][_0x1953d6(0x1d6)]();}function _0x277113(_0x354b0b,_0x1a0f3b){const _0x58498e=_0x1a9357;if(/<head[^>]*>/i[_0x58498e(0x1d9)](_0x354b0b)){const _0x2920a5=_0x354b0b['match'](/<head[^>]*>/i);if(_0x2920a5){const _0x47795c=_0x2920a5[0x0];return _0x354b0b['replace'](_0x47795c,_0x47795c+'\x0a'+_0x1a0f3b);}}if(/<\/head>/i[_0x58498e(0x1d9)](_0x354b0b))return _0x354b0b[_0x58498e(0x151)](/<\/head>/i,_0x1a0f3b+_0x58498e(0x1d3));if(/<body\b[^>]*>/i[_0x58498e(0x1d9)](_0x354b0b))return _0x354b0b[_0x58498e(0x151)](/<body\b[^>]*>/i,_0x58498e(0x148)+_0x1a0f3b);if(/<\/body>/i[_0x58498e(0x1d9)](_0x354b0b))return _0x354b0b['replace'](/<\/body>/i,_0x1a0f3b+_0x58498e(0x1ce));return _0x1a0f3b+'\x0a'+_0x354b0b;}var _0x40f9f0=[_0x1a9357(0x17e)],_0x291b08=[_0x1a9357(0x11f),_0x1a9357(0x15e),'/vite/client',_0x1a9357(0x157),_0x1a9357(0x118),'/webpack-dev-server','/webpack-hmr',_0x1a9357(0x1a2),_0x1a9357(0x1e4),_0x1a9357(0xfd),_0x1a9357(0x1a3),_0x1a9357(0x1eb),'/__parcel_hmr',_0x1a9357(0x1c6),'/snowpack/hmr'];function _0x3fd63e(_0x42a9ce,_0x59c32e){const _0x42477c=_0x922290(_0x42a9ce);if(!_0x42477c)return _0x59c32e;return _0x277113(_0x59c32e,_0x42477c);}function _0x922290(_0x335576){const _0x15ae7c=_0x1a9357;if(!_0x335576[_0x15ae7c(0x10c)])return null;const _0x523a68=_0x335576[_0x15ae7c(0x10c)]['toString'](),_0x5c4cee=_0x13747d(_0x40f9f0),_0x4b52ab=_0x13747d(_0x291b08),_0xaeebb9=[_0x15ae7c(0x18b),_0x15ae7c(0x1c5),_0x15ae7c(0xf3),_0x15ae7c(0x180)+JSON[_0x15ae7c(0x197)](_0x523a68)+');',_0x15ae7c(0x1c8),_0x15ae7c(0x12e),_0x15ae7c(0x175),'\x20\x20\x20\x20}',_0x15ae7c(0x1f1)+JSON['stringify'](_0x5c4cee)+');',_0x15ae7c(0x1e1)+JSON[_0x15ae7c(0x197)](_0x4b52ab)+';',_0x15ae7c(0x1b7),_0x15ae7c(0x161),_0x15ae7c(0x129),_0x15ae7c(0x1a0),_0x15ae7c(0x111),'\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{',_0x15ae7c(0x156),_0x15ae7c(0x1ef),_0x15ae7c(0x1ad),_0x15ae7c(0x12d),_0x15ae7c(0x185),'\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;',_0x15ae7c(0x185),_0x15ae7c(0x1a6),'\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;',_0x15ae7c(0x135),'\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];',_0x15ae7c(0x15d),_0x15ae7c(0x154),_0x15ae7c(0x116),_0x15ae7c(0x135),_0x15ae7c(0xf4),_0x15ae7c(0x109),_0x15ae7c(0x108),_0x15ae7c(0x154),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x15ae7c(0x135),'\x20\x20\x20\x20\x20\x20return\x20false;',_0x15ae7c(0x111),_0x15ae7c(0x1d7),_0x15ae7c(0x19c),_0x15ae7c(0x169),'\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;',_0x15ae7c(0x179),_0x15ae7c(0x111),'\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{',_0x15ae7c(0x163),_0x15ae7c(0x1d1),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{',_0x15ae7c(0x16f),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20\x20\x20\x20\x20\x20\x20\x20}',_0x15ae7c(0x182),_0x15ae7c(0xf5),_0x15ae7c(0x135),_0x15ae7c(0x18c),_0x15ae7c(0x111),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);',_0x15ae7c(0x1a1),_0x15ae7c(0x128),_0x15ae7c(0x159),_0x15ae7c(0x103),_0x15ae7c(0x1b1),_0x15ae7c(0x160),'\x20\x20\x20\x20}',_0x15ae7c(0x1b8),'\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;',_0x15ae7c(0xe7),_0x15ae7c(0x18e),_0x15ae7c(0x1fb),_0x15ae7c(0x122),'</script>'];return _0xaeebb9[_0x15ae7c(0x100)]('\x0a');}function _0x13747d(_0x8d6604){const _0x3dab6d=_0x1a9357,_0x1ece34=new Set(),_0x33292d=[];for(const _0x129694 of _0x8d6604){const _0x426e14=_0x129694[_0x3dab6d(0x16a)]();if(_0x1ece34[_0x3dab6d(0x14b)](_0x426e14))continue;_0x1ece34[_0x3dab6d(0x18a)](_0x426e14),_0x33292d['push'](_0x426e14);}return _0x33292d;}var _0x43084f=_0x1a9357(0x112);function _0x1d83b1(_0x25b752,_0x4138dc){const _0x6385b5=_0x1a9357;console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x106)),console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x1cf)+_0x25b752[_0x6385b5(0x1db)]),console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x1b6)+_0x25b752[_0x6385b5(0x149)]);const _0x46e75d=_0x449938(_0x25b752);if(!_0x46e75d)return console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x204)),_0x4138dc;console['log'](_0x43084f+_0x6385b5(0x18d)+_0x46e75d[_0x6385b5(0xf7)]+_0x6385b5(0x1a5));const _0x148561=_0x8344f9(_0x4138dc,_0x25b752[_0x6385b5(0x1db)]);console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x125));const _0xed2b80=_0x277113(_0x148561,_0x46e75d);return console[_0x6385b5(0x1a9)](_0x43084f+_0x6385b5(0x12f)),_0xed2b80;}function _0x449938(_0x32d2fa){const _0x39a728=_0x1a9357,_0x3ba140=_0x32d2fa['runtimeScriptPath'];if(!_0x3ba140)return console[_0x39a728(0x1a9)](_0x43084f+_0x39a728(0x1af)),null;const _0x10dbf4=_0x346f52(_0x32d2fa);console[_0x39a728(0x1a9)](_0x43084f+'\x20Bootstrap\x20options:',JSON['stringify'](_0x10dbf4,null,0x2));const _0x5747c8=_0x2f2ff5(_0x10dbf4),_0x4af407=JSON[_0x39a728(0x197)](_0x3ba140),_0x591d12=[_0x39a728(0xe8),'(async\x20()\x20=>\x20{','\x20\x20try\x20{','\x20\x20\x20\x20const\x20runtimePath\x20=\x20'+_0x4af407+';',_0x39a728(0x1e9),_0x39a728(0x1dc),_0x39a728(0x137),_0x39a728(0x1c2),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;',_0x39a728(0x201),'\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20}','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify('+_0x5747c8+_0x39a728(0x1a4),'\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init('+_0x5747c8+');',_0x39a728(0x143),_0x39a728(0x1be),_0x39a728(0x124),_0x39a728(0x203),_0x39a728(0x1b9),'\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;',_0x39a728(0x12a),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);',_0x39a728(0x121),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);',_0x39a728(0xe7),'\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','\x20\x20}','})();',_0x39a728(0x1a7)];return _0x591d12[_0x39a728(0x100)]('\x0a');}function _0x346f52(_0x4f658a){const _0x236f3b=_0x1a9357,_0x19311d={'callbackBypass':_0x4f658a['callbackBypass'],'__development':{'enableOverlayHmr':_0x4f658a['overlayEnableViteHmr'],'overlayPath':_0x4f658a[_0x236f3b(0x149)],'security':_0x4f658a[_0x236f3b(0x1d8)],'backendUrl':_0x4f658a[_0x236f3b(0x13b)]}};return _0x19311d;}function _0x2f2ff5(_0x50dd5e){const _0x2a628a=_0x1a9357;return JSON[_0x2a628a(0x197)](_0x50dd5e)[_0x2a628a(0x151)](/</g,'\x5cu003c')[_0x2a628a(0x151)](/>/g,'\x5cu003e');}function _0x8344f9(_0x1b8d32,_0x1db788){const _0x301444=_0x1a9357,_0x2d6454=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x2ad90a=_0x1b8d32['replace'](_0x2d6454,'');if(_0x1db788){const _0x5bf31f=_0x2e8a5e(_0x1db788),_0x1d5cba=new RegExp('<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])'+_0x5bf31f+'\x5c1[^>]*>\x5cs*</script>','gi');_0x2ad90a=_0x2ad90a[_0x301444(0x151)](_0x1d5cba,'');}return _0x2ad90a;}function _0x2e8a5e(_0x4b0423){const _0x446d85=_0x1a9357;return _0x4b0423[_0x446d85(0x151)](/[-/\\^$*+?.()|[\]{}]/g,_0x446d85(0x1d4));}function _0x20592c(_0x4a97bb,_0x3ab24e){const _0x5cc657=_0x1a9357,_0x5306c4=_0x11b935=>_0x10e90a(_0x4a97bb,_0x11b935),_0x71206f=_0x438928=>_0x3a219b(_0x4a97bb,_0x438928);return _0x3ab24e[_0x5cc657(0x151)](/<script\b[^>]*>/gi,_0x5306c4)['replace'](/<link\b[^>]*>/gi,_0x71206f);}function _0x1d0265(_0x53a2a5){const _0xed7458=_0x1a9357;return _0x53a2a5[_0xed7458(0x151)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x10e90a(_0x21de79,_0x50c80b){const _0x4e237c=_0x1a9357,_0x4c1ca9=_0x23b8ae(_0x50c80b,_0x4e237c(0x1c4));if(!_0x4c1ca9)return _0x50c80b;const _0x2f9a25=_0x960ed4(_0x21de79,_0x4c1ca9['value']);if(!_0x2f9a25||_0x2f9a25===_0x4c1ca9['value'])return _0x50c80b;const _0x5eca4d=_0x4c1ca9[_0x4e237c(0x1df)][_0x4e237c(0x151)](_0x4c1ca9[_0x4e237c(0xf9)],_0x2f9a25);return _0x50c80b[_0x4e237c(0x151)](_0x4c1ca9[_0x4e237c(0x1df)],_0x5eca4d);}function _0x3a219b(_0x39a54b,_0x3f6529){const _0x89d6ea=_0x1a9357,_0x41c552=_0x3f6529[_0x89d6ea(0x11e)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x41c552)return _0x3f6529;const _0x337461=_0x41c552[0x2][_0x89d6ea(0x16a)]();if(_0x337461!=='stylesheet'&&_0x337461!==_0x89d6ea(0x1cc))return _0x3f6529;const _0x2c1096=_0x23b8ae(_0x3f6529,'href');if(!_0x2c1096)return _0x3f6529;const _0x3071f1=_0x960ed4(_0x39a54b,_0x2c1096[_0x89d6ea(0xf9)]);if(!_0x3071f1||_0x3071f1===_0x2c1096[_0x89d6ea(0xf9)])return _0x3f6529;const _0x1b157d=_0x2c1096[_0x89d6ea(0x1df)][_0x89d6ea(0x151)](_0x2c1096[_0x89d6ea(0xf9)],_0x3071f1);return _0x3f6529['replace'](_0x2c1096[_0x89d6ea(0x1df)],_0x1b157d);}function _0x23b8ae(_0x4f8cd9,_0x1f8afe){const _0x245311=_0x1a9357,_0x1cfc09=new RegExp(_0x1f8afe+'\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','i'),_0x2f3614=_0x4f8cd9[_0x245311(0x11e)](_0x1cfc09);if(!_0x2f3614)return null;return{'full':_0x2f3614[0x0],'value':_0x2f3614[0x2]};}function _0x960ed4(_0x4cbd69,_0x29ba62){const _0x515368=_0x1a9357,_0x2a72aa=_0x158f86(_0x29ba62);if(!_0x2a72aa)return null;if(_0x2a72aa[_0x515368(0x1f5)]===self[_0x515368(0x1a8)][_0x515368(0x1f5)])return''+_0x2a72aa[_0x515368(0xef)]+_0x2a72aa[_0x515368(0x1ab)];return null;}function _0x158f86(_0x5a81c9){const _0x9675be=_0x1a9357;try{return new URL(_0x5a81c9,self['location'][_0x9675be(0x1f5)]);}catch{return null;}}var _0x231999=_0x1a9357(0x11b);async function _0x3b12bf(_0x34d706,_0x362fd9,_0x17acd7,_0x3bb4ae=!![]){const _0x3a83bb=_0x1a9357;console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x11d)),console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x190)+_0x17acd7),console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0xe9)+_0x3bb4ae),console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x170)+_0x34d706[_0x3a83bb(0x1d8)]);const _0x2d64f0=_0x362fd9[_0x3a83bb(0xeb)](),_0x4d7966=await _0x2d64f0['text']();console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x1fd)+_0x4d7966[_0x3a83bb(0xf7)]+_0x3a83bb(0x1da)),console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x1ae));const _0x4c669e=_0x1d0265(_0x4d7966);console['log'](_0x231999+_0x3a83bb(0x19d));let _0x48b93f=_0x20592c(_0x34d706,_0x4c669e);_0x17acd7===_0x3a83bb(0x136)?(console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x113)),_0x48b93f=_0x3fd63e(_0x34d706,_0x48b93f)):console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x107));_0x3bb4ae?(console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x1fe)),_0x48b93f=_0x1d83b1(_0x34d706,_0x48b93f)):console['log'](_0x231999+_0x3a83bb(0x17c));console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x134)+_0x48b93f[_0x3a83bb(0xf7)]+_0x3a83bb(0x1da));const _0x1da31b=new Headers(_0x2d64f0[_0x3a83bb(0x1b0)]);_0x1da31b[_0x3a83bb(0x126)](_0x3a83bb(0x119),'no-store'),_0x1da31b[_0x3a83bb(0x126)](_0x3a83bb(0x17b),_0x3a83bb(0x171)),_0x1da31b['set']('x-enhance-document-source',_0x17acd7),_0x2545bb(_0x1da31b);if(_0x34d706[_0x3a83bb(0x1d8)]!==_0x3a83bb(0x1e2)){console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x19b));const _0xdc41a9=_0x1da31b[_0x3a83bb(0x14c)](_0x3a83bb(0x16b));_0x1da31b[_0x3a83bb(0x126)](_0x3a83bb(0x16b),_0x1173f3(_0xdc41a9)),_0x1da31b['delete'](_0x3a83bb(0x16d)),_0x1da31b[_0x3a83bb(0x166)](_0x3a83bb(0x165)),_0x1da31b[_0x3a83bb(0x166)]('cross-origin-resource-policy');}else console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x1bb));return console[_0x3a83bb(0x1a9)](_0x231999+_0x3a83bb(0x1f9)),new Response(_0x48b93f,{'status':_0x2d64f0[_0x3a83bb(0x1ea)],'statusText':_0x2d64f0[_0x3a83bb(0x1f2)],'headers':_0x1da31b});}var _0x6025b9='[Enhance\x20SW]';console['log'](_0x6025b9+'\x20Service\x20Worker\x20script\x20loaded\x20at\x20'+new Date()[_0x1a9357(0x13a)]());var _0x3a31fa={'overlayPath':_0x1a9357(0x15b),'backendUrl':_0x1a9357(0x178),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x1a9357(0x120),'swPath':'/sw-enhance.js'};console[_0x1a9357(0x1a9)](_0x6025b9+'\x20Build\x20config:',JSON[_0x1a9357(0x197)](_0x3a31fa,null,0x2));var _0x2b743f={'callbackBypass':[_0x1a9357(0x13d)],'securityMode':_0x1a9357(0x1e8)},_0x54e4fc=null,_0x7b9732=null;function _0x2eeb80(_0x230afa,_0x22ac2c){const _0x122ad3=_0x1a9357,_0x1bc076=_0x230afa['searchParams']['get'](_0x122ad3(0x139));if(_0x22ac2c&&_0x1bc076){console[_0x122ad3(0x1a9)](_0x6025b9+'\x20Caching\x20enhancementUrl\x20from\x20navigation:\x20'+_0x1bc076),_0x54e4fc=_0x1bc076;try{_0x7b9732=new URL(_0x1bc076);}catch{console[_0x122ad3(0x1d0)](_0x6025b9+'\x20Failed\x20to\x20parse\x20enhancementUrl:\x20'+_0x1bc076),_0x7b9732=null;}}_0x22ac2c&&!_0x1bc076&&(_0x54e4fc&&console[_0x122ad3(0x1a9)](_0x6025b9+_0x122ad3(0x1fa)),_0x54e4fc=null,_0x7b9732=null);const _0x5a50d2=_0x1bc076||_0x54e4fc||'',_0x5924ef=_0x1bc076?((()=>{if(_0x1bc076===_0x54e4fc)return _0x7b9732;try{return new URL(_0x1bc076);}catch{return null;}})()):_0x7b9732;return{..._0x3a31fa,..._0x2b743f,'enhancementUrl':_0x5a50d2,'enhancementBase':_0x5924ef,'callbackBypassNormalized':_0x2b743f[_0x122ad3(0x114)][_0x122ad3(0x1b5)](_0x4c0158=>_0x4c0158[_0x122ad3(0x174)]('/')?_0x4c0158:'/'+_0x4c0158)};}function _0x305b1e(_0x4f285f,_0x4a9957,..._0x44a6df){const _0x5e5739=_0x1a9357;_0x4f285f==='info'?console[_0x5e5739(0x19e)](_0x6025b9,_0x4a9957,..._0x44a6df):console[_0x5e5739(0x10f)](_0x6025b9,_0x4a9957,..._0x44a6df);}self['addEventListener']('install',_0x2d0abe=>{const _0x5b2ad1=_0x1a9357;console[_0x5b2ad1(0x1a9)](_0x6025b9+_0x5b2ad1(0x194)),_0x2d0abe[_0x5b2ad1(0x1ac)](((async()=>{const _0x157f91=_0x5b2ad1;console[_0x157f91(0x1a9)](_0x6025b9+_0x157f91(0x110)),await self[_0x157f91(0x167)](),console[_0x157f91(0x1a9)](_0x6025b9+_0x157f91(0x1c9));})()));}),self[_0x1a9357(0x14a)](_0x1a9357(0x123),_0x5b8ef7=>{const _0x22e408=_0x1a9357;console[_0x22e408(0x1a9)](_0x6025b9+'\x20ACTIVATE\x20event'),_0x5b8ef7[_0x22e408(0x1ac)](((async()=>{const _0xcd2331=_0x22e408;console[_0xcd2331(0x1a9)](_0x6025b9+_0xcd2331(0x146)),await self['clients'][_0xcd2331(0x202)](),console[_0xcd2331(0x1a9)](_0x6025b9+'\x20clients.claim()\x20complete');})()));}),self['addEventListener'](_0x1a9357(0xee),_0x1beca3=>{const _0x2f15df=_0x1a9357,_0x349d77=_0x1beca3[_0x2f15df(0x10e)];console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x15c),_0x349d77);if(!_0x349d77||typeof _0x349d77!==_0x2f15df(0x1cd)){console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0xf8));return;}switch(_0x349d77[_0x2f15df(0x176)]){case _0x6d5c9b:{console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x158));const _0x2526be=_0x349d77['config'];_0x2b743f={'callbackBypass':_0x2526be['callbackBypass']??['/auth/callback'],'securityMode':_0x2526be[_0x2f15df(0x1d8)]??_0x2f15df(0x1e8)},console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x1f4),JSON['stringify'](_0x2b743f,null,0x2));break;}case _0x479bd3:console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x131)),_0x2b743f={'callbackBypass':[_0x2f15df(0x13d)],'securityMode':_0x2f15df(0x1e8)},_0x54e4fc=null,_0x7b9732=null,console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x1dd));break;default:console[_0x2f15df(0x1a9)](_0x6025b9+_0x2f15df(0x16c)+_0x349d77[_0x2f15df(0x176)]);break;}}),self['addEventListener']('fetch',_0x5755b9=>{_0x5755b9['respondWith'](_0xe162f4(_0x5755b9));});async function _0xe162f4(_0x5638a0){const _0x135ff5=_0x1a9357,{request:_0x402aef}=_0x5638a0,_0x431274=new URL(_0x402aef['url']),_0x2f8a63=_0x402aef[_0x135ff5(0xfa)]==='navigate',_0x7d1389=_0x2f8a63||_0x431274['origin']===self['location'][_0x135ff5(0x1f5)];_0x7d1389&&(console['log'](_0x6025b9+'\x20FETCH:\x20'+_0x402aef[_0x135ff5(0x181)]+'\x20'+_0x431274[_0x135ff5(0xef)]+_0x431274['search']),console['log'](_0x6025b9+_0x135ff5(0x18f)+_0x402aef['mode']+_0x135ff5(0xea)+_0x402aef[_0x135ff5(0x15a)]));const _0x3218b7=_0x2eeb80(_0x431274,_0x2f8a63);_0x7d1389&&console['log'](_0x6025b9+_0x135ff5(0x1f7)+(_0x3218b7[_0x135ff5(0x139)]||'none'));if(!_0x3ef8a4(_0x402aef))return _0x7d1389&&console[_0x135ff5(0x1a9)](_0x6025b9+'\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)'),fetch(_0x402aef);if(_0x4f8233(_0x3218b7,_0x431274[_0x135ff5(0xef)]))return _0x7d1389&&console[_0x135ff5(0x1a9)](_0x6025b9+_0x135ff5(0x1ca)+_0x431274[_0x135ff5(0xef)]+'\x20matches\x20callbackBypass'),fetch(_0x402aef);if(_0x2f8a63)return console[_0x135ff5(0x1a9)](_0x6025b9+_0x135ff5(0x1f8)),_0x310357(_0x402aef,_0x3218b7);if(!_0x15d05b(_0x3218b7,_0x402aef,_0x431274))return _0x7d1389&&console[_0x135ff5(0x1a9)](_0x6025b9+'\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)'),fetch(_0x402aef);console[_0x135ff5(0x1a9)](_0x6025b9+_0x135ff5(0x153)+_0x431274['pathname']);const _0xc02b04=await _0x5efff7(_0x3218b7,_0x402aef,_0x431274);if(_0xc02b04)return console['log'](_0x6025b9+_0x135ff5(0x104)+_0x431274[_0x135ff5(0xef)]),_0xc02b04;return console[_0x135ff5(0x1a9)](_0x6025b9+_0x135ff5(0x205)+_0x431274[_0x135ff5(0xef)]+_0x135ff5(0x1ff)),fetch(_0x402aef);}async function _0x310357(_0x240f9f,_0x27c6c5){const _0x4acf06=_0x1a9357,_0x244c91=new URL(_0x240f9f['url']);console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x11a)+_0x244c91[_0x4acf06(0xef)]+_0x244c91[_0x4acf06(0x1ab)]),console['log'](_0x6025b9+'\x20\x20\x20enhancementUrl\x20in\x20config:\x20'+(_0x27c6c5[_0x4acf06(0x139)]||_0x4acf06(0x192))),console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x168));const _0x277e8e=await fetch(_0x240f9f);console['log'](_0x6025b9+_0x4acf06(0x1ba)+_0x277e8e['status']+'\x20'+_0x277e8e[_0x4acf06(0x1f2)]),console['log'](_0x6025b9+_0x4acf06(0x188)+_0x277e8e[_0x4acf06(0x1b0)][_0x4acf06(0x14c)](_0x4acf06(0x1ed)));if(!_0x1f0ed0(_0x277e8e))return console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x10b)),_0x277e8e;console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x183));const _0x1cf821=_0x1a1d38(_0x277e8e,'GET');console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x12b));const _0x4d508d=await _0x411c39(_0x27c6c5,_0x240f9f),_0x31378f=_0x4d508d?'enhancement':_0x4acf06(0x140);console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x1bd)+_0x31378f);const _0x3e0a94=_0x4d508d??_0x1cf821,_0x187e25=_0x31378f===_0x4acf06(0x136)||_0x244c91[_0x4acf06(0x147)]['has'](_0x4acf06(0x184))||_0x244c91[_0x4acf06(0x147)]['has'](_0x4acf06(0x136))||_0x244c91[_0x4acf06(0x147)][_0x4acf06(0x14b)](_0x4acf06(0x139));console['log'](_0x6025b9+'\x20\x20\x20shouldInjectOverlay:\x20'+_0x187e25);try{console['log'](_0x6025b9+_0x4acf06(0xed));const _0x528384=await _0x3b12bf(_0x27c6c5,_0x3e0a94,_0x31378f,_0x187e25);return console[_0x4acf06(0x1a9)](_0x6025b9+_0x4acf06(0x14e)),_0x528384;}catch(_0x1df889){return console[_0x4acf06(0x1d0)](_0x6025b9+'\x20\x20\x20Failed\x20to\x20rewrite\x20document:',_0x1df889),_0x305b1e('info','Failed\x20to\x20rewrite\x20document',_0x1df889),_0x3e0a94;}}return _0x42d8cc(_0x57d10a);})());
|
|
1
|
+
'use strict';function _0x1e2b(){const _0x3be38e=['object-src\x20\x27none\x27','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','function','method','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','data','modulepreload','value','add','production','match','\x20clients.claim()\x20complete','5592290mxPCJg','custom','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','content-security-policy','\x20\x20\x20BYPASS:\x20','8517450ywcSdB','data-enhance-runtime-bootstrap','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','enumerable','\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20(','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','\x20\x20\x20mode:\x20','x-enhance-routing','text/html','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','statusText','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','cross-origin-embedder-policy','sharedworker','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','map','text','enhance:disable','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20chars)','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20\x20try\x20{','https://','4094532DlhYxi','toString','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','/resolve','cross-origin-resource-policy','publishableKey','\x20Calling\x20clients.claim()...','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','https://assets.enhancelabs.ai/overlay.js','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','mode','\x20shouldRouteAsset:\x20','error','71432YoBfeJ','skipWaiting','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','body','\x20Config\x20reset','Failed\x20to\x20rewrite\x20document','runtimeScriptPath','log','[Enhance\x20SW\x20Bootstrap]','Enhancement\x20document\x20CORS\x20blocked','Enhancement\x20CORS\x20blocked','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','fetch','8BIQpZa','\x20\x20\x20\x20}','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','image','overlayPath','HEAD','script','message','install','\x20ACTIVATE\x20event','slice','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','204623mmPuXd','vite-hmr','access-control-allow-origin','opaque','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','defineProperty','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','Enhancement\x20document\x20fetch\x20failed','overlay','toLowerCase','cache-control','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','http://','\x20\x20\x20Applying\x20permissive\x20CSP...','toISOString','search','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','prototype','operatingPath','debug','length','[Enhance\x20SW\x20Document]','host','6scvIeP','hash','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','/webpack-hot-middleware','\x20\x20\x20shouldInjectOverlay:\x20','/__vite_ping','x-enhance-document','/__parcel_hmr','includes','\x20Clearing\x20cached\x20enhancement\x20(navigation\x20without\x20param)','clone','\x20\x20\x20securityMode:\x20','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','\x20Enhancement\x20','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','<script\x20data-enhance-hmr-bridge>','test','securityMode','delete','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','\x20\x20\x20\x20};','worker-src\x20\x27self\x27\x20blob:','/sw-enhance.js','access-control-allow-credentials','rewritten','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','\x20❌\x20Publishable\x20key\x20validation\x20failed:\x20','destination','\x20\x20\x20\x20\x20\x20return\x20proxied;','callbackBypass','json','cors','pathname','\x5cu003e','\x20\x20\x20Script\x20inserted\x20into\x20document','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','enhance:configure','\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','object','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','startsWith','2160728LdmBky','https://api.enhancelabs.ai','})();','X-Enhance-Publishable-Key','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','src','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','__esModule','\x20skipWaiting()\x20complete','set-cookie2','permissive','addEventListener','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','style','getOwnPropertyDescriptor','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','waitUntil','\x20Failed\x20to\x20parse\x20operatingUrl:\x20','searchParams','\x20Invalid\x20message\x20data\x20-\x20ignoring','media-src\x20*\x20data:\x20blob:','(function(){',',\x20destination:\x20','9783132mWXgGb','font','Enhancement\x20document\x20miss\x20','push','clear','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','stringify','default-src\x20\x27self\x27\x20blob:\x20data:','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20Enhancement\x20HIT\x20for\x20','\x20INSTALL\x20event','backendUrl','\x20Customer\x20config\x20updated:','set','/sockjs-node','status','\x20\x20}\x20catch\x20(error)\x20{','\x20Cannot\x20resolve\x20enhancement\x20-\x20no\x20publishable\x20key\x20configured','\x20\x20\x20\x20\x20\x20}','\x20\x20\x20Rewriting\x20entry\x20references...','/auth/callback','\x0a</head>','/webpackhotmiddleware','replace','/assets/enhance-runtime.js','\x20\x20\x20\x20\x20\x20try\x20{','default','700UXyoeO','6GqrbaP','location','config','\x5cu003c','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','\x20\x20\x20source:\x20','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','stylesheet','\x0a</body>','/__snowpack__','include','\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','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','\x20\x20\x20Fetching\x20enhancement\x20document...','href','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','GET','55mfiAIm','hasOwnProperty','\x20\x20try\x20{','\x20matches\x20callbackBypass','headers','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x20Calling\x20skipWaiting()...','follow','connect-src\x20*','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','content-type',',\x20type:\x20','\x20\x20\x20Production\x20response:\x20','\x20\x20\x20Fetch\x20error:','[Enhance\x20SW]','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','\x20via\x20','get','info','\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it','$&\x0a','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','activate','enhancement','\x20\x20\x20enhancementUrl:\x20','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','\x20-\x20falling\x20back\x20to\x20production','\x20\x20\x20Content-Type:\x20','font-src\x20*\x20data:','type','\x20for\x20','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','url','\x20\x20\x20Enhancement\x20document\x20URL:\x20','\x20Enhancement\x20ID\x20from\x20navigation:\x20','origin','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','/vite/client','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','x-enhance-document-source','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20Not\x20OK\x20(','/_next/webpack-hmr','none','enhancementUrl','parse','set-cookie','(async\x20()\x20=>\x20{','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','navigate','enhancementBase','\x20Service\x20Worker\x20script\x20loaded\x20at\x20',',\x20null,\x202));','full','/__webpack_hmr','content-length','\x20\x20\x20Response:\x20','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','getOwnPropertyNames','/webpack-dev-server','join','\x20\x20\x20Fetching\x20production\x20response...','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20Document\x20fetch\x20error:','\x20Resolving\x20enhancement\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20\x20\x20\x20\x20\x20return\x20false;','has','endsWith','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null'];_0x1e2b=function(){return _0x3be38e;};return _0x1e2b();}(function(_0xc73297,_0x583470){const _0x506dbc=_0x2948,_0x3614d7=_0xc73297();while(!![]){try{const _0x557bb6=-parseInt(_0x506dbc(0x20f))/0x1*(parseInt(_0x506dbc(0x203))/0x2)+parseInt(_0x506dbc(0x22a))/0x3*(-parseInt(_0x506dbc(0x256))/0x4)+-parseInt(_0x506dbc(0x2f2))/0x5*(parseInt(_0x506dbc(0x289))/0x6)+-parseInt(_0x506dbc(0x288))/0x7*(-parseInt(_0x506dbc(0x1f6))/0x8)+-parseInt(_0x506dbc(0x1e8))/0x9+-parseInt(_0x506dbc(0x2f9))/0xa+parseInt(_0x506dbc(0x29b))/0xb*(parseInt(_0x506dbc(0x26d))/0xc);if(_0x557bb6===_0x583470)break;else _0x3614d7['push'](_0x3614d7['shift']());}catch(_0x358ee1){_0x3614d7['push'](_0x3614d7['shift']());}}}(_0x1e2b,0x9d84e));function _0x2948(_0x1b1c43,_0x26787a){_0x1b1c43=_0x1b1c43-0x1d6;const _0x1e2b7e=_0x1e2b();let _0x294809=_0x1e2b7e[_0x1b1c43];return _0x294809;}var EnhanceSW=((()=>{const _0x3b324f=_0x2948;var _0x274a82=Object[_0x3b324f(0x216)],_0x546463=Object[_0x3b324f(0x264)],_0x11b7c5=Object[_0x3b324f(0x2d7)],_0x54f2a1=Object[_0x3b324f(0x224)][_0x3b324f(0x29c)],_0x529864=(_0x4eb69e,_0x4c5598)=>{for(var _0x52af7c in _0x4c5598)_0x274a82(_0x4eb69e,_0x52af7c,{'get':_0x4c5598[_0x52af7c],'enumerable':!![]});},_0x2fa068=(_0x39cc37,_0x3efc0f,_0x2f7594,_0x14a0d6)=>{const _0x2d8403=_0x3b324f;if(_0x3efc0f&&typeof _0x3efc0f==='object'||typeof _0x3efc0f===_0x2d8403(0x2e8)){for(let _0x2eb2cb of _0x11b7c5(_0x3efc0f))if(!_0x54f2a1['call'](_0x39cc37,_0x2eb2cb)&&_0x2eb2cb!==_0x2f7594)_0x274a82(_0x39cc37,_0x2eb2cb,{'get':()=>_0x3efc0f[_0x2eb2cb],'enumerable':!(_0x14a0d6=_0x546463(_0x3efc0f,_0x2eb2cb))||_0x14a0d6[_0x2d8403(0x2fc)]});}return _0x39cc37;},_0x22afdd=_0x4fd48e=>_0x2fa068(_0x274a82({},_0x3b324f(0x25d),{'value':!![]}),_0x4fd48e),_0x272040={};_0x529864(_0x272040,{'log':()=>_0x27b3ca});var _0x478e77=_0x3b324f(0x250),_0x4a179f=_0x3b324f(0x1e2);function _0x288361(_0x5476da){const _0x242c07=_0x3b324f;if(!_0x5476da[_0x242c07(0x255)]('/'))return'/'+_0x5476da;return _0x5476da;}function _0x4f5fd8(_0x50c127,_0x3f0165){const _0x2cec9f=_0x3b324f,_0x489b92=new URL(_0x50c127[_0x2cec9f(0x1e9)]()),_0x5b0430=_0x489b92['pathname'][_0x2cec9f(0x2e2)]('/')?_0x489b92['pathname'][_0x2cec9f(0x20d)](0x0,-0x1):_0x489b92[_0x2cec9f(0x24c)],_0x1773b8=_0x3f0165['pathname']['startsWith']('/')?_0x3f0165[_0x2cec9f(0x24c)]:'/'+_0x3f0165[_0x2cec9f(0x24c)];return _0x489b92[_0x2cec9f(0x24c)]=(''+_0x5b0430+_0x1773b8)['replace'](/\/+/g,'/'),_0x489b92[_0x2cec9f(0x222)]=_0x3f0165[_0x2cec9f(0x222)],_0x489b92[_0x2cec9f(0x22b)]='',_0x489b92;}var _0x36fc3e='[Enhance\x20SW\x20Routing]',_0xcb6e20=_0x3b324f(0x259),_0x19910d=new Set([_0x3b324f(0x209),_0x3b324f(0x263),_0x3b324f(0x26e),_0x3b324f(0x206),'worker',_0x3b324f(0x1dd),_0x3b324f(0x2ec)]);function _0x532d3b(_0x15f65b){const _0x505c44=_0x3b324f,_0x251432=_0x15f65b[_0x505c44(0x2e9)]===_0x505c44(0x29a)||_0x15f65b[_0x505c44(0x2e9)]===_0x505c44(0x208);return _0x251432;}function _0x51bfc9(_0x49b7d2,_0x15a733){const _0x422108=_0x288361(_0x15a733),_0x4c3aa3=_0x49b7d2['callbackBypassNormalized']['some'](_0x1aefe7=>_0x422108['startsWith'](_0x1aefe7));return _0x4c3aa3;}function _0x469cda(_0x3ff6b2,_0x73eb05,_0x4feef2){const _0x5dadd8=_0x3b324f,_0x204fd8=_0x73eb05[_0x5dadd8(0x247)];if(!_0x204fd8||!_0x19910d[_0x5dadd8(0x2e1)](_0x204fd8))return![];if(_0x53ae15(_0x3ff6b2,_0x4feef2))return console[_0x5dadd8(0x1fd)](_0x36fc3e+_0x5dadd8(0x1f4)+_0x4feef2[_0x5dadd8(0x24c)]+'\x20is\x20overlay\x20asset\x20-\x20not\x20routing'),![];if(_0x41186a(_0x3ff6b2,_0x4feef2))return console['log'](_0x36fc3e+_0x5dadd8(0x1f4)+_0x4feef2[_0x5dadd8(0x24c)]+_0x5dadd8(0x1d9)),![];if(_0x4feef2[_0x5dadd8(0x2bf)]!==self[_0x5dadd8(0x28a)][_0x5dadd8(0x2bf)])return![];return!![];}async function _0x67fa6e(_0x158fa4,_0x44a221,_0x3351f1){const _0x14be72=_0x3b324f;console[_0x14be72(0x1fd)](_0x36fc3e+'\x20fetchFromEnhancement:\x20'+_0x3351f1['pathname']);if(!_0x158fa4['enhancementBase'])return console[_0x14be72(0x1fd)](_0x36fc3e+_0x14be72(0x2f5)),null;const _0x2b9668=_0x5564bb(_0x158fa4,_0x3351f1);console[_0x14be72(0x1fd)](_0x36fc3e+'\x20\x20\x20Enhancement\x20URL:\x20'+_0x2b9668['toString']());const _0x3a2a65=new Headers(_0x44a221[_0x14be72(0x29f)]);_0x3a2a65[_0x14be72(0x27a)](_0x14be72(0x1d7),_0x14be72(0x2b2)),_0x3a2a65[_0x14be72(0x23c)](_0x14be72(0x229));_0x158fa4[_0x14be72(0x1ed)]&&_0x3a2a65[_0x14be72(0x27a)](_0xcb6e20,_0x158fa4[_0x14be72(0x1ed)]);const _0x24d0cc=new Request(_0x2b9668['toString'](),{'method':_0x44a221[_0x14be72(0x2e9)],'headers':_0x3a2a65,'credentials':'include','redirect':_0x44a221['redirect'],'cache':_0x14be72(0x287),'mode':_0x14be72(0x24b)});try{console[_0x14be72(0x1fd)](_0x36fc3e+'\x20\x20\x20Fetching\x20from\x20enhancement...');const _0x59e403=await fetch(_0x24d0cc);console[_0x14be72(0x1fd)](_0x36fc3e+'\x20\x20\x20Response:\x20'+_0x59e403[_0x14be72(0x27c)]+'\x20'+_0x59e403[_0x14be72(0x1da)]+_0x14be72(0x2a6)+_0x59e403['type']);if(_0x59e403[_0x14be72(0x2b8)]===_0x14be72(0x212))return console[_0x14be72(0x1fd)](_0x36fc3e+_0x14be72(0x2f4)),_0x27b3ca(_0x14be72(0x2ad),_0x14be72(0x200),_0x2b9668[_0x14be72(0x1e9)]()),null;if(!_0x59e403['ok'])return console[_0x14be72(0x1fd)](_0x36fc3e+_0x14be72(0x2c5)+_0x59e403[_0x14be72(0x27c)]+')\x20-\x20returning\x20null'),_0x27b3ca(_0x14be72(0x226),'Enhancement\x20miss\x20'+_0x59e403[_0x14be72(0x27c)]+_0x14be72(0x2b9)+_0x2b9668[_0x14be72(0x24c)]),null;return console[_0x14be72(0x1fd)](_0x36fc3e+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),_0x3a1786(_0x59e403,_0x44a221[_0x14be72(0x2e9)]);}catch(_0x3cb96f){return console[_0x14be72(0x1f5)](_0x36fc3e+_0x14be72(0x2a8),_0x3cb96f),_0x27b3ca('info','Enhancement\x20fetch\x20failed',_0x3cb96f),null;}}async function _0x2372c4(_0x10509e,_0x287282){const _0xc6eaa7=_0x3b324f,_0x2afc3a=new URL(_0x287282['url']);console[_0xc6eaa7(0x1fd)](_0x36fc3e+'\x20fetchEnhancementDocument:\x20'+_0x2afc3a[_0xc6eaa7(0x24c)]+_0x2afc3a[_0xc6eaa7(0x222)]);if(!_0x10509e[_0xc6eaa7(0x2ce)])return console[_0xc6eaa7(0x1fd)](_0x36fc3e+_0xc6eaa7(0x2bb)),null;const _0x27ce2a=_0x5564bb(_0x10509e,_0x2afc3a);console[_0xc6eaa7(0x1fd)](_0x36fc3e+_0xc6eaa7(0x2bd)+_0x27ce2a[_0xc6eaa7(0x1e9)]());const _0xb02ddc=new Headers(_0x287282[_0xc6eaa7(0x29f)]);_0xb02ddc[_0xc6eaa7(0x27a)]('x-enhance-routing','enhancement-document'),_0xb02ddc['delete']('host'),_0xb02ddc['delete'](_0xc6eaa7(0x2d3));_0x10509e[_0xc6eaa7(0x1ed)]&&_0xb02ddc['set'](_0xcb6e20,_0x10509e['publishableKey']);const _0x464f8c=new Request(_0x27ce2a['toString'](),{'method':_0xc6eaa7(0x29a),'headers':_0xb02ddc,'credentials':_0xc6eaa7(0x294),'redirect':_0xc6eaa7(0x2a2),'cache':_0xc6eaa7(0x287),'mode':_0xc6eaa7(0x24b)});try{console[_0xc6eaa7(0x1fd)](_0x36fc3e+_0xc6eaa7(0x297));const _0x52e612=await fetch(_0x464f8c);console[_0xc6eaa7(0x1fd)](_0x36fc3e+_0xc6eaa7(0x2d4)+_0x52e612['status']+'\x20'+_0x52e612['statusText']+_0xc6eaa7(0x2a6)+_0x52e612[_0xc6eaa7(0x2b8)]),console[_0xc6eaa7(0x1fd)](_0x36fc3e+_0xc6eaa7(0x2b6)+_0x52e612[_0xc6eaa7(0x29f)][_0xc6eaa7(0x2ac)](_0xc6eaa7(0x2a5)));if(_0x52e612[_0xc6eaa7(0x2b8)]===_0xc6eaa7(0x212))return console[_0xc6eaa7(0x1fd)](_0x36fc3e+_0xc6eaa7(0x2f4)),_0x27b3ca(_0xc6eaa7(0x2ad),_0xc6eaa7(0x1ff),_0x27ce2a['toString']()),null;if(!_0x52e612['ok'])return console[_0xc6eaa7(0x1fd)](_0x36fc3e+_0xc6eaa7(0x2c5)+_0x52e612['status']+')\x20-\x20returning\x20null'),_0x27b3ca(_0xc6eaa7(0x226),_0xc6eaa7(0x26f)+_0x52e612[_0xc6eaa7(0x27c)]+'\x20for\x20'+_0x27ce2a[_0xc6eaa7(0x24c)]),null;if(!_0x1892ba(_0x52e612))return console[_0xc6eaa7(0x1fd)](_0x36fc3e+_0xc6eaa7(0x1ea)),null;return console[_0xc6eaa7(0x1fd)](_0x36fc3e+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document'),_0x3a1786(_0x52e612,'GET');}catch(_0x509664){return console[_0xc6eaa7(0x1f5)](_0x36fc3e+_0xc6eaa7(0x2dd),_0x509664),_0x27b3ca(_0xc6eaa7(0x2ad),_0xc6eaa7(0x21a),_0x509664),null;}}function _0x5564bb(_0x308d77,_0xad4d60){const _0x140727=_0x3b324f;if(!_0x308d77['enhancementBase'])throw new Error(_0x140727(0x296));return _0x4f5fd8(_0x308d77[_0x140727(0x2ce)],_0xad4d60);}function _0x3a1786(_0x210d98,_0x520334){const _0x4e38cc=_0x3b324f,_0x8e5d1d=_0x210d98[_0x4e38cc(0x234)](),_0x2e56dd=new Headers(_0x8e5d1d['headers']);_0x2e56dd[_0x4e38cc(0x23c)](_0x4e38cc(0x211)),_0x2e56dd[_0x4e38cc(0x23c)](_0x4e38cc(0x243)),_0x2e56dd['delete']('access-control-expose-headers'),_0x2e56dd[_0x4e38cc(0x27a)]('x-enhance-enhancement','hit'),_0x1795f1(_0x2e56dd);const _0x49cd23=_0x520334===_0x4e38cc(0x208)?null:_0x8e5d1d[_0x4e38cc(0x1f9)];return new Response(_0x49cd23,{'status':_0x8e5d1d['status'],'statusText':_0x8e5d1d[_0x4e38cc(0x1da)],'headers':_0x2e56dd});}function _0x1892ba(_0x13bdfb){const _0x9c31cb=_0x3b324f,_0x47ad68=_0x13bdfb[_0x9c31cb(0x29f)]['get'](_0x9c31cb(0x2a5));return _0x47ad68!=null&&_0x47ad68[_0x9c31cb(0x232)](_0x9c31cb(0x1d8));}function _0x53ae15(_0x3727b7,_0x110d1e){const _0x4f6dc4=_0x3b324f;return _0x4d31ac(_0x110d1e,_0x3727b7[_0x4f6dc4(0x207)]);}function _0x41186a(_0x503ef5,_0x5a4a9f){const _0x504473=_0x3b324f;return _0x294b39(_0x5a4a9f,_0x503ef5[_0x504473(0x1fc)]);}function _0x4d31ac(_0x265d1b,_0x1c1444){const _0x51360a=_0x3b324f;if(!_0x1c1444)return![];if(_0x1c1444[_0x51360a(0x255)](_0x51360a(0x21f))||_0x1c1444[_0x51360a(0x255)](_0x51360a(0x1e7)))return _0x265d1b[_0x51360a(0x298)]===_0x1c1444;const _0x23ceee=_0x11b81d(_0x1c1444);if(!_0x23ceee)return![];const _0x233b75=''+_0x265d1b[_0x51360a(0x24c)]+_0x265d1b['search'];if(_0x233b75===_0x23ceee)return!![];if(_0x265d1b[_0x51360a(0x222)]==='?import')return _0x265d1b['pathname']===_0x23ceee;return![];}function _0x294b39(_0x3bdcfa,_0x530330){const _0x55aa7e=_0x3b324f;if(!_0x530330)return![];if(_0x530330[_0x55aa7e(0x255)]('http://')||_0x530330[_0x55aa7e(0x255)](_0x55aa7e(0x1e7)))return _0x3bdcfa[_0x55aa7e(0x298)]===_0x530330;const _0x34804d=_0x11b81d(_0x530330);if(!_0x34804d)return![];const _0x44d042=''+_0x3bdcfa[_0x55aa7e(0x24c)]+_0x3bdcfa[_0x55aa7e(0x222)];return _0x44d042===_0x34804d;}function _0x11b81d(_0x2fc931){const _0xee79f6=_0x3b324f;if(!_0x2fc931)return _0x2fc931;if(_0x2fc931[_0xee79f6(0x255)]('http://')||_0x2fc931['startsWith'](_0xee79f6(0x1e7)))return _0x2fc931;const _0x349a9c=_0x2fc931['replace'](/^\.\//,'');if(_0x349a9c[_0xee79f6(0x255)]('/'))return _0x349a9c;return'/'+_0x349a9c;}function _0x1795f1(_0x291039){const _0x3c8be0=_0x3b324f;_0x291039[_0x3c8be0(0x23c)]('set-cookie'),_0x291039[_0x3c8be0(0x23c)](_0x3c8be0(0x25f));}function _0x56791c(_0x2df568){const _0x54d04c=_0x3b324f,_0x2a5327=[_0x54d04c(0x274),_0x54d04c(0x24f),'style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','img-src\x20*\x20data:\x20blob:',_0x54d04c(0x2b7),_0x54d04c(0x2a3),_0x54d04c(0x26a),_0x54d04c(0x241),_0x54d04c(0x2e4)],_0x37c06b=_0x45778b(_0x2df568);return _0x37c06b&&_0x2a5327['push'](_0x37c06b),_0x2a5327[_0x54d04c(0x2d9)](';\x20');}function _0x7e4d62(_0x5b3c73){const _0x32d4d7=_0x3b324f;_0x5b3c73['delete'](_0x32d4d7(0x2ca)),_0x5b3c73[_0x32d4d7(0x23c)](_0x32d4d7(0x25f));}function _0x45778b(_0x11b9c8){if(!_0x11b9c8)return null;const _0x13d1e1=_0x11b9c8['match'](/frame-ancestors\s+([^;]+)/i);if(!_0x13d1e1)return null;return'frame-ancestors\x20'+_0x13d1e1[0x1]['trim']();}function _0x125cbe(_0x388691,_0x296e80){const _0x2be7af=_0x3b324f;if(/<head[^>]*>/i[_0x2be7af(0x23a)](_0x388691)){const _0x4f9ac0=_0x388691[_0x2be7af(0x2f0)](/<head[^>]*>/i);if(_0x4f9ac0){const _0x2fb496=_0x4f9ac0[0x0];return _0x388691[_0x2be7af(0x284)](_0x2fb496,_0x2fb496+'\x0a'+_0x296e80);}}if(/<\/head>/i[_0x2be7af(0x23a)](_0x388691))return _0x388691[_0x2be7af(0x284)](/<\/head>/i,_0x296e80+_0x2be7af(0x282));if(/<body\b[^>]*>/i['test'](_0x388691))return _0x388691['replace'](/<body\b[^>]*>/i,_0x2be7af(0x2af)+_0x296e80);if(/<\/body>/i[_0x2be7af(0x23a)](_0x388691))return _0x388691[_0x2be7af(0x284)](/<\/body>/i,_0x296e80+_0x2be7af(0x292));return _0x296e80+'\x0a'+_0x388691;}var _0x372177=[_0x3b324f(0x210)],_0x4102fe=['/@vite/client','/__vite/client',_0x3b324f(0x2c1),_0x3b324f(0x22f),_0x3b324f(0x27b),_0x3b324f(0x2d8),'/webpack-hmr',_0x3b324f(0x283),_0x3b324f(0x22d),_0x3b324f(0x2d2),_0x3b324f(0x2c6),'/parcel-hmr',_0x3b324f(0x231),_0x3b324f(0x293),'/snowpack/hmr'];function _0x152a35(_0x57755a,_0x499ccd){const _0x6e17b3=_0x59b080(_0x57755a);if(!_0x6e17b3)return _0x499ccd;return _0x125cbe(_0x499ccd,_0x6e17b3);}function _0x59b080(_0x557480){const _0x43db9e=_0x3b324f;if(!_0x557480['enhancementBase'])return null;const _0x4265d4=_0x557480['enhancementBase'][_0x43db9e(0x1e9)](),_0x17ce0e=_0x18ffab(_0x372177),_0x2d03f9=_0x18ffab(_0x4102fe),_0x533c88=[_0x43db9e(0x239),_0x43db9e(0x26b),_0x43db9e(0x29d),_0x43db9e(0x2fb)+JSON['stringify'](_0x4265d4)+');',_0x43db9e(0x1db),_0x43db9e(0x2b4),_0x43db9e(0x28f),_0x43db9e(0x204),_0x43db9e(0x2e5)+JSON['stringify'](_0x17ce0e)+');',_0x43db9e(0x218)+JSON[_0x43db9e(0x273)](_0x2d03f9)+';',_0x43db9e(0x219),'\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{',_0x43db9e(0x262),'\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];',_0x43db9e(0x240),'\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{',_0x43db9e(0x2aa),'\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];',_0x43db9e(0x22c),'\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;',_0x43db9e(0x251),'\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;',_0x43db9e(0x251),'\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;',_0x43db9e(0x1ef),_0x43db9e(0x1e5),_0x43db9e(0x27f),_0x43db9e(0x214),_0x43db9e(0x252),'\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];',_0x43db9e(0x21e),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0x43db9e(0x2c4),_0x43db9e(0x27f),_0x43db9e(0x1de),'\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{',_0x43db9e(0x275),_0x43db9e(0x254),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x43db9e(0x27f),_0x43db9e(0x2e0),_0x43db9e(0x240),_0x43db9e(0x25a),'\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying',_0x43db9e(0x236),'\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;',_0x43db9e(0x248),_0x43db9e(0x240),_0x43db9e(0x2cc),_0x43db9e(0x286),_0x43db9e(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);',_0x43db9e(0x290),_0x43db9e(0x2c4),'\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x43db9e(0x265),'\x20\x20\x20\x20\x20\x20}',_0x43db9e(0x2ea),_0x43db9e(0x240),_0x43db9e(0x217),_0x43db9e(0x28d),_0x43db9e(0x2a4),_0x43db9e(0x1e6),_0x43db9e(0x2b0),'\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x43db9e(0x2ba),_0x43db9e(0x204),_0x43db9e(0x2dc),_0x43db9e(0x2e7),_0x43db9e(0x27d),_0x43db9e(0x201),'\x20\x20}',_0x43db9e(0x258),'</script>'];return _0x533c88[_0x43db9e(0x2d9)]('\x0a');}function _0x18ffab(_0x3c32b9){const _0x1bc586=_0x3b324f,_0x3894f4=new Set(),_0x3a7acb=[];for(const _0x5991d9 of _0x3c32b9){const _0x1a2f1b=_0x5991d9[_0x1bc586(0x21c)]();if(_0x3894f4[_0x1bc586(0x2e1)](_0x1a2f1b))continue;_0x3894f4[_0x1bc586(0x2ee)](_0x1a2f1b),_0x3a7acb[_0x1bc586(0x270)](_0x1a2f1b);}return _0x3a7acb;}var _0xb93fc1=_0x3b324f(0x1fe);function _0x1fbdcf(_0x361ae7,_0x3782ba){const _0x381e2d=_0x3b324f;console[_0x381e2d(0x1fd)](_0xb93fc1+'\x20injectRuntimeBootstrap()\x20called'),console['log'](_0xb93fc1+'\x20\x20\x20runtimeScriptPath:\x20'+_0x361ae7['runtimeScriptPath']),console[_0x381e2d(0x1fd)](_0xb93fc1+'\x20\x20\x20overlayPath:\x20'+_0x361ae7[_0x381e2d(0x207)]);if(_0x3782ba['includes'](_0x381e2d(0x2fa)))return console[_0x381e2d(0x1fd)](_0xb93fc1+_0x381e2d(0x2ae)),_0x3782ba;const _0x59a03f=_0x1c3190(_0x361ae7);if(!_0x59a03f)return console[_0x381e2d(0x1fd)](_0xb93fc1+_0x381e2d(0x2f6)),_0x3782ba;console['log'](_0xb93fc1+_0x381e2d(0x2fd)+_0x59a03f['length']+_0x381e2d(0x1e4));const _0x1cffb4=_0x125cbe(_0x3782ba,_0x59a03f);return console['log'](_0xb93fc1+_0x381e2d(0x24e)),_0x1cffb4;}function _0x1c3190(_0x3a6b1c){const _0x19515b=_0x3b324f,_0x43c211=_0x3a6b1c[_0x19515b(0x1fc)];if(!_0x43c211)return console[_0x19515b(0x1fd)](_0xb93fc1+_0x19515b(0x2e3)),null;const _0x43bb7c=_0x260f0f(_0x3a6b1c);console[_0x19515b(0x1fd)](_0xb93fc1+'\x20Bootstrap\x20options:',JSON[_0x19515b(0x273)](_0x43bb7c,null,0x2));const _0x395548=_0x306fbe(_0x43bb7c),_0xeb37c1=JSON['stringify'](_0x43c211),_0x3b1bee=[_0x19515b(0x299),_0x19515b(0x2cb),_0x19515b(0x29d),_0x19515b(0x245)+_0xeb37c1+';',_0x19515b(0x2a0),_0x19515b(0x23e),_0x19515b(0x2c2),'\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);',_0x19515b(0x215),_0x19515b(0x1f8),_0x19515b(0x2d6),'\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);',_0x19515b(0x28f),'\x20\x20\x20\x20}',_0x19515b(0x2df)+_0x395548+_0x19515b(0x2d0),'\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init('+_0x395548+');','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);',_0x19515b(0x1df),_0x19515b(0x213),_0x19515b(0x23d),_0x19515b(0x295),_0x19515b(0x2fe),_0x19515b(0x223),_0x19515b(0x2c0),'\x20\x20\x20\x20}','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20}\x20catch\x20(error)\x20{',_0x19515b(0x2d5),'\x20\x20}',_0x19515b(0x258),'</script>'];return _0x3b1bee[_0x19515b(0x2d9)]('\x0a');}function _0x260f0f(_0x5ac0a1){const _0x523a2f=_0x3b324f,_0x259b41={'publishableKey':_0x5ac0a1[_0x523a2f(0x1ed)],'callbackBypass':_0x5ac0a1[_0x523a2f(0x249)],'__development':{'enableOverlayHmr':_0x5ac0a1['overlayEnableViteHmr'],'overlayPath':_0x5ac0a1[_0x523a2f(0x207)],'security':_0x5ac0a1[_0x523a2f(0x23b)],'backendUrl':_0x5ac0a1[_0x523a2f(0x278)]}};return _0x259b41;}function _0x306fbe(_0x195350){const _0x383409=_0x3b324f;return JSON[_0x383409(0x273)](_0x195350)[_0x383409(0x284)](/</g,_0x383409(0x28c))[_0x383409(0x284)](/>/g,_0x383409(0x24d));}function _0x10b4b8(_0x4134c4,_0x41dbe9){const _0xd7f2f9=_0x3b324f,_0x4ca92a=_0xe14006=>_0x4d1881(_0x4134c4,_0xe14006),_0x36126f=_0x3ecb75=>_0x44e5e4(_0x4134c4,_0x3ecb75);return _0x41dbe9[_0xd7f2f9(0x284)](/<script\b[^>]*>/gi,_0x4ca92a)['replace'](/<link\b[^>]*>/gi,_0x36126f);}function _0x3b2066(_0x2ae398){const _0x101033=_0x3b324f;return _0x2ae398[_0x101033(0x284)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x4d1881(_0x143fd3,_0x36b442){const _0x12f1cb=_0x3b324f,_0x50158e=_0x503d7b(_0x36b442,_0x12f1cb(0x25b));if(!_0x50158e)return _0x36b442;const _0x1182f3=_0x3a742e(_0x143fd3,_0x50158e['value']);if(!_0x1182f3||_0x1182f3===_0x50158e['value'])return _0x36b442;const _0x7a2071=_0x50158e['full'][_0x12f1cb(0x284)](_0x50158e[_0x12f1cb(0x2ed)],_0x1182f3);return _0x36b442[_0x12f1cb(0x284)](_0x50158e['full'],_0x7a2071);}function _0x44e5e4(_0x1ef233,_0x2cc46a){const _0x4a44b2=_0x3b324f,_0x591094=_0x2cc46a['match'](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x591094)return _0x2cc46a;const _0x1b48ef=_0x591094[0x2][_0x4a44b2(0x21c)]();if(_0x1b48ef!==_0x4a44b2(0x291)&&_0x1b48ef!=='modulepreload')return _0x2cc46a;const _0x383354=_0x503d7b(_0x2cc46a,_0x4a44b2(0x298));if(!_0x383354)return _0x2cc46a;const _0x58fb1a=_0x3a742e(_0x1ef233,_0x383354[_0x4a44b2(0x2ed)]);if(!_0x58fb1a||_0x58fb1a===_0x383354[_0x4a44b2(0x2ed)])return _0x2cc46a;const _0x7f0179=_0x383354['full'][_0x4a44b2(0x284)](_0x383354[_0x4a44b2(0x2ed)],_0x58fb1a);return _0x2cc46a[_0x4a44b2(0x284)](_0x383354[_0x4a44b2(0x2d1)],_0x7f0179);}function _0x503d7b(_0x232607,_0x337daa){const _0x10c54e=_0x3b324f,_0x16c6f8=new RegExp(_0x337daa+'\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','i'),_0x199075=_0x232607[_0x10c54e(0x2f0)](_0x16c6f8);if(!_0x199075)return null;return{'full':_0x199075[0x0],'value':_0x199075[0x2]};}function _0x3a742e(_0x2785f8,_0x38b447){const _0x3c1ac2=_0x3b324f,_0x33d20c=_0x2d4f26(_0x38b447);if(!_0x33d20c)return null;if(_0x33d20c[_0x3c1ac2(0x2bf)]===self['location'][_0x3c1ac2(0x2bf)])return''+_0x33d20c['pathname']+_0x33d20c[_0x3c1ac2(0x222)];return null;}function _0x2d4f26(_0x53dc5a){const _0x368822=_0x3b324f;try{return new URL(_0x53dc5a,self['location'][_0x368822(0x2bf)]);}catch{return null;}}var _0x426f68=_0x3b324f(0x228);async function _0x5261a1(_0x3dcbed,_0x118da8,_0x409d05,_0x1a4264=!![]){const _0x34b440=_0x3b324f;console[_0x34b440(0x1fd)](_0x426f68+'\x20rewriteDocument()\x20called'),console[_0x34b440(0x1fd)](_0x426f68+_0x34b440(0x28e)+_0x409d05),console[_0x34b440(0x1fd)](_0x426f68+'\x20\x20\x20shouldInjectOverlay:\x20'+_0x1a4264),console[_0x34b440(0x1fd)](_0x426f68+_0x34b440(0x235)+_0x3dcbed['securityMode']);const _0x5acf9c=_0x118da8[_0x34b440(0x234)](),_0x4c87f6=await _0x5acf9c[_0x34b440(0x1e1)]();console[_0x34b440(0x1fd)](_0x426f68+_0x34b440(0x1f1)+_0x4c87f6[_0x34b440(0x227)]+'\x20chars'),console['log'](_0x426f68+'\x20\x20\x20Stripping\x20SRI\x20attributes...');const _0x5b9644=_0x3b2066(_0x4c87f6);console['log'](_0x426f68+_0x34b440(0x280));let _0x3f8b46=_0x10b4b8(_0x3dcbed,_0x5b9644);_0x409d05===_0x34b440(0x2b2)?(console[_0x34b440(0x1fd)](_0x426f68+'\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...'),_0x3f8b46=_0x152a35(_0x3dcbed,_0x3f8b46)):console['log'](_0x426f68+'\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)');_0x1a4264?(console[_0x34b440(0x1fd)](_0x426f68+_0x34b440(0x20e)),_0x3f8b46=_0x1fbdcf(_0x3dcbed,_0x3f8b46)):console[_0x34b440(0x1fd)](_0x426f68+'\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection');console['log'](_0x426f68+'\x20\x20\x20Rewritten\x20HTML\x20length:\x20'+_0x3f8b46[_0x34b440(0x227)]+'\x20chars');const _0x2809b8=new Headers(_0x5acf9c['headers']);_0x2809b8[_0x34b440(0x27a)](_0x34b440(0x21d),'no-store'),_0x2809b8[_0x34b440(0x27a)](_0x34b440(0x230),_0x34b440(0x244)),_0x2809b8[_0x34b440(0x27a)](_0x34b440(0x2c3),_0x409d05),_0x7e4d62(_0x2809b8);if(_0x3dcbed[_0x34b440(0x23b)]!==_0x34b440(0x2f3)){console[_0x34b440(0x1fd)](_0x426f68+_0x34b440(0x220));const _0x57ec13=_0x2809b8['get']('content-security-policy');_0x2809b8[_0x34b440(0x27a)](_0x34b440(0x2f7),_0x56791c(_0x57ec13)),_0x2809b8[_0x34b440(0x23c)]('cross-origin-opener-policy'),_0x2809b8[_0x34b440(0x23c)](_0x34b440(0x1dc)),_0x2809b8['delete'](_0x34b440(0x1ec));}else console[_0x34b440(0x1fd)](_0x426f68+'\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP');return console['log'](_0x426f68+'\x20\x20\x20Document\x20rewrite\x20complete'),new Response(_0x3f8b46,{'status':_0x5acf9c[_0x34b440(0x27c)],'statusText':_0x5acf9c[_0x34b440(0x1da)],'headers':_0x2809b8});}var _0x2e4a6f=_0x3b324f(0x2a9);console[_0x3b324f(0x1fd)](_0x2e4a6f+_0x3b324f(0x2cf)+new Date()[_0x3b324f(0x221)]());var _0x5b6710={'overlayPath':_0x3b324f(0x1f0),'backendUrl':_0x3b324f(0x257),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x3b324f(0x285),'swPath':_0x3b324f(0x242)};console['log'](_0x2e4a6f+'\x20Build\x20config:',JSON[_0x3b324f(0x273)](_0x5b6710,null,0x2));var _0x5ef087={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':_0x3b324f(0x260)},_0x54778b=_0x3b324f(0x259),_0x4b6780=new Map(),_0x347f1b=null,_0x505349=null,_0x409244=null;function _0x779b54(){const _0x379e8c=_0x3b324f,_0xc84d79=_0x505349||'',_0x10e12e=_0x409244;return{..._0x5b6710,..._0x5ef087,'enhancementUrl':_0xc84d79,'enhancementBase':_0x10e12e,'callbackBypassNormalized':_0x5ef087[_0x379e8c(0x249)][_0x379e8c(0x1e0)](_0x51372f=>_0x51372f[_0x379e8c(0x255)]('/')?_0x51372f:'/'+_0x51372f)};}async function _0x4f1a2c(_0x46f48d,_0x48b346){const _0x24ffa5=_0x3b324f,_0x3caaa5=_0x46f48d[_0x24ffa5(0x268)]['get'](_0x24ffa5(0x2b2));if(_0x48b346&&_0x3caaa5){console[_0x24ffa5(0x1fd)](_0x2e4a6f+_0x24ffa5(0x2be)+_0x3caaa5);const _0x479eb6=await _0x1cc263(_0x3caaa5);if(_0x479eb6){_0x347f1b=_0x3caaa5,_0x505349=_0x479eb6;try{_0x409244=new URL(_0x479eb6);}catch{console[_0x24ffa5(0x1f5)](_0x2e4a6f+_0x24ffa5(0x267)+_0x479eb6),_0x409244=null;}}else _0x347f1b=null,_0x505349=null,_0x409244=null;}return _0x48b346&&!_0x3caaa5&&(_0x347f1b&&console[_0x24ffa5(0x1fd)](_0x2e4a6f+_0x24ffa5(0x233)),_0x347f1b=null,_0x505349=null,_0x409244=null),_0x779b54();}function _0x27b3ca(_0x544cbd,_0x5cfdb8,..._0x1a97c1){const _0x6003fb=_0x3b324f;_0x544cbd===_0x6003fb(0x2ad)?console[_0x6003fb(0x2ad)](_0x2e4a6f,_0x5cfdb8,..._0x1a97c1):console[_0x6003fb(0x226)](_0x2e4a6f,_0x5cfdb8,..._0x1a97c1);}async function _0x1cc263(_0x4c9c57){const _0x2661bf=_0x3b324f,_0x5bb3ce=_0x4b6780[_0x2661bf(0x2ac)](_0x4c9c57);if(_0x5bb3ce)return console[_0x2661bf(0x1fd)](_0x2e4a6f+_0x2661bf(0x237)+_0x4c9c57+'\x20resolved\x20from\x20cache:\x20'+_0x5bb3ce),_0x5bb3ce;if(!_0x5ef087[_0x2661bf(0x1ed)])return console[_0x2661bf(0x1f5)](_0x2e4a6f+_0x2661bf(0x27e)),null;const _0x202746=_0x5b6710[_0x2661bf(0x278)]+'/public/enhancements/'+_0x4c9c57+_0x2661bf(0x1eb);console[_0x2661bf(0x1fd)](_0x2e4a6f+_0x2661bf(0x2de)+_0x4c9c57+_0x2661bf(0x2ab)+_0x202746);try{const _0x113913=await fetch(_0x202746,{'headers':{[_0x54778b]:_0x5ef087[_0x2661bf(0x1ed)]}});if(!_0x113913['ok']){let _0x54cc41=await _0x113913[_0x2661bf(0x1e1)]();try{const _0x5e99fb=JSON[_0x2661bf(0x2c9)](_0x54cc41);_0x5e99fb['error']&&(_0x54cc41=_0x5e99fb[_0x2661bf(0x1f5)]);}catch{}return _0x113913[_0x2661bf(0x27c)]===0x193?console[_0x2661bf(0x1f5)](_0x2e4a6f+_0x2661bf(0x246)+_0x54cc41):console[_0x2661bf(0x1f5)](_0x2e4a6f+'\x20Failed\x20to\x20resolve\x20enhancement\x20'+_0x4c9c57+':\x20'+_0x113913[_0x2661bf(0x27c)]+'\x20'+_0x54cc41),null;}const _0x467234=await _0x113913[_0x2661bf(0x24a)](),_0x46be1b=''+_0x5b6710[_0x2661bf(0x278)]+_0x467234[_0x2661bf(0x225)];return console['log'](_0x2e4a6f+'\x20Enhancement\x20'+_0x4c9c57+'\x20resolved\x20to:\x20'+_0x46be1b),_0x4b6780[_0x2661bf(0x27a)](_0x4c9c57,_0x46be1b),_0x46be1b;}catch(_0x57e6c9){return console['error'](_0x2e4a6f+'\x20Error\x20resolving\x20enhancement\x20'+_0x4c9c57+':',_0x57e6c9),null;}}self[_0x3b324f(0x261)](_0x3b324f(0x20b),_0xd84054=>{const _0x1a310c=_0x3b324f;console[_0x1a310c(0x1fd)](_0x2e4a6f+_0x1a310c(0x277)),_0xd84054[_0x1a310c(0x266)](((async()=>{const _0x4b9751=_0x1a310c;console['log'](_0x2e4a6f+_0x4b9751(0x2a1)),await self[_0x4b9751(0x1f7)](),console['log'](_0x2e4a6f+_0x4b9751(0x25e));})()));}),self[_0x3b324f(0x261)](_0x3b324f(0x2b1),_0x5bce3b=>{const _0x47b61e=_0x3b324f;console['log'](_0x2e4a6f+_0x47b61e(0x20c)),_0x5bce3b[_0x47b61e(0x266)](((async()=>{const _0x1cf8a1=_0x47b61e;console[_0x1cf8a1(0x1fd)](_0x2e4a6f+_0x1cf8a1(0x1ee)),await self['clients']['claim'](),console[_0x1cf8a1(0x1fd)](_0x2e4a6f+_0x1cf8a1(0x2f1));})()));}),self['addEventListener'](_0x3b324f(0x20a),_0x50e9a9=>{const _0x44fa21=_0x3b324f,_0x27ebf7=_0x50e9a9[_0x44fa21(0x2eb)];console['log'](_0x2e4a6f+'\x20MESSAGE\x20received:',_0x27ebf7);if(!_0x27ebf7||typeof _0x27ebf7!==_0x44fa21(0x253)){console[_0x44fa21(0x1fd)](_0x2e4a6f+_0x44fa21(0x269));return;}switch(_0x27ebf7[_0x44fa21(0x2b8)]){case _0x478e77:{console[_0x44fa21(0x1fd)](_0x2e4a6f+_0x44fa21(0x238));const _0x318379=_0x27ebf7[_0x44fa21(0x28b)];_0x5ef087={'publishableKey':_0x318379['publishableKey']??'','callbackBypass':_0x318379[_0x44fa21(0x249)]??[_0x44fa21(0x281)],'securityMode':_0x318379[_0x44fa21(0x23b)]??'permissive'},console[_0x44fa21(0x1fd)](_0x2e4a6f+_0x44fa21(0x279),JSON[_0x44fa21(0x273)](_0x5ef087,null,0x2));break;}case _0x4a179f:console[_0x44fa21(0x1fd)](_0x2e4a6f+'\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config'),_0x5ef087={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':_0x44fa21(0x260)},_0x347f1b=null,_0x505349=null,_0x409244=null,_0x4b6780[_0x44fa21(0x271)](),console[_0x44fa21(0x1fd)](_0x2e4a6f+_0x44fa21(0x1fa));break;default:console['log'](_0x2e4a6f+'\x20Unknown\x20message\x20type:\x20'+_0x27ebf7['type']);break;}}),self[_0x3b324f(0x261)](_0x3b324f(0x202),_0x3443e2=>{_0x3443e2['respondWith'](_0x4216b2(_0x3443e2));});async function _0x4216b2(_0x4ebc67){const _0x15cf9b=_0x3b324f,{request:_0x5de828}=_0x4ebc67,_0x809a1b=new URL(_0x5de828[_0x15cf9b(0x2bc)]),_0x1d9a16=_0x5de828[_0x15cf9b(0x1f3)]===_0x15cf9b(0x2cd),_0x5f13ce=_0x1d9a16||_0x809a1b['origin']===self[_0x15cf9b(0x28a)]['origin'];_0x5f13ce&&(console[_0x15cf9b(0x1fd)](_0x2e4a6f+'\x20FETCH:\x20'+_0x5de828[_0x15cf9b(0x2e9)]+'\x20'+_0x809a1b['pathname']+_0x809a1b[_0x15cf9b(0x222)]),console[_0x15cf9b(0x1fd)](_0x2e4a6f+_0x15cf9b(0x1d6)+_0x5de828[_0x15cf9b(0x1f3)]+_0x15cf9b(0x26c)+_0x5de828['destination']));if(!_0x532d3b(_0x5de828))return _0x5f13ce&&console['log'](_0x2e4a6f+_0x15cf9b(0x272)),fetch(_0x5de828);const _0x17b629=_0x1d9a16?await _0x4f1a2c(_0x809a1b,_0x1d9a16):_0x779b54();_0x5f13ce&&console[_0x15cf9b(0x1fd)](_0x2e4a6f+_0x15cf9b(0x2b3)+(_0x17b629[_0x15cf9b(0x2c8)]||_0x15cf9b(0x2c7)));if(_0x51bfc9(_0x17b629,_0x809a1b[_0x15cf9b(0x24c)]))return _0x5f13ce&&console['log'](_0x2e4a6f+_0x15cf9b(0x2f8)+_0x809a1b[_0x15cf9b(0x24c)]+_0x15cf9b(0x29e)),fetch(_0x5de828);if(_0x1d9a16)return console[_0x15cf9b(0x1fd)](_0x2e4a6f+_0x15cf9b(0x1e3)),_0x19f2ab(_0x5de828,_0x17b629);if(!_0x469cda(_0x17b629,_0x5de828,_0x809a1b))return _0x5f13ce&&console[_0x15cf9b(0x1fd)](_0x2e4a6f+_0x15cf9b(0x1f2)),fetch(_0x5de828);console[_0x15cf9b(0x1fd)](_0x2e4a6f+_0x15cf9b(0x25c)+_0x809a1b[_0x15cf9b(0x24c)]);const _0x247fd8=await _0x67fa6e(_0x17b629,_0x5de828,_0x809a1b);if(_0x247fd8)return console[_0x15cf9b(0x1fd)](_0x2e4a6f+_0x15cf9b(0x276)+_0x809a1b[_0x15cf9b(0x24c)]),_0x247fd8;return console[_0x15cf9b(0x1fd)](_0x2e4a6f+'\x20\x20\x20Enhancement\x20MISS\x20for\x20'+_0x809a1b[_0x15cf9b(0x24c)]+_0x15cf9b(0x2b5)),fetch(_0x5de828);}async function _0x19f2ab(_0x132406,_0x2bf875){const _0x4932f1=_0x3b324f,_0x71af29=new URL(_0x132406['url']);console[_0x4932f1(0x1fd)](_0x2e4a6f+'\x20handleNavigationRequest:\x20'+_0x71af29[_0x4932f1(0x24c)]+_0x71af29[_0x4932f1(0x222)]),console[_0x4932f1(0x1fd)](_0x2e4a6f+_0x4932f1(0x2e6)+(_0x2bf875[_0x4932f1(0x2c8)]||_0x4932f1(0x2c7))),console[_0x4932f1(0x1fd)](_0x2e4a6f+_0x4932f1(0x2da));const _0x1cf8ca=await fetch(_0x132406);console[_0x4932f1(0x1fd)](_0x2e4a6f+_0x4932f1(0x2a7)+_0x1cf8ca['status']+'\x20'+_0x1cf8ca['statusText']),console[_0x4932f1(0x1fd)](_0x2e4a6f+_0x4932f1(0x2b6)+_0x1cf8ca[_0x4932f1(0x29f)][_0x4932f1(0x2ac)](_0x4932f1(0x2a5)));if(!_0x1892ba(_0x1cf8ca))return console[_0x4932f1(0x1fd)](_0x2e4a6f+_0x4932f1(0x205)),_0x1cf8ca;console[_0x4932f1(0x1fd)](_0x2e4a6f+'\x20\x20\x20HTML\x20response\x20-\x20processing...');const _0x3536c9=_0x3a1786(_0x1cf8ca,_0x4932f1(0x29a));console['log'](_0x2e4a6f+_0x4932f1(0x2db));const _0x551a72=await _0x2372c4(_0x2bf875,_0x132406),_0x420c05=_0x551a72?'enhancement':_0x4932f1(0x2ef);console[_0x4932f1(0x1fd)](_0x2e4a6f+'\x20\x20\x20Document\x20source:\x20'+_0x420c05);const _0x51e704=_0x551a72??_0x3536c9,_0x4818b=_0x420c05==='enhancement'||_0x71af29[_0x4932f1(0x268)][_0x4932f1(0x2e1)](_0x4932f1(0x21b))||_0x71af29[_0x4932f1(0x268)][_0x4932f1(0x2e1)](_0x4932f1(0x2b2));console[_0x4932f1(0x1fd)](_0x2e4a6f+_0x4932f1(0x22e)+_0x4818b);try{console['log'](_0x2e4a6f+'\x20\x20\x20Rewriting\x20document...');const _0x70aeaf=await _0x5261a1(_0x2bf875,_0x51e704,_0x420c05,_0x4818b);return console['log'](_0x2e4a6f+'\x20\x20\x20Document\x20rewritten\x20successfully'),_0x70aeaf;}catch(_0xe9f9c7){return console[_0x4932f1(0x1f5)](_0x2e4a6f+'\x20\x20\x20Failed\x20to\x20rewrite\x20document:',_0xe9f9c7),_0x27b3ca('info',_0x4932f1(0x1fb),_0xe9f9c7),_0x51e704;}}return _0x22afdd(_0x272040);})());
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type EnhancePluginOptions = {
|
|
4
|
+
publishableKey: string;
|
|
5
|
+
callbackBypass?: string[];
|
|
6
|
+
__development?: {
|
|
7
|
+
enableOverlayHmr?: boolean;
|
|
8
|
+
overlayPath?: string;
|
|
9
|
+
security?: "permissive" | "custom";
|
|
10
|
+
backendUrl?: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
declare const enhance: (options: EnhancePluginOptions) => Plugin;
|
|
4
14
|
|
|
5
|
-
export {
|
|
15
|
+
export { type EnhancePluginOptions, enhance };
|
package/dist/vite/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x4719b7=_0x2653;(function(_0x137e12,_0x1911ac){var _0x26550f=_0x2653,_0x3f8374=_0x137e12();while(!![]){try{var _0x5045fd=parseInt(_0x26550f(0xa9))/0x1*(-parseInt(_0x26550f(0xb3))/0x2)+parseInt(_0x26550f(0xb6))/0x3*(parseInt(_0x26550f(0xac))/0x4)+-parseInt(_0x26550f(0xb9))/0x5+-parseInt(_0x26550f(0xaf))/0x6*(parseInt(_0x26550f(0xb0))/0x7)+parseInt(_0x26550f(0xb2))/0x8*(parseInt(_0x26550f(0xa2))/0x9)+parseInt(_0x26550f(0xb7))/0xa*(-parseInt(_0x26550f(0xa8))/0xb)+parseInt(_0x26550f(0xbb))/0xc*(parseInt(_0x26550f(0xb1))/0xd);if(_0x5045fd===_0x1911ac)break;else _0x3f8374['push'](_0x3f8374['shift']());}catch(_0x4a6eb9){_0x3f8374['push'](_0x3f8374['shift']());}}}(_0x374f,0x87843));import{fileURLToPath}from'url';function _0x374f(){var _0x500b56=['353658VUWPVV','7ljaGBi','13RgibkP','719216nBJfiw','5138ntdWCg','emitFile','enhance-sandbox','37557VESBGF','10MPTuLO','__development','3315420tHTTCH','publishableKey','20293536ugcPGF','Content-Type','<head$1>','\x22;\x0aEnhance.init(','use','url',');\x0a</script>','../assets/enhance-runtime.js','middlewares','63VNPUOA','/sw-enhance.js','asset','replace','/assets/enhance-runtime.js','callbackBypass','5080889womken','431sBYCli','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22','assets/enhance-runtime.js','168vXehxy','utf-8','application/javascript'];_0x374f=function(){return _0x500b56;};return _0x374f();}import{readFile}from'fs/promises';var runtimePath=fileURLToPath(new URL(_0x4719b7(0xa0),import.meta.url)),swPath=fileURLToPath(new URL('../sw-enhance.js',import.meta.url)),RUNTIME_URL=_0x4719b7(0xa6),SW_URL=_0x4719b7(0xa3);function _0x2653(_0x3b5421,_0x554143){_0x3b5421=_0x3b5421-0xa0;var _0x374f2c=_0x374f();var _0x265386=_0x374f2c[_0x3b5421];return _0x265386;}function buildInitScript(_0x5a623f){var _0x1c65f5=_0x4719b7;const _0x678028={'publishableKey':_0x5a623f[_0x1c65f5(0xba)],'callbackBypass':_0x5a623f[_0x1c65f5(0xa7)],'__development':_0x5a623f[_0x1c65f5(0xb8)]},_0x2e087b=JSON['stringify'](_0x678028);return _0x1c65f5(0xaa)+RUNTIME_URL+_0x1c65f5(0xbe)+_0x2e087b+_0x1c65f5(0xc1);}var enhance=_0x57f01f=>{var _0x474d5f=_0x4719b7;let _0x38b105=null,_0x9f8082=null;async function _0x322288(){var _0x1877bd=_0x2653;!_0x38b105&&(_0x38b105=await readFile(runtimePath,_0x1877bd(0xad))),!_0x9f8082&&(_0x9f8082=await readFile(swPath,_0x1877bd(0xad)));}return{'name':_0x474d5f(0xb5),'configureServer'(_0x5e18fc){var _0x3751f9=_0x474d5f;_0x5e18fc[_0x3751f9(0xa1)][_0x3751f9(0xbf)](async(_0x1e21f9,_0x54bc97,_0xb63249)=>{var _0x4a63f5=_0x3751f9;if(_0x1e21f9[_0x4a63f5(0xc0)]===RUNTIME_URL||_0x1e21f9['url']===SW_URL){await _0x322288(),_0x54bc97['setHeader']('Content-Type',_0x4a63f5(0xae)),_0x54bc97['end'](_0x1e21f9['url']===RUNTIME_URL?_0x38b105:_0x9f8082);return;}_0xb63249();});},'configurePreviewServer'(_0x24a80c){var _0x1496da=_0x474d5f;_0x24a80c[_0x1496da(0xa1)][_0x1496da(0xbf)](async(_0x272ae5,_0x3f15d1,_0x91d03e)=>{var _0x5907ec=_0x1496da;if(_0x272ae5[_0x5907ec(0xc0)]===RUNTIME_URL||_0x272ae5['url']===SW_URL){await _0x322288(),_0x3f15d1['setHeader'](_0x5907ec(0xbc),'application/javascript'),_0x3f15d1['end'](_0x272ae5[_0x5907ec(0xc0)]===RUNTIME_URL?_0x38b105:_0x9f8082);return;}_0x91d03e();});},async 'generateBundle'(){var _0x5f52f7=_0x474d5f;await _0x322288(),this[_0x5f52f7(0xb4)]({'type':_0x5f52f7(0xa4),'fileName':_0x5f52f7(0xab),'source':_0x38b105}),this[_0x5f52f7(0xb4)]({'type':'asset','fileName':'sw-enhance.js','source':_0x9f8082});},'transformIndexHtml'(_0x1038ff){var _0x2a975f=_0x474d5f;const _0x497778=buildInitScript(_0x57f01f);return _0x1038ff[_0x2a975f(0xa5)](/<head([^>]*)>/,_0x2a975f(0xbd)+_0x497778);}};};export{enhance};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enhance-eng/sandbox",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20-beta.1ab5433",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Enhance preview bootstrap and tooling package.",
|
|
5
6
|
"license": "MIT",
|
|
6
|
-
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"module": "./dist/index.js",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
@@ -18,9 +18,8 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
|
-
"dist",
|
|
22
|
-
"
|
|
23
|
-
"enhance.config.sample.json"
|
|
21
|
+
"dist/",
|
|
22
|
+
"README.md"
|
|
24
23
|
],
|
|
25
24
|
"bin": {
|
|
26
25
|
"enhance-sandbox": "./dist/cli.js"
|
package/dist/postinstall.d.ts
DELETED
package/dist/postinstall.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const _0x1eff41=_0x2518;(function(_0x156b5d,_0x24a0c1){const _0x3d2db6=_0x2518,_0x18e4d1=_0x156b5d();while(!![]){try{const _0x328bf8=-parseInt(_0x3d2db6(0xed))/0x1*(parseInt(_0x3d2db6(0xfb))/0x2)+parseInt(_0x3d2db6(0xd4))/0x3+-parseInt(_0x3d2db6(0xec))/0x4*(parseInt(_0x3d2db6(0xea))/0x5)+-parseInt(_0x3d2db6(0xd0))/0x6+parseInt(_0x3d2db6(0xd7))/0x7*(-parseInt(_0x3d2db6(0xc5))/0x8)+-parseInt(_0x3d2db6(0xfa))/0x9*(parseInt(_0x3d2db6(0xc6))/0xa)+-parseInt(_0x3d2db6(0xe0))/0xb*(-parseInt(_0x3d2db6(0x104))/0xc);if(_0x328bf8===_0x24a0c1)break;else _0x18e4d1['push'](_0x18e4d1['shift']());}catch(_0x490424){_0x18e4d1['push'](_0x18e4d1['shift']());}}}(_0x5a3b,0x8587f));import{relative,resolve}from'path';import{promises as _0x57d25}from'fs';import{join}from'path';var CONFIG_FILENAME='enhance.config.json';function _0x2518(_0x3b04bb,_0x51bf0e){const _0x5a3b50=_0x5a3b();return _0x2518=function(_0x25185e,_0x996152){_0x25185e=_0x25185e-0xbd;let _0x2a2899=_0x5a3b50[_0x25185e];return _0x2a2899;},_0x2518(_0x3b04bb,_0x51bf0e);}async function loadEnhanceConfig(_0x34e6a2=process[_0x1eff41(0xd1)]()){const _0x485702=_0x1eff41,_0x351c96=join(_0x34e6a2,CONFIG_FILENAME);let _0x39c24e;try{_0x39c24e=await _0x57d25[_0x485702(0xf0)](_0x351c96,_0x485702(0xd5));}catch(_0x11d7cd){if(_0x11d7cd['code']===_0x485702(0xbe))return null;throw new Error(_0x485702(0xe6)+CONFIG_FILENAME+':\x20'+_0x11d7cd[_0x485702(0xd3)]);}let _0x4c183f;try{_0x4c183f=JSON['parse'](_0x39c24e);}catch(_0x47dc7f){throw new Error(_0x485702(0xf6)+CONFIG_FILENAME+':\x20'+_0x47dc7f[_0x485702(0xd3)]);}if(!_0x4c183f||typeof _0x4c183f!==_0x485702(0xe3))throw new Error(CONFIG_FILENAME+'\x20must\x20contain\x20an\x20object');const {publicDir:_0x34326d,swFilename:_0x59c3f3}=_0x4c183f;if(typeof _0x34326d!=='string'||_0x34326d[_0x485702(0xe9)]()[_0x485702(0xca)]===0x0)throw new Error(CONFIG_FILENAME+_0x485702(0x100));if(_0x59c3f3!=null&&(typeof _0x59c3f3!==_0x485702(0xdb)||_0x59c3f3[_0x485702(0xe9)]()[_0x485702(0xca)]===0x0))throw new Error(CONFIG_FILENAME+'\x20has\x20an\x20invalid\x20\x22swFilename\x22;\x20expected\x20a\x20non-empty\x20string');return{'publicDir':_0x34326d['trim'](),'swFilename':typeof _0x59c3f3==='string'?_0x59c3f3[_0x485702(0xe9)]():void 0x0};}import{promises as _0x390276}from'fs';import{createHash}from'crypto';function _0x5a3b(){const _0x4d1e9d=['length','url','./dist/vite/index.d.ts','\x20not\x20found;\x20skipping\x20asset\x20sync','pnpm\x20version\x20patch\x20--no-git-tag-version','\x20→\x20','4150296BePHHE','cwd','^3.22.4','message','2212668KutoRQ','utf8','relativeDestination','2142yJPOLa','skipped','./dist/vite/index.js','push','string','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','./dist/index.cjs','module','MIT','27863GeGiTY','^4.1.1','replace','object','swFilename','/sw-enhance.js','Failed\x20to\x20read\x20','destinationPath','copied','trim','4292845DhByyu','assets/enhance-runtime.js','4JdGXyk','253799PLDGhO','update','status','readFile','info','http://','[enhance-sandbox]\x20Copied\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','publicDir','Invalid\x20JSON\x20in\x20','0.0.0','error','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','179577kfFRfh','2MUejZI','^24.10.1','all','override','./dist/index.d.ts','\x20is\x20missing\x20a\x20non-empty\x20\x22publicDir\x22\x20string','version','code','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','11004hVMdgQ','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','./dist/index.js','\x20(already\x20current)\x20[','manifestPath','exit','../dist/index.js','startsWith','ENOENT','/assets/enhance-runtime.js','catch','bin/enhance-sandbox.js','sw-enhance.js','dist','tsc\x20--noEmit','6024tnmimA','240ppaQBM','enhance.config.sample.json','@enhance-eng/sandbox','public'];_0x5a3b=function(){return _0x4d1e9d;};return _0x5a3b();}import{dirname,join as _0x62512a}from'path';import{fileURLToPath}from'url';var package_default={'name':_0x1eff41(0xc8),'version':'0.3.19','type':_0x1eff41(0xde),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x1eff41(0xdf),'main':'./dist/index.cjs','module':_0x1eff41(0x106),'types':'./dist/index.d.ts','exports':{'.':{'types':_0x1eff41(0xff),'import':'./dist/index.js','require':_0x1eff41(0xdd)},'./vite':{'types':_0x1eff41(0xcc),'import':_0x1eff41(0xd9)}},'files':[_0x1eff41(0xc3),'bin',_0x1eff41(0xc7)],'bin':{'enhance-sandbox':_0x1eff41(0xc1)},'scripts':{'typecheck':_0x1eff41(0xc4),'dev':_0x1eff41(0x103),'dev:build':_0x1eff41(0xdc),'dev:staging':_0x1eff41(0x105),'dev:staging:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','build':_0x1eff41(0xf4),'build:release':_0x1eff41(0xf9),'version':_0x1eff41(0xce)},'dependencies':{'commander':'^11.1.0','zod':_0x1eff41(0xd2)},'devDependencies':{'@types/node':_0x1eff41(0xfc),'javascript-obfuscator':_0x1eff41(0xe1),'tsup':'^8.5.1','vite':'^7.2.4'},'publishConfig':{'access':_0x1eff41(0xc9)}},DEFAULT_SERVICE_WORKER_PATH=_0x1eff41(0xe5),DEFAULT_RUNTIME_PATH=_0x1eff41(0xbf),DIST_SERVICE_WORKER_PATH=_0x1eff41(0xc2),DIST_RUNTIME_PATH=_0x1eff41(0xeb),PACKAGE_VERSION=typeof package_default[_0x1eff41(0x101)]===_0x1eff41(0xdb)?package_default[_0x1eff41(0x101)]:_0x1eff41(0xf7);function normalizeAssetPath(_0x4f0ca0){const _0x2c9d67=_0x1eff41;if(!_0x4f0ca0)return _0x4f0ca0;if(_0x4f0ca0[_0x2c9d67(0xbd)](_0x2c9d67(0xf2))||_0x4f0ca0[_0x2c9d67(0xbd)]('https://'))return _0x4f0ca0;const _0x5d1b5e=_0x4f0ca0[_0x2c9d67(0xe2)](/^\.\//,'');return _0x5d1b5e[_0x2c9d67(0xbd)]('/')?_0x5d1b5e:'/'+_0x5d1b5e;}var distDir=dirname(fileURLToPath(new URL(_0x1eff41(0x10a),import.meta[_0x1eff41(0xcb)])));async function syncAssets(_0x2650b0){const _0x4870b0=_0x1eff41,_0x38f453=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x2650b0[_0x4870b0(0xe4)]?'./'+_0x2650b0[_0x4870b0(0xe4)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x16e161=[];for(const _0x16825f of _0x38f453){const _0x66779f=cleanRelativePath(_0x16825f[_0x4870b0(0xfe)]??_0x16825f[_0x4870b0(0x108)]),_0x274fe6=_0x62512a(distDir,cleanRelativePath(_0x16825f['sourcePath'])),_0x5ae527=_0x62512a(_0x2650b0[_0x4870b0(0xf5)],_0x66779f),[_0x26ff23,_0x441019]=await Promise[_0x4870b0(0xfd)]([readDigest(_0x274fe6),readDigest(_0x5ae527)]);if(_0x26ff23&&_0x441019&&_0x26ff23===_0x441019){_0x16e161[_0x4870b0(0xda)]({'sourcePath':_0x274fe6,'destinationPath':_0x5ae527,'relativeDestination':_0x66779f,'status':'skipped'});continue;}await _0x390276['mkdir'](dirname(_0x5ae527),{'recursive':!![]}),await _0x390276['copyFile'](_0x274fe6,_0x5ae527),_0x16e161[_0x4870b0(0xda)]({'sourcePath':_0x274fe6,'destinationPath':_0x5ae527,'relativeDestination':_0x66779f,'status':_0x4870b0(0xe8)});}return _0x16e161;}function cleanRelativePath(_0x45e8c2){const _0x2de175=_0x1eff41;return _0x45e8c2[_0x2de175(0xe2)](/^[./]+/,'');}async function readDigest(_0xefd347){const _0xd98fb2=_0x1eff41;try{const _0x22ad52=await _0x390276[_0xd98fb2(0xf0)](_0xefd347);return createHash('sha256')[_0xd98fb2(0xee)](_0x22ad52)['digest']('base64');}catch(_0x95efe0){if(_0x95efe0[_0xd98fb2(0x102)]==='ENOENT')return null;throw _0x95efe0;}}async function main(){const _0x98fd98=_0x1eff41,_0x3f78c4=await loadEnhanceConfig();if(!_0x3f78c4){console[_0x98fd98(0xf1)]('[enhance-sandbox]\x20'+CONFIG_FILENAME+_0x98fd98(0xcd));return;}const _0x1dae90=resolve(process['cwd'](),_0x3f78c4['publicDir']),_0x4a12a6=await syncAssets({'publicDir':_0x1dae90,'swFilename':_0x3f78c4[_0x98fd98(0xe4)]});for(const _0x3ee7cb of _0x4a12a6){const _0x2c4d2e=relative(process['cwd'](),_0x3ee7cb[_0x98fd98(0xe7)]);_0x3ee7cb[_0x98fd98(0xef)]===_0x98fd98(0xd8)?console['info']('[enhance-sandbox]\x20Skipped\x20'+_0x3ee7cb['relativeDestination']+_0x98fd98(0x107)+_0x2c4d2e+']'):console['info'](_0x98fd98(0xf3)+_0x3ee7cb[_0x98fd98(0xd6)]+_0x98fd98(0xcf)+_0x2c4d2e);}}main()[_0x1eff41(0xc0)](_0x5cec4e=>{const _0x1d8ec1=_0x1eff41;console['error']('[enhance-sandbox]\x20Failed\x20to\x20sync\x20assets\x20during\x20postinstall'),console[_0x1d8ec1(0xf8)](_0x5cec4e),process[_0x1d8ec1(0x109)](0x1);});
|