@univerjs-pro/mcp-ui 0.10.7-nightly.202509090319 → 0.10.7-nightly.202509130640

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 (50) 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/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.css +1 -1
  24. package/lib/index.js +1 -1
  25. package/lib/locale/ca-ES.js +1 -1
  26. package/lib/locale/en-US.js +1 -1
  27. package/lib/locale/es-ES.js +1 -1
  28. package/lib/locale/fa-IR.js +1 -1
  29. package/lib/locale/fr-FR.js +1 -1
  30. package/lib/locale/ko-KR.js +1 -1
  31. package/lib/locale/ru-RU.js +1 -1
  32. package/lib/locale/vi-VN.js +1 -1
  33. package/lib/locale/zh-CN.js +1 -1
  34. package/lib/locale/zh-TW.js +1 -1
  35. package/lib/types/controllers/mcp-config-ui.controller.d.ts +1 -0
  36. package/lib/types/locale/en-US.d.ts +9 -1
  37. package/lib/types/locale/zh-CN.d.ts +9 -1
  38. package/lib/types/views/components/mcp-config.d.ts +7 -1
  39. package/lib/umd/index.js +1 -1
  40. package/lib/umd/locale/ca-ES.js +1 -1
  41. package/lib/umd/locale/en-US.js +1 -1
  42. package/lib/umd/locale/es-ES.js +1 -1
  43. package/lib/umd/locale/fa-IR.js +1 -1
  44. package/lib/umd/locale/fr-FR.js +1 -1
  45. package/lib/umd/locale/ko-KR.js +1 -1
  46. package/lib/umd/locale/ru-RU.js +1 -1
  47. package/lib/umd/locale/vi-VN.js +1 -1
  48. package/lib/umd/locale/zh-CN.js +1 -1
  49. package/lib/umd/locale/zh-TW.js +1 -1
  50. package/package.json +6 -5
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x2bc15e=_0x4a13;(function(_0x1c908d,_0x4af0f1){var _0x1f1219=_0x4a13,_0x1c2afe=_0x1c908d();while(!![]){try{var _0xa5ab1=-parseInt(_0x1f1219(0xe6))/0x1*(-parseInt(_0x1f1219(0x12b))/0x2)+parseInt(_0x1f1219(0x1d5))/0x3*(-parseInt(_0x1f1219(0x163))/0x4)+-parseInt(_0x1f1219(0x1be))/0x5*(parseInt(_0x1f1219(0xf7))/0x6)+-parseInt(_0x1f1219(0x151))/0x7*(parseInt(_0x1f1219(0x158))/0x8)+-parseInt(_0x1f1219(0xf6))/0x9*(-parseInt(_0x1f1219(0xde))/0xa)+parseInt(_0x1f1219(0xb1))/0xb*(-parseInt(_0x1f1219(0x115))/0xc)+parseInt(_0x1f1219(0x1ea))/0xd;if(_0xa5ab1===_0x4af0f1)break;else _0x1c2afe['push'](_0x1c2afe['shift']());}catch(_0x284d85){_0x1c2afe['push'](_0x1c2afe['shift']());}}}(_0xb9a7,0x1ff69));var Se=Object[_0x2bc15e(0x12c)],xe=(_0x3cf1e8,_0x42bed1,_0x28a631)=>_0x42bed1 in _0x3cf1e8?Se(_0x3cf1e8,_0x42bed1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28a631}):_0x3cf1e8[_0x42bed1]=_0x28a631,N=(_0x11356a,_0x5f2c4d,_0x579448)=>xe(_0x11356a,typeof _0x5f2c4d!=_0x2bc15e(0xb0)?_0x5f2c4d+'':_0x5f2c4d,_0x579448);import{LocaleService as _0x42fd01,Inject as _0x696855,Injector as _0x3be1cf,IConfigService as _0x5b375f,ILocalStorageService as _0x4948f7,ILogService as _0x4318dc,Disposable as _0x3a1a4d,CommandType as _0x577139,ICommandService as _0x386a7f,DependentOn as _0x302e6f,Plugin as _0x32b180,merge as _0x2b6653}from'@univerjs/core';import{jsxs as _0x5c6a92,jsx as _0x24230c}from'react/jsx-runtime';import{MCPConnectionStatus as _0x16bf1e,MCPConnectionError as _0x3ee0ac,MCPConnectionController as _0x1c16fa,MCP_PLUGIN_CONFIG_KEY as _0x1bb383,UniverMCPPlugin as _0x313ef9}from'@univerjs-pro/mcp';import{Input as _0x3c0492,Button as _0x105395,MessageType as _0x124ece,Tooltip as _0x1b8685,clsx as _0x2ed97f}from'@univerjs/design';import{useDependency as _0x4faa95,useObservable as _0x1ba95b,IUIPartsService as _0x4c65ee,IDialogService as _0x119553,IMessageService as _0x5b4388,ComponentManager as _0x13aeb6,connectInjector as _0x5d4d25,BuiltInUIPart as _0x2c0def,MenuItemType as _0x21bf04,RibbonStartGroup as _0x2510f1,IMenuManagerService as _0x540f9d}from'@univerjs/ui';import{BehaviorSubject as _0xef7aa5}from'rxjs';import{forwardRef as _0x14a2d8,useRef as _0xd5a7c8,createElement as _0x4eaecd,useState as _0x3b5fec,useCallback as _0x292baa}from'react';var d=function(){var _0x5219f5=_0x2bc15e;return d=Object[_0x5219f5(0x167)]||function(_0x4f1f87){var _0x4044e8=_0x5219f5;for(var _0x5918a5,_0x4d2198=0x1,_0x1ac1d4=arguments[_0x4044e8(0xb3)];_0x4d2198<_0x1ac1d4;_0x4d2198++){_0x5918a5=arguments[_0x4d2198];for(var _0xf71fd1 in _0x5918a5)Object[_0x4044e8(0x160)][_0x4044e8(0xdd)][_0x4044e8(0x1a4)](_0x5918a5,_0xf71fd1)&&(_0x4f1f87[_0xf71fd1]=_0x5918a5[_0xf71fd1]);}return _0x4f1f87;},d[_0x5219f5(0xff)](this,arguments);},Ye=function(_0x482872,_0x5676f9){var _0xd08c8d=_0x2bc15e,_0x284b8a={};for(var _0x58c0a9 in _0x482872)Object[_0xd08c8d(0x160)]['hasOwnProperty'][_0xd08c8d(0x1a4)](_0x482872,_0x58c0a9)&&_0x5676f9[_0xd08c8d(0x1e8)](_0x58c0a9)<0x0&&(_0x284b8a[_0x58c0a9]=_0x482872[_0x58c0a9]);if(_0x482872!=null&&typeof Object[_0xd08c8d(0xc7)]==_0xd08c8d(0x170)){for(var _0x2c5293=0x0,_0x58c0a9=Object[_0xd08c8d(0xc7)](_0x482872);_0x2c5293<_0x58c0a9['length'];_0x2c5293++)_0x5676f9[_0xd08c8d(0x1e8)](_0x58c0a9[_0x2c5293])<0x0&&Object[_0xd08c8d(0x160)][_0xd08c8d(0x197)][_0xd08c8d(0x1a4)](_0x482872,_0x58c0a9[_0x2c5293])&&(_0x284b8a[_0x58c0a9[_0x2c5293]]=_0x482872[_0x58c0a9[_0x2c5293]]);}return _0x284b8a;},S=_0x14a2d8(function(_0x2a6e3c,_0x226be1){var _0x1b8daa=_0x2bc15e,_0x479965=_0x2a6e3c[_0x1b8daa(0x180)],_0x1f02a1=_0x2a6e3c['id'],_0x30fece=_0x2a6e3c['className'],_0x50129a=_0x2a6e3c[_0x1b8daa(0x1cd)],_0x3e143f=Ye(_0x2a6e3c,[_0x1b8daa(0x180),'id',_0x1b8daa(0xdf),_0x1b8daa(0x1cd)]),_0x5c27da=_0x1b8daa(0x1d0)[_0x1b8daa(0x138)](_0x1f02a1,'\x20')[_0x1b8daa(0x138)](_0x30fece||'')[_0x1b8daa(0x16e)](),_0x6a2cde=_0xd5a7c8('_'[_0x1b8daa(0x138)](He()));return oe(_0x479965,''[_0x1b8daa(0x138)](_0x1f02a1),{'defIds':_0x479965['defIds'],'idSuffix':_0x6a2cde[_0x1b8daa(0xf1)]},d({'ref':_0x226be1,'className':_0x5c27da},_0x3e143f),_0x50129a);});function oe(_0x27eb02,_0x265275,_0xb9ae67,_0x526e42,_0xe9ebd9){var _0x46b0ca=_0x2bc15e;return _0x4eaecd(_0x27eb02['tag'],d(d({'key':_0x265275},Ve(_0x27eb02,_0xb9ae67,_0xe9ebd9)),_0x526e42),(Fe(_0x27eb02,_0xb9ae67)[_0x46b0ca(0x1b4)]||[])[_0x46b0ca(0x198)](function(_0x5e016d,_0x4b9220){var _0x3d4442=_0x46b0ca;return oe(_0x5e016d,''[_0x3d4442(0x138)](_0x265275,'-')['concat'](_0x27eb02[_0x3d4442(0xbb)],'-')[_0x3d4442(0x138)](_0x4b9220),_0xb9ae67,void 0x0,_0xe9ebd9);}));}function Ve(_0x34fab0,_0x4d7237,_0x3ac8c1){var _0x166701=_0x2bc15e,_0x3acbbd=d({},_0x34fab0[_0x166701(0x1a3)]);_0x3ac8c1!=null&&_0x3ac8c1['colorChannel1']&&_0x3acbbd[_0x166701(0x114)]===_0x166701(0x19e)&&(_0x3acbbd[_0x166701(0x114)]=_0x3ac8c1[_0x166701(0x19e)]),_0x34fab0[_0x166701(0xbb)]===_0x166701(0xe5)&&_0x3acbbd['id']&&(_0x3acbbd['id']=_0x3acbbd['id']+_0x4d7237[_0x166701(0x140)]),Object[_0x166701(0xc0)](_0x3acbbd)['forEach'](function(_0x3d7c16){var _0x596ee9=_0x166701,_0x37da03=_0x3d7c16[0x0],_0x2ce233=_0x3d7c16[0x1];_0x37da03===_0x596ee9(0xe5)&&typeof _0x2ce233==_0x596ee9(0x1b1)&&(_0x3acbbd[_0x37da03]=_0x2ce233[_0x596ee9(0x14f)](/url\(#(.*)\)/,'url(#$1'[_0x596ee9(0x138)](_0x4d7237['idSuffix'],')')));});var _0x30202e=_0x4d7237[_0x166701(0x130)];return!_0x30202e||_0x30202e[_0x166701(0xb3)]===0x0||(_0x34fab0['tag']==='use'&&_0x3acbbd[_0x166701(0x110)]&&(_0x3acbbd[_0x166701(0x110)]=_0x3acbbd[_0x166701(0x110)]+_0x4d7237['idSuffix']),Object[_0x166701(0xc0)](_0x3acbbd)[_0x166701(0xcc)](function(_0x3c39bf){var _0x366da2=_0x166701,_0x3747bc=_0x3c39bf[0x0],_0x4b4f75=_0x3c39bf[0x1];typeof _0x4b4f75=='string'&&(_0x3acbbd[_0x3747bc]=_0x4b4f75[_0x366da2(0x14f)](/url\(#(.*)\)/,_0x366da2(0x1a0)['concat'](_0x4d7237['idSuffix'],')')));})),_0x3acbbd;}function Fe(_0x3740d6,_0x450690){var _0x5ad9eb=_0x2bc15e,_0xe3c58f,_0x3966bd=_0x450690[_0x5ad9eb(0x130)];return!_0x3966bd||_0x3966bd['length']===0x0?_0x3740d6:_0x3740d6[_0x5ad9eb(0xbb)]===_0x5ad9eb(0xad)&&(!((_0xe3c58f=_0x3740d6[_0x5ad9eb(0x1b4)])===null||_0xe3c58f===void 0x0)&&_0xe3c58f[_0x5ad9eb(0xb3)])?d(d({},_0x3740d6),{'children':_0x3740d6[_0x5ad9eb(0x1b4)][_0x5ad9eb(0x198)](function(_0x2997c9){var _0x768ff5=_0x5ad9eb;return typeof _0x2997c9['attrs']['id']==_0x768ff5(0x1b1)&&_0x3966bd&&_0x3966bd['includes'](_0x2997c9[_0x768ff5(0x1a3)]['id'])?d(d({},_0x2997c9),{'attrs':d(d({},_0x2997c9['attrs']),{'id':_0x2997c9[_0x768ff5(0x1a3)]['id']+_0x450690['idSuffix']})}):_0x2997c9;})}):_0x3740d6;}function _0xb9a7(){var _0x5de150=['univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','toString','univerjs-icon\x20univerjs-icon-','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','onStarting','univer-flex-shrink-0\x20univer-text-blue-500','942iuxxpR','Get\x20your\x20API\x20key\x20in\x20seconds','_commandService','open','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','点击连接\x20MCP','API\x20密钥长度至少需要\x2010\x20位','MenuIcon','getItem','substring','MCP\x20Configuration','_mcpCoreConfig$','M5.21243\x205.62036L11.8791\x2012.287','univer-flex-shrink-0\x20univer-text-red-500','Error','OTHERS','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','DISCONNECTED','mcpConfig.validation.apiKeyTooShort','indexOf','Connected','4273373sfAgfP','univer-text-xs\x20univer-text-gray-500','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','连接信息','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','evenodd','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_messageService','includes','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20状态未知','启用身份验证以获得安全连接','MCP\x20Disconnected','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','MCP:\x20网络错误','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','M0\x200H16V16H0z','mcpStatus.retrying','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','next','add','off-line-icon_clip0_910_343','MCP\x20重连中...','noopener\x20noreferrer','defs','random','SESSION_ID_OCCUPIED','symbol','22wcJNaQ','univer-font-medium','length','hover:univer-opacity-80','mcpConfig.save','label','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','FAILED','mcpServerUrl','off-line-icon','tag','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpStatus.maxRetriesExceeded','code','mcp.apiKey','entries','getCurrentConfig','_uiPartsService','mcpStatus.failed','mcpStatus.invalidApiKey','univer-text-gray-500','univer-flex\x20univer-items-start\x20univer-gap-3','getOwnPropertySymbols','MCP\x20已断开','_configService','sessionId','_handleConfigure','forEach','Close','mcpConfig.description','RETRYING','mcp-config-dialog','Univer\x20AI\x20控制台','mcpConfig.connectionStatus.retrying','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.serverEndpoint','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','univer-text-white','连接失败','1em','OnLineIcon','path','on-line-icon_clip0_910_349','univer-text-blue-600','hasOwnProperty','1367320ijfmTj','className','get','_initializeMenus','0\x200\x2017\x2017','_componentManager','univer-text-sm\x20univer-font-medium','mask','1327ccmsBf','_localStorageService','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpStatus.missingApiKey','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-bg-gray-500','Save\x20Configuration','MCP\x20已连接','span','show','What\x20is\x20API\x20Key?','current','您的\x20API\x20密钥安全存储在本地存储中','您的\x20API\x20密钥将在此浏览器中本地存储','univer-flex\x20univer-gap-3','保存中...','9wBQJDS','12iyVwXG','mergeMenu','网络连接错误,请检查您的网络连接','CONNECTING','mcpConfig.connectionError.invalidApiKey','_dialogService','svg','服务器端点','apply','mcpConfig.connectionStatus.connected','CONNECTED','0\x200\x2017\x2016','mcpConfig.connectionError.networkError','Click\x20to\x20configure\x20MCP','mcpStatus.sessionOccupied','_loading$','currentColor','MAX_RETRIES_EXCEEDED','univer-text-sm\x20univer-text-gray-500','showDeveloperTools','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','超出最大重试次数,请稍后再试','点击配置\x20MCP','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','xlink:href','getConfig','close','MCP:\x20Max\x20Retries\x20Exceeded','fill','325824IaYMqU','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','subscribeConfigValue$','validateApiKey','univer-flex\x20univer-items-center\x20univer-gap-2','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','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','INVALID_API_KEY','MCP\x20连接中...','_config$','div','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','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','mcpConfig.saving','MCP\x20连接失败','javascript:void(0)','_logService','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','mcpStatus.clickToConnect','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-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_initializeCommands','214auQbXh','defineProperty','NONE','help-single','Success','defIds','univer-text-yellow-500','mcpConfig.validation.apiKeyRequired','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','displayName','round','registerCommand','配置保存失败','concat','Connection\x20Failed','pluginName','API\x20key\x20is\x20required','mcpStatus.connecting','MCP\x20Connected','univer-flex\x20univer-items-start\x20univer-gap-2','_config','idSuffix','white','连接中...','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP\x20Connecting...','_loadStoredApiKey','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Invalid\x20configuration','mcpConfig.apiKeyHint','OffLineIcon','connectionStatus$','mcpStatus.disconnected','UniverIcon','mcpConfig.apiKeyPlaceholder','replace','_initStatusComponent','455NuOAJa','_validateConfig','CheckMarkIcon','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','请输入您的\x20API\x20密钥','Click\x20to\x20connect\x20MCP','check-mark-icon','4664wlCEYg','_connectionController','BUTTON','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_handleConfigSave','univer-bg-red-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','prototype','_injector','univer-text-red-500','1576eFOtaM','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','最大重试次数','http://www.w3.org/2000/svg','assign','error','mcpConfig.sessionId','MCP\x20配置','MCPConfigPanel','getOwnPropertyDescriptor','subscribe','trim','_createConfigPanelComponent','function','univer-min-w-0\x20univer-flex-1','disposeWithMe','MCP:\x20无效的\x20API\x20密钥','univer.plus','translate(.97)','MCP\x20Retrying...','Server\x20Endpoint','_initConfigSync','COMMAND','API\x20Key','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','CloseSmallSingle','mcpConfig.connectionStatus.failed','Disconnected','connectionError$','icon','_localeService','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','close-small-single','重连中...','MCP\x20Unknown\x20Status','0\x200\x2016\x2016','off','mcpStatus.networkError','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','showConfigPanel','mcpConfig.validation.invalidApiKey','isValid','mcpConfig.note1','Session\x20ID','mcpConfig.configSaved','_registerComponent','已连接','API\x20密钥无效,请检查您的密钥后重试','MCP:\x20Network\x20Error','几秒钟内获取您的\x20API\x20密钥','MCP\x20Connection\x20Failed','propertyIsEnumerable','map','apiKey','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.apiApplyInfo.title','MCP_UI_PLUGIN','colorChannel1','mcpStatus.clickToConfigure','url(#$1','bottom','text','attrs','call','NETWORK_ERROR','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','default','univer-flex\x20univer-items-center\x20univer-gap-3','Configuration\x20saved\x20successfully','setConfig','removeItem','univer.ai','mcpConfig.note2','HEADER_MENU','MISSING_API_KEY','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','string','会话当前被占用,请稍后再试','Enable\x20Authentication','children','M5.21243\x2012.287L11.8791\x205.62036','none','mcpConfig.apiApplyInfo.getStarted','Max\x20Retries','mcpConfig.title','_mcpConnectionController','setItem','启用身份验证','https://console.univer.plus','651515BavGJW','univer-text-gray-400','_menuManagerService','Saving...','\x20-\x20','mcp-ui.config','value','什么是\x20API\x20密钥?','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex-1','univer-space-y-3','univer-space-y-5','Configuration\x20Notes:','会话ID','https://console.univer.ai','extend'];_0xb9a7=function(){return _0x5de150;};return _0xb9a7();}function He(){var _0x2883de=_0x2bc15e;return Math[_0x2883de(0xae)]()[_0x2883de(0x1cf)](0x24)[_0x2883de(0x1de)](0x2,0x8);}S['displayName']=_0x2bc15e(0x14d);var We={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x186),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':'currentColor','d':_0x2bc15e(0x1a6),'fillRule':_0x2bc15e(0x99),'clipRule':_0x2bc15e(0x99)}}]},ce=_0x14a2d8(function(_0x36621c,_0x34c4b0){var _0xdaea21=_0x2bc15e;return _0x4eaecd(S,Object[_0xdaea21(0x167)]({},_0x36621c,{'id':_0xdaea21(0x157),'ref':_0x34c4b0,'icon':We}));});ce['displayName']=_0x2bc15e(0x153);var Be={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0xe2),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':'currentColor','d':_0x2bc15e(0x1e1),'strokeLinecap':_0x2bc15e(0x135),'strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.33}},{'tag':_0x2bc15e(0xda),'attrs':{'stroke':_0x2bc15e(0x107),'d':_0x2bc15e(0x1b5),'strokeLinecap':'round','strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.33}}]},ae=_0x14a2d8(function(_0x1cc74e,_0x2ed140){var _0x518882=_0x2bc15e;return _0x4eaecd(S,Object[_0x518882(0x167)]({},_0x1cc74e,{'id':_0x518882(0x183),'ref':_0x2ed140,'icon':Be}));});ae[_0x2bc15e(0x134)]=_0x2bc15e(0x17c);var ze={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x186),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x107),'d':'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'}},{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x107),'d':_0x2bc15e(0x11b)}},{'tag':'path','attrs':{'fill':_0x2bc15e(0x107),'d':_0x2bc15e(0x1d9),'fillRule':_0x2bc15e(0x99),'clipRule':'evenodd'}}]},se=_0x14a2d8(function(_0x2db6d1,_0x45938d){var _0x19fd77=_0x2bc15e;return _0x4eaecd(S,Object[_0x19fd77(0x167)]({},_0x2db6d1,{'id':_0x19fd77(0x12e),'ref':_0x45938d,'icon':ze}));});se['displayName']='HelpSingle';var qe={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2bc15e(0xd8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':_0x2bc15e(0x107),'d':_0x2bc15e(0x128),'strokeLinecap':'round','strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x141),'d':_0x2bc15e(0xa5)}}]}]}],'defIds':[_0x2bc15e(0xaa)]},le=_0x14a2d8(function(_0x59cb7c,_0x1d232f){var _0x33c09d=_0x2bc15e;return _0x4eaecd(S,Object[_0x33c09d(0x167)]({},_0x59cb7c,{'id':_0x33c09d(0xba),'ref':_0x1d232f,'icon':qe}));});le['displayName']=_0x2bc15e(0x14a);var Ze={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x102),'width':_0x2bc15e(0xd8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':'currentColor','d':_0x2bc15e(0x120),'strokeLinecap':_0x2bc15e(0x135),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2bc15e(0xad),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2bc15e(0xdb)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x141),'d':_0x2bc15e(0xa5),'transform':_0x2bc15e(0x175)}}]}]}],'defIds':[_0x2bc15e(0xdb)]},ue=_0x14a2d8(function(_0x5c4806,_0x12eb99){var _0x3e0b2d=_0x2bc15e;return _0x4eaecd(S,Object[_0x3e0b2d(0x167)]({},_0x5c4806,{'id':'on-line-icon','ref':_0x12eb99,'icon':Ze}));});ue[_0x2bc15e(0x134)]=_0x2bc15e(0xd9);function Xe(_0x3f231b){var _0x472e20=_0x2bc15e,_0x5b60c3,_0x1216b6;const {mcpCoreConfig:_0x8f1215,onSave:_0x57367c,loading:_0x5e10c3=!0x1,config:_0x33e360,connectionStatus$:_0x2d3990,connectionError$:_0x5971e1}=_0x3f231b,_0x4bc80a=_0x4faa95(_0x42fd01),_0xee6450=_0x1ba95b(_0x2d3990,_0x16bf1e[_0x472e20(0x1e6)]),_0x461d26=_0x1ba95b(_0x5971e1,_0x3ee0ac[_0x472e20(0x12d)]),[_0x3371ae,_0x528388]=_0x3b5fec(_0x8f1215['apiKey']||''),_0x3c8cbd=!0x0,_0x32c700=_0x33e360[_0x472e20(0x10a)]&&_0x8f1215['mcpServerUrl']&&(_0x8f1215['mcpServerUrl'][_0x472e20(0x9d)](_0x472e20(0x174))||_0x8f1215[_0x472e20(0xb9)][_0x472e20(0x9d)](_0x472e20(0x1ac))),_0x542826=(_0x5b60c3=_0x8f1215[_0x472e20(0xb9)])==null?void 0x0:_0x5b60c3[_0x472e20(0x9d)]('univer.plus'),_0x5838d8=(_0x1216b6=_0x8f1215[_0x472e20(0xb9)])==null?void 0x0:_0x1216b6['includes']('univer.ai'),_0x3fef88=_0x542826?_0x472e20(0x1bd):_0x472e20(0x1cc),_0x49b9c7=_0x33e360[_0x472e20(0x10a)]&&(_0x542826||_0x5838d8),[_0x2f3515,_0x488b05]=_0x3b5fec(!_0x3371ae['trim']()),_0x38f958=(_0x294c33,_0x5a8216)=>{var _0x15274c=_0x472e20;if(_0x5a8216===_0x3ee0ac[_0x15274c(0x1af)]||_0x5a8216===_0x3ee0ac[_0x15274c(0x11c)])return _0x15274c(0x1ce);switch(_0x294c33){case _0x16bf1e[_0x15274c(0x101)]:return _0x15274c(0x10b);case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0x15274c(0xcf)]:return _0x15274c(0x1ec);case _0x16bf1e['FAILED']:return _0x15274c(0x1ce);default:return _0x15274c(0x147);}},_0x3eaba7=(_0x30e9dd,_0x2238f5)=>{var _0x3d1369=_0x472e20;if(_0x2238f5===_0x3ee0ac['MISSING_API_KEY']||_0x2238f5===_0x3ee0ac['INVALID_API_KEY'])return _0x3d1369(0x15e);switch(_0x30e9dd){case _0x16bf1e[_0x3d1369(0x101)]:return'univer-bg-green-500';case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0x3d1369(0xcf)]:return'univer-bg-blue-500';case _0x16bf1e['FAILED']:return _0x3d1369(0x15e);default:return _0x3d1369(0xeb);}},_0x2ae430=_0x44b57d=>{var _0x4f92a0=_0x472e20;switch(_0x44b57d){case _0x16bf1e[_0x4f92a0(0x101)]:return _0x4bc80a['t'](_0x4f92a0(0x100));case _0x16bf1e[_0x4f92a0(0xfa)]:return _0x4bc80a['t']('mcpConfig.connectionStatus.connecting');case _0x16bf1e[_0x4f92a0(0xb8)]:return _0x4bc80a['t'](_0x4f92a0(0x17d));case _0x16bf1e[_0x4f92a0(0xcf)]:return _0x4bc80a['t'](_0x4f92a0(0xd2));default:return _0x4bc80a['t']('mcpConfig.connectionStatus.disconnected');}},_0x5e82b5=_0x3cf140=>{var _0x72ea2e=_0x472e20;switch(_0x3cf140){case _0x3ee0ac[_0x72ea2e(0x1af)]:return _0x4bc80a['t']('mcpConfig.connectionError.missingApiKey');case _0x3ee0ac['INVALID_API_KEY']:return _0x4bc80a['t'](_0x72ea2e(0xfb));case _0x3ee0ac[_0x72ea2e(0xaf)]:return _0x4bc80a['t']('mcpConfig.connectionError.sessionOccupied');case _0x3ee0ac[_0x72ea2e(0x1a5)]:return _0x4bc80a['t'](_0x72ea2e(0x103));case _0x3ee0ac['MAX_RETRIES_EXCEEDED']:return _0x4bc80a['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2a7826=_0x292baa(()=>{var _0x55b713=_0x472e20;const _0x239496={..._0x8f1215,'apiKey':_0x3371ae[_0x55b713(0x16e)](),'enableAuth':_0x3c8cbd};_0x57367c(_0x239496);},[_0x8f1215,_0x3371ae,_0x3c8cbd,_0x57367c]),_0x14515a=_0x3371ae[_0x472e20(0x16e)]()[_0x472e20(0xb3)]>0x0;return _0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x9a),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x143),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1a8),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x10c),'children':_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0xd6),'children':'⚙'})}),_0x24230c(_0x472e20(0x11f),{'children':_0x24230c('p',{'className':_0x472e20(0x109),'children':_0x4bc80a['t'](_0x472e20(0xce))})})]})}),_0x5c6a92('div',{'className':_0x472e20(0x116),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x18a)+_0x38f958(_0xee6450,_0x461d26)+_0x472e20(0x1c6),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x119),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1e5)+_0x3eaba7(_0xee6450,_0x461d26)+_0x472e20(0xb7)}),_0x24230c('span',{'className':_0x472e20(0xe4),'children':_0x2ae430(_0xee6450)})]})}),_0x461d26!==_0x3ee0ac[_0x472e20(0x12d)]&&(_0xee6450===_0x16bf1e[_0x472e20(0xb8)]||_0x461d26===_0x3ee0ac['MISSING_API_KEY']||_0x461d26===_0x3ee0ac[_0x472e20(0x11c)])&&_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x10f),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x13e),'children':[_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0x1e2),'children':'⚠️'}),_0x24230c('p',{'className':_0x472e20(0xa7),'children':_0x5e82b5(_0x461d26)})]})})]}),_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x182),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1c9),'children':[_0x5c6a92('div',{'className':'univer-space-y-2','children':[_0x5c6a92(_0x472e20(0xb6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x24230c(_0x472e20(0xee),{'children':'🔑'}),'\x20',_0x4bc80a['t']('mcpConfig.apiKey'),_0x24230c(_0x472e20(0xee),{'className':'univer-text-red-500','children':'*'}),_0x32c700&&_0x24230c('a',{'href':_0x472e20(0x124),'onClick':()=>_0x488b05(!0x0),'className':_0x472e20(0xd5),'title':_0x4bc80a['t'](_0x472e20(0x19c)),'children':_0x24230c(se,{})})]}),_0x24230c(_0x3c0492,{'type':_0x472e20(0x1a2),'placeholder':_0x4bc80a['t'](_0x472e20(0x14e)),'value':_0x3371ae,'onChange':_0x528388,'disabled':_0x5e10c3,'autoComplete':_0x472e20(0x187)}),_0x24230c('p',{'className':_0x472e20(0x1eb),'children':_0x4bc80a['t'](_0x472e20(0x149))})]}),_0x32c700&&_0x2f3515&&_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x121),'children':[_0x24230c('a',{'href':_0x472e20(0x124),'onClick':()=>_0x488b05(!0x1),'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','title':_0x472e20(0xcd),'children':_0x24230c(ae,{})}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x133),'children':[_0x24230c('div',{'className':_0x472e20(0xea),'children':_0x24230c('span',{'className':_0x472e20(0xdc),'children':'🚀'})}),_0x5c6a92('div',{'className':_0x472e20(0x1c7),'children':[_0x24230c('h4',{'className':_0x472e20(0x129),'children':_0x4bc80a['t'](_0x472e20(0x19c))}),_0x24230c('p',{'className':_0x472e20(0x17b),'children':_0x4bc80a['t']('mcpConfig.apiApplyInfo.description')}),_0x24230c(_0x472e20(0x11f),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x49b9c7&&_0x5c6a92('a',{'href':_0x3fef88,'target':'_blank','rel':_0x472e20(0xac),'className':_0x472e20(0x15f),'children':[_0x24230c('span',{'children':'🤖'}),_0x4bc80a['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0x1bf),'children':'↗'})]})}),_0x5c6a92('div',{'className':_0x472e20(0x164),'children':['✨','\x20',_0x4bc80a['t'](_0x472e20(0x1b7))]})]})]})]}),_0x33e360[_0x472e20(0x10a)]&&_0x5c6a92(_0x472e20(0x11f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5c6a92('h4',{'className':_0x472e20(0xa4),'children':[_0x24230c(_0x472e20(0xee),{'children':'🔗'}),'\x20',_0x4bc80a['t']('mcpConfig.connectionInfo')]}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1c8),'children':[_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0xc6),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x15b)}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x171),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1b0),'children':_0x4bc80a['t'](_0x472e20(0xd4))}),_0x24230c(_0x472e20(0xbe),{'className':_0x472e20(0x126),'children':_0x8f1215[_0x472e20(0xb9)]})]})]}),_0x5c6a92(_0x472e20(0x11f),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x24230c('div',{'className':_0x472e20(0x15b)}),_0x5c6a92('div',{'className':_0x472e20(0x171),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1b0),'children':_0x4bc80a['t'](_0x472e20(0x169))}),_0x24230c(_0x472e20(0xbe),{'className':'univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','children':_0x8f1215[_0x472e20(0xca)]||_0x472e20(0x1a7)})]})]})]})]}),_0x24230c(_0x105395,{'onClick':_0x2a7826,'disabled':!_0x14515a||_0x5e10c3,'className':_0x472e20(0xa2),'children':_0x5e10c3?_0x5c6a92(_0x472e20(0xee),{'className':_0x472e20(0x119),'children':[_0x24230c(_0x472e20(0xee),{'children':'⟲'}),_0x4bc80a['t'](_0x472e20(0x122))]}):_0x5c6a92(_0x472e20(0xee),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x24230c(ce,{}),_0x4bc80a['t'](_0x472e20(0xb5))]})}),_0x24230c('div',{'className':_0x472e20(0x19a),'children':_0x5c6a92('div',{'className':_0x472e20(0xf4),'children':[_0x24230c('span',{'className':_0x472e20(0x1d4),'children':'💡'}),_0x5c6a92('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0xb2),'children':_0x472e20(0x1ca)}),_0x5c6a92(_0x472e20(0x11f),{'children':['•',_0x4bc80a['t'](_0x472e20(0x18e))]}),_0x5c6a92(_0x472e20(0x11f),{'children':['•',_0x4bc80a['t'](_0x472e20(0x1ad))]})]})]})})]})})]});}function _0x4a13(_0x3c2c4e,_0x4f53cc){var _0xb9a728=_0xb9a7();return _0x4a13=function(_0x4a136f,_0x4e628d){_0x4a136f=_0x4a136f-0x98;var _0xb77cd=_0xb9a728[_0x4a136f];return _0xb77cd;},_0x4a13(_0x3c2c4e,_0x4f53cc);}const U=_0x2bc15e(0x1c3),J={'showDeveloperTools':!0x1};var Je=Object[_0x2bc15e(0x16c)],Qe=(_0x13b28a,_0x2db675,_0x8803fe,_0xe0a68e)=>{for(var _0x5d7f7b=_0xe0a68e>0x1?void 0x0:_0xe0a68e?Je(_0x2db675,_0x8803fe):_0x2db675,_0x45bb5f=_0x13b28a['length']-0x1,_0x121060;_0x45bb5f>=0x0;_0x45bb5f--)(_0x121060=_0x13b28a[_0x45bb5f])&&(_0x5d7f7b=_0x121060(_0x5d7f7b)||_0x5d7f7b);return _0x5d7f7b;},p=(_0x1c07f9,_0x563778)=>(_0x27d8ce,_0xb2c85b)=>_0x563778(_0x27d8ce,_0xb2c85b,_0x1c07f9);const R=_0x2bc15e(0xbf),j=_0x2bc15e(0xd0);let _=class extends _0x3a1a4d{constructor(_0x54f9d4,_0x47eee0,_0x10cc2c,_0x301dbc,_0x11d41f,_0x4c1803,_0x49964b,_0xe9acb4,_0x42b236,_0x56bfb1){var _0x51ecc9=_0x2bc15e;super(),N(this,_0x51ecc9(0x106),new _0xef7aa5(!0x1)),N(this,_0x51ecc9(0x1e0),new _0xef7aa5({})),N(this,_0x51ecc9(0x11e),new _0xef7aa5({})),N(this,'_handleConfigSave',async _0x17c405=>{var _0x546eee=_0x51ecc9;this[_0x546eee(0x106)]['next'](!0x0);try{const _0x3dba22=await this[_0x546eee(0x152)](_0x17c405);if(!_0x3dba22[_0x546eee(0x18d)]){this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x1e3)],'content':_0x3dba22['errorMessage']||this[_0x546eee(0x181)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x17c405[_0x546eee(0x199)]?await this[_0x546eee(0xe7)][_0x546eee(0x1bb)](R,_0x17c405['apiKey'][_0x546eee(0x16e)]()):await this[_0x546eee(0xe7)][_0x546eee(0x1ab)](R),this[_0x546eee(0xc9)]['setConfig'](_0x1bb383,{..._0x17c405,'apiKey':_0x17c405[_0x546eee(0x199)][_0x546eee(0x16e)]()}),this[_0x546eee(0x1e0)][_0x546eee(0xa8)]({..._0x17c405,'apiKey':_0x17c405[_0x546eee(0x199)][_0x546eee(0x16e)]()}),this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x12f)],'content':this['_localeService']['t'](_0x546eee(0x190))}),setTimeout(()=>{var _0x1feddb=_0x546eee;this[_0x1feddb(0xfc)]['close'](j);},0x320);}catch(_0x257a10){this['_logService'][_0x546eee(0x168)](_0x546eee(0x19b),_0x257a10),this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x1e3)],'content':this[_0x546eee(0x181)]['t']('mcpConfig.configError')});}finally{this[_0x546eee(0x106)]['next'](!0x1);}}),(this[_0x51ecc9(0x161)]=_0x54f9d4,this['_uiPartsService']=_0x47eee0,this[_0x51ecc9(0xc9)]=_0x10cc2c,this[_0x51ecc9(0xe7)]=_0x301dbc,this[_0x51ecc9(0xfc)]=_0x11d41f,this[_0x51ecc9(0x9c)]=_0x4c1803,this[_0x51ecc9(0xe3)]=_0x49964b,this[_0x51ecc9(0x181)]=_0xe9acb4,this[_0x51ecc9(0x125)]=_0x42b236,this[_0x51ecc9(0x1ba)]=_0x56bfb1,this['_initConfigSync'](),this[_0x51ecc9(0x145)](),this['_registerComponent']());}[_0x2bc15e(0x18b)](){var _0x89284=_0x2bc15e;this[_0x89284(0xfc)][_0x89284(0x1d8)]({'id':j,'title':{'title':this[_0x89284(0x181)]['t'](_0x89284(0x1b9))},'children':{'label':_0x89284(0x16b)},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0xb95e39=_0x89284;this[_0xb95e39(0xfc)][_0xb95e39(0x112)](j);}});}[_0x2bc15e(0xc1)](){var _0x4c9dea=_0x2bc15e;return this[_0x4c9dea(0x1e0)][_0x4c9dea(0x1c4)];}[_0x2bc15e(0x191)](){var _0x3c7f01=_0x2bc15e;this[_0x3c7f01(0x172)](this[_0x3c7f01(0xe3)]['register'](_0x3c7f01(0x16b),this['_createConfigPanelComponent']()));}[_0x2bc15e(0x16f)](){var _0xb9f49b=_0x2bc15e;return _0x5d4d25(()=>{var _0x460108=_0x4a13,_0x7bc0bf,_0x4bdcd9;return _0x24230c(Xe,{'config':this[_0x460108(0x11e)][_0x460108(0x1c4)],'mcpCoreConfig':this[_0x460108(0x1e0)][_0x460108(0x1c4)],'onSave':this[_0x460108(0x15d)],'loading':this[_0x460108(0x106)]['value'],'connectionStatus$':(_0x7bc0bf=this[_0x460108(0x1ba)])==null?void 0x0:_0x7bc0bf[_0x460108(0x14b)],'connectionError$':(_0x4bdcd9=this[_0x460108(0x1ba)])==null?void 0x0:_0x4bdcd9[_0x460108(0x17f)]});},this[_0xb9f49b(0x161)]);}[_0x2bc15e(0x178)](){var _0x2a9636=_0x2bc15e;this[_0x2a9636(0x172)](this[_0x2a9636(0xc9)][_0x2a9636(0x117)](_0x1bb383)['subscribe'](_0x7e44dc=>{var _0x2caadc=_0x2a9636;this[_0x2caadc(0x1e0)]['next'](_0x7e44dc||{});}));const _0x577355=this[_0x2a9636(0xc9)]['getConfig'](_0x1bb383);this[_0x2a9636(0x1e0)][_0x2a9636(0xa8)](_0x577355||{}),this[_0x2a9636(0x172)](this[_0x2a9636(0xc9)][_0x2a9636(0x117)](U)[_0x2a9636(0x16d)](_0x395fc5=>{var _0x5ec8a7=_0x2a9636;this[_0x5ec8a7(0x11e)]['next'](_0x395fc5||{});}));const _0x1cbb42=this['_configService'][_0x2a9636(0x111)](U);this[_0x2a9636(0x11e)][_0x2a9636(0xa8)](_0x1cbb42||{});}async[_0x2bc15e(0x145)](){var _0x1b886a=_0x2bc15e;const _0x12035b=await this[_0x1b886a(0xe7)][_0x1b886a(0x1dd)](R);if(_0x12035b){const _0x33a07f={...this[_0x1b886a(0x1e0)][_0x1b886a(0x1c4)],'apiKey':_0x12035b};this[_0x1b886a(0xc9)][_0x1b886a(0x1aa)](_0x1bb383,_0x33a07f),this['_mcpCoreConfig$'][_0x1b886a(0xa8)](_0x33a07f);}}async[_0x2bc15e(0x152)](_0x2004c1){var _0x2a3cbb=_0x2bc15e;if(!_0x2004c1[_0x2a3cbb(0x199)]||_0x2004c1['apiKey'][_0x2a3cbb(0x16e)]()[_0x2a3cbb(0xb3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2a3cbb(0x181)]['t'](_0x2a3cbb(0x132))};if(_0x2004c1[_0x2a3cbb(0x199)][_0x2a3cbb(0x16e)]()[_0x2a3cbb(0xb3)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2a3cbb(0x1e7))};try{const _0x5bd7cf=await this[_0x2a3cbb(0x161)][_0x2a3cbb(0xe0)](_0x1c16fa)[_0x2a3cbb(0x118)](_0x2004c1[_0x2a3cbb(0x199)]['trim']());return _0x5bd7cf['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5bd7cf['error']||this[_0x2a3cbb(0x181)]['t'](_0x2a3cbb(0x18c))};}catch(_0x48e4b3){return console['warn'](_0x2a3cbb(0x154),_0x48e4b3),{'isValid':!0x0};}}};_=Qe([p(0x0,_0x696855(_0x3be1cf)),p(0x1,_0x4c65ee),p(0x2,_0x5b375f),p(0x3,_0x4948f7),p(0x4,_0x119553),p(0x5,_0x5b4388),p(0x6,_0x696855(_0x13aeb6)),p(0x7,_0x696855(_0x42fd01)),p(0x8,_0x4318dc),p(0x9,_0x696855(_0x1c16fa))],_);const W={'id':'mcp-ui.command.openConfigPanel','type':_0x577139[_0x2bc15e(0x179)],'handler':async(_0x2dc279,_0x4eedea)=>(_0x2dc279['get'](_)[_0x2bc15e(0x18b)](),!0x0)};function ve(_0x3a3114,_0x5df4cf){var _0x1cbfb8=_0x2bc15e;switch(_0x3a3114){case _0x16bf1e['DISCONNECTED']:return _0x5df4cf===_0x3ee0ac[_0x1cbfb8(0x1af)]?_0x1cbfb8(0xe9):_0x1cbfb8(0x14c);case _0x16bf1e[_0x1cbfb8(0xfa)]:return _0x1cbfb8(0x13c);case _0x16bf1e[_0x1cbfb8(0x101)]:return'mcpStatus.connected';case _0x16bf1e[_0x1cbfb8(0xb8)]:switch(_0x5df4cf){case _0x3ee0ac[_0x1cbfb8(0x11c)]:return _0x1cbfb8(0xc4);case _0x3ee0ac['SESSION_ID_OCCUPIED']:return _0x1cbfb8(0x105);case _0x3ee0ac[_0x1cbfb8(0x1a5)]:return _0x1cbfb8(0x188);case _0x3ee0ac[_0x1cbfb8(0x108)]:return _0x1cbfb8(0xbd);default:return _0x1cbfb8(0xc3);}case _0x16bf1e['RETRYING']:return _0x1cbfb8(0xa6);default:return'mcpStatus.unknown';}}function en(_0x3d6e00,_0x45cb33,_0x4514ef){var _0x284fda=_0x2bc15e;const _0x3f44a=ve(_0x3d6e00,_0x45cb33),_0x31c6b5=_0x4514ef['t'](_0x3f44a);return _0x3d6e00===_0x16bf1e[_0x284fda(0x1e6)]&&_0x45cb33===_0x3ee0ac[_0x284fda(0x1af)]?_0x31c6b5+'\x20-\x20'+_0x4514ef['t'](_0x284fda(0x19f)):_0x3d6e00===_0x16bf1e[_0x284fda(0x101)]?''+_0x31c6b5:_0x3d6e00===_0x16bf1e['DISCONNECTED']||_0x3d6e00===_0x16bf1e[_0x284fda(0xb8)]?_0x31c6b5+_0x284fda(0x1c2)+_0x4514ef['t'](_0x284fda(0x127)):_0x31c6b5;}function nn(_0x124c3a){var _0xe3b959=_0x2bc15e;switch(_0x124c3a){case _0x16bf1e[_0xe3b959(0x101)]:return'univer-text-green-500';case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0xe3b959(0xcf)]:return _0xe3b959(0x131);case _0x16bf1e[_0xe3b959(0xb8)]:case _0x16bf1e[_0xe3b959(0x1e6)]:return _0xe3b959(0x162);default:return _0xe3b959(0xc5);}}function rn(_0x52f633){var _0x10ff69=_0x2bc15e;const {status$:_0x3e171d,error$:_0x26b3a8,onConfigure:_0x366dd3}=_0x52f633,_0x5b3ea6=_0x1ba95b(_0x3e171d,_0x16bf1e[_0x10ff69(0x1e6)]),_0x3726ae=_0x1ba95b(_0x26b3a8,_0x3ee0ac[_0x10ff69(0x12d)]),_0x442625=_0x4faa95(_0x42fd01),_0x410766=_0x5b3ea6===_0x16bf1e[_0x10ff69(0x101)],_0x172ab0=_0x5b3ea6===_0x16bf1e['CONNECTING']||_0x5b3ea6===_0x16bf1e['RETRYING'],_0x263ed5=_0x442625['t'](ve(_0x5b3ea6,_0x3726ae)),_0x50fa0f=en(_0x5b3ea6,_0x3726ae,_0x442625),_0x35ec1c=nn(_0x5b3ea6),_0x1228c8=_0x410766?_0x24230c(ue,{}):_0x24230c(le,{}),_0x332dcd=_0x292baa(()=>{_0x366dd3&&_0x366dd3();},[_0x410766,_0x172ab0,_0x366dd3]);function _0x5e4aef(){var _0x3e6028=_0x10ff69;return _0x5c6a92('div',{'className':_0x2ed97f('univer-flex\x20univer-cursor-pointer\x20univer-items-center',_0x366dd3&&_0x3e6028(0xb4)),'onClick':_0x366dd3?_0x332dcd:void 0x0,'children':[_0x24230c(_0x3e6028(0x11f),{'className':_0x2ed97f(_0x3e6028(0x146),_0x35ec1c),'children':_0x1228c8}),_0x24230c(_0x3e6028(0x11f),{'className':_0x3e6028(0x9b),'children':_0x263ed5})]});}return _0x24230c(_0x1b8685,{'title':_0x50fa0f,'placement':_0x10ff69(0x1a1),'children':_0x5e4aef()});}var tn=Object[_0x2bc15e(0x16c)],on=(_0x5ec685,_0x21eb4d,_0x2d874f,_0x4aeb20)=>{for(var _0x42fe3b=_0x4aeb20>0x1?void 0x0:_0x4aeb20?tn(_0x21eb4d,_0x2d874f):_0x21eb4d,_0x469424=_0x5ec685['length']-0x1,_0x12ea9b;_0x469424>=0x0;_0x469424--)(_0x12ea9b=_0x5ec685[_0x469424])&&(_0x42fe3b=_0x12ea9b(_0x42fe3b)||_0x42fe3b);return _0x42fe3b;},L=(_0x66acf5,_0x3c5bc4)=>(_0x93f0c7,_0x574090)=>_0x3c5bc4(_0x93f0c7,_0x574090,_0x66acf5);let O=class extends _0x3a1a4d{constructor(_0x1c819b,_0x45b4a3,_0x10db4a){var _0x243697=_0x2bc15e;super(),this[_0x243697(0x161)]=_0x1c819b,this[_0x243697(0x159)]=_0x45b4a3,this['_uiPartsService']=_0x10db4a,this['_initStatusComponent']();}[_0x2bc15e(0x150)](){var _0x3f001d=_0x2bc15e;this[_0x3f001d(0x172)](this[_0x3f001d(0xc2)]['registerComponent'](_0x2c0def[_0x3f001d(0x1ae)],()=>_0x5d4d25(cn({'status$':this[_0x3f001d(0x159)][_0x3f001d(0x14b)],'error$':this[_0x3f001d(0x159)][_0x3f001d(0x17f)],'onConfigure':()=>this[_0x3f001d(0xcb)]()}),this['_injector'])));}[_0x2bc15e(0xcb)](){var _0x43e7ab=_0x2bc15e;this[_0x43e7ab(0x161)][_0x43e7ab(0xe0)](_)[_0x43e7ab(0x18b)]();}};O=on([L(0x0,_0x696855(_0x3be1cf)),L(0x1,_0x696855(_0x1c16fa)),L(0x2,_0x4c65ee)],O);function cn(_0x4cc40f){const {status$:_0x23c6e8,error$:_0x411ba6,onConfigure:_0x12d8ce}=_0x4cc40f;return function(){return _0x24230c(rn,{'status$':_0x23c6e8,'error$':_0x411ba6,'onConfigure':_0x12d8ce});};}function an(_0xc167dc){var _0x566401=_0x2bc15e;return{'id':W['id'],'type':_0x21bf04[_0x566401(0x15a)],'icon':_0x566401(0x1dc),'title':_0x566401(0x1b9),'tooltip':_0x566401(0x1b9)};}const sn={[_0x2510f1[_0x2bc15e(0x1e4)]]:{[W['id']]:{'order':0xa,'menuItemFactory':an}}};var ln=Object[_0x2bc15e(0x16c)],un=(_0xe38c1e,_0x240cb4,_0x2d7844,_0x35e426)=>{var _0x25e83f=_0x2bc15e;for(var _0x3e4827=_0x35e426>0x1?void 0x0:_0x35e426?ln(_0x240cb4,_0x2d7844):_0x240cb4,_0x15a12b=_0xe38c1e[_0x25e83f(0xb3)]-0x1,_0x1323d5;_0x15a12b>=0x0;_0x15a12b--)(_0x1323d5=_0xe38c1e[_0x15a12b])&&(_0x3e4827=_0x1323d5(_0x3e4827)||_0x3e4827);return _0x3e4827;},Q=(_0x49f3be,_0x45cb5a)=>(_0x5601fd,_0x471979)=>_0x45cb5a(_0x5601fd,_0x471979,_0x49f3be);let k=class extends _0x3a1a4d{constructor(_0x171f40,_0x11ada6){var _0x10ef46=_0x2bc15e;super(),this['_commandService']=_0x171f40,this['_menuManagerService']=_0x11ada6,this['_initializeCommands'](),this[_0x10ef46(0xe1)]();}[_0x2bc15e(0x12a)](){var _0x8ea2d6=_0x2bc15e;[W][_0x8ea2d6(0xcc)](_0xe27650=>{var _0x47f6a6=_0x8ea2d6;this[_0x47f6a6(0x172)](this[_0x47f6a6(0x1d7)][_0x47f6a6(0x136)](_0xe27650));});}['_initializeMenus'](){var _0x2dd2ff=_0x2bc15e;this[_0x2dd2ff(0x1c0)][_0x2dd2ff(0xf8)](sn);}};k=un([Q(0x0,_0x386a7f),Q(0x1,_0x540f9d)],k);const Nn={'mcpStatus':{'disconnected':_0x2bc15e(0xa1),'connecting':_0x2bc15e(0x144),'connected':_0x2bc15e(0x13d),'failed':_0x2bc15e(0x196),'retrying':_0x2bc15e(0x176),'unknown':_0x2bc15e(0x185),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x2bc15e(0x194),'maxRetriesExceeded':_0x2bc15e(0x113),'clickToConnect':_0x2bc15e(0x156),'clickToConfigure':_0x2bc15e(0x104)},'mcpConfig':{'title':_0x2bc15e(0x1df),'description':_0x2bc15e(0xe8),'apiKey':_0x2bc15e(0x17a),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2bc15e(0x11a),'enableAuth':_0x2bc15e(0x1b3),'enableAuthHint':_0x2bc15e(0xd3),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x2bc15e(0x177),'sessionId':_0x2bc15e(0x18f),'maxRetries':_0x2bc15e(0x1b8),'save':_0x2bc15e(0xec),'saving':_0x2bc15e(0x1c1),'note1':_0x2bc15e(0x15c),'note2':_0x2bc15e(0x1d1),'configSaved':_0x2bc15e(0x1a9),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2bc15e(0xf0),'description':_0x2bc15e(0x1d2),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2bc15e(0x1d6)},'validation':{'apiKeyRequired':_0x2bc15e(0x13b),'apiKeyTooShort':_0x2bc15e(0x189),'invalidConfig':_0x2bc15e(0x148),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2bc15e(0x17e),'connecting':'Connecting...','connected':_0x2bc15e(0x1e9),'failed':_0x2bc15e(0x139),'retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x2bc15e(0x98),'maxRetriesExceeded':_0x2bc15e(0xbc)}}},Pn={'mcpStatus':{'disconnected':_0x2bc15e(0xc8),'connecting':_0x2bc15e(0x11d),'connected':_0x2bc15e(0xed),'failed':_0x2bc15e(0x123),'retrying':_0x2bc15e(0xab),'unknown':_0x2bc15e(0x9f),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x2bc15e(0x173),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x2bc15e(0xa3),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2bc15e(0x1da),'clickToConfigure':_0x2bc15e(0x10e)},'mcpConfig':{'title':_0x2bc15e(0x16a),'description':_0x2bc15e(0x9e),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x2bc15e(0x155),'apiKeyHint':_0x2bc15e(0xf3),'enableAuth':_0x2bc15e(0x1bc),'enableAuthHint':_0x2bc15e(0xa0),'connectionInfo':_0x2bc15e(0x1ed),'serverEndpoint':_0x2bc15e(0xfe),'sessionId':_0x2bc15e(0x1cb),'maxRetries':_0x2bc15e(0x165),'save':'保存配置','saving':_0x2bc15e(0xf5),'note1':'配置更改将立即生效','note2':_0x2bc15e(0xf2),'configSaved':'配置保存成功','configError':_0x2bc15e(0x137),'apiApplyInfo':{'title':_0x2bc15e(0x1c5),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x2bc15e(0xd1),'getStarted':_0x2bc15e(0x195)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x2bc15e(0x1db),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x2bc15e(0x142),'connected':_0x2bc15e(0x192),'failed':_0x2bc15e(0xd7),'retrying':_0x2bc15e(0x184)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x2bc15e(0x193),'sessionOccupied':_0x2bc15e(0x1b2),'networkError':_0x2bc15e(0xf9),'maxRetriesExceeded':_0x2bc15e(0x10d)}}};var vn=Object[_0x2bc15e(0x12c)],dn=Object[_0x2bc15e(0x16c)],gn=(_0x26084d,_0x41051a,_0x375115)=>_0x41051a in _0x26084d?vn(_0x26084d,_0x41051a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x375115}):_0x26084d[_0x41051a]=_0x375115,fn=(_0x339b79,_0x4dfa09,_0x42e682,_0x27b699)=>{var _0x390f9d=_0x2bc15e;for(var _0x475250=_0x27b699>0x1?void 0x0:_0x27b699?dn(_0x4dfa09,_0x42e682):_0x4dfa09,_0x2f2932=_0x339b79[_0x390f9d(0xb3)]-0x1,_0x4283fe;_0x2f2932>=0x0;_0x2f2932--)(_0x4283fe=_0x339b79[_0x2f2932])&&(_0x475250=_0x4283fe(_0x475250)||_0x475250);return _0x475250;},P=(_0xf847aa,_0x114b14)=>(_0x9da604,_0xffe549)=>_0x114b14(_0x9da604,_0xffe549,_0xf847aa),pn=(_0x1f2992,_0x715050,_0x2a2192)=>gn(_0x1f2992,_0x715050+'',_0x2a2192);let G=class extends _0x32b180{constructor(_0x2e974a=J,_0x3cacae,_0x4db2b0,_0x4efc30,_0x55cf76,_0x1380dc){var _0x2ceaa2=_0x2bc15e;super(),this[_0x2ceaa2(0x13f)]=_0x2e974a,this[_0x2ceaa2(0x161)]=_0x3cacae,this[_0x2ceaa2(0xc9)]=_0x4db2b0,this[_0x2ceaa2(0xc2)]=_0x4efc30,this[_0x2ceaa2(0xe7)]=_0x55cf76,this[_0x2ceaa2(0x181)]=_0x1380dc;const {..._0x498038}=_0x2b6653({},J,this[_0x2ceaa2(0x13f)]);this[_0x2ceaa2(0xc9)][_0x2ceaa2(0x1aa)](U,_0x498038);}async[_0x2bc15e(0x1d3)](){var _0x1c2276=_0x2bc15e;[[O],[_],[k]][_0x1c2276(0xcc)](_0x244deb=>this[_0x1c2276(0x161)][_0x1c2276(0xa9)](_0x244deb)),this[_0x1c2276(0x161)][_0x1c2276(0xe0)](O),this['_injector'][_0x1c2276(0xe0)](_),this[_0x1c2276(0x161)][_0x1c2276(0xe0)](k);}};pn(G,_0x2bc15e(0x13a),_0x2bc15e(0x19d)),G=fn([_0x302e6f(_0x313ef9),P(0x1,_0x696855(_0x3be1cf)),P(0x2,_0x5b375f),P(0x3,_0x4c65ee),P(0x4,_0x4948f7),P(0x5,_0x696855(_0x42fd01))],G);export{Xe as MCPConfigPanel,_ as MCPConfigUIController,O as MCPConnectionUIController,rn as MCPStatusDisplay,k as MCPUIMenuController,W as OpenMCPConfigPanelCommand,G as UniverMCPUIPlugin,Nn as enUS,Pn as zhCN};
1
+ var _0x13b83e=_0x2c17;(function(_0x23f94f,_0x3b03a7){var _0x4a7457=_0x2c17,_0x490f69=_0x23f94f();while(!![]){try{var _0x34c12d=-parseInt(_0x4a7457(0x268))/0x1+parseInt(_0x4a7457(0x297))/0x2*(parseInt(_0x4a7457(0x304))/0x3)+parseInt(_0x4a7457(0x1ce))/0x4*(-parseInt(_0x4a7457(0x28a))/0x5)+-parseInt(_0x4a7457(0x26f))/0x6+-parseInt(_0x4a7457(0x277))/0x7*(parseInt(_0x4a7457(0x22c))/0x8)+parseInt(_0x4a7457(0x1dc))/0x9*(-parseInt(_0x4a7457(0x22b))/0xa)+parseInt(_0x4a7457(0x2af))/0xb;if(_0x34c12d===_0x3b03a7)break;else _0x490f69['push'](_0x490f69['shift']());}catch(_0x2c7b85){_0x490f69['push'](_0x490f69['shift']());}}}(_0x5e7e,0xaaacf));var Ee=Object[_0x13b83e(0x28d)],we=(_0xdd06d9,_0x5c474a,_0x1a45c2)=>_0x5c474a in _0xdd06d9?Ee(_0xdd06d9,_0x5c474a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a45c2}):_0xdd06d9[_0x5c474a]=_0x1a45c2,x=(_0x2a64eb,_0x5b2b77,_0x473534)=>we(_0x2a64eb,typeof _0x5b2b77!=_0x13b83e(0x2e0)?_0x5b2b77+'':_0x5b2b77,_0x473534);import{LocaleService as _0x48cdf0,Inject as _0x31ebf0,Injector as _0xe617fa,IConfigService as _0x123bf2,ILocalStorageService as _0x133dba,ILogService as _0x55d68a,Disposable as _0x27f41f,CommandType as _0x42867f,ICommandService as _0x5a1004,DependentOn as _0x13bb6e,Plugin as _0x55e620,merge as _0x1e80dd}from'@univerjs/core';import{jsxs as _0x55f79c,jsx as _0x45624b}from'react/jsx-runtime';import{MCPConnectionStatus as _0x5b2853,MCPConnectionError as _0xffdbc4,MCPConnectionController as _0x530fb2,MCP_PLUGIN_CONFIG_KEY as _0x17ce20,UniverMCPPlugin as _0x41ac27}from'@univerjs-pro/mcp';import{Input as _0x350112,Button as _0xfa5316,MessageType as _0x2486d5,Tooltip as _0x4c3829,clsx as _0x4afb8d}from'@univerjs/design';import{useDependency as _0x342462,useObservable as _0xf0ecad,IUIPartsService as _0x352db5,IDialogService as _0x15ecf3,IMessageService as _0x1e2bf2,ComponentManager as _0x20508d,connectInjector as _0x32a723,BuiltInUIPart as _0x2a0d4f,MenuItemType as _0x5a7c3f,RibbonStartGroup as _0xb1125a,IMenuManagerService as _0x25215d}from'@univerjs/ui';import{BehaviorSubject as _0xec8ff7}from'rxjs';import{forwardRef as _0x101d46,useRef as _0x3132cd,createElement as _0x49f39f,useState as _0xa49c44,useCallback as _0x375bea}from'react';import{ISocketService as _0x14571d,WebSocketService as _0x1a839a}from'@univerjs/network';var g=function(){var _0x3b7801=_0x13b83e;return g=Object[_0x3b7801(0x1dd)]||function(_0x11f777){var _0x3da4d1=_0x3b7801;for(var _0x4508f4,_0x1f469d=0x1,_0xd0538=arguments[_0x3da4d1(0x2f5)];_0x1f469d<_0xd0538;_0x1f469d++){_0x4508f4=arguments[_0x1f469d];for(var _0x5ef68f in _0x4508f4)Object[_0x3da4d1(0x27b)]['hasOwnProperty'][_0x3da4d1(0x2a9)](_0x4508f4,_0x5ef68f)&&(_0x11f777[_0x5ef68f]=_0x4508f4[_0x5ef68f]);}return _0x11f777;},g['apply'](this,arguments);},We=function(_0x2283da,_0x150573){var _0x1ac7f0=_0x13b83e,_0x100b37={};for(var _0x53109c in _0x2283da)Object[_0x1ac7f0(0x27b)][_0x1ac7f0(0x20f)][_0x1ac7f0(0x2a9)](_0x2283da,_0x53109c)&&_0x150573[_0x1ac7f0(0x305)](_0x53109c)<0x0&&(_0x100b37[_0x53109c]=_0x2283da[_0x53109c]);if(_0x2283da!=null&&typeof Object[_0x1ac7f0(0x2fd)]==_0x1ac7f0(0x1fb)){for(var _0x26e334=0x0,_0x53109c=Object[_0x1ac7f0(0x2fd)](_0x2283da);_0x26e334<_0x53109c[_0x1ac7f0(0x2f5)];_0x26e334++)_0x150573[_0x1ac7f0(0x305)](_0x53109c[_0x26e334])<0x0&&Object[_0x1ac7f0(0x27b)]['propertyIsEnumerable']['call'](_0x2283da,_0x53109c[_0x26e334])&&(_0x100b37[_0x53109c[_0x26e334]]=_0x2283da[_0x53109c[_0x26e334]]);}return _0x100b37;},b=_0x101d46(function(_0x5cf2f4,_0x114a1d){var _0x1ec0e8=_0x13b83e,_0x5f315c=_0x5cf2f4[_0x1ec0e8(0x26e)],_0xec1480=_0x5cf2f4['id'],_0x4294f9=_0x5cf2f4[_0x1ec0e8(0x201)],_0x43eb3f=_0x5cf2f4[_0x1ec0e8(0x29f)],_0x4cc6ab=We(_0x5cf2f4,[_0x1ec0e8(0x26e),'id',_0x1ec0e8(0x201),'extend']),_0xbfa23=_0x1ec0e8(0x292)[_0x1ec0e8(0x204)](_0xec1480,'\x20')[_0x1ec0e8(0x204)](_0x4294f9||'')[_0x1ec0e8(0x235)](),_0x5d2bf6=_0x3132cd('_'['concat'](Xe()));return le(_0x5f315c,''[_0x1ec0e8(0x204)](_0xec1480),{'defIds':_0x5f315c['defIds'],'idSuffix':_0x5d2bf6['current']},g({'ref':_0x114a1d,'className':_0xbfa23},_0x4cc6ab),_0x43eb3f);});function le(_0x1c8073,_0x1cd397,_0x143873,_0x56291c,_0x3bcc9c){var _0x567930=_0x13b83e;return _0x49f39f(_0x1c8073[_0x567930(0x312)],g(g({'key':_0x1cd397},qe(_0x1c8073,_0x143873,_0x3bcc9c)),_0x56291c),(Ze(_0x1c8073,_0x143873)[_0x567930(0x1e2)]||[])[_0x567930(0x284)](function(_0x5ec990,_0x50a252){var _0x45aeda=_0x567930;return le(_0x5ec990,''[_0x45aeda(0x204)](_0x1cd397,'-')[_0x45aeda(0x204)](_0x1c8073[_0x45aeda(0x312)],'-')['concat'](_0x50a252),_0x143873,void 0x0,_0x3bcc9c);}));}function qe(_0xc66188,_0x4de87f,_0x3b34dd){var _0x29cbd3=_0x13b83e,_0x3772c6=g({},_0xc66188['attrs']);_0x3b34dd!=null&&_0x3b34dd[_0x29cbd3(0x290)]&&_0x3772c6[_0x29cbd3(0x20d)]===_0x29cbd3(0x290)&&(_0x3772c6[_0x29cbd3(0x20d)]=_0x3b34dd[_0x29cbd3(0x290)]),_0xc66188[_0x29cbd3(0x312)]===_0x29cbd3(0x2cc)&&_0x3772c6['id']&&(_0x3772c6['id']=_0x3772c6['id']+_0x4de87f[_0x29cbd3(0x309)]),Object[_0x29cbd3(0x1f7)](_0x3772c6)[_0x29cbd3(0x1f0)](function(_0x271f3e){var _0x56d106=_0x29cbd3,_0x58ef01=_0x271f3e[0x0],_0x565794=_0x271f3e[0x1];_0x58ef01===_0x56d106(0x2cc)&&typeof _0x565794=='string'&&(_0x3772c6[_0x58ef01]=_0x565794['replace'](/url\(#(.*)\)/,_0x56d106(0x29d)[_0x56d106(0x204)](_0x4de87f[_0x56d106(0x309)],')')));});var _0x5255c5=_0x4de87f[_0x29cbd3(0x208)];return!_0x5255c5||_0x5255c5[_0x29cbd3(0x2f5)]===0x0||(_0xc66188[_0x29cbd3(0x312)]==='use'&&_0x3772c6[_0x29cbd3(0x1e5)]&&(_0x3772c6[_0x29cbd3(0x1e5)]=_0x3772c6[_0x29cbd3(0x1e5)]+_0x4de87f[_0x29cbd3(0x309)]),Object[_0x29cbd3(0x1f7)](_0x3772c6)[_0x29cbd3(0x1f0)](function(_0x3b9e24){var _0x4fe26d=_0x29cbd3,_0x13c23c=_0x3b9e24[0x0],_0x37414a=_0x3b9e24[0x1];typeof _0x37414a=='string'&&(_0x3772c6[_0x13c23c]=_0x37414a[_0x4fe26d(0x28f)](/url\(#(.*)\)/,_0x4fe26d(0x29d)['concat'](_0x4de87f[_0x4fe26d(0x309)],')')));})),_0x3772c6;}function Ze(_0x33d913,_0x415584){var _0x4c2399=_0x13b83e,_0x1399ae,_0x45f752=_0x415584[_0x4c2399(0x208)];return!_0x45f752||_0x45f752['length']===0x0?_0x33d913:_0x33d913[_0x4c2399(0x312)]==='defs'&&(!((_0x1399ae=_0x33d913[_0x4c2399(0x1e2)])===null||_0x1399ae===void 0x0)&&_0x1399ae[_0x4c2399(0x2f5)])?g(g({},_0x33d913),{'children':_0x33d913[_0x4c2399(0x1e2)]['map'](function(_0xf13430){var _0x1f9e6e=_0x4c2399;return typeof _0xf13430[_0x1f9e6e(0x20e)]['id']==_0x1f9e6e(0x261)&&_0x45f752&&_0x45f752[_0x1f9e6e(0x303)](_0xf13430[_0x1f9e6e(0x20e)]['id'])?g(g({},_0xf13430),{'attrs':g(g({},_0xf13430[_0x1f9e6e(0x20e)]),{'id':_0xf13430[_0x1f9e6e(0x20e)]['id']+_0x415584[_0x1f9e6e(0x309)]})}):_0xf13430;})}):_0x33d913;}function Xe(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}b[_0x13b83e(0x206)]='UniverIcon';var Je={'tag':_0x13b83e(0x2ef),'attrs':{'xmlns':_0x13b83e(0x23d),'fill':_0x13b83e(0x28e),'viewBox':_0x13b83e(0x26d),'width':_0x13b83e(0x291),'height':'1em'},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'fill':_0x13b83e(0x21f),'d':'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','fillRule':_0x13b83e(0x2de),'clipRule':_0x13b83e(0x2de)}}]},ue=_0x101d46(function(_0x36bebe,_0x22a9a5){var _0x35b7d2=_0x13b83e;return _0x49f39f(b,Object[_0x35b7d2(0x1dd)]({},_0x36bebe,{'id':_0x35b7d2(0x316),'ref':_0x22a9a5,'icon':Je}));});ue[_0x13b83e(0x206)]='CheckMarkIcon';var Qe={'tag':_0x13b83e(0x2ef),'attrs':{'xmlns':_0x13b83e(0x23d),'fill':_0x13b83e(0x28e),'viewBox':_0x13b83e(0x25b),'width':_0x13b83e(0x291),'height':_0x13b83e(0x291)},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'stroke':_0x13b83e(0x21f),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x13b83e(0x1d7),'strokeLinejoin':_0x13b83e(0x1d7),'strokeWidth':1.33}},{'tag':_0x13b83e(0x30e),'attrs':{'stroke':_0x13b83e(0x21f),'d':_0x13b83e(0x27f),'strokeLinecap':_0x13b83e(0x1d7),'strokeLinejoin':_0x13b83e(0x1d7),'strokeWidth':1.33}}]},ve=_0x101d46(function(_0x578da5,_0x4b316f){var _0x22c2d8=_0x13b83e;return _0x49f39f(b,Object[_0x22c2d8(0x1dd)]({},_0x578da5,{'id':'close-small-single','ref':_0x4b316f,'icon':Qe}));});ve[_0x13b83e(0x206)]=_0x13b83e(0x2e6);var en={'tag':'svg','attrs':{'xmlns':_0x13b83e(0x23d),'fill':_0x13b83e(0x28e),'viewBox':_0x13b83e(0x26d),'width':'1em','height':'1em'},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'fill':_0x13b83e(0x21f),'d':_0x13b83e(0x2bd)}},{'tag':'path','attrs':{'fill':_0x13b83e(0x21f),'d':_0x13b83e(0x1f8)}},{'tag':_0x13b83e(0x30e),'attrs':{'fill':'currentColor','d':_0x13b83e(0x237),'fillRule':_0x13b83e(0x2de),'clipRule':_0x13b83e(0x2de)}}]},de=_0x101d46(function(_0x3d06f9,_0x2c0acb){var _0x459339=_0x13b83e;return _0x49f39f(b,Object[_0x459339(0x1dd)]({},_0x3d06f9,{'id':'help-single','ref':_0x2c0acb,'icon':en}));});de[_0x13b83e(0x206)]=_0x13b83e(0x256);function _0x5e7e(){var _0x3a17b8=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','extend','close','RETRYING','mcpConfig.connectionStatus.failed','getOwnPropertyDescriptor','_handleConfigure','API\x20密钥','连接失败','mcpConfig.note2','_commandService','call','Click\x20to\x20connect\x20MCP','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.connectionError.maxRetriesExceeded','univer.ai','MCP:\x20网络错误','31645867PdLnsm','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','_localStorageService','Configuration\x20Steps:','disposeWithMe','保存配置','OTHERS','mcpConfig.apiKeyPlaceholder','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','registerCommand','MCP:\x20会话被占用','_menuManagerService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.connectionError.invalidApiKey','配置参数:','value','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.validation.invalidApiKey','将配置添加到您的\x20MCP\x20客户端设置文件中','javascript:void(0)','MCP:\x20API\x20Key\x20Missing','mcpConfig.title','Configuration\x20saved\x20successfully','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','需要\x20API\x20密钥才能连接','mask','Configuration\x20Parameters:','univer.plus','univer-text-xs\x20univer-text-gray-600','Configuration\x20Notes:','mcpStatus.sessionOccupied','mcpConfig.connectionError.sessionOccupied','apiKey','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','onStarting','setConfig','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-bg-red-500','univer-space-y-2','mcpConfig.sessionIdDescription','Disconnected','https://console.univer.ai','bottom','evenodd','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','symbol','univer-text-gray-400','Saving...','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','_registerComponent','univer-text-sm\x20univer-font-medium','CloseSmallSingle','on-line-icon_clip0_910_349','_createConfigPanelComponent','univer-bg-blue-500','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','Save\x20Configuration','hover:univer-opacity-80','svg','_loadStoredApiKey','translate(.97)','_uiPartsService','getItem','span','length','MCP\x20重连中...','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.connectionInfo','validateApiKey','div','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','subscribe','getOwnPropertySymbols','off','clipPath','BUTTON','label','url(#off-line-icon_clip0_910_343)','includes','180SkAKem','indexOf','mcpServerUrl','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.apiKeyHint','idSuffix','mcpConfig.apiApplyInfo.title','API\x20密钥不能为空','OnLineIcon','MCP:\x20Network\x20Error','path','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_componentManager','tag','mcp-config-dialog','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_initializeMenus','check-mark-icon','warn','mcpStatus.clickToConnect','_initConfigSync','_blank','univer-flex\x20univer-gap-3','MCP\x20配置','INVALID_API_KEY','保存中...','Connected','mcpConfig.configParameters','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-text-xs\x20univer-text-gray-500','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','启用身份验证以获得安全连接','mcpStatus.unknown','univer-flex\x20univer-h-4\x20univer-w-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-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','配置保存失败','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Error','__setCustomHeaders','MCP:\x20无效的\x20API\x20密钥','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','_loading$','getConfig','white','mcpConfig.apiApplyInfo.getStarted','Authorization:','12gAvHys','error','_initStatusComponent','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_connectionController','Enter\x20your\x20API\x20key','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','https://console.univer.plus','mcpConfig.connectionStatus.disconnected','round','get','univer-text-sm\x20univer-text-gray-500','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_logService','1989absAwy','assign','已连接','HEADER_MENU','_apiKey$','MCP\x20Configuration','children','MCP\x20Client\x20Configuration','isValid','xlink:href','NONE','univer-flex\x20univer-items-start\x20univer-gap-2','Retrying...','几秒钟内获取您的\x20API\x20密钥','配置保存成功','MCP\x20客户端配置','CONNECTING','univer-font-medium','open','配置更改将立即生效','forEach','会话当前被占用,请稍后再试','_initializeCommands','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_mcpConnectionController','CONNECTED','entries','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','mcpConfig.validation.invalidConfig','show','function','MCP\x20连接中...','_config','connectionStatus$','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','subscribeConfigValue$','className','会话ID','您的\x20API\x20密钥安全存储在本地存储中','concat','univer-flex\x20univer-items-start\x20univer-gap-3','displayName','url(#on-line-icon_clip0_910_349)','defIds','DISCONNECTED','配置步骤:','connectionError$','API\x20密钥无效,请检查您的密钥后重试','fill','attrs','hasOwnProperty','univer-flex\x20univer-items-center\x20univer-gap-2','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20Key','启用身份验证','MCP\x20已连接','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_mcpCoreConfig$','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','_injector','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_localeService','mcpStatus.clickToConfigure','mcpConfig.configStepTitle','mcpConfig.validation.apiKeyTooShort','currentColor','univer-text-blue-600','univer-min-w-0\x20univer-flex-1','mcpConfig.apiApplyInfo.description','mcpConfig.description','add','配置无效','next','API\x20key\x20is\x20required','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-space-y-4','showDeveloperTools','15170ClImuW','8155592RIdpGG','Invalid\x20configuration','MCP\x20已断开','pluginName','MCP:\x20Session\x20Occupied','_validateConfig','text','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','FAILED','trim','defs','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','OffLineIcon','univer-flex-shrink-0\x20univer-text-blue-500','请输入您的\x20API\x20密钥','_config$','Connecting...','http://www.w3.org/2000/svg','mcpConfig.connectionStatus.connected','mcpConfig.save','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','on-line-icon','MCP:\x20Invalid\x20API\x20Key','setItem','Click\x20to\x20configure\x20MCP','mcpConfig.authorizationDescription','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-bg-gray-500','_configService','Connection\x20Failed','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','Max\x20Retries','最大重试次数','univer-space-y-5','Close','SESSION_ID_OCCUPIED','mcpStatus.failed','mcpConfig.apiKey','mcp-ui.command.openConfigPanel','COMMAND','univer-text-red-500','HelpSingle','univer-text-xs\x20univer-font-medium\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-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','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','register','0\x200\x2017\x2017','重连中...','MAX_RETRIES_EXCEEDED','univer_session_id:','registerComponent','重启您的\x20MCP\x20客户端以使配置生效','string','Enable\x20Authentication','What\x20is\x20API\x20Key?','mcpConfig.configStep1','univer-flex\x20univer-cursor-pointer\x20univer-items-center','mcpConfig.configStep2','什么是\x20API\x20密钥?','843322WusUFZ','\x20-\x20','复制以下\x20JSON\x20配置','mcpStatus.invalidApiKey','Session\x20ID','0\x200\x2016\x2016','icon','718014hBSjnY','API\x20密钥无效,请检查密钥是否正确','getCurrentConfig','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.connectionError.networkError','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-green-500','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','7STlQgO','MCP\x20Retrying...','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','prototype','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','M5.21243\x2012.287L11.8791\x205.62036','showConfigPanel','_messageService','mcpConfig.connectionStatus.retrying','MCPConfigPanel','map','超出最大重试次数,请稍后再试','网络连接错误,请检查您的网络连接','MCP\x20Connecting...','push','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','1818655QDQoJG','off-line-icon_clip0_910_343','M0\x200H16V16H0z','defineProperty','none','replace','colorChannel1','1em','univerjs-icon\x20univerjs-icon-','univer-space-y-3','Failed\x20to\x20save\x20configuration','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20缺少\x20API\x20密钥','41036QvrztT','MCP\x20Connected','NETWORK_ERROR','_dialogService','MCP\x20Connection\x20Failed','点击配置\x20MCP','url(#$1'];_0x5e7e=function(){return _0x3a17b8;};return _0x5e7e();}var nn={'tag':_0x13b83e(0x2ef),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x13b83e(0x28e),'viewBox':'0\x200\x2016\x2016','width':_0x13b83e(0x291),'height':_0x13b83e(0x291)},'children':[{'tag':'g','attrs':{'clipPath':_0x13b83e(0x302)},'children':[{'tag':'path','attrs':{'stroke':_0x13b83e(0x21f),'d':'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','strokeLinecap':_0x13b83e(0x1d7),'strokeLinejoin':_0x13b83e(0x1d7),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x13b83e(0x2ff),'attrs':{'id':_0x13b83e(0x28b)},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'fill':_0x13b83e(0x1cb),'d':_0x13b83e(0x28c)}}]}]}],'defIds':[_0x13b83e(0x28b)]},ge=_0x101d46(function(_0x5d93c6,_0xcffe96){var _0x423334=_0x13b83e;return _0x49f39f(b,Object[_0x423334(0x1dd)]({},_0x5d93c6,{'id':'off-line-icon','ref':_0xcffe96,'icon':nn}));});ge[_0x13b83e(0x206)]=_0x13b83e(0x238);var rn={'tag':'svg','attrs':{'xmlns':_0x13b83e(0x23d),'fill':_0x13b83e(0x28e),'viewBox':'0\x200\x2017\x2016','width':_0x13b83e(0x291),'height':_0x13b83e(0x291)},'children':[{'tag':'g','attrs':{'clipPath':_0x13b83e(0x207)},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'stroke':_0x13b83e(0x21f),'d':_0x13b83e(0x2b0),'strokeLinecap':_0x13b83e(0x1d7),'strokeLinejoin':_0x13b83e(0x1d7),'strokeWidth':1.2}}]},{'tag':_0x13b83e(0x236),'attrs':{},'children':[{'tag':_0x13b83e(0x2ff),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'fill':_0x13b83e(0x1cb),'d':_0x13b83e(0x28c),'transform':_0x13b83e(0x2f1)}}]}]}],'defIds':[_0x13b83e(0x2e7)]},fe=_0x101d46(function(_0xa64bef,_0x4fba38){var _0x122740=_0x13b83e;return _0x49f39f(b,Object['assign']({},_0xa64bef,{'id':_0x122740(0x241),'ref':_0x4fba38,'icon':rn}));});fe[_0x13b83e(0x206)]=_0x13b83e(0x30c);function tn(_0x1c4b94){var _0x5b3f13=_0x13b83e,_0x297daf,_0x116b01;const {mcpCoreConfig:_0xcd9e6a,onSave:_0x83d65a,loading:_0x24e600=!0x1,config:_0x5f14dc,connectionStatus$:_0x524372,connectionError$:_0x47639e,currentApiKey$:_0xc0742b,currentSessionId$:_0x1428ca}=_0x1c4b94,_0x326593=_0x342462(_0x48cdf0),_0x526e86=_0xf0ecad(_0x524372,_0x5b2853[_0x5b3f13(0x209)]),_0x12ebac=_0xf0ecad(_0x47639e,_0xffdbc4[_0x5b3f13(0x1e6)]),_0x52b649=_0xf0ecad(_0x1428ca,''),_0x26117e=_0xf0ecad(_0xc0742b,''),[_0x846e14,_0x1b3061]=_0xa49c44(_0x26117e||''),_0x2dc946=!0x0,_0x22aac9=_0x5f14dc[_0x5b3f13(0x22a)]&&_0xcd9e6a[_0x5b3f13(0x306)]&&(_0xcd9e6a['mcpServerUrl']['includes'](_0x5b3f13(0x2ce))||_0xcd9e6a['mcpServerUrl'][_0x5b3f13(0x303)](_0x5b3f13(0x2ad))),_0x1d1096=(_0x297daf=_0xcd9e6a[_0x5b3f13(0x306)])==null?void 0x0:_0x297daf[_0x5b3f13(0x303)](_0x5b3f13(0x2ce)),_0x16699a=(_0x116b01=_0xcd9e6a[_0x5b3f13(0x306)])==null?void 0x0:_0x116b01[_0x5b3f13(0x303)]('univer.ai'),_0x35f648=_0x1d1096?_0x5b3f13(0x1d5):_0x5b3f13(0x2dc),_0xcef80a=_0x5f14dc['showDeveloperTools']&&(_0x1d1096||_0x16699a),[_0x5374b5,_0x58254f]=_0xa49c44(!_0x846e14[_0x5b3f13(0x235)]()),_0x108cbe=(_0x267be2,_0x1a170d)=>{var _0x1260ef=_0x5b3f13;if(_0x1a170d===_0xffdbc4[_0x1260ef(0x31d)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x267be2){case _0x5b2853[_0x1260ef(0x1f6)]:return _0x1260ef(0x215);case _0x5b2853[_0x1260ef(0x1ec)]:case _0x5b2853['RETRYING']:return _0x1260ef(0x276);case _0x5b2853['FAILED']:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x1260ef(0x27e);}},_0x1b2e77=(_0x324117,_0x5618da)=>{var _0x160e03=_0x5b3f13;if(_0x5618da===_0xffdbc4[_0x160e03(0x31d)])return _0x160e03(0x2d8);switch(_0x324117){case _0x5b2853[_0x160e03(0x1f6)]:return'univer-bg-green-500';case _0x5b2853[_0x160e03(0x1ec)]:case _0x5b2853[_0x160e03(0x2a1)]:return _0x160e03(0x2e9);case _0x5b2853['FAILED']:return _0x160e03(0x2d8);default:return _0x160e03(0x248);}},_0x54bc3d=_0x9bfd35=>{var _0xb964a1=_0x5b3f13;switch(_0x9bfd35){case _0x5b2853[_0xb964a1(0x1f6)]:return _0x326593['t'](_0xb964a1(0x23e));case _0x5b2853[_0xb964a1(0x1ec)]:return _0x326593['t']('mcpConfig.connectionStatus.connecting');case _0x5b2853[_0xb964a1(0x234)]:return _0x326593['t'](_0xb964a1(0x2a2));case _0x5b2853[_0xb964a1(0x2a1)]:return _0x326593['t'](_0xb964a1(0x282));default:return _0x326593['t'](_0xb964a1(0x1d6));}},_0x584efc=_0x11aeb1=>{var _0x3c48a9=_0x5b3f13;switch(_0x11aeb1){case _0xffdbc4['INVALID_API_KEY']:return _0x326593['t'](_0x3c48a9(0x2bf));case _0xffdbc4[_0x3c48a9(0x250)]:return _0x326593['t'](_0x3c48a9(0x2d2));case _0xffdbc4[_0x3c48a9(0x299)]:return _0x326593['t'](_0x3c48a9(0x273));case _0xffdbc4[_0x3c48a9(0x25d)]:return _0x326593['t'](_0x3c48a9(0x2ac));default:return'';}},_0x49bbf7=_0x375bea(()=>{var _0x3378de=_0x5b3f13;const _0x7fe084={..._0xcd9e6a,'apiKey':_0x846e14[_0x3378de(0x235)](),'enableAuth':_0x2dc946};_0x83d65a(_0x7fe084);},[_0xcd9e6a,_0x846e14,_0x2dc946,_0x83d65a]),_0x44f85c=_0x846e14[_0x5b3f13(0x235)]()[_0x5b3f13(0x2f5)]>0x0;return _0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x272),'children':[_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x1c1),'children':_0x55f79c(_0x5b3f13(0x2fa),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x240),'children':_0x45624b('span',{'className':'univer-text-white','children':'⚙'})}),_0x45624b(_0x5b3f13(0x2fa),{'children':_0x45624b('p',{'className':_0x5b3f13(0x1d9),'children':_0x326593['t'](_0x5b3f13(0x223))})})]})}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x314),'children':[_0x45624b('div',{'className':_0x5b3f13(0x258)+_0x108cbe(_0x526e86,_0x12ebac)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x55f79c(_0x5b3f13(0x2fa),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x45624b(_0x5b3f13(0x2fa),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1b2e77(_0x526e86,_0x12ebac)+_0x5b3f13(0x1f3)}),_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x2e5),'children':_0x54bc3d(_0x526e86)})]})}),_0x12ebac!==_0xffdbc4[_0x5b3f13(0x1e6)]&&(_0x526e86===_0x5b2853[_0x5b3f13(0x234)]||_0x12ebac===_0xffdbc4[_0x5b3f13(0x31d)])&&_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2ab),'children':_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x1e7),'children':[_0x45624b(_0x5b3f13(0x2f4),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x45624b('p',{'className':_0x5b3f13(0x2bb),'children':_0x584efc(_0x12ebac)})]})})]}),_0x45624b(_0x5b3f13(0x2fa),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x55f79c('div',{'className':_0x5b3f13(0x24e),'children':[_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2d9),'children':[_0x55f79c(_0x5b3f13(0x301),{'className':_0x5b3f13(0x289),'children':[_0x45624b(_0x5b3f13(0x2f4),{'children':'🔑'}),'\x20',_0x326593['t'](_0x5b3f13(0x252)),_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x255),'children':'*'}),_0x22aac9&&_0x45624b('a',{'href':_0x5b3f13(0x2c5),'onClick':()=>_0x58254f(!0x0),'className':_0x5b3f13(0x2ec),'title':_0x326593['t'](_0x5b3f13(0x30a)),'children':_0x45624b(de,{})})]}),_0x45624b(_0x350112,{'type':_0x5b3f13(0x232),'placeholder':_0x326593['t'](_0x5b3f13(0x2b6)),'value':_0x846e14,'onChange':_0x1b3061,'disabled':_0x24e600,'autoComplete':_0x5b3f13(0x2fe)}),_0x45624b('p',{'className':_0x5b3f13(0x322),'children':_0x326593['t'](_0x5b3f13(0x308))})]}),_0x22aac9&&_0x5374b5&&_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x228),'children':[_0x45624b('a',{'href':_0x5b3f13(0x2c5),'onClick':()=>_0x58254f(!0x1),'className':_0x5b3f13(0x1ff),'title':_0x5b3f13(0x24f),'children':_0x45624b(ve,{})}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2df),'children':[_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x21a),'children':_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x220),'children':'🚀'})}),_0x55f79c('div',{'className':'univer-flex-1','children':[_0x45624b('h4',{'className':_0x5b3f13(0x1d1),'children':_0x326593['t'](_0x5b3f13(0x30a))}),_0x45624b('p',{'className':_0x5b3f13(0x279),'children':_0x326593['t'](_0x5b3f13(0x222))}),_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x307),'children':_0xcef80a&&_0x55f79c('a',{'href':_0x35f648,'target':_0x5b3f13(0x31a),'rel':'noopener\x20noreferrer','className':_0x5b3f13(0x2e3),'children':[_0x45624b(_0x5b3f13(0x2f4),{'children':'🤖'}),_0x326593['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x2e1),'children':'↗'})]})}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2f7),'children':['✨','\x20',_0x326593['t'](_0x5b3f13(0x1cc))]})]})]})]}),_0x5f14dc[_0x5b3f13(0x22a)]&&_0x55f79c('div',{'className':_0x5b3f13(0x1c4),'children':[_0x55f79c('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x45624b(_0x5b3f13(0x2f4),{'children':'🔗'}),'\x20',_0x326593['t'](_0x5b3f13(0x2f8))]}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x229),'children':[_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x293),'children':[_0x45624b('p',{'className':_0x5b3f13(0x2cf),'children':_0x326593['t']('mcpConfig.configInstructions')}),_0x55f79c('div',{'className':_0x5b3f13(0x2d9),'children':[_0x45624b('div',{'className':_0x5b3f13(0x233),'children':_0x326593['t'](_0x5b3f13(0x21d))}),_0x55f79c('div',{'className':_0x5b3f13(0x321),'children':[_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x210),'children':[_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x1c0),'children':'1'}),_0x326593['t'](_0x5b3f13(0x264))]}),_0x55f79c('div',{'className':_0x5b3f13(0x210),'children':[_0x45624b('span',{'className':_0x5b3f13(0x1c0),'children':'2'}),_0x326593['t'](_0x5b3f13(0x266))]}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x210),'children':[_0x45624b('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x326593['t']('mcpConfig.configStep3')]})]})]})]}),_0x55f79c('div',{'className':_0x5b3f13(0x2d9),'children':[_0x45624b('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5b3f13(0x1e1)}),_0x45624b(_0x5b3f13(0x2fa),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x45624b('pre',{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':_0x5b3f13(0x24b)+_0x52b649+_0x5b3f13(0x27d)+(_0x846e14||'<API_KEY>')+_0x5b3f13(0x1c8)})})]}),_0x55f79c(_0x5b3f13(0x2fa),{'className':'univer-space-y-3','children':[_0x45624b('div',{'className':_0x5b3f13(0x233),'children':_0x326593['t'](_0x5b3f13(0x320))}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2d9),'children':[_0x55f79c(_0x5b3f13(0x2fa),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x45624b('div',{'className':_0x5b3f13(0x1f4)}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x221),'children':[_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x257),'children':_0x5b3f13(0x25e)}),_0x45624b(_0x5b3f13(0x2fa),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x326593['t'](_0x5b3f13(0x2da))})]})]}),_0x55f79c('div',{'className':_0x5b3f13(0x205),'children':[_0x45624b('div',{'className':_0x5b3f13(0x1f4)}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x221),'children':[_0x45624b('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x5b3f13(0x1cd)}),_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x322),'children':_0x326593['t'](_0x5b3f13(0x245))})]})]})]})]})]})]}),_0x45624b(_0xfa5316,{'onClick':_0x49bbf7,'disabled':!_0x44f85c||_0x24e600,'className':_0x5b3f13(0x259),'children':_0x24e600?_0x55f79c('span',{'className':_0x5b3f13(0x210),'children':[_0x45624b(_0x5b3f13(0x2f4),{'children':'⟲'}),_0x326593['t']('mcpConfig.saving')]}):_0x55f79c(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x210),'children':[_0x45624b(ue,{}),_0x326593['t'](_0x5b3f13(0x23f))]})}),_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x1d4),'children':_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x31b),'children':[_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x239),'children':'💡'}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2be),'children':[_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x1ed),'children':_0x5b3f13(0x2d0)}),_0x55f79c(_0x5b3f13(0x2fa),{'children':['•',_0x326593['t']('mcpConfig.note1')]}),_0x55f79c(_0x5b3f13(0x2fa),{'children':['•',_0x326593['t'](_0x5b3f13(0x2a7))]})]})]})})]})})]});}const L='mcp-ui.config',ie={'showDeveloperTools':!0x1};var on=Object[_0x13b83e(0x2a3)],sn=(_0x198129,_0x200656,_0x7c965f,_0x240734)=>{var _0xae817a=_0x13b83e;for(var _0x366356=_0x240734>0x1?void 0x0:_0x240734?on(_0x200656,_0x7c965f):_0x200656,_0x56c8e6=_0x198129[_0xae817a(0x2f5)]-0x1,_0x4f6a8f;_0x56c8e6>=0x0;_0x56c8e6--)(_0x4f6a8f=_0x198129[_0x56c8e6])&&(_0x366356=_0x4f6a8f(_0x366356)||_0x366356);return _0x366356;},f=(_0x2e41f4,_0xe69940)=>(_0x2395c9,_0x2f237e)=>_0xe69940(_0x2395c9,_0x2f237e,_0x2e41f4);const T='mcp.apiKey',R=_0x13b83e(0x313);let I=class extends _0x27f41f{constructor(_0x4a9f7c,_0x38dd02,_0x3bcdc0,_0x534e13,_0x4e0405,_0x6797fc,_0x5a4a81,_0x2adc44,_0x225db4,_0x23c818){var _0x459657=_0x13b83e;super(),x(this,_0x459657(0x1c9),new _0xec8ff7(!0x1)),x(this,_0x459657(0x216),new _0xec8ff7({})),x(this,_0x459657(0x23b),new _0xec8ff7({})),x(this,'_apiKey$',new _0xec8ff7('')),x(this,'_handleConfigSave',async _0x317807=>{var _0x253e37=_0x459657,_0x3526e8,_0x3a0846;this[_0x253e37(0x1c9)]['next'](!0x0);try{const _0x3b52fd=await this[_0x253e37(0x231)](_0x317807);if(!_0x3b52fd[_0x253e37(0x1e4)]){this['_messageService'][_0x253e37(0x1fa)]({'type':_0x2486d5[_0x253e37(0x1c5)],'content':_0x3b52fd['errorMessage']||this[_0x253e37(0x21b)]['t'](_0x253e37(0x1f9))});return;}_0x317807[_0x253e37(0x2d3)]?await this[_0x253e37(0x2b1)][_0x253e37(0x243)](T,_0x317807[_0x253e37(0x2d3)][_0x253e37(0x235)]()):await this[_0x253e37(0x2b1)]['removeItem'](T),this[_0x253e37(0x1e0)][_0x253e37(0x226)](((_0x3526e8=_0x317807[_0x253e37(0x2d3)])==null?void 0x0:_0x3526e8['trim']())||''),this[_0x253e37(0x1f5)][_0x253e37(0x1c6)]({'Authorization':'Bearer\x20'+((_0x3a0846=_0x317807[_0x253e37(0x2d3)])==null?void 0x0:_0x3a0846[_0x253e37(0x235)]())}),this['_messageService'][_0x253e37(0x1fa)]({'type':_0x2486d5['Success'],'content':this[_0x253e37(0x21b)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x45d0e8=_0x253e37;this['_dialogService'][_0x45d0e8(0x2a0)](R);},0x320);}catch(_0x815b72){this[_0x253e37(0x1db)][_0x253e37(0x1cf)](_0x253e37(0x27c),_0x815b72),this[_0x253e37(0x281)]['show']({'type':_0x2486d5[_0x253e37(0x1c5)],'content':this['_localeService']['t']('mcpConfig.configError')});}finally{this[_0x253e37(0x1c9)]['next'](!0x1);}}),(this[_0x459657(0x219)]=_0x4a9f7c,this['_uiPartsService']=_0x38dd02,this[_0x459657(0x249)]=_0x3bcdc0,this[_0x459657(0x2b1)]=_0x534e13,this[_0x459657(0x29a)]=_0x4e0405,this[_0x459657(0x281)]=_0x6797fc,this[_0x459657(0x311)]=_0x5a4a81,this['_localeService']=_0x2adc44,this['_logService']=_0x225db4,this['_mcpConnectionController']=_0x23c818,this[_0x459657(0x319)](),this[_0x459657(0x2f0)](),this[_0x459657(0x2e4)]());}[_0x13b83e(0x280)](){var _0x344536=_0x13b83e;this[_0x344536(0x29a)][_0x344536(0x1ee)]({'id':R,'title':{'title':this[_0x344536(0x21b)]['t']('mcpConfig.title')},'children':{'label':_0x344536(0x283)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x2fda1d=_0x344536;this[_0x2fda1d(0x29a)][_0x2fda1d(0x2a0)](R);}});}[_0x13b83e(0x271)](){var _0x20bece=_0x13b83e;return this[_0x20bece(0x216)]['value'];}['_registerComponent'](){var _0x473f2a=_0x13b83e;this[_0x473f2a(0x2b3)](this[_0x473f2a(0x311)][_0x473f2a(0x25a)](_0x473f2a(0x283),this[_0x473f2a(0x2e8)]()));}['_createConfigPanelComponent'](){var _0x52a325=_0x13b83e;return _0x32a723(()=>{var _0x458382=_0x2c17,_0x31fccd,_0x13048b,_0x45df27;return _0x45624b(tn,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x458382(0x216)][_0x458382(0x2c1)],'currentApiKey$':this[_0x458382(0x1e0)],'onSave':this['_handleConfigSave'],'loading':this[_0x458382(0x1c9)][_0x458382(0x2c1)],'connectionStatus$':(_0x31fccd=this['_mcpConnectionController'])==null?void 0x0:_0x31fccd[_0x458382(0x1fe)],'connectionError$':(_0x13048b=this[_0x458382(0x1f5)])==null?void 0x0:_0x13048b[_0x458382(0x20b)],'currentSessionId$':(_0x45df27=this['_mcpConnectionController'])==null?void 0x0:_0x45df27['sessionId$']});},this[_0x52a325(0x219)]);}[_0x13b83e(0x319)](){var _0x4e1a1a=_0x13b83e;this[_0x4e1a1a(0x2b3)](this['_configService'][_0x4e1a1a(0x200)](_0x17ce20)[_0x4e1a1a(0x2fc)](_0x39e1b2=>{var _0x4228ce=_0x4e1a1a;this['_mcpCoreConfig$'][_0x4228ce(0x226)](_0x39e1b2||{});}));const _0x37a030=this[_0x4e1a1a(0x249)]['getConfig'](_0x17ce20);this[_0x4e1a1a(0x216)]['next'](_0x37a030||{}),this[_0x4e1a1a(0x2b3)](this['_configService'][_0x4e1a1a(0x200)](L)[_0x4e1a1a(0x2fc)](_0x3fb9fc=>{var _0x7bdc72=_0x4e1a1a;this[_0x7bdc72(0x23b)]['next'](_0x3fb9fc||{});}));const _0x44ec36=this[_0x4e1a1a(0x249)][_0x4e1a1a(0x1ca)](L);this[_0x4e1a1a(0x23b)]['next'](_0x44ec36||{});}async[_0x13b83e(0x2f0)](){var _0xb87a7f=_0x13b83e;const _0x3d57ef=await this[_0xb87a7f(0x2b1)][_0xb87a7f(0x2f3)](T);_0x3d57ef&&(this[_0xb87a7f(0x1f5)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x3d57ef}),this[_0xb87a7f(0x1e0)][_0xb87a7f(0x226)](_0x3d57ef));}async[_0x13b83e(0x231)](_0x3d8417){var _0x3e1ee0=_0x13b83e;if(!_0x3d8417[_0x3e1ee0(0x2d3)]||_0x3d8417[_0x3e1ee0(0x2d3)]['trim']()[_0x3e1ee0(0x2f5)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3e1ee0(0x21b)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3d8417[_0x3e1ee0(0x2d3)][_0x3e1ee0(0x235)]()[_0x3e1ee0(0x2f5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3e1ee0(0x21b)]['t'](_0x3e1ee0(0x21e))};try{const _0x2aa5d4=await this[_0x3e1ee0(0x219)][_0x3e1ee0(0x1d8)](_0x530fb2)[_0x3e1ee0(0x2f9)](_0x3d8417[_0x3e1ee0(0x2d3)][_0x3e1ee0(0x235)]());return _0x2aa5d4[_0x3e1ee0(0x1e4)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2aa5d4[_0x3e1ee0(0x1cf)]||this['_localeService']['t'](_0x3e1ee0(0x2c3))};}catch(_0x3c81b8){return console[_0x3e1ee0(0x317)](_0x3e1ee0(0x1c2),_0x3c81b8),{'isValid':!0x0};}}};I=sn([f(0x0,_0x31ebf0(_0xe617fa)),f(0x1,_0x352db5),f(0x2,_0x123bf2),f(0x3,_0x133dba),f(0x4,_0x15ecf3),f(0x5,_0x1e2bf2),f(0x6,_0x31ebf0(_0x20508d)),f(0x7,_0x31ebf0(_0x48cdf0)),f(0x8,_0x55d68a),f(0x9,_0x31ebf0(_0x530fb2))],I);const B={'id':_0x13b83e(0x253),'type':_0x42867f[_0x13b83e(0x254)],'handler':async(_0x3a14da,_0x38b4a6)=>(_0x3a14da[_0x13b83e(0x1d8)](I)[_0x13b83e(0x280)](),!0x0)};function pe(_0x5ecc7e,_0x133344){var _0x12fc1f=_0x13b83e;switch(_0x5ecc7e){case _0x5b2853[_0x12fc1f(0x209)]:return'mcpStatus.disconnected';case _0x5b2853[_0x12fc1f(0x1ec)]:return'mcpStatus.connecting';case _0x5b2853[_0x12fc1f(0x1f6)]:return'mcpStatus.connected';case _0x5b2853[_0x12fc1f(0x234)]:switch(_0x133344){case _0xffdbc4['INVALID_API_KEY']:return _0x12fc1f(0x26b);case _0xffdbc4[_0x12fc1f(0x250)]:return _0x12fc1f(0x2d1);case _0xffdbc4[_0x12fc1f(0x299)]:return'mcpStatus.networkError';case _0xffdbc4[_0x12fc1f(0x25d)]:return'mcpStatus.maxRetriesExceeded';default:return _0x12fc1f(0x251);}case _0x5b2853[_0x12fc1f(0x2a1)]:return'mcpStatus.retrying';default:return _0x12fc1f(0x325);}}function cn(_0x21cd17,_0x18395b,_0x282c53){var _0x14d8e9=_0x13b83e;const _0x4c4528=pe(_0x21cd17,_0x18395b),_0x11846e=_0x282c53['t'](_0x4c4528);return _0x21cd17===_0x5b2853[_0x14d8e9(0x209)]&&_0x18395b===_0xffdbc4[_0x14d8e9(0x31d)]?_0x11846e+'\x20-\x20'+_0x282c53['t'](_0x14d8e9(0x21c)):_0x21cd17===_0x5b2853[_0x14d8e9(0x1f6)]?''+_0x11846e:_0x21cd17===_0x5b2853[_0x14d8e9(0x209)]||_0x21cd17===_0x5b2853[_0x14d8e9(0x234)]?_0x11846e+_0x14d8e9(0x269)+_0x282c53['t'](_0x14d8e9(0x318)):_0x11846e;}function an(_0x5b4abe){var _0x1dfeb4=_0x13b83e;switch(_0x5b4abe){case _0x5b2853[_0x1dfeb4(0x1f6)]:return _0x1dfeb4(0x275);case _0x5b2853[_0x1dfeb4(0x1ec)]:case _0x5b2853[_0x1dfeb4(0x2a1)]:return'univer-text-yellow-500';case _0x5b2853['FAILED']:case _0x5b2853[_0x1dfeb4(0x209)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function ln(_0x316fb2){var _0x529826=_0x13b83e;const {status$:_0x25ec34,error$:_0x11691c,onConfigure:_0x27bd31}=_0x316fb2,_0x24dd5f=_0xf0ecad(_0x25ec34,_0x5b2853[_0x529826(0x209)]),_0x52521e=_0xf0ecad(_0x11691c,_0xffdbc4[_0x529826(0x1e6)]),_0x58d241=_0x342462(_0x48cdf0),_0x2c9363=_0x24dd5f===_0x5b2853[_0x529826(0x1f6)],_0x5c2d1f=_0x24dd5f===_0x5b2853[_0x529826(0x1ec)]||_0x24dd5f===_0x5b2853['RETRYING'],_0x388798=_0x58d241['t'](pe(_0x24dd5f,_0x52521e)),_0x1a6915=cn(_0x24dd5f,_0x52521e,_0x58d241),_0x121d6d=an(_0x24dd5f),_0x90fcc5=_0x2c9363?_0x45624b(fe,{}):_0x45624b(ge,{}),_0x5c4189=_0x375bea(()=>{_0x27bd31&&_0x27bd31();},[_0x2c9363,_0x5c2d1f,_0x27bd31]);function _0x4435b2(){var _0x17abbd=_0x529826;return _0x55f79c(_0x17abbd(0x2fa),{'className':_0x4afb8d(_0x17abbd(0x265),_0x27bd31&&_0x17abbd(0x2ee)),'onClick':_0x27bd31?_0x5c4189:void 0x0,'children':[_0x45624b(_0x17abbd(0x2fa),{'className':_0x4afb8d('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x121d6d),'children':_0x90fcc5}),_0x45624b(_0x17abbd(0x2fa),{'className':_0x17abbd(0x274),'children':_0x388798})]});}return _0x45624b(_0x4c3829,{'title':_0x1a6915,'placement':_0x529826(0x2dd),'children':_0x4435b2()});}var un=Object[_0x13b83e(0x2a3)],vn=(_0xbe61e8,_0x3845f0,_0x39ca6e,_0x1e93c6)=>{var _0xab5a46=_0x13b83e;for(var _0x1b05c3=_0x1e93c6>0x1?void 0x0:_0x1e93c6?un(_0x3845f0,_0x39ca6e):_0x3845f0,_0xa03d0d=_0xbe61e8[_0xab5a46(0x2f5)]-0x1,_0x20909b;_0xa03d0d>=0x0;_0xa03d0d--)(_0x20909b=_0xbe61e8[_0xa03d0d])&&(_0x1b05c3=_0x20909b(_0x1b05c3)||_0x1b05c3);return _0x1b05c3;},j=(_0x478d41,_0x2cf87a)=>(_0x1e36c3,_0x72549c)=>_0x2cf87a(_0x1e36c3,_0x72549c,_0x478d41);function _0x2c17(_0x290098,_0x489678){var _0x5e7eb1=_0x5e7e();return _0x2c17=function(_0x2c17fa,_0x56f6cb){_0x2c17fa=_0x2c17fa-0x1c0;var _0x4efa2c=_0x5e7eb1[_0x2c17fa];return _0x4efa2c;},_0x2c17(_0x290098,_0x489678);}let A=class extends _0x27f41f{constructor(_0x5a167a,_0x538cdc,_0x1beb13){var _0x14a2d3=_0x13b83e;super(),this[_0x14a2d3(0x219)]=_0x5a167a,this[_0x14a2d3(0x1d2)]=_0x538cdc,this[_0x14a2d3(0x2f2)]=_0x1beb13,this['_connectionController']['enableAutoConnect']=!0x1,this[_0x14a2d3(0x1d0)]();}[_0x13b83e(0x1d0)](){var _0x3d5be4=_0x13b83e;this[_0x3d5be4(0x2b3)](this[_0x3d5be4(0x2f2)][_0x3d5be4(0x25f)](_0x2a0d4f[_0x3d5be4(0x1df)],()=>_0x32a723(dn({'status$':this['_connectionController'][_0x3d5be4(0x1fe)],'error$':this['_connectionController'][_0x3d5be4(0x20b)],'onConfigure':()=>this['_handleConfigure']()}),this[_0x3d5be4(0x219)])));}[_0x13b83e(0x2a4)](){var _0xeec6bc=_0x13b83e;this['_injector'][_0xeec6bc(0x1d8)](I)[_0xeec6bc(0x280)]();}};A=vn([j(0x0,_0x31ebf0(_0xe617fa)),j(0x1,_0x31ebf0(_0x530fb2)),j(0x2,_0x352db5)],A);function dn(_0x53ecc1){const {status$:_0x8dd863,error$:_0x18e2ec,onConfigure:_0x51ad3f}=_0x53ecc1;return function(){return _0x45624b(ln,{'status$':_0x8dd863,'error$':_0x18e2ec,'onConfigure':_0x51ad3f});};}function gn(_0x167342){var _0x46edea=_0x13b83e;return{'id':B['id'],'type':_0x5a7c3f[_0x46edea(0x300)],'icon':'MenuIcon','title':_0x46edea(0x2c7),'tooltip':_0x46edea(0x2c7)};}const fn={[_0xb1125a[_0x13b83e(0x2b5)]]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x13b83e(0x2a3)],mn=(_0x5cd130,_0x25dcb0,_0x26acc9,_0x16e463)=>{var _0x43fa32=_0x13b83e;for(var _0x1a26fc=_0x16e463>0x1?void 0x0:_0x16e463?pn(_0x25dcb0,_0x26acc9):_0x25dcb0,_0x39e333=_0x5cd130[_0x43fa32(0x2f5)]-0x1,_0x1397ab;_0x39e333>=0x0;_0x39e333--)(_0x1397ab=_0x5cd130[_0x39e333])&&(_0x1a26fc=_0x1397ab(_0x1a26fc)||_0x1a26fc);return _0x1a26fc;},re=(_0x2cbe39,_0x318930)=>(_0x1cb6aa,_0x1e8dd5)=>_0x318930(_0x1cb6aa,_0x1e8dd5,_0x2cbe39);let M=class extends _0x27f41f{constructor(_0x3036cf,_0x38d71e){var _0x4e37ad=_0x13b83e;super(),this[_0x4e37ad(0x2a8)]=_0x3036cf,this[_0x4e37ad(0x2ba)]=_0x38d71e,this[_0x4e37ad(0x1f2)](),this['_initializeMenus']();}[_0x13b83e(0x1f2)](){var _0x2b23ec=_0x13b83e;[B][_0x2b23ec(0x1f0)](_0x3811a7=>{var _0x115924=_0x2b23ec;this[_0x115924(0x2b3)](this[_0x115924(0x2a8)][_0x115924(0x2b8)](_0x3811a7));});}[_0x13b83e(0x315)](){var _0x42ebb8=_0x13b83e;this[_0x42ebb8(0x2ba)]['mergeMenu'](fn);}};M=mn([re(0x0,_0x5a1004),re(0x1,_0x25215d)],M);const On={'mcpStatus':{'disconnected':_0x13b83e(0x2ea),'connecting':_0x13b83e(0x287),'connected':_0x13b83e(0x298),'failed':_0x13b83e(0x29b),'retrying':_0x13b83e(0x278),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x13b83e(0x2c6),'invalidApiKey':_0x13b83e(0x242),'sessionOccupied':_0x13b83e(0x230),'networkError':_0x13b83e(0x30d),'maxRetriesExceeded':_0x13b83e(0x30f),'clickToConnect':_0x13b83e(0x2aa),'clickToConfigure':_0x13b83e(0x244)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x13b83e(0x2d7),'apiKey':_0x13b83e(0x212),'apiKeyPlaceholder':_0x13b83e(0x1d3),'apiKeyHint':_0x13b83e(0x2ca),'enableAuth':_0x13b83e(0x262),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x13b83e(0x1e3),'mcpClientConfig':_0x13b83e(0x1e3),'configInstructions':_0x13b83e(0x27a),'configStepTitle':_0x13b83e(0x2b2),'configStep1':_0x13b83e(0x246),'configStep2':_0x13b83e(0x2fb),'configStep3':_0x13b83e(0x29e),'sessionId':_0x13b83e(0x26c),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x13b83e(0x2c9),'configParameters':_0x13b83e(0x2cd),'maxRetries':_0x13b83e(0x24c),'save':_0x13b83e(0x2ed),'saving':_0x13b83e(0x2e2),'note1':_0x13b83e(0x310),'note2':_0x13b83e(0x2bc),'configSaved':_0x13b83e(0x2c8),'configError':_0x13b83e(0x294),'apiApplyInfo':{'title':_0x13b83e(0x263),'description':_0x13b83e(0x2b7),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x13b83e(0x2c2)},'validation':{'apiKeyRequired':_0x13b83e(0x227),'apiKeyTooShort':_0x13b83e(0x247),'invalidConfig':_0x13b83e(0x22d),'invalidApiKey':_0x13b83e(0x1da)},'connectionStatus':{'disconnected':_0x13b83e(0x2db),'connecting':_0x13b83e(0x23c),'connected':_0x13b83e(0x31f),'failed':_0x13b83e(0x24a),'retrying':_0x13b83e(0x1e8)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x13b83e(0x218),'sessionOccupied':_0x13b83e(0x211),'networkError':_0x13b83e(0x2eb),'maxRetriesExceeded':_0x13b83e(0x2d4)}}},kn={'mcpStatus':{'disconnected':_0x13b83e(0x22e),'connecting':_0x13b83e(0x1fc),'connected':_0x13b83e(0x214),'failed':'MCP\x20连接失败','retrying':_0x13b83e(0x2f6),'unknown':'MCP\x20状态未知','missingApiKey':_0x13b83e(0x296),'invalidApiKey':_0x13b83e(0x1c7),'sessionOccupied':_0x13b83e(0x2b9),'networkError':_0x13b83e(0x2ae),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x13b83e(0x29c)},'mcpConfig':{'title':_0x13b83e(0x31c),'description':_0x13b83e(0x295),'apiKey':_0x13b83e(0x2a5),'apiKeyPlaceholder':_0x13b83e(0x23a),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x13b83e(0x213),'enableAuthHint':_0x13b83e(0x324),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x13b83e(0x1eb),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x13b83e(0x20a),'configStep1':_0x13b83e(0x26a),'configStep2':_0x13b83e(0x2c4),'configStep3':_0x13b83e(0x260),'sessionId':_0x13b83e(0x202),'sessionIdDescription':_0x13b83e(0x323),'authorizationDescription':_0x13b83e(0x217),'configParameters':_0x13b83e(0x2c0),'maxRetries':_0x13b83e(0x24d),'save':_0x13b83e(0x2b4),'saving':_0x13b83e(0x31e),'note1':_0x13b83e(0x1ef),'note2':_0x13b83e(0x203),'configSaved':_0x13b83e(0x1ea),'configError':_0x13b83e(0x1c3),'apiApplyInfo':{'title':_0x13b83e(0x267),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x13b83e(0x1e9)},'validation':{'apiKeyRequired':_0x13b83e(0x30b),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x13b83e(0x225),'invalidApiKey':_0x13b83e(0x270)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x13b83e(0x1de),'failed':_0x13b83e(0x2a6),'retrying':_0x13b83e(0x25c)},'connectionError':{'missingApiKey':_0x13b83e(0x2cb),'invalidApiKey':_0x13b83e(0x20c),'sessionOccupied':_0x13b83e(0x1f1),'networkError':_0x13b83e(0x286),'maxRetriesExceeded':_0x13b83e(0x285)}}};var hn=Object[_0x13b83e(0x28d)],Cn=Object[_0x13b83e(0x2a3)],yn=(_0x4554ab,_0x54bdc8,_0x30fca9)=>_0x54bdc8 in _0x4554ab?hn(_0x4554ab,_0x54bdc8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30fca9}):_0x4554ab[_0x54bdc8]=_0x30fca9,_n=(_0x113103,_0x30d391,_0xa13db4,_0x32f866)=>{var _0x1a9677=_0x13b83e;for(var _0x573314=_0x32f866>0x1?void 0x0:_0x32f866?Cn(_0x30d391,_0xa13db4):_0x30d391,_0x2ba992=_0x113103[_0x1a9677(0x2f5)]-0x1,_0x27995e;_0x2ba992>=0x0;_0x2ba992--)(_0x27995e=_0x113103[_0x2ba992])&&(_0x573314=_0x27995e(_0x573314)||_0x573314);return _0x573314;},E=(_0x57449e,_0x5a0a6c)=>(_0x58f8b7,_0x4b4c4a)=>_0x5a0a6c(_0x58f8b7,_0x4b4c4a,_0x57449e),xn=(_0x2e1e42,_0x236dca,_0x4a5f11)=>yn(_0x2e1e42,_0x236dca+'',_0x4a5f11);let U=class extends _0x55e620{constructor(_0x70d49=ie,_0x378160,_0x6c6a9b,_0x4c4b4f,_0x172de9,_0x23f241){var _0x314beb=_0x13b83e;super(),this[_0x314beb(0x1fd)]=_0x70d49,this[_0x314beb(0x219)]=_0x378160,this[_0x314beb(0x249)]=_0x6c6a9b,this[_0x314beb(0x2f2)]=_0x4c4b4f,this['_localStorageService']=_0x172de9,this[_0x314beb(0x21b)]=_0x23f241;const {..._0x2d1e8e}=_0x1e80dd({},ie,this['_config']);this[_0x314beb(0x249)][_0x314beb(0x2d6)](L,_0x2d1e8e);}async[_0x13b83e(0x2d5)](){var _0x211025=_0x13b83e;const _0x1b190b=[[A],[I],[M]];this[_0x211025(0x219)]['has'](_0x14571d)||_0x1b190b[_0x211025(0x288)]([_0x14571d,{'useClass':_0x1a839a}]),_0x1b190b[_0x211025(0x1f0)](_0x2a2326=>this[_0x211025(0x219)][_0x211025(0x224)](_0x2a2326)),this[_0x211025(0x219)][_0x211025(0x1d8)](A),this[_0x211025(0x219)][_0x211025(0x1d8)](I),this[_0x211025(0x219)][_0x211025(0x1d8)](M);}};xn(U,_0x13b83e(0x22f),'MCP_UI_PLUGIN'),U=_n([_0x13bb6e(_0x41ac27),E(0x1,_0x31ebf0(_0xe617fa)),E(0x2,_0x123bf2),E(0x3,_0x352db5),E(0x4,_0x133dba),E(0x5,_0x31ebf0(_0x48cdf0))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
@@ -1 +1 @@
1
- const _0x48e7df=_0x43c6;function _0x43c6(_0x18d380,_0x57289f){const _0xa43804=_0xa438();return _0x43c6=function(_0x43c64b,_0x53f7fd){_0x43c64b=_0x43c64b-0x183;let _0x4d460a=_0xa43804[_0x43c64b];return _0x4d460a;},_0x43c6(_0x18d380,_0x57289f);}(function(_0x33591c,_0x43fb94){const _0x44d81d=_0x43c6,_0x15917e=_0x33591c();while(!![]){try{const _0x2d3daa=-parseInt(_0x44d81d(0x1af))/0x1*(-parseInt(_0x44d81d(0x1ae))/0x2)+-parseInt(_0x44d81d(0x1b2))/0x3*(-parseInt(_0x44d81d(0x1a0))/0x4)+parseInt(_0x44d81d(0x19b))/0x5+parseInt(_0x44d81d(0x184))/0x6+-parseInt(_0x44d81d(0x197))/0x7*(parseInt(_0x44d81d(0x18b))/0x8)+-parseInt(_0x44d81d(0x188))/0x9*(-parseInt(_0x44d81d(0x1ad))/0xa)+-parseInt(_0x44d81d(0x1ab))/0xb;if(_0x2d3daa===_0x43fb94)break;else _0x15917e['push'](_0x15917e['shift']());}catch(_0x36fd41){_0x15917e['push'](_0x15917e['shift']());}}}(_0xa438,0x316be));const e={'mcpStatus':{'disconnected':_0x48e7df(0x192),'connecting':_0x48e7df(0x187),'connected':_0x48e7df(0x191),'failed':_0x48e7df(0x19e),'retrying':_0x48e7df(0x18a),'unknown':_0x48e7df(0x1a5),'missingApiKey':_0x48e7df(0x1a1),'invalidApiKey':_0x48e7df(0x19c),'sessionOccupied':_0x48e7df(0x1b0),'networkError':_0x48e7df(0x18c),'maxRetriesExceeded':_0x48e7df(0x1a4),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x48e7df(0x1b1)},'mcpConfig':{'title':_0x48e7df(0x195),'description':_0x48e7df(0x18e),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x48e7df(0x1a2),'apiKeyHint':_0x48e7df(0x1a9),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x48e7df(0x18f),'connectionInfo':'Connection\x20Information','serverEndpoint':'Server\x20Endpoint','sessionId':_0x48e7df(0x1a3),'maxRetries':'Max\x20Retries','save':_0x48e7df(0x19d),'saving':_0x48e7df(0x183),'note1':_0x48e7df(0x19a),'note2':_0x48e7df(0x193),'configSaved':_0x48e7df(0x18d),'configError':_0x48e7df(0x1b3),'apiApplyInfo':{'title':_0x48e7df(0x198),'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':_0x48e7df(0x185),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x48e7df(0x194),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x48e7df(0x1aa),'invalidApiKey':_0x48e7df(0x190)},'connectionStatus':{'disconnected':_0x48e7df(0x199),'connecting':_0x48e7df(0x186),'connected':_0x48e7df(0x189),'failed':'Connection\x20Failed','retrying':_0x48e7df(0x1ac)},'connectionError':{'missingApiKey':_0x48e7df(0x19f),'invalidApiKey':_0x48e7df(0x1a6),'sessionOccupied':_0x48e7df(0x196),'networkError':_0x48e7df(0x1a7),'maxRetriesExceeded':_0x48e7df(0x1a8)}}},n=e;export{n as default};function _0xa438(){const _0x30aa7f=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration','1313587eOSICO','Retrying...','10AZCqxO','88024YgRsHe','4GtTQHl','MCP:\x20Session\x20Occupied','Click\x20to\x20configure\x20MCP','341505XsvvNI','Failed\x20to\x20save\x20configuration','Saving...','1161522nSdLvB','Univer\x20AI\x20Console','Connecting...','MCP\x20Connecting...','961407bbFYYX','Connected','MCP\x20Retrying...','8VGNUqr','MCP:\x20Network\x20Error','Configuration\x20saved\x20successfully','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','MCP\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','2031729Tbcfjn','What\x20is\x20API\x20Key?','Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','109005frBEIq','MCP:\x20Invalid\x20API\x20Key','Save\x20Configuration','MCP\x20Connection\x20Failed','API\x20key\x20is\x20required\x20to\x20connect','4ueDItv','MCP:\x20API\x20Key\x20Missing','Enter\x20your\x20API\x20key','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Unknown\x20Status','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again'];_0xa438=function(){return _0x30aa7f;};return _0xa438();}
1
+ const _0x372f0b=_0x915b;(function(_0x389fd3,_0x3ddea7){const _0x3a7206=_0x915b,_0xb0578=_0x389fd3();while(!![]){try{const _0x3b8e16=parseInt(_0x3a7206(0x1a5))/0x1+-parseInt(_0x3a7206(0x19b))/0x2*(-parseInt(_0x3a7206(0x190))/0x3)+parseInt(_0x3a7206(0x19e))/0x4*(parseInt(_0x3a7206(0x199))/0x5)+parseInt(_0x3a7206(0x1af))/0x6*(parseInt(_0x3a7206(0x1a3))/0x7)+-parseInt(_0x3a7206(0x1a8))/0x8*(-parseInt(_0x3a7206(0x181))/0x9)+-parseInt(_0x3a7206(0x1b0))/0xa*(parseInt(_0x3a7206(0x1a2))/0xb)+-parseInt(_0x3a7206(0x18f))/0xc;if(_0x3b8e16===_0x3ddea7)break;else _0xb0578['push'](_0xb0578['shift']());}catch(_0x22ee76){_0xb0578['push'](_0xb0578['shift']());}}}(_0x2baf,0x7b714));function _0x2baf(){const _0x5e5cc3=['Connecting...','MCP\x20Client\x20Configuration','4917CqGfpV','2236535wbbNIg','Enter\x20your\x20API\x20key','180886LCCtva','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1392CdbEsj','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Saving...','Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key','12fcZYFH','6330gCPgRC','API\x20key\x20is\x20required','MCP\x20Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','21933rQRFnh','MCP\x20Retrying...','MCP:\x20Invalid\x20API\x20Key','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20API\x20Key\x20Missing','Invalid\x20configuration','Connected','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','18386892PDALOn','843ZMVLQn','Disconnected','Connection\x20Failed','MCP\x20Configuration','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','15845pDGdIF','API\x20key\x20is\x20required\x20to\x20connect','4552dLfFAr','Click\x20to\x20connect\x20MCP','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','552DbOFDp','Max\x20Retries'];_0x2baf=function(){return _0x5e5cc3;};return _0x2baf();}const e={'mcpStatus':{'disconnected':_0x372f0b(0x17e),'connecting':'MCP\x20Connecting...','connected':_0x372f0b(0x189),'failed':'MCP\x20Connection\x20Failed','retrying':_0x372f0b(0x182),'unknown':_0x372f0b(0x198),'missingApiKey':_0x372f0b(0x186),'invalidApiKey':_0x372f0b(0x183),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x372f0b(0x180),'maxRetriesExceeded':_0x372f0b(0x18c),'clickToConnect':_0x372f0b(0x19c),'clickToConfigure':_0x372f0b(0x197)},'mcpConfig':{'title':_0x372f0b(0x193),'description':_0x372f0b(0x1aa),'apiKey':_0x372f0b(0x1ae),'apiKeyPlaceholder':_0x372f0b(0x1a4),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x372f0b(0x17f),'connectionInfo':_0x372f0b(0x1a1),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x372f0b(0x1a7),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x372f0b(0x1ad),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x372f0b(0x195),'sessionId':_0x372f0b(0x184),'sessionIdDescription':_0x372f0b(0x18b),'authorizationDescription':_0x372f0b(0x196),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x372f0b(0x19f),'save':'Save\x20Configuration','saving':_0x372f0b(0x1ab),'note1':_0x372f0b(0x1a9),'note2':_0x372f0b(0x1a6),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x372f0b(0x18e),'univerAiLabel':_0x372f0b(0x194),'getStarted':_0x372f0b(0x18a)},'validation':{'apiKeyRequired':_0x372f0b(0x1b1),'apiKeyTooShort':_0x372f0b(0x18d),'invalidConfig':_0x372f0b(0x187),'invalidApiKey':_0x372f0b(0x185)},'connectionStatus':{'disconnected':_0x372f0b(0x191),'connecting':_0x372f0b(0x1a0),'connected':_0x372f0b(0x188),'failed':_0x372f0b(0x192),'retrying':_0x372f0b(0x1ac)},'connectionError':{'missingApiKey':_0x372f0b(0x19a),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x372f0b(0x19d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x915b(_0x400511,_0x561ae9){const _0x2baf04=_0x2baf();return _0x915b=function(_0x915b2e,_0x5c7044){_0x915b2e=_0x915b2e-0x17e;let _0x3851d1=_0x2baf04[_0x915b2e];return _0x3851d1;},_0x915b(_0x400511,_0x561ae9);}export{n as default};
@@ -1 +1 @@
1
- const _0x35d79c=_0x56ad;function _0x56ad(_0x118c8b,_0x55c21f){const _0x4644ed=_0x4644();return _0x56ad=function(_0x56ada2,_0x31c732){_0x56ada2=_0x56ada2-0x13f;let _0x52da08=_0x4644ed[_0x56ada2];return _0x52da08;},_0x56ad(_0x118c8b,_0x55c21f);}(function(_0x53366b,_0x4d075b){const _0x51f5c7=_0x56ad,_0x1109f2=_0x53366b();while(!![]){try{const _0x2b1e21=-parseInt(_0x51f5c7(0x143))/0x1*(-parseInt(_0x51f5c7(0x163))/0x2)+parseInt(_0x51f5c7(0x151))/0x3+parseInt(_0x51f5c7(0x15e))/0x4*(-parseInt(_0x51f5c7(0x141))/0x5)+parseInt(_0x51f5c7(0x148))/0x6*(-parseInt(_0x51f5c7(0x164))/0x7)+-parseInt(_0x51f5c7(0x150))/0x8+-parseInt(_0x51f5c7(0x166))/0x9+parseInt(_0x51f5c7(0x15d))/0xa;if(_0x2b1e21===_0x4d075b)break;else _0x1109f2['push'](_0x1109f2['shift']());}catch(_0x35a1a0){_0x1109f2['push'](_0x1109f2['shift']());}}}(_0x4644,0x68e05));const e={'mcpStatus':{'disconnected':_0x35d79c(0x144),'connecting':_0x35d79c(0x14d),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x35d79c(0x142),'missingApiKey':_0x35d79c(0x14e),'invalidApiKey':_0x35d79c(0x158),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x35d79c(0x13f),'clickToConnect':_0x35d79c(0x167),'clickToConfigure':_0x35d79c(0x157)},'mcpConfig':{'title':_0x35d79c(0x14b),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x35d79c(0x161),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x35d79c(0x15a),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x35d79c(0x168),'serverEndpoint':_0x35d79c(0x147),'sessionId':_0x35d79c(0x162),'maxRetries':_0x35d79c(0x165),'save':'Save\x20Configuration','saving':_0x35d79c(0x154),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x35d79c(0x153),'configError':_0x35d79c(0x15b),'apiApplyInfo':{'title':_0x35d79c(0x169),'description':_0x35d79c(0x156),'univerAiLabel':_0x35d79c(0x14a),'getStarted':_0x35d79c(0x145)},'validation':{'apiKeyRequired':_0x35d79c(0x146),'apiKeyTooShort':_0x35d79c(0x14f),'invalidConfig':_0x35d79c(0x160),'invalidApiKey':_0x35d79c(0x15c)},'connectionStatus':{'disconnected':_0x35d79c(0x15f),'connecting':_0x35d79c(0x159),'connected':'Connected','failed':_0x35d79c(0x155),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x35d79c(0x140),'invalidApiKey':_0x35d79c(0x14c),'sessionOccupied':_0x35d79c(0x152),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x35d79c(0x149)}}};export{e as default};function _0x4644(){const _0x5bbc78=['254UEetGh','4971169jNhwju','Max\x20Retries','1809828pAevnq','Click\x20to\x20connect\x20MCP','Connection\x20Information','What\x20is\x20API\x20Key?','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20is\x20required\x20to\x20connect','5FrDLCq','MCP\x20Unknown\x20Status','6028oafFqC','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','Server\x20Endpoint','6IpGIcR','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','MCP\x20Configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP\x20Connecting...','MCP:\x20API\x20Key\x20Missing','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','945720uEGNDg','715059VsZPfi','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','Saving...','Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','MCP:\x20Invalid\x20API\x20Key','Connecting...','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','11926210FwYWYA','2949932VLxZKG','Disconnected','Invalid\x20configuration','Enter\x20your\x20API\x20key','Session\x20ID'];_0x4644=function(){return _0x5bbc78;};return _0x4644();}
1
+ function _0x17f4(){const _0x3bad41=['Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Retrying...','2064000jshOpX','Univer\x20AI\x20Console','MCP\x20Unknown\x20Status','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connecting...','Disconnected','309965oPmGfc','Saving...','Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1090860PffwpP','Retrying...','MCP:\x20Session\x20Occupied','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20configuration','292672ChUQqN','3832188tRyWzA','Click\x20to\x20connect\x20MCP','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','MCP\x20Disconnected','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Invalid\x20API\x20Key','Configuration\x20Steps:','421118LQThiE','MCP\x20Configuration','Save\x20Configuration','7866257ltDFfb','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Client\x20Configuration','8SDslmB','API\x20Key','API\x20key\x20is\x20required\x20to\x20connect'];_0x17f4=function(){return _0x3bad41;};return _0x17f4();}const _0x47fb3f=_0x1603;(function(_0x2a5809,_0x45b509){const _0x3b5d59=_0x1603,_0x255ba4=_0x2a5809();while(!![]){try{const _0x5cb9d7=-parseInt(_0x3b5d59(0x170))/0x1+-parseInt(_0x3b5d59(0x166))/0x2+parseInt(_0x3b5d59(0x17b))/0x3+-parseInt(_0x3b5d59(0x191))/0x4+parseInt(_0x3b5d59(0x182))/0x5+-parseInt(_0x3b5d59(0x167))/0x6+parseInt(_0x3b5d59(0x173))/0x7*(parseInt(_0x3b5d59(0x176))/0x8);if(_0x5cb9d7===_0x45b509)break;else _0x255ba4['push'](_0x255ba4['shift']());}catch(_0x35832b){_0x255ba4['push'](_0x255ba4['shift']());}}}(_0x17f4,0x6067d));const e={'mcpStatus':{'disconnected':_0x47fb3f(0x16b),'connecting':_0x47fb3f(0x180),'connected':_0x47fb3f(0x18f),'failed':_0x47fb3f(0x18a),'retrying':_0x47fb3f(0x17a),'unknown':_0x47fb3f(0x17d),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x47fb3f(0x16e),'sessionOccupied':_0x47fb3f(0x160),'networkError':_0x47fb3f(0x18c),'maxRetriesExceeded':_0x47fb3f(0x16d),'clickToConnect':_0x47fb3f(0x168),'clickToConfigure':_0x47fb3f(0x189)},'mcpConfig':{'title':_0x47fb3f(0x171),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x47fb3f(0x177),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x47fb3f(0x179),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x47fb3f(0x164),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x47fb3f(0x175),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x47fb3f(0x16f),'configStep1':_0x47fb3f(0x161),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x47fb3f(0x186),'sessionIdDescription':_0x47fb3f(0x17f),'authorizationDescription':_0x47fb3f(0x18e),'configParameters':_0x47fb3f(0x169),'maxRetries':_0x47fb3f(0x18d),'save':_0x47fb3f(0x172),'saving':_0x47fb3f(0x183),'note1':_0x47fb3f(0x185),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x47fb3f(0x16a),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x47fb3f(0x18b),'description':_0x47fb3f(0x188),'univerAiLabel':_0x47fb3f(0x17c),'getStarted':_0x47fb3f(0x163)},'validation':{'apiKeyRequired':_0x47fb3f(0x162),'apiKeyTooShort':_0x47fb3f(0x174),'invalidConfig':_0x47fb3f(0x165),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x47fb3f(0x181),'connecting':_0x47fb3f(0x187),'connected':_0x47fb3f(0x17e),'failed':_0x47fb3f(0x184),'retrying':_0x47fb3f(0x192)},'connectionError':{'missingApiKey':_0x47fb3f(0x178),'invalidApiKey':_0x47fb3f(0x16c),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x47fb3f(0x190),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x1603(_0x28c312,_0x18eef1){const _0x17f431=_0x17f4();return _0x1603=function(_0x16032f,_0xc4d764){_0x16032f=_0x16032f-0x160;let _0x36c98d=_0x17f431[_0x16032f];return _0x36c98d;},_0x1603(_0x28c312,_0x18eef1);}export{e as default};
@@ -1 +1 @@
1
- const _0x1458da=_0x4eb3;function _0x573b(){const _0x2c1134=['Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Session\x20Occupied','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','10TmUClM','Retrying...','API\x20Key','6687Ipzfbm','Max\x20Retries','1081344QLmnAa','Disconnected','Configuration\x20saved\x20successfully','93NWdIUb','MCP:\x20API\x20Key\x20Missing','Univer\x20AI\x20Console','1188084JVASBv','242rOHmbd','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session\x20ID','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','MCP:\x20Network\x20Error','1114120nSgnXt','506133DbTTwI','Failed\x20to\x20save\x20configuration','1076805OnqGMR','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','MCP:\x20Invalid\x20API\x20Key','122zBHGJp','Connected','80508YzxVBm','Server\x20Endpoint','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connected','Click\x20to\x20connect\x20MCP','18jGaBkN','MCP\x20Configuration','MCP\x20Disconnected','Connection\x20Failed','Save\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','Enable\x20Authentication','API\x20key\x20is\x20required\x20to\x20connect','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x573b=function(){return _0x2c1134;};return _0x573b();}function _0x4eb3(_0x35199e,_0x335084){const _0x573b6d=_0x573b();return _0x4eb3=function(_0x4eb348,_0x272e44){_0x4eb348=_0x4eb348-0xd1;let _0x5e0754=_0x573b6d[_0x4eb348];return _0x5e0754;},_0x4eb3(_0x35199e,_0x335084);}(function(_0x5652b3,_0x302229){const _0x3dbbed=_0x4eb3,_0x234f18=_0x5652b3();while(!![]){try{const _0x54e453=-parseInt(_0x3dbbed(0xf0))/0x1*(parseInt(_0x3dbbed(0xd6))/0x2)+parseInt(_0x3dbbed(0xf5))/0x3*(-parseInt(_0x3dbbed(0xd8))/0x4)+parseInt(_0x3dbbed(0xd1))/0x5*(-parseInt(_0x3dbbed(0xde))/0x6)+-parseInt(_0x3dbbed(0xff))/0x7+parseInt(_0x3dbbed(0xf2))/0x8+-parseInt(_0x3dbbed(0x100))/0x9*(parseInt(_0x3dbbed(0xed))/0xa)+-parseInt(_0x3dbbed(0xf9))/0xb*(-parseInt(_0x3dbbed(0xf8))/0xc);if(_0x54e453===_0x302229)break;else _0x234f18['push'](_0x234f18['shift']());}catch(_0x1981e5){_0x234f18['push'](_0x234f18['shift']());}}}(_0x573b,0x6689e));const e={'mcpStatus':{'disconnected':_0x1458da(0xe0),'connecting':'MCP\x20Connecting...','connected':_0x1458da(0xdc),'failed':_0x1458da(0xfd),'retrying':'MCP\x20Retrying...','unknown':_0x1458da(0xd3),'missingApiKey':_0x1458da(0xf6),'invalidApiKey':_0x1458da(0xd5),'sessionOccupied':_0x1458da(0xea),'networkError':_0x1458da(0xfe),'maxRetriesExceeded':_0x1458da(0xdb),'clickToConnect':_0x1458da(0xdd),'clickToConfigure':_0x1458da(0xd2)},'mcpConfig':{'title':_0x1458da(0xdf),'description':_0x1458da(0xfa),'apiKey':_0x1458da(0xef),'apiKeyPlaceholder':_0x1458da(0xe7),'apiKeyHint':_0x1458da(0xe3),'enableAuth':_0x1458da(0xe5),'enableAuthHint':_0x1458da(0xe9),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x1458da(0xd9),'sessionId':_0x1458da(0xfb),'maxRetries':_0x1458da(0xf1),'save':_0x1458da(0xe2),'saving':_0x1458da(0xe4),'note1':_0x1458da(0xda),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1458da(0xf4),'configError':_0x1458da(0x101),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x1458da(0xf7),'getStarted':_0x1458da(0xe8)},'validation':{'apiKeyRequired':_0x1458da(0xd4),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1458da(0xf3),'connecting':_0x1458da(0xeb),'connected':_0x1458da(0xd7),'failed':_0x1458da(0xe1),'retrying':_0x1458da(0xee)},'connectionError':{'missingApiKey':_0x1458da(0xe6),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x1458da(0xfc),'networkError':_0x1458da(0xec),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ const _0x260c9a=_0x9507;function _0x9507(_0xf36de5,_0x5eed80){const _0x15de2e=_0x15de();return _0x9507=function(_0x9507f8,_0x3d0f18){_0x9507f8=_0x9507f8-0x97;let _0x476e45=_0x15de2e[_0x9507f8];return _0x476e45;},_0x9507(_0xf36de5,_0x5eed80);}(function(_0x146165,_0x3424c4){const _0x5886d5=_0x9507,_0x4aa16c=_0x146165();while(!![]){try{const _0xcb4590=parseInt(_0x5886d5(0x98))/0x1+parseInt(_0x5886d5(0xbd))/0x2*(-parseInt(_0x5886d5(0xc7))/0x3)+parseInt(_0x5886d5(0xb2))/0x4+-parseInt(_0x5886d5(0x9f))/0x5+parseInt(_0x5886d5(0xbb))/0x6+parseInt(_0x5886d5(0xc8))/0x7+parseInt(_0x5886d5(0xc6))/0x8*(-parseInt(_0x5886d5(0xb0))/0x9);if(_0xcb4590===_0x3424c4)break;else _0x4aa16c['push'](_0x4aa16c['shift']());}catch(_0x4a47ae){_0x4aa16c['push'](_0x4aa16c['shift']());}}}(_0x15de,0xa7b61));const e={'mcpStatus':{'disconnected':_0x260c9a(0xa3),'connecting':_0x260c9a(0xc0),'connected':_0x260c9a(0xa9),'failed':'MCP\x20Connection\x20Failed','retrying':_0x260c9a(0xa8),'unknown':_0x260c9a(0xb4),'missingApiKey':_0x260c9a(0xbf),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x260c9a(0xa1),'networkError':_0x260c9a(0xb6),'maxRetriesExceeded':_0x260c9a(0x9e),'clickToConnect':_0x260c9a(0x9b),'clickToConfigure':_0x260c9a(0xae)},'mcpConfig':{'title':_0x260c9a(0x9d),'description':_0x260c9a(0xad),'apiKey':_0x260c9a(0xa6),'apiKeyPlaceholder':_0x260c9a(0xac),'apiKeyHint':_0x260c9a(0xc5),'enableAuth':_0x260c9a(0x9c),'enableAuthHint':_0x260c9a(0xc3),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x260c9a(0xcb),'configInstructions':_0x260c9a(0xaa),'configStepTitle':_0x260c9a(0xa2),'configStep1':_0x260c9a(0xc2),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x260c9a(0x9a),'sessionId':_0x260c9a(0xab),'sessionIdDescription':_0x260c9a(0xbc),'authorizationDescription':_0x260c9a(0xb5),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x260c9a(0xb3),'saving':_0x260c9a(0xca),'note1':_0x260c9a(0xb1),'note2':_0x260c9a(0xb7),'configSaved':_0x260c9a(0xb9),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x260c9a(0xbe),'description':_0x260c9a(0xc4),'univerAiLabel':_0x260c9a(0xa0),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x260c9a(0xa4),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x260c9a(0xc9)},'connectionStatus':{'disconnected':_0x260c9a(0xa5),'connecting':_0x260c9a(0x99),'connected':_0x260c9a(0x97),'failed':_0x260c9a(0xa7),'retrying':_0x260c9a(0xb8)},'connectionError':{'missingApiKey':_0x260c9a(0xaf),'invalidApiKey':_0x260c9a(0xcc),'sessionOccupied':_0x260c9a(0xc1),'networkError':_0x260c9a(0xba),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};function _0x15de(){const _0x407a23=['Connected','1020416BxDvwC','Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20connect\x20MCP','Enable\x20Authentication','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','1988610YCeiif','Univer\x20AI\x20Console','MCP:\x20Session\x20Occupied','Configuration\x20Steps:','MCP\x20Disconnected','API\x20key\x20is\x20required','Disconnected','API\x20Key','Connection\x20Failed','MCP\x20Retrying...','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session\x20ID','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','API\x20key\x20is\x20required\x20to\x20connect','63PBTodg','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','5165728kkEgWz','Save\x20Configuration','MCP\x20Unknown\x20Status','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','Configuration\x20saved\x20successfully','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','5129316YeNuby','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2qVJpMs','What\x20is\x20API\x20Key?','MCP:\x20API\x20Key\x20Missing','MCP\x20Connecting...','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','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','1835272eoabVz','4023051FpLYHY','6053691VsiKLm','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','MCP\x20Client\x20Configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again'];_0x15de=function(){return _0x407a23;};return _0x15de();}
@@ -1 +1 @@
1
- const _0x4fdee5=_0x5481;function _0x5481(_0x236599,_0x5c01f5){const _0x28e80c=_0x28e8();return _0x5481=function(_0x5481a3,_0x4c5231){_0x5481a3=_0x5481a3-0x1ba;let _0x405b00=_0x28e80c[_0x5481a3];return _0x405b00;},_0x5481(_0x236599,_0x5c01f5);}(function(_0x57807e,_0x401411){const _0x611ede=_0x5481,_0x1689e1=_0x57807e();while(!![]){try{const _0x3b1956=parseInt(_0x611ede(0x1d9))/0x1+-parseInt(_0x611ede(0x1ba))/0x2+-parseInt(_0x611ede(0x1c5))/0x3+parseInt(_0x611ede(0x1cc))/0x4+parseInt(_0x611ede(0x1dc))/0x5+parseInt(_0x611ede(0x1de))/0x6*(parseInt(_0x611ede(0x1d0))/0x7)+-parseInt(_0x611ede(0x1cf))/0x8;if(_0x3b1956===_0x401411)break;else _0x1689e1['push'](_0x1689e1['shift']());}catch(_0x3ce8cb){_0x1689e1['push'](_0x1689e1['shift']());}}}(_0x28e8,0xa740c));function _0x28e8(){const _0x4a2adc=['MCP\x20Retrying...','MCP:\x20Invalid\x20API\x20Key','648694eyWXci','Univer\x20AI\x20Console','Invalid\x20configuration','Connecting...','Enable\x20Authentication','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','830736hbkauH','Click\x20to\x20connect\x20MCP','Connected','Server\x20Endpoint','What\x20is\x20API\x20Key?','Session\x20ID','MCP\x20Disconnected','1878492IJWpZd','MCP\x20Configuration','MCP:\x20Session\x20Occupied','15094328hMhpDI','9877kdvhDx','Connection\x20Failed','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required','Retrying...','MCP\x20Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Failed\x20to\x20save\x20configuration','Enter\x20your\x20API\x20key','1167691CwYwhY','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','5421420lELGrG','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1920skESet','Save\x20Configuration','API\x20key\x20is\x20required\x20to\x20connect'];_0x28e8=function(){return _0x4a2adc;};return _0x28e8();}const e={'mcpStatus':{'disconnected':_0x4fdee5(0x1cb),'connecting':_0x4fdee5(0x1db),'connected':_0x4fdee5(0x1c1),'failed':_0x4fdee5(0x1d5),'retrying':_0x4fdee5(0x1e1),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x4fdee5(0x1e2),'sessionOccupied':_0x4fdee5(0x1ce),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4fdee5(0x1c6),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4fdee5(0x1cd),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x4fdee5(0x1d8),'apiKeyHint':_0x4fdee5(0x1da),'enableAuth':_0x4fdee5(0x1be),'enableAuthHint':_0x4fdee5(0x1d6),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x4fdee5(0x1c8),'sessionId':_0x4fdee5(0x1ca),'maxRetries':_0x4fdee5(0x1c3),'save':_0x4fdee5(0x1df),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4fdee5(0x1dd),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4fdee5(0x1d7),'apiApplyInfo':{'title':_0x4fdee5(0x1c9),'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':_0x4fdee5(0x1bb),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4fdee5(0x1d3),'apiKeyTooShort':_0x4fdee5(0x1c2),'invalidConfig':_0x4fdee5(0x1bc),'invalidApiKey':_0x4fdee5(0x1c0)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4fdee5(0x1bd),'connected':_0x4fdee5(0x1c7),'failed':_0x4fdee5(0x1d1),'retrying':_0x4fdee5(0x1d4)},'connectionError':{'missingApiKey':_0x4fdee5(0x1e0),'invalidApiKey':_0x4fdee5(0x1bf),'sessionOccupied':_0x4fdee5(0x1d2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4fdee5(0x1c4)}}},n=e;export{n as default};
1
+ function _0x13ee(_0x10738c,_0x412d70){const _0x3ae15e=_0x3ae1();return _0x13ee=function(_0x13ee63,_0x41b841){_0x13ee63=_0x13ee63-0xa9;let _0x5cd270=_0x3ae15e[_0x13ee63];return _0x5cd270;},_0x13ee(_0x10738c,_0x412d70);}function _0x3ae1(){const _0x5661f6=['Session\x20ID','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration','10IQFtDi','MCP\x20Connection\x20Failed','1719WBnsjC','Invalid\x20configuration','2297452MJCKSU','Max\x20Retries','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','40880mvykbc','897708NawWSA','Configuration\x20Parameters:','Saving...','3545479vNdzat','Enable\x20authentication\x20for\x20secure\x20connections','2085aYQDiy','Disconnected','4990812wRNtgD','MCP\x20Connected','Enter\x20your\x20API\x20key','Enable\x20Authentication','API\x20key\x20is\x20required\x20to\x20connect','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','20Keybde','MCP\x20Unknown\x20Status','MCP:\x20Network\x20Error','Connected','Configuration\x20saved\x20successfully','API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Steps:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20connect\x20MCP','Save\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP:\x20Session\x20Occupied','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','30308970zmepVG','Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x3ae1=function(){return _0x5661f6;};return _0x3ae1();}const _0x5733d7=_0x13ee;(function(_0x3632d2,_0x2681f8){const _0x269b9a=_0x13ee,_0x1f7c05=_0x3632d2();while(!![]){try{const _0x1d08fa=-parseInt(_0x269b9a(0xc3))/0x1+-parseInt(_0x269b9a(0xd2))/0x2*(parseInt(_0x269b9a(0xc8))/0x3)+parseInt(_0x269b9a(0xbd))/0x4*(-parseInt(_0x269b9a(0xb9))/0x5)+-parseInt(_0x269b9a(0xca))/0x6+-parseInt(_0x269b9a(0xc6))/0x7+parseInt(_0x269b9a(0xc2))/0x8*(parseInt(_0x269b9a(0xbb))/0x9)+parseInt(_0x269b9a(0xb1))/0xa;if(_0x1d08fa===_0x2681f8)break;else _0x1f7c05['push'](_0x1f7c05['shift']());}catch(_0x4d5100){_0x1f7c05['push'](_0x1f7c05['shift']());}}}(_0x3ae1,0x96338));const e={'mcpStatus':{'disconnected':_0x5733d7(0xb4),'connecting':'MCP\x20Connecting...','connected':_0x5733d7(0xcb),'failed':_0x5733d7(0xba),'retrying':'MCP\x20Retrying...','unknown':_0x5733d7(0xd3),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x5733d7(0xad),'networkError':_0x5733d7(0xd4),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5733d7(0xa9),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5733d7(0xd8),'apiKey':_0x5733d7(0xd7),'apiKeyPlaceholder':_0x5733d7(0xcc),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5733d7(0xcd),'enableAuthHint':_0x5733d7(0xc7),'connectionInfo':_0x5733d7(0xae),'mcpClientConfig':_0x5733d7(0xae),'configInstructions':_0x5733d7(0xb3),'configStepTitle':_0x5733d7(0xd9),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5733d7(0xaf),'configStep3':_0x5733d7(0xc1),'sessionId':_0x5733d7(0xb6),'sessionIdDescription':_0x5733d7(0xb5),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5733d7(0xc4),'maxRetries':_0x5733d7(0xbe),'save':_0x5733d7(0xaa),'saving':_0x5733d7(0xc5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5733d7(0xcf),'configSaved':_0x5733d7(0xd6),'configError':_0x5733d7(0xb8),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5733d7(0xda),'univerAiLabel':_0x5733d7(0xb0),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5733d7(0xc0),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5733d7(0xbc),'invalidApiKey':_0x5733d7(0xab)},'connectionStatus':{'disconnected':_0x5733d7(0xc9),'connecting':_0x5733d7(0xd0),'connected':_0x5733d7(0xd5),'failed':'Connection\x20Failed','retrying':_0x5733d7(0xb2)},'connectionError':{'missingApiKey':_0x5733d7(0xce),'invalidApiKey':_0x5733d7(0xac),'sessionOccupied':_0x5733d7(0xbf),'networkError':_0x5733d7(0xb7),'maxRetriesExceeded':_0x5733d7(0xd1)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x469598=_0x3394;(function(_0x23529a,_0x20b5b5){const _0x5664c7=_0x3394,_0x384e4c=_0x23529a();while(!![]){try{const _0x28ceb7=parseInt(_0x5664c7(0x1ca))/0x1*(-parseInt(_0x5664c7(0x1ad))/0x2)+parseInt(_0x5664c7(0x1c7))/0x3+-parseInt(_0x5664c7(0x1cd))/0x4+-parseInt(_0x5664c7(0x1a7))/0x5*(parseInt(_0x5664c7(0x1c3))/0x6)+-parseInt(_0x5664c7(0x1aa))/0x7+parseInt(_0x5664c7(0x1c8))/0x8*(parseInt(_0x5664c7(0x1c9))/0x9)+parseInt(_0x5664c7(0x1bf))/0xa;if(_0x28ceb7===_0x20b5b5)break;else _0x384e4c['push'](_0x384e4c['shift']());}catch(_0x43e007){_0x384e4c['push'](_0x384e4c['shift']());}}}(_0x5a11,0xc50e6));function _0x5a11(){const _0xa825e6=['Max\x20Retries','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connection\x20Failed','MCP\x20Retrying...','MCP\x20Connected','5MvHtdn','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Configuration','9546894YNNaAn','API\x20key\x20is\x20required','API\x20Key','310524YKgeUq','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Connection\x20Failed','Failed\x20to\x20save\x20configuration','MCP:\x20API\x20Key\x20Missing','Disconnected','What\x20is\x20API\x20Key?','Enable\x20Authentication','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','Enter\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','29747860SPrHCW','MCP:\x20Invalid\x20API\x20Key','Connection\x20Information','MCP\x20Connecting...','3628164TBbEwY','MCP:\x20Network\x20Error','Connected','Connecting...','2270034jfFOVd','10248kLlvLt','3339xvZNOG','2CVzRqR','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Get\x20your\x20API\x20key\x20in\x20seconds','4482052svBlgp','Server\x20Endpoint'];_0x5a11=function(){return _0xa825e6;};return _0x5a11();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x469598(0x1c2),'connected':_0x469598(0x1d3),'failed':_0x469598(0x1d1),'retrying':_0x469598(0x1d2),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x469598(0x1b6),'invalidApiKey':_0x469598(0x1c0),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x469598(0x1c4),'maxRetriesExceeded':_0x469598(0x1be),'clickToConnect':_0x469598(0x1af),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x469598(0x1a9),'description':_0x469598(0x1cb),'apiKey':_0x469598(0x1ac),'apiKeyPlaceholder':_0x469598(0x1bd),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x469598(0x1b9),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x469598(0x1c1),'serverEndpoint':_0x469598(0x1ce),'sessionId':_0x469598(0x1bc),'maxRetries':_0x469598(0x1cf),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x469598(0x1b2),'note2':_0x469598(0x1d0),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x469598(0x1b5),'apiApplyInfo':{'title':_0x469598(0x1b8),'description':_0x469598(0x1bb),'univerAiLabel':_0x469598(0x1ae),'getStarted':_0x469598(0x1cc)},'validation':{'apiKeyRequired':_0x469598(0x1ab),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x469598(0x1b3),'invalidApiKey':_0x469598(0x1b1)},'connectionStatus':{'disconnected':_0x469598(0x1b7),'connecting':_0x469598(0x1c6),'connected':_0x469598(0x1c5),'failed':_0x469598(0x1b4),'retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x469598(0x1ba),'networkError':_0x469598(0x1a8),'maxRetriesExceeded':_0x469598(0x1b0)}}},n=e;function _0x3394(_0x15bdbb,_0x3d7b37){const _0x5a11b0=_0x5a11();return _0x3394=function(_0x33943f,_0x4a4160){_0x33943f=_0x33943f-0x1a7;let _0x5a7636=_0x5a11b0[_0x33943f];return _0x5a7636;},_0x3394(_0x15bdbb,_0x3d7b37);}export{n as default};
1
+ function _0x21c2(){const _0xa2abf2=['65919lRBgPP','MCP\x20Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20API\x20Key\x20Missing','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','Enter\x20your\x20API\x20key','95090xmWeXk','184HMfrGB','928926NNPQOF','Disconnected','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20Occupied','Invalid\x20configuration','MCP\x20Unknown\x20Status','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','MCP:\x20Max\x20Retries\x20Exceeded','153yRhmXG','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2PWHdWm','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','384791JRCjjN','Save\x20Configuration','API\x20Key','Saving...','1285652ZWrMXA','388218IwtUlW','Enable\x20authentication\x20for\x20secure\x20connections','Session\x20ID','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','15xBcLLg','Click\x20to\x20configure\x20MCP','MCP:\x20Network\x20Error','467486TZhHsa','Max\x20Retries','MCP:\x20Invalid\x20API\x20Key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Steps:','Connecting...'];_0x21c2=function(){return _0xa2abf2;};return _0x21c2();}const _0x3a4f51=_0xca9d;(function(_0x410a36,_0x5d2c77){const _0x157ad8=_0xca9d,_0x111b81=_0x410a36();while(!![]){try{const _0x2dcd76=parseInt(_0x157ad8(0x137))/0x1+parseInt(_0x157ad8(0x123))/0x2*(-parseInt(_0x157ad8(0x116))/0x3)+parseInt(_0x157ad8(0x12a))/0x4+-parseInt(_0x157ad8(0x134))/0x5*(-parseInt(_0x157ad8(0x12b))/0x6)+parseInt(_0x157ad8(0x13d))/0x7*(-parseInt(_0x157ad8(0x115))/0x8)+parseInt(_0x157ad8(0x121))/0x9*(-parseInt(_0x157ad8(0x114))/0xa)+-parseInt(_0x157ad8(0x126))/0xb;if(_0x2dcd76===_0x5d2c77)break;else _0x111b81['push'](_0x111b81['shift']());}catch(_0x7b31b5){_0x111b81['push'](_0x111b81['shift']());}}}(_0x21c2,0x3f82d));function _0xca9d(_0x2c9498,_0x4eaee2){const _0x21c259=_0x21c2();return _0xca9d=function(_0xca9d3d,_0x5da1a1){_0xca9d3d=_0xca9d3d-0x112;let _0x5e3ebc=_0x21c259[_0xca9d3d];return _0x5e3ebc;},_0xca9d(_0x2c9498,_0x4eaee2);}const e={'mcpStatus':{'disconnected':_0x3a4f51(0x13e),'connecting':_0x3a4f51(0x119),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x3a4f51(0x11d),'missingApiKey':_0x3a4f51(0x142),'invalidApiKey':_0x3a4f51(0x139),'sessionOccupied':_0x3a4f51(0x11b),'networkError':_0x3a4f51(0x136),'maxRetriesExceeded':_0x3a4f51(0x120),'clickToConnect':_0x3a4f51(0x143),'clickToConfigure':_0x3a4f51(0x135)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3a4f51(0x128),'apiKeyPlaceholder':_0x3a4f51(0x113),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3a4f51(0x12c),'connectionInfo':_0x3a4f51(0x11f),'mcpClientConfig':_0x3a4f51(0x11f),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3a4f51(0x13b),'configStep1':_0x3a4f51(0x12e),'configStep2':_0x3a4f51(0x13f),'configStep3':_0x3a4f51(0x11a),'sessionId':_0x3a4f51(0x12d),'sessionIdDescription':_0x3a4f51(0x124),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x3a4f51(0x138),'save':_0x3a4f51(0x127),'saving':_0x3a4f51(0x129),'note1':_0x3a4f51(0x125),'note2':_0x3a4f51(0x13a),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3a4f51(0x118),'apiApplyInfo':{'title':_0x3a4f51(0x112),'description':_0x3a4f51(0x11e),'univerAiLabel':_0x3a4f51(0x130),'getStarted':_0x3a4f51(0x141)},'validation':{'apiKeyRequired':_0x3a4f51(0x132),'apiKeyTooShort':_0x3a4f51(0x131),'invalidConfig':_0x3a4f51(0x11c),'invalidApiKey':_0x3a4f51(0x133)},'connectionStatus':{'disconnected':_0x3a4f51(0x117),'connecting':_0x3a4f51(0x13c),'connected':_0x3a4f51(0x140),'failed':'Connection\x20Failed','retrying':_0x3a4f51(0x12f)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x3a4f51(0x122),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x1c89cc=_0x145f;(function(_0x119631,_0x32f30f){const _0xd6ec4a=_0x145f,_0x567996=_0x119631();while(!![]){try{const _0x293eae=-parseInt(_0xd6ec4a(0x166))/0x1*(parseInt(_0xd6ec4a(0x15e))/0x2)+parseInt(_0xd6ec4a(0x13c))/0x3*(parseInt(_0xd6ec4a(0x141))/0x4)+parseInt(_0xd6ec4a(0x149))/0x5*(-parseInt(_0xd6ec4a(0x134))/0x6)+-parseInt(_0xd6ec4a(0x15a))/0x7*(parseInt(_0xd6ec4a(0x13a))/0x8)+parseInt(_0xd6ec4a(0x139))/0x9+-parseInt(_0xd6ec4a(0x155))/0xa*(-parseInt(_0xd6ec4a(0x162))/0xb)+parseInt(_0xd6ec4a(0x165))/0xc;if(_0x293eae===_0x32f30f)break;else _0x567996['push'](_0x567996['shift']());}catch(_0x366614){_0x567996['push'](_0x567996['shift']());}}}(_0x2b82,0x9e56c));function _0x145f(_0x134a83,_0x2f9471){const _0x2b8274=_0x2b82();return _0x145f=function(_0x145f8c,_0x36e277){_0x145f8c=_0x145f8c-0x134;let _0x299b61=_0x2b8274[_0x145f8c];return _0x299b61;},_0x145f(_0x134a83,_0x2f9471);}const e={'mcpStatus':{'disconnected':_0x1c89cc(0x147),'connecting':_0x1c89cc(0x14e),'connected':_0x1c89cc(0x14a),'failed':_0x1c89cc(0x148),'retrying':_0x1c89cc(0x13b),'unknown':_0x1c89cc(0x142),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x1c89cc(0x14f),'sessionOccupied':_0x1c89cc(0x164),'networkError':_0x1c89cc(0x156),'maxRetriesExceeded':_0x1c89cc(0x158),'clickToConnect':_0x1c89cc(0x15d),'clickToConfigure':_0x1c89cc(0x154)},'mcpConfig':{'title':_0x1c89cc(0x15b),'description':_0x1c89cc(0x136),'apiKey':_0x1c89cc(0x14c),'apiKeyPlaceholder':_0x1c89cc(0x167),'apiKeyHint':_0x1c89cc(0x150),'enableAuth':_0x1c89cc(0x13d),'enableAuthHint':_0x1c89cc(0x137),'connectionInfo':_0x1c89cc(0x145),'serverEndpoint':_0x1c89cc(0x15f),'sessionId':'Session\x20ID','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x1c89cc(0x151),'note1':_0x1c89cc(0x140),'note2':_0x1c89cc(0x138),'configSaved':_0x1c89cc(0x14d),'configError':_0x1c89cc(0x13f),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1c89cc(0x144),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1c89cc(0x157),'apiKeyTooShort':_0x1c89cc(0x143),'invalidConfig':_0x1c89cc(0x160),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1c89cc(0x152),'connecting':_0x1c89cc(0x14b),'connected':_0x1c89cc(0x146),'failed':_0x1c89cc(0x161),'retrying':_0x1c89cc(0x159)},'connectionError':{'missingApiKey':_0x1c89cc(0x163),'invalidApiKey':_0x1c89cc(0x135),'sessionOccupied':_0x1c89cc(0x15c),'networkError':_0x1c89cc(0x153),'maxRetriesExceeded':_0x1c89cc(0x13e)}}},n=e;export{n as default};function _0x2b82(){const _0x45e375=['Invalid\x20configuration','Connection\x20Failed','252857kMvUTL','API\x20key\x20is\x20required\x20to\x20connect','MCP:\x20Session\x20Occupied','28582020dRKOYF','1050186hmBeIe','Enter\x20your\x20API\x20key','6sNQHiF','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','797697eUEpOH','8WWdUPx','MCP\x20Retrying...','141krwoEb','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','21124bwjCiN','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','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\x20Information','Connected','MCP\x20Disconnected','MCP\x20Connection\x20Failed','5707465SgXsOi','MCP\x20Connected','Connecting...','API\x20Key','Configuration\x20saved\x20successfully','MCP\x20Connecting...','MCP:\x20Invalid\x20API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20configure\x20MCP','550GNfydG','MCP:\x20Network\x20Error','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','7999075fycFcL','MCP\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','2zmWhVZ','Server\x20Endpoint'];_0x2b82=function(){return _0x45e375;};return _0x2b82();}
1
+ const _0x4d9acd=_0x19cd;(function(_0x4d67dd,_0x401900){const _0x40b1e2=_0x19cd,_0x44c5dc=_0x4d67dd();while(!![]){try{const _0x4c46ae=-parseInt(_0x40b1e2(0x102))/0x1+-parseInt(_0x40b1e2(0x101))/0x2*(-parseInt(_0x40b1e2(0xe0))/0x3)+-parseInt(_0x40b1e2(0xf1))/0x4+-parseInt(_0x40b1e2(0xe3))/0x5*(-parseInt(_0x40b1e2(0xd5))/0x6)+parseInt(_0x40b1e2(0xea))/0x7+-parseInt(_0x40b1e2(0xed))/0x8*(parseInt(_0x40b1e2(0xe1))/0x9)+-parseInt(_0x40b1e2(0xd9))/0xa*(-parseInt(_0x40b1e2(0xd6))/0xb);if(_0x4c46ae===_0x401900)break;else _0x44c5dc['push'](_0x44c5dc['shift']());}catch(_0x251590){_0x44c5dc['push'](_0x44c5dc['shift']());}}}(_0x5830,0xda245));function _0x19cd(_0x706beb,_0x515b5d){const _0x5830dc=_0x5830();return _0x19cd=function(_0x19cdbd,_0x19cc6a){_0x19cdbd=_0x19cdbd-0xcc;let _0x35a332=_0x5830dc[_0x19cdbd];return _0x35a332;},_0x19cd(_0x706beb,_0x515b5d);}function _0x5830(){const _0x34517f=['MCP:\x20Network\x20Error','MCP:\x20Session\x20Occupied','What\x20is\x20API\x20Key?','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Save\x20Configuration','Session\x20ID','2HJECUT','344235nnQiNP','MCP\x20Unknown\x20Status','Disconnected','API\x20key\x20is\x20required','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required\x20to\x20connect','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connecting...','API\x20Key','Connecting...','MCP:\x20Invalid\x20API\x20Key','Max\x20Retries','Univer\x20AI\x20Console','1595334vUXjmw','33Albjup','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','975690gFCxcQ','Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Connection\x20Failed','Click\x20to\x20connect\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','2907543WeLpEZ','8015823ypAvBf','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','30ZxtKKY','Enter\x20your\x20API\x20key','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','Connected','Configuration\x20saved\x20successfully','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','9489382kChfRf','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','16bsXtCL','Configuration\x20Steps:','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP\x20Connected','4775240kgCLtW','MCP:\x20API\x20Key\x20Missing','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x5830=function(){return _0x34517f;};return _0x5830();}const e={'mcpStatus':{'disconnected':_0x4d9acd(0xdf),'connecting':_0x4d9acd(0xcf),'connected':_0x4d9acd(0xf0),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4d9acd(0xe5),'unknown':_0x4d9acd(0x103),'missingApiKey':_0x4d9acd(0xf2),'invalidApiKey':_0x4d9acd(0xd2),'sessionOccupied':_0x4d9acd(0xf5),'networkError':_0x4d9acd(0xf4),'maxRetriesExceeded':_0x4d9acd(0xdb),'clickToConnect':_0x4d9acd(0xdd),'clickToConfigure':_0x4d9acd(0xd7)},'mcpConfig':{'title':_0x4d9acd(0xf8),'description':_0x4d9acd(0xf7),'apiKey':_0x4d9acd(0xd0),'apiKeyPlaceholder':_0x4d9acd(0xe4),'apiKeyHint':_0x4d9acd(0xcc),'enableAuth':_0x4d9acd(0xfb),'enableAuthHint':_0x4d9acd(0xeb),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4d9acd(0xe2),'configStepTitle':_0x4d9acd(0xee),'configStep1':_0x4d9acd(0xe6),'configStep2':_0x4d9acd(0xfe),'configStep3':_0x4d9acd(0xf9),'sessionId':_0x4d9acd(0x100),'sessionIdDescription':_0x4d9acd(0xf3),'authorizationDescription':_0x4d9acd(0xde),'configParameters':_0x4d9acd(0xfc),'maxRetries':_0x4d9acd(0xd3),'save':_0x4d9acd(0xff),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4d9acd(0xce),'configSaved':_0x4d9acd(0xe8),'configError':_0x4d9acd(0xd8),'apiApplyInfo':{'title':_0x4d9acd(0xf6),'description':_0x4d9acd(0xec),'univerAiLabel':_0x4d9acd(0xd4),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4d9acd(0x105),'apiKeyTooShort':_0x4d9acd(0xfd),'invalidConfig':_0x4d9acd(0x106),'invalidApiKey':_0x4d9acd(0xfa)},'connectionStatus':{'disconnected':_0x4d9acd(0x104),'connecting':_0x4d9acd(0xd1),'connected':_0x4d9acd(0xe7),'failed':_0x4d9acd(0xdc),'retrying':_0x4d9acd(0xda)},'connectionError':{'missingApiKey':_0x4d9acd(0xcd),'invalidApiKey':_0x4d9acd(0xef),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4d9acd(0xe9)}}},n=e;export{n as default};