@univerjs-pro/mcp-ui 0.12.4-insiders.20251211-c28f914 → 0.12.4-insiders.20251212-6c41730

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 (49) 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/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/index.js +1 -1
  14. package/lib/es/locale/ca-ES.js +1 -1
  15. package/lib/es/locale/en-US.js +1 -1
  16. package/lib/es/locale/es-ES.js +1 -1
  17. package/lib/es/locale/fa-IR.js +1 -1
  18. package/lib/es/locale/fr-FR.js +1 -1
  19. package/lib/es/locale/ja-JP.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/index.js +1 -1
  26. package/lib/locale/ca-ES.js +1 -1
  27. package/lib/locale/en-US.js +1 -1
  28. package/lib/locale/es-ES.js +1 -1
  29. package/lib/locale/fa-IR.js +1 -1
  30. package/lib/locale/fr-FR.js +1 -1
  31. package/lib/locale/ja-JP.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/index.js +1 -1
  38. package/lib/umd/locale/ca-ES.js +1 -1
  39. package/lib/umd/locale/en-US.js +1 -1
  40. package/lib/umd/locale/es-ES.js +1 -1
  41. package/lib/umd/locale/fa-IR.js +1 -1
  42. package/lib/umd/locale/fr-FR.js +1 -1
  43. package/lib/umd/locale/ja-JP.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +7 -7
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x227188=_0x4c59;(function(_0x1f611c,_0x28849f){const _0x3cf004=_0x4c59,_0x2977ca=_0x1f611c();while(!![]){try{const _0x1b969b=-parseInt(_0x3cf004(0x1e4))/0x1*(-parseInt(_0x3cf004(0x175))/0x2)+-parseInt(_0x3cf004(0x1f6))/0x3+parseInt(_0x3cf004(0xfc))/0x4*(-parseInt(_0x3cf004(0x11e))/0x5)+parseInt(_0x3cf004(0xff))/0x6+parseInt(_0x3cf004(0x9d))/0x7*(parseInt(_0x3cf004(0x178))/0x8)+parseInt(_0x3cf004(0xc1))/0x9+-parseInt(_0x3cf004(0xf3))/0xa;if(_0x1b969b===_0x28849f)break;else _0x2977ca['push'](_0x2977ca['shift']());}catch(_0x3cbfd2){_0x2977ca['push'](_0x2977ca['shift']());}}}(_0x6cea,0xee051));var ae=Object[_0x227188(0x188)],le=(_0x15c30c,_0x1e2373,_0xea14c6)=>_0x1e2373 in _0x15c30c?ae(_0x15c30c,_0x1e2373,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xea14c6}):_0x15c30c[_0x1e2373]=_0xea14c6,I=(_0x4dbffe,_0x5bac23,_0x5a84eb)=>le(_0x4dbffe,typeof _0x5bac23!=_0x227188(0xe2)?_0x5bac23+'':_0x5bac23,_0x5a84eb);Object[_0x227188(0x188)](exports,Symbol[_0x227188(0x1cb)],{'value':'Module'});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x5dff80,..._0xc4669e}){const _0x5df8c0=_0x227188,{icon:_0x3365a4,id:_0x506c19,className:_0x42036e,extend:_0x395e6b,..._0x5b942e}=_0xc4669e,_0x4aa8fc=(_0x5df8c0(0x13d)+_0x506c19+'\x20'+(_0x42036e||''))[_0x5df8c0(0x146)](),_0x2c917a=d[_0x5df8c0(0xc2)]('_'+de());return G(_0x3365a4,''+_0x506c19,{'defIds':_0x3365a4[_0x5df8c0(0xf5)],'idSuffix':_0x2c917a[_0x5df8c0(0x1bd)]},{'ref':_0x5dff80,'className':_0x4aa8fc,..._0x5b942e},_0x395e6b);}function G(_0x51e265,_0x312e61,_0x1c1478,_0x4c545c,_0x2b10e0){const _0x518496=_0x227188;return d[_0x518496(0x141)](_0x51e265[_0x518496(0xaa)],{'key':_0x312e61,...ue(_0x51e265,_0x1c1478,_0x2b10e0),..._0x4c545c},(ve(_0x51e265,_0x1c1478)[_0x518496(0xe3)]||[])[_0x518496(0x1ce)]((_0x442adb,_0x17da6c)=>G(_0x442adb,_0x312e61+'-'+_0x51e265[_0x518496(0xaa)]+'-'+_0x17da6c,_0x1c1478,void 0x0,_0x2b10e0)));}function ue(_0x30a096,_0x46e571,_0x230a1b){const _0x480f69=_0x227188,_0x11198b={..._0x30a096['attrs']};_0x230a1b!=null&&_0x230a1b[_0x480f69(0x1cf)]&&_0x11198b[_0x480f69(0x9c)]==='colorChannel1'&&(_0x11198b[_0x480f69(0x9c)]=_0x230a1b[_0x480f69(0x1cf)]),_0x30a096[_0x480f69(0xaa)]===_0x480f69(0x130)&&_0x11198b['id']&&(_0x11198b['id']=_0x11198b['id']+_0x46e571[_0x480f69(0xae)]),Object[_0x480f69(0x12e)](_0x11198b)['forEach'](([_0x2b5b54,_0x51d578])=>{const _0x3470bd=_0x480f69;_0x2b5b54===_0x3470bd(0x130)&&typeof _0x51d578==_0x3470bd(0x119)&&(_0x11198b[_0x2b5b54]=_0x51d578[_0x3470bd(0xeb)](/url\(#(.*)\)/,_0x3470bd(0x137)+_0x46e571[_0x3470bd(0xae)]+')'));});const {defIds:_0x36a028}=_0x46e571;return!_0x36a028||_0x36a028[_0x480f69(0x1a5)]===0x0||(_0x30a096[_0x480f69(0xaa)]===_0x480f69(0x12a)&&_0x11198b[_0x480f69(0x7b)]&&(_0x11198b['xlink:href']=_0x11198b[_0x480f69(0x7b)]+_0x46e571['idSuffix']),Object[_0x480f69(0x12e)](_0x11198b)['forEach'](([_0x1b952e,_0xfdf270])=>{const _0x30035a=_0x480f69;typeof _0xfdf270==_0x30035a(0x119)&&(_0x11198b[_0x1b952e]=_0xfdf270['replace'](/url\(#(.*)\)/,_0x30035a(0x137)+_0x46e571[_0x30035a(0xae)]+')'));})),_0x11198b;}function ve(_0x3c16a4,_0x478587){const _0xb6075e=_0x227188;var _0x1d6e83;const {defIds:_0x4405d3}=_0x478587;return!_0x4405d3||_0x4405d3[_0xb6075e(0x1a5)]===0x0?_0x3c16a4:_0x3c16a4[_0xb6075e(0xaa)]===_0xb6075e(0x1be)&&((_0x1d6e83=_0x3c16a4[_0xb6075e(0xe3)])!=null&&_0x1d6e83[_0xb6075e(0x1a5)])?{..._0x3c16a4,'children':_0x3c16a4[_0xb6075e(0xe3)][_0xb6075e(0x1ce)](_0x1ad684=>typeof _0x1ad684[_0xb6075e(0x1b6)]['id']==_0xb6075e(0x119)&&_0x4405d3&&_0x4405d3[_0xb6075e(0xf9)](_0x1ad684[_0xb6075e(0x1b6)]['id'])?{..._0x1ad684,'attrs':{..._0x1ad684[_0xb6075e(0x1b6)],'id':_0x1ad684[_0xb6075e(0x1b6)]['id']+_0x478587[_0xb6075e(0xae)]}}:_0x1ad684)}:_0x3c16a4;}function _0x4c59(_0x102ff6,_0x554abd){_0x102ff6=_0x102ff6-0x7a;const _0x6ceabc=_0x6cea();let _0x4c5963=_0x6ceabc[_0x102ff6];return _0x4c5963;}function de(){const _0xe38086=_0x227188;return Math[_0xe38086(0x11a)]()[_0xe38086(0x92)](0x24)[_0xe38086(0x17a)](0x2,0x8);}_[_0x227188(0x135)]='UniverIcon';const Ce={'tag':_0x227188(0x112),'attrs':{'xmlns':_0x227188(0x19d),'fill':_0x227188(0x18e),'viewBox':_0x227188(0x13e),'width':'1em','height':_0x227188(0x107)},'children':[{'tag':'path','attrs':{'fill':_0x227188(0x1a6),'d':_0x227188(0x196),'fillRule':'evenodd','clipRule':_0x227188(0x1f3)}}]},H=d['forwardRef'](function(_0x5bf3e6,_0x25b610){const _0x394767=_0x227188;return d[_0x394767(0x141)](_,Object[_0x394767(0x156)]({},_0x5bf3e6,{'id':_0x394767(0xd5),'ref':_0x25b610,'icon':Ce}));});H[_0x227188(0x135)]=_0x227188(0x193);function _0x6cea(){const _0x21cf7d=['label','CONNECTED','univer-flex\x20univer-items-center\x20univer-gap-3','Injector','registerCommand','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','MCPUIMenuController','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-min-w-0\x20univer-flex-1','mcpConfig.validation.apiKeyTooShort','MenuItemType','disposeWithMe','translate(.97)','univer-bg-red-500','IConfigService','toString','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','getConfig','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','_commandService','mcpConfig.title','将配置添加到您的\x20MCP\x20客户端设置文件中','Univer\x20AI\x20Console','mcpConfig.configStep2','_componentManager','fill','7630PxqPDh','MCP\x20已连接','on-line-icon','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','_menuManagerService','showDeveloperTools','useDependency','_messageService','_initConfigSync','最大重试次数','_createConfigPanelComponent','mcpConfig.configStep3','tag','close-icon','getItem','请输入您的\x20API\x20密钥','idSuffix','_localeService','Univer\x20AI\x20控制台','mcpConfig.configParameters','https://console.univer.plus','RETRYING','权限验证失败,请检查您的\x20API\x20密钥','univer-space-y-3','add','mcpStatus.connecting','OTHERS','API\x20key\x20is\x20required','errorMessage','mcpStatus.retrying','mcpConfig.apiKey','round','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','connectionError$','MCPStatusDisplay','16162542BrnCpd','useRef','Inject','on-line-icon_clip0_910_349','mcpConfig.apiKeyPlaceholder','_validateConfig','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.sessionIdDescription','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','网络连接错误,请检查您的网络连接','MCPConfigUIController','M0\x200H16V16H0z','NETWORK_ERROR','mcpConfig.connectionError.maxRetriesExceeded','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','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.ai','What\x20is\x20API\x20Key?','几秒钟内获取您的\x20API\x20密钥','mcpConfig.note1','check-mark-icon','univer-flex\x20univer-items-center','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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','_initAutoConnect','_initializeMenus','HEADER_MENU','HelpIcon','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20连接中...','mcp.apiKey','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','useCallback','symbol','children','stringify','MessageType','DependentOn','_uiPartsService','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Error','重连中...','replace','univer-text-xs\x20univer-text-gray-500','next','Disposable','IUIPartsService','jsxs','univer-text-sm\x20univer-font-medium','API\x20密钥不能为空','48532390LFtXLJ','Get\x20your\x20API\x20key\x20in\x20seconds','defIds','BehaviorSubject','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','includes','ComponentManager','off-line-icon','32jqPDWD','复制以下\x20JSON\x20配置','mcpConfig.validation.invalidConfig','10781004EigbXl','MCPConnectionStatus','getOwnPropertyDescriptor','mcpConfig.apiKeyHint','MCP\x20Disconnected','div','setConfig','UniverMCPUIPlugin','1em','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','API\x20密钥无效,请检查密钥是否正确','_injector','ISocketService','univer-text-yellow-500','jsx','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','error','button','mcpConfig.connectionStatus.disconnected','svg','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_mcpConnectionController','CloseIcon','mcpConfig.connectionStatus.connected','off-line-icon_clip0_910_343','0\x200\x2017\x2016','string','random','_initStatusComponent','path','help-icon','159130YAiXfo','univer-flex-1','_registerComponent','MCP:\x20Max\x20Retries\x20Exceeded','span','univer-flex\x20univer-items-start\x20univer-gap-3','univer-text-xs\x20univer-text-gray-600','MCP_PLUGIN_CONFIG_KEY','mcpConfig.save','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','showConfigPanel','API\x20Key','use','Configuration\x20Steps:','MCP\x20Retrying...','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','entries','UNAUTHORIZED','mask','bottom','NONE','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','ILocalStorageService','displayName','UniverMCPPlugin','url(#$1','LocaleService','univer-size-2\x20univer-rounded-full','univer-mr-2\x20univer-flex\x20univer-text-xl','MenuIcon','IMessageService','univerjs-icon\x20univerjs-icon-','0\x200\x2016\x2016','BuiltInUIPart','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','createElement','_dialogService','univer-bg-green-500','Enable\x20Authentication','会话ID','trim','连接中...','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','setItem','univer-flex\x20univer-items-start\x20univer-gap-2','univer-space-y-5','什么是\x20API\x20密钥?','univer-bg-gray-500','MCP\x20Unknown\x20Status','您的\x20API\x20密钥安全存储在本地存储中','ILogService','univer-text-sm\x20univer-text-gray-500','RibbonStartGroup','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','show','_config','assign','Invalid\x20configuration','univer-bg-blue-500','forwardRef','_handleConfigure','mcpConfig.configSaved','Bearer\x20','_localStorageService','OnLineIcon','warn','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','MCPConnectionError','重启您的\x20MCP\x20客户端以使配置生效','univer-space-y-4','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','url(#off-line-icon_clip0_910_343)','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','IDialogService','Retrying...','forEach','MCP\x20状态未知','MCP\x20Connecting...','mcpStatus.failed','带有\x20Bearer\x20前缀的\x20API\x20密钥。','onStarting','showStatus','mcpStatus.disconnected','配置无效','_mcpCoreConfig$','MCP\x20连接失败','CONNECTING','14ebOuar','connectInjector','isValid','12688jlSXMT','mcpConfig.validation.invalidApiKey','substring','has','BUTTON','Failed\x20to\x20save\x20configuration','mcpConfig.apiApplyInfo.univerAiLabel','useObservable','__setCustomHeaders','mcpServerUrl','MCP\x20Client\x20Configuration','MCPConfigPanel','ICommandService','_configService','http','merge','defineProperty','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_handleConfigSave','超出最大重试次数,请稍后再试','<API_KEY>','url(#on-line-icon_clip0_910_349)','none','mcpConfig.apiApplyInfo.title','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','配置更改将立即生效','连接失败','CheckMarkIcon','enUS','subscribeConfigValue$','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','text','mcpStatus.unknown','univer-flex\x20univer-gap-3','useState','univer-text-green-500','validateApiKey','http://www.w3.org/2000/svg','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-text-white','MCP\x20客户端配置','mcpConfig.authorizationDescription','MCP\x20Configuration','https://mcp.univer.ai/mcp/?univer_session_id=','get','length','currentColor','FAILED','pre','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','enableAutoConnect','_loadStoredApiKey','COMMAND','mcpStatus.unauthorized','SESSION_ID_OCCUPIED','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpStatus.clickToConfigure','API\x20密钥长度至少需要\x2010\x20位','mcpStatus.connected','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','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','配置\x20MCP\x20使用\x20AI\x20操作电子表格','attrs','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','removeItem','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','保存配置','current','defs','mcpConfig.apiApplyInfo.description','_blank','subscribe','保存中...','\x20-\x20','value','Saving...','MCPConnectionUIController','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-flex\x20univer-items-center\x20univer-gap-2','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','toStringTag','univer.plus','MCP:\x20Unauthorized','map','colorChannel1','MAX_RETRIES_EXCEEDED','univer-text-gray-500','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_logService','https://console.univer.ai','mcpConfig.connectionStatus.connecting','mcpConfig.connectionStatus.failed','OpenMCPConfigPanelCommand','mcpConfig.configStep1','Configuration\x20Parameters:','clsx','close','MCP:\x20Session\x20ID\x20Occupied','clipPath','_apiKey$','API\x20key\x20with\x20Bearer\x20prefix.','_loading$','mcpConfig.apiApplyInfo.getStarted','您的\x20API\x20密钥将在此浏览器中本地存储','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','160942irJqqu','配置步骤:','配置保存失败','mcpStatus.networkError','registerComponent','apiKey','mcp-config-dialog','mcpStatus.maxRetriesExceeded','IMenuManagerService','mcpConfig.connectionInfo','点击配置\x20MCP','univer-text-gray-400','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Enter\x20your\x20API\x20key','_config$','evenodd','MCP\x20已断开','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1095690CHNyxQ','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-space-y-2','MCP:\x20超出最大重试次数','_connectionController','未连接','noopener\x20noreferrer','Connecting...','Click\x20to\x20configure\x20MCP','white','启用身份验证','mcpConfig.connectionError.networkError','xlink:href','DISCONNECTED','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.connectionStatus.retrying','MCP\x20Connection\x20Failed','off'];_0x6cea=function(){return _0x21cf7d;};return _0x6cea();}const ge={'tag':_0x227188(0x112),'attrs':{'xmlns':_0x227188(0x19d),'fill':_0x227188(0x18e),'viewBox':_0x227188(0x13e),'width':_0x227188(0x107),'height':_0x227188(0x107)},'children':[{'tag':_0x227188(0x11c),'attrs':{'fill':'currentColor','d':_0x227188(0xa0)}}]},B=d[_0x227188(0x159)](function(_0x5d5f98,_0x156f9d){const _0x3eb4f2=_0x227188;return d[_0x3eb4f2(0x141)](_,Object[_0x3eb4f2(0x156)]({},_0x5d5f98,{'id':_0x3eb4f2(0xab),'ref':_0x156f9d,'icon':ge}));});B[_0x227188(0x135)]=_0x227188(0x115);const fe={'tag':_0x227188(0x112),'attrs':{'xmlns':_0x227188(0x19d),'fill':_0x227188(0x18e),'viewBox':_0x227188(0x13e),'width':'1em','height':'1em'},'children':[{'tag':_0x227188(0x11c),'attrs':{'fill':_0x227188(0x1a6),'d':_0x227188(0x95)}},{'tag':_0x227188(0x11c),'attrs':{'fill':_0x227188(0x1a6),'d':_0x227188(0xa1)}},{'tag':_0x227188(0x11c),'attrs':{'fill':_0x227188(0x1a6),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x227188(0x1f3),'clipRule':_0x227188(0x1f3)}}]},F=d[_0x227188(0x159)](function(_0x86f786,_0xe2077f){const _0x490e0e=_0x227188;return d[_0x490e0e(0x141)](_,Object['assign']({},_0x86f786,{'id':_0x490e0e(0x11d),'ref':_0xe2077f,'icon':fe}));});F[_0x227188(0x135)]=_0x227188(0xdc);const pe={'tag':_0x227188(0x112),'attrs':{'xmlns':_0x227188(0x19d),'fill':_0x227188(0x18e),'viewBox':_0x227188(0x13e),'width':_0x227188(0x107),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x227188(0x165)},'children':[{'tag':_0x227188(0x11c),'attrs':{'stroke':'currentColor','d':_0x227188(0x1c8),'strokeLinecap':_0x227188(0xbd),'strokeLinejoin':_0x227188(0xbd),'strokeWidth':1.2}}]},{'tag':_0x227188(0x1be),'attrs':{},'children':[{'tag':_0x227188(0x1dd),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x227188(0x11c),'attrs':{'fill':_0x227188(0x200),'d':_0x227188(0xcc)}}]}]}],'defIds':[_0x227188(0x117)]},Y=d[_0x227188(0x159)](function(_0x10f843,_0x4e9a8a){const _0x29d821=_0x227188;return d[_0x29d821(0x141)](_,Object['assign']({},_0x10f843,{'id':_0x29d821(0xfb),'ref':_0x4e9a8a,'icon':pe}));});Y[_0x227188(0x135)]='OffLineIcon';const he={'tag':_0x227188(0x112),'attrs':{'xmlns':_0x227188(0x19d),'fill':_0x227188(0x18e),'viewBox':_0x227188(0x118),'width':_0x227188(0x107),'height':_0x227188(0x107)},'children':[{'tag':'g','attrs':{'clipPath':_0x227188(0x18d)},'children':[{'tag':_0x227188(0x11c),'attrs':{'stroke':'currentColor','d':_0x227188(0x160),'strokeLinecap':'round','strokeLinejoin':_0x227188(0xbd),'strokeWidth':1.2}}]},{'tag':_0x227188(0x1be),'attrs':{},'children':[{'tag':_0x227188(0x1dd),'attrs':{'id':_0x227188(0xc4)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x227188(0xcc),'transform':_0x227188(0x8f)}}]}]}],'defIds':[_0x227188(0xc4)]},q=d['forwardRef'](function(_0x47d790,_0xc25df8){const _0x4cb522=_0x227188;return d['createElement'](_,Object[_0x4cb522(0x156)]({},_0x47d790,{'id':_0x4cb522(0x9f),'ref':_0xc25df8,'icon':he}));});q[_0x227188(0x135)]=_0x227188(0x15e);function V(_0x2aa59d){const _0x43fc67=_0x227188;var _0x320648,_0x223465;const {mcpCoreConfig:_0x1f3bd2,onSave:_0x5c4cd8,loading:_0x38d06d=!0x1,config:_0x243694,connectionStatus$:_0x579075,connectionError$:_0x12a06f,currentApiKey$:_0x509714,currentSessionId$:_0x161478}=_0x2aa59d,_0x9f633=v['useDependency'](u[_0x43fc67(0x138)]),_0x589631=v['useObservable'](_0x579075,s[_0x43fc67(0x100)][_0x43fc67(0x7c)]),_0x50ba7b=v[_0x43fc67(0x17f)](_0x12a06f,s[_0x43fc67(0x161)]['NONE']),_0x4bf7fa=v[_0x43fc67(0x17f)](_0x161478,''),_0x20b724=v[_0x43fc67(0x17f)](_0x509714,''),[_0x41a515,_0x17edd7]=d['useState'](_0x20b724||''),_0x363957=!0x0,_0x3b1d51=_0x243694[_0x43fc67(0xa3)]&&_0x1f3bd2[_0x43fc67(0x181)]&&(_0x1f3bd2[_0x43fc67(0x181)][_0x43fc67(0xf9)](_0x43fc67(0x1cc))||_0x1f3bd2[_0x43fc67(0x181)][_0x43fc67(0xf9)](_0x43fc67(0xd1))),_0x26c3b7=(_0x320648=_0x1f3bd2[_0x43fc67(0x181)])==null?void 0x0:_0x320648[_0x43fc67(0xf9)](_0x43fc67(0x1cc)),_0xa8b29=(_0x223465=_0x1f3bd2[_0x43fc67(0x181)])==null?void 0x0:_0x223465[_0x43fc67(0xf9)](_0x43fc67(0xd1)),_0x3ce755=_0x26c3b7?_0x43fc67(0xb2):_0x43fc67(0x1d4),_0x1bb2ab=_0x243694[_0x43fc67(0xa3)]&&(_0x26c3b7||_0xa8b29),[_0x5dfe24,_0x500870]=d[_0x43fc67(0x19a)](!_0x41a515[_0x43fc67(0x146)]()),_0x44f440=(_0x3d3e4c,_0x56b039)=>{const _0x214ba5=_0x43fc67;if(_0x56b039===s['MCPConnectionError'][_0x214ba5(0x12f)])return _0x214ba5(0x153);switch(_0x3d3e4c){case s[_0x214ba5(0x100)][_0x214ba5(0x84)]:return _0x214ba5(0x1a9);case s[_0x214ba5(0x100)][_0x214ba5(0x174)]:case s[_0x214ba5(0x100)][_0x214ba5(0xb3)]:return _0x214ba5(0x189);case s[_0x214ba5(0x100)]['FAILED']:return _0x214ba5(0x153);default:return _0x214ba5(0x1f7);}},_0x51d3d3=(_0x33fca0,_0x2429df)=>{const _0x3ef89f=_0x43fc67;if(_0x2429df===s[_0x3ef89f(0x161)][_0x3ef89f(0x12f)])return _0x3ef89f(0x90);switch(_0x33fca0){case s[_0x3ef89f(0x100)][_0x3ef89f(0x84)]:return _0x3ef89f(0x143);case s[_0x3ef89f(0x100)][_0x3ef89f(0x174)]:case s['MCPConnectionStatus'][_0x3ef89f(0xb3)]:return _0x3ef89f(0x158);case s[_0x3ef89f(0x100)][_0x3ef89f(0x1a7)]:return _0x3ef89f(0x90);default:return _0x3ef89f(0x14d);}},_0x43b197=_0x5e91d3=>{const _0x48641b=_0x43fc67;switch(_0x5e91d3){case s[_0x48641b(0x100)][_0x48641b(0x84)]:return _0x9f633['t'](_0x48641b(0x116));case s[_0x48641b(0x100)][_0x48641b(0x174)]:return _0x9f633['t'](_0x48641b(0x1d5));case s[_0x48641b(0x100)][_0x48641b(0x1a7)]:return _0x9f633['t'](_0x48641b(0x1d6));case s[_0x48641b(0x100)][_0x48641b(0xb3)]:return _0x9f633['t'](_0x48641b(0x80));default:return _0x9f633['t'](_0x48641b(0x111));}},_0x47103d=_0x1c49b3=>{const _0x330a28=_0x43fc67;switch(_0x1c49b3){case s['MCPConnectionError']['UNAUTHORIZED']:return _0x9f633['t']('mcpConfig.connectionError.unauthorized');case s[_0x330a28(0x161)][_0x330a28(0x1ae)]:return _0x9f633['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x330a28(0x161)][_0x330a28(0xcd)]:return _0x9f633['t'](_0x330a28(0x7a));case s[_0x330a28(0x161)][_0x330a28(0x1d0)]:return _0x9f633['t'](_0x330a28(0xce));default:return'';}},_0xd99846=d[_0x43fc67(0xe1)](()=>{const _0x10f24a=_0x43fc67,_0x40ccd7={..._0x1f3bd2,'apiKey':_0x41a515[_0x10f24a(0x146)](),'enableAuth':_0x363957};_0x5c4cd8(_0x40ccd7);},[_0x1f3bd2,_0x41a515,_0x363957,_0x5c4cd8]),_0x34d118=_0x41a515[_0x43fc67(0x146)]()[_0x43fc67(0x1a5)]>0x0;return i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x108),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0x1b8),'children':i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0x85),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0x1e3),'children':i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':_0x43fc67(0x19f),'children':'⚙'})}),i['jsx'](_0x43fc67(0x104),{'children':i[_0x43fc67(0x10d)]('p',{'className':_0x43fc67(0x151),'children':_0x9f633['t']('mcpConfig.description')})})]})}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1c7),'children':[i[_0x43fc67(0x10d)]('div',{'className':f[_0x43fc67(0x1da)](_0x43fc67(0x1b7),_0x44f440(_0x589631,_0x50ba7b)),'children':i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1c9),'children':[i['jsx'](_0x43fc67(0x104),{'className':f['clsx'](_0x43fc67(0x139),_0x51d3d3(_0x589631,_0x50ba7b))}),i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':_0x43fc67(0xf1),'children':_0x43b197(_0x589631)})]})}),_0x50ba7b!==s[_0x43fc67(0x161)][_0x43fc67(0x132)]&&(_0x589631===s[_0x43fc67(0x100)][_0x43fc67(0x1a7)]||_0x50ba7b===s[_0x43fc67(0x161)]['UNAUTHORIZED'])&&i[_0x43fc67(0x10d)]('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i['jsxs'](_0x43fc67(0x104),{'className':_0x43fc67(0x14a),'children':[i['jsx']('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x43fc67(0x10d)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x47103d(_0x50ba7b)})]})})]}),i['jsx'](_0x43fc67(0x104),{'className':_0x43fc67(0xc9),'children':i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x14b),'children':[i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1f9),'children':[i[_0x43fc67(0xf0)](_0x43fc67(0x83),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'children':'🔑'}),'\x20',_0x9f633['t'](_0x43fc67(0xbc)),i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':'univer-text-red-500','children':'*'}),_0x3b1d51&&i[_0x43fc67(0x10d)]('a',{'className':_0x43fc67(0x88),'title':_0x9f633['t'](_0x43fc67(0x18f)),'role':_0x43fc67(0x110),'onClick':()=>_0x500870(!0x0),'children':i[_0x43fc67(0x10d)](F,{})})]}),i['jsx'](f['Input'],{'type':_0x43fc67(0x197),'placeholder':_0x9f633['t'](_0x43fc67(0xc5)),'value':_0x41a515,'disabled':_0x38d06d,'autoComplete':_0x43fc67(0x82),'onChange':_0x17edd7}),i[_0x43fc67(0x10d)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x9f633['t'](_0x43fc67(0x102))})]}),_0x3b1d51&&_0x5dfe24&&i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x10e),'children':[i[_0x43fc67(0x10d)]('a',{'className':_0x43fc67(0x1b3),'role':'button','onClick':()=>_0x500870(!0x1),'children':i[_0x43fc67(0x10d)](B,{'className':'univer-size-4'})}),i['jsxs'](_0x43fc67(0x104),{'className':_0x43fc67(0x19e),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0x1f8),'children':i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':'univer-text-blue-600','children':'🚀'})}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x11f),'children':[i[_0x43fc67(0x10d)]('h4',{'className':_0x43fc67(0xf8),'children':_0x9f633['t']('mcpConfig.apiApplyInfo.title')}),i[_0x43fc67(0x10d)]('p',{'className':_0x43fc67(0xd7),'children':_0x9f633['t'](_0x43fc67(0x1bf))}),i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xdd),'children':_0x1bb2ab&&i[_0x43fc67(0xf0)]('a',{'className':_0x43fc67(0x12d),'href':_0x3ce755,'target':_0x43fc67(0x1c0),'rel':_0x43fc67(0x1fd),'children':[i[_0x43fc67(0x10d)]('span',{'children':'🤖'}),_0x9f633['t'](_0x43fc67(0x17e)),i['jsx'](_0x43fc67(0x122),{'className':_0x43fc67(0x1ef),'children':'↗'})]})}),i['jsxs']('div',{'className':_0x43fc67(0x1d2),'children':['✨','\x20',_0x9f633['t'](_0x43fc67(0x1e1))]})]})]})]}),_0x243694[_0x43fc67(0xa3)]&&i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0x1b4),'children':[i[_0x43fc67(0xf0)]('h4',{'className':_0x43fc67(0x140),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'children':'🔗'}),'\x20',_0x9f633['t'](_0x43fc67(0x1ed))]}),i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0x163),'children':[i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0xb5),'children':[i[_0x43fc67(0x10d)]('p',{'className':_0x43fc67(0x124),'children':_0x9f633['t']('mcpConfig.configInstructions')}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1f9),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xcf),'children':_0x9f633['t']('mcpConfig.configStepTitle')}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0xe8),'children':[i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1c9),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':_0x43fc67(0x166),'children':'1'}),_0x9f633['t'](_0x43fc67(0x1d8))]}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x1c9),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':_0x43fc67(0x166),'children':'2'}),_0x9f633['t'](_0x43fc67(0x9a))]}),i[_0x43fc67(0xf0)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x43fc67(0x10d)](_0x43fc67(0x122),{'className':_0x43fc67(0x166),'children':'3'}),_0x9f633['t'](_0x43fc67(0xa9))]})]})]})]}),i['jsxs']('div',{'className':_0x43fc67(0x1f9),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xcf),'children':_0x43fc67(0x1a2)}),i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0x1f0),'children':i[_0x43fc67(0x10d)](_0x43fc67(0x1a8),{'className':_0x43fc67(0x148),'children':JSON[_0x43fc67(0xe4)]({'mcpServers':{'univer':{'url':_0x43fc67(0x1a3)+(_0x4bf7fa||'<SESSION_ID>'),'type':_0x43fc67(0x186),'headers':{'Authorization':_0x43fc67(0x15c)+(_0x41a515||_0x43fc67(0x18c))}}}},null,0x2)})})]}),i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0xb5),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xcf),'children':_0x9f633['t'](_0x43fc67(0xb1))}),i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0x1f9),'children':[i['jsxs'](_0x43fc67(0x104),{'className':_0x43fc67(0x123),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xf7)}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0x8b),'children':[i['jsx'](_0x43fc67(0x104),{'className':_0x43fc67(0x93),'children':'univer_session_id:'}),i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0xec),'children':_0x9f633['t'](_0x43fc67(0xc8))})]})]}),i['jsxs'](_0x43fc67(0x104),{'className':_0x43fc67(0x123),'children':[i['jsx'](_0x43fc67(0x104),{'className':_0x43fc67(0xf7)}),i['jsxs'](_0x43fc67(0x104),{'className':_0x43fc67(0x8b),'children':[i['jsx'](_0x43fc67(0x104),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x9f633['t'](_0x43fc67(0x1a1))})]})]})]})]})]})]}),i[_0x43fc67(0x10d)](f['Button'],{'onClick':_0xd99846,'disabled':!_0x34d118||_0x38d06d,'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':_0x38d06d?i[_0x43fc67(0xf0)]('span',{'className':_0x43fc67(0x1c9),'children':[i['jsx']('span',{'children':'⟲'}),_0x9f633['t']('mcpConfig.saving')]}):i[_0x43fc67(0xf0)](_0x43fc67(0x122),{'className':_0x43fc67(0x1c9),'children':[i[_0x43fc67(0x10d)](H,{}),_0x9f633['t'](_0x43fc67(0x126))]})}),i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':_0x43fc67(0x113),'children':i[_0x43fc67(0xf0)]('div',{'className':_0x43fc67(0x199),'children':[i[_0x43fc67(0x10d)]('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i[_0x43fc67(0xf0)](_0x43fc67(0x104),{'className':_0x43fc67(0xbe),'children':[i[_0x43fc67(0x10d)](_0x43fc67(0x104),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),i['jsxs'](_0x43fc67(0x104),{'children':['•',_0x9f633['t'](_0x43fc67(0xd4))]}),i['jsxs']('div',{'children':['•',_0x9f633['t']('mcpConfig.note2')]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x227188(0x101)],xe=(_0x336acb,_0x3ebfb3,_0x3da4c3,_0x244a49)=>{const _0x6b6d00=_0x227188;for(var _0x473c29=_0x244a49>0x1?void 0x0:_0x244a49?me(_0x3ebfb3,_0x3da4c3):_0x3ebfb3,_0x3c37c5=_0x336acb[_0x6b6d00(0x1a5)]-0x1,_0x564a2d;_0x3c37c5>=0x0;_0x3c37c5--)(_0x564a2d=_0x336acb[_0x3c37c5])&&(_0x473c29=_0x564a2d(_0x473c29)||_0x473c29);return _0x473c29;},g=(_0x364c6a,_0x321f0f)=>(_0x3529d7,_0x4fb727)=>_0x321f0f(_0x3529d7,_0x4fb727,_0x364c6a);const O=_0x227188(0xdf),D=_0x227188(0x1ea);exports[_0x227188(0xcb)]=class extends u[_0x227188(0xee)]{constructor(_0x5e0ad3,_0x121287,_0xdf598e,_0x1b45b8,_0x2ba507,_0x21b79a,_0x379f84,_0x460e1a,_0x1aa722,_0x20e0d9){const _0x506f10=_0x227188;super(),I(this,_0x506f10(0x1e0),new M['BehaviorSubject'](!0x1)),I(this,_0x506f10(0x172),new M[(_0x506f10(0xf6))]({})),I(this,_0x506f10(0x1f2),new M[(_0x506f10(0xf6))]({})),I(this,_0x506f10(0x1de),new M[(_0x506f10(0xf6))]('')),I(this,_0x506f10(0x18a),async _0x1cd2e7=>{const _0x29999c=_0x506f10;var _0x51f0db,_0x3ad1bf;this[_0x29999c(0x1e0)][_0x29999c(0xed)](!0x0);try{const _0x4184c4=await this[_0x29999c(0xc6)](_0x1cd2e7);if(!_0x4184c4[_0x29999c(0x177)]){this[_0x29999c(0xa5)][_0x29999c(0x154)]({'type':f['MessageType'][_0x29999c(0xe9)],'content':_0x4184c4[_0x29999c(0xba)]||this[_0x29999c(0xaf)]['t'](_0x29999c(0xfe))});return;}_0x1cd2e7[_0x29999c(0x1e9)]?await this[_0x29999c(0x15d)][_0x29999c(0x149)](O,_0x1cd2e7[_0x29999c(0x1e9)][_0x29999c(0x146)]()):await this['_localStorageService'][_0x29999c(0x1b9)](O),this[_0x29999c(0x1de)][_0x29999c(0xed)](((_0x51f0db=_0x1cd2e7[_0x29999c(0x1e9)])==null?void 0x0:_0x51f0db[_0x29999c(0x146)]())||''),this[_0x29999c(0x114)][_0x29999c(0x180)]({'Authorization':_0x29999c(0x15c)+((_0x3ad1bf=_0x1cd2e7['apiKey'])==null?void 0x0:_0x3ad1bf[_0x29999c(0x146)]())}),this[_0x29999c(0xa5)][_0x29999c(0x154)]({'type':f[_0x29999c(0xe5)]['Success'],'content':this['_localeService']['t'](_0x29999c(0x15b))}),setTimeout(()=>{const _0x245b82=_0x29999c;this[_0x245b82(0x142)][_0x245b82(0x1db)](D);},0x320);}catch(_0x5c3b32){this[_0x29999c(0x1d3)][_0x29999c(0x10f)](_0x29999c(0x164),_0x5c3b32),this[_0x29999c(0xa5)][_0x29999c(0x154)]({'type':f[_0x29999c(0xe5)][_0x29999c(0xe9)],'content':this['_localeService']['t']('mcpConfig.configError')});}finally{this[_0x29999c(0x1e0)][_0x29999c(0xed)](!0x1);}}),(this[_0x506f10(0x10a)]=_0x5e0ad3,this['_uiPartsService']=_0x121287,this['_configService']=_0xdf598e,this[_0x506f10(0x15d)]=_0x1b45b8,this['_dialogService']=_0x2ba507,this['_messageService']=_0x21b79a,this[_0x506f10(0x9b)]=_0x379f84,this[_0x506f10(0xaf)]=_0x460e1a,this[_0x506f10(0x1d3)]=_0x1aa722,this['_mcpConnectionController']=_0x20e0d9,this[_0x506f10(0xa6)](),this[_0x506f10(0x1ab)](),this[_0x506f10(0x120)]());}[_0x227188(0x128)](){const _0x567290=_0x227188,_0x77ae78=this['_configService']['getConfig'](P);_0x77ae78!=null&&_0x77ae78[_0x567290(0xa3)]&&this[_0x567290(0x142)]['open']({'id':D,'title':{'title':this[_0x567290(0xaf)]['t'](_0x567290(0x97))},'children':{'label':_0x567290(0x183)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x33bec4=_0x567290;this['_dialogService'][_0x33bec4(0x1db)](D);}});}['getCurrentConfig'](){const _0x5fd802=_0x227188;return this[_0x5fd802(0x172)][_0x5fd802(0x1c4)];}[_0x227188(0x120)](){const _0x41412f=_0x227188;this[_0x41412f(0x8e)](this[_0x41412f(0x9b)]['register'](_0x41412f(0x183),this[_0x41412f(0xa8)]()));}[_0x227188(0xa8)](){const _0x29c4dc=_0x227188;return v[_0x29c4dc(0x176)](()=>{const _0x17b84f=_0x29c4dc;var _0x1502e5,_0x288454,_0x365c5d;return i['jsx'](V,{'config':this[_0x17b84f(0x1f2)][_0x17b84f(0x1c4)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x17b84f(0x1c4)],'currentApiKey$':this[_0x17b84f(0x1de)],'onSave':this[_0x17b84f(0x18a)],'loading':this['_loading$'][_0x17b84f(0x1c4)],'connectionStatus$':(_0x1502e5=this[_0x17b84f(0x114)])==null?void 0x0:_0x1502e5['connectionStatus$'],'connectionError$':(_0x288454=this[_0x17b84f(0x114)])==null?void 0x0:_0x288454[_0x17b84f(0xbf)],'currentSessionId$':(_0x365c5d=this['_mcpConnectionController'])==null?void 0x0:_0x365c5d['sessionId$']});},this['_injector']);}[_0x227188(0xa6)](){const _0xb531f9=_0x227188;this['disposeWithMe'](this[_0xb531f9(0x185)]['subscribeConfigValue$'](s[_0xb531f9(0x125)])[_0xb531f9(0x1c1)](_0x3d7039=>{const _0x11a916=_0xb531f9;this[_0x11a916(0x172)]['next'](_0x3d7039||{});}));const _0x49d585=this[_0xb531f9(0x185)][_0xb531f9(0x94)](s[_0xb531f9(0x125)]);this['_mcpCoreConfig$'][_0xb531f9(0xed)](_0x49d585||{}),this[_0xb531f9(0x8e)](this[_0xb531f9(0x185)][_0xb531f9(0x195)](P)[_0xb531f9(0x1c1)](_0x445117=>{this['_config$']['next'](_0x445117||{});}));const _0x5a6a90=this[_0xb531f9(0x185)][_0xb531f9(0x94)](P);this[_0xb531f9(0x1f2)][_0xb531f9(0xed)](_0x5a6a90||{});}async[_0x227188(0x1ab)](){const _0x397068=_0x227188,_0x29e91e=this[_0x397068(0x185)][_0x397068(0x94)](P);if(!(_0x29e91e!=null&&_0x29e91e[_0x397068(0xa3)]))return;const _0x4297c2=await this[_0x397068(0x15d)][_0x397068(0xac)](O);_0x4297c2&&(this[_0x397068(0x114)][_0x397068(0x180)]({'Authorization':_0x397068(0x15c)+_0x4297c2}),this[_0x397068(0x1de)][_0x397068(0xed)](_0x4297c2));}async['_validateConfig'](_0x117e02){const _0x14dac8=_0x227188;if(!_0x117e02[_0x14dac8(0x1e9)]||_0x117e02[_0x14dac8(0x1e9)]['trim']()[_0x14dac8(0x1a5)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x14dac8(0xaf)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x117e02[_0x14dac8(0x1e9)][_0x14dac8(0x146)]()[_0x14dac8(0x1a5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x14dac8(0xaf)]['t'](_0x14dac8(0x8c))};try{const _0x550289=await this[_0x14dac8(0x10a)][_0x14dac8(0x1a4)](s['MCPConnectionController'])[_0x14dac8(0x19c)](_0x117e02[_0x14dac8(0x1e9)][_0x14dac8(0x146)]());return _0x550289[_0x14dac8(0x177)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x550289['error']||this[_0x14dac8(0xaf)]['t'](_0x14dac8(0x179))};}catch(_0x42927f){return console[_0x14dac8(0x15f)](_0x14dac8(0x133),_0x42927f),{'isValid':!0x0};}}},exports[_0x227188(0xcb)]=xe([g(0x0,u[_0x227188(0xc3)](u[_0x227188(0x86)])),g(0x1,v[_0x227188(0xef)]),g(0x2,u[_0x227188(0x91)]),g(0x3,u[_0x227188(0x134)]),g(0x4,v[_0x227188(0x167)]),g(0x5,v[_0x227188(0x13c)]),g(0x6,u[_0x227188(0xc3)](v[_0x227188(0xfa)])),g(0x7,u[_0x227188(0xc3)](u[_0x227188(0x138)])),g(0x8,u[_0x227188(0x150)]),g(0x9,u[_0x227188(0xc3)](s['MCPConnectionController']))],exports['MCPConfigUIController']);const b={'id':'mcp-ui.command.openConfigPanel','type':u['CommandType'][_0x227188(0x1ac)],'handler':async(_0x45ec67,_0x29a07d)=>(_0x45ec67[_0x227188(0x1a4)](exports[_0x227188(0xcb)])[_0x227188(0x128)](),!0x0)};function Z(_0x47f6bd,_0x30b8d3){const _0x190138=_0x227188;switch(_0x47f6bd){case s['MCPConnectionStatus'][_0x190138(0x7c)]:return _0x190138(0x170);case s[_0x190138(0x100)][_0x190138(0x174)]:return _0x190138(0xb7);case s[_0x190138(0x100)][_0x190138(0x84)]:return _0x190138(0x1b2);case s[_0x190138(0x100)][_0x190138(0x1a7)]:switch(_0x30b8d3){case s['MCPConnectionError'][_0x190138(0x12f)]:return _0x190138(0x1ad);case s[_0x190138(0x161)][_0x190138(0x1ae)]:return'mcpStatus.sessionOccupied';case s[_0x190138(0x161)][_0x190138(0xcd)]:return _0x190138(0x1e7);case s[_0x190138(0x161)][_0x190138(0x1d0)]:return _0x190138(0x1eb);default:return _0x190138(0x16c);}case s[_0x190138(0x100)][_0x190138(0xb3)]:return _0x190138(0xbb);default:return _0x190138(0x198);}}function Se(_0x1ce73a,_0x163b39,_0x14d619,_0x2fcf0a=!0x0){const _0x54e52e=_0x227188,_0x2ab28c=Z(_0x1ce73a,_0x163b39),_0x5b206f=_0x14d619['t'](_0x2ab28c);return _0x2fcf0a?_0x1ce73a===s[_0x54e52e(0x100)]['DISCONNECTED']&&_0x163b39===s[_0x54e52e(0x161)][_0x54e52e(0x12f)]?_0x5b206f+_0x54e52e(0x1c3)+_0x14d619['t'](_0x54e52e(0x1b0)):_0x1ce73a===s['MCPConnectionStatus'][_0x54e52e(0x84)]?''+_0x5b206f:_0x1ce73a===s[_0x54e52e(0x100)]['DISCONNECTED']||_0x1ce73a===s[_0x54e52e(0x100)][_0x54e52e(0x1a7)]?_0x5b206f+_0x54e52e(0x1c3)+_0x14d619['t']('mcpStatus.clickToConnect'):_0x5b206f:_0x5b206f;}function Pe(_0xfd9ab3){const _0x24e953=_0x227188;switch(_0xfd9ab3){case s[_0x24e953(0x100)][_0x24e953(0x84)]:return _0x24e953(0x19b);case s[_0x24e953(0x100)][_0x24e953(0x174)]:case s[_0x24e953(0x100)][_0x24e953(0xb3)]:return _0x24e953(0x10c);case s[_0x24e953(0x100)][_0x24e953(0x1a7)]:case s[_0x24e953(0x100)][_0x24e953(0x7c)]:return'univer-text-red-500';default:return _0x24e953(0x1d1);}}function W(_0x4de58a){const _0x22ec63=_0x227188,{status$:_0x548e8a,error$:_0x24d123,onConfigure:_0x59a3ef,showClickable:_0x10dadf=!0x0}=_0x4de58a,_0xbacae5=v['useObservable'](_0x548e8a,s['MCPConnectionStatus'][_0x22ec63(0x7c)]),_0x1d9352=v[_0x22ec63(0x17f)](_0x24d123,s[_0x22ec63(0x161)][_0x22ec63(0x132)]),_0xfe1f36=v[_0x22ec63(0xa4)](u[_0x22ec63(0x138)]),_0x151bfa=_0xbacae5===s[_0x22ec63(0x100)][_0x22ec63(0x84)];_0xbacae5===s[_0x22ec63(0x100)][_0x22ec63(0x174)]||s['MCPConnectionStatus'][_0x22ec63(0xb3)];const _0x51df71=_0xfe1f36['t'](Z(_0xbacae5,_0x1d9352)),_0x3800bb=Se(_0xbacae5,_0x1d9352,_0xfe1f36,_0x10dadf),_0x2af884=Pe(_0xbacae5),_0x550ae6=_0x151bfa?i[_0x22ec63(0x10d)](q,{}):i[_0x22ec63(0x10d)](Y,{}),_0x76ec34=d[_0x22ec63(0xe1)](()=>{_0x10dadf&&_0x59a3ef&&_0x59a3ef();},[_0x10dadf,_0x59a3ef]);function _0x5753b0(){const _0x28a2c6=_0x22ec63;return i[_0x28a2c6(0xf0)]('div',{'className':f[_0x28a2c6(0x1da)](_0x28a2c6(0xd6),_0x10dadf&&_0x59a3ef&&_0x28a2c6(0xd8)),'role':_0x28a2c6(0x110),'onClick':_0x10dadf&&_0x59a3ef?_0x76ec34:void 0x0,'children':[i['jsx'](_0x28a2c6(0x104),{'className':f[_0x28a2c6(0x1da)](_0x28a2c6(0x13a),_0x2af884),'children':_0x550ae6}),i[_0x28a2c6(0x10d)](_0x28a2c6(0x104),{'className':_0x28a2c6(0xe0),'children':_0x51df71})]});}return i[_0x22ec63(0x10d)](f['Tooltip'],{'title':_0x3800bb,'placement':_0x22ec63(0x131),'children':_0x5753b0()});}var Ie=Object[_0x227188(0x101)],_e=(_0x597a46,_0x331b2c,_0x2176b8,_0x38634e)=>{const _0x2cd8a5=_0x227188;for(var _0x3ad508=_0x38634e>0x1?void 0x0:_0x38634e?Ie(_0x331b2c,_0x2176b8):_0x331b2c,_0x47ef66=_0x597a46[_0x2cd8a5(0x1a5)]-0x1,_0x1b2950;_0x47ef66>=0x0;_0x47ef66--)(_0x1b2950=_0x597a46[_0x47ef66])&&(_0x3ad508=_0x1b2950(_0x3ad508)||_0x3ad508);return _0x3ad508;},N=(_0x414529,_0x361b06)=>(_0x599025,_0x45daff)=>_0x361b06(_0x599025,_0x45daff,_0x414529);exports[_0x227188(0x1c6)]=class extends u[_0x227188(0xee)]{constructor(_0x4b8cc3,_0x16bfab,_0x4d37d3,_0x2a2be4){const _0xe8fb14=_0x227188;super(),this[_0xe8fb14(0x10a)]=_0x4b8cc3,this['_connectionController']=_0x16bfab,this['_uiPartsService']=_0x4d37d3,this[_0xe8fb14(0x185)]=_0x2a2be4,this[_0xe8fb14(0xd9)](),this[_0xe8fb14(0x11b)]();}[_0x227188(0xd9)](){const _0x459cca=_0x227188,_0x3b6322=this[_0x459cca(0x185)][_0x459cca(0x94)](P);_0x3b6322!=null&&_0x3b6322[_0x459cca(0xa3)]&&(this[_0x459cca(0x1fb)][_0x459cca(0x1aa)]=!0x1);}[_0x227188(0x11b)](){const _0x416991=_0x227188,_0x5e5682=this[_0x416991(0x185)]['getConfig'](P);(_0x5e5682==null?void 0x0:_0x5e5682[_0x416991(0x16f)])!==!0x1&&this[_0x416991(0x8e)](this[_0x416991(0xe7)][_0x416991(0x1e8)](v[_0x416991(0x13f)][_0x416991(0xdb)],()=>{const _0x526375=_0x416991;var _0xfea4bb;return v[_0x526375(0x176)](ye({'status$':this[_0x526375(0x1fb)]['connectionStatus$'],'error$':this[_0x526375(0x1fb)][_0x526375(0xbf)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0xfea4bb=_0x5e5682==null?void 0x0:_0x5e5682[_0x526375(0xa3)])!=null?_0xfea4bb:!0x1}),this[_0x526375(0x10a)]);}));}[_0x227188(0x15a)](){const _0x140f25=_0x227188;this[_0x140f25(0x10a)][_0x140f25(0x1a4)](exports[_0x140f25(0xcb)])[_0x140f25(0x128)]();}},exports[_0x227188(0x1c6)]=_e([N(0x0,u[_0x227188(0xc3)](u[_0x227188(0x86)])),N(0x1,u['Inject'](s['MCPConnectionController'])),N(0x2,v[_0x227188(0xef)]),N(0x3,u[_0x227188(0x91)])],exports['MCPConnectionUIController']);function ye(_0x435cfc){const {status$:_0x1af811,error$:_0x3b40c6,onConfigure:_0x112823,showClickable:_0x648104}=_0x435cfc;return function(){const _0x49d051=_0x4c59;return i[_0x49d051(0x10d)](W,{'status$':_0x1af811,'error$':_0x3b40c6,'onConfigure':_0x112823,'showClickable':_0x648104});};}function Me(_0x27c785){const _0x4cd665=_0x227188;return{'id':b['id'],'type':v[_0x4cd665(0x8d)][_0x4cd665(0x17c)],'icon':_0x4cd665(0x13b),'title':_0x4cd665(0x97),'tooltip':_0x4cd665(0x97)};}const Ne={[v[_0x227188(0x152)][_0x227188(0xb8)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x227188(0x101)],je=(_0x2505e9,_0x525526,_0xbc42c2,_0x4d7b1a)=>{const _0x2f665c=_0x227188;for(var _0x403045=_0x4d7b1a>0x1?void 0x0:_0x4d7b1a?be(_0x525526,_0xbc42c2):_0x525526,_0x16a916=_0x2505e9[_0x2f665c(0x1a5)]-0x1,_0x3f0167;_0x16a916>=0x0;_0x16a916--)(_0x3f0167=_0x2505e9[_0x16a916])&&(_0x403045=_0x3f0167(_0x403045)||_0x403045);return _0x403045;},z=(_0x216274,_0x2c5376)=>(_0x7aacd3,_0x3b7bba)=>_0x2c5376(_0x7aacd3,_0x3b7bba,_0x216274);exports[_0x227188(0x89)]=class extends u['Disposable']{constructor(_0x69c793,_0x5a8281){const _0xfaa638=_0x227188;super(),this['_commandService']=_0x69c793,this[_0xfaa638(0xa2)]=_0x5a8281,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x24e19a=_0x227188;[b][_0x24e19a(0x169)](_0x4d5bff=>{const _0x7990f6=_0x24e19a;this[_0x7990f6(0x8e)](this[_0x7990f6(0x96)][_0x7990f6(0x87)](_0x4d5bff));});}[_0x227188(0xda)](){const _0x535e93=_0x227188;this[_0x535e93(0xa2)]['mergeMenu'](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0x227188(0x184)]),z(0x1,v[_0x227188(0x1ec)])],exports[_0x227188(0x89)]);const Ee={'mcpStatus':{'disconnected':_0x227188(0x103),'connecting':_0x227188(0x16b),'connected':'MCP\x20Connected','failed':_0x227188(0x81),'retrying':_0x227188(0x12c),'unknown':_0x227188(0x14e),'unauthorized':_0x227188(0x1cd),'sessionOccupied':_0x227188(0x1dc),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x227188(0x121),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x227188(0x1ff)},'mcpConfig':{'title':_0x227188(0x1a2),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x227188(0x129),'apiKeyPlaceholder':_0x227188(0x1f1),'apiKeyHint':_0x227188(0x1f5),'enableAuth':_0x227188(0x144),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x227188(0x182),'mcpClientConfig':_0x227188(0x182),'configInstructions':_0x227188(0x8a),'configStepTitle':_0x227188(0x12b),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x227188(0x1ba),'sessionId':'Session\x20ID','sessionIdDescription':_0x227188(0x1ca),'authorizationDescription':_0x227188(0x1df),'configParameters':_0x227188(0x1d9),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x227188(0x1c5),'note1':_0x227188(0x190),'note2':_0x227188(0x7e),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x227188(0x17d),'apiApplyInfo':{'title':_0x227188(0xd2),'description':_0x227188(0xd0),'univerAiLabel':_0x227188(0x99),'getStarted':_0x227188(0xf4)},'validation':{'apiKeyRequired':_0x227188(0xb9),'apiKeyTooShort':_0x227188(0xc7),'invalidConfig':_0x227188(0x157),'invalidApiKey':_0x227188(0x1bb)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x227188(0x1fe),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x227188(0x168)},'connectionError':{'unauthorized':_0x227188(0x1af),'sessionOccupied':_0x227188(0x7d),'networkError':_0x227188(0x127),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':_0x227188(0x1f4),'connecting':_0x227188(0xde),'connected':_0x227188(0x9e),'failed':_0x227188(0x173),'retrying':'MCP\x20重连中...','unknown':_0x227188(0x16a),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x227188(0x7f),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x227188(0x1fa),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x227188(0x1ee)},'mcpConfig':{'title':'MCP\x20配置','description':_0x227188(0x1b5),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x227188(0xad),'apiKeyHint':_0x227188(0x1e2),'enableAuth':_0x227188(0x201),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x227188(0x1a0),'mcpClientConfig':_0x227188(0x1a0),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x227188(0x1e5),'configStep1':_0x227188(0xfd),'configStep2':_0x227188(0x98),'configStep3':_0x227188(0x162),'sessionId':_0x227188(0x145),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x227188(0x16d),'configParameters':'配置参数:','maxRetries':_0x227188(0xa7),'save':_0x227188(0x1bc),'saving':_0x227188(0x1c2),'note1':_0x227188(0x191),'note2':_0x227188(0x14f),'configSaved':'配置保存成功','configError':_0x227188(0x1e6),'apiApplyInfo':{'title':_0x227188(0x14c),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x227188(0xb0),'getStarted':_0x227188(0xd3)},'validation':{'apiKeyRequired':_0x227188(0xf2),'apiKeyTooShort':_0x227188(0x1b1),'invalidConfig':_0x227188(0x171),'invalidApiKey':_0x227188(0x109)},'connectionStatus':{'disconnected':_0x227188(0x1fc),'connecting':_0x227188(0x147),'connected':'已连接','failed':_0x227188(0x192),'retrying':_0x227188(0xea)},'connectionError':{'unauthorized':_0x227188(0xb4),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x227188(0xca),'maxRetriesExceeded':_0x227188(0x18b)}}};var Ae=Object[_0x227188(0x188)],Oe=Object[_0x227188(0x101)],De=(_0x22594c,_0x5c795b,_0x1cfd93)=>_0x5c795b in _0x22594c?Ae(_0x22594c,_0x5c795b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cfd93}):_0x22594c[_0x5c795b]=_0x1cfd93,Ue=(_0x58fe6b,_0xde7585,_0x1ddf9f,_0x2da0ab)=>{for(var _0x3f9183=_0x2da0ab>0x1?void 0x0:_0x2da0ab?Oe(_0xde7585,_0x1ddf9f):_0xde7585,_0x185eca=_0x58fe6b['length']-0x1,_0x34fef4;_0x185eca>=0x0;_0x185eca--)(_0x34fef4=_0x58fe6b[_0x185eca])&&(_0x3f9183=_0x34fef4(_0x3f9183)||_0x3f9183);return _0x3f9183;},y=(_0x1753de,_0x1ad2da)=>(_0x26bf69,_0x51e8bf)=>_0x1ad2da(_0x26bf69,_0x51e8bf,_0x1753de),$e=(_0x4ac1de,_0x13beda,_0x1328a6)=>De(_0x4ac1de,_0x13beda+'',_0x1328a6);exports['UniverMCPUIPlugin']=class extends u['Plugin']{constructor(_0x4ab6e9=L,_0x2b9d66,_0x4abc92,_0x40c1e8,_0x390e55,_0x234d0a){const _0x6b91ec=_0x227188;super(),this[_0x6b91ec(0x155)]=_0x4ab6e9,this[_0x6b91ec(0x10a)]=_0x2b9d66,this['_configService']=_0x4abc92,this['_uiPartsService']=_0x40c1e8,this[_0x6b91ec(0x15d)]=_0x390e55,this[_0x6b91ec(0xaf)]=_0x234d0a;const {..._0x57550f}=u[_0x6b91ec(0x187)]({},L,this['_config']);this[_0x6b91ec(0x185)][_0x6b91ec(0x105)](P,_0x57550f);}async[_0x227188(0x16e)](){const _0x44b662=_0x227188,_0x233b9a=[[exports[_0x44b662(0x1c6)]],[exports['MCPConfigUIController']],[exports[_0x44b662(0x89)]]];this['_injector'][_0x44b662(0x17b)](A[_0x44b662(0x10b)])||_0x233b9a['push']([A[_0x44b662(0x10b)],{'useClass':A['WebSocketService']}]),_0x233b9a[_0x44b662(0x169)](_0x5e36d3=>this['_injector'][_0x44b662(0xb6)](_0x5e36d3)),this['_injector'][_0x44b662(0x1a4)](exports['MCPConnectionUIController']),this['_injector']['get'](exports[_0x44b662(0xcb)]),this[_0x44b662(0x10a)]['get'](exports[_0x44b662(0x89)]);}},$e(exports[_0x227188(0x106)],'pluginName','MCP_UI_PLUGIN'),exports[_0x227188(0x106)]=Ue([u[_0x227188(0xe6)](s[_0x227188(0x136)]),y(0x1,u[_0x227188(0xc3)](u[_0x227188(0x86)])),y(0x2,u[_0x227188(0x91)]),y(0x3,v['IUIPartsService']),y(0x4,u[_0x227188(0x134)]),y(0x5,u[_0x227188(0xc3)](u[_0x227188(0x138)]))],exports['UniverMCPUIPlugin']),exports[_0x227188(0x183)]=V,exports[_0x227188(0xc0)]=W,exports[_0x227188(0x1d7)]=b,exports[_0x227188(0x194)]=Ee,exports['zhCN']=we;
1
+ 'use strict';const _0x29ead5=_0x3e67;(function(_0x2a65bb,_0x2857fe){const _0x401713=_0x3e67,_0x5b1eb3=_0x2a65bb();while(!![]){try{const _0x40dbf5=parseInt(_0x401713(0x275))/0x1+-parseInt(_0x401713(0x15a))/0x2+-parseInt(_0x401713(0x1b9))/0x3*(-parseInt(_0x401713(0x220))/0x4)+-parseInt(_0x401713(0x151))/0x5*(parseInt(_0x401713(0x227))/0x6)+-parseInt(_0x401713(0x259))/0x7*(parseInt(_0x401713(0x153))/0x8)+-parseInt(_0x401713(0x291))/0x9+parseInt(_0x401713(0x1be))/0xa*(parseInt(_0x401713(0x159))/0xb);if(_0x40dbf5===_0x2857fe)break;else _0x5b1eb3['push'](_0x5b1eb3['shift']());}catch(_0x3e79b6){_0x5b1eb3['push'](_0x5b1eb3['shift']());}}}(_0x45bd,0xa5251));var ae=Object[_0x29ead5(0x1f3)],le=(_0x599cb2,_0x268904,_0x1cddae)=>_0x268904 in _0x599cb2?ae(_0x599cb2,_0x268904,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cddae}):_0x599cb2[_0x268904]=_0x1cddae,I=(_0x51d521,_0x45f104,_0xf7044)=>le(_0x51d521,typeof _0x45f104!=_0x29ead5(0x121)?_0x45f104+'':_0x45f104,_0xf7044);Object[_0x29ead5(0x1f3)](exports,Symbol[_0x29ead5(0x20a)],{'value':'Module'});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x23d710,..._0x26fdf1}){const _0x2093b7=_0x29ead5,{icon:_0x19b08b,id:_0x3e5b1d,className:_0x2b56d3,extend:_0x33cf23,..._0x3640d5}=_0x26fdf1,_0x5ae66b=(_0x2093b7(0x1a8)+_0x3e5b1d+'\x20'+(_0x2b56d3||''))[_0x2093b7(0x277)](),_0x2466de=d[_0x2093b7(0x263)]('_'+de());return G(_0x19b08b,''+_0x3e5b1d,{'defIds':_0x19b08b[_0x2093b7(0x12b)],'idSuffix':_0x2466de[_0x2093b7(0x14b)]},{'ref':_0x23d710,'className':_0x5ae66b,..._0x3640d5},_0x33cf23);}function G(_0x548f77,_0x2ba4d5,_0x453920,_0x80c7c9,_0x51d215){const _0xfd71a3=_0x29ead5;return d[_0xfd71a3(0x22c)](_0x548f77[_0xfd71a3(0x120)],{'key':_0x2ba4d5,...ue(_0x548f77,_0x453920,_0x51d215),..._0x80c7c9},(ve(_0x548f77,_0x453920)[_0xfd71a3(0x23e)]||[])['map']((_0x3cb8d7,_0x50325d)=>G(_0x3cb8d7,_0x2ba4d5+'-'+_0x548f77[_0xfd71a3(0x120)]+'-'+_0x50325d,_0x453920,void 0x0,_0x51d215)));}function ue(_0x19ad36,_0x4fd6d0,_0x6038fa){const _0xcd0568=_0x29ead5,_0x1a05e3={..._0x19ad36[_0xcd0568(0x125)]};_0x6038fa!=null&&_0x6038fa[_0xcd0568(0x12d)]&&_0x1a05e3[_0xcd0568(0x24e)]==='colorChannel1'&&(_0x1a05e3['fill']=_0x6038fa['colorChannel1']),_0x19ad36['tag']===_0xcd0568(0x25a)&&_0x1a05e3['id']&&(_0x1a05e3['id']=_0x1a05e3['id']+_0x4fd6d0[_0xcd0568(0x21c)]),Object['entries'](_0x1a05e3)[_0xcd0568(0x19f)](([_0x591f09,_0x5ccb2])=>{const _0x4d683e=_0xcd0568;_0x591f09===_0x4d683e(0x25a)&&typeof _0x5ccb2=='string'&&(_0x1a05e3[_0x591f09]=_0x5ccb2['replace'](/url\(#(.*)\)/,_0x4d683e(0x18a)+_0x4fd6d0[_0x4d683e(0x21c)]+')'));});const {defIds:_0x143183}=_0x4fd6d0;return!_0x143183||_0x143183[_0xcd0568(0x214)]===0x0||(_0x19ad36[_0xcd0568(0x120)]==='use'&&_0x1a05e3['xlink:href']&&(_0x1a05e3[_0xcd0568(0x28a)]=_0x1a05e3[_0xcd0568(0x28a)]+_0x4fd6d0[_0xcd0568(0x21c)]),Object['entries'](_0x1a05e3)[_0xcd0568(0x19f)](([_0x46d651,_0x151f62])=>{const _0x4631fd=_0xcd0568;typeof _0x151f62=='string'&&(_0x1a05e3[_0x46d651]=_0x151f62['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4fd6d0[_0x4631fd(0x21c)]+')'));})),_0x1a05e3;}function ve(_0x109784,_0x233a17){const _0x8f65b9=_0x29ead5;var _0x530792;const {defIds:_0x2e1809}=_0x233a17;return!_0x2e1809||_0x2e1809[_0x8f65b9(0x214)]===0x0?_0x109784:_0x109784['tag']==='defs'&&((_0x530792=_0x109784[_0x8f65b9(0x23e)])!=null&&_0x530792[_0x8f65b9(0x214)])?{..._0x109784,'children':_0x109784[_0x8f65b9(0x23e)][_0x8f65b9(0x28b)](_0x26ac7e=>typeof _0x26ac7e[_0x8f65b9(0x125)]['id']==_0x8f65b9(0x11b)&&_0x2e1809&&_0x2e1809['includes'](_0x26ac7e['attrs']['id'])?{..._0x26ac7e,'attrs':{..._0x26ac7e[_0x8f65b9(0x125)],'id':_0x26ac7e['attrs']['id']+_0x233a17[_0x8f65b9(0x21c)]}}:_0x26ac7e)}:_0x109784;}function de(){const _0x5072fa=_0x29ead5;return Math['random']()[_0x5072fa(0x1f4)](0x24)['substring'](0x2,0x8);}_['displayName']=_0x29ead5(0x1e2);const Ce={'tag':_0x29ead5(0x184),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x29ead5(0x139),'viewBox':_0x29ead5(0x1bd),'width':_0x29ead5(0x248),'height':_0x29ead5(0x248)},'children':[{'tag':'path','attrs':{'fill':_0x29ead5(0x179),'d':_0x29ead5(0x1e1),'fillRule':'evenodd','clipRule':_0x29ead5(0x188)}}]},H=d['forwardRef'](function(_0x23e9b7,_0x50508d){const _0x33e4da=_0x29ead5;return d['createElement'](_,Object[_0x33e4da(0x20c)]({},_0x23e9b7,{'id':_0x33e4da(0x1c8),'ref':_0x50508d,'icon':Ce}));});H['displayName']=_0x29ead5(0x152);const ge={'tag':_0x29ead5(0x184),'attrs':{'xmlns':_0x29ead5(0x258),'fill':_0x29ead5(0x139),'viewBox':_0x29ead5(0x1bd),'width':_0x29ead5(0x248),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x29ead5(0x23a)}}]},B=d['forwardRef'](function(_0x5a096e,_0xb473e3){const _0x52d12e=_0x29ead5;return d[_0x52d12e(0x22c)](_,Object[_0x52d12e(0x20c)]({},_0x5a096e,{'id':_0x52d12e(0x1ae),'ref':_0xb473e3,'icon':ge}));});B[_0x29ead5(0x192)]=_0x29ead5(0x1ca);const fe={'tag':_0x29ead5(0x184),'attrs':{'xmlns':_0x29ead5(0x258),'fill':_0x29ead5(0x139),'viewBox':_0x29ead5(0x1bd),'width':_0x29ead5(0x248),'height':_0x29ead5(0x248)},'children':[{'tag':_0x29ead5(0x205),'attrs':{'fill':_0x29ead5(0x179),'d':_0x29ead5(0x143)}},{'tag':_0x29ead5(0x205),'attrs':{'fill':_0x29ead5(0x179),'d':_0x29ead5(0x193)}},{'tag':_0x29ead5(0x205),'attrs':{'fill':'currentColor','d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x29ead5(0x188),'clipRule':_0x29ead5(0x188)}}]},F=d[_0x29ead5(0x289)](function(_0x584702,_0x36f881){const _0xdeb1b4=_0x29ead5;return d[_0xdeb1b4(0x22c)](_,Object[_0xdeb1b4(0x20c)]({},_0x584702,{'id':_0xdeb1b4(0x1ed),'ref':_0x36f881,'icon':fe}));});F[_0x29ead5(0x192)]=_0x29ead5(0x154);const pe={'tag':_0x29ead5(0x184),'attrs':{'xmlns':_0x29ead5(0x258),'fill':'none','viewBox':_0x29ead5(0x1bd),'width':'1em','height':_0x29ead5(0x248)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x29ead5(0x205),'attrs':{'stroke':'currentColor','d':_0x29ead5(0x1bc),'strokeLinecap':'round','strokeLinejoin':_0x29ead5(0x1b1),'strokeWidth':1.2}}]},{'tag':_0x29ead5(0x1bf),'attrs':{},'children':[{'tag':_0x29ead5(0x1bb),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x29ead5(0x205),'attrs':{'fill':_0x29ead5(0x202),'d':_0x29ead5(0x230)}}]}]}],'defIds':[_0x29ead5(0x25d)]},Y=d[_0x29ead5(0x289)](function(_0x56ccff,_0xbf17ae){const _0x49351e=_0x29ead5;return d[_0x49351e(0x22c)](_,Object[_0x49351e(0x20c)]({},_0x56ccff,{'id':_0x49351e(0x261),'ref':_0xbf17ae,'icon':pe}));});Y[_0x29ead5(0x192)]=_0x29ead5(0x1a1);const he={'tag':_0x29ead5(0x184),'attrs':{'xmlns':_0x29ead5(0x258),'fill':_0x29ead5(0x139),'viewBox':_0x29ead5(0x1c7),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x29ead5(0x169)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x29ead5(0x1b1),'strokeLinejoin':_0x29ead5(0x1b1),'strokeWidth':1.2}}]},{'tag':_0x29ead5(0x1bf),'attrs':{},'children':[{'tag':_0x29ead5(0x1bb),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x29ead5(0x205),'attrs':{'fill':_0x29ead5(0x202),'d':_0x29ead5(0x230),'transform':_0x29ead5(0x218)}}]}]}],'defIds':[_0x29ead5(0x1ac)]},q=d['forwardRef'](function(_0x3d8b22,_0x3d709f){const _0xc9592b=_0x29ead5;return d['createElement'](_,Object[_0xc9592b(0x20c)]({},_0x3d8b22,{'id':_0xc9592b(0x22f),'ref':_0x3d709f,'icon':he}));});q[_0x29ead5(0x192)]=_0x29ead5(0x1c2);function V(_0x273079){const _0x2230bd=_0x29ead5;var _0x5d9238,_0x5224bb;const {mcpCoreConfig:_0x47b4ec,onSave:_0x1baa79,loading:_0x72f583=!0x1,config:_0x4c07cc,connectionStatus$:_0x2de657,connectionError$:_0x2fcb36,currentApiKey$:_0x38c104,currentSessionId$:_0x179f3e}=_0x273079,_0x5e5af7=v[_0x2230bd(0x165)](u['LocaleService']),_0x45756f=v['useObservable'](_0x2de657,s['MCPConnectionStatus']['DISCONNECTED']),_0x41665b=v[_0x2230bd(0x162)](_0x2fcb36,s[_0x2230bd(0x28c)][_0x2230bd(0x1c3)]),_0x750040=v['useObservable'](_0x179f3e,''),_0x5082a5=v[_0x2230bd(0x162)](_0x38c104,''),[_0x248fd9,_0x4a0573]=d[_0x2230bd(0x191)](_0x5082a5||''),_0xbb3959=!0x0,_0x549dc6=_0x4c07cc[_0x2230bd(0x1cb)]&&_0x47b4ec[_0x2230bd(0x1a3)]&&(_0x47b4ec[_0x2230bd(0x1a3)][_0x2230bd(0x238)](_0x2230bd(0x201))||_0x47b4ec['mcpServerUrl'][_0x2230bd(0x238)]('univer.ai')),_0x21e6d8=(_0x5d9238=_0x47b4ec[_0x2230bd(0x1a3)])==null?void 0x0:_0x5d9238[_0x2230bd(0x238)](_0x2230bd(0x201)),_0x9a3713=(_0x5224bb=_0x47b4ec[_0x2230bd(0x1a3)])==null?void 0x0:_0x5224bb['includes'](_0x2230bd(0x229)),_0x2683dc=_0x21e6d8?_0x2230bd(0x242):_0x2230bd(0x12e),_0x3761c0=_0x4c07cc['showDeveloperTools']&&(_0x21e6d8||_0x9a3713),[_0x1f924c,_0x483af9]=d[_0x2230bd(0x191)](!_0x248fd9[_0x2230bd(0x277)]()),_0x4bd556=(_0x181abe,_0x168bce)=>{const _0x156728=_0x2230bd;if(_0x168bce===s[_0x156728(0x28c)][_0x156728(0x18e)])return _0x156728(0x206);switch(_0x181abe){case s[_0x156728(0x17d)][_0x156728(0x1f5)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s['MCPConnectionStatus'][_0x156728(0x1f9)]:case s['MCPConnectionStatus'][_0x156728(0x221)]:return _0x156728(0x1e3);case s[_0x156728(0x17d)][_0x156728(0x1b6)]:return _0x156728(0x206);default:return _0x156728(0x23f);}},_0xb066ec=(_0x38c2f1,_0x5a7f6d)=>{const _0x419de4=_0x2230bd;if(_0x5a7f6d===s[_0x419de4(0x28c)]['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x38c2f1){case s[_0x419de4(0x17d)][_0x419de4(0x1f5)]:return _0x419de4(0x14c);case s[_0x419de4(0x17d)][_0x419de4(0x1f9)]:case s[_0x419de4(0x17d)][_0x419de4(0x221)]:return'univer-bg-blue-500';case s['MCPConnectionStatus']['FAILED']:return _0x419de4(0x18c);default:return _0x419de4(0x11e);}},_0x28f966=_0x193e93=>{const _0x3b4c9f=_0x2230bd;switch(_0x193e93){case s['MCPConnectionStatus']['CONNECTED']:return _0x5e5af7['t'](_0x3b4c9f(0x216));case s[_0x3b4c9f(0x17d)][_0x3b4c9f(0x1f9)]:return _0x5e5af7['t'](_0x3b4c9f(0x280));case s['MCPConnectionStatus'][_0x3b4c9f(0x1b6)]:return _0x5e5af7['t'](_0x3b4c9f(0x21d));case s[_0x3b4c9f(0x17d)][_0x3b4c9f(0x221)]:return _0x5e5af7['t']('mcpConfig.connectionStatus.retrying');default:return _0x5e5af7['t']('mcpConfig.connectionStatus.disconnected');}},_0x5b1f50=_0x3c43be=>{const _0x15082d=_0x2230bd;switch(_0x3c43be){case s[_0x15082d(0x28c)]['UNAUTHORIZED']:return _0x5e5af7['t'](_0x15082d(0x16d));case s[_0x15082d(0x28c)][_0x15082d(0x26d)]:return _0x5e5af7['t'](_0x15082d(0x149));case s[_0x15082d(0x28c)][_0x15082d(0x1d7)]:return _0x5e5af7['t'](_0x15082d(0x21e));case s[_0x15082d(0x28c)][_0x15082d(0x11f)]:return _0x5e5af7['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4f487a=d[_0x2230bd(0x1c9)](()=>{const _0x13c43b=_0x2230bd,_0x458692={..._0x47b4ec,'apiKey':_0x248fd9[_0x13c43b(0x277)](),'enableAuth':_0xbb3959};_0x1baa79(_0x458692);},[_0x47b4ec,_0x248fd9,_0xbb3959,_0x1baa79]),_0xb5322e=_0x248fd9['trim']()[_0x2230bd(0x214)]>0x0;return i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i['jsx']('div',{'className':_0x2230bd(0x208),'children':i['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i['jsx'](_0x2230bd(0x17a),{'className':_0x2230bd(0x12c),'children':i['jsx']('span',{'className':_0x2230bd(0x11d),'children':'⚙'})}),i[_0x2230bd(0x189)]('div',{'children':i['jsx']('p',{'className':_0x2230bd(0x13c),'children':_0x5e5af7['t'](_0x2230bd(0x13f))})})]})}),i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':_0x2230bd(0x1d4),'children':[i['jsx'](_0x2230bd(0x17a),{'className':f[_0x2230bd(0x19e)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x4bd556(_0x45756f,_0x41665b)),'children':i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':_0x2230bd(0x145),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x17a),{'className':f[_0x2230bd(0x19e)](_0x2230bd(0x1fa),_0xb066ec(_0x45756f,_0x41665b))}),i[_0x2230bd(0x189)](_0x2230bd(0x1eb),{'className':_0x2230bd(0x249),'children':_0x28f966(_0x45756f)})]})}),_0x41665b!==s[_0x2230bd(0x28c)][_0x2230bd(0x1c3)]&&(_0x45756f===s['MCPConnectionStatus'][_0x2230bd(0x1b6)]||_0x41665b===s['MCPConnectionError']['UNAUTHORIZED'])&&i[_0x2230bd(0x189)](_0x2230bd(0x17a),{'className':_0x2230bd(0x269),'children':i[_0x2230bd(0x231)]('div',{'className':_0x2230bd(0x198),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x1eb),{'className':_0x2230bd(0x1ce),'children':'⚠️'}),i[_0x2230bd(0x189)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x5b1f50(_0x41665b)})]})})]}),i['jsx'](_0x2230bd(0x17a),{'className':_0x2230bd(0x1cd),'children':i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':'univer-space-y-5','children':[i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':_0x2230bd(0x1ff),'children':[i[_0x2230bd(0x231)](_0x2230bd(0x144),{'className':_0x2230bd(0x15b),'children':[i['jsx'](_0x2230bd(0x1eb),{'children':'🔑'}),'\x20',_0x5e5af7['t'](_0x2230bd(0x181)),i['jsx'](_0x2230bd(0x1eb),{'className':_0x2230bd(0x123),'children':'*'}),_0x549dc6&&i[_0x2230bd(0x189)]('a',{'className':_0x2230bd(0x247),'title':_0x5e5af7['t'](_0x2230bd(0x115)),'role':_0x2230bd(0x255),'onClick':()=>_0x483af9(!0x0),'children':i[_0x2230bd(0x189)](F,{})})]}),i[_0x2230bd(0x189)](f[_0x2230bd(0x1a7)],{'type':_0x2230bd(0x233),'placeholder':_0x5e5af7['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x248fd9,'disabled':_0x72f583,'autoComplete':_0x2230bd(0x171),'onChange':_0x4a0573}),i['jsx']('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5e5af7['t'](_0x2230bd(0x12a))})]}),_0x549dc6&&_0x1f924c&&i['jsxs'](_0x2230bd(0x17a),{'className':_0x2230bd(0x209),'children':[i[_0x2230bd(0x189)]('a',{'className':_0x2230bd(0x251),'role':'button','onClick':()=>_0x483af9(!0x1),'children':i[_0x2230bd(0x189)](B,{'className':_0x2230bd(0x1a0)})}),i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':_0x2230bd(0x223),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x17a),{'className':_0x2230bd(0x1e8),'children':i[_0x2230bd(0x189)](_0x2230bd(0x1eb),{'className':_0x2230bd(0x271),'children':'🚀'})}),i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':'univer-flex-1','children':[i[_0x2230bd(0x189)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x5e5af7['t'](_0x2230bd(0x115))}),i[_0x2230bd(0x189)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x5e5af7['t'](_0x2230bd(0x273))}),i['jsx']('div',{'className':_0x2230bd(0x1e9),'children':_0x3761c0&&i[_0x2230bd(0x231)]('a',{'className':_0x2230bd(0x26c),'href':_0x2683dc,'target':'_blank','rel':_0x2230bd(0x15f),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x1eb),{'children':'🤖'}),_0x5e5af7['t'](_0x2230bd(0x1b7)),i['jsx']('span',{'className':'univer-text-gray-400','children':'↗'})]})}),i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x5e5af7['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x4c07cc[_0x2230bd(0x1cb)]&&i[_0x2230bd(0x231)]('div',{'className':_0x2230bd(0x185),'children':[i['jsxs']('h4',{'className':_0x2230bd(0x135),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x1eb),{'children':'🔗'}),'\x20',_0x5e5af7['t'](_0x2230bd(0x124))]}),i['jsxs'](_0x2230bd(0x17a),{'className':_0x2230bd(0x177),'children':[i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':_0x2230bd(0x20e),'children':[i[_0x2230bd(0x189)]('p',{'className':_0x2230bd(0x1f1),'children':_0x5e5af7['t'](_0x2230bd(0x1b3))}),i['jsxs'](_0x2230bd(0x17a),{'className':_0x2230bd(0x1ff),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x17a),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5e5af7['t'](_0x2230bd(0x294))}),i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':_0x2230bd(0x1cc),'children':[i['jsxs'](_0x2230bd(0x17a),{'className':_0x2230bd(0x145),'children':[i[_0x2230bd(0x189)]('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x5e5af7['t'](_0x2230bd(0x17c))]}),i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':_0x2230bd(0x145),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x1eb),{'className':_0x2230bd(0x246),'children':'2'}),_0x5e5af7['t'](_0x2230bd(0x210))]}),i['jsxs']('div',{'className':_0x2230bd(0x145),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x1eb),{'className':_0x2230bd(0x246),'children':'3'}),_0x5e5af7['t'](_0x2230bd(0x168))]})]})]})]}),i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':_0x2230bd(0x1ff),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x17a),{'className':_0x2230bd(0x236),'children':_0x2230bd(0x26a)}),i['jsx'](_0x2230bd(0x17a),{'className':_0x2230bd(0x17b),'children':i[_0x2230bd(0x189)]('pre',{'className':_0x2230bd(0x114),'children':JSON[_0x2230bd(0x173)]({'mcpServers':{'univer':{'url':_0x2230bd(0x190)+(_0x750040||'<SESSION_ID>'),'type':'http','headers':{'Authorization':_0x2230bd(0x161)+(_0x248fd9||_0x2230bd(0x194))}}}},null,0x2)})})]}),i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':_0x2230bd(0x20e),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x17a),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5e5af7['t']('mcpConfig.configParameters')}),i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':_0x2230bd(0x1ff),'children':[i[_0x2230bd(0x231)]('div',{'className':_0x2230bd(0x281),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x17a),{'className':_0x2230bd(0x270)}),i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x2230bd(0x189)](_0x2230bd(0x17a),{'className':_0x2230bd(0x126),'children':'univer_session_id:'}),i[_0x2230bd(0x189)]('div',{'className':_0x2230bd(0x26b),'children':_0x5e5af7['t'](_0x2230bd(0x142))})]})]}),i['jsxs'](_0x2230bd(0x17a),{'className':_0x2230bd(0x281),'children':[i[_0x2230bd(0x189)](_0x2230bd(0x17a),{'className':_0x2230bd(0x270)}),i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x2230bd(0x189)]('div',{'className':_0x2230bd(0x126),'children':_0x2230bd(0x276)}),i[_0x2230bd(0x189)]('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5e5af7['t'](_0x2230bd(0x240))})]})]})]})]})]})]}),i[_0x2230bd(0x189)](f['Button'],{'onClick':_0x4f487a,'disabled':!_0xb5322e||_0x72f583,'className':_0x2230bd(0x215),'children':_0x72f583?i['jsxs'](_0x2230bd(0x1eb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2230bd(0x189)](_0x2230bd(0x1eb),{'children':'⟲'}),_0x5e5af7['t'](_0x2230bd(0x163))]}):i[_0x2230bd(0x231)](_0x2230bd(0x1eb),{'className':_0x2230bd(0x145),'children':[i[_0x2230bd(0x189)](H,{}),_0x5e5af7['t'](_0x2230bd(0x13d))]})}),i[_0x2230bd(0x189)]('div',{'className':_0x2230bd(0x1d5),'children':i[_0x2230bd(0x231)](_0x2230bd(0x17a),{'className':'univer-flex\x20univer-gap-3','children':[i[_0x2230bd(0x189)](_0x2230bd(0x1eb),{'className':_0x2230bd(0x150),'children':'💡'}),i['jsxs'](_0x2230bd(0x17a),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x2230bd(0x189)](_0x2230bd(0x17a),{'className':'univer-font-medium','children':_0x2230bd(0x11c)}),i['jsxs'](_0x2230bd(0x17a),{'children':['•',_0x5e5af7['t']('mcpConfig.note1')]}),i[_0x2230bd(0x231)]('div',{'children':['•',_0x5e5af7['t'](_0x2230bd(0x1a4))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x29ead5(0x176)],xe=(_0x282ab5,_0x5aa5c4,_0x4beabf,_0x1b1da2)=>{const _0x5821ab=_0x29ead5;for(var _0x5ee635=_0x1b1da2>0x1?void 0x0:_0x1b1da2?me(_0x5aa5c4,_0x4beabf):_0x5aa5c4,_0x18e0fc=_0x282ab5[_0x5821ab(0x214)]-0x1,_0x264dc4;_0x18e0fc>=0x0;_0x18e0fc--)(_0x264dc4=_0x282ab5[_0x18e0fc])&&(_0x5ee635=_0x264dc4(_0x5ee635)||_0x5ee635);return _0x5ee635;},g=(_0x1cdd77,_0x1c601c)=>(_0x1bbb96,_0x1b7934)=>_0x1c601c(_0x1bbb96,_0x1b7934,_0x1cdd77);const O='mcp.apiKey',D=_0x29ead5(0x160);exports['MCPConfigUIController']=class extends u['Disposable']{constructor(_0x15a757,_0x3e7fe7,_0x929a3f,_0x221b45,_0x55616a,_0x22ccba,_0x2ed8f2,_0x354ddd,_0x25b5ef,_0x3afb1c){const _0x12aa11=_0x29ead5;super(),I(this,_0x12aa11(0x1dc),new M[(_0x12aa11(0x24c))](!0x1)),I(this,_0x12aa11(0x156),new M[(_0x12aa11(0x24c))]({})),I(this,_0x12aa11(0x27a),new M[(_0x12aa11(0x24c))]({})),I(this,_0x12aa11(0x19c),new M[(_0x12aa11(0x24c))]('')),I(this,_0x12aa11(0x217),async _0x8e4016=>{const _0x55de05=_0x12aa11;var _0x5bec40,_0x3a088c;this[_0x55de05(0x1dc)][_0x55de05(0x212)](!0x0);try{const _0x3521df=await this[_0x55de05(0x119)](_0x8e4016);if(!_0x3521df['isValid']){this[_0x55de05(0x1ad)]['show']({'type':f[_0x55de05(0x28d)][_0x55de05(0x253)],'content':_0x3521df['errorMessage']||this[_0x55de05(0x19a)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x8e4016[_0x55de05(0x1b4)]?await this[_0x55de05(0x232)][_0x55de05(0x283)](O,_0x8e4016[_0x55de05(0x1b4)][_0x55de05(0x277)]()):await this[_0x55de05(0x232)]['removeItem'](O),this[_0x55de05(0x19c)]['next'](((_0x5bec40=_0x8e4016[_0x55de05(0x1b4)])==null?void 0x0:_0x5bec40[_0x55de05(0x277)]())||''),this['_mcpConnectionController'][_0x55de05(0x148)]({'Authorization':_0x55de05(0x161)+((_0x3a088c=_0x8e4016['apiKey'])==null?void 0x0:_0x3a088c[_0x55de05(0x277)]())}),this[_0x55de05(0x1ad)][_0x55de05(0x1aa)]({'type':f[_0x55de05(0x28d)][_0x55de05(0x200)],'content':this[_0x55de05(0x19a)]['t'](_0x55de05(0x182))}),setTimeout(()=>{const _0x5e232a=_0x55de05;this[_0x5e232a(0x196)]['close'](D);},0x320);}catch(_0x45564a){this['_logService'][_0x55de05(0x225)](_0x55de05(0x131),_0x45564a),this['_messageService'][_0x55de05(0x1aa)]({'type':f[_0x55de05(0x28d)][_0x55de05(0x253)],'content':this[_0x55de05(0x19a)]['t'](_0x55de05(0x228))});}finally{this[_0x55de05(0x1dc)][_0x55de05(0x212)](!0x1);}}),(this[_0x12aa11(0x15d)]=_0x15a757,this[_0x12aa11(0x129)]=_0x3e7fe7,this[_0x12aa11(0x18d)]=_0x929a3f,this[_0x12aa11(0x232)]=_0x221b45,this[_0x12aa11(0x196)]=_0x55616a,this[_0x12aa11(0x1ad)]=_0x22ccba,this[_0x12aa11(0x1fd)]=_0x2ed8f2,this[_0x12aa11(0x19a)]=_0x354ddd,this[_0x12aa11(0x1c4)]=_0x25b5ef,this[_0x12aa11(0x213)]=_0x3afb1c,this[_0x12aa11(0x23d)](),this[_0x12aa11(0x27d)](),this[_0x12aa11(0x140)]());}['showConfigPanel'](){const _0x199f5f=_0x29ead5,_0xbcb810=this['_configService'][_0x199f5f(0x1c1)](P);_0xbcb810!=null&&_0xbcb810[_0x199f5f(0x1cb)]&&this[_0x199f5f(0x196)]['open']({'id':D,'title':{'title':this[_0x199f5f(0x19a)]['t']('mcpConfig.title')},'children':{'label':_0x199f5f(0x197)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x35fe4a=_0x199f5f;this[_0x35fe4a(0x196)][_0x35fe4a(0x127)](D);}});}[_0x29ead5(0x282)](){const _0x5376fc=_0x29ead5;return this[_0x5376fc(0x156)][_0x5376fc(0x22b)];}[_0x29ead5(0x140)](){const _0x2cb0e9=_0x29ead5;this['disposeWithMe'](this[_0x2cb0e9(0x1fd)][_0x2cb0e9(0x292)]('MCPConfigPanel',this[_0x2cb0e9(0x183)]()));}[_0x29ead5(0x183)](){return v['connectInjector'](()=>{const _0x18fee5=_0x3e67;var _0x90c8a3,_0x420a01,_0x5fe5a2;return i['jsx'](V,{'config':this[_0x18fee5(0x27a)]['value'],'mcpCoreConfig':this[_0x18fee5(0x156)][_0x18fee5(0x22b)],'currentApiKey$':this[_0x18fee5(0x19c)],'onSave':this[_0x18fee5(0x217)],'loading':this[_0x18fee5(0x1dc)][_0x18fee5(0x22b)],'connectionStatus$':(_0x90c8a3=this['_mcpConnectionController'])==null?void 0x0:_0x90c8a3[_0x18fee5(0x186)],'connectionError$':(_0x420a01=this[_0x18fee5(0x213)])==null?void 0x0:_0x420a01[_0x18fee5(0x1dd)],'currentSessionId$':(_0x5fe5a2=this[_0x18fee5(0x213)])==null?void 0x0:_0x5fe5a2[_0x18fee5(0x1ab)]});},this['_injector']);}['_initConfigSync'](){const _0x53ebe3=_0x29ead5;this[_0x53ebe3(0x286)](this[_0x53ebe3(0x18d)][_0x53ebe3(0x1d9)](s[_0x53ebe3(0x204)])[_0x53ebe3(0x1ec)](_0x2a2124=>{this['_mcpCoreConfig$']['next'](_0x2a2124||{});}));const _0x5a463a=this['_configService'][_0x53ebe3(0x1c1)](s[_0x53ebe3(0x204)]);this[_0x53ebe3(0x156)][_0x53ebe3(0x212)](_0x5a463a||{}),this[_0x53ebe3(0x286)](this[_0x53ebe3(0x18d)][_0x53ebe3(0x1d9)](P)[_0x53ebe3(0x1ec)](_0xd16579=>{const _0x456c04=_0x53ebe3;this[_0x456c04(0x27a)][_0x456c04(0x212)](_0xd16579||{});}));const _0x358ae7=this[_0x53ebe3(0x18d)][_0x53ebe3(0x1c1)](P);this['_config$'][_0x53ebe3(0x212)](_0x358ae7||{});}async['_loadStoredApiKey'](){const _0x2cf190=_0x29ead5,_0x56343c=this[_0x2cf190(0x18d)][_0x2cf190(0x1c1)](P);if(!(_0x56343c!=null&&_0x56343c[_0x2cf190(0x1cb)]))return;const _0x5e0673=await this['_localStorageService'][_0x2cf190(0x1ea)](O);_0x5e0673&&(this['_mcpConnectionController'][_0x2cf190(0x148)]({'Authorization':_0x2cf190(0x161)+_0x5e0673}),this['_apiKey$']['next'](_0x5e0673));}async['_validateConfig'](_0x4a995a){const _0x40c2f3=_0x29ead5;if(!_0x4a995a['apiKey']||_0x4a995a[_0x40c2f3(0x1b4)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x40c2f3(0x19a)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x4a995a[_0x40c2f3(0x1b4)]['trim']()[_0x40c2f3(0x214)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x40c2f3(0x19a)]['t'](_0x40c2f3(0x199))};try{const _0x341a73=await this['_injector'][_0x40c2f3(0x17f)](s[_0x40c2f3(0x1b8)])[_0x40c2f3(0x166)](_0x4a995a[_0x40c2f3(0x1b4)]['trim']());return _0x341a73[_0x40c2f3(0x1db)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x341a73['error']||this[_0x40c2f3(0x19a)]['t'](_0x40c2f3(0x279))};}catch(_0x5ce0ed){return console[_0x40c2f3(0x122)](_0x40c2f3(0x265),_0x5ce0ed),{'isValid':!0x0};}}},exports[_0x29ead5(0x1b0)]=xe([g(0x0,u[_0x29ead5(0x27e)](u[_0x29ead5(0x1a2)])),g(0x1,v[_0x29ead5(0x1d2)]),g(0x2,u[_0x29ead5(0x158)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x29ead5(0x136)]),g(0x5,v[_0x29ead5(0x244)]),g(0x6,u[_0x29ead5(0x27e)](v[_0x29ead5(0x226)])),g(0x7,u[_0x29ead5(0x27e)](u[_0x29ead5(0x203)])),g(0x8,u[_0x29ead5(0x1d3)]),g(0x9,u['Inject'](s[_0x29ead5(0x1b8)]))],exports[_0x29ead5(0x1b0)]);const b={'id':_0x29ead5(0x1e5),'type':u[_0x29ead5(0x21a)][_0x29ead5(0x235)],'handler':async(_0x4b19b3,_0x426ea6)=>(_0x4b19b3[_0x29ead5(0x17f)](exports[_0x29ead5(0x1b0)])['showConfigPanel'](),!0x0)};function Z(_0x4a6f72,_0x2354a9){const _0x95b606=_0x29ead5;switch(_0x4a6f72){case s[_0x95b606(0x17d)][_0x95b606(0x1d6)]:return _0x95b606(0x278);case s[_0x95b606(0x17d)][_0x95b606(0x1f9)]:return'mcpStatus.connecting';case s['MCPConnectionStatus'][_0x95b606(0x1f5)]:return _0x95b606(0x252);case s['MCPConnectionStatus'][_0x95b606(0x1b6)]:switch(_0x2354a9){case s[_0x95b606(0x28c)][_0x95b606(0x18e)]:return _0x95b606(0x293);case s[_0x95b606(0x28c)][_0x95b606(0x26d)]:return _0x95b606(0x146);case s[_0x95b606(0x28c)]['NETWORK_ERROR']:return _0x95b606(0x1a5);case s['MCPConnectionError'][_0x95b606(0x11f)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case s[_0x95b606(0x17d)]['RETRYING']:return _0x95b606(0x28f);default:return'mcpStatus.unknown';}}function Se(_0x4751e6,_0x557c51,_0x1a49b6,_0x2904b2=!0x0){const _0x41d496=_0x29ead5,_0x134921=Z(_0x4751e6,_0x557c51),_0x449e54=_0x1a49b6['t'](_0x134921);return _0x2904b2?_0x4751e6===s[_0x41d496(0x17d)][_0x41d496(0x1d6)]&&_0x557c51===s[_0x41d496(0x28c)]['UNAUTHORIZED']?_0x449e54+_0x41d496(0x1d8)+_0x1a49b6['t'](_0x41d496(0x16c)):_0x4751e6===s[_0x41d496(0x17d)][_0x41d496(0x1f5)]?''+_0x449e54:_0x4751e6===s[_0x41d496(0x17d)][_0x41d496(0x1d6)]||_0x4751e6===s[_0x41d496(0x17d)][_0x41d496(0x1b6)]?_0x449e54+_0x41d496(0x1d8)+_0x1a49b6['t'](_0x41d496(0x17e)):_0x449e54:_0x449e54;}function Pe(_0x1b449f){const _0x3fd5fd=_0x29ead5;switch(_0x1b449f){case s[_0x3fd5fd(0x17d)]['CONNECTED']:return _0x3fd5fd(0x1e6);case s[_0x3fd5fd(0x17d)][_0x3fd5fd(0x1f9)]:case s[_0x3fd5fd(0x17d)][_0x3fd5fd(0x221)]:return _0x3fd5fd(0x14f);case s[_0x3fd5fd(0x17d)][_0x3fd5fd(0x1b6)]:case s['MCPConnectionStatus'][_0x3fd5fd(0x1d6)]:return _0x3fd5fd(0x123);default:return _0x3fd5fd(0x1f0);}}function _0x45bd(){const _0x14c19b=['univer-space-y-3','复制以下\x20JSON\x20配置','mcpConfig.configStep2','MCP:\x20会话\x20ID\x20已被占用','next','_mcpConnectionController','length','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','mcpConfig.connectionStatus.connected','_handleConfigSave','translate(.97)','API\x20密钥长度至少需要\x2010\x20位','CommandType','将以下配置添加到您的\x20MCP\x20客户端设置中:','idSuffix','mcpConfig.connectionStatus.failed','mcpConfig.connectionError.networkError','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','80572whQiWs','RETRYING','pluginName','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Disposable','error','ComponentManager','3834HFXBAz','mcpConfig.configError','univer.ai','您的\x20API\x20密钥安全存储在本地存储中','value','createElement','API\x20key\x20is\x20required','add','on-line-icon','M0\x200H16V16H0z','jsxs','_localStorageService','text','_menuManagerService','COMMAND','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','权限验证失败,请检查您的\x20API\x20密钥','includes','将配置添加到您的\x20MCP\x20客户端设置文件中','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','API\x20密钥无效,请检查密钥是否正确','WebSocketService','_initConfigSync','children','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.authorizationDescription','API\x20密钥不能为空','https://console.univer.plus','What\x20is\x20API\x20Key?','IMessageService','配置参数:','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-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','1em','univer-text-sm\x20univer-font-medium','MCP\x20Disconnected','点击连接\x20MCP','BehaviorSubject','showConfigPanel','fill','registerCommand','配置\x20MCP\x20使用\x20AI\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','mcpStatus.connected','Error','onStarting','button','MCPConnectionUIController','MCP\x20已断开','http://www.w3.org/2000/svg','14oCAQMV','mask','重启您的\x20MCP\x20客户端以使配置生效','重连中...','off-line-icon_clip0_910_343','MenuIcon','Disconnected','API\x20Key','off-line-icon','几秒钟内获取您的\x20API\x20密钥','useRef','启用身份验证','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','RibbonStartGroup','配置更改将立即生效','Configuration\x20saved\x20successfully','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP\x20Configuration','univer-text-xs\x20univer-text-gray-500','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','SESSION_ID_OCCUPIED','配置无效','API\x20密钥','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-text-blue-600','请输入您的\x20API\x20密钥','mcpConfig.apiApplyInfo.description','MCP\x20已连接','377378sfPelO','Authorization:','trim','mcpStatus.disconnected','mcpConfig.validation.invalidApiKey','_config$','配置步骤:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_loadStoredApiKey','Inject','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.connectionStatus.connecting','univer-flex\x20univer-items-start\x20univer-gap-3','getCurrentConfig','setItem','Connection\x20Failed','BUTTON','disposeWithMe','MCP:\x20超出最大重试次数','_commandService','forwardRef','xlink:href','map','MCPConnectionError','MessageType','已连接','mcpStatus.retrying','MCP\x20重连中...','1537191XzKJUi','register','mcpStatus.unauthorized','mcpConfig.configStepTitle','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpConfig.apiApplyInfo.title','MCP\x20Client\x20Configuration','OpenMCPConfigPanelCommand','Get\x20your\x20API\x20key\x20in\x20seconds','_validateConfig','连接失败','string','Configuration\x20Notes:','univer-text-white','univer-bg-gray-500','MAX_RETRIES_EXCEEDED','tag','symbol','warn','univer-text-red-500','mcpConfig.connectionInfo','attrs','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','close','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','_uiPartsService','mcpConfig.apiKeyHint','defIds','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','colorChannel1','https://console.univer.ai','_handleConfigure','MCP\x20Connection\x20Failed','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCPUIMenuController','保存中...','mcpConfig.title','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','IDialogService','Max\x20Retries','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','none','registerComponent','setConfig','univer-text-sm\x20univer-text-gray-500','mcpConfig.save','connectInjector','mcpConfig.description','_registerComponent','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.sessionIdDescription','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','label','univer-flex\x20univer-items-center\x20univer-gap-2','mcpStatus.sessionOccupied','MCP\x20连接中...','__setCustomHeaders','mcpConfig.connectionError.sessionOccupied','ISocketService','current','univer-bg-green-500','网络连接错误,请检查您的网络连接','MCP\x20Connected','univer-text-yellow-500','univer-shrink-0\x20univer-text-blue-500','9325dijzuS','CheckMarkIcon','3549512COUdxc','HelpIcon','showStatus','_mcpCoreConfig$','_initializeMenus','IConfigService','4286095jQzgcP','530814rhYCPo','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Enable\x20Authentication','_injector','_initializeCommands','noopener\x20noreferrer','mcp-config-dialog','Bearer\x20','useObservable','mcpConfig.saving','未连接','useDependency','validateApiKey','配置保存成功','mcpConfig.configStep3','url(#on-line-icon_clip0_910_349)','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20ID','mcpStatus.clickToConfigure','mcpConfig.connectionError.unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connecting...','MCP\x20Unknown\x20Status','off','univer-mr-2\x20univer-flex\x20univer-text-xl','stringify','mergeMenu','Click\x20to\x20configure\x20MCP','getOwnPropertyDescriptor','univer-space-y-4','univer-flex\x20univer-items-center','currentColor','div','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.configStep1','MCPConnectionStatus','mcpStatus.clickToConnect','get','保存配置','mcpConfig.apiKey','mcpConfig.configSaved','_createConfigPanelComponent','svg','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','connectionStatus$','MCP\x20Connecting...','evenodd','jsx','url(#$1','什么是\x20API\x20密钥?','univer-bg-red-500','_configService','UNAUTHORIZED','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','https://mcp.univer.ai/mcp/?univer_session_id=','useState','displayName','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','<API_KEY>','ICommandService','_dialogService','MCPConfigPanel','univer-flex\x20univer-items-start\x20univer-gap-2','mcpConfig.validation.apiKeyTooShort','_localeService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_apiKey$','Failed\x20to\x20save\x20configuration','clsx','forEach','univer-size-4','OffLineIcon','Injector','mcpServerUrl','mcpConfig.note2','mcpStatus.networkError','会话\x20ID\x20已被占用,请稍后再试','Input','univerjs-icon\x20univerjs-icon-','Saving...','show','sessionId$','on-line-icon_clip0_910_349','_messageService','close-icon','Invalid\x20configuration','MCPConfigUIController','round','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.configInstructions','apiKey','_initStatusComponent','FAILED','mcpConfig.apiApplyInfo.univerAiLabel','MCPConnectionController','129tVtPZY','MCP\x20状态未知','clipPath','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','0\x200\x2016\x2016','50kjWguz','defs','OTHERS','getConfig','OnLineIcon','NONE','_logService','UniverMCPUIPlugin','MCP:\x20未授权','0\x200\x2017\x2016','check-mark-icon','useCallback','CloseIcon','showDeveloperTools','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-shrink-0\x20univer-text-red-500','_connectionController','MCP_UI_PLUGIN','_config','IUIPartsService','ILogService','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','DISCONNECTED','NETWORK_ERROR','\x20-\x20','subscribeConfigValue$','MCPStatusDisplay','isValid','_loading$','connectionError$','push','IMenuManagerService','HEADER_MENU','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','UniverIcon','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Enter\x20your\x20API\x20key','mcp-ui.command.openConfigPanel','univer-text-green-500','UniverMCPPlugin','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex\x20univer-flex-wrap\x20univer-gap-2','getItem','span','subscribe','help-icon','Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-gray-500','univer-text-xs\x20univer-text-gray-600','会话ID','defineProperty','toString','CONNECTED','BuiltInUIPart','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','CONNECTING','univer-size-2\x20univer-rounded-full','MCP:\x20网络错误','ILocalStorageService','_componentManager','enableAutoConnect','univer-space-y-2','Success','univer.plus','white','LocaleService','MCP_PLUGIN_CONFIG_KEY','path','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20配置','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','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','toStringTag','\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','assign','DependentOn'];_0x45bd=function(){return _0x14c19b;};return _0x45bd();}function W(_0x54dff6){const _0x314fbb=_0x29ead5,{status$:_0x2e7906,error$:_0x1cff48,onConfigure:_0x387da4,showClickable:_0x31d89a=!0x0}=_0x54dff6,_0x6fd77=v[_0x314fbb(0x162)](_0x2e7906,s[_0x314fbb(0x17d)][_0x314fbb(0x1d6)]),_0x2d0a9b=v['useObservable'](_0x1cff48,s[_0x314fbb(0x28c)][_0x314fbb(0x1c3)]),_0x265829=v[_0x314fbb(0x165)](u[_0x314fbb(0x203)]),_0x1553bb=_0x6fd77===s[_0x314fbb(0x17d)]['CONNECTED'];_0x6fd77===s['MCPConnectionStatus'][_0x314fbb(0x1f9)]||s[_0x314fbb(0x17d)][_0x314fbb(0x221)];const _0x5c0c23=_0x265829['t'](Z(_0x6fd77,_0x2d0a9b)),_0x50df59=Se(_0x6fd77,_0x2d0a9b,_0x265829,_0x31d89a),_0x3a9948=Pe(_0x6fd77),_0x1800a2=_0x1553bb?i['jsx'](q,{}):i[_0x314fbb(0x189)](Y,{}),_0x35e60b=d[_0x314fbb(0x1c9)](()=>{_0x31d89a&&_0x387da4&&_0x387da4();},[_0x31d89a,_0x387da4]);function _0x3c4e6b(){const _0x2bf70a=_0x314fbb;return i[_0x2bf70a(0x231)](_0x2bf70a(0x17a),{'className':f['clsx'](_0x2bf70a(0x178),_0x31d89a&&_0x387da4&&_0x2bf70a(0x20b)),'role':_0x2bf70a(0x255),'onClick':_0x31d89a&&_0x387da4?_0x35e60b:void 0x0,'children':[i['jsx']('div',{'className':f[_0x2bf70a(0x19e)](_0x2bf70a(0x172),_0x3a9948),'children':_0x1800a2}),i['jsx'](_0x2bf70a(0x17a),{'className':_0x2bf70a(0x19b),'children':_0x5c0c23})]});}return i[_0x314fbb(0x189)](f['Tooltip'],{'title':_0x50df59,'placement':'bottom','children':_0x3c4e6b()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x533d7c,_0x3f2b96,_0x2d0ade,_0x20a2ed)=>{for(var _0x2fc3a2=_0x20a2ed>0x1?void 0x0:_0x20a2ed?Ie(_0x3f2b96,_0x2d0ade):_0x3f2b96,_0x5a5694=_0x533d7c['length']-0x1,_0xced746;_0x5a5694>=0x0;_0x5a5694--)(_0xced746=_0x533d7c[_0x5a5694])&&(_0x2fc3a2=_0xced746(_0x2fc3a2)||_0x2fc3a2);return _0x2fc3a2;},N=(_0x1f6095,_0x3ead6b)=>(_0x57926d,_0x41359e)=>_0x3ead6b(_0x57926d,_0x41359e,_0x1f6095);exports[_0x29ead5(0x256)]=class extends u[_0x29ead5(0x224)]{constructor(_0x57b64a,_0x532db4,_0x525bf5,_0x116069){const _0xe89e06=_0x29ead5;super(),this[_0xe89e06(0x15d)]=_0x57b64a,this[_0xe89e06(0x1cf)]=_0x532db4,this[_0xe89e06(0x129)]=_0x525bf5,this['_configService']=_0x116069,this['_initAutoConnect'](),this[_0xe89e06(0x1b5)]();}['_initAutoConnect'](){const _0x5cebc8=_0x29ead5,_0x2a723b=this['_configService'][_0x5cebc8(0x1c1)](P);_0x2a723b!=null&&_0x2a723b[_0x5cebc8(0x1cb)]&&(this[_0x5cebc8(0x1cf)][_0x5cebc8(0x1fe)]=!0x1);}[_0x29ead5(0x1b5)](){const _0x49e1a4=_0x29ead5,_0x298d1b=this[_0x49e1a4(0x18d)][_0x49e1a4(0x1c1)](P);(_0x298d1b==null?void 0x0:_0x298d1b[_0x49e1a4(0x155)])!==!0x1&&this[_0x49e1a4(0x286)](this['_uiPartsService'][_0x49e1a4(0x13a)](v[_0x49e1a4(0x1f6)][_0x49e1a4(0x1e0)],()=>{const _0x435c32=_0x49e1a4;var _0x4e0b26;return v[_0x435c32(0x13e)](ye({'status$':this['_connectionController'][_0x435c32(0x186)],'error$':this[_0x435c32(0x1cf)][_0x435c32(0x1dd)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x4e0b26=_0x298d1b==null?void 0x0:_0x298d1b['showDeveloperTools'])!=null?_0x4e0b26:!0x1}),this['_injector']);}));}[_0x29ead5(0x12f)](){const _0x4cb950=_0x29ead5;this[_0x4cb950(0x15d)]['get'](exports[_0x4cb950(0x1b0)])[_0x4cb950(0x24d)]();}},exports[_0x29ead5(0x256)]=_e([N(0x0,u['Inject'](u[_0x29ead5(0x1a2)])),N(0x1,u[_0x29ead5(0x27e)](s[_0x29ead5(0x1b8)])),N(0x2,v[_0x29ead5(0x1d2)]),N(0x3,u[_0x29ead5(0x158)])],exports[_0x29ead5(0x256)]);function ye(_0xd6ad7b){const {status$:_0x3db7a8,error$:_0x502eb2,onConfigure:_0x4c5a34,showClickable:_0x11f493}=_0xd6ad7b;return function(){const _0x45db13=_0x3e67;return i[_0x45db13(0x189)](W,{'status$':_0x3db7a8,'error$':_0x502eb2,'onConfigure':_0x4c5a34,'showClickable':_0x11f493});};}function Me(_0x454005){const _0x4a7df0=_0x29ead5;return{'id':b['id'],'type':v['MenuItemType'][_0x4a7df0(0x285)],'icon':_0x4a7df0(0x25e),'title':_0x4a7df0(0x134),'tooltip':_0x4a7df0(0x134)};}function _0x3e67(_0x210d40,_0x64320b){_0x210d40=_0x210d40-0x114;const _0x45bda5=_0x45bd();let _0x3e67a9=_0x45bda5[_0x210d40];return _0x3e67a9;}const Ne={[v[_0x29ead5(0x266)][_0x29ead5(0x1c0)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x29ead5(0x176)],je=(_0x2c2805,_0x1f029d,_0x373a54,_0x218232)=>{for(var _0x40f584=_0x218232>0x1?void 0x0:_0x218232?be(_0x1f029d,_0x373a54):_0x1f029d,_0x1ac415=_0x2c2805['length']-0x1,_0x40602e;_0x1ac415>=0x0;_0x1ac415--)(_0x40602e=_0x2c2805[_0x1ac415])&&(_0x40f584=_0x40602e(_0x40f584)||_0x40f584);return _0x40f584;},z=(_0x52f698,_0x515781)=>(_0x39edd5,_0x1d6f6a)=>_0x515781(_0x39edd5,_0x1d6f6a,_0x52f698);exports[_0x29ead5(0x132)]=class extends u['Disposable']{constructor(_0x262434,_0x385e83){const _0x150e74=_0x29ead5;super(),this[_0x150e74(0x288)]=_0x262434,this[_0x150e74(0x234)]=_0x385e83,this[_0x150e74(0x15e)](),this['_initializeMenus']();}[_0x29ead5(0x15e)](){const _0x53b536=_0x29ead5;[b][_0x53b536(0x19f)](_0x5045a2=>{const _0x4177c9=_0x53b536;this['disposeWithMe'](this['_commandService'][_0x4177c9(0x24f)](_0x5045a2));});}[_0x29ead5(0x157)](){const _0x45c6d1=_0x29ead5;this['_menuManagerService'][_0x45c6d1(0x174)](Ne);}},exports[_0x29ead5(0x132)]=je([z(0x0,u[_0x29ead5(0x195)]),z(0x1,v[_0x29ead5(0x1df)])],exports[_0x29ead5(0x132)]);const Ee={'mcpStatus':{'disconnected':_0x29ead5(0x24a),'connecting':_0x29ead5(0x187),'connected':_0x29ead5(0x14e),'failed':_0x29ead5(0x130),'retrying':'MCP\x20Retrying...','unknown':_0x29ead5(0x170),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x29ead5(0x175)},'mcpConfig':{'title':_0x29ead5(0x26a),'description':_0x29ead5(0x16e),'apiKey':_0x29ead5(0x260),'apiKeyPlaceholder':_0x29ead5(0x1e4),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x29ead5(0x15c),'enableAuthHint':_0x29ead5(0x1f7),'connectionInfo':_0x29ead5(0x116),'mcpClientConfig':_0x29ead5(0x116),'configInstructions':_0x29ead5(0x27c),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x29ead5(0x16a),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x29ead5(0x1b2),'sessionId':_0x29ead5(0x16b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x29ead5(0x1ef),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x29ead5(0x137),'save':'Save\x20Configuration','saving':_0x29ead5(0x1a9),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x29ead5(0x18f),'configSaved':_0x29ead5(0x268),'configError':_0x29ead5(0x19d),'apiApplyInfo':{'title':_0x29ead5(0x243),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x29ead5(0x118)},'validation':{'apiKeyRequired':_0x29ead5(0x22d),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x29ead5(0x1af),'invalidApiKey':_0x29ead5(0x1f8)},'connectionStatus':{'disconnected':_0x29ead5(0x25f),'connecting':_0x29ead5(0x16f),'connected':'Connected','failed':_0x29ead5(0x284),'retrying':_0x29ead5(0x1ee)},'connectionError':{'unauthorized':_0x29ead5(0x21f),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x29ead5(0x138),'maxRetriesExceeded':_0x29ead5(0x141)}}},we={'mcpStatus':{'disconnected':_0x29ead5(0x257),'connecting':_0x29ead5(0x147),'connected':_0x29ead5(0x274),'failed':'MCP\x20连接失败','retrying':_0x29ead5(0x290),'unknown':_0x29ead5(0x1ba),'unauthorized':_0x29ead5(0x1c6),'sessionOccupied':_0x29ead5(0x211),'networkError':_0x29ead5(0x1fb),'maxRetriesExceeded':_0x29ead5(0x287),'clickToConnect':_0x29ead5(0x24b),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x29ead5(0x207),'description':_0x29ead5(0x250),'apiKey':_0x29ead5(0x26f),'apiKeyPlaceholder':_0x29ead5(0x272),'apiKeyHint':_0x29ead5(0x27f),'enableAuth':_0x29ead5(0x264),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x29ead5(0x21b),'configStepTitle':_0x29ead5(0x27b),'configStep1':_0x29ead5(0x20f),'configStep2':_0x29ead5(0x239),'configStep3':_0x29ead5(0x25b),'sessionId':_0x29ead5(0x1f2),'sessionIdDescription':_0x29ead5(0x128),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x29ead5(0x245),'maxRetries':'最大重试次数','save':_0x29ead5(0x180),'saving':_0x29ead5(0x133),'note1':_0x29ead5(0x267),'note2':_0x29ead5(0x22a),'configSaved':_0x29ead5(0x167),'configError':'配置保存失败','apiApplyInfo':{'title':_0x29ead5(0x18b),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x29ead5(0x262)},'validation':{'apiKeyRequired':_0x29ead5(0x241),'apiKeyTooShort':_0x29ead5(0x219),'invalidConfig':_0x29ead5(0x26e),'invalidApiKey':_0x29ead5(0x23b)},'connectionStatus':{'disconnected':_0x29ead5(0x164),'connecting':'连接中...','connected':_0x29ead5(0x28e),'failed':_0x29ead5(0x11a),'retrying':_0x29ead5(0x25c)},'connectionError':{'unauthorized':_0x29ead5(0x237),'sessionOccupied':_0x29ead5(0x1a6),'networkError':_0x29ead5(0x14d),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object[_0x29ead5(0x1f3)],Oe=Object['getOwnPropertyDescriptor'],De=(_0x3b3cd8,_0xc7e259,_0x15a339)=>_0xc7e259 in _0x3b3cd8?Ae(_0x3b3cd8,_0xc7e259,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15a339}):_0x3b3cd8[_0xc7e259]=_0x15a339,Ue=(_0x1ce1b6,_0x4845ed,_0x4a2fe3,_0x4640a2)=>{const _0x46cbb1=_0x29ead5;for(var _0x20b1e9=_0x4640a2>0x1?void 0x0:_0x4640a2?Oe(_0x4845ed,_0x4a2fe3):_0x4845ed,_0x50254e=_0x1ce1b6[_0x46cbb1(0x214)]-0x1,_0x2e070c;_0x50254e>=0x0;_0x50254e--)(_0x2e070c=_0x1ce1b6[_0x50254e])&&(_0x20b1e9=_0x2e070c(_0x20b1e9)||_0x20b1e9);return _0x20b1e9;},y=(_0x9d57e9,_0xce7e87)=>(_0x55de46,_0x2d5f10)=>_0xce7e87(_0x55de46,_0x2d5f10,_0x9d57e9),$e=(_0x436e61,_0x44217c,_0x116967)=>De(_0x436e61,_0x44217c+'',_0x116967);exports[_0x29ead5(0x1c5)]=class extends u['Plugin']{constructor(_0x3a202c=L,_0x10d879,_0x52eca0,_0xfb0142,_0x4da00f,_0xdfd5c1){const _0x59c120=_0x29ead5;super(),this[_0x59c120(0x1d1)]=_0x3a202c,this[_0x59c120(0x15d)]=_0x10d879,this[_0x59c120(0x18d)]=_0x52eca0,this[_0x59c120(0x129)]=_0xfb0142,this['_localStorageService']=_0x4da00f,this[_0x59c120(0x19a)]=_0xdfd5c1;const {..._0x309842}=u['merge']({},L,this['_config']);this[_0x59c120(0x18d)][_0x59c120(0x13b)](P,_0x309842);}async[_0x29ead5(0x254)](){const _0x1beee9=_0x29ead5,_0x2aebc7=[[exports[_0x1beee9(0x256)]],[exports[_0x1beee9(0x1b0)]],[exports[_0x1beee9(0x132)]]];this[_0x1beee9(0x15d)]['has'](A['ISocketService'])||_0x2aebc7[_0x1beee9(0x1de)]([A[_0x1beee9(0x14a)],{'useClass':A[_0x1beee9(0x23c)]}]),_0x2aebc7[_0x1beee9(0x19f)](_0x4e63ee=>this[_0x1beee9(0x15d)][_0x1beee9(0x22e)](_0x4e63ee)),this[_0x1beee9(0x15d)][_0x1beee9(0x17f)](exports[_0x1beee9(0x256)]),this[_0x1beee9(0x15d)][_0x1beee9(0x17f)](exports[_0x1beee9(0x1b0)]),this[_0x1beee9(0x15d)][_0x1beee9(0x17f)](exports['MCPUIMenuController']);}},$e(exports['UniverMCPUIPlugin'],_0x29ead5(0x222),_0x29ead5(0x1d0)),exports[_0x29ead5(0x1c5)]=Ue([u[_0x29ead5(0x20d)](s[_0x29ead5(0x1e7)]),y(0x1,u[_0x29ead5(0x27e)](u[_0x29ead5(0x1a2)])),y(0x2,u['IConfigService']),y(0x3,v['IUIPartsService']),y(0x4,u[_0x29ead5(0x1fc)]),y(0x5,u[_0x29ead5(0x27e)](u['LocaleService']))],exports[_0x29ead5(0x1c5)]),exports[_0x29ead5(0x197)]=V,exports[_0x29ead5(0x1da)]=W,exports[_0x29ead5(0x117)]=b,exports['enUS']=Ee,exports['zhCN']=we;
@@ -1 +1 @@
1
- 'use strict';const _0x5b44af=_0x4e01;function _0x4e01(_0x5003c7,_0x260f72){_0x5003c7=_0x5003c7-0x11c;const _0x101820=_0x1018();let _0x4e012f=_0x101820[_0x5003c7];return _0x4e012f;}(function(_0x39daa9,_0x1a5d9f){const _0x16d9ca=_0x4e01,_0x1481ba=_0x39daa9();while(!![]){try{const _0x3821bc=parseInt(_0x16d9ca(0x141))/0x1+parseInt(_0x16d9ca(0x12d))/0x2+parseInt(_0x16d9ca(0x124))/0x3*(-parseInt(_0x16d9ca(0x143))/0x4)+-parseInt(_0x16d9ca(0x132))/0x5+-parseInt(_0x16d9ca(0x149))/0x6+-parseInt(_0x16d9ca(0x121))/0x7+parseInt(_0x16d9ca(0x145))/0x8*(parseInt(_0x16d9ca(0x147))/0x9);if(_0x3821bc===_0x1a5d9f)break;else _0x1481ba['push'](_0x1481ba['shift']());}catch(_0x3dfb84){_0x1481ba['push'](_0x1481ba['shift']());}}}(_0x1018,0x4dc51));function _0x1018(){const _0x1725b2=['Session\x20ID','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','1251430wfbnIB','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connecting...','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','1611840aNImYP','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','MCP\x20Connection\x20Failed','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','Click\x20to\x20connect\x20MCP','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','301820SMrTzO','API\x20Key','3292JxTBos','Configuration\x20saved\x20successfully','20416UJGShG','MCP:\x20Session\x20ID\x20Occupied','2061PwzGEp','MCP:\x20Unauthorized','2617926FagTXD','Configuration\x20Steps:','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','MCP\x20Disconnected','283444OUIDPI','Invalid\x20configuration','MCP\x20Configuration','1437MEqxfa','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x1018=function(){return _0x1725b2;};return _0x1018();}const e={'mcpStatus':{'disconnected':_0x5b44af(0x120),'connecting':_0x5b44af(0x12f),'connected':'MCP\x20Connected','failed':_0x5b44af(0x135),'retrying':_0x5b44af(0x12a),'unknown':_0x5b44af(0x130),'unauthorized':_0x5b44af(0x148),'sessionOccupied':_0x5b44af(0x146),'networkError':_0x5b44af(0x134),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5b44af(0x139),'clickToConfigure':_0x5b44af(0x127)},'mcpConfig':{'title':_0x5b44af(0x123),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5b44af(0x142),'apiKeyPlaceholder':_0x5b44af(0x131),'apiKeyHint':_0x5b44af(0x125),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x5b44af(0x140),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5b44af(0x133),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5b44af(0x11c),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5b44af(0x12b),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5b44af(0x126),'sessionIdDescription':_0x5b44af(0x13c),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5b44af(0x138),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x5b44af(0x129),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5b44af(0x13b),'configSaved':_0x5b44af(0x144),'configError':_0x5b44af(0x13e),'apiApplyInfo':{'title':_0x5b44af(0x136),'description':_0x5b44af(0x11e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5b44af(0x128)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5b44af(0x122),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5b44af(0x13a),'connecting':'Connecting...','connected':_0x5b44af(0x12c),'failed':_0x5b44af(0x11f),'retrying':_0x5b44af(0x11d)},'connectionError':{'unauthorized':_0x5b44af(0x12e),'sessionOccupied':_0x5b44af(0x13d),'networkError':_0x5b44af(0x13f),'maxRetriesExceeded':_0x5b44af(0x137)}}},n=e;module['exports']=n;
1
+ 'use strict';function _0x4dea(_0x577058,_0x404edf){_0x577058=_0x577058-0x13f;const _0x3ced18=_0x3ced();let _0x4dea6d=_0x3ced18[_0x577058];return _0x4dea6d;}const _0x2a2f6f=_0x4dea;(function(_0x2ddd54,_0x3a870f){const _0x3800c0=_0x4dea,_0x200c7e=_0x2ddd54();while(!![]){try{const _0x277e93=-parseInt(_0x3800c0(0x14e))/0x1*(parseInt(_0x3800c0(0x147))/0x2)+-parseInt(_0x3800c0(0x15a))/0x3*(-parseInt(_0x3800c0(0x155))/0x4)+-parseInt(_0x3800c0(0x144))/0x5+parseInt(_0x3800c0(0x164))/0x6+parseInt(_0x3800c0(0x14d))/0x7*(-parseInt(_0x3800c0(0x158))/0x8)+parseInt(_0x3800c0(0x15b))/0x9*(-parseInt(_0x3800c0(0x15c))/0xa)+-parseInt(_0x3800c0(0x141))/0xb*(-parseInt(_0x3800c0(0x167))/0xc);if(_0x277e93===_0x3a870f)break;else _0x200c7e['push'](_0x200c7e['shift']());}catch(_0x16cb41){_0x200c7e['push'](_0x200c7e['shift']());}}}(_0x3ced,0xace97));const e={'mcpStatus':{'disconnected':_0x2a2f6f(0x152),'connecting':'MCP\x20Connecting...','connected':_0x2a2f6f(0x165),'failed':_0x2a2f6f(0x159),'retrying':_0x2a2f6f(0x171),'unknown':_0x2a2f6f(0x153),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2a2f6f(0x170),'networkError':_0x2a2f6f(0x163),'maxRetriesExceeded':_0x2a2f6f(0x146),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2a2f6f(0x169)},'mcpConfig':{'title':_0x2a2f6f(0x14f),'description':_0x2a2f6f(0x14b),'apiKey':_0x2a2f6f(0x168),'apiKeyPlaceholder':_0x2a2f6f(0x150),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2a2f6f(0x15e),'enableAuthHint':_0x2a2f6f(0x148),'connectionInfo':_0x2a2f6f(0x173),'mcpClientConfig':_0x2a2f6f(0x173),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2a2f6f(0x14c),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2a2f6f(0x15d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','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':_0x2a2f6f(0x151),'configParameters':_0x2a2f6f(0x157),'maxRetries':_0x2a2f6f(0x149),'save':_0x2a2f6f(0x145),'saving':_0x2a2f6f(0x16a),'note1':_0x2a2f6f(0x166),'note2':_0x2a2f6f(0x172),'configSaved':_0x2a2f6f(0x16b),'configError':_0x2a2f6f(0x16d),'apiApplyInfo':{'title':_0x2a2f6f(0x142),'description':_0x2a2f6f(0x162),'univerAiLabel':_0x2a2f6f(0x143),'getStarted':_0x2a2f6f(0x16e)},'validation':{'apiKeyRequired':_0x2a2f6f(0x160),'apiKeyTooShort':_0x2a2f6f(0x14a),'invalidConfig':_0x2a2f6f(0x16f),'invalidApiKey':_0x2a2f6f(0x16c)},'connectionStatus':{'disconnected':_0x2a2f6f(0x161),'connecting':'Connecting...','connected':'Connected','failed':_0x2a2f6f(0x154),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2a2f6f(0x15f),'sessionOccupied':_0x2a2f6f(0x13f),'networkError':_0x2a2f6f(0x156),'maxRetriesExceeded':_0x2a2f6f(0x140)}}},n=e;function _0x3ced(){const _0x1cd147=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Client\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','3091YxJhYC','What\x20is\x20API\x20Key?','Univer\x20AI\x20Console','1882185eCASRQ','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','2IXulms','Enable\x20authentication\x20for\x20secure\x20connections','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Steps:','6631576LzpFsl','1042672oNEuAj','MCP\x20Configuration','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','MCP\x20Unknown\x20Status','Connection\x20Failed','44XZDVgM','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','8ACkLBo','MCP\x20Connection\x20Failed','380820LHppZJ','3125448izGdRx','40Cbnynz','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Network\x20Error','2564862fiSDZf','MCP\x20Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','112740LHbOPc','API\x20Key','Click\x20to\x20configure\x20MCP','Saving...','Configuration\x20saved\x20successfully','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Retrying...'];_0x3ced=function(){return _0x1cd147;};return _0x3ced();}module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';const _0x19b13f=_0x4695;function _0x4695(_0x26d689,_0x3493d7){_0x26d689=_0x26d689-0xa5;const _0x3b17b3=_0x3b17();let _0x4695fe=_0x3b17b3[_0x26d689];return _0x4695fe;}function _0x3b17(){const _0x53b2e7=['API\x20key\x20is\x20required','MCP\x20Connected','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3689048HnSqsR','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP','Saving...','Enable\x20Authentication','448566dWTIyP','5721390OlLtoo','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','91AjDbwm','API\x20key\x20with\x20Bearer\x20prefix.','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20Key','Invalid\x20configuration','Connection\x20Failed','Save\x20Configuration','MCP\x20Retrying...','Configuration\x20Steps:','190870kBlSzJ','MCP:\x20Max\x20Retries\x20Exceeded','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','MCP\x20Connecting...','exports','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','What\x20is\x20API\x20Key?','2qWtGvv','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connecting...','24441990QHmZym','Disconnected','9ZSZtAH','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','8566512hijNuw','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','1773168AqzABe','Retrying...','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x3b17=function(){return _0x53b2e7;};return _0x3b17();}(function(_0x410b6b,_0x131015){const _0x196611=_0x4695,_0x5eda91=_0x410b6b();while(!![]){try{const _0x1f4c30=-parseInt(_0x196611(0xd3))/0x1*(parseInt(_0x196611(0xc8))/0x2)+parseInt(_0x196611(0xa8))/0x3+parseInt(_0x196611(0xb1))/0x4+-parseInt(_0x196611(0xb7))/0x5+-parseInt(_0x196611(0xb6))/0x6*(parseInt(_0x196611(0xbe))/0x7)+-parseInt(_0x196611(0xa5))/0x8+parseInt(_0x196611(0xd9))/0x9*(parseInt(_0x196611(0xd7))/0xa);if(_0x1f4c30===_0x131015)break;else _0x5eda91['push'](_0x5eda91['shift']());}catch(_0x3bece4){_0x5eda91['push'](_0x5eda91['shift']());}}}(_0x3b17,0x8d84e));const e={'mcpStatus':{'disconnected':_0x19b13f(0xb8),'connecting':_0x19b13f(0xcd),'connected':_0x19b13f(0xae),'failed':'MCP\x20Connection\x20Failed','retrying':_0x19b13f(0xc6),'unknown':_0x19b13f(0xda),'unauthorized':_0x19b13f(0xaf),'sessionOccupied':_0x19b13f(0xab),'networkError':_0x19b13f(0xcc),'maxRetriesExceeded':_0x19b13f(0xc9),'clickToConnect':_0x19b13f(0xb3),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x19b13f(0xa6),'apiKey':_0x19b13f(0xc2),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x19b13f(0xac),'enableAuth':_0x19b13f(0xb5),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x19b13f(0xbb),'mcpClientConfig':_0x19b13f(0xbb),'configInstructions':_0x19b13f(0xd4),'configStepTitle':_0x19b13f(0xc7),'configStep1':_0x19b13f(0xca),'configStep2':_0x19b13f(0xd1),'configStep3':_0x19b13f(0xd0),'sessionId':'Session\x20ID','sessionIdDescription':_0x19b13f(0xc1),'authorizationDescription':_0x19b13f(0xbf),'configParameters':_0x19b13f(0xdb),'maxRetries':_0x19b13f(0xaa),'save':_0x19b13f(0xc5),'saving':_0x19b13f(0xb4),'note1':_0x19b13f(0xb2),'note2':_0x19b13f(0xb0),'configSaved':_0x19b13f(0xba),'configError':_0x19b13f(0xa7),'apiApplyInfo':{'title':_0x19b13f(0xd2),'description':_0x19b13f(0xd5),'univerAiLabel':_0x19b13f(0xc0),'getStarted':_0x19b13f(0xbc)},'validation':{'apiKeyRequired':_0x19b13f(0xad),'apiKeyTooShort':_0x19b13f(0xdc),'invalidConfig':_0x19b13f(0xc3),'invalidApiKey':_0x19b13f(0xcb)},'connectionStatus':{'disconnected':_0x19b13f(0xd8),'connecting':_0x19b13f(0xd6),'connected':_0x19b13f(0xcf),'failed':_0x19b13f(0xc4),'retrying':_0x19b13f(0xa9)},'connectionError':{'unauthorized':_0x19b13f(0xb9),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x19b13f(0xbd),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x19b13f(0xce)]=e;
1
+ 'use strict';const _0x31f7ae=_0x39c7;function _0x39c7(_0x39ebdf,_0x958fef){_0x39ebdf=_0x39ebdf-0x12a;const _0x145ae8=_0x145a();let _0x39c778=_0x145ae8[_0x39ebdf];return _0x39c778;}(function(_0x68716b,_0x41ab70){const _0x1a1116=_0x39c7,_0x48bd33=_0x68716b();while(!![]){try{const _0x2cee2b=-parseInt(_0x1a1116(0x130))/0x1+-parseInt(_0x1a1116(0x150))/0x2+parseInt(_0x1a1116(0x158))/0x3+-parseInt(_0x1a1116(0x13a))/0x4+parseInt(_0x1a1116(0x13e))/0x5*(parseInt(_0x1a1116(0x136))/0x6)+-parseInt(_0x1a1116(0x14d))/0x7+parseInt(_0x1a1116(0x13d))/0x8;if(_0x2cee2b===_0x41ab70)break;else _0x48bd33['push'](_0x48bd33['shift']());}catch(_0x505b3f){_0x48bd33['push'](_0x48bd33['shift']());}}}(_0x145a,0xe0030));function _0x145a(){const _0x1a6c97=['Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','1664120TbbwYK','MCP:\x20Unauthorized','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','MCP\x20Connected','API\x20key\x20with\x20Bearer\x20prefix.','6ShVvPM','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','6162168FPUOZS','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','19152416woBLaH','8855290KkhwFJ','Saving...','Configuration\x20saved\x20successfully','Click\x20to\x20connect\x20MCP','Max\x20Retries','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Network\x20Error','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','exports','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','1309637zAffLV','Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','2993072JbLShO','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Save\x20Configuration','Univer\x20AI\x20Console','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','MCP\x20Configuration','4922193afDgKL','MCP\x20Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x145a=function(){return _0x1a6c97;};return _0x145a();}const e={'mcpStatus':{'disconnected':_0x31f7ae(0x138),'connecting':'MCP\x20Connecting...','connected':_0x31f7ae(0x134),'failed':_0x31f7ae(0x159),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x31f7ae(0x131),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x31f7ae(0x146),'maxRetriesExceeded':_0x31f7ae(0x13b),'clickToConnect':_0x31f7ae(0x141),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x31f7ae(0x157),'description':_0x31f7ae(0x14f),'apiKey':_0x31f7ae(0x12a),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x31f7ae(0x12c),'enableAuth':_0x31f7ae(0x14a),'enableAuthHint':_0x31f7ae(0x148),'connectionInfo':_0x31f7ae(0x156),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x31f7ae(0x12e),'configStepTitle':_0x31f7ae(0x12d),'configStep1':_0x31f7ae(0x155),'configStep2':_0x31f7ae(0x15a),'configStep3':_0x31f7ae(0x139),'sessionId':'Session\x20ID','sessionIdDescription':_0x31f7ae(0x144),'authorizationDescription':_0x31f7ae(0x135),'configParameters':_0x31f7ae(0x133),'maxRetries':_0x31f7ae(0x142),'save':_0x31f7ae(0x152),'saving':_0x31f7ae(0x13f),'note1':_0x31f7ae(0x145),'note2':_0x31f7ae(0x14b),'configSaved':_0x31f7ae(0x140),'configError':_0x31f7ae(0x132),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x31f7ae(0x143),'univerAiLabel':_0x31f7ae(0x153),'getStarted':_0x31f7ae(0x13c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x31f7ae(0x151),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x31f7ae(0x154)},'connectionStatus':{'disconnected':_0x31f7ae(0x147),'connecting':'Connecting...','connected':_0x31f7ae(0x12f),'failed':_0x31f7ae(0x14e),'retrying':_0x31f7ae(0x14c)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x31f7ae(0x12b),'networkError':_0x31f7ae(0x137),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x31f7ae(0x149)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x2168f5=_0x370d;(function(_0x31a86c,_0x4ebcd9){const _0x1aad08=_0x370d,_0x448b02=_0x31a86c();while(!![]){try{const _0x4e4cbc=-parseInt(_0x1aad08(0x141))/0x1*(-parseInt(_0x1aad08(0x144))/0x2)+parseInt(_0x1aad08(0x123))/0x3+-parseInt(_0x1aad08(0x122))/0x4*(parseInt(_0x1aad08(0x135))/0x5)+-parseInt(_0x1aad08(0x124))/0x6*(-parseInt(_0x1aad08(0x127))/0x7)+-parseInt(_0x1aad08(0x12f))/0x8*(parseInt(_0x1aad08(0x13a))/0x9)+-parseInt(_0x1aad08(0x145))/0xa+parseInt(_0x1aad08(0x11c))/0xb;if(_0x4e4cbc===_0x4ebcd9)break;else _0x448b02['push'](_0x448b02['shift']());}catch(_0x5a0a62){_0x448b02['push'](_0x448b02['shift']());}}}(_0x1df9,0x99d4a));function _0x370d(_0x2555de,_0x1a28a7){_0x2555de=_0x2555de-0x11a;const _0x1df925=_0x1df9();let _0x370d1f=_0x1df925[_0x2555de];return _0x370d1f;}const e={'mcpStatus':{'disconnected':_0x2168f5(0x132),'connecting':'MCP\x20Connecting...','connected':_0x2168f5(0x11a),'failed':_0x2168f5(0x121),'retrying':_0x2168f5(0x136),'unknown':_0x2168f5(0x11f),'unauthorized':_0x2168f5(0x140),'sessionOccupied':_0x2168f5(0x138),'networkError':_0x2168f5(0x147),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2168f5(0x14c),'clickToConfigure':_0x2168f5(0x131)},'mcpConfig':{'title':_0x2168f5(0x120),'description':_0x2168f5(0x137),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2168f5(0x12b),'apiKeyHint':_0x2168f5(0x14a),'enableAuth':_0x2168f5(0x148),'enableAuthHint':_0x2168f5(0x14b),'connectionInfo':_0x2168f5(0x130),'mcpClientConfig':_0x2168f5(0x130),'configInstructions':_0x2168f5(0x14d),'configStepTitle':_0x2168f5(0x125),'configStep1':_0x2168f5(0x149),'configStep2':_0x2168f5(0x133),'configStep3':_0x2168f5(0x11b),'sessionId':_0x2168f5(0x128),'sessionIdDescription':_0x2168f5(0x143),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2168f5(0x129),'maxRetries':_0x2168f5(0x12e),'save':_0x2168f5(0x13c),'saving':_0x2168f5(0x139),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2168f5(0x13b),'configSaved':_0x2168f5(0x12a),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2168f5(0x14e),'description':_0x2168f5(0x12c),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2168f5(0x146),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2168f5(0x11d),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2168f5(0x126),'connecting':_0x2168f5(0x142),'connected':_0x2168f5(0x12d),'failed':_0x2168f5(0x11e),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2168f5(0x13f),'sessionOccupied':_0x2168f5(0x13e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2168f5(0x134)}}},n=e;module[_0x2168f5(0x13d)]=n;function _0x1df9(){const _0x5494cb=['MCP\x20Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20ID\x20Occupied','Saving...','10252386qRTkqo','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','525377DOlzMQ','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','4WBVpUW','10765460gdlkyD','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','Enable\x20Authentication','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','MCP\x20Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','18101072OESllN','Invalid\x20configuration','Connection\x20Failed','MCP\x20Unknown\x20Status','MCP\x20Configuration','MCP\x20Connection\x20Failed','8YcROFb','436998cuAxIL','7728FiLCTj','Configuration\x20Steps:','Disconnected','3150IrtYnW','Session\x20ID','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','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.','Connected','Max\x20Retries','8RWogHD','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','MCP\x20Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1439455YiLFAb'];_0x1df9=function(){return _0x5494cb;};return _0x1df9();}
1
+ 'use strict';function _0x2c37(_0x2895b4,_0x66e3ff){_0x2895b4=_0x2895b4-0x11e;const _0x4c78cd=_0x4c78();let _0x2c3781=_0x4c78cd[_0x2895b4];return _0x2c3781;}const _0x3e172a=_0x2c37;(function(_0x3690ff,_0x560e23){const _0x2b5dfb=_0x2c37,_0x1289da=_0x3690ff();while(!![]){try{const _0x44e5f9=-parseInt(_0x2b5dfb(0x122))/0x1+-parseInt(_0x2b5dfb(0x130))/0x2+parseInt(_0x2b5dfb(0x11f))/0x3+-parseInt(_0x2b5dfb(0x13c))/0x4*(-parseInt(_0x2b5dfb(0x12b))/0x5)+parseInt(_0x2b5dfb(0x138))/0x6+-parseInt(_0x2b5dfb(0x121))/0x7*(parseInt(_0x2b5dfb(0x147))/0x8)+parseInt(_0x2b5dfb(0x148))/0x9;if(_0x44e5f9===_0x560e23)break;else _0x1289da['push'](_0x1289da['shift']());}catch(_0x5c9423){_0x1289da['push'](_0x1289da['shift']());}}}(_0x4c78,0x25e8a));const e={'mcpStatus':{'disconnected':_0x3e172a(0x144),'connecting':_0x3e172a(0x124),'connected':_0x3e172a(0x123),'failed':_0x3e172a(0x14d),'retrying':_0x3e172a(0x132),'unknown':_0x3e172a(0x141),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3e172a(0x12c),'networkError':_0x3e172a(0x14c),'maxRetriesExceeded':_0x3e172a(0x136),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3e172a(0x142)},'mcpConfig':{'title':_0x3e172a(0x12f),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3e172a(0x131),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3e172a(0x145),'enableAuth':_0x3e172a(0x12e),'enableAuthHint':_0x3e172a(0x137),'connectionInfo':_0x3e172a(0x127),'mcpClientConfig':_0x3e172a(0x127),'configInstructions':_0x3e172a(0x143),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3e172a(0x128),'configStep2':_0x3e172a(0x133),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3e172a(0x13f),'sessionIdDescription':_0x3e172a(0x125),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3e172a(0x140),'maxRetries':'Max\x20Retries','save':_0x3e172a(0x13a),'saving':'Saving...','note1':_0x3e172a(0x120),'note2':_0x3e172a(0x13b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3e172a(0x14b),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3e172a(0x126),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3e172a(0x13e)},'validation':{'apiKeyRequired':_0x3e172a(0x135),'apiKeyTooShort':_0x3e172a(0x134),'invalidConfig':_0x3e172a(0x149),'invalidApiKey':_0x3e172a(0x14a)},'connectionStatus':{'disconnected':_0x3e172a(0x13d),'connecting':'Connecting...','connected':_0x3e172a(0x129),'failed':_0x3e172a(0x146),'retrying':_0x3e172a(0x11e)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3e172a(0x12d),'networkError':_0x3e172a(0x12a),'maxRetriesExceeded':_0x3e172a(0x139)}}},n=e;function _0x4c78(){const _0x24909b=['Get\x20your\x20API\x20key\x20in\x20seconds','Session\x20ID','Configuration\x20Parameters:','MCP\x20Unknown\x20Status','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connection\x20Failed','456592kftRpe','221625bkNYXT','Invalid\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','MCP:\x20Network\x20Error','MCP\x20Connection\x20Failed','Retrying...','646164eHjImt','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','7CLvoIn','197930hybXiL','MCP\x20Connected','MCP\x20Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','15zfLPQs','MCP:\x20Session\x20ID\x20Occupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20Authentication','MCP\x20Configuration','80738TdQImw','API\x20Key','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20authentication\x20for\x20secure\x20connections','918978itDDua','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','76628eRXBfW','Disconnected'];_0x4c78=function(){return _0x24909b;};return _0x4c78();}module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';function _0x239c(_0x3ba0c3,_0x4cde4a){_0x3ba0c3=_0x3ba0c3-0xdf;const _0xaa7f1d=_0xaa7f();let _0x239c48=_0xaa7f1d[_0x3ba0c3];return _0x239c48;}const _0x1d23c4=_0x239c;(function(_0x20cd98,_0x17b98d){const _0x5b2a8f=_0x239c,_0x3bc4fb=_0x20cd98();while(!![]){try{const _0x129ae2=parseInt(_0x5b2a8f(0xe1))/0x1+-parseInt(_0x5b2a8f(0x103))/0x2+-parseInt(_0x5b2a8f(0xea))/0x3+-parseInt(_0x5b2a8f(0x101))/0x4+parseInt(_0x5b2a8f(0x109))/0x5*(-parseInt(_0x5b2a8f(0xe4))/0x6)+parseInt(_0x5b2a8f(0x106))/0x7+parseInt(_0x5b2a8f(0x10d))/0x8*(parseInt(_0x5b2a8f(0xee))/0x9);if(_0x129ae2===_0x17b98d)break;else _0x3bc4fb['push'](_0x3bc4fb['shift']());}catch(_0x20668c){_0x3bc4fb['push'](_0x3bc4fb['shift']());}}}(_0xaa7f,0x66d72));function _0xaa7f(){const _0x59feb9=['Configuration\x20Parameters:','API\x20key\x20is\x20required','Save\x20Configuration','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','2047362wOkMxZ','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','13779RYbkbn','MCP\x20Retrying...','MCP\x20Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20Authentication','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1138080epQSoE','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1062664opYKJB','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2076116IwpLLJ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Session\x20ID\x20Occupied','112110WznAxn','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','MCP:\x20Max\x20Retries\x20Exceeded','8144DrifLA','MCP\x20Unknown\x20Status','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Saving...','Connected','MCP\x20Connected','804320fpRDXt','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','198smWQEA'];_0xaa7f=function(){return _0x59feb9;};return _0xaa7f();}const e={'mcpStatus':{'disconnected':_0x1d23c4(0xf0),'connecting':_0x1d23c4(0x110),'connected':_0x1d23c4(0xe0),'failed':_0x1d23c4(0xeb),'retrying':_0x1d23c4(0xef),'unknown':_0x1d23c4(0x10e),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1d23c4(0x108),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1d23c4(0x10c),'clickToConnect':_0x1d23c4(0x111),'clickToConfigure':_0x1d23c4(0xf3)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x1d23c4(0xe3),'apiKey':_0x1d23c4(0xfa),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1d23c4(0x105),'enableAuth':_0x1d23c4(0xf8),'enableAuthHint':_0x1d23c4(0xe9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1d23c4(0x102),'configStepTitle':_0x1d23c4(0x112),'configStep1':_0x1d23c4(0xfb),'configStep2':_0x1d23c4(0xf9),'configStep3':_0x1d23c4(0xf5),'sessionId':'Session\x20ID','sessionIdDescription':_0x1d23c4(0xf1),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1d23c4(0xe5),'maxRetries':'Max\x20Retries','save':_0x1d23c4(0xe7),'saving':_0x1d23c4(0x113),'note1':_0x1d23c4(0x100),'note2':_0x1d23c4(0xff),'configSaved':_0x1d23c4(0xfe),'configError':_0x1d23c4(0xfc),'apiApplyInfo':{'title':_0x1d23c4(0x10b),'description':_0x1d23c4(0x104),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1d23c4(0xf4)},'validation':{'apiKeyRequired':_0x1d23c4(0xe6),'apiKeyTooShort':_0x1d23c4(0xf7),'invalidConfig':_0x1d23c4(0xfd),'invalidApiKey':_0x1d23c4(0x107)},'connectionStatus':{'disconnected':_0x1d23c4(0xf2),'connecting':_0x1d23c4(0xf6),'connected':_0x1d23c4(0xdf),'failed':_0x1d23c4(0xe8),'retrying':_0x1d23c4(0xed)},'connectionError':{'unauthorized':_0x1d23c4(0x10a),'sessionOccupied':_0x1d23c4(0x10f),'networkError':_0x1d23c4(0xec),'maxRetriesExceeded':_0x1d23c4(0xe2)}}},n=e;module['exports']=n;
1
+ 'use strict';const _0x419d8c=_0x2a53;function _0x2a53(_0x302685,_0x4e8ab2){_0x302685=_0x302685-0x1e0;const _0x4d49b2=_0x4d49();let _0x2a5369=_0x4d49b2[_0x302685];return _0x2a5369;}(function(_0x1f419d,_0x4438ed){const _0x3bbacf=_0x2a53,_0x2635b0=_0x1f419d();while(!![]){try{const _0x286964=parseInt(_0x3bbacf(0x20c))/0x1+-parseInt(_0x3bbacf(0x20b))/0x2*(parseInt(_0x3bbacf(0x211))/0x3)+-parseInt(_0x3bbacf(0x1fd))/0x4*(parseInt(_0x3bbacf(0x1e1))/0x5)+parseInt(_0x3bbacf(0x1e0))/0x6*(-parseInt(_0x3bbacf(0x206))/0x7)+parseInt(_0x3bbacf(0x20e))/0x8+parseInt(_0x3bbacf(0x1e8))/0x9+-parseInt(_0x3bbacf(0x1ef))/0xa*(-parseInt(_0x3bbacf(0x200))/0xb);if(_0x286964===_0x4438ed)break;else _0x2635b0['push'](_0x2635b0['shift']());}catch(_0x538956){_0x2635b0['push'](_0x2635b0['shift']());}}}(_0x4d49,0x4035f));const e={'mcpStatus':{'disconnected':_0x419d8c(0x1e2),'connecting':_0x419d8c(0x213),'connected':_0x419d8c(0x204),'failed':'MCP\x20Connection\x20Failed','retrying':_0x419d8c(0x1f1),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x419d8c(0x1ff),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x419d8c(0x1ec),'maxRetriesExceeded':_0x419d8c(0x20a),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x419d8c(0x212)},'mcpConfig':{'title':_0x419d8c(0x205),'description':_0x419d8c(0x207),'apiKey':_0x419d8c(0x1fb),'apiKeyPlaceholder':_0x419d8c(0x1e9),'apiKeyHint':_0x419d8c(0x1ea),'enableAuth':_0x419d8c(0x1e7),'enableAuthHint':_0x419d8c(0x1f3),'connectionInfo':_0x419d8c(0x1e6),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x419d8c(0x20f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x419d8c(0x1ed),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x419d8c(0x209),'sessionId':'Session\x20ID','sessionIdDescription':_0x419d8c(0x1e3),'authorizationDescription':_0x419d8c(0x201),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x419d8c(0x20d),'saving':_0x419d8c(0x203),'note1':_0x419d8c(0x1f7),'note2':_0x419d8c(0x202),'configSaved':_0x419d8c(0x215),'configError':_0x419d8c(0x1ee),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x419d8c(0x1eb),'univerAiLabel':_0x419d8c(0x1f8),'getStarted':_0x419d8c(0x1fc)},'validation':{'apiKeyRequired':_0x419d8c(0x1f9),'apiKeyTooShort':_0x419d8c(0x1e5),'invalidConfig':_0x419d8c(0x208),'invalidApiKey':_0x419d8c(0x1fa)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x419d8c(0x1f6),'connected':_0x419d8c(0x1f4),'failed':_0x419d8c(0x1f2),'retrying':_0x419d8c(0x214)},'connectionError':{'unauthorized':_0x419d8c(0x1f0),'sessionOccupied':_0x419d8c(0x1e4),'networkError':_0x419d8c(0x210),'maxRetriesExceeded':_0x419d8c(0x1fe)}}},n=e;function _0x4d49(){const _0x3dfd87=['2510405BOrLEZ','MCP\x20Disconnected','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','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Client\x20Configuration','Enable\x20Authentication','449118SVDsCk','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','10myDFEY','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Connected','exports','Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Univer\x20AI\x20Console','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','4LFlKHW','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Unauthorized','12949211ajlemO','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Saving...','MCP\x20Connected','MCP\x20Configuration','3171931cyKLzp','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','18334PmWaca','6503eBdTJV','Save\x20Configuration','683616ALePVL','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','33XsVADw','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Retrying...','Configuration\x20saved\x20successfully','6djxHfS'];_0x4d49=function(){return _0x3dfd87;};return _0x4d49();}module[_0x419d8c(0x1f5)]=n;
@@ -1 +1 @@
1
- 'use strict';function _0x15c1(){const _0x386dbe=['Connecting...','Session\x20ID','Enable\x20Authentication','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','Failed\x20to\x20save\x20configuration','1500618ctxZxG','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','34124lXirfr','7EFLFff','628EkDwdE','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Disconnected','310pDFref','Get\x20your\x20API\x20key\x20in\x20seconds','21639101PxQYhx','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Unauthorized','MCP\x20Connecting...','MCP\x20Client\x20Configuration','7854512OHZGgm','Retrying...','3129BDKZnF','MCP\x20Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','297657szWWXj','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','13470ewwGAN','Connection\x20Failed','MCP:\x20Network\x20Error','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','exports','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','2710qiShyn','Enable\x20authentication\x20for\x20secure\x20connections'];_0x15c1=function(){return _0x386dbe;};return _0x15c1();}const _0x1500db=_0x1322;function _0x1322(_0x15be1d,_0x112a89){_0x15be1d=_0x15be1d-0x1b9;const _0x15c16e=_0x15c1();let _0x132236=_0x15c16e[_0x15be1d];return _0x132236;}(function(_0xc841b1,_0x14a6af){const _0xf81f54=_0x1322,_0x49406f=_0xc841b1();while(!![]){try{const _0x5ec409=parseInt(_0xf81f54(0x1c7))/0x1+parseInt(_0xf81f54(0x1e8))/0x2*(parseInt(_0xf81f54(0x1d5))/0x3)+parseInt(_0xf81f54(0x1c9))/0x4*(-parseInt(_0xf81f54(0x1da))/0x5)+-parseInt(_0xf81f54(0x1c0))/0x6+-parseInt(_0xf81f54(0x1c8))/0x7*(-parseInt(_0xf81f54(0x1d3))/0x8)+parseInt(_0xf81f54(0x1d8))/0x9*(parseInt(_0xf81f54(0x1cc))/0xa)+-parseInt(_0xf81f54(0x1ce))/0xb;if(_0x5ec409===_0x14a6af)break;else _0x49406f['push'](_0x49406f['shift']());}catch(_0x2671f8){_0x49406f['push'](_0x49406f['shift']());}}}(_0x15c1,0xc6c86));const e={'mcpStatus':{'disconnected':_0x1500db(0x1cb),'connecting':_0x1500db(0x1d1),'connected':'MCP\x20Connected','failed':_0x1500db(0x1d6),'retrying':'MCP\x20Retrying...','unknown':_0x1500db(0x1e1),'unauthorized':_0x1500db(0x1d0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1500db(0x1dc),'maxRetriesExceeded':_0x1500db(0x1e7),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1500db(0x1e5),'description':_0x1500db(0x1bd),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1500db(0x1de),'enableAuth':_0x1500db(0x1bc),'enableAuthHint':_0x1500db(0x1b9),'connectionInfo':_0x1500db(0x1d2),'mcpClientConfig':_0x1500db(0x1d2),'configInstructions':_0x1500db(0x1c5),'configStepTitle':_0x1500db(0x1c2),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1500db(0x1e4),'configStep3':_0x1500db(0x1e6),'sessionId':_0x1500db(0x1bb),'sessionIdDescription':_0x1500db(0x1e3),'authorizationDescription':_0x1500db(0x1c1),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x1500db(0x1d9),'note2':_0x1500db(0x1c4),'configSaved':_0x1500db(0x1e0),'configError':_0x1500db(0x1bf),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1500db(0x1d7),'univerAiLabel':_0x1500db(0x1be),'getStarted':_0x1500db(0x1cd)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1500db(0x1c6),'invalidConfig':_0x1500db(0x1dd),'invalidApiKey':_0x1500db(0x1df)},'connectionStatus':{'disconnected':_0x1500db(0x1c3),'connecting':_0x1500db(0x1ba),'connected':'Connected','failed':_0x1500db(0x1db),'retrying':_0x1500db(0x1d4)},'connectionError':{'unauthorized':_0x1500db(0x1ca),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x1500db(0x1cf),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x1500db(0x1e2)]=n;
1
+ 'use strict';const _0x2e3b9=_0x51ea;(function(_0x11d791,_0x1cc5b6){const _0x5ed6fc=_0x51ea,_0x50b214=_0x11d791();while(!![]){try{const _0x5715cd=parseInt(_0x5ed6fc(0x1bc))/0x1+parseInt(_0x5ed6fc(0x1b0))/0x2+-parseInt(_0x5ed6fc(0x1b8))/0x3*(-parseInt(_0x5ed6fc(0x1a7))/0x4)+-parseInt(_0x5ed6fc(0x195))/0x5*(-parseInt(_0x5ed6fc(0x1c1))/0x6)+parseInt(_0x5ed6fc(0x1b7))/0x7*(parseInt(_0x5ed6fc(0x199))/0x8)+parseInt(_0x5ed6fc(0x1c0))/0x9+-parseInt(_0x5ed6fc(0x1c3))/0xa*(parseInt(_0x5ed6fc(0x19c))/0xb);if(_0x5715cd===_0x1cc5b6)break;else _0x50b214['push'](_0x50b214['shift']());}catch(_0x1f1e4b){_0x50b214['push'](_0x50b214['shift']());}}}(_0x2294,0xc19ea));function _0x51ea(_0x2da50f,_0x4d928c){_0x2da50f=_0x2da50f-0x195;const _0x22941a=_0x2294();let _0x51ea90=_0x22941a[_0x2da50f];return _0x51ea90;}function _0x2294(){const _0x311655=['Enter\x20your\x20API\x20key','11616057AmbVCm','54CuzCOH','Failed\x20to\x20save\x20configuration','24978410zcwwkx','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','690355lBWvUy','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','Connecting...','6490808lNBciD','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','22pOwNop','Session\x20ID','Retrying...','Configuration\x20Steps:','MCP:\x20Network\x20Error','MCP\x20Connecting...','MCP\x20Client\x20Configuration','Save\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connected','424kZkwzW','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Session\x20ID\x20Occupied','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Retrying...','681518YYKdWQ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connection\x20Failed','MCP\x20Connected','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','7nbYeKg','19659STQycv','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Unknown\x20Status','exports','1408708wALmLm','Connection\x20Failed','Saving...'];_0x2294=function(){return _0x311655;};return _0x2294();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2e3b9(0x1a1),'connected':_0x2e3b9(0x1b3),'failed':_0x2e3b9(0x1b2),'retrying':_0x2e3b9(0x1af),'unknown':_0x2e3b9(0x1ba),'unauthorized':_0x2e3b9(0x19b),'sessionOccupied':_0x2e3b9(0x1a9),'networkError':_0x2e3b9(0x1a0),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2e3b9(0x1c4),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2e3b9(0x1b4),'description':_0x2e3b9(0x1c7),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2e3b9(0x1bf),'apiKeyHint':_0x2e3b9(0x1ca),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2e3b9(0x1c5),'connectionInfo':_0x2e3b9(0x1a2),'mcpClientConfig':_0x2e3b9(0x1a2),'configInstructions':_0x2e3b9(0x1a8),'configStepTitle':_0x2e3b9(0x19f),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2e3b9(0x1ab),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2e3b9(0x19d),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2e3b9(0x1ae),'configParameters':_0x2e3b9(0x1c6),'maxRetries':_0x2e3b9(0x1ad),'save':_0x2e3b9(0x1a3),'saving':_0x2e3b9(0x1be),'note1':_0x2e3b9(0x1b5),'note2':_0x2e3b9(0x19a),'configSaved':_0x2e3b9(0x197),'configError':_0x2e3b9(0x1c2),'apiApplyInfo':{'title':_0x2e3b9(0x1aa),'description':_0x2e3b9(0x196),'univerAiLabel':_0x2e3b9(0x1c8),'getStarted':_0x2e3b9(0x1b9)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2e3b9(0x1c9),'invalidConfig':_0x2e3b9(0x1b6),'invalidApiKey':_0x2e3b9(0x1b1)},'connectionStatus':{'disconnected':_0x2e3b9(0x1ac),'connecting':_0x2e3b9(0x198),'connected':_0x2e3b9(0x1a6),'failed':_0x2e3b9(0x1bd),'retrying':_0x2e3b9(0x19e)},'connectionError':{'unauthorized':_0x2e3b9(0x1a4),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2e3b9(0x1a5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x2e3b9(0x1bb)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x45a5c2=_0x1dfa;(function(_0x44d6d3,_0x42f746){const _0x2b37ca=_0x1dfa,_0x3025e3=_0x44d6d3();while(!![]){try{const _0x4835ce=parseInt(_0x2b37ca(0x15b))/0x1+-parseInt(_0x2b37ca(0x140))/0x2*(parseInt(_0x2b37ca(0x155))/0x3)+-parseInt(_0x2b37ca(0x151))/0x4*(parseInt(_0x2b37ca(0x143))/0x5)+-parseInt(_0x2b37ca(0x13f))/0x6+-parseInt(_0x2b37ca(0x161))/0x7+-parseInt(_0x2b37ca(0x156))/0x8*(parseInt(_0x2b37ca(0x13b))/0x9)+parseInt(_0x2b37ca(0x15a))/0xa;if(_0x4835ce===_0x42f746)break;else _0x3025e3['push'](_0x3025e3['shift']());}catch(_0x59c629){_0x3025e3['push'](_0x3025e3['shift']());}}}(_0x2522,0xbcfef));function _0x2522(){const _0x5a2cd3=['MCP\x20接続済み','3197484yXpIWz','2125166nBNijU','保存中...','MCP:\x20最大再試行回数を超過','5miXKIB','認証に失敗しました。APIキーを確認してください','数秒でAPIキーを取得','クリックしてMCPに接続','MCPを設定してAIでスプレッドシートを操作','APIキーはローカルストレージに安全に保存されます','接続済み','MCP:\x20セッションIDが使用中','MCP設定','セッションID','クリックしてMCPを設定','MCPクライアントの設定ファイルに設定を追加','設定パラメータ:','MCPクライアント設定','5439352DyYfMt','接続失敗','再試行中...','設定の保存に失敗しました','3yNfsOe','536xdbPcA','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','MCP:\x20ネットワークエラー','認証を有効にする','46826420ifyQYa','987614GQetVW','接続中...','APIキーとは?','exports','無効なAPIキーです。キーが正しいか確認してください','MCP\x20接続中...','10182494PHzbmp','MCPクライアントの設定に次の設定を追加してください:','以下のJSON設定をコピー','APIキーは10文字以上である必要があります','APIキーを入力してください','MCPクライアントを再起動して設定を適用','設定の変更は直ちに有効になります','無効な設定','セキュアな接続のために認証を有効にする','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','APIキーは必須です','MCP\x20接続失敗','65304SJloza','MCP:\x20認証されていません','ネットワーク接続エラー。インターネット接続を確認してください'];_0x2522=function(){return _0x5a2cd3;};return _0x2522();}const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x45a5c2(0x160),'connected':_0x45a5c2(0x13e),'failed':_0x45a5c2(0x13a),'retrying':'MCP\x20再試行中...','unknown':'MCP\x20不明な状態','unauthorized':_0x45a5c2(0x13c),'sessionOccupied':_0x45a5c2(0x14a),'networkError':_0x45a5c2(0x158),'maxRetriesExceeded':_0x45a5c2(0x142),'clickToConnect':_0x45a5c2(0x146),'clickToConfigure':_0x45a5c2(0x14d)},'mcpConfig':{'title':_0x45a5c2(0x14b),'description':_0x45a5c2(0x147),'apiKey':'APIキー','apiKeyPlaceholder':_0x45a5c2(0x165),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x45a5c2(0x159),'enableAuthHint':_0x45a5c2(0x137),'connectionInfo':_0x45a5c2(0x150),'mcpClientConfig':_0x45a5c2(0x150),'configInstructions':_0x45a5c2(0x162),'configStepTitle':'設定手順:','configStep1':_0x45a5c2(0x163),'configStep2':_0x45a5c2(0x14e),'configStep3':_0x45a5c2(0x166),'sessionId':_0x45a5c2(0x14c),'sessionIdDescription':_0x45a5c2(0x157),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x45a5c2(0x14f),'maxRetries':'最大再試行回数','save':'設定を保存','saving':_0x45a5c2(0x141),'note1':_0x45a5c2(0x167),'note2':_0x45a5c2(0x148),'configSaved':'設定が正常に保存されました','configError':_0x45a5c2(0x154),'apiApplyInfo':{'title':_0x45a5c2(0x15d),'description':_0x45a5c2(0x138),'univerAiLabel':'Univer\x20AIコンソール','getStarted':_0x45a5c2(0x145)},'validation':{'apiKeyRequired':_0x45a5c2(0x139),'apiKeyTooShort':_0x45a5c2(0x164),'invalidConfig':_0x45a5c2(0x136),'invalidApiKey':_0x45a5c2(0x15f)},'connectionStatus':{'disconnected':'未接続','connecting':_0x45a5c2(0x15c),'connected':_0x45a5c2(0x149),'failed':_0x45a5c2(0x152),'retrying':_0x45a5c2(0x153)},'connectionError':{'unauthorized':_0x45a5c2(0x144),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x45a5c2(0x13d),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};function _0x1dfa(_0x57f5fc,_0x3bd95f){_0x57f5fc=_0x57f5fc-0x136;const _0x252252=_0x2522();let _0x1dfa5c=_0x252252[_0x57f5fc];return _0x1dfa5c;}module[_0x45a5c2(0x15e)]=e;
1
+ 'use strict';const _0x3f4895=_0x7c4b;function _0x4758(){const _0x270c8c=['認証を有効にする','MCP\x20接続済み','892662vmloVn','設定の変更は直ちに有効になります','MCPクライアントの設定ファイルに設定を追加','MCPを設定してAIでスプレッドシートを操作','Bearerプレフィックス付きのAPIキー。','1315248hgQAPU','MCP\x20接続中...','MCP:\x20ネットワークエラー','無効なAPIキーです。キーが正しいか確認してください','設定手順:','最大再試行回数','APIキーとは?','13625dWJDUl','最大再試行回数を超過しました。後でもう一度お試しください','ネットワーク接続エラー。インターネット接続を確認してください','12086UgcBav','MCP:\x20認証されていません','設定の保存に失敗しました','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','1286263KyRRHT','39JaqUJM','MCP:\x20セッションIDが使用中','セッションID','APIキー','クリックしてMCPを設定','設定パラメータ:','数秒でAPIキーを取得','以下のJSON設定をコピー','124lewgmp','906516EYOHEW','無効な設定','MCPクライアントを再起動して設定を適用','663840KcgXIx','MCP設定','セキュアな接続のために認証を有効にする','APIキーは必須です','7JokKWW','30xQaDKN','設定を保存','MCP\x20接続失敗','MCPクライアント設定','未接続','Univer\x20AIコンソール','認証に失敗しました。APIキーを確認してください','再試行中...','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','APIキーはこのブラウザのローカルに保存されます'];_0x4758=function(){return _0x270c8c;};return _0x4758();}(function(_0x4529c3,_0x40664){const _0x2a8dc8=_0x7c4b,_0x4e36ab=_0x4529c3();while(!![]){try{const _0x451949=parseInt(_0x2a8dc8(0xaf))/0x1*(parseInt(_0x2a8dc8(0xaa))/0x2)+parseInt(_0x2a8dc8(0xbb))/0x3+parseInt(_0x2a8dc8(0xb7))/0x4*(-parseInt(_0x2a8dc8(0xa7))/0x5)+parseInt(_0x2a8dc8(0xcc))/0x6*(-parseInt(_0x2a8dc8(0xbf))/0x7)+parseInt(_0x2a8dc8(0xd1))/0x8+parseInt(_0x2a8dc8(0xb8))/0x9+-parseInt(_0x2a8dc8(0xc0))/0xa*(parseInt(_0x2a8dc8(0xae))/0xb);if(_0x451949===_0x40664)break;else _0x4e36ab['push'](_0x4e36ab['shift']());}catch(_0x2a2767){_0x4e36ab['push'](_0x4e36ab['shift']());}}}(_0x4758,0x21b34));function _0x7c4b(_0x3a68bf,_0x4cb3ab){_0x3a68bf=_0x3a68bf-0xa1;const _0x47584d=_0x4758();let _0x7c4b1a=_0x47584d[_0x3a68bf];return _0x7c4b1a;}const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x3f4895(0xa1),'connected':_0x3f4895(0xcb),'failed':_0x3f4895(0xc2),'retrying':'MCP\x20再試行中...','unknown':'MCP\x20不明な状態','unauthorized':_0x3f4895(0xab),'sessionOccupied':_0x3f4895(0xb0),'networkError':_0x3f4895(0xa2),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x3f4895(0xb3)},'mcpConfig':{'title':_0x3f4895(0xbc),'description':_0x3f4895(0xcf),'apiKey':_0x3f4895(0xb2),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0x3f4895(0xc9),'enableAuth':_0x3f4895(0xca),'enableAuthHint':_0x3f4895(0xbd),'connectionInfo':_0x3f4895(0xc3),'mcpClientConfig':_0x3f4895(0xc3),'configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x3f4895(0xa4),'configStep1':_0x3f4895(0xb6),'configStep2':_0x3f4895(0xce),'configStep3':_0x3f4895(0xba),'sessionId':_0x3f4895(0xb1),'sessionIdDescription':_0x3f4895(0xad),'authorizationDescription':_0x3f4895(0xd0),'configParameters':_0x3f4895(0xb4),'maxRetries':_0x3f4895(0xa5),'save':_0x3f4895(0xc1),'saving':'保存中...','note1':_0x3f4895(0xcd),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':'設定が正常に保存されました','configError':_0x3f4895(0xac),'apiApplyInfo':{'title':_0x3f4895(0xa6),'description':_0x3f4895(0xc8),'univerAiLabel':_0x3f4895(0xc5),'getStarted':_0x3f4895(0xb5)},'validation':{'apiKeyRequired':_0x3f4895(0xbe),'apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x3f4895(0xb9),'invalidApiKey':_0x3f4895(0xa3)},'connectionStatus':{'disconnected':_0x3f4895(0xc4),'connecting':'接続中...','connected':'接続済み','failed':'接続失敗','retrying':_0x3f4895(0xc7)},'connectionError':{'unauthorized':_0x3f4895(0xc6),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x3f4895(0xa9),'maxRetriesExceeded':_0x3f4895(0xa8)}}};module['exports']=e;