@univerjs-pro/mcp-ui 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4a528e=_0x1c93;(function(_0x17a5ff,_0x11f00b){const _0xcb9cc9=_0x1c93,_0x1556b4=_0x17a5ff();while(!![]){try{const _0x107f5b=-parseInt(_0xcb9cc9(0x230))/0x1+-parseInt(_0xcb9cc9(0x156))/0x2+-parseInt(_0xcb9cc9(0x226))/0x3*(-parseInt(_0xcb9cc9(0x20e))/0x4)+parseInt(_0xcb9cc9(0x15d))/0x5*(parseInt(_0xcb9cc9(0x212))/0x6)+parseInt(_0xcb9cc9(0x245))/0x7*(parseInt(_0xcb9cc9(0x13b))/0x8)+-parseInt(_0xcb9cc9(0x16a))/0x9+parseInt(_0xcb9cc9(0x1f2))/0xa;if(_0x107f5b===_0x11f00b)break;else _0x1556b4['push'](_0x1556b4['shift']());}catch(_0x413ac2){_0x1556b4['push'](_0x1556b4['shift']());}}}(_0x4af5,0x91b74));import{CommandType as _0x24f842,DependentOn as _0x301de1,Disposable as _0x104263,ICommandService as _0x3dd060,IConfigService as _0x5c1546,ILocalStorageService as _0x51289c,ILogService as _0x5688b6,Inject as _0x520f38,Injector as _0x52d720,LocaleService as _0x1c055e,Plugin as _0x1904dc,merge as _0x30ce96}from'@univerjs/core';import{MCPConnectionController as _0x59b840,MCPConnectionError as _0x5b2f42,MCPConnectionStatus as _0x12d328,MCP_PLUGIN_CONFIG_KEY as _0x388181,UniverMCPPlugin as _0x2c3451}from'@univerjs-pro/mcp';import{Button as _0x40886f,Input as _0x1b8384,MessageType as _0x43e9d1,Tooltip as _0x17feeb,clsx as _0x4edf12}from'@univerjs/design';import{BuiltInUIPart as _0x2f6062,ComponentManager as _0x347581,IDialogService as _0xf080f,IMenuManagerService as _0x29010f,IMessageService as _0x1e86e2,IUIPartsService as _0x4b1764,MenuItemType as _0x616908,RibbonStartGroup as _0x4b7d34,connectInjector as _0x3eb632,useDependency as _0x27fbf1,useObservable as _0x4e5559}from'@univerjs/ui';import{BehaviorSubject as _0x1489c4}from'rxjs';import{CheckMarkIcon as _0x34eb61,CloseIcon as _0x520d07,HelpIcon as _0x28aa91,OffLineIcon as _0x178dec,OnLineIcon as _0xfd0da4}from'@univerjs/icons';import{useCallback as _0x2f9a45,useState as _0x4b5271}from'react';import{jsx as _0x1b0256,jsxs as _0x1a9f70}from'react/jsx-runtime';import{ISocketService as _0x255d94,WebSocketService as _0x11bb76}from'@univerjs/network';function z(_0x46eb76){const _0x2a05d1=_0x1c93;var _0x2b1d77,_0x403590;let {mcpCoreConfig:_0x1dcd88,onSave:_0x535973,loading:_0x2b8ebb=!0x1,config:_0x432097,connectionStatus$:_0x11f7e1,connectionError$:_0x425667,currentApiKey$:_0x397c46,currentSessionId$:_0x365a95}=_0x46eb76,_0x1b1753=_0x27fbf1(_0x1c055e),_0x473dc4=_0x4e5559(_0x11f7e1,_0x12d328[_0x2a05d1(0x205)]),_0x320a4c=_0x4e5559(_0x425667,_0x5b2f42[_0x2a05d1(0x215)]),_0x479a4e=_0x4e5559(_0x365a95,''),[_0x1ce765,_0xc9cb53]=_0x4b5271(_0x4e5559(_0x397c46,'')||''),_0x433cc4=_0x432097['showDeveloperTools']&&_0x1dcd88[_0x2a05d1(0x227)]&&(_0x1dcd88[_0x2a05d1(0x227)]['includes'](_0x2a05d1(0x149))||_0x1dcd88[_0x2a05d1(0x227)][_0x2a05d1(0x1f6)](_0x2a05d1(0x122))),_0x3fd400=(_0x2b1d77=_0x1dcd88[_0x2a05d1(0x227)])==null?void 0x0:_0x2b1d77['includes'](_0x2a05d1(0x149)),_0x58457c=(_0x403590=_0x1dcd88['mcpServerUrl'])==null?void 0x0:_0x403590[_0x2a05d1(0x1f6)](_0x2a05d1(0x122)),_0x48dfc0=_0x3fd400?_0x2a05d1(0x1ba):'https://console.univer.ai',_0x512318=_0x432097[_0x2a05d1(0x1d8)]&&(_0x3fd400||_0x58457c),[_0x576e05,_0xda3b36]=_0x4b5271(!_0x1ce765[_0x2a05d1(0x240)]()),_0x4c28d6=(_0x512424,_0x1ac0f1)=>{const _0x9f9a6a=_0x2a05d1;if(_0x1ac0f1===_0x5b2f42['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x512424){case _0x12d328[_0x9f9a6a(0x169)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x12d328[_0x9f9a6a(0x244)]:case _0x12d328[_0x9f9a6a(0x1bb)]:return _0x9f9a6a(0x231);case _0x12d328['FAILED']:return _0x9f9a6a(0x14a);default:return _0x9f9a6a(0x150);}},_0x16c4ac=(_0x5ddacc,_0x130e65)=>{const _0x31c4d6=_0x2a05d1;if(_0x130e65===_0x5b2f42[_0x31c4d6(0x1e6)])return _0x31c4d6(0x157);switch(_0x5ddacc){case _0x12d328[_0x31c4d6(0x169)]:return _0x31c4d6(0x1ac);case _0x12d328[_0x31c4d6(0x244)]:case _0x12d328[_0x31c4d6(0x1bb)]:return'univer-bg-blue-500';case _0x12d328[_0x31c4d6(0x127)]:return _0x31c4d6(0x157);default:return _0x31c4d6(0x131);}},_0x18753d=_0x31d846=>{const _0x28e3a7=_0x2a05d1;switch(_0x31d846){case _0x12d328[_0x28e3a7(0x169)]:return _0x1b1753['t'](_0x28e3a7(0x1c1));case _0x12d328[_0x28e3a7(0x244)]:return _0x1b1753['t'](_0x28e3a7(0x165));case _0x12d328[_0x28e3a7(0x127)]:return _0x1b1753['t'](_0x28e3a7(0x1e9));case _0x12d328['RETRYING']:return _0x1b1753['t'](_0x28e3a7(0x137));default:return _0x1b1753['t'](_0x28e3a7(0x18e));}},_0x43016f=_0x43dc54=>{const _0x17a83f=_0x2a05d1;switch(_0x43dc54){case _0x5b2f42['UNAUTHORIZED']:return _0x1b1753['t'](_0x17a83f(0x163));case _0x5b2f42['SESSION_ID_OCCUPIED']:return _0x1b1753['t']('mcpConfig.connectionError.sessionOccupied');case _0x5b2f42['NETWORK_ERROR']:return _0x1b1753['t'](_0x17a83f(0x233));case _0x5b2f42['MAX_RETRIES_EXCEEDED']:return _0x1b1753['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x425feb=_0x2f9a45(()=>{const _0x406b31=_0x2a05d1;_0x535973({..._0x1dcd88,'apiKey':_0x1ce765[_0x406b31(0x240)](),'enableAuth':!0x0});},[_0x1dcd88,_0x1ce765,!0x0,_0x535973]),_0x135844=_0x1ce765[_0x2a05d1(0x240)]()[_0x2a05d1(0x192)]>0x0;return _0x1a9f70('div',{'className':_0x2a05d1(0x1d4),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x1a9f70('div',{'className':_0x2a05d1(0x1a7),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x13c),'children':_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-text-white','children':'⚙'})}),_0x1b0256('div',{'children':_0x1b0256('p',{'className':_0x2a05d1(0x1be),'children':_0x1b1753['t'](_0x2a05d1(0x18d))})})]})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x186),'children':[_0x1b0256('div',{'className':_0x4edf12(_0x2a05d1(0x22e),_0x4c28d6(_0x473dc4,_0x320a4c)),'children':_0x1a9f70('div',{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x4edf12(_0x2a05d1(0x158),_0x16c4ac(_0x473dc4,_0x320a4c))}),_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x1df),'children':_0x18753d(_0x473dc4)})]})}),_0x320a4c!==_0x5b2f42['NONE']&&(_0x473dc4===_0x12d328[_0x2a05d1(0x127)]||_0x320a4c===_0x5b2f42[_0x2a05d1(0x1e6)])&&_0x1b0256('div',{'className':_0x2a05d1(0x18b),'children':_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x13d),'children':[_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x1b0256('p',{'className':_0x2a05d1(0x19c),'children':_0x43016f(_0x320a4c)})]})})]}),_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x10e),'children':_0x1a9f70('div',{'className':_0x2a05d1(0x11f),'children':[_0x1a9f70('div',{'className':_0x2a05d1(0x1d2),'children':[_0x1a9f70(_0x2a05d1(0x1a4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x1b0256(_0x2a05d1(0x17d),{'children':'🔑'}),'\x20',_0x1b1753['t'](_0x2a05d1(0x203)),_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x216),'children':'*'}),_0x433cc4&&_0x1b0256('a',{'className':_0x2a05d1(0x1bf),'title':_0x1b1753['t'](_0x2a05d1(0x211)),'role':_0x2a05d1(0x13e),'onClick':()=>_0xda3b36(!0x0),'children':_0x1b0256(_0x28aa91,{})})]}),_0x1b0256(_0x1b8384,{'type':'text','placeholder':_0x1b1753['t'](_0x2a05d1(0x1da)),'value':_0x1ce765,'disabled':_0x2b8ebb,'autoComplete':_0x2a05d1(0x164),'onChange':_0xc9cb53}),_0x1b0256('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1b1753['t'](_0x2a05d1(0x1b3))})]}),_0x433cc4&&_0x576e05&&_0x1a9f70(_0x2a05d1(0x12b),{'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':[_0x1b0256('a',{'className':_0x2a05d1(0x1c4),'role':_0x2a05d1(0x13e),'onClick':()=>_0xda3b36(!0x1),'children':_0x1b0256(_0x520d07,{'className':_0x2a05d1(0x15f)})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x10f),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x1f4),'children':_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-text-blue-600','children':'🚀'})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x148),'children':[_0x1b0256('h4',{'className':_0x2a05d1(0x1d9),'children':_0x1b1753['t'](_0x2a05d1(0x211))}),_0x1b0256('p',{'className':_0x2a05d1(0x22a),'children':_0x1b1753['t'](_0x2a05d1(0x20d))}),_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x132),'children':_0x512318&&_0x1a9f70('a',{'className':_0x2a05d1(0x14d),'href':_0x48dfc0,'target':_0x2a05d1(0x221),'rel':_0x2a05d1(0x1c2),'children':[_0x1b0256('span',{'children':'🤖'}),_0x1b1753['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x1b1753['t'](_0x2a05d1(0x114))]})]})]})]}),_0x432097[_0x2a05d1(0x1d8)]&&_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x179),'children':[_0x1a9f70('h4',{'className':_0x2a05d1(0x17e),'children':[_0x1b0256(_0x2a05d1(0x17d),{'children':'🔗'}),'\x20',_0x1b1753['t'](_0x2a05d1(0x1cc))]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x167),'children':[_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-space-y-3','children':[_0x1b0256('p',{'className':_0x2a05d1(0x206),'children':_0x1b1753['t'](_0x2a05d1(0x168))}),_0x1a9f70('div',{'className':_0x2a05d1(0x1d2),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x16b),'children':_0x1b1753['t'](_0x2a05d1(0x11d))}),_0x1a9f70('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x15b),'children':'1'}),_0x1b1753['t'](_0x2a05d1(0x1cd))]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1b0256(_0x2a05d1(0x17d),{'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':'2'}),_0x1b1753['t'](_0x2a05d1(0x213))]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x15b),'children':'3'}),_0x1b1753['t'](_0x2a05d1(0x196))]})]})]})]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x1d2),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x16b),'children':_0x2a05d1(0x246)}),_0x1b0256('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x1b0256('pre',{'className':_0x2a05d1(0x237),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x2a05d1(0x1a0)+(_0x479a4e||_0x2a05d1(0x22b)),'type':_0x2a05d1(0x198),'headers':{'Authorization':_0x2a05d1(0x1f7)+(_0x1ce765||_0x2a05d1(0x1ce))}}}},null,0x2)})})]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x1ca),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x16b),'children':_0x1b1753['t'](_0x2a05d1(0x147))}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x1d2),'children':[_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x208)}),_0x1a9f70('div',{'className':_0x2a05d1(0x1bc),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x234),'children':_0x2a05d1(0x145)}),_0x1b0256('div',{'className':_0x2a05d1(0x249),'children':_0x1b1753['t'](_0x2a05d1(0x112))})]})]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x20c),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x208)}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x1b0256('div',{'className':_0x2a05d1(0x234),'children':_0x2a05d1(0x14f)}),_0x1b0256('div',{'className':_0x2a05d1(0x249),'children':_0x1b1753['t'](_0x2a05d1(0x228))})]})]})]})]})]})]}),_0x1b0256(_0x40886f,{'onClick':_0x425feb,'disabled':!_0x135844||_0x2b8ebb,'className':_0x2a05d1(0x201),'children':_0x2b8ebb?_0x1a9f70(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x2a05d1(0x17d),{'children':'⟲'}),_0x1b1753['t'](_0x2a05d1(0x1ed))]}):_0x1a9f70('span',{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x34eb61,{}),_0x1b1753['t'](_0x2a05d1(0x185))]})}),_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x21b),'children':_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x17f),'children':[_0x1b0256('span',{'className':_0x2a05d1(0x133),'children':'💡'}),_0x1a9f70('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x1b0256('div',{'className':_0x2a05d1(0x12c),'children':'Configuration\x20Notes:'}),_0x1a9f70(_0x2a05d1(0x12b),{'children':['•',_0x1b1753['t'](_0x2a05d1(0x243))]}),_0x1a9f70(_0x2a05d1(0x12b),{'children':['•',_0x1b1753['t'](_0x2a05d1(0x23c))]})]})]})})]})})]});}function _0x4af5(){const _0x6c020=['MCP\x20状态未知','getCurrentConfig','getConfig','validateApiKey','_initAutoConnect','mcpConfig.apiKeyHint','connectionError$','error','Enter\x20your\x20API\x20key','default','MCP:\x20Network\x20Error','已连接','https://console.univer.plus','RETRYING','univer-min-w-0\x20univer-flex-1','_injector','univer-text-sm\x20univer-text-gray-500','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','forEach','mcpConfig.connectionStatus.connected','noopener\x20noreferrer','open','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','Configuration\x20Parameters:','MCP\x20连接中...','mcp-ui.config','Configuration\x20Steps:','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-space-y-3','has','mcpConfig.connectionInfo','mcpConfig.configStep1','<API_KEY>','function','version','_mcpCoreConfig$','univer-space-y-2','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.failed','网络连接错误,请检查您的网络连接','showDeveloperTools','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.apiKeyPlaceholder','defineProperty','mcpStatus.unknown','请输入您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','univer-text-sm\x20univer-font-medium','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','getOwnPropertyDescriptor','@univerjs-pro/mcp-ui','MCP\x20已断开','mcpStatus.retrying','MAX_RETRIES_EXCEEDED','UNAUTHORIZED','_initializeMenus','_configService','mcpConfig.connectionStatus.failed','_validateConfig','value','Click\x20to\x20configure\x20MCP','mcpConfig.saving','_connectionController','复制以下\x20JSON\x20配置','连接中...','_apiKey$','6792360wcqPyp','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcp-ui.command.openConfigPanel','includes','Bearer\x20','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','_loadStoredApiKey','mcpConfig.configError','MCP\x20Disconnected','_config','close','几秒钟内获取您的\x20API\x20密钥','subscribe','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','_registerComponent','mcpConfig.apiKey','保存配置','DISCONNECTED','univer-text-xs\x20univer-text-gray-600','配置保存成功','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Univer\x20AI\x20控制台','MCP\x20连接失败','重连中...','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.apiApplyInfo.description','4ecyqJe','MCPConfigPanel','sessionId$','mcpConfig.apiApplyInfo.title','6THUfdi','mcpConfig.configStep2','toPrimitive','NONE','univer-text-red-500','univer-text-yellow-500','API\x20密钥长度至少需要\x2010\x20位','_uiPartsService','_initConfigSync','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-text-gray-500','mcpStatus.clickToConfigure','_mcpConnectionController','setConfig','isValid','_blank','iterator','OTHERS','Connecting...','配置无效','514497vNHLiT','mcpServerUrl','mcpConfig.authorizationDescription','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','<SESSION_ID>','Error','errorMessage','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','您的\x20API\x20密钥安全存储在本地存储中','194166Ggyolr','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_componentManager','mcpConfig.connectionError.networkError','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20配置','_initializeCommands','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_localStorageService','mcp-config-dialog','removeItem','symbol','mcpConfig.note2','mcpConfig.validation.invalidApiKey','_createConfigPanelComponent','MCP\x20Client\x20Configuration','trim','Failed\x20to\x20save\x20configuration','SESSION_ID_OCCUPIED','mcpConfig.note1','CONNECTING','7564501duMupm','MCP\x20Configuration','registerComponent','Configuration\x20saved\x20successfully','univer-text-xs\x20univer-text-gray-500','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','prototype','onStarting','mcpConfig.sessionIdDescription','_config$','mcpConfig.apiApplyInfo.getStarted','get','MCP:\x20网络错误','MCP\x20Connection\x20Failed','_messageService','_commandService','mergeMenu','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_dialogService','mcpConfig.configStepTitle','保存中...','univer-space-y-5','object','Connection\x20Failed','univer.ai','权限验证失败,请检查您的\x20API\x20密钥','未连接','点击连接\x20MCP','mcpConfig.title','FAILED','API\x20密钥不能为空','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','div','univer-font-medium','showStatus','_loading$','univer-flex\x20univer-items-center\x20univer-gap-2','MCP_UI_PLUGIN','univer-bg-gray-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-shrink-0\x20univer-text-blue-500','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','配置保存失败','超出最大重试次数,请稍后再试','mcpConfig.connectionStatus.retrying','Retrying...','最大重试次数','warn','8LVVnwZ','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-flex\x20univer-items-start\x20univer-gap-2','button','启用身份验证以获得安全连接','add','mcpStatus.networkError','connectionStatus$','mcpStatus.maxRetriesExceeded','_logService','univer_session_id:','配置更改将立即生效','mcpConfig.configParameters','univer-flex-1','univer.plus','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.configSaved','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','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','\x20-\x20','Authorization:','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','HEADER_MENU','BUTTON','string','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','2267618dOuidq','univer-bg-red-500','univer-size-2\x20univer-rounded-full','__setCustomHeaders','带有\x20Bearer\x20前缀的\x20API\x20密钥。','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','show','284855XzjZbf','MCP\x20客户端配置','univer-size-4','NETWORK_ERROR','MCP:\x20会话\x20ID\x20已被占用','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.connectionError.unauthorized','off','mcpConfig.connectionStatus.connecting','API\x20Key','univer-space-y-4','mcpConfig.configInstructions','CONNECTED','571698xpHMlT','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','API\x20密钥','_initStatusComponent','mcp.apiKey','MCP\x20Unknown\x20Status','_handleConfigSave','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','call','0.25.0','MCP\x20已连接','Session\x20ID','MCP\x20重连中...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','点击配置\x20MCP','univer-text-green-500','span','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-gap-3','showConfigPanel','apiKey','mcpStatus.unauthorized','_handleConfigure','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.save','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.validation.apiKeyRequired','registerCommand','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Univer\x20AI\x20Console','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Success','mcpConfig.description','mcpConfig.connectionStatus.disconnected','register','push','什么是\x20API\x20密钥?','length','next','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.configStep3','enableAutoConnect','http','pluginName','mcpConfig.validation.apiKeyTooShort','mcpStatus.connected','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_localeService','API\x20key\x20is\x20required','https://mcp.univer.ai/mcp/?univer_session_id=','disposeWithMe','MCP:\x20超出最大重试次数','constructor','label','Connected','setItem','univer-flex\x20univer-items-center\x20univer-gap-3','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','decorate','MCP:\x20Unauthorized','API\x20密钥无效,请检查密钥是否正确','univer-bg-green-500','MCP\x20Connecting...'];_0x4af5=function(){return _0x6c020;};return _0x4af5();}const B=_0x4a528e(0x1c7),V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x22f856){'@babel/helpers - typeof';const _0x4ce639=_0x4a528e;return H=typeof Symbol==_0x4ce639(0x1cf)&&typeof Symbol[_0x4ce639(0x222)]==_0x4ce639(0x23b)?function(_0x3b3ecf){return typeof _0x3b3ecf;}:function(_0x2d4079){const _0xf5be9c=_0x4ce639;return _0x2d4079&&typeof Symbol==_0xf5be9c(0x1cf)&&_0x2d4079[_0xf5be9c(0x1a3)]===Symbol&&_0x2d4079!==Symbol[_0xf5be9c(0x110)]?_0xf5be9c(0x23b):typeof _0x2d4079;},H(_0x22f856);}function oe(_0x1b2fb7,_0x4484f1){const _0x284556=_0x4a528e;if(H(_0x1b2fb7)!=_0x284556(0x120)||!_0x1b2fb7)return _0x1b2fb7;var _0x4160db=_0x1b2fb7[Symbol[_0x284556(0x214)]];if(_0x4160db!==void 0x0){var _0x552ddf=_0x4160db[_0x284556(0x173)](_0x1b2fb7,_0x4484f1||_0x284556(0x1b7));if(H(_0x552ddf)!=_0x284556(0x120))return _0x552ddf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4484f1===_0x284556(0x153)?String:Number)(_0x1b2fb7);}function se(_0x43e022){const _0x4162b0=_0x4a528e;var _0x44dd41=oe(_0x43e022,_0x4162b0(0x153));return H(_0x44dd41)==_0x4162b0(0x23b)?_0x44dd41:_0x44dd41+'';}function U(_0xc6b90b,_0x5f0f60,_0x317fa5){const _0x1fbeee=_0x4a528e;return(_0x5f0f60=se(_0x5f0f60))in _0xc6b90b?Object[_0x1fbeee(0x1db)](_0xc6b90b,_0x5f0f60,{'value':_0x317fa5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc6b90b[_0x5f0f60]=_0x317fa5,_0xc6b90b;}function W(_0x8a53e4,_0x54bf54){return function(_0xd0b5d3,_0x20059b){_0x54bf54(_0xd0b5d3,_0x20059b,_0x8a53e4);};}function G(_0x246257,_0x10ce85,_0x3b06f0,_0x34c465){const _0x50abc4=_0x4a528e;var _0x35043f=arguments[_0x50abc4(0x192)],_0x5543aa=_0x35043f<0x3?_0x10ce85:_0x34c465===null?_0x34c465=Object[_0x50abc4(0x1e1)](_0x10ce85,_0x3b06f0):_0x34c465,_0x1c82d2;if(typeof Reflect=='object'&&typeof Reflect[_0x50abc4(0x1a9)]==_0x50abc4(0x1cf))_0x5543aa=Reflect[_0x50abc4(0x1a9)](_0x246257,_0x10ce85,_0x3b06f0,_0x34c465);else{for(var _0x566ae8=_0x246257[_0x50abc4(0x192)]-0x1;_0x566ae8>=0x0;_0x566ae8--)(_0x1c82d2=_0x246257[_0x566ae8])&&(_0x5543aa=(_0x35043f<0x3?_0x1c82d2(_0x5543aa):_0x35043f>0x3?_0x1c82d2(_0x10ce85,_0x3b06f0,_0x5543aa):_0x1c82d2(_0x10ce85,_0x3b06f0))||_0x5543aa);}return _0x35043f>0x3&&_0x5543aa&&Object['defineProperty'](_0x10ce85,_0x3b06f0,_0x5543aa),_0x5543aa;}const K=_0x4a528e(0x16e),q=_0x4a528e(0x239);let J=class extends _0x104263{constructor(_0x15fbc4,_0x17e476,_0x3e254f,_0x58855f,_0x441fcc,_0x167094,_0x28c367,_0x14fc1f,_0x1db398,_0x308981){const _0x56a2f1=_0x4a528e;super(),this[_0x56a2f1(0x1bd)]=_0x15fbc4,this[_0x56a2f1(0x219)]=_0x17e476,this[_0x56a2f1(0x1e8)]=_0x3e254f,this[_0x56a2f1(0x238)]=_0x58855f,this['_dialogService']=_0x441fcc,this[_0x56a2f1(0x118)]=_0x167094,this[_0x56a2f1(0x232)]=_0x28c367,this['_localeService']=_0x14fc1f,this[_0x56a2f1(0x144)]=_0x1db398,this[_0x56a2f1(0x21e)]=_0x308981,U(this,_0x56a2f1(0x12e),new _0x1489c4(!0x1)),U(this,_0x56a2f1(0x1d1),new _0x1489c4({})),U(this,_0x56a2f1(0x113),new _0x1489c4({})),U(this,_0x56a2f1(0x1f1),new _0x1489c4('')),U(this,'_handleConfigSave',async _0x2b067a=>{const _0x2faa4b=_0x56a2f1;this[_0x2faa4b(0x12e)][_0x2faa4b(0x193)](!0x0);try{var _0x3be551,_0x3beec7;let _0x475efd=await this[_0x2faa4b(0x1ea)](_0x2b067a);if(!_0x475efd['isValid']){this[_0x2faa4b(0x118)][_0x2faa4b(0x15c)]({'type':_0x43e9d1[_0x2faa4b(0x22c)],'content':_0x475efd[_0x2faa4b(0x22d)]||this[_0x2faa4b(0x19e)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2b067a[_0x2faa4b(0x181)]?await this[_0x2faa4b(0x238)][_0x2faa4b(0x1a6)](K,_0x2b067a[_0x2faa4b(0x181)][_0x2faa4b(0x240)]()):await this[_0x2faa4b(0x238)][_0x2faa4b(0x23a)](K),this[_0x2faa4b(0x1f1)]['next'](((_0x3be551=_0x2b067a[_0x2faa4b(0x181)])==null?void 0x0:_0x3be551['trim']())||''),this[_0x2faa4b(0x21e)][_0x2faa4b(0x159)]({'Authorization':'Bearer\x20'+((_0x3beec7=_0x2b067a['apiKey'])==null?void 0x0:_0x3beec7[_0x2faa4b(0x240)]())}),this[_0x2faa4b(0x118)]['show']({'type':_0x43e9d1[_0x2faa4b(0x18c)],'content':this[_0x2faa4b(0x19e)]['t'](_0x2faa4b(0x14b))}),setTimeout(()=>{const _0x593378=_0x2faa4b;this[_0x593378(0x11c)][_0x593378(0x1fe)](q);},0x320);}catch(_0x1d2732){this[_0x2faa4b(0x144)]['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x1d2732),this['_messageService']['show']({'type':_0x43e9d1[_0x2faa4b(0x22c)],'content':this[_0x2faa4b(0x19e)]['t'](_0x2faa4b(0x1fb))});}finally{this[_0x2faa4b(0x12e)][_0x2faa4b(0x193)](!0x1);}}),this[_0x56a2f1(0x21a)](),this['_loadStoredApiKey'](),this['_registerComponent']();}['showConfigPanel'](){const _0x59961c=_0x4a528e;let _0x4388bd=this[_0x59961c(0x1e8)][_0x59961c(0x1b0)](B);_0x4388bd!=null&&_0x4388bd[_0x59961c(0x1d8)]&&this[_0x59961c(0x11c)][_0x59961c(0x1c3)]({'id':q,'title':{'title':this['_localeService']['t'](_0x59961c(0x126))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3f7e09=_0x59961c;this[_0x3f7e09(0x11c)][_0x3f7e09(0x1fe)](q);}});}[_0x4a528e(0x1af)](){const _0x5307c7=_0x4a528e;return this[_0x5307c7(0x1d1)][_0x5307c7(0x1eb)];}[_0x4a528e(0x202)](){const _0x2cba83=_0x4a528e;this[_0x2cba83(0x1a1)](this['_componentManager'][_0x2cba83(0x18f)](_0x2cba83(0x20f),this[_0x2cba83(0x23e)]()));}['_createConfigPanelComponent'](){const _0x35e1a8=_0x4a528e;return _0x3eb632(()=>{const _0x40a66d=_0x1c93;var _0x5d0056,_0x5a5c4e,_0x152e9d;return _0x1b0256(z,{'config':this[_0x40a66d(0x113)][_0x40a66d(0x1eb)],'mcpCoreConfig':this[_0x40a66d(0x1d1)][_0x40a66d(0x1eb)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x40a66d(0x170)],'loading':this[_0x40a66d(0x12e)][_0x40a66d(0x1eb)],'connectionStatus$':(_0x5d0056=this[_0x40a66d(0x21e)])==null?void 0x0:_0x5d0056[_0x40a66d(0x142)],'connectionError$':(_0x5a5c4e=this[_0x40a66d(0x21e)])==null?void 0x0:_0x5a5c4e[_0x40a66d(0x1b4)],'currentSessionId$':(_0x152e9d=this[_0x40a66d(0x21e)])==null?void 0x0:_0x152e9d[_0x40a66d(0x210)]});},this[_0x35e1a8(0x1bd)]);}[_0x4a528e(0x21a)](){const _0x34fb05=_0x4a528e;this['disposeWithMe'](this[_0x34fb05(0x1e8)]['subscribeConfigValue$'](_0x388181)[_0x34fb05(0x200)](_0xe4b60d=>{const _0x95e442=_0x34fb05;this[_0x95e442(0x1d1)][_0x95e442(0x193)](_0xe4b60d||{});}));let _0x5f0c04=this[_0x34fb05(0x1e8)][_0x34fb05(0x1b0)](_0x388181);this[_0x34fb05(0x1d1)][_0x34fb05(0x193)](_0x5f0c04||{}),this[_0x34fb05(0x1a1)](this[_0x34fb05(0x1e8)]['subscribeConfigValue$'](B)['subscribe'](_0x589a37=>{const _0x423bcd=_0x34fb05;this[_0x423bcd(0x113)][_0x423bcd(0x193)](_0x589a37||{});}));let _0x4234d1=this['_configService'][_0x34fb05(0x1b0)](B);this[_0x34fb05(0x113)][_0x34fb05(0x193)](_0x4234d1||{});}async[_0x4a528e(0x1fa)](){const _0x1c332e=_0x4a528e;let _0x12fa6e=this[_0x1c332e(0x1e8)][_0x1c332e(0x1b0)](B);if(!(_0x12fa6e!=null&&_0x12fa6e['showDeveloperTools']))return;let _0x1c4c6b=await this[_0x1c332e(0x238)]['getItem'](K);_0x1c4c6b&&(this['_mcpConnectionController'][_0x1c332e(0x159)]({'Authorization':_0x1c332e(0x1f7)+_0x1c4c6b}),this[_0x1c332e(0x1f1)][_0x1c332e(0x193)](_0x1c4c6b));}async[_0x4a528e(0x1ea)](_0x483b07){const _0x4b4390=_0x4a528e;if(!_0x483b07[_0x4b4390(0x181)]||_0x483b07[_0x4b4390(0x181)]['trim']()[_0x4b4390(0x192)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4b4390(0x19e)]['t'](_0x4b4390(0x187))};if(_0x483b07[_0x4b4390(0x181)]['trim']()[_0x4b4390(0x192)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4b4390(0x19e)]['t'](_0x4b4390(0x19a))};try{let _0x3d5fab=await this[_0x4b4390(0x1bd)][_0x4b4390(0x115)](_0x59b840)[_0x4b4390(0x1b1)](_0x483b07[_0x4b4390(0x181)][_0x4b4390(0x240)]());return _0x3d5fab[_0x4b4390(0x220)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3d5fab[_0x4b4390(0x1b5)]||this[_0x4b4390(0x19e)]['t'](_0x4b4390(0x23d))};}catch(_0x54d875){return console[_0x4b4390(0x13a)](_0x4b4390(0x189),_0x54d875),{'isValid':!0x0};}}};J=G([W(0x0,_0x520f38(_0x52d720)),W(0x1,_0x4b1764),W(0x2,_0x5c1546),W(0x3,_0x51289c),W(0x4,_0xf080f),W(0x5,_0x1e86e2),W(0x6,_0x520f38(_0x347581)),W(0x7,_0x520f38(_0x1c055e)),W(0x8,_0x5688b6),W(0x9,_0x520f38(_0x59b840))],J);const Y={'id':_0x4a528e(0x1f5),'type':_0x24f842['COMMAND'],'handler':async(_0xf73df9,_0x3d00e1)=>(_0xf73df9[_0x4a528e(0x115)](J)[_0x4a528e(0x180)](),!0x0)};function X(_0x3d3467,_0x533f04){const _0x427283=_0x4a528e;switch(_0x3d3467){case _0x12d328['DISCONNECTED']:return'mcpStatus.disconnected';case _0x12d328['CONNECTING']:return'mcpStatus.connecting';case _0x12d328[_0x427283(0x169)]:return _0x427283(0x19b);case _0x12d328[_0x427283(0x127)]:switch(_0x533f04){case _0x5b2f42['UNAUTHORIZED']:return _0x427283(0x182);case _0x5b2f42[_0x427283(0x242)]:return'mcpStatus.sessionOccupied';case _0x5b2f42[_0x427283(0x160)]:return _0x427283(0x141);case _0x5b2f42[_0x427283(0x1e5)]:return _0x427283(0x143);default:return _0x427283(0x1d6);}case _0x12d328[_0x427283(0x1bb)]:return _0x427283(0x1e4);default:return _0x427283(0x1dc);}}function ce(_0x337b23,_0x137f2b,_0xd25106,_0x45ed3d=!0x0){const _0x362dd6=_0x4a528e;let _0x42274b=X(_0x337b23,_0x137f2b),_0x418a91=_0xd25106['t'](_0x42274b);return _0x45ed3d?_0x337b23===_0x12d328['DISCONNECTED']&&_0x137f2b===_0x5b2f42[_0x362dd6(0x1e6)]?_0x418a91+_0x362dd6(0x14e)+_0xd25106['t'](_0x362dd6(0x21d)):_0x337b23===_0x12d328[_0x362dd6(0x169)]?''+_0x418a91:_0x337b23===_0x12d328['DISCONNECTED']||_0x337b23===_0x12d328[_0x362dd6(0x127)]?_0x418a91+_0x362dd6(0x14e)+_0xd25106['t']('mcpStatus.clickToConnect'):_0x418a91:_0x418a91;}function le(_0x3ef4c5){const _0x19b306=_0x4a528e;switch(_0x3ef4c5){case _0x12d328['CONNECTED']:return _0x19b306(0x17c);case _0x12d328[_0x19b306(0x244)]:case _0x12d328[_0x19b306(0x1bb)]:return _0x19b306(0x217);case _0x12d328[_0x19b306(0x127)]:case _0x12d328[_0x19b306(0x205)]:return _0x19b306(0x216);default:return _0x19b306(0x21c);}}function ue(_0x5253fc){const _0x4c0bc2=_0x4a528e;let {status$:_0x4353c8,error$:_0x584cda,onConfigure:_0x39033b,showClickable:_0x540f86=!0x0}=_0x5253fc,_0x4e8724=_0x4e5559(_0x4353c8,_0x12d328[_0x4c0bc2(0x205)]),_0x5da686=_0x4e5559(_0x584cda,_0x5b2f42[_0x4c0bc2(0x215)]),_0x247edd=_0x27fbf1(_0x1c055e),_0x188334=_0x4e8724===_0x12d328[_0x4c0bc2(0x169)];_0x4e8724===_0x12d328[_0x4c0bc2(0x244)]||_0x12d328[_0x4c0bc2(0x1bb)];let _0x4363ad=_0x247edd['t'](X(_0x4e8724,_0x5da686)),_0x347bad=ce(_0x4e8724,_0x5da686,_0x247edd,_0x540f86),_0x4d105a=le(_0x4e8724),_0x226a8f=_0x1b0256(_0x188334?_0xfd0da4:_0x178dec,{}),_0x442286=_0x2f9a45(()=>{_0x540f86&&_0x39033b&&_0x39033b();},[_0x540f86,_0x39033b]);function _0x5c1914(){const _0x5e1478=_0x4c0bc2;return _0x1a9f70('div',{'className':_0x4edf12('univer-flex\x20univer-items-center',_0x540f86&&_0x39033b&&'\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'),'role':'button','onClick':_0x540f86&&_0x39033b?_0x442286:void 0x0,'children':[_0x1b0256(_0x5e1478(0x12b),{'className':_0x4edf12('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x4d105a),'children':_0x226a8f}),_0x1b0256(_0x5e1478(0x12b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4363ad})]});}return _0x1b0256(_0x17feeb,{'title':_0x347bad,'placement':'bottom','children':_0x5c1914()});}let Z=class extends _0x104263{constructor(_0x31cf5c,_0x1ba9b2,_0x431bb7,_0x3d735f){const _0x3e64fc=_0x4a528e;super(),this[_0x3e64fc(0x1bd)]=_0x31cf5c,this[_0x3e64fc(0x1ee)]=_0x1ba9b2,this[_0x3e64fc(0x219)]=_0x431bb7,this[_0x3e64fc(0x1e8)]=_0x3d735f,this['_initAutoConnect'](),this[_0x3e64fc(0x16d)]();}[_0x4a528e(0x1b2)](){const _0x444319=_0x4a528e;let _0x376a0f=this['_configService'][_0x444319(0x1b0)](B);_0x376a0f!=null&&_0x376a0f['showDeveloperTools']&&(this[_0x444319(0x1ee)][_0x444319(0x197)]=!0x1);}[_0x4a528e(0x16d)](){const _0x3a35e8=_0x4a528e;let _0x16226b=this[_0x3a35e8(0x1e8)]['getConfig'](B);(_0x16226b==null?void 0x0:_0x16226b[_0x3a35e8(0x12d)])!==!0x1&&this[_0x3a35e8(0x1a1)](this[_0x3a35e8(0x219)][_0x3a35e8(0x247)](_0x2f6062[_0x3a35e8(0x151)],()=>{const _0xac0222=_0x3a35e8;var _0x3e2685;return _0x3eb632(de({'status$':this[_0xac0222(0x1ee)]['connectionStatus$'],'error$':this[_0xac0222(0x1ee)][_0xac0222(0x1b4)],'onConfigure':()=>this[_0xac0222(0x183)](),'showClickable':(_0x3e2685=_0x16226b==null?void 0x0:_0x16226b['showDeveloperTools'])==null?!0x1:_0x3e2685}),this[_0xac0222(0x1bd)]);}));}['_handleConfigure'](){const _0x54a707=_0x4a528e;this['_injector'][_0x54a707(0x115)](J)[_0x54a707(0x180)]();}};Z=G([W(0x0,_0x520f38(_0x52d720)),W(0x1,_0x520f38(_0x59b840)),W(0x2,_0x4b1764),W(0x3,_0x5c1546)],Z);function de(_0x2bf82d){let {status$:_0x14e3c4,error$:_0x2f3f89,onConfigure:_0x3ef277,showClickable:_0x3619a6}=_0x2bf82d;return function(){return _0x1b0256(ue,{'status$':_0x14e3c4,'error$':_0x2f3f89,'onConfigure':_0x3ef277,'showClickable':_0x3619a6});};}function fe(_0x2b44f0){const _0xf69c60=_0x4a528e;return{'id':Y['id'],'type':_0x616908[_0xf69c60(0x152)],'icon':'MenuIcon','title':_0xf69c60(0x126),'tooltip':_0xf69c60(0x126)};}const pe={[_0x4b7d34[_0x4a528e(0x223)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x104263{constructor(_0x2c0e37,_0x46ea9b){const _0x198079=_0x4a528e;super(),this[_0x198079(0x119)]=_0x2c0e37,this['_menuManagerService']=_0x46ea9b,this[_0x198079(0x236)](),this[_0x198079(0x1e7)]();}['_initializeCommands'](){const _0x232142=_0x4a528e;[Y][_0x232142(0x1c0)](_0x3efd59=>{const _0x5af946=_0x232142;this['disposeWithMe'](this[_0x5af946(0x119)][_0x5af946(0x188)](_0x3efd59));});}[_0x4a528e(0x1e7)](){const _0x419287=_0x4a528e;this['_menuManagerService'][_0x419287(0x11a)](pe);}};Q=G([W(0x0,_0x3dd060),W(0x1,_0x29010f)],Q);const me={'mcpStatus':{'disconnected':_0x4a528e(0x1fc),'connecting':_0x4a528e(0x1ad),'connected':'MCP\x20Connected','failed':_0x4a528e(0x117),'retrying':_0x4a528e(0x129),'unknown':_0x4a528e(0x16f),'unauthorized':_0x4a528e(0x1aa),'sessionOccupied':_0x4a528e(0x195),'networkError':_0x4a528e(0x1b8),'maxRetriesExceeded':_0x4a528e(0x194),'clickToConnect':_0x4a528e(0x12a),'clickToConfigure':_0x4a528e(0x1ec)},'mcpConfig':{'title':_0x4a528e(0x246),'description':_0x4a528e(0x178),'apiKey':_0x4a528e(0x166),'apiKeyPlaceholder':_0x4a528e(0x1b6),'apiKeyHint':_0x4a528e(0x1f8),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4a528e(0x162),'connectionInfo':_0x4a528e(0x23f),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4a528e(0x14c),'configStepTitle':_0x4a528e(0x1c8),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4a528e(0x1a8),'configStep3':_0x4a528e(0x172),'sessionId':_0x4a528e(0x176),'sessionIdDescription':_0x4a528e(0x229),'authorizationDescription':_0x4a528e(0x1d5),'configParameters':_0x4a528e(0x1c5),'maxRetries':'Max\x20Retries','save':_0x4a528e(0x154),'saving':'Saving...','note1':_0x4a528e(0x184),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4a528e(0x248),'configError':_0x4a528e(0x241),'apiApplyInfo':{'title':_0x4a528e(0x1f9),'description':_0x4a528e(0x19d),'univerAiLabel':_0x4a528e(0x18a),'getStarted':_0x4a528e(0x171)},'validation':{'apiKeyRequired':_0x4a528e(0x19f),'apiKeyTooShort':_0x4a528e(0x155),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4a528e(0x1d3)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4a528e(0x224),'connected':_0x4a528e(0x1a5),'failed':_0x4a528e(0x121),'retrying':_0x4a528e(0x138)},'connectionError':{'unauthorized':_0x4a528e(0x11b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4a528e(0x17a),'maxRetriesExceeded':_0x4a528e(0x134)}}},he={'mcpStatus':{'disconnected':_0x4a528e(0x1e3),'connecting':_0x4a528e(0x1c6),'connected':_0x4a528e(0x175),'failed':_0x4a528e(0x20a),'retrying':_0x4a528e(0x177),'unknown':_0x4a528e(0x1ae),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x4a528e(0x161),'networkError':_0x4a528e(0x116),'maxRetriesExceeded':_0x4a528e(0x1a2),'clickToConnect':_0x4a528e(0x125),'clickToConfigure':_0x4a528e(0x17b)},'mcpConfig':{'title':_0x4a528e(0x235),'description':_0x4a528e(0x1c9),'apiKey':_0x4a528e(0x16c),'apiKeyPlaceholder':_0x4a528e(0x1dd),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x4a528e(0x13f),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x4a528e(0x15e),'configInstructions':_0x4a528e(0x1f3),'configStepTitle':'配置步骤:','configStep1':_0x4a528e(0x1ef),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4a528e(0x1de),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x4a528e(0x15a),'configParameters':'配置参数:','maxRetries':_0x4a528e(0x139),'save':_0x4a528e(0x204),'saving':_0x4a528e(0x11e),'note1':_0x4a528e(0x146),'note2':_0x4a528e(0x22f),'configSaved':_0x4a528e(0x207),'configError':_0x4a528e(0x135),'apiApplyInfo':{'title':_0x4a528e(0x191),'description':_0x4a528e(0x1e0),'univerAiLabel':_0x4a528e(0x209),'getStarted':_0x4a528e(0x1ff)},'validation':{'apiKeyRequired':_0x4a528e(0x128),'apiKeyTooShort':_0x4a528e(0x218),'invalidConfig':_0x4a528e(0x225),'invalidApiKey':_0x4a528e(0x1ab)},'connectionStatus':{'disconnected':_0x4a528e(0x124),'connecting':_0x4a528e(0x1f0),'connected':_0x4a528e(0x1b9),'failed':'连接失败','retrying':_0x4a528e(0x20b)},'connectionError':{'unauthorized':_0x4a528e(0x123),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x4a528e(0x1d7),'maxRetriesExceeded':_0x4a528e(0x136)}}};var ge=_0x4a528e(0x1e2),_e=_0x4a528e(0x174);function _0x1c93(_0x3dadee,_0x318707){_0x3dadee=_0x3dadee-0x10e;const _0x4af59b=_0x4af5();let _0x1c9353=_0x4af59b[_0x3dadee];return _0x1c9353;}let $=class extends _0x1904dc{constructor(_0x54da7f=V,_0x137b01,_0x5cd17f,_0x224e79,_0x26d234,_0x47adac){const _0x21c832=_0x4a528e;super(),this[_0x21c832(0x1fd)]=_0x54da7f,this[_0x21c832(0x1bd)]=_0x137b01,this[_0x21c832(0x1e8)]=_0x5cd17f,this[_0x21c832(0x219)]=_0x224e79,this[_0x21c832(0x238)]=_0x26d234,this[_0x21c832(0x19e)]=_0x47adac;let {..._0xea54e2}=_0x30ce96({},V,this['_config']);this['_configService'][_0x21c832(0x21f)](B,_0xea54e2);}async[_0x4a528e(0x111)](){const _0x5da323=_0x4a528e;let _0x467d71=[[Z],[J],[Q]];this[_0x5da323(0x1bd)][_0x5da323(0x1cb)](_0x255d94)||_0x467d71[_0x5da323(0x190)]([_0x255d94,{'useClass':_0x11bb76}]),_0x467d71['forEach'](_0x146373=>this[_0x5da323(0x1bd)][_0x5da323(0x140)](_0x146373)),this[_0x5da323(0x1bd)][_0x5da323(0x115)](Z),this['_injector'][_0x5da323(0x115)](J),this['_injector'][_0x5da323(0x115)](Q);}};U($,_0x4a528e(0x199),_0x4a528e(0x130)),U($,'packageName',ge),U($,_0x4a528e(0x1d0),_e),$=G([_0x301de1(_0x2c3451),W(0x1,_0x520f38(_0x52d720)),W(0x2,_0x5c1546),W(0x3,_0x4b1764),W(0x4,_0x51289c),W(0x5,_0x520f38(_0x1c055e))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
|
|
1
|
+
const _0x349f38=_0x100b;(function(_0x3f3bf0,_0x458e94){const _0xd76345=_0x100b,_0x292124=_0x3f3bf0();while(!![]){try{const _0x3f138f=parseInt(_0xd76345(0x196))/0x1*(-parseInt(_0xd76345(0x202))/0x2)+parseInt(_0xd76345(0x279))/0x3*(-parseInt(_0xd76345(0x1bb))/0x4)+-parseInt(_0xd76345(0x242))/0x5+-parseInt(_0xd76345(0x261))/0x6+parseInt(_0xd76345(0x20c))/0x7*(parseInt(_0xd76345(0x1e2))/0x8)+parseInt(_0xd76345(0x187))/0x9+parseInt(_0xd76345(0x190))/0xa*(parseInt(_0xd76345(0x25d))/0xb);if(_0x3f138f===_0x458e94)break;else _0x292124['push'](_0x292124['shift']());}catch(_0x2d9b0b){_0x292124['push'](_0x292124['shift']());}}}(_0x24d2,0x53960));import{CommandType as _0x406843,DependentOn as _0x1cb994,Disposable as _0x5f07cd,ICommandService as _0x58a53f,IConfigService as _0x2b4b65,ILocalStorageService as _0x504129,ILogService as _0x5466f8,Inject as _0x5ab4cd,Injector as _0x52106a,LocaleService as _0x2a4117,Plugin as _0x281e21,merge as _0x31de54}from'@univerjs/core';import{MCPConnectionController as _0xa07734,MCPConnectionError as _0x4f4eca,MCPConnectionStatus as _0x22b515,MCP_PLUGIN_CONFIG_KEY as _0x46f5fe,UniverMCPPlugin as _0x4fc106}from'@univerjs-pro/mcp';import{Button as _0x281a3f,Input as _0xb5960,MessageType as _0x3d27a9,Tooltip as _0x42e742,clsx as _0x5161dc}from'@univerjs/design';import{BuiltInUIPart as _0x150bb3,ComponentManager as _0x517ccd,IDialogService as _0x179317,IMenuManagerService as _0x481c09,IMessageService as _0x459a62,IUIPartsService as _0x19a644,MenuItemType as _0x4562b8,RibbonStartGroup as _0xa20e1c,connectInjector as _0x277d2c,useDependency as _0x1b601f,useObservable as _0x22b380}from'@univerjs/ui';import{BehaviorSubject as _0x56b14b}from'rxjs';import{CheckMarkIcon as _0x2b54e9,CloseIcon as _0x914b78,HelpIcon as _0x180a71,OffLineIcon as _0x46e5cb,OnLineIcon as _0x32786a}from'@univerjs/icons';import{useCallback as _0x2c1554,useState as _0x12cec2}from'react';import{jsx as _0x17a7ec,jsxs as _0x1fe9f9}from'react/jsx-runtime';import{ISocketService as _0x14f887,WebSocketService as _0x29f53e}from'@univerjs/network';function z(_0x2bee8a){const _0x21a784=_0x100b;var _0x25207e,_0x2f8602;let {mcpCoreConfig:_0x4de57f,onSave:_0x32b4b4,loading:_0x5638d5=!0x1,config:_0x58f6a8,connectionStatus$:_0x7f9402,connectionError$:_0x4de8bb,currentApiKey$:_0xaa1eb5,currentSessionId$:_0x2c6c77}=_0x2bee8a,_0x1d3675=_0x1b601f(_0x2a4117),_0x391b16=_0x22b380(_0x7f9402,_0x22b515['DISCONNECTED']),_0x23c598=_0x22b380(_0x4de8bb,_0x4f4eca[_0x21a784(0x1d4)]),_0xc7eca0=_0x22b380(_0x2c6c77,''),[_0x45a398,_0x18f2d9]=_0x12cec2(_0x22b380(_0xaa1eb5,'')||''),_0x4c4861=_0x58f6a8[_0x21a784(0x262)]&&_0x4de57f[_0x21a784(0x20d)]&&(_0x4de57f[_0x21a784(0x20d)]['includes'](_0x21a784(0x24b))||_0x4de57f[_0x21a784(0x20d)][_0x21a784(0x1e3)](_0x21a784(0x1e8))),_0xba5e0a=(_0x25207e=_0x4de57f[_0x21a784(0x20d)])==null?void 0x0:_0x25207e[_0x21a784(0x1e3)](_0x21a784(0x24b)),_0xbfcc22=(_0x2f8602=_0x4de57f[_0x21a784(0x20d)])==null?void 0x0:_0x2f8602[_0x21a784(0x1e3)](_0x21a784(0x1e8)),_0x34a6ac=_0xba5e0a?_0x21a784(0x220):_0x21a784(0x1ca),_0x44e4f0=_0x58f6a8['showDeveloperTools']&&(_0xba5e0a||_0xbfcc22),[_0x3f9460,_0x1a0716]=_0x12cec2(!_0x45a398[_0x21a784(0x290)]()),_0x31de11=(_0x4898e2,_0x184818)=>{const _0x308f1e=_0x21a784;if(_0x184818===_0x4f4eca['UNAUTHORIZED'])return _0x308f1e(0x1f0);switch(_0x4898e2){case _0x22b515[_0x308f1e(0x1f7)]:return _0x308f1e(0x23d);case _0x22b515['CONNECTING']:case _0x22b515[_0x308f1e(0x23a)]:return _0x308f1e(0x23c);case _0x22b515['FAILED']:return _0x308f1e(0x1f0);default:return _0x308f1e(0x1f9);}},_0x31309d=(_0x693879,_0x436c4e)=>{const _0x31cd69=_0x21a784;if(_0x436c4e===_0x4f4eca[_0x31cd69(0x223)])return _0x31cd69(0x26d);switch(_0x693879){case _0x22b515[_0x31cd69(0x1f7)]:return'univer-bg-green-500';case _0x22b515[_0x31cd69(0x1ea)]:case _0x22b515[_0x31cd69(0x23a)]:return _0x31cd69(0x23f);case _0x22b515[_0x31cd69(0x25b)]:return'univer-bg-red-500';default:return _0x31cd69(0x293);}},_0xf47ff6=_0x3a445e=>{const _0x1a51c6=_0x21a784;switch(_0x3a445e){case _0x22b515[_0x1a51c6(0x1f7)]:return _0x1d3675['t']('mcpConfig.connectionStatus.connected');case _0x22b515[_0x1a51c6(0x1ea)]:return _0x1d3675['t'](_0x1a51c6(0x1ed));case _0x22b515['FAILED']:return _0x1d3675['t'](_0x1a51c6(0x268));case _0x22b515['RETRYING']:return _0x1d3675['t'](_0x1a51c6(0x17e));default:return _0x1d3675['t'](_0x1a51c6(0x288));}},_0x24d7fe=_0x5a15e9=>{const _0x12a228=_0x21a784;switch(_0x5a15e9){case _0x4f4eca['UNAUTHORIZED']:return _0x1d3675['t'](_0x12a228(0x1ee));case _0x4f4eca[_0x12a228(0x26e)]:return _0x1d3675['t'](_0x12a228(0x263));case _0x4f4eca[_0x12a228(0x278)]:return _0x1d3675['t'](_0x12a228(0x1c7));case _0x4f4eca['MAX_RETRIES_EXCEEDED']:return _0x1d3675['t'](_0x12a228(0x28e));default:return'';}},_0x2d243f=_0x2c1554(()=>{const _0x21a3e8=_0x21a784;_0x32b4b4({..._0x4de57f,'apiKey':_0x45a398[_0x21a3e8(0x290)](),'enableAuth':!0x0});},[_0x4de57f,_0x45a398,!0x0,_0x32b4b4]),_0x3fe736=_0x45a398[_0x21a784(0x290)]()['length']>0x0;return _0x1fe9f9(_0x21a784(0x26b),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1cd),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x22b),'children':_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-white','children':'⚙'})}),_0x17a7ec(_0x21a784(0x26b),{'children':_0x17a7ec('p',{'className':_0x21a784(0x189),'children':_0x1d3675['t'](_0x21a784(0x234))})})]})}),_0x1fe9f9('div',{'className':_0x21a784(0x232),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x5161dc('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x31de11(_0x391b16,_0x23c598)),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x5161dc(_0x21a784(0x298),_0x31309d(_0x391b16,_0x23c598))}),_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-sm\x20univer-font-medium','children':_0xf47ff6(_0x391b16)})]})}),_0x23c598!==_0x4f4eca[_0x21a784(0x1d4)]&&(_0x391b16===_0x22b515['FAILED']||_0x23c598===_0x4f4eca[_0x21a784(0x223)])&&_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x18e),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x27c),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x1d8),'children':'⚠️'}),_0x17a7ec('p',{'className':_0x21a784(0x22f),'children':_0x24d7fe(_0x23c598)})]})})]}),_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1eb),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x198),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x1fe9f9(_0x21a784(0x173),{'className':_0x21a784(0x213),'children':[_0x17a7ec(_0x21a784(0x18b),{'children':'🔑'}),'\x20',_0x1d3675['t'](_0x21a784(0x1a6)),_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-red-500','children':'*'}),_0x4c4861&&_0x17a7ec('a',{'className':_0x21a784(0x25e),'title':_0x1d3675['t'](_0x21a784(0x22c)),'role':'button','onClick':()=>_0x1a0716(!0x0),'children':_0x17a7ec(_0x180a71,{})})]}),_0x17a7ec(_0xb5960,{'type':_0x21a784(0x269),'placeholder':_0x1d3675['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x45a398,'disabled':_0x5638d5,'autoComplete':_0x21a784(0x206),'onChange':_0x18f2d9}),_0x17a7ec('p',{'className':_0x21a784(0x1cf),'children':_0x1d3675['t'](_0x21a784(0x256))})]}),_0x4c4861&&_0x3f9460&&_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x27a),'children':[_0x17a7ec('a',{'className':_0x21a784(0x229),'role':'button','onClick':()=>_0x1a0716(!0x1),'children':_0x17a7ec(_0x914b78,{'className':'univer-size-4'})}),_0x1fe9f9('div',{'className':_0x21a784(0x1ac),'children':[_0x17a7ec('div',{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x17a7ec('span',{'className':_0x21a784(0x1c0),'children':'🚀'})}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x210),'children':[_0x17a7ec('h4',{'className':_0x21a784(0x1fe),'children':_0x1d3675['t'](_0x21a784(0x22c))}),_0x17a7ec('p',{'className':_0x21a784(0x1fc),'children':_0x1d3675['t'](_0x21a784(0x170))}),_0x17a7ec('div',{'className':_0x21a784(0x21a),'children':_0x44e4f0&&_0x1fe9f9('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':_0x34a6ac,'target':_0x21a784(0x1bd),'rel':_0x21a784(0x224),'children':[_0x17a7ec(_0x21a784(0x18b),{'children':'🤖'}),_0x1d3675['t'](_0x21a784(0x17f)),_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x21e),'children':'↗'})]})}),_0x1fe9f9('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x1d3675['t'](_0x21a784(0x272))]})]})]})]}),_0x58f6a8[_0x21a784(0x262)]&&_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1fe9f9('h4',{'className':_0x21a784(0x1e5),'children':[_0x17a7ec('span',{'children':'🔗'}),'\x20',_0x1d3675['t'](_0x21a784(0x1e4))]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d6),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-space-y-3','children':[_0x17a7ec('p',{'className':_0x21a784(0x20b),'children':_0x1d3675['t'](_0x21a784(0x1c2))}),_0x1fe9f9('div',{'className':_0x21a784(0x1d7),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x17c),'children':_0x1d3675['t'](_0x21a784(0x211))}),_0x1fe9f9('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x1fe9f9('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x17a7ec('span',{'className':_0x21a784(0x236),'children':'1'}),_0x1d3675['t']('mcpConfig.configStep1')]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x18b),{'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':'2'}),_0x1d3675['t'](_0x21a784(0x1de))]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x236),'children':'3'}),_0x1d3675['t']('mcpConfig.configStep3')]})]})]})]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x21a784(0x1df)}),_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1fb),'children':_0x17a7ec(_0x21a784(0x21c),{'className':_0x21a784(0x1a0),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x21a784(0x216)+(_0xc7eca0||'<SESSION_ID>'),'type':_0x21a784(0x282),'headers':{'Authorization':_0x21a784(0x194)+(_0x45a398||_0x21a784(0x1cc))}}}},null,0x2)})})]}),_0x1fe9f9('div',{'className':_0x21a784(0x296),'children':[_0x17a7ec('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1d3675['t']('mcpConfig.configParameters')}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x191),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1c8)}),_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1f4),'children':_0x21a784(0x1b7)}),_0x17a7ec('div',{'className':_0x21a784(0x1cf),'children':_0x1d3675['t'](_0x21a784(0x217))})]})]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x191),'children':[_0x17a7ec('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x17a7ec('div',{'className':_0x21a784(0x1f4),'children':'Authorization:'}),_0x17a7ec(_0x21a784(0x26b),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1d3675['t'](_0x21a784(0x237))})]})]})]})]})]})]}),_0x17a7ec(_0x281a3f,{'onClick':_0x2d243f,'disabled':!_0x3fe736||_0x5638d5,'className':_0x21a784(0x297),'children':_0x5638d5?_0x1fe9f9(_0x21a784(0x18b),{'className':_0x21a784(0x218),'children':[_0x17a7ec('span',{'children':'⟲'}),_0x1d3675['t'](_0x21a784(0x1bf))]}):_0x1fe9f9('span',{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x2b54e9,{}),_0x1d3675['t'](_0x21a784(0x26c))]})}),_0x17a7ec('div',{'className':_0x21a784(0x260),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x267),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x22e),'children':'💡'}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x21f),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x208),'children':_0x21a784(0x25f)}),_0x1fe9f9(_0x21a784(0x26b),{'children':['•',_0x1d3675['t'](_0x21a784(0x22d))]}),_0x1fe9f9(_0x21a784(0x26b),{'children':['•',_0x1d3675['t'](_0x21a784(0x1e1))]})]})]})})]})})]});}const B=_0x349f38(0x257),V={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x24d2(){const _0x4b56ae=['mcpConfig.configStepTitle','removeItem','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','getConfig','mcpStatus.retrying','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.sessionIdDescription','univer-flex\x20univer-items-center\x20univer-gap-2','_componentManager','univer-flex\x20univer-flex-wrap\x20univer-gap-2','string','pre','univer-text-gray-500','univer-text-gray-400','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','https://console.univer.plus','几秒钟内获取您的\x20API\x20密钥','packageName','UNAUTHORIZED','noopener\x20noreferrer','mcp-ui.command.openConfigPanel','MCP\x20客户端配置','MCP\x20Connection\x20Failed','什么是\x20API\x20密钥?','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','mcpConfig.validation.invalidConfig','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.apiApplyInfo.title','mcpConfig.note1','univer-shrink-0\x20univer-text-blue-500','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','subscribeConfigValue$','_config$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.description','MCP_UI_PLUGIN','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcpConfig.authorizationDescription','Click\x20to\x20configure\x20MCP','showConfigPanel','RETRYING','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','get','univer-bg-blue-500','启用身份验证以获得安全连接','close','3277640GmyZZd','add','_initAutoConnect','iterator','_injector','object','您的\x20API\x20密钥安全存储在本地存储中','Configuration\x20Parameters:','_localeService','univer.plus','_apiKey$','_dialogService','启用身份验证','将配置添加到您的\x20MCP\x20客户端设置文件中','call','_handleConfigSave','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','超出最大重试次数,请稍后再试','Click\x20to\x20connect\x20MCP','API\x20Key','mcpConfig.apiKeyHint','mcp-ui.config','symbol','Connecting...','mcpStatus.sessionOccupied','FAILED','_validateConfig','2370291JDXmiF','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','Configuration\x20Notes:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','219630qnFOQy','showDeveloperTools','mcpConfig.connectionError.sessionOccupied','_connectionController','配置保存成功','配置更改将立即生效','univer-flex\x20univer-gap-3','mcpConfig.connectionStatus.failed','text','Save\x20Configuration','div','mcpConfig.save','univer-bg-red-500','SESSION_ID_OCCUPIED','Copy\x20the\x20JSON\x20configuration\x20below','prototype','复制以下\x20JSON\x20配置','mcpConfig.apiApplyInfo.getStarted','error','COMMAND','Error','_logService','mcpStatus.disconnected','NETWORK_ERROR','3WmyyfE','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','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20Unknown\x20Status','function','会话\x20ID\x20已被占用,请稍后再试','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.maxRetriesExceeded','http','__setCustomHeaders','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','push','MCPConfigPanel','mcpConfig.connectionStatus.disconnected','_uiPartsService','DISCONNECTED','连接中...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','open','mcpConfig.connectionError.maxRetriesExceeded','会话ID','trim','registerComponent','mcpConfig.configSaved','univer-bg-gray-500','未连接','errorMessage','univer-space-y-3','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','univer-size-2\x20univer-rounded-full','getOwnPropertyDescriptor','Get\x20your\x20API\x20key\x20in\x20seconds','mcp.apiKey','decorate','mcpConfig.apiApplyInfo.description','validateApiKey','MCP\x20重连中...','label','Configuration\x20saved\x20successfully','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP\x20连接失败','pluginName','Disconnected','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','connectionStatus$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','register','mcpConfig.connectionStatus.retrying','mcpConfig.apiApplyInfo.univerAiLabel','_mcpCoreConfig$','MCP\x20Client\x20Configuration','OTHERS','_createConfigPanelComponent','apiKey','univer-flex\x20univer-items-center','MCP:\x20Max\x20Retries\x20Exceeded','2058939usdpmo','MCP\x20已断开','univer-text-sm\x20univer-text-gray-500','API\x20密钥不能为空','span','mcpStatus.unauthorized','univer-text-green-500','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_registerComponent','50ufdvOc','univer-flex\x20univer-items-start\x20univer-gap-3','show','_mcpConnectionController','Bearer\x20','Success','2xNMpWR','MCP\x20Connecting...','univer-space-y-5','showStatus','mcpConfig.configError','_initConfigSync','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_initStatusComponent','\x20-\x20','setConfig','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','已连接','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','has','MCP\x20Retrying...','mcpConfig.apiKey','enableAutoConnect','mcpStatus.unknown','disposeWithMe','权限验证失败,请检查您的\x20API\x20密钥','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','warn','Connected','MCP:\x20未授权','_initializeMenus','Failed\x20to\x20save\x20configuration','BUTTON','mergeMenu','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.clickToConfigure','重连中...','univer_session_id:','mcpConfig.title','mcp-config-dialog','Saving...','498124xBmDwz','univer-text-red-500','_blank','getItem','mcpConfig.saving','univer-text-blue-600','sessionId$','mcpConfig.configInstructions','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_handleConfigure','mcpStatus.failed','MCP:\x20Network\x20Error','mcpConfig.connectionError.networkError','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_config','https://console.univer.ai','_loading$','<API_KEY>','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','请输入您的\x20API\x20密钥','univer-text-xs\x20univer-text-gray-500','mcpConfig.validation.invalidApiKey','配置参数:','_localStorageService','isValid','NONE','subscribe','univer-space-y-4','univer-space-y-2','univer-shrink-0\x20univer-text-red-500','_commandService','API\x20密钥长度至少需要\x2010\x20位','length','Enable\x20Authentication','配置步骤:','mcpConfig.configStep2','MCP\x20Configuration','next','mcpConfig.note2','20704etgRYD','includes','mcpConfig.connectionInfo','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20密钥','connectionError$','univer.ai','defineProperty','CONNECTING','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','最大重试次数','mcpConfig.connectionStatus.connecting','mcpConfig.connectionError.unauthorized','0.25.1','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_configService','_loadStoredApiKey','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_messageService','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','CONNECTED','getCurrentConfig','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','setItem','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','连接失败','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.apiKeyRequired','点击连接\x20MCP','MenuIcon','180788wYkBVs','MCP\x20连接中...','保存配置','Enter\x20your\x20API\x20key','off','value','univer-font-medium','constructor','version','univer-text-xs\x20univer-text-gray-600','91VZdEDG','mcpServerUrl','MCP:\x20会话\x20ID\x20已被占用','HEADER_MENU','univer-flex-1'];_0x24d2=function(){return _0x4b56ae;};return _0x24d2();}function H(_0x10c6b1){'@babel/helpers - typeof';const _0x1b0209=_0x349f38;return H=typeof Symbol==_0x1b0209(0x27e)&&typeof Symbol[_0x1b0209(0x245)]=='symbol'?function(_0x2dfa17){return typeof _0x2dfa17;}:function(_0x5e7f9a){const _0x3b2554=_0x1b0209;return _0x5e7f9a&&typeof Symbol==_0x3b2554(0x27e)&&_0x5e7f9a[_0x3b2554(0x209)]===Symbol&&_0x5e7f9a!==Symbol[_0x3b2554(0x270)]?_0x3b2554(0x258):typeof _0x5e7f9a;},H(_0x10c6b1);}function oe(_0x24de2d,_0x1bc569){const _0x1edbc7=_0x349f38;if(H(_0x24de2d)!=_0x1edbc7(0x247)||!_0x24de2d)return _0x24de2d;var _0x6ea2cb=_0x24de2d[Symbol['toPrimitive']];if(_0x6ea2cb!==void 0x0){var _0x562613=_0x6ea2cb[_0x1edbc7(0x250)](_0x24de2d,_0x1bc569||'default');if(H(_0x562613)!=_0x1edbc7(0x247))return _0x562613;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1bc569===_0x1edbc7(0x21b)?String:Number)(_0x24de2d);}function se(_0x2fe064){const _0x3e8254=_0x349f38;var _0x37a438=oe(_0x2fe064,'string');return H(_0x37a438)==_0x3e8254(0x258)?_0x37a438:_0x37a438+'';}function U(_0x57cbbd,_0xd4f952,_0x500e11){const _0x1cfd3b=_0x349f38;return(_0xd4f952=se(_0xd4f952))in _0x57cbbd?Object[_0x1cfd3b(0x1e9)](_0x57cbbd,_0xd4f952,{'value':_0x500e11,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57cbbd[_0xd4f952]=_0x500e11,_0x57cbbd;}function W(_0x47b003,_0x187f63){return function(_0x227ebc,_0x50addf){_0x187f63(_0x227ebc,_0x50addf,_0x47b003);};}function G(_0x3096cb,_0x2d1d12,_0x5d2dcd,_0x58bc1a){const _0x21d3c7=_0x349f38;var _0x396866=arguments['length'],_0x8c49e1=_0x396866<0x3?_0x2d1d12:_0x58bc1a===null?_0x58bc1a=Object[_0x21d3c7(0x16c)](_0x2d1d12,_0x5d2dcd):_0x58bc1a,_0x5e1270;if(typeof Reflect==_0x21d3c7(0x247)&&typeof Reflect[_0x21d3c7(0x16f)]==_0x21d3c7(0x27e))_0x8c49e1=Reflect[_0x21d3c7(0x16f)](_0x3096cb,_0x2d1d12,_0x5d2dcd,_0x58bc1a);else{for(var _0x5e7024=_0x3096cb['length']-0x1;_0x5e7024>=0x0;_0x5e7024--)(_0x5e1270=_0x3096cb[_0x5e7024])&&(_0x8c49e1=(_0x396866<0x3?_0x5e1270(_0x8c49e1):_0x396866>0x3?_0x5e1270(_0x2d1d12,_0x5d2dcd,_0x8c49e1):_0x5e1270(_0x2d1d12,_0x5d2dcd))||_0x8c49e1);}return _0x396866>0x3&&_0x8c49e1&&Object[_0x21d3c7(0x1e9)](_0x2d1d12,_0x5d2dcd,_0x8c49e1),_0x8c49e1;}const K=_0x349f38(0x16e),q=_0x349f38(0x1b9);let J=class extends _0x5f07cd{constructor(_0x2210c8,_0xb195a5,_0x2440ad,_0x564bc7,_0x3e66e7,_0x1bbf86,_0x3b966d,_0x3b9c84,_0x47e96a,_0x231a85){const _0x412fcf=_0x349f38;super(),this[_0x412fcf(0x246)]=_0x2210c8,this[_0x412fcf(0x289)]=_0xb195a5,this[_0x412fcf(0x1f1)]=_0x2440ad,this[_0x412fcf(0x1d2)]=_0x564bc7,this[_0x412fcf(0x24d)]=_0x3e66e7,this[_0x412fcf(0x1f5)]=_0x1bbf86,this[_0x412fcf(0x219)]=_0x3b966d,this['_localeService']=_0x3b9c84,this[_0x412fcf(0x276)]=_0x47e96a,this[_0x412fcf(0x193)]=_0x231a85,U(this,'_loading$',new _0x56b14b(!0x1)),U(this,'_mcpCoreConfig$',new _0x56b14b({})),U(this,_0x412fcf(0x231),new _0x56b14b({})),U(this,_0x412fcf(0x24c),new _0x56b14b('')),U(this,'_handleConfigSave',async _0x2d7587=>{const _0x35606b=_0x412fcf;this[_0x35606b(0x1cb)]['next'](!0x0);try{var _0x58c308,_0x23da9c;let _0x2d12d6=await this[_0x35606b(0x25c)](_0x2d7587);if(!_0x2d12d6[_0x35606b(0x1d3)]){this[_0x35606b(0x1f5)][_0x35606b(0x192)]({'type':_0x3d27a9['Error'],'content':_0x2d12d6[_0x35606b(0x295)]||this[_0x35606b(0x24a)]['t'](_0x35606b(0x22a))});return;}_0x2d7587[_0x35606b(0x184)]?await this['_localStorageService'][_0x35606b(0x1fa)](K,_0x2d7587[_0x35606b(0x184)][_0x35606b(0x290)]()):await this[_0x35606b(0x1d2)][_0x35606b(0x212)](K),this[_0x35606b(0x24c)][_0x35606b(0x1e0)](((_0x58c308=_0x2d7587[_0x35606b(0x184)])==null?void 0x0:_0x58c308[_0x35606b(0x290)]())||''),this[_0x35606b(0x193)]['__setCustomHeaders']({'Authorization':_0x35606b(0x194)+((_0x23da9c=_0x2d7587[_0x35606b(0x184)])==null?void 0x0:_0x23da9c[_0x35606b(0x290)]())}),this[_0x35606b(0x1f5)][_0x35606b(0x192)]({'type':_0x3d27a9[_0x35606b(0x195)],'content':this[_0x35606b(0x24a)]['t'](_0x35606b(0x292))}),setTimeout(()=>{const _0x48e96c=_0x35606b;this[_0x48e96c(0x24d)][_0x48e96c(0x241)](q);},0x320);}catch(_0x3eb94f){this[_0x35606b(0x276)][_0x35606b(0x273)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3eb94f),this[_0x35606b(0x1f5)]['show']({'type':_0x3d27a9[_0x35606b(0x275)],'content':this[_0x35606b(0x24a)]['t'](_0x35606b(0x19a))});}finally{this[_0x35606b(0x1cb)]['next'](!0x1);}}),this['_initConfigSync'](),this[_0x412fcf(0x1f2)](),this[_0x412fcf(0x18f)]();}[_0x349f38(0x239)](){const _0x349705=_0x349f38;let _0x371990=this[_0x349705(0x1f1)][_0x349705(0x214)](B);_0x371990!=null&&_0x371990[_0x349705(0x262)]&&this[_0x349705(0x24d)][_0x349705(0x28d)]({'id':q,'title':{'title':this[_0x349705(0x24a)]['t'](_0x349705(0x1b8))},'children':{'label':_0x349705(0x287)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x51addc=_0x349705;this[_0x51addc(0x24d)][_0x51addc(0x241)](q);}});}[_0x349f38(0x1f8)](){return this['_mcpCoreConfig$']['value'];}[_0x349f38(0x18f)](){const _0x16b593=_0x349f38;this['disposeWithMe'](this[_0x16b593(0x219)][_0x16b593(0x17d)](_0x16b593(0x287),this[_0x16b593(0x183)]()));}[_0x349f38(0x183)](){return _0x277d2c(()=>{const _0x3156e4=_0x100b;var _0x25bfda,_0x3a3694,_0xeb7f3b;return _0x17a7ec(z,{'config':this[_0x3156e4(0x231)][_0x3156e4(0x207)],'mcpCoreConfig':this[_0x3156e4(0x180)][_0x3156e4(0x207)],'currentApiKey$':this[_0x3156e4(0x24c)],'onSave':this[_0x3156e4(0x251)],'loading':this['_loading$'][_0x3156e4(0x207)],'connectionStatus$':(_0x25bfda=this['_mcpConnectionController'])==null?void 0x0:_0x25bfda[_0x3156e4(0x17b)],'connectionError$':(_0x3a3694=this[_0x3156e4(0x193)])==null?void 0x0:_0x3a3694[_0x3156e4(0x1e7)],'currentSessionId$':(_0xeb7f3b=this[_0x3156e4(0x193)])==null?void 0x0:_0xeb7f3b[_0x3156e4(0x1c1)]});},this['_injector']);}[_0x349f38(0x19b)](){const _0x34c9a3=_0x349f38;this[_0x34c9a3(0x1a9)](this['_configService'][_0x34c9a3(0x230)](_0x46f5fe)[_0x34c9a3(0x1d5)](_0x591f2c=>{const _0x24b8f5=_0x34c9a3;this[_0x24b8f5(0x180)][_0x24b8f5(0x1e0)](_0x591f2c||{});}));let _0x3a495c=this['_configService'][_0x34c9a3(0x214)](_0x46f5fe);this['_mcpCoreConfig$']['next'](_0x3a495c||{}),this[_0x34c9a3(0x1a9)](this[_0x34c9a3(0x1f1)]['subscribeConfigValue$'](B)[_0x34c9a3(0x1d5)](_0x17f203=>{const _0x116bec=_0x34c9a3;this[_0x116bec(0x231)][_0x116bec(0x1e0)](_0x17f203||{});}));let _0x11d63a=this[_0x34c9a3(0x1f1)][_0x34c9a3(0x214)](B);this[_0x34c9a3(0x231)]['next'](_0x11d63a||{});}async[_0x349f38(0x1f2)](){const _0xae08d4=_0x349f38;let _0x18e459=this[_0xae08d4(0x1f1)][_0xae08d4(0x214)](B);if(!(_0x18e459!=null&&_0x18e459[_0xae08d4(0x262)]))return;let _0x135e7a=await this[_0xae08d4(0x1d2)][_0xae08d4(0x1be)](K);_0x135e7a&&(this[_0xae08d4(0x193)][_0xae08d4(0x283)]({'Authorization':_0xae08d4(0x194)+_0x135e7a}),this[_0xae08d4(0x24c)][_0xae08d4(0x1e0)](_0x135e7a));}async['_validateConfig'](_0x357d7b){const _0x1f2742=_0x349f38;if(!_0x357d7b[_0x1f2742(0x184)]||_0x357d7b[_0x1f2742(0x184)][_0x1f2742(0x290)]()[_0x1f2742(0x1db)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1f2742(0x24a)]['t'](_0x1f2742(0x1ff))};if(_0x357d7b[_0x1f2742(0x184)][_0x1f2742(0x290)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1f2742(0x24a)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x185c69=await this[_0x1f2742(0x246)]['get'](_0xa07734)[_0x1f2742(0x171)](_0x357d7b['apiKey']['trim']());return _0x185c69[_0x1f2742(0x1d3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x185c69[_0x1f2742(0x273)]||this[_0x1f2742(0x24a)]['t'](_0x1f2742(0x1d0))};}catch(_0xb0b18a){return console[_0x1f2742(0x1ad)](_0x1f2742(0x175),_0xb0b18a),{'isValid':!0x0};}}};J=G([W(0x0,_0x5ab4cd(_0x52106a)),W(0x1,_0x19a644),W(0x2,_0x2b4b65),W(0x3,_0x504129),W(0x4,_0x179317),W(0x5,_0x459a62),W(0x6,_0x5ab4cd(_0x517ccd)),W(0x7,_0x5ab4cd(_0x2a4117)),W(0x8,_0x5466f8),W(0x9,_0x5ab4cd(_0xa07734))],J);const Y={'id':_0x349f38(0x225),'type':_0x406843[_0x349f38(0x274)],'handler':async(_0x2afc2b,_0x1fdd78)=>(_0x2afc2b[_0x349f38(0x23e)](J)[_0x349f38(0x239)](),!0x0)};function X(_0x114b2d,_0x36fb23){const _0x78e4a3=_0x349f38;switch(_0x114b2d){case _0x22b515[_0x78e4a3(0x28a)]:return _0x78e4a3(0x277);case _0x22b515['CONNECTING']:return'mcpStatus.connecting';case _0x22b515[_0x78e4a3(0x1f7)]:return'mcpStatus.connected';case _0x22b515['FAILED']:switch(_0x36fb23){case _0x4f4eca[_0x78e4a3(0x223)]:return _0x78e4a3(0x18c);case _0x4f4eca[_0x78e4a3(0x26e)]:return _0x78e4a3(0x25a);case _0x4f4eca['NETWORK_ERROR']:return'mcpStatus.networkError';case _0x4f4eca['MAX_RETRIES_EXCEEDED']:return _0x78e4a3(0x281);default:return _0x78e4a3(0x1c5);}case _0x22b515[_0x78e4a3(0x23a)]:return _0x78e4a3(0x215);default:return _0x78e4a3(0x1a8);}}function _0x100b(_0x3b4dd3,_0x1b5b2c){_0x3b4dd3=_0x3b4dd3-0x16c;const _0x24d259=_0x24d2();let _0x100b57=_0x24d259[_0x3b4dd3];return _0x100b57;}function ce(_0x11edc8,_0x5f24cd,_0x2edeca,_0x223c52=!0x0){const _0x4abc33=_0x349f38;let _0xe46f7a=X(_0x11edc8,_0x5f24cd),_0x488602=_0x2edeca['t'](_0xe46f7a);return _0x223c52?_0x11edc8===_0x22b515[_0x4abc33(0x28a)]&&_0x5f24cd===_0x4f4eca['UNAUTHORIZED']?_0x488602+_0x4abc33(0x19e)+_0x2edeca['t'](_0x4abc33(0x1b5)):_0x11edc8===_0x22b515[_0x4abc33(0x1f7)]?''+_0x488602:_0x11edc8===_0x22b515[_0x4abc33(0x28a)]||_0x11edc8===_0x22b515['FAILED']?_0x488602+_0x4abc33(0x19e)+_0x2edeca['t']('mcpStatus.clickToConnect'):_0x488602:_0x488602;}function le(_0x5dbdea){const _0x7ff7ed=_0x349f38;switch(_0x5dbdea){case _0x22b515[_0x7ff7ed(0x1f7)]:return _0x7ff7ed(0x18d);case _0x22b515[_0x7ff7ed(0x1ea)]:case _0x22b515[_0x7ff7ed(0x23a)]:return'univer-text-yellow-500';case _0x22b515['FAILED']:case _0x22b515[_0x7ff7ed(0x28a)]:return _0x7ff7ed(0x1bc);default:return _0x7ff7ed(0x21d);}}function ue(_0x152244){const _0x2a7187=_0x349f38;let {status$:_0x5ac207,error$:_0x1be9f5,onConfigure:_0x4ac8e7,showClickable:_0x85eac2=!0x0}=_0x152244,_0x1372b3=_0x22b380(_0x5ac207,_0x22b515['DISCONNECTED']),_0x2bc02a=_0x22b380(_0x1be9f5,_0x4f4eca[_0x2a7187(0x1d4)]),_0x496ef7=_0x1b601f(_0x2a4117),_0x34e12e=_0x1372b3===_0x22b515[_0x2a7187(0x1f7)];_0x1372b3===_0x22b515[_0x2a7187(0x1ea)]||_0x22b515[_0x2a7187(0x23a)];let _0x1c1805=_0x496ef7['t'](X(_0x1372b3,_0x2bc02a)),_0x36f08d=ce(_0x1372b3,_0x2bc02a,_0x496ef7,_0x85eac2),_0x407a19=le(_0x1372b3),_0x3563f2=_0x17a7ec(_0x34e12e?_0x32786a:_0x46e5cb,{}),_0x2703e2=_0x2c1554(()=>{_0x85eac2&&_0x4ac8e7&&_0x4ac8e7();},[_0x85eac2,_0x4ac8e7]);function _0x512b4d(){const _0x23bb92=_0x2a7187;return _0x1fe9f9('div',{'className':_0x5161dc(_0x23bb92(0x185),_0x85eac2&&_0x4ac8e7&&'\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'),'role':'button','onClick':_0x85eac2&&_0x4ac8e7?_0x2703e2:void 0x0,'children':[_0x17a7ec(_0x23bb92(0x26b),{'className':_0x5161dc(_0x23bb92(0x27b),_0x407a19),'children':_0x3563f2}),_0x17a7ec(_0x23bb92(0x26b),{'className':_0x23bb92(0x280),'children':_0x1c1805})]});}return _0x17a7ec(_0x42e742,{'title':_0x36f08d,'placement':'bottom','children':_0x512b4d()});}let Z=class extends _0x5f07cd{constructor(_0x346cdf,_0x211f99,_0x5b521a,_0x2a80e3){const _0x19bedc=_0x349f38;super(),this[_0x19bedc(0x246)]=_0x346cdf,this[_0x19bedc(0x264)]=_0x211f99,this[_0x19bedc(0x289)]=_0x5b521a,this[_0x19bedc(0x1f1)]=_0x2a80e3,this['_initAutoConnect'](),this[_0x19bedc(0x19d)]();}[_0x349f38(0x244)](){const _0x1e43fe=_0x349f38;let _0x5b1fce=this[_0x1e43fe(0x1f1)][_0x1e43fe(0x214)](B);_0x5b1fce!=null&&_0x5b1fce[_0x1e43fe(0x262)]&&(this[_0x1e43fe(0x264)][_0x1e43fe(0x1a7)]=!0x1);}[_0x349f38(0x19d)](){const _0x4a7122=_0x349f38;let _0x45fac1=this[_0x4a7122(0x1f1)][_0x4a7122(0x214)](B);(_0x45fac1==null?void 0x0:_0x45fac1[_0x4a7122(0x199)])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x4a7122(0x291)](_0x150bb3[_0x4a7122(0x20f)],()=>{const _0x3e56ce=_0x4a7122;var _0xbda99;return _0x277d2c(de({'status$':this[_0x3e56ce(0x264)][_0x3e56ce(0x17b)],'error$':this[_0x3e56ce(0x264)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0xbda99=_0x45fac1==null?void 0x0:_0x45fac1[_0x3e56ce(0x262)])==null?!0x1:_0xbda99}),this[_0x3e56ce(0x246)]);}));}[_0x349f38(0x1c4)](){const _0x11e9f1=_0x349f38;this['_injector'][_0x11e9f1(0x23e)](J)['showConfigPanel']();}};Z=G([W(0x0,_0x5ab4cd(_0x52106a)),W(0x1,_0x5ab4cd(_0xa07734)),W(0x2,_0x19a644),W(0x3,_0x2b4b65)],Z);function de(_0x4e40dc){let {status$:_0xf7c9bd,error$:_0x51af1e,onConfigure:_0x2feca5,showClickable:_0x33e29d}=_0x4e40dc;return function(){return _0x17a7ec(ue,{'status$':_0xf7c9bd,'error$':_0x51af1e,'onConfigure':_0x2feca5,'showClickable':_0x33e29d});};}function fe(_0x4251cc){const _0x1f6fcf=_0x349f38;return{'id':Y['id'],'type':_0x4562b8[_0x1f6fcf(0x1b2)],'icon':_0x1f6fcf(0x201),'title':_0x1f6fcf(0x1b8),'tooltip':'mcpConfig.title'};}const pe={[_0xa20e1c[_0x349f38(0x182)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x5f07cd{constructor(_0x57f3cc,_0x44063c){const _0x1e726e=_0x349f38;super(),this[_0x1e726e(0x1d9)]=_0x57f3cc,this['_menuManagerService']=_0x44063c,this['_initializeCommands'](),this[_0x1e726e(0x1b0)]();}['_initializeCommands'](){[Y]['forEach'](_0x20842e=>{const _0x29ba5a=_0x100b;this[_0x29ba5a(0x1a9)](this[_0x29ba5a(0x1d9)]['registerCommand'](_0x20842e));});}[_0x349f38(0x1b0)](){const _0x2d8274=_0x349f38;this['_menuManagerService'][_0x2d8274(0x1b3)](pe);}};Q=G([W(0x0,_0x58a53f),W(0x1,_0x481c09)],Q);const me={'mcpStatus':{'disconnected':_0x349f38(0x179),'connecting':_0x349f38(0x197),'connected':_0x349f38(0x284),'failed':_0x349f38(0x227),'retrying':_0x349f38(0x1a5),'unknown':_0x349f38(0x27d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x349f38(0x233),'networkError':_0x349f38(0x1c6),'maxRetriesExceeded':_0x349f38(0x186),'clickToConnect':_0x349f38(0x254),'clickToConfigure':_0x349f38(0x238)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x349f38(0x1a3),'apiKey':_0x349f38(0x255),'apiKeyPlaceholder':_0x349f38(0x205),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x349f38(0x1dc),'enableAuthHint':_0x349f38(0x1b4),'connectionInfo':_0x349f38(0x181),'mcpClientConfig':_0x349f38(0x181),'configInstructions':_0x349f38(0x1ab),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x349f38(0x26f),'configStep2':_0x349f38(0x1c3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x349f38(0x1a1),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x349f38(0x249),'maxRetries':'Max\x20Retries','save':_0x349f38(0x26a),'saving':_0x349f38(0x1ba),'note1':_0x349f38(0x28c),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x349f38(0x174),'configError':_0x349f38(0x1b1),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x349f38(0x17a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x349f38(0x16d)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x349f38(0x285),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x349f38(0x19c)},'connectionStatus':{'disconnected':_0x349f38(0x178),'connecting':_0x349f38(0x259),'connected':_0x349f38(0x1ae),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x349f38(0x1f6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x349f38(0x252)}}},he={'mcpStatus':{'disconnected':_0x349f38(0x188),'connecting':_0x349f38(0x203),'connected':'MCP\x20已连接','failed':_0x349f38(0x176),'retrying':_0x349f38(0x172),'unknown':'MCP\x20状态未知','unauthorized':_0x349f38(0x1af),'sessionOccupied':_0x349f38(0x20e),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x349f38(0x200),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x349f38(0x1e6),'apiKeyPlaceholder':_0x349f38(0x1ce),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x349f38(0x24e),'enableAuthHint':_0x349f38(0x240),'connectionInfo':_0x349f38(0x226),'mcpClientConfig':_0x349f38(0x226),'configInstructions':_0x349f38(0x23b),'configStepTitle':_0x349f38(0x1dd),'configStep1':_0x349f38(0x271),'configStep2':_0x349f38(0x24f),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x349f38(0x28f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x349f38(0x1d1),'maxRetries':_0x349f38(0x1ec),'save':_0x349f38(0x204),'saving':'保存中...','note1':_0x349f38(0x266),'note2':_0x349f38(0x248),'configSaved':_0x349f38(0x265),'configError':'配置保存失败','apiApplyInfo':{'title':_0x349f38(0x228),'description':_0x349f38(0x1f3),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x349f38(0x221)},'validation':{'apiKeyRequired':_0x349f38(0x18a),'apiKeyTooShort':_0x349f38(0x1da),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x349f38(0x294),'connecting':_0x349f38(0x28b),'connected':_0x349f38(0x1a2),'failed':_0x349f38(0x1fd),'retrying':_0x349f38(0x1b6)},'connectionError':{'unauthorized':_0x349f38(0x1aa),'sessionOccupied':_0x349f38(0x27f),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x349f38(0x253)}}};var ge='@univerjs-pro/mcp-ui',_e=_0x349f38(0x1ef);let $=class extends _0x281e21{constructor(_0x2771b8=V,_0x20c65a,_0x3d8a97,_0x579aab,_0x3dffdf,_0x139d20){const _0x161f3b=_0x349f38;super(),this['_config']=_0x2771b8,this['_injector']=_0x20c65a,this[_0x161f3b(0x1f1)]=_0x3d8a97,this['_uiPartsService']=_0x579aab,this[_0x161f3b(0x1d2)]=_0x3dffdf,this['_localeService']=_0x139d20;let {..._0x52bcfc}=_0x31de54({},V,this[_0x161f3b(0x1c9)]);this[_0x161f3b(0x1f1)][_0x161f3b(0x19f)](B,_0x52bcfc);}async['onStarting'](){const _0x16e2a5=_0x349f38;let _0x5b0143=[[Z],[J],[Q]];this[_0x16e2a5(0x246)][_0x16e2a5(0x1a4)](_0x14f887)||_0x5b0143[_0x16e2a5(0x286)]([_0x14f887,{'useClass':_0x29f53e}]),_0x5b0143['forEach'](_0x1f29ce=>this[_0x16e2a5(0x246)][_0x16e2a5(0x243)](_0x1f29ce)),this['_injector'][_0x16e2a5(0x23e)](Z),this[_0x16e2a5(0x246)][_0x16e2a5(0x23e)](J),this[_0x16e2a5(0x246)][_0x16e2a5(0x23e)](Q);}};U($,_0x349f38(0x177),_0x349f38(0x235)),U($,_0x349f38(0x222),ge),U($,_0x349f38(0x20a),_e),$=G([_0x1cb994(_0x4fc106),W(0x1,_0x5ab4cd(_0x52106a)),W(0x2,_0x2b4b65),W(0x3,_0x19a644),W(0x4,_0x504129),W(0x5,_0x5ab4cd(_0x2a4117))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1e8b(_0x404f13,_0x151fc0){_0x404f13=_0x404f13-0x19c;const _0x1fcd5c=_0x1fcd();let _0x1e8bb4=_0x1fcd5c[_0x404f13];return _0x1e8bb4;}function _0x1fcd(){const _0x1b8e70=['Get\x20your\x20API\x20key\x20in\x20seconds','2iCEEoN','MCP:\x20Unauthorized','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','29135293APLrbO','524050xbWwHq','MCP\x20Retrying...','2631282DQnvZu','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','What\x20is\x20API\x20Key?','Connection\x20Failed','6206669xllqHv','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','120HyrTCq','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','45JuXMyF','67170zUEMvn','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Saving...','613723rxIvYc','API\x20Key','Configuration\x20Steps:','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.','MCP:\x20Network\x20Error','12DKLSbR','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connected','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','8nskxKs','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','2611698vWcljr','Retrying...'];_0x1fcd=function(){return _0x1b8e70;};return _0x1fcd();}const _0x420bc5=_0x1e8b;(function(_0x54d612,_0x395856){const _0x2545e3=_0x1e8b,_0x5ad3b8=_0x54d612();while(!![]){try{const _0x50b4a6=-parseInt(_0x2545e3(0x19d))/0x1+-parseInt(_0x2545e3(0x1b7))/0x2*(parseInt(_0x2545e3(0x1b4))/0x3)+-parseInt(_0x2545e3(0x1c7))/0x4*(parseInt(_0x2545e3(0x1cd))/0x5)+parseInt(_0x2545e3(0x1bd))/0x6+parseInt(_0x2545e3(0x1c3))/0x7*(-parseInt(_0x2545e3(0x1af))/0x8)+-parseInt(_0x2545e3(0x1cc))/0x9*(-parseInt(_0x2545e3(0x1bb))/0xa)+-parseInt(_0x2545e3(0x1ba))/0xb*(-parseInt(_0x2545e3(0x1a3))/0xc);if(_0x50b4a6===_0x395856)break;else _0x5ad3b8['push'](_0x5ad3b8['shift']());}catch(_0x3b0f81){_0x5ad3b8['push'](_0x5ad3b8['shift']());}}}(_0x1fcd,0x8c71b));const e={'mcpStatus':{'disconnected':_0x420bc5(0x1be),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x420bc5(0x1c0),'retrying':_0x420bc5(0x1bc),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x420bc5(0x1b8),'sessionOccupied':_0x420bc5(0x1ac),'networkError':_0x420bc5(0x1a2),'maxRetriesExceeded':_0x420bc5(0x1ad),'clickToConnect':_0x420bc5(0x1a9),'clickToConfigure':_0x420bc5(0x1c5)},'mcpConfig':{'title':_0x420bc5(0x1c6),'description':_0x420bc5(0x1b0),'apiKey':_0x420bc5(0x19e),'apiKeyPlaceholder':_0x420bc5(0x1b1),'apiKeyHint':_0x420bc5(0x1b9),'enableAuth':_0x420bc5(0x1a6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x420bc5(0x1c8),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x420bc5(0x19f),'configStep1':_0x420bc5(0x1ca),'configStep2':_0x420bc5(0x1ce),'configStep3':_0x420bc5(0x1a5),'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':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x420bc5(0x19c),'note1':_0x420bc5(0x1a7),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x420bc5(0x1c9),'configError':_0x420bc5(0x1b3),'apiApplyInfo':{'title':_0x420bc5(0x1c1),'description':_0x420bc5(0x1a1),'univerAiLabel':_0x420bc5(0x1ae),'getStarted':_0x420bc5(0x1b6)},'validation':{'apiKeyRequired':_0x420bc5(0x1a4),'apiKeyTooShort':_0x420bc5(0x1b2),'invalidConfig':_0x420bc5(0x1cb),'invalidApiKey':_0x420bc5(0x1a8)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x420bc5(0x1a0),'connected':_0x420bc5(0x1ab),'failed':_0x420bc5(0x1c2),'retrying':_0x420bc5(0x1b5)},'connectionError':{'unauthorized':_0x420bc5(0x1c4),'sessionOccupied':_0x420bc5(0x1aa),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x420bc5(0x1bf)}}};export{e as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x891f(_0x434604,_0x35e69f){_0x434604=_0x434604-0x19f;const _0x436ff0=_0x436f();let _0x891f5c=_0x436ff0[_0x434604];return _0x891f5c;}const _0x3b16f9=_0x891f;function _0x436f(){const _0x12c512=['Univer\x20AI\x20Console','MCP\x20Connected','MCP\x20Configuration','1884778DCOpIN','26cVoidu','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','Retrying...','351852feDzGz','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','MCP\x20Connecting...','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','622775vhIYLx','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Retrying...','6934344ScRFfn','96180NYIEYN','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','19005hmUOwY','Enter\x20your\x20API\x20key','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Connection\x20Failed','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20connect\x20MCP','283453VgDgGB','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x436f=function(){return _0x12c512;};return _0x436f();}(function(_0x1505ab,_0xa613a3){const _0x347b15=_0x891f,_0x24ec5d=_0x1505ab();while(!![]){try{const _0x48096e=-parseInt(_0x347b15(0x1b6))/0x1+-parseInt(_0x347b15(0x1bc))/0x2*(-parseInt(_0x347b15(0x1a9))/0x3)+-parseInt(_0x347b15(0x1c1))/0x4+-parseInt(_0x347b15(0x1cc))/0x5+parseInt(_0x347b15(0x1a6))/0x6+-parseInt(_0x347b15(0x1bb))/0x7+parseInt(_0x347b15(0x1a5))/0x8;if(_0x48096e===_0xa613a3)break;else _0x24ec5d['push'](_0x24ec5d['shift']());}catch(_0x4cb92b){_0x24ec5d['push'](_0x24ec5d['shift']());}}}(_0x436f,0x30d11));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3b16f9(0x1c9),'connected':_0x3b16f9(0x1b9),'failed':_0x3b16f9(0x1a8),'retrying':_0x3b16f9(0x1a4),'unknown':_0x3b16f9(0x1ca),'unauthorized':_0x3b16f9(0x1c8),'sessionOccupied':_0x3b16f9(0x1b2),'networkError':_0x3b16f9(0x1ae),'maxRetriesExceeded':_0x3b16f9(0x1a3),'clickToConnect':_0x3b16f9(0x1b5),'clickToConfigure':_0x3b16f9(0x1ac)},'mcpConfig':{'title':_0x3b16f9(0x1ba),'description':_0x3b16f9(0x1a1),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3b16f9(0x1aa),'apiKeyHint':_0x3b16f9(0x1b3),'enableAuth':_0x3b16f9(0x1c6),'enableAuthHint':_0x3b16f9(0x19f),'connectionInfo':_0x3b16f9(0x1cb),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3b16f9(0x1a7),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3b16f9(0x1af),'configStep2':_0x3b16f9(0x1bd),'configStep3':_0x3b16f9(0x1c3),'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':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3b16f9(0x1a0),'maxRetries':_0x3b16f9(0x1b1),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3b16f9(0x1c7),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3b16f9(0x1bf),'description':_0x3b16f9(0x1b0),'univerAiLabel':_0x3b16f9(0x1b8),'getStarted':_0x3b16f9(0x1c5)},'validation':{'apiKeyRequired':_0x3b16f9(0x1ab),'apiKeyTooShort':_0x3b16f9(0x1c4),'invalidConfig':_0x3b16f9(0x1a2),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x3b16f9(0x1ad),'retrying':_0x3b16f9(0x1c0)},'connectionError':{'unauthorized':_0x3b16f9(0x1c2),'sessionOccupied':_0x3b16f9(0x1be),'networkError':_0x3b16f9(0x1b4),'maxRetriesExceeded':_0x3b16f9(0x1b7)}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5a1552=_0x39d0;function _0x39d0(_0x15ad18,_0x35f5ae){_0x15ad18=_0x15ad18-0xad;const _0x25dfc9=_0x25df();let _0x39d0e7=_0x25dfc9[_0x15ad18];return _0x39d0e7;}(function(_0x2289ac,_0x11816d){const _0x3f41bd=_0x39d0,_0x45225a=_0x2289ac();while(!![]){try{const _0x2fc945=-parseInt(_0x3f41bd(0xba))/0x1+-parseInt(_0x3f41bd(0xb5))/0x2*(-parseInt(_0x3f41bd(0xcd))/0x3)+parseInt(_0x3f41bd(0xc4))/0x4+parseInt(_0x3f41bd(0xd6))/0x5+parseInt(_0x3f41bd(0xbe))/0x6+parseInt(_0x3f41bd(0xad))/0x7+-parseInt(_0x3f41bd(0xb3))/0x8;if(_0x2fc945===_0x11816d)break;else _0x45225a['push'](_0x45225a['shift']());}catch(_0x2ec1f5){_0x45225a['push'](_0x45225a['shift']());}}}(_0x25df,0xbe988));const e={'mcpStatus':{'disconnected':_0x5a1552(0xc3),'connecting':_0x5a1552(0xb1),'connected':_0x5a1552(0xc0),'failed':_0x5a1552(0xb8),'retrying':_0x5a1552(0xb6),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5a1552(0xb7),'clickToConnect':_0x5a1552(0xc5),'clickToConfigure':_0x5a1552(0xd4)},'mcpConfig':{'title':_0x5a1552(0xcf),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5a1552(0xb9),'apiKeyPlaceholder':_0x5a1552(0xc8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5a1552(0xc6),'enableAuthHint':_0x5a1552(0xc7),'connectionInfo':_0x5a1552(0xaf),'mcpClientConfig':_0x5a1552(0xaf),'configInstructions':_0x5a1552(0xd3),'configStepTitle':_0x5a1552(0xcb),'configStep1':_0x5a1552(0xbf),'configStep2':_0x5a1552(0xbc),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5a1552(0xd8),'sessionIdDescription':_0x5a1552(0xd5),'authorizationDescription':_0x5a1552(0xae),'configParameters':_0x5a1552(0xc1),'maxRetries':_0x5a1552(0xd9),'save':_0x5a1552(0xcc),'saving':_0x5a1552(0xb0),'note1':_0x5a1552(0xda),'note2':_0x5a1552(0xc2),'configSaved':_0x5a1552(0xce),'configError':_0x5a1552(0xb2),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5a1552(0xd0),'univerAiLabel':_0x5a1552(0xc9),'getStarted':_0x5a1552(0xb4)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5a1552(0xbd),'invalidConfig':_0x5a1552(0xdb),'invalidApiKey':_0x5a1552(0xd1)},'connectionStatus':{'disconnected':_0x5a1552(0xd7),'connecting':'Connecting...','connected':_0x5a1552(0xdd),'failed':'Connection\x20Failed','retrying':_0x5a1552(0xdc)},'connectionError':{'unauthorized':_0x5a1552(0xca),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5a1552(0xbb),'maxRetriesExceeded':_0x5a1552(0xd2)}}};function _0x25df(){const _0x113e0b=['Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','Univer\x20AI\x20Console','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','Save\x20Configuration','4498077rJiKLX','Configuration\x20saved\x20successfully','MCP\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','5577280QECCsf','Disconnected','Session\x20ID','Max\x20Retries','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Retrying...','Connected','62209NDRaDj','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','Saving...','MCP\x20Connecting...','Failed\x20to\x20save\x20configuration','21690048NiZkTU','Get\x20your\x20API\x20key\x20in\x20seconds','2CyIMRo','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','API\x20Key','1549165SdcceB','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','8838432espaXQ','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','3777308ByhXyw','Click\x20to\x20connect\x20MCP','Enable\x20Authentication'];_0x25df=function(){return _0x113e0b;};return _0x25df();}export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4a8a(_0x2d046d,_0x2e5999){_0x2d046d=_0x2d046d-0xfe;const _0x1f8f30=_0x1f8f();let _0x4a8aa0=_0x1f8f30[_0x2d046d];return _0x4a8aa0;}const _0xd1a1e2=_0x4a8a;(function(_0xacc2a6,_0x4409a3){const _0x1daca4=_0x4a8a,_0x26f309=_0xacc2a6();while(!![]){try{const _0x584a65=parseInt(_0x1daca4(0x113))/0x1*(-parseInt(_0x1daca4(0x11c))/0x2)+parseInt(_0x1daca4(0x109))/0x3+parseInt(_0x1daca4(0x106))/0x4+parseInt(_0x1daca4(0x101))/0x5+-parseInt(_0x1daca4(0x10d))/0x6*(-parseInt(_0x1daca4(0x12c))/0x7)+parseInt(_0x1daca4(0x12a))/0x8*(-parseInt(_0x1daca4(0xfe))/0x9)+parseInt(_0x1daca4(0x10f))/0xa;if(_0x584a65===_0x4409a3)break;else _0x26f309['push'](_0x26f309['shift']());}catch(_0x320504){_0x26f309['push'](_0x26f309['shift']());}}}(_0x1f8f,0x30731));const e={'mcpStatus':{'disconnected':_0xd1a1e2(0x12b),'connecting':_0xd1a1e2(0x122),'connected':_0xd1a1e2(0x11a),'failed':_0xd1a1e2(0x12d),'retrying':_0xd1a1e2(0x117),'unknown':_0xd1a1e2(0x100),'unauthorized':_0xd1a1e2(0x123),'sessionOccupied':_0xd1a1e2(0xff),'networkError':_0xd1a1e2(0x107),'maxRetriesExceeded':_0xd1a1e2(0x120),'clickToConnect':_0xd1a1e2(0x11d),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xd1a1e2(0x110),'description':_0xd1a1e2(0x104),'apiKey':_0xd1a1e2(0x118),'apiKeyPlaceholder':_0xd1a1e2(0x115),'apiKeyHint':_0xd1a1e2(0x10b),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xd1a1e2(0x10c),'connectionInfo':_0xd1a1e2(0x108),'mcpClientConfig':_0xd1a1e2(0x108),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xd1a1e2(0x121),'configStep1':_0xd1a1e2(0x11e),'configStep2':_0xd1a1e2(0x11f),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0xd1a1e2(0x12f),'authorizationDescription':_0xd1a1e2(0x102),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xd1a1e2(0x10e),'save':'Save\x20Configuration','saving':_0xd1a1e2(0x129),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0xd1a1e2(0x124),'configSaved':_0xd1a1e2(0x127),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0xd1a1e2(0x11b),'description':_0xd1a1e2(0x105),'univerAiLabel':_0xd1a1e2(0x10a),'getStarted':_0xd1a1e2(0x128)},'validation':{'apiKeyRequired':_0xd1a1e2(0x126),'apiKeyTooShort':_0xd1a1e2(0x119),'invalidConfig':_0xd1a1e2(0x103),'invalidApiKey':_0xd1a1e2(0x116)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xd1a1e2(0x12e),'connected':'Connected','failed':_0xd1a1e2(0x112),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0xd1a1e2(0x125),'sessionOccupied':_0xd1a1e2(0x114),'networkError':_0xd1a1e2(0x111),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};function _0x1f8f(){const _0x48abda=['Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','What\x20is\x20API\x20Key?','77608tOAtgP','Click\x20to\x20connect\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','MCP\x20Connecting...','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','1454176vSssue','MCP\x20Disconnected','154bWmyBf','MCP\x20Connection\x20Failed','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','18KwsQHv','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Unknown\x20Status','1408705gaSpzp','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20configuration','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.','587680tRlRAT','MCP:\x20Network\x20Error','MCP\x20Client\x20Configuration','16182MSwGoo','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','2922kxoqhz','Max\x20Retries','1948320kEkcWw','MCP\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','2HpYfvi'];_0x1f8f=function(){return _0x48abda;};return _0x1f8f();}
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x385613=_0x50e2;function _0x218b(){const _0x543293=['MCP:\x20Unauthorized','2ZvDGpj','Max\x20Retries','MCP\x20Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','Session\x20ID','Failed\x20to\x20save\x20configuration','Saving...','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','11rUbtKB','Enable\x20authentication\x20for\x20secure\x20connections','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','Univer\x20AI\x20Console','1374047rwddza','Click\x20to\x20configure\x20MCP','2435916oucbpn','Disconnected','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','10350918HlRxdn','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Unknown\x20Status','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','11312kcSgEg','Configuration\x20saved\x20successfully','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','Enable\x20Authentication','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20configuration','38083670folrHk','20RlaOFy','Configuration\x20Steps:','5403230gGguzF','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','7929AppUCe','1616884PtdnPW','What\x20is\x20API\x20Key?'];_0x218b=function(){return _0x543293;};return _0x218b();}(function(_0x592bdb,_0x214c88){const _0x44aa78=_0x50e2,_0x530843=_0x592bdb();while(!![]){try{const _0x6a922b=-parseInt(_0x44aa78(0x9e))/0x1+-parseInt(_0x44aa78(0xbb))/0x2*(-parseInt(_0x44aa78(0xa0))/0x3)+parseInt(_0x44aa78(0xb8))/0x4*(parseInt(_0x44aa78(0xb3))/0x5)+parseInt(_0x44aa78(0xa4))/0x6+parseInt(_0x44aa78(0xb5))/0x7+parseInt(_0x44aa78(0xa9))/0x8*(parseInt(_0x44aa78(0xb7))/0x9)+-parseInt(_0x44aa78(0xb2))/0xa*(parseInt(_0x44aa78(0xc9))/0xb);if(_0x6a922b===_0x214c88)break;else _0x530843['push'](_0x530843['shift']());}catch(_0x25a21d){_0x530843['push'](_0x530843['shift']());}}}(_0x218b,0xf1823));function _0x50e2(_0x403fc3,_0xaf09cd){_0x403fc3=_0x403fc3-0x9c;const _0x218bca=_0x218b();let _0x50e2e7=_0x218bca[_0x403fc3];return _0x50e2e7;}const e={'mcpStatus':{'disconnected':_0x385613(0xa7),'connecting':_0x385613(0xbd),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x385613(0xc6),'unknown':_0x385613(0xa6),'unauthorized':_0x385613(0xba),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x385613(0xc8),'clickToConnect':_0x385613(0xa8),'clickToConfigure':_0x385613(0x9f)},'mcpConfig':{'title':_0x385613(0xc0),'description':_0x385613(0xcd),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x385613(0xae),'apiKeyHint':_0x385613(0xcc),'enableAuth':_0x385613(0xaf),'enableAuthHint':_0x385613(0xca),'connectionInfo':_0x385613(0xac),'mcpClientConfig':_0x385613(0xac),'configInstructions':_0x385613(0xad),'configStepTitle':_0x385613(0xb4),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x385613(0xbf),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x385613(0xc3),'sessionIdDescription':_0x385613(0xcb),'authorizationDescription':_0x385613(0xb0),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x385613(0xbc),'save':'Save\x20Configuration','saving':_0x385613(0xc5),'note1':_0x385613(0xa5),'note2':_0x385613(0xb6),'configSaved':_0x385613(0xaa),'configError':_0x385613(0xc4),'apiApplyInfo':{'title':_0x385613(0xb9),'description':_0x385613(0xc1),'univerAiLabel':_0x385613(0x9d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x385613(0xbe),'invalidConfig':_0x385613(0xb1),'invalidApiKey':_0x385613(0xab)},'connectionStatus':{'disconnected':_0x385613(0xa1),'connecting':_0x385613(0xa2),'connected':'Connected','failed':_0x385613(0xc2),'retrying':_0x385613(0x9c)},'connectionError':{'unauthorized':_0x385613(0xa3),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x385613(0xc7),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xbbed32=_0x4924;(function(_0x1aa564,_0x2f741f){const _0x151a6b=_0x4924,_0xc39433=_0x1aa564();while(!![]){try{const _0x3cf384=parseInt(_0x151a6b(0x9b))/0x1+parseInt(_0x151a6b(0xb7))/0x2+-parseInt(_0x151a6b(0xab))/0x3*(parseInt(_0x151a6b(0xb5))/0x4)+parseInt(_0x151a6b(0x9f))/0x5+-parseInt(_0x151a6b(0xb9))/0x6*(parseInt(_0x151a6b(0xa6))/0x7)+-parseInt(_0x151a6b(0xaf))/0x8+parseInt(_0x151a6b(0xa4))/0x9;if(_0x3cf384===_0x2f741f)break;else _0xc39433['push'](_0xc39433['shift']());}catch(_0x9312a3){_0xc39433['push'](_0xc39433['shift']());}}}(_0x1b4e,0x4c23b));function _0x4924(_0x152251,_0x2ca021){_0x152251=_0x152251-0x96;const _0x1b4ea2=_0x1b4e();let _0x4924ef=_0x1b4ea2[_0x152251];return _0x4924ef;}const e={'mcpStatus':{'disconnected':_0xbbed32(0xb6),'connecting':'MCP\x20接続中...','connected':_0xbbed32(0xa9),'failed':'MCP\x20接続失敗','retrying':_0xbbed32(0xbd),'unknown':'MCP\x20不明な状態','unauthorized':_0xbbed32(0x9d),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0xbbed32(0xb1),'maxRetriesExceeded':_0xbbed32(0x97),'clickToConnect':_0xbbed32(0x9e),'clickToConfigure':_0xbbed32(0xbc)},'mcpConfig':{'title':'MCP設定','description':_0xbbed32(0xac),'apiKey':'APIキー','apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0xbbed32(0xa1),'enableAuth':_0xbbed32(0x98),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':'MCPクライアント設定','mcpClientConfig':_0xbbed32(0xb0),'configInstructions':_0xbbed32(0x9c),'configStepTitle':_0xbbed32(0xa2),'configStep1':_0xbbed32(0xaa),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0xbbed32(0xb2),'sessionId':_0xbbed32(0x96),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0xbbed32(0xa3),'configParameters':_0xbbed32(0xb3),'maxRetries':_0xbbed32(0xa5),'save':_0xbbed32(0xad),'saving':'保存中...','note1':_0xbbed32(0xbb),'note2':_0xbbed32(0x9a),'configSaved':_0xbbed32(0xae),'configError':_0xbbed32(0x99),'apiApplyInfo':{'title':'APIキーとは?','description':_0xbbed32(0xa7),'univerAiLabel':'Univer\x20AIコンソール','getStarted':_0xbbed32(0xb8)},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':_0xbbed32(0xb4),'invalidConfig':'無効な設定','invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':'未接続','connecting':_0xbbed32(0xbe),'connected':_0xbbed32(0xba),'failed':'接続失敗','retrying':'再試行中...'},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0xbbed32(0xa0),'networkError':_0xbbed32(0xa8),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};function _0x1b4e(){const _0x589ec9=['942423lrOEXs','MCPを設定してAIでスプレッドシートを操作','設定を保存','設定が正常に保存されました','2970864yQzMeX','MCPクライアント設定','MCP:\x20ネットワークエラー','MCPクライアントを再起動して設定を適用','設定パラメータ:','APIキーは10文字以上である必要があります','4EEIAuZ','MCP\x20未接続','1045894ctEqGw','数秒でAPIキーを取得','381162hEisdS','接続済み','設定の変更は直ちに有効になります','クリックしてMCPを設定','MCP\x20再試行中...','接続中...','セッションID','MCP:\x20最大再試行回数を超過','認証を有効にする','設定の保存に失敗しました','APIキーはローカルストレージに安全に保存されます','297018XyODZU','MCPクライアントの設定に次の設定を追加してください:','MCP:\x20認証されていません','クリックしてMCPに接続','1752915GoIdBl','セッションIDが現在使用中です。後でもう一度お試しください','APIキーはこのブラウザのローカルに保存されます','設定手順:','Bearerプレフィックス付きのAPIキー。','2443563yhZPpm','最大再試行回数','49AtBiRx','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','ネットワーク接続エラー。インターネット接続を確認してください','MCP\x20接続済み','以下のJSON設定をコピー'];_0x1b4e=function(){return _0x589ec9;};return _0x1b4e();}export{e as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x59f155=_0x2c44;(function(_0x3e683c,_0x2c22aa){const _0x4be44d=_0x2c44,_0x240801=_0x3e683c();while(!![]){try{const _0x18d5f4=-parseInt(_0x4be44d(0x205))/0x1*(parseInt(_0x4be44d(0x1fb))/0x2)+parseInt(_0x4be44d(0x1df))/0x3+-parseInt(_0x4be44d(0x1f4))/0x4+-parseInt(_0x4be44d(0x1dc))/0x5+-parseInt(_0x4be44d(0x1ef))/0x6+parseInt(_0x4be44d(0x1e7))/0x7+parseInt(_0x4be44d(0x207))/0x8*(parseInt(_0x4be44d(0x1d9))/0x9);if(_0x18d5f4===_0x2c22aa)break;else _0x240801['push'](_0x240801['shift']());}catch(_0x527dea){_0x240801['push'](_0x240801['shift']());}}}(_0x86ba,0xd27cb));const e={'mcpStatus':{'disconnected':_0x59f155(0x1ed),'connecting':'MCP\x20연결\x20중...','connected':_0x59f155(0x1ea),'failed':_0x59f155(0x1fe),'retrying':_0x59f155(0x1f8),'unknown':_0x59f155(0x1f5),'unauthorized':_0x59f155(0x1e1),'sessionOccupied':_0x59f155(0x1fc),'networkError':'MCP:\x20네트워크\x20오류','maxRetriesExceeded':_0x59f155(0x1e4),'clickToConnect':_0x59f155(0x1e2),'clickToConfigure':_0x59f155(0x1de)},'mcpConfig':{'title':_0x59f155(0x200),'description':_0x59f155(0x1f3),'apiKey':_0x59f155(0x1ff),'apiKeyPlaceholder':_0x59f155(0x1e6),'apiKeyHint':_0x59f155(0x1e9),'enableAuth':_0x59f155(0x203),'enableAuthHint':_0x59f155(0x1d7),'connectionInfo':'MCP\x20클라이언트\x20설정','mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x59f155(0x201),'configStepTitle':_0x59f155(0x1e3),'configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':'MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','configStep3':_0x59f155(0x1d8),'sessionId':_0x59f155(0x1da),'sessionIdDescription':_0x59f155(0x1f1),'authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':_0x59f155(0x1eb),'maxRetries':_0x59f155(0x1f0),'save':_0x59f155(0x1fa),'saving':_0x59f155(0x1ec),'note1':_0x59f155(0x1f7),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':_0x59f155(0x1e0),'configError':'설정\x20저장\x20실패','apiApplyInfo':{'title':_0x59f155(0x1db),'description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x59f155(0x206)},'validation':{'apiKeyRequired':_0x59f155(0x204),'apiKeyTooShort':_0x59f155(0x1f6),'invalidConfig':_0x59f155(0x202),'invalidApiKey':_0x59f155(0x1e8)},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':_0x59f155(0x1f9),'connected':_0x59f155(0x1ee),'failed':_0x59f155(0x1f2),'retrying':'재시도\x20중...'},'connectionError':{'unauthorized':_0x59f155(0x1fd),'sessionOccupied':_0x59f155(0x1e5),'networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x59f155(0x1dd)}}};function _0x2c44(_0x266774,_0x20b2f7){_0x266774=_0x266774-0x1d7;const _0x86ba0b=_0x86ba();let _0x2c4407=_0x86ba0b[_0x266774];return _0x2c4407;}function _0x86ba(){const _0x5406e8=['보안\x20연결을\x20위해\x20인증\x20활성화','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','36LRxAcm','세션\x20ID','API\x20키란\x20무엇인가요?','3007990OIBuvQ','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','클릭하여\x20MCP\x20설정','1809564pGTsgs','설정이\x20성공적으로\x20저장되었습니다','MCP:\x20인증되지\x20않음','클릭하여\x20MCP\x20연결','설정\x20단계:','MCP:\x20최대\x20재시도\x20횟수\x20초과','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','API\x20키를\x20입력하세요','565530dbKIcN','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','MCP\x20연결됨','설정\x20매개변수:','저장\x20중...','MCP\x20연결\x20끊김','연결됨','4695342rHTCYD','최대\x20재시도\x20횟수','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','연결\x20실패','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','5682080bzUQGo','MCP\x20알\x20수\x20없는\x20상태','API\x20키는\x2010자\x20이상이어야\x20합니다','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20재시도\x20중...','연결\x20중...','설정\x20저장','8AhgLtT','MCP:\x20세션\x20ID\x20사용\x20중','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP\x20연결\x20실패','API\x20키','MCP\x20설정','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','유효하지\x20않은\x20설정','인증\x20활성화','API\x20키는\x20필수입니다','365563vnNZFI','몇\x20초\x20만에\x20API\x20키\x20발급받기','8890208KvsQuG'];_0x86ba=function(){return _0x5406e8;};return _0x86ba();}export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x8e837f=_0x446e;(function(_0x4b2c07,_0x4db832){const _0x1e2e86=_0x446e,_0x717f3f=_0x4b2c07();while(!![]){try{const _0x2213d5=-parseInt(_0x1e2e86(0xa2))/0x1+parseInt(_0x1e2e86(0x94))/0x2+parseInt(_0x1e2e86(0x9f))/0x3+-parseInt(_0x1e2e86(0xb5))/0x4+parseInt(_0x1e2e86(0x9e))/0x5*(-parseInt(_0x1e2e86(0xad))/0x6)+-parseInt(_0x1e2e86(0xb1))/0x7*(parseInt(_0x1e2e86(0xb9))/0x8)+parseInt(_0x1e2e86(0x9c))/0x9*(parseInt(_0x1e2e86(0x97))/0xa);if(_0x2213d5===_0x4db832)break;else _0x717f3f['push'](_0x717f3f['shift']());}catch(_0x41d11f){_0x717f3f['push'](_0x717f3f['shift']());}}}(_0x3363,0x1e412));function _0x3363(){const _0x5f1207=['API\x20key\x20is\x20required','Univer\x20AI\x20Console','MCP\x20Disconnected','Configuration\x20Parameters:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Configuration','78216wnMIuy','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','Connecting...','428596bHRwPn','Save\x20Configuration','Invalid\x20configuration','MCP\x20Connecting...','133096MKQmVq','Failed\x20to\x20save\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','16ZPoDtn','MCP\x20Connection\x20Failed','MCP\x20Connected','MCP\x20Retrying...','Disconnected','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','109838YmpYdC','Max\x20Retries','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2955220imycNL','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','18ZbtCkT','API\x20Key','65ImFojb','104781SfMvGM','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','231770nmuOIL','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully'];_0x3363=function(){return _0x5f1207;};return _0x3363();}function _0x446e(_0x1f3e08,_0x1d9b43){_0x1f3e08=_0x1f3e08-0x8f;const _0x3363a8=_0x3363();let _0x446e39=_0x3363a8[_0x1f3e08];return _0x446e39;}const e={'mcpStatus':{'disconnected':_0x8e837f(0xa8),'connecting':_0x8e837f(0xb4),'connected':_0x8e837f(0xbb),'failed':_0x8e837f(0xba),'retrying':_0x8e837f(0xbc),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x8e837f(0x92),'sessionOccupied':_0x8e837f(0xa4),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x8e837f(0x9b),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x8e837f(0xac),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x8e837f(0x9d),'apiKeyPlaceholder':_0x8e837f(0xbe),'apiKeyHint':_0x8e837f(0x99),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x8e837f(0xa0),'connectionInfo':_0x8e837f(0xaf),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x8e837f(0x9a),'configStepTitle':_0x8e837f(0x8f),'configStep1':_0x8e837f(0x91),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x8e837f(0x93),'sessionId':'Session\x20ID','sessionIdDescription':_0x8e837f(0xae),'authorizationDescription':_0x8e837f(0xa3),'configParameters':_0x8e837f(0xa9),'maxRetries':_0x8e837f(0x95),'save':_0x8e837f(0xb2),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x8e837f(0x90),'configSaved':_0x8e837f(0xa5),'configError':_0x8e837f(0xb6),'apiApplyInfo':{'title':_0x8e837f(0xb8),'description':_0x8e837f(0x96),'univerAiLabel':_0x8e837f(0xa7),'getStarted':_0x8e837f(0xbf)},'validation':{'apiKeyRequired':_0x8e837f(0xa6),'apiKeyTooShort':_0x8e837f(0xa1),'invalidConfig':_0x8e837f(0xb3),'invalidApiKey':_0x8e837f(0xab)},'connectionStatus':{'disconnected':_0x8e837f(0xbd),'connecting':_0x8e837f(0xb0),'connected':'Connected','failed':_0x8e837f(0x98),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x8e837f(0xaa),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x8e837f(0xb7)}}};export{e as default};
|