@univerjs-pro/mcp-ui 0.22.0 → 0.22.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.
Files changed (53) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ja-JP.js +1 -1
  47. package/lib/umd/locale/ko-KR.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/sk-SK.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x435cce=_0x1acc;(function(_0x54e967,_0x2af489){const _0x285859=_0x1acc,_0x16225f=_0x54e967();while(!![]){try{const _0x277220=parseInt(_0x285859(0x162))/0x1*(parseInt(_0x285859(0x1af))/0x2)+parseInt(_0x285859(0x23c))/0x3*(-parseInt(_0x285859(0x1b8))/0x4)+-parseInt(_0x285859(0x1dc))/0x5*(parseInt(_0x285859(0x166))/0x6)+-parseInt(_0x285859(0x183))/0x7*(-parseInt(_0x285859(0x15b))/0x8)+parseInt(_0x285859(0x201))/0x9+parseInt(_0x285859(0x233))/0xa*(-parseInt(_0x285859(0x1b3))/0xb)+parseInt(_0x285859(0x10f))/0xc;if(_0x277220===_0x2af489)break;else _0x16225f['push'](_0x16225f['shift']());}catch(_0x137b4d){_0x16225f['push'](_0x16225f['shift']());}}}(_0x1a70,0x1a947));import{CommandType,DependentOn,Disposable,ICommandService,IConfigService,ILocalStorageService,ILogService,Inject,Injector,LocaleService,Plugin,merge}from'@univerjs/core';import{MCPConnectionController,MCPConnectionError,MCPConnectionStatus,MCP_PLUGIN_CONFIG_KEY,UniverMCPPlugin}from'@univerjs-pro/mcp';import{Button,Input,MessageType,Tooltip,clsx}from'@univerjs/design';import{BuiltInUIPart,ComponentManager,IDialogService,IMenuManagerService,IMessageService,IUIPartsService,MenuItemType,RibbonStartGroup,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{BehaviorSubject}from'rxjs';import{CheckMarkIcon,CloseIcon,HelpIcon,OffLineIcon,OnLineIcon}from'@univerjs/icons';import{useCallback,useState}from'react';import{jsx,jsxs}from'react/jsx-runtime';import{ISocketService,WebSocketService}from'@univerjs/network';function MCPConfigPanel(_0x1f3e90){const _0x1d2a4f=_0x1acc;var _0x27f98c,_0x3b1b7b;const {mcpCoreConfig:_0x2718d7,onSave:_0x26ce58,loading:loading=![],config:_0x3e0a61,connectionStatus$:_0x5727b3,connectionError$:_0x413554,currentApiKey$:_0x294172,currentSessionId$:_0x592d07}=_0x1f3e90,_0x444ac6=useDependency(LocaleService),_0x5c640d=useObservable(_0x5727b3,MCPConnectionStatus[_0x1d2a4f(0x23a)]),_0x2f5d27=useObservable(_0x413554,MCPConnectionError[_0x1d2a4f(0x151)]),_0x167b03=useObservable(_0x592d07,''),[_0x1c9c3b,_0x320193]=useState(useObservable(_0x294172,'')||''),_0x5717c8=!![],_0x48f7f2=_0x3e0a61[_0x1d2a4f(0x193)]&&_0x2718d7[_0x1d2a4f(0x216)]&&(_0x2718d7[_0x1d2a4f(0x216)]['includes'](_0x1d2a4f(0x1b0))||_0x2718d7[_0x1d2a4f(0x216)][_0x1d2a4f(0x1fa)]('univer.ai')),_0x25db2e=(_0x27f98c=_0x2718d7[_0x1d2a4f(0x216)])===null||_0x27f98c===void 0x0?void 0x0:_0x27f98c[_0x1d2a4f(0x1fa)]('univer.plus'),_0x11d693=(_0x3b1b7b=_0x2718d7[_0x1d2a4f(0x216)])===null||_0x3b1b7b===void 0x0?void 0x0:_0x3b1b7b[_0x1d2a4f(0x1fa)](_0x1d2a4f(0x114)),_0x27137e=_0x25db2e?_0x1d2a4f(0x130):_0x1d2a4f(0x238),_0xb9674a=_0x3e0a61[_0x1d2a4f(0x193)]&&(_0x25db2e||_0x11d693),[_0x5f598b,_0x126067]=useState(!_0x1c9c3b[_0x1d2a4f(0x236)]()),_0xe43bb8=(_0x4578e5,_0x156a08)=>{const _0x4b5166=_0x1d2a4f;if(_0x156a08===MCPConnectionError['UNAUTHORIZED'])return _0x4b5166(0x1ce);switch(_0x4578e5){case MCPConnectionStatus[_0x4b5166(0x19e)]:return _0x4b5166(0x239);case MCPConnectionStatus[_0x4b5166(0x206)]:case MCPConnectionStatus[_0x4b5166(0x1d3)]:return _0x4b5166(0x137);case MCPConnectionStatus[_0x4b5166(0x1e5)]:return _0x4b5166(0x1ce);default:return _0x4b5166(0x23f);}},_0x384a9d=(_0x1944bb,_0x3906be)=>{const _0x467eae=_0x1d2a4f;if(_0x3906be===MCPConnectionError['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x1944bb){case MCPConnectionStatus[_0x467eae(0x19e)]:return _0x467eae(0x161);case MCPConnectionStatus[_0x467eae(0x206)]:case MCPConnectionStatus[_0x467eae(0x1d3)]:return _0x467eae(0x154);case MCPConnectionStatus['FAILED']:return _0x467eae(0x210);default:return _0x467eae(0x219);}},_0xac4fc3=_0x3abce5=>{const _0x1e3917=_0x1d2a4f;switch(_0x3abce5){case MCPConnectionStatus[_0x1e3917(0x19e)]:return _0x444ac6['t']('mcpConfig.connectionStatus.connected');case MCPConnectionStatus[_0x1e3917(0x206)]:return _0x444ac6['t'](_0x1e3917(0x1db));case MCPConnectionStatus[_0x1e3917(0x1e5)]:return _0x444ac6['t'](_0x1e3917(0x1d8));case MCPConnectionStatus[_0x1e3917(0x1d3)]:return _0x444ac6['t']('mcpConfig.connectionStatus.retrying');default:return _0x444ac6['t'](_0x1e3917(0x140));}},_0x331dc1=_0x1a58b1=>{const _0x6c1d10=_0x1d2a4f;switch(_0x1a58b1){case MCPConnectionError[_0x6c1d10(0x1ca)]:return _0x444ac6['t'](_0x6c1d10(0x232));case MCPConnectionError[_0x6c1d10(0x1c2)]:return _0x444ac6['t'](_0x6c1d10(0x10e));case MCPConnectionError[_0x6c1d10(0x244)]:return _0x444ac6['t'](_0x6c1d10(0x23d));case MCPConnectionError[_0x6c1d10(0x1b4)]:return _0x444ac6['t'](_0x6c1d10(0x242));default:return'';}},_0x4c98c7=useCallback(()=>{const _0x4d7dd6=_0x1d2a4f;_0x26ce58({..._0x2718d7,'apiKey':_0x1c9c3b[_0x4d7dd6(0x236)](),'enableAuth':_0x5717c8});},[_0x2718d7,_0x1c9c3b,_0x5717c8,_0x26ce58]),_0x505b86=_0x1c9c3b[_0x1d2a4f(0x236)]()[_0x1d2a4f(0x18c)]>0x0;return jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x22a),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x163),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x13b),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x128),'children':jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x21e),'children':'⚙'})}),jsx('div',{'children':jsx('p',{'className':_0x1d2a4f(0x1e3),'children':_0x444ac6['t']('mcpConfig.description')})})]})}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x18f),'children':[jsx(_0x1d2a4f(0x1d6),{'className':clsx(_0x1d2a4f(0x1e2),_0xe43bb8(_0x5c640d,_0x2f5d27)),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1c3),'children':[jsx('div',{'className':clsx(_0x1d2a4f(0x1fb),_0x384a9d(_0x5c640d,_0x2f5d27))}),jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x129),'children':_0xac4fc3(_0x5c640d)})]})}),_0x2f5d27!==MCPConnectionError[_0x1d2a4f(0x151)]&&(_0x5c640d===MCPConnectionStatus['FAILED']||_0x2f5d27===MCPConnectionError['UNAUTHORIZED'])&&jsx('div',{'className':_0x1d2a4f(0x172),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x217),'children':[jsx(_0x1d2a4f(0x16e),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),jsx('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x331dc1(_0x2f5d27)})]})})]}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x214),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x234),'children':[jsxs('div',{'className':_0x1d2a4f(0x171),'children':[jsxs(_0x1d2a4f(0x1fc),{'className':_0x1d2a4f(0x21f),'children':[jsx(_0x1d2a4f(0x16e),{'children':'🔑'}),'\x20',_0x444ac6['t'](_0x1d2a4f(0x146)),jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x189),'children':'*'}),_0x48f7f2&&jsx('a',{'className':_0x1d2a4f(0x204),'title':_0x444ac6['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x126067(!![]),'children':jsx(HelpIcon,{})})]}),jsx(Input,{'type':'text','placeholder':_0x444ac6['t'](_0x1d2a4f(0x195)),'value':_0x1c9c3b,'disabled':loading,'autoComplete':_0x1d2a4f(0x194),'onChange':_0x320193}),jsx('p',{'className':_0x1d2a4f(0x1ab),'children':_0x444ac6['t'](_0x1d2a4f(0x1fd))})]}),_0x48f7f2&&_0x5f598b&&jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x136),'children':[jsx('a',{'className':_0x1d2a4f(0x20b),'role':_0x1d2a4f(0x144),'onClick':()=>_0x126067(![]),'children':jsx(CloseIcon,{'className':_0x1d2a4f(0x15a)})}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x16c),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':jsx('span',{'className':_0x1d2a4f(0x1e4),'children':'🚀'})}),jsxs(_0x1d2a4f(0x1d6),{'className':'univer-flex-1','children':[jsx('h4',{'className':_0x1d2a4f(0x1e7),'children':_0x444ac6['t'](_0x1d2a4f(0x18d))}),jsx('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x444ac6['t'](_0x1d2a4f(0x159))}),jsx(_0x1d2a4f(0x1d6),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0xb9674a&&jsxs('a',{'className':_0x1d2a4f(0x222),'href':_0x27137e,'target':_0x1d2a4f(0x10c),'rel':_0x1d2a4f(0x19f),'children':[jsx(_0x1d2a4f(0x16e),{'children':'🤖'}),_0x444ac6['t'](_0x1d2a4f(0x169)),jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x192),'children':'↗'})]})}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x14a),'children':['✨','\x20',_0x444ac6['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x3e0a61['showDeveloperTools']&&jsxs('div',{'className':_0x1d2a4f(0x199),'children':[jsxs('h4',{'className':_0x1d2a4f(0x11f),'children':[jsx('span',{'children':'🔗'}),'\x20',_0x444ac6['t'](_0x1d2a4f(0x207))]}),jsxs('div',{'className':_0x1d2a4f(0x121),'children':[jsxs(_0x1d2a4f(0x1d6),{'className':'univer-space-y-3','children':[jsx('p',{'className':_0x1d2a4f(0x209),'children':_0x444ac6['t'](_0x1d2a4f(0x186))}),jsxs('div',{'className':_0x1d2a4f(0x171),'children':[jsx('div',{'className':_0x1d2a4f(0x1b5),'children':_0x444ac6['t']('mcpConfig.configStepTitle')}),jsxs(_0x1d2a4f(0x1d6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[jsxs('div',{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x155),'children':'1'}),_0x444ac6['t']('mcpConfig.configStep1')]}),jsxs('div',{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x155),'children':'2'}),_0x444ac6['t'](_0x1d2a4f(0x1d0))]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x155),'children':'3'}),_0x444ac6['t'](_0x1d2a4f(0x182))]})]})]})]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x171),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1d2a4f(0x1f0)}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x11d),'children':jsx(_0x1d2a4f(0x230),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x167b03||_0x1d2a4f(0x16b)),'type':_0x1d2a4f(0x22d),'headers':{'Authorization':'Bearer\x20'+(_0x1c9c3b||'<API_KEY>')}}}},null,0x2)})})]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x225),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1b5),'children':_0x444ac6['t'](_0x1d2a4f(0x21a))}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x171),'children':[jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x174),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),jsxs(_0x1d2a4f(0x1d6),{'className':'univer-min-w-0\x20univer-flex-1','children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x181),'children':_0x1d2a4f(0x1e0)}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1ab),'children':_0x444ac6['t'](_0x1d2a4f(0x220))})]})]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x174),'children':[jsx('div',{'className':_0x1d2a4f(0x1c6)}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x147),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x181),'children':_0x1d2a4f(0x123)}),jsx('div',{'className':_0x1d2a4f(0x1ab),'children':_0x444ac6['t'](_0x1d2a4f(0x1bc))})]})]})]})]})]})]}),jsx(Button,{'onClick':_0x4c98c7,'disabled':!_0x505b86||loading,'className':_0x1d2a4f(0x176),'children':loading?jsxs(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'children':'⟲'}),_0x444ac6['t'](_0x1d2a4f(0x1fe))]}):jsxs(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x1c3),'children':[jsx(CheckMarkIcon,{}),_0x444ac6['t'](_0x1d2a4f(0x142))]})}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x203),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x21d),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x1d9),'children':'💡'}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x228),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-font-medium','children':_0x1d2a4f(0x141)}),jsxs('div',{'children':['•',_0x444ac6['t'](_0x1d2a4f(0x1a8))]}),jsxs(_0x1d2a4f(0x1d6),{'children':['•',_0x444ac6['t'](_0x1d2a4f(0x21b))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY=_0x435cce(0x115),configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0x4d4ed1){'@babel/helpers - typeof';const _0x1ffac7=_0x435cce;return _typeof=_0x1ffac7(0x1cc)==typeof Symbol&&_0x1ffac7(0x10d)==typeof Symbol[_0x1ffac7(0x111)]?function(_0x45aac9){return typeof _0x45aac9;}:function(_0x104985){const _0x5a0212=_0x1ffac7;return _0x104985&&'function'==typeof Symbol&&_0x104985[_0x5a0212(0x17b)]===Symbol&&_0x104985!==Symbol['prototype']?_0x5a0212(0x10d):typeof _0x104985;},_typeof(_0x4d4ed1);}function toPrimitive(_0x3f4909,_0x109cf6){const _0x39c1d3=_0x435cce;if(_0x39c1d3(0x173)!=_typeof(_0x3f4909)||!_0x3f4909)return _0x3f4909;var _0x430444=_0x3f4909[Symbol[_0x39c1d3(0x1a0)]];if(void 0x0!==_0x430444){var _0x4472ad=_0x430444['call'](_0x3f4909,_0x109cf6||_0x39c1d3(0x1ee));if(_0x39c1d3(0x173)!=_typeof(_0x4472ad))return _0x4472ad;throw new TypeError(_0x39c1d3(0x22f));}return(_0x39c1d3(0x223)===_0x109cf6?String:Number)(_0x3f4909);}function toPropertyKey(_0x27876e){const _0x3463b8=_0x435cce;var _0x5daf90=toPrimitive(_0x27876e,_0x3463b8(0x223));return _0x3463b8(0x10d)==_typeof(_0x5daf90)?_0x5daf90:_0x5daf90+'';}function _defineProperty(_0x11dcb2,_0x306c99,_0x41ee0d){const _0x4f2201=_0x435cce;return(_0x306c99=toPropertyKey(_0x306c99))in _0x11dcb2?Object[_0x4f2201(0x1d2)](_0x11dcb2,_0x306c99,{'value':_0x41ee0d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11dcb2[_0x306c99]=_0x41ee0d,_0x11dcb2;}function __decorateParam(_0x3dc7cb,_0x24bcbf){return function(_0x31b786,_0xa8e055){_0x24bcbf(_0x31b786,_0xa8e055,_0x3dc7cb);};}function __decorate(_0x52e5bd,_0x129d09,_0x2d62ac,_0x59e416){const _0x9a8423=_0x435cce;var _0x933580=arguments['length'],_0x3ec116=_0x933580<0x3?_0x129d09:_0x59e416===null?_0x59e416=Object[_0x9a8423(0x218)](_0x129d09,_0x2d62ac):_0x59e416,_0x261232;if(typeof Reflect===_0x9a8423(0x173)&&typeof Reflect[_0x9a8423(0x19b)]==='function')_0x3ec116=Reflect[_0x9a8423(0x19b)](_0x52e5bd,_0x129d09,_0x2d62ac,_0x59e416);else{for(var _0xe2dddf=_0x52e5bd[_0x9a8423(0x18c)]-0x1;_0xe2dddf>=0x0;_0xe2dddf--)if(_0x261232=_0x52e5bd[_0xe2dddf])_0x3ec116=(_0x933580<0x3?_0x261232(_0x3ec116):_0x933580>0x3?_0x261232(_0x129d09,_0x2d62ac,_0x3ec116):_0x261232(_0x129d09,_0x2d62ac))||_0x3ec116;}return _0x933580>0x3&&_0x3ec116&&Object[_0x9a8423(0x1d2)](_0x129d09,_0x2d62ac,_0x3ec116),_0x3ec116;}const MCP_API_KEY_STORAGE_KEY='mcp.apiKey',MCP_CONFIG_DIALOG_ID=_0x435cce(0x14e);let MCPConfigUIController=class MCPConfigUIController extends Disposable{constructor(_0x2916d3,_0x2496d6,_0x5de370,_0x511176,_0x4ca368,_0x3f3ecc,_0x3d3e13,_0x187093,_0xe82114,_0x5bd581){const _0x23067f=_0x435cce;super(),this[_0x23067f(0x1f4)]=_0x2916d3,this['_uiPartsService']=_0x2496d6,this[_0x23067f(0x198)]=_0x5de370,this[_0x23067f(0x187)]=_0x511176,this['_dialogService']=_0x4ca368,this[_0x23067f(0x143)]=_0x3f3ecc,this[_0x23067f(0x1c7)]=_0x3d3e13,this[_0x23067f(0x1a5)]=_0x187093,this[_0x23067f(0x23b)]=_0xe82114,this['_mcpConnectionController']=_0x5bd581,_defineProperty(this,_0x23067f(0x202),new BehaviorSubject(![])),_defineProperty(this,'_mcpCoreConfig$',new BehaviorSubject({})),_defineProperty(this,_0x23067f(0x22c),new BehaviorSubject({})),_defineProperty(this,_0x23067f(0x110),new BehaviorSubject('')),_defineProperty(this,'_handleConfigSave',async _0x1f64c8=>{const _0x4521ff=_0x23067f;this[_0x4521ff(0x202)][_0x4521ff(0x157)](!![]);try{var _0x443210,_0x3a06e5;const _0x7d79cf=await this[_0x4521ff(0x1b9)](_0x1f64c8);if(!_0x7d79cf[_0x4521ff(0x1d7)]){this[_0x4521ff(0x143)][_0x4521ff(0x191)]({'type':MessageType[_0x4521ff(0x221)],'content':_0x7d79cf['errorMessage']||this[_0x4521ff(0x1a5)]['t'](_0x4521ff(0x20f))});return;}if(_0x1f64c8[_0x4521ff(0x1ff)])await this[_0x4521ff(0x187)]['setItem'](MCP_API_KEY_STORAGE_KEY,_0x1f64c8[_0x4521ff(0x1ff)][_0x4521ff(0x236)]());else await this[_0x4521ff(0x187)][_0x4521ff(0x1ea)](MCP_API_KEY_STORAGE_KEY);this[_0x4521ff(0x110)][_0x4521ff(0x157)](((_0x443210=_0x1f64c8[_0x4521ff(0x1ff)])===null||_0x443210===void 0x0?void 0x0:_0x443210['trim']())||''),this['_mcpConnectionController'][_0x4521ff(0x190)]({'Authorization':'Bearer\x20'+((_0x3a06e5=_0x1f64c8[_0x4521ff(0x1ff)])===null||_0x3a06e5===void 0x0?void 0x0:_0x3a06e5[_0x4521ff(0x236)]())}),this[_0x4521ff(0x143)]['show']({'type':MessageType[_0x4521ff(0x12f)],'content':this[_0x4521ff(0x1a5)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x386f7f=_0x4521ff;this['_dialogService'][_0x386f7f(0x149)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x4ab0f0){this[_0x4521ff(0x23b)]['error'](_0x4521ff(0x14f),_0x4ab0f0),this['_messageService'][_0x4521ff(0x191)]({'type':MessageType['Error'],'content':this[_0x4521ff(0x1a5)]['t'](_0x4521ff(0x1a1))});}finally{this['_loading$'][_0x4521ff(0x157)](![]);}}),this[_0x23067f(0x116)](),this['_loadStoredApiKey'](),this['_registerComponent']();}[_0x435cce(0x188)](){const _0x1bc358=_0x435cce,_0x59ccfa=this[_0x1bc358(0x198)][_0x1bc358(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x59ccfa===null||_0x59ccfa===void 0x0?void 0x0:_0x59ccfa[_0x1bc358(0x193)])this[_0x1bc358(0x1de)]['open']({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x1bc358(0x1a5)]['t'](_0x1bc358(0x1bf))},'children':{'label':_0x1bc358(0x1a3)},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x342d69=_0x1bc358;this[_0x342d69(0x1de)][_0x342d69(0x149)](MCP_CONFIG_DIALOG_ID);}});}[_0x435cce(0x1ad)](){const _0x426fa1=_0x435cce;return this[_0x426fa1(0x1c5)]['value'];}[_0x435cce(0x1a4)](){const _0x50af8f=_0x435cce;this[_0x50af8f(0x20a)](this['_componentManager'][_0x50af8f(0x1ec)](_0x50af8f(0x1a3),this[_0x50af8f(0x148)]()));}[_0x435cce(0x148)](){const _0x108599=_0x435cce;return connectInjector(()=>{const _0x5da1bd=_0x1acc;var _0x5f4632,_0xb1b1b5,_0x5d4809;return jsx(MCPConfigPanel,{'config':this[_0x5da1bd(0x22c)]['value'],'mcpCoreConfig':this[_0x5da1bd(0x1c5)][_0x5da1bd(0x17a)],'currentApiKey$':this[_0x5da1bd(0x110)],'onSave':this[_0x5da1bd(0x18b)],'loading':this[_0x5da1bd(0x202)][_0x5da1bd(0x17a)],'connectionStatus$':(_0x5f4632=this[_0x5da1bd(0x175)])===null||_0x5f4632===void 0x0?void 0x0:_0x5f4632['connectionStatus$'],'connectionError$':(_0xb1b1b5=this[_0x5da1bd(0x175)])===null||_0xb1b1b5===void 0x0?void 0x0:_0xb1b1b5[_0x5da1bd(0x208)],'currentSessionId$':(_0x5d4809=this[_0x5da1bd(0x175)])===null||_0x5d4809===void 0x0?void 0x0:_0x5d4809[_0x5da1bd(0x213)]});},this[_0x108599(0x1f4)]);}[_0x435cce(0x116)](){const _0x5391ec=_0x435cce;this[_0x5391ec(0x20a)](this['_configService']['subscribeConfigValue$'](MCP_PLUGIN_CONFIG_KEY)[_0x5391ec(0x122)](_0x1a8c13=>{const _0x5f387e=_0x5391ec;this['_mcpCoreConfig$'][_0x5f387e(0x157)](_0x1a8c13||{});}));const _0x250467=this[_0x5391ec(0x198)][_0x5391ec(0x11a)](MCP_PLUGIN_CONFIG_KEY);this[_0x5391ec(0x1c5)]['next'](_0x250467||{}),this[_0x5391ec(0x20a)](this[_0x5391ec(0x198)][_0x5391ec(0x13f)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x5391ec(0x122)](_0x506ee8=>{const _0xfd12c9=_0x5391ec;this[_0xfd12c9(0x22c)][_0xfd12c9(0x157)](_0x506ee8||{});}));const _0x4c0eb5=this[_0x5391ec(0x198)][_0x5391ec(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);this['_config$'][_0x5391ec(0x157)](_0x4c0eb5||{});}async[_0x435cce(0x145)](){const _0x5db712=_0x435cce,_0x511bbc=this[_0x5db712(0x198)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x511bbc===null||_0x511bbc===void 0x0?void 0x0:_0x511bbc[_0x5db712(0x193)]))return;const _0x5a1bac=await this[_0x5db712(0x187)][_0x5db712(0x113)](MCP_API_KEY_STORAGE_KEY);_0x5a1bac&&(this[_0x5db712(0x175)][_0x5db712(0x190)]({'Authorization':_0x5db712(0x20e)+_0x5a1bac}),this['_apiKey$'][_0x5db712(0x157)](_0x5a1bac));}async[_0x435cce(0x1b9)](_0x27ed6d){const _0x597a17=_0x435cce;if(!_0x27ed6d[_0x597a17(0x1ff)]||_0x27ed6d[_0x597a17(0x1ff)][_0x597a17(0x236)]()['length']===0x0)return{'isValid':![],'errorMessage':this[_0x597a17(0x1a5)]['t'](_0x597a17(0x11b))};if(_0x27ed6d[_0x597a17(0x1ff)]['trim']()[_0x597a17(0x18c)]<0xa)return{'isValid':![],'errorMessage':this[_0x597a17(0x1a5)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x3fa571=await this[_0x597a17(0x1f4)][_0x597a17(0x12a)](MCPConnectionController)[_0x597a17(0x1ef)](_0x27ed6d[_0x597a17(0x1ff)][_0x597a17(0x236)]());if(!_0x3fa571['isValid'])return{'isValid':![],'errorMessage':_0x3fa571[_0x597a17(0x13d)]||this[_0x597a17(0x1a5)]['t'](_0x597a17(0x153))};return{'isValid':!![]};}catch(_0x2bbcb8){return console[_0x597a17(0x180)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2bbcb8),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILocalStorageService),__decorateParam(0x4,IDialogService),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(ComponentManager)),__decorateParam(0x7,Inject(LocaleService)),__decorateParam(0x8,ILogService),__decorateParam(0x9,Inject(MCPConnectionController))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0x435cce(0x127),'type':CommandType[_0x435cce(0x13e)],'handler':async(_0x2967a5,_0x4087a5)=>{const _0x14cab2=_0x435cce;return _0x2967a5[_0x14cab2(0x12a)](MCPConfigUIController)[_0x14cab2(0x188)](),!![];}};function mapStatusToI18NKey(_0x483791,_0x41fcdb){const _0x17a6e5=_0x435cce;switch(_0x483791){case MCPConnectionStatus[_0x17a6e5(0x23a)]:return _0x17a6e5(0x1e1);case MCPConnectionStatus[_0x17a6e5(0x206)]:return _0x17a6e5(0x184);case MCPConnectionStatus[_0x17a6e5(0x19e)]:return _0x17a6e5(0x1b7);case MCPConnectionStatus[_0x17a6e5(0x1e5)]:switch(_0x41fcdb){case MCPConnectionError[_0x17a6e5(0x1ca)]:return _0x17a6e5(0x12c);case MCPConnectionError['SESSION_ID_OCCUPIED']:return _0x17a6e5(0x237);case MCPConnectionError[_0x17a6e5(0x244)]:return _0x17a6e5(0x22e);case MCPConnectionError[_0x17a6e5(0x1b4)]:return _0x17a6e5(0x235);default:return _0x17a6e5(0x125);}case MCPConnectionStatus[_0x17a6e5(0x1d3)]:return _0x17a6e5(0x13a);default:return _0x17a6e5(0x19c);}}function getTooltipText(_0x423c04,_0x52fef0,_0x37722b,_0x46625f=!![]){const _0x45a43b=_0x435cce,_0x1f1567=mapStatusToI18NKey(_0x423c04,_0x52fef0),_0x1150f5=_0x37722b['t'](_0x1f1567);if(!_0x46625f)return _0x1150f5;if(_0x423c04===MCPConnectionStatus[_0x45a43b(0x23a)]&&_0x52fef0===MCPConnectionError['UNAUTHORIZED'])return _0x1150f5+_0x45a43b(0x132)+_0x37722b['t'](_0x45a43b(0x119));else{if(_0x423c04===MCPConnectionStatus[_0x45a43b(0x19e)])return''+_0x1150f5;else{if(_0x423c04===MCPConnectionStatus[_0x45a43b(0x23a)]||_0x423c04===MCPConnectionStatus[_0x45a43b(0x1e5)])return _0x1150f5+_0x45a43b(0x132)+_0x37722b['t'](_0x45a43b(0x133));}}return _0x1150f5;}function getStatusColor(_0x5e0d17){const _0x8d67a8=_0x435cce;switch(_0x5e0d17){case MCPConnectionStatus[_0x8d67a8(0x19e)]:return _0x8d67a8(0x14b);case MCPConnectionStatus[_0x8d67a8(0x206)]:case MCPConnectionStatus[_0x8d67a8(0x1d3)]:return'univer-text-yellow-500';case MCPConnectionStatus[_0x8d67a8(0x1e5)]:case MCPConnectionStatus[_0x8d67a8(0x23a)]:return _0x8d67a8(0x189);default:return _0x8d67a8(0x170);}}function MCPStatusDisplay(_0x5e6254){const _0x41dc91=_0x435cce,{status$:_0x3db4ef,error$:_0x339048,onConfigure:_0x11dc7e,showClickable:showClickable=!![]}=_0x5e6254,_0x1efb0a=useObservable(_0x3db4ef,MCPConnectionStatus[_0x41dc91(0x23a)]),_0x1a6d1c=useObservable(_0x339048,MCPConnectionError[_0x41dc91(0x151)]),_0x1dff81=useDependency(LocaleService),_0x21d09a=_0x1efb0a===MCPConnectionStatus[_0x41dc91(0x19e)];_0x1efb0a===MCPConnectionStatus[_0x41dc91(0x206)]||MCPConnectionStatus['RETRYING'];const _0xbfa941=_0x1dff81['t'](mapStatusToI18NKey(_0x1efb0a,_0x1a6d1c)),_0x451a9d=getTooltipText(_0x1efb0a,_0x1a6d1c,_0x1dff81,showClickable),_0x3fac89=getStatusColor(_0x1efb0a),_0x1ec64c=_0x21d09a?jsx(OnLineIcon,{}):jsx(OffLineIcon,{}),_0x292db5=useCallback(()=>{if(showClickable&&_0x11dc7e)_0x11dc7e();},[showClickable,_0x11dc7e]);function _0x1d4111(){const _0x3ed43d=_0x41dc91;return jsxs(_0x3ed43d(0x1d6),{'className':clsx(_0x3ed43d(0x16a),showClickable&&_0x11dc7e&&_0x3ed43d(0x20c)),'role':_0x3ed43d(0x144),'onClick':showClickable&&_0x11dc7e?_0x292db5:void 0x0,'children':[jsx('div',{'className':clsx('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x3fac89),'children':_0x1ec64c}),jsx(_0x3ed43d(0x1d6),{'className':_0x3ed43d(0x226),'children':_0xbfa941})]});}return jsx(Tooltip,{'title':_0x451a9d,'placement':_0x41dc91(0x224),'children':_0x1d4111()});}let MCPConnectionUIController=class MCPConnectionUIController extends Disposable{constructor(_0x205a1c,_0xe7bbcd,_0x43c511,_0x49eebb){const _0x2436fc=_0x435cce;super(),this[_0x2436fc(0x1f4)]=_0x205a1c,this[_0x2436fc(0x19a)]=_0xe7bbcd,this[_0x2436fc(0x200)]=_0x43c511,this[_0x2436fc(0x198)]=_0x49eebb,this['_initAutoConnect'](),this[_0x2436fc(0x164)]();}['_initAutoConnect'](){const _0xd51298=_0x435cce,_0x19cd0f=this[_0xd51298(0x198)][_0xd51298(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x19cd0f===null||_0x19cd0f===void 0x0?void 0x0:_0x19cd0f[_0xd51298(0x193)])this[_0xd51298(0x19a)][_0xd51298(0x126)]=![];}['_initStatusComponent'](){const _0xed9d5c=_0x435cce,_0x36d2b8=this[_0xed9d5c(0x198)][_0xed9d5c(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x36d2b8===null||_0x36d2b8===void 0x0?void 0x0:_0x36d2b8[_0xed9d5c(0x17c)])!==![])this[_0xed9d5c(0x20a)](this['_uiPartsService'][_0xed9d5c(0x1a9)](BuiltInUIPart['HEADER_MENU'],()=>{const _0x5c358b=_0xed9d5c;var _0x17ef01;return connectInjector(passProps({'status$':this[_0x5c358b(0x19a)][_0x5c358b(0x158)],'error$':this[_0x5c358b(0x19a)][_0x5c358b(0x208)],'onConfigure':()=>this[_0x5c358b(0x1f8)](),'showClickable':(_0x17ef01=_0x36d2b8===null||_0x36d2b8===void 0x0?void 0x0:_0x36d2b8[_0x5c358b(0x193)])!==null&&_0x17ef01!==void 0x0?_0x17ef01:![]}),this[_0x5c358b(0x1f4)]);}));}[_0x435cce(0x1f8)](){const _0x13940f=_0x435cce;this[_0x13940f(0x1f4)][_0x13940f(0x12a)](MCPConfigUIController)[_0x13940f(0x188)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(MCPConnectionController)),__decorateParam(0x2,IUIPartsService),__decorateParam(0x3,IConfigService)],MCPConnectionUIController);function passProps(_0x7168e1){const {status$:_0x443721,error$:_0x4cf889,onConfigure:_0x2db20f,showClickable:_0x93f6aa}=_0x7168e1;return function _0x538178(){return jsx(MCPStatusDisplay,{'status$':_0x443721,'error$':_0x4cf889,'onConfigure':_0x2db20f,'showClickable':_0x93f6aa});};}function MCPConfigMenuItemFactory(_0x43ba2a){const _0x27b9ce=_0x435cce;return{'id':OpenMCPConfigPanelCommand['id'],'type':MenuItemType['BUTTON'],'icon':_0x27b9ce(0x1f1),'title':'mcpConfig.title','tooltip':'mcpConfig.title'};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};function _0x1a70(){const _0x4498fd=['univer-bg-red-500','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20连接失败','sessionId$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','配置参数:','mcpServerUrl','univer-flex\x20univer-items-start\x20univer-gap-2','getOwnPropertyDescriptor','univer-bg-gray-500','mcpConfig.configParameters','mcpConfig.note2','您的\x20API\x20密钥安全存储在本地存储中','univer-flex\x20univer-gap-3','univer-text-white','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.sessionIdDescription','Error','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','string','bottom','univer-space-y-3','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','_config$','http','mcpStatus.networkError','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pre','点击连接\x20MCP','mcpConfig.connectionError.unauthorized','4120AOptVl','univer-space-y-5','mcpStatus.maxRetriesExceeded','trim','mcpStatus.sessionOccupied','https://console.univer.ai','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','DISCONNECTED','_logService','6FCVcyc','mcpConfig.connectionError.networkError','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','将配置添加到您的\x20MCP\x20客户端设置文件中','pluginName','mcpConfig.connectionError.maxRetriesExceeded','MCP_UI_PLUGIN','NETWORK_ERROR','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_blank','symbol','mcpConfig.connectionError.sessionOccupied','2044644banQSZ','_apiKey$','iterator','配置保存失败','getItem','univer.ai','mcp-ui.config','_initConfigSync','Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','mcpStatus.clickToConfigure','getConfig','mcpConfig.validation.apiKeyRequired','What\x20is\x20API\x20Key?','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','API\x20密钥不能为空','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20连接中...','univer-space-y-4','subscribe','Authorization:','Enter\x20your\x20API\x20key','mcpStatus.failed','enableAutoConnect','mcp-ui.command.openConfigPanel','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-text-sm\x20univer-font-medium','get','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpStatus.unauthorized','MCP\x20Connection\x20Failed','_commandService','Success','https://console.univer.plus','MCP\x20Connecting...','\x20-\x20','mcpStatus.clickToConnect','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置更改将立即生效','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-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','mcpStatus.retrying','univer-flex\x20univer-items-center\x20univer-gap-3','MCP:\x20Network\x20Error','error','COMMAND','subscribeConfigValue$','mcpConfig.connectionStatus.disconnected','Configuration\x20Notes:','mcpConfig.save','_messageService','button','_loadStoredApiKey','mcpConfig.apiKey','univer-min-w-0\x20univer-flex-1','_createConfigPanelComponent','close','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-text-green-500','MCP\x20配置','Failed\x20to\x20save\x20configuration','mcp-config-dialog','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','重启您的\x20MCP\x20客户端以使配置生效','NONE','Connected','mcpConfig.validation.invalidApiKey','univer-bg-blue-500','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','Retrying...','next','connectionStatus$','mcpConfig.apiApplyInfo.description','univer-size-4','566936DkNXiL','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','配置无效','onStarting','mergeMenu','univer-bg-green-500','213383xbMlPF','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_initStatusComponent','Invalid\x20configuration','114ItyMhu','add','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-items-center','<SESSION_ID>','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20Client\x20Configuration','span','网络连接错误,请检查您的网络连接','univer-text-gray-500','univer-space-y-2','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','object','univer-flex\x20univer-items-start\x20univer-gap-3','_mcpConnectionController','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','push','Connecting...','@univerjs-pro/mcp-ui','value','constructor','showStatus','API\x20密钥无效,请检查密钥是否正确','复制以下\x20JSON\x20配置','Configuration\x20saved\x20successfully','warn','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.configStep3','7CJGpBI','mcpStatus.connecting','Univer\x20AI\x20Console','mcpConfig.configInstructions','_localStorageService','showConfigPanel','univer-text-red-500','配置步骤:','_handleConfigSave','length','mcpConfig.apiApplyInfo.title','MCP:\x20Session\x20ID\x20Occupied','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','__setCustomHeaders','show','univer-text-gray-400','showDeveloperTools','off','mcpConfig.apiKeyPlaceholder','MCP:\x20会话\x20ID\x20已被占用','_menuManagerService','_configService','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_connectionController','decorate','mcpStatus.unknown','MCP\x20重连中...','CONNECTED','noopener\x20noreferrer','toPrimitive','mcpConfig.configError','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCPConfigPanel','_registerComponent','_localeService','连接中...','_initializeMenus','mcpConfig.note1','registerComponent','MCP:\x20Unauthorized','univer-text-xs\x20univer-text-gray-500','API\x20密钥','getCurrentConfig','将以下配置添加到您的\x20MCP\x20客户端设置中:','2dVZPVT','univer.plus','Save\x20Configuration','最大重试次数','5269DMJdLb','MAX_RETRIES_EXCEEDED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','version','mcpStatus.connected','394484XeWFmv','_validateConfig','重连中...','超出最大重试次数,请稍后再试','mcpConfig.authorizationDescription','registerCommand','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.title','MCP\x20Connected','API\x20Key','SESSION_ID_OCCUPIED','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20网络错误','_mcpCoreConfig$','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_componentManager','has','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','UNAUTHORIZED','MCP:\x20超出最大重试次数','function','setConfig','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','0.22.0','mcpConfig.configStep2','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','defineProperty','RETRYING','连接失败','Configuration\x20Steps:','div','isValid','mcpConfig.connectionStatus.failed','univer-shrink-0\x20univer-text-blue-500','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.connectionStatus.connecting','32865HGugOR','MCP\x20Disconnected','_dialogService','什么是\x20API\x20密钥?','univer_session_id:','mcpStatus.disconnected','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-text-sm\x20univer-text-gray-500','univer-text-blue-600','FAILED','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20已断开','packageName','removeItem','点击配置\x20MCP','register','配置保存成功','default','validateApiKey','MCP\x20Configuration','MenuIcon','forEach','保存配置','_injector','_initializeCommands','几秒钟内获取您的\x20API\x20密钥','_config','_handleConfigure','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','includes','univer-size-2\x20univer-rounded-full','label','mcpConfig.apiKeyHint','mcpConfig.saving','apiKey','_uiPartsService','1563399BcUSha','_loading$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','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','启用身份验证以获得安全连接','CONNECTING','mcpConfig.connectionInfo','connectionError$','univer-text-xs\x20univer-text-gray-600','disposeWithMe','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','\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','Session\x20ID','Bearer\x20','mcpConfig.validation.invalidConfig'];_0x1a70=function(){return _0x4498fd;};return _0x1a70();}let MCPUIMenuController=class MCPUIMenuController extends Disposable{constructor(_0x7ee35b,_0x3cc3d4){const _0x3d2f90=_0x435cce;super(),this[_0x3d2f90(0x12e)]=_0x7ee35b,this[_0x3d2f90(0x197)]=_0x3cc3d4,this[_0x3d2f90(0x1f5)](),this['_initializeMenus']();}['_initializeCommands'](){const _0x1b70fb=_0x435cce;[OpenMCPConfigPanelCommand][_0x1b70fb(0x1f2)](_0x246af4=>{const _0x32d51f=_0x1b70fb;this[_0x32d51f(0x20a)](this[_0x32d51f(0x12e)][_0x32d51f(0x1bd)](_0x246af4));});}[_0x435cce(0x1a7)](){const _0x10bbf4=_0x435cce;this[_0x10bbf4(0x197)][_0x10bbf4(0x160)](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService)],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':_0x435cce(0x1dd),'connecting':_0x435cce(0x131),'connected':_0x435cce(0x1c0),'failed':_0x435cce(0x12d),'retrying':'MCP\x20Retrying...','unknown':_0x435cce(0x139),'unauthorized':_0x435cce(0x1aa),'sessionOccupied':_0x435cce(0x18e),'networkError':_0x435cce(0x13c),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x435cce(0x1e6),'apiKey':_0x435cce(0x1c1),'apiKeyPlaceholder':_0x435cce(0x124),'apiKeyHint':_0x435cce(0x1c9),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x435cce(0x16d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x435cce(0x1d1),'configStepTitle':_0x435cce(0x1d5),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x435cce(0x168),'configStep3':_0x435cce(0x138),'sessionId':_0x435cce(0x20d),'sessionIdDescription':_0x435cce(0x22b),'authorizationDescription':_0x435cce(0x1be),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x435cce(0x15c),'save':_0x435cce(0x1b1),'saving':'Saving...','note1':_0x435cce(0x1da),'note2':_0x435cce(0x229),'configSaved':_0x435cce(0x17f),'configError':_0x435cce(0x14d),'apiApplyInfo':{'title':_0x435cce(0x11c),'description':_0x435cce(0x1a2),'univerAiLabel':_0x435cce(0x185),'getStarted':_0x435cce(0x118)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x435cce(0x15d),'invalidConfig':_0x435cce(0x165),'invalidApiKey':_0x435cce(0x1f9)},'connectionStatus':{'disconnected':_0x435cce(0x117),'connecting':_0x435cce(0x178),'connected':_0x435cce(0x152),'failed':'Connection\x20Failed','retrying':_0x435cce(0x156)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x435cce(0x23e),'networkError':_0x435cce(0x211),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale$1={'mcpStatus':{'disconnected':_0x435cce(0x1e8),'connecting':_0x435cce(0x120),'connected':'MCP\x20已连接','failed':_0x435cce(0x212),'retrying':_0x435cce(0x19d),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x435cce(0x196),'networkError':_0x435cce(0x1c4),'maxRetriesExceeded':_0x435cce(0x1cb),'clickToConnect':_0x435cce(0x231),'clickToConfigure':_0x435cce(0x1eb)},'mcpConfig':{'title':_0x435cce(0x14c),'description':_0x435cce(0x245),'apiKey':_0x435cce(0x1ac),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x435cce(0x205),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x435cce(0x1ae),'configStepTitle':_0x435cce(0x18a),'configStep1':_0x435cce(0x17e),'configStep2':_0x435cce(0x240),'configStep3':_0x435cce(0x150),'sessionId':'会话ID','sessionIdDescription':_0x435cce(0x227),'authorizationDescription':_0x435cce(0x12b),'configParameters':_0x435cce(0x215),'maxRetries':_0x435cce(0x1b2),'save':_0x435cce(0x1f3),'saving':'保存中...','note1':_0x435cce(0x135),'note2':_0x435cce(0x21c),'configSaved':_0x435cce(0x1ed),'configError':_0x435cce(0x112),'apiApplyInfo':{'title':_0x435cce(0x1df),'description':_0x435cce(0x134),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x435cce(0x1f6)},'validation':{'apiKeyRequired':_0x435cce(0x11e),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x435cce(0x15e),'invalidApiKey':_0x435cce(0x17d)},'connectionStatus':{'disconnected':'未连接','connecting':_0x435cce(0x1a6),'connected':'已连接','failed':_0x435cce(0x1d4),'retrying':_0x435cce(0x1ba)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x435cce(0x16f),'maxRetriesExceeded':_0x435cce(0x1bb)}}};function _0x1acc(_0x3fd2f8,_0x1761a8){_0x3fd2f8=_0x3fd2f8-0x10c;const _0x1a7016=_0x1a70();let _0x1accb6=_0x1a7016[_0x3fd2f8];return _0x1accb6;}var name=_0x435cce(0x179),version=_0x435cce(0x1cf);let UniverMCPUIPlugin=class UniverMCPUIPlugin extends Plugin{constructor(_0x17f297=defaultPluginConfig,_0x45d501,_0x1f093c,_0x3db30d,_0x52e285,_0x39e67f){const _0x4bc2f7=_0x435cce;super(),this[_0x4bc2f7(0x1f7)]=_0x17f297,this[_0x4bc2f7(0x1f4)]=_0x45d501,this[_0x4bc2f7(0x198)]=_0x1f093c,this[_0x4bc2f7(0x200)]=_0x3db30d,this[_0x4bc2f7(0x187)]=_0x52e285,this[_0x4bc2f7(0x1a5)]=_0x39e67f;const {..._0x49fa07}=merge({},defaultPluginConfig,this['_config']);this[_0x4bc2f7(0x198)][_0x4bc2f7(0x1cd)](MCP_UI_PLUGIN_CONFIG_KEY,_0x49fa07);}async[_0x435cce(0x15f)](){const _0x3f73b3=_0x435cce,_0x3d0e88=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this[_0x3f73b3(0x1f4)][_0x3f73b3(0x1c8)](ISocketService))_0x3d0e88[_0x3f73b3(0x177)]([ISocketService,{'useClass':WebSocketService}]);_0x3d0e88[_0x3f73b3(0x1f2)](_0x3a7265=>this['_injector'][_0x3f73b3(0x167)](_0x3a7265)),this['_injector'][_0x3f73b3(0x12a)](MCPConnectionUIController),this[_0x3f73b3(0x1f4)]['get'](MCPConfigUIController),this['_injector'][_0x3f73b3(0x12a)](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0x435cce(0x241),_0x435cce(0x243)),_defineProperty(UniverMCPUIPlugin,_0x435cce(0x1e9),name),_defineProperty(UniverMCPUIPlugin,_0x435cce(0x1b6),version),UniverMCPUIPlugin=__decorate([DependentOn(UniverMCPPlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,IUIPartsService),__decorateParam(0x4,ILocalStorageService),__decorateParam(0x5,Inject(LocaleService))],UniverMCPUIPlugin);export{MCPConfigPanel,MCPConfigUIController,MCPConnectionUIController,MCPStatusDisplay,MCPUIMenuController,OpenMCPConfigPanelCommand,UniverMCPUIPlugin,locale as enUS,locale$1 as zhCN};
1
+ const _0xe5c988=_0x19ff;(function(_0x29c6de,_0xf448e6){const _0x1a91e8=_0x19ff,_0x309839=_0x29c6de();while(!![]){try{const _0x59c7dc=parseInt(_0x1a91e8(0xc0))/0x1+parseInt(_0x1a91e8(0x104))/0x2*(parseInt(_0x1a91e8(0xce))/0x3)+parseInt(_0x1a91e8(0xf8))/0x4*(parseInt(_0x1a91e8(0x93))/0x5)+-parseInt(_0x1a91e8(0x17c))/0x6*(-parseInt(_0x1a91e8(0x153))/0x7)+-parseInt(_0x1a91e8(0xe4))/0x8+parseInt(_0x1a91e8(0x11b))/0x9+-parseInt(_0x1a91e8(0x17f))/0xa;if(_0x59c7dc===_0xf448e6)break;else _0x309839['push'](_0x309839['shift']());}catch(_0xcc703){_0x309839['push'](_0x309839['shift']());}}}(_0x26f5,0xc0aa1));import{CommandType,DependentOn,Disposable,ICommandService,IConfigService,ILocalStorageService,ILogService,Inject,Injector,LocaleService,Plugin,merge}from'@univerjs/core';import{MCPConnectionController,MCPConnectionError,MCPConnectionStatus,MCP_PLUGIN_CONFIG_KEY,UniverMCPPlugin}from'@univerjs-pro/mcp';import{Button,Input,MessageType,Tooltip,clsx}from'@univerjs/design';import{BuiltInUIPart,ComponentManager,IDialogService,IMenuManagerService,IMessageService,IUIPartsService,MenuItemType,RibbonStartGroup,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{BehaviorSubject}from'rxjs';import{CheckMarkIcon,CloseIcon,HelpIcon,OffLineIcon,OnLineIcon}from'@univerjs/icons';import{useCallback,useState}from'react';import{jsx,jsxs}from'react/jsx-runtime';import{ISocketService,WebSocketService}from'@univerjs/network';function MCPConfigPanel(_0x8c4cbb){const _0x3561f4=_0x19ff;var _0x25aa38,_0x5b3f1e;const {mcpCoreConfig:_0xdc9199,onSave:_0x2f46bc,loading:loading=![],config:_0x3ba388,connectionStatus$:_0x5699f3,connectionError$:_0x32bb85,currentApiKey$:_0x45d3d8,currentSessionId$:_0x2f1c39}=_0x8c4cbb,_0x3952f4=useDependency(LocaleService),_0x30207=useObservable(_0x5699f3,MCPConnectionStatus[_0x3561f4(0x72)]),_0x1a1371=useObservable(_0x32bb85,MCPConnectionError[_0x3561f4(0xbf)]),_0x52536a=useObservable(_0x2f1c39,''),[_0x3a62e5,_0x321f4e]=useState(useObservable(_0x45d3d8,'')||''),_0x5965af=!![],_0x540380=_0x3ba388[_0x3561f4(0x100)]&&_0xdc9199[_0x3561f4(0x6d)]&&(_0xdc9199['mcpServerUrl'][_0x3561f4(0xed)](_0x3561f4(0x158))||_0xdc9199[_0x3561f4(0x6d)][_0x3561f4(0xed)]('univer.ai')),_0x5388fa=(_0x25aa38=_0xdc9199[_0x3561f4(0x6d)])===null||_0x25aa38===void 0x0?void 0x0:_0x25aa38[_0x3561f4(0xed)](_0x3561f4(0x158)),_0x488b69=(_0x5b3f1e=_0xdc9199[_0x3561f4(0x6d)])===null||_0x5b3f1e===void 0x0?void 0x0:_0x5b3f1e[_0x3561f4(0xed)](_0x3561f4(0x9a)),_0x38b71c=_0x5388fa?_0x3561f4(0xd8):_0x3561f4(0x134),_0x2587a3=_0x3ba388[_0x3561f4(0x100)]&&(_0x5388fa||_0x488b69),[_0x371c10,_0xb759d]=useState(!_0x3a62e5[_0x3561f4(0xe8)]()),_0x3a8050=(_0x187e13,_0x47c9a2)=>{const _0x2a2b9e=_0x3561f4;if(_0x47c9a2===MCPConnectionError[_0x2a2b9e(0x15c)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x187e13){case MCPConnectionStatus[_0x2a2b9e(0x6a)]:return _0x2a2b9e(0x92);case MCPConnectionStatus[_0x2a2b9e(0x8e)]:case MCPConnectionStatus['RETRYING']:return _0x2a2b9e(0x173);case MCPConnectionStatus[_0x2a2b9e(0x7c)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x2a2b9e(0x141);}},_0x49e935=(_0x1cf7c4,_0x49d155)=>{const _0x1542f0=_0x3561f4;if(_0x49d155===MCPConnectionError['UNAUTHORIZED'])return _0x1542f0(0x8a);switch(_0x1cf7c4){case MCPConnectionStatus['CONNECTED']:return _0x1542f0(0x84);case MCPConnectionStatus[_0x1542f0(0x8e)]:case MCPConnectionStatus[_0x1542f0(0xa3)]:return'univer-bg-blue-500';case MCPConnectionStatus[_0x1542f0(0x7c)]:return _0x1542f0(0x8a);default:return _0x1542f0(0x85);}},_0x33fe7e=_0x12315d=>{const _0x1eb0c6=_0x3561f4;switch(_0x12315d){case MCPConnectionStatus[_0x1eb0c6(0x6a)]:return _0x3952f4['t'](_0x1eb0c6(0xc7));case MCPConnectionStatus[_0x1eb0c6(0x8e)]:return _0x3952f4['t']('mcpConfig.connectionStatus.connecting');case MCPConnectionStatus[_0x1eb0c6(0x7c)]:return _0x3952f4['t'](_0x1eb0c6(0xe5));case MCPConnectionStatus[_0x1eb0c6(0xa3)]:return _0x3952f4['t'](_0x1eb0c6(0x10f));default:return _0x3952f4['t'](_0x1eb0c6(0x12d));}},_0x29b6c3=_0x233353=>{const _0x5b0dc0=_0x3561f4;switch(_0x233353){case MCPConnectionError[_0x5b0dc0(0x15c)]:return _0x3952f4['t'](_0x5b0dc0(0x149));case MCPConnectionError['SESSION_ID_OCCUPIED']:return _0x3952f4['t'](_0x5b0dc0(0x157));case MCPConnectionError[_0x5b0dc0(0x175)]:return _0x3952f4['t']('mcpConfig.connectionError.networkError');case MCPConnectionError[_0x5b0dc0(0x9d)]:return _0x3952f4['t'](_0x5b0dc0(0xba));default:return'';}},_0x27e070=useCallback(()=>{_0x2f46bc({..._0xdc9199,'apiKey':_0x3a62e5['trim'](),'enableAuth':_0x5965af});},[_0xdc9199,_0x3a62e5,_0x5965af,_0x2f46bc]),_0x2dabef=_0x3a62e5['trim']()[_0x3561f4(0xee)]>0x0;return jsxs(_0x3561f4(0x169),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[jsx('div',{'className':_0x3561f4(0x6c),'children':jsxs(_0x3561f4(0x169),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0x119),'children':jsx(_0x3561f4(0x12f),{'className':'univer-text-white','children':'⚙'})}),jsx(_0x3561f4(0x169),{'children':jsx('p',{'className':_0x3561f4(0xe9),'children':_0x3952f4['t'](_0x3561f4(0xfb))})})]})}),jsxs('div',{'className':_0x3561f4(0x88),'children':[jsx('div',{'className':clsx('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x3a8050(_0x30207,_0x1a1371)),'children':jsxs('div',{'className':_0x3561f4(0xb5),'children':[jsx(_0x3561f4(0x169),{'className':clsx(_0x3561f4(0x15f),_0x49e935(_0x30207,_0x1a1371))}),jsx(_0x3561f4(0x12f),{'className':_0x3561f4(0xbb),'children':_0x33fe7e(_0x30207)})]})}),_0x1a1371!==MCPConnectionError[_0x3561f4(0xbf)]&&(_0x30207===MCPConnectionStatus[_0x3561f4(0x7c)]||_0x1a1371===MCPConnectionError['UNAUTHORIZED'])&&jsx(_0x3561f4(0x169),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':jsxs('div',{'className':_0x3561f4(0xbc),'children':[jsx(_0x3561f4(0x12f),{'className':_0x3561f4(0x15a),'children':'⚠️'}),jsx('p',{'className':_0x3561f4(0x165),'children':_0x29b6c3(_0x1a1371)})]})})]}),jsx(_0x3561f4(0x169),{'className':_0x3561f4(0x14b),'children':jsxs('div',{'className':_0x3561f4(0xd9),'children':[jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x12e),'children':[jsxs('label',{'className':_0x3561f4(0x14f),'children':[jsx(_0x3561f4(0x12f),{'children':'🔑'}),'\x20',_0x3952f4['t'](_0x3561f4(0xa0)),jsx('span',{'className':_0x3561f4(0x140),'children':'*'}),_0x540380&&jsx('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x3952f4['t'](_0x3561f4(0x68)),'role':_0x3561f4(0x114),'onClick':()=>_0xb759d(!![]),'children':jsx(HelpIcon,{})})]}),jsx(Input,{'type':_0x3561f4(0x11e),'placeholder':_0x3952f4['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x3a62e5,'disabled':loading,'autoComplete':_0x3561f4(0x13d),'onChange':_0x321f4e}),jsx('p',{'className':_0x3561f4(0x186),'children':_0x3952f4['t']('mcpConfig.apiKeyHint')})]}),_0x540380&&_0x371c10&&jsxs(_0x3561f4(0x169),{'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':[jsx('a',{'className':_0x3561f4(0x17b),'role':'button','onClick':()=>_0xb759d(![]),'children':jsx(CloseIcon,{'className':_0x3561f4(0x7e)})}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0xb3),'children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0xea),'children':jsx('span',{'className':_0x3561f4(0xd4),'children':'🚀'})}),jsxs(_0x3561f4(0x169),{'className':'univer-flex-1','children':[jsx('h4',{'className':_0x3561f4(0x176),'children':_0x3952f4['t'](_0x3561f4(0x68))}),jsx('p',{'className':_0x3561f4(0x71),'children':_0x3952f4['t'](_0x3561f4(0x160))}),jsx('div',{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x2587a3&&jsxs('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x38b71c,'target':_0x3561f4(0x15d),'rel':_0x3561f4(0x14a),'children':[jsx(_0x3561f4(0x12f),{'children':'🤖'}),_0x3952f4['t'](_0x3561f4(0x6b)),jsx(_0x3561f4(0x12f),{'className':_0x3561f4(0x109),'children':'↗'})]})}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0xe3),'children':['✨','\x20',_0x3952f4['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x3ba388[_0x3561f4(0x100)]&&jsxs(_0x3561f4(0x169),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[jsxs('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[jsx(_0x3561f4(0x12f),{'children':'🔗'}),'\x20',_0x3952f4['t'](_0x3561f4(0xab))]}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x118),'children':[jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x143),'children':[jsx('p',{'className':_0x3561f4(0xf5),'children':_0x3952f4['t'](_0x3561f4(0xdf))}),jsxs('div',{'className':_0x3561f4(0x12e),'children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0xca),'children':_0x3952f4['t']('mcpConfig.configStepTitle')}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x161),'children':[jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0xb5),'children':[jsx('span',{'className':_0x3561f4(0x174),'children':'1'}),_0x3952f4['t'](_0x3561f4(0x82))]}),jsxs(_0x3561f4(0x169),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[jsx(_0x3561f4(0x12f),{'className':_0x3561f4(0x174),'children':'2'}),_0x3952f4['t'](_0x3561f4(0x188))]}),jsxs('div',{'className':_0x3561f4(0xb5),'children':[jsx('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x3952f4['t'](_0x3561f4(0x8f))]})]})]})]}),jsxs(_0x3561f4(0x169),{'className':'univer-space-y-2','children':[jsx(_0x3561f4(0x169),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3561f4(0x177)}),jsx(_0x3561f4(0x169),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':jsx(_0x3561f4(0x126),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x3561f4(0x73)]({'mcpServers':{'univer':{'url':_0x3561f4(0x95)+(_0x52536a||_0x3561f4(0xaf)),'type':_0x3561f4(0x75),'headers':{'Authorization':_0x3561f4(0x10b)+(_0x3a62e5||_0x3561f4(0x107))}}}},null,0x2)})})]}),jsxs(_0x3561f4(0x169),{'className':'univer-space-y-3','children':[jsx('div',{'className':_0x3561f4(0xca),'children':_0x3952f4['t'](_0x3561f4(0x146))}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x12e),'children':[jsxs(_0x3561f4(0x169),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[jsx('div',{'className':_0x3561f4(0xf1)}),jsxs(_0x3561f4(0x169),{'className':'univer-min-w-0\x20univer-flex-1','children':[jsx(_0x3561f4(0x169),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),jsx(_0x3561f4(0x169),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3952f4['t']('mcpConfig.sessionIdDescription')})]})]}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0xb7),'children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0xf1)}),jsxs('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0x9f),'children':_0x3561f4(0x127)}),jsx(_0x3561f4(0x169),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3952f4['t'](_0x3561f4(0x120))})]})]})]})]})]})]}),jsx(Button,{'onClick':_0x27e070,'disabled':!_0x2dabef||loading,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':loading?jsxs('span',{'className':_0x3561f4(0xb5),'children':[jsx('span',{'children':'⟲'}),_0x3952f4['t']('mcpConfig.saving')]}):jsxs('span',{'className':_0x3561f4(0xb5),'children':[jsx(CheckMarkIcon,{}),_0x3952f4['t'](_0x3561f4(0xcc))]})}),jsx(_0x3561f4(0x169),{'className':_0x3561f4(0xfd),'children':jsxs('div',{'className':_0x3561f4(0xdc),'children':[jsx('span',{'className':_0x3561f4(0xf2),'children':'💡'}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x11d),'children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0x10e),'children':_0x3561f4(0x117)}),jsxs('div',{'children':['•',_0x3952f4['t'](_0x3561f4(0x182))]}),jsxs(_0x3561f4(0x169),{'children':['•',_0x3952f4['t'](_0x3561f4(0x142))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY='mcp-ui.config',configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0xc43a45){'@babel/helpers - typeof';const _0x13e682=_0x19ff;return _typeof=_0x13e682(0x162)==typeof Symbol&&_0x13e682(0x13f)==typeof Symbol['iterator']?function(_0x29f6e4){return typeof _0x29f6e4;}:function(_0x1623c8){const _0x12e602=_0x13e682;return _0x1623c8&&_0x12e602(0x162)==typeof Symbol&&_0x1623c8[_0x12e602(0x12c)]===Symbol&&_0x1623c8!==Symbol[_0x12e602(0x13e)]?'symbol':typeof _0x1623c8;},_typeof(_0xc43a45);}function toPrimitive(_0xef3eb1,_0x17b5a8){const _0x5095b0=_0x19ff;if(_0x5095b0(0x16c)!=_typeof(_0xef3eb1)||!_0xef3eb1)return _0xef3eb1;var _0x54cb7c=_0xef3eb1[Symbol[_0x5095b0(0xad)]];if(void 0x0!==_0x54cb7c){var _0x1d2d6e=_0x54cb7c[_0x5095b0(0x136)](_0xef3eb1,_0x17b5a8||'default');if(_0x5095b0(0x16c)!=_typeof(_0x1d2d6e))return _0x1d2d6e;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5095b0(0x156)===_0x17b5a8?String:Number)(_0xef3eb1);}function toPropertyKey(_0x3963dc){var _0x4e2db1=toPrimitive(_0x3963dc,'string');return'symbol'==_typeof(_0x4e2db1)?_0x4e2db1:_0x4e2db1+'';}function _0x26f5(){const _0x7b1749=['_createConfigPanelComponent','Enable\x20authentication\x20for\x20secure\x20connections','29032vhhrEr','Save\x20Configuration','_mcpConnectionController','mcpConfig.description','MenuIcon','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','showStatus','Connection\x20Failed','showDeveloperTools','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','\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','API\x20密钥不能为空','579310ZwjftU','_registerComponent','Click\x20to\x20configure\x20MCP','<API_KEY>','push','univer-text-gray-400','getItem','Bearer\x20','_commandService','_handleConfigSave','univer-font-medium','mcpConfig.connectionStatus.retrying','_logService','Invalid\x20configuration','_initializeMenus','_config','button','SESSION_ID_OCCUPIED','pluginName','Configuration\x20Notes:','univer-space-y-4','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','defineProperty','14095881XguygD','mcpStatus.networkError','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','text','apiKey','mcpConfig.authorizationDescription','mcp-config-dialog','_localStorageService','error','_initConfigSync','Configuration\x20Parameters:','pre','Authorization:','配置步骤:','mcpStatus.connecting','MCPConfigPanel','univer-text-yellow-500','constructor','mcpConfig.connectionStatus.disconnected','univer-space-y-2','span','showConfigPanel','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Get\x20your\x20API\x20key\x20in\x20seconds','mcpStatus.failed','https://console.univer.ai','MCP\x20Disconnected','call','validateApiKey','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20Connection\x20Failed','MCP:\x20未授权','getConfig','BUTTON','off','prototype','symbol','univer-text-red-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.note2','univer-space-y-3','show','Saving...','mcpConfig.configParameters','重启您的\x20MCP\x20客户端以使配置生效','配置更改将立即生效','mcpConfig.connectionError.unauthorized','noopener\x20noreferrer','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','register','配置无效','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpStatus.sessionOccupied','COMMAND','MCP\x20Client\x20Configuration','7SuyMgp','subscribeConfigValue$','univer-mr-2\x20univer-flex\x20univer-text-xl','string','mcpConfig.connectionError.sessionOccupied','univer.plus','close','univer-shrink-0\x20univer-text-red-500','setItem','UNAUTHORIZED','_blank','mergeMenu','univer-size-2\x20univer-rounded-full','mcpConfig.apiApplyInfo.description','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','function','_loading$','MCP\x20Connecting...','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','isValid','已连接','_uiPartsService','div','保存中...','配置参数:','object','packageName','@univerjs-pro/mcp-ui','_messageService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','点击连接\x20MCP','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','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','NETWORK_ERROR','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20Configuration','bottom','您的\x20API\x20密钥将在此浏览器中本地存储','\x20-\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','5050362jExPUm','connectionStatus$','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','34870050WZbqGa','API\x20密钥','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpConfig.note1','Enter\x20your\x20API\x20key','点击配置\x20MCP','_initStatusComponent','univer-text-xs\x20univer-text-gray-500','MCP\x20已连接','mcpConfig.configStep2','registerComponent','errorMessage','_componentManager','mcpConfig.validation.apiKeyRequired','_handleConfigure','_menuManagerService','mcpConfig.apiApplyInfo.title','HEADER_MENU','CONNECTED','mcpConfig.apiApplyInfo.univerAiLabel','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpServerUrl','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','会话\x20ID\x20已被占用,请稍后再试','sessionId$','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','DISCONNECTED','stringify','mcpConfig.validation.invalidConfig','http','_initializeCommands','权限验证失败,请检查您的\x20API\x20密钥','Enable\x20Authentication','MCP\x20客户端配置','disposeWithMe','API\x20密钥长度至少需要\x2010\x20位','FAILED','_localeService','univer-size-4','warn','Failed\x20to\x20save\x20configuration','_dialogService','mcpConfig.configStep1','getOwnPropertyDescriptor','univer-bg-green-500','univer-bg-gray-500','MCP:\x20超出最大重试次数','_apiKey$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','What\x20is\x20API\x20Key?','univer-bg-red-500','Univer\x20AI\x20Console','_injector','_configService','CONNECTING','mcpConfig.configStep3','Copy\x20the\x20JSON\x20configuration\x20below','subscribe','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','40IaHngC','您的\x20API\x20密钥安全存储在本地存储中','https://mcp.univer.ai/mcp/?univer_session_id=','version','mcpStatus.unknown','MCP:\x20Network\x20Error','__setCustomHeaders','univer.ai','启用身份验证','_config$','MAX_RETRIES_EXCEEDED','setConfig','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.apiKey','_connectionController','mcpStatus.unauthorized','RETRYING','mcpConfig.title','几秒钟内获取您的\x20API\x20密钥','Max\x20Retries','MCP\x20Connected','_validateConfig','配置保存成功','mcpConfig.validation.apiKeyTooShort','mcpConfig.connectionInfo','将配置添加到您的\x20MCP\x20客户端设置文件中','toPrimitive','启用身份验证以获得安全连接','<SESSION_ID>','最大重试次数','连接失败','get','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpStatus.clickToConfigure','univer-flex\x20univer-items-center\x20univer-gap-2','连接中...','univer-flex\x20univer-items-start\x20univer-gap-3','API\x20密钥无效,请检查密钥是否正确','MCP\x20连接中...','mcpConfig.connectionError.maxRetriesExceeded','univer-text-sm\x20univer-font-medium','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20Unknown\x20Status','mcpStatus.connected','NONE','1267348pGxsMK','decorate','未连接','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP:\x20网络错误','MCP_UI_PLUGIN','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.connectionStatus.connected','会话ID','API\x20key\x20is\x20required','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','超出最大重试次数,请稍后再试','mcpConfig.save','什么是\x20API\x20密钥?','9mJYYzG','保存配置','mcpConfig.configError','_mcpCoreConfig$','mcpConfig.configSaved','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-text-blue-600','_initAutoConnect','_loadStoredApiKey','MCP:\x20Unauthorized','https://console.univer.plus','univer-space-y-5','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','next','univer-flex\x20univer-gap-3','forEach','removeItem','mcpConfig.configInstructions','value','connectionError$','onStarting','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','2609240MPMFEx','mcpConfig.connectionStatus.failed','Error','Retrying...','trim','univer-text-sm\x20univer-text-gray-500','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','registerCommand','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','includes','length','配置保存失败','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-shrink-0\x20univer-text-blue-500','网络连接错误,请检查您的网络连接','Configuration\x20Steps:','univer-text-xs\x20univer-text-gray-600'];_0x26f5=function(){return _0x7b1749;};return _0x26f5();}function _defineProperty(_0x48d28e,_0x123c6b,_0x5e66aa){const _0x3bd24b=_0x19ff;return(_0x123c6b=toPropertyKey(_0x123c6b))in _0x48d28e?Object[_0x3bd24b(0x11a)](_0x48d28e,_0x123c6b,{'value':_0x5e66aa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48d28e[_0x123c6b]=_0x5e66aa,_0x48d28e;}function __decorateParam(_0x6fdfdc,_0x411b53){return function(_0x40d1e8,_0x537c09){_0x411b53(_0x40d1e8,_0x537c09,_0x6fdfdc);};}function __decorate(_0x2eff10,_0x43107f,_0x46611f,_0x521308){const _0xa8d162=_0x19ff;var _0x2f75bc=arguments[_0xa8d162(0xee)],_0x54fdb8=_0x2f75bc<0x3?_0x43107f:_0x521308===null?_0x521308=Object[_0xa8d162(0x83)](_0x43107f,_0x46611f):_0x521308,_0x1e7a86;if(typeof Reflect===_0xa8d162(0x16c)&&typeof Reflect['decorate']===_0xa8d162(0x162))_0x54fdb8=Reflect[_0xa8d162(0xc1)](_0x2eff10,_0x43107f,_0x46611f,_0x521308);else{for(var _0x2300a8=_0x2eff10[_0xa8d162(0xee)]-0x1;_0x2300a8>=0x0;_0x2300a8--)if(_0x1e7a86=_0x2eff10[_0x2300a8])_0x54fdb8=(_0x2f75bc<0x3?_0x1e7a86(_0x54fdb8):_0x2f75bc>0x3?_0x1e7a86(_0x43107f,_0x46611f,_0x54fdb8):_0x1e7a86(_0x43107f,_0x46611f))||_0x54fdb8;}return _0x2f75bc>0x3&&_0x54fdb8&&Object[_0xa8d162(0x11a)](_0x43107f,_0x46611f,_0x54fdb8),_0x54fdb8;}const MCP_API_KEY_STORAGE_KEY='mcp.apiKey',MCP_CONFIG_DIALOG_ID=_0xe5c988(0x121);let MCPConfigUIController=class MCPConfigUIController extends Disposable{constructor(_0x297f06,_0x3b4a79,_0x1794ba,_0x1e45a6,_0xb271c6,_0x34c72d,_0x18f854,_0x45fe9c,_0x1194d7,_0xb62849){const _0x55871f=_0xe5c988;super(),this[_0x55871f(0x8c)]=_0x297f06,this[_0x55871f(0x168)]=_0x3b4a79,this[_0x55871f(0x8d)]=_0x1794ba,this[_0x55871f(0x122)]=_0x1e45a6,this[_0x55871f(0x81)]=_0xb271c6,this['_messageService']=_0x34c72d,this[_0x55871f(0x18b)]=_0x18f854,this['_localeService']=_0x45fe9c,this[_0x55871f(0x110)]=_0x1194d7,this[_0x55871f(0xfa)]=_0xb62849,_defineProperty(this,_0x55871f(0x163),new BehaviorSubject(![])),_defineProperty(this,_0x55871f(0xd1),new BehaviorSubject({})),_defineProperty(this,_0x55871f(0x9c),new BehaviorSubject({})),_defineProperty(this,_0x55871f(0x87),new BehaviorSubject('')),_defineProperty(this,_0x55871f(0x10d),async _0x17446b=>{const _0x7a79e4=_0x55871f;this[_0x7a79e4(0x163)][_0x7a79e4(0xdb)](!![]);try{var _0xcbbdf,_0x319c1a;const _0x2b60f6=await this[_0x7a79e4(0xa8)](_0x17446b);if(!_0x2b60f6[_0x7a79e4(0x166)]){this[_0x7a79e4(0x16f)][_0x7a79e4(0x144)]({'type':MessageType[_0x7a79e4(0xe6)],'content':_0x2b60f6[_0x7a79e4(0x18a)]||this[_0x7a79e4(0x7d)]['t'](_0x7a79e4(0x74))});return;}if(_0x17446b[_0x7a79e4(0x11f)])await this['_localStorageService'][_0x7a79e4(0x15b)](MCP_API_KEY_STORAGE_KEY,_0x17446b[_0x7a79e4(0x11f)][_0x7a79e4(0xe8)]());else await this[_0x7a79e4(0x122)][_0x7a79e4(0xde)](MCP_API_KEY_STORAGE_KEY);this[_0x7a79e4(0x87)][_0x7a79e4(0xdb)](((_0xcbbdf=_0x17446b[_0x7a79e4(0x11f)])===null||_0xcbbdf===void 0x0?void 0x0:_0xcbbdf[_0x7a79e4(0xe8)]())||''),this[_0x7a79e4(0xfa)][_0x7a79e4(0x99)]({'Authorization':_0x7a79e4(0x10b)+((_0x319c1a=_0x17446b[_0x7a79e4(0x11f)])===null||_0x319c1a===void 0x0?void 0x0:_0x319c1a['trim']())}),this[_0x7a79e4(0x16f)][_0x7a79e4(0x144)]({'type':MessageType['Success'],'content':this[_0x7a79e4(0x7d)]['t'](_0x7a79e4(0xd2))}),setTimeout(()=>{const _0x267e62=_0x7a79e4;this['_dialogService'][_0x267e62(0x159)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x1e0b9a){this[_0x7a79e4(0x110)][_0x7a79e4(0x123)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x1e0b9a),this[_0x7a79e4(0x16f)][_0x7a79e4(0x144)]({'type':MessageType[_0x7a79e4(0xe6)],'content':this[_0x7a79e4(0x7d)]['t'](_0x7a79e4(0xd0))});}finally{this['_loading$'][_0x7a79e4(0xdb)](![]);}}),this[_0x55871f(0x124)](),this[_0x55871f(0xd6)](),this['_registerComponent']();}[_0xe5c988(0x130)](){const _0x4ebaf4=_0xe5c988,_0x5a6c43=this[_0x4ebaf4(0x8d)][_0x4ebaf4(0x13b)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x5a6c43===null||_0x5a6c43===void 0x0?void 0x0:_0x5a6c43[_0x4ebaf4(0x100)])this['_dialogService']['open']({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x4ebaf4(0x7d)]['t'](_0x4ebaf4(0xa4))},'children':{'label':_0x4ebaf4(0x12a)},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x5382d1=_0x4ebaf4;this['_dialogService'][_0x5382d1(0x159)](MCP_CONFIG_DIALOG_ID);}});}['getCurrentConfig'](){const _0x4027b0=_0xe5c988;return this[_0x4027b0(0xd1)][_0x4027b0(0xe0)];}[_0xe5c988(0x105)](){const _0x535b60=_0xe5c988;this['disposeWithMe'](this[_0x535b60(0x18b)][_0x535b60(0x14c)](_0x535b60(0x12a),this[_0x535b60(0xf6)]()));}['_createConfigPanelComponent'](){const _0x80f94=_0xe5c988;return connectInjector(()=>{const _0x309aec=_0x19ff;var _0x3e8798,_0x4cd4fc,_0x5467e1;return jsx(MCPConfigPanel,{'config':this[_0x309aec(0x9c)][_0x309aec(0xe0)],'mcpCoreConfig':this[_0x309aec(0xd1)][_0x309aec(0xe0)],'currentApiKey$':this[_0x309aec(0x87)],'onSave':this[_0x309aec(0x10d)],'loading':this[_0x309aec(0x163)][_0x309aec(0xe0)],'connectionStatus$':(_0x3e8798=this[_0x309aec(0xfa)])===null||_0x3e8798===void 0x0?void 0x0:_0x3e8798[_0x309aec(0x17d)],'connectionError$':(_0x4cd4fc=this[_0x309aec(0xfa)])===null||_0x4cd4fc===void 0x0?void 0x0:_0x4cd4fc[_0x309aec(0xe1)],'currentSessionId$':(_0x5467e1=this[_0x309aec(0xfa)])===null||_0x5467e1===void 0x0?void 0x0:_0x5467e1[_0x309aec(0x70)]});},this[_0x80f94(0x8c)]);}[_0xe5c988(0x124)](){const _0x22a297=_0xe5c988;this[_0x22a297(0x7a)](this[_0x22a297(0x8d)]['subscribeConfigValue$'](MCP_PLUGIN_CONFIG_KEY)[_0x22a297(0x91)](_0x1f7108=>{const _0x152e32=_0x22a297;this['_mcpCoreConfig$'][_0x152e32(0xdb)](_0x1f7108||{});}));const _0x46760c=this[_0x22a297(0x8d)][_0x22a297(0x13b)](MCP_PLUGIN_CONFIG_KEY);this['_mcpCoreConfig$'][_0x22a297(0xdb)](_0x46760c||{}),this['disposeWithMe'](this[_0x22a297(0x8d)][_0x22a297(0x154)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x22a297(0x91)](_0xf09522=>{const _0x55e1be=_0x22a297;this[_0x55e1be(0x9c)][_0x55e1be(0xdb)](_0xf09522||{});}));const _0x487f3c=this[_0x22a297(0x8d)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);this[_0x22a297(0x9c)]['next'](_0x487f3c||{});}async[_0xe5c988(0xd6)](){const _0x57d630=_0xe5c988,_0x3b778b=this['_configService'][_0x57d630(0x13b)](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x3b778b===null||_0x3b778b===void 0x0?void 0x0:_0x3b778b['showDeveloperTools']))return;const _0x16a40a=await this[_0x57d630(0x122)][_0x57d630(0x10a)](MCP_API_KEY_STORAGE_KEY);_0x16a40a&&(this['_mcpConnectionController'][_0x57d630(0x99)]({'Authorization':_0x57d630(0x10b)+_0x16a40a}),this[_0x57d630(0x87)][_0x57d630(0xdb)](_0x16a40a));}async[_0xe5c988(0xa8)](_0x535e10){const _0x36ceea=_0xe5c988;if(!_0x535e10[_0x36ceea(0x11f)]||_0x535e10[_0x36ceea(0x11f)]['trim']()[_0x36ceea(0xee)]===0x0)return{'isValid':![],'errorMessage':this[_0x36ceea(0x7d)]['t'](_0x36ceea(0x18c))};if(_0x535e10[_0x36ceea(0x11f)][_0x36ceea(0xe8)]()[_0x36ceea(0xee)]<0xa)return{'isValid':![],'errorMessage':this['_localeService']['t'](_0x36ceea(0xaa))};try{const _0x41bad0=await this[_0x36ceea(0x8c)][_0x36ceea(0xb2)](MCPConnectionController)[_0x36ceea(0x137)](_0x535e10['apiKey']['trim']());if(!_0x41bad0[_0x36ceea(0x166)])return{'isValid':![],'errorMessage':_0x41bad0[_0x36ceea(0x123)]||this[_0x36ceea(0x7d)]['t']('mcpConfig.validation.invalidApiKey')};return{'isValid':!![]};}catch(_0x37808d){return console[_0x36ceea(0x7f)](_0x36ceea(0xec),_0x37808d),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILocalStorageService),__decorateParam(0x4,IDialogService),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(ComponentManager)),__decorateParam(0x7,Inject(LocaleService)),__decorateParam(0x8,ILogService),__decorateParam(0x9,Inject(MCPConnectionController))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':'mcp-ui.command.openConfigPanel','type':CommandType[_0xe5c988(0x151)],'handler':async(_0x253f89,_0x1865f7)=>{const _0x2da317=_0xe5c988;return _0x253f89[_0x2da317(0xb2)](MCPConfigUIController)['showConfigPanel'](),!![];}};function mapStatusToI18NKey(_0x4f8666,_0xd86137){const _0x33fc2a=_0xe5c988;switch(_0x4f8666){case MCPConnectionStatus[_0x33fc2a(0x72)]:return'mcpStatus.disconnected';case MCPConnectionStatus['CONNECTING']:return _0x33fc2a(0x129);case MCPConnectionStatus[_0x33fc2a(0x6a)]:return _0x33fc2a(0xbe);case MCPConnectionStatus[_0x33fc2a(0x7c)]:switch(_0xd86137){case MCPConnectionError['UNAUTHORIZED']:return _0x33fc2a(0xa2);case MCPConnectionError[_0x33fc2a(0x115)]:return _0x33fc2a(0x150);case MCPConnectionError['NETWORK_ERROR']:return _0x33fc2a(0x11c);case MCPConnectionError['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return _0x33fc2a(0x133);}case MCPConnectionStatus[_0x33fc2a(0xa3)]:return'mcpStatus.retrying';default:return _0x33fc2a(0x97);}}function getTooltipText(_0x44a010,_0x2a37a7,_0x1fabb7,_0x5c61c5=!![]){const _0x1cc743=_0xe5c988,_0xcf1cb1=mapStatusToI18NKey(_0x44a010,_0x2a37a7),_0x381809=_0x1fabb7['t'](_0xcf1cb1);if(!_0x5c61c5)return _0x381809;if(_0x44a010===MCPConnectionStatus[_0x1cc743(0x72)]&&_0x2a37a7===MCPConnectionError[_0x1cc743(0x15c)])return _0x381809+_0x1cc743(0x17a)+_0x1fabb7['t'](_0x1cc743(0xb4));else{if(_0x44a010===MCPConnectionStatus[_0x1cc743(0x6a)])return''+_0x381809;else{if(_0x44a010===MCPConnectionStatus[_0x1cc743(0x72)]||_0x44a010===MCPConnectionStatus[_0x1cc743(0x7c)])return _0x381809+'\x20-\x20'+_0x1fabb7['t']('mcpStatus.clickToConnect');}}return _0x381809;}function getStatusColor(_0x1cbc5f){const _0x37baca=_0xe5c988;switch(_0x1cbc5f){case MCPConnectionStatus[_0x37baca(0x6a)]:return'univer-text-green-500';case MCPConnectionStatus[_0x37baca(0x8e)]:case MCPConnectionStatus[_0x37baca(0xa3)]:return _0x37baca(0x12b);case MCPConnectionStatus['FAILED']:case MCPConnectionStatus[_0x37baca(0x72)]:return _0x37baca(0x140);default:return'univer-text-gray-500';}}function MCPStatusDisplay(_0x33c667){const _0x4cb763=_0xe5c988,{status$:_0xbf3a2c,error$:_0x51b79f,onConfigure:_0x529bc6,showClickable:showClickable=!![]}=_0x33c667,_0x425598=useObservable(_0xbf3a2c,MCPConnectionStatus[_0x4cb763(0x72)]),_0x48c0fb=useObservable(_0x51b79f,MCPConnectionError[_0x4cb763(0xbf)]),_0x2194d3=useDependency(LocaleService),_0x230fa1=_0x425598===MCPConnectionStatus[_0x4cb763(0x6a)];_0x425598===MCPConnectionStatus[_0x4cb763(0x8e)]||MCPConnectionStatus[_0x4cb763(0xa3)];const _0x5d859b=_0x2194d3['t'](mapStatusToI18NKey(_0x425598,_0x48c0fb)),_0x21366a=getTooltipText(_0x425598,_0x48c0fb,_0x2194d3,showClickable),_0x3ef07f=getStatusColor(_0x425598),_0x356600=_0x230fa1?jsx(OnLineIcon,{}):jsx(OffLineIcon,{}),_0x2b50f3=useCallback(()=>{if(showClickable&&_0x529bc6)_0x529bc6();},[showClickable,_0x529bc6]);function _0x66badd(){const _0x21b6c0=_0x4cb763;return jsxs(_0x21b6c0(0x169),{'className':clsx('univer-flex\x20univer-items-center',showClickable&&_0x529bc6&&_0x21b6c0(0x102)),'role':_0x21b6c0(0x114),'onClick':showClickable&&_0x529bc6?_0x2b50f3:void 0x0,'children':[jsx(_0x21b6c0(0x169),{'className':clsx(_0x21b6c0(0x155),_0x3ef07f),'children':_0x356600}),jsx('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5d859b})]});}return jsx(Tooltip,{'title':_0x21366a,'placement':_0x4cb763(0x178),'children':_0x66badd()});}function _0x19ff(_0x483bd9,_0x5ea467){_0x483bd9=_0x483bd9-0x66;const _0x26f5c9=_0x26f5();let _0x19ff87=_0x26f5c9[_0x483bd9];return _0x19ff87;}let MCPConnectionUIController=class MCPConnectionUIController extends Disposable{constructor(_0xfcd9fa,_0x54b19f,_0x497d5e,_0x44b577){const _0x5d35b6=_0xe5c988;super(),this[_0x5d35b6(0x8c)]=_0xfcd9fa,this[_0x5d35b6(0xa1)]=_0x54b19f,this[_0x5d35b6(0x168)]=_0x497d5e,this['_configService']=_0x44b577,this[_0x5d35b6(0xd5)](),this[_0x5d35b6(0x185)]();}[_0xe5c988(0xd5)](){const _0x301f1a=_0xe5c988,_0x817c21=this['_configService']['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x817c21===null||_0x817c21===void 0x0?void 0x0:_0x817c21['showDeveloperTools'])this[_0x301f1a(0xa1)]['enableAutoConnect']=![];}[_0xe5c988(0x185)](){const _0x18fddc=_0xe5c988,_0xf95b91=this[_0x18fddc(0x8d)][_0x18fddc(0x13b)](MCP_UI_PLUGIN_CONFIG_KEY);if((_0xf95b91===null||_0xf95b91===void 0x0?void 0x0:_0xf95b91[_0x18fddc(0xfe)])!==![])this[_0x18fddc(0x7a)](this[_0x18fddc(0x168)][_0x18fddc(0x189)](BuiltInUIPart[_0x18fddc(0x69)],()=>{const _0x2af89e=_0x18fddc;var _0x3fec80;return connectInjector(passProps({'status$':this[_0x2af89e(0xa1)][_0x2af89e(0x17d)],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x2af89e(0x66)](),'showClickable':(_0x3fec80=_0xf95b91===null||_0xf95b91===void 0x0?void 0x0:_0xf95b91['showDeveloperTools'])!==null&&_0x3fec80!==void 0x0?_0x3fec80:![]}),this[_0x2af89e(0x8c)]);}));}['_handleConfigure'](){const _0x28c4e9=_0xe5c988;this[_0x28c4e9(0x8c)]['get'](MCPConfigUIController)[_0x28c4e9(0x130)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(MCPConnectionController)),__decorateParam(0x2,IUIPartsService),__decorateParam(0x3,IConfigService)],MCPConnectionUIController);function passProps(_0x378e0b){const {status$:_0x1fed89,error$:_0xbcaf3b,onConfigure:_0x1d461a,showClickable:_0x39c03c}=_0x378e0b;return function _0xf60bce(){return jsx(MCPStatusDisplay,{'status$':_0x1fed89,'error$':_0xbcaf3b,'onConfigure':_0x1d461a,'showClickable':_0x39c03c});};}function MCPConfigMenuItemFactory(_0x2f3e11){const _0x2f5aa0=_0xe5c988;return{'id':OpenMCPConfigPanelCommand['id'],'type':MenuItemType[_0x2f5aa0(0x13c)],'icon':_0x2f5aa0(0xfc),'title':_0x2f5aa0(0xa4),'tooltip':_0x2f5aa0(0xa4)};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};let MCPUIMenuController=class MCPUIMenuController extends Disposable{constructor(_0x42e9e7,_0x47fa1e){const _0x4b6a47=_0xe5c988;super(),this[_0x4b6a47(0x10c)]=_0x42e9e7,this[_0x4b6a47(0x67)]=_0x47fa1e,this[_0x4b6a47(0x76)](),this[_0x4b6a47(0x112)]();}[_0xe5c988(0x76)](){const _0x40ba01=_0xe5c988;[OpenMCPConfigPanelCommand][_0x40ba01(0xdd)](_0x1523ce=>{const _0x167e7b=_0x40ba01;this[_0x167e7b(0x7a)](this[_0x167e7b(0x10c)][_0x167e7b(0xeb)](_0x1523ce));});}[_0xe5c988(0x112)](){const _0x4bd94b=_0xe5c988;this[_0x4bd94b(0x67)][_0x4bd94b(0x15e)](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService)],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':_0xe5c988(0x135),'connecting':_0xe5c988(0x164),'connected':_0xe5c988(0xa7),'failed':_0xe5c988(0x139),'retrying':'MCP\x20Retrying...','unknown':_0xe5c988(0xbd),'unauthorized':_0xe5c988(0xd7),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xe5c988(0x98),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xe5c988(0x106)},'mcpConfig':{'title':_0xe5c988(0x177),'description':_0xe5c988(0xf0),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xe5c988(0x183),'apiKeyHint':_0xe5c988(0x101),'enableAuth':_0xe5c988(0x78),'enableAuthHint':_0xe5c988(0xf7),'connectionInfo':_0xe5c988(0x152),'mcpClientConfig':_0xe5c988(0x152),'configInstructions':_0xe5c988(0x17e),'configStepTitle':_0xe5c988(0xf4),'configStep1':_0xe5c988(0x90),'configStep2':_0xe5c988(0xc6),'configStep3':_0xe5c988(0x170),'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':_0xe5c988(0x125),'maxRetries':_0xe5c988(0xa6),'save':_0xe5c988(0xf9),'saving':_0xe5c988(0x145),'note1':_0xe5c988(0x6e),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0xe5c988(0x80),'apiApplyInfo':{'title':_0xe5c988(0x89),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0xe5c988(0x8b),'getStarted':_0xe5c988(0x132)},'validation':{'apiKeyRequired':_0xe5c988(0xc9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xe5c988(0x111),'invalidApiKey':_0xe5c988(0x171)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0xe5c988(0xff),'retrying':_0xe5c988(0xe7)},'connectionError':{'unauthorized':_0xe5c988(0x14e),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xe5c988(0xda),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale$1={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0xe5c988(0xb9),'connected':_0xe5c988(0x187),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0xe5c988(0x13a),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xe5c988(0xc4),'maxRetriesExceeded':_0xe5c988(0x86),'clickToConnect':_0xe5c988(0x172),'clickToConfigure':_0xe5c988(0x184)},'mcpConfig':{'title':'MCP\x20配置','description':_0xe5c988(0x131),'apiKey':_0xe5c988(0x180),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0xe5c988(0x179),'enableAuth':_0xe5c988(0x9b),'enableAuthHint':_0xe5c988(0xae),'connectionInfo':_0xe5c988(0x79),'mcpClientConfig':_0xe5c988(0x79),'configInstructions':_0xe5c988(0x181),'configStepTitle':_0xe5c988(0x128),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0xe5c988(0xac),'configStep3':_0xe5c988(0x147),'sessionId':_0xe5c988(0xc8),'sessionIdDescription':_0xe5c988(0xd3),'authorizationDescription':_0xe5c988(0x138),'configParameters':_0xe5c988(0x16b),'maxRetries':_0xe5c988(0xb0),'save':_0xe5c988(0xcf),'saving':_0xe5c988(0x16a),'note1':_0xe5c988(0x148),'note2':_0xe5c988(0x94),'configSaved':_0xe5c988(0xa9),'configError':_0xe5c988(0xef),'apiApplyInfo':{'title':_0xe5c988(0xcd),'description':_0xe5c988(0xc3),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0xe5c988(0xa5)},'validation':{'apiKeyRequired':_0xe5c988(0x103),'apiKeyTooShort':_0xe5c988(0x7b),'invalidConfig':_0xe5c988(0x14d),'invalidApiKey':_0xe5c988(0xb8)},'connectionStatus':{'disconnected':_0xe5c988(0xc2),'connecting':_0xe5c988(0xb6),'connected':_0xe5c988(0x167),'failed':_0xe5c988(0xb1),'retrying':'重连中...'},'connectionError':{'unauthorized':_0xe5c988(0x77),'sessionOccupied':_0xe5c988(0x6f),'networkError':_0xe5c988(0xf3),'maxRetriesExceeded':_0xe5c988(0xcb)}}};var name=_0xe5c988(0x16e),version='0.22.1';let UniverMCPUIPlugin=class UniverMCPUIPlugin extends Plugin{constructor(_0x26411d=defaultPluginConfig,_0x4e920b,_0x96a272,_0x4488ce,_0x5a766f,_0x40878f){const _0x36f675=_0xe5c988;super(),this[_0x36f675(0x113)]=_0x26411d,this['_injector']=_0x4e920b,this[_0x36f675(0x8d)]=_0x96a272,this[_0x36f675(0x168)]=_0x4488ce,this[_0x36f675(0x122)]=_0x5a766f,this[_0x36f675(0x7d)]=_0x40878f;const {..._0x3c09ee}=merge({},defaultPluginConfig,this[_0x36f675(0x113)]);this['_configService'][_0x36f675(0x9e)](MCP_UI_PLUGIN_CONFIG_KEY,_0x3c09ee);}async[_0xe5c988(0xe2)](){const _0x4ef54d=_0xe5c988,_0x4fb726=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this[_0x4ef54d(0x8c)]['has'](ISocketService))_0x4fb726[_0x4ef54d(0x108)]([ISocketService,{'useClass':WebSocketService}]);_0x4fb726[_0x4ef54d(0xdd)](_0x47c978=>this[_0x4ef54d(0x8c)]['add'](_0x47c978)),this[_0x4ef54d(0x8c)]['get'](MCPConnectionUIController),this['_injector']['get'](MCPConfigUIController),this['_injector']['get'](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0xe5c988(0x116),_0xe5c988(0xc5)),_defineProperty(UniverMCPUIPlugin,_0xe5c988(0x16d),name),_defineProperty(UniverMCPUIPlugin,_0xe5c988(0x96),version),UniverMCPUIPlugin=__decorate([DependentOn(UniverMCPPlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,IUIPartsService),__decorateParam(0x4,ILocalStorageService),__decorateParam(0x5,Inject(LocaleService))],UniverMCPUIPlugin);export{MCPConfigPanel,MCPConfigUIController,MCPConnectionUIController,MCPStatusDisplay,MCPUIMenuController,OpenMCPConfigPanelCommand,UniverMCPUIPlugin,locale as enUS,locale$1 as zhCN};
@@ -1 +1 @@
1
- const _0x27ac5f=_0x3a9b;(function(_0x27707b,_0x2626fa){const _0x4dfa4e=_0x3a9b,_0x5637c8=_0x27707b();while(!![]){try{const _0x180c5f=parseInt(_0x4dfa4e(0x12e))/0x1+parseInt(_0x4dfa4e(0x12d))/0x2+parseInt(_0x4dfa4e(0x125))/0x3*(parseInt(_0x4dfa4e(0x129))/0x4)+-parseInt(_0x4dfa4e(0x137))/0x5+-parseInt(_0x4dfa4e(0x11c))/0x6+parseInt(_0x4dfa4e(0x114))/0x7*(-parseInt(_0x4dfa4e(0x12a))/0x8)+parseInt(_0x4dfa4e(0x11a))/0x9*(-parseInt(_0x4dfa4e(0x12f))/0xa);if(_0x180c5f===_0x2626fa)break;else _0x5637c8['push'](_0x5637c8['shift']());}catch(_0x31c2d8){_0x5637c8['push'](_0x5637c8['shift']());}}}(_0x105b,0x5d3a5));const locale$1={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x27ac5f(0x119),'connected':_0x27ac5f(0x117),'failed':_0x27ac5f(0x12b),'retrying':_0x27ac5f(0x122),'unknown':_0x27ac5f(0x12c),'unauthorized':_0x27ac5f(0x10d),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x27ac5f(0x126),'maxRetriesExceeded':_0x27ac5f(0x134),'clickToConnect':_0x27ac5f(0x135),'clickToConfigure':_0x27ac5f(0x124)},'mcpConfig':{'title':_0x27ac5f(0x118),'description':_0x27ac5f(0x11d),'apiKey':_0x27ac5f(0x10e),'apiKeyPlaceholder':_0x27ac5f(0x138),'apiKeyHint':_0x27ac5f(0x127),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x27ac5f(0x113),'connectionInfo':_0x27ac5f(0x130),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x27ac5f(0x136),'configStep1':_0x27ac5f(0x109),'configStep2':_0x27ac5f(0x112),'configStep3':_0x27ac5f(0x110),'sessionId':_0x27ac5f(0x133),'sessionIdDescription':_0x27ac5f(0x10b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x27ac5f(0x128),'note1':_0x27ac5f(0x10c),'note2':_0x27ac5f(0x115),'configSaved':_0x27ac5f(0x121),'configError':_0x27ac5f(0x10f),'apiApplyInfo':{'title':_0x27ac5f(0x11b),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x27ac5f(0x116),'apiKeyTooShort':_0x27ac5f(0x106),'invalidConfig':_0x27ac5f(0x132),'invalidApiKey':_0x27ac5f(0x123)},'connectionStatus':{'disconnected':_0x27ac5f(0x120),'connecting':'Connecting...','connected':_0x27ac5f(0x111),'failed':_0x27ac5f(0x11e),'retrying':_0x27ac5f(0x131)},'connectionError':{'unauthorized':_0x27ac5f(0x107),'sessionOccupied':_0x27ac5f(0x108),'networkError':_0x27ac5f(0x10a),'maxRetriesExceeded':_0x27ac5f(0x11f)}}},locale=locale$1;function _0x105b(){const _0xd58776=['259BkKqEs','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','MCP\x20Connected','MCP\x20Configuration','MCP\x20Connecting...','405yYCnXX','What\x20is\x20API\x20Key?','2035836nSUrZy','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Configuration\x20saved\x20successfully','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','8805QBmGmc','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','520tJsiwk','32096cchhil','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','1160228JlVczg','563972fZfkYM','40130HclrTc','MCP\x20Client\x20Configuration','Retrying...','Invalid\x20configuration','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','2377200cPmVWV','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Unauthorized','API\x20Key','Failed\x20to\x20save\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20authentication\x20for\x20secure\x20connections'];_0x105b=function(){return _0xd58776;};return _0x105b();}function _0x3a9b(_0x46a447,_0x493c9f){_0x46a447=_0x46a447-0x106;const _0x105ba8=_0x105b();let _0x3a9bc7=_0x105ba8[_0x46a447];return _0x3a9bc7;}export{locale as default};
1
+ const _0x5321e0=_0x2e1e;(function(_0x325652,_0x498803){const _0x3de7a3=_0x2e1e,_0x906b5a=_0x325652();while(!![]){try{const _0x47047b=-parseInt(_0x3de7a3(0x194))/0x1+parseInt(_0x3de7a3(0x17c))/0x2*(parseInt(_0x3de7a3(0x195))/0x3)+-parseInt(_0x3de7a3(0x175))/0x4+parseInt(_0x3de7a3(0x189))/0x5*(parseInt(_0x3de7a3(0x177))/0x6)+-parseInt(_0x3de7a3(0x178))/0x7*(parseInt(_0x3de7a3(0x17a))/0x8)+parseInt(_0x3de7a3(0x192))/0x9*(parseInt(_0x3de7a3(0x183))/0xa)+parseInt(_0x3de7a3(0x17e))/0xb;if(_0x47047b===_0x498803)break;else _0x906b5a['push'](_0x906b5a['shift']());}catch(_0x45eecb){_0x906b5a['push'](_0x906b5a['shift']());}}}(_0x348a,0xd63c1));function _0x2e1e(_0x1c582d,_0x41131a){_0x1c582d=_0x1c582d-0x170;const _0x348af9=_0x348a();let _0x2e1e83=_0x348af9[_0x1c582d];return _0x2e1e83;}const locale$1={'mcpStatus':{'disconnected':_0x5321e0(0x171),'connecting':_0x5321e0(0x179),'connected':'MCP\x20Connected','failed':_0x5321e0(0x197),'retrying':_0x5321e0(0x173),'unknown':_0x5321e0(0x174),'unauthorized':_0x5321e0(0x191),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5321e0(0x18e),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5321e0(0x18a),'clickToConfigure':_0x5321e0(0x181)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5321e0(0x18f),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5321e0(0x17d),'enableAuth':_0x5321e0(0x17f),'enableAuthHint':_0x5321e0(0x196),'connectionInfo':_0x5321e0(0x198),'mcpClientConfig':_0x5321e0(0x198),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x5321e0(0x193),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x5321e0(0x184),'authorizationDescription':_0x5321e0(0x186),'configParameters':_0x5321e0(0x185),'maxRetries':'Max\x20Retries','save':_0x5321e0(0x172),'saving':_0x5321e0(0x170),'note1':_0x5321e0(0x199),'note2':_0x5321e0(0x180),'configSaved':_0x5321e0(0x187),'configError':_0x5321e0(0x18d),'apiApplyInfo':{'title':_0x5321e0(0x190),'description':_0x5321e0(0x188),'univerAiLabel':_0x5321e0(0x18c),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5321e0(0x18b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x5321e0(0x19a),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x5321e0(0x17b),'sessionOccupied':_0x5321e0(0x176),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5321e0(0x182)}}},locale=locale$1;function _0x348a(){const _0x28b177=['Copy\x20the\x20JSON\x20configuration\x20below','1150724MRtLoU','749070PwxKbE','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','Saving...','MCP\x20Disconnected','Save\x20Configuration','MCP\x20Retrying...','MCP\x20Unknown\x20Status','5265092Qhgdyg','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','10194Wjsabd','367031LiENIR','MCP\x20Connecting...','8TvLqmL','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','8OkGmou','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','11673585jamFZu','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20configure\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','390qKaHKX','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20saved\x20successfully','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2965CIiXGX','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','Univer\x20AI\x20Console','Failed\x20to\x20save\x20configuration','MCP:\x20Network\x20Error','API\x20Key','What\x20is\x20API\x20Key?','MCP:\x20Unauthorized','76023VqzoWt'];_0x348a=function(){return _0x28b177;};return _0x348a();}export{locale as default};
@@ -1 +1 @@
1
- function _0x3ef0(_0x3b44a8,_0x4150ad){_0x3b44a8=_0x3b44a8-0x8b;const _0x17805c=_0x1780();let _0x3ef047=_0x17805c[_0x3b44a8];return _0x3ef047;}const _0x1577c2=_0x3ef0;function _0x1780(){const _0x556c0f=['Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','1096nYngWd','Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Save\x20Configuration','530244uWDUct','1144887hwvptz','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','10ConPoX','4XaOohk','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','693276hVnncN','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connecting...','77NVTymJ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:','5885060ZFpGjK','Saving...','MCP:\x20Network\x20Error','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connecting...','MCP\x20Unknown\x20Status','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\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.','MCP\x20Client\x20Configuration','Connection\x20Failed','13637195dYEuZp','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected','Invalid\x20configuration','Failed\x20to\x20save\x20configuration','Session\x20ID','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2UFmlqy','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1530584EqrFUk','17145oijVlM','Max\x20Retries'];_0x1780=function(){return _0x556c0f;};return _0x1780();}(function(_0x49ab38,_0x2809e2){const _0x20992b=_0x3ef0,_0x3bc282=_0x49ab38();while(!![]){try{const _0x467c30=-parseInt(_0x20992b(0x9f))/0x1*(-parseInt(_0x20992b(0xa1))/0x2)+parseInt(_0x20992b(0xac))/0x3*(parseInt(_0x20992b(0xb0))/0x4)+-parseInt(_0x20992b(0xbb))/0x5+-parseInt(_0x20992b(0xb3))/0x6*(parseInt(_0x20992b(0xb8))/0x7)+-parseInt(_0x20992b(0xa7))/0x8*(-parseInt(_0x20992b(0xa2))/0x9)+parseInt(_0x20992b(0xaf))/0xa*(parseInt(_0x20992b(0x95))/0xb)+-parseInt(_0x20992b(0xab))/0xc;if(_0x467c30===_0x2809e2)break;else _0x3bc282['push'](_0x3bc282['shift']());}catch(_0x1559e7){_0x3bc282['push'](_0x3bc282['shift']());}}}(_0x1780,0xe0ca2));const locale={'mcpStatus':{'disconnected':_0x1577c2(0x99),'connecting':_0x1577c2(0xb7),'connected':_0x1577c2(0xb5),'failed':_0x1577c2(0x8f),'retrying':'MCP\x20Retrying...','unknown':_0x1577c2(0x8e),'unauthorized':_0x1577c2(0xb1),'sessionOccupied':_0x1577c2(0xb6),'networkError':_0x1577c2(0xbd),'maxRetriesExceeded':_0x1577c2(0xa9),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1577c2(0x97)},'mcpConfig':{'title':_0x1577c2(0x9d),'description':_0x1577c2(0x98),'apiKey':_0x1577c2(0x8b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1577c2(0x90),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1577c2(0x96),'connectionInfo':_0x1577c2(0x93),'mcpClientConfig':_0x1577c2(0x93),'configInstructions':_0x1577c2(0xb4),'configStepTitle':_0x1577c2(0xba),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1577c2(0xa0),'configStep3':_0x1577c2(0x91),'sessionId':_0x1577c2(0x9c),'sessionIdDescription':_0x1577c2(0xb2),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x1577c2(0xa3),'save':_0x1577c2(0xaa),'saving':_0x1577c2(0xbc),'note1':_0x1577c2(0x9e),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x1577c2(0x9b),'apiApplyInfo':{'title':_0x1577c2(0xa5),'description':_0x1577c2(0x92),'univerAiLabel':_0x1577c2(0xae),'getStarted':_0x1577c2(0xa4)},'validation':{'apiKeyRequired':_0x1577c2(0xa6),'apiKeyTooShort':_0x1577c2(0x8c),'invalidConfig':_0x1577c2(0x9a),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1577c2(0x8d),'connected':'Connected','failed':_0x1577c2(0x94),'retrying':_0x1577c2(0xa8)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1577c2(0xb9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1577c2(0xad)}}};export{locale as default};
1
+ const _0x1d467b=_0x2438;(function(_0x2fb530,_0xe180e4){const _0x23c5e0=_0x2438,_0x2444c0=_0x2fb530();while(!![]){try{const _0x222b98=-parseInt(_0x23c5e0(0xef))/0x1*(-parseInt(_0x23c5e0(0xcb))/0x2)+-parseInt(_0x23c5e0(0xfb))/0x3*(parseInt(_0x23c5e0(0xc4))/0x4)+parseInt(_0x23c5e0(0xf0))/0x5*(-parseInt(_0x23c5e0(0xd3))/0x6)+-parseInt(_0x23c5e0(0xfa))/0x7*(-parseInt(_0x23c5e0(0xca))/0x8)+parseInt(_0x23c5e0(0xe3))/0x9+-parseInt(_0x23c5e0(0xe0))/0xa*(parseInt(_0x23c5e0(0xdb))/0xb)+parseInt(_0x23c5e0(0xd0))/0xc;if(_0x222b98===_0xe180e4)break;else _0x2444c0['push'](_0x2444c0['shift']());}catch(_0x4a022c){_0x2444c0['push'](_0x2444c0['shift']());}}}(_0x2d2e,0xbb0b6));const locale={'mcpStatus':{'disconnected':_0x1d467b(0xd4),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x1d467b(0xf1),'retrying':_0x1d467b(0xdc),'unknown':_0x1d467b(0xc9),'unauthorized':_0x1d467b(0xd2),'sessionOccupied':_0x1d467b(0xea),'networkError':_0x1d467b(0xeb),'maxRetriesExceeded':_0x1d467b(0xc5),'clickToConnect':_0x1d467b(0xe2),'clickToConfigure':_0x1d467b(0xf3)},'mcpConfig':{'title':_0x1d467b(0xde),'description':_0x1d467b(0xcf),'apiKey':_0x1d467b(0xd6),'apiKeyPlaceholder':_0x1d467b(0xf9),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1d467b(0xd8),'enableAuthHint':_0x1d467b(0xe8),'connectionInfo':_0x1d467b(0xd1),'mcpClientConfig':_0x1d467b(0xd1),'configInstructions':_0x1d467b(0xd5),'configStepTitle':_0x1d467b(0xc7),'configStep1':_0x1d467b(0xdf),'configStep2':_0x1d467b(0xf8),'configStep3':_0x1d467b(0xc6),'sessionId':_0x1d467b(0xe5),'sessionIdDescription':_0x1d467b(0xe9),'authorizationDescription':_0x1d467b(0xe4),'configParameters':_0x1d467b(0xf2),'maxRetries':_0x1d467b(0xcc),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1d467b(0xf5),'configSaved':_0x1d467b(0xda),'configError':_0x1d467b(0xed),'apiApplyInfo':{'title':_0x1d467b(0xe6),'description':_0x1d467b(0xf6),'univerAiLabel':_0x1d467b(0xf4),'getStarted':_0x1d467b(0xdd)},'validation':{'apiKeyRequired':_0x1d467b(0xe1),'apiKeyTooShort':_0x1d467b(0xce),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1d467b(0xcd)},'connectionStatus':{'disconnected':_0x1d467b(0xd9),'connecting':_0x1d467b(0xee),'connected':_0x1d467b(0xf7),'failed':_0x1d467b(0xe7),'retrying':_0x1d467b(0xec)},'connectionError':{'unauthorized':_0x1d467b(0xd7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x1d467b(0xc8),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x2438(_0x3d42ab,_0x172e33){_0x3d42ab=_0x3d42ab-0xc4;const _0x2d2e01=_0x2d2e();let _0x243880=_0x2d2e01[_0x3d42ab];return _0x243880;}export{locale as default};function _0x2d2e(){const _0x2dca58=['MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','9894350IPuctA','API\x20key\x20is\x20required','Click\x20to\x20connect\x20MCP','13665663wIzdGb','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','What\x20is\x20API\x20Key?','Connection\x20Failed','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.','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','Retrying...','Failed\x20to\x20save\x20configuration','Connecting...','22039sKhhlz','8345OfOUuP','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','Click\x20to\x20configure\x20MCP','Univer\x20AI\x20Console','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','6189449nOOBtP','4317AyTuRi','1268XYhThE','MCP:\x20Max\x20Retries\x20Exceeded','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Steps:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Unknown\x20Status','8vKvGyi','2GWgvKr','Max\x20Retries','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','12485976ynXGKO','MCP\x20Client\x20Configuration','MCP:\x20Unauthorized','4506EclqSX','MCP\x20Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20Authentication','Disconnected','Configuration\x20saved\x20successfully','11iriAPK'];_0x2d2e=function(){return _0x2dca58;};return _0x2d2e();}
@@ -1 +1 @@
1
- const _0x38a90e=_0x4ee7;function _0x4ee7(_0x2561bc,_0x4ca299){_0x2561bc=_0x2561bc-0x83;const _0x1d1154=_0x1d11();let _0x4ee78b=_0x1d1154[_0x2561bc];return _0x4ee78b;}(function(_0x3c4140,_0x1172ae){const _0xf48e3c=_0x4ee7,_0x216801=_0x3c4140();while(!![]){try{const _0x23c5b2=parseInt(_0xf48e3c(0x84))/0x1+-parseInt(_0xf48e3c(0xae))/0x2+parseInt(_0xf48e3c(0xb3))/0x3*(parseInt(_0xf48e3c(0xa5))/0x4)+-parseInt(_0xf48e3c(0xa7))/0x5*(parseInt(_0xf48e3c(0x9e))/0x6)+-parseInt(_0xf48e3c(0x92))/0x7*(-parseInt(_0xf48e3c(0x9b))/0x8)+-parseInt(_0xf48e3c(0x85))/0x9*(-parseInt(_0xf48e3c(0x9a))/0xa)+parseInt(_0xf48e3c(0x90))/0xb;if(_0x23c5b2===_0x1172ae)break;else _0x216801['push'](_0x216801['shift']());}catch(_0x3644de){_0x216801['push'](_0x216801['shift']());}}}(_0x1d11,0x3db64));const locale$1={'mcpStatus':{'disconnected':_0x38a90e(0xa2),'connecting':_0x38a90e(0xa6),'connected':_0x38a90e(0x8e),'failed':'MCP\x20Connection\x20Failed','retrying':_0x38a90e(0x86),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x38a90e(0x94),'sessionOccupied':_0x38a90e(0x8c),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x38a90e(0xa0),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x38a90e(0xa1),'description':_0x38a90e(0xa9),'apiKey':_0x38a90e(0xa3),'apiKeyPlaceholder':_0x38a90e(0xaf),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x38a90e(0x8a),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x38a90e(0x95),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x38a90e(0x9f),'configStepTitle':_0x38a90e(0x98),'configStep1':_0x38a90e(0x87),'configStep2':_0x38a90e(0xb2),'configStep3':_0x38a90e(0xb1),'sessionId':_0x38a90e(0x99),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x38a90e(0x8b),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x38a90e(0xa4),'save':'Save\x20Configuration','saving':_0x38a90e(0x8d),'note1':_0x38a90e(0x93),'note2':_0x38a90e(0xb4),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x38a90e(0xaa),'apiApplyInfo':{'title':_0x38a90e(0x9c),'description':_0x38a90e(0x97),'univerAiLabel':_0x38a90e(0xa8),'getStarted':_0x38a90e(0xac)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x38a90e(0xad),'invalidApiKey':_0x38a90e(0x9d)},'connectionStatus':{'disconnected':_0x38a90e(0x83),'connecting':_0x38a90e(0x96),'connected':_0x38a90e(0x89),'failed':_0x38a90e(0xab),'retrying':_0x38a90e(0x8f)},'connectionError':{'unauthorized':_0x38a90e(0x88),'sessionOccupied':_0x38a90e(0xb0),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x38a90e(0x91)}}},locale=locale$1;function _0x1d11(){const _0x4522a9=['What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4020kPtgCf','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','MCP\x20Disconnected','API\x20Key','Max\x20Retries','5116asoOBk','MCP\x20Connecting...','3235nFtUCa','Univer\x20AI\x20Console','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','668576DBzFiR','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','138FBmtbc','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Disconnected','364218hPobpX','19701AVcfcH','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connected','Enable\x20Authentication','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','Saving...','MCP\x20Connected','Retrying...','1454354rbgHqo','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','455XiWEhR','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','Session\x20ID','1510FYIfdf','16584oFeRTx'];_0x1d11=function(){return _0x4522a9;};return _0x1d11();}export{locale as default};
1
+ const _0x336339=_0x5e2a;(function(_0x4a1730,_0x3ab94f){const _0x25837e=_0x5e2a,_0x4aabcb=_0x4a1730();while(!![]){try{const _0x2b57ef=parseInt(_0x25837e(0x124))/0x1+parseInt(_0x25837e(0x130))/0x2+parseInt(_0x25837e(0x11f))/0x3*(parseInt(_0x25837e(0x112))/0x4)+parseInt(_0x25837e(0x13a))/0x5*(-parseInt(_0x25837e(0x108))/0x6)+-parseInt(_0x25837e(0x133))/0x7+-parseInt(_0x25837e(0x134))/0x8+parseInt(_0x25837e(0x138))/0x9*(parseInt(_0x25837e(0x137))/0xa);if(_0x2b57ef===_0x3ab94f)break;else _0x4aabcb['push'](_0x4aabcb['shift']());}catch(_0x4cf017){_0x4aabcb['push'](_0x4aabcb['shift']());}}}(_0x3471,0xac296));const locale$1={'mcpStatus':{'disconnected':_0x336339(0x11d),'connecting':_0x336339(0x107),'connected':_0x336339(0x129),'failed':_0x336339(0x126),'retrying':_0x336339(0x113),'unknown':_0x336339(0x10c),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x336339(0x131),'networkError':_0x336339(0x10a),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x336339(0x109),'clickToConfigure':_0x336339(0x12e)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x336339(0x13b),'apiKey':_0x336339(0x11a),'apiKeyPlaceholder':_0x336339(0x10f),'apiKeyHint':_0x336339(0x110),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x336339(0x13c),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x336339(0x11b),'configInstructions':_0x336339(0x12d),'configStepTitle':_0x336339(0x114),'configStep1':_0x336339(0x122),'configStep2':_0x336339(0x10d),'configStep3':_0x336339(0x10b),'sessionId':_0x336339(0x119),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x336339(0x117),'configParameters':_0x336339(0x132),'maxRetries':_0x336339(0x139),'save':_0x336339(0x123),'saving':_0x336339(0x13d),'note1':_0x336339(0x11e),'note2':_0x336339(0x128),'configSaved':_0x336339(0x10e),'configError':_0x336339(0x115),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x336339(0x116),'univerAiLabel':_0x336339(0x12c),'getStarted':_0x336339(0x111)},'validation':{'apiKeyRequired':_0x336339(0x12f),'apiKeyTooShort':_0x336339(0x118),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x336339(0x127)},'connectionStatus':{'disconnected':_0x336339(0x11c),'connecting':'Connecting...','connected':_0x336339(0x135),'failed':_0x336339(0x120),'retrying':_0x336339(0x12a)},'connectionError':{'unauthorized':_0x336339(0x125),'sessionOccupied':_0x336339(0x12b),'networkError':_0x336339(0x136),'maxRetriesExceeded':_0x336339(0x121)}}},locale=locale$1;function _0x5e2a(_0x257c92,_0x5ddb2e){_0x257c92=_0x257c92-0x107;const _0x347186=_0x3471();let _0x5e2a5d=_0x347186[_0x257c92];return _0x5e2a5d;}function _0x3471(){const _0x4bd473=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20configure\x20MCP','API\x20key\x20is\x20required','855484dskxpp','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','8299571evvswx','9694624HmVYno','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','230ojvddC','281565tkUgAO','Max\x20Retries','2542325FBdmiQ','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','Saving...','MCP\x20Connecting...','6sABKFU','Click\x20to\x20connect\x20MCP','MCP:\x20Network\x20Error','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Get\x20your\x20API\x20key\x20in\x20seconds','894264qnEYYW','MCP\x20Retrying...','Configuration\x20Steps:','Failed\x20to\x20save\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.','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','API\x20Key','MCP\x20Client\x20Configuration','Disconnected','MCP\x20Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','18fBLnTp','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','1122427lJntAd','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'];_0x3471=function(){return _0x4bd473;};return _0x3471();}export{locale as default};
@@ -1 +1 @@
1
- const _0x13fd3f=_0x3610;function _0x3610(_0x1348f9,_0x49ffb3){_0x1348f9=_0x1348f9-0xa1;const _0x10079d=_0x1007();let _0x361096=_0x10079d[_0x1348f9];return _0x361096;}function _0x1007(){const _0x34e927=['MCP\x20Connection\x20Failed','Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','6JedfhR','What\x20is\x20API\x20Key?','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','MCP\x20Configuration','Configuration\x20saved\x20successfully','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2017FrdIDH','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','90QibHIF','Connecting...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2272944NqqNHU','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Disconnected','Retrying...','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','MCP\x20Unknown\x20Status','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','Session\x20ID','370055NtqiQx','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','447492melQHw','326fvuDab','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Session\x20ID\x20Occupied','1376928nmOjHk','MCP:\x20Max\x20Retries\x20Exceeded','214805lZgxFs','Get\x20your\x20API\x20key\x20in\x20seconds','Failed\x20to\x20save\x20configuration','194265vFgmvh','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','Saving...','MCP\x20Client\x20Configuration','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x1007=function(){return _0x34e927;};return _0x1007();}(function(_0x5cbbf4,_0x8e6d97){const _0x5da9ee=_0x3610,_0x2d9afc=_0x5cbbf4();while(!![]){try{const _0x34b9b6=parseInt(_0x5da9ee(0xba))/0x1*(-parseInt(_0x5da9ee(0xce))/0x2)+parseInt(_0x5da9ee(0xcd))/0x3+parseInt(_0x5da9ee(0xd1))/0x4+parseInt(_0x5da9ee(0xa1))/0x5*(parseInt(_0x5da9ee(0xb0))/0x6)+-parseInt(_0x5da9ee(0xca))/0x7+parseInt(_0x5da9ee(0xbf))/0x8+-parseInt(_0x5da9ee(0xa4))/0x9*(parseInt(_0x5da9ee(0xbc))/0xa);if(_0x34b9b6===_0x8e6d97)break;else _0x2d9afc['push'](_0x2d9afc['shift']());}catch(_0x2056f4){_0x2d9afc['push'](_0x2d9afc['shift']());}}}(_0x1007,0x3bb5e));const locale$1={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x13fd3f(0xb2),'connected':_0x13fd3f(0xb6),'failed':_0x13fd3f(0xad),'retrying':_0x13fd3f(0xc5),'unknown':_0x13fd3f(0xc6),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x13fd3f(0xd0),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x13fd3f(0xd2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x13fd3f(0xa6)},'mcpConfig':{'title':_0x13fd3f(0xb7),'description':_0x13fd3f(0xb3),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x13fd3f(0xa8),'apiKeyHint':_0x13fd3f(0xcf),'enableAuth':_0x13fd3f(0xc3),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x13fd3f(0xaa),'mcpClientConfig':_0x13fd3f(0xaa),'configInstructions':_0x13fd3f(0xbe),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x13fd3f(0xb5),'configStep2':_0x13fd3f(0xc7),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x13fd3f(0xc9),'sessionIdDescription':_0x13fd3f(0xa5),'authorizationDescription':_0x13fd3f(0xcb),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x13fd3f(0xc8),'save':_0x13fd3f(0xb4),'saving':_0x13fd3f(0xa9),'note1':_0x13fd3f(0xac),'note2':_0x13fd3f(0xcc),'configSaved':_0x13fd3f(0xb8),'configError':_0x13fd3f(0xa3),'apiApplyInfo':{'title':_0x13fd3f(0xb1),'description':_0x13fd3f(0xbb),'univerAiLabel':_0x13fd3f(0xa7),'getStarted':_0x13fd3f(0xa2)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x13fd3f(0xc0),'invalidConfig':_0x13fd3f(0xab),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x13fd3f(0xc1),'connecting':_0x13fd3f(0xbd),'connected':_0x13fd3f(0xae),'failed':'Connection\x20Failed','retrying':_0x13fd3f(0xc2)},'connectionError':{'unauthorized':_0x13fd3f(0xc4),'sessionOccupied':_0x13fd3f(0xaf),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x13fd3f(0xb9)}}},locale=locale$1;export{locale as default};
1
+ const _0x38b637=_0x4383;function _0x5320(){const _0x50924f=['Invalid\x20configuration','MCP:\x20Network\x20Error','Configuration\x20Parameters:','Retrying...','Enable\x20Authentication','API\x20key\x20is\x20required','16WlTrFx','Disconnected','MCP\x20Unknown\x20Status','5057801PqsOGF','MCP\x20Retrying...','Connection\x20Failed','Configuration\x20saved\x20successfully','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Configuration','Connected','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','421yZtibZ','2134UtefPS','5294595kQTiuv','Click\x20to\x20configure\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Disconnected','Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20connect\x20MCP','Save\x20Configuration','1168902dLHDlh','4020980UcdIGw','Failed\x20to\x20save\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','3113991UnvVxX','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key','MCP\x20Client\x20Configuration','Univer\x20AI\x20Console','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','MCP:\x20Session\x20ID\x20Occupied','4365192JWjvTw','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...'];_0x5320=function(){return _0x50924f;};return _0x5320();}(function(_0x36c2b3,_0xda7632){const _0x462c71=_0x4383,_0x38a913=_0x36c2b3();while(!![]){try{const _0x2b219b=parseInt(_0x462c71(0x154))/0x1*(parseInt(_0x462c71(0x155))/0x2)+parseInt(_0x462c71(0x168))/0x3+-parseInt(_0x462c71(0x163))/0x4+-parseInt(_0x462c71(0x156))/0x5+parseInt(_0x462c71(0x171))/0x6+parseInt(_0x462c71(0x180))/0x7+parseInt(_0x462c71(0x17d))/0x8*(-parseInt(_0x462c71(0x162))/0x9);if(_0x2b219b===_0xda7632)break;else _0x38a913['push'](_0x38a913['shift']());}catch(_0x532ea9){_0x38a913['push'](_0x38a913['shift']());}}}(_0x5320,0x95bef));function _0x4383(_0x2d8f3f,_0x51f279){_0x2d8f3f=_0x2d8f3f-0x14a;const _0x5320ae=_0x5320();let _0x438363=_0x5320ae[_0x2d8f3f];return _0x438363;}const locale$1={'mcpStatus':{'disconnected':_0x38b637(0x15a),'connecting':_0x38b637(0x176),'connected':_0x38b637(0x167),'failed':_0x38b637(0x14d),'retrying':_0x38b637(0x14a),'unknown':_0x38b637(0x17f),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x38b637(0x170),'networkError':_0x38b637(0x178),'maxRetriesExceeded':_0x38b637(0x15e),'clickToConnect':_0x38b637(0x160),'clickToConfigure':_0x38b637(0x157)},'mcpConfig':{'title':_0x38b637(0x14f),'description':_0x38b637(0x16d),'apiKey':_0x38b637(0x16a),'apiKeyPlaceholder':_0x38b637(0x15d),'apiKeyHint':_0x38b637(0x153),'enableAuth':_0x38b637(0x17b),'enableAuthHint':_0x38b637(0x152),'connectionInfo':_0x38b637(0x16b),'mcpClientConfig':_0x38b637(0x16b),'configInstructions':_0x38b637(0x172),'configStepTitle':_0x38b637(0x151),'configStep1':_0x38b637(0x165),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x38b637(0x15f),'sessionId':_0x38b637(0x16f),'sessionIdDescription':_0x38b637(0x174),'authorizationDescription':_0x38b637(0x16e),'configParameters':_0x38b637(0x179),'maxRetries':'Max\x20Retries','save':_0x38b637(0x161),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x38b637(0x169),'configSaved':_0x38b637(0x14c),'configError':_0x38b637(0x164),'apiApplyInfo':{'title':_0x38b637(0x173),'description':_0x38b637(0x159),'univerAiLabel':_0x38b637(0x16c),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x38b637(0x17c),'apiKeyTooShort':_0x38b637(0x166),'invalidConfig':_0x38b637(0x177),'invalidApiKey':_0x38b637(0x15c)},'connectionStatus':{'disconnected':_0x38b637(0x17e),'connecting':_0x38b637(0x15b),'connected':_0x38b637(0x150),'failed':_0x38b637(0x14b),'retrying':_0x38b637(0x17a)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x38b637(0x175),'networkError':_0x38b637(0x14e),'maxRetriesExceeded':_0x38b637(0x158)}}},locale=locale$1;export{locale as default};
@@ -1 +1 @@
1
- const _0x2d2665=_0x2a00;function _0x2a00(_0x2b3efd,_0x3d5ceb){_0x2b3efd=_0x2b3efd-0x19c;const _0x396096=_0x3960();let _0x2a00f6=_0x396096[_0x2b3efd];return _0x2a00f6;}(function(_0x517b6c,_0x293e62){const _0xa98da9=_0x2a00,_0x2e9494=_0x517b6c();while(!![]){try{const _0x1d0f0b=-parseInt(_0xa98da9(0x1b5))/0x1+parseInt(_0xa98da9(0x1a6))/0x2+parseInt(_0xa98da9(0x1a2))/0x3*(parseInt(_0xa98da9(0x1a4))/0x4)+parseInt(_0xa98da9(0x1a0))/0x5+-parseInt(_0xa98da9(0x1b2))/0x6*(-parseInt(_0xa98da9(0x1bc))/0x7)+parseInt(_0xa98da9(0x1bd))/0x8*(parseInt(_0xa98da9(0x1c9))/0x9)+parseInt(_0xa98da9(0x1ca))/0xa*(-parseInt(_0xa98da9(0x1b9))/0xb);if(_0x1d0f0b===_0x293e62)break;else _0x2e9494['push'](_0x2e9494['shift']());}catch(_0x5edc67){_0x2e9494['push'](_0x2e9494['shift']());}}}(_0x3960,0x9f6da));const locale$1={'mcpStatus':{'disconnected':_0x2d2665(0x1bf),'connecting':_0x2d2665(0x19e),'connected':'MCP\x20Connected','failed':_0x2d2665(0x1cb),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2d2665(0x1a3),'sessionOccupied':_0x2d2665(0x1cc),'networkError':_0x2d2665(0x19f),'maxRetriesExceeded':_0x2d2665(0x1ac),'clickToConnect':_0x2d2665(0x1c8),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2d2665(0x1cf),'description':_0x2d2665(0x1c6),'apiKey':_0x2d2665(0x1aa),'apiKeyPlaceholder':_0x2d2665(0x1c7),'apiKeyHint':_0x2d2665(0x1a8),'enableAuth':_0x2d2665(0x1a1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2d2665(0x1b6),'mcpClientConfig':_0x2d2665(0x1b6),'configInstructions':_0x2d2665(0x1b8),'configStepTitle':_0x2d2665(0x1b3),'configStep1':_0x2d2665(0x1d0),'configStep2':_0x2d2665(0x1c2),'configStep3':_0x2d2665(0x1c5),'sessionId':_0x2d2665(0x1d2),'sessionIdDescription':_0x2d2665(0x1ae),'authorizationDescription':_0x2d2665(0x1c4),'configParameters':_0x2d2665(0x1d1),'maxRetries':_0x2d2665(0x1b4),'save':_0x2d2665(0x1ab),'saving':_0x2d2665(0x1c3),'note1':_0x2d2665(0x1af),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2d2665(0x1c1),'configError':_0x2d2665(0x1a7),'apiApplyInfo':{'title':_0x2d2665(0x1a9),'description':_0x2d2665(0x1a5),'univerAiLabel':_0x2d2665(0x1ad),'getStarted':_0x2d2665(0x1be)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2d2665(0x1b1),'invalidConfig':_0x2d2665(0x1cd),'invalidApiKey':_0x2d2665(0x19c)},'connectionStatus':{'disconnected':_0x2d2665(0x1b7),'connecting':_0x2d2665(0x1ba),'connected':_0x2d2665(0x1bb),'failed':_0x2d2665(0x1b0),'retrying':_0x2d2665(0x1ce)},'connectionError':{'unauthorized':_0x2d2665(0x1c0),'sessionOccupied':_0x2d2665(0x19d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;export{locale as default};function _0x3960(){const _0x2472a5=['Retrying...','MCP\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Parameters:','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','MCP:\x20Network\x20Error','2939130KUJcJA','Enable\x20Authentication','81YklXkw','MCP:\x20Unauthorized','106508dWjpoU','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','1713190RfDEhW','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','API\x20Key','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','708294NkqGAv','Configuration\x20Steps:','Max\x20Retries','1093305oudTVu','MCP\x20Client\x20Configuration','Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','22IjBBuf','Connecting...','Connected','63FdFCkf','248224jmkBWE','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20saved\x20successfully','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Saving...','API\x20key\x20with\x20Bearer\x20prefix.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','153MIyrHR','10034720iHtIeY','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20configuration'];_0x3960=function(){return _0x2472a5;};return _0x3960();}
1
+ const _0x449088=_0xd45a;function _0xd45a(_0x4abcee,_0x49f285){_0x4abcee=_0x4abcee-0x1d2;const _0x96f076=_0x96f0();let _0xd45a55=_0x96f076[_0x4abcee];return _0xd45a55;}(function(_0x35a088,_0x4a51){const _0xbc9ee0=_0xd45a,_0x3e6cfd=_0x35a088();while(!![]){try{const _0x52ed5c=-parseInt(_0xbc9ee0(0x1db))/0x1*(parseInt(_0xbc9ee0(0x1e1))/0x2)+-parseInt(_0xbc9ee0(0x1fe))/0x3*(-parseInt(_0xbc9ee0(0x1d9))/0x4)+parseInt(_0xbc9ee0(0x1f8))/0x5+-parseInt(_0xbc9ee0(0x1f9))/0x6+parseInt(_0xbc9ee0(0x1f1))/0x7+parseInt(_0xbc9ee0(0x1fa))/0x8*(-parseInt(_0xbc9ee0(0x1f0))/0x9)+parseInt(_0xbc9ee0(0x1e8))/0xa;if(_0x52ed5c===_0x4a51)break;else _0x3e6cfd['push'](_0x3e6cfd['shift']());}catch(_0x58bb74){_0x3e6cfd['push'](_0x3e6cfd['shift']());}}}(_0x96f0,0xb1c8f));const locale$1={'mcpStatus':{'disconnected':_0x449088(0x1e7),'connecting':_0x449088(0x1f2),'connected':_0x449088(0x200),'failed':'MCP\x20Connection\x20Failed','retrying':_0x449088(0x1ea),'unknown':_0x449088(0x1ff),'unauthorized':_0x449088(0x1dd),'sessionOccupied':_0x449088(0x1eb),'networkError':_0x449088(0x1f5),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x449088(0x1df),'clickToConfigure':_0x449088(0x1e9)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x449088(0x1d5),'apiKey':_0x449088(0x1d7),'apiKeyPlaceholder':_0x449088(0x1e0),'apiKeyHint':_0x449088(0x1d8),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x449088(0x1f7),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x449088(0x1da),'configInstructions':_0x449088(0x201),'configStepTitle':_0x449088(0x1de),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x449088(0x1d4),'configStep3':_0x449088(0x1f3),'sessionId':'Session\x20ID','sessionIdDescription':_0x449088(0x1ec),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x449088(0x1ed),'maxRetries':_0x449088(0x1ef),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x449088(0x1d6),'note2':_0x449088(0x1fc),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x449088(0x1ee),'apiApplyInfo':{'title':_0x449088(0x1e2),'description':_0x449088(0x1d2),'univerAiLabel':_0x449088(0x1e5),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x449088(0x1f4),'apiKeyTooShort':_0x449088(0x1e3),'invalidConfig':_0x449088(0x1fd),'invalidApiKey':_0x449088(0x1f6)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x449088(0x1fb),'connected':_0x449088(0x1e4),'failed':_0x449088(0x1dc),'retrying':_0x449088(0x1d3)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x449088(0x202),'networkError':_0x449088(0x1e6),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;export{locale as default};function _0x96f0(){const _0x2de2bb=['Click\x20to\x20configure\x20MCP','MCP\x20Retrying...','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','Max\x20Retries','279evmmup','3126816kotDca','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20authentication\x20for\x20secure\x20connections','1980360EepuDI','2374026gGDISH','268696gXTMZi','Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20configuration','4071RksfDw','MCP\x20Unknown\x20Status','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2152fPjsfz','MCP\x20Client\x20Configuration','27raAZpZ','Connection\x20Failed','MCP:\x20Unauthorized','Configuration\x20Steps:','Click\x20to\x20connect\x20MCP','Enter\x20your\x20API\x20key','16288XVxCuB','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Disconnected','8121370ZjcSzR'];_0x96f0=function(){return _0x2de2bb;};return _0x96f0();}
@@ -1 +1 @@
1
- const _0x31863d=_0x2115;function _0x2115(_0x19904c,_0x10f8d5){_0x19904c=_0x19904c-0x1d0;const _0x1a8309=_0x1a83();let _0x2115a6=_0x1a8309[_0x19904c];return _0x2115a6;}function _0x1a83(){const _0x7fb389=['最大再試行回数','無効なAPIキーです。キーが正しいか確認してください','以下のJSON設定をコピー','APIキーを入力してください','接続失敗','クリックしてMCPに接続','161247CGAPfS','最大再試行回数を超過しました。後でもう一度お試しください','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','設定を保存','6QqpptR','MCPクライアント設定','APIキーはローカルストレージに安全に保存されます','MCPクライアントの設定に次の設定を追加してください:','APIキーは10文字以上である必要があります','APIキーは必須です','MCP\x20接続中...','MCPを設定してAIでスプレッドシートを操作','セッションIDが現在使用中です。後でもう一度お試しください','設定が正常に保存されました','2588256PfTPSy','接続中...','設定の保存に失敗しました','1102530sBqsQp','7235760vOywCL','MCP:\x20最大再試行回数を超過','設定パラメータ:','MCP\x20接続済み','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','APIキー','18vGeFfS','MCP:\x20認証されていません','MCP\x20未接続','6349385rxspdr','MCPクライアントの設定ファイルに設定を追加','27wgowxm','MCP:\x20ネットワークエラー','認証を有効にする','無効な設定','Bearerプレフィックス付きのAPIキー。','MCPクライアントを再起動して設定を適用','セッションID','APIキーはこのブラウザのローカルに保存されます','未接続','MCP\x20接続失敗','403062cmslxZ','MCP:\x20セッションIDが使用中','8991310mrOomm'];_0x1a83=function(){return _0x7fb389;};return _0x1a83();}(function(_0xa1bdd4,_0x1692f7){const _0x388d64=_0x2115,_0x118b32=_0xa1bdd4();while(!![]){try{const _0x11f493=parseInt(_0x388d64(0x1d9))/0x1+-parseInt(_0x388d64(0x1fa))/0x2*(parseInt(_0x388d64(0x1e2))/0x3)+parseInt(_0x388d64(0x1f0))/0x4+-parseInt(_0x388d64(0x1db))/0x5+-parseInt(_0x388d64(0x1e6))/0x6*(-parseInt(_0x388d64(0x1fd))/0x7)+parseInt(_0x388d64(0x1f4))/0x8+-parseInt(_0x388d64(0x1ff))/0x9*(-parseInt(_0x388d64(0x1f3))/0xa);if(_0x11f493===_0x1692f7)break;else _0x118b32['push'](_0x118b32['shift']());}catch(_0x2033e7){_0x118b32['push'](_0x118b32['shift']());}}}(_0x1a83,0xde447));const locale={'mcpStatus':{'disconnected':_0x31863d(0x1fc),'connecting':_0x31863d(0x1ec),'connected':_0x31863d(0x1f7),'failed':_0x31863d(0x1d8),'retrying':'MCP\x20再試行中...','unknown':'MCP\x20不明な状態','unauthorized':_0x31863d(0x1fb),'sessionOccupied':_0x31863d(0x1da),'networkError':_0x31863d(0x1d0),'maxRetriesExceeded':_0x31863d(0x1f5),'clickToConnect':_0x31863d(0x1e1),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':'MCP設定','description':_0x31863d(0x1ed),'apiKey':_0x31863d(0x1f9),'apiKeyPlaceholder':_0x31863d(0x1df),'apiKeyHint':_0x31863d(0x1d6),'enableAuth':_0x31863d(0x1d1),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':'MCPクライアント設定','mcpClientConfig':_0x31863d(0x1e7),'configInstructions':_0x31863d(0x1e9),'configStepTitle':'設定手順:','configStep1':_0x31863d(0x1de),'configStep2':_0x31863d(0x1fe),'configStep3':_0x31863d(0x1d4),'sessionId':_0x31863d(0x1d5),'sessionIdDescription':_0x31863d(0x1e4),'authorizationDescription':_0x31863d(0x1d3),'configParameters':_0x31863d(0x1f6),'maxRetries':_0x31863d(0x1dc),'save':_0x31863d(0x1e5),'saving':'保存中...','note1':'設定の変更は直ちに有効になります','note2':_0x31863d(0x1e8),'configSaved':_0x31863d(0x1ef),'configError':_0x31863d(0x1f2),'apiApplyInfo':{'title':'APIキーとは?','description':_0x31863d(0x1f8),'univerAiLabel':'Univer\x20AIコンソール','getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x31863d(0x1eb),'apiKeyTooShort':_0x31863d(0x1ea),'invalidConfig':_0x31863d(0x1d2),'invalidApiKey':_0x31863d(0x1dd)},'connectionStatus':{'disconnected':_0x31863d(0x1d7),'connecting':_0x31863d(0x1f1),'connected':'接続済み','failed':_0x31863d(0x1e0),'retrying':'再試行中...'},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0x31863d(0x1ee),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x31863d(0x1e3)}}};export{locale as default};
1
+ const _0x47d422=_0x2eb2;function _0x47c0(){const _0x80a61e=['設定パラメータ:','177294awaRHX','MCP設定','MCP\x20接続中...','MCP\x20不明な状態','MCP\x20未接続','APIキーは10文字以上である必要があります','無効な設定','無効なAPIキーです。キーが正しいか確認してください','設定の保存に失敗しました','設定を保存','セキュアな接続のために認証を有効にする','MCP\x20接続失敗','クリックしてMCPを設定','MCPクライアントの設定ファイルに設定を追加','424065GRowzk','数秒でAPIキーを取得','61405JJrOVL','MCPを設定してAIでスプレッドシートを操作','保存中...','設定の変更は直ちに有効になります','接続失敗','APIキーとは?','MCP:\x20ネットワークエラー','セッションID','MCP\x20接続済み','21801105jrVlmH','接続中...','MCPクライアントの設定に次の設定を追加してください:','MCPクライアントを再起動して設定を適用','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','Bearerプレフィックス付きのAPIキー。','APIキーはこのブラウザのローカルに保存されます','APIキーを入力してください','認証に失敗しました。APIキーを確認してください','MCP:\x20セッションIDが使用中','設定が正常に保存されました','4001236XIsYFB','接続済み','884429LPEtZP','最大再試行回数','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','MCPクライアント設定','APIキー','MCP:\x20認証されていません','セッションIDが現在使用中です。後でもう一度お試しください','30lqiprl','再試行中...','30cpDdIf','Univer\x20AIコンソール','MCP:\x20最大再試行回数を超過','5024472UpKuPi','APIキーはローカルストレージに安全に保存されます','未接続'];_0x47c0=function(){return _0x80a61e;};return _0x47c0();}(function(_0x482cac,_0x37b88a){const _0x389a7d=_0x2eb2,_0x4de7cf=_0x482cac();while(!![]){try{const _0x416e9a=parseInt(_0x389a7d(0xa6))/0x1+parseInt(_0x389a7d(0x91))/0x2*(parseInt(_0x389a7d(0x98))/0x3)+parseInt(_0x389a7d(0x86))/0x4+parseInt(_0x389a7d(0xa8))/0x5*(parseInt(_0x389a7d(0x8f))/0x6)+parseInt(_0x389a7d(0x88))/0x7+parseInt(_0x389a7d(0x94))/0x8+-parseInt(_0x389a7d(0x7b))/0x9;if(_0x416e9a===_0x37b88a)break;else _0x4de7cf['push'](_0x4de7cf['shift']());}catch(_0x198846){_0x4de7cf['push'](_0x4de7cf['shift']());}}}(_0x47c0,0xabf36));function _0x2eb2(_0x3203ef,_0x3ed1c9){_0x3203ef=_0x3203ef-0x79;const _0x47c09e=_0x47c0();let _0x2eb2f3=_0x47c09e[_0x3203ef];return _0x2eb2f3;}const locale={'mcpStatus':{'disconnected':_0x47d422(0x9c),'connecting':_0x47d422(0x9a),'connected':_0x47d422(0x7a),'failed':_0x47d422(0xa3),'retrying':'MCP\x20再試行中...','unknown':_0x47d422(0x9b),'unauthorized':_0x47d422(0x8d),'sessionOccupied':_0x47d422(0x84),'networkError':_0x47d422(0xae),'maxRetriesExceeded':_0x47d422(0x93),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x47d422(0xa4)},'mcpConfig':{'title':_0x47d422(0x99),'description':_0x47d422(0xa9),'apiKey':_0x47d422(0x8c),'apiKeyPlaceholder':_0x47d422(0x82),'apiKeyHint':_0x47d422(0x81),'enableAuth':'認証を有効にする','enableAuthHint':_0x47d422(0xa2),'connectionInfo':_0x47d422(0x8b),'mcpClientConfig':_0x47d422(0x8b),'configInstructions':_0x47d422(0x7d),'configStepTitle':'設定手順:','configStep1':'以下のJSON設定をコピー','configStep2':_0x47d422(0xa5),'configStep3':_0x47d422(0x7e),'sessionId':_0x47d422(0x79),'sessionIdDescription':_0x47d422(0x8a),'authorizationDescription':_0x47d422(0x80),'configParameters':_0x47d422(0x97),'maxRetries':_0x47d422(0x89),'save':_0x47d422(0xa1),'saving':_0x47d422(0xaa),'note1':_0x47d422(0xab),'note2':_0x47d422(0x95),'configSaved':_0x47d422(0x85),'configError':_0x47d422(0xa0),'apiApplyInfo':{'title':_0x47d422(0xad),'description':_0x47d422(0x7f),'univerAiLabel':_0x47d422(0x92),'getStarted':_0x47d422(0xa7)},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':_0x47d422(0x9d),'invalidConfig':_0x47d422(0x9e),'invalidApiKey':_0x47d422(0x9f)},'connectionStatus':{'disconnected':_0x47d422(0x96),'connecting':_0x47d422(0x7c),'connected':_0x47d422(0x87),'failed':_0x47d422(0xac),'retrying':_0x47d422(0x90)},'connectionError':{'unauthorized':_0x47d422(0x83),'sessionOccupied':_0x47d422(0x8e),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};export{locale as default};
@@ -1 +1 @@
1
- function _0x46be(){const _0x51b942=['설정이\x20성공적으로\x20저장되었습니다','2003276JCMkoS','MCP:\x20인증되지\x20않음','MCP\x20연결\x20끊김','인증\x20실패.\x20API\x20키를\x20확인하세요','세션\x20ID','API\x20키를\x20입력하세요','연결\x20끊김','MCP\x20클라이언트\x20설정','설정\x20저장','연결\x20실패','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','설정\x20매개변수:','MCP\x20연결\x20중...','Bearer\x20접두사가\x20있는\x20API\x20키.','22XPBRWN','MCP\x20연결됨','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP:\x20네트워크\x20오류','63PZUltP','Univer\x20AI\x20콘솔','인증\x20활성화','연결됨','API\x20키는\x2010자\x20이상이어야\x20합니다','재시도\x20중...','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','설정\x20단계:','MCP\x20알\x20수\x20없는\x20상태','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20','444254tFISQo','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','30606110tYTeVn','최대\x20재시도\x20횟수','6KUiyQZ','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','설정\x20저장\x20실패','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','3086174QlvFrW','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','몇\x20초\x20만에\x20API\x20키\x20발급받기','149106tLVkJj','클릭하여\x20MCP\x20연결','799368HWKtxd','MCP\x20설정','API\x20키란\x20무엇인가요?','클릭하여\x20MCP\x20설정','MCP:\x20세션\x20ID\x20사용\x20','연결\x20중...','368120ylvDXT'];_0x46be=function(){return _0x51b942;};return _0x46be();}const _0x5a46d2=_0x419f;(function(_0x5c7325,_0x425493){const _0x37f8b3=_0x419f,_0x477927=_0x5c7325();while(!![]){try{const _0x345339=-parseInt(_0x37f8b3(0xcc))/0x1+parseInt(_0x37f8b3(0xf1))/0x2*(-parseInt(_0x37f8b3(0xd9))/0x3)+-parseInt(_0x37f8b3(0xe3))/0x4+-parseInt(_0x37f8b3(0xe1))/0x5*(parseInt(_0x37f8b3(0xd2))/0x6)+-parseInt(_0x37f8b3(0xd6))/0x7+-parseInt(_0x37f8b3(0xdb))/0x8*(parseInt(_0x37f8b3(0xf5))/0x9)+parseInt(_0x37f8b3(0xd0))/0xa;if(_0x345339===_0x425493)break;else _0x477927['push'](_0x477927['shift']());}catch(_0x5490ad){_0x477927['push'](_0x477927['shift']());}}}(_0x46be,0x56a2f));const locale={'mcpStatus':{'disconnected':_0x5a46d2(0xe5),'connecting':_0x5a46d2(0xef),'connected':_0x5a46d2(0xf2),'failed':'MCP\x20연결\x20실패','retrying':'MCP\x20재시도\x20중...','unknown':_0x5a46d2(0xfd),'unauthorized':_0x5a46d2(0xe4),'sessionOccupied':_0x5a46d2(0xdf),'networkError':_0x5a46d2(0xf4),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0x5a46d2(0xda),'clickToConfigure':_0x5a46d2(0xde)},'mcpConfig':{'title':_0x5a46d2(0xdc),'description':'AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','apiKey':_0x5a46d2(0xcb),'apiKeyPlaceholder':_0x5a46d2(0xe8),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x5a46d2(0xf7),'enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':_0x5a46d2(0xea),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x5a46d2(0xd3),'configStepTitle':_0x5a46d2(0xfc),'configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0x5a46d2(0xce),'configStep3':_0x5a46d2(0xd7),'sessionId':_0x5a46d2(0xe7),'sessionIdDescription':_0x5a46d2(0xcd),'authorizationDescription':_0x5a46d2(0xf0),'configParameters':_0x5a46d2(0xee),'maxRetries':_0x5a46d2(0xd1),'save':_0x5a46d2(0xeb),'saving':'저장\x20중...','note1':_0x5a46d2(0xcf),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':_0x5a46d2(0xe2),'configError':_0x5a46d2(0xd4),'apiApplyInfo':{'title':_0x5a46d2(0xdd),'description':_0x5a46d2(0xd5),'univerAiLabel':_0x5a46d2(0xf6),'getStarted':_0x5a46d2(0xd8)},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':_0x5a46d2(0xf9),'invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':_0x5a46d2(0xfe)},'connectionStatus':{'disconnected':_0x5a46d2(0xe9),'connecting':_0x5a46d2(0xe0),'connected':_0x5a46d2(0xf8),'failed':_0x5a46d2(0xec),'retrying':_0x5a46d2(0xfa)},'connectionError':{'unauthorized':_0x5a46d2(0xe6),'sessionOccupied':_0x5a46d2(0xfb),'networkError':_0x5a46d2(0xed),'maxRetriesExceeded':_0x5a46d2(0xf3)}}};function _0x419f(_0x40b445,_0x5d804e){_0x40b445=_0x40b445-0xcb;const _0x46beb3=_0x46be();let _0x419f38=_0x46beb3[_0x40b445];return _0x419f38;}export{locale as default};
1
+ const _0x5dc42d=_0x298f;(function(_0x35a9ef,_0x365020){const _0x79983=_0x298f,_0x46a944=_0x35a9ef();while(!![]){try{const _0x577483=-parseInt(_0x79983(0x140))/0x1+parseInt(_0x79983(0x14f))/0x2*(-parseInt(_0x79983(0x15f))/0x3)+parseInt(_0x79983(0x14d))/0x4+-parseInt(_0x79983(0x14e))/0x5*(-parseInt(_0x79983(0x13f))/0x6)+-parseInt(_0x79983(0x156))/0x7+parseInt(_0x79983(0x163))/0x8+-parseInt(_0x79983(0x154))/0x9;if(_0x577483===_0x365020)break;else _0x46a944['push'](_0x46a944['shift']());}catch(_0xf5cadf){_0x46a944['push'](_0x46a944['shift']());}}}(_0x39da,0x7e795));function _0x298f(_0x32190c,_0x5ba0f9){_0x32190c=_0x32190c-0x13e;const _0x39dafd=_0x39da();let _0x298fe9=_0x39dafd[_0x32190c];return _0x298fe9;}function _0x39da(){const _0x424e74=['MCP:\x20인증되지\x20않음','설정\x20매개변수:','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','MCP\x20알\x20수\x20없는\x20상태','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','2148524txWBQe','927830YLHmkh','65140vwJmHu','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','설정\x20단계:','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','3342321VbaPmF','인증\x20실패.\x20API\x20키를\x20확인하세요','927521OfcuUF','API\x20키를\x20입력하세요','유효하지\x20않은\x20설정','연결됨','설정\x20저장','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP\x20연결\x20실패','Bearer\x20접두사가\x20있는\x20API\x20키.','재시도\x20중...','3CFeajQ','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','클릭하여\x20MCP\x20설정','API\x20키는\x20필수입니다','2312576ThSyfI','몇\x20초\x20만에\x20API\x20키\x20발급받기','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','MCP\x20설정','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','API\x20키란\x20무엇인가요?','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','MCP\x20연결\x20중...','API\x20키','설정\x20저장\x20실패','아래\x20JSON\x20설정\x20복사','저장\x20중...','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','12iVFHut','142856okZVKi','최대\x20재시도\x20횟수','MCP\x20클라이언트\x20설정','인증\x20활성화','Univer\x20AI\x20콘솔','보안\x20연결을\x20위해\x20인증\x20활성화','설정이\x20성공적으로\x20저장되었습니다','클릭하여\x20MCP\x20연결'];_0x39da=function(){return _0x424e74;};return _0x39da();}const locale={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':_0x5dc42d(0x16a),'connected':'MCP\x20연결됨','failed':_0x5dc42d(0x15c),'retrying':'MCP\x20재시도\x20중...','unknown':_0x5dc42d(0x14b),'unauthorized':_0x5dc42d(0x148),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':'MCP:\x20네트워크\x20오류','maxRetriesExceeded':_0x5dc42d(0x15b),'clickToConnect':_0x5dc42d(0x147),'clickToConfigure':_0x5dc42d(0x161)},'mcpConfig':{'title':_0x5dc42d(0x166),'description':_0x5dc42d(0x16f),'apiKey':_0x5dc42d(0x16b),'apiKeyPlaceholder':_0x5dc42d(0x157),'apiKeyHint':_0x5dc42d(0x167),'enableAuth':_0x5dc42d(0x143),'enableAuthHint':_0x5dc42d(0x145),'connectionInfo':'MCP\x20클라이언트\x20설정','mcpClientConfig':_0x5dc42d(0x142),'configInstructions':_0x5dc42d(0x169),'configStepTitle':_0x5dc42d(0x151),'configStep1':_0x5dc42d(0x16d),'configStep2':_0x5dc42d(0x150),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':'세션\x20ID','sessionIdDescription':_0x5dc42d(0x152),'authorizationDescription':_0x5dc42d(0x15d),'configParameters':_0x5dc42d(0x149),'maxRetries':_0x5dc42d(0x141),'save':_0x5dc42d(0x15a),'saving':_0x5dc42d(0x16e),'note1':_0x5dc42d(0x153),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':_0x5dc42d(0x146),'configError':_0x5dc42d(0x16c),'apiApplyInfo':{'title':_0x5dc42d(0x168),'description':_0x5dc42d(0x165),'univerAiLabel':_0x5dc42d(0x144),'getStarted':_0x5dc42d(0x164)},'validation':{'apiKeyRequired':_0x5dc42d(0x162),'apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':_0x5dc42d(0x158),'invalidApiKey':_0x5dc42d(0x160)},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':'연결\x20중...','connected':_0x5dc42d(0x159),'failed':'연결\x20실패','retrying':_0x5dc42d(0x15e)},'connectionError':{'unauthorized':_0x5dc42d(0x155),'sessionOccupied':_0x5dc42d(0x13e),'networkError':_0x5dc42d(0x14a),'maxRetriesExceeded':_0x5dc42d(0x14c)}}};export{locale as default};