@univerjs-pro/mcp-ui 0.18.0 → 0.20.1
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/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3fc626=_0xab1b;(function(_0x2deef6,_0x5a0fbe){const _0x4f3fab=_0xab1b,_0x2d97d4=_0x2deef6();while(!![]){try{const _0xa573c8=-parseInt(_0x4f3fab(0x143))/0x1+parseInt(_0x4f3fab(0x198))/0x2*(parseInt(_0x4f3fab(0x17f))/0x3)+parseInt(_0x4f3fab(0x1ab))/0x4*(-parseInt(_0x4f3fab(0x142))/0x5)+-parseInt(_0x4f3fab(0x1fd))/0x6+parseInt(_0x4f3fab(0x134))/0x7*(parseInt(_0x4f3fab(0x23e))/0x8)+-parseInt(_0x4f3fab(0x1f2))/0x9*(-parseInt(_0x4f3fab(0x17d))/0xa)+parseInt(_0x4f3fab(0x15a))/0xb;if(_0xa573c8===_0x5a0fbe)break;else _0x2d97d4['push'](_0x2d97d4['shift']());}catch(_0x1af862){_0x2d97d4['push'](_0x2d97d4['shift']());}}}(_0x8cf7,0x1ca72),Object[_0x3fc626(0x1de)](exports,Symbol['toStringTag'],{'value':_0x3fc626(0x12d)}));let e=require(`@univerjs/core`),t=require(`@univerjs-pro/mcp`),n=require(`@univerjs/design`),r=require(`@univerjs/ui`),i=require(`rxjs`),a=require(`@univerjs/icons`),o=require(`react`),s=require(`react/jsx-runtime`),c=require(`@univerjs/network`);function l(_0x39c10f){const _0x4579bc=_0x3fc626;var _0x156d6a,_0x3b88fa;let {mcpCoreConfig:_0x15b682,onSave:_0x411a08,loading:_0xb3590e=!0x1,config:_0x2b0430,connectionStatus$:_0x218962,connectionError$:_0x368a14,currentApiKey$:_0x394c1d,currentSessionId$:_0x34beec}=_0x39c10f,_0x13df4c=(0x0,r[_0x4579bc(0x1ac)])(e[_0x4579bc(0x233)]),_0xdba016=(0x0,r[_0x4579bc(0x12c)])(_0x218962,t['MCPConnectionStatus'][_0x4579bc(0x176)]),_0x28e658=(0x0,r[_0x4579bc(0x12c)])(_0x368a14,t['MCPConnectionError'][_0x4579bc(0x1a9)]),_0x337d93=(0x0,r[_0x4579bc(0x12c)])(_0x34beec,''),[_0x560f51,_0x192a13]=(0x0,o[_0x4579bc(0x12b)])((0x0,r[_0x4579bc(0x12c)])(_0x394c1d,'')||''),_0x36c531=_0x2b0430['showDeveloperTools']&&_0x15b682['mcpServerUrl']&&(_0x15b682[_0x4579bc(0x14e)][_0x4579bc(0x1ce)](_0x4579bc(0x182))||_0x15b682[_0x4579bc(0x14e)][_0x4579bc(0x1ce)](_0x4579bc(0x230))),_0x4a658d=(_0x156d6a=_0x15b682[_0x4579bc(0x14e)])==null?void 0x0:_0x156d6a[_0x4579bc(0x1ce)]('univer.plus'),_0x9a09bd=(_0x3b88fa=_0x15b682[_0x4579bc(0x14e)])==null?void 0x0:_0x3b88fa['includes'](_0x4579bc(0x230)),_0x12cd72=_0x4a658d?_0x4579bc(0x1b4):_0x4579bc(0x16d),_0x4422ec=_0x2b0430['showDeveloperTools']&&(_0x4a658d||_0x9a09bd),[_0x265b77,_0x2e1717]=(0x0,o[_0x4579bc(0x12b)])(!_0x560f51['trim']()),_0x9aba41=(_0x33548a,_0x5a3a02)=>{const _0x353421=_0x4579bc;if(_0x5a3a02===t[_0x353421(0x215)][_0x353421(0x18a)])return _0x353421(0x18f);switch(_0x33548a){case t[_0x353421(0x1fb)][_0x353421(0x13f)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case t[_0x353421(0x1fb)][_0x353421(0x1c9)]:case t[_0x353421(0x1fb)]['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case t[_0x353421(0x1fb)][_0x353421(0x24f)]:return _0x353421(0x18f);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3e13ca=(_0x52ce78,_0x51f048)=>{const _0x5685e2=_0x4579bc;if(_0x51f048===t['MCPConnectionError']['UNAUTHORIZED'])return _0x5685e2(0x1ef);switch(_0x52ce78){case t['MCPConnectionStatus'][_0x5685e2(0x13f)]:return _0x5685e2(0x173);case t['MCPConnectionStatus']['CONNECTING']:case t['MCPConnectionStatus'][_0x5685e2(0x1bc)]:return _0x5685e2(0x125);case t[_0x5685e2(0x1fb)][_0x5685e2(0x24f)]:return _0x5685e2(0x1ef);default:return'univer-bg-gray-500';}},_0x1c866d=_0x3bc8f9=>{const _0x23e2f2=_0x4579bc;switch(_0x3bc8f9){case t['MCPConnectionStatus'][_0x23e2f2(0x13f)]:return _0x13df4c['t'](_0x23e2f2(0x190));case t[_0x23e2f2(0x1fb)][_0x23e2f2(0x1c9)]:return _0x13df4c['t'](_0x23e2f2(0x253));case t[_0x23e2f2(0x1fb)][_0x23e2f2(0x24f)]:return _0x13df4c['t'](_0x23e2f2(0x212));case t['MCPConnectionStatus']['RETRYING']:return _0x13df4c['t'](_0x23e2f2(0x1b5));default:return _0x13df4c['t'](_0x23e2f2(0x19c));}},_0x4784a4=_0x3bd013=>{const _0x5ba277=_0x4579bc;switch(_0x3bd013){case t[_0x5ba277(0x215)][_0x5ba277(0x18a)]:return _0x13df4c['t'](_0x5ba277(0x20a));case t['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x13df4c['t']('mcpConfig.connectionError.sessionOccupied');case t[_0x5ba277(0x215)][_0x5ba277(0x208)]:return _0x13df4c['t']('mcpConfig.connectionError.networkError');case t['MCPConnectionError'][_0x5ba277(0x1ca)]:return _0x13df4c['t'](_0x5ba277(0x11c));default:return'';}},_0xa8f8a1=(0x0,o[_0x4579bc(0x148)])(()=>{const _0x265293=_0x4579bc;_0x411a08({..._0x15b682,'apiKey':_0x560f51[_0x265293(0x213)](),'enableAuth':!0x0});},[_0x15b682,_0x560f51,!0x0,_0x411a08]),_0x49c906=_0x560f51['trim']()[_0x4579bc(0x1f5)]>0x0;return(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1a4),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x121),'children':(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-blue-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x1dd),'children':'⚙'})}),(0x0,s['jsx'])(_0x4579bc(0x11b),{'children':(0x0,s[_0x4579bc(0x126)])('p',{'className':_0x4579bc(0x234),'children':_0x13df4c['t'](_0x4579bc(0x1ed))})})]})}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x210),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':(0x0,n[_0x4579bc(0x183)])(_0x4579bc(0x1f0),_0x9aba41(_0xdba016,_0x28e658)),'children':(0x0,s['jsxs'])('div',{'className':_0x4579bc(0x153),'children':[(0x0,s['jsx'])(_0x4579bc(0x11b),{'className':(0x0,n[_0x4579bc(0x183)])(_0x4579bc(0x1bf),_0x3e13ca(_0xdba016,_0x28e658))}),(0x0,s['jsx'])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x250),'children':_0x1c866d(_0xdba016)})]})}),_0x28e658!==t['MCPConnectionError']['NONE']&&(_0xdba016===t[_0x4579bc(0x1fb)][_0x4579bc(0x24f)]||_0x28e658===t[_0x4579bc(0x215)]['UNAUTHORIZED'])&&(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':(0x0,s[_0x4579bc(0x119)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x188),'children':'⚠️'}),(0x0,s[_0x4579bc(0x126)])('p',{'className':_0x4579bc(0x209),'children':_0x4784a4(_0x28e658)})]})})]}),(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x221),'children':(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x23a),'children':[(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1a2),'children':[(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x1e1),{'className':_0x4579bc(0x15d),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'children':'🔑'}),'\x20',_0x13df4c['t'](_0x4579bc(0x13c)),(0x0,s['jsx'])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x207),'children':'*'}),_0x36c531&&(0x0,s[_0x4579bc(0x126)])('a',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-scale-110\x20hover:univer-text-blue-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','title':_0x13df4c['t']('mcpConfig.apiApplyInfo.title'),'role':_0x4579bc(0x1bb),'onClick':()=>_0x2e1717(!0x0),'children':(0x0,s[_0x4579bc(0x126)])(a['HelpIcon'],{})})]}),(0x0,s[_0x4579bc(0x126)])(n['Input'],{'type':'text','placeholder':_0x13df4c['t'](_0x4579bc(0x133)),'value':_0x560f51,'disabled':_0xb3590e,'autoComplete':_0x4579bc(0x1af),'onChange':_0x192a13}),(0x0,s[_0x4579bc(0x126)])('p',{'className':_0x4579bc(0x20c),'children':_0x13df4c['t']('mcpConfig.apiKeyHint')})]}),_0x36c531&&_0x265b77&&(0x0,s[_0x4579bc(0x119)])('div',{'className':_0x4579bc(0x1e7),'children':[(0x0,s[_0x4579bc(0x126)])('a',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-duration-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-scale-110\x20hover:univer-text-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','role':_0x4579bc(0x1bb),'onClick':()=>_0x2e1717(!0x1),'children':(0x0,s['jsx'])(a[_0x4579bc(0x11d)],{'className':_0x4579bc(0x1c0)})}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x24b),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1da),'children':(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x245),'children':'🚀'})}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':'univer-flex-1','children':[(0x0,s[_0x4579bc(0x126)])('h4',{'className':_0x4579bc(0x1c5),'children':_0x13df4c['t'](_0x4579bc(0x1d4))}),(0x0,s[_0x4579bc(0x126)])('p',{'className':_0x4579bc(0x251),'children':_0x13df4c['t'](_0x4579bc(0x18d))}),(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x145),'children':_0x4422ec&&(0x0,s['jsxs'])('a',{'className':_0x4579bc(0x1f7),'href':_0x12cd72,'target':_0x4579bc(0x15f),'rel':'noopener\x20noreferrer','children':[(0x0,s['jsx'])('span',{'children':'🤖'}),_0x13df4c['t'](_0x4579bc(0x109)),(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':'univer-text-gray-400','children':'↗'})]})}),(0x0,s['jsxs'])('div',{'className':_0x4579bc(0x1e0),'children':['✨','\x20',_0x13df4c['t'](_0x4579bc(0x1fc))]})]})]})]}),_0x2b0430[_0x4579bc(0x118)]&&(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[(0x0,s['jsxs'])('h4',{'className':_0x4579bc(0x114),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'children':'🔗'}),'\x20',_0x13df4c['t'](_0x4579bc(0x21b))]}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x246),'children':[(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1f3),'children':[(0x0,s[_0x4579bc(0x126)])('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x13df4c['t'](_0x4579bc(0x1ea))}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1a2),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1ee),'children':_0x13df4c['t'](_0x4579bc(0x108))}),(0x0,s[_0x4579bc(0x119)])('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x153),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x200),'children':'1'}),_0x13df4c['t'](_0x4579bc(0x1f6))]}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x153),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x200),'children':'2'}),_0x13df4c['t'](_0x4579bc(0x168))]}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x200),'children':'3'}),_0x13df4c['t'](_0x4579bc(0x243))]})]})]})]}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':'univer-space-y-2','children':[(0x0,s[_0x4579bc(0x126)])('div',{'className':_0x4579bc(0x1ee),'children':'MCP\x20Configuration'}),(0x0,s['jsx'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1f9),'children':(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x16e),{'className':_0x4579bc(0x115),'children':JSON[_0x4579bc(0x232)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x337d93||_0x4579bc(0x178)),'type':_0x4579bc(0x231),'headers':{'Authorization':_0x4579bc(0x159)+(_0x560f51||'<API_KEY>')}}}},null,0x2)})})]}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1f3),'children':[(0x0,s[_0x4579bc(0x126)])('div',{'className':_0x4579bc(0x1ee),'children':_0x13df4c['t'](_0x4579bc(0x14c))}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1a2),'children':[(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1b1)}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x10b),'children':[(0x0,s['jsx'])('div',{'className':_0x4579bc(0x136),'children':_0x4579bc(0x252)}),(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x20c),'children':_0x13df4c['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x248),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-blue-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),(0x0,s[_0x4579bc(0x119)])('div',{'className':_0x4579bc(0x10b),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x136),'children':_0x4579bc(0x1b3)}),(0x0,s['jsx'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x20c),'children':_0x13df4c['t'](_0x4579bc(0x199))})]})]})]})]})]})]}),(0x0,s[_0x4579bc(0x126)])(n['Button'],{'onClick':_0xa8f8a1,'disabled':!_0x49c906||_0xb3590e,'className':_0x4579bc(0x24d),'children':_0xb3590e?(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x153),'children':[(0x0,s[_0x4579bc(0x126)])('span',{'children':'⟲'}),_0x13df4c['t'](_0x4579bc(0x137))]}):(0x0,s['jsxs'])(_0x4579bc(0x1d2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x4579bc(0x126)])(a[_0x4579bc(0x1d7)],{}),_0x13df4c['t']('mcpConfig.save')]})}),(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x17a),'children':(0x0,s[_0x4579bc(0x119)])('div',{'className':'univer-flex\x20univer-gap-3','children':[(0x0,s['jsx'])('span',{'className':_0x4579bc(0x20b),'children':'💡'}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1e2),'children':[(0x0,s[_0x4579bc(0x126)])('div',{'className':_0x4579bc(0x239),'children':_0x4579bc(0x127)}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'children':['•',_0x13df4c['t'](_0x4579bc(0x259))]}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'children':['•',_0x13df4c['t'](_0x4579bc(0x13b))]})]})]})})]})})]});}const u=_0x3fc626(0x1fa);Symbol(u);const d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x55e5ef){'@babel/helpers - typeof';const _0x13f8d3=_0x3fc626;return f=typeof Symbol==_0x13f8d3(0x1a1)&&typeof Symbol[_0x13f8d3(0x21a)]==_0x13f8d3(0x255)?function(_0x4f8e97){return typeof _0x4f8e97;}:function(_0x55cd26){const _0x2f49de=_0x13f8d3;return _0x55cd26&&typeof Symbol==_0x2f49de(0x1a1)&&_0x55cd26[_0x2f49de(0x10c)]===Symbol&&_0x55cd26!==Symbol['prototype']?_0x2f49de(0x255):typeof _0x55cd26;},f(_0x55e5ef);}function p(_0x1f1eb2,_0x7f0aa8){const _0x3fd5ca=_0x3fc626;if(f(_0x1f1eb2)!='object'||!_0x1f1eb2)return _0x1f1eb2;var _0x40e65d=_0x1f1eb2[Symbol[_0x3fd5ca(0x154)]];if(_0x40e65d!==void 0x0){var _0x336fdf=_0x40e65d['call'](_0x1f1eb2,_0x7f0aa8||_0x3fd5ca(0x1a8));if(f(_0x336fdf)!=_0x3fd5ca(0x1e4))return _0x336fdf;throw TypeError(_0x3fd5ca(0x1d9));}return(_0x7f0aa8===_0x3fd5ca(0x13e)?String:Number)(_0x1f1eb2);}function m(_0x338130){const _0x30cc14=_0x3fc626;var _0x234ce7=p(_0x338130,_0x30cc14(0x13e));return f(_0x234ce7)==_0x30cc14(0x255)?_0x234ce7:_0x234ce7+'';}function h(_0x2348c7,_0x5f2cd1,_0x57276d){const _0x204c2c=_0x3fc626;return(_0x5f2cd1=m(_0x5f2cd1))in _0x2348c7?Object[_0x204c2c(0x1de)](_0x2348c7,_0x5f2cd1,{'value':_0x57276d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2348c7[_0x5f2cd1]=_0x57276d,_0x2348c7;}function g(_0x5da7e8,_0x563e46){return function(_0x18ed01,_0x53d1d7){_0x563e46(_0x18ed01,_0x53d1d7,_0x5da7e8);};}function _(_0x380827,_0x51fba6,_0x4db142,_0x5349dd){const _0xd863cb=_0x3fc626;var _0x54d656=arguments[_0xd863cb(0x1f5)],_0x295b4c=_0x54d656<0x3?_0x51fba6:_0x5349dd===null?_0x5349dd=Object[_0xd863cb(0x1d5)](_0x51fba6,_0x4db142):_0x5349dd,_0xc01eca;if(typeof Reflect==_0xd863cb(0x1e4)&&typeof Reflect[_0xd863cb(0x244)]=='function')_0x295b4c=Reflect[_0xd863cb(0x244)](_0x380827,_0x51fba6,_0x4db142,_0x5349dd);else{for(var _0xfc6b81=_0x380827[_0xd863cb(0x1f5)]-0x1;_0xfc6b81>=0x0;_0xfc6b81--)(_0xc01eca=_0x380827[_0xfc6b81])&&(_0x295b4c=(_0x54d656<0x3?_0xc01eca(_0x295b4c):_0x54d656>0x3?_0xc01eca(_0x51fba6,_0x4db142,_0x295b4c):_0xc01eca(_0x51fba6,_0x4db142))||_0x295b4c);}return _0x54d656>0x3&&_0x295b4c&&Object[_0xd863cb(0x1de)](_0x51fba6,_0x4db142,_0x295b4c),_0x295b4c;}const v=_0x3fc626(0x1df),y=_0x3fc626(0x238);let b=class extends e[_0x3fc626(0x1ec)]{constructor(_0x6cf0e0,_0x5c3c14,_0x1ec1a3,_0x2dd3b0,_0x1998b6,_0x2f97db,_0x33c496,_0x564249,_0x2752fc,_0x5af721){const _0x229766=_0x3fc626;super(),this['_injector']=_0x6cf0e0,this[_0x229766(0x218)]=_0x5c3c14,this[_0x229766(0x17c)]=_0x1ec1a3,this['_localStorageService']=_0x2dd3b0,this['_dialogService']=_0x1998b6,this[_0x229766(0x179)]=_0x2f97db,this[_0x229766(0x113)]=_0x33c496,this[_0x229766(0x1cc)]=_0x564249,this[_0x229766(0x202)]=_0x2752fc,this[_0x229766(0x1a0)]=_0x5af721,h(this,_0x229766(0x12a),new i[(_0x229766(0x224))](!0x1)),h(this,_0x229766(0x204),new i[(_0x229766(0x224))]({})),h(this,_0x229766(0x174),new i[(_0x229766(0x224))]({})),h(this,_0x229766(0x177),new i[(_0x229766(0x224))]('')),h(this,_0x229766(0x1e9),async _0x2792c8=>{const _0x204a76=_0x229766;this[_0x204a76(0x12a)]['next'](!0x0);try{var _0x16c495,_0x5d4d45;let _0x2b7eb9=await this['_validateConfig'](_0x2792c8);if(!_0x2b7eb9[_0x204a76(0x147)]){this[_0x204a76(0x179)][_0x204a76(0x107)]({'type':n['MessageType'][_0x204a76(0x1d0)],'content':_0x2b7eb9[_0x204a76(0x1d1)]||this[_0x204a76(0x1cc)]['t'](_0x204a76(0x19d))});return;}_0x2792c8[_0x204a76(0x219)]?await this[_0x204a76(0x158)][_0x204a76(0x1b7)](v,_0x2792c8[_0x204a76(0x219)][_0x204a76(0x213)]()):await this['_localStorageService'][_0x204a76(0x1ad)](v),this[_0x204a76(0x177)][_0x204a76(0x192)](((_0x16c495=_0x2792c8[_0x204a76(0x219)])==null?void 0x0:_0x16c495[_0x204a76(0x213)]())||''),this[_0x204a76(0x1a0)][_0x204a76(0x20f)]({'Authorization':_0x204a76(0x159)+((_0x5d4d45=_0x2792c8[_0x204a76(0x219)])==null?void 0x0:_0x5d4d45['trim']())}),this[_0x204a76(0x179)][_0x204a76(0x107)]({'type':n['MessageType'][_0x204a76(0x1f8)],'content':this[_0x204a76(0x1cc)]['t'](_0x204a76(0x1db))}),setTimeout(()=>{const _0x172940=_0x204a76;this[_0x172940(0x1f1)]['close'](y);},0x320);}catch(_0x20c3f1){this[_0x204a76(0x202)][_0x204a76(0x254)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x20c3f1),this['_messageService']['show']({'type':n['MessageType'][_0x204a76(0x1d0)],'content':this[_0x204a76(0x1cc)]['t']('mcpConfig.configError')});}finally{this[_0x204a76(0x12a)][_0x204a76(0x192)](!0x1);}}),this['_initConfigSync'](),this[_0x229766(0x106)](),this['_registerComponent']();}[_0x3fc626(0x257)](){const _0x33adaf=_0x3fc626;let _0x1fe038=this[_0x33adaf(0x17c)][_0x33adaf(0x105)](u);_0x1fe038!=null&&_0x1fe038['showDeveloperTools']&&this['_dialogService'][_0x33adaf(0x160)]({'id':y,'title':{'title':this[_0x33adaf(0x1cc)]['t'](_0x33adaf(0x1b8))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](y);}});}[_0x3fc626(0x156)](){const _0x41859f=_0x3fc626;return this[_0x41859f(0x204)][_0x41859f(0x15c)];}[_0x3fc626(0x1e3)](){const _0x54fda5=_0x3fc626;this[_0x54fda5(0x1c1)](this[_0x54fda5(0x113)][_0x54fda5(0x1e8)](_0x54fda5(0x1a3),this[_0x54fda5(0x15b)]()));}[_0x3fc626(0x15b)](){const _0x1c3efa=_0x3fc626;return(0x0,r[_0x1c3efa(0x19b)])(()=>{const _0x371ae6=_0x1c3efa;var _0x129d21,_0x7507c2,_0x1d8327;return(0x0,s['jsx'])(l,{'config':this[_0x371ae6(0x174)][_0x371ae6(0x15c)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x371ae6(0x15c)],'currentApiKey$':this[_0x371ae6(0x177)],'onSave':this[_0x371ae6(0x1e9)],'loading':this[_0x371ae6(0x12a)][_0x371ae6(0x15c)],'connectionStatus$':(_0x129d21=this[_0x371ae6(0x1a0)])==null?void 0x0:_0x129d21[_0x371ae6(0x11f)],'connectionError$':(_0x7507c2=this[_0x371ae6(0x1a0)])==null?void 0x0:_0x7507c2['connectionError$'],'currentSessionId$':(_0x1d8327=this[_0x371ae6(0x1a0)])==null?void 0x0:_0x1d8327[_0x371ae6(0x14b)]});},this['_injector']);}[_0x3fc626(0x227)](){const _0x2b4b93=_0x3fc626;this['disposeWithMe'](this[_0x2b4b93(0x17c)]['subscribeConfigValue$'](t[_0x2b4b93(0x1eb)])[_0x2b4b93(0x23b)](_0x475b02=>{const _0xc84553=_0x2b4b93;this[_0xc84553(0x204)][_0xc84553(0x192)](_0x475b02||{});}));let _0x43797d=this[_0x2b4b93(0x17c)][_0x2b4b93(0x105)](t[_0x2b4b93(0x1eb)]);this['_mcpCoreConfig$']['next'](_0x43797d||{}),this[_0x2b4b93(0x1c1)](this[_0x2b4b93(0x17c)][_0x2b4b93(0x170)](u)[_0x2b4b93(0x23b)](_0x1c6e40=>{const _0x512aa7=_0x2b4b93;this[_0x512aa7(0x174)][_0x512aa7(0x192)](_0x1c6e40||{});}));let _0x5f37bf=this[_0x2b4b93(0x17c)][_0x2b4b93(0x105)](u);this[_0x2b4b93(0x174)][_0x2b4b93(0x192)](_0x5f37bf||{});}async['_loadStoredApiKey'](){const _0x28f15f=_0x3fc626;let _0x124a9c=this['_configService'][_0x28f15f(0x105)](u);if(!(_0x124a9c!=null&&_0x124a9c[_0x28f15f(0x118)]))return;let _0x5cd5b7=await this[_0x28f15f(0x158)][_0x28f15f(0x167)](v);_0x5cd5b7&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x28f15f(0x159)+_0x5cd5b7}),this[_0x28f15f(0x177)]['next'](_0x5cd5b7));}async['_validateConfig'](_0xa440e6){const _0x35cd4e=_0x3fc626;if(!_0xa440e6[_0x35cd4e(0x219)]||_0xa440e6['apiKey'][_0x35cd4e(0x213)]()[_0x35cd4e(0x1f5)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x35cd4e(0x1cc)]['t'](_0x35cd4e(0x151))};if(_0xa440e6[_0x35cd4e(0x219)]['trim']()[_0x35cd4e(0x1f5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x35cd4e(0x1cc)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x521929=await this[_0x35cd4e(0x1cd)][_0x35cd4e(0x144)](t[_0x35cd4e(0x18c)])[_0x35cd4e(0x1a7)](_0xa440e6['apiKey'][_0x35cd4e(0x213)]());return _0x521929[_0x35cd4e(0x147)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x521929[_0x35cd4e(0x254)]||this[_0x35cd4e(0x1cc)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x5a4840){return console[_0x35cd4e(0x1ae)](_0x35cd4e(0x11e),_0x5a4840),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e[_0x3fc626(0x196)])(e[_0x3fc626(0x117)])),g(0x1,r[_0x3fc626(0x19a)]),g(0x2,e[_0x3fc626(0x138)]),g(0x3,e[_0x3fc626(0x1c3)]),g(0x4,r[_0x3fc626(0x116)]),g(0x5,r[_0x3fc626(0x241)]),g(0x6,(0x0,e['Inject'])(r[_0x3fc626(0x1f4)])),g(0x7,(0x0,e['Inject'])(e[_0x3fc626(0x233)])),g(0x8,e['ILogService']),g(0x9,(0x0,e[_0x3fc626(0x196)])(t[_0x3fc626(0x18c)]))],b);const x={'id':'mcp-ui.command.openConfigPanel','type':e[_0x3fc626(0x1c8)]['COMMAND'],'handler':async(_0x5cf28a,_0x779f29)=>(_0x5cf28a[_0x3fc626(0x144)](b)['showConfigPanel'](),!0x0)};function S(_0x360618,_0x26ef40){const _0x58c38a=_0x3fc626;switch(_0x360618){case t[_0x58c38a(0x1fb)]['DISCONNECTED']:return'mcpStatus.disconnected';case t[_0x58c38a(0x1fb)][_0x58c38a(0x1c9)]:return _0x58c38a(0x10d);case t[_0x58c38a(0x1fb)][_0x58c38a(0x13f)]:return _0x58c38a(0x249);case t[_0x58c38a(0x1fb)]['FAILED']:switch(_0x26ef40){case t[_0x58c38a(0x215)][_0x58c38a(0x18a)]:return _0x58c38a(0x22f);case t[_0x58c38a(0x215)][_0x58c38a(0x13d)]:return _0x58c38a(0x128);case t['MCPConnectionError']['NETWORK_ERROR']:return _0x58c38a(0x152);case t['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x58c38a(0x164);default:return'mcpStatus.failed';}case t[_0x58c38a(0x1fb)][_0x58c38a(0x1bc)]:return _0x58c38a(0x19e);default:return'mcpStatus.unknown';}}function C(_0x50ea07,_0x178c54,_0x5d32d4,_0x24fd36=!0x0){const _0x18beec=_0x3fc626;let _0x16ae1c=S(_0x50ea07,_0x178c54),_0x65e317=_0x5d32d4['t'](_0x16ae1c);return _0x24fd36?_0x50ea07===t[_0x18beec(0x1fb)][_0x18beec(0x176)]&&_0x178c54===t[_0x18beec(0x215)][_0x18beec(0x18a)]?_0x65e317+'\x20-\x20'+_0x5d32d4['t']('mcpStatus.clickToConfigure'):_0x50ea07===t[_0x18beec(0x1fb)][_0x18beec(0x13f)]?''+_0x65e317:_0x50ea07===t[_0x18beec(0x1fb)]['DISCONNECTED']||_0x50ea07===t[_0x18beec(0x1fb)][_0x18beec(0x24f)]?_0x65e317+_0x18beec(0x18e)+_0x5d32d4['t'](_0x18beec(0x237)):_0x65e317:_0x65e317;}function _0xab1b(_0x44bd99,_0x1f8cce){_0x44bd99=_0x44bd99-0x104;const _0x8cf79c=_0x8cf7();let _0xab1b8c=_0x8cf79c[_0x44bd99];return _0xab1b8c;}function w(_0x309788){const _0x37035a=_0x3fc626;switch(_0x309788){case t[_0x37035a(0x1fb)][_0x37035a(0x13f)]:return _0x37035a(0x150);case t['MCPConnectionStatus']['CONNECTING']:case t['MCPConnectionStatus']['RETRYING']:return _0x37035a(0x24c);case t['MCPConnectionStatus'][_0x37035a(0x24f)]:case t[_0x37035a(0x1fb)][_0x37035a(0x176)]:return _0x37035a(0x207);default:return'univer-text-gray-500';}}function _0x8cf7(){const _0x4c95b3=['univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_registerComponent','object','push','onStarting','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','register','_handleConfigSave','mcpConfig.configInstructions','MCP_PLUGIN_CONFIG_KEY','Disposable','mcpConfig.description','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-bg-red-500','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_dialogService','2169ZALrpd','univer-space-y-3','ComponentManager','length','mcpConfig.configStep1','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Success','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcp-ui.config','MCPConnectionStatus','mcpConfig.apiApplyInfo.getStarted','517320baGBQi','univer-flex\x20univer-items-center','保存配置','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-size-4\x20univer-items-center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP:\x20超出最大重试次数','_logService','MCP\x20Retrying...','_mcpCoreConfig$','配置步骤:','MCP\x20已连接','univer-text-red-500','NETWORK_ERROR','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.connectionError.unauthorized','univer-shrink-0\x20univer-text-blue-500','univer-text-xs\x20univer-text-gray-500','最大重试次数','几秒钟内获取您的\x20API\x20密钥','__setCustomHeaders','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.connectionStatus.failed','trim','MCP:\x20网络错误','MCPConnectionError','version','Enter\x20your\x20API\x20key','_uiPartsService','apiKey','iterator','mcpConfig.connectionInfo','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','MCP:\x20会话\x20ID\x20已被占用','Tooltip','What\x20is\x20API\x20Key?','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','已连接','您的\x20API\x20密钥安全存储在本地存储中','BehaviorSubject','MCP\x20状态未知','_initAutoConnect','_initConfigSync','Configuration\x20Steps:','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20配置','MCP\x20Client\x20Configuration','配置参数:','UniverMCPUIPlugin','IMenuManagerService','mcpStatus.unauthorized','univer.ai','http','stringify','LocaleService','univer-text-sm\x20univer-text-gray-500','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','registerComponent','mcpStatus.clickToConnect','mcp-config-dialog','univer-font-medium','univer-space-y-5','subscribe','_menuManagerService','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','163448OdUeSf','API\x20密钥长度至少需要\x2010\x20位','registerCommand','IMessageService','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.configStep3','decorate','univer-text-blue-600','univer-space-y-4','API\x20Key','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.connected','OnLineIcon','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-text-yellow-500','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','BUTTON','FAILED','univer-text-sm\x20univer-font-medium','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer_session_id:','mcpConfig.connectionStatus.connecting','error','symbol','启用身份验证','showConfigPanel','API\x20密钥无效,请检查密钥是否正确','mcpConfig.note1','超出最大重试次数,请稍后再试','Click\x20to\x20configure\x20MCP','getConfig','_loadStoredApiKey','show','mcpConfig.configStepTitle','mcpConfig.apiApplyInfo.univerAiLabel','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-min-w-0\x20univer-flex-1','constructor','mcpStatus.connecting','DependentOn','点击连接\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','showStatus','将配置添加到您的\x20MCP\x20客户端设置文件中','_componentManager','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-font-semibold\x20univer-text-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-xs\x20univer-text-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','IDialogService','Injector','showDeveloperTools','jsxs','add','div','mcpConfig.connectionError.maxRetriesExceeded','CloseIcon','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','connectionStatus$','Invalid\x20configuration','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','Plugin','MCP\x20已断开','packageName','univer-bg-blue-500','jsx','Configuration\x20Notes:','mcpStatus.sessionOccupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_loading$','useState','useObservable','Module','请输入您的\x20API\x20密钥','MCP\x20连接失败','API\x20密钥','MCP\x20重连中...','MCPConnectionUIController','mcpConfig.apiKeyPlaceholder','21svVGJN','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.saving','IConfigService','复制以下\x20JSON\x20配置','@univerjs-pro/mcp-ui','mcpConfig.note2','mcpConfig.apiKey','SESSION_ID_OCCUPIED','string','CONNECTED','UniverMCPPlugin','_config','4315mxpFdH','175984GspICJ','get','univer-flex\x20univer-flex-wrap\x20univer-gap-2','连接失败','isValid','useCallback','_initializeCommands','MCP\x20Unknown\x20Status','sessionId$','mcpConfig.configParameters','启用身份验证以获得安全连接','mcpServerUrl','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-text-green-500','mcpConfig.validation.apiKeyRequired','mcpStatus.networkError','univer-flex\x20univer-items-center\x20univer-gap-2','toPrimitive','HEADER_MENU','getCurrentConfig','MCP\x20Disconnected','_localStorageService','Bearer\x20','1221572OLfLyp','_createConfigPanelComponent','value','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','配置保存成功','_blank','open','enUS','配置无效','Failed\x20to\x20save\x20configuration','mcpStatus.maxRetriesExceeded','MCP\x20Connected','配置保存失败','getItem','mcpConfig.configStep2','配置\x20MCP\x20使用\x20AI\x20操作电子表格','zhCN','点击配置\x20MCP','MCPUIMenuController','https://console.univer.ai','pre','连接中...','subscribeConfigValue$','Configuration\x20saved\x20successfully','Univer\x20AI\x20控制台','univer-bg-green-500','_config$','Click\x20to\x20connect\x20MCP','DISCONNECTED','_apiKey$','<SESSION_ID>','_messageService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Connected','_configService','5370QcvYWu','将以下配置添加到您的\x20MCP\x20客户端设置中:','33vZxDjx','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer.plus','clsx','Disconnected','_initStatusComponent','MenuItemType','OpenMCPConfigPanelCommand','univer-shrink-0\x20univer-text-red-500','Univer\x20AI\x20Console','UNAUTHORIZED','ISocketService','MCPConnectionController','mcpConfig.apiApplyInfo.description','\x20-\x20','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.connectionStatus.connected','merge','next','MCP\x20Configuration','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP\x20连接中...','Inject','未连接','42076rylkfl','mcpConfig.authorizationDescription','IUIPartsService','connectInjector','mcpConfig.connectionStatus.disconnected','mcpConfig.validation.invalidConfig','mcpStatus.retrying','Copy\x20the\x20JSON\x20configuration\x20below','_mcpConnectionController','function','univer-space-y-2','MCPConfigPanel','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','RibbonStartGroup','Session\x20ID','validateApiKey','default','NONE','MCP:\x20Network\x20Error','712NVgwDD','useDependency','removeItem','warn','off','带有\x20Bearer\x20前缀的\x20API\x20密钥。','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-blue-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_connectionController','Authorization:','https://console.univer.plus','mcpConfig.connectionStatus.retrying','_handleConfigure','setItem','mcpConfig.title','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','重启您的\x20MCP\x20客户端以使配置生效','button','RETRYING','pluginName','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-size-2\x20univer-rounded-full','univer-size-4','disposeWithMe','Connection\x20Failed','ILocalStorageService','MCPConfigUIController','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Configuration\x20Parameters:','什么是\x20API\x20密钥?','CommandType','CONNECTING','MAX_RETRIES_EXCEEDED','API\x20key\x20with\x20Bearer\x20prefix.','_localeService','_injector','includes','MCP\x20客户端配置','Error','errorMessage','span','_initializeMenus','mcpConfig.apiApplyInfo.title','getOwnPropertyDescriptor','MCP:\x20Unauthorized','CheckMarkIcon','_commandService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.configSaved','MCP:\x20Max\x20Retries\x20Exceeded','univer-text-white','defineProperty','mcp.apiKey','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','label'];_0x8cf7=function(){return _0x4c95b3;};return _0x8cf7();}function T(_0x323b53){const _0x4dcf09=_0x3fc626;let {status$:_0x19acc9,error$:_0x3a180e,onConfigure:_0x210e71,showClickable:_0x55b76d=!0x0}=_0x323b53,_0x11176f=(0x0,r[_0x4dcf09(0x12c)])(_0x19acc9,t[_0x4dcf09(0x1fb)][_0x4dcf09(0x176)]),_0x43dd94=(0x0,r[_0x4dcf09(0x12c)])(_0x3a180e,t[_0x4dcf09(0x215)][_0x4dcf09(0x1a9)]),_0x160153=(0x0,r[_0x4dcf09(0x1ac)])(e[_0x4dcf09(0x233)]),_0x496e45=_0x11176f===t[_0x4dcf09(0x1fb)][_0x4dcf09(0x13f)];_0x11176f===t['MCPConnectionStatus']['CONNECTING']||t[_0x4dcf09(0x1fb)][_0x4dcf09(0x1bc)];let _0x599a90=_0x160153['t'](S(_0x11176f,_0x43dd94)),_0x276470=C(_0x11176f,_0x43dd94,_0x160153,_0x55b76d),_0x39b859=w(_0x11176f),_0x157edf=_0x496e45?(0x0,s[_0x4dcf09(0x126)])(a[_0x4dcf09(0x24a)],{}):(0x0,s[_0x4dcf09(0x126)])(a['OffLineIcon'],{}),_0x574e2f=(0x0,o[_0x4dcf09(0x148)])(()=>{_0x55b76d&&_0x210e71&&_0x210e71();},[_0x55b76d,_0x210e71]);function _0x3ff473(){const _0x42f889=_0x4dcf09;return(0x0,s['jsxs'])(_0x42f889(0x11b),{'className':(0x0,n[_0x42f889(0x183)])(_0x42f889(0x1fe),_0x55b76d&&_0x210e71&&_0x42f889(0x194)),'role':_0x42f889(0x1bb),'onClick':_0x55b76d&&_0x210e71?_0x574e2f:void 0x0,'children':[(0x0,s[_0x42f889(0x126)])(_0x42f889(0x11b),{'className':(0x0,n[_0x42f889(0x183)])('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x39b859),'children':_0x157edf}),(0x0,s[_0x42f889(0x126)])('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x599a90})]});}return(0x0,s['jsx'])(n[_0x4dcf09(0x21f)],{'title':_0x276470,'placement':'bottom','children':_0x3ff473()});}let E=class extends e[_0x3fc626(0x1ec)]{constructor(_0x2af11b,_0x45bfda,_0xbfcc7a,_0x4420c6){const _0x55897e=_0x3fc626;super(),this[_0x55897e(0x1cd)]=_0x2af11b,this[_0x55897e(0x1b2)]=_0x45bfda,this[_0x55897e(0x218)]=_0xbfcc7a,this[_0x55897e(0x17c)]=_0x4420c6,this[_0x55897e(0x226)](),this[_0x55897e(0x185)]();}['_initAutoConnect'](){const _0x3ec28d=_0x3fc626;let _0x124b3f=this[_0x3ec28d(0x17c)]['getConfig'](u);_0x124b3f!=null&&_0x124b3f[_0x3ec28d(0x118)]&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x3fc626(0x185)](){const _0x3b4304=_0x3fc626;let _0x1f3910=this['_configService'][_0x3b4304(0x105)](u);(_0x1f3910==null?void 0x0:_0x1f3910[_0x3b4304(0x111)])!==!0x1&&this[_0x3b4304(0x1c1)](this['_uiPartsService'][_0x3b4304(0x236)](r['BuiltInUIPart'][_0x3b4304(0x155)],()=>{const _0x5d7040=_0x3b4304;var _0x3b3839;return(0x0,r['connectInjector'])(D({'status$':this[_0x5d7040(0x1b2)][_0x5d7040(0x11f)],'error$':this[_0x5d7040(0x1b2)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x3b3839=_0x1f3910==null?void 0x0:_0x1f3910[_0x5d7040(0x118)])==null?!0x1:_0x3b3839}),this['_injector']);}));}[_0x3fc626(0x1b6)](){const _0x37288a=_0x3fc626;this[_0x37288a(0x1cd)][_0x37288a(0x144)](b)['showConfigPanel']();}};E=_([g(0x0,(0x0,e[_0x3fc626(0x196)])(e[_0x3fc626(0x117)])),g(0x1,(0x0,e[_0x3fc626(0x196)])(t[_0x3fc626(0x18c)])),g(0x2,r[_0x3fc626(0x19a)]),g(0x3,e[_0x3fc626(0x138)])],E);function D(_0x44f3ba){let {status$:_0x35fad0,error$:_0x2d1468,onConfigure:_0x4d83f9,showClickable:_0x44283b}=_0x44f3ba;return function(){const _0xfd05bc=_0xab1b;return(0x0,s[_0xfd05bc(0x126)])(T,{'status$':_0x35fad0,'error$':_0x2d1468,'onConfigure':_0x4d83f9,'showClickable':_0x44283b});};}function O(_0x97f0){const _0x56cd91=_0x3fc626;return{'id':x['id'],'type':r[_0x56cd91(0x186)][_0x56cd91(0x24e)],'icon':'MenuIcon','title':_0x56cd91(0x1b8),'tooltip':_0x56cd91(0x1b8)};}const k={[r[_0x3fc626(0x1a5)]['OTHERS']]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e[_0x3fc626(0x1ec)]{constructor(_0x29051e,_0x10610d){const _0x2991c7=_0x3fc626;super(),this[_0x2991c7(0x1d8)]=_0x29051e,this['_menuManagerService']=_0x10610d,this['_initializeCommands'](),this[_0x2991c7(0x1d3)]();}[_0x3fc626(0x149)](){[x]['forEach'](_0x43f9c1=>{const _0x551054=_0xab1b;this[_0x551054(0x1c1)](this['_commandService'][_0x551054(0x240)](_0x43f9c1));});}[_0x3fc626(0x1d3)](){const _0x5083f3=_0x3fc626;this[_0x5083f3(0x23c)]['mergeMenu'](k);}};A=_([g(0x0,e['ICommandService']),g(0x1,r[_0x3fc626(0x22e)])],A);const j={'mcpStatus':{'disconnected':_0x3fc626(0x157),'connecting':'MCP\x20Connecting...','connected':_0x3fc626(0x165),'failed':'MCP\x20Connection\x20Failed','retrying':_0x3fc626(0x203),'unknown':_0x3fc626(0x14a),'unauthorized':_0x3fc626(0x1d6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3fc626(0x1aa),'maxRetriesExceeded':_0x3fc626(0x1dc),'clickToConnect':_0x3fc626(0x175),'clickToConfigure':_0x3fc626(0x104)},'mcpConfig':{'title':_0x3fc626(0x193),'description':_0x3fc626(0x110),'apiKey':_0x3fc626(0x247),'apiKeyPlaceholder':_0x3fc626(0x217),'apiKeyHint':_0x3fc626(0x242),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3fc626(0x22b),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3fc626(0x228),'configStep1':_0x3fc626(0x19f),'configStep2':_0x3fc626(0x211),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3fc626(0x1a6),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3fc626(0x1cb),'configParameters':_0x3fc626(0x1c6),'maxRetries':_0x3fc626(0x21d),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x3fc626(0x180),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3fc626(0x171),'configError':_0x3fc626(0x163),'apiApplyInfo':{'title':_0x3fc626(0x220),'description':_0x3fc626(0x14f),'univerAiLabel':_0x3fc626(0x189),'getStarted':_0x3fc626(0x21c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3fc626(0x235),'invalidConfig':_0x3fc626(0x120),'invalidApiKey':_0x3fc626(0x129)},'connectionStatus':{'disconnected':_0x3fc626(0x184),'connecting':'Connecting...','connected':_0x3fc626(0x17b),'failed':_0x3fc626(0x1c2),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3fc626(0x10a),'sessionOccupied':_0x3fc626(0x23d),'networkError':_0x3fc626(0x1b9),'maxRetriesExceeded':_0x3fc626(0x181)}}},M={'mcpStatus':{'disconnected':_0x3fc626(0x123),'connecting':_0x3fc626(0x195),'connected':_0x3fc626(0x206),'failed':_0x3fc626(0x12f),'retrying':_0x3fc626(0x131),'unknown':_0x3fc626(0x225),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3fc626(0x21e),'networkError':_0x3fc626(0x214),'maxRetriesExceeded':_0x3fc626(0x201),'clickToConnect':_0x3fc626(0x10f),'clickToConfigure':_0x3fc626(0x16b)},'mcpConfig':{'title':_0x3fc626(0x22a),'description':_0x3fc626(0x169),'apiKey':_0x3fc626(0x130),'apiKeyPlaceholder':_0x3fc626(0x12e),'apiKeyHint':_0x3fc626(0x135),'enableAuth':_0x3fc626(0x256),'enableAuthHint':_0x3fc626(0x14d),'connectionInfo':_0x3fc626(0x1cf),'mcpClientConfig':_0x3fc626(0x1cf),'configInstructions':_0x3fc626(0x17e),'configStepTitle':_0x3fc626(0x205),'configStep1':_0x3fc626(0x139),'configStep2':_0x3fc626(0x112),'configStep3':_0x3fc626(0x1ba),'sessionId':'会话ID','sessionIdDescription':_0x3fc626(0x229),'authorizationDescription':_0x3fc626(0x1b0),'configParameters':_0x3fc626(0x22c),'maxRetries':_0x3fc626(0x20d),'save':_0x3fc626(0x1ff),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x3fc626(0x223),'configSaved':_0x3fc626(0x15e),'configError':_0x3fc626(0x166),'apiApplyInfo':{'title':_0x3fc626(0x1c7),'description':_0x3fc626(0x1be),'univerAiLabel':_0x3fc626(0x172),'getStarted':_0x3fc626(0x20e)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x3fc626(0x23f),'invalidConfig':_0x3fc626(0x162),'invalidApiKey':_0x3fc626(0x258)},'connectionStatus':{'disconnected':_0x3fc626(0x197),'connecting':_0x3fc626(0x16f),'connected':_0x3fc626(0x222),'failed':_0x3fc626(0x146),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x3fc626(0x25a)}}};var N=_0x3fc626(0x13a),P='0.18.0';let F=class extends e[_0x3fc626(0x122)]{constructor(_0x36de97=d,_0x4e5f35,_0x338fc8,_0xa2c5b1,_0x5001a3,_0x117acd){const _0x47a7c0=_0x3fc626;super(),this[_0x47a7c0(0x141)]=_0x36de97,this[_0x47a7c0(0x1cd)]=_0x4e5f35,this['_configService']=_0x338fc8,this[_0x47a7c0(0x218)]=_0xa2c5b1,this['_localStorageService']=_0x5001a3,this['_localeService']=_0x117acd;let {..._0x4d59bd}=(0x0,e[_0x47a7c0(0x191)])({},d,this[_0x47a7c0(0x141)]);this[_0x47a7c0(0x17c)]['setConfig'](u,_0x4d59bd);}async[_0x3fc626(0x1e6)](){const _0xe885a8=_0x3fc626;let _0x5bcd07=[[E],[b],[A]];this[_0xe885a8(0x1cd)]['has'](c[_0xe885a8(0x18b)])||_0x5bcd07[_0xe885a8(0x1e5)]([c[_0xe885a8(0x18b)],{'useClass':c['WebSocketService']}]),_0x5bcd07['forEach'](_0x1530e7=>this[_0xe885a8(0x1cd)][_0xe885a8(0x11a)](_0x1530e7)),this['_injector']['get'](E),this[_0xe885a8(0x1cd)][_0xe885a8(0x144)](b),this[_0xe885a8(0x1cd)]['get'](A);}};h(F,_0x3fc626(0x1bd),'MCP_UI_PLUGIN'),h(F,_0x3fc626(0x124),N),h(F,_0x3fc626(0x216),P),F=_([(0x0,e[_0x3fc626(0x10e)])(t[_0x3fc626(0x140)]),g(0x1,(0x0,e['Inject'])(e[_0x3fc626(0x117)])),g(0x2,e[_0x3fc626(0x138)]),g(0x3,r[_0x3fc626(0x19a)]),g(0x4,e[_0x3fc626(0x1c3)]),g(0x5,(0x0,e['Inject'])(e[_0x3fc626(0x233)]))],F),exports[_0x3fc626(0x1a3)]=l,Object['defineProperty'](exports,_0x3fc626(0x1c4),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x3fc626(0x1de)](exports,_0x3fc626(0x132),{'enumerable':!0x0,'get':function(){return E;}}),exports['MCPStatusDisplay']=T,Object['defineProperty'](exports,_0x3fc626(0x16c),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x3fc626(0x187)]=x,Object[_0x3fc626(0x1de)](exports,_0x3fc626(0x22d),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x3fc626(0x161)]=j,exports[_0x3fc626(0x16a)]=M;
|
|
1
|
+
const _0x8849ec=_0x1a3d;(function(_0x3a1357,_0x19a455){const _0x282245=_0x1a3d,_0x1031ac=_0x3a1357();while(!![]){try{const _0x5bee67=-parseInt(_0x282245(0xd8))/0x1*(parseInt(_0x282245(0x131))/0x2)+-parseInt(_0x282245(0x186))/0x3+-parseInt(_0x282245(0x91))/0x4+parseInt(_0x282245(0x18d))/0x5*(-parseInt(_0x282245(0x173))/0x6)+-parseInt(_0x282245(0x1bd))/0x7*(-parseInt(_0x282245(0x152))/0x8)+parseInt(_0x282245(0xfd))/0x9*(parseInt(_0x282245(0x13a))/0xa)+parseInt(_0x282245(0x12d))/0xb*(parseInt(_0x282245(0x81))/0xc);if(_0x5bee67===_0x19a455)break;else _0x1031ac['push'](_0x1031ac['shift']());}catch(_0x11356d){_0x1031ac['push'](_0x1031ac['shift']());}}}(_0x1127,0xd0460),Object[_0x8849ec(0x1b4)](exports,Symbol[_0x8849ec(0xc4)],{'value':_0x8849ec(0x12f)}));let e=require(`@univerjs/core`),t=require(`@univerjs-pro/mcp`),n=require(`@univerjs/design`),r=require(`@univerjs/ui`),i=require(`rxjs`),a=require(`@univerjs/icons`),o=require(`react`),s=require(`react/jsx-runtime`),c=require(`@univerjs/network`);function l(_0x186b59){const _0x4ec51e=_0x8849ec;var _0x385eb3,_0x46003f;let {mcpCoreConfig:_0x50d355,onSave:_0x362cb4,loading:_0x40ffcd=!0x1,config:_0x1958ad,connectionStatus$:_0x5df51e,connectionError$:_0x2240eb,currentApiKey$:_0x1a3738,currentSessionId$:_0x4b6b1a}=_0x186b59,_0x137f91=(0x0,r[_0x4ec51e(0x1b2)])(e[_0x4ec51e(0x8b)]),_0x195a70=(0x0,r[_0x4ec51e(0x1ad)])(_0x5df51e,t[_0x4ec51e(0x10a)][_0x4ec51e(0x19c)]),_0x121505=(0x0,r['useObservable'])(_0x2240eb,t[_0x4ec51e(0x13c)][_0x4ec51e(0x13b)]),_0x2622f6=(0x0,r[_0x4ec51e(0x1ad)])(_0x4b6b1a,''),[_0x258c52,_0x338b91]=(0x0,o[_0x4ec51e(0xdb)])((0x0,r[_0x4ec51e(0x1ad)])(_0x1a3738,'')||''),_0xedd941=_0x1958ad[_0x4ec51e(0x15c)]&&_0x50d355[_0x4ec51e(0x168)]&&(_0x50d355[_0x4ec51e(0x168)][_0x4ec51e(0xbb)](_0x4ec51e(0x155))||_0x50d355[_0x4ec51e(0x168)][_0x4ec51e(0xbb)](_0x4ec51e(0x180))),_0x26ac22=(_0x385eb3=_0x50d355[_0x4ec51e(0x168)])==null?void 0x0:_0x385eb3[_0x4ec51e(0xbb)](_0x4ec51e(0x155)),_0x3a0167=(_0x46003f=_0x50d355[_0x4ec51e(0x168)])==null?void 0x0:_0x46003f[_0x4ec51e(0xbb)]('univer.ai'),_0x5c1904=_0x26ac22?_0x4ec51e(0x106):_0x4ec51e(0xb6),_0x5ce002=_0x1958ad['showDeveloperTools']&&(_0x26ac22||_0x3a0167),[_0x4fffef,_0x3ec940]=(0x0,o[_0x4ec51e(0xdb)])(!_0x258c52[_0x4ec51e(0xbe)]()),_0x29c992=(_0xf8d46c,_0x558102)=>{const _0x13f34b=_0x4ec51e;if(_0x558102===t[_0x13f34b(0x13c)][_0x13f34b(0x169)])return _0x13f34b(0x113);switch(_0xf8d46c){case t[_0x13f34b(0x10a)][_0x13f34b(0x1a7)]:return _0x13f34b(0x9e);case t[_0x13f34b(0x10a)]['CONNECTING']:case t['MCPConnectionStatus'][_0x13f34b(0x181)]:return _0x13f34b(0x18b);case t[_0x13f34b(0x10a)][_0x13f34b(0x179)]:return _0x13f34b(0x113);default:return _0x13f34b(0x1ae);}},_0x2714dd=(_0x563cf2,_0x57352c)=>{const _0x51560b=_0x4ec51e;if(_0x57352c===t['MCPConnectionError'][_0x51560b(0x169)])return _0x51560b(0xe5);switch(_0x563cf2){case t['MCPConnectionStatus'][_0x51560b(0x1a7)]:return _0x51560b(0xf6);case t['MCPConnectionStatus']['CONNECTING']:case t[_0x51560b(0x10a)][_0x51560b(0x181)]:return'univer-bg-blue-500';case t['MCPConnectionStatus']['FAILED']:return _0x51560b(0xe5);default:return _0x51560b(0xce);}},_0x4045ec=_0x4a3a7e=>{const _0x25a835=_0x4ec51e;switch(_0x4a3a7e){case t[_0x25a835(0x10a)][_0x25a835(0x1a7)]:return _0x137f91['t'](_0x25a835(0x118));case t['MCPConnectionStatus'][_0x25a835(0x14d)]:return _0x137f91['t'](_0x25a835(0xa0));case t['MCPConnectionStatus']['FAILED']:return _0x137f91['t']('mcpConfig.connectionStatus.failed');case t[_0x25a835(0x10a)][_0x25a835(0x181)]:return _0x137f91['t'](_0x25a835(0x8c));default:return _0x137f91['t']('mcpConfig.connectionStatus.disconnected');}},_0x23551d=_0x527d7a=>{const _0x5500f2=_0x4ec51e;switch(_0x527d7a){case t[_0x5500f2(0x13c)][_0x5500f2(0x169)]:return _0x137f91['t'](_0x5500f2(0x16f));case t[_0x5500f2(0x13c)][_0x5500f2(0xe4)]:return _0x137f91['t'](_0x5500f2(0x95));case t[_0x5500f2(0x13c)][_0x5500f2(0x19e)]:return _0x137f91['t']('mcpConfig.connectionError.networkError');case t['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x137f91['t'](_0x5500f2(0xfc));default:return'';}},_0x2f432d=(0x0,o['useCallback'])(()=>{const _0x20cb3e=_0x4ec51e;_0x362cb4({..._0x50d355,'apiKey':_0x258c52[_0x20cb3e(0xbe)](),'enableAuth':!0x0});},[_0x50d355,_0x258c52,!0x0,_0x362cb4]),_0xe47cff=_0x258c52['trim']()['length']>0x0;return(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0x11a),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x127),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x192),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x1b1),'children':'⚙'})}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'children':(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x137f91['t'](_0x4ec51e(0xf5))})})]})}),(0x0,s['jsxs'])('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':(0x0,n['clsx'])(_0x4ec51e(0xe3),_0x29c992(_0x195a70,_0x121505)),'children':(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':(0x0,n['clsx'])(_0x4ec51e(0x17b),_0x2714dd(_0x195a70,_0x121505))}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x1cf),'children':_0x4045ec(_0x195a70)})]})}),_0x121505!==t[_0x4ec51e(0x13c)]['NONE']&&(_0x195a70===t['MCPConnectionStatus'][_0x4ec51e(0x179)]||_0x121505===t[_0x4ec51e(0x13c)][_0x4ec51e(0x169)])&&(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xd4),'children':(0x0,s['jsxs'])('div',{'className':_0x4ec51e(0x98),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x14b),'children':'⚠️'}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x23551d(_0x121505)})]})})]}),(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x17f),'children':(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-5','children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x162),'children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x1a4),{'className':_0x4ec51e(0x187),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'children':'🔑'}),'\x20',_0x137f91['t'](_0x4ec51e(0xa6)),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x133),'children':'*'}),_0xedd941&&(0x0,s[_0x4ec51e(0x1c8)])('a',{'className':_0x4ec51e(0x17e),'title':_0x137f91['t']('mcpConfig.apiApplyInfo.title'),'role':_0x4ec51e(0x147),'onClick':()=>_0x3ec940(!0x0),'children':(0x0,s[_0x4ec51e(0x1c8)])(a['HelpIcon'],{})})]}),(0x0,s[_0x4ec51e(0x1c8)])(n['Input'],{'type':_0x4ec51e(0xf3),'placeholder':_0x137f91['t'](_0x4ec51e(0x165)),'value':_0x258c52,'disabled':_0x40ffcd,'autoComplete':'off','onChange':_0x338b91}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x1b7),'children':_0x137f91['t']('mcpConfig.apiKeyHint')})]}),_0xedd941&&_0x4fffef&&(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[(0x0,s[_0x4ec51e(0x1c8)])('a',{'className':_0x4ec51e(0xca),'role':_0x4ec51e(0x147),'onClick':()=>_0x3ec940(!0x1),'children':(0x0,s['jsx'])(a[_0x4ec51e(0x124)],{'className':_0x4ec51e(0x94)})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x160),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xc8),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x140),'children':[(0x0,s[_0x4ec51e(0x1c8)])('h4',{'className':_0x4ec51e(0xb9),'children':_0x137f91['t']('mcpConfig.apiApplyInfo.title')}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x184),'children':_0x137f91['t']('mcpConfig.apiApplyInfo.description')}),(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb2),'children':_0x5ce002&&(0x0,s[_0x4ec51e(0xdc)])('a',{'className':_0x4ec51e(0x1b6),'href':_0x5c1904,'target':_0x4ec51e(0xa4),'rel':'noopener\x20noreferrer','children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'children':'🤖'}),_0x137f91['t'](_0x4ec51e(0x158)),(0x0,s['jsx'])('span',{'className':_0x4ec51e(0x1bb),'children':'↗'})]})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x90),'children':['✨','\x20',_0x137f91['t'](_0x4ec51e(0x1c7))]})]})]})]}),_0x1958ad['showDeveloperTools']&&(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1cb),'children':[(0x0,s[_0x4ec51e(0xdc)])('h4',{'className':_0x4ec51e(0x123),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'children':'🔗'}),'\x20',_0x137f91['t']('mcpConfig.connectionInfo')]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x18f),'children':[(0x0,s[_0x4ec51e(0xdc)])('div',{'className':'univer-space-y-3','children':[(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x17a),'children':_0x137f91['t'](_0x4ec51e(0x1d1))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-2','children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x17d),'children':_0x137f91['t'](_0x4ec51e(0xa8))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xfa),'children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s['jsx'])('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x137f91['t'](_0x4ec51e(0xb7))]}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xc2),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xcd),'children':'2'}),_0x137f91['t'](_0x4ec51e(0x174))]}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xc2),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xcd),'children':'3'}),_0x137f91['t'](_0x4ec51e(0x18a))]})]})]})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x162),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ec51e(0xea)}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1aa),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x191),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x4ec51e(0x1cd)]({'mcpServers':{'univer':{'url':_0x4ec51e(0x1a9)+(_0x2622f6||_0x4ec51e(0x170)),'type':_0x4ec51e(0xde),'headers':{'Authorization':_0x4ec51e(0x11b)+(_0x258c52||_0x4ec51e(0x159))}}}},null,0x2)})})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x96),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x17d),'children':_0x137f91['t'](_0x4ec51e(0x135))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-2','children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x13e),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb1)}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1b3),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x164),'children':_0x4ec51e(0x1a2)}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1b7),'children':_0x137f91['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x13e),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb1)}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x164),'children':_0x4ec51e(0x185)}),(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x137f91['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,s[_0x4ec51e(0x1c8)])(n[_0x4ec51e(0x156)],{'onClick':_0x2f432d,'disabled':!_0xe47cff||_0x40ffcd,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x40ffcd?(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])('span',{'children':'⟲'}),_0x137f91['t']('mcpConfig.saving')]}):(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])(a[_0x4ec51e(0xae)],{}),_0x137f91['t'](_0x4ec51e(0x101))]})}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xd9),'children':(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xb0),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x82),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x132),'children':_0x4ec51e(0x18e)}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'children':['•',_0x137f91['t'](_0x4ec51e(0x128))]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'children':['•',_0x137f91['t'](_0x4ec51e(0xf9))]})]})]})})]})})]});}const u=_0x8849ec(0xf8);Symbol(u);const d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x323a7a){'@babel/helpers - typeof';const _0x787327=_0x8849ec;return f=typeof Symbol==_0x787327(0xad)&&typeof Symbol[_0x787327(0xc7)]==_0x787327(0xd3)?function(_0x5f260d){return typeof _0x5f260d;}:function(_0x2dc10b){const _0x2a7d17=_0x787327;return _0x2dc10b&&typeof Symbol==_0x2a7d17(0xad)&&_0x2dc10b[_0x2a7d17(0x14f)]===Symbol&&_0x2dc10b!==Symbol[_0x2a7d17(0x12a)]?_0x2a7d17(0xd3):typeof _0x2dc10b;},f(_0x323a7a);}function p(_0x1fa25b,_0x2a8140){const _0x576146=_0x8849ec;if(f(_0x1fa25b)!='object'||!_0x1fa25b)return _0x1fa25b;var _0x444a5b=_0x1fa25b[Symbol[_0x576146(0xe6)]];if(_0x444a5b!==void 0x0){var _0x20beec=_0x444a5b['call'](_0x1fa25b,_0x2a8140||'default');if(f(_0x20beec)!=_0x576146(0xaf))return _0x20beec;throw TypeError(_0x576146(0x1d3));}return(_0x2a8140===_0x576146(0xa1)?String:Number)(_0x1fa25b);}function m(_0x5c2a7f){const _0x14ed63=_0x8849ec;var _0x40988c=p(_0x5c2a7f,_0x14ed63(0xa1));return f(_0x40988c)==_0x14ed63(0xd3)?_0x40988c:_0x40988c+'';}function h(_0x2efc0f,_0x309882,_0x536a67){return(_0x309882=m(_0x309882))in _0x2efc0f?Object['defineProperty'](_0x2efc0f,_0x309882,{'value':_0x536a67,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2efc0f[_0x309882]=_0x536a67,_0x2efc0f;}function g(_0x35fced,_0x42cd52){return function(_0x223721,_0x3f16da){_0x42cd52(_0x223721,_0x3f16da,_0x35fced);};}function _0x1127(){const _0x54c52e=['Session\x20ID','mcp.apiKey','_initializeMenus','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','1286684EFFRlZ','MCP:\x20Session\x20ID\x20Occupied','启用身份验证以获得安全连接','univer-size-4','mcpConfig.connectionError.sessionOccupied','univer-space-y-3','mcpStatus.clickToConfigure','univer-flex\x20univer-items-start\x20univer-gap-2','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_connectionController','MCP\x20连接失败','mcpStatus.connecting','Invalid\x20configuration','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','showStatus','mcpConfig.connectionStatus.connecting','string','将以下配置添加到您的\x20MCP\x20客户端设置中:','apiKey','_blank','getItem','mcpConfig.apiKey','MCPUIMenuController','mcpConfig.configStepTitle','errorMessage','已连接','ILocalStorageService','sessionId$','function','CheckMarkIcon','object','univer-flex\x20univer-gap-3','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Connected','_componentManager','mcpStatus.unknown','https://console.univer.ai','mcpConfig.configStep1','push','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20客户端配置','includes','subscribe','_validateConfig','trim','MessageType','mcpStatus.maxRetriesExceeded','MCP\x20Disconnected','univer-flex\x20univer-items-center\x20univer-gap-2','mergeMenu','toStringTag','next','mcp-ui.command.openConfigPanel','iterator','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','API\x20密钥无效,请检查密钥是否正确','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','registerCommand','MCP_UI_PLUGIN','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-bg-gray-500','API\x20密钥长度至少需要\x2010\x20位','MCPConfigPanel','Connection\x20Failed','MCP:\x20会话\x20ID\x20已被占用','symbol','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_mcpCoreConfig$','length','Disposable','2LTKgcj','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpStatus.failed','useState','jsxs','_config','http','registerComponent','_localStorageService','请输入您的\x20API\x20密钥','close','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','SESSION_ID_OCCUPIED','univer-bg-red-500','toPrimitive','clsx','Univer\x20AI\x20Console','_createConfigPanelComponent','MCP\x20Configuration','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connecting...','Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','ICommandService','IDialogService','_initConfigSync','text','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.description','univer-bg-green-500','setConfig','mcp-ui.config','mcpConfig.note2','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Configuration\x20Parameters:','mcpConfig.connectionError.maxRetriesExceeded','90OvNfQn','_uiPartsService','会话ID','_loading$','mcpConfig.save','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','将配置添加到您的\x20MCP\x20客户端设置文件中','Get\x20your\x20API\x20key\x20in\x20seconds','带有\x20Bearer\x20前缀的\x20API\x20密钥。','https://console.univer.plus','MCP\x20已连接','show','enableAutoConnect','MCPConnectionStatus','getConfig','subscribeConfigValue$','Click\x20to\x20configure\x20MCP','has','MCP:\x20超出最大重试次数','disposeWithMe','getCurrentConfig','UniverMCPUIPlugin','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Success','API\x20密钥不能为空','API\x20key\x20is\x20required','MCP\x20重连中...','mcpConfig.connectionStatus.connected','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Bearer\x20','mcpStatus.disconnected','_handleConfigure','MCP\x20已断开','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','保存中...','您的\x20API\x20密钥安全存储在本地存储中','OffLineIcon','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','CloseIcon','MCPConnectionController','Error','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.note1','_configService','prototype','useCallback','__setCustomHeaders','231LXSZwY','ILogService','Module','IUIPartsService','328446KdJrIE','univer-font-medium','univer-text-red-500','mcpStatus.sessionOccupied','mcpConfig.configParameters','MenuIcon','_logService','Inject','\x20-\x20','764130wQTKSQ','NONE','MCPConnectionError','Retrying...','univer-flex\x20univer-items-start\x20univer-gap-3','_menuManagerService','univer-flex-1','RibbonStartGroup','IMenuManagerService','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20未授权','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Copy\x20the\x20JSON\x20configuration\x20below','button','BUTTON','pluginName','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-shrink-0\x20univer-text-red-500','ComponentManager','CONNECTING','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','constructor','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','DependentOn','760NpGeRU','Tooltip','connectInjector','univer.plus','Button','点击连接\x20MCP','mcpConfig.apiApplyInfo.univerAiLabel','<API_KEY>','connectionError$','validateApiKey','showDeveloperTools','zhCN','配置步骤:','_initStatusComponent','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20连接中...','univer-space-y-2','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.apiKeyPlaceholder','您的\x20API\x20密钥将在此浏览器中本地存储','OnLineIcon','mcpServerUrl','UNAUTHORIZED','bottom','_injector','_localeService','showConfigPanel','Injector','mcpConfig.connectionError.unauthorized','<SESSION_ID>','网络连接错误,请检查您的网络连接','连接失败','342hyNAgm','mcpConfig.configStep2','_mcpConnectionController','Univer\x20AI\x20控制台','span','isValid','FAILED','univer-text-xs\x20univer-text-gray-600','univer-size-2\x20univer-rounded-full','version','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer.ai','RETRYING','univer-text-green-500','复制以下\x20JSON\x20配置','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Authorization:','729468WZJGKf','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP\x20Client\x20Configuration','mcpStatus.networkError','mcpConfig.configStep3','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_initializeCommands','72965oZaMyt','Configuration\x20Notes:','univer-space-y-4','_config$','pre','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','div','MCPConnectionUIController','warn','onStarting','MCP\x20Connection\x20Failed','Plugin','_loadStoredApiKey','WebSocketService','配置保存成功','DISCONNECTED','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','NETWORK_ERROR','MCPStatusDisplay','mcpConfig.title','mcpConfig.validation.invalidApiKey','univer_session_id:','MCP_PLUGIN_CONFIG_KEY','label','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','CONNECTED','_initAutoConnect','https://mcp.univer.ai/mcp/?univer_session_id=','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','register','mcpStatus.unauthorized','useObservable','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','配置更改将立即生效','get','univer-text-white','useDependency','univer-min-w-0\x20univer-flex-1','defineProperty','connectionStatus$','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-text-xs\x20univer-text-gray-500','_handleConfigSave','value','What\x20is\x20API\x20Key?','univer-text-gray-400','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','49679xwVsIm','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','add','_dialogService','mcpConfig.validation.apiKeyTooShort','mcpStatus.clickToConnect','_apiKey$','OTHERS','IMessageService','mcpConfig.apiApplyInfo.getStarted','jsx','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20Connecting...','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','removeItem','stringify','Max\x20Retries','univer-text-sm\x20univer-font-medium','Save\x20Configuration','mcpConfig.configInstructions','IConfigService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','HEADER_MENU','mcp-config-dialog','error','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','配置保存失败','651324CtNmlM','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_messageService','MCP\x20配置','open','_registerComponent','forEach','权限验证失败,请检查您的\x20API\x20密钥','univer-mr-2\x20univer-flex\x20univer-text-xl','未连接','LocaleService','mcpConfig.connectionStatus.retrying'];_0x1127=function(){return _0x54c52e;};return _0x1127();}function _(_0x2159a7,_0x2fe962,_0x17a771,_0x30d7d8){const _0x187014=_0x8849ec;var _0x1e3186=arguments[_0x187014(0xd6)],_0x5adfea=_0x1e3186<0x3?_0x2fe962:_0x30d7d8===null?_0x30d7d8=Object['getOwnPropertyDescriptor'](_0x2fe962,_0x17a771):_0x30d7d8,_0x40d952;if(typeof Reflect==_0x187014(0xaf)&&typeof Reflect[_0x187014(0x1d4)]==_0x187014(0xad))_0x5adfea=Reflect[_0x187014(0x1d4)](_0x2159a7,_0x2fe962,_0x17a771,_0x30d7d8);else{for(var _0x3211b6=_0x2159a7['length']-0x1;_0x3211b6>=0x0;_0x3211b6--)(_0x40d952=_0x2159a7[_0x3211b6])&&(_0x5adfea=(_0x1e3186<0x3?_0x40d952(_0x5adfea):_0x1e3186>0x3?_0x40d952(_0x2fe962,_0x17a771,_0x5adfea):_0x40d952(_0x2fe962,_0x17a771))||_0x5adfea);}return _0x1e3186>0x3&&_0x5adfea&&Object[_0x187014(0x1b4)](_0x2fe962,_0x17a771,_0x5adfea),_0x5adfea;}const v=_0x8849ec(0x8e),y=_0x8849ec(0x1d6);let b=class extends e[_0x8849ec(0xd7)]{constructor(_0x451c2f,_0x47bd29,_0x4068e0,_0x2c9de1,_0x115793,_0x1a2a9f,_0x2e497d,_0x2224e8,_0x2f0953,_0x3ba926){const _0x4373d4=_0x8849ec;super(),this[_0x4373d4(0x16b)]=_0x451c2f,this[_0x4373d4(0xfe)]=_0x47bd29,this[_0x4373d4(0x129)]=_0x4068e0,this[_0x4373d4(0xe0)]=_0x2c9de1,this[_0x4373d4(0x1c1)]=_0x115793,this[_0x4373d4(0x83)]=_0x1a2a9f,this[_0x4373d4(0xb4)]=_0x2e497d,this['_localeService']=_0x2224e8,this[_0x4373d4(0x137)]=_0x2f0953,this[_0x4373d4(0x175)]=_0x3ba926,h(this,_0x4373d4(0x100),new i['BehaviorSubject'](!0x1)),h(this,_0x4373d4(0xd5),new i['BehaviorSubject']({})),h(this,_0x4373d4(0x190),new i['BehaviorSubject']({})),h(this,_0x4373d4(0x1c4),new i['BehaviorSubject']('')),h(this,_0x4373d4(0x1b8),async _0xbae031=>{const _0x19f4e1=_0x4373d4;this['_loading$']['next'](!0x0);try{var _0x5e1d20,_0x553f27;let _0x32d3d8=await this[_0x19f4e1(0xbd)](_0xbae031);if(!_0x32d3d8[_0x19f4e1(0x178)]){this[_0x19f4e1(0x83)][_0x19f4e1(0x108)]({'type':n['MessageType'][_0x19f4e1(0x126)],'content':_0x32d3d8[_0x19f4e1(0xa9)]||this[_0x19f4e1(0x16c)]['t']('mcpConfig.validation.invalidConfig')});return;}_0xbae031['apiKey']?await this[_0x19f4e1(0xe0)]['setItem'](v,_0xbae031[_0x19f4e1(0xa3)][_0x19f4e1(0xbe)]()):await this[_0x19f4e1(0xe0)][_0x19f4e1(0x1cc)](v),this[_0x19f4e1(0x1c4)][_0x19f4e1(0xc5)](((_0x5e1d20=_0xbae031[_0x19f4e1(0xa3)])==null?void 0x0:_0x5e1d20[_0x19f4e1(0xbe)]())||''),this[_0x19f4e1(0x175)][_0x19f4e1(0x12c)]({'Authorization':_0x19f4e1(0x11b)+((_0x553f27=_0xbae031[_0x19f4e1(0xa3)])==null?void 0x0:_0x553f27[_0x19f4e1(0xbe)]())}),this[_0x19f4e1(0x83)][_0x19f4e1(0x108)]({'type':n[_0x19f4e1(0xbf)][_0x19f4e1(0x114)],'content':this[_0x19f4e1(0x16c)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x2bbfac=_0x19f4e1;this[_0x2bbfac(0x1c1)][_0x2bbfac(0xe2)](y);},0x320);}catch(_0x569317){this[_0x19f4e1(0x137)][_0x19f4e1(0x1d7)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x569317),this[_0x19f4e1(0x83)]['show']({'type':n[_0x19f4e1(0xbf)]['Error'],'content':this[_0x19f4e1(0x16c)]['t']('mcpConfig.configError')});}finally{this['_loading$']['next'](!0x1);}}),this[_0x4373d4(0xf2)](),this[_0x4373d4(0x199)](),this[_0x4373d4(0x86)]();}[_0x8849ec(0x16d)](){const _0x364cfe=_0x8849ec;let _0x3a1b41=this[_0x364cfe(0x129)][_0x364cfe(0x10b)](u);_0x3a1b41!=null&&_0x3a1b41['showDeveloperTools']&&this[_0x364cfe(0x1c1)][_0x364cfe(0x85)]({'id':y,'title':{'title':this['_localeService']['t'](_0x364cfe(0x1a0))},'children':{'label':_0x364cfe(0xd0)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3fcf26=_0x364cfe;this[_0x3fcf26(0x1c1)][_0x3fcf26(0xe2)](y);}});}[_0x8849ec(0x111)](){const _0x1ff2ed=_0x8849ec;return this[_0x1ff2ed(0xd5)][_0x1ff2ed(0x1b9)];}[_0x8849ec(0x86)](){const _0x420adf=_0x8849ec;this[_0x420adf(0x110)](this['_componentManager'][_0x420adf(0x1ab)](_0x420adf(0xd0),this[_0x420adf(0xe9)]()));}['_createConfigPanelComponent'](){const _0x252657=_0x8849ec;return(0x0,r[_0x252657(0x154)])(()=>{const _0x4801c6=_0x252657;var _0x37fe35,_0x5e6357,_0x43bf5a;return(0x0,s[_0x4801c6(0x1c8)])(l,{'config':this[_0x4801c6(0x190)]['value'],'mcpCoreConfig':this[_0x4801c6(0xd5)][_0x4801c6(0x1b9)],'currentApiKey$':this[_0x4801c6(0x1c4)],'onSave':this['_handleConfigSave'],'loading':this[_0x4801c6(0x100)][_0x4801c6(0x1b9)],'connectionStatus$':(_0x37fe35=this[_0x4801c6(0x175)])==null?void 0x0:_0x37fe35[_0x4801c6(0x1b5)],'connectionError$':(_0x5e6357=this[_0x4801c6(0x175)])==null?void 0x0:_0x5e6357['connectionError$'],'currentSessionId$':(_0x43bf5a=this[_0x4801c6(0x175)])==null?void 0x0:_0x43bf5a[_0x4801c6(0xac)]});},this[_0x252657(0x16b)]);}[_0x8849ec(0xf2)](){const _0x5a6b88=_0x8849ec;this[_0x5a6b88(0x110)](this[_0x5a6b88(0x129)][_0x5a6b88(0x10c)](t[_0x5a6b88(0x1a3)])[_0x5a6b88(0xbc)](_0x5f72f=>{const _0x4bbee4=_0x5a6b88;this[_0x4bbee4(0xd5)][_0x4bbee4(0xc5)](_0x5f72f||{});}));let _0x1b5932=this[_0x5a6b88(0x129)][_0x5a6b88(0x10b)](t[_0x5a6b88(0x1a3)]);this[_0x5a6b88(0xd5)][_0x5a6b88(0xc5)](_0x1b5932||{}),this[_0x5a6b88(0x110)](this[_0x5a6b88(0x129)][_0x5a6b88(0x10c)](u)['subscribe'](_0x5aa774=>{const _0x1b3e15=_0x5a6b88;this[_0x1b3e15(0x190)]['next'](_0x5aa774||{});}));let _0x4e266f=this['_configService'][_0x5a6b88(0x10b)](u);this[_0x5a6b88(0x190)]['next'](_0x4e266f||{});}async['_loadStoredApiKey'](){const _0x266657=_0x8849ec;let _0x40b799=this['_configService'][_0x266657(0x10b)](u);if(!(_0x40b799!=null&&_0x40b799['showDeveloperTools']))return;let _0x3eb80a=await this[_0x266657(0xe0)][_0x266657(0xa5)](v);_0x3eb80a&&(this[_0x266657(0x175)][_0x266657(0x12c)]({'Authorization':'Bearer\x20'+_0x3eb80a}),this[_0x266657(0x1c4)]['next'](_0x3eb80a));}async['_validateConfig'](_0x3a37a8){const _0x9d3c5b=_0x8849ec;if(!_0x3a37a8[_0x9d3c5b(0xa3)]||_0x3a37a8['apiKey'][_0x9d3c5b(0xbe)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3a37a8[_0x9d3c5b(0xa3)][_0x9d3c5b(0xbe)]()[_0x9d3c5b(0xd6)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x9d3c5b(0x1c2))};try{let _0x2c8eea=await this['_injector']['get'](t[_0x9d3c5b(0x125)])[_0x9d3c5b(0x15b)](_0x3a37a8[_0x9d3c5b(0xa3)][_0x9d3c5b(0xbe)]());return _0x2c8eea[_0x9d3c5b(0x178)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c8eea[_0x9d3c5b(0x1d7)]||this[_0x9d3c5b(0x16c)]['t'](_0x9d3c5b(0x1a1))};}catch(_0x5017d7){return console[_0x9d3c5b(0x195)](_0x9d3c5b(0x1d8),_0x5017d7),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x16e)])),g(0x1,r['IUIPartsService']),g(0x2,e['IConfigService']),g(0x3,e[_0x8849ec(0xab)]),g(0x4,r[_0x8849ec(0xf1)]),g(0x5,r[_0x8849ec(0x1c6)]),g(0x6,(0x0,e[_0x8849ec(0x138)])(r[_0x8849ec(0x14c)])),g(0x7,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x8b)])),g(0x8,e[_0x8849ec(0x12e)]),g(0x9,(0x0,e[_0x8849ec(0x138)])(t['MCPConnectionController']))],b);const x={'id':_0x8849ec(0xc6),'type':e['CommandType']['COMMAND'],'handler':async(_0x542d1c,_0x431748)=>(_0x542d1c['get'](b)[_0x8849ec(0x16d)](),!0x0)};function S(_0x5424ec,_0x288bf0){const _0xca7345=_0x8849ec;switch(_0x5424ec){case t['MCPConnectionStatus'][_0xca7345(0x19c)]:return _0xca7345(0x11c);case t['MCPConnectionStatus'][_0xca7345(0x14d)]:return _0xca7345(0x9c);case t['MCPConnectionStatus'][_0xca7345(0x1a7)]:return'mcpStatus.connected';case t[_0xca7345(0x10a)]['FAILED']:switch(_0x288bf0){case t['MCPConnectionError']['UNAUTHORIZED']:return _0xca7345(0x1ac);case t[_0xca7345(0x13c)]['SESSION_ID_OCCUPIED']:return _0xca7345(0x134);case t['MCPConnectionError'][_0xca7345(0x19e)]:return _0xca7345(0x189);case t['MCPConnectionError'][_0xca7345(0x119)]:return _0xca7345(0xc0);default:return _0xca7345(0xda);}case t[_0xca7345(0x10a)][_0xca7345(0x181)]:return'mcpStatus.retrying';default:return _0xca7345(0xb5);}}function _0x1a3d(_0x34f5e8,_0x30b4d8){_0x34f5e8=_0x34f5e8-0x80;const _0x112709=_0x1127();let _0x1a3da2=_0x112709[_0x34f5e8];return _0x1a3da2;}function C(_0x33001b,_0x4c1344,_0x5b7053,_0x4a7f2d=!0x0){const _0x183667=_0x8849ec;let _0x563079=S(_0x33001b,_0x4c1344),_0x5948c8=_0x5b7053['t'](_0x563079);return _0x4a7f2d?_0x33001b===t[_0x183667(0x10a)][_0x183667(0x19c)]&&_0x4c1344===t['MCPConnectionError'][_0x183667(0x169)]?_0x5948c8+'\x20-\x20'+_0x5b7053['t'](_0x183667(0x97)):_0x33001b===t[_0x183667(0x10a)]['CONNECTED']?''+_0x5948c8:_0x33001b===t[_0x183667(0x10a)][_0x183667(0x19c)]||_0x33001b===t[_0x183667(0x10a)][_0x183667(0x179)]?_0x5948c8+_0x183667(0x139)+_0x5b7053['t'](_0x183667(0x1c3)):_0x5948c8:_0x5948c8;}function w(_0x35ecc5){const _0x338329=_0x8849ec;switch(_0x35ecc5){case t['MCPConnectionStatus'][_0x338329(0x1a7)]:return _0x338329(0x182);case t['MCPConnectionStatus'][_0x338329(0x14d)]:case t[_0x338329(0x10a)]['RETRYING']:return'univer-text-yellow-500';case t[_0x338329(0x10a)][_0x338329(0x179)]:case t[_0x338329(0x10a)][_0x338329(0x19c)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function T(_0x52b3a4){const _0xa77edc=_0x8849ec;let {status$:_0x72f62b,error$:_0x43c856,onConfigure:_0x330c5e,showClickable:_0x48a0fe=!0x0}=_0x52b3a4,_0x5ac735=(0x0,r[_0xa77edc(0x1ad)])(_0x72f62b,t['MCPConnectionStatus'][_0xa77edc(0x19c)]),_0x3473df=(0x0,r['useObservable'])(_0x43c856,t['MCPConnectionError']['NONE']),_0x480bb8=(0x0,r[_0xa77edc(0x1b2)])(e[_0xa77edc(0x8b)]),_0x591b7f=_0x5ac735===t[_0xa77edc(0x10a)][_0xa77edc(0x1a7)];_0x5ac735===t[_0xa77edc(0x10a)][_0xa77edc(0x14d)]||t[_0xa77edc(0x10a)][_0xa77edc(0x181)];let _0x31b31d=_0x480bb8['t'](S(_0x5ac735,_0x3473df)),_0x57f9a8=C(_0x5ac735,_0x3473df,_0x480bb8,_0x48a0fe),_0x1a8b4b=w(_0x5ac735),_0x47831d=_0x591b7f?(0x0,s['jsx'])(a[_0xa77edc(0x167)],{}):(0x0,s[_0xa77edc(0x1c8)])(a[_0xa77edc(0x122)],{}),_0x433236=(0x0,o[_0xa77edc(0x12b)])(()=>{_0x48a0fe&&_0x330c5e&&_0x330c5e();},[_0x48a0fe,_0x330c5e]);function _0x309be3(){const _0x1407d8=_0xa77edc;return(0x0,s['jsxs'])(_0x1407d8(0x193),{'className':(0x0,n[_0x1407d8(0xe7)])('univer-flex\x20univer-items-center',_0x48a0fe&&_0x330c5e&&_0x1407d8(0xeb)),'role':_0x1407d8(0x147),'onClick':_0x48a0fe&&_0x330c5e?_0x433236:void 0x0,'children':[(0x0,s[_0x1407d8(0x1c8)])(_0x1407d8(0x193),{'className':(0x0,n['clsx'])(_0x1407d8(0x89),_0x1a8b4b),'children':_0x47831d}),(0x0,s[_0x1407d8(0x1c8)])(_0x1407d8(0x193),{'className':_0x1407d8(0x1c9),'children':_0x31b31d})]});}return(0x0,s[_0xa77edc(0x1c8)])(n[_0xa77edc(0x153)],{'title':_0x57f9a8,'placement':_0xa77edc(0x16a),'children':_0x309be3()});}let E=class extends e['Disposable']{constructor(_0x5270dc,_0xc80bf6,_0x327008,_0x2cae46){const _0x31a952=_0x8849ec;super(),this['_injector']=_0x5270dc,this['_connectionController']=_0xc80bf6,this[_0x31a952(0xfe)]=_0x327008,this[_0x31a952(0x129)]=_0x2cae46,this[_0x31a952(0x1a8)](),this[_0x31a952(0x15f)]();}[_0x8849ec(0x1a8)](){const _0x292973=_0x8849ec;let _0x195ed0=this[_0x292973(0x129)][_0x292973(0x10b)](u);_0x195ed0!=null&&_0x195ed0['showDeveloperTools']&&(this[_0x292973(0x9a)][_0x292973(0x109)]=!0x1);}[_0x8849ec(0x15f)](){const _0x4493a0=_0x8849ec;let _0x369fa0=this[_0x4493a0(0x129)][_0x4493a0(0x10b)](u);(_0x369fa0==null?void 0x0:_0x369fa0[_0x4493a0(0x9f)])!==!0x1&&this[_0x4493a0(0x110)](this[_0x4493a0(0xfe)][_0x4493a0(0xdf)](r['BuiltInUIPart'][_0x4493a0(0x1d5)],()=>{const _0x1b389c=_0x4493a0;var _0x23d744;return(0x0,r[_0x1b389c(0x154)])(D({'status$':this[_0x1b389c(0x9a)][_0x1b389c(0x1b5)],'error$':this[_0x1b389c(0x9a)][_0x1b389c(0x15a)],'onConfigure':()=>this[_0x1b389c(0x11d)](),'showClickable':(_0x23d744=_0x369fa0==null?void 0x0:_0x369fa0[_0x1b389c(0x15c)])==null?!0x1:_0x23d744}),this['_injector']);}));}[_0x8849ec(0x11d)](){const _0x2b4579=_0x8849ec;this[_0x2b4579(0x16b)][_0x2b4579(0x1b0)](b)['showConfigPanel']();}};E=_([g(0x0,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x16e)])),g(0x1,(0x0,e[_0x8849ec(0x138)])(t[_0x8849ec(0x125)])),g(0x2,r[_0x8849ec(0x130)]),g(0x3,e[_0x8849ec(0x1d2)])],E);function D(_0x250dc9){let {status$:_0x33c394,error$:_0x1e0018,onConfigure:_0x6fa27d,showClickable:_0x2f7fa5}=_0x250dc9;return function(){const _0x21fdb1=_0x1a3d;return(0x0,s[_0x21fdb1(0x1c8)])(T,{'status$':_0x33c394,'error$':_0x1e0018,'onConfigure':_0x6fa27d,'showClickable':_0x2f7fa5});};}function O(_0x248a55){const _0x3c21af=_0x8849ec;return{'id':x['id'],'type':r['MenuItemType'][_0x3c21af(0x148)],'icon':_0x3c21af(0x136),'title':'mcpConfig.title','tooltip':_0x3c21af(0x1a0)};}const k={[r[_0x8849ec(0x141)][_0x8849ec(0x1c5)]]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e[_0x8849ec(0xd7)]{constructor(_0x161f5f,_0x1fa3ca){const _0x17dca6=_0x8849ec;super(),this['_commandService']=_0x161f5f,this[_0x17dca6(0x13f)]=_0x1fa3ca,this[_0x17dca6(0x18c)](),this[_0x17dca6(0x8f)]();}[_0x8849ec(0x18c)](){const _0x128ed7=_0x8849ec;[x][_0x128ed7(0x87)](_0x26ae4c=>{const _0x5494bd=_0x128ed7;this[_0x5494bd(0x110)](this['_commandService'][_0x5494bd(0xcb)](_0x26ae4c));});}['_initializeMenus'](){const _0x5c2c1f=_0x8849ec;this[_0x5c2c1f(0x13f)][_0x5c2c1f(0xc3)](k);}};A=_([g(0x0,e[_0x8849ec(0xf0)]),g(0x1,r[_0x8849ec(0x142)])],A);const j={'mcpStatus':{'disconnected':_0x8849ec(0xc1),'connecting':_0x8849ec(0x1ca),'connected':_0x8849ec(0xb3),'failed':_0x8849ec(0x197),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x8849ec(0x92),'networkError':_0x8849ec(0xef),'maxRetriesExceeded':_0x8849ec(0x143),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x8849ec(0x10d)},'mcpConfig':{'title':_0x8849ec(0xea),'description':_0x8849ec(0x11f),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x8849ec(0x1bf),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x8849ec(0x188),'mcpClientConfig':_0x8849ec(0x188),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x8849ec(0x146),'configStep2':_0x8849ec(0xec),'configStep3':_0x8849ec(0x14e),'sessionId':_0x8849ec(0x8d),'sessionIdDescription':_0x8849ec(0x150),'authorizationDescription':_0x8849ec(0x163),'configParameters':_0x8849ec(0xfb),'maxRetries':_0x8849ec(0x1ce),'save':_0x8849ec(0x1d0),'saving':_0x8849ec(0x1a5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x8849ec(0xee),'configError':_0x8849ec(0x1be),'apiApplyInfo':{'title':_0x8849ec(0x1ba),'description':_0x8849ec(0x1bc),'univerAiLabel':_0x8849ec(0xe8),'getStarted':_0x8849ec(0x104)},'validation':{'apiKeyRequired':_0x8849ec(0x116),'apiKeyTooShort':_0x8849ec(0x14a),'invalidConfig':_0x8849ec(0x9d),'invalidApiKey':_0x8849ec(0x102)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x8849ec(0xed),'connected':'Connected','failed':_0x8849ec(0xd1),'retrying':_0x8849ec(0x13d)},'connectionError':{'unauthorized':_0x8849ec(0x1a6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x8849ec(0x99)}}},M={'mcpStatus':{'disconnected':_0x8849ec(0x11e),'connecting':_0x8849ec(0x161),'connected':_0x8849ec(0x107),'failed':_0x8849ec(0x9b),'retrying':_0x8849ec(0x117),'unknown':'MCP\x20状态未知','unauthorized':_0x8849ec(0x144),'sessionOccupied':_0x8849ec(0xd2),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x8849ec(0x10f),'clickToConnect':_0x8849ec(0x157),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x8849ec(0x84),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x8849ec(0xe1),'apiKeyHint':_0x8849ec(0x166),'enableAuth':'启用身份验证','enableAuthHint':_0x8849ec(0x93),'connectionInfo':_0x8849ec(0xba),'mcpClientConfig':_0x8849ec(0xba),'configInstructions':_0x8849ec(0xa2),'configStepTitle':_0x8849ec(0x15e),'configStep1':_0x8849ec(0x183),'configStep2':_0x8849ec(0x103),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x8849ec(0xff),'sessionIdDescription':_0x8849ec(0x145),'authorizationDescription':_0x8849ec(0x105),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':'保存配置','saving':_0x8849ec(0x120),'note1':_0x8849ec(0x1af),'note2':_0x8849ec(0x121),'configSaved':_0x8849ec(0x19b),'configError':_0x8849ec(0x80),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x8849ec(0x19d),'univerAiLabel':_0x8849ec(0x176),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x8849ec(0x115),'apiKeyTooShort':_0x8849ec(0xcf),'invalidConfig':'配置无效','invalidApiKey':_0x8849ec(0xc9)},'connectionStatus':{'disconnected':_0x8849ec(0x8a),'connecting':'连接中...','connected':_0x8849ec(0xaa),'failed':_0x8849ec(0x172),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x8849ec(0x88),'sessionOccupied':_0x8849ec(0xf4),'networkError':_0x8849ec(0x171),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var N='@univerjs-pro/mcp-ui',P='0.20.1';let F=class extends e[_0x8849ec(0x198)]{constructor(_0xa61f51=d,_0x584c75,_0x39c547,_0x2b9256,_0x157f64,_0xf61ef1){const _0x443c84=_0x8849ec;super(),this[_0x443c84(0xdd)]=_0xa61f51,this['_injector']=_0x584c75,this[_0x443c84(0x129)]=_0x39c547,this['_uiPartsService']=_0x2b9256,this[_0x443c84(0xe0)]=_0x157f64,this[_0x443c84(0x16c)]=_0xf61ef1;let {..._0x21bc31}=(0x0,e['merge'])({},d,this[_0x443c84(0xdd)]);this[_0x443c84(0x129)][_0x443c84(0xf7)](u,_0x21bc31);}async[_0x8849ec(0x196)](){const _0x4175de=_0x8849ec;let _0x5bace6=[[E],[b],[A]];this[_0x4175de(0x16b)][_0x4175de(0x10e)](c['ISocketService'])||_0x5bace6[_0x4175de(0xb8)]([c['ISocketService'],{'useClass':c[_0x4175de(0x19a)]}]),_0x5bace6[_0x4175de(0x87)](_0xb5af6c=>this['_injector'][_0x4175de(0x1c0)](_0xb5af6c)),this[_0x4175de(0x16b)][_0x4175de(0x1b0)](E),this['_injector'][_0x4175de(0x1b0)](b),this[_0x4175de(0x16b)][_0x4175de(0x1b0)](A);}};h(F,_0x8849ec(0x149),_0x8849ec(0xcc)),h(F,'packageName',N),h(F,_0x8849ec(0x17c),P),F=_([(0x0,e[_0x8849ec(0x151)])(t['UniverMCPPlugin']),g(0x1,(0x0,e[_0x8849ec(0x138)])(e['Injector'])),g(0x2,e['IConfigService']),g(0x3,r[_0x8849ec(0x130)]),g(0x4,e['ILocalStorageService']),g(0x5,(0x0,e['Inject'])(e[_0x8849ec(0x8b)]))],F),exports[_0x8849ec(0xd0)]=l,Object[_0x8849ec(0x1b4)](exports,'MCPConfigUIController',{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x8849ec(0x194),{'enumerable':!0x0,'get':function(){return E;}}),exports[_0x8849ec(0x19f)]=T,Object['defineProperty'](exports,_0x8849ec(0xa7),{'enumerable':!0x0,'get':function(){return A;}}),exports['OpenMCPConfigPanelCommand']=x,Object['defineProperty'](exports,_0x8849ec(0x112),{'enumerable':!0x0,'get':function(){return F;}}),exports['enUS']=j,exports[_0x8849ec(0x15d)]=M;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4ea1(){const _0x21abab=['Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','50712jwOPeu','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','5772672crVdbI','Saving...','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Configuration','API\x20Key','MCP\x20Unknown\x20Status','1KgAipg','Save\x20Configuration','94533vDqDBg','MCP\x20Connection\x20Failed','Configuration\x20saved\x20successfully','2954EsfJIs','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20with\x20Bearer\x20prefix.','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connecting...','7751711sXSGxb','MCP\x20Retrying...','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','158378oTMvEn','5704cZvdDW','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','35jCBhJl','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2371450LpJoJw','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','44nYmXLp','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','What\x20is\x20API\x20Key?'];_0x4ea1=function(){return _0x21abab;};return _0x4ea1();}function _0xec7b(_0x422fc4,_0xeb3c08){_0x422fc4=_0x422fc4-0x16b;const _0x4ea1fc=_0x4ea1();let _0xec7bea=_0x4ea1fc[_0x422fc4];return _0xec7bea;}const _0xf4b343=_0xec7b;(function(_0x470ed9,_0x3ea0e5){const _0x66cfc=_0xec7b,_0x4fda4f=_0x470ed9();while(!![]){try{const _0x1b3097=-parseInt(_0x66cfc(0x172))/0x1*(-parseInt(_0x66cfc(0x183))/0x2)+parseInt(_0x66cfc(0x174))/0x3*(parseInt(_0x66cfc(0x191))/0x4)+-parseInt(_0x66cfc(0x187))/0x5*(-parseInt(_0x66cfc(0x199))/0x6)+-parseInt(_0x66cfc(0x177))/0x7*(parseInt(_0x66cfc(0x184))/0x8)+parseInt(_0x66cfc(0x19c))/0x9+parseInt(_0x66cfc(0x18c))/0xa+-parseInt(_0x66cfc(0x17e))/0xb;if(_0x1b3097===_0x3ea0e5)break;else _0x4fda4f['push'](_0x4fda4f['shift']());}catch(_0x578071){_0x4fda4f['push'](_0x4fda4f['shift']());}}}(_0x4ea1,0x57634));const e={'mcpStatus':{'disconnected':_0xf4b343(0x19a),'connecting':_0xf4b343(0x17d),'connected':_0xf4b343(0x1a0),'failed':_0xf4b343(0x175),'retrying':_0xf4b343(0x17f),'unknown':_0xf4b343(0x171),'unauthorized':_0xf4b343(0x16d),'sessionOccupied':_0xf4b343(0x18d),'networkError':_0xf4b343(0x18e),'maxRetriesExceeded':_0xf4b343(0x19b),'clickToConnect':_0xf4b343(0x197),'clickToConfigure':_0xf4b343(0x18a)},'mcpConfig':{'title':_0xf4b343(0x16f),'description':_0xf4b343(0x185),'apiKey':_0xf4b343(0x170),'apiKeyPlaceholder':_0xf4b343(0x188),'apiKeyHint':_0xf4b343(0x198),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xf4b343(0x16c),'connectionInfo':_0xf4b343(0x16b),'mcpClientConfig':_0xf4b343(0x16b),'configInstructions':_0xf4b343(0x186),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xf4b343(0x194),'configStep2':_0xf4b343(0x182),'configStep3':_0xf4b343(0x17c),'sessionId':'Session\x20ID','sessionIdDescription':_0xf4b343(0x16e),'authorizationDescription':_0xf4b343(0x17a),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xf4b343(0x192),'save':_0xf4b343(0x173),'saving':_0xf4b343(0x19d),'note1':_0xf4b343(0x19f),'note2':_0xf4b343(0x179),'configSaved':_0xf4b343(0x176),'configError':_0xf4b343(0x178),'apiApplyInfo':{'title':_0xf4b343(0x196),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0xf4b343(0x17b),'getStarted':_0xf4b343(0x189)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xf4b343(0x18f),'invalidConfig':_0xf4b343(0x19e),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xf4b343(0x180),'connected':'Connected','failed':_0xf4b343(0x195),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0xf4b343(0x18b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xf4b343(0x181),'maxRetriesExceeded':_0xf4b343(0x193)}}};module[_0xf4b343(0x190)]=e;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3793da=_0x4eae;(function(_0x46c324,_0x46b059){const _0x1bc745=_0x4eae,_0x55abc1=_0x46c324();while(!![]){try{const _0x22e014=parseInt(_0x1bc745(0x142))/0x1*(-parseInt(_0x1bc745(0x13d))/0x2)+parseInt(_0x1bc745(0x12a))/0x3*(parseInt(_0x1bc745(0x158))/0x4)+parseInt(_0x1bc745(0x141))/0x5*(-parseInt(_0x1bc745(0x136))/0x6)+-parseInt(_0x1bc745(0x129))/0x7+-parseInt(_0x1bc745(0x14c))/0x8+parseInt(_0x1bc745(0x154))/0x9*(-parseInt(_0x1bc745(0x15a))/0xa)+parseInt(_0x1bc745(0x14b))/0xb;if(_0x22e014===_0x46b059)break;else _0x55abc1['push'](_0x55abc1['shift']());}catch(_0x137b38){_0x55abc1['push'](_0x55abc1['shift']());}}}(_0x295b,0xc374e));function _0x4eae(_0x56c379,_0x15380c){_0x56c379=_0x56c379-0x129;const _0x295b15=_0x295b();let _0x4eae54=_0x295b15[_0x56c379];return _0x4eae54;}const e={'mcpStatus':{'disconnected':_0x3793da(0x159),'connecting':'MCP\x20Connecting...','connected':_0x3793da(0x14f),'failed':_0x3793da(0x13c),'retrying':'MCP\x20Retrying...','unknown':_0x3793da(0x153),'unauthorized':_0x3793da(0x149),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3793da(0x12f),'maxRetriesExceeded':_0x3793da(0x143),'clickToConnect':_0x3793da(0x13b),'clickToConfigure':_0x3793da(0x13e)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3793da(0x148),'apiKey':_0x3793da(0x15b),'apiKeyPlaceholder':_0x3793da(0x144),'apiKeyHint':_0x3793da(0x12c),'enableAuth':_0x3793da(0x140),'enableAuthHint':_0x3793da(0x146),'connectionInfo':_0x3793da(0x145),'mcpClientConfig':_0x3793da(0x145),'configInstructions':_0x3793da(0x152),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3793da(0x132),'configStep2':_0x3793da(0x133),'configStep3':_0x3793da(0x157),'sessionId':_0x3793da(0x14d),'sessionIdDescription':_0x3793da(0x134),'authorizationDescription':_0x3793da(0x12b),'configParameters':_0x3793da(0x137),'maxRetries':_0x3793da(0x13f),'save':'Save\x20Configuration','saving':_0x3793da(0x138),'note1':_0x3793da(0x130),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3793da(0x131),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3793da(0x13a),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x3793da(0x12d),'getStarted':_0x3793da(0x14a)},'validation':{'apiKeyRequired':_0x3793da(0x14e),'apiKeyTooShort':_0x3793da(0x139),'invalidConfig':_0x3793da(0x155),'invalidApiKey':_0x3793da(0x150)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x3793da(0x151),'retrying':_0x3793da(0x156)},'connectionError':{'unauthorized':_0x3793da(0x135),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3793da(0x12e),'maxRetriesExceeded':_0x3793da(0x147)}}};function _0x295b(){const _0x23ec21=['10NhvKNR','API\x20Key','2937249pqZoNd','993IQfGxk','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','8214906FxGtHX','Configuration\x20Parameters:','Saving...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Click\x20to\x20connect\x20MCP','MCP\x20Connection\x20Failed','814tnWqMf','Click\x20to\x20configure\x20MCP','Max\x20Retries','Enable\x20Authentication','5KaKYsN','2503Mxgxxi','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','31030329Lvolvq','1412064UthzLJ','Session\x20ID','API\x20key\x20is\x20required','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','5093217nEJHbH','Invalid\x20configuration','Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','18484ArrxOD','MCP\x20Disconnected'];_0x295b=function(){return _0x23ec21;};return _0x295b();}module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4f20(_0x42612b,_0x4723f0){_0x42612b=_0x42612b-0x150;const _0x34b22d=_0x34b2();let _0x4f203d=_0x34b22d[_0x42612b];return _0x4f203d;}const _0xac337d=_0x4f20;(function(_0x2c7ede,_0x23c529){const _0x6d8f28=_0x4f20,_0x5349ee=_0x2c7ede();while(!![]){try{const _0x3078be=parseInt(_0x6d8f28(0x171))/0x1*(parseInt(_0x6d8f28(0x16a))/0x2)+parseInt(_0x6d8f28(0x16d))/0x3+-parseInt(_0x6d8f28(0x168))/0x4+parseInt(_0x6d8f28(0x163))/0x5+parseInt(_0x6d8f28(0x15d))/0x6+-parseInt(_0x6d8f28(0x155))/0x7*(-parseInt(_0x6d8f28(0x158))/0x8)+-parseInt(_0x6d8f28(0x172))/0x9*(parseInt(_0x6d8f28(0x173))/0xa);if(_0x3078be===_0x23c529)break;else _0x5349ee['push'](_0x5349ee['shift']());}catch(_0xb2e127){_0x5349ee['push'](_0x5349ee['shift']());}}}(_0x34b2,0xaa404));const e={'mcpStatus':{'disconnected':_0xac337d(0x161),'connecting':_0xac337d(0x164),'connected':_0xac337d(0x175),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0xac337d(0x180),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xac337d(0x165),'networkError':_0xac337d(0x16e),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xac337d(0x16f)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xac337d(0x17b),'apiKey':_0xac337d(0x15a),'apiKeyPlaceholder':_0xac337d(0x166),'apiKeyHint':_0xac337d(0x15e),'enableAuth':_0xac337d(0x150),'enableAuthHint':_0xac337d(0x17a),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0xac337d(0x153),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xac337d(0x177),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0xac337d(0x176),'configStep3':_0xac337d(0x16c),'sessionId':_0xac337d(0x157),'sessionIdDescription':_0xac337d(0x15f),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xac337d(0x178),'maxRetries':_0xac337d(0x182),'save':_0xac337d(0x15c),'saving':_0xac337d(0x17c),'note1':_0xac337d(0x159),'note2':_0xac337d(0x17f),'configSaved':_0xac337d(0x16b),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0xac337d(0x174),'description':_0xac337d(0x17e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xac337d(0x151)},'validation':{'apiKeyRequired':_0xac337d(0x179),'apiKeyTooShort':_0xac337d(0x170),'invalidConfig':_0xac337d(0x152),'invalidApiKey':_0xac337d(0x154)},'connectionStatus':{'disconnected':_0xac337d(0x156),'connecting':_0xac337d(0x15b),'connected':_0xac337d(0x162),'failed':_0xac337d(0x17d),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0xac337d(0x181),'sessionOccupied':_0xac337d(0x160),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xac337d(0x167)}}};module[_0xac337d(0x169)]=e;function _0x34b2(){const _0x22b0b0=['Max\x20Retries','Enable\x20Authentication','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','7bdlNRT','Disconnected','Session\x20ID','9198736GfGOyi','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','Connecting...','Save\x20Configuration','7405032XBnIXg','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','Connected','3932980MZXZmJ','MCP\x20Connecting...','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1782228xDRHco','exports','62YrBkgP','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1487073ulJzFX','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3417mHCGRj','27xhAJYJ','8764410qJbvRi','What\x20is\x20API\x20Key?','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Steps:','Configuration\x20Parameters:','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Saving...','Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x34b2=function(){return _0x22b0b0;};return _0x34b2();}
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5072(_0x31cae7,_0x4479f2){_0x31cae7=_0x31cae7-0x1e5;const _0x5e5c53=_0x5e5c();let _0x5072dd=_0x5e5c53[_0x31cae7];return _0x5072dd;}function _0x5e5c(){const _0x1008ef=['Univer\x20AI\x20Console','MCP\x20Connecting...','API\x20Key','Retrying...','405eeIJKD','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','162956LzqAjK','Configuration\x20saved\x20successfully','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','22964eOMlCZ','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','4003376cZzkYm','MCP\x20Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20configuration','Click\x20to\x20configure\x20MCP','1848511HWhCuK','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','117027qaqhDl','Enable\x20authentication\x20for\x20secure\x20connections','7160382VPytxR','Configuration\x20Parameters:','Disconnected','MCP\x20Client\x20Configuration','Enable\x20Authentication','2040JHwkUT','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','Connecting...','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','What\x20is\x20API\x20Key?','125418UrHLgz','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','68BtFTCY','Session\x20ID','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key'];_0x5e5c=function(){return _0x1008ef;};return _0x5e5c();}const _0x2a6e24=_0x5072;(function(_0x291b8a,_0x3bad76){const _0x745db3=_0x5072,_0x9b3f00=_0x291b8a();while(!![]){try{const _0x4a61e9=parseInt(_0x745db3(0x206))/0x1+-parseInt(_0x745db3(0x1f9))/0x2*(-parseInt(_0x745db3(0x1f3))/0x3)+-parseInt(_0x745db3(0x20a))/0x4*(-parseInt(_0x745db3(0x202))/0x5)+parseInt(_0x745db3(0x217))/0x6+-parseInt(_0x745db3(0x212))/0x7+parseInt(_0x745db3(0x20d))/0x8+parseInt(_0x745db3(0x215))/0x9*(-parseInt(_0x745db3(0x1e9))/0xa);if(_0x4a61e9===_0x3bad76)break;else _0x9b3f00['push'](_0x9b3f00['shift']());}catch(_0x1941f0){_0x9b3f00['push'](_0x9b3f00['shift']());}}}(_0x5e5c,0xc9c93));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2a6e24(0x1ff),'connected':_0x2a6e24(0x20e),'failed':_0x2a6e24(0x1f5),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2a6e24(0x1ec),'clickToConnect':_0x2a6e24(0x208),'clickToConfigure':_0x2a6e24(0x211)},'mcpConfig':{'title':_0x2a6e24(0x1ea),'description':_0x2a6e24(0x209),'apiKey':_0x2a6e24(0x200),'apiKeyPlaceholder':_0x2a6e24(0x1fd),'apiKeyHint':_0x2a6e24(0x1f7),'enableAuth':_0x2a6e24(0x1e8),'enableAuthHint':_0x2a6e24(0x216),'connectionInfo':_0x2a6e24(0x1e7),'mcpClientConfig':_0x2a6e24(0x1e7),'configInstructions':_0x2a6e24(0x1f4),'configStepTitle':_0x2a6e24(0x1f1),'configStep1':_0x2a6e24(0x20c),'configStep2':_0x2a6e24(0x214),'configStep3':_0x2a6e24(0x20f),'sessionId':_0x2a6e24(0x1fa),'sessionIdDescription':_0x2a6e24(0x1f0),'authorizationDescription':_0x2a6e24(0x1ed),'configParameters':_0x2a6e24(0x1e5),'maxRetries':_0x2a6e24(0x1f6),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x2a6e24(0x1eb),'note2':_0x2a6e24(0x1f8),'configSaved':_0x2a6e24(0x207),'configError':_0x2a6e24(0x1ef),'apiApplyInfo':{'title':_0x2a6e24(0x1f2),'description':_0x2a6e24(0x205),'univerAiLabel':_0x2a6e24(0x1fe),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2a6e24(0x20b),'invalidConfig':_0x2a6e24(0x210),'invalidApiKey':_0x2a6e24(0x1fc)},'connectionStatus':{'disconnected':_0x2a6e24(0x1e6),'connecting':_0x2a6e24(0x1ee),'connected':_0x2a6e24(0x1fb),'failed':'Connection\x20Failed','retrying':_0x2a6e24(0x201)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2a6e24(0x213),'networkError':_0x2a6e24(0x203),'maxRetriesExceeded':_0x2a6e24(0x204)}}};module['exports']=e;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5d52(){const _0x3798ac=['MCP\x20Connected','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','Saving...','192591OciUcg','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','8VJGDLY','650281KMpQuW','Configuration\x20Steps:','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','MCP\x20Configuration','Univer\x20AI\x20Console','2XlKPcv','Copy\x20the\x20JSON\x20configuration\x20below','5768GZxEeg','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','Session\x20ID','Enable\x20Authentication','2286IOVaMp','API\x20Key','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','260CEAptD','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Max\x20Retries\x20Exceeded','1157244MeSsMr','Enter\x20your\x20API\x20key','Connected','11438ynRnoT','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','701583vewgly','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','16905rmEEiL','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1070892TIWsej'];_0x5d52=function(){return _0x3798ac;};return _0x5d52();}const _0x2c6479=_0x582b;function _0x582b(_0x21f2c3,_0x1f7084){_0x21f2c3=_0x21f2c3-0x129;const _0x5d52b0=_0x5d52();let _0x582bc8=_0x5d52b0[_0x21f2c3];return _0x582bc8;}(function(_0x265b3f,_0x433cf8){const _0x32ff78=_0x582b,_0x7f23fc=_0x265b3f();while(!![]){try{const _0x46cb01=-parseInt(_0x32ff78(0x150))/0x1*(-parseInt(_0x32ff78(0x157))/0x2)+parseInt(_0x32ff78(0x13e))/0x3*(parseInt(_0x32ff78(0x14f))/0x4)+parseInt(_0x32ff78(0x141))/0x5*(parseInt(_0x32ff78(0x15e))/0x6)+parseInt(_0x32ff78(0x134))/0x7*(-parseInt(_0x32ff78(0x159))/0x8)+parseInt(_0x32ff78(0x14b))/0x9*(-parseInt(_0x32ff78(0x12e))/0xa)+-parseInt(_0x32ff78(0x131))/0xb+parseInt(_0x32ff78(0x145))/0xc;if(_0x46cb01===_0x433cf8)break;else _0x7f23fc['push'](_0x7f23fc['shift']());}catch(_0x48db82){_0x7f23fc['push'](_0x7f23fc['shift']());}}}(_0x5d52,0xa0161));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2c6479(0x147),'connected':_0x2c6479(0x146),'failed':_0x2c6479(0x129),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2c6479(0x12d),'sessionOccupied':_0x2c6479(0x153),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2c6479(0x130),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2c6479(0x140)},'mcpConfig':{'title':_0x2c6479(0x155),'description':_0x2c6479(0x14d),'apiKey':_0x2c6479(0x15f),'apiKeyPlaceholder':_0x2c6479(0x132),'apiKeyHint':_0x2c6479(0x13f),'enableAuth':_0x2c6479(0x15d),'enableAuthHint':_0x2c6479(0x136),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2c6479(0x154),'configInstructions':_0x2c6479(0x14e),'configStepTitle':_0x2c6479(0x151),'configStep1':_0x2c6479(0x158),'configStep2':_0x2c6479(0x13d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2c6479(0x15c),'sessionIdDescription':_0x2c6479(0x144),'authorizationDescription':_0x2c6479(0x137),'configParameters':_0x2c6479(0x12a),'maxRetries':_0x2c6479(0x152),'save':_0x2c6479(0x142),'saving':_0x2c6479(0x14a),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2c6479(0x12c),'configSaved':_0x2c6479(0x13b),'configError':_0x2c6479(0x13a),'apiApplyInfo':{'title':_0x2c6479(0x138),'description':_0x2c6479(0x12f),'univerAiLabel':_0x2c6479(0x156),'getStarted':_0x2c6479(0x143)},'validation':{'apiKeyRequired':_0x2c6479(0x14c),'apiKeyTooShort':_0x2c6479(0x139),'invalidConfig':_0x2c6479(0x149),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2c6479(0x15b),'connected':_0x2c6479(0x133),'failed':_0x2c6479(0x135),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2c6479(0x12b),'sessionOccupied':_0x2c6479(0x13c),'networkError':_0x2c6479(0x148),'maxRetriesExceeded':_0x2c6479(0x15a)}}};module['exports']=e;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4ebb(_0xfeacee,_0x521d82){_0xfeacee=_0xfeacee-0x1c2;const _0x3cd021=_0x3cd0();let _0x4ebb61=_0x3cd021[_0xfeacee];return _0x4ebb61;}const _0x4cdce9=_0x4ebb;(function(_0x1e3b07,_0x3f5fe9){const _0x504ae6=_0x4ebb,_0x1a04fd=_0x1e3b07();while(!![]){try{const _0x26f53b=parseInt(_0x504ae6(0x1da))/0x1*(-parseInt(_0x504ae6(0x1cd))/0x2)+-parseInt(_0x504ae6(0x1c4))/0x3*(parseInt(_0x504ae6(0x1e9))/0x4)+parseInt(_0x504ae6(0x1d1))/0x5*(parseInt(_0x504ae6(0x1c9))/0x6)+parseInt(_0x504ae6(0x1d3))/0x7+parseInt(_0x504ae6(0x1d6))/0x8+-parseInt(_0x504ae6(0x1cb))/0x9*(parseInt(_0x504ae6(0x1e3))/0xa)+parseInt(_0x504ae6(0x1cf))/0xb;if(_0x26f53b===_0x3f5fe9)break;else _0x1a04fd['push'](_0x1a04fd['shift']());}catch(_0x361e22){_0x1a04fd['push'](_0x1a04fd['shift']());}}}(_0x3cd0,0x43168));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':'MCP\x20接続中...','connected':'MCP\x20接続済み','failed':_0x4cdce9(0x1d4),'retrying':_0x4cdce9(0x1db),'unknown':'MCP\x20不明な状態','unauthorized':'MCP:\x20認証されていません','sessionOccupied':_0x4cdce9(0x1ca),'networkError':_0x4cdce9(0x1e1),'maxRetriesExceeded':_0x4cdce9(0x1e0),'clickToConnect':_0x4cdce9(0x1ea),'clickToConfigure':_0x4cdce9(0x1e5)},'mcpConfig':{'title':_0x4cdce9(0x1e8),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x4cdce9(0x1c6),'apiKeyPlaceholder':_0x4cdce9(0x1ec),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x4cdce9(0x1ee),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x4cdce9(0x1c8),'mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':'設定手順:','configStep1':_0x4cdce9(0x1c5),'configStep2':_0x4cdce9(0x1d2),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x4cdce9(0x1ce),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x4cdce9(0x1ed),'maxRetries':_0x4cdce9(0x1eb),'save':'設定を保存','saving':_0x4cdce9(0x1de),'note1':'設定の変更は直ちに有効になります','note2':_0x4cdce9(0x1d8),'configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':'APIキーとは?','description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x4cdce9(0x1e2),'getStarted':_0x4cdce9(0x1d7)},'validation':{'apiKeyRequired':_0x4cdce9(0x1d5),'apiKeyTooShort':_0x4cdce9(0x1dc),'invalidConfig':_0x4cdce9(0x1c7),'invalidApiKey':_0x4cdce9(0x1dd)},'connectionStatus':{'disconnected':_0x4cdce9(0x1e6),'connecting':_0x4cdce9(0x1e4),'connected':'接続済み','failed':_0x4cdce9(0x1c3),'retrying':_0x4cdce9(0x1d9)},'connectionError':{'unauthorized':_0x4cdce9(0x1df),'sessionOccupied':_0x4cdce9(0x1c2),'networkError':_0x4cdce9(0x1cc),'maxRetriesExceeded':_0x4cdce9(0x1e7)}}};module[_0x4cdce9(0x1d0)]=e;function _0x3cd0(){const _0x5e72f3=['セッションIDが現在使用中です。後でもう一度お試しください','接続失敗','39JJaTME','以下のJSON設定をコピー','APIキー','無効な設定','MCPクライアント設定','222TfMfgH','MCP:\x20セッションIDが使用中','3421737IiSPAo','ネットワーク接続エラー。インターネット接続を確認してください','361550oktuYH','セッションID','5924853yJKsiB','exports','11415AQjChf','MCPクライアントの設定ファイルに設定を追加','911771TzVsgw','MCP\x20接続失敗','APIキーは必須です','1936736ZMqgsg','数秒でAPIキーを取得','APIキーはローカルストレージに安全に保存されます','再試行中...','1vaLdao','MCP\x20再試行中...','APIキーは10文字以上である必要があります','無効なAPIキーです。キーが正しいか確認してください','保存中...','認証に失敗しました。APIキーを確認してください','MCP:\x20最大再試行回数を超過','MCP:\x20ネットワークエラー','Univer\x20AIコンソール','10mHUhsE','接続中...','クリックしてMCPを設定','未接続','最大再試行回数を超過しました。後でもう一度お試しください','MCP設定','49132tNjOEE','クリックしてMCPに接続','最大再試行回数','APIキーを入力してください','設定パラメータ:','認証を有効にする'];_0x3cd0=function(){return _0x5e72f3;};return _0x3cd0();}
|