@mooncompany/uplink-chat 0.32.2 → 0.33.0
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/bin/uplink.js +1 -1
- package/middleware/error-handler.js +1 -1
- package/package.json +1 -1
- package/public/css/{app.bc7e7484.css → app.09572269.css} +14 -13
- package/public/css/{split-view.4bc23474.css → split-view.727bdf6a.css} +8 -1
- package/public/css/themes.css +647 -19
- package/public/dist/bundle.5815836c.js +1 -0
- package/public/icon-192.png +0 -0
- package/public/icon-512.png +0 -0
- package/public/img/logo.svg +12 -12
- package/public/img/wordmark.svg +20 -20
- package/public/index.html +101 -9
- package/public/js/agents-data.js +1 -1
- package/public/js/agents-ui.js +1 -1
- package/public/js/agents.js +1 -1
- package/public/js/app.js +1 -1
- package/public/js/appearance-settings.js +1 -1
- package/public/js/artifacts.js +1 -1
- package/public/js/audio-pcm-processor.js +1 -1
- package/public/js/audio-queue.js +1 -1
- package/public/js/bootstrap.js +1 -1
- package/public/js/chat.js +1 -1
- package/public/js/commands.js +1 -1
- package/public/js/connection-api.js +1 -1
- package/public/js/connection.js +1 -1
- package/public/js/context-tracker.js +1 -1
- package/public/js/core.js +1 -1
- package/public/js/cron-panel.js +1 -1
- package/public/js/dashboard.js +1 -1
- package/public/js/developer.js +1 -1
- package/public/js/encryption.js +1 -1
- package/public/js/errors.js +1 -1
- package/public/js/event-bus.js +1 -1
- package/public/js/fetch-utils.js +1 -1
- package/public/js/file-handler.js +1 -1
- package/public/js/files.js +1 -1
- package/public/js/gateway-chat.js +1 -1
- package/public/js/logger.js +1 -1
- package/public/js/markdown.js +1 -1
- package/public/js/message-actions.js +1 -1
- package/public/js/message-renderer.js +1 -1
- package/public/js/missed-messages.js +1 -1
- package/public/js/mobile-debug.js +1 -1
- package/public/js/notifications.js +1 -1
- package/public/js/offline-queue.js +1 -1
- package/public/js/onboarding.js +1 -1
- package/public/js/panels.js +1 -1
- package/public/js/premium.js +1 -1
- package/public/js/primary-header.js +1 -1
- package/public/js/realtime-voice.js +1 -1
- package/public/js/satellite-sync.js +1 -1
- package/public/js/satellite-ui.js +1 -1
- package/public/js/satellites.js +1 -1
- package/public/js/settings.js +1 -1
- package/public/js/shortcuts.js +1 -1
- package/public/js/split-chat.js +1 -1
- package/public/js/split-resize.js +1 -1
- package/public/js/splitview.js +1 -1
- package/public/js/storage.js +1 -1
- package/public/js/streaming-handler.js +1 -1
- package/public/js/stt-settings.js +1 -1
- package/public/js/themes.js +1 -1
- package/public/js/timestamps.js +1 -1
- package/public/js/tts-settings.js +1 -1
- package/public/js/ui.js +1 -1
- package/public/js/update-notifier.js +1 -1
- package/public/js/utils/constants.js +1 -1
- package/public/js/utils/icons.js +1 -1
- package/public/js/utils/sanitize.js +1 -1
- package/public/js/utils/sse-parser.js +1 -1
- package/public/js/vad.js +1 -1
- package/public/js/vendor/dompurify.min.js +1 -1
- package/public/js/voice-settings-v2.js +1 -1
- package/public/js/voice.js +1 -1
- package/public/sw.js +1 -1
- package/public/u-icon.png +0 -0
- package/server/channel.js +1 -1
- package/server/chat.js +1 -1
- package/server/config-store.js +1 -1
- package/server/config.js +1 -1
- package/server/context.js +1 -1
- package/server/gateway-api-proxy.js +1 -1
- package/server/gateway-commands.js +1 -1
- package/server/gateway-proxy.js +1 -1
- package/server/index.js +1 -1
- package/server/logger.js +1 -1
- package/server/message-store.js +1 -1
- package/server/middleware/auth.js +1 -1
- package/server/middleware.js +1 -1
- package/server/openclaw-discover.js +1 -1
- package/server/premium/index.js +1 -1
- package/server/premium/license.js +1 -1
- package/server/realtime/bridge.js +1 -1
- package/server/realtime/index.js +1 -1
- package/server/realtime/tts-stream.js +1 -1
- package/server/routes/agents.js +1 -1
- package/server/routes/artifacts.js +1 -1
- package/server/routes/chat.js +1 -1
- package/server/routes/config-settings.js +1 -1
- package/server/routes/config.js +1 -1
- package/server/routes/cron.js +1 -1
- package/server/routes/files.js +1 -1
- package/server/routes/index.js +1 -1
- package/server/routes/media.js +1 -1
- package/server/routes/missed-messages.js +1 -1
- package/server/routes/premium.js +1 -1
- package/server/routes/push.js +1 -1
- package/server/routes/satellite.js +1 -1
- package/server/routes/status.js +1 -1
- package/server/routes/stt.js +1 -1
- package/server/routes/voice.js +1 -1
- package/server/routes/webhooks.js +1 -1
- package/server/routes.js +1 -1
- package/server/runtime-config.js +1 -1
- package/server/share.js +1 -1
- package/server/stt/faster-whisper.js +1 -1
- package/server/stt/groq.js +1 -1
- package/server/stt/index.js +1 -1
- package/server/stt/openai.js +1 -1
- package/server/sync.js +1 -1
- package/server/tailscale-https.js +1 -1
- package/server/tts.js +1 -1
- package/server/update-checker.js +1 -1
- package/server/utils/filename.js +1 -1
- package/server/utils.js +1 -1
- package/server/watchdog.js +1 -1
- package/server/websocket/broadcast.js +1 -1
- package/server/websocket/connections.js +1 -1
- package/server/websocket/index.js +1 -1
- package/server/websocket/routing.js +1 -1
- package/server/websocket/sync.js +1 -1
- package/server.js +1 -1
- package/utils/detect-tool-usage.js +1 -1
- package/utils/errors.js +1 -1
- package/utils/html-escape.js +1 -1
- package/utils/id-sanitize.js +1 -1
- package/utils/response.js +1 -1
- package/utils/with-retry.js +1 -1
- package/public/dist/bundle.d3a90e4a.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3e66a1,_0x36f1c4){function _0x2e1cd7(_0x3c86a4,_0x11fce4){return _0x1c74(_0x11fce4-0x3aa,_0x3c86a4);}function _0x44d818(_0x269976,_0x509006){return _0x1c74(_0x269976-0x351,_0x509006);}const _0x12a941=_0x3e66a1();while(!![]){try{const _0x370e77=-parseInt(_0x2e1cd7(0x4c4,0x4ce))/(-0x1*-0xbe9+0xde7+-0x19cf)+-parseInt(_0x44d818(0x463,0x494))/(0x138+-0x7*-0x4c4+-0x2292)*(-parseInt(_0x44d818(0x4a7,0x4c1))/(-0x90e*-0x1+0x29a+-0x1*0xba5))+parseInt(_0x44d818(0x4aa,0x4a3))/(0x18d*-0x1+0x6a+0x127*0x1)*(parseInt(_0x44d818(0x4bc,0x4c2))/(0x71*0x13+-0xe5d+0x5ff))+-parseInt(_0x2e1cd7(0x4e2,0x4c4))/(-0x138c+0x10fa+0x298)+parseInt(_0x44d818(0x4ae,0x49c))/(-0x20c8+0x21*-0x6a+0x2e79)+parseInt(_0x2e1cd7(0x51b,0x504))/(-0x7*0x11a+-0x4*0x380+0x15be)+-parseInt(_0x44d818(0x4c1,0x4a9))/(0x599*-0x1+0x1d7a+-0x17d8)*(parseInt(_0x44d818(0x479,0x490))/(-0x1*-0x851+0x114e+0xb1*-0x25));if(_0x370e77===_0x36f1c4)break;else _0x12a941['push'](_0x12a941['shift']());}catch(_0x19dac7){_0x12a941['push'](_0x12a941['shift']());}}}(_0x50f1,0x1a1a68+-0x53a5b*0x4+0x81b59));function _0x5703b7(_0x1d037a,_0x231187){return _0x1c74(_0x231187- -0x197,_0x1d037a);}function _0x1c74(_0x50f1aa,_0x1c74d7){_0x50f1aa=_0x50f1aa-(-0x4fc+-0x4ae+0xab4);const _0x2fc22d=_0x50f1();let _0x544e7a=_0x2fc22d[_0x50f1aa];return _0x544e7a;}const _0x1fcbc8=(function(){const _0xd632e8={'XmZPn':function(_0x394288,_0xf91939){return _0x394288===_0xf91939;},'piloE':'gXJzt','nzlzy':_0x5d6515(0x83,0x6e),'yxqgH':_0x47fb1a(-0x1e4,-0x1e0),'XvYjI':function(_0x411517,_0x5f2d68){return _0x411517===_0x5f2d68;},'IASIu':function(_0x4047b7){return _0x4047b7?.();},'TGKrO':function(_0x25a722,_0x46fdd9){return _0x25a722===_0x46fdd9;},'aRFoP':'ftJpP','xwMrB':_0x47fb1a(-0x1b0,-0x1df)};function _0x47fb1a(_0x237ceb,_0x5464b6){return _0x1c74(_0x237ceb- -0x2f8,_0x5464b6);}function _0x5d6515(_0x5dda17,_0x14a6b8){return _0x1c74(_0x5dda17- -0xea,_0x14a6b8);}let _0x562d86=!![];return function(_0x35dbd2,_0x4e0b6b){const _0x50491e={'iMspG':function(_0xcdde82,_0x25d353){function _0x22bc27(_0x35bba5,_0x1794e4){return _0x1c74(_0x35bba5-0xa3,_0x1794e4);}return _0xd632e8[_0x22bc27(0x1b9,0x183)](_0xcdde82,_0x25d353);},'TukGi':_0x490be6(-0x254,-0x248)+'Error','KYETF':function(_0x1403a2){function _0x337d4d(_0x117286,_0x5902a1){return _0x490be6(_0x5902a1,_0x117286-0x2ed);}return _0xd632e8[_0x337d4d(0xb4,0xe3)](_0x1403a2);}};function _0x1b6148(_0xfbb58,_0x51f939){return _0x47fb1a(_0x51f939-0x3cd,_0xfbb58);}function _0x490be6(_0x34a8c5,_0x452631){return _0x47fb1a(_0x452631- -0x88,_0x34a8c5);}if(_0xd632e8[_0x490be6(-0x221,-0x23d)](_0xd632e8[_0x490be6(-0x23a,-0x243)],_0xd632e8['xwMrB'])){const _0x5a33d3={};_0x5a33d3[_0x1b6148(0x21b,0x238)+'a']=_0x39127a,_0x5a33d3['onDon'+'e']=_0x1574eb,_0x5a33d3[_0x490be6(-0x256,-0x23e)]=_0xfd32a8,_0x191b18(_0x313170,_0x5a33d3);}else{const _0x4339a6=_0x562d86?function(){function _0x302143(_0xf59e23,_0x2c20c5){return _0x1b6148(_0x2c20c5,_0xf59e23-0x255);}function _0x5d76b9(_0x3fa4db,_0xec45c5){return _0x1b6148(_0x3fa4db,_0xec45c5- -0x7e);}if(_0xd632e8['XmZPn'](_0xd632e8[_0x302143(0x476,0x48b)],_0x5d76b9(0x172,0x19b)))_0x50491e[_0x5d76b9(0x1ba,0x1c9)](_0x442974[_0x302143(0x43b,0x46f)],_0x50491e['TukGi'])?_0x50491e[_0x5d76b9(0x16c,0x172)](_0xe4ef96):_0x10ff42?.(_0x1df463);else{if(_0x4e0b6b){if(_0xd632e8['XmZPn'](_0xd632e8[_0x5d76b9(0x150,0x17d)],_0xd632e8[_0x302143(0x499,0x4ba)]))_0x1b62ee[_0x302143(0x451,0x41c)+'seLoc'+'k']();else{const _0x1d3c86=_0x4e0b6b[_0x5d76b9(0x186,0x165)](_0x35dbd2,arguments);return _0x4e0b6b=null,_0x1d3c86;}}}}:function(){};return _0x562d86=![],_0x4339a6;}};}()),_0x19bb3b=_0x1fcbc8(this,function(){const _0x3e86e1={};_0x3e86e1[_0xc1a6f(-0x2a,-0x1b)]=_0x4ee3d4(-0x15,-0x1f)+_0xc1a6f(-0x35,-0x11)+'+$';function _0x4ee3d4(_0x5aaded,_0x52e2f1){return _0x1c74(_0x52e2f1- -0x185,_0x5aaded);}function _0xc1a6f(_0x59e77,_0x175cc6){return _0x1c74(_0x59e77- -0x165,_0x175cc6);}const _0x3737a8=_0x3e86e1;return _0x19bb3b[_0xc1a6f(-0x12,0x8)+'ing']()[_0xc1a6f(-0x48,-0x33)+'h'](_0x3737a8['kbokA'])[_0x4ee3d4(-0x1b,-0x32)+_0xc1a6f(-0x3c,-0xe)]()['const'+_0x4ee3d4(0x1e,-0x10)+'r'](_0x19bb3b)[_0xc1a6f(-0x48,-0x79)+'h'](_0x3737a8[_0xc1a6f(-0x2a,-0x36)]);});_0x19bb3b();export class SSEParser{constructor(){this[_0x3bbcb8(-0x223,-0x221)+'r']='';function _0x3a70b4(_0x244b09,_0x3c96ad){return _0x1c74(_0x244b09-0x9c,_0x3c96ad);}function _0x3bbcb8(_0x483331,_0x5582a){return _0x1c74(_0x5582a- -0x336,_0x483331);}this[_0x3bbcb8(-0x212,-0x207)+'er']=new TextDecoder();}[_0x2eafd6(0x6,0x5)](){this['buffe'+'r']='';}[_0x2eafd6(0x0,0x1)+_0x2eafd6(-0x1a,-0x33)+'nk'](_0x2dfbf7){const _0xe53a32={};_0xe53a32['YRYph']=function(_0x586c76,_0x4d435d){return _0x586c76!==_0x4d435d;},_0xe53a32[_0x6aa4b2(0x37e,0x37d)]=_0x6aa4b2(0x364,0x396),_0xe53a32[_0x15b36b(0x228,0x25c)]=_0x15b36b(0x200,0x1e6);const _0x4b4325=_0xe53a32;function _0x15b36b(_0x3bb9c8,_0x257381){return _0x2eafd6(_0x257381,_0x3bb9c8-0x211);}const _0x4a803b=[],_0x57e87a={};_0x57e87a['strea'+'m']=!![],this[_0x6aa4b2(0x358,0x366)+'r']+=this['decod'+'er']['decod'+'e'](_0x2dfbf7,_0x57e87a);const _0x31f543=this['buffe'+'r'][_0x6aa4b2(0x33f,0x36f)]('\x0a');function _0x6aa4b2(_0x483f13,_0x5b0711){return _0x2eafd6(_0x483f13,_0x5b0711-0x39b);}this[_0x15b36b(0x1dc,0x1b5)+'r']=_0x31f543[_0x6aa4b2(0x34f,0x35d)]()||'';for(const _0x1e7204 of _0x31f543){if(_0x4b4325[_0x15b36b(0x21e,0x218)](_0x4b4325[_0x15b36b(0x1f3,0x1c8)],_0x4b4325[_0x15b36b(0x228,0x25c)])){const _0x51a0b5=this[_0x15b36b(0x1f4,0x20b)+_0x15b36b(0x214,0x21f)](_0x1e7204);_0x51a0b5!==null&&_0x4a803b[_0x15b36b(0x21f,0x22a)](_0x51a0b5);}else{const _0x58d32d=this[_0x6aa4b2(0x368,0x37e)+_0x6aa4b2(0x38f,0x39e)](_0x183a45);_0x4b4325['YRYph'](_0x58d32d,null)&&_0x192ff0[_0x6aa4b2(0x39f,0x3a9)](_0x58d32d);}}return _0x4a803b;}[_0x5703b7(-0x3f,-0x6a)+_0x5703b7(-0x56,-0x4a)](_0x346675){const _0x24a4c7={'NIspQ':function(_0x24bab4,_0x2464e0){return _0x24bab4?.(_0x2464e0);},'qpzWC':function(_0x5d7ba4,_0x2502a8){return _0x5d7ba4===_0x2502a8;},'deThE':_0x3992b2(-0x6c,-0x3d),'vMIGu':function(_0x131b3f,_0x2f6c99){return _0x131b3f===_0x2f6c99;},'gTWht':_0x3992b2(-0x13,-0x33)+']','jXhRf':_0x2e62d7(0x44f,0x485),'AdkEa':_0x2e62d7(0x4ea,0x4dd),'jGHoj':_0x3992b2(-0x5e,-0x5c)};if(!_0x346675[_0x3992b2(-0x71,-0x65)]())return null;function _0x3992b2(_0x15c804,_0x28156d){return _0x5703b7(_0x15c804,_0x28156d- -0x1);}if(_0x346675['start'+'sWith'](':'))return null;if(!_0x346675[_0x3992b2(-0x2b,-0x4e)+_0x3992b2(-0xa0,-0x85)](_0x3992b2(-0xa8,-0x7f)+'\x20')){if(_0x24a4c7['qpzWC'](_0x24a4c7[_0x3992b2(-0xb8,-0x89)],_0x24a4c7[_0x3992b2(-0x99,-0x89)]))return null;else _0x24a4c7[_0x2e62d7(0x48e,0x4ac)](_0x45b45e,_0x543473);}const _0x50090f=_0x346675[_0x3992b2(-0x9f,-0x79)](-0x1c9e+0x2*0x85a+-0xbf0*-0x1);function _0x2e62d7(_0x316d50,_0x3f3303){return _0x5703b7(_0x316d50,_0x3f3303-0x50c);}if(_0x24a4c7[_0x2e62d7(0x4c2,0x4c5)](_0x50090f,_0x24a4c7[_0x3992b2(-0x56,-0x24)])){const _0x2e3577={};return _0x2e3577[_0x3992b2(-0x68,-0x8d)]=_0x24a4c7[_0x3992b2(-0x31,-0x4f)],_0x2e3577;}try{const _0x4c2dc3=JSON[_0x2e62d7(0x4c1,0x4a2)](_0x50090f),_0x13d47b={};return _0x13d47b[_0x2e62d7(0x490,0x480)]=_0x24a4c7[_0x2e62d7(0x48d,0x4b5)],_0x13d47b[_0x3992b2(-0x70,-0x46)+'ad']=_0x4c2dc3,_0x13d47b;}catch(_0x4b7cde){const _0x55ac10={};return _0x55ac10[_0x3992b2(-0x6c,-0x8d)]=_0x24a4c7['jGHoj'],_0x55ac10[_0x3992b2(-0x12,-0x30)]=_0x50090f,_0x55ac10;}}[_0x5703b7(-0x2e,-0x49)](){function _0x8651f4(_0x32d7b5,_0x27f523){return _0x2eafd6(_0x27f523,_0x32d7b5- -0xa5);}if(this[_0x199180(-0x1df,-0x1fc)+'r'][_0x199180(-0x1c1,-0x1ce)]()){const _0x3dc3d9=this['parse'+_0x199180(-0x1a7,-0x1c3)](this[_0x199180(-0x1df,-0x1e1)+'r']);return this[_0x8651f4(-0xda,-0xca)+'r']='',_0x3dc3d9;}function _0x199180(_0x23a21b,_0x3781e0){return _0x2eafd6(_0x3781e0,_0x23a21b- -0x1aa);}return null;}}function handleEvent(_0x4339d9,_0x2fe5c2){function _0x5dca61(_0x131656,_0x336237){return _0x2eafd6(_0x336237,_0x131656-0x34a);}const _0x4d14a6={};_0x4d14a6[_0x5dca61(0x320,0x341)]=_0x3a1ff3(0x4aa,0x4c4);const _0x1f2182=_0x4d14a6;function _0x3a1ff3(_0x364e4d,_0x2b52dd){return _0x2eafd6(_0x2b52dd,_0x364e4d-0x48c);}switch(_0x4339d9[_0x3a1ff3(0x44d,0x448)]){case _0x1f2182[_0x3a1ff3(0x462,0x475)]:_0x2fe5c2[_0x3a1ff3(0x4a5,0x4a8)+'a']?.(_0x4339d9['paylo'+'ad']);break;case _0x3a1ff3(0x452,0x464):_0x2fe5c2[_0x5dca61(0x321,0x2fe)+'e']?.();break;case'raw':_0x2fe5c2[_0x5dca61(0x342,0x32e)]?.(_0x4339d9[_0x5dca61(0x368,0x399)]);break;}}function _0x50f1(){const _0x1c0165=['kCrqw','\x20Modu','361462xigCuH','oWfPX','nzlzy','relea','30OxCDdK','ing','ader','FoIPC','mRCRY','parse','uHmVN','decod',')+)+)','sMOEf','debug','trim','DmQlD','JEvJl','xKqWh','NIspQ','Abort','nYbSc','YsDbz','kbokA','raw','aRFoP','AwfQV','DDpxN','AdkEa','wIAnj','onRaw','TGKrO','MUGYp','EjAAK','undef','IASIu','ftNiC','jXhRf','start','proce','piloE','Line','flush','reset','vMIGu','read','paylo','toStr','seLoc','vHZQd','3ookQaH','YRYph','push','10108HsFArO','5173184IRuXUr','UcijX','waSPm','4825317QqxPEf','kSSEP','Rfqqi','Error','RIQen','eam','onDat','SSEPa','[DONE','(((.+','vEPwR','data','arser','ined','125gXozqQ','le\x20lo','gedde','XJvGk','yxqgH','3369357GakCuT','eAUWU','iMspG','rser','gTWht','ructo','ssStr','type','pop','body','apply','deThE','done','name','2630806sAiPhJ','sWith','skKye','buffe','XvYjI','ssChu','strea','data:','2150802BNsNla','KYETF','ZQpiv','searc','split','slice','Chgzf','onDon'];_0x50f1=function(){return _0x1c0165;};return _0x50f1();}export async function processStream(_0x53315a,_0x521969,_0x4dd890){function _0x346bae(_0x210e25,_0x36f0b3){return _0x5703b7(_0x210e25,_0x36f0b3- -0x191);}const _0x5b79fa={'ZQpiv':function(_0x13f791,_0x29b826){return _0x13f791!==_0x29b826;},'dysYr':_0x346bae(-0x1f2,-0x218),'ZViXb':function(_0x291aac,_0x4715a4){return _0x291aac===_0x4715a4;},'qTtnx':_0x40d042(-0x2aa,-0x27e),'wIAnj':'AzzFb','xKqWh':_0x346bae(-0x1e9,-0x1e9),'uHmVN':'yKbYa','AwfQV':function(_0x31be78,_0x1cf01b){return _0x31be78!==_0x1cf01b;},'FoIPC':_0x40d042(-0x247,-0x26c),'vEPwR':function(_0x48bd17,_0x3fdd9b,_0x412753){return _0x48bd17(_0x3fdd9b,_0x412753);},'oWfPX':function(_0x24c960){return _0x24c960?.();},'vHZQd':function(_0x25f8ca,_0x3f9db8){return _0x25f8ca===_0x3f9db8;},'YsDbz':_0x346bae(-0x1d4,-0x1f0)+_0x40d042(-0x28c,-0x27a),'DmQlD':function(_0x3f0749,_0x36a186){return _0x3f0749===_0x36a186;},'JEvJl':_0x40d042(-0x2af,-0x2a9),'CXNIR':function(_0x4c790b){return _0x4c790b?.();},'kCrqw':function(_0x1db905,_0x2bdbaa){return _0x1db905?.(_0x2bdbaa);},'eAUWU':'Rfqqi'};function _0x40d042(_0x38b39c,_0x4fff4d){return _0x5703b7(_0x38b39c,_0x4fff4d- -0x243);}const {onData:_0x556f36,onDone:_0x468a06,onError:_0x44a57f,onRaw:_0x1c1b34}=_0x521969,_0x3c8390=new SSEParser(),_0x577f74=_0x53315a[_0x40d042(-0x301,-0x2cd)]['getRe'+_0x346bae(-0x1d7,-0x1fe)]();try{if(_0x5b79fa['ZViXb'](_0x5b79fa['qTtnx'],_0x5b79fa[_0x40d042(-0x2ab,-0x299)])){const _0x1d5519=this[_0x346bae(-0x1c6,-0x1fb)+_0x40d042(-0x2b4,-0x28d)](this['buffe'+'r']);return this[_0x346bae(-0x1ea,-0x213)+'r']='',_0x1d5519;}else while(!![]){if(_0x5b79fa['ZQpiv'](_0x5b79fa[_0x346bae(-0x1ff,-0x1f2)],_0x5b79fa[_0x40d042(-0x2a9,-0x2ac)])){if(_0x4dd890?.['abort'+'ed'])break;const {done:_0x432206,value:_0x49f86e}=await _0x577f74[_0x40d042(-0x254,-0x289)]();if(_0x432206){const _0x37ebcd=_0x3c8390['flush']();if(_0x37ebcd){if(_0x5b79fa[_0x40d042(-0x28f,-0x29c)](_0x5b79fa[_0x40d042(-0x2e2,-0x2af)],_0x40d042(-0x29d,-0x26c))){const _0x4d849a=[],_0x234b10={};_0x234b10[_0x346bae(-0x23b,-0x210)+'m']=!![],this[_0x40d042(-0x2dc,-0x2c5)+'r']+=this[_0x40d042(-0x2c1,-0x2ab)+'er']['decod'+'e'](_0x584f28,_0x234b10);const _0x33fa1e=this['buffe'+'r']['split']('\x0a');this[_0x346bae(-0x205,-0x213)+'r']=_0x33fa1e[_0x40d042(-0x2e1,-0x2ce)]()||'';for(const _0x3097d2 of _0x33fa1e){const _0x5798ee=this[_0x346bae(-0x21d,-0x1fb)+_0x346bae(-0x1a7,-0x1db)](_0x3097d2);egozKJ[_0x40d042(-0x2c6,-0x2be)](_0x5798ee,null)&&_0x4d849a[_0x346bae(-0x1dd,-0x1d0)](_0x5798ee);}return _0x4d849a;}else{const _0x346798={};_0x346798['onDat'+'a']=_0x556f36,_0x346798[_0x40d042(-0x2e0,-0x2b9)+'e']=_0x468a06,_0x346798[_0x40d042(-0x27e,-0x298)]=_0x1c1b34,_0x5b79fa[_0x40d042(-0x28c,-0x273)](handleEvent,_0x37ebcd,_0x346798);}}_0x5b79fa[_0x40d042(-0x29f,-0x2b5)](_0x468a06);break;}const _0x3b52da=_0x3c8390['proce'+_0x346bae(-0x20a,-0x211)+'nk'](_0x49f86e);for(const _0x225cb1 of _0x3b52da){const _0x1eea1f={};_0x1eea1f[_0x346bae(-0x1c6,-0x1c5)+'a']=_0x556f36,_0x1eea1f[_0x40d042(-0x29a,-0x2b9)+'e']=_0x468a06,_0x1eea1f['onRaw']=_0x1c1b34,handleEvent(_0x225cb1,_0x1eea1f);}}else return null;}}catch(_0x28a3e0){if(_0x5b79fa[_0x346bae(-0x1c0,-0x1d3)](_0x28a3e0['name'],_0x5b79fa[_0x346bae(-0x1e4,-0x1ee)])){if(_0x5b79fa[_0x40d042(-0x290,-0x2a6)](_0x5b79fa[_0x346bae(-0x20d,-0x1f3)],'sMOEf'))_0x5b79fa['CXNIR'](_0x468a06);else{const _0x190af9={};return _0x190af9['type']=egozKJ['dysYr'],_0x190af9;}}else _0x5b79fa[_0x40d042(-0x28f,-0x2b8)](_0x44a57f,_0x28a3e0);}finally{if(_0x5b79fa[_0x346bae(-0x212,-0x1f4)](_0x346bae(-0x1d3,-0x1c9),_0x5b79fa[_0x40d042(-0x29c,-0x269)]))_0x577f74[_0x40d042(-0x2a0,-0x2b3)+_0x346bae(-0x1f8,-0x1d4)+'k']();else{if(this[_0x346bae(-0x1ef,-0x213)+'r'][_0x40d042(-0x2ba,-0x2a7)]()){const _0x27f21a=this[_0x40d042(-0x2ab,-0x2ad)+'Line'](this[_0x346bae(-0x214,-0x213)+'r']);return this[_0x346bae(-0x1e3,-0x213)+'r']='',_0x27f21a;}return null;}}}const _0x24ab1b={};_0x24ab1b[_0x2eafd6(0x8,0x1a)+_0x2eafd6(0x2a,0x29)]=SSEParser,_0x24ab1b['proce'+_0x2eafd6(-0x16,-0x40)+_0x5703b7(-0x2b,-0x35)]=processStream;export const UplinkSSEParser=_0x24ab1b;window['Uplin'+_0x5703b7(-0x4d,-0x39)+_0x5703b7(-0x1b,-0x2e)]=UplinkSSEParser;function _0x2eafd6(_0x3d3fd3,_0x3336c5){return _0x1c74(_0x3336c5- -0x14a,_0x3d3fd3);}typeof logger!==_0x5703b7(-0x2f,-0x51)+_0x5703b7(-0x2f,-0x2d)&&logger[_0x5703b7(-0x6c,-0x65)]('SSEPa'+'rser:'+_0x2eafd6(-0x9,-0x27)+_0x5703b7(-0x1f,-0x2b)+'aded');
|
|
1
|
+
(function(_0x1557ef,_0x4b07a7){function _0x3c0485(_0x44f139,_0x1075ee){return _0xb61a(_0x1075ee-0x1f,_0x44f139);}const _0x2a31c8=_0x1557ef();function _0x305022(_0x638965,_0x380b4a){return _0xb61a(_0x638965- -0x5b,_0x380b4a);}while(!![]){try{const _0x257515=-parseInt(_0x3c0485(0x1b9,0x18f))/(-0xb76+-0x490+0x1007)*(parseInt(_0x3c0485(0x176,0x18e))/(-0x3*0x173+-0x1*0x1543+-0x3*-0x88a))+-parseInt(_0x305022(0xf2,0x118))/(-0x64*-0x16+0x23a8+0x97*-0x4b)+-parseInt(_0x305022(0xf3,0xd5))/(0xbc3*-0x1+0x1a*-0x95+0x1ae9)+-parseInt(_0x3c0485(0x192,0x1a4))/(-0xe17+0xd1b*-0x2+0x2852)+parseInt(_0x305022(0x148,0x12f))/(-0x1f*-0x55+-0x102c+0x5e7)+parseInt(_0x305022(0x143,0x126))/(0x15*0x159+0x54c*-0x7+0x1*0x8ce)*(parseInt(_0x3c0485(0x1cf,0x1ce))/(0x2*-0x7e6+0x171e+0x26e*-0x3))+parseInt(_0x3c0485(0x16a,0x17f))/(-0x3c5+0x5*0x3a1+-0xe57)*(parseInt(_0x3c0485(0x1d3,0x1c0))/(0x1d99*-0x1+-0x1*0x1273+0x4cf*0xa));if(_0x257515===_0x4b07a7)break;else _0x2a31c8['push'](_0x2a31c8['shift']());}catch(_0x5cc304){_0x2a31c8['push'](_0x2a31c8['shift']());}}}(_0x2c56,-0x1*-0x1a5a5+0xab139+-0x40e00));const _0x914432=(function(){const _0x4b3df3={'OyfKu':function(_0x11b702){return _0x11b702?.();},'nPtKQ':function(_0x18403c,_0xb56cec){return _0x18403c!==_0xb56cec;},'gjCvK':_0x3a7868(0x8d,0x9b),'xYiQJ':_0x171a92(0x1ce,0x1ca),'DpZWx':function(_0x48e12d,_0x2b387e){return _0x48e12d===_0x2b387e;},'TbkYm':_0x3a7868(0x98,0xb4)};function _0x3a7868(_0x49e18b,_0x356490){return _0xb61a(_0x49e18b- -0xea,_0x356490);}let _0x4471e1=!![];function _0x171a92(_0x13bd9,_0x3d1f49){return _0xb61a(_0x3d1f49-0x25,_0x13bd9);}return function(_0x2d47a5,_0x32b138){const _0x3824d1={'qnsrD':function(_0x1c7e08){function _0x36f95f(_0x3c6bdb,_0x1a1a92){return _0xb61a(_0x1a1a92-0x23,_0x3c6bdb);}return _0x4b3df3[_0x36f95f(0x16f,0x186)](_0x1c7e08);},'RHjKz':function(_0x35cd7e,_0x367d91){return _0x35cd7e?.(_0x367d91);},'BADMs':function(_0x32b610,_0x79f158){function _0x26dd70(_0x42e3ff,_0x5ae26c){return _0xb61a(_0x5ae26c-0x1ba,_0x42e3ff);}return _0x4b3df3[_0x26dd70(0x2fd,0x309)](_0x32b610,_0x79f158);},'BjQWS':_0x4b3df3[_0x14c8f8(0x239,0x236)],'kaIFJ':_0x4b3df3[_0x14c8f8(0x204,0x216)]};function _0x1856ea(_0x3dd7ad,_0x46ad72){return _0x171a92(_0x3dd7ad,_0x46ad72- -0x150);}function _0x14c8f8(_0x50dfca,_0x24bb00){return _0x171a92(_0x50dfca,_0x24bb00-0x5d);}if(_0x4b3df3[_0x14c8f8(0x248,0x234)](_0x1856ea(0x5c,0x57),_0x4b3df3[_0x1856ea(0x9,0x33)])){const _0xbc30e5=_0x4471e1?function(){function _0xc8516b(_0x310b23,_0x332f59){return _0x14c8f8(_0x332f59,_0x310b23- -0x304);}function _0x27c3bf(_0x3b76a9,_0x2cd9bc){return _0x14c8f8(_0x2cd9bc,_0x3b76a9-0x35e);}if(_0x3824d1[_0x27c3bf(0x527,0x545)](_0x3824d1[_0xc8516b(-0x137,-0x164)],_0x27c3bf(0x547,0x523))){if(_0x32b138){if(_0x3824d1['kaIFJ']!==_0x3824d1['kaIFJ'])_0x36b488[_0x27c3bf(0x55e,0x530)+'seLoc'+'k']();else{const _0x1c686a=_0x32b138[_0xc8516b(-0x13a,-0x103)](_0x2d47a5,arguments);return _0x32b138=null,_0x1c686a;}}}else _0x19e492[_0xc8516b(-0x119,-0x130)]==='Abort'+'Error'?_0x3824d1[_0xc8516b(-0xca,-0x102)](_0x582c08):_0x3824d1['RHjKz'](_0x521946,_0x3b6385);}:function(){};return _0x4471e1=![],_0xbc30e5;}else{const _0x74a9bb=this[_0x14c8f8(0x1f2,0x1de)+'Line'](this[_0x14c8f8(0x1b3,0x1db)+'r']);return this[_0x14c8f8(0x1f0,0x1db)+'r']='',_0x74a9bb;}};}()),_0x6ad1d0=_0x914432(this,function(){const _0x21a476={};_0x21a476[_0xd7d7f0(-0x202,-0x1f5)]=_0xd7d7f0(-0x180,-0x1a6)+')+)+)'+'+$';function _0x4216ac(_0x1fd873,_0x87f045){return _0xb61a(_0x1fd873- -0x1ec,_0x87f045);}const _0x35a4a4=_0x21a476;function _0xd7d7f0(_0x77605,_0x41f882){return _0xb61a(_0x41f882- -0x350,_0x77605);}return _0x6ad1d0['toStr'+_0xd7d7f0(-0x1e1,-0x1dd)]()[_0xd7d7f0(-0x1d4,-0x1de)+'h'](_0x35a4a4[_0x4216ac(-0x91,-0xcb)])[_0x4216ac(-0x78,-0x57)+_0x4216ac(-0x79,-0x7a)]()[_0xd7d7f0(-0x1d2,-0x1b4)+'ructo'+'r'](_0x6ad1d0)[_0x4216ac(-0x7a,-0x60)+'h'](_0x35a4a4[_0x4216ac(-0x91,-0xa4)]);});_0x6ad1d0();function _0xb61a(_0xb61a6,_0x24e8fa){_0xb61a6=_0xb61a6-(-0x83e*0x2+0x12f4+-0x134);const _0x337a60=_0x2c56();let _0x25b537=_0x337a60[_0xb61a6];return _0x25b537;}export class SSEParser{constructor(){function _0x5c729c(_0x397a53,_0x1cb439){return _0xb61a(_0x1cb439-0x6d,_0x397a53);}this[_0x5c729c(0x1f1,0x1c6)+'r']='';function _0x1988c3(_0x37a3df,_0x347fb3){return _0xb61a(_0x347fb3-0x297,_0x37a3df);}this[_0x1988c3(0x43a,0x443)+'er']=new TextDecoder();}[_0x2830c(-0x12e,-0x114)](){function _0x5b0692(_0x393763,_0x27c171){return _0x2830c(_0x27c171,_0x393763- -0x11d);}this[_0x5b0692(-0x257,-0x259)+'r']='';}['proce'+_0x2830c(-0x17e,-0x14a)+'nk'](_0x308593){const _0x5b6844={};_0x5b6844[_0x3415c0(0x188,0x193)]=function(_0x32985a,_0x420952){return _0x32985a!==_0x420952;};const _0x412d22=_0x5b6844,_0x131408=[],_0x1df408={};_0x1df408['strea'+'m']=!![],this[_0x3415c0(0x13f,0x10f)+'r']+=this[_0x2b78f6(0x344,0x338)+'er'][_0x3415c0(0x192,0x15a)+'e'](_0x308593,_0x1df408);const _0x127b59=this[_0x2b78f6(0x30a,0x2e5)+'r']['split']('\x0a');this[_0x3415c0(0x13f,0x118)+'r']=_0x127b59['pop']()||'';function _0x3415c0(_0x313fb5,_0x43a83e){return _0x2830c(_0x43a83e,_0x313fb5-0x279);}function _0x2b78f6(_0x54cbac,_0x2ae668){return _0x2830c(_0x54cbac,_0x2ae668-0x41f);}for(const _0x2d9ac5 of _0x127b59){const _0x351b67=this[_0x2b78f6(0x2f9,0x2e8)+_0x3415c0(0x150,0x137)](_0x2d9ac5);_0x412d22[_0x2b78f6(0x32b,0x32e)](_0x351b67,null)&&_0x131408[_0x3415c0(0x16f,0x18b)](_0x351b67);}return _0x131408;}['parse'+'Line'](_0x184bee){const _0x1f64d2={};_0x1f64d2['vhTGH']=function(_0x566628,_0x7c413e){return _0x566628!==_0x7c413e;},_0x1f64d2[_0x444432(0x12b,0x120)]=_0x444432(0x120,0xf8),_0x1f64d2['iYZFH']=function(_0x4c8541,_0x4bc8ef){return _0x4c8541!==_0x4bc8ef;},_0x1f64d2[_0x444432(0x157,0x11c)]='Ykjov',_0x1f64d2[_0x444432(0x129,0x131)]=_0x160215(0x236,0x208),_0x1f64d2[_0x444432(0xde,0xda)]=_0x160215(0x24b,0x229)+'\x20',_0x1f64d2[_0x444432(0x12b,0x14d)]='[DONE'+']',_0x1f64d2['edWKb']=function(_0x407101,_0x434efd){return _0x407101===_0x434efd;},_0x1f64d2[_0x160215(0x290,0x25b)]=_0x444432(0x146,0x14b),_0x1f64d2['CIMwR']=_0x444432(0x141,0x121),_0x1f64d2[_0x444432(0x102,0x12e)]=_0x160215(0x243,0x23c),_0x1f64d2[_0x160215(0x249,0x25f)]=_0x444432(0xcd,0x102),_0x1f64d2[_0x444432(0xfb,0x130)]='wNWJQ',_0x1f64d2[_0x160215(0x239,0x20a)]=_0x444432(0x16b,0x14c);const _0x1b854f=_0x1f64d2;function _0x160215(_0x40a5ec,_0x684b26){return _0x25e807(_0x40a5ec,_0x684b26-0x2cb);}if(!_0x184bee[_0x160215(0x1f4,0x20b)]())return null;function _0x444432(_0x510f65,_0x110d48){return _0x25e807(_0x510f65,_0x110d48-0x1ad);}if(_0x184bee[_0x444432(0x15d,0x123)+_0x160215(0x23b,0x230)](':'))return _0x1b854f[_0x160215(0x24a,0x22f)](_0x1b854f[_0x444432(0x151,0x11c)],_0x1b854f['sUtnp'])?null:null;if(!_0x184bee[_0x444432(0x127,0x123)+'sWith'](_0x1b854f['Adpdb']))return null;const _0x3e980e=_0x184bee[_0x160215(0x266,0x245)](0x1b43+0x1*0x117a+-0x2cb7*0x1);if(_0x3e980e===_0x1b854f[_0x160215(0x264,0x26b)]){if(_0x1b854f['edWKb'](_0x160215(0x20a,0x225),_0x1b854f['dLXxG'])){const _0x39edd4=[],_0x526465={};_0x526465[_0x160215(0x1f3,0x218)+'m']=!![],this['buffe'+'r']+=this[_0x444432(0x12f,0x142)+'er'][_0x160215(0x290,0x260)+'e'](_0x49d6f5,_0x526465);const _0x2a22ac=this['buffe'+'r']['split']('\x0a');this[_0x160215(0x1d8,0x20d)+'r']=_0x2a22ac['pop']()||'';for(const _0x5de897 of _0x2a22ac){const _0x21b00f=this[_0x160215(0x218,0x210)+_0x444432(0x106,0x100)](_0x5de897);fEOgsA[_0x160215(0x274,0x25a)](_0x21b00f,null)&&_0x39edd4[_0x160215(0x230,0x23d)](_0x21b00f);}return _0x39edd4;}else{const _0x3c6e65={};return _0x3c6e65[_0x160215(0x216,0x249)]=_0x1b854f[_0x160215(0x21b,0x23e)],_0x3c6e65;}}try{if(_0x1b854f[_0x160215(0x21b,0x21a)]===_0x444432(0x102,0x121)){const _0x3d66a2=JSON[_0x160215(0x23f,0x210)](_0x3e980e),_0x13254d={};return _0x13254d['type']=_0x1b854f[_0x444432(0x10d,0x12e)],_0x13254d[_0x444432(0x164,0x12f)+'ad']=_0x3d66a2,_0x13254d;}else{const _0x3ece3e=this[_0x160215(0x215,0x210)+'Line'](_0x58fd24);fEOgsA[_0x160215(0x23b,0x25a)](_0x3ece3e,null)&&_0x234a31[_0x160215(0x245,0x23d)](_0x3ece3e);}}catch(_0x193fab){if(_0x1b854f[_0x160215(0x23e,0x253)](_0x1b854f[_0x160215(0x227,0x25f)],_0x1b854f['UmLqH'])){const _0x469d8f={};return _0x469d8f['type']=_0x1b854f[_0x160215(0x221,0x23e)],_0x469d8f;}else{const _0x52c4b2={};return _0x52c4b2[_0x444432(0x14f,0x12b)]=_0x1b854f[_0x160215(0x20d,0x20a)],_0x52c4b2['data']=_0x3e980e,_0x52c4b2;}}}[_0x25e807(-0xd3,-0x9e)](){if(this['buffe'+'r'][_0x450399(-0x19c,-0x1c3)]()){const _0x395692=this['parse'+'Line'](this[_0x450399(-0x1c7,-0x1c1)+'r']);return this[_0x450399(-0x1a3,-0x1c1)+'r']='',_0x395692;}function _0x450399(_0x3e3c64,_0x952a86){return _0x25e807(_0x3e3c64,_0x952a86- -0x103);}function _0x1feeea(_0x51434c,_0x4d8f51){return _0x25e807(_0x4d8f51,_0x51434c-0x1e5);}return null;}}function handleEvent(_0x45d34f,_0x2217eb){const _0x31d0f4={};_0x31d0f4[_0x2e7bb0(0x34c,0x363)]=_0x23b9b4(-0x1e4,-0x1b7),_0x31d0f4['aaPtH']='done',_0x31d0f4[_0x23b9b4(-0x204,-0x1e5)]=_0x23b9b4(-0x1b6,-0x1e7);const _0x3f181c=_0x31d0f4;function _0x23b9b4(_0x1f0c71,_0x31f53c){return _0x25e807(_0x31f53c,_0x1f0c71- -0x155);}function _0x2e7bb0(_0x4df3b9,_0x51519e){return _0x25e807(_0x4df3b9,_0x51519e-0x3ee);}switch(_0x45d34f[_0x2e7bb0(0x346,0x36c)]){case _0x3f181c[_0x2e7bb0(0x357,0x363)]:_0x2217eb[_0x23b9b4(-0x1f4,-0x1c0)+'a']?.(_0x45d34f[_0x2e7bb0(0x33b,0x370)+'ad']);break;case _0x3f181c[_0x23b9b4(-0x20d,-0x1f2)]:_0x2217eb[_0x23b9b4(-0x212,-0x209)+'e']?.();break;case _0x3f181c[_0x23b9b4(-0x204,-0x206)]:_0x2217eb[_0x23b9b4(-0x1e5,-0x1cd)]?.(_0x45d34f['data']);break;}}function _0x2830c(_0x46586e,_0x263a1d){return _0xb61a(_0x263a1d- -0x293,_0x46586e);}function _0x25e807(_0x59a600,_0x33c3c0){return _0xb61a(_0x33c3c0- -0x217,_0x59a600);}export async function processStream(_0x175988,_0x195350,_0x44e027){const _0x261aa7={'XFJSW':_0x1c5de4(0x533,0x505)+_0x1c5de4(0x532,0x4f9)+'+$','DPLrg':_0x1c5de4(0x53f,0x574),'AhTNW':function(_0x2cdf38,_0x66d692,_0x18cae5){return _0x2cdf38(_0x66d692,_0x18cae5);},'YAFek':function(_0x63eab5,_0x50cde7){return _0x63eab5!==_0x50cde7;},'aDGVO':_0x1c5de4(0x4ff,0x4fe),'JsVKL':function(_0x16ce64,_0x58c400,_0x4aa333){return _0x16ce64(_0x58c400,_0x4aa333);},'EwBOT':function(_0x214e28){return _0x214e28?.();},'CiHWD':_0xfe778f(0x4e4,0x4ce),'TSVqX':function(_0x2d5445,_0x28e19c,_0x394554){return _0x2d5445(_0x28e19c,_0x394554);},'PcsTq':_0x1c5de4(0x517,0x51e),'iTcrD':function(_0x21dc6c,_0x2d5efb){return _0x21dc6c===_0x2d5efb;},'FhRRn':function(_0x39c0aa){return _0x39c0aa?.();},'uiTZd':_0xfe778f(0x49d,0x4cc),'lzBog':function(_0x37b3ff,_0x5c809c){return _0x37b3ff?.(_0x5c809c);}},{onData:_0x2665b9,onDone:_0x4803f1,onError:_0x394e09,onRaw:_0x2709c8}=_0x195350;function _0xfe778f(_0x1b807a,_0xec308b){return _0x2830c(_0xec308b,_0x1b807a-0x5e4);}const _0x1dde70=new SSEParser();function _0x1c5de4(_0x14217e,_0xe3798e){return _0x2830c(_0xe3798e,_0x14217e-0x61c);}const _0x4b5679=_0x175988[_0x1c5de4(0x4ee,0x4db)][_0xfe778f(0x497,0x4be)+_0x1c5de4(0x4ea,0x4ee)]();try{if(_0x261aa7['YAFek'](_0x261aa7[_0x1c5de4(0x4d3,0x4f4)],_0x261aa7['aDGVO']))return _0x5515dc['toStr'+_0xfe778f(0x4c4,0x4b2)]()[_0xfe778f(0x4c3,0x4d0)+'h'](wfxNPK['XFJSW'])['toStr'+_0x1c5de4(0x4fc,0x4d4)]()[_0xfe778f(0x4ed,0x4fc)+_0xfe778f(0x4e0,0x4b9)+'r'](_0x4a2f2f)['searc'+'h'](wfxNPK[_0xfe778f(0x501,0x4ee)]);else while(!![]){if(_0x44e027?.[_0x1c5de4(0x4db,0x4e0)+'ed'])break;const {done:_0x1a54a5,value:_0x25ca31}=await _0x4b5679[_0x1c5de4(0x53c,0x53b)]();if(_0x1a54a5){if(_0x261aa7[_0x1c5de4(0x4d9,0x500)]('VWQwA',_0x1c5de4(0x4da,0x4b1))){const _0x20fdfc=_0x9b6da2[_0x1c5de4(0x4e5,0x4bf)](_0xf6701d),_0x3d3928={};return _0x3d3928[_0xfe778f(0x4e6,0x4da)]=_0xfe778f(0x4d9,0x4b2),_0x3d3928[_0xfe778f(0x4ea,0x517)+'ad']=_0x20fdfc,_0x3d3928;}else{const _0xe3022c=_0x1dde70[_0xfe778f(0x4ca,0x4c8)]();if(_0xe3022c){const _0x3488a5={};_0x3488a5[_0xfe778f(0x4c9,0x4c2)+'a']=_0x2665b9,_0x3488a5[_0x1c5de4(0x4e3,0x50b)+'e']=_0x4803f1,_0x3488a5[_0x1c5de4(0x510,0x4f2)]=_0x2709c8,_0x261aa7[_0x1c5de4(0x52d,0x557)](handleEvent,_0xe3022c,_0x3488a5);}_0x261aa7[_0xfe778f(0x4be,0x494)](_0x4803f1);break;}}const _0x4b26bd=_0x1dde70[_0x1c5de4(0x506,0x4cb)+_0x1c5de4(0x4d2,0x4ac)+'nk'](_0x25ca31);for(const _0x46279e of _0x4b26bd){if('oYNbI'===_0x261aa7[_0x1c5de4(0x4f7,0x524)]){const _0x12bdf7={};_0x12bdf7[_0xfe778f(0x4c9,0x4a1)+'a']=_0x2665b9,_0x12bdf7[_0xfe778f(0x4ab,0x4e4)+'e']=_0x4803f1,_0x12bdf7['onRaw']=_0x2709c8,_0x261aa7[_0x1c5de4(0x4f4,0x51e)](handleEvent,_0x46279e,_0x12bdf7);}else{if(this[_0xfe778f(0x4aa,0x470)+'r'][_0x1c5de4(0x4e0,0x4f4)]()){const _0x373cee=this['parse'+_0x1c5de4(0x4f3,0x519)](this[_0xfe778f(0x4aa,0x490)+'r']);return this['buffe'+'r']='',_0x373cee;}return null;}}}}catch(_0x2bc8bc){if(_0x261aa7[_0xfe778f(0x4a1,0x4c1)](_0xfe778f(0x4a6,0x46d),_0x261aa7[_0x1c5de4(0x519,0x51e)])){if(_0x261aa7[_0xfe778f(0x4f1,0x510)](_0x2bc8bc['name'],'Abort'+_0xfe778f(0x4d4,0x4e4)))_0x261aa7[_0x1c5de4(0x520,0x4ff)](_0x4803f1);else{if(_0x261aa7[_0x1c5de4(0x531,0x506)]!=='QgVbi')_0x261aa7['lzBog'](_0x394e09,_0x2bc8bc);else{const _0x4c24ab={};return _0x4c24ab[_0xfe778f(0x4e6,0x520)]=wfxNPK[_0x1c5de4(0x509,0x53a)],_0x4c24ab[_0x1c5de4(0x511,0x50b)]=_0x1209cf,_0x4c24ab;}}}else{const _0x27a480={};_0x27a480[_0xfe778f(0x4c9,0x4ba)+'a']=_0x1d65cd,_0x27a480[_0xfe778f(0x4ab,0x4e2)+'e']=_0x596549,_0x27a480[_0xfe778f(0x4d8,0x49e)]=_0x284c2f,_0x261aa7[_0xfe778f(0x4fe,0x515)](_0x3e67ae,_0x31e6a5,_0x27a480);}}finally{_0x4b5679[_0x1c5de4(0x507,0x4f7)+_0x1c5de4(0x4dc,0x4f6)+'k']();}}const _0x25287c={};_0x25287c[_0x2830c(-0x135,-0xfd)+'rser']=SSEParser,_0x25287c[_0x2830c(-0xdf,-0x116)+_0x2830c(-0x12d,-0x13b)+_0x2830c(-0x10a,-0x136)]=processStream;function _0x2c56(){const _0x317ba5=['getRe','BADMs','apply','ssChu','aDGVO','BjQWS','QpkKO','3190374EetXUJ','3424148lBZHEv','nPtKQ','YAFek','VWQwA','abort','seLoc','BoqKw','Uenvd','SpjiM','trim','ssStr','buffe','onDon','WtXEo','parse','eam','TbkYm','aaPtH','68877QdBrga','ader','done','OyfKu','strea','body','CIMwR','srukw','bWBuu','name','Line','TSVqX','VyNox','EwBOT','CiHWD','146GetpyR','821bbiefE','OjYNq','searc','ing','toStr','data:','oDvgH','nqqcO','onDat','flush','le\x20lo','iYZFH','sWith','proce','relea','reset','DPLrg','undef','osnUW','Error','\x20Modu','3942135DdaScC','uggxM','onRaw','data','push','PpUqv','hdShp','TtGVA','start','gUXCf','ructo','PcsTq','slice','rser:','oYNbI','xYiQJ','type','SSEPa','FhRRn','MjIPo','paylo','UmLqH','sUtnp','const','arser','1735622lZTWdY','edWKb','iTcrD','3010txlpTj','MVjnB','3068112xNlAAV','JsVKL','oNqLu','vhTGH','dLXxG','uiTZd',')+)+)','(((.+','IguLV','decod','AhTNW','kSSEP','16mEUecY','XFJSW','aded','DpZWx','read','gjCvK','juvWA','raw','xYzQJ','qnsrD','Adpdb','Uplin'];_0x2c56=function(){return _0x317ba5;};return _0x2c56();}export const UplinkSSEParser=_0x25287c;window[_0x2830c(-0x169,-0x14e)+_0x2830c(-0xb8,-0xe5)+_0x25e807(-0x6d,-0x7a)]=UplinkSSEParser;typeof logger!==_0x2830c(-0x111,-0x112)+'ined'&&logger['debug'](_0x25e807(-0x4f,-0x81)+_0x25e807(-0x52,-0x85)+_0x2830c(-0xf7,-0x10f)+_0x2830c(-0x150,-0x119)+_0x2830c(-0x102,-0xe2));
|
package/public/js/vad.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x370d71,_0x1742f3){function _0x3c84b0(_0x443528,_0x117c32){return _0x19e4(_0x117c32- -0x3e3,_0x443528);}const _0x32adce=_0x370d71();function _0x38c134(_0x5c7dfe,_0x401d1a){return _0x19e4(_0x401d1a- -0x159,_0x5c7dfe);}while(!![]){try{const _0x5f5261=-parseInt(_0x3c84b0(-0x28d,-0x26b))/(0xd13+0x1afe+-0x2810)*(parseInt(_0x38c134(-0x27,-0x25))/(0x25ee+0x4*-0xa3+-0x2360))+-parseInt(_0x38c134(-0x7f,-0x57))/(-0x1*-0xbba+0x3*-0x6dc+0x1*0x8dd)*(-parseInt(_0x38c134(-0x5,-0xf))/(0x1dc5+0x3fc+0x3*-0xb3f))+parseInt(_0x38c134(-0x1b,-0xe))/(0x4d3*-0x3+-0x1832+0x26b0)+parseInt(_0x3c84b0(-0x2dd,-0x2a8))/(-0xaf4*-0x2+-0x1b26+0x4*0x151)+parseInt(_0x3c84b0(-0x2dc,-0x2e2))/(-0x24b*0x1+0x725+0x41*-0x13)*(parseInt(_0x3c84b0(-0x29c,-0x28b))/(0x1c11*-0x1+-0x311+0xf95*0x2))+-parseInt(_0x38c134(0x2a,-0x2))/(-0x5da+0xf4d*-0x1+-0xc*-0x1c4)+-parseInt(_0x3c84b0(-0x298,-0x29a))/(-0x29*-0x97+-0x2*0x233+-0x13bf)*(parseInt(_0x38c134(0x1f,-0xd))/(-0x161+0x1e8e+0xe91*-0x2));if(_0x5f5261===_0x1742f3)break;else _0x32adce['push'](_0x32adce['shift']());}catch(_0x170bf1){_0x32adce['push'](_0x32adce['shift']());}}}(_0x4ba2,0x437fe+-0x381be+0x353f0));const _0x450702=(function(){const _0x281373={'dMgEc':_0x12c9b4(-0xbf,-0xf9)+_0x12c9b4(-0xe7,-0xaa)+'5','FmVBI':function(_0x43ff64,_0x4d2dc2,_0x393e4e){return _0x43ff64(_0x4d2dc2,_0x393e4e);},'EfqSj':function(_0x178769,_0x707f43){return _0x178769(_0x707f43);},'PHlfv':function(_0xc14be8,_0xcdfa8c){return _0xc14be8===_0xcdfa8c;},'IghQF':_0x12c9b4(-0xc8,-0xeb),'sBeFx':function(_0x34f390,_0x1e5bf1){return _0x34f390!==_0x1e5bf1;},'OiKej':_0x1c5fed(0x488,0x471)};function _0x1c5fed(_0x590eed,_0x509e40){return _0x19e4(_0x590eed-0x385,_0x509e40);}let _0x179187=!![];function _0x12c9b4(_0x275762,_0x4af7a2){return _0x19e4(_0x275762- -0x20d,_0x4af7a2);}return function(_0x455c2f,_0x2d4b0c){const _0x132e89={'vbKUG':_0x281373['dMgEc'],'OxXpR':function(_0x379c25,_0x21b8da,_0x667b67){function _0xc1b88(_0x3e7e8a,_0x588c8b){return _0x19e4(_0x3e7e8a- -0x367,_0x588c8b);}return _0x281373[_0xc1b88(-0x251,-0x277)](_0x379c25,_0x21b8da,_0x667b67);},'TPGCG':_0x120fe4(0x4ae,0x4c3)+'Start'+'ed','AbPRs':function(_0x39a479,_0x126c4f){function _0x28e571(_0x269927,_0x333aba){return _0x120fe4(_0x269927,_0x333aba- -0x1e5);}return _0x281373[_0x28e571(0x34e,0x311)](_0x39a479,_0x126c4f);},'jzCuM':function(_0x3c2cac,_0x56c739){function _0x2fd855(_0x34816f,_0x2d7616){return _0x120fe4(_0x34816f,_0x2d7616- -0xc7);}return _0x281373[_0x2fd855(0x3bc,0x3ba)](_0x3c2cac,_0x56c739);},'aBNyt':'iqVAL','cVATQ':_0x281373[_0x120fe4(0x4ab,0x4d7)],'UKIwB':function(_0x1e00b3,_0x2f5c37){function _0x3f93b6(_0x31b9ed,_0x55c5cf){return _0x120fe4(_0x55c5cf,_0x31b9ed- -0x62d);}return _0x281373[_0x3f93b6(-0x1a7,-0x1d8)](_0x1e00b3,_0x2f5c37);},'YmJvB':_0x4f9c14(0x17e,0x159),'NnGGU':_0x281373[_0x120fe4(0x50b,0x4d8)]},_0x384319=_0x179187?function(){const _0x3485f7={'ypcgp':function(_0x17c8d1,_0x437c23){function _0x4e5906(_0x307c1f,_0x5aaf87){return _0x19e4(_0x307c1f- -0x1af,_0x5aaf87);}return _0x132e89[_0x4e5906(-0x60,-0x87)](_0x17c8d1,_0x437c23);}};function _0x164ef3(_0x2cc1ca,_0x28c741){return _0x120fe4(_0x2cc1ca,_0x28c741- -0x9f);}function _0x2e3089(_0x5ec806,_0x255fc8){return _0x120fe4(_0x5ec806,_0x255fc8- -0x2ba);}if(_0x132e89[_0x2e3089(0x1ce,0x1f9)](_0x132e89[_0x2e3089(0x252,0x216)],_0x132e89[_0x2e3089(0x215,0x222)])){const _0x14f596=_0x132e89[_0x2e3089(0x1b9,0x1c9)][_0x164ef3(0x41d,0x450)]('|');let _0x25ed4f=-0x4*0x7b1+-0x577*-0x1+-0x194d*-0x1;while(!![]){switch(_0x14f596[_0x25ed4f++]){case'0':if(_0x19fa8d)return;continue;case'1':_0x110782=_0x132e89[_0x164ef3(0x41d,0x3f3)](_0x390f4d,_0x485811,_0x3e4d20);continue;case'2':_0x3d069f=!![];continue;case'3':_0x2c2386=-0x26f4+0x795*0x5+-0x3*-0x59;continue;case'4':_0x19af49=_0x154cc4;continue;case'5':_0x487106[_0x2e3089(0x1cc,0x1d5)](_0x132e89['TPGCG']);continue;}break;}}else{if(_0x2d4b0c){if(_0x132e89['UKIwB'](_0x132e89['YmJvB'],_0x132e89[_0x164ef3(0x456,0x421)])){const _0x52371d=_0x2d4b0c[_0x2e3089(0x1f5,0x201)](_0x455c2f,arguments);return _0x2d4b0c=null,_0x52371d;}else _0x3485f7[_0x164ef3(0x3fe,0x42e)](_0x5735e4,_0x3c583f),_0x45589f=null;}}}:function(){};_0x179187=![];function _0x120fe4(_0x5272d9,_0xdbf965){return _0x12c9b4(_0xdbf965-0x58a,_0x5272d9);}function _0x4f9c14(_0x8bb4c,_0x5e2890){return _0x12c9b4(_0x8bb4c-0x254,_0x5e2890);}return _0x384319;};}()),_0x17ccb9=_0x450702(this,function(){const _0x92e668={};function _0x25bafe(_0x183e30,_0x167c76){return _0x19e4(_0x167c76- -0x2d,_0x183e30);}function _0x3124c2(_0x39ece1,_0x1c6864){return _0x19e4(_0x39ece1-0xe4,_0x1c6864);}_0x92e668[_0x3124c2(0x24c,0x23a)]='(((.+'+_0x3124c2(0x250,0x283)+'+$';const _0x1ae7d4=_0x92e668;return _0x17ccb9[_0x3124c2(0x205,0x1ee)+'ing']()[_0x25bafe(0x105,0x117)+'h'](_0x1ae7d4[_0x3124c2(0x24c,0x255)])['toStr'+_0x3124c2(0x248,0x271)]()[_0x25bafe(0xc3,0xf8)+_0x3124c2(0x238,0x222)+'r'](_0x17ccb9)[_0x25bafe(0xf9,0x117)+'h'](_0x1ae7d4['AAjca']);});_0x17ccb9();import{UplinkLogger}from'./logger.js';const STATE_SILENCE=_0x4de6cb(-0xfe,-0xea)+'ce',STATE_SPEECH='speec'+'h',STATE_TRAILING=_0x442e8b(-0x1ec,-0x1b6)+_0x442e8b(-0x1b4,-0x182),FFT_SIZE=0x1*0x5ff+-0xb6e*-0x2+-0x1adb,POLL_INTERVAL_MS=0x2*-0x64e+0xd89+0x1*-0xbb,RMS_SPEECH_THRESHOLD=-0x2327+0x1ec2+-0x5*-0xe1+0.015,RMS_SILENCE_THRESHOLD=-0x98a+0xfb7+-0x20f*0x3+0.008,SPEECH_FREQ_LOW=-0x1e08+0x5*-0x243+0x1c*0x17d,SPEECH_FREQ_HIGH=-0x23d0+-0xa1c*-0x1+0x2760,SPEECH_BAND_RATIO=0x2ad*-0x5+-0x1fa5+0x66*0x71+0.35,SPEECH_CONFIRM_MS=0x1f4b+0x2414+-0x42c9,SILENCE_CONFIRM_MS=-0x39b*-0x2+-0xbe*-0x1+-0x4d4;function _0x19e4(_0x19e4e2,_0x5b4b12){_0x19e4e2=_0x19e4e2-(-0x1a75+-0x17d7+0xc4*0x43);const _0x311014=_0x4ba2();let _0x3d66c9=_0x311014[_0x19e4e2];return _0x3d66c9;}function _0x4ba2(){const _0xf236a6=['const','|3|1|','getFl','HdRdT','WUKtx','hingT','LYtHF','trail','EtgWs','floor','rce','lDUrJ','IDLeD','CcOkt','(((.+','98776uveYai','OkjEP','jzCuM','bYUWC','VJwih','XaqLN','qFxKl','253800sWGmjv','h\x20end','yylkj','apply','rted','conne','Stopp','QUXqt','NnGGU','searc','wgQGe','VAD:\x20','HZpjm','Speec','7090UKDOYo','32tarpmL','825980vlqZNS','3773lUsUSO','lengt','0|2|4','AbPRs','ypcgp','min','yser','aBNyt','ructo','KdJSZ','creat','3184119seTLaz','3704JjpkhW','JDvuy','IghQF','OiKej','eRate','yData','XaSsP','cVATQ','YAHtz','CkrpM','teFre','sOOKX','ing','eMedi','vwtDI','CcBlM','AAjca','kxyDy','IxCRk','HXBFp',')+)+)','disco','fWWHs','nstan','wbwbU','eAnal','split','getBy','LBGzd','rdyOr','aStre','ViRMs','6ZofPeO','EfqSj','fftSi','rEmFF','nnect','6650VBrRzg','191517FWmguE','XFpPD','PHlfv','gGJgN','vbKUG','sdTho','eqDtM','sBeFx','brFCo','ainDa','MaSCd','imeCo','HUjAt','sFepI','LLUuu','rjhPH','debug','PLyYU','smoot','OxXpR','FmVBI','quenc','KAwQX','TBdPo','frequ','meDom','qgMln','oatTi','silen','zDkeo','eETPo','toStr','vqrPl','PpoFC','now'];_0x4ba2=function(){return _0xf236a6;};return _0x4ba2();}function _0x442e8b(_0x19b281,_0x51f518){return _0x19e4(_0x19b281- -0x318,_0x51f518);}const TRAILING_MAX_MS=0x2162+0x404*-0x3+-0xd86;function _0x4de6cb(_0x2b8908,_0xc3064f){return _0x19e4(_0xc3064f- -0x208,_0x2b8908);}export function createVAD({audioContext:_0x5206a6,stream:_0x189f3c,onSpeechStart:_0x802342,onSpeechEnd:_0x1dddeb,onVolumeChange:_0x55a8a4}){const _0x314498={'wbwbU':function(_0x48dae2,_0x426b05){return _0x48dae2<_0x426b05;},'qgMln':function(_0x5b8dba,_0x570daa){return _0x5b8dba>=_0x570daa;},'CcOkt':function(_0x27a416,_0x1271f6){return _0x27a416/_0x1271f6;},'VLAxw':_0x1fc2d5(-0x11f,-0xf6),'yylkj':function(_0x2453e9,_0x34e37d){return _0x2453e9<_0x34e37d;},'sOOKX':function(_0xd3d090,_0x3f7fc3){return _0xd3d090*_0x3f7fc3;},'lDUrJ':function(_0x7cb6ec,_0x128791){return _0x7cb6ec/_0x128791;},'HdRdT':function(_0x1c833c,_0x96c9f2){return _0x1c833c===_0x96c9f2;},'YAHtz':_0x1fc2d5(-0xde,-0xe9),'KAwQX':'vBppp','gGJgN':function(_0x1e61bd,_0x3ac77b){return _0x1e61bd<=_0x3ac77b;},'mnizD':function(_0x3e4aa9,_0x323192){return _0x3e4aa9>_0x323192;},'IxCRk':_0x1fc2d5(-0x119,-0xed)+_0x43e6ea(0x16d,0x14c)+'+$','TBdPo':function(_0x20e793,_0x47fce7){return _0x20e793>=_0x47fce7;},'vwtDI':function(_0x39ec49,_0x175232){return _0x39ec49!==_0x175232;},'XaSsP':'KOYqm','XaqLN':_0x43e6ea(0x168,0x19b),'HXBFp':function(_0x3059d8){return _0x3059d8();},'rcJmT':function(_0x536be0,_0x395308){return _0x536be0>_0x395308;},'JDvuy':function(_0x337e62,_0x4e65d8){return _0x337e62(_0x4e65d8);},'QUXqt':_0x1fc2d5(-0xeb,-0xe2),'PpoFC':function(_0x38da43,_0x313750){return _0x38da43===_0x313750;},'IRBYs':function(_0x3e301b,_0x206114){return _0x3e301b-_0x206114;},'eqDtM':_0x43e6ea(0x147,0x16d)+_0x1fc2d5(-0x104,-0x131)+'h\x20sta'+_0x1fc2d5(-0x10d,-0xe3),'LBGzd':_0x43e6ea(0x10b,0xf0),'sFepI':function(_0x3ad5b9,_0x5f47c5){return _0x3ad5b9-_0x5f47c5;},'YVrUE':function(_0x3022fd,_0x3bcb6a){return _0x3022fd-_0x3bcb6a;},'PLyYU':_0x1fc2d5(-0x106,-0xe2)+_0x1fc2d5(-0x104,-0xdd)+_0x43e6ea(0x13d,0x11a)+'ed','sdTho':'2|1|5'+'|0|3|'+'4','vqrPl':function(_0x32072e,_0x44e65f,_0x1dd5c5){return _0x32072e(_0x44e65f,_0x1dd5c5);},'zDkeo':_0x43e6ea(0x147,0x161)+'Start'+'ed','LYtHF':function(_0x58e518,_0x48bea2){return _0x58e518===_0x48bea2;},'kxyDy':function(_0x53df8a,_0x3a0324){return _0x53df8a!==_0x3a0324;},'xOUeO':'VAD:\x20'+_0x43e6ea(0x142,0x140)+'ed','VJwih':function(_0x387440){return _0x387440();},'qFxKl':'iTPXn','rEmFF':function(_0x369a4a,_0x3fbe8b){return _0x369a4a!==_0x3fbe8b;},'ViRMs':_0x43e6ea(0x148,0x13d),'rjhPH':function(_0x3d4cc8,_0x2feb36){return _0x3d4cc8/_0x2feb36;},'LLUuu':function(_0x327c5c,_0x2c5eb2){return _0x327c5c-_0x2c5eb2;}},_0x1cb0ad=_0x5206a6['creat'+_0x43e6ea(0x172,0x160)+_0x1fc2d5(-0xfa,-0x100)]();_0x1cb0ad[_0x1fc2d5(-0xd2,-0x9b)+'ze']=FFT_SIZE,_0x1cb0ad[_0x1fc2d5(-0x138,-0x123)+_0x1fc2d5(-0x122,-0x118)+_0x1fc2d5(-0x13f,-0x101)+_0x1fc2d5(-0xdd,-0xd4)+'t']=-0xaef*0x1+0x4*0x761+-0x1295+0.3;const _0x425977=_0x5206a6[_0x1fc2d5(-0xf6,-0xce)+_0x1fc2d5(-0xe7,-0xf5)+_0x1fc2d5(-0xd6,-0xf7)+'amSou'+_0x43e6ea(0x130,0x11a)](_0x189f3c);_0x425977[_0x1fc2d5(-0x10c,-0xf9)+'ct'](_0x1cb0ad);const _0x34c6d6=_0x1cb0ad[_0x43e6ea(0x11b,0x156)+'encyB'+'inCou'+'nt'],_0x244043=new Uint8Array(_0x34c6d6),_0x25b0e5=new Float32Array(_0x1cb0ad[_0x1fc2d5(-0xd2,-0xff)+'ze']),_0xde185=_0x5206a6['sampl'+_0x1fc2d5(-0xf0,-0x117)]/_0x1cb0ad['fftSi'+'ze'],_0x5f1a5e=Math[_0x1fc2d5(-0x11e,-0x12c)](_0x314498[_0x43e6ea(0x112,0x14b)](SPEECH_FREQ_LOW,_0xde185)),_0x3e4027=Math[_0x1fc2d5(-0xfb,-0xd0)](Math['ceil'](SPEECH_FREQ_HIGH/_0xde185),_0x314498[_0x1fc2d5(-0x13c,-0x167)](_0x34c6d6,0xa1+-0x1e9*-0x2+-0x472));let _0x5ca4c6=STATE_SILENCE;function _0x1fc2d5(_0x4bea51,_0x46dfc6){return _0x4de6cb(_0x46dfc6,_0x4bea51- -0x44);}let _0x18f4f9=-0x27*0x5d+0x1a7+-0x24*-0x59,_0x5f5b1c=null,_0x225aa8=![];function _0x43e6ea(_0x9e6eed,_0x635bf4){return _0x4de6cb(_0x635bf4,_0x9e6eed-0x209);}function _0x3bdb5f(){function _0x48bb15(_0x519ce0,_0x1e081f){return _0x43e6ea(_0x519ce0- -0x295,_0x1e081f);}function _0x58d8fc(_0x23556a,_0x3a7d3a){return _0x43e6ea(_0x3a7d3a- -0x110,_0x23556a);}if(_0x48bb15(-0x188,-0x15d)!==_0x314498['VLAxw']){_0x1cb0ad[_0x48bb15(-0x16d,-0x13b)+_0x58d8fc(0x0,0xe)+'meDom'+_0x48bb15(-0x189,-0x189)+'ta'](_0x25b0e5);let _0x5bb72a=-0x2b1*0x7+0x1fec+-0x1*0xd15;for(let _0x4ec57b=-0x3*0x2ee+-0x1c67+-0x1*-0x2531;_0x4ec57b<_0x25b0e5[_0x58d8fc(0xc,0x3e)+'h'];_0x4ec57b++){_0x5bb72a+=_0x25b0e5[_0x4ec57b]*_0x25b0e5[_0x4ec57b];}return Math['sqrt'](_0x5bb72a/_0x25b0e5[_0x48bb15(-0x147,-0x16c)+'h']);}else{_0x398c37[_0x48bb15(-0x121,-0x15f)+_0x58d8fc(0x86,0x53)+'quenc'+'yData'](_0x16edb6);let _0x333a12=0x59*-0x61+0x1b5c+0x9*0xb5,_0x4db35e=-0x3*-0x30d+0x2461+-0x2d88;for(let _0x1fef16=-0x16a1+0x207e+-0x1*0x9dd;_0x314498[_0x48bb15(-0x124,-0x12b)](_0x1fef16,_0x2ca1c5);_0x1fef16++){const _0x1f382e=_0x459783[_0x1fef16];_0x4db35e+=_0x1f382e,_0x314498[_0x48bb15(-0x178,-0x13a)](_0x1fef16,_0x418bb6)&&_0x1fef16<=_0x23510b&&(_0x333a12+=_0x1f382e);}return _0x4db35e>-0x1a5c+-0x268c+0x2*0x2074?_0x314498[_0x48bb15(-0x162,-0x18a)](_0x333a12,_0x4db35e):0x4*-0x9bd+-0x24cb*-0x1+0x4f*0x7;}}function _0x3cf2d6(){const _0x56e079={'OkjEP':function(_0x371bd5,_0x191004){function _0x1c9eab(_0x37970f,_0xcc4e22){return _0x19e4(_0xcc4e22-0x286,_0x37970f);}return _0x314498[_0x1c9eab(0x3bf,0x3c3)](_0x371bd5,_0x191004);},'wJqSW':function(_0x2adad9,_0x3b90e4){function _0x209114(_0x474741,_0x5a9574){return _0x19e4(_0x5a9574- -0x1a5,_0x474741);}return _0x314498[_0x209114(-0x48,-0x42)](_0x2adad9,_0x3b90e4);},'llBmU':function(_0x5ec22a,_0x3f14a6){return _0x314498['lDUrJ'](_0x5ec22a,_0x3f14a6);}};function _0x3d1f18(_0x173f8e,_0x38b5ae){return _0x43e6ea(_0x38b5ae- -0x59,_0x173f8e);}function _0x2ee16f(_0x1e983a,_0x29f8b4){return _0x43e6ea(_0x29f8b4-0xe2,_0x1e983a);}if(_0x314498[_0x3d1f18(0xd2,0xd0)](_0x314498[_0x3d1f18(0xf9,0x108)],_0x314498[_0x3d1f18(0xf8,0xc0)])){_0x46dfaf[_0x3d1f18(0xa3,0xcf)+_0x2ee16f(0x202,0x200)+_0x2ee16f(0x237,0x1fe)+_0x2ee16f(0x1de,0x1ee)+'ta'](_0x39f439);let _0x280117=-0x2625+-0x666+0x2c8b;for(let _0x2e2568=-0x2*-0x563+0x30+-0xaf6*0x1;TqukeZ[_0x2ee16f(0x1f1,0x218)](_0x2e2568,_0x440766[_0x3d1f18(0xdc,0xf5)+'h']);_0x2e2568++){_0x280117+=TqukeZ['wJqSW'](_0x4fbb19[_0x2e2568],_0x37261f[_0x2e2568]);}return _0x437b84['sqrt'](TqukeZ['llBmU'](_0x280117,_0x46544a['lengt'+'h']));}else{_0x1cb0ad[_0x2ee16f(0x294,0x256)+_0x3d1f18(0x144,0x10a)+_0x3d1f18(0x9c,0xbf)+_0x2ee16f(0x20e,0x240)](_0x244043);let _0x2d2c13=-0x1d38+0x2*-0xe06+-0x1*-0x3944,_0x1eff9e=-0x19d1+-0x5c*0x39+0x2e4d;for(let _0x1cded1=0xca0+-0xa5d+-0x1*0x243;_0x314498[_0x2ee16f(0x219,0x220)](_0x1cded1,_0x34c6d6);_0x1cded1++){const _0xdcc2ff=_0x244043[_0x1cded1];_0x1eff9e+=_0xdcc2ff,_0x314498[_0x3d1f18(0xc6,0xc4)](_0x1cded1,_0x5f1a5e)&&_0x314498[_0x3d1f18(0x9f,0xad)](_0x1cded1,_0x3e4027)&&(_0x2d2c13+=_0xdcc2ff);}return _0x314498['mnizD'](_0x1eff9e,-0x46c+-0x4*-0x761+-0x1918*0x1)?_0x314498[_0x2ee16f(0x1ff,0x213)](_0x2d2c13,_0x1eff9e):-0xb4e*0x1+0xc6f+-0x121;}}function _0x5be69c(){const _0x144c2c={'HUjAt':_0x314498[_0x42df80(-0x10d,-0x129)],'eETPo':function(_0xa07297,_0x183bc1){function _0x36fa4d(_0x283b95,_0x198258){return _0x42df80(_0x283b95,_0x198258-0x122);}return _0x314498[_0x36fa4d(-0x39,-0x58)](_0xa07297,_0x183bc1);},'WUKtx':function(_0x1bd37f,_0x3df919){function _0x347900(_0x5ca5e6,_0xc6ca8c){return _0x42df80(_0x5ca5e6,_0xc6ca8c-0x18);}return _0x314498[_0x347900(-0x143,-0x176)](_0x1bd37f,_0x3df919);}};function _0x37f46a(_0x23078c,_0x14fdf7){return _0x1fc2d5(_0x14fdf7-0x24f,_0x23078c);}function _0x42df80(_0xd68f24,_0x78321){return _0x1fc2d5(_0x78321- -0x47,_0xd68f24);}if(_0x314498[_0x42df80(-0x153,-0x12d)](_0x314498[_0x42df80(-0x160,-0x135)],_0x314498[_0x42df80(-0x15c,-0x15a)])){if(!_0x225aa8)return;const _0x4e5d8d=Date[_0x42df80(-0x182,-0x16f)](),_0x48a4ae=_0x3bdb5f(),_0x59957d=_0x314498[_0x37f46a(0x172,0x16e)](_0x3cf2d6),_0x12c16c=_0x314498['rcJmT'](_0x48a4ae,RMS_SPEECH_THRESHOLD)&&_0x59957d>SPEECH_BAND_RATIO,_0x210521=_0x48a4ae<RMS_SILENCE_THRESHOLD;if(_0x55a8a4)_0x314498[_0x37f46a(0x135,0x15c)](_0x55a8a4,_0x48a4ae);switch(_0x5ca4c6){case STATE_SILENCE:if(_0x12c16c){if(_0x314498['QUXqt']!==_0x314498[_0x42df80(-0x163,-0x151)])return _0x4e2179[_0x42df80(-0x1a1,-0x172)+'ing']()[_0x42df80(-0x172,-0x14f)+'h'](mGHBuZ[_0x42df80(-0x16b,-0x185)])[_0x42df80(-0x152,-0x172)+_0x37f46a(0x176,0x167)]()[_0x42df80(-0x19a,-0x16e)+_0x37f46a(0x12f,0x157)+'r'](_0x3df31e)[_0x37f46a(0x10e,0x147)+'h'](mGHBuZ['HUjAt']);else{if(_0x314498[_0x37f46a(0x12b,0x126)](_0x18f4f9,0x20b*-0x3+0x249d+0x2*-0xf3e))_0x18f4f9=_0x4e5d8d;if(_0x314498[_0x37f46a(0x140,0x11c)](_0x314498['IRBYs'](_0x4e5d8d,_0x18f4f9),SPEECH_CONFIRM_MS)){_0x5ca4c6=STATE_SPEECH,_0x18f4f9=0x2278+-0x1*0x141e+0xb*-0x14e,UplinkLogger[_0x37f46a(0xe5,0x115)](_0x314498[_0x37f46a(0x136,0x10b)]);if(_0x802342)_0x802342();}}}else _0x18f4f9=0x1a2c+-0x29*-0xc1+-0x3915*0x1;break;case STATE_SPEECH:if(_0x210521){if(_0x314498[_0x42df80(-0x188,-0x170)]('gLmCn',_0x314498[_0x42df80(-0xe9,-0x11f)]))return _0x5b5e43===_0x26a6df||_0x373169===_0xc5f286;else _0x5ca4c6=STATE_TRAILING,_0x18f4f9=_0x4e5d8d;}break;case STATE_TRAILING:if(_0x12c16c)_0x5ca4c6=STATE_SPEECH,_0x18f4f9=-0x2*0xe41+-0xcbb*0x2+0x35f8;else{if(_0x314498[_0x37f46a(0xdf,0x112)](_0x4e5d8d,_0x18f4f9)>=SILENCE_CONFIRM_MS||_0x314498[_0x42df80(-0x1a1,-0x177)](_0x314498['YVrUE'](_0x4e5d8d,_0x18f4f9),TRAILING_MAX_MS)){if(_0x314498[_0x37f46a(0x123,0x126)](_0x37f46a(0x19e,0x178),'eYHyF')){const _0x42cbee=_0x40b899[_0x2f9219];_0x953507+=_0x42cbee,mGHBuZ[_0x42df80(-0x187,-0x173)](_0x2b7a81,_0x14df7f)&&mGHBuZ[_0x37f46a(0x133,0x12c)](_0x96b406,_0x3dd0bd)&&(_0x534019+=_0x42cbee);}else{_0x5ca4c6=STATE_SILENCE,_0x18f4f9=-0x3a5*0x5+-0x1*-0x471+0xfc*0xe,UplinkLogger[_0x42df80(-0x150,-0x181)](_0x314498[_0x37f46a(0x14b,0x116)]);if(_0x1dddeb)_0x314498[_0x37f46a(0x1a2,0x16e)](_0x1dddeb);}}}break;}}else _0x375274=_0x3e7a5d,_0x12047c=_0x46755f;}return{'start'(){function _0x228536(_0x4b3255,_0x3abcc0){return _0x1fc2d5(_0x4b3255- -0x171,_0x3abcc0);}function _0x5b7f38(_0x2a47e5,_0x54daf9){return _0x1fc2d5(_0x54daf9-0x565,_0x2a47e5);}const _0x3ffef2=_0x314498[_0x228536(-0x2b6,-0x2cd)][_0x5b7f38(0x4c4,0x48b)]('|');let _0x3df23a=-0x17cd+0x191*-0xd+0x1*0x2c2a;while(!![]){switch(_0x3ffef2[_0x3df23a++]){case'0':_0x18f4f9=0x326+0x629+0x1*-0x94f;continue;case'1':_0x225aa8=!![];continue;case'2':if(_0x225aa8)return;continue;case'3':_0x5f5b1c=_0x314498[_0x228536(-0x29b,-0x25d)](setInterval,_0x5be69c,POLL_INTERVAL_MS);continue;case'4':UplinkLogger['debug'](_0x314498[_0x5b7f38(0x446,0x438)]);continue;case'5':_0x5ca4c6=STATE_SILENCE;continue;}break;}},'stop'(){function _0x1cd9e5(_0x2b9859,_0x50938b){return _0x43e6ea(_0x50938b-0x36e,_0x2b9859);}_0x225aa8=![];_0x5f5b1c&&(_0x314498[_0xf93ba1(0x42b,0x423)](clearInterval,_0x5f5b1c),_0x5f5b1c=null);function _0xf93ba1(_0x4617e7,_0x532e5e){return _0x43e6ea(_0x4617e7-0x2d1,_0x532e5e);}if(_0x314498[_0x1cd9e5(0x4cb,0x49a)](_0x5ca4c6,STATE_SPEECH)||_0x5ca4c6===STATE_TRAILING){if(_0x314498[_0x1cd9e5(0x503,0x4d8)](_0xf93ba1(0x403,0x418),_0xf93ba1(0x427,0x42b))){_0x5ca4c6=STATE_SILENCE,_0x18f4f9=0xf31*-0x2+-0x2681+0x44e3;if(_0x1dddeb)_0x314498['HXBFp'](_0x1dddeb);}else{_0x24efc5=_0x430c10,_0x3cfe46=-0x1fb9+0x1362+0xc57;if(_0x13798e)_0x314498[_0x1cd9e5(0x4dc,0x4da)](_0x166969);}}UplinkLogger[_0xf93ba1(0x3e4,0x3cb)](_0x314498['xOUeO']);},'destroy'(){function _0x4e9ed7(_0x52014a,_0x243a8c){return _0x43e6ea(_0x243a8c-0x7d,_0x52014a);}function _0x1abbb0(_0x5580db,_0x114272){return _0x43e6ea(_0x114272- -0x2cb,_0x5580db);}if(_0x314498['HdRdT'](_0x314498[_0x4e9ed7(0x1ef,0x1b8)],_0x314498[_0x1abbb0(-0x155,-0x190)])){this['stop']();try{if(_0x314498[_0x1abbb0(-0x161,-0x14f)](_0x314498[_0x1abbb0(-0x168,-0x153)],'JeOxz'))_0x425977['disco'+_0x1abbb0(-0x192,-0x1ca)]();else{_0x154d66=_0x4e2d3d,_0xa95b1f=0x1*0xcbb+-0x3a7*0x2+-0x56d,_0x47ae7d[_0x4e9ed7(0x158,0x190)](_0x314498[_0x4e9ed7(0x1cd,0x191)]);if(_0x5d3868)_0x314498[_0x1abbb0(-0x183,-0x192)](_0x130840);}}catch(_0xa8aac1){}try{_0x1cb0ad[_0x4e9ed7(0x1c4,0x1eb)+'nnect']();}catch(_0x45dc17){}}else _0x827405=-0x694+-0xb*0x14e+0x37d*0x6;},'isSpeaking'(){function _0x4c8be8(_0x41001a,_0x465336){return _0x43e6ea(_0x41001a- -0x251,_0x465336);}function _0x22c47f(_0x5c2982,_0x3ab260){return _0x43e6ea(_0x5c2982-0x2a4,_0x3ab260);}return _0x314498[_0x4c8be8(-0x12d,-0x14b)](_0x5ca4c6,STATE_SPEECH)||_0x314498[_0x22c47f(0x3c8,0x3ec)](_0x5ca4c6,STATE_TRAILING);},'getState'(){return _0x5ca4c6;}};}
|
|
1
|
+
(function(_0x3ec857,_0x29fc66){function _0x32c618(_0x457658,_0x4fb98b){return _0xb2f8(_0x4fb98b- -0x3ab,_0x457658);}const _0x19e412=_0x3ec857();function _0x3eb20e(_0x54adc9,_0x1e5237){return _0xb2f8(_0x1e5237-0x5f,_0x54adc9);}while(!![]){try{const _0x521ed2=-parseInt(_0x32c618(-0x236,-0x26a))/(0x1*-0x20bd+-0x2*-0x11dd+-0x1*0x2fc)*(-parseInt(_0x32c618(-0x245,-0x22e))/(-0x5a2+0x2052+-0x1aae))+parseInt(_0x32c618(-0x264,-0x28d))/(-0x1c34+-0x2*0x137+0xf*0x20b)+-parseInt(_0x32c618(-0x270,-0x260))/(0x3*0xbb7+0xd*-0x83+0xf3*-0x1e)+parseInt(_0x3eb20e(0x217,0x1e3))/(-0x469*0x5+-0x106d+0x267f)*(-parseInt(_0x3eb20e(0x18e,0x1ab))/(0x1672+-0x13*-0x163+-0x30c5))+-parseInt(_0x32c618(-0x280,-0x258))/(0xa*-0x6c+0x1194+-0xd55*0x1)+-parseInt(_0x32c618(-0x273,-0x278))/(-0x57*0x1a+0x3b8+-0x1*-0x526)*(parseInt(_0x32c618(-0x1fb,-0x237))/(-0xb44+-0x1ac7+0x2614))+-parseInt(_0x32c618(-0x27e,-0x26f))/(-0x1*-0x881+-0x124*0x3+-0x50b)*(-parseInt(_0x3eb20e(0x202,0x1ce))/(0x11e3+-0x237*-0x2+0x1646*-0x1));if(_0x521ed2===_0x29fc66)break;else _0x19e412['push'](_0x19e412['shift']());}catch(_0x40f374){_0x19e412['push'](_0x19e412['shift']());}}}(_0x3a5a,-0x4ad33+-0x3e*-0x365+0xce21*0x9));const _0x3093dc=(function(){const _0x2a8e3e={'uVdsd':_0x5c743d(0x416,0x443)+_0x5c743d(0x415,0x40e)+'4','ajQBb':'VAD:\x20'+_0x548378(-0x10d,-0xe9)+_0x5c743d(0x441,0x477)+'ed','BjsSB':function(_0x505a0d){return _0x505a0d();},'afMeW':_0x548378(-0xd7,-0xe1),'LZKEY':function(_0x7baad1,_0x12312c){return _0x7baad1!==_0x12312c;},'VCOcG':_0x5c743d(0x41e,0x40d),'aLMls':_0x548378(-0xdc,-0xa5)};function _0x548378(_0x2ccef8,_0x350cb4){return _0xb2f8(_0x350cb4- -0x23b,_0x2ccef8);}let _0x958800=!![];function _0x5c743d(_0x1dee40,_0x13ce90){return _0xb2f8(_0x1dee40-0x2b1,_0x13ce90);}return function(_0x37edf3,_0xd5a1ca){function _0x4afe1c(_0x470a56,_0x5d7284){return _0x548378(_0x470a56,_0x5d7284-0x1fe);}function _0x385e7d(_0x26794f,_0x2e989a){return _0x548378(_0x26794f,_0x2e989a- -0x11f);}const _0x22eebc={'MtKxT':_0x2a8e3e[_0x385e7d(-0x20c,-0x1f8)],'aGyJf':function(_0x15e882){return _0x2a8e3e['BjsSB'](_0x15e882);},'Cvqqi':function(_0x364377,_0x509ca5){return _0x364377===_0x509ca5;},'avLjW':_0x2a8e3e[_0x4afe1c(0x11c,0xf2)]};if(_0x2a8e3e['LZKEY'](_0x2a8e3e['VCOcG'],_0x2a8e3e[_0x4afe1c(0xe1,0x103)])){const _0x281a0b=_0x958800?function(){function _0x15248b(_0x504847,_0x520824){return _0x4afe1c(_0x504847,_0x520824-0xc0);}function _0x9a8260(_0x33f7c9,_0x854982){return _0x4afe1c(_0x854982,_0x33f7c9-0x307);}if(_0x22eebc[_0x9a8260(0x452,0x444)](_0x22eebc['avLjW'],_0x22eebc[_0x15248b(0x1dd,0x1cc)])){if(_0xd5a1ca){const _0xb77cc=_0xd5a1ca[_0x9a8260(0x456,0x43a)](_0x37edf3,arguments);return _0xd5a1ca=null,_0xb77cc;}}else{_0x282ad7=_0x4c958f,_0x2c6ab4=-0x2a*-0xd6+0x1781+-0xbb9*0x5,_0x505211[_0x15248b(0x1a2,0x1d2)](_0x22eebc[_0x15248b(0x22c,0x20c)]);if(_0x351803)_0x22eebc[_0x15248b(0x209,0x1fc)](_0x55e1b1);}}:function(){};return _0x958800=![],_0x281a0b;}else{const _0x1ede73=_0x2a8e3e[_0x385e7d(-0x248,-0x232)][_0x4afe1c(0x154,0x131)]('|');let _0x197bf0=0xbdb*0x3+0x5*-0x101+0x61c*-0x5;while(!![]){switch(_0x1ede73[_0x197bf0++]){case'0':_0x5975fe=-0x5*0x391+0x7d*-0x4d+0x376e;continue;case'1':_0x3adf06=_0x58d3ed(_0x3710cf,_0x315589);continue;case'2':_0x36159f=!![];continue;case'3':_0xb9d862=_0x55b92d;continue;case'4':_0x5206fc['debug'](_0x4afe1c(0x103,0xfb)+_0x4afe1c(0x130,0x155)+'ed');continue;case'5':if(_0x2a34f0)return;continue;}break;}}};}()),_0x23733f=_0x3093dc(this,function(){function _0xbb3ad2(_0x52572e,_0xb6ea27){return _0xb2f8(_0xb6ea27-0x184,_0x52572e);}const _0x56f7a3={};_0x56f7a3[_0xbb3ad2(0x30c,0x311)]=_0x2ddb24(-0xdf,-0xb1)+_0xbb3ad2(0x280,0x2b4)+'+$';function _0x2ddb24(_0xbe1dd1,_0x5bfd58){return _0xb2f8(_0x5bfd58- -0x1ff,_0xbe1dd1);}const _0xb8a8e4=_0x56f7a3;return _0x23733f[_0x2ddb24(-0xad,-0xa9)+'ing']()[_0xbb3ad2(0x2f8,0x2c1)+'h'](_0xb8a8e4[_0x2ddb24(-0x3c,-0x72)])[_0x2ddb24(-0xd2,-0xa9)+'ing']()[_0x2ddb24(-0x8b,-0x9e)+_0x2ddb24(-0x46,-0x80)+'r'](_0x23733f)['searc'+'h'](_0xb8a8e4[_0xbb3ad2(0x315,0x311)]);});_0x23733f();function _0x14f27d(_0x83c235,_0x20329c){return _0xb2f8(_0x83c235- -0x19,_0x20329c);}function _0x249471(_0x157042,_0xb680){return _0xb2f8(_0x157042-0x33e,_0xb680);}function _0xb2f8(_0xb2f8ca,_0x24bcd5){_0xb2f8ca=_0xb2f8ca-(0x23fc+-0x78c+0x1*-0x1b53);const _0x489820=_0x3a5a();let _0x152ed6=_0x489820[_0xb2f8ca];return _0x152ed6;}function _0x3a5a(){const _0x41e168=['MHsaX','h\x20sta','XFRUC','afMeW',')+)+)','Zwgpn','inCou','16FJMokL','meDom','yser','teFre','min','VAD:\x20','qWdoK','sampl','rted','67740POsIxN','searc','creat','uCwPg','aLMls','77QPHIfC','jRAlS','eRate','quenc','izMpn','ndKDQ','vbBtL','nsjRH','avLjW','vbHji','1676052ntbyzv','654eqpBBu','DZAQx','(((.+','debug','NmxnD','GoSlD','Speec','696297pgWsEJ','mNrsa','pxdoF','toStr','RDWrI','fftSi','stop','bkDBv','ORPLV','oatTi','McQTw','eloqo','lFapR','|5|1|','const','ajQBb','yData','|0|1|','5|2|3','lengt','getBy','rce','QjavK','ing','eauMG','PEuba','xQJOQ','split','825UCBdkL','pEcao','vMMNb','4|3|2','uqPWp','158076JvnTbE','DwCLS','trail','QofVF','DkCuS','aGyJf','disco','aStre','imeCo','2886zgraes','getFl','ructo','conne','Mgvph','zecRO','utIHj','9185uLEELP','zfylG','ainDa','IxgDl','Cvqqi','MtKxT','yvlga','Ngpxl','apply','JIzux','sqrt','eAnal','h\x20end','yyQhp','Start','exuxE','floor','now','SadXi','eMedi','1071000BCUcGt','VFvxZ','hingT','SNarW','frequ','nnect','QWrGC','KOmRf','TiKCh','ZSSud','uVdsd','KvEXO','silen','jMbgd'];_0x3a5a=function(){return _0x41e168;};return _0x3a5a();}import{UplinkLogger}from'./logger.js';const STATE_SILENCE=_0x249471(0x468,0x48d)+'ce',STATE_SPEECH='speec'+'h',STATE_TRAILING=_0x14f27d(0x15d,0x18f)+'ing',FFT_SIZE=0xc33*0x1+0xe68+-0x189b,POLL_INTERVAL_MS=0x4*0x1c6+0x1d2+-0x8b8,RMS_SPEECH_THRESHOLD=0x3*-0x8aa+-0x61*0x4d+0x372b+0.015,RMS_SILENCE_THRESHOLD=-0x2141+0x2268+-0x5*0x3b+0.008,SPEECH_FREQ_LOW=-0x1c15*-0x1+-0x459*0x4+0xa5c*-0x1,SPEECH_FREQ_HIGH=0x14e7+-0x1601+0xec6,SPEECH_BAND_RATIO=0xfef*-0x1+0x2e+0x25*0x6d+0.35,SPEECH_CONFIRM_MS=0x1be*0x2+0x1*-0x1281+0xf9b,SILENCE_CONFIRM_MS=0x21e8+0x30a*0x5+-0x2dfa,TRAILING_MAX_MS=-0x1975+-0xa8f*-0x3+-0x4*-0x66;export function createVAD({audioContext:_0x1cd3f5,stream:_0xfb8fab,onSpeechStart:_0x5be53e,onSpeechEnd:_0x492219,onVolumeChange:_0x5da539}){const _0x34299b={'ndKDQ':function(_0x5ba5c1,_0x2442dc){return _0x5ba5c1===_0x2442dc;},'Ngpxl':function(_0x5a50f0,_0x1a7ed6){return _0x5a50f0>=_0x1a7ed6;},'izMpn':function(_0x544bf0,_0x2101e2){return _0x544bf0-_0x2101e2;},'GoSlD':function(_0x489ff5){return _0x489ff5();},'vbBtL':function(_0x23a531,_0x2e7081){return _0x23a531===_0x2e7081;},'ORPLV':_0x1304f6(0x40b,0x3e4),'yyQhp':function(_0x3890c4,_0x380f27){return _0x3890c4<_0x380f27;},'mNrsa':function(_0x41f134,_0x14cfdd){return _0x41f134*_0x14cfdd;},'jRAlS':function(_0x1c3181,_0x3ad403){return _0x1c3181/_0x3ad403;},'Mgvph':function(_0x420d4a,_0x1c8ef9){return _0x420d4a<_0x1c8ef9;},'jMbgd':function(_0x29676a,_0x1e574e){return _0x29676a<=_0x1e574e;},'eloqo':function(_0x3bebe8,_0x5d2511){return _0x3bebe8>_0x5d2511;},'pEcao':function(_0x2bc028,_0xc6be95){return _0x2bc028===_0xc6be95;},'PEuba':function(_0xd4ecba,_0x3cba89){return _0xd4ecba<_0x3cba89;},'TiKCh':function(_0x531b6c,_0x34852e){return _0x531b6c!==_0x34852e;},'yDfyq':_0x1304f6(0x426,0x44f),'pxdoF':_0x1304f6(0x408,0x3f6),'eauMG':function(_0x565900,_0x3eac5a){return _0x565900>_0x3eac5a;},'utIHj':function(_0x15d67d,_0x34b654){return _0x15d67d(_0x34b654);},'KOmRf':function(_0x4fd26a,_0x207e8a){return _0x4fd26a>=_0x207e8a;},'irmNG':'Jjlvi','QjavK':_0x1304f6(0x41f,0x40a)+'Speec'+_0x1304f6(0x414,0x424)+_0x1304f6(0x422,0x445),'vbHji':function(_0x5b3579){return _0x5b3579();},'McQTw':_0x1304f6(0x446,0x44d),'qWdoK':'bGhJo','XFRUC':function(_0x33863e,_0x4e6eeb){return _0x33863e>=_0x4e6eeb;},'DZAQx':function(_0x255e3c,_0x167f45){return _0x255e3c!==_0x167f45;},'RDWrI':'xanbY','yvlga':_0x1304f6(0x41f,0x40a)+_0x272006(0x4e6,0x4d6)+_0x272006(0x524,0x4f4)+'ed','LfYEA':function(_0x29d5d9){return _0x29d5d9();},'vMMNb':_0x1304f6(0x459,0x46d)+_0x1304f6(0x447,0x40d)+'0','KvEXO':function(_0x127029,_0x25b0e5,_0x9df935){return _0x127029(_0x25b0e5,_0x9df935);},'NmxnD':function(_0x6f2de6,_0x6a86ec){return _0x6f2de6===_0x6a86ec;},'HcUsE':function(_0x22c2bb,_0x31f3b6){return _0x22c2bb===_0x31f3b6;},'exuxE':function(_0x226184){return _0x226184();},'IxgDl':_0x1304f6(0x41f,0x444)+'Stopp'+'ed','DkCuS':function(_0x580525,_0x642655){return _0x580525!==_0x642655;},'QofVF':'LKidE','zfylG':function(_0x2b2d2e,_0x49850b){return _0x2b2d2e===_0x49850b;},'uqPWp':function(_0xf9f157,_0xdb1132){return _0xf9f157/_0xdb1132;}},_0x59ceda=_0x1cd3f5[_0x272006(0x4d2,0x4d5)+_0x272006(0x523,0x51f)+_0x272006(0x4c9,0x4ea)]();_0x59ceda[_0x1304f6(0x43f,0x41c)+'ze']=FFT_SIZE,_0x59ceda['smoot'+_0x1304f6(0x407,0x41e)+_0x1304f6(0x463,0x46f)+'nstan'+'t']=0x34*-0x17+-0x1f*0x55+-0xef7*-0x1+0.3;const _0x81e409=_0x1cd3f5[_0x272006(0x4d2,0x497)+_0x1304f6(0x404,0x3d6)+_0x272006(0x50f,0x532)+'amSou'+_0x1304f6(0x44f,0x448)](_0xfb8fab);_0x81e409[_0x272006(0x514,0x549)+'ct'](_0x59ceda);const _0x18fc03=_0x59ceda[_0x272006(0x4b6,0x4ae)+'encyB'+_0x272006(0x4c6,0x4af)+'nt'],_0x17d8b5=new Uint8Array(_0x18fc03),_0x117469=new Float32Array(_0x59ceda[_0x272006(0x4ec,0x4df)+'ze']),_0x535818=_0x1cd3f5[_0x272006(0x4ce,0x4cc)+_0x272006(0x4d7,0x4cf)]/_0x59ceda['fftSi'+'ze'],_0x15ac78=Math[_0x272006(0x528,0x50d)](_0x34299b[_0x1304f6(0x429,0x3fd)](SPEECH_FREQ_LOW,_0x535818)),_0x4f76a0=Math[_0x272006(0x4cb,0x48e)](Math['ceil'](_0x34299b[_0x272006(0x507,0x4e0)](SPEECH_FREQ_HIGH,_0x535818)),_0x34299b[_0x272006(0x4d9,0x4b3)](_0x18fc03,-0x13b8+0xa88*-0x2+-0x35*-0xc5));function _0x1304f6(_0x1f5b5c,_0x341f98){return _0x249471(_0x1f5b5c- -0x57,_0x341f98);}let _0x37b93a=STATE_SILENCE,_0x2e28b0=0x5c2+0x4*-0x41b+-0xb6*-0xf,_0x32f8ab=null,_0x360a70=![];function _0x1bb283(){function _0x115589(_0x584738,_0x509560){return _0x272006(_0x509560- -0x5ac,_0x584738);}function _0x341548(_0x3d0bc5,_0x638608){return _0x272006(_0x3d0bc5- -0x45,_0x638608);}if(_0x34299b[_0x341548(0x496,0x459)](_0x115589(-0xd1,-0xf4),_0x34299b[_0x341548(0x4aa,0x4ae)])){_0x59ceda[_0x341548(0x4cd,0x49f)+_0x341548(0x4ab,0x48d)+_0x115589(-0x113,-0xe4)+'ainDa'+'ta'](_0x117469);let _0x3a6c29=0x1*-0x2113+-0xab2*-0x3+0xfd*0x1;for(let _0x47589c=-0x9c9+-0xd4a+0x1713;_0x34299b[_0x341548(0x4e0,0x515)](_0x47589c,_0x117469[_0x115589(-0xe6,-0xb2)+'h']);_0x47589c++){_0x3a6c29+=_0x34299b[_0x115589(-0xbf,-0xc4)](_0x117469[_0x47589c],_0x117469[_0x47589c]);}return Math['sqrt'](_0x34299b[_0x341548(0x491,0x4b3)](_0x3a6c29,_0x117469[_0x341548(0x4b5,0x4d9)+'h']));}else{if(_0x34299b['ndKDQ'](_0x21261f,-0x19a6*0x1+0x2143+0x1*-0x79d))_0x397755=_0x1b7bcb;if(_0x34299b[_0x115589(-0x52,-0x8d)](_0x34299b[_0x115589(-0x107,-0xd3)](_0x3199d4,_0x2492ef),_0x25c583)){_0x4b11d6=_0x999bc0,_0x5076b0=-0x1c52+0x29*0x15+0x18f5,_0x33b946[_0x341548(0x49e,0x4b8)]('VAD:\x20'+'Speec'+_0x341548(0x47c,0x444)+_0x341548(0x48a,0x46a));if(_0x53ec76)_0x34299b[_0x341548(0x4a0,0x469)](_0x1cc0e2);}}}function _0x59be5b(){_0x59ceda['getBy'+_0x41cef8(0x27b,0x27c)+'quenc'+_0x41cef8(0x273,0x2a9)](_0x17d8b5);function _0x41cef8(_0x566b26,_0x636e19){return _0x1304f6(_0x636e19- -0x1a1,_0x566b26);}function _0x2c4104(_0x4370f6,_0x110bd0){return _0x1304f6(_0x110bd0- -0x52c,_0x4370f6);}let _0x1d1be6=-0x23e5+-0x627+0x2a0c,_0x949f6a=-0x1d56+-0x1*0x1b37+-0x1*-0x388d;for(let _0x19983b=0x7b4+-0x51*0x66+0x1892;_0x34299b[_0x2c4104(-0xde,-0xc4)](_0x19983b,_0x18fc03);_0x19983b++){const _0x3bbe3a=_0x17d8b5[_0x19983b];_0x949f6a+=_0x3bbe3a,_0x34299b[_0x41cef8(0x2c3,0x2d1)](_0x19983b,_0x15ac78)&&_0x34299b[_0x2c4104(-0x153,-0x11a)](_0x19983b,_0x4f76a0)&&(_0x1d1be6+=_0x3bbe3a);}return _0x34299b['eloqo'](_0x949f6a,-0x1980+-0x2*0xe57+0x362e*0x1)?_0x1d1be6/_0x949f6a:-0x22db+0x245b+0x4*-0x60;}function _0x5d2833(){function _0xa1b24b(_0x5eda5a,_0x19bb80){return _0x272006(_0x5eda5a- -0x1c1,_0x19bb80);}function _0xc3925c(_0x118692,_0x6b152){return _0x272006(_0x118692- -0x48a,_0x6b152);}const _0x4ffa83={'zecRO':_0xa1b24b(0x321,0x2e4)+_0xc3925c(0x3a,0x54)+'+$','VFvxZ':function(_0x4c8d07,_0x56a66f){function _0x4e243c(_0x9d35f3,_0x277c01){return _0xa1b24b(_0x277c01- -0x39c,_0x9d35f3);}return _0x34299b[_0x4e243c(-0x61,-0x5d)](_0x4c8d07,_0x56a66f);},'ZSSud':function(_0x508c73,_0x447022){return _0x508c73*_0x447022;},'DwCLS':function(_0x363902,_0x30f2f5){return _0x363902/_0x30f2f5;}};if(_0x34299b[_0xc3925c(0x30,0x43)](_0x34299b['yDfyq'],_0x34299b[_0xc3925c(0x5f,0x8a)])){if(!_0x360a70)return;const _0x4a20e3=Date[_0xc3925c(0x9f,0x6b)](),_0x464824=_0x34299b[_0xc3925c(0x5b,0x26)](_0x1bb283),_0x4b3e7c=_0x59be5b(),_0x114a23=_0x34299b[_0xa1b24b(0x331,0x342)](_0x464824,RMS_SPEECH_THRESHOLD)&&_0x34299b[_0xc3925c(0x75,0x38)](_0x4b3e7c,SPEECH_BAND_RATIO),_0x20e81b=_0x464824<RMS_SILENCE_THRESHOLD;if(_0x5da539)_0x34299b['utIHj'](_0x5da539,_0x464824);switch(_0x37b93a){case STATE_SILENCE:if(_0x114a23){if(_0x2e28b0===-0x2*-0x11ab+0xf*0x92+-0xaf9*0x4)_0x2e28b0=_0x4a20e3;if(_0x34299b[_0xa1b24b(0x2f8,0x308)](_0x4a20e3-_0x2e28b0,SPEECH_CONFIRM_MS)){if(_0x34299b[_0xa1b24b(0x2f9,0x322)]('mpZxv',_0x34299b['irmNG'])){_0x37b93a=STATE_SPEECH,_0x2e28b0=-0x3*0xb7+-0x6c3+0x5f*0x18,UplinkLogger['debug'](_0x34299b[_0xa1b24b(0x33c,0x309)]);if(_0x5be53e)_0x34299b[_0xa1b24b(0x31d,0x325)](_0x5be53e);}else return _0x34299b[_0xa1b24b(0x343,0x36e)](_0x8a5f,_0x914b1)||_0x34299b[_0xc3925c(0x50,0x88)](_0x7a69c6,_0x42aff3);}}else{if(_0x34299b[_0xc3925c(0x30,0x46)]('hWtPx',_0x34299b[_0xa1b24b(0x330,0x343)]))_0x2e28b0=0x17ac*-0x1+0x2f*0x47+0x185*0x7;else return _0x1d6296[_0xc3925c(0x60,0x32)+_0xc3925c(0x74,0x3b)]()['searc'+'h'](TSucBt[_0xc3925c(0x8c,0x9e)])[_0xa1b24b(0x329,0x340)+_0xc3925c(0x74,0x7a)]()[_0xa1b24b(0x334,0x334)+_0xa1b24b(0x352,0x34d)+'r'](_0x3ee1ee)[_0xa1b24b(0x310,0x2e8)+'h'](_0xc3925c(0x58,0x88)+_0xc3925c(0x3a,0x21)+'+$');}break;case STATE_SPEECH:_0x20e81b&&(_0x37b93a=STATE_TRAILING,_0x2e28b0=_0x4a20e3);break;case STATE_TRAILING:if(_0x114a23)_0x34299b[_0xc3925c(0x43,0x60)]===_0x34299b[_0xc3925c(0x43,0x58)]?(_0x37b93a=STATE_SPEECH,_0x2e28b0=-0x8*0x378+-0x1*0x1169+-0xb*-0x41b):_0x2b73c4[_0xa1b24b(0x34d,0x368)+_0xc3925c(0x2d,0x18)]();else{if(_0x34299b[_0xa1b24b(0x301,0x323)](_0x34299b[_0xa1b24b(0x318,0x31a)](_0x4a20e3,_0x2e28b0),SILENCE_CONFIRM_MS)||_0x34299b[_0xa1b24b(0x318,0x34b)](_0x4a20e3,_0x2e28b0)>=TRAILING_MAX_MS){if(_0x34299b[_0xc3925c(0x57,0x8d)](_0xc3925c(0x36,0xe),_0x34299b[_0xa1b24b(0x32a,0x326)])){_0x37b93a=STATE_SILENCE,_0x2e28b0=-0xb09+0x2d+-0x8b*-0x14,UplinkLogger[_0xa1b24b(0x322,0x2e7)](_0x34299b[_0xc3925c(0x94,0xa4)]);if(_0x492219)_0x34299b['LfYEA'](_0x492219);}else{_0x126ee6[_0xc3925c(0x71,0x43)+_0xc3925c(0x40,0x62)+_0xa1b24b(0x317,0x2db)+'yData'](_0x5d4767);let _0x120090=-0x228e+-0x96b*-0x3+0x64d,_0x115d78=0x115*-0x3+-0xc2+0xcd*0x5;for(let _0x247046=-0x745*-0x5+0x83e+-0x3*0xedd;_0x34299b['PEuba'](_0x247046,_0x2c8e00);_0x247046++){const _0x53b415=_0x12683e[_0x247046];_0x115d78+=_0x53b415,_0x247046>=_0x1973eb&&_0x34299b['jMbgd'](_0x247046,_0x5b66e4)&&(_0x120090+=_0x53b415);}return _0x115d78>0x2*0xb7+-0x3c2*0x1+0x254*0x1?_0x34299b[_0xc3925c(0x4c,0x3b)](_0x120090,_0x115d78):0xa2f+0x9db+-0x140a;}}}break;}}else{_0x308486['getFl'+_0xc3925c(0x66,0x3c)+_0xc3925c(0x3e,0x5d)+_0xc3925c(0x90,0x72)+'ta'](_0x3a1d76);let _0x2d91de=-0xaf1*-0x1+-0x1*-0x16a+-0xc5b;for(let _0x460bc2=0x6*-0x2b8+-0x188e+0x28de;TSucBt[_0xa1b24b(0x2f2,0x2fc)](_0x460bc2,_0x4919e0[_0xa1b24b(0x339,0x327)+'h']);_0x460bc2++){_0x2d91de+=TSucBt[_0xc3925c(0x31,0x1)](_0x3a6f4a[_0x460bc2],_0x5ee356[_0x460bc2]);}return _0x4c8343[_0xa1b24b(0x361,0x387)](TSucBt[_0xa1b24b(0x348,0x33b)](_0x2d91de,_0x5e707d[_0xc3925c(0x70,0x48)+'h']));}}function _0x272006(_0x3d89d6,_0x1422f5){return _0x249471(_0x3d89d6-0x56,_0x1422f5);}return{'start'(){function _0x489afb(_0x4db79a,_0x55a41c){return _0x272006(_0x4db79a- -0x1f7,_0x55a41c);}function _0x108c89(_0x378fce,_0x2bb688){return _0x272006(_0x2bb688- -0x635,_0x378fce);}const _0x15c456=_0x34299b[_0x108c89(-0x10a,-0x130)][_0x108c89(-0x122,-0x133)]('|');let _0x5c674c=-0x21f9+-0x962+0x2b5b;while(!![]){switch(_0x15c456[_0x5c674c++]){case'0':UplinkLogger[_0x489afb(0x2ec,0x313)](_0x108c89(-0x154,-0x169)+_0x108c89(-0x13e,-0x10f)+'ed');continue;case'1':_0x32f8ab=_0x34299b[_0x489afb(0x2c6,0x2b4)](setInterval,_0x5d2833,POLL_INTERVAL_MS);continue;case'2':_0x37b93a=STATE_SILENCE;continue;case'3':_0x360a70=!![];continue;case'4':if(_0x360a70)return;continue;case'5':_0x2e28b0=0x1f0+0x641+-0x831;continue;}break;}},'stop'(){_0x360a70=![];function _0x33c5e1(_0x201171,_0x23fc27){return _0x272006(_0x23fc27- -0x43,_0x201171);}_0x32f8ab&&(_0x34299b[_0x33c5e1(0x49d,0x4d4)](clearInterval,_0x32f8ab),_0x32f8ab=null);if(_0x34299b[_0x20e4c7(0x2c9,0x2c5)](_0x37b93a,STATE_SPEECH)||_0x37b93a===STATE_TRAILING){if(_0x34299b['HcUsE'](_0x33c5e1(0x461,0x482),_0x20e4c7(0x2c1,0x299)))_0x3aedcb+=_0x530234;else{_0x37b93a=STATE_SILENCE,_0x2e28b0=0x459*0x1+0x1*0x1b5e+-0x1fb7*0x1;if(_0x492219)_0x34299b[_0x33c5e1(0x4f9,0x4e4)](_0x492219);}}function _0x20e4c7(_0x224052,_0x5a2ac5){return _0x272006(_0x224052- -0x21b,_0x5a2ac5);}UplinkLogger['debug'](_0x34299b[_0x20e4c7(0x300,0x2ec)]);},'destroy'(){function _0x11d15a(_0x443135,_0x25ea70){return _0x1304f6(_0x25ea70-0x15,_0x443135);}this[_0x43923a(0x445,0x47a)]();function _0x43923a(_0x1c5aae,_0x398af9){return _0x1304f6(_0x398af9-0x3a,_0x1c5aae);}try{_0x81e409['disco'+_0x43923a(0x45e,0x444)]();}catch(_0x552a78){}try{_0x34299b[_0x43923a(0x4cd,0x499)](_0x34299b[_0x43923a(0x477,0x498)],_0x34299b['QofVF'])?_0x4854ee[_0x43923a(0x478,0x49b)+_0x11d15a(0x449,0x41f)]():_0x59ceda['disco'+_0x11d15a(0x45a,0x41f)]();}catch(_0x35eff8){}},'isSpeaking'(){function _0x5183ff(_0xa2423c,_0x419e09){return _0x1304f6(_0xa2423c- -0x4a3,_0x419e09);}return _0x37b93a===STATE_SPEECH||_0x34299b[_0x5183ff(-0x37,-0x11)](_0x37b93a,STATE_TRAILING);},'getState'(){return _0x37b93a;}};}
|