@univerjs-pro/mcp-ui 0.15.1-insiders.20260117-8ce4a01 → 0.15.2-insiders.20260119-edc718c
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/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/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/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/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 +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x246e3f=_0x6e38;function _0x1bc7(){const _0x2dc414=['isValid','什么是\x20API\x20密钥?','clsx','MessageType','NETWORK_ERROR','registerCommand','mcpStatus.connected','_apiKey$','114934ODxzwT','mcp-config-dialog','_mcpCoreConfig$','defineProperty','div','univer-space-y-2','CheckMarkIcon','MCP:\x20Network\x20Error','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-flex\x20univer-gap-3','_initStatusComponent','xlink:href','url(#on-line-icon_clip0_910_349)','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.note1','on-line-icon','univer.plus','univer-bg-blue-500','Button','value','权限验证失败,请检查您的\x20API\x20密钥','CommandType','mcpConfig.validation.apiKeyRequired','stringify','mcpConfig.configInstructions','Connecting...','Plugin','配置参数:','univer-text-blue-600','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP:\x20网络错误','mcpConfig.sessionIdDescription','Retrying...','displayName','Save\x20Configuration','_messageService','https://console.univer.plus','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-space-y-5','重连中...','将配置添加到您的\x20MCP\x20客户端设置文件中','MCPConfigPanel','Max\x20Retries','apiKey','API\x20密钥无效,请检查密钥是否正确','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','setItem','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.connectionError.unauthorized','mcpConfig.apiApplyInfo.getStarted','连接中...','mcpConfig.note2','_config$','MCP_UI_PLUGIN','MCP\x20客户端配置','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','http','会话ID','check-mark-icon','Bearer\x20','jsxs','sessionId$','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_logService','_loadStoredApiKey','M0\x200H16V16H0z','get','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','mcpConfig.connectionStatus.connecting','currentColor','has','url(#$1','UniverIcon','connectionStatus$','_initConfigSync','bottom','mcpConfig.apiApplyInfo.title','_initializeMenus','API\x20密钥','您的\x20API\x20密钥安全存储在本地存储中','toStringTag','IMessageService','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.configSaved','_dialogService','subscribeConfigValue$','点击连接\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','defs','FAILED','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-space-y-3','ILocalStorageService','jsx','replace','几秒钟内获取您的\x20API\x20密钥','merge','Univer\x20AI\x20Console','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.apiKeyPlaceholder','MenuItemType','mcpConfig.configStep3','MCP\x20状态未知','MCP\x20Configuration','Univer\x20AI\x20控制台','svg','enableAutoConnect','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20Client\x20Configuration','mcpStatus.disconnected','evenodd','map','subscribe','连接失败','_menuManagerService','_validateConfig','ISocketService','mcpConfig.connectionStatus.disconnected','mcpStatus.retrying','配置\x20MCP\x20使用\x20AI\x20操作电子表格','UNAUTHORIZED','_mcpConnectionController','已连接','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-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-flex-1','IConfigService','59080070sWuwSN','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','配置保存失败','MCP\x20Unknown\x20Status','random','将以下配置添加到您的\x20MCP\x20客户端设置中:','48HlrAlS','use','MCP:\x20会话\x20ID\x20已被占用','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','forEach','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','MenuIcon','启用身份验证','mcpConfig.validation.apiKeyTooShort','showConfigPanel','label','useDependency','univer-shrink-0\x20univer-text-red-500','0\x200\x2017\x2016','mcpConfig.apiApplyInfo.description','MCP\x20Retrying...','Authorization:','_uiPartsService','mcpConfig.configStepTitle','Success','univer-text-xs\x20univer-text-gray-500','off-line-icon','univer-flex\x20univer-items-center','pre','includes','mcpConfig.configError','NONE','https://mcp.univer.ai/mcp/?univer_session_id=','univer-font-medium','_loading$','string','RETRYING','colorChannel1','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','setConfig','RibbonStartGroup','http://www.w3.org/2000/svg','MCPConfigUIController','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','off-line-icon_clip0_910_343','univer-size-2\x20univer-rounded-full','button','help-icon','assign','univer-text-gray-400','getConfig','0\x200\x2016\x2016','CloseIcon','mcpStatus.maxRetriesExceeded','attrs','mcpConfig.connectionStatus.retrying','Input','mcpStatus.unauthorized','text','univer.ai','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connection\x20Failed','next','1em','Saving...','round','fill','mcpConfig.apiKey','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Configuration\x20Parameters:','children','MCP:\x20未授权','MCPConnectionController','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','重启您的\x20MCP\x20客户端以使配置生效','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','disposeWithMe','DISCONNECTED','showStatus','errorMessage','_handleConfigSave','warn','Disposable','MCP\x20连接失败','univerjs-icon\x20univerjs-icon-','useState','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','会话\x20ID\x20已被占用,请稍后再试','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Disconnected','mcpServerUrl','Error','MCP\x20已断开','off','ComponentManager','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_localStorageService','substring','_config','MCPUIMenuController','_localeService','mcpStatus.failed','push','BUTTON','DependentOn','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','enUS','close','mcpConfig.title','add','defIds','6446112KGwytw','mcpConfig.connectionError.networkError','Click\x20to\x20connect\x20MCP','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','translate(.97)','mcpConfig.configParameters','mcpStatus.clickToConnect','MCPConnectionStatus','HEADER_MENU','_injector','MCP\x20连接中...','open','clipPath','Configuration\x20Notes:','API\x20key\x20with\x20Bearer\x20prefix.','removeItem','432675wFCTSE','ILogService','_initAutoConnect','toString','onStarting','Session\x20ID','<API_KEY>','_blank','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','UniverMCPUIPlugin','univer-flex\x20univer-items-center\x20univer-gap-2','UniverMCPPlugin','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','entries','保存配置','mcpConfig.configStep2','_configService','mcpStatus.unknown','<SESSION_ID>','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-sm\x20univer-font-medium','tag','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','MCP_PLUGIN_CONFIG_KEY','COMMAND','length','API\x20Key','trim','Enable\x20Authentication','mcpConfig.connectionInfo','idSuffix','mcp-ui.config','Inject','_connectionController','univer-text-red-500','MCPConnectionUIController','\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','请输入您的\x20API\x20密钥','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','8380589HOZMPn','网络连接错误,请检查您的网络连接','showDeveloperTools','useCallback','OTHERS','mask','API\x20key\x20is\x20required','129672DLBnjM','LocaleService','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','IUIPartsService','\x20-\x20','保存中...','mcpConfig.connectionStatus.failed','path','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','配置步骤:','connectionError$','5525BowMyc','Invalid\x20configuration','useObservable','MCP\x20配置','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcp.apiKey','CONNECTED','_handleConfigure','超出最大重试次数,请稍后再试','Enter\x20your\x20API\x20key','Injector','BehaviorSubject','univer-text-yellow-500','show','https://console.univer.ai','error','OnLineIcon','Module','配置保存成功','univer-mr-2\x20univer-flex\x20univer-text-xl','mcp-ui.command.openConfigPanel','4572dicXoP','univer-min-w-0\x20univer-flex-1','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','SESSION_ID_OCCUPIED','_commandService','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','176SzySoV','__setCustomHeaders','univer-space-y-4','createElement','univer-bg-green-500','_initializeCommands','Copy\x20the\x20JSON\x20configuration\x20below','mcpConfig.connectionError.sessionOccupied','univer-flex\x20univer-items-center\x20univer-gap-3','_componentManager','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','OpenMCPConfigPanelCommand','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20重连中...','CONNECTING','getOwnPropertyDescriptor','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','white','forwardRef','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','span','mcpStatus.clickToConfigure','MCPConnectionError','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-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP:\x20Max\x20Retries\x20Exceeded','MCPStatusDisplay','_createConfigPanelComponent','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','none','mcpStatus.networkError'];_0x1bc7=function(){return _0x2dc414;};return _0x1bc7();}(function(_0x3ce4d4,_0x1e4557){const _0x4bab20=_0x6e38,_0x47ce3c=_0x3ce4d4();while(!![]){try{const _0x599d95=-parseInt(_0x4bab20(0x133))/0x1+parseInt(_0x4bab20(0x1b1))/0x2*(-parseInt(_0x4bab20(0x237))/0x3)+parseInt(_0x4bab20(0x183))/0x4*(-parseInt(_0x4bab20(0x16e))/0x5)+-parseInt(_0x4bab20(0x2a4))/0x6+-parseInt(_0x4bab20(0x15c))/0x7+parseInt(_0x4bab20(0x189))/0x8*(-parseInt(_0x4bab20(0x163))/0x9)+parseInt(_0x4bab20(0x231))/0xa;if(_0x599d95===_0x1e4557)break;else _0x47ce3c['push'](_0x47ce3c['shift']());}catch(_0x4070bc){_0x47ce3c['push'](_0x47ce3c['shift']());}}}(_0x1bc7,0xabf22));var ae=Object[_0x246e3f(0x1b4)],le=(_0x52c5fa,_0x3463d9,_0x2cf002)=>_0x3463d9 in _0x52c5fa?ae(_0x52c5fa,_0x3463d9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cf002}):_0x52c5fa[_0x3463d9]=_0x2cf002,I=(_0x1be7fe,_0x1a740e,_0x399722)=>le(_0x1be7fe,typeof _0x1a740e!='symbol'?_0x1a740e+'':_0x1a740e,_0x399722);Object[_0x246e3f(0x1b4)](exports,Symbol[_0x246e3f(0x201)],{'value':_0x246e3f(0x17f)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0xd86697,..._0x309819}){const _0x222f73=_0x246e3f,{icon:_0x397471,id:_0x5d36d3,className:_0x10202e,extend:_0x96f1b6,..._0x57fe9f}=_0x309819,_0x28f352=(_0x222f73(0x287)+_0x5d36d3+'\x20'+(_0x10202e||''))[_0x222f73(0x14f)](),_0x145a0c=d['useRef']('_'+de());return G(_0x397471,''+_0x5d36d3,{'defIds':_0x397471[_0x222f73(0x2a3)],'idSuffix':_0x145a0c['current']},{'ref':_0xd86697,'className':_0x28f352,..._0x57fe9f},_0x96f1b6);}function G(_0x2193dd,_0x19c6af,_0x40e7bc,_0x32f0fc,_0x572e31){const _0x2c606c=_0x246e3f;return d['createElement'](_0x2193dd['tag'],{'key':_0x19c6af,...ue(_0x2193dd,_0x40e7bc,_0x572e31),..._0x32f0fc},(ve(_0x2193dd,_0x40e7bc)[_0x2c606c(0x279)]||[])['map']((_0x5c7fcb,_0x55a251)=>G(_0x5c7fcb,_0x19c6af+'-'+_0x2193dd[_0x2c606c(0x149)]+'-'+_0x55a251,_0x40e7bc,void 0x0,_0x572e31)));}function ue(_0x36341a,_0x5d9eaa,_0x262df8){const _0x1c94cb=_0x246e3f,_0x41a70b={..._0x36341a['attrs']};_0x262df8!=null&&_0x262df8[_0x1c94cb(0x257)]&&_0x41a70b[_0x1c94cb(0x274)]===_0x1c94cb(0x257)&&(_0x41a70b[_0x1c94cb(0x274)]=_0x262df8[_0x1c94cb(0x257)]),_0x36341a[_0x1c94cb(0x149)]===_0x1c94cb(0x161)&&_0x41a70b['id']&&(_0x41a70b['id']=_0x41a70b['id']+_0x5d9eaa[_0x1c94cb(0x152)]),Object['entries'](_0x41a70b)[_0x1c94cb(0x23b)](([_0x36b689,_0x544aa1])=>{const _0x3a8f46=_0x1c94cb;_0x36b689===_0x3a8f46(0x161)&&typeof _0x544aa1==_0x3a8f46(0x255)&&(_0x41a70b[_0x36b689]=_0x544aa1[_0x3a8f46(0x210)](/url\(#(.*)\)/,_0x3a8f46(0x1f8)+_0x5d9eaa[_0x3a8f46(0x152)]+')'));});const {defIds:_0x1ffe1b}=_0x5d9eaa;return!_0x1ffe1b||_0x1ffe1b['length']===0x0||(_0x36341a[_0x1c94cb(0x149)]===_0x1c94cb(0x238)&&_0x41a70b[_0x1c94cb(0x1bc)]&&(_0x41a70b['xlink:href']=_0x41a70b[_0x1c94cb(0x1bc)]+_0x5d9eaa['idSuffix']),Object[_0x1c94cb(0x140)](_0x41a70b)['forEach'](([_0x7a3f3,_0x22f885])=>{const _0x4b2134=_0x1c94cb;typeof _0x22f885=='string'&&(_0x41a70b[_0x7a3f3]=_0x22f885['replace'](/url\(#(.*)\)/,_0x4b2134(0x1f8)+_0x5d9eaa[_0x4b2134(0x152)]+')'));})),_0x41a70b;}function _0x6e38(_0x33d770,_0x1870a8){_0x33d770=_0x33d770-0x12d;const _0x1bc7c2=_0x1bc7();let _0x6e38c7=_0x1bc7c2[_0x33d770];return _0x6e38c7;}function ve(_0x2a35c2,_0x40a4ab){const _0x1dc257=_0x246e3f;var _0x313fd4;const {defIds:_0x5e0a6b}=_0x40a4ab;return!_0x5e0a6b||_0x5e0a6b[_0x1dc257(0x14d)]===0x0?_0x2a35c2:_0x2a35c2[_0x1dc257(0x149)]==='defs'&&((_0x313fd4=_0x2a35c2[_0x1dc257(0x279)])!=null&&_0x313fd4[_0x1dc257(0x14d)])?{..._0x2a35c2,'children':_0x2a35c2['children'][_0x1dc257(0x221)](_0x52622f=>typeof _0x52622f[_0x1dc257(0x268)]['id']==_0x1dc257(0x255)&&_0x5e0a6b&&_0x5e0a6b['includes'](_0x52622f[_0x1dc257(0x268)]['id'])?{..._0x52622f,'attrs':{..._0x52622f[_0x1dc257(0x268)],'id':_0x52622f[_0x1dc257(0x268)]['id']+_0x40a4ab[_0x1dc257(0x152)]}}:_0x52622f)}:_0x2a35c2;}function de(){const _0x5f3a78=_0x246e3f;return Math[_0x5f3a78(0x235)]()[_0x5f3a78(0x136)](0x24)[_0x5f3a78(0x296)](0x2,0x8);}_[_0x246e3f(0x1d2)]=_0x246e3f(0x1f9);const Ce={'tag':'svg','attrs':{'xmlns':_0x246e3f(0x25b),'fill':_0x246e3f(0x1a7),'viewBox':'0\x200\x2016\x2016','width':_0x246e3f(0x271),'height':_0x246e3f(0x271)},'children':[{'tag':_0x246e3f(0x16a),'attrs':{'fill':_0x246e3f(0x1f6),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x246e3f(0x220),'clipRule':_0x246e3f(0x220)}}]},H=d[_0x246e3f(0x19c)](function(_0x177677,_0x5212ba){const _0x3a9197=_0x246e3f;return d['createElement'](_,Object[_0x3a9197(0x262)]({},_0x177677,{'id':_0x3a9197(0x1eb),'ref':_0x5212ba,'icon':Ce}));});H[_0x246e3f(0x1d2)]=_0x246e3f(0x1b7);const ge={'tag':_0x246e3f(0x21b),'attrs':{'xmlns':_0x246e3f(0x25b),'fill':_0x246e3f(0x1a7),'viewBox':'0\x200\x2016\x2016','width':_0x246e3f(0x271),'height':_0x246e3f(0x271)},'children':[{'tag':_0x246e3f(0x16a),'attrs':{'fill':_0x246e3f(0x1f6),'d':_0x246e3f(0x15a)}}]},B=d['forwardRef'](function(_0x3e704f,_0x4e2c2a){const _0x2609ca=_0x246e3f;return d[_0x2609ca(0x18c)](_,Object[_0x2609ca(0x262)]({},_0x3e704f,{'id':'close-icon','ref':_0x4e2c2a,'icon':ge}));});B[_0x246e3f(0x1d2)]=_0x246e3f(0x266);const fe={'tag':_0x246e3f(0x21b),'attrs':{'xmlns':_0x246e3f(0x25b),'fill':_0x246e3f(0x1a7),'viewBox':_0x246e3f(0x265),'width':_0x246e3f(0x271),'height':_0x246e3f(0x271)},'children':[{'tag':_0x246e3f(0x16a),'attrs':{'fill':_0x246e3f(0x1f6),'d':_0x246e3f(0x1de)}},{'tag':_0x246e3f(0x16a),'attrs':{'fill':'currentColor','d':_0x246e3f(0x1f4)}},{'tag':_0x246e3f(0x16a),'attrs':{'fill':_0x246e3f(0x1f6),'d':_0x246e3f(0x23a),'fillRule':'evenodd','clipRule':_0x246e3f(0x220)}}]},F=d[_0x246e3f(0x19c)](function(_0x35b234,_0x1cbf13){const _0x275f5a=_0x246e3f;return d[_0x275f5a(0x18c)](_,Object['assign']({},_0x35b234,{'id':_0x275f5a(0x261),'ref':_0x1cbf13,'icon':fe}));});F['displayName']='HelpIcon';const pe={'tag':_0x246e3f(0x21b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x246e3f(0x1a7),'viewBox':_0x246e3f(0x265),'width':_0x246e3f(0x271),'height':_0x246e3f(0x271)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x246e3f(0x1f6),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x246e3f(0x273),'strokeLinejoin':_0x246e3f(0x273),'strokeWidth':1.2}}]},{'tag':_0x246e3f(0x20a),'attrs':{},'children':[{'tag':_0x246e3f(0x12f),'attrs':{'id':_0x246e3f(0x25e)},'children':[{'tag':_0x246e3f(0x16a),'attrs':{'fill':_0x246e3f(0x19b),'d':_0x246e3f(0x1f2)}}]}]}],'defIds':[_0x246e3f(0x25e)]},Y=d[_0x246e3f(0x19c)](function(_0x4b3384,_0x48113e){const _0x4621bf=_0x246e3f;return d[_0x4621bf(0x18c)](_,Object['assign']({},_0x4b3384,{'id':_0x4621bf(0x24c),'ref':_0x48113e,'icon':pe}));});Y[_0x246e3f(0x1d2)]='OffLineIcon';const he={'tag':_0x246e3f(0x21b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x246e3f(0x1a7),'viewBox':_0x246e3f(0x244),'width':_0x246e3f(0x271),'height':_0x246e3f(0x271)},'children':[{'tag':'g','attrs':{'clipPath':_0x246e3f(0x1bd)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x246e3f(0x258),'strokeLinecap':'round','strokeLinejoin':_0x246e3f(0x273),'strokeWidth':1.2}}]},{'tag':_0x246e3f(0x20a),'attrs':{},'children':[{'tag':_0x246e3f(0x12f),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x246e3f(0x19b),'d':_0x246e3f(0x1f2),'transform':_0x246e3f(0x2a8)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x246e3f(0x19c)](function(_0x4c91e5,_0x383622){const _0x1624f0=_0x246e3f;return d['createElement'](_,Object[_0x1624f0(0x262)]({},_0x4c91e5,{'id':_0x1624f0(0x1c0),'ref':_0x383622,'icon':he}));});q[_0x246e3f(0x1d2)]=_0x246e3f(0x17e);function V(_0x2359bb){const _0x44aff0=_0x246e3f;var _0x33c3bb,_0x38f5db;const {mcpCoreConfig:_0x7bebb2,onSave:_0x2afa7f,loading:_0x37fd93=!0x1,config:_0x57a6f2,connectionStatus$:_0x28b669,connectionError$:_0x39fcc2,currentApiKey$:_0x52bfef,currentSessionId$:_0x602e41}=_0x2359bb,_0x310509=v[_0x44aff0(0x242)](u[_0x44aff0(0x164)]),_0x3cb342=v[_0x44aff0(0x170)](_0x28b669,s[_0x44aff0(0x2ab)]['DISCONNECTED']),_0x598bf2=v[_0x44aff0(0x170)](_0x39fcc2,s[_0x44aff0(0x1a0)][_0x44aff0(0x251)]),_0x1ed7e9=v[_0x44aff0(0x170)](_0x602e41,''),_0x54769b=v[_0x44aff0(0x170)](_0x52bfef,''),[_0x436a86,_0x23738c]=d[_0x44aff0(0x288)](_0x54769b||''),_0x214268=!0x0,_0x58cf49=_0x57a6f2['showDeveloperTools']&&_0x7bebb2[_0x44aff0(0x28f)]&&(_0x7bebb2[_0x44aff0(0x28f)][_0x44aff0(0x24f)](_0x44aff0(0x1c1))||_0x7bebb2['mcpServerUrl']['includes'](_0x44aff0(0x26d))),_0x4e7a51=(_0x33c3bb=_0x7bebb2[_0x44aff0(0x28f)])==null?void 0x0:_0x33c3bb[_0x44aff0(0x24f)](_0x44aff0(0x1c1)),_0x13f91c=(_0x38f5db=_0x7bebb2[_0x44aff0(0x28f)])==null?void 0x0:_0x38f5db[_0x44aff0(0x24f)](_0x44aff0(0x26d)),_0x2a9f68=_0x4e7a51?_0x44aff0(0x1d5):_0x44aff0(0x17c),_0x2515eb=_0x57a6f2[_0x44aff0(0x15e)]&&(_0x4e7a51||_0x13f91c),[_0x2de9a9,_0x57d0dd]=d[_0x44aff0(0x288)](!_0x436a86[_0x44aff0(0x14f)]()),_0x1198fa=(_0x229583,_0x2998f7)=>{const _0x55c6d8=_0x44aff0;if(_0x2998f7===s['MCPConnectionError'][_0x55c6d8(0x22a)])return _0x55c6d8(0x27e);switch(_0x229583){case s['MCPConnectionStatus']['CONNECTED']:return _0x55c6d8(0x29e);case s[_0x55c6d8(0x2ab)][_0x55c6d8(0x198)]:case s[_0x55c6d8(0x2ab)][_0x55c6d8(0x256)]:return _0x55c6d8(0x277);case s['MCPConnectionStatus'][_0x55c6d8(0x20b)]:return _0x55c6d8(0x27e);default:return _0x55c6d8(0x23c);}},_0x120876=(_0x65f83c,_0x30746b)=>{const _0x316456=_0x44aff0;if(_0x30746b===s[_0x316456(0x1a0)][_0x316456(0x22a)])return'univer-bg-red-500';switch(_0x65f83c){case s[_0x316456(0x2ab)][_0x316456(0x174)]:return _0x316456(0x18d);case s[_0x316456(0x2ab)][_0x316456(0x198)]:case s[_0x316456(0x2ab)][_0x316456(0x256)]:return _0x316456(0x1c2);case s['MCPConnectionStatus'][_0x316456(0x20b)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x25881=_0x24f33c=>{const _0x2487b9=_0x44aff0;switch(_0x24f33c){case s[_0x2487b9(0x2ab)]['CONNECTED']:return _0x310509['t']('mcpConfig.connectionStatus.connected');case s['MCPConnectionStatus'][_0x2487b9(0x198)]:return _0x310509['t'](_0x2487b9(0x1f5));case s[_0x2487b9(0x2ab)][_0x2487b9(0x20b)]:return _0x310509['t'](_0x2487b9(0x169));case s[_0x2487b9(0x2ab)][_0x2487b9(0x256)]:return _0x310509['t'](_0x2487b9(0x269));default:return _0x310509['t'](_0x2487b9(0x227));}},_0x513870=_0x2f2529=>{const _0x4aea82=_0x44aff0;switch(_0x2f2529){case s['MCPConnectionError'][_0x4aea82(0x22a)]:return _0x310509['t'](_0x4aea82(0x1e1));case s['MCPConnectionError'][_0x4aea82(0x186)]:return _0x310509['t'](_0x4aea82(0x190));case s[_0x4aea82(0x1a0)][_0x4aea82(0x1ad)]:return _0x310509['t'](_0x4aea82(0x2a5));case s[_0x4aea82(0x1a0)]['MAX_RETRIES_EXCEEDED']:return _0x310509['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x297279=d[_0x44aff0(0x15f)](()=>{const _0x1b11bf=_0x44aff0,_0x188059={..._0x7bebb2,'apiKey':_0x436a86[_0x1b11bf(0x14f)](),'enableAuth':_0x214268};_0x2afa7f(_0x188059);},[_0x7bebb2,_0x436a86,_0x214268,_0x2afa7f]),_0x5d12dd=_0x436a86[_0x44aff0(0x14f)]()[_0x44aff0(0x14d)]>0x0;return i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x20c),'children':[i[_0x44aff0(0x20f)]('div',{'className':_0x44aff0(0x165),'children':i['jsxs']('div',{'className':_0x44aff0(0x191),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x27c),'children':i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':'univer-text-white','children':'⚙'})}),i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'children':i[_0x44aff0(0x20f)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x310509['t']('mcpConfig.description')})})]})}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x2a7),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':f[_0x44aff0(0x1ab)](_0x44aff0(0x28d),_0x1198fa(_0x3cb342,_0x598bf2)),'children':i['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':f[_0x44aff0(0x1ab)](_0x44aff0(0x25f),_0x120876(_0x3cb342,_0x598bf2))}),i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':_0x44aff0(0x148),'children':_0x25881(_0x3cb342)})]})}),_0x598bf2!==s[_0x44aff0(0x1a0)][_0x44aff0(0x251)]&&(_0x3cb342===s[_0x44aff0(0x2ab)]['FAILED']||_0x598bf2===s[_0x44aff0(0x1a0)][_0x44aff0(0x22a)])&&i['jsx'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1d6),'children':i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x147),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':_0x44aff0(0x243),'children':'⚠️'}),i[_0x44aff0(0x20f)]('p',{'className':_0x44aff0(0x1b9),'children':_0x513870(_0x598bf2)})]})})]}),i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x13b),'children':i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1d7),'children':[i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1b6),'children':[i[_0x44aff0(0x1ed)](_0x44aff0(0x241),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[i['jsx'](_0x44aff0(0x19e),{'children':'🔑'}),'\x20',_0x310509['t'](_0x44aff0(0x275)),i[_0x44aff0(0x20f)]('span',{'className':_0x44aff0(0x156),'children':'*'}),_0x58cf49&&i[_0x44aff0(0x20f)]('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':_0x310509['t'](_0x44aff0(0x1fd)),'role':_0x44aff0(0x260),'onClick':()=>_0x57d0dd(!0x0),'children':i[_0x44aff0(0x20f)](F,{})})]}),i[_0x44aff0(0x20f)](f[_0x44aff0(0x26a)],{'type':_0x44aff0(0x26c),'placeholder':_0x310509['t'](_0x44aff0(0x215)),'value':_0x436a86,'disabled':_0x37fd93,'autoComplete':_0x44aff0(0x292),'onChange':_0x23738c}),i['jsx']('p',{'className':_0x44aff0(0x24b),'children':_0x310509['t']('mcpConfig.apiKeyHint')})]}),_0x58cf49&&_0x2de9a9&&i['jsxs'](_0x44aff0(0x1b5),{'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':[i[_0x44aff0(0x20f)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':'button','onClick':()=>_0x57d0dd(!0x1),'children':i[_0x44aff0(0x20f)](B,{'className':'univer-size-4'})}),i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x146),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x232),'children':i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':_0x44aff0(0x1cd),'children':'🚀'})}),i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x22f),'children':[i[_0x44aff0(0x20f)]('h4',{'className':_0x44aff0(0x13f),'children':_0x310509['t'](_0x44aff0(0x1fd))}),i[_0x44aff0(0x20f)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x310509['t'](_0x44aff0(0x245))}),i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1ce),'children':_0x2515eb&&i['jsxs']('a',{'className':_0x44aff0(0x1a1),'href':_0x2a9f68,'target':_0x44aff0(0x13a),'rel':'noopener\x20noreferrer','children':[i['jsx'](_0x44aff0(0x19e),{'children':'🤖'}),_0x310509['t'](_0x44aff0(0x21d)),i['jsx'](_0x44aff0(0x19e),{'className':_0x44aff0(0x263),'children':'↗'})]})}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1ef),'children':['✨','\x20',_0x310509['t'](_0x44aff0(0x1e2))]})]})]})]}),_0x57a6f2[_0x44aff0(0x15e)]&&i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x185),'children':[i[_0x44aff0(0x1ed)]('h4',{'className':_0x44aff0(0x1a2),'children':[i['jsx'](_0x44aff0(0x19e),{'children':'🔗'}),'\x20',_0x310509['t'](_0x44aff0(0x151))]}),i['jsxs']('div',{'className':_0x44aff0(0x18b),'children':[i[_0x44aff0(0x1ed)]('div',{'className':_0x44aff0(0x20d),'children':[i[_0x44aff0(0x20f)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x310509['t'](_0x44aff0(0x1c9))}),i['jsxs']('div',{'className':_0x44aff0(0x1b6),'children':[i[_0x44aff0(0x20f)]('div',{'className':_0x44aff0(0x209),'children':_0x310509['t'](_0x44aff0(0x249))}),i[_0x44aff0(0x1ed)]('div',{'className':_0x44aff0(0x22e),'children':[i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x13d),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':_0x44aff0(0x14a),'children':'1'}),_0x310509['t']('mcpConfig.configStep1')]}),i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x13d),'children':[i[_0x44aff0(0x20f)]('span',{'className':_0x44aff0(0x14a),'children':'2'}),_0x310509['t'](_0x44aff0(0x142))]}),i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x13d),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':_0x44aff0(0x14a),'children':'3'}),_0x310509['t'](_0x44aff0(0x217))]})]})]})]}),i[_0x44aff0(0x1ed)]('div',{'className':_0x44aff0(0x1b6),'children':[i[_0x44aff0(0x20f)]('div',{'className':_0x44aff0(0x209),'children':_0x44aff0(0x219)}),i['jsx'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x188),'children':i[_0x44aff0(0x20f)](_0x44aff0(0x24e),{'className':_0x44aff0(0x289),'children':JSON[_0x44aff0(0x1c8)]({'mcpServers':{'univer':{'url':_0x44aff0(0x252)+(_0x1ed7e9||_0x44aff0(0x145)),'type':_0x44aff0(0x1e9),'headers':{'Authorization':_0x44aff0(0x1ec)+(_0x436a86||_0x44aff0(0x139))}}}},null,0x2)})})]}),i['jsxs'](_0x44aff0(0x1b5),{'className':'univer-space-y-3','children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x209),'children':_0x310509['t'](_0x44aff0(0x2a9))}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1b6),'children':[i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i['jsx'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x172)}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x184),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x19d),'children':'univer_session_id:'}),i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x24b),'children':_0x310509['t'](_0x44aff0(0x1d0))})]})]}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x184),'children':[i['jsx'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x19d),'children':_0x44aff0(0x247)}),i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x310509['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i[_0x44aff0(0x20f)](f[_0x44aff0(0x1c3)],{'onClick':_0x297279,'disabled':!_0x5d12dd||_0x37fd93,'className':_0x44aff0(0x28c),'children':_0x37fd93?i['jsxs']('span',{'className':_0x44aff0(0x13d),'children':[i[_0x44aff0(0x20f)]('span',{'children':'⟲'}),_0x310509['t']('mcpConfig.saving')]}):i[_0x44aff0(0x1ed)]('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x44aff0(0x20f)](H,{}),_0x310509['t']('mcpConfig.save')]})}),i[_0x44aff0(0x20f)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1ba),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x214),'children':[i['jsx']('div',{'className':_0x44aff0(0x253),'children':_0x44aff0(0x130)}),i[_0x44aff0(0x1ed)]('div',{'children':['•',_0x310509['t'](_0x44aff0(0x1bf))]}),i['jsxs'](_0x44aff0(0x1b5),{'children':['•',_0x310509['t'](_0x44aff0(0x1e4))]})]})]})})]})})]});}const P=_0x246e3f(0x153),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x246e3f(0x199)],xe=(_0x43c07d,_0x4f1783,_0x4644a8,_0x1d893d)=>{const _0x2c2279=_0x246e3f;for(var _0x43da59=_0x1d893d>0x1?void 0x0:_0x1d893d?me(_0x4f1783,_0x4644a8):_0x4f1783,_0x4ecb7f=_0x43c07d[_0x2c2279(0x14d)]-0x1,_0x1fbeb3;_0x4ecb7f>=0x0;_0x4ecb7f--)(_0x1fbeb3=_0x43c07d[_0x4ecb7f])&&(_0x43da59=_0x1fbeb3(_0x43da59)||_0x43da59);return _0x43da59;},g=(_0x535c9a,_0x20275e)=>(_0x2f5854,_0x1f47a6)=>_0x20275e(_0x2f5854,_0x1f47a6,_0x535c9a);const O=_0x246e3f(0x173),D=_0x246e3f(0x1b2);exports[_0x246e3f(0x25c)]=class extends u[_0x246e3f(0x285)]{constructor(_0x4fb16f,_0x507f4a,_0x1d2901,_0x2dd15e,_0x1bcc27,_0x4bfaa9,_0x4ce2ca,_0x332f82,_0x304292,_0x27d48d){const _0x2ed99a=_0x246e3f;super(),I(this,'_loading$',new M[(_0x2ed99a(0x179))](!0x1)),I(this,_0x2ed99a(0x1b3),new M[(_0x2ed99a(0x179))]({})),I(this,_0x2ed99a(0x1e5),new M[(_0x2ed99a(0x179))]({})),I(this,_0x2ed99a(0x1b0),new M[(_0x2ed99a(0x179))]('')),I(this,_0x2ed99a(0x283),async _0x3ee836=>{const _0x46791d=_0x2ed99a;var _0x1e78ae,_0x135081;this[_0x46791d(0x254)][_0x46791d(0x270)](!0x0);try{const _0x12520c=await this[_0x46791d(0x225)](_0x3ee836);if(!_0x12520c[_0x46791d(0x1a9)]){this['_messageService'][_0x46791d(0x17b)]({'type':f[_0x46791d(0x1ac)][_0x46791d(0x290)],'content':_0x12520c[_0x46791d(0x282)]||this[_0x46791d(0x299)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x3ee836['apiKey']?await this['_localStorageService'][_0x46791d(0x1df)](O,_0x3ee836['apiKey'][_0x46791d(0x14f)]()):await this[_0x46791d(0x295)][_0x46791d(0x132)](O),this['_apiKey$'][_0x46791d(0x270)](((_0x1e78ae=_0x3ee836[_0x46791d(0x1dc)])==null?void 0x0:_0x1e78ae[_0x46791d(0x14f)]())||''),this[_0x46791d(0x22b)][_0x46791d(0x18a)]({'Authorization':_0x46791d(0x1ec)+((_0x135081=_0x3ee836[_0x46791d(0x1dc)])==null?void 0x0:_0x135081[_0x46791d(0x14f)]())}),this[_0x46791d(0x1d4)][_0x46791d(0x17b)]({'type':f[_0x46791d(0x1ac)][_0x46791d(0x24a)],'content':this[_0x46791d(0x299)]['t'](_0x46791d(0x204))}),setTimeout(()=>{const _0x516cd9=_0x46791d;this[_0x516cd9(0x205)]['close'](D);},0x320);}catch(_0x23a29b){this[_0x46791d(0x1f0)][_0x46791d(0x17d)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x23a29b),this[_0x46791d(0x1d4)][_0x46791d(0x17b)]({'type':f[_0x46791d(0x1ac)][_0x46791d(0x290)],'content':this[_0x46791d(0x299)]['t'](_0x46791d(0x250))});}finally{this[_0x46791d(0x254)][_0x46791d(0x270)](!0x1);}}),(this[_0x2ed99a(0x2ad)]=_0x4fb16f,this[_0x2ed99a(0x248)]=_0x507f4a,this[_0x2ed99a(0x143)]=_0x1d2901,this[_0x2ed99a(0x295)]=_0x2dd15e,this[_0x2ed99a(0x205)]=_0x1bcc27,this['_messageService']=_0x4bfaa9,this[_0x2ed99a(0x192)]=_0x4ce2ca,this[_0x2ed99a(0x299)]=_0x332f82,this[_0x2ed99a(0x1f0)]=_0x304292,this[_0x2ed99a(0x22b)]=_0x27d48d,this[_0x2ed99a(0x1fb)](),this[_0x2ed99a(0x1f1)](),this['_registerComponent']());}[_0x246e3f(0x240)](){const _0x191f7c=_0x246e3f,_0x1e2c11=this[_0x191f7c(0x143)]['getConfig'](P);_0x1e2c11!=null&&_0x1e2c11[_0x191f7c(0x15e)]&&this[_0x191f7c(0x205)][_0x191f7c(0x12e)]({'id':D,'title':{'title':this['_localeService']['t'](_0x191f7c(0x2a1))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x518d57=_0x191f7c;this[_0x518d57(0x205)][_0x518d57(0x2a0)](D);}});}['getCurrentConfig'](){const _0xd23d6c=_0x246e3f;return this[_0xd23d6c(0x1b3)]['value'];}['_registerComponent'](){const _0x4074ee=_0x246e3f;this['disposeWithMe'](this[_0x4074ee(0x192)]['register'](_0x4074ee(0x1da),this['_createConfigPanelComponent']()));}[_0x246e3f(0x1a5)](){const _0x29bb9a=_0x246e3f;return v['connectInjector'](()=>{const _0x1ec248=_0x6e38;var _0x2eec98,_0x559c47,_0x4f7a4b;return i[_0x1ec248(0x20f)](V,{'config':this[_0x1ec248(0x1e5)][_0x1ec248(0x1c4)],'mcpCoreConfig':this[_0x1ec248(0x1b3)][_0x1ec248(0x1c4)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x1ec248(0x283)],'loading':this[_0x1ec248(0x254)][_0x1ec248(0x1c4)],'connectionStatus$':(_0x2eec98=this[_0x1ec248(0x22b)])==null?void 0x0:_0x2eec98['connectionStatus$'],'connectionError$':(_0x559c47=this[_0x1ec248(0x22b)])==null?void 0x0:_0x559c47[_0x1ec248(0x16d)],'currentSessionId$':(_0x4f7a4b=this[_0x1ec248(0x22b)])==null?void 0x0:_0x4f7a4b[_0x1ec248(0x1ee)]});},this[_0x29bb9a(0x2ad)]);}['_initConfigSync'](){const _0x1c7e0c=_0x246e3f;this[_0x1c7e0c(0x27f)](this[_0x1c7e0c(0x143)][_0x1c7e0c(0x206)](s[_0x1c7e0c(0x14b)])[_0x1c7e0c(0x222)](_0x1527c9=>{const _0x48d902=_0x1c7e0c;this['_mcpCoreConfig$'][_0x48d902(0x270)](_0x1527c9||{});}));const _0x67e4d2=this[_0x1c7e0c(0x143)]['getConfig'](s[_0x1c7e0c(0x14b)]);this['_mcpCoreConfig$']['next'](_0x67e4d2||{}),this[_0x1c7e0c(0x27f)](this['_configService']['subscribeConfigValue$'](P)[_0x1c7e0c(0x222)](_0x517b53=>{const _0x1f6428=_0x1c7e0c;this[_0x1f6428(0x1e5)][_0x1f6428(0x270)](_0x517b53||{});}));const _0x129efd=this[_0x1c7e0c(0x143)][_0x1c7e0c(0x264)](P);this[_0x1c7e0c(0x1e5)][_0x1c7e0c(0x270)](_0x129efd||{});}async[_0x246e3f(0x1f1)](){const _0x10a9ce=_0x246e3f,_0x2caf6b=this['_configService'][_0x10a9ce(0x264)](P);if(!(_0x2caf6b!=null&&_0x2caf6b[_0x10a9ce(0x15e)]))return;const _0x4c9efb=await this[_0x10a9ce(0x295)]['getItem'](O);_0x4c9efb&&(this[_0x10a9ce(0x22b)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x4c9efb}),this['_apiKey$'][_0x10a9ce(0x270)](_0x4c9efb));}async[_0x246e3f(0x225)](_0x554fc6){const _0x14ddde=_0x246e3f;if(!_0x554fc6[_0x14ddde(0x1dc)]||_0x554fc6['apiKey'][_0x14ddde(0x14f)]()[_0x14ddde(0x14d)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x14ddde(0x299)]['t'](_0x14ddde(0x1c7))};if(_0x554fc6[_0x14ddde(0x1dc)][_0x14ddde(0x14f)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x14ddde(0x23f))};try{const _0x3c90fb=await this[_0x14ddde(0x2ad)]['get'](s[_0x14ddde(0x27b)])['validateApiKey'](_0x554fc6[_0x14ddde(0x1dc)]['trim']());return _0x3c90fb[_0x14ddde(0x1a9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3c90fb['error']||this[_0x14ddde(0x299)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x43ad1c){return console[_0x14ddde(0x284)](_0x14ddde(0x15b),_0x43ad1c),{'isValid':!0x0};}}},exports[_0x246e3f(0x25c)]=xe([g(0x0,u['Inject'](u['Injector'])),g(0x1,v[_0x246e3f(0x166)]),g(0x2,u['IConfigService']),g(0x3,u[_0x246e3f(0x20e)]),g(0x4,v['IDialogService']),g(0x5,v[_0x246e3f(0x202)]),g(0x6,u['Inject'](v[_0x246e3f(0x293)])),g(0x7,u[_0x246e3f(0x154)](u[_0x246e3f(0x164)])),g(0x8,u[_0x246e3f(0x134)]),g(0x9,u['Inject'](s[_0x246e3f(0x27b)]))],exports[_0x246e3f(0x25c)]);const b={'id':_0x246e3f(0x182),'type':u[_0x246e3f(0x1c6)][_0x246e3f(0x14c)],'handler':async(_0x58c7d7,_0x327f57)=>(_0x58c7d7[_0x246e3f(0x1f3)](exports[_0x246e3f(0x25c)])[_0x246e3f(0x240)](),!0x0)};function Z(_0x532bcb,_0x19484e){const _0x5dc09f=_0x246e3f;switch(_0x532bcb){case s[_0x5dc09f(0x2ab)]['DISCONNECTED']:return _0x5dc09f(0x21f);case s[_0x5dc09f(0x2ab)][_0x5dc09f(0x198)]:return'mcpStatus.connecting';case s[_0x5dc09f(0x2ab)][_0x5dc09f(0x174)]:return _0x5dc09f(0x1af);case s[_0x5dc09f(0x2ab)][_0x5dc09f(0x20b)]:switch(_0x19484e){case s['MCPConnectionError'][_0x5dc09f(0x22a)]:return _0x5dc09f(0x26b);case s['MCPConnectionError'][_0x5dc09f(0x186)]:return'mcpStatus.sessionOccupied';case s[_0x5dc09f(0x1a0)]['NETWORK_ERROR']:return _0x5dc09f(0x1a8);case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x5dc09f(0x267);default:return _0x5dc09f(0x29a);}case s['MCPConnectionStatus'][_0x5dc09f(0x256)]:return _0x5dc09f(0x228);default:return _0x5dc09f(0x144);}}function Se(_0x13c25c,_0x2bd1d8,_0x468af0,_0x49418e=!0x0){const _0x280231=_0x246e3f,_0xed5b4e=Z(_0x13c25c,_0x2bd1d8),_0x130895=_0x468af0['t'](_0xed5b4e);return _0x49418e?_0x13c25c===s[_0x280231(0x2ab)]['DISCONNECTED']&&_0x2bd1d8===s[_0x280231(0x1a0)]['UNAUTHORIZED']?_0x130895+_0x280231(0x167)+_0x468af0['t'](_0x280231(0x19f)):_0x13c25c===s[_0x280231(0x2ab)]['CONNECTED']?''+_0x130895:_0x13c25c===s[_0x280231(0x2ab)][_0x280231(0x280)]||_0x13c25c===s[_0x280231(0x2ab)][_0x280231(0x20b)]?_0x130895+_0x280231(0x167)+_0x468af0['t'](_0x280231(0x2aa)):_0x130895:_0x130895;}function Pe(_0x4ce22d){const _0x58c181=_0x246e3f;switch(_0x4ce22d){case s[_0x58c181(0x2ab)][_0x58c181(0x174)]:return'univer-text-green-500';case s['MCPConnectionStatus'][_0x58c181(0x198)]:case s[_0x58c181(0x2ab)][_0x58c181(0x256)]:return _0x58c181(0x17a);case s[_0x58c181(0x2ab)][_0x58c181(0x20b)]:case s[_0x58c181(0x2ab)][_0x58c181(0x280)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function W(_0x23bfe9){const _0xcb323f=_0x246e3f,{status$:_0x3fcdd8,error$:_0x4f0687,onConfigure:_0x4e8ccb,showClickable:_0x491323=!0x0}=_0x23bfe9,_0x5f1460=v[_0xcb323f(0x170)](_0x3fcdd8,s[_0xcb323f(0x2ab)][_0xcb323f(0x280)]),_0x5ed4d1=v[_0xcb323f(0x170)](_0x4f0687,s['MCPConnectionError'][_0xcb323f(0x251)]),_0x36a412=v[_0xcb323f(0x242)](u[_0xcb323f(0x164)]),_0x267d43=_0x5f1460===s[_0xcb323f(0x2ab)][_0xcb323f(0x174)];_0x5f1460===s['MCPConnectionStatus'][_0xcb323f(0x198)]||s[_0xcb323f(0x2ab)][_0xcb323f(0x256)];const _0x5b35d2=_0x36a412['t'](Z(_0x5f1460,_0x5ed4d1)),_0x424700=Se(_0x5f1460,_0x5ed4d1,_0x36a412,_0x491323),_0x41e433=Pe(_0x5f1460),_0x1eee01=_0x267d43?i[_0xcb323f(0x20f)](q,{}):i[_0xcb323f(0x20f)](Y,{}),_0x73b067=d[_0xcb323f(0x15f)](()=>{_0x491323&&_0x4e8ccb&&_0x4e8ccb();},[_0x491323,_0x4e8ccb]);function _0x2b13a3(){const _0x103c8e=_0xcb323f;return i[_0x103c8e(0x1ed)](_0x103c8e(0x1b5),{'className':f[_0x103c8e(0x1ab)](_0x103c8e(0x24d),_0x491323&&_0x4e8ccb&&_0x103c8e(0x158)),'role':_0x103c8e(0x260),'onClick':_0x491323&&_0x4e8ccb?_0x73b067:void 0x0,'children':[i[_0x103c8e(0x20f)](_0x103c8e(0x1b5),{'className':f[_0x103c8e(0x1ab)](_0x103c8e(0x181),_0x41e433),'children':_0x1eee01}),i['jsx'](_0x103c8e(0x1b5),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5b35d2})]});}return i[_0xcb323f(0x20f)](f['Tooltip'],{'title':_0x424700,'placement':_0xcb323f(0x1fc),'children':_0x2b13a3()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x89d257,_0x5855bb,_0x314e73,_0x28e63a)=>{const _0x4a9a9e=_0x246e3f;for(var _0x3c6ecd=_0x28e63a>0x1?void 0x0:_0x28e63a?Ie(_0x5855bb,_0x314e73):_0x5855bb,_0x5c6ecb=_0x89d257[_0x4a9a9e(0x14d)]-0x1,_0x2be9ce;_0x5c6ecb>=0x0;_0x5c6ecb--)(_0x2be9ce=_0x89d257[_0x5c6ecb])&&(_0x3c6ecd=_0x2be9ce(_0x3c6ecd)||_0x3c6ecd);return _0x3c6ecd;},N=(_0x27371c,_0x3920f8)=>(_0xbe78d3,_0x3bcae6)=>_0x3920f8(_0xbe78d3,_0x3bcae6,_0x27371c);exports[_0x246e3f(0x157)]=class extends u[_0x246e3f(0x285)]{constructor(_0x220382,_0x3e5f0b,_0x2f088c,_0x4bd5f9){const _0x2bfdd4=_0x246e3f;super(),this[_0x2bfdd4(0x2ad)]=_0x220382,this[_0x2bfdd4(0x155)]=_0x3e5f0b,this[_0x2bfdd4(0x248)]=_0x2f088c,this[_0x2bfdd4(0x143)]=_0x4bd5f9,this[_0x2bfdd4(0x135)](),this[_0x2bfdd4(0x1bb)]();}[_0x246e3f(0x135)](){const _0x14745a=_0x246e3f,_0x5bc6e1=this[_0x14745a(0x143)][_0x14745a(0x264)](P);_0x5bc6e1!=null&&_0x5bc6e1[_0x14745a(0x15e)]&&(this['_connectionController'][_0x14745a(0x21c)]=!0x1);}[_0x246e3f(0x1bb)](){const _0x368c5f=_0x246e3f,_0x3a621c=this['_configService']['getConfig'](P);(_0x3a621c==null?void 0x0:_0x3a621c[_0x368c5f(0x281)])!==!0x1&&this[_0x368c5f(0x27f)](this[_0x368c5f(0x248)]['registerComponent'](v['BuiltInUIPart'][_0x368c5f(0x2ac)],()=>{const _0xa8f6de=_0x368c5f;var _0x4fee9f;return v['connectInjector'](ye({'status$':this[_0xa8f6de(0x155)][_0xa8f6de(0x1fa)],'error$':this[_0xa8f6de(0x155)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x4fee9f=_0x3a621c==null?void 0x0:_0x3a621c[_0xa8f6de(0x15e)])!=null?_0x4fee9f:!0x1}),this[_0xa8f6de(0x2ad)]);}));}[_0x246e3f(0x175)](){const _0x588fe6=_0x246e3f;this['_injector'][_0x588fe6(0x1f3)](exports[_0x588fe6(0x25c)])[_0x588fe6(0x240)]();}},exports[_0x246e3f(0x157)]=_e([N(0x0,u['Inject'](u[_0x246e3f(0x178)])),N(0x1,u[_0x246e3f(0x154)](s[_0x246e3f(0x27b)])),N(0x2,v[_0x246e3f(0x166)]),N(0x3,u[_0x246e3f(0x230)])],exports['MCPConnectionUIController']);function ye(_0x44adef){const {status$:_0x3b1f89,error$:_0x339b76,onConfigure:_0x20cbfd,showClickable:_0xe82e73}=_0x44adef;return function(){const _0x4ee1bf=_0x6e38;return i[_0x4ee1bf(0x20f)](W,{'status$':_0x3b1f89,'error$':_0x339b76,'onConfigure':_0x20cbfd,'showClickable':_0xe82e73});};}function Me(_0x342d97){const _0x3981f4=_0x246e3f;return{'id':b['id'],'type':v[_0x3981f4(0x216)][_0x3981f4(0x29c)],'icon':_0x3981f4(0x23d),'title':'mcpConfig.title','tooltip':_0x3981f4(0x2a1)};}const Ne={[v[_0x246e3f(0x25a)][_0x246e3f(0x160)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x246e3f(0x199)],je=(_0x560e43,_0x51cff3,_0x24366e,_0x4d4a3a)=>{const _0x4f33cb=_0x246e3f;for(var _0x3e5290=_0x4d4a3a>0x1?void 0x0:_0x4d4a3a?be(_0x51cff3,_0x24366e):_0x51cff3,_0x11534f=_0x560e43[_0x4f33cb(0x14d)]-0x1,_0x2297da;_0x11534f>=0x0;_0x11534f--)(_0x2297da=_0x560e43[_0x11534f])&&(_0x3e5290=_0x2297da(_0x3e5290)||_0x3e5290);return _0x3e5290;},z=(_0x2d0894,_0xe27da4)=>(_0x3e13de,_0x38e1e9)=>_0xe27da4(_0x3e13de,_0x38e1e9,_0x2d0894);exports['MCPUIMenuController']=class extends u['Disposable']{constructor(_0x577236,_0x3613dc){const _0x5e2a9d=_0x246e3f;super(),this[_0x5e2a9d(0x187)]=_0x577236,this[_0x5e2a9d(0x224)]=_0x3613dc,this[_0x5e2a9d(0x18e)](),this[_0x5e2a9d(0x1fe)]();}[_0x246e3f(0x18e)](){[b]['forEach'](_0x116f76=>{const _0x1a0b5f=_0x6e38;this[_0x1a0b5f(0x27f)](this[_0x1a0b5f(0x187)][_0x1a0b5f(0x1ae)](_0x116f76));});}[_0x246e3f(0x1fe)](){const _0x45c05e=_0x246e3f;this[_0x45c05e(0x224)]['mergeMenu'](Ne);}},exports[_0x246e3f(0x298)]=je([z(0x0,u['ICommandService']),z(0x1,v['IMenuManagerService'])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x246e3f(0x26f),'retrying':_0x246e3f(0x246),'unknown':_0x246e3f(0x234),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x246e3f(0x26e),'networkError':_0x246e3f(0x1b8),'maxRetriesExceeded':_0x246e3f(0x1a3),'clickToConnect':_0x246e3f(0x2a6),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x246e3f(0x25d),'apiKey':_0x246e3f(0x14e),'apiKeyPlaceholder':_0x246e3f(0x177),'apiKeyHint':_0x246e3f(0x276),'enableAuth':_0x246e3f(0x150),'enableAuthHint':_0x246e3f(0x1e0),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x246e3f(0x21e),'configInstructions':_0x246e3f(0x16b),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x246e3f(0x18f),'configStep2':_0x246e3f(0x294),'configStep3':_0x246e3f(0x195),'sessionId':_0x246e3f(0x138),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x246e3f(0x131),'configParameters':_0x246e3f(0x278),'maxRetries':_0x246e3f(0x1db),'save':_0x246e3f(0x1d3),'saving':_0x246e3f(0x272),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x246e3f(0x208),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x246e3f(0x22d),'univerAiLabel':_0x246e3f(0x213),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x246e3f(0x162),'apiKeyTooShort':_0x246e3f(0x28b),'invalidConfig':_0x246e3f(0x16f),'invalidApiKey':_0x246e3f(0x1e8)},'connectionStatus':{'disconnected':_0x246e3f(0x28e),'connecting':_0x246e3f(0x1ca),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x246e3f(0x1d1)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x246e3f(0x19a),'networkError':_0x246e3f(0x193),'maxRetriesExceeded':_0x246e3f(0x1a6)}}},we={'mcpStatus':{'disconnected':_0x246e3f(0x291),'connecting':_0x246e3f(0x12d),'connected':'MCP\x20已连接','failed':_0x246e3f(0x286),'retrying':_0x246e3f(0x197),'unknown':_0x246e3f(0x218),'unauthorized':_0x246e3f(0x27a),'sessionOccupied':_0x246e3f(0x239),'networkError':_0x246e3f(0x1cf),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x246e3f(0x207),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x246e3f(0x171),'description':_0x246e3f(0x229),'apiKey':_0x246e3f(0x1ff),'apiKeyPlaceholder':_0x246e3f(0x159),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x246e3f(0x23e),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x246e3f(0x1e7),'mcpClientConfig':_0x246e3f(0x1e7),'configInstructions':_0x246e3f(0x236),'configStepTitle':_0x246e3f(0x16c),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x246e3f(0x1d9),'configStep3':_0x246e3f(0x27d),'sessionId':_0x246e3f(0x1ea),'sessionIdDescription':_0x246e3f(0x196),'authorizationDescription':_0x246e3f(0x1be),'configParameters':_0x246e3f(0x1cc),'maxRetries':'最大重试次数','save':_0x246e3f(0x141),'saving':_0x246e3f(0x168),'note1':'配置更改将立即生效','note2':_0x246e3f(0x200),'configSaved':_0x246e3f(0x180),'configError':_0x246e3f(0x233),'apiApplyInfo':{'title':_0x246e3f(0x1aa),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x246e3f(0x21a),'getStarted':_0x246e3f(0x211)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x246e3f(0x203),'invalidConfig':'配置无效','invalidApiKey':_0x246e3f(0x1dd)},'connectionStatus':{'disconnected':'未连接','connecting':_0x246e3f(0x1e3),'connected':_0x246e3f(0x22c),'failed':_0x246e3f(0x223),'retrying':_0x246e3f(0x1d8)},'connectionError':{'unauthorized':_0x246e3f(0x1c5),'sessionOccupied':_0x246e3f(0x28a),'networkError':_0x246e3f(0x15d),'maxRetriesExceeded':_0x246e3f(0x176)}}};var Ae=Object[_0x246e3f(0x1b4)],Oe=Object[_0x246e3f(0x199)],De=(_0x54988a,_0x1ca7cc,_0x546aa1)=>_0x1ca7cc in _0x54988a?Ae(_0x54988a,_0x1ca7cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x546aa1}):_0x54988a[_0x1ca7cc]=_0x546aa1,Ue=(_0x5ccd39,_0xf81e7f,_0x36a86e,_0x101f7b)=>{const _0x45614c=_0x246e3f;for(var _0x4679bb=_0x101f7b>0x1?void 0x0:_0x101f7b?Oe(_0xf81e7f,_0x36a86e):_0xf81e7f,_0x45ebc9=_0x5ccd39[_0x45614c(0x14d)]-0x1,_0x34d4f7;_0x45ebc9>=0x0;_0x45ebc9--)(_0x34d4f7=_0x5ccd39[_0x45ebc9])&&(_0x4679bb=_0x34d4f7(_0x4679bb)||_0x4679bb);return _0x4679bb;},y=(_0x157a38,_0x20cbf2)=>(_0x17ad8c,_0x4d1c6d)=>_0x20cbf2(_0x17ad8c,_0x4d1c6d,_0x157a38),$e=(_0x2f60b6,_0x3b1eea,_0x1aa442)=>De(_0x2f60b6,_0x3b1eea+'',_0x1aa442);exports[_0x246e3f(0x13c)]=class extends u[_0x246e3f(0x1cb)]{constructor(_0x3fcf07=L,_0x417319,_0x58bbeb,_0x11730f,_0x7c159e,_0x2979d6){const _0x2691f5=_0x246e3f;super(),this[_0x2691f5(0x297)]=_0x3fcf07,this[_0x2691f5(0x2ad)]=_0x417319,this['_configService']=_0x58bbeb,this[_0x2691f5(0x248)]=_0x11730f,this['_localStorageService']=_0x7c159e,this[_0x2691f5(0x299)]=_0x2979d6;const {..._0x41fe0a}=u[_0x2691f5(0x212)]({},L,this[_0x2691f5(0x297)]);this[_0x2691f5(0x143)][_0x2691f5(0x259)](P,_0x41fe0a);}async[_0x246e3f(0x137)](){const _0x53e50f=_0x246e3f,_0x4ff232=[[exports['MCPConnectionUIController']],[exports[_0x53e50f(0x25c)]],[exports[_0x53e50f(0x298)]]];this['_injector'][_0x53e50f(0x1f7)](A[_0x53e50f(0x226)])||_0x4ff232[_0x53e50f(0x29b)]([A[_0x53e50f(0x226)],{'useClass':A['WebSocketService']}]),_0x4ff232[_0x53e50f(0x23b)](_0x130187=>this[_0x53e50f(0x2ad)][_0x53e50f(0x2a2)](_0x130187)),this[_0x53e50f(0x2ad)][_0x53e50f(0x1f3)](exports[_0x53e50f(0x157)]),this[_0x53e50f(0x2ad)][_0x53e50f(0x1f3)](exports[_0x53e50f(0x25c)]),this['_injector']['get'](exports[_0x53e50f(0x298)]);}},$e(exports[_0x246e3f(0x13c)],'pluginName',_0x246e3f(0x1e6)),exports[_0x246e3f(0x13c)]=Ue([u[_0x246e3f(0x29d)](s[_0x246e3f(0x13e)]),y(0x1,u[_0x246e3f(0x154)](u[_0x246e3f(0x178)])),y(0x2,u['IConfigService']),y(0x3,v['IUIPartsService']),y(0x4,u[_0x246e3f(0x20e)]),y(0x5,u[_0x246e3f(0x154)](u['LocaleService']))],exports['UniverMCPUIPlugin']),exports[_0x246e3f(0x1da)]=V,exports[_0x246e3f(0x1a4)]=W,exports[_0x246e3f(0x194)]=b,exports[_0x246e3f(0x29f)]=Ee,exports['zhCN']=we;
|
|
1
|
+
'use strict';const _0x50dde5=_0x5e38;(function(_0x1cb6fd,_0xfa5670){const _0x5c0aa3=_0x5e38,_0x3ee286=_0x1cb6fd();while(!![]){try{const _0x203c4b=-parseInt(_0x5c0aa3(0x2b2))/0x1*(-parseInt(_0x5c0aa3(0x193))/0x2)+parseInt(_0x5c0aa3(0x1e8))/0x3+parseInt(_0x5c0aa3(0x2d4))/0x4+-parseInt(_0x5c0aa3(0x243))/0x5*(parseInt(_0x5c0aa3(0x2c4))/0x6)+parseInt(_0x5c0aa3(0x196))/0x7+-parseInt(_0x5c0aa3(0x1d6))/0x8+-parseInt(_0x5c0aa3(0x1f8))/0x9;if(_0x203c4b===_0xfa5670)break;else _0x3ee286['push'](_0x3ee286['shift']());}catch(_0x528b44){_0x3ee286['push'](_0x3ee286['shift']());}}}(_0x2456,0x46178));var ae=Object[_0x50dde5(0x23d)],le=(_0x59f977,_0x5d90e8,_0x374655)=>_0x5d90e8 in _0x59f977?ae(_0x59f977,_0x5d90e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x374655}):_0x59f977[_0x5d90e8]=_0x374655,I=(_0xc9b1c,_0x3f4d10,_0x3ce379)=>le(_0xc9b1c,typeof _0x3f4d10!=_0x50dde5(0x1fd)?_0x3f4d10+'':_0x3f4d10,_0x3ce379);Object[_0x50dde5(0x23d)](exports,Symbol[_0x50dde5(0x2a3)],{'value':_0x50dde5(0x251)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x17ed3c,..._0x500982}){const _0x45de65=_0x50dde5,{icon:_0x3ba0a0,id:_0x34978f,className:_0x5e09af,extend:_0x534cf6,..._0x14fa42}=_0x500982,_0x5580b6=(_0x45de65(0x22e)+_0x34978f+'\x20'+(_0x5e09af||''))['trim'](),_0x1a743a=d['useRef']('_'+de());return G(_0x3ba0a0,''+_0x34978f,{'defIds':_0x3ba0a0[_0x45de65(0x179)],'idSuffix':_0x1a743a[_0x45de65(0x29f)]},{'ref':_0x17ed3c,'className':_0x5580b6,..._0x14fa42},_0x534cf6);}function _0x5e38(_0x612e62,_0x32affa){_0x612e62=_0x612e62-0x167;const _0x24561b=_0x2456();let _0x5e3843=_0x24561b[_0x612e62];return _0x5e3843;}function G(_0x3f8830,_0x37f2b6,_0x11e82e,_0x1ab7ff,_0x165eaa){const _0x1b4f46=_0x50dde5;return d[_0x1b4f46(0x1fa)](_0x3f8830[_0x1b4f46(0x2c8)],{'key':_0x37f2b6,...ue(_0x3f8830,_0x11e82e,_0x165eaa),..._0x1ab7ff},(ve(_0x3f8830,_0x11e82e)[_0x1b4f46(0x170)]||[])[_0x1b4f46(0x27a)]((_0x22ce46,_0x4c5473)=>G(_0x22ce46,_0x37f2b6+'-'+_0x3f8830['tag']+'-'+_0x4c5473,_0x11e82e,void 0x0,_0x165eaa)));}function ue(_0x458ff0,_0x2a2a8c,_0x2c140b){const _0x59e648=_0x50dde5,_0x3532d7={..._0x458ff0['attrs']};_0x2c140b!=null&&_0x2c140b['colorChannel1']&&_0x3532d7[_0x59e648(0x25e)]==='colorChannel1'&&(_0x3532d7['fill']=_0x2c140b[_0x59e648(0x22f)]),_0x458ff0[_0x59e648(0x2c8)]===_0x59e648(0x2c3)&&_0x3532d7['id']&&(_0x3532d7['id']=_0x3532d7['id']+_0x2a2a8c[_0x59e648(0x218)]),Object['entries'](_0x3532d7)[_0x59e648(0x2eb)](([_0x2f3b60,_0x5d70ef])=>{const _0x298cd9=_0x59e648;_0x2f3b60===_0x298cd9(0x2c3)&&typeof _0x5d70ef=='string'&&(_0x3532d7[_0x2f3b60]=_0x5d70ef[_0x298cd9(0x275)](/url\(#(.*)\)/,'url(#$1'+_0x2a2a8c[_0x298cd9(0x218)]+')'));});const {defIds:_0x53978c}=_0x2a2a8c;return!_0x53978c||_0x53978c[_0x59e648(0x23f)]===0x0||(_0x458ff0['tag']==='use'&&_0x3532d7['xlink:href']&&(_0x3532d7[_0x59e648(0x24c)]=_0x3532d7[_0x59e648(0x24c)]+_0x2a2a8c[_0x59e648(0x218)]),Object[_0x59e648(0x1ca)](_0x3532d7)[_0x59e648(0x2eb)](([_0x2575dd,_0xd05863])=>{const _0x177e5e=_0x59e648;typeof _0xd05863==_0x177e5e(0x199)&&(_0x3532d7[_0x2575dd]=_0xd05863[_0x177e5e(0x275)](/url\(#(.*)\)/,_0x177e5e(0x240)+_0x2a2a8c[_0x177e5e(0x218)]+')'));})),_0x3532d7;}function ve(_0x56f039,_0x4f1ec1){const _0x5aadce=_0x50dde5;var _0x42ba64;const {defIds:_0x25f24d}=_0x4f1ec1;return!_0x25f24d||_0x25f24d[_0x5aadce(0x23f)]===0x0?_0x56f039:_0x56f039['tag']===_0x5aadce(0x202)&&((_0x42ba64=_0x56f039[_0x5aadce(0x170)])!=null&&_0x42ba64[_0x5aadce(0x23f)])?{..._0x56f039,'children':_0x56f039[_0x5aadce(0x170)]['map'](_0xd388b1=>typeof _0xd388b1[_0x5aadce(0x1dc)]['id']==_0x5aadce(0x199)&&_0x25f24d&&_0x25f24d[_0x5aadce(0x2e1)](_0xd388b1[_0x5aadce(0x1dc)]['id'])?{..._0xd388b1,'attrs':{..._0xd388b1[_0x5aadce(0x1dc)],'id':_0xd388b1[_0x5aadce(0x1dc)]['id']+_0x4f1ec1['idSuffix']}}:_0xd388b1)}:_0x56f039;}function de(){const _0x511147=_0x50dde5;return Math[_0x511147(0x290)]()[_0x511147(0x198)](0x24)[_0x511147(0x176)](0x2,0x8);}_[_0x50dde5(0x1d3)]='UniverIcon';const Ce={'tag':'svg','attrs':{'xmlns':_0x50dde5(0x280),'fill':_0x50dde5(0x231),'viewBox':'0\x200\x2016\x2016','width':_0x50dde5(0x1df),'height':'1em'},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x23e),'d':_0x50dde5(0x23a),'fillRule':_0x50dde5(0x1e4),'clipRule':_0x50dde5(0x1e4)}}]},H=d[_0x50dde5(0x270)](function(_0x43987a,_0x2866b5){const _0x2570f6=_0x50dde5;return d[_0x2570f6(0x1fa)](_,Object[_0x2570f6(0x1ac)]({},_0x43987a,{'id':_0x2570f6(0x263),'ref':_0x2866b5,'icon':Ce}));});H[_0x50dde5(0x1d3)]=_0x50dde5(0x2a7);const ge={'tag':_0x50dde5(0x249),'attrs':{'xmlns':_0x50dde5(0x280),'fill':_0x50dde5(0x231),'viewBox':_0x50dde5(0x1db),'width':_0x50dde5(0x1df),'height':_0x50dde5(0x1df)},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x23e),'d':_0x50dde5(0x1eb)}}]},B=d[_0x50dde5(0x270)](function(_0x20e519,_0x332bd2){const _0x4e0e87=_0x50dde5;return d['createElement'](_,Object[_0x4e0e87(0x1ac)]({},_0x20e519,{'id':_0x4e0e87(0x186),'ref':_0x332bd2,'icon':ge}));});B[_0x50dde5(0x1d3)]=_0x50dde5(0x2a9);const fe={'tag':_0x50dde5(0x249),'attrs':{'xmlns':_0x50dde5(0x280),'fill':_0x50dde5(0x231),'viewBox':_0x50dde5(0x1db),'width':'1em','height':'1em'},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x23e),'d':_0x50dde5(0x200)}},{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x23e),'d':_0x50dde5(0x2aa)}},{'tag':'path','attrs':{'fill':_0x50dde5(0x23e),'d':_0x50dde5(0x1ae),'fillRule':_0x50dde5(0x1e4),'clipRule':'evenodd'}}]},F=d['forwardRef'](function(_0x4dd5e4,_0x31da9b){const _0x173c55=_0x50dde5;return d[_0x173c55(0x1fa)](_,Object[_0x173c55(0x1ac)]({},_0x4dd5e4,{'id':_0x173c55(0x2b8),'ref':_0x31da9b,'icon':fe}));});F[_0x50dde5(0x1d3)]='HelpIcon';const pe={'tag':'svg','attrs':{'xmlns':_0x50dde5(0x280),'fill':_0x50dde5(0x231),'viewBox':_0x50dde5(0x1db),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x50dde5(0x254)},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'stroke':_0x50dde5(0x23e),'d':_0x50dde5(0x22c),'strokeLinecap':_0x50dde5(0x24f),'strokeLinejoin':_0x50dde5(0x24f),'strokeWidth':1.2}}]},{'tag':_0x50dde5(0x202),'attrs':{},'children':[{'tag':_0x50dde5(0x244),'attrs':{'id':_0x50dde5(0x230)},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x296),'d':_0x50dde5(0x1c8)}}]}]}],'defIds':[_0x50dde5(0x230)]},Y=d[_0x50dde5(0x270)](function(_0x5416b4,_0x49fa32){const _0xc5a3c4=_0x50dde5;return d[_0xc5a3c4(0x1fa)](_,Object[_0xc5a3c4(0x1ac)]({},_0x5416b4,{'id':_0xc5a3c4(0x1ab),'ref':_0x49fa32,'icon':pe}));});Y[_0x50dde5(0x1d3)]=_0x50dde5(0x1c6);const he={'tag':_0x50dde5(0x249),'attrs':{'xmlns':_0x50dde5(0x280),'fill':_0x50dde5(0x231),'viewBox':_0x50dde5(0x287),'width':'1em','height':_0x50dde5(0x1df)},'children':[{'tag':'g','attrs':{'clipPath':_0x50dde5(0x2dd)},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'stroke':_0x50dde5(0x23e),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x50dde5(0x24f),'strokeLinejoin':_0x50dde5(0x24f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x50dde5(0x244),'attrs':{'id':_0x50dde5(0x291)},'children':[{'tag':_0x50dde5(0x17c),'attrs':{'fill':_0x50dde5(0x296),'d':'M0\x200H16V16H0z','transform':_0x50dde5(0x1f7)}}]}]}],'defIds':[_0x50dde5(0x291)]},q=d[_0x50dde5(0x270)](function(_0xa970e8,_0x5f1c18){const _0x24a612=_0x50dde5;return d['createElement'](_,Object[_0x24a612(0x1ac)]({},_0xa970e8,{'id':_0x24a612(0x2ad),'ref':_0x5f1c18,'icon':he}));});q[_0x50dde5(0x1d3)]=_0x50dde5(0x1d2);function V(_0xb5ba23){const _0x2bb0b5=_0x50dde5;var _0x4b0990,_0x1e776f;const {mcpCoreConfig:_0x309b17,onSave:_0x2fdbc,loading:_0x3ef54d=!0x1,config:_0x5314d3,connectionStatus$:_0x4671b0,connectionError$:_0x3b3ae2,currentApiKey$:_0x3220ea,currentSessionId$:_0x2e23cc}=_0xb5ba23,_0x5c7b0e=v['useDependency'](u[_0x2bb0b5(0x2a2)]),_0x5311fb=v[_0x2bb0b5(0x2b7)](_0x4671b0,s['MCPConnectionStatus'][_0x2bb0b5(0x229)]),_0x42b61f=v['useObservable'](_0x3b3ae2,s[_0x2bb0b5(0x1bd)][_0x2bb0b5(0x269)]),_0x55a17c=v[_0x2bb0b5(0x2b7)](_0x2e23cc,''),_0x463f8b=v[_0x2bb0b5(0x2b7)](_0x3220ea,''),[_0x3c0790,_0xc6b301]=d[_0x2bb0b5(0x27f)](_0x463f8b||''),_0x51a700=!0x0,_0x21323b=_0x5314d3[_0x2bb0b5(0x1ec)]&&_0x309b17[_0x2bb0b5(0x2ce)]&&(_0x309b17[_0x2bb0b5(0x2ce)][_0x2bb0b5(0x2e1)]('univer.plus')||_0x309b17['mcpServerUrl']['includes'](_0x2bb0b5(0x2d5))),_0x4e2d82=(_0x4b0990=_0x309b17[_0x2bb0b5(0x2ce)])==null?void 0x0:_0x4b0990[_0x2bb0b5(0x2e1)](_0x2bb0b5(0x21c)),_0x43ed08=(_0x1e776f=_0x309b17[_0x2bb0b5(0x2ce)])==null?void 0x0:_0x1e776f[_0x2bb0b5(0x2e1)](_0x2bb0b5(0x2d5)),_0x1e0b08=_0x4e2d82?'https://console.univer.plus':_0x2bb0b5(0x261),_0x577885=_0x5314d3[_0x2bb0b5(0x1ec)]&&(_0x4e2d82||_0x43ed08),[_0x289eb5,_0x53bf1f]=d[_0x2bb0b5(0x27f)](!_0x3c0790[_0x2bb0b5(0x262)]()),_0x331994=(_0x133d95,_0x23a806)=>{const _0x2c1f24=_0x2bb0b5;if(_0x23a806===s['MCPConnectionError'][_0x2c1f24(0x19d)])return _0x2c1f24(0x1a9);switch(_0x133d95){case s[_0x2c1f24(0x2d8)][_0x2c1f24(0x26d)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s['MCPConnectionStatus'][_0x2c1f24(0x2d6)]:case s[_0x2c1f24(0x2d8)][_0x2c1f24(0x27d)]:return _0x2c1f24(0x1e0);case s[_0x2c1f24(0x2d8)][_0x2c1f24(0x278)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x2c1f24(0x1dd);}},_0x2b431f=(_0x4c852d,_0x18a99d)=>{const _0x2109e7=_0x2bb0b5;if(_0x18a99d===s['MCPConnectionError'][_0x2109e7(0x19d)])return _0x2109e7(0x1d5);switch(_0x4c852d){case s[_0x2109e7(0x2d8)]['CONNECTED']:return _0x2109e7(0x1b3);case s[_0x2109e7(0x2d8)][_0x2109e7(0x2d6)]:case s[_0x2109e7(0x2d8)][_0x2109e7(0x27d)]:return _0x2109e7(0x28b);case s[_0x2109e7(0x2d8)][_0x2109e7(0x278)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x55aacd=_0x7e678f=>{const _0x2578bd=_0x2bb0b5;switch(_0x7e678f){case s['MCPConnectionStatus'][_0x2578bd(0x26d)]:return _0x5c7b0e['t']('mcpConfig.connectionStatus.connected');case s['MCPConnectionStatus'][_0x2578bd(0x2d6)]:return _0x5c7b0e['t'](_0x2578bd(0x1bb));case s[_0x2578bd(0x2d8)][_0x2578bd(0x278)]:return _0x5c7b0e['t'](_0x2578bd(0x276));case s['MCPConnectionStatus']['RETRYING']:return _0x5c7b0e['t'](_0x2578bd(0x2bd));default:return _0x5c7b0e['t'](_0x2578bd(0x2e8));}},_0x46b466=_0x5a81d8=>{const _0x28ad5c=_0x2bb0b5;switch(_0x5a81d8){case s[_0x28ad5c(0x1bd)][_0x28ad5c(0x19d)]:return _0x5c7b0e['t'](_0x28ad5c(0x1d1));case s['MCPConnectionError'][_0x28ad5c(0x279)]:return _0x5c7b0e['t'](_0x28ad5c(0x178));case s['MCPConnectionError']['NETWORK_ERROR']:return _0x5c7b0e['t'](_0x28ad5c(0x1e9));case s['MCPConnectionError'][_0x28ad5c(0x28c)]:return _0x5c7b0e['t'](_0x28ad5c(0x225));default:return'';}},_0x34593d=d[_0x2bb0b5(0x2a1)](()=>{const _0x53867f=_0x2bb0b5,_0x5adb85={..._0x309b17,'apiKey':_0x3c0790[_0x53867f(0x262)](),'enableAuth':_0x51a700};_0x2fdbc(_0x5adb85);},[_0x309b17,_0x3c0790,_0x51a700,_0x2fdbc]),_0x10a1d8=_0x3c0790[_0x2bb0b5(0x262)]()[_0x2bb0b5(0x23f)]>0x0;return i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x19f),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x286),'children':i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1b6),'children':[i[_0x2bb0b5(0x1fe)]('div',{'className':_0x2bb0b5(0x215),'children':i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x232),'children':'⚙'})}),i[_0x2bb0b5(0x1fe)]('div',{'children':i[_0x2bb0b5(0x1fe)]('p',{'className':_0x2bb0b5(0x21e),'children':_0x5c7b0e['t']('mcpConfig.description')})})]})}),i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2e0),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':f['clsx'](_0x2bb0b5(0x1be),_0x331994(_0x5311fb,_0x42b61f)),'children':i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x250),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':f[_0x2bb0b5(0x226)](_0x2bb0b5(0x25d),_0x2b431f(_0x5311fb,_0x42b61f))}),i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':'univer-text-sm\x20univer-font-medium','children':_0x55aacd(_0x5311fb)})]})}),_0x42b61f!==s[_0x2bb0b5(0x1bd)][_0x2bb0b5(0x269)]&&(_0x5311fb===s[_0x2bb0b5(0x2d8)][_0x2bb0b5(0x278)]||_0x42b61f===s[_0x2bb0b5(0x1bd)]['UNAUTHORIZED'])&&i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1d9),'children':i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x1c9),'children':'⚠️'}),i[_0x2bb0b5(0x1fe)]('p',{'className':_0x2bb0b5(0x1e7),'children':_0x46b466(_0x42b61f)})]})})]}),i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x23b),'children':i['jsxs']('div',{'className':_0x2bb0b5(0x27c),'children':[i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2c0),'children':[i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x1a5),{'className':_0x2bb0b5(0x2be),'children':[i['jsx'](_0x2bb0b5(0x1e6),{'children':'🔑'}),'\x20',_0x5c7b0e['t'](_0x2bb0b5(0x228)),i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x2c6),'children':'*'}),_0x21323b&&i[_0x2bb0b5(0x1fe)]('a',{'className':_0x2bb0b5(0x227),'title':_0x5c7b0e['t'](_0x2bb0b5(0x208)),'role':_0x2bb0b5(0x1c1),'onClick':()=>_0x53bf1f(!0x0),'children':i[_0x2bb0b5(0x1fe)](F,{})})]}),i[_0x2bb0b5(0x1fe)](f['Input'],{'type':'text','placeholder':_0x5c7b0e['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x3c0790,'disabled':_0x3ef54d,'autoComplete':_0x2bb0b5(0x26a),'onChange':_0xc6b301}),i['jsx']('p',{'className':_0x2bb0b5(0x1ee),'children':_0x5c7b0e['t'](_0x2bb0b5(0x19e))})]}),_0x21323b&&_0x289eb5&&i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x2b4),'children':[i[_0x2bb0b5(0x1fe)]('a',{'className':_0x2bb0b5(0x29e),'role':_0x2bb0b5(0x1c1),'onClick':()=>_0x53bf1f(!0x1),'children':i[_0x2bb0b5(0x1fe)](B,{'className':_0x2bb0b5(0x273)})}),i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1a6),'children':[i[_0x2bb0b5(0x1fe)]('div',{'className':_0x2bb0b5(0x1b5),'children':i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':'univer-text-blue-600','children':'🚀'})}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1a8),'children':[i[_0x2bb0b5(0x1fe)]('h4',{'className':_0x2bb0b5(0x17e),'children':_0x5c7b0e['t'](_0x2bb0b5(0x208))}),i[_0x2bb0b5(0x1fe)]('p',{'className':_0x2bb0b5(0x1a2),'children':_0x5c7b0e['t']('mcpConfig.apiApplyInfo.description')}),i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x29d),'children':_0x577885&&i['jsxs']('a',{'className':_0x2bb0b5(0x2a6),'href':_0x1e0b08,'target':'_blank','rel':_0x2bb0b5(0x18d),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'children':'🤖'}),_0x5c7b0e['t'](_0x2bb0b5(0x21f)),i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x238),'children':'↗'})]})}),i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x295),'children':['✨','\x20',_0x5c7b0e['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x5314d3[_0x2bb0b5(0x1ec)]&&i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1ad),'children':[i[_0x2bb0b5(0x16f)]('h4',{'className':_0x2bb0b5(0x247),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'children':'🔗'}),'\x20',_0x5c7b0e['t'](_0x2bb0b5(0x205))]}),i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2db),'children':[i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x2c2),'children':[i[_0x2bb0b5(0x1fe)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x5c7b0e['t']('mcpConfig.configInstructions')}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2c0),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2b6),'children':_0x5c7b0e['t'](_0x2bb0b5(0x289))}),i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x253),'children':[i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x250),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'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':'1'}),_0x5c7b0e['t'](_0x2bb0b5(0x283))]}),i[_0x2bb0b5(0x16f)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x192),'children':'2'}),_0x5c7b0e['t'](_0x2bb0b5(0x2dc))]}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x250),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'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'}),_0x5c7b0e['t']('mcpConfig.configStep3')]})]})]})]}),i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x2c0),'children':[i[_0x2bb0b5(0x1fe)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2bb0b5(0x1aa)}),i['jsx'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2b5),'children':i[_0x2bb0b5(0x1fe)]('pre',{'className':_0x2bb0b5(0x252),'children':JSON[_0x2bb0b5(0x2e9)]({'mcpServers':{'univer':{'url':_0x2bb0b5(0x255)+(_0x55a17c||_0x2bb0b5(0x292)),'type':_0x2bb0b5(0x216),'headers':{'Authorization':_0x2bb0b5(0x1b2)+(_0x3c0790||_0x2bb0b5(0x217))}}}},null,0x2)})})]}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2c2),'children':[i['jsx']('div',{'className':_0x2bb0b5(0x2b6),'children':_0x5c7b0e['t'](_0x2bb0b5(0x2bc))}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2c0),'children':[i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x2b0),'children':[i[_0x2bb0b5(0x1fe)]('div',{'className':_0x2bb0b5(0x28f)}),i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x25a),'children':[i[_0x2bb0b5(0x1fe)]('div',{'className':_0x2bb0b5(0x22a),'children':_0x2bb0b5(0x299)}),i['jsx'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1ee),'children':_0x5c7b0e['t'](_0x2bb0b5(0x1d4))})]})]}),i['jsxs']('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x28f)}),i[_0x2bb0b5(0x16f)]('div',{'className':_0x2bb0b5(0x25a),'children':[i['jsx'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x22a),'children':_0x2bb0b5(0x272)}),i['jsx']('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5c7b0e['t'](_0x2bb0b5(0x2df))})]})]})]})]})]})]}),i[_0x2bb0b5(0x1fe)](f['Button'],{'onClick':_0x34593d,'disabled':!_0x10a1d8||_0x3ef54d,'className':_0x2bb0b5(0x1ba),'children':_0x3ef54d?i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x1e6),{'className':_0x2bb0b5(0x250),'children':[i['jsx'](_0x2bb0b5(0x1e6),{'children':'⟲'}),_0x5c7b0e['t']('mcpConfig.saving')]}):i[_0x2bb0b5(0x16f)]('span',{'className':_0x2bb0b5(0x250),'children':[i['jsx'](H,{}),_0x5c7b0e['t'](_0x2bb0b5(0x191))]})}),i['jsx'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1f2),'children':i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x28d),'children':[i[_0x2bb0b5(0x1fe)](_0x2bb0b5(0x1e6),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i['jsxs'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x175),'children':[i['jsx'](_0x2bb0b5(0x22d),{'className':_0x2bb0b5(0x1f0),'children':_0x2bb0b5(0x2a4)}),i[_0x2bb0b5(0x16f)](_0x2bb0b5(0x22d),{'children':['•',_0x5c7b0e['t'](_0x2bb0b5(0x24a))]}),i['jsxs']('div',{'children':['•',_0x5c7b0e['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x50dde5(0x2c1),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x50dde5(0x1de)],xe=(_0x1133ba,_0x2010bd,_0x30bce2,_0x5e652d)=>{for(var _0x3859c8=_0x5e652d>0x1?void 0x0:_0x5e652d?me(_0x2010bd,_0x30bce2):_0x2010bd,_0x539ab8=_0x1133ba['length']-0x1,_0x2117ce;_0x539ab8>=0x0;_0x539ab8--)(_0x2117ce=_0x1133ba[_0x539ab8])&&(_0x3859c8=_0x2117ce(_0x3859c8)||_0x3859c8);return _0x3859c8;},g=(_0x1171c4,_0x147f96)=>(_0x121ad2,_0x3790ba)=>_0x147f96(_0x121ad2,_0x3790ba,_0x1171c4);const O=_0x50dde5(0x2da),D='mcp-config-dialog';exports[_0x50dde5(0x293)]=class extends u[_0x50dde5(0x201)]{constructor(_0x540342,_0xb8102f,_0x109c14,_0x5e991c,_0x3bd3f4,_0x4a11e0,_0x402424,_0x409439,_0x4bed1b,_0x4dc5cd){const _0xe6378c=_0x50dde5;super(),I(this,_0xe6378c(0x257),new M[(_0xe6378c(0x1b9))](!0x1)),I(this,'_mcpCoreConfig$',new M[(_0xe6378c(0x1b9))]({})),I(this,'_config$',new M[(_0xe6378c(0x1b9))]({})),I(this,_0xe6378c(0x1cc),new M[(_0xe6378c(0x1b9))]('')),I(this,'_handleConfigSave',async _0x28d047=>{const _0x6c4638=_0xe6378c;var _0x21d302,_0x249b47;this[_0x6c4638(0x257)][_0x6c4638(0x24d)](!0x0);try{const _0x3739aa=await this[_0x6c4638(0x2cd)](_0x28d047);if(!_0x3739aa[_0x6c4638(0x214)]){this[_0x6c4638(0x265)][_0x6c4638(0x1ea)]({'type':f['MessageType'][_0x6c4638(0x2c9)],'content':_0x3739aa[_0x6c4638(0x2d9)]||this['_localeService']['t'](_0x6c4638(0x17d))});return;}_0x28d047[_0x6c4638(0x28a)]?await this[_0x6c4638(0x241)][_0x6c4638(0x19c)](O,_0x28d047[_0x6c4638(0x28a)][_0x6c4638(0x262)]()):await this['_localStorageService']['removeItem'](O),this[_0x6c4638(0x1cc)][_0x6c4638(0x24d)](((_0x21d302=_0x28d047[_0x6c4638(0x28a)])==null?void 0x0:_0x21d302['trim']())||''),this['_mcpConnectionController'][_0x6c4638(0x20c)]({'Authorization':'Bearer\x20'+((_0x249b47=_0x28d047['apiKey'])==null?void 0x0:_0x249b47[_0x6c4638(0x262)]())}),this['_messageService'][_0x6c4638(0x1ea)]({'type':f[_0x6c4638(0x2a8)]['Success'],'content':this[_0x6c4638(0x1d0)]['t'](_0x6c4638(0x2d0))}),setTimeout(()=>{const _0x16ff81=_0x6c4638;this[_0x16ff81(0x204)]['close'](D);},0x320);}catch(_0x37c616){this[_0x6c4638(0x19b)][_0x6c4638(0x2ab)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x37c616),this[_0x6c4638(0x265)]['show']({'type':f[_0x6c4638(0x2a8)][_0x6c4638(0x2c9)],'content':this['_localeService']['t'](_0x6c4638(0x213))});}finally{this['_loading$'][_0x6c4638(0x24d)](!0x1);}}),(this['_injector']=_0x540342,this['_uiPartsService']=_0xb8102f,this[_0xe6378c(0x1da)]=_0x109c14,this[_0xe6378c(0x241)]=_0x5e991c,this[_0xe6378c(0x204)]=_0x3bd3f4,this[_0xe6378c(0x265)]=_0x4a11e0,this[_0xe6378c(0x1fb)]=_0x402424,this[_0xe6378c(0x1d0)]=_0x409439,this[_0xe6378c(0x19b)]=_0x4bed1b,this['_mcpConnectionController']=_0x4dc5cd,this['_initConfigSync'](),this[_0xe6378c(0x1cf)](),this[_0xe6378c(0x285)]());}[_0x50dde5(0x2b3)](){const _0x3f19b1=_0x50dde5,_0x4ff0f7=this[_0x3f19b1(0x1da)]['getConfig'](P);_0x4ff0f7!=null&&_0x4ff0f7[_0x3f19b1(0x1ec)]&&this[_0x3f19b1(0x204)][_0x3f19b1(0x1bc)]({'id':D,'title':{'title':this[_0x3f19b1(0x1d0)]['t']('mcpConfig.title')},'children':{'label':_0x3f19b1(0x29c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x296de5=_0x3f19b1;this[_0x296de5(0x204)][_0x296de5(0x29b)](D);}});}[_0x50dde5(0x246)](){const _0x1a528a=_0x50dde5;return this['_mcpCoreConfig$'][_0x1a528a(0x27b)];}[_0x50dde5(0x285)](){const _0x6ea45d=_0x50dde5;this[_0x6ea45d(0x26b)](this[_0x6ea45d(0x1fb)][_0x6ea45d(0x1b0)]('MCPConfigPanel',this[_0x6ea45d(0x1a3)]()));}[_0x50dde5(0x1a3)](){const _0x18297e=_0x50dde5;return v[_0x18297e(0x2de)](()=>{const _0x259e3f=_0x18297e;var _0x988e05,_0x3a8a62,_0x558e7f;return i['jsx'](V,{'config':this['_config$'][_0x259e3f(0x27b)],'mcpCoreConfig':this[_0x259e3f(0x271)]['value'],'currentApiKey$':this[_0x259e3f(0x1cc)],'onSave':this[_0x259e3f(0x236)],'loading':this[_0x259e3f(0x257)][_0x259e3f(0x27b)],'connectionStatus$':(_0x988e05=this['_mcpConnectionController'])==null?void 0x0:_0x988e05[_0x259e3f(0x194)],'connectionError$':(_0x3a8a62=this[_0x259e3f(0x298)])==null?void 0x0:_0x3a8a62[_0x259e3f(0x189)],'currentSessionId$':(_0x558e7f=this[_0x259e3f(0x298)])==null?void 0x0:_0x558e7f[_0x259e3f(0x1c5)]});},this[_0x18297e(0x17b)]);}[_0x50dde5(0x2ba)](){const _0x419ac0=_0x50dde5;this[_0x419ac0(0x26b)](this[_0x419ac0(0x1da)][_0x419ac0(0x20a)](s['MCP_PLUGIN_CONFIG_KEY'])[_0x419ac0(0x235)](_0x2172fb=>{const _0x1d9e31=_0x419ac0;this[_0x1d9e31(0x271)][_0x1d9e31(0x24d)](_0x2172fb||{});}));const _0xf1d562=this[_0x419ac0(0x1da)][_0x419ac0(0x182)](s[_0x419ac0(0x168)]);this[_0x419ac0(0x271)]['next'](_0xf1d562||{}),this[_0x419ac0(0x26b)](this[_0x419ac0(0x1da)][_0x419ac0(0x20a)](P)['subscribe'](_0x324378=>{const _0x263bd8=_0x419ac0;this[_0x263bd8(0x180)][_0x263bd8(0x24d)](_0x324378||{});}));const _0x4909f5=this[_0x419ac0(0x1da)][_0x419ac0(0x182)](P);this[_0x419ac0(0x180)][_0x419ac0(0x24d)](_0x4909f5||{});}async[_0x50dde5(0x1cf)](){const _0x511db4=_0x50dde5,_0x319ba3=this['_configService'][_0x511db4(0x182)](P);if(!(_0x319ba3!=null&&_0x319ba3[_0x511db4(0x1ec)]))return;const _0x4a2a2b=await this[_0x511db4(0x241)]['getItem'](O);_0x4a2a2b&&(this[_0x511db4(0x298)]['__setCustomHeaders']({'Authorization':_0x511db4(0x1b2)+_0x4a2a2b}),this[_0x511db4(0x1cc)][_0x511db4(0x24d)](_0x4a2a2b));}async['_validateConfig'](_0x1183bc){const _0xc4171f=_0x50dde5;if(!_0x1183bc['apiKey']||_0x1183bc[_0xc4171f(0x28a)][_0xc4171f(0x262)]()[_0xc4171f(0x23f)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0xc4171f(0x1f1))};if(_0x1183bc[_0xc4171f(0x28a)][_0xc4171f(0x262)]()[_0xc4171f(0x23f)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0xc4171f(0x1b8))};try{const _0x34eaff=await this[_0xc4171f(0x17b)]['get'](s['MCPConnectionController'])[_0xc4171f(0x23c)](_0x1183bc[_0xc4171f(0x28a)]['trim']());return _0x34eaff['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x34eaff[_0xc4171f(0x2ab)]||this[_0xc4171f(0x1d0)]['t'](_0xc4171f(0x18e))};}catch(_0xbee2db){return console[_0xc4171f(0x181)](_0xc4171f(0x284),_0xbee2db),{'isValid':!0x0};}}},exports[_0x50dde5(0x293)]=xe([g(0x0,u['Inject'](u[_0x50dde5(0x2d2)])),g(0x1,v[_0x50dde5(0x1a1)]),g(0x2,u[_0x50dde5(0x209)]),g(0x3,u[_0x50dde5(0x22b)]),g(0x4,v['IDialogService']),g(0x5,v[_0x50dde5(0x2ea)]),g(0x6,u['Inject'](v['ComponentManager'])),g(0x7,u[_0x50dde5(0x19a)](u['LocaleService'])),g(0x8,u['ILogService']),g(0x9,u[_0x50dde5(0x19a)](s[_0x50dde5(0x20e)]))],exports[_0x50dde5(0x293)]);const b={'id':_0x50dde5(0x17a),'type':u[_0x50dde5(0x16e)][_0x50dde5(0x26f)],'handler':async(_0x3ae7eb,_0x3ecfea)=>(_0x3ae7eb[_0x50dde5(0x1a4)](exports[_0x50dde5(0x293)])['showConfigPanel'](),!0x0)};function Z(_0x1e6fe1,_0x4c3470){const _0x324f1c=_0x50dde5;switch(_0x1e6fe1){case s[_0x324f1c(0x2d8)]['DISCONNECTED']:return'mcpStatus.disconnected';case s[_0x324f1c(0x2d8)][_0x324f1c(0x2d6)]:return _0x324f1c(0x268);case s['MCPConnectionStatus'][_0x324f1c(0x26d)]:return _0x324f1c(0x2b1);case s[_0x324f1c(0x2d8)][_0x324f1c(0x278)]:switch(_0x4c3470){case s[_0x324f1c(0x1bd)][_0x324f1c(0x19d)]:return _0x324f1c(0x203);case s[_0x324f1c(0x1bd)][_0x324f1c(0x279)]:return _0x324f1c(0x1e3);case s[_0x324f1c(0x1bd)][_0x324f1c(0x21b)]:return _0x324f1c(0x1e2);case s[_0x324f1c(0x1bd)][_0x324f1c(0x28c)]:return'mcpStatus.maxRetriesExceeded';default:return _0x324f1c(0x2d7);}case s['MCPConnectionStatus'][_0x324f1c(0x27d)]:return _0x324f1c(0x1f3);default:return _0x324f1c(0x20d);}}function _0x2456(){const _0x4f361e=['Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-text-yellow-500','MenuItemType','_validateConfig','mcpServerUrl','点击配置\x20MCP','mcpConfig.configSaved','univer-mr-2\x20univer-flex\x20univer-text-xl','Injector','mergeMenu','1883916oJBNRI','univer.ai','CONNECTING','mcpStatus.failed','MCPConnectionStatus','errorMessage','mcp.apiKey','univer-space-y-4','mcpConfig.configStep2','url(#on-line-icon_clip0_910_349)','connectInjector','mcpConfig.authorizationDescription','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','includes','add','Get\x20your\x20API\x20key\x20in\x20seconds','将配置添加到您的\x20MCP\x20客户端设置文件中','MCPConnectionUIController','Enter\x20your\x20API\x20key','MCP:\x20Network\x20Error','mcpConfig.connectionStatus.disconnected','stringify','IMessageService','forEach','MCP\x20重连中...','几秒钟内获取您的\x20API\x20密钥','MCP_PLUGIN_CONFIG_KEY','网络连接错误,请检查您的网络连接','MCPUIMenuController','API\x20密钥无效,请检查密钥是否正确','配置\x20MCP\x20使用\x20AI\x20操作电子表格','会话ID','CommandType','jsxs','children','Univer\x20AI\x20Console','Tooltip','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','配置步骤:','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','substring','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.connectionError.sessionOccupied','defIds','mcp-ui.command.openConfigPanel','_injector','path','mcpConfig.validation.invalidConfig','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Failed\x20to\x20save\x20configuration','_config$','warn','getConfig','_handleConfigure','启用身份验证','_initializeCommands','close-icon','UniverMCPPlugin','Retrying...','connectionError$','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','最大重试次数','noopener\x20noreferrer','mcpConfig.validation.invalidApiKey','MCP:\x20未授权','ICommandService','mcpConfig.save','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','940414RKroQd','connectionStatus$','保存配置','1864240bTvNsF','_config','toString','string','Inject','_logService','setItem','UNAUTHORIZED','mcpConfig.apiKeyHint','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','启用身份验证以获得安全连接','IUIPartsService','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_createConfigPanelComponent','get','label','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-flex-1','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20Configuration','off-line-icon','assign','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','会话\x20ID\x20已被占用,请稍后再试','register','Enable\x20Authentication','Bearer\x20','univer-bg-green-500','merge','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex\x20univer-items-center\x20univer-gap-3','onStarting','mcpConfig.validation.apiKeyTooShort','BehaviorSubject','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','mcpConfig.connectionStatus.connecting','open','MCPConnectionError','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCP\x20Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','button','univer-flex\x20univer-items-center','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20超出最大重试次数','sessionId$','OffLineIcon','MCP\x20已连接','M0\x200H16V16H0z','univer-shrink-0\x20univer-text-red-500','entries','MCP\x20状态未知','_apiKey$','已连接','未连接','_loadStoredApiKey','_localeService','mcpConfig.connectionError.unauthorized','OnLineIcon','displayName','mcpConfig.sessionIdDescription','univer-bg-red-500','3926384iIlciu','权限验证失败,请检查您的\x20API\x20密钥','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_configService','0\x200\x2016\x2016','attrs','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','getOwnPropertyDescriptor','1em','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','enUS','mcpStatus.networkError','mcpStatus.sessionOccupied','evenodd','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','span','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','1445361IcDQgI','mcpConfig.connectionError.networkError','show','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','showDeveloperTools','Click\x20to\x20connect\x20MCP','univer-text-xs\x20univer-text-gray-500','请输入您的\x20API\x20密钥','univer-font-medium','mcpConfig.validation.apiKeyRequired','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpStatus.retrying','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_initStatusComponent','translate(.97)','7439301KYcRyT','重启您的\x20MCP\x20客户端以使配置生效','createElement','_componentManager','配置保存失败','symbol','jsx','univer-text-gray-500','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','Disposable','defs','mcpStatus.unauthorized','_dialogService','mcpConfig.connectionInfo','Saving...','MCP\x20已断开','mcpConfig.apiApplyInfo.title','IConfigService','subscribeConfigValue$','带有\x20Bearer\x20前缀的\x20API\x20密钥。','__setCustomHeaders','mcpStatus.unknown','MCPConnectionController','Connecting...','MCP\x20Connected','BuiltInUIPart','MenuIcon','mcpConfig.configError','isValid','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','http','<API_KEY>','idSuffix','_uiPartsService','您的\x20API\x20密钥将在此浏览器中本地存储','NETWORK_ERROR','univer.plus','What\x20is\x20API\x20Key?','univer-text-sm\x20univer-text-gray-500','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20Client\x20Configuration','Session\x20ID','useDependency','_commandService','点击连接\x20MCP','mcpConfig.connectionError.maxRetriesExceeded','clsx','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','mcpConfig.apiKey','DISCONNECTED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','ILocalStorageService','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','div','univerjs-icon\x20univerjs-icon-','colorChannel1','off-line-icon_clip0_910_343','none','univer-text-white','push','API\x20key\x20is\x20required','subscribe','_handleConfigSave','OpenMCPConfigPanelCommand','univer-text-gray-400','HEADER_MENU','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','validateApiKey','defineProperty','currentColor','length','url(#$1','_localStorageService','Univer\x20AI\x20控制台','50ZTVZgM','clipPath','mcpConfig.title','getCurrentConfig','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Configuration\x20saved\x20successfully','svg','mcpConfig.note1','\x20-\x20','xlink:href','next','univer-text-green-500','round','univer-flex\x20univer-items-center\x20univer-gap-2','Module','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','url(#off-line-icon_clip0_910_343)','https://mcp.univer.ai/mcp/?univer_session_id=','OTHERS','_loading$','UniverMCPUIPlugin','Connected','univer-min-w-0\x20univer-flex-1','Configuration\x20Steps:','_connectionController','univer-size-2\x20univer-rounded-full','fill','API\x20密钥','Connection\x20Failed','https://console.univer.ai','trim','check-mark-icon','_initializeMenus','_messageService','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','ISocketService','mcpStatus.connecting','NONE','off','disposeWithMe','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','CONNECTED','配置无效','COMMAND','forwardRef','_mcpCoreConfig$','Authorization:','univer-size-4','将以下配置添加到您的\x20MCP\x20客户端设置中:','replace','mcpConfig.connectionStatus.failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','FAILED','SESSION_ID_OCCUPIED','map','value','univer-space-y-5','RETRYING','Copy\x20the\x20JSON\x20configuration\x20below','useState','http://www.w3.org/2000/svg','WebSocketService','has','mcpConfig.configStep1','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_registerComponent','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','0\x200\x2017\x2016','MCP\x20连接失败','mcpConfig.configStepTitle','apiKey','univer-bg-blue-500','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-gap-3','超出最大重试次数,请稍后再试','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','random','on-line-icon_clip0_910_349','<SESSION_ID>','MCPConfigUIController','Click\x20to\x20configure\x20MCP','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','white','BUTTON','_mcpConnectionController','univer_session_id:','_initAutoConnect','close','MCPConfigPanel','univer-flex\x20univer-flex-wrap\x20univer-gap-2','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','current','MCP\x20Retrying...','useCallback','LocaleService','toStringTag','Configuration\x20Notes:','配置更改将立即生效','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','CheckMarkIcon','MessageType','CloseIcon','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','error','配置保存成功','on-line-icon','DependentOn','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.connected','1CwBmRC','showConfigPanel','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','useObservable','help-icon','MCP:\x20Unauthorized','_initConfigSync','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.configParameters','mcpConfig.connectionStatus.retrying','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-space-y-2','mcp-ui.config','univer-space-y-3','mask','50886jsUidf','MCP\x20Disconnected','univer-text-red-500','Plugin','tag'];_0x2456=function(){return _0x4f361e;};return _0x2456();}function Se(_0x4ae6c9,_0x3a787e,_0x2fbc4b,_0x476b37=!0x0){const _0x947fe=_0x50dde5,_0x384655=Z(_0x4ae6c9,_0x3a787e),_0x136a59=_0x2fbc4b['t'](_0x384655);return _0x476b37?_0x4ae6c9===s[_0x947fe(0x2d8)][_0x947fe(0x229)]&&_0x3a787e===s[_0x947fe(0x1bd)]['UNAUTHORIZED']?_0x136a59+_0x947fe(0x24b)+_0x2fbc4b['t']('mcpStatus.clickToConfigure'):_0x4ae6c9===s[_0x947fe(0x2d8)][_0x947fe(0x26d)]?''+_0x136a59:_0x4ae6c9===s[_0x947fe(0x2d8)][_0x947fe(0x229)]||_0x4ae6c9===s[_0x947fe(0x2d8)][_0x947fe(0x278)]?_0x136a59+_0x947fe(0x24b)+_0x2fbc4b['t']('mcpStatus.clickToConnect'):_0x136a59:_0x136a59;}function Pe(_0x14310b){const _0x363dbe=_0x50dde5;switch(_0x14310b){case s['MCPConnectionStatus']['CONNECTED']:return _0x363dbe(0x24e);case s[_0x363dbe(0x2d8)][_0x363dbe(0x2d6)]:case s['MCPConnectionStatus']['RETRYING']:return _0x363dbe(0x2cb);case s['MCPConnectionStatus']['FAILED']:case s['MCPConnectionStatus']['DISCONNECTED']:return _0x363dbe(0x2c6);default:return _0x363dbe(0x1ff);}}function W(_0x3a0706){const _0x59e9ee=_0x50dde5,{status$:_0x31b61c,error$:_0x284f59,onConfigure:_0x475c4e,showClickable:_0x10310c=!0x0}=_0x3a0706,_0x5bc996=v[_0x59e9ee(0x2b7)](_0x31b61c,s['MCPConnectionStatus'][_0x59e9ee(0x229)]),_0x9883aa=v['useObservable'](_0x284f59,s[_0x59e9ee(0x1bd)]['NONE']),_0x4e038=v[_0x59e9ee(0x222)](u[_0x59e9ee(0x2a2)]),_0xa8b9b2=_0x5bc996===s[_0x59e9ee(0x2d8)]['CONNECTED'];_0x5bc996===s[_0x59e9ee(0x2d8)][_0x59e9ee(0x2d6)]||s['MCPConnectionStatus']['RETRYING'];const _0x4efac8=_0x4e038['t'](Z(_0x5bc996,_0x9883aa)),_0x49dd69=Se(_0x5bc996,_0x9883aa,_0x4e038,_0x10310c),_0x5eae7a=Pe(_0x5bc996),_0x2b6e7e=_0xa8b9b2?i[_0x59e9ee(0x1fe)](q,{}):i['jsx'](Y,{}),_0x3784be=d['useCallback'](()=>{_0x10310c&&_0x475c4e&&_0x475c4e();},[_0x10310c,_0x475c4e]);function _0x1ebd73(){const _0x591b41=_0x59e9ee;return i[_0x591b41(0x16f)](_0x591b41(0x22d),{'className':f[_0x591b41(0x226)](_0x591b41(0x1c2),_0x10310c&&_0x475c4e&&_0x591b41(0x2bf)),'role':_0x591b41(0x1c1),'onClick':_0x10310c&&_0x475c4e?_0x3784be:void 0x0,'children':[i[_0x591b41(0x1fe)](_0x591b41(0x22d),{'className':f[_0x591b41(0x226)](_0x591b41(0x2d1),_0x5eae7a),'children':_0x2b6e7e}),i[_0x591b41(0x1fe)](_0x591b41(0x22d),{'className':_0x591b41(0x26c),'children':_0x4efac8})]});}return i[_0x59e9ee(0x1fe)](f[_0x59e9ee(0x172)],{'title':_0x49dd69,'placement':'bottom','children':_0x1ebd73()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x7aafd6,_0x54d82e,_0x299c9d,_0x152d16)=>{const _0x3fad0c=_0x50dde5;for(var _0xff54d0=_0x152d16>0x1?void 0x0:_0x152d16?Ie(_0x54d82e,_0x299c9d):_0x54d82e,_0x1297b6=_0x7aafd6[_0x3fad0c(0x23f)]-0x1,_0x2fd9e4;_0x1297b6>=0x0;_0x1297b6--)(_0x2fd9e4=_0x7aafd6[_0x1297b6])&&(_0xff54d0=_0x2fd9e4(_0xff54d0)||_0xff54d0);return _0xff54d0;},N=(_0x4c28c8,_0x445674)=>(_0x2cfd95,_0x3514e9)=>_0x445674(_0x2cfd95,_0x3514e9,_0x4c28c8);exports[_0x50dde5(0x2e5)]=class extends u[_0x50dde5(0x201)]{constructor(_0x36395b,_0x3d17bd,_0x23a25c,_0x48f228){const _0x5a848d=_0x50dde5;super(),this[_0x5a848d(0x17b)]=_0x36395b,this[_0x5a848d(0x25c)]=_0x3d17bd,this[_0x5a848d(0x219)]=_0x23a25c,this[_0x5a848d(0x1da)]=_0x48f228,this['_initAutoConnect'](),this[_0x5a848d(0x1f6)]();}[_0x50dde5(0x29a)](){const _0x2605a3=_0x50dde5,_0x227a4d=this[_0x2605a3(0x1da)]['getConfig'](P);_0x227a4d!=null&&_0x227a4d[_0x2605a3(0x1ec)]&&(this[_0x2605a3(0x25c)]['enableAutoConnect']=!0x1);}[_0x50dde5(0x1f6)](){const _0x5b04b6=_0x50dde5,_0x59ba3e=this[_0x5b04b6(0x1da)][_0x5b04b6(0x182)](P);(_0x59ba3e==null?void 0x0:_0x59ba3e['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0x5b04b6(0x219)]['registerComponent'](v[_0x5b04b6(0x211)][_0x5b04b6(0x239)],()=>{const _0x2b78f9=_0x5b04b6;var _0x25bd9c;return v[_0x2b78f9(0x2de)](ye({'status$':this[_0x2b78f9(0x25c)][_0x2b78f9(0x194)],'error$':this[_0x2b78f9(0x25c)][_0x2b78f9(0x189)],'onConfigure':()=>this[_0x2b78f9(0x183)](),'showClickable':(_0x25bd9c=_0x59ba3e==null?void 0x0:_0x59ba3e[_0x2b78f9(0x1ec)])!=null?_0x25bd9c:!0x1}),this['_injector']);}));}['_handleConfigure'](){const _0x345a95=_0x50dde5;this[_0x345a95(0x17b)]['get'](exports[_0x345a95(0x293)])[_0x345a95(0x2b3)]();}},exports[_0x50dde5(0x2e5)]=_e([N(0x0,u[_0x50dde5(0x19a)](u[_0x50dde5(0x2d2)])),N(0x1,u['Inject'](s[_0x50dde5(0x20e)])),N(0x2,v[_0x50dde5(0x1a1)]),N(0x3,u[_0x50dde5(0x209)])],exports['MCPConnectionUIController']);function ye(_0x552f0c){const {status$:_0x5abecf,error$:_0x5822f6,onConfigure:_0x5e8f28,showClickable:_0x5caaab}=_0x552f0c;return function(){const _0x226b0f=_0x5e38;return i[_0x226b0f(0x1fe)](W,{'status$':_0x5abecf,'error$':_0x5822f6,'onConfigure':_0x5e8f28,'showClickable':_0x5caaab});};}function Me(_0x3cb253){const _0x169f6b=_0x50dde5;return{'id':b['id'],'type':v[_0x169f6b(0x2cc)][_0x169f6b(0x297)],'icon':_0x169f6b(0x212),'title':_0x169f6b(0x245),'tooltip':_0x169f6b(0x245)};}const Ne={[v['RibbonStartGroup'][_0x50dde5(0x256)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x50dde5(0x1de)],je=(_0xc26125,_0x480327,_0x4d7e0c,_0xdc65bb)=>{const _0x34bfbe=_0x50dde5;for(var _0x18b6df=_0xdc65bb>0x1?void 0x0:_0xdc65bb?be(_0x480327,_0x4d7e0c):_0x480327,_0x4c8c7b=_0xc26125[_0x34bfbe(0x23f)]-0x1,_0x3657b9;_0x4c8c7b>=0x0;_0x4c8c7b--)(_0x3657b9=_0xc26125[_0x4c8c7b])&&(_0x18b6df=_0x3657b9(_0x18b6df)||_0x18b6df);return _0x18b6df;},z=(_0x25c085,_0x28249e)=>(_0x29ab0e,_0x1a695e)=>_0x28249e(_0x29ab0e,_0x1a695e,_0x25c085);exports[_0x50dde5(0x16a)]=class extends u[_0x50dde5(0x201)]{constructor(_0x5b1f66,_0x21e31f){super(),this['_commandService']=_0x5b1f66,this['_menuManagerService']=_0x21e31f,this['_initializeCommands'](),this['_initializeMenus']();}[_0x50dde5(0x185)](){[b]['forEach'](_0x40fc9f=>{const _0x5490b4=_0x5e38;this[_0x5490b4(0x26b)](this[_0x5490b4(0x223)]['registerCommand'](_0x40fc9f));});}[_0x50dde5(0x264)](){const _0x40a851=_0x50dde5;this['_menuManagerService'][_0x40a851(0x2d3)](Ne);}},exports[_0x50dde5(0x16a)]=je([z(0x0,u[_0x50dde5(0x190)]),z(0x1,v['IMenuManagerService'])],exports[_0x50dde5(0x16a)]);const Ee={'mcpStatus':{'disconnected':_0x50dde5(0x2c5),'connecting':'MCP\x20Connecting...','connected':_0x50dde5(0x210),'failed':_0x50dde5(0x1bf),'retrying':_0x50dde5(0x2a0),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x50dde5(0x2b9),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x50dde5(0x2e7),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x50dde5(0x1ed),'clickToConfigure':_0x50dde5(0x294)},'mcpConfig':{'title':_0x50dde5(0x1aa),'description':_0x50dde5(0x1e5),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x50dde5(0x2e6),'apiKeyHint':_0x50dde5(0x1f5),'enableAuth':_0x50dde5(0x1b1),'enableAuthHint':_0x50dde5(0x2af),'connectionInfo':_0x50dde5(0x220),'mcpClientConfig':_0x50dde5(0x220),'configInstructions':_0x50dde5(0x266),'configStepTitle':_0x50dde5(0x25b),'configStep1':_0x50dde5(0x27e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x50dde5(0x1c3),'sessionId':_0x50dde5(0x221),'sessionIdDescription':_0x50dde5(0x173),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x50dde5(0x1f4),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x50dde5(0x206),'note1':_0x50dde5(0x1a7),'note2':_0x50dde5(0x18b),'configSaved':_0x50dde5(0x248),'configError':_0x50dde5(0x17f),'apiApplyInfo':{'title':_0x50dde5(0x21d),'description':_0x50dde5(0x1c0),'univerAiLabel':_0x50dde5(0x171),'getStarted':_0x50dde5(0x2e3)},'validation':{'apiKeyRequired':_0x50dde5(0x234),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x50dde5(0x2ca)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x50dde5(0x20f),'connected':_0x50dde5(0x259),'failed':_0x50dde5(0x260),'retrying':_0x50dde5(0x188)},'connectionError':{'unauthorized':_0x50dde5(0x277),'sessionOccupied':_0x50dde5(0x18a),'networkError':_0x50dde5(0x1d8),'maxRetriesExceeded':_0x50dde5(0x177)}}},we={'mcpStatus':{'disconnected':_0x50dde5(0x207),'connecting':'MCP\x20连接中...','connected':_0x50dde5(0x1c7),'failed':_0x50dde5(0x288),'retrying':_0x50dde5(0x2ec),'unknown':_0x50dde5(0x1cb),'unauthorized':_0x50dde5(0x18f),'sessionOccupied':_0x50dde5(0x2bb),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x50dde5(0x1c4),'clickToConnect':_0x50dde5(0x224),'clickToConfigure':_0x50dde5(0x2cf)},'mcpConfig':{'title':'MCP\x20配置','description':_0x50dde5(0x16c),'apiKey':_0x50dde5(0x25f),'apiKeyPlaceholder':_0x50dde5(0x1ef),'apiKeyHint':_0x50dde5(0x21a),'enableAuth':_0x50dde5(0x184),'enableAuthHint':_0x50dde5(0x1a0),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x50dde5(0x274),'configStepTitle':_0x50dde5(0x174),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x50dde5(0x2e4),'configStep3':_0x50dde5(0x1f9),'sessionId':_0x50dde5(0x16d),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x50dde5(0x20b),'configParameters':'配置参数:','maxRetries':_0x50dde5(0x18c),'save':_0x50dde5(0x195),'saving':'保存中...','note1':_0x50dde5(0x2a5),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x50dde5(0x2ac),'configError':_0x50dde5(0x1fc),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x50dde5(0x242),'getStarted':_0x50dde5(0x167)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x50dde5(0x26e),'invalidApiKey':_0x50dde5(0x16b)},'connectionStatus':{'disconnected':_0x50dde5(0x1ce),'connecting':'连接中...','connected':_0x50dde5(0x1cd),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x50dde5(0x1d7),'sessionOccupied':_0x50dde5(0x1af),'networkError':_0x50dde5(0x169),'maxRetriesExceeded':_0x50dde5(0x28e)}}};var Ae=Object[_0x50dde5(0x23d)],Oe=Object['getOwnPropertyDescriptor'],De=(_0x26466a,_0x70e6a,_0xab3a9d)=>_0x70e6a in _0x26466a?Ae(_0x26466a,_0x70e6a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xab3a9d}):_0x26466a[_0x70e6a]=_0xab3a9d,Ue=(_0x295da7,_0x7840b4,_0x29259d,_0x3b56e5)=>{const _0x5de9b5=_0x50dde5;for(var _0x3e6db8=_0x3b56e5>0x1?void 0x0:_0x3b56e5?Oe(_0x7840b4,_0x29259d):_0x7840b4,_0x349983=_0x295da7[_0x5de9b5(0x23f)]-0x1,_0x4574f7;_0x349983>=0x0;_0x349983--)(_0x4574f7=_0x295da7[_0x349983])&&(_0x3e6db8=_0x4574f7(_0x3e6db8)||_0x3e6db8);return _0x3e6db8;},y=(_0x273ce2,_0x4b856e)=>(_0x1671e4,_0x22bdc3)=>_0x4b856e(_0x1671e4,_0x22bdc3,_0x273ce2),$e=(_0x2e6d6d,_0x50d8de,_0x207471)=>De(_0x2e6d6d,_0x50d8de+'',_0x207471);exports[_0x50dde5(0x258)]=class extends u[_0x50dde5(0x2c7)]{constructor(_0x3b9b45=L,_0x30ed58,_0xbf49c1,_0x1478df,_0x3d30de,_0x2c1d6c){const _0x2a0460=_0x50dde5;super(),this[_0x2a0460(0x197)]=_0x3b9b45,this[_0x2a0460(0x17b)]=_0x30ed58,this['_configService']=_0xbf49c1,this[_0x2a0460(0x219)]=_0x1478df,this[_0x2a0460(0x241)]=_0x3d30de,this['_localeService']=_0x2c1d6c;const {..._0x5254d9}=u[_0x2a0460(0x1b4)]({},L,this[_0x2a0460(0x197)]);this[_0x2a0460(0x1da)]['setConfig'](P,_0x5254d9);}async[_0x50dde5(0x1b7)](){const _0x1fee99=_0x50dde5,_0x5bec5d=[[exports[_0x1fee99(0x2e5)]],[exports[_0x1fee99(0x293)]],[exports['MCPUIMenuController']]];this['_injector'][_0x1fee99(0x282)](A[_0x1fee99(0x267)])||_0x5bec5d[_0x1fee99(0x233)]([A['ISocketService'],{'useClass':A[_0x1fee99(0x281)]}]),_0x5bec5d['forEach'](_0x401573=>this[_0x1fee99(0x17b)][_0x1fee99(0x2e2)](_0x401573)),this[_0x1fee99(0x17b)][_0x1fee99(0x1a4)](exports[_0x1fee99(0x2e5)]),this['_injector']['get'](exports[_0x1fee99(0x293)]),this[_0x1fee99(0x17b)][_0x1fee99(0x1a4)](exports[_0x1fee99(0x16a)]);}},$e(exports[_0x50dde5(0x258)],'pluginName','MCP_UI_PLUGIN'),exports[_0x50dde5(0x258)]=Ue([u[_0x50dde5(0x2ae)](s[_0x50dde5(0x187)]),y(0x1,u[_0x50dde5(0x19a)](u[_0x50dde5(0x2d2)])),y(0x2,u[_0x50dde5(0x209)]),y(0x3,v[_0x50dde5(0x1a1)]),y(0x4,u[_0x50dde5(0x22b)]),y(0x5,u[_0x50dde5(0x19a)](u['LocaleService']))],exports[_0x50dde5(0x258)]),exports[_0x50dde5(0x29c)]=V,exports['MCPStatusDisplay']=W,exports[_0x50dde5(0x237)]=b,exports[_0x50dde5(0x1e1)]=Ee,exports['zhCN']=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x30a1(){const _0x438ea9=['Click\x20to\x20configure\x20MCP','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','647966XsGJBy','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20Authentication','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','140ZNsxUR','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','170208fWDdrS','MCP\x20Client\x20Configuration','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','1732jCOJuE','398TBiEPf','Disconnected','MCP:\x20Session\x20ID\x20Occupied','934176YHjzRu','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','85770qjtRul','2933562BsXZgM','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','4344768Omjjgh','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Steps:','Configuration\x20Parameters:','exports','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20ID','140lWgRRg','MCP:\x20Unauthorized','MCP:\x20Max\x20Retries\x20Exceeded','7ONGbUR','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status'];_0x30a1=function(){return _0x438ea9;};return _0x30a1();}function _0x41eb(_0x26c04d,_0x2767c1){_0x26c04d=_0x26c04d-0x9a;const _0x30a141=_0x30a1();let _0x41eb2e=_0x30a141[_0x26c04d];return _0x41eb2e;}const _0x33033e=_0x41eb;(function(_0x30bbf9,_0x3fcabf){const _0x669de6=_0x41eb,_0x5c53d5=_0x30bbf9();while(!![]){try{const _0x3662c1=parseInt(_0x669de6(0xc9))/0x1*(-parseInt(_0x669de6(0xc8))/0x2)+parseInt(_0x669de6(0x9c))/0x3+-parseInt(_0x669de6(0xa8))/0x4*(parseInt(_0x669de6(0xd0))/0x5)+parseInt(_0x669de6(0xd1))/0x6*(-parseInt(_0x669de6(0xab))/0x7)+-parseInt(_0x669de6(0xcc))/0x8+parseInt(_0x669de6(0xc1))/0x9+parseInt(_0x669de6(0xba))/0xa*(parseInt(_0x669de6(0xb4))/0xb);if(_0x3662c1===_0x3fcabf)break;else _0x5c53d5['push'](_0x5c53d5['shift']());}catch(_0xcc2dfa){_0x5c53d5['push'](_0x5c53d5['shift']());}}}(_0x30a1,0xb4ee7));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x33033e(0xa0),'connected':'MCP\x20Connected','failed':_0x33033e(0xb1),'retrying':_0x33033e(0x9f),'unknown':_0x33033e(0xad),'unauthorized':_0x33033e(0xa9),'sessionOccupied':_0x33033e(0xcb),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x33033e(0xaa),'clickToConnect':_0x33033e(0x9b),'clickToConfigure':_0x33033e(0xae)},'mcpConfig':{'title':_0x33033e(0xc7),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x33033e(0xcd),'apiKeyHint':_0x33033e(0xc0),'enableAuth':_0x33033e(0xb7),'enableAuthHint':_0x33033e(0xb3),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x33033e(0xc2),'configInstructions':_0x33033e(0xac),'configStepTitle':_0x33033e(0xa2),'configStep1':_0x33033e(0xbc),'configStep2':_0x33033e(0xa1),'configStep3':_0x33033e(0xc4),'sessionId':_0x33033e(0xa7),'sessionIdDescription':_0x33033e(0xb6),'authorizationDescription':_0x33033e(0xc6),'configParameters':_0x33033e(0xa3),'maxRetries':_0x33033e(0x9d),'save':_0x33033e(0xbb),'saving':_0x33033e(0xbf),'note1':_0x33033e(0xcf),'note2':_0x33033e(0xc5),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x33033e(0x9a),'apiApplyInfo':{'title':_0x33033e(0xce),'description':_0x33033e(0xbe),'univerAiLabel':_0x33033e(0xb5),'getStarted':_0x33033e(0xa5)},'validation':{'apiKeyRequired':_0x33033e(0xc3),'apiKeyTooShort':_0x33033e(0xb8),'invalidConfig':_0x33033e(0xbd),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x33033e(0xca),'connecting':'Connecting...','connected':_0x33033e(0xb9),'failed':_0x33033e(0xb2),'retrying':_0x33033e(0xaf)},'connectionError':{'unauthorized':_0x33033e(0xb0),'sessionOccupied':_0x33033e(0x9e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x33033e(0xa6)}}},n=e;module[_0x33033e(0xa4)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xf9fb27=_0x8056;function _0x19c4(){const _0x5084fa=['MCP\x20Configuration','772658JGbOzq','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','Get\x20your\x20API\x20key\x20in\x20seconds','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','8LvAtkl','API\x20Key','20rlRqEb','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Unauthorized','Univer\x20AI\x20Console','Configuration\x20Parameters:','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','1347850FEoCHM','2863231tJOdWl','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','9295578uJuVzi','5462784GkobAB','41040dywZOV','7174700oKlkvo','Click\x20to\x20connect\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','MCP\x20Connected','API\x20key\x20is\x20required','Max\x20Retries','3YpCVtX','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','Retrying...'];_0x19c4=function(){return _0x5084fa;};return _0x19c4();}(function(_0x1f3b77,_0x30b1d9){const _0x3ddb0e=_0x8056,_0xee3d2a=_0x1f3b77();while(!![]){try{const _0x4831b0=parseInt(_0x3ddb0e(0xbb))/0x1+-parseInt(_0x3ddb0e(0xa5))/0x2*(-parseInt(_0x3ddb0e(0xb2))/0x3)+-parseInt(_0x3ddb0e(0x9d))/0x4*(parseInt(_0x3ddb0e(0xaa))/0x5)+-parseInt(_0x3ddb0e(0xa9))/0x6+parseInt(_0x3ddb0e(0xa6))/0x7+-parseInt(_0x3ddb0e(0x9b))/0x8*(parseInt(_0x3ddb0e(0xa8))/0x9)+parseInt(_0x3ddb0e(0xab))/0xa;if(_0x4831b0===_0x30b1d9)break;else _0xee3d2a['push'](_0xee3d2a['shift']());}catch(_0x258b49){_0xee3d2a['push'](_0xee3d2a['shift']());}}}(_0x19c4,0x8fbc4));const e={'mcpStatus':{'disconnected':_0xf9fb27(0xa2),'connecting':'MCP\x20Connecting...','connected':_0xf9fb27(0xaf),'failed':_0xf9fb27(0x98),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0xf9fb27(0x9f),'sessionOccupied':_0xf9fb27(0xb4),'networkError':_0xf9fb27(0x94),'maxRetriesExceeded':_0xf9fb27(0xb6),'clickToConnect':_0xf9fb27(0xac),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xf9fb27(0xba),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xf9fb27(0x9c),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xf9fb27(0x90),'enableAuth':_0xf9fb27(0xb8),'enableAuthHint':_0xf9fb27(0x93),'connectionInfo':_0xf9fb27(0xb3),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xf9fb27(0xb5),'configStepTitle':_0xf9fb27(0x8f),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xf9fb27(0xa7),'sessionId':_0xf9fb27(0xbd),'sessionIdDescription':_0xf9fb27(0xad),'authorizationDescription':_0xf9fb27(0x9e),'configParameters':_0xf9fb27(0xa1),'maxRetries':_0xf9fb27(0xb1),'save':'Save\x20Configuration','saving':_0xf9fb27(0xae),'note1':_0xf9fb27(0xb7),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0xf9fb27(0x9a),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0xf9fb27(0xbc),'univerAiLabel':_0xf9fb27(0xa0),'getStarted':_0xf9fb27(0x95)},'validation':{'apiKeyRequired':_0xf9fb27(0xb0),'apiKeyTooShort':_0xf9fb27(0xbe),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0xf9fb27(0x99)},'connectionStatus':{'disconnected':_0xf9fb27(0x91),'connecting':_0xf9fb27(0xa4),'connected':'Connected','failed':_0xf9fb27(0x96),'retrying':_0xf9fb27(0xb9)},'connectionError':{'unauthorized':_0xf9fb27(0xa3),'sessionOccupied':_0xf9fb27(0x92),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xf9fb27(0x97)}}};function _0x8056(_0x32749f,_0x51c0b5){_0x32749f=_0x32749f-0x8e;const _0x19c415=_0x19c4();let _0x805645=_0x19c415[_0x32749f];return _0x805645;}module[_0xf9fb27(0x8e)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1081(_0x2f3e79,_0x58d5da){_0x2f3e79=_0x2f3e79-0x161;const _0x294d47=_0x294d();let _0x1081ca=_0x294d47[_0x2f3e79];return _0x1081ca;}const _0x3f3399=_0x1081;(function(_0x29e5df,_0x2f0cb8){const _0x1e6dfb=_0x1081,_0x189796=_0x29e5df();while(!![]){try{const _0x51fc0e=-parseInt(_0x1e6dfb(0x192))/0x1+parseInt(_0x1e6dfb(0x16d))/0x2*(parseInt(_0x1e6dfb(0x18d))/0x3)+-parseInt(_0x1e6dfb(0x166))/0x4+-parseInt(_0x1e6dfb(0x167))/0x5*(-parseInt(_0x1e6dfb(0x18f))/0x6)+parseInt(_0x1e6dfb(0x16e))/0x7+parseInt(_0x1e6dfb(0x190))/0x8*(parseInt(_0x1e6dfb(0x180))/0x9)+-parseInt(_0x1e6dfb(0x168))/0xa;if(_0x51fc0e===_0x2f0cb8)break;else _0x189796['push'](_0x189796['shift']());}catch(_0x528ca1){_0x189796['push'](_0x189796['shift']());}}}(_0x294d,0x72ac2));function _0x294d(){const _0x235f7c=['MCP:\x20Unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','124bsUsQo','3302348ANMsSU','Configuration\x20Steps:','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Max\x20Retries','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','Connected','Retrying...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','7996977glvFiT','Disconnected','API\x20key\x20is\x20required','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connection\x20Failed','Save\x20Configuration','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20configuration','Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','14286HmSHiM','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','690366wKhqQZ','8qgZCRd','MCP\x20Unknown\x20Status','566691vUfGSi','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1752692SxwNwD','25uzbjVY','7563040bSAxyk','Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?'];_0x294d=function(){return _0x235f7c;};return _0x294d();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3f3399(0x174),'connected':'MCP\x20Connected','failed':_0x3f3399(0x184),'retrying':'MCP\x20Retrying...','unknown':_0x3f3399(0x191),'unauthorized':_0x3f3399(0x16b),'sessionOccupied':_0x3f3399(0x193),'networkError':_0x3f3399(0x18c),'maxRetriesExceeded':_0x3f3399(0x17b),'clickToConnect':_0x3f3399(0x170),'clickToConfigure':_0x3f3399(0x173)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3f3399(0x171),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3f3399(0x17c),'apiKeyHint':_0x3f3399(0x18b),'enableAuth':_0x3f3399(0x176),'enableAuthHint':_0x3f3399(0x175),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3f3399(0x187),'configStepTitle':_0x3f3399(0x16f),'configStep1':_0x3f3399(0x16c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3f3399(0x161),'sessionId':_0x3f3399(0x164),'sessionIdDescription':_0x3f3399(0x183),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3f3399(0x17a),'maxRetries':_0x3f3399(0x172),'save':_0x3f3399(0x185),'saving':_0x3f3399(0x186),'note1':_0x3f3399(0x179),'note2':_0x3f3399(0x178),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3f3399(0x16a),'description':_0x3f3399(0x18e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3f3399(0x169)},'validation':{'apiKeyRequired':_0x3f3399(0x182),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x3f3399(0x189),'invalidApiKey':_0x3f3399(0x165)},'connectionStatus':{'disconnected':_0x3f3399(0x181),'connecting':_0x3f3399(0x18a),'connected':_0x3f3399(0x17d),'failed':_0x3f3399(0x177),'retrying':_0x3f3399(0x17e)},'connectionError':{'unauthorized':_0x3f3399(0x188),'sessionOccupied':_0x3f3399(0x163),'networkError':_0x3f3399(0x162),'maxRetriesExceeded':_0x3f3399(0x17f)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2eaa99=_0x3621;function _0x93c9(){const _0x27e3f2=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','2191088XfAfsk','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','12hpCvDK','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','Save\x20Configuration','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','256CTRJoT','exports','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','259026TDsGTq','API\x20key\x20with\x20Bearer\x20prefix.','69552SqjNte','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','706315vfXRtd','Enable\x20Authentication','MCP\x20Unknown\x20Status','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','1800429Raqnzg','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','462598hWeYoB','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','2488680tzDPpm','MCP\x20Client\x20Configuration','Session\x20ID','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage'];_0x93c9=function(){return _0x27e3f2;};return _0x93c9();}(function(_0x12a024,_0x32d993){const _0x5a8b14=_0x3621,_0x432045=_0x12a024();while(!![]){try{const _0x18a631=parseInt(_0x5a8b14(0xfd))/0x1+parseInt(_0x5a8b14(0xda))/0x2+parseInt(_0x5a8b14(0xd8))/0x3+-parseInt(_0x5a8b14(0xec))/0x4+-parseInt(_0x5a8b14(0x101))/0x5*(parseInt(_0x5a8b14(0xee))/0x6)+-parseInt(_0x5a8b14(0xff))/0x7*(-parseInt(_0x5a8b14(0xf8))/0x8)+-parseInt(_0x5a8b14(0xde))/0x9;if(_0x18a631===_0x32d993)break;else _0x432045['push'](_0x432045['shift']());}catch(_0x30b250){_0x432045['push'](_0x432045['shift']());}}}(_0x93c9,0x49a22));function _0x3621(_0x59dd7f,_0x5bce68){_0x59dd7f=_0x59dd7f-0xd8;const _0x93c9eb=_0x93c9();let _0x3621c3=_0x93c9eb[_0x59dd7f];return _0x3621c3;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2eaa99(0x103),'unauthorized':_0x2eaa99(0xef),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2eaa99(0xdb),'maxRetriesExceeded':_0x2eaa99(0xfb),'clickToConnect':_0x2eaa99(0xe6),'clickToConfigure':_0x2eaa99(0xf3)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2eaa99(0xfa),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2eaa99(0xf7),'apiKeyHint':_0x2eaa99(0xd9),'enableAuth':_0x2eaa99(0x102),'enableAuthHint':_0x2eaa99(0xf2),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2eaa99(0xdf),'configInstructions':_0x2eaa99(0x100),'configStepTitle':_0x2eaa99(0xe8),'configStep1':_0x2eaa99(0x105),'configStep2':_0x2eaa99(0xe2),'configStep3':_0x2eaa99(0xea),'sessionId':_0x2eaa99(0xe0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2eaa99(0xfe),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x2eaa99(0xf4),'saving':_0x2eaa99(0xeb),'note1':_0x2eaa99(0xf1),'note2':_0x2eaa99(0xe9),'configSaved':_0x2eaa99(0xe5),'configError':_0x2eaa99(0xe4),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2eaa99(0xed),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2eaa99(0xe3)},'validation':{'apiKeyRequired':_0x2eaa99(0xf5),'apiKeyTooShort':_0x2eaa99(0xdc),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2eaa99(0xf6)},'connectionStatus':{'disconnected':_0x2eaa99(0xfc),'connecting':_0x2eaa99(0x104),'connected':_0x2eaa99(0xe1),'failed':'Connection\x20Failed','retrying':_0x2eaa99(0xdd)},'connectionError':{'unauthorized':_0x2eaa99(0xf0),'sessionOccupied':_0x2eaa99(0xe7),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x2eaa99(0xf9)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x33675e=_0x38b2;(function(_0x42ca66,_0xc801af){const _0x195bc3=_0x38b2,_0x551aac=_0x42ca66();while(!![]){try{const _0x4fdece=-parseInt(_0x195bc3(0x1e2))/0x1*(parseInt(_0x195bc3(0x1db))/0x2)+parseInt(_0x195bc3(0x1c9))/0x3+parseInt(_0x195bc3(0x1ee))/0x4*(parseInt(_0x195bc3(0x1e5))/0x5)+-parseInt(_0x195bc3(0x1ed))/0x6+-parseInt(_0x195bc3(0x1d8))/0x7+parseInt(_0x195bc3(0x1d9))/0x8+parseInt(_0x195bc3(0x1eb))/0x9;if(_0x4fdece===_0xc801af)break;else _0x551aac['push'](_0x551aac['shift']());}catch(_0x28ea1a){_0x551aac['push'](_0x551aac['shift']());}}}(_0x5978,0xb2533));function _0x38b2(_0x537571,_0x287f75){_0x537571=_0x537571-0x1c8;const _0x597858=_0x5978();let _0x38b2fe=_0x597858[_0x537571];return _0x38b2fe;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x33675e(0x1e6),'connected':_0x33675e(0x1e7),'failed':'MCP\x20Connection\x20Failed','retrying':_0x33675e(0x1d4),'unknown':_0x33675e(0x1f4),'unauthorized':_0x33675e(0x1e9),'sessionOccupied':_0x33675e(0x1cd),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x33675e(0x1d2),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x33675e(0x1ef),'description':_0x33675e(0x1e3),'apiKey':_0x33675e(0x1f5),'apiKeyPlaceholder':_0x33675e(0x1f6),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x33675e(0x1f0),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x33675e(0x1de),'mcpClientConfig':_0x33675e(0x1de),'configInstructions':_0x33675e(0x1d0),'configStepTitle':_0x33675e(0x1c8),'configStep1':_0x33675e(0x1d7),'configStep2':_0x33675e(0x1f2),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x33675e(0x1ea),'sessionIdDescription':_0x33675e(0x1cb),'authorizationDescription':_0x33675e(0x1dc),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x33675e(0x1f7),'save':_0x33675e(0x1d5),'saving':'Saving...','note1':_0x33675e(0x1dd),'note2':_0x33675e(0x1e0),'configSaved':_0x33675e(0x1df),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x33675e(0x1f1),'description':_0x33675e(0x1ce),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x33675e(0x1d6)},'validation':{'apiKeyRequired':_0x33675e(0x1e4),'apiKeyTooShort':_0x33675e(0x1cc),'invalidConfig':_0x33675e(0x1cf),'invalidApiKey':_0x33675e(0x1d3)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x33675e(0x1ca),'failed':'Connection\x20Failed','retrying':_0x33675e(0x1f3)},'connectionError':{'unauthorized':_0x33675e(0x1ec),'sessionOccupied':_0x33675e(0x1e8),'networkError':_0x33675e(0x1da),'maxRetriesExceeded':_0x33675e(0x1e1)}}},n=e;function _0x5978(){const _0x10ad4e=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','8328270FYXNaV','4qYtnJa','MCP\x20Configuration','Enable\x20Authentication','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Retrying...','MCP\x20Unknown\x20Status','API\x20Key','Enter\x20your\x20API\x20key','Max\x20Retries','Configuration\x20Steps:','3212472aMQzgM','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Session\x20ID\x20Occupied','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','exports','Click\x20to\x20connect\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','6522642vrEyNT','8765656vSkauA','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','34ZfGtJN','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','60378wivuXR','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20is\x20required','154065fqTODr','MCP\x20Connecting...','MCP\x20Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Unauthorized','Session\x20ID','16914168fBeCkq'];_0x5978=function(){return _0x10ad4e;};return _0x5978();}module[_0x33675e(0x1d1)]=n;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xd3ba70=_0x4a03;(function(_0x24a7d0,_0x5de521){const _0x4a4ead=_0x4a03,_0x3cf088=_0x24a7d0();while(!![]){try{const _0x3f1d7a=parseInt(_0x4a4ead(0xa2))/0x1*(parseInt(_0x4a4ead(0x8f))/0x2)+parseInt(_0x4a4ead(0x9c))/0x3*(parseInt(_0x4a4ead(0xa3))/0x4)+parseInt(_0x4a4ead(0x9d))/0x5*(-parseInt(_0x4a4ead(0x8d))/0x6)+-parseInt(_0x4a4ead(0x92))/0x7+-parseInt(_0x4a4ead(0xc0))/0x8*(-parseInt(_0x4a4ead(0x9b))/0x9)+parseInt(_0x4a4ead(0x93))/0xa*(-parseInt(_0x4a4ead(0x8e))/0xb)+parseInt(_0x4a4ead(0xad))/0xc*(parseInt(_0x4a4ead(0xbc))/0xd);if(_0x3f1d7a===_0x5de521)break;else _0x3cf088['push'](_0x3cf088['shift']());}catch(_0x250533){_0x3cf088['push'](_0x3cf088['shift']());}}}(_0x4788,0xc790c));function _0x4a03(_0x4f4c3e,_0x9e5428){_0x4f4c3e=_0x4f4c3e-0x8b;const _0x4788e1=_0x4788();let _0x4a03b2=_0x4788e1[_0x4f4c3e];return _0x4a03b2;}const e={'mcpStatus':{'disconnected':_0xd3ba70(0xb5),'connecting':_0xd3ba70(0xb2),'connected':_0xd3ba70(0xbd),'failed':_0xd3ba70(0x99),'retrying':_0xd3ba70(0x95),'unknown':_0xd3ba70(0xb6),'unauthorized':_0xd3ba70(0xbe),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0xd3ba70(0xab),'maxRetriesExceeded':_0xd3ba70(0x9a),'clickToConnect':_0xd3ba70(0xb9),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0xd3ba70(0x8c),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0xd3ba70(0xb7),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':'認証を有効にする','enableAuthHint':_0xd3ba70(0xae),'connectionInfo':'MCPクライアント設定','mcpClientConfig':_0xd3ba70(0x8b),'configInstructions':_0xd3ba70(0x90),'configStepTitle':_0xd3ba70(0xa4),'configStep1':'以下のJSON設定をコピー','configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0xd3ba70(0xb0),'sessionId':_0xd3ba70(0xaf),'sessionIdDescription':_0xd3ba70(0xbf),'authorizationDescription':_0xd3ba70(0xaa),'configParameters':_0xd3ba70(0x96),'maxRetries':_0xd3ba70(0xa1),'save':_0xd3ba70(0xb1),'saving':_0xd3ba70(0x91),'note1':'設定の変更は直ちに有効になります','note2':_0xd3ba70(0xba),'configSaved':_0xd3ba70(0x9e),'configError':_0xd3ba70(0xac),'apiApplyInfo':{'title':_0xd3ba70(0xa5),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0xd3ba70(0x98),'getStarted':_0xd3ba70(0x9f)},'validation':{'apiKeyRequired':_0xd3ba70(0xa6),'apiKeyTooShort':_0xd3ba70(0x97),'invalidConfig':_0xd3ba70(0xbb),'invalidApiKey':_0xd3ba70(0xb4)},'connectionStatus':{'disconnected':_0xd3ba70(0xb8),'connecting':_0xd3ba70(0xa7),'connected':_0xd3ba70(0xb3),'failed':_0xd3ba70(0x94),'retrying':_0xd3ba70(0xa0)},'connectionError':{'unauthorized':_0xd3ba70(0xa8),'sessionOccupied':_0xd3ba70(0xa9),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0xd3ba70(0xc1)}}};module['exports']=e;function _0x4788(){const _0x42203d=['2276SEMlLo','設定手順:','APIキーとは?','APIキーは必須です','接続中...','認証に失敗しました。APIキーを確認してください','セッションIDが現在使用中です。後でもう一度お試しください','Bearerプレフィックス付きのAPIキー。','MCP:\x20ネットワークエラー','設定の保存に失敗しました','213108KhaMhw','セキュアな接続のために認証を有効にする','セッションID','MCPクライアントを再起動して設定を適用','設定を保存','MCP\x20接続中...','接続済み','無効なAPIキーです。キーが正しいか確認してください','MCP\x20未接続','MCP\x20不明な状態','APIキー','未接続','クリックしてMCPに接続','APIキーはローカルストレージに安全に保存されます','無効な設定','104cVuQDX','MCP\x20接続済み','MCP:\x20認証されていません','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','5984lLUdfR','最大再試行回数を超過しました。後でもう一度お試しください','MCPクライアント設定','MCP設定','42obWPIc','5335dFzNeA','26cCDDjg','MCPクライアントの設定に次の設定を追加してください:','保存中...','4551547AAOmMU','20530HhkRFP','接続失敗','MCP\x20再試行中...','設定パラメータ:','APIキーは10文字以上である必要があります','Univer\x20AIコンソール','MCP\x20接続失敗','MCP:\x20最大再試行回数を超過','13671dPCIXK','405mMfXEC','113650AtqBtd','設定が正常に保存されました','数秒でAPIキーを取得','再試行中...','最大再試行回数','97489Bggmsr'];_0x4788=function(){return _0x42203d;};return _0x4788();}
|