@univerjs-pro/mcp-ui 0.15.0-insiders.20260108-7b9120d → 0.15.0-insiders.20260110-48b77c8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/index.js +1 -1
  14. package/lib/es/locale/ca-ES.js +1 -1
  15. package/lib/es/locale/en-US.js +1 -1
  16. package/lib/es/locale/es-ES.js +1 -1
  17. package/lib/es/locale/fa-IR.js +1 -1
  18. package/lib/es/locale/fr-FR.js +1 -1
  19. package/lib/es/locale/ja-JP.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/index.js +1 -1
  26. package/lib/locale/ca-ES.js +1 -1
  27. package/lib/locale/en-US.js +1 -1
  28. package/lib/locale/es-ES.js +1 -1
  29. package/lib/locale/fa-IR.js +1 -1
  30. package/lib/locale/fr-FR.js +1 -1
  31. package/lib/locale/ja-JP.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/index.js +1 -1
  38. package/lib/umd/locale/ca-ES.js +1 -1
  39. package/lib/umd/locale/en-US.js +1 -1
  40. package/lib/umd/locale/es-ES.js +1 -1
  41. package/lib/umd/locale/fa-IR.js +1 -1
  42. package/lib/umd/locale/fr-FR.js +1 -1
  43. package/lib/umd/locale/ja-JP.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +6 -6
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x37d068=_0x2620;(function(_0x508b5f,_0x2f3f2e){const _0x412273=_0x2620,_0x9bc51a=_0x508b5f();while(!![]){try{const _0x3b2ef5=-parseInt(_0x412273(0x242))/0x1+-parseInt(_0x412273(0x1e7))/0x2+-parseInt(_0x412273(0x2e9))/0x3*(parseInt(_0x412273(0x1a7))/0x4)+-parseInt(_0x412273(0x299))/0x5*(-parseInt(_0x412273(0x234))/0x6)+-parseInt(_0x412273(0x2cf))/0x7+-parseInt(_0x412273(0x1f2))/0x8*(parseInt(_0x412273(0x2d4))/0x9)+parseInt(_0x412273(0x2df))/0xa;if(_0x3b2ef5===_0x2f3f2e)break;else _0x9bc51a['push'](_0x9bc51a['shift']());}catch(_0x217c7d){_0x9bc51a['push'](_0x9bc51a['shift']());}}}(_0x32c2,0xcc806));var Pe=Object['defineProperty'],Ee=(_0x23e76b,_0x465a88,_0x31c3e5)=>_0x465a88 in _0x23e76b?Pe(_0x23e76b,_0x465a88,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31c3e5}):_0x23e76b[_0x465a88]=_0x31c3e5,x=(_0x476945,_0x293ec0,_0x5e3dce)=>Ee(_0x476945,typeof _0x293ec0!='symbol'?_0x293ec0+'':_0x293ec0,_0x5e3dce);import{LocaleService as _0x3cc846,Inject as _0xc9964b,Injector as _0x3e5d6b,IConfigService as _0x103b5f,ILocalStorageService as _0x1e1c9c,ILogService as _0x2d4ae4,Disposable as _0x3e6a00,CommandType as _0x555623,ICommandService as _0x529981,DependentOn as _0x398f4f,Plugin as _0x23a3ce,merge as _0x2b4533}from'@univerjs/core';import{jsxs as _0x27c6dd,jsx as _0x192029}from'react/jsx-runtime';import{MCPConnectionStatus as _0x2955f5,MCPConnectionError as _0x29588c,MCPConnectionController as _0x15815b,MCP_PLUGIN_CONFIG_KEY as _0x230466,UniverMCPPlugin as _0x15fc25}from'@univerjs-pro/mcp';import{clsx as _0x29044a,Input as _0x11c3cf,Button as _0x45e1c4,MessageType as _0x3b5835,Tooltip as _0x507d16}from'@univerjs/design';import{useDependency as _0x11bdf6,useObservable as _0x20a087,IUIPartsService as _0x34e83f,IDialogService as _0x17f5a1,IMessageService as _0x4f13e3,ComponentManager as _0x15a82,connectInjector as _0x47532f,BuiltInUIPart as _0x5d533c,MenuItemType as _0x2ee5ab,RibbonStartGroup as _0x2efc28,IMenuManagerService as _0x595c7c}from'@univerjs/ui';import{BehaviorSubject as _0x139ed4}from'rxjs';function _0x32c2(){const _0x5c05b6=['replace','stringify','https://console.univer.plus','mcpServerUrl','univer-flex-1','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','noopener\x20noreferrer','mcpConfig.configStepTitle','length','children','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_config','mcpConfig.validation.invalidConfig','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.configInstructions','mcpConfig.title','API\x20key\x20is\x20required','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.sessionIdDescription','Configuration\x20Steps:','mcpConfig.configStep3','230bbnXCV','NONE','univer-text-xs\x20univer-text-gray-500','add','_registerComponent','getItem','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-red-500','_menuManagerService','几秒钟内获取您的\x20API\x20密钥','API\x20密钥无效,请检查密钥是否正确','mcpConfig.configStep2','mcpConfig.apiKeyHint','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','errorMessage','_dialogService','getConfig','registerComponent','已连接','round','最大重试次数','univer-flex\x20univer-items-center','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20重连中...','权限验证失败,请检查您的\x20API\x20密钥','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_loadStoredApiKey','mcpConfig.connectionError.sessionOccupied','trim','将配置添加到您的\x20MCP\x20客户端设置文件中','_config$','defIds','use','启用身份验证以获得安全连接','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','showDeveloperTools','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','_blank','mcpConfig.configError','subscribe','univer-size-4','_mcpConnectionController','connectionStatus$','univer-text-sm\x20univer-font-medium','FAILED','div','white','MCP\x20已连接','univer-shrink-0\x20univer-text-blue-500','register','Invalid\x20configuration','MCP\x20Retrying...','UNAUTHORIZED','1918266PJbkyH','配置参数:','forEach','<SESSION_ID>','OffLineIcon','18BCNEFk','SESSION_ID_OCCUPIED','univer-flex\x20univer-items-start\x20univer-gap-2','onStarting','Save\x20Configuration','CONNECTING','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','next','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','attrs','close-icon','29528250gpQYpU','mcpStatus.retrying','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connecting...','univerjs-icon\x20univerjs-icon-','close','toString','mcpStatus.connected','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Authorization:','99volSTH','Disconnected','translate(.97)','重连中...','CloseIcon','_localeService','_initAutoConnect','Configuration\x20Notes:','What\x20is\x20API\x20Key?','univer-text-sm\x20univer-text-gray-500','请输入您的\x20API\x20密钥','MCP:\x20会话\x20ID\x20已被占用','univer-space-y-2','MenuIcon','DISCONNECTED','svg','url(#$1','xlink:href','error','Get\x20your\x20API\x20key\x20in\x20seconds','超出最大重试次数,请稍后再试','disposeWithMe','35804qVAvEd','Click\x20to\x20configure\x20MCP','defs','UniverIcon','API\x20密钥长度至少需要\x2010\x20位','none','点击连接\x20MCP','会话ID','_localStorageService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpStatus.unknown','_commandService','mcpConfig.apiApplyInfo.title','clipPath','univer.plus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Session\x20ID','univer-flex\x20univer-items-center\x20univer-gap-2','BUTTON','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpStatus.sessionOccupied','Univer\x20AI\x20控制台','mcpConfig.connectionStatus.connected','网络连接错误,请检查您的网络连接','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Click\x20to\x20connect\x20MCP','mcpConfig.apiApplyInfo.getStarted','配置保存失败','_createConfigPanelComponent','0\x200\x2017\x2016','https://mcp.univer.ai/mcp/?univer_session_id=','string','https://console.univer.ai','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','NETWORK_ERROR','univer-bg-gray-500','univer-text-green-500','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','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Bearer\x20','__setCustomHeaders','Saving...','mcpConfig.save','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','HelpIcon','MCP\x20客户端配置','Enable\x20Authentication','current','univer-text-yellow-500','_handleConfigure','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','mcp-ui.command.openConfigPanel','API\x20Key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','CONNECTED','univer-flex\x20univer-items-start\x20univer-gap-3','http://www.w3.org/2000/svg','mcpConfig.saving','_apiKey$','配置保存成功','defineProperty','mask','\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','2129722noUmPr','\x20-\x20','univer-bg-green-500','MAX_RETRIES_EXCEEDED','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','label','_initializeMenus','Connected','_configService','Connecting...','4502056yIOgWH','Retrying...','http','MCP:\x20网络错误','<API_KEY>','text','配置更改将立即生效','mcpConfig.authorizationDescription','COMMAND','registerCommand','off-line-icon_clip0_910_343','tag','connectionError$','span','includes','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','会话\x20ID\x20已被占用,请稍后再试','check-mark-icon','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','currentColor','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-space-y-5','_logService','isValid','subscribeConfigValue$','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','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_initConfigSync','validateApiKey','mcpConfig.connectionError.maxRetriesExceeded','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','value','连接失败','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Max\x20Retries','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','substring','idSuffix','mcpConfig.connectionStatus.connecting','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20未授权','warn','MCP\x20状态未知','has','univer-space-y-3','mcpStatus.connecting','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','map','mcpConfig.connectionStatus.disconnected','MCP\x20已断开','mcpStatus.unauthorized','_uiPartsService','_validateConfig','path','mcp-config-dialog','show','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-shrink-0\x20univer-text-red-500','getCurrentConfig','MCP\x20连接中...','Enter\x20your\x20API\x20key','univer-mr-2\x20univer-flex\x20univer-text-xl','1em','univer-flex\x20univer-gap-3','92928wnOucu','Error','mcpConfig.apiApplyInfo.description','getOwnPropertyDescriptor','Success','enableAutoConnect','_handleConfigSave','univer-size-2\x20univer-rounded-full','_componentManager','MCP\x20配置','M0\x200H16V16H0z','mcpConfig.apiKey','apiKey','Univer\x20AI\x20Console','67839ulkkPM','univer-text-blue-600','_mcpCoreConfig$','mcpConfig.configParameters','MCP\x20Connected','mcpStatus.failed','assign','MCPConfigPanel','sessionId$','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_connectionController','_messageService','button','mcpConfig.connectionInfo','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Configuration\x20Parameters:','_loading$','_injector','API\x20密钥','MCP\x20Connection\x20Failed','保存中...','点击配置\x20MCP','mcpConfig.note2','univer-text-gray-500','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','mcpConfig.note1','univer-min-w-0\x20univer-flex-1','0\x200\x2016\x2016','on-line-icon_clip0_910_349','setItem','mcpConfig.validation.apiKeyTooShort','showConfigPanel','pluginName','MCP\x20Client\x20Configuration','univer.ai','univer-text-gray-400','MCP:\x20Max\x20Retries\x20Exceeded','get','univer-text-xs\x20univer-text-gray-600','Copy\x20the\x20JSON\x20configuration\x20below','setConfig','Configuration\x20saved\x20successfully','displayName','entries','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.connectionError.unauthorized','off-line-icon','mcpConfig.connectionStatus.failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','RETRYING','on-line-icon','evenodd','univer-space-y-4','open','什么是\x20API\x20密钥?','重启您的\x20MCP\x20客户端以使配置生效','CheckMarkIcon','mcpStatus.networkError','mcpConfig.connectionError.networkError','配置步骤:','univer-bg-red-500','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.description','配置无效','mcpConfig.configStep1'];_0x32c2=function(){return _0x5c05b6;};return _0x32c2();}import{useRef as _0x4ddbe4,createElement as _0x2e2d20,forwardRef as _0x25e551,useState as _0x221e3a,useCallback as _0x2d128c}from'react';import{ISocketService as _0x41bbfc,WebSocketService as _0x477225}from'@univerjs/network';function b({ref:_0x41cb09,..._0xfb0103}){const _0x456496=_0x2620,{icon:_0x56e358,id:_0x5ef24b,className:_0x4e3dc9,extend:_0x1081ca,..._0x127193}=_0xfb0103,_0x5999f0=(_0x456496(0x2e3)+_0x5ef24b+'\x20'+(_0x4e3dc9||''))['trim'](),_0x505537=_0x4ddbe4('_'+We());return ae(_0x56e358,''+_0x5ef24b,{'defIds':_0x56e358[_0x456496(0x2b9)],'idSuffix':_0x505537[_0x456496(0x1d7)]},{'ref':_0x41cb09,'className':_0x5999f0,..._0x127193},_0x1081ca);}function ae(_0x17861f,_0x328103,_0x3318db,_0x2db3ce,_0x3b2240){const _0x344547=_0x2620;return _0x2e2d20(_0x17861f['tag'],{'key':_0x328103,...Ye(_0x17861f,_0x3318db,_0x3b2240),..._0x2db3ce},(Ze(_0x17861f,_0x3318db)[_0x344547(0x28d)]||[])['map']((_0x4e76db,_0x3e78fe)=>ae(_0x4e76db,_0x328103+'-'+_0x17861f['tag']+'-'+_0x3e78fe,_0x3318db,void 0x0,_0x3b2240)));}function Ye(_0x58167f,_0x2e856d,_0x18c8ce){const _0x441e67=_0x2620,_0x57c64d={..._0x58167f[_0x441e67(0x2dd)]};_0x18c8ce!=null&&_0x18c8ce['colorChannel1']&&_0x57c64d['fill']==='colorChannel1'&&(_0x57c64d['fill']=_0x18c8ce['colorChannel1']),_0x58167f[_0x441e67(0x1fd)]===_0x441e67(0x1e5)&&_0x57c64d['id']&&(_0x57c64d['id']=_0x57c64d['id']+_0x2e856d[_0x441e67(0x219)]),Object[_0x441e67(0x26d)](_0x57c64d)[_0x441e67(0x2d1)](([_0x2cb6c3,_0x557d61])=>{const _0x2e6071=_0x441e67;_0x2cb6c3===_0x2e6071(0x1e5)&&typeof _0x557d61==_0x2e6071(0x1c6)&&(_0x57c64d[_0x2cb6c3]=_0x557d61[_0x2e6071(0x284)](/url\(#(.*)\)/,_0x2e6071(0x1a1)+_0x2e856d['idSuffix']+')'));});const {defIds:_0x2cf2b5}=_0x2e856d;return!_0x2cf2b5||_0x2cf2b5['length']===0x0||(_0x58167f['tag']===_0x441e67(0x2ba)&&_0x57c64d['xlink:href']&&(_0x57c64d[_0x441e67(0x1a2)]=_0x57c64d[_0x441e67(0x1a2)]+_0x2e856d[_0x441e67(0x219)]),Object[_0x441e67(0x26d)](_0x57c64d)[_0x441e67(0x2d1)](([_0x31f2ce,_0x393fdf])=>{const _0x29bd3b=_0x441e67;typeof _0x393fdf=='string'&&(_0x57c64d[_0x31f2ce]=_0x393fdf[_0x29bd3b(0x284)](/url\(#(.*)\)/,_0x29bd3b(0x1a1)+_0x2e856d[_0x29bd3b(0x219)]+')'));})),_0x57c64d;}function Ze(_0x36fe0c,_0x345fc7){const _0x3eeb6f=_0x2620;var _0xf2bb8f;const {defIds:_0x1cab2a}=_0x345fc7;return!_0x1cab2a||_0x1cab2a[_0x3eeb6f(0x28c)]===0x0?_0x36fe0c:_0x36fe0c[_0x3eeb6f(0x1fd)]===_0x3eeb6f(0x1a9)&&((_0xf2bb8f=_0x36fe0c[_0x3eeb6f(0x28d)])!=null&&_0xf2bb8f['length'])?{..._0x36fe0c,'children':_0x36fe0c[_0x3eeb6f(0x28d)][_0x3eeb6f(0x223)](_0x2cd082=>typeof _0x2cd082[_0x3eeb6f(0x2dd)]['id']==_0x3eeb6f(0x1c6)&&_0x1cab2a&&_0x1cab2a[_0x3eeb6f(0x200)](_0x2cd082[_0x3eeb6f(0x2dd)]['id'])?{..._0x2cd082,'attrs':{..._0x2cd082[_0x3eeb6f(0x2dd)],'id':_0x2cd082[_0x3eeb6f(0x2dd)]['id']+_0x345fc7[_0x3eeb6f(0x219)]}}:_0x2cd082)}:_0x36fe0c;}function We(){const _0x1af39b=_0x2620;return Math['random']()[_0x1af39b(0x2e5)](0x24)[_0x1af39b(0x218)](0x2,0x8);}b[_0x37d068(0x26c)]=_0x37d068(0x1aa);const qe={'tag':_0x37d068(0x1a0),'attrs':{'xmlns':_0x37d068(0x1e0),'fill':_0x37d068(0x1ac),'viewBox':'0\x200\x2016\x2016','width':_0x37d068(0x232),'height':_0x37d068(0x232)},'children':[{'tag':_0x37d068(0x229),'attrs':{'fill':'currentColor','d':_0x37d068(0x2bc),'fillRule':_0x37d068(0x276),'clipRule':_0x37d068(0x276)}}]},le=_0x25e551(function(_0x291677,_0xc4c95e){const _0x46015b=_0x37d068;return _0x2e2d20(b,Object['assign']({},_0x291677,{'id':_0x46015b(0x203),'ref':_0xc4c95e,'icon':qe}));});le['displayName']=_0x37d068(0x27b);const Xe={'tag':'svg','attrs':{'xmlns':_0x37d068(0x1e0),'fill':'none','viewBox':_0x37d068(0x25d),'width':_0x37d068(0x232),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x37d068(0x205),'d':_0x37d068(0x1da)}}]},ue=_0x25e551(function(_0x56407e,_0x32382e){const _0x3e4c5d=_0x37d068;return _0x2e2d20(b,Object[_0x3e4c5d(0x248)]({},_0x56407e,{'id':_0x3e4c5d(0x2de),'ref':_0x32382e,'icon':Xe}));});ue[_0x37d068(0x26c)]=_0x37d068(0x2ed);const Je={'tag':_0x37d068(0x1a0),'attrs':{'xmlns':_0x37d068(0x1e0),'fill':_0x37d068(0x1ac),'viewBox':_0x37d068(0x25d),'width':_0x37d068(0x232),'height':_0x37d068(0x232)},'children':[{'tag':_0x37d068(0x229),'attrs':{'fill':_0x37d068(0x205),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x37d068(0x229),'attrs':{'fill':_0x37d068(0x205),'d':'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'}},{'tag':_0x37d068(0x229),'attrs':{'fill':_0x37d068(0x205),'d':_0x37d068(0x20b),'fillRule':_0x37d068(0x276),'clipRule':_0x37d068(0x276)}}]},ve=_0x25e551(function(_0x42dde4,_0xa30651){const _0x515275=_0x37d068;return _0x2e2d20(b,Object[_0x515275(0x248)]({},_0x42dde4,{'id':'help-icon','ref':_0xa30651,'icon':Je}));});ve[_0x37d068(0x26c)]=_0x37d068(0x1d4);const Qe={'tag':'svg','attrs':{'xmlns':_0x37d068(0x1e0),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x37d068(0x232),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x37d068(0x229),'attrs':{'stroke':_0x37d068(0x205),'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':_0x37d068(0x2ad),'strokeLinejoin':_0x37d068(0x2ad),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x37d068(0x1b4),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x37d068(0x229),'attrs':{'fill':_0x37d068(0x2c8),'d':_0x37d068(0x23e)}}]}]}],'defIds':[_0x37d068(0x1fc)]},de=_0x25e551(function(_0x3f0eb4,_0x20ca32){const _0x4c8f69=_0x37d068;return _0x2e2d20(b,Object[_0x4c8f69(0x248)]({},_0x3f0eb4,{'id':_0x4c8f69(0x271),'ref':_0x20ca32,'icon':Qe}));});function _0x2620(_0x21718a,_0x22d4e4){_0x21718a=_0x21718a-0x19c;const _0x32c2bf=_0x32c2();let _0x2620fe=_0x32c2bf[_0x21718a];return _0x2620fe;}de[_0x37d068(0x26c)]=_0x37d068(0x2d3);const en={'tag':_0x37d068(0x1a0),'attrs':{'xmlns':_0x37d068(0x1e0),'fill':'none','viewBox':_0x37d068(0x1c4),'width':_0x37d068(0x232),'height':_0x37d068(0x232)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x37d068(0x229),'attrs':{'stroke':'currentColor','d':_0x37d068(0x1cc),'strokeLinecap':_0x37d068(0x2ad),'strokeLinejoin':_0x37d068(0x2ad),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x37d068(0x1b4),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x37d068(0x229),'attrs':{'fill':_0x37d068(0x2c8),'d':'M0\x200H16V16H0z','transform':_0x37d068(0x2eb)}}]}]}],'defIds':[_0x37d068(0x25e)]},ge=_0x25e551(function(_0x105f55,_0x4d95af){const _0x26fd5d=_0x37d068;return _0x2e2d20(b,Object[_0x26fd5d(0x248)]({},_0x105f55,{'id':_0x26fd5d(0x275),'ref':_0x4d95af,'icon':en}));});ge[_0x37d068(0x26c)]='OnLineIcon';function nn(_0x3e392f){const _0x585906=_0x37d068;var _0x30eeef,_0x35035a;const {mcpCoreConfig:_0x5aef4e,onSave:_0xc0cea1,loading:_0x3cca60=!0x1,config:_0x11e4ca,connectionStatus$:_0x5cdf6d,connectionError$:_0x4c2248,currentApiKey$:_0x280709,currentSessionId$:_0x177e38}=_0x3e392f,_0x21a67d=_0x11bdf6(_0x3cc846),_0x268bb6=_0x20a087(_0x5cdf6d,_0x2955f5[_0x585906(0x19f)]),_0x4f8292=_0x20a087(_0x4c2248,_0x29588c[_0x585906(0x29a)]),_0x12a4be=_0x20a087(_0x177e38,''),_0x5885b4=_0x20a087(_0x280709,''),[_0x5de435,_0x11b756]=_0x221e3a(_0x5885b4||''),_0x1eca5e=!0x0,_0x52c1da=_0x11e4ca[_0x585906(0x2bd)]&&_0x5aef4e['mcpServerUrl']&&(_0x5aef4e[_0x585906(0x287)][_0x585906(0x200)](_0x585906(0x1b5))||_0x5aef4e[_0x585906(0x287)]['includes'](_0x585906(0x264))),_0x2f570f=(_0x30eeef=_0x5aef4e[_0x585906(0x287)])==null?void 0x0:_0x30eeef[_0x585906(0x200)]('univer.plus'),_0x58a808=(_0x35035a=_0x5aef4e[_0x585906(0x287)])==null?void 0x0:_0x35035a[_0x585906(0x200)](_0x585906(0x264)),_0x51bb1a=_0x2f570f?_0x585906(0x286):_0x585906(0x1c7),_0x379407=_0x11e4ca[_0x585906(0x2bd)]&&(_0x2f570f||_0x58a808),[_0x56d501,_0x4d66e2]=_0x221e3a(!_0x5de435[_0x585906(0x2b6)]()),_0x2cf1cc=(_0x13b26f,_0x51bd10)=>{const _0x25b8dc=_0x585906;if(_0x51bd10===_0x29588c[_0x25b8dc(0x2ce)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x13b26f){case _0x2955f5[_0x25b8dc(0x1de)]:return _0x25b8dc(0x24b);case _0x2955f5[_0x25b8dc(0x2d9)]:case _0x2955f5[_0x25b8dc(0x274)]:return _0x25b8dc(0x2dc);case _0x2955f5[_0x25b8dc(0x2c6)]:return _0x25b8dc(0x217);default:return _0x25b8dc(0x222);}},_0xc41e2e=(_0x347856,_0x3b5011)=>{const _0x2a2481=_0x585906;if(_0x3b5011===_0x29588c[_0x2a2481(0x2ce)])return _0x2a2481(0x27f);switch(_0x347856){case _0x2955f5[_0x2a2481(0x1de)]:return _0x2a2481(0x1e9);case _0x2955f5['CONNECTING']:case _0x2955f5[_0x2a2481(0x274)]:return'univer-bg-blue-500';case _0x2955f5[_0x2a2481(0x2c6)]:return _0x2a2481(0x27f);default:return _0x2a2481(0x1ca);}},_0xa02d92=_0x5ce81a=>{const _0x34492f=_0x585906;switch(_0x5ce81a){case _0x2955f5[_0x34492f(0x1de)]:return _0x21a67d['t'](_0x34492f(0x1bd));case _0x2955f5['CONNECTING']:return _0x21a67d['t'](_0x34492f(0x21a));case _0x2955f5[_0x34492f(0x2c6)]:return _0x21a67d['t'](_0x34492f(0x272));case _0x2955f5[_0x34492f(0x274)]:return _0x21a67d['t']('mcpConfig.connectionStatus.retrying');default:return _0x21a67d['t'](_0x34492f(0x224));}},_0x2b9462=_0x55580d=>{const _0x3d85f6=_0x585906;switch(_0x55580d){case _0x29588c['UNAUTHORIZED']:return _0x21a67d['t'](_0x3d85f6(0x270));case _0x29588c[_0x3d85f6(0x2d5)]:return _0x21a67d['t'](_0x3d85f6(0x2b5));case _0x29588c[_0x3d85f6(0x1c9)]:return _0x21a67d['t'](_0x3d85f6(0x27d));case _0x29588c[_0x3d85f6(0x1ea)]:return _0x21a67d['t'](_0x3d85f6(0x210));default:return'';}},_0x355605=_0x2d128c(()=>{const _0x4fdf92=_0x585906,_0x1774cc={..._0x5aef4e,'apiKey':_0x5de435[_0x4fdf92(0x2b6)](),'enableAuth':_0x1eca5e};_0xc0cea1(_0x1774cc);},[_0x5aef4e,_0x5de435,_0x1eca5e,_0xc0cea1]),_0x567360=_0x5de435[_0x585906(0x2b6)]()[_0x585906(0x28c)]>0x0;return _0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x280),'children':[_0x192029('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x26f),'children':[_0x192029('div',{'className':_0x585906(0x2b0),'children':_0x192029(_0x585906(0x1ff),{'className':'univer-text-white','children':'⚙'})}),_0x192029(_0x585906(0x2c7),{'children':_0x192029('p',{'className':_0x585906(0x2f2),'children':_0x21a67d['t'](_0x585906(0x281))})})]})}),_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x1c8),'children':[_0x192029('div',{'className':_0x29044a(_0x585906(0x289),_0x2cf1cc(_0x268bb6,_0x4f8292)),'children':_0x27c6dd('div',{'className':_0x585906(0x1b8),'children':[_0x192029('div',{'className':_0x29044a(_0x585906(0x23b),_0xc41e2e(_0x268bb6,_0x4f8292))}),_0x192029(_0x585906(0x1ff),{'className':_0x585906(0x2c5),'children':_0xa02d92(_0x268bb6)})]})}),_0x4f8292!==_0x29588c[_0x585906(0x29a)]&&(_0x268bb6===_0x2955f5['FAILED']||_0x4f8292===_0x29588c[_0x585906(0x2ce)])&&_0x192029(_0x585906(0x2c7),{'className':_0x585906(0x2a7),'children':_0x27c6dd('div',{'className':_0x585906(0x2d6),'children':[_0x192029(_0x585906(0x1ff),{'className':_0x585906(0x22d),'children':'⚠️'}),_0x192029('p',{'className':_0x585906(0x28e),'children':_0x2b9462(_0x4f8292)})]})})]}),_0x192029(_0x585906(0x2c7),{'className':_0x585906(0x2da),'children':_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x207),'children':[_0x27c6dd(_0x585906(0x2c7),{'className':'univer-space-y-2','children':[_0x27c6dd(_0x585906(0x1ed),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x192029(_0x585906(0x1ff),{'children':'🔑'}),'\x20',_0x21a67d['t'](_0x585906(0x23f)),_0x192029(_0x585906(0x1ff),{'className':_0x585906(0x2a1),'children':'*'}),_0x52c1da&&_0x192029('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x21a67d['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x4d66e2(!0x0),'children':_0x192029(ve,{})})]}),_0x192029(_0x11c3cf,{'type':_0x585906(0x1f7),'placeholder':_0x21a67d['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x5de435,'disabled':_0x3cca60,'autoComplete':'off','onChange':_0x11b756}),_0x192029('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x21a67d['t'](_0x585906(0x2a6))})]}),_0x52c1da&&_0x56d501&&_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x25a),'children':[_0x192029('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x585906(0x24e),'onClick':()=>_0x4d66e2(!0x1),'children':_0x192029(ue,{'className':_0x585906(0x2c2)})}),_0x27c6dd(_0x585906(0x2c7),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x192029(_0x585906(0x2c7),{'className':_0x585906(0x211),'children':_0x192029('span',{'className':_0x585906(0x243),'children':'🚀'})}),_0x27c6dd('div',{'className':_0x585906(0x288),'children':[_0x192029('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x21a67d['t'](_0x585906(0x1b3))}),_0x192029('p',{'className':_0x585906(0x215),'children':_0x21a67d['t'](_0x585906(0x236))}),_0x192029(_0x585906(0x2c7),{'className':_0x585906(0x20d),'children':_0x379407&&_0x27c6dd('a',{'className':_0x585906(0x2be),'href':_0x51bb1a,'target':_0x585906(0x2bf),'rel':_0x585906(0x28a),'children':[_0x192029(_0x585906(0x1ff),{'children':'🤖'}),_0x21a67d['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x192029(_0x585906(0x1ff),{'className':_0x585906(0x265),'children':'↗'})]})}),_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x2e7),'children':['✨','\x20',_0x21a67d['t'](_0x585906(0x1c1))]})]})]})]}),_0x11e4ca[_0x585906(0x2bd)]&&_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x1d3),'children':[_0x27c6dd('h4',{'className':_0x585906(0x214),'children':[_0x192029('span',{'children':'🔗'}),'\x20',_0x21a67d['t'](_0x585906(0x24f))]}),_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x277),'children':[_0x27c6dd('div',{'className':_0x585906(0x220),'children':[_0x192029('p',{'className':_0x585906(0x268),'children':_0x21a67d['t'](_0x585906(0x292))}),_0x27c6dd('div',{'className':_0x585906(0x19d),'children':[_0x192029(_0x585906(0x2c7),{'className':_0x585906(0x1b0),'children':_0x21a67d['t'](_0x585906(0x28b))}),_0x27c6dd(_0x585906(0x2c7),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x27c6dd(_0x585906(0x2c7),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x192029(_0x585906(0x1ff),{'className':_0x585906(0x2b3),'children':'1'}),_0x21a67d['t'](_0x585906(0x283))]}),_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x1b8),'children':[_0x192029(_0x585906(0x1ff),{'className':_0x585906(0x2b3),'children':'2'}),_0x21a67d['t'](_0x585906(0x2a5))]}),_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x1b8),'children':[_0x192029(_0x585906(0x1ff),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x21a67d['t'](_0x585906(0x298))]})]})]})]}),_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x19d),'children':[_0x192029(_0x585906(0x2c7),{'className':_0x585906(0x1b0),'children':'MCP\x20Configuration'}),_0x192029(_0x585906(0x2c7),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x192029('pre',{'className':_0x585906(0x20c),'children':JSON[_0x585906(0x285)]({'mcpServers':{'univer':{'url':_0x585906(0x1c5)+(_0x12a4be||_0x585906(0x2d2)),'type':_0x585906(0x1f4),'headers':{'Authorization':_0x585906(0x1ce)+(_0x5de435||_0x585906(0x1f6))}}}},null,0x2)})})]}),_0x27c6dd('div',{'className':_0x585906(0x220),'children':[_0x192029('div',{'className':_0x585906(0x1b0),'children':_0x21a67d['t'](_0x585906(0x245))}),_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x19d),'children':[_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x1df),'children':[_0x192029('div',{'className':_0x585906(0x206)}),_0x27c6dd(_0x585906(0x2c7),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x192029(_0x585906(0x2c7),{'className':_0x585906(0x1b6),'children':'univer_session_id:'}),_0x192029(_0x585906(0x2c7),{'className':_0x585906(0x29b),'children':_0x21a67d['t'](_0x585906(0x296))})]})]}),_0x27c6dd('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x192029(_0x585906(0x2c7),{'className':_0x585906(0x206)}),_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x25c),'children':[_0x192029(_0x585906(0x2c7),{'className':_0x585906(0x1b6),'children':_0x585906(0x2e8)}),_0x192029('div',{'className':_0x585906(0x29b),'children':_0x21a67d['t'](_0x585906(0x1f9))})]})]})]})]})]})]}),_0x192029(_0x45e1c4,{'onClick':_0x355605,'disabled':!_0x567360||_0x3cca60,'className':_0x585906(0x201),'children':_0x3cca60?_0x27c6dd('span',{'className':_0x585906(0x1b8),'children':[_0x192029('span',{'children':'⟲'}),_0x21a67d['t'](_0x585906(0x1e1))]}):_0x27c6dd(_0x585906(0x1ff),{'className':_0x585906(0x1b8),'children':[_0x192029(le,{}),_0x21a67d['t'](_0x585906(0x1d1))]})}),_0x192029(_0x585906(0x2c7),{'className':_0x585906(0x26e),'children':_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x233),'children':[_0x192029(_0x585906(0x1ff),{'className':_0x585906(0x2ca),'children':'💡'}),_0x27c6dd(_0x585906(0x2c7),{'className':_0x585906(0x1bf),'children':[_0x192029(_0x585906(0x2c7),{'className':'univer-font-medium','children':_0x585906(0x2f0)}),_0x27c6dd('div',{'children':['•',_0x21a67d['t'](_0x585906(0x25b))]}),_0x27c6dd(_0x585906(0x2c7),{'children':['•',_0x21a67d['t'](_0x585906(0x258))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x37d068(0x237)],tn=(_0x17ba39,_0x6e9273,_0x4a3325,_0x45f3e8)=>{for(var _0x31514a=_0x45f3e8>0x1?void 0x0:_0x45f3e8?rn(_0x6e9273,_0x4a3325):_0x6e9273,_0xb6d24e=_0x17ba39['length']-0x1,_0x2aaaf7;_0xb6d24e>=0x0;_0xb6d24e--)(_0x2aaaf7=_0x17ba39[_0xb6d24e])&&(_0x31514a=_0x2aaaf7(_0x31514a)||_0x31514a);return _0x31514a;},d=(_0x2ea766,_0x1b1a05)=>(_0x136cbc,_0x80a582)=>_0x1b1a05(_0x136cbc,_0x80a582,_0x2ea766);const U='mcp.apiKey',L=_0x37d068(0x22a);let I=class extends _0x3e6a00{constructor(_0x222006,_0xd0cb46,_0x238994,_0x3ac3b9,_0x262f18,_0x361c84,_0x2fbefa,_0x30a007,_0x135d1f,_0x289eb7){const _0x415d3b=_0x37d068;super(),x(this,_0x415d3b(0x252),new _0x139ed4(!0x1)),x(this,_0x415d3b(0x244),new _0x139ed4({})),x(this,_0x415d3b(0x2b8),new _0x139ed4({})),x(this,_0x415d3b(0x1e2),new _0x139ed4('')),x(this,_0x415d3b(0x23a),async _0x2193c0=>{const _0x23763d=_0x415d3b;var _0xe8f75a,_0x4fe895;this[_0x23763d(0x252)][_0x23763d(0x2db)](!0x0);try{const _0x50c446=await this['_validateConfig'](_0x2193c0);if(!_0x50c446[_0x23763d(0x209)]){this[_0x23763d(0x24d)][_0x23763d(0x22b)]({'type':_0x3b5835[_0x23763d(0x235)],'content':_0x50c446[_0x23763d(0x2a8)]||this['_localeService']['t'](_0x23763d(0x290))});return;}_0x2193c0[_0x23763d(0x240)]?await this['_localStorageService'][_0x23763d(0x25f)](U,_0x2193c0[_0x23763d(0x240)]['trim']()):await this[_0x23763d(0x1af)]['removeItem'](U),this[_0x23763d(0x1e2)][_0x23763d(0x2db)](((_0xe8f75a=_0x2193c0['apiKey'])==null?void 0x0:_0xe8f75a[_0x23763d(0x2b6)]())||''),this[_0x23763d(0x2c3)][_0x23763d(0x1cf)]({'Authorization':_0x23763d(0x1ce)+((_0x4fe895=_0x2193c0['apiKey'])==null?void 0x0:_0x4fe895[_0x23763d(0x2b6)]())}),this['_messageService'][_0x23763d(0x22b)]({'type':_0x3b5835[_0x23763d(0x238)],'content':this[_0x23763d(0x2ee)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x5ba5b2=_0x23763d;this[_0x5ba5b2(0x2a9)][_0x5ba5b2(0x2e4)](L);},0x320);}catch(_0x1b9fdb){this['_logService'][_0x23763d(0x1a3)](_0x23763d(0x250),_0x1b9fdb),this[_0x23763d(0x24d)]['show']({'type':_0x3b5835[_0x23763d(0x235)],'content':this['_localeService']['t'](_0x23763d(0x2c0))});}finally{this[_0x23763d(0x252)][_0x23763d(0x2db)](!0x1);}}),(this[_0x415d3b(0x253)]=_0x222006,this[_0x415d3b(0x227)]=_0xd0cb46,this[_0x415d3b(0x1f0)]=_0x238994,this[_0x415d3b(0x1af)]=_0x3ac3b9,this[_0x415d3b(0x2a9)]=_0x262f18,this['_messageService']=_0x361c84,this['_componentManager']=_0x2fbefa,this[_0x415d3b(0x2ee)]=_0x30a007,this[_0x415d3b(0x208)]=_0x135d1f,this[_0x415d3b(0x2c3)]=_0x289eb7,this[_0x415d3b(0x20e)](),this['_loadStoredApiKey'](),this[_0x415d3b(0x29d)]());}[_0x37d068(0x261)](){const _0x4c55b4=_0x37d068,_0x4c7036=this[_0x4c55b4(0x1f0)][_0x4c55b4(0x2aa)](y);_0x4c7036!=null&&_0x4c7036['showDeveloperTools']&&this[_0x4c55b4(0x2a9)][_0x4c55b4(0x278)]({'id':L,'title':{'title':this[_0x4c55b4(0x2ee)]['t'](_0x4c55b4(0x293))},'children':{'label':_0x4c55b4(0x249)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x571a26=_0x4c55b4;this[_0x571a26(0x2a9)]['close'](L);}});}[_0x37d068(0x22e)](){const _0xfe7df1=_0x37d068;return this[_0xfe7df1(0x244)][_0xfe7df1(0x212)];}[_0x37d068(0x29d)](){const _0xdf0854=_0x37d068;this[_0xdf0854(0x1a6)](this[_0xdf0854(0x23c)][_0xdf0854(0x2cb)](_0xdf0854(0x249),this[_0xdf0854(0x1c3)]()));}[_0x37d068(0x1c3)](){const _0x50336e=_0x37d068;return _0x47532f(()=>{const _0x35751c=_0x2620;var _0x4ad3ba,_0x509eae,_0x481b71;return _0x192029(nn,{'config':this[_0x35751c(0x2b8)]['value'],'mcpCoreConfig':this[_0x35751c(0x244)]['value'],'currentApiKey$':this[_0x35751c(0x1e2)],'onSave':this['_handleConfigSave'],'loading':this[_0x35751c(0x252)]['value'],'connectionStatus$':(_0x4ad3ba=this[_0x35751c(0x2c3)])==null?void 0x0:_0x4ad3ba[_0x35751c(0x2c4)],'connectionError$':(_0x509eae=this[_0x35751c(0x2c3)])==null?void 0x0:_0x509eae[_0x35751c(0x1fe)],'currentSessionId$':(_0x481b71=this[_0x35751c(0x2c3)])==null?void 0x0:_0x481b71[_0x35751c(0x24a)]});},this[_0x50336e(0x253)]);}[_0x37d068(0x20e)](){const _0x31604f=_0x37d068;this['disposeWithMe'](this[_0x31604f(0x1f0)]['subscribeConfigValue$'](_0x230466)[_0x31604f(0x2c1)](_0x3dab09=>{const _0x3a858e=_0x31604f;this[_0x3a858e(0x244)]['next'](_0x3dab09||{});}));const _0x5ac390=this[_0x31604f(0x1f0)][_0x31604f(0x2aa)](_0x230466);this['_mcpCoreConfig$'][_0x31604f(0x2db)](_0x5ac390||{}),this[_0x31604f(0x1a6)](this['_configService'][_0x31604f(0x20a)](y)['subscribe'](_0x4b8462=>{const _0x1a866d=_0x31604f;this[_0x1a866d(0x2b8)]['next'](_0x4b8462||{});}));const _0x4f3dd0=this[_0x31604f(0x1f0)][_0x31604f(0x2aa)](y);this[_0x31604f(0x2b8)][_0x31604f(0x2db)](_0x4f3dd0||{});}async[_0x37d068(0x2b4)](){const _0x5e2f00=_0x37d068,_0x3613e7=this[_0x5e2f00(0x1f0)]['getConfig'](y);if(!(_0x3613e7!=null&&_0x3613e7[_0x5e2f00(0x2bd)]))return;const _0x34bce8=await this[_0x5e2f00(0x1af)][_0x5e2f00(0x29e)](U);_0x34bce8&&(this['_mcpConnectionController'][_0x5e2f00(0x1cf)]({'Authorization':_0x5e2f00(0x1ce)+_0x34bce8}),this[_0x5e2f00(0x1e2)][_0x5e2f00(0x2db)](_0x34bce8));}async[_0x37d068(0x228)](_0x577982){const _0x4d9b2b=_0x37d068;if(!_0x577982[_0x4d9b2b(0x240)]||_0x577982[_0x4d9b2b(0x240)][_0x4d9b2b(0x2b6)]()[_0x4d9b2b(0x28c)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x577982[_0x4d9b2b(0x240)]['trim']()[_0x4d9b2b(0x28c)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4d9b2b(0x2ee)]['t'](_0x4d9b2b(0x260))};try{const _0x1f8d57=await this['_injector'][_0x4d9b2b(0x267)](_0x15815b)[_0x4d9b2b(0x20f)](_0x577982['apiKey'][_0x4d9b2b(0x2b6)]());return _0x1f8d57['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1f8d57['error']||this[_0x4d9b2b(0x2ee)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x2d3362){return console[_0x4d9b2b(0x21d)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2d3362),{'isValid':!0x0};}}};I=tn([d(0x0,_0xc9964b(_0x3e5d6b)),d(0x1,_0x34e83f),d(0x2,_0x103b5f),d(0x3,_0x1e1c9c),d(0x4,_0x17f5a1),d(0x5,_0x4f13e3),d(0x6,_0xc9964b(_0x15a82)),d(0x7,_0xc9964b(_0x3cc846)),d(0x8,_0x2d4ae4),d(0x9,_0xc9964b(_0x15815b))],I);const V={'id':_0x37d068(0x1db),'type':_0x555623[_0x37d068(0x1fa)],'handler':async(_0x32303e,_0x3d1a55)=>(_0x32303e['get'](I)[_0x37d068(0x261)](),!0x0)};function pe(_0x323800,_0x3d8582){const _0x419b9f=_0x37d068;switch(_0x323800){case _0x2955f5['DISCONNECTED']:return'mcpStatus.disconnected';case _0x2955f5[_0x419b9f(0x2d9)]:return _0x419b9f(0x221);case _0x2955f5[_0x419b9f(0x1de)]:return _0x419b9f(0x2e6);case _0x2955f5[_0x419b9f(0x2c6)]:switch(_0x3d8582){case _0x29588c['UNAUTHORIZED']:return _0x419b9f(0x226);case _0x29588c[_0x419b9f(0x2d5)]:return _0x419b9f(0x1bb);case _0x29588c[_0x419b9f(0x1c9)]:return _0x419b9f(0x27c);case _0x29588c['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return _0x419b9f(0x247);}case _0x2955f5[_0x419b9f(0x274)]:return _0x419b9f(0x2e0);default:return _0x419b9f(0x1b1);}}function on(_0x75f262,_0x20a58e,_0x35e12e,_0x55ad4a=!0x0){const _0x3ac87a=_0x37d068,_0x385971=pe(_0x75f262,_0x20a58e),_0x517afb=_0x35e12e['t'](_0x385971);return _0x55ad4a?_0x75f262===_0x2955f5[_0x3ac87a(0x19f)]&&_0x20a58e===_0x29588c[_0x3ac87a(0x2ce)]?_0x517afb+_0x3ac87a(0x1e8)+_0x35e12e['t']('mcpStatus.clickToConfigure'):_0x75f262===_0x2955f5[_0x3ac87a(0x1de)]?''+_0x517afb:_0x75f262===_0x2955f5[_0x3ac87a(0x19f)]||_0x75f262===_0x2955f5[_0x3ac87a(0x2c6)]?_0x517afb+_0x3ac87a(0x1e8)+_0x35e12e['t']('mcpStatus.clickToConnect'):_0x517afb:_0x517afb;}function sn(_0x5e1c87){const _0x1a7921=_0x37d068;switch(_0x5e1c87){case _0x2955f5[_0x1a7921(0x1de)]:return _0x1a7921(0x1cb);case _0x2955f5[_0x1a7921(0x2d9)]:case _0x2955f5[_0x1a7921(0x274)]:return _0x1a7921(0x1d8);case _0x2955f5[_0x1a7921(0x2c6)]:case _0x2955f5[_0x1a7921(0x19f)]:return _0x1a7921(0x2a1);default:return _0x1a7921(0x259);}}function cn(_0x19f565){const _0x1a965c=_0x37d068,{status$:_0x5b6db2,error$:_0x42f39a,onConfigure:_0x211461,showClickable:_0x4e6b06=!0x0}=_0x19f565,_0x1b188a=_0x20a087(_0x5b6db2,_0x2955f5[_0x1a965c(0x19f)]),_0x53ca69=_0x20a087(_0x42f39a,_0x29588c[_0x1a965c(0x29a)]),_0x29054f=_0x11bdf6(_0x3cc846),_0x3a922f=_0x1b188a===_0x2955f5[_0x1a965c(0x1de)];_0x1b188a===_0x2955f5[_0x1a965c(0x2d9)]||_0x2955f5[_0x1a965c(0x274)];const _0x2d0136=_0x29054f['t'](pe(_0x1b188a,_0x53ca69)),_0x594476=on(_0x1b188a,_0x53ca69,_0x29054f,_0x4e6b06),_0x5a8dc1=sn(_0x1b188a),_0x4842b5=_0x3a922f?_0x192029(ge,{}):_0x192029(de,{}),_0x11e771=_0x2d128c(()=>{_0x4e6b06&&_0x211461&&_0x211461();},[_0x4e6b06,_0x211461]);function _0x17ae7b(){const _0x394332=_0x1a965c;return _0x27c6dd(_0x394332(0x2c7),{'className':_0x29044a(_0x394332(0x2af),_0x4e6b06&&_0x211461&&_0x394332(0x1e6)),'role':_0x394332(0x24e),'onClick':_0x4e6b06&&_0x211461?_0x11e771:void 0x0,'children':[_0x192029(_0x394332(0x2c7),{'className':_0x29044a(_0x394332(0x231),_0x5a8dc1),'children':_0x4842b5}),_0x192029(_0x394332(0x2c7),{'className':_0x394332(0x1ec),'children':_0x2d0136})]});}return _0x192029(_0x507d16,{'title':_0x594476,'placement':'bottom','children':_0x17ae7b()});}var an=Object[_0x37d068(0x237)],ln=(_0x134c99,_0x48fb23,_0x2d993a,_0x8c4dd)=>{const _0x32982e=_0x37d068;for(var _0x3c0630=_0x8c4dd>0x1?void 0x0:_0x8c4dd?an(_0x48fb23,_0x2d993a):_0x48fb23,_0x40b01a=_0x134c99[_0x32982e(0x28c)]-0x1,_0x27bb3c;_0x40b01a>=0x0;_0x40b01a--)(_0x27bb3c=_0x134c99[_0x40b01a])&&(_0x3c0630=_0x27bb3c(_0x3c0630)||_0x3c0630);return _0x3c0630;},M=(_0x5aab8d,_0x4342ec)=>(_0x52180d,_0x4d16a4)=>_0x4342ec(_0x52180d,_0x4d16a4,_0x5aab8d);let O=class extends _0x3e6a00{constructor(_0x413659,_0x338699,_0x224eb7,_0x48b96c){const _0x46a4b0=_0x37d068;super(),this['_injector']=_0x413659,this[_0x46a4b0(0x24c)]=_0x338699,this[_0x46a4b0(0x227)]=_0x224eb7,this[_0x46a4b0(0x1f0)]=_0x48b96c,this[_0x46a4b0(0x2ef)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x263e76=_0x37d068,_0x311e1c=this[_0x263e76(0x1f0)][_0x263e76(0x2aa)](y);_0x311e1c!=null&&_0x311e1c['showDeveloperTools']&&(this['_connectionController'][_0x263e76(0x239)]=!0x1);}['_initStatusComponent'](){const _0x11c9bb=_0x37d068,_0x46447b=this['_configService']['getConfig'](y);(_0x46447b==null?void 0x0:_0x46447b['showStatus'])!==!0x1&&this[_0x11c9bb(0x1a6)](this[_0x11c9bb(0x227)][_0x11c9bb(0x2ab)](_0x5d533c['HEADER_MENU'],()=>{const _0x4e6d69=_0x11c9bb;var _0x1dd96d;return _0x47532f(un({'status$':this[_0x4e6d69(0x24c)][_0x4e6d69(0x2c4)],'error$':this[_0x4e6d69(0x24c)]['connectionError$'],'onConfigure':()=>this[_0x4e6d69(0x1d9)](),'showClickable':(_0x1dd96d=_0x46447b==null?void 0x0:_0x46447b[_0x4e6d69(0x2bd)])!=null?_0x1dd96d:!0x1}),this['_injector']);}));}[_0x37d068(0x1d9)](){const _0x32fc3d=_0x37d068;this[_0x32fc3d(0x253)][_0x32fc3d(0x267)](I)[_0x32fc3d(0x261)]();}};O=ln([M(0x0,_0xc9964b(_0x3e5d6b)),M(0x1,_0xc9964b(_0x15815b)),M(0x2,_0x34e83f),M(0x3,_0x103b5f)],O);function un(_0x111f4f){const {status$:_0x2aefb0,error$:_0x31b07a,onConfigure:_0x596581,showClickable:_0x5e6afb}=_0x111f4f;return function(){return _0x192029(cn,{'status$':_0x2aefb0,'error$':_0x31b07a,'onConfigure':_0x596581,'showClickable':_0x5e6afb});};}function vn(_0x4308e2){const _0x45d7db=_0x37d068;return{'id':V['id'],'type':_0x2ee5ab[_0x45d7db(0x1b9)],'icon':_0x45d7db(0x19e),'title':'mcpConfig.title','tooltip':_0x45d7db(0x293)};}const dn={[_0x2efc28['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x37d068(0x237)],pn=(_0x11dfda,_0x58781b,_0x5d7dd7,_0x3722ae)=>{const _0x528350=_0x37d068;for(var _0x2df609=_0x3722ae>0x1?void 0x0:_0x3722ae?gn(_0x58781b,_0x5d7dd7):_0x58781b,_0x5081a6=_0x11dfda[_0x528350(0x28c)]-0x1,_0x52211b;_0x5081a6>=0x0;_0x5081a6--)(_0x52211b=_0x11dfda[_0x5081a6])&&(_0x2df609=_0x52211b(_0x2df609)||_0x2df609);return _0x2df609;},re=(_0x231e1b,_0x162955)=>(_0x1188a0,_0x25c198)=>_0x162955(_0x1188a0,_0x25c198,_0x231e1b);let D=class extends _0x3e6a00{constructor(_0x1838d2,_0x1a0c61){const _0x202ac1=_0x37d068;super(),this[_0x202ac1(0x1b2)]=_0x1838d2,this[_0x202ac1(0x2a2)]=_0x1a0c61,this['_initializeCommands'](),this[_0x202ac1(0x1ee)]();}['_initializeCommands'](){const _0x27e3ca=_0x37d068;[V][_0x27e3ca(0x2d1)](_0x56b5a8=>{const _0x2df38a=_0x27e3ca;this[_0x2df38a(0x1a6)](this[_0x2df38a(0x1b2)][_0x2df38a(0x1fb)](_0x56b5a8));});}['_initializeMenus'](){this['_menuManagerService']['mergeMenu'](dn);}};D=pn([re(0x0,_0x529981),re(0x1,_0x595c7c)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x37d068(0x2e2),'connected':_0x37d068(0x246),'failed':_0x37d068(0x255),'retrying':_0x37d068(0x2cd),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x37d068(0x29f),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x37d068(0x266),'clickToConnect':_0x37d068(0x1c0),'clickToConfigure':_0x37d068(0x1a8)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x37d068(0x1dc),'apiKeyPlaceholder':_0x37d068(0x230),'apiKeyHint':_0x37d068(0x2a0),'enableAuth':_0x37d068(0x1d6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x37d068(0x263),'configInstructions':_0x37d068(0x204),'configStepTitle':_0x37d068(0x297),'configStep1':_0x37d068(0x269),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x37d068(0x1cd),'sessionId':_0x37d068(0x1b7),'sessionIdDescription':_0x37d068(0x291),'authorizationDescription':_0x37d068(0x1eb),'configParameters':_0x37d068(0x251),'maxRetries':_0x37d068(0x216),'save':_0x37d068(0x2d8),'saving':_0x37d068(0x1d0),'note1':_0x37d068(0x1d2),'note2':_0x37d068(0x1dd),'configSaved':_0x37d068(0x26b),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x37d068(0x2f1),'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':_0x37d068(0x241),'getStarted':_0x37d068(0x1a4)},'validation':{'apiKeyRequired':_0x37d068(0x294),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x37d068(0x2cc),'invalidApiKey':_0x37d068(0x2e1)},'connectionStatus':{'disconnected':_0x37d068(0x2ea),'connecting':_0x37d068(0x1f1),'connected':_0x37d068(0x1ef),'failed':'Connection\x20Failed','retrying':_0x37d068(0x1f3)},'connectionError':{'unauthorized':_0x37d068(0x1ba),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x37d068(0x273),'maxRetriesExceeded':_0x37d068(0x22c)}}},An={'mcpStatus':{'disconnected':_0x37d068(0x225),'connecting':_0x37d068(0x22f),'connected':_0x37d068(0x2c9),'failed':'MCP\x20连接失败','retrying':_0x37d068(0x2b1),'unknown':_0x37d068(0x21e),'unauthorized':_0x37d068(0x21c),'sessionOccupied':_0x37d068(0x19c),'networkError':_0x37d068(0x1f5),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x37d068(0x1ad),'clickToConfigure':_0x37d068(0x257)},'mcpConfig':{'title':_0x37d068(0x23d),'description':_0x37d068(0x21b),'apiKey':_0x37d068(0x254),'apiKeyPlaceholder':_0x37d068(0x2f3),'apiKeyHint':_0x37d068(0x295),'enableAuth':'启用身份验证','enableAuthHint':_0x37d068(0x2bb),'connectionInfo':_0x37d068(0x1d5),'mcpClientConfig':_0x37d068(0x1d5),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x37d068(0x27e),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x37d068(0x2b7),'configStep3':_0x37d068(0x27a),'sessionId':_0x37d068(0x1ae),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x37d068(0x2d0),'maxRetries':_0x37d068(0x2ae),'save':'保存配置','saving':_0x37d068(0x256),'note1':_0x37d068(0x1f8),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x37d068(0x1e3),'configError':_0x37d068(0x1c2),'apiApplyInfo':{'title':_0x37d068(0x279),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x37d068(0x1bc),'getStarted':_0x37d068(0x2a3)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x37d068(0x1ab),'invalidConfig':_0x37d068(0x282),'invalidApiKey':_0x37d068(0x2a4)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x37d068(0x2ac),'failed':_0x37d068(0x213),'retrying':_0x37d068(0x2ec)},'connectionError':{'unauthorized':_0x37d068(0x2b2),'sessionOccupied':_0x37d068(0x202),'networkError':_0x37d068(0x1be),'maxRetriesExceeded':_0x37d068(0x1a5)}}};var fn=Object[_0x37d068(0x1e4)],hn=Object[_0x37d068(0x237)],Cn=(_0x2a0d8f,_0x3a3b0a,_0x30a452)=>_0x3a3b0a in _0x2a0d8f?fn(_0x2a0d8f,_0x3a3b0a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30a452}):_0x2a0d8f[_0x3a3b0a]=_0x30a452,mn=(_0x371323,_0x4a54ab,_0x2e0915,_0x50adf8)=>{const _0x2df528=_0x37d068;for(var _0x41ad37=_0x50adf8>0x1?void 0x0:_0x50adf8?hn(_0x4a54ab,_0x2e0915):_0x4a54ab,_0x2f0f47=_0x371323[_0x2df528(0x28c)]-0x1,_0x144cd8;_0x2f0f47>=0x0;_0x2f0f47--)(_0x144cd8=_0x371323[_0x2f0f47])&&(_0x41ad37=_0x144cd8(_0x41ad37)||_0x41ad37);return _0x41ad37;},P=(_0x3cc594,_0x52c2f8)=>(_0x402a88,_0x49f104)=>_0x52c2f8(_0x402a88,_0x49f104,_0x3cc594),_n=(_0x573a2f,_0x199825,_0x20f7ff)=>Cn(_0x573a2f,_0x199825+'',_0x20f7ff);let j=class extends _0x23a3ce{constructor(_0x20967c=ie,_0x2a08cd,_0x1a9053,_0x2a0d5a,_0x3d4510,_0x4d042f){const _0x374ce9=_0x37d068;super(),this[_0x374ce9(0x28f)]=_0x20967c,this[_0x374ce9(0x253)]=_0x2a08cd,this[_0x374ce9(0x1f0)]=_0x1a9053,this[_0x374ce9(0x227)]=_0x2a0d5a,this[_0x374ce9(0x1af)]=_0x3d4510,this[_0x374ce9(0x2ee)]=_0x4d042f;const {..._0x32c4cf}=_0x2b4533({},ie,this[_0x374ce9(0x28f)]);this[_0x374ce9(0x1f0)][_0x374ce9(0x26a)](y,_0x32c4cf);}async[_0x37d068(0x2d7)](){const _0x549e9b=_0x37d068,_0x5701ed=[[O],[I],[D]];this[_0x549e9b(0x253)][_0x549e9b(0x21f)](_0x41bbfc)||_0x5701ed['push']([_0x41bbfc,{'useClass':_0x477225}]),_0x5701ed[_0x549e9b(0x2d1)](_0x17d5bd=>this['_injector'][_0x549e9b(0x29c)](_0x17d5bd)),this['_injector'][_0x549e9b(0x267)](O),this[_0x549e9b(0x253)][_0x549e9b(0x267)](I),this['_injector'][_0x549e9b(0x267)](D);}};_n(j,_0x37d068(0x262),'MCP_UI_PLUGIN'),j=mn([_0x398f4f(_0x15fc25),P(0x1,_0xc9964b(_0x3e5d6b)),P(0x2,_0x103b5f),P(0x3,_0x34e83f),P(0x4,_0x1e1c9c),P(0x5,_0xc9964b(_0x3cc846))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x1d63d5=_0x3b30;(function(_0x270eb8,_0x50d8bd){const _0x578e30=_0x3b30,_0x24393d=_0x270eb8();while(!![]){try{const _0x134c42=parseInt(_0x578e30(0x264))/0x1+parseInt(_0x578e30(0x19c))/0x2+parseInt(_0x578e30(0x296))/0x3+-parseInt(_0x578e30(0x1d7))/0x4+parseInt(_0x578e30(0x262))/0x5+-parseInt(_0x578e30(0x292))/0x6+-parseInt(_0x578e30(0x239))/0x7;if(_0x134c42===_0x50d8bd)break;else _0x24393d['push'](_0x24393d['shift']());}catch(_0x4132c9){_0x24393d['push'](_0x24393d['shift']());}}}(_0x24fe,0x1dbbc));var Pe=Object[_0x1d63d5(0x1cf)],Ee=(_0x3d32d5,_0xfe6670,_0x5b4076)=>_0xfe6670 in _0x3d32d5?Pe(_0x3d32d5,_0xfe6670,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b4076}):_0x3d32d5[_0xfe6670]=_0x5b4076,x=(_0x52f0f1,_0x5a0b05,_0x4371ad)=>Ee(_0x52f0f1,typeof _0x5a0b05!=_0x1d63d5(0x1c3)?_0x5a0b05+'':_0x5a0b05,_0x4371ad);import{LocaleService as _0x18ea5a,Inject as _0x1bd7cd,Injector as _0x4f7a8c,IConfigService as _0x50f488,ILocalStorageService as _0x34e505,ILogService as _0xab12b7,Disposable as _0x1c7d39,CommandType as _0x74002,ICommandService as _0x23b376,DependentOn as _0x382c3e,Plugin as _0x1bf85c,merge as _0x4cf638}from'@univerjs/core';import{jsxs as _0x412ff6,jsx as _0x1f2abd}from'react/jsx-runtime';import{MCPConnectionStatus as _0x4addaf,MCPConnectionError as _0x2da3be,MCPConnectionController as _0x56cc0c,MCP_PLUGIN_CONFIG_KEY as _0x1dacc9,UniverMCPPlugin as _0x366911}from'@univerjs-pro/mcp';import{clsx as _0xd9c741,Input as _0x4ecea3,Button as _0x1aab3f,MessageType as _0x3a108,Tooltip as _0x1a5250}from'@univerjs/design';import{useDependency as _0xf6a7e3,useObservable as _0x527d97,IUIPartsService as _0x55b040,IDialogService as _0x53b0c7,IMessageService as _0x321c58,ComponentManager as _0x3023e6,connectInjector as _0x11d920,BuiltInUIPart as _0x28880c,MenuItemType as _0x5bb5ca,RibbonStartGroup as _0x1ff55b,IMenuManagerService as _0x3c2a36}from'@univerjs/ui';import{BehaviorSubject as _0x53091a}from'rxjs';import{useRef as _0x3b95a5,createElement as _0x46e596,forwardRef as _0x184141,useState as _0x2f2f3d,useCallback as _0xab09e9}from'react';import{ISocketService as _0xb645cb,WebSocketService as _0x48b6a2}from'@univerjs/network';function b({ref:_0x1130da,..._0xf5873}){const _0x1427e8=_0x1d63d5,{icon:_0x11472b,id:_0x174575,className:_0x460604,extend:_0x1fdf23,..._0x285aec}=_0xf5873,_0x24f719=(_0x1427e8(0x19d)+_0x174575+'\x20'+(_0x460604||''))[_0x1427e8(0x25a)](),_0x5367a9=_0x3b95a5('_'+We());return ae(_0x11472b,''+_0x174575,{'defIds':_0x11472b[_0x1427e8(0x22a)],'idSuffix':_0x5367a9[_0x1427e8(0x253)]},{'ref':_0x1130da,'className':_0x24f719,..._0x285aec},_0x1fdf23);}function ae(_0x252779,_0x2e5fcc,_0x6e74b0,_0x4dd8ec,_0x3147e1){const _0xcfe863=_0x1d63d5;return _0x46e596(_0x252779[_0xcfe863(0x191)],{'key':_0x2e5fcc,...Ye(_0x252779,_0x6e74b0,_0x3147e1),..._0x4dd8ec},(Ze(_0x252779,_0x6e74b0)['children']||[])[_0xcfe863(0x175)]((_0xb59bf2,_0x2a9553)=>ae(_0xb59bf2,_0x2e5fcc+'-'+_0x252779[_0xcfe863(0x191)]+'-'+_0x2a9553,_0x6e74b0,void 0x0,_0x3147e1)));}function Ye(_0x29a9ef,_0x1d634c,_0x2cae40){const _0x16a66e=_0x1d63d5,_0x473339={..._0x29a9ef[_0x16a66e(0x29d)]};_0x2cae40!=null&&_0x2cae40[_0x16a66e(0x23e)]&&_0x473339[_0x16a66e(0x1ba)]===_0x16a66e(0x23e)&&(_0x473339[_0x16a66e(0x1ba)]=_0x2cae40[_0x16a66e(0x23e)]),_0x29a9ef[_0x16a66e(0x191)]===_0x16a66e(0x1e6)&&_0x473339['id']&&(_0x473339['id']=_0x473339['id']+_0x1d634c[_0x16a66e(0x1c9)]),Object[_0x16a66e(0x1f2)](_0x473339)[_0x16a66e(0x21c)](([_0x64d992,_0x26b478])=>{const _0xe2473d=_0x16a66e;_0x64d992===_0xe2473d(0x1e6)&&typeof _0x26b478==_0xe2473d(0x259)&&(_0x473339[_0x64d992]=_0x26b478[_0xe2473d(0x1b4)](/url\(#(.*)\)/,'url(#$1'+_0x1d634c[_0xe2473d(0x1c9)]+')'));});const {defIds:_0x472f0b}=_0x1d634c;return!_0x472f0b||_0x472f0b[_0x16a66e(0x25f)]===0x0||(_0x29a9ef[_0x16a66e(0x191)]===_0x16a66e(0x1ac)&&_0x473339['xlink:href']&&(_0x473339['xlink:href']=_0x473339[_0x16a66e(0x20b)]+_0x1d634c[_0x16a66e(0x1c9)]),Object['entries'](_0x473339)[_0x16a66e(0x21c)](([_0x2fb005,_0x1d60cc])=>{const _0x58b503=_0x16a66e;typeof _0x1d60cc==_0x58b503(0x259)&&(_0x473339[_0x2fb005]=_0x1d60cc[_0x58b503(0x1b4)](/url\(#(.*)\)/,_0x58b503(0x2a7)+_0x1d634c[_0x58b503(0x1c9)]+')'));})),_0x473339;}function _0x3b30(_0x1cc71e,_0x3c8445){_0x1cc71e=_0x1cc71e-0x15e;const _0x24fe35=_0x24fe();let _0x3b30b5=_0x24fe35[_0x1cc71e];return _0x3b30b5;}function _0x24fe(){const _0x50b8a5=['mcpConfig.connectionStatus.retrying','_validateConfig','univer-space-y-4','mcpConfig.connectionError.maxRetriesExceeded','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.authorizationDescription','FAILED','请输入您的\x20API\x20密钥','Saving...','点击配置\x20MCP','defIds','配置\x20MCP\x20使用\x20AI\x20操作电子表格','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','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','errorMessage','_dialogService','on-line-icon_clip0_910_349','add','_loadStoredApiKey','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.connectionStatus.connected','univer-size-4','权限验证失败,请检查您的\x20API\x20密钥','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Copy\x20the\x20JSON\x20configuration\x20below','2660532oQIHNm','mcpStatus.sessionOccupied','_componentManager','Configuration\x20saved\x20successfully','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','colorChannel1','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','isValid','url(#on-line-icon_clip0_910_349)','M0\x200H16V16H0z','HEADER_MENU','mcpConfig.apiApplyInfo.description','univer-text-green-500','none','http','_localStorageService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20连接中...','univer-shrink-0\x20univer-text-red-500','_createConfigPanelComponent','API\x20key\x20is\x20required','MCP:\x20Session\x20ID\x20Occupied','OffLineIcon','div','univer_session_id:','stringify','current','check-mark-icon','showDeveloperTools','button','__setCustomHeaders','mcp-ui.config','string','trim','univer-space-y-2','MAX_RETRIES_EXCEEDED','配置保存成功','value','length','MCP:\x20超出最大重试次数','univer-text-xs\x20univer-text-gray-500','435825PcTXZE','univer-text-sm\x20univer-font-medium','195857YlmGCX','重启您的\x20MCP\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','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer.ai','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Invalid\x20configuration','http://www.w3.org/2000/svg','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-bg-red-500','svg','Enter\x20your\x20API\x20key','univer-flex\x20univer-gap-3','mcpStatus.connected','Success','RETRYING','mcpConfig.configStep1','0\x200\x2017\x2016','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','DISCONNECTED','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置步骤:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex-1','_initConfigSync','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.configStep2','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','点击连接\x20MCP','has','_messageService','children','API\x20密钥','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','CheckMarkIcon','Connecting...','univer-text-blue-600','MCP\x20Connection\x20Failed','error','_uiPartsService','univer-text-white','mcpStatus.retrying','会话ID','mcp.apiKey','next','469596YRNHxm','几秒钟内获取您的\x20API\x20密钥','MCP\x20Client\x20Configuration','clipPath','393840KEhDie','https://console.univer.plus','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.connectionError.sessionOccupied','defs','Get\x20your\x20API\x20key\x20in\x20seconds','将以下配置添加到您的\x20MCP\x20客户端设置中:','attrs','univer-flex\x20univer-items-center\x20univer-gap-3','univer-space-y-3','会话\x20ID\x20已被占用,请稍后再试','univer.plus','网络连接错误,请检查您的网络连接','_handleConfigSave','enableAutoConnect','Session\x20ID','mcpStatus.failed','url(#$1','univer-flex\x20univer-items-center\x20univer-gap-2','pluginName','mcpConfig.configInstructions','配置保存失败','white','_config','MCP:\x20网络错误','connectionError$','启用身份验证以获得安全连接','UniverIcon','MCP:\x20Network\x20Error','SESSION_ID_OCCUPIED','_apiKey$','_injector','复制以下\x20JSON\x20配置','配置无效','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.description','MCP:\x20未授权','off-line-icon','Univer\x20AI\x20Console','MCP\x20已连接','Error','_mcpConnectionController','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpServerUrl','_logService','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','showConfigPanel','noopener\x20noreferrer','map','includes','重连中...','mcpConfig.title','mcpConfig.sessionIdDescription','showStatus','Configuration\x20Notes:','mcpStatus.maxRetriesExceeded','连接失败','Univer\x20AI\x20控制台','mcpConfig.note1','Connection\x20Failed','univer-bg-green-500','univer-text-gray-500','OnLineIcon','mcpConfig.note2','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','sessionId$','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','CloseIcon','\x20-\x20','off-line-icon_clip0_910_343','Bearer\x20','API\x20Key','univer-shrink-0\x20univer-text-blue-500','setConfig','univer-text-red-500','_localeService','tag','translate(.97)','help-icon','push','0\x200\x2016\x2016','setItem','displayName','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_commandService','未连接','mcpConfig.connectionError.unauthorized','356124wpzkGc','univerjs-icon\x20univerjs-icon-','mcpStatus.unauthorized','subscribeConfigValue$','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.connectionStatus.connecting','COMMAND','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','超出最大重试次数,请稍后再试','toString','getConfig','_initAutoConnect','getItem','Enable\x20Authentication','<SESSION_ID>','_connectionController','use','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_configService','assign','path','配置更改将立即生效','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpStatus.connecting','replace','1em','_blank','https://mcp.univer.ai/mcp/?univer_session_id=','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','random','fill','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_initializeCommands','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','Save\x20Configuration','mcpStatus.clickToConfigure','close','MCP\x20Configuration','symbol','univer-space-y-5','OTHERS','API\x20key\x20with\x20Bearer\x20prefix.','pre','_config$','idSuffix','保存中...','univer-text-gray-400','span','mcpStatus.networkError','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','defineProperty','univer-size-2\x20univer-rounded-full','mcpConfig.apiApplyInfo.title','MCP\x20Retrying...','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','onStarting','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.clickToConnect','48936rKrWNj','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','NONE','_handleConfigure','show','get','validateApiKey','MCP:\x20会话\x20ID\x20已被占用','Configuration\x20Steps:','apiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','round','MCP\x20状态未知','启用身份验证','mcpConfig.configError','mask','配置参数:','_registerComponent','Failed\x20to\x20save\x20configuration','univer-text-yellow-500','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','evenodd','mcp-config-dialog','univer-flex\x20univer-items-start\x20univer-gap-2','mcpConfig.connectionInfo','mcpConfig.configStep3','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','entries','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','mcpConfig.save','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','API\x20密钥无效,请检查密钥是否正确','_loading$','substring','disposeWithMe','_mcpCoreConfig$','<API_KEY>','HelpIcon','currentColor','MenuIcon','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-min-w-0\x20univer-flex-1','mcpConfig.configStepTitle','univer-text-xs\x20univer-text-gray-600','MCP\x20连接失败','mcpConfig.connectionError.networkError','CONNECTING','UNAUTHORIZED','univer-text-sm\x20univer-text-gray-500','保存配置','MCP:\x20Unauthorized','xlink:href','univer-flex\x20univer-items-start\x20univer-gap-3','MCPConfigPanel','什么是\x20API\x20密钥?','removeItem','univer-font-medium','mcpConfig.apiApplyInfo.getStarted','getOwnPropertyDescriptor','CONNECTED','mcpConfig.validation.apiKeyRequired','MCP\x20配置','MCP\x20Connected','MCP\x20客户端配置','getCurrentConfig','univer-flex\x20univer-items-center','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','mcpConfig.validation.apiKeyTooShort','forEach','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','registerCommand','_initializeMenus'];_0x24fe=function(){return _0x50b8a5;};return _0x24fe();}function Ze(_0x3b638a,_0x596354){const _0x513665=_0x1d63d5;var _0x526bb4;const {defIds:_0x15b9bd}=_0x596354;return!_0x15b9bd||_0x15b9bd['length']===0x0?_0x3b638a:_0x3b638a[_0x513665(0x191)]===_0x513665(0x29a)&&((_0x526bb4=_0x3b638a[_0x513665(0x284)])!=null&&_0x526bb4[_0x513665(0x25f)])?{..._0x3b638a,'children':_0x3b638a[_0x513665(0x284)][_0x513665(0x175)](_0x1145ad=>typeof _0x1145ad[_0x513665(0x29d)]['id']=='string'&&_0x15b9bd&&_0x15b9bd[_0x513665(0x176)](_0x1145ad[_0x513665(0x29d)]['id'])?{..._0x1145ad,'attrs':{..._0x1145ad['attrs'],'id':_0x1145ad[_0x513665(0x29d)]['id']+_0x596354['idSuffix']}}:_0x1145ad)}:_0x3b638a;}function We(){const _0x517db0=_0x1d63d5;return Math[_0x517db0(0x1b9)]()[_0x517db0(0x1a5)](0x24)[_0x517db0(0x1f8)](0x2,0x8);}b[_0x1d63d5(0x197)]=_0x1d63d5(0x15f);const qe={'tag':'svg','attrs':{'xmlns':_0x1d63d5(0x26c),'fill':_0x1d63d5(0x246),'viewBox':_0x1d63d5(0x195),'width':_0x1d63d5(0x1b5),'height':_0x1d63d5(0x1b5)},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x1fd),'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':_0x1d63d5(0x1ec),'clipRule':'evenodd'}}]},le=_0x184141(function(_0x583a22,_0x5824c3){const _0x50cb91=_0x1d63d5;return _0x46e596(b,Object[_0x50cb91(0x1af)]({},_0x583a22,{'id':_0x50cb91(0x254),'ref':_0x5824c3,'icon':qe}));});le['displayName']=_0x1d63d5(0x287);const Xe={'tag':'svg','attrs':{'xmlns':_0x1d63d5(0x26c),'fill':'none','viewBox':_0x1d63d5(0x195),'width':_0x1d63d5(0x1b5),'height':'1em'},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x1fd),'d':_0x1d63d5(0x21a)}}]},ue=_0x184141(function(_0x43d521,_0x4b9dae){return _0x46e596(b,Object['assign']({},_0x43d521,{'id':'close-icon','ref':_0x4b9dae,'icon':Xe}));});ue['displayName']=_0x1d63d5(0x188);const Je={'tag':_0x1d63d5(0x26f),'attrs':{'xmlns':_0x1d63d5(0x26c),'fill':_0x1d63d5(0x246),'viewBox':_0x1d63d5(0x195),'width':_0x1d63d5(0x1b5),'height':_0x1d63d5(0x1b5)},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x1fd),'d':_0x1d63d5(0x1d5)}},{'tag':'path','attrs':{'fill':_0x1d63d5(0x1fd),'d':_0x1d63d5(0x22d)}},{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x1fd),'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':'evenodd','clipRule':_0x1d63d5(0x1ec)}}]},ve=_0x184141(function(_0x3881f3,_0xa55c39){const _0x4c2764=_0x1d63d5;return _0x46e596(b,Object[_0x4c2764(0x1af)]({},_0x3881f3,{'id':_0x4c2764(0x193),'ref':_0xa55c39,'icon':Je}));});ve[_0x1d63d5(0x197)]=_0x1d63d5(0x1fc);const Qe={'tag':'svg','attrs':{'xmlns':_0x1d63d5(0x26c),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x1d63d5(0x1b5)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x1d63d5(0x1bd),'strokeLinecap':_0x1d63d5(0x1e2),'strokeLinejoin':_0x1d63d5(0x1e2),'strokeWidth':1.2}}]},{'tag':_0x1d63d5(0x29a),'attrs':{},'children':[{'tag':_0x1d63d5(0x295),'attrs':{'id':_0x1d63d5(0x18a)},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x2ac),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x1d63d5(0x18a)]},de=_0x184141(function(_0x50afc8,_0x574a58){const _0x3e4300=_0x1d63d5;return _0x46e596(b,Object['assign']({},_0x50afc8,{'id':_0x3e4300(0x169),'ref':_0x574a58,'icon':Qe}));});de['displayName']=_0x1d63d5(0x24f);const en={'tag':_0x1d63d5(0x26f),'attrs':{'xmlns':_0x1d63d5(0x26c),'fill':_0x1d63d5(0x246),'viewBox':_0x1d63d5(0x276),'width':'1em','height':_0x1d63d5(0x1b5)},'children':[{'tag':'g','attrs':{'clipPath':_0x1d63d5(0x241)},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'stroke':_0x1d63d5(0x1fd),'d':_0x1d63d5(0x1ff),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1d63d5(0x29a),'attrs':{},'children':[{'tag':_0x1d63d5(0x295),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x2ac),'d':_0x1d63d5(0x242),'transform':_0x1d63d5(0x192)}}]}]}],'defIds':[_0x1d63d5(0x230)]},ge=_0x184141(function(_0x487ef8,_0x40dd10){const _0x4a2336=_0x1d63d5;return _0x46e596(b,Object[_0x4a2336(0x1af)]({},_0x487ef8,{'id':'on-line-icon','ref':_0x40dd10,'icon':en}));});ge[_0x1d63d5(0x197)]=_0x1d63d5(0x183);function nn(_0x3f759b){const _0x31a44b=_0x1d63d5;var _0x364823,_0x2a6273;const {mcpCoreConfig:_0x5ea105,onSave:_0x4c7209,loading:_0x1b7d06=!0x1,config:_0x3de1f9,connectionStatus$:_0x26c454,connectionError$:_0xa2292b,currentApiKey$:_0x227f2d,currentSessionId$:_0xd70d50}=_0x3f759b,_0x4ac551=_0xf6a7e3(_0x18ea5a),_0x44b13c=_0x527d97(_0x26c454,_0x4addaf[_0x31a44b(0x278)]),_0x448b22=_0x527d97(_0xa2292b,_0x2da3be[_0x31a44b(0x1d9)]),_0x4381f3=_0x527d97(_0xd70d50,''),_0x247164=_0x527d97(_0x227f2d,''),[_0x29391d,_0x3b032b]=_0x2f2f3d(_0x247164||''),_0x368455=!0x0,_0x11442a=_0x3de1f9[_0x31a44b(0x255)]&&_0x5ea105[_0x31a44b(0x170)]&&(_0x5ea105[_0x31a44b(0x170)]['includes'](_0x31a44b(0x2a1))||_0x5ea105[_0x31a44b(0x170)][_0x31a44b(0x176)](_0x31a44b(0x268))),_0x58bbbc=(_0x364823=_0x5ea105[_0x31a44b(0x170)])==null?void 0x0:_0x364823['includes']('univer.plus'),_0x2dccda=(_0x2a6273=_0x5ea105[_0x31a44b(0x170)])==null?void 0x0:_0x2a6273[_0x31a44b(0x176)](_0x31a44b(0x268)),_0x423b7a=_0x58bbbc?_0x31a44b(0x297):'https://console.univer.ai',_0x1a6339=_0x3de1f9['showDeveloperTools']&&(_0x58bbbc||_0x2dccda),[_0x434697,_0x525641]=_0x2f2f3d(!_0x29391d['trim']()),_0x45a710=(_0x11bba6,_0x5dd1b4)=>{const _0x4c3507=_0x31a44b;if(_0x5dd1b4===_0x2da3be['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x11bba6){case _0x4addaf['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x4addaf[_0x4c3507(0x206)]:case _0x4addaf[_0x4c3507(0x274)]:return _0x4c3507(0x1b8);case _0x4addaf[_0x4c3507(0x226)]:return _0x4c3507(0x267);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x8b1ae1=(_0xf5bdf,_0x8f291d)=>{const _0x2eab99=_0x31a44b;if(_0x8f291d===_0x2da3be[_0x2eab99(0x207)])return'univer-bg-red-500';switch(_0xf5bdf){case _0x4addaf[_0x2eab99(0x213)]:return _0x2eab99(0x181);case _0x4addaf['CONNECTING']:case _0x4addaf[_0x2eab99(0x274)]:return'univer-bg-blue-500';case _0x4addaf['FAILED']:return _0x2eab99(0x26e);default:return'univer-bg-gray-500';}},_0x5c9fb6=_0x145aad=>{const _0x712c7f=_0x31a44b;switch(_0x145aad){case _0x4addaf['CONNECTED']:return _0x4ac551['t'](_0x712c7f(0x234));case _0x4addaf[_0x712c7f(0x206)]:return _0x4ac551['t'](_0x712c7f(0x1a1));case _0x4addaf[_0x712c7f(0x226)]:return _0x4ac551['t']('mcpConfig.connectionStatus.failed');case _0x4addaf[_0x712c7f(0x274)]:return _0x4ac551['t'](_0x712c7f(0x220));default:return _0x4ac551['t']('mcpConfig.connectionStatus.disconnected');}},_0x99bd7a=_0x30906e=>{const _0x180545=_0x31a44b;switch(_0x30906e){case _0x2da3be['UNAUTHORIZED']:return _0x4ac551['t'](_0x180545(0x19b));case _0x2da3be['SESSION_ID_OCCUPIED']:return _0x4ac551['t'](_0x180545(0x299));case _0x2da3be['NETWORK_ERROR']:return _0x4ac551['t'](_0x180545(0x205));case _0x2da3be[_0x180545(0x25c)]:return _0x4ac551['t'](_0x180545(0x223));default:return'';}},_0x112f2a=_0xab09e9(()=>{const _0xa040f8=_0x31a44b,_0x4f0570={..._0x5ea105,'apiKey':_0x29391d[_0xa040f8(0x25a)](),'enableAuth':_0x368455};_0x4c7209(_0x4f0570);},[_0x5ea105,_0x29391d,_0x368455,_0x4c7209]),_0x5e0fc9=_0x29391d[_0x31a44b(0x25a)]()[_0x31a44b(0x25f)]>0x0;return _0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x1d3),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x23d),'children':_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x29e),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x1e1),'children':_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x28d),'children':'⚙'})}),_0x1f2abd('div',{'children':_0x1f2abd('p',{'className':_0x31a44b(0x208),'children':_0x4ac551['t'](_0x31a44b(0x167))})})]})}),_0x412ff6(_0x31a44b(0x250),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0xd9c741('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x45a710(_0x44b13c,_0x448b22)),'children':_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x2a8),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0xd9c741(_0x31a44b(0x1d0),_0x8b1ae1(_0x44b13c,_0x448b22))}),_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x263),'children':_0x5c9fb6(_0x44b13c)})]})}),_0x448b22!==_0x2da3be[_0x31a44b(0x1d9)]&&(_0x44b13c===_0x4addaf[_0x31a44b(0x226)]||_0x448b22===_0x2da3be[_0x31a44b(0x207)])&&_0x1f2abd('div',{'className':_0x31a44b(0x1ce),'children':_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x1ee),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x24b),'children':'⚠️'}),_0x1f2abd('p',{'className':_0x31a44b(0x16e),'children':_0x99bd7a(_0x448b22)})]})})]}),_0x1f2abd(_0x31a44b(0x250),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x412ff6('div',{'className':_0x31a44b(0x1c4),'children':[_0x412ff6(_0x31a44b(0x250),{'className':'univer-space-y-2','children':[_0x412ff6('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x1f2abd(_0x31a44b(0x1cc),{'children':'🔑'}),'\x20',_0x4ac551['t']('mcpConfig.apiKey'),_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x18f),'children':'*'}),_0x11442a&&_0x1f2abd('a',{'className':_0x31a44b(0x1eb),'title':_0x4ac551['t'](_0x31a44b(0x1d1)),'role':'button','onClick':()=>_0x525641(!0x0),'children':_0x1f2abd(ve,{})})]}),_0x1f2abd(_0x4ecea3,{'type':'text','placeholder':_0x4ac551['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x29391d,'disabled':_0x1b7d06,'autoComplete':'off','onChange':_0x3b032b}),_0x1f2abd('p',{'className':_0x31a44b(0x261),'children':_0x4ac551['t']('mcpConfig.apiKeyHint')})]}),_0x11442a&&_0x434697&&_0x412ff6('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':[_0x1f2abd('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':'button','onClick':()=>_0x525641(!0x1),'children':_0x1f2abd(ue,{'className':_0x31a44b(0x235)})}),_0x412ff6(_0x31a44b(0x250),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x1f2abd(_0x31a44b(0x250),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x289),'children':'🚀'})}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x27c),'children':[_0x1f2abd('h4',{'className':_0x31a44b(0x237),'children':_0x4ac551['t'](_0x31a44b(0x1d1))}),_0x1f2abd('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x4ac551['t'](_0x31a44b(0x244))}),_0x1f2abd(_0x31a44b(0x250),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x1a6339&&_0x412ff6('a',{'className':_0x31a44b(0x1be),'href':_0x423b7a,'target':_0x31a44b(0x1b6),'rel':_0x31a44b(0x174),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'children':'🤖'}),_0x4ac551['t'](_0x31a44b(0x27e)),_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x1cb),'children':'↗'})]})}),_0x412ff6('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x4ac551['t'](_0x31a44b(0x211))]})]})]})]}),_0x3de1f9[_0x31a44b(0x255)]&&_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x26a),'children':[_0x412ff6('h4',{'className':_0x31a44b(0x1d8),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'children':'🔗'}),'\x20',_0x4ac551['t'](_0x31a44b(0x1ef))]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x222),'children':[_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x29f),'children':[_0x1f2abd('p',{'className':_0x31a44b(0x203),'children':_0x4ac551['t'](_0x31a44b(0x2aa))}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x25b),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ac551['t'](_0x31a44b(0x202))}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x1f5),'children':[_0x412ff6('div',{'className':_0x31a44b(0x2a8),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x187),'children':'1'}),_0x4ac551['t'](_0x31a44b(0x275))]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x2a8),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x187),'children':'2'}),_0x4ac551['t'](_0x31a44b(0x27f))]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x2a8),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x187),'children':'3'}),_0x4ac551['t'](_0x31a44b(0x1f0))]})]})]})]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x25b),'children':[_0x1f2abd('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x31a44b(0x1c2)}),_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x185),'children':_0x1f2abd(_0x31a44b(0x1c7),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x31a44b(0x252)]({'mcpServers':{'univer':{'url':_0x31a44b(0x1b7)+(_0x4381f3||_0x31a44b(0x1aa)),'type':_0x31a44b(0x247),'headers':{'Authorization':'Bearer\x20'+(_0x29391d||_0x31a44b(0x1fb))}}}},null,0x2)})})]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x29f),'children':[_0x1f2abd('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ac551['t']('mcpConfig.configParameters')}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x25b),'children':[_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x20c),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x277)}),_0x412ff6('div',{'className':_0x31a44b(0x201),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x286),'children':_0x31a44b(0x251)}),_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x261),'children':_0x4ac551['t'](_0x31a44b(0x179))})]})]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x20c),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x277)}),_0x412ff6(_0x31a44b(0x250),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x286),'children':'Authorization:'}),_0x1f2abd(_0x31a44b(0x250),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4ac551['t'](_0x31a44b(0x225))})]})]})]})]})]})]}),_0x1f2abd(_0x1aab3f,{'onClick':_0x112f2a,'disabled':!_0x5e0fc9||_0x1b7d06,'className':_0x31a44b(0x1f3),'children':_0x1b7d06?_0x412ff6(_0x31a44b(0x1cc),{'className':_0x31a44b(0x2a8),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'children':'⟲'}),_0x4ac551['t']('mcpConfig.saving')]}):_0x412ff6(_0x31a44b(0x1cc),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1f2abd(le,{}),_0x4ac551['t'](_0x31a44b(0x1f4))]})}),_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x1ad),'children':_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x271),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x18d),'children':'💡'}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x166),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x210),'children':_0x31a44b(0x17b)}),_0x412ff6(_0x31a44b(0x250),{'children':['•',_0x4ac551['t'](_0x31a44b(0x17f))]}),_0x412ff6(_0x31a44b(0x250),{'children':['•',_0x4ac551['t'](_0x31a44b(0x184))]})]})]})})]})})]});}const y=_0x1d63d5(0x258),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x1d63d5(0x212)],tn=(_0x3e0109,_0x27d087,_0x1d2d43,_0x39802d)=>{for(var _0x3819dc=_0x39802d>0x1?void 0x0:_0x39802d?rn(_0x27d087,_0x1d2d43):_0x27d087,_0x51597e=_0x3e0109['length']-0x1,_0x4e869b;_0x51597e>=0x0;_0x51597e--)(_0x4e869b=_0x3e0109[_0x51597e])&&(_0x3819dc=_0x4e869b(_0x3819dc)||_0x3819dc);return _0x3819dc;},d=(_0x593a32,_0x2b7a5b)=>(_0x4c0400,_0xf9e787)=>_0x2b7a5b(_0x4c0400,_0xf9e787,_0x593a32);const U=_0x1d63d5(0x290),L=_0x1d63d5(0x1ed);let I=class extends _0x1c7d39{constructor(_0xb6d45,_0x365339,_0x57a51f,_0x3c9b97,_0x539132,_0x495e47,_0x550d7e,_0x4cb0f0,_0x34f807,_0x36d321){const _0x79f20c=_0x1d63d5;super(),x(this,_0x79f20c(0x1f7),new _0x53091a(!0x1)),x(this,_0x79f20c(0x1fa),new _0x53091a({})),x(this,_0x79f20c(0x1c8),new _0x53091a({})),x(this,_0x79f20c(0x162),new _0x53091a('')),x(this,_0x79f20c(0x2a3),async _0x2e9c68=>{const _0x536fb5=_0x79f20c;var _0x50cae8,_0x5f0231;this[_0x536fb5(0x1f7)]['next'](!0x0);try{const _0xe5fec8=await this[_0x536fb5(0x221)](_0x2e9c68);if(!_0xe5fec8[_0x536fb5(0x240)]){this[_0x536fb5(0x283)][_0x536fb5(0x1db)]({'type':_0x3a108[_0x536fb5(0x16c)],'content':_0xe5fec8[_0x536fb5(0x22e)]||this[_0x536fb5(0x190)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2e9c68[_0x536fb5(0x1e0)]?await this[_0x536fb5(0x248)][_0x536fb5(0x196)](U,_0x2e9c68[_0x536fb5(0x1e0)]['trim']()):await this[_0x536fb5(0x248)][_0x536fb5(0x20f)](U),this[_0x536fb5(0x162)][_0x536fb5(0x291)](((_0x50cae8=_0x2e9c68[_0x536fb5(0x1e0)])==null?void 0x0:_0x50cae8[_0x536fb5(0x25a)]())||''),this[_0x536fb5(0x16d)][_0x536fb5(0x257)]({'Authorization':_0x536fb5(0x18b)+((_0x5f0231=_0x2e9c68[_0x536fb5(0x1e0)])==null?void 0x0:_0x5f0231[_0x536fb5(0x25a)]())}),this[_0x536fb5(0x283)][_0x536fb5(0x1db)]({'type':_0x3a108[_0x536fb5(0x273)],'content':this[_0x536fb5(0x190)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x20300b=_0x536fb5;this[_0x20300b(0x22f)][_0x20300b(0x1c1)](L);},0x320);}catch(_0x2320e3){this[_0x536fb5(0x171)][_0x536fb5(0x28b)](_0x536fb5(0x23f),_0x2320e3),this[_0x536fb5(0x283)][_0x536fb5(0x1db)]({'type':_0x3a108[_0x536fb5(0x16c)],'content':this[_0x536fb5(0x190)]['t'](_0x536fb5(0x1e5))});}finally{this[_0x536fb5(0x1f7)][_0x536fb5(0x291)](!0x1);}}),(this[_0x79f20c(0x163)]=_0xb6d45,this[_0x79f20c(0x28c)]=_0x365339,this[_0x79f20c(0x1ae)]=_0x57a51f,this[_0x79f20c(0x248)]=_0x3c9b97,this[_0x79f20c(0x22f)]=_0x539132,this[_0x79f20c(0x283)]=_0x495e47,this[_0x79f20c(0x23b)]=_0x550d7e,this[_0x79f20c(0x190)]=_0x4cb0f0,this[_0x79f20c(0x171)]=_0x34f807,this[_0x79f20c(0x16d)]=_0x36d321,this[_0x79f20c(0x27d)](),this['_loadStoredApiKey'](),this[_0x79f20c(0x1e8)]());}['showConfigPanel'](){const _0x358dba=_0x1d63d5,_0x428954=this[_0x358dba(0x1ae)]['getConfig'](y);_0x428954!=null&&_0x428954[_0x358dba(0x255)]&&this['_dialogService']['open']({'id':L,'title':{'title':this['_localeService']['t'](_0x358dba(0x178))},'children':{'label':_0x358dba(0x20d)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x242e4c=_0x358dba;this['_dialogService'][_0x242e4c(0x1c1)](L);}});}[_0x1d63d5(0x218)](){const _0x2bcd2b=_0x1d63d5;return this[_0x2bcd2b(0x1fa)][_0x2bcd2b(0x25e)];}[_0x1d63d5(0x1e8)](){const _0x39b590=_0x1d63d5;this[_0x39b590(0x1f9)](this[_0x39b590(0x23b)]['register'](_0x39b590(0x20d),this['_createConfigPanelComponent']()));}[_0x1d63d5(0x24c)](){const _0x350793=_0x1d63d5;return _0x11d920(()=>{const _0x3fb42d=_0x3b30;var _0x56c77a,_0x1b43b9,_0x2d542b;return _0x1f2abd(nn,{'config':this[_0x3fb42d(0x1c8)][_0x3fb42d(0x25e)],'mcpCoreConfig':this[_0x3fb42d(0x1fa)][_0x3fb42d(0x25e)],'currentApiKey$':this[_0x3fb42d(0x162)],'onSave':this['_handleConfigSave'],'loading':this[_0x3fb42d(0x1f7)][_0x3fb42d(0x25e)],'connectionStatus$':(_0x56c77a=this['_mcpConnectionController'])==null?void 0x0:_0x56c77a['connectionStatus$'],'connectionError$':(_0x1b43b9=this[_0x3fb42d(0x16d)])==null?void 0x0:_0x1b43b9[_0x3fb42d(0x2af)],'currentSessionId$':(_0x2d542b=this[_0x3fb42d(0x16d)])==null?void 0x0:_0x2d542b[_0x3fb42d(0x186)]});},this[_0x350793(0x163)]);}[_0x1d63d5(0x27d)](){const _0x236f7a=_0x1d63d5;this[_0x236f7a(0x1f9)](this[_0x236f7a(0x1ae)][_0x236f7a(0x19f)](_0x1dacc9)['subscribe'](_0x35949b=>{const _0x6df194=_0x236f7a;this[_0x6df194(0x1fa)][_0x6df194(0x291)](_0x35949b||{});}));const _0x1cefe4=this[_0x236f7a(0x1ae)][_0x236f7a(0x1a6)](_0x1dacc9);this['_mcpCoreConfig$'][_0x236f7a(0x291)](_0x1cefe4||{}),this[_0x236f7a(0x1f9)](this[_0x236f7a(0x1ae)]['subscribeConfigValue$'](y)['subscribe'](_0x6dc6fb=>{const _0x420763=_0x236f7a;this[_0x420763(0x1c8)][_0x420763(0x291)](_0x6dc6fb||{});}));const _0x1b6c6b=this[_0x236f7a(0x1ae)][_0x236f7a(0x1a6)](y);this[_0x236f7a(0x1c8)][_0x236f7a(0x291)](_0x1b6c6b||{});}async[_0x1d63d5(0x232)](){const _0x148f1b=_0x1d63d5,_0xc9ab08=this[_0x148f1b(0x1ae)][_0x148f1b(0x1a6)](y);if(!(_0xc9ab08!=null&&_0xc9ab08[_0x148f1b(0x255)]))return;const _0x5efc81=await this[_0x148f1b(0x248)][_0x148f1b(0x1a8)](U);_0x5efc81&&(this[_0x148f1b(0x16d)][_0x148f1b(0x257)]({'Authorization':_0x148f1b(0x18b)+_0x5efc81}),this[_0x148f1b(0x162)][_0x148f1b(0x291)](_0x5efc81));}async[_0x1d63d5(0x221)](_0x18c2f5){const _0x1a9883=_0x1d63d5;if(!_0x18c2f5[_0x1a9883(0x1e0)]||_0x18c2f5[_0x1a9883(0x1e0)][_0x1a9883(0x25a)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x1a9883(0x214))};if(_0x18c2f5[_0x1a9883(0x1e0)]['trim']()[_0x1a9883(0x25f)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1a9883(0x190)]['t'](_0x1a9883(0x21b))};try{const _0x43d28d=await this[_0x1a9883(0x163)][_0x1a9883(0x1dc)](_0x56cc0c)[_0x1a9883(0x1dd)](_0x18c2f5[_0x1a9883(0x1e0)][_0x1a9883(0x25a)]());return _0x43d28d['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x43d28d[_0x1a9883(0x28b)]||this[_0x1a9883(0x190)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0xdf03a8){return console['warn'](_0x1a9883(0x22c),_0xdf03a8),{'isValid':!0x0};}}};I=tn([d(0x0,_0x1bd7cd(_0x4f7a8c)),d(0x1,_0x55b040),d(0x2,_0x50f488),d(0x3,_0x34e505),d(0x4,_0x53b0c7),d(0x5,_0x321c58),d(0x6,_0x1bd7cd(_0x3023e6)),d(0x7,_0x1bd7cd(_0x18ea5a)),d(0x8,_0xab12b7),d(0x9,_0x1bd7cd(_0x56cc0c))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x74002[_0x1d63d5(0x1a2)],'handler':async(_0x3635b9,_0x41ac8f)=>(_0x3635b9[_0x1d63d5(0x1dc)](I)[_0x1d63d5(0x173)](),!0x0)};function pe(_0x35b94a,_0x2b6722){const _0x24133d=_0x1d63d5;switch(_0x35b94a){case _0x4addaf[_0x24133d(0x278)]:return'mcpStatus.disconnected';case _0x4addaf['CONNECTING']:return _0x24133d(0x1b3);case _0x4addaf[_0x24133d(0x213)]:return _0x24133d(0x272);case _0x4addaf[_0x24133d(0x226)]:switch(_0x2b6722){case _0x2da3be[_0x24133d(0x207)]:return _0x24133d(0x19e);case _0x2da3be[_0x24133d(0x161)]:return _0x24133d(0x23a);case _0x2da3be['NETWORK_ERROR']:return _0x24133d(0x1cd);case _0x2da3be[_0x24133d(0x25c)]:return _0x24133d(0x17c);default:return _0x24133d(0x2a6);}case _0x4addaf[_0x24133d(0x274)]:return _0x24133d(0x28e);default:return'mcpStatus.unknown';}}function on(_0x24d29e,_0x5450cb,_0x4990ff,_0x3373a3=!0x0){const _0x528768=_0x1d63d5,_0x3899db=pe(_0x24d29e,_0x5450cb),_0x10f1ac=_0x4990ff['t'](_0x3899db);return _0x3373a3?_0x24d29e===_0x4addaf[_0x528768(0x278)]&&_0x5450cb===_0x2da3be[_0x528768(0x207)]?_0x10f1ac+'\x20-\x20'+_0x4990ff['t'](_0x528768(0x1c0)):_0x24d29e===_0x4addaf['CONNECTED']?''+_0x10f1ac:_0x24d29e===_0x4addaf[_0x528768(0x278)]||_0x24d29e===_0x4addaf[_0x528768(0x226)]?_0x10f1ac+_0x528768(0x189)+_0x4990ff['t'](_0x528768(0x1d6)):_0x10f1ac:_0x10f1ac;}function sn(_0x1930d9){const _0x5a7b30=_0x1d63d5;switch(_0x1930d9){case _0x4addaf['CONNECTED']:return _0x5a7b30(0x245);case _0x4addaf[_0x5a7b30(0x206)]:case _0x4addaf[_0x5a7b30(0x274)]:return _0x5a7b30(0x1ea);case _0x4addaf[_0x5a7b30(0x226)]:case _0x4addaf['DISCONNECTED']:return'univer-text-red-500';default:return _0x5a7b30(0x182);}}function cn(_0x858534){const _0x9c7e47=_0x1d63d5,{status$:_0x3362b2,error$:_0x39cddd,onConfigure:_0x1fe951,showClickable:_0x46a433=!0x0}=_0x858534,_0x28ac84=_0x527d97(_0x3362b2,_0x4addaf[_0x9c7e47(0x278)]),_0x111460=_0x527d97(_0x39cddd,_0x2da3be[_0x9c7e47(0x1d9)]),_0x2d7130=_0xf6a7e3(_0x18ea5a),_0x2e664b=_0x28ac84===_0x4addaf[_0x9c7e47(0x213)];_0x28ac84===_0x4addaf[_0x9c7e47(0x206)]||_0x4addaf[_0x9c7e47(0x274)];const _0x43f8b6=_0x2d7130['t'](pe(_0x28ac84,_0x111460)),_0x22c44c=on(_0x28ac84,_0x111460,_0x2d7130,_0x46a433),_0x1dc64b=sn(_0x28ac84),_0x2c2db8=_0x2e664b?_0x1f2abd(ge,{}):_0x1f2abd(de,{}),_0xe1eaf2=_0xab09e9(()=>{_0x46a433&&_0x1fe951&&_0x1fe951();},[_0x46a433,_0x1fe951]);function _0x1a112a(){const _0x3666e1=_0x9c7e47;return _0x412ff6(_0x3666e1(0x250),{'className':_0xd9c741(_0x3666e1(0x219),_0x46a433&&_0x1fe951&&_0x3666e1(0x266)),'role':_0x3666e1(0x256),'onClick':_0x46a433&&_0x1fe951?_0xe1eaf2:void 0x0,'children':[_0x1f2abd(_0x3666e1(0x250),{'className':_0xd9c741(_0x3666e1(0x224),_0x1dc64b),'children':_0x2c2db8}),_0x1f2abd(_0x3666e1(0x250),{'className':_0x3666e1(0x1f1),'children':_0x43f8b6})]});}return _0x1f2abd(_0x1a5250,{'title':_0x22c44c,'placement':'bottom','children':_0x1a112a()});}var an=Object[_0x1d63d5(0x212)],ln=(_0xec1862,_0x41cae7,_0x21a961,_0x353860)=>{const _0x21fc41=_0x1d63d5;for(var _0x2bdfb0=_0x353860>0x1?void 0x0:_0x353860?an(_0x41cae7,_0x21a961):_0x41cae7,_0x2f1776=_0xec1862[_0x21fc41(0x25f)]-0x1,_0x2ebe19;_0x2f1776>=0x0;_0x2f1776--)(_0x2ebe19=_0xec1862[_0x2f1776])&&(_0x2bdfb0=_0x2ebe19(_0x2bdfb0)||_0x2bdfb0);return _0x2bdfb0;},M=(_0x5b5670,_0x50741c)=>(_0x50d06b,_0x573797)=>_0x50741c(_0x50d06b,_0x573797,_0x5b5670);let O=class extends _0x1c7d39{constructor(_0x99344c,_0x26a748,_0x45fb59,_0x2459db){const _0x180ec4=_0x1d63d5;super(),this[_0x180ec4(0x163)]=_0x99344c,this[_0x180ec4(0x1ab)]=_0x26a748,this['_uiPartsService']=_0x45fb59,this[_0x180ec4(0x1ae)]=_0x2459db,this[_0x180ec4(0x1a7)](),this['_initStatusComponent']();}[_0x1d63d5(0x1a7)](){const _0xfc4a20=_0x1d63d5,_0x4373aa=this[_0xfc4a20(0x1ae)][_0xfc4a20(0x1a6)](y);_0x4373aa!=null&&_0x4373aa[_0xfc4a20(0x255)]&&(this[_0xfc4a20(0x1ab)][_0xfc4a20(0x2a4)]=!0x1);}['_initStatusComponent'](){const _0x154c33=_0x1d63d5,_0x59ea51=this[_0x154c33(0x1ae)][_0x154c33(0x1a6)](y);(_0x59ea51==null?void 0x0:_0x59ea51[_0x154c33(0x17a)])!==!0x1&&this[_0x154c33(0x1f9)](this[_0x154c33(0x28c)]['registerComponent'](_0x28880c[_0x154c33(0x243)],()=>{const _0x4c63d6=_0x154c33;var _0x4d19f0;return _0x11d920(un({'status$':this[_0x4c63d6(0x1ab)]['connectionStatus$'],'error$':this[_0x4c63d6(0x1ab)][_0x4c63d6(0x2af)],'onConfigure':()=>this[_0x4c63d6(0x1da)](),'showClickable':(_0x4d19f0=_0x59ea51==null?void 0x0:_0x59ea51[_0x4c63d6(0x255)])!=null?_0x4d19f0:!0x1}),this[_0x4c63d6(0x163)]);}));}[_0x1d63d5(0x1da)](){const _0x5eefc0=_0x1d63d5;this[_0x5eefc0(0x163)]['get'](I)[_0x5eefc0(0x173)]();}};O=ln([M(0x0,_0x1bd7cd(_0x4f7a8c)),M(0x1,_0x1bd7cd(_0x56cc0c)),M(0x2,_0x55b040),M(0x3,_0x50f488)],O);function un(_0x54b5c6){const {status$:_0x495aae,error$:_0x1b77d4,onConfigure:_0x2f04c7,showClickable:_0x46b116}=_0x54b5c6;return function(){return _0x1f2abd(cn,{'status$':_0x495aae,'error$':_0x1b77d4,'onConfigure':_0x2f04c7,'showClickable':_0x46b116});};}function vn(_0x3fc2f0){const _0x163526=_0x1d63d5;return{'id':V['id'],'type':_0x5bb5ca['BUTTON'],'icon':_0x163526(0x1fe),'title':'mcpConfig.title','tooltip':'mcpConfig.title'};}const dn={[_0x1ff55b[_0x1d63d5(0x1c5)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x1d63d5(0x212)],pn=(_0x1f5686,_0x30399e,_0x2c7ca7,_0x368aa8)=>{const _0x3822ca=_0x1d63d5;for(var _0x1e4b63=_0x368aa8>0x1?void 0x0:_0x368aa8?gn(_0x30399e,_0x2c7ca7):_0x30399e,_0x57f6e0=_0x1f5686[_0x3822ca(0x25f)]-0x1,_0x358417;_0x57f6e0>=0x0;_0x57f6e0--)(_0x358417=_0x1f5686[_0x57f6e0])&&(_0x1e4b63=_0x358417(_0x1e4b63)||_0x1e4b63);return _0x1e4b63;},re=(_0xe55d04,_0x584a19)=>(_0x4c31ba,_0x4eea18)=>_0x584a19(_0x4c31ba,_0x4eea18,_0xe55d04);let D=class extends _0x1c7d39{constructor(_0x4556ce,_0x4d36af){const _0xc7a66=_0x1d63d5;super(),this[_0xc7a66(0x199)]=_0x4556ce,this['_menuManagerService']=_0x4d36af,this[_0xc7a66(0x1bc)](),this[_0xc7a66(0x21f)]();}[_0x1d63d5(0x1bc)](){const _0x5f3b06=_0x1d63d5;[V][_0x5f3b06(0x21c)](_0x874fda=>{const _0xf18e1=_0x5f3b06;this[_0xf18e1(0x1f9)](this['_commandService'][_0xf18e1(0x21e)](_0x874fda));});}[_0x1d63d5(0x21f)](){this['_menuManagerService']['mergeMenu'](dn);}};D=pn([re(0x0,_0x23b376),re(0x1,_0x3c2a36)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x1d63d5(0x216),'failed':_0x1d63d5(0x28a),'retrying':_0x1d63d5(0x1d2),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x1d63d5(0x20a),'sessionOccupied':_0x1d63d5(0x24e),'networkError':_0x1d63d5(0x160),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1d63d5(0x1c2),'description':_0x1d63d5(0x280),'apiKey':_0x1d63d5(0x18c),'apiKeyPlaceholder':_0x1d63d5(0x270),'apiKeyHint':_0x1d63d5(0x172),'enableAuth':_0x1d63d5(0x1a9),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x1d63d5(0x294),'mcpClientConfig':_0x1d63d5(0x294),'configInstructions':_0x1d63d5(0x26d),'configStepTitle':_0x1d63d5(0x1df),'configStep1':_0x1d63d5(0x238),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1d63d5(0x249),'sessionId':_0x1d63d5(0x2a5),'sessionIdDescription':_0x1d63d5(0x1a3),'authorizationDescription':_0x1d63d5(0x1c6),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x1d63d5(0x1bf),'saving':_0x1d63d5(0x228),'note1':_0x1d63d5(0x1bb),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1d63d5(0x23c),'configError':_0x1d63d5(0x1e9),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1d63d5(0x16f),'univerAiLabel':_0x1d63d5(0x16a),'getStarted':_0x1d63d5(0x29b)},'validation':{'apiKeyRequired':_0x1d63d5(0x24d),'apiKeyTooShort':_0x1d63d5(0x198),'invalidConfig':_0x1d63d5(0x26b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1d63d5(0x288),'connected':'Connected','failed':_0x1d63d5(0x180),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x1d63d5(0x27b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x1d63d5(0x21d),'maxRetriesExceeded':_0x1d63d5(0x269)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x1d63d5(0x24a),'connected':_0x1d63d5(0x16b),'failed':_0x1d63d5(0x204),'retrying':'MCP\x20重连中...','unknown':_0x1d63d5(0x1e3),'unauthorized':_0x1d63d5(0x168),'sessionOccupied':_0x1d63d5(0x1de),'networkError':_0x1d63d5(0x2ae),'maxRetriesExceeded':_0x1d63d5(0x260),'clickToConnect':_0x1d63d5(0x281),'clickToConfigure':_0x1d63d5(0x229)},'mcpConfig':{'title':_0x1d63d5(0x215),'description':_0x1d63d5(0x22b),'apiKey':_0x1d63d5(0x285),'apiKeyPlaceholder':_0x1d63d5(0x227),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x1d63d5(0x1e4),'enableAuthHint':_0x1d63d5(0x15e),'connectionInfo':_0x1d63d5(0x217),'mcpClientConfig':_0x1d63d5(0x217),'configInstructions':_0x1d63d5(0x29c),'configStepTitle':_0x1d63d5(0x27a),'configStep1':_0x1d63d5(0x164),'configStep2':_0x1d63d5(0x1b2),'configStep3':_0x1d63d5(0x265),'sessionId':_0x1d63d5(0x28f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x1d63d5(0x279),'configParameters':_0x1d63d5(0x1e7),'maxRetries':'最大重试次数','save':_0x1d63d5(0x209),'saving':_0x1d63d5(0x1ca),'note1':_0x1d63d5(0x1b1),'note2':_0x1d63d5(0x1a0),'configSaved':_0x1d63d5(0x25d),'configError':_0x1d63d5(0x2ab),'apiApplyInfo':{'title':_0x1d63d5(0x20e),'description':_0x1d63d5(0x233),'univerAiLabel':_0x1d63d5(0x17e),'getStarted':_0x1d63d5(0x293)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x1d63d5(0x298),'invalidConfig':_0x1d63d5(0x165),'invalidApiKey':_0x1d63d5(0x1f6)},'connectionStatus':{'disconnected':_0x1d63d5(0x19a),'connecting':_0x1d63d5(0x200),'connected':'已连接','failed':_0x1d63d5(0x17d),'retrying':_0x1d63d5(0x177)},'connectionError':{'unauthorized':_0x1d63d5(0x236),'sessionOccupied':_0x1d63d5(0x2a0),'networkError':_0x1d63d5(0x2a2),'maxRetriesExceeded':_0x1d63d5(0x1a4)}}};var fn=Object[_0x1d63d5(0x1cf)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x37fe38,_0x110cad,_0x1ae31c)=>_0x110cad in _0x37fe38?fn(_0x37fe38,_0x110cad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ae31c}):_0x37fe38[_0x110cad]=_0x1ae31c,mn=(_0x56eacb,_0x7c4a3f,_0xe35445,_0x4b5853)=>{const _0x35ea0b=_0x1d63d5;for(var _0x50b809=_0x4b5853>0x1?void 0x0:_0x4b5853?hn(_0x7c4a3f,_0xe35445):_0x7c4a3f,_0xfdf26d=_0x56eacb[_0x35ea0b(0x25f)]-0x1,_0x53bb48;_0xfdf26d>=0x0;_0xfdf26d--)(_0x53bb48=_0x56eacb[_0xfdf26d])&&(_0x50b809=_0x53bb48(_0x50b809)||_0x50b809);return _0x50b809;},P=(_0x1d0066,_0x1c88ce)=>(_0x84da6a,_0x47c119)=>_0x1c88ce(_0x84da6a,_0x47c119,_0x1d0066),_n=(_0x162692,_0x2adbef,_0x492567)=>Cn(_0x162692,_0x2adbef+'',_0x492567);let j=class extends _0x1bf85c{constructor(_0x3b1ce3=ie,_0x30c0aa,_0x5d22f8,_0x5d8135,_0x1a4013,_0x35f5e0){const _0x5ce075=_0x1d63d5;super(),this[_0x5ce075(0x2ad)]=_0x3b1ce3,this[_0x5ce075(0x163)]=_0x30c0aa,this['_configService']=_0x5d22f8,this[_0x5ce075(0x28c)]=_0x5d8135,this[_0x5ce075(0x248)]=_0x1a4013,this[_0x5ce075(0x190)]=_0x35f5e0;const {..._0x4f90d2}=_0x4cf638({},ie,this[_0x5ce075(0x2ad)]);this['_configService'][_0x5ce075(0x18e)](y,_0x4f90d2);}async[_0x1d63d5(0x1d4)](){const _0x25b58a=_0x1d63d5,_0x4a45c5=[[O],[I],[D]];this[_0x25b58a(0x163)][_0x25b58a(0x282)](_0xb645cb)||_0x4a45c5[_0x25b58a(0x194)]([_0xb645cb,{'useClass':_0x48b6a2}]),_0x4a45c5[_0x25b58a(0x21c)](_0x15d3f9=>this[_0x25b58a(0x163)][_0x25b58a(0x231)](_0x15d3f9)),this[_0x25b58a(0x163)][_0x25b58a(0x1dc)](O),this[_0x25b58a(0x163)][_0x25b58a(0x1dc)](I),this[_0x25b58a(0x163)][_0x25b58a(0x1dc)](D);}};_n(j,_0x1d63d5(0x2a9),'MCP_UI_PLUGIN'),j=mn([_0x382c3e(_0x366911),P(0x1,_0x1bd7cd(_0x4f7a8c)),P(0x2,_0x50f488),P(0x3,_0x55b040),P(0x4,_0x34e505),P(0x5,_0x1bd7cd(_0x18ea5a))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- const _0x17ed2d=_0x3a9d;(function(_0x392f4a,_0x5caa8d){const _0x1edf93=_0x3a9d,_0x14e949=_0x392f4a();while(!![]){try{const _0x56240d=-parseInt(_0x1edf93(0x164))/0x1+-parseInt(_0x1edf93(0x15c))/0x2*(-parseInt(_0x1edf93(0x14b))/0x3)+-parseInt(_0x1edf93(0x162))/0x4+-parseInt(_0x1edf93(0x147))/0x5*(parseInt(_0x1edf93(0x142))/0x6)+parseInt(_0x1edf93(0x165))/0x7+parseInt(_0x1edf93(0x151))/0x8*(parseInt(_0x1edf93(0x144))/0x9)+parseInt(_0x1edf93(0x158))/0xa*(parseInt(_0x1edf93(0x14d))/0xb);if(_0x56240d===_0x5caa8d)break;else _0x14e949['push'](_0x14e949['shift']());}catch(_0x4bb3f0){_0x14e949['push'](_0x14e949['shift']());}}}(_0x50a0,0xc7b29));function _0x50a0(){const _0x484a75=['MCP\x20Disconnected','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Session\x20ID\x20Occupied','Connected','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Univer\x20AI\x20Console','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Disconnected','9180942AKCyON','Max\x20Retries','880893ABMZlH','Saving...','Configuration\x20Parameters:','5iRMsIo','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','144vGfflH','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','14725447tGbOrK','Connection\x20Failed','MCP\x20Connected','Invalid\x20configuration','88IqLhCU','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','10BQRvwZ','Configuration\x20saved\x20successfully','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','4870doVsCL','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Steps:','Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3386480GWFXSU','MCP\x20Connecting...','307588NOBmav','6790854ztWECZ','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x50a0=function(){return _0x484a75;};return _0x50a0();}function _0x3a9d(_0x4b9c68,_0x104978){_0x4b9c68=_0x4b9c68-0x139;const _0x50a0f3=_0x50a0();let _0x3a9d21=_0x50a0f3[_0x4b9c68];return _0x3a9d21;}const e={'mcpStatus':{'disconnected':_0x17ed2d(0x167),'connecting':_0x17ed2d(0x163),'connected':_0x17ed2d(0x14f),'failed':_0x17ed2d(0x13d),'retrying':_0x17ed2d(0x139),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x17ed2d(0x152),'sessionOccupied':_0x17ed2d(0x13b),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x17ed2d(0x15b),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x17ed2d(0x155),'description':_0x17ed2d(0x140),'apiKey':_0x17ed2d(0x157),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x17ed2d(0x15e),'connectionInfo':_0x17ed2d(0x13e),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x17ed2d(0x153),'configStepTitle':_0x17ed2d(0x15f),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x17ed2d(0x14a),'sessionId':'Session\x20ID','sessionIdDescription':_0x17ed2d(0x166),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x17ed2d(0x146),'maxRetries':_0x17ed2d(0x143),'save':'Save\x20Configuration','saving':_0x17ed2d(0x145),'note1':_0x17ed2d(0x148),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x17ed2d(0x159),'configError':_0x17ed2d(0x15a),'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':_0x17ed2d(0x13f),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x17ed2d(0x149),'apiKeyTooShort':_0x17ed2d(0x161),'invalidConfig':_0x17ed2d(0x150),'invalidApiKey':_0x17ed2d(0x154)},'connectionStatus':{'disconnected':_0x17ed2d(0x141),'connecting':'Connecting...','connected':_0x17ed2d(0x13c),'failed':_0x17ed2d(0x14e),'retrying':_0x17ed2d(0x160)},'connectionError':{'unauthorized':_0x17ed2d(0x14c),'sessionOccupied':_0x17ed2d(0x15d),'networkError':_0x17ed2d(0x13a),'maxRetriesExceeded':_0x17ed2d(0x156)}}},n=e;export{n as default};
1
+ const _0x4643ec=_0x27c9;(function(_0x395c11,_0x5efa4f){const _0x4566ce=_0x27c9,_0x162d88=_0x395c11();while(!![]){try{const _0x5663db=-parseInt(_0x4566ce(0x161))/0x1+parseInt(_0x4566ce(0x168))/0x2*(parseInt(_0x4566ce(0x136))/0x3)+parseInt(_0x4566ce(0x139))/0x4*(parseInt(_0x4566ce(0x15b))/0x5)+-parseInt(_0x4566ce(0x144))/0x6*(parseInt(_0x4566ce(0x157))/0x7)+parseInt(_0x4566ce(0x155))/0x8+parseInt(_0x4566ce(0x145))/0x9*(-parseInt(_0x4566ce(0x160))/0xa)+-parseInt(_0x4566ce(0x138))/0xb*(-parseInt(_0x4566ce(0x165))/0xc);if(_0x5663db===_0x5efa4f)break;else _0x162d88['push'](_0x162d88['shift']());}catch(_0x5e30a8){_0x162d88['push'](_0x162d88['shift']());}}}(_0x416a,0xaa0ac));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4643ec(0x162),'failed':_0x4643ec(0x14e),'retrying':_0x4643ec(0x13a),'unknown':_0x4643ec(0x163),'unauthorized':_0x4643ec(0x159),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4643ec(0x153),'maxRetriesExceeded':_0x4643ec(0x164),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4643ec(0x15e)},'mcpConfig':{'title':_0x4643ec(0x141),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4643ec(0x14c),'apiKeyPlaceholder':_0x4643ec(0x154),'apiKeyHint':_0x4643ec(0x13c),'enableAuth':_0x4643ec(0x156),'enableAuthHint':_0x4643ec(0x142),'connectionInfo':_0x4643ec(0x15a),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4643ec(0x13e),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4643ec(0x151),'configStep2':_0x4643ec(0x147),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4643ec(0x13d),'sessionIdDescription':_0x4643ec(0x152),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4643ec(0x158),'maxRetries':_0x4643ec(0x149),'save':'Save\x20Configuration','saving':_0x4643ec(0x14d),'note1':_0x4643ec(0x167),'note2':_0x4643ec(0x14f),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4643ec(0x137),'apiApplyInfo':{'title':_0x4643ec(0x15c),'description':_0x4643ec(0x148),'univerAiLabel':_0x4643ec(0x14a),'getStarted':_0x4643ec(0x150)},'validation':{'apiKeyRequired':_0x4643ec(0x13f),'apiKeyTooShort':_0x4643ec(0x166),'invalidConfig':_0x4643ec(0x140),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4643ec(0x146),'connected':_0x4643ec(0x143),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4643ec(0x15f),'sessionOccupied':_0x4643ec(0x15d),'networkError':_0x4643ec(0x13b),'maxRetriesExceeded':_0x4643ec(0x14b)}}},n=e;function _0x27c9(_0x1abf82,_0x16dacd){_0x1abf82=_0x1abf82-0x136;const _0x416a70=_0x416a();let _0x27c9bc=_0x416a70[_0x1abf82];return _0x27c9bc;}function _0x416a(){const _0x35ca96=['722559FqFEuY','Failed\x20to\x20save\x20configuration','165IzbqDK','4YbzZXc','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required','Invalid\x20configuration','MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Connected','108LwRapf','1026lqkoJm','Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','Univer\x20AI\x20Console','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','Saving...','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','10143136xqbvvS','Enable\x20Authentication','422751EGkBxj','Configuration\x20Parameters:','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','669005vwEChA','What\x20is\x20API\x20Key?','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','58250yXkzwF','1226087oRVeZa','MCP\x20Connected','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','854196nZNYhd','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','10jIDYBt'];_0x416a=function(){return _0x35ca96;};return _0x416a();}export{n as default};
@@ -1 +1 @@
1
- const _0x5340cf=_0xec5d;function _0xec5d(_0x41166e,_0x4fa8ab){_0x41166e=_0x41166e-0x1ce;const _0xb39be1=_0xb39b();let _0xec5d4d=_0xb39be1[_0x41166e];return _0xec5d4d;}(function(_0x129022,_0x43b165){const _0x1dd474=_0xec5d,_0x13f0fb=_0x129022();while(!![]){try{const _0x317a43=-parseInt(_0x1dd474(0x1fa))/0x1+parseInt(_0x1dd474(0x1d5))/0x2*(parseInt(_0x1dd474(0x1e6))/0x3)+parseInt(_0x1dd474(0x1fc))/0x4*(-parseInt(_0x1dd474(0x1fe))/0x5)+parseInt(_0x1dd474(0x1ce))/0x6*(-parseInt(_0x1dd474(0x1da))/0x7)+-parseInt(_0x1dd474(0x1f7))/0x8+parseInt(_0x1dd474(0x1de))/0x9+parseInt(_0x1dd474(0x1ec))/0xa*(parseInt(_0x1dd474(0x1d4))/0xb);if(_0x317a43===_0x43b165)break;else _0x13f0fb['push'](_0x13f0fb['shift']());}catch(_0x1f1995){_0x13f0fb['push'](_0x13f0fb['shift']());}}}(_0xb39b,0x42fb0));function _0xb39b(){const _0x428600=['Failed\x20to\x20save\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','MCP\x20Connecting...','4273232GWPekt','Configuration\x20Steps:','Click\x20to\x20configure\x20MCP','476077CWctIb','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','52596grLfwM','MCP\x20Configuration','45AgcgTU','MCP\x20Retrying...','Saving...','3026202cpFhBe','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','Save\x20Configuration','11jHfWoS','49252RqkUmo','MCP\x20Connected','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','7TGENPA','Connected','API\x20Key','MCP:\x20Session\x20ID\x20Occupied','4038732VreNjv','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enter\x20your\x20API\x20key','54BnBRmC','Configuration\x20Parameters:','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','Click\x20to\x20connect\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','10152750LabKhc','Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Univer\x20AI\x20Console'];_0xb39b=function(){return _0x428600;};return _0xb39b();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5340cf(0x1f6),'connected':_0x5340cf(0x1d6),'failed':_0x5340cf(0x1e0),'retrying':_0x5340cf(0x1ff),'unknown':_0x5340cf(0x1d7),'unauthorized':_0x5340cf(0x1e8),'sessionOccupied':_0x5340cf(0x1dd),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5340cf(0x1d1),'clickToConnect':_0x5340cf(0x1ea),'clickToConfigure':_0x5340cf(0x1f9)},'mcpConfig':{'title':_0x5340cf(0x1fd),'description':_0x5340cf(0x1cf),'apiKey':_0x5340cf(0x1dc),'apiKeyPlaceholder':_0x5340cf(0x1e5),'apiKeyHint':_0x5340cf(0x1e4),'enableAuth':_0x5340cf(0x1f5),'enableAuthHint':_0x5340cf(0x1f2),'connectionInfo':_0x5340cf(0x1e9),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5340cf(0x1ee),'configStepTitle':_0x5340cf(0x1f8),'configStep1':_0x5340cf(0x1eb),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x5340cf(0x1df),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5340cf(0x1e7),'maxRetries':_0x5340cf(0x1e3),'save':_0x5340cf(0x1d3),'saving':_0x5340cf(0x200),'note1':_0x5340cf(0x1fb),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x5340cf(0x1f0),'apiApplyInfo':{'title':_0x5340cf(0x1f3),'description':_0x5340cf(0x1e2),'univerAiLabel':_0x5340cf(0x1ef),'getStarted':_0x5340cf(0x1d2)},'validation':{'apiKeyRequired':_0x5340cf(0x1d8),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5340cf(0x1d9)},'connectionStatus':{'disconnected':_0x5340cf(0x1e1),'connecting':'Connecting...','connected':_0x5340cf(0x1db),'failed':_0x5340cf(0x1ed),'retrying':_0x5340cf(0x1d0)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5340cf(0x1f1),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5340cf(0x1f4)}}};export{e as default};
1
+ const _0x3922bc=_0x571e;function _0x571e(_0x27d0a0,_0x20a317){_0x27d0a0=_0x27d0a0-0x1ea;const _0x173840=_0x1738();let _0x571ee4=_0x173840[_0x27d0a0];return _0x571ee4;}(function(_0x5225ee,_0x134807){const _0x24f04c=_0x571e,_0x39e407=_0x5225ee();while(!![]){try{const _0x18504d=-parseInt(_0x24f04c(0x204))/0x1*(parseInt(_0x24f04c(0x1eb))/0x2)+-parseInt(_0x24f04c(0x207))/0x3+-parseInt(_0x24f04c(0x215))/0x4*(-parseInt(_0x24f04c(0x21b))/0x5)+parseInt(_0x24f04c(0x20f))/0x6*(-parseInt(_0x24f04c(0x1fb))/0x7)+-parseInt(_0x24f04c(0x1f6))/0x8+parseInt(_0x24f04c(0x1f0))/0x9*(parseInt(_0x24f04c(0x221))/0xa)+-parseInt(_0x24f04c(0x1f7))/0xb*(-parseInt(_0x24f04c(0x217))/0xc);if(_0x18504d===_0x134807)break;else _0x39e407['push'](_0x39e407['shift']());}catch(_0x266aa0){_0x39e407['push'](_0x39e407['shift']());}}}(_0x1738,0x2e6c3));const e={'mcpStatus':{'disconnected':_0x3922bc(0x1ee),'connecting':'MCP\x20Connecting...','connected':_0x3922bc(0x1f1),'failed':_0x3922bc(0x1f8),'retrying':_0x3922bc(0x1ea),'unknown':_0x3922bc(0x1ff),'unauthorized':_0x3922bc(0x205),'sessionOccupied':_0x3922bc(0x213),'networkError':_0x3922bc(0x206),'maxRetriesExceeded':_0x3922bc(0x1f5),'clickToConnect':_0x3922bc(0x219),'clickToConfigure':_0x3922bc(0x1f9)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3922bc(0x20a),'apiKey':_0x3922bc(0x21c),'apiKeyPlaceholder':_0x3922bc(0x210),'apiKeyHint':_0x3922bc(0x1f3),'enableAuth':_0x3922bc(0x1ec),'enableAuthHint':_0x3922bc(0x222),'connectionInfo':_0x3922bc(0x208),'mcpClientConfig':_0x3922bc(0x208),'configInstructions':_0x3922bc(0x21f),'configStepTitle':_0x3922bc(0x200),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3922bc(0x1fd),'configStep3':_0x3922bc(0x20d),'sessionId':_0x3922bc(0x1fa),'sessionIdDescription':_0x3922bc(0x220),'authorizationDescription':_0x3922bc(0x218),'configParameters':_0x3922bc(0x1fe),'maxRetries':_0x3922bc(0x20c),'save':_0x3922bc(0x211),'saving':_0x3922bc(0x20e),'note1':_0x3922bc(0x21a),'note2':_0x3922bc(0x202),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3922bc(0x21d),'apiApplyInfo':{'title':_0x3922bc(0x201),'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':_0x3922bc(0x214),'getStarted':_0x3922bc(0x1f2)},'validation':{'apiKeyRequired':_0x3922bc(0x203),'apiKeyTooShort':_0x3922bc(0x21e),'invalidConfig':_0x3922bc(0x1fc),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3922bc(0x1ed),'connecting':_0x3922bc(0x216),'connected':'Connected','failed':_0x3922bc(0x1f4),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3922bc(0x1ef),'sessionOccupied':_0x3922bc(0x212),'networkError':_0x3922bc(0x209),'maxRetriesExceeded':_0x3922bc(0x20b)}}};function _0x1738(){const _0x495e23=['API\x20Key','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2012090QqRYgl','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','244254NamscS','Enable\x20Authentication','Disconnected','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','9TLbGVn','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connection\x20Failed','MCP:\x20Max\x20Retries\x20Exceeded','428848pNFoyE','1835724ZqcueZ','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','Session\x20ID','7LhGcIW','Invalid\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','MCP\x20Unknown\x20Status','Configuration\x20Steps:','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','1GnaLmT','MCP:\x20Unauthorized','MCP:\x20Network\x20Error','1031916IjjrRN','MCP\x20Client\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Max\x20Retries','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','596034VrEHmk','Enter\x20your\x20API\x20key','Save\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','Univer\x20AI\x20Console','1336hgIMsW','Connecting...','24AFRpMx','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','4105TZljhx'];_0x1738=function(){return _0x495e23;};return _0x1738();}export{e as default};
@@ -1 +1 @@
1
- function _0xfd66(_0x3496b9,_0x3291b3){_0x3496b9=_0x3496b9-0x11c;const _0x44c11c=_0x44c1();let _0xfd6691=_0x44c11c[_0x3496b9];return _0xfd6691;}const _0x1c5c09=_0xfd66;function _0x44c1(){const _0x489fda=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','MCP\x20Unknown\x20Status','Connection\x20Failed','Connecting...','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','618608BEJyWU','Enter\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','7887490SXfptu','API\x20key\x20with\x20Bearer\x20prefix.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5485ZdwPvY','MCP\x20Retrying...','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Steps:','Connected','Enable\x20authentication\x20for\x20secure\x20connections','420lVaYFG','Failed\x20to\x20save\x20configuration','795561OPWtBK','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','MCP:\x20Unauthorized','2883006telPYE','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','Save\x20Configuration','Max\x20Retries','MCP\x20Disconnected','MCP\x20Connected','MCP\x20Client\x20Configuration','4743OKMHOS','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','240mtEuBl','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:\x20Max\x20Retries\x20Exceeded','What\x20is\x20API\x20Key?','22337mTYzoJ','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key','180HDeKdP'];_0x44c1=function(){return _0x489fda;};return _0x44c1();}(function(_0x1812f2,_0x26d2d8){const _0x3d88f1=_0xfd66,_0xe53a4f=_0x1812f2();while(!![]){try{const _0x56f578=-parseInt(_0x3d88f1(0x11c))/0x1*(parseInt(_0x3d88f1(0x128))/0x2)+-parseInt(_0x3d88f1(0x143))/0x3+-parseInt(_0x3d88f1(0x134))/0x4+parseInt(_0x3d88f1(0x13b))/0x5*(parseInt(_0x3d88f1(0x141))/0x6)+parseInt(_0x3d88f1(0x124))/0x7*(-parseInt(_0x3d88f1(0x120))/0x8)+parseInt(_0x3d88f1(0x147))/0x9+parseInt(_0x3d88f1(0x138))/0xa;if(_0x56f578===_0x26d2d8)break;else _0xe53a4f['push'](_0xe53a4f['shift']());}catch(_0x4dfb55){_0xe53a4f['push'](_0xe53a4f['shift']());}}}(_0x44c1,0x3b6ea));const e={'mcpStatus':{'disconnected':_0x1c5c09(0x14c),'connecting':_0x1c5c09(0x11e),'connected':_0x1c5c09(0x14d),'failed':_0x1c5c09(0x125),'retrying':_0x1c5c09(0x13c),'unknown':_0x1c5c09(0x12e),'unauthorized':_0x1c5c09(0x146),'sessionOccupied':_0x1c5c09(0x13d),'networkError':_0x1c5c09(0x145),'maxRetriesExceeded':_0x1c5c09(0x122),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1c5c09(0x12c)},'mcpConfig':{'title':_0x1c5c09(0x12d),'description':_0x1c5c09(0x133),'apiKey':_0x1c5c09(0x127),'apiKeyPlaceholder':_0x1c5c09(0x135),'apiKeyHint':_0x1c5c09(0x12b),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1c5c09(0x140),'connectionInfo':_0x1c5c09(0x14e),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1c5c09(0x13e),'configStep1':_0x1c5c09(0x132),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','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':_0x1c5c09(0x139),'configParameters':_0x1c5c09(0x149),'maxRetries':_0x1c5c09(0x14b),'save':_0x1c5c09(0x14a),'saving':'Saving...','note1':_0x1c5c09(0x136),'note2':_0x1c5c09(0x129),'configSaved':_0x1c5c09(0x131),'configError':_0x1c5c09(0x142),'apiApplyInfo':{'title':_0x1c5c09(0x123),'description':_0x1c5c09(0x121),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1c5c09(0x11f)},'validation':{'apiKeyRequired':_0x1c5c09(0x144),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1c5c09(0x137)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1c5c09(0x130),'connected':_0x1c5c09(0x13f),'failed':_0x1c5c09(0x12f),'retrying':_0x1c5c09(0x12a)},'connectionError':{'unauthorized':_0x1c5c09(0x13a),'sessionOccupied':_0x1c5c09(0x11d),'networkError':_0x1c5c09(0x126),'maxRetriesExceeded':_0x1c5c09(0x148)}}},n=e;export{n as default};
1
+ function _0x1224(_0x44e8f5,_0x4fc136){_0x44e8f5=_0x44e8f5-0x1d2;const _0x1d3ee2=_0x1d3e();let _0x1224ab=_0x1d3ee2[_0x44e8f5];return _0x1224ab;}function _0x1d3e(){const _0x363ee3=['Save\x20Configuration','Univer\x20AI\x20Console','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','MCP\x20Client\x20Configuration','Configuration\x20Steps:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20connect\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connected','Invalid\x20configuration','API\x20Key','Configuration\x20Parameters:','MCP\x20Unknown\x20Status','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','3985408lsvvCR','Click\x20to\x20configure\x20MCP','8566725KaqwIV','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','5807432rGqPEp','Enable\x20Authentication','2485428lqrVpi','Configuration\x20saved\x20successfully','3607554fcrcAd','148663wTKpaG','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Session\x20ID\x20Occupied','16xFDbEl','MCP\x20Connecting...','18afXpjv','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','3903424ltTGpJ','Enter\x20your\x20API\x20key','Connecting...'];_0x1d3e=function(){return _0x363ee3;};return _0x1d3e();}const _0x125c50=_0x1224;(function(_0x17782d,_0x1d0c98){const _0x2d1049=_0x1224,_0x13360e=_0x17782d();while(!![]){try{const _0x50f8b4=parseInt(_0x2d1049(0x1ec))/0x1*(-parseInt(_0x2d1049(0x1f1))/0x2)+parseInt(_0x2d1049(0x1e9))/0x3+parseInt(_0x2d1049(0x1f7))/0x4+parseInt(_0x2d1049(0x1e5))/0x5+parseInt(_0x2d1049(0x1eb))/0x6+-parseInt(_0x2d1049(0x1e3))/0x7+-parseInt(_0x2d1049(0x1e7))/0x8*(parseInt(_0x2d1049(0x1f3))/0x9);if(_0x50f8b4===_0x1d0c98)break;else _0x13360e['push'](_0x13360e['shift']());}catch(_0x4a09ff){_0x13360e['push'](_0x13360e['shift']());}}}(_0x1d3e,0xddc8e));const e={'mcpStatus':{'disconnected':_0x125c50(0x1f5),'connecting':_0x125c50(0x1f2),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x125c50(0x1e1),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x125c50(0x1f0),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x125c50(0x1db),'clickToConfigure':_0x125c50(0x1e4)},'mcpConfig':{'title':_0x125c50(0x1d5),'description':_0x125c50(0x1fc),'apiKey':_0x125c50(0x1df),'apiKeyPlaceholder':_0x125c50(0x1f8),'apiKeyHint':_0x125c50(0x1f4),'enableAuth':_0x125c50(0x1e8),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x125c50(0x1d6),'mcpClientConfig':_0x125c50(0x1d6),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x125c50(0x1d7),'configStep1':_0x125c50(0x1d4),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x125c50(0x1d2),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x125c50(0x1e0),'maxRetries':'Max\x20Retries','save':_0x125c50(0x1fa),'saving':'Saving...','note1':_0x125c50(0x1e2),'note2':_0x125c50(0x1ef),'configSaved':_0x125c50(0x1ea),'configError':_0x125c50(0x1ee),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x125c50(0x1ed),'univerAiLabel':_0x125c50(0x1fb),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x125c50(0x1d9),'apiKeyTooShort':_0x125c50(0x1e6),'invalidConfig':_0x125c50(0x1de),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x125c50(0x1f9),'connected':_0x125c50(0x1dd),'failed':'Connection\x20Failed','retrying':_0x125c50(0x1d3)},'connectionError':{'unauthorized':_0x125c50(0x1dc),'sessionOccupied':_0x125c50(0x1d8),'networkError':_0x125c50(0x1da),'maxRetriesExceeded':_0x125c50(0x1f6)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- function _0x21eb(_0x4254a9,_0x253dc7){_0x4254a9=_0x4254a9-0x7a;const _0x3ddc1c=_0x3ddc();let _0x21eb29=_0x3ddc1c[_0x4254a9];return _0x21eb29;}const _0x198c8e=_0x21eb;(function(_0x28a511,_0x3add73){const _0x485ba3=_0x21eb,_0x3c3757=_0x28a511();while(!![]){try{const _0x3b13ff=parseInt(_0x485ba3(0xa0))/0x1*(parseInt(_0x485ba3(0xa8))/0x2)+-parseInt(_0x485ba3(0xa6))/0x3*(-parseInt(_0x485ba3(0x9a))/0x4)+parseInt(_0x485ba3(0x89))/0x5*(parseInt(_0x485ba3(0x7e))/0x6)+parseInt(_0x485ba3(0x85))/0x7*(-parseInt(_0x485ba3(0xa7))/0x8)+parseInt(_0x485ba3(0x7d))/0x9*(parseInt(_0x485ba3(0xa4))/0xa)+parseInt(_0x485ba3(0x84))/0xb*(-parseInt(_0x485ba3(0xa3))/0xc)+-parseInt(_0x485ba3(0x7a))/0xd;if(_0x3b13ff===_0x3add73)break;else _0x3c3757['push'](_0x3c3757['shift']());}catch(_0x17d1d4){_0x3c3757['push'](_0x3c3757['shift']());}}}(_0x3ddc,0x28f57));const e={'mcpStatus':{'disconnected':_0x198c8e(0x94),'connecting':_0x198c8e(0x7b),'connected':_0x198c8e(0x93),'failed':'MCP\x20Connection\x20Failed','retrying':_0x198c8e(0x91),'unknown':_0x198c8e(0x9b),'unauthorized':_0x198c8e(0x7f),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x198c8e(0x8c),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x198c8e(0x9f),'description':_0x198c8e(0x9e),'apiKey':_0x198c8e(0x82),'apiKeyPlaceholder':_0x198c8e(0x7c),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x198c8e(0xaa),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x198c8e(0x8d),'mcpClientConfig':_0x198c8e(0x8d),'configInstructions':_0x198c8e(0x97),'configStepTitle':_0x198c8e(0x99),'configStep1':_0x198c8e(0xa5),'configStep2':_0x198c8e(0x8b),'configStep3':_0x198c8e(0x98),'sessionId':_0x198c8e(0xa1),'sessionIdDescription':_0x198c8e(0x86),'authorizationDescription':_0x198c8e(0x95),'configParameters':_0x198c8e(0x9c),'maxRetries':_0x198c8e(0x88),'save':'Save\x20Configuration','saving':_0x198c8e(0x9d),'note1':_0x198c8e(0x87),'note2':_0x198c8e(0xa9),'configSaved':_0x198c8e(0x8f),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x198c8e(0x92),'univerAiLabel':_0x198c8e(0x80),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x198c8e(0x96),'invalidApiKey':_0x198c8e(0x8a)},'connectionStatus':{'disconnected':_0x198c8e(0xab),'connecting':_0x198c8e(0x81),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x198c8e(0x83)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x198c8e(0xa2),'networkError':_0x198c8e(0x90),'maxRetriesExceeded':_0x198c8e(0x8e)}}},n=e;function _0x3ddc(){const _0xf3b563=['Session\x20ID','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','312DepgTu','150180RFHHit','Copy\x20the\x20JSON\x20configuration\x20below','9rGhaYG','440HJMftA','4uRvGmO','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20Authentication','Disconnected','1071291mYdXHy','MCP\x20Connecting...','Enter\x20your\x20API\x20key','171KuRWsT','6HaMxIf','MCP:\x20Unauthorized','Univer\x20AI\x20Console','Connecting...','API\x20Key','Retrying...','141262zUJFVO','40201uciANY','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Max\x20Retries','1280140cDumJu','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Retrying...','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\x20Connected','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Steps:','63092guNIJp','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','Saving...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration','155621TFWBnL'];_0x3ddc=function(){return _0xf3b563;};return _0x3ddc();}export{n as default};
1
+ const _0x54d1f4=_0x18e5;(function(_0x5f0955,_0x66fe44){const _0x533b79=_0x18e5,_0x7dc404=_0x5f0955();while(!![]){try{const _0x4c51d4=parseInt(_0x533b79(0xf5))/0x1+parseInt(_0x533b79(0x10b))/0x2+parseInt(_0x533b79(0x100))/0x3*(-parseInt(_0x533b79(0x111))/0x4)+-parseInt(_0x533b79(0x11a))/0x5*(-parseInt(_0x533b79(0x107))/0x6)+parseInt(_0x533b79(0x101))/0x7+parseInt(_0x533b79(0x10a))/0x8*(parseInt(_0x533b79(0x10c))/0x9)+-parseInt(_0x533b79(0x106))/0xa;if(_0x4c51d4===_0x66fe44)break;else _0x7dc404['push'](_0x7dc404['shift']());}catch(_0x403b42){_0x7dc404['push'](_0x7dc404['shift']());}}}(_0x73f9,0xea2be));function _0x73f9(){const _0x4b5622=['4058125NfDVSP','Connecting...','Enable\x20Authentication','Connected','Configuration\x20saved\x20successfully','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','382238lKnLgJ','Click\x20to\x20configure\x20MCP','Connection\x20Failed','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Retrying...','12BmMfDK','6762273CGKKnc','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','MCP\x20Connection\x20Failed','MCP\x20Connected','26351650GJiPCI','6FzMFYp','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','5837752VznaCW','2338204CQsOna','9OmkXsG','Save\x20Configuration','Click\x20to\x20connect\x20MCP','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','464392CyPsIi','MCP\x20Connecting...','What\x20is\x20API\x20Key?','API\x20Key','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x73f9=function(){return _0x4b5622;};return _0x73f9();}function _0x18e5(_0x16c435,_0x4dfdc2){_0x16c435=_0x16c435-0xf2;const _0x73f964=_0x73f9();let _0x18e52f=_0x73f964[_0x16c435];return _0x18e52f;}const e={'mcpStatus':{'disconnected':_0x54d1f4(0x120),'connecting':_0x54d1f4(0x112),'connected':_0x54d1f4(0x105),'failed':_0x54d1f4(0x104),'retrying':_0x54d1f4(0xfe),'unknown':_0x54d1f4(0x103),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x54d1f4(0x115),'clickToConnect':_0x54d1f4(0x10e),'clickToConfigure':_0x54d1f4(0xf6)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x54d1f4(0xf9),'apiKey':_0x54d1f4(0x114),'apiKeyPlaceholder':_0x54d1f4(0x10f),'apiKeyHint':_0x54d1f4(0x116),'enableAuth':_0x54d1f4(0x11c),'enableAuthHint':_0x54d1f4(0xf2),'connectionInfo':_0x54d1f4(0x108),'mcpClientConfig':_0x54d1f4(0x108),'configInstructions':_0x54d1f4(0xfb),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x54d1f4(0xfc),'configStep2':_0x54d1f4(0x122),'configStep3':_0x54d1f4(0x102),'sessionId':'Session\x20ID','sessionIdDescription':_0x54d1f4(0xfd),'authorizationDescription':_0x54d1f4(0x117),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x54d1f4(0x10d),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x54d1f4(0x110),'configSaved':_0x54d1f4(0x11e),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x54d1f4(0x113),'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':_0x54d1f4(0xf3),'getStarted':_0x54d1f4(0x109)},'validation':{'apiKeyRequired':_0x54d1f4(0xf8),'apiKeyTooShort':_0x54d1f4(0xfa),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x54d1f4(0x121)},'connectionStatus':{'disconnected':_0x54d1f4(0x118),'connecting':_0x54d1f4(0x11b),'connected':_0x54d1f4(0x11d),'failed':_0x54d1f4(0xf7),'retrying':_0x54d1f4(0xff)},'connectionError':{'unauthorized':_0x54d1f4(0x11f),'sessionOccupied':_0x54d1f4(0x119),'networkError':_0x54d1f4(0xf4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x225b4b=_0x3f9d;(function(_0x2ca81c,_0x4d3709){const _0x535a59=_0x3f9d,_0x49bd2e=_0x2ca81c();while(!![]){try{const _0x543ae1=parseInt(_0x535a59(0x102))/0x1+parseInt(_0x535a59(0x114))/0x2*(parseInt(_0x535a59(0x10f))/0x3)+parseInt(_0x535a59(0x113))/0x4*(parseInt(_0x535a59(0x11a))/0x5)+parseInt(_0x535a59(0xf8))/0x6+-parseInt(_0x535a59(0xfb))/0x7+parseInt(_0x535a59(0xed))/0x8*(parseInt(_0x535a59(0xfe))/0x9)+-parseInt(_0x535a59(0x104))/0xa*(parseInt(_0x535a59(0x10a))/0xb);if(_0x543ae1===_0x4d3709)break;else _0x49bd2e['push'](_0x49bd2e['shift']());}catch(_0x5aa19e){_0x49bd2e['push'](_0x49bd2e['shift']());}}}(_0x2a75,0x9914c));function _0x3f9d(_0x7fcac,_0xec2daf){_0x7fcac=_0x7fcac-0xe9;const _0x2a755c=_0x2a75();let _0x3f9dd5=_0x2a755c[_0x7fcac];return _0x3f9dd5;}const e={'mcpStatus':{'disconnected':_0x225b4b(0x118),'connecting':_0x225b4b(0xf7),'connected':'MCP\x20Connected','failed':_0x225b4b(0x10c),'retrying':_0x225b4b(0xee),'unknown':_0x225b4b(0x10d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x225b4b(0x110),'networkError':_0x225b4b(0xfa),'maxRetriesExceeded':_0x225b4b(0xec),'clickToConnect':_0x225b4b(0x106),'clickToConfigure':_0x225b4b(0x10b)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x225b4b(0xfd),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x225b4b(0x117),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x225b4b(0x107),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x225b4b(0x115),'mcpClientConfig':_0x225b4b(0x115),'configInstructions':_0x225b4b(0xeb),'configStepTitle':_0x225b4b(0xf0),'configStep1':_0x225b4b(0x112),'configStep2':_0x225b4b(0xef),'configStep3':_0x225b4b(0xf2),'sessionId':_0x225b4b(0x105),'sessionIdDescription':_0x225b4b(0x100),'authorizationDescription':_0x225b4b(0xf3),'configParameters':_0x225b4b(0xf6),'maxRetries':_0x225b4b(0xf5),'save':_0x225b4b(0xe9),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x225b4b(0xf4),'configSaved':_0x225b4b(0x103),'configError':_0x225b4b(0xea),'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':_0x225b4b(0x101),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x225b4b(0x10e),'apiKeyTooShort':_0x225b4b(0xf1),'invalidConfig':_0x225b4b(0x109),'invalidApiKey':_0x225b4b(0xf9)},'connectionStatus':{'disconnected':_0x225b4b(0xff),'connecting':_0x225b4b(0x111),'connected':_0x225b4b(0x119),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x225b4b(0x116),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x225b4b(0xfc),'maxRetriesExceeded':_0x225b4b(0x108)}}},n=e;function _0x2a75(){const _0x358835=['Click\x20to\x20connect\x20MCP','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','55TVNewr','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','9ZHFBkP','MCP:\x20Session\x20ID\x20Occupied','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','108bcuCOf','17858SfjWpc','MCP\x20Client\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enter\x20your\x20API\x20key','MCP\x20Disconnected','Connected','13185cyDGRO','Save\x20Configuration','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','2872QJDoUD','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Steps:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Max\x20Retries','Configuration\x20Parameters:','MCP\x20Connecting...','6706362hFBkFb','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','5531841aOXVjH','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','30051HdlBqO','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Univer\x20AI\x20Console','2404vWxKQk','Configuration\x20saved\x20successfully','1999070cBkGSz','Session\x20ID'];_0x2a75=function(){return _0x358835;};return _0x2a75();}export{n as default};
1
+ const _0x4c34cb=_0x34b8;(function(_0xdce4,_0x445222){const _0x45dc76=_0x34b8,_0x249a42=_0xdce4();while(!![]){try{const _0x177ef8=-parseInt(_0x45dc76(0x1d9))/0x1*(-parseInt(_0x45dc76(0x1f1))/0x2)+-parseInt(_0x45dc76(0x1ec))/0x3+parseInt(_0x45dc76(0x1db))/0x4+parseInt(_0x45dc76(0x1de))/0x5*(parseInt(_0x45dc76(0x1d4))/0x6)+parseInt(_0x45dc76(0x1cc))/0x7+-parseInt(_0x45dc76(0x1d5))/0x8*(parseInt(_0x45dc76(0x1dc))/0x9)+-parseInt(_0x45dc76(0x1e8))/0xa*(parseInt(_0x45dc76(0x1ea))/0xb);if(_0x177ef8===_0x445222)break;else _0x249a42['push'](_0x249a42['shift']());}catch(_0x46494e){_0x249a42['push'](_0x249a42['shift']());}}}(_0x1816,0x71c24));function _0x34b8(_0x53bab0,_0x28f0fe){_0x53bab0=_0x53bab0-0x1c9;const _0x1816de=_0x1816();let _0x34b88c=_0x1816de[_0x53bab0];return _0x34b88c;}function _0x1816(){const _0x12d62e=['Click\x20to\x20connect\x20MCP','18hbpKkQ','16YgcCMy','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','71133eGZCMM','MCP:\x20Unauthorized','1917124XxTEun','3423897GoiRvu','Enable\x20authentication\x20for\x20secure\x20connections','1218835RieuRA','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','Retrying...','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','30smlyHi','Configuration\x20Steps:','459811UWVpTb','Enable\x20Authentication','1338351FCULNV','API\x20key\x20with\x20Bearer\x20prefix.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Unknown\x20Status','6cXzGRv','MCP\x20Configuration','Connecting...','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','MCP\x20Disconnected','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\x20Connected','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','Max\x20Retries','2620527ctfAwd','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enter\x20your\x20API\x20key','Disconnected','Connected'];_0x1816=function(){return _0x12d62e;};return _0x1816();}const e={'mcpStatus':{'disconnected':_0x4c34cb(0x1f8),'connecting':'MCP\x20Connecting...','connected':_0x4c34cb(0x1fa),'failed':_0x4c34cb(0x1e1),'retrying':'MCP\x20Retrying...','unknown':_0x4c34cb(0x1f0),'unauthorized':_0x4c34cb(0x1da),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4c34cb(0x1d7),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4c34cb(0x1d3),'clickToConfigure':_0x4c34cb(0x1e4)},'mcpConfig':{'title':_0x4c34cb(0x1f2),'description':_0x4c34cb(0x1ee),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4c34cb(0x1d0),'apiKeyHint':_0x4c34cb(0x1cf),'enableAuth':_0x4c34cb(0x1eb),'enableAuthHint':_0x4c34cb(0x1dd),'connectionInfo':_0x4c34cb(0x1f4),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4c34cb(0x1cd),'configStepTitle':_0x4c34cb(0x1e9),'configStep1':_0x4c34cb(0x1df),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4c34cb(0x1f6),'sessionId':_0x4c34cb(0x1e6),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4c34cb(0x1ed),'configParameters':_0x4c34cb(0x1c9),'maxRetries':_0x4c34cb(0x1cb),'save':_0x4c34cb(0x1e0),'saving':'Saving...','note1':_0x4c34cb(0x1e3),'note2':_0x4c34cb(0x1e2),'configSaved':_0x4c34cb(0x1f7),'configError':_0x4c34cb(0x1ca),'apiApplyInfo':{'title':_0x4c34cb(0x1d6),'description':_0x4c34cb(0x1f9),'univerAiLabel':_0x4c34cb(0x1ce),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4c34cb(0x1d8),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4c34cb(0x1f5)},'connectionStatus':{'disconnected':_0x4c34cb(0x1d1),'connecting':_0x4c34cb(0x1f3),'connected':_0x4c34cb(0x1d2),'failed':'Connection\x20Failed','retrying':_0x4c34cb(0x1e5)},'connectionError':{'unauthorized':_0x4c34cb(0x1ef),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4c34cb(0x1e7)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x11d3e2=_0x6a2f;(function(_0x31099c,_0x3aba6b){const _0x289823=_0x6a2f,_0x21a6af=_0x31099c();while(!![]){try{const _0x14273b=-parseInt(_0x289823(0x119))/0x1*(-parseInt(_0x289823(0x12e))/0x2)+-parseInt(_0x289823(0x112))/0x3*(parseInt(_0x289823(0x121))/0x4)+parseInt(_0x289823(0x11e))/0x5+parseInt(_0x289823(0x12a))/0x6*(parseInt(_0x289823(0x13c))/0x7)+parseInt(_0x289823(0x132))/0x8*(parseInt(_0x289823(0x10f))/0x9)+parseInt(_0x289823(0x123))/0xa+-parseInt(_0x289823(0x12d))/0xb;if(_0x14273b===_0x3aba6b)break;else _0x21a6af['push'](_0x21a6af['shift']());}catch(_0x7af68c){_0x21a6af['push'](_0x21a6af['shift']());}}}(_0x2f01,0x83ca0));const e={'mcpStatus':{'disconnected':_0x11d3e2(0x126),'connecting':'MCP\x20接続中...','connected':_0x11d3e2(0x125),'failed':_0x11d3e2(0x114),'retrying':'MCP\x20再試行中...','unknown':_0x11d3e2(0x12b),'unauthorized':_0x11d3e2(0x12f),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x11d3e2(0x11b),'maxRetriesExceeded':_0x11d3e2(0x117),'clickToConnect':_0x11d3e2(0x11c),'clickToConfigure':_0x11d3e2(0x131)},'mcpConfig':{'title':_0x11d3e2(0x137),'description':_0x11d3e2(0x10d),'apiKey':_0x11d3e2(0x10a),'apiKeyPlaceholder':_0x11d3e2(0x13b),'apiKeyHint':_0x11d3e2(0x130),'enableAuth':'認証を有効にする','enableAuthHint':_0x11d3e2(0x10b),'connectionInfo':_0x11d3e2(0x12c),'mcpClientConfig':_0x11d3e2(0x12c),'configInstructions':_0x11d3e2(0x113),'configStepTitle':'設定手順:','configStep1':_0x11d3e2(0x138),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x11d3e2(0x11d),'sessionId':_0x11d3e2(0x136),'sessionIdDescription':_0x11d3e2(0x133),'authorizationDescription':_0x11d3e2(0x128),'configParameters':_0x11d3e2(0x11a),'maxRetries':_0x11d3e2(0x139),'save':_0x11d3e2(0x116),'saving':_0x11d3e2(0x127),'note1':_0x11d3e2(0x134),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x11d3e2(0x109),'description':_0x11d3e2(0x124),'univerAiLabel':_0x11d3e2(0x11f),'getStarted':_0x11d3e2(0x129)},'validation':{'apiKeyRequired':_0x11d3e2(0x110),'apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x11d3e2(0x120),'invalidApiKey':_0x11d3e2(0x10c)},'connectionStatus':{'disconnected':_0x11d3e2(0x135),'connecting':_0x11d3e2(0x10e),'connected':_0x11d3e2(0x13a),'failed':_0x11d3e2(0x115),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x11d3e2(0x118),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x11d3e2(0x111),'maxRetriesExceeded':_0x11d3e2(0x122)}}};export{e as default};function _0x6a2f(_0x2f0a33,_0x5481f9){_0x2f0a33=_0x2f0a33-0x109;const _0x2f01e3=_0x2f01();let _0x6a2f78=_0x2f01e3[_0x2f0a33];return _0x6a2f78;}function _0x2f01(){const _0x41d936=['数秒でAPIキーを取得','2264484exAmxj','MCP\x20不明な状態','MCPクライアント設定','17157899yhZPDg','1265784dKysVK','MCP:\x20認証されていません','APIキーはこのブラウザのローカルに保存されます','クリックしてMCPを設定','259672RxHBXt','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','設定の変更は直ちに有効になります','未接続','セッションID','MCP設定','以下のJSON設定をコピー','最大再試行回数','接続済み','APIキーを入力してください','14RtcaUh','APIキーとは?','APIキー','セキュアな接続のために認証を有効にする','無効なAPIキーです。キーが正しいか確認してください','MCPを設定してAIでスプレッドシートを操作','接続中...','198DVlPUi','APIキーは必須です','ネットワーク接続エラー。インターネット接続を確認してください','6xNwfhD','MCPクライアントの設定に次の設定を追加してください:','MCP\x20接続失敗','接続失敗','設定を保存','MCP:\x20最大再試行回数を超過','認証に失敗しました。APIキーを確認してください','1MmqOqw','設定パラメータ:','MCP:\x20ネットワークエラー','クリックしてMCPに接続','MCPクライアントを再起動して設定を適用','2881790ZBrWzS','Univer\x20AIコンソール','無効な設定','1591672rhrcMg','最大再試行回数を超過しました。後でもう一度お試しください','2172770lgnwzZ','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','MCP\x20接続済み','MCP\x20未接続','保存中...','Bearerプレフィックス付きのAPIキー。'];_0x2f01=function(){return _0x41d936;};return _0x2f01();}
1
+ function _0x4888(){const _0x45f84e=['APIキーは必須です','6HVdIGI','4128608YWKlkp','ネットワーク接続エラー。インターネット接続を確認してください','Univer\x20AIコンソール','MCPを設定してAIでスプレッドシートを操作','APIキーを入力してください','セッションID','2682WQUtFS','2154EffEbz','14835mgKRAg','クリックしてMCPに接続','1920xAdmHq','以下のJSON設定をコピー','接続失敗','認証を有効にする','MCP設定','7194362XvGXdR','MCP:\x20ネットワークエラー','APIキー','MCP\x20不明な状態','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','設定手順:','MCP:\x20セッションIDが使用中','設定が正常に保存されました','最大再試行回数を超過しました。後でもう一度お試しください','保存中...','481414JWWHhk','MCP:\x20認証されていません','APIキーはこのブラウザのローカルに保存されます','最大再試行回数','MCP\x20再試行中...','265463SLdeoT','MCP\x20未接続','未接続','MCP\x20接続中...','MCP\x20接続失敗','22664ZvbEdt','数秒でAPIキーを取得','設定の変更は直ちに有効になります','クリックしてMCPを設定','セキュアな接続のために認証を有効にする','設定パラメータ:','Bearerプレフィックス付きのAPIキー。','368511iITEgH','APIキーは10文字以上である必要があります','APIキーはローカルストレージに安全に保存されます','MCPクライアントを再起動して設定を適用','再試行中...','接続済み','認証に失敗しました。APIキーを確認してください'];_0x4888=function(){return _0x45f84e;};return _0x4888();}const _0x5d8d1c=_0x4b33;(function(_0x57fac6,_0x5b5841){const _0x1b48ad=_0x4b33,_0x1b00c9=_0x57fac6();while(!![]){try{const _0x44f35f=-parseInt(_0x1b48ad(0x95))/0x1+parseInt(_0x1b48ad(0x7b))/0x2*(parseInt(_0x1b48ad(0x73))/0x3)+-parseInt(_0x1b48ad(0x7c))/0x4+parseInt(_0x1b48ad(0x84))/0x5*(-parseInt(_0x1b48ad(0x83))/0x6)+-parseInt(_0x1b48ad(0x8b))/0x7+-parseInt(_0x1b48ad(0x6c))/0x8*(parseInt(_0x1b48ad(0x82))/0x9)+-parseInt(_0x1b48ad(0x86))/0xa*(-parseInt(_0x1b48ad(0x9a))/0xb);if(_0x44f35f===_0x5b5841)break;else _0x1b00c9['push'](_0x1b00c9['shift']());}catch(_0x5adb6f){_0x1b00c9['push'](_0x1b00c9['shift']());}}}(_0x4888,0x869a0));function _0x4b33(_0xb508c0,_0x53773c){_0xb508c0=_0xb508c0-0x6c;const _0x488823=_0x4888();let _0x4b33d5=_0x488823[_0xb508c0];return _0x4b33d5;}const e={'mcpStatus':{'disconnected':_0x5d8d1c(0x9b),'connecting':_0x5d8d1c(0x9d),'connected':'MCP\x20接続済み','failed':_0x5d8d1c(0x9e),'retrying':_0x5d8d1c(0x99),'unknown':_0x5d8d1c(0x8e),'unauthorized':_0x5d8d1c(0x96),'sessionOccupied':_0x5d8d1c(0x91),'networkError':_0x5d8d1c(0x8c),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x5d8d1c(0x85),'clickToConfigure':_0x5d8d1c(0x6f)},'mcpConfig':{'title':_0x5d8d1c(0x8a),'description':_0x5d8d1c(0x7f),'apiKey':_0x5d8d1c(0x8d),'apiKeyPlaceholder':_0x5d8d1c(0x80),'apiKeyHint':_0x5d8d1c(0x97),'enableAuth':_0x5d8d1c(0x89),'enableAuthHint':_0x5d8d1c(0x70),'connectionInfo':'MCPクライアント設定','mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x5d8d1c(0x90),'configStep1':_0x5d8d1c(0x87),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x5d8d1c(0x76),'sessionId':_0x5d8d1c(0x81),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x5d8d1c(0x72),'configParameters':_0x5d8d1c(0x71),'maxRetries':_0x5d8d1c(0x98),'save':'設定を保存','saving':_0x5d8d1c(0x94),'note1':_0x5d8d1c(0x6e),'note2':_0x5d8d1c(0x75),'configSaved':_0x5d8d1c(0x92),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':'APIキーとは?','description':_0x5d8d1c(0x8f),'univerAiLabel':_0x5d8d1c(0x7e),'getStarted':_0x5d8d1c(0x6d)},'validation':{'apiKeyRequired':_0x5d8d1c(0x7a),'apiKeyTooShort':_0x5d8d1c(0x74),'invalidConfig':'無効な設定','invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x5d8d1c(0x9c),'connecting':'接続中...','connected':_0x5d8d1c(0x78),'failed':_0x5d8d1c(0x88),'retrying':_0x5d8d1c(0x77)},'connectionError':{'unauthorized':_0x5d8d1c(0x79),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x5d8d1c(0x7d),'maxRetriesExceeded':_0x5d8d1c(0x93)}}};export{e as default};