@univerjs-pro/mcp-ui 0.22.1 → 0.23.0-insiders.20260522-e8f2a3b
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 +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x586328=_0x53f3;(function(_0x48d1f3,_0x4bf2b1){const _0x3530f5=_0x53f3,_0xd8338d=_0x48d1f3();while(!![]){try{const _0x34e526=-parseInt(_0x3530f5(0x1e3))/0x1*(parseInt(_0x3530f5(0x193))/0x2)+-parseInt(_0x3530f5(0x13b))/0x3+parseInt(_0x3530f5(0x1a6))/0x4+parseInt(_0x3530f5(0x123))/0x5*(-parseInt(_0x3530f5(0x1a9))/0x6)+-parseInt(_0x3530f5(0x12b))/0x7+-parseInt(_0x3530f5(0x1b6))/0x8+parseInt(_0x3530f5(0x1a7))/0x9;if(_0x34e526===_0x4bf2b1)break;else _0xd8338d['push'](_0xd8338d['shift']());}catch(_0x27c751){_0xd8338d['push'](_0xd8338d['shift']());}}}(_0x3712,0x6efbc),Object['defineProperty'](exports,Symbol[_0x586328(0x250)],{'value':_0x586328(0x1a0)}));let _univerjs_core=require('@univerjs/core'),_univerjs_pro_mcp=require('@univerjs-pro/mcp'),_univerjs_design=require('@univerjs/design'),_univerjs_ui=require('@univerjs/ui'),rxjs=require('rxjs'),_univerjs_icons=require('@univerjs/icons'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_network=require('@univerjs/network');function MCPConfigPanel(_0x3be4f5){const _0xebe275=_0x586328;var _0x2eacb5,_0x18a341;const {mcpCoreConfig:_0x16f4d4,onSave:_0x21be84,loading:loading=![],config:_0x4e903c,connectionStatus$:_0x5e4fc6,connectionError$:_0xe9682e,currentApiKey$:_0x31d225,currentSessionId$:_0x4024d8}=_0x3be4f5,_0x291a14=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0xebe275(0x171)]),_0x101084=(0x0,_univerjs_ui[_0xebe275(0x172)])(_0x5e4fc6,_univerjs_pro_mcp[_0xebe275(0x13c)][_0xebe275(0x1c9)]),_0x339fd0=(0x0,_univerjs_ui['useObservable'])(_0xe9682e,_univerjs_pro_mcp['MCPConnectionError'][_0xebe275(0x1de)]),_0x836206=(0x0,_univerjs_ui[_0xebe275(0x172)])(_0x4024d8,''),[_0x4eed9b,_0xfcc5aa]=(0x0,react['useState'])((0x0,_univerjs_ui[_0xebe275(0x172)])(_0x31d225,'')||''),_0x1e7a14=!![],_0x394ab2=_0x4e903c[_0xebe275(0x17e)]&&_0x16f4d4['mcpServerUrl']&&(_0x16f4d4['mcpServerUrl'][_0xebe275(0x200)](_0xebe275(0x10d))||_0x16f4d4[_0xebe275(0x216)][_0xebe275(0x200)](_0xebe275(0x140))),_0x29ec46=(_0x2eacb5=_0x16f4d4[_0xebe275(0x216)])===null||_0x2eacb5===void 0x0?void 0x0:_0x2eacb5[_0xebe275(0x200)](_0xebe275(0x10d)),_0x59a08a=(_0x18a341=_0x16f4d4[_0xebe275(0x216)])===null||_0x18a341===void 0x0?void 0x0:_0x18a341[_0xebe275(0x200)]('univer.ai'),_0x3db9a8=_0x29ec46?_0xebe275(0x1ae):_0xebe275(0x201),_0x471545=_0x4e903c[_0xebe275(0x17e)]&&(_0x29ec46||_0x59a08a),[_0x4c24ae,_0x2fdc05]=(0x0,react[_0xebe275(0x244)])(!_0x4eed9b[_0xebe275(0x106)]()),_0x3ea9ba=(_0x333b84,_0x1390c3)=>{const _0xc88963=_0xebe275;if(_0x1390c3===_univerjs_pro_mcp[_0xc88963(0x1a8)][_0xc88963(0x134)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x333b84){case _univerjs_pro_mcp[_0xc88963(0x13c)][_0xc88963(0x24c)]:return _0xc88963(0x23d);case _univerjs_pro_mcp['MCPConnectionStatus']['CONNECTING']:case _univerjs_pro_mcp['MCPConnectionStatus'][_0xc88963(0x109)]:return _0xc88963(0x128);case _univerjs_pro_mcp['MCPConnectionStatus'][_0xc88963(0x15a)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0xc88963(0x243);}},_0x342d20=(_0x5c7dc4,_0x2de70e)=>{const _0x5ea33e=_0xebe275;if(_0x2de70e===_univerjs_pro_mcp[_0x5ea33e(0x1a8)][_0x5ea33e(0x134)])return'univer-bg-red-500';switch(_0x5c7dc4){case _univerjs_pro_mcp['MCPConnectionStatus'][_0x5ea33e(0x24c)]:return _0x5ea33e(0x1e7);case _univerjs_pro_mcp[_0x5ea33e(0x13c)]['CONNECTING']:case _univerjs_pro_mcp[_0x5ea33e(0x13c)]['RETRYING']:return _0x5ea33e(0x154);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x5ea33e(0x15a)]:return'univer-bg-red-500';default:return _0x5ea33e(0x1f5);}},_0x3cf75d=_0x5ab272=>{const _0x2993d7=_0xebe275;switch(_0x5ab272){case _univerjs_pro_mcp[_0x2993d7(0x13c)]['CONNECTED']:return _0x291a14['t'](_0x2993d7(0x118));case _univerjs_pro_mcp[_0x2993d7(0x13c)][_0x2993d7(0x19f)]:return _0x291a14['t'](_0x2993d7(0x114));case _univerjs_pro_mcp[_0x2993d7(0x13c)][_0x2993d7(0x15a)]:return _0x291a14['t'](_0x2993d7(0x1ac));case _univerjs_pro_mcp[_0x2993d7(0x13c)][_0x2993d7(0x109)]:return _0x291a14['t'](_0x2993d7(0x12d));default:return _0x291a14['t'](_0x2993d7(0x213));}},_0x5a0e94=_0x26beb3=>{const _0x53bda7=_0xebe275;switch(_0x26beb3){case _univerjs_pro_mcp[_0x53bda7(0x1a8)][_0x53bda7(0x134)]:return _0x291a14['t']('mcpConfig.connectionError.unauthorized');case _univerjs_pro_mcp[_0x53bda7(0x1a8)][_0x53bda7(0x1d3)]:return _0x291a14['t'](_0x53bda7(0x16a));case _univerjs_pro_mcp[_0x53bda7(0x1a8)][_0x53bda7(0x120)]:return _0x291a14['t'](_0x53bda7(0x11d));case _univerjs_pro_mcp['MCPConnectionError'][_0x53bda7(0x1be)]:return _0x291a14['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x398d04=(0x0,react['useCallback'])(()=>{const _0x4e8794=_0xebe275;_0x21be84({..._0x16f4d4,'apiKey':_0x4eed9b[_0x4e8794(0x106)](),'enableAuth':_0x1e7a14});},[_0x16f4d4,_0x4eed9b,_0x1e7a14,_0x21be84]),_0x480f14=_0x4eed9b[_0xebe275(0x106)]()[_0xebe275(0x11b)]>0x0;return(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x10e),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('div',{'className':_0xebe275(0x224),'children':(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1db),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':'univer-text-white','children':'⚙'})}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'children':(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('p',{'className':_0xebe275(0x19b),'children':_0x291a14['t']('mcpConfig.description')})})]})}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':(0x0,_univerjs_design[_0xebe275(0x23c)])('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x3ea9ba(_0x101084,_0x339fd0)),'children':(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x20e),'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design['clsx'])(_0xebe275(0x18f),_0x342d20(_0x101084,_0x339fd0))}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x223),'children':_0x3cf75d(_0x101084)})]})}),_0x339fd0!==_univerjs_pro_mcp['MCPConnectionError'][_0xebe275(0x1de)]&&(_0x101084===_univerjs_pro_mcp[_0xebe275(0x13c)][_0xebe275(0x15a)]||_0x339fd0===_univerjs_pro_mcp['MCPConnectionError'][_0xebe275(0x134)])&&(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('div',{'className':_0xebe275(0x122),'children':(0x0,react_jsx_runtime['jsxs'])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x10b),'children':'⚠️'}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('p',{'className':_0xebe275(0x162),'children':_0x5a0e94(_0x339fd0)})]})})]}),(0x0,react_jsx_runtime['jsx'])(_0xebe275(0x1d4),{'className':_0xebe275(0x19c),'children':(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':_0xebe275(0x242),'children':[(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1cd),'children':[(0x0,react_jsx_runtime['jsxs'])('label',{'className':_0xebe275(0x148),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'children':'🔑'}),'\x20',_0x291a14['t'](_0xebe275(0x181)),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('span',{'className':_0xebe275(0x1af),'children':'*'}),_0x394ab2&&(0x0,react_jsx_runtime['jsx'])('a',{'className':_0xebe275(0x1d6),'title':_0x291a14['t'](_0xebe275(0x14f)),'role':'button','onClick':()=>_0x2fdc05(!![]),'children':(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_univerjs_icons[_0xebe275(0x18c)],{})})]}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_univerjs_design[_0xebe275(0x1da)],{'type':_0xebe275(0x161),'placeholder':_0x291a14['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x4eed9b,'disabled':loading,'autoComplete':'off','onChange':_0xfcc5aa}),(0x0,react_jsx_runtime['jsx'])('p',{'className':_0xebe275(0x227),'children':_0x291a14['t']('mcpConfig.apiKeyHint')})]}),_0x394ab2&&_0x4c24ae&&(0x0,react_jsx_runtime['jsxs'])(_0xebe275(0x1d4),{'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,react_jsx_runtime[_0xebe275(0x1ff)])('a',{'className':_0xebe275(0x1c3),'role':_0xebe275(0x247),'onClick':()=>_0x2fdc05(![]),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0xebe275(0x129)],{'className':_0xebe275(0x16d)})}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1c8),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1e6),'children':(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('span',{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':'univer-flex-1','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x291a14['t'](_0xebe275(0x14f))}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x291a14['t']('mcpConfig.apiApplyInfo.description')}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1e8),'children':_0x471545&&(0x0,react_jsx_runtime['jsxs'])('a',{'className':_0xebe275(0x1f6),'href':_0x3db9a8,'target':_0xebe275(0x13e),'rel':_0xebe275(0x1d9),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'children':'🤖'}),_0x291a14['t'](_0xebe275(0x176)),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x256),'children':'↗'})]})}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x150),'children':['✨','\x20',_0x291a14['t'](_0xebe275(0x105))]})]})]})]}),_0x4e903c[_0xebe275(0x17e)]&&(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0xebe275(0x1e1),'children':[(0x0,react_jsx_runtime['jsxs'])('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'children':'🔗'}),'\x20',_0x291a14['t'](_0xebe275(0x238))]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':'univer-space-y-4','children':[(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0xebe275(0x16b),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('p',{'className':_0xebe275(0x16f),'children':_0x291a14['t'](_0xebe275(0x15e))}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':_0xebe275(0x1cd),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x132),'children':_0x291a14['t']('mcpConfig.configStepTitle')}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':_0xebe275(0x1aa),'children':[(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x20e),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x1c7),'children':'1'}),_0x291a14['t']('mcpConfig.configStep1')]}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x20e),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x1c7),'children':'2'}),_0x291a14['t'](_0xebe275(0x1df))]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0xebe275(0x20e),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'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':'3'}),_0x291a14['t']('mcpConfig.configStep3')]})]})]})]}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':'univer-space-y-2','children':[(0x0,react_jsx_runtime['jsx'])(_0xebe275(0x1d4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x207),'children':(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('pre',{'className':_0xebe275(0x255),'children':JSON[_0xebe275(0x190)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x836206||_0xebe275(0x175)),'type':_0xebe275(0x1ea),'headers':{'Authorization':'Bearer\x20'+(_0x4eed9b||_0xebe275(0x212))}}}},null,0x2)})})]}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x16b),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x132),'children':_0x291a14['t'](_0xebe275(0x14a))}),(0x0,react_jsx_runtime['jsxs'])(_0xebe275(0x1d4),{'className':_0xebe275(0x1cd),'children':[(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1ed),'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':_0xebe275(0x110),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x291a14['t'](_0xebe275(0x1dc))})]})]}),(0x0,react_jsx_runtime['jsxs'])(_0xebe275(0x1d4),{'className':_0xebe275(0x1ed),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x169)}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x110),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('div',{'className':_0xebe275(0x11e),'children':_0xebe275(0x21b)}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x227),'children':_0x291a14['t'](_0xebe275(0x251))})]})]})]})]})]})]}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_univerjs_design[_0xebe275(0x1e0)],{'onClick':_0x398d04,'disabled':!_0x480f14||loading,'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':loading?(0x0,react_jsx_runtime['jsxs'])(_0xebe275(0x119),{'className':_0xebe275(0x20e),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'children':'⟲'}),_0x291a14['t'](_0xebe275(0x222))]}):(0x0,react_jsx_runtime['jsxs'])(_0xebe275(0x119),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_univerjs_icons[_0xebe275(0x116)],{}),_0x291a14['t'](_0xebe275(0x1f0))]})}),(0x0,react_jsx_runtime['jsx'])(_0xebe275(0x1d4),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':'univer-flex\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x220),'children':'💡'}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('div',{'className':_0xebe275(0x1b8),'children':'Configuration\x20Notes:'}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'children':['•',_0x291a14['t']('mcpConfig.note1')]}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'children':['•',_0x291a14['t'](_0xebe275(0x235))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY=_0x586328(0x215),configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0x2b1724){'@babel/helpers - typeof';const _0xc07396=_0x586328;return _typeof=_0xc07396(0x186)==typeof Symbol&&_0xc07396(0x22d)==typeof Symbol['iterator']?function(_0x41f450){return typeof _0x41f450;}:function(_0x338ac6){const _0x4605d5=_0xc07396;return _0x338ac6&&_0x4605d5(0x186)==typeof Symbol&&_0x338ac6[_0x4605d5(0x209)]===Symbol&&_0x338ac6!==Symbol[_0x4605d5(0x135)]?_0x4605d5(0x22d):typeof _0x338ac6;},_typeof(_0x2b1724);}function toPrimitive(_0x32883c,_0x59a274){const _0x2b3725=_0x586328;if(_0x2b3725(0x125)!=_typeof(_0x32883c)||!_0x32883c)return _0x32883c;var _0x523abf=_0x32883c[Symbol[_0x2b3725(0x204)]];if(void 0x0!==_0x523abf){var _0x36ddfa=_0x523abf[_0x2b3725(0x1c0)](_0x32883c,_0x59a274||'default');if(_0x2b3725(0x125)!=_typeof(_0x36ddfa))return _0x36ddfa;throw new TypeError(_0x2b3725(0x143));}return(_0x2b3725(0x11c)===_0x59a274?String:Number)(_0x32883c);}function _0x3712(){const _0x55aa31=['MCPStatusDisplay','\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','Inject','mcpConfig.note2','onStarting','点击连接\x20MCP','mcpConfig.connectionInfo','setItem','packageName','_loading$','clsx','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','IUIPartsService','Max\x20Retries','MCPUIMenuController','showStatus','univer-space-y-5','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','useState','next','mcpStatus.networkError','button','Success','value','复制以下\x20JSON\x20配置','_localStorageService','CONNECTED','showConfigPanel','connectionError$','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','toStringTag','mcpConfig.authorizationDescription','univer-text-gray-500','Injector','MCPConnectionUIController','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-text-gray-400','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_messageService','mcpConfig.apiApplyInfo.getStarted','trim','mergeMenu','MCP\x20Connection\x20Failed','RETRYING','MenuIcon','univer-shrink-0\x20univer-text-red-500','_initStatusComponent','univer.plus','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_loadStoredApiKey','univer-min-w-0\x20univer-flex-1','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpStatus.maxRetriesExceeded','removeItem','mcpConfig.connectionStatus.connecting','_registerComponent','CheckMarkIcon','IMenuManagerService','mcpConfig.connectionStatus.connected','span','_config$','length','string','mcpConfig.connectionError.networkError','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcp-config-dialog','NETWORK_ERROR','mcpStatus.failed','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','15QnOPIg','Configuration\x20Parameters:','object','MCP\x20Disconnected','mcpStatus.disconnected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','CloseIcon','forEach','4139842qINsYJ','0.22.1','mcpConfig.connectionStatus.retrying','mcpStatus.unauthorized','API\x20key\x20is\x20required','_uiPartsService','MCP\x20Configuration','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','保存中...','UNAUTHORIZED','prototype','_injector','MCP\x20已断开','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20会话\x20ID\x20已被占用','配置保存失败','1780164LtTbsV','MCPConnectionStatus','zhCN','_blank','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer.ai','MCP:\x20未授权','OffLineIcon','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','sessionId$','_apiKey$','Connecting...','配置更改将立即生效','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_connectionController','mcpConfig.configParameters','Click\x20to\x20configure\x20MCP','defineProperty','API\x20密钥不能为空','MCP:\x20Network\x20Error','mcpConfig.apiApplyInfo.title','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','disposeWithMe','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-bg-blue-500','Connected','MCPConnectionController','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','WebSocketService','BehaviorSubject','FAILED','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','close','register','mcpConfig.configInstructions','会话\x20ID\x20已被占用,请稍后再试','Bearer\x20','text','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','CommandType','OTHERS','mcpStatus.sessionOccupied','Tooltip','_commandService','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.connectionError.sessionOccupied','univer-space-y-3','__setCustomHeaders','univer-size-4','mcpStatus.clickToConfigure','univer-text-xs\x20univer-text-gray-600','registerComponent','LocaleService','useObservable','DependentOn','OnLineIcon','<SESSION_ID>','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20客户端配置','Plugin','ISocketService','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP\x20已连接','HEADER_MENU','API\x20密钥无效,请检查密钥是否正确','showDeveloperTools','_mcpCoreConfig$','超出最大重试次数,请稍后再试','mcpConfig.apiKey','Enable\x20authentication\x20for\x20secure\x20connections','connectionStatus$','error','_initializeCommands','function','getConfig','ICommandService','Get\x20your\x20API\x20key\x20in\x20seconds','subscribeConfigValue$','将配置添加到您的\x20MCP\x20客户端设置文件中','HelpIcon','apiKey','未连接','univer-size-2\x20univer-rounded-full','stringify','Copy\x20the\x20JSON\x20configuration\x20below','启用身份验证','209404StLHtm','Error','mcpConfig.title','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20连接中...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MessageType','Disposable','univer-text-sm\x20univer-text-gray-500','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','连接中...','decorate','CONNECTING','Module','_logService','连接失败','_initAutoConnect','connectInjector','权限验证失败,请检查您的\x20API\x20密钥','1244960oRQPTQ','16628301WDHVQY','MCPConnectionError','68790HGHWCL','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置步骤:','mcpConfig.connectionStatus.failed','mcpConfig.validation.invalidConfig','https://console.univer.plus','univer-text-red-500','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20配置','pluginName','ILocalStorageService','univer-mr-2\x20univer-flex\x20univer-text-xl','_createConfigPanelComponent','1367568Hwwtor','_localeService','univer-font-medium','Retrying...','配置保存成功','_initConfigSync','已连接','mcpStatus.connecting','MAX_RETRIES_EXCEEDED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','call','univer-text-yellow-500','univer-flex\x20univer-items-center','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','MCPConfigPanel','Save\x20Configuration','validateApiKey','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-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','DISCONNECTED','UniverMCPPlugin','mcp-ui.command.openConfigPanel','Session\x20ID','univer-space-y-2','MCP_PLUGIN_CONFIG_KEY','MCP\x20Retrying...','get','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','warn','SESSION_ID_OCCUPIED','div','OpenMCPConfigPanelCommand','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','mcp.apiKey','has','noopener\x20noreferrer','Input','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.sessionIdDescription','_initializeMenus','NONE','mcpConfig.configStep2','Button','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','启用身份验证以获得安全连接','3GpUCAC','_dialogService','请输入您的\x20API\x20密钥','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-bg-green-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP:\x20Unauthorized','http','_config','mcpConfig.validation.apiKeyTooShort','univer-flex\x20univer-items-start\x20univer-gap-3','Failed\x20to\x20save\x20configuration','IConfigService','mcpConfig.save','Enable\x20Authentication','\x20-\x20','API\x20key\x20with\x20Bearer\x20prefix.','useCallback','univer-bg-gray-500','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','配置参数:','几秒钟内获取您的\x20API\x20密钥','What\x20is\x20API\x20Key?','API\x20密钥','subscribe','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.configSaved','_mcpConnectionController','jsx','includes','https://console.univer.ai','配置无效','enUS','toPrimitive','UniverMCPUIPlugin','_handleConfigSave','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','将以下配置添加到您的\x20MCP\x20客户端设置中:','constructor','MCP:\x20超出最大重试次数','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.validation.invalidApiKey','IMessageService','univer-flex\x20univer-items-center\x20univer-gap-2','enableAutoConnect','最大重试次数','_componentManager','<API_KEY>','mcpConfig.connectionStatus.disconnected','MenuItemType','mcp-ui.config','mcpServerUrl','BuiltInUIPart','Univer\x20AI\x20控制台','open','Configuration\x20saved\x20successfully','Authorization:','MCP\x20连接失败','isValid','getCurrentConfig','Univer\x20AI\x20Console','univer-shrink-0\x20univer-text-blue-500','show','mcpConfig.saving','univer-text-sm\x20univer-font-medium','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','Saving...','网络连接错误,请检查您的网络连接','univer-text-xs\x20univer-text-gray-500','add','_configService','COMMAND','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','RibbonStartGroup','symbol','MCPConfigUIController','univer-text-green-500','MCP:\x20Max\x20Retries\x20Exceeded','jsxs'];_0x3712=function(){return _0x55aa31;};return _0x3712();}function toPropertyKey(_0xac055d){const _0x1d99a1=_0x586328;var _0xca9024=toPrimitive(_0xac055d,'string');return _0x1d99a1(0x22d)==_typeof(_0xca9024)?_0xca9024:_0xca9024+'';}function _defineProperty(_0x3ec876,_0x2d1df7,_0x3c0b66){return(_0x2d1df7=toPropertyKey(_0x2d1df7))in _0x3ec876?Object['defineProperty'](_0x3ec876,_0x2d1df7,{'value':_0x3c0b66,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ec876[_0x2d1df7]=_0x3c0b66,_0x3ec876;}function __decorateParam(_0x1774b5,_0x21e86c){return function(_0x1ac8ae,_0x4b3fbe){_0x21e86c(_0x1ac8ae,_0x4b3fbe,_0x1774b5);};}function __decorate(_0x4260b8,_0x4b2eeb,_0x2cc558,_0x3dc369){const _0x573d36=_0x586328;var _0x179249=arguments['length'],_0x311fdd=_0x179249<0x3?_0x4b2eeb:_0x3dc369===null?_0x3dc369=Object['getOwnPropertyDescriptor'](_0x4b2eeb,_0x2cc558):_0x3dc369,_0x5a9f9c;if(typeof Reflect==='object'&&typeof Reflect[_0x573d36(0x19e)]===_0x573d36(0x186))_0x311fdd=Reflect[_0x573d36(0x19e)](_0x4260b8,_0x4b2eeb,_0x2cc558,_0x3dc369);else{for(var _0x3eeda1=_0x4260b8[_0x573d36(0x11b)]-0x1;_0x3eeda1>=0x0;_0x3eeda1--)if(_0x5a9f9c=_0x4260b8[_0x3eeda1])_0x311fdd=(_0x179249<0x3?_0x5a9f9c(_0x311fdd):_0x179249>0x3?_0x5a9f9c(_0x4b2eeb,_0x2cc558,_0x311fdd):_0x5a9f9c(_0x4b2eeb,_0x2cc558))||_0x311fdd;}return _0x179249>0x3&&_0x311fdd&&Object[_0x573d36(0x14c)](_0x4b2eeb,_0x2cc558,_0x311fdd),_0x311fdd;}const MCP_API_KEY_STORAGE_KEY=_0x586328(0x1d7),MCP_CONFIG_DIALOG_ID=_0x586328(0x11f);let MCPConfigUIController=class MCPConfigUIController extends _univerjs_core[_0x586328(0x19a)]{constructor(_0x5794f5,_0x3481b9,_0x19beda,_0x24423c,_0x3fe813,_0x121f9b,_0x19c63f,_0x1e0ce2,_0x518b6e,_0xa19d40){const _0x2c5173=_0x586328;super(),this[_0x2c5173(0x136)]=_0x5794f5,this[_0x2c5173(0x130)]=_0x3481b9,this[_0x2c5173(0x229)]=_0x19beda,this[_0x2c5173(0x24b)]=_0x24423c,this[_0x2c5173(0x1e4)]=_0x3fe813,this[_0x2c5173(0x104)]=_0x121f9b,this[_0x2c5173(0x211)]=_0x19c63f,this['_localeService']=_0x1e0ce2,this[_0x2c5173(0x1a1)]=_0x518b6e,this[_0x2c5173(0x1fe)]=_0xa19d40,_defineProperty(this,_0x2c5173(0x23b),new rxjs[(_0x2c5173(0x159))](![])),_defineProperty(this,_0x2c5173(0x17f),new rxjs['BehaviorSubject']({})),_defineProperty(this,_0x2c5173(0x11a),new rxjs[(_0x2c5173(0x159))]({})),_defineProperty(this,'_apiKey$',new rxjs[(_0x2c5173(0x159))]('')),_defineProperty(this,_0x2c5173(0x206),async _0x49be29=>{const _0x497f56=_0x2c5173;this[_0x497f56(0x23b)]['next'](!![]);try{var _0x1d2198,_0x408f01;const _0x10189c=await this['_validateConfig'](_0x49be29);if(!_0x10189c[_0x497f56(0x21d)]){this[_0x497f56(0x104)]['show']({'type':_univerjs_design['MessageType'][_0x497f56(0x194)],'content':_0x10189c['errorMessage']||this[_0x497f56(0x1b7)]['t'](_0x497f56(0x1ad))});return;}if(_0x49be29[_0x497f56(0x18d)])await this['_localStorageService'][_0x497f56(0x239)](MCP_API_KEY_STORAGE_KEY,_0x49be29[_0x497f56(0x18d)][_0x497f56(0x106)]());else await this[_0x497f56(0x24b)][_0x497f56(0x113)](MCP_API_KEY_STORAGE_KEY);this[_0x497f56(0x145)][_0x497f56(0x245)](((_0x1d2198=_0x49be29['apiKey'])===null||_0x1d2198===void 0x0?void 0x0:_0x1d2198[_0x497f56(0x106)]())||''),this[_0x497f56(0x1fe)][_0x497f56(0x16c)]({'Authorization':_0x497f56(0x160)+((_0x408f01=_0x49be29[_0x497f56(0x18d)])===null||_0x408f01===void 0x0?void 0x0:_0x408f01['trim']())}),this[_0x497f56(0x104)][_0x497f56(0x221)]({'type':_univerjs_design[_0x497f56(0x199)][_0x497f56(0x248)],'content':this[_0x497f56(0x1b7)]['t'](_0x497f56(0x1fd))}),setTimeout(()=>{const _0x184785=_0x497f56;this[_0x184785(0x1e4)][_0x184785(0x15c)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x4f020c){this[_0x497f56(0x1a1)][_0x497f56(0x184)](_0x497f56(0x17a),_0x4f020c),this[_0x497f56(0x104)]['show']({'type':_univerjs_design[_0x497f56(0x199)][_0x497f56(0x194)],'content':this[_0x497f56(0x1b7)]['t']('mcpConfig.configError')});}finally{this[_0x497f56(0x23b)][_0x497f56(0x245)](![]);}}),this['_initConfigSync'](),this['_loadStoredApiKey'](),this[_0x2c5173(0x115)]();}[_0x586328(0x24d)](){const _0x182475=_0x586328,_0x5082c8=this[_0x182475(0x229)][_0x182475(0x187)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x5082c8===null||_0x5082c8===void 0x0?void 0x0:_0x5082c8[_0x182475(0x17e)])this[_0x182475(0x1e4)][_0x182475(0x219)]({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x182475(0x1b7)]['t'](_0x182475(0x195))},'children':{'label':_0x182475(0x1c4)},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x45cc9d=_0x182475;this[_0x45cc9d(0x1e4)][_0x45cc9d(0x15c)](MCP_CONFIG_DIALOG_ID);}});}[_0x586328(0x21e)](){const _0x1202e0=_0x586328;return this['_mcpCoreConfig$'][_0x1202e0(0x249)];}[_0x586328(0x115)](){const _0x3b6f42=_0x586328;this[_0x3b6f42(0x152)](this['_componentManager'][_0x3b6f42(0x15d)](_0x3b6f42(0x1c4),this[_0x3b6f42(0x1b5)]()));}[_0x586328(0x1b5)](){const _0xaca03e=_0x586328;return(0x0,_univerjs_ui[_0xaca03e(0x1a4)])(()=>{const _0x1466fe=_0xaca03e;var _0x42278f,_0x8bbe46,_0x18f894;return(0x0,react_jsx_runtime['jsx'])(MCPConfigPanel,{'config':this['_config$'][_0x1466fe(0x249)],'mcpCoreConfig':this[_0x1466fe(0x17f)][_0x1466fe(0x249)],'currentApiKey$':this[_0x1466fe(0x145)],'onSave':this[_0x1466fe(0x206)],'loading':this[_0x1466fe(0x23b)][_0x1466fe(0x249)],'connectionStatus$':(_0x42278f=this[_0x1466fe(0x1fe)])===null||_0x42278f===void 0x0?void 0x0:_0x42278f['connectionStatus$'],'connectionError$':(_0x8bbe46=this[_0x1466fe(0x1fe)])===null||_0x8bbe46===void 0x0?void 0x0:_0x8bbe46[_0x1466fe(0x24e)],'currentSessionId$':(_0x18f894=this[_0x1466fe(0x1fe)])===null||_0x18f894===void 0x0?void 0x0:_0x18f894[_0x1466fe(0x144)]});},this['_injector']);}[_0x586328(0x1bb)](){const _0x164bf4=_0x586328;this[_0x164bf4(0x152)](this[_0x164bf4(0x229)][_0x164bf4(0x18a)](_univerjs_pro_mcp[_0x164bf4(0x1ce)])['subscribe'](_0x2ebeee=>{this['_mcpCoreConfig$']['next'](_0x2ebeee||{});}));const _0x471431=this[_0x164bf4(0x229)][_0x164bf4(0x187)](_univerjs_pro_mcp['MCP_PLUGIN_CONFIG_KEY']);this[_0x164bf4(0x17f)][_0x164bf4(0x245)](_0x471431||{}),this[_0x164bf4(0x152)](this[_0x164bf4(0x229)][_0x164bf4(0x18a)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x164bf4(0x1fb)](_0x4a2e90=>{const _0x50bc8d=_0x164bf4;this[_0x50bc8d(0x11a)][_0x50bc8d(0x245)](_0x4a2e90||{});}));const _0x5e93b3=this[_0x164bf4(0x229)][_0x164bf4(0x187)](MCP_UI_PLUGIN_CONFIG_KEY);this['_config$'][_0x164bf4(0x245)](_0x5e93b3||{});}async[_0x586328(0x10f)](){const _0x1edfd1=_0x586328,_0x56d381=this[_0x1edfd1(0x229)][_0x1edfd1(0x187)](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x56d381===null||_0x56d381===void 0x0?void 0x0:_0x56d381[_0x1edfd1(0x17e)]))return;const _0x4182e5=await this[_0x1edfd1(0x24b)]['getItem'](MCP_API_KEY_STORAGE_KEY);_0x4182e5&&(this[_0x1edfd1(0x1fe)]['__setCustomHeaders']({'Authorization':_0x1edfd1(0x160)+_0x4182e5}),this[_0x1edfd1(0x145)]['next'](_0x4182e5));}async['_validateConfig'](_0x574df6){const _0x7d538e=_0x586328;if(!_0x574df6[_0x7d538e(0x18d)]||_0x574df6[_0x7d538e(0x18d)][_0x7d538e(0x106)]()[_0x7d538e(0x11b)]===0x0)return{'isValid':![],'errorMessage':this[_0x7d538e(0x1b7)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x574df6['apiKey'][_0x7d538e(0x106)]()[_0x7d538e(0x11b)]<0xa)return{'isValid':![],'errorMessage':this['_localeService']['t'](_0x7d538e(0x1ec))};try{const _0x4e831b=await this[_0x7d538e(0x136)][_0x7d538e(0x1d0)](_univerjs_pro_mcp['MCPConnectionController'])[_0x7d538e(0x1c6)](_0x574df6[_0x7d538e(0x18d)][_0x7d538e(0x106)]());if(!_0x4e831b[_0x7d538e(0x21d)])return{'isValid':![],'errorMessage':_0x4e831b['error']||this[_0x7d538e(0x1b7)]['t'](_0x7d538e(0x20c))};return{'isValid':!![]};}catch(_0x1f294d){return console[_0x7d538e(0x1d2)](_0x7d538e(0x257),_0x1f294d),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_core[_0x586328(0x253)])),__decorateParam(0x1,_univerjs_ui[_0x586328(0x23e)]),__decorateParam(0x2,_univerjs_core[_0x586328(0x1ef)]),__decorateParam(0x3,_univerjs_core[_0x586328(0x1b3)]),__decorateParam(0x4,_univerjs_ui['IDialogService']),__decorateParam(0x5,_univerjs_ui[_0x586328(0x20d)]),__decorateParam(0x6,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_ui['ComponentManager'])),__decorateParam(0x7,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_core['LocaleService'])),__decorateParam(0x8,_univerjs_core['ILogService']),__decorateParam(0x9,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_pro_mcp[_0x586328(0x156)]))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0x586328(0x1cb),'type':_univerjs_core[_0x586328(0x164)][_0x586328(0x22a)],'handler':async(_0x51cd69,_0x75496b)=>{const _0x500c96=_0x586328;return _0x51cd69[_0x500c96(0x1d0)](MCPConfigUIController)[_0x500c96(0x24d)](),!![];}};function mapStatusToI18NKey(_0x2d05aa,_0x5b0c52){const _0x1dd31b=_0x586328;switch(_0x2d05aa){case _univerjs_pro_mcp[_0x1dd31b(0x13c)][_0x1dd31b(0x1c9)]:return _0x1dd31b(0x127);case _univerjs_pro_mcp[_0x1dd31b(0x13c)][_0x1dd31b(0x19f)]:return _0x1dd31b(0x1bd);case _univerjs_pro_mcp[_0x1dd31b(0x13c)][_0x1dd31b(0x24c)]:return'mcpStatus.connected';case _univerjs_pro_mcp[_0x1dd31b(0x13c)]['FAILED']:switch(_0x5b0c52){case _univerjs_pro_mcp['MCPConnectionError']['UNAUTHORIZED']:return _0x1dd31b(0x12e);case _univerjs_pro_mcp[_0x1dd31b(0x1a8)][_0x1dd31b(0x1d3)]:return _0x1dd31b(0x166);case _univerjs_pro_mcp[_0x1dd31b(0x1a8)]['NETWORK_ERROR']:return _0x1dd31b(0x246);case _univerjs_pro_mcp[_0x1dd31b(0x1a8)]['MAX_RETRIES_EXCEEDED']:return _0x1dd31b(0x112);default:return _0x1dd31b(0x121);}case _univerjs_pro_mcp[_0x1dd31b(0x13c)][_0x1dd31b(0x109)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function getTooltipText(_0x4430fb,_0x4f28db,_0x45d439,_0x54facb=!![]){const _0x1cd5e3=_0x586328,_0x34627b=mapStatusToI18NKey(_0x4430fb,_0x4f28db),_0xd6b00c=_0x45d439['t'](_0x34627b);if(!_0x54facb)return _0xd6b00c;if(_0x4430fb===_univerjs_pro_mcp[_0x1cd5e3(0x13c)][_0x1cd5e3(0x1c9)]&&_0x4f28db===_univerjs_pro_mcp[_0x1cd5e3(0x1a8)][_0x1cd5e3(0x134)])return _0xd6b00c+'\x20-\x20'+_0x45d439['t'](_0x1cd5e3(0x16e));else{if(_0x4430fb===_univerjs_pro_mcp[_0x1cd5e3(0x13c)]['CONNECTED'])return''+_0xd6b00c;else{if(_0x4430fb===_univerjs_pro_mcp[_0x1cd5e3(0x13c)]['DISCONNECTED']||_0x4430fb===_univerjs_pro_mcp[_0x1cd5e3(0x13c)][_0x1cd5e3(0x15a)])return _0xd6b00c+_0x1cd5e3(0x1f2)+_0x45d439['t']('mcpStatus.clickToConnect');}}return _0xd6b00c;}function getStatusColor(_0x82852){const _0x2ecb60=_0x586328;switch(_0x82852){case _univerjs_pro_mcp[_0x2ecb60(0x13c)][_0x2ecb60(0x24c)]:return _0x2ecb60(0x22f);case _univerjs_pro_mcp[_0x2ecb60(0x13c)][_0x2ecb60(0x19f)]:case _univerjs_pro_mcp[_0x2ecb60(0x13c)]['RETRYING']:return _0x2ecb60(0x1c1);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x2ecb60(0x15a)]:case _univerjs_pro_mcp['MCPConnectionStatus'][_0x2ecb60(0x1c9)]:return _0x2ecb60(0x1af);default:return _0x2ecb60(0x252);}}function MCPStatusDisplay(_0x40faec){const _0x551bb0=_0x586328,{status$:_0x3a7aca,error$:_0x491865,onConfigure:_0x548f21,showClickable:showClickable=!![]}=_0x40faec,_0x1cfcad=(0x0,_univerjs_ui[_0x551bb0(0x172)])(_0x3a7aca,_univerjs_pro_mcp[_0x551bb0(0x13c)][_0x551bb0(0x1c9)]),_0x2674b2=(0x0,_univerjs_ui[_0x551bb0(0x172)])(_0x491865,_univerjs_pro_mcp[_0x551bb0(0x1a8)]['NONE']),_0x33e1cd=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x551bb0(0x171)]),_0x203d77=_0x1cfcad===_univerjs_pro_mcp[_0x551bb0(0x13c)][_0x551bb0(0x24c)];_0x1cfcad===_univerjs_pro_mcp[_0x551bb0(0x13c)][_0x551bb0(0x19f)]||_univerjs_pro_mcp['MCPConnectionStatus'][_0x551bb0(0x109)];const _0x4bdbad=_0x33e1cd['t'](mapStatusToI18NKey(_0x1cfcad,_0x2674b2)),_0x13ceaa=getTooltipText(_0x1cfcad,_0x2674b2,_0x33e1cd,showClickable),_0x40fa10=getStatusColor(_0x1cfcad),_0x4522ac=_0x203d77?(0x0,react_jsx_runtime[_0x551bb0(0x1ff)])(_univerjs_icons[_0x551bb0(0x174)],{}):(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x551bb0(0x142)],{}),_0x2b2e3a=(0x0,react[_0x551bb0(0x1f4)])(()=>{if(showClickable&&_0x548f21)_0x548f21();},[showClickable,_0x548f21]);function _0x1c898f(){const _0x1c40dc=_0x551bb0;return(0x0,react_jsx_runtime[_0x1c40dc(0x231)])('div',{'className':(0x0,_univerjs_design['clsx'])(_0x1c40dc(0x1c2),showClickable&&_0x548f21&&_0x1c40dc(0x233)),'role':'button','onClick':showClickable&&_0x548f21?_0x2b2e3a:void 0x0,'children':[(0x0,react_jsx_runtime[_0x1c40dc(0x1ff)])('div',{'className':(0x0,_univerjs_design[_0x1c40dc(0x23c)])(_0x1c40dc(0x1b4),_0x40fa10),'children':_0x4522ac}),(0x0,react_jsx_runtime[_0x1c40dc(0x1ff)])('div',{'className':_0x1c40dc(0x1bf),'children':_0x4bdbad})]});}return(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x551bb0(0x167)],{'title':_0x13ceaa,'placement':'bottom','children':_0x1c898f()});}let MCPConnectionUIController=class MCPConnectionUIController extends _univerjs_core[_0x586328(0x19a)]{constructor(_0x335760,_0x379404,_0x427153,_0x4027a1){const _0x5a52aa=_0x586328;super(),this['_injector']=_0x335760,this[_0x5a52aa(0x149)]=_0x379404,this['_uiPartsService']=_0x427153,this['_configService']=_0x4027a1,this[_0x5a52aa(0x1a3)](),this[_0x5a52aa(0x10c)]();}[_0x586328(0x1a3)](){const _0x31dac1=_0x586328,_0x1d4bbc=this[_0x31dac1(0x229)][_0x31dac1(0x187)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x1d4bbc===null||_0x1d4bbc===void 0x0?void 0x0:_0x1d4bbc[_0x31dac1(0x17e)])this[_0x31dac1(0x149)][_0x31dac1(0x20f)]=![];}['_initStatusComponent'](){const _0xb42e73=_0x586328,_0x1ce90c=this[_0xb42e73(0x229)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x1ce90c===null||_0x1ce90c===void 0x0?void 0x0:_0x1ce90c[_0xb42e73(0x241)])!==![])this[_0xb42e73(0x152)](this[_0xb42e73(0x130)][_0xb42e73(0x170)](_univerjs_ui[_0xb42e73(0x217)][_0xb42e73(0x17c)],()=>{const _0x10c8d5=_0xb42e73;var _0x4049f7;return(0x0,_univerjs_ui['connectInjector'])(passProps({'status$':this[_0x10c8d5(0x149)][_0x10c8d5(0x183)],'error$':this[_0x10c8d5(0x149)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x4049f7=_0x1ce90c===null||_0x1ce90c===void 0x0?void 0x0:_0x1ce90c['showDeveloperTools'])!==null&&_0x4049f7!==void 0x0?_0x4049f7:![]}),this[_0x10c8d5(0x136)]);}));}['_handleConfigure'](){const _0x1b4e0c=_0x586328;this['_injector'][_0x1b4e0c(0x1d0)](MCPConfigUIController)[_0x1b4e0c(0x24d)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x586328(0x253)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_pro_mcp[_0x586328(0x156)])),__decorateParam(0x2,_univerjs_ui[_0x586328(0x23e)]),__decorateParam(0x3,_univerjs_core[_0x586328(0x1ef)])],MCPConnectionUIController);function _0x53f3(_0x1892cf,_0x2b0d38){_0x1892cf=_0x1892cf-0x104;const _0x37121b=_0x3712();let _0x53f3a2=_0x37121b[_0x1892cf];return _0x53f3a2;}function passProps(_0x1648c2){const {status$:_0x50aa1e,error$:_0x55fc2d,onConfigure:_0x550f2d,showClickable:_0x25ac2c}=_0x1648c2;return function _0x4a757b(){return(0x0,react_jsx_runtime['jsx'])(MCPStatusDisplay,{'status$':_0x50aa1e,'error$':_0x55fc2d,'onConfigure':_0x550f2d,'showClickable':_0x25ac2c});};}function MCPConfigMenuItemFactory(_0x4e103c){const _0x1efee2=_0x586328;return{'id':OpenMCPConfigPanelCommand['id'],'type':_univerjs_ui[_0x1efee2(0x214)]['BUTTON'],'icon':_0x1efee2(0x10a),'title':'mcpConfig.title','tooltip':_0x1efee2(0x195)};}const menuSchema={[_univerjs_ui[_0x586328(0x22c)][_0x586328(0x165)]]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};let MCPUIMenuController=class MCPUIMenuController extends _univerjs_core[_0x586328(0x19a)]{constructor(_0x27bfde,_0x25b0c3){const _0x285a96=_0x586328;super(),this['_commandService']=_0x27bfde,this['_menuManagerService']=_0x25b0c3,this[_0x285a96(0x185)](),this[_0x285a96(0x1dd)]();}[_0x586328(0x185)](){[OpenMCPConfigPanelCommand]['forEach'](_0x43b6e0=>{const _0x507ff4=_0x53f3;this[_0x507ff4(0x152)](this[_0x507ff4(0x168)]['registerCommand'](_0x43b6e0));});}[_0x586328(0x1dd)](){const _0x24c81a=_0x586328;this['_menuManagerService'][_0x24c81a(0x107)](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,_univerjs_core[_0x586328(0x188)]),__decorateParam(0x1,_univerjs_ui[_0x586328(0x117)])],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':_0x586328(0x126),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x586328(0x108),'retrying':_0x586328(0x1cf),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x586328(0x1e9),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x586328(0x14e),'maxRetriesExceeded':_0x586328(0x230),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x586328(0x14b)},'mcpConfig':{'title':_0x586328(0x131),'description':_0x586328(0x13f),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x586328(0x111),'enableAuth':_0x586328(0x1f1),'enableAuthHint':_0x586328(0x182),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x586328(0x15b),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x586328(0x191),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x586328(0x138),'sessionId':_0x586328(0x1cc),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x586328(0x1f3),'configParameters':_0x586328(0x124),'maxRetries':_0x586328(0x23f),'save':_0x586328(0x1c5),'saving':_0x586328(0x225),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x586328(0x163),'configSaved':_0x586328(0x21a),'configError':_0x586328(0x1ee),'apiApplyInfo':{'title':_0x586328(0x1f9),'description':_0x586328(0x1d1),'univerAiLabel':_0x586328(0x21f),'getStarted':_0x586328(0x189)},'validation':{'apiKeyRequired':_0x586328(0x12f),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x586328(0x157)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x586328(0x146),'connected':_0x586328(0x155),'failed':'Connection\x20Failed','retrying':_0x586328(0x1b9)},'connectionError':{'unauthorized':_0x586328(0x153),'sessionOccupied':_0x586328(0x151),'networkError':_0x586328(0x22b),'maxRetriesExceeded':_0x586328(0x198)}}},locale$1={'mcpStatus':{'disconnected':_0x586328(0x137),'connecting':_0x586328(0x197),'connected':_0x586328(0x17b),'failed':_0x586328(0x21c),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x586328(0x141),'sessionOccupied':_0x586328(0x139),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x586328(0x20a),'clickToConnect':_0x586328(0x237),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x586328(0x1b1),'description':_0x586328(0x1fc),'apiKey':_0x586328(0x1fa),'apiKeyPlaceholder':_0x586328(0x1e5),'apiKeyHint':_0x586328(0x196),'enableAuth':_0x586328(0x192),'enableAuthHint':_0x586328(0x1e2),'connectionInfo':_0x586328(0x177),'mcpClientConfig':_0x586328(0x177),'configInstructions':_0x586328(0x208),'configStepTitle':_0x586328(0x1ab),'configStep1':_0x586328(0x24a),'configStep2':_0x586328(0x18b),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x586328(0x24f),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x586328(0x1f7),'maxRetries':_0x586328(0x210),'save':'保存配置','saving':_0x586328(0x133),'note1':_0x586328(0x147),'note2':_0x586328(0x1b0),'configSaved':_0x586328(0x1ba),'configError':_0x586328(0x13a),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x586328(0x218),'getStarted':_0x586328(0x1f8)},'validation':{'apiKeyRequired':_0x586328(0x14d),'apiKeyTooShort':_0x586328(0x20b),'invalidConfig':_0x586328(0x202),'invalidApiKey':_0x586328(0x17d)},'connectionStatus':{'disconnected':_0x586328(0x18e),'connecting':_0x586328(0x19d),'connected':_0x586328(0x1bc),'failed':_0x586328(0x1a2),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x586328(0x1a5),'sessionOccupied':_0x586328(0x15f),'networkError':_0x586328(0x226),'maxRetriesExceeded':_0x586328(0x180)}}};var name='@univerjs-pro/mcp-ui',version=_0x586328(0x12c);let UniverMCPUIPlugin=class UniverMCPUIPlugin extends _univerjs_core[_0x586328(0x178)]{constructor(_0x3e06c0=defaultPluginConfig,_0x33458d,_0x5fad18,_0x5a066e,_0x502d12,_0x321c04){const _0x4940bc=_0x586328;super(),this[_0x4940bc(0x1eb)]=_0x3e06c0,this['_injector']=_0x33458d,this[_0x4940bc(0x229)]=_0x5fad18,this[_0x4940bc(0x130)]=_0x5a066e,this[_0x4940bc(0x24b)]=_0x502d12,this[_0x4940bc(0x1b7)]=_0x321c04;const {..._0x1c1931}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this['_config']);this[_0x4940bc(0x229)]['setConfig'](MCP_UI_PLUGIN_CONFIG_KEY,_0x1c1931);}async[_0x586328(0x236)](){const _0x4f5eea=_0x586328,_0x4685c1=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this[_0x4f5eea(0x136)][_0x4f5eea(0x1d8)](_univerjs_network[_0x4f5eea(0x179)]))_0x4685c1['push']([_univerjs_network[_0x4f5eea(0x179)],{'useClass':_univerjs_network[_0x4f5eea(0x158)]}]);_0x4685c1[_0x4f5eea(0x12a)](_0x41d257=>this[_0x4f5eea(0x136)][_0x4f5eea(0x228)](_0x41d257)),this[_0x4f5eea(0x136)]['get'](MCPConnectionUIController),this[_0x4f5eea(0x136)]['get'](MCPConfigUIController),this[_0x4f5eea(0x136)]['get'](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0x586328(0x1b2),'MCP_UI_PLUGIN'),_defineProperty(UniverMCPUIPlugin,_0x586328(0x23a),name),_defineProperty(UniverMCPUIPlugin,'version',version),UniverMCPUIPlugin=__decorate([(0x0,_univerjs_core[_0x586328(0x173)])(_univerjs_pro_mcp[_0x586328(0x1ca)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_core[_0x586328(0x253)])),__decorateParam(0x2,_univerjs_core['IConfigService']),__decorateParam(0x3,_univerjs_ui[_0x586328(0x23e)]),__decorateParam(0x4,_univerjs_core['ILocalStorageService']),__decorateParam(0x5,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_core['LocaleService']))],UniverMCPUIPlugin),exports['MCPConfigPanel']=MCPConfigPanel,Object[_0x586328(0x14c)](exports,_0x586328(0x22e),{'enumerable':!![],'get':function(){return MCPConfigUIController;}}),Object[_0x586328(0x14c)](exports,_0x586328(0x254),{'enumerable':!![],'get':function(){return MCPConnectionUIController;}}),exports[_0x586328(0x232)]=MCPStatusDisplay,Object[_0x586328(0x14c)](exports,_0x586328(0x240),{'enumerable':!![],'get':function(){return MCPUIMenuController;}}),exports[_0x586328(0x1d5)]=OpenMCPConfigPanelCommand,Object[_0x586328(0x14c)](exports,_0x586328(0x205),{'enumerable':!![],'get':function(){return UniverMCPUIPlugin;}}),exports[_0x586328(0x203)]=locale,exports[_0x586328(0x13d)]=locale$1;
|
|
1
|
+
const _0x479e02=_0x4535;(function(_0x151aee,_0x106722){const _0x415638=_0x4535,_0x1bdaff=_0x151aee();while(!![]){try{const _0x4f13e1=-parseInt(_0x415638(0xf6))/0x1+-parseInt(_0x415638(0x1d3))/0x2+-parseInt(_0x415638(0x15a))/0x3*(-parseInt(_0x415638(0x107))/0x4)+parseInt(_0x415638(0xec))/0x5+parseInt(_0x415638(0x215))/0x6+parseInt(_0x415638(0x1f7))/0x7+parseInt(_0x415638(0x21d))/0x8*(-parseInt(_0x415638(0x1bd))/0x9);if(_0x4f13e1===_0x106722)break;else _0x1bdaff['push'](_0x1bdaff['shift']());}catch(_0x54f7d9){_0x1bdaff['push'](_0x1bdaff['shift']());}}}(_0x144c,0x65442),Object['defineProperty'](exports,Symbol[_0x479e02(0x12c)],{'value':_0x479e02(0x228)}));function _0x4535(_0x4de93f,_0x281f2e){_0x4de93f=_0x4de93f-0xdb;const _0x144c75=_0x144c();let _0x453533=_0x144c75[_0x4de93f];return _0x453533;}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(_0x5a56cf){const _0x48abdc=_0x479e02;var _0x495321,_0x595dc1;let {mcpCoreConfig:_0x4bdf64,onSave:_0x9775b5,loading:_0x2f3ef4=!0x1,config:_0x4482dc,connectionStatus$:_0x5e1ece,connectionError$:_0x4685e8,currentApiKey$:_0x5aa2ca,currentSessionId$:_0x529de8}=_0x5a56cf,_0x490125=(0x0,r[_0x48abdc(0x1cc)])(e['LocaleService']),_0x436f36=(0x0,r[_0x48abdc(0x104)])(_0x5e1ece,t[_0x48abdc(0x144)][_0x48abdc(0x1bb)]),_0x22fb79=(0x0,r[_0x48abdc(0x104)])(_0x4685e8,t[_0x48abdc(0x147)][_0x48abdc(0x14e)]),_0xb05bd6=(0x0,r['useObservable'])(_0x529de8,''),[_0x4f64a7,_0x5e86d6]=(0x0,o[_0x48abdc(0x1b3)])((0x0,r[_0x48abdc(0x104)])(_0x5aa2ca,'')||''),_0x874b7c=_0x4482dc[_0x48abdc(0x175)]&&_0x4bdf64['mcpServerUrl']&&(_0x4bdf64[_0x48abdc(0x210)]['includes'](_0x48abdc(0x1b5))||_0x4bdf64[_0x48abdc(0x210)][_0x48abdc(0x10a)](_0x48abdc(0x16b))),_0x362928=(_0x495321=_0x4bdf64[_0x48abdc(0x210)])==null?void 0x0:_0x495321[_0x48abdc(0x10a)]('univer.plus'),_0x15574f=(_0x595dc1=_0x4bdf64[_0x48abdc(0x210)])==null?void 0x0:_0x595dc1[_0x48abdc(0x10a)](_0x48abdc(0x16b)),_0x306e8d=_0x362928?'https://console.univer.plus':'https://console.univer.ai',_0xbba1a9=_0x4482dc[_0x48abdc(0x175)]&&(_0x362928||_0x15574f),[_0x25d2a2,_0x152aff]=(0x0,o[_0x48abdc(0x1b3)])(!_0x4f64a7[_0x48abdc(0x11f)]()),_0x268f76=(_0x18c7fa,_0x485f78)=>{const _0x39977c=_0x48abdc;if(_0x485f78===t[_0x39977c(0x147)]['UNAUTHORIZED'])return _0x39977c(0x11b);switch(_0x18c7fa){case t[_0x39977c(0x144)]['CONNECTED']:return _0x39977c(0x20c);case t[_0x39977c(0x144)]['CONNECTING']:case t[_0x39977c(0x144)][_0x39977c(0x195)]:return _0x39977c(0x15c);case t[_0x39977c(0x144)]['FAILED']:return _0x39977c(0x11b);default:return _0x39977c(0xfc);}},_0x24b939=(_0x2cc803,_0x428ccb)=>{const _0x359ae4=_0x48abdc;if(_0x428ccb===t[_0x359ae4(0x147)]['UNAUTHORIZED'])return _0x359ae4(0x1d7);switch(_0x2cc803){case t[_0x359ae4(0x144)][_0x359ae4(0x181)]:return _0x359ae4(0xe6);case t[_0x359ae4(0x144)][_0x359ae4(0x128)]:case t[_0x359ae4(0x144)][_0x359ae4(0x195)]:return _0x359ae4(0x18d);case t[_0x359ae4(0x144)]['FAILED']:return'univer-bg-red-500';default:return _0x359ae4(0x22e);}},_0x3a1ac1=_0x3f85f8=>{const _0x3dccd5=_0x48abdc;switch(_0x3f85f8){case t[_0x3dccd5(0x144)][_0x3dccd5(0x181)]:return _0x490125['t'](_0x3dccd5(0x18e));case t[_0x3dccd5(0x144)]['CONNECTING']:return _0x490125['t']('mcpConfig.connectionStatus.connecting');case t['MCPConnectionStatus'][_0x3dccd5(0x207)]:return _0x490125['t']('mcpConfig.connectionStatus.failed');case t[_0x3dccd5(0x144)][_0x3dccd5(0x195)]:return _0x490125['t'](_0x3dccd5(0x20a));default:return _0x490125['t']('mcpConfig.connectionStatus.disconnected');}},_0x255b92=_0x2f176c=>{const _0x638b2d=_0x48abdc;switch(_0x2f176c){case t[_0x638b2d(0x147)]['UNAUTHORIZED']:return _0x490125['t']('mcpConfig.connectionError.unauthorized');case t[_0x638b2d(0x147)][_0x638b2d(0x171)]:return _0x490125['t'](_0x638b2d(0x146));case t['MCPConnectionError'][_0x638b2d(0x167)]:return _0x490125['t']('mcpConfig.connectionError.networkError');case t[_0x638b2d(0x147)][_0x638b2d(0x14d)]:return _0x490125['t'](_0x638b2d(0x12e));default:return'';}},_0x12d536=(0x0,o[_0x48abdc(0x13d)])(()=>{const _0x23fd94=_0x48abdc;_0x9775b5({..._0x4bdf64,'apiKey':_0x4f64a7[_0x23fd94(0x11f)](),'enableAuth':!0x0});},[_0x4bdf64,_0x4f64a7,!0x0,_0x9775b5]),_0x31655c=_0x4f64a7[_0x48abdc(0x11f)]()[_0x48abdc(0x109)]>0x0;return(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0x116),'children':[(0x0,s[_0x48abdc(0x1ef)])('div',{'className':_0x48abdc(0x1c1),'children':(0x0,s['jsxs'])('div',{'className':_0x48abdc(0xdb),'children':[(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x212),{'className':_0x48abdc(0x166),'children':(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x22d),{'className':_0x48abdc(0x161),'children':'⚙'})}),(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x212),{'children':(0x0,s['jsx'])('p',{'className':_0x48abdc(0x19b),'children':_0x490125['t'](_0x48abdc(0x188))})})]})}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0x14f),'children':[(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x212),{'className':(0x0,n[_0x48abdc(0xed)])(_0x48abdc(0x173),_0x268f76(_0x436f36,_0x22fb79)),'children':(0x0,s[_0x48abdc(0x191)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x48abdc(0x1ef)])('div',{'className':(0x0,n[_0x48abdc(0xed)])(_0x48abdc(0x10d),_0x24b939(_0x436f36,_0x22fb79))}),(0x0,s['jsx'])(_0x48abdc(0x22d),{'className':_0x48abdc(0x100),'children':_0x3a1ac1(_0x436f36)})]})}),_0x22fb79!==t[_0x48abdc(0x147)][_0x48abdc(0x14e)]&&(_0x436f36===t[_0x48abdc(0x144)]['FAILED']||_0x22fb79===t['MCPConnectionError']['UNAUTHORIZED'])&&(0x0,s['jsx'])(_0x48abdc(0x212),{'className':_0x48abdc(0xe7),'children':(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[(0x0,s[_0x48abdc(0x1ef)])('span',{'className':_0x48abdc(0x1b1),'children':'⚠️'}),(0x0,s['jsx'])('p',{'className':_0x48abdc(0x12d),'children':_0x255b92(_0x22fb79)})]})})]}),(0x0,s[_0x48abdc(0x1ef)])('div',{'className':_0x48abdc(0x1e4),'children':(0x0,s[_0x48abdc(0x191)])('div',{'className':_0x48abdc(0x13e),'children':[(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0x121),'children':[(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x236),{'className':_0x48abdc(0x17a),'children':[(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x22d),{'children':'🔑'}),'\x20',_0x490125['t'](_0x48abdc(0x194)),(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x22d),{'className':_0x48abdc(0x183),'children':'*'}),_0x874b7c&&(0x0,s[_0x48abdc(0x1ef)])('a',{'className':'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','title':_0x490125['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x152aff(!0x0),'children':(0x0,s[_0x48abdc(0x1ef)])(a[_0x48abdc(0x174)],{})})]}),(0x0,s[_0x48abdc(0x1ef)])(n[_0x48abdc(0xdc)],{'type':_0x48abdc(0xe0),'placeholder':_0x490125['t'](_0x48abdc(0x1ce)),'value':_0x4f64a7,'disabled':_0x2f3ef4,'autoComplete':_0x48abdc(0x1e7),'onChange':_0x5e86d6}),(0x0,s[_0x48abdc(0x1ef)])('p',{'className':_0x48abdc(0xf0),'children':_0x490125['t'](_0x48abdc(0x1b9))})]}),_0x874b7c&&_0x25d2a2&&(0x0,s[_0x48abdc(0x191)])('div',{'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['jsx'])('a',{'className':_0x48abdc(0x13c),'role':_0x48abdc(0x18b),'onClick':()=>_0x152aff(!0x1),'children':(0x0,s[_0x48abdc(0x1ef)])(a['CloseIcon'],{'className':'univer-size-4'})}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0x1a9),'children':[(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x212),{'className':_0x48abdc(0x1fd),'children':(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x22d),{'className':_0x48abdc(0x114),'children':'🚀'})}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0x1d6),'children':[(0x0,s[_0x48abdc(0x1ef)])('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x490125['t'](_0x48abdc(0xf9))}),(0x0,s['jsx'])('p',{'className':_0x48abdc(0x1ab),'children':_0x490125['t'](_0x48abdc(0x193))}),(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x212),{'className':_0x48abdc(0x108),'children':_0xbba1a9&&(0x0,s['jsxs'])('a',{'className':'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','href':_0x306e8d,'target':_0x48abdc(0x1de),'rel':_0x48abdc(0x10e),'children':[(0x0,s[_0x48abdc(0x1ef)])('span',{'children':'🤖'}),_0x490125['t'](_0x48abdc(0x118)),(0x0,s[_0x48abdc(0x1ef)])('span',{'className':_0x48abdc(0x180),'children':'↗'})]})}),(0x0,s['jsxs'])('div',{'className':_0x48abdc(0x176),'children':['✨','\x20',_0x490125['t'](_0x48abdc(0x204))]})]})]})]}),_0x4482dc[_0x48abdc(0x175)]&&(0x0,s[_0x48abdc(0x191)])('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[(0x0,s[_0x48abdc(0x191)])('h4',{'className':_0x48abdc(0x145),'children':[(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x22d),{'children':'🔗'}),'\x20',_0x490125['t'](_0x48abdc(0x1fc))]}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0x16e),'children':[(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':'univer-space-y-3','children':[(0x0,s['jsx'])('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x490125['t'](_0x48abdc(0x21e))}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0x121),'children':[(0x0,s['jsx'])(_0x48abdc(0x212),{'className':_0x48abdc(0xe4),'children':_0x490125['t'](_0x48abdc(0x218))}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0xe8),'children':[(0x0,s['jsxs'])(_0x48abdc(0x212),{'className':_0x48abdc(0x19f),'children':[(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x22d),{'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'}),_0x490125['t']('mcpConfig.configStep1')]}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x48abdc(0x1ef)])('span',{'className':_0x48abdc(0x1a3),'children':'2'}),_0x490125['t'](_0x48abdc(0x14a))]}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0x19f),'children':[(0x0,s['jsx'])(_0x48abdc(0x22d),{'className':_0x48abdc(0x1a3),'children':'3'}),_0x490125['t'](_0x48abdc(0x115))]})]})]})]}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0x121),'children':[(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x212),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x48abdc(0xf1)}),(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x212),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x11e),{'className':_0x48abdc(0x1a2),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x48abdc(0x102)+(_0xb05bd6||_0x48abdc(0x1b4)),'type':_0x48abdc(0x11c),'headers':{'Authorization':_0x48abdc(0x1a8)+(_0x4f64a7||_0x48abdc(0x225))}}}},null,0x2)})})]}),(0x0,s[_0x48abdc(0x191)])('div',{'className':_0x48abdc(0x1d0),'children':[(0x0,s[_0x48abdc(0x1ef)])('div',{'className':_0x48abdc(0xe4),'children':_0x490125['t'](_0x48abdc(0xef))}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':'univer-space-y-2','children':[(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0xfb),'children':[(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x212),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,s['jsxs'])('div',{'className':_0x48abdc(0x105),'children':[(0x0,s['jsx'])(_0x48abdc(0x212),{'className':_0x48abdc(0x165),'children':_0x48abdc(0x1ff)}),(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x212),{'className':_0x48abdc(0xf0),'children':_0x490125['t'](_0x48abdc(0xe3))})]})]}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0xfb),'children':[(0x0,s[_0x48abdc(0x1ef)])('div',{'className':_0x48abdc(0x200)}),(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x212),{'className':_0x48abdc(0x105),'children':[(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x212),{'className':_0x48abdc(0x165),'children':_0x48abdc(0x142)}),(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x212),{'className':_0x48abdc(0xf0),'children':_0x490125['t'](_0x48abdc(0x168))})]})]})]})]})]})]}),(0x0,s['jsx'])(n['Button'],{'onClick':_0x12d536,'disabled':!_0x31655c||_0x2f3ef4,'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':_0x2f3ef4?(0x0,s[_0x48abdc(0x191)])('span',{'className':_0x48abdc(0x19f),'children':[(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x22d),{'children':'⟲'}),_0x490125['t'](_0x48abdc(0x103))]}):(0x0,s[_0x48abdc(0x191)])(_0x48abdc(0x22d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x48abdc(0x1ef)])(a['CheckMarkIcon'],{}),_0x490125['t'](_0x48abdc(0xee))]})}),(0x0,s['jsx'])('div',{'className':_0x48abdc(0x206),'children':(0x0,s['jsxs'])(_0x48abdc(0x212),{'className':_0x48abdc(0x18f),'children':[(0x0,s[_0x48abdc(0x1ef)])(_0x48abdc(0x22d),{'className':_0x48abdc(0x113),'children':'💡'}),(0x0,s[_0x48abdc(0x191)])('div',{'className':_0x48abdc(0xde),'children':[(0x0,s['jsx'])('div',{'className':_0x48abdc(0x203),'children':_0x48abdc(0x1dc)}),(0x0,s[_0x48abdc(0x191)])('div',{'children':['•',_0x490125['t'](_0x48abdc(0x1f8))]}),(0x0,s['jsxs'])(_0x48abdc(0x212),{'children':['•',_0x490125['t'](_0x48abdc(0x1a1))]})]})]})})]})})]});}const u='mcp-ui.config';Symbol(u);const d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x570d2e){'@babel/helpers - typeof';const _0x36b9f7=_0x479e02;return f=typeof Symbol=='function'&&typeof Symbol[_0x36b9f7(0x1e5)]=='symbol'?function(_0x2c73ea){return typeof _0x2c73ea;}:function(_0x1ef8ba){const _0xf949e2=_0x36b9f7;return _0x1ef8ba&&typeof Symbol=='function'&&_0x1ef8ba['constructor']===Symbol&&_0x1ef8ba!==Symbol[_0xf949e2(0x1d2)]?_0xf949e2(0x14c):typeof _0x1ef8ba;},f(_0x570d2e);}function p(_0x5c14a4,_0x162e58){const _0x2e0f9b=_0x479e02;if(f(_0x5c14a4)!=_0x2e0f9b(0x16f)||!_0x5c14a4)return _0x5c14a4;var _0x2e5e5e=_0x5c14a4[Symbol[_0x2e0f9b(0x16c)]];if(_0x2e5e5e!==void 0x0){var _0x4ee2fb=_0x2e5e5e[_0x2e0f9b(0x12f)](_0x5c14a4,_0x162e58||_0x2e0f9b(0x1e0));if(f(_0x4ee2fb)!=_0x2e0f9b(0x16f))return _0x4ee2fb;throw TypeError(_0x2e0f9b(0x1d9));}return(_0x162e58===_0x2e0f9b(0x13f)?String:Number)(_0x5c14a4);}function _0x144c(){const _0x2dccce=['mcpConfig.note2','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','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','_loadStoredApiKey','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','API\x20Key','Saving...','Bearer\x20','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','配置无效','IMessageService','超出最大重试次数,请稍后再试','get','close','univer-shrink-0\x20univer-text-red-500','将以下配置添加到您的\x20MCP\x20客户端设置中:','useState','<SESSION_ID>','univer.plus','showConfigPanel','_mcpConnectionController','mcpConfig.configError','mcpConfig.apiKeyHint','重连中...','DISCONNECTED','\x20-\x20','117927XjdiSn','API\x20密钥不能为空','registerCommand','forEach','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','connectionError$','_loading$','_apiKey$','API\x20key\x20with\x20Bearer\x20prefix.','_handleConfigure','disposeWithMe','MCP\x20Connection\x20Failed','COMMAND','_handleConfigSave','ICommandService','useDependency','配置保存成功','mcpConfig.apiKeyPlaceholder','MenuItemType','univer-space-y-3','isValid','prototype','1365332FpdITm','Disposable','onStarting','univer-flex-1','univer-bg-red-500','error','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','MCP\x20配置','Enable\x20Authentication','Configuration\x20Notes:','_localeService','_blank','univer-text-yellow-500','default','MessageType','MCPStatusDisplay','OnLineIcon','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','iterator','mcpStatus.sessionOccupied','off','getItem','Tooltip','_connectionController','什么是\x20API\x20密钥?','重启您的\x20MCP\x20客户端以使配置生效','value','removeItem','jsx','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP_PLUGIN_CONFIG_KEY','未连接','MCP\x20已断开','_dialogService','mcpConfig.configSaved','会话ID','3852198eGiXyh','mcpConfig.note1','Injector','_mcpCoreConfig$','setConfig','mcpConfig.connectionInfo','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer_session_id:','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP:\x20Max\x20Retries\x20Exceeded','open','univer-font-medium','mcpConfig.apiApplyInfo.getStarted','配置更改将立即生效','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','FAILED','subscribe','_uiPartsService','mcpConfig.connectionStatus.retrying','_componentManager','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP:\x20超出最大重试次数','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpStatus.retrying','mcpServerUrl','UniverMCPPlugin','div','MCP:\x20未授权','IUIPartsService','2509902bNcBnE','bottom','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.configStepTitle','MCP\x20Client\x20Configuration','register','setItem','showStatus','40RPGNHJ','mcpConfig.configInstructions','MCPConnectionUIController','BehaviorSubject','_validateConfig','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','OpenMCPConfigPanelCommand','connectionStatus$','<API_KEY>','_configService','_injector','Module','_messageService','_registerComponent','MCP:\x20Unauthorized','connectInjector','span','univer-bg-gray-500','会话\x20ID\x20已被占用,请稍后再试','_commandService','Connected','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','add','配置参数:','label','univer-flex\x20univer-items-center\x20univer-gap-3','Input','defineProperty','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_logService','text','LocaleService','getCurrentConfig','mcpConfig.sessionIdDescription','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','next','univer-bg-green-500','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','OTHERS','MCPConfigUIController','773250itQWli','clsx','mcpConfig.save','mcpConfig.configParameters','univer-text-xs\x20univer-text-gray-500','MCP\x20Configuration','您的\x20API\x20密钥安全存储在本地存储中','push','Configuration\x20Steps:','getConfig','640366zaLkyr','WebSocketService','__setCustomHeaders','mcpConfig.apiApplyInfo.title','HEADER_MENU','univer-flex\x20univer-items-start\x20univer-gap-3','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Configuration\x20Parameters:','UniverMCPUIPlugin','_initStatusComponent','univer-text-sm\x20univer-font-medium','请输入您的\x20API\x20密钥','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.saving','useObservable','univer-min-w-0\x20univer-flex-1','API\x20密钥无效,请检查密钥是否正确','1360104maictR','univer-flex\x20univer-flex-wrap\x20univer-gap-2','length','includes','复制以下\x20JSON\x20配置','MCPConnectionController','univer-size-2\x20univer-rounded-full','noopener\x20noreferrer','配置保存失败','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcp.apiKey','0.23.0-insiders.20260522-e8f2a3b','univer-shrink-0\x20univer-text-blue-500','univer-text-blue-600','mcpConfig.configStep3','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','已连接','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20重连中...','Enter\x20your\x20API\x20key','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','http','_initializeCommands','pre','trim','mcpConfig.validation.apiKeyRequired','univer-space-y-2','_createConfigPanelComponent','Click\x20to\x20connect\x20MCP','MCP\x20连接中...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','@univerjs-pro/mcp-ui','CONNECTING','_config','启用身份验证','MCP\x20状态未知','toStringTag','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.connectionError.maxRetriesExceeded','call','带有\x20Bearer\x20前缀的\x20API\x20密钥。','registerComponent','配置步骤:','apiKey','mcpStatus.connected','Inject','_initializeMenus','_initAutoConnect','mcpStatus.disconnected','ILocalStorageService','univer-mr-2\x20univer-flex\x20univer-text-xl','has','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','useCallback','univer-space-y-5','string','IDialogService','univer-text-green-500','Authorization:','pluginName','MCPConnectionStatus','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionError.sessionOccupied','MCPConnectionError','Copy\x20the\x20JSON\x20configuration\x20below','RibbonStartGroup','mcpConfig.configStep2','MCP:\x20会话\x20ID\x20已被占用','symbol','MAX_RETRIES_EXCEEDED','NONE','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','UNAUTHORIZED','_config$','MCP:\x20Session\x20ID\x20Occupied','\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','Plugin','MCP\x20Unknown\x20Status','decorate','MCPConfigPanel','_menuManagerService','mcpStatus.unknown','6bbUkvZ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','连接失败','enUS','subscribeConfigValue$','Connecting...','univer-text-white','enableAutoConnect','version','mcpConfig.title','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','NETWORK_ERROR','mcpConfig.authorizationDescription','MCP\x20已连接','mcpConfig.validation.invalidConfig','univer.ai','toPrimitive','mcpConfig.validation.invalidApiKey','univer-space-y-4','object','mcp-config-dialog','SESSION_ID_OCCUPIED','show','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','HelpIcon','showDeveloperTools','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','Univer\x20AI\x20Console','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP\x20Connected','univer-text-gray-500','univer-flex\x20univer-items-center','mcp-ui.command.openConfigPanel','BuiltInUIPart','univer-text-gray-400','CONNECTED','ILogService','univer-text-red-500','mcpConfig.validation.apiKeyTooShort','Error','您的\x20API\x20密钥将在此浏览器中本地存储','_localStorageService','mcpConfig.description','MCP\x20客户端配置','Click\x20to\x20configure\x20MCP','button','最大重试次数','univer-bg-blue-500','mcpConfig.connectionStatus.connected','univer-flex\x20univer-gap-3','MCP\x20Connecting...','jsxs','API\x20key\x20is\x20required','mcpConfig.apiApplyInfo.description','mcpConfig.apiKey','RETRYING','CommandType','_initConfigSync','IConfigService','BUTTON','Connection\x20Failed','univer-text-sm\x20univer-text-gray-500','网络连接错误,请检查您的网络连接','mcpStatus.connecting','Save\x20Configuration','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20Network\x20Error'];_0x144c=function(){return _0x2dccce;};return _0x144c();}function m(_0x1b9d33){const _0x1a298f=_0x479e02;var _0x1a842f=p(_0x1b9d33,_0x1a298f(0x13f));return f(_0x1a842f)==_0x1a298f(0x14c)?_0x1a842f:_0x1a842f+'';}function h(_0x34e730,_0x5353de,_0x576193){return(_0x5353de=m(_0x5353de))in _0x34e730?Object['defineProperty'](_0x34e730,_0x5353de,{'value':_0x576193,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34e730[_0x5353de]=_0x576193,_0x34e730;}function g(_0x3644b8,_0x25b321){return function(_0x1b5d65,_0x58cc41){_0x25b321(_0x1b5d65,_0x58cc41,_0x3644b8);};}function _(_0x4b493a,_0x1eef8e,_0x5e7697,_0x260014){const _0x324477=_0x479e02;var _0x2c7443=arguments['length'],_0x1d1849=_0x2c7443<0x3?_0x1eef8e:_0x260014===null?_0x260014=Object['getOwnPropertyDescriptor'](_0x1eef8e,_0x5e7697):_0x260014,_0x413136;if(typeof Reflect==_0x324477(0x16f)&&typeof Reflect['decorate']=='function')_0x1d1849=Reflect[_0x324477(0x156)](_0x4b493a,_0x1eef8e,_0x5e7697,_0x260014);else{for(var _0x1d46da=_0x4b493a[_0x324477(0x109)]-0x1;_0x1d46da>=0x0;_0x1d46da--)(_0x413136=_0x4b493a[_0x1d46da])&&(_0x1d1849=(_0x2c7443<0x3?_0x413136(_0x1d1849):_0x2c7443>0x3?_0x413136(_0x1eef8e,_0x5e7697,_0x1d1849):_0x413136(_0x1eef8e,_0x5e7697))||_0x1d1849);}return _0x2c7443>0x3&&_0x1d1849&&Object[_0x324477(0xdd)](_0x1eef8e,_0x5e7697,_0x1d1849),_0x1d1849;}const v=_0x479e02(0x111),y=_0x479e02(0x170);let b=class extends e['Disposable']{constructor(_0x21be20,_0x1dcbab,_0x235f43,_0x41186c,_0x502a5b,_0x5c7cb6,_0x306dc0,_0x8dc00c,_0x405308,_0x5c25e2){const _0x33ade8=_0x479e02;super(),this[_0x33ade8(0x227)]=_0x21be20,this[_0x33ade8(0x209)]=_0x1dcbab,this[_0x33ade8(0x226)]=_0x235f43,this[_0x33ade8(0x187)]=_0x41186c,this[_0x33ade8(0x1f4)]=_0x502a5b,this[_0x33ade8(0x229)]=_0x5c7cb6,this['_componentManager']=_0x306dc0,this[_0x33ade8(0x1dd)]=_0x8dc00c,this[_0x33ade8(0xdf)]=_0x405308,this[_0x33ade8(0x1b7)]=_0x5c25e2,h(this,_0x33ade8(0x1c3),new i[(_0x33ade8(0x220))](!0x1)),h(this,_0x33ade8(0x1fa),new i['BehaviorSubject']({})),h(this,_0x33ade8(0x151),new i[(_0x33ade8(0x220))]({})),h(this,_0x33ade8(0x1c4),new i[(_0x33ade8(0x220))]('')),h(this,_0x33ade8(0x1ca),async _0x20478b=>{const _0x5c6c77=_0x33ade8;this[_0x5c6c77(0x1c3)][_0x5c6c77(0xe5)](!0x0);try{var _0x13083d,_0x36d524;let _0x450065=await this[_0x5c6c77(0x221)](_0x20478b);if(!_0x450065['isValid']){this['_messageService'][_0x5c6c77(0x172)]({'type':n[_0x5c6c77(0x1e1)][_0x5c6c77(0x185)],'content':_0x450065['errorMessage']||this[_0x5c6c77(0x1dd)]['t'](_0x5c6c77(0x16a))});return;}_0x20478b[_0x5c6c77(0x133)]?await this[_0x5c6c77(0x187)][_0x5c6c77(0x21b)](v,_0x20478b[_0x5c6c77(0x133)]['trim']()):await this[_0x5c6c77(0x187)][_0x5c6c77(0x1ee)](v),this[_0x5c6c77(0x1c4)][_0x5c6c77(0xe5)](((_0x13083d=_0x20478b[_0x5c6c77(0x133)])==null?void 0x0:_0x13083d[_0x5c6c77(0x11f)]())||''),this[_0x5c6c77(0x1b7)][_0x5c6c77(0xf8)]({'Authorization':_0x5c6c77(0x1a8)+((_0x36d524=_0x20478b[_0x5c6c77(0x133)])==null?void 0x0:_0x36d524[_0x5c6c77(0x11f)]())}),this[_0x5c6c77(0x229)][_0x5c6c77(0x172)]({'type':n[_0x5c6c77(0x1e1)]['Success'],'content':this['_localeService']['t'](_0x5c6c77(0x1f5))}),setTimeout(()=>{const _0x5b79dd=_0x5c6c77;this[_0x5b79dd(0x1f4)][_0x5b79dd(0x1b0)](y);},0x320);}catch(_0x17b182){this[_0x5c6c77(0xdf)][_0x5c6c77(0x1d8)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x17b182),this[_0x5c6c77(0x229)][_0x5c6c77(0x172)]({'type':n[_0x5c6c77(0x1e1)][_0x5c6c77(0x185)],'content':this[_0x5c6c77(0x1dd)]['t'](_0x5c6c77(0x1b8))});}finally{this[_0x5c6c77(0x1c3)][_0x5c6c77(0xe5)](!0x1);}}),this[_0x33ade8(0x197)](),this[_0x33ade8(0x1a4)](),this[_0x33ade8(0x22a)]();}[_0x479e02(0x1b6)](){const _0x1f5e26=_0x479e02;let _0x548b12=this[_0x1f5e26(0x226)]['getConfig'](u);_0x548b12!=null&&_0x548b12[_0x1f5e26(0x175)]&&this['_dialogService'][_0x1f5e26(0x202)]({'id':y,'title':{'title':this[_0x1f5e26(0x1dd)]['t'](_0x1f5e26(0x164))},'children':{'label':_0x1f5e26(0x157)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x478f93=_0x1f5e26;this[_0x478f93(0x1f4)][_0x478f93(0x1b0)](y);}});}[_0x479e02(0xe2)](){const _0x32336d=_0x479e02;return this[_0x32336d(0x1fa)][_0x32336d(0x1ed)];}[_0x479e02(0x22a)](){const _0x28f7a9=_0x479e02;this[_0x28f7a9(0x1c7)](this[_0x28f7a9(0x20b)][_0x28f7a9(0x21a)]('MCPConfigPanel',this[_0x28f7a9(0x122)]()));}[_0x479e02(0x122)](){const _0x2bfeac=_0x479e02;return(0x0,r[_0x2bfeac(0x22c)])(()=>{const _0x11b74a=_0x2bfeac;var _0x7530ad,_0x5b0772,_0x1d77f9;return(0x0,s[_0x11b74a(0x1ef)])(l,{'config':this['_config$'][_0x11b74a(0x1ed)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x11b74a(0x1ed)],'currentApiKey$':this[_0x11b74a(0x1c4)],'onSave':this[_0x11b74a(0x1ca)],'loading':this[_0x11b74a(0x1c3)][_0x11b74a(0x1ed)],'connectionStatus$':(_0x7530ad=this[_0x11b74a(0x1b7)])==null?void 0x0:_0x7530ad['connectionStatus$'],'connectionError$':(_0x5b0772=this[_0x11b74a(0x1b7)])==null?void 0x0:_0x5b0772[_0x11b74a(0x1c2)],'currentSessionId$':(_0x1d77f9=this[_0x11b74a(0x1b7)])==null?void 0x0:_0x1d77f9['sessionId$']});},this['_injector']);}[_0x479e02(0x197)](){const _0x5c77da=_0x479e02;this[_0x5c77da(0x1c7)](this[_0x5c77da(0x226)][_0x5c77da(0x15f)](t[_0x5c77da(0x1f1)])['subscribe'](_0x57a1ee=>{const _0x2ea4db=_0x5c77da;this[_0x2ea4db(0x1fa)][_0x2ea4db(0xe5)](_0x57a1ee||{});}));let _0x3f399c=this[_0x5c77da(0x226)][_0x5c77da(0xf5)](t[_0x5c77da(0x1f1)]);this[_0x5c77da(0x1fa)][_0x5c77da(0xe5)](_0x3f399c||{}),this[_0x5c77da(0x1c7)](this['_configService']['subscribeConfigValue$'](u)[_0x5c77da(0x208)](_0x52c92c=>{const _0x240d5e=_0x5c77da;this[_0x240d5e(0x151)][_0x240d5e(0xe5)](_0x52c92c||{});}));let _0x334708=this['_configService'][_0x5c77da(0xf5)](u);this[_0x5c77da(0x151)][_0x5c77da(0xe5)](_0x334708||{});}async[_0x479e02(0x1a4)](){const _0xc077aa=_0x479e02;let _0x51ae01=this[_0xc077aa(0x226)]['getConfig'](u);if(!(_0x51ae01!=null&&_0x51ae01[_0xc077aa(0x175)]))return;let _0x65af6f=await this['_localStorageService'][_0xc077aa(0x1e8)](v);_0x65af6f&&(this[_0xc077aa(0x1b7)]['__setCustomHeaders']({'Authorization':_0xc077aa(0x1a8)+_0x65af6f}),this[_0xc077aa(0x1c4)][_0xc077aa(0xe5)](_0x65af6f));}async[_0x479e02(0x221)](_0x14e92a){const _0x5609eb=_0x479e02;if(!_0x14e92a[_0x5609eb(0x133)]||_0x14e92a[_0x5609eb(0x133)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x5609eb(0x120))};if(_0x14e92a[_0x5609eb(0x133)]['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x5609eb(0x1dd)]['t'](_0x5609eb(0x184))};try{let _0x4b816e=await this[_0x5609eb(0x227)]['get'](t[_0x5609eb(0x10c)])['validateApiKey'](_0x14e92a[_0x5609eb(0x133)][_0x5609eb(0x11f)]());return _0x4b816e[_0x5609eb(0x1d1)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4b816e[_0x5609eb(0x1d8)]||this[_0x5609eb(0x1dd)]['t'](_0x5609eb(0x16d))};}catch(_0x5d2e1e){return console['warn'](_0x5609eb(0x1a5),_0x5d2e1e),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e[_0x479e02(0x135)])(e[_0x479e02(0x1f9)])),g(0x1,r[_0x479e02(0x214)]),g(0x2,e['IConfigService']),g(0x3,e[_0x479e02(0x139)]),g(0x4,r[_0x479e02(0x140)]),g(0x5,r[_0x479e02(0x1ad)]),g(0x6,(0x0,e[_0x479e02(0x135)])(r['ComponentManager'])),g(0x7,(0x0,e['Inject'])(e[_0x479e02(0xe1)])),g(0x8,e[_0x479e02(0x182)]),g(0x9,(0x0,e[_0x479e02(0x135)])(t[_0x479e02(0x10c)]))],b);const x={'id':_0x479e02(0x17e),'type':e[_0x479e02(0x196)][_0x479e02(0x1c9)],'handler':async(_0x171a3d,_0x503d2c)=>(_0x171a3d[_0x479e02(0x1af)](b)['showConfigPanel'](),!0x0)};function S(_0x198745,_0x12d4e3){const _0x228acb=_0x479e02;switch(_0x198745){case t[_0x228acb(0x144)][_0x228acb(0x1bb)]:return _0x228acb(0x138);case t['MCPConnectionStatus'][_0x228acb(0x128)]:return _0x228acb(0x19d);case t['MCPConnectionStatus']['CONNECTED']:return _0x228acb(0x134);case t[_0x228acb(0x144)][_0x228acb(0x207)]:switch(_0x12d4e3){case t[_0x228acb(0x147)][_0x228acb(0x150)]:return'mcpStatus.unauthorized';case t[_0x228acb(0x147)][_0x228acb(0x171)]:return _0x228acb(0x1e6);case t[_0x228acb(0x147)]['NETWORK_ERROR']:return'mcpStatus.networkError';case t[_0x228acb(0x147)]['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case t[_0x228acb(0x144)][_0x228acb(0x195)]:return _0x228acb(0x20f);default:return _0x228acb(0x159);}}function C(_0x3750d5,_0x24f575,_0x4404a6,_0x272009=!0x0){const _0x13fe73=_0x479e02;let _0xe858e4=S(_0x3750d5,_0x24f575),_0x5052d1=_0x4404a6['t'](_0xe858e4);return _0x272009?_0x3750d5===t[_0x13fe73(0x144)]['DISCONNECTED']&&_0x24f575===t[_0x13fe73(0x147)][_0x13fe73(0x150)]?_0x5052d1+_0x13fe73(0x1bc)+_0x4404a6['t']('mcpStatus.clickToConfigure'):_0x3750d5===t[_0x13fe73(0x144)][_0x13fe73(0x181)]?''+_0x5052d1:_0x3750d5===t['MCPConnectionStatus'][_0x13fe73(0x1bb)]||_0x3750d5===t[_0x13fe73(0x144)]['FAILED']?_0x5052d1+'\x20-\x20'+_0x4404a6['t']('mcpStatus.clickToConnect'):_0x5052d1:_0x5052d1;}function w(_0x2c5436){const _0x22532c=_0x479e02;switch(_0x2c5436){case t[_0x22532c(0x144)][_0x22532c(0x181)]:return _0x22532c(0x141);case t[_0x22532c(0x144)]['CONNECTING']:case t['MCPConnectionStatus'][_0x22532c(0x195)]:return _0x22532c(0x1df);case t[_0x22532c(0x144)]['FAILED']:case t[_0x22532c(0x144)]['DISCONNECTED']:return _0x22532c(0x183);default:return _0x22532c(0x17c);}}function T(_0x18e8c1){const _0x4d8eb5=_0x479e02;let {status$:_0x508ac5,error$:_0x107dc7,onConfigure:_0x5682d4,showClickable:_0x3cad0d=!0x0}=_0x18e8c1,_0x235090=(0x0,r[_0x4d8eb5(0x104)])(_0x508ac5,t[_0x4d8eb5(0x144)]['DISCONNECTED']),_0x5b3266=(0x0,r[_0x4d8eb5(0x104)])(_0x107dc7,t[_0x4d8eb5(0x147)][_0x4d8eb5(0x14e)]),_0x4238c7=(0x0,r[_0x4d8eb5(0x1cc)])(e['LocaleService']),_0x1fcdfb=_0x235090===t[_0x4d8eb5(0x144)][_0x4d8eb5(0x181)];_0x235090===t[_0x4d8eb5(0x144)][_0x4d8eb5(0x128)]||t['MCPConnectionStatus'][_0x4d8eb5(0x195)];let _0x43928a=_0x4238c7['t'](S(_0x235090,_0x5b3266)),_0xcacba9=C(_0x235090,_0x5b3266,_0x4238c7,_0x3cad0d),_0x3c4fab=w(_0x235090),_0x38bffe=_0x1fcdfb?(0x0,s[_0x4d8eb5(0x1ef)])(a[_0x4d8eb5(0x1e3)],{}):(0x0,s['jsx'])(a['OffLineIcon'],{}),_0x3eb564=(0x0,o['useCallback'])(()=>{_0x3cad0d&&_0x5682d4&&_0x5682d4();},[_0x3cad0d,_0x5682d4]);function _0x3add09(){const _0x57e18a=_0x4d8eb5;return(0x0,s[_0x57e18a(0x191)])(_0x57e18a(0x212),{'className':(0x0,n[_0x57e18a(0xed)])(_0x57e18a(0x17d),_0x3cad0d&&_0x5682d4&&_0x57e18a(0x153)),'role':_0x57e18a(0x18b),'onClick':_0x3cad0d&&_0x5682d4?_0x3eb564:void 0x0,'children':[(0x0,s[_0x57e18a(0x1ef)])(_0x57e18a(0x212),{'className':(0x0,n[_0x57e18a(0xed)])(_0x57e18a(0x13a),_0x3c4fab),'children':_0x38bffe}),(0x0,s[_0x57e18a(0x1ef)])(_0x57e18a(0x212),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x43928a})]});}return(0x0,s[_0x4d8eb5(0x1ef)])(n[_0x4d8eb5(0x1e9)],{'title':_0xcacba9,'placement':_0x4d8eb5(0x216),'children':_0x3add09()});}let E=class extends e[_0x479e02(0x1d4)]{constructor(_0x30d3a,_0x47a415,_0x34c3d9,_0x3ad36f){const _0x11b03f=_0x479e02;super(),this[_0x11b03f(0x227)]=_0x30d3a,this[_0x11b03f(0x1ea)]=_0x47a415,this['_uiPartsService']=_0x34c3d9,this[_0x11b03f(0x226)]=_0x3ad36f,this[_0x11b03f(0x137)](),this[_0x11b03f(0xff)]();}[_0x479e02(0x137)](){const _0x1e5a4b=_0x479e02;let _0x2b82bc=this[_0x1e5a4b(0x226)][_0x1e5a4b(0xf5)](u);_0x2b82bc!=null&&_0x2b82bc[_0x1e5a4b(0x175)]&&(this[_0x1e5a4b(0x1ea)][_0x1e5a4b(0x162)]=!0x1);}['_initStatusComponent'](){const _0x18a10b=_0x479e02;let _0x3f4d8f=this[_0x18a10b(0x226)][_0x18a10b(0xf5)](u);(_0x3f4d8f==null?void 0x0:_0x3f4d8f[_0x18a10b(0x21c)])!==!0x1&&this[_0x18a10b(0x1c7)](this['_uiPartsService'][_0x18a10b(0x131)](r[_0x18a10b(0x17f)][_0x18a10b(0xfa)],()=>{const _0x22ee8f=_0x18a10b;var _0xbcfb5e;return(0x0,r[_0x22ee8f(0x22c)])(D({'status$':this[_0x22ee8f(0x1ea)][_0x22ee8f(0x224)],'error$':this[_0x22ee8f(0x1ea)][_0x22ee8f(0x1c2)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0xbcfb5e=_0x3f4d8f==null?void 0x0:_0x3f4d8f['showDeveloperTools'])==null?!0x1:_0xbcfb5e}),this['_injector']);}));}[_0x479e02(0x1c6)](){const _0x22adcf=_0x479e02;this[_0x22adcf(0x227)][_0x22adcf(0x1af)](b)[_0x22adcf(0x1b6)]();}};E=_([g(0x0,(0x0,e['Inject'])(e[_0x479e02(0x1f9)])),g(0x1,(0x0,e[_0x479e02(0x135)])(t[_0x479e02(0x10c)])),g(0x2,r['IUIPartsService']),g(0x3,e[_0x479e02(0x198)])],E);function D(_0x84ed9b){let {status$:_0x502d8e,error$:_0x30cdbc,onConfigure:_0x3a5103,showClickable:_0x4b3079}=_0x84ed9b;return function(){return(0x0,s['jsx'])(T,{'status$':_0x502d8e,'error$':_0x30cdbc,'onConfigure':_0x3a5103,'showClickable':_0x4b3079});};}function O(_0x9010a8){const _0x22d2ef=_0x479e02;return{'id':x['id'],'type':r[_0x22d2ef(0x1cf)][_0x22d2ef(0x199)],'icon':'MenuIcon','title':'mcpConfig.title','tooltip':_0x22d2ef(0x164)};}const k={[r[_0x479e02(0x149)][_0x479e02(0xea)]]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e['Disposable']{constructor(_0x249efc,_0x206244){const _0x242874=_0x479e02;super(),this[_0x242874(0x230)]=_0x249efc,this[_0x242874(0x158)]=_0x206244,this[_0x242874(0x11d)](),this[_0x242874(0x136)]();}[_0x479e02(0x11d)](){const _0x360ce3=_0x479e02;[x][_0x360ce3(0x1c0)](_0x3e5c5b=>{const _0x3be176=_0x360ce3;this[_0x3be176(0x1c7)](this[_0x3be176(0x230)][_0x3be176(0x1bf)](_0x3e5c5b));});}[_0x479e02(0x136)](){const _0xe58e8b=_0x479e02;this[_0xe58e8b(0x158)]['mergeMenu'](k);}};A=_([g(0x0,e[_0x479e02(0x1cb)]),g(0x1,r['IMenuManagerService'])],A);const j={'mcpStatus':{'disconnected':_0x479e02(0x178),'connecting':_0x479e02(0x190),'connected':_0x479e02(0x17b),'failed':_0x479e02(0x1c8),'retrying':'MCP\x20Retrying...','unknown':_0x479e02(0x155),'unauthorized':_0x479e02(0x22b),'sessionOccupied':_0x479e02(0x152),'networkError':_0x479e02(0x1a0),'maxRetriesExceeded':_0x479e02(0x201),'clickToConnect':_0x479e02(0x123),'clickToConfigure':_0x479e02(0x18a)},'mcpConfig':{'title':_0x479e02(0xf1),'description':_0x479e02(0x1f0),'apiKey':_0x479e02(0x1a6),'apiKeyPlaceholder':_0x479e02(0x11a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x479e02(0x1db),'enableAuthHint':_0x479e02(0x177),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x479e02(0x219),'configInstructions':_0x479e02(0x15b),'configStepTitle':_0x479e02(0xf4),'configStep1':_0x479e02(0x148),'configStep2':_0x479e02(0x20e),'configStep3':_0x479e02(0x125),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x479e02(0x1c5),'configParameters':_0x479e02(0xfd),'maxRetries':'Max\x20Retries','save':_0x479e02(0x19e),'saving':_0x479e02(0x1a7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x479e02(0x232),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x479e02(0xe9),'univerAiLabel':_0x479e02(0x179),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x479e02(0x192),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x479e02(0x1fe)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x479e02(0x160),'connected':_0x479e02(0x231),'failed':_0x479e02(0x19a),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x479e02(0x217),'sessionOccupied':_0x479e02(0x110),'networkError':_0x479e02(0x233),'maxRetriesExceeded':_0x479e02(0x126)}}},M={'mcpStatus':{'disconnected':_0x479e02(0x1f3),'connecting':_0x479e02(0x124),'connected':_0x479e02(0x169),'failed':'MCP\x20连接失败','retrying':_0x479e02(0x119),'unknown':_0x479e02(0x12b),'unauthorized':_0x479e02(0x213),'sessionOccupied':_0x479e02(0x14b),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x479e02(0x20d),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x479e02(0x1da),'description':_0x479e02(0x1aa),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x479e02(0x101),'apiKeyHint':_0x479e02(0x186),'enableAuth':_0x479e02(0x12a),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x479e02(0x189),'mcpClientConfig':_0x479e02(0x189),'configInstructions':_0x479e02(0x1b2),'configStepTitle':_0x479e02(0x132),'configStep1':_0x479e02(0x10b),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x479e02(0x1ec),'sessionId':_0x479e02(0x1f6),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x479e02(0x130),'configParameters':_0x479e02(0x235),'maxRetries':_0x479e02(0x18c),'save':'保存配置','saving':'保存中...','note1':_0x479e02(0x205),'note2':_0x479e02(0xf2),'configSaved':_0x479e02(0x1cd),'configError':_0x479e02(0x10f),'apiApplyInfo':{'title':_0x479e02(0x1eb),'description':_0x479e02(0x222),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x479e02(0x1be),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x479e02(0x1ac),'invalidApiKey':_0x479e02(0x106)},'connectionStatus':{'disconnected':_0x479e02(0x1f2),'connecting':'连接中...','connected':_0x479e02(0x117),'failed':_0x479e02(0x15d),'retrying':_0x479e02(0x1ba)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x479e02(0x22f),'networkError':_0x479e02(0x19c),'maxRetriesExceeded':_0x479e02(0x1ae)}}};var N=_0x479e02(0x127),P=_0x479e02(0x112);let F=class extends e[_0x479e02(0x154)]{constructor(_0x489a81=d,_0x3e7775,_0x33eec3,_0x1c64f8,_0x3733c0,_0x5c4060){const _0xf758c1=_0x479e02;super(),this[_0xf758c1(0x129)]=_0x489a81,this[_0xf758c1(0x227)]=_0x3e7775,this[_0xf758c1(0x226)]=_0x33eec3,this[_0xf758c1(0x209)]=_0x1c64f8,this['_localStorageService']=_0x3733c0,this[_0xf758c1(0x1dd)]=_0x5c4060;let {..._0x381c6e}=(0x0,e['merge'])({},d,this[_0xf758c1(0x129)]);this[_0xf758c1(0x226)][_0xf758c1(0x1fb)](u,_0x381c6e);}async[_0x479e02(0x1d5)](){const _0x1a75f3=_0x479e02;let _0x493cbd=[[E],[b],[A]];this['_injector'][_0x1a75f3(0x13b)](c['ISocketService'])||_0x493cbd[_0x1a75f3(0xf3)]([c['ISocketService'],{'useClass':c[_0x1a75f3(0xf7)]}]),_0x493cbd[_0x1a75f3(0x1c0)](_0x3773d0=>this['_injector'][_0x1a75f3(0x234)](_0x3773d0)),this[_0x1a75f3(0x227)]['get'](E),this[_0x1a75f3(0x227)][_0x1a75f3(0x1af)](b),this[_0x1a75f3(0x227)][_0x1a75f3(0x1af)](A);}};h(F,_0x479e02(0x143),'MCP_UI_PLUGIN'),h(F,'packageName',N),h(F,_0x479e02(0x163),P),F=_([(0x0,e['DependentOn'])(t[_0x479e02(0x211)]),g(0x1,(0x0,e[_0x479e02(0x135)])(e[_0x479e02(0x1f9)])),g(0x2,e['IConfigService']),g(0x3,r['IUIPartsService']),g(0x4,e[_0x479e02(0x139)]),g(0x5,(0x0,e[_0x479e02(0x135)])(e[_0x479e02(0xe1)]))],F),exports[_0x479e02(0x157)]=l,Object[_0x479e02(0xdd)](exports,_0x479e02(0xeb),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x479e02(0xdd)](exports,_0x479e02(0x21f),{'enumerable':!0x0,'get':function(){return E;}}),exports[_0x479e02(0x1e2)]=T,Object[_0x479e02(0xdd)](exports,'MCPUIMenuController',{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x479e02(0x223)]=x,Object['defineProperty'](exports,_0x479e02(0xfe),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x479e02(0x15e)]=j,exports['zhCN']=M;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x367eea=_0x38c2;function _0x5eaf(){const _0x40a3b1=['Configuration\x20Parameters:','1112lKpPmK','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','Univer\x20AI\x20Console','117930lZlaeY','MCP\x20Connection\x20Failed','Configuration\x20Steps:','MCP\x20Client\x20Configuration','Enable\x20Authentication','MCP\x20Retrying...','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','MCP:\x20Network\x20Error','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.','Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','9qoVIks','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','Invalid\x20configuration','Disconnected','611IDhRiZ','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','440lGWqnd','exports','6aRMMmk','Copy\x20the\x20JSON\x20configuration\x20below','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','656376FnPaSa','API\x20Key','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','7308104FdCTff','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','4261138wooBRx','544748luwNJJ','12225pIkvYh','MCP\x20Disconnected','Connected','MCP:\x20Session\x20ID\x20Occupied','279935kFyMkv','1VnQYcY','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status'];_0x5eaf=function(){return _0x40a3b1;};return _0x5eaf();}(function(_0x408eee,_0x553478){const _0x31213c=_0x38c2,_0x1fc2fa=_0x408eee();while(!![]){try{const _0x5319a3=parseInt(_0x31213c(0x80))/0x1*(parseInt(_0x31213c(0x7a))/0x2)+-parseInt(_0x31213c(0x7b))/0x3*(parseInt(_0x31213c(0x87))/0x4)+parseInt(_0x31213c(0x7f))/0x5*(-parseInt(_0x31213c(0xa3))/0x6)+-parseInt(_0x31213c(0x79))/0x7+-parseInt(_0x31213c(0x73))/0x8*(parseInt(_0x31213c(0x9a))/0x9)+-parseInt(_0x31213c(0x8b))/0xa*(-parseInt(_0x31213c(0xa1))/0xb)+-parseInt(_0x31213c(0x6f))/0xc*(-parseInt(_0x31213c(0x9f))/0xd);if(_0x5319a3===_0x553478)break;else _0x1fc2fa['push'](_0x1fc2fa['shift']());}catch(_0x15f1fb){_0x1fc2fa['push'](_0x1fc2fa['shift']());}}}(_0x5eaf,0x936a8));function _0x38c2(_0x3f258e,_0x428e32){_0x3f258e=_0x3f258e-0x6f;const _0x5eaf19=_0x5eaf();let _0x38c296=_0x5eaf19[_0x3f258e];return _0x38c296;}const e={'mcpStatus':{'disconnected':_0x367eea(0x7c),'connecting':_0x367eea(0x78),'connected':'MCP\x20Connected','failed':_0x367eea(0x8c),'retrying':_0x367eea(0x90),'unknown':_0x367eea(0x85),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x367eea(0x7e),'networkError':_0x367eea(0x95),'maxRetriesExceeded':_0x367eea(0x9c),'clickToConnect':_0x367eea(0x77),'clickToConfigure':_0x367eea(0x82)},'mcpConfig':{'title':_0x367eea(0x89),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x367eea(0x70),'apiKeyPlaceholder':_0x367eea(0x83),'apiKeyHint':_0x367eea(0x74),'enableAuth':_0x367eea(0x8f),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x367eea(0x8e),'mcpClientConfig':_0x367eea(0x8e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x367eea(0x8d),'configStep1':_0x367eea(0xa4),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x367eea(0x94),'sessionIdDescription':_0x367eea(0x76),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x367eea(0x86),'maxRetries':_0x367eea(0x9b),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x367eea(0x93),'note2':_0x367eea(0x84),'configSaved':_0x367eea(0x75),'configError':_0x367eea(0x91),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x367eea(0x97),'univerAiLabel':_0x367eea(0x8a),'getStarted':_0x367eea(0x72)},'validation':{'apiKeyRequired':_0x367eea(0x92),'apiKeyTooShort':_0x367eea(0x88),'invalidConfig':_0x367eea(0x9d),'invalidApiKey':_0x367eea(0x99)},'connectionStatus':{'disconnected':_0x367eea(0x9e),'connecting':_0x367eea(0x98),'connected':_0x367eea(0x7d),'failed':_0x367eea(0x96),'retrying':_0x367eea(0x71)},'connectionError':{'unauthorized':_0x367eea(0xa0),'sessionOccupied':_0x367eea(0xa5),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x367eea(0x81)}}};module[_0x367eea(0xa2)]=e;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x283c28=_0x3945;function _0x3945(_0x3abcb3,_0x7ef0af){_0x3abcb3=_0x3abcb3-0x114;const _0x5dffcf=_0x5dff();let _0x394555=_0x5dffcf[_0x3abcb3];return _0x394555;}(function(_0x3d5e5e,_0x4b6f22){const _0x48fb3a=_0x3945,_0x53084c=_0x3d5e5e();while(!![]){try{const _0x5a275c=parseInt(_0x48fb3a(0x117))/0x1+-parseInt(_0x48fb3a(0x12d))/0x2*(parseInt(_0x48fb3a(0x115))/0x3)+-parseInt(_0x48fb3a(0x11a))/0x4+-parseInt(_0x48fb3a(0x114))/0x5*(parseInt(_0x48fb3a(0x13f))/0x6)+parseInt(_0x48fb3a(0x116))/0x7+-parseInt(_0x48fb3a(0x123))/0x8*(-parseInt(_0x48fb3a(0x12e))/0x9)+-parseInt(_0x48fb3a(0x132))/0xa;if(_0x5a275c===_0x4b6f22)break;else _0x53084c['push'](_0x53084c['shift']());}catch(_0x1d064b){_0x53084c['push'](_0x53084c['shift']());}}}(_0x5dff,0xa287d));const e={'mcpStatus':{'disconnected':_0x283c28(0x13c),'connecting':'MCP\x20Connecting...','connected':_0x283c28(0x142),'failed':_0x283c28(0x12f),'retrying':_0x283c28(0x120),'unknown':_0x283c28(0x13b),'unauthorized':_0x283c28(0x11f),'sessionOccupied':_0x283c28(0x128),'networkError':_0x283c28(0x143),'maxRetriesExceeded':_0x283c28(0x11c),'clickToConnect':_0x283c28(0x135),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x283c28(0x134),'description':_0x283c28(0x139),'apiKey':_0x283c28(0x124),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x283c28(0x126),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x283c28(0x141),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x283c28(0x13a),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x283c28(0x138),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x283c28(0x130),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x283c28(0x131),'configParameters':_0x283c28(0x11b),'maxRetries':_0x283c28(0x12a),'save':_0x283c28(0x125),'saving':'Saving...','note1':_0x283c28(0x129),'note2':_0x283c28(0x13e),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x283c28(0x11d),'apiApplyInfo':{'title':_0x283c28(0x12c),'description':_0x283c28(0x136),'univerAiLabel':_0x283c28(0x133),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x283c28(0x137),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x283c28(0x119),'invalidApiKey':_0x283c28(0x122)},'connectionStatus':{'disconnected':_0x283c28(0x13d),'connecting':'Connecting...','connected':_0x283c28(0x12b),'failed':_0x283c28(0x118),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x283c28(0x127),'sessionOccupied':_0x283c28(0x140),'networkError':_0x283c28(0x121),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x283c28(0x11e)]=e;function _0x5dff(){const _0x1f256e=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','6066uAxNYt','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','MCP\x20Connected','MCP:\x20Network\x20Error','2655RnRtmt','12xlTPBR','7248955gdGxRk','1127559JGSmix','Connection\x20Failed','Invalid\x20configuration','664176VJmXND','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','exports','MCP:\x20Unauthorized','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','5234272KqbSti','API\x20Key','Save\x20Configuration','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Max\x20Retries','Connected','What\x20is\x20API\x20Key?','627178FDwRhx','18LIpQhT','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','8487260XrPXou','Univer\x20AI\x20Console','MCP\x20Configuration','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required','Copy\x20the\x20JSON\x20configuration\x20below','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','MCP\x20Disconnected','Disconnected'];_0x5dff=function(){return _0x1f256e;};return _0x5dff();}
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1f0e7f=_0x111c;function _0x434e(){const _0x2651db=['API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required','350892wUhXOX','Configuration\x20Parameters:','1593692fIVtaJ','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Network\x20Error','22WoTJLp','Max\x20Retries','MCP\x20Connected','10232388OhhVnr','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20Authentication','Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Unknown\x20Status','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','65883ynOerx','Saving...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','MCP\x20Retrying...','436512vAkZos','Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Retrying...','Save\x20Configuration','Enter\x20your\x20API\x20key','Invalid\x20configuration','2891077SZSGje','Configuration\x20Steps:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','5HtpLQv','327648biFlBI'];_0x434e=function(){return _0x2651db;};return _0x434e();}function _0x111c(_0x169a5f,_0xb43cae){_0x169a5f=_0x169a5f-0x19d;const _0x434ed0=_0x434e();let _0x111c13=_0x434ed0[_0x169a5f];return _0x111c13;}(function(_0x27bfe6,_0x22af4a){const _0x1766ea=_0x111c,_0x23800f=_0x27bfe6();while(!![]){try{const _0x4dbbf1=parseInt(_0x1766ea(0x1b9))/0x1+-parseInt(_0x1766ea(0x1a3))/0x2*(-parseInt(_0x1766ea(0x1b0))/0x3)+parseInt(_0x1766ea(0x1a0))/0x4+parseInt(_0x1766ea(0x1c9))/0x5*(-parseInt(_0x1766ea(0x19e))/0x6)+parseInt(_0x1766ea(0x1c0))/0x7+-parseInt(_0x1766ea(0x1ca))/0x8+-parseInt(_0x1766ea(0x1a6))/0x9;if(_0x4dbbf1===_0x22af4a)break;else _0x23800f['push'](_0x23800f['shift']());}catch(_0x4f6e2b){_0x23800f['push'](_0x23800f['shift']());}}}(_0x434e,0x3dcdb));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x1f0e7f(0x1a5),'failed':'MCP\x20Connection\x20Failed','retrying':_0x1f0e7f(0x1b8),'unknown':_0x1f0e7f(0x1ae),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1f0e7f(0x1b5),'networkError':_0x1f0e7f(0x1a2),'maxRetriesExceeded':_0x1f0e7f(0x1c4),'clickToConnect':_0x1f0e7f(0x1b7),'clickToConfigure':_0x1f0e7f(0x1c6)},'mcpConfig':{'title':_0x1f0e7f(0x1c3),'description':_0x1f0e7f(0x1ab),'apiKey':_0x1f0e7f(0x1b3),'apiKeyPlaceholder':_0x1f0e7f(0x1be),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1f0e7f(0x1a9),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x1f0e7f(0x1b4),'mcpClientConfig':_0x1f0e7f(0x1b4),'configInstructions':_0x1f0e7f(0x1c8),'configStepTitle':_0x1f0e7f(0x1c1),'configStep1':_0x1f0e7f(0x1a8),'configStep2':_0x1f0e7f(0x1a7),'configStep3':_0x1f0e7f(0x1bb),'sessionId':'Session\x20ID','sessionIdDescription':_0x1f0e7f(0x1af),'authorizationDescription':_0x1f0e7f(0x1ad),'configParameters':_0x1f0e7f(0x19f),'maxRetries':_0x1f0e7f(0x1a4),'save':_0x1f0e7f(0x1bd),'saving':_0x1f0e7f(0x1b1),'note1':_0x1f0e7f(0x1c7),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1f0e7f(0x1cb),'univerAiLabel':_0x1f0e7f(0x1ac),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1f0e7f(0x19d),'apiKeyTooShort':_0x1f0e7f(0x1c2),'invalidConfig':_0x1f0e7f(0x1bf),'invalidApiKey':_0x1f0e7f(0x1c5)},'connectionStatus':{'disconnected':_0x1f0e7f(0x1ba),'connecting':_0x1f0e7f(0x1aa),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x1f0e7f(0x1bc)},'connectionError':{'unauthorized':_0x1f0e7f(0x1a1),'sessionOccupied':_0x1f0e7f(0x1b6),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1f0e7f(0x1b2)}}};module['exports']=e;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x51951a=_0xb3ae;(function(_0x20dcde,_0x274876){const _0x223074=_0xb3ae,_0x354a31=_0x20dcde();while(!![]){try{const _0xf8536e=-parseInt(_0x223074(0x19e))/0x1+-parseInt(_0x223074(0x19c))/0x2+parseInt(_0x223074(0x19d))/0x3*(parseInt(_0x223074(0x1a4))/0x4)+parseInt(_0x223074(0x193))/0x5+-parseInt(_0x223074(0x190))/0x6*(parseInt(_0x223074(0x185))/0x7)+parseInt(_0x223074(0x18f))/0x8*(-parseInt(_0x223074(0x196))/0x9)+parseInt(_0x223074(0x1a2))/0xa;if(_0xf8536e===_0x274876)break;else _0x354a31['push'](_0x354a31['shift']());}catch(_0x504019){_0x354a31['push'](_0x354a31['shift']());}}}(_0xb206,0x8fd11));function _0xb3ae(_0xf56f74,_0x589beb){_0xf56f74=_0xf56f74-0x17c;const _0xb206c=_0xb206();let _0xb3ae4f=_0xb206c[_0xf56f74];return _0xb3ae4f;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x51951a(0x194),'connected':'MCP\x20Connected','failed':_0x51951a(0x18a),'retrying':_0x51951a(0x1ac),'unknown':_0x51951a(0x1a6),'unauthorized':_0x51951a(0x198),'sessionOccupied':_0x51951a(0x191),'networkError':_0x51951a(0x19a),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x51951a(0x181),'clickToConfigure':_0x51951a(0x18d)},'mcpConfig':{'title':_0x51951a(0x18e),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x51951a(0x1a3),'apiKeyPlaceholder':_0x51951a(0x1a5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x51951a(0x1aa),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x51951a(0x1a1),'mcpClientConfig':_0x51951a(0x1a1),'configInstructions':_0x51951a(0x1a9),'configStepTitle':_0x51951a(0x1a8),'configStep1':_0x51951a(0x182),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x51951a(0x184),'sessionId':_0x51951a(0x188),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x51951a(0x186),'maxRetries':_0x51951a(0x1a7),'save':_0x51951a(0x187),'saving':'Saving...','note1':_0x51951a(0x18b),'note2':_0x51951a(0x180),'configSaved':_0x51951a(0x17f),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x51951a(0x19b),'description':_0x51951a(0x17e),'univerAiLabel':_0x51951a(0x18c),'getStarted':_0x51951a(0x197)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x51951a(0x1a0),'invalidApiKey':_0x51951a(0x183)},'connectionStatus':{'disconnected':_0x51951a(0x189),'connecting':_0x51951a(0x17d),'connected':'Connected','failed':_0x51951a(0x199),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x51951a(0x192),'sessionOccupied':_0x51951a(0x1ab),'networkError':_0x51951a(0x195),'maxRetriesExceeded':_0x51951a(0x17c)}}};module[_0x51951a(0x19f)]=e;function _0xb206(){const _0x4c0b83=['What\x20is\x20API\x20Key?','2058472bKGsHQ','12ywBPxQ','489581iXFkQx','exports','Invalid\x20configuration','MCP\x20Client\x20Configuration','13516090AXtJLH','API\x20Key','930800UysYSU','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','Max\x20Retries','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20Authentication','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20connect\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','2706431PxApXN','Configuration\x20Parameters:','Save\x20Configuration','Session\x20ID','Disconnected','MCP\x20Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','1112PiUBKP','6hhZTxF','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5752515ZGVlMS','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','60759SuxHQz','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Unauthorized','Connection\x20Failed','MCP:\x20Network\x20Error'];_0xb206=function(){return _0x4c0b83;};return _0xb206();}
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x326734=_0xad92;function _0xad92(_0xf5b7ee,_0x3bb28c){_0xf5b7ee=_0xf5b7ee-0x1a7;const _0x372788=_0x3727();let _0xad927e=_0x372788[_0xf5b7ee];return _0xad927e;}(function(_0x225422,_0xb56f17){const _0x3ea85a=_0xad92,_0x38bf8e=_0x225422();while(!![]){try{const _0x9d4bd9=parseInt(_0x3ea85a(0x1d2))/0x1+-parseInt(_0x3ea85a(0x1b4))/0x2*(-parseInt(_0x3ea85a(0x1cc))/0x3)+parseInt(_0x3ea85a(0x1bf))/0x4*(-parseInt(_0x3ea85a(0x1d0))/0x5)+parseInt(_0x3ea85a(0x1c4))/0x6*(-parseInt(_0x3ea85a(0x1c9))/0x7)+-parseInt(_0x3ea85a(0x1c7))/0x8*(-parseInt(_0x3ea85a(0x1c0))/0x9)+-parseInt(_0x3ea85a(0x1cd))/0xa*(-parseInt(_0x3ea85a(0x1d1))/0xb)+parseInt(_0x3ea85a(0x1ab))/0xc*(-parseInt(_0x3ea85a(0x1be))/0xd);if(_0x9d4bd9===_0xb56f17)break;else _0x38bf8e['push'](_0x38bf8e['shift']());}catch(_0x4fb0b8){_0x38bf8e['push'](_0x38bf8e['shift']());}}}(_0x3727,0xaa5ca));function _0x3727(){const _0x10c546=['Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','26429ehnYbf','100SOepAE','22311yGLrIU','Configuration\x20Parameters:','Disconnected','Session\x20ID','54pSmTXU','Configuration\x20saved\x20successfully','Configuration\x20Steps:','32WXFyXc','MCP\x20Disconnected','656810pPmWcR','exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','6243tLgZbH','20xRdPuD','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Retrying...','223605TCAAiJ','3425675cAObie','672752AyUvVC','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.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Unknown\x20Status','Get\x20your\x20API\x20key\x20in\x20seconds','12ROCFjM','MCP:\x20Network\x20Error','Retrying...','MCP\x20Client\x20Configuration','API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20Authentication','MCP\x20Connecting...','1304pRNsHL','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','Max\x20Retries','MCP:\x20Unauthorized','MCP\x20Connected'];_0x3727=function(){return _0x10c546;};return _0x3727();}const e={'mcpStatus':{'disconnected':_0x326734(0x1c8),'connecting':_0x326734(0x1b3),'connected':_0x326734(0x1bb),'failed':'MCP\x20Connection\x20Failed','retrying':_0x326734(0x1cf),'unknown':_0x326734(0x1a9),'unauthorized':_0x326734(0x1ba),'sessionOccupied':_0x326734(0x1ce),'networkError':_0x326734(0x1ac),'maxRetriesExceeded':_0x326734(0x1d6),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x326734(0x1b0),'apiKey':_0x326734(0x1af),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x326734(0x1d3),'enableAuth':_0x326734(0x1b2),'enableAuthHint':_0x326734(0x1bd),'connectionInfo':_0x326734(0x1ae),'mcpClientConfig':_0x326734(0x1ae),'configInstructions':_0x326734(0x1bc),'configStepTitle':_0x326734(0x1c6),'configStep1':_0x326734(0x1a8),'configStep2':_0x326734(0x1b7),'configStep3':_0x326734(0x1d5),'sessionId':_0x326734(0x1c3),'sessionIdDescription':_0x326734(0x1d4),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x326734(0x1c1),'maxRetries':_0x326734(0x1b9),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x326734(0x1c5),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x326734(0x1a7),'description':_0x326734(0x1b1),'univerAiLabel':_0x326734(0x1b5),'getStarted':_0x326734(0x1aa)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x326734(0x1c2),'connecting':'Connecting...','connected':_0x326734(0x1b8),'failed':'Connection\x20Failed','retrying':_0x326734(0x1ad)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x326734(0x1cb),'networkError':_0x326734(0x1b6),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x326734(0x1ca)]=e;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1892b2=_0x24de;function _0x1ad3(){const _0x2fad6b=['APIキーはこのブラウザのローカルに保存されます','24555792QJqySI','接続済み','MCP:\x20ネットワークエラー','接続中...','接続失敗','MCP設定','MCPクライアントの設定ファイルに設定を追加','認証に失敗しました。APIキーを確認してください','26xmvxDD','以下のJSON設定をコピー','認証を有効にする','MCPクライアント設定','設定手順:','MCP\x20接続失敗','MCP:\x20認証されていません','890oXGxQw','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','23553SvOiRO','MCP:\x20最大再試行回数を超過','APIキー','7qDYqjC','5645qqDUma','設定の保存に失敗しました','APIキーとは?','exports','1922568kNFwkI','42295Qatgxk','クリックしてMCPを設定','MCP\x20不明な状態','MCP\x20接続中...','8RfodBd','818796TXwNMU','セッションIDが現在使用中です。後でもう一度お試しください','MCPを設定してAIでスプレッドシートを操作','無効な設定','2428182FPnjrA','セッションID','APIキーはローカルストレージに安全に保存されます','MCPクライアントの設定に次の設定を追加してください:','MCP\x20再試行中...','APIキーを入力してください','5cvmJZw','Univer\x20AIコンソール','MCPクライアントを再起動して設定を適用','保存中...','MCP\x20未接続','Bearerプレフィックス付きのAPIキー。','APIキーは必須です'];_0x1ad3=function(){return _0x2fad6b;};return _0x1ad3();}(function(_0x2e59b3,_0x2b1837){const _0x26fcee=_0x24de,_0x2ef160=_0x2e59b3();while(!![]){try{const _0x23b77e=parseInt(_0x26fcee(0xd7))/0x1*(parseInt(_0x26fcee(0xca))/0x2)+-parseInt(_0x26fcee(0xb4))/0x3+parseInt(_0x26fcee(0xe1))/0x4*(-parseInt(_0x26fcee(0xba))/0x5)+parseInt(_0x26fcee(0xdb))/0x6*(-parseInt(_0x26fcee(0xd6))/0x7)+parseInt(_0x26fcee(0xe0))/0x8*(-parseInt(_0x26fcee(0xd3))/0x9)+parseInt(_0x26fcee(0xd1))/0xa*(-parseInt(_0x26fcee(0xdc))/0xb)+parseInt(_0x26fcee(0xc2))/0xc;if(_0x23b77e===_0x2b1837)break;else _0x2ef160['push'](_0x2ef160['shift']());}catch(_0x13ff00){_0x2ef160['push'](_0x2ef160['shift']());}}}(_0x1ad3,0x6b826));function _0x24de(_0xb00217,_0x1d12d5){_0xb00217=_0xb00217-0xb4;const _0x1ad3a2=_0x1ad3();let _0x24de30=_0x1ad3a2[_0xb00217];return _0x24de30;}const e={'mcpStatus':{'disconnected':_0x1892b2(0xbe),'connecting':_0x1892b2(0xdf),'connected':'MCP\x20接続済み','failed':_0x1892b2(0xcf),'retrying':_0x1892b2(0xb8),'unknown':_0x1892b2(0xde),'unauthorized':_0x1892b2(0xd0),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x1892b2(0xc4),'maxRetriesExceeded':_0x1892b2(0xd4),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x1892b2(0xdd)},'mcpConfig':{'title':_0x1892b2(0xc7),'description':_0x1892b2(0xe3),'apiKey':_0x1892b2(0xd5),'apiKeyPlaceholder':_0x1892b2(0xb9),'apiKeyHint':_0x1892b2(0xc1),'enableAuth':_0x1892b2(0xcc),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':'MCPクライアント設定','mcpClientConfig':_0x1892b2(0xcd),'configInstructions':_0x1892b2(0xb7),'configStepTitle':_0x1892b2(0xce),'configStep1':_0x1892b2(0xcb),'configStep2':_0x1892b2(0xc8),'configStep3':_0x1892b2(0xbc),'sessionId':_0x1892b2(0xb5),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x1892b2(0xbf),'configParameters':'設定パラメータ:','maxRetries':'最大再試行回数','save':'設定を保存','saving':_0x1892b2(0xbd),'note1':'設定の変更は直ちに有効になります','note2':_0x1892b2(0xb6),'configSaved':'設定が正常に保存されました','configError':_0x1892b2(0xd8),'apiApplyInfo':{'title':_0x1892b2(0xd9),'description':_0x1892b2(0xd2),'univerAiLabel':_0x1892b2(0xbb),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x1892b2(0xc0),'apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x1892b2(0xe4),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':'未接続','connecting':_0x1892b2(0xc5),'connected':_0x1892b2(0xc3),'failed':_0x1892b2(0xc6),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x1892b2(0xc9),'sessionOccupied':_0x1892b2(0xe2),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};module[_0x1892b2(0xda)]=e;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1858(_0x20ecf9,_0x227543){_0x20ecf9=_0x20ecf9-0x18a;const _0x393080=_0x3930();let _0x18588e=_0x393080[_0x20ecf9];return _0x18588e;}const _0xf294be=_0x1858;(function(_0x2d4a9b,_0x29a210){const _0x10e7ca=_0x1858,_0x84140a=_0x2d4a9b();while(!![]){try{const _0x9fdbb2=parseInt(_0x10e7ca(0x1ae))/0x1+parseInt(_0x10e7ca(0x1b4))/0x2*(-parseInt(_0x10e7ca(0x18a))/0x3)+-parseInt(_0x10e7ca(0x1a9))/0x4*(parseInt(_0x10e7ca(0x192))/0x5)+parseInt(_0x10e7ca(0x1a5))/0x6*(parseInt(_0x10e7ca(0x18d))/0x7)+parseInt(_0x10e7ca(0x199))/0x8+parseInt(_0x10e7ca(0x1b7))/0x9+-parseInt(_0x10e7ca(0x1b1))/0xa*(-parseInt(_0x10e7ca(0x191))/0xb);if(_0x9fdbb2===_0x29a210)break;else _0x84140a['push'](_0x84140a['shift']());}catch(_0x15d001){_0x84140a['push'](_0x84140a['shift']());}}}(_0x3930,0x1e97f));const e={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':'MCP\x20연결\x20중...','connected':'MCP\x20연결됨','failed':_0xf294be(0x1a4),'retrying':_0xf294be(0x18f),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0xf294be(0x1a0),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0xf294be(0x1a6),'maxRetriesExceeded':_0xf294be(0x1b0),'clickToConnect':_0xf294be(0x1b6),'clickToConfigure':_0xf294be(0x19e)},'mcpConfig':{'title':_0xf294be(0x19c),'description':_0xf294be(0x190),'apiKey':_0xf294be(0x1b2),'apiKeyPlaceholder':'API\x20키를\x20입력하세요','apiKeyHint':_0xf294be(0x198),'enableAuth':_0xf294be(0x193),'enableAuthHint':_0xf294be(0x19f),'connectionInfo':_0xf294be(0x19d),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':'MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','configStepTitle':'설정\x20단계:','configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0xf294be(0x1ab),'configStep3':_0xf294be(0x1ba),'sessionId':_0xf294be(0x195),'sessionIdDescription':_0xf294be(0x1bb),'authorizationDescription':_0xf294be(0x196),'configParameters':_0xf294be(0x1bd),'maxRetries':_0xf294be(0x18b),'save':_0xf294be(0x1b5),'saving':_0xf294be(0x18c),'note1':_0xf294be(0x1a1),'note2':_0xf294be(0x19b),'configSaved':_0xf294be(0x1b8),'configError':'설정\x20저장\x20실패','apiApplyInfo':{'title':_0xf294be(0x197),'description':_0xf294be(0x1af),'univerAiLabel':_0xf294be(0x194),'getStarted':_0xf294be(0x1a2)},'validation':{'apiKeyRequired':_0xf294be(0x1a3),'apiKeyTooShort':_0xf294be(0x18e),'invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':_0xf294be(0x1ad)},'connectionStatus':{'disconnected':_0xf294be(0x1b3),'connecting':_0xf294be(0x1aa),'connected':'연결됨','failed':_0xf294be(0x1a7),'retrying':_0xf294be(0x19a)},'connectionError':{'unauthorized':_0xf294be(0x1ac),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':_0xf294be(0x1bc),'maxRetriesExceeded':_0xf294be(0x1b9)}}};module[_0xf294be(0x1a8)]=e;function _0x3930(){const _0x202edd=['MCP\x20연결\x20실패','15636FofTbW','MCP:\x20네트워크\x20오류','연결\x20실패','exports','20RuYWDT','연결\x20중...','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','인증\x20실패.\x20API\x20키를\x20확인하세요','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','84877slTRuv','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','MCP:\x20최대\x20재시도\x20횟수\x20초과','22810GGWTqy','API\x20키','연결\x20끊김','102BqmTZX','설정\x20저장','클릭하여\x20MCP\x20연결','1572057vdDoLw','설정이\x20성공적으로\x20저장되었습니다','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','설정\x20매개변수:','10617qPIBkl','최대\x20재시도\x20횟수','저장\x20중...','133qlAiUz','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP\x20재시도\x20중...','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','22pwJCTv','61855KXdZav','인증\x20활성화','Univer\x20AI\x20콘솔','세션\x20ID','Bearer\x20접두사가\x20있는\x20API\x20키.','API\x20키란\x20무엇인가요?','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','432232RlYxUI','재시도\x20중...','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','MCP\x20설정','MCP\x20클라이언트\x20설정','클릭하여\x20MCP\x20설정','보안\x20연결을\x20위해\x20인증\x20활성화','MCP:\x20인증되지\x20않음','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','몇\x20초\x20만에\x20API\x20키\x20발급받기','API\x20키는\x20필수입니다'];_0x3930=function(){return _0x202edd;};return _0x3930();}
|