@univerjs-pro/mcp-ui 0.10.10-nightly.202510180256 → 0.10.10-nightly.202510180327
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x54ec5e=_0x3e03;(function(_0x1415ad,_0x114040){const _0x36553c=_0x3e03,_0x2d67af=_0x1415ad();while(!![]){try{const _0x1f0784=-parseInt(_0x36553c(0x1d5))/0x1*(parseInt(_0x36553c(0x1c0))/0x2)+-parseInt(_0x36553c(0x1e5))/0x3+-parseInt(_0x36553c(0x1ca))/0x4+-parseInt(_0x36553c(0x1c7))/0x5*(parseInt(_0x36553c(0x1d9))/0x6)+-parseInt(_0x36553c(0x1ce))/0x7*(-parseInt(_0x36553c(0x1d4))/0x8)+-parseInt(_0x36553c(0x1c3))/0x9+parseInt(_0x36553c(0x1c9))/0xa;if(_0x1f0784===_0x114040)break;else _0x2d67af['push'](_0x2d67af['shift']());}catch(_0x24fe4e){_0x2d67af['push'](_0x2d67af['shift']());}}}(_0x4e79,0x5ca2c));function _0x4e79(){const _0x3869df=['MCP\x20Connected','152OQviRY','10tLJhay','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','12mvVfOy','MCP\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Session\x20ID\x20Occupied','Disconnected','Invalid\x20configuration','Connecting...','MCP:\x20Network\x20Error','MCP\x20Connection\x20Failed','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','924258hEdAzu','Configuration\x20Parameters:','Univer\x20AI\x20Console','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','API\x20key\x20is\x20required','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected','MCP\x20Unknown\x20Status','Configuration\x20saved\x20successfully','10444vIPjhh','What\x20is\x20API\x20Key?','Configuration\x20Steps:','6397272JiQITz','Session\x20ID','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','647620fbUdzJ','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','22448410uqKtvS','2837588zuQVVk','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connected','64162cwplMJ','Retrying...','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration'];_0x4e79=function(){return _0x3869df;};return _0x4e79();}function _0x3e03(_0x5b349e,_0xea813d){const _0x4e7977=_0x4e79();return _0x3e03=function(_0x3e0323,_0x296b73){_0x3e0323=_0x3e0323-0x1b8;let _0x3c199f=_0x4e7977[_0x3e0323];return _0x3c199f;},_0x3e03(_0x5b349e,_0xea813d);}const e={'mcpStatus':{'disconnected':_0x54ec5e(0x1bd),'connecting':_0x54ec5e(0x1d0),'connected':_0x54ec5e(0x1d3),'failed':_0x54ec5e(0x1e2),'retrying':'MCP\x20Retrying...','unknown':_0x54ec5e(0x1be),'unauthorized':_0x54ec5e(0x1e8),'sessionOccupied':_0x54ec5e(0x1dd),'networkError':_0x54ec5e(0x1e1),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x54ec5e(0x1da),'description':_0x54ec5e(0x1bc),'apiKey':_0x54ec5e(0x1e3),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x54ec5e(0x1c8),'enableAuth':_0x54ec5e(0x1b9),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x54ec5e(0x1e9),'mcpClientConfig':_0x54ec5e(0x1e9),'configInstructions':_0x54ec5e(0x1dc),'configStepTitle':_0x54ec5e(0x1c2),'configStep1':_0x54ec5e(0x1d6),'configStep2':_0x54ec5e(0x1e4),'configStep3':_0x54ec5e(0x1d8),'sessionId':_0x54ec5e(0x1c4),'sessionIdDescription':_0x54ec5e(0x1cc),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x54ec5e(0x1e6),'maxRetries':_0x54ec5e(0x1d7),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x54ec5e(0x1cb),'note2':_0x54ec5e(0x1ba),'configSaved':_0x54ec5e(0x1bf),'configError':_0x54ec5e(0x1d2),'apiApplyInfo':{'title':_0x54ec5e(0x1c1),'description':_0x54ec5e(0x1c5),'univerAiLabel':_0x54ec5e(0x1e7),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x54ec5e(0x1b8),'apiKeyTooShort':_0x54ec5e(0x1db),'invalidConfig':_0x54ec5e(0x1df),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x54ec5e(0x1de),'connecting':_0x54ec5e(0x1e0),'connected':_0x54ec5e(0x1cd),'failed':_0x54ec5e(0x1c6),'retrying':_0x54ec5e(0x1cf)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x54ec5e(0x1d1),'maxRetriesExceeded':_0x54ec5e(0x1bb)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x56269d=_0x3b4b;function _0x5dfa(){const _0x518c28=['Enter\x20your\x20API\x20key','Univer\x20AI\x20Console','Save\x20Configuration','MCP\x20Disconnected','MCP\x20Configuration','1194099jdZpMi','Click\x20to\x20configure\x20MCP','4792214cvzVbm','Session\x20ID','9669420bMDcmE','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','3WKLtQA','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','3608795YeUXXA','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','6084552djsAFy','Configuration\x20saved\x20successfully','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','MCP:\x20Unauthorized','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Parameters:','Connected','Invalid\x20configuration','API\x20Key','API\x20key\x20is\x20required','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','What\x20is\x20API\x20Key?','Enable\x20Authentication','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Get\x20your\x20API\x20key\x20in\x20seconds','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','29079248Taykrz','MCP:\x20Session\x20ID\x20Occupied','Connection\x20Failed','3217636pwQeRq','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connecting...','MCP\x20Unknown\x20Status'];_0x5dfa=function(){return _0x518c28;};return _0x5dfa();}function _0x3b4b(_0xedebf9,_0x354fbc){const _0x5dfa2c=_0x5dfa();return _0x3b4b=function(_0x3b4b9c,_0x3b21f6){_0x3b4b9c=_0x3b4b9c-0xf2;let _0x217c41=_0x5dfa2c[_0x3b4b9c];return _0x217c41;},_0x3b4b(_0xedebf9,_0x354fbc);}(function(_0x56b81f,_0x42a2ae){const _0x12abe2=_0x3b4b,_0x4e8fcb=_0x56b81f();while(!![]){try{const _0x1658d3=parseInt(_0x12abe2(0x108))/0x1+parseInt(_0x12abe2(0xff))/0x2*(parseInt(_0x12abe2(0x10e))/0x3)+parseInt(_0x12abe2(0x112))/0x4+-parseInt(_0x12abe2(0x110))/0x5+parseInt(_0x12abe2(0x10c))/0x6+-parseInt(_0x12abe2(0x10a))/0x7+-parseInt(_0x12abe2(0xfc))/0x8;if(_0x1658d3===_0x42a2ae)break;else _0x4e8fcb['push'](_0x4e8fcb['shift']());}catch(_0x58124e){_0x4e8fcb['push'](_0x4e8fcb['shift']());}}}(_0x5dfa,0xda596));const e={'mcpStatus':{'disconnected':_0x56269d(0x106),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x56269d(0x114),'unknown':_0x56269d(0x102),'unauthorized':_0x56269d(0x11b),'sessionOccupied':_0x56269d(0xfd),'networkError':_0x56269d(0x11a),'maxRetriesExceeded':_0x56269d(0x119),'clickToConnect':_0x56269d(0xf3),'clickToConfigure':_0x56269d(0x109)},'mcpConfig':{'title':_0x56269d(0x107),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x56269d(0x120),'apiKeyPlaceholder':_0x56269d(0x103),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x56269d(0xf6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x56269d(0xfb),'mcpClientConfig':_0x56269d(0xfb),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x56269d(0x118),'configStep1':_0x56269d(0xf4),'configStep2':_0x56269d(0x10d),'configStep3':_0x56269d(0x111),'sessionId':_0x56269d(0x10b),'sessionIdDescription':_0x56269d(0xf8),'authorizationDescription':_0x56269d(0xf2),'configParameters':_0x56269d(0x11d),'maxRetries':'Max\x20Retries','save':_0x56269d(0x105),'saving':'Saving...','note1':_0x56269d(0x11c),'note2':_0x56269d(0x100),'configSaved':_0x56269d(0x113),'configError':_0x56269d(0x123),'apiApplyInfo':{'title':_0x56269d(0xf5),'description':_0x56269d(0x117),'univerAiLabel':_0x56269d(0x104),'getStarted':_0x56269d(0xf9)},'validation':{'apiKeyRequired':_0x56269d(0x121),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x56269d(0x11f),'invalidApiKey':_0x56269d(0x116)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x56269d(0x101),'connected':_0x56269d(0x11e),'failed':_0x56269d(0xfe),'retrying':_0x56269d(0xf7)},'connectionError':{'unauthorized':_0x56269d(0x10f),'sessionOccupied':_0x56269d(0xfa),'networkError':_0x56269d(0x115),'maxRetriesExceeded':_0x56269d(0x122)}}},n=e;export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3cc97e=_0x4bf3;(function(_0x436b61,_0x1d8801){const _0x4fc1a3=_0x4bf3,_0x5e2e32=_0x436b61();while(!![]){try{const _0x5b7e77=parseInt(_0x4fc1a3(0xa3))/0x1*(parseInt(_0x4fc1a3(0xc2))/0x2)+parseInt(_0x4fc1a3(0xbb))/0x3*(parseInt(_0x4fc1a3(0xb6))/0x4)+-parseInt(_0x4fc1a3(0xc1))/0x5+-parseInt(_0x4fc1a3(0xb2))/0x6*(parseInt(_0x4fc1a3(0xc4))/0x7)+parseInt(_0x4fc1a3(0xbd))/0x8*(parseInt(_0x4fc1a3(0x96))/0x9)+parseInt(_0x4fc1a3(0xb4))/0xa*(-parseInt(_0x4fc1a3(0xb8))/0xb)+parseInt(_0x4fc1a3(0xa8))/0xc;if(_0x5b7e77===_0x1d8801)break;else _0x5e2e32['push'](_0x5e2e32['shift']());}catch(_0x2ecc44){_0x5e2e32['push'](_0x5e2e32['shift']());}}}(_0x3769,0x7b025));const e={'mcpStatus':{'disconnected':_0x3cc97e(0x9f),'connecting':'MCP\x20连接中...','connected':_0x3cc97e(0xac),'failed':'MCP\x20连接失败','retrying':_0x3cc97e(0xbf),'unknown':_0x3cc97e(0xaf),'unauthorized':_0x3cc97e(0xc6),'sessionOccupied':_0x3cc97e(0xc0),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x3cc97e(0xb5),'clickToConnect':_0x3cc97e(0xa1),'clickToConfigure':_0x3cc97e(0xa2)},'mcpConfig':{'title':_0x3cc97e(0x9e),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x3cc97e(0xa5),'apiKeyPlaceholder':_0x3cc97e(0xa7),'apiKeyHint':_0x3cc97e(0xc7),'enableAuth':_0x3cc97e(0xb0),'enableAuthHint':_0x3cc97e(0xa6),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x3cc97e(0x9a),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x3cc97e(0x98),'configStep1':_0x3cc97e(0xab),'configStep2':_0x3cc97e(0x9d),'configStep3':_0x3cc97e(0x9c),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x3cc97e(0xbc),'saving':_0x3cc97e(0x9b),'note1':_0x3cc97e(0xad),'note2':_0x3cc97e(0xa0),'configSaved':_0x3cc97e(0xb7),'configError':_0x3cc97e(0xa4),'apiApplyInfo':{'title':_0x3cc97e(0xba),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x3cc97e(0xb9)},'validation':{'apiKeyRequired':_0x3cc97e(0xbe),'apiKeyTooShort':_0x3cc97e(0xc3),'invalidConfig':'配置无效','invalidApiKey':_0x3cc97e(0xb3)},'connectionStatus':{'disconnected':_0x3cc97e(0xb1),'connecting':'连接中...','connected':_0x3cc97e(0xae),'failed':_0x3cc97e(0xaa),'retrying':_0x3cc97e(0xa9)},'connectionError':{'unauthorized':_0x3cc97e(0x97),'sessionOccupied':_0x3cc97e(0xc5),'networkError':_0x3cc97e(0x99),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x3769(){const _0x32dcd0=['保存中...','重启您的\x20MCP\x20客户端以使配置生效','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20配置','MCP\x20已断开','您的\x20API\x20密钥安全存储在本地存储中','点击连接\x20MCP','点击配置\x20MCP','505518fNTeBG','配置保存失败','API\x20密钥','启用身份验证以获得安全连接','请输入您的\x20API\x20密钥','10896912rrzEXO','重连中...','连接失败','复制以下\x20JSON\x20配置','MCP\x20已连接','配置更改将立即生效','已连接','MCP\x20状态未知','启用身份验证','未连接','36QNNUuU','API\x20密钥无效,请检查密钥是否正确','33690UQCwVN','MCP:\x20超出最大重试次数','2300ALRzQT','配置保存成功','2739kOZadv','几秒钟内获取您的\x20API\x20密钥','什么是\x20API\x20密钥?','3867APIjMy','保存配置','912hyNegn','API\x20密钥不能为空','MCP\x20重连中...','MCP:\x20会话\x20ID\x20已被占用','3272385tLCFfj','2hHAwNC','API\x20密钥长度至少需要\x2010\x20位','251391mopNbW','会话\x20ID\x20已被占用,请稍后再试','MCP:\x20未授权','您的\x20API\x20密钥将在此浏览器中本地存储','4572UdjoSw','权限验证失败,请检查您的\x20API\x20密钥','配置步骤:','网络连接错误,请检查您的网络连接','MCP\x20客户端配置'];_0x3769=function(){return _0x32dcd0;};return _0x3769();}function _0x4bf3(_0x4d08e6,_0x1fb91d){const _0x376923=_0x3769();return _0x4bf3=function(_0x4bf361,_0x404cd4){_0x4bf361=_0x4bf361-0x96;let _0x3047a7=_0x376923[_0x4bf361];return _0x3047a7;},_0x4bf3(_0x4d08e6,_0x1fb91d);}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x21d8(_0x2ee0a0,_0x20a727){const _0x4a8f2d=_0x4a8f();return _0x21d8=function(_0x21d882,_0x2def22){_0x21d882=_0x21d882-0x9b;let _0x20755d=_0x4a8f2d[_0x21d882];return _0x20755d;},_0x21d8(_0x2ee0a0,_0x20a727);}function _0x4a8f(){const _0x35827a=['API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Steps:','Session\x20ID','65585YZsoGc','API\x20key\x20is\x20required','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connection\x20Failed','32rMaeAR','What\x20is\x20API\x20Key?','2112992LpVcRt','5126550LDTmrt','3BycDVA','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Parameters:','API\x20Key','MCP\x20Client\x20Configuration','Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','45272nOyezH','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Saving...','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','MCP\x20Retrying...','45874vuSwej','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','670170ByajOk','Invalid\x20configuration','MCP:\x20Network\x20Error','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','6IPnMwZ','245817nEKbWj','Enter\x20your\x20API\x20key','MCP\x20Configuration'];_0x4a8f=function(){return _0x35827a;};return _0x4a8f();}const _0x28114d=_0x21d8;(function(_0x5a3558,_0x5d80a5){const _0xe968fe=_0x21d8,_0xc03530=_0x5a3558();while(!![]){try{const _0x541cf1=-parseInt(_0xe968fe(0xbe))/0x1+parseInt(_0xe968fe(0xc1))/0x2+-parseInt(_0xe968fe(0xa7))/0x3*(parseInt(_0xe968fe(0xb3))/0x4)+parseInt(_0xe968fe(0x9f))/0x5*(parseInt(_0xe968fe(0xc9))/0x6)+parseInt(_0xe968fe(0xa5))/0x7+-parseInt(_0xe968fe(0xa3))/0x8*(-parseInt(_0xe968fe(0xca))/0x9)+-parseInt(_0xe968fe(0xa6))/0xa;if(_0x541cf1===_0x5d80a5)break;else _0xc03530['push'](_0xc03530['shift']());}catch(_0xedb727){_0xc03530['push'](_0xc03530['shift']());}}}(_0x4a8f,0x2e417));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x28114d(0xb9),'connected':'MCP\x20Connected','failed':_0x28114d(0xa2),'retrying':_0x28114d(0xbd),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x28114d(0xaa),'sessionOccupied':_0x28114d(0xb7),'networkError':_0x28114d(0xc3),'maxRetriesExceeded':_0x28114d(0xc4),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x28114d(0xb1)},'mcpConfig':{'title':_0x28114d(0x9b),'description':_0x28114d(0xc7),'apiKey':_0x28114d(0xad),'apiKeyPlaceholder':_0x28114d(0xcb),'apiKeyHint':_0x28114d(0xc5),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x28114d(0xba),'connectionInfo':_0x28114d(0xae),'mcpClientConfig':_0x28114d(0xae),'configInstructions':_0x28114d(0xb4),'configStepTitle':_0x28114d(0x9d),'configStep1':_0x28114d(0xbf),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x28114d(0xc8),'sessionId':_0x28114d(0x9e),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x28114d(0xb2),'configParameters':_0x28114d(0xac),'maxRetries':_0x28114d(0xc6),'save':'Save\x20Configuration','saving':_0x28114d(0xb8),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x28114d(0xbc),'configError':_0x28114d(0xbb),'apiApplyInfo':{'title':_0x28114d(0xa4),'description':_0x28114d(0xa1),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x28114d(0xa0),'apiKeyTooShort':_0x28114d(0x9c),'invalidConfig':_0x28114d(0xc2),'invalidApiKey':_0x28114d(0xc0)},'connectionStatus':{'disconnected':_0x28114d(0xaf),'connecting':'Connecting...','connected':_0x28114d(0xb5),'failed':_0x28114d(0xb6),'retrying':_0x28114d(0xa8)},'connectionError':{'unauthorized':_0x28114d(0xab),'sessionOccupied':_0x28114d(0xa9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x28114d(0xb0)}}},n=e;export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x590d(_0x454cbe,_0x473f47){var _0x4b3148=_0x4b31();return _0x590d=function(_0x590d2d,_0x1f797c){_0x590d2d=_0x590d2d-0x125;var _0x5bf514=_0x4b3148[_0x590d2d];return _0x5bf514;},_0x590d(_0x454cbe,_0x473f47);}(function(_0x4d33fa,_0x456fbe){var _0x135f09=_0x590d,_0x55bde9=_0x4d33fa();while(!![]){try{var _0x32042d=-parseInt(_0x135f09(0x282))/0x1+-parseInt(_0x135f09(0x180))/0x2+-parseInt(_0x135f09(0x1a6))/0x3*(parseInt(_0x135f09(0x172))/0x4)+-parseInt(_0x135f09(0x23c))/0x5*(parseInt(_0x135f09(0x1b8))/0x6)+-parseInt(_0x135f09(0x164))/0x7*(parseInt(_0x135f09(0x280))/0x8)+-parseInt(_0x135f09(0x203))/0x9+parseInt(_0x135f09(0x19a))/0xa;if(_0x32042d===_0x456fbe)break;else _0x55bde9['push'](_0x55bde9['shift']());}catch(_0x316286){_0x55bde9['push'](_0x55bde9['shift']());}}}(_0x4b31,0xee1f5),function(_0x5888c6,_0x2e9524){var _0x378602=_0x590d;typeof exports==_0x378602(0x251)&&typeof module<'u'?_0x2e9524(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define[_0x378602(0x2ac)]?define([_0x378602(0x1d7),_0x378602(0x20b),'react/jsx-runtime',_0x378602(0x25b),_0x378602(0x236),_0x378602(0x233),_0x378602(0x28c),_0x378602(0x151),_0x378602(0x17d)],_0x2e9524):(_0x5888c6=typeof globalThis<'u'?globalThis:_0x5888c6||self,_0x2e9524(_0x5888c6[_0x378602(0x1dd)]={},_0x5888c6['UniverCore'],_0x5888c6['React'],_0x5888c6[_0x378602(0x1f1)],_0x5888c6[_0x378602(0x24f)],_0x5888c6[_0x378602(0x2a6)],_0x5888c6[_0x378602(0x28c)],_0x5888c6[_0x378602(0x17e)],_0x5888c6[_0x378602(0x157)]));}(this,function(_0x34fc26,_0x1e644d,_0x5ab4b8,_0x772097,_0x37c5aa,_0x146876,_0x331adf,_0xed4c50,_0x54dff2){'use strict';var _0x303884=_0x590d;var _0x2ae62f=Object['defineProperty'],_0x489bce=(_0x1f4ce3,_0x16064a,_0x40f17b)=>_0x16064a in _0x1f4ce3?_0x2ae62f(_0x1f4ce3,_0x16064a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40f17b}):_0x1f4ce3[_0x16064a]=_0x40f17b,_0xb1a834=(_0x53b551,_0x13f679,_0x1b7ade)=>_0x489bce(_0x53b551,typeof _0x13f679!=_0x303884(0x190)?_0x13f679+'':_0x13f679,_0x1b7ade),_0x560e03=function(){var _0x36142c=_0x303884;return _0x560e03=Object[_0x36142c(0x290)]||function(_0x2378f5){var _0x4da104=_0x36142c;for(var _0x542ac2,_0x549ee6=0x1,_0x4d6b47=arguments[_0x4da104(0x134)];_0x549ee6<_0x4d6b47;_0x549ee6++){_0x542ac2=arguments[_0x549ee6];for(var _0x1d969c in _0x542ac2)Object['prototype']['hasOwnProperty'][_0x4da104(0x15c)](_0x542ac2,_0x1d969c)&&(_0x2378f5[_0x1d969c]=_0x542ac2[_0x1d969c]);}return _0x2378f5;},_0x560e03[_0x36142c(0x2a3)](this,arguments);},_0x43edf6=function(_0x26a854,_0x41806f){var _0x32452e=_0x303884,_0xb078e9={};for(var _0x52b41d in _0x26a854)Object['prototype'][_0x32452e(0x14a)]['call'](_0x26a854,_0x52b41d)&&_0x41806f[_0x32452e(0x1d0)](_0x52b41d)<0x0&&(_0xb078e9[_0x52b41d]=_0x26a854[_0x52b41d]);if(_0x26a854!=null&&typeof Object['getOwnPropertySymbols']==_0x32452e(0x1ad)){for(var _0x14b972=0x0,_0x52b41d=Object['getOwnPropertySymbols'](_0x26a854);_0x14b972<_0x52b41d[_0x32452e(0x134)];_0x14b972++)_0x41806f[_0x32452e(0x1d0)](_0x52b41d[_0x14b972])<0x0&&Object[_0x32452e(0x1a5)][_0x32452e(0x1a1)][_0x32452e(0x15c)](_0x26a854,_0x52b41d[_0x14b972])&&(_0xb078e9[_0x52b41d[_0x14b972]]=_0x26a854[_0x52b41d[_0x14b972]]);}return _0xb078e9;},_0x24d39d=_0xed4c50[_0x303884(0x240)](function(_0x23345b,_0xd4c308){var _0x389fcd=_0x303884,_0x3733a8=_0x23345b[_0x389fcd(0x1b6)],_0xdec3f1=_0x23345b['id'],_0x288ce1=_0x23345b[_0x389fcd(0x15f)],_0x1d09d6=_0x23345b[_0x389fcd(0x298)],_0x3123cc=_0x43edf6(_0x23345b,[_0x389fcd(0x1b6),'id',_0x389fcd(0x15f),_0x389fcd(0x298)]),_0xa43289='univerjs-icon\x20univerjs-icon-'['concat'](_0xdec3f1,'\x20')[_0x389fcd(0x28a)](_0x288ce1||'')[_0x389fcd(0x293)](),_0x305c60=_0xed4c50[_0x389fcd(0x1e0)]('_'[_0x389fcd(0x28a)](_0xfc180b()));return _0x565d01(_0x3733a8,''[_0x389fcd(0x28a)](_0xdec3f1),{'defIds':_0x3733a8[_0x389fcd(0x152)],'idSuffix':_0x305c60[_0x389fcd(0x1c1)]},_0x560e03({'ref':_0xd4c308,'className':_0xa43289},_0x3123cc),_0x1d09d6);});function _0x565d01(_0x3fc3ca,_0x1555a5,_0x1316d5,_0x22607f,_0x318f9b){var _0x6b4c43=_0x303884;return _0xed4c50['createElement'](_0x3fc3ca['tag'],_0x560e03(_0x560e03({'key':_0x1555a5},_0x3ec3d3(_0x3fc3ca,_0x1316d5,_0x318f9b)),_0x22607f),(_0x278f48(_0x3fc3ca,_0x1316d5)[_0x6b4c43(0x21a)]||[])[_0x6b4c43(0x2aa)](function(_0x4e745d,_0x38358a){var _0x8d0f8e=_0x6b4c43;return _0x565d01(_0x4e745d,''[_0x8d0f8e(0x28a)](_0x1555a5,'-')[_0x8d0f8e(0x28a)](_0x3fc3ca[_0x8d0f8e(0x1f6)],'-')['concat'](_0x38358a),_0x1316d5,void 0x0,_0x318f9b);}));}function _0x3ec3d3(_0x461102,_0x4edf88,_0x4eccdd){var _0x2b3338=_0x303884,_0x1cc93b=_0x560e03({},_0x461102[_0x2b3338(0x1e9)]);_0x4eccdd!=null&&_0x4eccdd[_0x2b3338(0x217)]&&_0x1cc93b[_0x2b3338(0x1d3)]===_0x2b3338(0x217)&&(_0x1cc93b['fill']=_0x4eccdd[_0x2b3338(0x217)]),_0x461102[_0x2b3338(0x1f6)]===_0x2b3338(0x1e5)&&_0x1cc93b['id']&&(_0x1cc93b['id']=_0x1cc93b['id']+_0x4edf88['idSuffix']),Object['entries'](_0x1cc93b)[_0x2b3338(0x196)](function(_0x2cf977){var _0x4fa8b7=_0x2b3338,_0x507fcc=_0x2cf977[0x0],_0x536c3d=_0x2cf977[0x1];_0x507fcc==='mask'&&typeof _0x536c3d==_0x4fa8b7(0x17f)&&(_0x1cc93b[_0x507fcc]=_0x536c3d[_0x4fa8b7(0x246)](/url\(#(.*)\)/,_0x4fa8b7(0x12c)['concat'](_0x4edf88['idSuffix'],')')));});var _0x3ea3ca=_0x4edf88[_0x2b3338(0x152)];return!_0x3ea3ca||_0x3ea3ca[_0x2b3338(0x134)]===0x0||(_0x461102[_0x2b3338(0x1f6)]===_0x2b3338(0x2be)&&_0x1cc93b['xlink:href']&&(_0x1cc93b[_0x2b3338(0x182)]=_0x1cc93b[_0x2b3338(0x182)]+_0x4edf88['idSuffix']),Object['entries'](_0x1cc93b)[_0x2b3338(0x196)](function(_0x3bc1d0){var _0xeca43e=_0x2b3338,_0x5c5fb4=_0x3bc1d0[0x0],_0x2e08bd=_0x3bc1d0[0x1];typeof _0x2e08bd==_0xeca43e(0x17f)&&(_0x1cc93b[_0x5c5fb4]=_0x2e08bd[_0xeca43e(0x246)](/url\(#(.*)\)/,_0xeca43e(0x12c)['concat'](_0x4edf88['idSuffix'],')')));})),_0x1cc93b;}function _0x278f48(_0x533a26,_0x349454){var _0x3290c2=_0x303884,_0x3031fe,_0x5ecd71=_0x349454['defIds'];return!_0x5ecd71||_0x5ecd71[_0x3290c2(0x134)]===0x0?_0x533a26:_0x533a26[_0x3290c2(0x1f6)]===_0x3290c2(0x29e)&&(!((_0x3031fe=_0x533a26[_0x3290c2(0x21a)])===null||_0x3031fe===void 0x0)&&_0x3031fe['length'])?_0x560e03(_0x560e03({},_0x533a26),{'children':_0x533a26['children'][_0x3290c2(0x2aa)](function(_0x2d079c){var _0x4b49d4=_0x3290c2;return typeof _0x2d079c[_0x4b49d4(0x1e9)]['id']==_0x4b49d4(0x17f)&&_0x5ecd71&&_0x5ecd71[_0x4b49d4(0x29c)](_0x2d079c['attrs']['id'])?_0x560e03(_0x560e03({},_0x2d079c),{'attrs':_0x560e03(_0x560e03({},_0x2d079c[_0x4b49d4(0x1e9)]),{'id':_0x2d079c[_0x4b49d4(0x1e9)]['id']+_0x349454['idSuffix']})}):_0x2d079c;})}):_0x533a26;}function _0xfc180b(){var _0x52b295=_0x303884;return Math['random']()['toString'](0x24)[_0x52b295(0x178)](0x2,0x8);}_0x24d39d[_0x303884(0x24c)]=_0x303884(0x1d5);var _0x51d749={'tag':'svg','attrs':{'xmlns':_0x303884(0x2bd),'fill':'none','viewBox':_0x303884(0x210),'width':_0x303884(0x18c),'height':_0x303884(0x18c)},'children':[{'tag':'path','attrs':{'fill':_0x303884(0x2b0),'d':_0x303884(0x25c),'fillRule':_0x303884(0x28b),'clipRule':_0x303884(0x28b)}}]},_0x58d827=_0xed4c50['forwardRef'](function(_0x8d8bda,_0x182afb){var _0x519050=_0x303884;return _0xed4c50[_0x519050(0x2a0)](_0x24d39d,Object[_0x519050(0x290)]({},_0x8d8bda,{'id':_0x519050(0x1c5),'ref':_0x182afb,'icon':_0x51d749}));});_0x58d827[_0x303884(0x24c)]='CheckMarkIcon';var _0xa84732={'tag':_0x303884(0x20c),'attrs':{'xmlns':_0x303884(0x2bd),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x303884(0x18c),'height':_0x303884(0x18c)},'children':[{'tag':_0x303884(0x15e),'attrs':{'stroke':_0x303884(0x2b0),'d':_0x303884(0x142),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x303884(0x15e),'attrs':{'stroke':'currentColor','d':_0x303884(0x2a7),'strokeLinecap':_0x303884(0x296),'strokeLinejoin':'round','strokeWidth':1.33}}]},_0x449a17=_0xed4c50[_0x303884(0x240)](function(_0x41d140,_0xd98198){var _0x103526=_0x303884;return _0xed4c50[_0x103526(0x2a0)](_0x24d39d,Object['assign']({},_0x41d140,{'id':_0x103526(0x26f),'ref':_0xd98198,'icon':_0xa84732}));});_0x449a17[_0x303884(0x24c)]=_0x303884(0x183);var _0x4a40d4={'tag':_0x303884(0x20c),'attrs':{'xmlns':_0x303884(0x2bd),'fill':_0x303884(0x176),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x303884(0x18c)},'children':[{'tag':_0x303884(0x15e),'attrs':{'fill':_0x303884(0x2b0),'d':_0x303884(0x1b7)}},{'tag':_0x303884(0x15e),'attrs':{'fill':'currentColor','d':_0x303884(0x299)}},{'tag':'path','attrs':{'fill':_0x303884(0x2b0),'d':_0x303884(0x242),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x24823a=_0xed4c50[_0x303884(0x240)](function(_0x472f8c,_0x27d30d){var _0x292315=_0x303884;return _0xed4c50[_0x292315(0x2a0)](_0x24d39d,Object['assign']({},_0x472f8c,{'id':_0x292315(0x229),'ref':_0x27d30d,'icon':_0x4a40d4}));});_0x24823a[_0x303884(0x24c)]=_0x303884(0x1f8);var _0x522205={'tag':_0x303884(0x20c),'attrs':{'xmlns':_0x303884(0x2bd),'fill':_0x303884(0x176),'viewBox':'0\x200\x2016\x2016','width':_0x303884(0x18c),'height':_0x303884(0x18c)},'children':[{'tag':'g','attrs':{'clipPath':_0x303884(0x1ce)},'children':[{'tag':_0x303884(0x15e),'attrs':{'stroke':_0x303884(0x2b0),'d':_0x303884(0x269),'strokeLinecap':'round','strokeLinejoin':_0x303884(0x296),'strokeWidth':1.2}}]},{'tag':_0x303884(0x29e),'attrs':{},'children':[{'tag':_0x303884(0x256),'attrs':{'id':_0x303884(0x1a8)},'children':[{'tag':_0x303884(0x15e),'attrs':{'fill':'white','d':_0x303884(0x279)}}]}]}],'defIds':[_0x303884(0x1a8)]},_0xd1560b=_0xed4c50[_0x303884(0x240)](function(_0x39c955,_0x3a6174){var _0x3c4fe5=_0x303884;return _0xed4c50[_0x3c4fe5(0x2a0)](_0x24d39d,Object[_0x3c4fe5(0x290)]({},_0x39c955,{'id':_0x3c4fe5(0x2ab),'ref':_0x3a6174,'icon':_0x522205}));});_0xd1560b['displayName']=_0x303884(0x14b);var _0x50b376={'tag':_0x303884(0x20c),'attrs':{'xmlns':_0x303884(0x2bd),'fill':_0x303884(0x176),'viewBox':_0x303884(0x146),'width':_0x303884(0x18c),'height':_0x303884(0x18c)},'children':[{'tag':'g','attrs':{'clipPath':_0x303884(0x156)},'children':[{'tag':_0x303884(0x15e),'attrs':{'stroke':'currentColor','d':_0x303884(0x147),'strokeLinecap':_0x303884(0x296),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x303884(0x29e),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x303884(0x15e),'attrs':{'fill':'white','d':_0x303884(0x279),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x50883b=_0xed4c50['forwardRef'](function(_0x4ccdbf,_0x5851ff){var _0x266517=_0x303884;return _0xed4c50[_0x266517(0x2a0)](_0x24d39d,Object['assign']({},_0x4ccdbf,{'id':_0x266517(0x1c7),'ref':_0x5851ff,'icon':_0x50b376}));});_0x50883b[_0x303884(0x24c)]='OnLineIcon';function _0x902359(_0x5c8dbf){var _0x29365f=_0x303884,_0x56a5bf,_0x54ddf3;const {mcpCoreConfig:_0x167082,onSave:_0xe91270,loading:_0x512777=!0x1,config:_0x384a15,connectionStatus$:_0x4c5eb3,connectionError$:_0x43955e,currentApiKey$:_0x1c5c5f,currentSessionId$:_0x4c9e78}=_0x5c8dbf,_0xc0dd20=_0x146876[_0x29365f(0x13f)](_0x1e644d[_0x29365f(0x1a0)]),_0x185e5d=_0x146876[_0x29365f(0x15a)](_0x4c5eb3,_0x772097[_0x29365f(0x264)][_0x29365f(0x16d)]),_0x1d1db8=_0x146876[_0x29365f(0x15a)](_0x43955e,_0x772097['MCPConnectionError'][_0x29365f(0x169)]),_0x48226a=_0x146876[_0x29365f(0x15a)](_0x4c9e78,''),_0x4466b0=_0x146876[_0x29365f(0x15a)](_0x1c5c5f,''),[_0x5888c7,_0x18a0cc]=_0xed4c50['useState'](_0x4466b0||''),_0x2b9961=!0x0,_0xc11501=_0x384a15[_0x29365f(0x270)]&&_0x167082[_0x29365f(0x195)]&&(_0x167082['mcpServerUrl']['includes'](_0x29365f(0x14c))||_0x167082[_0x29365f(0x195)][_0x29365f(0x29c)](_0x29365f(0x243))),_0x1d6511=(_0x56a5bf=_0x167082[_0x29365f(0x195)])==null?void 0x0:_0x56a5bf[_0x29365f(0x29c)]('univer.plus'),_0x130beb=(_0x54ddf3=_0x167082[_0x29365f(0x195)])==null?void 0x0:_0x54ddf3['includes'](_0x29365f(0x243)),_0x46880d=_0x1d6511?_0x29365f(0x288):_0x29365f(0x1c3),_0x10a5eb=_0x384a15[_0x29365f(0x270)]&&(_0x1d6511||_0x130beb),[_0x3b7be8,_0x592451]=_0xed4c50['useState'](!_0x5888c7[_0x29365f(0x293)]()),_0x4189ed=(_0x57829e,_0x4a8df3)=>{var _0x598b99=_0x29365f;if(_0x4a8df3===_0x772097[_0x598b99(0x179)][_0x598b99(0x167)])return _0x598b99(0x1ea);switch(_0x57829e){case _0x772097[_0x598b99(0x264)][_0x598b99(0x1ed)]:return _0x598b99(0x170);case _0x772097['MCPConnectionStatus']['CONNECTING']:case _0x772097[_0x598b99(0x264)][_0x598b99(0x1c2)]:return _0x598b99(0x1d8);case _0x772097[_0x598b99(0x264)]['FAILED']:return _0x598b99(0x1ea);default:return _0x598b99(0x18e);}},_0x46f57e=(_0x806e74,_0x520639)=>{var _0x116354=_0x29365f;if(_0x520639===_0x772097[_0x116354(0x179)]['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x806e74){case _0x772097[_0x116354(0x264)]['CONNECTED']:return'univer-bg-green-500';case _0x772097[_0x116354(0x264)][_0x116354(0x26b)]:case _0x772097[_0x116354(0x264)][_0x116354(0x1c2)]:return'univer-bg-blue-500';case _0x772097['MCPConnectionStatus'][_0x116354(0x127)]:return _0x116354(0x159);default:return _0x116354(0x1ba);}},_0x12a543=_0x216517=>{var _0x51d53f=_0x29365f;switch(_0x216517){case _0x772097[_0x51d53f(0x264)]['CONNECTED']:return _0xc0dd20['t'](_0x51d53f(0x163));case _0x772097[_0x51d53f(0x264)][_0x51d53f(0x26b)]:return _0xc0dd20['t']('mcpConfig.connectionStatus.connecting');case _0x772097['MCPConnectionStatus'][_0x51d53f(0x127)]:return _0xc0dd20['t'](_0x51d53f(0x21f));case _0x772097[_0x51d53f(0x264)][_0x51d53f(0x1c2)]:return _0xc0dd20['t'](_0x51d53f(0x177));default:return _0xc0dd20['t'](_0x51d53f(0x1ff));}},_0x35e166=_0x33a98e=>{var _0x388f01=_0x29365f;switch(_0x33a98e){case _0x772097['MCPConnectionError']['UNAUTHORIZED']:return _0xc0dd20['t'](_0x388f01(0x291));case _0x772097[_0x388f01(0x179)][_0x388f01(0x29b)]:return _0xc0dd20['t']('mcpConfig.connectionError.sessionOccupied');case _0x772097[_0x388f01(0x179)][_0x388f01(0x18f)]:return _0xc0dd20['t'](_0x388f01(0x1c0));case _0x772097[_0x388f01(0x179)][_0x388f01(0x231)]:return _0xc0dd20['t'](_0x388f01(0x1e2));default:return'';}},_0x409507=_0xed4c50[_0x29365f(0x1cc)](()=>{const _0x5ef3e2={..._0x167082,'apiKey':_0x5888c7['trim'](),'enableAuth':_0x2b9961};_0xe91270(_0x5ef3e2);},[_0x167082,_0x5888c7,_0x2b9961,_0xe91270]),_0x2114e7=_0x5888c7['trim']()[_0x29365f(0x134)]>0x0;return _0x5ab4b8['jsxs'](_0x29365f(0x1b0),{'className':_0x29365f(0x267),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x131),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x263),'children':_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':_0x29365f(0x237),'children':'⚙'})}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'children':_0x5ab4b8['jsx']('p',{'className':_0x29365f(0x192),'children':_0xc0dd20['t'](_0x29365f(0x22d))})})]})}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x15d),'children':[_0x5ab4b8['jsx'](_0x29365f(0x1b0),{'className':_0x29365f(0x1bc)+_0x4189ed(_0x185e5d,_0x1d1db8)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x5ab4b8['jsx'](_0x29365f(0x1b0),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x46f57e(_0x185e5d,_0x1d1db8)+_0x29365f(0x26e)}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':_0x29365f(0x21c),'children':_0x12a543(_0x185e5d)})]})}),_0x1d1db8!==_0x772097[_0x29365f(0x179)]['NONE']&&(_0x185e5d===_0x772097[_0x29365f(0x264)][_0x29365f(0x127)]||_0x1d1db8===_0x772097['MCPConnectionError']['UNAUTHORIZED'])&&_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x13a),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':_0x29365f(0x274),'children':'⚠️'}),_0x5ab4b8[_0x29365f(0x129)]('p',{'className':_0x29365f(0x20f),'children':_0x35e166(_0x1d1db8)})]})})]}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x174),'children':_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':'univer-space-y-5','children':[_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x25a),'children':[_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x228),{'className':_0x29365f(0x2a2),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'children':'🔑'}),'\x20',_0xc0dd20['t'](_0x29365f(0x19d)),_0x5ab4b8[_0x29365f(0x129)]('span',{'className':_0x29365f(0x2ba),'children':'*'}),_0xc11501&&_0x5ab4b8[_0x29365f(0x129)]('a',{'href':_0x29365f(0x238),'onClick':()=>_0x592451(!0x0),'className':_0x29365f(0x26a),'title':_0xc0dd20['t'](_0x29365f(0x215)),'children':_0x5ab4b8['jsx'](_0x24823a,{})})]}),_0x5ab4b8[_0x29365f(0x129)](_0x37c5aa[_0x29365f(0x278)],{'type':_0x29365f(0x1a7),'placeholder':_0xc0dd20['t'](_0x29365f(0x1f5)),'value':_0x5888c7,'onChange':_0x18a0cc,'disabled':_0x512777,'autoComplete':'off'}),_0x5ab4b8[_0x29365f(0x129)]('p',{'className':_0x29365f(0x20a),'children':_0xc0dd20['t'](_0x29365f(0x187))})]}),_0xc11501&&_0x3b7be8&&_0x5ab4b8['jsxs'](_0x29365f(0x1b0),{'className':_0x29365f(0x297),'children':[_0x5ab4b8[_0x29365f(0x129)]('a',{'href':_0x29365f(0x238),'onClick':()=>_0x592451(!0x1),'className':_0x29365f(0x22f),'title':_0x29365f(0x292),'children':_0x5ab4b8['jsx'](_0x449a17,{})}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x5ab4b8['jsx'](_0x29365f(0x27f),{'className':_0x29365f(0x281),'children':'🚀'})}),_0x5ab4b8['jsxs']('div',{'className':_0x29365f(0x1b4),'children':[_0x5ab4b8['jsx']('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0xc0dd20['t'](_0x29365f(0x215))}),_0x5ab4b8[_0x29365f(0x129)]('p',{'className':_0x29365f(0x24b),'children':_0xc0dd20['t'](_0x29365f(0x2b1))}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x224),'children':_0x10a5eb&&_0x5ab4b8[_0x29365f(0x213)]('a',{'href':_0x46880d,'target':'_blank','rel':_0x29365f(0x16e),'className':_0x29365f(0x1bb),'children':[_0x5ab4b8[_0x29365f(0x129)]('span',{'children':'🤖'}),_0xc0dd20['t'](_0x29365f(0x191)),_0x5ab4b8['jsx'](_0x29365f(0x27f),{'className':_0x29365f(0x2b9),'children':'↗'})]})}),_0x5ab4b8['jsxs'](_0x29365f(0x1b0),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0xc0dd20['t'](_0x29365f(0x2a5))]})]})]})]}),_0x384a15[_0x29365f(0x270)]&&_0x5ab4b8[_0x29365f(0x213)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5ab4b8[_0x29365f(0x213)]('h4',{'className':_0x29365f(0x265),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'children':'🔗'}),'\x20',_0xc0dd20['t'](_0x29365f(0x211))]}),_0x5ab4b8[_0x29365f(0x213)]('div',{'className':_0x29365f(0x139),'children':[_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x166),'children':[_0x5ab4b8[_0x29365f(0x129)]('p',{'className':_0x29365f(0x1cf),'children':_0xc0dd20['t']('mcpConfig.configInstructions')}),_0x5ab4b8[_0x29365f(0x213)]('div',{'className':_0x29365f(0x25a),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x214),'children':_0xc0dd20['t'](_0x29365f(0x253))}),_0x5ab4b8[_0x29365f(0x213)]('div',{'className':_0x29365f(0x1bf),'children':[_0x5ab4b8['jsxs'](_0x29365f(0x1b0),{'className':_0x29365f(0x2a9),'children':[_0x5ab4b8[_0x29365f(0x129)]('span',{'className':_0x29365f(0x13e),'children':'1'}),_0xc0dd20['t'](_0x29365f(0x1e1))]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x2a9),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':_0x29365f(0x13e),'children':'2'}),_0xc0dd20['t']('mcpConfig.configStep2')]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x2a9),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':_0x29365f(0x13e),'children':'3'}),_0xc0dd20['t'](_0x29365f(0x25e))]})]})]})]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':'univer-space-y-2','children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x214),'children':_0x29365f(0x1f3)}),_0x5ab4b8['jsx'](_0x29365f(0x1b0),{'className':_0x29365f(0x244),'children':_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x199),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':_0x29365f(0x202)+_0x48226a+_0x29365f(0x1b2)+(_0x5888c7||_0x29365f(0x1fd))+_0x29365f(0x27e)})})]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x166),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x214),'children':_0xc0dd20['t'](_0x29365f(0x247))}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x25a),'children':[_0x5ab4b8[_0x29365f(0x213)]('div',{'className':_0x29365f(0x13b),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x1a9),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x24e),'children':_0x29365f(0x23b)}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0xc0dd20['t']('mcpConfig.sessionIdDescription')})]})]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x5ab4b8['jsx']('div',{'className':_0x29365f(0x252)}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x1a9),'children':[_0x5ab4b8['jsx'](_0x29365f(0x1b0),{'className':_0x29365f(0x24e),'children':_0x29365f(0x126)}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x20a),'children':_0xc0dd20['t'](_0x29365f(0x21d))})]})]})]})]})]})]}),_0x5ab4b8[_0x29365f(0x129)](_0x37c5aa[_0x29365f(0x1b1)],{'onClick':_0x409507,'disabled':!_0x2114e7||_0x512777,'className':_0x29365f(0x268),'children':_0x512777?_0x5ab4b8[_0x29365f(0x213)]('span',{'className':_0x29365f(0x2a9),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'children':'⟲'}),_0xc0dd20['t'](_0x29365f(0x1fb))]}):_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x27f),{'className':_0x29365f(0x2a9),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x58d827,{}),_0xc0dd20['t'](_0x29365f(0x2ad))]})}),_0x5ab4b8['jsx']('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x287),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x16f),'children':[_0x5ab4b8[_0x29365f(0x129)]('div',{'className':_0x29365f(0x160),'children':_0x29365f(0x24a)}),_0x5ab4b8['jsxs'](_0x29365f(0x1b0),{'children':['•',_0xc0dd20['t']('mcpConfig.note1')]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'children':['•',_0xc0dd20['t'](_0x29365f(0x200))]})]})]})})]})})]});}const _0x46e45b='mcp-ui.config',_0x5899c4={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x4aebd2=Object[_0x303884(0x248)],_0x4399b9=(_0x29294c,_0x501183,_0x50be95,_0x54a77e)=>{var _0x1e3710=_0x303884;for(var _0x4d4747=_0x54a77e>0x1?void 0x0:_0x54a77e?_0x4aebd2(_0x501183,_0x50be95):_0x501183,_0xba2250=_0x29294c[_0x1e3710(0x134)]-0x1,_0x3a1f4a;_0xba2250>=0x0;_0xba2250--)(_0x3a1f4a=_0x29294c[_0xba2250])&&(_0x4d4747=_0x3a1f4a(_0x4d4747)||_0x4d4747);return _0x4d4747;},_0x2eab09=(_0x354b6d,_0x514e1a)=>(_0x3c54a9,_0x2b1d29)=>_0x514e1a(_0x3c54a9,_0x2b1d29,_0x354b6d);const _0x1b2602=_0x303884(0x29d),_0x7f5062=_0x303884(0x21e);_0x34fc26[_0x303884(0x1da)]=class extends _0x1e644d[_0x303884(0x1a2)]{constructor(_0x3c34f6,_0x5d243b,_0x1d3de2,_0x3411bc,_0x402701,_0x2a9a6f,_0x2d7663,_0x20ea42,_0x5dc3f7,_0x2f4582){var _0x5d87c8=_0x303884;super(),_0xb1a834(this,_0x5d87c8(0x19e),new _0x331adf[(_0x5d87c8(0x275))](!0x1)),_0xb1a834(this,_0x5d87c8(0x250),new _0x331adf[(_0x5d87c8(0x275))]({})),_0xb1a834(this,_0x5d87c8(0x12f),new _0x331adf[(_0x5d87c8(0x275))]({})),_0xb1a834(this,_0x5d87c8(0x257),new _0x331adf[(_0x5d87c8(0x275))]('')),_0xb1a834(this,_0x5d87c8(0x16c),async _0x701f64=>{var _0x13f4d4=_0x5d87c8,_0x459535,_0x49b3d7;this[_0x13f4d4(0x19e)][_0x13f4d4(0x137)](!0x0);try{const _0x162779=await this['_validateConfig'](_0x701f64);if(!_0x162779[_0x13f4d4(0x14f)]){this[_0x13f4d4(0x171)][_0x13f4d4(0x155)]({'type':_0x37c5aa['MessageType']['Error'],'content':_0x162779[_0x13f4d4(0x15b)]||this[_0x13f4d4(0x283)]['t'](_0x13f4d4(0x23a))});return;}_0x701f64[_0x13f4d4(0x185)]?await this[_0x13f4d4(0x21b)]['setItem'](_0x1b2602,_0x701f64['apiKey'][_0x13f4d4(0x293)]()):await this[_0x13f4d4(0x21b)]['removeItem'](_0x1b2602),this[_0x13f4d4(0x257)][_0x13f4d4(0x137)](((_0x459535=_0x701f64['apiKey'])==null?void 0x0:_0x459535['trim']())||''),this['_mcpConnectionController'][_0x13f4d4(0x150)]({'Authorization':_0x13f4d4(0x2b8)+((_0x49b3d7=_0x701f64[_0x13f4d4(0x185)])==null?void 0x0:_0x49b3d7['trim']())}),this['_messageService']['show']({'type':_0x37c5aa['MessageType']['Success'],'content':this[_0x13f4d4(0x283)]['t'](_0x13f4d4(0x1bd))}),setTimeout(()=>{var _0x161269=_0x13f4d4;this[_0x161269(0x1aa)][_0x161269(0x28d)](_0x7f5062);},0x320);}catch(_0x3afd7f){this[_0x13f4d4(0x26c)][_0x13f4d4(0x197)](_0x13f4d4(0x1ee),_0x3afd7f),this[_0x13f4d4(0x171)][_0x13f4d4(0x155)]({'type':_0x37c5aa['MessageType'][_0x13f4d4(0x1fe)],'content':this[_0x13f4d4(0x283)]['t'](_0x13f4d4(0x260))});}finally{this[_0x13f4d4(0x19e)]['next'](!0x1);}}),(this[_0x5d87c8(0x205)]=_0x3c34f6,this[_0x5d87c8(0x1d1)]=_0x5d243b,this[_0x5d87c8(0x1cd)]=_0x1d3de2,this[_0x5d87c8(0x21b)]=_0x3411bc,this['_dialogService']=_0x402701,this[_0x5d87c8(0x171)]=_0x2a9a6f,this[_0x5d87c8(0x219)]=_0x2d7663,this[_0x5d87c8(0x283)]=_0x20ea42,this['_logService']=_0x5dc3f7,this[_0x5d87c8(0x20e)]=_0x2f4582,this[_0x5d87c8(0x181)](),this[_0x5d87c8(0x128)](),this[_0x5d87c8(0x1db)]());}['showConfigPanel'](){var _0x1083ec=_0x303884;const _0x5a19e1=this['_configService'][_0x1083ec(0x1a4)](_0x46e45b);_0x5a19e1!=null&&_0x5a19e1[_0x1083ec(0x270)]&&this[_0x1083ec(0x1aa)][_0x1083ec(0x189)]({'id':_0x7f5062,'title':{'title':this[_0x1083ec(0x283)]['t'](_0x1083ec(0x221))},'children':{'label':_0x1083ec(0x225)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x5058b9=_0x1083ec;this[_0x5058b9(0x1aa)]['close'](_0x7f5062);}});}[_0x303884(0x18a)](){var _0x2cc4df=_0x303884;return this[_0x2cc4df(0x250)][_0x2cc4df(0x206)];}[_0x303884(0x1db)](){var _0x14959b=_0x303884;this[_0x14959b(0x1ac)](this['_componentManager'][_0x14959b(0x277)]('MCPConfigPanel',this['_createConfigPanelComponent']()));}[_0x303884(0x2bb)](){var _0x3a21b5=_0x303884;return _0x146876[_0x3a21b5(0x2b6)](()=>{var _0x17de66=_0x3a21b5,_0x599b6e,_0x19a976,_0x426d19;return _0x5ab4b8[_0x17de66(0x129)](_0x902359,{'config':this[_0x17de66(0x12f)][_0x17de66(0x206)],'mcpCoreConfig':this[_0x17de66(0x250)][_0x17de66(0x206)],'currentApiKey$':this[_0x17de66(0x257)],'onSave':this[_0x17de66(0x16c)],'loading':this[_0x17de66(0x19e)][_0x17de66(0x206)],'connectionStatus$':(_0x599b6e=this['_mcpConnectionController'])==null?void 0x0:_0x599b6e[_0x17de66(0x239)],'connectionError$':(_0x19a976=this['_mcpConnectionController'])==null?void 0x0:_0x19a976[_0x17de66(0x18d)],'currentSessionId$':(_0x426d19=this[_0x17de66(0x20e)])==null?void 0x0:_0x426d19[_0x17de66(0x28f)]});},this[_0x3a21b5(0x205)]);}['_initConfigSync'](){var _0x28bd60=_0x303884;this['disposeWithMe'](this[_0x28bd60(0x1cd)]['subscribeConfigValue$'](_0x772097['MCP_PLUGIN_CONFIG_KEY'])['subscribe'](_0x1364f7=>{var _0x6cc14c=_0x28bd60;this['_mcpCoreConfig$'][_0x6cc14c(0x137)](_0x1364f7||{});}));const _0x1b3a5e=this[_0x28bd60(0x1cd)][_0x28bd60(0x1a4)](_0x772097[_0x28bd60(0x2a1)]);this[_0x28bd60(0x250)]['next'](_0x1b3a5e||{}),this['disposeWithMe'](this[_0x28bd60(0x1cd)][_0x28bd60(0x241)](_0x46e45b)['subscribe'](_0x1c5e15=>{var _0x346a39=_0x28bd60;this[_0x346a39(0x12f)][_0x346a39(0x137)](_0x1c5e15||{});}));const _0x4b1245=this[_0x28bd60(0x1cd)]['getConfig'](_0x46e45b);this['_config$']['next'](_0x4b1245||{});}async[_0x303884(0x128)](){var _0x572f0a=_0x303884;const _0x68f5b8=this[_0x572f0a(0x1cd)][_0x572f0a(0x1a4)](_0x46e45b);if(!(_0x68f5b8!=null&&_0x68f5b8[_0x572f0a(0x270)]))return;const _0x25369c=await this[_0x572f0a(0x21b)][_0x572f0a(0x294)](_0x1b2602);_0x25369c&&(this[_0x572f0a(0x20e)][_0x572f0a(0x150)]({'Authorization':_0x572f0a(0x2b8)+_0x25369c}),this[_0x572f0a(0x257)]['next'](_0x25369c));}async[_0x303884(0x1be)](_0x29c797){var _0x2aec76=_0x303884;if(!_0x29c797[_0x2aec76(0x185)]||_0x29c797[_0x2aec76(0x185)][_0x2aec76(0x293)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2aec76(0x153))};if(_0x29c797[_0x2aec76(0x185)]['trim']()[_0x2aec76(0x134)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2aec76(0x283)]['t'](_0x2aec76(0x162))};try{const _0x11d5ba=await this['_injector'][_0x2aec76(0x1af)](_0x772097[_0x2aec76(0x154)])[_0x2aec76(0x2a4)](_0x29c797[_0x2aec76(0x185)][_0x2aec76(0x293)]());return _0x11d5ba[_0x2aec76(0x14f)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x11d5ba['error']||this[_0x2aec76(0x283)]['t'](_0x2aec76(0x1a3))};}catch(_0x432d27){return console[_0x2aec76(0x144)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x432d27),{'isValid':!0x0};}}},_0x34fc26[_0x303884(0x1da)]=_0x4399b9([_0x2eab09(0x0,_0x1e644d[_0x303884(0x1c6)](_0x1e644d[_0x303884(0x255)])),_0x2eab09(0x1,_0x146876['IUIPartsService']),_0x2eab09(0x2,_0x1e644d[_0x303884(0x12a)]),_0x2eab09(0x3,_0x1e644d[_0x303884(0x1d2)]),_0x2eab09(0x4,_0x146876[_0x303884(0x29a)]),_0x2eab09(0x5,_0x146876[_0x303884(0x27b)]),_0x2eab09(0x6,_0x1e644d[_0x303884(0x1c6)](_0x146876['ComponentManager'])),_0x2eab09(0x7,_0x1e644d[_0x303884(0x1c6)](_0x1e644d[_0x303884(0x1a0)])),_0x2eab09(0x8,_0x1e644d[_0x303884(0x22c)]),_0x2eab09(0x9,_0x1e644d[_0x303884(0x1c6)](_0x772097[_0x303884(0x154)]))],_0x34fc26['MCPConfigUIController']);const _0x3fc30e={'id':'mcp-ui.command.openConfigPanel','type':_0x1e644d[_0x303884(0x27d)][_0x303884(0x1e6)],'handler':async(_0x5728a2,_0x103891)=>(_0x5728a2['get'](_0x34fc26[_0x303884(0x1da)])[_0x303884(0x184)](),!0x0)};function _0x504afd(_0x1be311,_0x423bdc){var _0x40bd23=_0x303884;switch(_0x1be311){case _0x772097[_0x40bd23(0x264)]['DISCONNECTED']:return _0x40bd23(0x143);case _0x772097['MCPConnectionStatus'][_0x40bd23(0x26b)]:return'mcpStatus.connecting';case _0x772097[_0x40bd23(0x264)][_0x40bd23(0x1ed)]:return _0x40bd23(0x1ec);case _0x772097[_0x40bd23(0x264)][_0x40bd23(0x127)]:switch(_0x423bdc){case _0x772097[_0x40bd23(0x179)]['UNAUTHORIZED']:return _0x40bd23(0x14e);case _0x772097[_0x40bd23(0x179)]['SESSION_ID_OCCUPIED']:return _0x40bd23(0x232);case _0x772097[_0x40bd23(0x179)]['NETWORK_ERROR']:return _0x40bd23(0x141);case _0x772097[_0x40bd23(0x179)]['MAX_RETRIES_EXCEEDED']:return _0x40bd23(0x1ca);default:return _0x40bd23(0x2bf);}case _0x772097[_0x40bd23(0x264)][_0x40bd23(0x1c2)]:return _0x40bd23(0x2bc);default:return _0x40bd23(0x1f0);}}function _0x4cb72e(_0x51f3ca,_0x56c0fa,_0x2bbbd0,_0x30ae66=!0x0){var _0x2d4c29=_0x303884;const _0x2026ce=_0x504afd(_0x51f3ca,_0x56c0fa),_0x2b62b8=_0x2bbbd0['t'](_0x2026ce);return _0x30ae66?_0x51f3ca===_0x772097[_0x2d4c29(0x264)][_0x2d4c29(0x16d)]&&_0x56c0fa===_0x772097['MCPConnectionError'][_0x2d4c29(0x167)]?_0x2b62b8+_0x2d4c29(0x1ab)+_0x2bbbd0['t'](_0x2d4c29(0x24d)):_0x51f3ca===_0x772097[_0x2d4c29(0x264)][_0x2d4c29(0x1ed)]?''+_0x2b62b8:_0x51f3ca===_0x772097['MCPConnectionStatus'][_0x2d4c29(0x16d)]||_0x51f3ca===_0x772097[_0x2d4c29(0x264)]['FAILED']?_0x2b62b8+'\x20-\x20'+_0x2bbbd0['t']('mcpStatus.clickToConnect'):_0x2b62b8:_0x2b62b8;}function _0x4c48ff(_0x265072){var _0x53ebcd=_0x303884;switch(_0x265072){case _0x772097[_0x53ebcd(0x264)][_0x53ebcd(0x1ed)]:return'univer-text-green-500';case _0x772097[_0x53ebcd(0x264)][_0x53ebcd(0x26b)]:case _0x772097[_0x53ebcd(0x264)][_0x53ebcd(0x1c2)]:return _0x53ebcd(0x140);case _0x772097[_0x53ebcd(0x264)]['FAILED']:case _0x772097[_0x53ebcd(0x264)][_0x53ebcd(0x16d)]:return _0x53ebcd(0x2ba);default:return'univer-text-gray-500';}}function _0x532093(_0x318f5a){var _0x5333da=_0x303884;const {status$:_0x2e73da,error$:_0x2a6770,onConfigure:_0x3ac1c9,showClickable:_0x33ca8e=!0x0}=_0x318f5a,_0x164e9b=_0x146876['useObservable'](_0x2e73da,_0x772097[_0x5333da(0x264)][_0x5333da(0x16d)]),_0x3eac4b=_0x146876[_0x5333da(0x15a)](_0x2a6770,_0x772097['MCPConnectionError'][_0x5333da(0x169)]),_0x3e3c93=_0x146876[_0x5333da(0x13f)](_0x1e644d[_0x5333da(0x1a0)]),_0x536448=_0x164e9b===_0x772097[_0x5333da(0x264)][_0x5333da(0x1ed)];_0x164e9b===_0x772097[_0x5333da(0x264)]['CONNECTING']||_0x772097[_0x5333da(0x264)][_0x5333da(0x1c2)];const _0x4697e=_0x3e3c93['t'](_0x504afd(_0x164e9b,_0x3eac4b)),_0x4030b5=_0x4cb72e(_0x164e9b,_0x3eac4b,_0x3e3c93,_0x33ca8e),_0xb1962=_0x4c48ff(_0x164e9b),_0x2168f1=_0x536448?_0x5ab4b8['jsx'](_0x50883b,{}):_0x5ab4b8[_0x5333da(0x129)](_0xd1560b,{}),_0xb2d712=_0xed4c50['useCallback'](()=>{_0x33ca8e&&_0x3ac1c9&&_0x3ac1c9();},[_0x33ca8e,_0x3ac1c9]);function _0x99d1ef(){var _0x49e18c=_0x5333da;return _0x5ab4b8['jsxs'](_0x49e18c(0x1b0),{'className':_0x37c5aa[_0x49e18c(0x272)](_0x49e18c(0x161),_0x33ca8e&&_0x3ac1c9&&_0x49e18c(0x2ae)),'onClick':_0x33ca8e&&_0x3ac1c9?_0xb2d712:void 0x0,'children':[_0x5ab4b8[_0x49e18c(0x129)](_0x49e18c(0x1b0),{'className':_0x37c5aa[_0x49e18c(0x272)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0xb1962),'children':_0x2168f1}),_0x5ab4b8['jsx'](_0x49e18c(0x1b0),{'className':_0x49e18c(0x262),'children':_0x4697e})]});}return _0x5ab4b8['jsx'](_0x37c5aa[_0x5333da(0x13d)],{'title':_0x4030b5,'placement':'bottom','children':_0x99d1ef()});}var _0xe27d39=Object[_0x303884(0x248)],_0xc1a2f7=(_0x530adf,_0xa46672,_0x38005c,_0x12db67)=>{var _0x28f343=_0x303884;for(var _0x27badf=_0x12db67>0x1?void 0x0:_0x12db67?_0xe27d39(_0xa46672,_0x38005c):_0xa46672,_0x53c0da=_0x530adf[_0x28f343(0x134)]-0x1,_0xc3d113;_0x53c0da>=0x0;_0x53c0da--)(_0xc3d113=_0x530adf[_0x53c0da])&&(_0x27badf=_0xc3d113(_0x27badf)||_0x27badf);return _0x27badf;},_0x41f5df=(_0x2b0ffb,_0x281dbc)=>(_0x285dad,_0x3353a4)=>_0x281dbc(_0x285dad,_0x3353a4,_0x2b0ffb);_0x34fc26[_0x303884(0x216)]=class extends _0x1e644d[_0x303884(0x1a2)]{constructor(_0x188f30,_0x13c217,_0xfa7d27,_0x2fc124){var _0x574333=_0x303884;super(),this[_0x574333(0x205)]=_0x188f30,this[_0x574333(0x2af)]=_0x13c217,this[_0x574333(0x1d1)]=_0xfa7d27,this[_0x574333(0x1cd)]=_0x2fc124,this[_0x574333(0x138)](),this[_0x574333(0x273)]();}[_0x303884(0x138)](){var _0x3b84be=_0x303884;const _0x54a723=this[_0x3b84be(0x1cd)][_0x3b84be(0x1a4)](_0x46e45b);_0x54a723!=null&&_0x54a723['showDeveloperTools']&&(this[_0x3b84be(0x2af)][_0x3b84be(0x28e)]=!0x1);}['_initStatusComponent'](){var _0x5dd6e3=_0x303884;const _0xcc47a5=this[_0x5dd6e3(0x1cd)][_0x5dd6e3(0x1a4)](_0x46e45b);(_0xcc47a5==null?void 0x0:_0xcc47a5[_0x5dd6e3(0x1c8)])!==!0x1&&this[_0x5dd6e3(0x1ac)](this[_0x5dd6e3(0x1d1)]['registerComponent'](_0x146876['BuiltInUIPart'][_0x5dd6e3(0x2b3)],()=>{var _0x5ae478=_0x5dd6e3,_0x49860c;return _0x146876[_0x5ae478(0x2b6)](_0x4a56cf({'status$':this['_connectionController'][_0x5ae478(0x239)],'error$':this[_0x5ae478(0x2af)][_0x5ae478(0x18d)],'onConfigure':()=>this[_0x5ae478(0x175)](),'showClickable':(_0x49860c=_0xcc47a5==null?void 0x0:_0xcc47a5[_0x5ae478(0x270)])!=null?_0x49860c:!0x1}),this['_injector']);}));}[_0x303884(0x175)](){var _0x590108=_0x303884;this['_injector'][_0x590108(0x1af)](_0x34fc26[_0x590108(0x1da)])[_0x590108(0x184)]();}},_0x34fc26[_0x303884(0x216)]=_0xc1a2f7([_0x41f5df(0x0,_0x1e644d['Inject'](_0x1e644d['Injector'])),_0x41f5df(0x1,_0x1e644d['Inject'](_0x772097[_0x303884(0x154)])),_0x41f5df(0x2,_0x146876[_0x303884(0x193)]),_0x41f5df(0x3,_0x1e644d['IConfigService'])],_0x34fc26[_0x303884(0x216)]);function _0x4a56cf(_0x3e4ac0){const {status$:_0x42ef92,error$:_0x5a22f9,onConfigure:_0xc98246,showClickable:_0x5201a3}=_0x3e4ac0;return function(){return _0x5ab4b8['jsx'](_0x532093,{'status$':_0x42ef92,'error$':_0x5a22f9,'onConfigure':_0xc98246,'showClickable':_0x5201a3});};}function _0x5bafbc(_0x526a68){var _0x47b5e5=_0x303884;return{'id':_0x3fc30e['id'],'type':_0x146876[_0x47b5e5(0x1ae)]['BUTTON'],'icon':_0x47b5e5(0x209),'title':_0x47b5e5(0x221),'tooltip':_0x47b5e5(0x221)};}const _0x318956={[_0x146876['RibbonStartGroup']['OTHERS']]:{[_0x3fc30e['id']]:{'order':0xa,'menuItemFactory':_0x5bafbc}}};var _0x45aee6=Object['getOwnPropertyDescriptor'],_0x207f8d=(_0x448665,_0x20ccd1,_0x3e27de,_0xda37af)=>{for(var _0x4a16f3=_0xda37af>0x1?void 0x0:_0xda37af?_0x45aee6(_0x20ccd1,_0x3e27de):_0x20ccd1,_0x5896b3=_0x448665['length']-0x1,_0x4a2c01;_0x5896b3>=0x0;_0x5896b3--)(_0x4a2c01=_0x448665[_0x5896b3])&&(_0x4a16f3=_0x4a2c01(_0x4a16f3)||_0x4a16f3);return _0x4a16f3;},_0x4b2e31=(_0x2b8195,_0x1f1205)=>(_0x492451,_0x690c8d)=>_0x1f1205(_0x492451,_0x690c8d,_0x2b8195);_0x34fc26[_0x303884(0x295)]=class extends _0x1e644d[_0x303884(0x1a2)]{constructor(_0x4ea128,_0x18a0b3){var _0x372de7=_0x303884;super(),this['_commandService']=_0x4ea128,this[_0x372de7(0x136)]=_0x18a0b3,this[_0x372de7(0x17c)](),this['_initializeMenus']();}[_0x303884(0x17c)](){var _0x24139d=_0x303884;[_0x3fc30e][_0x24139d(0x196)](_0x1fff9e=>{var _0x2b983a=_0x24139d;this[_0x2b983a(0x1ac)](this[_0x2b983a(0x186)][_0x2b983a(0x165)](_0x1fff9e));});}['_initializeMenus'](){var _0x4b04e4=_0x303884;this[_0x4b04e4(0x136)][_0x4b04e4(0x1fa)](_0x318956);}},_0x34fc26['MCPUIMenuController']=_0x207f8d([_0x4b2e31(0x0,_0x1e644d['ICommandService']),_0x4b2e31(0x1,_0x146876[_0x303884(0x198)])],_0x34fc26[_0x303884(0x295)]);const _0x57e94b={'mcpStatus':{'disconnected':_0x303884(0x201),'connecting':'MCP\x20Connecting...','connected':_0x303884(0x234),'failed':_0x303884(0x1fc),'retrying':'MCP\x20Retrying...','unknown':_0x303884(0x12d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x303884(0x271),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x303884(0x245),'clickToConfigure':_0x303884(0x284)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x303884(0x2b2),'apiKey':_0x303884(0x223),'apiKeyPlaceholder':_0x303884(0x22b),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x303884(0x1e3),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x303884(0x220),'mcpClientConfig':_0x303884(0x220),'configInstructions':_0x303884(0x207),'configStepTitle':_0x303884(0x1b3),'configStep1':_0x303884(0x149),'configStep2':_0x303884(0x14d),'configStep3':_0x303884(0x218),'sessionId':_0x303884(0x132),'sessionIdDescription':_0x303884(0x1ef),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x303884(0x133),'maxRetries':_0x303884(0x1d6),'save':'Save\x20Configuration','saving':_0x303884(0x222),'note1':_0x303884(0x22a),'note2':_0x303884(0x259),'configSaved':_0x303884(0x194),'configError':_0x303884(0x1b9),'apiApplyInfo':{'title':_0x303884(0x16a),'description':_0x303884(0x20d),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x303884(0x13c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x303884(0x25d),'invalidConfig':_0x303884(0x23e),'invalidApiKey':_0x303884(0x158)},'connectionStatus':{'disconnected':_0x303884(0x1cb),'connecting':_0x303884(0x1f7),'connected':'Connected','failed':_0x303884(0x19f),'retrying':_0x303884(0x19c)},'connectionError':{'unauthorized':_0x303884(0x2b4),'sessionOccupied':_0x303884(0x227),'networkError':_0x303884(0x188),'maxRetriesExceeded':_0x303884(0x12b)}}},_0x7253a7={'mcpStatus':{'disconnected':_0x303884(0x235),'connecting':_0x303884(0x1f2),'connected':_0x303884(0x1b5),'failed':'MCP\x20连接失败','retrying':_0x303884(0x2b5),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x303884(0x204),'maxRetriesExceeded':_0x303884(0x22e),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x303884(0x16b)},'mcpConfig':{'title':_0x303884(0x135),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x303884(0x23d),'apiKeyPlaceholder':_0x303884(0x145),'apiKeyHint':_0x303884(0x261),'enableAuth':_0x303884(0x1e7),'enableAuthHint':_0x303884(0x1e8),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x303884(0x1e4),'configInstructions':_0x303884(0x1df),'configStepTitle':_0x303884(0x1dc),'configStep1':_0x303884(0x17a),'configStep2':_0x303884(0x23f),'configStep3':_0x303884(0x254),'sessionId':_0x303884(0x1f4),'sessionIdDescription':_0x303884(0x27a),'authorizationDescription':_0x303884(0x18b),'configParameters':'配置参数:','maxRetries':_0x303884(0x226),'save':'保存配置','saving':'保存中...','note1':'配置更改将立即生效','note2':_0x303884(0x1d9),'configSaved':'配置保存成功','configError':_0x303884(0x266),'apiApplyInfo':{'title':_0x303884(0x130),'description':_0x303884(0x29f),'univerAiLabel':_0x303884(0x125),'getStarted':_0x303884(0x289)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x303884(0x25f),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x303884(0x286),'connecting':_0x303884(0x285),'connected':_0x303884(0x258),'failed':_0x303884(0x148),'retrying':_0x303884(0x1f9)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x303884(0x212),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x303884(0x208)}}};var _0xa98f4c=Object[_0x303884(0x27c)],_0x2acf24=Object[_0x303884(0x248)],_0x335ae7=(_0x58990c,_0x1fad9a,_0x101338)=>_0x1fad9a in _0x58990c?_0xa98f4c(_0x58990c,_0x1fad9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x101338}):_0x58990c[_0x1fad9a]=_0x101338,_0x37a1d8=(_0x31eb72,_0x117c9a,_0x4717e1,_0x3b4f49)=>{for(var _0x452237=_0x3b4f49>0x1?void 0x0:_0x3b4f49?_0x2acf24(_0x117c9a,_0x4717e1):_0x117c9a,_0x20fc9b=_0x31eb72['length']-0x1,_0x44c9d8;_0x20fc9b>=0x0;_0x20fc9b--)(_0x44c9d8=_0x31eb72[_0x20fc9b])&&(_0x452237=_0x44c9d8(_0x452237)||_0x452237);return _0x452237;},_0xdf73b7=(_0xc27f6b,_0x5ac9be)=>(_0x2cdb57,_0x40b4fd)=>_0x5ac9be(_0x2cdb57,_0x40b4fd,_0xc27f6b),_0x3f2d18=(_0x16d5d2,_0x2c692f,_0x2d26ce)=>_0x335ae7(_0x16d5d2,_0x2c692f+'',_0x2d26ce);_0x34fc26[_0x303884(0x12e)]=class extends _0x1e644d['Plugin']{constructor(_0x5ad35b=_0x5899c4,_0x48364d,_0xc102f6,_0x211f8c,_0x1138fe,_0x58a234){var _0x2605d9=_0x303884;super(),this['_config']=_0x5ad35b,this['_injector']=_0x48364d,this['_configService']=_0xc102f6,this['_uiPartsService']=_0x211f8c,this[_0x2605d9(0x21b)]=_0x1138fe,this[_0x2605d9(0x283)]=_0x58a234;const {..._0x1cb332}=_0x1e644d[_0x2605d9(0x2c0)]({},_0x5899c4,this[_0x2605d9(0x2b7)]);this[_0x2605d9(0x1cd)][_0x2605d9(0x1d4)](_0x46e45b,_0x1cb332);}async[_0x303884(0x168)](){var _0x38a69e=_0x303884;const _0x24f956=[[_0x34fc26[_0x38a69e(0x216)]],[_0x34fc26[_0x38a69e(0x1da)]],[_0x34fc26[_0x38a69e(0x295)]]];this[_0x38a69e(0x205)][_0x38a69e(0x1eb)](_0x54dff2[_0x38a69e(0x1de)])||_0x24f956[_0x38a69e(0x1c4)]([_0x54dff2[_0x38a69e(0x1de)],{'useClass':_0x54dff2[_0x38a69e(0x2a8)]}]),_0x24f956['forEach'](_0x4b0046=>this[_0x38a69e(0x205)][_0x38a69e(0x230)](_0x4b0046)),this[_0x38a69e(0x205)][_0x38a69e(0x1af)](_0x34fc26[_0x38a69e(0x216)]),this[_0x38a69e(0x205)]['get'](_0x34fc26[_0x38a69e(0x1da)]),this[_0x38a69e(0x205)][_0x38a69e(0x1af)](_0x34fc26[_0x38a69e(0x295)]);}},_0x3f2d18(_0x34fc26['UniverMCPUIPlugin'],'pluginName',_0x303884(0x17b)),_0x34fc26[_0x303884(0x12e)]=_0x37a1d8([_0x1e644d[_0x303884(0x173)](_0x772097[_0x303884(0x26d)]),_0xdf73b7(0x1,_0x1e644d[_0x303884(0x1c6)](_0x1e644d[_0x303884(0x255)])),_0xdf73b7(0x2,_0x1e644d[_0x303884(0x12a)]),_0xdf73b7(0x3,_0x146876[_0x303884(0x193)]),_0xdf73b7(0x4,_0x1e644d[_0x303884(0x1d2)]),_0xdf73b7(0x5,_0x1e644d[_0x303884(0x1c6)](_0x1e644d[_0x303884(0x1a0)]))],_0x34fc26['UniverMCPUIPlugin']),_0x34fc26[_0x303884(0x225)]=_0x902359,_0x34fc26[_0x303884(0x249)]=_0x532093,_0x34fc26[_0x303884(0x19b)]=_0x3fc30e,_0x34fc26[_0x303884(0x276)]=_0x57e94b,_0x34fc26['zhCN']=_0x7253a7,Object['defineProperty'](_0x34fc26,Symbol['toStringTag'],{'value':_0x303884(0x1c9)});}));function _0x4b31(){var _0x3e7a98=['https://console.univer.ai','push','check-mark-icon','Inject','on-line-icon','showStatus','Module','mcpStatus.maxRetriesExceeded','Disconnected','useCallback','_configService','url(#off-line-icon_clip0_910_343)','univer-text-xs\x20univer-text-gray-600','indexOf','_uiPartsService','ILocalStorageService','fill','setConfig','UniverIcon','Max\x20Retries','exports','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','您的\x20API\x20密钥安全存储在本地存储中','MCPConfigUIController','_registerComponent','配置步骤:','UniverProMcpUi','ISocketService','将以下配置添加到您的\x20MCP\x20客户端设置中:','useRef','mcpConfig.configStep1','mcpConfig.connectionError.maxRetriesExceeded','Enable\x20Authentication','MCP\x20客户端配置','mask','COMMAND','启用身份验证','启用身份验证以获得安全连接','attrs','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','has','mcpStatus.connected','CONNECTED','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.unknown','UniverProMcp','MCP\x20连接中...','MCP\x20Configuration','会话ID','mcpConfig.apiKeyPlaceholder','tag','Connecting...','HelpSingle','重连中...','mergeMenu','mcpConfig.saving','MCP\x20Connection\x20Failed','<API_KEY>','Error','mcpConfig.connectionStatus.disconnected','mcpConfig.note2','MCP\x20Disconnected','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','9733653fnlPut','MCP:\x20网络错误','_injector','value','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','超出最大重试次数,请稍后再试','MenuIcon','univer-text-xs\x20univer-text-gray-500','@univerjs/core','svg','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_mcpConnectionController','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','0\x200\x2016\x2016','mcpConfig.connectionInfo','会话\x20ID\x20已被占用,请稍后再试','jsxs','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.apiApplyInfo.title','MCPConnectionUIController','colorChannel1','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_componentManager','children','_localStorageService','univer-text-sm\x20univer-font-medium','mcpConfig.authorizationDescription','mcp-config-dialog','mcpConfig.connectionStatus.failed','MCP\x20Client\x20Configuration','mcpConfig.title','Saving...','API\x20Key','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCPConfigPanel','最大重试次数','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','label','help-single','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enter\x20your\x20API\x20key','ILogService','mcpConfig.description','MCP:\x20超出最大重试次数','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','add','MAX_RETRIES_EXCEEDED','mcpStatus.sessionOccupied','@univerjs/ui','MCP\x20Connected','MCP\x20已断开','@univerjs/design','univer-text-white','javascript:void(0)','connectionStatus$','mcpConfig.validation.invalidConfig','univer_session_id:','29725VPkqBr','API\x20密钥','Invalid\x20configuration','将配置添加到您的\x20MCP\x20客户端设置文件中','forwardRef','subscribeConfigValue$','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer.ai','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Click\x20to\x20connect\x20MCP','replace','mcpConfig.configParameters','getOwnPropertyDescriptor','MCPStatusDisplay','Configuration\x20Notes:','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','displayName','mcpStatus.clickToConfigure','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','UniverDesign','_mcpCoreConfig$','object','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.configStepTitle','重启您的\x20MCP\x20客户端以使配置生效','Injector','clipPath','_apiKey$','已连接','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-space-y-2','@univerjs-pro/mcp','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','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.configStep3','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.configError','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCPConnectionStatus','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','配置保存失败','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','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','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','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','CONNECTING','_logService','UniverMCPPlugin','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','close-small-single','showDeveloperTools','MCP:\x20Session\x20ID\x20Occupied','clsx','_initStatusComponent','univer-flex-shrink-0\x20univer-text-red-500','BehaviorSubject','enUS','register','Input','M0\x200H16V16H0z','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','IMessageService','defineProperty','CommandType','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','span','72xgWjpO','univer-text-blue-600','1376480Bpwmgf','_localeService','Click\x20to\x20configure\x20MCP','连接中...','未连接','univer-flex\x20univer-gap-3','https://console.univer.plus','几秒钟内获取您的\x20API\x20密钥','concat','evenodd','rxjs','close','enableAutoConnect','sessionId$','assign','mcpConfig.connectionError.unauthorized','Close','trim','getItem','MCPUIMenuController','round','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','extend','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','IDialogService','SESSION_ID_OCCUPIED','includes','mcp.apiKey','defs','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','createElement','MCP_PLUGIN_CONFIG_KEY','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','apply','validateApiKey','mcpConfig.apiApplyInfo.getStarted','UniverUi','M5.21243\x2012.287L11.8791\x205.62036','WebSocketService','univer-flex\x20univer-items-center\x20univer-gap-2','map','off-line-icon','amd','mcpConfig.save','\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','_connectionController','currentColor','mcpConfig.apiApplyInfo.description','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','HEADER_MENU','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20重连中...','connectInjector','_config','Bearer\x20','univer-text-gray-400','univer-text-red-500','_createConfigPanelComponent','mcpStatus.retrying','http://www.w3.org/2000/svg','use','mcpStatus.failed','merge','Univer\x20AI\x20控制台','Authorization:','FAILED','_loadStoredApiKey','jsx','IConfigService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','url(#$1','MCP\x20Unknown\x20Status','UniverMCPUIPlugin','_config$','什么是\x20API\x20密钥?','univer-flex\x20univer-items-center\x20univer-gap-3','Session\x20ID','Configuration\x20Parameters:','length','MCP\x20配置','_menuManagerService','next','_initAutoConnect','univer-space-y-4','univer-flex\x20univer-items-start\x20univer-gap-2','univer-flex\x20univer-items-start\x20univer-gap-3','Get\x20your\x20API\x20key\x20in\x20seconds','Tooltip','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','useDependency','univer-text-yellow-500','mcpStatus.networkError','M5.21243\x205.62036L11.8791\x2012.287','mcpStatus.disconnected','warn','请输入您的\x20API\x20密钥','0\x200\x2017\x2016','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','连接失败','Copy\x20the\x20JSON\x20configuration\x20below','hasOwnProperty','OffLineIcon','univer.plus','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpStatus.unauthorized','isValid','__setCustomHeaders','react','defIds','mcpConfig.validation.apiKeyRequired','MCPConnectionController','show','url(#on-line-icon_clip0_910_349)','UniverNetwork','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-bg-red-500','useObservable','errorMessage','call','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','path','className','univer-font-medium','univer-flex\x20univer-items-center','mcpConfig.validation.apiKeyTooShort','mcpConfig.connectionStatus.connected','854406JzvxFJ','registerCommand','univer-space-y-3','UNAUTHORIZED','onStarting','NONE','What\x20is\x20API\x20Key?','点击配置\x20MCP','_handleConfigSave','DISCONNECTED','noopener\x20noreferrer','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_messageService','4DJDgeY','DependentOn','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_handleConfigure','none','mcpConfig.connectionStatus.retrying','substring','MCPConnectionError','复制以下\x20JSON\x20配置','MCP_UI_PLUGIN','_initializeCommands','@univerjs/network','React','string','3619220aQMuLZ','_initConfigSync','xlink:href','CloseSmallSingle','showConfigPanel','apiKey','_commandService','mcpConfig.apiKeyHint','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','open','getCurrentConfig','带有\x20Bearer\x20前缀的\x20API\x20密钥。','1em','connectionError$','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','NETWORK_ERROR','symbol','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-sm\x20univer-text-gray-500','IUIPartsService','Configuration\x20saved\x20successfully','mcpServerUrl','forEach','error','IMenuManagerService','pre','90633440RmFszE','OpenMCPConfigPanelCommand','Retrying...','mcpConfig.apiKey','_loading$','Connection\x20Failed','LocaleService','propertyIsEnumerable','Disposable','mcpConfig.validation.invalidApiKey','getConfig','prototype','5508183vuXeQb','text','off-line-icon_clip0_910_343','univer-min-w-0\x20univer-flex-1','_dialogService','\x20-\x20','disposeWithMe','function','MenuItemType','get','div','Button','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','Configuration\x20Steps:','univer-flex-1','MCP\x20已连接','icon','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','894cIxcpG','Failed\x20to\x20save\x20configuration','univer-bg-gray-500','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','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.configSaved','_validateConfig','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionError.networkError','current','RETRYING'];_0x4b31=function(){return _0x3e7a98;};return _0x4b31();}
|
|
1
|
+
function _0x2c3f(_0x22db32,_0x260da5){var _0x6720f7=_0x6720();return _0x2c3f=function(_0x2c3f5a,_0x5570d9){_0x2c3f5a=_0x2c3f5a-0x1cb;var _0x4a2630=_0x6720f7[_0x2c3f5a];return _0x4a2630;},_0x2c3f(_0x22db32,_0x260da5);}(function(_0x5995cb,_0x31d624){var _0xec06a1=_0x2c3f,_0x5db7ae=_0x5995cb();while(!![]){try{var _0x16e70d=-parseInt(_0xec06a1(0x2e2))/0x1+-parseInt(_0xec06a1(0x217))/0x2*(parseInt(_0xec06a1(0x31a))/0x3)+-parseInt(_0xec06a1(0x2cc))/0x4+-parseInt(_0xec06a1(0x294))/0x5+parseInt(_0xec06a1(0x25f))/0x6*(-parseInt(_0xec06a1(0x30a))/0x7)+parseInt(_0xec06a1(0x352))/0x8*(parseInt(_0xec06a1(0x315))/0x9)+parseInt(_0xec06a1(0x26d))/0xa*(parseInt(_0xec06a1(0x2cd))/0xb);if(_0x16e70d===_0x31d624)break;else _0x5db7ae['push'](_0x5db7ae['shift']());}catch(_0x322558){_0x5db7ae['push'](_0x5db7ae['shift']());}}}(_0x6720,0x3bd5f),function(_0x2d7314,_0x24cc8e){var _0x2a7d04=_0x2c3f;typeof exports==_0x2a7d04(0x305)&&typeof module<'u'?_0x24cc8e(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define['amd']?define([_0x2a7d04(0x35a),_0x2a7d04(0x2d2),_0x2a7d04(0x2f8),_0x2a7d04(0x1ce),_0x2a7d04(0x2ef),'@univerjs/ui',_0x2a7d04(0x1ec),_0x2a7d04(0x2c4),_0x2a7d04(0x286)],_0x24cc8e):(_0x2d7314=typeof globalThis<'u'?globalThis:_0x2d7314||self,_0x24cc8e(_0x2d7314[_0x2a7d04(0x2c7)]={},_0x2d7314['UniverCore'],_0x2d7314['React'],_0x2d7314[_0x2a7d04(0x30d)],_0x2d7314[_0x2a7d04(0x220)],_0x2d7314[_0x2a7d04(0x2a7)],_0x2d7314[_0x2a7d04(0x1ec)],_0x2d7314[_0x2a7d04(0x277)],_0x2d7314[_0x2a7d04(0x23f)]));}(this,function(_0x4fb175,_0x3528b3,_0x137988,_0x30e1f0,_0x454ab9,_0x42b9be,_0x54618a,_0x89bcb3,_0x21d076){'use strict';var _0x196992=_0x2c3f;var _0x5c0c3d=Object[_0x196992(0x354)],_0x2a3028=(_0x440311,_0x139a6d,_0x40c6e6)=>_0x139a6d in _0x440311?_0x5c0c3d(_0x440311,_0x139a6d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40c6e6}):_0x440311[_0x139a6d]=_0x40c6e6,_0x4be3b9=(_0x2dc2d8,_0x3fd138,_0x1e8ece)=>_0x2a3028(_0x2dc2d8,typeof _0x3fd138!=_0x196992(0x328)?_0x3fd138+'':_0x3fd138,_0x1e8ece),_0x347e6c=function(){var _0x5cb183=_0x196992;return _0x347e6c=Object[_0x5cb183(0x291)]||function(_0x501d72){var _0x2da95c=_0x5cb183;for(var _0x1e8194,_0x45987d=0x1,_0x740a84=arguments[_0x2da95c(0x2e8)];_0x45987d<_0x740a84;_0x45987d++){_0x1e8194=arguments[_0x45987d];for(var _0x57f621 in _0x1e8194)Object[_0x2da95c(0x1e4)][_0x2da95c(0x2f3)][_0x2da95c(0x32c)](_0x1e8194,_0x57f621)&&(_0x501d72[_0x57f621]=_0x1e8194[_0x57f621]);}return _0x501d72;},_0x347e6c[_0x5cb183(0x2ba)](this,arguments);},_0x26d824=function(_0xff9d2b,_0x402017){var _0x2f2522=_0x196992,_0x40fc5e={};for(var _0x5c20e3 in _0xff9d2b)Object[_0x2f2522(0x1e4)][_0x2f2522(0x2f3)][_0x2f2522(0x32c)](_0xff9d2b,_0x5c20e3)&&_0x402017['indexOf'](_0x5c20e3)<0x0&&(_0x40fc5e[_0x5c20e3]=_0xff9d2b[_0x5c20e3]);if(_0xff9d2b!=null&&typeof Object['getOwnPropertySymbols']==_0x2f2522(0x2cf)){for(var _0x57ad71=0x0,_0x5c20e3=Object[_0x2f2522(0x233)](_0xff9d2b);_0x57ad71<_0x5c20e3[_0x2f2522(0x2e8)];_0x57ad71++)_0x402017['indexOf'](_0x5c20e3[_0x57ad71])<0x0&&Object[_0x2f2522(0x1e4)][_0x2f2522(0x209)][_0x2f2522(0x32c)](_0xff9d2b,_0x5c20e3[_0x57ad71])&&(_0x40fc5e[_0x5c20e3[_0x57ad71]]=_0xff9d2b[_0x5c20e3[_0x57ad71]]);}return _0x40fc5e;},_0x1b1761=_0x89bcb3['forwardRef'](function(_0x41b294,_0x511f92){var _0xa8b2b6=_0x196992,_0x1aa70a=_0x41b294[_0xa8b2b6(0x33c)],_0x445a89=_0x41b294['id'],_0x4f3bcb=_0x41b294[_0xa8b2b6(0x1e7)],_0x2431d7=_0x41b294['extend'],_0x116f04=_0x26d824(_0x41b294,[_0xa8b2b6(0x33c),'id',_0xa8b2b6(0x1e7),'extend']),_0x3ef2c3=_0xa8b2b6(0x240)[_0xa8b2b6(0x1db)](_0x445a89,'\x20')[_0xa8b2b6(0x1db)](_0x4f3bcb||'')[_0xa8b2b6(0x33b)](),_0x45e8f8=_0x89bcb3[_0xa8b2b6(0x1e1)]('_'['concat'](_0x43904a()));return _0x21ff65(_0x1aa70a,''[_0xa8b2b6(0x1db)](_0x445a89),{'defIds':_0x1aa70a[_0xa8b2b6(0x22a)],'idSuffix':_0x45e8f8[_0xa8b2b6(0x266)]},_0x347e6c({'ref':_0x511f92,'className':_0x3ef2c3},_0x116f04),_0x2431d7);});function _0x21ff65(_0x1c67a3,_0x550814,_0x15562f,_0xd29560,_0x3e7787){var _0x25a875=_0x196992;return _0x89bcb3[_0x25a875(0x27b)](_0x1c67a3[_0x25a875(0x320)],_0x347e6c(_0x347e6c({'key':_0x550814},_0x456370(_0x1c67a3,_0x15562f,_0x3e7787)),_0xd29560),(_0x38ef15(_0x1c67a3,_0x15562f)[_0x25a875(0x2eb)]||[])[_0x25a875(0x23e)](function(_0x54209c,_0x10c12a){var _0x1ebfc7=_0x25a875;return _0x21ff65(_0x54209c,''[_0x1ebfc7(0x1db)](_0x550814,'-')['concat'](_0x1c67a3[_0x1ebfc7(0x320)],'-')['concat'](_0x10c12a),_0x15562f,void 0x0,_0x3e7787);}));}function _0x456370(_0x38b90e,_0x2bb408,_0x34e256){var _0x52b292=_0x196992,_0x1c7aa9=_0x347e6c({},_0x38b90e[_0x52b292(0x263)]);_0x34e256!=null&&_0x34e256['colorChannel1']&&_0x1c7aa9[_0x52b292(0x1d5)]===_0x52b292(0x21a)&&(_0x1c7aa9['fill']=_0x34e256[_0x52b292(0x21a)]),_0x38b90e[_0x52b292(0x320)]==='mask'&&_0x1c7aa9['id']&&(_0x1c7aa9['id']=_0x1c7aa9['id']+_0x2bb408[_0x52b292(0x2f1)]),Object[_0x52b292(0x2ab)](_0x1c7aa9)[_0x52b292(0x28c)](function(_0x5c6889){var _0x5afe3f=_0x52b292,_0x2a4663=_0x5c6889[0x0],_0xa4ce5b=_0x5c6889[0x1];_0x2a4663===_0x5afe3f(0x2db)&&typeof _0xa4ce5b==_0x5afe3f(0x1ff)&&(_0x1c7aa9[_0x2a4663]=_0xa4ce5b[_0x5afe3f(0x252)](/url\(#(.*)\)/,_0x5afe3f(0x1d8)[_0x5afe3f(0x1db)](_0x2bb408[_0x5afe3f(0x2f1)],')')));});var _0x33a80f=_0x2bb408['defIds'];return!_0x33a80f||_0x33a80f[_0x52b292(0x2e8)]===0x0||(_0x38b90e[_0x52b292(0x320)]===_0x52b292(0x229)&&_0x1c7aa9['xlink:href']&&(_0x1c7aa9[_0x52b292(0x30e)]=_0x1c7aa9['xlink:href']+_0x2bb408[_0x52b292(0x2f1)]),Object[_0x52b292(0x2ab)](_0x1c7aa9)[_0x52b292(0x28c)](function(_0x3ee00c){var _0x16a88b=_0x52b292,_0xc1bee4=_0x3ee00c[0x0],_0xa9a6e3=_0x3ee00c[0x1];typeof _0xa9a6e3==_0x16a88b(0x1ff)&&(_0x1c7aa9[_0xc1bee4]=_0xa9a6e3['replace'](/url\(#(.*)\)/,_0x16a88b(0x1d8)[_0x16a88b(0x1db)](_0x2bb408[_0x16a88b(0x2f1)],')')));})),_0x1c7aa9;}function _0x38ef15(_0x3412e5,_0x56b34a){var _0x3d1e42=_0x196992,_0x22b10a,_0x2f264d=_0x56b34a['defIds'];return!_0x2f264d||_0x2f264d[_0x3d1e42(0x2e8)]===0x0?_0x3412e5:_0x3412e5[_0x3d1e42(0x320)]==='defs'&&(!((_0x22b10a=_0x3412e5[_0x3d1e42(0x2eb)])===null||_0x22b10a===void 0x0)&&_0x22b10a['length'])?_0x347e6c(_0x347e6c({},_0x3412e5),{'children':_0x3412e5['children'][_0x3d1e42(0x23e)](function(_0x10cef9){var _0x559019=_0x3d1e42;return typeof _0x10cef9[_0x559019(0x263)]['id']=='string'&&_0x2f264d&&_0x2f264d[_0x559019(0x32f)](_0x10cef9[_0x559019(0x263)]['id'])?_0x347e6c(_0x347e6c({},_0x10cef9),{'attrs':_0x347e6c(_0x347e6c({},_0x10cef9[_0x559019(0x263)]),{'id':_0x10cef9[_0x559019(0x263)]['id']+_0x56b34a[_0x559019(0x2f1)]})}):_0x10cef9;})}):_0x3412e5;}function _0x43904a(){var _0x411990=_0x196992;return Math[_0x411990(0x24e)]()[_0x411990(0x348)](0x24)[_0x411990(0x29e)](0x2,0x8);}_0x1b1761[_0x196992(0x288)]=_0x196992(0x22b);var _0x5c031b={'tag':_0x196992(0x27e),'attrs':{'xmlns':_0x196992(0x227),'fill':_0x196992(0x26c),'viewBox':_0x196992(0x29a),'width':'1em','height':_0x196992(0x243)},'children':[{'tag':_0x196992(0x259),'attrs':{'fill':_0x196992(0x283),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0x196992(0x208)}}]},_0x42cd01=_0x89bcb3[_0x196992(0x365)](function(_0x550249,_0x518878){var _0x59f059=_0x196992;return _0x89bcb3[_0x59f059(0x27b)](_0x1b1761,Object[_0x59f059(0x291)]({},_0x550249,{'id':'check-mark-icon','ref':_0x518878,'icon':_0x5c031b}));});_0x42cd01[_0x196992(0x288)]=_0x196992(0x366);var _0x55da9f={'tag':_0x196992(0x27e),'attrs':{'xmlns':_0x196992(0x227),'fill':_0x196992(0x26c),'viewBox':_0x196992(0x2af),'width':'1em','height':'1em'},'children':[{'tag':_0x196992(0x259),'attrs':{'stroke':_0x196992(0x283),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':'round','strokeLinejoin':_0x196992(0x351),'strokeWidth':1.33}},{'tag':_0x196992(0x259),'attrs':{'stroke':_0x196992(0x283),'d':_0x196992(0x2e7),'strokeLinecap':_0x196992(0x351),'strokeLinejoin':_0x196992(0x351),'strokeWidth':1.33}}]},_0x5c9440=_0x89bcb3[_0x196992(0x365)](function(_0x50b34a,_0xdc49a8){var _0x21b36a=_0x196992;return _0x89bcb3[_0x21b36a(0x27b)](_0x1b1761,Object['assign']({},_0x50b34a,{'id':'close-small-single','ref':_0xdc49a8,'icon':_0x55da9f}));});_0x5c9440['displayName']='CloseSmallSingle';var _0x543349={'tag':_0x196992(0x27e),'attrs':{'xmlns':_0x196992(0x227),'fill':_0x196992(0x26c),'viewBox':'0\x200\x2016\x2016','width':_0x196992(0x243),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x196992(0x283),'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':_0x196992(0x259),'attrs':{'fill':_0x196992(0x283),'d':_0x196992(0x297)}},{'tag':'path','attrs':{'fill':_0x196992(0x283),'d':_0x196992(0x304),'fillRule':'evenodd','clipRule':_0x196992(0x208)}}]},_0x3129dc=_0x89bcb3[_0x196992(0x365)](function(_0x491729,_0x25ca03){var _0xf193cc=_0x196992;return _0x89bcb3[_0xf193cc(0x27b)](_0x1b1761,Object[_0xf193cc(0x291)]({},_0x491729,{'id':_0xf193cc(0x207),'ref':_0x25ca03,'icon':_0x543349}));});_0x3129dc[_0x196992(0x288)]=_0x196992(0x244);var _0x28b840={'tag':_0x196992(0x27e),'attrs':{'xmlns':_0x196992(0x227),'fill':_0x196992(0x26c),'viewBox':_0x196992(0x29a),'width':_0x196992(0x243),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x196992(0x238)},'children':[{'tag':_0x196992(0x259),'attrs':{'stroke':_0x196992(0x283),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x196992(0x351),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x196992(0x267),'attrs':{'id':_0x196992(0x327)},'children':[{'tag':'path','attrs':{'fill':_0x196992(0x21f),'d':_0x196992(0x353)}}]}]}],'defIds':[_0x196992(0x327)]},_0x4f9178=_0x89bcb3[_0x196992(0x365)](function(_0x57909c,_0x5c6540){var _0x4f2384=_0x196992;return _0x89bcb3[_0x4f2384(0x27b)](_0x1b1761,Object[_0x4f2384(0x291)]({},_0x57909c,{'id':'off-line-icon','ref':_0x5c6540,'icon':_0x28b840}));});_0x4f9178['displayName']=_0x196992(0x329);var _0x37a8f3={'tag':_0x196992(0x27e),'attrs':{'xmlns':_0x196992(0x227),'fill':_0x196992(0x26c),'viewBox':_0x196992(0x1d7),'width':_0x196992(0x243),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x196992(0x259),'attrs':{'stroke':_0x196992(0x283),'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':_0x196992(0x351),'strokeLinejoin':_0x196992(0x351),'strokeWidth':1.2}}]},{'tag':_0x196992(0x310),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x196992(0x2a8)},'children':[{'tag':_0x196992(0x259),'attrs':{'fill':'white','d':_0x196992(0x353),'transform':_0x196992(0x221)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x283222=_0x89bcb3[_0x196992(0x365)](function(_0x5dc84d,_0x34843b){var _0x3932bc=_0x196992;return _0x89bcb3['createElement'](_0x1b1761,Object[_0x3932bc(0x291)]({},_0x5dc84d,{'id':_0x3932bc(0x33f),'ref':_0x34843b,'icon':_0x37a8f3}));});_0x283222[_0x196992(0x288)]=_0x196992(0x34c);function _0x1d3937(_0x163f1f){var _0x80d584=_0x196992,_0x442702,_0x168ae;const {mcpCoreConfig:_0x3d7f36,onSave:_0x3a395c,loading:_0x3296bf=!0x1,config:_0x21887b,connectionStatus$:_0x15b3d7,connectionError$:_0x342aff,currentApiKey$:_0x4b4e01,currentSessionId$:_0x39e9b9}=_0x163f1f,_0x5743b4=_0x42b9be['useDependency'](_0x3528b3[_0x80d584(0x26a)]),_0x2e652c=_0x42b9be['useObservable'](_0x15b3d7,_0x30e1f0[_0x80d584(0x275)][_0x80d584(0x33d)]),_0x43a01d=_0x42b9be[_0x80d584(0x2fc)](_0x342aff,_0x30e1f0[_0x80d584(0x336)][_0x80d584(0x22e)]),_0xa12db5=_0x42b9be['useObservable'](_0x39e9b9,''),_0x7b724=_0x42b9be[_0x80d584(0x2fc)](_0x4b4e01,''),[_0xd33e00,_0xd4d328]=_0x89bcb3['useState'](_0x7b724||''),_0x24a1dc=!0x0,_0x57a131=_0x21887b[_0x80d584(0x222)]&&_0x3d7f36[_0x80d584(0x345)]&&(_0x3d7f36[_0x80d584(0x345)]['includes'](_0x80d584(0x2f0))||_0x3d7f36[_0x80d584(0x345)][_0x80d584(0x32f)]('univer.ai')),_0x303300=(_0x442702=_0x3d7f36[_0x80d584(0x345)])==null?void 0x0:_0x442702['includes'](_0x80d584(0x2f0)),_0x498a96=(_0x168ae=_0x3d7f36[_0x80d584(0x345)])==null?void 0x0:_0x168ae[_0x80d584(0x32f)](_0x80d584(0x212)),_0x2c27b3=_0x303300?_0x80d584(0x2a5):'https://console.univer.ai',_0x326ac5=_0x21887b[_0x80d584(0x222)]&&(_0x303300||_0x498a96),[_0x525431,_0x1dc824]=_0x89bcb3[_0x80d584(0x306)](!_0xd33e00['trim']()),_0x45b8bf=(_0x24ce59,_0x239877)=>{var _0x466b65=_0x80d584;if(_0x239877===_0x30e1f0[_0x466b65(0x336)][_0x466b65(0x2d0)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x24ce59){case _0x30e1f0[_0x466b65(0x275)]['CONNECTED']:return _0x466b65(0x25d);case _0x30e1f0[_0x466b65(0x275)][_0x466b65(0x262)]:case _0x30e1f0[_0x466b65(0x275)]['RETRYING']:return _0x466b65(0x322);case _0x30e1f0[_0x466b65(0x275)]['FAILED']:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x466b65(0x282);}},_0x3c9df3=(_0x172ea0,_0x3078da)=>{var _0x69586f=_0x80d584;if(_0x3078da===_0x30e1f0[_0x69586f(0x336)]['UNAUTHORIZED'])return _0x69586f(0x358);switch(_0x172ea0){case _0x30e1f0[_0x69586f(0x275)][_0x69586f(0x2e4)]:return _0x69586f(0x22d);case _0x30e1f0[_0x69586f(0x275)][_0x69586f(0x262)]:case _0x30e1f0['MCPConnectionStatus'][_0x69586f(0x326)]:return _0x69586f(0x1fc);case _0x30e1f0['MCPConnectionStatus'][_0x69586f(0x1fe)]:return'univer-bg-red-500';default:return _0x69586f(0x1eb);}},_0xa81773=_0x1e738f=>{var _0x3b05d5=_0x80d584;switch(_0x1e738f){case _0x30e1f0[_0x3b05d5(0x275)][_0x3b05d5(0x2e4)]:return _0x5743b4['t'](_0x3b05d5(0x31d));case _0x30e1f0[_0x3b05d5(0x275)]['CONNECTING']:return _0x5743b4['t'](_0x3b05d5(0x331));case _0x30e1f0[_0x3b05d5(0x275)][_0x3b05d5(0x1fe)]:return _0x5743b4['t']('mcpConfig.connectionStatus.failed');case _0x30e1f0['MCPConnectionStatus']['RETRYING']:return _0x5743b4['t'](_0x3b05d5(0x29c));default:return _0x5743b4['t']('mcpConfig.connectionStatus.disconnected');}},_0x3e20d4=_0x47265b=>{var _0x18f8f5=_0x80d584;switch(_0x47265b){case _0x30e1f0[_0x18f8f5(0x336)][_0x18f8f5(0x2d0)]:return _0x5743b4['t'](_0x18f8f5(0x2c2));case _0x30e1f0['MCPConnectionError'][_0x18f8f5(0x1ed)]:return _0x5743b4['t'](_0x18f8f5(0x2b9));case _0x30e1f0[_0x18f8f5(0x336)][_0x18f8f5(0x293)]:return _0x5743b4['t'](_0x18f8f5(0x2d3));case _0x30e1f0[_0x18f8f5(0x336)][_0x18f8f5(0x300)]:return _0x5743b4['t'](_0x18f8f5(0x295));default:return'';}},_0x39b46f=_0x89bcb3[_0x80d584(0x241)](()=>{const _0x20e92f={..._0x3d7f36,'apiKey':_0xd33e00['trim'](),'enableAuth':_0x24a1dc};_0x3a395c(_0x20e92f);},[_0x3d7f36,_0xd33e00,_0x24a1dc,_0x3a395c]),_0x351f63=_0xd33e00[_0x80d584(0x33b)]()[_0x80d584(0x2e8)]>0x0;return _0x137988['jsxs']('div',{'className':_0x80d584(0x24d),'children':[_0x137988['jsx'](_0x80d584(0x200),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x1f7),'children':[_0x137988['jsx'](_0x80d584(0x200),{'className':_0x80d584(0x1fd),'children':_0x137988[_0x80d584(0x1e0)]('span',{'className':'univer-text-white','children':'⚙'})}),_0x137988[_0x80d584(0x1e0)](_0x80d584(0x200),{'children':_0x137988[_0x80d584(0x1e0)]('p',{'className':_0x80d584(0x2ce),'children':_0x5743b4['t'](_0x80d584(0x343))})})]})}),_0x137988[_0x80d584(0x2f4)]('div',{'className':_0x80d584(0x1f5),'children':[_0x137988[_0x80d584(0x1e0)]('div',{'className':_0x80d584(0x2fe)+_0x45b8bf(_0x2e652c,_0x43a01d)+_0x80d584(0x308),'children':_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x137988['jsx'](_0x80d584(0x200),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3c9df3(_0x2e652c,_0x43a01d)+_0x80d584(0x2b3)}),_0x137988[_0x80d584(0x1e0)]('span',{'className':_0x80d584(0x237),'children':_0xa81773(_0x2e652c)})]})}),_0x43a01d!==_0x30e1f0[_0x80d584(0x336)][_0x80d584(0x22e)]&&(_0x2e652c===_0x30e1f0[_0x80d584(0x275)][_0x80d584(0x1fe)]||_0x43a01d===_0x30e1f0[_0x80d584(0x336)]['UNAUTHORIZED'])&&_0x137988[_0x80d584(0x1e0)](_0x80d584(0x200),{'className':_0x80d584(0x21b),'children':_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x2ea),'children':[_0x137988[_0x80d584(0x1e0)]('span',{'className':_0x80d584(0x23c),'children':'⚠️'}),_0x137988[_0x80d584(0x1e0)]('p',{'className':_0x80d584(0x31c),'children':_0x3e20d4(_0x43a01d)})]})})]}),_0x137988[_0x80d584(0x1e0)]('div',{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x257),'children':[_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x335),'children':[_0x137988[_0x80d584(0x2f4)](_0x80d584(0x2b8),{'className':_0x80d584(0x301),'children':[_0x137988[_0x80d584(0x1e0)](_0x80d584(0x298),{'children':'🔑'}),'\x20',_0x5743b4['t']('mcpConfig.apiKey'),_0x137988[_0x80d584(0x1e0)](_0x80d584(0x298),{'className':_0x80d584(0x2e0),'children':'*'}),_0x57a131&&_0x137988[_0x80d584(0x1e0)]('a',{'href':_0x80d584(0x2b0),'onClick':()=>_0x1dc824(!0x0),'className':'univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x5743b4['t'](_0x80d584(0x325)),'children':_0x137988['jsx'](_0x3129dc,{})})]}),_0x137988[_0x80d584(0x1e0)](_0x454ab9[_0x80d584(0x21e)],{'type':_0x80d584(0x341),'placeholder':_0x5743b4['t'](_0x80d584(0x1e3)),'value':_0xd33e00,'onChange':_0xd4d328,'disabled':_0x3296bf,'autoComplete':_0x80d584(0x296)}),_0x137988[_0x80d584(0x1e0)]('p',{'className':_0x80d584(0x1ee),'children':_0x5743b4['t'](_0x80d584(0x2fa))})]}),_0x57a131&&_0x525431&&_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x137988[_0x80d584(0x1e0)]('a',{'href':_0x80d584(0x2b0),'onClick':()=>_0x1dc824(!0x1),'className':_0x80d584(0x2c9),'title':'Close','children':_0x137988[_0x80d584(0x1e0)](_0x5c9440,{})}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x356),'children':[_0x137988['jsx'](_0x80d584(0x200),{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x137988[_0x80d584(0x1e0)](_0x80d584(0x298),{'className':_0x80d584(0x254),'children':'🚀'})}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':'univer-flex-1','children':[_0x137988['jsx']('h4',{'className':_0x80d584(0x2e6),'children':_0x5743b4['t'](_0x80d584(0x325))}),_0x137988[_0x80d584(0x1e0)]('p',{'className':_0x80d584(0x30c),'children':_0x5743b4['t'](_0x80d584(0x1e8))}),_0x137988[_0x80d584(0x1e0)](_0x80d584(0x200),{'className':_0x80d584(0x2dd),'children':_0x326ac5&&_0x137988['jsxs']('a',{'href':_0x2c27b3,'target':_0x80d584(0x228),'rel':_0x80d584(0x1cd),'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','children':[_0x137988[_0x80d584(0x1e0)]('span',{'children':'🤖'}),_0x5743b4['t'](_0x80d584(0x346)),_0x137988[_0x80d584(0x1e0)]('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x35d),'children':['✨','\x20',_0x5743b4['t'](_0x80d584(0x21d))]})]})]})]}),_0x21887b[_0x80d584(0x222)]&&_0x137988['jsxs']('div',{'className':_0x80d584(0x278),'children':[_0x137988[_0x80d584(0x2f4)]('h4',{'className':_0x80d584(0x2a3),'children':[_0x137988[_0x80d584(0x1e0)](_0x80d584(0x298),{'children':'🔗'}),'\x20',_0x5743b4['t'](_0x80d584(0x347))]}),_0x137988['jsxs'](_0x80d584(0x200),{'className':'univer-space-y-4','children':[_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x361),'children':[_0x137988[_0x80d584(0x1e0)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x5743b4['t'](_0x80d584(0x1e5))}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x335),'children':[_0x137988['jsx'](_0x80d584(0x200),{'className':_0x80d584(0x276),'children':_0x5743b4['t'](_0x80d584(0x30b))}),_0x137988[_0x80d584(0x2f4)]('div',{'className':_0x80d584(0x2ed),'children':[_0x137988['jsxs'](_0x80d584(0x200),{'className':_0x80d584(0x303),'children':[_0x137988[_0x80d584(0x1e0)](_0x80d584(0x298),{'className':_0x80d584(0x1cf),'children':'1'}),_0x5743b4['t'](_0x80d584(0x1da))]}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x303),'children':[_0x137988[_0x80d584(0x1e0)](_0x80d584(0x298),{'className':_0x80d584(0x1cf),'children':'2'}),_0x5743b4['t'](_0x80d584(0x2b7))]}),_0x137988['jsxs']('div',{'className':_0x80d584(0x303),'children':[_0x137988[_0x80d584(0x1e0)](_0x80d584(0x298),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x5743b4['t'](_0x80d584(0x264))]})]})]})]}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':'univer-space-y-2','children':[_0x137988[_0x80d584(0x1e0)](_0x80d584(0x200),{'className':_0x80d584(0x276),'children':_0x80d584(0x349)}),_0x137988[_0x80d584(0x1e0)](_0x80d584(0x200),{'className':_0x80d584(0x31b),'children':_0x137988['jsx'](_0x80d584(0x2c0),{'className':_0x80d584(0x235),'children':_0x80d584(0x2dc)+_0xa12db5+_0x80d584(0x225)+(_0xd33e00||_0x80d584(0x247))+_0x80d584(0x2a0)})})]}),_0x137988[_0x80d584(0x2f4)]('div',{'className':_0x80d584(0x361),'children':[_0x137988[_0x80d584(0x1e0)](_0x80d584(0x200),{'className':_0x80d584(0x276),'children':_0x5743b4['t']('mcpConfig.configParameters')}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x335),'children':[_0x137988['jsxs'](_0x80d584(0x200),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x137988[_0x80d584(0x1e0)](_0x80d584(0x200),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x2ec),'children':[_0x137988[_0x80d584(0x1e0)](_0x80d584(0x200),{'className':_0x80d584(0x324),'children':_0x80d584(0x2a2)}),_0x137988['jsx'](_0x80d584(0x200),{'className':_0x80d584(0x1ee),'children':_0x5743b4['t']('mcpConfig.sessionIdDescription')})]})]}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x137988['jsx'](_0x80d584(0x200),{'className':_0x80d584(0x234)}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':_0x80d584(0x2ec),'children':[_0x137988[_0x80d584(0x1e0)](_0x80d584(0x200),{'className':_0x80d584(0x324),'children':_0x80d584(0x1f2)}),_0x137988[_0x80d584(0x1e0)](_0x80d584(0x200),{'className':_0x80d584(0x1ee),'children':_0x5743b4['t'](_0x80d584(0x231))})]})]})]})]})]})]}),_0x137988[_0x80d584(0x1e0)](_0x454ab9['Button'],{'onClick':_0x39b46f,'disabled':!_0x351f63||_0x3296bf,'className':_0x80d584(0x332),'children':_0x3296bf?_0x137988[_0x80d584(0x2f4)](_0x80d584(0x298),{'className':_0x80d584(0x303),'children':[_0x137988[_0x80d584(0x1e0)]('span',{'children':'⟲'}),_0x5743b4['t']('mcpConfig.saving')]}):_0x137988[_0x80d584(0x2f4)]('span',{'className':_0x80d584(0x303),'children':[_0x137988['jsx'](_0x42cd01,{}),_0x5743b4['t'](_0x80d584(0x355))]})}),_0x137988[_0x80d584(0x1e0)](_0x80d584(0x200),{'className':_0x80d584(0x260),'children':_0x137988['jsxs']('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x137988[_0x80d584(0x1e0)](_0x80d584(0x298),{'className':_0x80d584(0x2e3),'children':'💡'}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x137988['jsx']('div',{'className':_0x80d584(0x1d0),'children':_0x80d584(0x2f7)}),_0x137988[_0x80d584(0x2f4)](_0x80d584(0x200),{'children':['•',_0x5743b4['t']('mcpConfig.note1')]}),_0x137988[_0x80d584(0x2f4)]('div',{'children':['•',_0x5743b4['t'](_0x80d584(0x2e1))]})]})]})})]})})]});}const _0x4f111c='mcp-ui.config',_0x2f10b4={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x265c01=Object[_0x196992(0x20a)],_0x289b8a=(_0x58cf77,_0x4c18fd,_0x294a7f,_0x599541)=>{var _0x50e1e3=_0x196992;for(var _0x2e02d2=_0x599541>0x1?void 0x0:_0x599541?_0x265c01(_0x4c18fd,_0x294a7f):_0x4c18fd,_0x47dd19=_0x58cf77[_0x50e1e3(0x2e8)]-0x1,_0x6f069a;_0x47dd19>=0x0;_0x47dd19--)(_0x6f069a=_0x58cf77[_0x47dd19])&&(_0x2e02d2=_0x6f069a(_0x2e02d2)||_0x2e02d2);return _0x2e02d2;},_0x42459e=(_0x231653,_0x35af19)=>(_0xc48b51,_0x436364)=>_0x35af19(_0xc48b51,_0x436364,_0x231653);const _0x1e1ead=_0x196992(0x1df),_0x329041=_0x196992(0x2de);_0x4fb175[_0x196992(0x29f)]=class extends _0x3528b3[_0x196992(0x251)]{constructor(_0x2090e1,_0xf52fda,_0x3a125a,_0x58590a,_0x2bcbec,_0x157f56,_0x21ddb2,_0x25940e,_0x4b8b8e,_0x5ab023){var _0x3b31cd=_0x196992;super(),_0x4be3b9(this,_0x3b31cd(0x25b),new _0x54618a[(_0x3b31cd(0x334))](!0x1)),_0x4be3b9(this,_0x3b31cd(0x2c3),new _0x54618a[(_0x3b31cd(0x334))]({})),_0x4be3b9(this,_0x3b31cd(0x1f6),new _0x54618a[(_0x3b31cd(0x334))]({})),_0x4be3b9(this,'_apiKey$',new _0x54618a[(_0x3b31cd(0x334))]('')),_0x4be3b9(this,'_handleConfigSave',async _0x387e53=>{var _0x41a992=_0x3b31cd,_0x250459,_0xd735e1;this[_0x41a992(0x25b)][_0x41a992(0x31f)](!0x0);try{const _0xf2d0f1=await this[_0x41a992(0x210)](_0x387e53);if(!_0xf2d0f1[_0x41a992(0x24f)]){this[_0x41a992(0x359)][_0x41a992(0x2b2)]({'type':_0x454ab9[_0x41a992(0x1dc)]['Error'],'content':_0xf2d0f1[_0x41a992(0x299)]||this[_0x41a992(0x2ac)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x387e53[_0x41a992(0x342)]?await this[_0x41a992(0x2a4)]['setItem'](_0x1e1ead,_0x387e53[_0x41a992(0x342)][_0x41a992(0x33b)]()):await this['_localStorageService'][_0x41a992(0x2ff)](_0x1e1ead),this[_0x41a992(0x287)][_0x41a992(0x31f)](((_0x250459=_0x387e53['apiKey'])==null?void 0x0:_0x250459[_0x41a992(0x33b)]())||''),this[_0x41a992(0x292)][_0x41a992(0x1f0)]({'Authorization':_0x41a992(0x2f9)+((_0xd735e1=_0x387e53[_0x41a992(0x342)])==null?void 0x0:_0xd735e1[_0x41a992(0x33b)]())}),this[_0x41a992(0x359)][_0x41a992(0x2b2)]({'type':_0x454ab9[_0x41a992(0x1dc)][_0x41a992(0x309)],'content':this[_0x41a992(0x2ac)]['t'](_0x41a992(0x21c))}),setTimeout(()=>{var _0x2fc0cc=_0x41a992;this[_0x2fc0cc(0x2bf)][_0x2fc0cc(0x2d1)](_0x329041);},0x320);}catch(_0x595dc5){this['_logService'][_0x41a992(0x2f6)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x595dc5),this[_0x41a992(0x359)][_0x41a992(0x2b2)]({'type':_0x454ab9[_0x41a992(0x1dc)][_0x41a992(0x248)],'content':this[_0x41a992(0x2ac)]['t'](_0x41a992(0x311))});}finally{this['_loading$'][_0x41a992(0x31f)](!0x1);}}),(this['_injector']=_0x2090e1,this[_0x3b31cd(0x1e6)]=_0xf52fda,this[_0x3b31cd(0x363)]=_0x3a125a,this[_0x3b31cd(0x2a4)]=_0x58590a,this[_0x3b31cd(0x2bf)]=_0x2bcbec,this[_0x3b31cd(0x359)]=_0x157f56,this[_0x3b31cd(0x2fb)]=_0x21ddb2,this['_localeService']=_0x25940e,this[_0x3b31cd(0x360)]=_0x4b8b8e,this[_0x3b31cd(0x292)]=_0x5ab023,this['_initConfigSync'](),this[_0x3b31cd(0x249)](),this[_0x3b31cd(0x2df)]());}[_0x196992(0x34b)](){var _0x5f1958=_0x196992;const _0x35ceef=this['_configService']['getConfig'](_0x4f111c);_0x35ceef!=null&&_0x35ceef[_0x5f1958(0x222)]&&this[_0x5f1958(0x2bf)]['open']({'id':_0x329041,'title':{'title':this[_0x5f1958(0x2ac)]['t'](_0x5f1958(0x2b4))},'children':{'label':_0x5f1958(0x2c5)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x18d674=_0x5f1958;this[_0x18d674(0x2bf)][_0x18d674(0x2d1)](_0x329041);}});}[_0x196992(0x350)](){var _0x106ce6=_0x196992;return this[_0x106ce6(0x2c3)][_0x106ce6(0x214)];}['_registerComponent'](){var _0x82a67=_0x196992;this[_0x82a67(0x339)](this[_0x82a67(0x2fb)][_0x82a67(0x1ea)](_0x82a67(0x2c5),this[_0x82a67(0x338)]()));}[_0x196992(0x338)](){var _0x239900=_0x196992;return _0x42b9be[_0x239900(0x368)](()=>{var _0x52040=_0x239900,_0x34a844,_0x5eaaf1,_0x42f11f;return _0x137988[_0x52040(0x1e0)](_0x1d3937,{'config':this[_0x52040(0x1f6)][_0x52040(0x214)],'mcpCoreConfig':this[_0x52040(0x2c3)][_0x52040(0x214)],'currentApiKey$':this[_0x52040(0x287)],'onSave':this[_0x52040(0x20c)],'loading':this[_0x52040(0x25b)][_0x52040(0x214)],'connectionStatus$':(_0x34a844=this['_mcpConnectionController'])==null?void 0x0:_0x34a844[_0x52040(0x344)],'connectionError$':(_0x5eaaf1=this[_0x52040(0x292)])==null?void 0x0:_0x5eaaf1[_0x52040(0x268)],'currentSessionId$':(_0x42f11f=this[_0x52040(0x292)])==null?void 0x0:_0x42f11f[_0x52040(0x1fb)]});},this[_0x239900(0x1d9)]);}[_0x196992(0x272)](){var _0x57b60e=_0x196992;this[_0x57b60e(0x339)](this[_0x57b60e(0x363)]['subscribeConfigValue$'](_0x30e1f0[_0x57b60e(0x232)])[_0x57b60e(0x1cb)](_0x7db739=>{var _0x33bfa8=_0x57b60e;this['_mcpCoreConfig$'][_0x33bfa8(0x31f)](_0x7db739||{});}));const _0xe36840=this[_0x57b60e(0x363)]['getConfig'](_0x30e1f0['MCP_PLUGIN_CONFIG_KEY']);this[_0x57b60e(0x2c3)]['next'](_0xe36840||{}),this[_0x57b60e(0x339)](this['_configService'][_0x57b60e(0x258)](_0x4f111c)[_0x57b60e(0x1cb)](_0x35f7=>{var _0x31b85b=_0x57b60e;this['_config$'][_0x31b85b(0x31f)](_0x35f7||{});}));const _0x453e27=this['_configService']['getConfig'](_0x4f111c);this[_0x57b60e(0x1f6)][_0x57b60e(0x31f)](_0x453e27||{});}async['_loadStoredApiKey'](){var _0x3b6a18=_0x196992;const _0x5c8373=this[_0x3b6a18(0x363)]['getConfig'](_0x4f111c);if(!(_0x5c8373!=null&&_0x5c8373[_0x3b6a18(0x222)]))return;const _0x31400a=await this['_localStorageService'][_0x3b6a18(0x1f1)](_0x1e1ead);_0x31400a&&(this[_0x3b6a18(0x292)][_0x3b6a18(0x1f0)]({'Authorization':_0x3b6a18(0x2f9)+_0x31400a}),this['_apiKey$'][_0x3b6a18(0x31f)](_0x31400a));}async[_0x196992(0x210)](_0x390315){var _0x377094=_0x196992;if(!_0x390315[_0x377094(0x342)]||_0x390315['apiKey'][_0x377094(0x33b)]()[_0x377094(0x2e8)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x377094(0x2ac)]['t'](_0x377094(0x314))};if(_0x390315[_0x377094(0x342)][_0x377094(0x33b)]()[_0x377094(0x2e8)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x5b4026=await this[_0x377094(0x1d9)][_0x377094(0x256)](_0x30e1f0[_0x377094(0x279)])[_0x377094(0x2a6)](_0x390315[_0x377094(0x342)][_0x377094(0x33b)]());return _0x5b4026['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5b4026[_0x377094(0x2f6)]||this[_0x377094(0x2ac)]['t'](_0x377094(0x274))};}catch(_0x225020){return console[_0x377094(0x26e)](_0x377094(0x34f),_0x225020),{'isValid':!0x0};}}},_0x4fb175[_0x196992(0x29f)]=_0x289b8a([_0x42459e(0x0,_0x3528b3[_0x196992(0x284)](_0x3528b3[_0x196992(0x2e5)])),_0x42459e(0x1,_0x42b9be[_0x196992(0x2bb)]),_0x42459e(0x2,_0x3528b3[_0x196992(0x2d6)]),_0x42459e(0x3,_0x3528b3[_0x196992(0x321)]),_0x42459e(0x4,_0x42b9be[_0x196992(0x226)]),_0x42459e(0x5,_0x42b9be['IMessageService']),_0x42459e(0x6,_0x3528b3['Inject'](_0x42b9be['ComponentManager'])),_0x42459e(0x7,_0x3528b3[_0x196992(0x284)](_0x3528b3[_0x196992(0x26a)])),_0x42459e(0x8,_0x3528b3[_0x196992(0x245)]),_0x42459e(0x9,_0x3528b3[_0x196992(0x284)](_0x30e1f0[_0x196992(0x279)]))],_0x4fb175[_0x196992(0x29f)]);const _0xcdbf77={'id':_0x196992(0x206),'type':_0x3528b3[_0x196992(0x32a)]['COMMAND'],'handler':async(_0x191b14,_0x3185d1)=>(_0x191b14[_0x196992(0x256)](_0x4fb175[_0x196992(0x29f)])[_0x196992(0x34b)](),!0x0)};function _0x5cf028(_0x39b36a,_0x350854){var _0x30ffd7=_0x196992;switch(_0x39b36a){case _0x30e1f0['MCPConnectionStatus']['DISCONNECTED']:return _0x30ffd7(0x26f);case _0x30e1f0[_0x30ffd7(0x275)][_0x30ffd7(0x262)]:return'mcpStatus.connecting';case _0x30e1f0['MCPConnectionStatus'][_0x30ffd7(0x2e4)]:return _0x30ffd7(0x27f);case _0x30e1f0['MCPConnectionStatus']['FAILED']:switch(_0x350854){case _0x30e1f0['MCPConnectionError'][_0x30ffd7(0x2d0)]:return'mcpStatus.unauthorized';case _0x30e1f0[_0x30ffd7(0x336)][_0x30ffd7(0x1ed)]:return _0x30ffd7(0x31e);case _0x30e1f0[_0x30ffd7(0x336)][_0x30ffd7(0x293)]:return _0x30ffd7(0x319);case _0x30e1f0[_0x30ffd7(0x336)][_0x30ffd7(0x300)]:return _0x30ffd7(0x273);default:return _0x30ffd7(0x35c);}case _0x30e1f0['MCPConnectionStatus'][_0x30ffd7(0x326)]:return _0x30ffd7(0x2d9);default:return _0x30ffd7(0x32b);}}function _0x4de4eb(_0x10faa3,_0x5b1744,_0x3fdc2a,_0x42a5a3=!0x0){var _0x4cda76=_0x196992;const _0x245090=_0x5cf028(_0x10faa3,_0x5b1744),_0x58a4ff=_0x3fdc2a['t'](_0x245090);return _0x42a5a3?_0x10faa3===_0x30e1f0[_0x4cda76(0x275)][_0x4cda76(0x33d)]&&_0x5b1744===_0x30e1f0[_0x4cda76(0x336)][_0x4cda76(0x2d0)]?_0x58a4ff+_0x4cda76(0x219)+_0x3fdc2a['t'](_0x4cda76(0x364)):_0x10faa3===_0x30e1f0[_0x4cda76(0x275)][_0x4cda76(0x2e4)]?''+_0x58a4ff:_0x10faa3===_0x30e1f0['MCPConnectionStatus'][_0x4cda76(0x33d)]||_0x10faa3===_0x30e1f0[_0x4cda76(0x275)][_0x4cda76(0x1fe)]?_0x58a4ff+_0x4cda76(0x219)+_0x3fdc2a['t'](_0x4cda76(0x271)):_0x58a4ff:_0x58a4ff;}function _0x1b78cd(_0x5c28e7){var _0x5eb9f6=_0x196992;switch(_0x5c28e7){case _0x30e1f0['MCPConnectionStatus'][_0x5eb9f6(0x2e4)]:return _0x5eb9f6(0x357);case _0x30e1f0[_0x5eb9f6(0x275)][_0x5eb9f6(0x262)]:case _0x30e1f0[_0x5eb9f6(0x275)][_0x5eb9f6(0x326)]:return'univer-text-yellow-500';case _0x30e1f0[_0x5eb9f6(0x275)][_0x5eb9f6(0x1fe)]:case _0x30e1f0[_0x5eb9f6(0x275)][_0x5eb9f6(0x33d)]:return _0x5eb9f6(0x2e0);default:return'univer-text-gray-500';}}function _0x15ac7e(_0x2cc25a){var _0x12b605=_0x196992;const {status$:_0x22f80d,error$:_0x236d1d,onConfigure:_0x43a1d0,showClickable:_0x2e3892=!0x0}=_0x2cc25a,_0x2938dc=_0x42b9be[_0x12b605(0x2fc)](_0x22f80d,_0x30e1f0[_0x12b605(0x275)][_0x12b605(0x33d)]),_0x45b73d=_0x42b9be['useObservable'](_0x236d1d,_0x30e1f0[_0x12b605(0x336)][_0x12b605(0x22e)]),_0x4a7c03=_0x42b9be[_0x12b605(0x26b)](_0x3528b3[_0x12b605(0x26a)]),_0x46d91f=_0x2938dc===_0x30e1f0[_0x12b605(0x275)][_0x12b605(0x2e4)];_0x2938dc===_0x30e1f0[_0x12b605(0x275)]['CONNECTING']||_0x30e1f0[_0x12b605(0x275)][_0x12b605(0x326)];const _0x1acd84=_0x4a7c03['t'](_0x5cf028(_0x2938dc,_0x45b73d)),_0x203f15=_0x4de4eb(_0x2938dc,_0x45b73d,_0x4a7c03,_0x2e3892),_0x344139=_0x1b78cd(_0x2938dc),_0x2bc69f=_0x46d91f?_0x137988[_0x12b605(0x1e0)](_0x283222,{}):_0x137988[_0x12b605(0x1e0)](_0x4f9178,{}),_0x1da229=_0x89bcb3[_0x12b605(0x241)](()=>{_0x2e3892&&_0x43a1d0&&_0x43a1d0();},[_0x2e3892,_0x43a1d0]);function _0x36da7b(){var _0x4401b1=_0x12b605;return _0x137988[_0x4401b1(0x2f4)]('div',{'className':_0x454ab9['clsx'](_0x4401b1(0x27c),_0x2e3892&&_0x43a1d0&&_0x4401b1(0x239)),'onClick':_0x2e3892&&_0x43a1d0?_0x1da229:void 0x0,'children':[_0x137988['jsx'](_0x4401b1(0x200),{'className':_0x454ab9['clsx'](_0x4401b1(0x211),_0x344139),'children':_0x2bc69f}),_0x137988[_0x4401b1(0x1e0)](_0x4401b1(0x200),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1acd84})]});}return _0x137988[_0x12b605(0x1e0)](_0x454ab9[_0x12b605(0x218)],{'title':_0x203f15,'placement':_0x12b605(0x32e),'children':_0x36da7b()});}var _0x9d8078=Object[_0x196992(0x20a)],_0x10cbc2=(_0x4a0e2d,_0xd587d,_0x2b77fb,_0x2bafd0)=>{var _0x403e6b=_0x196992;for(var _0x412385=_0x2bafd0>0x1?void 0x0:_0x2bafd0?_0x9d8078(_0xd587d,_0x2b77fb):_0xd587d,_0x847eb7=_0x4a0e2d[_0x403e6b(0x2e8)]-0x1,_0xe23d72;_0x847eb7>=0x0;_0x847eb7--)(_0xe23d72=_0x4a0e2d[_0x847eb7])&&(_0x412385=_0xe23d72(_0x412385)||_0x412385);return _0x412385;},_0x46e6cc=(_0x159d59,_0x1d56a4)=>(_0x41afc2,_0x3fae36)=>_0x1d56a4(_0x41afc2,_0x3fae36,_0x159d59);_0x4fb175[_0x196992(0x2bd)]=class extends _0x3528b3[_0x196992(0x251)]{constructor(_0x362c78,_0x15d8b0,_0x9ba8df,_0x555af0){var _0x398e36=_0x196992;super(),this['_injector']=_0x362c78,this[_0x398e36(0x2c6)]=_0x15d8b0,this[_0x398e36(0x1e6)]=_0x9ba8df,this[_0x398e36(0x363)]=_0x555af0,this[_0x398e36(0x24b)](),this[_0x398e36(0x1d2)]();}['_initAutoConnect'](){var _0x149928=_0x196992;const _0x2ea035=this[_0x149928(0x363)]['getConfig'](_0x4f111c);_0x2ea035!=null&&_0x2ea035['showDeveloperTools']&&(this[_0x149928(0x2c6)][_0x149928(0x2e9)]=!0x1);}[_0x196992(0x1d2)](){var _0x5565b7=_0x196992;const _0x4b1aaa=this['_configService'][_0x5565b7(0x28a)](_0x4f111c);(_0x4b1aaa==null?void 0x0:_0x4b1aaa[_0x5565b7(0x2d8)])!==!0x1&&this[_0x5565b7(0x339)](this['_uiPartsService'][_0x5565b7(0x280)](_0x42b9be[_0x5565b7(0x242)][_0x5565b7(0x224)],()=>{var _0x2230fd=_0x5565b7,_0x159934;return _0x42b9be[_0x2230fd(0x368)](_0x5135ad({'status$':this[_0x2230fd(0x2c6)][_0x2230fd(0x344)],'error$':this[_0x2230fd(0x2c6)][_0x2230fd(0x268)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x159934=_0x4b1aaa==null?void 0x0:_0x4b1aaa[_0x2230fd(0x222)])!=null?_0x159934:!0x1}),this['_injector']);}));}[_0x196992(0x30f)](){var _0x927ba2=_0x196992;this['_injector'][_0x927ba2(0x256)](_0x4fb175['MCPConfigUIController'])[_0x927ba2(0x34b)]();}},_0x4fb175[_0x196992(0x2bd)]=_0x10cbc2([_0x46e6cc(0x0,_0x3528b3[_0x196992(0x284)](_0x3528b3[_0x196992(0x2e5)])),_0x46e6cc(0x1,_0x3528b3['Inject'](_0x30e1f0[_0x196992(0x279)])),_0x46e6cc(0x2,_0x42b9be[_0x196992(0x2bb)]),_0x46e6cc(0x3,_0x3528b3[_0x196992(0x2d6)])],_0x4fb175[_0x196992(0x2bd)]);function _0x5135ad(_0x5f1ec8){const {status$:_0x4c7186,error$:_0x999179,onConfigure:_0x16299f,showClickable:_0x3aecaa}=_0x5f1ec8;return function(){var _0x52c62a=_0x2c3f;return _0x137988[_0x52c62a(0x1e0)](_0x15ac7e,{'status$':_0x4c7186,'error$':_0x999179,'onConfigure':_0x16299f,'showClickable':_0x3aecaa});};}function _0x45991a(_0x1ec0f8){var _0x40361b=_0x196992;return{'id':_0xcdbf77['id'],'type':_0x42b9be[_0x40361b(0x2f5)]['BUTTON'],'icon':'MenuIcon','title':'mcpConfig.title','tooltip':_0x40361b(0x2b4)};}const _0x198478={[_0x42b9be[_0x196992(0x270)][_0x196992(0x318)]]:{[_0xcdbf77['id']]:{'order':0xa,'menuItemFactory':_0x45991a}}};var _0x5a199d=Object[_0x196992(0x20a)],_0x43d3e3=(_0x2d55f6,_0x3883c3,_0x50c1d8,_0x2dc25f)=>{var _0x20fb9f=_0x196992;for(var _0x325007=_0x2dc25f>0x1?void 0x0:_0x2dc25f?_0x5a199d(_0x3883c3,_0x50c1d8):_0x3883c3,_0x57ab4d=_0x2d55f6[_0x20fb9f(0x2e8)]-0x1,_0x2dcb1b;_0x57ab4d>=0x0;_0x57ab4d--)(_0x2dcb1b=_0x2d55f6[_0x57ab4d])&&(_0x325007=_0x2dcb1b(_0x325007)||_0x325007);return _0x325007;},_0x7834f5=(_0x252085,_0x2d131f)=>(_0x27c081,_0x36dd39)=>_0x2d131f(_0x27c081,_0x36dd39,_0x252085);_0x4fb175[_0x196992(0x1fa)]=class extends _0x3528b3['Disposable']{constructor(_0x3fbb2f,_0x5d229d){var _0x262e86=_0x196992;super(),this['_commandService']=_0x3fbb2f,this[_0x262e86(0x2b6)]=_0x5d229d,this[_0x262e86(0x25e)](),this[_0x262e86(0x1cc)]();}['_initializeCommands'](){var _0x16dc5a=_0x196992;[_0xcdbf77][_0x16dc5a(0x28c)](_0x632639=>{var _0x4e890b=_0x16dc5a;this[_0x4e890b(0x339)](this[_0x4e890b(0x2fd)][_0x4e890b(0x367)](_0x632639));});}[_0x196992(0x1cc)](){var _0x1ef24b=_0x196992;this[_0x1ef24b(0x2b6)][_0x1ef24b(0x213)](_0x198478);}},_0x4fb175[_0x196992(0x1fa)]=_0x43d3e3([_0x7834f5(0x0,_0x3528b3[_0x196992(0x2d4)]),_0x7834f5(0x1,_0x42b9be[_0x196992(0x215)])],_0x4fb175[_0x196992(0x1fa)]);const _0x4e0fe6={'mcpStatus':{'disconnected':_0x196992(0x265),'connecting':'MCP\x20Connecting...','connected':_0x196992(0x29d),'failed':_0x196992(0x27a),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x196992(0x203),'maxRetriesExceeded':_0x196992(0x281),'clickToConnect':_0x196992(0x2c8),'clickToConfigure':_0x196992(0x317)},'mcpConfig':{'title':_0x196992(0x349),'description':_0x196992(0x230),'apiKey':_0x196992(0x29b),'apiKeyPlaceholder':_0x196992(0x2d7),'apiKeyHint':_0x196992(0x312),'enableAuth':_0x196992(0x323),'enableAuthHint':_0x196992(0x1e9),'connectionInfo':_0x196992(0x1dd),'mcpClientConfig':_0x196992(0x1dd),'configInstructions':_0x196992(0x246),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x196992(0x22c),'configStep2':_0x196992(0x35f),'configStep3':_0x196992(0x250),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x196992(0x205),'configParameters':_0x196992(0x2aa),'maxRetries':_0x196992(0x28e),'save':_0x196992(0x36a),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x196992(0x23b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x196992(0x35e),'apiApplyInfo':{'title':_0x196992(0x1f9),'description':_0x196992(0x32d),'univerAiLabel':_0x196992(0x1f3),'getStarted':_0x196992(0x2ca)},'validation':{'apiKeyRequired':_0x196992(0x1d3),'apiKeyTooShort':_0x196992(0x307),'invalidConfig':_0x196992(0x313),'invalidApiKey':_0x196992(0x369)},'connectionStatus':{'disconnected':_0x196992(0x330),'connecting':'Connecting...','connected':_0x196992(0x2b1),'failed':_0x196992(0x333),'retrying':_0x196992(0x2be)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x196992(0x35b),'networkError':_0x196992(0x1de),'maxRetriesExceeded':_0x196992(0x20b)}}},_0x58ac5a={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x196992(0x2f2),'failed':_0x196992(0x204),'retrying':'MCP\x20重连中...','unknown':_0x196992(0x285),'unauthorized':_0x196992(0x23a),'sessionOccupied':_0x196992(0x340),'networkError':_0x196992(0x23d),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x196992(0x2bc),'clickToConfigure':_0x196992(0x27d)},'mcpConfig':{'title':_0x196992(0x1f8),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x196992(0x316),'apiKeyPlaceholder':_0x196992(0x2ae),'apiKeyHint':_0x196992(0x34a),'enableAuth':_0x196992(0x34e),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x196992(0x2a1),'mcpClientConfig':_0x196992(0x2a1),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x196992(0x1d4),'configStep2':_0x196992(0x33e),'configStep3':_0x196992(0x24c),'sessionId':_0x196992(0x216),'sessionIdDescription':_0x196992(0x302),'authorizationDescription':_0x196992(0x36b),'configParameters':_0x196992(0x22f),'maxRetries':_0x196992(0x25a),'save':'保存配置','saving':'保存中...','note1':_0x196992(0x34d),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x196992(0x28b),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x196992(0x28d),'univerAiLabel':_0x196992(0x28f),'getStarted':_0x196992(0x2d5)},'validation':{'apiKeyRequired':_0x196992(0x261),'apiKeyTooShort':_0x196992(0x223),'invalidConfig':_0x196992(0x269),'invalidApiKey':_0x196992(0x2b5)},'connectionStatus':{'disconnected':_0x196992(0x236),'connecting':_0x196992(0x25c),'connected':_0x196992(0x20e),'failed':_0x196992(0x20f),'retrying':_0x196992(0x1f4)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x196992(0x24a),'maxRetriesExceeded':_0x196992(0x202)}}};var _0x294d5=Object['defineProperty'],_0xd8afbc=Object[_0x196992(0x20a)],_0x42ebf9=(_0x18c367,_0x581ed4,_0x49fdf7)=>_0x581ed4 in _0x18c367?_0x294d5(_0x18c367,_0x581ed4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49fdf7}):_0x18c367[_0x581ed4]=_0x49fdf7,_0x15b0ce=(_0x2ee43e,_0x3a40a9,_0x8e330d,_0x111b73)=>{var _0x4bd4a0=_0x196992;for(var _0x56b88c=_0x111b73>0x1?void 0x0:_0x111b73?_0xd8afbc(_0x3a40a9,_0x8e330d):_0x3a40a9,_0x5e1cb4=_0x2ee43e[_0x4bd4a0(0x2e8)]-0x1,_0x5a2e24;_0x5e1cb4>=0x0;_0x5e1cb4--)(_0x5a2e24=_0x2ee43e[_0x5e1cb4])&&(_0x56b88c=_0x5a2e24(_0x56b88c)||_0x56b88c);return _0x56b88c;},_0x25f6b0=(_0x45349b,_0x1957d6)=>(_0x496a04,_0x50aaa1)=>_0x1957d6(_0x496a04,_0x50aaa1,_0x45349b),_0x5c744f=(_0x3c8e43,_0x2dfca7,_0x27567e)=>_0x42ebf9(_0x3c8e43,_0x2dfca7+'',_0x27567e);_0x4fb175['UniverMCPUIPlugin']=class extends _0x3528b3[_0x196992(0x289)]{constructor(_0x5038c4=_0x2f10b4,_0x3f1cfd,_0x37c1f1,_0x1a16ee,_0xcc9f0d,_0x1d193d){var _0xa0617d=_0x196992;super(),this['_config']=_0x5038c4,this[_0xa0617d(0x1d9)]=_0x3f1cfd,this['_configService']=_0x37c1f1,this['_uiPartsService']=_0x1a16ee,this[_0xa0617d(0x2a4)]=_0xcc9f0d,this[_0xa0617d(0x2ac)]=_0x1d193d;const {..._0x5680d4}=_0x3528b3[_0xa0617d(0x2ad)]({},_0x2f10b4,this[_0xa0617d(0x2da)]);this[_0xa0617d(0x363)][_0xa0617d(0x253)](_0x4f111c,_0x5680d4);}async[_0x196992(0x1e2)](){var _0x536391=_0x196992;const _0x38055d=[[_0x4fb175[_0x536391(0x2bd)]],[_0x4fb175['MCPConfigUIController']],[_0x4fb175['MCPUIMenuController']]];this['_injector'][_0x536391(0x2c1)](_0x21d076['ISocketService'])||_0x38055d[_0x536391(0x20d)]([_0x21d076[_0x536391(0x1d1)],{'useClass':_0x21d076[_0x536391(0x1ef)]}]),_0x38055d[_0x536391(0x28c)](_0x57da45=>this[_0x536391(0x1d9)][_0x536391(0x337)](_0x57da45)),this['_injector'][_0x536391(0x256)](_0x4fb175['MCPConnectionUIController']),this[_0x536391(0x1d9)][_0x536391(0x256)](_0x4fb175['MCPConfigUIController']),this['_injector'][_0x536391(0x256)](_0x4fb175['MCPUIMenuController']);}},_0x5c744f(_0x4fb175[_0x196992(0x1d6)],'pluginName',_0x196992(0x33a)),_0x4fb175[_0x196992(0x1d6)]=_0x15b0ce([_0x3528b3[_0x196992(0x290)](_0x30e1f0[_0x196992(0x2cb)]),_0x25f6b0(0x1,_0x3528b3['Inject'](_0x3528b3['Injector'])),_0x25f6b0(0x2,_0x3528b3[_0x196992(0x2d6)]),_0x25f6b0(0x3,_0x42b9be[_0x196992(0x2bb)]),_0x25f6b0(0x4,_0x3528b3['ILocalStorageService']),_0x25f6b0(0x5,_0x3528b3[_0x196992(0x284)](_0x3528b3[_0x196992(0x26a)]))],_0x4fb175[_0x196992(0x1d6)]),_0x4fb175[_0x196992(0x2c5)]=_0x1d3937,_0x4fb175[_0x196992(0x255)]=_0x15ac7e,_0x4fb175['OpenMCPConfigPanelCommand']=_0xcdbf77,_0x4fb175[_0x196992(0x2a9)]=_0x4e0fe6,_0x4fb175[_0x196992(0x362)]=_0x58ac5a,Object['defineProperty'](_0x4fb175,Symbol[_0x196992(0x201)],{'value':_0x196992(0x2ee)});}));function _0x6720(){var _0xe10d3b=['hasOwnProperty','jsxs','MenuItemType','error','Configuration\x20Notes:','react/jsx-runtime','Bearer\x20','mcpConfig.apiKeyHint','_componentManager','useObservable','_commandService','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','removeItem','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-flex\x20univer-items-center\x20univer-gap-2','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','object','useState','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Success','7MPipvM','mcpConfig.configStepTitle','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','UniverProMcp','xlink:href','_handleConfigure','defs','mcpConfig.configError','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration','mcpConfig.validation.apiKeyRequired','283077DHUtzT','API\x20密钥','Click\x20to\x20configure\x20MCP','OTHERS','mcpStatus.networkError','97839wqFbrf','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.connectionStatus.connected','mcpStatus.sessionOccupied','next','tag','ILocalStorageService','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Enable\x20Authentication','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.apiApplyInfo.title','RETRYING','off-line-icon_clip0_910_343','symbol','OffLineIcon','CommandType','mcpStatus.unknown','call','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','bottom','includes','Disconnected','mcpConfig.connectionStatus.connecting','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','Connection\x20Failed','BehaviorSubject','univer-space-y-2','MCPConnectionError','add','_createConfigPanelComponent','disposeWithMe','MCP_UI_PLUGIN','trim','icon','DISCONNECTED','将配置添加到您的\x20MCP\x20客户端设置文件中','on-line-icon','MCP:\x20会话\x20ID\x20已被占用','text','apiKey','mcpConfig.description','connectionStatus$','mcpServerUrl','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.connectionInfo','toString','MCP\x20Configuration','您的\x20API\x20密钥将在此浏览器中本地存储','showConfigPanel','OnLineIcon','配置更改将立即生效','启用身份验证','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','getCurrentConfig','round','88CWnpTH','M0\x200H16V16H0z','defineProperty','mcpConfig.save','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-text-green-500','univer-bg-red-500','_messageService','exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpStatus.failed','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_logService','univer-space-y-3','zhCN','_configService','mcpStatus.clickToConfigure','forwardRef','CheckMarkIcon','registerCommand','connectInjector','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Save\x20Configuration','带有\x20Bearer\x20前缀的\x20API\x20密钥。','subscribe','_initializeMenus','noopener\x20noreferrer','@univerjs-pro/mcp','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-font-medium','ISocketService','_initStatusComponent','API\x20key\x20is\x20required','复制以下\x20JSON\x20配置','fill','UniverMCPUIPlugin','0\x200\x2017\x2016','url(#$1','_injector','mcpConfig.configStep1','concat','MessageType','MCP\x20Client\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcp.apiKey','jsx','useRef','onStarting','mcpConfig.apiKeyPlaceholder','prototype','mcpConfig.configInstructions','_uiPartsService','className','mcpConfig.apiApplyInfo.description','Enable\x20authentication\x20for\x20secure\x20connections','register','univer-bg-gray-500','rxjs','SESSION_ID_OCCUPIED','univer-text-xs\x20univer-text-gray-500','WebSocketService','__setCustomHeaders','getItem','Authorization:','Univer\x20AI\x20Console','重连中...','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_config$','univer-flex\x20univer-items-center\x20univer-gap-3','MCP\x20配置','What\x20is\x20API\x20Key?','MCPUIMenuController','sessionId$','univer-bg-blue-500','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','FAILED','string','div','toStringTag','超出最大重试次数,请稍后再试','MCP:\x20Network\x20Error','MCP\x20连接失败','API\x20key\x20with\x20Bearer\x20prefix.','mcp-ui.command.openConfigPanel','help-single','evenodd','propertyIsEnumerable','getOwnPropertyDescriptor','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_handleConfigSave','push','已连接','连接失败','_validateConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','univer.ai','mergeMenu','value','IMenuManagerService','会话ID','18DfKgJN','Tooltip','\x20-\x20','colorChannel1','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.configSaved','mcpConfig.apiApplyInfo.getStarted','Input','white','UniverDesign','translate(.97)','showDeveloperTools','API\x20密钥长度至少需要\x2010\x20位','HEADER_MENU','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','IDialogService','http://www.w3.org/2000/svg','_blank','use','defIds','UniverIcon','Copy\x20the\x20JSON\x20configuration\x20below','univer-bg-green-500','NONE','配置参数:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.authorizationDescription','MCP_PLUGIN_CONFIG_KEY','getOwnPropertySymbols','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','未连接','univer-text-sm\x20univer-font-medium','url(#off-line-icon_clip0_910_343)','\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','MCP:\x20未授权','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-flex-shrink-0\x20univer-text-red-500','MCP:\x20网络错误','map','UniverNetwork','univerjs-icon\x20univerjs-icon-','useCallback','BuiltInUIPart','1em','HelpSingle','ILogService','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','<API_KEY>','Error','_loadStoredApiKey','网络连接错误,请检查您的网络连接','_initAutoConnect','重启您的\x20MCP\x20客户端以使配置生效','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','random','isValid','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Disposable','replace','setConfig','univer-text-blue-600','MCPStatusDisplay','get','univer-space-y-5','subscribeConfigValue$','path','最大重试次数','_loading$','连接中...','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_initializeCommands','732702fEiIQF','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','API\x20密钥不能为空','CONNECTING','attrs','mcpConfig.configStep3','MCP\x20Disconnected','current','clipPath','connectionError$','配置无效','LocaleService','useDependency','none','314620catbuN','warn','mcpStatus.disconnected','RibbonStartGroup','mcpStatus.clickToConnect','_initConfigSync','mcpStatus.maxRetriesExceeded','mcpConfig.validation.invalidApiKey','MCPConnectionStatus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','React','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCPConnectionController','MCP\x20Connection\x20Failed','createElement','univer-flex\x20univer-items-center','点击配置\x20MCP','svg','mcpStatus.connected','registerComponent','MCP:\x20Max\x20Retries\x20Exceeded','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','currentColor','Inject','MCP\x20状态未知','@univerjs/network','_apiKey$','displayName','Plugin','getConfig','配置保存成功','forEach','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Max\x20Retries','Univer\x20AI\x20控制台','DependentOn','assign','_mcpConnectionController','NETWORK_ERROR','1556410oVPzlG','mcpConfig.connectionError.maxRetriesExceeded','off','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','span','errorMessage','0\x200\x2016\x2016','API\x20Key','mcpConfig.connectionStatus.retrying','MCP\x20Connected','substring','MCPConfigUIController','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','MCP\x20客户端配置','univer_session_id:','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_localStorageService','https://console.univer.plus','validateApiKey','UniverUi','on-line-icon_clip0_910_349','enUS','Configuration\x20Parameters:','entries','_localeService','merge','请输入您的\x20API\x20密钥','0\x200\x2017\x2017','javascript:void(0)','Connected','show','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.title','API\x20密钥无效,请检查密钥是否正确','_menuManagerService','mcpConfig.configStep2','label','mcpConfig.connectionError.sessionOccupied','apply','IUIPartsService','点击连接\x20MCP','MCPConnectionUIController','Retrying...','_dialogService','pre','has','mcpConfig.connectionError.unauthorized','_mcpCoreConfig$','react','MCPConfigPanel','_connectionController','UniverProMcpUi','Click\x20to\x20connect\x20MCP','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','Get\x20your\x20API\x20key\x20in\x20seconds','UniverMCPPlugin','783676AwYHlm','341mabczY','univer-text-sm\x20univer-text-gray-500','function','UNAUTHORIZED','close','@univerjs/core','mcpConfig.connectionError.networkError','ICommandService','几秒钟内获取您的\x20API\x20密钥','IConfigService','Enter\x20your\x20API\x20key','showStatus','mcpStatus.retrying','_config','mask','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcp-config-dialog','_registerComponent','univer-text-red-500','mcpConfig.note2','153383oiPAWA','univer-flex-shrink-0\x20univer-text-blue-500','CONNECTED','Injector','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','M5.21243\x2012.287L11.8791\x205.62036','length','enableAutoConnect','univer-flex\x20univer-items-start\x20univer-gap-2','children','univer-min-w-0\x20univer-flex-1','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Module','@univerjs/design','univer.plus','idSuffix','MCP\x20已连接'];_0x6720=function(){return _0xe10d3b;};return _0x6720();}
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5e95(_0xd4b0a,_0x22c617){var _0x3a5c75=_0x3a5c();return _0x5e95=function(_0x5e953a,_0x4d9dab){_0x5e953a=_0x5e953a-0x99;var _0x22c0c4=_0x3a5c75[_0x5e953a];return _0x22c0c4;},_0x5e95(_0xd4b0a,_0x22c617);}function _0x3a5c(){var _0x5ba395=['Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','111xmvMwW','1244GBYrmp','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connected','Univer\x20AI\x20Console','MCP\x20Unknown\x20Status','object','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','Failed\x20to\x20save\x20configuration','function','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1226155WKTvHa','MCP\x20Client\x20Configuration','Connection\x20Failed','1074qcLnbQ','UniverProMcpUiCaES','6030HCOLWc','MCP\x20Connecting...','Enable\x20Authentication','Click\x20to\x20configure\x20MCP','583KfyWZQ','Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','Configuration\x20Steps:','exports','111247atLqpy','63wWyvLh','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2605UAsMFt','192462WwfOYo','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','What\x20is\x20API\x20Key?','MCP:\x20Unauthorized','161800taBvMp'];_0x3a5c=function(){return _0x5ba395;};return _0x3a5c();}(function(_0x39d1ec,_0x21c5cd){var _0x10fbe4=_0x5e95,_0x3c708e=_0x39d1ec();while(!![]){try{var _0x314124=parseInt(_0x10fbe4(0xba))/0x1+parseInt(_0x10fbe4(0xbf))/0x2+-parseInt(_0x10fbe4(0xc9))/0x3*(-parseInt(_0x10fbe4(0x99))/0x4)+parseInt(_0x10fbe4(0xbe))/0x5*(-parseInt(_0x10fbe4(0xac))/0x6)+-parseInt(_0x10fbe4(0xa9))/0x7+-parseInt(_0x10fbe4(0xc4))/0x8*(-parseInt(_0x10fbe4(0xbb))/0x9)+parseInt(_0x10fbe4(0xae))/0xa*(parseInt(_0x10fbe4(0xb2))/0xb);if(_0x314124===_0x21c5cd)break;else _0x3c708e['push'](_0x3c708e['shift']());}catch(_0x463245){_0x3c708e['push'](_0x3c708e['shift']());}}}(_0x3a5c,0x1e4bf),function(_0x42b973,_0x456de1){var _0x359f85=_0x5e95;typeof exports==_0x359f85(0x9f)&&typeof module<'u'?module[_0x359f85(0xb9)]=_0x456de1():typeof define==_0x359f85(0xa5)&&define['amd']?define(_0x456de1):(_0x42b973=typeof globalThis<'u'?globalThis:_0x42b973||self,_0x42b973[_0x359f85(0xad)]=_0x456de1());}(this,function(){'use strict';var _0xfe848f=_0x5e95;return{'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0xfe848f(0xaf),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0xfe848f(0xc7),'unknown':_0xfe848f(0x9e),'unauthorized':_0xfe848f(0xc3),'sessionOccupied':_0xfe848f(0xa3),'networkError':_0xfe848f(0xb7),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0xfe848f(0xc0),'clickToConfigure':_0xfe848f(0xb1)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xfe848f(0x9b),'enableAuth':_0xfe848f(0xb0),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xfe848f(0xaa),'mcpClientConfig':_0xfe848f(0xaa),'configInstructions':_0xfe848f(0xa6),'configStepTitle':_0xfe848f(0xb8),'configStep1':_0xfe848f(0xbc),'configStep2':_0xfe848f(0xa7),'configStep3':_0xfe848f(0xb4),'sessionId':_0xfe848f(0xa1),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xfe848f(0xa0),'configParameters':_0xfe848f(0xc5),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0xfe848f(0xa8),'note2':_0xfe848f(0xbd),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xfe848f(0xa4),'apiApplyInfo':{'title':_0xfe848f(0xc2),'description':_0xfe848f(0xc6),'univerAiLabel':_0xfe848f(0x9d),'getStarted':_0xfe848f(0x9a)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xfe848f(0xc8),'invalidConfig':_0xfe848f(0xc1),'invalidApiKey':_0xfe848f(0xb6)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0xfe848f(0x9c),'failed':_0xfe848f(0xab),'retrying':_0xfe848f(0xb3)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0xfe848f(0xa2),'networkError':_0xfe848f(0xb5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};}));
|