@univerjs-pro/mcp-ui 0.10.7-nightly.202509130618 → 0.10.7-nightly.202509130703
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/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/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/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/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 +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x2d121d=_0x4a0c;(function(_0x4b651d,_0x3b9bea){var _0x2d6dc5=_0x4a0c,_0x4682ba=_0x4b651d();while(!![]){try{var _0x3298c4=-parseInt(_0x2d6dc5(0x176))/0x1+parseInt(_0x2d6dc5(0x19d))/0x2+-parseInt(_0x2d6dc5(0x1a3))/0x3+parseInt(_0x2d6dc5(0x13f))/0x4*(parseInt(_0x2d6dc5(0x200))/0x5)+parseInt(_0x2d6dc5(0x1a9))/0x6+-parseInt(_0x2d6dc5(0x20a))/0x7*(-parseInt(_0x2d6dc5(0x1d3))/0x8)+parseInt(_0x2d6dc5(0x139))/0x9*(-parseInt(_0x2d6dc5(0x154))/0xa);if(_0x3298c4===_0x3b9bea)break;else _0x4682ba['push'](_0x4682ba['shift']());}catch(_0x382937){_0x4682ba['push'](_0x4682ba['shift']());}}}(_0x2f73,0xbea35));function _0x2f73(){var _0x5e8586=['几秒钟内获取您的\x20API\x20密钥','mcpStatus.invalidApiKey','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','get','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','MCP\x20状态未知','_config','What\x20is\x20API\x20Key?','isValid','path','indexOf','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Invalid\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','univer-flex\x20univer-cursor-pointer\x20univer-items-center','Plugin','_blank','Max\x20Retries','Error','idSuffix','connectionError$','warn','ILocalStorageService','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Retrying...','Success','univer-space-y-3','mcpConfig.configError','concat','univer-space-y-5','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20已断开','univer-text-blue-600','MCP\x20Client\x20Configuration','toString','translate(.97)','univer-flex-shrink-0\x20univer-text-red-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','help-single','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','CONNECTED','Bearer\x20','http://www.w3.org/2000/svg','ISocketService','_registerComponent','重连中...','IConfigService','random','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-text-sm\x20univer-text-gray-500','mcpConfig.connectionError.networkError','univer-bg-blue-500','url(#off-line-icon_clip0_910_343)','_initConfigSync','_handleConfigure','next','mcpStatus.connecting','_config$','mcpConfig.connectionError.invalidApiKey','assign','connectInjector','attrs','univer-text-xs\x20univer-text-gray-500','_initializeMenus','symbol','_messageService','connectionStatus$','enableAutoConnect','defIds','clsx','univer-text-gray-500','mcpConfig.validation.apiKeyRequired','mcpConfig.connectionInfo','OnLineIcon','您的\x20API\x20密钥将在此浏览器中本地存储','off','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20Connection\x20Failed','registerComponent','label','forwardRef','string','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','IDialogService','univer.plus','mask','MCPUIMenuController','未连接','RibbonStartGroup','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','INVALID_API_KEY','forEach','Close','MCPStatusDisplay','_configService','sessionId$','_componentManager','Injector','Connected','defineProperty','mcpConfig.sessionIdDescription','HEADER_MENU','_validateConfig','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','useObservable','Failed\x20to\x20save\x20configuration','useDependency','ICommandService','error','RETRYING','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','trim','univer-text-sm\x20univer-font-medium','getOwnPropertyDescriptor','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','prototype','Connecting...','Input','mcpConfig.save','FAILED','API\x20密钥无效,请检查您的密钥后重试','_loadStoredApiKey','NONE','MCP_UI_PLUGIN','svg','length','mcpConfig.saving','off-line-icon','fill','Authorization:','use','MCP_PLUGIN_CONFIG_KEY','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Get\x20your\x20API\x20key\x20in\x20seconds','show','tag','mcpConfig.note2','ILogService','Disconnected','call','配置保存失败','DependentOn','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','hover:univer-opacity-80','close','showConfigPanel','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','OffLineIcon','MCPConnectionError','mcpServerUrl','getOwnPropertySymbols','univer-space-y-2','将以下配置添加到您的\x20MCP\x20客户端设置中:','jsx','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20客户端配置','超出最大重试次数,请稍后再试','noopener\x20noreferrer','Save\x20Configuration','displayName','Univer\x20AI\x20Console','Tooltip','getCurrentConfig','univer-text-red-500','mcpConfig.apiApplyInfo.description','_apiKey$','MCP\x20Configuration','_localeService','merge','mcp-config-dialog','Connection\x20Failed','replace','subscribeConfigValue$','xlink:href','enUS','className','Disposable','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','配置步骤:','LocaleService','MCP\x20已连接','setItem','MCP:\x20会话被占用','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','NETWORK_ERROR','createElement','has','MCPConnectionStatus','25857wabSzQ','配置无效','univer-bg-green-500','MCPConfigPanel','mcpConfig.connectionError.maxRetriesExceeded','value','344104EqZtUw','univer-flex\x20univer-gap-3','API\x20key\x20is\x20required','点击连接\x20MCP','API\x20密钥不能为空','onStarting','0\x200\x2016\x2016','mcpConfig.description','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','registerCommand','启用身份验证以获得安全连接','OTHERS','Button','IUIPartsService','M5.21243\x205.62036L11.8791\x2012.287','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-min-w-0\x20univer-flex-1','hasOwnProperty','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','1470HVbjfY','_menuManagerService','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','currentColor','_logService','连接失败','配置保存成功','https://console.univer.ai','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','MCP\x20重连中...','entries','off-line-icon_clip0_910_343','includes','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.apiKeyHint','univer-bg-red-500','API\x20key\x20is\x20required\x20to\x20connect','M0\x200H16V16H0z','MCPConfigUIController','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','round','Click\x20to\x20connect\x20MCP','jsxs','div','CloseSmallSingle','BuiltInUIPart','defs','Enable\x20authentication\x20for\x20secure\x20connections','none','map','univer-text-gray-400','colorChannel1','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpConfig.configStepTitle','164093sNdctV','MCP\x20配置','bottom','API\x20密钥无效,请检查密钥是否正确','M5.21243\x2012.287L11.8791\x205.62036','mcpConfig.validation.apiKeyTooShort','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','DISCONNECTED','icon','需要\x20API\x20密钥才能连接','mcpStatus.networkError','网络连接错误,请检查您的网络连接','MCP:\x20网络错误','配置参数:','evenodd','CONNECTING','0\x200\x2017\x2017','_createConfigPanelComponent','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-text-xs\x20univer-text-gray-600','您的\x20API\x20密钥安全存储在本地存储中','_connectionController','apiKey','on-line-icon_clip0_910_349','配置更改将立即生效','API\x20Key','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpConfig.configSaved','IMessageService','mcp-ui.command.openConfigPanel','mcpConfig.configParameters','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','BUTTON','validateApiKey','_commandService','mcpConfig.note1','1096888TUKmJi','IMenuManagerService','white','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','children','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','4606710kzELQU','保存中...','text','mcpStatus.sessionOccupied','重启您的\x20MCP\x20客户端以使配置生效','errorMessage','983886WSalOu','UniverMCPPlugin','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','会话ID','getItem','\x20-\x20','mcpConfig.connectionError.sessionOccupied','Session\x20ID','MCP:\x20Session\x20Occupied','mergeMenu','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.apiKeyPlaceholder','MCPConnectionUIController','WebSocketService','useState','univer-flex\x20univer-items-center\x20univer-gap-2','Inject','_mcpCoreConfig$','span','mcpStatus.unknown','_loading$','univer_session_id:','url(#on-line-icon_clip0_910_349)','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-flex-shrink-0\x20univer-text-blue-500','mcpConfig.apiApplyInfo.title','setConfig','UniverIcon','BehaviorSubject','Enter\x20your\x20API\x20key','univer-bg-gray-500','toStringTag','mcpConfig.connectionStatus.connecting','url(#$1','clipPath','__setCustomHeaders','mcpConfig.authorizationDescription','extend','Configuration\x20Steps:','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','11329504bDhUmY','mcpConfig.connectionStatus.connected','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','MCP\x20Connecting...','_initStatusComponent','mcpConfig.configStep1','mcpConfig.validation.invalidConfig','mcpStatus.maxRetriesExceeded','_initializeCommands','close-small-single','removeItem','MCP\x20连接中...','mcpConfig.connectionStatus.retrying','check-mark-icon','mcpStatus.failed','MAX_RETRIES_EXCEEDED','_dialogService','showDeveloperTools','MessageType','univer.ai','_localStorageService','disposeWithMe','1em','mcpConfig.apiApplyInfo.univerAiLabel','_uiPartsService','CheckMarkIcon','MCP\x20Disconnected','zhCN','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','_mcpConnectionController','API\x20key\x20with\x20Bearer\x20prefix.','add','Configuration\x20Notes:','useCallback','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.title','MCPConnectionController','Module','Retrying...','Univer\x20AI\x20控制台','_injector','请输入您的\x20API\x20密钥','MCP\x20Connected','univer-mr-2\x20univer-flex\x20univer-text-xl','javascript:void(0)','45TpYmCW','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_handleConfigSave','mcpConfig.connectionStatus.failed','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','SESSION_ID_OCCUPIED','什么是\x20API\x20密钥?','mcpConfig.configInstructions','7qVnbZt'];_0x2f73=function(){return _0x5e8586;};return _0x2f73();}var le=Object[_0x2d121d(0xde)],ue=(_0xc6e83c,_0x478672,_0x2dc63c)=>_0x478672 in _0xc6e83c?le(_0xc6e83c,_0x478672,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dc63c}):_0xc6e83c[_0x478672]=_0x2dc63c,y=(_0x5d6603,_0x5adb92,_0x9dba5)=>ue(_0x5d6603,typeof _0x5adb92!=_0x2d121d(0x24b)?_0x5adb92+'':_0x5adb92,_0x9dba5);Object[_0x2d121d(0xde)](exports,Symbol[_0x2d121d(0x1c9)],{'value':_0x2d121d(0x1f8)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),P=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),w=require('@univerjs/network');var g=function(){var _0x370d3e=_0x2d121d;return g=Object[_0x370d3e(0x246)]||function(_0xb93a22){var _0x442e71=_0x370d3e;for(var _0x2f8387,_0x3c610b=0x1,_0x3d93c5=arguments[_0x442e71(0xf9)];_0x3c610b<_0x3d93c5;_0x3c610b++){_0x2f8387=arguments[_0x3c610b];for(var _0xb52afa in _0x2f8387)Object[_0x442e71(0xef)]['hasOwnProperty']['call'](_0x2f8387,_0xb52afa)&&(_0xb93a22[_0xb52afa]=_0x2f8387[_0xb52afa]);}return _0xb93a22;},g['apply'](this,arguments);},ve=function(_0x15c73e,_0x3041b0){var _0x3eec91=_0x2d121d,_0x357101={};for(var _0x480c23 in _0x15c73e)Object['prototype'][_0x3eec91(0x152)]['call'](_0x15c73e,_0x480c23)&&_0x3041b0[_0x3eec91(0x215)](_0x480c23)<0x0&&(_0x357101[_0x480c23]=_0x15c73e[_0x480c23]);if(_0x15c73e!=null&&typeof Object[_0x3eec91(0x113)]=='function'){for(var _0x5df7fd=0x0,_0x480c23=Object[_0x3eec91(0x113)](_0x15c73e);_0x5df7fd<_0x480c23[_0x3eec91(0xf9)];_0x5df7fd++)_0x3041b0[_0x3eec91(0x215)](_0x480c23[_0x5df7fd])<0x0&&Object[_0x3eec91(0xef)]['propertyIsEnumerable'][_0x3eec91(0x107)](_0x15c73e,_0x480c23[_0x5df7fd])&&(_0x357101[_0x480c23[_0x5df7fd]]=_0x15c73e[_0x480c23[_0x5df7fd]]);}return _0x357101;},I=d[_0x2d121d(0x25b)](function(_0xbc9717,_0x1629e6){var _0x546472=_0x2d121d,_0x3e3bf5=_0xbc9717[_0x546472(0x17e)],_0x495e0e=_0xbc9717['id'],_0xfdf0b=_0xbc9717[_0x546472(0x12c)],_0x4e3102=_0xbc9717[_0x546472(0x1cf)],_0x3ba022=ve(_0xbc9717,['icon','id','className','extend']),_0xf16578='univerjs-icon\x20univerjs-icon-'[_0x546472(0x227)](_0x495e0e,'\x20')['concat'](_0xfdf0b||'')['trim'](),_0x1f23c2=d['useRef']('_'[_0x546472(0x227)](ge()));return B(_0x3e3bf5,''[_0x546472(0x227)](_0x495e0e),{'defIds':_0x3e3bf5[_0x546472(0x24f)],'idSuffix':_0x1f23c2['current']},g({'ref':_0x1629e6,'className':_0xf16578},_0x3ba022),_0x4e3102);});function B(_0x318a9b,_0x4de1cf,_0x5647b9,_0x5a96d1,_0x4d3be2){var _0x230a50=_0x2d121d;return d[_0x230a50(0x136)](_0x318a9b[_0x230a50(0x103)],g(g({'key':_0x4de1cf},de(_0x318a9b,_0x5647b9,_0x4d3be2)),_0x5a96d1),(Ce(_0x318a9b,_0x5647b9)[_0x230a50(0x1a1)]||[])[_0x230a50(0x171)](function(_0x3bc2c8,_0x21dc04){var _0x4d7e9d=_0x230a50;return B(_0x3bc2c8,''[_0x4d7e9d(0x227)](_0x4de1cf,'-')[_0x4d7e9d(0x227)](_0x318a9b[_0x4d7e9d(0x103)],'-')[_0x4d7e9d(0x227)](_0x21dc04),_0x5647b9,void 0x0,_0x4d3be2);}));}function de(_0x582736,_0x316be2,_0x440714){var _0x3c9c3a=_0x2d121d,_0x3f82ba=g({},_0x582736[_0x3c9c3a(0x248)]);_0x440714!=null&&_0x440714[_0x3c9c3a(0x173)]&&_0x3f82ba[_0x3c9c3a(0xfc)]==='colorChannel1'&&(_0x3f82ba[_0x3c9c3a(0xfc)]=_0x440714[_0x3c9c3a(0x173)]),_0x582736[_0x3c9c3a(0x103)]===_0x3c9c3a(0x260)&&_0x3f82ba['id']&&(_0x3f82ba['id']=_0x3f82ba['id']+_0x316be2[_0x3c9c3a(0x21e)]),Object[_0x3c9c3a(0x15e)](_0x3f82ba)[_0x3c9c3a(0xd6)](function(_0x248472){var _0x1d42e8=_0x3c9c3a,_0x24a66f=_0x248472[0x0],_0x56d83d=_0x248472[0x1];_0x24a66f==='mask'&&typeof _0x56d83d==_0x1d42e8(0x25c)&&(_0x3f82ba[_0x24a66f]=_0x56d83d[_0x1d42e8(0x128)](/url\(#(.*)\)/,_0x1d42e8(0x1cb)[_0x1d42e8(0x227)](_0x316be2[_0x1d42e8(0x21e)],')')));});var _0x13e6a6=_0x316be2[_0x3c9c3a(0x24f)];return!_0x13e6a6||_0x13e6a6['length']===0x0||(_0x582736['tag']===_0x3c9c3a(0xfe)&&_0x3f82ba[_0x3c9c3a(0x12a)]&&(_0x3f82ba[_0x3c9c3a(0x12a)]=_0x3f82ba['xlink:href']+_0x316be2[_0x3c9c3a(0x21e)]),Object[_0x3c9c3a(0x15e)](_0x3f82ba)[_0x3c9c3a(0xd6)](function(_0x37a585){var _0x163bec=_0x3c9c3a,_0x2fcfb5=_0x37a585[0x0],_0x3a02e5=_0x37a585[0x1];typeof _0x3a02e5==_0x163bec(0x25c)&&(_0x3f82ba[_0x2fcfb5]=_0x3a02e5[_0x163bec(0x128)](/url\(#(.*)\)/,_0x163bec(0x1cb)['concat'](_0x316be2['idSuffix'],')')));})),_0x3f82ba;}function Ce(_0x489dce,_0x3eb0df){var _0x3b2c51=_0x2d121d,_0xaa5cec,_0x2780e8=_0x3eb0df[_0x3b2c51(0x24f)];return!_0x2780e8||_0x2780e8[_0x3b2c51(0xf9)]===0x0?_0x489dce:_0x489dce['tag']===_0x3b2c51(0x16e)&&(!((_0xaa5cec=_0x489dce[_0x3b2c51(0x1a1)])===null||_0xaa5cec===void 0x0)&&_0xaa5cec[_0x3b2c51(0xf9)])?g(g({},_0x489dce),{'children':_0x489dce[_0x3b2c51(0x1a1)][_0x3b2c51(0x171)](function(_0x59d082){var _0x157ba6=_0x3b2c51;return typeof _0x59d082[_0x157ba6(0x248)]['id']=='string'&&_0x2780e8&&_0x2780e8[_0x157ba6(0x160)](_0x59d082['attrs']['id'])?g(g({},_0x59d082),{'attrs':g(g({},_0x59d082[_0x157ba6(0x248)]),{'id':_0x59d082[_0x157ba6(0x248)]['id']+_0x3eb0df[_0x157ba6(0x21e)]})}):_0x59d082;})}):_0x489dce;}function ge(){var _0xbcb54=_0x2d121d;return Math[_0xbcb54(0x23a)]()[_0xbcb54(0x22d)](0x24)['substring'](0x2,0x8);}I[_0x2d121d(0x11c)]=_0x2d121d(0x1c5);var fe={'tag':'svg','attrs':{'xmlns':_0x2d121d(0x235),'fill':_0x2d121d(0x170),'viewBox':_0x2d121d(0x145),'width':'1em','height':'1em'},'children':[{'tag':_0x2d121d(0x214),'attrs':{'fill':_0x2d121d(0x157),'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':_0x2d121d(0x184),'clipRule':'evenodd'}}]},V=d['forwardRef'](function(_0x483e2c,_0x3a5ab9){var _0xa84a0a=_0x2d121d;return d['createElement'](I,Object[_0xa84a0a(0x246)]({},_0x483e2c,{'id':_0xa84a0a(0x1e0),'ref':_0x3a5ab9,'icon':fe}));});V[_0x2d121d(0x11c)]=_0x2d121d(0x1ec);var pe={'tag':_0x2d121d(0xf8),'attrs':{'xmlns':_0x2d121d(0x235),'fill':_0x2d121d(0x170),'viewBox':_0x2d121d(0x186),'width':_0x2d121d(0x1e9),'height':_0x2d121d(0x1e9)},'children':[{'tag':_0x2d121d(0x214),'attrs':{'stroke':_0x2d121d(0x157),'d':_0x2d121d(0x14f),'strokeLinecap':_0x2d121d(0x168),'strokeLinejoin':_0x2d121d(0x168),'strokeWidth':1.33}},{'tag':_0x2d121d(0x214),'attrs':{'stroke':_0x2d121d(0x157),'d':_0x2d121d(0x17a),'strokeLinecap':_0x2d121d(0x168),'strokeLinejoin':_0x2d121d(0x168),'strokeWidth':1.33}}]},F=d[_0x2d121d(0x25b)](function(_0x24d692,_0x3002dc){var _0x22d517=_0x2d121d;return d['createElement'](I,Object[_0x22d517(0x246)]({},_0x24d692,{'id':_0x22d517(0x1dc),'ref':_0x3002dc,'icon':pe}));});F[_0x2d121d(0x11c)]=_0x2d121d(0x16c);var he={'tag':_0x2d121d(0xf8),'attrs':{'xmlns':_0x2d121d(0x235),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2d121d(0x1e9),'height':'1em'},'children':[{'tag':_0x2d121d(0x214),'attrs':{'fill':'currentColor','d':_0x2d121d(0x17c)}},{'tag':_0x2d121d(0x214),'attrs':{'fill':_0x2d121d(0x157),'d':_0x2d121d(0x161)}},{'tag':_0x2d121d(0x214),'attrs':{'fill':'currentColor','d':_0x2d121d(0xee),'fillRule':'evenodd','clipRule':_0x2d121d(0x184)}}]},H=d[_0x2d121d(0x25b)](function(_0x33e0e6,_0x3a6750){var _0x5e61bf=_0x2d121d;return d[_0x5e61bf(0x136)](I,Object[_0x5e61bf(0x246)]({},_0x33e0e6,{'id':_0x5e61bf(0x231),'ref':_0x3a6750,'icon':he}));});H[_0x2d121d(0x11c)]='HelpSingle';var me={'tag':'svg','attrs':{'xmlns':_0x2d121d(0x235),'fill':_0x2d121d(0x170),'viewBox':'0\x200\x2016\x2016','width':_0x2d121d(0x1e9),'height':_0x2d121d(0x1e9)},'children':[{'tag':'g','attrs':{'clipPath':_0x2d121d(0x23f)},'children':[{'tag':_0x2d121d(0x214),'attrs':{'stroke':_0x2d121d(0x157),'d':_0x2d121d(0x134),'strokeLinecap':_0x2d121d(0x168),'strokeLinejoin':_0x2d121d(0x168),'strokeWidth':1.2}}]},{'tag':_0x2d121d(0x16e),'attrs':{},'children':[{'tag':_0x2d121d(0x1cc),'attrs':{'id':_0x2d121d(0x15f)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2d121d(0x165)}}]}]}],'defIds':[_0x2d121d(0x15f)]},q=d['forwardRef'](function(_0x2e326e,_0x20ea3e){var _0x526768=_0x2d121d;return d[_0x526768(0x136)](I,Object[_0x526768(0x246)]({},_0x2e326e,{'id':_0x526768(0xfb),'ref':_0x20ea3e,'icon':me}));});q[_0x2d121d(0x11c)]=_0x2d121d(0x110);var xe={'tag':_0x2d121d(0xf8),'attrs':{'xmlns':_0x2d121d(0x235),'fill':_0x2d121d(0x170),'viewBox':'0\x200\x2017\x2016','width':_0x2d121d(0x1e9),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2d121d(0x1c0)},'children':[{'tag':'path','attrs':{'stroke':_0x2d121d(0x157),'d':_0x2d121d(0x18a),'strokeLinecap':_0x2d121d(0x168),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2d121d(0x16e),'attrs':{},'children':[{'tag':_0x2d121d(0x1cc),'attrs':{'id':_0x2d121d(0x18f)},'children':[{'tag':_0x2d121d(0x214),'attrs':{'fill':_0x2d121d(0x19f),'d':_0x2d121d(0x165),'transform':_0x2d121d(0x22e)}}]}]}],'defIds':[_0x2d121d(0x18f)]},z=d['forwardRef'](function(_0x29fb10,_0x35d8d6){var _0x3afe19=_0x2d121d;return d[_0x3afe19(0x136)](I,Object[_0x3afe19(0x246)]({},_0x29fb10,{'id':'on-line-icon','ref':_0x35d8d6,'icon':xe}));});z[_0x2d121d(0x11c)]=_0x2d121d(0x254);function W(_0x5d4a2b){var _0x440400=_0x2d121d,_0x485484,_0x5c793a;const {mcpCoreConfig:_0xfce3e3,onSave:_0x483f57,loading:_0x333d9d=!0x1,config:_0x173abb,connectionStatus$:_0x27f30c,connectionError$:_0x284127,currentApiKey$:_0x2b9b96,currentSessionId$:_0x343df2}=_0x5d4a2b,_0x527388=v['useDependency'](u['LocaleService']),_0x1940b5=v['useObservable'](_0x27f30c,s[_0x440400(0x138)][_0x440400(0x17d)]),_0x3f3674=v['useObservable'](_0x284127,s[_0x440400(0x111)]['NONE']),_0x360e7f=v[_0x440400(0xe4)](_0x343df2,''),_0x343dbd=v['useObservable'](_0x2b9b96,''),[_0x376f1e,_0x57ed6f]=d[_0x440400(0x1b8)](_0x343dbd||''),_0x295562=!0x0,_0x2bd665=_0x173abb[_0x440400(0x1e4)]&&_0xfce3e3['mcpServerUrl']&&(_0xfce3e3[_0x440400(0x112)][_0x440400(0x160)](_0x440400(0x25f))||_0xfce3e3[_0x440400(0x112)][_0x440400(0x160)](_0x440400(0x1e6))),_0x53bed7=(_0x485484=_0xfce3e3[_0x440400(0x112)])==null?void 0x0:_0x485484[_0x440400(0x160)](_0x440400(0x25f)),_0x3ef346=(_0x5c793a=_0xfce3e3[_0x440400(0x112)])==null?void 0x0:_0x5c793a[_0x440400(0x160)](_0x440400(0x1e6)),_0x470e37=_0x53bed7?'https://console.univer.plus':_0x440400(0x15b),_0x5459b6=_0x173abb['showDeveloperTools']&&(_0x53bed7||_0x3ef346),[_0xcd7b4d,_0x5ae6cf]=d[_0x440400(0x1b8)](!_0x376f1e[_0x440400(0xeb)]()),_0x41e8f4=(_0xf7a762,_0x4c92c9)=>{var _0x1c56eb=_0x440400;if(_0x4c92c9===s['MCPConnectionError']['INVALID_API_KEY'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0xf7a762){case s['MCPConnectionStatus']['CONNECTED']:return _0x1c56eb(0x198);case s['MCPConnectionStatus'][_0x1c56eb(0x185)]:case s[_0x1c56eb(0x138)]['RETRYING']:return _0x1c56eb(0x193);case s[_0x1c56eb(0x138)][_0x1c56eb(0xf3)]:return _0x1c56eb(0x216);default:return _0x1c56eb(0x230);}},_0x36b021=(_0x4eb97c,_0x516515)=>{var _0x246b8=_0x440400;if(_0x516515===s['MCPConnectionError'][_0x246b8(0xd5)])return _0x246b8(0x163);switch(_0x4eb97c){case s['MCPConnectionStatus']['CONNECTED']:return _0x246b8(0x13b);case s[_0x246b8(0x138)][_0x246b8(0x185)]:case s[_0x246b8(0x138)][_0x246b8(0xe9)]:return _0x246b8(0x23e);case s[_0x246b8(0x138)]['FAILED']:return _0x246b8(0x163);default:return _0x246b8(0x1c8);}},_0x5acfc4=_0x5f113c=>{var _0x4f31d6=_0x440400;switch(_0x5f113c){case s[_0x4f31d6(0x138)]['CONNECTED']:return _0x527388['t'](_0x4f31d6(0x1d4));case s[_0x4f31d6(0x138)]['CONNECTING']:return _0x527388['t'](_0x4f31d6(0x1ca));case s[_0x4f31d6(0x138)][_0x4f31d6(0xf3)]:return _0x527388['t'](_0x4f31d6(0x204));case s['MCPConnectionStatus']['RETRYING']:return _0x527388['t'](_0x4f31d6(0x1df));default:return _0x527388['t']('mcpConfig.connectionStatus.disconnected');}},_0xea4a71=_0x2c7231=>{var _0x326610=_0x440400;switch(_0x2c7231){case s[_0x326610(0x111)][_0x326610(0xd5)]:return _0x527388['t'](_0x326610(0x245));case s[_0x326610(0x111)][_0x326610(0x207)]:return _0x527388['t'](_0x326610(0x1b0));case s[_0x326610(0x111)][_0x326610(0x135)]:return _0x527388['t'](_0x326610(0x23d));case s[_0x326610(0x111)][_0x326610(0x1e2)]:return _0x527388['t'](_0x326610(0x13d));default:return'';}},_0x412a70=d[_0x440400(0x1f4)](()=>{var _0x122541=_0x440400;const _0x4137b5={..._0xfce3e3,'apiKey':_0x376f1e[_0x122541(0xeb)](),'enableAuth':_0x295562};_0x483f57(_0x4137b5);},[_0xfce3e3,_0x376f1e,_0x295562,_0x483f57]),_0x4c711b=_0x376f1e[_0x440400(0xeb)]()[_0x440400(0xf9)]>0x0;return i[_0x440400(0x16a)](_0x440400(0x16b),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i['jsx'](_0x440400(0x16b),{'className':_0x440400(0x264),'children':i[_0x440400(0x16a)](_0x440400(0x16b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i[_0x440400(0x116)](_0x440400(0x16b),{'className':_0x440400(0x147),'children':i[_0x440400(0x116)]('span',{'className':'univer-text-white','children':'⚙'})}),i[_0x440400(0x116)](_0x440400(0x16b),{'children':i['jsx']('p',{'className':_0x440400(0x23c),'children':_0x527388['t'](_0x440400(0x146))})})]})}),i[_0x440400(0x16a)](_0x440400(0x16b),{'className':_0x440400(0x23b),'children':[i[_0x440400(0x116)](_0x440400(0x16b),{'className':_0x440400(0x10b)+_0x41e8f4(_0x1940b5,_0x3f3674)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':i['jsxs'](_0x440400(0x16b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x440400(0x116)]('div',{'className':_0x440400(0x1d1)+_0x36b021(_0x1940b5,_0x3f3674)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),i['jsx'](_0x440400(0x1bc),{'className':_0x440400(0xec),'children':_0x5acfc4(_0x1940b5)})]})}),_0x3f3674!==s[_0x440400(0x111)][_0x440400(0xf6)]&&(_0x1940b5===s[_0x440400(0x138)][_0x440400(0xf3)]||_0x3f3674===s[_0x440400(0x111)]['INVALID_API_KEY'])&&i['jsx'](_0x440400(0x16b),{'className':_0x440400(0x149),'children':i[_0x440400(0x16a)](_0x440400(0x16b),{'className':_0x440400(0x117),'children':[i[_0x440400(0x116)](_0x440400(0x1bc),{'className':_0x440400(0x22f),'children':'⚠️'}),i[_0x440400(0x116)]('p',{'className':_0x440400(0x192),'children':_0xea4a71(_0x3f3674)})]})})]}),i[_0x440400(0x116)]('div',{'className':_0x440400(0xe2),'children':i[_0x440400(0x16a)]('div',{'className':_0x440400(0x228),'children':[i['jsxs'](_0x440400(0x16b),{'className':_0x440400(0x114),'children':[i[_0x440400(0x16a)](_0x440400(0x25a),{'className':_0x440400(0x1c1),'children':[i['jsx'](_0x440400(0x1bc),{'children':'🔑'}),'\x20',_0x527388['t']('mcpConfig.apiKey'),i[_0x440400(0x116)]('span',{'className':_0x440400(0x120),'children':'*'}),_0x2bd665&&i[_0x440400(0x116)]('a',{'href':_0x440400(0x1ff),'onClick':()=>_0x5ae6cf(!0x0),'className':_0x440400(0xe3),'title':_0x527388['t']('mcpConfig.apiApplyInfo.title'),'children':i[_0x440400(0x116)](H,{})})]}),i[_0x440400(0x116)](P[_0x440400(0xf1)],{'type':_0x440400(0x1a5),'placeholder':_0x527388['t'](_0x440400(0x1b5)),'value':_0x376f1e,'onChange':_0x57ed6f,'disabled':_0x333d9d,'autoComplete':_0x440400(0x256)}),i[_0x440400(0x116)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x527388['t'](_0x440400(0x162))})]}),_0x2bd665&&_0xcd7b4d&&i[_0x440400(0x16a)](_0x440400(0x16b),{'className':_0x440400(0x20f),'children':[i[_0x440400(0x116)]('a',{'href':_0x440400(0x1ff),'onClick':()=>_0x5ae6cf(!0x1),'className':_0x440400(0x150),'title':_0x440400(0xd7),'children':i[_0x440400(0x116)](F,{})}),i[_0x440400(0x16a)](_0x440400(0x16b),{'className':_0x440400(0x232),'children':[i[_0x440400(0x116)](_0x440400(0x16b),{'className':_0x440400(0x1ab),'children':i[_0x440400(0x116)](_0x440400(0x1bc),{'className':_0x440400(0x22b),'children':'🚀'})}),i[_0x440400(0x16a)]('div',{'className':'univer-flex-1','children':[i[_0x440400(0x116)]('h4',{'className':_0x440400(0x265),'children':_0x527388['t'](_0x440400(0x1c3))}),i[_0x440400(0x116)]('p',{'className':_0x440400(0x167),'children':_0x527388['t'](_0x440400(0x121))}),i[_0x440400(0x116)]('div',{'className':_0x440400(0x229),'children':_0x5459b6&&i['jsxs']('a',{'href':_0x470e37,'target':_0x440400(0x21b),'rel':_0x440400(0x11a),'className':'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','children':[i[_0x440400(0x116)](_0x440400(0x1bc),{'children':'🤖'}),_0x527388['t'](_0x440400(0x1ea)),i[_0x440400(0x116)](_0x440400(0x1bc),{'className':_0x440400(0x172),'children':'↗'})]})}),i['jsxs'](_0x440400(0x16b),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x527388['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x173abb['showDeveloperTools']&&i[_0x440400(0x16a)]('div',{'className':_0x440400(0x174),'children':[i[_0x440400(0x16a)]('h4',{'className':_0x440400(0x1a2),'children':[i[_0x440400(0x116)](_0x440400(0x1bc),{'children':'🔗'}),'\x20',_0x527388['t'](_0x440400(0x253))]}),i[_0x440400(0x16a)](_0x440400(0x16b),{'className':'univer-space-y-4','children':[i[_0x440400(0x16a)](_0x440400(0x16b),{'className':_0x440400(0x225),'children':[i['jsx']('p',{'className':_0x440400(0x18b),'children':_0x527388['t'](_0x440400(0x209))}),i['jsxs'](_0x440400(0x16b),{'className':'univer-space-y-2','children':[i[_0x440400(0x116)]('div',{'className':_0x440400(0x1d2),'children':_0x527388['t'](_0x440400(0x175))}),i['jsxs']('div',{'className':_0x440400(0x10a),'children':[i[_0x440400(0x16a)](_0x440400(0x16b),{'className':_0x440400(0x1b9),'children':[i['jsx'](_0x440400(0x1bc),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x527388['t'](_0x440400(0x1d8))]}),i['jsxs']('div',{'className':_0x440400(0x1b9),'children':[i['jsx']('span',{'className':_0x440400(0x1d5),'children':'2'}),_0x527388['t']('mcpConfig.configStep2')]}),i[_0x440400(0x16a)](_0x440400(0x16b),{'className':_0x440400(0x1b9),'children':[i[_0x440400(0x116)](_0x440400(0x1bc),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x527388['t']('mcpConfig.configStep3')]})]})]})]}),i[_0x440400(0x16a)](_0x440400(0x16b),{'className':'univer-space-y-2','children':[i[_0x440400(0x116)](_0x440400(0x16b),{'className':_0x440400(0x1d2),'children':_0x440400(0x123)}),i[_0x440400(0x116)]('div',{'className':_0x440400(0x100),'children':i[_0x440400(0x116)]('pre',{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':_0x440400(0x15c)+_0x360e7f+_0x440400(0x188)+(_0x376f1e||'<API_KEY>')+_0x440400(0x1ef)})})]}),i['jsxs']('div',{'className':'univer-space-y-3','children':[i['jsx'](_0x440400(0x16b),{'className':_0x440400(0x1d2),'children':_0x527388['t'](_0x440400(0x197))}),i[_0x440400(0x16a)]('div',{'className':'univer-space-y-2','children':[i[_0x440400(0x16a)]('div',{'className':_0x440400(0x1f5),'children':[i['jsx']('div',{'className':_0x440400(0x189)}),i[_0x440400(0x16a)](_0x440400(0x16b),{'className':_0x440400(0x151),'children':[i[_0x440400(0x116)](_0x440400(0x16b),{'className':_0x440400(0x12e),'children':_0x440400(0x1bf)}),i[_0x440400(0x116)](_0x440400(0x16b),{'className':_0x440400(0x249),'children':_0x527388['t'](_0x440400(0xdf))})]})]}),i['jsxs'](_0x440400(0x16b),{'className':_0x440400(0x1f5),'children':[i[_0x440400(0x116)](_0x440400(0x16b),{'className':_0x440400(0x189)}),i[_0x440400(0x16a)](_0x440400(0x16b),{'className':_0x440400(0x151),'children':[i[_0x440400(0x116)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x440400(0xfd)}),i[_0x440400(0x116)](_0x440400(0x16b),{'className':_0x440400(0x249),'children':_0x527388['t'](_0x440400(0x1ce))})]})]})]})]})]})]}),i[_0x440400(0x116)](P[_0x440400(0x14d)],{'onClick':_0x412a70,'disabled':!_0x4c711b||_0x333d9d,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x333d9d?i['jsxs']('span',{'className':_0x440400(0x1b9),'children':[i[_0x440400(0x116)](_0x440400(0x1bc),{'children':'⟲'}),_0x527388['t'](_0x440400(0xfa))]}):i['jsxs'](_0x440400(0x1bc),{'className':_0x440400(0x1b9),'children':[i['jsx'](V,{}),_0x527388['t'](_0x440400(0xf2))]})}),i[_0x440400(0x116)](_0x440400(0x16b),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x440400(0x16a)](_0x440400(0x16b),{'className':_0x440400(0x140),'children':[i[_0x440400(0x116)](_0x440400(0x1bc),{'className':_0x440400(0x1c2),'children':'💡'}),i[_0x440400(0x16a)](_0x440400(0x16b),{'className':_0x440400(0x20d),'children':[i[_0x440400(0x116)](_0x440400(0x16b),{'className':'univer-font-medium','children':_0x440400(0x1f3)}),i[_0x440400(0x16a)](_0x440400(0x16b),{'children':['•',_0x527388['t'](_0x440400(0x19c))]}),i[_0x440400(0x16a)](_0x440400(0x16b),{'children':['•',_0x527388['t'](_0x440400(0x104))]})]})]})})]})})]});}const D='mcp-ui.config',G={'showDeveloperTools':!0x1};var Pe=Object[_0x2d121d(0xed)],Se=(_0x5927e1,_0x5a4352,_0x33dcd,_0xc803f6)=>{for(var _0x5d3d30=_0xc803f6>0x1?void 0x0:_0xc803f6?Pe(_0x5a4352,_0x33dcd):_0x5a4352,_0x216c0e=_0x5927e1['length']-0x1,_0x3d5535;_0x216c0e>=0x0;_0x216c0e--)(_0x3d5535=_0x5927e1[_0x216c0e])&&(_0x5d3d30=_0x3d5535(_0x5d3d30)||_0x5d3d30);return _0x5d3d30;},f=(_0x256c0b,_0x3fd85d)=>(_0x59ac4e,_0x17925f)=>_0x3fd85d(_0x59ac4e,_0x17925f,_0x256c0b);const A='mcp.apiKey',O=_0x2d121d(0x126);exports[_0x2d121d(0x166)]=class extends u[_0x2d121d(0x12d)]{constructor(_0x4db0d7,_0x2086d0,_0x4c2794,_0x390dcd,_0x5992da,_0x134f4f,_0x453854,_0x8e9395,_0x10b858,_0x1d2d72){var _0x227d2f=_0x2d121d;super(),y(this,_0x227d2f(0x1be),new M[(_0x227d2f(0x1c6))](!0x1)),y(this,'_mcpCoreConfig$',new M[(_0x227d2f(0x1c6))]({})),y(this,_0x227d2f(0x244),new M[(_0x227d2f(0x1c6))]({})),y(this,_0x227d2f(0x122),new M[(_0x227d2f(0x1c6))]('')),y(this,_0x227d2f(0x203),async _0x4c8a17=>{var _0x3750e4=_0x227d2f,_0x3fc2fc,_0x349669;this[_0x3750e4(0x1be)][_0x3750e4(0x242)](!0x0);try{const _0x34db84=await this[_0x3750e4(0xe1)](_0x4c8a17);if(!_0x34db84[_0x3750e4(0x213)]){this['_messageService'][_0x3750e4(0x102)]({'type':P[_0x3750e4(0x1e5)]['Error'],'content':_0x34db84[_0x3750e4(0x1a8)]||this[_0x3750e4(0x124)]['t'](_0x3750e4(0x1d9))});return;}_0x4c8a17['apiKey']?await this['_localStorageService'][_0x3750e4(0x132)](A,_0x4c8a17[_0x3750e4(0x18e)][_0x3750e4(0xeb)]()):await this[_0x3750e4(0x1e7)][_0x3750e4(0x1dd)](A),this[_0x3750e4(0x122)]['next'](((_0x3fc2fc=_0x4c8a17['apiKey'])==null?void 0x0:_0x3fc2fc[_0x3750e4(0xeb)]())||''),this[_0x3750e4(0x1f0)]['__setCustomHeaders']({'Authorization':_0x3750e4(0x234)+((_0x349669=_0x4c8a17[_0x3750e4(0x18e)])==null?void 0x0:_0x349669['trim']())}),this[_0x3750e4(0x24c)]['show']({'type':P['MessageType'][_0x3750e4(0x224)],'content':this['_localeService']['t'](_0x3750e4(0x194))}),setTimeout(()=>{var _0x90a44e=_0x3750e4;this[_0x90a44e(0x1e3)][_0x90a44e(0x10d)](O);},0x320);}catch(_0x50e15b){this[_0x3750e4(0x158)][_0x3750e4(0xe8)](_0x3750e4(0x1b4),_0x50e15b),this[_0x3750e4(0x24c)][_0x3750e4(0x102)]({'type':P[_0x3750e4(0x1e5)][_0x3750e4(0x21d)],'content':this[_0x3750e4(0x124)]['t'](_0x3750e4(0x226))});}finally{this[_0x3750e4(0x1be)][_0x3750e4(0x242)](!0x1);}}),(this[_0x227d2f(0x1fb)]=_0x4db0d7,this['_uiPartsService']=_0x2086d0,this[_0x227d2f(0xd9)]=_0x4c2794,this['_localStorageService']=_0x390dcd,this[_0x227d2f(0x1e3)]=_0x5992da,this[_0x227d2f(0x24c)]=_0x134f4f,this[_0x227d2f(0xdb)]=_0x453854,this[_0x227d2f(0x124)]=_0x8e9395,this['_logService']=_0x10b858,this['_mcpConnectionController']=_0x1d2d72,this[_0x227d2f(0x240)](),this[_0x227d2f(0xf5)](),this[_0x227d2f(0x237)]());}[_0x2d121d(0x10e)](){var _0x317186=_0x2d121d;this[_0x317186(0x1e3)]['open']({'id':O,'title':{'title':this[_0x317186(0x124)]['t'](_0x317186(0x1f6))},'children':{'label':_0x317186(0x13c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x7ba9b2=_0x317186;this['_dialogService'][_0x7ba9b2(0x10d)](O);}});}[_0x2d121d(0x11f)](){var _0x21f616=_0x2d121d;return this[_0x21f616(0x1bb)][_0x21f616(0x13e)];}[_0x2d121d(0x237)](){var _0x21ea64=_0x2d121d;this[_0x21ea64(0x1e8)](this['_componentManager']['register'](_0x21ea64(0x13c),this[_0x21ea64(0x187)]()));}[_0x2d121d(0x187)](){var _0x1d0735=_0x2d121d;return v[_0x1d0735(0x247)](()=>{var _0x40f402=_0x1d0735,_0x36e6d0,_0x1a5fea,_0x4443ef;return i[_0x40f402(0x116)](W,{'config':this[_0x40f402(0x244)]['value'],'mcpCoreConfig':this[_0x40f402(0x1bb)][_0x40f402(0x13e)],'currentApiKey$':this[_0x40f402(0x122)],'onSave':this[_0x40f402(0x203)],'loading':this[_0x40f402(0x1be)]['value'],'connectionStatus$':(_0x36e6d0=this[_0x40f402(0x1f0)])==null?void 0x0:_0x36e6d0['connectionStatus$'],'connectionError$':(_0x1a5fea=this[_0x40f402(0x1f0)])==null?void 0x0:_0x1a5fea[_0x40f402(0x21f)],'currentSessionId$':(_0x4443ef=this[_0x40f402(0x1f0)])==null?void 0x0:_0x4443ef[_0x40f402(0xda)]});},this['_injector']);}[_0x2d121d(0x240)](){var _0xfb1f80=_0x2d121d;this[_0xfb1f80(0x1e8)](this['_configService']['subscribeConfigValue$'](s[_0xfb1f80(0xff)])['subscribe'](_0x19956e=>{var _0x578c2d=_0xfb1f80;this[_0x578c2d(0x1bb)]['next'](_0x19956e||{});}));const _0x4b3e4a=this['_configService']['getConfig'](s[_0xfb1f80(0xff)]);this[_0xfb1f80(0x1bb)][_0xfb1f80(0x242)](_0x4b3e4a||{}),this[_0xfb1f80(0x1e8)](this[_0xfb1f80(0xd9)][_0xfb1f80(0x129)](D)['subscribe'](_0x68aa3d=>{var _0x3e1e4d=_0xfb1f80;this[_0x3e1e4d(0x244)][_0x3e1e4d(0x242)](_0x68aa3d||{});}));const _0x58cc12=this[_0xfb1f80(0xd9)]['getConfig'](D);this['_config$'][_0xfb1f80(0x242)](_0x58cc12||{});}async[_0x2d121d(0xf5)](){var _0x452d0e=_0x2d121d;const _0xa27c68=await this[_0x452d0e(0x1e7)][_0x452d0e(0x1ae)](A);_0xa27c68&&(this[_0x452d0e(0x1f0)][_0x452d0e(0x1cd)]({'Authorization':'Bearer\x20'+_0xa27c68}),this[_0x452d0e(0x122)][_0x452d0e(0x242)](_0xa27c68));}async[_0x2d121d(0xe1)](_0x5ece5b){var _0x10da72=_0x2d121d;if(!_0x5ece5b[_0x10da72(0x18e)]||_0x5ece5b[_0x10da72(0x18e)][_0x10da72(0xeb)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x10da72(0x124)]['t'](_0x10da72(0x252))};if(_0x5ece5b[_0x10da72(0x18e)]['trim']()[_0x10da72(0xf9)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x10da72(0x124)]['t'](_0x10da72(0x17b))};try{const _0x69f967=await this[_0x10da72(0x1fb)][_0x10da72(0x20e)](s['MCPConnectionController'])[_0x10da72(0x19a)](_0x5ece5b[_0x10da72(0x18e)][_0x10da72(0xeb)]());return _0x69f967['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x69f967[_0x10da72(0xe8)]||this[_0x10da72(0x124)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x3eec84){return console[_0x10da72(0x220)](_0x10da72(0x206),_0x3eec84),{'isValid':!0x0};}}},exports[_0x2d121d(0x166)]=Se([f(0x0,u[_0x2d121d(0x1ba)](u[_0x2d121d(0xdc)])),f(0x1,v[_0x2d121d(0x14e)]),f(0x2,u[_0x2d121d(0x239)]),f(0x3,u[_0x2d121d(0x221)]),f(0x4,v[_0x2d121d(0x25e)]),f(0x5,v[_0x2d121d(0x195)]),f(0x6,u[_0x2d121d(0x1ba)](v['ComponentManager'])),f(0x7,u['Inject'](u[_0x2d121d(0x130)])),f(0x8,u[_0x2d121d(0x105)]),f(0x9,u[_0x2d121d(0x1ba)](s[_0x2d121d(0x1f7)]))],exports[_0x2d121d(0x166)]);const N={'id':_0x2d121d(0x196),'type':u['CommandType']['COMMAND'],'handler':async(_0x3c7d29,_0x2978e2)=>(_0x3c7d29['get'](exports[_0x2d121d(0x166)])[_0x2d121d(0x10e)](),!0x0)};function Z(_0xa51729,_0x287969){var _0x2cbffc=_0x2d121d;switch(_0xa51729){case s[_0x2cbffc(0x138)][_0x2cbffc(0x17d)]:return'mcpStatus.disconnected';case s[_0x2cbffc(0x138)][_0x2cbffc(0x185)]:return _0x2cbffc(0x243);case s[_0x2cbffc(0x138)]['CONNECTED']:return'mcpStatus.connected';case s[_0x2cbffc(0x138)][_0x2cbffc(0xf3)]:switch(_0x287969){case s[_0x2cbffc(0x111)][_0x2cbffc(0xd5)]:return _0x2cbffc(0x20c);case s[_0x2cbffc(0x111)]['SESSION_ID_OCCUPIED']:return _0x2cbffc(0x1a6);case s['MCPConnectionError']['NETWORK_ERROR']:return _0x2cbffc(0x180);case s[_0x2cbffc(0x111)][_0x2cbffc(0x1e2)]:return _0x2cbffc(0x1da);default:return _0x2cbffc(0x1e1);}case s[_0x2cbffc(0x138)]['RETRYING']:return'mcpStatus.retrying';default:return _0x2cbffc(0x1bd);}}function ye(_0x433865,_0xbaacf6,_0x1f39c9){var _0x57ce80=_0x2d121d;const _0x5f5424=Z(_0x433865,_0xbaacf6),_0xf670bb=_0x1f39c9['t'](_0x5f5424);return _0x433865===s['MCPConnectionStatus'][_0x57ce80(0x17d)]&&_0xbaacf6===s[_0x57ce80(0x111)][_0x57ce80(0xd5)]?_0xf670bb+'\x20-\x20'+_0x1f39c9['t']('mcpStatus.clickToConfigure'):_0x433865===s[_0x57ce80(0x138)][_0x57ce80(0x233)]?''+_0xf670bb:_0x433865===s['MCPConnectionStatus'][_0x57ce80(0x17d)]||_0x433865===s[_0x57ce80(0x138)][_0x57ce80(0xf3)]?_0xf670bb+_0x57ce80(0x1af)+_0x1f39c9['t']('mcpStatus.clickToConnect'):_0xf670bb;}function Ie(_0x5cf02c){var _0x528e12=_0x2d121d;switch(_0x5cf02c){case s[_0x528e12(0x138)][_0x528e12(0x233)]:return'univer-text-green-500';case s[_0x528e12(0x138)][_0x528e12(0x185)]:case s['MCPConnectionStatus']['RETRYING']:return'univer-text-yellow-500';case s[_0x528e12(0x138)][_0x528e12(0xf3)]:case s[_0x528e12(0x138)][_0x528e12(0x17d)]:return _0x528e12(0x120);default:return _0x528e12(0x251);}}function X(_0x4671e7){var _0x573f69=_0x2d121d;const {status$:_0x19dfb1,error$:_0x5d056c,onConfigure:_0x4179b0}=_0x4671e7,_0x295ce0=v[_0x573f69(0xe4)](_0x19dfb1,s[_0x573f69(0x138)][_0x573f69(0x17d)]),_0x5a216f=v['useObservable'](_0x5d056c,s[_0x573f69(0x111)][_0x573f69(0xf6)]),_0x4d5b85=v[_0x573f69(0xe6)](u[_0x573f69(0x130)]),_0xa0a96e=_0x295ce0===s[_0x573f69(0x138)][_0x573f69(0x233)],_0x20c894=_0x295ce0===s[_0x573f69(0x138)][_0x573f69(0x185)]||_0x295ce0===s[_0x573f69(0x138)][_0x573f69(0xe9)],_0x4ff0e5=_0x4d5b85['t'](Z(_0x295ce0,_0x5a216f)),_0x959ad0=ye(_0x295ce0,_0x5a216f,_0x4d5b85),_0x381003=Ie(_0x295ce0),_0x225f45=_0xa0a96e?i[_0x573f69(0x116)](z,{}):i['jsx'](q,{}),_0x3e9ca9=d[_0x573f69(0x1f4)](()=>{_0x4179b0&&_0x4179b0();},[_0xa0a96e,_0x20c894,_0x4179b0]);function _0x40ee33(){var _0x187867=_0x573f69;return i['jsxs'](_0x187867(0x16b),{'className':P[_0x187867(0x250)](_0x187867(0x219),_0x4179b0&&_0x187867(0x10c)),'onClick':_0x4179b0?_0x3e9ca9:void 0x0,'children':[i[_0x187867(0x116)](_0x187867(0x16b),{'className':P[_0x187867(0x250)](_0x187867(0x1fe),_0x381003),'children':_0x225f45}),i[_0x187867(0x116)]('div',{'className':_0x187867(0x257),'children':_0x4ff0e5})]});}return i[_0x573f69(0x116)](P[_0x573f69(0x11e)],{'title':_0x959ad0,'placement':_0x573f69(0x178),'children':_0x40ee33()});}var _e=Object['getOwnPropertyDescriptor'],Me=(_0x59af82,_0x1f444f,_0x275cbd,_0x4659f2)=>{var _0x3129bc=_0x2d121d;for(var _0x47b81d=_0x4659f2>0x1?void 0x0:_0x4659f2?_e(_0x1f444f,_0x275cbd):_0x1f444f,_0x4b6783=_0x59af82[_0x3129bc(0xf9)]-0x1,_0x28d44c;_0x4b6783>=0x0;_0x4b6783--)(_0x28d44c=_0x59af82[_0x4b6783])&&(_0x47b81d=_0x28d44c(_0x47b81d)||_0x47b81d);return _0x47b81d;},k=(_0x3e615f,_0x55dbc0)=>(_0x4bc899,_0xc544ba)=>_0x55dbc0(_0x4bc899,_0xc544ba,_0x3e615f);exports['MCPConnectionUIController']=class extends u[_0x2d121d(0x12d)]{constructor(_0x546958,_0x1ea317,_0x545953){var _0x38a6f2=_0x2d121d;super(),this['_injector']=_0x546958,this['_connectionController']=_0x1ea317,this['_uiPartsService']=_0x545953,this['_connectionController'][_0x38a6f2(0x24e)]=!0x1,this[_0x38a6f2(0x1d7)]();}['_initStatusComponent'](){var _0x12f2e4=_0x2d121d;this[_0x12f2e4(0x1e8)](this[_0x12f2e4(0x1eb)][_0x12f2e4(0x259)](v[_0x12f2e4(0x16d)][_0x12f2e4(0xe0)],()=>v[_0x12f2e4(0x247)](Ne({'status$':this[_0x12f2e4(0x18d)][_0x12f2e4(0x24d)],'error$':this[_0x12f2e4(0x18d)]['connectionError$'],'onConfigure':()=>this['_handleConfigure']()}),this[_0x12f2e4(0x1fb)])));}[_0x2d121d(0x241)](){var _0x4fa4b3=_0x2d121d;this[_0x4fa4b3(0x1fb)][_0x4fa4b3(0x20e)](exports['MCPConfigUIController'])[_0x4fa4b3(0x10e)]();}},exports['MCPConnectionUIController']=Me([k(0x0,u['Inject'](u[_0x2d121d(0xdc)])),k(0x1,u[_0x2d121d(0x1ba)](s['MCPConnectionController'])),k(0x2,v[_0x2d121d(0x14e)])],exports[_0x2d121d(0x1b6)]);function Ne(_0x9e81d){const {status$:_0x1dfced,error$:_0x44a650,onConfigure:_0x41f896}=_0x9e81d;return function(){var _0x124b66=_0x4a0c;return i[_0x124b66(0x116)](X,{'status$':_0x1dfced,'error$':_0x44a650,'onConfigure':_0x41f896});};}function be(_0x48b2ab){var _0x45fc27=_0x2d121d;return{'id':N['id'],'type':v['MenuItemType'][_0x45fc27(0x199)],'icon':'MenuIcon','title':_0x45fc27(0x1f6),'tooltip':_0x45fc27(0x1f6)};}const je={[v[_0x2d121d(0x263)][_0x2d121d(0x14c)]]:{[N['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object['getOwnPropertyDescriptor'],we=(_0xe35c23,_0x20dc28,_0x385087,_0xf78bbb)=>{for(var _0xb412a8=_0xf78bbb>0x1?void 0x0:_0xf78bbb?Ee(_0x20dc28,_0x385087):_0x20dc28,_0x4625e7=_0xe35c23['length']-0x1,_0x44ecea;_0x4625e7>=0x0;_0x4625e7--)(_0x44ecea=_0xe35c23[_0x4625e7])&&(_0xb412a8=_0x44ecea(_0xb412a8)||_0xb412a8);return _0xb412a8;},Y=(_0x5a88de,_0x382d4a)=>(_0x512c54,_0x3123a8)=>_0x382d4a(_0x512c54,_0x3123a8,_0x5a88de);function _0x4a0c(_0x16463e,_0x3945ed){var _0x2f73ae=_0x2f73();return _0x4a0c=function(_0x4a0ca0,_0x5e2fb9){_0x4a0ca0=_0x4a0ca0-0xd5;var _0x2b8081=_0x2f73ae[_0x4a0ca0];return _0x2b8081;},_0x4a0c(_0x16463e,_0x3945ed);}exports['MCPUIMenuController']=class extends u['Disposable']{constructor(_0x161261,_0x5034ac){var _0x3a0129=_0x2d121d;super(),this[_0x3a0129(0x19b)]=_0x161261,this[_0x3a0129(0x155)]=_0x5034ac,this[_0x3a0129(0x1db)](),this['_initializeMenus']();}[_0x2d121d(0x1db)](){var _0x5322ea=_0x2d121d;[N][_0x5322ea(0xd6)](_0x129466=>{var _0x5a7037=_0x5322ea;this['disposeWithMe'](this[_0x5a7037(0x19b)][_0x5a7037(0x14a)](_0x129466));});}[_0x2d121d(0x24a)](){var _0x2b7289=_0x2d121d;this['_menuManagerService'][_0x2b7289(0x1b3)](je);}},exports[_0x2d121d(0x261)]=we([Y(0x0,u[_0x2d121d(0xe7)]),Y(0x1,v[_0x2d121d(0x19e)])],exports['MCPUIMenuController']);const Ae={'mcpStatus':{'disconnected':_0x2d121d(0x1ed),'connecting':_0x2d121d(0x1d6),'connected':_0x2d121d(0x1fd),'failed':_0x2d121d(0x258),'retrying':_0x2d121d(0x223),'unknown':_0x2d121d(0x201),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x2d121d(0x1b2),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2d121d(0x169),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2d121d(0x123),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2d121d(0x191),'apiKeyPlaceholder':_0x2d121d(0x1c7),'apiKeyHint':_0x2d121d(0x1a0),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2d121d(0x16f),'connectionInfo':_0x2d121d(0x22c),'mcpClientConfig':_0x2d121d(0x22c),'configInstructions':_0x2d121d(0x10f),'configStepTitle':_0x2d121d(0x1d0),'configStep1':_0x2d121d(0x218),'configStep2':_0x2d121d(0xea),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2d121d(0x1b1),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2d121d(0x1f1),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2d121d(0x21c),'save':_0x2d121d(0x11b),'saving':'Saving...','note1':_0x2d121d(0x156),'note2':_0x2d121d(0x202),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2d121d(0xe5),'apiApplyInfo':{'title':_0x2d121d(0x212),'description':_0x2d121d(0x153),'univerAiLabel':_0x2d121d(0x11d),'getStarted':_0x2d121d(0x101)},'validation':{'apiKeyRequired':_0x2d121d(0x141),'apiKeyTooShort':_0x2d121d(0x222),'invalidConfig':_0x2d121d(0x217),'invalidApiKey':_0x2d121d(0x1ac)},'connectionStatus':{'disconnected':_0x2d121d(0x106),'connecting':_0x2d121d(0xf0),'connected':_0x2d121d(0xdd),'failed':_0x2d121d(0x127),'retrying':_0x2d121d(0x1f9)},'connectionError':{'missingApiKey':_0x2d121d(0x164),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x2d121d(0x148),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2d121d(0x25d)}}},Oe={'mcpStatus':{'disconnected':_0x2d121d(0x22a),'connecting':_0x2d121d(0x1de),'connected':_0x2d121d(0x131),'failed':'MCP\x20连接失败','retrying':_0x2d121d(0x15d),'unknown':_0x2d121d(0x210),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':'MCP:\x20无效的\x20API\x20密钥','sessionOccupied':_0x2d121d(0x133),'networkError':_0x2d121d(0x182),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2d121d(0x142),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x2d121d(0x177),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x2d121d(0x1fc),'apiKeyHint':_0x2d121d(0x255),'enableAuth':'启用身份验证','enableAuthHint':_0x2d121d(0x14b),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x2d121d(0x118),'configInstructions':_0x2d121d(0x115),'configStepTitle':_0x2d121d(0x12f),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x2d121d(0x1a7),'sessionId':_0x2d121d(0x1ad),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x2d121d(0x183),'maxRetries':'最大重试次数','save':'保存配置','saving':_0x2d121d(0x1a4),'note1':_0x2d121d(0x190),'note2':_0x2d121d(0x18c),'configSaved':_0x2d121d(0x15a),'configError':_0x2d121d(0x108),'apiApplyInfo':{'title':_0x2d121d(0x208),'description':_0x2d121d(0x205),'univerAiLabel':_0x2d121d(0x1fa),'getStarted':_0x2d121d(0x20b)},'validation':{'apiKeyRequired':_0x2d121d(0x143),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x2d121d(0x13a),'invalidApiKey':_0x2d121d(0x179)},'connectionStatus':{'disconnected':_0x2d121d(0x262),'connecting':'连接中...','connected':'已连接','failed':_0x2d121d(0x159),'retrying':_0x2d121d(0x238)},'connectionError':{'missingApiKey':_0x2d121d(0x17f),'invalidApiKey':_0x2d121d(0xf4),'sessionOccupied':'会话当前被占用,请稍后再试','networkError':_0x2d121d(0x181),'maxRetriesExceeded':_0x2d121d(0x119)}}};var ke=Object['defineProperty'],De=Object[_0x2d121d(0xed)],Ke=(_0x1e881d,_0x544f04,_0x15ee40)=>_0x544f04 in _0x1e881d?ke(_0x1e881d,_0x544f04,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15ee40}):_0x1e881d[_0x544f04]=_0x15ee40,Ue=(_0x23aa66,_0x4c2f49,_0x130336,_0x21f716)=>{var _0x3961ed=_0x2d121d;for(var _0x27a194=_0x21f716>0x1?void 0x0:_0x21f716?De(_0x4c2f49,_0x130336):_0x4c2f49,_0x55ac00=_0x23aa66[_0x3961ed(0xf9)]-0x1,_0x2a291d;_0x55ac00>=0x0;_0x55ac00--)(_0x2a291d=_0x23aa66[_0x55ac00])&&(_0x27a194=_0x2a291d(_0x27a194)||_0x27a194);return _0x27a194;},_=(_0x435716,_0x3df290)=>(_0x26f195,_0x4483f4)=>_0x3df290(_0x26f195,_0x4483f4,_0x435716),Te=(_0x53637a,_0x287777,_0x59da65)=>Ke(_0x53637a,_0x287777+'',_0x59da65);exports['UniverMCPUIPlugin']=class extends u[_0x2d121d(0x21a)]{constructor(_0x12e575=G,_0x32b15a,_0x326a75,_0x564713,_0x48e8f3,_0x46dcec){var _0x59521d=_0x2d121d;super(),this[_0x59521d(0x211)]=_0x12e575,this[_0x59521d(0x1fb)]=_0x32b15a,this[_0x59521d(0xd9)]=_0x326a75,this['_uiPartsService']=_0x564713,this[_0x59521d(0x1e7)]=_0x48e8f3,this[_0x59521d(0x124)]=_0x46dcec;const {..._0x5b46d0}=u[_0x59521d(0x125)]({},G,this[_0x59521d(0x211)]);this['_configService'][_0x59521d(0x1c4)](D,_0x5b46d0);}async[_0x2d121d(0x144)](){var _0x500e96=_0x2d121d;const _0x2ae2c6=[[exports[_0x500e96(0x1b6)]],[exports[_0x500e96(0x166)]],[exports[_0x500e96(0x261)]]];this['_injector'][_0x500e96(0x137)](w[_0x500e96(0x236)])||_0x2ae2c6['push']([w['ISocketService'],{'useClass':w[_0x500e96(0x1b7)]}]),_0x2ae2c6['forEach'](_0x3a802f=>this[_0x500e96(0x1fb)][_0x500e96(0x1f2)](_0x3a802f)),this[_0x500e96(0x1fb)][_0x500e96(0x20e)](exports[_0x500e96(0x1b6)]),this['_injector'][_0x500e96(0x20e)](exports['MCPConfigUIController']),this[_0x500e96(0x1fb)]['get'](exports[_0x500e96(0x261)]);}},Te(exports['UniverMCPUIPlugin'],'pluginName',_0x2d121d(0xf7)),exports['UniverMCPUIPlugin']=Ue([u[_0x2d121d(0x109)](s[_0x2d121d(0x1aa)]),_(0x1,u[_0x2d121d(0x1ba)](u[_0x2d121d(0xdc)])),_(0x2,u[_0x2d121d(0x239)]),_(0x3,v['IUIPartsService']),_(0x4,u[_0x2d121d(0x221)]),_(0x5,u[_0x2d121d(0x1ba)](u[_0x2d121d(0x130)]))],exports['UniverMCPUIPlugin']),exports['MCPConfigPanel']=W,exports[_0x2d121d(0xd8)]=X,exports['OpenMCPConfigPanelCommand']=N,exports[_0x2d121d(0x12b)]=Ae,exports[_0x2d121d(0x1ee)]=Oe;
|
|
1
|
+
'use strict';var _0x523845=_0x1ffb;(function(_0x14071a,_0x497086){var _0x522f66=_0x1ffb,_0x154fd8=_0x14071a();while(!![]){try{var _0x2fcf42=parseInt(_0x522f66(0x2b1))/0x1+parseInt(_0x522f66(0x247))/0x2+-parseInt(_0x522f66(0x297))/0x3*(-parseInt(_0x522f66(0x256))/0x4)+parseInt(_0x522f66(0x2fe))/0x5*(parseInt(_0x522f66(0x250))/0x6)+-parseInt(_0x522f66(0x245))/0x7+parseInt(_0x522f66(0x21d))/0x8+parseInt(_0x522f66(0x1ed))/0x9*(parseInt(_0x522f66(0x373))/0xa);if(_0x2fcf42===_0x497086)break;else _0x154fd8['push'](_0x154fd8['shift']());}catch(_0x7d15f7){_0x154fd8['push'](_0x154fd8['shift']());}}}(_0x517f,0x32459));var le=Object[_0x523845(0x22c)],ue=(_0x577756,_0x557ded,_0x1a764d)=>_0x557ded in _0x577756?le(_0x577756,_0x557ded,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a764d}):_0x577756[_0x557ded]=_0x1a764d,y=(_0x229e1c,_0x160a7e,_0x50edbb)=>ue(_0x229e1c,typeof _0x160a7e!=_0x523845(0x2c2)?_0x160a7e+'':_0x160a7e,_0x50edbb);Object[_0x523845(0x22c)](exports,Symbol[_0x523845(0x23c)],{'value':_0x523845(0x28f)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),P=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),w=require('@univerjs/network');var g=function(){var _0x6a9945=_0x523845;return g=Object[_0x6a9945(0x221)]||function(_0x3766f1){var _0x15aa28=_0x6a9945;for(var _0xc5fa03,_0x1e3a0f=0x1,_0x583409=arguments[_0x15aa28(0x2c3)];_0x1e3a0f<_0x583409;_0x1e3a0f++){_0xc5fa03=arguments[_0x1e3a0f];for(var _0xd24fe8 in _0xc5fa03)Object[_0x15aa28(0x337)][_0x15aa28(0x265)][_0x15aa28(0x2a3)](_0xc5fa03,_0xd24fe8)&&(_0x3766f1[_0xd24fe8]=_0xc5fa03[_0xd24fe8]);}return _0x3766f1;},g['apply'](this,arguments);},ve=function(_0x4856be,_0x17ea29){var _0x338618=_0x523845,_0x551573={};for(var _0x15cf61 in _0x4856be)Object[_0x338618(0x337)][_0x338618(0x265)][_0x338618(0x2a3)](_0x4856be,_0x15cf61)&&_0x17ea29[_0x338618(0x328)](_0x15cf61)<0x0&&(_0x551573[_0x15cf61]=_0x4856be[_0x15cf61]);if(_0x4856be!=null&&typeof Object[_0x338618(0x29a)]==_0x338618(0x220)){for(var _0x580aa3=0x0,_0x15cf61=Object['getOwnPropertySymbols'](_0x4856be);_0x580aa3<_0x15cf61[_0x338618(0x2c3)];_0x580aa3++)_0x17ea29[_0x338618(0x328)](_0x15cf61[_0x580aa3])<0x0&&Object[_0x338618(0x337)][_0x338618(0x359)][_0x338618(0x2a3)](_0x4856be,_0x15cf61[_0x580aa3])&&(_0x551573[_0x15cf61[_0x580aa3]]=_0x4856be[_0x15cf61[_0x580aa3]]);}return _0x551573;},I=d['forwardRef'](function(_0x4289b4,_0x35bc7c){var _0x22ce71=_0x523845,_0xb36d1b=_0x4289b4[_0x22ce71(0x20d)],_0x52d66d=_0x4289b4['id'],_0x128ee0=_0x4289b4[_0x22ce71(0x270)],_0x18825b=_0x4289b4['extend'],_0x148fb6=ve(_0x4289b4,[_0x22ce71(0x20d),'id','className',_0x22ce71(0x238)]),_0x5bdf13=_0x22ce71(0x350)[_0x22ce71(0x24c)](_0x52d66d,'\x20')[_0x22ce71(0x24c)](_0x128ee0||'')['trim'](),_0x10f7df=d[_0x22ce71(0x21e)]('_'[_0x22ce71(0x24c)](ge()));return B(_0xb36d1b,''[_0x22ce71(0x24c)](_0x52d66d),{'defIds':_0xb36d1b[_0x22ce71(0x267)],'idSuffix':_0x10f7df[_0x22ce71(0x252)]},g({'ref':_0x35bc7c,'className':_0x5bdf13},_0x148fb6),_0x18825b);});function B(_0x952532,_0x17ca11,_0x532119,_0x4eec6e,_0x5b1687){var _0x1d15e9=_0x523845;return d['createElement'](_0x952532[_0x1d15e9(0x1fe)],g(g({'key':_0x17ca11},de(_0x952532,_0x532119,_0x5b1687)),_0x4eec6e),(Ce(_0x952532,_0x532119)[_0x1d15e9(0x2b3)]||[])[_0x1d15e9(0x26c)](function(_0x9f39e6,_0x39cca2){var _0x498e67=_0x1d15e9;return B(_0x9f39e6,''['concat'](_0x17ca11,'-')[_0x498e67(0x24c)](_0x952532['tag'],'-')['concat'](_0x39cca2),_0x532119,void 0x0,_0x5b1687);}));}function de(_0xa58962,_0x5c2066,_0x18212f){var _0x568e4b=_0x523845,_0xe6aff3=g({},_0xa58962['attrs']);_0x18212f!=null&&_0x18212f[_0x568e4b(0x26a)]&&_0xe6aff3[_0x568e4b(0x213)]===_0x568e4b(0x26a)&&(_0xe6aff3[_0x568e4b(0x213)]=_0x18212f['colorChannel1']),_0xa58962[_0x568e4b(0x1fe)]===_0x568e4b(0x22d)&&_0xe6aff3['id']&&(_0xe6aff3['id']=_0xe6aff3['id']+_0x5c2066[_0x568e4b(0x31c)]),Object[_0x568e4b(0x1f5)](_0xe6aff3)['forEach'](function(_0x4184f8){var _0x38702d=_0x568e4b,_0x5a5e94=_0x4184f8[0x0],_0x101544=_0x4184f8[0x1];_0x5a5e94===_0x38702d(0x22d)&&typeof _0x101544==_0x38702d(0x326)&&(_0xe6aff3[_0x5a5e94]=_0x101544['replace'](/url\(#(.*)\)/,_0x38702d(0x23f)[_0x38702d(0x24c)](_0x5c2066[_0x38702d(0x31c)],')')));});var _0x4cd40b=_0x5c2066[_0x568e4b(0x267)];return!_0x4cd40b||_0x4cd40b[_0x568e4b(0x2c3)]===0x0||(_0xa58962[_0x568e4b(0x1fe)]===_0x568e4b(0x36b)&&_0xe6aff3[_0x568e4b(0x25a)]&&(_0xe6aff3['xlink:href']=_0xe6aff3[_0x568e4b(0x25a)]+_0x5c2066['idSuffix']),Object['entries'](_0xe6aff3)[_0x568e4b(0x34d)](function(_0x54f95d){var _0x5daab2=_0x568e4b,_0xc54b94=_0x54f95d[0x0],_0xff405=_0x54f95d[0x1];typeof _0xff405==_0x5daab2(0x326)&&(_0xe6aff3[_0xc54b94]=_0xff405['replace'](/url\(#(.*)\)/,_0x5daab2(0x23f)[_0x5daab2(0x24c)](_0x5c2066['idSuffix'],')')));})),_0xe6aff3;}function Ce(_0x522628,_0x219771){var _0x57fad7=_0x523845,_0x3792f7,_0x425d3c=_0x219771[_0x57fad7(0x267)];return!_0x425d3c||_0x425d3c['length']===0x0?_0x522628:_0x522628[_0x57fad7(0x1fe)]===_0x57fad7(0x379)&&(!((_0x3792f7=_0x522628[_0x57fad7(0x2b3)])===null||_0x3792f7===void 0x0)&&_0x3792f7[_0x57fad7(0x2c3)])?g(g({},_0x522628),{'children':_0x522628['children'][_0x57fad7(0x26c)](function(_0x437980){var _0x47af93=_0x57fad7;return typeof _0x437980[_0x47af93(0x2fd)]['id']==_0x47af93(0x326)&&_0x425d3c&&_0x425d3c[_0x47af93(0x371)](_0x437980[_0x47af93(0x2fd)]['id'])?g(g({},_0x437980),{'attrs':g(g({},_0x437980[_0x47af93(0x2fd)]),{'id':_0x437980[_0x47af93(0x2fd)]['id']+_0x219771[_0x47af93(0x31c)]})}):_0x437980;})}):_0x522628;}function ge(){var _0x3ec0c8=_0x523845;return Math[_0x3ec0c8(0x374)]()[_0x3ec0c8(0x24e)](0x24)[_0x3ec0c8(0x201)](0x2,0x8);}I[_0x523845(0x2da)]='UniverIcon';var fe={'tag':_0x523845(0x345),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x523845(0x1f4),'height':_0x523845(0x1f4)},'children':[{'tag':'path','attrs':{'fill':_0x523845(0x37b),'d':_0x523845(0x35b),'fillRule':_0x523845(0x34f),'clipRule':_0x523845(0x34f)}}]},V=d[_0x523845(0x37c)](function(_0x28b03f,_0x288f8c){var _0x2c9d02=_0x523845;return d[_0x2c9d02(0x202)](I,Object[_0x2c9d02(0x221)]({},_0x28b03f,{'id':'check-mark-icon','ref':_0x288f8c,'icon':fe}));});V[_0x523845(0x2da)]=_0x523845(0x2c9);var pe={'tag':_0x523845(0x345),'attrs':{'xmlns':_0x523845(0x366),'fill':'none','viewBox':_0x523845(0x1f0),'width':_0x523845(0x1f4),'height':'1em'},'children':[{'tag':_0x523845(0x204),'attrs':{'stroke':_0x523845(0x37b),'d':_0x523845(0x2fa),'strokeLinecap':_0x523845(0x2f5),'strokeLinejoin':_0x523845(0x2f5),'strokeWidth':1.33}},{'tag':_0x523845(0x204),'attrs':{'stroke':_0x523845(0x37b),'d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x523845(0x2f5),'strokeLinejoin':_0x523845(0x2f5),'strokeWidth':1.33}}]},F=d[_0x523845(0x37c)](function(_0x2ad67b,_0x284e18){var _0x41200e=_0x523845;return d[_0x41200e(0x202)](I,Object['assign']({},_0x2ad67b,{'id':'close-small-single','ref':_0x284e18,'icon':pe}));});F[_0x523845(0x2da)]=_0x523845(0x307);var he={'tag':_0x523845(0x345),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x523845(0x228),'viewBox':_0x523845(0x212),'width':_0x523845(0x1f4),'height':'1em'},'children':[{'tag':_0x523845(0x204),'attrs':{'fill':_0x523845(0x37b),'d':_0x523845(0x2de)}},{'tag':_0x523845(0x204),'attrs':{'fill':_0x523845(0x37b),'d':_0x523845(0x35c)}},{'tag':_0x523845(0x204),'attrs':{'fill':'currentColor','d':_0x523845(0x295),'fillRule':_0x523845(0x34f),'clipRule':_0x523845(0x34f)}}]},H=d[_0x523845(0x37c)](function(_0x3f18a2,_0x237944){var _0x547d0e=_0x523845;return d[_0x547d0e(0x202)](I,Object[_0x547d0e(0x221)]({},_0x3f18a2,{'id':_0x547d0e(0x29d),'ref':_0x237944,'icon':he}));});H[_0x523845(0x2da)]=_0x523845(0x367);var me={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x523845(0x228),'viewBox':_0x523845(0x212),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x523845(0x2bf)},'children':[{'tag':_0x523845(0x204),'attrs':{'stroke':_0x523845(0x37b),'d':_0x523845(0x2e1),'strokeLinecap':_0x523845(0x2f5),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x523845(0x379),'attrs':{},'children':[{'tag':_0x523845(0x224),'attrs':{'id':_0x523845(0x2c8)},'children':[{'tag':_0x523845(0x204),'attrs':{'fill':_0x523845(0x209),'d':_0x523845(0x2f9)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},q=d[_0x523845(0x37c)](function(_0x2adeae,_0x4cd4e6){var _0x1597a1=_0x523845;return d['createElement'](I,Object[_0x1597a1(0x221)]({},_0x2adeae,{'id':'off-line-icon','ref':_0x4cd4e6,'icon':me}));});q['displayName']='OffLineIcon';var xe={'tag':_0x523845(0x345),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x523845(0x228),'viewBox':_0x523845(0x355),'width':_0x523845(0x1f4),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x523845(0x322)},'children':[{'tag':_0x523845(0x204),'attrs':{'stroke':'currentColor','d':_0x523845(0x376),'strokeLinecap':'round','strokeLinejoin':_0x523845(0x2f5),'strokeWidth':1.2}}]},{'tag':_0x523845(0x379),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x523845(0x2ed)},'children':[{'tag':_0x523845(0x204),'attrs':{'fill':_0x523845(0x209),'d':_0x523845(0x2f9),'transform':'translate(.97)'}}]}]}],'defIds':[_0x523845(0x2ed)]},z=d[_0x523845(0x37c)](function(_0x4b95f5,_0x1fb2ed){return d['createElement'](I,Object['assign']({},_0x4b95f5,{'id':'on-line-icon','ref':_0x1fb2ed,'icon':xe}));});z['displayName']=_0x523845(0x1ff);function W(_0x5503bd){var _0x178332=_0x523845,_0x3eb085,_0x2f49d8;const {mcpCoreConfig:_0x23c1df,onSave:_0x12310a,loading:_0x312104=!0x1,config:_0x1c26a9,connectionStatus$:_0x494f96,connectionError$:_0x434bb4,currentApiKey$:_0xe87659,currentSessionId$:_0x4ccc22}=_0x5503bd,_0x4fb751=v[_0x178332(0x229)](u[_0x178332(0x1f7)]),_0x20ebba=v[_0x178332(0x2d5)](_0x494f96,s[_0x178332(0x23a)]['DISCONNECTED']),_0x22a18c=v[_0x178332(0x2d5)](_0x434bb4,s[_0x178332(0x26f)][_0x178332(0x218)]),_0x1a60fb=v[_0x178332(0x2d5)](_0x4ccc22,''),_0x5b6c95=v['useObservable'](_0xe87659,''),[_0x38acba,_0x546a53]=d[_0x178332(0x338)](_0x5b6c95||''),_0x37771b=!0x0,_0x2d3839=_0x1c26a9[_0x178332(0x217)]&&_0x23c1df[_0x178332(0x20b)]&&(_0x23c1df[_0x178332(0x20b)]['includes']('univer.plus')||_0x23c1df[_0x178332(0x20b)][_0x178332(0x371)]('univer.ai')),_0x53686d=(_0x3eb085=_0x23c1df[_0x178332(0x20b)])==null?void 0x0:_0x3eb085[_0x178332(0x371)]('univer.plus'),_0xc0594c=(_0x2f49d8=_0x23c1df[_0x178332(0x20b)])==null?void 0x0:_0x2f49d8[_0x178332(0x371)](_0x178332(0x2d1)),_0xae531e=_0x53686d?_0x178332(0x327):_0x178332(0x356),_0x2d8022=_0x1c26a9['showDeveloperTools']&&(_0x53686d||_0xc0594c),[_0x2170e1,_0x587d21]=d[_0x178332(0x338)](!_0x38acba[_0x178332(0x1fa)]()),_0x338ee9=(_0x11dff4,_0x50d217)=>{var _0x14d3e1=_0x178332;if(_0x50d217===s[_0x14d3e1(0x26f)][_0x14d3e1(0x1f9)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x11dff4){case s[_0x14d3e1(0x23a)][_0x14d3e1(0x316)]:return _0x14d3e1(0x21a);case s[_0x14d3e1(0x23a)][_0x14d3e1(0x268)]:case s[_0x14d3e1(0x23a)][_0x14d3e1(0x2f6)]:return _0x14d3e1(0x28a);case s[_0x14d3e1(0x23a)][_0x14d3e1(0x269)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x14d3e1(0x37d);}},_0x4d6ae6=(_0x3d756e,_0x38e9f3)=>{var _0x151c41=_0x178332;if(_0x38e9f3===s[_0x151c41(0x26f)][_0x151c41(0x1f9)])return _0x151c41(0x289);switch(_0x3d756e){case s[_0x151c41(0x23a)][_0x151c41(0x316)]:return'univer-bg-green-500';case s['MCPConnectionStatus'][_0x151c41(0x268)]:case s['MCPConnectionStatus'][_0x151c41(0x2f6)]:return _0x151c41(0x31e);case s['MCPConnectionStatus'][_0x151c41(0x269)]:return _0x151c41(0x289);default:return _0x151c41(0x28d);}},_0x22f4c4=_0x13fd2b=>{var _0x1bd3ed=_0x178332;switch(_0x13fd2b){case s[_0x1bd3ed(0x23a)][_0x1bd3ed(0x316)]:return _0x4fb751['t'](_0x1bd3ed(0x2f8));case s[_0x1bd3ed(0x23a)]['CONNECTING']:return _0x4fb751['t'](_0x1bd3ed(0x302));case s[_0x1bd3ed(0x23a)][_0x1bd3ed(0x269)]:return _0x4fb751['t'](_0x1bd3ed(0x24d));case s[_0x1bd3ed(0x23a)][_0x1bd3ed(0x2f6)]:return _0x4fb751['t']('mcpConfig.connectionStatus.retrying');default:return _0x4fb751['t']('mcpConfig.connectionStatus.disconnected');}},_0x4602a9=_0x31d83c=>{var _0x48e4c4=_0x178332;switch(_0x31d83c){case s[_0x48e4c4(0x26f)][_0x48e4c4(0x1f9)]:return _0x4fb751['t'](_0x48e4c4(0x303));case s[_0x48e4c4(0x26f)]['SESSION_ID_OCCUPIED']:return _0x4fb751['t'](_0x48e4c4(0x240));case s[_0x48e4c4(0x26f)][_0x48e4c4(0x26d)]:return _0x4fb751['t'](_0x48e4c4(0x318));case s[_0x48e4c4(0x26f)]['MAX_RETRIES_EXCEEDED']:return _0x4fb751['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x11a600=d['useCallback'](()=>{var _0x2d2bf7=_0x178332;const _0x792a2d={..._0x23c1df,'apiKey':_0x38acba[_0x2d2bf7(0x1fa)](),'enableAuth':_0x37771b};_0x12310a(_0x792a2d);},[_0x23c1df,_0x38acba,_0x37771b,_0x12310a]),_0x353216=_0x38acba['trim']()[_0x178332(0x2c3)]>0x0;return i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x24f),'children':[i[_0x178332(0x34a)](_0x178332(0x254),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':i[_0x178332(0x360)]('div',{'className':_0x178332(0x2d2),'children':[i['jsx'](_0x178332(0x254),{'className':_0x178332(0x364),'children':i[_0x178332(0x34a)](_0x178332(0x354),{'className':'univer-text-white','children':'⚙'})}),i['jsx'](_0x178332(0x254),{'children':i[_0x178332(0x34a)]('p',{'className':_0x178332(0x28b),'children':_0x4fb751['t'](_0x178332(0x279))})})]})}),i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x2bd),'children':[i['jsx']('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x338ee9(_0x20ebba,_0x22a18c)+_0x178332(0x233),'children':i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x243),'children':[i[_0x178332(0x34a)](_0x178332(0x254),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4d6ae6(_0x20ebba,_0x22a18c)+_0x178332(0x310)}),i[_0x178332(0x34a)](_0x178332(0x354),{'className':_0x178332(0x2e3),'children':_0x22f4c4(_0x20ebba)})]})}),_0x22a18c!==s[_0x178332(0x26f)]['NONE']&&(_0x20ebba===s[_0x178332(0x23a)][_0x178332(0x269)]||_0x22a18c===s[_0x178332(0x26f)][_0x178332(0x1f9)])&&i[_0x178332(0x34a)](_0x178332(0x254),{'className':_0x178332(0x2d8),'children':i[_0x178332(0x360)](_0x178332(0x254),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x178332(0x34a)](_0x178332(0x354),{'className':_0x178332(0x341),'children':'⚠️'}),i[_0x178332(0x34a)]('p',{'className':_0x178332(0x314),'children':_0x4602a9(_0x22a18c)})]})})]}),i[_0x178332(0x34a)](_0x178332(0x254),{'className':_0x178332(0x232),'children':i[_0x178332(0x360)](_0x178332(0x254),{'className':'univer-space-y-5','children':[i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x2a9),'children':[i['jsxs'](_0x178332(0x352),{'className':_0x178332(0x230),'children':[i[_0x178332(0x34a)](_0x178332(0x354),{'children':'🔑'}),'\x20',_0x4fb751['t'](_0x178332(0x335)),i[_0x178332(0x34a)]('span',{'className':'univer-text-red-500','children':'*'}),_0x2d3839&&i['jsx']('a',{'href':_0x178332(0x2e5),'onClick':()=>_0x587d21(!0x0),'className':_0x178332(0x2d7),'title':_0x4fb751['t'](_0x178332(0x291)),'children':i[_0x178332(0x34a)](H,{})})]}),i[_0x178332(0x34a)](P[_0x178332(0x278)],{'type':_0x178332(0x2e7),'placeholder':_0x4fb751['t'](_0x178332(0x255)),'value':_0x38acba,'onChange':_0x546a53,'disabled':_0x312104,'autoComplete':_0x178332(0x37a)}),i['jsx']('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4fb751['t'](_0x178332(0x342))})]}),_0x2d3839&&_0x2170e1&&i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x21b),'children':[i['jsx']('a',{'href':_0x178332(0x2e5),'onClick':()=>_0x587d21(!0x1),'className':_0x178332(0x231),'title':_0x178332(0x266),'children':i[_0x178332(0x34a)](F,{})}),i[_0x178332(0x360)]('div',{'className':_0x178332(0x37f),'children':[i[_0x178332(0x34a)](_0x178332(0x254),{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i['jsx'](_0x178332(0x354),{'className':_0x178332(0x2ca),'children':'🚀'})}),i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x1eb),'children':[i['jsx']('h4',{'className':_0x178332(0x30a),'children':_0x4fb751['t'](_0x178332(0x291))}),i['jsx']('p',{'className':_0x178332(0x239),'children':_0x4fb751['t'](_0x178332(0x214))}),i[_0x178332(0x34a)]('div',{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x2d8022&&i[_0x178332(0x360)]('a',{'href':_0xae531e,'target':_0x178332(0x208),'rel':_0x178332(0x2e2),'className':_0x178332(0x242),'children':[i[_0x178332(0x34a)](_0x178332(0x354),{'children':'🤖'}),_0x4fb751['t'](_0x178332(0x2a4)),i['jsx'](_0x178332(0x354),{'className':'univer-text-gray-400','children':'↗'})]})}),i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x33e),'children':['✨','\x20',_0x4fb751['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x1c26a9[_0x178332(0x217)]&&i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x23e),'children':[i[_0x178332(0x360)]('h4',{'className':_0x178332(0x227),'children':[i[_0x178332(0x34a)](_0x178332(0x354),{'children':'🔗'}),'\x20',_0x4fb751['t'](_0x178332(0x22e))]}),i['jsxs'](_0x178332(0x254),{'className':'univer-space-y-4','children':[i['jsxs']('div',{'className':_0x178332(0x348),'children':[i[_0x178332(0x34a)]('p',{'className':_0x178332(0x236),'children':_0x4fb751['t'](_0x178332(0x25f))}),i['jsxs'](_0x178332(0x254),{'className':_0x178332(0x2a9),'children':[i[_0x178332(0x34a)](_0x178332(0x254),{'className':_0x178332(0x363),'children':_0x4fb751['t'](_0x178332(0x381))}),i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x276),'children':[i[_0x178332(0x360)](_0x178332(0x254),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x178332(0x34a)](_0x178332(0x354),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x4fb751['t']('mcpConfig.configStep1')]}),i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x243),'children':[i['jsx'](_0x178332(0x354),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x4fb751['t']('mcpConfig.configStep2')]}),i[_0x178332(0x360)]('div',{'className':_0x178332(0x243),'children':[i[_0x178332(0x34a)](_0x178332(0x354),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x4fb751['t']('mcpConfig.configStep3')]})]})]})]}),i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x2a9),'children':[i[_0x178332(0x34a)](_0x178332(0x254),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x178332(0x2d0)}),i[_0x178332(0x34a)]('div',{'className':_0x178332(0x290),'children':i[_0x178332(0x34a)](_0x178332(0x34e),{'className':_0x178332(0x246),'children':_0x178332(0x22a)+_0x1a60fb+_0x178332(0x35d)+(_0x38acba||_0x178332(0x2ef))+_0x178332(0x20f)})})]}),i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x348),'children':[i[_0x178332(0x34a)]('div',{'className':_0x178332(0x363),'children':_0x4fb751['t'](_0x178332(0x1ef))}),i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x2a9),'children':[i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x2d4),'children':[i['jsx'](_0x178332(0x254),{'className':_0x178332(0x2ae)}),i['jsxs'](_0x178332(0x254),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x178332(0x34a)](_0x178332(0x254),{'className':_0x178332(0x29b),'children':'univer_session_id:'}),i[_0x178332(0x34a)](_0x178332(0x254),{'className':_0x178332(0x35f),'children':_0x4fb751['t'](_0x178332(0x274))})]})]}),i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x2d4),'children':[i['jsx'](_0x178332(0x254),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x178332(0x360)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x178332(0x34a)](_0x178332(0x254),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x178332(0x301)}),i[_0x178332(0x34a)](_0x178332(0x254),{'className':_0x178332(0x35f),'children':_0x4fb751['t'](_0x178332(0x319))})]})]})]})]})]})]}),i['jsx'](P['Button'],{'onClick':_0x11a600,'disabled':!_0x353216||_0x312104,'className':_0x178332(0x1ec),'children':_0x312104?i[_0x178332(0x360)](_0x178332(0x354),{'className':_0x178332(0x243),'children':[i[_0x178332(0x34a)](_0x178332(0x354),{'children':'⟲'}),_0x4fb751['t'](_0x178332(0x2a2))]}):i[_0x178332(0x360)](_0x178332(0x354),{'className':_0x178332(0x243),'children':[i[_0x178332(0x34a)](V,{}),_0x4fb751['t'](_0x178332(0x2b2))]})}),i[_0x178332(0x34a)](_0x178332(0x254),{'className':_0x178332(0x27c),'children':i['jsxs']('div',{'className':_0x178332(0x2c6),'children':[i[_0x178332(0x34a)]('span',{'className':_0x178332(0x349),'children':'💡'}),i[_0x178332(0x360)](_0x178332(0x254),{'className':_0x178332(0x2dc),'children':[i[_0x178332(0x34a)](_0x178332(0x254),{'className':'univer-font-medium','children':_0x178332(0x2b4)}),i[_0x178332(0x360)](_0x178332(0x254),{'children':['•',_0x4fb751['t'](_0x178332(0x311))]}),i[_0x178332(0x360)]('div',{'children':['•',_0x4fb751['t'](_0x178332(0x277))]})]})]})})]})})]});}const D=_0x523845(0x340),G={'showDeveloperTools':!0x1};var Pe=Object[_0x523845(0x24a)],Se=(_0x5b7158,_0x43fc05,_0x4fc1b4,_0x23cd10)=>{var _0x1b0f59=_0x523845;for(var _0x74b440=_0x23cd10>0x1?void 0x0:_0x23cd10?Pe(_0x43fc05,_0x4fc1b4):_0x43fc05,_0xada77c=_0x5b7158[_0x1b0f59(0x2c3)]-0x1,_0x31bfdf;_0xada77c>=0x0;_0xada77c--)(_0x31bfdf=_0x5b7158[_0xada77c])&&(_0x74b440=_0x31bfdf(_0x74b440)||_0x74b440);return _0x74b440;},f=(_0xd1d381,_0x5831fd)=>(_0xc258b,_0x2f8ed8)=>_0x5831fd(_0xc258b,_0x2f8ed8,_0xd1d381);const A=_0x523845(0x369),O='mcp-config-dialog';exports[_0x523845(0x30d)]=class extends u[_0x523845(0x308)]{constructor(_0xcc1c95,_0x1f8f6c,_0x2ba311,_0x31215a,_0xa12015,_0x4f4d27,_0x5ae71e,_0xdd8a7f,_0xc89bd2,_0x284d90){var _0x220720=_0x523845;super(),y(this,'_loading$',new M['BehaviorSubject'](!0x1)),y(this,_0x220720(0x33c),new M[(_0x220720(0x2ce))]({})),y(this,_0x220720(0x203),new M['BehaviorSubject']({})),y(this,'_apiKey$',new M[(_0x220720(0x2ce))]('')),y(this,_0x220720(0x25c),async _0x19fbb7=>{var _0x5303d9=_0x220720,_0x5c2490,_0x293591;this[_0x5303d9(0x2cc)][_0x5303d9(0x248)](!0x0);try{const _0x1cb54a=await this[_0x5303d9(0x284)](_0x19fbb7);if(!_0x1cb54a[_0x5303d9(0x36c)]){this[_0x5303d9(0x25e)][_0x5303d9(0x283)]({'type':P[_0x5303d9(0x36f)][_0x5303d9(0x2f0)],'content':_0x1cb54a[_0x5303d9(0x26e)]||this[_0x5303d9(0x29f)]['t'](_0x5303d9(0x272))});return;}_0x19fbb7[_0x5303d9(0x226)]?await this[_0x5303d9(0x372)][_0x5303d9(0x332)](A,_0x19fbb7['apiKey'][_0x5303d9(0x1fa)]()):await this[_0x5303d9(0x372)][_0x5303d9(0x330)](A),this[_0x5303d9(0x336)]['next'](((_0x5c2490=_0x19fbb7[_0x5303d9(0x226)])==null?void 0x0:_0x5c2490[_0x5303d9(0x1fa)]())||''),this[_0x5303d9(0x27a)][_0x5303d9(0x286)]({'Authorization':_0x5303d9(0x35a)+((_0x293591=_0x19fbb7[_0x5303d9(0x226)])==null?void 0x0:_0x293591['trim']())}),this['_messageService']['show']({'type':P[_0x5303d9(0x36f)]['Success'],'content':this[_0x5303d9(0x29f)]['t'](_0x5303d9(0x223))}),setTimeout(()=>{var _0x30b690=_0x5303d9;this[_0x30b690(0x2d6)][_0x30b690(0x299)](O);},0x320);}catch(_0x392fe1){this[_0x5303d9(0x37e)]['error'](_0x5303d9(0x33a),_0x392fe1),this[_0x5303d9(0x25e)][_0x5303d9(0x283)]({'type':P[_0x5303d9(0x36f)][_0x5303d9(0x2f0)],'content':this[_0x5303d9(0x29f)]['t'](_0x5303d9(0x2f1))});}finally{this[_0x5303d9(0x2cc)]['next'](!0x1);}}),(this[_0x220720(0x329)]=_0xcc1c95,this['_uiPartsService']=_0x1f8f6c,this[_0x220720(0x2ad)]=_0x2ba311,this[_0x220720(0x372)]=_0x31215a,this[_0x220720(0x2d6)]=_0xa12015,this[_0x220720(0x25e)]=_0x4f4d27,this[_0x220720(0x333)]=_0x5ae71e,this['_localeService']=_0xdd8a7f,this[_0x220720(0x37e)]=_0xc89bd2,this['_mcpConnectionController']=_0x284d90,this[_0x220720(0x216)](),this[_0x220720(0x323)](),this[_0x220720(0x358)]());}['showConfigPanel'](){var _0x11ffc2=_0x523845;this[_0x11ffc2(0x2d6)][_0x11ffc2(0x260)]({'id':O,'title':{'title':this[_0x11ffc2(0x29f)]['t'](_0x11ffc2(0x34b))},'children':{'label':_0x11ffc2(0x2fc)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x183423=_0x11ffc2;this[_0x183423(0x2d6)][_0x183423(0x299)](O);}});}[_0x523845(0x365)](){var _0x230b12=_0x523845;return this[_0x230b12(0x33c)][_0x230b12(0x26b)];}[_0x523845(0x358)](){var _0x33025d=_0x523845;this[_0x33025d(0x244)](this[_0x33025d(0x333)][_0x33025d(0x253)](_0x33025d(0x2fc),this[_0x33025d(0x29c)]()));}[_0x523845(0x29c)](){var _0x450a1a=_0x523845;return v[_0x450a1a(0x285)](()=>{var _0xe01745=_0x450a1a,_0x32ee43,_0xf2621a,_0x36fb48;return i[_0xe01745(0x34a)](W,{'config':this[_0xe01745(0x203)][_0xe01745(0x26b)],'mcpCoreConfig':this[_0xe01745(0x33c)][_0xe01745(0x26b)],'currentApiKey$':this[_0xe01745(0x336)],'onSave':this[_0xe01745(0x25c)],'loading':this['_loading$'][_0xe01745(0x26b)],'connectionStatus$':(_0x32ee43=this[_0xe01745(0x27a)])==null?void 0x0:_0x32ee43[_0xe01745(0x2a0)],'connectionError$':(_0xf2621a=this[_0xe01745(0x27a)])==null?void 0x0:_0xf2621a[_0xe01745(0x215)],'currentSessionId$':(_0x36fb48=this[_0xe01745(0x27a)])==null?void 0x0:_0x36fb48[_0xe01745(0x2b0)]});},this[_0x450a1a(0x329)]);}[_0x523845(0x216)](){var _0x2a56af=_0x523845;this['disposeWithMe'](this['_configService']['subscribeConfigValue$'](s[_0x2a56af(0x2ec)])['subscribe'](_0x2ea609=>{var _0x3f68d8=_0x2a56af;this[_0x3f68d8(0x33c)]['next'](_0x2ea609||{});}));const _0x40bf3a=this['_configService']['getConfig'](s['MCP_PLUGIN_CONFIG_KEY']);this[_0x2a56af(0x33c)][_0x2a56af(0x248)](_0x40bf3a||{}),this['disposeWithMe'](this[_0x2a56af(0x2ad)][_0x2a56af(0x259)](D)[_0x2a56af(0x293)](_0x50f070=>{var _0x1948c5=_0x2a56af;this[_0x1948c5(0x203)][_0x1948c5(0x248)](_0x50f070||{});}));const _0xb5be0b=this[_0x2a56af(0x2ad)][_0x2a56af(0x36d)](D);this['_config$'][_0x2a56af(0x248)](_0xb5be0b||{});}async[_0x523845(0x323)](){var _0x48a794=_0x523845;const _0x155a0f=await this[_0x48a794(0x372)][_0x48a794(0x23b)](A);_0x155a0f&&(this[_0x48a794(0x27a)][_0x48a794(0x286)]({'Authorization':_0x48a794(0x35a)+_0x155a0f}),this[_0x48a794(0x336)][_0x48a794(0x248)](_0x155a0f));}async[_0x523845(0x284)](_0xbe9d0a){var _0x2f4085=_0x523845;if(!_0xbe9d0a[_0x2f4085(0x226)]||_0xbe9d0a[_0x2f4085(0x226)][_0x2f4085(0x1fa)]()[_0x2f4085(0x2c3)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2f4085(0x32f))};if(_0xbe9d0a['apiKey'][_0x2f4085(0x1fa)]()[_0x2f4085(0x2c3)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2f4085(0x29f)]['t'](_0x2f4085(0x25d))};try{const _0x43072f=await this[_0x2f4085(0x329)]['get'](s[_0x2f4085(0x2c0)])[_0x2f4085(0x2f3)](_0xbe9d0a[_0x2f4085(0x226)][_0x2f4085(0x1fa)]());return _0x43072f['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x43072f[_0x2f4085(0x292)]||this[_0x2f4085(0x29f)]['t'](_0x2f4085(0x27e))};}catch(_0x20cc70){return console[_0x2f4085(0x32e)](_0x2f4085(0x2a1),_0x20cc70),{'isValid':!0x0};}}},exports[_0x523845(0x30d)]=Se([f(0x0,u['Inject'](u[_0x523845(0x29e)])),f(0x1,v['IUIPartsService']),f(0x2,u[_0x523845(0x234)]),f(0x3,u['ILocalStorageService']),f(0x4,v[_0x523845(0x2b7)]),f(0x5,v[_0x523845(0x2a7)]),f(0x6,u[_0x523845(0x357)](v['ComponentManager'])),f(0x7,u['Inject'](u[_0x523845(0x1f7)])),f(0x8,u['ILogService']),f(0x9,u[_0x523845(0x357)](s[_0x523845(0x2c0)]))],exports['MCPConfigUIController']);const N={'id':_0x523845(0x249),'type':u[_0x523845(0x344)][_0x523845(0x2aa)],'handler':async(_0x1e9734,_0x4efcc7)=>(_0x1e9734[_0x523845(0x1f2)](exports[_0x523845(0x30d)])[_0x523845(0x273)](),!0x0)};function Z(_0x2a6dd4,_0x2d276e){var _0x175b4e=_0x523845;switch(_0x2a6dd4){case s[_0x175b4e(0x23a)]['DISCONNECTED']:return _0x175b4e(0x2b9);case s['MCPConnectionStatus'][_0x175b4e(0x268)]:return _0x175b4e(0x370);case s[_0x175b4e(0x23a)]['CONNECTED']:return _0x175b4e(0x222);case s[_0x175b4e(0x23a)][_0x175b4e(0x269)]:switch(_0x2d276e){case s[_0x175b4e(0x26f)][_0x175b4e(0x1f9)]:return _0x175b4e(0x324);case s[_0x175b4e(0x26f)][_0x175b4e(0x2c1)]:return _0x175b4e(0x377);case s['MCPConnectionError'][_0x175b4e(0x26d)]:return _0x175b4e(0x2c7);case s['MCPConnectionError'][_0x175b4e(0x282)]:return'mcpStatus.maxRetriesExceeded';default:return _0x175b4e(0x2f2);}case s[_0x175b4e(0x23a)][_0x175b4e(0x2f6)]:return _0x175b4e(0x2ba);default:return _0x175b4e(0x25b);}}function _0x1ffb(_0x49645d,_0x403f7c){var _0x517fb7=_0x517f();return _0x1ffb=function(_0x1ffbc6,_0x17ed4b){_0x1ffbc6=_0x1ffbc6-0x1ea;var _0x554fa8=_0x517fb7[_0x1ffbc6];return _0x554fa8;},_0x1ffb(_0x49645d,_0x403f7c);}function ye(_0x183e90,_0x254ba7,_0x23ca4e){var _0x36a959=_0x523845;const _0x4dd736=Z(_0x183e90,_0x254ba7),_0x12b1ec=_0x23ca4e['t'](_0x4dd736);return _0x183e90===s[_0x36a959(0x23a)][_0x36a959(0x281)]&&_0x254ba7===s[_0x36a959(0x26f)]['INVALID_API_KEY']?_0x12b1ec+'\x20-\x20'+_0x23ca4e['t'](_0x36a959(0x2eb)):_0x183e90===s[_0x36a959(0x23a)]['CONNECTED']?''+_0x12b1ec:_0x183e90===s[_0x36a959(0x23a)][_0x36a959(0x281)]||_0x183e90===s[_0x36a959(0x23a)][_0x36a959(0x269)]?_0x12b1ec+_0x36a959(0x2b5)+_0x23ca4e['t']('mcpStatus.clickToConnect'):_0x12b1ec;}function Ie(_0x4c0a68){var _0x49e762=_0x523845;switch(_0x4c0a68){case s[_0x49e762(0x23a)][_0x49e762(0x316)]:return'univer-text-green-500';case s[_0x49e762(0x23a)][_0x49e762(0x268)]:case s['MCPConnectionStatus'][_0x49e762(0x2f6)]:return _0x49e762(0x35e);case s[_0x49e762(0x23a)][_0x49e762(0x269)]:case s[_0x49e762(0x23a)][_0x49e762(0x281)]:return _0x49e762(0x2bb);default:return'univer-text-gray-500';}}function X(_0x1383e5){var _0x1d5d75=_0x523845;const {status$:_0x49ba0d,error$:_0x35cf6e,onConfigure:_0x52071f}=_0x1383e5,_0x488809=v['useObservable'](_0x49ba0d,s[_0x1d5d75(0x23a)][_0x1d5d75(0x281)]),_0x195885=v[_0x1d5d75(0x2d5)](_0x35cf6e,s['MCPConnectionError'][_0x1d5d75(0x218)]),_0x55b8dc=v[_0x1d5d75(0x229)](u['LocaleService']),_0x25ee5e=_0x488809===s['MCPConnectionStatus'][_0x1d5d75(0x316)],_0x40ebde=_0x488809===s['MCPConnectionStatus'][_0x1d5d75(0x268)]||_0x488809===s[_0x1d5d75(0x23a)][_0x1d5d75(0x2f6)],_0x58ba38=_0x55b8dc['t'](Z(_0x488809,_0x195885)),_0x5cf7be=ye(_0x488809,_0x195885,_0x55b8dc),_0x35ece0=Ie(_0x488809),_0x262f7d=_0x25ee5e?i[_0x1d5d75(0x34a)](z,{}):i[_0x1d5d75(0x34a)](q,{}),_0x5c924b=d['useCallback'](()=>{_0x52071f&&_0x52071f();},[_0x25ee5e,_0x40ebde,_0x52071f]);function _0x40a85c(){var _0x3cfc11=_0x1d5d75;return i[_0x3cfc11(0x360)]('div',{'className':P[_0x3cfc11(0x294)](_0x3cfc11(0x2be),_0x52071f&&_0x3cfc11(0x2ff)),'onClick':_0x52071f?_0x5c924b:void 0x0,'children':[i[_0x3cfc11(0x34a)](_0x3cfc11(0x254),{'className':P[_0x3cfc11(0x294)](_0x3cfc11(0x321),_0x35ece0),'children':_0x262f7d}),i['jsx']('div',{'className':_0x3cfc11(0x312),'children':_0x58ba38})]});}return i[_0x1d5d75(0x34a)](P[_0x1d5d75(0x2ac)],{'title':_0x5cf7be,'placement':_0x1d5d75(0x241),'children':_0x40a85c()});}var _e=Object[_0x523845(0x24a)],Me=(_0x4083b9,_0x5bbb7c,_0x26a0c4,_0x1db50d)=>{var _0x31663e=_0x523845;for(var _0x40921a=_0x1db50d>0x1?void 0x0:_0x1db50d?_e(_0x5bbb7c,_0x26a0c4):_0x5bbb7c,_0xf29ac1=_0x4083b9[_0x31663e(0x2c3)]-0x1,_0xaeb9cd;_0xf29ac1>=0x0;_0xf29ac1--)(_0xaeb9cd=_0x4083b9[_0xf29ac1])&&(_0x40921a=_0xaeb9cd(_0x40921a)||_0x40921a);return _0x40921a;},k=(_0x3f1dba,_0x51b135)=>(_0xcaee9,_0xe61149)=>_0x51b135(_0xcaee9,_0xe61149,_0x3f1dba);exports[_0x523845(0x2fb)]=class extends u[_0x523845(0x308)]{constructor(_0x358901,_0x15ac21,_0x57abac){var _0x19894b=_0x523845;super(),this[_0x19894b(0x329)]=_0x358901,this[_0x19894b(0x1ea)]=_0x15ac21,this[_0x19894b(0x31b)]=_0x57abac,this[_0x19894b(0x1ea)][_0x19894b(0x384)]=!0x1,this[_0x19894b(0x2b6)]();}[_0x523845(0x2b6)](){var _0x156455=_0x523845;this[_0x156455(0x244)](this[_0x156455(0x31b)]['registerComponent'](v[_0x156455(0x23d)][_0x156455(0x2a5)],()=>v[_0x156455(0x285)](Ne({'status$':this[_0x156455(0x1ea)][_0x156455(0x2a0)],'error$':this[_0x156455(0x1ea)][_0x156455(0x215)],'onConfigure':()=>this['_handleConfigure']()}),this[_0x156455(0x329)])));}['_handleConfigure'](){var _0x573c97=_0x523845;this[_0x573c97(0x329)][_0x573c97(0x1f2)](exports[_0x573c97(0x30d)])['showConfigPanel']();}},exports[_0x523845(0x2fb)]=Me([k(0x0,u[_0x523845(0x357)](u[_0x523845(0x29e)])),k(0x1,u[_0x523845(0x357)](s[_0x523845(0x2c0)])),k(0x2,v[_0x523845(0x300)])],exports[_0x523845(0x2fb)]);function Ne(_0x151efd){const {status$:_0x379a85,error$:_0x3f2220,onConfigure:_0x557963}=_0x151efd;return function(){var _0x4d2df3=_0x1ffb;return i[_0x4d2df3(0x34a)](X,{'status$':_0x379a85,'error$':_0x3f2220,'onConfigure':_0x557963});};}function be(_0x329135){var _0x550ef5=_0x523845;return{'id':N['id'],'type':v[_0x550ef5(0x211)][_0x550ef5(0x237)],'icon':_0x550ef5(0x2f7),'title':_0x550ef5(0x34b),'tooltip':'mcpConfig.title'};}const je={[v[_0x523845(0x2c5)]['OTHERS']]:{[N['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0x523845(0x24a)],we=(_0x5857a0,_0x59206b,_0x248ced,_0x1aa760)=>{for(var _0x1ecf7d=_0x1aa760>0x1?void 0x0:_0x1aa760?Ee(_0x59206b,_0x248ced):_0x59206b,_0x4c8bf7=_0x5857a0['length']-0x1,_0x2f6b74;_0x4c8bf7>=0x0;_0x4c8bf7--)(_0x2f6b74=_0x5857a0[_0x4c8bf7])&&(_0x1ecf7d=_0x2f6b74(_0x1ecf7d)||_0x1ecf7d);return _0x1ecf7d;},Y=(_0x484c91,_0x3ff851)=>(_0x289006,_0x4d4e8c)=>_0x3ff851(_0x289006,_0x4d4e8c,_0x484c91);exports['MCPUIMenuController']=class extends u[_0x523845(0x308)]{constructor(_0x39b74e,_0x1c45f4){var _0x5c9e41=_0x523845;super(),this['_commandService']=_0x39b74e,this[_0x5c9e41(0x2e0)]=_0x1c45f4,this['_initializeCommands'](),this[_0x5c9e41(0x368)]();}[_0x523845(0x34c)](){[N]['forEach'](_0xc3a164=>{var _0xcd6984=_0x1ffb;this['disposeWithMe'](this[_0xcd6984(0x2cd)][_0xcd6984(0x258)](_0xc3a164));});}[_0x523845(0x368)](){var _0x2a92eb=_0x523845;this[_0x2a92eb(0x2e0)][_0x2a92eb(0x383)](je);}},exports['MCPUIMenuController']=we([Y(0x0,u[_0x523845(0x304)]),Y(0x1,v[_0x523845(0x2f4)])],exports[_0x523845(0x346)]);const Ae={'mcpStatus':{'disconnected':_0x523845(0x262),'connecting':'MCP\x20Connecting...','connected':_0x523845(0x1fc),'failed':_0x523845(0x205),'retrying':_0x523845(0x2a6),'unknown':_0x523845(0x287),'missingApiKey':_0x523845(0x20a),'invalidApiKey':_0x523845(0x21c),'sessionOccupied':_0x523845(0x353),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x523845(0x22b),'clickToConnect':_0x523845(0x27b),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x523845(0x200),'apiKey':_0x523845(0x30f),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x523845(0x24b),'enableAuth':_0x523845(0x31a),'enableAuthHint':_0x523845(0x21f),'connectionInfo':_0x523845(0x334),'mcpClientConfig':_0x523845(0x334),'configInstructions':_0x523845(0x20e),'configStepTitle':_0x523845(0x33d),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x523845(0x375),'configStep3':_0x523845(0x275),'sessionId':_0x523845(0x298),'sessionIdDescription':_0x523845(0x210),'authorizationDescription':_0x523845(0x280),'configParameters':_0x523845(0x263),'maxRetries':'Max\x20Retries','save':_0x523845(0x2c4),'saving':_0x523845(0x378),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x523845(0x28c),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x523845(0x32b),'apiApplyInfo':{'title':_0x523845(0x31f),'description':_0x523845(0x2d3),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x523845(0x1fb)},'validation':{'apiKeyRequired':_0x523845(0x33f),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x523845(0x351),'invalidApiKey':_0x523845(0x1f8)},'connectionStatus':{'disconnected':_0x523845(0x219),'connecting':_0x523845(0x339),'connected':_0x523845(0x313),'failed':'Connection\x20Failed','retrying':_0x523845(0x306)},'connectionError':{'missingApiKey':_0x523845(0x264),'invalidApiKey':_0x523845(0x315),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x523845(0x31d)}}},Oe={'mcpStatus':{'disconnected':_0x523845(0x288),'connecting':_0x523845(0x36a),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x523845(0x2ab),'unknown':_0x523845(0x1ee),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x523845(0x2d9),'sessionOccupied':_0x523845(0x320),'networkError':_0x523845(0x251),'maxRetriesExceeded':_0x523845(0x2b8),'clickToConnect':_0x523845(0x206),'clickToConfigure':_0x523845(0x2a8)},'mcpConfig':{'title':_0x523845(0x261),'description':_0x523845(0x1f1),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x523845(0x2e9),'apiKeyHint':_0x523845(0x362),'enableAuth':'启用身份验证','enableAuthHint':_0x523845(0x20c),'connectionInfo':_0x523845(0x33b),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x523845(0x2bc),'configStepTitle':_0x523845(0x380),'configStep1':_0x523845(0x1f6),'configStep2':_0x523845(0x257),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x523845(0x2af),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x523845(0x235),'maxRetries':_0x523845(0x2df),'save':'保存配置','saving':'保存中...','note1':_0x523845(0x382),'note2':_0x523845(0x309),'configSaved':_0x523845(0x28e),'configError':_0x523845(0x2ea),'apiApplyInfo':{'title':_0x523845(0x30e),'description':_0x523845(0x32c),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x523845(0x207)},'validation':{'apiKeyRequired':_0x523845(0x2ee),'apiKeyTooShort':_0x523845(0x2dd),'invalidConfig':_0x523845(0x325),'invalidApiKey':_0x523845(0x27f)},'connectionStatus':{'disconnected':_0x523845(0x2e4),'connecting':_0x523845(0x361),'connected':_0x523845(0x1fd),'failed':_0x523845(0x271),'retrying':_0x523845(0x317)},'connectionError':{'missingApiKey':_0x523845(0x343),'invalidApiKey':_0x523845(0x2cb),'sessionOccupied':_0x523845(0x30b),'networkError':_0x523845(0x2cf),'maxRetriesExceeded':_0x523845(0x27d)}}};var ke=Object[_0x523845(0x22c)],De=Object[_0x523845(0x24a)],Ke=(_0x10bfee,_0x46e682,_0x2ae8f4)=>_0x46e682 in _0x10bfee?ke(_0x10bfee,_0x46e682,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ae8f4}):_0x10bfee[_0x46e682]=_0x2ae8f4,Ue=(_0x288144,_0x2cc6e5,_0x374ee5,_0x3febe5)=>{for(var _0x1d8b0a=_0x3febe5>0x1?void 0x0:_0x3febe5?De(_0x2cc6e5,_0x374ee5):_0x2cc6e5,_0xe6be3c=_0x288144['length']-0x1,_0x49f518;_0xe6be3c>=0x0;_0xe6be3c--)(_0x49f518=_0x288144[_0xe6be3c])&&(_0x1d8b0a=_0x49f518(_0x1d8b0a)||_0x1d8b0a);return _0x1d8b0a;},_=(_0x5b01ce,_0x4f54c5)=>(_0x3cc866,_0x218145)=>_0x4f54c5(_0x3cc866,_0x218145,_0x5b01ce),Te=(_0x44c795,_0x5191a0,_0x2deebd)=>Ke(_0x44c795,_0x5191a0+'',_0x2deebd);exports[_0x523845(0x2e6)]=class extends u[_0x523845(0x32d)]{constructor(_0xca4024=G,_0x9b94b4,_0x42952f,_0x2078c0,_0xc4a10a,_0x2832a3){var _0xc57d85=_0x523845;super(),this['_config']=_0xca4024,this[_0xc57d85(0x329)]=_0x9b94b4,this[_0xc57d85(0x2ad)]=_0x42952f,this['_uiPartsService']=_0x2078c0,this[_0xc57d85(0x372)]=_0xc4a10a,this['_localeService']=_0x2832a3;const {..._0x165bbd}=u['merge']({},G,this[_0xc57d85(0x1f3)]);this[_0xc57d85(0x2ad)][_0xc57d85(0x22f)](D,_0x165bbd);}async[_0x523845(0x2e8)](){var _0x58b3c8=_0x523845;const _0x4356d5=[[exports['MCPConnectionUIController']],[exports['MCPConfigUIController']],[exports['MCPUIMenuController']]];this[_0x58b3c8(0x329)]['has'](w[_0x58b3c8(0x331)])||_0x4356d5[_0x58b3c8(0x32a)]([w[_0x58b3c8(0x331)],{'useClass':w[_0x58b3c8(0x347)]}]),_0x4356d5[_0x58b3c8(0x34d)](_0x51c377=>this[_0x58b3c8(0x329)]['add'](_0x51c377)),this['_injector'][_0x58b3c8(0x1f2)](exports[_0x58b3c8(0x2fb)]),this[_0x58b3c8(0x329)][_0x58b3c8(0x1f2)](exports['MCPConfigUIController']),this[_0x58b3c8(0x329)][_0x58b3c8(0x1f2)](exports[_0x58b3c8(0x346)]);}},Te(exports[_0x523845(0x2e6)],_0x523845(0x225),_0x523845(0x305)),exports['UniverMCPUIPlugin']=Ue([u[_0x523845(0x296)](s['UniverMCPPlugin']),_(0x1,u[_0x523845(0x357)](u['Injector'])),_(0x2,u[_0x523845(0x234)]),_(0x3,v[_0x523845(0x300)]),_(0x4,u[_0x523845(0x2db)]),_(0x5,u['Inject'](u['LocaleService']))],exports[_0x523845(0x2e6)]),exports[_0x523845(0x2fc)]=W,exports['MCPStatusDisplay']=X,exports['OpenMCPConfigPanelCommand']=N,exports[_0x523845(0x36e)]=Ae,exports[_0x523845(0x30c)]=Oe;function _0x517f(){var _0x342277=['mcpConfig.connectionStatus.connecting','mcpConfig.connectionError.invalidApiKey','ICommandService','MCP_UI_PLUGIN','Retrying...','CloseSmallSingle','Disposable','您的\x20API\x20密钥安全存储在本地存储中','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','会话当前被占用,请稍后再试','zhCN','MCPConfigUIController','什么是\x20API\x20密钥?','API\x20Key','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.note1','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Connected','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','CONNECTED','重连中...','mcpConfig.connectionError.networkError','mcpConfig.authorizationDescription','Enable\x20Authentication','_uiPartsService','idSuffix','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-bg-blue-500','What\x20is\x20API\x20Key?','MCP:\x20会话被占用','univer-mr-2\x20univer-flex\x20univer-text-xl','url(#on-line-icon_clip0_910_349)','_loadStoredApiKey','mcpStatus.invalidApiKey','配置无效','string','https://console.univer.plus','indexOf','_injector','push','Failed\x20to\x20save\x20configuration','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Plugin','warn','mcpConfig.validation.apiKeyRequired','removeItem','ISocketService','setItem','_componentManager','MCP\x20Client\x20Configuration','mcpConfig.apiKey','_apiKey$','prototype','useState','Connecting...','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP\x20客户端配置','_mcpCoreConfig$','Configuration\x20Steps:','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','API\x20key\x20is\x20required','mcp-ui.config','univer-flex-shrink-0\x20univer-text-red-500','mcpConfig.apiKeyHint','需要\x20API\x20密钥才能连接','CommandType','svg','MCPUIMenuController','WebSocketService','univer-space-y-3','univer-flex-shrink-0\x20univer-text-blue-500','jsx','mcpConfig.title','_initializeCommands','forEach','pre','evenodd','univerjs-icon\x20univerjs-icon-','Invalid\x20configuration','label','MCP:\x20Session\x20Occupied','span','0\x200\x2017\x2016','https://console.univer.ai','Inject','_registerComponent','propertyIsEnumerable','Bearer\x20','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','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','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','univer-text-yellow-500','univer-text-xs\x20univer-text-gray-500','jsxs','连接中...','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','getCurrentConfig','http://www.w3.org/2000/svg','HelpSingle','_initializeMenus','mcp.apiKey','MCP\x20连接中...','use','isValid','getConfig','enUS','MessageType','mcpStatus.connecting','includes','_localStorageService','68920lEJPQH','random','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','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','mcpStatus.sessionOccupied','Saving...','defs','off','currentColor','forwardRef','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_logService','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','配置步骤:','mcpConfig.configStepTitle','配置更改将立即生效','mergeMenu','enableAutoConnect','_connectionController','univer-flex-1','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','27pWFSZt','MCP\x20状态未知','mcpConfig.configParameters','0\x200\x2017\x2017','配置\x20MCP\x20使用\x20AI\x20操作电子表格','get','_config','1em','entries','复制以下\x20JSON\x20配置','LocaleService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','INVALID_API_KEY','trim','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','已连接','tag','OnLineIcon','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','substring','createElement','_config$','path','MCP\x20Connection\x20Failed','点击连接\x20MCP','几秒钟内获取您的\x20API\x20密钥','_blank','white','MCP:\x20API\x20Key\x20Missing','mcpServerUrl','启用身份验证以获得安全连接','icon','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MenuItemType','0\x200\x2016\x2016','fill','mcpConfig.apiApplyInfo.description','connectionError$','_initConfigSync','showDeveloperTools','NONE','Disconnected','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','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','MCP:\x20Invalid\x20API\x20Key','458888lyIkXl','useRef','Enable\x20authentication\x20for\x20secure\x20connections','function','assign','mcpStatus.connected','mcpConfig.configSaved','clipPath','pluginName','apiKey','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','none','useDependency','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','MCP:\x20Max\x20Retries\x20Exceeded','defineProperty','mask','mcpConfig.connectionInfo','setConfig','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','IConfigService','配置参数:','univer-text-xs\x20univer-text-gray-600','BUTTON','extend','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','MCPConnectionStatus','getItem','toStringTag','BuiltInUIPart','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','url(#$1','mcpConfig.connectionError.sessionOccupied','bottom','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-flex\x20univer-items-center\x20univer-gap-2','disposeWithMe','2502675stdPex','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','130266PNLfkj','next','mcp-ui.command.openConfigPanel','getOwnPropertyDescriptor','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','concat','mcpConfig.connectionStatus.failed','toString','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','30vGKyfJ','MCP:\x20网络错误','current','register','div','mcpConfig.apiKeyPlaceholder','961388pXcbFP','将配置添加到您的\x20MCP\x20客户端设置文件中','registerCommand','subscribeConfigValue$','xlink:href','mcpStatus.unknown','_handleConfigSave','mcpConfig.validation.apiKeyTooShort','_messageService','mcpConfig.configInstructions','open','MCP\x20配置','MCP\x20Disconnected','Configuration\x20Parameters:','API\x20key\x20is\x20required\x20to\x20connect','hasOwnProperty','Close','defIds','CONNECTING','FAILED','colorChannel1','value','map','NETWORK_ERROR','errorMessage','MCPConnectionError','className','连接失败','mcpConfig.validation.invalidConfig','showConfigPanel','mcpConfig.sessionIdDescription','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.note2','Input','mcpConfig.description','_mcpConnectionController','Click\x20to\x20connect\x20MCP','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','超出最大重试次数,请稍后再试','mcpConfig.validation.invalidApiKey','API\x20密钥无效,请检查密钥是否正确','API\x20key\x20with\x20Bearer\x20prefix.','DISCONNECTED','MAX_RETRIES_EXCEEDED','show','_validateConfig','connectInjector','__setCustomHeaders','MCP\x20Unknown\x20Status','MCP\x20已断开','univer-bg-red-500','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-text-sm\x20univer-text-gray-500','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-bg-gray-500','配置保存成功','Module','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.apiApplyInfo.title','error','subscribe','clsx','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','DependentOn','3ljvZdf','Session\x20ID','close','getOwnPropertySymbols','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_createConfigPanelComponent','help-single','Injector','_localeService','connectionStatus$','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.saving','call','mcpConfig.apiApplyInfo.univerAiLabel','HEADER_MENU','MCP\x20Retrying...','IMessageService','点击配置\x20MCP','univer-space-y-2','COMMAND','MCP\x20重连中...','Tooltip','_configService','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','sessionId$','12256RTFSuf','mcpConfig.save','children','Configuration\x20Notes:','\x20-\x20','_initStatusComponent','IDialogService','MCP:\x20超出最大重试次数','mcpStatus.disconnected','mcpStatus.retrying','univer-text-red-500','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-flex\x20univer-cursor-pointer\x20univer-items-center','url(#off-line-icon_clip0_910_343)','MCPConnectionController','SESSION_ID_OCCUPIED','symbol','length','Save\x20Configuration','RibbonStartGroup','univer-flex\x20univer-gap-3','mcpStatus.networkError','off-line-icon_clip0_910_343','CheckMarkIcon','univer-text-blue-600','API\x20密钥无效,请检查您的密钥后重试','_loading$','_commandService','BehaviorSubject','网络连接错误,请检查您的网络连接','MCP\x20Configuration','univer.ai','univer-flex\x20univer-items-center\x20univer-gap-3','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-flex\x20univer-items-start\x20univer-gap-3','useObservable','_dialogService','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP:\x20无效的\x20API\x20密钥','displayName','ILocalStorageService','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','API\x20密钥长度至少需要\x2010\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','最大重试次数','_menuManagerService','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','noopener\x20noreferrer','univer-text-sm\x20univer-font-medium','未连接','javascript:void(0)','UniverMCPUIPlugin','text','onStarting','请输入您的\x20API\x20密钥','配置保存失败','mcpStatus.clickToConfigure','MCP_PLUGIN_CONFIG_KEY','on-line-icon_clip0_910_349','API\x20密钥不能为空','<API_KEY>','Error','mcpConfig.configError','mcpStatus.failed','validateApiKey','IMenuManagerService','round','RETRYING','MenuIcon','mcpConfig.connectionStatus.connected','M0\x200H16V16H0z','M5.21243\x205.62036L11.8791\x2012.287','MCPConnectionUIController','MCPConfigPanel','attrs','167665DPgSjC','hover:univer-opacity-80','IUIPartsService','Authorization:'];_0x517f=function(){return _0x342277;};return _0x517f();}
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x28d183=_0x5053;function _0x5053(_0x5831dc,_0x29b0c9){const _0x1d096f=_0x1d09();return _0x5053=function(_0x50531a,_0x574442){_0x50531a=_0x50531a-0xcc;let _0x42813f=_0x1d096f[_0x50531a];return _0x42813f;},_0x5053(_0x5831dc,_0x29b0c9);}(function(_0x23e502,_0x7eefdc){const _0x5b8514=_0x5053,_0x505e36=_0x23e502();while(!![]){try{const _0x32f684=-parseInt(_0x5b8514(0xd6))/0x1+-parseInt(_0x5b8514(0xce))/0x2*(parseInt(_0x5b8514(0xe7))/0x3)+parseInt(_0x5b8514(0xe1))/0x4+-parseInt(_0x5b8514(0xef))/0x5+-parseInt(_0x5b8514(0xcc))/0x6+parseInt(_0x5b8514(0xde))/0x7*(parseInt(_0x5b8514(0xdd))/0x8)+parseInt(_0x5b8514(0xdb))/0x9;if(_0x32f684===_0x7eefdc)break;else _0x505e36['push'](_0x505e36['shift']());}catch(_0x3e1104){_0x505e36['push'](_0x505e36['shift']());}}}(_0x1d09,0x7ae8a));function _0x1d09(){const _0x2a5c58=['Invalid\x20configuration','API\x20Key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Saving...','API\x20key\x20is\x20required','2718780TaRKaa','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2HtIkhd','Enter\x20your\x20API\x20key','Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Configuration\x20Steps:','Copy\x20the\x20JSON\x20configuration\x20below','75790NRCXez','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Session\x20Occupied','MCP\x20Configuration','3039129KZkjDj','What\x20is\x20API\x20Key?','8mpmwWB','3559367DpzNSo','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','3569844CjVvGq','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration','MCP\x20Connected','Connection\x20Failed','2056566gNQtVr','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','MCP\x20Retrying...','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','Enable\x20Authentication','103735yyvCOp','API\x20key\x20is\x20required\x20to\x20connect','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','MCP:\x20API\x20Key\x20Missing','MCP\x20Unknown\x20Status','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Save\x20Configuration'];_0x1d09=function(){return _0x2a5c58;};return _0x1d09();}const e={'mcpStatus':{'disconnected':_0x28d183(0xf2),'connecting':_0x28d183(0xd3),'connected':_0x28d183(0xe5),'failed':'MCP\x20Connection\x20Failed','retrying':_0x28d183(0xea),'unknown':_0x28d183(0xf4),'missingApiKey':_0x28d183(0xf3),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x28d183(0xd9),'networkError':_0x28d183(0xfb),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x28d183(0xd7)},'mcpConfig':{'title':_0x28d183(0xda),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x28d183(0xf9),'apiKeyPlaceholder':_0x28d183(0xcf),'apiKeyHint':_0x28d183(0xec),'enableAuth':_0x28d183(0xee),'enableAuthHint':_0x28d183(0xf1),'connectionInfo':_0x28d183(0xeb),'mcpClientConfig':_0x28d183(0xeb),'configInstructions':_0x28d183(0xd1),'configStepTitle':_0x28d183(0xd4),'configStep1':_0x28d183(0xd5),'configStep2':_0x28d183(0xe3),'configStep3':_0x28d183(0xe2),'sessionId':'Session\x20ID','sessionIdDescription':_0x28d183(0xcd),'authorizationDescription':_0x28d183(0xdf),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x28d183(0xf7),'saving':_0x28d183(0xfc),'note1':_0x28d183(0xe8),'note2':_0x28d183(0xd8),'configSaved':_0x28d183(0xd2),'configError':_0x28d183(0xe4),'apiApplyInfo':{'title':_0x28d183(0xdc),'description':_0x28d183(0xf6),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x28d183(0xfd),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x28d183(0xf8),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x28d183(0xed),'connecting':_0x28d183(0xe9),'connected':_0x28d183(0xd0),'failed':_0x28d183(0xe6),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x28d183(0xf0),'invalidApiKey':_0x28d183(0xe0),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x28d183(0xfa),'maxRetriesExceeded':_0x28d183(0xf5)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x2774(_0x2cfd26,_0x4516ce){const _0x5d30cd=_0x5d30();return _0x2774=function(_0x27747e,_0x5f4765){_0x27747e=_0x27747e-0x1a0;let _0x39d3af=_0x5d30cd[_0x27747e];return _0x39d3af;},_0x2774(_0x2cfd26,_0x4516ce);}const _0xbd80f5=_0x2774;(function(_0x4a5279,_0x153fec){const _0x7e680c=_0x2774,_0x11f824=_0x4a5279();while(!![]){try{const _0x5f5ca8=-parseInt(_0x7e680c(0x1a9))/0x1+parseInt(_0x7e680c(0x1b3))/0x2*(-parseInt(_0x7e680c(0x1a6))/0x3)+-parseInt(_0x7e680c(0x1b5))/0x4+parseInt(_0x7e680c(0x1c6))/0x5+parseInt(_0x7e680c(0x1bf))/0x6+parseInt(_0x7e680c(0x1ab))/0x7+-parseInt(_0x7e680c(0x1bb))/0x8;if(_0x5f5ca8===_0x153fec)break;else _0x11f824['push'](_0x11f824['shift']());}catch(_0x2aa8f9){_0x11f824['push'](_0x11f824['shift']());}}}(_0x5d30,0xf3427));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0xbd80f5(0x1a0),'retrying':'MCP\x20Retrying...','unknown':_0xbd80f5(0x1b6),'missingApiKey':_0xbd80f5(0x1a8),'invalidApiKey':_0xbd80f5(0x1a1),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0xbd80f5(0x1c1),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xbd80f5(0x1b4),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xbd80f5(0x1c5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0xbd80f5(0x1c0),'enableAuthHint':_0xbd80f5(0x1c2),'connectionInfo':_0xbd80f5(0x1c9),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xbd80f5(0x1bd),'configStep1':_0xbd80f5(0x1a2),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xbd80f5(0x1a4),'sessionId':_0xbd80f5(0x1ae),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xbd80f5(0x1be),'configParameters':_0xbd80f5(0x1a5),'maxRetries':_0xbd80f5(0x1a3),'save':_0xbd80f5(0x1a7),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0xbd80f5(0x1ad),'configSaved':_0xbd80f5(0x1ba),'configError':_0xbd80f5(0x1ac),'apiApplyInfo':{'title':_0xbd80f5(0x1b7),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0xbd80f5(0x1b9),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xbd80f5(0x1c3),'invalidApiKey':_0xbd80f5(0x1bc)},'connectionStatus':{'disconnected':_0xbd80f5(0x1c4),'connecting':_0xbd80f5(0x1c7),'connected':_0xbd80f5(0x1b0),'failed':_0xbd80f5(0x1b2),'retrying':_0xbd80f5(0x1b8)},'connectionError':{'missingApiKey':_0xbd80f5(0x1af),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0xbd80f5(0x1aa),'maxRetriesExceeded':_0xbd80f5(0x1c8)}}};module[_0xbd80f5(0x1b1)]=e;function _0x5d30(){const _0x66eb19=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session\x20ID','API\x20key\x20is\x20required\x20to\x20connect','Connected','exports','Connection\x20Failed','162zjTTtV','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','3587436FQqwip','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','Retrying...','Univer\x20AI\x20Console','Configuration\x20saved\x20successfully','12072840ipwYkr','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','11644470MzIPNN','Enable\x20Authentication','MCP:\x20Network\x20Error','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20configuration','Disconnected','Enter\x20your\x20API\x20key','8439440TZnIBx','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','MCP\x20Connection\x20Failed','MCP:\x20Invalid\x20API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Parameters:','44724AWNkoB','Save\x20Configuration','MCP:\x20API\x20Key\x20Missing','550600PTuCjF','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','10723090fmoNKl','Failed\x20to\x20save\x20configuration'];_0x5d30=function(){return _0x66eb19;};return _0x5d30();}
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x2386(){const _0x48c849=['7GEcWeA','2054315fCQmem','4595vBAzlG','Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','MCP:\x20Session\x20Occupied','12675040ZJweYm','520qdGXWW','2572317NJeusc','Configuration\x20Parameters:','API\x20key\x20is\x20required\x20to\x20connect','171DjuWaW','2007728hIjvKc','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Disconnected','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP:\x20Invalid\x20API\x20Key','API\x20key\x20with\x20Bearer\x20prefix.','1533190TGOlVP','API\x20key\x20is\x20required','Save\x20Configuration','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','Configuration\x20Steps:','Enable\x20Authentication','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20connect\x20MCP','Connected','Invalid\x20configuration','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','10040484eWemQB','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP','MCP:\x20API\x20Key\x20Missing','Retrying...'];_0x2386=function(){return _0x48c849;};return _0x2386();}const _0x4cf9e5=_0x5b95;function _0x5b95(_0x5864b8,_0x126137){const _0x23868c=_0x2386();return _0x5b95=function(_0x5b9574,_0x32521e){_0x5b9574=_0x5b9574-0x11b;let _0x562793=_0x23868c[_0x5b9574];return _0x562793;},_0x5b95(_0x5864b8,_0x126137);}(function(_0x2fe079,_0x281bcc){const _0x54e567=_0x5b95,_0x2ac101=_0x2fe079();while(!![]){try{const _0x5cb7f0=parseInt(_0x54e567(0x120))/0x1*(-parseInt(_0x54e567(0x127))/0x2)+parseInt(_0x54e567(0x128))/0x3+parseInt(_0x54e567(0x12c))/0x4+parseInt(_0x54e567(0x11f))/0x5+-parseInt(_0x54e567(0x14b))/0x6*(-parseInt(_0x54e567(0x11e))/0x7)+parseInt(_0x54e567(0x126))/0x8+-parseInt(_0x54e567(0x12b))/0x9*(parseInt(_0x54e567(0x136))/0xa);if(_0x5cb7f0===_0x281bcc)break;else _0x2ac101['push'](_0x2ac101['shift']());}catch(_0x5225d4){_0x2ac101['push'](_0x2ac101['shift']());}}}(_0x2386,0xe0acb));const e={'mcpStatus':{'disconnected':_0x4cf9e5(0x132),'connecting':_0x4cf9e5(0x130),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x4cf9e5(0x11c),'invalidApiKey':_0x4cf9e5(0x134),'sessionOccupied':_0x4cf9e5(0x125),'networkError':_0x4cf9e5(0x148),'maxRetriesExceeded':_0x4cf9e5(0x140),'clickToConnect':_0x4cf9e5(0x141),'clickToConfigure':_0x4cf9e5(0x11b)},'mcpConfig':{'title':_0x4cf9e5(0x124),'description':_0x4cf9e5(0x149),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4cf9e5(0x144),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4cf9e5(0x13d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4cf9e5(0x14a),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4cf9e5(0x123),'configStepTitle':_0x4cf9e5(0x13c),'configStep1':_0x4cf9e5(0x147),'configStep2':_0x4cf9e5(0x131),'configStep3':_0x4cf9e5(0x13a),'sessionId':'Session\x20ID','sessionIdDescription':_0x4cf9e5(0x12f),'authorizationDescription':_0x4cf9e5(0x135),'configParameters':_0x4cf9e5(0x129),'maxRetries':_0x4cf9e5(0x13b),'save':_0x4cf9e5(0x138),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x4cf9e5(0x14c),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x4cf9e5(0x139),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4cf9e5(0x137),'apiKeyTooShort':_0x4cf9e5(0x13e),'invalidConfig':_0x4cf9e5(0x143),'invalidApiKey':_0x4cf9e5(0x122)},'connectionStatus':{'disconnected':_0x4cf9e5(0x12e),'connecting':_0x4cf9e5(0x121),'connected':_0x4cf9e5(0x142),'failed':'Connection\x20Failed','retrying':_0x4cf9e5(0x11d)},'connectionError':{'missingApiKey':_0x4cf9e5(0x12a),'invalidApiKey':_0x4cf9e5(0x133),'sessionOccupied':_0x4cf9e5(0x12d),'networkError':_0x4cf9e5(0x145),'maxRetriesExceeded':_0x4cf9e5(0x146)}}},n=e;module[_0x4cf9e5(0x13f)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x50ca49=_0x5ca6;function _0x5ca6(_0x344333,_0x185cf1){const _0x27a68a=_0x27a6();return _0x5ca6=function(_0x5ca66d,_0x4882d7){_0x5ca66d=_0x5ca66d-0xc3;let _0x1c0f30=_0x27a68a[_0x5ca66d];return _0x1c0f30;},_0x5ca6(_0x344333,_0x185cf1);}(function(_0x313a81,_0x4f738c){const _0x565df7=_0x5ca6,_0x346d1d=_0x313a81();while(!![]){try{const _0x275ba0=parseInt(_0x565df7(0xfd))/0x1*(-parseInt(_0x565df7(0xdd))/0x2)+-parseInt(_0x565df7(0xf3))/0x3+-parseInt(_0x565df7(0xf6))/0x4+-parseInt(_0x565df7(0xde))/0x5*(parseInt(_0x565df7(0xf4))/0x6)+parseInt(_0x565df7(0xfb))/0x7*(-parseInt(_0x565df7(0xe4))/0x8)+parseInt(_0x565df7(0xe6))/0x9*(parseInt(_0x565df7(0xce))/0xa)+parseInt(_0x565df7(0xc3))/0xb*(parseInt(_0x565df7(0xf5))/0xc);if(_0x275ba0===_0x4f738c)break;else _0x346d1d['push'](_0x346d1d['shift']());}catch(_0x13566b){_0x346d1d['push'](_0x346d1d['shift']());}}}(_0x27a6,0x44841));const e={'mcpStatus':{'disconnected':_0x50ca49(0xd4),'connecting':_0x50ca49(0xed),'connected':'MCP\x20Connected','failed':_0x50ca49(0xcf),'retrying':_0x50ca49(0xe7),'unknown':_0x50ca49(0xdf),'missingApiKey':_0x50ca49(0xd1),'invalidApiKey':_0x50ca49(0xd5),'sessionOccupied':_0x50ca49(0xd7),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x50ca49(0xc4)},'mcpConfig':{'title':_0x50ca49(0xd2),'description':_0x50ca49(0xef),'apiKey':_0x50ca49(0xcb),'apiKeyPlaceholder':_0x50ca49(0xc5),'apiKeyHint':_0x50ca49(0xf7),'enableAuth':_0x50ca49(0xe1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x50ca49(0xec),'mcpClientConfig':_0x50ca49(0xec),'configInstructions':_0x50ca49(0xcc),'configStepTitle':_0x50ca49(0xee),'configStep1':_0x50ca49(0xfa),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x50ca49(0xf0),'sessionId':'Session\x20ID','sessionIdDescription':_0x50ca49(0xe2),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x50ca49(0xdc),'maxRetries':_0x50ca49(0xd3),'save':_0x50ca49(0xca),'saving':_0x50ca49(0xf1),'note1':_0x50ca49(0xe0),'note2':_0x50ca49(0xf9),'configSaved':_0x50ca49(0xc7),'configError':_0x50ca49(0xda),'apiApplyInfo':{'title':_0x50ca49(0xfe),'description':_0x50ca49(0xdb),'univerAiLabel':_0x50ca49(0xcd),'getStarted':_0x50ca49(0xd9)},'validation':{'apiKeyRequired':_0x50ca49(0xea),'apiKeyTooShort':_0x50ca49(0xe8),'invalidConfig':_0x50ca49(0xd6),'invalidApiKey':_0x50ca49(0xc6)},'connectionStatus':{'disconnected':_0x50ca49(0xd0),'connecting':_0x50ca49(0xd8),'connected':_0x50ca49(0xf8),'failed':_0x50ca49(0xeb),'retrying':_0x50ca49(0xe3)},'connectionError':{'missingApiKey':_0x50ca49(0xc8),'invalidApiKey':_0x50ca49(0xf2),'sessionOccupied':_0x50ca49(0xe5),'networkError':_0x50ca49(0xe9),'maxRetriesExceeded':_0x50ca49(0xc9)}}},n=e;module[_0x50ca49(0xfc)]=n;function _0x27a6(){const _0x5812fa=['MCP:\x20Invalid\x20API\x20Key','Invalid\x20configuration','MCP:\x20Session\x20Occupied','Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','Failed\x20to\x20save\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.','Configuration\x20Parameters:','370570UxgAFP','85DRuVaT','MCP\x20Unknown\x20Status','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','8CgjCfP','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','45kcVVXk','MCP\x20Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required','Connection\x20Failed','MCP\x20Client\x20Configuration','MCP\x20Connecting...','Configuration\x20Steps:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','564144WKIkfA','128724XSFRqn','7646916DHTAcE','113932mfEdOX','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','3255882mfVtoN','exports','1qWpIGC','What\x20is\x20API\x20Key?','22VvIjes','Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required\x20to\x20connect','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Univer\x20AI\x20Console','475630DXEEJH','MCP\x20Connection\x20Failed','Disconnected','MCP:\x20API\x20Key\x20Missing','MCP\x20Configuration','Max\x20Retries','MCP\x20Disconnected'];_0x27a6=function(){return _0x5812fa;};return _0x27a6();}
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3996fd=_0x4312;function _0x4234(){const _0x290e56=['MCP\x20Disconnected','What\x20is\x20API\x20Key?','309027StsGdb','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Configuration','Click\x20to\x20connect\x20MCP','MCP:\x20API\x20Key\x20Missing','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','66OTbArr','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Unknown\x20Status','MCP\x20Connection\x20Failed','1111884pUogtY','Configuration\x20Parameters:','Disconnected','Session\x20ID','MCP\x20Retrying...','API\x20key\x20is\x20required\x20to\x20connect','3808thRnOm','145FTNWbp','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','2916nAQPDt','Click\x20to\x20configure\x20MCP','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','Configuration\x20Steps:','82686XTEYix','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3075350QPJpXk','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','Max\x20Retries','12KGfNTG','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','36RLDsMT','Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','12674LFJYxb','Univer\x20AI\x20Console','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','2190678vhixKK','Failed\x20to\x20save\x20configuration','MCP\x20Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Saving...'];_0x4234=function(){return _0x290e56;};return _0x4234();}(function(_0x32d82e,_0x1a9d50){const _0x1cd5e6=_0x4312,_0xb61790=_0x32d82e();while(!![]){try{const _0x31334e=parseInt(_0x1cd5e6(0xa8))/0x1*(parseInt(_0x1cd5e6(0xac))/0x2)+parseInt(_0x1cd5e6(0xb6))/0x3*(-parseInt(_0x1cd5e6(0xa6))/0x4)+-parseInt(_0x1cd5e6(0x94))/0x5*(-parseInt(_0x1cd5e6(0x9f))/0x6)+parseInt(_0x1cd5e6(0xaf))/0x7+parseInt(_0x1cd5e6(0x93))/0x8*(-parseInt(_0x1cd5e6(0x98))/0x9)+parseInt(_0x1cd5e6(0xa1))/0xa+-parseInt(_0x1cd5e6(0xbd))/0xb*(parseInt(_0x1cd5e6(0x8d))/0xc);if(_0x31334e===_0x1a9d50)break;else _0xb61790['push'](_0xb61790['shift']());}catch(_0x463a7a){_0xb61790['push'](_0xb61790['shift']());}}}(_0x4234,0x37ed5));const e={'mcpStatus':{'disconnected':_0x3996fd(0xb4),'connecting':'MCP\x20Connecting...','connected':_0x3996fd(0xb1),'failed':_0x3996fd(0x8c),'retrying':_0x3996fd(0x91),'unknown':_0x3996fd(0xbf),'missingApiKey':_0x3996fd(0xba),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x3996fd(0xbc),'maxRetriesExceeded':_0x3996fd(0xb7),'clickToConnect':_0x3996fd(0xb9),'clickToConfigure':_0x3996fd(0x99)},'mcpConfig':{'title':_0x3996fd(0xb8),'description':_0x3996fd(0xbb),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3996fd(0x9d),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x3996fd(0x97),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3996fd(0x9b),'configStepTitle':_0x3996fd(0x9e),'configStep1':_0x3996fd(0xa3),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3996fd(0xa0),'sessionId':_0x3996fd(0x90),'sessionIdDescription':_0x3996fd(0xa7),'authorizationDescription':_0x3996fd(0x96),'configParameters':_0x3996fd(0x8e),'maxRetries':_0x3996fd(0xa5),'save':_0x3996fd(0x9a),'saving':_0x3996fd(0xb3),'note1':_0x3996fd(0xaa),'note2':_0x3996fd(0xab),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3996fd(0xb0),'apiApplyInfo':{'title':_0x3996fd(0xb5),'description':_0x3996fd(0x95),'univerAiLabel':_0x3996fd(0xad),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3996fd(0x9c),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3996fd(0xa2)},'connectionStatus':{'disconnected':_0x3996fd(0x8f),'connecting':'Connecting...','connected':_0x3996fd(0xa9),'failed':_0x3996fd(0xa4),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x3996fd(0x92),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x3996fd(0xae),'networkError':_0x3996fd(0xbe),'maxRetriesExceeded':_0x3996fd(0xb2)}}},n=e;function _0x4312(_0x354cc6,_0x2bf3fe){const _0x42347b=_0x4234();return _0x4312=function(_0x4312c1,_0x192ce5){_0x4312c1=_0x4312c1-0x8c;let _0x1ea811=_0x42347b[_0x4312c1];return _0x1ea811;},_0x4312(_0x354cc6,_0x2bf3fe);}module['exports']=n;
|