@univerjs-pro/mcp-ui 0.23.0 → 0.24.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 +3 -3
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x24e2fc=_0x1ffc;(function(_0x48e63d,_0x151f61){const _0x15b1ad=_0x1ffc,_0x56663e=_0x48e63d();while(!![]){try{const _0x18c108=parseInt(_0x15b1ad(0x2e2))/0x1+-parseInt(_0x15b1ad(0x2c9))/0x2*(parseInt(_0x15b1ad(0x251))/0x3)+-parseInt(_0x15b1ad(0x2fc))/0x4*(-parseInt(_0x15b1ad(0x29d))/0x5)+parseInt(_0x15b1ad(0x1f9))/0x6+-parseInt(_0x15b1ad(0x21a))/0x7+parseInt(_0x15b1ad(0x246))/0x8*(parseInt(_0x15b1ad(0x2ed))/0x9)+parseInt(_0x15b1ad(0x2bb))/0xa*(-parseInt(_0x15b1ad(0x1f1))/0xb);if(_0x18c108===_0x151f61)break;else _0x56663e['push'](_0x56663e['shift']());}catch(_0x5114cb){_0x56663e['push'](_0x56663e['shift']());}}}(_0x4b3e,0xa2034));import{CommandType as _0x2f411b,DependentOn as _0x55f634,Disposable as _0x553c10,ICommandService as _0x274b3d,IConfigService as _0x16e4b4,ILocalStorageService as _0x5192e1,ILogService as _0x3720d4,Inject as _0x17ef4b,Injector as _0x498a04,LocaleService as _0x58c1f8,Plugin as _0x210a69,merge as _0x5b05be}from'@univerjs/core';import{MCPConnectionController as _0x3a6502,MCPConnectionError as _0x4f8a1c,MCPConnectionStatus as _0x440b2d,MCP_PLUGIN_CONFIG_KEY as _0x15ca7d,UniverMCPPlugin as _0x2ba359}from'@univerjs-pro/mcp';import{Button as _0x979000,Input as _0x17d910,MessageType as _0x4b0c69,Tooltip as _0x48d592,clsx as _0xe696c7}from'@univerjs/design';import{BuiltInUIPart as _0x5d5a0c,ComponentManager as _0x26c3a3,IDialogService as _0x4d970d,IMenuManagerService as _0x2be40c,IMessageService as _0x34758a,IUIPartsService as _0xbb3625,MenuItemType as _0x547bdc,RibbonStartGroup as _0x66f7f3,connectInjector as _0xd78b8b,useDependency as _0x5d46a2,useObservable as _0x12c36e}from'@univerjs/ui';function _0x4b3e(){const _0x5b0d1e=['univer-text-white','MCP:\x20会话\x20ID\x20已被占用','20meFObI','univer-min-w-0\x20univer-flex-1','连接中...','MCP\x20Retrying...','Invalid\x20configuration','未连接','registerComponent','FAILED','_mcpCoreConfig$','value','mcpConfig.connectionInfo','_uiPartsService','mcpConfig.apiKeyPlaceholder','mcpStatus.clickToConnect','1378348byIxEa','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','string','0.23.0','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-text-green-500','MCP\x20连接中...','配置步骤:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','object','add','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.plus','CONNECTED','warn','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','mcp-ui.command.openConfigPanel','setConfig','网络连接错误,请检查您的网络连接','mcpConfig.apiKey','univer-bg-green-500','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','stringify','Success','1040284WKDTjU','Enable\x20Authentication','RETRYING','push','复制以下\x20JSON\x20配置','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置参数:','univer-space-y-2','getConfig','sessionId$','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','180594POtpkO','MCP:\x20Network\x20Error','univer-text-red-500','MCP_UI_PLUGIN','setItem','show','mcpServerUrl','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP\x20客户端配置','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-sm\x20univer-text-gray-500','Max\x20Retries','重连中...','MCP\x20连接失败','1392460HwYfly','version','配置保存成功','getOwnPropertyDescriptor','DISCONNECTED','@univerjs-pro/mcp-ui','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','has','univer-text-gray-400','univer-space-y-3','_loadStoredApiKey','请输入您的\x20API\x20密钥','mcpConfig.connectionError.unauthorized','errorMessage','_handleConfigSave','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','showDeveloperTools','close','mcpConfig.apiApplyInfo.title','enableAutoConnect','几秒钟内获取您的\x20API\x20密钥','Disconnected','Connection\x20Failed','univer-font-medium','univer-text-xs\x20univer-text-gray-500','_localStorageService','_config$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20密钥','Session\x20ID','\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','packageName','_configService','_initializeMenus','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','subscribeConfigValue$','univer-bg-blue-500','_menuManagerService','univer-space-y-5','univer-text-yellow-500','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','Get\x20your\x20API\x20key\x20in\x20seconds','6846917UWqTgP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-flex\x20univer-items-center\x20univer-gap-2','__setCustomHeaders','MCP:\x20超出最大重试次数','constructor','MCP\x20Unknown\x20Status','mcpConfig.authorizationDescription','3974802zOWACE','label','forEach','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.note2','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','defineProperty','_validateConfig','Retrying...','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_mcpConnectionController','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.connecting','connectionError$','_initStatusComponent','https://mcp.univer.ai/mcp/?univer_session_id=','connectionStatus$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','symbol','https://console.univer.plus','NONE','_commandService','showConfigPanel','mcpConfig.description','toPrimitive','_connectionController','UNAUTHORIZED','getItem','Error','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MAX_RETRIES_EXCEEDED','13783znffYC','prototype','error','mcpStatus.maxRetriesExceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.configStep3','_injector','Connecting...','_loading$','\x20-\x20','_registerComponent','OTHERS','subscribe','mcpStatus.networkError','div','Configuration\x20Steps:','权限验证失败,请检查您的\x20API\x20密钥','next','mcpConfig.validation.apiKeyTooShort','univer-flex\x20univer-gap-3','registerCommand','univer-flex\x20univer-items-center\x20univer-gap-3','SESSION_ID_OCCUPIED','API\x20密钥长度至少需要\x2010\x20位','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','open','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Enter\x20your\x20API\x20key','mcpConfig.configStep1','mcpStatus.connected','mcpConfig.apiKeyHint','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','text','mcpConfig.configParameters','mcpConfig.connectionStatus.failed','univer-flex-1','_apiKey$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_localeService','mcpConfig.connectionStatus.connected','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','已连接','80agbRrY','mcpConfig.connectionStatus.connecting','API\x20密钥无效,请检查密钥是否正确','noopener\x20noreferrer','mcpConfig.note1','配置无效','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','_config','mcpConfig.apiApplyInfo.description','register','3dAVUES','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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-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','点击配置\x20MCP','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','length','mcpStatus.retrying','includes','mcpConfig.configSaved','mcpStatus.clickToConfigure','univer-bg-red-500','MCP:\x20未授权','showStatus','mcpConfig.configStepTitle','MCPConfigPanel','bottom','decorate','带有\x20Bearer\x20前缀的\x20API\x20密钥。','保存配置','univer-flex\x20univer-items-start\x20univer-gap-3','What\x20is\x20API\x20Key?','mcpStatus.unknown','您的\x20API\x20密钥将在此浏览器中本地存储','univer.ai','_initializeCommands','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Connected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP:\x20Unauthorized','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','pluginName','Configuration\x20saved\x20successfully','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-text-sm\x20univer-font-medium','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','off','mcpConfig.save','http','univer-flex\x20univer-items-start\x20univer-gap-2','Bearer\x20','trim','点击连接\x20MCP','apiKey','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','https://console.univer.ai','iterator','配置保存失败','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcp.apiKey','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','disposeWithMe','span','MCP\x20Disconnected','_logService','univer-text-blue-600','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','MCP\x20Connected','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.configStep2','function','_dialogService','mcpConfig.connectionError.maxRetriesExceeded','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','<API_KEY>','Saving...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpStatus.failed','mcpConfig.title','_blank','mergeMenu','连接失败','10qfPWQk','mcpStatus.sessionOccupied','MCP\x20已断开','Univer\x20AI\x20控制台','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Authorization:','mcpConfig.validation.invalidConfig','mcpConfig.apiApplyInfo.getStarted','onStarting','COMMAND','_handleConfigure','Enable\x20authentication\x20for\x20secure\x20connections','get','MCP\x20Configuration','MCP:\x20网络错误','BUTTON','NETWORK_ERROR','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','button','_initConfigSync','univer-bg-gray-500','会话ID','isValid','_createConfigPanelComponent','mcpConfig.saving','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','CONNECTING','_componentManager'];_0x4b3e=function(){return _0x5b0d1e;};return _0x4b3e();}import{BehaviorSubject as _0x4bb220}from'rxjs';function _0x1ffc(_0x38081f,_0x257c3c){_0x38081f=_0x38081f-0x1ed;const _0x4b3e5c=_0x4b3e();let _0x1ffc6a=_0x4b3e5c[_0x38081f];return _0x1ffc6a;}import{CheckMarkIcon as _0x4ed399,CloseIcon as _0x161a36,HelpIcon as _0x347fde,OffLineIcon as _0x619373,OnLineIcon as _0x2e186b}from'@univerjs/icons';import{useCallback as _0x526f6e,useState as _0x39d669}from'react';import{jsx as _0x19478f,jsxs as _0x4ad251}from'react/jsx-runtime';import{ISocketService as _0x184860,WebSocketService as _0x3859a6}from'@univerjs/network';function z(_0x5ec482){const _0x3525a0=_0x1ffc;var _0x38271d,_0x1168d0;let {mcpCoreConfig:_0x5d6c31,onSave:_0x39585b,loading:_0x32c72a=!0x1,config:_0x3a5ba1,connectionStatus$:_0x2dccf7,connectionError$:_0x39ef50,currentApiKey$:_0x2361b0,currentSessionId$:_0x107f2f}=_0x5ec482,_0x271951=_0x5d46a2(_0x58c1f8),_0x4be279=_0x12c36e(_0x2dccf7,_0x440b2d[_0x3525a0(0x300)]),_0x3a42ac=_0x12c36e(_0x39ef50,_0x4f8a1c[_0x3525a0(0x20d)]),_0x321029=_0x12c36e(_0x107f2f,''),[_0x5960a9,_0x2ccefb]=_0x39d669(_0x12c36e(_0x2361b0,'')||''),_0x5cfe5d=_0x3a5ba1[_0x3525a0(0x30e)]&&_0x5d6c31[_0x3525a0(0x2f3)]&&(_0x5d6c31['mcpServerUrl']['includes'](_0x3525a0(0x2d5))||_0x5d6c31['mcpServerUrl'][_0x3525a0(0x259)](_0x3525a0(0x269))),_0x4765f2=(_0x38271d=_0x5d6c31[_0x3525a0(0x2f3)])==null?void 0x0:_0x38271d['includes'](_0x3525a0(0x2d5)),_0x5f2368=(_0x1168d0=_0x5d6c31['mcpServerUrl'])==null?void 0x0:_0x1168d0[_0x3525a0(0x259)]('univer.ai'),_0x1b17d3=_0x4765f2?_0x3525a0(0x20c):_0x3525a0(0x27e),_0x529be5=_0x3a5ba1[_0x3525a0(0x30e)]&&(_0x4765f2||_0x5f2368),[_0x4e266c,_0x27fd24]=_0x39d669(!_0x5960a9[_0x3525a0(0x27a)]()),_0x2bb093=(_0x1617fd,_0x5012fe)=>{const _0x51ea61=_0x3525a0;if(_0x5012fe===_0x4f8a1c[_0x51ea61(0x213)])return _0x51ea61(0x30d);switch(_0x1617fd){case _0x440b2d[_0x51ea61(0x2d6)]:return _0x51ea61(0x2f4);case _0x440b2d['CONNECTING']:case _0x440b2d['RETRYING']:return _0x51ea61(0x26d);case _0x440b2d[_0x51ea61(0x2c2)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x51ea61(0x320);}},_0x25d1b3=(_0x3485e4,_0x3747b6)=>{const _0x5f1a06=_0x3525a0;if(_0x3747b6===_0x4f8a1c['UNAUTHORIZED'])return _0x5f1a06(0x25c);switch(_0x3485e4){case _0x440b2d['CONNECTED']:return _0x5f1a06(0x2de);case _0x440b2d['CONNECTING']:case _0x440b2d['RETRYING']:return _0x5f1a06(0x322);case _0x440b2d['FAILED']:return _0x5f1a06(0x25c);default:return _0x5f1a06(0x2b1);}},_0x128034=_0x489383=>{const _0x3aa6f5=_0x3525a0;switch(_0x489383){case _0x440b2d[_0x3aa6f5(0x2d6)]:return _0x271951['t'](_0x3aa6f5(0x243));case _0x440b2d[_0x3aa6f5(0x2b7)]:return _0x271951['t'](_0x3aa6f5(0x247));case _0x440b2d[_0x3aa6f5(0x2c2)]:return _0x271951['t'](_0x3aa6f5(0x23e));case _0x440b2d[_0x3aa6f5(0x2e4)]:return _0x271951['t']('mcpConfig.connectionStatus.retrying');default:return _0x271951['t']('mcpConfig.connectionStatus.disconnected');}},_0x57ab4b=_0x532ae2=>{const _0x68f161=_0x3525a0;switch(_0x532ae2){case _0x4f8a1c[_0x68f161(0x213)]:return _0x271951['t'](_0x68f161(0x30a));case _0x4f8a1c['SESSION_ID_OCCUPIED']:return _0x271951['t']('mcpConfig.connectionError.sessionOccupied');case _0x4f8a1c[_0x68f161(0x2ad)]:return _0x271951['t']('mcpConfig.connectionError.networkError');case _0x4f8a1c[_0x68f161(0x219)]:return _0x271951['t'](_0x68f161(0x291));default:return'';}},_0x3b6f9b=_0x526f6e(()=>{const _0x41a729=_0x3525a0;_0x39585b({..._0x5d6c31,'apiKey':_0x5960a9[_0x41a729(0x27a)](),'enableAuth':!0x0});},[_0x5d6c31,_0x5960a9,!0x0,_0x39585b]),_0x4ce68d=_0x5960a9[_0x3525a0(0x27a)]()['length']>0x0;return _0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x294),'children':[_0x19478f('div',{'className':_0x3525a0(0x2ca),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x22f),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2ae),'children':_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x2b9),'children':'⚙'})}),_0x19478f(_0x3525a0(0x228),{'children':_0x19478f('p',{'className':_0x3525a0(0x2f8),'children':_0x271951['t'](_0x3525a0(0x210))})})]})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2d4),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0xe696c7(_0x3525a0(0x1fe),_0x2bb093(_0x4be279,_0x3a42ac)),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x1f3),'children':[_0x19478f('div',{'className':_0xe696c7('univer-size-2\x20univer-rounded-full',_0x25d1b3(_0x4be279,_0x3a42ac))}),_0x19478f('span',{'className':_0x3525a0(0x273),'children':_0x128034(_0x4be279)})]})}),_0x3a42ac!==_0x4f8a1c[_0x3525a0(0x20d)]&&(_0x4be279===_0x440b2d[_0x3525a0(0x2c2)]||_0x3a42ac===_0x4f8a1c[_0x3525a0(0x213)])&&_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2ec),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x278),'children':[_0x19478f(_0x3525a0(0x286),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x19478f('p',{'className':_0x3525a0(0x241),'children':_0x57ab4b(_0x3a42ac)})]})})]}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x319),'children':_0x4ad251('div',{'className':_0x3525a0(0x1ed),'children':[_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2e9),'children':[_0x4ad251(_0x3525a0(0x1fa),{'className':_0x3525a0(0x26b),'children':[_0x19478f(_0x3525a0(0x286),{'children':'🔑'}),'\x20',_0x271951['t'](_0x3525a0(0x2dd)),_0x19478f('span',{'className':'univer-text-red-500','children':'*'}),_0x5cfe5d&&_0x19478f('a',{'className':_0x3525a0(0x2df),'title':_0x271951['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x27fd24(!0x0),'children':_0x19478f(_0x347fde,{})})]}),_0x19478f(_0x17d910,{'type':_0x3525a0(0x23c),'placeholder':_0x271951['t'](_0x3525a0(0x2c7)),'value':_0x5960a9,'disabled':_0x32c72a,'autoComplete':_0x3525a0(0x275),'onChange':_0x2ccefb}),_0x19478f('p',{'className':_0x3525a0(0x316),'children':_0x271951['t'](_0x3525a0(0x238))})]}),_0x5cfe5d&&_0x4e266c&&_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x254),'children':[_0x19478f('a',{'className':_0x3525a0(0x1ef),'role':'button','onClick':()=>_0x27fd24(!0x1),'children':_0x19478f(_0x161a36,{'className':'univer-size-4'})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x24d),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x256),'children':_0x19478f('span',{'className':_0x3525a0(0x289),'children':'🚀'})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x23f),'children':[_0x19478f('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x271951['t'](_0x3525a0(0x310))}),_0x19478f('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x271951['t'](_0x3525a0(0x24f))}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x297),'children':_0x529be5&&_0x4ad251('a',{'className':_0x3525a0(0x253),'href':_0x1b17d3,'target':_0x3525a0(0x29a),'rel':_0x3525a0(0x249),'children':[_0x19478f(_0x3525a0(0x286),{'children':'🤖'}),_0x271951['t'](_0x3525a0(0x2f7)),_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x306),'children':'↗'})]})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2b6),'children':['✨','\x20',_0x271951['t'](_0x3525a0(0x2a4))]})]})]})]}),_0x3a5ba1[_0x3525a0(0x30e)]&&_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x27d),'children':[_0x4ad251('h4',{'className':_0x3525a0(0x23b),'children':[_0x19478f('span',{'children':'🔗'}),'\x20',_0x271951['t'](_0x3525a0(0x2c5))]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-4','children':[_0x4ad251('div',{'className':_0x3525a0(0x307),'children':[_0x19478f('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x271951['t']('mcpConfig.configInstructions')}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-2','children':[_0x19478f('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x271951['t'](_0x3525a0(0x25f))}),_0x4ad251('div',{'className':_0x3525a0(0x2e7),'children':[_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x23a),'children':'1'}),_0x271951['t'](_0x3525a0(0x236))]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x23a),'children':'2'}),_0x271951['t'](_0x3525a0(0x28e))]}),_0x4ad251('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f('span',{'className':_0x3525a0(0x23a),'children':'3'}),_0x271951['t'](_0x3525a0(0x21f))]})]})]})]}),_0x4ad251('div',{'className':_0x3525a0(0x2e9),'children':[_0x19478f(_0x3525a0(0x228),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3525a0(0x2aa)}),_0x19478f('div',{'className':_0x3525a0(0x302),'children':_0x19478f('pre',{'className':_0x3525a0(0x204),'children':JSON[_0x3525a0(0x2e0)]({'mcpServers':{'univer':{'url':_0x3525a0(0x208)+(_0x321029||'<SESSION_ID>'),'type':_0x3525a0(0x277),'headers':{'Authorization':_0x3525a0(0x279)+(_0x5960a9||_0x3525a0(0x295))}}}},null,0x2)})})]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-3','children':[_0x19478f(_0x3525a0(0x228),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x271951['t'](_0x3525a0(0x23d))}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-2','children':[_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x19478f('div',{'className':_0x3525a0(0x2f6)}),_0x4ad251('div',{'className':_0x3525a0(0x2bc),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2a1),'children':'univer_session_id:'}),_0x19478f('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x271951['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x265),'children':[_0x19478f('div',{'className':_0x3525a0(0x2f6)}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2bc),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2a1),'children':_0x3525a0(0x2a2)}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x316),'children':_0x271951['t'](_0x3525a0(0x1f8))})]})]})]})]})]})]}),_0x19478f(_0x979000,{'onClick':_0x3b6f9b,'disabled':!_0x4ce68d||_0x32c72a,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x32c72a?_0x4ad251(_0x3525a0(0x286),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f('span',{'children':'⟲'}),_0x271951['t'](_0x3525a0(0x2b5))]}):_0x4ad251(_0x3525a0(0x286),{'className':_0x3525a0(0x1f3),'children':[_0x19478f(_0x4ed399,{}),_0x271951['t'](_0x3525a0(0x276))]})}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x202),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x22d),'children':[_0x19478f('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x4ad251('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x315),'children':'Configuration\x20Notes:'}),_0x4ad251(_0x3525a0(0x228),{'children':['•',_0x271951['t'](_0x3525a0(0x24a))]}),_0x4ad251(_0x3525a0(0x228),{'children':['•',_0x271951['t'](_0x3525a0(0x1fd))]})]})]})})]})})]});}const B='mcp-ui.config';Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x98d677){'@babel/helpers - typeof';const _0x244465=_0x1ffc;return H=typeof Symbol==_0x244465(0x28f)&&typeof Symbol[_0x244465(0x27f)]==_0x244465(0x20b)?function(_0xc6dabe){return typeof _0xc6dabe;}:function(_0x259a3f){const _0x26b283=_0x244465;return _0x259a3f&&typeof Symbol==_0x26b283(0x28f)&&_0x259a3f[_0x26b283(0x1f6)]===Symbol&&_0x259a3f!==Symbol[_0x26b283(0x21b)]?_0x26b283(0x20b):typeof _0x259a3f;},H(_0x98d677);}function oe(_0x3d033d,_0x4b508a){const _0xa3501=_0x1ffc;if(H(_0x3d033d)!=_0xa3501(0x2d2)||!_0x3d033d)return _0x3d033d;var _0x2613a2=_0x3d033d[Symbol[_0xa3501(0x211)]];if(_0x2613a2!==void 0x0){var _0x396eda=_0x2613a2['call'](_0x3d033d,_0x4b508a||'default');if(H(_0x396eda)!=_0xa3501(0x2d2))return _0x396eda;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4b508a===_0xa3501(0x2cb)?String:Number)(_0x3d033d);}function se(_0x23e8f1){const _0x571051=_0x1ffc;var _0xf3e5f3=oe(_0x23e8f1,_0x571051(0x2cb));return H(_0xf3e5f3)==_0x571051(0x20b)?_0xf3e5f3:_0xf3e5f3+'';}function U(_0x346a19,_0x4b0ba3,_0x3cda37){return(_0x4b0ba3=se(_0x4b0ba3))in _0x346a19?Object['defineProperty'](_0x346a19,_0x4b0ba3,{'value':_0x3cda37,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x346a19[_0x4b0ba3]=_0x3cda37,_0x346a19;}function W(_0x3c463a,_0x48436b){return function(_0x589983,_0x27aa5e){_0x48436b(_0x589983,_0x27aa5e,_0x3c463a);};}function G(_0x5bcc7d,_0x18a431,_0x30eb75,_0x1c21ba){const _0x350520=_0x1ffc;var _0x11f209=arguments[_0x350520(0x257)],_0x5859ff=_0x11f209<0x3?_0x18a431:_0x1c21ba===null?_0x1c21ba=Object[_0x350520(0x2ff)](_0x18a431,_0x30eb75):_0x1c21ba,_0x232a1d;if(typeof Reflect==_0x350520(0x2d2)&&typeof Reflect['decorate']=='function')_0x5859ff=Reflect[_0x350520(0x262)](_0x5bcc7d,_0x18a431,_0x30eb75,_0x1c21ba);else{for(var _0x1d6b85=_0x5bcc7d[_0x350520(0x257)]-0x1;_0x1d6b85>=0x0;_0x1d6b85--)(_0x232a1d=_0x5bcc7d[_0x1d6b85])&&(_0x5859ff=(_0x11f209<0x3?_0x232a1d(_0x5859ff):_0x11f209>0x3?_0x232a1d(_0x18a431,_0x30eb75,_0x5859ff):_0x232a1d(_0x18a431,_0x30eb75))||_0x5859ff);}return _0x11f209>0x3&&_0x5859ff&&Object[_0x350520(0x1ff)](_0x18a431,_0x30eb75,_0x5859ff),_0x5859ff;}const K=_0x24e2fc(0x283),q='mcp-config-dialog';let J=class extends _0x553c10{constructor(_0x5e351e,_0x3ab646,_0x42c83e,_0x5e37ec,_0x2767ba,_0x26f814,_0x1c46de,_0x2cbd8c,_0x58387f,_0x358328){const _0x5163a=_0x24e2fc;super(),this[_0x5163a(0x220)]=_0x5e351e,this[_0x5163a(0x2c6)]=_0x3ab646,this[_0x5163a(0x31e)]=_0x42c83e,this[_0x5163a(0x317)]=_0x5e37ec,this[_0x5163a(0x290)]=_0x2767ba,this['_messageService']=_0x26f814,this[_0x5163a(0x2b8)]=_0x1c46de,this[_0x5163a(0x242)]=_0x2cbd8c,this['_logService']=_0x58387f,this[_0x5163a(0x203)]=_0x358328,U(this,_0x5163a(0x222),new _0x4bb220(!0x1)),U(this,'_mcpCoreConfig$',new _0x4bb220({})),U(this,_0x5163a(0x318),new _0x4bb220({})),U(this,_0x5163a(0x240),new _0x4bb220('')),U(this,_0x5163a(0x30c),async _0xd8700f=>{const _0x2f24cf=_0x5163a;this['_loading$'][_0x2f24cf(0x22b)](!0x0);try{var _0x266908,_0x43005a;let _0x1f8280=await this[_0x2f24cf(0x200)](_0xd8700f);if(!_0x1f8280['isValid']){this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x215)],'content':_0x1f8280[_0x2f24cf(0x30b)]||this[_0x2f24cf(0x242)]['t'](_0x2f24cf(0x2a3))});return;}_0xd8700f[_0x2f24cf(0x27c)]?await this[_0x2f24cf(0x317)][_0x2f24cf(0x2f1)](K,_0xd8700f[_0x2f24cf(0x27c)][_0x2f24cf(0x27a)]()):await this[_0x2f24cf(0x317)]['removeItem'](K),this[_0x2f24cf(0x240)]['next'](((_0x266908=_0xd8700f[_0x2f24cf(0x27c)])==null?void 0x0:_0x266908['trim']())||''),this[_0x2f24cf(0x203)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x43005a=_0xd8700f[_0x2f24cf(0x27c)])==null?void 0x0:_0x43005a[_0x2f24cf(0x27a)]())}),this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x2e1)],'content':this[_0x2f24cf(0x242)]['t'](_0x2f24cf(0x25a))}),setTimeout(()=>{const _0x223e40=_0x2f24cf;this['_dialogService'][_0x223e40(0x30f)](q);},0x320);}catch(_0x2b2c71){this[_0x2f24cf(0x288)][_0x2f24cf(0x21c)](_0x2f24cf(0x274),_0x2b2c71),this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x215)],'content':this[_0x2f24cf(0x242)]['t']('mcpConfig.configError')});}finally{this[_0x2f24cf(0x222)][_0x2f24cf(0x22b)](!0x1);}}),this[_0x5163a(0x2b0)](),this[_0x5163a(0x308)](),this[_0x5163a(0x224)]();}[_0x24e2fc(0x20f)](){const _0x218016=_0x24e2fc;let _0x1a9c76=this[_0x218016(0x31e)][_0x218016(0x2ea)](B);_0x1a9c76!=null&&_0x1a9c76[_0x218016(0x30e)]&&this['_dialogService'][_0x218016(0x233)]({'id':q,'title':{'title':this[_0x218016(0x242)]['t'](_0x218016(0x299))},'children':{'label':_0x218016(0x260)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4b7762=_0x218016;this[_0x4b7762(0x290)][_0x4b7762(0x30f)](q);}});}['getCurrentConfig'](){const _0x50ac9c=_0x24e2fc;return this[_0x50ac9c(0x2c3)][_0x50ac9c(0x2c4)];}[_0x24e2fc(0x224)](){const _0x593179=_0x24e2fc;this['disposeWithMe'](this['_componentManager'][_0x593179(0x250)](_0x593179(0x260),this[_0x593179(0x2b4)]()));}['_createConfigPanelComponent'](){const _0x57a3ce=_0x24e2fc;return _0xd78b8b(()=>{const _0x395199=_0x1ffc;var _0x4c64d6,_0x2ba410,_0x36667b;return _0x19478f(z,{'config':this[_0x395199(0x318)][_0x395199(0x2c4)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x395199(0x2c4)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x395199(0x30c)],'loading':this[_0x395199(0x222)][_0x395199(0x2c4)],'connectionStatus$':(_0x4c64d6=this[_0x395199(0x203)])==null?void 0x0:_0x4c64d6[_0x395199(0x209)],'connectionError$':(_0x2ba410=this['_mcpConnectionController'])==null?void 0x0:_0x2ba410[_0x395199(0x206)],'currentSessionId$':(_0x36667b=this[_0x395199(0x203)])==null?void 0x0:_0x36667b[_0x395199(0x2eb)]});},this[_0x57a3ce(0x220)]);}[_0x24e2fc(0x2b0)](){const _0x44ba0c=_0x24e2fc;this['disposeWithMe'](this[_0x44ba0c(0x31e)][_0x44ba0c(0x321)](_0x15ca7d)[_0x44ba0c(0x226)](_0x5671c5=>{const _0x3e7aa3=_0x44ba0c;this[_0x3e7aa3(0x2c3)]['next'](_0x5671c5||{});}));let _0x423898=this[_0x44ba0c(0x31e)][_0x44ba0c(0x2ea)](_0x15ca7d);this['_mcpCoreConfig$'][_0x44ba0c(0x22b)](_0x423898||{}),this[_0x44ba0c(0x285)](this['_configService'][_0x44ba0c(0x321)](B)[_0x44ba0c(0x226)](_0x102967=>{const _0x3b49d0=_0x44ba0c;this[_0x3b49d0(0x318)]['next'](_0x102967||{});}));let _0x109ac2=this[_0x44ba0c(0x31e)][_0x44ba0c(0x2ea)](B);this[_0x44ba0c(0x318)][_0x44ba0c(0x22b)](_0x109ac2||{});}async[_0x24e2fc(0x308)](){const _0x1e972b=_0x24e2fc;let _0x407bb5=this['_configService']['getConfig'](B);if(!(_0x407bb5!=null&&_0x407bb5['showDeveloperTools']))return;let _0x3896ef=await this[_0x1e972b(0x317)][_0x1e972b(0x214)](K);_0x3896ef&&(this['_mcpConnectionController'][_0x1e972b(0x1f4)]({'Authorization':'Bearer\x20'+_0x3896ef}),this['_apiKey$'][_0x1e972b(0x22b)](_0x3896ef));}async[_0x24e2fc(0x200)](_0x6729e7){const _0x2e975d=_0x24e2fc;if(!_0x6729e7['apiKey']||_0x6729e7[_0x2e975d(0x27c)][_0x2e975d(0x27a)]()[_0x2e975d(0x257)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2e975d(0x242)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x6729e7['apiKey'][_0x2e975d(0x27a)]()[_0x2e975d(0x257)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2e975d(0x22c))};try{let _0x2edefd=await this[_0x2e975d(0x220)][_0x2e975d(0x2a9)](_0x3a6502)['validateApiKey'](_0x6729e7['apiKey'][_0x2e975d(0x27a)]());return _0x2edefd[_0x2e975d(0x2b3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2edefd[_0x2e975d(0x21c)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x261952){return console[_0x2e975d(0x2d7)](_0x2e975d(0x284),_0x261952),{'isValid':!0x0};}}};J=G([W(0x0,_0x17ef4b(_0x498a04)),W(0x1,_0xbb3625),W(0x2,_0x16e4b4),W(0x3,_0x5192e1),W(0x4,_0x4d970d),W(0x5,_0x34758a),W(0x6,_0x17ef4b(_0x26c3a3)),W(0x7,_0x17ef4b(_0x58c1f8)),W(0x8,_0x3720d4),W(0x9,_0x17ef4b(_0x3a6502))],J);const Y={'id':_0x24e2fc(0x2da),'type':_0x2f411b[_0x24e2fc(0x2a6)],'handler':async(_0x3cb36c,_0x176c77)=>(_0x3cb36c[_0x24e2fc(0x2a9)](J)[_0x24e2fc(0x20f)](),!0x0)};function X(_0x471adf,_0x2a2665){const _0x5c23c0=_0x24e2fc;switch(_0x471adf){case _0x440b2d[_0x5c23c0(0x300)]:return'mcpStatus.disconnected';case _0x440b2d[_0x5c23c0(0x2b7)]:return _0x5c23c0(0x205);case _0x440b2d[_0x5c23c0(0x2d6)]:return _0x5c23c0(0x237);case _0x440b2d[_0x5c23c0(0x2c2)]:switch(_0x2a2665){case _0x4f8a1c[_0x5c23c0(0x213)]:return'mcpStatus.unauthorized';case _0x4f8a1c[_0x5c23c0(0x230)]:return _0x5c23c0(0x29e);case _0x4f8a1c['NETWORK_ERROR']:return _0x5c23c0(0x227);case _0x4f8a1c[_0x5c23c0(0x219)]:return _0x5c23c0(0x21d);default:return _0x5c23c0(0x298);}case _0x440b2d[_0x5c23c0(0x2e4)]:return _0x5c23c0(0x258);default:return _0x5c23c0(0x267);}}function ce(_0x376bdb,_0x2768d3,_0x5d850c,_0x33f1de=!0x0){const _0x87c606=_0x24e2fc;let _0x262535=X(_0x376bdb,_0x2768d3),_0x357eaa=_0x5d850c['t'](_0x262535);return _0x33f1de?_0x376bdb===_0x440b2d[_0x87c606(0x300)]&&_0x2768d3===_0x4f8a1c[_0x87c606(0x213)]?_0x357eaa+_0x87c606(0x223)+_0x5d850c['t'](_0x87c606(0x25b)):_0x376bdb===_0x440b2d['CONNECTED']?''+_0x357eaa:_0x376bdb===_0x440b2d[_0x87c606(0x300)]||_0x376bdb===_0x440b2d[_0x87c606(0x2c2)]?_0x357eaa+'\x20-\x20'+_0x5d850c['t'](_0x87c606(0x2c8)):_0x357eaa:_0x357eaa;}function le(_0x179861){const _0x981f21=_0x24e2fc;switch(_0x179861){case _0x440b2d[_0x981f21(0x2d6)]:return _0x981f21(0x2ce);case _0x440b2d[_0x981f21(0x2b7)]:case _0x440b2d[_0x981f21(0x2e4)]:return _0x981f21(0x1ee);case _0x440b2d[_0x981f21(0x2c2)]:case _0x440b2d[_0x981f21(0x300)]:return _0x981f21(0x2ef);default:return'univer-text-gray-500';}}function ue(_0x4665d1){const _0x3a3707=_0x24e2fc;let {status$:_0x875bc4,error$:_0x2caaf8,onConfigure:_0xc225ce,showClickable:_0x154139=!0x0}=_0x4665d1,_0x6f8728=_0x12c36e(_0x875bc4,_0x440b2d[_0x3a3707(0x300)]),_0x443139=_0x12c36e(_0x2caaf8,_0x4f8a1c['NONE']),_0x16edc5=_0x5d46a2(_0x58c1f8),_0x4f148b=_0x6f8728===_0x440b2d[_0x3a3707(0x2d6)];_0x6f8728===_0x440b2d[_0x3a3707(0x2b7)]||_0x440b2d[_0x3a3707(0x2e4)];let _0xc000a0=_0x16edc5['t'](X(_0x6f8728,_0x443139)),_0x3a2a03=ce(_0x6f8728,_0x443139,_0x16edc5,_0x154139),_0xccad93=le(_0x6f8728),_0x5e5561=_0x19478f(_0x4f148b?_0x2e186b:_0x619373,{}),_0x237bcf=_0x526f6e(()=>{_0x154139&&_0xc225ce&&_0xc225ce();},[_0x154139,_0xc225ce]);function _0x2d0590(){const _0x69582e=_0x3a3707;return _0x4ad251('div',{'className':_0xe696c7('univer-flex\x20univer-items-center',_0x154139&&_0xc225ce&&_0x69582e(0x31c)),'role':_0x69582e(0x2af),'onClick':_0x154139&&_0xc225ce?_0x237bcf:void 0x0,'children':[_0x19478f('div',{'className':_0xe696c7('univer-mr-2\x20univer-flex\x20univer-text-xl',_0xccad93),'children':_0x5e5561}),_0x19478f('div',{'className':_0x69582e(0x244),'children':_0xc000a0})]});}return _0x19478f(_0x48d592,{'title':_0x3a2a03,'placement':_0x3a3707(0x261),'children':_0x2d0590()});}let Z=class extends _0x553c10{constructor(_0x45c99d,_0x3f9566,_0x40ce21,_0x40c76f){const _0x411aea=_0x24e2fc;super(),this[_0x411aea(0x220)]=_0x45c99d,this[_0x411aea(0x212)]=_0x3f9566,this['_uiPartsService']=_0x40ce21,this[_0x411aea(0x31e)]=_0x40c76f,this['_initAutoConnect'](),this[_0x411aea(0x207)]();}['_initAutoConnect'](){const _0x272300=_0x24e2fc;let _0x2300fd=this[_0x272300(0x31e)]['getConfig'](B);_0x2300fd!=null&&_0x2300fd[_0x272300(0x30e)]&&(this[_0x272300(0x212)][_0x272300(0x311)]=!0x1);}[_0x24e2fc(0x207)](){const _0x1cd8d9=_0x24e2fc;let _0x122744=this[_0x1cd8d9(0x31e)][_0x1cd8d9(0x2ea)](B);(_0x122744==null?void 0x0:_0x122744[_0x1cd8d9(0x25e)])!==!0x1&&this[_0x1cd8d9(0x285)](this[_0x1cd8d9(0x2c6)][_0x1cd8d9(0x2c1)](_0x5d5a0c['HEADER_MENU'],()=>{const _0x13aa93=_0x1cd8d9;var _0x28c411;return _0xd78b8b(de({'status$':this[_0x13aa93(0x212)]['connectionStatus$'],'error$':this[_0x13aa93(0x212)][_0x13aa93(0x206)],'onConfigure':()=>this[_0x13aa93(0x2a7)](),'showClickable':(_0x28c411=_0x122744==null?void 0x0:_0x122744['showDeveloperTools'])==null?!0x1:_0x28c411}),this[_0x13aa93(0x220)]);}));}[_0x24e2fc(0x2a7)](){const _0x533463=_0x24e2fc;this[_0x533463(0x220)]['get'](J)[_0x533463(0x20f)]();}};Z=G([W(0x0,_0x17ef4b(_0x498a04)),W(0x1,_0x17ef4b(_0x3a6502)),W(0x2,_0xbb3625),W(0x3,_0x16e4b4)],Z);function de(_0x2f20df){let {status$:_0x3461cc,error$:_0xbcf148,onConfigure:_0x53f021,showClickable:_0x1720b5}=_0x2f20df;return function(){return _0x19478f(ue,{'status$':_0x3461cc,'error$':_0xbcf148,'onConfigure':_0x53f021,'showClickable':_0x1720b5});};}function fe(_0x143afe){const _0x3c34d5=_0x24e2fc;return{'id':Y['id'],'type':_0x547bdc[_0x3c34d5(0x2ac)],'icon':'MenuIcon','title':_0x3c34d5(0x299),'tooltip':_0x3c34d5(0x299)};}const pe={[_0x66f7f3[_0x24e2fc(0x225)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x553c10{constructor(_0x1e18a5,_0x444104){const _0x20c5e9=_0x24e2fc;super(),this[_0x20c5e9(0x20e)]=_0x1e18a5,this[_0x20c5e9(0x323)]=_0x444104,this[_0x20c5e9(0x26a)](),this[_0x20c5e9(0x31f)]();}[_0x24e2fc(0x26a)](){const _0x2670cd=_0x24e2fc;[Y][_0x2670cd(0x1fb)](_0x38abc6=>{const _0x444362=_0x2670cd;this[_0x444362(0x285)](this[_0x444362(0x20e)][_0x444362(0x22e)](_0x38abc6));});}['_initializeMenus'](){const _0x1873b1=_0x24e2fc;this[_0x1873b1(0x323)][_0x1873b1(0x29b)](pe);}};Q=G([W(0x0,_0x274b3d),W(0x1,_0x2be40c)],Q);const me={'mcpStatus':{'disconnected':_0x24e2fc(0x287),'connecting':_0x24e2fc(0x28b),'connected':_0x24e2fc(0x28c),'failed':'MCP\x20Connection\x20Failed','retrying':_0x24e2fc(0x2be),'unknown':_0x24e2fc(0x1f7),'unauthorized':_0x24e2fc(0x26e),'sessionOccupied':_0x24e2fc(0x292),'networkError':_0x24e2fc(0x2ee),'maxRetriesExceeded':_0x24e2fc(0x28d),'clickToConnect':_0x24e2fc(0x28a),'clickToConfigure':_0x24e2fc(0x217)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x24e2fc(0x24c),'apiKey':_0x24e2fc(0x281),'apiKeyPlaceholder':_0x24e2fc(0x235),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x24e2fc(0x2e3),'enableAuthHint':_0x24e2fc(0x2a8),'connectionInfo':_0x24e2fc(0x303),'mcpClientConfig':_0x24e2fc(0x303),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x24e2fc(0x229),'configStep1':_0x24e2fc(0x2d9),'configStep2':_0x24e2fc(0x282),'configStep3':_0x24e2fc(0x2cd),'sessionId':_0x24e2fc(0x31b),'sessionIdDescription':_0x24e2fc(0x218),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x24e2fc(0x2f9),'save':'Save\x20Configuration','saving':_0x24e2fc(0x296),'note1':_0x24e2fc(0x2d1),'note2':_0x24e2fc(0x252),'configSaved':_0x24e2fc(0x271),'configError':_0x24e2fc(0x304),'apiApplyInfo':{'title':_0x24e2fc(0x266),'description':_0x24e2fc(0x1f2),'univerAiLabel':_0x24e2fc(0x216),'getStarted':_0x24e2fc(0x1f0)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x24e2fc(0x2d8),'invalidConfig':_0x24e2fc(0x2bf),'invalidApiKey':_0x24e2fc(0x293)},'connectionStatus':{'disconnected':_0x24e2fc(0x313),'connecting':_0x24e2fc(0x221),'connected':_0x24e2fc(0x26c),'failed':_0x24e2fc(0x314),'retrying':_0x24e2fc(0x201)},'connectionError':{'unauthorized':_0x24e2fc(0x232),'sessionOccupied':_0x24e2fc(0x21e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x24e2fc(0x26f)}}},he={'mcpStatus':{'disconnected':_0x24e2fc(0x29f),'connecting':_0x24e2fc(0x2cf),'connected':'MCP\x20已连接','failed':_0x24e2fc(0x2fb),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x24e2fc(0x25d),'sessionOccupied':_0x24e2fc(0x2ba),'networkError':_0x24e2fc(0x2ab),'maxRetriesExceeded':_0x24e2fc(0x1f5),'clickToConnect':_0x24e2fc(0x27b),'clickToConfigure':_0x24e2fc(0x255)},'mcpConfig':{'title':'MCP\x20配置','description':_0x24e2fc(0x1fc),'apiKey':_0x24e2fc(0x31a),'apiKeyPlaceholder':_0x24e2fc(0x309),'apiKeyHint':_0x24e2fc(0x268),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x24e2fc(0x2f5),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x24e2fc(0x2d0),'configStep1':_0x24e2fc(0x2e6),'configStep2':_0x24e2fc(0x272),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x24e2fc(0x2b2),'sessionIdDescription':_0x24e2fc(0x234),'authorizationDescription':_0x24e2fc(0x263),'configParameters':_0x24e2fc(0x2e8),'maxRetries':'最大重试次数','save':_0x24e2fc(0x264),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x24e2fc(0x2fe),'configError':_0x24e2fc(0x280),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x24e2fc(0x20a),'univerAiLabel':_0x24e2fc(0x2a0),'getStarted':_0x24e2fc(0x312)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x24e2fc(0x231),'invalidConfig':_0x24e2fc(0x24b),'invalidApiKey':_0x24e2fc(0x248)},'connectionStatus':{'disconnected':_0x24e2fc(0x2c0),'connecting':_0x24e2fc(0x2bd),'connected':_0x24e2fc(0x245),'failed':_0x24e2fc(0x29c),'retrying':_0x24e2fc(0x2fa)},'connectionError':{'unauthorized':_0x24e2fc(0x22a),'sessionOccupied':_0x24e2fc(0x239),'networkError':_0x24e2fc(0x2dc),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var ge=_0x24e2fc(0x301),_e=_0x24e2fc(0x2cc);let $=class extends _0x210a69{constructor(_0x73ee84=V,_0x5d0d4f,_0x308648,_0x1e86ea,_0x2a2491,_0x23d8fa){const _0x1c91fa=_0x24e2fc;super(),this[_0x1c91fa(0x24e)]=_0x73ee84,this['_injector']=_0x5d0d4f,this[_0x1c91fa(0x31e)]=_0x308648,this[_0x1c91fa(0x2c6)]=_0x1e86ea,this['_localStorageService']=_0x2a2491,this[_0x1c91fa(0x242)]=_0x23d8fa;let {..._0x3674b2}=_0x5b05be({},V,this[_0x1c91fa(0x24e)]);this[_0x1c91fa(0x31e)][_0x1c91fa(0x2db)](B,_0x3674b2);}async[_0x24e2fc(0x2a5)](){const _0x272e39=_0x24e2fc;let _0xf72973=[[Z],[J],[Q]];this[_0x272e39(0x220)][_0x272e39(0x305)](_0x184860)||_0xf72973[_0x272e39(0x2e5)]([_0x184860,{'useClass':_0x3859a6}]),_0xf72973[_0x272e39(0x1fb)](_0x19b9e0=>this[_0x272e39(0x220)][_0x272e39(0x2d3)](_0x19b9e0)),this['_injector'][_0x272e39(0x2a9)](Z),this[_0x272e39(0x220)]['get'](J),this[_0x272e39(0x220)][_0x272e39(0x2a9)](Q);}};U($,_0x24e2fc(0x270),_0x24e2fc(0x2f0)),U($,_0x24e2fc(0x31d),ge),U($,_0x24e2fc(0x2fd),_e),$=G([_0x55f634(_0x2ba359),W(0x1,_0x17ef4b(_0x498a04)),W(0x2,_0x16e4b4),W(0x3,_0xbb3625),W(0x4,_0x5192e1),W(0x5,_0x17ef4b(_0x58c1f8))],$);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 _0x5afb4f=_0x500b;(function(_0x29110a,_0xbed4c1){const _0x25a13f=_0x500b,_0x34b58f=_0x29110a();while(!![]){try{const _0x337ba4=parseInt(_0x25a13f(0x170))/0x1*(parseInt(_0x25a13f(0x149))/0x2)+-parseInt(_0x25a13f(0x104))/0x3*(-parseInt(_0x25a13f(0xb8))/0x4)+parseInt(_0x25a13f(0x183))/0x5*(parseInt(_0x25a13f(0xd7))/0x6)+parseInt(_0x25a13f(0x180))/0x7+parseInt(_0x25a13f(0x108))/0x8+parseInt(_0x25a13f(0x157))/0x9+parseInt(_0x25a13f(0x77))/0xa*(-parseInt(_0x25a13f(0x106))/0xb);if(_0x337ba4===_0xbed4c1)break;else _0x34b58f['push'](_0x34b58f['shift']());}catch(_0x4db86d){_0x34b58f['push'](_0x34b58f['shift']());}}}(_0x1234,0xc7641));import{CommandType as _0x20dd89,DependentOn as _0x59f6a5,Disposable as _0xd0ff90,ICommandService as _0x195f5d,IConfigService as _0x520faa,ILocalStorageService as _0x104c58,ILogService as _0x45119a,Inject as _0xc54b06,Injector as _0x2a5bb7,LocaleService as _0x3c4182,Plugin as _0xdb1177,merge as _0x9476c9}from'@univerjs/core';import{MCPConnectionController as _0x2c9a1c,MCPConnectionError as _0x54aad6,MCPConnectionStatus as _0x1f5577,MCP_PLUGIN_CONFIG_KEY as _0x346c5f,UniverMCPPlugin as _0xe75a44}from'@univerjs-pro/mcp';import{Button as _0x257f32,Input as _0x4fa1e4,MessageType as _0x28277b,Tooltip as _0x5a455a,clsx as _0x348762}from'@univerjs/design';import{BuiltInUIPart as _0x51161f,ComponentManager as _0x4371f2,IDialogService as _0x445c31,IMenuManagerService as _0x4f6a1a,IMessageService as _0x17b7a7,IUIPartsService as _0x356992,MenuItemType as _0x2bbf5d,RibbonStartGroup as _0x1a0368,connectInjector as _0x522d18,useDependency as _0x1561e6,useObservable as _0x115b3d}from'@univerjs/ui';import{BehaviorSubject as _0x5a1e03}from'rxjs';import{CheckMarkIcon as _0x3527cc,CloseIcon as _0x256334,HelpIcon as _0x560460,OffLineIcon as _0x3c2040,OnLineIcon as _0x2aaacd}from'@univerjs/icons';import{useCallback as _0x3f364b,useState as _0x345559}from'react';import{jsx as _0x4d247a,jsxs as _0x52e889}from'react/jsx-runtime';import{ISocketService as _0x3db57f,WebSocketService as _0xe75e09}from'@univerjs/network';function _0x500b(_0x4d4799,_0x5b412a){_0x4d4799=_0x4d4799-0x74;const _0x123492=_0x1234();let _0x500be8=_0x123492[_0x4d4799];return _0x500be8;}function z(_0x2a3952){const _0x28ebf8=_0x500b;var _0x1dd1de,_0x3c3efb;let {mcpCoreConfig:_0x5ecdf6,onSave:_0x57f0ac,loading:_0x31f06e=!0x1,config:_0x578157,connectionStatus$:_0x20e78f,connectionError$:_0xa13497,currentApiKey$:_0x3e1b5c,currentSessionId$:_0x5e576e}=_0x2a3952,_0x1dd82c=_0x1561e6(_0x3c4182),_0x6c173=_0x115b3d(_0x20e78f,_0x1f5577[_0x28ebf8(0xdb)]),_0x2e9a8e=_0x115b3d(_0xa13497,_0x54aad6[_0x28ebf8(0x14d)]),_0x2bd1ee=_0x115b3d(_0x5e576e,''),[_0x5cb3c8,_0x1dfd4f]=_0x345559(_0x115b3d(_0x3e1b5c,'')||''),_0x2417e8=_0x578157['showDeveloperTools']&&_0x5ecdf6['mcpServerUrl']&&(_0x5ecdf6[_0x28ebf8(0x12e)][_0x28ebf8(0x8c)]('univer.plus')||_0x5ecdf6[_0x28ebf8(0x12e)][_0x28ebf8(0x8c)](_0x28ebf8(0x13b))),_0x2883d6=(_0x1dd1de=_0x5ecdf6['mcpServerUrl'])==null?void 0x0:_0x1dd1de['includes']('univer.plus'),_0x290670=(_0x3c3efb=_0x5ecdf6[_0x28ebf8(0x12e)])==null?void 0x0:_0x3c3efb[_0x28ebf8(0x8c)](_0x28ebf8(0x13b)),_0x435f79=_0x2883d6?_0x28ebf8(0xa3):_0x28ebf8(0x10b),_0x14f6da=_0x578157[_0x28ebf8(0x16d)]&&(_0x2883d6||_0x290670),[_0x5af247,_0x18966d]=_0x345559(!_0x5cb3c8['trim']()),_0x2dc164=(_0x1fc845,_0x249c39)=>{const _0x48704e=_0x28ebf8;if(_0x249c39===_0x54aad6[_0x48704e(0x18b)])return _0x48704e(0x145);switch(_0x1fc845){case _0x1f5577[_0x48704e(0x100)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x1f5577['CONNECTING']:case _0x1f5577[_0x48704e(0x10f)]:return _0x48704e(0xbf);case _0x1f5577[_0x48704e(0x123)]:return _0x48704e(0x145);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3cdc52=(_0x373654,_0x197c0b)=>{const _0x1e9fe8=_0x28ebf8;if(_0x197c0b===_0x54aad6['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x373654){case _0x1f5577[_0x1e9fe8(0x100)]:return _0x1e9fe8(0x112);case _0x1f5577['CONNECTING']:case _0x1f5577['RETRYING']:return _0x1e9fe8(0x194);case _0x1f5577[_0x1e9fe8(0x123)]:return _0x1e9fe8(0x13a);default:return _0x1e9fe8(0x164);}},_0x3c117f=_0x31b800=>{const _0x2193f7=_0x28ebf8;switch(_0x31b800){case _0x1f5577[_0x2193f7(0x100)]:return _0x1dd82c['t'](_0x2193f7(0xfd));case _0x1f5577[_0x2193f7(0x75)]:return _0x1dd82c['t'](_0x2193f7(0x83));case _0x1f5577['FAILED']:return _0x1dd82c['t'](_0x2193f7(0x7d));case _0x1f5577[_0x2193f7(0x10f)]:return _0x1dd82c['t'](_0x2193f7(0x12b));default:return _0x1dd82c['t'](_0x2193f7(0xc6));}},_0x25acee=_0x14c45b=>{const _0x4e2e87=_0x28ebf8;switch(_0x14c45b){case _0x54aad6[_0x4e2e87(0x18b)]:return _0x1dd82c['t'](_0x4e2e87(0x18d));case _0x54aad6[_0x4e2e87(0x14e)]:return _0x1dd82c['t'](_0x4e2e87(0x8f));case _0x54aad6['NETWORK_ERROR']:return _0x1dd82c['t'](_0x4e2e87(0x14f));case _0x54aad6[_0x4e2e87(0x90)]:return _0x1dd82c['t'](_0x4e2e87(0xcb));default:return'';}},_0x408ad1=_0x3f364b(()=>{_0x57f0ac({..._0x5ecdf6,'apiKey':_0x5cb3c8['trim'](),'enableAuth':!0x0});},[_0x5ecdf6,_0x5cb3c8,!0x0,_0x57f0ac]),_0x1eccac=_0x5cb3c8[_0x28ebf8(0x109)]()[_0x28ebf8(0x10d)]>0x0;return _0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x158),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x52e889('div',{'className':_0x28ebf8(0xab),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xac),'children':_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0xcd),'children':'⚙'})}),_0x4d247a(_0x28ebf8(0x15d),{'children':_0x4d247a('p',{'className':_0x28ebf8(0x135),'children':_0x1dd82c['t'](_0x28ebf8(0x19f))})})]})}),_0x52e889('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x348762(_0x28ebf8(0x197),_0x2dc164(_0x6c173,_0x2e9a8e)),'children':_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x118),'children':[_0x4d247a('div',{'className':_0x348762(_0x28ebf8(0xcf),_0x3cdc52(_0x6c173,_0x2e9a8e))}),_0x4d247a(_0x28ebf8(0x1a2),{'className':'univer-text-sm\x20univer-font-medium','children':_0x3c117f(_0x6c173)})]})}),_0x2e9a8e!==_0x54aad6[_0x28ebf8(0x14d)]&&(_0x6c173===_0x1f5577['FAILED']||_0x2e9a8e===_0x54aad6['UNAUTHORIZED'])&&_0x4d247a('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x52e889('div',{'className':_0x28ebf8(0x74),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0xbd),'children':'⚠️'}),_0x4d247a('p',{'className':_0x28ebf8(0xe5),'children':_0x25acee(_0x2e9a8e)})]})})]}),_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x15f),'children':_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x113),'children':[_0x52e889(_0x28ebf8(0x15d),{'className':'univer-space-y-2','children':[_0x52e889(_0x28ebf8(0x102),{'className':_0x28ebf8(0x137),'children':[_0x4d247a('span',{'children':'🔑'}),'\x20',_0x1dd82c['t'](_0x28ebf8(0x19a)),_0x4d247a(_0x28ebf8(0x1a2),{'className':'univer-text-red-500','children':'*'}),_0x2417e8&&_0x4d247a('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x1dd82c['t']('mcpConfig.apiApplyInfo.title'),'role':_0x28ebf8(0x139),'onClick':()=>_0x18966d(!0x0),'children':_0x4d247a(_0x560460,{})})]}),_0x4d247a(_0x4fa1e4,{'type':_0x28ebf8(0x169),'placeholder':_0x1dd82c['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x5cb3c8,'disabled':_0x31f06e,'autoComplete':_0x28ebf8(0x99),'onChange':_0x1dfd4f}),_0x4d247a('p',{'className':_0x28ebf8(0x93),'children':_0x1dd82c['t'](_0x28ebf8(0xba))})]}),_0x2417e8&&_0x5af247&&_0x52e889(_0x28ebf8(0x15d),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x4d247a('a',{'className':_0x28ebf8(0x15c),'role':_0x28ebf8(0x139),'onClick':()=>_0x18966d(!0x1),'children':_0x4d247a(_0x256334,{'className':_0x28ebf8(0x182)})}),_0x52e889('div',{'className':_0x28ebf8(0x14b),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x101),'children':'🚀'})}),_0x52e889('div',{'className':_0x28ebf8(0x192),'children':[_0x4d247a('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x1dd82c['t']('mcpConfig.apiApplyInfo.title')}),_0x4d247a('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x1dd82c['t'](_0x28ebf8(0x14a))}),_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x14f6da&&_0x52e889('a',{'className':_0x28ebf8(0x150),'href':_0x435f79,'target':_0x28ebf8(0x196),'rel':'noopener\x20noreferrer','children':[_0x4d247a('span',{'children':'🤖'}),_0x1dd82c['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x4d247a('span',{'className':_0x28ebf8(0x8a),'children':'↗'})]})}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x198),'children':['✨','\x20',_0x1dd82c['t'](_0x28ebf8(0xed))]})]})]})]}),_0x578157['showDeveloperTools']&&_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x177),'children':[_0x52e889('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x4d247a(_0x28ebf8(0x1a2),{'children':'🔗'}),'\x20',_0x1dd82c['t'](_0x28ebf8(0xc3))]}),_0x52e889('div',{'className':_0x28ebf8(0x140),'children':[_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xa0),'children':[_0x4d247a('p',{'className':_0x28ebf8(0xce),'children':_0x1dd82c['t']('mcpConfig.configInstructions')}),_0x52e889(_0x28ebf8(0x15d),{'className':'univer-space-y-2','children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xe6),'children':_0x1dd82c['t']('mcpConfig.configStepTitle')}),_0x52e889('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x52e889(_0x28ebf8(0x15d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x178),'children':'1'}),_0x1dd82c['t'](_0x28ebf8(0x9d))]}),_0x52e889('div',{'className':_0x28ebf8(0x118),'children':[_0x4d247a('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x1dd82c['t'](_0x28ebf8(0x199))]}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x118),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x1dd82c['t'](_0x28ebf8(0x147))]})]})]})]}),_0x52e889('div',{'className':_0x28ebf8(0x19b),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xe6),'children':_0x28ebf8(0x141)}),_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x187),'children':_0x4d247a(_0x28ebf8(0x95),{'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='+(_0x2bd1ee||'<SESSION_ID>'),'type':'http','headers':{'Authorization':_0x28ebf8(0x18a)+(_0x5cb3c8||_0x28ebf8(0xae))}}}},null,0x2)})})]}),_0x52e889('div',{'className':_0x28ebf8(0xa0),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xe6),'children':_0x1dd82c['t'](_0x28ebf8(0x9c))}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x19b),'children':[_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x142),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x154)}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xd5),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x16e),'children':'univer_session_id:'}),_0x4d247a('div',{'className':_0x28ebf8(0x93),'children':_0x1dd82c['t'](_0x28ebf8(0xb1))})]})]}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x142),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xd5),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x16e),'children':'Authorization:'}),_0x4d247a('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1dd82c['t'](_0x28ebf8(0x120))})]})]})]})]})]})]}),_0x4d247a(_0x257f32,{'onClick':_0x408ad1,'disabled':!_0x1eccac||_0x31f06e,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x31f06e?_0x52e889(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x118),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'children':'⟲'}),_0x1dd82c['t'](_0x28ebf8(0xb0))]}):_0x52e889(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x118),'children':[_0x4d247a(_0x3527cc,{}),_0x1dd82c['t'](_0x28ebf8(0x96))]})}),_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x155),'children':_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x179),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0xd3),'children':'💡'}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x13f),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xa9),'children':_0x28ebf8(0xad)}),_0x52e889(_0x28ebf8(0x15d),{'children':['•',_0x1dd82c['t'](_0x28ebf8(0x116))]}),_0x52e889(_0x28ebf8(0x15d),{'children':['•',_0x1dd82c['t'](_0x28ebf8(0x17d))]})]})]})})]})})]});}const B=_0x5afb4f(0xd9);Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x3826c8){'@babel/helpers - typeof';const _0x115edc=_0x5afb4f;return H=typeof Symbol==_0x115edc(0xef)&&typeof Symbol[_0x115edc(0x185)]==_0x115edc(0xe4)?function(_0x13d519){return typeof _0x13d519;}:function(_0x108671){const _0x377a52=_0x115edc;return _0x108671&&typeof Symbol==_0x377a52(0xef)&&_0x108671[_0x377a52(0xd8)]===Symbol&&_0x108671!==Symbol[_0x377a52(0xf9)]?'symbol':typeof _0x108671;},H(_0x3826c8);}function oe(_0x556f93,_0x33fd95){const _0x443a16=_0x5afb4f;if(H(_0x556f93)!='object'||!_0x556f93)return _0x556f93;var _0x33c5c1=_0x556f93[Symbol[_0x443a16(0xd0)]];if(_0x33c5c1!==void 0x0){var _0x29f102=_0x33c5c1['call'](_0x556f93,_0x33fd95||_0x443a16(0x143));if(H(_0x29f102)!=_0x443a16(0x76))return _0x29f102;throw TypeError(_0x443a16(0x124));}return(_0x33fd95===_0x443a16(0xe2)?String:Number)(_0x556f93);}function se(_0x1d5bc0){const _0x3ec61f=_0x5afb4f;var _0x50f728=oe(_0x1d5bc0,_0x3ec61f(0xe2));return H(_0x50f728)==_0x3ec61f(0xe4)?_0x50f728:_0x50f728+'';}function U(_0x53ad46,_0x3e8b60,_0x58c8b6){const _0x5ed0eb=_0x5afb4f;return(_0x3e8b60=se(_0x3e8b60))in _0x53ad46?Object[_0x5ed0eb(0xb7)](_0x53ad46,_0x3e8b60,{'value':_0x58c8b6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53ad46[_0x3e8b60]=_0x58c8b6,_0x53ad46;}function W(_0x13a232,_0x16ece2){return function(_0x5baa5e,_0x192c0f){_0x16ece2(_0x5baa5e,_0x192c0f,_0x13a232);};}function _0x1234(){const _0x3f47fd=['mcpConfig.connectionError.sessionOccupied','MAX_RETRIES_EXCEEDED','_configService','MCP:\x20Session\x20ID\x20Occupied','univer-text-xs\x20univer-text-gray-500','Connection\x20Failed','pre','mcpConfig.save','version','mcpStatus.clickToConnect','off','Max\x20Retries','Configuration\x20Parameters:','mcpConfig.configParameters','mcpConfig.configStep1','_initConfigSync','Univer\x20AI\x20Console','univer-space-y-3','register','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','https://console.univer.plus','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','_localStorageService','_injector','mcp-config-dialog','univer-font-medium','errorMessage','univer-flex\x20univer-items-center\x20univer-gap-3','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Configuration\x20Notes:','<API_KEY>','mcpStatus.unknown','mcpConfig.saving','mcpConfig.sessionIdDescription','mcpConfig.validation.apiKeyRequired','showConfigPanel','univer-text-gray-500','mcpConfig.configSaved','MCP\x20连接失败','defineProperty','708WFBSqT','_registerComponent','mcpConfig.apiKeyHint','isValid','close','univer-shrink-0\x20univer-text-red-500','MCP:\x20Unauthorized','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','subscribe','mcpConfig.validation.invalidConfig','_commandService','mcpConfig.connectionInfo','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','__setCustomHeaders','mcpConfig.connectionStatus.disconnected','getConfig','next','univer-text-red-500','最大重试次数','mcpConfig.connectionError.maxRetriesExceeded','_createConfigPanelComponent','univer-text-white','univer-text-xs\x20univer-text-gray-600','univer-size-2\x20univer-rounded-full','toPrimitive','启用身份验证','warn','univer-shrink-0\x20univer-text-blue-500','connectionStatus$','univer-min-w-0\x20univer-flex-1','univer-text-green-500','12NiPvlt','constructor','mcp-ui.config','_config','DISCONNECTED','getCurrentConfig','保存中...','_handleConfigSave','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','MenuIcon','string','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','symbol','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','value','showStatus','API\x20密钥','mcpStatus.unauthorized','registerComponent','add','mcpConfig.apiApplyInfo.getStarted','Invalid\x20configuration','function','Error','MCP:\x20网络错误','_initAutoConnect','MCP\x20Connection\x20Failed','MCP\x20重连中...','会话ID','已连接','mcpStatus.connecting','_initializeCommands','prototype','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','setItem','mcpConfig.connectionStatus.connected','mcpStatus.clickToConfigure','网络连接错误,请检查您的网络连接','CONNECTED','univer-text-blue-600','label','show','19134tYagzF','Disconnected','23298TCrPhN','什么是\x20API\x20密钥?','6177656bgYodj','trim','\x20-\x20','https://console.univer.ai','几秒钟内获取您的\x20API\x20密钥','length','Enter\x20your\x20API\x20key','RETRYING','subscribeConfigValue$','mcpStatus.networkError','univer-bg-green-500','univer-space-y-5','Configuration\x20Steps:','pluginName','mcpConfig.note1','API\x20密钥长度至少需要\x2010\x20位','univer-flex\x20univer-items-center\x20univer-gap-2','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20Disconnected','forEach','MCP:\x20未授权','onStarting','配置无效','未连接','mcpConfig.authorizationDescription','MCP\x20连接中...','MCP\x20Retrying...','FAILED','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_validateConfig','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Success','_apiKey$','MCP\x20配置','点击连接\x20MCP','mcpConfig.connectionStatus.retrying','MCPConfigPanel','_connectionController','mcpServerUrl','What\x20is\x20API\x20Key?','连接失败','OTHERS','Click\x20to\x20connect\x20MCP','setConfig','mcpConfig.validation.apiKeyTooShort','univer-text-sm\x20univer-text-gray-500','get','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','button','univer-bg-red-500','univer.ai','Click\x20to\x20configure\x20MCP','超出最大重试次数,请稍后再试','registerCommand','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-space-y-4','MCP\x20Configuration','univer-flex\x20univer-items-start\x20univer-gap-3','default','getOwnPropertyDescriptor','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.validation.invalidApiKey','mcpConfig.configStep3','_mcpConnectionController','16EiFSxT','mcpConfig.apiApplyInfo.description','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','@univerjs-pro/mcp-ui','NONE','SESSION_ID_OCCUPIED','mcpConfig.connectionError.networkError','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','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','_loadStoredApiKey','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Enable\x20authentication\x20for\x20secure\x20connections','7803783QBHgBU','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_handleConfigure','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-items-center','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','div','mcpConfig.configError','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpStatus.maxRetriesExceeded','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_config$','disposeWithMe','univer-bg-gray-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','_menuManagerService','配置更改将立即生效','decorate','text','启用身份验证以获得安全连接','_uiPartsService','mcpConfig.title','showDeveloperTools','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcp-ui.command.openConfigPanel','89423sSjWpE','保存配置','enableAutoConnect','复制以下\x20JSON\x20配置','_initStatusComponent','apiKey','Configuration\x20saved\x20successfully','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex\x20univer-gap-3','BUTTON','removeItem','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.note2','error','MCP:\x20会话\x20ID\x20已被占用','2212665lKbZTx','重连中...','univer-size-4','569785urGMOm','Retrying...','iterator','validateApiKey','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Enable\x20Authentication','\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','Bearer\x20','UNAUTHORIZED','HEADER_MENU','mcpConfig.connectionError.unauthorized','点击配置\x20MCP','_mcpCoreConfig$','MCP\x20状态未知','mcpStatus.sessionOccupied','univer-flex-1','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-bg-blue-500','_messageService','_blank','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.configStep2','mcpConfig.apiKey','univer-space-y-2','请输入您的\x20API\x20密钥','COMMAND','Session\x20ID','mcpConfig.description','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置步骤:','span','_loading$','MCP\x20客户端配置','univer-flex\x20univer-items-start\x20univer-gap-2','CONNECTING','object','15160OstYpW','API\x20密钥不能为空','connectionError$','API\x20key\x20is\x20required','_logService','配置保存成功','mcpConfig.connectionStatus.failed','push','has','API\x20key\x20with\x20Bearer\x20prefix.','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Save\x20Configuration','mcpConfig.connectionStatus.connecting','MCP\x20Unknown\x20Status','_dialogService','_localeService','MCP:\x20Network\x20Error','_componentManager','重启您的\x20MCP\x20客户端以使配置生效','univer-text-gray-400','NETWORK_ERROR','includes','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.retrying'];_0x1234=function(){return _0x3f47fd;};return _0x1234();}function G(_0x711e0e,_0x248e2c,_0x5bd9e3,_0x114696){const _0x2330e7=_0x5afb4f;var _0x2c52bc=arguments[_0x2330e7(0x10d)],_0x392f8b=_0x2c52bc<0x3?_0x248e2c:_0x114696===null?_0x114696=Object[_0x2330e7(0x144)](_0x248e2c,_0x5bd9e3):_0x114696,_0x294aff;if(typeof Reflect==_0x2330e7(0x76)&&typeof Reflect[_0x2330e7(0x168)]=='function')_0x392f8b=Reflect[_0x2330e7(0x168)](_0x711e0e,_0x248e2c,_0x5bd9e3,_0x114696);else{for(var _0x4e5e32=_0x711e0e[_0x2330e7(0x10d)]-0x1;_0x4e5e32>=0x0;_0x4e5e32--)(_0x294aff=_0x711e0e[_0x4e5e32])&&(_0x392f8b=(_0x2c52bc<0x3?_0x294aff(_0x392f8b):_0x2c52bc>0x3?_0x294aff(_0x248e2c,_0x5bd9e3,_0x392f8b):_0x294aff(_0x248e2c,_0x5bd9e3))||_0x392f8b);}return _0x2c52bc>0x3&&_0x392f8b&&Object[_0x2330e7(0xb7)](_0x248e2c,_0x5bd9e3,_0x392f8b),_0x392f8b;}const K='mcp.apiKey',q=_0x5afb4f(0xa8);let J=class extends _0xd0ff90{constructor(_0x24b4df,_0x372bcc,_0x2d4712,_0xce40fc,_0x2dba40,_0x4488a2,_0x2af893,_0x4b7bd2,_0x2d0166,_0xf6da89){const _0x5b24f5=_0x5afb4f;super(),this[_0x5b24f5(0xa7)]=_0x24b4df,this[_0x5b24f5(0x16b)]=_0x372bcc,this['_configService']=_0x2d4712,this['_localStorageService']=_0xce40fc,this[_0x5b24f5(0x85)]=_0x2dba40,this[_0x5b24f5(0x195)]=_0x4488a2,this[_0x5b24f5(0x88)]=_0x2af893,this[_0x5b24f5(0x86)]=_0x4b7bd2,this[_0x5b24f5(0x7b)]=_0x2d0166,this[_0x5b24f5(0x148)]=_0xf6da89,U(this,_0x5b24f5(0x1a3),new _0x5a1e03(!0x1)),U(this,'_mcpCoreConfig$',new _0x5a1e03({})),U(this,_0x5b24f5(0x162),new _0x5a1e03({})),U(this,'_apiKey$',new _0x5a1e03('')),U(this,_0x5b24f5(0xde),async _0x45dd50=>{const _0x4e98b0=_0x5b24f5;this['_loading$'][_0x4e98b0(0xc8)](!0x0);try{var _0x5df084,_0x16d26d;let _0x206406=await this['_validateConfig'](_0x45dd50);if(!_0x206406[_0x4e98b0(0xbb)]){this[_0x4e98b0(0x195)][_0x4e98b0(0x103)]({'type':_0x28277b['Error'],'content':_0x206406[_0x4e98b0(0xaa)]||this['_localeService']['t'](_0x4e98b0(0xc1))});return;}_0x45dd50[_0x4e98b0(0x175)]?await this[_0x4e98b0(0xa6)][_0x4e98b0(0xfc)](K,_0x45dd50['apiKey'][_0x4e98b0(0x109)]()):await this['_localStorageService'][_0x4e98b0(0x17b)](K),this['_apiKey$']['next'](((_0x5df084=_0x45dd50[_0x4e98b0(0x175)])==null?void 0x0:_0x5df084['trim']())||''),this['_mcpConnectionController'][_0x4e98b0(0xc5)]({'Authorization':_0x4e98b0(0x18a)+((_0x16d26d=_0x45dd50[_0x4e98b0(0x175)])==null?void 0x0:_0x16d26d[_0x4e98b0(0x109)]())}),this[_0x4e98b0(0x195)][_0x4e98b0(0x103)]({'type':_0x28277b[_0x4e98b0(0x127)],'content':this[_0x4e98b0(0x86)]['t'](_0x4e98b0(0xb5))}),setTimeout(()=>{const _0x19459e=_0x4e98b0;this['_dialogService'][_0x19459e(0xbc)](q);},0x320);}catch(_0xb0e027){this[_0x4e98b0(0x7b)][_0x4e98b0(0x17e)](_0x4e98b0(0x138),_0xb0e027),this[_0x4e98b0(0x195)]['show']({'type':_0x28277b[_0x4e98b0(0xf0)],'content':this[_0x4e98b0(0x86)]['t'](_0x4e98b0(0x15e))});}finally{this[_0x4e98b0(0x1a3)]['next'](!0x1);}}),this[_0x5b24f5(0x9e)](),this[_0x5b24f5(0x153)](),this[_0x5b24f5(0xb9)]();}[_0x5afb4f(0xb3)](){const _0xe03ea9=_0x5afb4f;let _0x2aeeea=this[_0xe03ea9(0x91)][_0xe03ea9(0xc7)](B);_0x2aeeea!=null&&_0x2aeeea[_0xe03ea9(0x16d)]&&this['_dialogService']['open']({'id':q,'title':{'title':this['_localeService']['t'](_0xe03ea9(0x16c))},'children':{'label':_0xe03ea9(0x12c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4cfa41=_0xe03ea9;this[_0x4cfa41(0x85)][_0x4cfa41(0xbc)](q);}});}[_0x5afb4f(0xdc)](){const _0x41ca26=_0x5afb4f;return this[_0x41ca26(0x18f)][_0x41ca26(0xe7)];}['_registerComponent'](){const _0x374a60=_0x5afb4f;this['disposeWithMe'](this['_componentManager'][_0x374a60(0xa1)](_0x374a60(0x12c),this['_createConfigPanelComponent']()));}[_0x5afb4f(0xcc)](){const _0xfbd820=_0x5afb4f;return _0x522d18(()=>{const _0x5c8268=_0x500b;var _0x1d83c3,_0x181217,_0x445a93;return _0x4d247a(z,{'config':this[_0x5c8268(0x162)][_0x5c8268(0xe7)],'mcpCoreConfig':this[_0x5c8268(0x18f)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x5c8268(0x1a3)][_0x5c8268(0xe7)],'connectionStatus$':(_0x1d83c3=this[_0x5c8268(0x148)])==null?void 0x0:_0x1d83c3[_0x5c8268(0xd4)],'connectionError$':(_0x181217=this['_mcpConnectionController'])==null?void 0x0:_0x181217[_0x5c8268(0x79)],'currentSessionId$':(_0x445a93=this[_0x5c8268(0x148)])==null?void 0x0:_0x445a93['sessionId$']});},this[_0xfbd820(0xa7)]);}['_initConfigSync'](){const _0x4f6758=_0x5afb4f;this[_0x4f6758(0x163)](this[_0x4f6758(0x91)][_0x4f6758(0x110)](_0x346c5f)[_0x4f6758(0xc0)](_0x37c073=>{const _0x3f6b65=_0x4f6758;this['_mcpCoreConfig$'][_0x3f6b65(0xc8)](_0x37c073||{});}));let _0x29eb8c=this['_configService'][_0x4f6758(0xc7)](_0x346c5f);this[_0x4f6758(0x18f)]['next'](_0x29eb8c||{}),this['disposeWithMe'](this[_0x4f6758(0x91)][_0x4f6758(0x110)](B)['subscribe'](_0x3d58ae=>{const _0x8b183c=_0x4f6758;this[_0x8b183c(0x162)]['next'](_0x3d58ae||{});}));let _0x2d66d4=this[_0x4f6758(0x91)][_0x4f6758(0xc7)](B);this[_0x4f6758(0x162)]['next'](_0x2d66d4||{});}async[_0x5afb4f(0x153)](){const _0x3c7cb9=_0x5afb4f;let _0x270b2d=this[_0x3c7cb9(0x91)][_0x3c7cb9(0xc7)](B);if(!(_0x270b2d!=null&&_0x270b2d[_0x3c7cb9(0x16d)]))return;let _0x415348=await this['_localStorageService']['getItem'](K);_0x415348&&(this[_0x3c7cb9(0x148)][_0x3c7cb9(0xc5)]({'Authorization':_0x3c7cb9(0x18a)+_0x415348}),this[_0x3c7cb9(0x128)]['next'](_0x415348));}async[_0x5afb4f(0x125)](_0x349393){const _0x2ac1e2=_0x5afb4f;if(!_0x349393[_0x2ac1e2(0x175)]||_0x349393[_0x2ac1e2(0x175)][_0x2ac1e2(0x109)]()[_0x2ac1e2(0x10d)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2ac1e2(0x86)]['t'](_0x2ac1e2(0xb2))};if(_0x349393['apiKey']['trim']()[_0x2ac1e2(0x10d)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2ac1e2(0x86)]['t'](_0x2ac1e2(0x134))};try{let _0xc092fe=await this[_0x2ac1e2(0xa7)][_0x2ac1e2(0x136)](_0x2c9a1c)[_0x2ac1e2(0x186)](_0x349393[_0x2ac1e2(0x175)][_0x2ac1e2(0x109)]());return _0xc092fe[_0x2ac1e2(0xbb)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xc092fe['error']||this[_0x2ac1e2(0x86)]['t'](_0x2ac1e2(0x146))};}catch(_0x40442e){return console[_0x2ac1e2(0xd2)](_0x2ac1e2(0xc4),_0x40442e),{'isValid':!0x0};}}};J=G([W(0x0,_0xc54b06(_0x2a5bb7)),W(0x1,_0x356992),W(0x2,_0x520faa),W(0x3,_0x104c58),W(0x4,_0x445c31),W(0x5,_0x17b7a7),W(0x6,_0xc54b06(_0x4371f2)),W(0x7,_0xc54b06(_0x3c4182)),W(0x8,_0x45119a),W(0x9,_0xc54b06(_0x2c9a1c))],J);const Y={'id':_0x5afb4f(0x16f),'type':_0x20dd89[_0x5afb4f(0x19d)],'handler':async(_0x25db5b,_0x4d79c2)=>(_0x25db5b[_0x5afb4f(0x136)](J)['showConfigPanel'](),!0x0)};function X(_0x5b9334,_0x2a97fb){const _0x1a6f28=_0x5afb4f;switch(_0x5b9334){case _0x1f5577[_0x1a6f28(0xdb)]:return'mcpStatus.disconnected';case _0x1f5577[_0x1a6f28(0x75)]:return _0x1a6f28(0xf7);case _0x1f5577[_0x1a6f28(0x100)]:return'mcpStatus.connected';case _0x1f5577[_0x1a6f28(0x123)]:switch(_0x2a97fb){case _0x54aad6[_0x1a6f28(0x18b)]:return _0x1a6f28(0xea);case _0x54aad6[_0x1a6f28(0x14e)]:return _0x1a6f28(0x191);case _0x54aad6[_0x1a6f28(0x8b)]:return _0x1a6f28(0x111);case _0x54aad6[_0x1a6f28(0x90)]:return _0x1a6f28(0x160);default:return'mcpStatus.failed';}case _0x1f5577[_0x1a6f28(0x10f)]:return _0x1a6f28(0x8e);default:return _0x1a6f28(0xaf);}}function ce(_0x347661,_0x35fa4c,_0x37874f,_0x9e439b=!0x0){const _0x39d270=_0x5afb4f;let _0x39765e=X(_0x347661,_0x35fa4c),_0x3ac947=_0x37874f['t'](_0x39765e);return _0x9e439b?_0x347661===_0x1f5577['DISCONNECTED']&&_0x35fa4c===_0x54aad6[_0x39d270(0x18b)]?_0x3ac947+_0x39d270(0x10a)+_0x37874f['t'](_0x39d270(0xfe)):_0x347661===_0x1f5577['CONNECTED']?''+_0x3ac947:_0x347661===_0x1f5577[_0x39d270(0xdb)]||_0x347661===_0x1f5577['FAILED']?_0x3ac947+'\x20-\x20'+_0x37874f['t'](_0x39d270(0x98)):_0x3ac947:_0x3ac947;}function le(_0x1eedd2){const _0x57db3d=_0x5afb4f;switch(_0x1eedd2){case _0x1f5577['CONNECTED']:return _0x57db3d(0xd6);case _0x1f5577[_0x57db3d(0x75)]:case _0x1f5577[_0x57db3d(0x10f)]:return'univer-text-yellow-500';case _0x1f5577['FAILED']:case _0x1f5577[_0x57db3d(0xdb)]:return _0x57db3d(0xc9);default:return _0x57db3d(0xb4);}}function ue(_0x5dad3c){const _0x5bfaab=_0x5afb4f;let {status$:_0x59724d,error$:_0x65a89f,onConfigure:_0x439200,showClickable:_0x412e21=!0x0}=_0x5dad3c,_0x208132=_0x115b3d(_0x59724d,_0x1f5577[_0x5bfaab(0xdb)]),_0x1c61df=_0x115b3d(_0x65a89f,_0x54aad6[_0x5bfaab(0x14d)]),_0x3c0194=_0x1561e6(_0x3c4182),_0x3a5219=_0x208132===_0x1f5577[_0x5bfaab(0x100)];_0x208132===_0x1f5577[_0x5bfaab(0x75)]||_0x1f5577['RETRYING'];let _0x4f7f63=_0x3c0194['t'](X(_0x208132,_0x1c61df)),_0x1ac409=ce(_0x208132,_0x1c61df,_0x3c0194,_0x412e21),_0x35fd9a=le(_0x208132),_0x93c4df=_0x4d247a(_0x3a5219?_0x2aaacd:_0x3c2040,{}),_0x2e7ea9=_0x3f364b(()=>{_0x412e21&&_0x439200&&_0x439200();},[_0x412e21,_0x439200]);function _0x41fb85(){const _0x509d07=_0x5bfaab;return _0x52e889(_0x509d07(0x15d),{'className':_0x348762(_0x509d07(0x15b),_0x412e21&&_0x439200&&_0x509d07(0x189)),'role':_0x509d07(0x139),'onClick':_0x412e21&&_0x439200?_0x2e7ea9:void 0x0,'children':[_0x4d247a(_0x509d07(0x15d),{'className':_0x348762('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x35fd9a),'children':_0x93c4df}),_0x4d247a(_0x509d07(0x15d),{'className':_0x509d07(0xa2),'children':_0x4f7f63})]});}return _0x4d247a(_0x5a455a,{'title':_0x1ac409,'placement':'bottom','children':_0x41fb85()});}let Z=class extends _0xd0ff90{constructor(_0x5aec9c,_0x416188,_0x32bf38,_0x27dfdf){const _0x596c40=_0x5afb4f;super(),this[_0x596c40(0xa7)]=_0x5aec9c,this['_connectionController']=_0x416188,this[_0x596c40(0x16b)]=_0x32bf38,this['_configService']=_0x27dfdf,this[_0x596c40(0xf2)](),this[_0x596c40(0x174)]();}[_0x5afb4f(0xf2)](){const _0x664d41=_0x5afb4f;let _0x508cb6=this[_0x664d41(0x91)]['getConfig'](B);_0x508cb6!=null&&_0x508cb6[_0x664d41(0x16d)]&&(this['_connectionController'][_0x664d41(0x172)]=!0x1);}[_0x5afb4f(0x174)](){const _0x2e933c=_0x5afb4f;let _0x85dd3d=this[_0x2e933c(0x91)][_0x2e933c(0xc7)](B);(_0x85dd3d==null?void 0x0:_0x85dd3d[_0x2e933c(0xe8)])!==!0x1&&this[_0x2e933c(0x163)](this[_0x2e933c(0x16b)][_0x2e933c(0xeb)](_0x51161f[_0x2e933c(0x18c)],()=>{const _0x49666d=_0x2e933c;var _0x4d9332;return _0x522d18(de({'status$':this[_0x49666d(0x12d)]['connectionStatus$'],'error$':this[_0x49666d(0x12d)][_0x49666d(0x79)],'onConfigure':()=>this[_0x49666d(0x159)](),'showClickable':(_0x4d9332=_0x85dd3d==null?void 0x0:_0x85dd3d['showDeveloperTools'])==null?!0x1:_0x4d9332}),this[_0x49666d(0xa7)]);}));}[_0x5afb4f(0x159)](){const _0x5b04b7=_0x5afb4f;this[_0x5b04b7(0xa7)]['get'](J)[_0x5b04b7(0xb3)]();}};Z=G([W(0x0,_0xc54b06(_0x2a5bb7)),W(0x1,_0xc54b06(_0x2c9a1c)),W(0x2,_0x356992),W(0x3,_0x520faa)],Z);function de(_0x4b33d6){let {status$:_0x40e9fc,error$:_0x407342,onConfigure:_0x4ef4f1,showClickable:_0x292900}=_0x4b33d6;return function(){return _0x4d247a(ue,{'status$':_0x40e9fc,'error$':_0x407342,'onConfigure':_0x4ef4f1,'showClickable':_0x292900});};}function fe(_0x163f1a){const _0x33019f=_0x5afb4f;return{'id':Y['id'],'type':_0x2bbf5d[_0x33019f(0x17a)],'icon':_0x33019f(0xe1),'title':_0x33019f(0x16c),'tooltip':_0x33019f(0x16c)};}const pe={[_0x1a0368[_0x5afb4f(0x131)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0xd0ff90{constructor(_0x3ccfa9,_0x576428){const _0x38d122=_0x5afb4f;super(),this[_0x38d122(0xc2)]=_0x3ccfa9,this[_0x38d122(0x166)]=_0x576428,this[_0x38d122(0xf8)](),this['_initializeMenus']();}['_initializeCommands'](){const _0x3f2ef8=_0x5afb4f;[Y][_0x3f2ef8(0x11b)](_0x5b59b5=>{const _0x157d42=_0x3f2ef8;this[_0x157d42(0x163)](this['_commandService'][_0x157d42(0x13e)](_0x5b59b5));});}['_initializeMenus'](){const _0x3bfef7=_0x5afb4f;this[_0x3bfef7(0x166)]['mergeMenu'](pe);}};Q=G([W(0x0,_0x195f5d),W(0x1,_0x4f6a1a)],Q);const me={'mcpStatus':{'disconnected':_0x5afb4f(0x11a),'connecting':_0x5afb4f(0xa5),'connected':'MCP\x20Connected','failed':_0x5afb4f(0xf3),'retrying':_0x5afb4f(0x122),'unknown':_0x5afb4f(0x84),'unauthorized':_0x5afb4f(0xbe),'sessionOccupied':_0x5afb4f(0x92),'networkError':_0x5afb4f(0x87),'maxRetriesExceeded':_0x5afb4f(0x152),'clickToConnect':_0x5afb4f(0x132),'clickToConfigure':_0x5afb4f(0x13c)},'mcpConfig':{'title':_0x5afb4f(0x141),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x5afb4f(0x10e),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5afb4f(0x188),'enableAuthHint':_0x5afb4f(0x156),'connectionInfo':_0x5afb4f(0xe0),'mcpClientConfig':_0x5afb4f(0xe0),'configInstructions':_0x5afb4f(0x193),'configStepTitle':_0x5afb4f(0x114),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5afb4f(0x151),'configStep3':_0x5afb4f(0xfa),'sessionId':_0x5afb4f(0x19e),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5afb4f(0x80),'configParameters':_0x5afb4f(0x9b),'maxRetries':_0x5afb4f(0x9a),'save':_0x5afb4f(0x82),'saving':_0x5afb4f(0xfb),'note1':_0x5afb4f(0xe3),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5afb4f(0x176),'configError':_0x5afb4f(0xa4),'apiApplyInfo':{'title':_0x5afb4f(0x12f),'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':_0x5afb4f(0x9f),'getStarted':_0x5afb4f(0xdf)},'validation':{'apiKeyRequired':_0x5afb4f(0x7a),'apiKeyTooShort':_0x5afb4f(0x8d),'invalidConfig':_0x5afb4f(0xee),'invalidApiKey':_0x5afb4f(0x17c)},'connectionStatus':{'disconnected':_0x5afb4f(0x105),'connecting':'Connecting...','connected':'Connected','failed':_0x5afb4f(0x94),'retrying':_0x5afb4f(0x184)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5afb4f(0x126)}}},he={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x5afb4f(0x121),'connected':'MCP\x20已连接','failed':_0x5afb4f(0xb6),'retrying':_0x5afb4f(0xf4),'unknown':_0x5afb4f(0x190),'unauthorized':_0x5afb4f(0x11c),'sessionOccupied':_0x5afb4f(0x17f),'networkError':_0x5afb4f(0xf1),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x5afb4f(0x12a),'clickToConfigure':_0x5afb4f(0x18e)},'mcpConfig':{'title':_0x5afb4f(0x129),'description':_0x5afb4f(0x81),'apiKey':_0x5afb4f(0xe9),'apiKeyPlaceholder':_0x5afb4f(0x19c),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x5afb4f(0xd1),'enableAuthHint':_0x5afb4f(0x16a),'connectionInfo':_0x5afb4f(0x1a4),'mcpClientConfig':_0x5afb4f(0x1a4),'configInstructions':_0x5afb4f(0x1a0),'configStepTitle':_0x5afb4f(0x1a1),'configStep1':_0x5afb4f(0x173),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x5afb4f(0x89),'sessionId':_0x5afb4f(0xf5),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5afb4f(0x165),'configParameters':'配置参数:','maxRetries':_0x5afb4f(0xca),'save':_0x5afb4f(0x171),'saving':_0x5afb4f(0xdd),'note1':_0x5afb4f(0x167),'note2':_0x5afb4f(0x119),'configSaved':_0x5afb4f(0x7c),'configError':'配置保存失败','apiApplyInfo':{'title':_0x5afb4f(0x107),'description':_0x5afb4f(0x161),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x5afb4f(0x10c)},'validation':{'apiKeyRequired':_0x5afb4f(0x78),'apiKeyTooShort':_0x5afb4f(0x117),'invalidConfig':_0x5afb4f(0x11e),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x5afb4f(0x11f),'connecting':'连接中...','connected':_0x5afb4f(0xf6),'failed':_0x5afb4f(0x130),'retrying':_0x5afb4f(0x181)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x5afb4f(0x15a),'networkError':_0x5afb4f(0xff),'maxRetriesExceeded':_0x5afb4f(0x13d)}}};var ge=_0x5afb4f(0x14c),_e='0.24.0';let $=class extends _0xdb1177{constructor(_0x274417=V,_0xda596c,_0x2de263,_0x1d7c39,_0x4c869b,_0x57be37){const _0x58cb5b=_0x5afb4f;super(),this['_config']=_0x274417,this[_0x58cb5b(0xa7)]=_0xda596c,this[_0x58cb5b(0x91)]=_0x2de263,this[_0x58cb5b(0x16b)]=_0x1d7c39,this[_0x58cb5b(0xa6)]=_0x4c869b,this[_0x58cb5b(0x86)]=_0x57be37;let {..._0x293c51}=_0x9476c9({},V,this[_0x58cb5b(0xda)]);this[_0x58cb5b(0x91)][_0x58cb5b(0x133)](B,_0x293c51);}async[_0x5afb4f(0x11d)](){const _0xaf6578=_0x5afb4f;let _0x363296=[[Z],[J],[Q]];this[_0xaf6578(0xa7)][_0xaf6578(0x7f)](_0x3db57f)||_0x363296[_0xaf6578(0x7e)]([_0x3db57f,{'useClass':_0xe75e09}]),_0x363296[_0xaf6578(0x11b)](_0x109fdf=>this[_0xaf6578(0xa7)][_0xaf6578(0xec)](_0x109fdf)),this['_injector'][_0xaf6578(0x136)](Z),this[_0xaf6578(0xa7)]['get'](J),this[_0xaf6578(0xa7)][_0xaf6578(0x136)](Q);}};U($,_0x5afb4f(0x115),'MCP_UI_PLUGIN'),U($,'packageName',ge),U($,_0x5afb4f(0x97),_e),$=G([_0x59f6a5(_0xe75a44),W(0x1,_0xc54b06(_0x2a5bb7)),W(0x2,_0x520faa),W(0x3,_0x356992),W(0x4,_0x104c58),W(0x5,_0xc54b06(_0x3c4182))],$);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};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2590bd=_0x2b36;(function(_0x1b3a1d,_0x57fcf9){const _0x49fa77=_0x2b36,_0x2fdff8=_0x1b3a1d();while(!![]){try{const _0x2ef767=-parseInt(_0x49fa77(0x1df))/0x1+-parseInt(_0x49fa77(0x1e6))/0x2+parseInt(_0x49fa77(0x1de))/0x3*(parseInt(_0x49fa77(0x1c2))/0x4)+-parseInt(_0x49fa77(0x1c5))/0x5+-parseInt(_0x49fa77(0x1d4))/0x6*(parseInt(_0x49fa77(0x1bf))/0x7)+parseInt(_0x49fa77(0x1c8))/0x8*(-parseInt(_0x49fa77(0x1e4))/0x9)+parseInt(_0x49fa77(0x1e8))/0xa*(parseInt(_0x49fa77(0x1db))/0xb);if(_0x2ef767===_0x57fcf9)break;else _0x2fdff8['push'](_0x2fdff8['shift']());}catch(_0x50a5cc){_0x2fdff8['push'](_0x2fdff8['shift']());}}}(_0x404c,0x2330b));function _0x404c(){const _0x457b15=['Click\x20to\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Disconnected','Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','Configuration\x20Steps:','MCP\x20Connection\x20Failed','50310yPVaMa','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connected','2453ZQUUMg','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','3KDGeEe','88842VSUOkM','MCP\x20Connecting...','MCP\x20Configuration','Retrying...','Invalid\x20configuration','9IwlfCo','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','502480MoxGlr','Enable\x20authentication\x20for\x20secure\x20connections','42170RAQguD','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','Connected','MCP:\x20Network\x20Error','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','231KeSiJd','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Disconnected','484204jeFHoA','Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','416615IDEneH','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','1737544DScDGq','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration'];_0x404c=function(){return _0x457b15;};return _0x404c();}function _0x2b36(_0xe94f9e,_0x3109d1){_0xe94f9e=_0xe94f9e-0x1b6;const _0x404c0f=_0x404c();let _0x2b3648=_0x404c0f[_0xe94f9e];return _0x2b3648;}const e={'mcpStatus':{'disconnected':_0x2590bd(0x1c1),'connecting':_0x2590bd(0x1e0),'connected':_0x2590bd(0x1da),'failed':_0x2590bd(0x1d3),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2590bd(0x1c7),'sessionOccupied':_0x2590bd(0x1d8),'networkError':_0x2590bd(0x1b8),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2590bd(0x1d7),'clickToConfigure':_0x2590bd(0x1cb)},'mcpConfig':{'title':_0x2590bd(0x1e1),'description':_0x2590bd(0x1e5),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2590bd(0x1bb),'apiKeyHint':_0x2590bd(0x1c0),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2590bd(0x1e7),'connectionInfo':_0x2590bd(0x1bc),'mcpClientConfig':_0x2590bd(0x1bc),'configInstructions':_0x2590bd(0x1ea),'configStepTitle':_0x2590bd(0x1d2),'configStep1':_0x2590bd(0x1c6),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2590bd(0x1be),'sessionId':_0x2590bd(0x1b9),'sessionIdDescription':_0x2590bd(0x1d9),'authorizationDescription':_0x2590bd(0x1ba),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2590bd(0x1d1),'save':_0x2590bd(0x1b6),'saving':'Saving...','note1':_0x2590bd(0x1bd),'note2':_0x2590bd(0x1c9),'configSaved':_0x2590bd(0x1dd),'configError':_0x2590bd(0x1ca),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x2590bd(0x1d5),'getStarted':_0x2590bd(0x1c4)},'validation':{'apiKeyRequired':_0x2590bd(0x1dc),'apiKeyTooShort':_0x2590bd(0x1d6),'invalidConfig':_0x2590bd(0x1e3),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2590bd(0x1cd),'connecting':_0x2590bd(0x1c3),'connected':_0x2590bd(0x1b7),'failed':_0x2590bd(0x1ce),'retrying':_0x2590bd(0x1e2)},'connectionError':{'unauthorized':_0x2590bd(0x1cf),'sessionOccupied':_0x2590bd(0x1cc),'networkError':_0x2590bd(0x1d0),'maxRetriesExceeded':_0x2590bd(0x1e9)}}};export{e as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3c8b(){const _0x5a099d=['MCP\x20Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20configuration','Configuration\x20Steps:','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2745274SSHxPk','8948370QjfrDN','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','Configuration\x20Parameters:','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','58577WbMLic','MCP\x20Configuration','MCP:\x20Network\x20Error','MCP\x20Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3556580KMlLsG','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','Saving...','Connected','Disconnected','What\x20is\x20API\x20Key?','MCP\x20Connecting...','Save\x20Configuration','2970960dwslzg','Configuration\x20saved\x20successfully','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20Authentication','MCP:\x20Max\x20Retries\x20Exceeded','437943BSVPoA','40kqnPcM','315252vKRYAR','Click\x20to\x20configure\x20MCP','Connection\x20Failed'];_0x3c8b=function(){return _0x5a099d;};return _0x3c8b();}function _0x2ad4(_0x157069,_0x1c7711){_0x157069=_0x157069-0x1d1;const _0x3c8bc2=_0x3c8b();let _0x2ad484=_0x3c8bc2[_0x157069];return _0x2ad484;}const _0x4fd021=_0x2ad4;(function(_0x1a31df,_0x43cb00){const _0x5d9c32=_0x2ad4,_0x426bc3=_0x1a31df();while(!![]){try{const _0xdc9846=-parseInt(_0x5d9c32(0x1ec))/0x1+parseInt(_0x5d9c32(0x1d7))/0x2+-parseInt(_0x5d9c32(0x1d5))/0x3*(-parseInt(_0x5d9c32(0x1d6))/0x4)+parseInt(_0x5d9c32(0x1f1))/0x5+-parseInt(_0x5d9c32(0x1e2))/0x6+-parseInt(_0x5d9c32(0x1e1))/0x7+parseInt(_0x5d9c32(0x1fa))/0x8;if(_0xdc9846===_0x43cb00)break;else _0x426bc3['push'](_0x426bc3['shift']());}catch(_0x23c9b5){_0x426bc3['push'](_0x426bc3['shift']());}}}(_0x3c8b,0xb90d0));const e={'mcpStatus':{'disconnected':_0x4fd021(0x1f2),'connecting':_0x4fd021(0x1f8),'connected':_0x4fd021(0x1da),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4fd021(0x1ef),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4fd021(0x1e5),'sessionOccupied':_0x4fd021(0x1f3),'networkError':_0x4fd021(0x1ee),'maxRetriesExceeded':_0x4fd021(0x1d4),'clickToConnect':_0x4fd021(0x1e6),'clickToConfigure':_0x4fd021(0x1d8)},'mcpConfig':{'title':_0x4fd021(0x1ed),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x4fd021(0x1e8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4fd021(0x1d3),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4fd021(0x1e4),'configStepTitle':_0x4fd021(0x1dd),'configStep1':_0x4fd021(0x1e3),'configStep2':_0x4fd021(0x1df),'configStep3':_0x4fd021(0x1f0),'sessionId':_0x4fd021(0x1d1),'sessionIdDescription':_0x4fd021(0x1db),'authorizationDescription':_0x4fd021(0x1d2),'configParameters':_0x4fd021(0x1e7),'maxRetries':'Max\x20Retries','save':_0x4fd021(0x1f9),'saving':_0x4fd021(0x1f4),'note1':_0x4fd021(0x1ea),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4fd021(0x1fb),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4fd021(0x1f7),'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':_0x4fd021(0x1de)},'validation':{'apiKeyRequired':_0x4fd021(0x1eb),'apiKeyTooShort':_0x4fd021(0x1e9),'invalidConfig':_0x4fd021(0x1dc),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4fd021(0x1f6),'connecting':'Connecting...','connected':_0x4fd021(0x1f5),'failed':_0x4fd021(0x1d9),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4fd021(0x1e0),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1871(_0x38b033,_0x5269c4){_0x38b033=_0x38b033-0x1b1;const _0x16d5d3=_0x16d5();let _0x1871d2=_0x16d5d3[_0x38b033];return _0x1871d2;}const _0x147aba=_0x1871;(function(_0x153cd8,_0x54bfc2){const _0x4b8b96=_0x1871,_0x4d46c7=_0x153cd8();while(!![]){try{const _0x4c8c2b=parseInt(_0x4b8b96(0x1db))/0x1*(-parseInt(_0x4b8b96(0x1cb))/0x2)+parseInt(_0x4b8b96(0x1b9))/0x3+parseInt(_0x4b8b96(0x1d0))/0x4*(-parseInt(_0x4b8b96(0x1d8))/0x5)+parseInt(_0x4b8b96(0x1b2))/0x6*(parseInt(_0x4b8b96(0x1cd))/0x7)+parseInt(_0x4b8b96(0x1e1))/0x8*(parseInt(_0x4b8b96(0x1b3))/0x9)+-parseInt(_0x4b8b96(0x1c2))/0xa*(-parseInt(_0x4b8b96(0x1d6))/0xb)+parseInt(_0x4b8b96(0x1dd))/0xc;if(_0x4c8c2b===_0x54bfc2)break;else _0x4d46c7['push'](_0x4d46c7['shift']());}catch(_0x1768ed){_0x4d46c7['push'](_0x4d46c7['shift']());}}}(_0x16d5,0x9f2a5));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x147aba(0x1cc),'connected':_0x147aba(0x1dc),'failed':_0x147aba(0x1bc),'retrying':_0x147aba(0x1c4),'unknown':_0x147aba(0x1c6),'unauthorized':_0x147aba(0x1bb),'sessionOccupied':_0x147aba(0x1b7),'networkError':_0x147aba(0x1b6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x147aba(0x1bd),'clickToConfigure':_0x147aba(0x1e0)},'mcpConfig':{'title':_0x147aba(0x1b4),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x147aba(0x1c9),'apiKeyHint':_0x147aba(0x1d1),'enableAuth':_0x147aba(0x1b5),'enableAuthHint':_0x147aba(0x1cf),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x147aba(0x1ce),'configInstructions':_0x147aba(0x1da),'configStepTitle':_0x147aba(0x1b8),'configStep1':_0x147aba(0x1c3),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x147aba(0x1d3),'sessionId':'Session\x20ID','sessionIdDescription':_0x147aba(0x1d2),'authorizationDescription':_0x147aba(0x1c7),'configParameters':_0x147aba(0x1c8),'maxRetries':_0x147aba(0x1b1),'save':_0x147aba(0x1c1),'saving':_0x147aba(0x1d9),'note1':_0x147aba(0x1df),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x147aba(0x1d5),'configError':_0x147aba(0x1bf),'apiApplyInfo':{'title':_0x147aba(0x1de),'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':_0x147aba(0x1c0),'apiKeyTooShort':_0x147aba(0x1be),'invalidConfig':_0x147aba(0x1d7),'invalidApiKey':_0x147aba(0x1ba)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x147aba(0x1ca),'connected':'Connected','failed':_0x147aba(0x1d4),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x147aba(0x1c5),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};function _0x16d5(){const _0x10f1a4=['Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','100153kzdhTc','MCP\x20Connected','7307940MUUKWR','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','1176sCaUBz','Max\x20Retries','98184ENtLVE','50751TbjVQK','MCP\x20Configuration','Enable\x20Authentication','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Steps:','1517031prZlUG','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','Click\x20to\x20connect\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','Save\x20Configuration','1010nowmqg','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Unknown\x20Status','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Parameters:','Enter\x20your\x20API\x20key','Connecting...','26DCjFcx','MCP\x20Connecting...','42Vntzar','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','2003392aylohc','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','Configuration\x20saved\x20successfully','44979rnbZWa','Invalid\x20configuration','5nEeTCY'];_0x16d5=function(){return _0x10f1a4;};return _0x16d5();}
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3e33(_0xfc2d50,_0x5c3653){_0xfc2d50=_0xfc2d50-0x167;const _0x2c0e58=_0x2c0e();let _0x3e3346=_0x2c0e58[_0xfc2d50];return _0x3e3346;}const _0x1a9127=_0x3e33;(function(_0x3421e8,_0x3027cd){const _0x259200=_0x3e33,_0x25a29a=_0x3421e8();while(!![]){try{const _0x25a7bc=-parseInt(_0x259200(0x192))/0x1*(-parseInt(_0x259200(0x196))/0x2)+-parseInt(_0x259200(0x168))/0x3+-parseInt(_0x259200(0x16b))/0x4+parseInt(_0x259200(0x174))/0x5*(-parseInt(_0x259200(0x16e))/0x6)+parseInt(_0x259200(0x179))/0x7+-parseInt(_0x259200(0x171))/0x8+parseInt(_0x259200(0x173))/0x9*(parseInt(_0x259200(0x195))/0xa);if(_0x25a7bc===_0x3027cd)break;else _0x25a29a['push'](_0x25a29a['shift']());}catch(_0x55a688){_0x25a29a['push'](_0x25a29a['shift']());}}}(_0x2c0e,0x99048));const e={'mcpStatus':{'disconnected':_0x1a9127(0x18a),'connecting':_0x1a9127(0x18b),'connected':_0x1a9127(0x16d),'failed':_0x1a9127(0x170),'retrying':_0x1a9127(0x17d),'unknown':_0x1a9127(0x16c),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1a9127(0x198),'maxRetriesExceeded':_0x1a9127(0x176),'clickToConnect':_0x1a9127(0x183),'clickToConfigure':_0x1a9127(0x16a)},'mcpConfig':{'title':_0x1a9127(0x185),'description':_0x1a9127(0x169),'apiKey':_0x1a9127(0x18e),'apiKeyPlaceholder':_0x1a9127(0x16f),'apiKeyHint':_0x1a9127(0x17b),'enableAuth':_0x1a9127(0x186),'enableAuthHint':_0x1a9127(0x17a),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1a9127(0x177),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x1a9127(0x175),'configStep2':_0x1a9127(0x172),'configStep3':_0x1a9127(0x18f),'sessionId':_0x1a9127(0x197),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x1a9127(0x178),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x1a9127(0x184),'saving':_0x1a9127(0x191),'note1':_0x1a9127(0x18d),'note2':_0x1a9127(0x188),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x1a9127(0x187),'apiApplyInfo':{'title':_0x1a9127(0x167),'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':_0x1a9127(0x17f),'getStarted':_0x1a9127(0x181)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1a9127(0x17c),'invalidConfig':_0x1a9127(0x194),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1a9127(0x193),'connecting':_0x1a9127(0x17e),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x1a9127(0x190)},'connectionError':{'unauthorized':_0x1a9127(0x18c),'sessionOccupied':_0x1a9127(0x189),'networkError':_0x1a9127(0x180),'maxRetriesExceeded':_0x1a9127(0x182)}}};function _0x2c0e(){const _0x937ef1=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','8308098UORyCP','79240esqqjm','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','6863766xUHupe','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Retrying...','Connecting...','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','Save\x20Configuration','MCP\x20Configuration','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','MCP\x20Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Retrying...','Saving...','4ySfOUx','Disconnected','Invalid\x20configuration','10bVPzgt','505798DnpOkt','Session\x20ID','MCP:\x20Network\x20Error','What\x20is\x20API\x20Key?','2226327SBqnST','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','2509500ZRZSiG','MCP\x20Unknown\x20Status','MCP\x20Connected','36xxazEM','Enter\x20your\x20API\x20key','MCP\x20Connection\x20Failed','6591392GwfZZX'];_0x2c0e=function(){return _0x937ef1;};return _0x2c0e();}export{e as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x141636=_0x2531;function _0x2531(_0x40bd89,_0xe37a12){_0x40bd89=_0x40bd89-0xb4;const _0x3d88e5=_0x3d88();let _0x2531d2=_0x3d88e5[_0x40bd89];return _0x2531d2;}(function(_0x17a294,_0xa1bfb3){const _0x335bd5=_0x2531,_0x30c5cf=_0x17a294();while(!![]){try{const _0x20e9af=-parseInt(_0x335bd5(0xda))/0x1*(parseInt(_0x335bd5(0xde))/0x2)+-parseInt(_0x335bd5(0xc5))/0x3*(parseInt(_0x335bd5(0xe3))/0x4)+parseInt(_0x335bd5(0xcf))/0x5+parseInt(_0x335bd5(0xbb))/0x6*(parseInt(_0x335bd5(0xd8))/0x7)+parseInt(_0x335bd5(0xbe))/0x8+parseInt(_0x335bd5(0xd5))/0x9+-parseInt(_0x335bd5(0xc7))/0xa;if(_0x20e9af===_0xa1bfb3)break;else _0x30c5cf['push'](_0x30c5cf['shift']());}catch(_0x221e8c){_0x30c5cf['push'](_0x30c5cf['shift']());}}}(_0x3d88,0xd9060));const e={'mcpStatus':{'disconnected':_0x141636(0xbd),'connecting':'MCP\x20Connecting...','connected':_0x141636(0xe0),'failed':_0x141636(0xd9),'retrying':_0x141636(0xbf),'unknown':_0x141636(0xb6),'unauthorized':_0x141636(0xce),'sessionOccupied':_0x141636(0xd3),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x141636(0xe6),'clickToConfigure':_0x141636(0xd6)},'mcpConfig':{'title':_0x141636(0xcd),'description':_0x141636(0xcb),'apiKey':_0x141636(0xb8),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x141636(0xc3),'enableAuth':_0x141636(0xc9),'enableAuthHint':_0x141636(0xd0),'connectionInfo':_0x141636(0xba),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x141636(0xcc),'configStep1':_0x141636(0xe1),'configStep2':_0x141636(0xc8),'configStep3':_0x141636(0xc4),'sessionId':'Session\x20ID','sessionIdDescription':_0x141636(0xdb),'authorizationDescription':_0x141636(0xe5),'configParameters':_0x141636(0xc2),'maxRetries':_0x141636(0xdf),'save':_0x141636(0xc0),'saving':_0x141636(0xb5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x141636(0xdd),'configError':_0x141636(0xd7),'apiApplyInfo':{'title':_0x141636(0xbc),'description':_0x141636(0xd1),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x141636(0xd4),'apiKeyTooShort':_0x141636(0xb4),'invalidConfig':_0x141636(0xe2),'invalidApiKey':_0x141636(0xca)},'connectionStatus':{'disconnected':_0x141636(0xc6),'connecting':'Connecting...','connected':_0x141636(0xb9),'failed':_0x141636(0xc1),'retrying':_0x141636(0xe4)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x141636(0xb7),'networkError':_0x141636(0xdc),'maxRetriesExceeded':_0x141636(0xd2)}}};export{e as default};function _0x3d88(){const _0x418115=['4928649ZDhlCU','Disconnected','11085490HHKKRY','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20Authentication','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Steps:','MCP\x20Configuration','MCP:\x20Unauthorized','590705VCBBmO','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20is\x20required','15712929vRlEYN','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','119iboaGu','MCP\x20Connection\x20Failed','22286AFOvFL','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20saved\x20successfully','94fsUSiZ','Max\x20Retries','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','4AnPxzS','Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','MCP\x20Unknown\x20Status','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key','Connected','MCP\x20Client\x20Configuration','372054kSUlJs','What\x20is\x20API\x20Key?','MCP\x20Disconnected','14157016OPBJYw','MCP\x20Retrying...','Save\x20Configuration','Connection\x20Failed','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x3d88=function(){return _0x418115;};return _0x3d88();}
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5b19(_0x35f69e,_0x2e57d2){_0x35f69e=_0x35f69e-0x99;const _0x5b34a2=_0x5b34();let _0x5b19e2=_0x5b34a2[_0x35f69e];return _0x5b19e2;}const _0x50cd0c=_0x5b19;function _0x5b34(){const _0x4c477d=['MCP\x20再試行中...','クリックしてMCPを設定','3sLvdaF','未接続','設定の変更は直ちに有効になります','2844588TBJAmZ','設定パラメータ:','100oFgzEQ','認証に失敗しました。APIキーを確認してください','MCPクライアントを再起動して設定を適用','MCP\x20未接続','設定が正常に保存されました','設定手順:','MCP:\x20セッションIDが使用中','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','APIキーは必須です','クリックしてMCPに接続','無効な設定','1077286kijgvk','セッションIDが現在使用中です。後でもう一度お試しください','MCP:\x20認証されていません','認証を有効にする','MCP設定','656638dtntrj','156jhpERP','APIキーは10文字以上である必要があります','99KTMvEU','MCP\x20不明な状態','セッションID','MCPクライアント設定','425988KUvKUc','APIキー','MCP\x20接続済み','APIキーを入力してください','MCP\x20接続中...','167990GEZCHN','32YaQsMC','MCPクライアントの設定に次の設定を追加してください:','1080264BSQLZr','最大再試行回数','保存中...','ネットワーク接続エラー。インターネット接続を確認してください','以下のJSON設定をコピー','無効なAPIキーです。キーが正しいか確認してください','APIキーはこのブラウザのローカルに保存されます','接続済み','Bearerプレフィックス付きのAPIキー。','Univer\x20AIコンソール','APIキーとは?','578943GxWscD','最大再試行回数を超過しました。後でもう一度お試しください'];_0x5b34=function(){return _0x4c477d;};return _0x5b34();}(function(_0x5722e6,_0x49da4c){const _0x41fc17=_0x5b19,_0x3d702c=_0x5722e6();while(!![]){try{const _0x30347b=-parseInt(_0x41fc17(0xa7))/0x1+parseInt(_0x41fc17(0xb6))/0x2+parseInt(_0x41fc17(0xc5))/0x3*(parseInt(_0x41fc17(0xc8))/0x4)+-parseInt(_0x41fc17(0xb3))/0x5*(-parseInt(_0x41fc17(0xa8))/0x6)+parseInt(_0x41fc17(0xa2))/0x7*(-parseInt(_0x41fc17(0xb4))/0x8)+parseInt(_0x41fc17(0xc1))/0x9*(-parseInt(_0x41fc17(0xca))/0xa)+parseInt(_0x41fc17(0xaa))/0xb*(parseInt(_0x41fc17(0xae))/0xc);if(_0x30347b===_0x49da4c)break;else _0x3d702c['push'](_0x3d702c['shift']());}catch(_0x1e20f3){_0x3d702c['push'](_0x3d702c['shift']());}}}(_0x5b34,0x811b2));const e={'mcpStatus':{'disconnected':_0x50cd0c(0x9a),'connecting':_0x50cd0c(0xb2),'connected':_0x50cd0c(0xb0),'failed':'MCP\x20接続失敗','retrying':_0x50cd0c(0xc3),'unknown':_0x50cd0c(0xab),'unauthorized':_0x50cd0c(0xa4),'sessionOccupied':_0x50cd0c(0x9d),'networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x50cd0c(0xa0),'clickToConfigure':_0x50cd0c(0xc4)},'mcpConfig':{'title':_0x50cd0c(0xa6),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x50cd0c(0xaf),'apiKeyPlaceholder':_0x50cd0c(0xb1),'apiKeyHint':_0x50cd0c(0xbc),'enableAuth':_0x50cd0c(0xa5),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x50cd0c(0xad),'mcpClientConfig':_0x50cd0c(0xad),'configInstructions':_0x50cd0c(0xb5),'configStepTitle':_0x50cd0c(0x9c),'configStep1':_0x50cd0c(0xba),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x50cd0c(0x99),'sessionId':_0x50cd0c(0xac),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x50cd0c(0xbe),'configParameters':_0x50cd0c(0xc9),'maxRetries':_0x50cd0c(0xb7),'save':'設定を保存','saving':_0x50cd0c(0xb8),'note1':_0x50cd0c(0xc7),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x50cd0c(0x9b),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x50cd0c(0xc0),'description':_0x50cd0c(0x9e),'univerAiLabel':_0x50cd0c(0xbf),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x50cd0c(0x9f),'apiKeyTooShort':_0x50cd0c(0xa9),'invalidConfig':_0x50cd0c(0xa1),'invalidApiKey':_0x50cd0c(0xbb)},'connectionStatus':{'disconnected':_0x50cd0c(0xc6),'connecting':'接続中...','connected':_0x50cd0c(0xbd),'failed':'接続失敗','retrying':'再試行中...'},'connectionError':{'unauthorized':_0x50cd0c(0xcb),'sessionOccupied':_0x50cd0c(0xa3),'networkError':_0x50cd0c(0xb9),'maxRetriesExceeded':_0x50cd0c(0xc2)}}};export{e as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2ef97f=_0x3d53;(function(_0xd73c14,_0x6a7051){const _0x314a7c=_0x3d53,_0x4466ab=_0xd73c14();while(!![]){try{const _0x1b0a68=parseInt(_0x314a7c(0x1ae))/0x1*(-parseInt(_0x314a7c(0x1b7))/0x2)+-parseInt(_0x314a7c(0x1c8))/0x3*(parseInt(_0x314a7c(0x1ad))/0x4)+parseInt(_0x314a7c(0x1d3))/0x5*(parseInt(_0x314a7c(0x1b3))/0x6)+parseInt(_0x314a7c(0x1cd))/0x7*(parseInt(_0x314a7c(0x1bc))/0x8)+parseInt(_0x314a7c(0x1b2))/0x9+-parseInt(_0x314a7c(0x1b4))/0xa*(parseInt(_0x314a7c(0x1d6))/0xb)+-parseInt(_0x314a7c(0x1ba))/0xc*(-parseInt(_0x314a7c(0x1d2))/0xd);if(_0x1b0a68===_0x6a7051)break;else _0x4466ab['push'](_0x4466ab['shift']());}catch(_0x41d523){_0x4466ab['push'](_0x4466ab['shift']());}}}(_0x8f4d,0xa74b7));const e={'mcpStatus':{'disconnected':_0x2ef97f(0x1b1),'connecting':_0x2ef97f(0x1c4),'connected':_0x2ef97f(0x1aa),'failed':_0x2ef97f(0x1a6),'retrying':_0x2ef97f(0x1bd),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':'MCP:\x20인증되지\x20않음','sessionOccupied':_0x2ef97f(0x1dc),'networkError':_0x2ef97f(0x1d8),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0x2ef97f(0x1dd),'clickToConfigure':_0x2ef97f(0x1ab)},'mcpConfig':{'title':_0x2ef97f(0x1d4),'description':'AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','apiKey':'API\x20키','apiKeyPlaceholder':_0x2ef97f(0x1c0),'apiKeyHint':_0x2ef97f(0x1be),'enableAuth':_0x2ef97f(0x1a9),'enableAuthHint':_0x2ef97f(0x1d9),'connectionInfo':_0x2ef97f(0x1b5),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x2ef97f(0x1b9),'configStepTitle':_0x2ef97f(0x1cc),'configStep1':_0x2ef97f(0x1c1),'configStep2':_0x2ef97f(0x1c9),'configStep3':_0x2ef97f(0x1cf),'sessionId':_0x2ef97f(0x1bb),'sessionIdDescription':_0x2ef97f(0x1cb),'authorizationDescription':_0x2ef97f(0x1d7),'configParameters':'설정\x20매개변수:','maxRetries':_0x2ef97f(0x1c7),'save':_0x2ef97f(0x1a7),'saving':_0x2ef97f(0x1bf),'note1':_0x2ef97f(0x1d1),'note2':_0x2ef97f(0x1da),'configSaved':_0x2ef97f(0x1ac),'configError':_0x2ef97f(0x1d5),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':_0x2ef97f(0x1db),'univerAiLabel':_0x2ef97f(0x1ca),'getStarted':_0x2ef97f(0x1b0)},'validation':{'apiKeyRequired':_0x2ef97f(0x1b6),'apiKeyTooShort':_0x2ef97f(0x1c3),'invalidConfig':_0x2ef97f(0x1d0),'invalidApiKey':_0x2ef97f(0x1a8)},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':_0x2ef97f(0x1c6),'connected':'연결됨','failed':_0x2ef97f(0x1c2),'retrying':_0x2ef97f(0x1ce)},'connectionError':{'unauthorized':_0x2ef97f(0x1b8),'sessionOccupied':_0x2ef97f(0x1af),'networkError':_0x2ef97f(0x1c5),'maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};function _0x8f4d(){const _0x366b50=['MCP\x20연결됨','클릭하여\x20MCP\x20설정','설정이\x20성공적으로\x20저장되었습니다','4Vyjbux','477103evdmNa','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','몇\x20초\x20만에\x20API\x20키\x20발급받기','MCP\x20연결\x20끊김','5587047TbwVyX','6MKFCri','1150fjbbqK','MCP\x20클라이언트\x20설정','API\x20키는\x20필수입니다','4FpTKKu','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','12bakLdG','세션\x20ID','710488uUAywm','MCP\x20재시도\x20중...','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','저장\x20중...','API\x20키를\x20입력하세요','아래\x20JSON\x20설정\x20복사','연결\x20실패','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP\x20연결\x20중...','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','연결\x20중...','최대\x20재시도\x20횟수','975567wDIloa','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','Univer\x20AI\x20콘솔','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','설정\x20단계:','7kXzUdp','재시도\x20중...','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','유효하지\x20않은\x20설정','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','27173978ncnOFR','1653020pAwnNv','MCP\x20설정','설정\x20저장\x20실패','111518GANIhw','Bearer\x20접두사가\x20있는\x20API\x20키.','MCP:\x20네트워크\x20오류','보안\x20연결을\x20위해\x20인증\x20활성화','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','MCP:\x20세션\x20ID\x20사용\x20중','클릭하여\x20MCP\x20연결','MCP\x20연결\x20실패','설정\x20저장','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','인증\x20활성화'];_0x8f4d=function(){return _0x366b50;};return _0x8f4d();}function _0x3d53(_0xecc8bf,_0x17dd4e){_0xecc8bf=_0xecc8bf-0x1a6;const _0x8f4d22=_0x8f4d();let _0x3d5375=_0x8f4d22[_0xecc8bf];return _0x3d5375;}export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xa73677=_0x2d7f;(function(_0x56ff91,_0x5e5a19){const _0x34db91=_0x2d7f,_0x49633b=_0x56ff91();while(!![]){try{const _0x4a40df=parseInt(_0x34db91(0xe4))/0x1*(-parseInt(_0x34db91(0xe7))/0x2)+-parseInt(_0x34db91(0xd2))/0x3+parseInt(_0x34db91(0xc0))/0x4+parseInt(_0x34db91(0xbb))/0x5*(-parseInt(_0x34db91(0xe3))/0x6)+-parseInt(_0x34db91(0xb7))/0x7+-parseInt(_0x34db91(0xdc))/0x8+parseInt(_0x34db91(0xdf))/0x9;if(_0x4a40df===_0x5e5a19)break;else _0x49633b['push'](_0x49633b['shift']());}catch(_0x5cb265){_0x49633b['push'](_0x49633b['shift']());}}}(_0x3df4,0x66c25));const e={'mcpStatus':{'disconnected':_0xa73677(0xda),'connecting':_0xa73677(0xdd),'connected':_0xa73677(0xd9),'failed':_0xa73677(0xc7),'retrying':_0xa73677(0xd3),'unknown':_0xa73677(0xcf),'unauthorized':_0xa73677(0xe9),'sessionOccupied':_0xa73677(0xd1),'networkError':_0xa73677(0xbe),'maxRetriesExceeded':_0xa73677(0xe8),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xa73677(0xe1)},'mcpConfig':{'title':_0xa73677(0xd4),'description':_0xa73677(0xe6),'apiKey':_0xa73677(0xec),'apiKeyPlaceholder':_0xa73677(0xe5),'apiKeyHint':_0xa73677(0xc1),'enableAuth':_0xa73677(0xc4),'enableAuthHint':_0xa73677(0xde),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0xa73677(0xdb),'configInstructions':_0xa73677(0xc6),'configStepTitle':_0xa73677(0xc9),'configStep1':_0xa73677(0xcb),'configStep2':_0xa73677(0xbd),'configStep3':_0xa73677(0xc8),'sessionId':_0xa73677(0xb8),'sessionIdDescription':_0xa73677(0xce),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xa73677(0xc3),'maxRetries':_0xa73677(0xc5),'save':_0xa73677(0xbc),'saving':_0xa73677(0xc2),'note1':_0xa73677(0xcc),'note2':_0xa73677(0xe2),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xa73677(0xe0),'apiApplyInfo':{'title':_0xa73677(0xbf),'description':_0xa73677(0xea),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xa73677(0xba),'invalidConfig':_0xa73677(0xd0),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0xa73677(0xb9),'connecting':_0xa73677(0xcd),'connected':_0xa73677(0xd7),'failed':_0xa73677(0xca),'retrying':_0xa73677(0xd6)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0xa73677(0xeb),'networkError':_0xa73677(0xd8),'maxRetriesExceeded':_0xa73677(0xd5)}}};function _0x3df4(){const _0x497ae6=['Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','MCP\x20Disconnected','MCP\x20Client\x20Configuration','415408lYACaS','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','10602702pgOhkA','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','24NFgESG','3ORHXZj','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','5574vSAiUm','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Unauthorized','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-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key','5068063TWliIq','Session\x20ID','Disconnected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','295390YkhxOv','Save\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Network\x20Error','What\x20is\x20API\x20Key?','2877472gGHnGf','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','Configuration\x20Parameters:','Enable\x20Authentication','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Steps:','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Unknown\x20Status','Invalid\x20configuration','MCP:\x20Session\x20ID\x20Occupied','1367811TwFCTj','MCP\x20Retrying...','MCP\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...'];_0x3df4=function(){return _0x497ae6;};return _0x3df4();}function _0x2d7f(_0x2c99ec,_0x391298){_0x2c99ec=_0x2c99ec-0xb7;const _0x3df413=_0x3df4();let _0x2d7f01=_0x3df413[_0x2c99ec];return _0x2d7f01;}export{e as default};
|