@univerjs-pro/mcp-ui 0.10.7-nightly.202509090319 → 0.10.7-nightly.202509130618
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.css +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/types/controllers/mcp-config-ui.controller.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +9 -1
- package/lib/types/locale/zh-CN.d.ts +9 -1
- package/lib/types/views/components/mcp-config.d.ts +7 -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 -5
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x21c713=_0x4029;(function(_0x45d725,_0x27841f){const _0x457b53=_0x4029,_0x5a14f8=_0x45d725();while(!![]){try{const _0x5c830d=-parseInt(_0x457b53(0xa2))/0x1*(-parseInt(_0x457b53(0xc8))/0x2)+parseInt(_0x457b53(0xa6))/0x3*(-parseInt(_0x457b53(0xb3))/0x4)+-parseInt(_0x457b53(0xbc))/0x5+-parseInt(_0x457b53(0xc6))/0x6*(-parseInt(_0x457b53(0xa1))/0x7)+parseInt(_0x457b53(0xab))/0x8+parseInt(_0x457b53(0xc1))/0x9+-parseInt(_0x457b53(0xa4))/0xa;if(_0x5c830d===_0x27841f)break;else _0x5a14f8['push'](_0x5a14f8['shift']());}catch(_0x12c126){_0x5a14f8['push'](_0x5a14f8['shift']());}}}(_0x4a4d,0x42985));function _0x4029(_0x27979a,_0x37f677){const _0x4a4df9=_0x4a4d();return _0x4029=function(_0x4029f8,_0x35b500){_0x4029f8=_0x4029f8-0x95;let _0x49c1cb=_0x4a4df9[_0x4029f8];return _0x49c1cb;},_0x4029(_0x27979a,_0x37f677);}function _0x4a4d(){const _0x4a59c6=['API\x20key\x20is\x20required\x20to\x20connect','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','Connecting...','4053784FEHvoT','MCP\x20Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Unknown\x20Status','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','60HGHBVY','MCP:\x20API\x20Key\x20Missing','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configuration\x20Steps:','Copy\x20the\x20JSON\x20configuration\x20below','What\x20is\x20API\x20Key?','Max\x20Retries','1928950rNHjoT','API\x20key\x20with\x20Bearer\x20prefix.','Get\x20your\x20API\x20key\x20in\x20seconds','Retrying...','Enter\x20your\x20API\x20key','4183047aAiIJt','Session\x20ID','Univer\x20AI\x20Console','MCP:\x20Session\x20Occupied','MCP\x20Configuration','36iLfBSy','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','2xFaBpF','Enable\x20Authentication','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','MCP:\x20Invalid\x20API\x20Key','Saving...','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connecting...','215201InPCEV','231BlbFvO','Invalid\x20configuration','2861470gLYjrt','MCP\x20Retrying...','42297QKiOvV'];_0x4a4d=function(){return _0x4a59c6;};return _0x4a4d();}const e={'mcpStatus':{'disconnected':_0x21c713(0xac),'connecting':_0x21c713(0xa0),'connected':'MCP\x20Connected','failed':_0x21c713(0x96),'retrying':_0x21c713(0xa5),'unknown':_0x21c713(0xae),'missingApiKey':_0x21c713(0xb4),'invalidApiKey':_0x21c713(0x98),'sessionOccupied':_0x21c713(0xc4),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x21c713(0xa9),'clickToConnect':_0x21c713(0xb2),'clickToConfigure':_0x21c713(0x97)},'mcpConfig':{'title':_0x21c713(0xc5),'description':_0x21c713(0xad),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x21c713(0xc0),'apiKeyHint':_0x21c713(0x9d),'enableAuth':_0x21c713(0x95),'enableAuthHint':_0x21c713(0xb1),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x21c713(0xb0),'configStepTitle':_0x21c713(0xb8),'configStep1':_0x21c713(0xb9),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x21c713(0xb6),'sessionId':_0x21c713(0xc2),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x21c713(0xbd),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x21c713(0xbb),'save':'Save\x20Configuration','saving':_0x21c713(0x99),'note1':_0x21c713(0x9e),'note2':_0x21c713(0x9f),'configSaved':_0x21c713(0xb5),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x21c713(0xba),'description':_0x21c713(0xaf),'univerAiLabel':_0x21c713(0xc3),'getStarted':_0x21c713(0xbe)},'validation':{'apiKeyRequired':_0x21c713(0xa8),'apiKeyTooShort':_0x21c713(0xc7),'invalidConfig':_0x21c713(0xa3),'invalidApiKey':_0x21c713(0x9c)},'connectionStatus':{'disconnected':_0x21c713(0x9b),'connecting':_0x21c713(0xaa),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x21c713(0xbf)},'connectionError':{'missingApiKey':_0x21c713(0xa7),'invalidApiKey':_0x21c713(0x9a),'sessionOccupied':_0x21c713(0xb7),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x116b(_0x1f9fe2,_0x33905e){const _0x4778f7=_0x4778();return _0x116b=function(_0x116b91,_0x1d0d6f){_0x116b91=_0x116b91-0x1a7;let _0x1050c5=_0x4778f7[_0x116b91];return _0x1050c5;},_0x116b(_0x1f9fe2,_0x33905e);}const _0x4d692b=_0x116b;(function(_0x534065,_0x99f65){const _0x2ea726=_0x116b,_0x4bd0c8=_0x534065();while(!![]){try{const _0x4e9fe5=-parseInt(_0x2ea726(0x1c9))/0x1*(-parseInt(_0x2ea726(0x1b9))/0x2)+-parseInt(_0x2ea726(0x1a8))/0x3*(parseInt(_0x2ea726(0x1c5))/0x4)+parseInt(_0x2ea726(0x1b1))/0x5*(parseInt(_0x2ea726(0x1a9))/0x6)+parseInt(_0x2ea726(0x1bf))/0x7*(parseInt(_0x2ea726(0x1d5))/0x8)+parseInt(_0x2ea726(0x1ae))/0x9+parseInt(_0x2ea726(0x1bb))/0xa+-parseInt(_0x2ea726(0x1b0))/0xb;if(_0x4e9fe5===_0x99f65)break;else _0x4bd0c8['push'](_0x4bd0c8['shift']());}catch(_0xb61ef9){_0x4bd0c8['push'](_0x4bd0c8['shift']());}}}(_0x4778,0xb78d4));function _0x4778(){const _0xc88b18=['MCP\x20Connected','Max\x20Retries','Saving...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','1992uGveTS','MCP:\x20API\x20Key\x20Missing','Disconnected','MCP:\x20Invalid\x20API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session\x20ID','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','6nTvbdE','6JfbQsX','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Unknown\x20Status','MCP:\x20Session\x20Occupied','7885827bwbxco','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','26076402NbfuSW','6935475BnvzKa','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Failed','106076yKrhLR','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','3259580sWqNyN','MCP\x20Configuration','Configuration\x20saved\x20successfully','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','35308cmwOKk','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20configuration','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connecting...','2506364kAnVel','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','10zcFAur','Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Copy\x20the\x20JSON\x20configuration\x20below','Univer\x20AI\x20Console','API\x20key\x20is\x20required','MCP:\x20Network\x20Error'];_0x4778=function(){return _0xc88b18;};return _0x4778();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4d692b(0x1c4),'connected':_0x4d692b(0x1d0),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x4d692b(0x1ac),'missingApiKey':_0x4d692b(0x1d6),'invalidApiKey':_0x4d692b(0x1d8),'sessionOccupied':_0x4d692b(0x1ad),'networkError':_0x4d692b(0x1cf),'maxRetriesExceeded':_0x4d692b(0x1b2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4d692b(0x1c8)},'mcpConfig':{'title':_0x4d692b(0x1bc),'description':_0x4d692b(0x1d9),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4d692b(0x1c2),'apiKeyHint':_0x4d692b(0x1c7),'enableAuth':_0x4d692b(0x1b5),'enableAuthHint':_0x4d692b(0x1b7),'connectionInfo':_0x4d692b(0x1d4),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x4d692b(0x1cc),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4d692b(0x1b4),'sessionId':_0x4d692b(0x1da),'sessionIdDescription':_0x4d692b(0x1a7),'authorizationDescription':_0x4d692b(0x1c3),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x4d692b(0x1d1),'save':'Save\x20Configuration','saving':_0x4d692b(0x1d2),'note1':_0x4d692b(0x1ab),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4d692b(0x1bd),'configError':_0x4d692b(0x1b3),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4d692b(0x1cb),'univerAiLabel':_0x4d692b(0x1cd),'getStarted':_0x4d692b(0x1d3)},'validation':{'apiKeyRequired':_0x4d692b(0x1ce),'apiKeyTooShort':_0x4d692b(0x1c0),'invalidConfig':_0x4d692b(0x1c1),'invalidApiKey':_0x4d692b(0x1c6)},'connectionStatus':{'disconnected':_0x4d692b(0x1d7),'connecting':_0x4d692b(0x1ca),'connected':'Connected','failed':_0x4d692b(0x1b8),'retrying':_0x4d692b(0x1aa)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x4d692b(0x1be),'sessionOccupied':_0x4d692b(0x1ba),'networkError':_0x4d692b(0x1af),'maxRetriesExceeded':_0x4d692b(0x1b6)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x809b9d=_0x45f7;(function(_0x1529ad,_0x5a0d63){const _0x229540=_0x45f7,_0x14c880=_0x1529ad();while(!![]){try{const _0x492040=parseInt(_0x229540(0x1e9))/0x1+parseInt(_0x229540(0x1e1))/0x2+parseInt(_0x229540(0x1d7))/0x3*(parseInt(_0x229540(0x1ef))/0x4)+parseInt(_0x229540(0x1ed))/0x5*(-parseInt(_0x229540(0x1db))/0x6)+parseInt(_0x229540(0x1cf))/0x7+-parseInt(_0x229540(0x1ea))/0x8*(parseInt(_0x229540(0x1dc))/0x9)+-parseInt(_0x229540(0x1da))/0xa*(parseInt(_0x229540(0x1eb))/0xb);if(_0x492040===_0x5a0d63)break;else _0x14c880['push'](_0x14c880['shift']());}catch(_0x93057b){_0x14c880['push'](_0x14c880['shift']());}}}(_0x2573,0x84d9d));function _0x45f7(_0x58f920,_0x3ca2e3){const _0x257342=_0x2573();return _0x45f7=function(_0x45f770,_0x564ee1){_0x45f770=_0x45f770-0x1c4;let _0x2b6c45=_0x257342[_0x45f770];return _0x2b6c45;},_0x45f7(_0x58f920,_0x3ca2e3);}function _0x2573(){const _0x347fbb=['480xViYIv','150DbxqCA','4266NWhjGo','保存中...','MCP\x20客户端配置','点击连接\x20MCP','MCP:\x20缺少\x20API\x20密钥','1789762DGDopj','MCP\x20已断开','API\x20密钥长度至少需要\x2010\x20位','MCP:\x20无效的\x20API\x20密钥','连接失败','配置参数:','请输入您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','1009486naXNZi','3680gUlwuf','410113zCwRqC','配置步骤:','77355ySARCP','MCP:\x20网络错误','4292akKzYW','您的\x20API\x20密钥安全存储在本地存储中','需要\x20API\x20密钥才能连接','配置保存失败','配置\x20MCP\x20使用\x20AI\x20操作电子表格','配置无效','几秒钟内获取您的\x20API\x20密钥','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20重连中...','重连中...','超出最大重试次数,请稍后再试','已连接','保存配置','Univer\x20AI\x20控制台','会话ID','MCP\x20已连接','复制以下\x20JSON\x20配置','exports','API\x20密钥','2154376zZCYOW','未连接','API\x20密钥不能为空','什么是\x20API\x20密钥?','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20密钥无效,请检查您的密钥后重试','MCP\x20状态未知','API\x20密钥无效,请检查密钥是否正确','2031fyNwBO','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','您的\x20API\x20密钥将在此浏览器中本地存储'];_0x2573=function(){return _0x347fbb;};return _0x2573();}const e={'mcpStatus':{'disconnected':_0x809b9d(0x1e2),'connecting':'MCP\x20连接中...','connected':_0x809b9d(0x1cb),'failed':'MCP\x20连接失败','retrying':_0x809b9d(0x1c4),'unknown':_0x809b9d(0x1d5),'missingApiKey':_0x809b9d(0x1e0),'invalidApiKey':_0x809b9d(0x1e4),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x809b9d(0x1ee),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x809b9d(0x1df),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':_0x809b9d(0x1f3),'apiKey':_0x809b9d(0x1ce),'apiKeyPlaceholder':_0x809b9d(0x1e7),'apiKeyHint':_0x809b9d(0x1d9),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x809b9d(0x1de),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x809b9d(0x1ec),'configStep1':_0x809b9d(0x1cc),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x809b9d(0x1e8),'sessionId':_0x809b9d(0x1ca),'sessionIdDescription':_0x809b9d(0x1d8),'authorizationDescription':_0x809b9d(0x1f6),'configParameters':_0x809b9d(0x1e6),'maxRetries':'最大重试次数','save':_0x809b9d(0x1c8),'saving':_0x809b9d(0x1dd),'note1':'配置更改将立即生效','note2':_0x809b9d(0x1f0),'configSaved':'配置保存成功','configError':_0x809b9d(0x1f2),'apiApplyInfo':{'title':_0x809b9d(0x1d2),'description':_0x809b9d(0x1d3),'univerAiLabel':_0x809b9d(0x1c9),'getStarted':_0x809b9d(0x1f5)},'validation':{'apiKeyRequired':_0x809b9d(0x1d1),'apiKeyTooShort':_0x809b9d(0x1e3),'invalidConfig':_0x809b9d(0x1f4),'invalidApiKey':_0x809b9d(0x1d6)},'connectionStatus':{'disconnected':_0x809b9d(0x1d0),'connecting':'连接中...','connected':_0x809b9d(0x1c7),'failed':_0x809b9d(0x1e5),'retrying':_0x809b9d(0x1c5)},'connectionError':{'missingApiKey':_0x809b9d(0x1f1),'invalidApiKey':_0x809b9d(0x1d4),'sessionOccupied':'会话当前被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x809b9d(0x1c6)}}};module[_0x809b9d(0x1cd)]=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x5c3b(_0x28e799,_0x3a2c85){const _0x2e49a0=_0x2e49();return _0x5c3b=function(_0x5c3bd6,_0x542a77){_0x5c3bd6=_0x5c3bd6-0xca;let _0x516fcd=_0x2e49a0[_0x5c3bd6];return _0x516fcd;},_0x5c3b(_0x28e799,_0x3a2c85);}const _0x125282=_0x5c3b;(function(_0x593146,_0x478059){const _0x593cef=_0x5c3b,_0x1aa52b=_0x593146();while(!![]){try{const _0x1424b2=-parseInt(_0x593cef(0xe2))/0x1*(-parseInt(_0x593cef(0xe1))/0x2)+-parseInt(_0x593cef(0x106))/0x3*(parseInt(_0x593cef(0xce))/0x4)+-parseInt(_0x593cef(0xf5))/0x5*(-parseInt(_0x593cef(0xd4))/0x6)+parseInt(_0x593cef(0xf9))/0x7*(-parseInt(_0x593cef(0xdc))/0x8)+-parseInt(_0x593cef(0xd5))/0x9*(-parseInt(_0x593cef(0x105))/0xa)+parseInt(_0x593cef(0xef))/0xb+-parseInt(_0x593cef(0xec))/0xc*(parseInt(_0x593cef(0xd6))/0xd);if(_0x1424b2===_0x478059)break;else _0x1aa52b['push'](_0x1aa52b['shift']());}catch(_0x1c88b2){_0x1aa52b['push'](_0x1aa52b['shift']());}}}(_0x2e49,0xc0a17));const e={'mcpStatus':{'disconnected':_0x125282(0xd7),'connecting':_0x125282(0xf8),'connected':_0x125282(0xfd),'failed':_0x125282(0xd8),'retrying':_0x125282(0xf4),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x125282(0xde),'invalidApiKey':_0x125282(0xe4),'sessionOccupied':_0x125282(0xcb),'networkError':_0x125282(0xdd),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x125282(0xe0),'clickToConfigure':_0x125282(0xcf)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x125282(0xff),'apiKey':_0x125282(0xee),'apiKeyPlaceholder':_0x125282(0xfe),'apiKeyHint':_0x125282(0xd1),'enableAuth':_0x125282(0xe8),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x125282(0xf1),'configStepTitle':_0x125282(0xf7),'configStep1':_0x125282(0x100),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x125282(0xe9),'sessionId':_0x125282(0xeb),'sessionIdDescription':_0x125282(0xd0),'authorizationDescription':_0x125282(0x104),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x125282(0xf3),'save':_0x125282(0x101),'saving':_0x125282(0xdf),'note1':_0x125282(0xea),'note2':_0x125282(0x103),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x125282(0xcd),'apiApplyInfo':{'title':_0x125282(0xe7),'description':_0x125282(0xe5),'univerAiLabel':_0x125282(0xf2),'getStarted':_0x125282(0x102)},'validation':{'apiKeyRequired':_0x125282(0xd2),'apiKeyTooShort':_0x125282(0xd9),'invalidConfig':_0x125282(0xca),'invalidApiKey':_0x125282(0xd3)},'connectionStatus':{'disconnected':_0x125282(0xcc),'connecting':_0x125282(0xed),'connected':_0x125282(0xf0),'failed':_0x125282(0xda),'retrying':_0x125282(0xf6)},'connectionError':{'missingApiKey':_0x125282(0xfc),'invalidApiKey':_0x125282(0xe3),'sessionOccupied':_0x125282(0xfb),'networkError':_0x125282(0xe6),'maxRetriesExceeded':_0x125282(0xfa)}}},n=e;function _0x2e49(){const _0x300b20=['Failed\x20to\x20save\x20configuration','5600120vhAdyF','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','6ahEbuT','8406yqHebq','1504581RxNaiu','MCP\x20Disconnected','MCP\x20Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','exports','24xxwJCk','MCP:\x20Network\x20Error','MCP:\x20API\x20Key\x20Missing','Saving...','Click\x20to\x20connect\x20MCP','34XmuLoI','31373yQTOgl','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP:\x20Invalid\x20API\x20Key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','What\x20is\x20API\x20Key?','Enable\x20Authentication','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','144QUgUJL','Connecting...','API\x20Key','6122006WJjTBm','Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Univer\x20AI\x20Console','Max\x20Retries','MCP\x20Retrying...','6979045MtMiNt','Retrying...','Configuration\x20Steps:','MCP\x20Connecting...','343525yPxaQn','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Connected','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20with\x20Bearer\x20prefix.','13270JcxVbm','3FtHIfR','Invalid\x20configuration','MCP:\x20Session\x20Occupied','Disconnected'];_0x2e49=function(){return _0x300b20;};return _0x2e49();}module[_0x125282(0xdb)]=n;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x2bc15e=_0x4a13;(function(_0x1c908d,_0x4af0f1){var _0x1f1219=_0x4a13,_0x1c2afe=_0x1c908d();while(!![]){try{var _0xa5ab1=-parseInt(_0x1f1219(0xe6))/0x1*(-parseInt(_0x1f1219(0x12b))/0x2)+parseInt(_0x1f1219(0x1d5))/0x3*(-parseInt(_0x1f1219(0x163))/0x4)+-parseInt(_0x1f1219(0x1be))/0x5*(parseInt(_0x1f1219(0xf7))/0x6)+-parseInt(_0x1f1219(0x151))/0x7*(parseInt(_0x1f1219(0x158))/0x8)+-parseInt(_0x1f1219(0xf6))/0x9*(-parseInt(_0x1f1219(0xde))/0xa)+parseInt(_0x1f1219(0xb1))/0xb*(-parseInt(_0x1f1219(0x115))/0xc)+parseInt(_0x1f1219(0x1ea))/0xd;if(_0xa5ab1===_0x4af0f1)break;else _0x1c2afe['push'](_0x1c2afe['shift']());}catch(_0x284d85){_0x1c2afe['push'](_0x1c2afe['shift']());}}}(_0xb9a7,0x1ff69));var Se=Object[_0x2bc15e(0x12c)],xe=(_0x3cf1e8,_0x42bed1,_0x28a631)=>_0x42bed1 in _0x3cf1e8?Se(_0x3cf1e8,_0x42bed1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28a631}):_0x3cf1e8[_0x42bed1]=_0x28a631,N=(_0x11356a,_0x5f2c4d,_0x579448)=>xe(_0x11356a,typeof _0x5f2c4d!=_0x2bc15e(0xb0)?_0x5f2c4d+'':_0x5f2c4d,_0x579448);import{LocaleService as _0x42fd01,Inject as _0x696855,Injector as _0x3be1cf,IConfigService as _0x5b375f,ILocalStorageService as _0x4948f7,ILogService as _0x4318dc,Disposable as _0x3a1a4d,CommandType as _0x577139,ICommandService as _0x386a7f,DependentOn as _0x302e6f,Plugin as _0x32b180,merge as _0x2b6653}from'@univerjs/core';import{jsxs as _0x5c6a92,jsx as _0x24230c}from'react/jsx-runtime';import{MCPConnectionStatus as _0x16bf1e,MCPConnectionError as _0x3ee0ac,MCPConnectionController as _0x1c16fa,MCP_PLUGIN_CONFIG_KEY as _0x1bb383,UniverMCPPlugin as _0x313ef9}from'@univerjs-pro/mcp';import{Input as _0x3c0492,Button as _0x105395,MessageType as _0x124ece,Tooltip as _0x1b8685,clsx as _0x2ed97f}from'@univerjs/design';import{useDependency as _0x4faa95,useObservable as _0x1ba95b,IUIPartsService as _0x4c65ee,IDialogService as _0x119553,IMessageService as _0x5b4388,ComponentManager as _0x13aeb6,connectInjector as _0x5d4d25,BuiltInUIPart as _0x2c0def,MenuItemType as _0x21bf04,RibbonStartGroup as _0x2510f1,IMenuManagerService as _0x540f9d}from'@univerjs/ui';import{BehaviorSubject as _0xef7aa5}from'rxjs';import{forwardRef as _0x14a2d8,useRef as _0xd5a7c8,createElement as _0x4eaecd,useState as _0x3b5fec,useCallback as _0x292baa}from'react';var d=function(){var _0x5219f5=_0x2bc15e;return d=Object[_0x5219f5(0x167)]||function(_0x4f1f87){var _0x4044e8=_0x5219f5;for(var _0x5918a5,_0x4d2198=0x1,_0x1ac1d4=arguments[_0x4044e8(0xb3)];_0x4d2198<_0x1ac1d4;_0x4d2198++){_0x5918a5=arguments[_0x4d2198];for(var _0xf71fd1 in _0x5918a5)Object[_0x4044e8(0x160)][_0x4044e8(0xdd)][_0x4044e8(0x1a4)](_0x5918a5,_0xf71fd1)&&(_0x4f1f87[_0xf71fd1]=_0x5918a5[_0xf71fd1]);}return _0x4f1f87;},d[_0x5219f5(0xff)](this,arguments);},Ye=function(_0x482872,_0x5676f9){var _0xd08c8d=_0x2bc15e,_0x284b8a={};for(var _0x58c0a9 in _0x482872)Object[_0xd08c8d(0x160)]['hasOwnProperty'][_0xd08c8d(0x1a4)](_0x482872,_0x58c0a9)&&_0x5676f9[_0xd08c8d(0x1e8)](_0x58c0a9)<0x0&&(_0x284b8a[_0x58c0a9]=_0x482872[_0x58c0a9]);if(_0x482872!=null&&typeof Object[_0xd08c8d(0xc7)]==_0xd08c8d(0x170)){for(var _0x2c5293=0x0,_0x58c0a9=Object[_0xd08c8d(0xc7)](_0x482872);_0x2c5293<_0x58c0a9['length'];_0x2c5293++)_0x5676f9[_0xd08c8d(0x1e8)](_0x58c0a9[_0x2c5293])<0x0&&Object[_0xd08c8d(0x160)][_0xd08c8d(0x197)][_0xd08c8d(0x1a4)](_0x482872,_0x58c0a9[_0x2c5293])&&(_0x284b8a[_0x58c0a9[_0x2c5293]]=_0x482872[_0x58c0a9[_0x2c5293]]);}return _0x284b8a;},S=_0x14a2d8(function(_0x2a6e3c,_0x226be1){var _0x1b8daa=_0x2bc15e,_0x479965=_0x2a6e3c[_0x1b8daa(0x180)],_0x1f02a1=_0x2a6e3c['id'],_0x30fece=_0x2a6e3c['className'],_0x50129a=_0x2a6e3c[_0x1b8daa(0x1cd)],_0x3e143f=Ye(_0x2a6e3c,[_0x1b8daa(0x180),'id',_0x1b8daa(0xdf),_0x1b8daa(0x1cd)]),_0x5c27da=_0x1b8daa(0x1d0)[_0x1b8daa(0x138)](_0x1f02a1,'\x20')[_0x1b8daa(0x138)](_0x30fece||'')[_0x1b8daa(0x16e)](),_0x6a2cde=_0xd5a7c8('_'[_0x1b8daa(0x138)](He()));return oe(_0x479965,''[_0x1b8daa(0x138)](_0x1f02a1),{'defIds':_0x479965['defIds'],'idSuffix':_0x6a2cde[_0x1b8daa(0xf1)]},d({'ref':_0x226be1,'className':_0x5c27da},_0x3e143f),_0x50129a);});function oe(_0x27eb02,_0x265275,_0xb9ae67,_0x526e42,_0xe9ebd9){var _0x46b0ca=_0x2bc15e;return _0x4eaecd(_0x27eb02['tag'],d(d({'key':_0x265275},Ve(_0x27eb02,_0xb9ae67,_0xe9ebd9)),_0x526e42),(Fe(_0x27eb02,_0xb9ae67)[_0x46b0ca(0x1b4)]||[])[_0x46b0ca(0x198)](function(_0x5e016d,_0x4b9220){var _0x3d4442=_0x46b0ca;return oe(_0x5e016d,''[_0x3d4442(0x138)](_0x265275,'-')['concat'](_0x27eb02[_0x3d4442(0xbb)],'-')[_0x3d4442(0x138)](_0x4b9220),_0xb9ae67,void 0x0,_0xe9ebd9);}));}function Ve(_0x34fab0,_0x4d7237,_0x3ac8c1){var _0x166701=_0x2bc15e,_0x3acbbd=d({},_0x34fab0[_0x166701(0x1a3)]);_0x3ac8c1!=null&&_0x3ac8c1['colorChannel1']&&_0x3acbbd[_0x166701(0x114)]===_0x166701(0x19e)&&(_0x3acbbd[_0x166701(0x114)]=_0x3ac8c1[_0x166701(0x19e)]),_0x34fab0[_0x166701(0xbb)]===_0x166701(0xe5)&&_0x3acbbd['id']&&(_0x3acbbd['id']=_0x3acbbd['id']+_0x4d7237[_0x166701(0x140)]),Object[_0x166701(0xc0)](_0x3acbbd)['forEach'](function(_0x3d7c16){var _0x596ee9=_0x166701,_0x37da03=_0x3d7c16[0x0],_0x2ce233=_0x3d7c16[0x1];_0x37da03===_0x596ee9(0xe5)&&typeof _0x2ce233==_0x596ee9(0x1b1)&&(_0x3acbbd[_0x37da03]=_0x2ce233[_0x596ee9(0x14f)](/url\(#(.*)\)/,'url(#$1'[_0x596ee9(0x138)](_0x4d7237['idSuffix'],')')));});var _0x30202e=_0x4d7237[_0x166701(0x130)];return!_0x30202e||_0x30202e[_0x166701(0xb3)]===0x0||(_0x34fab0['tag']==='use'&&_0x3acbbd[_0x166701(0x110)]&&(_0x3acbbd[_0x166701(0x110)]=_0x3acbbd[_0x166701(0x110)]+_0x4d7237['idSuffix']),Object[_0x166701(0xc0)](_0x3acbbd)[_0x166701(0xcc)](function(_0x3c39bf){var _0x366da2=_0x166701,_0x3747bc=_0x3c39bf[0x0],_0x4b4f75=_0x3c39bf[0x1];typeof _0x4b4f75=='string'&&(_0x3acbbd[_0x3747bc]=_0x4b4f75[_0x366da2(0x14f)](/url\(#(.*)\)/,_0x366da2(0x1a0)['concat'](_0x4d7237['idSuffix'],')')));})),_0x3acbbd;}function Fe(_0x3740d6,_0x450690){var _0x5ad9eb=_0x2bc15e,_0xe3c58f,_0x3966bd=_0x450690[_0x5ad9eb(0x130)];return!_0x3966bd||_0x3966bd['length']===0x0?_0x3740d6:_0x3740d6[_0x5ad9eb(0xbb)]===_0x5ad9eb(0xad)&&(!((_0xe3c58f=_0x3740d6[_0x5ad9eb(0x1b4)])===null||_0xe3c58f===void 0x0)&&_0xe3c58f[_0x5ad9eb(0xb3)])?d(d({},_0x3740d6),{'children':_0x3740d6[_0x5ad9eb(0x1b4)][_0x5ad9eb(0x198)](function(_0x2997c9){var _0x768ff5=_0x5ad9eb;return typeof _0x2997c9['attrs']['id']==_0x768ff5(0x1b1)&&_0x3966bd&&_0x3966bd['includes'](_0x2997c9[_0x768ff5(0x1a3)]['id'])?d(d({},_0x2997c9),{'attrs':d(d({},_0x2997c9['attrs']),{'id':_0x2997c9[_0x768ff5(0x1a3)]['id']+_0x450690['idSuffix']})}):_0x2997c9;})}):_0x3740d6;}function _0xb9a7(){var _0x5de150=['univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','toString','univerjs-icon\x20univerjs-icon-','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','onStarting','univer-flex-shrink-0\x20univer-text-blue-500','942iuxxpR','Get\x20your\x20API\x20key\x20in\x20seconds','_commandService','open','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','点击连接\x20MCP','API\x20密钥长度至少需要\x2010\x20位','MenuIcon','getItem','substring','MCP\x20Configuration','_mcpCoreConfig$','M5.21243\x205.62036L11.8791\x2012.287','univer-flex-shrink-0\x20univer-text-red-500','Error','OTHERS','\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','DISCONNECTED','mcpConfig.validation.apiKeyTooShort','indexOf','Connected','4273373sfAgfP','univer-text-xs\x20univer-text-gray-500','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','连接信息','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','evenodd','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_messageService','includes','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20状态未知','启用身份验证以获得安全连接','MCP\x20Disconnected','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','MCP:\x20网络错误','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','M0\x200H16V16H0z','mcpStatus.retrying','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','next','add','off-line-icon_clip0_910_343','MCP\x20重连中...','noopener\x20noreferrer','defs','random','SESSION_ID_OCCUPIED','symbol','22wcJNaQ','univer-font-medium','length','hover:univer-opacity-80','mcpConfig.save','label','\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','FAILED','mcpServerUrl','off-line-icon','tag','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpStatus.maxRetriesExceeded','code','mcp.apiKey','entries','getCurrentConfig','_uiPartsService','mcpStatus.failed','mcpStatus.invalidApiKey','univer-text-gray-500','univer-flex\x20univer-items-start\x20univer-gap-3','getOwnPropertySymbols','MCP\x20已断开','_configService','sessionId','_handleConfigure','forEach','Close','mcpConfig.description','RETRYING','mcp-config-dialog','Univer\x20AI\x20控制台','mcpConfig.connectionStatus.retrying','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.serverEndpoint','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','univer-text-white','连接失败','1em','OnLineIcon','path','on-line-icon_clip0_910_349','univer-text-blue-600','hasOwnProperty','1367320ijfmTj','className','get','_initializeMenus','0\x200\x2017\x2017','_componentManager','univer-text-sm\x20univer-font-medium','mask','1327ccmsBf','_localStorageService','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpStatus.missingApiKey','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','univer-bg-gray-500','Save\x20Configuration','MCP\x20已连接','span','show','What\x20is\x20API\x20Key?','current','您的\x20API\x20密钥安全存储在本地存储中','您的\x20API\x20密钥将在此浏览器中本地存储','univer-flex\x20univer-gap-3','保存中...','9wBQJDS','12iyVwXG','mergeMenu','网络连接错误,请检查您的网络连接','CONNECTING','mcpConfig.connectionError.invalidApiKey','_dialogService','svg','服务器端点','apply','mcpConfig.connectionStatus.connected','CONNECTED','0\x200\x2017\x2016','mcpConfig.connectionError.networkError','Click\x20to\x20configure\x20MCP','mcpStatus.sessionOccupied','_loading$','currentColor','MAX_RETRIES_EXCEEDED','univer-text-sm\x20univer-text-gray-500','showDeveloperTools','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','超出最大重试次数,请稍后再试','点击配置\x20MCP','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','xlink:href','getConfig','close','MCP:\x20Max\x20Retries\x20Exceeded','fill','325824IaYMqU','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','subscribeConfigValue$','validateApiKey','univer-flex\x20univer-items-center\x20univer-gap-2','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','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','INVALID_API_KEY','MCP\x20连接中...','_config$','div','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-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','mcpConfig.saving','MCP\x20连接失败','javascript:void(0)','_logService','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','mcpStatus.clickToConnect','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-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_initializeCommands','214auQbXh','defineProperty','NONE','help-single','Success','defIds','univer-text-yellow-500','mcpConfig.validation.apiKeyRequired','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','displayName','round','registerCommand','配置保存失败','concat','Connection\x20Failed','pluginName','API\x20key\x20is\x20required','mcpStatus.connecting','MCP\x20Connected','univer-flex\x20univer-items-start\x20univer-gap-2','_config','idSuffix','white','连接中...','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP\x20Connecting...','_loadStoredApiKey','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Invalid\x20configuration','mcpConfig.apiKeyHint','OffLineIcon','connectionStatus$','mcpStatus.disconnected','UniverIcon','mcpConfig.apiKeyPlaceholder','replace','_initStatusComponent','455NuOAJa','_validateConfig','CheckMarkIcon','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','请输入您的\x20API\x20密钥','Click\x20to\x20connect\x20MCP','check-mark-icon','4664wlCEYg','_connectionController','BUTTON','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_handleConfigSave','univer-bg-red-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','prototype','_injector','univer-text-red-500','1576eFOtaM','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','最大重试次数','http://www.w3.org/2000/svg','assign','error','mcpConfig.sessionId','MCP\x20配置','MCPConfigPanel','getOwnPropertyDescriptor','subscribe','trim','_createConfigPanelComponent','function','univer-min-w-0\x20univer-flex-1','disposeWithMe','MCP:\x20无效的\x20API\x20密钥','univer.plus','translate(.97)','MCP\x20Retrying...','Server\x20Endpoint','_initConfigSync','COMMAND','API\x20Key','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','CloseSmallSingle','mcpConfig.connectionStatus.failed','Disconnected','connectionError$','icon','_localeService','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','close-small-single','重连中...','MCP\x20Unknown\x20Status','0\x200\x2016\x2016','off','mcpStatus.networkError','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\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','showConfigPanel','mcpConfig.validation.invalidApiKey','isValid','mcpConfig.note1','Session\x20ID','mcpConfig.configSaved','_registerComponent','已连接','API\x20密钥无效,请检查您的密钥后重试','MCP:\x20Network\x20Error','几秒钟内获取您的\x20API\x20密钥','MCP\x20Connection\x20Failed','propertyIsEnumerable','map','apiKey','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.apiApplyInfo.title','MCP_UI_PLUGIN','colorChannel1','mcpStatus.clickToConfigure','url(#$1','bottom','text','attrs','call','NETWORK_ERROR','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','default','univer-flex\x20univer-items-center\x20univer-gap-3','Configuration\x20saved\x20successfully','setConfig','removeItem','univer.ai','mcpConfig.note2','HEADER_MENU','MISSING_API_KEY','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','string','会话当前被占用,请稍后再试','Enable\x20Authentication','children','M5.21243\x2012.287L11.8791\x205.62036','none','mcpConfig.apiApplyInfo.getStarted','Max\x20Retries','mcpConfig.title','_mcpConnectionController','setItem','启用身份验证','https://console.univer.plus','651515BavGJW','univer-text-gray-400','_menuManagerService','Saving...','\x20-\x20','mcp-ui.config','value','什么是\x20API\x20密钥?','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex-1','univer-space-y-3','univer-space-y-5','Configuration\x20Notes:','会话ID','https://console.univer.ai','extend'];_0xb9a7=function(){return _0x5de150;};return _0xb9a7();}function He(){var _0x2883de=_0x2bc15e;return Math[_0x2883de(0xae)]()[_0x2883de(0x1cf)](0x24)[_0x2883de(0x1de)](0x2,0x8);}S['displayName']=_0x2bc15e(0x14d);var We={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x186),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':'currentColor','d':_0x2bc15e(0x1a6),'fillRule':_0x2bc15e(0x99),'clipRule':_0x2bc15e(0x99)}}]},ce=_0x14a2d8(function(_0x36621c,_0x34c4b0){var _0xdaea21=_0x2bc15e;return _0x4eaecd(S,Object[_0xdaea21(0x167)]({},_0x36621c,{'id':_0xdaea21(0x157),'ref':_0x34c4b0,'icon':We}));});ce['displayName']=_0x2bc15e(0x153);var Be={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0xe2),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':'currentColor','d':_0x2bc15e(0x1e1),'strokeLinecap':_0x2bc15e(0x135),'strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.33}},{'tag':_0x2bc15e(0xda),'attrs':{'stroke':_0x2bc15e(0x107),'d':_0x2bc15e(0x1b5),'strokeLinecap':'round','strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.33}}]},ae=_0x14a2d8(function(_0x1cc74e,_0x2ed140){var _0x518882=_0x2bc15e;return _0x4eaecd(S,Object[_0x518882(0x167)]({},_0x1cc74e,{'id':_0x518882(0x183),'ref':_0x2ed140,'icon':Be}));});ae[_0x2bc15e(0x134)]=_0x2bc15e(0x17c);var ze={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x186),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x107),'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':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x107),'d':_0x2bc15e(0x11b)}},{'tag':'path','attrs':{'fill':_0x2bc15e(0x107),'d':_0x2bc15e(0x1d9),'fillRule':_0x2bc15e(0x99),'clipRule':'evenodd'}}]},se=_0x14a2d8(function(_0x2db6d1,_0x45938d){var _0x19fd77=_0x2bc15e;return _0x4eaecd(S,Object[_0x19fd77(0x167)]({},_0x2db6d1,{'id':_0x19fd77(0x12e),'ref':_0x45938d,'icon':ze}));});se['displayName']='HelpSingle';var qe={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2bc15e(0xd8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':_0x2bc15e(0x107),'d':_0x2bc15e(0x128),'strokeLinecap':'round','strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x141),'d':_0x2bc15e(0xa5)}}]}]}],'defIds':[_0x2bc15e(0xaa)]},le=_0x14a2d8(function(_0x59cb7c,_0x1d232f){var _0x33c09d=_0x2bc15e;return _0x4eaecd(S,Object[_0x33c09d(0x167)]({},_0x59cb7c,{'id':_0x33c09d(0xba),'ref':_0x1d232f,'icon':qe}));});le['displayName']=_0x2bc15e(0x14a);var Ze={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x102),'width':_0x2bc15e(0xd8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':'currentColor','d':_0x2bc15e(0x120),'strokeLinecap':_0x2bc15e(0x135),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2bc15e(0xad),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2bc15e(0xdb)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x141),'d':_0x2bc15e(0xa5),'transform':_0x2bc15e(0x175)}}]}]}],'defIds':[_0x2bc15e(0xdb)]},ue=_0x14a2d8(function(_0x5c4806,_0x12eb99){var _0x3e0b2d=_0x2bc15e;return _0x4eaecd(S,Object[_0x3e0b2d(0x167)]({},_0x5c4806,{'id':'on-line-icon','ref':_0x12eb99,'icon':Ze}));});ue[_0x2bc15e(0x134)]=_0x2bc15e(0xd9);function Xe(_0x3f231b){var _0x472e20=_0x2bc15e,_0x5b60c3,_0x1216b6;const {mcpCoreConfig:_0x8f1215,onSave:_0x57367c,loading:_0x5e10c3=!0x1,config:_0x33e360,connectionStatus$:_0x2d3990,connectionError$:_0x5971e1}=_0x3f231b,_0x4bc80a=_0x4faa95(_0x42fd01),_0xee6450=_0x1ba95b(_0x2d3990,_0x16bf1e[_0x472e20(0x1e6)]),_0x461d26=_0x1ba95b(_0x5971e1,_0x3ee0ac[_0x472e20(0x12d)]),[_0x3371ae,_0x528388]=_0x3b5fec(_0x8f1215['apiKey']||''),_0x3c8cbd=!0x0,_0x32c700=_0x33e360[_0x472e20(0x10a)]&&_0x8f1215['mcpServerUrl']&&(_0x8f1215['mcpServerUrl'][_0x472e20(0x9d)](_0x472e20(0x174))||_0x8f1215[_0x472e20(0xb9)][_0x472e20(0x9d)](_0x472e20(0x1ac))),_0x542826=(_0x5b60c3=_0x8f1215[_0x472e20(0xb9)])==null?void 0x0:_0x5b60c3[_0x472e20(0x9d)]('univer.plus'),_0x5838d8=(_0x1216b6=_0x8f1215[_0x472e20(0xb9)])==null?void 0x0:_0x1216b6['includes']('univer.ai'),_0x3fef88=_0x542826?_0x472e20(0x1bd):_0x472e20(0x1cc),_0x49b9c7=_0x33e360[_0x472e20(0x10a)]&&(_0x542826||_0x5838d8),[_0x2f3515,_0x488b05]=_0x3b5fec(!_0x3371ae['trim']()),_0x38f958=(_0x294c33,_0x5a8216)=>{var _0x15274c=_0x472e20;if(_0x5a8216===_0x3ee0ac[_0x15274c(0x1af)]||_0x5a8216===_0x3ee0ac[_0x15274c(0x11c)])return _0x15274c(0x1ce);switch(_0x294c33){case _0x16bf1e[_0x15274c(0x101)]:return _0x15274c(0x10b);case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0x15274c(0xcf)]:return _0x15274c(0x1ec);case _0x16bf1e['FAILED']:return _0x15274c(0x1ce);default:return _0x15274c(0x147);}},_0x3eaba7=(_0x30e9dd,_0x2238f5)=>{var _0x3d1369=_0x472e20;if(_0x2238f5===_0x3ee0ac['MISSING_API_KEY']||_0x2238f5===_0x3ee0ac['INVALID_API_KEY'])return _0x3d1369(0x15e);switch(_0x30e9dd){case _0x16bf1e[_0x3d1369(0x101)]:return'univer-bg-green-500';case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0x3d1369(0xcf)]:return'univer-bg-blue-500';case _0x16bf1e['FAILED']:return _0x3d1369(0x15e);default:return _0x3d1369(0xeb);}},_0x2ae430=_0x44b57d=>{var _0x4f92a0=_0x472e20;switch(_0x44b57d){case _0x16bf1e[_0x4f92a0(0x101)]:return _0x4bc80a['t'](_0x4f92a0(0x100));case _0x16bf1e[_0x4f92a0(0xfa)]:return _0x4bc80a['t']('mcpConfig.connectionStatus.connecting');case _0x16bf1e[_0x4f92a0(0xb8)]:return _0x4bc80a['t'](_0x4f92a0(0x17d));case _0x16bf1e[_0x4f92a0(0xcf)]:return _0x4bc80a['t'](_0x4f92a0(0xd2));default:return _0x4bc80a['t']('mcpConfig.connectionStatus.disconnected');}},_0x5e82b5=_0x3cf140=>{var _0x72ea2e=_0x472e20;switch(_0x3cf140){case _0x3ee0ac[_0x72ea2e(0x1af)]:return _0x4bc80a['t']('mcpConfig.connectionError.missingApiKey');case _0x3ee0ac['INVALID_API_KEY']:return _0x4bc80a['t'](_0x72ea2e(0xfb));case _0x3ee0ac[_0x72ea2e(0xaf)]:return _0x4bc80a['t']('mcpConfig.connectionError.sessionOccupied');case _0x3ee0ac[_0x72ea2e(0x1a5)]:return _0x4bc80a['t'](_0x72ea2e(0x103));case _0x3ee0ac['MAX_RETRIES_EXCEEDED']:return _0x4bc80a['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2a7826=_0x292baa(()=>{var _0x55b713=_0x472e20;const _0x239496={..._0x8f1215,'apiKey':_0x3371ae[_0x55b713(0x16e)](),'enableAuth':_0x3c8cbd};_0x57367c(_0x239496);},[_0x8f1215,_0x3371ae,_0x3c8cbd,_0x57367c]),_0x14515a=_0x3371ae[_0x472e20(0x16e)]()[_0x472e20(0xb3)]>0x0;return _0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x9a),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x143),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1a8),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x10c),'children':_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0xd6),'children':'⚙'})}),_0x24230c(_0x472e20(0x11f),{'children':_0x24230c('p',{'className':_0x472e20(0x109),'children':_0x4bc80a['t'](_0x472e20(0xce))})})]})}),_0x5c6a92('div',{'className':_0x472e20(0x116),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x18a)+_0x38f958(_0xee6450,_0x461d26)+_0x472e20(0x1c6),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x119),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1e5)+_0x3eaba7(_0xee6450,_0x461d26)+_0x472e20(0xb7)}),_0x24230c('span',{'className':_0x472e20(0xe4),'children':_0x2ae430(_0xee6450)})]})}),_0x461d26!==_0x3ee0ac[_0x472e20(0x12d)]&&(_0xee6450===_0x16bf1e[_0x472e20(0xb8)]||_0x461d26===_0x3ee0ac['MISSING_API_KEY']||_0x461d26===_0x3ee0ac[_0x472e20(0x11c)])&&_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x10f),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x13e),'children':[_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0x1e2),'children':'⚠️'}),_0x24230c('p',{'className':_0x472e20(0xa7),'children':_0x5e82b5(_0x461d26)})]})})]}),_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x182),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1c9),'children':[_0x5c6a92('div',{'className':'univer-space-y-2','children':[_0x5c6a92(_0x472e20(0xb6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x24230c(_0x472e20(0xee),{'children':'🔑'}),'\x20',_0x4bc80a['t']('mcpConfig.apiKey'),_0x24230c(_0x472e20(0xee),{'className':'univer-text-red-500','children':'*'}),_0x32c700&&_0x24230c('a',{'href':_0x472e20(0x124),'onClick':()=>_0x488b05(!0x0),'className':_0x472e20(0xd5),'title':_0x4bc80a['t'](_0x472e20(0x19c)),'children':_0x24230c(se,{})})]}),_0x24230c(_0x3c0492,{'type':_0x472e20(0x1a2),'placeholder':_0x4bc80a['t'](_0x472e20(0x14e)),'value':_0x3371ae,'onChange':_0x528388,'disabled':_0x5e10c3,'autoComplete':_0x472e20(0x187)}),_0x24230c('p',{'className':_0x472e20(0x1eb),'children':_0x4bc80a['t'](_0x472e20(0x149))})]}),_0x32c700&&_0x2f3515&&_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x121),'children':[_0x24230c('a',{'href':_0x472e20(0x124),'onClick':()=>_0x488b05(!0x1),'className':'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','title':_0x472e20(0xcd),'children':_0x24230c(ae,{})}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x133),'children':[_0x24230c('div',{'className':_0x472e20(0xea),'children':_0x24230c('span',{'className':_0x472e20(0xdc),'children':'🚀'})}),_0x5c6a92('div',{'className':_0x472e20(0x1c7),'children':[_0x24230c('h4',{'className':_0x472e20(0x129),'children':_0x4bc80a['t'](_0x472e20(0x19c))}),_0x24230c('p',{'className':_0x472e20(0x17b),'children':_0x4bc80a['t']('mcpConfig.apiApplyInfo.description')}),_0x24230c(_0x472e20(0x11f),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x49b9c7&&_0x5c6a92('a',{'href':_0x3fef88,'target':'_blank','rel':_0x472e20(0xac),'className':_0x472e20(0x15f),'children':[_0x24230c('span',{'children':'🤖'}),_0x4bc80a['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0x1bf),'children':'↗'})]})}),_0x5c6a92('div',{'className':_0x472e20(0x164),'children':['✨','\x20',_0x4bc80a['t'](_0x472e20(0x1b7))]})]})]})]}),_0x33e360[_0x472e20(0x10a)]&&_0x5c6a92(_0x472e20(0x11f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5c6a92('h4',{'className':_0x472e20(0xa4),'children':[_0x24230c(_0x472e20(0xee),{'children':'🔗'}),'\x20',_0x4bc80a['t']('mcpConfig.connectionInfo')]}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1c8),'children':[_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0xc6),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x15b)}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x171),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1b0),'children':_0x4bc80a['t'](_0x472e20(0xd4))}),_0x24230c(_0x472e20(0xbe),{'className':_0x472e20(0x126),'children':_0x8f1215[_0x472e20(0xb9)]})]})]}),_0x5c6a92(_0x472e20(0x11f),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x24230c('div',{'className':_0x472e20(0x15b)}),_0x5c6a92('div',{'className':_0x472e20(0x171),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1b0),'children':_0x4bc80a['t'](_0x472e20(0x169))}),_0x24230c(_0x472e20(0xbe),{'className':'univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','children':_0x8f1215[_0x472e20(0xca)]||_0x472e20(0x1a7)})]})]})]})]}),_0x24230c(_0x105395,{'onClick':_0x2a7826,'disabled':!_0x14515a||_0x5e10c3,'className':_0x472e20(0xa2),'children':_0x5e10c3?_0x5c6a92(_0x472e20(0xee),{'className':_0x472e20(0x119),'children':[_0x24230c(_0x472e20(0xee),{'children':'⟲'}),_0x4bc80a['t'](_0x472e20(0x122))]}):_0x5c6a92(_0x472e20(0xee),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x24230c(ce,{}),_0x4bc80a['t'](_0x472e20(0xb5))]})}),_0x24230c('div',{'className':_0x472e20(0x19a),'children':_0x5c6a92('div',{'className':_0x472e20(0xf4),'children':[_0x24230c('span',{'className':_0x472e20(0x1d4),'children':'💡'}),_0x5c6a92('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0xb2),'children':_0x472e20(0x1ca)}),_0x5c6a92(_0x472e20(0x11f),{'children':['•',_0x4bc80a['t'](_0x472e20(0x18e))]}),_0x5c6a92(_0x472e20(0x11f),{'children':['•',_0x4bc80a['t'](_0x472e20(0x1ad))]})]})]})})]})})]});}function _0x4a13(_0x3c2c4e,_0x4f53cc){var _0xb9a728=_0xb9a7();return _0x4a13=function(_0x4a136f,_0x4e628d){_0x4a136f=_0x4a136f-0x98;var _0xb77cd=_0xb9a728[_0x4a136f];return _0xb77cd;},_0x4a13(_0x3c2c4e,_0x4f53cc);}const U=_0x2bc15e(0x1c3),J={'showDeveloperTools':!0x1};var Je=Object[_0x2bc15e(0x16c)],Qe=(_0x13b28a,_0x2db675,_0x8803fe,_0xe0a68e)=>{for(var _0x5d7f7b=_0xe0a68e>0x1?void 0x0:_0xe0a68e?Je(_0x2db675,_0x8803fe):_0x2db675,_0x45bb5f=_0x13b28a['length']-0x1,_0x121060;_0x45bb5f>=0x0;_0x45bb5f--)(_0x121060=_0x13b28a[_0x45bb5f])&&(_0x5d7f7b=_0x121060(_0x5d7f7b)||_0x5d7f7b);return _0x5d7f7b;},p=(_0x1c07f9,_0x563778)=>(_0x27d8ce,_0xb2c85b)=>_0x563778(_0x27d8ce,_0xb2c85b,_0x1c07f9);const R=_0x2bc15e(0xbf),j=_0x2bc15e(0xd0);let _=class extends _0x3a1a4d{constructor(_0x54f9d4,_0x47eee0,_0x10cc2c,_0x301dbc,_0x11d41f,_0x4c1803,_0x49964b,_0xe9acb4,_0x42b236,_0x56bfb1){var _0x51ecc9=_0x2bc15e;super(),N(this,_0x51ecc9(0x106),new _0xef7aa5(!0x1)),N(this,_0x51ecc9(0x1e0),new _0xef7aa5({})),N(this,_0x51ecc9(0x11e),new _0xef7aa5({})),N(this,'_handleConfigSave',async _0x17c405=>{var _0x546eee=_0x51ecc9;this[_0x546eee(0x106)]['next'](!0x0);try{const _0x3dba22=await this[_0x546eee(0x152)](_0x17c405);if(!_0x3dba22[_0x546eee(0x18d)]){this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x1e3)],'content':_0x3dba22['errorMessage']||this[_0x546eee(0x181)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x17c405[_0x546eee(0x199)]?await this[_0x546eee(0xe7)][_0x546eee(0x1bb)](R,_0x17c405['apiKey'][_0x546eee(0x16e)]()):await this[_0x546eee(0xe7)][_0x546eee(0x1ab)](R),this[_0x546eee(0xc9)]['setConfig'](_0x1bb383,{..._0x17c405,'apiKey':_0x17c405[_0x546eee(0x199)][_0x546eee(0x16e)]()}),this[_0x546eee(0x1e0)][_0x546eee(0xa8)]({..._0x17c405,'apiKey':_0x17c405[_0x546eee(0x199)][_0x546eee(0x16e)]()}),this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x12f)],'content':this['_localeService']['t'](_0x546eee(0x190))}),setTimeout(()=>{var _0x1feddb=_0x546eee;this[_0x1feddb(0xfc)]['close'](j);},0x320);}catch(_0x257a10){this['_logService'][_0x546eee(0x168)](_0x546eee(0x19b),_0x257a10),this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x1e3)],'content':this[_0x546eee(0x181)]['t']('mcpConfig.configError')});}finally{this[_0x546eee(0x106)]['next'](!0x1);}}),(this[_0x51ecc9(0x161)]=_0x54f9d4,this['_uiPartsService']=_0x47eee0,this[_0x51ecc9(0xc9)]=_0x10cc2c,this[_0x51ecc9(0xe7)]=_0x301dbc,this[_0x51ecc9(0xfc)]=_0x11d41f,this[_0x51ecc9(0x9c)]=_0x4c1803,this[_0x51ecc9(0xe3)]=_0x49964b,this[_0x51ecc9(0x181)]=_0xe9acb4,this[_0x51ecc9(0x125)]=_0x42b236,this[_0x51ecc9(0x1ba)]=_0x56bfb1,this['_initConfigSync'](),this[_0x51ecc9(0x145)](),this['_registerComponent']());}[_0x2bc15e(0x18b)](){var _0x89284=_0x2bc15e;this[_0x89284(0xfc)][_0x89284(0x1d8)]({'id':j,'title':{'title':this[_0x89284(0x181)]['t'](_0x89284(0x1b9))},'children':{'label':_0x89284(0x16b)},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0xb95e39=_0x89284;this[_0xb95e39(0xfc)][_0xb95e39(0x112)](j);}});}[_0x2bc15e(0xc1)](){var _0x4c9dea=_0x2bc15e;return this[_0x4c9dea(0x1e0)][_0x4c9dea(0x1c4)];}[_0x2bc15e(0x191)](){var _0x3c7f01=_0x2bc15e;this[_0x3c7f01(0x172)](this[_0x3c7f01(0xe3)]['register'](_0x3c7f01(0x16b),this['_createConfigPanelComponent']()));}[_0x2bc15e(0x16f)](){var _0xb9f49b=_0x2bc15e;return _0x5d4d25(()=>{var _0x460108=_0x4a13,_0x7bc0bf,_0x4bdcd9;return _0x24230c(Xe,{'config':this[_0x460108(0x11e)][_0x460108(0x1c4)],'mcpCoreConfig':this[_0x460108(0x1e0)][_0x460108(0x1c4)],'onSave':this[_0x460108(0x15d)],'loading':this[_0x460108(0x106)]['value'],'connectionStatus$':(_0x7bc0bf=this[_0x460108(0x1ba)])==null?void 0x0:_0x7bc0bf[_0x460108(0x14b)],'connectionError$':(_0x4bdcd9=this[_0x460108(0x1ba)])==null?void 0x0:_0x4bdcd9[_0x460108(0x17f)]});},this[_0xb9f49b(0x161)]);}[_0x2bc15e(0x178)](){var _0x2a9636=_0x2bc15e;this[_0x2a9636(0x172)](this[_0x2a9636(0xc9)][_0x2a9636(0x117)](_0x1bb383)['subscribe'](_0x7e44dc=>{var _0x2caadc=_0x2a9636;this[_0x2caadc(0x1e0)]['next'](_0x7e44dc||{});}));const _0x577355=this[_0x2a9636(0xc9)]['getConfig'](_0x1bb383);this[_0x2a9636(0x1e0)][_0x2a9636(0xa8)](_0x577355||{}),this[_0x2a9636(0x172)](this[_0x2a9636(0xc9)][_0x2a9636(0x117)](U)[_0x2a9636(0x16d)](_0x395fc5=>{var _0x5ec8a7=_0x2a9636;this[_0x5ec8a7(0x11e)]['next'](_0x395fc5||{});}));const _0x1cbb42=this['_configService'][_0x2a9636(0x111)](U);this[_0x2a9636(0x11e)][_0x2a9636(0xa8)](_0x1cbb42||{});}async[_0x2bc15e(0x145)](){var _0x1b886a=_0x2bc15e;const _0x12035b=await this[_0x1b886a(0xe7)][_0x1b886a(0x1dd)](R);if(_0x12035b){const _0x33a07f={...this[_0x1b886a(0x1e0)][_0x1b886a(0x1c4)],'apiKey':_0x12035b};this[_0x1b886a(0xc9)][_0x1b886a(0x1aa)](_0x1bb383,_0x33a07f),this['_mcpCoreConfig$'][_0x1b886a(0xa8)](_0x33a07f);}}async[_0x2bc15e(0x152)](_0x2004c1){var _0x2a3cbb=_0x2bc15e;if(!_0x2004c1[_0x2a3cbb(0x199)]||_0x2004c1['apiKey'][_0x2a3cbb(0x16e)]()[_0x2a3cbb(0xb3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2a3cbb(0x181)]['t'](_0x2a3cbb(0x132))};if(_0x2004c1[_0x2a3cbb(0x199)][_0x2a3cbb(0x16e)]()[_0x2a3cbb(0xb3)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2a3cbb(0x1e7))};try{const _0x5bd7cf=await this[_0x2a3cbb(0x161)][_0x2a3cbb(0xe0)](_0x1c16fa)[_0x2a3cbb(0x118)](_0x2004c1[_0x2a3cbb(0x199)]['trim']());return _0x5bd7cf['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5bd7cf['error']||this[_0x2a3cbb(0x181)]['t'](_0x2a3cbb(0x18c))};}catch(_0x48e4b3){return console['warn'](_0x2a3cbb(0x154),_0x48e4b3),{'isValid':!0x0};}}};_=Qe([p(0x0,_0x696855(_0x3be1cf)),p(0x1,_0x4c65ee),p(0x2,_0x5b375f),p(0x3,_0x4948f7),p(0x4,_0x119553),p(0x5,_0x5b4388),p(0x6,_0x696855(_0x13aeb6)),p(0x7,_0x696855(_0x42fd01)),p(0x8,_0x4318dc),p(0x9,_0x696855(_0x1c16fa))],_);const W={'id':'mcp-ui.command.openConfigPanel','type':_0x577139[_0x2bc15e(0x179)],'handler':async(_0x2dc279,_0x4eedea)=>(_0x2dc279['get'](_)[_0x2bc15e(0x18b)](),!0x0)};function ve(_0x3a3114,_0x5df4cf){var _0x1cbfb8=_0x2bc15e;switch(_0x3a3114){case _0x16bf1e['DISCONNECTED']:return _0x5df4cf===_0x3ee0ac[_0x1cbfb8(0x1af)]?_0x1cbfb8(0xe9):_0x1cbfb8(0x14c);case _0x16bf1e[_0x1cbfb8(0xfa)]:return _0x1cbfb8(0x13c);case _0x16bf1e[_0x1cbfb8(0x101)]:return'mcpStatus.connected';case _0x16bf1e[_0x1cbfb8(0xb8)]:switch(_0x5df4cf){case _0x3ee0ac[_0x1cbfb8(0x11c)]:return _0x1cbfb8(0xc4);case _0x3ee0ac['SESSION_ID_OCCUPIED']:return _0x1cbfb8(0x105);case _0x3ee0ac[_0x1cbfb8(0x1a5)]:return _0x1cbfb8(0x188);case _0x3ee0ac[_0x1cbfb8(0x108)]:return _0x1cbfb8(0xbd);default:return _0x1cbfb8(0xc3);}case _0x16bf1e['RETRYING']:return _0x1cbfb8(0xa6);default:return'mcpStatus.unknown';}}function en(_0x3d6e00,_0x45cb33,_0x4514ef){var _0x284fda=_0x2bc15e;const _0x3f44a=ve(_0x3d6e00,_0x45cb33),_0x31c6b5=_0x4514ef['t'](_0x3f44a);return _0x3d6e00===_0x16bf1e[_0x284fda(0x1e6)]&&_0x45cb33===_0x3ee0ac[_0x284fda(0x1af)]?_0x31c6b5+'\x20-\x20'+_0x4514ef['t'](_0x284fda(0x19f)):_0x3d6e00===_0x16bf1e[_0x284fda(0x101)]?''+_0x31c6b5:_0x3d6e00===_0x16bf1e['DISCONNECTED']||_0x3d6e00===_0x16bf1e[_0x284fda(0xb8)]?_0x31c6b5+_0x284fda(0x1c2)+_0x4514ef['t'](_0x284fda(0x127)):_0x31c6b5;}function nn(_0x124c3a){var _0xe3b959=_0x2bc15e;switch(_0x124c3a){case _0x16bf1e[_0xe3b959(0x101)]:return'univer-text-green-500';case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0xe3b959(0xcf)]:return _0xe3b959(0x131);case _0x16bf1e[_0xe3b959(0xb8)]:case _0x16bf1e[_0xe3b959(0x1e6)]:return _0xe3b959(0x162);default:return _0xe3b959(0xc5);}}function rn(_0x52f633){var _0x10ff69=_0x2bc15e;const {status$:_0x3e171d,error$:_0x26b3a8,onConfigure:_0x366dd3}=_0x52f633,_0x5b3ea6=_0x1ba95b(_0x3e171d,_0x16bf1e[_0x10ff69(0x1e6)]),_0x3726ae=_0x1ba95b(_0x26b3a8,_0x3ee0ac[_0x10ff69(0x12d)]),_0x442625=_0x4faa95(_0x42fd01),_0x410766=_0x5b3ea6===_0x16bf1e[_0x10ff69(0x101)],_0x172ab0=_0x5b3ea6===_0x16bf1e['CONNECTING']||_0x5b3ea6===_0x16bf1e['RETRYING'],_0x263ed5=_0x442625['t'](ve(_0x5b3ea6,_0x3726ae)),_0x50fa0f=en(_0x5b3ea6,_0x3726ae,_0x442625),_0x35ec1c=nn(_0x5b3ea6),_0x1228c8=_0x410766?_0x24230c(ue,{}):_0x24230c(le,{}),_0x332dcd=_0x292baa(()=>{_0x366dd3&&_0x366dd3();},[_0x410766,_0x172ab0,_0x366dd3]);function _0x5e4aef(){var _0x3e6028=_0x10ff69;return _0x5c6a92('div',{'className':_0x2ed97f('univer-flex\x20univer-cursor-pointer\x20univer-items-center',_0x366dd3&&_0x3e6028(0xb4)),'onClick':_0x366dd3?_0x332dcd:void 0x0,'children':[_0x24230c(_0x3e6028(0x11f),{'className':_0x2ed97f(_0x3e6028(0x146),_0x35ec1c),'children':_0x1228c8}),_0x24230c(_0x3e6028(0x11f),{'className':_0x3e6028(0x9b),'children':_0x263ed5})]});}return _0x24230c(_0x1b8685,{'title':_0x50fa0f,'placement':_0x10ff69(0x1a1),'children':_0x5e4aef()});}var tn=Object[_0x2bc15e(0x16c)],on=(_0x5ec685,_0x21eb4d,_0x2d874f,_0x4aeb20)=>{for(var _0x42fe3b=_0x4aeb20>0x1?void 0x0:_0x4aeb20?tn(_0x21eb4d,_0x2d874f):_0x21eb4d,_0x469424=_0x5ec685['length']-0x1,_0x12ea9b;_0x469424>=0x0;_0x469424--)(_0x12ea9b=_0x5ec685[_0x469424])&&(_0x42fe3b=_0x12ea9b(_0x42fe3b)||_0x42fe3b);return _0x42fe3b;},L=(_0x66acf5,_0x3c5bc4)=>(_0x93f0c7,_0x574090)=>_0x3c5bc4(_0x93f0c7,_0x574090,_0x66acf5);let O=class extends _0x3a1a4d{constructor(_0x1c819b,_0x45b4a3,_0x10db4a){var _0x243697=_0x2bc15e;super(),this[_0x243697(0x161)]=_0x1c819b,this[_0x243697(0x159)]=_0x45b4a3,this['_uiPartsService']=_0x10db4a,this['_initStatusComponent']();}[_0x2bc15e(0x150)](){var _0x3f001d=_0x2bc15e;this[_0x3f001d(0x172)](this[_0x3f001d(0xc2)]['registerComponent'](_0x2c0def[_0x3f001d(0x1ae)],()=>_0x5d4d25(cn({'status$':this[_0x3f001d(0x159)][_0x3f001d(0x14b)],'error$':this[_0x3f001d(0x159)][_0x3f001d(0x17f)],'onConfigure':()=>this[_0x3f001d(0xcb)]()}),this['_injector'])));}[_0x2bc15e(0xcb)](){var _0x43e7ab=_0x2bc15e;this[_0x43e7ab(0x161)][_0x43e7ab(0xe0)](_)[_0x43e7ab(0x18b)]();}};O=on([L(0x0,_0x696855(_0x3be1cf)),L(0x1,_0x696855(_0x1c16fa)),L(0x2,_0x4c65ee)],O);function cn(_0x4cc40f){const {status$:_0x23c6e8,error$:_0x411ba6,onConfigure:_0x12d8ce}=_0x4cc40f;return function(){return _0x24230c(rn,{'status$':_0x23c6e8,'error$':_0x411ba6,'onConfigure':_0x12d8ce});};}function an(_0xc167dc){var _0x566401=_0x2bc15e;return{'id':W['id'],'type':_0x21bf04[_0x566401(0x15a)],'icon':_0x566401(0x1dc),'title':_0x566401(0x1b9),'tooltip':_0x566401(0x1b9)};}const sn={[_0x2510f1[_0x2bc15e(0x1e4)]]:{[W['id']]:{'order':0xa,'menuItemFactory':an}}};var ln=Object[_0x2bc15e(0x16c)],un=(_0xe38c1e,_0x240cb4,_0x2d7844,_0x35e426)=>{var _0x25e83f=_0x2bc15e;for(var _0x3e4827=_0x35e426>0x1?void 0x0:_0x35e426?ln(_0x240cb4,_0x2d7844):_0x240cb4,_0x15a12b=_0xe38c1e[_0x25e83f(0xb3)]-0x1,_0x1323d5;_0x15a12b>=0x0;_0x15a12b--)(_0x1323d5=_0xe38c1e[_0x15a12b])&&(_0x3e4827=_0x1323d5(_0x3e4827)||_0x3e4827);return _0x3e4827;},Q=(_0x49f3be,_0x45cb5a)=>(_0x5601fd,_0x471979)=>_0x45cb5a(_0x5601fd,_0x471979,_0x49f3be);let k=class extends _0x3a1a4d{constructor(_0x171f40,_0x11ada6){var _0x10ef46=_0x2bc15e;super(),this['_commandService']=_0x171f40,this['_menuManagerService']=_0x11ada6,this['_initializeCommands'](),this[_0x10ef46(0xe1)]();}[_0x2bc15e(0x12a)](){var _0x8ea2d6=_0x2bc15e;[W][_0x8ea2d6(0xcc)](_0xe27650=>{var _0x47f6a6=_0x8ea2d6;this[_0x47f6a6(0x172)](this[_0x47f6a6(0x1d7)][_0x47f6a6(0x136)](_0xe27650));});}['_initializeMenus'](){var _0x2dd2ff=_0x2bc15e;this[_0x2dd2ff(0x1c0)][_0x2dd2ff(0xf8)](sn);}};k=un([Q(0x0,_0x386a7f),Q(0x1,_0x540f9d)],k);const Nn={'mcpStatus':{'disconnected':_0x2bc15e(0xa1),'connecting':_0x2bc15e(0x144),'connected':_0x2bc15e(0x13d),'failed':_0x2bc15e(0x196),'retrying':_0x2bc15e(0x176),'unknown':_0x2bc15e(0x185),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x2bc15e(0x194),'maxRetriesExceeded':_0x2bc15e(0x113),'clickToConnect':_0x2bc15e(0x156),'clickToConfigure':_0x2bc15e(0x104)},'mcpConfig':{'title':_0x2bc15e(0x1df),'description':_0x2bc15e(0xe8),'apiKey':_0x2bc15e(0x17a),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2bc15e(0x11a),'enableAuth':_0x2bc15e(0x1b3),'enableAuthHint':_0x2bc15e(0xd3),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x2bc15e(0x177),'sessionId':_0x2bc15e(0x18f),'maxRetries':_0x2bc15e(0x1b8),'save':_0x2bc15e(0xec),'saving':_0x2bc15e(0x1c1),'note1':_0x2bc15e(0x15c),'note2':_0x2bc15e(0x1d1),'configSaved':_0x2bc15e(0x1a9),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2bc15e(0xf0),'description':_0x2bc15e(0x1d2),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2bc15e(0x1d6)},'validation':{'apiKeyRequired':_0x2bc15e(0x13b),'apiKeyTooShort':_0x2bc15e(0x189),'invalidConfig':_0x2bc15e(0x148),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2bc15e(0x17e),'connecting':'Connecting...','connected':_0x2bc15e(0x1e9),'failed':_0x2bc15e(0x139),'retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x2bc15e(0x98),'maxRetriesExceeded':_0x2bc15e(0xbc)}}},Pn={'mcpStatus':{'disconnected':_0x2bc15e(0xc8),'connecting':_0x2bc15e(0x11d),'connected':_0x2bc15e(0xed),'failed':_0x2bc15e(0x123),'retrying':_0x2bc15e(0xab),'unknown':_0x2bc15e(0x9f),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x2bc15e(0x173),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x2bc15e(0xa3),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2bc15e(0x1da),'clickToConfigure':_0x2bc15e(0x10e)},'mcpConfig':{'title':_0x2bc15e(0x16a),'description':_0x2bc15e(0x9e),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x2bc15e(0x155),'apiKeyHint':_0x2bc15e(0xf3),'enableAuth':_0x2bc15e(0x1bc),'enableAuthHint':_0x2bc15e(0xa0),'connectionInfo':_0x2bc15e(0x1ed),'serverEndpoint':_0x2bc15e(0xfe),'sessionId':_0x2bc15e(0x1cb),'maxRetries':_0x2bc15e(0x165),'save':'保存配置','saving':_0x2bc15e(0xf5),'note1':'配置更改将立即生效','note2':_0x2bc15e(0xf2),'configSaved':'配置保存成功','configError':_0x2bc15e(0x137),'apiApplyInfo':{'title':_0x2bc15e(0x1c5),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x2bc15e(0xd1),'getStarted':_0x2bc15e(0x195)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x2bc15e(0x1db),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x2bc15e(0x142),'connected':_0x2bc15e(0x192),'failed':_0x2bc15e(0xd7),'retrying':_0x2bc15e(0x184)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x2bc15e(0x193),'sessionOccupied':_0x2bc15e(0x1b2),'networkError':_0x2bc15e(0xf9),'maxRetriesExceeded':_0x2bc15e(0x10d)}}};var vn=Object[_0x2bc15e(0x12c)],dn=Object[_0x2bc15e(0x16c)],gn=(_0x26084d,_0x41051a,_0x375115)=>_0x41051a in _0x26084d?vn(_0x26084d,_0x41051a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x375115}):_0x26084d[_0x41051a]=_0x375115,fn=(_0x339b79,_0x4dfa09,_0x42e682,_0x27b699)=>{var _0x390f9d=_0x2bc15e;for(var _0x475250=_0x27b699>0x1?void 0x0:_0x27b699?dn(_0x4dfa09,_0x42e682):_0x4dfa09,_0x2f2932=_0x339b79[_0x390f9d(0xb3)]-0x1,_0x4283fe;_0x2f2932>=0x0;_0x2f2932--)(_0x4283fe=_0x339b79[_0x2f2932])&&(_0x475250=_0x4283fe(_0x475250)||_0x475250);return _0x475250;},P=(_0xf847aa,_0x114b14)=>(_0x9da604,_0xffe549)=>_0x114b14(_0x9da604,_0xffe549,_0xf847aa),pn=(_0x1f2992,_0x715050,_0x2a2192)=>gn(_0x1f2992,_0x715050+'',_0x2a2192);let G=class extends _0x32b180{constructor(_0x2e974a=J,_0x3cacae,_0x4db2b0,_0x4efc30,_0x55cf76,_0x1380dc){var _0x2ceaa2=_0x2bc15e;super(),this[_0x2ceaa2(0x13f)]=_0x2e974a,this[_0x2ceaa2(0x161)]=_0x3cacae,this[_0x2ceaa2(0xc9)]=_0x4db2b0,this[_0x2ceaa2(0xc2)]=_0x4efc30,this[_0x2ceaa2(0xe7)]=_0x55cf76,this[_0x2ceaa2(0x181)]=_0x1380dc;const {..._0x498038}=_0x2b6653({},J,this[_0x2ceaa2(0x13f)]);this[_0x2ceaa2(0xc9)][_0x2ceaa2(0x1aa)](U,_0x498038);}async[_0x2bc15e(0x1d3)](){var _0x1c2276=_0x2bc15e;[[O],[_],[k]][_0x1c2276(0xcc)](_0x244deb=>this[_0x1c2276(0x161)][_0x1c2276(0xa9)](_0x244deb)),this[_0x1c2276(0x161)][_0x1c2276(0xe0)](O),this['_injector'][_0x1c2276(0xe0)](_),this[_0x1c2276(0x161)][_0x1c2276(0xe0)](k);}};pn(G,_0x2bc15e(0x13a),_0x2bc15e(0x19d)),G=fn([_0x302e6f(_0x313ef9),P(0x1,_0x696855(_0x3be1cf)),P(0x2,_0x5b375f),P(0x3,_0x4c65ee),P(0x4,_0x4948f7),P(0x5,_0x696855(_0x42fd01))],G);export{Xe as MCPConfigPanel,_ as MCPConfigUIController,O as MCPConnectionUIController,rn as MCPStatusDisplay,k as MCPUIMenuController,W as OpenMCPConfigPanelCommand,G as UniverMCPUIPlugin,Nn as enUS,Pn as zhCN};
|
|
1
|
+
var _0x878abf=_0x2a3e;function _0x2a3e(_0x290ebe,_0x5dcd77){var _0x17e577=_0x17e5();return _0x2a3e=function(_0x2a3ed6,_0x56c0c6){_0x2a3ed6=_0x2a3ed6-0x16b;var _0x1fba53=_0x17e577[_0x2a3ed6];return _0x1fba53;},_0x2a3e(_0x290ebe,_0x5dcd77);}(function(_0x330f20,_0x4400af){var _0x9c4142=_0x2a3e,_0x3d8ac5=_0x330f20();while(!![]){try{var _0x1b926a=parseInt(_0x9c4142(0x2c9))/0x1*(-parseInt(_0x9c4142(0x23e))/0x2)+-parseInt(_0x9c4142(0x1dc))/0x3+parseInt(_0x9c4142(0x1cf))/0x4+-parseInt(_0x9c4142(0x19f))/0x5+-parseInt(_0x9c4142(0x259))/0x6+parseInt(_0x9c4142(0x245))/0x7*(-parseInt(_0x9c4142(0x1bb))/0x8)+parseInt(_0x9c4142(0x2bd))/0x9;if(_0x1b926a===_0x4400af)break;else _0x3d8ac5['push'](_0x3d8ac5['shift']());}catch(_0x5c6d70){_0x3d8ac5['push'](_0x3d8ac5['shift']());}}}(_0x17e5,0x8d3ac));var Ee=Object[_0x878abf(0x1ff)],we=(_0x3c48d7,_0x373a7d,_0x3aa229)=>_0x373a7d in _0x3c48d7?Ee(_0x3c48d7,_0x373a7d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3aa229}):_0x3c48d7[_0x373a7d]=_0x3aa229,x=(_0x236f99,_0x13f728,_0x81a4f2)=>we(_0x236f99,typeof _0x13f728!='symbol'?_0x13f728+'':_0x13f728,_0x81a4f2);import{LocaleService as _0x2cafca,Inject as _0x4b1aad,Injector as _0x1e0df8,IConfigService as _0x2f7b03,ILocalStorageService as _0x26dd62,ILogService as _0x43456b,Disposable as _0x48cdac,CommandType as _0x2a3463,ICommandService as _0x2eadf3,DependentOn as _0x38b54d,Plugin as _0x327c70,merge as _0x16c97e}from'@univerjs/core';import{jsxs as _0x217c68,jsx as _0x1c1f24}from'react/jsx-runtime';import{MCPConnectionStatus as _0x570910,MCPConnectionError as _0x1b66ad,MCPConnectionController as _0x31c2e0,MCP_PLUGIN_CONFIG_KEY as _0x155ae7,UniverMCPPlugin as _0x4814df}from'@univerjs-pro/mcp';import{Input as _0x3f8b70,Button as _0x55d059,MessageType as _0x59b0fd,Tooltip as _0x4b795e,clsx as _0xfa00fe}from'@univerjs/design';import{useDependency as _0x35481b,useObservable as _0xd038f,IUIPartsService as _0x4875db,IDialogService as _0x56eea7,IMessageService as _0x4e3373,ComponentManager as _0x45c9fe,connectInjector as _0x396a3d,BuiltInUIPart as _0x4b2d19,MenuItemType as _0x28d5f3,RibbonStartGroup as _0x448127,IMenuManagerService as _0x34d96d}from'@univerjs/ui';import{BehaviorSubject as _0x1c8fe0}from'rxjs';import{forwardRef as _0xbb4059,useRef as _0x1dbee9,createElement as _0x2cc0bb,useState as _0x30df44,useCallback as _0x15cf96}from'react';import{ISocketService as _0x579005,WebSocketService as _0x4077b7}from'@univerjs/network';var g=function(){var _0x1df917=_0x878abf;return g=Object['assign']||function(_0x1320fd){var _0x255901=_0x2a3e;for(var _0x559130,_0x3d2e0e=0x1,_0x516e1b=arguments[_0x255901(0x25a)];_0x3d2e0e<_0x516e1b;_0x3d2e0e++){_0x559130=arguments[_0x3d2e0e];for(var _0x12f7c7 in _0x559130)Object['prototype'][_0x255901(0x270)]['call'](_0x559130,_0x12f7c7)&&(_0x1320fd[_0x12f7c7]=_0x559130[_0x12f7c7]);}return _0x1320fd;},g[_0x1df917(0x292)](this,arguments);},We=function(_0x2ddc12,_0x47358c){var _0xa19511=_0x878abf,_0x2654bd={};for(var _0x28b9d7 in _0x2ddc12)Object[_0xa19511(0x2a8)][_0xa19511(0x270)][_0xa19511(0x2ce)](_0x2ddc12,_0x28b9d7)&&_0x47358c[_0xa19511(0x211)](_0x28b9d7)<0x0&&(_0x2654bd[_0x28b9d7]=_0x2ddc12[_0x28b9d7]);if(_0x2ddc12!=null&&typeof Object['getOwnPropertySymbols']==_0xa19511(0x20e)){for(var _0x19e2d8=0x0,_0x28b9d7=Object[_0xa19511(0x247)](_0x2ddc12);_0x19e2d8<_0x28b9d7['length'];_0x19e2d8++)_0x47358c[_0xa19511(0x211)](_0x28b9d7[_0x19e2d8])<0x0&&Object['prototype'][_0xa19511(0x2d4)][_0xa19511(0x2ce)](_0x2ddc12,_0x28b9d7[_0x19e2d8])&&(_0x2654bd[_0x28b9d7[_0x19e2d8]]=_0x2ddc12[_0x28b9d7[_0x19e2d8]]);}return _0x2654bd;},b=_0xbb4059(function(_0x4586a2,_0xd963ca){var _0x580472=_0x878abf,_0x2b4477=_0x4586a2['icon'],_0x109def=_0x4586a2['id'],_0x20f67a=_0x4586a2['className'],_0x4138f4=_0x4586a2[_0x580472(0x28e)],_0x1b868b=We(_0x4586a2,[_0x580472(0x224),'id',_0x580472(0x261),_0x580472(0x28e)]),_0x4ffbf9=_0x580472(0x1fc)[_0x580472(0x1d6)](_0x109def,'\x20')[_0x580472(0x1d6)](_0x20f67a||'')[_0x580472(0x1f4)](),_0x5e2335=_0x1dbee9('_'[_0x580472(0x1d6)](Xe()));return le(_0x2b4477,''[_0x580472(0x1d6)](_0x109def),{'defIds':_0x2b4477[_0x580472(0x2c4)],'idSuffix':_0x5e2335[_0x580472(0x185)]},g({'ref':_0xd963ca,'className':_0x4ffbf9},_0x1b868b),_0x4138f4);});function le(_0x2ada73,_0x46e72f,_0x259fb8,_0xe10afa,_0x53b394){var _0x2118ea=_0x878abf;return _0x2cc0bb(_0x2ada73[_0x2118ea(0x291)],g(g({'key':_0x46e72f},qe(_0x2ada73,_0x259fb8,_0x53b394)),_0xe10afa),(Ze(_0x2ada73,_0x259fb8)[_0x2118ea(0x295)]||[])['map'](function(_0x12b78c,_0xdb1a66){var _0x5f13b9=_0x2118ea;return le(_0x12b78c,''[_0x5f13b9(0x1d6)](_0x46e72f,'-')[_0x5f13b9(0x1d6)](_0x2ada73[_0x5f13b9(0x291)],'-')[_0x5f13b9(0x1d6)](_0xdb1a66),_0x259fb8,void 0x0,_0x53b394);}));}function qe(_0x2822e5,_0x47b5c0,_0x4e7911){var _0x2e8eab=_0x878abf,_0x27abd5=g({},_0x2822e5[_0x2e8eab(0x27f)]);_0x4e7911!=null&&_0x4e7911[_0x2e8eab(0x257)]&&_0x27abd5[_0x2e8eab(0x22f)]==='colorChannel1'&&(_0x27abd5[_0x2e8eab(0x22f)]=_0x4e7911[_0x2e8eab(0x257)]),_0x2822e5['tag']===_0x2e8eab(0x251)&&_0x27abd5['id']&&(_0x27abd5['id']=_0x27abd5['id']+_0x47b5c0[_0x2e8eab(0x1ea)]),Object[_0x2e8eab(0x27b)](_0x27abd5)['forEach'](function(_0x36c13c){var _0xc710a8=_0x2e8eab,_0x4a7177=_0x36c13c[0x0],_0x5afe10=_0x36c13c[0x1];_0x4a7177==='mask'&&typeof _0x5afe10=='string'&&(_0x27abd5[_0x4a7177]=_0x5afe10[_0xc710a8(0x2b3)](/url\(#(.*)\)/,'url(#$1'[_0xc710a8(0x1d6)](_0x47b5c0['idSuffix'],')')));});var _0x7e1afc=_0x47b5c0['defIds'];return!_0x7e1afc||_0x7e1afc[_0x2e8eab(0x25a)]===0x0||(_0x2822e5[_0x2e8eab(0x291)]===_0x2e8eab(0x252)&&_0x27abd5[_0x2e8eab(0x210)]&&(_0x27abd5[_0x2e8eab(0x210)]=_0x27abd5[_0x2e8eab(0x210)]+_0x47b5c0['idSuffix']),Object[_0x2e8eab(0x27b)](_0x27abd5)[_0x2e8eab(0x25e)](function(_0x43266b){var _0x3c6edb=_0x2e8eab,_0x2f59c2=_0x43266b[0x0],_0x83baa7=_0x43266b[0x1];typeof _0x83baa7==_0x3c6edb(0x2cd)&&(_0x27abd5[_0x2f59c2]=_0x83baa7[_0x3c6edb(0x2b3)](/url\(#(.*)\)/,_0x3c6edb(0x1bd)[_0x3c6edb(0x1d6)](_0x47b5c0[_0x3c6edb(0x1ea)],')')));})),_0x27abd5;}function Ze(_0x3da078,_0x349296){var _0xcc13af=_0x878abf,_0x28da1f,_0x22ee18=_0x349296['defIds'];return!_0x22ee18||_0x22ee18[_0xcc13af(0x25a)]===0x0?_0x3da078:_0x3da078['tag']===_0xcc13af(0x258)&&(!((_0x28da1f=_0x3da078[_0xcc13af(0x295)])===null||_0x28da1f===void 0x0)&&_0x28da1f[_0xcc13af(0x25a)])?g(g({},_0x3da078),{'children':_0x3da078[_0xcc13af(0x295)][_0xcc13af(0x24b)](function(_0x543383){var _0x3b5632=_0xcc13af;return typeof _0x543383[_0x3b5632(0x27f)]['id']==_0x3b5632(0x2cd)&&_0x22ee18&&_0x22ee18[_0x3b5632(0x1fa)](_0x543383['attrs']['id'])?g(g({},_0x543383),{'attrs':g(g({},_0x543383[_0x3b5632(0x27f)]),{'id':_0x543383[_0x3b5632(0x27f)]['id']+_0x349296[_0x3b5632(0x1ea)]})}):_0x543383;})}):_0x3da078;}function Xe(){var _0x4908e2=_0x878abf;return Math[_0x4908e2(0x26d)]()[_0x4908e2(0x22e)](0x24)['substring'](0x2,0x8);}b[_0x878abf(0x2a0)]='UniverIcon';var Je={'tag':_0x878abf(0x26b),'attrs':{'xmlns':_0x878abf(0x2c6),'fill':'none','viewBox':_0x878abf(0x22a),'width':'1em','height':_0x878abf(0x279)},'children':[{'tag':_0x878abf(0x170),'attrs':{'fill':_0x878abf(0x238),'d':_0x878abf(0x2bb),'fillRule':_0x878abf(0x278),'clipRule':_0x878abf(0x278)}}]},ue=_0xbb4059(function(_0x277214,_0x371dd8){return _0x2cc0bb(b,Object['assign']({},_0x277214,{'id':'check-mark-icon','ref':_0x371dd8,'icon':Je}));});ue['displayName']='CheckMarkIcon';var Qe={'tag':_0x878abf(0x26b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x878abf(0x1a2),'viewBox':'0\x200\x2017\x2017','width':_0x878abf(0x279),'height':'1em'},'children':[{'tag':_0x878abf(0x170),'attrs':{'stroke':_0x878abf(0x238),'d':_0x878abf(0x21b),'strokeLinecap':'round','strokeLinejoin':_0x878abf(0x249),'strokeWidth':1.33}},{'tag':_0x878abf(0x170),'attrs':{'stroke':_0x878abf(0x238),'d':_0x878abf(0x2b2),'strokeLinecap':_0x878abf(0x249),'strokeLinejoin':_0x878abf(0x249),'strokeWidth':1.33}}]},ve=_0xbb4059(function(_0x3c57cf,_0xc00de8){var _0x3dc9a6=_0x878abf;return _0x2cc0bb(b,Object['assign']({},_0x3c57cf,{'id':_0x3dc9a6(0x24e),'ref':_0xc00de8,'icon':Qe}));});ve[_0x878abf(0x2a0)]=_0x878abf(0x16f);var en={'tag':_0x878abf(0x26b),'attrs':{'xmlns':_0x878abf(0x2c6),'fill':_0x878abf(0x1a2),'viewBox':_0x878abf(0x22a),'width':_0x878abf(0x279),'height':_0x878abf(0x279)},'children':[{'tag':_0x878abf(0x170),'attrs':{'fill':_0x878abf(0x238),'d':_0x878abf(0x24c)}},{'tag':'path','attrs':{'fill':_0x878abf(0x238),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x878abf(0x170),'attrs':{'fill':_0x878abf(0x238),'d':_0x878abf(0x296),'fillRule':_0x878abf(0x278),'clipRule':_0x878abf(0x278)}}]},de=_0xbb4059(function(_0xe72b23,_0x11cf1e){var _0x4435d9=_0x878abf;return _0x2cc0bb(b,Object['assign']({},_0xe72b23,{'id':_0x4435d9(0x237),'ref':_0x11cf1e,'icon':en}));});de[_0x878abf(0x2a0)]=_0x878abf(0x1b8);var nn={'tag':_0x878abf(0x26b),'attrs':{'xmlns':_0x878abf(0x2c6),'fill':_0x878abf(0x1a2),'viewBox':_0x878abf(0x22a),'width':_0x878abf(0x279),'height':_0x878abf(0x279)},'children':[{'tag':'g','attrs':{'clipPath':_0x878abf(0x19e)},'children':[{'tag':_0x878abf(0x170),'attrs':{'stroke':_0x878abf(0x238),'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':_0x878abf(0x249),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x878abf(0x258),'attrs':{},'children':[{'tag':_0x878abf(0x179),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x878abf(0x170),'attrs':{'fill':'white','d':_0x878abf(0x195)}}]}]}],'defIds':[_0x878abf(0x2d0)]},ge=_0xbb4059(function(_0x17efca,_0x367b80){var _0xbffb0b=_0x878abf;return _0x2cc0bb(b,Object[_0xbffb0b(0x18f)]({},_0x17efca,{'id':_0xbffb0b(0x1ba),'ref':_0x367b80,'icon':nn}));});ge[_0x878abf(0x2a0)]=_0x878abf(0x2d3);var rn={'tag':_0x878abf(0x26b),'attrs':{'xmlns':_0x878abf(0x2c6),'fill':_0x878abf(0x1a2),'viewBox':_0x878abf(0x1d0),'width':_0x878abf(0x279),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x878abf(0x20d)},'children':[{'tag':'path','attrs':{'stroke':_0x878abf(0x238),'d':_0x878abf(0x214),'strokeLinecap':_0x878abf(0x249),'strokeLinejoin':_0x878abf(0x249),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x878abf(0x260)},'children':[{'tag':_0x878abf(0x170),'attrs':{'fill':'white','d':_0x878abf(0x195),'transform':_0x878abf(0x274)}}]}]}],'defIds':[_0x878abf(0x260)]},fe=_0xbb4059(function(_0x1f1acb,_0x19c02f){var _0x3d258c=_0x878abf;return _0x2cc0bb(b,Object[_0x3d258c(0x18f)]({},_0x1f1acb,{'id':_0x3d258c(0x244),'ref':_0x19c02f,'icon':rn}));});fe[_0x878abf(0x2a0)]=_0x878abf(0x231);function tn(_0x2faafc){var _0x5ecbf9=_0x878abf,_0x55642c,_0x1574b3;const {mcpCoreConfig:_0x143e40,onSave:_0x51f782,loading:_0x289c07=!0x1,config:_0x58c057,connectionStatus$:_0x19f78d,connectionError$:_0x1c2ae3,currentApiKey$:_0x3a57a7,currentSessionId$:_0x59cb13}=_0x2faafc,_0x2392e1=_0x35481b(_0x2cafca),_0x2a1b09=_0xd038f(_0x19f78d,_0x570910[_0x5ecbf9(0x23b)]),_0x23852e=_0xd038f(_0x1c2ae3,_0x1b66ad['NONE']),_0x3e4fbb=_0xd038f(_0x59cb13,''),_0x262bb1=_0xd038f(_0x3a57a7,''),[_0x3cf245,_0x1c5476]=_0x30df44(_0x262bb1||''),_0x228e27=!0x0,_0x408def=_0x58c057[_0x5ecbf9(0x208)]&&_0x143e40[_0x5ecbf9(0x174)]&&(_0x143e40['mcpServerUrl'][_0x5ecbf9(0x1fa)](_0x5ecbf9(0x22c))||_0x143e40[_0x5ecbf9(0x174)][_0x5ecbf9(0x1fa)]('univer.ai')),_0x3e7046=(_0x55642c=_0x143e40[_0x5ecbf9(0x174)])==null?void 0x0:_0x55642c[_0x5ecbf9(0x1fa)](_0x5ecbf9(0x22c)),_0x4d4c30=(_0x1574b3=_0x143e40[_0x5ecbf9(0x174)])==null?void 0x0:_0x1574b3[_0x5ecbf9(0x1fa)](_0x5ecbf9(0x29d)),_0x306a89=_0x3e7046?_0x5ecbf9(0x2ab):_0x5ecbf9(0x1e0),_0x148538=_0x58c057['showDeveloperTools']&&(_0x3e7046||_0x4d4c30),[_0x3acf1c,_0x52736e]=_0x30df44(!_0x3cf245['trim']()),_0x4d1f03=(_0x572d20,_0x1c9d5e)=>{var _0x2618ee=_0x5ecbf9;if(_0x1c9d5e===_0x1b66ad[_0x2618ee(0x255)])return _0x2618ee(0x1a0);switch(_0x572d20){case _0x570910['CONNECTED']:return _0x2618ee(0x177);case _0x570910[_0x2618ee(0x215)]:case _0x570910['RETRYING']:return _0x2618ee(0x21e);case _0x570910[_0x2618ee(0x1c7)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x2618ee(0x1fe);}},_0x13e9c3=(_0x1076e7,_0xdf8bfe)=>{var _0xcd1467=_0x5ecbf9;if(_0xdf8bfe===_0x1b66ad[_0xcd1467(0x255)])return _0xcd1467(0x1e3);switch(_0x1076e7){case _0x570910[_0xcd1467(0x189)]:return _0xcd1467(0x27e);case _0x570910[_0xcd1467(0x215)]:case _0x570910[_0xcd1467(0x2bf)]:return _0xcd1467(0x1b7);case _0x570910['FAILED']:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x5032e1=_0xc3417c=>{var _0xa7f2a0=_0x5ecbf9;switch(_0xc3417c){case _0x570910[_0xa7f2a0(0x189)]:return _0x2392e1['t']('mcpConfig.connectionStatus.connected');case _0x570910[_0xa7f2a0(0x215)]:return _0x2392e1['t']('mcpConfig.connectionStatus.connecting');case _0x570910[_0xa7f2a0(0x1c7)]:return _0x2392e1['t'](_0xa7f2a0(0x192));case _0x570910['RETRYING']:return _0x2392e1['t'](_0xa7f2a0(0x284));default:return _0x2392e1['t'](_0xa7f2a0(0x1c1));}},_0x3507d8=_0x4386a1=>{var _0xbd45a8=_0x5ecbf9;switch(_0x4386a1){case _0x1b66ad['INVALID_API_KEY']:return _0x2392e1['t']('mcpConfig.connectionError.invalidApiKey');case _0x1b66ad[_0xbd45a8(0x234)]:return _0x2392e1['t'](_0xbd45a8(0x1d4));case _0x1b66ad[_0xbd45a8(0x265)]:return _0x2392e1['t'](_0xbd45a8(0x243));case _0x1b66ad[_0xbd45a8(0x26e)]:return _0x2392e1['t'](_0xbd45a8(0x229));default:return'';}},_0x3c721d=_0x15cf96(()=>{var _0x3030bf=_0x5ecbf9;const _0x30ef9c={..._0x143e40,'apiKey':_0x3cf245[_0x3030bf(0x1f4)](),'enableAuth':_0x228e27};_0x51f782(_0x30ef9c);},[_0x143e40,_0x3cf245,_0x228e27,_0x51f782]),_0x270dd4=_0x3cf245[_0x5ecbf9(0x1f4)]()['length']>0x0;return _0x217c68('div',{'className':_0x5ecbf9(0x2ca),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x194),'children':_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x256),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x2b4),'children':_0x1c1f24('span',{'className':_0x5ecbf9(0x1e2),'children':'⚙'})}),_0x1c1f24('div',{'children':_0x1c1f24('p',{'className':_0x5ecbf9(0x226),'children':_0x2392e1['t'](_0x5ecbf9(0x2a1))})})]})}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x22b),'children':[_0x1c1f24('div',{'className':_0x5ecbf9(0x246)+_0x4d1f03(_0x2a1b09,_0x23852e)+_0x5ecbf9(0x2b6),'children':_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x29c),'children':[_0x1c1f24('div',{'className':_0x5ecbf9(0x240)+_0x13e9c3(_0x2a1b09,_0x23852e)+_0x5ecbf9(0x1de)}),_0x1c1f24('span',{'className':_0x5ecbf9(0x1c8),'children':_0x5032e1(_0x2a1b09)})]})}),_0x23852e!==_0x1b66ad[_0x5ecbf9(0x2d2)]&&(_0x2a1b09===_0x570910[_0x5ecbf9(0x1c7)]||_0x23852e===_0x1b66ad['INVALID_API_KEY'])&&_0x1c1f24('div',{'className':_0x5ecbf9(0x1d1),'children':_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x225),'children':'⚠️'}),_0x1c1f24('p',{'className':_0x5ecbf9(0x1d7),'children':_0x3507d8(_0x23852e)})]})})]}),_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x2ba),'children':_0x217c68('div',{'className':_0x5ecbf9(0x24a),'children':[_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-space-y-2','children':[_0x217c68(_0x5ecbf9(0x1b4),{'className':_0x5ecbf9(0x1fb),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'children':'🔑'}),'\x20',_0x2392e1['t'](_0x5ecbf9(0x219)),_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x175),'children':'*'}),_0x408def&&_0x1c1f24('a',{'href':_0x5ecbf9(0x217),'onClick':()=>_0x52736e(!0x0),'className':_0x5ecbf9(0x2c2),'title':_0x2392e1['t'](_0x5ecbf9(0x288)),'children':_0x1c1f24(de,{})})]}),_0x1c1f24(_0x3f8b70,{'type':_0x5ecbf9(0x254),'placeholder':_0x2392e1['t'](_0x5ecbf9(0x1cc)),'value':_0x3cf245,'onChange':_0x1c5476,'disabled':_0x289c07,'autoComplete':'off'}),_0x1c1f24('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2392e1['t'](_0x5ecbf9(0x223))})]}),_0x408def&&_0x3acf1c&&_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x1aa),'children':[_0x1c1f24('a',{'href':_0x5ecbf9(0x217),'onClick':()=>_0x52736e(!0x1),'className':_0x5ecbf9(0x1ab),'title':_0x5ecbf9(0x20a),'children':_0x1c1f24(ve,{})}),_0x217c68('div',{'className':_0x5ecbf9(0x26a),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'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':_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x200),'children':'🚀'})}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x228),'children':[_0x1c1f24('h4',{'className':_0x5ecbf9(0x218),'children':_0x2392e1['t'](_0x5ecbf9(0x288))}),_0x1c1f24('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x2392e1['t'](_0x5ecbf9(0x235))}),_0x1c1f24(_0x5ecbf9(0x1f7),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x148538&&_0x217c68('a',{'href':_0x306a89,'target':_0x5ecbf9(0x18e),'rel':'noopener\x20noreferrer','className':_0x5ecbf9(0x1ec),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'children':'🤖'}),_0x2392e1['t'](_0x5ecbf9(0x216)),_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x29e),'children':'↗'})]})}),_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x2392e1['t'](_0x5ecbf9(0x1b0))]})]})]})]}),_0x58c057['showDeveloperTools']&&_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x21f),'children':[_0x217c68('h4',{'className':_0x5ecbf9(0x239),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'children':'🔗'}),'\x20',_0x2392e1['t'](_0x5ecbf9(0x1ae))]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x1eb),'children':[_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-space-y-3','children':[_0x1c1f24('p',{'className':_0x5ecbf9(0x1f8),'children':_0x2392e1['t'](_0x5ecbf9(0x263))}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x28f),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2392e1['t'](_0x5ecbf9(0x2aa))}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x1ac),'children':[_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1c1f24('span',{'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':'1'}),_0x2392e1['t']('mcpConfig.configStep1')]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x29c),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x2b8),'children':'2'}),_0x2392e1['t'](_0x5ecbf9(0x1ca))]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x29c),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x2b8),'children':'3'}),_0x2392e1['t']('mcpConfig.configStep3')]})]})]})]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-space-y-2','children':[_0x1c1f24('div',{'className':_0x5ecbf9(0x20c),'children':_0x5ecbf9(0x1b3)}),_0x1c1f24(_0x5ecbf9(0x1f7),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x1c1f24(_0x5ecbf9(0x1c6),{'className':_0x5ecbf9(0x21a),'children':_0x5ecbf9(0x282)+_0x3e4fbb+'\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'+(_0x3cf245||_0x5ecbf9(0x285))+_0x5ecbf9(0x276)})})]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x1e7),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x20c),'children':_0x2392e1['t'](_0x5ecbf9(0x2a3))}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x28f),'children':[_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x186),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x24f),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x283),'children':_0x5ecbf9(0x18b)}),_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x2b9),'children':_0x2392e1['t'](_0x5ecbf9(0x2a2))})]})]}),_0x217c68(_0x5ecbf9(0x1f7),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x222)}),_0x217c68(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x24f),'children':[_0x1c1f24(_0x5ecbf9(0x1f7),{'className':_0x5ecbf9(0x283),'children':_0x5ecbf9(0x1d3)}),_0x1c1f24('div',{'className':_0x5ecbf9(0x2b9),'children':_0x2392e1['t'](_0x5ecbf9(0x2ae))})]})]})]})]})]})]}),_0x1c1f24(_0x55d059,{'onClick':_0x3c721d,'disabled':!_0x270dd4||_0x289c07,'className':_0x5ecbf9(0x1a4),'children':_0x289c07?_0x217c68(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x29c),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'children':'⟲'}),_0x2392e1['t'](_0x5ecbf9(0x299))]}):_0x217c68(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x29c),'children':[_0x1c1f24(ue,{}),_0x2392e1['t']('mcpConfig.save')]})}),_0x1c1f24(_0x5ecbf9(0x1f7),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x217c68('div',{'className':_0x5ecbf9(0x1b5),'children':[_0x1c1f24(_0x5ecbf9(0x248),{'className':_0x5ecbf9(0x1cb),'children':'💡'}),_0x217c68('div',{'className':_0x5ecbf9(0x267),'children':[_0x1c1f24('div',{'className':_0x5ecbf9(0x191),'children':_0x5ecbf9(0x183)}),_0x217c68(_0x5ecbf9(0x1f7),{'children':['•',_0x2392e1['t'](_0x5ecbf9(0x187))]}),_0x217c68(_0x5ecbf9(0x1f7),{'children':['•',_0x2392e1['t'](_0x5ecbf9(0x2a6))]})]})]})})]})})]});}const L=_0x878abf(0x2bc),ie={'showDeveloperTools':!0x1};var on=Object[_0x878abf(0x22d)],sn=(_0x4c81e5,_0x4072f1,_0x1410aa,_0x1fdd2d)=>{var _0x3ade9c=_0x878abf;for(var _0x3e07a3=_0x1fdd2d>0x1?void 0x0:_0x1fdd2d?on(_0x4072f1,_0x1410aa):_0x4072f1,_0xcb352c=_0x4c81e5[_0x3ade9c(0x25a)]-0x1,_0x3c9f0d;_0xcb352c>=0x0;_0xcb352c--)(_0x3c9f0d=_0x4c81e5[_0xcb352c])&&(_0x3e07a3=_0x3c9f0d(_0x3e07a3)||_0x3e07a3);return _0x3e07a3;},f=(_0x5d4039,_0x490641)=>(_0x45cb95,_0x4df4f5)=>_0x490641(_0x45cb95,_0x4df4f5,_0x5d4039);const T=_0x878abf(0x1d5),R=_0x878abf(0x28b);let I=class extends _0x48cdac{constructor(_0x3dc8fb,_0x784aa0,_0x5b2cfe,_0x3894e0,_0x150724,_0x26c3f5,_0xeb6161,_0x4286e8,_0x46a48d,_0x178e55){var _0x5f0508=_0x878abf;super(),x(this,_0x5f0508(0x173),new _0x1c8fe0(!0x1)),x(this,'_mcpCoreConfig$',new _0x1c8fe0({})),x(this,_0x5f0508(0x253),new _0x1c8fe0({})),x(this,_0x5f0508(0x17f),new _0x1c8fe0('')),x(this,_0x5f0508(0x26f),async _0x513cb3=>{var _0x5742a9=_0x5f0508,_0x21cf18,_0x349358;this['_loading$'][_0x5742a9(0x1be)](!0x0);try{const _0x496b9d=await this[_0x5742a9(0x232)](_0x513cb3);if(!_0x496b9d[_0x5742a9(0x266)]){this[_0x5742a9(0x280)][_0x5742a9(0x2ac)]({'type':_0x59b0fd['Error'],'content':_0x496b9d[_0x5742a9(0x181)]||this[_0x5742a9(0x1d2)]['t'](_0x5742a9(0x287))});return;}_0x513cb3[_0x5742a9(0x25b)]?await this[_0x5742a9(0x269)][_0x5742a9(0x18a)](T,_0x513cb3['apiKey']['trim']()):await this[_0x5742a9(0x269)][_0x5742a9(0x1c4)](T),this[_0x5742a9(0x17f)]['next'](((_0x21cf18=_0x513cb3[_0x5742a9(0x25b)])==null?void 0x0:_0x21cf18['trim']())||''),this[_0x5742a9(0x230)][_0x5742a9(0x193)]({'Authorization':'Bearer\x20'+((_0x349358=_0x513cb3['apiKey'])==null?void 0x0:_0x349358[_0x5742a9(0x1f4)]())}),this['_messageService'][_0x5742a9(0x2ac)]({'type':_0x59b0fd[_0x5742a9(0x271)],'content':this[_0x5742a9(0x1d2)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x20a05c=_0x5742a9;this[_0x20a05c(0x1fd)][_0x20a05c(0x1f1)](R);},0x320);}catch(_0x27362d){this[_0x5742a9(0x1ef)][_0x5742a9(0x286)](_0x5742a9(0x28a),_0x27362d),this['_messageService'][_0x5742a9(0x2ac)]({'type':_0x59b0fd[_0x5742a9(0x262)],'content':this[_0x5742a9(0x1d2)]['t']('mcpConfig.configError')});}finally{this[_0x5742a9(0x173)]['next'](!0x1);}}),(this[_0x5f0508(0x1ce)]=_0x3dc8fb,this[_0x5f0508(0x16e)]=_0x784aa0,this[_0x5f0508(0x29b)]=_0x5b2cfe,this[_0x5f0508(0x269)]=_0x3894e0,this['_dialogService']=_0x150724,this[_0x5f0508(0x280)]=_0x26c3f5,this[_0x5f0508(0x290)]=_0xeb6161,this['_localeService']=_0x4286e8,this[_0x5f0508(0x1ef)]=_0x46a48d,this[_0x5f0508(0x230)]=_0x178e55,this[_0x5f0508(0x19a)](),this[_0x5f0508(0x26c)](),this[_0x5f0508(0x16b)]());}[_0x878abf(0x2c5)](){var _0x1988d4=_0x878abf;this[_0x1988d4(0x1fd)][_0x1988d4(0x1f6)]({'id':R,'title':{'title':this[_0x1988d4(0x1d2)]['t'](_0x1988d4(0x17d))},'children':{'label':_0x1988d4(0x2b1)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x49316f=_0x1988d4;this[_0x49316f(0x1fd)][_0x49316f(0x1f1)](R);}});}['getCurrentConfig'](){var _0x2b02d3=_0x878abf;return this[_0x2b02d3(0x264)][_0x2b02d3(0x1d9)];}[_0x878abf(0x16b)](){var _0x29e511=_0x878abf;this[_0x29e511(0x297)](this['_componentManager'][_0x29e511(0x213)](_0x29e511(0x2b1),this['_createConfigPanelComponent']()));}['_createConfigPanelComponent'](){return _0x396a3d(()=>{var _0x27e06f=_0x2a3e,_0x49924e,_0x1cb984,_0x1c3464;return _0x1c1f24(tn,{'config':this[_0x27e06f(0x253)][_0x27e06f(0x1d9)],'mcpCoreConfig':this[_0x27e06f(0x264)][_0x27e06f(0x1d9)],'currentApiKey$':this[_0x27e06f(0x17f)],'onSave':this[_0x27e06f(0x26f)],'loading':this[_0x27e06f(0x173)][_0x27e06f(0x1d9)],'connectionStatus$':(_0x49924e=this[_0x27e06f(0x230)])==null?void 0x0:_0x49924e[_0x27e06f(0x241)],'connectionError$':(_0x1cb984=this[_0x27e06f(0x230)])==null?void 0x0:_0x1cb984[_0x27e06f(0x24d)],'currentSessionId$':(_0x1c3464=this[_0x27e06f(0x230)])==null?void 0x0:_0x1c3464[_0x27e06f(0x205)]});},this['_injector']);}[_0x878abf(0x19a)](){var _0x9b5c6a=_0x878abf;this[_0x9b5c6a(0x297)](this['_configService'][_0x9b5c6a(0x176)](_0x155ae7)[_0x9b5c6a(0x242)](_0x2a330f=>{var _0x309a03=_0x9b5c6a;this[_0x309a03(0x264)][_0x309a03(0x1be)](_0x2a330f||{});}));const _0x381b06=this[_0x9b5c6a(0x29b)][_0x9b5c6a(0x29f)](_0x155ae7);this[_0x9b5c6a(0x264)]['next'](_0x381b06||{}),this[_0x9b5c6a(0x297)](this[_0x9b5c6a(0x29b)]['subscribeConfigValue$'](L)[_0x9b5c6a(0x242)](_0x858f70=>{var _0x255f6e=_0x9b5c6a;this['_config$'][_0x255f6e(0x1be)](_0x858f70||{});}));const _0x29bd7f=this[_0x9b5c6a(0x29b)][_0x9b5c6a(0x29f)](L);this['_config$'][_0x9b5c6a(0x1be)](_0x29bd7f||{});}async['_loadStoredApiKey'](){var _0x1b4ab0=_0x878abf;const _0x400076=await this['_localStorageService']['getItem'](T);_0x400076&&(this[_0x1b4ab0(0x230)][_0x1b4ab0(0x193)]({'Authorization':'Bearer\x20'+_0x400076}),this[_0x1b4ab0(0x17f)][_0x1b4ab0(0x1be)](_0x400076));}async[_0x878abf(0x232)](_0x8559a1){var _0x11f7ac=_0x878abf;if(!_0x8559a1['apiKey']||_0x8559a1[_0x11f7ac(0x25b)][_0x11f7ac(0x1f4)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x11f7ac(0x1d2)]['t'](_0x11f7ac(0x27a))};if(_0x8559a1[_0x11f7ac(0x25b)]['trim']()[_0x11f7ac(0x25a)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x11f7ac(0x1d2)]['t'](_0x11f7ac(0x1f9))};try{const _0x14035c=await this[_0x11f7ac(0x1ce)][_0x11f7ac(0x1cd)](_0x31c2e0)[_0x11f7ac(0x16d)](_0x8559a1[_0x11f7ac(0x25b)][_0x11f7ac(0x1f4)]());return _0x14035c[_0x11f7ac(0x266)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x14035c['error']||this['_localeService']['t'](_0x11f7ac(0x1e8))};}catch(_0x2fb086){return console[_0x11f7ac(0x19c)](_0x11f7ac(0x272),_0x2fb086),{'isValid':!0x0};}}};I=sn([f(0x0,_0x4b1aad(_0x1e0df8)),f(0x1,_0x4875db),f(0x2,_0x2f7b03),f(0x3,_0x26dd62),f(0x4,_0x56eea7),f(0x5,_0x4e3373),f(0x6,_0x4b1aad(_0x45c9fe)),f(0x7,_0x4b1aad(_0x2cafca)),f(0x8,_0x43456b),f(0x9,_0x4b1aad(_0x31c2e0))],I);const B={'id':'mcp-ui.command.openConfigPanel','type':_0x2a3463[_0x878abf(0x17e)],'handler':async(_0x2c9880,_0x57e616)=>(_0x2c9880[_0x878abf(0x1cd)](I)[_0x878abf(0x2c5)](),!0x0)};function pe(_0x4b0258,_0x22cffc){var _0x244e9d=_0x878abf;switch(_0x4b0258){case _0x570910[_0x244e9d(0x23b)]:return'mcpStatus.disconnected';case _0x570910['CONNECTING']:return'mcpStatus.connecting';case _0x570910[_0x244e9d(0x189)]:return _0x244e9d(0x23d);case _0x570910[_0x244e9d(0x1c7)]:switch(_0x22cffc){case _0x1b66ad[_0x244e9d(0x255)]:return'mcpStatus.invalidApiKey';case _0x1b66ad[_0x244e9d(0x234)]:return'mcpStatus.sessionOccupied';case _0x1b66ad[_0x244e9d(0x265)]:return'mcpStatus.networkError';case _0x1b66ad[_0x244e9d(0x26e)]:return _0x244e9d(0x20b);default:return _0x244e9d(0x19d);}case _0x570910[_0x244e9d(0x2bf)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function cn(_0x4821f8,_0x208157,_0x24de94){var _0x2b6b48=_0x878abf;const _0x443758=pe(_0x4821f8,_0x208157),_0x17a01a=_0x24de94['t'](_0x443758);return _0x4821f8===_0x570910[_0x2b6b48(0x23b)]&&_0x208157===_0x1b66ad['INVALID_API_KEY']?_0x17a01a+_0x2b6b48(0x199)+_0x24de94['t'](_0x2b6b48(0x2cf)):_0x4821f8===_0x570910[_0x2b6b48(0x189)]?''+_0x17a01a:_0x4821f8===_0x570910[_0x2b6b48(0x23b)]||_0x4821f8===_0x570910[_0x2b6b48(0x1c7)]?_0x17a01a+_0x2b6b48(0x199)+_0x24de94['t']('mcpStatus.clickToConnect'):_0x17a01a;}function an(_0x4943d2){var _0x5168f3=_0x878abf;switch(_0x4943d2){case _0x570910[_0x5168f3(0x189)]:return _0x5168f3(0x1f3);case _0x570910[_0x5168f3(0x215)]:case _0x570910[_0x5168f3(0x2bf)]:return _0x5168f3(0x273);case _0x570910[_0x5168f3(0x1c7)]:case _0x570910[_0x5168f3(0x23b)]:return _0x5168f3(0x175);default:return'univer-text-gray-500';}}function ln(_0x2e63af){var _0x4ee408=_0x878abf;const {status$:_0x1cd591,error$:_0x10cb1b,onConfigure:_0x36768e}=_0x2e63af,_0x5d0f6b=_0xd038f(_0x1cd591,_0x570910[_0x4ee408(0x23b)]),_0x11805a=_0xd038f(_0x10cb1b,_0x1b66ad['NONE']),_0x467841=_0x35481b(_0x2cafca),_0x5cc843=_0x5d0f6b===_0x570910[_0x4ee408(0x189)],_0x481641=_0x5d0f6b===_0x570910[_0x4ee408(0x215)]||_0x5d0f6b===_0x570910[_0x4ee408(0x2bf)],_0x23aa99=_0x467841['t'](pe(_0x5d0f6b,_0x11805a)),_0x24d5a0=cn(_0x5d0f6b,_0x11805a,_0x467841),_0x56b1af=an(_0x5d0f6b),_0x2a90fa=_0x5cc843?_0x1c1f24(fe,{}):_0x1c1f24(ge,{}),_0x20b5ca=_0x15cf96(()=>{_0x36768e&&_0x36768e();},[_0x5cc843,_0x481641,_0x36768e]);function _0xfa6a08(){var _0x48f424=_0x4ee408;return _0x217c68(_0x48f424(0x1f7),{'className':_0xfa00fe(_0x48f424(0x1af),_0x36768e&&_0x48f424(0x29a)),'onClick':_0x36768e?_0x20b5ca:void 0x0,'children':[_0x1c1f24(_0x48f424(0x1f7),{'className':_0xfa00fe(_0x48f424(0x206),_0x56b1af),'children':_0x2a90fa}),_0x1c1f24(_0x48f424(0x1f7),{'className':_0x48f424(0x190),'children':_0x23aa99})]});}return _0x1c1f24(_0x4b795e,{'title':_0x24d5a0,'placement':_0x4ee408(0x2c1),'children':_0xfa6a08()});}var un=Object['getOwnPropertyDescriptor'],vn=(_0x5cf4a0,_0x4cc8f2,_0x42af5a,_0x39a77a)=>{for(var _0x168258=_0x39a77a>0x1?void 0x0:_0x39a77a?un(_0x4cc8f2,_0x42af5a):_0x4cc8f2,_0x5e9f01=_0x5cf4a0['length']-0x1,_0x4e90ac;_0x5e9f01>=0x0;_0x5e9f01--)(_0x4e90ac=_0x5cf4a0[_0x5e9f01])&&(_0x168258=_0x4e90ac(_0x168258)||_0x168258);return _0x168258;},j=(_0x5d2aa2,_0x3ef17c)=>(_0x360923,_0x5e58d5)=>_0x3ef17c(_0x360923,_0x5e58d5,_0x5d2aa2);let A=class extends _0x48cdac{constructor(_0x3aea58,_0x35c20b,_0x1b0184){var _0x2ca179=_0x878abf;super(),this['_injector']=_0x3aea58,this[_0x2ca179(0x25c)]=_0x35c20b,this[_0x2ca179(0x16e)]=_0x1b0184,this[_0x2ca179(0x25c)]['enableAutoConnect']=!0x1,this[_0x2ca179(0x182)]();}[_0x878abf(0x182)](){var _0x38d2f9=_0x878abf;this['disposeWithMe'](this[_0x38d2f9(0x16e)][_0x38d2f9(0x1a7)](_0x4b2d19[_0x38d2f9(0x2a7)],()=>_0x396a3d(dn({'status$':this[_0x38d2f9(0x25c)]['connectionStatus$'],'error$':this[_0x38d2f9(0x25c)][_0x38d2f9(0x24d)],'onConfigure':()=>this[_0x38d2f9(0x2b0)]()}),this[_0x38d2f9(0x1ce)])));}[_0x878abf(0x2b0)](){var _0x1d2cd3=_0x878abf;this[_0x1d2cd3(0x1ce)][_0x1d2cd3(0x1cd)](I)[_0x1d2cd3(0x2c5)]();}};A=vn([j(0x0,_0x4b1aad(_0x1e0df8)),j(0x1,_0x4b1aad(_0x31c2e0)),j(0x2,_0x4875db)],A);function _0x17e5(){var _0xb8ecee=['Click\x20to\x20connect\x20MCP','forEach','pluginName','on-line-icon_clip0_910_349','className','Error','mcpConfig.configInstructions','_mcpCoreConfig$','NETWORK_ERROR','isValid','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','配置参数:','_localStorageService','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','svg','_loadStoredApiKey','random','MAX_RETRIES_EXCEEDED','_handleConfigSave','hasOwnProperty','Success','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-text-yellow-500','translate(.97)','MCP\x20Connected','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','MCP:\x20网络错误','evenodd','1em','mcpConfig.validation.apiKeyRequired','entries','Invalid\x20configuration','Univer\x20AI\x20Console','univer-bg-green-500','attrs','_messageService','MCP:\x20会话被占用','{\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-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.connectionStatus.retrying','<API_KEY>','error','mcpConfig.validation.invalidConfig','mcpConfig.apiApplyInfo.title','MCP:\x20Network\x20Error','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcp-config-dialog','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置无效','extend','univer-space-y-2','_componentManager','tag','apply','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Retrying...','children','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','disposeWithMe','Failed\x20to\x20save\x20configuration','mcpConfig.saving','hover:univer-opacity-80','_configService','univer-flex\x20univer-items-center\x20univer-gap-2','univer.ai','univer-text-gray-400','getConfig','displayName','mcpConfig.description','mcpConfig.sessionIdDescription','mcpConfig.configParameters','会话ID','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcpConfig.note2','HEADER_MENU','prototype','需要\x20API\x20密钥才能连接','mcpConfig.configStepTitle','https://console.univer.plus','show','Copy\x20the\x20JSON\x20configuration\x20below','mcpConfig.authorizationDescription','点击连接\x20MCP','_handleConfigure','MCPConfigPanel','M5.21243\x2012.287L11.8791\x205.62036','replace','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','保存中...','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','连接中...','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-text-xs\x20univer-text-gray-500','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','mcp-ui.config','33024393NUTAmE','API\x20Key','RETRYING','MCP:\x20超出最大重试次数','bottom','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','Configuration\x20saved\x20successfully','defIds','showConfigPanel','http://www.w3.org/2000/svg','_initializeCommands','启用身份验证以获得安全连接','252857JWmWUp','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Disconnected','Univer\x20AI\x20控制台','string','call','mcpStatus.clickToConfigure','off-line-icon_clip0_910_343','Enable\x20authentication\x20for\x20secure\x20connections','NONE','OffLineIcon','propertyIsEnumerable','_registerComponent','MCP\x20连接失败','validateApiKey','_uiPartsService','CloseSmallSingle','path','registerCommand','将配置添加到您的\x20MCP\x20客户端设置文件中','_loading$','mcpServerUrl','univer-text-red-500','subscribeConfigValue$','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP\x20客户端配置','clipPath','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','会话当前被占用,请稍后再试','mcpConfig.title','COMMAND','_apiKey$','MCP\x20已断开','errorMessage','_initStatusComponent','Configuration\x20Notes:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','current','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.note1','配置更改将立即生效','CONNECTED','setItem','univer_session_id:','重连中...','已连接','_blank','assign','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-font-medium','mcpConfig.connectionStatus.failed','__setCustomHeaders','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','M0\x200H16V16H0z','您的\x20API\x20密钥将在此浏览器中本地存储','几秒钟内获取您的\x20API\x20密钥','网络连接错误,请检查您的网络连接','\x20-\x20','_initConfigSync','onStarting','warn','mcpStatus.failed','url(#off-line-icon_clip0_910_343)','35830ZfwYrc','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','setConfig','none','Enter\x20your\x20API\x20key','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','启用身份验证','Retrying...','registerComponent','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20Connecting...','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','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','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','MCP\x20状态未知','mcpConfig.connectionInfo','univer-flex\x20univer-cursor-pointer\x20univer-items-center','mcpConfig.apiApplyInfo.getStarted','_menuManagerService','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','label','univer-flex\x20univer-gap-3','MCP\x20已连接','univer-bg-blue-500','HelpSingle','MCP\x20重连中...','off-line-icon','7169312odMQmb','最大重试次数','url(#$1','next','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20密钥无效,请检查密钥是否正确','mcpConfig.connectionStatus.disconnected','Connected','Configuration\x20Steps:','removeItem','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','pre','FAILED','univer-text-sm\x20univer-font-medium','点击配置\x20MCP','mcpConfig.configStep2','univer-flex-shrink-0\x20univer-text-blue-500','mcpConfig.apiKeyPlaceholder','get','_injector','1061272xDwOWk','0\x200\x2017\x2016','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_localeService','Authorization:','mcpConfig.connectionError.sessionOccupied','mcp.apiKey','concat','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','API\x20密钥无效,请检查您的密钥后重试','value','API\x20密钥长度至少需要\x2010\x20位','保存配置','2872119obRdJz','MCP\x20Unknown\x20Status','\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','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','https://console.univer.ai','_config','univer-text-white','univer-bg-red-500','MCP\x20配置','配置\x20MCP\x20使用\x20AI\x20操作电子表格','重启您的\x20MCP\x20客户端以使配置生效','univer-space-y-3','mcpConfig.validation.invalidApiKey','Click\x20to\x20configure\x20MCP','idSuffix','univer-space-y-4','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','配置保存成功','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_logService','API\x20key\x20is\x20required','close','复制以下\x20JSON\x20配置','univer-text-green-500','trim','Enable\x20Authentication','open','div','univer-text-xs\x20univer-text-gray-600','mcpConfig.validation.apiKeyTooShort','includes','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univerjs-icon\x20univerjs-icon-','_dialogService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','defineProperty','univer-text-blue-600','API\x20密钥不能为空','MCP\x20Disconnected','What\x20is\x20API\x20Key?','_initializeMenus','sessionId$','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP:\x20API\x20Key\x20Missing','showDeveloperTools','请输入您的\x20API\x20密钥','Close','mcpStatus.maxRetriesExceeded','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','url(#on-line-icon_clip0_910_349)','function','_commandService','xlink:href','indexOf','配置保存失败','register','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','CONNECTING','mcpConfig.apiApplyInfo.univerAiLabel','javascript:void(0)','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.apiKey','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','M5.21243\x205.62036L11.8791\x2012.287','MCP:\x20Max\x20Retries\x20Exceeded','mergeMenu','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.apiKeyHint','icon','univer-flex-shrink-0\x20univer-text-red-500','univer-text-sm\x20univer-text-gray-500','Max\x20Retries','univer-flex-1','mcpConfig.connectionError.maxRetriesExceeded','0\x200\x2016\x2016','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.plus','getOwnPropertyDescriptor','toString','fill','_mcpConnectionController','OnLineIcon','_validateConfig','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','SESSION_ID_OCCUPIED','mcpConfig.apiApplyInfo.description','Saving...','help-single','currentColor','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20连接中...','DISCONNECTED','Connecting...','mcpStatus.connected','8xWieEL','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','\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','connectionStatus$','subscribe','mcpConfig.connectionError.networkError','on-line-icon','7bTvigu','\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','getOwnPropertySymbols','span','round','univer-space-y-5','map','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','connectionError$','close-small-single','univer-min-w-0\x20univer-flex-1','push','mask','use','_config$','text','INVALID_API_KEY','univer-flex\x20univer-items-center\x20univer-gap-3','colorChannel1','defs','2904528gZFcmM','length','apiKey','_connectionController'];_0x17e5=function(){return _0xb8ecee;};return _0x17e5();}function dn(_0x3ce9e9){const {status$:_0x2d46e0,error$:_0x60f645,onConfigure:_0xad6e82}=_0x3ce9e9;return function(){return _0x1c1f24(ln,{'status$':_0x2d46e0,'error$':_0x60f645,'onConfigure':_0xad6e82});};}function gn(_0x24cb2d){var _0x2ba42c=_0x878abf;return{'id':B['id'],'type':_0x28d5f3['BUTTON'],'icon':'MenuIcon','title':_0x2ba42c(0x17d),'tooltip':'mcpConfig.title'};}const fn={[_0x448127['OTHERS']]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x878abf(0x22d)],mn=(_0x1fe2bb,_0x116f4a,_0x3885ab,_0x360812)=>{var _0x35aa5d=_0x878abf;for(var _0xb5f6ad=_0x360812>0x1?void 0x0:_0x360812?pn(_0x116f4a,_0x3885ab):_0x116f4a,_0x259496=_0x1fe2bb[_0x35aa5d(0x25a)]-0x1,_0x334345;_0x259496>=0x0;_0x259496--)(_0x334345=_0x1fe2bb[_0x259496])&&(_0xb5f6ad=_0x334345(_0xb5f6ad)||_0xb5f6ad);return _0xb5f6ad;},re=(_0x2f3571,_0x5a187c)=>(_0x2a482e,_0x3788d0)=>_0x5a187c(_0x2a482e,_0x3788d0,_0x2f3571);let M=class extends _0x48cdac{constructor(_0x2587b1,_0x1c9c96){var _0x305cc7=_0x878abf;super(),this[_0x305cc7(0x20f)]=_0x2587b1,this[_0x305cc7(0x1b1)]=_0x1c9c96,this[_0x305cc7(0x2c7)](),this[_0x305cc7(0x204)]();}[_0x878abf(0x2c7)](){var _0x3d003d=_0x878abf;[B][_0x3d003d(0x25e)](_0x33e194=>{var _0x4bf45d=_0x3d003d;this[_0x4bf45d(0x297)](this[_0x4bf45d(0x20f)][_0x4bf45d(0x171)](_0x33e194));});}[_0x878abf(0x204)](){var _0x111031=_0x878abf;this[_0x111031(0x1b1)][_0x111031(0x21d)](fn);}};M=mn([re(0x0,_0x2eadf3),re(0x1,_0x34d96d)],M);const On={'mcpStatus':{'disconnected':_0x878abf(0x202),'connecting':_0x878abf(0x1a9),'connected':_0x878abf(0x275),'failed':'MCP\x20Connection\x20Failed','retrying':_0x878abf(0x294),'unknown':_0x878abf(0x1dd),'missingApiKey':_0x878abf(0x207),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x878abf(0x289),'maxRetriesExceeded':_0x878abf(0x21c),'clickToConnect':_0x878abf(0x25d),'clickToConfigure':_0x878abf(0x1e9)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x878abf(0x2be),'apiKeyPlaceholder':_0x878abf(0x1a3),'apiKeyHint':_0x878abf(0x23f),'enableAuth':_0x878abf(0x1f5),'enableAuthHint':_0x878abf(0x2d1),'connectionInfo':_0x878abf(0x17b),'mcpClientConfig':_0x878abf(0x17b),'configInstructions':_0x878abf(0x293),'configStepTitle':_0x878abf(0x1c3),'configStep1':_0x878abf(0x2ad),'configStep2':_0x878abf(0x220),'configStep3':_0x878abf(0x1c5),'sessionId':'Session\x20ID','sessionIdDescription':_0x878abf(0x233),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x878abf(0x227),'save':'Save\x20Configuration','saving':_0x878abf(0x236),'note1':_0x878abf(0x1df),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x878abf(0x2c3),'configError':_0x878abf(0x298),'apiApplyInfo':{'title':_0x878abf(0x203),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x878abf(0x27d),'getStarted':_0x878abf(0x17a)},'validation':{'apiKeyRequired':_0x878abf(0x1f0),'apiKeyTooShort':_0x878abf(0x1b2),'invalidConfig':_0x878abf(0x27c),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x878abf(0x2cb),'connecting':_0x878abf(0x23c),'connected':_0x878abf(0x1c2),'failed':'Connection\x20Failed','retrying':_0x878abf(0x1a6)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x878abf(0x1bf),'networkError':_0x878abf(0x1ee),'maxRetriesExceeded':_0x878abf(0x184)}}},kn={'mcpStatus':{'disconnected':_0x878abf(0x180),'connecting':_0x878abf(0x23a),'connected':_0x878abf(0x1b6),'failed':_0x878abf(0x16c),'retrying':_0x878abf(0x1b9),'unknown':_0x878abf(0x1ad),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':'MCP:\x20无效的\x20API\x20密钥','sessionOccupied':_0x878abf(0x281),'networkError':_0x878abf(0x277),'maxRetriesExceeded':_0x878abf(0x2c0),'clickToConnect':_0x878abf(0x2af),'clickToConfigure':_0x878abf(0x1c9)},'mcpConfig':{'title':_0x878abf(0x1e4),'description':_0x878abf(0x1e5),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x878abf(0x209),'apiKeyHint':_0x878abf(0x196),'enableAuth':_0x878abf(0x1a5),'enableAuthHint':_0x878abf(0x2c8),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x878abf(0x178),'configInstructions':_0x878abf(0x221),'configStepTitle':'配置步骤:','configStep1':_0x878abf(0x1f2),'configStep2':_0x878abf(0x172),'configStep3':_0x878abf(0x1e6),'sessionId':_0x878abf(0x2a4),'sessionIdDescription':_0x878abf(0x2a5),'authorizationDescription':_0x878abf(0x28c),'configParameters':_0x878abf(0x268),'maxRetries':_0x878abf(0x1bc),'save':_0x878abf(0x1db),'saving':_0x878abf(0x2b5),'note1':_0x878abf(0x188),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x878abf(0x1ed),'configError':_0x878abf(0x212),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x878abf(0x1a8),'univerAiLabel':_0x878abf(0x2cc),'getStarted':_0x878abf(0x197)},'validation':{'apiKeyRequired':_0x878abf(0x201),'apiKeyTooShort':_0x878abf(0x1da),'invalidConfig':_0x878abf(0x28d),'invalidApiKey':_0x878abf(0x1c0)},'connectionStatus':{'disconnected':'未连接','connecting':_0x878abf(0x2b7),'connected':_0x878abf(0x18d),'failed':'连接失败','retrying':_0x878abf(0x18c)},'connectionError':{'missingApiKey':_0x878abf(0x2a9),'invalidApiKey':_0x878abf(0x1d8),'sessionOccupied':_0x878abf(0x17c),'networkError':_0x878abf(0x198),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var hn=Object['defineProperty'],Cn=Object['getOwnPropertyDescriptor'],yn=(_0x4492ef,_0x1c8577,_0x25754b)=>_0x1c8577 in _0x4492ef?hn(_0x4492ef,_0x1c8577,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25754b}):_0x4492ef[_0x1c8577]=_0x25754b,_n=(_0x5e20bf,_0x2c63b0,_0x54ad43,_0x490e72)=>{for(var _0x2f1914=_0x490e72>0x1?void 0x0:_0x490e72?Cn(_0x2c63b0,_0x54ad43):_0x2c63b0,_0x20b03d=_0x5e20bf['length']-0x1,_0x298719;_0x20b03d>=0x0;_0x20b03d--)(_0x298719=_0x5e20bf[_0x20b03d])&&(_0x2f1914=_0x298719(_0x2f1914)||_0x2f1914);return _0x2f1914;},E=(_0x396045,_0x56f789)=>(_0x352955,_0x2c0527)=>_0x56f789(_0x352955,_0x2c0527,_0x396045),xn=(_0x417f6e,_0x4e46f9,_0x37e154)=>yn(_0x417f6e,_0x4e46f9+'',_0x37e154);let U=class extends _0x327c70{constructor(_0x22d514=ie,_0x67aeaf,_0x3ce164,_0xeb8462,_0x51164e,_0x41ccb9){var _0x545b50=_0x878abf;super(),this['_config']=_0x22d514,this[_0x545b50(0x1ce)]=_0x67aeaf,this['_configService']=_0x3ce164,this[_0x545b50(0x16e)]=_0xeb8462,this[_0x545b50(0x269)]=_0x51164e,this[_0x545b50(0x1d2)]=_0x41ccb9;const {..._0x3420ff}=_0x16c97e({},ie,this[_0x545b50(0x1e1)]);this[_0x545b50(0x29b)][_0x545b50(0x1a1)](L,_0x3420ff);}async[_0x878abf(0x19b)](){var _0x4d3f52=_0x878abf;const _0x1786e2=[[A],[I],[M]];this[_0x4d3f52(0x1ce)]['has'](_0x579005)||_0x1786e2[_0x4d3f52(0x250)]([_0x579005,{'useClass':_0x4077b7}]),_0x1786e2[_0x4d3f52(0x25e)](_0x2e5354=>this[_0x4d3f52(0x1ce)]['add'](_0x2e5354)),this[_0x4d3f52(0x1ce)][_0x4d3f52(0x1cd)](A),this[_0x4d3f52(0x1ce)][_0x4d3f52(0x1cd)](I),this[_0x4d3f52(0x1ce)][_0x4d3f52(0x1cd)](M);}};xn(U,_0x878abf(0x25f),'MCP_UI_PLUGIN'),U=_n([_0x38b54d(_0x4814df),E(0x1,_0x4b1aad(_0x1e0df8)),E(0x2,_0x2f7b03),E(0x3,_0x4875db),E(0x4,_0x26dd62),E(0x5,_0x4b1aad(_0x2cafca))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x3904(_0x52e0c0,_0xe99c49){const _0x2fcf3d=_0x2fcf();return _0x3904=function(_0x390482,_0x310d8f){_0x390482=_0x390482-0xe6;let _0x2fbe9f=_0x2fcf3d[_0x390482];return _0x2fbe9f;},_0x3904(_0x52e0c0,_0xe99c49);}const _0x331ca8=_0x3904;(function(_0x103aa,_0x4579b7){const _0x3667ff=_0x3904,_0x51aa0f=_0x103aa();while(!![]){try{const _0x87a6d0=-parseInt(_0x3667ff(0xf3))/0x1+-parseInt(_0x3667ff(0x100))/0x2+-parseInt(_0x3667ff(0xf4))/0x3+parseInt(_0x3667ff(0xed))/0x4+parseInt(_0x3667ff(0xfc))/0x5*(-parseInt(_0x3667ff(0xfb))/0x6)+-parseInt(_0x3667ff(0xfa))/0x7+parseInt(_0x3667ff(0xf5))/0x8;if(_0x87a6d0===_0x4579b7)break;else _0x51aa0f['push'](_0x51aa0f['shift']());}catch(_0x248086){_0x51aa0f['push'](_0x51aa0f['shift']());}}}(_0x2fcf,0xb3363));function _0x2fcf(){const _0x2aec7c=['API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Retrying...','Configuration\x20saved\x20successfully','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connected','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20Occupied','Saving...','Enter\x20your\x20API\x20key','Invalid\x20configuration','API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','4067204PVyHKK','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','API\x20key\x20is\x20required','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','4744aJLeJc','3391272jdEbxb','18924624ArZJHU','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20Authentication','MCP:\x20API\x20Key\x20Missing','MCP\x20Connection\x20Failed','1733354mTVQUB','6qvPbEr','933265JZkumf','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required\x20to\x20connect','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','2157770mAEyau','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Max\x20Retries'];_0x2fcf=function(){return _0x2aec7c;};return _0x2fcf();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x331ca8(0xf1),'connected':_0x331ca8(0x10d),'failed':_0x331ca8(0xf9),'retrying':_0x331ca8(0x109),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x331ca8(0xf8),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x331ca8(0xe6),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x331ca8(0x110),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x331ca8(0xef),'description':_0x331ca8(0xeb),'apiKey':_0x331ca8(0xea),'apiKeyPlaceholder':_0x331ca8(0xe8),'apiKeyHint':_0x331ca8(0x10c),'enableAuth':_0x331ca8(0xf7),'enableAuthHint':_0x331ca8(0xf2),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x331ca8(0x106),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x331ca8(0xfd),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x331ca8(0xff),'sessionId':'Session\x20ID','sessionIdDescription':_0x331ca8(0xf6),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x331ca8(0x107),'save':'Save\x20Configuration','saving':_0x331ca8(0xe7),'note1':_0x331ca8(0x101),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x331ca8(0x10a),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x331ca8(0x104),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x331ca8(0x105)},'validation':{'apiKeyRequired':_0x331ca8(0xf0),'apiKeyTooShort':_0x331ca8(0x108),'invalidConfig':_0x331ca8(0xe9),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x331ca8(0x103),'connected':_0x331ca8(0x10b),'failed':_0x331ca8(0x10f),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x331ca8(0xfe),'invalidApiKey':_0x331ca8(0x102),'sessionOccupied':_0x331ca8(0x10e),'networkError':_0x331ca8(0xec),'maxRetriesExceeded':_0x331ca8(0xee)}}},n=e;export{n as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x94808a=_0x1d03;function _0x1d03(_0x2ab642,_0x2f19c9){const _0x3eb1f7=_0x3eb1();return _0x1d03=function(_0x1d034f,_0x918170){_0x1d034f=_0x1d034f-0x11a;let _0x43e7e5=_0x3eb1f7[_0x1d034f];return _0x43e7e5;},_0x1d03(_0x2ab642,_0x2f19c9);}(function(_0x3db982,_0x5bde8a){const _0x21b8bb=_0x1d03,_0x519455=_0x3db982();while(!![]){try{const _0x28fcfe=-parseInt(_0x21b8bb(0x129))/0x1*(parseInt(_0x21b8bb(0x134))/0x2)+-parseInt(_0x21b8bb(0x14f))/0x3*(parseInt(_0x21b8bb(0x141))/0x4)+-parseInt(_0x21b8bb(0x146))/0x5+-parseInt(_0x21b8bb(0x11d))/0x6+parseInt(_0x21b8bb(0x127))/0x7*(parseInt(_0x21b8bb(0x13a))/0x8)+parseInt(_0x21b8bb(0x128))/0x9+-parseInt(_0x21b8bb(0x133))/0xa*(-parseInt(_0x21b8bb(0x148))/0xb);if(_0x28fcfe===_0x5bde8a)break;else _0x519455['push'](_0x519455['shift']());}catch(_0x2d2aa0){_0x519455['push'](_0x519455['shift']());}}}(_0x3eb1,0x447a8));const e={'mcpStatus':{'disconnected':_0x94808a(0x12e),'connecting':_0x94808a(0x131),'connected':_0x94808a(0x12b),'failed':'MCP\x20Connection\x20Failed','retrying':_0x94808a(0x12d),'unknown':_0x94808a(0x14e),'missingApiKey':_0x94808a(0x14c),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x94808a(0x126),'networkError':_0x94808a(0x14b),'maxRetriesExceeded':_0x94808a(0x11f),'clickToConnect':_0x94808a(0x13f),'clickToConfigure':_0x94808a(0x11b)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x94808a(0x137),'apiKey':_0x94808a(0x13d),'apiKeyPlaceholder':_0x94808a(0x140),'apiKeyHint':_0x94808a(0x144),'enableAuth':_0x94808a(0x124),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x94808a(0x135),'mcpClientConfig':_0x94808a(0x135),'configInstructions':_0x94808a(0x13c),'configStepTitle':_0x94808a(0x151),'configStep1':_0x94808a(0x143),'configStep2':_0x94808a(0x11c),'configStep3':_0x94808a(0x150),'sessionId':_0x94808a(0x139),'sessionIdDescription':_0x94808a(0x120),'authorizationDescription':_0x94808a(0x142),'configParameters':_0x94808a(0x136),'maxRetries':_0x94808a(0x123),'save':_0x94808a(0x147),'saving':_0x94808a(0x13b),'note1':_0x94808a(0x14a),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x94808a(0x145),'configError':_0x94808a(0x132),'apiApplyInfo':{'title':_0x94808a(0x12c),'description':_0x94808a(0x149),'univerAiLabel':_0x94808a(0x122),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x94808a(0x121),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x94808a(0x12f)},'connectionStatus':{'disconnected':_0x94808a(0x130),'connecting':_0x94808a(0x125),'connected':_0x94808a(0x11a),'failed':_0x94808a(0x14d),'retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x94808a(0x13e),'sessionOccupied':_0x94808a(0x138),'networkError':_0x94808a(0x11e),'maxRetriesExceeded':_0x94808a(0x12a)}}};export{e as default};function _0x3eb1(){const _0x36fa93=['MCP\x20Unknown\x20Status','15mGpqzG','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Steps:','Connected','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','3036936VlTEwM','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Univer\x20AI\x20Console','Max\x20Retries','Enable\x20Authentication','Connecting...','MCP:\x20Session\x20Occupied','7TMsbyW','2821023RcnHaP','535793bRbpfb','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connected','What\x20is\x20API\x20Key?','MCP\x20Retrying...','MCP\x20Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','MCP\x20Connecting...','Failed\x20to\x20save\x20configuration','10YJeHkE','2wltxin','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Session\x20ID','3490232gwIPAG','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Click\x20to\x20connect\x20MCP','Enter\x20your\x20API\x20key','133324BYIPfp','API\x20key\x20with\x20Bearer\x20prefix.','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','2283605xIPjZM','Save\x20Configuration','13156957gZYVwV','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\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Network\x20Error','MCP:\x20API\x20Key\x20Missing','Connection\x20Failed'];_0x3eb1=function(){return _0x36fa93;};return _0x3eb1();}
|