@univerjs-pro/mcp-ui 0.10.9-nightly.202509260614 → 0.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x14dd(_0x47c0a5,_0x5c23ba){const _0x542a7c=_0x542a();return _0x14dd=function(_0x14dd85,_0x32c70b){_0x14dd85=_0x14dd85-0x1cd;let _0xc8517=_0x542a7c[_0x14dd85];return _0xc8517;},_0x14dd(_0x47c0a5,_0x5c23ba);}function _0x542a(){const _0x398747=['MCP:\x20Network\x20Error','11829zRLzOK','315585CjRBjg','1001176cFiNhl','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','10BFYZjt','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','18xjygrp','197981qoWvHf','MCP\x20Connecting...','Univer\x20AI\x20Console','Saving...','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','194453nRAsXi','Configuration\x20saved\x20successfully','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','584330FAeBJr','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','Enter\x20your\x20API\x20key','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Configuration','Click\x20to\x20connect\x20MCP','Session\x20ID','MCP\x20Retrying...','API\x20key\x20is\x20required','What\x20is\x20API\x20Key?','Connection\x20Failed','Connected','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','325396GDglnv','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20configuration','Connecting...','88mmSGCg','Click\x20to\x20configure\x20MCP','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Save\x20Configuration','Failed\x20to\x20save\x20configuration','8ruyCZt'];_0x542a=function(){return _0x398747;};return _0x542a();}const _0x21dc94=_0x14dd;(function(_0x4ad35a,_0x427dae){const _0x1ce7e2=_0x14dd,_0x3e17ed=_0x4ad35a();while(!![]){try{const _0x39d867=parseInt(_0x1ce7e2(0x1de))/0x1+parseInt(_0x1ce7e2(0x1f4))/0x2+-parseInt(_0x1ce7e2(0x1d0))/0x3*(parseInt(_0x1ce7e2(0x1f9))/0x4)+-parseInt(_0x1ce7e2(0x1e2))/0x5+parseInt(_0x1ce7e2(0x1d6))/0x6*(-parseInt(_0x1ce7e2(0x1d7))/0x7)+-parseInt(_0x1ce7e2(0x1ce))/0x8*(parseInt(_0x1ce7e2(0x1d1))/0x9)+-parseInt(_0x1ce7e2(0x1d4))/0xa*(-parseInt(_0x1ce7e2(0x1d2))/0xb);if(_0x39d867===_0x427dae)break;else _0x3e17ed['push'](_0x3e17ed['shift']());}catch(_0x5f57d0){_0x3e17ed['push'](_0x3e17ed['shift']());}}}(_0x542a,0x1e6e1));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x21dc94(0x1d8),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x21dc94(0x1ed),'unknown':_0x21dc94(0x1f5),'unauthorized':_0x21dc94(0x1db),'sessionOccupied':_0x21dc94(0x1e9),'networkError':_0x21dc94(0x1cf),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x21dc94(0x1eb),'clickToConfigure':_0x21dc94(0x1fa)},'mcpConfig':{'title':_0x21dc94(0x1ea),'description':_0x21dc94(0x1fc),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x21dc94(0x1e5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x21dc94(0x1f3),'connectionInfo':_0x21dc94(0x1f2),'mcpClientConfig':_0x21dc94(0x1f2),'configInstructions':_0x21dc94(0x1e0),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x21dc94(0x1e7),'configStep2':_0x21dc94(0x1d5),'configStep3':_0x21dc94(0x1e3),'sessionId':_0x21dc94(0x1ec),'sessionIdDescription':_0x21dc94(0x1d3),'authorizationDescription':_0x21dc94(0x1e4),'configParameters':_0x21dc94(0x1e6),'maxRetries':_0x21dc94(0x1fb),'save':_0x21dc94(0x1fe),'saving':_0x21dc94(0x1da),'note1':_0x21dc94(0x1e1),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x21dc94(0x1df),'configError':_0x21dc94(0x1cd),'apiApplyInfo':{'title':_0x21dc94(0x1ef),'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':_0x21dc94(0x1d9),'getStarted':_0x21dc94(0x1dc)},'validation':{'apiKeyRequired':_0x21dc94(0x1ee),'apiKeyTooShort':_0x21dc94(0x1f6),'invalidConfig':_0x21dc94(0x1f7),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x21dc94(0x1f8),'connected':_0x21dc94(0x1f1),'failed':_0x21dc94(0x1f0),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x21dc94(0x1e8),'sessionOccupied':_0x21dc94(0x1fd),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x21dc94(0x1dd)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3f7a88=_0x4d5d;function _0x410b(){const _0x49b1c5=['API\x20Key','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','MCP\x20Retrying...','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','Saving...','124890upWKRx','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','293781oQrOMY','1327350qokdVR','Copy\x20the\x20JSON\x20configuration\x20below','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','2MKMqnb','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20Authentication','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1114332XJaWAo','234OuEPhj','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','92184gqPjfO','Configuration\x20Parameters:','MCP\x20Disconnected','Connection\x20Failed','Session\x20ID','Connected','MCP:\x20Unauthorized','554337AKEoCE','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connecting...','Max\x20Retries','MCP\x20Connected','3718424rLQdqf','Connecting...','217vOtdGM','MCP:\x20Network\x20Error','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP'];_0x410b=function(){return _0x49b1c5;};return _0x410b();}function _0x4d5d(_0x1eb909,_0xf8823d){const _0x410bbb=_0x410b();return _0x4d5d=function(_0x4d5dd0,_0x519049){_0x4d5dd0=_0x4d5dd0-0x162;let _0x2ac901=_0x410bbb[_0x4d5dd0];return _0x2ac901;},_0x4d5d(_0x1eb909,_0xf8823d);}(function(_0x3bf14f,_0x439756){const _0x4dc3a5=_0x4d5d,_0x223cd1=_0x3bf14f();while(!![]){try{const _0x14edb9=parseInt(_0x4dc3a5(0x16f))/0x1+parseInt(_0x4dc3a5(0x190))/0x2*(parseInt(_0x4dc3a5(0x18c))/0x3)+-parseInt(_0x4dc3a5(0x163))/0x4+parseInt(_0x4dc3a5(0x18d))/0x5+-parseInt(_0x4dc3a5(0x168))/0x6*(parseInt(_0x4dc3a5(0x17a))/0x7)+parseInt(_0x4dc3a5(0x178))/0x8+parseInt(_0x4dc3a5(0x164))/0x9*(-parseInt(_0x4dc3a5(0x187))/0xa);if(_0x14edb9===_0x439756)break;else _0x223cd1['push'](_0x223cd1['shift']());}catch(_0x453a20){_0x223cd1['push'](_0x223cd1['shift']());}}}(_0x410b,0x49f6c));const e={'mcpStatus':{'disconnected':_0x3f7a88(0x16a),'connecting':_0x3f7a88(0x175),'connected':_0x3f7a88(0x177),'failed':_0x3f7a88(0x17c),'retrying':_0x3f7a88(0x182),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3f7a88(0x16e),'sessionOccupied':_0x3f7a88(0x18a),'networkError':_0x3f7a88(0x17b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3f7a88(0x17d)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3f7a88(0x171),'apiKey':_0x3f7a88(0x17e),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3f7a88(0x184),'enableAuth':_0x3f7a88(0x193),'enableAuthHint':_0x3f7a88(0x170),'connectionInfo':_0x3f7a88(0x172),'mcpClientConfig':_0x3f7a88(0x172),'configInstructions':_0x3f7a88(0x189),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3f7a88(0x18e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3f7a88(0x18f),'sessionId':_0x3f7a88(0x16c),'sessionIdDescription':_0x3f7a88(0x192),'authorizationDescription':_0x3f7a88(0x174),'configParameters':_0x3f7a88(0x169),'maxRetries':_0x3f7a88(0x176),'save':'Save\x20Configuration','saving':_0x3f7a88(0x186),'note1':_0x3f7a88(0x18b),'note2':_0x3f7a88(0x180),'configSaved':_0x3f7a88(0x181),'configError':_0x3f7a88(0x191),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3f7a88(0x165),'univerAiLabel':_0x3f7a88(0x183),'getStarted':_0x3f7a88(0x167)},'validation':{'apiKeyRequired':_0x3f7a88(0x185),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3f7a88(0x173)},'connectionStatus':{'disconnected':_0x3f7a88(0x17f),'connecting':_0x3f7a88(0x179),'connected':_0x3f7a88(0x16d),'failed':_0x3f7a88(0x16b),'retrying':_0x3f7a88(0x166)},'connectionError':{'unauthorized':_0x3f7a88(0x188),'sessionOccupied':_0x3f7a88(0x162),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2365(_0x247078,_0xad2bfb){const _0x50c166=_0x50c1();return _0x2365=function(_0x23653b,_0x2ddc9d){_0x23653b=_0x23653b-0x1d3;let _0x1a9c15=_0x50c166[_0x23653b];return _0x1a9c15;},_0x2365(_0x247078,_0xad2bfb);}const _0x12541e=_0x2365;(function(_0x90cd5c,_0x37ebc1){const _0x214026=_0x2365,_0x52bcbb=_0x90cd5c();while(!![]){try{const _0x1d5598=parseInt(_0x214026(0x1fa))/0x1*(-parseInt(_0x214026(0x207))/0x2)+parseInt(_0x214026(0x1d4))/0x3*(-parseInt(_0x214026(0x1d6))/0x4)+parseInt(_0x214026(0x1db))/0x5+-parseInt(_0x214026(0x1dd))/0x6+-parseInt(_0x214026(0x1f7))/0x7*(parseInt(_0x214026(0x1e6))/0x8)+-parseInt(_0x214026(0x1f3))/0x9+parseInt(_0x214026(0x1e7))/0xa;if(_0x1d5598===_0x37ebc1)break;else _0x52bcbb['push'](_0x52bcbb['shift']());}catch(_0x1bec2c){_0x52bcbb['push'](_0x52bcbb['shift']());}}}(_0x50c1,0x2694e));const e={'mcpStatus':{'disconnected':_0x12541e(0x1de),'connecting':_0x12541e(0x1dc),'connected':_0x12541e(0x1f5),'failed':_0x12541e(0x1fe),'retrying':_0x12541e(0x1fd),'unknown':_0x12541e(0x1df),'unauthorized':_0x12541e(0x1fc),'sessionOccupied':_0x12541e(0x1f9),'networkError':_0x12541e(0x1f6),'maxRetriesExceeded':_0x12541e(0x200),'clickToConnect':_0x12541e(0x1ee),'clickToConfigure':_0x12541e(0x1ef)},'mcpConfig':{'title':'MCP\x20配置','description':_0x12541e(0x1e3),'apiKey':_0x12541e(0x1d5),'apiKeyPlaceholder':_0x12541e(0x1e5),'apiKeyHint':_0x12541e(0x1f2),'enableAuth':_0x12541e(0x204),'enableAuthHint':_0x12541e(0x1f4),'connectionInfo':_0x12541e(0x201),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x12541e(0x1ec),'configStepTitle':_0x12541e(0x1e8),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x12541e(0x1f0),'sessionId':_0x12541e(0x1e0),'sessionIdDescription':_0x12541e(0x1d3),'authorizationDescription':_0x12541e(0x1d7),'configParameters':_0x12541e(0x1f1),'maxRetries':_0x12541e(0x1ed),'save':'保存配置','saving':_0x12541e(0x1e2),'note1':_0x12541e(0x1e4),'note2':_0x12541e(0x1fb),'configSaved':_0x12541e(0x205),'configError':_0x12541e(0x206),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x12541e(0x1d9),'univerAiLabel':_0x12541e(0x1ff),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x12541e(0x1e1),'apiKeyTooShort':_0x12541e(0x1ea),'invalidConfig':_0x12541e(0x1f8),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x12541e(0x1da),'connecting':_0x12541e(0x203),'connected':'已连接','failed':_0x12541e(0x1d8),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x12541e(0x1e9),'sessionOccupied':_0x12541e(0x1eb),'networkError':_0x12541e(0x202),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x50c1(){const _0x3b0a54=['连接失败','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','未连接','708480CQsqCw','MCP\x20连接中...','73266VabjdB','MCP\x20已断开','MCP\x20状态未知','会话ID','API\x20密钥不能为空','保存中...','配置\x20MCP\x20使用\x20AI\x20操作电子表格','配置更改将立即生效','请输入您的\x20API\x20密钥','838088nzonKf','4290900dtOQuX','配置步骤:','权限验证失败,请检查您的\x20API\x20密钥','API\x20密钥长度至少需要\x2010\x20位','会话\x20ID\x20已被占用,请稍后再试','将以下配置添加到您的\x20MCP\x20客户端设置中:','最大重试次数','点击连接\x20MCP','点击配置\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','配置参数:','您的\x20API\x20密钥将在此浏览器中本地存储','1567710RUvSnp','启用身份验证以获得安全连接','MCP\x20已连接','MCP:\x20网络错误','7AVLBcf','配置无效','MCP:\x20会话\x20ID\x20已被占用','1scsEmQ','您的\x20API\x20密钥安全存储在本地存储中','MCP:\x20未授权','MCP\x20重连中...','MCP\x20连接失败','Univer\x20AI\x20控制台','MCP:\x20超出最大重试次数','MCP\x20客户端配置','网络连接错误,请检查您的网络连接','连接中...','启用身份验证','配置保存成功','配置保存失败','219138NhdpmG','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','3xWFBSa','API\x20密钥','48100nHmUyE','带有\x20Bearer\x20前缀的\x20API\x20密钥。'];_0x50c1=function(){return _0x3b0a54;};return _0x50c1();}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x19cc(){const _0x4083e5=['Connecting...','Enter\x20your\x20API\x20key','MCP\x20Disconnected','128cwAmPy','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key','7582jtgwKE','76734OWZZEw','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2650696QsZelq','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','Connected','Max\x20Retries','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20connect\x20MCP','Session\x20ID','122274zVlWCF','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1887095oOeygo','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','Enable\x20Authentication','MCP\x20Retrying...','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','MCP\x20Configuration','8054010GtwcwQ','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','14pXZUhi','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','55572ucPWOD','MCP\x20Connection\x20Failed'];_0x19cc=function(){return _0x4083e5;};return _0x19cc();}const _0x180207=_0x1df3;(function(_0x407296,_0x12d8bb){const _0x21b7a8=_0x1df3,_0x558b98=_0x407296();while(!![]){try{const _0x3afaa9=-parseInt(_0x21b7a8(0x95))/0x1*(-parseInt(_0x21b7a8(0x91))/0x2)+-parseInt(_0x21b7a8(0x96))/0x3+parseInt(_0x21b7a8(0x8c))/0x4+parseInt(_0x21b7a8(0x7a))/0x5+parseInt(_0x21b7a8(0xa8))/0x6*(-parseInt(_0x21b7a8(0x89))/0x7)+parseInt(_0x21b7a8(0x9f))/0x8+-parseInt(_0x21b7a8(0x84))/0x9;if(_0x3afaa9===_0x12d8bb)break;else _0x558b98['push'](_0x558b98['shift']());}catch(_0x22e4cc){_0x558b98['push'](_0x558b98['shift']());}}}(_0x19cc,0x3c38f));function _0x1df3(_0x52312c,_0x5e57eb){const _0x19cc0c=_0x19cc();return _0x1df3=function(_0x1df3ac,_0x7e5790){_0x1df3ac=_0x1df3ac-0x7a;let _0x2ee0df=_0x19cc0c[_0x1df3ac];return _0x2ee0df;},_0x1df3(_0x52312c,_0x5e57eb);}const e={'mcpStatus':{'disconnected':_0x180207(0x90),'connecting':_0x180207(0x86),'connected':_0x180207(0x9b),'failed':_0x180207(0x8d),'retrying':_0x180207(0x80),'unknown':_0x180207(0x81),'unauthorized':_0x180207(0xa0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x180207(0x8b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x180207(0xa6),'clickToConfigure':_0x180207(0x85)},'mcpConfig':{'title':_0x180207(0x83),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x180207(0x94),'apiKeyPlaceholder':_0x180207(0x8f),'apiKeyHint':_0x180207(0xa9),'enableAuth':_0x180207(0x7f),'enableAuthHint':_0x180207(0x92),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x180207(0x88),'configInstructions':_0x180207(0xa1),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x180207(0xa5),'configStep3':_0x180207(0x9a),'sessionId':_0x180207(0xa7),'sessionIdDescription':_0x180207(0x7c),'authorizationDescription':_0x180207(0x97),'configParameters':_0x180207(0x82),'maxRetries':_0x180207(0xa4),'save':'Save\x20Configuration','saving':_0x180207(0xa2),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x180207(0x7d),'configError':_0x180207(0x99),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x180207(0x9c),'univerAiLabel':_0x180207(0x7e),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x180207(0x8a),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x180207(0x9d)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x180207(0x8e),'connected':_0x180207(0xa3),'failed':_0x180207(0x7b),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x180207(0x9e),'sessionOccupied':_0x180207(0x87),'networkError':_0x180207(0x93),'maxRetriesExceeded':_0x180207(0x98)}}},n=e;export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x22b8(_0x2ba5a5,_0x11c116){var _0x416ad5=_0x416a();return _0x22b8=function(_0x22b891,_0xf36a49){_0x22b891=_0x22b891-0x1ab;var _0x36f41e=_0x416ad5[_0x22b891];return _0x36f41e;},_0x22b8(_0x2ba5a5,_0x11c116);}(function(_0x2928ca,_0x5d26c2){var _0x5f27ba=_0x22b8,_0x3f7623=_0x2928ca();while(!![]){try{var _0x1dce97=parseInt(_0x5f27ba(0x1b2))/0x1+-parseInt(_0x5f27ba(0x299))/0x2*(parseInt(_0x5f27ba(0x208))/0x3)+parseInt(_0x5f27ba(0x2f8))/0x4+parseInt(_0x5f27ba(0x1d4))/0x5*(parseInt(_0x5f27ba(0x2d3))/0x6)+parseInt(_0x5f27ba(0x219))/0x7*(-parseInt(_0x5f27ba(0x25d))/0x8)+-parseInt(_0x5f27ba(0x264))/0x9*(parseInt(_0x5f27ba(0x20a))/0xa)+-parseInt(_0x5f27ba(0x224))/0xb;if(_0x1dce97===_0x5d26c2)break;else _0x3f7623['push'](_0x3f7623['shift']());}catch(_0x3b5327){_0x3f7623['push'](_0x3f7623['shift']());}}}(_0x416a,0x3371b),function(_0x5c3117,_0xd8dc81){var _0x2d1ecf=_0x22b8;typeof exports==_0x2d1ecf(0x2fa)&&typeof module<'u'?_0xd8dc81(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0x2d1ecf(0x2cd)&&define[_0x2d1ecf(0x277)]?define(['exports',_0x2d1ecf(0x30a),_0x2d1ecf(0x2fb),_0x2d1ecf(0x2d1),_0x2d1ecf(0x204),_0x2d1ecf(0x222),_0x2d1ecf(0x32f),'react',_0x2d1ecf(0x20c)],_0xd8dc81):(_0x5c3117=typeof globalThis<'u'?globalThis:_0x5c3117||self,_0xd8dc81(_0x5c3117[_0x2d1ecf(0x1fe)]={},_0x5c3117['UniverCore'],_0x5c3117[_0x2d1ecf(0x1e0)],_0x5c3117[_0x2d1ecf(0x1ab)],_0x5c3117[_0x2d1ecf(0x31d)],_0x5c3117['UniverUi'],_0x5c3117[_0x2d1ecf(0x32f)],_0x5c3117[_0x2d1ecf(0x1e0)],_0x5c3117[_0x2d1ecf(0x28c)]));}(this,function(_0x255e86,_0x3f0d6f,_0x4c3b4a,_0x13170f,_0xdcb927,_0xbaa7,_0x44667e,_0x11a658,_0x16aab4){'use strict';var _0x5ae9d3=_0x22b8;var _0x57b67c=Object[_0x5ae9d3(0x2a2)],_0x3410ae=(_0x24d283,_0x294ec1,_0x1cd37c)=>_0x294ec1 in _0x24d283?_0x57b67c(_0x24d283,_0x294ec1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cd37c}):_0x24d283[_0x294ec1]=_0x1cd37c,_0x4911bf=(_0xf0eaad,_0x2025cf,_0x4cea57)=>_0x3410ae(_0xf0eaad,typeof _0x2025cf!=_0x5ae9d3(0x283)?_0x2025cf+'':_0x2025cf,_0x4cea57),_0xfbaf2d=function(){var _0xdc499a=_0x5ae9d3;return _0xfbaf2d=Object[_0xdc499a(0x310)]||function(_0x4865f6){var _0x41eab4=_0xdc499a;for(var _0x26c431,_0x44ea7c=0x1,_0x47a20d=arguments[_0x41eab4(0x1d8)];_0x44ea7c<_0x47a20d;_0x44ea7c++){_0x26c431=arguments[_0x44ea7c];for(var _0x474b88 in _0x26c431)Object[_0x41eab4(0x1b6)]['hasOwnProperty'][_0x41eab4(0x2b7)](_0x26c431,_0x474b88)&&(_0x4865f6[_0x474b88]=_0x26c431[_0x474b88]);}return _0x4865f6;},_0xfbaf2d[_0xdc499a(0x1c9)](this,arguments);},_0x7f002b=function(_0x1f62f9,_0x5b47f8){var _0x1eab4f=_0x5ae9d3,_0x454502={};for(var _0x37baf6 in _0x1f62f9)Object[_0x1eab4f(0x1b6)]['hasOwnProperty'][_0x1eab4f(0x2b7)](_0x1f62f9,_0x37baf6)&&_0x5b47f8[_0x1eab4f(0x239)](_0x37baf6)<0x0&&(_0x454502[_0x37baf6]=_0x1f62f9[_0x37baf6]);if(_0x1f62f9!=null&&typeof Object[_0x1eab4f(0x1ef)]==_0x1eab4f(0x2cd)){for(var _0x37704a=0x0,_0x37baf6=Object[_0x1eab4f(0x1ef)](_0x1f62f9);_0x37704a<_0x37baf6[_0x1eab4f(0x1d8)];_0x37704a++)_0x5b47f8[_0x1eab4f(0x239)](_0x37baf6[_0x37704a])<0x0&&Object['prototype'][_0x1eab4f(0x24a)][_0x1eab4f(0x2b7)](_0x1f62f9,_0x37baf6[_0x37704a])&&(_0x454502[_0x37baf6[_0x37704a]]=_0x1f62f9[_0x37baf6[_0x37704a]]);}return _0x454502;},_0xdcceab=_0x11a658[_0x5ae9d3(0x336)](function(_0x456c05,_0x24f752){var _0x309f14=_0x5ae9d3,_0x5665da=_0x456c05['icon'],_0x37124a=_0x456c05['id'],_0x453d82=_0x456c05[_0x309f14(0x25c)],_0x5b70cf=_0x456c05[_0x309f14(0x2b0)],_0x3151fa=_0x7f002b(_0x456c05,[_0x309f14(0x26f),'id',_0x309f14(0x25c),_0x309f14(0x2b0)]),_0x7341d7=_0x309f14(0x313)[_0x309f14(0x1c7)](_0x37124a,'\x20')[_0x309f14(0x1c7)](_0x453d82||'')[_0x309f14(0x2cc)](),_0x1cae1b=_0x11a658[_0x309f14(0x26a)]('_'[_0x309f14(0x1c7)](_0x195fd3()));return _0x435d76(_0x5665da,''[_0x309f14(0x1c7)](_0x37124a),{'defIds':_0x5665da['defIds'],'idSuffix':_0x1cae1b[_0x309f14(0x2ea)]},_0xfbaf2d({'ref':_0x24f752,'className':_0x7341d7},_0x3151fa),_0x5b70cf);});function _0x435d76(_0x41819d,_0x13e979,_0x56ceb9,_0x11018e,_0x5b5be9){var _0x3c83df=_0x5ae9d3;return _0x11a658[_0x3c83df(0x2df)](_0x41819d[_0x3c83df(0x240)],_0xfbaf2d(_0xfbaf2d({'key':_0x13e979},_0x391300(_0x41819d,_0x56ceb9,_0x5b5be9)),_0x11018e),(_0x3d70af(_0x41819d,_0x56ceb9)[_0x3c83df(0x1c3)]||[])[_0x3c83df(0x214)](function(_0x53545e,_0x2ea9eb){var _0x2301bf=_0x3c83df;return _0x435d76(_0x53545e,''[_0x2301bf(0x1c7)](_0x13e979,'-')[_0x2301bf(0x1c7)](_0x41819d['tag'],'-')[_0x2301bf(0x1c7)](_0x2ea9eb),_0x56ceb9,void 0x0,_0x5b5be9);}));}function _0x391300(_0x445b37,_0x4cec60,_0x2aa169){var _0x483ece=_0x5ae9d3,_0x282631=_0xfbaf2d({},_0x445b37['attrs']);_0x2aa169!=null&&_0x2aa169[_0x483ece(0x287)]&&_0x282631[_0x483ece(0x1f3)]===_0x483ece(0x287)&&(_0x282631[_0x483ece(0x1f3)]=_0x2aa169[_0x483ece(0x287)]),_0x445b37['tag']===_0x483ece(0x1e5)&&_0x282631['id']&&(_0x282631['id']=_0x282631['id']+_0x4cec60[_0x483ece(0x2a0)]),Object[_0x483ece(0x1ca)](_0x282631)[_0x483ece(0x2ca)](function(_0x5c89f2){var _0x124fe9=_0x483ece,_0x117190=_0x5c89f2[0x0],_0x87902=_0x5c89f2[0x1];_0x117190==='mask'&&typeof _0x87902==_0x124fe9(0x265)&&(_0x282631[_0x117190]=_0x87902[_0x124fe9(0x220)](/url\(#(.*)\)/,_0x124fe9(0x2fe)[_0x124fe9(0x1c7)](_0x4cec60[_0x124fe9(0x2a0)],')')));});var _0x56cdab=_0x4cec60[_0x483ece(0x1e4)];return!_0x56cdab||_0x56cdab[_0x483ece(0x1d8)]===0x0||(_0x445b37[_0x483ece(0x240)]===_0x483ece(0x1bb)&&_0x282631[_0x483ece(0x2e9)]&&(_0x282631[_0x483ece(0x2e9)]=_0x282631[_0x483ece(0x2e9)]+_0x4cec60[_0x483ece(0x2a0)]),Object['entries'](_0x282631)[_0x483ece(0x2ca)](function(_0x51d9fa){var _0x2a9934=_0x483ece,_0x17a622=_0x51d9fa[0x0],_0x312d66=_0x51d9fa[0x1];typeof _0x312d66==_0x2a9934(0x265)&&(_0x282631[_0x17a622]=_0x312d66['replace'](/url\(#(.*)\)/,_0x2a9934(0x2fe)['concat'](_0x4cec60['idSuffix'],')')));})),_0x282631;}function _0x3d70af(_0x19a75a,_0x5bde65){var _0x4fb6bb=_0x5ae9d3,_0x500a68,_0x1c8f51=_0x5bde65[_0x4fb6bb(0x1e4)];return!_0x1c8f51||_0x1c8f51[_0x4fb6bb(0x1d8)]===0x0?_0x19a75a:_0x19a75a[_0x4fb6bb(0x240)]===_0x4fb6bb(0x295)&&(!((_0x500a68=_0x19a75a[_0x4fb6bb(0x1c3)])===null||_0x500a68===void 0x0)&&_0x500a68[_0x4fb6bb(0x1d8)])?_0xfbaf2d(_0xfbaf2d({},_0x19a75a),{'children':_0x19a75a['children'][_0x4fb6bb(0x214)](function(_0x10ed6f){var _0x209c77=_0x4fb6bb;return typeof _0x10ed6f['attrs']['id']==_0x209c77(0x265)&&_0x1c8f51&&_0x1c8f51[_0x209c77(0x1d0)](_0x10ed6f[_0x209c77(0x2c8)]['id'])?_0xfbaf2d(_0xfbaf2d({},_0x10ed6f),{'attrs':_0xfbaf2d(_0xfbaf2d({},_0x10ed6f[_0x209c77(0x2c8)]),{'id':_0x10ed6f['attrs']['id']+_0x5bde65[_0x209c77(0x2a0)]})}):_0x10ed6f;})}):_0x19a75a;}function _0x195fd3(){var _0xf9eb21=_0x5ae9d3;return Math['random']()['toString'](0x24)[_0xf9eb21(0x2d4)](0x2,0x8);}_0xdcceab['displayName']='UniverIcon';var _0x405868={'tag':_0x5ae9d3(0x226),'attrs':{'xmlns':_0x5ae9d3(0x1ad),'fill':_0x5ae9d3(0x2d7),'viewBox':_0x5ae9d3(0x272),'width':_0x5ae9d3(0x1ba),'height':_0x5ae9d3(0x1ba)},'children':[{'tag':_0x5ae9d3(0x342),'attrs':{'fill':'currentColor','d':_0x5ae9d3(0x229),'fillRule':_0x5ae9d3(0x274),'clipRule':_0x5ae9d3(0x274)}}]},_0x32749c=_0x11a658[_0x5ae9d3(0x336)](function(_0x16ce4f,_0x32db9a){var _0x3e075c=_0x5ae9d3;return _0x11a658[_0x3e075c(0x2df)](_0xdcceab,Object['assign']({},_0x16ce4f,{'id':_0x3e075c(0x25f),'ref':_0x32db9a,'icon':_0x405868}));});_0x32749c[_0x5ae9d3(0x33f)]=_0x5ae9d3(0x33b);var _0x1716e8={'tag':_0x5ae9d3(0x226),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5ae9d3(0x2d7),'viewBox':'0\x200\x2017\x2017','width':_0x5ae9d3(0x1ba),'height':_0x5ae9d3(0x1ba)},'children':[{'tag':_0x5ae9d3(0x342),'attrs':{'stroke':_0x5ae9d3(0x317),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x5ae9d3(0x31c),'strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x5ae9d3(0x342),'attrs':{'stroke':'currentColor','d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x5ae9d3(0x31c),'strokeLinejoin':'round','strokeWidth':1.33}}]},_0x3698ec=_0x11a658[_0x5ae9d3(0x336)](function(_0x1b4dbd,_0x2560af){var _0x261d9a=_0x5ae9d3;return _0x11a658[_0x261d9a(0x2df)](_0xdcceab,Object[_0x261d9a(0x310)]({},_0x1b4dbd,{'id':_0x261d9a(0x2b5),'ref':_0x2560af,'icon':_0x1716e8}));});_0x3698ec['displayName']=_0x5ae9d3(0x211);var _0x2d94b3={'tag':'svg','attrs':{'xmlns':_0x5ae9d3(0x1ad),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x5ae9d3(0x1ba)},'children':[{'tag':_0x5ae9d3(0x342),'attrs':{'fill':_0x5ae9d3(0x317),'d':_0x5ae9d3(0x2e2)}},{'tag':'path','attrs':{'fill':'currentColor','d':'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'}},{'tag':_0x5ae9d3(0x342),'attrs':{'fill':_0x5ae9d3(0x317),'d':_0x5ae9d3(0x2d9),'fillRule':_0x5ae9d3(0x274),'clipRule':'evenodd'}}]},_0x37aca4=_0x11a658['forwardRef'](function(_0x34fd19,_0x21bfb3){var _0x33364e=_0x5ae9d3;return _0x11a658[_0x33364e(0x2df)](_0xdcceab,Object[_0x33364e(0x310)]({},_0x34fd19,{'id':'help-single','ref':_0x21bfb3,'icon':_0x2d94b3}));});_0x37aca4[_0x5ae9d3(0x33f)]=_0x5ae9d3(0x2d0);var _0x20b763={'tag':'svg','attrs':{'xmlns':_0x5ae9d3(0x1ad),'fill':_0x5ae9d3(0x2d7),'viewBox':_0x5ae9d3(0x272),'width':'1em','height':_0x5ae9d3(0x1ba)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x5ae9d3(0x317),'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':_0x5ae9d3(0x31c),'strokeLinejoin':_0x5ae9d3(0x31c),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x5ae9d3(0x205),'d':_0x5ae9d3(0x24e)}}]}]}],'defIds':[_0x5ae9d3(0x2a4)]},_0x291f11=_0x11a658[_0x5ae9d3(0x336)](function(_0x8fba5,_0x5245c5){var _0x6c556e=_0x5ae9d3;return _0x11a658[_0x6c556e(0x2df)](_0xdcceab,Object[_0x6c556e(0x310)]({},_0x8fba5,{'id':_0x6c556e(0x28b),'ref':_0x5245c5,'icon':_0x20b763}));});_0x291f11[_0x5ae9d3(0x33f)]=_0x5ae9d3(0x30e);var _0x4a86e={'tag':'svg','attrs':{'xmlns':_0x5ae9d3(0x1ad),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x5ae9d3(0x1ba),'height':_0x5ae9d3(0x1ba)},'children':[{'tag':'g','attrs':{'clipPath':_0x5ae9d3(0x31a)},'children':[{'tag':_0x5ae9d3(0x342),'attrs':{'stroke':_0x5ae9d3(0x317),'d':_0x5ae9d3(0x2ae),'strokeLinecap':_0x5ae9d3(0x31c),'strokeLinejoin':_0x5ae9d3(0x31c),'strokeWidth':1.2}}]},{'tag':_0x5ae9d3(0x295),'attrs':{},'children':[{'tag':_0x5ae9d3(0x1cf),'attrs':{'id':_0x5ae9d3(0x33c)},'children':[{'tag':_0x5ae9d3(0x342),'attrs':{'fill':_0x5ae9d3(0x205),'d':'M0\x200H16V16H0z','transform':_0x5ae9d3(0x1df)}}]}]}],'defIds':[_0x5ae9d3(0x33c)]},_0x4272ab=_0x11a658['forwardRef'](function(_0x1850c1,_0x6631ce){var _0x54fbdf=_0x5ae9d3;return _0x11a658[_0x54fbdf(0x2df)](_0xdcceab,Object[_0x54fbdf(0x310)]({},_0x1850c1,{'id':_0x54fbdf(0x2a3),'ref':_0x6631ce,'icon':_0x4a86e}));});_0x4272ab[_0x5ae9d3(0x33f)]=_0x5ae9d3(0x233);function _0x56c470(_0x209b57){var _0x1bf7c9=_0x5ae9d3,_0x52f491,_0x1b2402;const {mcpCoreConfig:_0x2ccb7a,onSave:_0x2346cd,loading:_0x497ac8=!0x1,config:_0x23f300,connectionStatus$:_0x4425c1,connectionError$:_0x89231d,currentApiKey$:_0x398c0c,currentSessionId$:_0x37fb8f}=_0x209b57,_0x248dd8=_0xbaa7[_0x1bf7c9(0x330)](_0x3f0d6f[_0x1bf7c9(0x27c)]),_0x38fdc4=_0xbaa7[_0x1bf7c9(0x242)](_0x4425c1,_0x13170f[_0x1bf7c9(0x2ab)][_0x1bf7c9(0x322)]),_0x533ef8=_0xbaa7[_0x1bf7c9(0x242)](_0x89231d,_0x13170f['MCPConnectionError'][_0x1bf7c9(0x1e2)]),_0x472960=_0xbaa7['useObservable'](_0x37fb8f,''),_0x1b5bc9=_0xbaa7['useObservable'](_0x398c0c,''),[_0x2292fd,_0x359992]=_0x11a658[_0x1bf7c9(0x32e)](_0x1b5bc9||''),_0x42b732=!0x0,_0x5d505b=_0x23f300[_0x1bf7c9(0x248)]&&_0x2ccb7a[_0x1bf7c9(0x1c1)]&&(_0x2ccb7a[_0x1bf7c9(0x1c1)]['includes'](_0x1bf7c9(0x2a1))||_0x2ccb7a[_0x1bf7c9(0x1c1)][_0x1bf7c9(0x1d0)]('univer.ai')),_0x51989e=(_0x52f491=_0x2ccb7a[_0x1bf7c9(0x1c1)])==null?void 0x0:_0x52f491['includes'](_0x1bf7c9(0x2a1)),_0x41046b=(_0x1b2402=_0x2ccb7a[_0x1bf7c9(0x1c1)])==null?void 0x0:_0x1b2402['includes'](_0x1bf7c9(0x2c1)),_0x150925=_0x51989e?_0x1bf7c9(0x301):'https://console.univer.ai',_0x23fe97=_0x23f300[_0x1bf7c9(0x248)]&&(_0x51989e||_0x41046b),[_0x4af52c,_0x4750d6]=_0x11a658[_0x1bf7c9(0x32e)](!_0x2292fd[_0x1bf7c9(0x2cc)]()),_0x3a4593=(_0x8f41d4,_0x452c64)=>{var _0x139214=_0x1bf7c9;if(_0x452c64===_0x13170f[_0x139214(0x328)][_0x139214(0x22d)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x8f41d4){case _0x13170f[_0x139214(0x2ab)][_0x139214(0x304)]:return _0x139214(0x30c);case _0x13170f[_0x139214(0x2ab)]['CONNECTING']:case _0x13170f[_0x139214(0x2ab)][_0x139214(0x312)]:return _0x139214(0x296);case _0x13170f[_0x139214(0x2ab)]['FAILED']:return _0x139214(0x1d1);default:return _0x139214(0x217);}},_0x57216d=(_0x496543,_0x400012)=>{var _0x50a18c=_0x1bf7c9;if(_0x400012===_0x13170f[_0x50a18c(0x328)][_0x50a18c(0x22d)])return _0x50a18c(0x290);switch(_0x496543){case _0x13170f[_0x50a18c(0x2ab)][_0x50a18c(0x304)]:return'univer-bg-green-500';case _0x13170f['MCPConnectionStatus']['CONNECTING']:case _0x13170f[_0x50a18c(0x2ab)]['RETRYING']:return _0x50a18c(0x23f);case _0x13170f[_0x50a18c(0x2ab)][_0x50a18c(0x249)]:return _0x50a18c(0x290);default:return _0x50a18c(0x1b7);}},_0x32a5eb=_0x21fc78=>{var _0xc75fca=_0x1bf7c9;switch(_0x21fc78){case _0x13170f[_0xc75fca(0x2ab)][_0xc75fca(0x304)]:return _0x248dd8['t'](_0xc75fca(0x231));case _0x13170f[_0xc75fca(0x2ab)]['CONNECTING']:return _0x248dd8['t'](_0xc75fca(0x210));case _0x13170f['MCPConnectionStatus'][_0xc75fca(0x249)]:return _0x248dd8['t'](_0xc75fca(0x260));case _0x13170f[_0xc75fca(0x2ab)][_0xc75fca(0x312)]:return _0x248dd8['t'](_0xc75fca(0x33a));default:return _0x248dd8['t'](_0xc75fca(0x2c3));}},_0x1748d3=_0x152c3d=>{var _0x358774=_0x1bf7c9;switch(_0x152c3d){case _0x13170f[_0x358774(0x328)]['UNAUTHORIZED']:return _0x248dd8['t'](_0x358774(0x247));case _0x13170f[_0x358774(0x328)][_0x358774(0x297)]:return _0x248dd8['t'](_0x358774(0x2ff));case _0x13170f[_0x358774(0x328)][_0x358774(0x1f9)]:return _0x248dd8['t'](_0x358774(0x2f3));case _0x13170f[_0x358774(0x328)][_0x358774(0x1be)]:return _0x248dd8['t'](_0x358774(0x279));default:return'';}},_0x4ec3e5=_0x11a658[_0x1bf7c9(0x281)](()=>{var _0x35d79e=_0x1bf7c9;const _0x100759={..._0x2ccb7a,'apiKey':_0x2292fd[_0x35d79e(0x2cc)](),'enableAuth':_0x42b732};_0x2346cd(_0x100759);},[_0x2ccb7a,_0x2292fd,_0x42b732,_0x2346cd]),_0x1dd9fe=_0x2292fd[_0x1bf7c9(0x2cc)]()[_0x1bf7c9(0x1d8)]>0x0;return _0x4c3b4a['jsxs'](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x25b),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x28d),'children':_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x2ce),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x230),'children':_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x2ee),{'className':'univer-text-white','children':'⚙'})}),_0x4c3b4a[_0x1bf7c9(0x2d6)]('div',{'children':_0x4c3b4a[_0x1bf7c9(0x2d6)]('p',{'className':_0x1bf7c9(0x1bf),'children':_0x248dd8['t'](_0x1bf7c9(0x21d))})})]})}),_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x2de),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x1c5),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3a4593(_0x38fdc4,_0x533ef8)+_0x1bf7c9(0x24b),'children':_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4c3b4a['jsx'](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x319)+_0x57216d(_0x38fdc4,_0x533ef8)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),_0x4c3b4a[_0x1bf7c9(0x2d6)]('span',{'className':_0x1bf7c9(0x2d8),'children':_0x32a5eb(_0x38fdc4)})]})}),_0x533ef8!==_0x13170f['MCPConnectionError']['NONE']&&(_0x38fdc4===_0x13170f['MCPConnectionStatus']['FAILED']||_0x533ef8===_0x13170f[_0x1bf7c9(0x328)]['UNAUTHORIZED'])&&_0x4c3b4a[_0x1bf7c9(0x2d6)]('div',{'className':_0x1bf7c9(0x215),'children':_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x234),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x2ee),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x4c3b4a[_0x1bf7c9(0x2d6)]('p',{'className':_0x1bf7c9(0x261),'children':_0x1748d3(_0x533ef8)})]})})]}),_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x1fb),'children':_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x236),'children':[_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x232),'children':[_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x294),{'className':_0x1bf7c9(0x285),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x2ee),{'children':'🔑'}),'\x20',_0x248dd8['t'](_0x1bf7c9(0x27f)),_0x4c3b4a[_0x1bf7c9(0x2d6)]('span',{'className':_0x1bf7c9(0x23a),'children':'*'}),_0x5d505b&&_0x4c3b4a['jsx']('a',{'href':_0x1bf7c9(0x303),'onClick':()=>_0x4750d6(!0x0),'className':_0x1bf7c9(0x2bc),'title':_0x248dd8['t'](_0x1bf7c9(0x203)),'children':_0x4c3b4a['jsx'](_0x37aca4,{})})]}),_0x4c3b4a['jsx'](_0xdcb927[_0x1bf7c9(0x1c0)],{'type':'text','placeholder':_0x248dd8['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x2292fd,'onChange':_0x359992,'disabled':_0x497ac8,'autoComplete':_0x1bf7c9(0x1fd)}),_0x4c3b4a[_0x1bf7c9(0x2d6)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x248dd8['t'](_0x1bf7c9(0x323))})]}),_0x5d505b&&_0x4af52c&&_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'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':[_0x4c3b4a[_0x1bf7c9(0x2d6)]('a',{'href':'javascript:void(0)','onClick':()=>_0x4750d6(!0x1),'className':_0x1bf7c9(0x206),'title':_0x1bf7c9(0x321),'children':_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x3698ec,{})}),_0x4c3b4a[_0x1bf7c9(0x308)]('div',{'className':_0x1bf7c9(0x1bc),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)]('div',{'className':_0x1bf7c9(0x2b2),'children':_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x2ee),{'className':_0x1bf7c9(0x332),'children':'🚀'})}),_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x24d),'children':[_0x4c3b4a['jsx']('h4',{'className':_0x1bf7c9(0x1cc),'children':_0x248dd8['t'](_0x1bf7c9(0x203))}),_0x4c3b4a[_0x1bf7c9(0x2d6)]('p',{'className':_0x1bf7c9(0x1d9),'children':_0x248dd8['t'](_0x1bf7c9(0x2dd))}),_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x1fa),'children':_0x23fe97&&_0x4c3b4a[_0x1bf7c9(0x308)]('a',{'href':_0x150925,'target':_0x1bf7c9(0x24f),'rel':_0x1bf7c9(0x28e),'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x2ee),{'children':'🤖'}),_0x248dd8['t'](_0x1bf7c9(0x29f)),_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x2ee),{'className':_0x1bf7c9(0x2bb),'children':'↗'})]})}),_0x4c3b4a[_0x1bf7c9(0x308)]('div',{'className':_0x1bf7c9(0x200),'children':['✨','\x20',_0x248dd8['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x23f300[_0x1bf7c9(0x248)]&&_0x4c3b4a['jsxs'](_0x1bf7c9(0x1c5),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x4c3b4a['jsxs']('h4',{'className':_0x1bf7c9(0x276),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x2ee),{'children':'🔗'}),'\x20',_0x248dd8['t']('mcpConfig.connectionInfo')]}),_0x4c3b4a['jsxs']('div',{'className':'univer-space-y-4','children':[_0x4c3b4a[_0x1bf7c9(0x308)]('div',{'className':'univer-space-y-3','children':[_0x4c3b4a['jsx']('p',{'className':_0x1bf7c9(0x253),'children':_0x248dd8['t'](_0x1bf7c9(0x2ad))}),_0x4c3b4a['jsxs'](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x232),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)]('div',{'className':_0x1bf7c9(0x227),'children':_0x248dd8['t'](_0x1bf7c9(0x2c9))}),_0x4c3b4a[_0x1bf7c9(0x308)]('div',{'className':_0x1bf7c9(0x288),'children':[_0x4c3b4a[_0x1bf7c9(0x308)]('div',{'className':_0x1bf7c9(0x21f),'children':[_0x4c3b4a['jsx'](_0x1bf7c9(0x2ee),{'className':_0x1bf7c9(0x2ef),'children':'1'}),_0x248dd8['t'](_0x1bf7c9(0x266))]}),_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4c3b4a[_0x1bf7c9(0x2d6)]('span',{'className':_0x1bf7c9(0x2ef),'children':'2'}),_0x248dd8['t'](_0x1bf7c9(0x284))]}),_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x21f),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x2ee),{'className':_0x1bf7c9(0x2ef),'children':'3'}),_0x248dd8['t']('mcpConfig.configStep3')]})]})]})]}),_0x4c3b4a[_0x1bf7c9(0x308)]('div',{'className':'univer-space-y-2','children':[_0x4c3b4a[_0x1bf7c9(0x2d6)]('div',{'className':_0x1bf7c9(0x227),'children':_0x1bf7c9(0x32c)}),_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x325),'children':_0x4c3b4a['jsx'](_0x1bf7c9(0x314),{'className':_0x1bf7c9(0x1cd),'children':_0x1bf7c9(0x259)+_0x472960+_0x1bf7c9(0x1cb)+(_0x2292fd||_0x1bf7c9(0x22b))+_0x1bf7c9(0x337)})})]}),_0x4c3b4a[_0x1bf7c9(0x308)]('div',{'className':_0x1bf7c9(0x23e),'children':[_0x4c3b4a['jsx']('div',{'className':_0x1bf7c9(0x227),'children':_0x248dd8['t'](_0x1bf7c9(0x20e))}),_0x4c3b4a['jsxs'](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x232),'children':[_0x4c3b4a[_0x1bf7c9(0x308)]('div',{'className':_0x1bf7c9(0x20d),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x216)}),_0x4c3b4a[_0x1bf7c9(0x308)]('div',{'className':_0x1bf7c9(0x209),'children':[_0x4c3b4a['jsx'](_0x1bf7c9(0x1c5),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x1bf7c9(0x2e1)}),_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x27e),'children':_0x248dd8['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4c3b4a[_0x1bf7c9(0x308)]('div',{'className':_0x1bf7c9(0x20d),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)]('div',{'className':_0x1bf7c9(0x216)}),_0x4c3b4a['jsxs'](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x209),'children':[_0x4c3b4a['jsx']('div',{'className':_0x1bf7c9(0x1e8),'children':_0x1bf7c9(0x309)}),_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x27e),'children':_0x248dd8['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x4c3b4a['jsx'](_0xdcb927[_0x1bf7c9(0x1ed)],{'onClick':_0x4ec3e5,'disabled':!_0x1dd9fe||_0x497ac8,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x497ac8?_0x4c3b4a['jsxs'](_0x1bf7c9(0x2ee),{'className':_0x1bf7c9(0x21f),'children':[_0x4c3b4a['jsx'](_0x1bf7c9(0x2ee),{'children':'⟲'}),_0x248dd8['t'](_0x1bf7c9(0x298))]}):_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x2ee),{'className':_0x1bf7c9(0x21f),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x32749c,{}),_0x248dd8['t'](_0x1bf7c9(0x25e))]})}),_0x4c3b4a['jsx']('div',{'className':_0x1bf7c9(0x21b),'children':_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x1e7),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x2ee),{'className':_0x1bf7c9(0x241),'children':'💡'}),_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'className':_0x1bf7c9(0x23b),'children':[_0x4c3b4a[_0x1bf7c9(0x2d6)](_0x1bf7c9(0x1c5),{'className':'univer-font-medium','children':_0x1bf7c9(0x316)}),_0x4c3b4a[_0x1bf7c9(0x308)](_0x1bf7c9(0x1c5),{'children':['•',_0x248dd8['t']('mcpConfig.note1')]}),_0x4c3b4a[_0x1bf7c9(0x308)]('div',{'children':['•',_0x248dd8['t'](_0x1bf7c9(0x29e))]})]})]})})]})})]});}const _0x119754=_0x5ae9d3(0x2f5),_0x2d1923={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0xe88781=Object['getOwnPropertyDescriptor'],_0x1820e6=(_0x3c842f,_0x185b0b,_0x1dba68,_0x3ceb7c)=>{for(var _0x455ad6=_0x3ceb7c>0x1?void 0x0:_0x3ceb7c?_0xe88781(_0x185b0b,_0x1dba68):_0x185b0b,_0x3909ff=_0x3c842f['length']-0x1,_0x2348e7;_0x3909ff>=0x0;_0x3909ff--)(_0x2348e7=_0x3c842f[_0x3909ff])&&(_0x455ad6=_0x2348e7(_0x455ad6)||_0x455ad6);return _0x455ad6;},_0x29b616=(_0x181629,_0x3e9925)=>(_0x4ce1a2,_0x122f14)=>_0x3e9925(_0x4ce1a2,_0x122f14,_0x181629);const _0x532597='mcp.apiKey',_0x43299d='mcp-config-dialog';_0x255e86[_0x5ae9d3(0x1bd)]=class extends _0x3f0d6f[_0x5ae9d3(0x1b3)]{constructor(_0x276428,_0x3a73eb,_0x4beede,_0x19731c,_0xea6c39,_0x2e6f9d,_0x4f6dc5,_0x57eda8,_0x2095c2,_0x5034a8){var _0x4f394c=_0x5ae9d3;super(),_0x4911bf(this,_0x4f394c(0x26e),new _0x44667e[(_0x4f394c(0x1de))](!0x1)),_0x4911bf(this,'_mcpCoreConfig$',new _0x44667e[(_0x4f394c(0x1de))]({})),_0x4911bf(this,_0x4f394c(0x305),new _0x44667e[(_0x4f394c(0x1de))]({})),_0x4911bf(this,_0x4f394c(0x207),new _0x44667e[(_0x4f394c(0x1de))]('')),_0x4911bf(this,_0x4f394c(0x2f1),async _0x3b6ad7=>{var _0x51621e=_0x4f394c,_0x315bdd,_0x181916;this[_0x51621e(0x26e)][_0x51621e(0x20f)](!0x0);try{const _0x488428=await this[_0x51621e(0x1d3)](_0x3b6ad7);if(!_0x488428['isValid']){this[_0x51621e(0x2e7)][_0x51621e(0x2f4)]({'type':_0xdcb927[_0x51621e(0x31b)][_0x51621e(0x2db)],'content':_0x488428[_0x51621e(0x31f)]||this[_0x51621e(0x26d)]['t'](_0x51621e(0x268))});return;}_0x3b6ad7['apiKey']?await this[_0x51621e(0x2e5)][_0x51621e(0x202)](_0x532597,_0x3b6ad7[_0x51621e(0x270)][_0x51621e(0x2cc)]()):await this['_localStorageService'][_0x51621e(0x21e)](_0x532597),this[_0x51621e(0x207)][_0x51621e(0x20f)](((_0x315bdd=_0x3b6ad7['apiKey'])==null?void 0x0:_0x315bdd[_0x51621e(0x2cc)]())||''),this[_0x51621e(0x2bd)][_0x51621e(0x306)]({'Authorization':_0x51621e(0x1f4)+((_0x181916=_0x3b6ad7[_0x51621e(0x270)])==null?void 0x0:_0x181916[_0x51621e(0x2cc)]())}),this[_0x51621e(0x2e7)][_0x51621e(0x2f4)]({'type':_0xdcb927[_0x51621e(0x31b)]['Success'],'content':this[_0x51621e(0x26d)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x3331e4=_0x51621e;this[_0x3331e4(0x2bf)][_0x3331e4(0x333)](_0x43299d);},0x320);}catch(_0x3b70e5){this[_0x51621e(0x1f7)][_0x51621e(0x1d5)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3b70e5),this['_messageService'][_0x51621e(0x2f4)]({'type':_0xdcb927[_0x51621e(0x31b)][_0x51621e(0x2db)],'content':this[_0x51621e(0x26d)]['t'](_0x51621e(0x2a6))});}finally{this[_0x51621e(0x26e)][_0x51621e(0x20f)](!0x1);}}),(this[_0x4f394c(0x2c5)]=_0x276428,this['_uiPartsService']=_0x3a73eb,this[_0x4f394c(0x32b)]=_0x4beede,this[_0x4f394c(0x2e5)]=_0x19731c,this[_0x4f394c(0x2bf)]=_0xea6c39,this[_0x4f394c(0x2e7)]=_0x2e6f9d,this['_componentManager']=_0x4f6dc5,this[_0x4f394c(0x26d)]=_0x57eda8,this[_0x4f394c(0x1f7)]=_0x2095c2,this[_0x4f394c(0x2bd)]=_0x5034a8,this[_0x4f394c(0x335)](),this['_loadStoredApiKey'](),this['_registerComponent']());}['showConfigPanel'](){var _0x22739b=_0x5ae9d3;const _0x2d6a60=this['_configService'][_0x22739b(0x1c6)](_0x119754);_0x2d6a60!=null&&_0x2d6a60['showDeveloperTools']&&this['_dialogService'][_0x22739b(0x244)]({'id':_0x43299d,'title':{'title':this[_0x22739b(0x26d)]['t'](_0x22739b(0x2a7))},'children':{'label':_0x22739b(0x2da)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x152912=_0x22739b;this[_0x152912(0x2bf)][_0x152912(0x333)](_0x43299d);}});}['getCurrentConfig'](){var _0x54aec5=_0x5ae9d3;return this['_mcpCoreConfig$'][_0x54aec5(0x252)];}[_0x5ae9d3(0x329)](){var _0xae0154=_0x5ae9d3;this['disposeWithMe'](this[_0xae0154(0x326)]['register'](_0xae0154(0x2da),this[_0xae0154(0x2ec)]()));}[_0x5ae9d3(0x2ec)](){var _0xb0d94a=_0x5ae9d3;return _0xbaa7[_0xb0d94a(0x1f8)](()=>{var _0x27b815=_0xb0d94a,_0x47a078,_0x38d55f,_0x270cd0;return _0x4c3b4a[_0x27b815(0x2d6)](_0x56c470,{'config':this[_0x27b815(0x305)][_0x27b815(0x252)],'mcpCoreConfig':this[_0x27b815(0x2e3)][_0x27b815(0x252)],'currentApiKey$':this[_0x27b815(0x207)],'onSave':this[_0x27b815(0x2f1)],'loading':this[_0x27b815(0x26e)]['value'],'connectionStatus$':(_0x47a078=this[_0x27b815(0x2bd)])==null?void 0x0:_0x47a078[_0x27b815(0x280)],'connectionError$':(_0x38d55f=this[_0x27b815(0x2bd)])==null?void 0x0:_0x38d55f['connectionError$'],'currentSessionId$':(_0x270cd0=this['_mcpConnectionController'])==null?void 0x0:_0x270cd0[_0x27b815(0x221)]});},this[_0xb0d94a(0x2c5)]);}[_0x5ae9d3(0x335)](){var _0x4d733c=_0x5ae9d3;this['disposeWithMe'](this['_configService'][_0x4d733c(0x269)](_0x13170f[_0x4d733c(0x1f1)])[_0x4d733c(0x292)](_0x5559b2=>{this['_mcpCoreConfig$']['next'](_0x5559b2||{});}));const _0x153597=this['_configService'][_0x4d733c(0x1c6)](_0x13170f['MCP_PLUGIN_CONFIG_KEY']);this[_0x4d733c(0x2e3)][_0x4d733c(0x20f)](_0x153597||{}),this[_0x4d733c(0x31e)](this['_configService'][_0x4d733c(0x269)](_0x119754)['subscribe'](_0x2c8880=>{var _0x34bab9=_0x4d733c;this['_config$'][_0x34bab9(0x20f)](_0x2c8880||{});}));const _0x579564=this[_0x4d733c(0x32b)][_0x4d733c(0x1c6)](_0x119754);this['_config$'][_0x4d733c(0x20f)](_0x579564||{});}async['_loadStoredApiKey'](){var _0x43718d=_0x5ae9d3;const _0x24ea66=this[_0x43718d(0x32b)][_0x43718d(0x1c6)](_0x119754);if(!(_0x24ea66!=null&&_0x24ea66['showDeveloperTools']))return;const _0x3e5b22=await this['_localStorageService']['getItem'](_0x532597);_0x3e5b22&&(this[_0x43718d(0x2bd)][_0x43718d(0x306)]({'Authorization':'Bearer\x20'+_0x3e5b22}),this['_apiKey$']['next'](_0x3e5b22));}async[_0x5ae9d3(0x1d3)](_0x56358f){var _0x289c0c=_0x5ae9d3;if(!_0x56358f[_0x289c0c(0x270)]||_0x56358f[_0x289c0c(0x270)]['trim']()[_0x289c0c(0x1d8)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x289c0c(0x26d)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x56358f[_0x289c0c(0x270)][_0x289c0c(0x2cc)]()[_0x289c0c(0x1d8)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x289c0c(0x2cf))};try{const _0x2e5193=await this[_0x289c0c(0x2c5)]['get'](_0x13170f['MCPConnectionController'])[_0x289c0c(0x254)](_0x56358f[_0x289c0c(0x270)]['trim']());return _0x2e5193['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2e5193[_0x289c0c(0x1d5)]||this[_0x289c0c(0x26d)]['t'](_0x289c0c(0x344))};}catch(_0x22140f){return console[_0x289c0c(0x235)](_0x289c0c(0x1fc),_0x22140f),{'isValid':!0x0};}}},_0x255e86['MCPConfigUIController']=_0x1820e6([_0x29b616(0x0,_0x3f0d6f['Inject'](_0x3f0d6f[_0x5ae9d3(0x300)])),_0x29b616(0x1,_0xbaa7[_0x5ae9d3(0x1b4)]),_0x29b616(0x2,_0x3f0d6f['IConfigService']),_0x29b616(0x3,_0x3f0d6f[_0x5ae9d3(0x1b1)]),_0x29b616(0x4,_0xbaa7[_0x5ae9d3(0x348)]),_0x29b616(0x5,_0xbaa7['IMessageService']),_0x29b616(0x6,_0x3f0d6f[_0x5ae9d3(0x22c)](_0xbaa7[_0x5ae9d3(0x291)])),_0x29b616(0x7,_0x3f0d6f[_0x5ae9d3(0x22c)](_0x3f0d6f[_0x5ae9d3(0x27c)])),_0x29b616(0x8,_0x3f0d6f[_0x5ae9d3(0x343)]),_0x29b616(0x9,_0x3f0d6f['Inject'](_0x13170f[_0x5ae9d3(0x30d)]))],_0x255e86['MCPConfigUIController']);const _0x474298={'id':_0x5ae9d3(0x28a),'type':_0x3f0d6f[_0x5ae9d3(0x250)]['COMMAND'],'handler':async(_0x4daa18,_0x45760e)=>(_0x4daa18['get'](_0x255e86[_0x5ae9d3(0x1bd)])[_0x5ae9d3(0x27d)](),!0x0)};function _0x76ea4d(_0x296c09,_0x552e36){var _0x24d9bb=_0x5ae9d3;switch(_0x296c09){case _0x13170f[_0x24d9bb(0x2ab)][_0x24d9bb(0x322)]:return'mcpStatus.disconnected';case _0x13170f['MCPConnectionStatus'][_0x24d9bb(0x2c7)]:return _0x24d9bb(0x334);case _0x13170f[_0x24d9bb(0x2ab)]['CONNECTED']:return'mcpStatus.connected';case _0x13170f[_0x24d9bb(0x2ab)][_0x24d9bb(0x249)]:switch(_0x552e36){case _0x13170f['MCPConnectionError'][_0x24d9bb(0x22d)]:return'mcpStatus.unauthorized';case _0x13170f[_0x24d9bb(0x328)][_0x24d9bb(0x297)]:return _0x24d9bb(0x1c2);case _0x13170f['MCPConnectionError']['NETWORK_ERROR']:return _0x24d9bb(0x2ac);case _0x13170f[_0x24d9bb(0x328)][_0x24d9bb(0x1be)]:return _0x24d9bb(0x1da);default:return _0x24d9bb(0x255);}case _0x13170f[_0x24d9bb(0x2ab)][_0x24d9bb(0x312)]:return _0x24d9bb(0x1e3);default:return _0x24d9bb(0x275);}}function _0x3d5843(_0x38591d,_0x5042b7,_0x130af1,_0x18e826=!0x0){var _0x54b402=_0x5ae9d3;const _0x25b7d1=_0x76ea4d(_0x38591d,_0x5042b7),_0x276f34=_0x130af1['t'](_0x25b7d1);return _0x18e826?_0x38591d===_0x13170f[_0x54b402(0x2ab)][_0x54b402(0x322)]&&_0x5042b7===_0x13170f['MCPConnectionError'][_0x54b402(0x22d)]?_0x276f34+_0x54b402(0x1af)+_0x130af1['t'](_0x54b402(0x30b)):_0x38591d===_0x13170f['MCPConnectionStatus'][_0x54b402(0x304)]?''+_0x276f34:_0x38591d===_0x13170f[_0x54b402(0x2ab)][_0x54b402(0x322)]||_0x38591d===_0x13170f[_0x54b402(0x2ab)][_0x54b402(0x249)]?_0x276f34+_0x54b402(0x1af)+_0x130af1['t'](_0x54b402(0x2f6)):_0x276f34:_0x276f34;}function _0x524b11(_0x24933e){var _0x66e014=_0x5ae9d3;switch(_0x24933e){case _0x13170f[_0x66e014(0x2ab)]['CONNECTED']:return _0x66e014(0x26b);case _0x13170f[_0x66e014(0x2ab)]['CONNECTING']:case _0x13170f[_0x66e014(0x2ab)][_0x66e014(0x312)]:return _0x66e014(0x2c0);case _0x13170f[_0x66e014(0x2ab)][_0x66e014(0x249)]:case _0x13170f[_0x66e014(0x2ab)][_0x66e014(0x322)]:return _0x66e014(0x23a);default:return'univer-text-gray-500';}}function _0x35586f(_0xfe8b25){var _0x1703d4=_0x5ae9d3;const {status$:_0x3004d4,error$:_0x4195ac,onConfigure:_0x4a5771,showClickable:_0x396f0e=!0x0}=_0xfe8b25,_0x24bde3=_0xbaa7[_0x1703d4(0x242)](_0x3004d4,_0x13170f['MCPConnectionStatus'][_0x1703d4(0x322)]),_0xf9377c=_0xbaa7[_0x1703d4(0x242)](_0x4195ac,_0x13170f['MCPConnectionError'][_0x1703d4(0x1e2)]),_0x2919ac=_0xbaa7[_0x1703d4(0x330)](_0x3f0d6f[_0x1703d4(0x27c)]),_0x1db729=_0x24bde3===_0x13170f[_0x1703d4(0x2ab)][_0x1703d4(0x304)];_0x24bde3===_0x13170f[_0x1703d4(0x2ab)]['CONNECTING']||_0x13170f['MCPConnectionStatus'][_0x1703d4(0x312)];const _0x1f589a=_0x2919ac['t'](_0x76ea4d(_0x24bde3,_0xf9377c)),_0x51fb05=_0x3d5843(_0x24bde3,_0xf9377c,_0x2919ac,_0x396f0e),_0x33c899=_0x524b11(_0x24bde3),_0x53ca29=_0x1db729?_0x4c3b4a[_0x1703d4(0x2d6)](_0x4272ab,{}):_0x4c3b4a[_0x1703d4(0x2d6)](_0x291f11,{}),_0x183442=_0x11a658['useCallback'](()=>{_0x396f0e&&_0x4a5771&&_0x4a5771();},[_0x396f0e,_0x4a5771]);function _0x593612(){var _0x47220b=_0x1703d4;return _0x4c3b4a[_0x47220b(0x308)](_0x47220b(0x1c5),{'className':_0xdcb927[_0x47220b(0x2f2)](_0x47220b(0x213),_0x396f0e&&_0x4a5771&&_0x47220b(0x2f9)),'onClick':_0x396f0e&&_0x4a5771?_0x183442:void 0x0,'children':[_0x4c3b4a[_0x47220b(0x2d6)](_0x47220b(0x1c5),{'className':_0xdcb927[_0x47220b(0x2f2)](_0x47220b(0x341),_0x33c899),'children':_0x53ca29}),_0x4c3b4a[_0x47220b(0x2d6)]('div',{'className':_0x47220b(0x1f5),'children':_0x1f589a})]});}return _0x4c3b4a[_0x1703d4(0x2d6)](_0xdcb927['Tooltip'],{'title':_0x51fb05,'placement':'bottom','children':_0x593612()});}var _0x34d4b7=Object['getOwnPropertyDescriptor'],_0x250395=(_0x1b69b0,_0x33f6cf,_0x19be48,_0x11efc8)=>{var _0xca6934=_0x5ae9d3;for(var _0x8a2a87=_0x11efc8>0x1?void 0x0:_0x11efc8?_0x34d4b7(_0x33f6cf,_0x19be48):_0x33f6cf,_0x255313=_0x1b69b0[_0xca6934(0x1d8)]-0x1,_0x1386e3;_0x255313>=0x0;_0x255313--)(_0x1386e3=_0x1b69b0[_0x255313])&&(_0x8a2a87=_0x1386e3(_0x8a2a87)||_0x8a2a87);return _0x8a2a87;},_0x1439c0=(_0x37cc42,_0x1ba613)=>(_0x1e66b8,_0x50e7fd)=>_0x1ba613(_0x1e66b8,_0x50e7fd,_0x37cc42);_0x255e86['MCPConnectionUIController']=class extends _0x3f0d6f[_0x5ae9d3(0x1b3)]{constructor(_0x53d84d,_0x37ae37,_0x30d12c,_0x39deec){var _0x39fd74=_0x5ae9d3;super(),this['_injector']=_0x53d84d,this[_0x39fd74(0x2cb)]=_0x37ae37,this[_0x39fd74(0x29d)]=_0x30d12c,this[_0x39fd74(0x32b)]=_0x39deec,this['_initAutoConnect'](),this[_0x39fd74(0x282)]();}[_0x5ae9d3(0x2e4)](){var _0x1d272c=_0x5ae9d3;const _0x3e0965=this[_0x1d272c(0x32b)][_0x1d272c(0x1c6)](_0x119754);_0x3e0965!=null&&_0x3e0965['showDeveloperTools']&&(this[_0x1d272c(0x2cb)][_0x1d272c(0x1ae)]=!0x1);}['_initStatusComponent'](){var _0x45f547=_0x5ae9d3;const _0x1e8605=this[_0x45f547(0x32b)][_0x45f547(0x1c6)](_0x119754);(_0x1e8605==null?void 0x0:_0x1e8605[_0x45f547(0x1b0)])!==!0x1&&this['disposeWithMe'](this[_0x45f547(0x29d)][_0x45f547(0x32a)](_0xbaa7[_0x45f547(0x340)][_0x45f547(0x2b4)],()=>{var _0x29bcc7=_0x45f547,_0x2c0944;return _0xbaa7[_0x29bcc7(0x1f8)](_0x29ea2f({'status$':this[_0x29bcc7(0x2cb)][_0x29bcc7(0x280)],'error$':this[_0x29bcc7(0x2cb)][_0x29bcc7(0x2af)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x2c0944=_0x1e8605==null?void 0x0:_0x1e8605[_0x29bcc7(0x248)])!=null?_0x2c0944:!0x1}),this[_0x29bcc7(0x2c5)]);}));}[_0x5ae9d3(0x26c)](){var _0x14fc54=_0x5ae9d3;this['_injector'][_0x14fc54(0x1e6)](_0x255e86['MCPConfigUIController'])[_0x14fc54(0x27d)]();}},_0x255e86[_0x5ae9d3(0x2c6)]=_0x250395([_0x1439c0(0x0,_0x3f0d6f['Inject'](_0x3f0d6f[_0x5ae9d3(0x300)])),_0x1439c0(0x1,_0x3f0d6f['Inject'](_0x13170f[_0x5ae9d3(0x30d)])),_0x1439c0(0x2,_0xbaa7['IUIPartsService']),_0x1439c0(0x3,_0x3f0d6f['IConfigService'])],_0x255e86[_0x5ae9d3(0x2c6)]);function _0x29ea2f(_0x166f93){const {status$:_0x4f5226,error$:_0x42f6a9,onConfigure:_0x4ff921,showClickable:_0x59949c}=_0x166f93;return function(){var _0x36ba14=_0x22b8;return _0x4c3b4a[_0x36ba14(0x2d6)](_0x35586f,{'status$':_0x4f5226,'error$':_0x42f6a9,'onConfigure':_0x4ff921,'showClickable':_0x59949c});};}function _0x4e0e37(_0x51efec){var _0x3f37b9=_0x5ae9d3;return{'id':_0x474298['id'],'type':_0xbaa7[_0x3f37b9(0x246)][_0x3f37b9(0x201)],'icon':_0x3f37b9(0x256),'title':_0x3f37b9(0x2a7),'tooltip':_0x3f37b9(0x2a7)};}const _0x4d46d3={[_0xbaa7[_0x5ae9d3(0x2ed)][_0x5ae9d3(0x257)]]:{[_0x474298['id']]:{'order':0xa,'menuItemFactory':_0x4e0e37}}};var _0x1be9fb=Object[_0x5ae9d3(0x1dc)],_0x53b53e=(_0x3e9fc4,_0x1f37aa,_0xac78f9,_0x4a0cf3)=>{var _0x56ef3b=_0x5ae9d3;for(var _0x4a021e=_0x4a0cf3>0x1?void 0x0:_0x4a0cf3?_0x1be9fb(_0x1f37aa,_0xac78f9):_0x1f37aa,_0x45f4b5=_0x3e9fc4[_0x56ef3b(0x1d8)]-0x1,_0x20c2c7;_0x45f4b5>=0x0;_0x45f4b5--)(_0x20c2c7=_0x3e9fc4[_0x45f4b5])&&(_0x4a021e=_0x20c2c7(_0x4a021e)||_0x4a021e);return _0x4a021e;},_0x28a5a3=(_0x3f2357,_0x565522)=>(_0x2a88b5,_0x166147)=>_0x565522(_0x2a88b5,_0x166147,_0x3f2357);_0x255e86[_0x5ae9d3(0x1dd)]=class extends _0x3f0d6f['Disposable']{constructor(_0x259fe0,_0x595b26){var _0x5732d6=_0x5ae9d3;super(),this[_0x5732d6(0x346)]=_0x259fe0,this[_0x5732d6(0x318)]=_0x595b26,this[_0x5732d6(0x29a)](),this[_0x5732d6(0x2c2)]();}[_0x5ae9d3(0x29a)](){var _0xe6dfda=_0x5ae9d3;[_0x474298][_0xe6dfda(0x2ca)](_0x5b380a=>{var _0x117823=_0xe6dfda;this[_0x117823(0x31e)](this[_0x117823(0x346)][_0x117823(0x2b9)](_0x5b380a));});}[_0x5ae9d3(0x2c2)](){var _0x72bc19=_0x5ae9d3;this[_0x72bc19(0x318)]['mergeMenu'](_0x4d46d3);}},_0x255e86[_0x5ae9d3(0x1dd)]=_0x53b53e([_0x28a5a3(0x0,_0x3f0d6f['ICommandService']),_0x28a5a3(0x1,_0xbaa7[_0x5ae9d3(0x245)])],_0x255e86[_0x5ae9d3(0x1dd)]);const _0x1a90b7={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5ae9d3(0x2d5),'connected':_0x5ae9d3(0x1eb),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x5ae9d3(0x347),'unauthorized':_0x5ae9d3(0x1db),'sessionOccupied':_0x5ae9d3(0x251),'networkError':_0x5ae9d3(0x2aa),'maxRetriesExceeded':_0x5ae9d3(0x324),'clickToConnect':_0x5ae9d3(0x28f),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5ae9d3(0x32c),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x5ae9d3(0x263),'apiKeyHint':_0x5ae9d3(0x25a),'enableAuth':_0x5ae9d3(0x339),'enableAuthHint':_0x5ae9d3(0x23c),'connectionInfo':_0x5ae9d3(0x2dc),'mcpClientConfig':_0x5ae9d3(0x2dc),'configInstructions':_0x5ae9d3(0x33e),'configStepTitle':_0x5ae9d3(0x29b),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5ae9d3(0x20b),'configStep3':_0x5ae9d3(0x243),'sessionId':'Session\x20ID','sessionIdDescription':_0x5ae9d3(0x21a),'authorizationDescription':_0x5ae9d3(0x258),'configParameters':_0x5ae9d3(0x27a),'maxRetries':_0x5ae9d3(0x338),'save':_0x5ae9d3(0x1e9),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5ae9d3(0x2a9),'configError':_0x5ae9d3(0x2a5),'apiApplyInfo':{'title':_0x5ae9d3(0x32d),'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':_0x5ae9d3(0x1b5)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5ae9d3(0x345),'invalidApiKey':_0x5ae9d3(0x2f0)},'connectionStatus':{'disconnected':_0x5ae9d3(0x307),'connecting':_0x5ae9d3(0x2e8),'connected':_0x5ae9d3(0x302),'failed':_0x5ae9d3(0x238),'retrying':_0x5ae9d3(0x1b9)},'connectionError':{'unauthorized':_0x5ae9d3(0x1ea),'sessionOccupied':_0x5ae9d3(0x1f6),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5ae9d3(0x223)}}},_0x34f42e={'mcpStatus':{'disconnected':_0x5ae9d3(0x2b6),'connecting':_0x5ae9d3(0x273),'connected':_0x5ae9d3(0x267),'failed':_0x5ae9d3(0x2d2),'retrying':_0x5ae9d3(0x24c),'unknown':_0x5ae9d3(0x22a),'unauthorized':_0x5ae9d3(0x30f),'sessionOccupied':_0x5ae9d3(0x1d7),'networkError':_0x5ae9d3(0x21c),'maxRetriesExceeded':_0x5ae9d3(0x2be),'clickToConnect':_0x5ae9d3(0x1ce),'clickToConfigure':_0x5ae9d3(0x218)},'mcpConfig':{'title':_0x5ae9d3(0x212),'description':_0x5ae9d3(0x327),'apiKey':_0x5ae9d3(0x23d),'apiKeyPlaceholder':_0x5ae9d3(0x289),'apiKeyHint':_0x5ae9d3(0x2b8),'enableAuth':_0x5ae9d3(0x331),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x5ae9d3(0x2e0),'mcpClientConfig':_0x5ae9d3(0x2e0),'configInstructions':_0x5ae9d3(0x27b),'configStepTitle':_0x5ae9d3(0x29c),'configStep1':_0x5ae9d3(0x1c8),'configStep2':_0x5ae9d3(0x22f),'configStep3':_0x5ae9d3(0x315),'sessionId':_0x5ae9d3(0x311),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x5ae9d3(0x2b3),'maxRetries':'最大重试次数','save':'保存配置','saving':'保存中...','note1':'配置更改将立即生效','note2':_0x5ae9d3(0x2c4),'configSaved':'配置保存成功','configError':_0x5ae9d3(0x1ee),'apiApplyInfo':{'title':_0x5ae9d3(0x293),'description':_0x5ae9d3(0x1ff),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x5ae9d3(0x286)},'validation':{'apiKeyRequired':_0x5ae9d3(0x2a8),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x5ae9d3(0x262),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x5ae9d3(0x237),'connecting':'连接中...','connected':_0x5ae9d3(0x33d),'failed':_0x5ae9d3(0x271),'retrying':_0x5ae9d3(0x2fc)},'connectionError':{'unauthorized':_0x5ae9d3(0x1c4),'sessionOccupied':_0x5ae9d3(0x2ba),'networkError':_0x5ae9d3(0x320),'maxRetriesExceeded':_0x5ae9d3(0x2eb)}}};var _0x124eeb=Object[_0x5ae9d3(0x2a2)],_0x468178=Object[_0x5ae9d3(0x1dc)],_0x408367=(_0x33f39e,_0x5ec34c,_0x2830b8)=>_0x5ec34c in _0x33f39e?_0x124eeb(_0x33f39e,_0x5ec34c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2830b8}):_0x33f39e[_0x5ec34c]=_0x2830b8,_0x3282ec=(_0x59bd6d,_0x20f623,_0xacf3f,_0x223aae)=>{var _0x47c282=_0x5ae9d3;for(var _0x4798d2=_0x223aae>0x1?void 0x0:_0x223aae?_0x468178(_0x20f623,_0xacf3f):_0x20f623,_0x5e70f1=_0x59bd6d[_0x47c282(0x1d8)]-0x1,_0x587300;_0x5e70f1>=0x0;_0x5e70f1--)(_0x587300=_0x59bd6d[_0x5e70f1])&&(_0x4798d2=_0x587300(_0x4798d2)||_0x4798d2);return _0x4798d2;},_0x453587=(_0x2793c0,_0x1b1d78)=>(_0x3b5ad0,_0x18ae6d)=>_0x1b1d78(_0x3b5ad0,_0x18ae6d,_0x2793c0),_0x2e019c=(_0x3d5c3e,_0x23668a,_0x253d96)=>_0x408367(_0x3d5c3e,_0x23668a+'',_0x253d96);_0x255e86[_0x5ae9d3(0x2fd)]=class extends _0x3f0d6f[_0x5ae9d3(0x1ac)]{constructor(_0x182a32=_0x2d1923,_0x3cc68a,_0x2db1d8,_0x4f03a9,_0x9e0120,_0x231d45){var _0x2f48aa=_0x5ae9d3;super(),this[_0x2f48aa(0x22e)]=_0x182a32,this[_0x2f48aa(0x2c5)]=_0x3cc68a,this[_0x2f48aa(0x32b)]=_0x2db1d8,this[_0x2f48aa(0x29d)]=_0x4f03a9,this[_0x2f48aa(0x2e5)]=_0x9e0120,this[_0x2f48aa(0x26d)]=_0x231d45;const {..._0x358d8f}=_0x3f0d6f[_0x2f48aa(0x1d6)]({},_0x2d1923,this[_0x2f48aa(0x22e)]);this[_0x2f48aa(0x32b)]['setConfig'](_0x119754,_0x358d8f);}async['onStarting'](){var _0x9c8b49=_0x5ae9d3;const _0x4e1878=[[_0x255e86[_0x9c8b49(0x2c6)]],[_0x255e86[_0x9c8b49(0x1bd)]],[_0x255e86[_0x9c8b49(0x1dd)]]];this[_0x9c8b49(0x2c5)]['has'](_0x16aab4[_0x9c8b49(0x349)])||_0x4e1878[_0x9c8b49(0x278)]([_0x16aab4[_0x9c8b49(0x349)],{'useClass':_0x16aab4[_0x9c8b49(0x1b8)]}]),_0x4e1878[_0x9c8b49(0x2ca)](_0x8448b1=>this['_injector']['add'](_0x8448b1)),this[_0x9c8b49(0x2c5)][_0x9c8b49(0x1e6)](_0x255e86[_0x9c8b49(0x2c6)]),this[_0x9c8b49(0x2c5)][_0x9c8b49(0x1e6)](_0x255e86[_0x9c8b49(0x1bd)]),this[_0x9c8b49(0x2c5)]['get'](_0x255e86['MCPUIMenuController']);}},_0x2e019c(_0x255e86[_0x5ae9d3(0x2fd)],_0x5ae9d3(0x1f0),_0x5ae9d3(0x1e1)),_0x255e86[_0x5ae9d3(0x2fd)]=_0x3282ec([_0x3f0d6f[_0x5ae9d3(0x1ec)](_0x13170f['UniverMCPPlugin']),_0x453587(0x1,_0x3f0d6f[_0x5ae9d3(0x22c)](_0x3f0d6f[_0x5ae9d3(0x300)])),_0x453587(0x2,_0x3f0d6f[_0x5ae9d3(0x225)]),_0x453587(0x3,_0xbaa7[_0x5ae9d3(0x1b4)]),_0x453587(0x4,_0x3f0d6f['ILocalStorageService']),_0x453587(0x5,_0x3f0d6f['Inject'](_0x3f0d6f['LocaleService']))],_0x255e86[_0x5ae9d3(0x2fd)]),_0x255e86[_0x5ae9d3(0x2da)]=_0x56c470,_0x255e86[_0x5ae9d3(0x228)]=_0x35586f,_0x255e86[_0x5ae9d3(0x2e6)]=_0x474298,_0x255e86[_0x5ae9d3(0x1f2)]=_0x1a90b7,_0x255e86[_0x5ae9d3(0x1d2)]=_0x34f42e,Object[_0x5ae9d3(0x2a2)](_0x255e86,Symbol[_0x5ae9d3(0x2b1)],{'value':_0x5ae9d3(0x2f7)});}));function _0x416a(){var _0x1c00e0=['univer-bg-red-500','ComponentManager','subscribe','什么是\x20API\x20密钥?','label','defs','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','SESSION_ID_OCCUPIED','mcpConfig.saving','2lkSxQT','_initializeCommands','Configuration\x20Steps:','配置步骤:','_uiPartsService','mcpConfig.note2','mcpConfig.apiApplyInfo.univerAiLabel','idSuffix','univer.plus','defineProperty','on-line-icon','off-line-icon_clip0_910_343','Failed\x20to\x20save\x20configuration','mcpConfig.configError','mcpConfig.title','API\x20密钥不能为空','Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','MCPConnectionStatus','mcpStatus.networkError','mcpConfig.configInstructions','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','connectionError$','extend','toStringTag','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','配置参数:','HEADER_MENU','close-small-single','MCP\x20已断开','call','您的\x20API\x20密钥将在此浏览器中本地存储','registerCommand','会话\x20ID\x20已被占用,请稍后再试','univer-text-gray-400','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','_mcpConnectionController','MCP:\x20超出最大重试次数','_dialogService','univer-text-yellow-500','univer.ai','_initializeMenus','mcpConfig.connectionStatus.disconnected','您的\x20API\x20密钥安全存储在本地存储中','_injector','MCPConnectionUIController','CONNECTING','attrs','mcpConfig.configStepTitle','forEach','_connectionController','trim','function','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.validation.apiKeyTooShort','HelpSingle','@univerjs-pro/mcp','MCP\x20连接失败','4554ykUEYR','substring','MCP\x20Connecting...','jsx','none','univer-text-sm\x20univer-font-medium','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','MCPConfigPanel','Error','MCP\x20Client\x20Configuration','mcpConfig.apiApplyInfo.description','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','createElement','MCP\x20客户端配置','univer_session_id:','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','_mcpCoreConfig$','_initAutoConnect','_localStorageService','OpenMCPConfigPanelCommand','_messageService','Connecting...','xlink:href','current','超出最大重试次数,请稍后再试','_createConfigPanelComponent','RibbonStartGroup','span','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_handleConfigSave','clsx','mcpConfig.connectionError.networkError','show','mcp-ui.config','mcpStatus.clickToConnect','Module','1609184QpbYUz','\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','object','react/jsx-runtime','重连中...','UniverMCPUIPlugin','url(#$1','mcpConfig.connectionError.sessionOccupied','Injector','https://console.univer.plus','Connected','javascript:void(0)','CONNECTED','_config$','__setCustomHeaders','Disconnected','jsxs','Authorization:','@univerjs/core','mcpStatus.clickToConfigure','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCPConnectionController','OffLineIcon','MCP:\x20未授权','assign','会话ID','RETRYING','univerjs-icon\x20univerjs-icon-','pre','重启您的\x20MCP\x20客户端以使配置生效','Configuration\x20Notes:','currentColor','_menuManagerService','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','url(#on-line-icon_clip0_910_349)','MessageType','round','UniverDesign','disposeWithMe','errorMessage','网络连接错误,请检查您的网络连接','Close','DISCONNECTED','mcpConfig.apiKeyHint','MCP:\x20Max\x20Retries\x20Exceeded','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_componentManager','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCPConnectionError','_registerComponent','registerComponent','_configService','MCP\x20Configuration','What\x20is\x20API\x20Key?','useState','rxjs','useDependency','启用身份验证','univer-text-blue-600','close','mcpStatus.connecting','_initConfigSync','forwardRef','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','Max\x20Retries','Enable\x20Authentication','mcpConfig.connectionStatus.retrying','CheckMarkIcon','on-line-icon_clip0_910_349','已连接','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','displayName','BuiltInUIPart','univer-mr-2\x20univer-flex\x20univer-text-xl','path','ILogService','mcpConfig.validation.invalidApiKey','Invalid\x20configuration','_commandService','MCP\x20Unknown\x20Status','IDialogService','ISocketService','UniverProMcp','Plugin','http://www.w3.org/2000/svg','enableAutoConnect','\x20-\x20','showStatus','ILocalStorageService','279477PhrVks','Disposable','IUIPartsService','Get\x20your\x20API\x20key\x20in\x20seconds','prototype','univer-bg-gray-500','WebSocketService','Retrying...','1em','use','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCPConfigUIController','MAX_RETRIES_EXCEEDED','univer-text-sm\x20univer-text-gray-500','Input','mcpServerUrl','mcpStatus.sessionOccupied','children','权限验证失败,请检查您的\x20API\x20密钥','div','getConfig','concat','复制以下\x20JSON\x20配置','apply','entries','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','点击连接\x20MCP','clipPath','includes','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','zhCN','_validateConfig','2675WlYypU','error','merge','MCP:\x20会话\x20ID\x20已被占用','length','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.maxRetriesExceeded','MCP:\x20Unauthorized','getOwnPropertyDescriptor','MCPUIMenuController','BehaviorSubject','translate(.97)','React','MCP_UI_PLUGIN','NONE','mcpStatus.retrying','defIds','mask','get','univer-flex\x20univer-gap-3','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Save\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connected','DependentOn','Button','配置保存失败','getOwnPropertySymbols','pluginName','MCP_PLUGIN_CONFIG_KEY','enUS','fill','Bearer\x20','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_logService','connectInjector','NETWORK_ERROR','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','off','UniverProMcpUi','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','BUTTON','setItem','mcpConfig.apiApplyInfo.title','@univerjs/design','white','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','_apiKey$','778719CzDjuQ','univer-min-w-0\x20univer-flex-1','4350cnZLnJ','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','@univerjs/network','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.configParameters','next','mcpConfig.connectionStatus.connecting','CloseSmallSingle','MCP\x20配置','univer-flex\x20univer-items-center','map','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','点击配置\x20MCP','2387252vKRwNI','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP:\x20网络错误','mcpConfig.description','removeItem','univer-flex\x20univer-items-center\x20univer-gap-2','replace','sessionId$','@univerjs/ui','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','720929SpYGaQ','IConfigService','svg','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MCPStatusDisplay','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','MCP\x20状态未知','<API_KEY>','Inject','UNAUTHORIZED','_config','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionStatus.connected','univer-space-y-2','OnLineIcon','univer-flex\x20univer-items-start\x20univer-gap-2','warn','univer-space-y-5','未连接','Connection\x20Failed','indexOf','univer-text-red-500','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Enable\x20authentication\x20for\x20secure\x20connections','API\x20密钥','univer-space-y-3','univer-bg-blue-500','tag','univer-flex-shrink-0\x20univer-text-blue-500','useObservable','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','open','IMenuManagerService','MenuItemType','mcpConfig.connectionError.unauthorized','showDeveloperTools','FAILED','propertyIsEnumerable','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP\x20重连中...','univer-flex-1','M0\x200H16V16H0z','_blank','CommandType','MCP:\x20Session\x20ID\x20Occupied','value','univer-text-xs\x20univer-text-gray-600','validateApiKey','mcpStatus.failed','MenuIcon','OTHERS','API\x20key\x20with\x20Bearer\x20prefix.','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','className','8PbUmuN','mcpConfig.save','check-mark-icon','mcpConfig.connectionStatus.failed','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','配置无效','Enter\x20your\x20API\x20key','4365otAwjv','string','mcpConfig.configStep1','MCP\x20已连接','mcpConfig.validation.invalidConfig','subscribeConfigValue$','useRef','univer-text-green-500','_handleConfigure','_localeService','_loading$','icon','apiKey','连接失败','0\x200\x2016\x2016','MCP\x20连接中...','evenodd','mcpStatus.unknown','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','amd','push','mcpConfig.connectionError.maxRetriesExceeded','Configuration\x20Parameters:','将以下配置添加到您的\x20MCP\x20客户端设置中:','LocaleService','showConfigPanel','univer-text-xs\x20univer-text-gray-500','mcpConfig.apiKey','connectionStatus$','useCallback','_initStatusComponent','symbol','mcpConfig.configStep2','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','几秒钟内获取您的\x20API\x20密钥','colorChannel1','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','请输入您的\x20API\x20密钥','mcp-ui.command.openConfigPanel','off-line-icon','UniverNetwork','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','noopener\x20noreferrer','Click\x20to\x20connect\x20MCP'];_0x416a=function(){return _0x1c00e0;};return _0x416a();}
|
|
1
|
+
function _0x3aaa(){var _0x854483=['mcpConfig.save','onStarting','mcpConfig.description','_uiPartsService','288yljgWh','path','error','_localeService','close-small-single','_initAutoConnect','mcpConfig.connectionStatus.retrying','3rcyjDE','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','length','MCP:\x20网络错误','mcpConfig.saving','merge','getOwnPropertyDescriptor','help-single','@univerjs/network','_config$','javascript:void(0)','mcpStatus.networkError','object','API\x20密钥无效,请检查密钥是否正确','mcpConfig.apiApplyInfo.getStarted','substring','UniverProMcpUi','useCallback','mask','_loading$','useObservable','MCPConnectionController','zhCN','trim','random','CONNECTED','MCP:\x20Unauthorized','rxjs','LocaleService','includes','add','_connectionController','_validateConfig','IMessageService','FAILED','mcpServerUrl','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','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-items-center\x20univer-gap-3','MCP\x20Connected','concat','_loadStoredApiKey','MAX_RETRIES_EXCEEDED','univerjs-icon\x20univerjs-icon-','重启您的\x20MCP\x20客户端以使配置生效','_registerComponent','MCPStatusDisplay','配置无效','mcpConfig.configError','Error','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','Configuration\x20saved\x20successfully','MCP\x20状态未知','useState','IUIPartsService','use','MCP:\x20Session\x20ID\x20Occupied','mcpStatus.maxRetriesExceeded','function','ISocketService','1em','网络连接错误,请检查您的网络连接','MCPConfigPanel','UniverMCPUIPlugin','pluginName','HelpSingle','defIds','MessageType','_configService','univer-flex\x20univer-items-center\x20univer-gap-2','0\x200\x2017\x2017','xlink:href','on-line-icon_clip0_910_349','\x20-\x20','round','symbol','univer-bg-red-500','mcpConfig.connectionError.networkError','univer-text-sm\x20univer-font-medium','noopener\x20noreferrer','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','HEADER_MENU','MenuItemType','label','mcpConfig.connectionStatus.connected','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-flex-shrink-0\x20univer-text-red-500','disposeWithMe','Enable\x20authentication\x20for\x20secure\x20connections','ILogService','_apiKey$','mcpConfig.title','0\x200\x2016\x2016','enUS','jsxs','BuiltInUIPart','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','push','M5.21243\x205.62036L11.8791\x2012.287','univer-bg-green-500','svg','RETRYING','mcpStatus.failed','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcp-config-dialog','Input','MCPUIMenuController','mcpConfig.configStep1','@univerjs/core','mcpConfig.configStepTitle','warn','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','createElement','univer.plus','未连接','MenuIcon','translate(.97)','clsx','close','mcpConfig.validation.invalidApiKey','7yCWccq','univer-text-xs\x20univer-text-gray-500','CONNECTING','UniverIcon','current','get','mcpStatus.clickToConnect','_mcpConnectionController','showConfigPanel','DependentOn','univer-flex-1','192619QwkqyE','配置更改将立即生效','getConfig','displayName','_commandService','mcpConfig.validation.apiKeyRequired','univer.ai','mcpConfig.sessionIdDescription','Enable\x20Authentication','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','connectInjector','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcpConfig.connectionError.maxRetriesExceeded','连接失败','Connecting...','toStringTag','_injector','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','配置步骤:','ICommandService','MCPConnectionUIController','_config','Invalid\x20configuration','BehaviorSubject','DISCONNECTED','mcpConfig.apiKeyPlaceholder','配置保存成功','univer-flex\x20univer-items-start\x20univer-gap-2','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.note1','mcpConfig.apiApplyInfo.title','prototype','none','Configuration\x20Steps:','https://console.univer.ai','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','univer-font-medium','NETWORK_ERROR','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','mcpConfig.apiKeyHint','show','几秒钟内获取您的\x20API\x20密钥','SESSION_ID_OCCUPIED','registerComponent','subscribe','hasOwnProperty','mcpStatus.unauthorized','UniverProMcp','_initializeCommands','MCP\x20Client\x20Configuration','off','_initConfigSync','exports','MCP_UI_PLUGIN','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Enter\x20your\x20API\x20key','IConfigService','value','getItem','MCP:\x20超出最大重试次数','MCP:\x20Max\x20Retries\x20Exceeded','超出最大重试次数,请稍后再试','API\x20key\x20with\x20Bearer\x20prefix.','\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','Success','最大重试次数','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_menuManagerService','mcpConfig.authorizationDescription','univer-text-gray-500','fill','toString','http://www.w3.org/2000/svg','showStatus','call','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','OnLineIcon','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-red-500','forEach','COMMAND','mcpStatus.retrying','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','assign','mcpConfig.connectionStatus.failed','Max\x20Retries','univer-space-y-4','defs','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','WebSocketService','univer-bg-gray-500','MCP\x20连接中...','univer-space-y-3','重连中...','_initStatusComponent','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','配置参数:','<API_KEY>','useDependency','启用身份验证以获得安全连接','OTHERS','univer-text-xs\x20univer-text-gray-600','off-line-icon_clip0_910_343','__setCustomHeaders','next','errorMessage','url(#off-line-icon_clip0_910_343)','M5.21243\x2012.287L11.8791\x205.62036','useRef','replace','Configuration\x20Notes:','MCP\x20Retrying...','children','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','evenodd','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Bearer\x20','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','url(#on-line-icon_clip0_910_349)','getCurrentConfig','univer-space-y-5','mergeMenu','带有\x20Bearer\x20前缀的\x20API\x20密钥。','isValid','CommandType','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_logService','connectionError$','icon','Close','clipPath','_messageService','univer-text-blue-600','getOwnPropertySymbols','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Plugin','Injector','9630050aCKIde','您的\x20API\x20密钥将在此浏览器中本地存储','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','UniverDesign','NONE','_createConfigPanelComponent','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','setConfig','colorChannel1','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','React','将以下配置添加到您的\x20MCP\x20客户端设置中:','subscribeConfigValue$','请输入您的\x20API\x20密钥','UNAUTHORIZED','MCP\x20Connecting...','MCPConfigUIController','102FJJiOh','tag','Disposable','Authorization:','MCP_PLUGIN_CONFIG_KEY','mcpConfig.connectionInfo','Inject','0\x200\x2017\x2016','MCP\x20连接失败','univer-space-y-2','点击连接\x20MCP','Disconnected','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','jsx','white','MCPConnectionStatus','API\x20密钥','connectionStatus$','mcpConfig.configInstructions','univer-text-sm\x20univer-text-gray-500','apiKey','univer-mr-2\x20univer-flex\x20univer-text-xl','6030235ZiFQRV','entries','mcpConfig.connectionError.unauthorized','span','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','RibbonStartGroup','mcpStatus.unknown','MCP\x20客户端配置','mcpConfig.configStep3','ComponentManager','_handleConfigure','forwardRef','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_localStorageService','defineProperty','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','removeItem','121874NTNLIE','Click\x20to\x20connect\x20MCP','_componentManager','ILocalStorageService','on-line-icon','validateApiKey','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','UniverUi','205749rxtIhm','MCPConnectionError','string','idSuffix','API\x20key\x20is\x20required','UniverMCPPlugin','currentColor','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','IMenuManagerService','mcpStatus.clickToConfigure','mcpConfig.connectionStatus.disconnected','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-min-w-0\x20univer-flex-1','M0\x200H16V16H0z','univer-flex\x20univer-gap-3','mcpConfig.note2','url(#$1','univer-text-green-500','https://console.univer.plus','check-mark-icon','univer-flex\x20univer-items-center','Button','univer-flex\x20univer-items-start\x20univer-gap-3','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','UniverNetwork','_dialogService','mcpConfig.apiApplyInfo.univerAiLabel','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','OpenMCPConfigPanelCommand','2104948nrJvVu','enableAutoConnect','attrs','29420347jPQSZO','indexOf','_initializeMenus','mcpConfig.apiApplyInfo.description','react/jsx-runtime','MCP\x20配置','MCP\x20重连中...','showDeveloperTools','UniverCore','_handleConfigSave','_mcpCoreConfig$','div','univer-flex\x20univer-flex-wrap\x20univer-gap-2','权限验证失败,请检查您的\x20API\x20密钥','What\x20is\x20API\x20Key?','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','extend','MCP\x20已连接','pre','IDialogService','text','MCP\x20已断开'];_0x3aaa=function(){return _0x854483;};return _0x3aaa();}function _0x3487(_0xf227e9,_0x1b02c9){var _0x3aaa42=_0x3aaa();return _0x3487=function(_0x34871b,_0x2cde6e){_0x34871b=_0x34871b-0x1ec;var _0x14f1c4=_0x3aaa42[_0x34871b];return _0x14f1c4;},_0x3487(_0xf227e9,_0x1b02c9);}(function(_0x826d7a,_0x44a07c){var _0x9242d7=_0x3487,_0x2c95c0=_0x826d7a();while(!![]){try{var _0x40744a=parseInt(_0x9242d7(0x20c))/0x1*(-parseInt(_0x9242d7(0x2e0))/0x2)+-parseInt(_0x9242d7(0x32b))/0x3*(parseInt(_0x9242d7(0x307))/0x4)+parseInt(_0x9242d7(0x2ce))/0x5+parseInt(_0x9242d7(0x2b8))/0x6*(-parseInt(_0x9242d7(0x217))/0x7)+-parseInt(_0x9242d7(0x324))/0x8*(parseInt(_0x9242d7(0x2e8))/0x9)+-parseInt(_0x9242d7(0x2a7))/0xa+parseInt(_0x9242d7(0x30a))/0xb;if(_0x40744a===_0x44a07c)break;else _0x2c95c0['push'](_0x2c95c0['shift']());}catch(_0x5bf2e9){_0x2c95c0['push'](_0x2c95c0['shift']());}}}(_0x3aaa,0xa48f6),function(_0x262ef4,_0x36bbf1){var _0x485ed1=_0x3487;typeof exports==_0x485ed1(0x337)&&typeof module<'u'?_0x36bbf1(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define['amd']?define([_0x485ed1(0x24d),_0x485ed1(0x200),_0x485ed1(0x30e),'@univerjs-pro/mcp','@univerjs/design','@univerjs/ui',_0x485ed1(0x346),'react',_0x485ed1(0x333)],_0x36bbf1):(_0x262ef4=typeof globalThis<'u'?globalThis:_0x262ef4||self,_0x36bbf1(_0x262ef4[_0x485ed1(0x33b)]={},_0x262ef4[_0x485ed1(0x312)],_0x262ef4[_0x485ed1(0x2b1)],_0x262ef4[_0x485ed1(0x248)],_0x262ef4[_0x485ed1(0x2aa)],_0x262ef4[_0x485ed1(0x2e7)],_0x262ef4[_0x485ed1(0x346)],_0x262ef4['React'],_0x262ef4[_0x485ed1(0x302)]));}(this,function(_0x51f65b,_0x545f0e,_0x488e73,_0xc88374,_0x161e13,_0x64b5ab,_0x4732ba,_0x5a7c72,_0x36e994){'use strict';var _0x5eebb6=_0x3487;var _0x4dd850=Object[_0x5eebb6(0x2dd)],_0x2c6ab1=(_0x339734,_0x4ccf36,_0x46f13e)=>_0x4ccf36 in _0x339734?_0x4dd850(_0x339734,_0x4ccf36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46f13e}):_0x339734[_0x4ccf36]=_0x46f13e,_0x403f88=(_0x349198,_0x4079a2,_0x27478e)=>_0x2c6ab1(_0x349198,typeof _0x4079a2!=_0x5eebb6(0x376)?_0x4079a2+'':_0x4079a2,_0x27478e),_0x363836=function(){var _0x36acca=_0x5eebb6;return _0x363836=Object[_0x36acca(0x26c)]||function(_0x5ac858){var _0x3deef1=_0x36acca;for(var _0x7cbaba,_0x4f62fd=0x1,_0x231889=arguments[_0x3deef1(0x32d)];_0x4f62fd<_0x231889;_0x4f62fd++){_0x7cbaba=arguments[_0x4f62fd];for(var _0x4a987c in _0x7cbaba)Object['prototype'][_0x3deef1(0x246)][_0x3deef1(0x263)](_0x7cbaba,_0x4a987c)&&(_0x5ac858[_0x4a987c]=_0x7cbaba[_0x4a987c]);}return _0x5ac858;},_0x363836['apply'](this,arguments);},_0x23e867=function(_0xc9dbd3,_0xe4d025){var _0x510857=_0x5eebb6,_0x520915={};for(var _0x1d385b in _0xc9dbd3)Object['prototype'][_0x510857(0x246)][_0x510857(0x263)](_0xc9dbd3,_0x1d385b)&&_0xe4d025[_0x510857(0x30b)](_0x1d385b)<0x0&&(_0x520915[_0x1d385b]=_0xc9dbd3[_0x1d385b]);if(_0xc9dbd3!=null&&typeof Object[_0x510857(0x2a2)]==_0x510857(0x365)){for(var _0x2e4331=0x0,_0x1d385b=Object[_0x510857(0x2a2)](_0xc9dbd3);_0x2e4331<_0x1d385b[_0x510857(0x32d)];_0x2e4331++)_0xe4d025[_0x510857(0x30b)](_0x1d385b[_0x2e4331])<0x0&&Object[_0x510857(0x238)]['propertyIsEnumerable']['call'](_0xc9dbd3,_0x1d385b[_0x2e4331])&&(_0x520915[_0x1d385b[_0x2e4331]]=_0xc9dbd3[_0x1d385b[_0x2e4331]]);}return _0x520915;},_0x11b592=_0x5a7c72[_0x5eebb6(0x2da)](function(_0x5ae303,_0x25c21e){var _0x4e68c3=_0x5eebb6,_0x5f12a2=_0x5ae303[_0x4e68c3(0x29d)],_0x5422b4=_0x5ae303['id'],_0x43a29a=_0x5ae303['className'],_0x18689f=_0x5ae303[_0x4e68c3(0x31a)],_0xf303fb=_0x23e867(_0x5ae303,[_0x4e68c3(0x29d),'id','className',_0x4e68c3(0x31a)]),_0x4aefbc=_0x4e68c3(0x356)[_0x4e68c3(0x353)](_0x5422b4,'\x20')[_0x4e68c3(0x353)](_0x43a29a||'')[_0x4e68c3(0x342)](),_0x5e8431=_0x5a7c72[_0x4e68c3(0x287)]('_'[_0x4e68c3(0x353)](_0x1283c5()));return _0x4d2186(_0x5f12a2,''[_0x4e68c3(0x353)](_0x5422b4),{'defIds':_0x5f12a2['defIds'],'idSuffix':_0x5e8431[_0x4e68c3(0x210)]},_0x363836({'ref':_0x25c21e,'className':_0x4aefbc},_0xf303fb),_0x18689f);});function _0x4d2186(_0x202153,_0x38c40c,_0x512764,_0x4b7218,_0x39d69c){var _0x37025e=_0x5eebb6;return _0x5a7c72[_0x37025e(0x204)](_0x202153[_0x37025e(0x2b9)],_0x363836(_0x363836({'key':_0x38c40c},_0x2bf45c(_0x202153,_0x512764,_0x39d69c)),_0x4b7218),(_0x1b0eb2(_0x202153,_0x512764)[_0x37025e(0x28b)]||[])['map'](function(_0x572462,_0x3e3030){var _0x5725d8=_0x37025e;return _0x4d2186(_0x572462,''['concat'](_0x38c40c,'-')[_0x5725d8(0x353)](_0x202153[_0x5725d8(0x2b9)],'-')[_0x5725d8(0x353)](_0x3e3030),_0x512764,void 0x0,_0x39d69c);}));}function _0x2bf45c(_0x476fe4,_0x4492fa,_0x11fc4b){var _0x1fb5d4=_0x5eebb6,_0x4e4e51=_0x363836({},_0x476fe4[_0x1fb5d4(0x309)]);_0x11fc4b!=null&&_0x11fc4b[_0x1fb5d4(0x2af)]&&_0x4e4e51[_0x1fb5d4(0x25f)]===_0x1fb5d4(0x2af)&&(_0x4e4e51['fill']=_0x11fc4b['colorChannel1']),_0x476fe4[_0x1fb5d4(0x2b9)]==='mask'&&_0x4e4e51['id']&&(_0x4e4e51['id']=_0x4e4e51['id']+_0x4492fa[_0x1fb5d4(0x2eb)]),Object[_0x1fb5d4(0x2cf)](_0x4e4e51)[_0x1fb5d4(0x268)](function(_0x3d20c7){var _0x449403=_0x1fb5d4,_0x41ecec=_0x3d20c7[0x0],_0x531b80=_0x3d20c7[0x1];_0x41ecec===_0x449403(0x33d)&&typeof _0x531b80=='string'&&(_0x4e4e51[_0x41ecec]=_0x531b80[_0x449403(0x288)](/url\(#(.*)\)/,_0x449403(0x2f8)[_0x449403(0x353)](_0x4492fa[_0x449403(0x2eb)],')')));});var _0x14634=_0x4492fa[_0x1fb5d4(0x36d)];return!_0x14634||_0x14634[_0x1fb5d4(0x32d)]===0x0||(_0x476fe4[_0x1fb5d4(0x2b9)]===_0x1fb5d4(0x362)&&_0x4e4e51['xlink:href']&&(_0x4e4e51['xlink:href']=_0x4e4e51[_0x1fb5d4(0x372)]+_0x4492fa['idSuffix']),Object[_0x1fb5d4(0x2cf)](_0x4e4e51)[_0x1fb5d4(0x268)](function(_0x71438a){var _0x3a516c=_0x1fb5d4,_0x2a2ad5=_0x71438a[0x0],_0x6fc204=_0x71438a[0x1];typeof _0x6fc204==_0x3a516c(0x2ea)&&(_0x4e4e51[_0x2a2ad5]=_0x6fc204['replace'](/url\(#(.*)\)/,'url(#$1'[_0x3a516c(0x353)](_0x4492fa[_0x3a516c(0x2eb)],')')));})),_0x4e4e51;}function _0x1b0eb2(_0x1f0189,_0x4c5dd2){var _0x1962a2=_0x5eebb6,_0x56812,_0x249132=_0x4c5dd2[_0x1962a2(0x36d)];return!_0x249132||_0x249132[_0x1962a2(0x32d)]===0x0?_0x1f0189:_0x1f0189['tag']===_0x1962a2(0x270)&&(!((_0x56812=_0x1f0189[_0x1962a2(0x28b)])===null||_0x56812===void 0x0)&&_0x56812[_0x1962a2(0x32d)])?_0x363836(_0x363836({},_0x1f0189),{'children':_0x1f0189[_0x1962a2(0x28b)]['map'](function(_0x547edb){var _0x31528a=_0x1962a2;return typeof _0x547edb[_0x31528a(0x309)]['id']=='string'&&_0x249132&&_0x249132['includes'](_0x547edb['attrs']['id'])?_0x363836(_0x363836({},_0x547edb),{'attrs':_0x363836(_0x363836({},_0x547edb['attrs']),{'id':_0x547edb[_0x31528a(0x309)]['id']+_0x4c5dd2[_0x31528a(0x2eb)]})}):_0x547edb;})}):_0x1f0189;}function _0x1283c5(){var _0x5f0886=_0x5eebb6;return Math[_0x5f0886(0x343)]()[_0x5f0886(0x260)](0x24)[_0x5f0886(0x33a)](0x2,0x8);}_0x11b592['displayName']=_0x5eebb6(0x20f);var _0x538922={'tag':_0x5eebb6(0x1f7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5eebb6(0x239),'viewBox':_0x5eebb6(0x1ef),'width':_0x5eebb6(0x367),'height':_0x5eebb6(0x367)},'children':[{'tag':'path','attrs':{'fill':_0x5eebb6(0x2ee),'d':_0x5eebb6(0x350),'fillRule':_0x5eebb6(0x28d),'clipRule':_0x5eebb6(0x28d)}}]},_0x5bf9a1=_0x5a7c72[_0x5eebb6(0x2da)](function(_0x1c3bf8,_0x453166){var _0x5dd91a=_0x5eebb6;return _0x5a7c72[_0x5dd91a(0x204)](_0x11b592,Object[_0x5dd91a(0x26c)]({},_0x1c3bf8,{'id':_0x5dd91a(0x2fb),'ref':_0x453166,'icon':_0x538922}));});_0x5bf9a1[_0x5eebb6(0x21a)]='CheckMarkIcon';var _0x4d149e={'tag':_0x5eebb6(0x1f7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5eebb6(0x239),'viewBox':_0x5eebb6(0x371),'width':'1em','height':_0x5eebb6(0x367)},'children':[{'tag':'path','attrs':{'stroke':_0x5eebb6(0x2ee),'d':_0x5eebb6(0x1f5),'strokeLinecap':'round','strokeLinejoin':_0x5eebb6(0x375),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0x5eebb6(0x2ee),'d':_0x5eebb6(0x286),'strokeLinecap':_0x5eebb6(0x375),'strokeLinejoin':'round','strokeWidth':1.33}}]},_0x25a0db=_0x5a7c72[_0x5eebb6(0x2da)](function(_0x29c583,_0x1b0471){var _0xeac3c6=_0x5eebb6;return _0x5a7c72[_0xeac3c6(0x204)](_0x11b592,Object[_0xeac3c6(0x26c)]({},_0x29c583,{'id':_0xeac3c6(0x328),'ref':_0x1b0471,'icon':_0x4d149e}));});_0x25a0db[_0x5eebb6(0x21a)]='CloseSmallSingle';var _0x32d52f={'tag':'svg','attrs':{'xmlns':_0x5eebb6(0x261),'fill':'none','viewBox':_0x5eebb6(0x1ef),'width':_0x5eebb6(0x367),'height':_0x5eebb6(0x367)},'children':[{'tag':_0x5eebb6(0x325),'attrs':{'fill':_0x5eebb6(0x2ee),'d':_0x5eebb6(0x23f)}},{'tag':_0x5eebb6(0x325),'attrs':{'fill':_0x5eebb6(0x2ee),'d':_0x5eebb6(0x35d)}},{'tag':'path','attrs':{'fill':_0x5eebb6(0x2ee),'d':_0x5eebb6(0x2f3),'fillRule':_0x5eebb6(0x28d),'clipRule':'evenodd'}}]},_0x21ab5e=_0x5a7c72[_0x5eebb6(0x2da)](function(_0x134ab8,_0x1cd96f){var _0x55d709=_0x5eebb6;return _0x5a7c72[_0x55d709(0x204)](_0x11b592,Object[_0x55d709(0x26c)]({},_0x134ab8,{'id':_0x55d709(0x332),'ref':_0x1cd96f,'icon':_0x32d52f}));});_0x21ab5e['displayName']=_0x5eebb6(0x36c);var _0x4c9385={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5eebb6(0x239),'viewBox':_0x5eebb6(0x1ef),'width':'1em','height':_0x5eebb6(0x367)},'children':[{'tag':'g','attrs':{'clipPath':_0x5eebb6(0x285)},'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':_0x5eebb6(0x375),'strokeLinejoin':_0x5eebb6(0x375),'strokeWidth':1.2}}]},{'tag':_0x5eebb6(0x270),'attrs':{},'children':[{'tag':_0x5eebb6(0x29f),'attrs':{'id':_0x5eebb6(0x281)},'children':[{'tag':_0x5eebb6(0x325),'attrs':{'fill':_0x5eebb6(0x2c6),'d':_0x5eebb6(0x2f5)}}]}]}],'defIds':[_0x5eebb6(0x281)]},_0x1695a9=_0x5a7c72[_0x5eebb6(0x2da)](function(_0x374591,_0x39e413){var _0xf20cfe=_0x5eebb6;return _0x5a7c72[_0xf20cfe(0x204)](_0x11b592,Object['assign']({},_0x374591,{'id':'off-line-icon','ref':_0x39e413,'icon':_0x4c9385}));});_0x1695a9[_0x5eebb6(0x21a)]='OffLineIcon';var _0xf2eaf4={'tag':_0x5eebb6(0x1f7),'attrs':{'xmlns':_0x5eebb6(0x261),'fill':_0x5eebb6(0x239),'viewBox':_0x5eebb6(0x2bf),'width':_0x5eebb6(0x367),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5eebb6(0x291)},'children':[{'tag':_0x5eebb6(0x325),'attrs':{'stroke':_0x5eebb6(0x2ee),'d':_0x5eebb6(0x300),'strokeLinecap':'round','strokeLinejoin':_0x5eebb6(0x375),'strokeWidth':1.2}}]},{'tag':_0x5eebb6(0x270),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5eebb6(0x373)},'children':[{'tag':_0x5eebb6(0x325),'attrs':{'fill':_0x5eebb6(0x2c6),'d':'M0\x200H16V16H0z','transform':_0x5eebb6(0x208)}}]}]}],'defIds':[_0x5eebb6(0x373)]},_0x35c19=_0x5a7c72[_0x5eebb6(0x2da)](function(_0x35fee6,_0x55a478){var _0x4c7c1a=_0x5eebb6;return _0x5a7c72[_0x4c7c1a(0x204)](_0x11b592,Object[_0x4c7c1a(0x26c)]({},_0x35fee6,{'id':_0x4c7c1a(0x2e4),'ref':_0x55a478,'icon':_0xf2eaf4}));});_0x35c19[_0x5eebb6(0x21a)]=_0x5eebb6(0x265);function _0x2206cc(_0x3aac54){var _0x37914a=_0x5eebb6,_0x5e8e3c,_0x42aadb;const {mcpCoreConfig:_0x52a5af,onSave:_0x8b3a39,loading:_0xcae9a7=!0x1,config:_0x3bc861,connectionStatus$:_0x5e705d,connectionError$:_0x4034bd,currentApiKey$:_0x4f574a,currentSessionId$:_0x5a9d5f}=_0x3aac54,_0x1ef01c=_0x64b5ab[_0x37914a(0x27d)](_0x545f0e['LocaleService']),_0x513c47=_0x64b5ab['useObservable'](_0x5e705d,_0xc88374['MCPConnectionStatus']['DISCONNECTED']),_0x312448=_0x64b5ab[_0x37914a(0x33f)](_0x4034bd,_0xc88374[_0x37914a(0x2e9)][_0x37914a(0x2ab)]),_0x46199b=_0x64b5ab[_0x37914a(0x33f)](_0x5a9d5f,''),_0x1f847b=_0x64b5ab[_0x37914a(0x33f)](_0x4f574a,''),[_0x49078e,_0x3aba2d]=_0x5a7c72[_0x37914a(0x360)](_0x1f847b||''),_0xc7094e=!0x0,_0x51418f=_0x3bc861['showDeveloperTools']&&_0x52a5af['mcpServerUrl']&&(_0x52a5af['mcpServerUrl']['includes'](_0x37914a(0x205))||_0x52a5af[_0x37914a(0x34e)][_0x37914a(0x348)](_0x37914a(0x21d))),_0x2036cc=(_0x5e8e3c=_0x52a5af[_0x37914a(0x34e)])==null?void 0x0:_0x5e8e3c[_0x37914a(0x348)]('univer.plus'),_0x39eaf1=(_0x42aadb=_0x52a5af[_0x37914a(0x34e)])==null?void 0x0:_0x42aadb[_0x37914a(0x348)](_0x37914a(0x21d)),_0x291197=_0x2036cc?_0x37914a(0x2fa):_0x37914a(0x23b),_0x1d406d=_0x3bc861[_0x37914a(0x311)]&&(_0x2036cc||_0x39eaf1),[_0x4addae,_0x4a807b]=_0x5a7c72[_0x37914a(0x360)](!_0x49078e[_0x37914a(0x342)]()),_0x2e8c6a=(_0x522707,_0x54333b)=>{var _0x311385=_0x37914a;if(_0x54333b===_0xc88374[_0x311385(0x2e9)][_0x311385(0x2b5)])return _0x311385(0x235);switch(_0x522707){case _0xc88374[_0x311385(0x2c7)]['CONNECTED']:return _0x311385(0x28e);case _0xc88374['MCPConnectionStatus'][_0x311385(0x20e)]:case _0xc88374['MCPConnectionStatus']['RETRYING']:return _0x311385(0x27a);case _0xc88374[_0x311385(0x2c7)][_0x311385(0x34d)]:return _0x311385(0x235);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x162f87=(_0x563fd2,_0x29534d)=>{var _0x59c109=_0x37914a;if(_0x29534d===_0xc88374[_0x59c109(0x2e9)][_0x59c109(0x2b5)])return _0x59c109(0x377);switch(_0x563fd2){case _0xc88374[_0x59c109(0x2c7)][_0x59c109(0x344)]:return _0x59c109(0x1f6);case _0xc88374[_0x59c109(0x2c7)]['CONNECTING']:case _0xc88374['MCPConnectionStatus'][_0x59c109(0x1f8)]:return'univer-bg-blue-500';case _0xc88374[_0x59c109(0x2c7)]['FAILED']:return _0x59c109(0x377);default:return _0x59c109(0x274);}},_0x27c60b=_0x24279b=>{var _0x53d281=_0x37914a;switch(_0x24279b){case _0xc88374[_0x53d281(0x2c7)][_0x53d281(0x344)]:return _0x1ef01c['t'](_0x53d281(0x37f));case _0xc88374[_0x53d281(0x2c7)][_0x53d281(0x20e)]:return _0x1ef01c['t']('mcpConfig.connectionStatus.connecting');case _0xc88374[_0x53d281(0x2c7)][_0x53d281(0x34d)]:return _0x1ef01c['t'](_0x53d281(0x26d));case _0xc88374[_0x53d281(0x2c7)][_0x53d281(0x1f8)]:return _0x1ef01c['t'](_0x53d281(0x32a));default:return _0x1ef01c['t'](_0x53d281(0x2f2));}},_0xb2d860=_0x3ff970=>{var _0x2452ca=_0x37914a;switch(_0x3ff970){case _0xc88374[_0x2452ca(0x2e9)][_0x2452ca(0x2b5)]:return _0x1ef01c['t'](_0x2452ca(0x2d0));case _0xc88374['MCPConnectionError'][_0x2452ca(0x243)]:return _0x1ef01c['t']('mcpConfig.connectionError.sessionOccupied');case _0xc88374[_0x2452ca(0x2e9)][_0x2452ca(0x23e)]:return _0x1ef01c['t'](_0x2452ca(0x378));case _0xc88374[_0x2452ca(0x2e9)][_0x2452ca(0x355)]:return _0x1ef01c['t'](_0x2452ca(0x223));default:return'';}},_0x1ece40=_0x5a7c72[_0x37914a(0x33c)](()=>{var _0x17267e=_0x37914a;const _0x59761b={..._0x52a5af,'apiKey':_0x49078e[_0x17267e(0x342)](),'enableAuth':_0xc7094e};_0x8b3a39(_0x59761b);},[_0x52a5af,_0x49078e,_0xc7094e,_0x8b3a39]),_0x3f4f3c=_0x49078e[_0x37914a(0x342)]()['length']>0x0;return _0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x24f),'children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x315),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x488e73[_0x37914a(0x1f1)]('div',{'className':_0x37914a(0x351),'children':[_0x488e73['jsx'](_0x37914a(0x315),{'className':_0x37914a(0x2ff),'children':_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x2d1),{'className':'univer-text-white','children':'⚙'})}),_0x488e73['jsx'](_0x37914a(0x315),{'children':_0x488e73[_0x37914a(0x2c5)]('p',{'className':_0x37914a(0x2cb),'children':_0x1ef01c['t'](_0x37914a(0x322))})})]})}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x315),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2e8c6a(_0x513c47,_0x312448)+_0x37914a(0x2db),'children':_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x370),'children':[_0x488e73[_0x37914a(0x2c5)]('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x162f87(_0x513c47,_0x312448)+_0x37914a(0x2a9)}),_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x2d1),{'className':_0x37914a(0x379),'children':_0x27c60b(_0x513c47)})]})}),_0x312448!==_0xc88374[_0x37914a(0x2e9)]['NONE']&&(_0x513c47===_0xc88374[_0x37914a(0x2c7)][_0x37914a(0x34d)]||_0x312448===_0xc88374[_0x37914a(0x2e9)][_0x37914a(0x2b5)])&&_0x488e73[_0x37914a(0x2c5)]('div',{'className':_0x37914a(0x25b),'children':_0x488e73[_0x37914a(0x1f1)]('div',{'className':_0x37914a(0x232),'children':[_0x488e73['jsx']('span',{'className':_0x37914a(0x381),'children':'⚠️'}),_0x488e73[_0x37914a(0x2c5)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0xb2d860(_0x312448)})]})})]}),_0x488e73[_0x37914a(0x2c5)]('div',{'className':_0x37914a(0x2e6),'children':_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x293),'children':[_0x488e73['jsxs'](_0x37914a(0x315),{'className':_0x37914a(0x2c1),'children':[_0x488e73['jsxs'](_0x37914a(0x37e),{'className':_0x37914a(0x272),'children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x2d1),{'children':'🔑'}),'\x20',_0x1ef01c['t']('mcpConfig.apiKey'),_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x2d1),{'className':_0x37914a(0x267),'children':'*'}),_0x51418f&&_0x488e73[_0x37914a(0x2c5)]('a',{'href':_0x37914a(0x335),'onClick':()=>_0x4a807b(!0x0),'className':_0x37914a(0x1f3),'title':_0x1ef01c['t'](_0x37914a(0x237)),'children':_0x488e73[_0x37914a(0x2c5)](_0x21ab5e,{})})]}),_0x488e73[_0x37914a(0x2c5)](_0x161e13[_0x37914a(0x1fd)],{'type':_0x37914a(0x31e),'placeholder':_0x1ef01c['t'](_0x37914a(0x230)),'value':_0x49078e,'onChange':_0x3aba2d,'disabled':_0xcae9a7,'autoComplete':_0x37914a(0x24b)}),_0x488e73[_0x37914a(0x2c5)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1ef01c['t'](_0x37914a(0x240))})]}),_0x51418f&&_0x4addae&&_0x488e73['jsxs']('div',{'className':_0x37914a(0x220),'children':[_0x488e73[_0x37914a(0x2c5)]('a',{'href':_0x37914a(0x335),'onClick':()=>_0x4a807b(!0x1),'className':_0x37914a(0x319),'title':_0x37914a(0x29e),'children':_0x488e73[_0x37914a(0x2c5)](_0x25a0db,{})}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x488e73[_0x37914a(0x2c5)]('div',{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x2d1),{'className':_0x37914a(0x2a1),'children':'🚀'})}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x216),'children':[_0x488e73[_0x37914a(0x2c5)]('h4',{'className':_0x37914a(0x290),'children':_0x1ef01c['t'](_0x37914a(0x237))}),_0x488e73[_0x37914a(0x2c5)]('p',{'className':_0x37914a(0x2d2),'children':_0x1ef01c['t'](_0x37914a(0x30d))}),_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x315),{'className':_0x37914a(0x316),'children':_0x1d406d&&_0x488e73['jsxs']('a',{'href':_0x291197,'target':'_blank','rel':_0x37914a(0x37a),'className':_0x37914a(0x2b0),'children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x2d1),{'children':'🤖'}),_0x1ef01c['t'](_0x37914a(0x304)),_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x2d1),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x1ef01c['t'](_0x37914a(0x339))]})]})]})]}),_0x3bc861[_0x37914a(0x311)]&&_0x488e73['jsxs']('div',{'className':_0x37914a(0x28c),'children':[_0x488e73[_0x37914a(0x1f1)]('h4',{'className':_0x37914a(0x266),'children':[_0x488e73[_0x37914a(0x2c5)]('span',{'children':'🔗'}),'\x20',_0x1ef01c['t'](_0x37914a(0x2bd))]}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x26f),'children':[_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x276),'children':[_0x488e73['jsx']('p',{'className':_0x37914a(0x280),'children':_0x1ef01c['t'](_0x37914a(0x2ca))}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x2c1),'children':[_0x488e73[_0x37914a(0x2c5)]('div',{'className':_0x37914a(0x279),'children':_0x1ef01c['t'](_0x37914a(0x201))}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x29a),'children':[_0x488e73['jsxs']('div',{'className':_0x37914a(0x370),'children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x2d1),{'className':_0x37914a(0x26b),'children':'1'}),_0x1ef01c['t'](_0x37914a(0x1ff))]}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x370),'children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x2d1),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x1ef01c['t']('mcpConfig.configStep2')]}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x488e73[_0x37914a(0x2c5)]('span',{'className':_0x37914a(0x26b),'children':'3'}),_0x1ef01c['t'](_0x37914a(0x2d7))]})]})]})]}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x2c1),'children':[_0x488e73[_0x37914a(0x2c5)]('div',{'className':_0x37914a(0x279),'children':'MCP\x20Configuration'}),_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x315),{'className':_0x37914a(0x1fb),'children':_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x31c),{'className':_0x37914a(0x380),'children':_0x37914a(0x2c4)+_0x46199b+_0x37914a(0x23c)+(_0x49078e||_0x37914a(0x27c))+_0x37914a(0x32c)})})]}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':'univer-space-y-3','children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x315),{'className':_0x37914a(0x279),'children':_0x1ef01c['t']('mcpConfig.configParameters')}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':'univer-space-y-2','children':[_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x2fe),'children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x315),{'className':_0x37914a(0x264)}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x315),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),_0x488e73['jsx'](_0x37914a(0x315),{'className':_0x37914a(0x20d),'children':_0x1ef01c['t'](_0x37914a(0x21e))})]})]}),_0x488e73['jsxs'](_0x37914a(0x315),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x315),{'className':_0x37914a(0x264)}),_0x488e73['jsxs'](_0x37914a(0x315),{'className':_0x37914a(0x2f4),'children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x315),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x37914a(0x2bb)}),_0x488e73[_0x37914a(0x2c5)]('div',{'className':_0x37914a(0x20d),'children':_0x1ef01c['t'](_0x37914a(0x25d))})]})]})]})]})]})]}),_0x488e73[_0x37914a(0x2c5)](_0x161e13[_0x37914a(0x2fd)],{'onClick':_0x1ece40,'disabled':!_0x3f4f3c||_0xcae9a7,'className':_0x37914a(0x34f),'children':_0xcae9a7?_0x488e73[_0x37914a(0x1f1)]('span',{'className':_0x37914a(0x370),'children':[_0x488e73['jsx'](_0x37914a(0x2d1),{'children':'⟲'}),_0x1ef01c['t'](_0x37914a(0x32f))]}):_0x488e73[_0x37914a(0x1f1)]('span',{'className':_0x37914a(0x370),'children':[_0x488e73[_0x37914a(0x2c5)](_0x5bf9a1,{}),_0x1ef01c['t'](_0x37914a(0x320))]})}),_0x488e73[_0x37914a(0x2c5)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x2f6),'children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x2d1),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'className':_0x37914a(0x1fa),'children':[_0x488e73[_0x37914a(0x2c5)](_0x37914a(0x315),{'className':_0x37914a(0x23d),'children':_0x37914a(0x289)}),_0x488e73['jsxs'](_0x37914a(0x315),{'children':['•',_0x1ef01c['t'](_0x37914a(0x236))]}),_0x488e73[_0x37914a(0x1f1)](_0x37914a(0x315),{'children':['•',_0x1ef01c['t'](_0x37914a(0x2f7))]})]})]})})]})})]});}const _0x2b8429='mcp-ui.config',_0x1780e5={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x1a030c=Object[_0x5eebb6(0x331)],_0x4f6a27=(_0x40cad4,_0x4ede03,_0x5f4c45,_0x31190e)=>{var _0x4308b8=_0x5eebb6;for(var _0x5c8643=_0x31190e>0x1?void 0x0:_0x31190e?_0x1a030c(_0x4ede03,_0x5f4c45):_0x4ede03,_0x424d49=_0x40cad4[_0x4308b8(0x32d)]-0x1,_0x998632;_0x424d49>=0x0;_0x424d49--)(_0x998632=_0x40cad4[_0x424d49])&&(_0x5c8643=_0x998632(_0x5c8643)||_0x5c8643);return _0x5c8643;},_0x51a2a8=(_0xa9b310,_0x3a0c00)=>(_0x9b5859,_0x6b68b8)=>_0x3a0c00(_0x9b5859,_0x6b68b8,_0xa9b310);const _0x50923f='mcp.apiKey',_0x44bebc=_0x5eebb6(0x1fc);_0x51f65b[_0x5eebb6(0x2b7)]=class extends _0x545f0e[_0x5eebb6(0x2ba)]{constructor(_0x5667be,_0x5033ae,_0x30ab44,_0x541cee,_0x40db37,_0x86e9c9,_0x20f50a,_0xa31837,_0xfc1d38,_0xc2d32a){var _0x46f616=_0x5eebb6;super(),_0x403f88(this,'_loading$',new _0x4732ba[(_0x46f616(0x22e))](!0x1)),_0x403f88(this,_0x46f616(0x314),new _0x4732ba[(_0x46f616(0x22e))]({})),_0x403f88(this,_0x46f616(0x334),new _0x4732ba[(_0x46f616(0x22e))]({})),_0x403f88(this,_0x46f616(0x1ed),new _0x4732ba[(_0x46f616(0x22e))]('')),_0x403f88(this,'_handleConfigSave',async _0x3d7010=>{var _0x4ba539=_0x46f616,_0x2ab694,_0x4b9efc;this['_loading$'][_0x4ba539(0x283)](!0x0);try{const _0x4ace3f=await this['_validateConfig'](_0x3d7010);if(!_0x4ace3f[_0x4ba539(0x296)]){this[_0x4ba539(0x2a0)][_0x4ba539(0x241)]({'type':_0x161e13['MessageType'][_0x4ba539(0x35c)],'content':_0x4ace3f[_0x4ba539(0x284)]||this[_0x4ba539(0x327)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x3d7010[_0x4ba539(0x2cc)]?await this[_0x4ba539(0x2dc)]['setItem'](_0x50923f,_0x3d7010[_0x4ba539(0x2cc)][_0x4ba539(0x342)]()):await this['_localStorageService'][_0x4ba539(0x2df)](_0x50923f),this['_apiKey$'][_0x4ba539(0x283)](((_0x2ab694=_0x3d7010[_0x4ba539(0x2cc)])==null?void 0x0:_0x2ab694[_0x4ba539(0x342)]())||''),this['_mcpConnectionController'][_0x4ba539(0x282)]({'Authorization':_0x4ba539(0x28f)+((_0x4b9efc=_0x3d7010[_0x4ba539(0x2cc)])==null?void 0x0:_0x4b9efc['trim']())}),this[_0x4ba539(0x2a0)][_0x4ba539(0x241)]({'type':_0x161e13[_0x4ba539(0x36e)][_0x4ba539(0x259)],'content':this[_0x4ba539(0x327)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x333889=_0x4ba539;this[_0x333889(0x303)][_0x333889(0x20a)](_0x44bebc);},0x320);}catch(_0x870e7d){this[_0x4ba539(0x29b)][_0x4ba539(0x326)](_0x4ba539(0x37b),_0x870e7d),this[_0x4ba539(0x2a0)][_0x4ba539(0x241)]({'type':_0x161e13[_0x4ba539(0x36e)][_0x4ba539(0x35c)],'content':this['_localeService']['t'](_0x4ba539(0x35b))});}finally{this[_0x4ba539(0x33e)][_0x4ba539(0x283)](!0x1);}}),(this[_0x46f616(0x227)]=_0x5667be,this[_0x46f616(0x323)]=_0x5033ae,this['_configService']=_0x30ab44,this['_localStorageService']=_0x541cee,this['_dialogService']=_0x40db37,this[_0x46f616(0x2a0)]=_0x86e9c9,this[_0x46f616(0x2e2)]=_0x20f50a,this[_0x46f616(0x327)]=_0xa31837,this[_0x46f616(0x29b)]=_0xfc1d38,this[_0x46f616(0x213)]=_0xc2d32a,this[_0x46f616(0x24c)](),this['_loadStoredApiKey'](),this[_0x46f616(0x358)]());}['showConfigPanel'](){var _0x8b888f=_0x5eebb6;const _0x25e06c=this[_0x8b888f(0x36f)][_0x8b888f(0x219)](_0x2b8429);_0x25e06c!=null&&_0x25e06c['showDeveloperTools']&&this[_0x8b888f(0x303)]['open']({'id':_0x44bebc,'title':{'title':this['_localeService']['t'](_0x8b888f(0x1ee))},'children':{'label':_0x8b888f(0x369)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](_0x44bebc);}});}[_0x5eebb6(0x292)](){var _0x4ce88c=_0x5eebb6;return this[_0x4ce88c(0x314)][_0x4ce88c(0x252)];}['_registerComponent'](){var _0x36c43f=_0x5eebb6;this[_0x36c43f(0x382)](this[_0x36c43f(0x2e2)]['register'](_0x36c43f(0x369),this[_0x36c43f(0x2ac)]()));}[_0x5eebb6(0x2ac)](){var _0x26940e=_0x5eebb6;return _0x64b5ab[_0x26940e(0x221)](()=>{var _0x23f772=_0x26940e,_0x3643c0,_0x5e2125,_0x4b6714;return _0x488e73[_0x23f772(0x2c5)](_0x2206cc,{'config':this[_0x23f772(0x334)][_0x23f772(0x252)],'mcpCoreConfig':this[_0x23f772(0x314)][_0x23f772(0x252)],'currentApiKey$':this[_0x23f772(0x1ed)],'onSave':this[_0x23f772(0x313)],'loading':this[_0x23f772(0x33e)][_0x23f772(0x252)],'connectionStatus$':(_0x3643c0=this[_0x23f772(0x213)])==null?void 0x0:_0x3643c0[_0x23f772(0x2c9)],'connectionError$':(_0x5e2125=this[_0x23f772(0x213)])==null?void 0x0:_0x5e2125[_0x23f772(0x29c)],'currentSessionId$':(_0x4b6714=this[_0x23f772(0x213)])==null?void 0x0:_0x4b6714['sessionId$']});},this[_0x26940e(0x227)]);}[_0x5eebb6(0x24c)](){var _0x5b0f6c=_0x5eebb6;this[_0x5b0f6c(0x382)](this[_0x5b0f6c(0x36f)]['subscribeConfigValue$'](_0xc88374[_0x5b0f6c(0x2bc)])['subscribe'](_0x48d144=>{var _0x4cf859=_0x5b0f6c;this[_0x4cf859(0x314)][_0x4cf859(0x283)](_0x48d144||{});}));const _0x512d11=this[_0x5b0f6c(0x36f)][_0x5b0f6c(0x219)](_0xc88374[_0x5b0f6c(0x2bc)]);this[_0x5b0f6c(0x314)]['next'](_0x512d11||{}),this[_0x5b0f6c(0x382)](this[_0x5b0f6c(0x36f)][_0x5b0f6c(0x2b3)](_0x2b8429)[_0x5b0f6c(0x245)](_0x563d7e=>{var _0x21684a=_0x5b0f6c;this[_0x21684a(0x334)][_0x21684a(0x283)](_0x563d7e||{});}));const _0x28ed09=this['_configService']['getConfig'](_0x2b8429);this[_0x5b0f6c(0x334)][_0x5b0f6c(0x283)](_0x28ed09||{});}async[_0x5eebb6(0x354)](){var _0x15fee7=_0x5eebb6;const _0x2634fd=this[_0x15fee7(0x36f)][_0x15fee7(0x219)](_0x2b8429);if(!(_0x2634fd!=null&&_0x2634fd[_0x15fee7(0x311)]))return;const _0x314be6=await this[_0x15fee7(0x2dc)][_0x15fee7(0x253)](_0x50923f);_0x314be6&&(this[_0x15fee7(0x213)][_0x15fee7(0x282)]({'Authorization':_0x15fee7(0x28f)+_0x314be6}),this[_0x15fee7(0x1ed)][_0x15fee7(0x283)](_0x314be6));}async[_0x5eebb6(0x34b)](_0x18fd0f){var _0x2b28dd=_0x5eebb6;if(!_0x18fd0f[_0x2b28dd(0x2cc)]||_0x18fd0f[_0x2b28dd(0x2cc)]['trim']()[_0x2b28dd(0x32d)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2b28dd(0x327)]['t'](_0x2b28dd(0x21c))};if(_0x18fd0f[_0x2b28dd(0x2cc)][_0x2b28dd(0x342)]()[_0x2b28dd(0x32d)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2b28dd(0x327)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x455dcb=await this[_0x2b28dd(0x227)][_0x2b28dd(0x211)](_0xc88374[_0x2b28dd(0x340)])[_0x2b28dd(0x2e5)](_0x18fd0f[_0x2b28dd(0x2cc)][_0x2b28dd(0x342)]());return _0x455dcb[_0x2b28dd(0x296)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x455dcb[_0x2b28dd(0x326)]||this[_0x2b28dd(0x327)]['t'](_0x2b28dd(0x20b))};}catch(_0x33b0c9){return console[_0x2b28dd(0x202)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x33b0c9),{'isValid':!0x0};}}},_0x51f65b[_0x5eebb6(0x2b7)]=_0x4f6a27([_0x51a2a8(0x0,_0x545f0e['Inject'](_0x545f0e[_0x5eebb6(0x2a6)])),_0x51a2a8(0x1,_0x64b5ab['IUIPartsService']),_0x51a2a8(0x2,_0x545f0e[_0x5eebb6(0x251)]),_0x51a2a8(0x3,_0x545f0e['ILocalStorageService']),_0x51a2a8(0x4,_0x64b5ab[_0x5eebb6(0x31d)]),_0x51a2a8(0x5,_0x64b5ab[_0x5eebb6(0x34c)]),_0x51a2a8(0x6,_0x545f0e['Inject'](_0x64b5ab[_0x5eebb6(0x2d8)])),_0x51a2a8(0x7,_0x545f0e[_0x5eebb6(0x2be)](_0x545f0e[_0x5eebb6(0x347)])),_0x51a2a8(0x8,_0x545f0e[_0x5eebb6(0x1ec)]),_0x51a2a8(0x9,_0x545f0e[_0x5eebb6(0x2be)](_0xc88374['MCPConnectionController']))],_0x51f65b[_0x5eebb6(0x2b7)]);const _0x130738={'id':'mcp-ui.command.openConfigPanel','type':_0x545f0e[_0x5eebb6(0x297)][_0x5eebb6(0x269)],'handler':async(_0x24844a,_0x4c0b1b)=>(_0x24844a['get'](_0x51f65b[_0x5eebb6(0x2b7)])[_0x5eebb6(0x214)](),!0x0)};function _0x2680d2(_0x586d53,_0x29dfcf){var _0x7d7f73=_0x5eebb6;switch(_0x586d53){case _0xc88374[_0x7d7f73(0x2c7)][_0x7d7f73(0x22f)]:return'mcpStatus.disconnected';case _0xc88374[_0x7d7f73(0x2c7)][_0x7d7f73(0x20e)]:return'mcpStatus.connecting';case _0xc88374[_0x7d7f73(0x2c7)][_0x7d7f73(0x344)]:return'mcpStatus.connected';case _0xc88374[_0x7d7f73(0x2c7)][_0x7d7f73(0x34d)]:switch(_0x29dfcf){case _0xc88374['MCPConnectionError'][_0x7d7f73(0x2b5)]:return _0x7d7f73(0x247);case _0xc88374['MCPConnectionError'][_0x7d7f73(0x243)]:return'mcpStatus.sessionOccupied';case _0xc88374[_0x7d7f73(0x2e9)][_0x7d7f73(0x23e)]:return _0x7d7f73(0x336);case _0xc88374['MCPConnectionError'][_0x7d7f73(0x355)]:return _0x7d7f73(0x364);default:return _0x7d7f73(0x1f9);}case _0xc88374[_0x7d7f73(0x2c7)][_0x7d7f73(0x1f8)]:return _0x7d7f73(0x26a);default:return _0x7d7f73(0x2d5);}}function _0x138b56(_0x457ae9,_0xf22e97,_0x2551b2,_0x1cb8fb=!0x0){var _0x5352c3=_0x5eebb6;const _0x548500=_0x2680d2(_0x457ae9,_0xf22e97),_0x51db37=_0x2551b2['t'](_0x548500);return _0x1cb8fb?_0x457ae9===_0xc88374[_0x5352c3(0x2c7)][_0x5352c3(0x22f)]&&_0xf22e97===_0xc88374[_0x5352c3(0x2e9)]['UNAUTHORIZED']?_0x51db37+_0x5352c3(0x374)+_0x2551b2['t'](_0x5352c3(0x2f1)):_0x457ae9===_0xc88374[_0x5352c3(0x2c7)][_0x5352c3(0x344)]?''+_0x51db37:_0x457ae9===_0xc88374[_0x5352c3(0x2c7)][_0x5352c3(0x22f)]||_0x457ae9===_0xc88374['MCPConnectionStatus'][_0x5352c3(0x34d)]?_0x51db37+_0x5352c3(0x374)+_0x2551b2['t'](_0x5352c3(0x212)):_0x51db37:_0x51db37;}function _0x458749(_0xb1d8f0){var _0x45c012=_0x5eebb6;switch(_0xb1d8f0){case _0xc88374[_0x45c012(0x2c7)][_0x45c012(0x344)]:return _0x45c012(0x2f9);case _0xc88374['MCPConnectionStatus'][_0x45c012(0x20e)]:case _0xc88374[_0x45c012(0x2c7)]['RETRYING']:return'univer-text-yellow-500';case _0xc88374[_0x45c012(0x2c7)][_0x45c012(0x34d)]:case _0xc88374[_0x45c012(0x2c7)][_0x45c012(0x22f)]:return _0x45c012(0x267);default:return _0x45c012(0x25e);}}function _0x1dc08f(_0x5bddfb){var _0x205021=_0x5eebb6;const {status$:_0x48215b,error$:_0x37d8d4,onConfigure:_0xc876c0,showClickable:_0x3f3e07=!0x0}=_0x5bddfb,_0x1ae42d=_0x64b5ab['useObservable'](_0x48215b,_0xc88374[_0x205021(0x2c7)][_0x205021(0x22f)]),_0x38cac9=_0x64b5ab[_0x205021(0x33f)](_0x37d8d4,_0xc88374[_0x205021(0x2e9)][_0x205021(0x2ab)]),_0x38d2bf=_0x64b5ab['useDependency'](_0x545f0e[_0x205021(0x347)]),_0xd4ceb0=_0x1ae42d===_0xc88374[_0x205021(0x2c7)][_0x205021(0x344)];_0x1ae42d===_0xc88374[_0x205021(0x2c7)][_0x205021(0x20e)]||_0xc88374['MCPConnectionStatus']['RETRYING'];const _0x53a424=_0x38d2bf['t'](_0x2680d2(_0x1ae42d,_0x38cac9)),_0x36dec5=_0x138b56(_0x1ae42d,_0x38cac9,_0x38d2bf,_0x3f3e07),_0x431abf=_0x458749(_0x1ae42d),_0x30208d=_0xd4ceb0?_0x488e73[_0x205021(0x2c5)](_0x35c19,{}):_0x488e73[_0x205021(0x2c5)](_0x1695a9,{}),_0x103de0=_0x5a7c72[_0x205021(0x33c)](()=>{_0x3f3e07&&_0xc876c0&&_0xc876c0();},[_0x3f3e07,_0xc876c0]);function _0x70cb8e(){var _0x2bbc8d=_0x205021;return _0x488e73[_0x2bbc8d(0x1f1)]('div',{'className':_0x161e13[_0x2bbc8d(0x209)](_0x2bbc8d(0x2fc),_0x3f3e07&&_0xc876c0&&_0x2bbc8d(0x258)),'onClick':_0x3f3e07&&_0xc876c0?_0x103de0:void 0x0,'children':[_0x488e73['jsx'](_0x2bbc8d(0x315),{'className':_0x161e13[_0x2bbc8d(0x209)](_0x2bbc8d(0x2cd),_0x431abf),'children':_0x30208d}),_0x488e73[_0x2bbc8d(0x2c5)](_0x2bbc8d(0x315),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x53a424})]});}return _0x488e73[_0x205021(0x2c5)](_0x161e13['Tooltip'],{'title':_0x36dec5,'placement':'bottom','children':_0x70cb8e()});}var _0x57946f=Object[_0x5eebb6(0x331)],_0x276e37=(_0x20ff3c,_0x4ea7b3,_0x34553c,_0x3efd9c)=>{var _0x537063=_0x5eebb6;for(var _0x409d30=_0x3efd9c>0x1?void 0x0:_0x3efd9c?_0x57946f(_0x4ea7b3,_0x34553c):_0x4ea7b3,_0x36695e=_0x20ff3c[_0x537063(0x32d)]-0x1,_0x2c8088;_0x36695e>=0x0;_0x36695e--)(_0x2c8088=_0x20ff3c[_0x36695e])&&(_0x409d30=_0x2c8088(_0x409d30)||_0x409d30);return _0x409d30;},_0x5c8289=(_0x1f8fc0,_0x2e3a06)=>(_0x42e8a3,_0x251aa0)=>_0x2e3a06(_0x42e8a3,_0x251aa0,_0x1f8fc0);_0x51f65b[_0x5eebb6(0x22b)]=class extends _0x545f0e[_0x5eebb6(0x2ba)]{constructor(_0x4d1ed9,_0x1826b4,_0x5cdd56,_0x1c315e){var _0x3e92aa=_0x5eebb6;super(),this[_0x3e92aa(0x227)]=_0x4d1ed9,this[_0x3e92aa(0x34a)]=_0x1826b4,this[_0x3e92aa(0x323)]=_0x5cdd56,this[_0x3e92aa(0x36f)]=_0x1c315e,this[_0x3e92aa(0x329)](),this[_0x3e92aa(0x278)]();}[_0x5eebb6(0x329)](){var _0x54d714=_0x5eebb6;const _0x55e0cf=this['_configService'][_0x54d714(0x219)](_0x2b8429);_0x55e0cf!=null&&_0x55e0cf[_0x54d714(0x311)]&&(this['_connectionController'][_0x54d714(0x308)]=!0x1);}[_0x5eebb6(0x278)](){var _0x196fa1=_0x5eebb6;const _0x374ddb=this['_configService'][_0x196fa1(0x219)](_0x2b8429);(_0x374ddb==null?void 0x0:_0x374ddb[_0x196fa1(0x262)])!==!0x1&&this[_0x196fa1(0x382)](this[_0x196fa1(0x323)][_0x196fa1(0x244)](_0x64b5ab[_0x196fa1(0x1f2)][_0x196fa1(0x37c)],()=>{var _0x56e28e=_0x196fa1,_0x20fc31;return _0x64b5ab[_0x56e28e(0x221)](_0x590962({'status$':this[_0x56e28e(0x34a)][_0x56e28e(0x2c9)],'error$':this[_0x56e28e(0x34a)]['connectionError$'],'onConfigure':()=>this[_0x56e28e(0x2d9)](),'showClickable':(_0x20fc31=_0x374ddb==null?void 0x0:_0x374ddb[_0x56e28e(0x311)])!=null?_0x20fc31:!0x1}),this[_0x56e28e(0x227)]);}));}['_handleConfigure'](){var _0x24ec4b=_0x5eebb6;this['_injector'][_0x24ec4b(0x211)](_0x51f65b[_0x24ec4b(0x2b7)])[_0x24ec4b(0x214)]();}},_0x51f65b[_0x5eebb6(0x22b)]=_0x276e37([_0x5c8289(0x0,_0x545f0e['Inject'](_0x545f0e[_0x5eebb6(0x2a6)])),_0x5c8289(0x1,_0x545f0e[_0x5eebb6(0x2be)](_0xc88374[_0x5eebb6(0x340)])),_0x5c8289(0x2,_0x64b5ab[_0x5eebb6(0x361)]),_0x5c8289(0x3,_0x545f0e[_0x5eebb6(0x251)])],_0x51f65b[_0x5eebb6(0x22b)]);function _0x590962(_0x490d21){const {status$:_0x24dd74,error$:_0x35e64d,onConfigure:_0x260572,showClickable:_0x2809f1}=_0x490d21;return function(){var _0x5a1741=_0x3487;return _0x488e73[_0x5a1741(0x2c5)](_0x1dc08f,{'status$':_0x24dd74,'error$':_0x35e64d,'onConfigure':_0x260572,'showClickable':_0x2809f1});};}function _0x1d8ef7(_0x300a4e){var _0x420185=_0x5eebb6;return{'id':_0x130738['id'],'type':_0x64b5ab[_0x420185(0x37d)]['BUTTON'],'icon':_0x420185(0x207),'title':_0x420185(0x1ee),'tooltip':_0x420185(0x1ee)};}const _0x486f23={[_0x64b5ab[_0x5eebb6(0x2d4)][_0x5eebb6(0x27f)]]:{[_0x130738['id']]:{'order':0xa,'menuItemFactory':_0x1d8ef7}}};var _0xb07b70=Object['getOwnPropertyDescriptor'],_0x114ae0=(_0x13127d,_0x34841d,_0x530f64,_0x31be0e)=>{var _0x5e82ed=_0x5eebb6;for(var _0xc5ffa6=_0x31be0e>0x1?void 0x0:_0x31be0e?_0xb07b70(_0x34841d,_0x530f64):_0x34841d,_0x14928a=_0x13127d[_0x5e82ed(0x32d)]-0x1,_0x17d2b9;_0x14928a>=0x0;_0x14928a--)(_0x17d2b9=_0x13127d[_0x14928a])&&(_0xc5ffa6=_0x17d2b9(_0xc5ffa6)||_0xc5ffa6);return _0xc5ffa6;},_0x2cc600=(_0x17ca02,_0x5e6c5d)=>(_0x2d9cd4,_0x3def8f)=>_0x5e6c5d(_0x2d9cd4,_0x3def8f,_0x17ca02);_0x51f65b[_0x5eebb6(0x1fe)]=class extends _0x545f0e[_0x5eebb6(0x2ba)]{constructor(_0x15f2f3,_0x301ff1){var _0x38cc85=_0x5eebb6;super(),this[_0x38cc85(0x21b)]=_0x15f2f3,this[_0x38cc85(0x25c)]=_0x301ff1,this[_0x38cc85(0x249)](),this[_0x38cc85(0x30c)]();}[_0x5eebb6(0x249)](){var _0x3c67da=_0x5eebb6;[_0x130738][_0x3c67da(0x268)](_0x132c5f=>{var _0x1dd122=_0x3c67da;this[_0x1dd122(0x382)](this[_0x1dd122(0x21b)]['registerCommand'](_0x132c5f));});}[_0x5eebb6(0x30c)](){var _0xc0d41f=_0x5eebb6;this[_0xc0d41f(0x25c)][_0xc0d41f(0x294)](_0x486f23);}},_0x51f65b[_0x5eebb6(0x1fe)]=_0x114ae0([_0x2cc600(0x0,_0x545f0e[_0x5eebb6(0x22a)]),_0x2cc600(0x1,_0x64b5ab[_0x5eebb6(0x2f0)])],_0x51f65b[_0x5eebb6(0x1fe)]);const _0x2c9e85={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5eebb6(0x2b6),'connected':_0x5eebb6(0x352),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5eebb6(0x28a),'unknown':_0x5eebb6(0x234),'unauthorized':_0x5eebb6(0x345),'sessionOccupied':_0x5eebb6(0x363),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5eebb6(0x255),'clickToConnect':_0x5eebb6(0x2e1),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5eebb6(0x2ad),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5eebb6(0x250),'apiKeyHint':_0x5eebb6(0x2de),'enableAuth':_0x5eebb6(0x21f),'enableAuthHint':_0x5eebb6(0x383),'connectionInfo':_0x5eebb6(0x24a),'mcpClientConfig':_0x5eebb6(0x24a),'configInstructions':_0x5eebb6(0x301),'configStepTitle':_0x5eebb6(0x23a),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5eebb6(0x271),'configStep3':_0x5eebb6(0x233),'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':_0x5eebb6(0x257),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x5eebb6(0x26e),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x5eebb6(0x305),'note2':_0x5eebb6(0x2d3),'configSaved':_0x5eebb6(0x35e),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5eebb6(0x318),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5eebb6(0x2ec),'apiKeyTooShort':_0x5eebb6(0x299),'invalidConfig':_0x5eebb6(0x22d),'invalidApiKey':_0x5eebb6(0x2a4)},'connectionStatus':{'disconnected':_0x5eebb6(0x2c3),'connecting':_0x5eebb6(0x225),'connected':_0x5eebb6(0x2a3),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x5eebb6(0x2ef),'sessionOccupied':_0x5eebb6(0x228),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5eebb6(0x203)}}},_0x3912f7={'mcpStatus':{'disconnected':_0x5eebb6(0x31f),'connecting':_0x5eebb6(0x275),'connected':_0x5eebb6(0x31b),'failed':_0x5eebb6(0x2c0),'retrying':_0x5eebb6(0x310),'unknown':_0x5eebb6(0x35f),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x5eebb6(0x32e),'maxRetriesExceeded':_0x5eebb6(0x254),'clickToConnect':_0x5eebb6(0x2c2),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5eebb6(0x30f),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x5eebb6(0x2c8),'apiKeyPlaceholder':_0x5eebb6(0x2b4),'apiKeyHint':_0x5eebb6(0x2a8),'enableAuth':'启用身份验证','enableAuthHint':_0x5eebb6(0x27e),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x5eebb6(0x2d6),'configInstructions':_0x5eebb6(0x2b2),'configStepTitle':_0x5eebb6(0x229),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x5eebb6(0x357),'sessionId':'会话ID','sessionIdDescription':_0x5eebb6(0x222),'authorizationDescription':_0x5eebb6(0x295),'configParameters':_0x5eebb6(0x27b),'maxRetries':_0x5eebb6(0x25a),'save':'保存配置','saving':'保存中...','note1':_0x5eebb6(0x218),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x5eebb6(0x231),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x5eebb6(0x298),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x5eebb6(0x242)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x5eebb6(0x35a),'invalidApiKey':_0x5eebb6(0x338)},'connectionStatus':{'disconnected':_0x5eebb6(0x206),'connecting':'连接中...','connected':'已连接','failed':_0x5eebb6(0x224),'retrying':_0x5eebb6(0x277)},'connectionError':{'unauthorized':_0x5eebb6(0x317),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x5eebb6(0x368),'maxRetriesExceeded':_0x5eebb6(0x256)}}};var _0xb202c6=Object[_0x5eebb6(0x2dd)],_0x3cf1bc=Object[_0x5eebb6(0x331)],_0x41060d=(_0x1ff1be,_0x19f21f,_0x22910a)=>_0x19f21f in _0x1ff1be?_0xb202c6(_0x1ff1be,_0x19f21f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22910a}):_0x1ff1be[_0x19f21f]=_0x22910a,_0x2f1ca2=(_0x2f93e3,_0x1c8aaf,_0x4c68dc,_0x3fd416)=>{var _0x42559f=_0x5eebb6;for(var _0x50d8e1=_0x3fd416>0x1?void 0x0:_0x3fd416?_0x3cf1bc(_0x1c8aaf,_0x4c68dc):_0x1c8aaf,_0x35ba5c=_0x2f93e3[_0x42559f(0x32d)]-0x1,_0x2abc0b;_0x35ba5c>=0x0;_0x35ba5c--)(_0x2abc0b=_0x2f93e3[_0x35ba5c])&&(_0x50d8e1=_0x2abc0b(_0x50d8e1)||_0x50d8e1);return _0x50d8e1;},_0x4a620b=(_0x5d407a,_0x54197b)=>(_0x37a700,_0x47bc1c)=>_0x54197b(_0x37a700,_0x47bc1c,_0x5d407a),_0x357c73=(_0x4b8582,_0x270228,_0x1a8277)=>_0x41060d(_0x4b8582,_0x270228+'',_0x1a8277);_0x51f65b[_0x5eebb6(0x36a)]=class extends _0x545f0e[_0x5eebb6(0x2a5)]{constructor(_0xb282c8=_0x1780e5,_0x816c5e,_0x57c71e,_0x2befc3,_0x435929,_0x585675){var _0x24aa92=_0x5eebb6;super(),this[_0x24aa92(0x22c)]=_0xb282c8,this[_0x24aa92(0x227)]=_0x816c5e,this['_configService']=_0x57c71e,this[_0x24aa92(0x323)]=_0x2befc3,this[_0x24aa92(0x2dc)]=_0x435929,this['_localeService']=_0x585675;const {..._0x17444e}=_0x545f0e[_0x24aa92(0x330)]({},_0x1780e5,this[_0x24aa92(0x22c)]);this[_0x24aa92(0x36f)][_0x24aa92(0x2ae)](_0x2b8429,_0x17444e);}async[_0x5eebb6(0x321)](){var _0x4b137d=_0x5eebb6;const _0x2ef667=[[_0x51f65b[_0x4b137d(0x22b)]],[_0x51f65b['MCPConfigUIController']],[_0x51f65b['MCPUIMenuController']]];this[_0x4b137d(0x227)]['has'](_0x36e994[_0x4b137d(0x366)])||_0x2ef667[_0x4b137d(0x1f4)]([_0x36e994['ISocketService'],{'useClass':_0x36e994[_0x4b137d(0x273)]}]),_0x2ef667[_0x4b137d(0x268)](_0x30197f=>this['_injector'][_0x4b137d(0x349)](_0x30197f)),this[_0x4b137d(0x227)][_0x4b137d(0x211)](_0x51f65b[_0x4b137d(0x22b)]),this[_0x4b137d(0x227)]['get'](_0x51f65b[_0x4b137d(0x2b7)]),this[_0x4b137d(0x227)]['get'](_0x51f65b['MCPUIMenuController']);}},_0x357c73(_0x51f65b['UniverMCPUIPlugin'],_0x5eebb6(0x36b),_0x5eebb6(0x24e)),_0x51f65b['UniverMCPUIPlugin']=_0x2f1ca2([_0x545f0e[_0x5eebb6(0x215)](_0xc88374[_0x5eebb6(0x2ed)]),_0x4a620b(0x1,_0x545f0e[_0x5eebb6(0x2be)](_0x545f0e[_0x5eebb6(0x2a6)])),_0x4a620b(0x2,_0x545f0e[_0x5eebb6(0x251)]),_0x4a620b(0x3,_0x64b5ab[_0x5eebb6(0x361)]),_0x4a620b(0x4,_0x545f0e[_0x5eebb6(0x2e3)]),_0x4a620b(0x5,_0x545f0e[_0x5eebb6(0x2be)](_0x545f0e[_0x5eebb6(0x347)]))],_0x51f65b['UniverMCPUIPlugin']),_0x51f65b[_0x5eebb6(0x369)]=_0x2206cc,_0x51f65b[_0x5eebb6(0x359)]=_0x1dc08f,_0x51f65b[_0x5eebb6(0x306)]=_0x130738,_0x51f65b[_0x5eebb6(0x1f0)]=_0x2c9e85,_0x51f65b[_0x5eebb6(0x341)]=_0x3912f7,Object[_0x5eebb6(0x2dd)](_0x51f65b,Symbol[_0x5eebb6(0x226)],{'value':'Module'});}));
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5b84(_0x55e28b,_0x4d9d44){var _0x12a3b0=_0x12a3();return _0x5b84=function(_0x5b8428,_0x4559ef){_0x5b8428=_0x5b8428-0x1e5;var _0x1f7c0e=_0x12a3b0[_0x5b8428];return _0x1f7c0e;},_0x5b84(_0x55e28b,_0x4d9d44);}(function(_0x1b38f6,_0x4c777b){var _0x29cfc4=_0x5b84,_0x56a9d3=_0x1b38f6();while(!![]){try{var _0x2ea504=-parseInt(_0x29cfc4(0x1ed))/0x1*(-parseInt(_0x29cfc4(0x1f4))/0x2)+parseInt(_0x29cfc4(0x1fb))/0x3+parseInt(_0x29cfc4(0x20c))/0x4*(-parseInt(_0x29cfc4(0x1f1))/0x5)+parseInt(_0x29cfc4(0x208))/0x6+-parseInt(_0x29cfc4(0x202))/0x7+parseInt(_0x29cfc4(0x20d))/0x8+parseInt(_0x29cfc4(0x20a))/0x9*(-parseInt(_0x29cfc4(0x217))/0xa);if(_0x2ea504===_0x4c777b)break;else _0x56a9d3['push'](_0x56a9d3['shift']());}catch(_0x19bc6c){_0x56a9d3['push'](_0x56a9d3['shift']());}}}(_0x12a3,0xadaed),function(_0x4b3bfc,_0x1449e9){var _0xeeed88=_0x5b84;typeof exports==_0xeeed88(0x206)&&typeof module<'u'?module[_0xeeed88(0x1f2)]=_0x1449e9():typeof define=='function'&&define[_0xeeed88(0x1f3)]?define(_0x1449e9):(_0x4b3bfc=typeof globalThis<'u'?globalThis:_0x4b3bfc||self,_0x4b3bfc['UniverProMcpUiCaES']=_0x1449e9());}(this,function(){'use strict';var _0x1a31db=_0x5b84;return{'mcpStatus':{'disconnected':_0x1a31db(0x1f5),'connecting':_0x1a31db(0x1eb),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x1a31db(0x212),'unknown':_0x1a31db(0x213),'unauthorized':_0x1a31db(0x1fe),'sessionOccupied':_0x1a31db(0x207),'networkError':_0x1a31db(0x1fd),'maxRetriesExceeded':_0x1a31db(0x1f9),'clickToConnect':_0x1a31db(0x210),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1a31db(0x1e9),'description':_0x1a31db(0x218),'apiKey':_0x1a31db(0x1ee),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1a31db(0x1e7),'enableAuth':_0x1a31db(0x1f0),'enableAuthHint':_0x1a31db(0x1e5),'connectionInfo':_0x1a31db(0x200),'mcpClientConfig':_0x1a31db(0x200),'configInstructions':_0x1a31db(0x1fa),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1a31db(0x1f8),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1a31db(0x1ff),'sessionId':_0x1a31db(0x1e8),'sessionIdDescription':_0x1a31db(0x1fc),'authorizationDescription':_0x1a31db(0x1ec),'configParameters':_0x1a31db(0x1ef),'maxRetries':_0x1a31db(0x1ea),'save':'Save\x20Configuration','saving':_0x1a31db(0x20b),'note1':_0x1a31db(0x1f6),'note2':_0x1a31db(0x205),'configSaved':_0x1a31db(0x204),'configError':_0x1a31db(0x20f),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1a31db(0x201),'univerAiLabel':_0x1a31db(0x209),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1a31db(0x216),'apiKeyTooShort':_0x1a31db(0x214),'invalidConfig':_0x1a31db(0x211),'invalidApiKey':_0x1a31db(0x203)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x1a31db(0x1e6),'failed':'Connection\x20Failed','retrying':_0x1a31db(0x1f7)},'connectionError':{'unauthorized':_0x1a31db(0x219),'sessionOccupied':_0x1a31db(0x215),'networkError':_0x1a31db(0x20e),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};}));function _0x12a3(){var _0x5c31fb=['673HyIKBj','API\x20Key','Configuration\x20Parameters:','Enable\x20Authentication','335tfQIyv','exports','amd','134ngsWWy','MCP\x20Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','3758616TwlECL','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Client\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2228268nYVBak','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','object','MCP:\x20Session\x20ID\x20Occupied','3117144QHWpZh','Univer\x20AI\x20Console','9KTQoaa','Saving...','3076fKQFaa','6189168imtvny','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','MCP\x20Retrying...','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','15098810vUXuAQ','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','MCP\x20Configuration','Max\x20Retries','MCP\x20Connecting...','API\x20key\x20with\x20Bearer\x20prefix.'];_0x12a3=function(){return _0x5c31fb;};return _0x12a3();}
|