@univerjs-pro/mcp-ui 0.10.14 → 0.11.0-nightly.202511151013
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -0
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -0
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -0
- 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/types/locale/ja-JP.d.ts +3 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -0
- 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 +8 -8
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1f0279=_0x4204;(function(_0xa9d110,_0x5f4df2){const _0x1add29=_0x4204,_0x4decc1=_0xa9d110();while(!![]){try{const _0x4e60eb=parseInt(_0x1add29(0xfc))/0x1*(parseInt(_0x1add29(0x122))/0x2)+-parseInt(_0x1add29(0x124))/0x3*(-parseInt(_0x1add29(0xf6))/0x4)+parseInt(_0x1add29(0x10d))/0x5*(-parseInt(_0x1add29(0x112))/0x6)+parseInt(_0x1add29(0x103))/0x7+parseInt(_0x1add29(0x114))/0x8*(-parseInt(_0x1add29(0x111))/0x9)+parseInt(_0x1add29(0x116))/0xa+-parseInt(_0x1add29(0x123))/0xb;if(_0x4e60eb===_0x5f4df2)break;else _0x4decc1['push'](_0x4decc1['shift']());}catch(_0x5e52fa){_0x4decc1['push'](_0x4decc1['shift']());}}}(_0x4080,0xc0f24));function _0x4204(_0x289f4a,_0x2122c4){const _0x408005=_0x4080();return _0x4204=function(_0x4204c2,_0xf010ce){_0x4204c2=_0x4204c2-0xf3;let _0x5a0ef5=_0x408005[_0x4204c2];return _0x5a0ef5;},_0x4204(_0x289f4a,_0x2122c4);}function _0x4080(){const _0x3ef51a=['1pXPVSY','What\x20is\x20API\x20Key?','MCP\x20Disconnected','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Network\x20Error','9705178mFXUtI','MCP:\x20Unauthorized','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','5027945fCPFCU','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Client\x20Configuration','Save\x20Configuration','39141KFrTmu','6ysyBqH','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1448xArLBR','MCP\x20Configuration','1958730sJKIEk','Configuration\x20Steps:','MCP\x20Unknown\x20Status','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Univer\x20AI\x20Console','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','Enable\x20Authentication','1355602zNDRlT','10233674KOpSee','1879908HJFdbc','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connecting...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','MCP\x20Connection\x20Failed','8danYaC','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration','API\x20key\x20is\x20required'];_0x4080=function(){return _0x3ef51a;};return _0x4080();}const e={'mcpStatus':{'disconnected':_0x1f0279(0xfe),'connecting':_0x1f0279(0x126),'connected':_0x1f0279(0xf8),'failed':_0x1f0279(0xf5),'retrying':_0x1f0279(0x109),'unknown':_0x1f0279(0x118),'unauthorized':_0x1f0279(0x104),'sessionOccupied':_0x1f0279(0x105),'networkError':_0x1f0279(0x102),'maxRetriesExceeded':_0x1f0279(0x11a),'clickToConnect':_0x1f0279(0x10a),'clickToConfigure':_0x1f0279(0x120)},'mcpConfig':{'title':_0x1f0279(0x115),'description':_0x1f0279(0xf7),'apiKey':_0x1f0279(0x11b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1f0279(0xf9),'enableAuth':_0x1f0279(0x121),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1f0279(0x10f),'configInstructions':_0x1f0279(0xf3),'configStepTitle':_0x1f0279(0x117),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1f0279(0x106),'sessionId':_0x1f0279(0xff),'sessionIdDescription':_0x1f0279(0x113),'authorizationDescription':_0x1f0279(0x100),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1f0279(0x119),'save':_0x1f0279(0x110),'saving':'Saving...','note1':_0x1f0279(0x125),'note2':_0x1f0279(0x101),'configSaved':_0x1f0279(0x11f),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x1f0279(0xfd),'description':_0x1f0279(0x11d),'univerAiLabel':_0x1f0279(0x11e),'getStarted':_0x1f0279(0x108)},'validation':{'apiKeyRequired':_0x1f0279(0xfb),'apiKeyTooShort':_0x1f0279(0x10e),'invalidConfig':_0x1f0279(0xfa),'invalidApiKey':_0x1f0279(0x10c)},'connectionStatus':{'disconnected':_0x1f0279(0xf4),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1f0279(0x11c),'networkError':_0x1f0279(0x107),'maxRetriesExceeded':_0x1f0279(0x10b)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3808(){const _0x5d50c8=['Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Max\x20Retries\x20Exceeded','405BJSiRe','Disconnected','Configuration\x20saved\x20successfully','1395933Lbkiyb','Retrying...','1163835GiKRpL','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','Connecting...','MCP\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key','MCP:\x20Unauthorized','93438SAEWdH','3407376DhfQMd','API\x20key\x20is\x20required','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','Max\x20Retries','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Saving...','MCP\x20Client\x20Configuration','Click\x20to\x20connect\x20MCP','423712XADfMz','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','3258620vPbYNq','44347632hEzMCT','Failed\x20to\x20save\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','MCP\x20Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Network\x20Error','Configuration\x20Steps:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connected'];_0x3808=function(){return _0x5d50c8;};return _0x3808();}const _0x16f976=_0x5140;(function(_0x45de44,_0x9c4fa3){const _0x43a0c=_0x5140,_0x1c213b=_0x45de44();while(!![]){try{const _0x5b39f2=-parseInt(_0x43a0c(0xfa))/0x1+-parseInt(_0x43a0c(0xe0))/0x2+-parseInt(_0x43a0c(0x103))/0x3+-parseInt(_0x43a0c(0xe2))/0x4+-parseInt(_0x43a0c(0xf5))/0x5*(parseInt(_0x43a0c(0x102))/0x6)+-parseInt(_0x43a0c(0xf8))/0x7+parseInt(_0x43a0c(0xe3))/0x8;if(_0x5b39f2===_0x9c4fa3)break;else _0x1c213b['push'](_0x1c213b['shift']());}catch(_0x3c235a){_0x1c213b['push'](_0x1c213b['shift']());}}}(_0x3808,0xb8b04));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x16f976(0xf2),'failed':'MCP\x20Connection\x20Failed','retrying':_0x16f976(0xe8),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x16f976(0x101),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x16f976(0xef),'maxRetriesExceeded':_0x16f976(0xf4),'clickToConnect':_0x16f976(0xdf),'clickToConfigure':_0x16f976(0xe7)},'mcpConfig':{'title':_0x16f976(0xfe),'description':_0x16f976(0x107),'apiKey':_0x16f976(0x100),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x16f976(0xe9),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x16f976(0xe5),'connectionInfo':_0x16f976(0xde),'mcpClientConfig':_0x16f976(0xde),'configInstructions':_0x16f976(0x108),'configStepTitle':_0x16f976(0xf0),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x16f976(0x106),'sessionId':_0x16f976(0xfc),'sessionIdDescription':_0x16f976(0xeb),'authorizationDescription':_0x16f976(0xea),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x16f976(0x10a),'save':_0x16f976(0x109),'saving':_0x16f976(0xdd),'note1':_0x16f976(0xe1),'note2':_0x16f976(0xed),'configSaved':_0x16f976(0xf7),'configError':_0x16f976(0xe4),'apiApplyInfo':{'title':_0x16f976(0xec),'description':_0x16f976(0x10b),'univerAiLabel':_0x16f976(0xe6),'getStarted':_0x16f976(0xff)},'validation':{'apiKeyRequired':_0x16f976(0x104),'apiKeyTooShort':_0x16f976(0xfb),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x16f976(0xf3)},'connectionStatus':{'disconnected':_0x16f976(0xf6),'connecting':_0x16f976(0xfd),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x16f976(0xf9)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x16f976(0xf1),'networkError':_0x16f976(0x105),'maxRetriesExceeded':_0x16f976(0xee)}}},n=e;function _0x5140(_0x11442d,_0x85f7f1){const _0x3808ae=_0x3808();return _0x5140=function(_0x51409d,_0xd01f15){_0x51409d=_0x51409d-0xdd;let _0x412f99=_0x3808ae[_0x51409d];return _0x412f99;},_0x5140(_0x11442d,_0x85f7f1);}export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x151a(_0x12aede,_0x4da62c){const _0xea4f9=_0xea4f();return _0x151a=function(_0x151ab1,_0x2ba3ab){_0x151ab1=_0x151ab1-0xa8;let _0x5239ec=_0xea4f9[_0x151ab1];return _0x5239ec;},_0x151a(_0x12aede,_0x4da62c);}const _0x2e7cea=_0x151a;(function(_0x58fb9b,_0x345145){const _0x512d36=_0x151a,_0x1eef26=_0x58fb9b();while(!![]){try{const _0x1733c5=-parseInt(_0x512d36(0xc0))/0x1+-parseInt(_0x512d36(0xb1))/0x2+parseInt(_0x512d36(0xaa))/0x3+parseInt(_0x512d36(0xd2))/0x4*(-parseInt(_0x512d36(0xd0))/0x5)+-parseInt(_0x512d36(0xce))/0x6+parseInt(_0x512d36(0xab))/0x7*(parseInt(_0x512d36(0xc8))/0x8)+parseInt(_0x512d36(0xbb))/0x9*(parseInt(_0x512d36(0xb8))/0xa);if(_0x1733c5===_0x345145)break;else _0x1eef26['push'](_0x1eef26['shift']());}catch(_0x4778f0){_0x1eef26['push'](_0x1eef26['shift']());}}}(_0xea4f,0xb8fd0));const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x2e7cea(0xbc),'failed':'MCP\x20连接失败','retrying':_0x2e7cea(0xcd),'unknown':_0x2e7cea(0xc4),'unauthorized':_0x2e7cea(0xbf),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2e7cea(0xb0),'clickToConfigure':_0x2e7cea(0xd6)},'mcpConfig':{'title':_0x2e7cea(0xd3),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x2e7cea(0xcc),'apiKeyPlaceholder':_0x2e7cea(0xc7),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x2e7cea(0xaf),'enableAuthHint':_0x2e7cea(0xc5),'connectionInfo':_0x2e7cea(0xb4),'mcpClientConfig':_0x2e7cea(0xb4),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x2e7cea(0xd8),'configStep1':_0x2e7cea(0xd4),'configStep2':_0x2e7cea(0xcf),'configStep3':_0x2e7cea(0xb7),'sessionId':_0x2e7cea(0xca),'sessionIdDescription':_0x2e7cea(0xac),'authorizationDescription':_0x2e7cea(0xc6),'configParameters':_0x2e7cea(0xb5),'maxRetries':'最大重试次数','save':_0x2e7cea(0xbd),'saving':'保存中...','note1':_0x2e7cea(0xae),'note2':_0x2e7cea(0xb3),'configSaved':_0x2e7cea(0xad),'configError':_0x2e7cea(0xc3),'apiApplyInfo':{'title':_0x2e7cea(0xc9),'description':_0x2e7cea(0xbe),'univerAiLabel':_0x2e7cea(0xcb),'getStarted':_0x2e7cea(0xd7)},'validation':{'apiKeyRequired':_0x2e7cea(0xd5),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x2e7cea(0xb2)},'connectionStatus':{'disconnected':_0x2e7cea(0xba),'connecting':_0x2e7cea(0xa9),'connected':_0x2e7cea(0xa8),'failed':_0x2e7cea(0xb9),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x2e7cea(0xc1),'sessionOccupied':_0x2e7cea(0xb6),'networkError':_0x2e7cea(0xd1),'maxRetriesExceeded':_0x2e7cea(0xc2)}}};export{e as default};function _0xea4f(){const _0x2b0cc6=['82557QvmQJQ','MCP\x20已连接','保存配置','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP:\x20未授权','1049472offANl','权限验证失败,请检查您的\x20API\x20密钥','超出最大重试次数,请稍后再试','配置保存失败','MCP\x20状态未知','启用身份验证以获得安全连接','带有\x20Bearer\x20前缀的\x20API\x20密钥。','请输入您的\x20API\x20密钥','335432amEmqg','什么是\x20API\x20密钥?','会话ID','Univer\x20AI\x20控制台','API\x20密钥','MCP\x20重连中...','4288884ntmkks','将配置添加到您的\x20MCP\x20客户端设置文件中','20qNyylO','网络连接错误,请检查您的网络连接','1127212RbZRPG','MCP\x20配置','复制以下\x20JSON\x20配置','API\x20密钥不能为空','点击配置\x20MCP','几秒钟内获取您的\x20API\x20密钥','配置步骤:','已连接','连接中...','161607UYNjbc','196jnmlTI','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置保存成功','配置更改将立即生效','启用身份验证','点击连接\x20MCP','2330628ufXEjM','API\x20密钥无效,请检查密钥是否正确','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20客户端配置','配置参数:','会话\x20ID\x20已被占用,请稍后再试','重启您的\x20MCP\x20客户端以使配置生效','3910yAdRbK','连接失败','未连接'];_0xea4f=function(){return _0x2b0cc6;};return _0xea4f();}
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x250a09=_0x5d1f;(function(_0xd8cf23,_0x569712){const _0x11a272=_0x5d1f,_0x334bca=_0xd8cf23();while(!![]){try{const _0x810490=parseInt(_0x11a272(0x10a))/0x1+parseInt(_0x11a272(0x102))/0x2*(-parseInt(_0x11a272(0x114))/0x3)+parseInt(_0x11a272(0x109))/0x4+parseInt(_0x11a272(0xf7))/0x5+-parseInt(_0x11a272(0xf5))/0x6*(-parseInt(_0x11a272(0x104))/0x7)+parseInt(_0x11a272(0x125))/0x8*(parseInt(_0x11a272(0x11e))/0x9)+-parseInt(_0x11a272(0x11d))/0xa*(parseInt(_0x11a272(0x11a))/0xb);if(_0x810490===_0x569712)break;else _0x334bca['push'](_0x334bca['shift']());}catch(_0x4b4b80){_0x334bca['push'](_0x334bca['shift']());}}}(_0x35d3,0xecd15));function _0x35d3(){const _0x5db1fa=['API\x20Key','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Unknown\x20Status','6oYCFMP','Enable\x20Authentication','4718695kiNLdR','Configuration\x20saved\x20successfully','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','MCP\x20Connection\x20Failed','Retrying...','Invalid\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','1671354pVCBVG','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','5998811pGLWDZ','Saving...','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','4924928OfDUKM','1891006goZAeM','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','MCP\x20Disconnected','Click\x20to\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','MCP\x20Retrying...','MCP\x20Connected','6eGUfjK','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','Save\x20Configuration','66eevlsl','Configuration\x20Steps:','Max\x20Retries','6465080vRjNox','14377113sjhFSq','Connection\x20Failed','API\x20key\x20is\x20required','MCP:\x20Unauthorized','Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','8yBAxvW'];_0x35d3=function(){return _0x5db1fa;};return _0x35d3();}const e={'mcpStatus':{'disconnected':_0x250a09(0x10e),'connecting':_0x250a09(0x111),'connected':_0x250a09(0x113),'failed':_0x250a09(0xfc),'retrying':_0x250a09(0x112),'unknown':_0x250a09(0xf4),'unauthorized':_0x250a09(0x121),'sessionOccupied':_0x250a09(0x124),'networkError':_0x250a09(0x10d),'maxRetriesExceeded':_0x250a09(0x118),'clickToConnect':_0x250a09(0x117),'clickToConfigure':_0x250a09(0x10f)},'mcpConfig':{'title':_0x250a09(0xfb),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x250a09(0xf2),'apiKeyPlaceholder':_0x250a09(0x107),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x250a09(0xf6),'enableAuthHint':_0x250a09(0x101),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x250a09(0x100),'configStepTitle':_0x250a09(0x11b),'configStep1':_0x250a09(0xfa),'configStep2':_0x250a09(0x10b),'configStep3':_0x250a09(0x108),'sessionId':'Session\x20ID','sessionIdDescription':_0x250a09(0xf9),'authorizationDescription':_0x250a09(0xf3),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x250a09(0x11c),'save':_0x250a09(0x119),'saving':_0x250a09(0x105),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x250a09(0x116),'configSaved':_0x250a09(0xf8),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x250a09(0x10c),'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':_0x250a09(0x106),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x250a09(0x120),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x250a09(0xfe),'invalidApiKey':_0x250a09(0x103)},'connectionStatus':{'disconnected':_0x250a09(0x115),'connecting':'Connecting...','connected':_0x250a09(0x122),'failed':_0x250a09(0x11f),'retrying':_0x250a09(0xfd)},'connectionError':{'unauthorized':_0x250a09(0xff),'sessionOccupied':_0x250a09(0x110),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x250a09(0x123)}}},n=e;function _0x5d1f(_0x3e5a68,_0x4fd2d3){const _0x35d3b8=_0x35d3();return _0x5d1f=function(_0x5d1f46,_0xe73cc8){_0x5d1f46=_0x5d1f46-0xf2;let _0x50cba2=_0x35d3b8[_0x5d1f46];return _0x50cba2;},_0x5d1f(_0x3e5a68,_0x4fd2d3);}export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5c78e9,_0x30a760){const _0x53df62=_0x14ab,_0x195e24=_0x5c78e9();while(!![]){try{const _0xb1acbf=-parseInt(_0x53df62(0xf7))/0x1*(-parseInt(_0x53df62(0x1b5))/0x2)+-parseInt(_0x53df62(0x1dc))/0x3+-parseInt(_0x53df62(0xf8))/0x4*(parseInt(_0x53df62(0x105))/0x5)+parseInt(_0x53df62(0x98))/0x6+parseInt(_0x53df62(0x16e))/0x7*(-parseInt(_0x53df62(0xe0))/0x8)+parseInt(_0x53df62(0x1ec))/0x9*(parseInt(_0x53df62(0x198))/0xa)+parseInt(_0x53df62(0x141))/0xb;if(_0xb1acbf===_0x30a760)break;else _0x195e24['push'](_0x195e24['shift']());}catch(_0x311187){_0x195e24['push'](_0x195e24['shift']());}}}(_0x4ced,0xc55fc),function(_0x1598fb,_0x5ecfcb){const _0x4c52af=_0x14ab;typeof exports==_0x4c52af(0x1d3)&&typeof module<'u'?_0x5ecfcb(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==_0x4c52af(0x135)&&define[_0x4c52af(0x1a4)]?define(['exports',_0x4c52af(0x1d8),_0x4c52af(0x113),'@univerjs-pro/mcp',_0x4c52af(0xe7),_0x4c52af(0x213),_0x4c52af(0x156),_0x4c52af(0x182),_0x4c52af(0xff)],_0x5ecfcb):(_0x1598fb=typeof globalThis<'u'?globalThis:_0x1598fb||self,_0x5ecfcb(_0x1598fb[_0x4c52af(0x11d)]={},_0x1598fb[_0x4c52af(0x12e)],_0x1598fb[_0x4c52af(0x20b)],_0x1598fb[_0x4c52af(0xb3)],_0x1598fb[_0x4c52af(0x1e2)],_0x1598fb[_0x4c52af(0x1e3)],_0x1598fb['rxjs'],_0x1598fb[_0x4c52af(0x20b)],_0x1598fb[_0x4c52af(0xd0)]));}(this,function(_0x18b352,_0x153d59,_0x3cecb4,_0x3fb9c8,_0x452fbd,_0x177dab,_0x234074,_0xb93d6d,_0x14a504){'use strict';const _0xb04ca9=_0x14ab;var _0x48442c=Object[_0xb04ca9(0x1f5)],_0x2f1042=(_0xac4b0d,_0x587301,_0x591b73)=>_0x587301 in _0xac4b0d?_0x48442c(_0xac4b0d,_0x587301,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x591b73}):_0xac4b0d[_0x587301]=_0x591b73,_0x468be1=(_0x4cc7a2,_0x1f32d7,_0x260b8a)=>_0x2f1042(_0x4cc7a2,typeof _0x1f32d7!=_0xb04ca9(0x18e)?_0x1f32d7+'':_0x1f32d7,_0x260b8a);function _0x264319({ref:_0x48aed8,..._0x145ea7}){const _0x5f222d=_0xb04ca9,{icon:_0x3ad84b,id:_0x125db5,className:_0x4fefc5,extend:_0x1692b0,..._0x3389f2}=_0x145ea7,_0x2e91fc=('univerjs-icon\x20univerjs-icon-'+_0x125db5+'\x20'+(_0x4fefc5||''))[_0x5f222d(0xe1)](),_0x2b3599=_0xb93d6d[_0x5f222d(0x7c)]('_'+_0x2e8d83());return _0x35f31f(_0x3ad84b,''+_0x125db5,{'defIds':_0x3ad84b[_0x5f222d(0x184)],'idSuffix':_0x2b3599[_0x5f222d(0x10e)]},{'ref':_0x48aed8,'className':_0x2e91fc,..._0x3389f2},_0x1692b0);}function _0x35f31f(_0x4dd1bf,_0x3e34f8,_0x22ffd7,_0x320e9a,_0x3bf8a4){const _0x9650ec=_0xb04ca9;return _0xb93d6d[_0x9650ec(0xe3)](_0x4dd1bf[_0x9650ec(0x20e)],{'key':_0x3e34f8,..._0x3665c3(_0x4dd1bf,_0x22ffd7,_0x3bf8a4),..._0x320e9a},(_0x38dab5(_0x4dd1bf,_0x22ffd7)[_0x9650ec(0x20a)]||[])['map']((_0x438f9b,_0x4561e9)=>_0x35f31f(_0x438f9b,_0x3e34f8+'-'+_0x4dd1bf['tag']+'-'+_0x4561e9,_0x22ffd7,void 0x0,_0x3bf8a4)));}function _0x3665c3(_0x12454b,_0x1fd1a6,_0x4d59ca){const _0xa5ff22=_0xb04ca9,_0x2deee6={..._0x12454b['attrs']};_0x4d59ca!=null&&_0x4d59ca['colorChannel1']&&_0x2deee6[_0xa5ff22(0x8c)]===_0xa5ff22(0xef)&&(_0x2deee6['fill']=_0x4d59ca[_0xa5ff22(0xef)]),_0x12454b['tag']===_0xa5ff22(0x15b)&&_0x2deee6['id']&&(_0x2deee6['id']=_0x2deee6['id']+_0x1fd1a6[_0xa5ff22(0x160)]),Object[_0xa5ff22(0x8e)](_0x2deee6)[_0xa5ff22(0x159)](([_0x4d0cb8,_0x3de638])=>{const _0x308e5c=_0xa5ff22;_0x4d0cb8===_0x308e5c(0x15b)&&typeof _0x3de638==_0x308e5c(0xa3)&&(_0x2deee6[_0x4d0cb8]=_0x3de638[_0x308e5c(0x180)](/url\(#(.*)\)/,'url(#$1'+_0x1fd1a6[_0x308e5c(0x160)]+')'));});const {defIds:_0x238fcb}=_0x1fd1a6;return!_0x238fcb||_0x238fcb[_0xa5ff22(0xbd)]===0x0||(_0x12454b[_0xa5ff22(0x20e)]===_0xa5ff22(0xa2)&&_0x2deee6[_0xa5ff22(0x1c5)]&&(_0x2deee6[_0xa5ff22(0x1c5)]=_0x2deee6['xlink:href']+_0x1fd1a6[_0xa5ff22(0x160)]),Object[_0xa5ff22(0x8e)](_0x2deee6)['forEach'](([_0x5b475b,_0x342b1c])=>{const _0x5a6163=_0xa5ff22;typeof _0x342b1c==_0x5a6163(0xa3)&&(_0x2deee6[_0x5b475b]=_0x342b1c[_0x5a6163(0x180)](/url\(#(.*)\)/,_0x5a6163(0x1cd)+_0x1fd1a6[_0x5a6163(0x160)]+')'));})),_0x2deee6;}function _0x38dab5(_0x583535,_0x394f97){const _0x32fc79=_0xb04ca9;var _0x2036ef;const {defIds:_0x5e2bc2}=_0x394f97;return!_0x5e2bc2||_0x5e2bc2[_0x32fc79(0xbd)]===0x0?_0x583535:_0x583535[_0x32fc79(0x20e)]===_0x32fc79(0x1f1)&&((_0x2036ef=_0x583535[_0x32fc79(0x20a)])!=null&&_0x2036ef[_0x32fc79(0xbd)])?{..._0x583535,'children':_0x583535[_0x32fc79(0x20a)][_0x32fc79(0xb0)](_0x3f04f7=>typeof _0x3f04f7[_0x32fc79(0xf9)]['id']==_0x32fc79(0xa3)&&_0x5e2bc2&&_0x5e2bc2['includes'](_0x3f04f7[_0x32fc79(0xf9)]['id'])?{..._0x3f04f7,'attrs':{..._0x3f04f7[_0x32fc79(0xf9)],'id':_0x3f04f7[_0x32fc79(0xf9)]['id']+_0x394f97[_0x32fc79(0x160)]}}:_0x3f04f7)}:_0x583535;}function _0x2e8d83(){const _0x582180=_0xb04ca9;return Math['random']()[_0x582180(0x199)](0x24)['substring'](0x2,0x8);}_0x264319[_0xb04ca9(0x9d)]=_0xb04ca9(0x89);const _0x3426f7={'tag':_0xb04ca9(0x1fc),'attrs':{'xmlns':_0xb04ca9(0x190),'fill':_0xb04ca9(0x10f),'viewBox':'0\x200\x2016\x2016','width':_0xb04ca9(0x15d),'height':_0xb04ca9(0x15d)},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'fill':_0xb04ca9(0xe2),'d':_0xb04ca9(0x11a),'fillRule':_0xb04ca9(0x128),'clipRule':_0xb04ca9(0x128)}}]},_0x5469a1=_0xb93d6d[_0xb04ca9(0x203)](function(_0x14aa1e,_0x5bbda6){const _0x13fbbe=_0xb04ca9;return _0xb93d6d[_0x13fbbe(0xe3)](_0x264319,Object[_0x13fbbe(0x99)]({},_0x14aa1e,{'id':_0x13fbbe(0x1a6),'ref':_0x5bbda6,'icon':_0x3426f7}));});_0x5469a1[_0xb04ca9(0x9d)]=_0xb04ca9(0x13e);const _0x2a89cf={'tag':_0xb04ca9(0x1fc),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xb04ca9(0x144),'width':'1em','height':_0xb04ca9(0x15d)},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'fill':_0xb04ca9(0xe2),'d':_0xb04ca9(0x1e4)}}]},_0x5b9a92=_0xb93d6d[_0xb04ca9(0x203)](function(_0x23256d,_0x5d79ed){const _0x16b152=_0xb04ca9;return _0xb93d6d[_0x16b152(0xe3)](_0x264319,Object['assign']({},_0x23256d,{'id':_0x16b152(0xab),'ref':_0x5d79ed,'icon':_0x2a89cf}));});_0x5b9a92[_0xb04ca9(0x9d)]=_0xb04ca9(0x186);const _0x133ad0={'tag':_0xb04ca9(0x1fc),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xb04ca9(0x144),'width':'1em','height':_0xb04ca9(0x15d)},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'fill':'currentColor','d':_0xb04ca9(0x1da)}},{'tag':_0xb04ca9(0x136),'attrs':{'fill':'currentColor','d':_0xb04ca9(0x14c)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0xb04ca9(0x1fd),'fillRule':_0xb04ca9(0x128),'clipRule':_0xb04ca9(0x128)}}]},_0x2b5d16=_0xb93d6d[_0xb04ca9(0x203)](function(_0x384e54,_0x2830bb){const _0x41a1d6=_0xb04ca9;return _0xb93d6d['createElement'](_0x264319,Object[_0x41a1d6(0x99)]({},_0x384e54,{'id':'help-icon','ref':_0x2830bb,'icon':_0x133ad0}));});_0x2b5d16[_0xb04ca9(0x9d)]=_0xb04ca9(0x10c);const _0x5d26bc={'tag':_0xb04ca9(0x1fc),'attrs':{'xmlns':_0xb04ca9(0x190),'fill':_0xb04ca9(0x10f),'viewBox':_0xb04ca9(0x144),'width':_0xb04ca9(0x15d),'height':_0xb04ca9(0x15d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'stroke':_0xb04ca9(0xe2),'d':_0xb04ca9(0x1d7),'strokeLinecap':'round','strokeLinejoin':_0xb04ca9(0x191),'strokeWidth':1.2}}]},{'tag':_0xb04ca9(0x1f1),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'fill':_0xb04ca9(0x1e5),'d':_0xb04ca9(0x178)}}]}]}],'defIds':[_0xb04ca9(0xd4)]},_0x22a02b=_0xb93d6d[_0xb04ca9(0x203)](function(_0x4a24fb,_0x1586e6){const _0x370fca=_0xb04ca9;return _0xb93d6d[_0x370fca(0xe3)](_0x264319,Object[_0x370fca(0x99)]({},_0x4a24fb,{'id':_0x370fca(0x1c4),'ref':_0x1586e6,'icon':_0x5d26bc}));});_0x22a02b[_0xb04ca9(0x9d)]=_0xb04ca9(0xa8);const _0x2f2375={'tag':_0xb04ca9(0x1fc),'attrs':{'xmlns':_0xb04ca9(0x190),'fill':_0xb04ca9(0x10f),'viewBox':_0xb04ca9(0x17f),'width':_0xb04ca9(0x15d),'height':_0xb04ca9(0x15d)},'children':[{'tag':'g','attrs':{'clipPath':_0xb04ca9(0x196)},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'stroke':_0xb04ca9(0xe2),'d':_0xb04ca9(0x91),'strokeLinecap':_0xb04ca9(0x191),'strokeLinejoin':_0xb04ca9(0x191),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb04ca9(0x162)},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'fill':_0xb04ca9(0x1e5),'d':_0xb04ca9(0x178),'transform':'translate(.97)'}}]}]}],'defIds':[_0xb04ca9(0x162)]},_0x49be4a=_0xb93d6d[_0xb04ca9(0x203)](function(_0x574c74,_0x5b2b05){const _0x45a5fb=_0xb04ca9;return _0xb93d6d[_0x45a5fb(0xe3)](_0x264319,Object[_0x45a5fb(0x99)]({},_0x574c74,{'id':'on-line-icon','ref':_0x5b2b05,'icon':_0x2f2375}));});_0x49be4a[_0xb04ca9(0x9d)]='OnLineIcon';function _0x3ad8ae(_0x5f1101){const _0x1442b6=_0xb04ca9;var _0x83d536,_0x50dbc1;const {mcpCoreConfig:_0x38cf48,onSave:_0x1ac1b3,loading:_0x31f938=!0x1,config:_0x301624,connectionStatus$:_0x16e537,connectionError$:_0x9b725d,currentApiKey$:_0x1bd754,currentSessionId$:_0x3a1836}=_0x5f1101,_0x426036=_0x177dab['useDependency'](_0x153d59[_0x1442b6(0x1d1)]),_0x2d2d77=_0x177dab['useObservable'](_0x16e537,_0x3fb9c8[_0x1442b6(0x1ac)][_0x1442b6(0x1bc)]),_0x117993=_0x177dab['useObservable'](_0x9b725d,_0x3fb9c8[_0x1442b6(0xee)]['NONE']),_0x941900=_0x177dab[_0x1442b6(0xae)](_0x3a1836,''),_0x3c3461=_0x177dab['useObservable'](_0x1bd754,''),[_0x551e17,_0x1be0c9]=_0xb93d6d[_0x1442b6(0xa5)](_0x3c3461||''),_0x35b880=!0x0,_0x25dee9=_0x301624[_0x1442b6(0x185)]&&_0x38cf48[_0x1442b6(0x17d)]&&(_0x38cf48[_0x1442b6(0x17d)][_0x1442b6(0x1a9)](_0x1442b6(0x142))||_0x38cf48['mcpServerUrl'][_0x1442b6(0x1a9)](_0x1442b6(0x92))),_0x4c4187=(_0x83d536=_0x38cf48[_0x1442b6(0x17d)])==null?void 0x0:_0x83d536[_0x1442b6(0x1a9)](_0x1442b6(0x142)),_0x193af3=(_0x50dbc1=_0x38cf48[_0x1442b6(0x17d)])==null?void 0x0:_0x50dbc1[_0x1442b6(0x1a9)](_0x1442b6(0x92)),_0x592407=_0x4c4187?_0x1442b6(0x14b):_0x1442b6(0x215),_0x4ef111=_0x301624[_0x1442b6(0x185)]&&(_0x4c4187||_0x193af3),[_0x27b344,_0x4210d1]=_0xb93d6d[_0x1442b6(0xa5)](!_0x551e17[_0x1442b6(0xe1)]()),_0x58ad04=(_0x406b82,_0x349bdd)=>{const _0x469b33=_0x1442b6;if(_0x349bdd===_0x3fb9c8['MCPConnectionError']['UNAUTHORIZED'])return _0x469b33(0xe6);switch(_0x406b82){case _0x3fb9c8['MCPConnectionStatus']['CONNECTED']:return _0x469b33(0x1c7);case _0x3fb9c8[_0x469b33(0x1ac)][_0x469b33(0x116)]:case _0x3fb9c8[_0x469b33(0x1ac)][_0x469b33(0x131)]:return _0x469b33(0xca);case _0x3fb9c8['MCPConnectionStatus'][_0x469b33(0x210)]:return _0x469b33(0xe6);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1b4f66=(_0x4bfbda,_0x453e0d)=>{const _0x4c81ef=_0x1442b6;if(_0x453e0d===_0x3fb9c8[_0x4c81ef(0xee)][_0x4c81ef(0x14f)])return _0x4c81ef(0x188);switch(_0x4bfbda){case _0x3fb9c8['MCPConnectionStatus'][_0x4c81ef(0x1f8)]:return _0x4c81ef(0x10d);case _0x3fb9c8[_0x4c81ef(0x1ac)]['CONNECTING']:case _0x3fb9c8[_0x4c81ef(0x1ac)][_0x4c81ef(0x131)]:return _0x4c81ef(0x8a);case _0x3fb9c8[_0x4c81ef(0x1ac)][_0x4c81ef(0x210)]:return _0x4c81ef(0x188);default:return _0x4c81ef(0x108);}},_0x332cd6=_0x4ec9dc=>{const _0x5846c5=_0x1442b6;switch(_0x4ec9dc){case _0x3fb9c8['MCPConnectionStatus']['CONNECTED']:return _0x426036['t']('mcpConfig.connectionStatus.connected');case _0x3fb9c8[_0x5846c5(0x1ac)]['CONNECTING']:return _0x426036['t'](_0x5846c5(0x212));case _0x3fb9c8[_0x5846c5(0x1ac)]['FAILED']:return _0x426036['t'](_0x5846c5(0x1bb));case _0x3fb9c8['MCPConnectionStatus']['RETRYING']:return _0x426036['t'](_0x5846c5(0x17e));default:return _0x426036['t'](_0x5846c5(0x7f));}},_0x2f2f7b=_0x9857bc=>{const _0x49bb63=_0x1442b6;switch(_0x9857bc){case _0x3fb9c8['MCPConnectionError']['UNAUTHORIZED']:return _0x426036['t']('mcpConfig.connectionError.unauthorized');case _0x3fb9c8[_0x49bb63(0xee)][_0x49bb63(0xa0)]:return _0x426036['t'](_0x49bb63(0x18c));case _0x3fb9c8[_0x49bb63(0xee)][_0x49bb63(0xfd)]:return _0x426036['t'](_0x49bb63(0x7e));case _0x3fb9c8[_0x49bb63(0xee)][_0x49bb63(0x20f)]:return _0x426036['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4174e0=_0xb93d6d[_0x1442b6(0x115)](()=>{const _0x2aa930=_0x1442b6,_0x509730={..._0x38cf48,'apiKey':_0x551e17[_0x2aa930(0xe1)](),'enableAuth':_0x35b880};_0x1ac1b3(_0x509730);},[_0x38cf48,_0x551e17,_0x35b880,_0x1ac1b3]),_0x4c0fd3=_0x551e17['trim']()[_0x1442b6(0xbd)]>0x0;return _0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0xce),'children':[_0x3cecb4[_0x1442b6(0xd6)]('div',{'className':_0x1442b6(0x179),'children':_0x3cecb4[_0x1442b6(0x1b0)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x3cecb4['jsx'](_0x1442b6(0x15e),{'className':_0x1442b6(0x167),'children':_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':'univer-text-white','children':'⚙'})}),_0x3cecb4['jsx']('div',{'children':_0x3cecb4['jsx']('p',{'className':_0x1442b6(0xfa),'children':_0x426036['t'](_0x1442b6(0xb4))})})]})}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x452fbd[_0x1442b6(0xcf)](_0x1442b6(0xf1),_0x58ad04(_0x2d2d77,_0x117993)),'children':_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x137),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x452fbd[_0x1442b6(0xcf)]('univer-size-2\x20univer-rounded-full',_0x1b4f66(_0x2d2d77,_0x117993))}),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':'univer-text-sm\x20univer-font-medium','children':_0x332cd6(_0x2d2d77)})]})}),_0x117993!==_0x3fb9c8['MCPConnectionError']['NONE']&&(_0x2d2d77===_0x3fb9c8['MCPConnectionStatus'][_0x1442b6(0x210)]||_0x117993===_0x3fb9c8[_0x1442b6(0xee)]['UNAUTHORIZED'])&&_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x3cecb4['jsxs']('div',{'className':_0x1442b6(0xaa),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':_0x1442b6(0xa6),'children':'⚠️'}),_0x3cecb4[_0x1442b6(0xd6)]('p',{'className':_0x1442b6(0x211),'children':_0x2f2f7b(_0x117993)})]})})]}),_0x3cecb4[_0x1442b6(0xd6)]('div',{'className':_0x1442b6(0x97),'children':_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0x1f7),'children':[_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0x209),'children':[_0x3cecb4['jsxs'](_0x1442b6(0xac),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'children':'🔑'}),'\x20',_0x426036['t'](_0x1442b6(0x17b)),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':_0x1442b6(0x7a),'children':'*'}),_0x25dee9&&_0x3cecb4[_0x1442b6(0xd6)]('a',{'className':_0x1442b6(0xf2),'title':_0x426036['t']('mcpConfig.apiApplyInfo.title'),'role':_0x1442b6(0x107),'onClick':()=>_0x4210d1(!0x0),'children':_0x3cecb4[_0x1442b6(0xd6)](_0x2b5d16,{})})]}),_0x3cecb4[_0x1442b6(0xd6)](_0x452fbd[_0x1442b6(0x104)],{'type':'text','placeholder':_0x426036['t'](_0x1442b6(0x14e)),'value':_0x551e17,'disabled':_0x31f938,'autoComplete':'off','onChange':_0x1be0c9}),_0x3cecb4[_0x1442b6(0xd6)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x426036['t'](_0x1442b6(0x130))})]}),_0x25dee9&&_0x27b344&&_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0x19d),'children':[_0x3cecb4[_0x1442b6(0xd6)]('a',{'className':_0x1442b6(0xa9),'role':_0x1442b6(0x107),'onClick':()=>_0x4210d1(!0x1),'children':_0x3cecb4['jsx'](_0x5b9a92,{'className':'univer-size-4'})}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1d4),'children':[_0x3cecb4[_0x1442b6(0xd6)]('div',{'className':_0x1442b6(0x12b),'children':_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':_0x1442b6(0x1ab),'children':'🚀'})}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':'univer-flex-1','children':[_0x3cecb4[_0x1442b6(0xd6)]('h4',{'className':_0x1442b6(0x121),'children':_0x426036['t'](_0x1442b6(0xb9))}),_0x3cecb4[_0x1442b6(0xd6)]('p',{'className':_0x1442b6(0x100),'children':_0x426036['t'](_0x1442b6(0x140))}),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1a1),'children':_0x4ef111&&_0x3cecb4[_0x1442b6(0x1b0)]('a',{'className':_0x1442b6(0x12d),'href':_0x592407,'target':_0x1442b6(0x1ed),'rel':_0x1442b6(0x18a),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'children':'🤖'}),_0x426036['t'](_0x1442b6(0x109)),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':_0x1442b6(0xd1),'children':'↗'})]})}),_0x3cecb4[_0x1442b6(0x1b0)]('div',{'className':_0x1442b6(0x1b3),'children':['✨','\x20',_0x426036['t'](_0x1442b6(0x1d9))]})]})]})]}),_0x301624[_0x1442b6(0x185)]&&_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x3cecb4[_0x1442b6(0x1b0)]('h4',{'className':_0x1442b6(0x133),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'children':'🔗'}),'\x20',_0x426036['t'](_0x1442b6(0x17c))]}),_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0x200),'children':[_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0x192),'children':[_0x3cecb4[_0x1442b6(0xd6)]('p',{'className':_0x1442b6(0x18b),'children':_0x426036['t'](_0x1442b6(0x10a))}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x209),'children':[_0x3cecb4['jsx'](_0x1442b6(0x15e),{'className':_0x1442b6(0x125),'children':_0x426036['t'](_0x1442b6(0x101))}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1df),'children':[_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x137),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':_0x1442b6(0x117),'children':'1'}),_0x426036['t'](_0x1442b6(0xf6))]}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x137),'children':[_0x3cecb4['jsx'](_0x1442b6(0x1cb),{'className':_0x1442b6(0x117),'children':'2'}),_0x426036['t']('mcpConfig.configStep2')]}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x137),'children':[_0x3cecb4[_0x1442b6(0xd6)]('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x426036['t']('mcpConfig.configStep3')]})]})]})]}),_0x3cecb4[_0x1442b6(0x1b0)]('div',{'className':'univer-space-y-2','children':[_0x3cecb4['jsx'](_0x1442b6(0x15e),{'className':_0x1442b6(0x125),'children':_0x1442b6(0x13a)}),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1a3),'children':_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x9b),{'className':_0x1442b6(0xbf),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x1442b6(0xf0)+(_0x941900||'<SESSION_ID>'),'type':_0x1442b6(0x1e0),'headers':{'Authorization':_0x1442b6(0xd3)+(_0x551e17||_0x1442b6(0x146))}}}},null,0x2)})})]}),_0x3cecb4['jsxs']('div',{'className':_0x1442b6(0x192),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x1442b6(0x125),'children':_0x426036['t'](_0x1442b6(0x81))}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':'univer-space-y-2','children':[_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1de),'children':[_0x3cecb4[_0x1442b6(0xd6)]('div',{'className':_0x1442b6(0x151)}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x112),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x1442b6(0xaf)}),_0x3cecb4['jsx'](_0x1442b6(0x15e),{'className':_0x1442b6(0x174),'children':_0x426036['t'](_0x1442b6(0xc6))})]})]}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1de),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x1442b6(0x151)}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x112),'children':[_0x3cecb4['jsx'](_0x1442b6(0x15e),{'className':_0x1442b6(0xbb),'children':_0x1442b6(0xc3)}),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x1442b6(0x174),'children':_0x426036['t'](_0x1442b6(0x1fa))})]})]})]})]})]})]}),_0x3cecb4[_0x1442b6(0xd6)](_0x452fbd[_0x1442b6(0xf5)],{'onClick':_0x4174e0,'disabled':!_0x4c0fd3||_0x31f938,'className':_0x1442b6(0x1a7),'children':_0x31f938?_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x1cb),{'className':_0x1442b6(0x137),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'children':'⟲'}),_0x426036['t'](_0x1442b6(0x114))]}):_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x1cb),{'className':_0x1442b6(0x137),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x5469a1,{}),_0x426036['t'](_0x1442b6(0x16b))]})}),_0x3cecb4[_0x1442b6(0xd6)]('div',{'className':_0x1442b6(0x7d),'children':_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x79),'children':[_0x3cecb4[_0x1442b6(0xd6)]('span',{'className':_0x1442b6(0x177),'children':'💡'}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x145),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':'univer-font-medium','children':_0x1442b6(0x165)}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'children':['•',_0x426036['t'](_0x1442b6(0xcd))]}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'children':['•',_0x426036['t']('mcpConfig.note2')]})]})]})})]})})]});}const _0x39ea97=_0xb04ca9(0x1c3),_0x7aaaf2={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x1c0395=Object[_0xb04ca9(0x1fe)],_0x145931=(_0xbc0f31,_0x111db2,_0x1a2c54,_0x17d39e)=>{const _0x5cc7d9=_0xb04ca9;for(var _0x48810f=_0x17d39e>0x1?void 0x0:_0x17d39e?_0x1c0395(_0x111db2,_0x1a2c54):_0x111db2,_0x3a92a8=_0xbc0f31[_0x5cc7d9(0xbd)]-0x1,_0x51bd02;_0x3a92a8>=0x0;_0x3a92a8--)(_0x51bd02=_0xbc0f31[_0x3a92a8])&&(_0x48810f=_0x51bd02(_0x48810f)||_0x48810f);return _0x48810f;},_0x1a018f=(_0x1af37a,_0x33988f)=>(_0x4e4f46,_0x5bb061)=>_0x33988f(_0x4e4f46,_0x5bb061,_0x1af37a);const _0x2e9bec=_0xb04ca9(0xe4),_0x4000dd=_0xb04ca9(0x1c9);_0x18b352['MCPConfigUIController']=class extends _0x153d59[_0xb04ca9(0x166)]{constructor(_0x545ca2,_0x568c92,_0x2f3cb4,_0x31155d,_0x55d5a2,_0x56433a,_0x13c4b3,_0x2780eb,_0x4448e5,_0x4e5349){const _0xb2b2c2=_0xb04ca9;super(),_0x468be1(this,_0xb2b2c2(0x19f),new _0x234074[(_0xb2b2c2(0x124))](!0x1)),_0x468be1(this,_0xb2b2c2(0xeb),new _0x234074[(_0xb2b2c2(0x124))]({})),_0x468be1(this,'_config$',new _0x234074['BehaviorSubject']({})),_0x468be1(this,'_apiKey$',new _0x234074[(_0xb2b2c2(0x124))]('')),_0x468be1(this,_0xb2b2c2(0x1c0),async _0x2ef806=>{const _0x5a8fd0=_0xb2b2c2;var _0x2c9693,_0x654b8a;this['_loading$']['next'](!0x0);try{const _0x4af031=await this[_0x5a8fd0(0xbe)](_0x2ef806);if(!_0x4af031[_0x5a8fd0(0x197)]){this[_0x5a8fd0(0x95)][_0x5a8fd0(0x164)]({'type':_0x452fbd[_0x5a8fd0(0x123)][_0x5a8fd0(0x163)],'content':_0x4af031['errorMessage']||this[_0x5a8fd0(0x195)]['t'](_0x5a8fd0(0x18f))});return;}_0x2ef806[_0x5a8fd0(0x1d2)]?await this[_0x5a8fd0(0x1cf)][_0x5a8fd0(0x193)](_0x2e9bec,_0x2ef806[_0x5a8fd0(0x1d2)][_0x5a8fd0(0xe1)]()):await this[_0x5a8fd0(0x1cf)][_0x5a8fd0(0x82)](_0x2e9bec),this['_apiKey$'][_0x5a8fd0(0x11e)](((_0x2c9693=_0x2ef806[_0x5a8fd0(0x1d2)])==null?void 0x0:_0x2c9693[_0x5a8fd0(0xe1)]())||''),this['_mcpConnectionController'][_0x5a8fd0(0x208)]({'Authorization':'Bearer\x20'+((_0x654b8a=_0x2ef806[_0x5a8fd0(0x1d2)])==null?void 0x0:_0x654b8a['trim']())}),this[_0x5a8fd0(0x95)]['show']({'type':_0x452fbd[_0x5a8fd0(0x123)][_0x5a8fd0(0x93)],'content':this[_0x5a8fd0(0x195)]['t'](_0x5a8fd0(0x176))}),setTimeout(()=>{const _0x30f94c=_0x5a8fd0;this[_0x30f94c(0x15f)][_0x30f94c(0x13b)](_0x4000dd);},0x320);}catch(_0x40012a){this['_logService'][_0x5a8fd0(0xe8)](_0x5a8fd0(0x1e6),_0x40012a),this[_0x5a8fd0(0x95)][_0x5a8fd0(0x164)]({'type':_0x452fbd[_0x5a8fd0(0x123)][_0x5a8fd0(0x163)],'content':this[_0x5a8fd0(0x195)]['t'](_0x5a8fd0(0xb6))});}finally{this[_0x5a8fd0(0x19f)]['next'](!0x1);}}),(this[_0xb2b2c2(0x1c8)]=_0x545ca2,this['_uiPartsService']=_0x568c92,this[_0xb2b2c2(0xea)]=_0x2f3cb4,this['_localStorageService']=_0x31155d,this[_0xb2b2c2(0x15f)]=_0x55d5a2,this[_0xb2b2c2(0x95)]=_0x56433a,this[_0xb2b2c2(0xec)]=_0x13c4b3,this[_0xb2b2c2(0x195)]=_0x2780eb,this[_0xb2b2c2(0x148)]=_0x4448e5,this[_0xb2b2c2(0xfb)]=_0x4e5349,this[_0xb2b2c2(0x84)](),this[_0xb2b2c2(0x20d)](),this[_0xb2b2c2(0x206)]());}[_0xb04ca9(0x161)](){const _0x8d898f=_0xb04ca9,_0x502940=this[_0x8d898f(0xea)][_0x8d898f(0x103)](_0x39ea97);_0x502940!=null&&_0x502940[_0x8d898f(0x185)]&&this[_0x8d898f(0x15f)][_0x8d898f(0x80)]({'id':_0x4000dd,'title':{'title':this[_0x8d898f(0x195)]['t'](_0x8d898f(0x9c))},'children':{'label':_0x8d898f(0x132)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4aefd0=_0x8d898f;this[_0x4aefd0(0x15f)][_0x4aefd0(0x13b)](_0x4000dd);}});}[_0xb04ca9(0xd8)](){const _0x16b18d=_0xb04ca9;return this['_mcpCoreConfig$'][_0x16b18d(0x153)];}['_registerComponent'](){const _0x297e97=_0xb04ca9;this['disposeWithMe'](this[_0x297e97(0xec)][_0x297e97(0x111)](_0x297e97(0x132),this['_createConfigPanelComponent']()));}[_0xb04ca9(0x19e)](){const _0xf5e9e8=_0xb04ca9;return _0x177dab[_0xf5e9e8(0x9f)](()=>{const _0x34ae1a=_0xf5e9e8;var _0x20dd3f,_0x555784,_0x9c56a2;return _0x3cecb4[_0x34ae1a(0xd6)](_0x3ad8ae,{'config':this[_0x34ae1a(0x15c)][_0x34ae1a(0x153)],'mcpCoreConfig':this[_0x34ae1a(0xeb)][_0x34ae1a(0x153)],'currentApiKey$':this[_0x34ae1a(0x168)],'onSave':this[_0x34ae1a(0x1c0)],'loading':this[_0x34ae1a(0x19f)][_0x34ae1a(0x153)],'connectionStatus$':(_0x20dd3f=this['_mcpConnectionController'])==null?void 0x0:_0x20dd3f[_0x34ae1a(0xe5)],'connectionError$':(_0x555784=this[_0x34ae1a(0xfb)])==null?void 0x0:_0x555784['connectionError$'],'currentSessionId$':(_0x9c56a2=this[_0x34ae1a(0xfb)])==null?void 0x0:_0x9c56a2['sessionId$']});},this[_0xf5e9e8(0x1c8)]);}[_0xb04ca9(0x84)](){const _0x8ae327=_0xb04ca9;this[_0x8ae327(0x134)](this[_0x8ae327(0xea)][_0x8ae327(0x1e8)](_0x3fb9c8[_0x8ae327(0x90)])[_0x8ae327(0x155)](_0x4f34c4=>{const _0x1d3ea7=_0x8ae327;this[_0x1d3ea7(0xeb)]['next'](_0x4f34c4||{});}));const _0x7f39ba=this[_0x8ae327(0xea)][_0x8ae327(0x103)](_0x3fb9c8['MCP_PLUGIN_CONFIG_KEY']);this[_0x8ae327(0xeb)]['next'](_0x7f39ba||{}),this[_0x8ae327(0x134)](this[_0x8ae327(0xea)][_0x8ae327(0x1e8)](_0x39ea97)[_0x8ae327(0x155)](_0x47bb3b=>{const _0x9de3d8=_0x8ae327;this[_0x9de3d8(0x15c)][_0x9de3d8(0x11e)](_0x47bb3b||{});}));const _0x59e6ca=this['_configService']['getConfig'](_0x39ea97);this[_0x8ae327(0x15c)][_0x8ae327(0x11e)](_0x59e6ca||{});}async[_0xb04ca9(0x20d)](){const _0x545e51=_0xb04ca9,_0x400599=this[_0x545e51(0xea)][_0x545e51(0x103)](_0x39ea97);if(!(_0x400599!=null&&_0x400599['showDeveloperTools']))return;const _0x2e0b5e=await this['_localStorageService'][_0x545e51(0x187)](_0x2e9bec);_0x2e0b5e&&(this[_0x545e51(0xfb)][_0x545e51(0x208)]({'Authorization':_0x545e51(0xd3)+_0x2e0b5e}),this[_0x545e51(0x168)]['next'](_0x2e0b5e));}async['_validateConfig'](_0x17decd){const _0x32b0f8=_0xb04ca9;if(!_0x17decd[_0x32b0f8(0x1d2)]||_0x17decd[_0x32b0f8(0x1d2)][_0x32b0f8(0xe1)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x32b0f8(0x17a))};if(_0x17decd['apiKey'][_0x32b0f8(0xe1)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x32b0f8(0x195)]['t'](_0x32b0f8(0xfc))};try{const _0x1f3b2e=await this[_0x32b0f8(0x1c8)][_0x32b0f8(0x139)](_0x3fb9c8[_0x32b0f8(0x19b)])[_0x32b0f8(0xda)](_0x17decd[_0x32b0f8(0x1d2)][_0x32b0f8(0xe1)]());return _0x1f3b2e[_0x32b0f8(0x197)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1f3b2e[_0x32b0f8(0xe8)]||this[_0x32b0f8(0x195)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0xdfcdca){return console[_0x32b0f8(0xed)](_0x32b0f8(0x86),_0xdfcdca),{'isValid':!0x0};}}},_0x18b352['MCPConfigUIController']=_0x145931([_0x1a018f(0x0,_0x153d59[_0xb04ca9(0x87)](_0x153d59['Injector'])),_0x1a018f(0x1,_0x177dab[_0xb04ca9(0x1af)]),_0x1a018f(0x2,_0x153d59[_0xb04ca9(0x11c)]),_0x1a018f(0x3,_0x153d59[_0xb04ca9(0xf4)]),_0x1a018f(0x4,_0x177dab['IDialogService']),_0x1a018f(0x5,_0x177dab[_0xb04ca9(0x1aa)]),_0x1a018f(0x6,_0x153d59[_0xb04ca9(0x87)](_0x177dab[_0xb04ca9(0xcb)])),_0x1a018f(0x7,_0x153d59['Inject'](_0x153d59['LocaleService'])),_0x1a018f(0x8,_0x153d59[_0xb04ca9(0x149)]),_0x1a018f(0x9,_0x153d59[_0xb04ca9(0x87)](_0x3fb9c8[_0xb04ca9(0x19b)]))],_0x18b352[_0xb04ca9(0x202)]);const _0x72e20={'id':_0xb04ca9(0x19a),'type':_0x153d59[_0xb04ca9(0x96)][_0xb04ca9(0x20c)],'handler':async(_0x14c292,_0x11796d)=>(_0x14c292['get'](_0x18b352[_0xb04ca9(0x202)])[_0xb04ca9(0x161)](),!0x0)};function _0x24b1ad(_0x26beae,_0xbd2647){const _0x17fc1e=_0xb04ca9;switch(_0x26beae){case _0x3fb9c8[_0x17fc1e(0x1ac)][_0x17fc1e(0x1bc)]:return _0x17fc1e(0xa4);case _0x3fb9c8[_0x17fc1e(0x1ac)][_0x17fc1e(0x116)]:return _0x17fc1e(0x183);case _0x3fb9c8[_0x17fc1e(0x1ac)]['CONNECTED']:return _0x17fc1e(0x170);case _0x3fb9c8[_0x17fc1e(0x1ac)][_0x17fc1e(0x210)]:switch(_0xbd2647){case _0x3fb9c8[_0x17fc1e(0xee)]['UNAUTHORIZED']:return _0x17fc1e(0x169);case _0x3fb9c8[_0x17fc1e(0xee)][_0x17fc1e(0xa0)]:return'mcpStatus.sessionOccupied';case _0x3fb9c8[_0x17fc1e(0xee)][_0x17fc1e(0xfd)]:return _0x17fc1e(0x1ca);case _0x3fb9c8[_0x17fc1e(0xee)][_0x17fc1e(0x20f)]:return _0x17fc1e(0x8b);default:return _0x17fc1e(0x1b7);}case _0x3fb9c8[_0x17fc1e(0x1ac)]['RETRYING']:return _0x17fc1e(0x1a2);default:return _0x17fc1e(0x1db);}}function _0x1b3726(_0x32bc6d,_0x1d89d4,_0x4a37cb,_0x282307=!0x0){const _0x872377=_0xb04ca9,_0x1a3417=_0x24b1ad(_0x32bc6d,_0x1d89d4),_0x16115b=_0x4a37cb['t'](_0x1a3417);return _0x282307?_0x32bc6d===_0x3fb9c8[_0x872377(0x1ac)][_0x872377(0x1bc)]&&_0x1d89d4===_0x3fb9c8['MCPConnectionError'][_0x872377(0x14f)]?_0x16115b+_0x872377(0xb1)+_0x4a37cb['t'](_0x872377(0x13d)):_0x32bc6d===_0x3fb9c8[_0x872377(0x1ac)][_0x872377(0x1f8)]?''+_0x16115b:_0x32bc6d===_0x3fb9c8[_0x872377(0x1ac)][_0x872377(0x1bc)]||_0x32bc6d===_0x3fb9c8['MCPConnectionStatus'][_0x872377(0x210)]?_0x16115b+_0x872377(0xb1)+_0x4a37cb['t'](_0x872377(0xc2)):_0x16115b:_0x16115b;}function _0x722faa(_0x2ea58f){const _0x1ed9de=_0xb04ca9;switch(_0x2ea58f){case _0x3fb9c8['MCPConnectionStatus'][_0x1ed9de(0x1f8)]:return _0x1ed9de(0xc7);case _0x3fb9c8['MCPConnectionStatus']['CONNECTING']:case _0x3fb9c8[_0x1ed9de(0x1ac)]['RETRYING']:return _0x1ed9de(0x120);case _0x3fb9c8[_0x1ed9de(0x1ac)][_0x1ed9de(0x210)]:case _0x3fb9c8[_0x1ed9de(0x1ac)][_0x1ed9de(0x1bc)]:return _0x1ed9de(0x7a);default:return _0x1ed9de(0x11f);}}function _0x19943b(_0x3dab16){const _0xa63914=_0xb04ca9,{status$:_0x166173,error$:_0x48fdd6,onConfigure:_0x4bd6d9,showClickable:_0x1b8f7e=!0x0}=_0x3dab16,_0x1b96cd=_0x177dab[_0xa63914(0xae)](_0x166173,_0x3fb9c8[_0xa63914(0x1ac)][_0xa63914(0x1bc)]),_0x3fbf0c=_0x177dab[_0xa63914(0xae)](_0x48fdd6,_0x3fb9c8['MCPConnectionError'][_0xa63914(0x11b)]),_0x11bbae=_0x177dab['useDependency'](_0x153d59[_0xa63914(0x1d1)]),_0x11599b=_0x1b96cd===_0x3fb9c8['MCPConnectionStatus'][_0xa63914(0x1f8)];_0x1b96cd===_0x3fb9c8[_0xa63914(0x1ac)][_0xa63914(0x116)]||_0x3fb9c8[_0xa63914(0x1ac)][_0xa63914(0x131)];const _0x53d93f=_0x11bbae['t'](_0x24b1ad(_0x1b96cd,_0x3fbf0c)),_0x5620d7=_0x1b3726(_0x1b96cd,_0x3fbf0c,_0x11bbae,_0x1b8f7e),_0x51e05a=_0x722faa(_0x1b96cd),_0x2f08d1=_0x11599b?_0x3cecb4[_0xa63914(0xd6)](_0x49be4a,{}):_0x3cecb4[_0xa63914(0xd6)](_0x22a02b,{}),_0x3dbb22=_0xb93d6d[_0xa63914(0x115)](()=>{_0x1b8f7e&&_0x4bd6d9&&_0x4bd6d9();},[_0x1b8f7e,_0x4bd6d9]);function _0x84d203(){const _0x29cd3f=_0xa63914;return _0x3cecb4[_0x29cd3f(0x1b0)](_0x29cd3f(0x15e),{'className':_0x452fbd['clsx'](_0x29cd3f(0xbc),_0x1b8f7e&&_0x4bd6d9&&_0x29cd3f(0x83)),'role':_0x29cd3f(0x107),'onClick':_0x1b8f7e&&_0x4bd6d9?_0x3dbb22:void 0x0,'children':[_0x3cecb4[_0x29cd3f(0xd6)](_0x29cd3f(0x15e),{'className':_0x452fbd[_0x29cd3f(0xcf)](_0x29cd3f(0xdf),_0x51e05a),'children':_0x2f08d1}),_0x3cecb4['jsx'](_0x29cd3f(0x15e),{'className':_0x29cd3f(0x1a8),'children':_0x53d93f})]});}return _0x3cecb4[_0xa63914(0xd6)](_0x452fbd[_0xa63914(0x13c)],{'title':_0x5620d7,'placement':_0xa63914(0x1be),'children':_0x84d203()});}var _0x5a107d=Object[_0xb04ca9(0x1fe)],_0x382508=(_0x21b140,_0x381429,_0x442854,_0x17a6bd)=>{const _0x2bd7a1=_0xb04ca9;for(var _0x3fab53=_0x17a6bd>0x1?void 0x0:_0x17a6bd?_0x5a107d(_0x381429,_0x442854):_0x381429,_0xe9aa6d=_0x21b140[_0x2bd7a1(0xbd)]-0x1,_0x5c9d75;_0xe9aa6d>=0x0;_0xe9aa6d--)(_0x5c9d75=_0x21b140[_0xe9aa6d])&&(_0x3fab53=_0x5c9d75(_0x3fab53)||_0x3fab53);return _0x3fab53;},_0x273f50=(_0x16b29b,_0x19807f)=>(_0x4c4241,_0x5b006b)=>_0x19807f(_0x4c4241,_0x5b006b,_0x16b29b);_0x18b352[_0xb04ca9(0x119)]=class extends _0x153d59[_0xb04ca9(0x166)]{constructor(_0x15c4e2,_0x4ad596,_0x4ffc03,_0x2ca915){const _0x56f0a5=_0xb04ca9;super(),this[_0x56f0a5(0x1c8)]=_0x15c4e2,this[_0x56f0a5(0x1f4)]=_0x4ad596,this[_0x56f0a5(0x16f)]=_0x4ffc03,this[_0x56f0a5(0xea)]=_0x2ca915,this[_0x56f0a5(0xdc)](),this[_0x56f0a5(0x1c6)]();}[_0xb04ca9(0xdc)](){const _0x372e4c=_0xb04ca9,_0x3bc2b3=this[_0x372e4c(0xea)][_0x372e4c(0x103)](_0x39ea97);_0x3bc2b3!=null&&_0x3bc2b3[_0x372e4c(0x185)]&&(this[_0x372e4c(0x1f4)][_0x372e4c(0xc8)]=!0x1);}['_initStatusComponent'](){const _0x19c61b=_0xb04ca9,_0x32a3f3=this[_0x19c61b(0xea)]['getConfig'](_0x39ea97);(_0x32a3f3==null?void 0x0:_0x32a3f3[_0x19c61b(0x1ba)])!==!0x1&&this[_0x19c61b(0x134)](this[_0x19c61b(0x16f)]['registerComponent'](_0x177dab[_0x19c61b(0x1b1)][_0x19c61b(0x1b2)],()=>{const _0x11a811=_0x19c61b;var _0x4b0b51;return _0x177dab['connectInjector'](_0x55c237({'status$':this[_0x11a811(0x1f4)]['connectionStatus$'],'error$':this[_0x11a811(0x1f4)]['connectionError$'],'onConfigure':()=>this[_0x11a811(0x102)](),'showClickable':(_0x4b0b51=_0x32a3f3==null?void 0x0:_0x32a3f3[_0x11a811(0x185)])!=null?_0x4b0b51:!0x1}),this[_0x11a811(0x1c8)]);}));}[_0xb04ca9(0x102)](){const _0x516f1e=_0xb04ca9;this[_0x516f1e(0x1c8)][_0x516f1e(0x139)](_0x18b352[_0x516f1e(0x202)])[_0x516f1e(0x161)]();}},_0x18b352['MCPConnectionUIController']=_0x382508([_0x273f50(0x0,_0x153d59[_0xb04ca9(0x87)](_0x153d59['Injector'])),_0x273f50(0x1,_0x153d59[_0xb04ca9(0x87)](_0x3fb9c8[_0xb04ca9(0x19b)])),_0x273f50(0x2,_0x177dab[_0xb04ca9(0x1af)]),_0x273f50(0x3,_0x153d59[_0xb04ca9(0x11c)])],_0x18b352[_0xb04ca9(0x119)]);function _0x55c237(_0x4f56da){const {status$:_0x2cfb0e,error$:_0x5980bf,onConfigure:_0x501046,showClickable:_0x295280}=_0x4f56da;return function(){return _0x3cecb4['jsx'](_0x19943b,{'status$':_0x2cfb0e,'error$':_0x5980bf,'onConfigure':_0x501046,'showClickable':_0x295280});};}function _0x22bc6e(_0x2f5d74){const _0x2c6691=_0xb04ca9;return{'id':_0x72e20['id'],'type':_0x177dab['MenuItemType'][_0x2c6691(0x1f2)],'icon':_0x2c6691(0x18d),'title':_0x2c6691(0x9c),'tooltip':_0x2c6691(0x9c)};}const _0x54f96a={[_0x177dab[_0xb04ca9(0xf3)][_0xb04ca9(0x94)]]:{[_0x72e20['id']]:{'order':0xa,'menuItemFactory':_0x22bc6e}}};var _0xca2b16=Object[_0xb04ca9(0x1fe)],_0xab14ff=(_0x3c660c,_0x17851f,_0x8bdc79,_0x4be257)=>{const _0x10af84=_0xb04ca9;for(var _0x12e6ab=_0x4be257>0x1?void 0x0:_0x4be257?_0xca2b16(_0x17851f,_0x8bdc79):_0x17851f,_0x17c9d4=_0x3c660c[_0x10af84(0xbd)]-0x1,_0x532a4a;_0x17c9d4>=0x0;_0x17c9d4--)(_0x532a4a=_0x3c660c[_0x17c9d4])&&(_0x12e6ab=_0x532a4a(_0x12e6ab)||_0x12e6ab);return _0x12e6ab;},_0x25df50=(_0x41c6cc,_0x260429)=>(_0x405500,_0x234a1e)=>_0x260429(_0x405500,_0x234a1e,_0x41c6cc);_0x18b352[_0xb04ca9(0x1f0)]=class extends _0x153d59[_0xb04ca9(0x166)]{constructor(_0x28e67c,_0x446c0e){const _0x34f20a=_0xb04ca9;super(),this[_0x34f20a(0x1b4)]=_0x28e67c,this[_0x34f20a(0xcc)]=_0x446c0e,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x57287c=_0xb04ca9;[_0x72e20][_0x57287c(0x159)](_0x26f36b=>{const _0x72cc4f=_0x57287c;this[_0x72cc4f(0x134)](this[_0x72cc4f(0x1b4)]['registerCommand'](_0x26f36b));});}['_initializeMenus'](){this['_menuManagerService']['mergeMenu'](_0x54f96a);}},_0x18b352['MCPUIMenuController']=_0xab14ff([_0x25df50(0x0,_0x153d59[_0xb04ca9(0x118)]),_0x25df50(0x1,_0x177dab[_0xb04ca9(0x1ef)])],_0x18b352[_0xb04ca9(0x1f0)]);const _0x3b82b3={'mcpStatus':{'disconnected':_0xb04ca9(0x158),'connecting':_0xb04ca9(0xba),'connected':_0xb04ca9(0x1bd),'failed':_0xb04ca9(0x12a),'retrying':_0xb04ca9(0x1e9),'unknown':_0xb04ca9(0xdd),'unauthorized':_0xb04ca9(0x152),'sessionOccupied':_0xb04ca9(0x1b9),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0xb04ca9(0x175),'clickToConfigure':_0xb04ca9(0x1f6)},'mcpConfig':{'title':_0xb04ca9(0x13a),'description':_0xb04ca9(0x110),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xb04ca9(0x15a),'apiKeyHint':_0xb04ca9(0x122),'enableAuth':_0xb04ca9(0x126),'enableAuthHint':_0xb04ca9(0xfe),'connectionInfo':_0xb04ca9(0xc1),'mcpClientConfig':_0xb04ca9(0xc1),'configInstructions':_0xb04ca9(0xb8),'configStepTitle':_0xb04ca9(0xde),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0xb04ca9(0x154),'configStep3':_0xb04ca9(0x171),'sessionId':'Session\x20ID','sessionIdDescription':_0xb04ca9(0xd2),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xb04ca9(0x85),'maxRetries':_0xb04ca9(0xc4),'save':_0xb04ca9(0x214),'saving':_0xb04ca9(0xc9),'note1':_0xb04ca9(0x1ee),'note2':_0xb04ca9(0xc5),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xb04ca9(0xd5),'apiApplyInfo':{'title':_0xb04ca9(0x138),'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':_0xb04ca9(0x129),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0xb04ca9(0x1d0),'apiKeyTooShort':_0xb04ca9(0x16d),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0xb04ca9(0x1ea)},'connectionStatus':{'disconnected':_0xb04ca9(0x1f3),'connecting':_0xb04ca9(0x16c),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0xb04ca9(0x1a0)},'connectionError':{'unauthorized':_0xb04ca9(0x143),'sessionOccupied':_0xb04ca9(0xad),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xb04ca9(0x173)}}},_0x58df2a={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0xb04ca9(0xb5),'connected':_0xb04ca9(0x172),'failed':'MCP\x20连接失败','retrying':_0xb04ca9(0x1ce),'unknown':_0xb04ca9(0x8f),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0xb04ca9(0x8d),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0xb04ca9(0x10b),'clickToConfigure':_0xb04ca9(0x1d5)},'mcpConfig':{'title':_0xb04ca9(0x181),'description':_0xb04ca9(0xc0),'apiKey':_0xb04ca9(0x1e7),'apiKeyPlaceholder':_0xb04ca9(0x1fb),'apiKeyHint':_0xb04ca9(0x1e1),'enableAuth':_0xb04ca9(0xd9),'enableAuthHint':_0xb04ca9(0x204),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0xb04ca9(0x14a),'configInstructions':_0xb04ca9(0x1c1),'configStepTitle':_0xb04ca9(0x1dd),'configStep1':_0xb04ca9(0x1ad),'configStep2':_0xb04ca9(0x12f),'configStep3':_0xb04ca9(0x194),'sessionId':_0xb04ca9(0x1ae),'sessionIdDescription':_0xb04ca9(0xd7),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0xb04ca9(0x9a),'maxRetries':_0xb04ca9(0x13f),'save':_0xb04ca9(0xb7),'saving':_0xb04ca9(0x127),'note1':_0xb04ca9(0xe9),'note2':_0xb04ca9(0x147),'configSaved':'配置保存成功','configError':_0xb04ca9(0x1a5),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0xb04ca9(0x14d),'univerAiLabel':_0xb04ca9(0x157),'getStarted':_0xb04ca9(0x1b8)},'validation':{'apiKeyRequired':_0xb04ca9(0x1c2),'apiKeyTooShort':_0xb04ca9(0x1cc),'invalidConfig':_0xb04ca9(0x106),'invalidApiKey':_0xb04ca9(0x1d6)},'connectionStatus':{'disconnected':_0xb04ca9(0x189),'connecting':_0xb04ca9(0x16a),'connected':_0xb04ca9(0x7b),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0xb04ca9(0x1b6),'sessionOccupied':_0xb04ca9(0x150),'networkError':_0xb04ca9(0x201),'maxRetriesExceeded':_0xb04ca9(0x1f9)}}};var _0x5f0ae1=Object[_0xb04ca9(0x1f5)],_0xbf678=Object[_0xb04ca9(0x1fe)],_0x355100=(_0xe4745b,_0x4c9c34,_0x2b470f)=>_0x4c9c34 in _0xe4745b?_0x5f0ae1(_0xe4745b,_0x4c9c34,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b470f}):_0xe4745b[_0x4c9c34]=_0x2b470f,_0x52b424=(_0x306c60,_0x3db6c7,_0xed7877,_0x13efe4)=>{const _0x42b8fa=_0xb04ca9;for(var _0x1e6004=_0x13efe4>0x1?void 0x0:_0x13efe4?_0xbf678(_0x3db6c7,_0xed7877):_0x3db6c7,_0x54b300=_0x306c60[_0x42b8fa(0xbd)]-0x1,_0x2ac712;_0x54b300>=0x0;_0x54b300--)(_0x2ac712=_0x306c60[_0x54b300])&&(_0x1e6004=_0x2ac712(_0x1e6004)||_0x1e6004);return _0x1e6004;},_0x29abea=(_0x8c4369,_0x57afac)=>(_0xb6bf33,_0x4e0ee8)=>_0x57afac(_0xb6bf33,_0x4e0ee8,_0x8c4369),_0x37e005=(_0x14e4fc,_0x11ca21,_0x95bdf1)=>_0x355100(_0x14e4fc,_0x11ca21+'',_0x95bdf1);_0x18b352[_0xb04ca9(0x1bf)]=class extends _0x153d59['Plugin']{constructor(_0x449b55=_0x7aaaf2,_0x1d76fe,_0x143bcc,_0x454765,_0x8e4d89,_0x5e3675){const _0x348dfb=_0xb04ca9;super(),this['_config']=_0x449b55,this[_0x348dfb(0x1c8)]=_0x1d76fe,this[_0x348dfb(0xea)]=_0x143bcc,this[_0x348dfb(0x16f)]=_0x454765,this[_0x348dfb(0x1cf)]=_0x8e4d89,this[_0x348dfb(0x195)]=_0x5e3675;const {..._0x210c08}=_0x153d59[_0x348dfb(0xdb)]({},_0x7aaaf2,this[_0x348dfb(0xa1)]);this[_0x348dfb(0xea)][_0x348dfb(0x88)](_0x39ea97,_0x210c08);}async[_0xb04ca9(0x1ff)](){const _0x2e7e6f=_0xb04ca9,_0x135919=[[_0x18b352[_0x2e7e6f(0x119)]],[_0x18b352[_0x2e7e6f(0x202)]],[_0x18b352['MCPUIMenuController']]];this[_0x2e7e6f(0x1c8)][_0x2e7e6f(0xb2)](_0x14a504[_0x2e7e6f(0x207)])||_0x135919['push']([_0x14a504[_0x2e7e6f(0x207)],{'useClass':_0x14a504[_0x2e7e6f(0x19c)]}]),_0x135919[_0x2e7e6f(0x159)](_0xec97ea=>this[_0x2e7e6f(0x1c8)]['add'](_0xec97ea)),this[_0x2e7e6f(0x1c8)][_0x2e7e6f(0x139)](_0x18b352['MCPConnectionUIController']),this[_0x2e7e6f(0x1c8)]['get'](_0x18b352[_0x2e7e6f(0x202)]),this[_0x2e7e6f(0x1c8)][_0x2e7e6f(0x139)](_0x18b352[_0x2e7e6f(0x1f0)]);}},_0x37e005(_0x18b352[_0xb04ca9(0x1bf)],_0xb04ca9(0x9e),_0xb04ca9(0xa7)),_0x18b352[_0xb04ca9(0x1bf)]=_0x52b424([_0x153d59['DependentOn'](_0x3fb9c8['UniverMCPPlugin']),_0x29abea(0x1,_0x153d59['Inject'](_0x153d59[_0xb04ca9(0x12c)])),_0x29abea(0x2,_0x153d59['IConfigService']),_0x29abea(0x3,_0x177dab[_0xb04ca9(0x1af)]),_0x29abea(0x4,_0x153d59[_0xb04ca9(0xf4)]),_0x29abea(0x5,_0x153d59[_0xb04ca9(0x87)](_0x153d59[_0xb04ca9(0x1d1)]))],_0x18b352[_0xb04ca9(0x1bf)]),_0x18b352['MCPConfigPanel']=_0x3ad8ae,_0x18b352[_0xb04ca9(0x205)]=_0x19943b,_0x18b352['OpenMCPConfigPanelCommand']=_0x72e20,_0x18b352['enUS']=_0x3b82b3,_0x18b352[_0xb04ca9(0x1eb)]=_0x58df2a,Object[_0xb04ca9(0x1f5)](_0x18b352,Symbol['toStringTag'],{'value':'Module'});}));function _0x14ab(_0x31e61d,_0x478717){const _0x4cedb=_0x4ced();return _0x14ab=function(_0x14ab28,_0x1c8f24){_0x14ab28=_0x14ab28-0x79;let _0xa9eb69=_0x4cedb[_0x14ab28];return _0xa9eb69;},_0x14ab(_0x31e61d,_0x478717);}function _0x4ced(){const _0x11f8ca=['mcpConfig.configStepTitle','_handleConfigure','getConfig','Input','5CvBPXp','配置无效','button','univer-bg-gray-500','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.configInstructions','点击连接\x20MCP','HelpIcon','univer-bg-green-500','current','none','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','register','univer-min-w-0\x20univer-flex-1','react/jsx-runtime','mcpConfig.saving','useCallback','CONNECTING','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','ICommandService','MCPConnectionUIController','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','NONE','IConfigService','UniverProMcpUi','next','univer-text-gray-500','univer-text-yellow-500','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MessageType','BehaviorSubject','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Enable\x20Authentication','保存中...','evenodd','Univer\x20AI\x20Console','MCP\x20Connection\x20Failed','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Injector','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','UniverCore','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.apiKeyHint','RETRYING','MCPConfigPanel','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','disposeWithMe','function','path','univer-flex\x20univer-items-center\x20univer-gap-2','What\x20is\x20API\x20Key?','get','MCP\x20Configuration','close','Tooltip','mcpStatus.clickToConfigure','CheckMarkIcon','最大重试次数','mcpConfig.apiApplyInfo.description','7445889CVUmvg','univer.plus','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','0\x200\x2016\x2016','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','<API_KEY>','您的\x20API\x20密钥安全存储在本地存储中','_logService','ILogService','MCP\x20客户端配置','https://console.univer.plus','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','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.apiKeyPlaceholder','UNAUTHORIZED','会话\x20ID\x20已被占用,请稍后再试','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP:\x20Unauthorized','value','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','subscribe','rxjs','Univer\x20AI\x20控制台','MCP\x20Disconnected','forEach','Enter\x20your\x20API\x20key','mask','_config$','1em','div','_dialogService','idSuffix','showConfigPanel','on-line-icon_clip0_910_349','Error','show','Configuration\x20Notes:','Disposable','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_apiKey$','mcpStatus.unauthorized','连接中...','mcpConfig.save','Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','4390372uUFGYP','_uiPartsService','mcpStatus.connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20已连接','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-text-xs\x20univer-text-gray-500','Click\x20to\x20connect\x20MCP','mcpConfig.configSaved','univer-shrink-0\x20univer-text-blue-500','M0\x200H16V16H0z','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.validation.apiKeyRequired','mcpConfig.apiKey','mcpConfig.connectionInfo','mcpServerUrl','mcpConfig.connectionStatus.retrying','0\x200\x2017\x2016','replace','MCP\x20配置','react','mcpStatus.connecting','defIds','showDeveloperTools','CloseIcon','getItem','univer-bg-red-500','未连接','noopener\x20noreferrer','univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionError.sessionOccupied','MenuIcon','symbol','mcpConfig.validation.invalidConfig','http://www.w3.org/2000/svg','round','univer-space-y-3','setItem','重启您的\x20MCP\x20客户端以使配置生效','_localeService','url(#on-line-icon_clip0_910_349)','isValid','3425860ELwDze','toString','mcp-ui.command.openConfigPanel','MCPConnectionController','WebSocketService','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','_createConfigPanelComponent','_loading$','Retrying...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpStatus.retrying','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','amd','配置保存失败','check-mark-icon','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','includes','IMessageService','univer-text-blue-600','MCPConnectionStatus','复制以下\x20JSON\x20配置','会话ID','IUIPartsService','jsxs','BuiltInUIPart','HEADER_MENU','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_commandService','579606xHrHZJ','权限验证失败,请检查您的\x20API\x20密钥','mcpStatus.failed','几秒钟内获取您的\x20API\x20密钥','MCP:\x20Session\x20ID\x20Occupied','showStatus','mcpConfig.connectionStatus.failed','DISCONNECTED','MCP\x20Connected','bottom','UniverMCPUIPlugin','_handleConfigSave','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥不能为空','mcp-ui.config','off-line-icon','xlink:href','_initStatusComponent','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_injector','mcp-config-dialog','mcpStatus.networkError','span','API\x20密钥长度至少需要\x2010\x20位','url(#$1','MCP\x20重连中...','_localStorageService','API\x20key\x20is\x20required','LocaleService','apiKey','object','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','点击配置\x20MCP','API\x20密钥无效,请检查密钥是否正确','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','@univerjs/core','mcpConfig.apiApplyInfo.getStarted','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','mcpStatus.unknown','155076dchDpX','配置步骤:','univer-flex\x20univer-items-start\x20univer-gap-3','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','http','您的\x20API\x20密钥将在此浏览器中本地存储','UniverDesign','UniverUi','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','white','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','API\x20密钥','subscribeConfigValue$','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','zhCN','36aoNwwO','_blank','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','IMenuManagerService','MCPUIMenuController','defs','BUTTON','Disconnected','_connectionController','defineProperty','Click\x20to\x20configure\x20MCP','univer-space-y-5','CONNECTED','超出最大重试次数,请稍后再试','mcpConfig.authorizationDescription','请输入您的\x20API\x20密钥','svg','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','getOwnPropertyDescriptor','onStarting','univer-space-y-4','网络连接错误,请检查您的网络连接','MCPConfigUIController','forwardRef','启用身份验证以获得安全连接','MCPStatusDisplay','_registerComponent','ISocketService','__setCustomHeaders','univer-space-y-2','children','React','COMMAND','_loadStoredApiKey','tag','MAX_RETRIES_EXCEEDED','FAILED','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.connectionStatus.connecting','@univerjs/ui','Save\x20Configuration','https://console.univer.ai','univer-flex\x20univer-gap-3','univer-text-red-500','已连接','useRef','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.connectionError.networkError','mcpConfig.connectionStatus.disconnected','open','mcpConfig.configParameters','removeItem','\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','_initConfigSync','Configuration\x20Parameters:','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Inject','setConfig','UniverIcon','univer-bg-blue-500','mcpStatus.maxRetriesExceeded','fill','MCP:\x20会话\x20ID\x20已被占用','entries','MCP\x20状态未知','MCP_PLUGIN_CONFIG_KEY','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer.ai','Success','OTHERS','_messageService','CommandType','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','8365656zzSwZY','assign','配置参数:','pre','mcpConfig.title','displayName','pluginName','connectInjector','SESSION_ID_OCCUPIED','_config','use','string','mcpStatus.disconnected','useState','univer-shrink-0\x20univer-text-red-500','MCP_UI_PLUGIN','OffLineIcon','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-flex\x20univer-items-start\x20univer-gap-2','close-icon','label','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','useObservable','univer_session_id:','map','\x20-\x20','has','UniverProMcp','mcpConfig.description','MCP\x20连接中...','mcpConfig.configError','保存配置','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.apiApplyInfo.title','MCP\x20Connecting...','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-flex\x20univer-items-center','length','_validateConfig','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20Client\x20Configuration','mcpStatus.clickToConnect','Authorization:','Max\x20Retries','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpConfig.sessionIdDescription','univer-text-green-500','enableAutoConnect','Saving...','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','ComponentManager','_menuManagerService','mcpConfig.note1','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','clsx','UniverNetwork','univer-text-gray-400','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Bearer\x20','off-line-icon_clip0_910_343','Failed\x20to\x20save\x20configuration','jsx','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','getCurrentConfig','启用身份验证','validateApiKey','merge','_initAutoConnect','MCP\x20Unknown\x20Status','Configuration\x20Steps:','univer-mr-2\x20univer-flex\x20univer-text-xl','16ZObqQy','trim','currentColor','createElement','mcp.apiKey','connectionStatus$','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','@univerjs/design','error','配置更改将立即生效','_configService','_mcpCoreConfig$','_componentManager','warn','MCPConnectionError','colorChannel1','https://mcp.univer.ai/mcp/?univer_session_id=','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','RibbonStartGroup','ILocalStorageService','Button','mcpConfig.configStep1','1bezUwz','6467176BnLLCj','attrs','univer-text-sm\x20univer-text-gray-500','_mcpConnectionController','mcpConfig.validation.apiKeyTooShort','NETWORK_ERROR','Enable\x20authentication\x20for\x20secure\x20connections','@univerjs/network','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600'];_0x4ced=function(){return _0x11f8ca;};return _0x4ced();}
|
|
1
|
+
function _0x4445(_0x122e02,_0x1a449e){const _0x4e61b7=_0x4e61();return _0x4445=function(_0x4445da,_0x3dd307){_0x4445da=_0x4445da-0x1d5;let _0x5a89d9=_0x4e61b7[_0x4445da];return _0x5a89d9;},_0x4445(_0x122e02,_0x1a449e);}function _0x4e61(){const _0x24db99=['Click\x20to\x20configure\x20MCP','defIds','univer-text-red-500','Get\x20your\x20API\x20key\x20in\x20seconds','<SESSION_ID>','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','_injector','MCP_PLUGIN_CONFIG_KEY','Module','MCPConfigPanel','超出最大重试次数,请稍后再试','mcpConfig.authorizationDescription','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_menuManagerService','143688mpOrWc','Copy\x20the\x20JSON\x20configuration\x20below','jsxs','length','OffLineIcon','Button','univer.ai','WebSocketService','_registerComponent','none','url(#on-line-icon_clip0_910_349)','MCP:\x20网络错误','_validateConfig','连接失败','stringify','connectionError$','MCPUIMenuController','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','showConfigPanel','value','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','启用身份验证','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.sessionIdDescription','MCPStatusDisplay','未连接','close','univer-bg-gray-500','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','BuiltInUIPart','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.configInstructions','DependentOn','_configService','<API_KEY>','univer-min-w-0\x20univer-flex-1','_mcpCoreConfig$','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','Tooltip','mcpConfig.connectionInfo','_handleConfigSave','UniverProMcpUi','mcpConfig.note1','网络连接错误,请检查您的网络连接','tag','mcpStatus.disconnected','registerCommand','_apiKey$','mcpConfig.apiApplyInfo.title','object','Connected','UniverMCPPlugin','univer-space-y-3','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.configError','MessageType','isValid','off-line-icon_clip0_910_343','OpenMCPConfigPanelCommand','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','CloseIcon','0\x200\x2017\x2016','useRef','mcpStatus.clickToConfigure','最大重试次数','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','showStatus','UniverDesign','apiKey','trim','createElement','_dialogService','button','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20连接中...','mcpConfig.configParameters','jsx','16934660qwXQMs','Failed\x20to\x20save\x20configuration','API\x20Key','配置参数:','\x20-\x20','off','univer-mr-2\x20univer-flex\x20univer-text-xl','Disposable','ILogService','FAILED','attrs','defineProperty','path','重启您的\x20MCP\x20客户端以使配置生效','_config','MCP\x20已断开','IDialogService','UniverProMcp','_commandService','symbol','univer-flex\x20univer-items-center','BUTTON','MCPConnectionUIController','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','HelpIcon','IConfigService','102263FAtBfx','open','univer-shrink-0\x20univer-text-red-500','use','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Success','8XuYUpC','SESSION_ID_OCCUPIED','API\x20密钥','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.apiKeyHint','string','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-bg-red-500','MCPConnectionStatus','@univerjs/core','Connection\x20Failed','8100558ERztGH','CommandType','http://www.w3.org/2000/svg','UNAUTHORIZED','RETRYING','mcpConfig.connectionStatus.retrying','showDeveloperTools','assign','MCP\x20Configuration','mcpConfig.connectionStatus.failed','NONE','连接中...','on-line-icon_clip0_910_349','880lIprKm','MCP\x20Retrying...','_initializeCommands','univer-text-sm\x20univer-text-gray-500','Configuration\x20Parameters:','8kiVyNL','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-blue-600','配置更改将立即生效','点击连接\x20MCP','forwardRef','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','HEADER_MENU','Enable\x20Authentication','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','noopener\x20noreferrer','_initializeMenus','MenuItemType','Click\x20to\x20connect\x20MCP','_initAutoConnect','sessionId$','CONNECTING','function','mcpConfig.configStep2','univer.plus','M0\x200H16V16H0z','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','enUS','MenuIcon','Retrying...','API\x20密钥长度至少需要\x2010\x20位','react','displayName','univer-size-4','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','BehaviorSubject','您的\x20API\x20密钥安全存储在本地存储中','API\x20密钥不能为空','mcp.apiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','fill','univer-space-y-5','ILocalStorageService','children','UniverNetwork','IMenuManagerService','register','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Bearer\x20','rxjs','@univerjs-pro/mcp','Session\x20ID','Saving...','add','DISCONNECTED','useCallback','forEach','defs','https://mcp.univer.ai/mcp/?univer_session_id=','removeItem','Univer\x20AI\x20Console','_localStorageService','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MCPConnectionError','MCP\x20Connected','React','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-text-xs\x20univer-text-gray-600','mcpStatus.networkError','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','currentColor','_connectionController','会话\x20ID\x20已被占用,请稍后再试','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','OTHERS','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MCP\x20Disconnected','MCPConfigUIController','API\x20key\x20with\x20Bearer\x20prefix.','get','mcpConfig.description','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','1em','_localeService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','MCP\x20重连中...','MCP:\x20未授权','onStarting','svg','MCP:\x20超出最大重试次数','url(#$1','OnLineIcon','2214425CVNINc','配置步骤:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','启用身份验证以获得安全连接','Univer\x20AI\x20控制台','CONNECTED','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpStatus.clickToConnect','什么是\x20API\x20密钥?','mcpStatus.sessionOccupied','validateApiKey','useObservable','LocaleService','MCP\x20Client\x20Configuration','_initStatusComponent','span','\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','clsx','mcpConfig.configStep3','已连接','Configuration\x20Steps:','What\x20is\x20API\x20Key?','IUIPartsService','UniverIcon','evenodd','重连中...','Authorization:','RibbonStartGroup','connectionStatus$','https://console.univer.ai','__setCustomHeaders','mcpStatus.retrying','show','connectInjector','mcpConfig.apiApplyInfo.description','univer-space-y-4','clipPath','react/jsx-runtime','div','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Unknown\x20Status','getCurrentConfig','API\x20key\x20is\x20required','toString','配置保存成功','_config$','text','mcpStatus.connecting','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Input','setItem','getOwnPropertyDescriptor','disposeWithMe','0\x200\x2016\x2016','entries','univer-space-y-2','_createConfigPanelComponent','univer-flex-1','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-flex\x20univer-items-start\x20univer-gap-3','univer-bg-blue-500','MCPConnectionController','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-text-yellow-500','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','current','subscribe','mcpConfig.apiApplyInfo.getStarted','点击配置\x20MCP','权限验证失败,请检查您的\x20API\x20密钥','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','white','mcpConfig.validation.apiKeyRequired','off-line-icon','CheckMarkIcon','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mask','zhCN','_messageService','87400JCHCoL','_logService','mcpServerUrl','Enter\x20your\x20API\x20key','_handleConfigure','保存中...','mcpConfig.note2','label','MCP\x20客户端配置','univer-flex\x20univer-gap-3','UniverMCPUIPlugin','@univerjs/ui','mcpConfig.configSaved','includes','bottom','mcpConfig.saving','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_loading$','enableAutoConnect','colorChannel1','复制以下\x20JSON\x20配置','保存配置','push','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','2704242YcJWcQ','NETWORK_ERROR','ISocketService','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-xs\x20univer-text-gray-500','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-bg-green-500','_mcpConnectionController','mcpConfig.connectionError.maxRetriesExceeded','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','subscribeConfigValue$','Invalid\x20configuration','round','MCP:\x20Unauthorized','getConfig','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Network\x20Error','mcpConfig.title','_uiPartsService','UniverCore','配置保存失败','mcpConfig.validation.apiKeyTooShort','univer-flex\x20univer-items-start\x20univer-gap-2','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','pluginName','Inject','univer-text-sm\x20univer-font-medium','MCP:\x20Max\x20Retries\x20Exceeded','idSuffix','MCP\x20配置','mcp-ui.command.openConfigPanel','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','errorMessage','mcpStatus.maxRetriesExceeded','MAX_RETRIES_EXCEEDED','toStringTag','Save\x20Configuration','error','_loadStoredApiKey','url(#off-line-icon_clip0_910_343)','Error','next','exports','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpConfig.configStep1','配置无效','useState','mcp-ui.config','_initConfigSync','univer-text-gray-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','ICommandService','Injector','setConfig','has','xlink:href'];_0x4e61=function(){return _0x24db99;};return _0x4e61();}(function(_0x115e85,_0xb859){const _0x876ac7=_0x4445,_0x440051=_0x115e85();while(!![]){try{const _0x4025b1=-parseInt(_0x876ac7(0x333))/0x1+parseInt(_0x876ac7(0x289))/0x2*(-parseInt(_0x876ac7(0x1fe))/0x3)+parseInt(_0x876ac7(0x26c))/0x4*(parseInt(_0x876ac7(0x2e3))/0x5)+-parseInt(_0x876ac7(0x34b))/0x6+parseInt(_0x876ac7(0x266))/0x7*(parseInt(_0x876ac7(0x284))/0x8)+parseInt(_0x876ac7(0x277))/0x9+-parseInt(_0x876ac7(0x24c))/0xa;if(_0x4025b1===_0xb859)break;else _0x440051['push'](_0x440051['shift']());}catch(_0x38e15a){_0x440051['push'](_0x440051['shift']());}}}(_0x4e61,0xecbc1),function(_0x207c93,_0x296eb6){const _0x201ce4=_0x4445;typeof exports==_0x201ce4(0x230)&&typeof module<'u'?_0x296eb6(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==_0x201ce4(0x29b)&&define['amd']?define([_0x201ce4(0x1e1),_0x201ce4(0x275),_0x201ce4(0x308),_0x201ce4(0x2b7),'@univerjs/design',_0x201ce4(0x33e),_0x201ce4(0x2b6),_0x201ce4(0x2a4),'@univerjs/network'],_0x296eb6):(_0x207c93=typeof globalThis<'u'?globalThis:_0x207c93||self,_0x296eb6(_0x207c93[_0x201ce4(0x228)]={},_0x207c93[_0x201ce4(0x35e)],_0x207c93[_0x201ce4(0x2c6)],_0x207c93[_0x201ce4(0x25d)],_0x207c93[_0x201ce4(0x242)],_0x207c93['UniverUi'],_0x207c93[_0x201ce4(0x2b6)],_0x207c93[_0x201ce4(0x2c6)],_0x207c93[_0x201ce4(0x2b1)]));}(this,function(_0x3452af,_0x4a314f,_0x43b48c,_0x40b3f6,_0x374083,_0x3de351,_0x2c2219,_0x49ad4d,_0x3d1dc4){'use strict';const _0x2d9228=_0x4445;var _0x220949=Object['defineProperty'],_0x261d9d=(_0x35abe4,_0x527847,_0x263d4f)=>_0x527847 in _0x35abe4?_0x220949(_0x35abe4,_0x527847,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x263d4f}):_0x35abe4[_0x527847]=_0x263d4f,_0x5a141a=(_0x25a7a9,_0x3076f1,_0x3dda05)=>_0x261d9d(_0x25a7a9,typeof _0x3076f1!=_0x2d9228(0x25f)?_0x3076f1+'':_0x3076f1,_0x3dda05);function _0x73d96f({ref:_0x38df67,..._0x307bcc}){const _0x330e03=_0x2d9228,{icon:_0x213720,id:_0x2af132,className:_0x36feef,extend:_0x2368ec,..._0x5cbf98}=_0x307bcc,_0x363799=('univerjs-icon\x20univerjs-icon-'+_0x2af132+'\x20'+(_0x36feef||''))[_0x330e03(0x244)](),_0x707cc3=_0x49ad4d[_0x330e03(0x23d)]('_'+_0x16ceae());return _0x20ab30(_0x213720,''+_0x2af132,{'defIds':_0x213720[_0x330e03(0x1f1)],'idSuffix':_0x707cc3[_0x330e03(0x325)]},{'ref':_0x38df67,'className':_0x363799,..._0x5cbf98},_0x2368ec);}function _0x20ab30(_0xa8d889,_0x5c7e3e,_0x2d3343,_0x52cab6,_0x4dc05a){const _0x1be89b=_0x2d9228;return _0x49ad4d[_0x1be89b(0x245)](_0xa8d889[_0x1be89b(0x22b)],{'key':_0x5c7e3e,..._0x14ab14(_0xa8d889,_0x2d3343,_0x4dc05a),..._0x52cab6},(_0x5e0cfc(_0xa8d889,_0x2d3343)['children']||[])['map']((_0x5c7aef,_0x74e2c9)=>_0x20ab30(_0x5c7aef,_0x5c7e3e+'-'+_0xa8d889[_0x1be89b(0x22b)]+'-'+_0x74e2c9,_0x2d3343,void 0x0,_0x4dc05a)));}function _0x14ab14(_0x1a854d,_0xb128b2,_0x329fc2){const _0xa85d73=_0x2d9228,_0x37d22a={..._0x1a854d[_0xa85d73(0x256)]};_0x329fc2!=null&&_0x329fc2[_0xa85d73(0x346)]&&_0x37d22a[_0xa85d73(0x2ad)]===_0xa85d73(0x346)&&(_0x37d22a[_0xa85d73(0x2ad)]=_0x329fc2[_0xa85d73(0x346)]),_0x1a854d[_0xa85d73(0x22b)]==='mask'&&_0x37d22a['id']&&(_0x37d22a['id']=_0x37d22a['id']+_0xb128b2['idSuffix']),Object[_0xa85d73(0x319)](_0x37d22a)[_0xa85d73(0x2bd)](([_0x21c530,_0x2e5352])=>{const _0x123650=_0xa85d73;_0x21c530===_0x123650(0x330)&&typeof _0x2e5352==_0x123650(0x271)&&(_0x37d22a[_0x21c530]=_0x2e5352['replace'](/url\(#(.*)\)/,_0x123650(0x2e1)+_0xb128b2[_0x123650(0x367)]+')'));});const {defIds:_0x4290f4}=_0xb128b2;return!_0x4290f4||_0x4290f4[_0xa85d73(0x201)]===0x0||(_0x1a854d[_0xa85d73(0x22b)]===_0xa85d73(0x269)&&_0x37d22a[_0xa85d73(0x1ef)]&&(_0x37d22a[_0xa85d73(0x1ef)]=_0x37d22a[_0xa85d73(0x1ef)]+_0xb128b2[_0xa85d73(0x367)]),Object[_0xa85d73(0x319)](_0x37d22a)[_0xa85d73(0x2bd)](([_0x3e9322,_0x3ff2e3])=>{const _0x1e7e10=_0xa85d73;typeof _0x3ff2e3==_0x1e7e10(0x271)&&(_0x37d22a[_0x3e9322]=_0x3ff2e3['replace'](/url\(#(.*)\)/,_0x1e7e10(0x2e1)+_0xb128b2['idSuffix']+')'));})),_0x37d22a;}function _0x5e0cfc(_0x38c774,_0x513c8a){const _0x2d99b8=_0x2d9228;var _0x463c7e;const {defIds:_0x288e92}=_0x513c8a;return!_0x288e92||_0x288e92['length']===0x0?_0x38c774:_0x38c774[_0x2d99b8(0x22b)]===_0x2d99b8(0x2be)&&((_0x463c7e=_0x38c774[_0x2d99b8(0x2b0)])!=null&&_0x463c7e[_0x2d99b8(0x201)])?{..._0x38c774,'children':_0x38c774[_0x2d99b8(0x2b0)]['map'](_0x56d603=>typeof _0x56d603['attrs']['id']==_0x2d99b8(0x271)&&_0x288e92&&_0x288e92['includes'](_0x56d603['attrs']['id'])?{..._0x56d603,'attrs':{..._0x56d603[_0x2d99b8(0x256)],'id':_0x56d603[_0x2d99b8(0x256)]['id']+_0x513c8a[_0x2d99b8(0x367)]}}:_0x56d603)}:_0x38c774;}function _0x16ceae(){const _0x1b2361=_0x2d9228;return Math['random']()[_0x1b2361(0x30e)](0x24)['substring'](0x2,0x8);}_0x73d96f['displayName']=_0x2d9228(0x2fa);const _0x25d44f={'tag':_0x2d9228(0x2df),'attrs':{'xmlns':_0x2d9228(0x279),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2d9228(0x2d9),'height':_0x2d9228(0x2d9)},'children':[{'tag':_0x2d9228(0x258),'attrs':{'fill':_0x2d9228(0x2cb),'d':_0x2d9228(0x224),'fillRule':_0x2d9228(0x2fb),'clipRule':'evenodd'}}]},_0x173530=_0x49ad4d['forwardRef'](function(_0x2b50c2,_0x4925ca){const _0x425a4b=_0x2d9228;return _0x49ad4d['createElement'](_0x73d96f,Object[_0x425a4b(0x27e)]({},_0x2b50c2,{'id':'check-mark-icon','ref':_0x4925ca,'icon':_0x25d44f}));});_0x173530[_0x2d9228(0x2a5)]=_0x2d9228(0x32e);const _0x3c72a4={'tag':'svg','attrs':{'xmlns':_0x2d9228(0x279),'fill':'none','viewBox':_0x2d9228(0x318),'width':_0x2d9228(0x2d9),'height':'1em'},'children':[{'tag':_0x2d9228(0x258),'attrs':{'fill':_0x2d9228(0x2cb),'d':_0x2d9228(0x210)}}]},_0x3c618c=_0x49ad4d['forwardRef'](function(_0x427911,_0xbf177f){const _0x4a4cb8=_0x2d9228;return _0x49ad4d[_0x4a4cb8(0x245)](_0x73d96f,Object[_0x4a4cb8(0x27e)]({},_0x427911,{'id':'close-icon','ref':_0xbf177f,'icon':_0x3c72a4}));});_0x3c618c[_0x2d9228(0x2a5)]=_0x2d9228(0x23b);const _0x3d61cc={'tag':_0x2d9228(0x2df),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2d9228(0x207),'viewBox':_0x2d9228(0x318),'width':_0x2d9228(0x2d9),'height':_0x2d9228(0x2d9)},'children':[{'tag':_0x2d9228(0x258),'attrs':{'fill':_0x2d9228(0x2cb),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x2d9228(0x258),'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':'path','attrs':{'fill':_0x2d9228(0x2cb),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x2d9228(0x2fb),'clipRule':_0x2d9228(0x2fb)}}]},_0x7cf183=_0x49ad4d[_0x2d9228(0x28f)](function(_0x3fcddb,_0x56f953){const _0x395a5f=_0x2d9228;return _0x49ad4d[_0x395a5f(0x245)](_0x73d96f,Object[_0x395a5f(0x27e)]({},_0x3fcddb,{'id':'help-icon','ref':_0x56f953,'icon':_0x3d61cc}));});_0x7cf183['displayName']=_0x2d9228(0x264);const _0x1de11a={'tag':_0x2d9228(0x2df),'attrs':{'xmlns':_0x2d9228(0x279),'fill':'none','viewBox':_0x2d9228(0x318),'width':_0x2d9228(0x2d9),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2d9228(0x1de)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x2d9228(0x293),'strokeLinecap':_0x2d9228(0x357),'strokeLinejoin':_0x2d9228(0x357),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2d9228(0x238)},'children':[{'tag':_0x2d9228(0x258),'attrs':{'fill':_0x2d9228(0x32b),'d':_0x2d9228(0x29e)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x11aa95=_0x49ad4d['forwardRef'](function(_0x2e0fce,_0x13a347){const _0x18c160=_0x2d9228;return _0x49ad4d[_0x18c160(0x245)](_0x73d96f,Object['assign']({},_0x2e0fce,{'id':_0x18c160(0x32d),'ref':_0x13a347,'icon':_0x1de11a}));});_0x11aa95[_0x2d9228(0x2a5)]=_0x2d9228(0x202);const _0x41edb5={'tag':_0x2d9228(0x2df),'attrs':{'xmlns':_0x2d9228(0x279),'fill':_0x2d9228(0x207),'viewBox':_0x2d9228(0x23c),'width':'1em','height':_0x2d9228(0x2d9)},'children':[{'tag':'g','attrs':{'clipPath':_0x2d9228(0x208)},'children':[{'tag':_0x2d9228(0x258),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x2d9228(0x357),'strokeLinejoin':_0x2d9228(0x357),'strokeWidth':1.2}}]},{'tag':_0x2d9228(0x2be),'attrs':{},'children':[{'tag':_0x2d9228(0x307),'attrs':{'id':_0x2d9228(0x283)},'children':[{'tag':'path','attrs':{'fill':_0x2d9228(0x32b),'d':_0x2d9228(0x29e),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2d9228(0x283)]},_0x35fecd=_0x49ad4d['forwardRef'](function(_0x520f61,_0x1060c5){const _0x2003c1=_0x2d9228;return _0x49ad4d[_0x2003c1(0x245)](_0x73d96f,Object[_0x2003c1(0x27e)]({},_0x520f61,{'id':'on-line-icon','ref':_0x1060c5,'icon':_0x41edb5}));});_0x35fecd[_0x2d9228(0x2a5)]=_0x2d9228(0x2e2);function _0x24daf5(_0x4a1a1c){const _0x1fe341=_0x2d9228;var _0x3e434f,_0x3b935f;const {mcpCoreConfig:_0x26c93d,onSave:_0x5a2d6e,loading:_0x295e8f=!0x1,config:_0x256005,connectionStatus$:_0x3fe891,connectionError$:_0x16c27f,currentApiKey$:_0x331efb,currentSessionId$:_0x5e7182}=_0x4a1a1c,_0x2c2962=_0x3de351['useDependency'](_0x4a314f['LocaleService']),_0x5f33e3=_0x3de351['useObservable'](_0x3fe891,_0x40b3f6[_0x1fe341(0x274)][_0x1fe341(0x2bb)]),_0x5c45eb=_0x3de351['useObservable'](_0x16c27f,_0x40b3f6[_0x1fe341(0x2c4)][_0x1fe341(0x281)]),_0x80d446=_0x3de351[_0x1fe341(0x2ee)](_0x5e7182,''),_0x1821e9=_0x3de351[_0x1fe341(0x2ee)](_0x331efb,''),[_0x4a7c46,_0x2cac16]=_0x49ad4d[_0x1fe341(0x1e5)](_0x1821e9||''),_0x42c643=!0x0,_0x1c6a9d=_0x256005[_0x1fe341(0x27d)]&&_0x26c93d[_0x1fe341(0x335)]&&(_0x26c93d[_0x1fe341(0x335)][_0x1fe341(0x340)](_0x1fe341(0x29d))||_0x26c93d[_0x1fe341(0x335)][_0x1fe341(0x340)]('univer.ai')),_0x4775d2=(_0x3e434f=_0x26c93d['mcpServerUrl'])==null?void 0x0:_0x3e434f[_0x1fe341(0x340)](_0x1fe341(0x29d)),_0x5d2a49=(_0x3b935f=_0x26c93d[_0x1fe341(0x335)])==null?void 0x0:_0x3b935f[_0x1fe341(0x340)](_0x1fe341(0x204)),_0x228147=_0x4775d2?'https://console.univer.plus':_0x1fe341(0x300),_0xed4e71=_0x256005[_0x1fe341(0x27d)]&&(_0x4775d2||_0x5d2a49),[_0x8fcf0d,_0x11439c]=_0x49ad4d[_0x1fe341(0x1e5)](!_0x4a7c46['trim']()),_0xb4cadf=(_0x2ed554,_0x3bad20)=>{const _0x5de8e7=_0x1fe341;if(_0x3bad20===_0x40b3f6[_0x5de8e7(0x2c4)]['UNAUTHORIZED'])return _0x5de8e7(0x290);switch(_0x2ed554){case _0x40b3f6[_0x5de8e7(0x274)][_0x5de8e7(0x2e8)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x40b3f6[_0x5de8e7(0x274)]['CONNECTING']:case _0x40b3f6[_0x5de8e7(0x274)][_0x5de8e7(0x27b)]:return _0x5de8e7(0x1e2);case _0x40b3f6[_0x5de8e7(0x274)]['FAILED']:return _0x5de8e7(0x290);default:return _0x5de8e7(0x234);}},_0x48c6a7=(_0x4da093,_0x99834c)=>{const _0x373c1d=_0x1fe341;if(_0x99834c===_0x40b3f6[_0x373c1d(0x2c4)][_0x373c1d(0x27a)])return _0x373c1d(0x273);switch(_0x4da093){case _0x40b3f6[_0x373c1d(0x274)]['CONNECTED']:return _0x373c1d(0x351);case _0x40b3f6['MCPConnectionStatus'][_0x373c1d(0x29a)]:case _0x40b3f6[_0x373c1d(0x274)]['RETRYING']:return _0x373c1d(0x320);case _0x40b3f6[_0x373c1d(0x274)][_0x373c1d(0x255)]:return _0x373c1d(0x273);default:return _0x373c1d(0x21a);}},_0x3abce8=_0x421ee2=>{const _0x5538ea=_0x1fe341;switch(_0x421ee2){case _0x40b3f6[_0x5538ea(0x274)]['CONNECTED']:return _0x2c2962['t']('mcpConfig.connectionStatus.connected');case _0x40b3f6[_0x5538ea(0x274)][_0x5538ea(0x29a)]:return _0x2c2962['t']('mcpConfig.connectionStatus.connecting');case _0x40b3f6[_0x5538ea(0x274)]['FAILED']:return _0x2c2962['t'](_0x5538ea(0x280));case _0x40b3f6['MCPConnectionStatus']['RETRYING']:return _0x2c2962['t'](_0x5538ea(0x27c));default:return _0x2c2962['t']('mcpConfig.connectionStatus.disconnected');}},_0x459187=_0x4073a1=>{const _0x5941fe=_0x1fe341;switch(_0x4073a1){case _0x40b3f6[_0x5941fe(0x2c4)][_0x5941fe(0x27a)]:return _0x2c2962['t']('mcpConfig.connectionError.unauthorized');case _0x40b3f6['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x2c2962['t']('mcpConfig.connectionError.sessionOccupied');case _0x40b3f6[_0x5941fe(0x2c4)][_0x5941fe(0x34c)]:return _0x2c2962['t']('mcpConfig.connectionError.networkError');case _0x40b3f6[_0x5941fe(0x2c4)][_0x5941fe(0x1d9)]:return _0x2c2962['t'](_0x5941fe(0x353));default:return'';}},_0x296c60=_0x49ad4d[_0x1fe341(0x2bc)](()=>{const _0xe85b40={..._0x26c93d,'apiKey':_0x4a7c46['trim'](),'enableAuth':_0x42c643};_0x5a2d6e(_0xe85b40);},[_0x26c93d,_0x4a7c46,_0x42c643,_0x5a2d6e]),_0x3030b5=_0x4a7c46[_0x1fe341(0x244)]()[_0x1fe341(0x201)]>0x0;return _0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x20f),'children':[_0x43b48c['jsx'](_0x1fe341(0x309),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x34e),'children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x309),{'className':_0x1fe341(0x2ac),'children':_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x2f2),{'className':'univer-text-white','children':'⚙'})}),_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x309),{'children':_0x43b48c[_0x1fe341(0x24b)]('p',{'className':_0x1fe341(0x287),'children':_0x2c2962['t'](_0x1fe341(0x2d7))})})]})}),_0x43b48c[_0x1fe341(0x200)]('div',{'className':_0x1fe341(0x1fc),'children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x309),{'className':_0x374083[_0x1fe341(0x2f4)](_0x1fe341(0x32f),_0xb4cadf(_0x5f33e3,_0x5c45eb)),'children':_0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x28b),'children':[_0x43b48c['jsx']('div',{'className':_0x374083[_0x1fe341(0x2f4)]('univer-size-2\x20univer-rounded-full',_0x48c6a7(_0x5f33e3,_0x5c45eb))}),_0x43b48c[_0x1fe341(0x24b)]('span',{'className':_0x1fe341(0x365),'children':_0x3abce8(_0x5f33e3)})]})}),_0x5c45eb!==_0x40b3f6[_0x1fe341(0x2c4)][_0x1fe341(0x281)]&&(_0x5f33e3===_0x40b3f6[_0x1fe341(0x274)][_0x1fe341(0x255)]||_0x5c45eb===_0x40b3f6['MCPConnectionError'][_0x1fe341(0x27a)])&&_0x43b48c['jsx'](_0x1fe341(0x309),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x309),{'className':_0x1fe341(0x361),'children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x2f2),{'className':_0x1fe341(0x268),'children':'⚠️'}),_0x43b48c[_0x1fe341(0x24b)]('p',{'className':_0x1fe341(0x2db),'children':_0x459187(_0x5c45eb)})]})})]}),_0x43b48c['jsx'](_0x1fe341(0x309),{'className':_0x1fe341(0x2c3),'children':_0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x2ae),'children':[_0x43b48c['jsxs']('div',{'className':_0x1fe341(0x31a),'children':[_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x33a),{'className':_0x1fe341(0x240),'children':[_0x43b48c['jsx']('span',{'children':'🔑'}),'\x20',_0x2c2962['t']('mcpConfig.apiKey'),_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x2f2),{'className':_0x1fe341(0x1f2),'children':'*'}),_0x1c6a9d&&_0x43b48c[_0x1fe341(0x24b)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x2c2962['t'](_0x1fe341(0x22f)),'role':'button','onClick':()=>_0x11439c(!0x0),'children':_0x43b48c[_0x1fe341(0x24b)](_0x7cf183,{})})]}),_0x43b48c[_0x1fe341(0x24b)](_0x374083[_0x1fe341(0x314)],{'type':_0x1fe341(0x311),'placeholder':_0x2c2962['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x4a7c46,'disabled':_0x295e8f,'autoComplete':_0x1fe341(0x251),'onChange':_0x2cac16}),_0x43b48c[_0x1fe341(0x24b)]('p',{'className':_0x1fe341(0x34f),'children':_0x2c2962['t'](_0x1fe341(0x270))})]}),_0x1c6a9d&&_0x8fcf0d&&_0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x23a),'children':[_0x43b48c['jsx']('a',{'className':_0x1fe341(0x2d8),'role':'button','onClick':()=>_0x11439c(!0x1),'children':_0x43b48c[_0x1fe341(0x24b)](_0x3c618c,{'className':_0x1fe341(0x2a6)})}),_0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x1f5),'children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x309),{'className':_0x1fe341(0x313),'children':_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x2f2),{'className':_0x1fe341(0x28c),'children':'🚀'})}),_0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x31c),'children':[_0x43b48c[_0x1fe341(0x24b)]('h4',{'className':_0x1fe341(0x362),'children':_0x2c2962['t'](_0x1fe341(0x22f))}),_0x43b48c[_0x1fe341(0x24b)]('p',{'className':_0x1fe341(0x26a),'children':_0x2c2962['t'](_0x1fe341(0x305))}),_0x43b48c[_0x1fe341(0x24b)]('div',{'className':_0x1fe341(0x322),'children':_0xed4e71&&_0x43b48c['jsxs']('a',{'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','href':_0x228147,'target':'_blank','rel':_0x1fe341(0x294),'children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x2f2),{'children':'🤖'}),_0x2c2962['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x2f2),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x309),{'className':_0x1fe341(0x2d2),'children':['✨','\x20',_0x2c2962['t'](_0x1fe341(0x327))]})]})]})]}),_0x256005[_0x1fe341(0x27d)]&&_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x309),{'className':_0x1fe341(0x21b),'children':[_0x43b48c[_0x1fe341(0x200)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x2f2),{'children':'🔗'}),'\x20',_0x2c2962['t'](_0x1fe341(0x226))]}),_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x309),{'className':_0x1fe341(0x306),'children':[_0x43b48c[_0x1fe341(0x200)]('div',{'className':_0x1fe341(0x233),'children':[_0x43b48c[_0x1fe341(0x24b)]('p',{'className':_0x1fe341(0x2c8),'children':_0x2c2962['t'](_0x1fe341(0x21e))}),_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x309),{'className':_0x1fe341(0x31a),'children':[_0x43b48c[_0x1fe341(0x24b)]('div',{'className':_0x1fe341(0x354),'children':_0x2c2962['t']('mcpConfig.configStepTitle')}),_0x43b48c[_0x1fe341(0x200)]('div',{'className':_0x1fe341(0x263),'children':[_0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x28b),'children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x2f2),{'className':_0x1fe341(0x2a7),'children':'1'}),_0x2c2962['t'](_0x1fe341(0x1e3))]}),_0x43b48c[_0x1fe341(0x200)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x2f2),{'className':_0x1fe341(0x2a7),'children':'2'}),_0x2c2962['t'](_0x1fe341(0x29c))]}),_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x309),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x43b48c[_0x1fe341(0x24b)]('span',{'className':_0x1fe341(0x2a7),'children':'3'}),_0x2c2962['t'](_0x1fe341(0x2f5))]})]})]})]}),_0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x31a),'children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x309),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1fe341(0x27f)}),_0x43b48c['jsx']('div',{'className':_0x1fe341(0x2e9),'children':_0x43b48c['jsx']('pre',{'className':_0x1fe341(0x2c7),'children':JSON[_0x1fe341(0x20c)]({'mcpServers':{'univer':{'url':_0x1fe341(0x2bf)+(_0x80d446||_0x1fe341(0x1f4)),'type':'http','headers':{'Authorization':_0x1fe341(0x2b5)+(_0x4a7c46||_0x1fe341(0x221))}}}},null,0x2)})})]}),_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x309),{'className':_0x1fe341(0x233),'children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x309),{'className':_0x1fe341(0x354),'children':_0x2c2962['t'](_0x1fe341(0x24a))}),_0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x31a),'children':[_0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x31f),'children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x309),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x309),{'className':_0x1fe341(0x222),'children':[_0x43b48c[_0x1fe341(0x24b)]('div',{'className':_0x1fe341(0x28a),'children':'univer_session_id:'}),_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x309),{'className':_0x1fe341(0x34f),'children':_0x2c2962['t'](_0x1fe341(0x216))})]})]}),_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x309),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x43b48c['jsx'](_0x1fe341(0x309),{'className':_0x1fe341(0x29f)}),_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x309),{'className':_0x1fe341(0x222),'children':[_0x43b48c[_0x1fe341(0x24b)]('div',{'className':_0x1fe341(0x28a),'children':_0x1fe341(0x2fd)}),_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x309),{'className':_0x1fe341(0x34f),'children':_0x2c2962['t'](_0x1fe341(0x1fb))})]})]})]})]})]})]}),_0x43b48c[_0x1fe341(0x24b)](_0x374083[_0x1fe341(0x203)],{'onClick':_0x296c60,'disabled':!_0x3030b5||_0x295e8f,'className':_0x1fe341(0x324),'children':_0x295e8f?_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x2f2),{'className':_0x1fe341(0x28b),'children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x2f2),{'children':'⟲'}),_0x2c2962['t'](_0x1fe341(0x342))]}):_0x43b48c[_0x1fe341(0x200)](_0x1fe341(0x2f2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x43b48c['jsx'](_0x173530,{}),_0x2c2962['t']('mcpConfig.save')]})}),_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x309),{'className':_0x1fe341(0x32a),'children':_0x43b48c[_0x1fe341(0x200)]('div',{'className':_0x1fe341(0x33c),'children':[_0x43b48c['jsx']('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x43b48c['jsxs'](_0x1fe341(0x309),{'className':_0x1fe341(0x26f),'children':[_0x43b48c[_0x1fe341(0x24b)](_0x1fe341(0x309),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x43b48c['jsxs'](_0x1fe341(0x309),{'children':['•',_0x2c2962['t'](_0x1fe341(0x229))]}),_0x43b48c['jsxs'](_0x1fe341(0x309),{'children':['•',_0x2c2962['t'](_0x1fe341(0x339))]})]})]})})]})})]});}const _0x586bb7=_0x2d9228(0x1e6),_0x1c746d={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x5ebf8a=Object[_0x2d9228(0x316)],_0x5856da=(_0x4663af,_0x2fbcd5,_0x32f610,_0x354c6e)=>{const _0xc39e13=_0x2d9228;for(var _0x5bedc0=_0x354c6e>0x1?void 0x0:_0x354c6e?_0x5ebf8a(_0x2fbcd5,_0x32f610):_0x2fbcd5,_0x3f3e46=_0x4663af[_0xc39e13(0x201)]-0x1,_0x43b24f;_0x3f3e46>=0x0;_0x3f3e46--)(_0x43b24f=_0x4663af[_0x3f3e46])&&(_0x5bedc0=_0x43b24f(_0x5bedc0)||_0x5bedc0);return _0x5bedc0;},_0x2a19ad=(_0x3fe821,_0x378795)=>(_0x4d3eeb,_0x533da3)=>_0x378795(_0x4d3eeb,_0x533da3,_0x3fe821);const _0x5c3c23=_0x2d9228(0x2ab),_0x1634fb='mcp-config-dialog';_0x3452af[_0x2d9228(0x2d4)]=class extends _0x4a314f['Disposable']{constructor(_0x489a09,_0xb4f6e9,_0x15f51f,_0x598176,_0x5bb834,_0x368702,_0x38e29b,_0x1338b5,_0xc34bd4,_0x2c04a3){const _0x53d609=_0x2d9228;super(),_0x5a141a(this,_0x53d609(0x344),new _0x2c2219[(_0x53d609(0x2a8))](!0x1)),_0x5a141a(this,_0x53d609(0x223),new _0x2c2219[(_0x53d609(0x2a8))]({})),_0x5a141a(this,_0x53d609(0x310),new _0x2c2219[(_0x53d609(0x2a8))]({})),_0x5a141a(this,_0x53d609(0x22e),new _0x2c2219['BehaviorSubject']('')),_0x5a141a(this,'_handleConfigSave',async _0x2963c8=>{const _0x4e94e2=_0x53d609;var _0x26b92f,_0x3b82af;this['_loading$'][_0x4e94e2(0x1e0)](!0x0);try{const _0x278a4f=await this[_0x4e94e2(0x20a)](_0x2963c8);if(!_0x278a4f[_0x4e94e2(0x237)]){this['_messageService'][_0x4e94e2(0x303)]({'type':_0x374083['MessageType'][_0x4e94e2(0x1df)],'content':_0x278a4f[_0x4e94e2(0x1d7)]||this[_0x4e94e2(0x2da)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2963c8[_0x4e94e2(0x243)]?await this[_0x4e94e2(0x2c2)][_0x4e94e2(0x315)](_0x5c3c23,_0x2963c8[_0x4e94e2(0x243)][_0x4e94e2(0x244)]()):await this[_0x4e94e2(0x2c2)][_0x4e94e2(0x2c0)](_0x5c3c23),this[_0x4e94e2(0x22e)][_0x4e94e2(0x1e0)](((_0x26b92f=_0x2963c8[_0x4e94e2(0x243)])==null?void 0x0:_0x26b92f[_0x4e94e2(0x244)]())||''),this[_0x4e94e2(0x352)][_0x4e94e2(0x301)]({'Authorization':_0x4e94e2(0x2b5)+((_0x3b82af=_0x2963c8[_0x4e94e2(0x243)])==null?void 0x0:_0x3b82af[_0x4e94e2(0x244)]())}),this['_messageService'][_0x4e94e2(0x303)]({'type':_0x374083[_0x4e94e2(0x236)][_0x4e94e2(0x26b)],'content':this['_localeService']['t'](_0x4e94e2(0x33f))}),setTimeout(()=>{const _0x39c25b=_0x4e94e2;this[_0x39c25b(0x246)][_0x39c25b(0x219)](_0x1634fb);},0x320);}catch(_0x4fad52){this['_logService'][_0x4e94e2(0x1dc)](_0x4e94e2(0x272),_0x4fad52),this['_messageService']['show']({'type':_0x374083[_0x4e94e2(0x236)]['Error'],'content':this[_0x4e94e2(0x2da)]['t'](_0x4e94e2(0x235))});}finally{this[_0x4e94e2(0x344)][_0x4e94e2(0x1e0)](!0x1);}}),(this['_injector']=_0x489a09,this[_0x53d609(0x35d)]=_0xb4f6e9,this[_0x53d609(0x220)]=_0x15f51f,this[_0x53d609(0x2c2)]=_0x598176,this[_0x53d609(0x246)]=_0x5bb834,this[_0x53d609(0x332)]=_0x368702,this['_componentManager']=_0x38e29b,this[_0x53d609(0x2da)]=_0x1338b5,this[_0x53d609(0x334)]=_0xc34bd4,this[_0x53d609(0x352)]=_0x2c04a3,this[_0x53d609(0x1e7)](),this['_loadStoredApiKey'](),this[_0x53d609(0x206)]());}['showConfigPanel'](){const _0x167196=_0x2d9228,_0x42b558=this['_configService']['getConfig'](_0x586bb7);_0x42b558!=null&&_0x42b558[_0x167196(0x27d)]&&this[_0x167196(0x246)][_0x167196(0x267)]({'id':_0x1634fb,'title':{'title':this[_0x167196(0x2da)]['t'](_0x167196(0x35c))},'children':{'label':_0x167196(0x1f9)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x407f7b=_0x167196;this[_0x407f7b(0x246)][_0x407f7b(0x219)](_0x1634fb);}});}[_0x2d9228(0x30c)](){const _0x1bca52=_0x2d9228;return this[_0x1bca52(0x223)][_0x1bca52(0x212)];}[_0x2d9228(0x206)](){const _0x34d6ca=_0x2d9228;this['disposeWithMe'](this['_componentManager'][_0x34d6ca(0x2b3)]('MCPConfigPanel',this[_0x34d6ca(0x31b)]()));}['_createConfigPanelComponent'](){const _0x1588d0=_0x2d9228;return _0x3de351[_0x1588d0(0x304)](()=>{const _0x5d4132=_0x1588d0;var _0xb851e3,_0x255930,_0x1a53f8;return _0x43b48c['jsx'](_0x24daf5,{'config':this[_0x5d4132(0x310)]['value'],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x5d4132(0x212)],'currentApiKey$':this[_0x5d4132(0x22e)],'onSave':this[_0x5d4132(0x227)],'loading':this['_loading$'][_0x5d4132(0x212)],'connectionStatus$':(_0xb851e3=this[_0x5d4132(0x352)])==null?void 0x0:_0xb851e3[_0x5d4132(0x2ff)],'connectionError$':(_0x255930=this[_0x5d4132(0x352)])==null?void 0x0:_0x255930[_0x5d4132(0x20d)],'currentSessionId$':(_0x1a53f8=this['_mcpConnectionController'])==null?void 0x0:_0x1a53f8[_0x5d4132(0x299)]});},this[_0x1588d0(0x1f6)]);}[_0x2d9228(0x1e7)](){const _0x3268bc=_0x2d9228;this[_0x3268bc(0x317)](this[_0x3268bc(0x220)][_0x3268bc(0x355)](_0x40b3f6[_0x3268bc(0x1f7)])[_0x3268bc(0x326)](_0x33f565=>{this['_mcpCoreConfig$']['next'](_0x33f565||{});}));const _0x9d6a32=this[_0x3268bc(0x220)]['getConfig'](_0x40b3f6[_0x3268bc(0x1f7)]);this[_0x3268bc(0x223)][_0x3268bc(0x1e0)](_0x9d6a32||{}),this[_0x3268bc(0x317)](this[_0x3268bc(0x220)][_0x3268bc(0x355)](_0x586bb7)[_0x3268bc(0x326)](_0x102b78=>{const _0x198615=_0x3268bc;this['_config$'][_0x198615(0x1e0)](_0x102b78||{});}));const _0x12960d=this[_0x3268bc(0x220)]['getConfig'](_0x586bb7);this[_0x3268bc(0x310)][_0x3268bc(0x1e0)](_0x12960d||{});}async[_0x2d9228(0x1dd)](){const _0x15d6a8=_0x2d9228,_0x3ccc59=this['_configService']['getConfig'](_0x586bb7);if(!(_0x3ccc59!=null&&_0x3ccc59[_0x15d6a8(0x27d)]))return;const _0x254c5a=await this[_0x15d6a8(0x2c2)]['getItem'](_0x5c3c23);_0x254c5a&&(this['_mcpConnectionController'][_0x15d6a8(0x301)]({'Authorization':_0x15d6a8(0x2b5)+_0x254c5a}),this[_0x15d6a8(0x22e)]['next'](_0x254c5a));}async[_0x2d9228(0x20a)](_0x4c781b){const _0x40f6e6=_0x2d9228;if(!_0x4c781b[_0x40f6e6(0x243)]||_0x4c781b['apiKey']['trim']()[_0x40f6e6(0x201)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x40f6e6(0x2da)]['t'](_0x40f6e6(0x32c))};if(_0x4c781b[_0x40f6e6(0x243)][_0x40f6e6(0x244)]()[_0x40f6e6(0x201)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x40f6e6(0x2da)]['t'](_0x40f6e6(0x360))};try{const _0x2221ef=await this[_0x40f6e6(0x1f6)][_0x40f6e6(0x2d6)](_0x40b3f6[_0x40f6e6(0x321)])[_0x40f6e6(0x2ed)](_0x4c781b['apiKey']['trim']());return _0x2221ef[_0x40f6e6(0x237)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2221ef['error']||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x2e0415){return console['warn'](_0x40f6e6(0x1ea),_0x2e0415),{'isValid':!0x0};}}},_0x3452af[_0x2d9228(0x2d4)]=_0x5856da([_0x2a19ad(0x0,_0x4a314f[_0x2d9228(0x364)](_0x4a314f[_0x2d9228(0x1ec)])),_0x2a19ad(0x1,_0x3de351['IUIPartsService']),_0x2a19ad(0x2,_0x4a314f[_0x2d9228(0x265)]),_0x2a19ad(0x3,_0x4a314f[_0x2d9228(0x2af)]),_0x2a19ad(0x4,_0x3de351[_0x2d9228(0x25c)]),_0x2a19ad(0x5,_0x3de351['IMessageService']),_0x2a19ad(0x6,_0x4a314f['Inject'](_0x3de351['ComponentManager'])),_0x2a19ad(0x7,_0x4a314f[_0x2d9228(0x364)](_0x4a314f['LocaleService'])),_0x2a19ad(0x8,_0x4a314f[_0x2d9228(0x254)]),_0x2a19ad(0x9,_0x4a314f[_0x2d9228(0x364)](_0x40b3f6[_0x2d9228(0x321)]))],_0x3452af[_0x2d9228(0x2d4)]);const _0x20f2ab={'id':_0x2d9228(0x369),'type':_0x4a314f[_0x2d9228(0x278)]['COMMAND'],'handler':async(_0x34d8f1,_0x51e1f5)=>(_0x34d8f1[_0x2d9228(0x2d6)](_0x3452af[_0x2d9228(0x2d4)])['showConfigPanel'](),!0x0)};function _0x39b878(_0xac8b7b,_0x166672){const _0xb8ccb=_0x2d9228;switch(_0xac8b7b){case _0x40b3f6[_0xb8ccb(0x274)]['DISCONNECTED']:return _0xb8ccb(0x22c);case _0x40b3f6[_0xb8ccb(0x274)]['CONNECTING']:return _0xb8ccb(0x312);case _0x40b3f6[_0xb8ccb(0x274)][_0xb8ccb(0x2e8)]:return'mcpStatus.connected';case _0x40b3f6[_0xb8ccb(0x274)][_0xb8ccb(0x255)]:switch(_0x166672){case _0x40b3f6[_0xb8ccb(0x2c4)][_0xb8ccb(0x27a)]:return'mcpStatus.unauthorized';case _0x40b3f6['MCPConnectionError'][_0xb8ccb(0x26d)]:return _0xb8ccb(0x2ec);case _0x40b3f6['MCPConnectionError']['NETWORK_ERROR']:return _0xb8ccb(0x2c9);case _0x40b3f6['MCPConnectionError'][_0xb8ccb(0x1d9)]:return _0xb8ccb(0x1d8);default:return'mcpStatus.failed';}case _0x40b3f6[_0xb8ccb(0x274)][_0xb8ccb(0x27b)]:return _0xb8ccb(0x302);default:return'mcpStatus.unknown';}}function _0x7b84dd(_0x1815f6,_0x12a508,_0x16c838,_0x4d6c0a=!0x0){const _0x545508=_0x2d9228,_0x119248=_0x39b878(_0x1815f6,_0x12a508),_0x1fb3f7=_0x16c838['t'](_0x119248);return _0x4d6c0a?_0x1815f6===_0x40b3f6[_0x545508(0x274)][_0x545508(0x2bb)]&&_0x12a508===_0x40b3f6['MCPConnectionError'][_0x545508(0x27a)]?_0x1fb3f7+_0x545508(0x250)+_0x16c838['t'](_0x545508(0x23e)):_0x1815f6===_0x40b3f6[_0x545508(0x274)][_0x545508(0x2e8)]?''+_0x1fb3f7:_0x1815f6===_0x40b3f6[_0x545508(0x274)][_0x545508(0x2bb)]||_0x1815f6===_0x40b3f6[_0x545508(0x274)]['FAILED']?_0x1fb3f7+'\x20-\x20'+_0x16c838['t'](_0x545508(0x2ea)):_0x1fb3f7:_0x1fb3f7;}function _0x250b55(_0x4d556f){const _0x2ea1d1=_0x2d9228;switch(_0x4d556f){case _0x40b3f6['MCPConnectionStatus'][_0x2ea1d1(0x2e8)]:return'univer-text-green-500';case _0x40b3f6['MCPConnectionStatus']['CONNECTING']:case _0x40b3f6[_0x2ea1d1(0x274)][_0x2ea1d1(0x27b)]:return _0x2ea1d1(0x323);case _0x40b3f6[_0x2ea1d1(0x274)][_0x2ea1d1(0x255)]:case _0x40b3f6[_0x2ea1d1(0x274)][_0x2ea1d1(0x2bb)]:return'univer-text-red-500';default:return _0x2ea1d1(0x1e8);}}function _0x3b220e(_0x522cb2){const _0x331b69=_0x2d9228,{status$:_0x4047de,error$:_0x588db5,onConfigure:_0x5f520e,showClickable:_0x20d443=!0x0}=_0x522cb2,_0x3195b4=_0x3de351[_0x331b69(0x2ee)](_0x4047de,_0x40b3f6[_0x331b69(0x274)]['DISCONNECTED']),_0x470604=_0x3de351['useObservable'](_0x588db5,_0x40b3f6[_0x331b69(0x2c4)]['NONE']),_0x257d94=_0x3de351['useDependency'](_0x4a314f['LocaleService']),_0x5052af=_0x3195b4===_0x40b3f6[_0x331b69(0x274)][_0x331b69(0x2e8)];_0x3195b4===_0x40b3f6['MCPConnectionStatus']['CONNECTING']||_0x40b3f6[_0x331b69(0x274)][_0x331b69(0x27b)];const _0x3226a7=_0x257d94['t'](_0x39b878(_0x3195b4,_0x470604)),_0x37ad85=_0x7b84dd(_0x3195b4,_0x470604,_0x257d94,_0x20d443),_0xf2abe8=_0x250b55(_0x3195b4),_0x5b61a1=_0x5052af?_0x43b48c['jsx'](_0x35fecd,{}):_0x43b48c[_0x331b69(0x24b)](_0x11aa95,{}),_0x5e9794=_0x49ad4d[_0x331b69(0x2bc)](()=>{_0x20d443&&_0x5f520e&&_0x5f520e();},[_0x20d443,_0x5f520e]);function _0x523c8f(){const _0x260a79=_0x331b69;return _0x43b48c['jsxs']('div',{'className':_0x374083['clsx'](_0x260a79(0x260),_0x20d443&&_0x5f520e&&_0x260a79(0x2f3)),'role':_0x260a79(0x247),'onClick':_0x20d443&&_0x5f520e?_0x5e9794:void 0x0,'children':[_0x43b48c[_0x260a79(0x24b)](_0x260a79(0x309),{'className':_0x374083[_0x260a79(0x2f4)](_0x260a79(0x252),_0xf2abe8),'children':_0x5b61a1}),_0x43b48c[_0x260a79(0x24b)](_0x260a79(0x309),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3226a7})]});}return _0x43b48c[_0x331b69(0x24b)](_0x374083[_0x331b69(0x225)],{'title':_0x37ad85,'placement':_0x331b69(0x341),'children':_0x523c8f()});}var _0x1e0891=Object[_0x2d9228(0x316)],_0x42df5f=(_0x43547d,_0x4302b5,_0x230565,_0x71222d)=>{const _0x2623d9=_0x2d9228;for(var _0x4e9f78=_0x71222d>0x1?void 0x0:_0x71222d?_0x1e0891(_0x4302b5,_0x230565):_0x4302b5,_0x461094=_0x43547d[_0x2623d9(0x201)]-0x1,_0x1bc9a1;_0x461094>=0x0;_0x461094--)(_0x1bc9a1=_0x43547d[_0x461094])&&(_0x4e9f78=_0x1bc9a1(_0x4e9f78)||_0x4e9f78);return _0x4e9f78;},_0x494de9=(_0x4484d8,_0x52d6ea)=>(_0x42d711,_0x58af0f)=>_0x52d6ea(_0x42d711,_0x58af0f,_0x4484d8);_0x3452af['MCPConnectionUIController']=class extends _0x4a314f[_0x2d9228(0x253)]{constructor(_0xa8b284,_0x58e5f3,_0x113f53,_0x373f46){const _0x120f41=_0x2d9228;super(),this['_injector']=_0xa8b284,this['_connectionController']=_0x58e5f3,this[_0x120f41(0x35d)]=_0x113f53,this[_0x120f41(0x220)]=_0x373f46,this['_initAutoConnect'](),this['_initStatusComponent']();}[_0x2d9228(0x298)](){const _0x417a8b=_0x2d9228,_0xa3d354=this['_configService'][_0x417a8b(0x359)](_0x586bb7);_0xa3d354!=null&&_0xa3d354[_0x417a8b(0x27d)]&&(this['_connectionController'][_0x417a8b(0x345)]=!0x1);}[_0x2d9228(0x2f1)](){const _0x40f3e0=_0x2d9228,_0x4c9b79=this[_0x40f3e0(0x220)][_0x40f3e0(0x359)](_0x586bb7);(_0x4c9b79==null?void 0x0:_0x4c9b79[_0x40f3e0(0x241)])!==!0x1&&this[_0x40f3e0(0x317)](this['_uiPartsService']['registerComponent'](_0x3de351[_0x40f3e0(0x21c)][_0x40f3e0(0x291)],()=>{const _0x470205=_0x40f3e0;var _0x26e914;return _0x3de351[_0x470205(0x304)](_0x2525fb({'status$':this[_0x470205(0x2cc)]['connectionStatus$'],'error$':this[_0x470205(0x2cc)][_0x470205(0x20d)],'onConfigure':()=>this[_0x470205(0x337)](),'showClickable':(_0x26e914=_0x4c9b79==null?void 0x0:_0x4c9b79['showDeveloperTools'])!=null?_0x26e914:!0x1}),this[_0x470205(0x1f6)]);}));}[_0x2d9228(0x337)](){const _0x59d494=_0x2d9228;this['_injector'][_0x59d494(0x2d6)](_0x3452af[_0x59d494(0x2d4)])[_0x59d494(0x211)]();}},_0x3452af[_0x2d9228(0x262)]=_0x42df5f([_0x494de9(0x0,_0x4a314f[_0x2d9228(0x364)](_0x4a314f['Injector'])),_0x494de9(0x1,_0x4a314f['Inject'](_0x40b3f6[_0x2d9228(0x321)])),_0x494de9(0x2,_0x3de351['IUIPartsService']),_0x494de9(0x3,_0x4a314f[_0x2d9228(0x265)])],_0x3452af[_0x2d9228(0x262)]);function _0x2525fb(_0x2f6917){const {status$:_0x329faf,error$:_0x3a7417,onConfigure:_0x1bbcc8,showClickable:_0x5df896}=_0x2f6917;return function(){const _0x3acec1=_0x4445;return _0x43b48c[_0x3acec1(0x24b)](_0x3b220e,{'status$':_0x329faf,'error$':_0x3a7417,'onConfigure':_0x1bbcc8,'showClickable':_0x5df896});};}function _0x322b42(_0x4e9b41){const _0x2d386c=_0x2d9228;return{'id':_0x20f2ab['id'],'type':_0x3de351[_0x2d386c(0x296)][_0x2d386c(0x261)],'icon':_0x2d386c(0x2a1),'title':'mcpConfig.title','tooltip':_0x2d386c(0x35c)};}const _0x31936e={[_0x3de351[_0x2d9228(0x2fe)][_0x2d9228(0x2d1)]]:{[_0x20f2ab['id']]:{'order':0xa,'menuItemFactory':_0x322b42}}};var _0x227dd1=Object['getOwnPropertyDescriptor'],_0x48d47d=(_0x12b256,_0x516770,_0x256c10,_0x4dc63a)=>{const _0x5d72e3=_0x2d9228;for(var _0x36a931=_0x4dc63a>0x1?void 0x0:_0x4dc63a?_0x227dd1(_0x516770,_0x256c10):_0x516770,_0x19b599=_0x12b256[_0x5d72e3(0x201)]-0x1,_0x585d90;_0x19b599>=0x0;_0x19b599--)(_0x585d90=_0x12b256[_0x19b599])&&(_0x36a931=_0x585d90(_0x36a931)||_0x36a931);return _0x36a931;},_0xead9cc=(_0x319977,_0x3546ee)=>(_0x7fd21c,_0x2c293a)=>_0x3546ee(_0x7fd21c,_0x2c293a,_0x319977);_0x3452af['MCPUIMenuController']=class extends _0x4a314f[_0x2d9228(0x253)]{constructor(_0x317ea7,_0x2156db){const _0x4a17bd=_0x2d9228;super(),this[_0x4a17bd(0x25e)]=_0x317ea7,this[_0x4a17bd(0x1fd)]=_0x2156db,this['_initializeCommands'](),this[_0x4a17bd(0x295)]();}[_0x2d9228(0x286)](){[_0x20f2ab]['forEach'](_0x13168c=>{const _0x535d61=_0x4445;this['disposeWithMe'](this['_commandService'][_0x535d61(0x22d)](_0x13168c));});}[_0x2d9228(0x295)](){const _0x43e5e5=_0x2d9228;this[_0x43e5e5(0x1fd)]['mergeMenu'](_0x31936e);}},_0x3452af[_0x2d9228(0x20e)]=_0x48d47d([_0xead9cc(0x0,_0x4a314f[_0x2d9228(0x1eb)]),_0xead9cc(0x1,_0x3de351[_0x2d9228(0x2b2)])],_0x3452af[_0x2d9228(0x20e)]);const _0x651f2e={'mcpStatus':{'disconnected':_0x2d9228(0x2d3),'connecting':'MCP\x20Connecting...','connected':_0x2d9228(0x2c5),'failed':_0x2d9228(0x2cf),'retrying':_0x2d9228(0x285),'unknown':_0x2d9228(0x30b),'unauthorized':_0x2d9228(0x358),'sessionOccupied':_0x2d9228(0x2d0),'networkError':_0x2d9228(0x35b),'maxRetriesExceeded':_0x2d9228(0x366),'clickToConnect':_0x2d9228(0x297),'clickToConfigure':_0x2d9228(0x1f0)},'mcpConfig':{'title':_0x2d9228(0x27f),'description':_0x2d9228(0x34a),'apiKey':_0x2d9228(0x24e),'apiKeyPlaceholder':_0x2d9228(0x336),'apiKeyHint':_0x2d9228(0x30a),'enableAuth':_0x2d9228(0x292),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2d9228(0x2f0),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2d9228(0x35a),'configStepTitle':_0x2d9228(0x2f7),'configStep1':_0x2d9228(0x1ff),'configStep2':_0x2d9228(0x31d),'configStep3':_0x2d9228(0x2b4),'sessionId':_0x2d9228(0x2b8),'sessionIdDescription':_0x2d9228(0x215),'authorizationDescription':_0x2d9228(0x2d5),'configParameters':_0x2d9228(0x288),'maxRetries':'Max\x20Retries','save':_0x2d9228(0x1db),'saving':_0x2d9228(0x2b9),'note1':_0x2d9228(0x343),'note2':_0x2d9228(0x31e),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2d9228(0x24d),'apiApplyInfo':{'title':_0x2d9228(0x2f8),'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':_0x2d9228(0x2c1),'getStarted':_0x2d9228(0x1f3)},'validation':{'apiKeyRequired':_0x2d9228(0x30d),'apiKeyTooShort':_0x2d9228(0x2ca),'invalidConfig':_0x2d9228(0x356),'invalidApiKey':_0x2d9228(0x248)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2d9228(0x1d5),'connected':_0x2d9228(0x231),'failed':_0x2d9228(0x276),'retrying':_0x2d9228(0x2a2)},'connectionError':{'unauthorized':_0x2d9228(0x1d6),'sessionOccupied':_0x2d9228(0x213),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2d9228(0x2e5)}}},_0x556e22={'mcpStatus':{'disconnected':_0x2d9228(0x25b),'connecting':_0x2d9228(0x249),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x2d9228(0x2dc),'unknown':'MCP\x20状态未知','unauthorized':_0x2d9228(0x2dd),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x2d9228(0x209),'maxRetriesExceeded':_0x2d9228(0x2e0),'clickToConnect':_0x2d9228(0x28e),'clickToConfigure':_0x2d9228(0x328)},'mcpConfig':{'title':_0x2d9228(0x368),'description':_0x2d9228(0x21d),'apiKey':_0x2d9228(0x26e),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x2d9228(0x214),'enableAuthHint':_0x2d9228(0x2e6),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x2d9228(0x33b),'configInstructions':_0x2d9228(0x350),'configStepTitle':_0x2d9228(0x2e4),'configStep1':_0x2d9228(0x347),'configStep2':_0x2d9228(0x2ce),'configStep3':_0x2d9228(0x259),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x2d9228(0x1e9),'configParameters':_0x2d9228(0x24f),'maxRetries':_0x2d9228(0x23f),'save':_0x2d9228(0x348),'saving':_0x2d9228(0x338),'note1':_0x2d9228(0x28d),'note2':_0x2d9228(0x2a9),'configSaved':_0x2d9228(0x30f),'configError':_0x2d9228(0x35f),'apiApplyInfo':{'title':_0x2d9228(0x2eb),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x2d9228(0x2e7),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x2d9228(0x2aa),'apiKeyTooShort':_0x2d9228(0x2a3),'invalidConfig':_0x2d9228(0x1e4),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x2d9228(0x218),'connecting':_0x2d9228(0x282),'connected':_0x2d9228(0x2f6),'failed':_0x2d9228(0x20b),'retrying':_0x2d9228(0x2fc)},'connectionError':{'unauthorized':_0x2d9228(0x329),'sessionOccupied':_0x2d9228(0x2cd),'networkError':_0x2d9228(0x22a),'maxRetriesExceeded':_0x2d9228(0x1fa)}}};var _0x430113=Object[_0x2d9228(0x257)],_0x4ce268=Object[_0x2d9228(0x316)],_0x5baeca=(_0x3b7f6c,_0x1b7685,_0x52bb7e)=>_0x1b7685 in _0x3b7f6c?_0x430113(_0x3b7f6c,_0x1b7685,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52bb7e}):_0x3b7f6c[_0x1b7685]=_0x52bb7e,_0x1ee6f3=(_0x538b31,_0x1fbe82,_0x17c91c,_0x5a459c)=>{const _0x433b25=_0x2d9228;for(var _0x34256e=_0x5a459c>0x1?void 0x0:_0x5a459c?_0x4ce268(_0x1fbe82,_0x17c91c):_0x1fbe82,_0x2a49a1=_0x538b31[_0x433b25(0x201)]-0x1,_0x26d7a9;_0x2a49a1>=0x0;_0x2a49a1--)(_0x26d7a9=_0x538b31[_0x2a49a1])&&(_0x34256e=_0x26d7a9(_0x34256e)||_0x34256e);return _0x34256e;},_0x2282f0=(_0x66b95a,_0x1769a4)=>(_0x2fcd24,_0x101d64)=>_0x1769a4(_0x2fcd24,_0x101d64,_0x66b95a),_0x5965a3=(_0x41e6ec,_0x3b8651,_0x5a2302)=>_0x5baeca(_0x41e6ec,_0x3b8651+'',_0x5a2302);_0x3452af['UniverMCPUIPlugin']=class extends _0x4a314f['Plugin']{constructor(_0x4a2269=_0x1c746d,_0x537a29,_0x1e8ab2,_0x4062aa,_0x213741,_0x38bc11){const _0x17fea3=_0x2d9228;super(),this[_0x17fea3(0x25a)]=_0x4a2269,this[_0x17fea3(0x1f6)]=_0x537a29,this[_0x17fea3(0x220)]=_0x1e8ab2,this[_0x17fea3(0x35d)]=_0x4062aa,this[_0x17fea3(0x2c2)]=_0x213741,this[_0x17fea3(0x2da)]=_0x38bc11;const {..._0x4271bd}=_0x4a314f['merge']({},_0x1c746d,this[_0x17fea3(0x25a)]);this[_0x17fea3(0x220)][_0x17fea3(0x1ed)](_0x586bb7,_0x4271bd);}async[_0x2d9228(0x2de)](){const _0x39cbdd=_0x2d9228,_0x2dd893=[[_0x3452af['MCPConnectionUIController']],[_0x3452af['MCPConfigUIController']],[_0x3452af[_0x39cbdd(0x20e)]]];this['_injector'][_0x39cbdd(0x1ee)](_0x3d1dc4[_0x39cbdd(0x34d)])||_0x2dd893[_0x39cbdd(0x349)]([_0x3d1dc4[_0x39cbdd(0x34d)],{'useClass':_0x3d1dc4[_0x39cbdd(0x205)]}]),_0x2dd893['forEach'](_0x25387f=>this[_0x39cbdd(0x1f6)][_0x39cbdd(0x2ba)](_0x25387f)),this[_0x39cbdd(0x1f6)][_0x39cbdd(0x2d6)](_0x3452af[_0x39cbdd(0x262)]),this[_0x39cbdd(0x1f6)][_0x39cbdd(0x2d6)](_0x3452af[_0x39cbdd(0x2d4)]),this[_0x39cbdd(0x1f6)][_0x39cbdd(0x2d6)](_0x3452af[_0x39cbdd(0x20e)]);}},_0x5965a3(_0x3452af['UniverMCPUIPlugin'],_0x2d9228(0x363),'MCP_UI_PLUGIN'),_0x3452af[_0x2d9228(0x33d)]=_0x1ee6f3([_0x4a314f[_0x2d9228(0x21f)](_0x40b3f6[_0x2d9228(0x232)]),_0x2282f0(0x1,_0x4a314f['Inject'](_0x4a314f[_0x2d9228(0x1ec)])),_0x2282f0(0x2,_0x4a314f[_0x2d9228(0x265)]),_0x2282f0(0x3,_0x3de351[_0x2d9228(0x2f9)]),_0x2282f0(0x4,_0x4a314f['ILocalStorageService']),_0x2282f0(0x5,_0x4a314f['Inject'](_0x4a314f[_0x2d9228(0x2ef)]))],_0x3452af[_0x2d9228(0x33d)]),_0x3452af[_0x2d9228(0x1f9)]=_0x24daf5,_0x3452af[_0x2d9228(0x217)]=_0x3b220e,_0x3452af[_0x2d9228(0x239)]=_0x20f2ab,_0x3452af[_0x2d9228(0x2a0)]=_0x651f2e,_0x3452af[_0x2d9228(0x331)]=_0x556e22,Object['defineProperty'](_0x3452af,Symbol[_0x2d9228(0x1da)],{'value':_0x2d9228(0x1f8)});}));
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x8a30(_0x4e2eb9,_0x57b0e1){var _0x12d8e1=_0x12d8();return _0x8a30=function(_0x8a3030,_0x16c9a2){_0x8a3030=_0x8a3030-0x1ec;var _0x48ff2b=_0x12d8e1[_0x8a3030];return _0x48ff2b;},_0x8a30(_0x4e2eb9,_0x57b0e1);}function _0x12d8(){var _0x4102c8=['4869990rTQLDS','198dQtqVh','1392356RllOSH','Configuration\x20Parameters:','MCP\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20authentication\x20for\x20secure\x20connections','What\x20is\x20API\x20Key?','object','API\x20key\x20is\x20required','Connecting...','4qdShll','Retrying...','Configuration\x20saved\x20successfully','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','730753ELTMbR','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20configure\x20MCP','Connected','MCP\x20Connecting...','16STTdkg','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Steps:','Univer\x20AI\x20Console','Invalid\x20configuration','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','amd','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connection\x20Failed','Session\x20ID','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Disconnected','2297181gsNPXm','MCP\x20Retrying...','Failed\x20to\x20save\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.','Saving...','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key','1624473RQrQsj','20ecdfgS','45451bSNGrX','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','exports','function','Click\x20to\x20connect\x20MCP','7358219duTbpj','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x12d8=function(){return _0x4102c8;};return _0x12d8();}(function(_0x44c19e,_0x22f125){var _0x526590=_0x8a30,_0x109475=_0x44c19e();while(!![]){try{var _0x597710=parseInt(_0x526590(0x20d))/0x1+-parseInt(_0x526590(0x200))/0x2+-parseInt(_0x526590(0x221))/0x3*(-parseInt(_0x526590(0x209))/0x4)+-parseInt(_0x526590(0x1fe))/0x5+-parseInt(_0x526590(0x1ff))/0x6*(parseInt(_0x526590(0x1f4))/0x7)+-parseInt(_0x526590(0x212))/0x8*(parseInt(_0x526590(0x1f2))/0x9)+-parseInt(_0x526590(0x1f3))/0xa*(-parseInt(_0x526590(0x1f9))/0xb);if(_0x597710===_0x22f125)break;else _0x109475['push'](_0x109475['shift']());}catch(_0x2120d5){_0x109475['push'](_0x109475['shift']());}}}(_0x12d8,0x8fc63),function(_0x3df105,_0x25460a){var _0x375492=_0x8a30;typeof exports==_0x375492(0x206)&&typeof module<'u'?module[_0x375492(0x1f6)]=_0x25460a():typeof define==_0x375492(0x1f7)&&define[_0x375492(0x21b)]?define(_0x25460a):(_0x3df105=typeof globalThis<'u'?globalThis:_0x3df105||self,_0x3df105['UniverProMcpUiCaES']=_0x25460a());}(this,function(){'use strict';var _0x2d1a0f=_0x8a30;return{'mcpStatus':{'disconnected':_0x2d1a0f(0x220),'connecting':_0x2d1a0f(0x211),'connected':'MCP\x20Connected','failed':_0x2d1a0f(0x21d),'retrying':_0x2d1a0f(0x222),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2d1a0f(0x1ee),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2d1a0f(0x213),'maxRetriesExceeded':_0x2d1a0f(0x21a),'clickToConnect':_0x2d1a0f(0x1f8),'clickToConfigure':_0x2d1a0f(0x20f)},'mcpConfig':{'title':_0x2d1a0f(0x202),'description':_0x2d1a0f(0x1ef),'apiKey':_0x2d1a0f(0x1f1),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2d1a0f(0x1fc),'enableAuthHint':_0x2d1a0f(0x204),'connectionInfo':_0x2d1a0f(0x224),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2d1a0f(0x1f5),'configStepTitle':_0x2d1a0f(0x216),'configStep1':_0x2d1a0f(0x21f),'configStep2':_0x2d1a0f(0x20e),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2d1a0f(0x21e),'sessionIdDescription':_0x2d1a0f(0x1fd),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2d1a0f(0x201),'maxRetries':'Max\x20Retries','save':_0x2d1a0f(0x219),'saving':_0x2d1a0f(0x1ed),'note1':_0x2d1a0f(0x20c),'note2':_0x2d1a0f(0x21c),'configSaved':_0x2d1a0f(0x20b),'configError':_0x2d1a0f(0x223),'apiApplyInfo':{'title':_0x2d1a0f(0x205),'description':_0x2d1a0f(0x1ec),'univerAiLabel':_0x2d1a0f(0x217),'getStarted':_0x2d1a0f(0x1fb)},'validation':{'apiKeyRequired':_0x2d1a0f(0x207),'apiKeyTooShort':_0x2d1a0f(0x214),'invalidConfig':_0x2d1a0f(0x218),'invalidApiKey':_0x2d1a0f(0x203)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2d1a0f(0x208),'connected':_0x2d1a0f(0x210),'failed':'Connection\x20Failed','retrying':_0x2d1a0f(0x20a)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2d1a0f(0x1f0),'networkError':_0x2d1a0f(0x1fa),'maxRetriesExceeded':_0x2d1a0f(0x215)}}};}));
|