@univerjs-pro/mcp-ui 0.22.1 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 _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
+ const _0x24e2fc=_0x1ffc;(function(_0x48e63d,_0x151f61){const _0x15b1ad=_0x1ffc,_0x56663e=_0x48e63d();while(!![]){try{const _0x18c108=parseInt(_0x15b1ad(0x2e2))/0x1+-parseInt(_0x15b1ad(0x2c9))/0x2*(parseInt(_0x15b1ad(0x251))/0x3)+-parseInt(_0x15b1ad(0x2fc))/0x4*(-parseInt(_0x15b1ad(0x29d))/0x5)+parseInt(_0x15b1ad(0x1f9))/0x6+-parseInt(_0x15b1ad(0x21a))/0x7+parseInt(_0x15b1ad(0x246))/0x8*(parseInt(_0x15b1ad(0x2ed))/0x9)+parseInt(_0x15b1ad(0x2bb))/0xa*(-parseInt(_0x15b1ad(0x1f1))/0xb);if(_0x18c108===_0x151f61)break;else _0x56663e['push'](_0x56663e['shift']());}catch(_0x5114cb){_0x56663e['push'](_0x56663e['shift']());}}}(_0x4b3e,0xa2034));import{CommandType as _0x2f411b,DependentOn as _0x55f634,Disposable as _0x553c10,ICommandService as _0x274b3d,IConfigService as _0x16e4b4,ILocalStorageService as _0x5192e1,ILogService as _0x3720d4,Inject as _0x17ef4b,Injector as _0x498a04,LocaleService as _0x58c1f8,Plugin as _0x210a69,merge as _0x5b05be}from'@univerjs/core';import{MCPConnectionController as _0x3a6502,MCPConnectionError as _0x4f8a1c,MCPConnectionStatus as _0x440b2d,MCP_PLUGIN_CONFIG_KEY as _0x15ca7d,UniverMCPPlugin as _0x2ba359}from'@univerjs-pro/mcp';import{Button as _0x979000,Input as _0x17d910,MessageType as _0x4b0c69,Tooltip as _0x48d592,clsx as _0xe696c7}from'@univerjs/design';import{BuiltInUIPart as _0x5d5a0c,ComponentManager as _0x26c3a3,IDialogService as _0x4d970d,IMenuManagerService as _0x2be40c,IMessageService as _0x34758a,IUIPartsService as _0xbb3625,MenuItemType as _0x547bdc,RibbonStartGroup as _0x66f7f3,connectInjector as _0xd78b8b,useDependency as _0x5d46a2,useObservable as _0x12c36e}from'@univerjs/ui';function _0x4b3e(){const _0x5b0d1e=['univer-text-white','MCP:\x20会话\x20ID\x20已被占用','20meFObI','univer-min-w-0\x20univer-flex-1','连接中...','MCP\x20Retrying...','Invalid\x20configuration','未连接','registerComponent','FAILED','_mcpCoreConfig$','value','mcpConfig.connectionInfo','_uiPartsService','mcpConfig.apiKeyPlaceholder','mcpStatus.clickToConnect','1378348byIxEa','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','string','0.23.0','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-text-green-500','MCP\x20连接中...','配置步骤:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','object','add','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.plus','CONNECTED','warn','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','mcp-ui.command.openConfigPanel','setConfig','网络连接错误,请检查您的网络连接','mcpConfig.apiKey','univer-bg-green-500','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','stringify','Success','1040284WKDTjU','Enable\x20Authentication','RETRYING','push','复制以下\x20JSON\x20配置','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置参数:','univer-space-y-2','getConfig','sessionId$','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','180594POtpkO','MCP:\x20Network\x20Error','univer-text-red-500','MCP_UI_PLUGIN','setItem','show','mcpServerUrl','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP\x20客户端配置','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-sm\x20univer-text-gray-500','Max\x20Retries','重连中...','MCP\x20连接失败','1392460HwYfly','version','配置保存成功','getOwnPropertyDescriptor','DISCONNECTED','@univerjs-pro/mcp-ui','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','has','univer-text-gray-400','univer-space-y-3','_loadStoredApiKey','请输入您的\x20API\x20密钥','mcpConfig.connectionError.unauthorized','errorMessage','_handleConfigSave','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','showDeveloperTools','close','mcpConfig.apiApplyInfo.title','enableAutoConnect','几秒钟内获取您的\x20API\x20密钥','Disconnected','Connection\x20Failed','univer-font-medium','univer-text-xs\x20univer-text-gray-500','_localStorageService','_config$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20密钥','Session\x20ID','\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','packageName','_configService','_initializeMenus','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','subscribeConfigValue$','univer-bg-blue-500','_menuManagerService','univer-space-y-5','univer-text-yellow-500','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','Get\x20your\x20API\x20key\x20in\x20seconds','6846917UWqTgP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-flex\x20univer-items-center\x20univer-gap-2','__setCustomHeaders','MCP:\x20超出最大重试次数','constructor','MCP\x20Unknown\x20Status','mcpConfig.authorizationDescription','3974802zOWACE','label','forEach','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.note2','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','defineProperty','_validateConfig','Retrying...','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_mcpConnectionController','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.connecting','connectionError$','_initStatusComponent','https://mcp.univer.ai/mcp/?univer_session_id=','connectionStatus$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','symbol','https://console.univer.plus','NONE','_commandService','showConfigPanel','mcpConfig.description','toPrimitive','_connectionController','UNAUTHORIZED','getItem','Error','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MAX_RETRIES_EXCEEDED','13783znffYC','prototype','error','mcpStatus.maxRetriesExceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.configStep3','_injector','Connecting...','_loading$','\x20-\x20','_registerComponent','OTHERS','subscribe','mcpStatus.networkError','div','Configuration\x20Steps:','权限验证失败,请检查您的\x20API\x20密钥','next','mcpConfig.validation.apiKeyTooShort','univer-flex\x20univer-gap-3','registerCommand','univer-flex\x20univer-items-center\x20univer-gap-3','SESSION_ID_OCCUPIED','API\x20密钥长度至少需要\x2010\x20位','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','open','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Enter\x20your\x20API\x20key','mcpConfig.configStep1','mcpStatus.connected','mcpConfig.apiKeyHint','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','text','mcpConfig.configParameters','mcpConfig.connectionStatus.failed','univer-flex-1','_apiKey$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_localeService','mcpConfig.connectionStatus.connected','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','已连接','80agbRrY','mcpConfig.connectionStatus.connecting','API\x20密钥无效,请检查密钥是否正确','noopener\x20noreferrer','mcpConfig.note1','配置无效','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','_config','mcpConfig.apiApplyInfo.description','register','3dAVUES','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-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','点击配置\x20MCP','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','length','mcpStatus.retrying','includes','mcpConfig.configSaved','mcpStatus.clickToConfigure','univer-bg-red-500','MCP:\x20未授权','showStatus','mcpConfig.configStepTitle','MCPConfigPanel','bottom','decorate','带有\x20Bearer\x20前缀的\x20API\x20密钥。','保存配置','univer-flex\x20univer-items-start\x20univer-gap-3','What\x20is\x20API\x20Key?','mcpStatus.unknown','您的\x20API\x20密钥将在此浏览器中本地存储','univer.ai','_initializeCommands','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Connected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP:\x20Unauthorized','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','pluginName','Configuration\x20saved\x20successfully','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-text-sm\x20univer-font-medium','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','off','mcpConfig.save','http','univer-flex\x20univer-items-start\x20univer-gap-2','Bearer\x20','trim','点击连接\x20MCP','apiKey','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','https://console.univer.ai','iterator','配置保存失败','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcp.apiKey','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','disposeWithMe','span','MCP\x20Disconnected','_logService','univer-text-blue-600','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','MCP\x20Connected','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.configStep2','function','_dialogService','mcpConfig.connectionError.maxRetriesExceeded','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','<API_KEY>','Saving...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpStatus.failed','mcpConfig.title','_blank','mergeMenu','连接失败','10qfPWQk','mcpStatus.sessionOccupied','MCP\x20已断开','Univer\x20AI\x20控制台','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Authorization:','mcpConfig.validation.invalidConfig','mcpConfig.apiApplyInfo.getStarted','onStarting','COMMAND','_handleConfigure','Enable\x20authentication\x20for\x20secure\x20connections','get','MCP\x20Configuration','MCP:\x20网络错误','BUTTON','NETWORK_ERROR','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','button','_initConfigSync','univer-bg-gray-500','会话ID','isValid','_createConfigPanelComponent','mcpConfig.saving','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','CONNECTING','_componentManager'];_0x4b3e=function(){return _0x5b0d1e;};return _0x4b3e();}import{BehaviorSubject as _0x4bb220}from'rxjs';function _0x1ffc(_0x38081f,_0x257c3c){_0x38081f=_0x38081f-0x1ed;const _0x4b3e5c=_0x4b3e();let _0x1ffc6a=_0x4b3e5c[_0x38081f];return _0x1ffc6a;}import{CheckMarkIcon as _0x4ed399,CloseIcon as _0x161a36,HelpIcon as _0x347fde,OffLineIcon as _0x619373,OnLineIcon as _0x2e186b}from'@univerjs/icons';import{useCallback as _0x526f6e,useState as _0x39d669}from'react';import{jsx as _0x19478f,jsxs as _0x4ad251}from'react/jsx-runtime';import{ISocketService as _0x184860,WebSocketService as _0x3859a6}from'@univerjs/network';function z(_0x5ec482){const _0x3525a0=_0x1ffc;var _0x38271d,_0x1168d0;let {mcpCoreConfig:_0x5d6c31,onSave:_0x39585b,loading:_0x32c72a=!0x1,config:_0x3a5ba1,connectionStatus$:_0x2dccf7,connectionError$:_0x39ef50,currentApiKey$:_0x2361b0,currentSessionId$:_0x107f2f}=_0x5ec482,_0x271951=_0x5d46a2(_0x58c1f8),_0x4be279=_0x12c36e(_0x2dccf7,_0x440b2d[_0x3525a0(0x300)]),_0x3a42ac=_0x12c36e(_0x39ef50,_0x4f8a1c[_0x3525a0(0x20d)]),_0x321029=_0x12c36e(_0x107f2f,''),[_0x5960a9,_0x2ccefb]=_0x39d669(_0x12c36e(_0x2361b0,'')||''),_0x5cfe5d=_0x3a5ba1[_0x3525a0(0x30e)]&&_0x5d6c31[_0x3525a0(0x2f3)]&&(_0x5d6c31['mcpServerUrl']['includes'](_0x3525a0(0x2d5))||_0x5d6c31['mcpServerUrl'][_0x3525a0(0x259)](_0x3525a0(0x269))),_0x4765f2=(_0x38271d=_0x5d6c31[_0x3525a0(0x2f3)])==null?void 0x0:_0x38271d['includes'](_0x3525a0(0x2d5)),_0x5f2368=(_0x1168d0=_0x5d6c31['mcpServerUrl'])==null?void 0x0:_0x1168d0[_0x3525a0(0x259)]('univer.ai'),_0x1b17d3=_0x4765f2?_0x3525a0(0x20c):_0x3525a0(0x27e),_0x529be5=_0x3a5ba1[_0x3525a0(0x30e)]&&(_0x4765f2||_0x5f2368),[_0x4e266c,_0x27fd24]=_0x39d669(!_0x5960a9[_0x3525a0(0x27a)]()),_0x2bb093=(_0x1617fd,_0x5012fe)=>{const _0x51ea61=_0x3525a0;if(_0x5012fe===_0x4f8a1c[_0x51ea61(0x213)])return _0x51ea61(0x30d);switch(_0x1617fd){case _0x440b2d[_0x51ea61(0x2d6)]:return _0x51ea61(0x2f4);case _0x440b2d['CONNECTING']:case _0x440b2d['RETRYING']:return _0x51ea61(0x26d);case _0x440b2d[_0x51ea61(0x2c2)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x51ea61(0x320);}},_0x25d1b3=(_0x3485e4,_0x3747b6)=>{const _0x5f1a06=_0x3525a0;if(_0x3747b6===_0x4f8a1c['UNAUTHORIZED'])return _0x5f1a06(0x25c);switch(_0x3485e4){case _0x440b2d['CONNECTED']:return _0x5f1a06(0x2de);case _0x440b2d['CONNECTING']:case _0x440b2d['RETRYING']:return _0x5f1a06(0x322);case _0x440b2d['FAILED']:return _0x5f1a06(0x25c);default:return _0x5f1a06(0x2b1);}},_0x128034=_0x489383=>{const _0x3aa6f5=_0x3525a0;switch(_0x489383){case _0x440b2d[_0x3aa6f5(0x2d6)]:return _0x271951['t'](_0x3aa6f5(0x243));case _0x440b2d[_0x3aa6f5(0x2b7)]:return _0x271951['t'](_0x3aa6f5(0x247));case _0x440b2d[_0x3aa6f5(0x2c2)]:return _0x271951['t'](_0x3aa6f5(0x23e));case _0x440b2d[_0x3aa6f5(0x2e4)]:return _0x271951['t']('mcpConfig.connectionStatus.retrying');default:return _0x271951['t']('mcpConfig.connectionStatus.disconnected');}},_0x57ab4b=_0x532ae2=>{const _0x68f161=_0x3525a0;switch(_0x532ae2){case _0x4f8a1c[_0x68f161(0x213)]:return _0x271951['t'](_0x68f161(0x30a));case _0x4f8a1c['SESSION_ID_OCCUPIED']:return _0x271951['t']('mcpConfig.connectionError.sessionOccupied');case _0x4f8a1c[_0x68f161(0x2ad)]:return _0x271951['t']('mcpConfig.connectionError.networkError');case _0x4f8a1c[_0x68f161(0x219)]:return _0x271951['t'](_0x68f161(0x291));default:return'';}},_0x3b6f9b=_0x526f6e(()=>{const _0x41a729=_0x3525a0;_0x39585b({..._0x5d6c31,'apiKey':_0x5960a9[_0x41a729(0x27a)](),'enableAuth':!0x0});},[_0x5d6c31,_0x5960a9,!0x0,_0x39585b]),_0x4ce68d=_0x5960a9[_0x3525a0(0x27a)]()['length']>0x0;return _0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x294),'children':[_0x19478f('div',{'className':_0x3525a0(0x2ca),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x22f),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2ae),'children':_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x2b9),'children':'⚙'})}),_0x19478f(_0x3525a0(0x228),{'children':_0x19478f('p',{'className':_0x3525a0(0x2f8),'children':_0x271951['t'](_0x3525a0(0x210))})})]})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2d4),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0xe696c7(_0x3525a0(0x1fe),_0x2bb093(_0x4be279,_0x3a42ac)),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x1f3),'children':[_0x19478f('div',{'className':_0xe696c7('univer-size-2\x20univer-rounded-full',_0x25d1b3(_0x4be279,_0x3a42ac))}),_0x19478f('span',{'className':_0x3525a0(0x273),'children':_0x128034(_0x4be279)})]})}),_0x3a42ac!==_0x4f8a1c[_0x3525a0(0x20d)]&&(_0x4be279===_0x440b2d[_0x3525a0(0x2c2)]||_0x3a42ac===_0x4f8a1c[_0x3525a0(0x213)])&&_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2ec),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x278),'children':[_0x19478f(_0x3525a0(0x286),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x19478f('p',{'className':_0x3525a0(0x241),'children':_0x57ab4b(_0x3a42ac)})]})})]}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x319),'children':_0x4ad251('div',{'className':_0x3525a0(0x1ed),'children':[_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2e9),'children':[_0x4ad251(_0x3525a0(0x1fa),{'className':_0x3525a0(0x26b),'children':[_0x19478f(_0x3525a0(0x286),{'children':'🔑'}),'\x20',_0x271951['t'](_0x3525a0(0x2dd)),_0x19478f('span',{'className':'univer-text-red-500','children':'*'}),_0x5cfe5d&&_0x19478f('a',{'className':_0x3525a0(0x2df),'title':_0x271951['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x27fd24(!0x0),'children':_0x19478f(_0x347fde,{})})]}),_0x19478f(_0x17d910,{'type':_0x3525a0(0x23c),'placeholder':_0x271951['t'](_0x3525a0(0x2c7)),'value':_0x5960a9,'disabled':_0x32c72a,'autoComplete':_0x3525a0(0x275),'onChange':_0x2ccefb}),_0x19478f('p',{'className':_0x3525a0(0x316),'children':_0x271951['t'](_0x3525a0(0x238))})]}),_0x5cfe5d&&_0x4e266c&&_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x254),'children':[_0x19478f('a',{'className':_0x3525a0(0x1ef),'role':'button','onClick':()=>_0x27fd24(!0x1),'children':_0x19478f(_0x161a36,{'className':'univer-size-4'})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x24d),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x256),'children':_0x19478f('span',{'className':_0x3525a0(0x289),'children':'🚀'})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x23f),'children':[_0x19478f('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x271951['t'](_0x3525a0(0x310))}),_0x19478f('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x271951['t'](_0x3525a0(0x24f))}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x297),'children':_0x529be5&&_0x4ad251('a',{'className':_0x3525a0(0x253),'href':_0x1b17d3,'target':_0x3525a0(0x29a),'rel':_0x3525a0(0x249),'children':[_0x19478f(_0x3525a0(0x286),{'children':'🤖'}),_0x271951['t'](_0x3525a0(0x2f7)),_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x306),'children':'↗'})]})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2b6),'children':['✨','\x20',_0x271951['t'](_0x3525a0(0x2a4))]})]})]})]}),_0x3a5ba1[_0x3525a0(0x30e)]&&_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x27d),'children':[_0x4ad251('h4',{'className':_0x3525a0(0x23b),'children':[_0x19478f('span',{'children':'🔗'}),'\x20',_0x271951['t'](_0x3525a0(0x2c5))]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-4','children':[_0x4ad251('div',{'className':_0x3525a0(0x307),'children':[_0x19478f('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x271951['t']('mcpConfig.configInstructions')}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-2','children':[_0x19478f('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x271951['t'](_0x3525a0(0x25f))}),_0x4ad251('div',{'className':_0x3525a0(0x2e7),'children':[_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x23a),'children':'1'}),_0x271951['t'](_0x3525a0(0x236))]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x23a),'children':'2'}),_0x271951['t'](_0x3525a0(0x28e))]}),_0x4ad251('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f('span',{'className':_0x3525a0(0x23a),'children':'3'}),_0x271951['t'](_0x3525a0(0x21f))]})]})]})]}),_0x4ad251('div',{'className':_0x3525a0(0x2e9),'children':[_0x19478f(_0x3525a0(0x228),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3525a0(0x2aa)}),_0x19478f('div',{'className':_0x3525a0(0x302),'children':_0x19478f('pre',{'className':_0x3525a0(0x204),'children':JSON[_0x3525a0(0x2e0)]({'mcpServers':{'univer':{'url':_0x3525a0(0x208)+(_0x321029||'<SESSION_ID>'),'type':_0x3525a0(0x277),'headers':{'Authorization':_0x3525a0(0x279)+(_0x5960a9||_0x3525a0(0x295))}}}},null,0x2)})})]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-3','children':[_0x19478f(_0x3525a0(0x228),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x271951['t'](_0x3525a0(0x23d))}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-2','children':[_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x19478f('div',{'className':_0x3525a0(0x2f6)}),_0x4ad251('div',{'className':_0x3525a0(0x2bc),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2a1),'children':'univer_session_id:'}),_0x19478f('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x271951['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x265),'children':[_0x19478f('div',{'className':_0x3525a0(0x2f6)}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2bc),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2a1),'children':_0x3525a0(0x2a2)}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x316),'children':_0x271951['t'](_0x3525a0(0x1f8))})]})]})]})]})]})]}),_0x19478f(_0x979000,{'onClick':_0x3b6f9b,'disabled':!_0x4ce68d||_0x32c72a,'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':_0x32c72a?_0x4ad251(_0x3525a0(0x286),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f('span',{'children':'⟲'}),_0x271951['t'](_0x3525a0(0x2b5))]}):_0x4ad251(_0x3525a0(0x286),{'className':_0x3525a0(0x1f3),'children':[_0x19478f(_0x4ed399,{}),_0x271951['t'](_0x3525a0(0x276))]})}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x202),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x22d),'children':[_0x19478f('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x4ad251('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x315),'children':'Configuration\x20Notes:'}),_0x4ad251(_0x3525a0(0x228),{'children':['•',_0x271951['t'](_0x3525a0(0x24a))]}),_0x4ad251(_0x3525a0(0x228),{'children':['•',_0x271951['t'](_0x3525a0(0x1fd))]})]})]})})]})})]});}const B='mcp-ui.config';Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x98d677){'@babel/helpers - typeof';const _0x244465=_0x1ffc;return H=typeof Symbol==_0x244465(0x28f)&&typeof Symbol[_0x244465(0x27f)]==_0x244465(0x20b)?function(_0xc6dabe){return typeof _0xc6dabe;}:function(_0x259a3f){const _0x26b283=_0x244465;return _0x259a3f&&typeof Symbol==_0x26b283(0x28f)&&_0x259a3f[_0x26b283(0x1f6)]===Symbol&&_0x259a3f!==Symbol[_0x26b283(0x21b)]?_0x26b283(0x20b):typeof _0x259a3f;},H(_0x98d677);}function oe(_0x3d033d,_0x4b508a){const _0xa3501=_0x1ffc;if(H(_0x3d033d)!=_0xa3501(0x2d2)||!_0x3d033d)return _0x3d033d;var _0x2613a2=_0x3d033d[Symbol[_0xa3501(0x211)]];if(_0x2613a2!==void 0x0){var _0x396eda=_0x2613a2['call'](_0x3d033d,_0x4b508a||'default');if(H(_0x396eda)!=_0xa3501(0x2d2))return _0x396eda;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4b508a===_0xa3501(0x2cb)?String:Number)(_0x3d033d);}function se(_0x23e8f1){const _0x571051=_0x1ffc;var _0xf3e5f3=oe(_0x23e8f1,_0x571051(0x2cb));return H(_0xf3e5f3)==_0x571051(0x20b)?_0xf3e5f3:_0xf3e5f3+'';}function U(_0x346a19,_0x4b0ba3,_0x3cda37){return(_0x4b0ba3=se(_0x4b0ba3))in _0x346a19?Object['defineProperty'](_0x346a19,_0x4b0ba3,{'value':_0x3cda37,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x346a19[_0x4b0ba3]=_0x3cda37,_0x346a19;}function W(_0x3c463a,_0x48436b){return function(_0x589983,_0x27aa5e){_0x48436b(_0x589983,_0x27aa5e,_0x3c463a);};}function G(_0x5bcc7d,_0x18a431,_0x30eb75,_0x1c21ba){const _0x350520=_0x1ffc;var _0x11f209=arguments[_0x350520(0x257)],_0x5859ff=_0x11f209<0x3?_0x18a431:_0x1c21ba===null?_0x1c21ba=Object[_0x350520(0x2ff)](_0x18a431,_0x30eb75):_0x1c21ba,_0x232a1d;if(typeof Reflect==_0x350520(0x2d2)&&typeof Reflect['decorate']=='function')_0x5859ff=Reflect[_0x350520(0x262)](_0x5bcc7d,_0x18a431,_0x30eb75,_0x1c21ba);else{for(var _0x1d6b85=_0x5bcc7d[_0x350520(0x257)]-0x1;_0x1d6b85>=0x0;_0x1d6b85--)(_0x232a1d=_0x5bcc7d[_0x1d6b85])&&(_0x5859ff=(_0x11f209<0x3?_0x232a1d(_0x5859ff):_0x11f209>0x3?_0x232a1d(_0x18a431,_0x30eb75,_0x5859ff):_0x232a1d(_0x18a431,_0x30eb75))||_0x5859ff);}return _0x11f209>0x3&&_0x5859ff&&Object[_0x350520(0x1ff)](_0x18a431,_0x30eb75,_0x5859ff),_0x5859ff;}const K=_0x24e2fc(0x283),q='mcp-config-dialog';let J=class extends _0x553c10{constructor(_0x5e351e,_0x3ab646,_0x42c83e,_0x5e37ec,_0x2767ba,_0x26f814,_0x1c46de,_0x2cbd8c,_0x58387f,_0x358328){const _0x5163a=_0x24e2fc;super(),this[_0x5163a(0x220)]=_0x5e351e,this[_0x5163a(0x2c6)]=_0x3ab646,this[_0x5163a(0x31e)]=_0x42c83e,this[_0x5163a(0x317)]=_0x5e37ec,this[_0x5163a(0x290)]=_0x2767ba,this['_messageService']=_0x26f814,this[_0x5163a(0x2b8)]=_0x1c46de,this[_0x5163a(0x242)]=_0x2cbd8c,this['_logService']=_0x58387f,this[_0x5163a(0x203)]=_0x358328,U(this,_0x5163a(0x222),new _0x4bb220(!0x1)),U(this,'_mcpCoreConfig$',new _0x4bb220({})),U(this,_0x5163a(0x318),new _0x4bb220({})),U(this,_0x5163a(0x240),new _0x4bb220('')),U(this,_0x5163a(0x30c),async _0xd8700f=>{const _0x2f24cf=_0x5163a;this['_loading$'][_0x2f24cf(0x22b)](!0x0);try{var _0x266908,_0x43005a;let _0x1f8280=await this[_0x2f24cf(0x200)](_0xd8700f);if(!_0x1f8280['isValid']){this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x215)],'content':_0x1f8280[_0x2f24cf(0x30b)]||this[_0x2f24cf(0x242)]['t'](_0x2f24cf(0x2a3))});return;}_0xd8700f[_0x2f24cf(0x27c)]?await this[_0x2f24cf(0x317)][_0x2f24cf(0x2f1)](K,_0xd8700f[_0x2f24cf(0x27c)][_0x2f24cf(0x27a)]()):await this[_0x2f24cf(0x317)]['removeItem'](K),this[_0x2f24cf(0x240)]['next'](((_0x266908=_0xd8700f[_0x2f24cf(0x27c)])==null?void 0x0:_0x266908['trim']())||''),this[_0x2f24cf(0x203)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x43005a=_0xd8700f[_0x2f24cf(0x27c)])==null?void 0x0:_0x43005a[_0x2f24cf(0x27a)]())}),this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x2e1)],'content':this[_0x2f24cf(0x242)]['t'](_0x2f24cf(0x25a))}),setTimeout(()=>{const _0x223e40=_0x2f24cf;this['_dialogService'][_0x223e40(0x30f)](q);},0x320);}catch(_0x2b2c71){this[_0x2f24cf(0x288)][_0x2f24cf(0x21c)](_0x2f24cf(0x274),_0x2b2c71),this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x215)],'content':this[_0x2f24cf(0x242)]['t']('mcpConfig.configError')});}finally{this[_0x2f24cf(0x222)][_0x2f24cf(0x22b)](!0x1);}}),this[_0x5163a(0x2b0)](),this[_0x5163a(0x308)](),this[_0x5163a(0x224)]();}[_0x24e2fc(0x20f)](){const _0x218016=_0x24e2fc;let _0x1a9c76=this[_0x218016(0x31e)][_0x218016(0x2ea)](B);_0x1a9c76!=null&&_0x1a9c76[_0x218016(0x30e)]&&this['_dialogService'][_0x218016(0x233)]({'id':q,'title':{'title':this[_0x218016(0x242)]['t'](_0x218016(0x299))},'children':{'label':_0x218016(0x260)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4b7762=_0x218016;this[_0x4b7762(0x290)][_0x4b7762(0x30f)](q);}});}['getCurrentConfig'](){const _0x50ac9c=_0x24e2fc;return this[_0x50ac9c(0x2c3)][_0x50ac9c(0x2c4)];}[_0x24e2fc(0x224)](){const _0x593179=_0x24e2fc;this['disposeWithMe'](this['_componentManager'][_0x593179(0x250)](_0x593179(0x260),this[_0x593179(0x2b4)]()));}['_createConfigPanelComponent'](){const _0x57a3ce=_0x24e2fc;return _0xd78b8b(()=>{const _0x395199=_0x1ffc;var _0x4c64d6,_0x2ba410,_0x36667b;return _0x19478f(z,{'config':this[_0x395199(0x318)][_0x395199(0x2c4)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x395199(0x2c4)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x395199(0x30c)],'loading':this[_0x395199(0x222)][_0x395199(0x2c4)],'connectionStatus$':(_0x4c64d6=this[_0x395199(0x203)])==null?void 0x0:_0x4c64d6[_0x395199(0x209)],'connectionError$':(_0x2ba410=this['_mcpConnectionController'])==null?void 0x0:_0x2ba410[_0x395199(0x206)],'currentSessionId$':(_0x36667b=this[_0x395199(0x203)])==null?void 0x0:_0x36667b[_0x395199(0x2eb)]});},this[_0x57a3ce(0x220)]);}[_0x24e2fc(0x2b0)](){const _0x44ba0c=_0x24e2fc;this['disposeWithMe'](this[_0x44ba0c(0x31e)][_0x44ba0c(0x321)](_0x15ca7d)[_0x44ba0c(0x226)](_0x5671c5=>{const _0x3e7aa3=_0x44ba0c;this[_0x3e7aa3(0x2c3)]['next'](_0x5671c5||{});}));let _0x423898=this[_0x44ba0c(0x31e)][_0x44ba0c(0x2ea)](_0x15ca7d);this['_mcpCoreConfig$'][_0x44ba0c(0x22b)](_0x423898||{}),this[_0x44ba0c(0x285)](this['_configService'][_0x44ba0c(0x321)](B)[_0x44ba0c(0x226)](_0x102967=>{const _0x3b49d0=_0x44ba0c;this[_0x3b49d0(0x318)]['next'](_0x102967||{});}));let _0x109ac2=this[_0x44ba0c(0x31e)][_0x44ba0c(0x2ea)](B);this[_0x44ba0c(0x318)][_0x44ba0c(0x22b)](_0x109ac2||{});}async[_0x24e2fc(0x308)](){const _0x1e972b=_0x24e2fc;let _0x407bb5=this['_configService']['getConfig'](B);if(!(_0x407bb5!=null&&_0x407bb5['showDeveloperTools']))return;let _0x3896ef=await this[_0x1e972b(0x317)][_0x1e972b(0x214)](K);_0x3896ef&&(this['_mcpConnectionController'][_0x1e972b(0x1f4)]({'Authorization':'Bearer\x20'+_0x3896ef}),this['_apiKey$'][_0x1e972b(0x22b)](_0x3896ef));}async[_0x24e2fc(0x200)](_0x6729e7){const _0x2e975d=_0x24e2fc;if(!_0x6729e7['apiKey']||_0x6729e7[_0x2e975d(0x27c)][_0x2e975d(0x27a)]()[_0x2e975d(0x257)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2e975d(0x242)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x6729e7['apiKey'][_0x2e975d(0x27a)]()[_0x2e975d(0x257)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2e975d(0x22c))};try{let _0x2edefd=await this[_0x2e975d(0x220)][_0x2e975d(0x2a9)](_0x3a6502)['validateApiKey'](_0x6729e7['apiKey'][_0x2e975d(0x27a)]());return _0x2edefd[_0x2e975d(0x2b3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2edefd[_0x2e975d(0x21c)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x261952){return console[_0x2e975d(0x2d7)](_0x2e975d(0x284),_0x261952),{'isValid':!0x0};}}};J=G([W(0x0,_0x17ef4b(_0x498a04)),W(0x1,_0xbb3625),W(0x2,_0x16e4b4),W(0x3,_0x5192e1),W(0x4,_0x4d970d),W(0x5,_0x34758a),W(0x6,_0x17ef4b(_0x26c3a3)),W(0x7,_0x17ef4b(_0x58c1f8)),W(0x8,_0x3720d4),W(0x9,_0x17ef4b(_0x3a6502))],J);const Y={'id':_0x24e2fc(0x2da),'type':_0x2f411b[_0x24e2fc(0x2a6)],'handler':async(_0x3cb36c,_0x176c77)=>(_0x3cb36c[_0x24e2fc(0x2a9)](J)[_0x24e2fc(0x20f)](),!0x0)};function X(_0x471adf,_0x2a2665){const _0x5c23c0=_0x24e2fc;switch(_0x471adf){case _0x440b2d[_0x5c23c0(0x300)]:return'mcpStatus.disconnected';case _0x440b2d[_0x5c23c0(0x2b7)]:return _0x5c23c0(0x205);case _0x440b2d[_0x5c23c0(0x2d6)]:return _0x5c23c0(0x237);case _0x440b2d[_0x5c23c0(0x2c2)]:switch(_0x2a2665){case _0x4f8a1c[_0x5c23c0(0x213)]:return'mcpStatus.unauthorized';case _0x4f8a1c[_0x5c23c0(0x230)]:return _0x5c23c0(0x29e);case _0x4f8a1c['NETWORK_ERROR']:return _0x5c23c0(0x227);case _0x4f8a1c[_0x5c23c0(0x219)]:return _0x5c23c0(0x21d);default:return _0x5c23c0(0x298);}case _0x440b2d[_0x5c23c0(0x2e4)]:return _0x5c23c0(0x258);default:return _0x5c23c0(0x267);}}function ce(_0x376bdb,_0x2768d3,_0x5d850c,_0x33f1de=!0x0){const _0x87c606=_0x24e2fc;let _0x262535=X(_0x376bdb,_0x2768d3),_0x357eaa=_0x5d850c['t'](_0x262535);return _0x33f1de?_0x376bdb===_0x440b2d[_0x87c606(0x300)]&&_0x2768d3===_0x4f8a1c[_0x87c606(0x213)]?_0x357eaa+_0x87c606(0x223)+_0x5d850c['t'](_0x87c606(0x25b)):_0x376bdb===_0x440b2d['CONNECTED']?''+_0x357eaa:_0x376bdb===_0x440b2d[_0x87c606(0x300)]||_0x376bdb===_0x440b2d[_0x87c606(0x2c2)]?_0x357eaa+'\x20-\x20'+_0x5d850c['t'](_0x87c606(0x2c8)):_0x357eaa:_0x357eaa;}function le(_0x179861){const _0x981f21=_0x24e2fc;switch(_0x179861){case _0x440b2d[_0x981f21(0x2d6)]:return _0x981f21(0x2ce);case _0x440b2d[_0x981f21(0x2b7)]:case _0x440b2d[_0x981f21(0x2e4)]:return _0x981f21(0x1ee);case _0x440b2d[_0x981f21(0x2c2)]:case _0x440b2d[_0x981f21(0x300)]:return _0x981f21(0x2ef);default:return'univer-text-gray-500';}}function ue(_0x4665d1){const _0x3a3707=_0x24e2fc;let {status$:_0x875bc4,error$:_0x2caaf8,onConfigure:_0xc225ce,showClickable:_0x154139=!0x0}=_0x4665d1,_0x6f8728=_0x12c36e(_0x875bc4,_0x440b2d[_0x3a3707(0x300)]),_0x443139=_0x12c36e(_0x2caaf8,_0x4f8a1c['NONE']),_0x16edc5=_0x5d46a2(_0x58c1f8),_0x4f148b=_0x6f8728===_0x440b2d[_0x3a3707(0x2d6)];_0x6f8728===_0x440b2d[_0x3a3707(0x2b7)]||_0x440b2d[_0x3a3707(0x2e4)];let _0xc000a0=_0x16edc5['t'](X(_0x6f8728,_0x443139)),_0x3a2a03=ce(_0x6f8728,_0x443139,_0x16edc5,_0x154139),_0xccad93=le(_0x6f8728),_0x5e5561=_0x19478f(_0x4f148b?_0x2e186b:_0x619373,{}),_0x237bcf=_0x526f6e(()=>{_0x154139&&_0xc225ce&&_0xc225ce();},[_0x154139,_0xc225ce]);function _0x2d0590(){const _0x69582e=_0x3a3707;return _0x4ad251('div',{'className':_0xe696c7('univer-flex\x20univer-items-center',_0x154139&&_0xc225ce&&_0x69582e(0x31c)),'role':_0x69582e(0x2af),'onClick':_0x154139&&_0xc225ce?_0x237bcf:void 0x0,'children':[_0x19478f('div',{'className':_0xe696c7('univer-mr-2\x20univer-flex\x20univer-text-xl',_0xccad93),'children':_0x5e5561}),_0x19478f('div',{'className':_0x69582e(0x244),'children':_0xc000a0})]});}return _0x19478f(_0x48d592,{'title':_0x3a2a03,'placement':_0x3a3707(0x261),'children':_0x2d0590()});}let Z=class extends _0x553c10{constructor(_0x45c99d,_0x3f9566,_0x40ce21,_0x40c76f){const _0x411aea=_0x24e2fc;super(),this[_0x411aea(0x220)]=_0x45c99d,this[_0x411aea(0x212)]=_0x3f9566,this['_uiPartsService']=_0x40ce21,this[_0x411aea(0x31e)]=_0x40c76f,this['_initAutoConnect'](),this[_0x411aea(0x207)]();}['_initAutoConnect'](){const _0x272300=_0x24e2fc;let _0x2300fd=this[_0x272300(0x31e)]['getConfig'](B);_0x2300fd!=null&&_0x2300fd[_0x272300(0x30e)]&&(this[_0x272300(0x212)][_0x272300(0x311)]=!0x1);}[_0x24e2fc(0x207)](){const _0x1cd8d9=_0x24e2fc;let _0x122744=this[_0x1cd8d9(0x31e)][_0x1cd8d9(0x2ea)](B);(_0x122744==null?void 0x0:_0x122744[_0x1cd8d9(0x25e)])!==!0x1&&this[_0x1cd8d9(0x285)](this[_0x1cd8d9(0x2c6)][_0x1cd8d9(0x2c1)](_0x5d5a0c['HEADER_MENU'],()=>{const _0x13aa93=_0x1cd8d9;var _0x28c411;return _0xd78b8b(de({'status$':this[_0x13aa93(0x212)]['connectionStatus$'],'error$':this[_0x13aa93(0x212)][_0x13aa93(0x206)],'onConfigure':()=>this[_0x13aa93(0x2a7)](),'showClickable':(_0x28c411=_0x122744==null?void 0x0:_0x122744['showDeveloperTools'])==null?!0x1:_0x28c411}),this[_0x13aa93(0x220)]);}));}[_0x24e2fc(0x2a7)](){const _0x533463=_0x24e2fc;this[_0x533463(0x220)]['get'](J)[_0x533463(0x20f)]();}};Z=G([W(0x0,_0x17ef4b(_0x498a04)),W(0x1,_0x17ef4b(_0x3a6502)),W(0x2,_0xbb3625),W(0x3,_0x16e4b4)],Z);function de(_0x2f20df){let {status$:_0x3461cc,error$:_0xbcf148,onConfigure:_0x53f021,showClickable:_0x1720b5}=_0x2f20df;return function(){return _0x19478f(ue,{'status$':_0x3461cc,'error$':_0xbcf148,'onConfigure':_0x53f021,'showClickable':_0x1720b5});};}function fe(_0x143afe){const _0x3c34d5=_0x24e2fc;return{'id':Y['id'],'type':_0x547bdc[_0x3c34d5(0x2ac)],'icon':'MenuIcon','title':_0x3c34d5(0x299),'tooltip':_0x3c34d5(0x299)};}const pe={[_0x66f7f3[_0x24e2fc(0x225)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x553c10{constructor(_0x1e18a5,_0x444104){const _0x20c5e9=_0x24e2fc;super(),this[_0x20c5e9(0x20e)]=_0x1e18a5,this[_0x20c5e9(0x323)]=_0x444104,this[_0x20c5e9(0x26a)](),this[_0x20c5e9(0x31f)]();}[_0x24e2fc(0x26a)](){const _0x2670cd=_0x24e2fc;[Y][_0x2670cd(0x1fb)](_0x38abc6=>{const _0x444362=_0x2670cd;this[_0x444362(0x285)](this[_0x444362(0x20e)][_0x444362(0x22e)](_0x38abc6));});}['_initializeMenus'](){const _0x1873b1=_0x24e2fc;this[_0x1873b1(0x323)][_0x1873b1(0x29b)](pe);}};Q=G([W(0x0,_0x274b3d),W(0x1,_0x2be40c)],Q);const me={'mcpStatus':{'disconnected':_0x24e2fc(0x287),'connecting':_0x24e2fc(0x28b),'connected':_0x24e2fc(0x28c),'failed':'MCP\x20Connection\x20Failed','retrying':_0x24e2fc(0x2be),'unknown':_0x24e2fc(0x1f7),'unauthorized':_0x24e2fc(0x26e),'sessionOccupied':_0x24e2fc(0x292),'networkError':_0x24e2fc(0x2ee),'maxRetriesExceeded':_0x24e2fc(0x28d),'clickToConnect':_0x24e2fc(0x28a),'clickToConfigure':_0x24e2fc(0x217)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x24e2fc(0x24c),'apiKey':_0x24e2fc(0x281),'apiKeyPlaceholder':_0x24e2fc(0x235),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x24e2fc(0x2e3),'enableAuthHint':_0x24e2fc(0x2a8),'connectionInfo':_0x24e2fc(0x303),'mcpClientConfig':_0x24e2fc(0x303),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x24e2fc(0x229),'configStep1':_0x24e2fc(0x2d9),'configStep2':_0x24e2fc(0x282),'configStep3':_0x24e2fc(0x2cd),'sessionId':_0x24e2fc(0x31b),'sessionIdDescription':_0x24e2fc(0x218),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x24e2fc(0x2f9),'save':'Save\x20Configuration','saving':_0x24e2fc(0x296),'note1':_0x24e2fc(0x2d1),'note2':_0x24e2fc(0x252),'configSaved':_0x24e2fc(0x271),'configError':_0x24e2fc(0x304),'apiApplyInfo':{'title':_0x24e2fc(0x266),'description':_0x24e2fc(0x1f2),'univerAiLabel':_0x24e2fc(0x216),'getStarted':_0x24e2fc(0x1f0)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x24e2fc(0x2d8),'invalidConfig':_0x24e2fc(0x2bf),'invalidApiKey':_0x24e2fc(0x293)},'connectionStatus':{'disconnected':_0x24e2fc(0x313),'connecting':_0x24e2fc(0x221),'connected':_0x24e2fc(0x26c),'failed':_0x24e2fc(0x314),'retrying':_0x24e2fc(0x201)},'connectionError':{'unauthorized':_0x24e2fc(0x232),'sessionOccupied':_0x24e2fc(0x21e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x24e2fc(0x26f)}}},he={'mcpStatus':{'disconnected':_0x24e2fc(0x29f),'connecting':_0x24e2fc(0x2cf),'connected':'MCP\x20已连接','failed':_0x24e2fc(0x2fb),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x24e2fc(0x25d),'sessionOccupied':_0x24e2fc(0x2ba),'networkError':_0x24e2fc(0x2ab),'maxRetriesExceeded':_0x24e2fc(0x1f5),'clickToConnect':_0x24e2fc(0x27b),'clickToConfigure':_0x24e2fc(0x255)},'mcpConfig':{'title':'MCP\x20配置','description':_0x24e2fc(0x1fc),'apiKey':_0x24e2fc(0x31a),'apiKeyPlaceholder':_0x24e2fc(0x309),'apiKeyHint':_0x24e2fc(0x268),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x24e2fc(0x2f5),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x24e2fc(0x2d0),'configStep1':_0x24e2fc(0x2e6),'configStep2':_0x24e2fc(0x272),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x24e2fc(0x2b2),'sessionIdDescription':_0x24e2fc(0x234),'authorizationDescription':_0x24e2fc(0x263),'configParameters':_0x24e2fc(0x2e8),'maxRetries':'最大重试次数','save':_0x24e2fc(0x264),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x24e2fc(0x2fe),'configError':_0x24e2fc(0x280),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x24e2fc(0x20a),'univerAiLabel':_0x24e2fc(0x2a0),'getStarted':_0x24e2fc(0x312)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x24e2fc(0x231),'invalidConfig':_0x24e2fc(0x24b),'invalidApiKey':_0x24e2fc(0x248)},'connectionStatus':{'disconnected':_0x24e2fc(0x2c0),'connecting':_0x24e2fc(0x2bd),'connected':_0x24e2fc(0x245),'failed':_0x24e2fc(0x29c),'retrying':_0x24e2fc(0x2fa)},'connectionError':{'unauthorized':_0x24e2fc(0x22a),'sessionOccupied':_0x24e2fc(0x239),'networkError':_0x24e2fc(0x2dc),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var ge=_0x24e2fc(0x301),_e=_0x24e2fc(0x2cc);let $=class extends _0x210a69{constructor(_0x73ee84=V,_0x5d0d4f,_0x308648,_0x1e86ea,_0x2a2491,_0x23d8fa){const _0x1c91fa=_0x24e2fc;super(),this[_0x1c91fa(0x24e)]=_0x73ee84,this['_injector']=_0x5d0d4f,this[_0x1c91fa(0x31e)]=_0x308648,this[_0x1c91fa(0x2c6)]=_0x1e86ea,this['_localStorageService']=_0x2a2491,this[_0x1c91fa(0x242)]=_0x23d8fa;let {..._0x3674b2}=_0x5b05be({},V,this[_0x1c91fa(0x24e)]);this[_0x1c91fa(0x31e)][_0x1c91fa(0x2db)](B,_0x3674b2);}async[_0x24e2fc(0x2a5)](){const _0x272e39=_0x24e2fc;let _0xf72973=[[Z],[J],[Q]];this[_0x272e39(0x220)][_0x272e39(0x305)](_0x184860)||_0xf72973[_0x272e39(0x2e5)]([_0x184860,{'useClass':_0x3859a6}]),_0xf72973[_0x272e39(0x1fb)](_0x19b9e0=>this[_0x272e39(0x220)][_0x272e39(0x2d3)](_0x19b9e0)),this['_injector'][_0x272e39(0x2a9)](Z),this[_0x272e39(0x220)]['get'](J),this[_0x272e39(0x220)][_0x272e39(0x2a9)](Q);}};U($,_0x24e2fc(0x270),_0x24e2fc(0x2f0)),U($,_0x24e2fc(0x31d),ge),U($,_0x24e2fc(0x2fd),_e),$=G([_0x55f634(_0x2ba359),W(0x1,_0x17ef4b(_0x498a04)),W(0x2,_0x16e4b4),W(0x3,_0xbb3625),W(0x4,_0x5192e1),W(0x5,_0x17ef4b(_0x58c1f8))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
@@ -1 +1 @@
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
+ const _0x2e77b0=_0x42c4;(function(_0x16015d,_0x4e5652){const _0x4d73c2=_0x42c4,_0x32f1f7=_0x16015d();while(!![]){try{const _0xb8326=parseInt(_0x4d73c2(0x169))/0x1*(-parseInt(_0x4d73c2(0x16b))/0x2)+parseInt(_0x4d73c2(0x165))/0x3+-parseInt(_0x4d73c2(0x167))/0x4*(parseInt(_0x4d73c2(0x174))/0x5)+-parseInt(_0x4d73c2(0x181))/0x6*(-parseInt(_0x4d73c2(0x17b))/0x7)+-parseInt(_0x4d73c2(0x16e))/0x8*(parseInt(_0x4d73c2(0x17c))/0x9)+-parseInt(_0x4d73c2(0x184))/0xa*(-parseInt(_0x4d73c2(0x163))/0xb)+parseInt(_0x4d73c2(0x170))/0xc;if(_0xb8326===_0x4e5652)break;else _0x32f1f7['push'](_0x32f1f7['shift']());}catch(_0x1d6080){_0x32f1f7['push'](_0x32f1f7['shift']());}}}(_0x4564,0x72046));function _0x42c4(_0x1025aa,_0x35fcad){_0x1025aa=_0x1025aa-0x159;const _0x4564e6=_0x4564();let _0x42c477=_0x4564e6[_0x1025aa];return _0x42c477;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2e77b0(0x15a),'connected':_0x2e77b0(0x15b),'failed':_0x2e77b0(0x180),'retrying':_0x2e77b0(0x15f),'unknown':_0x2e77b0(0x18b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2e77b0(0x185),'maxRetriesExceeded':_0x2e77b0(0x188),'clickToConnect':_0x2e77b0(0x177),'clickToConfigure':_0x2e77b0(0x17f)},'mcpConfig':{'title':_0x2e77b0(0x18a),'description':_0x2e77b0(0x16a),'apiKey':_0x2e77b0(0x159),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2e77b0(0x175),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2e77b0(0x171),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2e77b0(0x16d),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2e77b0(0x17e),'configStep2':_0x2e77b0(0x178),'configStep3':_0x2e77b0(0x15e),'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':_0x2e77b0(0x164),'configParameters':_0x2e77b0(0x179),'maxRetries':_0x2e77b0(0x166),'save':_0x2e77b0(0x168),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2e77b0(0x160),'configSaved':_0x2e77b0(0x183),'configError':_0x2e77b0(0x17a),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2e77b0(0x182),'univerAiLabel':_0x2e77b0(0x186),'getStarted':_0x2e77b0(0x17d)},'validation':{'apiKeyRequired':_0x2e77b0(0x173),'apiKeyTooShort':_0x2e77b0(0x16f),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2e77b0(0x172)},'connectionStatus':{'disconnected':_0x2e77b0(0x15c),'connecting':_0x2e77b0(0x187),'connected':_0x2e77b0(0x161),'failed':_0x2e77b0(0x189),'retrying':_0x2e77b0(0x16c)},'connectionError':{'unauthorized':_0x2e77b0(0x18c),'sessionOccupied':_0x2e77b0(0x15d),'networkError':_0x2e77b0(0x162),'maxRetriesExceeded':_0x2e77b0(0x176)}}};export{e as default};function _0x4564(){const _0x3da008=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','1198253HFQQWR','7651791VCDqBT','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','18bNWZrm','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','30wvIZdL','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','Connection\x20Failed','MCP\x20Configuration','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key','MCP\x20Connecting...','MCP\x20Connected','Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','542608ydGxec','API\x20key\x20with\x20Bearer\x20prefix.','1541004vJnkdV','Max\x20Retries','8XldVai','Save\x20Configuration','109060ojPkSD','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','4dFwCMl','Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','8IfmXQT','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','13264656gozCBV','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20is\x20required','1863110RWThgu','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP'];_0x4564=function(){return _0x3da008;};return _0x4564();}
@@ -1 +1 @@
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
+ const _0x4a9d25=_0x2ae1;(function(_0x1afc1d,_0x1e707e){const _0x11159f=_0x2ae1,_0x461ff7=_0x1afc1d();while(!![]){try{const _0x22cb1d=parseInt(_0x11159f(0xa0))/0x1*(-parseInt(_0x11159f(0xbd))/0x2)+-parseInt(_0x11159f(0xb1))/0x3+parseInt(_0x11159f(0x9e))/0x4+-parseInt(_0x11159f(0xa8))/0x5+parseInt(_0x11159f(0xb9))/0x6+parseInt(_0x11159f(0xa3))/0x7*(parseInt(_0x11159f(0x92))/0x8)+parseInt(_0x11159f(0xaf))/0x9*(parseInt(_0x11159f(0xb8))/0xa);if(_0x22cb1d===_0x1e707e)break;else _0x461ff7['push'](_0x461ff7['shift']());}catch(_0x2e6d2c){_0x461ff7['push'](_0x461ff7['shift']());}}}(_0x2671,0x68c0b));const e={'mcpStatus':{'disconnected':_0x4a9d25(0xaa),'connecting':_0x4a9d25(0x9b),'connected':_0x4a9d25(0xa5),'failed':_0x4a9d25(0xb5),'retrying':_0x4a9d25(0xbe),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4a9d25(0xb0),'sessionOccupied':_0x4a9d25(0xbc),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4a9d25(0xc1),'clickToConnect':_0x4a9d25(0xbb),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4a9d25(0x90),'description':_0x4a9d25(0x9a),'apiKey':_0x4a9d25(0xbf),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4a9d25(0xa4),'enableAuthHint':_0x4a9d25(0xb4),'connectionInfo':_0x4a9d25(0xa9),'mcpClientConfig':_0x4a9d25(0xa9),'configInstructions':_0x4a9d25(0x8f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4a9d25(0xb7),'configStep2':_0x4a9d25(0xab),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4a9d25(0x96),'sessionIdDescription':_0x4a9d25(0xae),'authorizationDescription':_0x4a9d25(0x99),'configParameters':_0x4a9d25(0xc0),'maxRetries':'Max\x20Retries','save':_0x4a9d25(0xa6),'saving':_0x4a9d25(0x9d),'note1':_0x4a9d25(0xac),'note2':_0x4a9d25(0x94),'configSaved':_0x4a9d25(0x95),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4a9d25(0xa7),'description':_0x4a9d25(0x9c),'univerAiLabel':_0x4a9d25(0x91),'getStarted':_0x4a9d25(0x9f)},'validation':{'apiKeyRequired':_0x4a9d25(0x98),'apiKeyTooShort':_0x4a9d25(0xa1),'invalidConfig':_0x4a9d25(0xad),'invalidApiKey':_0x4a9d25(0x93)},'connectionStatus':{'disconnected':_0x4a9d25(0xb3),'connecting':'Connecting...','connected':_0x4a9d25(0xba),'failed':_0x4a9d25(0xa2),'retrying':_0x4a9d25(0x97)},'connectionError':{'unauthorized':_0x4a9d25(0xb6),'sessionOccupied':_0x4a9d25(0x8e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4a9d25(0xb2)}}};export{e as default};function _0x2ae1(_0x393934,_0x4ece80){_0x393934=_0x393934-0x8e;const _0x2671db=_0x2671();let _0x2ae177=_0x2671db[_0x393934];return _0x2ae177;}function _0x2671(){const _0x1fa68e=['What\x20is\x20API\x20Key?','119670LvEJeL','MCP\x20Client\x20Configuration','MCP\x20Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','78525RBobVm','MCP:\x20Unauthorized','1098951erPEjh','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','210WPMQcS','888480rlRJFq','Connected','Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20ID\x20Occupied','2sefPLL','MCP\x20Retrying...','API\x20Key','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','Univer\x20AI\x20Console','8ZMuoTO','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','Session\x20ID','Retrying...','API\x20key\x20is\x20required','API\x20key\x20with\x20Bearer\x20prefix.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Saving...','1796560fHfftr','Get\x20your\x20API\x20key\x20in\x20seconds','173478WOTPkh','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','1486457Pwfyda','Enable\x20Authentication','MCP\x20Connected','Save\x20Configuration'];_0x2671=function(){return _0x1fa68e;};return _0x2671();}
@@ -1 +1 @@
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
+ function _0x1456(){const _0x1c9695=['46504ANApYP','Enable\x20authentication\x20for\x20secure\x20connections','Connected','Max\x20Retries','Copy\x20the\x20JSON\x20configuration\x20below','1975370qKjzut','3RhkpuK','6mhtLtP','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connection\x20Failed','1918385dRhTdC','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','314650lPdNqC','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Disconnected','Configuration\x20Steps:','585klHzpV','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3817891HsuPPg','Enter\x20your\x20API\x20key','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\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20Authentication','106NsTpOv','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','479DsiTMP','MCP\x20Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','727436uybQbj','Retrying...','Connecting...'];_0x1456=function(){return _0x1c9695;};return _0x1456();}const _0x1fa9b0=_0x55c8;function _0x55c8(_0x4ba863,_0x35d9bd){_0x4ba863=_0x4ba863-0x8c;const _0x145640=_0x1456();let _0x55c893=_0x145640[_0x4ba863];return _0x55c893;}(function(_0x296da5,_0x428096){const _0x20f9d2=_0x55c8,_0x2294d5=_0x296da5();while(!![]){try{const _0x1e859a=-parseInt(_0x20f9d2(0xb9))/0x1*(parseInt(_0x20f9d2(0xb1))/0x2)+parseInt(_0x20f9d2(0x96))/0x3*(parseInt(_0x20f9d2(0x8d))/0x4)+parseInt(_0x20f9d2(0xa3))/0x5+-parseInt(_0x20f9d2(0x97))/0x6*(-parseInt(_0x20f9d2(0x9b))/0x7)+-parseInt(_0x20f9d2(0x90))/0x8*(parseInt(_0x20f9d2(0xa8))/0x9)+-parseInt(_0x20f9d2(0x95))/0xa+parseInt(_0x20f9d2(0xaa))/0xb;if(_0x1e859a===_0x428096)break;else _0x2294d5['push'](_0x2294d5['shift']());}catch(_0xe18ff4){_0x2294d5['push'](_0x2294d5['shift']());}}}(_0x1456,0x40bc4));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1fa9b0(0xa5),'connected':_0x1fa9b0(0xba),'failed':_0x1fa9b0(0xad),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x1fa9b0(0xa0),'sessionOccupied':_0x1fa9b0(0x98),'networkError':_0x1fa9b0(0xb6),'maxRetriesExceeded':_0x1fa9b0(0xb2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x1fa9b0(0xb4),'apiKey':_0x1fa9b0(0x9f),'apiKeyPlaceholder':_0x1fa9b0(0xab),'apiKeyHint':_0x1fa9b0(0xb8),'enableAuth':_0x1fa9b0(0xb0),'enableAuthHint':_0x1fa9b0(0x91),'connectionInfo':_0x1fa9b0(0xb5),'mcpClientConfig':_0x1fa9b0(0xb5),'configInstructions':_0x1fa9b0(0xa1),'configStepTitle':_0x1fa9b0(0xa7),'configStep1':_0x1fa9b0(0x94),'configStep2':_0x1fa9b0(0x8c),'configStep3':_0x1fa9b0(0x9d),'sessionId':'Session\x20ID','sessionIdDescription':_0x1fa9b0(0xaf),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x1fa9b0(0x93),'save':_0x1fa9b0(0xa2),'saving':'Saving...','note1':_0x1fa9b0(0xbb),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1fa9b0(0xa4),'configError':_0x1fa9b0(0xae),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1fa9b0(0xac),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1fa9b0(0x9e)},'validation':{'apiKeyRequired':_0x1fa9b0(0xb3),'apiKeyTooShort':_0x1fa9b0(0xa9),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1fa9b0(0x99)},'connectionStatus':{'disconnected':_0x1fa9b0(0xa6),'connecting':_0x1fa9b0(0x8f),'connected':_0x1fa9b0(0x92),'failed':_0x1fa9b0(0x9a),'retrying':_0x1fa9b0(0x8e)},'connectionError':{'unauthorized':_0x1fa9b0(0xb7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1fa9b0(0x9c)}}};export{e as default};
@@ -1 +1 @@
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
+ const _0x5a262e=_0x2dca;(function(_0x5eed7e,_0x5a8ef4){const _0xee8a1a=_0x2dca,_0x23a850=_0x5eed7e();while(!![]){try{const _0x45cec5=parseInt(_0xee8a1a(0x91))/0x1*(-parseInt(_0xee8a1a(0x6e))/0x2)+-parseInt(_0xee8a1a(0x65))/0x3+parseInt(_0xee8a1a(0x6b))/0x4*(parseInt(_0xee8a1a(0x92))/0x5)+-parseInt(_0xee8a1a(0x73))/0x6+parseInt(_0xee8a1a(0x8b))/0x7+parseInt(_0xee8a1a(0x66))/0x8+parseInt(_0xee8a1a(0x8d))/0x9*(-parseInt(_0xee8a1a(0x70))/0xa);if(_0x45cec5===_0x5a8ef4)break;else _0x23a850['push'](_0x23a850['shift']());}catch(_0x498ef3){_0x23a850['push'](_0x23a850['shift']());}}}(_0x449f,0xee7fd));function _0x2dca(_0xc31471,_0x390bab){_0xc31471=_0xc31471-0x65;const _0x449fdc=_0x449f();let _0x2dcade=_0x449fdc[_0xc31471];return _0x2dcade;}const e={'mcpStatus':{'disconnected':_0x5a262e(0x85),'connecting':_0x5a262e(0x71),'connected':_0x5a262e(0x7d),'failed':_0x5a262e(0x89),'retrying':_0x5a262e(0x76),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5a262e(0x6c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5a262e(0x8e),'maxRetriesExceeded':_0x5a262e(0x93),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5a262e(0x72)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5a262e(0x90),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5a262e(0x95),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5a262e(0x6f),'enableAuthHint':_0x5a262e(0x96),'connectionInfo':_0x5a262e(0x97),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5a262e(0x78),'configStepTitle':_0x5a262e(0x8c),'configStep1':_0x5a262e(0x84),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5a262e(0x6a),'sessionIdDescription':_0x5a262e(0x79),'authorizationDescription':_0x5a262e(0x8a),'configParameters':_0x5a262e(0x75),'maxRetries':_0x5a262e(0x87),'save':_0x5a262e(0x86),'saving':_0x5a262e(0x6d),'note1':_0x5a262e(0x7c),'note2':_0x5a262e(0x8f),'configSaved':_0x5a262e(0x94),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5a262e(0x69),'description':_0x5a262e(0x80),'univerAiLabel':_0x5a262e(0x7a),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5a262e(0x68),'apiKeyTooShort':_0x5a262e(0x82),'invalidConfig':_0x5a262e(0x81),'invalidApiKey':_0x5a262e(0x88)},'connectionStatus':{'disconnected':_0x5a262e(0x7b),'connecting':_0x5a262e(0x7e),'connected':_0x5a262e(0x77),'failed':'Connection\x20Failed','retrying':_0x5a262e(0x74)},'connectionError':{'unauthorized':_0x5a262e(0x7f),'sessionOccupied':_0x5a262e(0x83),'networkError':_0x5a262e(0x67),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x449f(){const _0x173aba=['MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20saved\x20successfully','Enter\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','2136486olBTrj','11878360DXqbbF','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required','What\x20is\x20API\x20Key?','Session\x20ID','32ohYbWW','MCP:\x20Unauthorized','Saving...','2mhSQXN','Enable\x20Authentication','223070RJXuAf','MCP\x20Connecting...','Click\x20to\x20configure\x20MCP','6918048opJcni','Retrying...','Configuration\x20Parameters:','MCP\x20Retrying...','Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Univer\x20AI\x20Console','Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Disconnected','Save\x20Configuration','Max\x20Retries','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','2929164DbNvOx','Configuration\x20Steps:','135rPeZoW','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','655091RQiqfA','1205320oVEwbq'];_0x449f=function(){return _0x173aba;};return _0x449f();}export{e as default};
@@ -1 +1 @@
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
+ const _0xc18a6=_0x2831;function _0x2831(_0x23c196,_0x40b169){_0x23c196=_0x23c196-0x121;const _0x523baf=_0x523b();let _0x28312b=_0x523baf[_0x23c196];return _0x28312b;}function _0x523b(){const _0x2d3a3e=['MCP:\x20Unauthorized','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20ID\x20Occupied','42BEpCAu','Retrying...','109131zFxaPU','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','What\x20is\x20API\x20Key?','40088LfKHns','MCP\x20Unknown\x20Status','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','871632tToUoJ','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','582147fWIsCD','20pKCFEr','Click\x20to\x20configure\x20MCP','Max\x20Retries','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','Connection\x20Failed','MCP\x20Configuration','Connecting...','Configuration\x20Steps:','Invalid\x20configuration','Click\x20to\x20connect\x20MCP','MCP\x20Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','328434iddefr','10yTfpvc','705243fMguRP','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','138614HyxqBy','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Disconnected','MCP\x20Connection\x20Failed','Connected','MCP\x20Connecting...'];_0x523b=function(){return _0x2d3a3e;};return _0x523b();}(function(_0x3c31ed,_0x2ec56d){const _0x228939=_0x2831,_0x5633ed=_0x3c31ed();while(!![]){try{const _0x126bcd=parseInt(_0x228939(0x13f))/0x1+parseInt(_0x228939(0x12a))/0x2+-parseInt(_0x228939(0x12c))/0x3+parseInt(_0x228939(0x143))/0x4*(-parseInt(_0x228939(0x12b))/0x5)+-parseInt(_0x228939(0x13d))/0x6*(-parseInt(_0x228939(0x130))/0x7)+parseInt(_0x228939(0x149))/0x8+parseInt(_0x228939(0x14c))/0x9*(-parseInt(_0x228939(0x14d))/0xa);if(_0x126bcd===_0x2ec56d)break;else _0x5633ed['push'](_0x5633ed['shift']());}catch(_0x45db05){_0x5633ed['push'](_0x5633ed['shift']());}}}(_0x523b,0x214e9));const e={'mcpStatus':{'disconnected':_0xc18a6(0x141),'connecting':_0xc18a6(0x138),'connected':_0xc18a6(0x127),'failed':_0xc18a6(0x136),'retrying':_0xc18a6(0x133),'unknown':_0xc18a6(0x144),'unauthorized':_0xc18a6(0x139),'sessionOccupied':_0xc18a6(0x13c),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0xc18a6(0x126),'clickToConfigure':_0xc18a6(0x14e)},'mcpConfig':{'title':_0xc18a6(0x122),'description':_0xc18a6(0x13b),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0xc18a6(0x14a),'connectionInfo':_0xc18a6(0x147),'mcpClientConfig':_0xc18a6(0x147),'configInstructions':_0xc18a6(0x12e),'configStepTitle':_0xc18a6(0x124),'configStep1':_0xc18a6(0x145),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xc18a6(0x148),'sessionId':'Session\x20ID','sessionIdDescription':_0xc18a6(0x12f),'authorizationDescription':_0xc18a6(0x14b),'configParameters':_0xc18a6(0x150),'maxRetries':_0xc18a6(0x14f),'save':_0xc18a6(0x154),'saving':_0xc18a6(0x132),'note1':_0xc18a6(0x134),'note2':_0xc18a6(0x153),'configSaved':_0xc18a6(0x152),'configError':_0xc18a6(0x129),'apiApplyInfo':{'title':_0xc18a6(0x142),'description':_0xc18a6(0x151),'univerAiLabel':_0xc18a6(0x12d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0xc18a6(0x13a),'apiKeyTooShort':_0xc18a6(0x131),'invalidConfig':_0xc18a6(0x125),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0xc18a6(0x135),'connecting':_0xc18a6(0x123),'connected':_0xc18a6(0x137),'failed':_0xc18a6(0x121),'retrying':_0xc18a6(0x13e)},'connectionError':{'unauthorized':_0xc18a6(0x128),'sessionOccupied':_0xc18a6(0x140),'networkError':_0xc18a6(0x146),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};
@@ -1 +1 @@
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
+ function _0x1d65(){const _0xf30427=['MCP\x20接続中...','以下のJSON設定をコピー','235310zDFdUw','再試行中...','APIキーは10文字以上である必要があります','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','ネットワーク接続エラー。インターネット接続を確認してください','MCP:\x20最大再試行回数を超過','セキュアな接続のために認証を有効にする','1708136XZIXyz','362187tiiaht','MCP:\x20セッションIDが使用中','クリックしてMCPを設定','接続失敗','設定手順:','MCP:\x20ネットワークエラー','148653qPJWwu','APIキーは必須です','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','Bearerプレフィックス付きのAPIキー。','2303135AAZjBm','MCP\x20接続失敗','設定が正常に保存されました','未接続','セッションIDが現在使用中です。後でもう一度お試しください','5026756QGdgPE','無効な設定','MCPクライアント設定','MCP設定','MCP\x20接続済み','9ccYSfv','APIキーはローカルストレージに安全に保存されます','MCPクライアントを再起動して設定を適用','クリックしてMCPに接続','APIキーとは?','104xvcTdu','最大再試行回数を超過しました。後でもう一度お試しください','無効なAPIキーです。キーが正しいか確認してください','接続済み','6ZTCfGo','設定パラメータ:','設定の保存に失敗しました','2953510mXpdWO','認証に失敗しました。APIキーを確認してください','APIキーはこのブラウザのローカルに保存されます','セッションID','MCP\x20未接続'];_0x1d65=function(){return _0xf30427;};return _0x1d65();}const _0x46a57d=_0x1ce7;(function(_0x1084d7,_0x311e6a){const _0x1fc6b9=_0x1ce7,_0x4f6953=_0x1084d7();while(!![]){try{const _0x1b1f07=parseInt(_0x1fc6b9(0x1a2))/0x1+parseInt(_0x1fc6b9(0x194))/0x2*(parseInt(_0x1fc6b9(0x181))/0x3)+parseInt(_0x1fc6b9(0x19b))/0x4+parseInt(_0x1fc6b9(0x177))/0x5*(-parseInt(_0x1fc6b9(0x18a))/0x6)+parseInt(_0x1fc6b9(0x17c))/0x7+-parseInt(_0x1fc6b9(0x186))/0x8*(parseInt(_0x1fc6b9(0x19c))/0x9)+-parseInt(_0x1fc6b9(0x18d))/0xa;if(_0x1b1f07===_0x311e6a)break;else _0x4f6953['push'](_0x4f6953['shift']());}catch(_0x49d672){_0x4f6953['push'](_0x4f6953['shift']());}}}(_0x1d65,0x59c07));function _0x1ce7(_0x2d3e1a,_0x4ba440){_0x2d3e1a=_0x2d3e1a-0x175;const _0x1d657e=_0x1d65();let _0x1ce7ac=_0x1d657e[_0x2d3e1a];return _0x1ce7ac;}const e={'mcpStatus':{'disconnected':_0x46a57d(0x191),'connecting':_0x46a57d(0x192),'connected':_0x46a57d(0x180),'failed':_0x46a57d(0x178),'retrying':'MCP\x20再試行中...','unknown':'MCP\x20不明な状態','unauthorized':'MCP:\x20認証されていません','sessionOccupied':_0x46a57d(0x19d),'networkError':_0x46a57d(0x1a1),'maxRetriesExceeded':_0x46a57d(0x199),'clickToConnect':_0x46a57d(0x184),'clickToConfigure':_0x46a57d(0x19e)},'mcpConfig':{'title':_0x46a57d(0x17f),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':'APIキー','apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0x46a57d(0x18f),'enableAuth':'認証を有効にする','enableAuthHint':_0x46a57d(0x19a),'connectionInfo':_0x46a57d(0x17e),'mcpClientConfig':_0x46a57d(0x17e),'configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x46a57d(0x1a0),'configStep1':_0x46a57d(0x193),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x46a57d(0x183),'sessionId':_0x46a57d(0x190),'sessionIdDescription':_0x46a57d(0x175),'authorizationDescription':_0x46a57d(0x176),'configParameters':_0x46a57d(0x18b),'maxRetries':'最大再試行回数','save':'設定を保存','saving':'保存中...','note1':'設定の変更は直ちに有効になります','note2':_0x46a57d(0x182),'configSaved':_0x46a57d(0x179),'configError':_0x46a57d(0x18c),'apiApplyInfo':{'title':_0x46a57d(0x185),'description':_0x46a57d(0x197),'univerAiLabel':'Univer\x20AIコンソール','getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x46a57d(0x1a3),'apiKeyTooShort':_0x46a57d(0x196),'invalidConfig':_0x46a57d(0x17d),'invalidApiKey':_0x46a57d(0x188)},'connectionStatus':{'disconnected':_0x46a57d(0x17a),'connecting':'接続中...','connected':_0x46a57d(0x189),'failed':_0x46a57d(0x19f),'retrying':_0x46a57d(0x195)},'connectionError':{'unauthorized':_0x46a57d(0x18e),'sessionOccupied':_0x46a57d(0x17b),'networkError':_0x46a57d(0x198),'maxRetriesExceeded':_0x46a57d(0x187)}}};export{e as default};
@@ -1 +1 @@
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};
1
+ function _0x47d8(){const _0x47f90a=['보안\x20연결을\x20위해\x20인증\x20활성화','MCP:\x20세션\x20ID\x20사용\x20중','Univer\x20AI\x20콘솔','14VsaNpK','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','재시도\x20중...','MCP\x20재시도\x20중...','MCP\x20연결\x20중...','API\x20키는\x2010자\x20이상이어야\x20합니다','1493128OPdJHj','아래\x20JSON\x20설정\x20복사','API\x20키는\x20필수입니다','유효하지\x20않은\x20설정','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','MCP\x20연결\x20끊김','API\x20키','저장\x20중...','129NcwhqZ','API\x20키란\x20무엇인가요?','MCP:\x20인증되지\x20않음','설정\x20저장','9462VMmrNA','연결\x20실패','설정이\x20성공적으로\x20저장되었습니다','설정\x20저장\x20실패','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','21747mnieMo','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','설정\x20단계:','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','MCP\x20연결\x20실패','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','MCP\x20설정','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','최대\x20재시도\x20횟수','2828424gxifbI','2731626xqOMIr','인증\x20실패.\x20API\x20키를\x20확인하세요','5uRZXWD','연결됨','연결\x20중...','클릭하여\x20MCP\x20연결','몇\x20초\x20만에\x20API\x20키\x20발급받기','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','239792zJXvtx','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','세션\x20ID','979048uFdNye','인증\x20활성화','MCP\x20클라이언트\x20설정','API\x20키를\x20입력하세요','클릭하여\x20MCP\x20설정','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','390qaITNw'];_0x47d8=function(){return _0x47f90a;};return _0x47d8();}const _0x96892c=_0x36c0;(function(_0x10fe5e,_0x5260c5){const _0x547fc9=_0x36c0,_0x55836f=_0x10fe5e();while(!![]){try{const _0x21fcd4=-parseInt(_0x547fc9(0x15b))/0x1+-parseInt(_0x547fc9(0x17a))/0x2*(parseInt(_0x547fc9(0x176))/0x3)+parseInt(_0x547fc9(0x16e))/0x4+-parseInt(_0x547fc9(0x18b))/0x5*(-parseInt(_0x547fc9(0x188))/0x6)+parseInt(_0x547fc9(0x168))/0x7*(parseInt(_0x547fc9(0x15e))/0x8)+-parseInt(_0x547fc9(0x189))/0x9+-parseInt(_0x547fc9(0x164))/0xa*(parseInt(_0x547fc9(0x17f))/0xb);if(_0x21fcd4===_0x5260c5)break;else _0x55836f['push'](_0x55836f['shift']());}catch(_0x5e5cf2){_0x55836f['push'](_0x55836f['shift']());}}}(_0x47d8,0x40d86));function _0x36c0(_0x226be4,_0x256e1c){_0x226be4=_0x226be4-0x155;const _0x47d81b=_0x47d8();let _0x36c068=_0x47d81b[_0x226be4];return _0x36c068;}const e={'mcpStatus':{'disconnected':_0x96892c(0x173),'connecting':_0x96892c(0x16c),'connected':'MCP\x20연결됨','failed':_0x96892c(0x183),'retrying':_0x96892c(0x16b),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x96892c(0x178),'sessionOccupied':_0x96892c(0x166),'networkError':'MCP:\x20네트워크\x20오류','maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0x96892c(0x157),'clickToConfigure':_0x96892c(0x162)},'mcpConfig':{'title':_0x96892c(0x185),'description':_0x96892c(0x15a),'apiKey':_0x96892c(0x174),'apiKeyPlaceholder':_0x96892c(0x161),'apiKeyHint':_0x96892c(0x159),'enableAuth':_0x96892c(0x15f),'enableAuthHint':_0x96892c(0x165),'connectionInfo':_0x96892c(0x160),'mcpClientConfig':_0x96892c(0x160),'configInstructions':_0x96892c(0x163),'configStepTitle':_0x96892c(0x181),'configStep1':_0x96892c(0x16f),'configStep2':_0x96892c(0x15c),'configStep3':_0x96892c(0x169),'sessionId':_0x96892c(0x15d),'sessionIdDescription':_0x96892c(0x180),'authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':'설정\x20매개변수:','maxRetries':_0x96892c(0x187),'save':_0x96892c(0x179),'saving':_0x96892c(0x175),'note1':'설정\x20변경\x20사항은\x20즉시\x20적용됩니다','note2':_0x96892c(0x182),'configSaved':_0x96892c(0x17c),'configError':_0x96892c(0x17d),'apiApplyInfo':{'title':_0x96892c(0x177),'description':_0x96892c(0x172),'univerAiLabel':_0x96892c(0x167),'getStarted':_0x96892c(0x158)},'validation':{'apiKeyRequired':_0x96892c(0x170),'apiKeyTooShort':_0x96892c(0x16d),'invalidConfig':_0x96892c(0x171),'invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':_0x96892c(0x156),'connected':_0x96892c(0x155),'failed':_0x96892c(0x17b),'retrying':_0x96892c(0x16a)},'connectionError':{'unauthorized':_0x96892c(0x18a),'sessionOccupied':_0x96892c(0x184),'networkError':_0x96892c(0x186),'maxRetriesExceeded':_0x96892c(0x17e)}}};export{e as default};
@@ -1 +1 @@
1
- const _0x30e2a6=_0x5b15;function _0x3c9b(){const _0x413fa4=['580vLppyM','API\x20Key','Configuration\x20Steps:','Univer\x20AI\x20Console','Invalid\x20configuration','MCP\x20Configuration','MCP\x20Unknown\x20Status','MCP:\x20Unauthorized','Save\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','166870BEsngX','Copy\x20the\x20JSON\x20configuration\x20below','8SnDNTA','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','28943jtCDfo','Connecting...','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','Failed\x20to\x20save\x20configuration','10JjLuYz','36ooeexW','1817981zLetlW','Enter\x20your\x20API\x20key','288925EwAfXW','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','156XTBfPP','Connection\x20Failed','4190PYirJv','243sjIKJj','3897rjoHzt','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','111564YWuEeh','MCP:\x20Network\x20Error','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','Configuration\x20Parameters:','Disconnected','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x3c9b=function(){return _0x413fa4;};return _0x3c9b();}(function(_0x123eac,_0x29315e){const _0x2c8e06=_0x5b15,_0x34d85e=_0x123eac();while(!![]){try{const _0x1076cc=-parseInt(_0x2c8e06(0x16b))/0x1*(-parseInt(_0x2c8e06(0x171))/0x2)+-parseInt(_0x2c8e06(0x148))/0x3*(parseInt(_0x2c8e06(0x15c))/0x4)+-parseInt(_0x2c8e06(0x166))/0x5*(parseInt(_0x2c8e06(0x172))/0x6)+-parseInt(_0x2c8e06(0x175))/0x7*(-parseInt(_0x2c8e06(0x168))/0x8)+-parseInt(_0x2c8e06(0x149))/0x9*(-parseInt(_0x2c8e06(0x17c))/0xa)+-parseInt(_0x2c8e06(0x173))/0xb+-parseInt(_0x2c8e06(0x14c))/0xc*(-parseInt(_0x2c8e06(0x17a))/0xd);if(_0x1076cc===_0x29315e)break;else _0x34d85e['push'](_0x34d85e['shift']());}catch(_0x53029f){_0x34d85e['push'](_0x34d85e['shift']());}}}(_0x3c9b,0x18d59));const locale$1={'mcpStatus':{'disconnected':_0x30e2a6(0x150),'connecting':'MCP\x20Connecting...','connected':_0x30e2a6(0x158),'failed':_0x30e2a6(0x177),'retrying':_0x30e2a6(0x16d),'unknown':_0x30e2a6(0x162),'unauthorized':_0x30e2a6(0x163),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x30e2a6(0x14d),'maxRetriesExceeded':_0x30e2a6(0x151),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x30e2a6(0x155)},'mcpConfig':{'title':_0x30e2a6(0x161),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x30e2a6(0x15d),'apiKeyPlaceholder':_0x30e2a6(0x174),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x30e2a6(0x152),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x30e2a6(0x14a),'mcpClientConfig':_0x30e2a6(0x14a),'configInstructions':_0x30e2a6(0x14b),'configStepTitle':_0x30e2a6(0x15e),'configStep1':_0x30e2a6(0x167),'configStep2':_0x30e2a6(0x159),'configStep3':_0x30e2a6(0x178),'sessionId':'Session\x20ID','sessionIdDescription':_0x30e2a6(0x14f),'authorizationDescription':_0x30e2a6(0x165),'configParameters':_0x30e2a6(0x156),'maxRetries':_0x30e2a6(0x16f),'save':_0x30e2a6(0x164),'saving':'Saving...','note1':_0x30e2a6(0x15b),'note2':_0x30e2a6(0x176),'configSaved':_0x30e2a6(0x179),'configError':_0x30e2a6(0x170),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','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':_0x30e2a6(0x15f),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x30e2a6(0x16a),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x30e2a6(0x160),'invalidApiKey':_0x30e2a6(0x154)},'connectionStatus':{'disconnected':_0x30e2a6(0x157),'connecting':_0x30e2a6(0x16c),'connected':_0x30e2a6(0x153),'failed':_0x30e2a6(0x17b),'retrying':_0x30e2a6(0x14e)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x30e2a6(0x169),'networkError':_0x30e2a6(0x16e),'maxRetriesExceeded':_0x30e2a6(0x15a)}}},locale=locale$1;function _0x5b15(_0x1e5273,_0x5a4325){_0x1e5273=_0x1e5273-0x148;const _0x3c9bb2=_0x3c9b();let _0x5b15b1=_0x3c9bb2[_0x1e5273];return _0x5b15b1;}export{locale as default};
1
+ const _0x231928=_0x5848;(function(_0xf174e7,_0x187535){const _0x327fae=_0x5848,_0x170d64=_0xf174e7();while(!![]){try{const _0x1fcbdc=parseInt(_0x327fae(0x128))/0x1+parseInt(_0x327fae(0x13e))/0x2+parseInt(_0x327fae(0x142))/0x3+parseInt(_0x327fae(0x13a))/0x4+parseInt(_0x327fae(0x12e))/0x5+parseInt(_0x327fae(0x121))/0x6*(parseInt(_0x327fae(0x135))/0x7)+-parseInt(_0x327fae(0x124))/0x8;if(_0x1fcbdc===_0x187535)break;else _0x170d64['push'](_0x170d64['shift']());}catch(_0x154461){_0x170d64['push'](_0x170d64['shift']());}}}(_0x2cbd,0xb4474));function _0x5848(_0x770f06,_0x54a3e0){_0x770f06=_0x770f06-0x114;const _0x2cbd86=_0x2cbd();let _0x5848e7=_0x2cbd86[_0x770f06];return _0x5848e7;}function _0x2cbd(){const _0x281018=['35871384BvHbXv','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1066634kylEhF','Save\x20Configuration','Configuration\x20saved\x20successfully','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','5848990AAmkJf','Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','7217cfunKB','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Retrying...','Max\x20Retries','5201508qsOdPj','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','2264984iQYpuL','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','326043kDMYLN','API\x20key\x20is\x20required','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','Disconnected','What\x20is\x20API\x20Key?','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20Authentication','2586lYoHzo','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:'];_0x2cbd=function(){return _0x281018;};return _0x2cbd();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x231928(0x126),'unknown':_0x231928(0x119),'unauthorized':_0x231928(0x13f),'sessionOccupied':_0x231928(0x13c),'networkError':_0x231928(0x11a),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x231928(0x141),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x231928(0x114),'description':_0x231928(0x140),'apiKey':_0x231928(0x136),'apiKeyPlaceholder':_0x231928(0x11b),'apiKeyHint':_0x231928(0x130),'enableAuth':_0x231928(0x120),'enableAuthHint':_0x231928(0x11c),'connectionInfo':_0x231928(0x118),'mcpClientConfig':_0x231928(0x118),'configInstructions':_0x231928(0x133),'configStepTitle':_0x231928(0x123),'configStep1':_0x231928(0x13b),'configStep2':_0x231928(0x137),'configStep3':_0x231928(0x131),'sessionId':'Session\x20ID','sessionIdDescription':_0x231928(0x127),'authorizationDescription':_0x231928(0x12b),'configParameters':_0x231928(0x117),'maxRetries':_0x231928(0x139),'save':_0x231928(0x129),'saving':'Saving...','note1':_0x231928(0x115),'note2':_0x231928(0x12c),'configSaved':_0x231928(0x12a),'configError':_0x231928(0x125),'apiApplyInfo':{'title':_0x231928(0x11e),'description':_0x231928(0x11f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x231928(0x13d)},'validation':{'apiKeyRequired':_0x231928(0x143),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x231928(0x11d),'connecting':_0x231928(0x12f),'connected':_0x231928(0x134),'failed':_0x231928(0x132),'retrying':_0x231928(0x138)},'connectionError':{'unauthorized':_0x231928(0x122),'sessionOccupied':_0x231928(0x12d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x231928(0x116)}}};export{e as default};