@univerjs-pro/mcp-ui 0.15.2-insiders.20260124-12fc7f0 → 0.15.3
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 _0x5e1569=_0x5555;(function(_0x12dd4a,_0x2d5a3a){const _0x129581=_0x5555,_0x20e14e=_0x12dd4a();while(!![]){try{const _0x54b122=-parseInt(_0x129581(0x1aa))/0x1*(parseInt(_0x129581(0x2ad))/0x2)+parseInt(_0x129581(0x275))/0x3+parseInt(_0x129581(0x186))/0x4+-parseInt(_0x129581(0x159))/0x5*(-parseInt(_0x129581(0x22a))/0x6)+-parseInt(_0x129581(0x167))/0x7*(-parseInt(_0x129581(0x1d5))/0x8)+parseInt(_0x129581(0x1ca))/0x9*(-parseInt(_0x129581(0x135))/0xa)+parseInt(_0x129581(0x2a4))/0xb;if(_0x54b122===_0x2d5a3a)break;else _0x20e14e['push'](_0x20e14e['shift']());}catch(_0x56b168){_0x20e14e['push'](_0x20e14e['shift']());}}}(_0x4582,0xa9df0));var ae=Object[_0x5e1569(0x233)],le=(_0x13ceda,_0x4914b9,_0x46d84d)=>_0x4914b9 in _0x13ceda?ae(_0x13ceda,_0x4914b9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46d84d}):_0x13ceda[_0x4914b9]=_0x46d84d,I=(_0x25a9df,_0x34bba4,_0x31edfa)=>le(_0x25a9df,typeof _0x34bba4!='symbol'?_0x34bba4+'':_0x34bba4,_0x31edfa);Object[_0x5e1569(0x233)](exports,Symbol[_0x5e1569(0x28b)],{'value':_0x5e1569(0x29c)});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:_0x16ffca,..._0xa35369}){const _0x53db24=_0x5e1569,{icon:_0x102d43,id:_0x225129,className:_0x3ab8ab,extend:_0x503e4c,..._0x29e36d}=_0xa35369,_0xbf2abf=(_0x53db24(0x196)+_0x225129+'\x20'+(_0x3ab8ab||''))[_0x53db24(0x222)](),_0x10b5e3=d[_0x53db24(0x1fc)]('_'+de());return G(_0x102d43,''+_0x225129,{'defIds':_0x102d43[_0x53db24(0x197)],'idSuffix':_0x10b5e3['current']},{'ref':_0x16ffca,'className':_0xbf2abf,..._0x29e36d},_0x503e4c);}function G(_0x583a32,_0x25b7ae,_0x4a6f0e,_0x565257,_0x245dac){const _0x4ec4d1=_0x5e1569;return d[_0x4ec4d1(0x237)](_0x583a32[_0x4ec4d1(0x1ad)],{'key':_0x25b7ae,...ue(_0x583a32,_0x4a6f0e,_0x245dac),..._0x565257},(ve(_0x583a32,_0x4a6f0e)[_0x4ec4d1(0x16c)]||[])[_0x4ec4d1(0x1d1)]((_0x47dc97,_0x53c7e0)=>G(_0x47dc97,_0x25b7ae+'-'+_0x583a32[_0x4ec4d1(0x1ad)]+'-'+_0x53c7e0,_0x4a6f0e,void 0x0,_0x245dac)));}function ue(_0x1bf83f,_0x2218ce,_0x130966){const _0x459bd2=_0x5e1569,_0x18bc3e={..._0x1bf83f[_0x459bd2(0x270)]};_0x130966!=null&&_0x130966[_0x459bd2(0x20a)]&&_0x18bc3e[_0x459bd2(0x269)]===_0x459bd2(0x20a)&&(_0x18bc3e[_0x459bd2(0x269)]=_0x130966[_0x459bd2(0x20a)]),_0x1bf83f[_0x459bd2(0x1ad)]===_0x459bd2(0x242)&&_0x18bc3e['id']&&(_0x18bc3e['id']=_0x18bc3e['id']+_0x2218ce[_0x459bd2(0x188)]),Object[_0x459bd2(0x232)](_0x18bc3e)[_0x459bd2(0x1e1)](([_0xf2895f,_0x4ea62b])=>{const _0x43b820=_0x459bd2;_0xf2895f===_0x43b820(0x242)&&typeof _0x4ea62b==_0x43b820(0x1eb)&&(_0x18bc3e[_0xf2895f]=_0x4ea62b[_0x43b820(0x15a)](/url\(#(.*)\)/,_0x43b820(0x2b8)+_0x2218ce[_0x43b820(0x188)]+')'));});const {defIds:_0x53d25e}=_0x2218ce;return!_0x53d25e||_0x53d25e[_0x459bd2(0x199)]===0x0||(_0x1bf83f['tag']===_0x459bd2(0x178)&&_0x18bc3e[_0x459bd2(0x293)]&&(_0x18bc3e[_0x459bd2(0x293)]=_0x18bc3e['xlink:href']+_0x2218ce[_0x459bd2(0x188)]),Object[_0x459bd2(0x232)](_0x18bc3e)[_0x459bd2(0x1e1)](([_0x3fdb40,_0x1c8a95])=>{const _0x17da45=_0x459bd2;typeof _0x1c8a95==_0x17da45(0x1eb)&&(_0x18bc3e[_0x3fdb40]=_0x1c8a95[_0x17da45(0x15a)](/url\(#(.*)\)/,_0x17da45(0x2b8)+_0x2218ce[_0x17da45(0x188)]+')'));})),_0x18bc3e;}function ve(_0x2d0188,_0x1d5f96){const _0x4a85dc=_0x5e1569;var _0x45ef89;const {defIds:_0x4dd4a5}=_0x1d5f96;return!_0x4dd4a5||_0x4dd4a5[_0x4a85dc(0x199)]===0x0?_0x2d0188:_0x2d0188[_0x4a85dc(0x1ad)]===_0x4a85dc(0x1c0)&&((_0x45ef89=_0x2d0188['children'])!=null&&_0x45ef89[_0x4a85dc(0x199)])?{..._0x2d0188,'children':_0x2d0188['children'][_0x4a85dc(0x1d1)](_0x13107a=>typeof _0x13107a[_0x4a85dc(0x270)]['id']==_0x4a85dc(0x1eb)&&_0x4dd4a5&&_0x4dd4a5[_0x4a85dc(0x181)](_0x13107a[_0x4a85dc(0x270)]['id'])?{..._0x13107a,'attrs':{..._0x13107a[_0x4a85dc(0x270)],'id':_0x13107a[_0x4a85dc(0x270)]['id']+_0x1d5f96['idSuffix']}}:_0x13107a)}:_0x2d0188;}function de(){const _0x4309a9=_0x5e1569;return Math[_0x4309a9(0x13e)]()[_0x4309a9(0x280)](0x24)[_0x4309a9(0x17c)](0x2,0x8);}_['displayName']=_0x5e1569(0x244);const Ce={'tag':_0x5e1569(0x1a6),'attrs':{'xmlns':_0x5e1569(0x1a9),'fill':'none','viewBox':_0x5e1569(0x1cd),'width':_0x5e1569(0x273),'height':_0x5e1569(0x273)},'children':[{'tag':_0x5e1569(0x17d),'attrs':{'fill':'currentColor','d':_0x5e1569(0x1c2),'fillRule':_0x5e1569(0x152),'clipRule':_0x5e1569(0x152)}}]},H=d[_0x5e1569(0x163)](function(_0x3680af,_0x3c6896){const _0x247633=_0x5e1569;return d['createElement'](_,Object[_0x247633(0x20b)]({},_0x3680af,{'id':_0x247633(0x1df),'ref':_0x3c6896,'icon':Ce}));});H[_0x5e1569(0x17a)]=_0x5e1569(0x1fa);const ge={'tag':_0x5e1569(0x1a6),'attrs':{'xmlns':_0x5e1569(0x1a9),'fill':'none','viewBox':_0x5e1569(0x1cd),'width':_0x5e1569(0x273),'height':_0x5e1569(0x273)},'children':[{'tag':_0x5e1569(0x17d),'attrs':{'fill':_0x5e1569(0x1ef),'d':_0x5e1569(0x2b5)}}]},B=d['forwardRef'](function(_0x41969,_0x260db5){const _0x34927d=_0x5e1569;return d['createElement'](_,Object[_0x34927d(0x20b)]({},_0x41969,{'id':_0x34927d(0x1e2),'ref':_0x260db5,'icon':ge}));});function _0x4582(){const _0x2ace63=['MCP:\x20会话\x20ID\x20已被占用','DISCONNECTED','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','NONE','disposeWithMe','mcpStatus.maxRetriesExceeded','CONNECTED','getItem','trim','MCPConfigUIController','univer-text-gray-500','MCP_PLUGIN_CONFIG_KEY','mcpConfig.connectionError.unauthorized','Retrying...','MCP:\x20未授权','MCPConfigPanel','1284EXfnlp','MCP\x20状态未知','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','WebSocketService','mcpConfig.configParameters','span','entries','defineProperty','stringify','show','mcpConfig.description','createElement','showDeveloperTools','univer-font-medium','_messageService','univer-flex\x20univer-items-center','_config','mcpConfig.apiApplyInfo.description','univer-text-blue-600','_loading$','subscribe','MCP\x20连接失败','mask','CloseIcon','UniverIcon','mcpConfig.connectionStatus.retrying','univer-text-green-500','connectInjector','useObservable','API\x20密钥','什么是\x20API\x20密钥?','univer-bg-gray-500','OTHERS','univer-flex\x20univer-gap-3','mcpConfig.authorizationDescription','univer-size-4','配置步骤:','COMMAND','API\x20密钥无效,请检查密钥是否正确','_initializeCommands','复制以下\x20JSON\x20配置','Configuration\x20saved\x20successfully','ISocketService','univer-text-sm\x20univer-font-medium','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-min-w-0\x20univer-flex-1','_injector','add','none','_config$','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','button','mcpConfig.title','OffLineIcon','enableAutoConnect','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','BuiltInUIPart','MessageType','registerComponent','div','重连中...','fill','close','mcpServerUrl','Connection\x20Failed','mcpConfig.apiKeyHint','showStatus','round','attrs','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','UniverMCPUIPlugin','1em','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1363320MExWIm','连接中...','MCP\x20客户端配置','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-space-y-3','univer-shrink-0\x20univer-text-blue-500','https://mcp.univer.ai/mcp/?univer_session_id=','_menuManagerService','MCPConnectionUIController','HelpIcon','_configService','toString','mcpConfig.validation.invalidConfig','Click\x20to\x20configure\x20MCP','未连接','mcpConfig.apiKey','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','useCallback','jsxs','RETRYING','MCP:\x20Session\x20ID\x20Occupied','zhCN','toStringTag','Univer\x20AI\x20Console','univer-flex\x20univer-flex-wrap\x20univer-gap-2','sessionId$','mcpStatus.sessionOccupied','clsx','noopener\x20noreferrer','Plugin','xlink:href','Inject','mcpConfig.connectionStatus.disconnected','Univer\x20AI\x20控制台','univer-bg-red-500','get','保存配置','enUS','univer-text-gray-400','Module','MCP\x20Connection\x20Failed','配置保存失败','setItem','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.note1','mcpConfig.validation.invalidApiKey','SESSION_ID_OCCUPIED','4422792degeuJ','MCPConnectionError','https://console.univer.ai','MenuIcon','http','univer-flex\x20univer-items-center\x20univer-gap-3','MenuItemType','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCPStatusDisplay','4EkVSKu','Error','_commandService','connectionStatus$','_initConfigSync','mcpConfig.apiKeyPlaceholder','connectionError$','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','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','MCP\x20连接中...','MCP:\x20网络错误','url(#$1','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','push','value','Click\x20to\x20connect\x20MCP','最大重试次数','mcpConfig.connectionError.maxRetriesExceeded','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','pluginName','12310ylslOV','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCPConnectionController','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','mcpStatus.clickToConnect','univer-size-2\x20univer-rounded-full','Save\x20Configuration','ILocalStorageService','random','univer-flex\x20univer-items-center\x20univer-gap-2','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer.plus','label','_createConfigPanelComponent','univer.ai','mcpStatus.connected','univer-text-xs\x20univer-text-gray-500','mcpConfig.configSaved','clipPath','启用身份验证以获得安全连接','您的\x20API\x20密钥将在此浏览器中本地存储','Authorization:','_registerComponent','_loadStoredApiKey','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-flex\x20univer-items-start\x20univer-gap-3','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','Injector','evenodd','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.connectionError.sessionOccupied','error','Button','isValid','MCP\x20Client\x20Configuration','13355sEZihC','replace','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcp-config-dialog','mcpConfig.connectionInfo','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','removeItem','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Enable\x20Authentication','mcpStatus.retrying','forwardRef','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','FAILED','MCP:\x20Max\x20Retries\x20Exceeded','63924oFeicr','_componentManager','Success','white','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children','univer-shrink-0\x20univer-text-red-500','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','showConfigPanel','mcpConfig.saving','Get\x20your\x20API\x20key\x20in\x20seconds','ComponentManager','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionStatus.connecting','univer-bg-green-500','将配置添加到您的\x20MCP\x20客户端设置文件中','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','use','mcpConfig.configStep1','displayName','text','substring','path','OnLineIcon','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','next','includes','mcp.apiKey','mcpConfig.note2','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.apiApplyInfo.univerAiLabel','402348JaIspL','Input','idSuffix','已连接','_mcpCoreConfig$','_localStorageService','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','url(#off-line-icon_clip0_910_343)','translate(.97)','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpStatus.networkError','\x20-\x20','UniverMCPPlugin','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Parameters:','univerjs-icon\x20univerjs-icon-','defIds','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','length','HEADER_MENU','IDialogService','MCP\x20已断开','会话ID','bottom','useState','MCPConnectionStatus','univer-flex-1','jsx','_initStatusComponent','几秒钟内获取您的\x20API\x20密钥','API\x20Key','svg','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','MCP\x20Connecting...','http://www.w3.org/2000/svg','115113nJoRLi','Copy\x20the\x20JSON\x20configuration\x20below','_apiKey$','tag','mcpConfig.configError','MAX_RETRIES_EXCEEDED','has','on-line-icon_clip0_910_349','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_localeService','DependentOn','_connectionController','MCPUIMenuController','univer-space-y-2','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','配置更改将立即生效','ICommandService','MCP\x20Retrying...','https://console.univer.plus','univer-bg-blue-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','defs','off','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20Disconnected','点击连接\x20MCP','registerCommand','mcpConfig.configStep3','onStarting','点击配置\x20MCP','4473VcTHfm','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','网络连接错误,请检查您的网络连接','0\x200\x2016\x2016','useDependency','Disposable','univer-text-white','map','mcp-ui.command.openConfigPanel','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.connectionError.networkError','8BNspWa','Configuration\x20Steps:','_validateConfig','配置无效','LocaleService','apiKey','mcpConfig.apiApplyInfo.title','Configuration\x20Notes:','IMenuManagerService','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','check-mark-icon','API\x20key\x20with\x20Bearer\x20prefix.','forEach','close-icon','setConfig','BehaviorSubject','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','配置参数:','ILogService','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','IUIPartsService','string','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_blank','IConfigService','currentColor','getOwnPropertyDescriptor','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_initializeMenus','mcpStatus.clickToConfigure','getConfig','mcpStatus.unknown','univer-space-y-4','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP:\x20Network\x20Error','CheckMarkIcon','CONNECTING','useRef','_logService','0\x200\x2017\x2016','Connecting...','mcpStatus.connecting','off-line-icon_clip0_910_343','_handleConfigSave','warn','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','超出最大重试次数,请稍后再试','NETWORK_ERROR','_dialogService','_initAutoConnect','_mcpConnectionController','colorChannel1','assign','mcpConfig.save','_uiPartsService','validateApiKey','url(#on-line-icon_clip0_910_349)','off-line-icon','Failed\x20to\x20save\x20configuration','mcpConfig.sessionIdDescription','UNAUTHORIZED','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer_session_id:','M0\x200H16V16H0z','Bearer\x20','merge','mcpConfig.configStepTitle'];_0x4582=function(){return _0x2ace63;};return _0x4582();}B[_0x5e1569(0x17a)]=_0x5e1569(0x243);const fe={'tag':_0x5e1569(0x1a6),'attrs':{'xmlns':_0x5e1569(0x1a9),'fill':_0x5e1569(0x25c),'viewBox':_0x5e1569(0x1cd),'width':_0x5e1569(0x273),'height':_0x5e1569(0x273)},'children':[{'tag':_0x5e1569(0x17d),'attrs':{'fill':_0x5e1569(0x1ef),'d':_0x5e1569(0x16e)}},{'tag':_0x5e1569(0x17d),'attrs':{'fill':_0x5e1569(0x1ef),'d':_0x5e1569(0x25e)}},{'tag':_0x5e1569(0x17d),'attrs':{'fill':'currentColor','d':_0x5e1569(0x22c),'fillRule':'evenodd','clipRule':_0x5e1569(0x152)}}]},F=d[_0x5e1569(0x163)](function(_0x40a6ba,_0x49c138){const _0x13b1f8=_0x5e1569;return d[_0x13b1f8(0x237)](_,Object[_0x13b1f8(0x20b)]({},_0x40a6ba,{'id':'help-icon','ref':_0x49c138,'icon':fe}));});F[_0x5e1569(0x17a)]=_0x5e1569(0x27e);const pe={'tag':_0x5e1569(0x1a6),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5e1569(0x25c),'viewBox':_0x5e1569(0x1cd),'width':'1em','height':_0x5e1569(0x273)},'children':[{'tag':'g','attrs':{'clipPath':_0x5e1569(0x18d)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x5e1569(0x26f),'strokeLinejoin':_0x5e1569(0x26f),'strokeWidth':1.2}}]},{'tag':_0x5e1569(0x1c0),'attrs':{},'children':[{'tag':_0x5e1569(0x148),'attrs':{'id':_0x5e1569(0x201)},'children':[{'tag':_0x5e1569(0x17d),'attrs':{'fill':_0x5e1569(0x16a),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5e1569(0x201)]},Y=d['forwardRef'](function(_0x28721b,_0xc3d18d){const _0xa0ab00=_0x5e1569;return d['createElement'](_,Object[_0xa0ab00(0x20b)]({},_0x28721b,{'id':_0xa0ab00(0x210),'ref':_0xc3d18d,'icon':pe}));});Y[_0x5e1569(0x17a)]=_0x5e1569(0x261);const he={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5e1569(0x25c),'viewBox':_0x5e1569(0x1fe),'width':'1em','height':_0x5e1569(0x273)},'children':[{'tag':'g','attrs':{'clipPath':_0x5e1569(0x20f)},'children':[{'tag':'path','attrs':{'stroke':_0x5e1569(0x1ef),'d':_0x5e1569(0x278),'strokeLinecap':'round','strokeLinejoin':_0x5e1569(0x26f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5e1569(0x148),'attrs':{'id':_0x5e1569(0x1b1)},'children':[{'tag':'path','attrs':{'fill':_0x5e1569(0x16a),'d':_0x5e1569(0x216),'transform':_0x5e1569(0x18e)}}]}]}],'defIds':[_0x5e1569(0x1b1)]},q=d['forwardRef'](function(_0x289116,_0xfc4c1){const _0x2d44f4=_0x5e1569;return d[_0x2d44f4(0x237)](_,Object[_0x2d44f4(0x20b)]({},_0x289116,{'id':'on-line-icon','ref':_0xfc4c1,'icon':he}));});q[_0x5e1569(0x17a)]=_0x5e1569(0x17e);function V(_0x851923){const _0x1100fb=_0x5e1569;var _0x48dbd0,_0x2e6526;const {mcpCoreConfig:_0xe0a828,onSave:_0x41f6d6,loading:_0x4abc1b=!0x1,config:_0x6ac9eb,connectionStatus$:_0xdf613d,connectionError$:_0xd2e409,currentApiKey$:_0x386c66,currentSessionId$:_0x2d7665}=_0x851923,_0x151077=v[_0x1100fb(0x1ce)](u[_0x1100fb(0x1d9)]),_0x35b0af=v['useObservable'](_0xdf613d,s[_0x1100fb(0x1a0)]['DISCONNECTED']),_0x122a67=v[_0x1100fb(0x248)](_0xd2e409,s[_0x1100fb(0x2a5)][_0x1100fb(0x21d)]),_0x4515bf=v[_0x1100fb(0x248)](_0x2d7665,''),_0x49c575=v[_0x1100fb(0x248)](_0x386c66,''),[_0x66d3c9,_0x345c1d]=d[_0x1100fb(0x19f)](_0x49c575||''),_0x5b5765=!0x0,_0x3c06de=_0x6ac9eb['showDeveloperTools']&&_0xe0a828[_0x1100fb(0x26b)]&&(_0xe0a828[_0x1100fb(0x26b)][_0x1100fb(0x181)](_0x1100fb(0x141))||_0xe0a828[_0x1100fb(0x26b)][_0x1100fb(0x181)](_0x1100fb(0x144))),_0x10d480=(_0x48dbd0=_0xe0a828['mcpServerUrl'])==null?void 0x0:_0x48dbd0[_0x1100fb(0x181)](_0x1100fb(0x141)),_0x599123=(_0x2e6526=_0xe0a828[_0x1100fb(0x26b)])==null?void 0x0:_0x2e6526[_0x1100fb(0x181)](_0x1100fb(0x144)),_0x272495=_0x10d480?_0x1100fb(0x1bc):_0x1100fb(0x2a6),_0xa5b6d4=_0x6ac9eb['showDeveloperTools']&&(_0x10d480||_0x599123),[_0xae9ab9,_0x12d239]=d[_0x1100fb(0x19f)](!_0x66d3c9['trim']()),_0x54f214=(_0x4ffcf7,_0x56867d)=>{const _0x4d5e33=_0x1100fb;if(_0x56867d===s[_0x4d5e33(0x2a5)][_0x4d5e33(0x213)])return _0x4d5e33(0x22d);switch(_0x4ffcf7){case s['MCPConnectionStatus']['CONNECTED']:return _0x4d5e33(0x1de);case s['MCPConnectionStatus'][_0x4d5e33(0x1fb)]:case s[_0x4d5e33(0x1a0)]['RETRYING']:return _0x4d5e33(0x1cb);case s[_0x4d5e33(0x1a0)][_0x4d5e33(0x165)]:return _0x4d5e33(0x22d);default:return _0x4d5e33(0x160);}},_0xc3d87c=(_0x639fd3,_0x86f59b)=>{const _0x3aee59=_0x1100fb;if(_0x86f59b===s['MCPConnectionError'][_0x3aee59(0x213)])return _0x3aee59(0x297);switch(_0x639fd3){case s[_0x3aee59(0x1a0)][_0x3aee59(0x220)]:return _0x3aee59(0x175);case s[_0x3aee59(0x1a0)][_0x3aee59(0x1fb)]:case s['MCPConnectionStatus']['RETRYING']:return _0x3aee59(0x1bd);case s['MCPConnectionStatus']['FAILED']:return _0x3aee59(0x297);default:return _0x3aee59(0x24b);}},_0x4083fc=_0x162a43=>{const _0x3267e0=_0x1100fb;switch(_0x162a43){case s[_0x3267e0(0x1a0)][_0x3267e0(0x220)]:return _0x151077['t']('mcpConfig.connectionStatus.connected');case s[_0x3267e0(0x1a0)][_0x3267e0(0x1fb)]:return _0x151077['t'](_0x3267e0(0x174));case s[_0x3267e0(0x1a0)][_0x3267e0(0x165)]:return _0x151077['t']('mcpConfig.connectionStatus.failed');case s['MCPConnectionStatus'][_0x3267e0(0x288)]:return _0x151077['t'](_0x3267e0(0x245));default:return _0x151077['t'](_0x3267e0(0x295));}},_0x163845=_0x5a3877=>{const _0x376c30=_0x1100fb;switch(_0x5a3877){case s[_0x376c30(0x2a5)][_0x376c30(0x213)]:return _0x151077['t'](_0x376c30(0x226));case s[_0x376c30(0x2a5)]['SESSION_ID_OCCUPIED']:return _0x151077['t'](_0x376c30(0x154));case s[_0x376c30(0x2a5)][_0x376c30(0x206)]:return _0x151077['t'](_0x376c30(0x1d4));case s[_0x376c30(0x2a5)][_0x376c30(0x1af)]:return _0x151077['t'](_0x376c30(0x131));default:return'';}},_0x4749ce=d['useCallback'](()=>{const _0x1e9bbd=_0x1100fb,_0x52ac37={..._0xe0a828,'apiKey':_0x66d3c9[_0x1e9bbd(0x222)](),'enableAuth':_0x5b5765};_0x41f6d6(_0x52ac37);},[_0xe0a828,_0x66d3c9,_0x5b5765,_0x41f6d6]),_0x337eff=_0x66d3c9[_0x1100fb(0x222)]()[_0x1100fb(0x199)]>0x0;return i['jsxs']('div',{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x2a9),'children':[i['jsx'](_0x1100fb(0x267),{'className':_0x1100fb(0x1c3),'children':i[_0x1100fb(0x1a2)](_0x1100fb(0x231),{'className':_0x1100fb(0x1d0),'children':'⚙'})}),i['jsx'](_0x1100fb(0x267),{'children':i[_0x1100fb(0x1a2)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x151077['t'](_0x1100fb(0x236))})})]})}),i['jsxs'](_0x1100fb(0x267),{'className':_0x1100fb(0x16b),'children':[i['jsx'](_0x1100fb(0x267),{'className':f[_0x1100fb(0x290)](_0x1100fb(0x133),_0x54f214(_0x35b0af,_0x122a67)),'children':i[_0x1100fb(0x287)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':f[_0x1100fb(0x290)](_0x1100fb(0x13b),_0xc3d87c(_0x35b0af,_0x122a67))}),i[_0x1100fb(0x1a2)]('span',{'className':_0x1100fb(0x257),'children':_0x4083fc(_0x35b0af)})]})}),_0x122a67!==s[_0x1100fb(0x2a5)][_0x1100fb(0x21d)]&&(_0x35b0af===s[_0x1100fb(0x1a0)][_0x1100fb(0x165)]||_0x122a67===s[_0x1100fb(0x2a5)][_0x1100fb(0x213)])&&i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x21c),'children':i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x1100fb(0x1a2)]('span',{'className':_0x1100fb(0x16d),'children':'⚠️'}),i['jsx']('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x163845(_0x122a67)})]})})]}),i['jsx'](_0x1100fb(0x267),{'className':_0x1100fb(0x22e),'children':i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':'univer-space-y-5','children':[i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x1b7),'children':[i['jsxs'](_0x1100fb(0x142),{'className':_0x1100fb(0x1f1),'children':[i[_0x1100fb(0x1a2)]('span',{'children':'🔑'}),'\x20',_0x151077['t'](_0x1100fb(0x284)),i['jsx'](_0x1100fb(0x231),{'className':'univer-text-red-500','children':'*'}),_0x3c06de&&i[_0x1100fb(0x1a2)]('a',{'className':_0x1100fb(0x18c),'title':_0x151077['t']('mcpConfig.apiApplyInfo.title'),'role':_0x1100fb(0x25f),'onClick':()=>_0x12d239(!0x0),'children':i[_0x1100fb(0x1a2)](F,{})})]}),i[_0x1100fb(0x1a2)](f[_0x1100fb(0x187)],{'type':_0x1100fb(0x17b),'placeholder':_0x151077['t'](_0x1100fb(0x2b2)),'value':_0x66d3c9,'disabled':_0x4abc1b,'autoComplete':_0x1100fb(0x1c1),'onChange':_0x345c1d}),i[_0x1100fb(0x1a2)]('p',{'className':_0x1100fb(0x146),'children':_0x151077['t'](_0x1100fb(0x26d))})]}),_0x3c06de&&_0xae9ab9&&i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x150),'children':[i[_0x1100fb(0x1a2)]('a',{'className':_0x1100fb(0x271),'role':_0x1100fb(0x25f),'onClick':()=>_0x12d239(!0x1),'children':i[_0x1100fb(0x1a2)](B,{'className':_0x1100fb(0x24f)})}),i[_0x1100fb(0x287)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i[_0x1100fb(0x1a2)](_0x1100fb(0x231),{'className':_0x1100fb(0x23e),'children':'🚀'})}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x1a1),'children':[i[_0x1100fb(0x1a2)]('h4',{'className':_0x1100fb(0x1f2),'children':_0x151077['t'](_0x1100fb(0x1db))}),i[_0x1100fb(0x1a2)]('p',{'className':_0x1100fb(0x285),'children':_0x151077['t'](_0x1100fb(0x23d))}),i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x28d),'children':_0xa5b6d4&&i['jsxs']('a',{'className':_0x1100fb(0x15e),'href':_0x272495,'target':_0x1100fb(0x1ed),'rel':_0x1100fb(0x291),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x231),{'children':'🤖'}),_0x151077['t'](_0x1100fb(0x185)),i[_0x1100fb(0x1a2)](_0x1100fb(0x231),{'className':_0x1100fb(0x29b),'children':'↗'})]})}),i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x153),'children':['✨','\x20',_0x151077['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x6ac9eb[_0x1100fb(0x238)]&&i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x1b8),'children':[i['jsxs']('h4',{'className':_0x1100fb(0x2b9),'children':[i['jsx'](_0x1100fb(0x231),{'children':'🔗'}),'\x20',_0x151077['t'](_0x1100fb(0x15d))]}),i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x1f7),'children':[i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x279),'children':[i[_0x1100fb(0x1a2)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x151077['t']('mcpConfig.configInstructions')}),i[_0x1100fb(0x287)]('div',{'className':'univer-space-y-2','children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x173),'children':_0x151077['t'](_0x1100fb(0x219))}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x1bf),'children':[i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x13f),'children':[i[_0x1100fb(0x1a2)]('span',{'className':_0x1100fb(0x198),'children':'1'}),_0x151077['t'](_0x1100fb(0x179))]}),i[_0x1100fb(0x287)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1100fb(0x1a2)]('span',{'className':_0x1100fb(0x198),'children':'2'}),_0x151077['t']('mcpConfig.configStep2')]}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x13f),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x231),{'className':_0x1100fb(0x198),'children':'3'}),_0x151077['t'](_0x1100fb(0x1c7))]})]})]})]}),i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x1b7),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),i['jsx'](_0x1100fb(0x267),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':i[_0x1100fb(0x1a2)]('pre',{'className':_0x1100fb(0x1ec),'children':JSON[_0x1100fb(0x234)]({'mcpServers':{'univer':{'url':_0x1100fb(0x27b)+(_0x4515bf||'<SESSION_ID>'),'type':_0x1100fb(0x2a8),'headers':{'Authorization':'Bearer\x20'+(_0x66d3c9||'<API_KEY>')}}}},null,0x2)})})]}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x279),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x173),'children':_0x151077['t'](_0x1100fb(0x230))}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x1b7),'children':[i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x14f),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x1100fb(0x287)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x1100fb(0x1a2)]('div',{'className':_0x1100fb(0x17f),'children':_0x1100fb(0x215)}),i['jsx'](_0x1100fb(0x267),{'className':_0x1100fb(0x146),'children':_0x151077['t'](_0x1100fb(0x212))})]})]}),i[_0x1100fb(0x287)]('div',{'className':_0x1100fb(0x14f),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x2ab)}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'className':_0x1100fb(0x259),'children':[i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x17f),'children':_0x1100fb(0x14b)}),i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x146),'children':_0x151077['t'](_0x1100fb(0x24e))})]})]})]})]})]})]}),i[_0x1100fb(0x1a2)](f[_0x1100fb(0x156)],{'onClick':_0x4749ce,'disabled':!_0x337eff||_0x4abc1b,'className':_0x1100fb(0x1a7),'children':_0x4abc1b?i[_0x1100fb(0x287)](_0x1100fb(0x231),{'className':_0x1100fb(0x13f),'children':[i['jsx'](_0x1100fb(0x231),{'children':'⟲'}),_0x151077['t'](_0x1100fb(0x170))]}):i[_0x1100fb(0x287)](_0x1100fb(0x231),{'className':_0x1100fb(0x13f),'children':[i['jsx'](H,{}),_0x151077['t'](_0x1100fb(0x20c))]})}),i[_0x1100fb(0x1a2)](_0x1100fb(0x267),{'className':_0x1100fb(0x258),'children':i['jsxs'](_0x1100fb(0x267),{'className':_0x1100fb(0x24d),'children':[i['jsx'](_0x1100fb(0x231),{'className':_0x1100fb(0x27a),'children':'💡'}),i['jsxs'](_0x1100fb(0x267),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i['jsx'](_0x1100fb(0x267),{'className':_0x1100fb(0x239),'children':_0x1100fb(0x1dc)}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'children':['•',_0x151077['t'](_0x1100fb(0x2a1))]}),i[_0x1100fb(0x287)](_0x1100fb(0x267),{'children':['•',_0x151077['t'](_0x1100fb(0x183))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x5e1569(0x1f0)],xe=(_0x73a0c9,_0x387f5b,_0x830d92,_0x7eb7e5)=>{for(var _0x231a1b=_0x7eb7e5>0x1?void 0x0:_0x7eb7e5?me(_0x387f5b,_0x830d92):_0x387f5b,_0x3a96c3=_0x73a0c9['length']-0x1,_0x536bdc;_0x3a96c3>=0x0;_0x3a96c3--)(_0x536bdc=_0x73a0c9[_0x3a96c3])&&(_0x231a1b=_0x536bdc(_0x231a1b)||_0x231a1b);return _0x231a1b;},g=(_0xe10a3a,_0x329e10)=>(_0x2a28b0,_0x1fb384)=>_0x329e10(_0x2a28b0,_0x1fb384,_0xe10a3a);const O=_0x5e1569(0x182),D=_0x5e1569(0x15c);exports[_0x5e1569(0x223)]=class extends u[_0x5e1569(0x1cf)]{constructor(_0xea2518,_0x14dcd2,_0x1bcca7,_0x1bf70b,_0xbe8eb1,_0x374fb9,_0x2919b4,_0x3595c6,_0x5cc8c3,_0x37ab86){const _0x3613d9=_0x5e1569;super(),I(this,_0x3613d9(0x23f),new M[(_0x3613d9(0x1e4))](!0x1)),I(this,_0x3613d9(0x18a),new M[(_0x3613d9(0x1e4))]({})),I(this,_0x3613d9(0x25d),new M[(_0x3613d9(0x1e4))]({})),I(this,_0x3613d9(0x1ac),new M[(_0x3613d9(0x1e4))]('')),I(this,_0x3613d9(0x202),async _0x276bdb=>{const _0x556980=_0x3613d9;var _0x2597fc,_0x20ed90;this[_0x556980(0x23f)][_0x556980(0x180)](!0x0);try{const _0x23b58f=await this[_0x556980(0x1d7)](_0x276bdb);if(!_0x23b58f[_0x556980(0x157)]){this[_0x556980(0x23a)][_0x556980(0x235)]({'type':f[_0x556980(0x265)][_0x556980(0x2ae)],'content':_0x23b58f['errorMessage']||this[_0x556980(0x1b3)]['t'](_0x556980(0x281))});return;}_0x276bdb[_0x556980(0x1da)]?await this['_localStorageService'][_0x556980(0x29f)](O,_0x276bdb['apiKey'][_0x556980(0x222)]()):await this[_0x556980(0x18b)][_0x556980(0x15f)](O),this['_apiKey$']['next'](((_0x2597fc=_0x276bdb[_0x556980(0x1da)])==null?void 0x0:_0x2597fc[_0x556980(0x222)]())||''),this[_0x556980(0x209)]['__setCustomHeaders']({'Authorization':_0x556980(0x217)+((_0x20ed90=_0x276bdb[_0x556980(0x1da)])==null?void 0x0:_0x20ed90[_0x556980(0x222)]())}),this[_0x556980(0x23a)][_0x556980(0x235)]({'type':f[_0x556980(0x265)][_0x556980(0x169)],'content':this[_0x556980(0x1b3)]['t'](_0x556980(0x147))}),setTimeout(()=>{const _0x5d00fc=_0x556980;this[_0x5d00fc(0x207)][_0x5d00fc(0x26a)](D);},0x320);}catch(_0x3aa520){this[_0x556980(0x1fd)][_0x556980(0x155)](_0x556980(0x214),_0x3aa520),this[_0x556980(0x23a)][_0x556980(0x235)]({'type':f[_0x556980(0x265)][_0x556980(0x2ae)],'content':this['_localeService']['t'](_0x556980(0x1ae))});}finally{this[_0x556980(0x23f)]['next'](!0x1);}}),(this[_0x3613d9(0x25a)]=_0xea2518,this[_0x3613d9(0x20d)]=_0x14dcd2,this['_configService']=_0x1bcca7,this[_0x3613d9(0x18b)]=_0x1bf70b,this[_0x3613d9(0x207)]=_0xbe8eb1,this['_messageService']=_0x374fb9,this[_0x3613d9(0x168)]=_0x2919b4,this[_0x3613d9(0x1b3)]=_0x3595c6,this['_logService']=_0x5cc8c3,this['_mcpConnectionController']=_0x37ab86,this[_0x3613d9(0x2b1)](),this[_0x3613d9(0x14d)](),this[_0x3613d9(0x14c)]());}['showConfigPanel'](){const _0x225a46=_0x5e1569,_0x1df54d=this[_0x225a46(0x27f)][_0x225a46(0x1f5)](P);_0x1df54d!=null&&_0x1df54d[_0x225a46(0x238)]&&this['_dialogService']['open']({'id':D,'title':{'title':this[_0x225a46(0x1b3)]['t'](_0x225a46(0x260))},'children':{'label':_0x225a46(0x229)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1d814e=_0x225a46;this[_0x1d814e(0x207)][_0x1d814e(0x26a)](D);}});}['getCurrentConfig'](){const _0x3fe860=_0x5e1569;return this[_0x3fe860(0x18a)]['value'];}[_0x5e1569(0x14c)](){const _0x150fdc=_0x5e1569;this[_0x150fdc(0x21e)](this[_0x150fdc(0x168)]['register'](_0x150fdc(0x229),this['_createConfigPanelComponent']()));}[_0x5e1569(0x143)](){const _0x1c3829=_0x5e1569;return v[_0x1c3829(0x247)](()=>{const _0x4b08ab=_0x1c3829;var _0x46885a,_0x22e845,_0x338701;return i[_0x4b08ab(0x1a2)](V,{'config':this[_0x4b08ab(0x25d)][_0x4b08ab(0x2bb)],'mcpCoreConfig':this[_0x4b08ab(0x18a)][_0x4b08ab(0x2bb)],'currentApiKey$':this[_0x4b08ab(0x1ac)],'onSave':this[_0x4b08ab(0x202)],'loading':this[_0x4b08ab(0x23f)]['value'],'connectionStatus$':(_0x46885a=this[_0x4b08ab(0x209)])==null?void 0x0:_0x46885a[_0x4b08ab(0x2b0)],'connectionError$':(_0x22e845=this[_0x4b08ab(0x209)])==null?void 0x0:_0x22e845['connectionError$'],'currentSessionId$':(_0x338701=this['_mcpConnectionController'])==null?void 0x0:_0x338701[_0x4b08ab(0x28e)]});},this['_injector']);}[_0x5e1569(0x2b1)](){const _0x3fbb6a=_0x5e1569;this[_0x3fbb6a(0x21e)](this[_0x3fbb6a(0x27f)]['subscribeConfigValue$'](s[_0x3fbb6a(0x225)])[_0x3fbb6a(0x240)](_0x3257c4=>{const _0x64f074=_0x3fbb6a;this[_0x64f074(0x18a)][_0x64f074(0x180)](_0x3257c4||{});}));const _0x46b68f=this['_configService']['getConfig'](s['MCP_PLUGIN_CONFIG_KEY']);this['_mcpCoreConfig$'][_0x3fbb6a(0x180)](_0x46b68f||{}),this[_0x3fbb6a(0x21e)](this[_0x3fbb6a(0x27f)]['subscribeConfigValue$'](P)['subscribe'](_0x29b541=>{const _0x49f72e=_0x3fbb6a;this['_config$'][_0x49f72e(0x180)](_0x29b541||{});}));const _0x308c2b=this[_0x3fbb6a(0x27f)]['getConfig'](P);this[_0x3fbb6a(0x25d)][_0x3fbb6a(0x180)](_0x308c2b||{});}async['_loadStoredApiKey'](){const _0x3830d8=_0x5e1569,_0x33c3d8=this[_0x3830d8(0x27f)]['getConfig'](P);if(!(_0x33c3d8!=null&&_0x33c3d8[_0x3830d8(0x238)]))return;const _0x5e6314=await this['_localStorageService'][_0x3830d8(0x221)](O);_0x5e6314&&(this[_0x3830d8(0x209)]['__setCustomHeaders']({'Authorization':_0x3830d8(0x217)+_0x5e6314}),this[_0x3830d8(0x1ac)][_0x3830d8(0x180)](_0x5e6314));}async[_0x5e1569(0x1d7)](_0x3efbf0){const _0x76c53c=_0x5e1569;if(!_0x3efbf0[_0x76c53c(0x1da)]||_0x3efbf0[_0x76c53c(0x1da)][_0x76c53c(0x222)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3efbf0[_0x76c53c(0x1da)]['trim']()[_0x76c53c(0x199)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x183a83=await this[_0x76c53c(0x25a)][_0x76c53c(0x298)](s[_0x76c53c(0x137)])[_0x76c53c(0x20e)](_0x3efbf0['apiKey']['trim']());return _0x183a83[_0x76c53c(0x157)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x183a83[_0x76c53c(0x155)]||this[_0x76c53c(0x1b3)]['t'](_0x76c53c(0x2a2))};}catch(_0x429b70){return console[_0x76c53c(0x203)](_0x76c53c(0x2b4),_0x429b70),{'isValid':!0x0};}}},exports[_0x5e1569(0x223)]=xe([g(0x0,u['Inject'](u[_0x5e1569(0x151)])),g(0x1,v[_0x5e1569(0x1ea)]),g(0x2,u['IConfigService']),g(0x3,u[_0x5e1569(0x13d)]),g(0x4,v[_0x5e1569(0x19b)]),g(0x5,v['IMessageService']),g(0x6,u[_0x5e1569(0x294)](v[_0x5e1569(0x172)])),g(0x7,u[_0x5e1569(0x294)](u['LocaleService'])),g(0x8,u[_0x5e1569(0x1e7)]),g(0x9,u['Inject'](s[_0x5e1569(0x137)]))],exports[_0x5e1569(0x223)]);const b={'id':_0x5e1569(0x1d2),'type':u['CommandType'][_0x5e1569(0x251)],'handler':async(_0x4b7f1a,_0x3b334e)=>(_0x4b7f1a['get'](exports[_0x5e1569(0x223)])[_0x5e1569(0x16f)](),!0x0)};function Z(_0x53fa1e,_0xc371d8){const _0xfd7e86=_0x5e1569;switch(_0x53fa1e){case s['MCPConnectionStatus'][_0xfd7e86(0x21b)]:return'mcpStatus.disconnected';case s[_0xfd7e86(0x1a0)][_0xfd7e86(0x1fb)]:return _0xfd7e86(0x200);case s[_0xfd7e86(0x1a0)][_0xfd7e86(0x220)]:return _0xfd7e86(0x145);case s[_0xfd7e86(0x1a0)]['FAILED']:switch(_0xc371d8){case s[_0xfd7e86(0x2a5)][_0xfd7e86(0x213)]:return'mcpStatus.unauthorized';case s[_0xfd7e86(0x2a5)][_0xfd7e86(0x2a3)]:return _0xfd7e86(0x28f);case s['MCPConnectionError'][_0xfd7e86(0x206)]:return _0xfd7e86(0x191);case s['MCPConnectionError'][_0xfd7e86(0x1af)]:return _0xfd7e86(0x21f);default:return'mcpStatus.failed';}case s[_0xfd7e86(0x1a0)]['RETRYING']:return _0xfd7e86(0x162);default:return _0xfd7e86(0x1f6);}}function Se(_0x1f3b9f,_0x5990e8,_0x338292,_0x250f01=!0x0){const _0x5b258b=_0x5e1569,_0x9f6b23=Z(_0x1f3b9f,_0x5990e8),_0x4cf67b=_0x338292['t'](_0x9f6b23);return _0x250f01?_0x1f3b9f===s[_0x5b258b(0x1a0)][_0x5b258b(0x21b)]&&_0x5990e8===s[_0x5b258b(0x2a5)][_0x5b258b(0x213)]?_0x4cf67b+_0x5b258b(0x192)+_0x338292['t'](_0x5b258b(0x1f4)):_0x1f3b9f===s[_0x5b258b(0x1a0)]['CONNECTED']?''+_0x4cf67b:_0x1f3b9f===s['MCPConnectionStatus']['DISCONNECTED']||_0x1f3b9f===s['MCPConnectionStatus'][_0x5b258b(0x165)]?_0x4cf67b+'\x20-\x20'+_0x338292['t'](_0x5b258b(0x13a)):_0x4cf67b:_0x4cf67b;}function Pe(_0x3e05f7){const _0x1a6b7a=_0x5e1569;switch(_0x3e05f7){case s[_0x1a6b7a(0x1a0)][_0x1a6b7a(0x220)]:return _0x1a6b7a(0x246);case s[_0x1a6b7a(0x1a0)]['CONNECTING']:case s[_0x1a6b7a(0x1a0)]['RETRYING']:return'univer-text-yellow-500';case s[_0x1a6b7a(0x1a0)]['FAILED']:case s[_0x1a6b7a(0x1a0)][_0x1a6b7a(0x21b)]:return'univer-text-red-500';default:return _0x1a6b7a(0x224);}}function W(_0x30b207){const _0x2ddd81=_0x5e1569,{status$:_0x4b111f,error$:_0x4fb5f1,onConfigure:_0x2f1fe0,showClickable:_0x193eb5=!0x0}=_0x30b207,_0x457cfd=v[_0x2ddd81(0x248)](_0x4b111f,s[_0x2ddd81(0x1a0)][_0x2ddd81(0x21b)]),_0x4cca42=v[_0x2ddd81(0x248)](_0x4fb5f1,s[_0x2ddd81(0x2a5)][_0x2ddd81(0x21d)]),_0x5b7380=v[_0x2ddd81(0x1ce)](u[_0x2ddd81(0x1d9)]),_0x3a1bce=_0x457cfd===s[_0x2ddd81(0x1a0)][_0x2ddd81(0x220)];_0x457cfd===s['MCPConnectionStatus']['CONNECTING']||s[_0x2ddd81(0x1a0)][_0x2ddd81(0x288)];const _0x44520d=_0x5b7380['t'](Z(_0x457cfd,_0x4cca42)),_0x31653e=Se(_0x457cfd,_0x4cca42,_0x5b7380,_0x193eb5),_0x392da1=Pe(_0x457cfd),_0x426e69=_0x3a1bce?i[_0x2ddd81(0x1a2)](q,{}):i[_0x2ddd81(0x1a2)](Y,{}),_0x2c4093=d[_0x2ddd81(0x286)](()=>{_0x193eb5&&_0x2f1fe0&&_0x2f1fe0();},[_0x193eb5,_0x2f1fe0]);function _0x5b26f3(){const _0x7e5cb1=_0x2ddd81;return i[_0x7e5cb1(0x287)](_0x7e5cb1(0x267),{'className':f[_0x7e5cb1(0x290)](_0x7e5cb1(0x23b),_0x193eb5&&_0x2f1fe0&&_0x7e5cb1(0x140)),'role':_0x7e5cb1(0x25f),'onClick':_0x193eb5&&_0x2f1fe0?_0x2c4093:void 0x0,'children':[i[_0x7e5cb1(0x1a2)](_0x7e5cb1(0x267),{'className':f[_0x7e5cb1(0x290)](_0x7e5cb1(0x1f8),_0x392da1),'children':_0x426e69}),i['jsx'](_0x7e5cb1(0x267),{'className':_0x7e5cb1(0x204),'children':_0x44520d})]});}return i[_0x2ddd81(0x1a2)](f['Tooltip'],{'title':_0x31653e,'placement':_0x2ddd81(0x19e),'children':_0x5b26f3()});}var Ie=Object[_0x5e1569(0x1f0)],_e=(_0x309cc3,_0x530f8a,_0x459c9e,_0x5981a7)=>{const _0x3bf21a=_0x5e1569;for(var _0x5dc958=_0x5981a7>0x1?void 0x0:_0x5981a7?Ie(_0x530f8a,_0x459c9e):_0x530f8a,_0x2396ec=_0x309cc3[_0x3bf21a(0x199)]-0x1,_0xbb0d3a;_0x2396ec>=0x0;_0x2396ec--)(_0xbb0d3a=_0x309cc3[_0x2396ec])&&(_0x5dc958=_0xbb0d3a(_0x5dc958)||_0x5dc958);return _0x5dc958;},N=(_0xfb823e,_0x48e7e4)=>(_0x1f1b20,_0x3104d6)=>_0x48e7e4(_0x1f1b20,_0x3104d6,_0xfb823e);exports[_0x5e1569(0x27d)]=class extends u[_0x5e1569(0x1cf)]{constructor(_0x12d64c,_0x2a673f,_0x3e7350,_0x484c98){const _0x1a1e7c=_0x5e1569;super(),this[_0x1a1e7c(0x25a)]=_0x12d64c,this[_0x1a1e7c(0x1b5)]=_0x2a673f,this[_0x1a1e7c(0x20d)]=_0x3e7350,this[_0x1a1e7c(0x27f)]=_0x484c98,this[_0x1a1e7c(0x208)](),this[_0x1a1e7c(0x1a3)]();}[_0x5e1569(0x208)](){const _0x3fda06=_0x5e1569,_0x1927d5=this[_0x3fda06(0x27f)][_0x3fda06(0x1f5)](P);_0x1927d5!=null&&_0x1927d5['showDeveloperTools']&&(this[_0x3fda06(0x1b5)][_0x3fda06(0x262)]=!0x1);}['_initStatusComponent'](){const _0xfa76a7=_0x5e1569,_0x3bc873=this[_0xfa76a7(0x27f)][_0xfa76a7(0x1f5)](P);(_0x3bc873==null?void 0x0:_0x3bc873[_0xfa76a7(0x26e)])!==!0x1&&this[_0xfa76a7(0x21e)](this['_uiPartsService'][_0xfa76a7(0x266)](v[_0xfa76a7(0x264)][_0xfa76a7(0x19a)],()=>{const _0x29cae6=_0xfa76a7;var _0x38ec1f;return v['connectInjector'](ye({'status$':this[_0x29cae6(0x1b5)][_0x29cae6(0x2b0)],'error$':this[_0x29cae6(0x1b5)][_0x29cae6(0x2b3)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x38ec1f=_0x3bc873==null?void 0x0:_0x3bc873[_0x29cae6(0x238)])!=null?_0x38ec1f:!0x1}),this[_0x29cae6(0x25a)]);}));}['_handleConfigure'](){const _0x423a7f=_0x5e1569;this[_0x423a7f(0x25a)]['get'](exports['MCPConfigUIController'])[_0x423a7f(0x16f)]();}},exports[_0x5e1569(0x27d)]=_e([N(0x0,u['Inject'](u['Injector'])),N(0x1,u[_0x5e1569(0x294)](s['MCPConnectionController'])),N(0x2,v['IUIPartsService']),N(0x3,u['IConfigService'])],exports['MCPConnectionUIController']);function ye(_0x20d60d){const {status$:_0x413ef2,error$:_0x32a6b2,onConfigure:_0x56c1bc,showClickable:_0x57e84b}=_0x20d60d;return function(){const _0x441979=_0x5555;return i[_0x441979(0x1a2)](W,{'status$':_0x413ef2,'error$':_0x32a6b2,'onConfigure':_0x56c1bc,'showClickable':_0x57e84b});};}function Me(_0x5d2515){const _0x514e3e=_0x5e1569;return{'id':b['id'],'type':v[_0x514e3e(0x2aa)]['BUTTON'],'icon':_0x514e3e(0x2a7),'title':'mcpConfig.title','tooltip':_0x514e3e(0x260)};}const Ne={[v['RibbonStartGroup'][_0x5e1569(0x24c)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x5e1569(0x1f0)],je=(_0xcea47d,_0x45359b,_0xe9b1ca,_0x6e7654)=>{const _0x5ca64d=_0x5e1569;for(var _0x217d93=_0x6e7654>0x1?void 0x0:_0x6e7654?be(_0x45359b,_0xe9b1ca):_0x45359b,_0x18b002=_0xcea47d[_0x5ca64d(0x199)]-0x1,_0x1e41ff;_0x18b002>=0x0;_0x18b002--)(_0x1e41ff=_0xcea47d[_0x18b002])&&(_0x217d93=_0x1e41ff(_0x217d93)||_0x217d93);return _0x217d93;},z=(_0x347e95,_0x35ac95)=>(_0x147bc2,_0x149b79)=>_0x35ac95(_0x147bc2,_0x149b79,_0x347e95);exports[_0x5e1569(0x1b6)]=class extends u[_0x5e1569(0x1cf)]{constructor(_0x53bbca,_0x4b1e61){const _0x3ddad2=_0x5e1569;super(),this[_0x3ddad2(0x2af)]=_0x53bbca,this[_0x3ddad2(0x27c)]=_0x4b1e61,this[_0x3ddad2(0x253)](),this['_initializeMenus']();}['_initializeCommands'](){const _0x2c52b3=_0x5e1569;[b][_0x2c52b3(0x1e1)](_0x5e0381=>{const _0x474e79=_0x2c52b3;this[_0x474e79(0x21e)](this[_0x474e79(0x2af)][_0x474e79(0x1c6)](_0x5e0381));});}[_0x5e1569(0x1f3)](){this['_menuManagerService']['mergeMenu'](Ne);}},exports[_0x5e1569(0x1b6)]=je([z(0x0,u[_0x5e1569(0x1ba)]),z(0x1,v[_0x5e1569(0x1dd)])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':_0x5e1569(0x1c4),'connecting':_0x5e1569(0x1a8),'connected':'MCP\x20Connected','failed':_0x5e1569(0x29d),'retrying':_0x5e1569(0x1bb),'unknown':_0x5e1569(0x138),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5e1569(0x289),'networkError':_0x5e1569(0x1f9),'maxRetriesExceeded':_0x5e1569(0x166),'clickToConnect':_0x5e1569(0x12f),'clickToConfigure':_0x5e1569(0x282)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5e1569(0x177),'apiKey':_0x5e1569(0x1a5),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5e1569(0x1e9),'enableAuth':_0x5e1569(0x161),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5e1569(0x158),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5e1569(0x1e8),'configStepTitle':_0x5e1569(0x1d6),'configStep1':_0x5e1569(0x1ab),'configStep2':_0x5e1569(0x184),'configStep3':_0x5e1569(0x2a0),'sessionId':'Session\x20ID','sessionIdDescription':_0x5e1569(0x18f),'authorizationDescription':_0x5e1569(0x1e0),'configParameters':_0x5e1569(0x195),'maxRetries':'Max\x20Retries','save':_0x5e1569(0x13c),'saving':'Saving...','note1':_0x5e1569(0x1e5),'note2':_0x5e1569(0x1b2),'configSaved':_0x5e1569(0x255),'configError':_0x5e1569(0x211),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5e1569(0x164),'univerAiLabel':_0x5e1569(0x28c),'getStarted':_0x5e1569(0x171)},'validation':{'apiKeyRequired':_0x5e1569(0x139),'apiKeyTooShort':_0x5e1569(0x194),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5e1569(0x190)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5e1569(0x1ff),'connected':'Connected','failed':_0x5e1569(0x26c),'retrying':_0x5e1569(0x227)},'connectionError':{'unauthorized':_0x5e1569(0x136),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5e1569(0x263),'maxRetriesExceeded':_0x5e1569(0x274)}}},we={'mcpStatus':{'disconnected':_0x5e1569(0x19c),'connecting':_0x5e1569(0x2b6),'connected':'MCP\x20已连接','failed':_0x5e1569(0x241),'retrying':'MCP\x20重连中...','unknown':_0x5e1569(0x22b),'unauthorized':_0x5e1569(0x228),'sessionOccupied':_0x5e1569(0x21a),'networkError':_0x5e1569(0x2b7),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x5e1569(0x1c5),'clickToConfigure':_0x5e1569(0x1c9)},'mcpConfig':{'title':'MCP\x20配置','description':_0x5e1569(0x14e),'apiKey':_0x5e1569(0x249),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x5e1569(0x14a),'enableAuth':'启用身份验证','enableAuthHint':_0x5e1569(0x149),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x5e1569(0x277),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x5e1569(0x250),'configStep1':_0x5e1569(0x254),'configStep2':_0x5e1569(0x176),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x5e1569(0x19d),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5e1569(0x1be),'configParameters':_0x5e1569(0x1e6),'maxRetries':_0x5e1569(0x130),'save':_0x5e1569(0x299),'saving':'保存中...','note1':_0x5e1569(0x1b9),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x5e1569(0x29e),'apiApplyInfo':{'title':_0x5e1569(0x24a),'description':_0x5e1569(0x15b),'univerAiLabel':_0x5e1569(0x296),'getStarted':_0x5e1569(0x1a4)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x5e1569(0x1d3),'invalidConfig':_0x5e1569(0x1d8),'invalidApiKey':_0x5e1569(0x252)},'connectionStatus':{'disconnected':_0x5e1569(0x283),'connecting':_0x5e1569(0x276),'connected':_0x5e1569(0x189),'failed':'连接失败','retrying':_0x5e1569(0x268)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x5e1569(0x132),'networkError':_0x5e1569(0x1cc),'maxRetriesExceeded':_0x5e1569(0x205)}}};function _0x5555(_0x2fd3ce,_0x5cd3d9){_0x2fd3ce=_0x2fd3ce-0x12f;const _0x4582f8=_0x4582();let _0x5555ff=_0x4582f8[_0x2fd3ce];return _0x5555ff;}var Ae=Object['defineProperty'],Oe=Object['getOwnPropertyDescriptor'],De=(_0xd8af05,_0xa0e05f,_0x222c7a)=>_0xa0e05f in _0xd8af05?Ae(_0xd8af05,_0xa0e05f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x222c7a}):_0xd8af05[_0xa0e05f]=_0x222c7a,Ue=(_0x381d67,_0x31995b,_0x3f10be,_0x16504b)=>{const _0x37f2f7=_0x5e1569;for(var _0x37f217=_0x16504b>0x1?void 0x0:_0x16504b?Oe(_0x31995b,_0x3f10be):_0x31995b,_0x98c6ae=_0x381d67[_0x37f2f7(0x199)]-0x1,_0x3c186d;_0x98c6ae>=0x0;_0x98c6ae--)(_0x3c186d=_0x381d67[_0x98c6ae])&&(_0x37f217=_0x3c186d(_0x37f217)||_0x37f217);return _0x37f217;},y=(_0x17af71,_0xec331a)=>(_0x10c121,_0x2cc31b)=>_0xec331a(_0x10c121,_0x2cc31b,_0x17af71),$e=(_0x5063fa,_0x539e4b,_0x443eac)=>De(_0x5063fa,_0x539e4b+'',_0x443eac);exports[_0x5e1569(0x272)]=class extends u[_0x5e1569(0x292)]{constructor(_0x4e2cb0=L,_0x31e76b,_0x435f1f,_0x2c348f,_0x4f9e4a,_0x39abc1){const _0x29b728=_0x5e1569;super(),this[_0x29b728(0x23c)]=_0x4e2cb0,this[_0x29b728(0x25a)]=_0x31e76b,this[_0x29b728(0x27f)]=_0x435f1f,this[_0x29b728(0x20d)]=_0x2c348f,this[_0x29b728(0x18b)]=_0x4f9e4a,this[_0x29b728(0x1b3)]=_0x39abc1;const {..._0x336c63}=u[_0x29b728(0x218)]({},L,this[_0x29b728(0x23c)]);this[_0x29b728(0x27f)][_0x29b728(0x1e3)](P,_0x336c63);}async[_0x5e1569(0x1c8)](){const _0x19f766=_0x5e1569,_0x26e770=[[exports[_0x19f766(0x27d)]],[exports[_0x19f766(0x223)]],[exports[_0x19f766(0x1b6)]]];this[_0x19f766(0x25a)][_0x19f766(0x1b0)](A[_0x19f766(0x256)])||_0x26e770[_0x19f766(0x2ba)]([A[_0x19f766(0x256)],{'useClass':A[_0x19f766(0x22f)]}]),_0x26e770[_0x19f766(0x1e1)](_0x567d6f=>this[_0x19f766(0x25a)][_0x19f766(0x25b)](_0x567d6f)),this[_0x19f766(0x25a)][_0x19f766(0x298)](exports[_0x19f766(0x27d)]),this[_0x19f766(0x25a)][_0x19f766(0x298)](exports[_0x19f766(0x223)]),this['_injector'][_0x19f766(0x298)](exports[_0x19f766(0x1b6)]);}},$e(exports['UniverMCPUIPlugin'],_0x5e1569(0x134),'MCP_UI_PLUGIN'),exports['UniverMCPUIPlugin']=Ue([u[_0x5e1569(0x1b4)](s[_0x5e1569(0x193)]),y(0x1,u[_0x5e1569(0x294)](u[_0x5e1569(0x151)])),y(0x2,u[_0x5e1569(0x1ee)]),y(0x3,v[_0x5e1569(0x1ea)]),y(0x4,u[_0x5e1569(0x13d)]),y(0x5,u[_0x5e1569(0x294)](u[_0x5e1569(0x1d9)]))],exports[_0x5e1569(0x272)]),exports[_0x5e1569(0x229)]=V,exports[_0x5e1569(0x2ac)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x5e1569(0x29a)]=Ee,exports[_0x5e1569(0x28a)]=we;
|
|
1
|
+
'use strict';const _0xfd1766=_0x4d02;(function(_0x12a988,_0x829b95){const _0x4e9a67=_0x4d02,_0x2be2ea=_0x12a988();while(!![]){try{const _0x5514c1=parseInt(_0x4e9a67(0x134))/0x1*(parseInt(_0x4e9a67(0x272))/0x2)+parseInt(_0x4e9a67(0x208))/0x3+parseInt(_0x4e9a67(0x1f3))/0x4+-parseInt(_0x4e9a67(0x1ff))/0x5*(parseInt(_0x4e9a67(0x1ba))/0x6)+parseInt(_0x4e9a67(0x250))/0x7*(-parseInt(_0x4e9a67(0x1cf))/0x8)+parseInt(_0x4e9a67(0x1b7))/0x9+parseInt(_0x4e9a67(0x25e))/0xa*(parseInt(_0x4e9a67(0x20e))/0xb);if(_0x5514c1===_0x829b95)break;else _0x2be2ea['push'](_0x2be2ea['shift']());}catch(_0x31ac9f){_0x2be2ea['push'](_0x2be2ea['shift']());}}}(_0x3dad,0x59611));var ae=Object[_0xfd1766(0x246)],le=(_0x35baab,_0x3de6c1,_0xf487c8)=>_0x3de6c1 in _0x35baab?ae(_0x35baab,_0x3de6c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf487c8}):_0x35baab[_0x3de6c1]=_0xf487c8,I=(_0x4fb589,_0x1eb6c8,_0xefecc7)=>le(_0x4fb589,typeof _0x1eb6c8!=_0xfd1766(0x266)?_0x1eb6c8+'':_0x1eb6c8,_0xefecc7);Object['defineProperty'](exports,Symbol[_0xfd1766(0x1e9)],{'value':_0xfd1766(0x116)});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:_0x3693a5,..._0x37f3e2}){const _0x567869=_0xfd1766,{icon:_0x5af8ff,id:_0x11ca82,className:_0x326815,extend:_0x113c0d,..._0x57139f}=_0x37f3e2,_0x3a09c0=(_0x567869(0x133)+_0x11ca82+'\x20'+(_0x326815||''))[_0x567869(0x1f0)](),_0x390d85=d['useRef']('_'+de());return G(_0x5af8ff,''+_0x11ca82,{'defIds':_0x5af8ff[_0x567869(0x13e)],'idSuffix':_0x390d85[_0x567869(0x219)]},{'ref':_0x3693a5,'className':_0x3a09c0,..._0x57139f},_0x113c0d);}function G(_0x3b61c1,_0x11a3b6,_0x158712,_0x29c4ef,_0x2ad982){const _0x3ac139=_0xfd1766;return d[_0x3ac139(0x21e)](_0x3b61c1['tag'],{'key':_0x11a3b6,...ue(_0x3b61c1,_0x158712,_0x2ad982),..._0x29c4ef},(ve(_0x3b61c1,_0x158712)[_0x3ac139(0x233)]||[])[_0x3ac139(0x1c7)]((_0x362b30,_0x1d3402)=>G(_0x362b30,_0x11a3b6+'-'+_0x3b61c1[_0x3ac139(0x11a)]+'-'+_0x1d3402,_0x158712,void 0x0,_0x2ad982)));}function ue(_0x39fe3f,_0x2349be,_0x236800){const _0xd515fc=_0xfd1766,_0x9bb161={..._0x39fe3f[_0xd515fc(0x23b)]};_0x236800!=null&&_0x236800[_0xd515fc(0x12a)]&&_0x9bb161[_0xd515fc(0x1e8)]===_0xd515fc(0x12a)&&(_0x9bb161[_0xd515fc(0x1e8)]=_0x236800[_0xd515fc(0x12a)]),_0x39fe3f[_0xd515fc(0x11a)]===_0xd515fc(0x1a4)&&_0x9bb161['id']&&(_0x9bb161['id']=_0x9bb161['id']+_0x2349be[_0xd515fc(0x258)]),Object[_0xd515fc(0x161)](_0x9bb161)[_0xd515fc(0x1a0)](([_0xd29905,_0x2c108a])=>{const _0x2927b6=_0xd515fc;_0xd29905==='mask'&&typeof _0x2c108a==_0x2927b6(0x1b9)&&(_0x9bb161[_0xd29905]=_0x2c108a[_0x2927b6(0x156)](/url\(#(.*)\)/,_0x2927b6(0x256)+_0x2349be[_0x2927b6(0x258)]+')'));});const {defIds:_0x2db918}=_0x2349be;return!_0x2db918||_0x2db918[_0xd515fc(0x1d2)]===0x0||(_0x39fe3f[_0xd515fc(0x11a)]==='use'&&_0x9bb161[_0xd515fc(0x251)]&&(_0x9bb161[_0xd515fc(0x251)]=_0x9bb161['xlink:href']+_0x2349be[_0xd515fc(0x258)]),Object['entries'](_0x9bb161)[_0xd515fc(0x1a0)](([_0x3e0c20,_0x405308])=>{const _0x5525d8=_0xd515fc;typeof _0x405308=='string'&&(_0x9bb161[_0x3e0c20]=_0x405308[_0x5525d8(0x156)](/url\(#(.*)\)/,_0x5525d8(0x256)+_0x2349be['idSuffix']+')'));})),_0x9bb161;}function ve(_0x1639bb,_0x28e7ea){const _0x481233=_0xfd1766;var _0x381f16;const {defIds:_0x2db33b}=_0x28e7ea;return!_0x2db33b||_0x2db33b[_0x481233(0x1d2)]===0x0?_0x1639bb:_0x1639bb[_0x481233(0x11a)]===_0x481233(0x226)&&((_0x381f16=_0x1639bb[_0x481233(0x233)])!=null&&_0x381f16['length'])?{..._0x1639bb,'children':_0x1639bb[_0x481233(0x233)][_0x481233(0x1c7)](_0x4c0a3b=>typeof _0x4c0a3b[_0x481233(0x23b)]['id']=='string'&&_0x2db33b&&_0x2db33b[_0x481233(0x1a8)](_0x4c0a3b[_0x481233(0x23b)]['id'])?{..._0x4c0a3b,'attrs':{..._0x4c0a3b[_0x481233(0x23b)],'id':_0x4c0a3b[_0x481233(0x23b)]['id']+_0x28e7ea[_0x481233(0x258)]}}:_0x4c0a3b)}:_0x1639bb;}function de(){const _0x3f825c=_0xfd1766;return Math[_0x3f825c(0x1d7)]()['toString'](0x24)[_0x3f825c(0x158)](0x2,0x8);}_[_0xfd1766(0x257)]=_0xfd1766(0x189);const Ce={'tag':_0xfd1766(0x20f),'attrs':{'xmlns':_0xfd1766(0x170),'fill':_0xfd1766(0x1a3),'viewBox':'0\x200\x2016\x2016','width':_0xfd1766(0x1d3),'height':'1em'},'children':[{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x1ec),'d':_0xfd1766(0x124),'fillRule':'evenodd','clipRule':'evenodd'}}]},H=d[_0xfd1766(0x1ef)](function(_0x1c6037,_0x4b2fd4){const _0xb47d24=_0xfd1766;return d['createElement'](_,Object['assign']({},_0x1c6037,{'id':_0xb47d24(0x181),'ref':_0x4b2fd4,'icon':Ce}));});H[_0xfd1766(0x257)]=_0xfd1766(0x26b);const ge={'tag':_0xfd1766(0x20f),'attrs':{'xmlns':_0xfd1766(0x170),'fill':_0xfd1766(0x1a3),'viewBox':_0xfd1766(0x15d),'width':_0xfd1766(0x1d3),'height':_0xfd1766(0x1d3)},'children':[{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x1ec),'d':_0xfd1766(0x276)}}]},B=d[_0xfd1766(0x1ef)](function(_0x3a47c8,_0x38642a){const _0x532e02=_0xfd1766;return d[_0x532e02(0x21e)](_,Object['assign']({},_0x3a47c8,{'id':_0x532e02(0x1b1),'ref':_0x38642a,'icon':ge}));});B['displayName']=_0xfd1766(0x260);const fe={'tag':_0xfd1766(0x20f),'attrs':{'xmlns':_0xfd1766(0x170),'fill':_0xfd1766(0x1a3),'viewBox':_0xfd1766(0x15d),'width':'1em','height':_0xfd1766(0x1d3)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0xfd1766(0x16a)}},{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x1ec),'d':_0xfd1766(0x209)}},{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x1ec),'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':_0xfd1766(0x24a),'clipRule':_0xfd1766(0x24a)}}]},F=d[_0xfd1766(0x1ef)](function(_0x3f57a0,_0x2d63e7){const _0x52e7d7=_0xfd1766;return d[_0x52e7d7(0x21e)](_,Object['assign']({},_0x3f57a0,{'id':_0x52e7d7(0x132),'ref':_0x2d63e7,'icon':fe}));});F['displayName']=_0xfd1766(0x167);const pe={'tag':_0xfd1766(0x20f),'attrs':{'xmlns':_0xfd1766(0x170),'fill':_0xfd1766(0x1a3),'viewBox':'0\x200\x2016\x2016','width':_0xfd1766(0x1d3),'height':_0xfd1766(0x1d3)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xfd1766(0x180),'attrs':{'stroke':_0xfd1766(0x1ec),'d':_0xfd1766(0x183),'strokeLinecap':_0xfd1766(0x235),'strokeLinejoin':_0xfd1766(0x235),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xfd1766(0x1fb),'attrs':{'id':_0xfd1766(0x286)},'children':[{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x22d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0xfd1766(0x286)]},Y=d[_0xfd1766(0x1ef)](function(_0x12f57b,_0x28d2ef){const _0x11fbe2=_0xfd1766;return d[_0x11fbe2(0x21e)](_,Object[_0x11fbe2(0x188)]({},_0x12f57b,{'id':_0x11fbe2(0x12e),'ref':_0x28d2ef,'icon':pe}));});Y['displayName']=_0xfd1766(0x23a);const he={'tag':'svg','attrs':{'xmlns':_0xfd1766(0x170),'fill':_0xfd1766(0x1a3),'viewBox':_0xfd1766(0x239),'width':'1em','height':_0xfd1766(0x1d3)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xfd1766(0x180),'attrs':{'stroke':_0xfd1766(0x1ec),'d':_0xfd1766(0x186),'strokeLinecap':_0xfd1766(0x235),'strokeLinejoin':_0xfd1766(0x235),'strokeWidth':1.2}}]},{'tag':_0xfd1766(0x226),'attrs':{},'children':[{'tag':_0xfd1766(0x1fb),'attrs':{'id':_0xfd1766(0x15b)},'children':[{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x22d),'d':_0xfd1766(0x17d),'transform':'translate(.97)'}}]}]}],'defIds':[_0xfd1766(0x15b)]},q=d[_0xfd1766(0x1ef)](function(_0x23c362,_0xa67c3){const _0x37acac=_0xfd1766;return d[_0x37acac(0x21e)](_,Object[_0x37acac(0x188)]({},_0x23c362,{'id':_0x37acac(0x25a),'ref':_0xa67c3,'icon':he}));});q[_0xfd1766(0x257)]='OnLineIcon';function V(_0x2970a8){const _0x3e9fbd=_0xfd1766;var _0x439f73,_0x89b801;const {mcpCoreConfig:_0x1038d9,onSave:_0x157282,loading:_0x4fd0ab=!0x1,config:_0x18def1,connectionStatus$:_0x3f4178,connectionError$:_0x9983b4,currentApiKey$:_0x7ed92,currentSessionId$:_0x48fdb3}=_0x2970a8,_0x3221f9=v[_0x3e9fbd(0x26a)](u[_0x3e9fbd(0x1c8)]),_0x360074=v['useObservable'](_0x3f4178,s[_0x3e9fbd(0x17a)][_0x3e9fbd(0x215)]),_0x4dacb1=v[_0x3e9fbd(0x174)](_0x9983b4,s[_0x3e9fbd(0x190)][_0x3e9fbd(0x1c3)]),_0x5218e2=v['useObservable'](_0x48fdb3,''),_0x5ca831=v[_0x3e9fbd(0x174)](_0x7ed92,''),[_0x4c54ae,_0x2a09b3]=d['useState'](_0x5ca831||''),_0x3e44d1=!0x0,_0x4156e9=_0x18def1[_0x3e9fbd(0x1f5)]&&_0x1038d9['mcpServerUrl']&&(_0x1038d9[_0x3e9fbd(0x1af)][_0x3e9fbd(0x1a8)](_0x3e9fbd(0x27d))||_0x1038d9[_0x3e9fbd(0x1af)][_0x3e9fbd(0x1a8)](_0x3e9fbd(0x146))),_0x135258=(_0x439f73=_0x1038d9[_0x3e9fbd(0x1af)])==null?void 0x0:_0x439f73[_0x3e9fbd(0x1a8)](_0x3e9fbd(0x27d)),_0x54f67f=(_0x89b801=_0x1038d9[_0x3e9fbd(0x1af)])==null?void 0x0:_0x89b801['includes']('univer.ai'),_0x484d70=_0x135258?_0x3e9fbd(0x1e7):_0x3e9fbd(0x1bb),_0x37a070=_0x18def1[_0x3e9fbd(0x1f5)]&&(_0x135258||_0x54f67f),[_0x18844a,_0x9deb94]=d[_0x3e9fbd(0x139)](!_0x4c54ae[_0x3e9fbd(0x1f0)]()),_0x954f3e=(_0xabfbd8,_0x3441ed)=>{const _0x6f83ab=_0x3e9fbd;if(_0x3441ed===s['MCPConnectionError']['UNAUTHORIZED'])return _0x6f83ab(0x17c);switch(_0xabfbd8){case s[_0x6f83ab(0x17a)][_0x6f83ab(0x151)]:return _0x6f83ab(0x123);case s['MCPConnectionStatus']['CONNECTING']:case s[_0x6f83ab(0x17a)][_0x6f83ab(0x17b)]:return _0x6f83ab(0x21d);case s['MCPConnectionStatus'][_0x6f83ab(0x1e3)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x6f83ab(0x1f4);}},_0x10f492=(_0x130b71,_0x5ece7b)=>{const _0x4796b8=_0x3e9fbd;if(_0x5ece7b===s['MCPConnectionError'][_0x4796b8(0x249)])return _0x4796b8(0x24f);switch(_0x130b71){case s['MCPConnectionStatus'][_0x4796b8(0x151)]:return _0x4796b8(0x279);case s[_0x4796b8(0x17a)][_0x4796b8(0x110)]:case s[_0x4796b8(0x17a)]['RETRYING']:return _0x4796b8(0x1ea);case s['MCPConnectionStatus'][_0x4796b8(0x1e3)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x2f5bca=_0x1d8b69=>{const _0x21e4ea=_0x3e9fbd;switch(_0x1d8b69){case s['MCPConnectionStatus'][_0x21e4ea(0x151)]:return _0x3221f9['t'](_0x21e4ea(0x1fd));case s[_0x21e4ea(0x17a)][_0x21e4ea(0x110)]:return _0x3221f9['t'](_0x21e4ea(0x1f8));case s[_0x21e4ea(0x17a)][_0x21e4ea(0x1e3)]:return _0x3221f9['t'](_0x21e4ea(0x1f2));case s['MCPConnectionStatus']['RETRYING']:return _0x3221f9['t'](_0x21e4ea(0x1d9));default:return _0x3221f9['t']('mcpConfig.connectionStatus.disconnected');}},_0x52facb=_0x17eb47=>{const _0x2804c0=_0x3e9fbd;switch(_0x17eb47){case s[_0x2804c0(0x190)][_0x2804c0(0x249)]:return _0x3221f9['t'](_0x2804c0(0x220));case s[_0x2804c0(0x190)][_0x2804c0(0x19f)]:return _0x3221f9['t'](_0x2804c0(0x1bd));case s[_0x2804c0(0x190)]['NETWORK_ERROR']:return _0x3221f9['t'](_0x2804c0(0x263));case s[_0x2804c0(0x190)][_0x2804c0(0x173)]:return _0x3221f9['t'](_0x2804c0(0x1be));default:return'';}},_0x3f184c=d[_0x3e9fbd(0x13d)](()=>{const _0x8e074e={..._0x1038d9,'apiKey':_0x4c54ae['trim'](),'enableAuth':_0x3e44d1};_0x157282(_0x8e074e);},[_0x1038d9,_0x4c54ae,_0x3e44d1,_0x157282]),_0xc2adc8=_0x4c54ae[_0x3e9fbd(0x1f0)]()['length']>0x0;return i['jsxs'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1e6),'children':[i['jsx']('div',{'className':_0x3e9fbd(0x267),'children':i['jsxs'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x288),'children':[i[_0x3e9fbd(0x22f)]('div',{'className':_0x3e9fbd(0x23e),'children':i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x1aa),'children':'⚙'})}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'children':i['jsx']('p',{'className':_0x3e9fbd(0x291),'children':_0x3221f9['t']('mcpConfig.description')})})]})}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x125),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':f[_0x3e9fbd(0x1a7)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x954f3e(_0x360074,_0x4dacb1)),'children':i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x13c),'children':[i['jsx'](_0x3e9fbd(0x115),{'className':f[_0x3e9fbd(0x1a7)](_0x3e9fbd(0x143),_0x10f492(_0x360074,_0x4dacb1))}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x159),'children':_0x2f5bca(_0x360074)})]})}),_0x4dacb1!==s[_0x3e9fbd(0x190)]['NONE']&&(_0x360074===s[_0x3e9fbd(0x17a)][_0x3e9fbd(0x1e3)]||_0x4dacb1===s[_0x3e9fbd(0x190)][_0x3e9fbd(0x249)])&&i[_0x3e9fbd(0x22f)]('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i[_0x3e9fbd(0x148)]('div',{'className':_0x3e9fbd(0x10f),'children':[i[_0x3e9fbd(0x22f)]('span',{'className':_0x3e9fbd(0x289),'children':'⚠️'}),i[_0x3e9fbd(0x22f)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x52facb(_0x4dacb1)})]})})]}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1bf),'children':i[_0x3e9fbd(0x148)]('div',{'className':'univer-space-y-5','children':[i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':'univer-space-y-2','children':[i[_0x3e9fbd(0x148)](_0x3e9fbd(0x13b),{'className':_0x3e9fbd(0x18c),'children':[i['jsx'](_0x3e9fbd(0x197),{'children':'🔑'}),'\x20',_0x3221f9['t'](_0x3e9fbd(0x1f9)),i[_0x3e9fbd(0x22f)]('span',{'className':_0x3e9fbd(0x28f),'children':'*'}),_0x4156e9&&i['jsx']('a',{'className':_0x3e9fbd(0x23d),'title':_0x3221f9['t'](_0x3e9fbd(0x1dd)),'role':_0x3e9fbd(0x1ab),'onClick':()=>_0x9deb94(!0x0),'children':i[_0x3e9fbd(0x22f)](F,{})})]}),i[_0x3e9fbd(0x22f)](f[_0x3e9fbd(0x1b2)],{'type':_0x3e9fbd(0x21b),'placeholder':_0x3221f9['t'](_0x3e9fbd(0x285)),'value':_0x4c54ae,'disabled':_0x4fd0ab,'autoComplete':_0x3e9fbd(0x261),'onChange':_0x2a09b3}),i[_0x3e9fbd(0x22f)]('p',{'className':_0x3e9fbd(0x136),'children':_0x3221f9['t'](_0x3e9fbd(0x168))})]}),_0x4156e9&&_0x18844a&&i['jsxs'](_0x3e9fbd(0x115),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[i['jsx']('a',{'className':_0x3e9fbd(0x231),'role':_0x3e9fbd(0x1ab),'onClick':()=>_0x9deb94(!0x1),'children':i[_0x3e9fbd(0x22f)](B,{'className':'univer-size-4'})}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1bc),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x205),'children':'🚀'})}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x12d),'children':[i['jsx']('h4',{'className':_0x3e9fbd(0x12c),'children':_0x3221f9['t'](_0x3e9fbd(0x1dd))}),i[_0x3e9fbd(0x22f)]('p',{'className':_0x3e9fbd(0x210),'children':_0x3221f9['t']('mcpConfig.apiApplyInfo.description')}),i['jsx'](_0x3e9fbd(0x115),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x37a070&&i[_0x3e9fbd(0x148)]('a',{'className':_0x3e9fbd(0x17e),'href':_0x484d70,'target':_0x3e9fbd(0x294),'rel':'noopener\x20noreferrer','children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'children':'🤖'}),_0x3221f9['t'](_0x3e9fbd(0x269)),i[_0x3e9fbd(0x22f)]('span',{'className':_0x3e9fbd(0x24c),'children':'↗'})]})}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1ae),'children':['✨','\x20',_0x3221f9['t'](_0x3e9fbd(0x1ac))]})]})]})]}),_0x18def1[_0x3e9fbd(0x1f5)]&&i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1c6),'children':[i[_0x3e9fbd(0x148)]('h4',{'className':_0x3e9fbd(0x21a),'children':[i[_0x3e9fbd(0x22f)]('span',{'children':'🔗'}),'\x20',_0x3221f9['t']('mcpConfig.connectionInfo')]}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1c1),'children':[i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1c9),'children':[i[_0x3e9fbd(0x22f)]('p',{'className':_0x3e9fbd(0x16d),'children':_0x3221f9['t']('mcpConfig.configInstructions')}),i['jsxs']('div',{'className':_0x3e9fbd(0x283),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x23c),'children':_0x3221f9['t']('mcpConfig.configStepTitle')}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x230),'children':[i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x13c),'children':[i['jsx']('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x3221f9['t'](_0x3e9fbd(0x15e))]}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x154),'children':'2'}),_0x3221f9['t']('mcpConfig.configStep2')]}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x154),'children':'3'}),_0x3221f9['t'](_0x3e9fbd(0x284))]})]})]})]}),i['jsxs'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x283),'children':[i['jsx'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x23c),'children':_0x3e9fbd(0x13f)}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1b6),'children':i['jsx'](_0x3e9fbd(0x18e),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x3e9fbd(0x16b)+(_0x5218e2||_0x3e9fbd(0x18b)),'type':_0x3e9fbd(0x207),'headers':{'Authorization':'Bearer\x20'+(_0x4c54ae||_0x3e9fbd(0x178))}}}},null,0x2)})})]}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1c9),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x23c),'children':_0x3221f9['t'](_0x3e9fbd(0x28d))}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x283),'children':[i['jsxs'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x28a),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x14f)}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x253),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1d0),'children':_0x3e9fbd(0x160)}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x136),'children':_0x3221f9['t'](_0x3e9fbd(0x175))})]})]}),i['jsxs'](_0x3e9fbd(0x115),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i['jsx'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x14f)}),i['jsxs'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x253),'children':[i[_0x3e9fbd(0x22f)]('div',{'className':_0x3e9fbd(0x1d0),'children':'Authorization:'}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3221f9['t'](_0x3e9fbd(0x171))})]})]})]})]})]})]}),i['jsx'](f[_0x3e9fbd(0x22c)],{'onClick':_0x3f184c,'disabled':!_0xc2adc8||_0x4fd0ab,'className':_0x3e9fbd(0x152),'children':_0x4fd0ab?i[_0x3e9fbd(0x148)]('span',{'className':_0x3e9fbd(0x13c),'children':[i['jsx'](_0x3e9fbd(0x197),{'children':'⟲'}),_0x3221f9['t'](_0x3e9fbd(0x1ee))]}):i[_0x3e9fbd(0x148)](_0x3e9fbd(0x197),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x3e9fbd(0x22f)](H,{}),_0x3221f9['t'](_0x3e9fbd(0x22e))]})}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x223),'children':i[_0x3e9fbd(0x148)]('div',{'className':'univer-flex\x20univer-gap-3','children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x20c),'children':'💡'}),i['jsxs'](_0x3e9fbd(0x115),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x20d),'children':'Configuration\x20Notes:'}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'children':['•',_0x3221f9['t']('mcpConfig.note1')]}),i['jsxs'](_0x3e9fbd(0x115),{'children':['•',_0x3221f9['t'](_0x3e9fbd(0x119))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0xfd1766(0x1f1)],xe=(_0x1fcd13,_0x4ea563,_0x5e87a7,_0x58491b)=>{const _0xa26c70=_0xfd1766;for(var _0x18655c=_0x58491b>0x1?void 0x0:_0x58491b?me(_0x4ea563,_0x5e87a7):_0x4ea563,_0x2d46d7=_0x1fcd13[_0xa26c70(0x1d2)]-0x1,_0x6d7e5b;_0x2d46d7>=0x0;_0x2d46d7--)(_0x6d7e5b=_0x1fcd13[_0x2d46d7])&&(_0x18655c=_0x6d7e5b(_0x18655c)||_0x18655c);return _0x18655c;},g=(_0x5bc2b5,_0x5316b7)=>(_0x40826b,_0x16db52)=>_0x5316b7(_0x40826b,_0x16db52,_0x5bc2b5);const O=_0xfd1766(0x16f),D=_0xfd1766(0x1eb);exports[_0xfd1766(0x228)]=class extends u[_0xfd1766(0x214)]{constructor(_0x4f84ca,_0x2925a2,_0x308998,_0x3be84d,_0x2abff6,_0x2d02db,_0x18d6a1,_0x13a351,_0x312248,_0x5aa67d){const _0x36847f=_0xfd1766;super(),I(this,_0x36847f(0x234),new M[(_0x36847f(0x225))](!0x1)),I(this,_0x36847f(0x27e),new M['BehaviorSubject']({})),I(this,_0x36847f(0x212),new M[(_0x36847f(0x225))]({})),I(this,_0x36847f(0x232),new M[(_0x36847f(0x225))]('')),I(this,_0x36847f(0x17f),async _0x11fed8=>{const _0x31a5e2=_0x36847f;var _0x4e0fed,_0x4f92b3;this[_0x31a5e2(0x234)][_0x31a5e2(0x117)](!0x0);try{const _0x57508e=await this[_0x31a5e2(0x26c)](_0x11fed8);if(!_0x57508e[_0x31a5e2(0x290)]){this['_messageService'][_0x31a5e2(0x145)]({'type':f['MessageType'][_0x31a5e2(0x121)],'content':_0x57508e[_0x31a5e2(0x200)]||this[_0x31a5e2(0x19a)]['t'](_0x31a5e2(0x11f))});return;}_0x11fed8[_0x31a5e2(0x274)]?await this['_localStorageService']['setItem'](O,_0x11fed8[_0x31a5e2(0x274)]['trim']()):await this[_0x31a5e2(0x1d5)][_0x31a5e2(0x204)](O),this[_0x31a5e2(0x232)][_0x31a5e2(0x117)](((_0x4e0fed=_0x11fed8['apiKey'])==null?void 0x0:_0x4e0fed[_0x31a5e2(0x1f0)]())||''),this[_0x31a5e2(0x1d6)]['__setCustomHeaders']({'Authorization':_0x31a5e2(0x27f)+((_0x4f92b3=_0x11fed8[_0x31a5e2(0x274)])==null?void 0x0:_0x4f92b3[_0x31a5e2(0x1f0)]())}),this[_0x31a5e2(0x218)][_0x31a5e2(0x145)]({'type':f['MessageType'][_0x31a5e2(0x182)],'content':this['_localeService']['t'](_0x31a5e2(0x149))}),setTimeout(()=>{const _0x408a92=_0x31a5e2;this['_dialogService'][_0x408a92(0x155)](D);},0x320);}catch(_0x5e6dec){this[_0x31a5e2(0x184)][_0x31a5e2(0x262)](_0x31a5e2(0x1db),_0x5e6dec),this[_0x31a5e2(0x218)][_0x31a5e2(0x145)]({'type':f['MessageType'][_0x31a5e2(0x121)],'content':this[_0x31a5e2(0x19a)]['t'](_0x31a5e2(0x206))});}finally{this[_0x31a5e2(0x234)]['next'](!0x1);}}),(this['_injector']=_0x4f84ca,this[_0x36847f(0x16e)]=_0x2925a2,this[_0x36847f(0x28e)]=_0x308998,this[_0x36847f(0x1d5)]=_0x3be84d,this['_dialogService']=_0x2abff6,this[_0x36847f(0x218)]=_0x2d02db,this['_componentManager']=_0x18d6a1,this['_localeService']=_0x13a351,this[_0x36847f(0x184)]=_0x312248,this[_0x36847f(0x1d6)]=_0x5aa67d,this[_0x36847f(0x1b4)](),this[_0x36847f(0x198)](),this[_0x36847f(0x1d1)]());}[_0xfd1766(0x1a2)](){const _0x257cc6=_0xfd1766,_0x5de5b0=this[_0x257cc6(0x28e)][_0x257cc6(0x224)](P);_0x5de5b0!=null&&_0x5de5b0['showDeveloperTools']&&this['_dialogService'][_0x257cc6(0x111)]({'id':D,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x257cc6(0x14a)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x234dc9=_0x257cc6;this[_0x234dc9(0x1c5)]['close'](D);}});}['getCurrentConfig'](){const _0x4e497a=_0xfd1766;return this['_mcpCoreConfig$'][_0x4e497a(0x15c)];}[_0xfd1766(0x1d1)](){const _0xcc206a=_0xfd1766;this['disposeWithMe'](this[_0xcc206a(0x114)][_0xcc206a(0x144)](_0xcc206a(0x14a),this[_0xcc206a(0x11d)]()));}['_createConfigPanelComponent'](){const _0x5cb17f=_0xfd1766;return v[_0x5cb17f(0x216)](()=>{const _0x577664=_0x5cb17f;var _0x5d97a5,_0x2245ca,_0x5a8669;return i[_0x577664(0x22f)](V,{'config':this['_config$'][_0x577664(0x15c)],'mcpCoreConfig':this[_0x577664(0x27e)][_0x577664(0x15c)],'currentApiKey$':this[_0x577664(0x232)],'onSave':this[_0x577664(0x17f)],'loading':this['_loading$'][_0x577664(0x15c)],'connectionStatus$':(_0x5d97a5=this[_0x577664(0x1d6)])==null?void 0x0:_0x5d97a5['connectionStatus$'],'connectionError$':(_0x2245ca=this['_mcpConnectionController'])==null?void 0x0:_0x2245ca[_0x577664(0x11c)],'currentSessionId$':(_0x5a8669=this[_0x577664(0x1d6)])==null?void 0x0:_0x5a8669[_0x577664(0x277)]});},this[_0x5cb17f(0x217)]);}[_0xfd1766(0x1b4)](){const _0x535fef=_0xfd1766;this[_0x535fef(0x196)](this[_0x535fef(0x28e)][_0x535fef(0x10e)](s[_0x535fef(0x18a)])[_0x535fef(0x227)](_0x1559ee=>{const _0x5855e5=_0x535fef;this[_0x5855e5(0x27e)]['next'](_0x1559ee||{});}));const _0x5762c9=this[_0x535fef(0x28e)][_0x535fef(0x224)](s[_0x535fef(0x18a)]);this[_0x535fef(0x27e)][_0x535fef(0x117)](_0x5762c9||{}),this[_0x535fef(0x196)](this[_0x535fef(0x28e)][_0x535fef(0x10e)](P)['subscribe'](_0x5b2c72=>{const _0x2bc72f=_0x535fef;this[_0x2bc72f(0x212)][_0x2bc72f(0x117)](_0x5b2c72||{});}));const _0xf7562=this[_0x535fef(0x28e)][_0x535fef(0x224)](P);this[_0x535fef(0x212)][_0x535fef(0x117)](_0xf7562||{});}async['_loadStoredApiKey'](){const _0x28998d=_0xfd1766,_0x3ab67e=this[_0x28998d(0x28e)][_0x28998d(0x224)](P);if(!(_0x3ab67e!=null&&_0x3ab67e[_0x28998d(0x1f5)]))return;const _0x4cff1a=await this[_0x28998d(0x1d5)]['getItem'](O);_0x4cff1a&&(this[_0x28998d(0x1d6)][_0x28998d(0x237)]({'Authorization':_0x28998d(0x27f)+_0x4cff1a}),this[_0x28998d(0x232)][_0x28998d(0x117)](_0x4cff1a));}async[_0xfd1766(0x26c)](_0x140a19){const _0x4d9100=_0xfd1766;if(!_0x140a19[_0x4d9100(0x274)]||_0x140a19[_0x4d9100(0x274)][_0x4d9100(0x1f0)]()[_0x4d9100(0x1d2)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4d9100(0x19a)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x140a19[_0x4d9100(0x274)][_0x4d9100(0x1f0)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4d9100(0x19a)]['t'](_0x4d9100(0x118))};try{const _0x52469a=await this[_0x4d9100(0x217)][_0x4d9100(0x25d)](s[_0x4d9100(0x138)])[_0x4d9100(0x162)](_0x140a19[_0x4d9100(0x274)]['trim']());return _0x52469a[_0x4d9100(0x290)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x52469a[_0x4d9100(0x262)]||this[_0x4d9100(0x19a)]['t'](_0x4d9100(0x147))};}catch(_0x29560c){return console[_0x4d9100(0x222)](_0x4d9100(0x25c),_0x29560c),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u['Inject'](u[_0xfd1766(0x26f)])),g(0x1,v[_0xfd1766(0x1cb)]),g(0x2,u[_0xfd1766(0x221)]),g(0x3,u[_0xfd1766(0x157)]),g(0x4,v[_0xfd1766(0x24b)]),g(0x5,v[_0xfd1766(0x1dc)]),g(0x6,u[_0xfd1766(0x280)](v[_0xfd1766(0x282)])),g(0x7,u[_0xfd1766(0x280)](u[_0xfd1766(0x1c8)])),g(0x8,u[_0xfd1766(0x169)]),g(0x9,u['Inject'](s['MCPConnectionController']))],exports['MCPConfigUIController']);const b={'id':'mcp-ui.command.openConfigPanel','type':u['CommandType'][_0xfd1766(0x192)],'handler':async(_0x52f264,_0x204fad)=>(_0x52f264['get'](exports[_0xfd1766(0x228)])[_0xfd1766(0x1a2)](),!0x0)};function Z(_0x1215a4,_0x5b6199){const _0x35b33a=_0xfd1766;switch(_0x1215a4){case s[_0x35b33a(0x17a)][_0x35b33a(0x215)]:return'mcpStatus.disconnected';case s[_0x35b33a(0x17a)]['CONNECTING']:return _0x35b33a(0x27a);case s[_0x35b33a(0x17a)]['CONNECTED']:return'mcpStatus.connected';case s[_0x35b33a(0x17a)][_0x35b33a(0x1e3)]:switch(_0x5b6199){case s['MCPConnectionError'][_0x35b33a(0x249)]:return _0x35b33a(0x295);case s[_0x35b33a(0x190)][_0x35b33a(0x19f)]:return _0x35b33a(0x255);case s[_0x35b33a(0x190)][_0x35b33a(0x193)]:return _0x35b33a(0x166);case s[_0x35b33a(0x190)][_0x35b33a(0x173)]:return'mcpStatus.maxRetriesExceeded';default:return _0x35b33a(0x15f);}case s[_0x35b33a(0x17a)][_0x35b33a(0x17b)]:return _0x35b33a(0x14d);default:return _0x35b33a(0x24e);}}function Se(_0x24eaac,_0x4050b8,_0x323eb2,_0x37598f=!0x0){const _0x41b54a=_0xfd1766,_0x24f6a7=Z(_0x24eaac,_0x4050b8),_0x5001e6=_0x323eb2['t'](_0x24f6a7);return _0x37598f?_0x24eaac===s['MCPConnectionStatus'][_0x41b54a(0x215)]&&_0x4050b8===s[_0x41b54a(0x190)]['UNAUTHORIZED']?_0x5001e6+'\x20-\x20'+_0x323eb2['t'](_0x41b54a(0x15a)):_0x24eaac===s[_0x41b54a(0x17a)]['CONNECTED']?''+_0x5001e6:_0x24eaac===s[_0x41b54a(0x17a)][_0x41b54a(0x215)]||_0x24eaac===s[_0x41b54a(0x17a)]['FAILED']?_0x5001e6+'\x20-\x20'+_0x323eb2['t'](_0x41b54a(0x248)):_0x5001e6:_0x5001e6;}function Pe(_0x282f59){const _0x42c68b=_0xfd1766;switch(_0x282f59){case s[_0x42c68b(0x17a)][_0x42c68b(0x151)]:return _0x42c68b(0x252);case s[_0x42c68b(0x17a)][_0x42c68b(0x110)]:case s['MCPConnectionStatus'][_0x42c68b(0x17b)]:return _0x42c68b(0x131);case s[_0x42c68b(0x17a)]['FAILED']:case s[_0x42c68b(0x17a)][_0x42c68b(0x215)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function W(_0x544b78){const _0x16cc05=_0xfd1766,{status$:_0xf33b0e,error$:_0xf05d31,onConfigure:_0x1e5752,showClickable:_0x1cc638=!0x0}=_0x544b78,_0x50e4d8=v[_0x16cc05(0x174)](_0xf33b0e,s[_0x16cc05(0x17a)][_0x16cc05(0x215)]),_0x41093d=v[_0x16cc05(0x174)](_0xf05d31,s[_0x16cc05(0x190)]['NONE']),_0x43e08b=v[_0x16cc05(0x26a)](u['LocaleService']),_0x2a04eb=_0x50e4d8===s['MCPConnectionStatus'][_0x16cc05(0x151)];_0x50e4d8===s[_0x16cc05(0x17a)]['CONNECTING']||s[_0x16cc05(0x17a)][_0x16cc05(0x17b)];const _0x447577=_0x43e08b['t'](Z(_0x50e4d8,_0x41093d)),_0x15bc36=Se(_0x50e4d8,_0x41093d,_0x43e08b,_0x1cc638),_0x3f133e=Pe(_0x50e4d8),_0x21ad6e=_0x2a04eb?i[_0x16cc05(0x22f)](q,{}):i[_0x16cc05(0x22f)](Y,{}),_0x1c3c3a=d[_0x16cc05(0x13d)](()=>{_0x1cc638&&_0x1e5752&&_0x1e5752();},[_0x1cc638,_0x1e5752]);function _0x2d5036(){const _0x51ed17=_0x16cc05;return i[_0x51ed17(0x148)](_0x51ed17(0x115),{'className':f[_0x51ed17(0x1a7)](_0x51ed17(0x27c),_0x1cc638&&_0x1e5752&&_0x51ed17(0x140)),'role':_0x51ed17(0x1ab),'onClick':_0x1cc638&&_0x1e5752?_0x1c3c3a:void 0x0,'children':[i['jsx']('div',{'className':f[_0x51ed17(0x1a7)](_0x51ed17(0x1b5),_0x3f133e),'children':_0x21ad6e}),i[_0x51ed17(0x22f)](_0x51ed17(0x115),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x447577})]});}return i[_0x16cc05(0x22f)](f[_0x16cc05(0x271)],{'title':_0x15bc36,'placement':_0x16cc05(0x1a5),'children':_0x2d5036()});}var Ie=Object[_0xfd1766(0x1f1)],_e=(_0x541388,_0x513c5c,_0x4d871b,_0x5efc7c)=>{for(var _0x3ac906=_0x5efc7c>0x1?void 0x0:_0x5efc7c?Ie(_0x513c5c,_0x4d871b):_0x513c5c,_0xd120f5=_0x541388['length']-0x1,_0x5710e1;_0xd120f5>=0x0;_0xd120f5--)(_0x5710e1=_0x541388[_0xd120f5])&&(_0x3ac906=_0x5710e1(_0x3ac906)||_0x3ac906);return _0x3ac906;},N=(_0x2cd36d,_0x490311)=>(_0x1863ee,_0x1846f9)=>_0x490311(_0x1863ee,_0x1846f9,_0x2cd36d);exports['MCPConnectionUIController']=class extends u[_0xfd1766(0x214)]{constructor(_0x33aa17,_0x132b76,_0x5edd0b,_0xc28411){const _0x2d7c30=_0xfd1766;super(),this[_0x2d7c30(0x217)]=_0x33aa17,this['_connectionController']=_0x132b76,this[_0x2d7c30(0x16e)]=_0x5edd0b,this[_0x2d7c30(0x28e)]=_0xc28411,this[_0x2d7c30(0x14c)](),this[_0x2d7c30(0x259)]();}[_0xfd1766(0x14c)](){const _0x1f0483=_0xfd1766,_0x2782e2=this[_0x1f0483(0x28e)][_0x1f0483(0x224)](P);_0x2782e2!=null&&_0x2782e2[_0x1f0483(0x1f5)]&&(this[_0x1f0483(0x1de)]['enableAutoConnect']=!0x1);}[_0xfd1766(0x259)](){const _0x5d4531=_0xfd1766,_0x557591=this[_0x5d4531(0x28e)][_0x5d4531(0x224)](P);(_0x557591==null?void 0x0:_0x557591[_0x5d4531(0x1b8)])!==!0x1&&this['disposeWithMe'](this['_uiPartsService']['registerComponent'](v[_0x5d4531(0x195)][_0x5d4531(0x10d)],()=>{const _0xbf1e22=_0x5d4531;var _0xff4eda;return v[_0xbf1e22(0x216)](ye({'status$':this['_connectionController'][_0xbf1e22(0x211)],'error$':this[_0xbf1e22(0x1de)][_0xbf1e22(0x11c)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0xff4eda=_0x557591==null?void 0x0:_0x557591[_0xbf1e22(0x1f5)])!=null?_0xff4eda:!0x1}),this['_injector']);}));}[_0xfd1766(0x238)](){const _0x28342e=_0xfd1766;this[_0x28342e(0x217)][_0x28342e(0x25d)](exports[_0x28342e(0x228)])['showConfigPanel']();}},exports[_0xfd1766(0x194)]=_e([N(0x0,u[_0xfd1766(0x280)](u[_0xfd1766(0x26f)])),N(0x1,u[_0xfd1766(0x280)](s['MCPConnectionController'])),N(0x2,v['IUIPartsService']),N(0x3,u[_0xfd1766(0x221)])],exports['MCPConnectionUIController']);function ye(_0x5bdbad){const {status$:_0x4b6ece,error$:_0x5d5201,onConfigure:_0x3d2c9b,showClickable:_0x3cb05f}=_0x5bdbad;return function(){return i['jsx'](W,{'status$':_0x4b6ece,'error$':_0x5d5201,'onConfigure':_0x3d2c9b,'showClickable':_0x3cb05f});};}function Me(_0x29a3f3){const _0x4a8082=_0xfd1766;return{'id':b['id'],'type':v[_0x4a8082(0x24d)][_0x4a8082(0x243)],'icon':_0x4a8082(0x268),'title':_0x4a8082(0x273),'tooltip':_0x4a8082(0x273)};}function _0x3dad(){const _0x13ecde=['univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','https://console.univer.plus','fill','toStringTag','univer-bg-blue-500','mcp-config-dialog','currentColor','UniverMCPUIPlugin','mcpConfig.saving','forwardRef','trim','getOwnPropertyDescriptor','mcpConfig.connectionStatus.failed','1599416bVgxpj','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','showDeveloperTools','保存配置','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.connectionStatus.connecting','mcpConfig.apiKey','最大重试次数','clipPath','_commandService','mcpConfig.connectionStatus.connected','配置无效','330360WvCJef','errorMessage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','OTHERS','Disconnected','removeItem','univer-text-blue-600','mcpConfig.configError','http','476463qgqvTC','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','has','配置保存失败','univer-shrink-0\x20univer-text-blue-500','univer-font-medium','11bNNEPh','svg','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','connectionStatus$','_config$','mergeMenu','Disposable','DISCONNECTED','connectInjector','_injector','_messageService','current','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','text','点击配置\x20MCP','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','createElement','enUS','mcpConfig.connectionError.unauthorized','IConfigService','warn','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','getConfig','BehaviorSubject','defs','subscribe','MCPConfigUIController','重启您的\x20MCP\x20客户端以使配置生效','Failed\x20to\x20save\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Button','white','mcpConfig.save','jsx','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','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','_apiKey$','children','_loading$','round','MCP\x20连接中...','__setCustomHeaders','_handleConfigure','0\x200\x2017\x2016','OffLineIcon','attrs','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20配置','pluginName','MCP:\x20未授权','BUTTON','WebSocketService','MCP\x20客户端配置','defineProperty','_config','mcpStatus.clickToConnect','UNAUTHORIZED','evenodd','IDialogService','univer-text-gray-400','MenuItemType','mcpStatus.unknown','univer-bg-red-500','2838052XXxerv','xlink:href','univer-text-green-500','univer-min-w-0\x20univer-flex-1','ICommandService','mcpStatus.sessionOccupied','url(#$1','displayName','idSuffix','_initStatusComponent','on-line-icon','Click\x20to\x20configure\x20MCP','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','get','1043300pmiFXx','Enter\x20your\x20API\x20key','CloseIcon','off','error','mcpConfig.connectionError.networkError','Configuration\x20saved\x20successfully','Configuration\x20Parameters:','symbol','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MenuIcon','mcpConfig.apiApplyInfo.univerAiLabel','useDependency','CheckMarkIcon','_validateConfig','API\x20密钥','ISocketService','Injector','Connection\x20Failed','Tooltip','142704SeHuPn','mcpConfig.title','apiKey','重连中...','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','sessionId$','启用身份验证','univer-bg-green-500','mcpStatus.connecting','MCP:\x20Unauthorized','univer-flex\x20univer-items-center','univer.plus','_mcpCoreConfig$','Bearer\x20','Inject','请输入您的\x20API\x20密钥','ComponentManager','univer-space-y-2','mcpConfig.configStep3','mcpConfig.apiKeyPlaceholder','off-line-icon_clip0_910_343','Univer\x20AI\x20Console','univer-flex\x20univer-items-center\x20univer-gap-3','univer-shrink-0\x20univer-text-red-500','univer-flex\x20univer-items-start\x20univer-gap-3','API\x20密钥无效,请检查密钥是否正确','MCP\x20Unknown\x20Status','mcpConfig.configParameters','_configService','univer-text-red-500','isValid','univer-text-sm\x20univer-text-gray-500','Max\x20Retries','MCP\x20状态未知','_blank','mcpStatus.unauthorized','onStarting','MCP:\x20Session\x20ID\x20Occupied','HEADER_MENU','subscribeConfigValue$','univer-flex\x20univer-items-start\x20univer-gap-2','CONNECTING','open','IMenuManagerService','_initializeCommands','_componentManager','div','Module','next','mcpConfig.validation.apiKeyTooShort','mcpConfig.note2','tag','连接中...','connectionError$','_createConfigPanelComponent','zhCN','mcpConfig.validation.invalidConfig','配置参数:','Error','Click\x20to\x20connect\x20MCP','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','什么是\x20API\x20密钥?','MCP:\x20会话\x20ID\x20已被占用','MCP\x20已连接','MCP\x20Client\x20Configuration','colorChannel1','_menuManagerService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex-1','off-line-icon','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20已断开','univer-text-yellow-500','help-icon','univerjs-icon\x20univerjs-icon-','2AHlFCY','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-xs\x20univer-text-gray-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCPConnectionController','useState','RibbonStartGroup','label','univer-flex\x20univer-items-center\x20univer-gap-2','useCallback','defIds','MCP\x20Configuration','\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','将以下配置添加到您的\x20MCP\x20客户端设置中:','Invalid\x20configuration','univer-size-2\x20univer-rounded-full','register','show','univer.ai','mcpConfig.validation.invalidApiKey','jsxs','mcpConfig.configSaved','MCPConfigPanel','启用身份验证以获得安全连接','_initAutoConnect','mcpStatus.retrying','MCP\x20重连中...','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP:\x20超出最大重试次数','CONNECTED','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','MCP:\x20Network\x20Error','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','close','replace','ILocalStorageService','substring','univer-text-sm\x20univer-font-medium','mcpStatus.clickToConfigure','on-line-icon_clip0_910_349','value','0\x200\x2016\x2016','mcpConfig.configStep1','mcpStatus.failed','univer_session_id:','entries','validateApiKey','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','网络连接错误,请检查您的网络连接','mcpStatus.networkError','HelpIcon','mcpConfig.apiKeyHint','ILogService','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','https://mcp.univer.ai/mcp/?univer_session_id=','复制以下\x20JSON\x20配置','univer-text-xs\x20univer-text-gray-600','_uiPartsService','mcp.apiKey','http://www.w3.org/2000/svg','mcpConfig.authorizationDescription','配置保存成功','MAX_RETRIES_EXCEEDED','useObservable','mcpConfig.sessionIdDescription','MCP:\x20Max\x20Retries\x20Exceeded','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','<API_KEY>','配置步骤:','MCPConnectionStatus','RETRYING','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','M0\x200H16V16H0z','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','_handleConfigSave','path','check-mark-icon','Success','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','_logService','您的\x20API\x20密钥安全存储在本地存储中','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','add','assign','UniverIcon','MCP_PLUGIN_CONFIG_KEY','<SESSION_ID>','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_initializeMenus','pre','MCP\x20Disconnected','MCPConnectionError','权限验证失败,请检查您的\x20API\x20密钥','COMMAND','NETWORK_ERROR','MCPConnectionUIController','BuiltInUIPart','disposeWithMe','span','_loadStoredApiKey','MCP:\x20网络错误','_localeService','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','MCP\x20Connected','Univer\x20AI\x20控制台','SESSION_ID_OCCUPIED','forEach','MCP\x20Connecting...','showConfigPanel','none','mask','bottom','配置\x20MCP\x20使用\x20AI\x20操作电子表格','clsx','includes','Copy\x20the\x20JSON\x20configuration\x20below','univer-text-white','button','mcpConfig.apiApplyInfo.getStarted','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpServerUrl','已连接','close-icon','Input','API\x20密钥不能为空','_initConfigSync','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','2071008MLOmcx','showStatus','string','24kogAMd','https://console.univer.ai','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.connectionError.sessionOccupied','mcpConfig.connectionError.maxRetriesExceeded','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-space-y-4','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','NONE','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_dialogService','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','map','LocaleService','univer-space-y-3','您的\x20API\x20密钥将在此浏览器中本地存储','IUIPartsService','API\x20密钥长度至少需要\x2010\x20位','MCP\x20Retrying...','将配置添加到您的\x20MCP\x20客户端设置文件中','8pOrrEm','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_registerComponent','length','1em','连接失败','_localStorageService','_mcpConnectionController','random','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.connectionStatus.retrying','点击连接\x20MCP','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','IMessageService','mcpConfig.apiApplyInfo.title','_connectionController','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCPUIMenuController','push','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','FAILED','Session\x20ID','Enable\x20Authentication'];_0x3dad=function(){return _0x13ecde;};return _0x3dad();}const Ne={[v[_0xfd1766(0x13a)][_0xfd1766(0x202)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};function _0x4d02(_0x597552,_0xfe13e4){_0x597552=_0x597552-0x10d;const _0x3dad9a=_0x3dad();let _0x4d0211=_0x3dad9a[_0x597552];return _0x4d0211;}var be=Object[_0xfd1766(0x1f1)],je=(_0x269ab5,_0x4d05e1,_0x4c0c23,_0x4f3681)=>{const _0x174cf2=_0xfd1766;for(var _0x10bd97=_0x4f3681>0x1?void 0x0:_0x4f3681?be(_0x4d05e1,_0x4c0c23):_0x4d05e1,_0x2092e4=_0x269ab5[_0x174cf2(0x1d2)]-0x1,_0x2978c6;_0x2092e4>=0x0;_0x2092e4--)(_0x2978c6=_0x269ab5[_0x2092e4])&&(_0x10bd97=_0x2978c6(_0x10bd97)||_0x10bd97);return _0x10bd97;},z=(_0x44771e,_0x66bd88)=>(_0x3932c9,_0x55bd00)=>_0x66bd88(_0x3932c9,_0x55bd00,_0x44771e);exports[_0xfd1766(0x1e0)]=class extends u[_0xfd1766(0x214)]{constructor(_0x1e42be,_0x4cdf13){const _0x135c35=_0xfd1766;super(),this[_0x135c35(0x1fc)]=_0x1e42be,this['_menuManagerService']=_0x4cdf13,this[_0x135c35(0x113)](),this[_0x135c35(0x18d)]();}['_initializeCommands'](){const _0x52113b=_0xfd1766;[b][_0x52113b(0x1a0)](_0x4e8999=>{const _0x10cfce=_0x52113b;this[_0x10cfce(0x196)](this[_0x10cfce(0x1fc)]['registerCommand'](_0x4e8999));});}[_0xfd1766(0x18d)](){const _0x5660b6=_0xfd1766;this[_0x5660b6(0x12b)][_0x5660b6(0x213)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0xfd1766(0x254)]),z(0x1,v[_0xfd1766(0x112)])],exports[_0xfd1766(0x1e0)]);const Ee={'mcpStatus':{'disconnected':_0xfd1766(0x18f),'connecting':_0xfd1766(0x1a1),'connected':_0xfd1766(0x19d),'failed':_0xfd1766(0x164),'retrying':_0xfd1766(0x1cd),'unknown':_0xfd1766(0x28c),'unauthorized':_0xfd1766(0x27b),'sessionOccupied':_0xfd1766(0x297),'networkError':_0xfd1766(0x153),'maxRetriesExceeded':_0xfd1766(0x176),'clickToConnect':_0xfd1766(0x122),'clickToConfigure':_0xfd1766(0x25b)},'mcpConfig':{'title':_0xfd1766(0x13f),'description':_0xfd1766(0x22b),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xfd1766(0x25f),'apiKeyHint':_0xfd1766(0x135),'enableAuth':_0xfd1766(0x1e5),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0xfd1766(0x129),'configInstructions':_0xfd1766(0x163),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xfd1766(0x1a9),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xfd1766(0x1c4),'sessionId':_0xfd1766(0x1e4),'sessionIdDescription':_0xfd1766(0x19b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xfd1766(0x265),'maxRetries':_0xfd1766(0x292),'save':'Save\x20Configuration','saving':'Saving...','note1':_0xfd1766(0x1d8),'note2':_0xfd1766(0x1c0),'configSaved':_0xfd1766(0x264),'configError':_0xfd1766(0x22a),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0xfd1766(0x1f7),'univerAiLabel':_0xfd1766(0x287),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xfd1766(0x12f),'invalidConfig':_0xfd1766(0x142),'invalidApiKey':_0xfd1766(0x1ad)},'connectionStatus':{'disconnected':_0xfd1766(0x203),'connecting':'Connecting...','connected':'Connected','failed':_0xfd1766(0x270),'retrying':_0xfd1766(0x19c)},'connectionError':{'unauthorized':_0xfd1766(0x1c2),'sessionOccupied':_0xfd1766(0x201),'networkError':_0xfd1766(0x1df),'maxRetriesExceeded':_0xfd1766(0x1e2)}}},we={'mcpStatus':{'disconnected':_0xfd1766(0x130),'connecting':_0xfd1766(0x236),'connected':_0xfd1766(0x128),'failed':'MCP\x20连接失败','retrying':_0xfd1766(0x14e),'unknown':_0xfd1766(0x293),'unauthorized':_0xfd1766(0x242),'sessionOccupied':_0xfd1766(0x127),'networkError':_0xfd1766(0x199),'maxRetriesExceeded':_0xfd1766(0x150),'clickToConnect':_0xfd1766(0x1da),'clickToConfigure':_0xfd1766(0x21c)},'mcpConfig':{'title':_0xfd1766(0x240),'description':_0xfd1766(0x1a6),'apiKey':_0xfd1766(0x26d),'apiKeyPlaceholder':_0xfd1766(0x281),'apiKeyHint':_0xfd1766(0x1ca),'enableAuth':_0xfd1766(0x278),'enableAuthHint':_0xfd1766(0x14b),'connectionInfo':_0xfd1766(0x245),'mcpClientConfig':_0xfd1766(0x245),'configInstructions':_0xfd1766(0x141),'configStepTitle':_0xfd1766(0x179),'configStep1':_0xfd1766(0x16c),'configStep2':_0xfd1766(0x1ce),'configStep3':_0xfd1766(0x229),'sessionId':'会话ID','sessionIdDescription':_0xfd1766(0x23f),'authorizationDescription':_0xfd1766(0x137),'configParameters':_0xfd1766(0x120),'maxRetries':_0xfd1766(0x1fa),'save':_0xfd1766(0x1f6),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0xfd1766(0x185),'configSaved':_0xfd1766(0x172),'configError':_0xfd1766(0x20b),'apiApplyInfo':{'title':_0xfd1766(0x126),'description':_0xfd1766(0x177),'univerAiLabel':_0xfd1766(0x19e),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0xfd1766(0x1b3),'apiKeyTooShort':_0xfd1766(0x1cc),'invalidConfig':_0xfd1766(0x1fe),'invalidApiKey':_0xfd1766(0x28b)},'connectionStatus':{'disconnected':'未连接','connecting':_0xfd1766(0x11b),'connected':_0xfd1766(0x1b0),'failed':_0xfd1766(0x1d4),'retrying':_0xfd1766(0x275)},'connectionError':{'unauthorized':_0xfd1766(0x191),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0xfd1766(0x165),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object[_0xfd1766(0x246)],Oe=Object['getOwnPropertyDescriptor'],De=(_0x449428,_0x23e936,_0x5a4e55)=>_0x23e936 in _0x449428?Ae(_0x449428,_0x23e936,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a4e55}):_0x449428[_0x23e936]=_0x5a4e55,Ue=(_0x512924,_0xdc8afc,_0x4c807d,_0x47f742)=>{const _0x4cf789=_0xfd1766;for(var _0x564515=_0x47f742>0x1?void 0x0:_0x47f742?Oe(_0xdc8afc,_0x4c807d):_0xdc8afc,_0x58db72=_0x512924[_0x4cf789(0x1d2)]-0x1,_0x3e71fd;_0x58db72>=0x0;_0x58db72--)(_0x3e71fd=_0x512924[_0x58db72])&&(_0x564515=_0x3e71fd(_0x564515)||_0x564515);return _0x564515;},y=(_0x25a985,_0x887123)=>(_0x30d430,_0x4d08af)=>_0x887123(_0x30d430,_0x4d08af,_0x25a985),$e=(_0x3195f2,_0x32f984,_0xdb571b)=>De(_0x3195f2,_0x32f984+'',_0xdb571b);exports[_0xfd1766(0x1ed)]=class extends u['Plugin']{constructor(_0x35f370=L,_0x331e6f,_0xd6ef1a,_0x1803b8,_0x10bfe6,_0x1553b2){const _0x4ac8fd=_0xfd1766;super(),this[_0x4ac8fd(0x247)]=_0x35f370,this[_0x4ac8fd(0x217)]=_0x331e6f,this[_0x4ac8fd(0x28e)]=_0xd6ef1a,this['_uiPartsService']=_0x1803b8,this[_0x4ac8fd(0x1d5)]=_0x10bfe6,this[_0x4ac8fd(0x19a)]=_0x1553b2;const {..._0x133ccf}=u['merge']({},L,this[_0x4ac8fd(0x247)]);this[_0x4ac8fd(0x28e)]['setConfig'](P,_0x133ccf);}async[_0xfd1766(0x296)](){const _0x4cab59=_0xfd1766,_0x9165ee=[[exports['MCPConnectionUIController']],[exports['MCPConfigUIController']],[exports['MCPUIMenuController']]];this[_0x4cab59(0x217)][_0x4cab59(0x20a)](A[_0x4cab59(0x26e)])||_0x9165ee[_0x4cab59(0x1e1)]([A[_0x4cab59(0x26e)],{'useClass':A[_0x4cab59(0x244)]}]),_0x9165ee['forEach'](_0x3e123a=>this[_0x4cab59(0x217)][_0x4cab59(0x187)](_0x3e123a)),this[_0x4cab59(0x217)]['get'](exports[_0x4cab59(0x194)]),this['_injector'][_0x4cab59(0x25d)](exports[_0x4cab59(0x228)]),this['_injector'][_0x4cab59(0x25d)](exports['MCPUIMenuController']);}},$e(exports[_0xfd1766(0x1ed)],_0xfd1766(0x241),'MCP_UI_PLUGIN'),exports[_0xfd1766(0x1ed)]=Ue([u['DependentOn'](s['UniverMCPPlugin']),y(0x1,u['Inject'](u[_0xfd1766(0x26f)])),y(0x2,u[_0xfd1766(0x221)]),y(0x3,v[_0xfd1766(0x1cb)]),y(0x4,u[_0xfd1766(0x157)]),y(0x5,u[_0xfd1766(0x280)](u[_0xfd1766(0x1c8)]))],exports['UniverMCPUIPlugin']),exports[_0xfd1766(0x14a)]=V,exports['MCPStatusDisplay']=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0xfd1766(0x21f)]=Ee,exports[_0xfd1766(0x11e)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3c4b91=_0x5814;function _0x3b1f(){const _0x59dd31=['Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','Saving...','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1498190royygH','Failed\x20to\x20save\x20configuration','113SvJRgj','306243xAJhtE','7268648zrplzN','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Configuration','Retrying...','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','Connected','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','405948fanBGV','Invalid\x20configuration','40VouFYA','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','98AiBrsK','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','384JoyORK','exports','Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','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.','33176jyuTZI','MCP\x20Client\x20Configuration','28930484dlxDKQ','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20is\x20required','Enable\x20Authentication','Configuration\x20Steps:','Session\x20ID','12778fzyEWc','Get\x20your\x20API\x20key\x20in\x20seconds','Save\x20Configuration'];_0x3b1f=function(){return _0x59dd31;};return _0x3b1f();}function _0x5814(_0x578e2b,_0x20bc46){_0x578e2b=_0x578e2b-0x176;const _0x3b1f16=_0x3b1f();let _0x58148c=_0x3b1f16[_0x578e2b];return _0x58148c;}(function(_0x29ae39,_0x2fdffc){const _0x2154d0=_0x5814,_0x10091d=_0x29ae39();while(!![]){try{const _0x1fbe1f=-parseInt(_0x2154d0(0x182))/0x1*(parseInt(_0x2154d0(0x1a6))/0x2)+-parseInt(_0x2154d0(0x198))/0x3*(parseInt(_0x2154d0(0x19e))/0x4)+-parseInt(_0x2154d0(0x180))/0x5+-parseInt(_0x2154d0(0x191))/0x6*(parseInt(_0x2154d0(0x196))/0x7)+parseInt(_0x2154d0(0x184))/0x8+-parseInt(_0x2154d0(0x183))/0x9*(-parseInt(_0x2154d0(0x193))/0xa)+parseInt(_0x2154d0(0x1a0))/0xb;if(_0x1fbe1f===_0x2fdffc)break;else _0x10091d['push'](_0x10091d['shift']());}catch(_0x3dd9f4){_0x10091d['push'](_0x10091d['shift']());}}}(_0x3b1f,0x9d4c6));const e={'mcpStatus':{'disconnected':_0x3c4b91(0x19c),'connecting':_0x3c4b91(0x176),'connected':_0x3c4b91(0x18d),'failed':_0x3c4b91(0x194),'retrying':_0x3c4b91(0x18b),'unknown':_0x3c4b91(0x17c),'unauthorized':_0x3c4b91(0x195),'sessionOccupied':_0x3c4b91(0x188),'networkError':_0x3c4b91(0x18f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3c4b91(0x1a9),'clickToConfigure':_0x3c4b91(0x178)},'mcpConfig':{'title':_0x3c4b91(0x189),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3c4b91(0x1aa),'enableAuth':_0x3c4b91(0x1a3),'enableAuthHint':_0x3c4b91(0x17e),'connectionInfo':_0x3c4b91(0x19f),'mcpClientConfig':_0x3c4b91(0x19f),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3c4b91(0x1a4),'configStep1':_0x3c4b91(0x186),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3c4b91(0x17a),'sessionId':_0x3c4b91(0x1a5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3c4b91(0x19b),'configParameters':_0x3c4b91(0x185),'maxRetries':_0x3c4b91(0x187),'save':_0x3c4b91(0x1a8),'saving':_0x3c4b91(0x17d),'note1':_0x3c4b91(0x190),'note2':_0x3c4b91(0x17f),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3c4b91(0x181),'apiApplyInfo':{'title':_0x3c4b91(0x17b),'description':_0x3c4b91(0x19d),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3c4b91(0x1a7)},'validation':{'apiKeyRequired':_0x3c4b91(0x1a2),'apiKeyTooShort':_0x3c4b91(0x1a1),'invalidConfig':_0x3c4b91(0x192),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3c4b91(0x179),'connected':_0x3c4b91(0x18e),'failed':_0x3c4b91(0x19a),'retrying':_0x3c4b91(0x18a)},'connectionError':{'unauthorized':_0x3c4b91(0x177),'sessionOccupied':_0x3c4b91(0x197),'networkError':_0x3c4b91(0x18c),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x3c4b91(0x199)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x183e(){const _0x13ed2c=['3937914iducQJ','exports','6limbVv','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','216738osGFhF','Configuration\x20Parameters:','172009QEQazT','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','Saving...','MCP:\x20Unauthorized','19397675JhWaiX','531357IEYbKV','16aYjRrB','4764640fEFqmV','Configuration\x20Steps:','What\x20is\x20API\x20Key?','Retrying...','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','189HrZHyf','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','Connected','MCP\x20Connected','MCP\x20Unknown\x20Status','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Save\x20Configuration','Enter\x20your\x20API\x20key','Disconnected','API\x20Key','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Client\x20Configuration','4qkZBPl','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','Connecting...','MCP\x20Configuration','134265JoBSsw'];_0x183e=function(){return _0x13ed2c;};return _0x183e();}const _0x98b7f7=_0x7f29;function _0x7f29(_0x4688de,_0x432b90){_0x4688de=_0x4688de-0x173;const _0x183e25=_0x183e();let _0x7f2935=_0x183e25[_0x4688de];return _0x7f2935;}(function(_0x2c981d,_0x4d41d3){const _0x1205ba=_0x7f29,_0x43e91f=_0x2c981d();while(!![]){try{const _0x2479e1=parseInt(_0x1205ba(0x190))/0x1*(-parseInt(_0x1205ba(0x18b))/0x2)+parseInt(_0x1205ba(0x199))/0x3*(-parseInt(_0x1205ba(0x183))/0x4)+parseInt(_0x1205ba(0x188))/0x5+-parseInt(_0x1205ba(0x18e))/0x6*(parseInt(_0x1205ba(0x1a1))/0x7)+parseInt(_0x1205ba(0x19a))/0x8*(parseInt(_0x1205ba(0x189))/0x9)+-parseInt(_0x1205ba(0x19b))/0xa+parseInt(_0x1205ba(0x198))/0xb;if(_0x2479e1===_0x4d41d3)break;else _0x43e91f['push'](_0x43e91f['shift']());}catch(_0x44d0b1){_0x43e91f['push'](_0x43e91f['shift']());}}}(_0x183e,0x7f0f7));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x98b7f7(0x1a6),'failed':_0x98b7f7(0x194),'retrying':_0x98b7f7(0x192),'unknown':_0x98b7f7(0x173),'unauthorized':_0x98b7f7(0x197),'sessionOccupied':_0x98b7f7(0x19f),'networkError':_0x98b7f7(0x17f),'maxRetriesExceeded':_0x98b7f7(0x17e),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x98b7f7(0x187),'description':_0x98b7f7(0x184),'apiKey':_0x98b7f7(0x17c),'apiKeyPlaceholder':_0x98b7f7(0x17a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x98b7f7(0x178),'enableAuthHint':_0x98b7f7(0x17d),'connectionInfo':_0x98b7f7(0x182),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x98b7f7(0x19c),'configStep1':_0x98b7f7(0x1a3),'configStep2':_0x98b7f7(0x180),'configStep3':_0x98b7f7(0x181),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x98b7f7(0x195),'configParameters':_0x98b7f7(0x18f),'maxRetries':_0x98b7f7(0x1a4),'save':_0x98b7f7(0x179),'saving':_0x98b7f7(0x196),'note1':_0x98b7f7(0x18c),'note2':_0x98b7f7(0x191),'configSaved':_0x98b7f7(0x18d),'configError':_0x98b7f7(0x185),'apiApplyInfo':{'title':_0x98b7f7(0x19d),'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':_0x98b7f7(0x175)},'validation':{'apiKeyRequired':_0x98b7f7(0x193),'apiKeyTooShort':_0x98b7f7(0x1a0),'invalidConfig':_0x98b7f7(0x176),'invalidApiKey':_0x98b7f7(0x177)},'connectionStatus':{'disconnected':_0x98b7f7(0x17b),'connecting':_0x98b7f7(0x186),'connected':_0x98b7f7(0x1a5),'failed':_0x98b7f7(0x1a2),'retrying':_0x98b7f7(0x19e)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x98b7f7(0x174)}}};module[_0x98b7f7(0x18a)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5aa44a=_0x411b;(function(_0x3eef04,_0x3d7d8d){const _0x280ab4=_0x411b,_0x238441=_0x3eef04();while(!![]){try{const _0x398e35=-parseInt(_0x280ab4(0x158))/0x1*(-parseInt(_0x280ab4(0x151))/0x2)+parseInt(_0x280ab4(0x144))/0x3*(parseInt(_0x280ab4(0x143))/0x4)+parseInt(_0x280ab4(0x145))/0x5*(parseInt(_0x280ab4(0x13d))/0x6)+-parseInt(_0x280ab4(0x15e))/0x7+parseInt(_0x280ab4(0x152))/0x8*(parseInt(_0x280ab4(0x14a))/0x9)+parseInt(_0x280ab4(0x13e))/0xa*(-parseInt(_0x280ab4(0x15a))/0xb)+-parseInt(_0x280ab4(0x154))/0xc;if(_0x398e35===_0x3d7d8d)break;else _0x238441['push'](_0x238441['shift']());}catch(_0x1977fe){_0x238441['push'](_0x238441['shift']());}}}(_0x35c4,0x8fd06));function _0x411b(_0x5080d5,_0x1c9ea7){_0x5080d5=_0x5080d5-0x137;const _0x35c49=_0x35c4();let _0x411baa=_0x35c49[_0x5080d5];return _0x411baa;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5aa44a(0x141),'connected':_0x5aa44a(0x14b),'failed':_0x5aa44a(0x156),'retrying':'MCP\x20Retrying...','unknown':_0x5aa44a(0x15c),'unauthorized':_0x5aa44a(0x138),'sessionOccupied':_0x5aa44a(0x155),'networkError':_0x5aa44a(0x149),'maxRetriesExceeded':_0x5aa44a(0x168),'clickToConnect':_0x5aa44a(0x146),'clickToConfigure':_0x5aa44a(0x163)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5aa44a(0x166),'apiKey':_0x5aa44a(0x13a),'apiKeyPlaceholder':_0x5aa44a(0x137),'apiKeyHint':_0x5aa44a(0x140),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5aa44a(0x160),'mcpClientConfig':_0x5aa44a(0x160),'configInstructions':_0x5aa44a(0x14d),'configStepTitle':_0x5aa44a(0x147),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5aa44a(0x15d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x5aa44a(0x159),'authorizationDescription':_0x5aa44a(0x13b),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x5aa44a(0x139),'saving':_0x5aa44a(0x161),'note1':_0x5aa44a(0x14e),'note2':_0x5aa44a(0x153),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x5aa44a(0x13f),'apiApplyInfo':{'title':_0x5aa44a(0x15b),'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':_0x5aa44a(0x157),'getStarted':_0x5aa44a(0x15f)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5aa44a(0x13c),'invalidConfig':_0x5aa44a(0x14f),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5aa44a(0x148),'connected':_0x5aa44a(0x165),'failed':'Connection\x20Failed','retrying':_0x5aa44a(0x164)},'connectionError':{'unauthorized':_0x5aa44a(0x150),'sessionOccupied':_0x5aa44a(0x142),'networkError':_0x5aa44a(0x167),'maxRetriesExceeded':_0x5aa44a(0x162)}}},n=e;module[_0x5aa44a(0x14c)]=n;function _0x35c4(){const _0x8422b5=['What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4604411BhQrDK','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','Saving...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','Retrying...','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','MCP:\x20Unauthorized','Save\x20Configuration','API\x20Key','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','6skknvh','15340rASscX','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','12UGgCRb','255075lPXaCJ','3106065yKbcRF','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Connecting...','MCP:\x20Network\x20Error','1467OFpybA','MCP\x20Connected','exports','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','13296Axzlzr','48560cwsgAd','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','17073468OTBdCx','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','165TuEgEH','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2101RcTxpD'];_0x35c4=function(){return _0x8422b5;};return _0x35c4();}
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x5166(){const _0x5c027a=['6938226icyQBc','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','MCP\x20Unknown\x20Status','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connecting...','API\x20key\x20is\x20required','Max\x20Retries','Connected','Saving...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','Session\x20ID','5100qUTVpx','463584OqqlSh','MCP:\x20Network\x20Error','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','Configuration\x20Parameters:','2527140NgcmGS','1346031ukZaVt','Connection\x20Failed','Retrying...','569182vkvWPn','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','Univer\x20AI\x20Console','MCP\x20Client\x20Configuration','2385752JnrbDm','Enable\x20authentication\x20for\x20secure\x20connections','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Retrying...','2JMFFNO','What\x20is\x20API\x20Key?','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2779iTaMRv'];_0x5166=function(){return _0x5c027a;};return _0x5166();}const _0x31c47c=_0x31f5;function _0x31f5(_0x550328,_0x59aa79){_0x550328=_0x550328-0xbe;const _0x5166a6=_0x5166();let _0x31f5b8=_0x5166a6[_0x550328];return _0x31f5b8;}(function(_0x52bdb,_0x5a95cb){const _0x391971=_0x31f5,_0x2d11f9=_0x52bdb();while(!![]){try{const _0x4c1e5a=-parseInt(_0x391971(0xe0))/0x1*(-parseInt(_0x391971(0xd2))/0x2)+-parseInt(_0x391971(0xcf))/0x3+-parseInt(_0x391971(0xdb))/0x4+parseInt(_0x391971(0xce))/0x5+-parseInt(_0x391971(0xc6))/0x6*(parseInt(_0x391971(0xe6))/0x7)+parseInt(_0x391971(0xc7))/0x8+parseInt(_0x391971(0xe7))/0x9;if(_0x4c1e5a===_0x5a95cb)break;else _0x2d11f9['push'](_0x2d11f9['shift']());}catch(_0x2d1028){_0x2d11f9['push'](_0x2d11f9['shift']());}}}(_0x5166,0x7f2cb));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x31c47c(0xe3),'failed':'MCP\x20Connection\x20Failed','retrying':_0x31c47c(0xdf),'unknown':_0x31c47c(0xea),'unauthorized':_0x31c47c(0xd8),'sessionOccupied':_0x31c47c(0xd7),'networkError':_0x31c47c(0xc8),'maxRetriesExceeded':_0x31c47c(0xca),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x31c47c(0xcc)},'mcpConfig':{'title':_0x31c47c(0xc4),'description':_0x31c47c(0xd6),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x31c47c(0xd5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x31c47c(0xdc),'connectionInfo':_0x31c47c(0xda),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x31c47c(0xec),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x31c47c(0xde),'configStep2':_0x31c47c(0xe4),'configStep3':_0x31c47c(0xdd),'sessionId':_0x31c47c(0xc5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x31c47c(0xe2),'configParameters':_0x31c47c(0xcd),'maxRetries':_0x31c47c(0xc0),'save':'Save\x20Configuration','saving':_0x31c47c(0xc2),'note1':_0x31c47c(0xe8),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x31c47c(0xcb),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x31c47c(0xe1),'description':_0x31c47c(0xeb),'univerAiLabel':_0x31c47c(0xd9),'getStarted':_0x31c47c(0xc3)},'validation':{'apiKeyRequired':_0x31c47c(0xbf),'apiKeyTooShort':_0x31c47c(0xd3),'invalidConfig':_0x31c47c(0xe9),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x31c47c(0xbe),'connected':_0x31c47c(0xc1),'failed':_0x31c47c(0xd0),'retrying':_0x31c47c(0xd1)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x31c47c(0xc9),'networkError':_0x31c47c(0xe5),'maxRetriesExceeded':_0x31c47c(0xd4)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x466775=_0x1716;function _0x1716(_0x1afd1d,_0x21e94f){_0x1afd1d=_0x1afd1d-0x1ae;const _0x3f512c=_0x3f51();let _0x1716db=_0x3f512c[_0x1afd1d];return _0x1716db;}(function(_0x5ad016,_0x194827){const _0x1b2dfb=_0x1716,_0xc020f8=_0x5ad016();while(!![]){try{const _0x16b4df=-parseInt(_0x1b2dfb(0x1d2))/0x1+parseInt(_0x1b2dfb(0x1c2))/0x2+-parseInt(_0x1b2dfb(0x1c1))/0x3+-parseInt(_0x1b2dfb(0x1bb))/0x4+parseInt(_0x1b2dfb(0x1b5))/0x5+parseInt(_0x1b2dfb(0x1ba))/0x6+-parseInt(_0x1b2dfb(0x1dc))/0x7*(-parseInt(_0x1b2dfb(0x1ca))/0x8);if(_0x16b4df===_0x194827)break;else _0xc020f8['push'](_0xc020f8['shift']());}catch(_0x4553b7){_0xc020f8['push'](_0xc020f8['shift']());}}}(_0x3f51,0x70ac9));const e={'mcpStatus':{'disconnected':_0x466775(0x1bc),'connecting':'MCP\x20Connecting...','connected':_0x466775(0x1d9),'failed':_0x466775(0x1b8),'retrying':_0x466775(0x1d1),'unknown':_0x466775(0x1cd),'unauthorized':_0x466775(0x1af),'sessionOccupied':_0x466775(0x1cb),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x466775(0x1be),'clickToConnect':_0x466775(0x1c0),'clickToConfigure':_0x466775(0x1c9)},'mcpConfig':{'title':_0x466775(0x1ae),'description':_0x466775(0x1b9),'apiKey':_0x466775(0x1b1),'apiKeyPlaceholder':_0x466775(0x1b4),'apiKeyHint':_0x466775(0x1c4),'enableAuth':_0x466775(0x1da),'enableAuthHint':_0x466775(0x1c7),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x466775(0x1dd),'configInstructions':_0x466775(0x1d8),'configStepTitle':_0x466775(0x1cf),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x466775(0x1cc),'sessionId':_0x466775(0x1bd),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x466775(0x1b0),'configParameters':_0x466775(0x1b2),'maxRetries':_0x466775(0x1d6),'save':_0x466775(0x1bf),'saving':_0x466775(0x1c3),'note1':_0x466775(0x1c8),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x466775(0x1c6),'configError':_0x466775(0x1b7),'apiApplyInfo':{'title':_0x466775(0x1ce),'description':_0x466775(0x1db),'univerAiLabel':_0x466775(0x1d7),'getStarted':_0x466775(0x1de)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x466775(0x1d4),'invalidConfig':_0x466775(0x1b3),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x466775(0x1c5),'connected':_0x466775(0x1d0),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x466775(0x1d3),'sessionOccupied':_0x466775(0x1d5),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x466775(0x1b6)}}},n=e;module['exports']=n;function _0x3f51(){const _0x17503e=['API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','Configuration\x20Parameters:','Invalid\x20configuration','Enter\x20your\x20API\x20key','793880JgKJlH','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','3168054CKXsvl','2883728vCYmmv','MCP\x20Disconnected','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','Save\x20Configuration','Click\x20to\x20connect\x20MCP','123270UTlsaI','720484KzXNsx','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connecting...','Configuration\x20saved\x20successfully','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','40FJfDlA','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','Configuration\x20Steps:','Connected','MCP\x20Retrying...','61682vrSauX','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Max\x20Retries','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connected','Enable\x20Authentication','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','333466BlUycD','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','MCP:\x20Unauthorized'];_0x3f51=function(){return _0x17503e;};return _0x3f51();}
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x557bd6=_0x48a0;function _0x2a4e(){const _0x3a9e8=['MCP\x20接続済み','187SnNCZT','接続失敗','認証を有効にする','6tcinSQ','MCPクライアント設定','2624430FxkuGq','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','クリックしてMCPを設定','MCP設定','MCP:\x20セッションIDが使用中','設定手順:','2300856pghmdH','認証に失敗しました。APIキーを確認してください','設定の変更は直ちに有効になります','MCP:\x20ネットワークエラー','接続済み','2534892zHZJAv','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','MCP:\x20認証されていません','接続中...','APIキーはローカルストレージに安全に保存されます','MCP\x20再試行中...','未接続','APIキーを入力してください','APIキーは10文字以上である必要があります','再試行中...','334474enqPvT','2271655SipNxi','45PMVQsL','無効な設定','20LIKMfw','Bearerプレフィックス付きのAPIキー。','MCP\x20接続中...','設定が正常に保存されました','APIキーとは?','最大再試行回数を超過しました。後でもう一度お試しください','設定の保存に失敗しました','966321WbQYWx','セッションIDが現在使用中です。後でもう一度お試しください','MCP:\x20最大再試行回数を超過','exports','APIキー','最大再試行回数','MCPを設定してAIでスプレッドシートを操作','618279lNmGDC','設定パラメータ:','Univer\x20AIコンソール','クリックしてMCPに接続','192xCTltn','数秒でAPIキーを取得'];_0x2a4e=function(){return _0x3a9e8;};return _0x2a4e();}function _0x48a0(_0x53c000,_0x3f7851){_0x53c000=_0x53c000-0x150;const _0x2a4ebc=_0x2a4e();let _0x48a00f=_0x2a4ebc[_0x53c000];return _0x48a00f;}(function(_0x2ef397,_0x56520f){const _0x18d453=_0x48a0,_0x280b69=_0x2ef397();while(!![]){try{const _0x53e345=-parseInt(_0x18d453(0x16b))/0x1+parseInt(_0x18d453(0x151))/0x2+-parseInt(_0x18d453(0x172))/0x3*(parseInt(_0x18d453(0x164))/0x4)+-parseInt(_0x18d453(0x161))/0x5*(-parseInt(_0x18d453(0x17c))/0x6)+parseInt(_0x18d453(0x160))/0x7*(-parseInt(_0x18d453(0x176))/0x8)+-parseInt(_0x18d453(0x162))/0x9*(parseInt(_0x18d453(0x17e))/0xa)+parseInt(_0x18d453(0x179))/0xb*(parseInt(_0x18d453(0x156))/0xc);if(_0x53e345===_0x56520f)break;else _0x280b69['push'](_0x280b69['shift']());}catch(_0x2ff578){_0x280b69['push'](_0x280b69['shift']());}}}(_0x2a4e,0xb4af7));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x557bd6(0x166),'connected':_0x557bd6(0x178),'failed':'MCP\x20接続失敗','retrying':_0x557bd6(0x15b),'unknown':'MCP\x20不明な状態','unauthorized':_0x557bd6(0x158),'sessionOccupied':_0x557bd6(0x182),'networkError':_0x557bd6(0x154),'maxRetriesExceeded':_0x557bd6(0x16d),'clickToConnect':_0x557bd6(0x175),'clickToConfigure':_0x557bd6(0x180)},'mcpConfig':{'title':_0x557bd6(0x181),'description':_0x557bd6(0x171),'apiKey':_0x557bd6(0x16f),'apiKeyPlaceholder':_0x557bd6(0x15d),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x557bd6(0x17b),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x557bd6(0x17d),'mcpClientConfig':_0x557bd6(0x17d),'configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x557bd6(0x150),'configStep1':'以下のJSON設定をコピー','configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':'MCPクライアントを再起動して設定を適用','sessionId':'セッションID','sessionIdDescription':_0x557bd6(0x157),'authorizationDescription':_0x557bd6(0x165),'configParameters':_0x557bd6(0x173),'maxRetries':_0x557bd6(0x170),'save':'設定を保存','saving':'保存中...','note1':_0x557bd6(0x153),'note2':_0x557bd6(0x15a),'configSaved':_0x557bd6(0x167),'configError':_0x557bd6(0x16a),'apiApplyInfo':{'title':_0x557bd6(0x168),'description':_0x557bd6(0x17f),'univerAiLabel':_0x557bd6(0x174),'getStarted':_0x557bd6(0x177)},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':_0x557bd6(0x15e),'invalidConfig':_0x557bd6(0x163),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x557bd6(0x15c),'connecting':_0x557bd6(0x159),'connected':_0x557bd6(0x155),'failed':_0x557bd6(0x17a),'retrying':_0x557bd6(0x15f)},'connectionError':{'unauthorized':_0x557bd6(0x152),'sessionOccupied':_0x557bd6(0x16c),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x557bd6(0x169)}}};module[_0x557bd6(0x16e)]=e;
|