@univerjs-pro/mcp-ui 0.20.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -11
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5244(_0x4a6e48,_0x4ca01c){_0x4a6e48=_0x4a6e48-0x1da;const _0x4b1ffe=_0x4b1f();let _0x524445=_0x4b1ffe[_0x4a6e48];return _0x524445;}function _0x4b1f(){const _0x5d79a6=['univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','UNAUTHORIZED','button','56PMJqtY','_uiPartsService','_apiKey$','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_handleConfigSave','_validateConfig','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','0.20.1','decorate','mcpConfig.connectionStatus.disconnected','COMMAND','MCP_UI_PLUGIN','API\x20密钥不能为空','mcpConfig.sessionIdDescription','subscribeConfigValue$','Disconnected','会话\x20ID\x20已被占用,请稍后再试','什么是\x20API\x20密钥?','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer_session_id:','点击连接\x20MCP','connectionStatus$','已连接','_registerComponent','Configuration\x20saved\x20successfully','What\x20is\x20API\x20Key?','MCP\x20重连中...','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','@univerjs-pro/mcp-ui','mergeMenu','_createConfigPanelComponent','606pBHEGj','MCP\x20Configuration','Enter\x20your\x20API\x20key','mcpConfig.configStep2','启用身份验证','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_initializeCommands','univer-bg-green-500','将以下配置添加到您的\x20MCP\x20客户端设置中:','连接失败','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20超出最大重试次数','univer-flex\x20univer-items-center\x20univer-gap-2','Configuration\x20Parameters:','univer-flex-1','next','univer-text-yellow-500','Saving...','mcpConfig.configStep3','配置保存成功','showConfigPanel','_initConfigSync','MCP:\x20会话\x20ID\x20已被占用','length','MCP\x20Connected','HEADER_MENU','warn','mcpConfig.connectionError.maxRetriesExceeded','Retrying...','未连接','univer-flex\x20univer-gap-3','MCPConfigPanel','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','errorMessage','mcpConfig.configStepTitle','noopener\x20noreferrer','Configuration\x20Steps:','_componentManager','网络连接错误,请检查您的网络连接','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.retrying','mcpConfig.connectionStatus.connecting','bottom','https://mcp.univer.ai/mcp/?univer_session_id=','packageName','univer-space-y-5','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','121892SCvAfk','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20authentication\x20for\x20secure\x20connections','onStarting','includes','CONNECTED','58115bEGrcM','_menuManagerService','_connectionController','univer-text-gray-400','732205DhVNvX','getItem','default','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','push','Save\x20Configuration','mcpServerUrl','univer-text-sm\x20univer-font-medium','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','add','show','\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','Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcp.apiKey','Success','_mcpCoreConfig$','univer-bg-red-500','constructor','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.connectionStatus.failed','span','stringify','symbol','mcpConfig.note2','_injector','_configService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20Client\x20Configuration','defineProperty','mcpStatus.disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.connectionStatus.connected','API\x20密钥无效,请检查密钥是否正确','mcpStatus.maxRetriesExceeded','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','apiKey','mcpConfig.apiKeyHint','off','_initStatusComponent','mcpConfig.authorizationDescription','_handleConfigure','__setCustomHeaders','mcpStatus.clickToConnect','_messageService','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','14087646MjmVPb','univer-text-xs\x20univer-text-gray-500','mcp-ui.command.openConfigPanel','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-red-500','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','最大重试次数','MCP:\x20Max\x20Retries\x20Exceeded','NONE','\x20-\x20','connectionError$','univer-size-2\x20univer-rounded-full','MAX_RETRIES_EXCEEDED','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_initializeMenus','MCP\x20客户端配置','保存配置','MCP\x20Unknown\x20Status','mcpConfig.title','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.configParameters','_loadStoredApiKey','_localeService','univer-bg-gray-500','278803weOgMY','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','重启您的\x20MCP\x20客户端以使配置生效','setConfig','univer-flex\x20univer-items-start\x20univer-gap-3','配置步骤:','sessionId$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','subscribe','MCP\x20已连接','registerCommand','univer-space-y-2','mcpStatus.networkError','close','_loading$','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.configSaved','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex\x20univer-items-center\x20univer-gap-3','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','SESSION_ID_OCCUPIED','Connected','showDeveloperTools','配置无效','API\x20key\x20is\x20required','error','forEach','univer-shrink-0\x20univer-text-red-500','mcpConfig.connectionError.networkError','_logService','toPrimitive','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer.ai','mcpConfig.apiKeyPlaceholder','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','mcpConfig.configInstructions','setItem','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20密钥','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Session\x20ID','get','MCP:\x20网络错误','配置更改将立即生效','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','重连中...','getConfig','FAILED','version','RETRYING','mcpConfig.configStep1','<API_KEY>','mcpConfig.description','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-flex\x20univer-flex-wrap\x20univer-gap-2','prototype','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpStatus.connecting','mcpConfig.apiApplyInfo.getStarted','univer-min-w-0\x20univer-flex-1','univer-text-sm\x20univer-text-gray-500','https://console.univer.plus','string','Click\x20to\x20connect\x20MCP','http','object','OTHERS','mcpConfig.validation.invalidApiKey','univer-font-medium','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','value','会话ID','isValid','Bearer\x20','enableAutoConnect','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','univer-flex\x20univer-items-start\x20univer-gap-2','disposeWithMe','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpStatus.clickToConfigure','MCP:\x20Network\x20Error','mcpConfig.connectionError.sessionOccupied','配置参数:','univer.plus','univer-size-4','MCP:\x20Unauthorized','Authorization:','mcpConfig.validation.invalidConfig','mcpConfig.connectionInfo','_dialogService','MCP:\x20Session\x20ID\x20Occupied','BUTTON','Error','univer-space-y-3','validateApiKey','Invalid\x20configuration','MCP\x20连接失败','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_config$','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Configuration\x20Notes:','_blank','mcpConfig.apiApplyInfo.title','DISCONNECTED','MCP\x20Connection\x20Failed','label','配置保存失败','NETWORK_ERROR','Univer\x20AI\x20控制台','Copy\x20the\x20JSON\x20configuration\x20below','univer-text-white','div','getCurrentConfig','_commandService','call','mcpConfig.validation.apiKeyTooShort','univer-text-blue-600','2394752gPfvAr','_initAutoConnect','API\x20Key','mcp-config-dialog','CONNECTING','_mcpConnectionController','trim','_localStorageService','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','请输入您的\x20API\x20密钥','3478347uSJIsX','text'];_0x4b1f=function(){return _0x5d79a6;};return _0x4b1f();}const _0x28ce8a=_0x5244;(function(_0x3f9b30,_0xee6bae){const _0x4c8448=_0x5244,_0x2b08fd=_0x3f9b30();while(!![]){try{const _0xe89643=parseInt(_0x4c8448(0x2ef))/0x1+parseInt(_0x4c8448(0x287))/0x2+-parseInt(_0x4c8448(0x291))/0x3+parseInt(_0x4c8448(0x2e5))/0x4+parseInt(_0x4c8448(0x2eb))/0x5*(parseInt(_0x4c8448(0x2b5))/0x6)+-parseInt(_0x4c8448(0x20d))/0x7*(-parseInt(_0x4c8448(0x296))/0x8)+-parseInt(_0x4c8448(0x1f3))/0x9;if(_0xe89643===_0xee6bae)break;else _0x2b08fd['push'](_0x2b08fd['shift']());}catch(_0x130388){_0x2b08fd['push'](_0x2b08fd['shift']());}}}(_0x4b1f,0xa7fa5));import{CommandType as _0x8810a8,DependentOn as _0x5a9818,Disposable as _0x3b8284,ICommandService as _0x17d690,IConfigService as _0x23bc82,ILocalStorageService as _0x5f22c6,ILogService as _0x3bb11f,Inject as _0x53c2f0,Injector as _0x61c00e,LocaleService as _0x34569a,Plugin as _0x1be01a,merge as _0x4ed231}from'@univerjs/core';import{MCPConnectionController as _0x722788,MCPConnectionError as _0x31c95a,MCPConnectionStatus as _0x5b38e1,MCP_PLUGIN_CONFIG_KEY as _0x2da9b3,UniverMCPPlugin as _0x11a395}from'@univerjs-pro/mcp';import{Button as _0xbd5d2c,Input as _0x5dc7f1,MessageType as _0x261752,Tooltip as _0x3d1bb2,clsx as _0xf6b5fa}from'@univerjs/design';import{BuiltInUIPart as _0x3600f0,ComponentManager as _0x45d10a,IDialogService as _0x2d156b,IMenuManagerService as _0x3652e0,IMessageService as _0x28ad13,IUIPartsService as _0x2871fb,MenuItemType as _0x1d06c6,RibbonStartGroup as _0x532d5f,connectInjector as _0x3381fc,useDependency as _0xaaf771,useObservable as _0x5b245a}from'@univerjs/ui';import{BehaviorSubject as _0x6bc32f}from'rxjs';import{CheckMarkIcon as _0x25a51b,CloseIcon as _0x2df2cc,HelpIcon as _0xfc3388,OffLineIcon as _0x8d9fde,OnLineIcon as _0x3c55cc}from'@univerjs/icons';import{useCallback as _0x1eb342,useState as _0x28277a}from'react';import{jsx as _0x1add3b,jsxs as _0x520df6}from'react/jsx-runtime';import{ISocketService as _0x2abfd5,WebSocketService as _0x16689d}from'@univerjs/network';function z(_0x1322f6){const _0x27e1e0=_0x5244;var _0x1c2f28,_0x365968;let {mcpCoreConfig:_0x1b8519,onSave:_0x9204b5,loading:_0xec9afb=!0x1,config:_0x29c0d2,connectionStatus$:_0x270808,connectionError$:_0x4e55f4,currentApiKey$:_0x263088,currentSessionId$:_0x542fa3}=_0x1322f6,_0x49c05f=_0xaaf771(_0x34569a),_0x3e4f54=_0x5b245a(_0x270808,_0x5b38e1[_0x27e1e0(0x279)]),_0x5466cb=_0x5b245a(_0x4e55f4,_0x31c95a['NONE']),_0x25dd20=_0x5b245a(_0x542fa3,''),[_0x46a1cb,_0x5ab4ae]=_0x28277a(_0x5b245a(_0x263088,'')||''),_0x110b13=_0x29c0d2[_0x27e1e0(0x227)]&&_0x1b8519[_0x27e1e0(0x2f5)]&&(_0x1b8519['mcpServerUrl'][_0x27e1e0(0x2e9)](_0x27e1e0(0x265))||_0x1b8519[_0x27e1e0(0x2f5)][_0x27e1e0(0x2e9)]('univer.ai')),_0x1a7ff4=(_0x1c2f28=_0x1b8519[_0x27e1e0(0x2f5)])==null?void 0x0:_0x1c2f28['includes']('univer.plus'),_0x4321b1=(_0x365968=_0x1b8519['mcpServerUrl'])==null?void 0x0:_0x365968[_0x27e1e0(0x2e9)](_0x27e1e0(0x231)),_0x3964fa=_0x1a7ff4?_0x27e1e0(0x24f):'https://console.univer.ai',_0x1ab8a6=_0x29c0d2[_0x27e1e0(0x227)]&&(_0x1a7ff4||_0x4321b1),[_0x50554e,_0x2beb72]=_0x28277a(!_0x46a1cb[_0x27e1e0(0x28d)]()),_0x34bdb4=(_0xe9b691,_0x51f177)=>{const _0x4841f7=_0x27e1e0;if(_0x51f177===_0x31c95a[_0x4841f7(0x294)])return _0x4841f7(0x2b1);switch(_0xe9b691){case _0x5b38e1[_0x4841f7(0x2ea)]:return _0x4841f7(0x20e);case _0x5b38e1['CONNECTING']:case _0x5b38e1[_0x4841f7(0x243)]:return _0x4841f7(0x260);case _0x5b38e1[_0x4841f7(0x241)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x514455=(_0x377daa,_0xf9de09)=>{const _0x4c5132=_0x27e1e0;if(_0xf9de09===_0x31c95a['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x377daa){case _0x5b38e1['CONNECTED']:return _0x4c5132(0x2bc);case _0x5b38e1[_0x4c5132(0x28b)]:case _0x5b38e1[_0x4c5132(0x243)]:return'univer-bg-blue-500';case _0x5b38e1[_0x4c5132(0x241)]:return _0x4c5132(0x301);default:return _0x4c5132(0x20c);}},_0x3da5a6=_0x4f2b24=>{const _0x5190d1=_0x27e1e0;switch(_0x4f2b24){case _0x5b38e1['CONNECTED']:return _0x49c05f['t'](_0x5190d1(0x1e5));case _0x5b38e1[_0x5190d1(0x28b)]:return _0x49c05f['t'](_0x5190d1(0x2df));case _0x5b38e1[_0x5190d1(0x241)]:return _0x49c05f['t'](_0x5190d1(0x304));case _0x5b38e1[_0x5190d1(0x243)]:return _0x49c05f['t']('mcpConfig.connectionStatus.retrying');default:return _0x49c05f['t'](_0x5190d1(0x29f));}},_0x143172=_0x10f9a4=>{const _0x2157eb=_0x27e1e0;switch(_0x10f9a4){case _0x31c95a[_0x2157eb(0x294)]:return _0x49c05f['t']('mcpConfig.connectionError.unauthorized');case _0x31c95a[_0x2157eb(0x225)]:return _0x49c05f['t'](_0x2157eb(0x263));case _0x31c95a['NETWORK_ERROR']:return _0x49c05f['t'](_0x2157eb(0x22d));case _0x31c95a[_0x2157eb(0x201)]:return _0x49c05f['t'](_0x2157eb(0x2d0));default:return'';}},_0x243933=_0x1eb342(()=>{const _0x236fbf=_0x27e1e0;_0x9204b5({..._0x1b8519,'apiKey':_0x46a1cb[_0x236fbf(0x28d)](),'enableAuth':!0x0});},[_0x1b8519,_0x46a1cb,!0x0,_0x9204b5]),_0x1f980d=_0x46a1cb[_0x27e1e0(0x28d)]()['length']>0x0;return _0x520df6(_0x27e1e0(0x281),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x1add3b(_0x27e1e0(0x281),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x222),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x280),'children':'⚙'})}),_0x1add3b(_0x27e1e0(0x281),{'children':_0x1add3b('p',{'className':_0x27e1e0(0x24e),'children':_0x49c05f['t'](_0x27e1e0(0x246))})})]})}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2f2),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0xf6b5fa(_0x27e1e0(0x23e),_0x34bdb4(_0x3e4f54,_0x5466cb)),'children':_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2c1),'children':[_0x1add3b('div',{'className':_0xf6b5fa(_0x27e1e0(0x200),_0x514455(_0x3e4f54,_0x5466cb))}),_0x1add3b('span',{'className':_0x27e1e0(0x2f6),'children':_0x3da5a6(_0x3e4f54)})]})}),_0x5466cb!==_0x31c95a['NONE']&&(_0x3e4f54===_0x5b38e1[_0x27e1e0(0x241)]||_0x5466cb===_0x31c95a[_0x27e1e0(0x294)])&&_0x1add3b(_0x27e1e0(0x281),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x520df6('div',{'className':_0x27e1e0(0x25e),'children':[_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x22c),'children':'⚠️'}),_0x1add3b('p',{'className':_0x27e1e0(0x214),'children':_0x143172(_0x5466cb)})]})})]}),_0x1add3b('div',{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x520df6('div',{'className':_0x27e1e0(0x2e3),'children':[_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x21a),'children':[_0x520df6(_0x27e1e0(0x27b),{'className':_0x27e1e0(0x1fa),'children':[_0x1add3b(_0x27e1e0(0x1da),{'children':'🔑'}),'\x20',_0x49c05f['t']('mcpConfig.apiKey'),_0x1add3b(_0x27e1e0(0x1da),{'className':'univer-text-red-500','children':'*'}),_0x110b13&&_0x1add3b('a',{'className':_0x27e1e0(0x25d),'title':_0x49c05f['t'](_0x27e1e0(0x278)),'role':_0x27e1e0(0x295),'onClick':()=>_0x2beb72(!0x0),'children':_0x1add3b(_0xfc3388,{})})]}),_0x1add3b(_0x5dc7f1,{'type':_0x27e1e0(0x292),'placeholder':_0x49c05f['t'](_0x27e1e0(0x232)),'value':_0x46a1cb,'disabled':_0xec9afb,'autoComplete':_0x27e1e0(0x1eb),'onChange':_0x5ab4ae}),_0x1add3b('p',{'className':_0x27e1e0(0x1f4),'children':_0x49c05f['t'](_0x27e1e0(0x1ea))})]}),_0x110b13&&_0x50554e&&_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2f7),'children':[_0x1add3b('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':_0x27e1e0(0x295),'onClick':()=>_0x2beb72(!0x1),'children':_0x1add3b(_0x2df2cc,{'className':_0x27e1e0(0x266)})}),_0x520df6(_0x27e1e0(0x281),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x293),'children':_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x286),'children':'🚀'})}),_0x520df6('div',{'className':_0x27e1e0(0x2c3),'children':[_0x1add3b('h4',{'className':_0x27e1e0(0x215),'children':_0x49c05f['t'](_0x27e1e0(0x278))}),_0x1add3b('p',{'className':_0x27e1e0(0x28f),'children':_0x49c05f['t']('mcpConfig.apiApplyInfo.description')}),_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x248),'children':_0x1ab8a6&&_0x520df6('a',{'className':_0x27e1e0(0x247),'href':_0x3964fa,'target':_0x27e1e0(0x277),'rel':_0x27e1e0(0x2d8),'children':[_0x1add3b(_0x27e1e0(0x1da),{'children':'🤖'}),_0x49c05f['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x2ee),'children':'↗'})]})}),_0x520df6('div',{'className':_0x27e1e0(0x224),'children':['✨','\x20',_0x49c05f['t'](_0x27e1e0(0x24c))]})]})]})]}),_0x29c0d2['showDeveloperTools']&&_0x520df6('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x520df6('h4',{'className':_0x27e1e0(0x1f6),'children':[_0x1add3b(_0x27e1e0(0x1da),{'children':'🔗'}),'\x20',_0x49c05f['t'](_0x27e1e0(0x26a))]}),_0x520df6(_0x27e1e0(0x281),{'className':'univer-space-y-4','children':[_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x26f),'children':[_0x1add3b('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x49c05f['t'](_0x27e1e0(0x235))}),_0x520df6(_0x27e1e0(0x281),{'className':'univer-space-y-2','children':[_0x1add3b('div',{'className':_0x27e1e0(0x2e4),'children':_0x49c05f['t'](_0x27e1e0(0x2d7))}),_0x520df6('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2c1),'children':[_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x2d5),'children':'1'}),_0x49c05f['t'](_0x27e1e0(0x244))]}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2c1),'children':[_0x1add3b(_0x27e1e0(0x1da),{'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':'2'}),_0x49c05f['t'](_0x27e1e0(0x2b8))]}),_0x520df6(_0x27e1e0(0x281),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x2d5),'children':'3'}),_0x49c05f['t'](_0x27e1e0(0x2c7))]})]})]})]}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x21a),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x27e1e0(0x2b6)}),_0x1add3b('div',{'className':_0x27e1e0(0x2ba),'children':_0x1add3b('pre',{'className':_0x27e1e0(0x2f8),'children':JSON[_0x27e1e0(0x1db)]({'mcpServers':{'univer':{'url':_0x27e1e0(0x2e1)+(_0x25dd20||'<SESSION_ID>'),'type':_0x27e1e0(0x252),'headers':{'Authorization':'Bearer\x20'+(_0x46a1cb||_0x27e1e0(0x245))}}}},null,0x2)})})]}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x26f),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2e4),'children':_0x49c05f['t'](_0x27e1e0(0x209))}),_0x520df6('div',{'className':_0x27e1e0(0x21a),'children':[_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x211),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x1e8)}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x24d),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x1e0),'children':_0x27e1e0(0x2a9)}),_0x1add3b('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x49c05f['t'](_0x27e1e0(0x2a3))})]})]}),_0x520df6('div',{'className':_0x27e1e0(0x211),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x1e8)}),_0x520df6(_0x27e1e0(0x281),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x1add3b('div',{'className':_0x27e1e0(0x1e0),'children':_0x27e1e0(0x268)}),_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x1f4),'children':_0x49c05f['t'](_0x27e1e0(0x1ed))})]})]})]})]})]})]}),_0x1add3b(_0xbd5d2c,{'onClick':_0x243933,'disabled':!_0x1f980d||_0xec9afb,'className':_0x27e1e0(0x230),'children':_0xec9afb?_0x520df6(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x2c1),'children':[_0x1add3b(_0x27e1e0(0x1da),{'children':'⟲'}),_0x49c05f['t']('mcpConfig.saving')]}):_0x520df6('span',{'className':_0x27e1e0(0x2c1),'children':[_0x1add3b(_0x25a51b,{}),_0x49c05f['t']('mcpConfig.save')]})}),_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x24a),'children':_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2d3),'children':[_0x1add3b('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2a8),'children':[_0x1add3b('div',{'className':_0x27e1e0(0x256),'children':_0x27e1e0(0x276)}),_0x520df6(_0x27e1e0(0x281),{'children':['•',_0x49c05f['t']('mcpConfig.note1')]}),_0x520df6(_0x27e1e0(0x281),{'children':['•',_0x49c05f['t'](_0x27e1e0(0x1dd))]})]})]})})]})})]});}const B='mcp-ui.config';Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0xa6699a){'@babel/helpers - typeof';const _0x179020=_0x5244;return H=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x179020(0x1dc)?function(_0x38736f){return typeof _0x38736f;}:function(_0x2d5027){const _0x5b9fad=_0x179020;return _0x2d5027&&typeof Symbol=='function'&&_0x2d5027[_0x5b9fad(0x302)]===Symbol&&_0x2d5027!==Symbol[_0x5b9fad(0x249)]?_0x5b9fad(0x1dc):typeof _0x2d5027;},H(_0xa6699a);}function oe(_0x3d6f6f,_0x30e8dd){const _0x2bd82d=_0x5244;if(H(_0x3d6f6f)!='object'||!_0x3d6f6f)return _0x3d6f6f;var _0x222ab7=_0x3d6f6f[Symbol[_0x2bd82d(0x22f)]];if(_0x222ab7!==void 0x0){var _0x12c91f=_0x222ab7[_0x2bd82d(0x284)](_0x3d6f6f,_0x30e8dd||_0x2bd82d(0x2f1));if(H(_0x12c91f)!=_0x2bd82d(0x253))return _0x12c91f;throw TypeError(_0x2bd82d(0x1f8));}return(_0x30e8dd===_0x2bd82d(0x250)?String:Number)(_0x3d6f6f);}function se(_0x4aa9d9){const _0x536b3c=_0x5244;var _0x1218cd=oe(_0x4aa9d9,_0x536b3c(0x250));return H(_0x1218cd)=='symbol'?_0x1218cd:_0x1218cd+'';}function U(_0x49f9c8,_0x5e989a,_0x35b096){const _0xc567fc=_0x5244;return(_0x5e989a=se(_0x5e989a))in _0x49f9c8?Object[_0xc567fc(0x1e2)](_0x49f9c8,_0x5e989a,{'value':_0x35b096,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x49f9c8[_0x5e989a]=_0x35b096,_0x49f9c8;}function W(_0x20d8b9,_0x51ee06){return function(_0x360189,_0x5f3cac){_0x51ee06(_0x360189,_0x5f3cac,_0x20d8b9);};}function G(_0x3835e,_0x5d50bc,_0x392679,_0x43dffc){const _0xfc10fa=_0x5244;var _0xcef57a=arguments['length'],_0x19579c=_0xcef57a<0x3?_0x5d50bc:_0x43dffc===null?_0x43dffc=Object['getOwnPropertyDescriptor'](_0x5d50bc,_0x392679):_0x43dffc,_0x3ae89e;if(typeof Reflect=='object'&&typeof Reflect[_0xfc10fa(0x29e)]=='function')_0x19579c=Reflect[_0xfc10fa(0x29e)](_0x3835e,_0x5d50bc,_0x392679,_0x43dffc);else{for(var _0x381962=_0x3835e[_0xfc10fa(0x2cc)]-0x1;_0x381962>=0x0;_0x381962--)(_0x3ae89e=_0x3835e[_0x381962])&&(_0x19579c=(_0xcef57a<0x3?_0x3ae89e(_0x19579c):_0xcef57a>0x3?_0x3ae89e(_0x5d50bc,_0x392679,_0x19579c):_0x3ae89e(_0x5d50bc,_0x392679))||_0x19579c);}return _0xcef57a>0x3&&_0x19579c&&Object['defineProperty'](_0x5d50bc,_0x392679,_0x19579c),_0x19579c;}const K=_0x28ce8a(0x2fe),q=_0x28ce8a(0x28a);let J=class extends _0x3b8284{constructor(_0x5bdc5c,_0x856972,_0x531fea,_0x32f0d5,_0x35280c,_0x487ae6,_0x395338,_0x588355,_0x51680f,_0x436620){const _0x48e56e=_0x28ce8a;super(),this[_0x48e56e(0x1de)]=_0x5bdc5c,this['_uiPartsService']=_0x856972,this['_configService']=_0x531fea,this[_0x48e56e(0x28e)]=_0x32f0d5,this['_dialogService']=_0x35280c,this[_0x48e56e(0x1f1)]=_0x487ae6,this[_0x48e56e(0x2da)]=_0x395338,this[_0x48e56e(0x20b)]=_0x588355,this['_logService']=_0x51680f,this[_0x48e56e(0x28c)]=_0x436620,U(this,_0x48e56e(0x21d),new _0x6bc32f(!0x1)),U(this,_0x48e56e(0x300),new _0x6bc32f({})),U(this,_0x48e56e(0x274),new _0x6bc32f({})),U(this,_0x48e56e(0x298),new _0x6bc32f('')),U(this,_0x48e56e(0x29a),async _0x20fec8=>{const _0x1885aa=_0x48e56e;this[_0x1885aa(0x21d)][_0x1885aa(0x2c4)](!0x0);try{var _0x1b4a6d,_0x149440;let _0x4f862a=await this['_validateConfig'](_0x20fec8);if(!_0x4f862a[_0x1885aa(0x25a)]){this[_0x1885aa(0x1f1)]['show']({'type':_0x261752[_0x1885aa(0x26e)],'content':_0x4f862a[_0x1885aa(0x2d6)]||this[_0x1885aa(0x20b)]['t'](_0x1885aa(0x269))});return;}_0x20fec8[_0x1885aa(0x1e9)]?await this[_0x1885aa(0x28e)][_0x1885aa(0x236)](K,_0x20fec8['apiKey'][_0x1885aa(0x28d)]()):await this[_0x1885aa(0x28e)]['removeItem'](K),this[_0x1885aa(0x298)][_0x1885aa(0x2c4)](((_0x1b4a6d=_0x20fec8[_0x1885aa(0x1e9)])==null?void 0x0:_0x1b4a6d[_0x1885aa(0x28d)]())||''),this[_0x1885aa(0x28c)][_0x1885aa(0x1ef)]({'Authorization':_0x1885aa(0x25b)+((_0x149440=_0x20fec8[_0x1885aa(0x1e9)])==null?void 0x0:_0x149440[_0x1885aa(0x28d)]())}),this[_0x1885aa(0x1f1)][_0x1885aa(0x2fa)]({'type':_0x261752[_0x1885aa(0x2ff)],'content':this[_0x1885aa(0x20b)]['t'](_0x1885aa(0x21f))}),setTimeout(()=>{const _0x1b9ace=_0x1885aa;this['_dialogService'][_0x1b9ace(0x21c)](q);},0x320);}catch(_0x7891a4){this[_0x1885aa(0x22e)][_0x1885aa(0x22a)](_0x1885aa(0x1f9),_0x7891a4),this[_0x1885aa(0x1f1)]['show']({'type':_0x261752[_0x1885aa(0x26e)],'content':this[_0x1885aa(0x20b)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x1885aa(0x2c4)](!0x1);}}),this[_0x48e56e(0x2ca)](),this[_0x48e56e(0x20a)](),this[_0x48e56e(0x2ad)]();}[_0x28ce8a(0x2c9)](){const _0x3885ef=_0x28ce8a;let _0x40bcbb=this[_0x3885ef(0x1df)][_0x3885ef(0x240)](B);_0x40bcbb!=null&&_0x40bcbb[_0x3885ef(0x227)]&&this['_dialogService']['open']({'id':q,'title':{'title':this[_0x3885ef(0x20b)]['t'](_0x3885ef(0x207))},'children':{'label':_0x3885ef(0x2d4)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x517658=_0x3885ef;this[_0x517658(0x26b)][_0x517658(0x21c)](q);}});}[_0x28ce8a(0x282)](){const _0x1c8ab2=_0x28ce8a;return this['_mcpCoreConfig$'][_0x1c8ab2(0x258)];}[_0x28ce8a(0x2ad)](){const _0x4f2dcf=_0x28ce8a;this[_0x4f2dcf(0x25f)](this[_0x4f2dcf(0x2da)]['register']('MCPConfigPanel',this[_0x4f2dcf(0x2b4)]()));}[_0x28ce8a(0x2b4)](){return _0x3381fc(()=>{const _0x1a9f96=_0x5244;var _0x954773,_0x21feff,_0x27111c;return _0x1add3b(z,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x1a9f96(0x300)]['value'],'currentApiKey$':this[_0x1a9f96(0x298)],'onSave':this['_handleConfigSave'],'loading':this[_0x1a9f96(0x21d)][_0x1a9f96(0x258)],'connectionStatus$':(_0x954773=this[_0x1a9f96(0x28c)])==null?void 0x0:_0x954773['connectionStatus$'],'connectionError$':(_0x21feff=this[_0x1a9f96(0x28c)])==null?void 0x0:_0x21feff[_0x1a9f96(0x1ff)],'currentSessionId$':(_0x27111c=this[_0x1a9f96(0x28c)])==null?void 0x0:_0x27111c[_0x1a9f96(0x213)]});},this['_injector']);}[_0x28ce8a(0x2ca)](){const _0x5e4093=_0x28ce8a;this[_0x5e4093(0x25f)](this[_0x5e4093(0x1df)][_0x5e4093(0x2a4)](_0x2da9b3)[_0x5e4093(0x217)](_0x4f867c=>{const _0x105670=_0x5e4093;this[_0x105670(0x300)][_0x105670(0x2c4)](_0x4f867c||{});}));let _0x3ad8b3=this[_0x5e4093(0x1df)][_0x5e4093(0x240)](_0x2da9b3);this['_mcpCoreConfig$'][_0x5e4093(0x2c4)](_0x3ad8b3||{}),this[_0x5e4093(0x25f)](this[_0x5e4093(0x1df)][_0x5e4093(0x2a4)](B)[_0x5e4093(0x217)](_0x2aa100=>{const _0x17640f=_0x5e4093;this[_0x17640f(0x274)][_0x17640f(0x2c4)](_0x2aa100||{});}));let _0x3a3239=this[_0x5e4093(0x1df)][_0x5e4093(0x240)](B);this[_0x5e4093(0x274)]['next'](_0x3a3239||{});}async['_loadStoredApiKey'](){const _0x42100b=_0x28ce8a;let _0x33744a=this[_0x42100b(0x1df)]['getConfig'](B);if(!(_0x33744a!=null&&_0x33744a[_0x42100b(0x227)]))return;let _0x3bdc21=await this[_0x42100b(0x28e)][_0x42100b(0x2f0)](K);_0x3bdc21&&(this['_mcpConnectionController'][_0x42100b(0x1ef)]({'Authorization':_0x42100b(0x25b)+_0x3bdc21}),this[_0x42100b(0x298)][_0x42100b(0x2c4)](_0x3bdc21));}async[_0x28ce8a(0x29b)](_0x274e2a){const _0x29558a=_0x28ce8a;if(!_0x274e2a[_0x29558a(0x1e9)]||_0x274e2a[_0x29558a(0x1e9)][_0x29558a(0x28d)]()[_0x29558a(0x2cc)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x29558a(0x20b)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x274e2a[_0x29558a(0x1e9)]['trim']()[_0x29558a(0x2cc)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x29558a(0x20b)]['t'](_0x29558a(0x285))};try{let _0xf29511=await this['_injector']['get'](_0x722788)[_0x29558a(0x270)](_0x274e2a[_0x29558a(0x1e9)][_0x29558a(0x28d)]());return _0xf29511[_0x29558a(0x25a)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xf29511['error']||this[_0x29558a(0x20b)]['t'](_0x29558a(0x255))};}catch(_0x28b0b9){return console[_0x29558a(0x2cf)](_0x29558a(0x202),_0x28b0b9),{'isValid':!0x0};}}};J=G([W(0x0,_0x53c2f0(_0x61c00e)),W(0x1,_0x2871fb),W(0x2,_0x23bc82),W(0x3,_0x5f22c6),W(0x4,_0x2d156b),W(0x5,_0x28ad13),W(0x6,_0x53c2f0(_0x45d10a)),W(0x7,_0x53c2f0(_0x34569a)),W(0x8,_0x3bb11f),W(0x9,_0x53c2f0(_0x722788))],J);const Y={'id':_0x28ce8a(0x1f5),'type':_0x8810a8[_0x28ce8a(0x2a0)],'handler':async(_0x283b03,_0x58443b)=>(_0x283b03[_0x28ce8a(0x23b)](J)[_0x28ce8a(0x2c9)](),!0x0)};function X(_0x37f489,_0x15d73c){const _0x5f325c=_0x28ce8a;switch(_0x37f489){case _0x5b38e1[_0x5f325c(0x279)]:return _0x5f325c(0x1e3);case _0x5b38e1[_0x5f325c(0x28b)]:return _0x5f325c(0x24b);case _0x5b38e1['CONNECTED']:return'mcpStatus.connected';case _0x5b38e1[_0x5f325c(0x241)]:switch(_0x15d73c){case _0x31c95a[_0x5f325c(0x294)]:return'mcpStatus.unauthorized';case _0x31c95a['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case _0x31c95a[_0x5f325c(0x27d)]:return _0x5f325c(0x21b);case _0x31c95a[_0x5f325c(0x201)]:return _0x5f325c(0x1e7);default:return'mcpStatus.failed';}case _0x5b38e1[_0x5f325c(0x243)]:return _0x5f325c(0x2de);default:return'mcpStatus.unknown';}}function ce(_0x54b1af,_0x139d5f,_0x7dbe4c,_0xa97ba5=!0x0){const _0x37fcbb=_0x28ce8a;let _0x13702e=X(_0x54b1af,_0x139d5f),_0x97d5=_0x7dbe4c['t'](_0x13702e);return _0xa97ba5?_0x54b1af===_0x5b38e1[_0x37fcbb(0x279)]&&_0x139d5f===_0x31c95a[_0x37fcbb(0x294)]?_0x97d5+_0x37fcbb(0x1fe)+_0x7dbe4c['t'](_0x37fcbb(0x261)):_0x54b1af===_0x5b38e1[_0x37fcbb(0x2ea)]?''+_0x97d5:_0x54b1af===_0x5b38e1[_0x37fcbb(0x279)]||_0x54b1af===_0x5b38e1[_0x37fcbb(0x241)]?_0x97d5+_0x37fcbb(0x1fe)+_0x7dbe4c['t'](_0x37fcbb(0x1f0)):_0x97d5:_0x97d5;}function le(_0x2582b9){const _0x275c80=_0x28ce8a;switch(_0x2582b9){case _0x5b38e1[_0x275c80(0x2ea)]:return'univer-text-green-500';case _0x5b38e1[_0x275c80(0x28b)]:case _0x5b38e1[_0x275c80(0x243)]:return _0x275c80(0x2c5);case _0x5b38e1['FAILED']:case _0x5b38e1[_0x275c80(0x279)]:return _0x275c80(0x1f7);default:return'univer-text-gray-500';}}function ue(_0x3762dc){const _0x59741f=_0x28ce8a;let {status$:_0x2b776d,error$:_0x14268d,onConfigure:_0x4fda2d,showClickable:_0x115c49=!0x0}=_0x3762dc,_0x3b73de=_0x5b245a(_0x2b776d,_0x5b38e1[_0x59741f(0x279)]),_0x480951=_0x5b245a(_0x14268d,_0x31c95a[_0x59741f(0x1fd)]),_0x679e77=_0xaaf771(_0x34569a),_0xe80bb6=_0x3b73de===_0x5b38e1[_0x59741f(0x2ea)];_0x3b73de===_0x5b38e1['CONNECTING']||_0x5b38e1[_0x59741f(0x243)];let _0x19554e=_0x679e77['t'](X(_0x3b73de,_0x480951)),_0x495dd2=ce(_0x3b73de,_0x480951,_0x679e77,_0x115c49),_0x5dbd16=le(_0x3b73de),_0xdf70ac=_0x1add3b(_0xe80bb6?_0x3c55cc:_0x8d9fde,{}),_0x321a14=_0x1eb342(()=>{_0x115c49&&_0x4fda2d&&_0x4fda2d();},[_0x115c49,_0x4fda2d]);function _0x125415(){const _0x452b5f=_0x59741f;return _0x520df6(_0x452b5f(0x281),{'className':_0xf6b5fa('univer-flex\x20univer-items-center',_0x115c49&&_0x4fda2d&&_0x452b5f(0x2fb)),'role':_0x452b5f(0x295),'onClick':_0x115c49&&_0x4fda2d?_0x321a14:void 0x0,'children':[_0x1add3b('div',{'className':_0xf6b5fa(_0x452b5f(0x221),_0x5dbd16),'children':_0xdf70ac}),_0x1add3b('div',{'className':_0x452b5f(0x220),'children':_0x19554e})]});}return _0x1add3b(_0x3d1bb2,{'title':_0x495dd2,'placement':_0x59741f(0x2e0),'children':_0x125415()});}let Z=class extends _0x3b8284{constructor(_0x543c9f,_0x2f9d81,_0xf0268e,_0x16a194){const _0x43081a=_0x28ce8a;super(),this[_0x43081a(0x1de)]=_0x543c9f,this[_0x43081a(0x2ed)]=_0x2f9d81,this[_0x43081a(0x297)]=_0xf0268e,this['_configService']=_0x16a194,this['_initAutoConnect'](),this[_0x43081a(0x1ec)]();}[_0x28ce8a(0x288)](){const _0x4627c7=_0x28ce8a;let _0x2ed4d8=this[_0x4627c7(0x1df)][_0x4627c7(0x240)](B);_0x2ed4d8!=null&&_0x2ed4d8[_0x4627c7(0x227)]&&(this['_connectionController'][_0x4627c7(0x25c)]=!0x1);}['_initStatusComponent'](){const _0x12ee06=_0x28ce8a;let _0x232327=this['_configService'][_0x12ee06(0x240)](B);(_0x232327==null?void 0x0:_0x232327['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0x12ee06(0x297)]['registerComponent'](_0x3600f0[_0x12ee06(0x2ce)],()=>{const _0x10fe15=_0x12ee06;var _0x5539bf;return _0x3381fc(de({'status$':this[_0x10fe15(0x2ed)][_0x10fe15(0x2ab)],'error$':this[_0x10fe15(0x2ed)][_0x10fe15(0x1ff)],'onConfigure':()=>this[_0x10fe15(0x1ee)](),'showClickable':(_0x5539bf=_0x232327==null?void 0x0:_0x232327[_0x10fe15(0x227)])==null?!0x1:_0x5539bf}),this[_0x10fe15(0x1de)]);}));}[_0x28ce8a(0x1ee)](){const _0x36e59c=_0x28ce8a;this[_0x36e59c(0x1de)][_0x36e59c(0x23b)](J)['showConfigPanel']();}};Z=G([W(0x0,_0x53c2f0(_0x61c00e)),W(0x1,_0x53c2f0(_0x722788)),W(0x2,_0x2871fb),W(0x3,_0x23bc82)],Z);function de(_0x37484c){let {status$:_0x310cda,error$:_0x2e3117,onConfigure:_0x3d0b39,showClickable:_0x580afc}=_0x37484c;return function(){return _0x1add3b(ue,{'status$':_0x310cda,'error$':_0x2e3117,'onConfigure':_0x3d0b39,'showClickable':_0x580afc});};}function fe(_0x56e4eb){const _0x49f778=_0x28ce8a;return{'id':Y['id'],'type':_0x1d06c6[_0x49f778(0x26d)],'icon':'MenuIcon','title':_0x49f778(0x207),'tooltip':_0x49f778(0x207)};}const pe={[_0x532d5f[_0x28ce8a(0x254)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x3b8284{constructor(_0x3e88bb,_0x3c7147){const _0x374214=_0x28ce8a;super(),this['_commandService']=_0x3e88bb,this[_0x374214(0x2ec)]=_0x3c7147,this[_0x374214(0x2bb)](),this[_0x374214(0x203)]();}['_initializeCommands'](){const _0xf5b13b=_0x28ce8a;[Y][_0xf5b13b(0x22b)](_0x1c4cf5=>{const _0x5a3640=_0xf5b13b;this[_0x5a3640(0x25f)](this[_0x5a3640(0x283)][_0x5a3640(0x219)](_0x1c4cf5));});}[_0x28ce8a(0x203)](){const _0x170630=_0x28ce8a;this[_0x170630(0x2ec)][_0x170630(0x2b3)](pe);}};Q=G([W(0x0,_0x17d690),W(0x1,_0x3652e0)],Q);const me={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x28ce8a(0x2cd),'failed':_0x28ce8a(0x27a),'retrying':'MCP\x20Retrying...','unknown':_0x28ce8a(0x206),'unauthorized':_0x28ce8a(0x267),'sessionOccupied':_0x28ce8a(0x26c),'networkError':_0x28ce8a(0x262),'maxRetriesExceeded':_0x28ce8a(0x1fc),'clickToConnect':_0x28ce8a(0x251),'clickToConfigure':_0x28ce8a(0x234)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x28ce8a(0x237),'apiKey':_0x28ce8a(0x289),'apiKeyPlaceholder':_0x28ce8a(0x2b7),'apiKeyHint':_0x28ce8a(0x273),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x28ce8a(0x2e7),'connectionInfo':_0x28ce8a(0x1e1),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x28ce8a(0x29c),'configStepTitle':_0x28ce8a(0x2d9),'configStep1':_0x28ce8a(0x27f),'configStep2':_0x28ce8a(0x299),'configStep3':_0x28ce8a(0x223),'sessionId':_0x28ce8a(0x23a),'sessionIdDescription':_0x28ce8a(0x233),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x28ce8a(0x2c2),'maxRetries':'Max\x20Retries','save':_0x28ce8a(0x2f4),'saving':_0x28ce8a(0x2c6),'note1':_0x28ce8a(0x2fd),'note2':_0x28ce8a(0x257),'configSaved':_0x28ce8a(0x2ae),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x28ce8a(0x2af),'description':_0x28ce8a(0x2e6),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x28ce8a(0x1e4)},'validation':{'apiKeyRequired':_0x28ce8a(0x229),'apiKeyTooShort':_0x28ce8a(0x2dd),'invalidConfig':_0x28ce8a(0x271),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x28ce8a(0x2a5),'connecting':'Connecting...','connected':_0x28ce8a(0x226),'failed':_0x28ce8a(0x2fc),'retrying':_0x28ce8a(0x2d1)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x28ce8a(0x1f2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x28ce8a(0x21e)}}},he={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x28ce8a(0x218),'failed':_0x28ce8a(0x272),'retrying':_0x28ce8a(0x2b0),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x28ce8a(0x2cb),'networkError':_0x28ce8a(0x23c),'maxRetriesExceeded':_0x28ce8a(0x2c0),'clickToConnect':_0x28ce8a(0x2aa),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':_0x28ce8a(0x239),'apiKey':_0x28ce8a(0x238),'apiKeyPlaceholder':_0x28ce8a(0x290),'apiKeyHint':_0x28ce8a(0x2dc),'enableAuth':_0x28ce8a(0x2b9),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x28ce8a(0x204),'mcpClientConfig':_0x28ce8a(0x204),'configInstructions':_0x28ce8a(0x2bd),'configStepTitle':_0x28ce8a(0x212),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x28ce8a(0x20f),'sessionId':_0x28ce8a(0x259),'sessionIdDescription':_0x28ce8a(0x275),'authorizationDescription':_0x28ce8a(0x2bf),'configParameters':_0x28ce8a(0x264),'maxRetries':_0x28ce8a(0x1fb),'save':_0x28ce8a(0x205),'saving':'保存中...','note1':_0x28ce8a(0x23d),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x28ce8a(0x2c8),'configError':_0x28ce8a(0x27c),'apiApplyInfo':{'title':_0x28ce8a(0x2a7),'description':_0x28ce8a(0x216),'univerAiLabel':_0x28ce8a(0x27e),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x28ce8a(0x2a2),'apiKeyTooShort':_0x28ce8a(0x208),'invalidConfig':_0x28ce8a(0x228),'invalidApiKey':_0x28ce8a(0x1e6)},'connectionStatus':{'disconnected':_0x28ce8a(0x2d2),'connecting':'连接中...','connected':_0x28ce8a(0x2ac),'failed':_0x28ce8a(0x2be),'retrying':_0x28ce8a(0x23f)},'connectionError':{'unauthorized':_0x28ce8a(0x303),'sessionOccupied':_0x28ce8a(0x2a6),'networkError':_0x28ce8a(0x2db),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var ge=_0x28ce8a(0x2b2),_e=_0x28ce8a(0x29d);let $=class extends _0x1be01a{constructor(_0x28b939=V,_0x28c4e5,_0x50cf58,_0x552d05,_0x3abe93,_0x1e5d9a){const _0x321338=_0x28ce8a;super(),this['_config']=_0x28b939,this[_0x321338(0x1de)]=_0x28c4e5,this[_0x321338(0x1df)]=_0x50cf58,this[_0x321338(0x297)]=_0x552d05,this[_0x321338(0x28e)]=_0x3abe93,this[_0x321338(0x20b)]=_0x1e5d9a;let {..._0x4d4537}=_0x4ed231({},V,this['_config']);this[_0x321338(0x1df)][_0x321338(0x210)](B,_0x4d4537);}async[_0x28ce8a(0x2e8)](){const _0x1f28c7=_0x28ce8a;let _0x4c24e6=[[Z],[J],[Q]];this[_0x1f28c7(0x1de)]['has'](_0x2abfd5)||_0x4c24e6[_0x1f28c7(0x2f3)]([_0x2abfd5,{'useClass':_0x16689d}]),_0x4c24e6[_0x1f28c7(0x22b)](_0x2e5279=>this[_0x1f28c7(0x1de)][_0x1f28c7(0x2f9)](_0x2e5279)),this[_0x1f28c7(0x1de)][_0x1f28c7(0x23b)](Z),this[_0x1f28c7(0x1de)][_0x1f28c7(0x23b)](J),this[_0x1f28c7(0x1de)]['get'](Q);}};U($,'pluginName',_0x28ce8a(0x2a1)),U($,_0x28ce8a(0x2e2),ge),U($,_0x28ce8a(0x242),_e),$=G([_0x5a9818(_0x11a395),W(0x1,_0x53c2f0(_0x61c00e)),W(0x2,_0x23bc82),W(0x3,_0x2871fb),W(0x4,_0x5f22c6),W(0x5,_0x53c2f0(_0x34569a))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
|
|
1
|
+
const _0x435cce=_0x1acc;(function(_0x54e967,_0x2af489){const _0x285859=_0x1acc,_0x16225f=_0x54e967();while(!![]){try{const _0x277220=parseInt(_0x285859(0x162))/0x1*(parseInt(_0x285859(0x1af))/0x2)+parseInt(_0x285859(0x23c))/0x3*(-parseInt(_0x285859(0x1b8))/0x4)+-parseInt(_0x285859(0x1dc))/0x5*(parseInt(_0x285859(0x166))/0x6)+-parseInt(_0x285859(0x183))/0x7*(-parseInt(_0x285859(0x15b))/0x8)+parseInt(_0x285859(0x201))/0x9+parseInt(_0x285859(0x233))/0xa*(-parseInt(_0x285859(0x1b3))/0xb)+parseInt(_0x285859(0x10f))/0xc;if(_0x277220===_0x2af489)break;else _0x16225f['push'](_0x16225f['shift']());}catch(_0x137b4d){_0x16225f['push'](_0x16225f['shift']());}}}(_0x1a70,0x1a947));import{CommandType,DependentOn,Disposable,ICommandService,IConfigService,ILocalStorageService,ILogService,Inject,Injector,LocaleService,Plugin,merge}from'@univerjs/core';import{MCPConnectionController,MCPConnectionError,MCPConnectionStatus,MCP_PLUGIN_CONFIG_KEY,UniverMCPPlugin}from'@univerjs-pro/mcp';import{Button,Input,MessageType,Tooltip,clsx}from'@univerjs/design';import{BuiltInUIPart,ComponentManager,IDialogService,IMenuManagerService,IMessageService,IUIPartsService,MenuItemType,RibbonStartGroup,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{BehaviorSubject}from'rxjs';import{CheckMarkIcon,CloseIcon,HelpIcon,OffLineIcon,OnLineIcon}from'@univerjs/icons';import{useCallback,useState}from'react';import{jsx,jsxs}from'react/jsx-runtime';import{ISocketService,WebSocketService}from'@univerjs/network';function MCPConfigPanel(_0x1f3e90){const _0x1d2a4f=_0x1acc;var _0x27f98c,_0x3b1b7b;const {mcpCoreConfig:_0x2718d7,onSave:_0x26ce58,loading:loading=![],config:_0x3e0a61,connectionStatus$:_0x5727b3,connectionError$:_0x413554,currentApiKey$:_0x294172,currentSessionId$:_0x592d07}=_0x1f3e90,_0x444ac6=useDependency(LocaleService),_0x5c640d=useObservable(_0x5727b3,MCPConnectionStatus[_0x1d2a4f(0x23a)]),_0x2f5d27=useObservable(_0x413554,MCPConnectionError[_0x1d2a4f(0x151)]),_0x167b03=useObservable(_0x592d07,''),[_0x1c9c3b,_0x320193]=useState(useObservable(_0x294172,'')||''),_0x5717c8=!![],_0x48f7f2=_0x3e0a61[_0x1d2a4f(0x193)]&&_0x2718d7[_0x1d2a4f(0x216)]&&(_0x2718d7[_0x1d2a4f(0x216)]['includes'](_0x1d2a4f(0x1b0))||_0x2718d7[_0x1d2a4f(0x216)][_0x1d2a4f(0x1fa)]('univer.ai')),_0x25db2e=(_0x27f98c=_0x2718d7[_0x1d2a4f(0x216)])===null||_0x27f98c===void 0x0?void 0x0:_0x27f98c[_0x1d2a4f(0x1fa)]('univer.plus'),_0x11d693=(_0x3b1b7b=_0x2718d7[_0x1d2a4f(0x216)])===null||_0x3b1b7b===void 0x0?void 0x0:_0x3b1b7b[_0x1d2a4f(0x1fa)](_0x1d2a4f(0x114)),_0x27137e=_0x25db2e?_0x1d2a4f(0x130):_0x1d2a4f(0x238),_0xb9674a=_0x3e0a61[_0x1d2a4f(0x193)]&&(_0x25db2e||_0x11d693),[_0x5f598b,_0x126067]=useState(!_0x1c9c3b[_0x1d2a4f(0x236)]()),_0xe43bb8=(_0x4578e5,_0x156a08)=>{const _0x4b5166=_0x1d2a4f;if(_0x156a08===MCPConnectionError['UNAUTHORIZED'])return _0x4b5166(0x1ce);switch(_0x4578e5){case MCPConnectionStatus[_0x4b5166(0x19e)]:return _0x4b5166(0x239);case MCPConnectionStatus[_0x4b5166(0x206)]:case MCPConnectionStatus[_0x4b5166(0x1d3)]:return _0x4b5166(0x137);case MCPConnectionStatus[_0x4b5166(0x1e5)]:return _0x4b5166(0x1ce);default:return _0x4b5166(0x23f);}},_0x384a9d=(_0x1944bb,_0x3906be)=>{const _0x467eae=_0x1d2a4f;if(_0x3906be===MCPConnectionError['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x1944bb){case MCPConnectionStatus[_0x467eae(0x19e)]:return _0x467eae(0x161);case MCPConnectionStatus[_0x467eae(0x206)]:case MCPConnectionStatus[_0x467eae(0x1d3)]:return _0x467eae(0x154);case MCPConnectionStatus['FAILED']:return _0x467eae(0x210);default:return _0x467eae(0x219);}},_0xac4fc3=_0x3abce5=>{const _0x1e3917=_0x1d2a4f;switch(_0x3abce5){case MCPConnectionStatus[_0x1e3917(0x19e)]:return _0x444ac6['t']('mcpConfig.connectionStatus.connected');case MCPConnectionStatus[_0x1e3917(0x206)]:return _0x444ac6['t'](_0x1e3917(0x1db));case MCPConnectionStatus[_0x1e3917(0x1e5)]:return _0x444ac6['t'](_0x1e3917(0x1d8));case MCPConnectionStatus[_0x1e3917(0x1d3)]:return _0x444ac6['t']('mcpConfig.connectionStatus.retrying');default:return _0x444ac6['t'](_0x1e3917(0x140));}},_0x331dc1=_0x1a58b1=>{const _0x6c1d10=_0x1d2a4f;switch(_0x1a58b1){case MCPConnectionError[_0x6c1d10(0x1ca)]:return _0x444ac6['t'](_0x6c1d10(0x232));case MCPConnectionError[_0x6c1d10(0x1c2)]:return _0x444ac6['t'](_0x6c1d10(0x10e));case MCPConnectionError[_0x6c1d10(0x244)]:return _0x444ac6['t'](_0x6c1d10(0x23d));case MCPConnectionError[_0x6c1d10(0x1b4)]:return _0x444ac6['t'](_0x6c1d10(0x242));default:return'';}},_0x4c98c7=useCallback(()=>{const _0x4d7dd6=_0x1d2a4f;_0x26ce58({..._0x2718d7,'apiKey':_0x1c9c3b[_0x4d7dd6(0x236)](),'enableAuth':_0x5717c8});},[_0x2718d7,_0x1c9c3b,_0x5717c8,_0x26ce58]),_0x505b86=_0x1c9c3b[_0x1d2a4f(0x236)]()[_0x1d2a4f(0x18c)]>0x0;return jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x22a),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x163),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x13b),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x128),'children':jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x21e),'children':'⚙'})}),jsx('div',{'children':jsx('p',{'className':_0x1d2a4f(0x1e3),'children':_0x444ac6['t']('mcpConfig.description')})})]})}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x18f),'children':[jsx(_0x1d2a4f(0x1d6),{'className':clsx(_0x1d2a4f(0x1e2),_0xe43bb8(_0x5c640d,_0x2f5d27)),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1c3),'children':[jsx('div',{'className':clsx(_0x1d2a4f(0x1fb),_0x384a9d(_0x5c640d,_0x2f5d27))}),jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x129),'children':_0xac4fc3(_0x5c640d)})]})}),_0x2f5d27!==MCPConnectionError[_0x1d2a4f(0x151)]&&(_0x5c640d===MCPConnectionStatus['FAILED']||_0x2f5d27===MCPConnectionError['UNAUTHORIZED'])&&jsx('div',{'className':_0x1d2a4f(0x172),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x217),'children':[jsx(_0x1d2a4f(0x16e),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),jsx('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x331dc1(_0x2f5d27)})]})})]}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x214),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x234),'children':[jsxs('div',{'className':_0x1d2a4f(0x171),'children':[jsxs(_0x1d2a4f(0x1fc),{'className':_0x1d2a4f(0x21f),'children':[jsx(_0x1d2a4f(0x16e),{'children':'🔑'}),'\x20',_0x444ac6['t'](_0x1d2a4f(0x146)),jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x189),'children':'*'}),_0x48f7f2&&jsx('a',{'className':_0x1d2a4f(0x204),'title':_0x444ac6['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x126067(!![]),'children':jsx(HelpIcon,{})})]}),jsx(Input,{'type':'text','placeholder':_0x444ac6['t'](_0x1d2a4f(0x195)),'value':_0x1c9c3b,'disabled':loading,'autoComplete':_0x1d2a4f(0x194),'onChange':_0x320193}),jsx('p',{'className':_0x1d2a4f(0x1ab),'children':_0x444ac6['t'](_0x1d2a4f(0x1fd))})]}),_0x48f7f2&&_0x5f598b&&jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x136),'children':[jsx('a',{'className':_0x1d2a4f(0x20b),'role':_0x1d2a4f(0x144),'onClick':()=>_0x126067(![]),'children':jsx(CloseIcon,{'className':_0x1d2a4f(0x15a)})}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x16c),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':jsx('span',{'className':_0x1d2a4f(0x1e4),'children':'🚀'})}),jsxs(_0x1d2a4f(0x1d6),{'className':'univer-flex-1','children':[jsx('h4',{'className':_0x1d2a4f(0x1e7),'children':_0x444ac6['t'](_0x1d2a4f(0x18d))}),jsx('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x444ac6['t'](_0x1d2a4f(0x159))}),jsx(_0x1d2a4f(0x1d6),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0xb9674a&&jsxs('a',{'className':_0x1d2a4f(0x222),'href':_0x27137e,'target':_0x1d2a4f(0x10c),'rel':_0x1d2a4f(0x19f),'children':[jsx(_0x1d2a4f(0x16e),{'children':'🤖'}),_0x444ac6['t'](_0x1d2a4f(0x169)),jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x192),'children':'↗'})]})}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x14a),'children':['✨','\x20',_0x444ac6['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x3e0a61['showDeveloperTools']&&jsxs('div',{'className':_0x1d2a4f(0x199),'children':[jsxs('h4',{'className':_0x1d2a4f(0x11f),'children':[jsx('span',{'children':'🔗'}),'\x20',_0x444ac6['t'](_0x1d2a4f(0x207))]}),jsxs('div',{'className':_0x1d2a4f(0x121),'children':[jsxs(_0x1d2a4f(0x1d6),{'className':'univer-space-y-3','children':[jsx('p',{'className':_0x1d2a4f(0x209),'children':_0x444ac6['t'](_0x1d2a4f(0x186))}),jsxs('div',{'className':_0x1d2a4f(0x171),'children':[jsx('div',{'className':_0x1d2a4f(0x1b5),'children':_0x444ac6['t']('mcpConfig.configStepTitle')}),jsxs(_0x1d2a4f(0x1d6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[jsxs('div',{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x155),'children':'1'}),_0x444ac6['t']('mcpConfig.configStep1')]}),jsxs('div',{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x155),'children':'2'}),_0x444ac6['t'](_0x1d2a4f(0x1d0))]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x155),'children':'3'}),_0x444ac6['t'](_0x1d2a4f(0x182))]})]})]})]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x171),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1d2a4f(0x1f0)}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x11d),'children':jsx(_0x1d2a4f(0x230),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x167b03||_0x1d2a4f(0x16b)),'type':_0x1d2a4f(0x22d),'headers':{'Authorization':'Bearer\x20'+(_0x1c9c3b||'<API_KEY>')}}}},null,0x2)})})]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x225),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1b5),'children':_0x444ac6['t'](_0x1d2a4f(0x21a))}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x171),'children':[jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x174),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),jsxs(_0x1d2a4f(0x1d6),{'className':'univer-min-w-0\x20univer-flex-1','children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x181),'children':_0x1d2a4f(0x1e0)}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1ab),'children':_0x444ac6['t'](_0x1d2a4f(0x220))})]})]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x174),'children':[jsx('div',{'className':_0x1d2a4f(0x1c6)}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x147),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x181),'children':_0x1d2a4f(0x123)}),jsx('div',{'className':_0x1d2a4f(0x1ab),'children':_0x444ac6['t'](_0x1d2a4f(0x1bc))})]})]})]})]})]})]}),jsx(Button,{'onClick':_0x4c98c7,'disabled':!_0x505b86||loading,'className':_0x1d2a4f(0x176),'children':loading?jsxs(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'children':'⟲'}),_0x444ac6['t'](_0x1d2a4f(0x1fe))]}):jsxs(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x1c3),'children':[jsx(CheckMarkIcon,{}),_0x444ac6['t'](_0x1d2a4f(0x142))]})}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x203),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x21d),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x1d9),'children':'💡'}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x228),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-font-medium','children':_0x1d2a4f(0x141)}),jsxs('div',{'children':['•',_0x444ac6['t'](_0x1d2a4f(0x1a8))]}),jsxs(_0x1d2a4f(0x1d6),{'children':['•',_0x444ac6['t'](_0x1d2a4f(0x21b))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY=_0x435cce(0x115),configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0x4d4ed1){'@babel/helpers - typeof';const _0x1ffac7=_0x435cce;return _typeof=_0x1ffac7(0x1cc)==typeof Symbol&&_0x1ffac7(0x10d)==typeof Symbol[_0x1ffac7(0x111)]?function(_0x45aac9){return typeof _0x45aac9;}:function(_0x104985){const _0x5a0212=_0x1ffac7;return _0x104985&&'function'==typeof Symbol&&_0x104985[_0x5a0212(0x17b)]===Symbol&&_0x104985!==Symbol['prototype']?_0x5a0212(0x10d):typeof _0x104985;},_typeof(_0x4d4ed1);}function toPrimitive(_0x3f4909,_0x109cf6){const _0x39c1d3=_0x435cce;if(_0x39c1d3(0x173)!=_typeof(_0x3f4909)||!_0x3f4909)return _0x3f4909;var _0x430444=_0x3f4909[Symbol[_0x39c1d3(0x1a0)]];if(void 0x0!==_0x430444){var _0x4472ad=_0x430444['call'](_0x3f4909,_0x109cf6||_0x39c1d3(0x1ee));if(_0x39c1d3(0x173)!=_typeof(_0x4472ad))return _0x4472ad;throw new TypeError(_0x39c1d3(0x22f));}return(_0x39c1d3(0x223)===_0x109cf6?String:Number)(_0x3f4909);}function toPropertyKey(_0x27876e){const _0x3463b8=_0x435cce;var _0x5daf90=toPrimitive(_0x27876e,_0x3463b8(0x223));return _0x3463b8(0x10d)==_typeof(_0x5daf90)?_0x5daf90:_0x5daf90+'';}function _defineProperty(_0x11dcb2,_0x306c99,_0x41ee0d){const _0x4f2201=_0x435cce;return(_0x306c99=toPropertyKey(_0x306c99))in _0x11dcb2?Object[_0x4f2201(0x1d2)](_0x11dcb2,_0x306c99,{'value':_0x41ee0d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11dcb2[_0x306c99]=_0x41ee0d,_0x11dcb2;}function __decorateParam(_0x3dc7cb,_0x24bcbf){return function(_0x31b786,_0xa8e055){_0x24bcbf(_0x31b786,_0xa8e055,_0x3dc7cb);};}function __decorate(_0x52e5bd,_0x129d09,_0x2d62ac,_0x59e416){const _0x9a8423=_0x435cce;var _0x933580=arguments['length'],_0x3ec116=_0x933580<0x3?_0x129d09:_0x59e416===null?_0x59e416=Object[_0x9a8423(0x218)](_0x129d09,_0x2d62ac):_0x59e416,_0x261232;if(typeof Reflect===_0x9a8423(0x173)&&typeof Reflect[_0x9a8423(0x19b)]==='function')_0x3ec116=Reflect[_0x9a8423(0x19b)](_0x52e5bd,_0x129d09,_0x2d62ac,_0x59e416);else{for(var _0xe2dddf=_0x52e5bd[_0x9a8423(0x18c)]-0x1;_0xe2dddf>=0x0;_0xe2dddf--)if(_0x261232=_0x52e5bd[_0xe2dddf])_0x3ec116=(_0x933580<0x3?_0x261232(_0x3ec116):_0x933580>0x3?_0x261232(_0x129d09,_0x2d62ac,_0x3ec116):_0x261232(_0x129d09,_0x2d62ac))||_0x3ec116;}return _0x933580>0x3&&_0x3ec116&&Object[_0x9a8423(0x1d2)](_0x129d09,_0x2d62ac,_0x3ec116),_0x3ec116;}const MCP_API_KEY_STORAGE_KEY='mcp.apiKey',MCP_CONFIG_DIALOG_ID=_0x435cce(0x14e);let MCPConfigUIController=class MCPConfigUIController extends Disposable{constructor(_0x2916d3,_0x2496d6,_0x5de370,_0x511176,_0x4ca368,_0x3f3ecc,_0x3d3e13,_0x187093,_0xe82114,_0x5bd581){const _0x23067f=_0x435cce;super(),this[_0x23067f(0x1f4)]=_0x2916d3,this['_uiPartsService']=_0x2496d6,this[_0x23067f(0x198)]=_0x5de370,this[_0x23067f(0x187)]=_0x511176,this['_dialogService']=_0x4ca368,this[_0x23067f(0x143)]=_0x3f3ecc,this[_0x23067f(0x1c7)]=_0x3d3e13,this[_0x23067f(0x1a5)]=_0x187093,this[_0x23067f(0x23b)]=_0xe82114,this['_mcpConnectionController']=_0x5bd581,_defineProperty(this,_0x23067f(0x202),new BehaviorSubject(![])),_defineProperty(this,'_mcpCoreConfig$',new BehaviorSubject({})),_defineProperty(this,_0x23067f(0x22c),new BehaviorSubject({})),_defineProperty(this,_0x23067f(0x110),new BehaviorSubject('')),_defineProperty(this,'_handleConfigSave',async _0x1f64c8=>{const _0x4521ff=_0x23067f;this[_0x4521ff(0x202)][_0x4521ff(0x157)](!![]);try{var _0x443210,_0x3a06e5;const _0x7d79cf=await this[_0x4521ff(0x1b9)](_0x1f64c8);if(!_0x7d79cf[_0x4521ff(0x1d7)]){this[_0x4521ff(0x143)][_0x4521ff(0x191)]({'type':MessageType[_0x4521ff(0x221)],'content':_0x7d79cf['errorMessage']||this[_0x4521ff(0x1a5)]['t'](_0x4521ff(0x20f))});return;}if(_0x1f64c8[_0x4521ff(0x1ff)])await this[_0x4521ff(0x187)]['setItem'](MCP_API_KEY_STORAGE_KEY,_0x1f64c8[_0x4521ff(0x1ff)][_0x4521ff(0x236)]());else await this[_0x4521ff(0x187)][_0x4521ff(0x1ea)](MCP_API_KEY_STORAGE_KEY);this[_0x4521ff(0x110)][_0x4521ff(0x157)](((_0x443210=_0x1f64c8[_0x4521ff(0x1ff)])===null||_0x443210===void 0x0?void 0x0:_0x443210['trim']())||''),this['_mcpConnectionController'][_0x4521ff(0x190)]({'Authorization':'Bearer\x20'+((_0x3a06e5=_0x1f64c8[_0x4521ff(0x1ff)])===null||_0x3a06e5===void 0x0?void 0x0:_0x3a06e5[_0x4521ff(0x236)]())}),this[_0x4521ff(0x143)]['show']({'type':MessageType[_0x4521ff(0x12f)],'content':this[_0x4521ff(0x1a5)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x386f7f=_0x4521ff;this['_dialogService'][_0x386f7f(0x149)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x4ab0f0){this[_0x4521ff(0x23b)]['error'](_0x4521ff(0x14f),_0x4ab0f0),this['_messageService'][_0x4521ff(0x191)]({'type':MessageType['Error'],'content':this[_0x4521ff(0x1a5)]['t'](_0x4521ff(0x1a1))});}finally{this['_loading$'][_0x4521ff(0x157)](![]);}}),this[_0x23067f(0x116)](),this['_loadStoredApiKey'](),this['_registerComponent']();}[_0x435cce(0x188)](){const _0x1bc358=_0x435cce,_0x59ccfa=this[_0x1bc358(0x198)][_0x1bc358(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x59ccfa===null||_0x59ccfa===void 0x0?void 0x0:_0x59ccfa[_0x1bc358(0x193)])this[_0x1bc358(0x1de)]['open']({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x1bc358(0x1a5)]['t'](_0x1bc358(0x1bf))},'children':{'label':_0x1bc358(0x1a3)},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x342d69=_0x1bc358;this[_0x342d69(0x1de)][_0x342d69(0x149)](MCP_CONFIG_DIALOG_ID);}});}[_0x435cce(0x1ad)](){const _0x426fa1=_0x435cce;return this[_0x426fa1(0x1c5)]['value'];}[_0x435cce(0x1a4)](){const _0x50af8f=_0x435cce;this[_0x50af8f(0x20a)](this['_componentManager'][_0x50af8f(0x1ec)](_0x50af8f(0x1a3),this[_0x50af8f(0x148)]()));}[_0x435cce(0x148)](){const _0x108599=_0x435cce;return connectInjector(()=>{const _0x5da1bd=_0x1acc;var _0x5f4632,_0xb1b1b5,_0x5d4809;return jsx(MCPConfigPanel,{'config':this[_0x5da1bd(0x22c)]['value'],'mcpCoreConfig':this[_0x5da1bd(0x1c5)][_0x5da1bd(0x17a)],'currentApiKey$':this[_0x5da1bd(0x110)],'onSave':this[_0x5da1bd(0x18b)],'loading':this[_0x5da1bd(0x202)][_0x5da1bd(0x17a)],'connectionStatus$':(_0x5f4632=this[_0x5da1bd(0x175)])===null||_0x5f4632===void 0x0?void 0x0:_0x5f4632['connectionStatus$'],'connectionError$':(_0xb1b1b5=this[_0x5da1bd(0x175)])===null||_0xb1b1b5===void 0x0?void 0x0:_0xb1b1b5[_0x5da1bd(0x208)],'currentSessionId$':(_0x5d4809=this[_0x5da1bd(0x175)])===null||_0x5d4809===void 0x0?void 0x0:_0x5d4809[_0x5da1bd(0x213)]});},this[_0x108599(0x1f4)]);}[_0x435cce(0x116)](){const _0x5391ec=_0x435cce;this[_0x5391ec(0x20a)](this['_configService']['subscribeConfigValue$'](MCP_PLUGIN_CONFIG_KEY)[_0x5391ec(0x122)](_0x1a8c13=>{const _0x5f387e=_0x5391ec;this['_mcpCoreConfig$'][_0x5f387e(0x157)](_0x1a8c13||{});}));const _0x250467=this[_0x5391ec(0x198)][_0x5391ec(0x11a)](MCP_PLUGIN_CONFIG_KEY);this[_0x5391ec(0x1c5)]['next'](_0x250467||{}),this[_0x5391ec(0x20a)](this[_0x5391ec(0x198)][_0x5391ec(0x13f)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x5391ec(0x122)](_0x506ee8=>{const _0xfd12c9=_0x5391ec;this[_0xfd12c9(0x22c)][_0xfd12c9(0x157)](_0x506ee8||{});}));const _0x4c0eb5=this[_0x5391ec(0x198)][_0x5391ec(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);this['_config$'][_0x5391ec(0x157)](_0x4c0eb5||{});}async[_0x435cce(0x145)](){const _0x5db712=_0x435cce,_0x511bbc=this[_0x5db712(0x198)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x511bbc===null||_0x511bbc===void 0x0?void 0x0:_0x511bbc[_0x5db712(0x193)]))return;const _0x5a1bac=await this[_0x5db712(0x187)][_0x5db712(0x113)](MCP_API_KEY_STORAGE_KEY);_0x5a1bac&&(this[_0x5db712(0x175)][_0x5db712(0x190)]({'Authorization':_0x5db712(0x20e)+_0x5a1bac}),this['_apiKey$'][_0x5db712(0x157)](_0x5a1bac));}async[_0x435cce(0x1b9)](_0x27ed6d){const _0x597a17=_0x435cce;if(!_0x27ed6d[_0x597a17(0x1ff)]||_0x27ed6d[_0x597a17(0x1ff)][_0x597a17(0x236)]()['length']===0x0)return{'isValid':![],'errorMessage':this[_0x597a17(0x1a5)]['t'](_0x597a17(0x11b))};if(_0x27ed6d[_0x597a17(0x1ff)]['trim']()[_0x597a17(0x18c)]<0xa)return{'isValid':![],'errorMessage':this[_0x597a17(0x1a5)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x3fa571=await this[_0x597a17(0x1f4)][_0x597a17(0x12a)](MCPConnectionController)[_0x597a17(0x1ef)](_0x27ed6d[_0x597a17(0x1ff)][_0x597a17(0x236)]());if(!_0x3fa571['isValid'])return{'isValid':![],'errorMessage':_0x3fa571[_0x597a17(0x13d)]||this[_0x597a17(0x1a5)]['t'](_0x597a17(0x153))};return{'isValid':!![]};}catch(_0x2bbcb8){return console[_0x597a17(0x180)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2bbcb8),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILocalStorageService),__decorateParam(0x4,IDialogService),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(ComponentManager)),__decorateParam(0x7,Inject(LocaleService)),__decorateParam(0x8,ILogService),__decorateParam(0x9,Inject(MCPConnectionController))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0x435cce(0x127),'type':CommandType[_0x435cce(0x13e)],'handler':async(_0x2967a5,_0x4087a5)=>{const _0x14cab2=_0x435cce;return _0x2967a5[_0x14cab2(0x12a)](MCPConfigUIController)[_0x14cab2(0x188)](),!![];}};function mapStatusToI18NKey(_0x483791,_0x41fcdb){const _0x17a6e5=_0x435cce;switch(_0x483791){case MCPConnectionStatus[_0x17a6e5(0x23a)]:return _0x17a6e5(0x1e1);case MCPConnectionStatus[_0x17a6e5(0x206)]:return _0x17a6e5(0x184);case MCPConnectionStatus[_0x17a6e5(0x19e)]:return _0x17a6e5(0x1b7);case MCPConnectionStatus[_0x17a6e5(0x1e5)]:switch(_0x41fcdb){case MCPConnectionError[_0x17a6e5(0x1ca)]:return _0x17a6e5(0x12c);case MCPConnectionError['SESSION_ID_OCCUPIED']:return _0x17a6e5(0x237);case MCPConnectionError[_0x17a6e5(0x244)]:return _0x17a6e5(0x22e);case MCPConnectionError[_0x17a6e5(0x1b4)]:return _0x17a6e5(0x235);default:return _0x17a6e5(0x125);}case MCPConnectionStatus[_0x17a6e5(0x1d3)]:return _0x17a6e5(0x13a);default:return _0x17a6e5(0x19c);}}function getTooltipText(_0x423c04,_0x52fef0,_0x37722b,_0x46625f=!![]){const _0x45a43b=_0x435cce,_0x1f1567=mapStatusToI18NKey(_0x423c04,_0x52fef0),_0x1150f5=_0x37722b['t'](_0x1f1567);if(!_0x46625f)return _0x1150f5;if(_0x423c04===MCPConnectionStatus[_0x45a43b(0x23a)]&&_0x52fef0===MCPConnectionError['UNAUTHORIZED'])return _0x1150f5+_0x45a43b(0x132)+_0x37722b['t'](_0x45a43b(0x119));else{if(_0x423c04===MCPConnectionStatus[_0x45a43b(0x19e)])return''+_0x1150f5;else{if(_0x423c04===MCPConnectionStatus[_0x45a43b(0x23a)]||_0x423c04===MCPConnectionStatus[_0x45a43b(0x1e5)])return _0x1150f5+_0x45a43b(0x132)+_0x37722b['t'](_0x45a43b(0x133));}}return _0x1150f5;}function getStatusColor(_0x5e0d17){const _0x8d67a8=_0x435cce;switch(_0x5e0d17){case MCPConnectionStatus[_0x8d67a8(0x19e)]:return _0x8d67a8(0x14b);case MCPConnectionStatus[_0x8d67a8(0x206)]:case MCPConnectionStatus[_0x8d67a8(0x1d3)]:return'univer-text-yellow-500';case MCPConnectionStatus[_0x8d67a8(0x1e5)]:case MCPConnectionStatus[_0x8d67a8(0x23a)]:return _0x8d67a8(0x189);default:return _0x8d67a8(0x170);}}function MCPStatusDisplay(_0x5e6254){const _0x41dc91=_0x435cce,{status$:_0x3db4ef,error$:_0x339048,onConfigure:_0x11dc7e,showClickable:showClickable=!![]}=_0x5e6254,_0x1efb0a=useObservable(_0x3db4ef,MCPConnectionStatus[_0x41dc91(0x23a)]),_0x1a6d1c=useObservable(_0x339048,MCPConnectionError[_0x41dc91(0x151)]),_0x1dff81=useDependency(LocaleService),_0x21d09a=_0x1efb0a===MCPConnectionStatus[_0x41dc91(0x19e)];_0x1efb0a===MCPConnectionStatus[_0x41dc91(0x206)]||MCPConnectionStatus['RETRYING'];const _0xbfa941=_0x1dff81['t'](mapStatusToI18NKey(_0x1efb0a,_0x1a6d1c)),_0x451a9d=getTooltipText(_0x1efb0a,_0x1a6d1c,_0x1dff81,showClickable),_0x3fac89=getStatusColor(_0x1efb0a),_0x1ec64c=_0x21d09a?jsx(OnLineIcon,{}):jsx(OffLineIcon,{}),_0x292db5=useCallback(()=>{if(showClickable&&_0x11dc7e)_0x11dc7e();},[showClickable,_0x11dc7e]);function _0x1d4111(){const _0x3ed43d=_0x41dc91;return jsxs(_0x3ed43d(0x1d6),{'className':clsx(_0x3ed43d(0x16a),showClickable&&_0x11dc7e&&_0x3ed43d(0x20c)),'role':_0x3ed43d(0x144),'onClick':showClickable&&_0x11dc7e?_0x292db5:void 0x0,'children':[jsx('div',{'className':clsx('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x3fac89),'children':_0x1ec64c}),jsx(_0x3ed43d(0x1d6),{'className':_0x3ed43d(0x226),'children':_0xbfa941})]});}return jsx(Tooltip,{'title':_0x451a9d,'placement':_0x41dc91(0x224),'children':_0x1d4111()});}let MCPConnectionUIController=class MCPConnectionUIController extends Disposable{constructor(_0x205a1c,_0xe7bbcd,_0x43c511,_0x49eebb){const _0x2436fc=_0x435cce;super(),this[_0x2436fc(0x1f4)]=_0x205a1c,this[_0x2436fc(0x19a)]=_0xe7bbcd,this[_0x2436fc(0x200)]=_0x43c511,this[_0x2436fc(0x198)]=_0x49eebb,this['_initAutoConnect'](),this[_0x2436fc(0x164)]();}['_initAutoConnect'](){const _0xd51298=_0x435cce,_0x19cd0f=this[_0xd51298(0x198)][_0xd51298(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x19cd0f===null||_0x19cd0f===void 0x0?void 0x0:_0x19cd0f[_0xd51298(0x193)])this[_0xd51298(0x19a)][_0xd51298(0x126)]=![];}['_initStatusComponent'](){const _0xed9d5c=_0x435cce,_0x36d2b8=this[_0xed9d5c(0x198)][_0xed9d5c(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x36d2b8===null||_0x36d2b8===void 0x0?void 0x0:_0x36d2b8[_0xed9d5c(0x17c)])!==![])this[_0xed9d5c(0x20a)](this['_uiPartsService'][_0xed9d5c(0x1a9)](BuiltInUIPart['HEADER_MENU'],()=>{const _0x5c358b=_0xed9d5c;var _0x17ef01;return connectInjector(passProps({'status$':this[_0x5c358b(0x19a)][_0x5c358b(0x158)],'error$':this[_0x5c358b(0x19a)][_0x5c358b(0x208)],'onConfigure':()=>this[_0x5c358b(0x1f8)](),'showClickable':(_0x17ef01=_0x36d2b8===null||_0x36d2b8===void 0x0?void 0x0:_0x36d2b8[_0x5c358b(0x193)])!==null&&_0x17ef01!==void 0x0?_0x17ef01:![]}),this[_0x5c358b(0x1f4)]);}));}[_0x435cce(0x1f8)](){const _0x13940f=_0x435cce;this[_0x13940f(0x1f4)][_0x13940f(0x12a)](MCPConfigUIController)[_0x13940f(0x188)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(MCPConnectionController)),__decorateParam(0x2,IUIPartsService),__decorateParam(0x3,IConfigService)],MCPConnectionUIController);function passProps(_0x7168e1){const {status$:_0x443721,error$:_0x4cf889,onConfigure:_0x2db20f,showClickable:_0x93f6aa}=_0x7168e1;return function _0x538178(){return jsx(MCPStatusDisplay,{'status$':_0x443721,'error$':_0x4cf889,'onConfigure':_0x2db20f,'showClickable':_0x93f6aa});};}function MCPConfigMenuItemFactory(_0x43ba2a){const _0x27b9ce=_0x435cce;return{'id':OpenMCPConfigPanelCommand['id'],'type':MenuItemType['BUTTON'],'icon':_0x27b9ce(0x1f1),'title':'mcpConfig.title','tooltip':'mcpConfig.title'};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};function _0x1a70(){const _0x4498fd=['univer-bg-red-500','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20连接失败','sessionId$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','配置参数:','mcpServerUrl','univer-flex\x20univer-items-start\x20univer-gap-2','getOwnPropertyDescriptor','univer-bg-gray-500','mcpConfig.configParameters','mcpConfig.note2','您的\x20API\x20密钥安全存储在本地存储中','univer-flex\x20univer-gap-3','univer-text-white','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.sessionIdDescription','Error','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','string','bottom','univer-space-y-3','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','_config$','http','mcpStatus.networkError','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pre','点击连接\x20MCP','mcpConfig.connectionError.unauthorized','4120AOptVl','univer-space-y-5','mcpStatus.maxRetriesExceeded','trim','mcpStatus.sessionOccupied','https://console.univer.ai','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','DISCONNECTED','_logService','6FCVcyc','mcpConfig.connectionError.networkError','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','将配置添加到您的\x20MCP\x20客户端设置文件中','pluginName','mcpConfig.connectionError.maxRetriesExceeded','MCP_UI_PLUGIN','NETWORK_ERROR','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_blank','symbol','mcpConfig.connectionError.sessionOccupied','2044644banQSZ','_apiKey$','iterator','配置保存失败','getItem','univer.ai','mcp-ui.config','_initConfigSync','Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','mcpStatus.clickToConfigure','getConfig','mcpConfig.validation.apiKeyRequired','What\x20is\x20API\x20Key?','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','API\x20密钥不能为空','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20连接中...','univer-space-y-4','subscribe','Authorization:','Enter\x20your\x20API\x20key','mcpStatus.failed','enableAutoConnect','mcp-ui.command.openConfigPanel','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-text-sm\x20univer-font-medium','get','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpStatus.unauthorized','MCP\x20Connection\x20Failed','_commandService','Success','https://console.univer.plus','MCP\x20Connecting...','\x20-\x20','mcpStatus.clickToConnect','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置更改将立即生效','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','mcpStatus.retrying','univer-flex\x20univer-items-center\x20univer-gap-3','MCP:\x20Network\x20Error','error','COMMAND','subscribeConfigValue$','mcpConfig.connectionStatus.disconnected','Configuration\x20Notes:','mcpConfig.save','_messageService','button','_loadStoredApiKey','mcpConfig.apiKey','univer-min-w-0\x20univer-flex-1','_createConfigPanelComponent','close','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-text-green-500','MCP\x20配置','Failed\x20to\x20save\x20configuration','mcp-config-dialog','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','重启您的\x20MCP\x20客户端以使配置生效','NONE','Connected','mcpConfig.validation.invalidApiKey','univer-bg-blue-500','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','Retrying...','next','connectionStatus$','mcpConfig.apiApplyInfo.description','univer-size-4','566936DkNXiL','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','配置无效','onStarting','mergeMenu','univer-bg-green-500','213383xbMlPF','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_initStatusComponent','Invalid\x20configuration','114ItyMhu','add','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-items-center','<SESSION_ID>','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20Client\x20Configuration','span','网络连接错误,请检查您的网络连接','univer-text-gray-500','univer-space-y-2','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','object','univer-flex\x20univer-items-start\x20univer-gap-3','_mcpConnectionController','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','push','Connecting...','@univerjs-pro/mcp-ui','value','constructor','showStatus','API\x20密钥无效,请检查密钥是否正确','复制以下\x20JSON\x20配置','Configuration\x20saved\x20successfully','warn','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.configStep3','7CJGpBI','mcpStatus.connecting','Univer\x20AI\x20Console','mcpConfig.configInstructions','_localStorageService','showConfigPanel','univer-text-red-500','配置步骤:','_handleConfigSave','length','mcpConfig.apiApplyInfo.title','MCP:\x20Session\x20ID\x20Occupied','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','__setCustomHeaders','show','univer-text-gray-400','showDeveloperTools','off','mcpConfig.apiKeyPlaceholder','MCP:\x20会话\x20ID\x20已被占用','_menuManagerService','_configService','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_connectionController','decorate','mcpStatus.unknown','MCP\x20重连中...','CONNECTED','noopener\x20noreferrer','toPrimitive','mcpConfig.configError','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCPConfigPanel','_registerComponent','_localeService','连接中...','_initializeMenus','mcpConfig.note1','registerComponent','MCP:\x20Unauthorized','univer-text-xs\x20univer-text-gray-500','API\x20密钥','getCurrentConfig','将以下配置添加到您的\x20MCP\x20客户端设置中:','2dVZPVT','univer.plus','Save\x20Configuration','最大重试次数','5269DMJdLb','MAX_RETRIES_EXCEEDED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','version','mcpStatus.connected','394484XeWFmv','_validateConfig','重连中...','超出最大重试次数,请稍后再试','mcpConfig.authorizationDescription','registerCommand','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.title','MCP\x20Connected','API\x20Key','SESSION_ID_OCCUPIED','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20网络错误','_mcpCoreConfig$','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_componentManager','has','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','UNAUTHORIZED','MCP:\x20超出最大重试次数','function','setConfig','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','0.22.0','mcpConfig.configStep2','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','defineProperty','RETRYING','连接失败','Configuration\x20Steps:','div','isValid','mcpConfig.connectionStatus.failed','univer-shrink-0\x20univer-text-blue-500','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.connectionStatus.connecting','32865HGugOR','MCP\x20Disconnected','_dialogService','什么是\x20API\x20密钥?','univer_session_id:','mcpStatus.disconnected','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-text-sm\x20univer-text-gray-500','univer-text-blue-600','FAILED','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20已断开','packageName','removeItem','点击配置\x20MCP','register','配置保存成功','default','validateApiKey','MCP\x20Configuration','MenuIcon','forEach','保存配置','_injector','_initializeCommands','几秒钟内获取您的\x20API\x20密钥','_config','_handleConfigure','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','includes','univer-size-2\x20univer-rounded-full','label','mcpConfig.apiKeyHint','mcpConfig.saving','apiKey','_uiPartsService','1563399BcUSha','_loading$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','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','启用身份验证以获得安全连接','CONNECTING','mcpConfig.connectionInfo','connectionError$','univer-text-xs\x20univer-text-gray-600','disposeWithMe','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','\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','Session\x20ID','Bearer\x20','mcpConfig.validation.invalidConfig'];_0x1a70=function(){return _0x4498fd;};return _0x1a70();}let MCPUIMenuController=class MCPUIMenuController extends Disposable{constructor(_0x7ee35b,_0x3cc3d4){const _0x3d2f90=_0x435cce;super(),this[_0x3d2f90(0x12e)]=_0x7ee35b,this[_0x3d2f90(0x197)]=_0x3cc3d4,this[_0x3d2f90(0x1f5)](),this['_initializeMenus']();}['_initializeCommands'](){const _0x1b70fb=_0x435cce;[OpenMCPConfigPanelCommand][_0x1b70fb(0x1f2)](_0x246af4=>{const _0x32d51f=_0x1b70fb;this[_0x32d51f(0x20a)](this[_0x32d51f(0x12e)][_0x32d51f(0x1bd)](_0x246af4));});}[_0x435cce(0x1a7)](){const _0x10bbf4=_0x435cce;this[_0x10bbf4(0x197)][_0x10bbf4(0x160)](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService)],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':_0x435cce(0x1dd),'connecting':_0x435cce(0x131),'connected':_0x435cce(0x1c0),'failed':_0x435cce(0x12d),'retrying':'MCP\x20Retrying...','unknown':_0x435cce(0x139),'unauthorized':_0x435cce(0x1aa),'sessionOccupied':_0x435cce(0x18e),'networkError':_0x435cce(0x13c),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x435cce(0x1e6),'apiKey':_0x435cce(0x1c1),'apiKeyPlaceholder':_0x435cce(0x124),'apiKeyHint':_0x435cce(0x1c9),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x435cce(0x16d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x435cce(0x1d1),'configStepTitle':_0x435cce(0x1d5),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x435cce(0x168),'configStep3':_0x435cce(0x138),'sessionId':_0x435cce(0x20d),'sessionIdDescription':_0x435cce(0x22b),'authorizationDescription':_0x435cce(0x1be),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x435cce(0x15c),'save':_0x435cce(0x1b1),'saving':'Saving...','note1':_0x435cce(0x1da),'note2':_0x435cce(0x229),'configSaved':_0x435cce(0x17f),'configError':_0x435cce(0x14d),'apiApplyInfo':{'title':_0x435cce(0x11c),'description':_0x435cce(0x1a2),'univerAiLabel':_0x435cce(0x185),'getStarted':_0x435cce(0x118)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x435cce(0x15d),'invalidConfig':_0x435cce(0x165),'invalidApiKey':_0x435cce(0x1f9)},'connectionStatus':{'disconnected':_0x435cce(0x117),'connecting':_0x435cce(0x178),'connected':_0x435cce(0x152),'failed':'Connection\x20Failed','retrying':_0x435cce(0x156)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x435cce(0x23e),'networkError':_0x435cce(0x211),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale$1={'mcpStatus':{'disconnected':_0x435cce(0x1e8),'connecting':_0x435cce(0x120),'connected':'MCP\x20已连接','failed':_0x435cce(0x212),'retrying':_0x435cce(0x19d),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x435cce(0x196),'networkError':_0x435cce(0x1c4),'maxRetriesExceeded':_0x435cce(0x1cb),'clickToConnect':_0x435cce(0x231),'clickToConfigure':_0x435cce(0x1eb)},'mcpConfig':{'title':_0x435cce(0x14c),'description':_0x435cce(0x245),'apiKey':_0x435cce(0x1ac),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x435cce(0x205),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x435cce(0x1ae),'configStepTitle':_0x435cce(0x18a),'configStep1':_0x435cce(0x17e),'configStep2':_0x435cce(0x240),'configStep3':_0x435cce(0x150),'sessionId':'会话ID','sessionIdDescription':_0x435cce(0x227),'authorizationDescription':_0x435cce(0x12b),'configParameters':_0x435cce(0x215),'maxRetries':_0x435cce(0x1b2),'save':_0x435cce(0x1f3),'saving':'保存中...','note1':_0x435cce(0x135),'note2':_0x435cce(0x21c),'configSaved':_0x435cce(0x1ed),'configError':_0x435cce(0x112),'apiApplyInfo':{'title':_0x435cce(0x1df),'description':_0x435cce(0x134),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x435cce(0x1f6)},'validation':{'apiKeyRequired':_0x435cce(0x11e),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x435cce(0x15e),'invalidApiKey':_0x435cce(0x17d)},'connectionStatus':{'disconnected':'未连接','connecting':_0x435cce(0x1a6),'connected':'已连接','failed':_0x435cce(0x1d4),'retrying':_0x435cce(0x1ba)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x435cce(0x16f),'maxRetriesExceeded':_0x435cce(0x1bb)}}};function _0x1acc(_0x3fd2f8,_0x1761a8){_0x3fd2f8=_0x3fd2f8-0x10c;const _0x1a7016=_0x1a70();let _0x1accb6=_0x1a7016[_0x3fd2f8];return _0x1accb6;}var name=_0x435cce(0x179),version=_0x435cce(0x1cf);let UniverMCPUIPlugin=class UniverMCPUIPlugin extends Plugin{constructor(_0x17f297=defaultPluginConfig,_0x45d501,_0x1f093c,_0x3db30d,_0x52e285,_0x39e67f){const _0x4bc2f7=_0x435cce;super(),this[_0x4bc2f7(0x1f7)]=_0x17f297,this[_0x4bc2f7(0x1f4)]=_0x45d501,this[_0x4bc2f7(0x198)]=_0x1f093c,this[_0x4bc2f7(0x200)]=_0x3db30d,this[_0x4bc2f7(0x187)]=_0x52e285,this[_0x4bc2f7(0x1a5)]=_0x39e67f;const {..._0x49fa07}=merge({},defaultPluginConfig,this['_config']);this[_0x4bc2f7(0x198)][_0x4bc2f7(0x1cd)](MCP_UI_PLUGIN_CONFIG_KEY,_0x49fa07);}async[_0x435cce(0x15f)](){const _0x3f73b3=_0x435cce,_0x3d0e88=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this[_0x3f73b3(0x1f4)][_0x3f73b3(0x1c8)](ISocketService))_0x3d0e88[_0x3f73b3(0x177)]([ISocketService,{'useClass':WebSocketService}]);_0x3d0e88[_0x3f73b3(0x1f2)](_0x3a7265=>this['_injector'][_0x3f73b3(0x167)](_0x3a7265)),this['_injector'][_0x3f73b3(0x12a)](MCPConnectionUIController),this[_0x3f73b3(0x1f4)]['get'](MCPConfigUIController),this['_injector'][_0x3f73b3(0x12a)](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0x435cce(0x241),_0x435cce(0x243)),_defineProperty(UniverMCPUIPlugin,_0x435cce(0x1e9),name),_defineProperty(UniverMCPUIPlugin,_0x435cce(0x1b6),version),UniverMCPUIPlugin=__decorate([DependentOn(UniverMCPPlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,IUIPartsService),__decorateParam(0x4,ILocalStorageService),__decorateParam(0x5,Inject(LocaleService))],UniverMCPUIPlugin);export{MCPConfigPanel,MCPConfigUIController,MCPConnectionUIController,MCPStatusDisplay,MCPUIMenuController,OpenMCPConfigPanelCommand,UniverMCPUIPlugin,locale as enUS,locale$1 as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x27ac5f=_0x3a9b;(function(_0x27707b,_0x2626fa){const _0x4dfa4e=_0x3a9b,_0x5637c8=_0x27707b();while(!![]){try{const _0x180c5f=parseInt(_0x4dfa4e(0x12e))/0x1+parseInt(_0x4dfa4e(0x12d))/0x2+parseInt(_0x4dfa4e(0x125))/0x3*(parseInt(_0x4dfa4e(0x129))/0x4)+-parseInt(_0x4dfa4e(0x137))/0x5+-parseInt(_0x4dfa4e(0x11c))/0x6+parseInt(_0x4dfa4e(0x114))/0x7*(-parseInt(_0x4dfa4e(0x12a))/0x8)+parseInt(_0x4dfa4e(0x11a))/0x9*(-parseInt(_0x4dfa4e(0x12f))/0xa);if(_0x180c5f===_0x2626fa)break;else _0x5637c8['push'](_0x5637c8['shift']());}catch(_0x31c2d8){_0x5637c8['push'](_0x5637c8['shift']());}}}(_0x105b,0x5d3a5));const locale$1={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x27ac5f(0x119),'connected':_0x27ac5f(0x117),'failed':_0x27ac5f(0x12b),'retrying':_0x27ac5f(0x122),'unknown':_0x27ac5f(0x12c),'unauthorized':_0x27ac5f(0x10d),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x27ac5f(0x126),'maxRetriesExceeded':_0x27ac5f(0x134),'clickToConnect':_0x27ac5f(0x135),'clickToConfigure':_0x27ac5f(0x124)},'mcpConfig':{'title':_0x27ac5f(0x118),'description':_0x27ac5f(0x11d),'apiKey':_0x27ac5f(0x10e),'apiKeyPlaceholder':_0x27ac5f(0x138),'apiKeyHint':_0x27ac5f(0x127),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x27ac5f(0x113),'connectionInfo':_0x27ac5f(0x130),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x27ac5f(0x136),'configStep1':_0x27ac5f(0x109),'configStep2':_0x27ac5f(0x112),'configStep3':_0x27ac5f(0x110),'sessionId':_0x27ac5f(0x133),'sessionIdDescription':_0x27ac5f(0x10b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x27ac5f(0x128),'note1':_0x27ac5f(0x10c),'note2':_0x27ac5f(0x115),'configSaved':_0x27ac5f(0x121),'configError':_0x27ac5f(0x10f),'apiApplyInfo':{'title':_0x27ac5f(0x11b),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x27ac5f(0x116),'apiKeyTooShort':_0x27ac5f(0x106),'invalidConfig':_0x27ac5f(0x132),'invalidApiKey':_0x27ac5f(0x123)},'connectionStatus':{'disconnected':_0x27ac5f(0x120),'connecting':'Connecting...','connected':_0x27ac5f(0x111),'failed':_0x27ac5f(0x11e),'retrying':_0x27ac5f(0x131)},'connectionError':{'unauthorized':_0x27ac5f(0x107),'sessionOccupied':_0x27ac5f(0x108),'networkError':_0x27ac5f(0x10a),'maxRetriesExceeded':_0x27ac5f(0x11f)}}},locale=locale$1;function _0x105b(){const _0xd58776=['259BkKqEs','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','MCP\x20Connected','MCP\x20Configuration','MCP\x20Connecting...','405yYCnXX','What\x20is\x20API\x20Key?','2035836nSUrZy','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Configuration\x20saved\x20successfully','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','8805QBmGmc','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','520tJsiwk','32096cchhil','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','1160228JlVczg','563972fZfkYM','40130HclrTc','MCP\x20Client\x20Configuration','Retrying...','Invalid\x20configuration','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','2377200cPmVWV','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Unauthorized','API\x20Key','Failed\x20to\x20save\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20authentication\x20for\x20secure\x20connections'];_0x105b=function(){return _0xd58776;};return _0x105b();}function _0x3a9b(_0x46a447,_0x493c9f){_0x46a447=_0x46a447-0x106;const _0x105ba8=_0x105b();let _0x3a9bc7=_0x105ba8[_0x46a447];return _0x3a9bc7;}export{locale as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3ef0(_0x3b44a8,_0x4150ad){_0x3b44a8=_0x3b44a8-0x8b;const _0x17805c=_0x1780();let _0x3ef047=_0x17805c[_0x3b44a8];return _0x3ef047;}const _0x1577c2=_0x3ef0;function _0x1780(){const _0x556c0f=['Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','1096nYngWd','Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Save\x20Configuration','530244uWDUct','1144887hwvptz','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','10ConPoX','4XaOohk','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','693276hVnncN','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connecting...','77NVTymJ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:','5885060ZFpGjK','Saving...','MCP:\x20Network\x20Error','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connecting...','MCP\x20Unknown\x20Status','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','Connection\x20Failed','13637195dYEuZp','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected','Invalid\x20configuration','Failed\x20to\x20save\x20configuration','Session\x20ID','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2UFmlqy','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1530584EqrFUk','17145oijVlM','Max\x20Retries'];_0x1780=function(){return _0x556c0f;};return _0x1780();}(function(_0x49ab38,_0x2809e2){const _0x20992b=_0x3ef0,_0x3bc282=_0x49ab38();while(!![]){try{const _0x467c30=-parseInt(_0x20992b(0x9f))/0x1*(-parseInt(_0x20992b(0xa1))/0x2)+parseInt(_0x20992b(0xac))/0x3*(parseInt(_0x20992b(0xb0))/0x4)+-parseInt(_0x20992b(0xbb))/0x5+-parseInt(_0x20992b(0xb3))/0x6*(parseInt(_0x20992b(0xb8))/0x7)+-parseInt(_0x20992b(0xa7))/0x8*(-parseInt(_0x20992b(0xa2))/0x9)+parseInt(_0x20992b(0xaf))/0xa*(parseInt(_0x20992b(0x95))/0xb)+-parseInt(_0x20992b(0xab))/0xc;if(_0x467c30===_0x2809e2)break;else _0x3bc282['push'](_0x3bc282['shift']());}catch(_0x1559e7){_0x3bc282['push'](_0x3bc282['shift']());}}}(_0x1780,0xe0ca2));const locale={'mcpStatus':{'disconnected':_0x1577c2(0x99),'connecting':_0x1577c2(0xb7),'connected':_0x1577c2(0xb5),'failed':_0x1577c2(0x8f),'retrying':'MCP\x20Retrying...','unknown':_0x1577c2(0x8e),'unauthorized':_0x1577c2(0xb1),'sessionOccupied':_0x1577c2(0xb6),'networkError':_0x1577c2(0xbd),'maxRetriesExceeded':_0x1577c2(0xa9),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1577c2(0x97)},'mcpConfig':{'title':_0x1577c2(0x9d),'description':_0x1577c2(0x98),'apiKey':_0x1577c2(0x8b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1577c2(0x90),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1577c2(0x96),'connectionInfo':_0x1577c2(0x93),'mcpClientConfig':_0x1577c2(0x93),'configInstructions':_0x1577c2(0xb4),'configStepTitle':_0x1577c2(0xba),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1577c2(0xa0),'configStep3':_0x1577c2(0x91),'sessionId':_0x1577c2(0x9c),'sessionIdDescription':_0x1577c2(0xb2),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x1577c2(0xa3),'save':_0x1577c2(0xaa),'saving':_0x1577c2(0xbc),'note1':_0x1577c2(0x9e),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x1577c2(0x9b),'apiApplyInfo':{'title':_0x1577c2(0xa5),'description':_0x1577c2(0x92),'univerAiLabel':_0x1577c2(0xae),'getStarted':_0x1577c2(0xa4)},'validation':{'apiKeyRequired':_0x1577c2(0xa6),'apiKeyTooShort':_0x1577c2(0x8c),'invalidConfig':_0x1577c2(0x9a),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1577c2(0x8d),'connected':'Connected','failed':_0x1577c2(0x94),'retrying':_0x1577c2(0xa8)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1577c2(0xb9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1577c2(0xad)}}};export{locale as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x38a90e=_0x4ee7;function _0x4ee7(_0x2561bc,_0x4ca299){_0x2561bc=_0x2561bc-0x83;const _0x1d1154=_0x1d11();let _0x4ee78b=_0x1d1154[_0x2561bc];return _0x4ee78b;}(function(_0x3c4140,_0x1172ae){const _0xf48e3c=_0x4ee7,_0x216801=_0x3c4140();while(!![]){try{const _0x23c5b2=parseInt(_0xf48e3c(0x84))/0x1+-parseInt(_0xf48e3c(0xae))/0x2+parseInt(_0xf48e3c(0xb3))/0x3*(parseInt(_0xf48e3c(0xa5))/0x4)+-parseInt(_0xf48e3c(0xa7))/0x5*(parseInt(_0xf48e3c(0x9e))/0x6)+-parseInt(_0xf48e3c(0x92))/0x7*(-parseInt(_0xf48e3c(0x9b))/0x8)+-parseInt(_0xf48e3c(0x85))/0x9*(-parseInt(_0xf48e3c(0x9a))/0xa)+parseInt(_0xf48e3c(0x90))/0xb;if(_0x23c5b2===_0x1172ae)break;else _0x216801['push'](_0x216801['shift']());}catch(_0x3644de){_0x216801['push'](_0x216801['shift']());}}}(_0x1d11,0x3db64));const locale$1={'mcpStatus':{'disconnected':_0x38a90e(0xa2),'connecting':_0x38a90e(0xa6),'connected':_0x38a90e(0x8e),'failed':'MCP\x20Connection\x20Failed','retrying':_0x38a90e(0x86),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x38a90e(0x94),'sessionOccupied':_0x38a90e(0x8c),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x38a90e(0xa0),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x38a90e(0xa1),'description':_0x38a90e(0xa9),'apiKey':_0x38a90e(0xa3),'apiKeyPlaceholder':_0x38a90e(0xaf),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x38a90e(0x8a),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x38a90e(0x95),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x38a90e(0x9f),'configStepTitle':_0x38a90e(0x98),'configStep1':_0x38a90e(0x87),'configStep2':_0x38a90e(0xb2),'configStep3':_0x38a90e(0xb1),'sessionId':_0x38a90e(0x99),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x38a90e(0x8b),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x38a90e(0xa4),'save':'Save\x20Configuration','saving':_0x38a90e(0x8d),'note1':_0x38a90e(0x93),'note2':_0x38a90e(0xb4),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x38a90e(0xaa),'apiApplyInfo':{'title':_0x38a90e(0x9c),'description':_0x38a90e(0x97),'univerAiLabel':_0x38a90e(0xa8),'getStarted':_0x38a90e(0xac)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x38a90e(0xad),'invalidApiKey':_0x38a90e(0x9d)},'connectionStatus':{'disconnected':_0x38a90e(0x83),'connecting':_0x38a90e(0x96),'connected':_0x38a90e(0x89),'failed':_0x38a90e(0xab),'retrying':_0x38a90e(0x8f)},'connectionError':{'unauthorized':_0x38a90e(0x88),'sessionOccupied':_0x38a90e(0xb0),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x38a90e(0x91)}}},locale=locale$1;function _0x1d11(){const _0x4522a9=['What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4020kPtgCf','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','MCP\x20Disconnected','API\x20Key','Max\x20Retries','5116asoOBk','MCP\x20Connecting...','3235nFtUCa','Univer\x20AI\x20Console','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','668576DBzFiR','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','138FBmtbc','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Disconnected','364218hPobpX','19701AVcfcH','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connected','Enable\x20Authentication','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','Saving...','MCP\x20Connected','Retrying...','1454354rbgHqo','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','455XiWEhR','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','Session\x20ID','1510FYIfdf','16584oFeRTx'];_0x1d11=function(){return _0x4522a9;};return _0x1d11();}export{locale as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x13fd3f=_0x3610;function _0x3610(_0x1348f9,_0x49ffb3){_0x1348f9=_0x1348f9-0xa1;const _0x10079d=_0x1007();let _0x361096=_0x10079d[_0x1348f9];return _0x361096;}function _0x1007(){const _0x34e927=['MCP\x20Connection\x20Failed','Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','6JedfhR','What\x20is\x20API\x20Key?','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','MCP\x20Configuration','Configuration\x20saved\x20successfully','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2017FrdIDH','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','90QibHIF','Connecting...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2272944NqqNHU','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Disconnected','Retrying...','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','MCP\x20Unknown\x20Status','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','Session\x20ID','370055NtqiQx','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','447492melQHw','326fvuDab','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Session\x20ID\x20Occupied','1376928nmOjHk','MCP:\x20Max\x20Retries\x20Exceeded','214805lZgxFs','Get\x20your\x20API\x20key\x20in\x20seconds','Failed\x20to\x20save\x20configuration','194265vFgmvh','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','Saving...','MCP\x20Client\x20Configuration','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x1007=function(){return _0x34e927;};return _0x1007();}(function(_0x5cbbf4,_0x8e6d97){const _0x5da9ee=_0x3610,_0x2d9afc=_0x5cbbf4();while(!![]){try{const _0x34b9b6=parseInt(_0x5da9ee(0xba))/0x1*(-parseInt(_0x5da9ee(0xce))/0x2)+parseInt(_0x5da9ee(0xcd))/0x3+parseInt(_0x5da9ee(0xd1))/0x4+parseInt(_0x5da9ee(0xa1))/0x5*(parseInt(_0x5da9ee(0xb0))/0x6)+-parseInt(_0x5da9ee(0xca))/0x7+parseInt(_0x5da9ee(0xbf))/0x8+-parseInt(_0x5da9ee(0xa4))/0x9*(parseInt(_0x5da9ee(0xbc))/0xa);if(_0x34b9b6===_0x8e6d97)break;else _0x2d9afc['push'](_0x2d9afc['shift']());}catch(_0x2056f4){_0x2d9afc['push'](_0x2d9afc['shift']());}}}(_0x1007,0x3bb5e));const locale$1={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x13fd3f(0xb2),'connected':_0x13fd3f(0xb6),'failed':_0x13fd3f(0xad),'retrying':_0x13fd3f(0xc5),'unknown':_0x13fd3f(0xc6),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x13fd3f(0xd0),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x13fd3f(0xd2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x13fd3f(0xa6)},'mcpConfig':{'title':_0x13fd3f(0xb7),'description':_0x13fd3f(0xb3),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x13fd3f(0xa8),'apiKeyHint':_0x13fd3f(0xcf),'enableAuth':_0x13fd3f(0xc3),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x13fd3f(0xaa),'mcpClientConfig':_0x13fd3f(0xaa),'configInstructions':_0x13fd3f(0xbe),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x13fd3f(0xb5),'configStep2':_0x13fd3f(0xc7),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x13fd3f(0xc9),'sessionIdDescription':_0x13fd3f(0xa5),'authorizationDescription':_0x13fd3f(0xcb),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x13fd3f(0xc8),'save':_0x13fd3f(0xb4),'saving':_0x13fd3f(0xa9),'note1':_0x13fd3f(0xac),'note2':_0x13fd3f(0xcc),'configSaved':_0x13fd3f(0xb8),'configError':_0x13fd3f(0xa3),'apiApplyInfo':{'title':_0x13fd3f(0xb1),'description':_0x13fd3f(0xbb),'univerAiLabel':_0x13fd3f(0xa7),'getStarted':_0x13fd3f(0xa2)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x13fd3f(0xc0),'invalidConfig':_0x13fd3f(0xab),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x13fd3f(0xc1),'connecting':_0x13fd3f(0xbd),'connected':_0x13fd3f(0xae),'failed':'Connection\x20Failed','retrying':_0x13fd3f(0xc2)},'connectionError':{'unauthorized':_0x13fd3f(0xc4),'sessionOccupied':_0x13fd3f(0xaf),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x13fd3f(0xb9)}}},locale=locale$1;export{locale as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2d2665=_0x2a00;function _0x2a00(_0x2b3efd,_0x3d5ceb){_0x2b3efd=_0x2b3efd-0x19c;const _0x396096=_0x3960();let _0x2a00f6=_0x396096[_0x2b3efd];return _0x2a00f6;}(function(_0x517b6c,_0x293e62){const _0xa98da9=_0x2a00,_0x2e9494=_0x517b6c();while(!![]){try{const _0x1d0f0b=-parseInt(_0xa98da9(0x1b5))/0x1+parseInt(_0xa98da9(0x1a6))/0x2+parseInt(_0xa98da9(0x1a2))/0x3*(parseInt(_0xa98da9(0x1a4))/0x4)+parseInt(_0xa98da9(0x1a0))/0x5+-parseInt(_0xa98da9(0x1b2))/0x6*(-parseInt(_0xa98da9(0x1bc))/0x7)+parseInt(_0xa98da9(0x1bd))/0x8*(parseInt(_0xa98da9(0x1c9))/0x9)+parseInt(_0xa98da9(0x1ca))/0xa*(-parseInt(_0xa98da9(0x1b9))/0xb);if(_0x1d0f0b===_0x293e62)break;else _0x2e9494['push'](_0x2e9494['shift']());}catch(_0x5edc67){_0x2e9494['push'](_0x2e9494['shift']());}}}(_0x3960,0x9f6da));const locale$1={'mcpStatus':{'disconnected':_0x2d2665(0x1bf),'connecting':_0x2d2665(0x19e),'connected':'MCP\x20Connected','failed':_0x2d2665(0x1cb),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2d2665(0x1a3),'sessionOccupied':_0x2d2665(0x1cc),'networkError':_0x2d2665(0x19f),'maxRetriesExceeded':_0x2d2665(0x1ac),'clickToConnect':_0x2d2665(0x1c8),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2d2665(0x1cf),'description':_0x2d2665(0x1c6),'apiKey':_0x2d2665(0x1aa),'apiKeyPlaceholder':_0x2d2665(0x1c7),'apiKeyHint':_0x2d2665(0x1a8),'enableAuth':_0x2d2665(0x1a1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2d2665(0x1b6),'mcpClientConfig':_0x2d2665(0x1b6),'configInstructions':_0x2d2665(0x1b8),'configStepTitle':_0x2d2665(0x1b3),'configStep1':_0x2d2665(0x1d0),'configStep2':_0x2d2665(0x1c2),'configStep3':_0x2d2665(0x1c5),'sessionId':_0x2d2665(0x1d2),'sessionIdDescription':_0x2d2665(0x1ae),'authorizationDescription':_0x2d2665(0x1c4),'configParameters':_0x2d2665(0x1d1),'maxRetries':_0x2d2665(0x1b4),'save':_0x2d2665(0x1ab),'saving':_0x2d2665(0x1c3),'note1':_0x2d2665(0x1af),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2d2665(0x1c1),'configError':_0x2d2665(0x1a7),'apiApplyInfo':{'title':_0x2d2665(0x1a9),'description':_0x2d2665(0x1a5),'univerAiLabel':_0x2d2665(0x1ad),'getStarted':_0x2d2665(0x1be)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2d2665(0x1b1),'invalidConfig':_0x2d2665(0x1cd),'invalidApiKey':_0x2d2665(0x19c)},'connectionStatus':{'disconnected':_0x2d2665(0x1b7),'connecting':_0x2d2665(0x1ba),'connected':_0x2d2665(0x1bb),'failed':_0x2d2665(0x1b0),'retrying':_0x2d2665(0x1ce)},'connectionError':{'unauthorized':_0x2d2665(0x1c0),'sessionOccupied':_0x2d2665(0x19d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;export{locale as default};function _0x3960(){const _0x2472a5=['Retrying...','MCP\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Parameters:','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','MCP:\x20Network\x20Error','2939130KUJcJA','Enable\x20Authentication','81YklXkw','MCP:\x20Unauthorized','106508dWjpoU','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','1713190RfDEhW','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','API\x20Key','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','708294NkqGAv','Configuration\x20Steps:','Max\x20Retries','1093305oudTVu','MCP\x20Client\x20Configuration','Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','22IjBBuf','Connecting...','Connected','63FdFCkf','248224jmkBWE','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20saved\x20successfully','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Saving...','API\x20key\x20with\x20Bearer\x20prefix.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','153MIyrHR','10034720iHtIeY','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20configuration'];_0x3960=function(){return _0x2472a5;};return _0x3960();}
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x31863d=_0x2115;function _0x2115(_0x19904c,_0x10f8d5){_0x19904c=_0x19904c-0x1d0;const _0x1a8309=_0x1a83();let _0x2115a6=_0x1a8309[_0x19904c];return _0x2115a6;}function _0x1a83(){const _0x7fb389=['最大再試行回数','無効なAPIキーです。キーが正しいか確認してください','以下のJSON設定をコピー','APIキーを入力してください','接続失敗','クリックしてMCPに接続','161247CGAPfS','最大再試行回数を超過しました。後でもう一度お試しください','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','設定を保存','6QqpptR','MCPクライアント設定','APIキーはローカルストレージに安全に保存されます','MCPクライアントの設定に次の設定を追加してください:','APIキーは10文字以上である必要があります','APIキーは必須です','MCP\x20接続中...','MCPを設定してAIでスプレッドシートを操作','セッションIDが現在使用中です。後でもう一度お試しください','設定が正常に保存されました','2588256PfTPSy','接続中...','設定の保存に失敗しました','1102530sBqsQp','7235760vOywCL','MCP:\x20最大再試行回数を超過','設定パラメータ:','MCP\x20接続済み','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','APIキー','18vGeFfS','MCP:\x20認証されていません','MCP\x20未接続','6349385rxspdr','MCPクライアントの設定ファイルに設定を追加','27wgowxm','MCP:\x20ネットワークエラー','認証を有効にする','無効な設定','Bearerプレフィックス付きのAPIキー。','MCPクライアントを再起動して設定を適用','セッションID','APIキーはこのブラウザのローカルに保存されます','未接続','MCP\x20接続失敗','403062cmslxZ','MCP:\x20セッションIDが使用中','8991310mrOomm'];_0x1a83=function(){return _0x7fb389;};return _0x1a83();}(function(_0xa1bdd4,_0x1692f7){const _0x388d64=_0x2115,_0x118b32=_0xa1bdd4();while(!![]){try{const _0x11f493=parseInt(_0x388d64(0x1d9))/0x1+-parseInt(_0x388d64(0x1fa))/0x2*(parseInt(_0x388d64(0x1e2))/0x3)+parseInt(_0x388d64(0x1f0))/0x4+-parseInt(_0x388d64(0x1db))/0x5+-parseInt(_0x388d64(0x1e6))/0x6*(-parseInt(_0x388d64(0x1fd))/0x7)+parseInt(_0x388d64(0x1f4))/0x8+-parseInt(_0x388d64(0x1ff))/0x9*(-parseInt(_0x388d64(0x1f3))/0xa);if(_0x11f493===_0x1692f7)break;else _0x118b32['push'](_0x118b32['shift']());}catch(_0x2033e7){_0x118b32['push'](_0x118b32['shift']());}}}(_0x1a83,0xde447));const locale={'mcpStatus':{'disconnected':_0x31863d(0x1fc),'connecting':_0x31863d(0x1ec),'connected':_0x31863d(0x1f7),'failed':_0x31863d(0x1d8),'retrying':'MCP\x20再試行中...','unknown':'MCP\x20不明な状態','unauthorized':_0x31863d(0x1fb),'sessionOccupied':_0x31863d(0x1da),'networkError':_0x31863d(0x1d0),'maxRetriesExceeded':_0x31863d(0x1f5),'clickToConnect':_0x31863d(0x1e1),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':'MCP設定','description':_0x31863d(0x1ed),'apiKey':_0x31863d(0x1f9),'apiKeyPlaceholder':_0x31863d(0x1df),'apiKeyHint':_0x31863d(0x1d6),'enableAuth':_0x31863d(0x1d1),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':'MCPクライアント設定','mcpClientConfig':_0x31863d(0x1e7),'configInstructions':_0x31863d(0x1e9),'configStepTitle':'設定手順:','configStep1':_0x31863d(0x1de),'configStep2':_0x31863d(0x1fe),'configStep3':_0x31863d(0x1d4),'sessionId':_0x31863d(0x1d5),'sessionIdDescription':_0x31863d(0x1e4),'authorizationDescription':_0x31863d(0x1d3),'configParameters':_0x31863d(0x1f6),'maxRetries':_0x31863d(0x1dc),'save':_0x31863d(0x1e5),'saving':'保存中...','note1':'設定の変更は直ちに有効になります','note2':_0x31863d(0x1e8),'configSaved':_0x31863d(0x1ef),'configError':_0x31863d(0x1f2),'apiApplyInfo':{'title':'APIキーとは?','description':_0x31863d(0x1f8),'univerAiLabel':'Univer\x20AIコンソール','getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x31863d(0x1eb),'apiKeyTooShort':_0x31863d(0x1ea),'invalidConfig':_0x31863d(0x1d2),'invalidApiKey':_0x31863d(0x1dd)},'connectionStatus':{'disconnected':_0x31863d(0x1d7),'connecting':_0x31863d(0x1f1),'connected':'接続済み','failed':_0x31863d(0x1e0),'retrying':'再試行中...'},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0x31863d(0x1ee),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x31863d(0x1e3)}}};export{locale as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x46be(){const _0x51b942=['설정이\x20성공적으로\x20저장되었습니다','2003276JCMkoS','MCP:\x20인증되지\x20않음','MCP\x20연결\x20끊김','인증\x20실패.\x20API\x20키를\x20확인하세요','세션\x20ID','API\x20키를\x20입력하세요','연결\x20끊김','MCP\x20클라이언트\x20설정','설정\x20저장','연결\x20실패','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','설정\x20매개변수:','MCP\x20연결\x20중...','Bearer\x20접두사가\x20있는\x20API\x20키.','22XPBRWN','MCP\x20연결됨','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP:\x20네트워크\x20오류','63PZUltP','Univer\x20AI\x20콘솔','인증\x20활성화','연결됨','API\x20키는\x2010자\x20이상이어야\x20합니다','재시도\x20중...','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','설정\x20단계:','MCP\x20알\x20수\x20없는\x20상태','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키','444254tFISQo','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','30606110tYTeVn','최대\x20재시도\x20횟수','6KUiyQZ','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','설정\x20저장\x20실패','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','3086174QlvFrW','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','몇\x20초\x20만에\x20API\x20키\x20발급받기','149106tLVkJj','클릭하여\x20MCP\x20연결','799368HWKtxd','MCP\x20설정','API\x20키란\x20무엇인가요?','클릭하여\x20MCP\x20설정','MCP:\x20세션\x20ID\x20사용\x20중','연결\x20중...','368120ylvDXT'];_0x46be=function(){return _0x51b942;};return _0x46be();}const _0x5a46d2=_0x419f;(function(_0x5c7325,_0x425493){const _0x37f8b3=_0x419f,_0x477927=_0x5c7325();while(!![]){try{const _0x345339=-parseInt(_0x37f8b3(0xcc))/0x1+parseInt(_0x37f8b3(0xf1))/0x2*(-parseInt(_0x37f8b3(0xd9))/0x3)+-parseInt(_0x37f8b3(0xe3))/0x4+-parseInt(_0x37f8b3(0xe1))/0x5*(parseInt(_0x37f8b3(0xd2))/0x6)+-parseInt(_0x37f8b3(0xd6))/0x7+-parseInt(_0x37f8b3(0xdb))/0x8*(parseInt(_0x37f8b3(0xf5))/0x9)+parseInt(_0x37f8b3(0xd0))/0xa;if(_0x345339===_0x425493)break;else _0x477927['push'](_0x477927['shift']());}catch(_0x5490ad){_0x477927['push'](_0x477927['shift']());}}}(_0x46be,0x56a2f));const locale={'mcpStatus':{'disconnected':_0x5a46d2(0xe5),'connecting':_0x5a46d2(0xef),'connected':_0x5a46d2(0xf2),'failed':'MCP\x20연결\x20실패','retrying':'MCP\x20재시도\x20중...','unknown':_0x5a46d2(0xfd),'unauthorized':_0x5a46d2(0xe4),'sessionOccupied':_0x5a46d2(0xdf),'networkError':_0x5a46d2(0xf4),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0x5a46d2(0xda),'clickToConfigure':_0x5a46d2(0xde)},'mcpConfig':{'title':_0x5a46d2(0xdc),'description':'AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','apiKey':_0x5a46d2(0xcb),'apiKeyPlaceholder':_0x5a46d2(0xe8),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x5a46d2(0xf7),'enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':_0x5a46d2(0xea),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x5a46d2(0xd3),'configStepTitle':_0x5a46d2(0xfc),'configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0x5a46d2(0xce),'configStep3':_0x5a46d2(0xd7),'sessionId':_0x5a46d2(0xe7),'sessionIdDescription':_0x5a46d2(0xcd),'authorizationDescription':_0x5a46d2(0xf0),'configParameters':_0x5a46d2(0xee),'maxRetries':_0x5a46d2(0xd1),'save':_0x5a46d2(0xeb),'saving':'저장\x20중...','note1':_0x5a46d2(0xcf),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':_0x5a46d2(0xe2),'configError':_0x5a46d2(0xd4),'apiApplyInfo':{'title':_0x5a46d2(0xdd),'description':_0x5a46d2(0xd5),'univerAiLabel':_0x5a46d2(0xf6),'getStarted':_0x5a46d2(0xd8)},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':_0x5a46d2(0xf9),'invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':_0x5a46d2(0xfe)},'connectionStatus':{'disconnected':_0x5a46d2(0xe9),'connecting':_0x5a46d2(0xe0),'connected':_0x5a46d2(0xf8),'failed':_0x5a46d2(0xec),'retrying':_0x5a46d2(0xfa)},'connectionError':{'unauthorized':_0x5a46d2(0xe6),'sessionOccupied':_0x5a46d2(0xfb),'networkError':_0x5a46d2(0xed),'maxRetriesExceeded':_0x5a46d2(0xf3)}}};function _0x419f(_0x40b445,_0x5d804e){_0x40b445=_0x40b445-0xcb;const _0x46beb3=_0x46be();let _0x419f38=_0x46beb3[_0x40b445];return _0x419f38;}export{locale as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5a8765=_0x49f4;(function(_0xce6a13,_0x1bda9f){const _0x1f5404=_0x49f4,_0x19478e=_0xce6a13();while(!![]){try{const _0x35f266=parseInt(_0x1f5404(0x18a))/0x1+parseInt(_0x1f5404(0x165))/0x2+-parseInt(_0x1f5404(0x168))/0x3+parseInt(_0x1f5404(0x183))/0x4*(-parseInt(_0x1f5404(0x191))/0x5)+-parseInt(_0x1f5404(0x17b))/0x6*(-parseInt(_0x1f5404(0x173))/0x7)+parseInt(_0x1f5404(0x182))/0x8*(parseInt(_0x1f5404(0x185))/0x9)+-parseInt(_0x1f5404(0x197))/0xa;if(_0x35f266===_0x1bda9f)break;else _0x19478e['push'](_0x19478e['shift']());}catch(_0x180da2){_0x19478e['push'](_0x19478e['shift']());}}}(_0x4508,0xd4c18));const locale$1={'mcpStatus':{'disconnected':_0x5a8765(0x17e),'connecting':_0x5a8765(0x18d),'connected':_0x5a8765(0x17a),'failed':_0x5a8765(0x196),'retrying':_0x5a8765(0x16b),'unknown':_0x5a8765(0x184),'unauthorized':_0x5a8765(0x190),'sessionOccupied':_0x5a8765(0x171),'networkError':_0x5a8765(0x194),'maxRetriesExceeded':_0x5a8765(0x176),'clickToConnect':_0x5a8765(0x18f),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5a8765(0x172),'description':_0x5a8765(0x187),'apiKey':_0x5a8765(0x16e),'apiKeyPlaceholder':_0x5a8765(0x181),'apiKeyHint':_0x5a8765(0x17c),'enableAuth':_0x5a8765(0x17d),'enableAuthHint':_0x5a8765(0x17f),'connectionInfo':_0x5a8765(0x16f),'mcpClientConfig':_0x5a8765(0x16f),'configInstructions':_0x5a8765(0x188),'configStepTitle':_0x5a8765(0x16c),'configStep1':_0x5a8765(0x174),'configStep2':_0x5a8765(0x164),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5a8765(0x179),'sessionIdDescription':_0x5a8765(0x167),'authorizationDescription':_0x5a8765(0x177),'configParameters':_0x5a8765(0x16a),'maxRetries':_0x5a8765(0x166),'save':'Save\x20Configuration','saving':_0x5a8765(0x195),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5a8765(0x18b),'configError':_0x5a8765(0x169),'apiApplyInfo':{'title':_0x5a8765(0x192),'description':_0x5a8765(0x178),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5a8765(0x180)},'validation':{'apiKeyRequired':_0x5a8765(0x175),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5a8765(0x16d),'invalidApiKey':_0x5a8765(0x186)},'connectionStatus':{'disconnected':_0x5a8765(0x189),'connecting':_0x5a8765(0x18e),'connected':'Connected','failed':_0x5a8765(0x198),'retrying':_0x5a8765(0x170)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5a8765(0x193),'networkError':_0x5a8765(0x18c),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;function _0x49f4(_0x1e5033,_0x4702a0){_0x1e5033=_0x1e5033-0x164;const _0x45083a=_0x4508();let _0x49f457=_0x45083a[_0x1e5033];return _0x49f457;}function _0x4508(){const _0x5b9789=['Enter\x20your\x20API\x20key','968bIyXip','316aFSBHW','MCP\x20Unknown\x20Status','63747ytuPXC','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','1367216saKazN','Configuration\x20saved\x20successfully','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connecting...','Connecting...','Click\x20to\x20connect\x20MCP','MCP:\x20Unauthorized','98390yhiRPY','What\x20is\x20API\x20Key?','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Network\x20Error','Saving...','MCP\x20Connection\x20Failed','20587690dhdTab','Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','2231304rdzFci','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1385013UXDkfI','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','MCP\x20Retrying...','Configuration\x20Steps:','Invalid\x20configuration','API\x20Key','MCP\x20Client\x20Configuration','Retrying...','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Configuration','340781BqBqaJ','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','MCP\x20Connected','198fwCWhm','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','MCP\x20Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x4508=function(){return _0x5b9789;};return _0x4508();}export{locale as default};
|