@univerjs-pro/mcp-ui 0.14.0-insiders.20251227-b250a8d → 0.15.0-insiders.20251227-dafc157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x57e13a=_0xd445;function _0x762f(){const _0x5c909b=['univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Disposable','BuiltInUIPart','带有\x20Bearer\x20前缀的\x20API\x20密钥。','merge','配置参数:','mcpServerUrl','MCP:\x20超出最大重试次数','MCP:\x20Network\x20Error','NETWORK_ERROR','showDeveloperTools','bottom','M0\x200H16V16H0z','defs','univer-space-y-4','univer.ai','span','576JXSjVd','API\x20密钥无效,请检查密钥是否正确','MCP\x20配置','errorMessage','mcpConfig.configStep2','Saving...','配置保存失败','univer-min-w-0\x20univer-flex-1','_componentManager','DISCONNECTED','115tkODlf','pre','show','_handleConfigSave','UniverIcon','mcp-ui.config','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','close-icon','MenuIcon','mcpStatus.failed','配置保存成功','sessionId$','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','NONE','25851LJDScN','url(#on-line-icon_clip0_910_349)','CONNECTING','showStatus','evenodd','div','useObservable','BehaviorSubject','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','includes','Inject','noopener\x20noreferrer','univer-shrink-0\x20univer-text-blue-500','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','OpenMCPConfigPanelCommand','on-line-icon_clip0_910_349','Success','text','univer-text-blue-600','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','MAX_RETRIES_EXCEEDED','mask','ICommandService','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\x20Connected','univer-space-y-2','add','mcpConfig.connectionError.maxRetriesExceeded','getConfig','univer-text-yellow-500','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','check-mark-icon','API\x20密钥长度至少需要\x2010\x20位','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_uiPartsService','0\x200\x2016\x2016','univer-text-gray-500','error','What\x20is\x20API\x20Key?','mcpStatus.connected','toString','Bearer\x20','Univer\x20AI\x20Console','UniverMCPPlugin','mcpConfig.configStep3','ISocketService','onStarting','registerCommand','register','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_localeService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','createElement','idSuffix','MCP\x20Configuration','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_localStorageService','Enter\x20your\x20API\x20key','univer-text-red-500','_menuManagerService','http','subscribe','OnLineIcon','Session\x20ID','mcpStatus.sessionOccupied','mcpConfig.connectionInfo','univer-font-medium','mcpConfig.connectionError.networkError','Connection\x20Failed','点击连接\x20MCP','button','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','MCPConnectionStatus','RETRYING','启用身份验证以获得安全连接','path','mcpConfig.connectionStatus.retrying','连接失败','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','1em','open','网络连接错误,请检查您的网络连接','MCPConfigPanel','启用身份验证','配置步骤:','UniverMCPUIPlugin','mcpConfig.title','OTHERS','connectionError$','BUTTON','univer-flex\x20univer-items-center\x20univer-gap-2','_initializeCommands','MCP:\x20未授权','Injector','__setCustomHeaders','url(#off-line-icon_clip0_910_343)','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','round','MCP\x20Connecting...','Failed\x20to\x20save\x20configuration','mcpConfig.apiKey','getItem','mcpConfig.apiKeyHint','ComponentManager','univer-flex\x20univer-items-center','mcpConfig.validation.invalidConfig','disposeWithMe','validateApiKey','mcpConfig.connectionError.unauthorized','您的\x20API\x20密钥将在此浏览器中本地存储','_initConfigSync','IUIPartsService','univer-text-white','push','value','help-icon','mcpConfig.apiKeyPlaceholder','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Connecting...','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','MCPConnectionError','权限验证失败,请检查您的\x20API\x20密钥','443974EPnaFp','pluginName','Click\x20to\x20configure\x20MCP','_config$','attrs','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_createConfigPanelComponent','Click\x20to\x20connect\x20MCP','37526xQHRSe','forwardRef','_logService','univer-flex-1','未连接','配置无效','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20已连接','ILocalStorageService','Invalid\x20configuration','getCurrentConfig','univer-bg-red-500','defineProperty','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MessageType','HEADER_MENU','mcpStatus.disconnected','displayName','0\x200\x2017\x2016','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.apiApplyInfo.description','1373709NQqQPO','off-line-icon','Error','COMMAND','useRef','MCP\x20已断开','mcpConfig.sessionIdDescription','fill','点击配置\x20MCP','clipPath','MCP\x20连接失败','MCP\x20客户端配置','get','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Plugin','MCP_PLUGIN_CONFIG_KEY','close','univer-space-y-3','univer-flex\x20univer-gap-3','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP:\x20会话\x20ID\x20已被占用','zhCN','univer-size-4','MCP\x20Disconnected','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','最大重试次数','MCP\x20状态未知','Disconnected','_validateConfig','mcpConfig.connectionError.sessionOccupied','_messageService','https://console.univer.ai','CloseIcon','univer-size-2\x20univer-rounded-full','什么是\x20API\x20密钥?','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','enableAutoConnect','DependentOn','_initStatusComponent','_mcpCoreConfig$','univer.plus','univer-bg-green-500','clsx','_config','103674JxdeAa','Authorization:','请输入您的\x20API\x20密钥','univerjs-icon\x20univerjs-icon-','MCPConfigUIController','MCP\x20Retrying...','mcpConfig.apiApplyInfo.title','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','Button','MCP\x20连接中...','mcpConfig.configStep1','UNAUTHORIZED','white','connectionStatus$','MCP:\x20Unauthorized','useState','Copy\x20the\x20JSON\x20configuration\x20below','mcpStatus.clickToConnect','mcpConfig.apiApplyInfo.getStarted','mcpStatus.retrying','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','您的\x20API\x20密钥安全存储在本地存储中','http://www.w3.org/2000/svg','mcpConfig.authorizationDescription','mcpStatus.networkError','mcpConfig.connectionStatus.failed','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','random','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','setItem','复制以下\x20JSON\x20配置','_commandService','MCPConnectionUIController','MenuItemType','超出最大重试次数,请稍后再试','univer-flex\x20univer-items-center\x20univer-gap-3','url(#$1','univer-flex\x20univer-items-start\x20univer-gap-3','Univer\x20AI\x20控制台','CONNECTED','Configuration\x20Parameters:','jsxs','_handleConfigure','mcp-ui.command.openConfigPanel','重启您的\x20MCP\x20客户端以使配置生效','showConfigPanel','Module','将配置添加到您的\x20MCP\x20客户端设置文件中','removeItem','会话\x20ID\x20已被占用,请稍后再试','map','apiKey','连接中...','jsx','mcpStatus.maxRetriesExceeded','_initializeMenus','_loading$','https://mcp.univer.ai/mcp/?univer_session_id=','_injector','mcp-config-dialog','\x20-\x20','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','length','off','subscribeConfigValue$','mcpConfig.connectionStatus.connecting','mcpConfig.apiApplyInfo.univerAiLabel','607228lGzkVH','assign','_apiKey$','xlink:href','tag','enUS','mcpConfig.configSaved','CommandType','substring','mergeMenu','API\x20Key','has','current','MCP:\x20Session\x20ID\x20Occupied','_loadStoredApiKey','MCP\x20Connection\x20Failed','WebSocketService','mcpConfig.connectionStatus.connected','useCallback','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','univer-bg-blue-500','useDependency','stringify','mcp.apiKey','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','string','HelpIcon','symbol','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','IDialogService','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','120879taenps','<SESSION_ID>','setConfig','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','currentColor','_dialogService','on-line-icon','_initAutoConnect','Configuration\x20Steps:','replace','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','SESSION_ID_OCCUPIED','getOwnPropertyDescriptor','univer-text-sm\x20univer-font-medium','配置更改将立即生效','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','FAILED','MCP\x20重连中...','MCPStatusDisplay','next','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.validation.apiKeyTooShort','MCPConnectionController','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','mcpConfig.validation.apiKeyRequired','connectInjector','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','RibbonStartGroup','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','trim','defIds','none','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','CheckMarkIcon','off-line-icon_clip0_910_343','univer-text-green-500','IMessageService','univer-text-xs\x20univer-text-gray-500','ILogService','保存配置','univer-mr-2\x20univer-flex\x20univer-text-xl','svg','colorChannel1','几秒钟内获取您的\x20API\x20密钥','_configService','Tooltip','IConfigService','entries','univer-bg-gray-500','MCP_UI_PLUGIN','MCPUIMenuController','LocaleService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_registerComponent','_mcpConnectionController','forEach','Configuration\x20Notes:','univer-text-sm\x20univer-text-gray-500','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_connectionController','isValid','translate(.97)'];_0x762f=function(){return _0x5c909b;};return _0x762f();}(function(_0x3c44ec,_0x976abe){const _0x5aac9f=_0xd445,_0x521fb1=_0x3c44ec();while(!![]){try{const _0x3033e9=parseInt(_0x5aac9f(0x23d))/0x1+-parseInt(_0x5aac9f(0x246))/0x2+-parseInt(_0x5aac9f(0x25b))/0x3+parseInt(_0x5aac9f(0x2ca))/0x4+-parseInt(_0x5aac9f(0x345))/0x5*(-parseInt(_0x5aac9f(0x287))/0x6)+parseInt(_0x5aac9f(0x354))/0x7*(-parseInt(_0x5aac9f(0x33b))/0x8)+-parseInt(_0x5aac9f(0x2ea))/0x9;if(_0x3033e9===_0x976abe)break;else _0x521fb1['push'](_0x521fb1['shift']());}catch(_0x309f0f){_0x521fb1['push'](_0x521fb1['shift']());}}}(_0x762f,0x39e95));var ae=Object[_0x57e13a(0x252)],le=(_0x5f2b33,_0x4b2692,_0x3da542)=>_0x4b2692 in _0x5f2b33?ae(_0x5f2b33,_0x4b2692,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3da542}):_0x5f2b33[_0x4b2692]=_0x3da542,I=(_0x2f1277,_0x23655d,_0x4e3ab2)=>le(_0x2f1277,typeof _0x23655d!=_0x57e13a(0x2e6)?_0x23655d+'':_0x23655d,_0x4e3ab2);Object[_0x57e13a(0x252)](exports,Symbol['toStringTag'],{'value':_0x57e13a(0x2b5)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x2b47fb,..._0x5e6112}){const _0x1d3330=_0x57e13a,{icon:_0x47ced9,id:_0x1887c3,className:_0x43185c,extend:_0x5cf004,..._0xd0186b}=_0x5e6112,_0x54f0c7=(_0x1d3330(0x28a)+_0x1887c3+'\x20'+(_0x43185c||''))['trim'](),_0x1cfd39=d[_0x1d3330(0x25f)]('_'+de());return G(_0x47ced9,''+_0x1887c3,{'defIds':_0x47ced9[_0x1d3330(0x30a)],'idSuffix':_0x1cfd39[_0x1d3330(0x2d6)]},{'ref':_0x2b47fb,'className':_0x54f0c7,..._0xd0186b},_0x5cf004);}function G(_0x1ed99c,_0x5cfa57,_0xd094d0,_0xe53a2,_0x180f71){const _0xf32766=_0x57e13a;return d['createElement'](_0x1ed99c[_0xf32766(0x2ce)],{'key':_0x5cfa57,...ue(_0x1ed99c,_0xd094d0,_0x180f71),..._0xe53a2},(ve(_0x1ed99c,_0xd094d0)['children']||[])['map']((_0x5257e4,_0x5cac1b)=>G(_0x5257e4,_0x5cfa57+'-'+_0x1ed99c['tag']+'-'+_0x5cac1b,_0xd094d0,void 0x0,_0x180f71)));}function ue(_0x5e9e9a,_0x37c6dd,_0x16a62f){const _0x40fdf0=_0x57e13a,_0xd71df7={..._0x5e9e9a[_0x40fdf0(0x241)]};_0x16a62f!=null&&_0x16a62f[_0x40fdf0(0x316)]&&_0xd71df7[_0x40fdf0(0x262)]===_0x40fdf0(0x316)&&(_0xd71df7[_0x40fdf0(0x262)]=_0x16a62f[_0x40fdf0(0x316)]),_0x5e9e9a['tag']==='mask'&&_0xd71df7['id']&&(_0xd71df7['id']=_0xd71df7['id']+_0x37c6dd[_0x40fdf0(0x1f6)]),Object[_0x40fdf0(0x31b)](_0xd71df7)[_0x40fdf0(0x323)](([_0x445ac8,_0x325765])=>{const _0x2f4ff3=_0x40fdf0;_0x445ac8===_0x2f4ff3(0x1d6)&&typeof _0x325765==_0x2f4ff3(0x2e4)&&(_0xd71df7[_0x445ac8]=_0x325765[_0x2f4ff3(0x2f3)](/url\(#(.*)\)/,'url(#$1'+_0x37c6dd[_0x2f4ff3(0x1f6)]+')'));});const {defIds:_0x4c31df}=_0x37c6dd;return!_0x4c31df||_0x4c31df[_0x40fdf0(0x2c5)]===0x0||(_0x5e9e9a[_0x40fdf0(0x2ce)]==='use'&&_0xd71df7[_0x40fdf0(0x2cd)]&&(_0xd71df7[_0x40fdf0(0x2cd)]=_0xd71df7['xlink:href']+_0x37c6dd['idSuffix']),Object[_0x40fdf0(0x31b)](_0xd71df7)[_0x40fdf0(0x323)](([_0x14629e,_0x4604e7])=>{const _0x50932c=_0x40fdf0;typeof _0x4604e7=='string'&&(_0xd71df7[_0x14629e]=_0x4604e7[_0x50932c(0x2f3)](/url\(#(.*)\)/,_0x50932c(0x2ab)+_0x37c6dd[_0x50932c(0x1f6)]+')'));})),_0xd71df7;}function ve(_0x109273,_0x47d07a){const _0x57baba=_0x57e13a;var _0x3e3107;const {defIds:_0x3ccc07}=_0x47d07a;return!_0x3ccc07||_0x3ccc07[_0x57baba(0x2c5)]===0x0?_0x109273:_0x109273[_0x57baba(0x2ce)]==='defs'&&((_0x3e3107=_0x109273['children'])!=null&&_0x3e3107[_0x57baba(0x2c5)])?{..._0x109273,'children':_0x109273['children'][_0x57baba(0x2b9)](_0x5ee8bf=>typeof _0x5ee8bf[_0x57baba(0x241)]['id']==_0x57baba(0x2e4)&&_0x3ccc07&&_0x3ccc07[_0x57baba(0x35d)](_0x5ee8bf[_0x57baba(0x241)]['id'])?{..._0x5ee8bf,'attrs':{..._0x5ee8bf[_0x57baba(0x241)],'id':_0x5ee8bf['attrs']['id']+_0x47d07a[_0x57baba(0x1f6)]}}:_0x5ee8bf)}:_0x109273;}function de(){const _0x515422=_0x57e13a;return Math[_0x515422(0x2a2)]()[_0x515422(0x1e9)](0x24)[_0x515422(0x2d2)](0x2,0x8);}_[_0x57e13a(0x257)]=_0x57e13a(0x349);const Ce={'tag':_0x57e13a(0x315),'attrs':{'xmlns':_0x57e13a(0x29d),'fill':_0x57e13a(0x30b),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x57e13a(0x212)},'children':[{'tag':'path','attrs':{'fill':_0x57e13a(0x2ee),'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':_0x57e13a(0x358),'clipRule':_0x57e13a(0x358)}}]},H=d['forwardRef'](function(_0x174c6b,_0x305c73){const _0x334789=_0x57e13a;return d[_0x334789(0x1f5)](_,Object[_0x334789(0x2cb)]({},_0x174c6b,{'id':_0x334789(0x1e0),'ref':_0x305c73,'icon':Ce}));});H[_0x57e13a(0x257)]=_0x57e13a(0x30d);const ge={'tag':_0x57e13a(0x315),'attrs':{'xmlns':_0x57e13a(0x29d),'fill':_0x57e13a(0x30b),'viewBox':_0x57e13a(0x1e4),'width':_0x57e13a(0x212),'height':'1em'},'children':[{'tag':_0x57e13a(0x20e),'attrs':{'fill':_0x57e13a(0x2ee),'d':_0x57e13a(0x23a)}}]},B=d[_0x57e13a(0x247)](function(_0x25bf13,_0x52d150){const _0x285df6=_0x57e13a;return d[_0x285df6(0x1f5)](_,Object['assign']({},_0x25bf13,{'id':_0x285df6(0x34d),'ref':_0x52d150,'icon':ge}));});B[_0x57e13a(0x257)]=_0x57e13a(0x27b);const fe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x57e13a(0x30b),'viewBox':_0x57e13a(0x1e4),'width':'1em','height':_0x57e13a(0x212)},'children':[{'tag':_0x57e13a(0x20e),'attrs':{'fill':_0x57e13a(0x2ee),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x57e13a(0x20e),'attrs':{'fill':'currentColor','d':_0x57e13a(0x223)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x57e13a(0x358),'clipRule':_0x57e13a(0x358)}}]},F=d[_0x57e13a(0x247)](function(_0x6fd7f9,_0x35164c){const _0x3b675b=_0x57e13a;return d[_0x3b675b(0x1f5)](_,Object[_0x3b675b(0x2cb)]({},_0x6fd7f9,{'id':_0x3b675b(0x236),'ref':_0x35164c,'icon':fe}));});F[_0x57e13a(0x257)]=_0x57e13a(0x2e5);const pe={'tag':_0x57e13a(0x315),'attrs':{'xmlns':_0x57e13a(0x29d),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x57e13a(0x212)},'children':[{'tag':'g','attrs':{'clipPath':_0x57e13a(0x222)},'children':[{'tag':'path','attrs':{'stroke':_0x57e13a(0x2ee),'d':_0x57e13a(0x1df),'strokeLinecap':_0x57e13a(0x224),'strokeLinejoin':_0x57e13a(0x224),'strokeWidth':1.2}}]},{'tag':_0x57e13a(0x337),'attrs':{},'children':[{'tag':_0x57e13a(0x264),'attrs':{'id':_0x57e13a(0x30e)},'children':[{'tag':_0x57e13a(0x20e),'attrs':{'fill':_0x57e13a(0x293),'d':_0x57e13a(0x336)}}]}]}],'defIds':[_0x57e13a(0x30e)]},Y=d[_0x57e13a(0x247)](function(_0x99ed15,_0x12eb65){const _0x4e5e40=_0x57e13a;return d[_0x4e5e40(0x1f5)](_,Object[_0x4e5e40(0x2cb)]({},_0x99ed15,{'id':_0x4e5e40(0x25c),'ref':_0x12eb65,'icon':pe}));});Y[_0x57e13a(0x257)]='OffLineIcon';const he={'tag':_0x57e13a(0x315),'attrs':{'xmlns':_0x57e13a(0x29d),'fill':_0x57e13a(0x30b),'viewBox':_0x57e13a(0x258),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x57e13a(0x355)},'children':[{'tag':_0x57e13a(0x20e),'attrs':{'stroke':_0x57e13a(0x2ee),'d':_0x57e13a(0x28e),'strokeLinecap':'round','strokeLinejoin':_0x57e13a(0x224),'strokeWidth':1.2}}]},{'tag':_0x57e13a(0x337),'attrs':{},'children':[{'tag':_0x57e13a(0x264),'attrs':{'id':_0x57e13a(0x363)},'children':[{'tag':_0x57e13a(0x20e),'attrs':{'fill':_0x57e13a(0x293),'d':_0x57e13a(0x336),'transform':_0x57e13a(0x329)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x57e13a(0x247)](function(_0x110d36,_0x8fda9f){const _0x46371e=_0x57e13a;return d[_0x46371e(0x1f5)](_,Object[_0x46371e(0x2cb)]({},_0x110d36,{'id':_0x46371e(0x2f0),'ref':_0x8fda9f,'icon':he}));});q[_0x57e13a(0x257)]=_0x57e13a(0x1ff);function V(_0xd8c1c1){const _0x5ee172=_0x57e13a;var _0x517302,_0x454b69;const {mcpCoreConfig:_0x5b241e,onSave:_0x349f62,loading:_0x9c0874=!0x1,config:_0x8bd62c,connectionStatus$:_0x58da35,connectionError$:_0x59151e,currentApiKey$:_0x5e3694,currentSessionId$:_0x26c54e}=_0xd8c1c1,_0x3349e8=v[_0x5ee172(0x2e0)](u[_0x5ee172(0x31f)]),_0x2db73e=v[_0x5ee172(0x35a)](_0x58da35,s[_0x5ee172(0x20b)]['DISCONNECTED']),_0x4ec751=v[_0x5ee172(0x35a)](_0x59151e,s[_0x5ee172(0x23b)][_0x5ee172(0x353)]),_0x2e4a5a=v[_0x5ee172(0x35a)](_0x26c54e,''),_0x2f3708=v[_0x5ee172(0x35a)](_0x5e3694,''),[_0xfa3226,_0x2f415e]=d[_0x5ee172(0x296)](_0x2f3708||''),_0x203493=!0x0,_0x324191=_0x8bd62c[_0x5ee172(0x334)]&&_0x5b241e['mcpServerUrl']&&(_0x5b241e[_0x5ee172(0x330)][_0x5ee172(0x35d)](_0x5ee172(0x283))||_0x5b241e[_0x5ee172(0x330)]['includes'](_0x5ee172(0x339))),_0x42837a=(_0x517302=_0x5b241e['mcpServerUrl'])==null?void 0x0:_0x517302[_0x5ee172(0x35d)](_0x5ee172(0x283)),_0x34b8bf=(_0x454b69=_0x5b241e[_0x5ee172(0x330)])==null?void 0x0:_0x454b69[_0x5ee172(0x35d)](_0x5ee172(0x339)),_0x2a6d98=_0x42837a?'https://console.univer.plus':_0x5ee172(0x27a),_0x1248fa=_0x8bd62c[_0x5ee172(0x334)]&&(_0x42837a||_0x34b8bf),[_0x525e64,_0x46a166]=d['useState'](!_0xfa3226[_0x5ee172(0x309)]()),_0x2cbadf=(_0x480188,_0x2f0378)=>{const _0x4f84ad=_0x5ee172;if(_0x2f0378===s['MCPConnectionError']['UNAUTHORIZED'])return _0x4f84ad(0x24c);switch(_0x480188){case s[_0x4f84ad(0x20b)]['CONNECTED']:return _0x4f84ad(0x34c);case s[_0x4f84ad(0x20b)][_0x4f84ad(0x356)]:case s[_0x4f84ad(0x20b)][_0x4f84ad(0x20c)]:return _0x4f84ad(0x27e);case s[_0x4f84ad(0x20b)][_0x4f84ad(0x2fa)]:return _0x4f84ad(0x24c);default:return _0x4f84ad(0x2c4);}},_0x3845c7=(_0x1b7907,_0x151715)=>{const _0x2aa300=_0x5ee172;if(_0x151715===s['MCPConnectionError'][_0x2aa300(0x292)])return _0x2aa300(0x251);switch(_0x1b7907){case s[_0x2aa300(0x20b)][_0x2aa300(0x2ae)]:return _0x2aa300(0x284);case s[_0x2aa300(0x20b)][_0x2aa300(0x356)]:case s[_0x2aa300(0x20b)][_0x2aa300(0x20c)]:return _0x2aa300(0x2df);case s[_0x2aa300(0x20b)][_0x2aa300(0x2fa)]:return _0x2aa300(0x251);default:return _0x2aa300(0x31c);}},_0x59eb9a=_0x24fb7b=>{const _0x383135=_0x5ee172;switch(_0x24fb7b){case s[_0x383135(0x20b)]['CONNECTED']:return _0x3349e8['t'](_0x383135(0x2db));case s[_0x383135(0x20b)][_0x383135(0x356)]:return _0x3349e8['t'](_0x383135(0x2c8));case s[_0x383135(0x20b)][_0x383135(0x2fa)]:return _0x3349e8['t'](_0x383135(0x2a0));case s[_0x383135(0x20b)][_0x383135(0x20c)]:return _0x3349e8['t'](_0x383135(0x20f));default:return _0x3349e8['t']('mcpConfig.connectionStatus.disconnected');}},_0x2b729d=_0x9a24bd=>{const _0x2eb3f1=_0x5ee172;switch(_0x9a24bd){case s[_0x2eb3f1(0x23b)][_0x2eb3f1(0x292)]:return _0x3349e8['t'](_0x2eb3f1(0x22f));case s[_0x2eb3f1(0x23b)][_0x2eb3f1(0x2f5)]:return _0x3349e8['t'](_0x2eb3f1(0x278));case s[_0x2eb3f1(0x23b)]['NETWORK_ERROR']:return _0x3349e8['t'](_0x2eb3f1(0x204));case s[_0x2eb3f1(0x23b)][_0x2eb3f1(0x1d5)]:return _0x3349e8['t'](_0x2eb3f1(0x1dc));default:return'';}},_0x2b5ebe=d[_0x5ee172(0x2dc)](()=>{const _0x13606e={..._0x5b241e,'apiKey':_0xfa3226['trim'](),'enableAuth':_0x203493};_0x349f62(_0x13606e);},[_0x5b241e,_0xfa3226,_0x203493,_0x349f62]),_0x4df255=_0xfa3226['trim']()['length']>0x0;return i[_0x5ee172(0x2b0)]('div',{'className':_0x5ee172(0x2fe),'children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':_0x5ee172(0x1e2),'children':i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':_0x5ee172(0x2aa),'children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':_0x5ee172(0x211),'children':i['jsx'](_0x5ee172(0x33a),{'className':_0x5ee172(0x233),'children':'⚙'})}),i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'children':i['jsx']('p',{'className':_0x5ee172(0x325),'children':_0x3349e8['t']('mcpConfig.description')})})]})}),i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':_0x5ee172(0x253),'children':[i['jsx']('div',{'className':f[_0x5ee172(0x285)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x2cbadf(_0x2db73e,_0x4ec751)),'children':i['jsxs']('div',{'className':_0x5ee172(0x21d),'children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':f[_0x5ee172(0x285)](_0x5ee172(0x27c),_0x3845c7(_0x2db73e,_0x4ec751))}),i['jsx'](_0x5ee172(0x33a),{'className':_0x5ee172(0x2f7),'children':_0x59eb9a(_0x2db73e)})]})}),_0x4ec751!==s[_0x5ee172(0x23b)]['NONE']&&(_0x2db73e===s[_0x5ee172(0x20b)][_0x5ee172(0x2fa)]||_0x4ec751===s[_0x5ee172(0x23b)][_0x5ee172(0x292)])&&i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':_0x5ee172(0x2f9),'children':i['jsxs'](_0x5ee172(0x359),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x5ee172(0x2bc)]('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i['jsx']('p',{'className':_0x5ee172(0x238),'children':_0x2b729d(_0x4ec751)})]})})]}),i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i['jsxs'](_0x5ee172(0x359),{'className':'univer-space-y-5','children':[i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':_0x5ee172(0x1da),'children':[i[_0x5ee172(0x2b0)]('label',{'className':_0x5ee172(0x35c),'children':[i['jsx']('span',{'children':'🔑'}),'\x20',_0x3349e8['t'](_0x5ee172(0x227)),i[_0x5ee172(0x2bc)](_0x5ee172(0x33a),{'className':_0x5ee172(0x1fb),'children':'*'}),_0x324191&&i[_0x5ee172(0x2bc)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x3349e8['t'](_0x5ee172(0x28d)),'role':_0x5ee172(0x207),'onClick':()=>_0x46a166(!0x0),'children':i['jsx'](F,{})})]}),i['jsx'](f['Input'],{'type':_0x5ee172(0x1d2),'placeholder':_0x3349e8['t'](_0x5ee172(0x237)),'value':_0xfa3226,'disabled':_0x9c0874,'autoComplete':_0x5ee172(0x2c6),'onChange':_0x2f415e}),i[_0x5ee172(0x2bc)]('p',{'className':_0x5ee172(0x311),'children':_0x3349e8['t'](_0x5ee172(0x229))})]}),_0x324191&&_0x525e64&&i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':_0x5ee172(0x1d8),'children':[i[_0x5ee172(0x2bc)]('a',{'className':_0x5ee172(0x20a),'role':'button','onClick':()=>_0x46a166(!0x1),'children':i[_0x5ee172(0x2bc)](B,{'className':_0x5ee172(0x271)})}),i[_0x5ee172(0x2b0)]('div',{'className':_0x5ee172(0x26e),'children':[i['jsx']('div',{'className':_0x5ee172(0x1d4),'children':i[_0x5ee172(0x2bc)](_0x5ee172(0x33a),{'className':_0x5ee172(0x1d3),'children':'🚀'})}),i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':_0x5ee172(0x249),'children':[i[_0x5ee172(0x2bc)]('h4',{'className':_0x5ee172(0x320),'children':_0x3349e8['t'](_0x5ee172(0x28d))}),i['jsx']('p',{'className':_0x5ee172(0x2e9),'children':_0x3349e8['t'](_0x5ee172(0x25a))}),i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':_0x5ee172(0x1f2),'children':_0x1248fa&&i[_0x5ee172(0x2b0)]('a',{'className':_0x5ee172(0x302),'href':_0x2a6d98,'target':'_blank','rel':_0x5ee172(0x35f),'children':[i[_0x5ee172(0x2bc)]('span',{'children':'🤖'}),_0x3349e8['t'](_0x5ee172(0x2c9)),i[_0x5ee172(0x2bc)](_0x5ee172(0x33a),{'className':'univer-text-gray-400','children':'↗'})]})}),i['jsxs'](_0x5ee172(0x359),{'className':_0x5ee172(0x268),'children':['✨','\x20',_0x3349e8['t'](_0x5ee172(0x299))]})]})]})]}),_0x8bd62c[_0x5ee172(0x334)]&&i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i['jsxs']('h4',{'className':_0x5ee172(0x32a),'children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x33a),{'children':'🔗'}),'\x20',_0x3349e8['t'](_0x5ee172(0x202))]}),i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':_0x5ee172(0x338),'children':[i['jsxs'](_0x5ee172(0x359),{'className':_0x5ee172(0x26c),'children':[i[_0x5ee172(0x2bc)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x3349e8['t']('mcpConfig.configInstructions')}),i['jsxs'](_0x5ee172(0x359),{'className':'univer-space-y-2','children':[i['jsx'](_0x5ee172(0x359),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3349e8['t']('mcpConfig.configStepTitle')}),i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':_0x5ee172(0x259),'children':[i['jsxs'](_0x5ee172(0x359),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx'](_0x5ee172(0x33a),{'className':_0x5ee172(0x273),'children':'1'}),_0x3349e8['t'](_0x5ee172(0x291))]}),i['jsxs'](_0x5ee172(0x359),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x33a),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x3349e8['t'](_0x5ee172(0x33f))]}),i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':_0x5ee172(0x21d),'children':[i['jsx'](_0x5ee172(0x33a),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x3349e8['t'](_0x5ee172(0x1ed))]})]})]})]}),i['jsxs'](_0x5ee172(0x359),{'className':_0x5ee172(0x1da),'children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':_0x5ee172(0x1f8),'children':_0x5ee172(0x1f7)}),i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':i[_0x5ee172(0x2bc)](_0x5ee172(0x346),{'className':_0x5ee172(0x305),'children':JSON[_0x5ee172(0x2e1)]({'mcpServers':{'univer':{'url':_0x5ee172(0x2c0)+(_0x2e4a5a||_0x5ee172(0x2eb)),'type':_0x5ee172(0x1fd),'headers':{'Authorization':_0x5ee172(0x1ea)+(_0xfa3226||'<API_KEY>')}}}},null,0x2)})})]}),i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':'univer-space-y-3','children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':_0x5ee172(0x1f8),'children':_0x3349e8['t']('mcpConfig.configParameters')}),i['jsxs'](_0x5ee172(0x359),{'className':_0x5ee172(0x1da),'children':[i['jsxs'](_0x5ee172(0x359),{'className':_0x5ee172(0x2ac),'children':[i[_0x5ee172(0x2bc)]('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i['jsxs'](_0x5ee172(0x359),{'className':_0x5ee172(0x342),'children':[i['jsx'](_0x5ee172(0x359),{'className':_0x5ee172(0x2ff),'children':'univer_session_id:'}),i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':_0x5ee172(0x311),'children':_0x3349e8['t'](_0x5ee172(0x261))})]})]}),i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':_0x5ee172(0x2ac),'children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':_0x5ee172(0x2ed)}),i[_0x5ee172(0x2b0)]('div',{'className':_0x5ee172(0x342),'children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':_0x5ee172(0x2ff),'children':_0x5ee172(0x288)}),i['jsx'](_0x5ee172(0x359),{'className':_0x5ee172(0x311),'children':_0x3349e8['t'](_0x5ee172(0x29e))})]})]})]})]})]})]}),i[_0x5ee172(0x2bc)](f[_0x5ee172(0x28f)],{'onClick':_0x2b5ebe,'disabled':!_0x4df255||_0x9c0874,'className':_0x5ee172(0x2a1),'children':_0x9c0874?i[_0x5ee172(0x2b0)](_0x5ee172(0x33a),{'className':_0x5ee172(0x21d),'children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x33a),{'children':'⟲'}),_0x3349e8['t']('mcpConfig.saving')]}):i[_0x5ee172(0x2b0)](_0x5ee172(0x33a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x5ee172(0x2bc)](H,{}),_0x3349e8['t']('mcpConfig.save')]})}),i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':_0x5ee172(0x29b),'children':i[_0x5ee172(0x2b0)](_0x5ee172(0x359),{'className':_0x5ee172(0x26d),'children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x33a),{'className':_0x5ee172(0x360),'children':'💡'}),i[_0x5ee172(0x2b0)]('div',{'className':_0x5ee172(0x2e3),'children':[i[_0x5ee172(0x2bc)](_0x5ee172(0x359),{'className':_0x5ee172(0x203),'children':_0x5ee172(0x324)}),i['jsxs'](_0x5ee172(0x359),{'children':['•',_0x3349e8['t']('mcpConfig.note1')]}),i[_0x5ee172(0x2b0)]('div',{'children':['•',_0x3349e8['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x57e13a(0x34a),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x57e13a(0x2f6)],xe=(_0x12cbac,_0xb0ff94,_0x17e499,_0x302575)=>{for(var _0x22f6c8=_0x302575>0x1?void 0x0:_0x302575?me(_0xb0ff94,_0x17e499):_0xb0ff94,_0x37a012=_0x12cbac['length']-0x1,_0x2ce460;_0x37a012>=0x0;_0x37a012--)(_0x2ce460=_0x12cbac[_0x37a012])&&(_0x22f6c8=_0x2ce460(_0x22f6c8)||_0x22f6c8);return _0x22f6c8;},g=(_0x3a1f4e,_0x3a4389)=>(_0x24b7f2,_0x491fa2)=>_0x3a4389(_0x24b7f2,_0x491fa2,_0x3a1f4e);const O=_0x57e13a(0x2e2),D=_0x57e13a(0x2c2);exports[_0x57e13a(0x28b)]=class extends u['Disposable']{constructor(_0x37871d,_0x2ef5b0,_0x5f16e4,_0x2261c3,_0x33601f,_0x68ad1e,_0x25060e,_0x250aab,_0x45feb2,_0x173186){const _0x1da2de=_0x57e13a;super(),I(this,_0x1da2de(0x2bf),new M[(_0x1da2de(0x35b))](!0x1)),I(this,'_mcpCoreConfig$',new M[(_0x1da2de(0x35b))]({})),I(this,_0x1da2de(0x240),new M['BehaviorSubject']({})),I(this,'_apiKey$',new M['BehaviorSubject']('')),I(this,_0x1da2de(0x348),async _0x345294=>{const _0x1e485a=_0x1da2de;var _0xff6b21,_0x274ed7;this[_0x1e485a(0x2bf)][_0x1e485a(0x2fd)](!0x0);try{const _0x484493=await this['_validateConfig'](_0x345294);if(!_0x484493[_0x1e485a(0x328)]){this[_0x1e485a(0x279)][_0x1e485a(0x347)]({'type':f['MessageType'][_0x1e485a(0x25d)],'content':_0x484493[_0x1e485a(0x33e)]||this[_0x1e485a(0x1f3)]['t'](_0x1e485a(0x22c))});return;}_0x345294[_0x1e485a(0x2ba)]?await this[_0x1e485a(0x1f9)][_0x1e485a(0x2a4)](O,_0x345294[_0x1e485a(0x2ba)]['trim']()):await this[_0x1e485a(0x1f9)][_0x1e485a(0x2b7)](O),this[_0x1e485a(0x2cc)]['next'](((_0xff6b21=_0x345294['apiKey'])==null?void 0x0:_0xff6b21['trim']())||''),this[_0x1e485a(0x322)][_0x1e485a(0x221)]({'Authorization':_0x1e485a(0x1ea)+((_0x274ed7=_0x345294['apiKey'])==null?void 0x0:_0x274ed7['trim']())}),this[_0x1e485a(0x279)][_0x1e485a(0x347)]({'type':f[_0x1e485a(0x254)][_0x1e485a(0x1d1)],'content':this['_localeService']['t'](_0x1e485a(0x2d0))}),setTimeout(()=>{const _0x4c9f0c=_0x1e485a;this[_0x4c9f0c(0x2ef)][_0x4c9f0c(0x26b)](D);},0x320);}catch(_0x269207){this[_0x1e485a(0x248)][_0x1e485a(0x1e6)](_0x1e485a(0x242),_0x269207),this[_0x1e485a(0x279)][_0x1e485a(0x347)]({'type':f[_0x1e485a(0x254)][_0x1e485a(0x25d)],'content':this[_0x1e485a(0x1f3)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x1e485a(0x2fd)](!0x1);}}),(this[_0x1da2de(0x2c1)]=_0x37871d,this[_0x1da2de(0x1e3)]=_0x2ef5b0,this[_0x1da2de(0x318)]=_0x5f16e4,this['_localStorageService']=_0x2261c3,this[_0x1da2de(0x2ef)]=_0x33601f,this[_0x1da2de(0x279)]=_0x68ad1e,this['_componentManager']=_0x25060e,this['_localeService']=_0x250aab,this['_logService']=_0x45feb2,this['_mcpConnectionController']=_0x173186,this[_0x1da2de(0x231)](),this[_0x1da2de(0x2d8)](),this[_0x1da2de(0x321)]());}['showConfigPanel'](){const _0x1455f1=_0x57e13a,_0x453e31=this[_0x1455f1(0x318)][_0x1455f1(0x1dd)](P);_0x453e31!=null&&_0x453e31['showDeveloperTools']&&this['_dialogService'][_0x1455f1(0x213)]({'id':D,'title':{'title':this[_0x1455f1(0x1f3)]['t'](_0x1455f1(0x219))},'children':{'label':_0x1455f1(0x215)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5e67cb=_0x1455f1;this[_0x5e67cb(0x2ef)]['close'](D);}});}[_0x57e13a(0x250)](){const _0x585354=_0x57e13a;return this[_0x585354(0x282)]['value'];}['_registerComponent'](){const _0x17ef1c=_0x57e13a;this[_0x17ef1c(0x22d)](this[_0x17ef1c(0x343)][_0x17ef1c(0x1f1)](_0x17ef1c(0x215),this[_0x17ef1c(0x244)]()));}['_createConfigPanelComponent'](){const _0x54571d=_0x57e13a;return v[_0x54571d(0x304)](()=>{const _0x353ba4=_0x54571d;var _0x4a5866,_0x3f2648,_0x73d578;return i[_0x353ba4(0x2bc)](V,{'config':this[_0x353ba4(0x240)][_0x353ba4(0x235)],'mcpCoreConfig':this[_0x353ba4(0x282)][_0x353ba4(0x235)],'currentApiKey$':this[_0x353ba4(0x2cc)],'onSave':this[_0x353ba4(0x348)],'loading':this[_0x353ba4(0x2bf)][_0x353ba4(0x235)],'connectionStatus$':(_0x4a5866=this[_0x353ba4(0x322)])==null?void 0x0:_0x4a5866[_0x353ba4(0x294)],'connectionError$':(_0x3f2648=this[_0x353ba4(0x322)])==null?void 0x0:_0x3f2648[_0x353ba4(0x21b)],'currentSessionId$':(_0x73d578=this[_0x353ba4(0x322)])==null?void 0x0:_0x73d578[_0x353ba4(0x351)]});},this[_0x54571d(0x2c1)]);}[_0x57e13a(0x231)](){const _0x3c7394=_0x57e13a;this['disposeWithMe'](this['_configService']['subscribeConfigValue$'](s[_0x3c7394(0x26a)])[_0x3c7394(0x1fe)](_0x2a29e4=>{const _0x4a31cd=_0x3c7394;this[_0x4a31cd(0x282)][_0x4a31cd(0x2fd)](_0x2a29e4||{});}));const _0x50f58d=this[_0x3c7394(0x318)][_0x3c7394(0x1dd)](s[_0x3c7394(0x26a)]);this['_mcpCoreConfig$'][_0x3c7394(0x2fd)](_0x50f58d||{}),this[_0x3c7394(0x22d)](this['_configService'][_0x3c7394(0x2c7)](P)[_0x3c7394(0x1fe)](_0x404101=>{const _0x2cd74a=_0x3c7394;this[_0x2cd74a(0x240)][_0x2cd74a(0x2fd)](_0x404101||{});}));const _0x2814a8=this['_configService']['getConfig'](P);this[_0x3c7394(0x240)][_0x3c7394(0x2fd)](_0x2814a8||{});}async[_0x57e13a(0x2d8)](){const _0x5db9c3=_0x57e13a,_0x308319=this[_0x5db9c3(0x318)][_0x5db9c3(0x1dd)](P);if(!(_0x308319!=null&&_0x308319['showDeveloperTools']))return;const _0x11467c=await this[_0x5db9c3(0x1f9)][_0x5db9c3(0x228)](O);_0x11467c&&(this[_0x5db9c3(0x322)][_0x5db9c3(0x221)]({'Authorization':_0x5db9c3(0x1ea)+_0x11467c}),this[_0x5db9c3(0x2cc)][_0x5db9c3(0x2fd)](_0x11467c));}async[_0x57e13a(0x277)](_0x453c75){const _0x4ac6af=_0x57e13a;if(!_0x453c75[_0x4ac6af(0x2ba)]||_0x453c75['apiKey'][_0x4ac6af(0x309)]()[_0x4ac6af(0x2c5)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4ac6af(0x1f3)]['t'](_0x4ac6af(0x303))};if(_0x453c75[_0x4ac6af(0x2ba)]['trim']()[_0x4ac6af(0x2c5)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x4ac6af(0x300))};try{const _0x55eb3a=await this[_0x4ac6af(0x2c1)]['get'](s[_0x4ac6af(0x301)])[_0x4ac6af(0x22e)](_0x453c75[_0x4ac6af(0x2ba)][_0x4ac6af(0x309)]());return _0x55eb3a[_0x4ac6af(0x328)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x55eb3a['error']||this[_0x4ac6af(0x1f3)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x46ce5c){return console['warn']('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x46ce5c),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u[_0x57e13a(0x35e)](u[_0x57e13a(0x220)])),g(0x1,v['IUIPartsService']),g(0x2,u[_0x57e13a(0x31a)]),g(0x3,u[_0x57e13a(0x24e)]),g(0x4,v[_0x57e13a(0x2e8)]),g(0x5,v[_0x57e13a(0x310)]),g(0x6,u['Inject'](v[_0x57e13a(0x22a)])),g(0x7,u[_0x57e13a(0x35e)](u[_0x57e13a(0x31f)])),g(0x8,u[_0x57e13a(0x312)]),g(0x9,u[_0x57e13a(0x35e)](s[_0x57e13a(0x301)]))],exports[_0x57e13a(0x28b)]);const b={'id':_0x57e13a(0x2b2),'type':u[_0x57e13a(0x2d1)][_0x57e13a(0x25e)],'handler':async(_0x241971,_0x1926d7)=>(_0x241971[_0x57e13a(0x267)](exports[_0x57e13a(0x28b)])['showConfigPanel'](),!0x0)};function Z(_0x19999e,_0x48efe8){const _0x3eaf12=_0x57e13a;switch(_0x19999e){case s[_0x3eaf12(0x20b)][_0x3eaf12(0x344)]:return _0x3eaf12(0x256);case s[_0x3eaf12(0x20b)]['CONNECTING']:return'mcpStatus.connecting';case s[_0x3eaf12(0x20b)][_0x3eaf12(0x2ae)]:return _0x3eaf12(0x1e8);case s[_0x3eaf12(0x20b)][_0x3eaf12(0x2fa)]:switch(_0x48efe8){case s['MCPConnectionError'][_0x3eaf12(0x292)]:return'mcpStatus.unauthorized';case s['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x3eaf12(0x201);case s[_0x3eaf12(0x23b)][_0x3eaf12(0x333)]:return _0x3eaf12(0x29f);case s[_0x3eaf12(0x23b)][_0x3eaf12(0x1d5)]:return _0x3eaf12(0x2bd);default:return _0x3eaf12(0x34f);}case s[_0x3eaf12(0x20b)][_0x3eaf12(0x20c)]:return _0x3eaf12(0x29a);default:return'mcpStatus.unknown';}}function Se(_0x3c0d62,_0x49f924,_0x30c8de,_0x624821=!0x0){const _0x1b303c=_0x57e13a,_0x476b3d=Z(_0x3c0d62,_0x49f924),_0x3a4604=_0x30c8de['t'](_0x476b3d);return _0x624821?_0x3c0d62===s['MCPConnectionStatus'][_0x1b303c(0x344)]&&_0x49f924===s[_0x1b303c(0x23b)][_0x1b303c(0x292)]?_0x3a4604+_0x1b303c(0x2c3)+_0x30c8de['t']('mcpStatus.clickToConfigure'):_0x3c0d62===s['MCPConnectionStatus'][_0x1b303c(0x2ae)]?''+_0x3a4604:_0x3c0d62===s[_0x1b303c(0x20b)]['DISCONNECTED']||_0x3c0d62===s[_0x1b303c(0x20b)]['FAILED']?_0x3a4604+_0x1b303c(0x2c3)+_0x30c8de['t'](_0x1b303c(0x298)):_0x3a4604:_0x3a4604;}function _0xd445(_0x19a04f,_0x5ac3bb){_0x19a04f=_0x19a04f-0x1d1;const _0x762f0e=_0x762f();let _0xd44500=_0x762f0e[_0x19a04f];return _0xd44500;}function Pe(_0x144116){const _0x549ffe=_0x57e13a;switch(_0x144116){case s[_0x549ffe(0x20b)]['CONNECTED']:return _0x549ffe(0x30f);case s[_0x549ffe(0x20b)]['CONNECTING']:case s['MCPConnectionStatus'][_0x549ffe(0x20c)]:return _0x549ffe(0x1de);case s[_0x549ffe(0x20b)]['FAILED']:case s[_0x549ffe(0x20b)]['DISCONNECTED']:return'univer-text-red-500';default:return _0x549ffe(0x1e5);}}function W(_0x27a9d9){const _0x586792=_0x57e13a,{status$:_0x54e6f6,error$:_0x2cbd26,onConfigure:_0x2b043e,showClickable:_0x26e92d=!0x0}=_0x27a9d9,_0xd22e83=v['useObservable'](_0x54e6f6,s[_0x586792(0x20b)][_0x586792(0x344)]),_0x2723e7=v[_0x586792(0x35a)](_0x2cbd26,s[_0x586792(0x23b)][_0x586792(0x353)]),_0x3d92f7=v[_0x586792(0x2e0)](u['LocaleService']),_0x4d18f6=_0xd22e83===s['MCPConnectionStatus'][_0x586792(0x2ae)];_0xd22e83===s[_0x586792(0x20b)][_0x586792(0x356)]||s[_0x586792(0x20b)]['RETRYING'];const _0x25079c=_0x3d92f7['t'](Z(_0xd22e83,_0x2723e7)),_0x1aefc1=Se(_0xd22e83,_0x2723e7,_0x3d92f7,_0x26e92d),_0x38df1f=Pe(_0xd22e83),_0x9b0850=_0x4d18f6?i[_0x586792(0x2bc)](q,{}):i['jsx'](Y,{}),_0x187835=d[_0x586792(0x2dc)](()=>{_0x26e92d&&_0x2b043e&&_0x2b043e();},[_0x26e92d,_0x2b043e]);function _0x3ac7a8(){const _0x4d449f=_0x586792;return i[_0x4d449f(0x2b0)](_0x4d449f(0x359),{'className':f[_0x4d449f(0x285)](_0x4d449f(0x22b),_0x26e92d&&_0x2b043e&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':'button','onClick':_0x26e92d&&_0x2b043e?_0x187835:void 0x0,'children':[i[_0x4d449f(0x2bc)](_0x4d449f(0x359),{'className':f[_0x4d449f(0x285)](_0x4d449f(0x314),_0x38df1f),'children':_0x9b0850}),i[_0x4d449f(0x2bc)](_0x4d449f(0x359),{'className':_0x4d449f(0x1f4),'children':_0x25079c})]});}return i['jsx'](f[_0x586792(0x319)],{'title':_0x1aefc1,'placement':_0x586792(0x335),'children':_0x3ac7a8()});}var Ie=Object[_0x57e13a(0x2f6)],_e=(_0x2908de,_0x2c5287,_0xe7ec7b,_0x21c51d)=>{const _0x3459c9=_0x57e13a;for(var _0x129057=_0x21c51d>0x1?void 0x0:_0x21c51d?Ie(_0x2c5287,_0xe7ec7b):_0x2c5287,_0x29f222=_0x2908de[_0x3459c9(0x2c5)]-0x1,_0x58425c;_0x29f222>=0x0;_0x29f222--)(_0x58425c=_0x2908de[_0x29f222])&&(_0x129057=_0x58425c(_0x129057)||_0x129057);return _0x129057;},N=(_0x54b37c,_0x413710)=>(_0x16175c,_0x2d8d2f)=>_0x413710(_0x16175c,_0x2d8d2f,_0x54b37c);exports[_0x57e13a(0x2a7)]=class extends u[_0x57e13a(0x32b)]{constructor(_0x3095ce,_0x19e1b2,_0x12e526,_0x5c2789){const _0x591349=_0x57e13a;super(),this[_0x591349(0x2c1)]=_0x3095ce,this['_connectionController']=_0x19e1b2,this[_0x591349(0x1e3)]=_0x12e526,this[_0x591349(0x318)]=_0x5c2789,this[_0x591349(0x2f1)](),this[_0x591349(0x281)]();}['_initAutoConnect'](){const _0x858e3=_0x57e13a,_0x5f5af4=this[_0x858e3(0x318)][_0x858e3(0x1dd)](P);_0x5f5af4!=null&&_0x5f5af4[_0x858e3(0x334)]&&(this['_connectionController'][_0x858e3(0x27f)]=!0x1);}[_0x57e13a(0x281)](){const _0xabb3b5=_0x57e13a,_0x500cf7=this[_0xabb3b5(0x318)][_0xabb3b5(0x1dd)](P);(_0x500cf7==null?void 0x0:_0x500cf7[_0xabb3b5(0x357)])!==!0x1&&this[_0xabb3b5(0x22d)](this[_0xabb3b5(0x1e3)]['registerComponent'](v[_0xabb3b5(0x32c)][_0xabb3b5(0x255)],()=>{const _0x4f5ee0=_0xabb3b5;var _0x565533;return v['connectInjector'](ye({'status$':this[_0x4f5ee0(0x327)][_0x4f5ee0(0x294)],'error$':this[_0x4f5ee0(0x327)][_0x4f5ee0(0x21b)],'onConfigure':()=>this[_0x4f5ee0(0x2b1)](),'showClickable':(_0x565533=_0x500cf7==null?void 0x0:_0x500cf7[_0x4f5ee0(0x334)])!=null?_0x565533:!0x1}),this['_injector']);}));}[_0x57e13a(0x2b1)](){const _0x2ecdb4=_0x57e13a;this[_0x2ecdb4(0x2c1)][_0x2ecdb4(0x267)](exports[_0x2ecdb4(0x28b)])[_0x2ecdb4(0x2b4)]();}},exports[_0x57e13a(0x2a7)]=_e([N(0x0,u[_0x57e13a(0x35e)](u[_0x57e13a(0x220)])),N(0x1,u[_0x57e13a(0x35e)](s[_0x57e13a(0x301)])),N(0x2,v[_0x57e13a(0x232)]),N(0x3,u['IConfigService'])],exports[_0x57e13a(0x2a7)]);function ye(_0x108ff4){const {status$:_0x56f040,error$:_0x1aa61f,onConfigure:_0x4c386d,showClickable:_0x5bbef6}=_0x108ff4;return function(){const _0x45fb5d=_0xd445;return i[_0x45fb5d(0x2bc)](W,{'status$':_0x56f040,'error$':_0x1aa61f,'onConfigure':_0x4c386d,'showClickable':_0x5bbef6});};}function Me(_0x5a114f){const _0x1330a0=_0x57e13a;return{'id':b['id'],'type':v[_0x1330a0(0x2a8)][_0x1330a0(0x21c)],'icon':_0x1330a0(0x34e),'title':_0x1330a0(0x219),'tooltip':_0x1330a0(0x219)};}const Ne={[v[_0x57e13a(0x306)][_0x57e13a(0x21a)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x57e13a(0x2f6)],je=(_0x49b476,_0x381823,_0x11b207,_0x18905f)=>{const _0x1b4289=_0x57e13a;for(var _0x17d262=_0x18905f>0x1?void 0x0:_0x18905f?be(_0x381823,_0x11b207):_0x381823,_0x37d49b=_0x49b476[_0x1b4289(0x2c5)]-0x1,_0x5b84ee;_0x37d49b>=0x0;_0x37d49b--)(_0x5b84ee=_0x49b476[_0x37d49b])&&(_0x17d262=_0x5b84ee(_0x17d262)||_0x17d262);return _0x17d262;},z=(_0x350ffc,_0x1d0ee6)=>(_0x5cc0c2,_0x476724)=>_0x1d0ee6(_0x5cc0c2,_0x476724,_0x350ffc);exports['MCPUIMenuController']=class extends u[_0x57e13a(0x32b)]{constructor(_0x5c6ada,_0x210f3c){const _0x352e6d=_0x57e13a;super(),this[_0x352e6d(0x2a6)]=_0x5c6ada,this[_0x352e6d(0x1fc)]=_0x210f3c,this[_0x352e6d(0x21e)](),this['_initializeMenus']();}[_0x57e13a(0x21e)](){const _0xa000a9=_0x57e13a;[b][_0xa000a9(0x323)](_0x58d84d=>{const _0x1499d5=_0xa000a9;this[_0x1499d5(0x22d)](this['_commandService'][_0x1499d5(0x1f0)](_0x58d84d));});}[_0x57e13a(0x2be)](){const _0x4f0c20=_0x57e13a;this[_0x4f0c20(0x1fc)][_0x4f0c20(0x2d3)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0x57e13a(0x1d7)]),z(0x1,v['IMenuManagerService'])],exports[_0x57e13a(0x31e)]);const Ee={'mcpStatus':{'disconnected':_0x57e13a(0x272),'connecting':_0x57e13a(0x225),'connected':_0x57e13a(0x1d9),'failed':_0x57e13a(0x2d9),'retrying':_0x57e13a(0x28c),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x57e13a(0x295),'sessionOccupied':_0x57e13a(0x2d7),'networkError':_0x57e13a(0x332),'maxRetriesExceeded':_0x57e13a(0x2dd),'clickToConnect':_0x57e13a(0x245),'clickToConfigure':_0x57e13a(0x23f)},'mcpConfig':{'title':_0x57e13a(0x1f7),'description':_0x57e13a(0x361),'apiKey':_0x57e13a(0x2d4),'apiKeyPlaceholder':_0x57e13a(0x1fa),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x57e13a(0x2de),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x57e13a(0x209),'mcpClientConfig':_0x57e13a(0x209),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x57e13a(0x2f2),'configStep1':_0x57e13a(0x297),'configStep2':_0x57e13a(0x307),'configStep3':_0x57e13a(0x2f4),'sessionId':_0x57e13a(0x200),'sessionIdDescription':_0x57e13a(0x34b),'authorizationDescription':_0x57e13a(0x208),'configParameters':_0x57e13a(0x2af),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x57e13a(0x340),'note1':_0x57e13a(0x243),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x57e13a(0x226),'apiApplyInfo':{'title':_0x57e13a(0x1e7),'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':_0x57e13a(0x1eb),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x57e13a(0x2a3),'invalidConfig':_0x57e13a(0x24f),'invalidApiKey':_0x57e13a(0x308)},'connectionStatus':{'disconnected':_0x57e13a(0x276),'connecting':_0x57e13a(0x239),'connected':'Connected','failed':_0x57e13a(0x205),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x57e13a(0x352),'sessionOccupied':_0x57e13a(0x326),'networkError':_0x57e13a(0x2e7),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':_0x57e13a(0x260),'connecting':_0x57e13a(0x290),'connected':_0x57e13a(0x24d),'failed':_0x57e13a(0x265),'retrying':_0x57e13a(0x2fb),'unknown':_0x57e13a(0x275),'unauthorized':_0x57e13a(0x21f),'sessionOccupied':_0x57e13a(0x26f),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x57e13a(0x331),'clickToConnect':_0x57e13a(0x206),'clickToConfigure':_0x57e13a(0x263)},'mcpConfig':{'title':_0x57e13a(0x33d),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x57e13a(0x289),'apiKeyHint':_0x57e13a(0x230),'enableAuth':_0x57e13a(0x216),'enableAuthHint':_0x57e13a(0x20d),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x57e13a(0x266),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x57e13a(0x217),'configStep1':_0x57e13a(0x2a5),'configStep2':_0x57e13a(0x2b6),'configStep3':_0x57e13a(0x2b3),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x57e13a(0x32d),'configParameters':_0x57e13a(0x32f),'maxRetries':_0x57e13a(0x274),'save':_0x57e13a(0x313),'saving':'保存中...','note1':_0x57e13a(0x2f8),'note2':_0x57e13a(0x29c),'configSaved':_0x57e13a(0x350),'configError':_0x57e13a(0x341),'apiApplyInfo':{'title':_0x57e13a(0x27d),'description':_0x57e13a(0x30c),'univerAiLabel':_0x57e13a(0x2ad),'getStarted':_0x57e13a(0x317)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x57e13a(0x1e1),'invalidConfig':_0x57e13a(0x24b),'invalidApiKey':_0x57e13a(0x33c)},'connectionStatus':{'disconnected':_0x57e13a(0x24a),'connecting':_0x57e13a(0x2bb),'connected':'已连接','failed':_0x57e13a(0x210),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x57e13a(0x23c),'sessionOccupied':_0x57e13a(0x2b8),'networkError':_0x57e13a(0x214),'maxRetriesExceeded':_0x57e13a(0x2a9)}}};var Ae=Object[_0x57e13a(0x252)],Oe=Object[_0x57e13a(0x2f6)],De=(_0x2ecf8a,_0x5e0959,_0x3efde)=>_0x5e0959 in _0x2ecf8a?Ae(_0x2ecf8a,_0x5e0959,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3efde}):_0x2ecf8a[_0x5e0959]=_0x3efde,Ue=(_0x33bae2,_0x55f5a9,_0x428566,_0x260cc7)=>{for(var _0x2eec41=_0x260cc7>0x1?void 0x0:_0x260cc7?Oe(_0x55f5a9,_0x428566):_0x55f5a9,_0x5f0968=_0x33bae2['length']-0x1,_0x46ea1;_0x5f0968>=0x0;_0x5f0968--)(_0x46ea1=_0x33bae2[_0x5f0968])&&(_0x2eec41=_0x46ea1(_0x2eec41)||_0x2eec41);return _0x2eec41;},y=(_0x24a1d0,_0x215a79)=>(_0x5d31ef,_0x501566)=>_0x215a79(_0x5d31ef,_0x501566,_0x24a1d0),$e=(_0x4b57c7,_0x33f1b0,_0x4d3394)=>De(_0x4b57c7,_0x33f1b0+'',_0x4d3394);exports[_0x57e13a(0x218)]=class extends u[_0x57e13a(0x269)]{constructor(_0x1b87ae=L,_0x1dbcc1,_0x494dee,_0x523660,_0xb74445,_0x33a59f){const _0x2178b0=_0x57e13a;super(),this[_0x2178b0(0x286)]=_0x1b87ae,this[_0x2178b0(0x2c1)]=_0x1dbcc1,this[_0x2178b0(0x318)]=_0x494dee,this[_0x2178b0(0x1e3)]=_0x523660,this['_localStorageService']=_0xb74445,this[_0x2178b0(0x1f3)]=_0x33a59f;const {..._0x40786a}=u[_0x2178b0(0x32e)]({},L,this['_config']);this['_configService'][_0x2178b0(0x2ec)](P,_0x40786a);}async[_0x57e13a(0x1ef)](){const _0x1f1058=_0x57e13a,_0x118be9=[[exports['MCPConnectionUIController']],[exports[_0x1f1058(0x28b)]],[exports[_0x1f1058(0x31e)]]];this['_injector'][_0x1f1058(0x2d5)](A['ISocketService'])||_0x118be9[_0x1f1058(0x234)]([A[_0x1f1058(0x1ee)],{'useClass':A[_0x1f1058(0x2da)]}]),_0x118be9['forEach'](_0x2f0284=>this['_injector'][_0x1f1058(0x1db)](_0x2f0284)),this[_0x1f1058(0x2c1)][_0x1f1058(0x267)](exports[_0x1f1058(0x2a7)]),this['_injector'][_0x1f1058(0x267)](exports[_0x1f1058(0x28b)]),this[_0x1f1058(0x2c1)]['get'](exports[_0x1f1058(0x31e)]);}},$e(exports[_0x57e13a(0x218)],_0x57e13a(0x23e),_0x57e13a(0x31d)),exports[_0x57e13a(0x218)]=Ue([u[_0x57e13a(0x280)](s[_0x57e13a(0x1ec)]),y(0x1,u['Inject'](u[_0x57e13a(0x220)])),y(0x2,u[_0x57e13a(0x31a)]),y(0x3,v[_0x57e13a(0x232)]),y(0x4,u['ILocalStorageService']),y(0x5,u['Inject'](u[_0x57e13a(0x31f)]))],exports[_0x57e13a(0x218)]),exports[_0x57e13a(0x215)]=V,exports[_0x57e13a(0x2fc)]=W,exports[_0x57e13a(0x362)]=b,exports[_0x57e13a(0x2cf)]=Ee,exports[_0x57e13a(0x270)]=we;
|
|
1
|
+
'use strict';const _0x92697=_0x4cd1;(function(_0x5761be,_0x1177ae){const _0x3e639f=_0x4cd1,_0x25bf1e=_0x5761be();while(!![]){try{const _0x286af4=parseInt(_0x3e639f(0xf3))/0x1+-parseInt(_0x3e639f(0xbe))/0x2+parseInt(_0x3e639f(0xe0))/0x3*(parseInt(_0x3e639f(0x120))/0x4)+-parseInt(_0x3e639f(0x1ac))/0x5+parseInt(_0x3e639f(0x1ad))/0x6*(parseInt(_0x3e639f(0xb6))/0x7)+-parseInt(_0x3e639f(0x1f1))/0x8+parseInt(_0x3e639f(0x17c))/0x9*(parseInt(_0x3e639f(0x176))/0xa);if(_0x286af4===_0x1177ae)break;else _0x25bf1e['push'](_0x25bf1e['shift']());}catch(_0x12cdf9){_0x25bf1e['push'](_0x25bf1e['shift']());}}}(_0x1654,0x599e5));var ae=Object[_0x92697(0x1b8)],le=(_0x114627,_0x57418a,_0x1d3b12)=>_0x57418a in _0x114627?ae(_0x114627,_0x57418a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3b12}):_0x114627[_0x57418a]=_0x1d3b12,I=(_0x14f5c4,_0x3f26e7,_0x430c45)=>le(_0x14f5c4,typeof _0x3f26e7!='symbol'?_0x3f26e7+'':_0x3f26e7,_0x430c45);function _0x1654(){const _0x8acec0=['defs','getConfig','mcpConfig.configStep3','univer-flex\x20univer-items-center\x20univer-gap-2','重连中...','currentColor','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.authorizationDescription','Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','207240VsigQv','_connectionController','未连接','includes','会话\x20ID\x20已被占用,请稍后再试','mcp-config-dialog','MCP\x20Connected','API\x20密钥','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','What\x20is\x20API\x20Key?','_registerComponent','useState','DISCONNECTED','mcpStatus.clickToConnect','error','Saving...','MCPUIMenuController','MCPStatusDisplay','最大重试次数','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','IDialogService','MCPConfigPanel','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','evenodd','getItem','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','mcpConfig.configStep2','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_config','MCP\x20已连接','register','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-text-red-500','clsx','mcpConfig.apiKey','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.validation.apiKeyTooShort','registerComponent','colorChannel1','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','0\x200\x2017\x2016','MCP:\x20超出最大重试次数','get','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','current','748LgTPih','MCP\x20Disconnected','tag','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','_initializeMenus','bottom','_handleConfigure','isValid','Tooltip','MCP_PLUGIN_CONFIG_KEY','重启您的\x20MCP\x20客户端以使配置生效','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','配置\x20MCP\x20使用\x20AI\x20操作电子表格','IUIPartsService','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','NONE','_validateConfig','IMenuManagerService','on-line-icon_clip0_910_349','displayName','__setCustomHeaders','assign','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Click\x20to\x20connect\x20MCP','SESSION_ID_OCCUPIED','none','HelpIcon','svg','enableAutoConnect','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','forwardRef','MCPConnectionError','Configuration\x20Steps:','jsx','mcpConfig.save','children','Invalid\x20configuration','defIds','权限验证失败,请检查您的\x20API\x20密钥','MCP:\x20Unauthorized','保存配置','univer-shrink-0\x20univer-text-red-500','配置无效','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.note1','univer-size-2\x20univer-rounded-full','_initAutoConnect','_configService','univer-text-gray-400','univer-space-y-2','1em','mcpConfig.connectionStatus.connected','配置更改将立即生效','_handleConfigSave','_config$','use','attrs','ILocalStorageService','将以下配置添加到您的\x20MCP\x20客户端设置中:','IConfigService','_apiKey$','MCP:\x20会话\x20ID\x20已被占用','mcpStatus.networkError','mcpConfig.connectionStatus.failed','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','MessageType','网络连接错误,请检查您的网络连接','_dialogService','MCP\x20Connecting...','IMessageService','MCP\x20客户端配置','MCP\x20重连中...','sessionId$','univer-text-blue-600','string','Get\x20your\x20API\x20key\x20in\x20seconds','off-line-icon_clip0_910_343','_initStatusComponent','mcpStatus.retrying','mcpConfig.title','value','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mergeMenu','Configuration\x20Notes:','toString','20610cKpbEy','mcpStatus.unknown','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','showStatus','您的\x20API\x20密钥安全存储在本地存储中','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','3681qDdyCr','mcpStatus.clickToConfigure','univer-text-sm\x20univer-font-medium','mcpStatus.unauthorized','mcpServerUrl','mcpConfig.apiKeyPlaceholder','MCP:\x20Network\x20Error','ISocketService','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','getCurrentConfig','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','什么是\x20API\x20密钥?','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-green-500','UniverMCPUIPlugin','mcpConfig.connectionError.sessionOccupied','entries','mcpStatus.sessionOccupied','white','UniverIcon','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','NETWORK_ERROR','univer_session_id:','BuiltInUIPart','启用身份验证','connectionError$','_componentManager','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-bg-red-500','close','MCP:\x20Max\x20Retries\x20Exceeded','univer-flex\x20univer-items-start\x20univer-gap-3','univer-text-gray-500','_logService','useDependency','mcpConfig.description','disposeWithMe','showDeveloperTools','https://mcp.univer.ai/mcp/?univer_session_id=','Enable\x20authentication\x20for\x20secure\x20connections','check-mark-icon','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','0\x200\x2016\x2016','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','pre','text','OTHERS','您的\x20API\x20密钥将在此浏览器中本地存储','1308075kvxZpx','6834YTwtAj','div','API\x20密钥不能为空','mcpConfig.configSaved','Connecting...','配置步骤:','xlink:href','substring','MCP\x20Configuration','mcpConfig.note2','mcpConfig.apiApplyInfo.univerAiLabel','defineProperty','enUS','validateApiKey','mcpStatus.connected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','http','Configuration\x20saved\x20successfully','univer-bg-green-500','toStringTag','mcpStatus.connecting','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.sessionIdDescription','_messageService','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_uiPartsService','MCP_UI_PLUGIN','getOwnPropertyDescriptor','url(#$1','FAILED','Authorization:','连接中...','Error','show','Click\x20to\x20configure\x20MCP','Retrying...','push','connectionStatus$','univer-size-4','mcp.apiKey','OnLineIcon','clipPath','M0\x200H16V16H0z','MCP:\x20网络错误','mcpConfig.validation.invalidConfig','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required','UNAUTHORIZED','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-flex\x20univer-items-center','MCP\x20Client\x20Configuration','useRef','DependentOn','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','subscribeConfigValue$','next','mcpStatus.maxRetriesExceeded','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','<SESSION_ID>','Button','MCPConnectionUIController','has','random','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','https://console.univer.plus','url(#off-line-icon_clip0_910_343)','idSuffix','mcp-ui.config','1821408usYtUb','Univer\x20AI\x20控制台','会话ID','jsxs','_blank','add','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','translate(.97)','_initConfigSync','请输入您的\x20API\x20密钥','mcpConfig.saving','open','MCP\x20状态未知','配置参数:','useCallback','API\x20Key','MCPConnectionStatus','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','button','超出最大重试次数,请稍后再试','mcpConfig.configInstructions','path','几秒钟内获取您的\x20API\x20密钥','span','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','http://www.w3.org/2000/svg','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20Connection\x20Failed','_commandService','_injector','MCP\x20连接失败','trim','mcpConfig.validation.invalidApiKey','removeItem','mcpStatus.failed','Plugin','registerCommand','Inject','API\x20密钥长度至少需要\x2010\x20位','round','_mcpConnectionController','mcpConfig.configError','_loading$','MenuItemType','connectInjector','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','subscribe','MCP:\x20Session\x20ID\x20Occupied','Disposable','showConfigPanel','univer-space-y-5','mask','mcpConfig.connectionError.unauthorized','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Injector','forEach','help-icon','Disconnected','\x20-\x20','warn','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_localeService','univer.ai','univer-text-white','点击连接\x20MCP','univer-text-xs\x20univer-text-gray-600','_mcpCoreConfig$','url(#on-line-icon_clip0_910_349)','mcpConfig.apiApplyInfo.title','UniverMCPPlugin','Enable\x20Authentication','Module','mcp-ui.command.openConfigPanel','Save\x20Configuration','复制以下\x20JSON\x20配置','MCPConnectionController','保存中...','2219Pgphzl','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','length','MAX_RETRIES_EXCEEDED','ILogService','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_loadStoredApiKey','BehaviorSubject','1300882BeXlZs','CONNECTED','off-line-icon','Success','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Bearer\x20','LocaleService','_menuManagerService','apiKey','univer-text-yellow-500','label','_localStorageService','CommandType','CONNECTING','stringify','univer-font-medium','Univer\x20AI\x20Console','带有\x20Bearer\x20前缀的\x20API\x20密钥。','createElement','univer-space-y-3','replace','RETRYING','Enter\x20your\x20API\x20key','mcpConfig.validation.apiKeyRequired','setConfig','univer-flex\x20univer-items-center\x20univer-gap-3','OffLineIcon','MCPConfigUIController','useObservable','API\x20key\x20with\x20Bearer\x20prefix.','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','fill','_createConfigPanelComponent','1533jHFBuQ','univerjs-icon\x20univerjs-icon-','_initializeCommands','Configuration\x20Parameters:','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','setItem','univer-space-y-4','mcpConfig.configParameters','map'];_0x1654=function(){return _0x8acec0;};return _0x1654();}Object[_0x92697(0x1b8)](exports,Symbol[_0x92697(0x1c0)],{'value':_0x92697(0xb0)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x5ac4f5,..._0x2aa8fc}){const _0x19d601=_0x92697,{icon:_0x3ec5c7,id:_0x1f2696,className:_0x15e572,extend:_0x547e68,..._0x13f579}=_0x2aa8fc,_0x5d642d=(_0x19d601(0xe1)+_0x1f2696+'\x20'+(_0x15e572||''))[_0x19d601(0x210)](),_0x5e2121=d[_0x19d601(0x1e0)]('_'+de());return G(_0x3ec5c7,''+_0x1f2696,{'defIds':_0x3ec5c7[_0x19d601(0x146)],'idSuffix':_0x5e2121[_0x19d601(0x11f)]},{'ref':_0x5ac4f5,'className':_0x5d642d,..._0x13f579},_0x547e68);}function G(_0x1a526b,_0x145812,_0xbac1e0,_0x3f1eb9,_0x1b7954){const _0x474745=_0x92697;return d[_0x474745(0xd0)](_0x1a526b[_0x474745(0x122)],{'key':_0x145812,...ue(_0x1a526b,_0xbac1e0,_0x1b7954),..._0x3f1eb9},(ve(_0x1a526b,_0xbac1e0)[_0x474745(0x144)]||[])['map']((_0x2264c5,_0x22b4d4)=>G(_0x2264c5,_0x145812+'-'+_0x1a526b[_0x474745(0x122)]+'-'+_0x22b4d4,_0xbac1e0,void 0x0,_0x1b7954)));}function ue(_0xb1b59b,_0x1b48f7,_0x387574){const _0x1e8fb9=_0x92697,_0x443565={..._0xb1b59b[_0x1e8fb9(0x159)]};_0x387574!=null&&_0x387574[_0x1e8fb9(0x119)]&&_0x443565['fill']==='colorChannel1'&&(_0x443565[_0x1e8fb9(0xde)]=_0x387574[_0x1e8fb9(0x119)]),_0xb1b59b[_0x1e8fb9(0x122)]==='mask'&&_0x443565['id']&&(_0x443565['id']=_0x443565['id']+_0x1b48f7[_0x1e8fb9(0x1ef)]),Object[_0x1e8fb9(0x18c)](_0x443565)[_0x1e8fb9(0x229)](([_0x31d45d,_0x587dc2])=>{const _0x572da9=_0x1e8fb9;_0x31d45d===_0x572da9(0x224)&&typeof _0x587dc2=='string'&&(_0x443565[_0x31d45d]=_0x587dc2[_0x572da9(0xd2)](/url\(#(.*)\)/,_0x572da9(0x1c9)+_0x1b48f7[_0x572da9(0x1ef)]+')'));});const {defIds:_0xb3628d}=_0x1b48f7;return!_0xb3628d||_0xb3628d[_0x1e8fb9(0xb8)]===0x0||(_0xb1b59b['tag']===_0x1e8fb9(0x158)&&_0x443565['xlink:href']&&(_0x443565[_0x1e8fb9(0x1b3)]=_0x443565[_0x1e8fb9(0x1b3)]+_0x1b48f7['idSuffix']),Object['entries'](_0x443565)['forEach'](([_0x305c0f,_0x3bb73d])=>{const _0x136770=_0x1e8fb9;typeof _0x3bb73d==_0x136770(0x16b)&&(_0x443565[_0x305c0f]=_0x3bb73d[_0x136770(0xd2)](/url\(#(.*)\)/,_0x136770(0x1c9)+_0x1b48f7['idSuffix']+')'));})),_0x443565;}function ve(_0x347426,_0x5507f9){const _0x13df9d=_0x92697;var _0x1070e9;const {defIds:_0x1d5a99}=_0x5507f9;return!_0x1d5a99||_0x1d5a99[_0x13df9d(0xb8)]===0x0?_0x347426:_0x347426[_0x13df9d(0x122)]==='defs'&&((_0x1070e9=_0x347426[_0x13df9d(0x144)])!=null&&_0x1070e9[_0x13df9d(0xb8)])?{..._0x347426,'children':_0x347426['children'][_0x13df9d(0xe8)](_0x24584d=>typeof _0x24584d[_0x13df9d(0x159)]['id']=='string'&&_0x1d5a99&&_0x1d5a99[_0x13df9d(0xf6)](_0x24584d[_0x13df9d(0x159)]['id'])?{..._0x24584d,'attrs':{..._0x24584d[_0x13df9d(0x159)],'id':_0x24584d[_0x13df9d(0x159)]['id']+_0x5507f9[_0x13df9d(0x1ef)]}}:_0x24584d)}:_0x347426;}function de(){const _0x5f3653=_0x92697;return Math[_0x5f3653(0x1eb)]()[_0x5f3653(0x175)](0x24)[_0x5f3653(0x1b4)](0x2,0x8);}_[_0x92697(0x133)]=_0x92697(0x18f);const Ce={'tag':'svg','attrs':{'xmlns':_0x92697(0x20a),'fill':_0x92697(0x13a),'viewBox':'0\x200\x2016\x2016','width':_0x92697(0x153),'height':_0x92697(0x153)},'children':[{'tag':_0x92697(0x206),'attrs':{'fill':'currentColor','d':_0x92697(0x161),'fillRule':'evenodd','clipRule':'evenodd'}}]},H=d[_0x92697(0x13f)](function(_0x58e4b9,_0x55e8a5){const _0x57a24f=_0x92697;return d['createElement'](_,Object[_0x57a24f(0x135)]({},_0x58e4b9,{'id':_0x57a24f(0x1a4),'ref':_0x55e8a5,'icon':Ce}));});H[_0x92697(0x133)]='CheckMarkIcon';const ge={'tag':_0x92697(0x13c),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x92697(0x13a),'viewBox':_0x92697(0x1a6),'width':'1em','height':_0x92697(0x153)},'children':[{'tag':_0x92697(0x206),'attrs':{'fill':_0x92697(0xee),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},B=d[_0x92697(0x13f)](function(_0x155f08,_0x3ac806){const _0x14ab8f=_0x92697;return d['createElement'](_,Object[_0x14ab8f(0x135)]({},_0x155f08,{'id':'close-icon','ref':_0x3ac806,'icon':ge}));});B['displayName']='CloseIcon';const fe={'tag':_0x92697(0x13c),'attrs':{'xmlns':_0x92697(0x20a),'fill':_0x92697(0x13a),'viewBox':'0\x200\x2016\x2016','width':_0x92697(0x153),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x92697(0xee),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x92697(0x206),'attrs':{'fill':_0x92697(0xee),'d':_0x92697(0x11a)}},{'tag':_0x92697(0x206),'attrs':{'fill':_0x92697(0xee),'d':_0x92697(0x1e2),'fillRule':_0x92697(0x10a),'clipRule':_0x92697(0x10a)}}]},F=d[_0x92697(0x13f)](function(_0x3c4618,_0x56bbfd){const _0x5bb892=_0x92697;return d['createElement'](_,Object[_0x5bb892(0x135)]({},_0x3c4618,{'id':_0x5bb892(0x22a),'ref':_0x56bbfd,'icon':fe}));});F[_0x92697(0x133)]=_0x92697(0x13b);const pe={'tag':_0x92697(0x13c),'attrs':{'xmlns':_0x92697(0x20a),'fill':_0x92697(0x13a),'viewBox':_0x92697(0x1a6),'width':_0x92697(0x153),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x92697(0x1ee)},'children':[{'tag':_0x92697(0x206),'attrs':{'stroke':'currentColor','d':_0x92697(0x123),'strokeLinecap':_0x92697(0x218),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x92697(0x1d6),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x92697(0x206),'attrs':{'fill':_0x92697(0x18e),'d':_0x92697(0x1d7)}}]}]}],'defIds':[_0x92697(0x16d)]},Y=d[_0x92697(0x13f)](function(_0x498c7c,_0x108446){const _0x3ac6a1=_0x92697;return d[_0x3ac6a1(0xd0)](_,Object['assign']({},_0x498c7c,{'id':_0x3ac6a1(0xc0),'ref':_0x108446,'icon':pe}));});Y['displayName']=_0x92697(0xd8);const he={'tag':_0x92697(0x13c),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x92697(0x11b),'width':_0x92697(0x153),'height':_0x92697(0x153)},'children':[{'tag':'g','attrs':{'clipPath':_0x92697(0xac)},'children':[{'tag':_0x92697(0x206),'attrs':{'stroke':_0x92697(0xee),'d':_0x92697(0x10c),'strokeLinecap':_0x92697(0x218),'strokeLinejoin':_0x92697(0x218),'strokeWidth':1.2}}]},{'tag':_0x92697(0xe9),'attrs':{},'children':[{'tag':_0x92697(0x1d6),'attrs':{'id':_0x92697(0x132)},'children':[{'tag':_0x92697(0x206),'attrs':{'fill':_0x92697(0x18e),'d':'M0\x200H16V16H0z','transform':_0x92697(0x1f8)}}]}]}],'defIds':[_0x92697(0x132)]},q=d[_0x92697(0x13f)](function(_0x4c0a55,_0x3991bf){const _0xd80d80=_0x92697;return d[_0xd80d80(0xd0)](_,Object[_0xd80d80(0x135)]({},_0x4c0a55,{'id':'on-line-icon','ref':_0x3991bf,'icon':he}));});q[_0x92697(0x133)]=_0x92697(0x1d5);function V(_0x1a5f62){const _0x1d1d93=_0x92697;var _0x223a63,_0x5c0638;const {mcpCoreConfig:_0x55820e,onSave:_0x56abf6,loading:_0x24426e=!0x1,config:_0x549ff2,connectionStatus$:_0x4f89aa,connectionError$:_0x507e57,currentApiKey$:_0x49e9c4,currentSessionId$:_0x466b7e}=_0x1a5f62,_0x48bdf3=v[_0x1d1d93(0x19e)](u['LocaleService']),_0x57d7b9=v[_0x1d1d93(0xda)](_0x4f89aa,s[_0x1d1d93(0x201)][_0x1d1d93(0xff)]),_0x8fcf25=v[_0x1d1d93(0xda)](_0x507e57,s[_0x1d1d93(0x140)][_0x1d1d93(0x12f)]),_0x41cbec=v[_0x1d1d93(0xda)](_0x466b7e,''),_0x15d807=v[_0x1d1d93(0xda)](_0x49e9c4,''),[_0x22bb54,_0x4f3aea]=d[_0x1d1d93(0xfe)](_0x15d807||''),_0x18caff=!0x0,_0xdcefa9=_0x549ff2[_0x1d1d93(0x1a1)]&&_0x55820e['mcpServerUrl']&&(_0x55820e[_0x1d1d93(0x180)][_0x1d1d93(0xf6)]('univer.plus')||_0x55820e[_0x1d1d93(0x180)][_0x1d1d93(0xf6)](_0x1d1d93(0xa7))),_0x2a9023=(_0x223a63=_0x55820e['mcpServerUrl'])==null?void 0x0:_0x223a63[_0x1d1d93(0xf6)]('univer.plus'),_0x4c33de=(_0x5c0638=_0x55820e[_0x1d1d93(0x180)])==null?void 0x0:_0x5c0638[_0x1d1d93(0xf6)](_0x1d1d93(0xa7)),_0x38917b=_0x2a9023?_0x1d1d93(0x1ed):'https://console.univer.ai',_0xb6dd1a=_0x549ff2['showDeveloperTools']&&(_0x2a9023||_0x4c33de),[_0xb04598,_0xda0eda]=d[_0x1d1d93(0xfe)](!_0x22bb54[_0x1d1d93(0x210)]()),_0x1d8563=(_0x3e3f92,_0x261661)=>{const _0x474be6=_0x1d1d93;if(_0x261661===s['MCPConnectionError'][_0x474be6(0x1dc)])return _0x474be6(0xe4);switch(_0x3e3f92){case s[_0x474be6(0x201)][_0x474be6(0xbf)]:return _0x474be6(0xc2);case s[_0x474be6(0x201)][_0x474be6(0xcb)]:case s['MCPConnectionStatus']['RETRYING']:return _0x474be6(0x197);case s[_0x474be6(0x201)][_0x474be6(0x1ca)]:return _0x474be6(0xe4);default:return _0x474be6(0xfb);}},_0x187705=(_0x3867bf,_0x3279ad)=>{const _0x171e2f=_0x1d1d93;if(_0x3279ad===s[_0x171e2f(0x140)][_0x171e2f(0x1dc)])return _0x171e2f(0x198);switch(_0x3867bf){case s[_0x171e2f(0x201)][_0x171e2f(0xbf)]:return _0x171e2f(0x1bf);case s[_0x171e2f(0x201)][_0x171e2f(0xcb)]:case s[_0x171e2f(0x201)][_0x171e2f(0xd3)]:return'univer-bg-blue-500';case s[_0x171e2f(0x201)]['FAILED']:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x2ae5cf=_0x2f5528=>{const _0x2c9772=_0x1d1d93;switch(_0x2f5528){case s[_0x2c9772(0x201)][_0x2c9772(0xbf)]:return _0x48bdf3['t'](_0x2c9772(0x154));case s[_0x2c9772(0x201)]['CONNECTING']:return _0x48bdf3['t']('mcpConfig.connectionStatus.connecting');case s[_0x2c9772(0x201)][_0x2c9772(0x1ca)]:return _0x48bdf3['t'](_0x2c9772(0x160));case s[_0x2c9772(0x201)][_0x2c9772(0xd3)]:return _0x48bdf3['t']('mcpConfig.connectionStatus.retrying');default:return _0x48bdf3['t']('mcpConfig.connectionStatus.disconnected');}},_0x4b8ba9=_0x4d3a9d=>{const _0x11a72f=_0x1d1d93;switch(_0x4d3a9d){case s[_0x11a72f(0x140)][_0x11a72f(0x1dc)]:return _0x48bdf3['t'](_0x11a72f(0x225));case s['MCPConnectionError'][_0x11a72f(0x139)]:return _0x48bdf3['t'](_0x11a72f(0x18b));case s[_0x11a72f(0x140)][_0x11a72f(0x191)]:return _0x48bdf3['t']('mcpConfig.connectionError.networkError');case s[_0x11a72f(0x140)][_0x11a72f(0xb9)]:return _0x48bdf3['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x199b40=d[_0x1d1d93(0x1ff)](()=>{const _0x37229c=_0x1d1d93,_0x4c123b={..._0x55820e,'apiKey':_0x22bb54[_0x37229c(0x210)](),'enableAuth':_0x18caff};_0x56abf6(_0x4c123b);},[_0x55820e,_0x22bb54,_0x18caff,_0x56abf6]),_0x4c3e35=_0x22bb54['trim']()[_0x1d1d93(0xb8)]>0x0;return i[_0x1d1d93(0x1f4)]('div',{'className':_0x1d1d93(0x1a7),'children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x14c),'children':i[_0x1d1d93(0x1f4)]('div',{'className':_0x1d1d93(0xd7),'children':[i[_0x1d1d93(0x142)]('div',{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':i[_0x1d1d93(0x142)](_0x1d1d93(0x208),{'className':_0x1d1d93(0xa8),'children':'⚙'})}),i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'children':i['jsx']('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x48bdf3['t'](_0x1d1d93(0x19f))})})]})}),i['jsxs'](_0x1d1d93(0x1ae),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':f[_0x1d1d93(0x114)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x1d8563(_0x57d7b9,_0x8fcf25)),'children':i[_0x1d1d93(0x1f4)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':f[_0x1d1d93(0x114)](_0x1d1d93(0x14e),_0x187705(_0x57d7b9,_0x8fcf25))}),i['jsx'](_0x1d1d93(0x208),{'className':_0x1d1d93(0x17e),'children':_0x2ae5cf(_0x57d7b9)})]})}),_0x8fcf25!==s['MCPConnectionError'][_0x1d1d93(0x12f)]&&(_0x57d7b9===s[_0x1d1d93(0x201)][_0x1d1d93(0x1ca)]||_0x8fcf25===s[_0x1d1d93(0x140)][_0x1d1d93(0x1dc)])&&i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0xef),'children':i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x20b),'children':[i[_0x1d1d93(0x142)]('span',{'className':_0x1d1d93(0x14a),'children':'⚠️'}),i[_0x1d1d93(0x142)]('p',{'className':_0x1d1d93(0x11e),'children':_0x4b8ba9(_0x8fcf25)})]})})]}),i['jsx'](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x227),'children':i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x223),'children':[i[_0x1d1d93(0x1f4)]('div',{'className':_0x1d1d93(0x152),'children':[i[_0x1d1d93(0x1f4)](_0x1d1d93(0xc8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[i[_0x1d1d93(0x142)]('span',{'children':'🔑'}),'\x20',_0x48bdf3['t'](_0x1d1d93(0x115)),i[_0x1d1d93(0x142)]('span',{'className':_0x1d1d93(0x113),'children':'*'}),_0xdcefa9&&i[_0x1d1d93(0x142)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x48bdf3['t'](_0x1d1d93(0xad)),'role':_0x1d1d93(0x203),'onClick':()=>_0xda0eda(!0x0),'children':i[_0x1d1d93(0x142)](F,{})})]}),i[_0x1d1d93(0x142)](f['Input'],{'type':_0x1d1d93(0x1a9),'placeholder':_0x48bdf3['t'](_0x1d1d93(0x181)),'value':_0x22bb54,'disabled':_0x24426e,'autoComplete':'off','onChange':_0x4f3aea}),i['jsx']('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x48bdf3['t']('mcpConfig.apiKeyHint')})]}),_0xdcefa9&&_0xb04598&&i['jsxs']('div',{'className':_0x1d1d93(0x12b),'children':[i[_0x1d1d93(0x142)]('a',{'className':_0x1d1d93(0x1f7),'role':'button','onClick':()=>_0xda0eda(!0x1),'children':i[_0x1d1d93(0x142)](B,{'className':_0x1d1d93(0x1d3)})}),i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0xb7),'children':[i['jsx'](_0x1d1d93(0x1ae),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i['jsx'](_0x1d1d93(0x208),{'className':_0x1d1d93(0x16a),'children':'🚀'})}),i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':'univer-flex-1','children':[i[_0x1d1d93(0x142)]('h4',{'className':_0x1d1d93(0x17b),'children':_0x48bdf3['t'](_0x1d1d93(0xad))}),i[_0x1d1d93(0x142)]('p',{'className':_0x1d1d93(0x186),'children':_0x48bdf3['t']('mcpConfig.apiApplyInfo.description')}),i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x112),'children':_0xb6dd1a&&i[_0x1d1d93(0x1f4)]('a',{'className':_0x1d1d93(0x184),'href':_0x38917b,'target':_0x1d1d93(0x1f5),'rel':'noopener\x20noreferrer','children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x208),{'children':'🤖'}),_0x48bdf3['t'](_0x1d1d93(0x1b7)),i[_0x1d1d93(0x142)](_0x1d1d93(0x208),{'className':_0x1d1d93(0x151),'children':'↗'})]})}),i['jsxs'](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x13e),'children':['✨','\x20',_0x48bdf3['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x549ff2[_0x1d1d93(0x1a1)]&&i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i[_0x1d1d93(0x1f4)]('h4',{'className':_0x1d1d93(0x1c5),'children':[i['jsx']('span',{'children':'🔗'}),'\x20',_0x48bdf3['t']('mcpConfig.connectionInfo')]}),i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0xe6),'children':[i[_0x1d1d93(0x1f4)]('div',{'className':_0x1d1d93(0xd1),'children':[i[_0x1d1d93(0x142)]('p',{'className':_0x1d1d93(0xaa),'children':_0x48bdf3['t'](_0x1d1d93(0x205))}),i[_0x1d1d93(0x1f4)]('div',{'className':'univer-space-y-2','children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x1bc),'children':_0x48bdf3['t']('mcpConfig.configStepTitle')}),i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x12e),'children':[i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0xec),'children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x208),{'className':_0x1d1d93(0x21e),'children':'1'}),_0x48bdf3['t']('mcpConfig.configStep1')]}),i[_0x1d1d93(0x1f4)]('div',{'className':_0x1d1d93(0xec),'children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x208),{'className':_0x1d1d93(0x21e),'children':'2'}),_0x48bdf3['t'](_0x1d1d93(0x10d))]}),i[_0x1d1d93(0x1f4)]('div',{'className':_0x1d1d93(0xec),'children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x208),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x48bdf3['t'](_0x1d1d93(0xeb))]})]})]})]}),i[_0x1d1d93(0x1f4)]('div',{'className':_0x1d1d93(0x152),'children':[i['jsx'](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x1bc),'children':_0x1d1d93(0x1b5)}),i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x188),'children':i[_0x1d1d93(0x142)](_0x1d1d93(0x1a8),{'className':_0x1d1d93(0x172),'children':JSON[_0x1d1d93(0xcc)]({'mcpServers':{'univer':{'url':_0x1d1d93(0x1a2)+(_0x41cbec||_0x1d1d93(0x1e7)),'type':_0x1d1d93(0x1bd),'headers':{'Authorization':_0x1d1d93(0xc3)+(_0x22bb54||'<API_KEY>')}}}},null,0x2)})})]}),i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':'univer-space-y-3','children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x1bc),'children':_0x48bdf3['t'](_0x1d1d93(0xe7))}),i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x152),'children':[i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0x19b),'children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i['jsxs'](_0x1d1d93(0x1ae),{'className':'univer-min-w-0\x20univer-flex-1','children':[i['jsx']('div',{'className':_0x1d1d93(0x1a5),'children':_0x1d1d93(0x192)}),i[_0x1d1d93(0x142)]('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x48bdf3['t'](_0x1d1d93(0x1c3))})]})]}),i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0xdc)}),i[_0x1d1d93(0x1f4)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x1d1d93(0x142)]('div',{'className':_0x1d1d93(0x1a5),'children':_0x1d1d93(0x1cb)}),i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x48bdf3['t'](_0x1d1d93(0xf0))})]})]})]})]})]})]}),i['jsx'](f[_0x1d1d93(0x1e8)],{'onClick':_0x199b40,'disabled':!_0x4c3e35||_0x24426e,'className':_0x1d1d93(0x1dd),'children':_0x24426e?i['jsxs'](_0x1d1d93(0x208),{'className':_0x1d1d93(0xec),'children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x208),{'children':'⟲'}),_0x48bdf3['t'](_0x1d1d93(0x1fb))]}):i[_0x1d1d93(0x1f4)](_0x1d1d93(0x208),{'className':_0x1d1d93(0xec),'children':[i['jsx'](H,{}),_0x48bdf3['t'](_0x1d1d93(0x143))]})}),i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'className':'univer-flex\x20univer-gap-3','children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x208),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i[_0x1d1d93(0x1f4)]('div',{'className':_0x1d1d93(0x136),'children':[i[_0x1d1d93(0x142)](_0x1d1d93(0x1ae),{'className':_0x1d1d93(0xcd),'children':_0x1d1d93(0x174)}),i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'children':['•',_0x48bdf3['t'](_0x1d1d93(0x14d))]}),i[_0x1d1d93(0x1f4)](_0x1d1d93(0x1ae),{'children':['•',_0x48bdf3['t'](_0x1d1d93(0x1b6))]})]})]})})]})})]});}const P=_0x92697(0x1f0),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x92697(0x1c8)],xe=(_0x72f805,_0x5f0712,_0x43f4e1,_0x542b4c)=>{const _0x4f0816=_0x92697;for(var _0x50b39b=_0x542b4c>0x1?void 0x0:_0x542b4c?me(_0x5f0712,_0x43f4e1):_0x5f0712,_0x257c3b=_0x72f805[_0x4f0816(0xb8)]-0x1,_0x669653;_0x257c3b>=0x0;_0x257c3b--)(_0x669653=_0x72f805[_0x257c3b])&&(_0x50b39b=_0x669653(_0x50b39b)||_0x50b39b);return _0x50b39b;},g=(_0x47f1a4,_0x5ac681)=>(_0x4243fc,_0x30dd06)=>_0x5ac681(_0x4243fc,_0x30dd06,_0x47f1a4);const O=_0x92697(0x1d4),D=_0x92697(0xf8);exports[_0x92697(0xd9)]=class extends u[_0x92697(0x221)]{constructor(_0x34a2cb,_0x3c890e,_0x2108d8,_0x352c5b,_0x49018b,_0x5d3166,_0x2d7c86,_0x146089,_0x4ea8da,_0x3f4041){const _0x3804b6=_0x92697;super(),I(this,_0x3804b6(0x21b),new M[(_0x3804b6(0xbd))](!0x1)),I(this,_0x3804b6(0xab),new M[(_0x3804b6(0xbd))]({})),I(this,_0x3804b6(0x157),new M[(_0x3804b6(0xbd))]({})),I(this,_0x3804b6(0x15d),new M[(_0x3804b6(0xbd))]('')),I(this,_0x3804b6(0x156),async _0x1fe509=>{const _0x905f8=_0x3804b6;var _0x582ff4,_0x12abf2;this[_0x905f8(0x21b)][_0x905f8(0x1e4)](!0x0);try{const _0x4f7952=await this[_0x905f8(0x130)](_0x1fe509);if(!_0x4f7952[_0x905f8(0x127)]){this[_0x905f8(0x1c4)][_0x905f8(0x1ce)]({'type':f['MessageType'][_0x905f8(0x1cd)],'content':_0x4f7952['errorMessage']||this[_0x905f8(0xa6)]['t'](_0x905f8(0x1d9))});return;}_0x1fe509['apiKey']?await this[_0x905f8(0xc9)][_0x905f8(0xe5)](O,_0x1fe509[_0x905f8(0xc6)][_0x905f8(0x210)]()):await this[_0x905f8(0xc9)][_0x905f8(0x212)](O),this[_0x905f8(0x15d)][_0x905f8(0x1e4)](((_0x582ff4=_0x1fe509[_0x905f8(0xc6)])==null?void 0x0:_0x582ff4[_0x905f8(0x210)]())||''),this[_0x905f8(0x219)][_0x905f8(0x134)]({'Authorization':_0x905f8(0xc3)+((_0x12abf2=_0x1fe509[_0x905f8(0xc6)])==null?void 0x0:_0x12abf2[_0x905f8(0x210)]())}),this['_messageService']['show']({'type':f[_0x905f8(0x162)][_0x905f8(0xc1)],'content':this[_0x905f8(0xa6)]['t'](_0x905f8(0x1b0))}),setTimeout(()=>{const _0x5f4b11=_0x905f8;this[_0x5f4b11(0x164)][_0x5f4b11(0x199)](D);},0x320);}catch(_0x2cc91b){this[_0x905f8(0x19d)][_0x905f8(0x101)](_0x905f8(0xbb),_0x2cc91b),this[_0x905f8(0x1c4)][_0x905f8(0x1ce)]({'type':f[_0x905f8(0x162)][_0x905f8(0x1cd)],'content':this[_0x905f8(0xa6)]['t'](_0x905f8(0x21a))});}finally{this['_loading$'][_0x905f8(0x1e4)](!0x1);}}),(this['_injector']=_0x34a2cb,this[_0x3804b6(0x1c6)]=_0x3c890e,this[_0x3804b6(0x150)]=_0x2108d8,this[_0x3804b6(0xc9)]=_0x352c5b,this[_0x3804b6(0x164)]=_0x49018b,this[_0x3804b6(0x1c4)]=_0x5d3166,this['_componentManager']=_0x2d7c86,this[_0x3804b6(0xa6)]=_0x146089,this[_0x3804b6(0x19d)]=_0x4ea8da,this['_mcpConnectionController']=_0x3f4041,this[_0x3804b6(0x1f9)](),this[_0x3804b6(0xbc)](),this[_0x3804b6(0xfd)]());}[_0x92697(0x222)](){const _0xc5677b=_0x92697,_0x135d9a=this[_0xc5677b(0x150)][_0xc5677b(0xea)](P);_0x135d9a!=null&&_0x135d9a['showDeveloperTools']&&this['_dialogService'][_0xc5677b(0x1fc)]({'id':D,'title':{'title':this['_localeService']['t'](_0xc5677b(0x170))},'children':{'label':_0xc5677b(0x108)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x34f708=_0xc5677b;this[_0x34f708(0x164)][_0x34f708(0x199)](D);}});}[_0x92697(0x185)](){const _0x2b624b=_0x92697;return this[_0x2b624b(0xab)]['value'];}['_registerComponent'](){const _0x5d66cd=_0x92697;this['disposeWithMe'](this[_0x5d66cd(0x196)][_0x5d66cd(0x111)](_0x5d66cd(0x108),this['_createConfigPanelComponent']()));}[_0x92697(0xdf)](){const _0x4091ef=_0x92697;return v[_0x4091ef(0x21d)](()=>{const _0x4c4a10=_0x4091ef;var _0x4ea127,_0x1fff17,_0x3c5b18;return i[_0x4c4a10(0x142)](V,{'config':this[_0x4c4a10(0x157)][_0x4c4a10(0x171)],'mcpCoreConfig':this[_0x4c4a10(0xab)][_0x4c4a10(0x171)],'currentApiKey$':this[_0x4c4a10(0x15d)],'onSave':this[_0x4c4a10(0x156)],'loading':this[_0x4c4a10(0x21b)][_0x4c4a10(0x171)],'connectionStatus$':(_0x4ea127=this['_mcpConnectionController'])==null?void 0x0:_0x4ea127[_0x4c4a10(0x1d2)],'connectionError$':(_0x1fff17=this[_0x4c4a10(0x219)])==null?void 0x0:_0x1fff17['connectionError$'],'currentSessionId$':(_0x3c5b18=this[_0x4c4a10(0x219)])==null?void 0x0:_0x3c5b18[_0x4c4a10(0x169)]});},this[_0x4091ef(0x20e)]);}[_0x92697(0x1f9)](){const _0x4b38a5=_0x92697;this[_0x4b38a5(0x1a0)](this['_configService'][_0x4b38a5(0x1e3)](s['MCP_PLUGIN_CONFIG_KEY'])[_0x4b38a5(0x21f)](_0x4bad07=>{const _0x4a8867=_0x4b38a5;this[_0x4a8867(0xab)]['next'](_0x4bad07||{});}));const _0x945834=this[_0x4b38a5(0x150)]['getConfig'](s[_0x4b38a5(0x129)]);this[_0x4b38a5(0xab)]['next'](_0x945834||{}),this[_0x4b38a5(0x1a0)](this[_0x4b38a5(0x150)]['subscribeConfigValue$'](P)[_0x4b38a5(0x21f)](_0x4dcc3e=>{const _0x4bfe69=_0x4b38a5;this[_0x4bfe69(0x157)]['next'](_0x4dcc3e||{});}));const _0x2759ef=this[_0x4b38a5(0x150)][_0x4b38a5(0xea)](P);this[_0x4b38a5(0x157)][_0x4b38a5(0x1e4)](_0x2759ef||{});}async[_0x92697(0xbc)](){const _0x33bb2f=_0x92697,_0x442b01=this[_0x33bb2f(0x150)][_0x33bb2f(0xea)](P);if(!(_0x442b01!=null&&_0x442b01[_0x33bb2f(0x1a1)]))return;const _0x4342fd=await this[_0x33bb2f(0xc9)][_0x33bb2f(0x10b)](O);_0x4342fd&&(this['_mcpConnectionController'][_0x33bb2f(0x134)]({'Authorization':_0x33bb2f(0xc3)+_0x4342fd}),this[_0x33bb2f(0x15d)][_0x33bb2f(0x1e4)](_0x4342fd));}async[_0x92697(0x130)](_0x375e43){const _0x1ef748=_0x92697;if(!_0x375e43['apiKey']||_0x375e43['apiKey']['trim']()[_0x1ef748(0xb8)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1ef748(0xa6)]['t'](_0x1ef748(0xd5))};if(_0x375e43[_0x1ef748(0xc6)][_0x1ef748(0x210)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1ef748(0xa6)]['t'](_0x1ef748(0x117))};try{const _0x5ac3ef=await this['_injector']['get'](s[_0x1ef748(0xb4)])[_0x1ef748(0x1ba)](_0x375e43[_0x1ef748(0xc6)][_0x1ef748(0x210)]());return _0x5ac3ef[_0x1ef748(0x127)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5ac3ef[_0x1ef748(0x101)]||this[_0x1ef748(0xa6)]['t'](_0x1ef748(0x211))};}catch(_0x728c92){return console[_0x1ef748(0x22d)](_0x1ef748(0x202),_0x728c92),{'isValid':!0x0};}}},exports[_0x92697(0xd9)]=xe([g(0x0,u[_0x92697(0x216)](u[_0x92697(0x228)])),g(0x1,v[_0x92697(0x12d)]),g(0x2,u['IConfigService']),g(0x3,u[_0x92697(0x15a)]),g(0x4,v[_0x92697(0x107)]),g(0x5,v[_0x92697(0x166)]),g(0x6,u[_0x92697(0x216)](v['ComponentManager'])),g(0x7,u[_0x92697(0x216)](u[_0x92697(0xc4)])),g(0x8,u[_0x92697(0xba)]),g(0x9,u[_0x92697(0x216)](s[_0x92697(0xb4)]))],exports[_0x92697(0xd9)]);const b={'id':_0x92697(0xb1),'type':u[_0x92697(0xca)]['COMMAND'],'handler':async(_0x1ad9ec,_0x222f29)=>(_0x1ad9ec[_0x92697(0x11d)](exports['MCPConfigUIController'])[_0x92697(0x222)](),!0x0)};function Z(_0x64e9d3,_0x33b7e4){const _0x474a44=_0x92697;switch(_0x64e9d3){case s['MCPConnectionStatus'][_0x474a44(0xff)]:return'mcpStatus.disconnected';case s[_0x474a44(0x201)][_0x474a44(0xcb)]:return _0x474a44(0x1c1);case s[_0x474a44(0x201)]['CONNECTED']:return _0x474a44(0x1bb);case s[_0x474a44(0x201)][_0x474a44(0x1ca)]:switch(_0x33b7e4){case s[_0x474a44(0x140)]['UNAUTHORIZED']:return _0x474a44(0x17f);case s[_0x474a44(0x140)][_0x474a44(0x139)]:return _0x474a44(0x18d);case s[_0x474a44(0x140)][_0x474a44(0x191)]:return _0x474a44(0x15f);case s['MCPConnectionError'][_0x474a44(0xb9)]:return _0x474a44(0x1e5);default:return _0x474a44(0x213);}case s[_0x474a44(0x201)][_0x474a44(0xd3)]:return _0x474a44(0x16f);default:return _0x474a44(0x177);}}function Se(_0x2272d9,_0x2401da,_0x511366,_0x4d0f73=!0x0){const _0x124a1b=_0x92697,_0x53e029=Z(_0x2272d9,_0x2401da),_0x1844da=_0x511366['t'](_0x53e029);return _0x4d0f73?_0x2272d9===s[_0x124a1b(0x201)][_0x124a1b(0xff)]&&_0x2401da===s[_0x124a1b(0x140)]['UNAUTHORIZED']?_0x1844da+_0x124a1b(0x22c)+_0x511366['t'](_0x124a1b(0x17d)):_0x2272d9===s[_0x124a1b(0x201)][_0x124a1b(0xbf)]?''+_0x1844da:_0x2272d9===s[_0x124a1b(0x201)][_0x124a1b(0xff)]||_0x2272d9===s[_0x124a1b(0x201)][_0x124a1b(0x1ca)]?_0x1844da+'\x20-\x20'+_0x511366['t'](_0x124a1b(0x100)):_0x1844da:_0x1844da;}function Pe(_0x497f17){const _0x5e56ed=_0x92697;switch(_0x497f17){case s[_0x5e56ed(0x201)][_0x5e56ed(0xbf)]:return _0x5e56ed(0x189);case s[_0x5e56ed(0x201)][_0x5e56ed(0xcb)]:case s[_0x5e56ed(0x201)][_0x5e56ed(0xd3)]:return _0x5e56ed(0xc7);case s['MCPConnectionStatus']['FAILED']:case s[_0x5e56ed(0x201)]['DISCONNECTED']:return'univer-text-red-500';default:return _0x5e56ed(0x19c);}}function W(_0x1a9021){const _0x230b4e=_0x92697,{status$:_0x46f20c,error$:_0x10ae55,onConfigure:_0x19ba54,showClickable:_0x31d36a=!0x0}=_0x1a9021,_0x4e7ea3=v['useObservable'](_0x46f20c,s[_0x230b4e(0x201)][_0x230b4e(0xff)]),_0x16105f=v['useObservable'](_0x10ae55,s[_0x230b4e(0x140)]['NONE']),_0x21c16c=v['useDependency'](u['LocaleService']),_0xe74d1b=_0x4e7ea3===s[_0x230b4e(0x201)][_0x230b4e(0xbf)];_0x4e7ea3===s[_0x230b4e(0x201)][_0x230b4e(0xcb)]||s[_0x230b4e(0x201)]['RETRYING'];const _0x55c782=_0x21c16c['t'](Z(_0x4e7ea3,_0x16105f)),_0x44e0bf=Se(_0x4e7ea3,_0x16105f,_0x21c16c,_0x31d36a),_0x2d24bc=Pe(_0x4e7ea3),_0xd8fc2=_0xe74d1b?i[_0x230b4e(0x142)](q,{}):i[_0x230b4e(0x142)](Y,{}),_0x4fe84b=d[_0x230b4e(0x1ff)](()=>{_0x31d36a&&_0x19ba54&&_0x19ba54();},[_0x31d36a,_0x19ba54]);function _0x366302(){const _0xa60f84=_0x230b4e;return i[_0xa60f84(0x1f4)]('div',{'className':f['clsx'](_0xa60f84(0x1de),_0x31d36a&&_0x19ba54&&_0xa60f84(0x1e6)),'role':_0xa60f84(0x203),'onClick':_0x31d36a&&_0x19ba54?_0x4fe84b:void 0x0,'children':[i[_0xa60f84(0x142)]('div',{'className':f[_0xa60f84(0x114)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x2d24bc),'children':_0xd8fc2}),i[_0xa60f84(0x142)]('div',{'className':_0xa60f84(0x226),'children':_0x55c782})]});}return i[_0x230b4e(0x142)](f[_0x230b4e(0x128)],{'title':_0x44e0bf,'placement':_0x230b4e(0x125),'children':_0x366302()});}var Ie=Object[_0x92697(0x1c8)],_e=(_0x26f40b,_0x2c55bb,_0x163594,_0x3a1b61)=>{const _0x12ab3d=_0x92697;for(var _0x14c0aa=_0x3a1b61>0x1?void 0x0:_0x3a1b61?Ie(_0x2c55bb,_0x163594):_0x2c55bb,_0x3ff5f2=_0x26f40b[_0x12ab3d(0xb8)]-0x1,_0x586eca;_0x3ff5f2>=0x0;_0x3ff5f2--)(_0x586eca=_0x26f40b[_0x3ff5f2])&&(_0x14c0aa=_0x586eca(_0x14c0aa)||_0x14c0aa);return _0x14c0aa;},N=(_0x3ee438,_0x13b246)=>(_0x614323,_0x5ca5c2)=>_0x13b246(_0x614323,_0x5ca5c2,_0x3ee438);exports[_0x92697(0x1e9)]=class extends u[_0x92697(0x221)]{constructor(_0x38aeba,_0x331050,_0x57ec0c,_0x3fd041){const _0x944e0e=_0x92697;super(),this[_0x944e0e(0x20e)]=_0x38aeba,this[_0x944e0e(0xf4)]=_0x331050,this[_0x944e0e(0x1c6)]=_0x57ec0c,this[_0x944e0e(0x150)]=_0x3fd041,this[_0x944e0e(0x14f)](),this[_0x944e0e(0x16e)]();}['_initAutoConnect'](){const _0x194574=_0x92697,_0xc1a352=this['_configService'][_0x194574(0xea)](P);_0xc1a352!=null&&_0xc1a352[_0x194574(0x1a1)]&&(this['_connectionController'][_0x194574(0x13d)]=!0x1);}['_initStatusComponent'](){const _0x129d97=_0x92697,_0x4dddb1=this[_0x129d97(0x150)][_0x129d97(0xea)](P);(_0x4dddb1==null?void 0x0:_0x4dddb1[_0x129d97(0x179)])!==!0x1&&this[_0x129d97(0x1a0)](this[_0x129d97(0x1c6)][_0x129d97(0x118)](v[_0x129d97(0x193)]['HEADER_MENU'],()=>{const _0x1302de=_0x129d97;var _0x48c8c7;return v[_0x1302de(0x21d)](ye({'status$':this[_0x1302de(0xf4)][_0x1302de(0x1d2)],'error$':this['_connectionController'][_0x1302de(0x195)],'onConfigure':()=>this[_0x1302de(0x126)](),'showClickable':(_0x48c8c7=_0x4dddb1==null?void 0x0:_0x4dddb1[_0x1302de(0x1a1)])!=null?_0x48c8c7:!0x1}),this[_0x1302de(0x20e)]);}));}[_0x92697(0x126)](){const _0x1d3ee9=_0x92697;this[_0x1d3ee9(0x20e)][_0x1d3ee9(0x11d)](exports[_0x1d3ee9(0xd9)])[_0x1d3ee9(0x222)]();}},exports[_0x92697(0x1e9)]=_e([N(0x0,u[_0x92697(0x216)](u['Injector'])),N(0x1,u[_0x92697(0x216)](s[_0x92697(0xb4)])),N(0x2,v[_0x92697(0x12d)]),N(0x3,u[_0x92697(0x15c)])],exports[_0x92697(0x1e9)]);function ye(_0x732279){const {status$:_0x21b1e4,error$:_0x32c3dc,onConfigure:_0x465e1c,showClickable:_0x21d775}=_0x732279;return function(){const _0x5ff337=_0x4cd1;return i[_0x5ff337(0x142)](W,{'status$':_0x21b1e4,'error$':_0x32c3dc,'onConfigure':_0x465e1c,'showClickable':_0x21d775});};}function Me(_0x24b2b1){const _0x218f28=_0x92697;return{'id':b['id'],'type':v[_0x218f28(0x21c)]['BUTTON'],'icon':'MenuIcon','title':_0x218f28(0x170),'tooltip':'mcpConfig.title'};}const Ne={[v['RibbonStartGroup'][_0x92697(0x1aa)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};function _0x4cd1(_0x1de407,_0x2e6e59){_0x1de407=_0x1de407-0xa6;const _0x165447=_0x1654();let _0x4cd1cb=_0x165447[_0x1de407];return _0x4cd1cb;}var be=Object[_0x92697(0x1c8)],je=(_0x1343b3,_0x169edd,_0x1351c6,_0x14d259)=>{const _0x5b2544=_0x92697;for(var _0x526d73=_0x14d259>0x1?void 0x0:_0x14d259?be(_0x169edd,_0x1351c6):_0x169edd,_0x82a6b=_0x1343b3[_0x5b2544(0xb8)]-0x1,_0xe4df93;_0x82a6b>=0x0;_0x82a6b--)(_0xe4df93=_0x1343b3[_0x82a6b])&&(_0x526d73=_0xe4df93(_0x526d73)||_0x526d73);return _0x526d73;},z=(_0x3b8804,_0xd99fec)=>(_0x2d4c9a,_0x4bbc53)=>_0xd99fec(_0x2d4c9a,_0x4bbc53,_0x3b8804);exports['MCPUIMenuController']=class extends u[_0x92697(0x221)]{constructor(_0x315365,_0x3d337d){const _0x2971df=_0x92697;super(),this[_0x2971df(0x20d)]=_0x315365,this['_menuManagerService']=_0x3d337d,this['_initializeCommands'](),this[_0x2971df(0x124)]();}[_0x92697(0xe2)](){const _0x13f010=_0x92697;[b][_0x13f010(0x229)](_0x26bbd4=>{const _0x4908a5=_0x13f010;this[_0x4908a5(0x1a0)](this['_commandService'][_0x4908a5(0x215)](_0x26bbd4));});}[_0x92697(0x124)](){const _0x30512f=_0x92697;this[_0x30512f(0xc5)][_0x30512f(0x173)](Ne);}},exports[_0x92697(0x103)]=je([z(0x0,u['ICommandService']),z(0x1,v[_0x92697(0x131)])],exports[_0x92697(0x103)]);const Ee={'mcpStatus':{'disconnected':_0x92697(0x121),'connecting':_0x92697(0x165),'connected':_0x92697(0xf9),'failed':_0x92697(0x20c),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x92697(0x148),'sessionOccupied':_0x92697(0x220),'networkError':_0x92697(0x182),'maxRetriesExceeded':_0x92697(0x19a),'clickToConnect':_0x92697(0x138),'clickToConfigure':_0x92697(0x1cf)},'mcpConfig':{'title':_0x92697(0x1b5),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x92697(0x200),'apiKeyPlaceholder':_0x92697(0xd4),'apiKeyHint':_0x92697(0x22e),'enableAuth':_0x92697(0xaf),'enableAuthHint':_0x92697(0x1a3),'connectionInfo':_0x92697(0x1df),'mcpClientConfig':_0x92697(0x1df),'configInstructions':_0x92697(0x106),'configStepTitle':_0x92697(0x141),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x92697(0xf2),'configStep3':_0x92697(0x1da),'sessionId':'Session\x20ID','sessionIdDescription':_0x92697(0xdd),'authorizationDescription':_0x92697(0xdb),'configParameters':_0x92697(0xe3),'maxRetries':'Max\x20Retries','save':_0x92697(0xb2),'saving':_0x92697(0x102),'note1':_0x92697(0x209),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x92697(0x1be),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x92697(0xfc),'description':_0x92697(0x1ec),'univerAiLabel':_0x92697(0xce),'getStarted':_0x92697(0x16c)},'validation':{'apiKeyRequired':_0x92697(0x1db),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x92697(0x145),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x92697(0x22b),'connecting':_0x92697(0x1b1),'connected':'Connected','failed':_0x92697(0xf1),'retrying':_0x92697(0x1d0)},'connectionError':{'unauthorized':_0x92697(0x1c2),'sessionOccupied':_0x92697(0x190),'networkError':_0x92697(0x10e),'maxRetriesExceeded':_0x92697(0x178)}}},we={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x92697(0x110),'failed':_0x92697(0x20f),'retrying':_0x92697(0x168),'unknown':_0x92697(0x1fd),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x92697(0x15e),'networkError':_0x92697(0x1d8),'maxRetriesExceeded':_0x92697(0x11c),'clickToConnect':_0x92697(0xa9),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':_0x92697(0x12c),'apiKey':_0x92697(0xfa),'apiKeyPlaceholder':_0x92697(0x1fa),'apiKeyHint':_0x92697(0x1ab),'enableAuth':_0x92697(0x194),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x92697(0x167),'configInstructions':_0x92697(0x15b),'configStepTitle':_0x92697(0x1b2),'configStep1':_0x92697(0xb3),'configStep2':_0x92697(0x116),'configStep3':_0x92697(0x12a),'sessionId':_0x92697(0x1f3),'sessionIdDescription':_0x92697(0x109),'authorizationDescription':_0x92697(0xcf),'configParameters':_0x92697(0x1fe),'maxRetries':_0x92697(0x105),'save':_0x92697(0x149),'saving':_0x92697(0xb5),'note1':_0x92697(0x155),'note2':_0x92697(0x17a),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x92697(0x187),'description':_0x92697(0x137),'univerAiLabel':_0x92697(0x1f2),'getStarted':_0x92697(0x207)},'validation':{'apiKeyRequired':_0x92697(0x1af),'apiKeyTooShort':_0x92697(0x217),'invalidConfig':_0x92697(0x14b),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x92697(0xf5),'connecting':_0x92697(0x1cc),'connected':'已连接','failed':'连接失败','retrying':_0x92697(0xed)},'connectionError':{'unauthorized':_0x92697(0x147),'sessionOccupied':_0x92697(0xf7),'networkError':_0x92697(0x163),'maxRetriesExceeded':_0x92697(0x204)}}};var Ae=Object[_0x92697(0x1b8)],Oe=Object[_0x92697(0x1c8)],De=(_0x52289d,_0x329813,_0x23c1ce)=>_0x329813 in _0x52289d?Ae(_0x52289d,_0x329813,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23c1ce}):_0x52289d[_0x329813]=_0x23c1ce,Ue=(_0x13600d,_0x136ce1,_0x42f07d,_0x1676e6)=>{const _0x4acd72=_0x92697;for(var _0x56638d=_0x1676e6>0x1?void 0x0:_0x1676e6?Oe(_0x136ce1,_0x42f07d):_0x136ce1,_0x336996=_0x13600d[_0x4acd72(0xb8)]-0x1,_0x25491f;_0x336996>=0x0;_0x336996--)(_0x25491f=_0x13600d[_0x336996])&&(_0x56638d=_0x25491f(_0x56638d)||_0x56638d);return _0x56638d;},y=(_0x30d8e6,_0x385f69)=>(_0x4045e3,_0x53971e)=>_0x385f69(_0x4045e3,_0x53971e,_0x30d8e6),$e=(_0x4cd78f,_0x16edd9,_0x5b829b)=>De(_0x4cd78f,_0x16edd9+'',_0x5b829b);exports[_0x92697(0x18a)]=class extends u[_0x92697(0x214)]{constructor(_0x1e4f17=L,_0x13621b,_0x2d6ca2,_0x5a2d4d,_0x2ba8bc,_0x2c0e84){const _0x50eb2c=_0x92697;super(),this[_0x50eb2c(0x10f)]=_0x1e4f17,this[_0x50eb2c(0x20e)]=_0x13621b,this[_0x50eb2c(0x150)]=_0x2d6ca2,this[_0x50eb2c(0x1c6)]=_0x5a2d4d,this[_0x50eb2c(0xc9)]=_0x2ba8bc,this[_0x50eb2c(0xa6)]=_0x2c0e84;const {..._0x286b1a}=u['merge']({},L,this[_0x50eb2c(0x10f)]);this[_0x50eb2c(0x150)][_0x50eb2c(0xd6)](P,_0x286b1a);}async['onStarting'](){const _0x2a7191=_0x92697,_0x2ec78e=[[exports[_0x2a7191(0x1e9)]],[exports['MCPConfigUIController']],[exports[_0x2a7191(0x103)]]];this[_0x2a7191(0x20e)][_0x2a7191(0x1ea)](A[_0x2a7191(0x183)])||_0x2ec78e[_0x2a7191(0x1d1)]([A[_0x2a7191(0x183)],{'useClass':A['WebSocketService']}]),_0x2ec78e[_0x2a7191(0x229)](_0x382080=>this['_injector'][_0x2a7191(0x1f6)](_0x382080)),this['_injector'][_0x2a7191(0x11d)](exports[_0x2a7191(0x1e9)]),this['_injector']['get'](exports['MCPConfigUIController']),this[_0x2a7191(0x20e)][_0x2a7191(0x11d)](exports[_0x2a7191(0x103)]);}},$e(exports[_0x92697(0x18a)],'pluginName',_0x92697(0x1c7)),exports[_0x92697(0x18a)]=Ue([u[_0x92697(0x1e1)](s[_0x92697(0xae)]),y(0x1,u[_0x92697(0x216)](u[_0x92697(0x228)])),y(0x2,u['IConfigService']),y(0x3,v['IUIPartsService']),y(0x4,u[_0x92697(0x15a)]),y(0x5,u[_0x92697(0x216)](u[_0x92697(0xc4)]))],exports[_0x92697(0x18a)]),exports[_0x92697(0x108)]=V,exports[_0x92697(0x104)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x92697(0x1b9)]=Ee,exports['zhCN']=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3a822e=_0x372a;(function(_0x477de3,_0xc32ed9){const _0x2b240d=_0x372a,_0x1b4655=_0x477de3();while(!![]){try{const _0x56adb0=parseInt(_0x2b240d(0x151))/0x1*(-parseInt(_0x2b240d(0x14d))/0x2)+-parseInt(_0x2b240d(0x145))/0x3+-parseInt(_0x2b240d(0x140))/0x4*(-parseInt(_0x2b240d(0x135))/0x5)+parseInt(_0x2b240d(0x13e))/0x6*(parseInt(_0x2b240d(0x14f))/0x7)+-parseInt(_0x2b240d(0x153))/0x8*(-parseInt(_0x2b240d(0x154))/0x9)+-parseInt(_0x2b240d(0x133))/0xa*(-parseInt(_0x2b240d(0x146))/0xb)+-parseInt(_0x2b240d(0x14e))/0xc*(-parseInt(_0x2b240d(0x13d))/0xd);if(_0x56adb0===_0xc32ed9)break;else _0x1b4655['push'](_0x1b4655['shift']());}catch(_0x2a8c61){_0x1b4655['push'](_0x1b4655['shift']());}}}(_0xd3b7,0xdfd5e));function _0xd3b7(){const _0x1b87d6=['Failed\x20to\x20save\x20configuration','Retrying...','API\x20key\x20is\x20required','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','13EYEYfO','257658PAJTUd','Connection\x20Failed','1372868FHdZac','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Saving...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20ID','5071398zsURwx','7489427RyYfXj','Configuration\x20Parameters:','MCP\x20Unknown\x20Status','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key','MCP\x20Connecting...','346MNxeEg','3332244YVRxSO','273dTvfpf','Enable\x20Authentication','10354MWMysF','What\x20is\x20API\x20Key?','2272iWBXbC','1557mLbnlk','MCP\x20Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','10EzpfpU','Enable\x20authentication\x20for\x20secure\x20connections','25SSPCeM','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0xd3b7=function(){return _0x1b87d6;};return _0xd3b7();}function _0x372a(_0x42f83c,_0x2006ef){_0x42f83c=_0x42f83c-0x129;const _0xd3b74f=_0xd3b7();let _0x372a1b=_0xd3b74f[_0x42f83c];return _0x372a1b;}const e={'mcpStatus':{'disconnected':_0x3a822e(0x149),'connecting':_0x3a822e(0x14c),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x3a822e(0x155),'unknown':_0x3a822e(0x148),'unauthorized':_0x3a822e(0x13a),'sessionOccupied':_0x3a822e(0x12f),'networkError':_0x3a822e(0x12b),'maxRetriesExceeded':_0x3a822e(0x157),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3a822e(0x13b),'apiKey':_0x3a822e(0x14b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x3a822e(0x150),'enableAuthHint':_0x3a822e(0x134),'connectionInfo':_0x3a822e(0x12e),'mcpClientConfig':_0x3a822e(0x12e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3a822e(0x141),'configStep3':_0x3a822e(0x12a),'sessionId':_0x3a822e(0x144),'sessionIdDescription':_0x3a822e(0x13c),'authorizationDescription':_0x3a822e(0x130),'configParameters':_0x3a822e(0x147),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x3a822e(0x142),'note1':_0x3a822e(0x12c),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3a822e(0x132),'configError':_0x3a822e(0x137),'apiApplyInfo':{'title':_0x3a822e(0x152),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3a822e(0x14a)},'validation':{'apiKeyRequired':_0x3a822e(0x139),'apiKeyTooShort':_0x3a822e(0x136),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3a822e(0x131)},'connectionStatus':{'disconnected':_0x3a822e(0x129),'connecting':_0x3a822e(0x12d),'connected':'Connected','failed':_0x3a822e(0x13f),'retrying':_0x3a822e(0x138)},'connectionError':{'unauthorized':_0x3a822e(0x156),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3a822e(0x143),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x35e41a=_0x30af;function _0x245d(){const _0x3d0587=['1299480jfeNsa','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','731694cziLJk','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Save\x20Configuration','Click\x20to\x20connect\x20MCP','MCP\x20Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','2553405FgOcWF','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Failed\x20to\x20save\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','299192PYYQUC','Session\x20ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','14256IRfiWO','Disconnected','MCP\x20Retrying...','10JGZzVx','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','7160VIUfhB','Univer\x20AI\x20Console','Enable\x20Authentication','Connecting...','4ciYwqU','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Network\x20Error','MCP\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','MCP\x20Client\x20Configuration','143712NBhPPx','Configuration\x20Parameters:','Max\x20Retries','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Unauthorized','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Retrying...','18wqmKqg','3300644HLbAJQ','MCP\x20Connected'];_0x245d=function(){return _0x3d0587;};return _0x245d();}(function(_0x3bf689,_0x263837){const _0x19e4bb=_0x30af,_0x466047=_0x3bf689();while(!![]){try{const _0x40fc33=-parseInt(_0x19e4bb(0x1d3))/0x1+parseInt(_0x19e4bb(0x1cf))/0x2+-parseInt(_0x19e4bb(0x1d9))/0x3*(-parseInt(_0x19e4bb(0x1ee))/0x4)+-parseInt(_0x19e4bb(0x1e4))/0x5*(parseInt(_0x19e4bb(0x1f7))/0x6)+parseInt(_0x19e4bb(0x1d1))/0x7+-parseInt(_0x19e4bb(0x1de))/0x8*(parseInt(_0x19e4bb(0x1ce))/0x9)+parseInt(_0x19e4bb(0x1ea))/0xa*(-parseInt(_0x19e4bb(0x1e1))/0xb);if(_0x40fc33===_0x263837)break;else _0x466047['push'](_0x466047['shift']());}catch(_0x315bd6){_0x466047['push'](_0x466047['shift']());}}}(_0x245d,0xdce3d));function _0x30af(_0x4e444c,_0x3ed4e7){_0x4e444c=_0x4e444c-0x1c9;const _0x245de3=_0x245d();let _0x30affa=_0x245de3[_0x4e444c];return _0x30affa;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x35e41a(0x1d0),'failed':_0x35e41a(0x1d7),'retrying':_0x35e41a(0x1e3),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x35e41a(0x1cb),'sessionOccupied':_0x35e41a(0x1e7),'networkError':_0x35e41a(0x1f1),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x35e41a(0x1d6),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x35e41a(0x1f2),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x35e41a(0x1cc),'enableAuth':_0x35e41a(0x1ec),'enableAuthHint':_0x35e41a(0x1db),'connectionInfo':_0x35e41a(0x1f6),'mcpClientConfig':_0x35e41a(0x1f6),'configInstructions':_0x35e41a(0x1f4),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x35e41a(0x1ef),'configStep2':_0x35e41a(0x1e5),'configStep3':_0x35e41a(0x1e0),'sessionId':_0x35e41a(0x1df),'sessionIdDescription':_0x35e41a(0x1f3),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x35e41a(0x1f8),'maxRetries':_0x35e41a(0x1f9),'save':_0x35e41a(0x1d5),'saving':_0x35e41a(0x1f5),'note1':_0x35e41a(0x1f0),'note2':_0x35e41a(0x1e8),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x35e41a(0x1dc),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x35e41a(0x1ca),'univerAiLabel':_0x35e41a(0x1eb),'getStarted':_0x35e41a(0x1dd)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x35e41a(0x1d8),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x35e41a(0x1d2)},'connectionStatus':{'disconnected':_0x35e41a(0x1e2),'connecting':_0x35e41a(0x1ed),'connected':_0x35e41a(0x1e9),'failed':'Connection\x20Failed','retrying':_0x35e41a(0x1cd)},'connectionError':{'unauthorized':_0x35e41a(0x1e6),'sessionOccupied':_0x35e41a(0x1d4),'networkError':_0x35e41a(0x1c9),'maxRetriesExceeded':_0x35e41a(0x1da)}}};module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x2b2c(){const _0x4b0b1c=['Disconnected','Configuration\x20saved\x20successfully','MCP:\x20Unauthorized','Univer\x20AI\x20Console','Save\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','2807068SiQcRl','What\x20is\x20API\x20Key?','1992YMsQFi','6034vKibAT','269enRkju','Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','535413meHCqr','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','2953314zMkYKr','MCP:\x20Session\x20ID\x20Occupied','10rjmgAX','Configuration\x20Parameters:','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','19052627spNONB','Get\x20your\x20API\x20key\x20in\x20seconds','28863YzgDIf','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Unknown\x20Status','Enable\x20authentication\x20for\x20secure\x20connections','exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','6451515rotfQo','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','API\x20Key','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','Retrying...','Configuration\x20Steps:','MCP\x20Connected','MCP\x20Connection\x20Failed','Click\x20to\x20connect\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','5UjZsaQ'];_0x2b2c=function(){return _0x4b0b1c;};return _0x2b2c();}const _0x33a12c=_0x268b;(function(_0x15f4c3,_0x157b20){const _0x21d475=_0x268b,_0xed2844=_0x15f4c3();while(!![]){try{const _0xe716fd=parseInt(_0x21d475(0x1b0))/0x1*(parseInt(_0x21d475(0x1af))/0x2)+parseInt(_0x21d475(0x1b4))/0x3+parseInt(_0x21d475(0x1ac))/0x4*(parseInt(_0x21d475(0x1a3))/0x5)+parseInt(_0x21d475(0x1b7))/0x6+parseInt(_0x21d475(0x195))/0x7+parseInt(_0x21d475(0x1ae))/0x8*(-parseInt(_0x21d475(0x1c2))/0x9)+parseInt(_0x21d475(0x1b9))/0xa*(-parseInt(_0x21d475(0x1c0))/0xb);if(_0xe716fd===_0x157b20)break;else _0xed2844['push'](_0xed2844['shift']());}catch(_0x410c2f){_0xed2844['push'](_0xed2844['shift']());}}}(_0x2b2c,0x8c663));const e={'mcpStatus':{'disconnected':_0x33a12c(0x1be),'connecting':'MCP\x20Connecting...','connected':_0x33a12c(0x19e),'failed':_0x33a12c(0x19f),'retrying':_0x33a12c(0x197),'unknown':_0x33a12c(0x18f),'unauthorized':_0x33a12c(0x1a6),'sessionOccupied':_0x33a12c(0x1b8),'networkError':_0x33a12c(0x1a2),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x33a12c(0x1a0),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x33a12c(0x1bc),'description':_0x33a12c(0x1a9),'apiKey':_0x33a12c(0x198),'apiKeyPlaceholder':_0x33a12c(0x1b6),'apiKeyHint':_0x33a12c(0x18e),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x33a12c(0x190),'connectionInfo':_0x33a12c(0x1aa),'mcpClientConfig':_0x33a12c(0x1aa),'configInstructions':_0x33a12c(0x1b2),'configStepTitle':_0x33a12c(0x19d),'configStep1':_0x33a12c(0x19a),'configStep2':_0x33a12c(0x194),'configStep3':_0x33a12c(0x1bd),'sessionId':'Session\x20ID','sessionIdDescription':_0x33a12c(0x193),'authorizationDescription':_0x33a12c(0x1bb),'configParameters':_0x33a12c(0x1ba),'maxRetries':_0x33a12c(0x19b),'save':_0x33a12c(0x1a8),'saving':'Saving...','note1':_0x33a12c(0x1bf),'note2':_0x33a12c(0x196),'configSaved':_0x33a12c(0x1a5),'configError':_0x33a12c(0x1ab),'apiApplyInfo':{'title':_0x33a12c(0x1ad),'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':_0x33a12c(0x1a7),'getStarted':_0x33a12c(0x1c1)},'validation':{'apiKeyRequired':_0x33a12c(0x1b5),'apiKeyTooShort':_0x33a12c(0x1b3),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x33a12c(0x1c3)},'connectionStatus':{'disconnected':_0x33a12c(0x1a4),'connecting':_0x33a12c(0x199),'connected':_0x33a12c(0x1b1),'failed':'Connection\x20Failed','retrying':_0x33a12c(0x19c)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x33a12c(0x192),'networkError':_0x33a12c(0x1a1),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x268b(_0x1b83b0,_0x32f8a4){_0x1b83b0=_0x1b83b0-0x18e;const _0x2b2c26=_0x2b2c();let _0x268ba1=_0x2b2c26[_0x1b83b0];return _0x268ba1;}module[_0x33a12c(0x191)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x199d(){const _0x3bf96b=['Configuration\x20Parameters:','MCP\x20Connecting...','Save\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','exports','16527680Lqbqni','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','Click\x20to\x20configure\x20MCP','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','129nysFIg','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','2808981HnBGUs','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','96796pXpMhO','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','MCP\x20Connected','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1576DeTSAc','Configuration\x20saved\x20successfully','23628770mNuXGt','Saving...','6wirqna','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20is\x20required','3115735mqlvvu','Invalid\x20configuration','34ovVOFR','Get\x20your\x20API\x20key\x20in\x20seconds','Enter\x20your\x20API\x20key','API\x20Key','7731bNzmAl','Session\x20ID','MCP\x20Configuration','5786zINpVR','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Steps:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20Authentication','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x199d=function(){return _0x3bf96b;};return _0x199d();}const _0x205846=_0x311f;(function(_0x371cef,_0x1ca9b9){const _0x2ba723=_0x311f,_0x374e18=_0x371cef();while(!![]){try{const _0x9aedaf=-parseInt(_0x2ba723(0x18b))/0x1*(parseInt(_0x2ba723(0x192))/0x2)+parseInt(_0x2ba723(0x1ad))/0x3*(parseInt(_0x2ba723(0x17b))/0x4)+parseInt(_0x2ba723(0x189))/0x5*(parseInt(_0x2ba723(0x186))/0x6)+-parseInt(_0x2ba723(0x1af))/0x7+-parseInt(_0x2ba723(0x182))/0x8*(-parseInt(_0x2ba723(0x18f))/0x9)+parseInt(_0x2ba723(0x1a3))/0xa+-parseInt(_0x2ba723(0x184))/0xb;if(_0x9aedaf===_0x1ca9b9)break;else _0x374e18['push'](_0x374e18['shift']());}catch(_0x172eff){_0x374e18['push'](_0x374e18['shift']());}}}(_0x199d,0xcc95c));function _0x311f(_0x4dc1d8,_0x276a6c){_0x4dc1d8=_0x4dc1d8-0x179;const _0x199d87=_0x199d();let _0x311f2d=_0x199d87[_0x4dc1d8];return _0x311f2d;}const e={'mcpStatus':{'disconnected':_0x205846(0x1b1),'connecting':_0x205846(0x19d),'connected':_0x205846(0x17f),'failed':_0x205846(0x180),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x205846(0x19f),'networkError':_0x205846(0x1a8),'maxRetriesExceeded':_0x205846(0x1a5),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x205846(0x1a7)},'mcpConfig':{'title':_0x205846(0x191),'description':_0x205846(0x17a),'apiKey':_0x205846(0x18e),'apiKeyPlaceholder':_0x205846(0x18d),'apiKeyHint':_0x205846(0x194),'enableAuth':_0x205846(0x199),'enableAuthHint':_0x205846(0x1a4),'connectionInfo':_0x205846(0x1ab),'mcpClientConfig':_0x205846(0x1ab),'configInstructions':_0x205846(0x1ac),'configStepTitle':_0x205846(0x197),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x205846(0x187),'configStep3':_0x205846(0x1ae),'sessionId':_0x205846(0x190),'sessionIdDescription':_0x205846(0x19b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x205846(0x19c),'maxRetries':_0x205846(0x195),'save':_0x205846(0x19e),'saving':_0x205846(0x185),'note1':_0x205846(0x1b0),'note2':_0x205846(0x1a1),'configSaved':_0x205846(0x183),'configError':_0x205846(0x17e),'apiApplyInfo':{'title':_0x205846(0x1aa),'description':_0x205846(0x179),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x205846(0x18c)},'validation':{'apiKeyRequired':_0x205846(0x188),'apiKeyTooShort':_0x205846(0x196),'invalidConfig':_0x205846(0x18a),'invalidApiKey':_0x205846(0x17c)},'connectionStatus':{'disconnected':_0x205846(0x19a),'connecting':_0x205846(0x1a0),'connected':'Connected','failed':_0x205846(0x193),'retrying':_0x205846(0x1a6)},'connectionError':{'unauthorized':_0x205846(0x198),'sessionOccupied':_0x205846(0x17d),'networkError':_0x205846(0x181),'maxRetriesExceeded':_0x205846(0x1a9)}}},n=e;module[_0x205846(0x1a2)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x277e59=_0x22c3;(function(_0x270ccd,_0x465bcf){const _0x3dc515=_0x22c3,_0x18e979=_0x270ccd();while(!![]){try{const _0x5cdc92=parseInt(_0x3dc515(0xa8))/0x1+-parseInt(_0x3dc515(0xa7))/0x2+-parseInt(_0x3dc515(0xb1))/0x3+-parseInt(_0x3dc515(0xa5))/0x4+parseInt(_0x3dc515(0x9c))/0x5+-parseInt(_0x3dc515(0x94))/0x6*(parseInt(_0x3dc515(0xa0))/0x7)+parseInt(_0x3dc515(0xa1))/0x8;if(_0x5cdc92===_0x465bcf)break;else _0x18e979['push'](_0x18e979['shift']());}catch(_0xafd1f9){_0x18e979['push'](_0x18e979['shift']());}}}(_0x6fe9,0x28fe0));function _0x22c3(_0x2b9854,_0xfbea0b){_0x2b9854=_0x2b9854-0x8d;const _0x6fe93e=_0x6fe9();let _0x22c320=_0x6fe93e[_0x2b9854];return _0x22c320;}const e={'mcpStatus':{'disconnected':_0x277e59(0xb0),'connecting':_0x277e59(0xb7),'connected':'MCP\x20Connected','failed':_0x277e59(0x99),'retrying':_0x277e59(0x90),'unknown':_0x277e59(0xa4),'unauthorized':_0x277e59(0xb6),'sessionOccupied':_0x277e59(0xba),'networkError':_0x277e59(0xb2),'maxRetriesExceeded':_0x277e59(0xa2),'clickToConnect':_0x277e59(0xb8),'clickToConfigure':_0x277e59(0xb5)},'mcpConfig':{'title':_0x277e59(0x92),'description':_0x277e59(0x9f),'apiKey':_0x277e59(0xa6),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x277e59(0x9d),'enableAuth':_0x277e59(0xaa),'enableAuthHint':_0x277e59(0xb4),'connectionInfo':_0x277e59(0xab),'mcpClientConfig':_0x277e59(0xab),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x277e59(0xbc),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x277e59(0x98),'configStep3':_0x277e59(0xae),'sessionId':_0x277e59(0xaf),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x277e59(0x95),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x277e59(0x9b),'save':_0x277e59(0xbb),'saving':_0x277e59(0x8d),'note1':_0x277e59(0x8e),'note2':_0x277e59(0xa3),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x277e59(0xa9),'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':_0x277e59(0x8f),'getStarted':_0x277e59(0x91)},'validation':{'apiKeyRequired':_0x277e59(0xac),'apiKeyTooShort':_0x277e59(0x96),'invalidConfig':_0x277e59(0xbe),'invalidApiKey':_0x277e59(0xbd)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x277e59(0x9e),'connected':'Connected','failed':_0x277e59(0x9a),'retrying':_0x277e59(0xb9)},'connectionError':{'unauthorized':_0x277e59(0x93),'sessionOccupied':_0x277e59(0x97),'networkError':_0x277e59(0xb3),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x6fe9(){const _0x2162ec=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','6672ChVyDb','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','Connection\x20Failed','Max\x20Retries','193440LTzmoN','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1246nnmruI','5644608QLWJpd','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','1029040mJAawI','API\x20Key','255296SbwfOZ','268856ZmIRLd','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','MCP\x20Client\x20Configuration','API\x20key\x20is\x20required','exports','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','MCP\x20Disconnected','787116vMboBl','MCP:\x20Network\x20Error','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','MCP:\x20Unauthorized','MCP\x20Connecting...','Click\x20to\x20connect\x20MCP','Retrying...','MCP:\x20Session\x20ID\x20Occupied','Save\x20Configuration','Configuration\x20Steps:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Invalid\x20configuration','Saving...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Univer\x20AI\x20Console','MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration'];_0x6fe9=function(){return _0x2162ec;};return _0x6fe9();}module[_0x277e59(0xad)]=n;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x5dfc(_0xaa69bf,_0x2884f5){_0xaa69bf=_0xaa69bf-0x131;const _0x285f45=_0x285f();let _0x5dfcd3=_0x285f45[_0xaa69bf];return _0x5dfcd3;}const _0x362a40=_0x5dfc;(function(_0x10ec7a,_0x3d2c58){const _0x387715=_0x5dfc,_0xe294d2=_0x10ec7a();while(!![]){try{const _0x51a670=parseInt(_0x387715(0x13b))/0x1*(parseInt(_0x387715(0x15c))/0x2)+parseInt(_0x387715(0x162))/0x3+-parseInt(_0x387715(0x149))/0x4*(parseInt(_0x387715(0x142))/0x5)+parseInt(_0x387715(0x13c))/0x6*(-parseInt(_0x387715(0x133))/0x7)+parseInt(_0x387715(0x164))/0x8*(parseInt(_0x387715(0x140))/0x9)+-parseInt(_0x387715(0x144))/0xa+parseInt(_0x387715(0x14d))/0xb*(parseInt(_0x387715(0x160))/0xc);if(_0x51a670===_0x3d2c58)break;else _0xe294d2['push'](_0xe294d2['shift']());}catch(_0x1ba7c5){_0xe294d2['push'](_0xe294d2['shift']());}}}(_0x285f,0xc75e2));const e={'mcpStatus':{'disconnected':_0x362a40(0x15e),'connecting':_0x362a40(0x137),'connected':'MCP\x20接続済み','failed':_0x362a40(0x145),'retrying':'MCP\x20再試行中...','unknown':_0x362a40(0x138),'unauthorized':_0x362a40(0x136),'sessionOccupied':_0x362a40(0x158),'networkError':_0x362a40(0x13f),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x362a40(0x135),'clickToConfigure':_0x362a40(0x151)},'mcpConfig':{'title':_0x362a40(0x14e),'description':_0x362a40(0x13d),'apiKey':_0x362a40(0x156),'apiKeyPlaceholder':_0x362a40(0x165),'apiKeyHint':_0x362a40(0x134),'enableAuth':_0x362a40(0x141),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x362a40(0x161),'mcpClientConfig':'MCPクライアント設定','configInstructions':_0x362a40(0x14f),'configStepTitle':_0x362a40(0x14a),'configStep1':_0x362a40(0x148),'configStep2':_0x362a40(0x139),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x362a40(0x163),'sessionIdDescription':_0x362a40(0x132),'authorizationDescription':_0x362a40(0x15b),'configParameters':'設定パラメータ:','maxRetries':'最大再試行回数','save':_0x362a40(0x15d),'saving':_0x362a40(0x150),'note1':'設定の変更は直ちに有効になります','note2':_0x362a40(0x146),'configSaved':'設定が正常に保存されました','configError':_0x362a40(0x143),'apiApplyInfo':{'title':'APIキーとは?','description':_0x362a40(0x154),'univerAiLabel':_0x362a40(0x153),'getStarted':_0x362a40(0x13e)},'validation':{'apiKeyRequired':_0x362a40(0x15a),'apiKeyTooShort':_0x362a40(0x159),'invalidConfig':_0x362a40(0x155),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x362a40(0x147),'connecting':_0x362a40(0x13a),'connected':_0x362a40(0x131),'failed':_0x362a40(0x14b),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x362a40(0x14c),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x362a40(0x152),'maxRetriesExceeded':_0x362a40(0x157)}}};function _0x285f(){const _0x38db07=['クリックしてMCPを設定','ネットワーク接続エラー。インターネット接続を確認してください','Univer\x20AIコンソール','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','無効な設定','APIキー','最大再試行回数を超過しました。後でもう一度お試しください','MCP:\x20セッションIDが使用中','APIキーは10文字以上である必要があります','APIキーは必須です','Bearerプレフィックス付きのAPIキー。','34SRuNeS','設定を保存','MCP\x20未接続','exports','440964fCvMuO','MCPクライアント設定','4877682EybTPM','セッションID','6530176JydjIH','APIキーを入力してください','接続済み','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','98623BVdmuK','APIキーはこのブラウザのローカルに保存されます','クリックしてMCPに接続','MCP:\x20認証されていません','MCP\x20接続中...','MCP\x20不明な状態','MCPクライアントの設定ファイルに設定を追加','接続中...','12927HhZEVh','570DvwgoO','MCPを設定してAIでスプレッドシートを操作','数秒でAPIキーを取得','MCP:\x20ネットワークエラー','9OQkmGR','認証を有効にする','335DwmPyr','設定の保存に失敗しました','3622910RaFDTJ','MCP\x20接続失敗','APIキーはローカルストレージに安全に保存されます','未接続','以下のJSON設定をコピー','52508qprpkM','設定手順:','接続失敗','認証に失敗しました。APIキーを確認してください','220tqhulc','MCP設定','MCPクライアントの設定に次の設定を追加してください:','保存中...'];_0x285f=function(){return _0x38db07;};return _0x285f();}module[_0x362a40(0x15f)]=e;
|