@univerjs-pro/mcp-ui 0.10.10-experimental.20251016-33b0941 → 0.10.10-nightly.202510180256

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 (45) 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.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/ca-ES.js +1 -1
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/es-ES.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ko-KR.js +1 -1
  41. package/lib/umd/locale/ru-RU.js +1 -1
  42. package/lib/umd/locale/vi-VN.js +1 -1
  43. package/lib/umd/locale/zh-CN.js +1 -1
  44. package/lib/umd/locale/zh-TW.js +1 -1
  45. package/package.json +6 -6
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x294336=_0x5131;(function(_0x454bdb,_0x1767fa){var _0x11c531=_0x5131,_0x22e72f=_0x454bdb();while(!![]){try{var _0x3221e0=-parseInt(_0x11c531(0xec))/0x1+parseInt(_0x11c531(0x122))/0x2*(-parseInt(_0x11c531(0x19a))/0x3)+-parseInt(_0x11c531(0x1e9))/0x4*(-parseInt(_0x11c531(0x16d))/0x5)+-parseInt(_0x11c531(0x1a3))/0x6+parseInt(_0x11c531(0xcd))/0x7+parseInt(_0x11c531(0x14e))/0x8*(parseInt(_0x11c531(0x109))/0x9)+-parseInt(_0x11c531(0x16c))/0xa;if(_0x3221e0===_0x1767fa)break;else _0x22e72f['push'](_0x22e72f['shift']());}catch(_0x4a4d2d){_0x22e72f['push'](_0x22e72f['shift']());}}}(_0xbcd1,0xcf21e));var ue=Object[_0x294336(0x21c)],le=(_0x11ee80,_0x22fed0,_0x2beb49)=>_0x22fed0 in _0x11ee80?ue(_0x11ee80,_0x22fed0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2beb49}):_0x11ee80[_0x22fed0]=_0x2beb49,I=(_0x131c58,_0x4112ea,_0x51b697)=>le(_0x131c58,typeof _0x4112ea!=_0x294336(0x1bb)?_0x4112ea+'':_0x4112ea,_0x51b697);function _0x5131(_0x1ab3c5,_0x26cd08){var _0xbcd17d=_0xbcd1();return _0x5131=function(_0x5131cb,_0x34f309){_0x5131cb=_0x5131cb-0x9e;var _0x5041e6=_0xbcd17d[_0x5131cb];return _0x5041e6;},_0x5131(_0x1ab3c5,_0x26cd08);}function _0xbcd1(){var _0x25c678=['最大重试次数','univer-text-red-500','CheckMarkIcon','MCP\x20Unknown\x20Status','mcpConfig.apiApplyInfo.getStarted','univer-text-green-500','connectInjector','univer_session_id:','_initAutoConnect','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','配置更改将立即生效','mcpConfig.connectionStatus.disconnected','children','univer-text-xs\x20univer-text-gray-500','API\x20密钥','IMenuManagerService','_handleConfigSave','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_config','点击配置\x20MCP','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','IMessageService','off-line-icon','mcpConfig.configStepTitle','tag','className','_apiKey$','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','currentColor','MCP\x20配置','mcpConfig.description','Input','univer-text-blue-600','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','text','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','getConfig','white','defs','Max\x20Retries','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-bg-red-500','span','getItem','defineProperty','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcpStatus.sessionOccupied','function','会话\x20ID\x20已被占用,请稍后再试','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20重连中...','toString','MCP\x20连接中...','apiKey','Connected','mcpConfig.validation.invalidApiKey','useRef','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','getCurrentConfig','mcpStatus.retrying','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.configInstructions','连接失败','NETWORK_ERROR','close-small-single','trim','UNAUTHORIZED','useDependency','_handleConfigure','hasOwnProperty','MCP\x20Client\x20Configuration','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpStatus.networkError','fill','useObservable','配置步骤:','url(#$1','use','0\x200\x2016\x2016','Authorization:','string','on-line-icon_clip0_910_349','BehaviorSubject','_initConfigSync','univer-text-xs\x20univer-text-gray-600','showDeveloperTools','mcpConfig.save','保存中...','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','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','showStatus','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20会话\x20ID\x20已被占用','OTHERS','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcp-ui.config','_menuManagerService','您的\x20API\x20密钥安全存储在本地存储中','idSuffix','Saving...','svg','mask','MCPConnectionError','mcpConfig.connectionStatus.failed','error','MCP\x20Retrying...','MCP\x20Connection\x20Failed','map','mcp.apiKey','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','将以下配置添加到您的\x20MCP\x20客户端设置中:','translate(.97)','bottom','extend','4062317JflVmZ','univer-bg-blue-500','重启您的\x20MCP\x20客户端以使配置生效','assign','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','未连接','Enable\x20authentication\x20for\x20secure\x20connections','配置保存成功','mcpConfig.connectionError.networkError','COMMAND','点击连接\x20MCP','mcpServerUrl','_initializeMenus','Success','mcpConfig.apiApplyInfo.univerAiLabel','Enter\x20your\x20API\x20key','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','IDialogService','registerComponent','DependentOn','univer-space-y-5','check-mark-icon','BuiltInUIPart','univer-flex\x20univer-items-center\x20univer-gap-3','网络连接错误,请检查您的网络连接','div','path','includes','1em','Enable\x20Authentication','ILocalStorageService','124317CjPpts','_registerComponent','_initializeCommands','Save\x20Configuration','保存配置','clipPath','MessageType','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.connectionError.unauthorized','mcpStatus.failed','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_configService','Disposable','univer-space-y-4','univer-text-yellow-500','MCP:\x20Session\x20ID\x20Occupied','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Error','useState','univer-text-sm\x20univer-text-gray-500','0\x200\x2017\x2016','Click\x20to\x20configure\x20MCP','IUIPartsService','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','label','univer-flex\x20univer-items-start\x20univer-gap-3','univer-flex-shrink-0\x20univer-text-blue-500','next','help-single','9uEzpVR','has','API\x20密钥不能为空','value','API\x20key\x20is\x20required','enUS','权限验证失败,请检查您的\x20API\x20密钥','Copy\x20the\x20JSON\x20configuration\x20below','jsxs','forwardRef','MCP:\x20未授权','MCPConnectionUIController','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','xlink:href','colorChannel1','register','MCP:\x20Network\x20Error','\x20-\x20','Configuration\x20saved\x20successfully','MCP\x20Connecting...','forEach','close','复制以下\x20JSON\x20配置','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','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','8AsfCjL','univer.plus','MCP:\x20网络错误','mcpConfig.apiApplyInfo.description','Configuration\x20Parameters:','random','API\x20密钥无效,请检查密钥是否正确','mcpConfig.title','启用身份验证以获得安全连接','mcpConfig.connectionStatus.retrying','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','SESSION_ID_OCCUPIED','round','UniverMCPUIPlugin','connectionError$','请输入您的\x20API\x20密钥','配置保存失败','mcpConfig.apiKeyHint','MCPUIMenuController','_localeService','jsx','removeItem','mcpConfig.connectionError.maxRetriesExceeded','Failed\x20to\x20save\x20configuration','_componentManager','CONNECTED','_validateConfig','none','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','subscribeConfigValue$','FAILED','getOwnPropertySymbols','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','entries','call','univer-flex\x20univer-flex-wrap\x20univer-gap-2','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','ICommandService','univer-min-w-0\x20univer-flex-1','registerCommand','MCPStatusDisplay','ComponentManager','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','url(#off-line-icon_clip0_910_343)','9868584FMWztc','\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','createElement','CommandType','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-text-white','UniverIcon','mcpStatus.unknown','noopener\x20noreferrer','Connection\x20Failed','mcpConfig.connectionStatus.connected','univer-text-sm\x20univer-font-medium','__setCustomHeaders','\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','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','_loading$','MenuIcon','mcpConfig.configStep1','javascript:void(0)','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','showConfigPanel','url(#on-line-icon_clip0_910_349)','MCP:\x20Unauthorized','Module','_mcpCoreConfig$','UniverMCPPlugin','displayName','_messageService','MCPConnectionController','13553110ngpszO','6711595olaaxR','show','MAX_RETRIES_EXCEEDED','attrs','_dialogService','http://www.w3.org/2000/svg','CONNECTING','HelpSingle','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_localStorageService','mcp-config-dialog','NONE','CloseSmallSingle','RETRYING','Tooltip','M0\x200H16V16H0z','RibbonStartGroup','mcpStatus.maxRetriesExceeded','merge','open','disposeWithMe','超出最大重试次数,请稍后再试','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','_initStatusComponent','MCPConnectionStatus','univer-flex\x20univer-items-center\x20univer-gap-2','replace','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','BUTTON','ISocketService','pre','_mcpConnectionController','_createConfigPanelComponent','mcpStatus.unauthorized','mcpConfig.connectionError.sessionOccupied','_config$','OffLineIcon','Configuration\x20Notes:','off-line-icon_clip0_910_343','https://console.univer.ai','univer-flex\x20univer-items-start\x20univer-gap-2','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','defIds','zhCN','540483aqiHUo','mcpConfig.apiApplyInfo.title','warn','useCallback','0\x200\x2017\x2017','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.disconnected','mcpConfig.validation.apiKeyTooShort','evenodd','645222TaKhcc','会话ID','MCPConfigPanel','_uiPartsService','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-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univerjs-icon\x20univerjs-icon-','Injector','_injector','mcpConfig.configSaved','API\x20Key','getOwnPropertyDescriptor','mcpConfig.authorizationDescription','mcpConfig.configStep3','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Plugin','_loadStoredApiKey','mcpConfig.validation.invalidConfig','off','将配置添加到您的\x20MCP\x20客户端设置文件中','clsx','toStringTag','Inject','OnLineIcon','symbol','univer.ai','MCP\x20已连接','mcpConfig.sessionIdDescription','add','IConfigService','mcpConfig.validation.apiKeyRequired','MCPConfigUIController','univer-flex-shrink-0\x20univer-text-red-500','https://console.univer.plus','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','push','onStarting','mcpConfig.configParameters','apply','on-line-icon','concat','带有\x20Bearer\x20前缀的\x20API\x20密钥。','connectionStatus$','Connecting...','univer-flex-1','get','DISCONNECTED','MCP:\x20Max\x20Retries\x20Exceeded','_blank','mcpConfig.connectionInfo','Close','length','current','Disconnected','Univer\x20AI\x20控制台','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.note2','_connectionController','MCP\x20已断开','icon','isValid','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','{\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=','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','prototype','univer-space-y-3','_logService','您的\x20API\x20密钥将在此浏览器中本地存储','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','subscribe','4NEXDgt','mcpStatus.connected','MCP\x20客户端配置','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','univer-text-gray-400','univer-font-medium','几秒钟内获取您的\x20API\x20密钥'];_0xbcd1=function(){return _0x25c678;};return _0xbcd1();}Object['defineProperty'](exports,Symbol[_0x294336(0x1b8)],{'value':_0x294336(0x166)});const l=require('@univerjs/core'),t=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),S=require('@univerjs/design'),v=require('@univerjs/ui'),N=require('rxjs'),d=require('react'),A=require('@univerjs/network');var g=function(){var _0x12d2e7=_0x294336;return g=Object[_0x12d2e7(0xd0)]||function(_0x4c9c36){var _0x44b6a5=_0x12d2e7;for(var _0xe74b63,_0xd23388=0x1,_0x5c383d=arguments[_0x44b6a5(0x1d6)];_0xd23388<_0x5c383d;_0xd23388++){_0xe74b63=arguments[_0xd23388];for(var _0x2c1daa in _0xe74b63)Object['prototype'][_0x44b6a5(0x9f)][_0x44b6a5(0x144)](_0xe74b63,_0x2c1daa)&&(_0x4c9c36[_0x2c1daa]=_0xe74b63[_0x2c1daa]);}return _0x4c9c36;},g[_0x12d2e7(0x1c9)](this,arguments);},ve=function(_0x41c730,_0x2fc25e){var _0x25b952=_0x294336,_0x5b52df={};for(var _0xaf3283 in _0x41c730)Object[_0x25b952(0x1e3)][_0x25b952(0x9f)][_0x25b952(0x144)](_0x41c730,_0xaf3283)&&_0x2fc25e['indexOf'](_0xaf3283)<0x0&&(_0x5b52df[_0xaf3283]=_0x41c730[_0xaf3283]);if(_0x41c730!=null&&typeof Object[_0x25b952(0x141)]==_0x25b952(0x21f)){for(var _0x291f62=0x0,_0xaf3283=Object[_0x25b952(0x141)](_0x41c730);_0x291f62<_0xaf3283[_0x25b952(0x1d6)];_0x291f62++)_0x2fc25e['indexOf'](_0xaf3283[_0x291f62])<0x0&&Object[_0x25b952(0x1e3)]['propertyIsEnumerable'][_0x25b952(0x144)](_0x41c730,_0xaf3283[_0x291f62])&&(_0x5b52df[_0xaf3283[_0x291f62]]=_0x41c730[_0xaf3283[_0x291f62]]);}return _0x5b52df;},_=d[_0x294336(0x112)](function(_0x38285f,_0x2800e4){var _0x2ae6e8=_0x294336,_0x2b1ce7=_0x38285f[_0x2ae6e8(0x1de)],_0xc98fb4=_0x38285f['id'],_0x4ea767=_0x38285f['className'],_0x460427=_0x38285f[_0x2ae6e8(0xcc)],_0x300d6e=ve(_0x38285f,[_0x2ae6e8(0x1de),'id',_0x2ae6e8(0x209),_0x2ae6e8(0xcc)]),_0x340b0d=_0x2ae6e8(0x1a9)['concat'](_0xc98fb4,'\x20')[_0x2ae6e8(0x1cb)](_0x4ea767||'')['trim'](),_0xc71b60=d[_0x2ae6e8(0x228)]('_'[_0x2ae6e8(0x1cb)](ge()));return H(_0x2b1ce7,''[_0x2ae6e8(0x1cb)](_0xc98fb4),{'defIds':_0x2b1ce7[_0x2ae6e8(0x198)],'idSuffix':_0xc71b60[_0x2ae6e8(0x1d7)]},g({'ref':_0x2800e4,'className':_0x340b0d},_0x300d6e),_0x460427);});function H(_0xc3e6bd,_0x2d486a,_0x87e9e0,_0x20a54a,_0x21efed){var _0x48e848=_0x294336;return d[_0x48e848(0x150)](_0xc3e6bd['tag'],g(g({'key':_0x2d486a},de(_0xc3e6bd,_0x87e9e0,_0x21efed)),_0x20a54a),(Ce(_0xc3e6bd,_0x87e9e0)[_0x48e848(0x1fc)]||[])[_0x48e848(0xc6)](function(_0x1daffc,_0x38fb54){var _0x351dcd=_0x48e848;return H(_0x1daffc,''['concat'](_0x2d486a,'-')[_0x351dcd(0x1cb)](_0xc3e6bd[_0x351dcd(0x208)],'-')['concat'](_0x38fb54),_0x87e9e0,void 0x0,_0x21efed);}));}function de(_0x174d66,_0x4cfab7,_0x5f2d2c){var _0x17c4d8=_0x294336,_0x564618=g({},_0x174d66[_0x17c4d8(0x170)]);_0x5f2d2c!=null&&_0x5f2d2c[_0x17c4d8(0x117)]&&_0x564618[_0x17c4d8(0xa4)]===_0x17c4d8(0x117)&&(_0x564618[_0x17c4d8(0xa4)]=_0x5f2d2c[_0x17c4d8(0x117)]),_0x174d66['tag']===_0x17c4d8(0xc0)&&_0x564618['id']&&(_0x564618['id']=_0x564618['id']+_0x4cfab7[_0x17c4d8(0xbd)]),Object[_0x17c4d8(0x143)](_0x564618)[_0x17c4d8(0x11d)](function(_0x18546c){var _0x533e46=_0x17c4d8,_0x3c3bb0=_0x18546c[0x0],_0x1af96e=_0x18546c[0x1];_0x3c3bb0==='mask'&&typeof _0x1af96e==_0x533e46(0xab)&&(_0x564618[_0x3c3bb0]=_0x1af96e[_0x533e46(0x187)](/url\(#(.*)\)/,_0x533e46(0xa7)[_0x533e46(0x1cb)](_0x4cfab7[_0x533e46(0xbd)],')')));});var _0x11f21c=_0x4cfab7[_0x17c4d8(0x198)];return!_0x11f21c||_0x11f21c['length']===0x0||(_0x174d66[_0x17c4d8(0x208)]===_0x17c4d8(0xa8)&&_0x564618[_0x17c4d8(0x116)]&&(_0x564618['xlink:href']=_0x564618[_0x17c4d8(0x116)]+_0x4cfab7[_0x17c4d8(0xbd)]),Object['entries'](_0x564618)[_0x17c4d8(0x11d)](function(_0x4f9d37){var _0x4efa67=_0x17c4d8,_0xe7717c=_0x4f9d37[0x0],_0x26f315=_0x4f9d37[0x1];typeof _0x26f315==_0x4efa67(0xab)&&(_0x564618[_0xe7717c]=_0x26f315['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x4cfab7[_0x4efa67(0xbd)],')')));})),_0x564618;}function Ce(_0x4c7838,_0x210c73){var _0x31a9a9=_0x294336,_0x17ae54,_0x7ec546=_0x210c73['defIds'];return!_0x7ec546||_0x7ec546['length']===0x0?_0x4c7838:_0x4c7838[_0x31a9a9(0x208)]===_0x31a9a9(0x216)&&(!((_0x17ae54=_0x4c7838[_0x31a9a9(0x1fc)])===null||_0x17ae54===void 0x0)&&_0x17ae54[_0x31a9a9(0x1d6)])?g(g({},_0x4c7838),{'children':_0x4c7838['children']['map'](function(_0x4936ec){var _0x56caf9=_0x31a9a9;return typeof _0x4936ec[_0x56caf9(0x170)]['id']==_0x56caf9(0xab)&&_0x7ec546&&_0x7ec546[_0x56caf9(0xe8)](_0x4936ec[_0x56caf9(0x170)]['id'])?g(g({},_0x4936ec),{'attrs':g(g({},_0x4936ec[_0x56caf9(0x170)]),{'id':_0x4936ec['attrs']['id']+_0x210c73[_0x56caf9(0xbd)]})}):_0x4936ec;})}):_0x4c7838;}function ge(){var _0x4ec52d=_0x294336;return Math[_0x4ec52d(0x127)]()[_0x4ec52d(0x223)](0x24)['substring'](0x2,0x8);}_[_0x294336(0x169)]=_0x294336(0x154);var fe={'tag':_0x294336(0xbf),'attrs':{'xmlns':_0x294336(0x172),'fill':_0x294336(0x13d),'viewBox':_0x294336(0xa9),'width':_0x294336(0xe9),'height':_0x294336(0xe9)},'children':[{'tag':_0x294336(0xe7),'attrs':{'fill':_0x294336(0x20c),'d':_0x294336(0x183),'fillRule':_0x294336(0x1a2),'clipRule':_0x294336(0x1a2)}}]},B=d[_0x294336(0x112)](function(_0x4933da,_0x25e350){var _0x190e0e=_0x294336;return d[_0x190e0e(0x150)](_,Object[_0x190e0e(0xd0)]({},_0x4933da,{'id':_0x190e0e(0xe2),'ref':_0x25e350,'icon':fe}));});B[_0x294336(0x169)]=_0x294336(0x1f2);var pe={'tag':_0x294336(0xbf),'attrs':{'xmlns':_0x294336(0x172),'fill':_0x294336(0x13d),'viewBox':_0x294336(0x19e),'width':_0x294336(0xe9),'height':_0x294336(0xe9)},'children':[{'tag':_0x294336(0xe7),'attrs':{'stroke':_0x294336(0x20c),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x294336(0x12e),'strokeLinejoin':_0x294336(0x12e),'strokeWidth':1.33}},{'tag':_0x294336(0xe7),'attrs':{'stroke':_0x294336(0x20c),'d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x294336(0x12e),'strokeLinejoin':_0x294336(0x12e),'strokeWidth':1.33}}]},F=d[_0x294336(0x112)](function(_0x52830b,_0x2aeb61){var _0x19e3f2=_0x294336;return d['createElement'](_,Object[_0x19e3f2(0xd0)]({},_0x52830b,{'id':_0x19e3f2(0x230),'ref':_0x2aeb61,'icon':pe}));});F[_0x294336(0x169)]=_0x294336(0x179);var he={'tag':_0x294336(0xbf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x294336(0x13d),'viewBox':'0\x200\x2016\x2016','width':_0x294336(0xe9),'height':_0x294336(0xe9)},'children':[{'tag':_0x294336(0xe7),'attrs':{'fill':_0x294336(0x20c),'d':_0x294336(0x15c)}},{'tag':_0x294336(0xe7),'attrs':{'fill':'currentColor','d':_0x294336(0xb3)}},{'tag':_0x294336(0xe7),'attrs':{'fill':_0x294336(0x20c),'d':_0x294336(0x146),'fillRule':'evenodd','clipRule':_0x294336(0x1a2)}}]},Y=d[_0x294336(0x112)](function(_0x246130,_0x59ff23){var _0x41f700=_0x294336;return d['createElement'](_,Object[_0x41f700(0xd0)]({},_0x246130,{'id':_0x41f700(0x108),'ref':_0x59ff23,'icon':he}));});Y['displayName']=_0x294336(0x174);var me={'tag':'svg','attrs':{'xmlns':_0x294336(0x172),'fill':_0x294336(0x13d),'viewBox':_0x294336(0xa9),'width':_0x294336(0xe9),'height':_0x294336(0xe9)},'children':[{'tag':'g','attrs':{'clipPath':_0x294336(0x14d)},'children':[{'tag':_0x294336(0xe7),'attrs':{'stroke':_0x294336(0x20c),'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':_0x294336(0x12e),'strokeLinejoin':_0x294336(0x12e),'strokeWidth':1.2}}]},{'tag':_0x294336(0x216),'attrs':{},'children':[{'tag':_0x294336(0xf1),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x294336(0x215),'d':_0x294336(0x17c)}}]}]}],'defIds':[_0x294336(0x193)]},q=d[_0x294336(0x112)](function(_0x18b710,_0x1544f8){var _0x47d69e=_0x294336;return d[_0x47d69e(0x150)](_,Object[_0x47d69e(0xd0)]({},_0x18b710,{'id':_0x47d69e(0x206),'ref':_0x1544f8,'icon':me}));});q['displayName']=_0x294336(0x191);var xe={'tag':'svg','attrs':{'xmlns':_0x294336(0x172),'fill':_0x294336(0x13d),'viewBox':_0x294336(0x100),'width':_0x294336(0xe9),'height':_0x294336(0xe9)},'children':[{'tag':'g','attrs':{'clipPath':_0x294336(0x164)},'children':[{'tag':_0x294336(0xe7),'attrs':{'stroke':_0x294336(0x20c),'d':_0x294336(0x1a7),'strokeLinecap':_0x294336(0x12e),'strokeLinejoin':_0x294336(0x12e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x294336(0xf1),'attrs':{'id':_0x294336(0xac)},'children':[{'tag':'path','attrs':{'fill':_0x294336(0x215),'d':_0x294336(0x17c),'transform':_0x294336(0xca)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},V=d[_0x294336(0x112)](function(_0x4dae9a,_0x2af72c){var _0x1d445f=_0x294336;return d['createElement'](_,Object[_0x1d445f(0xd0)]({},_0x4dae9a,{'id':_0x1d445f(0x1ca),'ref':_0x2af72c,'icon':xe}));});V['displayName']=_0x294336(0x1ba);function W(_0x237e68){var _0x2b266d=_0x294336,_0x489f2b,_0x155e6a;const {mcpCoreConfig:_0x39e7df,onSave:_0x4e74f6,loading:_0x129ff8=!0x1,config:_0x1512de,connectionStatus$:_0x51e4a9,connectionError$:_0x101367,currentApiKey$:_0x59d1ed,currentSessionId$:_0x329db6}=_0x237e68,_0x3eea2c=v[_0x2b266d(0x233)](l['LocaleService']),_0x54c8fc=v[_0x2b266d(0xa5)](_0x51e4a9,s[_0x2b266d(0x185)][_0x2b266d(0x1d1)]),_0x490848=v['useObservable'](_0x101367,s[_0x2b266d(0xc1)]['NONE']),_0x4fcf11=v['useObservable'](_0x329db6,''),_0x238595=v['useObservable'](_0x59d1ed,''),[_0x127cae,_0x2b45b5]=d[_0x2b266d(0xfe)](_0x238595||''),_0x17ae82=!0x0,_0x308bbc=_0x1512de[_0x2b266d(0xb0)]&&_0x39e7df[_0x2b266d(0xd8)]&&(_0x39e7df['mcpServerUrl'][_0x2b266d(0xe8)](_0x2b266d(0x123))||_0x39e7df[_0x2b266d(0xd8)][_0x2b266d(0xe8)]('univer.ai')),_0x6c4cac=(_0x489f2b=_0x39e7df[_0x2b266d(0xd8)])==null?void 0x0:_0x489f2b[_0x2b266d(0xe8)]('univer.plus'),_0x13d60c=(_0x155e6a=_0x39e7df[_0x2b266d(0xd8)])==null?void 0x0:_0x155e6a[_0x2b266d(0xe8)](_0x2b266d(0x1bc)),_0x104613=_0x6c4cac?_0x2b266d(0x1c4):_0x2b266d(0x194),_0x376ff9=_0x1512de[_0x2b266d(0xb0)]&&(_0x6c4cac||_0x13d60c),[_0x244a11,_0x55d3de]=d['useState'](!_0x127cae[_0x2b266d(0x231)]()),_0x5b95ad=(_0x1f869b,_0x3f6e72)=>{var _0x379fe7=_0x2b266d;if(_0x3f6e72===s[_0x379fe7(0xc1)][_0x379fe7(0x232)])return _0x379fe7(0xfc);switch(_0x1f869b){case s[_0x379fe7(0x185)][_0x379fe7(0x13b)]:return _0x379fe7(0xb4);case s[_0x379fe7(0x185)][_0x379fe7(0x173)]:case s[_0x379fe7(0x185)][_0x379fe7(0x17a)]:return _0x379fe7(0x12c);case s[_0x379fe7(0x185)]['FAILED']:return _0x379fe7(0xfc);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0xb61296=(_0x6852a,_0xcfc20)=>{var _0x3c7f12=_0x2b266d;if(_0xcfc20===s['MCPConnectionError']['UNAUTHORIZED'])return _0x3c7f12(0x219);switch(_0x6852a){case s[_0x3c7f12(0x185)][_0x3c7f12(0x13b)]:return'univer-bg-green-500';case s[_0x3c7f12(0x185)]['CONNECTING']:case s[_0x3c7f12(0x185)][_0x3c7f12(0x17a)]:return _0x3c7f12(0xce);case s[_0x3c7f12(0x185)][_0x3c7f12(0x140)]:return _0x3c7f12(0x219);default:return'univer-bg-gray-500';}},_0x3a85b9=_0x4490c7=>{var _0x4fd202=_0x2b266d;switch(_0x4490c7){case s[_0x4fd202(0x185)]['CONNECTED']:return _0x3eea2c['t'](_0x4fd202(0x158));case s[_0x4fd202(0x185)]['CONNECTING']:return _0x3eea2c['t']('mcpConfig.connectionStatus.connecting');case s[_0x4fd202(0x185)][_0x4fd202(0x140)]:return _0x3eea2c['t'](_0x4fd202(0xc2));case s[_0x4fd202(0x185)]['RETRYING']:return _0x3eea2c['t'](_0x4fd202(0x12b));default:return _0x3eea2c['t'](_0x4fd202(0x1fb));}},_0x485851=_0x482047=>{var _0x1e190a=_0x2b266d;switch(_0x482047){case s['MCPConnectionError'][_0x1e190a(0x232)]:return _0x3eea2c['t'](_0x1e190a(0xf4));case s['MCPConnectionError'][_0x1e190a(0x12d)]:return _0x3eea2c['t'](_0x1e190a(0x18f));case s[_0x1e190a(0xc1)][_0x1e190a(0x22f)]:return _0x3eea2c['t'](_0x1e190a(0xd5));case s[_0x1e190a(0xc1)][_0x1e190a(0x16f)]:return _0x3eea2c['t'](_0x1e190a(0x138));default:return'';}},_0x343263=d[_0x2b266d(0x19d)](()=>{var _0x1dd821=_0x2b266d;const _0x23c5f7={..._0x39e7df,'apiKey':_0x127cae[_0x1dd821(0x231)](),'enableAuth':_0x17ae82};_0x4e74f6(_0x23c5f7);},[_0x39e7df,_0x127cae,_0x17ae82,_0x4e74f6]),_0x12b4e9=_0x127cae[_0x2b266d(0x231)]()[_0x2b266d(0x1d6)]>0x0;return t['jsxs'](_0x2b266d(0xe6),{'className':_0x2b266d(0x1a8),'children':[t[_0x2b266d(0x136)](_0x2b266d(0xe6),{'className':_0x2b266d(0x1c5),'children':t['jsxs'](_0x2b266d(0xe6),{'className':_0x2b266d(0xe4),'children':[t['jsx'](_0x2b266d(0xe6),{'className':_0x2b266d(0xf6),'children':t[_0x2b266d(0x136)](_0x2b266d(0x21a),{'className':_0x2b266d(0x153),'children':'⚙'})}),t['jsx'](_0x2b266d(0xe6),{'children':t[_0x2b266d(0x136)]('p',{'className':_0x2b266d(0xff),'children':_0x3eea2c['t'](_0x2b266d(0x20e))})})]})}),t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':_0x2b266d(0x22c),'children':[t[_0x2b266d(0x136)]('div',{'className':'\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'+_0x5b95ad(_0x54c8fc,_0x490848)+_0x2b266d(0x120),'children':t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t[_0x2b266d(0x136)](_0x2b266d(0xe6),{'className':_0x2b266d(0x15b)+_0xb61296(_0x54c8fc,_0x490848)+_0x2b266d(0x14f)}),t['jsx']('span',{'className':_0x2b266d(0x159),'children':_0x3a85b9(_0x54c8fc)})]})}),_0x490848!==s['MCPConnectionError'][_0x2b266d(0x178)]&&(_0x54c8fc===s[_0x2b266d(0x185)][_0x2b266d(0x140)]||_0x490848===s[_0x2b266d(0xc1)][_0x2b266d(0x232)])&&t['jsx'](_0x2b266d(0xe6),{'className':_0x2b266d(0x204),'children':t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':_0x2b266d(0x195),'children':[t[_0x2b266d(0x136)]('span',{'className':_0x2b266d(0x1c3),'children':'⚠️'}),t[_0x2b266d(0x136)]('p',{'className':_0x2b266d(0x211),'children':_0x485851(_0x490848)})]})})]}),t[_0x2b266d(0x136)](_0x2b266d(0xe6),{'className':_0x2b266d(0x142),'children':t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':_0x2b266d(0xe1),'children':[t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':'univer-space-y-2','children':[t['jsxs'](_0x2b266d(0x104),{'className':_0x2b266d(0x152),'children':[t['jsx']('span',{'children':'🔑'}),'\x20',_0x3eea2c['t']('mcpConfig.apiKey'),t[_0x2b266d(0x136)](_0x2b266d(0x21a),{'className':_0x2b266d(0x1f1),'children':'*'}),_0x308bbc&&t['jsx']('a',{'href':_0x2b266d(0x160),'onClick':()=>_0x55d3de(!0x0),'className':_0x2b266d(0x121),'title':_0x3eea2c['t'](_0x2b266d(0x19b)),'children':t[_0x2b266d(0x136)](Y,{})})]}),t[_0x2b266d(0x136)](S[_0x2b266d(0x20f)],{'type':_0x2b266d(0x212),'placeholder':_0x3eea2c['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x127cae,'onChange':_0x2b45b5,'disabled':_0x129ff8,'autoComplete':_0x2b266d(0x1b5)}),t['jsx']('p',{'className':_0x2b266d(0x1fd),'children':_0x3eea2c['t'](_0x2b266d(0x133))})]}),_0x308bbc&&_0x244a11&&t[_0x2b266d(0x111)]('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[t[_0x2b266d(0x136)]('a',{'href':_0x2b266d(0x160),'onClick':()=>_0x55d3de(!0x1),'className':_0x2b266d(0x1ec),'title':_0x2b266d(0x1d5),'children':t[_0x2b266d(0x136)](F,{})}),t[_0x2b266d(0x111)]('div',{'className':_0x2b266d(0x103),'children':[t[_0x2b266d(0x136)]('div',{'className':'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','children':t[_0x2b266d(0x136)]('span',{'className':_0x2b266d(0x210),'children':'🚀'})}),t[_0x2b266d(0x111)]('div',{'className':_0x2b266d(0x1cf),'children':[t['jsx']('h4',{'className':_0x2b266d(0x213),'children':_0x3eea2c['t'](_0x2b266d(0x19b))}),t[_0x2b266d(0x136)]('p',{'className':_0x2b266d(0x1e0),'children':_0x3eea2c['t'](_0x2b266d(0x125))}),t[_0x2b266d(0x136)]('div',{'className':_0x2b266d(0x145),'children':_0x376ff9&&t['jsxs']('a',{'href':_0x104613,'target':_0x2b266d(0x1d3),'rel':_0x2b266d(0x156),'className':_0x2b266d(0x1f9),'children':[t['jsx']('span',{'children':'🤖'}),_0x3eea2c['t'](_0x2b266d(0xdb)),t[_0x2b266d(0x136)](_0x2b266d(0x21a),{'className':_0x2b266d(0x1ed),'children':'↗'})]})}),t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x3eea2c['t'](_0x2b266d(0x1f4))]})]})]})]}),_0x1512de[_0x2b266d(0xb0)]&&t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[t[_0x2b266d(0x111)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[t[_0x2b266d(0x136)](_0x2b266d(0x21a),{'children':'🔗'}),'\x20',_0x3eea2c['t'](_0x2b266d(0x1d4))]}),t[_0x2b266d(0x111)]('div',{'className':_0x2b266d(0xf9),'children':[t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':'univer-space-y-3','children':[t['jsx']('p',{'className':_0x2b266d(0xaf),'children':_0x3eea2c['t'](_0x2b266d(0x22d))}),t['jsxs'](_0x2b266d(0xe6),{'className':'univer-space-y-2','children':[t['jsx'](_0x2b266d(0xe6),{'className':_0x2b266d(0xa1),'children':_0x3eea2c['t'](_0x2b266d(0x207))}),t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[t[_0x2b266d(0x111)]('div',{'className':_0x2b266d(0x186),'children':[t['jsx'](_0x2b266d(0x21a),{'className':_0x2b266d(0x229),'children':'1'}),_0x3eea2c['t'](_0x2b266d(0x15f))]}),t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':_0x2b266d(0x186),'children':[t[_0x2b266d(0x136)](_0x2b266d(0x21a),{'className':_0x2b266d(0x229),'children':'2'}),_0x3eea2c['t']('mcpConfig.configStep2')]}),t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':_0x2b266d(0x186),'children':[t[_0x2b266d(0x136)](_0x2b266d(0x21a),{'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'}),_0x3eea2c['t'](_0x2b266d(0x1b0))]})]})]})]}),t[_0x2b266d(0x111)]('div',{'className':'univer-space-y-2','children':[t[_0x2b266d(0x136)](_0x2b266d(0xe6),{'className':_0x2b266d(0xa1),'children':'MCP\x20Configuration'}),t[_0x2b266d(0x136)](_0x2b266d(0xe6),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':t[_0x2b266d(0x136)](_0x2b266d(0x18b),{'className':_0x2b266d(0x13e),'children':_0x2b266d(0x1e1)+_0x4fcf11+'\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'+(_0x127cae||'<API_KEY>')+_0x2b266d(0x1e2)})})]}),t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':_0x2b266d(0x1e4),'children':[t[_0x2b266d(0x136)](_0x2b266d(0xe6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3eea2c['t'](_0x2b266d(0x1c8))}),t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':'univer-space-y-2','children':[t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[t[_0x2b266d(0x136)](_0x2b266d(0xe6),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),t['jsxs'](_0x2b266d(0xe6),{'className':_0x2b266d(0x148),'children':[t[_0x2b266d(0x136)](_0x2b266d(0xe6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2b266d(0x1f7)}),t[_0x2b266d(0x136)]('div',{'className':_0x2b266d(0x1fd),'children':_0x3eea2c['t'](_0x2b266d(0x1be))})]})]}),t[_0x2b266d(0x111)]('div',{'className':_0x2b266d(0x105),'children':[t[_0x2b266d(0x136)]('div',{'className':_0x2b266d(0x196)}),t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':_0x2b266d(0x148),'children':[t[_0x2b266d(0x136)](_0x2b266d(0xe6),{'className':_0x2b266d(0xc8),'children':_0x2b266d(0xaa)}),t[_0x2b266d(0x136)](_0x2b266d(0xe6),{'className':_0x2b266d(0x1fd),'children':_0x3eea2c['t'](_0x2b266d(0x1af))})]})]})]})]})]})]}),t[_0x2b266d(0x136)](S['Button'],{'onClick':_0x343263,'disabled':!_0x12b4e9||_0x129ff8,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x129ff8?t['jsxs'](_0x2b266d(0x21a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t[_0x2b266d(0x136)](_0x2b266d(0x21a),{'children':'⟲'}),_0x3eea2c['t']('mcpConfig.saving')]}):t[_0x2b266d(0x111)](_0x2b266d(0x21a),{'className':_0x2b266d(0x186),'children':[t[_0x2b266d(0x136)](B,{}),_0x3eea2c['t'](_0x2b266d(0xb1))]})}),t['jsx'](_0x2b266d(0xe6),{'className':_0x2b266d(0x188),'children':t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':'univer-flex\x20univer-gap-3','children':[t[_0x2b266d(0x136)]('span',{'className':_0x2b266d(0x106),'children':'💡'}),t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'className':_0x2b266d(0xdd),'children':[t['jsx'](_0x2b266d(0xe6),{'className':_0x2b266d(0x1ee),'children':_0x2b266d(0x192)}),t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'children':['•',_0x3eea2c['t']('mcpConfig.note1')]}),t[_0x2b266d(0x111)](_0x2b266d(0xe6),{'children':['•',_0x3eea2c['t'](_0x2b266d(0x1db))]})]})]})})]})})]});}const y=_0x294336(0xba),G={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object['getOwnPropertyDescriptor'],Pe=(_0x1180a0,_0x1131a8,_0x78c110,_0x2ce2be)=>{var _0x5db1ec=_0x294336;for(var _0x1ed1e5=_0x2ce2be>0x1?void 0x0:_0x2ce2be?Se(_0x1131a8,_0x78c110):_0x1131a8,_0x44bb3f=_0x1180a0[_0x5db1ec(0x1d6)]-0x1,_0xf81bf7;_0x44bb3f>=0x0;_0x44bb3f--)(_0xf81bf7=_0x1180a0[_0x44bb3f])&&(_0x1ed1e5=_0xf81bf7(_0x1ed1e5)||_0x1ed1e5);return _0x1ed1e5;},f=(_0x1c8175,_0x2f0299)=>(_0x3b0687,_0x5c7c29)=>_0x2f0299(_0x3b0687,_0x5c7c29,_0x1c8175);const D=_0x294336(0xc7),k=_0x294336(0x177);exports['MCPConfigUIController']=class extends l['Disposable']{constructor(_0x11727b,_0x5aac6c,_0x3d40ef,_0x4976cb,_0x48ea28,_0x1ac750,_0x1d0d24,_0x3f3ce2,_0x2935ee,_0x2d6524){var _0x21725c=_0x294336;super(),I(this,_0x21725c(0x15d),new N['BehaviorSubject'](!0x1)),I(this,'_mcpCoreConfig$',new N[(_0x21725c(0xad))]({})),I(this,_0x21725c(0x190),new N['BehaviorSubject']({})),I(this,_0x21725c(0x20a),new N[(_0x21725c(0xad))]('')),I(this,_0x21725c(0x200),async _0x259a22=>{var _0x5b0bc9=_0x21725c,_0x4e9319,_0x33b746;this[_0x5b0bc9(0x15d)][_0x5b0bc9(0x107)](!0x0);try{const _0x5490f9=await this[_0x5b0bc9(0x13c)](_0x259a22);if(!_0x5490f9[_0x5b0bc9(0x1df)]){this[_0x5b0bc9(0x16a)][_0x5b0bc9(0x16e)]({'type':S['MessageType'][_0x5b0bc9(0xfd)],'content':_0x5490f9['errorMessage']||this[_0x5b0bc9(0x135)]['t'](_0x5b0bc9(0x1b4))});return;}_0x259a22[_0x5b0bc9(0x225)]?await this[_0x5b0bc9(0x176)]['setItem'](D,_0x259a22[_0x5b0bc9(0x225)][_0x5b0bc9(0x231)]()):await this['_localStorageService'][_0x5b0bc9(0x137)](D),this[_0x5b0bc9(0x20a)][_0x5b0bc9(0x107)](((_0x4e9319=_0x259a22[_0x5b0bc9(0x225)])==null?void 0x0:_0x4e9319['trim']())||''),this['_mcpConnectionController'][_0x5b0bc9(0x15a)]({'Authorization':'Bearer\x20'+((_0x33b746=_0x259a22['apiKey'])==null?void 0x0:_0x33b746[_0x5b0bc9(0x231)]())}),this[_0x5b0bc9(0x16a)][_0x5b0bc9(0x16e)]({'type':S[_0x5b0bc9(0xf2)][_0x5b0bc9(0xda)],'content':this[_0x5b0bc9(0x135)]['t'](_0x5b0bc9(0x1ac))}),setTimeout(()=>{var _0xdecb21=_0x5b0bc9;this[_0xdecb21(0x171)][_0xdecb21(0x11e)](k);},0x320);}catch(_0x4624a4){this[_0x5b0bc9(0x1e5)]['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x4624a4),this[_0x5b0bc9(0x16a)][_0x5b0bc9(0x16e)]({'type':S[_0x5b0bc9(0xf2)][_0x5b0bc9(0xfd)],'content':this['_localeService']['t']('mcpConfig.configError')});}finally{this[_0x5b0bc9(0x15d)][_0x5b0bc9(0x107)](!0x1);}}),(this[_0x21725c(0x1ab)]=_0x11727b,this['_uiPartsService']=_0x5aac6c,this[_0x21725c(0xf7)]=_0x3d40ef,this[_0x21725c(0x176)]=_0x4976cb,this['_dialogService']=_0x48ea28,this[_0x21725c(0x16a)]=_0x1ac750,this[_0x21725c(0x13a)]=_0x1d0d24,this['_localeService']=_0x3f3ce2,this[_0x21725c(0x1e5)]=_0x2935ee,this[_0x21725c(0x18c)]=_0x2d6524,this[_0x21725c(0xae)](),this[_0x21725c(0x1b3)](),this[_0x21725c(0xed)]());}[_0x294336(0x163)](){var _0x53c0c2=_0x294336;const _0x50f142=this[_0x53c0c2(0xf7)][_0x53c0c2(0x214)](y);_0x50f142!=null&&_0x50f142['showDeveloperTools']&&this[_0x53c0c2(0x171)][_0x53c0c2(0x180)]({'id':k,'title':{'title':this[_0x53c0c2(0x135)]['t'](_0x53c0c2(0x129))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x112460=_0x53c0c2;this[_0x112460(0x171)]['close'](k);}});}[_0x294336(0x22a)](){var _0x8d7aae=_0x294336;return this[_0x8d7aae(0x167)][_0x8d7aae(0x10c)];}[_0x294336(0xed)](){var _0x4bb74c=_0x294336;this['disposeWithMe'](this[_0x4bb74c(0x13a)][_0x4bb74c(0x118)]('MCPConfigPanel',this['_createConfigPanelComponent']()));}[_0x294336(0x18d)](){var _0x27c17f=_0x294336;return v[_0x27c17f(0x1f6)](()=>{var _0x33de72=_0x27c17f,_0x599028,_0x2f1b32,_0x199ef1;return t[_0x33de72(0x136)](W,{'config':this[_0x33de72(0x190)][_0x33de72(0x10c)],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x33de72(0x200)],'loading':this[_0x33de72(0x15d)]['value'],'connectionStatus$':(_0x599028=this[_0x33de72(0x18c)])==null?void 0x0:_0x599028[_0x33de72(0x1cd)],'connectionError$':(_0x2f1b32=this[_0x33de72(0x18c)])==null?void 0x0:_0x2f1b32[_0x33de72(0x130)],'currentSessionId$':(_0x199ef1=this[_0x33de72(0x18c)])==null?void 0x0:_0x199ef1['sessionId$']});},this['_injector']);}[_0x294336(0xae)](){var _0xf84a37=_0x294336;this[_0xf84a37(0x181)](this[_0xf84a37(0xf7)][_0xf84a37(0x13f)](s['MCP_PLUGIN_CONFIG_KEY'])[_0xf84a37(0x1e8)](_0x103443=>{var _0x346888=_0xf84a37;this[_0x346888(0x167)]['next'](_0x103443||{});}));const _0xbc689f=this['_configService'][_0xf84a37(0x214)](s['MCP_PLUGIN_CONFIG_KEY']);this['_mcpCoreConfig$']['next'](_0xbc689f||{}),this[_0xf84a37(0x181)](this[_0xf84a37(0xf7)][_0xf84a37(0x13f)](y)['subscribe'](_0x214c9e=>{var _0x27f6b2=_0xf84a37;this['_config$'][_0x27f6b2(0x107)](_0x214c9e||{});}));const _0x40897f=this[_0xf84a37(0xf7)][_0xf84a37(0x214)](y);this['_config$'][_0xf84a37(0x107)](_0x40897f||{});}async['_loadStoredApiKey'](){var _0x18a6fb=_0x294336;const _0x3cabce=this['_configService'][_0x18a6fb(0x214)](y);if(!(_0x3cabce!=null&&_0x3cabce[_0x18a6fb(0xb0)]))return;const _0x491a12=await this[_0x18a6fb(0x176)][_0x18a6fb(0x21b)](D);_0x491a12&&(this[_0x18a6fb(0x18c)][_0x18a6fb(0x15a)]({'Authorization':'Bearer\x20'+_0x491a12}),this[_0x18a6fb(0x20a)][_0x18a6fb(0x107)](_0x491a12));}async[_0x294336(0x13c)](_0x2dcd4c){var _0xdab4f9=_0x294336;if(!_0x2dcd4c['apiKey']||_0x2dcd4c[_0xdab4f9(0x225)][_0xdab4f9(0x231)]()[_0xdab4f9(0x1d6)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0xdab4f9(0x135)]['t'](_0xdab4f9(0x1c1))};if(_0x2dcd4c[_0xdab4f9(0x225)]['trim']()[_0xdab4f9(0x1d6)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0xdab4f9(0x1a1))};try{const _0x32fc5a=await this['_injector']['get'](s[_0xdab4f9(0x16b)])['validateApiKey'](_0x2dcd4c['apiKey'][_0xdab4f9(0x231)]());return _0x32fc5a['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x32fc5a[_0xdab4f9(0xc3)]||this[_0xdab4f9(0x135)]['t'](_0xdab4f9(0x227))};}catch(_0xcc129b){return console[_0xdab4f9(0x19c)](_0xdab4f9(0x175),_0xcc129b),{'isValid':!0x0};}}},exports[_0x294336(0x1c2)]=Pe([f(0x0,l['Inject'](l['Injector'])),f(0x1,v[_0x294336(0x102)]),f(0x2,l[_0x294336(0x1c0)]),f(0x3,l[_0x294336(0xeb)]),f(0x4,v[_0x294336(0xde)]),f(0x5,v[_0x294336(0x205)]),f(0x6,l[_0x294336(0x1b9)](v[_0x294336(0x14b)])),f(0x7,l[_0x294336(0x1b9)](l['LocaleService'])),f(0x8,l['ILogService']),f(0x9,l[_0x294336(0x1b9)](s[_0x294336(0x16b)]))],exports[_0x294336(0x1c2)]);const j={'id':'mcp-ui.command.openConfigPanel','type':l[_0x294336(0x151)][_0x294336(0xd6)],'handler':async(_0x6ab92f,_0x25c46e)=>(_0x6ab92f[_0x294336(0x1d0)](exports[_0x294336(0x1c2)])[_0x294336(0x163)](),!0x0)};function Z(_0x13b975,_0x3a74c1){var _0xce9c39=_0x294336;switch(_0x13b975){case s[_0xce9c39(0x185)][_0xce9c39(0x1d1)]:return _0xce9c39(0x1a0);case s[_0xce9c39(0x185)][_0xce9c39(0x173)]:return'mcpStatus.connecting';case s[_0xce9c39(0x185)][_0xce9c39(0x13b)]:return _0xce9c39(0x1ea);case s[_0xce9c39(0x185)]['FAILED']:switch(_0x3a74c1){case s[_0xce9c39(0xc1)][_0xce9c39(0x232)]:return _0xce9c39(0x18e);case s[_0xce9c39(0xc1)][_0xce9c39(0x12d)]:return _0xce9c39(0x21e);case s[_0xce9c39(0xc1)][_0xce9c39(0x22f)]:return _0xce9c39(0xa3);case s[_0xce9c39(0xc1)]['MAX_RETRIES_EXCEEDED']:return _0xce9c39(0x17e);default:return _0xce9c39(0xf5);}case s[_0xce9c39(0x185)][_0xce9c39(0x17a)]:return _0xce9c39(0x22b);default:return _0xce9c39(0x155);}}function ye(_0x474392,_0x36ec3f,_0x29b726,_0x184880=!0x0){var _0x1ae0fa=_0x294336;const _0x348150=Z(_0x474392,_0x36ec3f),_0x2d8f17=_0x29b726['t'](_0x348150);return _0x184880?_0x474392===s[_0x1ae0fa(0x185)][_0x1ae0fa(0x1d1)]&&_0x36ec3f===s[_0x1ae0fa(0xc1)]['UNAUTHORIZED']?_0x2d8f17+'\x20-\x20'+_0x29b726['t']('mcpStatus.clickToConfigure'):_0x474392===s['MCPConnectionStatus'][_0x1ae0fa(0x13b)]?''+_0x2d8f17:_0x474392===s[_0x1ae0fa(0x185)][_0x1ae0fa(0x1d1)]||_0x474392===s['MCPConnectionStatus'][_0x1ae0fa(0x140)]?_0x2d8f17+_0x1ae0fa(0x11a)+_0x29b726['t']('mcpStatus.clickToConnect'):_0x2d8f17:_0x2d8f17;}function Ie(_0x451eda){var _0x2749e7=_0x294336;switch(_0x451eda){case s['MCPConnectionStatus'][_0x2749e7(0x13b)]:return _0x2749e7(0x1f5);case s[_0x2749e7(0x185)][_0x2749e7(0x173)]:case s[_0x2749e7(0x185)][_0x2749e7(0x17a)]:return _0x2749e7(0xfa);case s['MCPConnectionStatus'][_0x2749e7(0x140)]:case s['MCPConnectionStatus'][_0x2749e7(0x1d1)]:return _0x2749e7(0x1f1);default:return'univer-text-gray-500';}}function X(_0x44c964){var _0x54f54f=_0x294336;const {status$:_0x500b58,error$:_0x13cb0b,onConfigure:_0x37d4f7,showClickable:_0x3487d5=!0x0}=_0x44c964,_0xe8ebb4=v['useObservable'](_0x500b58,s[_0x54f54f(0x185)][_0x54f54f(0x1d1)]),_0x48295d=v[_0x54f54f(0xa5)](_0x13cb0b,s[_0x54f54f(0xc1)][_0x54f54f(0x178)]),_0x392d13=v[_0x54f54f(0x233)](l['LocaleService']),_0x390c21=_0xe8ebb4===s[_0x54f54f(0x185)][_0x54f54f(0x13b)];_0xe8ebb4===s[_0x54f54f(0x185)][_0x54f54f(0x173)]||s[_0x54f54f(0x185)][_0x54f54f(0x17a)];const _0x5705c5=_0x392d13['t'](Z(_0xe8ebb4,_0x48295d)),_0x4960a2=ye(_0xe8ebb4,_0x48295d,_0x392d13,_0x3487d5),_0x10abc2=Ie(_0xe8ebb4),_0x9f1131=_0x390c21?t[_0x54f54f(0x136)](V,{}):t['jsx'](q,{}),_0x3cfd06=d[_0x54f54f(0x19d)](()=>{_0x3487d5&&_0x37d4f7&&_0x37d4f7();},[_0x3487d5,_0x37d4f7]);function _0x909e2e(){var _0x5a827e=_0x54f54f;return t[_0x5a827e(0x111)](_0x5a827e(0xe6),{'className':S[_0x5a827e(0x1b7)]('univer-flex\x20univer-items-center',_0x3487d5&&_0x37d4f7&&_0x5a827e(0x1e7)),'onClick':_0x3487d5&&_0x37d4f7?_0x3cfd06:void 0x0,'children':[t['jsx'](_0x5a827e(0xe6),{'className':S[_0x5a827e(0x1b7)](_0x5a827e(0xa2),_0x10abc2),'children':_0x9f1131}),t[_0x5a827e(0x136)](_0x5a827e(0xe6),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5705c5})]});}return t[_0x54f54f(0x136)](S[_0x54f54f(0x17b)],{'title':_0x4960a2,'placement':_0x54f54f(0xcb),'children':_0x909e2e()});}var _e=Object['getOwnPropertyDescriptor'],Me=(_0x49b3d8,_0x24b3fd,_0x2d4e60,_0x4e2a85)=>{var _0x1a5563=_0x294336;for(var _0x165ce6=_0x4e2a85>0x1?void 0x0:_0x4e2a85?_e(_0x24b3fd,_0x2d4e60):_0x24b3fd,_0x5230cb=_0x49b3d8[_0x1a5563(0x1d6)]-0x1,_0x5b7458;_0x5230cb>=0x0;_0x5230cb--)(_0x5b7458=_0x49b3d8[_0x5230cb])&&(_0x165ce6=_0x5b7458(_0x165ce6)||_0x165ce6);return _0x165ce6;},b=(_0x1ca1b3,_0x3e5ed7)=>(_0x31e64f,_0x13e7ac)=>_0x3e5ed7(_0x31e64f,_0x13e7ac,_0x1ca1b3);exports[_0x294336(0x114)]=class extends l[_0x294336(0xf8)]{constructor(_0x38b040,_0x58f2cc,_0x625578,_0x12f018){var _0x23b1dc=_0x294336;super(),this[_0x23b1dc(0x1ab)]=_0x38b040,this[_0x23b1dc(0x1dc)]=_0x58f2cc,this['_uiPartsService']=_0x625578,this[_0x23b1dc(0xf7)]=_0x12f018,this[_0x23b1dc(0x1f8)](),this[_0x23b1dc(0x184)]();}[_0x294336(0x1f8)](){var _0x3885e9=_0x294336;const _0x1238c5=this[_0x3885e9(0xf7)]['getConfig'](y);_0x1238c5!=null&&_0x1238c5['showDeveloperTools']&&(this['_connectionController']['enableAutoConnect']=!0x1);}['_initStatusComponent'](){var _0x343e43=_0x294336;const _0x2a0594=this[_0x343e43(0xf7)][_0x343e43(0x214)](y);(_0x2a0594==null?void 0x0:_0x2a0594[_0x343e43(0xb5)])!==!0x1&&this[_0x343e43(0x181)](this[_0x343e43(0x1a6)][_0x343e43(0xdf)](v[_0x343e43(0xe3)]['HEADER_MENU'],()=>{var _0x2b70f3=_0x343e43,_0x110486;return v['connectInjector'](Ne({'status$':this[_0x2b70f3(0x1dc)][_0x2b70f3(0x1cd)],'error$':this[_0x2b70f3(0x1dc)]['connectionError$'],'onConfigure':()=>this[_0x2b70f3(0x9e)](),'showClickable':(_0x110486=_0x2a0594==null?void 0x0:_0x2a0594[_0x2b70f3(0xb0)])!=null?_0x110486:!0x1}),this['_injector']);}));}[_0x294336(0x9e)](){var _0x4df994=_0x294336;this[_0x4df994(0x1ab)][_0x4df994(0x1d0)](exports['MCPConfigUIController'])['showConfigPanel']();}},exports[_0x294336(0x114)]=Me([b(0x0,l[_0x294336(0x1b9)](l[_0x294336(0x1aa)])),b(0x1,l[_0x294336(0x1b9)](s['MCPConnectionController'])),b(0x2,v['IUIPartsService']),b(0x3,l[_0x294336(0x1c0)])],exports['MCPConnectionUIController']);function Ne(_0x54dbbf){const {status$:_0x2d1d8d,error$:_0x1d711a,onConfigure:_0x4ebe27,showClickable:_0x20b2c9}=_0x54dbbf;return function(){var _0x4b565f=_0x5131;return t[_0x4b565f(0x136)](X,{'status$':_0x2d1d8d,'error$':_0x1d711a,'onConfigure':_0x4ebe27,'showClickable':_0x20b2c9});};}function be(_0x45cfc4){var _0x13562e=_0x294336;return{'id':j['id'],'type':v['MenuItemType'][_0x13562e(0x189)],'icon':_0x13562e(0x15e),'title':_0x13562e(0x129),'tooltip':_0x13562e(0x129)};}const je={[v[_0x294336(0x17d)][_0x294336(0xb8)]]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object['getOwnPropertyDescriptor'],we=(_0x24c3de,_0x20e76e,_0x5602b4,_0x128fe3)=>{var _0x42bc48=_0x294336;for(var _0x3a3147=_0x128fe3>0x1?void 0x0:_0x128fe3?Ee(_0x20e76e,_0x5602b4):_0x20e76e,_0x566efa=_0x24c3de[_0x42bc48(0x1d6)]-0x1,_0x2e6b30;_0x566efa>=0x0;_0x566efa--)(_0x2e6b30=_0x24c3de[_0x566efa])&&(_0x3a3147=_0x2e6b30(_0x3a3147)||_0x3a3147);return _0x3a3147;},z=(_0x102828,_0x5302d4)=>(_0x27fd2e,_0x32f775)=>_0x5302d4(_0x27fd2e,_0x32f775,_0x102828);exports['MCPUIMenuController']=class extends l[_0x294336(0xf8)]{constructor(_0x8487c8,_0xb475fa){var _0x17f93c=_0x294336;super(),this['_commandService']=_0x8487c8,this[_0x17f93c(0xbb)]=_0xb475fa,this[_0x17f93c(0xee)](),this[_0x17f93c(0xd9)]();}[_0x294336(0xee)](){var _0x598a01=_0x294336;[j][_0x598a01(0x11d)](_0x4c8a29=>{var _0x231c01=_0x598a01;this['disposeWithMe'](this['_commandService'][_0x231c01(0x149)](_0x4c8a29));});}[_0x294336(0xd9)](){this['_menuManagerService']['mergeMenu'](je);}},exports['MCPUIMenuController']=we([z(0x0,l[_0x294336(0x147)]),z(0x1,v[_0x294336(0x1ff)])],exports[_0x294336(0x134)]);const Oe={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x294336(0x11c),'connected':'MCP\x20Connected','failed':_0x294336(0xc5),'retrying':_0x294336(0xc4),'unknown':_0x294336(0x1f3),'unauthorized':_0x294336(0x165),'sessionOccupied':_0x294336(0xfb),'networkError':_0x294336(0x119),'maxRetriesExceeded':_0x294336(0x1d2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x294336(0x101)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x294336(0xf3),'apiKey':_0x294336(0x1ad),'apiKeyPlaceholder':_0x294336(0xdc),'apiKeyHint':_0x294336(0x201),'enableAuth':_0x294336(0xea),'enableAuthHint':_0x294336(0xd3),'connectionInfo':_0x294336(0xa0),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x294336(0x197),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x294336(0x110),'configStep2':_0x294336(0xd1),'configStep3':_0x294336(0x1b1),'sessionId':'Session\x20ID','sessionIdDescription':_0x294336(0x19f),'authorizationDescription':_0x294336(0x221),'configParameters':_0x294336(0x126),'maxRetries':_0x294336(0x217),'save':_0x294336(0xef),'saving':_0x294336(0xbe),'note1':_0x294336(0xb9),'note2':_0x294336(0xb6),'configSaved':_0x294336(0x11b),'configError':_0x294336(0x139),'apiApplyInfo':{'title':_0x294336(0x162),'description':_0x294336(0x20b),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x294336(0x10d),'apiKeyTooShort':_0x294336(0x14c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x294336(0x1d8),'connecting':_0x294336(0x1ce),'connected':_0x294336(0x226),'failed':_0x294336(0x157),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x294336(0x115),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x294336(0x161)}}},Ae={'mcpStatus':{'disconnected':_0x294336(0x1dd),'connecting':_0x294336(0x224),'connected':_0x294336(0x1bd),'failed':'MCP\x20连接失败','retrying':_0x294336(0x222),'unknown':'MCP\x20状态未知','unauthorized':_0x294336(0x113),'sessionOccupied':_0x294336(0xb7),'networkError':_0x294336(0x124),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x294336(0xd7),'clickToConfigure':_0x294336(0x203)},'mcpConfig':{'title':_0x294336(0x20d),'description':_0x294336(0x218),'apiKey':_0x294336(0x1fe),'apiKeyPlaceholder':_0x294336(0x131),'apiKeyHint':_0x294336(0x1e6),'enableAuth':'启用身份验证','enableAuthHint':_0x294336(0x12a),'connectionInfo':_0x294336(0x1eb),'mcpClientConfig':_0x294336(0x1eb),'configInstructions':_0x294336(0xc9),'configStepTitle':_0x294336(0xa6),'configStep1':_0x294336(0x11f),'configStep2':_0x294336(0x1b6),'configStep3':_0x294336(0xcf),'sessionId':_0x294336(0x1a4),'sessionIdDescription':_0x294336(0x21d),'authorizationDescription':_0x294336(0x1cc),'configParameters':'配置参数:','maxRetries':_0x294336(0x1f0),'save':_0x294336(0xf0),'saving':_0x294336(0xb2),'note1':_0x294336(0x1fa),'note2':_0x294336(0xbc),'configSaved':_0x294336(0xd4),'configError':_0x294336(0x132),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x294336(0x1da),'univerAiLabel':_0x294336(0x1d9),'getStarted':_0x294336(0x1ef)},'validation':{'apiKeyRequired':_0x294336(0x10b),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x294336(0x128)},'connectionStatus':{'disconnected':_0x294336(0xd2),'connecting':'连接中...','connected':'已连接','failed':_0x294336(0x22e),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x294336(0x10f),'sessionOccupied':_0x294336(0x220),'networkError':_0x294336(0xe5),'maxRetriesExceeded':_0x294336(0x182)}}};var De=Object['defineProperty'],ke=Object[_0x294336(0x1ae)],Ue=(_0x3230e9,_0x58ceff,_0x4e47d1)=>_0x58ceff in _0x3230e9?De(_0x3230e9,_0x58ceff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e47d1}):_0x3230e9[_0x58ceff]=_0x4e47d1,Te=(_0x895d23,_0x152b06,_0x2f3eda,_0x1b1a50)=>{var _0x440011=_0x294336;for(var _0xc168de=_0x1b1a50>0x1?void 0x0:_0x1b1a50?ke(_0x152b06,_0x2f3eda):_0x152b06,_0x53071d=_0x895d23[_0x440011(0x1d6)]-0x1,_0x4fb700;_0x53071d>=0x0;_0x53071d--)(_0x4fb700=_0x895d23[_0x53071d])&&(_0xc168de=_0x4fb700(_0xc168de)||_0xc168de);return _0xc168de;},M=(_0x3f87ed,_0x3abab3)=>(_0x593fe7,_0xad9fab)=>_0x3abab3(_0x593fe7,_0xad9fab,_0x3f87ed),$e=(_0x4a6f55,_0xeccdce,_0x10a76)=>Ue(_0x4a6f55,_0xeccdce+'',_0x10a76);exports[_0x294336(0x12f)]=class extends l[_0x294336(0x1b2)]{constructor(_0xc4864a=G,_0x3b0cf1,_0x284195,_0x633d73,_0x33d80f,_0x17c52f){var _0x299521=_0x294336;super(),this[_0x299521(0x202)]=_0xc4864a,this[_0x299521(0x1ab)]=_0x3b0cf1,this[_0x299521(0xf7)]=_0x284195,this['_uiPartsService']=_0x633d73,this[_0x299521(0x176)]=_0x33d80f,this[_0x299521(0x135)]=_0x17c52f;const {..._0x3728a2}=l[_0x299521(0x17f)]({},G,this['_config']);this['_configService']['setConfig'](y,_0x3728a2);}async[_0x294336(0x1c7)](){var _0x38e439=_0x294336;const _0x35302b=[[exports['MCPConnectionUIController']],[exports[_0x38e439(0x1c2)]],[exports[_0x38e439(0x134)]]];this['_injector'][_0x38e439(0x10a)](A['ISocketService'])||_0x35302b[_0x38e439(0x1c6)]([A[_0x38e439(0x18a)],{'useClass':A['WebSocketService']}]),_0x35302b[_0x38e439(0x11d)](_0x2c5c12=>this['_injector'][_0x38e439(0x1bf)](_0x2c5c12)),this[_0x38e439(0x1ab)][_0x38e439(0x1d0)](exports['MCPConnectionUIController']),this[_0x38e439(0x1ab)][_0x38e439(0x1d0)](exports[_0x38e439(0x1c2)]),this[_0x38e439(0x1ab)][_0x38e439(0x1d0)](exports[_0x38e439(0x134)]);}},$e(exports[_0x294336(0x12f)],'pluginName','MCP_UI_PLUGIN'),exports[_0x294336(0x12f)]=Te([l[_0x294336(0xe0)](s[_0x294336(0x168)]),M(0x1,l['Inject'](l[_0x294336(0x1aa)])),M(0x2,l[_0x294336(0x1c0)]),M(0x3,v[_0x294336(0x102)]),M(0x4,l[_0x294336(0xeb)]),M(0x5,l[_0x294336(0x1b9)](l['LocaleService']))],exports['UniverMCPUIPlugin']),exports[_0x294336(0x1a5)]=W,exports[_0x294336(0x14a)]=X,exports['OpenMCPConfigPanelCommand']=j,exports[_0x294336(0x10e)]=Oe,exports[_0x294336(0x199)]=Ae;
1
+ 'use strict';var _0x301b8c=_0x5c3a;(function(_0x2958a9,_0xf4957c){var _0x4da45d=_0x5c3a,_0x28e391=_0x2958a9();while(!![]){try{var _0x15e852=parseInt(_0x4da45d(0x2e8))/0x1+-parseInt(_0x4da45d(0x2c2))/0x2+-parseInt(_0x4da45d(0x26d))/0x3*(-parseInt(_0x4da45d(0x20d))/0x4)+-parseInt(_0x4da45d(0x18f))/0x5*(parseInt(_0x4da45d(0x1ca))/0x6)+-parseInt(_0x4da45d(0x2f1))/0x7*(parseInt(_0x4da45d(0x29a))/0x8)+parseInt(_0x4da45d(0x244))/0x9*(parseInt(_0x4da45d(0x2c0))/0xa)+parseInt(_0x4da45d(0x25b))/0xb*(parseInt(_0x4da45d(0x1d8))/0xc);if(_0x15e852===_0xf4957c)break;else _0x28e391['push'](_0x28e391['shift']());}catch(_0x5aa6a0){_0x28e391['push'](_0x28e391['shift']());}}}(_0x33ae,0x56f16));var ue=Object['defineProperty'],le=(_0x316b8a,_0x1b6903,_0x9f4e26)=>_0x1b6903 in _0x316b8a?ue(_0x316b8a,_0x1b6903,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9f4e26}):_0x316b8a[_0x1b6903]=_0x9f4e26,I=(_0x33eaff,_0x19f4ad,_0x237716)=>le(_0x33eaff,typeof _0x19f4ad!=_0x301b8c(0x1c7)?_0x19f4ad+'':_0x19f4ad,_0x237716);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x301b8c(0x297)});const l=require('@univerjs/core'),t=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),S=require('@univerjs/design'),v=require('@univerjs/ui'),N=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _0x33ae(){var _0x3fb6e4=['univer.plus','HelpSingle','replace','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-text-gray-400','启用身份验证以获得安全连接','Configuration\x20Steps:','connectionStatus$','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-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','_createConfigPanelComponent','entries','UniverIcon','get','univer-text-yellow-500','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Injector','createElement','attrs','M0\x200H16V16H0z','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','children','Retrying...','show','univer-flex-shrink-0\x20univer-text-blue-500','tag','push','univer-text-gray-500','mcpConfig.connectionError.unauthorized','propertyIsEnumerable','连接失败','_apiKey$','Max\x20Retries','univer-space-y-4','mcpConfig.validation.apiKeyRequired','mcpConfig.connectionStatus.retrying','_injector','DependentOn','Button','MCP:\x20未授权','2241870ZDPjIl','_initializeCommands','MCPConfigPanel','url(#off-line-icon_clip0_910_343)','ICommandService','连接中...','_registerComponent','defs','onStarting','icon','connectInjector','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','url(#$1','white','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20连接中...','mcpStatus.connecting','MCP\x20Disconnected','mcpStatus.disconnected','javascript:void(0)','trim','subscribeConfigValue$','univer-bg-green-500','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','string','useCallback','Input','_componentManager','off-line-icon','RETRYING','M5.21243\x205.62036L11.8791\x2012.287','span','\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','IMenuManagerService','_validateConfig','assign','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Authorization:','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','ComponentManager','error','mcpConfig.configStepTitle','What\x20is\x20API\x20Key?','NETWORK_ERROR','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','useRef','colorChannel1','use','zhCN','univer-bg-gray-500','univer-flex\x20univer-items-center\x20univer-gap-3','Saving...','Success','_handleConfigSave','symbol','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20状态未知','6QZosCh','univer-font-medium','MCP:\x20Network\x20Error','IUIPartsService','disposeWithMe','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.connectionError.networkError','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','getOwnPropertySymbols','Click\x20to\x20connect\x20MCP','UniverMCPUIPlugin','LocaleService','API\x20密钥长度至少需要\x2010\x20位','Configuration\x20Parameters:','162096gCASmo','getItem','OTHERS','next','univer-text-green-500','MCPConnectionController','forEach','MCP\x20Client\x20Configuration','function','WebSocketService','MCPStatusDisplay','univer-text-blue-600','_initializeMenus','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20连接失败','MCPUIMenuController','MCP\x20Connection\x20Failed','univer-text-sm\x20univer-text-gray-500','CheckMarkIcon','registerCommand','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Save\x20Configuration','_config$','setItem','_handleConfigure','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','extend','mcpConfig.configStep2','_dialogService','Enable\x20Authentication','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','{\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=','保存配置','add','什么是\x20API\x20密钥?','mcpStatus.connected','IConfigService','call','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','RibbonStartGroup','CommandType','mcpStatus.clickToConfigure','showConfigPanel','univer-text-xs\x20univer-text-gray-500','_localStorageService','none','univer-space-y-3','MCP\x20客户端配置','MCP_PLUGIN_CONFIG_KEY','mcpConfig.connectionStatus.connected','map','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','69164NLKaBj','API\x20Key','on-line-icon_clip0_910_349','idSuffix','hasOwnProperty','mcpConfig.description','_uiPartsService','help-single','将以下配置添加到您的\x20MCP\x20客户端设置中:','点击配置\x20MCP','MAX_RETRIES_EXCEEDED','将配置添加到您的\x20MCP\x20客户端设置文件中','Click\x20to\x20configure\x20MCP','mcpConfig.configStep3','univer-flex\x20univer-flex-wrap\x20univer-gap-2','0\x200\x2017\x2017','mcpServerUrl','mcp-config-dialog','getOwnPropertyDescriptor','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_mcpConnectionController','http://www.w3.org/2000/svg','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','on-line-icon','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.connectionInfo','Disposable','Configuration\x20saved\x20successfully','mcpConfig.configParameters','MCP:\x20Max\x20Retries\x20Exceeded','label','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','errorMessage','mcpConfig.note2','url(#on-line-icon_clip0_910_349)','univer-text-red-500','mcpConfig.saving','univer-text-sm\x20univer-font-medium','OpenMCPConfigPanelCommand','mcpConfig.validation.invalidConfig','_connectionController','_localeService','MCP:\x20网络错误','已连接','ILocalStorageService','mcpConfig.configStep1','BehaviorSubject','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','UniverMCPPlugin','会话ID','mcpStatus.networkError','BuiltInUIPart','_loading$','enUS','45yvLPFP','mcpStatus.failed','配置无效','concat','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','className','mask','Univer\x20AI\x20Console','网络连接错误,请检查您的网络连接','apiKey','_configService','MCPConnectionError','0\x200\x2016\x2016','Bearer\x20','showDeveloperTools','check-mark-icon','API\x20密钥不能为空','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','配置保存失败','请输入您的\x20API\x20密钥','univerjs-icon\x20univerjs-icon-','showStatus','jsx','539rndBib','connectionError$','currentColor','MCPConfigUIController','Connection\x20Failed','Inject','univer-bg-red-500','重连中...','bottom','xlink:href','API\x20密钥','配置保存成功','mergeMenu','text','close','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.maxRetriesExceeded','39RKNlfG','length','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','IDialogService','univer-min-w-0\x20univer-flex-1','启用身份验证','_initConfigSync','SESSION_ID_OCCUPIED','mcpConfig.apiApplyInfo.getStarted','_mcpCoreConfig$','mcpConfig.connectionError.maxRetriesExceeded','univer-space-y-2','API\x20key\x20with\x20Bearer\x20prefix.','useDependency','mcpConfig.apiApplyInfo.univerAiLabel','random','FAILED','mcpConfig.connectionStatus.connecting','indexOf','mcpConfig.save','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','includes','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpStatus.unauthorized','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcp-ui.config','defIds','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','_logService','univer-flex\x20univer-items-center','_loadStoredApiKey','mcpStatus.retrying','MenuIcon','useObservable','mcpConfig.note1','sessionId$','mcpConfig.configError','off-line-icon_clip0_910_343','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','\x20-\x20','Module','noopener\x20noreferrer','clsx','336560uANVEk','NONE','CloseSmallSingle','最大重试次数','setConfig','getConfig','_messageService','HEADER_MENU','M5.21243\x2012.287L11.8791\x205.62036','MenuItemType','round','div','Connected','__setCustomHeaders','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','svg','MCP:\x20超出最大重试次数','Tooltip','1em','useState','off','MCPConnectionUIController','subscribe','mcpConfig.title','OnLineIcon','MCP\x20Connected','\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','mcpStatus.clickToConnect','0\x200\x2017\x2016','MCP\x20重连中...','_config','BUTTON','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-text-white','Plugin','MCP\x20Retrying...','权限验证失败,请检查您的\x20API\x20密钥','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','691850pBTcka','value','288602nescML','DISCONNECTED','mcpConfig.validation.apiKeyTooShort','mcpConfig.apiApplyInfo.title','univer-text-xs\x20univer-text-gray-600','\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','register','univer.ai','_initStatusComponent','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','enableAutoConnect','CONNECTING','displayName','mcpConfig.connectionStatus.disconnected','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','mcpStatus.sessionOccupied','MCP\x20已断开','MCPConnectionStatus','warn','您的\x20API\x20密钥将在此浏览器中本地存储','IMessageService','prototype','mcpConfig.apiKeyPlaceholder','evenodd','isValid','Close','univer-flex-1','_commandService','univer-flex-shrink-0\x20univer-text-red-500','univer-flex\x20univer-gap-3','_menuManagerService','https://console.univer.ai','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','path','forwardRef','Copy\x20the\x20JSON\x20configuration\x20below','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20Connecting...','136893NRlNkM','fill','_initAutoConnect','jsxs','CONNECTED','mcpConfig.apiKeyHint','open','UNAUTHORIZED','几秒钟内获取您的\x20API\x20密钥','70DANOzT','COMMAND','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20已连接','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.configInstructions','MessageType','mcpConfig.apiKey'];_0x33ae=function(){return _0x3fb6e4;};return _0x33ae();}var g=function(){var _0x23b9fe=_0x301b8c;return g=Object[_0x23b9fe(0x1b3)]||function(_0x5d8a32){var _0xe529fa=_0x23b9fe;for(var _0x436eba,_0x241f7e=0x1,_0x4ada1f=arguments[_0xe529fa(0x26e)];_0x241f7e<_0x4ada1f;_0x241f7e++){_0x436eba=arguments[_0x241f7e];for(var _0x542fcd in _0x436eba)Object['prototype']['hasOwnProperty'][_0xe529fa(0x1fe)](_0x436eba,_0x542fcd)&&(_0x5d8a32[_0x542fcd]=_0x436eba[_0x542fcd]);}return _0x5d8a32;},g['apply'](this,arguments);},ve=function(_0x4c0ac8,_0x40d8ac){var _0x26819d=_0x301b8c,_0x42b9eb={};for(var _0xb34ab in _0x4c0ac8)Object[_0x26819d(0x2d7)][_0x26819d(0x211)][_0x26819d(0x1fe)](_0x4c0ac8,_0xb34ab)&&_0x40d8ac[_0x26819d(0x280)](_0xb34ab)<0x0&&(_0x42b9eb[_0xb34ab]=_0x4c0ac8[_0xb34ab]);if(_0x4c0ac8!=null&&typeof Object[_0x26819d(0x1d2)]==_0x26819d(0x1e0)){for(var _0xfa286a=0x0,_0xb34ab=Object[_0x26819d(0x1d2)](_0x4c0ac8);_0xfa286a<_0xb34ab[_0x26819d(0x26e)];_0xfa286a++)_0x40d8ac[_0x26819d(0x280)](_0xb34ab[_0xfa286a])<0x0&&Object[_0x26819d(0x2d7)][_0x26819d(0x184)][_0x26819d(0x1fe)](_0x4c0ac8,_0xb34ab[_0xfa286a])&&(_0x42b9eb[_0xb34ab[_0xfa286a]]=_0x4c0ac8[_0xb34ab[_0xfa286a]]);}return _0x42b9eb;},_=d[_0x301b8c(0x2e4)](function(_0x22d883,_0x1476eb){var _0x4ddfd1=_0x301b8c,_0x422a94=_0x22d883[_0x4ddfd1(0x198)],_0xab11d7=_0x22d883['id'],_0x147582=_0x22d883[_0x4ddfd1(0x249)],_0x44c22e=_0x22d883[_0x4ddfd1(0x1f3)],_0x118e7f=ve(_0x22d883,[_0x4ddfd1(0x198),'id',_0x4ddfd1(0x249),'extend']),_0x40c10b=_0x4ddfd1(0x258)[_0x4ddfd1(0x247)](_0xab11d7,'\x20')[_0x4ddfd1(0x247)](_0x147582||'')[_0x4ddfd1(0x1a4)](),_0x5a9d75=d[_0x4ddfd1(0x1be)]('_'[_0x4ddfd1(0x247)](ge()));return H(_0x422a94,''['concat'](_0xab11d7),{'defIds':_0x422a94[_0x4ddfd1(0x289)],'idSuffix':_0x5a9d75['current']},g({'ref':_0x1476eb,'className':_0x40c10b},_0x118e7f),_0x44c22e);});function H(_0x383219,_0x23c0fe,_0x40e6e1,_0x244e15,_0x2680f5){var _0x534ac1=_0x301b8c;return d[_0x534ac1(0x178)](_0x383219[_0x534ac1(0x180)],g(g({'key':_0x23c0fe},de(_0x383219,_0x40e6e1,_0x2680f5)),_0x244e15),(Ce(_0x383219,_0x40e6e1)['children']||[])['map'](function(_0x219487,_0x1ff0c9){var _0x716013=_0x534ac1;return H(_0x219487,''['concat'](_0x23c0fe,'-')[_0x716013(0x247)](_0x383219['tag'],'-')[_0x716013(0x247)](_0x1ff0c9),_0x40e6e1,void 0x0,_0x2680f5);}));}function de(_0x3bb7ae,_0x11efdc,_0x2320ec){var _0x3c1272=_0x301b8c,_0x3d3021=g({},_0x3bb7ae[_0x3c1272(0x179)]);_0x2320ec!=null&&_0x2320ec[_0x3c1272(0x1bf)]&&_0x3d3021[_0x3c1272(0x2e9)]===_0x3c1272(0x1bf)&&(_0x3d3021[_0x3c1272(0x2e9)]=_0x2320ec[_0x3c1272(0x1bf)]),_0x3bb7ae[_0x3c1272(0x180)]==='mask'&&_0x3d3021['id']&&(_0x3d3021['id']=_0x3d3021['id']+_0x11efdc[_0x3c1272(0x210)]),Object[_0x3c1272(0x304)](_0x3d3021)[_0x3c1272(0x1de)](function(_0x610599){var _0x271023=_0x3c1272,_0x15e0f7=_0x610599[0x0],_0xcf8df2=_0x610599[0x1];_0x15e0f7===_0x271023(0x24a)&&typeof _0xcf8df2==_0x271023(0x1a8)&&(_0x3d3021[_0x15e0f7]=_0xcf8df2[_0x271023(0x2fb)](/url\(#(.*)\)/,_0x271023(0x19c)[_0x271023(0x247)](_0x11efdc[_0x271023(0x210)],')')));});var _0x547be0=_0x11efdc[_0x3c1272(0x289)];return!_0x547be0||_0x547be0[_0x3c1272(0x26e)]===0x0||(_0x3bb7ae[_0x3c1272(0x180)]===_0x3c1272(0x1c0)&&_0x3d3021[_0x3c1272(0x264)]&&(_0x3d3021[_0x3c1272(0x264)]=_0x3d3021['xlink:href']+_0x11efdc[_0x3c1272(0x210)]),Object[_0x3c1272(0x304)](_0x3d3021)[_0x3c1272(0x1de)](function(_0x5cdb97){var _0x2e879d=_0x3c1272,_0x12f0b0=_0x5cdb97[0x0],_0x40b49b=_0x5cdb97[0x1];typeof _0x40b49b==_0x2e879d(0x1a8)&&(_0x3d3021[_0x12f0b0]=_0x40b49b[_0x2e879d(0x2fb)](/url\(#(.*)\)/,'url(#$1'[_0x2e879d(0x247)](_0x11efdc[_0x2e879d(0x210)],')')));})),_0x3d3021;}function Ce(_0x1c1206,_0x4bc97c){var _0x89803e=_0x301b8c,_0x85cabc,_0x36760d=_0x4bc97c['defIds'];return!_0x36760d||_0x36760d[_0x89803e(0x26e)]===0x0?_0x1c1206:_0x1c1206[_0x89803e(0x180)]===_0x89803e(0x196)&&(!((_0x85cabc=_0x1c1206[_0x89803e(0x17c)])===null||_0x85cabc===void 0x0)&&_0x85cabc[_0x89803e(0x26e)])?g(g({},_0x1c1206),{'children':_0x1c1206[_0x89803e(0x17c)][_0x89803e(0x20b)](function(_0x4d1278){var _0x3078be=_0x89803e;return typeof _0x4d1278[_0x3078be(0x179)]['id']=='string'&&_0x36760d&&_0x36760d[_0x3078be(0x283)](_0x4d1278['attrs']['id'])?g(g({},_0x4d1278),{'attrs':g(g({},_0x4d1278[_0x3078be(0x179)]),{'id':_0x4d1278[_0x3078be(0x179)]['id']+_0x4bc97c[_0x3078be(0x210)]})}):_0x4d1278;})}):_0x1c1206;}function ge(){var _0x531635=_0x301b8c;return Math[_0x531635(0x27d)]()['toString'](0x24)['substring'](0x2,0x8);}_[_0x301b8c(0x2ce)]=_0x301b8c(0x305);var fe={'tag':'svg','attrs':{'xmlns':_0x301b8c(0x222),'fill':_0x301b8c(0x206),'viewBox':_0x301b8c(0x250),'width':'1em','height':_0x301b8c(0x2ac)},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'fill':_0x301b8c(0x25d),'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':'evenodd','clipRule':_0x301b8c(0x2d9)}}]},B=d[_0x301b8c(0x2e4)](function(_0x2b0a7c,_0x4ddbe0){var _0x3b7012=_0x301b8c;return d[_0x3b7012(0x178)](_,Object['assign']({},_0x2b0a7c,{'id':_0x3b7012(0x253),'ref':_0x4ddbe0,'icon':fe}));});B[_0x301b8c(0x2ce)]=_0x301b8c(0x1ea);var pe={'tag':_0x301b8c(0x2a9),'attrs':{'xmlns':_0x301b8c(0x222),'fill':_0x301b8c(0x206),'viewBox':_0x301b8c(0x21c),'width':_0x301b8c(0x2ac),'height':_0x301b8c(0x2ac)},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'stroke':_0x301b8c(0x25d),'d':_0x301b8c(0x1ae),'strokeLinecap':_0x301b8c(0x2a4),'strokeLinejoin':_0x301b8c(0x2a4),'strokeWidth':1.33}},{'tag':_0x301b8c(0x2e3),'attrs':{'stroke':_0x301b8c(0x25d),'d':_0x301b8c(0x2a2),'strokeLinecap':_0x301b8c(0x2a4),'strokeLinejoin':'round','strokeWidth':1.33}}]},F=d[_0x301b8c(0x2e4)](function(_0x250e19,_0x31a7e4){var _0xb23045=_0x301b8c;return d['createElement'](_,Object[_0xb23045(0x1b3)]({},_0x250e19,{'id':'close-small-single','ref':_0x31a7e4,'icon':pe}));});F['displayName']=_0x301b8c(0x29c);var he={'tag':_0x301b8c(0x2a9),'attrs':{'xmlns':_0x301b8c(0x222),'fill':_0x301b8c(0x206),'viewBox':'0\x200\x2016\x2016','width':_0x301b8c(0x2ac),'height':_0x301b8c(0x2ac)},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'fill':'currentColor','d':_0x301b8c(0x2d0)}},{'tag':_0x301b8c(0x2e3),'attrs':{'fill':_0x301b8c(0x25d),'d':_0x301b8c(0x28a)}},{'tag':_0x301b8c(0x2e3),'attrs':{'fill':_0x301b8c(0x25d),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x301b8c(0x2d9),'clipRule':_0x301b8c(0x2d9)}}]},Y=d[_0x301b8c(0x2e4)](function(_0x4da26a,_0x2987ca){var _0x2205ef=_0x301b8c;return d['createElement'](_,Object[_0x2205ef(0x1b3)]({},_0x4da26a,{'id':_0x2205ef(0x214),'ref':_0x2987ca,'icon':he}));});Y[_0x301b8c(0x2ce)]=_0x301b8c(0x2fa);var me={'tag':_0x301b8c(0x2a9),'attrs':{'xmlns':_0x301b8c(0x222),'fill':'none','viewBox':_0x301b8c(0x250),'width':_0x301b8c(0x2ac),'height':_0x301b8c(0x2ac)},'children':[{'tag':'g','attrs':{'clipPath':_0x301b8c(0x192)},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'stroke':_0x301b8c(0x25d),'d':_0x301b8c(0x301),'strokeLinecap':_0x301b8c(0x2a4),'strokeLinejoin':_0x301b8c(0x2a4),'strokeWidth':1.2}}]},{'tag':_0x301b8c(0x196),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x301b8c(0x294)},'children':[{'tag':'path','attrs':{'fill':_0x301b8c(0x19d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},q=d[_0x301b8c(0x2e4)](function(_0x4bfed1,_0x92f882){var _0x530f5d=_0x301b8c;return d[_0x530f5d(0x178)](_,Object['assign']({},_0x4bfed1,{'id':_0x530f5d(0x1ac),'ref':_0x92f882,'icon':me}));});q['displayName']='OffLineIcon';var xe={'tag':_0x301b8c(0x2a9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x301b8c(0x206),'viewBox':_0x301b8c(0x2b6),'width':_0x301b8c(0x2ac),'height':_0x301b8c(0x2ac)},'children':[{'tag':'g','attrs':{'clipPath':_0x301b8c(0x230)},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'stroke':_0x301b8c(0x25d),'d':_0x301b8c(0x23d),'strokeLinecap':_0x301b8c(0x2a4),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'fill':'white','d':_0x301b8c(0x17a),'transform':'translate(.97)'}}]}]}],'defIds':[_0x301b8c(0x20f)]},V=d['forwardRef'](function(_0x313969,_0x102af8){var _0x261f97=_0x301b8c;return d['createElement'](_,Object[_0x261f97(0x1b3)]({},_0x313969,{'id':_0x261f97(0x224),'ref':_0x102af8,'icon':xe}));});V[_0x301b8c(0x2ce)]=_0x301b8c(0x2b2);function W(_0x475eee){var _0x50e05b=_0x301b8c,_0x39ed06,_0xf84c5a;const {mcpCoreConfig:_0x58e012,onSave:_0x5f4d55,loading:_0x3029b6=!0x1,config:_0xeb071f,connectionStatus$:_0xf8ce1a,connectionError$:_0x55b26e,currentApiKey$:_0xa1d5ba,currentSessionId$:_0x2ba715}=_0x475eee,_0x3ea171=v[_0x50e05b(0x27b)](l['LocaleService']),_0x53f42e=v['useObservable'](_0xf8ce1a,s[_0x50e05b(0x2d3)][_0x50e05b(0x2c3)]),_0x43d48a=v['useObservable'](_0x55b26e,s[_0x50e05b(0x24f)][_0x50e05b(0x29b)]),_0x136cc0=v[_0x50e05b(0x290)](_0x2ba715,''),_0x3c19a2=v[_0x50e05b(0x290)](_0xa1d5ba,''),[_0x1f660b,_0x34e6f9]=d[_0x50e05b(0x2ad)](_0x3c19a2||''),_0x1f6563=!0x0,_0x5b2730=_0xeb071f[_0x50e05b(0x252)]&&_0x58e012[_0x50e05b(0x21d)]&&(_0x58e012[_0x50e05b(0x21d)]['includes']('univer.plus')||_0x58e012['mcpServerUrl'][_0x50e05b(0x283)](_0x50e05b(0x2c9))),_0x2ba507=(_0x39ed06=_0x58e012[_0x50e05b(0x21d)])==null?void 0x0:_0x39ed06['includes'](_0x50e05b(0x2f9)),_0x4f17ee=(_0xf84c5a=_0x58e012[_0x50e05b(0x21d)])==null?void 0x0:_0xf84c5a[_0x50e05b(0x283)](_0x50e05b(0x2c9)),_0x33690d=_0x2ba507?'https://console.univer.plus':_0x50e05b(0x2e1),_0x5ebd52=_0xeb071f[_0x50e05b(0x252)]&&(_0x2ba507||_0x4f17ee),[_0x19ec1a,_0xe41042]=d[_0x50e05b(0x2ad)](!_0x1f660b[_0x50e05b(0x1a4)]()),_0x2b4aba=(_0x4e3add,_0x213714)=>{var _0x41da5b=_0x50e05b;if(_0x213714===s[_0x41da5b(0x24f)][_0x41da5b(0x2ef)])return _0x41da5b(0x1b4);switch(_0x4e3add){case s[_0x41da5b(0x2d3)][_0x41da5b(0x2ec)]:return _0x41da5b(0x248);case s['MCPConnectionStatus'][_0x41da5b(0x2cd)]:case s[_0x41da5b(0x2d3)][_0x41da5b(0x1ad)]:return _0x41da5b(0x255);case s[_0x41da5b(0x2d3)][_0x41da5b(0x27e)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x41da5b(0x1ed);}},_0x118150=(_0xaeeff3,_0x11be2e)=>{var _0x5b3835=_0x50e05b;if(_0x11be2e===s[_0x5b3835(0x24f)][_0x5b3835(0x2ef)])return _0x5b3835(0x261);switch(_0xaeeff3){case s[_0x5b3835(0x2d3)][_0x5b3835(0x2ec)]:return _0x5b3835(0x1a6);case s[_0x5b3835(0x2d3)][_0x5b3835(0x2cd)]:case s['MCPConnectionStatus'][_0x5b3835(0x1ad)]:return'univer-bg-blue-500';case s[_0x5b3835(0x2d3)][_0x5b3835(0x27e)]:return _0x5b3835(0x261);default:return _0x5b3835(0x1c2);}},_0x96873f=_0x1d5487=>{var _0x2a05cb=_0x50e05b;switch(_0x1d5487){case s[_0x2a05cb(0x2d3)][_0x2a05cb(0x2ec)]:return _0x3ea171['t'](_0x2a05cb(0x20a));case s[_0x2a05cb(0x2d3)]['CONNECTING']:return _0x3ea171['t'](_0x2a05cb(0x27f));case s['MCPConnectionStatus']['FAILED']:return _0x3ea171['t']('mcpConfig.connectionStatus.failed');case s[_0x2a05cb(0x2d3)][_0x2a05cb(0x1ad)]:return _0x3ea171['t'](_0x2a05cb(0x18a));default:return _0x3ea171['t'](_0x2a05cb(0x2cf));}},_0x593d84=_0x4a82fd=>{var _0x358b81=_0x50e05b;switch(_0x4a82fd){case s[_0x358b81(0x24f)][_0x358b81(0x2ef)]:return _0x3ea171['t'](_0x358b81(0x183));case s['MCPConnectionError'][_0x358b81(0x275)]:return _0x3ea171['t']('mcpConfig.connectionError.sessionOccupied');case s['MCPConnectionError'][_0x358b81(0x1bb)]:return _0x3ea171['t'](_0x358b81(0x1d0));case s[_0x358b81(0x24f)][_0x358b81(0x217)]:return _0x3ea171['t'](_0x358b81(0x278));default:return'';}},_0x25a1f9=d[_0x50e05b(0x1a9)](()=>{const _0x5da4b5={..._0x58e012,'apiKey':_0x1f660b['trim'](),'enableAuth':_0x1f6563};_0x5f4d55(_0x5da4b5);},[_0x58e012,_0x1f660b,_0x1f6563,_0x5f4d55]),_0x1d5fff=_0x1f660b['trim']()[_0x50e05b(0x26e)]>0x0;return t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1d1),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x2cb),'children':t['jsxs'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1c3),'children':[t['jsx'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x2e6),'children':t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'className':_0x50e05b(0x2bb),'children':'⚙'})}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'children':t[_0x50e05b(0x25a)]('p',{'className':_0x50e05b(0x1e9),'children':_0x3ea171['t'](_0x50e05b(0x212))})})]})}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x226),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1b0)+_0x2b4aba(_0x53f42e,_0x43d48a)+_0x50e05b(0x1f7),'children':t['jsxs'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1ec),'children':[t['jsx'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x2b4)+_0x118150(_0x53f42e,_0x43d48a)+'\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'}),t['jsx'](_0x50e05b(0x1af),{'className':_0x50e05b(0x233),'children':_0x96873f(_0x53f42e)})]})}),_0x43d48a!==s[_0x50e05b(0x24f)]['NONE']&&(_0x53f42e===s['MCPConnectionStatus'][_0x50e05b(0x27e)]||_0x43d48a===s[_0x50e05b(0x24f)][_0x50e05b(0x2ef)])&&t['jsx'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x26a),'children':t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x19e),'children':[t['jsx'](_0x50e05b(0x1af),{'className':_0x50e05b(0x2de),'children':'⚠️'}),t['jsx']('p',{'className':_0x50e05b(0x220),'children':_0x593d84(_0x43d48a)})]})})]}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x19b),'children':t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':'univer-space-y-5','children':[t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x279),'children':[t[_0x50e05b(0x2eb)](_0x50e05b(0x22c),{'className':_0x50e05b(0x22d),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'children':'🔑'}),'\x20',_0x3ea171['t'](_0x50e05b(0x2f8)),t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'className':_0x50e05b(0x231),'children':'*'}),_0x5b2730&&t[_0x50e05b(0x25a)]('a',{'href':_0x50e05b(0x1a3),'onClick':()=>_0xe41042(!0x0),'className':_0x50e05b(0x1b6),'title':_0x3ea171['t'](_0x50e05b(0x2c5)),'children':t[_0x50e05b(0x25a)](Y,{})})]}),t[_0x50e05b(0x25a)](S[_0x50e05b(0x1aa)],{'type':_0x50e05b(0x268),'placeholder':_0x3ea171['t'](_0x50e05b(0x2d8)),'value':_0x1f660b,'onChange':_0x34e6f9,'disabled':_0x3029b6,'autoComplete':_0x50e05b(0x2ae)}),t[_0x50e05b(0x25a)]('p',{'className':_0x50e05b(0x204),'children':_0x3ea171['t'](_0x50e05b(0x2ed))})]}),_0x5b2730&&_0x19ec1a&&t['jsxs'](_0x50e05b(0x2a5),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[t[_0x50e05b(0x25a)]('a',{'href':_0x50e05b(0x1a3),'onClick':()=>_0xe41042(!0x1),'className':_0x50e05b(0x1f2),'title':_0x50e05b(0x2db),'children':t[_0x50e05b(0x25a)](F,{})}),t[_0x50e05b(0x2eb)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[t['jsx']('div',{'className':_0x50e05b(0x17b),'children':t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'className':_0x50e05b(0x1e3),'children':'🚀'})}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x2dc),'children':[t[_0x50e05b(0x25a)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x3ea171['t'](_0x50e05b(0x2c5))}),t['jsx']('p',{'className':_0x50e05b(0x225),'children':_0x3ea171['t']('mcpConfig.apiApplyInfo.description')}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x21b),'children':_0x5ebd52&&t[_0x50e05b(0x2eb)]('a',{'href':_0x33690d,'target':'_blank','rel':_0x50e05b(0x298),'className':_0x50e05b(0x302),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'children':'🤖'}),_0x3ea171['t'](_0x50e05b(0x27c)),t[_0x50e05b(0x25a)]('span',{'className':_0x50e05b(0x2fd),'children':'↗'})]})}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x3ea171['t'](_0x50e05b(0x276))]})]})]})]}),_0xeb071f['showDeveloperTools']&&t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x287),'children':[t[_0x50e05b(0x2eb)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'children':'🔗'}),'\x20',_0x3ea171['t'](_0x50e05b(0x227))]}),t[_0x50e05b(0x2eb)]('div',{'className':_0x50e05b(0x188),'children':[t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':'univer-space-y-3','children':[t[_0x50e05b(0x25a)]('p',{'className':_0x50e05b(0x2c6),'children':_0x3ea171['t'](_0x50e05b(0x2f6))}),t[_0x50e05b(0x2eb)]('div',{'className':_0x50e05b(0x279),'children':[t[_0x50e05b(0x25a)]('div',{'className':_0x50e05b(0x2a8),'children':_0x3ea171['t'](_0x50e05b(0x1b9))}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1ec),'children':[t[_0x50e05b(0x25a)]('span',{'className':_0x50e05b(0x282),'children':'1'}),_0x3ea171['t'](_0x50e05b(0x23b))]}),t[_0x50e05b(0x2eb)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t['jsx'](_0x50e05b(0x1af),{'className':_0x50e05b(0x282),'children':'2'}),_0x3ea171['t'](_0x50e05b(0x1f4))]}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1ec),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'className':_0x50e05b(0x282),'children':'3'}),_0x3ea171['t'](_0x50e05b(0x21a))]})]})]})]}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x279),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x50e05b(0x1bd)}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':t[_0x50e05b(0x25a)]('pre',{'className':_0x50e05b(0x270),'children':_0x50e05b(0x1f8)+_0x136cc0+_0x50e05b(0x2c7)+(_0x1f660b||'<API_KEY>')+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),t[_0x50e05b(0x2eb)]('div',{'className':_0x50e05b(0x207),'children':[t[_0x50e05b(0x25a)]('div',{'className':_0x50e05b(0x2a8),'children':_0x3ea171['t'](_0x50e05b(0x22a))}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x279),'children':[t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[t[_0x50e05b(0x25a)]('div',{'className':_0x50e05b(0x26f)}),t['jsxs']('div',{'className':_0x50e05b(0x272),'children':[t[_0x50e05b(0x25a)]('div',{'className':_0x50e05b(0x295),'children':'univer_session_id:'}),t[_0x50e05b(0x25a)]('div',{'className':_0x50e05b(0x204),'children':_0x3ea171['t']('mcpConfig.sessionIdDescription')})]})]}),t['jsxs'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x26b),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x26f)}),t['jsxs'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x272),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x295),'children':_0x50e05b(0x1b5)}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3ea171['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),t['jsx'](S[_0x50e05b(0x18d)],{'onClick':_0x25a1f9,'disabled':!_0x1d5fff||_0x3029b6,'className':_0x50e05b(0x2fc),'children':_0x3029b6?t['jsxs']('span',{'className':_0x50e05b(0x1ec),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'children':'⟲'}),_0x3ea171['t'](_0x50e05b(0x232))]}):t[_0x50e05b(0x2eb)](_0x50e05b(0x1af),{'className':_0x50e05b(0x1ec),'children':[t[_0x50e05b(0x25a)](B,{}),_0x3ea171['t'](_0x50e05b(0x281))]})}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x2df),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'className':_0x50e05b(0x17f),'children':'💡'}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x223),'children':[t['jsx'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1cb),'children':'Configuration\x20Notes:'}),t['jsxs'](_0x50e05b(0x2a5),{'children':['•',_0x3ea171['t'](_0x50e05b(0x291))]}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'children':['•',_0x3ea171['t'](_0x50e05b(0x22f))]})]})]})})]})})]});}const y=_0x301b8c(0x288),G={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object[_0x301b8c(0x21f)],Pe=(_0x50e610,_0x394c70,_0x1796b5,_0x218cbe)=>{var _0x83b2c2=_0x301b8c;for(var _0xc17b85=_0x218cbe>0x1?void 0x0:_0x218cbe?Se(_0x394c70,_0x1796b5):_0x394c70,_0x219787=_0x50e610[_0x83b2c2(0x26e)]-0x1,_0x148b88;_0x219787>=0x0;_0x219787--)(_0x148b88=_0x50e610[_0x219787])&&(_0xc17b85=_0x148b88(_0xc17b85)||_0xc17b85);return _0xc17b85;},f=(_0x35c768,_0x241db2)=>(_0x2a46dc,_0x5e4e43)=>_0x241db2(_0x2a46dc,_0x5e4e43,_0x35c768);const D='mcp.apiKey',k=_0x301b8c(0x21e);exports[_0x301b8c(0x25e)]=class extends l[_0x301b8c(0x228)]{constructor(_0x238a9a,_0x2db7d7,_0x25f89e,_0x2928d0,_0xc803f6,_0x555bd2,_0x360c8b,_0x5b14fa,_0x3ce36e,_0x1d4c92){var _0x1e921c=_0x301b8c;super(),I(this,_0x1e921c(0x242),new N[(_0x1e921c(0x23c))](!0x1)),I(this,_0x1e921c(0x277),new N[(_0x1e921c(0x23c))]({})),I(this,_0x1e921c(0x1ef),new N['BehaviorSubject']({})),I(this,'_apiKey$',new N[(_0x1e921c(0x23c))]('')),I(this,'_handleConfigSave',async _0x27cb47=>{var _0x5c912b=_0x1e921c,_0x476fa7,_0x8d3db;this['_loading$'][_0x5c912b(0x1db)](!0x0);try{const _0x2cc108=await this[_0x5c912b(0x1b2)](_0x27cb47);if(!_0x2cc108[_0x5c912b(0x2da)]){this[_0x5c912b(0x2a0)][_0x5c912b(0x17e)]({'type':S[_0x5c912b(0x2f7)]['Error'],'content':_0x2cc108[_0x5c912b(0x22e)]||this[_0x5c912b(0x237)]['t'](_0x5c912b(0x235))});return;}_0x27cb47[_0x5c912b(0x24d)]?await this['_localStorageService'][_0x5c912b(0x1f0)](D,_0x27cb47[_0x5c912b(0x24d)]['trim']()):await this[_0x5c912b(0x205)]['removeItem'](D),this['_apiKey$']['next'](((_0x476fa7=_0x27cb47['apiKey'])==null?void 0x0:_0x476fa7['trim']())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x5c912b(0x251)+((_0x8d3db=_0x27cb47[_0x5c912b(0x24d)])==null?void 0x0:_0x8d3db[_0x5c912b(0x1a4)]())}),this['_messageService'][_0x5c912b(0x17e)]({'type':S['MessageType'][_0x5c912b(0x1c5)],'content':this[_0x5c912b(0x237)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x3033de=_0x5c912b;this[_0x3033de(0x1f5)][_0x3033de(0x269)](k);},0x320);}catch(_0x1af48a){this[_0x5c912b(0x28b)][_0x5c912b(0x1b8)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x1af48a),this[_0x5c912b(0x2a0)]['show']({'type':S[_0x5c912b(0x2f7)]['Error'],'content':this[_0x5c912b(0x237)]['t'](_0x5c912b(0x293))});}finally{this[_0x5c912b(0x242)][_0x5c912b(0x1db)](!0x1);}}),(this[_0x1e921c(0x18b)]=_0x238a9a,this[_0x1e921c(0x213)]=_0x2db7d7,this['_configService']=_0x25f89e,this[_0x1e921c(0x205)]=_0x2928d0,this[_0x1e921c(0x1f5)]=_0xc803f6,this[_0x1e921c(0x2a0)]=_0x555bd2,this[_0x1e921c(0x1ab)]=_0x360c8b,this['_localeService']=_0x5b14fa,this[_0x1e921c(0x28b)]=_0x3ce36e,this[_0x1e921c(0x221)]=_0x1d4c92,this[_0x1e921c(0x274)](),this[_0x1e921c(0x28d)](),this[_0x1e921c(0x195)]());}[_0x301b8c(0x203)](){var _0x1794a0=_0x301b8c;const _0x4343ef=this['_configService'][_0x1794a0(0x29f)](y);_0x4343ef!=null&&_0x4343ef['showDeveloperTools']&&this[_0x1794a0(0x1f5)][_0x1794a0(0x2ee)]({'id':k,'title':{'title':this['_localeService']['t'](_0x1794a0(0x2b1))},'children':{'label':_0x1794a0(0x191)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0xa5ffb1=_0x1794a0;this['_dialogService'][_0xa5ffb1(0x269)](k);}});}['getCurrentConfig'](){var _0x22acd5=_0x301b8c;return this[_0x22acd5(0x277)]['value'];}['_registerComponent'](){var _0x541e65=_0x301b8c;this[_0x541e65(0x1ce)](this[_0x541e65(0x1ab)][_0x541e65(0x2c8)](_0x541e65(0x191),this[_0x541e65(0x303)]()));}['_createConfigPanelComponent'](){var _0x12e2b4=_0x301b8c;return v[_0x12e2b4(0x199)](()=>{var _0x25f08f=_0x12e2b4,_0x4bf795,_0x2e6088,_0x16f118;return t[_0x25f08f(0x25a)](W,{'config':this['_config$'][_0x25f08f(0x2c1)],'mcpCoreConfig':this[_0x25f08f(0x277)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x25f08f(0x1c6)],'loading':this[_0x25f08f(0x242)][_0x25f08f(0x2c1)],'connectionStatus$':(_0x4bf795=this[_0x25f08f(0x221)])==null?void 0x0:_0x4bf795[_0x25f08f(0x300)],'connectionError$':(_0x2e6088=this[_0x25f08f(0x221)])==null?void 0x0:_0x2e6088[_0x25f08f(0x25c)],'currentSessionId$':(_0x16f118=this['_mcpConnectionController'])==null?void 0x0:_0x16f118[_0x25f08f(0x292)]});},this[_0x12e2b4(0x18b)]);}[_0x301b8c(0x274)](){var _0x49f3c9=_0x301b8c;this['disposeWithMe'](this[_0x49f3c9(0x24e)][_0x49f3c9(0x1a5)](s['MCP_PLUGIN_CONFIG_KEY'])['subscribe'](_0xfe8a6c=>{var _0x5349a2=_0x49f3c9;this[_0x5349a2(0x277)]['next'](_0xfe8a6c||{});}));const _0x4bed3f=this[_0x49f3c9(0x24e)]['getConfig'](s[_0x49f3c9(0x209)]);this['_mcpCoreConfig$'][_0x49f3c9(0x1db)](_0x4bed3f||{}),this[_0x49f3c9(0x1ce)](this[_0x49f3c9(0x24e)][_0x49f3c9(0x1a5)](y)[_0x49f3c9(0x2b0)](_0x430f90=>{var _0x3e3e96=_0x49f3c9;this[_0x3e3e96(0x1ef)][_0x3e3e96(0x1db)](_0x430f90||{});}));const _0x5763bb=this[_0x49f3c9(0x24e)]['getConfig'](y);this[_0x49f3c9(0x1ef)]['next'](_0x5763bb||{});}async['_loadStoredApiKey'](){var _0x31126e=_0x301b8c;const _0x380355=this['_configService'][_0x31126e(0x29f)](y);if(!(_0x380355!=null&&_0x380355['showDeveloperTools']))return;const _0x54b0af=await this[_0x31126e(0x205)][_0x31126e(0x1d9)](D);_0x54b0af&&(this['_mcpConnectionController'][_0x31126e(0x2a7)]({'Authorization':'Bearer\x20'+_0x54b0af}),this[_0x31126e(0x186)]['next'](_0x54b0af));}async[_0x301b8c(0x1b2)](_0x408113){var _0x310d3f=_0x301b8c;if(!_0x408113['apiKey']||_0x408113[_0x310d3f(0x24d)]['trim']()[_0x310d3f(0x26e)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x310d3f(0x237)]['t'](_0x310d3f(0x189))};if(_0x408113[_0x310d3f(0x24d)][_0x310d3f(0x1a4)]()[_0x310d3f(0x26e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x310d3f(0x237)]['t'](_0x310d3f(0x2c4))};try{const _0x150b42=await this[_0x310d3f(0x18b)]['get'](s[_0x310d3f(0x1dd)])['validateApiKey'](_0x408113[_0x310d3f(0x24d)]['trim']());return _0x150b42['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x150b42[_0x310d3f(0x1b8)]||this[_0x310d3f(0x237)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x44021a){return console[_0x310d3f(0x2d4)](_0x310d3f(0x1a7),_0x44021a),{'isValid':!0x0};}}},exports[_0x301b8c(0x25e)]=Pe([f(0x0,l[_0x301b8c(0x260)](l[_0x301b8c(0x177)])),f(0x1,v[_0x301b8c(0x1cd)]),f(0x2,l[_0x301b8c(0x1fd)]),f(0x3,l[_0x301b8c(0x23a)]),f(0x4,v[_0x301b8c(0x271)]),f(0x5,v[_0x301b8c(0x2d6)]),f(0x6,l[_0x301b8c(0x260)](v[_0x301b8c(0x1b7)])),f(0x7,l[_0x301b8c(0x260)](l[_0x301b8c(0x1d5)])),f(0x8,l['ILogService']),f(0x9,l[_0x301b8c(0x260)](s[_0x301b8c(0x1dd)]))],exports['MCPConfigUIController']);const j={'id':'mcp-ui.command.openConfigPanel','type':l[_0x301b8c(0x201)][_0x301b8c(0x2f2)],'handler':async(_0xfb6a7f,_0x579665)=>(_0xfb6a7f[_0x301b8c(0x306)](exports[_0x301b8c(0x25e)])[_0x301b8c(0x203)](),!0x0)};function Z(_0x3ac2e3,_0x418bd6){var _0x4a526f=_0x301b8c;switch(_0x3ac2e3){case s['MCPConnectionStatus'][_0x4a526f(0x2c3)]:return _0x4a526f(0x1a2);case s['MCPConnectionStatus'][_0x4a526f(0x2cd)]:return _0x4a526f(0x1a0);case s[_0x4a526f(0x2d3)][_0x4a526f(0x2ec)]:return _0x4a526f(0x1fc);case s[_0x4a526f(0x2d3)][_0x4a526f(0x27e)]:switch(_0x418bd6){case s[_0x4a526f(0x24f)][_0x4a526f(0x2ef)]:return _0x4a526f(0x286);case s[_0x4a526f(0x24f)][_0x4a526f(0x275)]:return _0x4a526f(0x2d1);case s[_0x4a526f(0x24f)][_0x4a526f(0x1bb)]:return _0x4a526f(0x240);case s[_0x4a526f(0x24f)]['MAX_RETRIES_EXCEEDED']:return _0x4a526f(0x26c);default:return _0x4a526f(0x245);}case s[_0x4a526f(0x2d3)][_0x4a526f(0x1ad)]:return _0x4a526f(0x28e);default:return'mcpStatus.unknown';}}function _0x5c3a(_0x42d6dc,_0x18573c){var _0x33aea2=_0x33ae();return _0x5c3a=function(_0x5c3aa3,_0x50738f){_0x5c3aa3=_0x5c3aa3-0x175;var _0xcd67e4=_0x33aea2[_0x5c3aa3];return _0xcd67e4;},_0x5c3a(_0x42d6dc,_0x18573c);}function ye(_0x576fd3,_0x24c47f,_0x661f2e,_0x6b281e=!0x0){var _0x35d880=_0x301b8c;const _0xd2eb0c=Z(_0x576fd3,_0x24c47f),_0x258de1=_0x661f2e['t'](_0xd2eb0c);return _0x6b281e?_0x576fd3===s['MCPConnectionStatus'][_0x35d880(0x2c3)]&&_0x24c47f===s[_0x35d880(0x24f)][_0x35d880(0x2ef)]?_0x258de1+'\x20-\x20'+_0x661f2e['t'](_0x35d880(0x202)):_0x576fd3===s[_0x35d880(0x2d3)]['CONNECTED']?''+_0x258de1:_0x576fd3===s['MCPConnectionStatus']['DISCONNECTED']||_0x576fd3===s[_0x35d880(0x2d3)]['FAILED']?_0x258de1+_0x35d880(0x296)+_0x661f2e['t'](_0x35d880(0x2b5)):_0x258de1:_0x258de1;}function Ie(_0x1837f6){var _0x1a6702=_0x301b8c;switch(_0x1837f6){case s[_0x1a6702(0x2d3)][_0x1a6702(0x2ec)]:return _0x1a6702(0x1dc);case s[_0x1a6702(0x2d3)][_0x1a6702(0x2cd)]:case s['MCPConnectionStatus'][_0x1a6702(0x1ad)]:return _0x1a6702(0x175);case s[_0x1a6702(0x2d3)][_0x1a6702(0x27e)]:case s['MCPConnectionStatus']['DISCONNECTED']:return _0x1a6702(0x231);default:return _0x1a6702(0x182);}}function X(_0x43e5a9){var _0x41a62b=_0x301b8c;const {status$:_0x3a4cb1,error$:_0x3d70d2,onConfigure:_0xe58612,showClickable:_0x521df8=!0x0}=_0x43e5a9,_0x2eb0e6=v[_0x41a62b(0x290)](_0x3a4cb1,s[_0x41a62b(0x2d3)]['DISCONNECTED']),_0x1644d2=v[_0x41a62b(0x290)](_0x3d70d2,s[_0x41a62b(0x24f)][_0x41a62b(0x29b)]),_0x58d794=v[_0x41a62b(0x27b)](l[_0x41a62b(0x1d5)]),_0x14c5d9=_0x2eb0e6===s[_0x41a62b(0x2d3)]['CONNECTED'];_0x2eb0e6===s[_0x41a62b(0x2d3)][_0x41a62b(0x2cd)]||s[_0x41a62b(0x2d3)][_0x41a62b(0x1ad)];const _0x390f73=_0x58d794['t'](Z(_0x2eb0e6,_0x1644d2)),_0x24f83f=ye(_0x2eb0e6,_0x1644d2,_0x58d794,_0x521df8),_0x2836b2=Ie(_0x2eb0e6),_0x4dfcdb=_0x14c5d9?t[_0x41a62b(0x25a)](V,{}):t[_0x41a62b(0x25a)](q,{}),_0x22ccb0=d[_0x41a62b(0x1a9)](()=>{_0x521df8&&_0xe58612&&_0xe58612();},[_0x521df8,_0xe58612]);function _0x579e06(){var _0x275df5=_0x41a62b;return t[_0x275df5(0x2eb)]('div',{'className':S[_0x275df5(0x299)](_0x275df5(0x28c),_0x521df8&&_0xe58612&&_0x275df5(0x20c)),'onClick':_0x521df8&&_0xe58612?_0x22ccb0:void 0x0,'children':[t[_0x275df5(0x25a)](_0x275df5(0x2a5),{'className':S[_0x275df5(0x299)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x2836b2),'children':_0x4dfcdb}),t['jsx'](_0x275df5(0x2a5),{'className':_0x275df5(0x1ff),'children':_0x390f73})]});}return t['jsx'](S[_0x41a62b(0x2ab)],{'title':_0x24f83f,'placement':_0x41a62b(0x263),'children':_0x579e06()});}var _e=Object['getOwnPropertyDescriptor'],Me=(_0x2582cf,_0x56b3e5,_0x4c430d,_0x2ad057)=>{var _0x2fc190=_0x301b8c;for(var _0x3ba17c=_0x2ad057>0x1?void 0x0:_0x2ad057?_e(_0x56b3e5,_0x4c430d):_0x56b3e5,_0x5aeba7=_0x2582cf[_0x2fc190(0x26e)]-0x1,_0x55a011;_0x5aeba7>=0x0;_0x5aeba7--)(_0x55a011=_0x2582cf[_0x5aeba7])&&(_0x3ba17c=_0x55a011(_0x3ba17c)||_0x3ba17c);return _0x3ba17c;},b=(_0xed0bb,_0x11cac6)=>(_0x4c9794,_0x325345)=>_0x11cac6(_0x4c9794,_0x325345,_0xed0bb);exports[_0x301b8c(0x2af)]=class extends l[_0x301b8c(0x228)]{constructor(_0x36d9f6,_0x18fa63,_0x315f36,_0x2f90a0){var _0x431a9e=_0x301b8c;super(),this[_0x431a9e(0x18b)]=_0x36d9f6,this[_0x431a9e(0x236)]=_0x18fa63,this[_0x431a9e(0x213)]=_0x315f36,this[_0x431a9e(0x24e)]=_0x2f90a0,this[_0x431a9e(0x2ea)](),this[_0x431a9e(0x2ca)]();}[_0x301b8c(0x2ea)](){var _0x2aa5b4=_0x301b8c;const _0x885fa=this[_0x2aa5b4(0x24e)][_0x2aa5b4(0x29f)](y);_0x885fa!=null&&_0x885fa[_0x2aa5b4(0x252)]&&(this[_0x2aa5b4(0x236)][_0x2aa5b4(0x2cc)]=!0x1);}[_0x301b8c(0x2ca)](){var _0x370622=_0x301b8c;const _0xcf1a04=this[_0x370622(0x24e)][_0x370622(0x29f)](y);(_0xcf1a04==null?void 0x0:_0xcf1a04[_0x370622(0x259)])!==!0x1&&this[_0x370622(0x1ce)](this[_0x370622(0x213)]['registerComponent'](v[_0x370622(0x241)][_0x370622(0x2a1)],()=>{var _0x2652d8=_0x370622,_0x5707ca;return v[_0x2652d8(0x199)](Ne({'status$':this[_0x2652d8(0x236)][_0x2652d8(0x300)],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x2652d8(0x1f1)](),'showClickable':(_0x5707ca=_0xcf1a04==null?void 0x0:_0xcf1a04[_0x2652d8(0x252)])!=null?_0x5707ca:!0x1}),this[_0x2652d8(0x18b)]);}));}[_0x301b8c(0x1f1)](){var _0x4f5bbc=_0x301b8c;this[_0x4f5bbc(0x18b)][_0x4f5bbc(0x306)](exports['MCPConfigUIController'])[_0x4f5bbc(0x203)]();}},exports['MCPConnectionUIController']=Me([b(0x0,l['Inject'](l['Injector'])),b(0x1,l[_0x301b8c(0x260)](s['MCPConnectionController'])),b(0x2,v[_0x301b8c(0x1cd)]),b(0x3,l[_0x301b8c(0x1fd)])],exports['MCPConnectionUIController']);function Ne(_0x42d4a0){const {status$:_0x4a51c1,error$:_0x2d00eb,onConfigure:_0x266563,showClickable:_0x4d224c}=_0x42d4a0;return function(){var _0x1a6c68=_0x5c3a;return t[_0x1a6c68(0x25a)](X,{'status$':_0x4a51c1,'error$':_0x2d00eb,'onConfigure':_0x266563,'showClickable':_0x4d224c});};}function be(_0x576601){var _0x111080=_0x301b8c;return{'id':j['id'],'type':v[_0x111080(0x2a3)][_0x111080(0x2b9)],'icon':_0x111080(0x28f),'title':_0x111080(0x2b1),'tooltip':_0x111080(0x2b1)};}const je={[v[_0x301b8c(0x200)][_0x301b8c(0x1da)]]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0x301b8c(0x21f)],we=(_0x107996,_0x4f2ff9,_0x1f3527,_0x50ee01)=>{var _0x222342=_0x301b8c;for(var _0x59a528=_0x50ee01>0x1?void 0x0:_0x50ee01?Ee(_0x4f2ff9,_0x1f3527):_0x4f2ff9,_0x5c3d70=_0x107996[_0x222342(0x26e)]-0x1,_0x15c847;_0x5c3d70>=0x0;_0x5c3d70--)(_0x15c847=_0x107996[_0x5c3d70])&&(_0x59a528=_0x15c847(_0x59a528)||_0x59a528);return _0x59a528;},z=(_0x3d38cf,_0x524909)=>(_0x4ebdc2,_0x2f8867)=>_0x524909(_0x4ebdc2,_0x2f8867,_0x3d38cf);exports[_0x301b8c(0x1e7)]=class extends l['Disposable']{constructor(_0xec94a0,_0x7f8626){var _0x2c6c12=_0x301b8c;super(),this['_commandService']=_0xec94a0,this['_menuManagerService']=_0x7f8626,this[_0x2c6c12(0x190)](),this['_initializeMenus']();}[_0x301b8c(0x190)](){var _0x350b33=_0x301b8c;[j][_0x350b33(0x1de)](_0x422220=>{var _0x4bd275=_0x350b33;this['disposeWithMe'](this[_0x4bd275(0x2dd)][_0x4bd275(0x1eb)](_0x422220));});}[_0x301b8c(0x1e4)](){var _0x41395f=_0x301b8c;this[_0x41395f(0x2e0)][_0x41395f(0x267)](je);}},exports[_0x301b8c(0x1e7)]=we([z(0x0,l[_0x301b8c(0x193)]),z(0x1,v[_0x301b8c(0x1b1)])],exports['MCPUIMenuController']);const Oe={'mcpStatus':{'disconnected':_0x301b8c(0x1a1),'connecting':_0x301b8c(0x2e7),'connected':_0x301b8c(0x2b3),'failed':_0x301b8c(0x1e8),'retrying':_0x301b8c(0x2bd),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x301b8c(0x1cc),'maxRetriesExceeded':_0x301b8c(0x22b),'clickToConnect':_0x301b8c(0x1d3),'clickToConfigure':_0x301b8c(0x219)},'mcpConfig':{'title':_0x301b8c(0x1bd),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x301b8c(0x20e),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x301b8c(0x284),'enableAuth':_0x301b8c(0x1f6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x301b8c(0x1df),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x301b8c(0x2ff),'configStep1':_0x301b8c(0x2e5),'configStep2':_0x301b8c(0x19a),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x301b8c(0x27a),'configParameters':_0x301b8c(0x1d7),'maxRetries':_0x301b8c(0x187),'save':_0x301b8c(0x1ee),'saving':_0x301b8c(0x1c4),'note1':_0x301b8c(0x2f5),'note2':_0x301b8c(0x2bf),'configSaved':_0x301b8c(0x229),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x301b8c(0x1ba),'description':_0x301b8c(0x2e2),'univerAiLabel':_0x301b8c(0x24b),'getStarted':_0x301b8c(0x1cf)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x301b8c(0x1bc),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x301b8c(0x2a6),'failed':_0x301b8c(0x25f),'retrying':_0x301b8c(0x17d)},'connectionError':{'unauthorized':_0x301b8c(0x176),'sessionOccupied':_0x301b8c(0x2ba),'networkError':_0x301b8c(0x1e5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},Ae={'mcpStatus':{'disconnected':_0x301b8c(0x2d2),'connecting':_0x301b8c(0x19f),'connected':_0x301b8c(0x2f4),'failed':_0x301b8c(0x1e6),'retrying':_0x301b8c(0x2b7),'unknown':_0x301b8c(0x1c9),'unauthorized':_0x301b8c(0x18e),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x301b8c(0x238),'maxRetriesExceeded':_0x301b8c(0x2aa),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x301b8c(0x216)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x301b8c(0x265),'apiKeyPlaceholder':_0x301b8c(0x257),'apiKeyHint':_0x301b8c(0x2d5),'enableAuth':_0x301b8c(0x273),'enableAuthHint':_0x301b8c(0x2fe),'connectionInfo':_0x301b8c(0x208),'mcpClientConfig':_0x301b8c(0x208),'configInstructions':_0x301b8c(0x215),'configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x301b8c(0x218),'configStep3':_0x301b8c(0x1c8),'sessionId':_0x301b8c(0x23f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x301b8c(0x2f3),'configParameters':'配置参数:','maxRetries':_0x301b8c(0x29d),'save':_0x301b8c(0x1f9),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x301b8c(0x266),'configError':_0x301b8c(0x256),'apiApplyInfo':{'title':_0x301b8c(0x1fb),'description':_0x301b8c(0x285),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x301b8c(0x2f0)},'validation':{'apiKeyRequired':_0x301b8c(0x254),'apiKeyTooShort':_0x301b8c(0x1d6),'invalidConfig':_0x301b8c(0x246),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x301b8c(0x194),'connected':_0x301b8c(0x239),'failed':_0x301b8c(0x185),'retrying':_0x301b8c(0x262)},'connectionError':{'unauthorized':_0x301b8c(0x2be),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x301b8c(0x24c),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var De=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ue=(_0x12f4bf,_0x26400f,_0x294af0)=>_0x26400f in _0x12f4bf?De(_0x12f4bf,_0x26400f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x294af0}):_0x12f4bf[_0x26400f]=_0x294af0,Te=(_0x305fb7,_0x17f199,_0x72ae89,_0x1073ec)=>{var _0x5c4a09=_0x301b8c;for(var _0x215621=_0x1073ec>0x1?void 0x0:_0x1073ec?ke(_0x17f199,_0x72ae89):_0x17f199,_0x1a0b07=_0x305fb7[_0x5c4a09(0x26e)]-0x1,_0x4097b4;_0x1a0b07>=0x0;_0x1a0b07--)(_0x4097b4=_0x305fb7[_0x1a0b07])&&(_0x215621=_0x4097b4(_0x215621)||_0x215621);return _0x215621;},M=(_0x4019f7,_0x4cd733)=>(_0x8600f6,_0x38a852)=>_0x4cd733(_0x8600f6,_0x38a852,_0x4019f7),$e=(_0x1fb547,_0xedc4c6,_0x490b64)=>Ue(_0x1fb547,_0xedc4c6+'',_0x490b64);exports[_0x301b8c(0x1d4)]=class extends l[_0x301b8c(0x2bc)]{constructor(_0x5ddc17=G,_0x5986e6,_0x4b1c99,_0x2e60f9,_0x4178c6,_0x39bce6){var _0x5ada2a=_0x301b8c;super(),this['_config']=_0x5ddc17,this['_injector']=_0x5986e6,this[_0x5ada2a(0x24e)]=_0x4b1c99,this[_0x5ada2a(0x213)]=_0x2e60f9,this[_0x5ada2a(0x205)]=_0x4178c6,this[_0x5ada2a(0x237)]=_0x39bce6;const {..._0x449450}=l['merge']({},G,this[_0x5ada2a(0x2b8)]);this['_configService'][_0x5ada2a(0x29e)](y,_0x449450);}async[_0x301b8c(0x197)](){var _0x470323=_0x301b8c;const _0x2e2d30=[[exports[_0x470323(0x2af)]],[exports['MCPConfigUIController']],[exports[_0x470323(0x1e7)]]];this[_0x470323(0x18b)]['has'](A['ISocketService'])||_0x2e2d30[_0x470323(0x181)]([A['ISocketService'],{'useClass':A[_0x470323(0x1e1)]}]),_0x2e2d30[_0x470323(0x1de)](_0xb42ae8=>this[_0x470323(0x18b)][_0x470323(0x1fa)](_0xb42ae8)),this['_injector'][_0x470323(0x306)](exports[_0x470323(0x2af)]),this[_0x470323(0x18b)][_0x470323(0x306)](exports['MCPConfigUIController']),this[_0x470323(0x18b)][_0x470323(0x306)](exports[_0x470323(0x1e7)]);}},$e(exports[_0x301b8c(0x1d4)],'pluginName','MCP_UI_PLUGIN'),exports[_0x301b8c(0x1d4)]=Te([l[_0x301b8c(0x18c)](s[_0x301b8c(0x23e)]),M(0x1,l[_0x301b8c(0x260)](l[_0x301b8c(0x177)])),M(0x2,l[_0x301b8c(0x1fd)]),M(0x3,v[_0x301b8c(0x1cd)]),M(0x4,l[_0x301b8c(0x23a)]),M(0x5,l[_0x301b8c(0x260)](l[_0x301b8c(0x1d5)]))],exports['UniverMCPUIPlugin']),exports[_0x301b8c(0x191)]=W,exports[_0x301b8c(0x1e2)]=X,exports[_0x301b8c(0x234)]=j,exports[_0x301b8c(0x243)]=Oe,exports[_0x301b8c(0x1c1)]=Ae;
@@ -1 +1 @@
1
- 'use strict';const _0x8b309a=_0x2373;(function(_0x3e3e8a,_0x4e1edb){const _0x32eeed=_0x2373,_0x17da1b=_0x3e3e8a();while(!![]){try{const _0x28dcbd=-parseInt(_0x32eeed(0x1db))/0x1*(parseInt(_0x32eeed(0x1d4))/0x2)+parseInt(_0x32eeed(0x1be))/0x3+-parseInt(_0x32eeed(0x1e2))/0x4+-parseInt(_0x32eeed(0x1c1))/0x5+-parseInt(_0x32eeed(0x1b9))/0x6*(-parseInt(_0x32eeed(0x1c7))/0x7)+-parseInt(_0x32eeed(0x1e9))/0x8*(-parseInt(_0x32eeed(0x1de))/0x9)+parseInt(_0x32eeed(0x1c5))/0xa;if(_0x28dcbd===_0x4e1edb)break;else _0x17da1b['push'](_0x17da1b['shift']());}catch(_0x15cd81){_0x17da1b['push'](_0x17da1b['shift']());}}}(_0x1dd9,0x93c00));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x8b309a(0x1e7),'connected':_0x8b309a(0x1d9),'failed':_0x8b309a(0x1bc),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x8b309a(0x1e1),'sessionOccupied':_0x8b309a(0x1cf),'networkError':_0x8b309a(0x1bd),'maxRetriesExceeded':_0x8b309a(0x1e8),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x8b309a(0x1c4)},'mcpConfig':{'title':_0x8b309a(0x1c3),'description':_0x8b309a(0x1dc),'apiKey':_0x8b309a(0x1d1),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x8b309a(0x1ba),'enableAuth':_0x8b309a(0x1dd),'enableAuthHint':_0x8b309a(0x1cb),'connectionInfo':_0x8b309a(0x1d2),'mcpClientConfig':_0x8b309a(0x1d2),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x8b309a(0x1e0),'configStep1':_0x8b309a(0x1c9),'configStep2':_0x8b309a(0x1ca),'configStep3':_0x8b309a(0x1c8),'sessionId':_0x8b309a(0x1eb),'sessionIdDescription':_0x8b309a(0x1bb),'authorizationDescription':_0x8b309a(0x1e3),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x8b309a(0x1c0),'saving':_0x8b309a(0x1bf),'note1':_0x8b309a(0x1e4),'note2':_0x8b309a(0x1cc),'configSaved':_0x8b309a(0x1df),'configError':_0x8b309a(0x1c6),'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':_0x8b309a(0x1ce),'getStarted':_0x8b309a(0x1cd)},'validation':{'apiKeyRequired':_0x8b309a(0x1d7),'apiKeyTooShort':_0x8b309a(0x1e5),'invalidConfig':_0x8b309a(0x1d0),'invalidApiKey':_0x8b309a(0x1d8)},'connectionStatus':{'disconnected':_0x8b309a(0x1c2),'connecting':_0x8b309a(0x1da),'connected':_0x8b309a(0x1e6),'failed':_0x8b309a(0x1d5),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x8b309a(0x1d3),'sessionOccupied':_0x8b309a(0x1ec),'networkError':_0x8b309a(0x1ea),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x8b309a(0x1d6)]=n;function _0x2373(_0x1e131e,_0xfc3bd9){const _0x1dd95b=_0x1dd9();return _0x2373=function(_0x237313,_0x49db88){_0x237313=_0x237313-0x1b9;let _0x29b378=_0x1dd95b[_0x237313];return _0x29b378;},_0x2373(_0x1e131e,_0xfc3bd9);}function _0x1dd9(){const _0x220bd7=['MCP\x20Configuration','Click\x20to\x20configure\x20MCP','10366260HVJhgR','Failed\x20to\x20save\x20configuration','266126MXKTUe','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Get\x20your\x20API\x20key\x20in\x20seconds','Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20configuration','API\x20Key','MCP\x20Client\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','41386hnjIee','Connection\x20Failed','exports','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','Connecting...','37vjtyaW','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20Authentication','3169053hDKbbc','Configuration\x20saved\x20successfully','Configuration\x20Steps:','MCP:\x20Unauthorized','1308936CekEfl','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','MCP\x20Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','8UtzDSG','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20ID','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','24WIicBs','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connection\x20Failed','MCP:\x20Network\x20Error','1511052rTjcbg','Saving...','Save\x20Configuration','1732200XOIHPX','Disconnected'];_0x1dd9=function(){return _0x220bd7;};return _0x1dd9();}
1
+ 'use strict';function _0x4a01(_0x576434,_0x276d7e){const _0x596a9d=_0x596a();return _0x4a01=function(_0x4a01a0,_0x4c8bad){_0x4a01a0=_0x4a01a0-0x124;let _0x30636d=_0x596a9d[_0x4a01a0];return _0x30636d;},_0x4a01(_0x576434,_0x276d7e);}const _0x5402c2=_0x4a01;function _0x596a(){const _0x4cc00=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','4izaLpD','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','16218GLWbXH','Click\x20to\x20configure\x20MCP','781cVpZXs','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','exports','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','969543mGQlJZ','27396IKBSAs','Configuration\x20Steps:','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','Configuration\x20saved\x20successfully','10hmUUem','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','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.','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','50vTVjkK','MCP\x20Connection\x20Failed','469357HtxArR','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connected','MCP\x20Retrying...','410695xotFvn','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','Invalid\x20configuration','Session\x20ID','Enter\x20your\x20API\x20key','MCP:\x20Unauthorized','MCP\x20Unknown\x20Status','Save\x20Configuration','Connected','MCP\x20Client\x20Configuration','What\x20is\x20API\x20Key?','Connecting...','MCP\x20Configuration','40fOQwMt','21198GOvJfk','29418ZqwXji','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x596a=function(){return _0x4cc00;};return _0x596a();}(function(_0x45e129,_0x4ba26b){const _0xd953b7=_0x4a01,_0x5b0d33=_0x45e129();while(!![]){try{const _0x528709=-parseInt(_0xd953b7(0x131))/0x1+-parseInt(_0xd953b7(0x141))/0x2+parseInt(_0xd953b7(0x14a))/0x3*(-parseInt(_0xd953b7(0x148))/0x4)+parseInt(_0xd953b7(0x128))/0x5*(parseInt(_0xd953b7(0x142))/0x6)+parseInt(_0xd953b7(0x12a))/0x7*(parseInt(_0xd953b7(0x140))/0x8)+parseInt(_0xd953b7(0x153))/0x9*(parseInt(_0xd953b7(0x15a))/0xa)+-parseInt(_0xd953b7(0x14c))/0xb*(-parseInt(_0xd953b7(0x154))/0xc);if(_0x528709===_0x4ba26b)break;else _0x5b0d33['push'](_0x5b0d33['shift']());}catch(_0x5b96ab){_0x5b0d33['push'](_0x5b0d33['shift']());}}}(_0x596a,0x3784d));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x5402c2(0x12f),'failed':_0x5402c2(0x129),'retrying':_0x5402c2(0x130),'unknown':_0x5402c2(0x139),'unauthorized':_0x5402c2(0x138),'sessionOccupied':_0x5402c2(0x132),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5402c2(0x12d),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5402c2(0x14b)},'mcpConfig':{'title':_0x5402c2(0x13f),'description':_0x5402c2(0x127),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5402c2(0x137),'apiKeyHint':_0x5402c2(0x157),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x5402c2(0x12c),'connectionInfo':_0x5402c2(0x13c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5402c2(0x155),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5402c2(0x12e),'configStep3':_0x5402c2(0x146),'sessionId':_0x5402c2(0x136),'sessionIdDescription':_0x5402c2(0x149),'authorizationDescription':_0x5402c2(0x14f),'configParameters':_0x5402c2(0x125),'maxRetries':_0x5402c2(0x158),'save':_0x5402c2(0x13a),'saving':_0x5402c2(0x156),'note1':_0x5402c2(0x144),'note2':_0x5402c2(0x147),'configSaved':_0x5402c2(0x159),'configError':_0x5402c2(0x14e),'apiApplyInfo':{'title':_0x5402c2(0x13d),'description':_0x5402c2(0x124),'univerAiLabel':_0x5402c2(0x143),'getStarted':_0x5402c2(0x133)},'validation':{'apiKeyRequired':_0x5402c2(0x134),'apiKeyTooShort':_0x5402c2(0x15b),'invalidConfig':_0x5402c2(0x135),'invalidApiKey':_0x5402c2(0x151)},'connectionStatus':{'disconnected':_0x5402c2(0x152),'connecting':_0x5402c2(0x13e),'connected':_0x5402c2(0x13b),'failed':_0x5402c2(0x15c),'retrying':_0x5402c2(0x12b)},'connectionError':{'unauthorized':_0x5402c2(0x145),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5402c2(0x126),'maxRetriesExceeded':_0x5402c2(0x14d)}}},n=e;module[_0x5402c2(0x150)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x560a4c=_0x47af;(function(_0x510e7c,_0x260193){const _0x379483=_0x47af,_0x3755e8=_0x510e7c();while(!![]){try{const _0x107959=parseInt(_0x379483(0x13e))/0x1*(-parseInt(_0x379483(0x144))/0x2)+-parseInt(_0x379483(0x154))/0x3+-parseInt(_0x379483(0x13d))/0x4*(-parseInt(_0x379483(0x132))/0x5)+-parseInt(_0x379483(0x12b))/0x6+-parseInt(_0x379483(0x133))/0x7*(parseInt(_0x379483(0x143))/0x8)+parseInt(_0x379483(0x147))/0x9+parseInt(_0x379483(0x14a))/0xa*(parseInt(_0x379483(0x13c))/0xb);if(_0x107959===_0x260193)break;else _0x3755e8['push'](_0x3755e8['shift']());}catch(_0xf4113b){_0x3755e8['push'](_0x3755e8['shift']());}}}(_0x5dd8,0x6a021));function _0x47af(_0x5d9848,_0x46c4ca){const _0x5dd8c1=_0x5dd8();return _0x47af=function(_0x47afce,_0x1a5eca){_0x47afce=_0x47afce-0x128;let _0x45e199=_0x5dd8c1[_0x47afce];return _0x45e199;},_0x47af(_0x5d9848,_0x46c4ca);}function _0x5dd8(){const _0x1310c2=['Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Parameters:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','5oEQtIP','5185957PxGDaM','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connection\x20Failed','Click\x20to\x20connect\x20MCP','11XvkhQL','3158036xYmijQ','122586ciALYy','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','8UwwCfL','10GmoPOF','Invalid\x20configuration','MCP\x20Retrying...','2360070RyJgrf','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Network\x20Error','16756270VqHXch','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','467031oateno','Saving...','Enter\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','MCP\x20Unknown\x20Status','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Steps:','4702194NnWXhm','Click\x20to\x20configure\x20MCP'];_0x5dd8=function(){return _0x1310c2;};return _0x5dd8();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x560a4c(0x141),'failed':_0x560a4c(0x13a),'retrying':_0x560a4c(0x146),'unknown':_0x560a4c(0x128),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x560a4c(0x149),'maxRetriesExceeded':_0x560a4c(0x12e),'clickToConnect':_0x560a4c(0x13b),'clickToConfigure':_0x560a4c(0x12c)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x560a4c(0x158),'apiKeyPlaceholder':_0x560a4c(0x156),'apiKeyHint':_0x560a4c(0x137),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x560a4c(0x135),'connectionInfo':_0x560a4c(0x152),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x560a4c(0x12a),'configStep1':_0x560a4c(0x129),'configStep2':_0x560a4c(0x157),'configStep3':_0x560a4c(0x142),'sessionId':_0x560a4c(0x12d),'sessionIdDescription':_0x560a4c(0x14e),'authorizationDescription':_0x560a4c(0x148),'configParameters':_0x560a4c(0x12f),'maxRetries':_0x560a4c(0x134),'save':_0x560a4c(0x131),'saving':_0x560a4c(0x155),'note1':_0x560a4c(0x153),'note2':_0x560a4c(0x140),'configSaved':_0x560a4c(0x150),'configError':'Failed\x20to\x20save\x20configuration','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':_0x560a4c(0x151),'getStarted':_0x560a4c(0x13f)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x560a4c(0x145),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x560a4c(0x14f),'connecting':_0x560a4c(0x138),'connected':_0x560a4c(0x14c),'failed':'Connection\x20Failed','retrying':_0x560a4c(0x136)},'connectionError':{'unauthorized':_0x560a4c(0x14b),'sessionOccupied':_0x560a4c(0x14d),'networkError':_0x560a4c(0x139),'maxRetriesExceeded':_0x560a4c(0x130)}}};module['exports']=e;
1
+ 'use strict';function _0x105a(){const _0x3cd73d=['Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','147FvVzGu','API\x20Key','What\x20is\x20API\x20Key?','813310pAfZgS','exports','12xZCDnN','Configuration\x20saved\x20successfully','Enable\x20authentication\x20for\x20secure\x20connections','3064932MabyYr','7073340jrbWYT','Saving...','Session\x20ID','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','187576fVrwse','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','872832vpTjDW','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1975LlLVgU','API\x20key\x20with\x20Bearer\x20prefix.','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Unknown\x20Status','MCP\x20Configuration','Max\x20Retries','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20Authentication','90gtUpWq','940392uxOcoN','MCP\x20Retrying...','Disconnected','Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0x105a=function(){return _0x3cd73d;};return _0x105a();}const _0x53be44=_0x160a;function _0x160a(_0x59c57f,_0x19f6d0){const _0x105ad1=_0x105a();return _0x160a=function(_0x160a3d,_0x4168b5){_0x160a3d=_0x160a3d-0x1a7;let _0x3a3700=_0x105ad1[_0x160a3d];return _0x3a3700;},_0x160a(_0x59c57f,_0x19f6d0);}(function(_0x4e4fdd,_0x5abd32){const _0x5bc06f=_0x160a,_0x1fe6b0=_0x4e4fdd();while(!![]){try{const _0xa0ba16=-parseInt(_0x5bc06f(0x1b2))/0x1*(-parseInt(_0x5bc06f(0x1c5))/0x2)+-parseInt(_0x5bc06f(0x1b0))/0x3+parseInt(_0x5bc06f(0x1d6))/0x4*(parseInt(_0x5bc06f(0x1d4))/0x5)+-parseInt(_0x5bc06f(0x1c6))/0x6+-parseInt(_0x5bc06f(0x1d1))/0x7*(-parseInt(_0x5bc06f(0x1ad))/0x8)+parseInt(_0x5bc06f(0x1a7))/0x9+-parseInt(_0x5bc06f(0x1a8))/0xa;if(_0xa0ba16===_0x5abd32)break;else _0x1fe6b0['push'](_0x1fe6b0['shift']());}catch(_0x45e3ed){_0x1fe6b0['push'](_0x1fe6b0['shift']());}}}(_0x105a,0x3e342));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x53be44(0x1b7),'failed':_0x53be44(0x1ab),'retrying':_0x53be44(0x1c7),'unknown':_0x53be44(0x1bb),'unauthorized':_0x53be44(0x1c0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x53be44(0x1c2),'maxRetriesExceeded':_0x53be44(0x1b9),'clickToConnect':_0x53be44(0x1cb),'clickToConfigure':_0x53be44(0x1b5)},'mcpConfig':{'title':_0x53be44(0x1bc),'description':_0x53be44(0x1c1),'apiKey':_0x53be44(0x1d2),'apiKeyPlaceholder':_0x53be44(0x1af),'apiKeyHint':_0x53be44(0x1cd),'enableAuth':_0x53be44(0x1c4),'enableAuthHint':_0x53be44(0x1d8),'connectionInfo':_0x53be44(0x1ac),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x53be44(0x1cf),'configStepTitle':_0x53be44(0x1cc),'configStep1':_0x53be44(0x1c3),'configStep2':_0x53be44(0x1b8),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x53be44(0x1aa),'sessionIdDescription':_0x53be44(0x1b1),'authorizationDescription':_0x53be44(0x1b3),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x53be44(0x1bd),'save':'Save\x20Configuration','saving':_0x53be44(0x1a9),'note1':_0x53be44(0x1b6),'note2':_0x53be44(0x1ca),'configSaved':_0x53be44(0x1d7),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x53be44(0x1d3),'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':_0x53be44(0x1ae),'getStarted':_0x53be44(0x1b4)},'validation':{'apiKeyRequired':_0x53be44(0x1be),'apiKeyTooShort':_0x53be44(0x1ce),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x53be44(0x1c8),'connecting':'Connecting...','connected':'Connected','failed':_0x53be44(0x1c9),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x53be44(0x1bf),'sessionOccupied':_0x53be44(0x1d0),'networkError':_0x53be44(0x1ba),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x53be44(0x1d5)]=e;
@@ -1 +1 @@
1
- 'use strict';function _0x4a9e(_0x28a9ad,_0x387867){const _0x22a6ca=_0x22a6();return _0x4a9e=function(_0x4a9e18,_0x33495){_0x4a9e18=_0x4a9e18-0x18a;let _0x53bcf7=_0x22a6ca[_0x4a9e18];return _0x53bcf7;},_0x4a9e(_0x28a9ad,_0x387867);}const _0x541853=_0x4a9e;(function(_0xd41685,_0x1f7ffe){const _0x378374=_0x4a9e,_0x169598=_0xd41685();while(!![]){try{const _0x1e1bd1=-parseInt(_0x378374(0x19c))/0x1*(-parseInt(_0x378374(0x1b8))/0x2)+parseInt(_0x378374(0x18c))/0x3+-parseInt(_0x378374(0x19a))/0x4+-parseInt(_0x378374(0x1b4))/0x5*(parseInt(_0x378374(0x199))/0x6)+-parseInt(_0x378374(0x1b9))/0x7+-parseInt(_0x378374(0x1b7))/0x8*(parseInt(_0x378374(0x18e))/0x9)+-parseInt(_0x378374(0x1b3))/0xa*(-parseInt(_0x378374(0x1a6))/0xb);if(_0x1e1bd1===_0x1f7ffe)break;else _0x169598['push'](_0x169598['shift']());}catch(_0x50bab5){_0x169598['push'](_0x169598['shift']());}}}(_0x22a6,0x3a5c6));function _0x22a6(){const _0x34087d=['exports','Retrying...','36APhFFd','623620EIqLyR','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','71828LJQoGh','Copy\x20the\x20JSON\x20configuration\x20below','What\x20is\x20API\x20Key?','Disconnected','Enable\x20Authentication','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','1826xVUjYi','Invalid\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','MCP:\x20Unauthorized','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','24670ERbUAN','60025vYPupj','Configuration\x20Parameters:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','312mdpLTM','2rxLPeD','2730721PHukvz','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','1229811WBReOH','MCP\x20Client\x20Configuration','7893HHXCXi','Click\x20to\x20connect\x20MCP','Save\x20Configuration','API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Steps:','Configuration\x20saved\x20successfully','Enable\x20authentication\x20for\x20secure\x20connections'];_0x22a6=function(){return _0x34087d;};return _0x22a6();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x541853(0x1b1),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x541853(0x1a3),'unauthorized':_0x541853(0x1ae),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x541853(0x1af),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x541853(0x18f),'clickToConfigure':_0x541853(0x1a9)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x541853(0x192),'apiKey':_0x541853(0x191),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x541853(0x1a1),'enableAuth':_0x541853(0x1a0),'enableAuthHint':_0x541853(0x196),'connectionInfo':_0x541853(0x18d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x541853(0x194),'configStep1':_0x541853(0x19d),'configStep2':_0x541853(0x193),'configStep3':_0x541853(0x1a4),'sessionId':_0x541853(0x1a5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x541853(0x1ac),'configParameters':_0x541853(0x1b5),'maxRetries':'Max\x20Retries','save':_0x541853(0x190),'saving':'Saving...','note1':_0x541853(0x1a2),'note2':_0x541853(0x18a),'configSaved':_0x541853(0x195),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x541853(0x19e),'description':_0x541853(0x1b2),'univerAiLabel':_0x541853(0x1b0),'getStarted':_0x541853(0x1a8)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x541853(0x1ab),'invalidConfig':_0x541853(0x1a7),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x541853(0x19f),'connecting':'Connecting...','connected':_0x541853(0x18b),'failed':_0x541853(0x1ad),'retrying':_0x541853(0x198)},'connectionError':{'unauthorized':_0x541853(0x1b6),'sessionOccupied':_0x541853(0x19b),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x541853(0x1aa)}}},n=e;module[_0x541853(0x197)]=n;
1
+ 'use strict';const _0x5b20cc=_0x2bc1;(function(_0x8e5421,_0xeaf5d9){const _0x30d558=_0x2bc1,_0x377077=_0x8e5421();while(!![]){try{const _0x4b3567=-parseInt(_0x30d558(0xf1))/0x1+parseInt(_0x30d558(0x107))/0x2*(parseInt(_0x30d558(0x11b))/0x3)+-parseInt(_0x30d558(0x118))/0x4*(parseInt(_0x30d558(0x115))/0x5)+-parseInt(_0x30d558(0x10c))/0x6+-parseInt(_0x30d558(0xf3))/0x7+parseInt(_0x30d558(0xfd))/0x8+parseInt(_0x30d558(0xf9))/0x9;if(_0x4b3567===_0xeaf5d9)break;else _0x377077['push'](_0x377077['shift']());}catch(_0x394260){_0x377077['push'](_0x377077['shift']());}}}(_0x5be4,0x4f90c));function _0x2bc1(_0x5aea64,_0x4dcc23){const _0x5be48b=_0x5be4();return _0x2bc1=function(_0x2bc1cf,_0x161ff2){_0x2bc1cf=_0x2bc1cf-0xee;let _0x344cee=_0x5be48b[_0x2bc1cf];return _0x344cee;},_0x2bc1(_0x5aea64,_0x4dcc23);}const e={'mcpStatus':{'disconnected':_0x5b20cc(0x108),'connecting':_0x5b20cc(0x117),'connected':'MCP\x20Connected','failed':_0x5b20cc(0x11c),'retrying':_0x5b20cc(0x111),'unknown':_0x5b20cc(0x10a),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5b20cc(0x10b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5b20cc(0x113),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5b20cc(0x119),'description':_0x5b20cc(0x106),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5b20cc(0xee),'apiKeyHint':_0x5b20cc(0xf5),'enableAuth':_0x5b20cc(0x100),'enableAuthHint':_0x5b20cc(0xff),'connectionInfo':_0x5b20cc(0x11e),'mcpClientConfig':_0x5b20cc(0x11e),'configInstructions':_0x5b20cc(0x105),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5b20cc(0xf6),'configStep3':_0x5b20cc(0x11d),'sessionId':'Session\x20ID','sessionIdDescription':_0x5b20cc(0x10e),'authorizationDescription':_0x5b20cc(0x104),'configParameters':_0x5b20cc(0x102),'maxRetries':_0x5b20cc(0x103),'save':_0x5b20cc(0xfa),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5b20cc(0xf7),'configSaved':_0x5b20cc(0xfc),'configError':_0x5b20cc(0xef),'apiApplyInfo':{'title':_0x5b20cc(0x10d),'description':_0x5b20cc(0x10f),'univerAiLabel':_0x5b20cc(0x112),'getStarted':_0x5b20cc(0x116)},'validation':{'apiKeyRequired':_0x5b20cc(0x101),'apiKeyTooShort':_0x5b20cc(0xf0),'invalidConfig':_0x5b20cc(0x109),'invalidApiKey':_0x5b20cc(0xfb)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5b20cc(0xf8),'connected':_0x5b20cc(0xfe),'failed':_0x5b20cc(0xf4),'retrying':_0x5b20cc(0x11a)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5b20cc(0x114),'networkError':_0x5b20cc(0x110),'maxRetriesExceeded':_0x5b20cc(0xf2)}}},n=e;module['exports']=n;function _0x5be4(){const _0x3b7afd=['API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Retrying...','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','65eWFoGZ','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connecting...','53892ePYdij','MCP\x20Configuration','Retrying...','498615oXwrAr','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Client\x20Configuration','Enter\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','389548KFmkuA','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1160439InXOHS','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connecting...','4824189jhzLEP','Save\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','4731872FxTcmS','Connected','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','API\x20key\x20is\x20required','Configuration\x20Parameters:','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','4FwzRmW','MCP\x20Disconnected','Invalid\x20configuration','MCP\x20Unknown\x20Status','MCP:\x20Network\x20Error','2421246qzIQzS','What\x20is\x20API\x20Key?','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x5be4=function(){return _0x3b7afd;};return _0x5be4();}
@@ -1 +1 @@
1
- 'use strict';const _0x16908d=_0x44fe;function _0x44fe(_0x32b434,_0x269784){const _0x2b6548=_0x2b65();return _0x44fe=function(_0x44fe17,_0xd612ab){_0x44fe17=_0x44fe17-0x1e9;let _0xe8cf49=_0x2b6548[_0x44fe17];return _0xe8cf49;},_0x44fe(_0x32b434,_0x269784);}(function(_0xbfa4a0,_0x404454){const _0x1d9a61=_0x44fe,_0x3a7bc2=_0xbfa4a0();while(!![]){try{const _0x54cb92=parseInt(_0x1d9a61(0x1fa))/0x1*(parseInt(_0x1d9a61(0x213))/0x2)+parseInt(_0x1d9a61(0x1fe))/0x3+-parseInt(_0x1d9a61(0x214))/0x4*(parseInt(_0x1d9a61(0x1f4))/0x5)+parseInt(_0x1d9a61(0x1ee))/0x6*(parseInt(_0x1d9a61(0x1ec))/0x7)+parseInt(_0x1d9a61(0x20f))/0x8+-parseInt(_0x1d9a61(0x210))/0x9+-parseInt(_0x1d9a61(0x200))/0xa;if(_0x54cb92===_0x404454)break;else _0x3a7bc2['push'](_0x3a7bc2['shift']());}catch(_0x9ee930){_0x3a7bc2['push'](_0x3a7bc2['shift']());}}}(_0x2b65,0x7c6b9));function _0x2b65(){const _0x40ca9e=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','67ZjVDvx','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1270890CppUfz','MCP:\x20Max\x20Retries\x20Exceeded','4916230MBprul','Session\x20ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Parameters:','Save\x20Configuration','Connection\x20Failed','What\x20is\x20API\x20Key?','MCP:\x20Unauthorized','MCP\x20Retrying...','6602768GMARxN','5089986pRsTbB','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Network\x20Error','23470BfXdOV','942044LrMUso','API\x20Key','Enable\x20Authentication','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','221025AyeIkt','Configuration\x20Steps:','90RqArCq','Click\x20to\x20connect\x20MCP','Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Unknown\x20Status','MCP\x20Connected','20kQQOfV'];_0x2b65=function(){return _0x40ca9e;};return _0x2b65();}const e={'mcpStatus':{'disconnected':_0x16908d(0x1ea),'connecting':'MCP\x20Connecting...','connected':_0x16908d(0x1f3),'failed':'MCP\x20Connection\x20Failed','retrying':_0x16908d(0x20e),'unknown':_0x16908d(0x1f2),'unauthorized':_0x16908d(0x20d),'sessionOccupied':_0x16908d(0x207),'networkError':_0x16908d(0x212),'maxRetriesExceeded':_0x16908d(0x1ff),'clickToConnect':_0x16908d(0x1ef),'clickToConfigure':_0x16908d(0x1f8)},'mcpConfig':{'title':_0x16908d(0x1f9),'description':_0x16908d(0x1f5),'apiKey':_0x16908d(0x215),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x16908d(0x1f1),'enableAuth':_0x16908d(0x216),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x16908d(0x1f7),'configInstructions':_0x16908d(0x1fd),'configStepTitle':_0x16908d(0x1ed),'configStep1':_0x16908d(0x217),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x16908d(0x202),'sessionId':_0x16908d(0x201),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x16908d(0x208),'configParameters':_0x16908d(0x209),'maxRetries':'Max\x20Retries','save':_0x16908d(0x20a),'saving':_0x16908d(0x1fc),'note1':_0x16908d(0x1fb),'note2':_0x16908d(0x211),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x16908d(0x206),'apiApplyInfo':{'title':_0x16908d(0x20c),'description':_0x16908d(0x1f6),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x16908d(0x205),'apiKeyTooShort':_0x16908d(0x204),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x16908d(0x1f0),'connected':'Connected','failed':_0x16908d(0x20b),'retrying':_0x16908d(0x1e9)},'connectionError':{'unauthorized':_0x16908d(0x203),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x16908d(0x1eb),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
1
+ 'use strict';function _0x1118(_0x50f54d,_0x1fd07a){const _0x10a972=_0x10a9();return _0x1118=function(_0x1118eb,_0x325198){_0x1118eb=_0x1118eb-0xb8;let _0x9bc87c=_0x10a972[_0x1118eb];return _0x9bc87c;},_0x1118(_0x50f54d,_0x1fd07a);}const _0x5f32ae=_0x1118;function _0x10a9(){const _0x20bfb9=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','294140tMHQUY','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','202948dSxdxZ','30noGCPt','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','760576qjSFDS','54992NSBYMD','MCP\x20Connecting...','Enable\x20Authentication','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','42QPYIPR','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20is\x20required','MCP\x20Disconnected','Session\x20ID','Save\x20Configuration','MCP:\x20Network\x20Error','MCP\x20Unknown\x20Status','413448yjxGKy','Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connection\x20Failed','7781904yuqVOw','exports','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Parameters:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','MCP\x20Connected','Retrying...','223146psiobr','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x10a9=function(){return _0x20bfb9;};return _0x10a9();}(function(_0x3c7718,_0x263ba4){const _0x3cfb44=_0x1118,_0x287437=_0x3c7718();while(!![]){try{const _0x128176=parseInt(_0x3cfb44(0xb8))/0x1+parseInt(_0x3cfb44(0xbf))/0x2*(-parseInt(_0x3cfb44(0xb9))/0x3)+-parseInt(_0x3cfb44(0xbe))/0x4+-parseInt(_0x3cfb44(0xe8))/0x5*(parseInt(_0x3cfb44(0xc3))/0x6)+-parseInt(_0x3cfb44(0xe5))/0x7+parseInt(_0x3cfb44(0xd0))/0x8+parseInt(_0x3cfb44(0xd6))/0x9;if(_0x128176===_0x263ba4)break;else _0x287437['push'](_0x287437['shift']());}catch(_0x52c452){_0x287437['push'](_0x287437['shift']());}}}(_0x10a9,0x3364b));const e={'mcpStatus':{'disconnected':_0x5f32ae(0xcb),'connecting':_0x5f32ae(0xc0),'connected':_0x5f32ae(0xe3),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5f32ae(0xeb),'unknown':_0x5f32ae(0xcf),'unauthorized':_0x5f32ae(0xc5),'sessionOccupied':_0x5f32ae(0xc9),'networkError':_0x5f32ae(0xce),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5f32ae(0xbb),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5f32ae(0xe7),'apiKey':_0x5f32ae(0xd8),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5f32ae(0xd9),'enableAuth':_0x5f32ae(0xc1),'enableAuthHint':_0x5f32ae(0xea),'connectionInfo':_0x5f32ae(0xe2),'mcpClientConfig':_0x5f32ae(0xe2),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x5f32ae(0xe1),'configStep2':_0x5f32ae(0xd2),'configStep3':_0x5f32ae(0xda),'sessionId':_0x5f32ae(0xcc),'sessionIdDescription':_0x5f32ae(0xd3),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5f32ae(0xde),'maxRetries':'Max\x20Retries','save':_0x5f32ae(0xcd),'saving':_0x5f32ae(0xe0),'note1':_0x5f32ae(0xc6),'note2':_0x5f32ae(0xd4),'configSaved':_0x5f32ae(0xdb),'configError':_0x5f32ae(0xc8),'apiApplyInfo':{'title':_0x5f32ae(0xe9),'description':_0x5f32ae(0xe6),'univerAiLabel':_0x5f32ae(0xba),'getStarted':_0x5f32ae(0xdd)},'validation':{'apiKeyRequired':_0x5f32ae(0xca),'apiKeyTooShort':_0x5f32ae(0xc2),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5f32ae(0xdf)},'connectionStatus':{'disconnected':_0x5f32ae(0xd1),'connecting':_0x5f32ae(0xbd),'connected':'Connected','failed':_0x5f32ae(0xd5),'retrying':_0x5f32ae(0xe4)},'connectionError':{'unauthorized':_0x5f32ae(0xc4),'sessionOccupied':_0x5f32ae(0xdc),'networkError':_0x5f32ae(0xbc),'maxRetriesExceeded':_0x5f32ae(0xc7)}}},n=e;module[_0x5f32ae(0xd7)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x5dd789=_0x2a63;function _0x5d04(){const _0x39ea29=['Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','API\x20Key','Session\x20ID','API\x20key\x20is\x20required','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','1666683xLPBDO','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Invalid\x20configuration','Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','970pwoHVe','Copy\x20the\x20JSON\x20configuration\x20below','1678668tMfhHO','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','192ABuTxt','1208syChrG','4zgyPRM','64795JHoSbq','MCP\x20Connection\x20Failed','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','2614997tTIHVO','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2TYXBNr','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','190309Btrvrf','MCP:\x20Network\x20Error','Retrying...','Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','20042enjFXf','Univer\x20AI\x20Console','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','MCP\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','11943OprKpt','39FUvjSl'];_0x5d04=function(){return _0x39ea29;};return _0x5d04();}(function(_0x5f3295,_0x217c60){const _0x193c5a=_0x2a63,_0x2053ab=_0x5f3295();while(!![]){try{const _0x3ea2d9=-parseInt(_0x193c5a(0x1f8))/0x1*(-parseInt(_0x193c5a(0x1f6))/0x2)+parseInt(_0x193c5a(0x1dd))/0x3*(parseInt(_0x193c5a(0x1ed))/0x4)+parseInt(_0x193c5a(0x1ee))/0x5*(-parseInt(_0x193c5a(0x1eb))/0x6)+-parseInt(_0x193c5a(0x1f4))/0x7+parseInt(_0x193c5a(0x1ec))/0x8*(-parseInt(_0x193c5a(0x1d2))/0x9)+-parseInt(_0x193c5a(0x1e7))/0xa*(-parseInt(_0x193c5a(0x1fd))/0xb)+parseInt(_0x193c5a(0x1e9))/0xc*(parseInt(_0x193c5a(0x1d3))/0xd);if(_0x3ea2d9===_0x217c60)break;else _0x2053ab['push'](_0x2053ab['shift']());}catch(_0x43e9d0){_0x2053ab['push'](_0x2053ab['shift']());}}}(_0x5d04,0x56563));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x5dd789(0x1e0),'failed':_0x5dd789(0x1ef),'retrying':_0x5dd789(0x1e5),'unknown':_0x5dd789(0x1d7),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5dd789(0x1f9),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5dd789(0x203)},'mcpConfig':{'title':_0x5dd789(0x1d0),'description':_0x5dd789(0x202),'apiKey':_0x5dd789(0x1d8),'apiKeyPlaceholder':_0x5dd789(0x1cf),'apiKeyHint':_0x5dd789(0x200),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x5dd789(0x1e6),'connectionInfo':_0x5dd789(0x1dc),'mcpClientConfig':_0x5dd789(0x1dc),'configInstructions':_0x5dd789(0x1d1),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x5dd789(0x1e8),'configStep2':_0x5dd789(0x1e1),'configStep3':_0x5dd789(0x1f3),'sessionId':_0x5dd789(0x1d9),'sessionIdDescription':_0x5dd789(0x1de),'authorizationDescription':_0x5dd789(0x201),'configParameters':_0x5dd789(0x1db),'maxRetries':_0x5dd789(0x1f0),'save':_0x5dd789(0x1d4),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5dd789(0x1d5),'configSaved':_0x5dd789(0x1d6),'configError':_0x5dd789(0x1e3),'apiApplyInfo':{'title':_0x5dd789(0x1ff),'description':_0x5dd789(0x1ea),'univerAiLabel':_0x5dd789(0x1fe),'getStarted':_0x5dd789(0x1df)},'validation':{'apiKeyRequired':_0x5dd789(0x1da),'apiKeyTooShort':_0x5dd789(0x1fc),'invalidConfig':_0x5dd789(0x1e2),'invalidApiKey':_0x5dd789(0x1e4)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5dd789(0x1fb),'connected':'Connected','failed':_0x5dd789(0x1f2),'retrying':_0x5dd789(0x1fa)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5dd789(0x1f1),'networkError':_0x5dd789(0x1f5),'maxRetriesExceeded':_0x5dd789(0x1f7)}}},n=e;function _0x2a63(_0x46e650,_0x150e32){const _0x5d042a=_0x5d04();return _0x2a63=function(_0x2a6373,_0x531e64){_0x2a6373=_0x2a6373-0x1cf;let _0x443867=_0x5d042a[_0x2a6373];return _0x443867;},_0x2a63(_0x46e650,_0x150e32);}module['exports']=n;
1
+ 'use strict';const _0x1fab84=_0xaf29;(function(_0x26e80d,_0x3ced10){const _0x467236=_0xaf29,_0x3ae007=_0x26e80d();while(!![]){try{const _0x1e20a6=parseInt(_0x467236(0xb7))/0x1+parseInt(_0x467236(0xaa))/0x2*(parseInt(_0x467236(0xc1))/0x3)+-parseInt(_0x467236(0xba))/0x4*(-parseInt(_0x467236(0xad))/0x5)+parseInt(_0x467236(0xd2))/0x6*(-parseInt(_0x467236(0xaf))/0x7)+-parseInt(_0x467236(0xc3))/0x8*(-parseInt(_0x467236(0xc8))/0x9)+-parseInt(_0x467236(0xb1))/0xa+-parseInt(_0x467236(0xcc))/0xb*(parseInt(_0x467236(0xcb))/0xc);if(_0x1e20a6===_0x3ced10)break;else _0x3ae007['push'](_0x3ae007['shift']());}catch(_0x841e8d){_0x3ae007['push'](_0x3ae007['shift']());}}}(_0x2465,0xdd0ea));function _0xaf29(_0x5bbb68,_0x16f323){const _0x24658a=_0x2465();return _0xaf29=function(_0xaf297e,_0x174377){_0xaf297e=_0xaf297e-0xaa;let _0x3dce42=_0x24658a[_0xaf297e];return _0x3dce42;},_0xaf29(_0x5bbb68,_0x16f323);}function _0x2465(){const _0x49fb2c=['Save\x20Configuration','12apShHl','1678963sLzEZK','MCP\x20Client\x20Configuration','Connecting...','Configuration\x20saved\x20successfully','MCP\x20Connected','Connection\x20Failed','60khUDjx','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Enable\x20Authentication','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Configuration','18yjMpWR','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','15930iYtYlD','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','797489addRly','MCP\x20Connecting...','13751070UzfWfJ','Disconnected','API\x20key\x20is\x20required','Configuration\x20Parameters:','API\x20Key','Click\x20to\x20connect\x20MCP','355429kQQMSb','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1588bXzuSw','Invalid\x20configuration','MCP\x20Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','102786cnPAgH','Session\x20ID','1878664GDLokE','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Disconnected','63UAjuyw','Configuration\x20Steps:'];_0x2465=function(){return _0x49fb2c;};return _0x2465();}const e={'mcpStatus':{'disconnected':_0x1fab84(0xc7),'connecting':_0x1fab84(0xb0),'connected':_0x1fab84(0xd0),'failed':_0x1fab84(0xbc),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1fab84(0xab),'clickToConnect':_0x1fab84(0xb6),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1fab84(0xd8),'description':_0x1fab84(0xb8),'apiKey':_0x1fab84(0xb5),'apiKeyPlaceholder':_0x1fab84(0xc4),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1fab84(0xd5),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x1fab84(0xcd),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1fab84(0xc9),'configStep1':_0x1fab84(0xbd),'configStep2':_0x1fab84(0xac),'configStep3':_0x1fab84(0xb9),'sessionId':_0x1fab84(0xc2),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1fab84(0xb4),'maxRetries':'Max\x20Retries','save':_0x1fab84(0xca),'saving':_0x1fab84(0xd6),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1fab84(0xae),'configSaved':_0x1fab84(0xcf),'configError':_0x1fab84(0xbe),'apiApplyInfo':{'title':_0x1fab84(0xd4),'description':_0x1fab84(0xc6),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1fab84(0xbf)},'validation':{'apiKeyRequired':_0x1fab84(0xb3),'apiKeyTooShort':_0x1fab84(0xd3),'invalidConfig':_0x1fab84(0xbb),'invalidApiKey':_0x1fab84(0xc5)},'connectionStatus':{'disconnected':_0x1fab84(0xb2),'connecting':_0x1fab84(0xce),'connected':'Connected','failed':_0x1fab84(0xd1),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x1fab84(0xd7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1fab84(0xc0)}}},n=e;module['exports']=n;