@univerjs-pro/mcp-ui 0.10.13-nightly.202510290902 → 0.10.14-nightly.202511031023

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.
Files changed (45) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/ca-ES.js +1 -1
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/es-ES.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ko-KR.js +1 -1
  41. package/lib/umd/locale/ru-RU.js +1 -1
  42. package/lib/umd/locale/vi-VN.js +1 -1
  43. package/lib/umd/locale/zh-CN.js +1 -1
  44. package/lib/umd/locale/zh-TW.js +1 -1
  45. package/package.json +7 -7
@@ -1 +1 @@
1
- function _0x52d5(_0x46339e,_0x15ec56){const _0xfeaa4a=_0xfeaa();return _0x52d5=function(_0x52d501,_0x1d3715){_0x52d501=_0x52d501-0x1a5;let _0x4783d1=_0xfeaa4a[_0x52d501];return _0x4783d1;},_0x52d5(_0x46339e,_0x15ec56);}const _0x103610=_0x52d5;(function(_0xdca3a8,_0x312792){const _0x79699e=_0x52d5,_0x3c09a5=_0xdca3a8();while(!![]){try{const _0x56c37f=-parseInt(_0x79699e(0x1cb))/0x1*(-parseInt(_0x79699e(0x1ab))/0x2)+-parseInt(_0x79699e(0x1bf))/0x3+parseInt(_0x79699e(0x1a8))/0x4+parseInt(_0x79699e(0x1ac))/0x5+parseInt(_0x79699e(0x1b5))/0x6*(-parseInt(_0x79699e(0x1a9))/0x7)+-parseInt(_0x79699e(0x1a6))/0x8+-parseInt(_0x79699e(0x1ad))/0x9*(-parseInt(_0x79699e(0x1b3))/0xa);if(_0x56c37f===_0x312792)break;else _0x3c09a5['push'](_0x3c09a5['shift']());}catch(_0x4391bf){_0x3c09a5['push'](_0x3c09a5['shift']());}}}(_0xfeaa,0xa234d));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x103610(0x1c1),'connected':_0x103610(0x1c8),'failed':_0x103610(0x1b7),'retrying':_0x103610(0x1d2),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x103610(0x1c3),'maxRetriesExceeded':_0x103610(0x1a5),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x103610(0x1c7)},'mcpConfig':{'title':_0x103610(0x1bd),'description':_0x103610(0x1ae),'apiKey':_0x103610(0x1cd),'apiKeyPlaceholder':_0x103610(0x1bb),'apiKeyHint':_0x103610(0x1b1),'enableAuth':_0x103610(0x1c5),'enableAuthHint':_0x103610(0x1cf),'connectionInfo':_0x103610(0x1bc),'mcpClientConfig':_0x103610(0x1bc),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x103610(0x1c4),'configStep2':_0x103610(0x1d0),'configStep3':_0x103610(0x1d4),'sessionId':_0x103610(0x1c6),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x103610(0x1b4),'maxRetries':_0x103610(0x1c9),'save':_0x103610(0x1a7),'saving':_0x103610(0x1b2),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x103610(0x1ca),'configSaved':_0x103610(0x1b6),'configError':_0x103610(0x1c0),'apiApplyInfo':{'title':_0x103610(0x1c2),'description':_0x103610(0x1aa),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x103610(0x1af)},'validation':{'apiKeyRequired':_0x103610(0x1cc),'apiKeyTooShort':_0x103610(0x1b0),'invalidConfig':_0x103610(0x1d1),'invalidApiKey':_0x103610(0x1b9)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x103610(0x1ba),'failed':'Connection\x20Failed','retrying':_0x103610(0x1be)},'connectionError':{'unauthorized':_0x103610(0x1ce),'sessionOccupied':_0x103610(0x1b8),'networkError':_0x103610(0x1d3),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};function _0xfeaa(){const _0x53f3ea=['Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connected','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','MCP\x20Configuration','Retrying...','862950hARRTx','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20Authentication','Session\x20ID','Click\x20to\x20configure\x20MCP','MCP\x20Connected','Max\x20Retries','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','4979mXHZLk','API\x20key\x20is\x20required','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Invalid\x20configuration','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','9021792aMOlvu','Save\x20Configuration','4622084rRAlKU','6927907dgkcNQ','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','84cENzJw','683165oeWBDQ','9HLCmrR','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','15682000DEXDQZ','Configuration\x20Parameters:','6ZNaqvL','Configuration\x20saved\x20successfully','MCP\x20Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0xfeaa=function(){return _0x53f3ea;};return _0xfeaa();}
1
+ const _0x2505e2=_0x5d5e;function _0x5d5e(_0x464f7b,_0x5796d1){const _0x48db89=_0x48db();return _0x5d5e=function(_0x5d5e3b,_0x15f673){_0x5d5e3b=_0x5d5e3b-0x1c0;let _0x12607d=_0x48db89[_0x5d5e3b];return _0x12607d;},_0x5d5e(_0x464f7b,_0x5796d1);}(function(_0x5f1d37,_0x13d7e7){const _0xaadc30=_0x5d5e,_0x514765=_0x5f1d37();while(!![]){try{const _0x597cc8=parseInt(_0xaadc30(0x1c7))/0x1+-parseInt(_0xaadc30(0x1ed))/0x2+-parseInt(_0xaadc30(0x1d0))/0x3+-parseInt(_0xaadc30(0x1d8))/0x4+parseInt(_0xaadc30(0x1ea))/0x5+-parseInt(_0xaadc30(0x1d1))/0x6*(-parseInt(_0xaadc30(0x1ec))/0x7)+-parseInt(_0xaadc30(0x1d7))/0x8;if(_0x597cc8===_0x13d7e7)break;else _0x514765['push'](_0x514765['shift']());}catch(_0x4cd0e2){_0x514765['push'](_0x514765['shift']());}}}(_0x48db,0xed276));function _0x48db(){const _0x12b48c=['MCP\x20Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Steps:','MCP:\x20Max\x20Retries\x20Exceeded','Connection\x20Failed','MCP\x20Connected','MCP:\x20Network\x20Error','4220892OtdCwt','3808446EtEzqI','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','8883408JgorUU','965432vTPmdX','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connecting...','Connecting...','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','Click\x20to\x20connect\x20MCP','Enter\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key','Configuration\x20Parameters:','Session\x20ID','1792220tihYqU','MCP\x20Client\x20Configuration','21xjUqZs','419568zPnSkP','MCP\x20Unknown\x20Status','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20Authentication','MCP\x20Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20saved\x20successfully','1677247fRKCeM'];_0x48db=function(){return _0x12b48c;};return _0x48db();}const e={'mcpStatus':{'disconnected':_0x2505e2(0x1c1),'connecting':_0x2505e2(0x1dd),'connected':_0x2505e2(0x1ce),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2505e2(0x1c8),'unknown':_0x2505e2(0x1ee),'unauthorized':_0x2505e2(0x1df),'sessionOccupied':_0x2505e2(0x1ca),'networkError':_0x2505e2(0x1cf),'maxRetriesExceeded':_0x2505e2(0x1cc),'clickToConnect':_0x2505e2(0x1e2),'clickToConfigure':_0x2505e2(0x1f0)},'mcpConfig':{'title':_0x2505e2(0x1d5),'description':_0x2505e2(0x1e0),'apiKey':_0x2505e2(0x1e7),'apiKeyPlaceholder':_0x2505e2(0x1e3),'apiKeyHint':_0x2505e2(0x1c2),'enableAuth':_0x2505e2(0x1c0),'enableAuthHint':_0x2505e2(0x1d6),'connectionInfo':_0x2505e2(0x1eb),'mcpClientConfig':_0x2505e2(0x1eb),'configInstructions':_0x2505e2(0x1c9),'configStepTitle':_0x2505e2(0x1cb),'configStep1':_0x2505e2(0x1f1),'configStep2':_0x2505e2(0x1d2),'configStep3':_0x2505e2(0x1e4),'sessionId':_0x2505e2(0x1e9),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2505e2(0x1c5),'configParameters':_0x2505e2(0x1e8),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x2505e2(0x1da),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2505e2(0x1d3),'configSaved':_0x2505e2(0x1c6),'configError':_0x2505e2(0x1e5),'apiApplyInfo':{'title':_0x2505e2(0x1db),'description':_0x2505e2(0x1c4),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2505e2(0x1c3)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2505e2(0x1d9),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2505e2(0x1ef)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2505e2(0x1de),'connected':_0x2505e2(0x1d4),'failed':_0x2505e2(0x1cd),'retrying':_0x2505e2(0x1e1)},'connectionError':{'unauthorized':_0x2505e2(0x1e6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2505e2(0x1dc)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x4a15a1=_0x54f4;(function(_0x46e138,_0x57196e){const _0x320716=_0x54f4,_0x118ea4=_0x46e138();while(!![]){try{const _0x4e6c52=-parseInt(_0x320716(0x16b))/0x1*(-parseInt(_0x320716(0x180))/0x2)+parseInt(_0x320716(0x172))/0x3*(-parseInt(_0x320716(0x176))/0x4)+-parseInt(_0x320716(0x171))/0x5*(-parseInt(_0x320716(0x164))/0x6)+parseInt(_0x320716(0x168))/0x7+parseInt(_0x320716(0x16c))/0x8+-parseInt(_0x320716(0x155))/0x9+-parseInt(_0x320716(0x17c))/0xa;if(_0x4e6c52===_0x57196e)break;else _0x118ea4['push'](_0x118ea4['shift']());}catch(_0x367607){_0x118ea4['push'](_0x118ea4['shift']());}}}(_0x522f,0x87d4e));const e={'mcpStatus':{'disconnected':_0x4a15a1(0x152),'connecting':_0x4a15a1(0x167),'connected':_0x4a15a1(0x17a),'failed':_0x4a15a1(0x161),'retrying':_0x4a15a1(0x156),'unknown':_0x4a15a1(0x160),'unauthorized':_0x4a15a1(0x16f),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4a15a1(0x179),'clickToConnect':_0x4a15a1(0x163),'clickToConfigure':_0x4a15a1(0x17b)},'mcpConfig':{'title':_0x4a15a1(0x151),'description':_0x4a15a1(0x15f),'apiKey':_0x4a15a1(0x153),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4a15a1(0x16d),'enableAuth':_0x4a15a1(0x173),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4a15a1(0x15d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4a15a1(0x15b),'configStepTitle':_0x4a15a1(0x159),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4a15a1(0x174),'sessionId':_0x4a15a1(0x178),'sessionIdDescription':_0x4a15a1(0x170),'authorizationDescription':_0x4a15a1(0x165),'configParameters':_0x4a15a1(0x16a),'maxRetries':_0x4a15a1(0x175),'save':_0x4a15a1(0x166),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x4a15a1(0x15a),'apiApplyInfo':{'title':_0x4a15a1(0x154),'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':_0x4a15a1(0x162),'getStarted':_0x4a15a1(0x15c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4a15a1(0x17e),'invalidConfig':_0x4a15a1(0x157),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4a15a1(0x177),'connected':'Connected','failed':_0x4a15a1(0x158),'retrying':_0x4a15a1(0x17f)},'connectionError':{'unauthorized':_0x4a15a1(0x16e),'sessionOccupied':_0x4a15a1(0x17d),'networkError':_0x4a15a1(0x15e),'maxRetriesExceeded':_0x4a15a1(0x169)}}},n=e;function _0x522f(){const _0x92da18=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','554090MmpkWK','4824FbIvsB','Enable\x20Authentication','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','1684efiWwO','Connecting...','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connected','Click\x20to\x20configure\x20MCP','2160800jIhelz','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','712778dcskLQ','MCP\x20Configuration','MCP\x20Disconnected','API\x20Key','What\x20is\x20API\x20Key?','8329851lQsNvw','MCP\x20Retrying...','Invalid\x20configuration','Connection\x20Failed','Configuration\x20Steps:','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Unknown\x20Status','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','6yyCYHY','API\x20key\x20with\x20Bearer\x20prefix.','Save\x20Configuration','MCP\x20Connecting...','3892623iLFydZ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','3ccyifO','5111032rOvNwt','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x522f=function(){return _0x92da18;};return _0x522f();}function _0x54f4(_0x537e2b,_0xe7ad6d){const _0x522fcf=_0x522f();return _0x54f4=function(_0x54f4ea,_0x3e48c6){_0x54f4ea=_0x54f4ea-0x151;let _0x4562ad=_0x522fcf[_0x54f4ea];return _0x4562ad;},_0x54f4(_0x537e2b,_0xe7ad6d);}export{n as default};
1
+ const _0xa66963=_0xa22b;function _0xa22b(_0x274a83,_0x57a045){const _0x611607=_0x6116();return _0xa22b=function(_0xa22b3c,_0x59baa7){_0xa22b3c=_0xa22b3c-0xd0;let _0xf09309=_0x611607[_0xa22b3c];return _0xf09309;},_0xa22b(_0x274a83,_0x57a045);}(function(_0x2a6420,_0x29b62d){const _0x326efc=_0xa22b,_0x757d16=_0x2a6420();while(!![]){try{const _0x36b513=parseInt(_0x326efc(0xf5))/0x1+-parseInt(_0x326efc(0xdf))/0x2+parseInt(_0x326efc(0xf2))/0x3+parseInt(_0x326efc(0xe9))/0x4+parseInt(_0x326efc(0xf6))/0x5+parseInt(_0x326efc(0xde))/0x6+-parseInt(_0x326efc(0xe4))/0x7;if(_0x36b513===_0x29b62d)break;else _0x757d16['push'](_0x757d16['shift']());}catch(_0x575aed){_0x757d16['push'](_0x757d16['shift']());}}}(_0x6116,0xa9846));function _0x6116(){const _0x11e80b=['Configuration\x20Steps:','MCP\x20Connected','MCP\x20Connecting...','4110312CcnJMN','1068988aXvrVH','Click\x20to\x20connect\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','Connection\x20Failed','10882879BfqCeK','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','5102676zxQQmW','Configuration\x20saved\x20successfully','Session\x20ID','Connected','Configuration\x20Parameters:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','MCP:\x20Unauthorized','MCP:\x20Session\x20ID\x20Occupied','104055IqAuqR','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','477108XICQgV','1555095fYQgyL','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','Connecting...','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','API\x20Key','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Disconnected','Enter\x20your\x20API\x20key','MCP\x20Retrying...'];_0x6116=function(){return _0x11e80b;};return _0x6116();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0xa66963(0xdd),'connected':_0xa66963(0xdc),'failed':_0xa66963(0xd4),'retrying':_0xa66963(0xda),'unknown':_0xa66963(0xd6),'unauthorized':_0xa66963(0xf0),'sessionOccupied':_0xa66963(0xf1),'networkError':_0xa66963(0xe8),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0xa66963(0xe0),'clickToConfigure':_0xa66963(0xfb)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xa66963(0xf3),'apiKey':_0xa66963(0xd1),'apiKeyPlaceholder':_0xa66963(0xd9),'apiKeyHint':_0xa66963(0xfa),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xa66963(0xfc),'connectionInfo':_0xa66963(0xe6),'mcpClientConfig':_0xa66963(0xe6),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xa66963(0xdb),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0xa66963(0xf9),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xa66963(0xeb),'sessionIdDescription':_0xa66963(0x100),'authorizationDescription':_0xa66963(0xd2),'configParameters':_0xa66963(0xed),'maxRetries':_0xa66963(0xff),'save':'Save\x20Configuration','saving':_0xa66963(0xe2),'note1':_0xa66963(0xf4),'note2':_0xa66963(0xf7),'configSaved':_0xa66963(0xea),'configError':_0xa66963(0xd5),'apiApplyInfo':{'title':_0xa66963(0xef),'description':_0xa66963(0xe5),'univerAiLabel':_0xa66963(0xfd),'getStarted':_0xa66963(0xe1)},'validation':{'apiKeyRequired':_0xa66963(0xd3),'apiKeyTooShort':_0xa66963(0xf8),'invalidConfig':_0xa66963(0xd0),'invalidApiKey':_0xa66963(0xe7)},'connectionStatus':{'disconnected':_0xa66963(0xd8),'connecting':_0xa66963(0xfe),'connected':_0xa66963(0xec),'failed':_0xa66963(0xe3),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0xa66963(0xee),'networkError':_0xa66963(0xd7),'maxRetriesExceeded':_0xa66963(0x101)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x598397=_0x5ab0;(function(_0x5ad87f,_0x302073){const _0x16967e=_0x5ab0,_0x1c02a8=_0x5ad87f();while(!![]){try{const _0x2aa917=-parseInt(_0x16967e(0x1ff))/0x1+parseInt(_0x16967e(0x210))/0x2*(parseInt(_0x16967e(0x1ea))/0x3)+-parseInt(_0x16967e(0x1f4))/0x4+parseInt(_0x16967e(0x203))/0x5*(parseInt(_0x16967e(0x206))/0x6)+-parseInt(_0x16967e(0x201))/0x7+parseInt(_0x16967e(0x1fb))/0x8+-parseInt(_0x16967e(0x1e6))/0x9;if(_0x2aa917===_0x302073)break;else _0x1c02a8['push'](_0x1c02a8['shift']());}catch(_0x338f8d){_0x1c02a8['push'](_0x1c02a8['shift']());}}}(_0x37d2,0xd02a9));function _0x5ab0(_0x519d36,_0x3ce3e0){const _0x37d204=_0x37d2();return _0x5ab0=function(_0x5ab01b,_0xa72818){_0x5ab01b=_0x5ab01b-0x1e5;let _0x5ac11a=_0x37d204[_0x5ab01b];return _0x5ac11a;},_0x5ab0(_0x519d36,_0x3ce3e0);}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x598397(0x1e7),'connected':_0x598397(0x20f),'failed':_0x598397(0x1ec),'retrying':'MCP\x20重连中...','unknown':_0x598397(0x1f2),'unauthorized':_0x598397(0x1ee),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x598397(0x1ef),'maxRetriesExceeded':_0x598397(0x207),'clickToConnect':_0x598397(0x214),'clickToConfigure':_0x598397(0x1fa)},'mcpConfig':{'title':_0x598397(0x1f9),'description':_0x598397(0x1f8),'apiKey':_0x598397(0x202),'apiKeyPlaceholder':_0x598397(0x20d),'apiKeyHint':_0x598397(0x205),'enableAuth':_0x598397(0x204),'enableAuthHint':_0x598397(0x1f3),'connectionInfo':_0x598397(0x208),'mcpClientConfig':_0x598397(0x208),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x598397(0x212),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x598397(0x1f1),'configStep3':_0x598397(0x20e),'sessionId':_0x598397(0x1fd),'sessionIdDescription':_0x598397(0x20c),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x598397(0x209),'maxRetries':_0x598397(0x1fe),'save':_0x598397(0x1ed),'saving':_0x598397(0x1f6),'note1':_0x598397(0x211),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x598397(0x1f7),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x598397(0x1e8),'univerAiLabel':_0x598397(0x213),'getStarted':_0x598397(0x1eb)},'validation':{'apiKeyRequired':_0x598397(0x1e5),'apiKeyTooShort':_0x598397(0x1e9),'invalidConfig':_0x598397(0x1f0),'invalidApiKey':_0x598397(0x20a)},'connectionStatus':{'disconnected':_0x598397(0x1f5),'connecting':_0x598397(0x20b),'connected':'已连接','failed':_0x598397(0x200),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x598397(0x1fc),'maxRetriesExceeded':_0x598397(0x215)}}};export{e as default};function _0x37d2(){const _0x18d2d8=['MCP:\x20未授权','MCP:\x20网络错误','配置无效','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20状态未知','启用身份验证以获得安全连接','3844960lEAYRM','未连接','保存中...','配置保存失败','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20配置','点击配置\x20MCP','10472272UayYLP','网络连接错误,请检查您的网络连接','会话ID','最大重试次数','436268bZrEqO','连接失败','4288417IuuABX','API\x20密钥','10kLHCnP','启用身份验证','您的\x20API\x20密钥将在此浏览器中本地存储','2192688Tluaki','MCP:\x20超出最大重试次数','MCP\x20客户端配置','配置参数:','API\x20密钥无效,请检查密钥是否正确','连接中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','请输入您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20已连接','86tCwbgs','配置更改将立即生效','配置步骤:','Univer\x20AI\x20控制台','点击连接\x20MCP','超出最大重试次数,请稍后再试','API\x20密钥不能为空','4146615csORrK','MCP\x20连接中...','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20密钥长度至少需要\x2010\x20位','89553QUKfHX','几秒钟内获取您的\x20API\x20密钥','MCP\x20连接失败','保存配置'];_0x37d2=function(){return _0x18d2d8;};return _0x37d2();}
1
+ const _0x524205=_0x301a;(function(_0x14027b,_0x5dd8b8){const _0x9bf5ec=_0x301a,_0x31d2a5=_0x14027b();while(!![]){try{const _0x1666fd=parseInt(_0x9bf5ec(0x1b5))/0x1*(-parseInt(_0x9bf5ec(0x1b7))/0x2)+-parseInt(_0x9bf5ec(0x1d2))/0x3*(parseInt(_0x9bf5ec(0x1cf))/0x4)+parseInt(_0x9bf5ec(0x1b9))/0x5*(parseInt(_0x9bf5ec(0x1d4))/0x6)+parseInt(_0x9bf5ec(0x1c8))/0x7*(-parseInt(_0x9bf5ec(0x1ce))/0x8)+-parseInt(_0x9bf5ec(0x1c5))/0x9*(-parseInt(_0x9bf5ec(0x1df))/0xa)+parseInt(_0x9bf5ec(0x1c7))/0xb*(parseInt(_0x9bf5ec(0x1bd))/0xc)+parseInt(_0x9bf5ec(0x1e4))/0xd;if(_0x1666fd===_0x5dd8b8)break;else _0x31d2a5['push'](_0x31d2a5['shift']());}catch(_0x2cc496){_0x31d2a5['push'](_0x31d2a5['shift']());}}}(_0x4d75,0x9395b));function _0x301a(_0x22b0a3,_0x44b911){const _0x4d75a7=_0x4d75();return _0x301a=function(_0x301a40,_0x1be818){_0x301a40=_0x301a40-0x1b2;let _0x2af575=_0x4d75a7[_0x301a40];return _0x2af575;},_0x301a(_0x22b0a3,_0x44b911);}const e={'mcpStatus':{'disconnected':_0x524205(0x1d8),'connecting':_0x524205(0x1c6),'connected':_0x524205(0x1de),'failed':_0x524205(0x1dd),'retrying':_0x524205(0x1e3),'unknown':'MCP\x20状态未知','unauthorized':_0x524205(0x1e2),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x524205(0x1bf),'maxRetriesExceeded':_0x524205(0x1dc),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x524205(0x1d6)},'mcpConfig':{'title':_0x524205(0x1b3),'description':_0x524205(0x1ca),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x524205(0x1ba),'apiKeyHint':_0x524205(0x1d9),'enableAuth':_0x524205(0x1be),'enableAuthHint':_0x524205(0x1d0),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x524205(0x1bc),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x524205(0x1b4),'configStep1':_0x524205(0x1d7),'configStep2':_0x524205(0x1c2),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x524205(0x1c1),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x524205(0x1c0),'configParameters':_0x524205(0x1db),'maxRetries':'最大重试次数','save':_0x524205(0x1b8),'saving':'保存中...','note1':_0x524205(0x1bb),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x524205(0x1c4),'configError':_0x524205(0x1b2),'apiApplyInfo':{'title':_0x524205(0x1d5),'description':_0x524205(0x1da),'univerAiLabel':_0x524205(0x1d3),'getStarted':_0x524205(0x1e0)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x524205(0x1cc),'invalidConfig':_0x524205(0x1cd),'invalidApiKey':_0x524205(0x1cb)},'connectionStatus':{'disconnected':_0x524205(0x1b6),'connecting':'连接中...','connected':_0x524205(0x1e1),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x524205(0x1c9),'sessionOccupied':_0x524205(0x1c3),'networkError':_0x524205(0x1d1),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x4d75(){const _0x1fd1c2=['Univer\x20AI\x20控制台','112038wdgNdE','什么是\x20API\x20密钥?','点击配置\x20MCP','复制以下\x20JSON\x20配置','MCP\x20已断开','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置参数:','MCP:\x20超出最大重试次数','MCP\x20连接失败','MCP\x20已连接','2740SeCHxH','几秒钟内获取您的\x20API\x20密钥','已连接','MCP:\x20未授权','MCP\x20重连中...','9164194vJIsTQ','配置保存失败','MCP\x20配置','配置步骤:','3lxJMCL','未连接','372854uNGTjM','保存配置','190wCtGKf','请输入您的\x20API\x20密钥','配置更改将立即生效','MCP\x20客户端配置','12UbBxYB','启用身份验证','MCP:\x20网络错误','带有\x20Bearer\x20前缀的\x20API\x20密钥。','会话ID','将配置添加到您的\x20MCP\x20客户端设置文件中','会话\x20ID\x20已被占用,请稍后再试','配置保存成功','1053WZCSzw','MCP\x20连接中...','8777868GhyRue','2197139FcPywV','权限验证失败,请检查您的\x20API\x20密钥','配置\x20MCP\x20使用\x20AI\x20操作电子表格','API\x20密钥无效,请检查密钥是否正确','API\x20密钥长度至少需要\x2010\x20位','配置无效','8dlMIGj','1022524dpNkwl','启用身份验证以获得安全连接','网络连接错误,请检查您的网络连接','9sGkUQQ'];_0x4d75=function(){return _0x1fd1c2;};return _0x4d75();}export{e as default};
@@ -1 +1 @@
1
- const _0x4333d0=_0x3c54;(function(_0x2d7fec,_0x410e8a){const _0x2eb44d=_0x3c54,_0x3122dd=_0x2d7fec();while(!![]){try{const _0x4706ab=-parseInt(_0x2eb44d(0x1ab))/0x1*(parseInt(_0x2eb44d(0x1c4))/0x2)+-parseInt(_0x2eb44d(0x1b2))/0x3+parseInt(_0x2eb44d(0x1b9))/0x4+-parseInt(_0x2eb44d(0x1b3))/0x5*(parseInt(_0x2eb44d(0x1a0))/0x6)+parseInt(_0x2eb44d(0x1bc))/0x7+parseInt(_0x2eb44d(0x1b5))/0x8*(parseInt(_0x2eb44d(0x1b6))/0x9)+parseInt(_0x2eb44d(0x1cd))/0xa;if(_0x4706ab===_0x410e8a)break;else _0x3122dd['push'](_0x3122dd['shift']());}catch(_0x3e5178){_0x3122dd['push'](_0x3122dd['shift']());}}}(_0x46ef,0xdd79e));function _0x3c54(_0x599c49,_0x218a3e){const _0x46efcf=_0x46ef();return _0x3c54=function(_0x3c54c5,_0x37cec9){_0x3c54c5=_0x3c54c5-0x19f;let _0x12b737=_0x46efcf[_0x3c54c5];return _0x12b737;},_0x3c54(_0x599c49,_0x218a3e);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4333d0(0x1bb),'failed':_0x4333d0(0x1a4),'retrying':_0x4333d0(0x1c9),'unknown':_0x4333d0(0x19f),'unauthorized':_0x4333d0(0x1bd),'sessionOccupied':_0x4333d0(0x1b7),'networkError':_0x4333d0(0x1ac),'maxRetriesExceeded':_0x4333d0(0x1c5),'clickToConnect':_0x4333d0(0x1a2),'clickToConfigure':_0x4333d0(0x1af)},'mcpConfig':{'title':_0x4333d0(0x1c6),'description':_0x4333d0(0x1b0),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4333d0(0x1c8),'apiKeyHint':_0x4333d0(0x1a6),'enableAuth':_0x4333d0(0x1cc),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4333d0(0x1ba),'mcpClientConfig':_0x4333d0(0x1ba),'configInstructions':_0x4333d0(0x1c3),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4333d0(0x1ca),'configStep2':_0x4333d0(0x1bf),'configStep3':_0x4333d0(0x1a5),'sessionId':'Session\x20ID','sessionIdDescription':_0x4333d0(0x1cb),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4333d0(0x1cf),'maxRetries':_0x4333d0(0x1a9),'save':_0x4333d0(0x1b4),'saving':'Saving...','note1':_0x4333d0(0x1b1),'note2':_0x4333d0(0x1be),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4333d0(0x1c2),'apiApplyInfo':{'title':_0x4333d0(0x1ad),'description':_0x4333d0(0x1a7),'univerAiLabel':_0x4333d0(0x1c1),'getStarted':_0x4333d0(0x1ae)},'validation':{'apiKeyRequired':_0x4333d0(0x1a1),'apiKeyTooShort':_0x4333d0(0x1aa),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4333d0(0x1a3)},'connectionStatus':{'disconnected':_0x4333d0(0x1c0),'connecting':'Connecting...','connected':_0x4333d0(0x1b8),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4333d0(0x1ce),'networkError':_0x4333d0(0x1a8),'maxRetriesExceeded':_0x4333d0(0x1c7)}}},n=e;export{n as default};function _0x46ef(){const _0x2e3742=['MCP\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20Authentication','40072670HFFxhS','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Parameters:','MCP\x20Unknown\x20Status','8334978unmvSc','API\x20key\x20is\x20required','Click\x20to\x20connect\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','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','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','31162AgvOiD','MCP:\x20Network\x20Error','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','4017081HWZcwg','5IIfbYU','Save\x20Configuration','44584SVGzBc','81HwdFVA','MCP:\x20Session\x20ID\x20Occupied','Connected','2053564CLoUGk','MCP\x20Client\x20Configuration','MCP\x20Connected','2395281ggBeBc','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','Univer\x20AI\x20Console','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','82qCaoNa','MCP:\x20Max\x20Retries\x20Exceeded'];_0x46ef=function(){return _0x2e3742;};return _0x46ef();}
1
+ function _0xfc7e(_0x2ad341,_0x40d969){const _0x4853ef=_0x4853();return _0xfc7e=function(_0xfc7e5f,_0x10b93f){_0xfc7e5f=_0xfc7e5f-0x1b7;let _0x2f9d8d=_0x4853ef[_0xfc7e5f];return _0x2f9d8d;},_0xfc7e(_0x2ad341,_0x40d969);}const _0x17e970=_0xfc7e;(function(_0x1a7841,_0x3c204c){const _0x30171e=_0xfc7e,_0x395431=_0x1a7841();while(!![]){try{const _0x14b554=parseInt(_0x30171e(0x1cc))/0x1+-parseInt(_0x30171e(0x1d2))/0x2*(parseInt(_0x30171e(0x1cf))/0x3)+parseInt(_0x30171e(0x1b8))/0x4+parseInt(_0x30171e(0x1e0))/0x5*(parseInt(_0x30171e(0x1d0))/0x6)+-parseInt(_0x30171e(0x1ba))/0x7*(-parseInt(_0x30171e(0x1e5))/0x8)+-parseInt(_0x30171e(0x1eb))/0x9*(parseInt(_0x30171e(0x1be))/0xa)+-parseInt(_0x30171e(0x1da))/0xb*(parseInt(_0x30171e(0x1bd))/0xc);if(_0x14b554===_0x3c204c)break;else _0x395431['push'](_0x395431['shift']());}catch(_0x19e355){_0x395431['push'](_0x395431['shift']());}}}(_0x4853,0x68cb6));const e={'mcpStatus':{'disconnected':_0x17e970(0x1cd),'connecting':_0x17e970(0x1c3),'connected':_0x17e970(0x1c4),'failed':_0x17e970(0x1d7),'retrying':_0x17e970(0x1dc),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x17e970(0x1ce),'sessionOccupied':_0x17e970(0x1d8),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x17e970(0x1e8),'clickToConnect':_0x17e970(0x1bf),'clickToConfigure':_0x17e970(0x1e4)},'mcpConfig':{'title':_0x17e970(0x1ec),'description':_0x17e970(0x1c0),'apiKey':_0x17e970(0x1c1),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x17e970(0x1e3),'enableAuth':_0x17e970(0x1d1),'enableAuthHint':_0x17e970(0x1d9),'connectionInfo':_0x17e970(0x1d4),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x17e970(0x1c8),'configStepTitle':_0x17e970(0x1bb),'configStep1':_0x17e970(0x1c2),'configStep2':_0x17e970(0x1d5),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x17e970(0x1ca),'sessionIdDescription':_0x17e970(0x1e9),'authorizationDescription':_0x17e970(0x1ed),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x17e970(0x1db),'saving':_0x17e970(0x1e6),'note1':_0x17e970(0x1cb),'note2':_0x17e970(0x1b7),'configSaved':_0x17e970(0x1de),'configError':_0x17e970(0x1bc),'apiApplyInfo':{'title':_0x17e970(0x1df),'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':_0x17e970(0x1e2),'getStarted':_0x17e970(0x1c9)},'validation':{'apiKeyRequired':_0x17e970(0x1d3),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x17e970(0x1c6),'invalidApiKey':_0x17e970(0x1dd)},'connectionStatus':{'disconnected':_0x17e970(0x1ea),'connecting':_0x17e970(0x1e1),'connected':_0x17e970(0x1b9),'failed':'Connection\x20Failed','retrying':_0x17e970(0x1c7)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x17e970(0x1e7),'networkError':_0x17e970(0x1c5),'maxRetriesExceeded':_0x17e970(0x1d6)}}},n=e;function _0x4853(){const _0x44cf79=['2690412pZxbVO','Connected','28049NOxWLy','Configuration\x20Steps:','Failed\x20to\x20save\x20configuration','2000808warLda','160350yliXlj','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','MCP\x20Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds','Session\x20ID','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','814582DGblCY','MCP\x20Disconnected','MCP:\x20Unauthorized','496359VGNXWV','4614lSpLUC','Enable\x20Authentication','6Rotczk','API\x20key\x20is\x20required','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','55oztUBQ','Save\x20Configuration','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','What\x20is\x20API\x20Key?','2605pLTSKV','Connecting...','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','1312dTwIFp','Saving...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','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.','Disconnected','441xoNxIY','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage'];_0x4853=function(){return _0x44cf79;};return _0x4853();}export{n as default};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x54f6(_0x234560,_0x2dd70a){const _0x5aa8be=_0x5aa8();return _0x54f6=function(_0x54f68e,_0x9d00e9){_0x54f68e=_0x54f68e-0x15d;let _0x2ba4e0=_0x5aa8be[_0x54f68e];return _0x2ba4e0;},_0x54f6(_0x234560,_0x2dd70a);}function _0x5aa8(){const _0x5dcae8=['Retrying...','Error','_loadStoredApiKey','substring','Saving...','_commandService','MCP\x20Configuration','WebSocketService','xlink:href','mcpStatus.unauthorized','API\x20密钥无效,请检查密钥是否正确','52293FHFCMH','1em','Input','onStarting','includes','trim','未连接','OTHERS','getCurrentConfig','mcpStatus.clickToConfigure','点击连接\x20MCP','重连中...','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','配置步骤:','Bearer\x20','_blank','fill','svg','push','复制以下\x20JSON\x20配置','98WmMWZe','displayName','NONE','99780GAxboa','API\x20密钥','UniverDesign','ComponentManager','univer-size-4','_initAutoConnect','children','Univer\x20AI\x20控制台','UniverProMcpUi','useObservable','showDeveloperTools','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2313bXudmK','mcpConfig.configSaved','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','noopener\x20noreferrer','mcpConfig.connectionError.networkError','Plugin','pluginName','CloseIcon','Configuration\x20Parameters:','registerCommand','超出最大重试次数,请稍后再试','enUS','MCP:\x20会话\x20ID\x20已被占用','getItem','bottom','Click\x20to\x20connect\x20MCP','IConfigService','next','univer-bg-gray-500','_componentManager','removeItem','stringify','RibbonStartGroup','univer-text-gray-500','DISCONNECTED','已连接','_createConfigPanelComponent','connectInjector','RETRYING','evenodd','_messageService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-space-y-4','mask','MCP\x20配置','Enable\x20authentication\x20for\x20secure\x20connections','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','M0\x200H16V16H0z','currentColor','_handleConfigure','disposeWithMe','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','text','Button','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','toString','registerComponent','BUTTON','mcpConfig.authorizationDescription','React','_injector','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcp-config-dialog','什么是\x20API\x20密钥?','apiKey','univer-shrink-0\x20univer-text-red-500','_mcpConnectionController','MCP\x20Connecting...','react/jsx-runtime','mcpConfig.connectionError.sessionOccupied','_initConfigSync','jsx','Univer\x20AI\x20Console','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','MCPConnectionController','mcpConfig.title','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-flex\x20univer-flex-wrap\x20univer-gap-2','网络连接错误,请检查您的网络连接','show','warn','@univerjs-pro/mcp','get','MCP\x20连接中...','getConfig','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','_initStatusComponent','univer_session_id:','url(#on-line-icon_clip0_910_349)','mcpConfig.connectionInfo','mcpConfig.apiKeyHint','string','defs','mcpConfig.save','配置更改将立即生效','API\x20Key','_logService','MCP\x20已连接','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','SESSION_ID_OCCUPIED','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Invalid\x20configuration','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','NETWORK_ERROR','off-line-icon','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','_localStorageService','toStringTag','defineProperty','DependentOn','mcpStatus.sessionOccupied','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','BehaviorSubject','12vKnjJC','MCP\x20客户端配置','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','has','MenuIcon','univer-text-gray-400','_apiKey$','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','connectionStatus$','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','@univerjs/core','_dialogService','@univerjs/design','rxjs','univer-mr-2\x20univer-flex\x20univer-text-xl','配置保存成功','FAILED','univer-space-y-2','useRef','mcpConfig.configError','univer-min-w-0\x20univer-flex-1','mcpConfig.apiKeyPlaceholder','assign','mcpConfig.note2','_initializeMenus','将配置添加到您的\x20MCP\x20客户端设置文件中','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.validation.invalidConfig','Enter\x20your\x20API\x20key','MCP\x20Connection\x20Failed','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCPConfigPanel','__setCustomHeaders','span','map','保存配置','0\x200\x2016\x2016','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','UniverIcon','mcp.apiKey','showConfigPanel','MCPConnectionStatus','clipPath','HEADER_MENU','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-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','https://mcp.univer.ai/mcp/?univer_session_id=','mcpStatus.connecting','MCPConnectionError','univer-text-blue-600','Injector','defIds','Module','button','_validateConfig','@univerjs/network','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_loading$','univer-flex\x20univer-items-start\x20univer-gap-2','MCPConnectionUIController','pre','HelpIcon','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-flex\x20univer-gap-3','ISocketService','_uiPartsService','univer-text-white','mcpConfig.apiKey','MAX_RETRIES_EXCEEDED','univer.plus','MCP\x20重连中...','mcpConfig.configStepTitle','univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-2','56BjLDuP','mcpServerUrl','univer-text-xs\x20univer-text-gray-500','univer-bg-blue-500','idSuffix','Max\x20Retries','配置参数:','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','on-line-icon_clip0_910_349','none','mergeMenu','将以下配置添加到您的\x20MCP\x20客户端设置中:','OffLineIcon','univer-flex\x20univer-items-center\x20univer-gap-3','几秒钟内获取您的\x20API\x20密钥','MCP:\x20未授权','round','div','length','_registerComponent','Enable\x20Authentication','mcpConfig.connectionError.maxRetriesExceeded','setConfig','http','_connectionController','MCP:\x20Max\x20Retries\x20Exceeded','UniverMCPUIPlugin','mcpConfig.connectionStatus.retrying','MCPConfigUIController','CommandType','连接失败','mcpConfig.connectionError.unauthorized','MCP_PLUGIN_CONFIG_KEY','MCP:\x20Network\x20Error','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','colorChannel1','mcpConfig.validation.apiKeyTooShort','会话ID','IMenuManagerService','请输入您的\x20API\x20密钥','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','连接中...','entries','启用身份验证以获得安全连接','MCPUIMenuController','UniverCore','MCP\x20连接失败','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','isValid','2532380WVBnmT','_localeService','保存中...','value','zhCN','Inject','univer-bg-red-500','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Tooltip','<API_KEY>','_handleConfigSave','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','off','sessionId$','help-icon','mcpConfig.connectionStatus.disconnected','mcpStatus.disconnected','univer-bg-green-500','Disposable','useDependency','276NNyFsW','subscribe','clsx','OpenMCPConfigPanelCommand','LocaleService','useCallback','MCPStatusDisplay','object','UniverNetwork','univer-font-medium','IUIPartsService','close','https://console.univer.ai','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','subscribeConfigValue$','url(#off-line-icon_clip0_910_343)','url(#$1','error','univer-text-sm\x20univer-text-gray-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','forEach','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','replace','_config$','path','univerjs-icon\x20univerjs-icon-','univer-shrink-0\x20univer-text-blue-500','MCP\x20状态未知','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','OnLineIcon','38134063ZbBApQ','mcpConfig.validation.apiKeyRequired','MessageType','univer-flex\x20univer-items-start\x20univer-gap-3','univer-flex\x20univer-items-center','ICommandService','MCP\x20已断开','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','您的\x20API\x20密钥安全存储在本地存储中','_mcpCoreConfig$','mcpConfig.configInstructions','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','CONNECTING','check-mark-icon','univer-space-y-5','mcpConfig.configStep1','_config','mcpStatus.clickToConnect','Failed\x20to\x20save\x20configuration','univer-space-y-3','Configuration\x20Notes:','MenuItemType','CheckMarkIcon','MCP\x20Unknown\x20Status','_configService','启用身份验证','translate(.97)','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','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','UniverProMcp','会话\x20ID\x20已被占用,请稍后再试','48710LAIoCB','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.apiApplyInfo.title','forwardRef','univer-text-red-500','connectionError$','您的\x20API\x20密钥将在此浏览器中本地存储','off-line-icon_clip0_910_343','mcpStatus.failed','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','createElement','jsxs','0\x200\x2017\x2016','exports','mcpConfig.validation.invalidApiKey','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Authorization:','Click\x20to\x20configure\x20MCP','current','tag','1280298MSGQIv','\x20-\x20','MCP:\x20Unauthorized','Save\x20Configuration','open','getOwnPropertyDescriptor','add','ILogService','MCP:\x20超出最大重试次数','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_initializeCommands','useState','_menuManagerService','BuiltInUIPart','MCP\x20Disconnected','validateApiKey','http://www.w3.org/2000/svg','UNAUTHORIZED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','symbol','808248JSdigB','CONNECTED','attrs'];_0x5aa8=function(){return _0x5dcae8;};return _0x5aa8();}(function(_0xe12dbf,_0x2e9233){const _0x3eab49=_0x54f6,_0x5951ec=_0xe12dbf();while(!![]){try{const _0x2259c=parseInt(_0x3eab49(0x2d1))/0x1+parseInt(_0x3eab49(0x177))/0x2*(parseInt(_0x3eab49(0x162))/0x3)+parseInt(_0x3eab49(0x26c))/0x4+-parseInt(_0x3eab49(0x17a))/0x5*(-parseInt(_0x3eab49(0x280))/0x6)+-parseInt(_0x3eab49(0x239))/0x7*(parseInt(_0x3eab49(0x2e5))/0x8)+-parseInt(_0x3eab49(0x186))/0x9*(-parseInt(_0x3eab49(0x2bd))/0xa)+-parseInt(_0x3eab49(0x29e))/0xb*(parseInt(_0x3eab49(0x1ef))/0xc);if(_0x2259c===_0x2e9233)break;else _0x5951ec['push'](_0x5951ec['shift']());}catch(_0x459d8a){_0x5951ec['push'](_0x5951ec['shift']());}}}(_0x5aa8,0xa1b52),function(_0x2e139e,_0x5248c0){const _0x4bbd0e=_0x54f6;typeof exports==_0x4bbd0e(0x287)&&typeof module<'u'?_0x5248c0(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define['amd']?define([_0x4bbd0e(0x2ca),_0x4bbd0e(0x1f9),_0x4bbd0e(0x1c1),_0x4bbd0e(0x1cf),_0x4bbd0e(0x1fb),'@univerjs/ui',_0x4bbd0e(0x1fc),'react',_0x4bbd0e(0x226)],_0x5248c0):(_0x2e139e=typeof globalThis<'u'?globalThis:_0x2e139e||self,_0x5248c0(_0x2e139e[_0x4bbd0e(0x182)]={},_0x2e139e[_0x4bbd0e(0x267)],_0x2e139e[_0x4bbd0e(0x1b8)],_0x2e139e[_0x4bbd0e(0x2bb)],_0x2e139e[_0x4bbd0e(0x17c)],_0x2e139e['UniverUi'],_0x2e139e[_0x4bbd0e(0x1fc)],_0x2e139e[_0x4bbd0e(0x1b8)],_0x2e139e[_0x4bbd0e(0x288)]));}(this,function(_0x36bc69,_0x3a1f97,_0x86ce95,_0x2046b4,_0x235a54,_0x145226,_0x3e976a,_0x42e53b,_0x36f150){'use strict';const _0x21bccd=_0x54f6;var _0x4a955a=Object[_0x21bccd(0x1ea)],_0x3f0316=(_0x1a2f62,_0xc94df0,_0x16bca5)=>_0xc94df0 in _0x1a2f62?_0x4a955a(_0x1a2f62,_0xc94df0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16bca5}):_0x1a2f62[_0xc94df0]=_0x16bca5,_0x150e10=(_0x2717cf,_0x2a9cdd,_0x4f749a)=>_0x3f0316(_0x2717cf,typeof _0x2a9cdd!=_0x21bccd(0x2e4)?_0x2a9cdd+'':_0x2a9cdd,_0x4f749a);function _0x4cad24({ref:_0x1b8b9d,..._0x6b0866}){const _0x11b9d0=_0x21bccd,{icon:_0x2f6ea4,id:_0x166fc1,className:_0x31a95b,extend:_0x4ee57d,..._0x2242c7}=_0x6b0866,_0x2b550b=(_0x11b9d0(0x299)+_0x166fc1+'\x20'+(_0x31a95b||''))['trim'](),_0x254b75=_0x42e53b[_0x11b9d0(0x201)]('_'+_0x48efc5());return _0x4eaaad(_0x2f6ea4,''+_0x166fc1,{'defIds':_0x2f6ea4[_0x11b9d0(0x222)],'idSuffix':_0x254b75[_0x11b9d0(0x2cf)]},{'ref':_0x1b8b9d,'className':_0x2b550b,..._0x2242c7},_0x4ee57d);}function _0x4eaaad(_0x58034f,_0x40cfbc,_0x6598fc,_0x28c7aa,_0x15df6f){const _0x2fff8c=_0x21bccd;return _0x42e53b[_0x2fff8c(0x2c7)](_0x58034f[_0x2fff8c(0x2d0)],{'key':_0x40cfbc,..._0x14c244(_0x58034f,_0x6598fc,_0x15df6f),..._0x28c7aa},(_0x2ae945(_0x58034f,_0x6598fc)[_0x2fff8c(0x180)]||[])[_0x2fff8c(0x211)]((_0x39f219,_0x2c460c)=>_0x4eaaad(_0x39f219,_0x40cfbc+'-'+_0x58034f[_0x2fff8c(0x2d0)]+'-'+_0x2c460c,_0x6598fc,void 0x0,_0x15df6f)));}function _0x14c244(_0x1233cd,_0x5f78e1,_0x22de66){const _0x3ff9cc=_0x21bccd,_0x1bc535={..._0x1233cd[_0x3ff9cc(0x2e7)]};_0x22de66!=null&&_0x22de66[_0x3ff9cc(0x25d)]&&_0x1bc535[_0x3ff9cc(0x173)]===_0x3ff9cc(0x25d)&&(_0x1bc535[_0x3ff9cc(0x173)]=_0x22de66['colorChannel1']),_0x1233cd[_0x3ff9cc(0x2d0)]===_0x3ff9cc(0x1a8)&&_0x1bc535['id']&&(_0x1bc535['id']=_0x1bc535['id']+_0x5f78e1[_0x3ff9cc(0x23d)]),Object[_0x3ff9cc(0x264)](_0x1bc535)[_0x3ff9cc(0x294)](([_0x553fd1,_0x16eeda])=>{const _0x34fa6e=_0x3ff9cc;_0x553fd1===_0x34fa6e(0x1a8)&&typeof _0x16eeda==_0x34fa6e(0x1d9)&&(_0x1bc535[_0x553fd1]=_0x16eeda[_0x34fa6e(0x296)](/url\(#(.*)\)/,_0x34fa6e(0x290)+_0x5f78e1['idSuffix']+')'));});const {defIds:_0x55d543}=_0x5f78e1;return!_0x55d543||_0x55d543[_0x3ff9cc(0x24c)]===0x0||(_0x1233cd['tag']==='use'&&_0x1bc535['xlink:href']&&(_0x1bc535[_0x3ff9cc(0x15f)]=_0x1bc535[_0x3ff9cc(0x15f)]+_0x5f78e1[_0x3ff9cc(0x23d)]),Object[_0x3ff9cc(0x264)](_0x1bc535)[_0x3ff9cc(0x294)](([_0x533110,_0x29ac66])=>{const _0x4fb05f=_0x3ff9cc;typeof _0x29ac66==_0x4fb05f(0x1d9)&&(_0x1bc535[_0x533110]=_0x29ac66[_0x4fb05f(0x296)](/url\(#(.*)\)/,_0x4fb05f(0x290)+_0x5f78e1['idSuffix']+')'));})),_0x1bc535;}function _0x2ae945(_0x414b70,_0xa948b){const _0x244316=_0x21bccd;var _0x205803;const {defIds:_0x534e72}=_0xa948b;return!_0x534e72||_0x534e72[_0x244316(0x24c)]===0x0?_0x414b70:_0x414b70[_0x244316(0x2d0)]===_0x244316(0x1da)&&((_0x205803=_0x414b70[_0x244316(0x180)])!=null&&_0x205803['length'])?{..._0x414b70,'children':_0x414b70[_0x244316(0x180)]['map'](_0x3428c7=>typeof _0x3428c7[_0x244316(0x2e7)]['id']==_0x244316(0x1d9)&&_0x534e72&&_0x534e72[_0x244316(0x166)](_0x3428c7[_0x244316(0x2e7)]['id'])?{..._0x3428c7,'attrs':{..._0x3428c7[_0x244316(0x2e7)],'id':_0x3428c7['attrs']['id']+_0xa948b[_0x244316(0x23d)]}}:_0x3428c7)}:_0x414b70;}function _0x48efc5(){const _0x1300ad=_0x21bccd;return Math['random']()[_0x1300ad(0x1b4)](0x24)[_0x1300ad(0x2eb)](0x2,0x8);}_0x4cad24[_0x21bccd(0x178)]=_0x21bccd(0x215);const _0x24df03={'tag':_0x21bccd(0x174),'attrs':{'xmlns':_0x21bccd(0x2e1),'fill':_0x21bccd(0x243),'viewBox':_0x21bccd(0x213),'width':'1em','height':'1em'},'children':[{'tag':_0x21bccd(0x298),'attrs':{'fill':'currentColor','d':_0x21bccd(0x1b3),'fillRule':_0x21bccd(0x1a3),'clipRule':_0x21bccd(0x1a3)}}]},_0x126424=_0x42e53b[_0x21bccd(0x2c0)](function(_0x5e409b,_0x2b60be){const _0x78793=_0x21bccd;return _0x42e53b[_0x78793(0x2c7)](_0x4cad24,Object[_0x78793(0x205)]({},_0x5e409b,{'id':_0x78793(0x2ab),'ref':_0x2b60be,'icon':_0x24df03}));});_0x126424[_0x21bccd(0x178)]=_0x21bccd(0x2b4);const _0x2a6ec0={'tag':'svg','attrs':{'xmlns':_0x21bccd(0x2e1),'fill':_0x21bccd(0x243),'viewBox':'0\x200\x2016\x2016','width':_0x21bccd(0x163),'height':_0x21bccd(0x163)},'children':[{'tag':_0x21bccd(0x298),'attrs':{'fill':_0x21bccd(0x1ad),'d':_0x21bccd(0x2b9)}}]},_0x2e345f=_0x42e53b[_0x21bccd(0x2c0)](function(_0x3f52a1,_0x40cdca){const _0x42380a=_0x21bccd;return _0x42e53b[_0x42380a(0x2c7)](_0x4cad24,Object[_0x42380a(0x205)]({},_0x3f52a1,{'id':'close-icon','ref':_0x40cdca,'icon':_0x2a6ec0}));});_0x2e345f[_0x21bccd(0x178)]=_0x21bccd(0x18d);const _0x2b5e6b={'tag':'svg','attrs':{'xmlns':_0x21bccd(0x2e1),'fill':_0x21bccd(0x243),'viewBox':_0x21bccd(0x213),'width':_0x21bccd(0x163),'height':_0x21bccd(0x163)},'children':[{'tag':'path','attrs':{'fill':'currentColor','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':_0x21bccd(0x298),'attrs':{'fill':_0x21bccd(0x1ad),'d':_0x21bccd(0x1d3)}},{'tag':_0x21bccd(0x298),'attrs':{'fill':_0x21bccd(0x1ad),'d':_0x21bccd(0x1a6),'fillRule':_0x21bccd(0x1a3),'clipRule':'evenodd'}}]},_0x383c72=_0x42e53b[_0x21bccd(0x2c0)](function(_0x51fe45,_0x21bbc6){const _0x38e4f4=_0x21bccd;return _0x42e53b[_0x38e4f4(0x2c7)](_0x4cad24,Object[_0x38e4f4(0x205)]({},_0x51fe45,{'id':_0x38e4f4(0x27a),'ref':_0x21bbc6,'icon':_0x2b5e6b}));});_0x383c72[_0x21bccd(0x178)]=_0x21bccd(0x22c);const _0xfaf787={'tag':'svg','attrs':{'xmlns':_0x21bccd(0x2e1),'fill':_0x21bccd(0x243),'viewBox':_0x21bccd(0x213),'width':_0x21bccd(0x163),'height':_0x21bccd(0x163)},'children':[{'tag':'g','attrs':{'clipPath':_0x21bccd(0x28f)},'children':[{'tag':_0x21bccd(0x298),'attrs':{'stroke':_0x21bccd(0x1ad),'d':_0x21bccd(0x21b),'strokeLinecap':_0x21bccd(0x24a),'strokeLinejoin':_0x21bccd(0x24a),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x21bccd(0x219),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x21bccd(0x298),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x21bccd(0x2c4)]},_0x27e736=_0x42e53b[_0x21bccd(0x2c0)](function(_0x4f4e40,_0x299f53){const _0x5e557a=_0x21bccd;return _0x42e53b[_0x5e557a(0x2c7)](_0x4cad24,Object['assign']({},_0x4f4e40,{'id':_0x5e557a(0x1e6),'ref':_0x299f53,'icon':_0xfaf787}));});_0x27e736[_0x21bccd(0x178)]=_0x21bccd(0x246);const _0x50e181={'tag':_0x21bccd(0x174),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x21bccd(0x2c9),'width':_0x21bccd(0x163),'height':_0x21bccd(0x163)},'children':[{'tag':'g','attrs':{'clipPath':_0x21bccd(0x1d6)},'children':[{'tag':_0x21bccd(0x298),'attrs':{'stroke':_0x21bccd(0x1ad),'d':_0x21bccd(0x277),'strokeLinecap':_0x21bccd(0x24a),'strokeLinejoin':_0x21bccd(0x24a),'strokeWidth':1.2}}]},{'tag':_0x21bccd(0x1da),'attrs':{},'children':[{'tag':_0x21bccd(0x219),'attrs':{'id':_0x21bccd(0x242)},'children':[{'tag':_0x21bccd(0x298),'attrs':{'fill':'white','d':_0x21bccd(0x1ac),'transform':_0x21bccd(0x2b8)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x3c23b9=_0x42e53b[_0x21bccd(0x2c0)](function(_0xa7920b,_0x103ca1){const _0x5a7d5c=_0x21bccd;return _0x42e53b[_0x5a7d5c(0x2c7)](_0x4cad24,Object[_0x5a7d5c(0x205)]({},_0xa7920b,{'id':'on-line-icon','ref':_0x103ca1,'icon':_0x50e181}));});_0x3c23b9[_0x21bccd(0x178)]=_0x21bccd(0x29d);function _0x42c44c(_0x8fab89){const _0x47bc96=_0x21bccd;var _0x31b51a,_0x4c5bf7;const {mcpCoreConfig:_0x4e8249,onSave:_0x2f75d8,loading:_0x3cc48a=!0x1,config:_0x20f6da,connectionStatus$:_0x110c36,connectionError$:_0x255de6,currentApiKey$:_0x2a72a9,currentSessionId$:_0x2c1eac}=_0x8fab89,_0x4020ba=_0x145226[_0x47bc96(0x27f)](_0x3a1f97['LocaleService']),_0x5e78c2=_0x145226['useObservable'](_0x110c36,_0x2046b4[_0x47bc96(0x218)]['DISCONNECTED']),_0x761a75=_0x145226[_0x47bc96(0x183)](_0x255de6,_0x2046b4[_0x47bc96(0x21f)][_0x47bc96(0x179)]),_0x2b43f3=_0x145226[_0x47bc96(0x183)](_0x2c1eac,''),_0x427d2f=_0x145226[_0x47bc96(0x183)](_0x2a72a9,''),[_0xecc9c8,_0x2223a9]=_0x42e53b[_0x47bc96(0x2dc)](_0x427d2f||''),_0x243967=!0x0,_0x3efebe=_0x20f6da['showDeveloperTools']&&_0x4e8249['mcpServerUrl']&&(_0x4e8249[_0x47bc96(0x23a)]['includes'](_0x47bc96(0x234))||_0x4e8249[_0x47bc96(0x23a)][_0x47bc96(0x166)]('univer.ai')),_0x2ec901=(_0x31b51a=_0x4e8249[_0x47bc96(0x23a)])==null?void 0x0:_0x31b51a[_0x47bc96(0x166)](_0x47bc96(0x234)),_0x2fdf13=(_0x4c5bf7=_0x4e8249[_0x47bc96(0x23a)])==null?void 0x0:_0x4c5bf7[_0x47bc96(0x166)]('univer.ai'),_0x38ae5e=_0x2ec901?'https://console.univer.plus':_0x47bc96(0x28c),_0x3ba0ba=_0x20f6da[_0x47bc96(0x184)]&&(_0x2ec901||_0x2fdf13),[_0x1ed9f0,_0x23fefd]=_0x42e53b[_0x47bc96(0x2dc)](!_0xecc9c8[_0x47bc96(0x167)]()),_0x34c0b0=(_0x304be9,_0x3ae849)=>{const _0x15d09c=_0x47bc96;if(_0x3ae849===_0x2046b4['MCPConnectionError'][_0x15d09c(0x2e2)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x304be9){case _0x2046b4[_0x15d09c(0x218)]['CONNECTED']:return _0x15d09c(0x2a5);case _0x2046b4['MCPConnectionStatus']['CONNECTING']:case _0x2046b4[_0x15d09c(0x218)][_0x15d09c(0x1a2)]:return _0x15d09c(0x214);case _0x2046b4[_0x15d09c(0x218)][_0x15d09c(0x1ff)]:return _0x15d09c(0x2c6);default:return _0x15d09c(0x2da);}},_0x2fd86a=(_0xe784da,_0x646205)=>{const _0x219881=_0x47bc96;if(_0x646205===_0x2046b4['MCPConnectionError'][_0x219881(0x2e2)])return _0x219881(0x272);switch(_0xe784da){case _0x2046b4[_0x219881(0x218)][_0x219881(0x2e6)]:return _0x219881(0x27d);case _0x2046b4[_0x219881(0x218)][_0x219881(0x2aa)]:case _0x2046b4[_0x219881(0x218)][_0x219881(0x1a2)]:return _0x219881(0x23c);case _0x2046b4[_0x219881(0x218)][_0x219881(0x1ff)]:return _0x219881(0x272);default:return _0x219881(0x198);}},_0x517310=_0x5ba40f=>{const _0x5e2990=_0x47bc96;switch(_0x5ba40f){case _0x2046b4[_0x5e2990(0x218)][_0x5e2990(0x2e6)]:return _0x4020ba['t']('mcpConfig.connectionStatus.connected');case _0x2046b4[_0x5e2990(0x218)][_0x5e2990(0x2aa)]:return _0x4020ba['t']('mcpConfig.connectionStatus.connecting');case _0x2046b4[_0x5e2990(0x218)][_0x5e2990(0x1ff)]:return _0x4020ba['t']('mcpConfig.connectionStatus.failed');case _0x2046b4[_0x5e2990(0x218)]['RETRYING']:return _0x4020ba['t'](_0x5e2990(0x255));default:return _0x4020ba['t'](_0x5e2990(0x27b));}},_0x47b293=_0xdfc8c8=>{const _0x4441cb=_0x47bc96;switch(_0xdfc8c8){case _0x2046b4[_0x4441cb(0x21f)][_0x4441cb(0x2e2)]:return _0x4020ba['t'](_0x4441cb(0x259));case _0x2046b4[_0x4441cb(0x21f)][_0x4441cb(0x1e1)]:return _0x4020ba['t'](_0x4441cb(0x1c2));case _0x2046b4[_0x4441cb(0x21f)][_0x4441cb(0x1e5)]:return _0x4020ba['t'](_0x4441cb(0x18a));case _0x2046b4['MCPConnectionError'][_0x4441cb(0x233)]:return _0x4020ba['t'](_0x4441cb(0x24f));default:return'';}},_0x48a180=_0x42e53b[_0x47bc96(0x285)](()=>{const _0x142eca=_0x47bc96,_0x242ce1={..._0x4e8249,'apiKey':_0xecc9c8[_0x142eca(0x167)](),'enableAuth':_0x243967};_0x2f75d8(_0x242ce1);},[_0x4e8249,_0xecc9c8,_0x243967,_0x2f75d8]),_0x515ad9=_0xecc9c8[_0x47bc96(0x167)]()[_0x47bc96(0x24c)]>0x0;return _0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':_0x47bc96(0x1ba),'children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x24b),{'className':_0x47bc96(0x188),'children':_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':_0x47bc96(0x247),'children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x24b),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x210),{'className':_0x47bc96(0x231),'children':'⚙'})}),_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x24b),{'children':_0x86ce95['jsx']('p',{'className':_0x47bc96(0x292),'children':_0x4020ba['t']('mcpConfig.description')})})]})}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x24b),{'className':_0x235a54[_0x47bc96(0x282)](_0x47bc96(0x1f1),_0x34c0b0(_0x5e78c2,_0x761a75)),'children':_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':_0x47bc96(0x238),'children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x24b),{'className':_0x235a54[_0x47bc96(0x282)]('univer-size-2\x20univer-rounded-full',_0x2fd86a(_0x5e78c2,_0x761a75))}),_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x210),{'className':'univer-text-sm\x20univer-font-medium','children':_0x517310(_0x5e78c2)})]})}),_0x761a75!==_0x2046b4['MCPConnectionError'][_0x47bc96(0x179)]&&(_0x5e78c2===_0x2046b4[_0x47bc96(0x218)][_0x47bc96(0x1ff)]||_0x761a75===_0x2046b4[_0x47bc96(0x21f)][_0x47bc96(0x2e2)])&&_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x24b),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x86ce95[_0x47bc96(0x2c8)]('div',{'className':_0x47bc96(0x229),'children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x210),{'className':_0x47bc96(0x1be),'children':'⚠️'}),_0x86ce95[_0x47bc96(0x1c4)]('p',{'className':_0x47bc96(0x227),'children':_0x47b293(_0x761a75)})]})})]}),_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x24b),{'className':_0x47bc96(0x295),'children':_0x86ce95[_0x47bc96(0x2c8)]('div',{'className':_0x47bc96(0x2ac),'children':[_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':_0x47bc96(0x200),'children':[_0x86ce95['jsxs']('label',{'className':_0x47bc96(0x20d),'children':[_0x86ce95['jsx'](_0x47bc96(0x210),{'children':'🔑'}),'\x20',_0x4020ba['t'](_0x47bc96(0x232)),_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x210),{'className':_0x47bc96(0x2c1),'children':'*'}),_0x3efebe&&_0x86ce95[_0x47bc96(0x1c4)]('a',{'className':_0x47bc96(0x1c7),'title':_0x4020ba['t'](_0x47bc96(0x2bf)),'role':_0x47bc96(0x224),'onClick':()=>_0x23fefd(!0x0),'children':_0x86ce95[_0x47bc96(0x1c4)](_0x383c72,{})})]}),_0x86ce95[_0x47bc96(0x1c4)](_0x235a54[_0x47bc96(0x164)],{'type':_0x47bc96(0x1b1),'placeholder':_0x4020ba['t'](_0x47bc96(0x204)),'value':_0xecc9c8,'disabled':_0x3cc48a,'autoComplete':_0x47bc96(0x278),'onChange':_0x2223a9}),_0x86ce95[_0x47bc96(0x1c4)]('p',{'className':_0x47bc96(0x23b),'children':_0x4020ba['t'](_0x47bc96(0x1d8))})]}),_0x3efebe&&_0x1ed9f0&&_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x86ce95[_0x47bc96(0x1c4)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':'button','onClick':()=>_0x23fefd(!0x1),'children':_0x86ce95[_0x47bc96(0x1c4)](_0x2e345f,{'className':_0x47bc96(0x17e)})}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x86ce95['jsx']('div',{'className':_0x47bc96(0x21c),'children':_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x210),{'className':_0x47bc96(0x220),'children':'🚀'})}),_0x86ce95[_0x47bc96(0x2c8)]('div',{'className':'univer-flex-1','children':[_0x86ce95[_0x47bc96(0x1c4)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4020ba['t']('mcpConfig.apiApplyInfo.title')}),_0x86ce95[_0x47bc96(0x1c4)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x4020ba['t']('mcpConfig.apiApplyInfo.description')}),_0x86ce95[_0x47bc96(0x1c4)]('div',{'className':_0x47bc96(0x1cb),'children':_0x3ba0ba&&_0x86ce95[_0x47bc96(0x2c8)]('a',{'className':_0x47bc96(0x2ba),'href':_0x38ae5e,'target':_0x47bc96(0x172),'rel':_0x47bc96(0x189),'children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x210),{'children':'🤖'}),_0x4020ba['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x86ce95['jsx']('span',{'className':_0x47bc96(0x1f4),'children':'↗'})]})}),_0x86ce95['jsxs'](_0x47bc96(0x24b),{'className':_0x47bc96(0x2cc),'children':['✨','\x20',_0x4020ba['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x20f6da[_0x47bc96(0x184)]&&_0x86ce95['jsxs'](_0x47bc96(0x24b),{'className':_0x47bc96(0x1ed),'children':[_0x86ce95[_0x47bc96(0x2c8)]('h4',{'className':_0x47bc96(0x28d),'children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x210),{'children':'🔗'}),'\x20',_0x4020ba['t'](_0x47bc96(0x1d7))]}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':_0x47bc96(0x1a7),'children':[_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':_0x47bc96(0x2b1),'children':[_0x86ce95['jsx']('p',{'className':_0x47bc96(0x237),'children':_0x4020ba['t'](_0x47bc96(0x2a8))}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':'univer-space-y-2','children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x24b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4020ba['t'](_0x47bc96(0x236))}),_0x86ce95[_0x47bc96(0x2c8)]('div',{'className':_0x47bc96(0x1e4),'children':[_0x86ce95[_0x47bc96(0x2c8)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x210),{'className':_0x47bc96(0x273),'children':'1'}),_0x4020ba['t'](_0x47bc96(0x2ad))]}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x210),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x4020ba['t']('mcpConfig.configStep2')]}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x210),{'className':_0x47bc96(0x273),'children':'3'}),_0x4020ba['t']('mcpConfig.configStep3')]})]})]})]}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':'univer-space-y-2','children':[_0x86ce95[_0x47bc96(0x1c4)]('div',{'className':_0x47bc96(0x262),'children':_0x47bc96(0x15d)}),_0x86ce95[_0x47bc96(0x1c4)]('div',{'className':_0x47bc96(0x240),'children':_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x22b),{'className':_0x47bc96(0x293),'children':JSON[_0x47bc96(0x19b)]({'mcpServers':{'univer':{'url':_0x47bc96(0x21d)+(_0x2b43f3||'<SESSION_ID>'),'type':_0x47bc96(0x251),'headers':{'Authorization':_0x47bc96(0x171)+(_0xecc9c8||_0x47bc96(0x275))}}}},null,0x2)})})]}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':_0x47bc96(0x2b1),'children':[_0x86ce95[_0x47bc96(0x1c4)]('div',{'className':_0x47bc96(0x262),'children':_0x4020ba['t']('mcpConfig.configParameters')}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':'univer-space-y-2','children':[_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':_0x47bc96(0x2a1),'children':[_0x86ce95['jsx'](_0x47bc96(0x24b),{'className':_0x47bc96(0x1b0)}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x86ce95['jsx'](_0x47bc96(0x24b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x47bc96(0x1d5)}),_0x86ce95['jsx'](_0x47bc96(0x24b),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4020ba['t']('mcpConfig.sessionIdDescription')})]})]}),_0x86ce95[_0x47bc96(0x2c8)]('div',{'className':_0x47bc96(0x2a1),'children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x24b),{'className':_0x47bc96(0x1b0)}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':_0x47bc96(0x203),'children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x24b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x47bc96(0x2cd)}),_0x86ce95['jsx'](_0x47bc96(0x24b),{'className':_0x47bc96(0x23b),'children':_0x4020ba['t'](_0x47bc96(0x1b7))})]})]})]})]})]})]}),_0x86ce95['jsx'](_0x235a54[_0x47bc96(0x1b2)],{'onClick':_0x48a180,'disabled':!_0x515ad9||_0x3cc48a,'className':_0x47bc96(0x1f6),'children':_0x3cc48a?_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x210),{'className':_0x47bc96(0x238),'children':[_0x86ce95[_0x47bc96(0x1c4)]('span',{'children':'⟲'}),_0x4020ba['t']('mcpConfig.saving')]}):_0x86ce95['jsxs'](_0x47bc96(0x210),{'className':_0x47bc96(0x238),'children':[_0x86ce95[_0x47bc96(0x1c4)](_0x126424,{}),_0x4020ba['t'](_0x47bc96(0x1db))]})}),_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x24b),{'className':_0x47bc96(0x1e2),'children':_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':_0x47bc96(0x22e),'children':[_0x86ce95[_0x47bc96(0x1c4)](_0x47bc96(0x210),{'className':_0x47bc96(0x29a),'children':'💡'}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'className':_0x47bc96(0x1c6),'children':[_0x86ce95['jsx'](_0x47bc96(0x24b),{'className':_0x47bc96(0x289),'children':_0x47bc96(0x2b2)}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'children':['•',_0x4020ba['t']('mcpConfig.note1')]}),_0x86ce95[_0x47bc96(0x2c8)](_0x47bc96(0x24b),{'children':['•',_0x4020ba['t'](_0x47bc96(0x206))]})]})]})})]})})]});}const _0x2eb54e='mcp-ui.config',_0x2b5e0f={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x4de1bd=Object[_0x21bccd(0x2d6)],_0x275cdc=(_0xfca32e,_0x23ed16,_0x113612,_0x54cb90)=>{const _0x581a38=_0x21bccd;for(var _0x1a85f6=_0x54cb90>0x1?void 0x0:_0x54cb90?_0x4de1bd(_0x23ed16,_0x113612):_0x23ed16,_0x39c10f=_0xfca32e[_0x581a38(0x24c)]-0x1,_0x37bf41;_0x39c10f>=0x0;_0x39c10f--)(_0x37bf41=_0xfca32e[_0x39c10f])&&(_0x1a85f6=_0x37bf41(_0x1a85f6)||_0x1a85f6);return _0x1a85f6;},_0x505357=(_0x451dc9,_0x4fbe64)=>(_0x557ef3,_0x6b1715)=>_0x4fbe64(_0x557ef3,_0x6b1715,_0x451dc9);const _0x4fb5af=_0x21bccd(0x216),_0x3baecf=_0x21bccd(0x1bb);_0x36bc69[_0x21bccd(0x256)]=class extends _0x3a1f97['Disposable']{constructor(_0x46f7aa,_0x3d9697,_0x40cccc,_0x14a050,_0x4c32f2,_0x90edaa,_0x3ad431,_0x3c9a51,_0x3ddb60,_0x80416d){const _0xa17963=_0x21bccd;super(),_0x150e10(this,'_loading$',new _0x3e976a[(_0xa17963(0x1ee))](!0x1)),_0x150e10(this,_0xa17963(0x2a7),new _0x3e976a[(_0xa17963(0x1ee))]({})),_0x150e10(this,_0xa17963(0x297),new _0x3e976a[(_0xa17963(0x1ee))]({})),_0x150e10(this,_0xa17963(0x1f5),new _0x3e976a['BehaviorSubject']('')),_0x150e10(this,_0xa17963(0x276),async _0x4684af=>{const _0x4de2c1=_0xa17963;var _0x52a29d,_0x42611e;this[_0x4de2c1(0x228)][_0x4de2c1(0x197)](!0x0);try{const _0x20050c=await this[_0x4de2c1(0x225)](_0x4684af);if(!_0x20050c[_0x4de2c1(0x26b)]){this[_0x4de2c1(0x1a4)]['show']({'type':_0x235a54[_0x4de2c1(0x2a0)]['Error'],'content':_0x20050c['errorMessage']||this['_localeService']['t'](_0x4de2c1(0x20a))});return;}_0x4684af[_0x4de2c1(0x1bd)]?await this[_0x4de2c1(0x1e8)]['setItem'](_0x4fb5af,_0x4684af[_0x4de2c1(0x1bd)][_0x4de2c1(0x167)]()):await this['_localStorageService'][_0x4de2c1(0x19a)](_0x4fb5af),this[_0x4de2c1(0x1f5)][_0x4de2c1(0x197)](((_0x52a29d=_0x4684af['apiKey'])==null?void 0x0:_0x52a29d[_0x4de2c1(0x167)]())||''),this[_0x4de2c1(0x1bf)][_0x4de2c1(0x20f)]({'Authorization':_0x4de2c1(0x171)+((_0x42611e=_0x4684af['apiKey'])==null?void 0x0:_0x42611e[_0x4de2c1(0x167)]())}),this['_messageService']['show']({'type':_0x235a54[_0x4de2c1(0x2a0)]['Success'],'content':this[_0x4de2c1(0x26d)]['t'](_0x4de2c1(0x187))}),setTimeout(()=>{const _0x3d7f1a=_0x4de2c1;this[_0x3d7f1a(0x1fa)][_0x3d7f1a(0x28b)](_0x3baecf);},0x320);}catch(_0x5315ba){this['_logService'][_0x4de2c1(0x291)](_0x4de2c1(0x1ab),_0x5315ba),this[_0x4de2c1(0x1a4)][_0x4de2c1(0x1cd)]({'type':_0x235a54[_0x4de2c1(0x2a0)][_0x4de2c1(0x2e9)],'content':this[_0x4de2c1(0x26d)]['t'](_0x4de2c1(0x202))});}finally{this[_0x4de2c1(0x228)]['next'](!0x1);}}),(this[_0xa17963(0x1b9)]=_0x46f7aa,this[_0xa17963(0x230)]=_0x3d9697,this[_0xa17963(0x2b6)]=_0x40cccc,this[_0xa17963(0x1e8)]=_0x14a050,this[_0xa17963(0x1fa)]=_0x4c32f2,this['_messageService']=_0x90edaa,this[_0xa17963(0x199)]=_0x3ad431,this['_localeService']=_0x3c9a51,this[_0xa17963(0x1de)]=_0x3ddb60,this[_0xa17963(0x1bf)]=_0x80416d,this[_0xa17963(0x1c3)](),this[_0xa17963(0x2ea)](),this[_0xa17963(0x24d)]());}[_0x21bccd(0x217)](){const _0x4e7ec7=_0x21bccd,_0x31bdd1=this['_configService'][_0x4e7ec7(0x1d2)](_0x2eb54e);_0x31bdd1!=null&&_0x31bdd1['showDeveloperTools']&&this[_0x4e7ec7(0x1fa)][_0x4e7ec7(0x2d5)]({'id':_0x3baecf,'title':{'title':this[_0x4e7ec7(0x26d)]['t']('mcpConfig.title')},'children':{'label':_0x4e7ec7(0x20e)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x322164=_0x4e7ec7;this[_0x322164(0x1fa)][_0x322164(0x28b)](_0x3baecf);}});}[_0x21bccd(0x16a)](){const _0x42eb5f=_0x21bccd;return this[_0x42eb5f(0x2a7)]['value'];}['_registerComponent'](){const _0xe7856e=_0x21bccd;this[_0xe7856e(0x1af)](this['_componentManager']['register'](_0xe7856e(0x20e),this[_0xe7856e(0x1a0)]()));}[_0x21bccd(0x1a0)](){const _0x493a7a=_0x21bccd;return _0x145226[_0x493a7a(0x1a1)](()=>{const _0x235fd1=_0x493a7a;var _0x266020,_0xc08566,_0x15c422;return _0x86ce95[_0x235fd1(0x1c4)](_0x42c44c,{'config':this['_config$'][_0x235fd1(0x26f)],'mcpCoreConfig':this[_0x235fd1(0x2a7)][_0x235fd1(0x26f)],'currentApiKey$':this[_0x235fd1(0x1f5)],'onSave':this[_0x235fd1(0x276)],'loading':this[_0x235fd1(0x228)]['value'],'connectionStatus$':(_0x266020=this[_0x235fd1(0x1bf)])==null?void 0x0:_0x266020[_0x235fd1(0x1f7)],'connectionError$':(_0xc08566=this[_0x235fd1(0x1bf)])==null?void 0x0:_0xc08566[_0x235fd1(0x2c2)],'currentSessionId$':(_0x15c422=this[_0x235fd1(0x1bf)])==null?void 0x0:_0x15c422[_0x235fd1(0x279)]});},this[_0x493a7a(0x1b9)]);}[_0x21bccd(0x1c3)](){const _0x38823e=_0x21bccd;this[_0x38823e(0x1af)](this['_configService'][_0x38823e(0x28e)](_0x2046b4[_0x38823e(0x25a)])[_0x38823e(0x281)](_0x46f3b8=>{this['_mcpCoreConfig$']['next'](_0x46f3b8||{});}));const _0x21832f=this[_0x38823e(0x2b6)][_0x38823e(0x1d2)](_0x2046b4[_0x38823e(0x25a)]);this['_mcpCoreConfig$'][_0x38823e(0x197)](_0x21832f||{}),this[_0x38823e(0x1af)](this[_0x38823e(0x2b6)]['subscribeConfigValue$'](_0x2eb54e)[_0x38823e(0x281)](_0x26b1e6=>{const _0x582ceb=_0x38823e;this[_0x582ceb(0x297)][_0x582ceb(0x197)](_0x26b1e6||{});}));const _0x145f63=this[_0x38823e(0x2b6)][_0x38823e(0x1d2)](_0x2eb54e);this[_0x38823e(0x297)]['next'](_0x145f63||{});}async[_0x21bccd(0x2ea)](){const _0x21f524=_0x21bccd,_0x1ec4c0=this['_configService'][_0x21f524(0x1d2)](_0x2eb54e);if(!(_0x1ec4c0!=null&&_0x1ec4c0[_0x21f524(0x184)]))return;const _0x19ce94=await this[_0x21f524(0x1e8)][_0x21f524(0x193)](_0x4fb5af);_0x19ce94&&(this[_0x21f524(0x1bf)]['__setCustomHeaders']({'Authorization':_0x21f524(0x171)+_0x19ce94}),this['_apiKey$'][_0x21f524(0x197)](_0x19ce94));}async['_validateConfig'](_0x323fbc){const _0x44ab6e=_0x21bccd;if(!_0x323fbc[_0x44ab6e(0x1bd)]||_0x323fbc[_0x44ab6e(0x1bd)][_0x44ab6e(0x167)]()[_0x44ab6e(0x24c)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x44ab6e(0x26d)]['t'](_0x44ab6e(0x29f))};if(_0x323fbc[_0x44ab6e(0x1bd)][_0x44ab6e(0x167)]()[_0x44ab6e(0x24c)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x44ab6e(0x26d)]['t'](_0x44ab6e(0x25e))};try{const _0x404922=await this['_injector'][_0x44ab6e(0x1d0)](_0x2046b4[_0x44ab6e(0x1c8)])[_0x44ab6e(0x2e0)](_0x323fbc[_0x44ab6e(0x1bd)]['trim']());return _0x404922[_0x44ab6e(0x26b)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x404922['error']||this[_0x44ab6e(0x26d)]['t'](_0x44ab6e(0x2cb))};}catch(_0x5deaf6){return console[_0x44ab6e(0x1ce)](_0x44ab6e(0x29c),_0x5deaf6),{'isValid':!0x0};}}},_0x36bc69[_0x21bccd(0x256)]=_0x275cdc([_0x505357(0x0,_0x3a1f97[_0x21bccd(0x271)](_0x3a1f97['Injector'])),_0x505357(0x1,_0x145226[_0x21bccd(0x28a)]),_0x505357(0x2,_0x3a1f97[_0x21bccd(0x196)]),_0x505357(0x3,_0x3a1f97['ILocalStorageService']),_0x505357(0x4,_0x145226['IDialogService']),_0x505357(0x5,_0x145226['IMessageService']),_0x505357(0x6,_0x3a1f97[_0x21bccd(0x271)](_0x145226[_0x21bccd(0x17d)])),_0x505357(0x7,_0x3a1f97['Inject'](_0x3a1f97[_0x21bccd(0x284)])),_0x505357(0x8,_0x3a1f97[_0x21bccd(0x2d8)]),_0x505357(0x9,_0x3a1f97['Inject'](_0x2046b4['MCPConnectionController']))],_0x36bc69[_0x21bccd(0x256)]);const _0x404dc4={'id':'mcp-ui.command.openConfigPanel','type':_0x3a1f97[_0x21bccd(0x257)]['COMMAND'],'handler':async(_0x3bbcd8,_0x46d534)=>(_0x3bbcd8[_0x21bccd(0x1d0)](_0x36bc69[_0x21bccd(0x256)])[_0x21bccd(0x217)](),!0x0)};function _0x54c99a(_0x596fe9,_0x202d50){const _0x2b2206=_0x21bccd;switch(_0x596fe9){case _0x2046b4[_0x2b2206(0x218)][_0x2b2206(0x19e)]:return _0x2b2206(0x27c);case _0x2046b4[_0x2b2206(0x218)][_0x2b2206(0x2aa)]:return _0x2b2206(0x21e);case _0x2046b4[_0x2b2206(0x218)][_0x2b2206(0x2e6)]:return'mcpStatus.connected';case _0x2046b4[_0x2b2206(0x218)][_0x2b2206(0x1ff)]:switch(_0x202d50){case _0x2046b4[_0x2b2206(0x21f)][_0x2b2206(0x2e2)]:return _0x2b2206(0x160);case _0x2046b4[_0x2b2206(0x21f)][_0x2b2206(0x1e1)]:return _0x2b2206(0x1ec);case _0x2046b4[_0x2b2206(0x21f)]['NETWORK_ERROR']:return'mcpStatus.networkError';case _0x2046b4[_0x2b2206(0x21f)]['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return _0x2b2206(0x2c5);}case _0x2046b4[_0x2b2206(0x218)]['RETRYING']:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function _0x27c239(_0x3a2615,_0x4ed245,_0x549f10,_0x23a98b=!0x0){const _0x4b660b=_0x21bccd,_0x122324=_0x54c99a(_0x3a2615,_0x4ed245),_0x2890a4=_0x549f10['t'](_0x122324);return _0x23a98b?_0x3a2615===_0x2046b4[_0x4b660b(0x218)]['DISCONNECTED']&&_0x4ed245===_0x2046b4[_0x4b660b(0x21f)][_0x4b660b(0x2e2)]?_0x2890a4+_0x4b660b(0x2d2)+_0x549f10['t'](_0x4b660b(0x16b)):_0x3a2615===_0x2046b4[_0x4b660b(0x218)][_0x4b660b(0x2e6)]?''+_0x2890a4:_0x3a2615===_0x2046b4[_0x4b660b(0x218)][_0x4b660b(0x19e)]||_0x3a2615===_0x2046b4['MCPConnectionStatus'][_0x4b660b(0x1ff)]?_0x2890a4+_0x4b660b(0x2d2)+_0x549f10['t'](_0x4b660b(0x2af)):_0x2890a4:_0x2890a4;}function _0x37859c(_0x5811c7){const _0x1961e1=_0x21bccd;switch(_0x5811c7){case _0x2046b4[_0x1961e1(0x218)][_0x1961e1(0x2e6)]:return'univer-text-green-500';case _0x2046b4[_0x1961e1(0x218)][_0x1961e1(0x2aa)]:case _0x2046b4[_0x1961e1(0x218)][_0x1961e1(0x1a2)]:return'univer-text-yellow-500';case _0x2046b4[_0x1961e1(0x218)]['FAILED']:case _0x2046b4[_0x1961e1(0x218)][_0x1961e1(0x19e)]:return _0x1961e1(0x2c1);default:return _0x1961e1(0x19d);}}function _0x2f66c9(_0x4c9fb7){const _0x433ee8=_0x21bccd,{status$:_0x32ad32,error$:_0x1c53c4,onConfigure:_0x414a11,showClickable:_0x15b77f=!0x0}=_0x4c9fb7,_0x2241d6=_0x145226[_0x433ee8(0x183)](_0x32ad32,_0x2046b4[_0x433ee8(0x218)][_0x433ee8(0x19e)]),_0x1352d8=_0x145226[_0x433ee8(0x183)](_0x1c53c4,_0x2046b4['MCPConnectionError']['NONE']),_0x472a64=_0x145226[_0x433ee8(0x27f)](_0x3a1f97[_0x433ee8(0x284)]),_0x52a8df=_0x2241d6===_0x2046b4[_0x433ee8(0x218)][_0x433ee8(0x2e6)];_0x2241d6===_0x2046b4['MCPConnectionStatus'][_0x433ee8(0x2aa)]||_0x2046b4[_0x433ee8(0x218)][_0x433ee8(0x1a2)];const _0xb42974=_0x472a64['t'](_0x54c99a(_0x2241d6,_0x1352d8)),_0x5550b3=_0x27c239(_0x2241d6,_0x1352d8,_0x472a64,_0x15b77f),_0x1b3ef8=_0x37859c(_0x2241d6),_0x4dfc52=_0x52a8df?_0x86ce95[_0x433ee8(0x1c4)](_0x3c23b9,{}):_0x86ce95[_0x433ee8(0x1c4)](_0x27e736,{}),_0x5b19e2=_0x42e53b[_0x433ee8(0x285)](()=>{_0x15b77f&&_0x414a11&&_0x414a11();},[_0x15b77f,_0x414a11]);function _0x26d2da(){const _0x448f29=_0x433ee8;return _0x86ce95[_0x448f29(0x2c8)](_0x448f29(0x24b),{'className':_0x235a54[_0x448f29(0x282)](_0x448f29(0x2a2),_0x15b77f&&_0x414a11&&_0x448f29(0x185)),'role':_0x448f29(0x224),'onClick':_0x15b77f&&_0x414a11?_0x5b19e2:void 0x0,'children':[_0x86ce95[_0x448f29(0x1c4)]('div',{'className':_0x235a54[_0x448f29(0x282)](_0x448f29(0x1fd),_0x1b3ef8),'children':_0x4dfc52}),_0x86ce95[_0x448f29(0x1c4)]('div',{'className':_0x448f29(0x2e3),'children':_0xb42974})]});}return _0x86ce95[_0x433ee8(0x1c4)](_0x235a54[_0x433ee8(0x274)],{'title':_0x5550b3,'placement':_0x433ee8(0x194),'children':_0x26d2da()});}var _0x6ec440=Object[_0x21bccd(0x2d6)],_0x3ffd96=(_0x4b690f,_0x2bdcf5,_0x36b832,_0x2de38d)=>{for(var _0x437c5a=_0x2de38d>0x1?void 0x0:_0x2de38d?_0x6ec440(_0x2bdcf5,_0x36b832):_0x2bdcf5,_0x2cea41=_0x4b690f['length']-0x1,_0x2a9f14;_0x2cea41>=0x0;_0x2cea41--)(_0x2a9f14=_0x4b690f[_0x2cea41])&&(_0x437c5a=_0x2a9f14(_0x437c5a)||_0x437c5a);return _0x437c5a;},_0x30461e=(_0x5a7e44,_0x1da2fa)=>(_0x2111d6,_0x3b86e0)=>_0x1da2fa(_0x2111d6,_0x3b86e0,_0x5a7e44);_0x36bc69[_0x21bccd(0x22a)]=class extends _0x3a1f97[_0x21bccd(0x27e)]{constructor(_0x4cfbb2,_0x340c9f,_0x38207a,_0x2a4f5f){const _0x6b6d94=_0x21bccd;super(),this[_0x6b6d94(0x1b9)]=_0x4cfbb2,this[_0x6b6d94(0x252)]=_0x340c9f,this['_uiPartsService']=_0x38207a,this[_0x6b6d94(0x2b6)]=_0x2a4f5f,this[_0x6b6d94(0x17f)](),this[_0x6b6d94(0x1d4)]();}[_0x21bccd(0x17f)](){const _0x1c7e0c=_0x21bccd,_0x14cb65=this[_0x1c7e0c(0x2b6)][_0x1c7e0c(0x1d2)](_0x2eb54e);_0x14cb65!=null&&_0x14cb65['showDeveloperTools']&&(this[_0x1c7e0c(0x252)]['enableAutoConnect']=!0x1);}[_0x21bccd(0x1d4)](){const _0x480351=_0x21bccd,_0x353c56=this[_0x480351(0x2b6)][_0x480351(0x1d2)](_0x2eb54e);(_0x353c56==null?void 0x0:_0x353c56['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0x480351(0x230)][_0x480351(0x1b5)](_0x145226[_0x480351(0x2de)][_0x480351(0x21a)],()=>{const _0x9cec42=_0x480351;var _0x550afe;return _0x145226[_0x9cec42(0x1a1)](_0x37a341({'status$':this[_0x9cec42(0x252)]['connectionStatus$'],'error$':this['_connectionController'][_0x9cec42(0x2c2)],'onConfigure':()=>this[_0x9cec42(0x1ae)](),'showClickable':(_0x550afe=_0x353c56==null?void 0x0:_0x353c56['showDeveloperTools'])!=null?_0x550afe:!0x1}),this[_0x9cec42(0x1b9)]);}));}[_0x21bccd(0x1ae)](){const _0x575b4a=_0x21bccd;this[_0x575b4a(0x1b9)][_0x575b4a(0x1d0)](_0x36bc69[_0x575b4a(0x256)])[_0x575b4a(0x217)]();}},_0x36bc69[_0x21bccd(0x22a)]=_0x3ffd96([_0x30461e(0x0,_0x3a1f97['Inject'](_0x3a1f97[_0x21bccd(0x221)])),_0x30461e(0x1,_0x3a1f97[_0x21bccd(0x271)](_0x2046b4['MCPConnectionController'])),_0x30461e(0x2,_0x145226[_0x21bccd(0x28a)]),_0x30461e(0x3,_0x3a1f97[_0x21bccd(0x196)])],_0x36bc69['MCPConnectionUIController']);function _0x37a341(_0x388cef){const {status$:_0x5c5593,error$:_0x5f3edc,onConfigure:_0x3ed876,showClickable:_0x1218f7}=_0x388cef;return function(){return _0x86ce95['jsx'](_0x2f66c9,{'status$':_0x5c5593,'error$':_0x5f3edc,'onConfigure':_0x3ed876,'showClickable':_0x1218f7});};}function _0x2f7df1(_0x1162c9){const _0x406b96=_0x21bccd;return{'id':_0x404dc4['id'],'type':_0x145226[_0x406b96(0x2b3)][_0x406b96(0x1b6)],'icon':_0x406b96(0x1f3),'title':_0x406b96(0x1c9),'tooltip':'mcpConfig.title'};}const _0x444590={[_0x145226[_0x21bccd(0x19c)][_0x21bccd(0x169)]]:{[_0x404dc4['id']]:{'order':0xa,'menuItemFactory':_0x2f7df1}}};var _0x4d2a77=Object['getOwnPropertyDescriptor'],_0x59fda5=(_0x54da98,_0x473199,_0x1227df,_0x30dc17)=>{const _0x4add6d=_0x21bccd;for(var _0x4dc937=_0x30dc17>0x1?void 0x0:_0x30dc17?_0x4d2a77(_0x473199,_0x1227df):_0x473199,_0x2e1708=_0x54da98[_0x4add6d(0x24c)]-0x1,_0x5e7fca;_0x2e1708>=0x0;_0x2e1708--)(_0x5e7fca=_0x54da98[_0x2e1708])&&(_0x4dc937=_0x5e7fca(_0x4dc937)||_0x4dc937);return _0x4dc937;},_0x12f06a=(_0x1efcfa,_0x20163d)=>(_0x3b201e,_0x483f95)=>_0x20163d(_0x3b201e,_0x483f95,_0x1efcfa);_0x36bc69['MCPUIMenuController']=class extends _0x3a1f97['Disposable']{constructor(_0x1dec76,_0x375442){const _0x539410=_0x21bccd;super(),this['_commandService']=_0x1dec76,this['_menuManagerService']=_0x375442,this[_0x539410(0x2db)](),this[_0x539410(0x207)]();}[_0x21bccd(0x2db)](){[_0x404dc4]['forEach'](_0x1c765b=>{const _0x270b50=_0x54f6;this[_0x270b50(0x1af)](this[_0x270b50(0x2ed)][_0x270b50(0x18f)](_0x1c765b));});}[_0x21bccd(0x207)](){const _0x18bf99=_0x21bccd;this[_0x18bf99(0x2dd)][_0x18bf99(0x244)](_0x444590);}},_0x36bc69[_0x21bccd(0x266)]=_0x59fda5([_0x12f06a(0x0,_0x3a1f97[_0x21bccd(0x2a3)]),_0x12f06a(0x1,_0x145226[_0x21bccd(0x260)])],_0x36bc69[_0x21bccd(0x266)]);const _0x17f7f7={'mcpStatus':{'disconnected':_0x21bccd(0x2df),'connecting':_0x21bccd(0x1c0),'connected':_0x21bccd(0x16f),'failed':_0x21bccd(0x20c),'retrying':'MCP\x20Retrying...','unknown':_0x21bccd(0x2b5),'unauthorized':_0x21bccd(0x2d3),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x21bccd(0x25b),'maxRetriesExceeded':_0x21bccd(0x253),'clickToConnect':_0x21bccd(0x195),'clickToConfigure':_0x21bccd(0x2ce)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x21bccd(0x241),'apiKey':_0x21bccd(0x1dd),'apiKeyPlaceholder':_0x21bccd(0x20b),'apiKeyHint':_0x21bccd(0x1f8),'enableAuth':_0x21bccd(0x24e),'enableAuthHint':_0x21bccd(0x1aa),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x21bccd(0x269),'configInstructions':_0x21bccd(0x25c),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x21bccd(0x16e),'configStep2':_0x21bccd(0x26a),'configStep3':_0x21bccd(0x1a5),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x21bccd(0x209),'configParameters':_0x21bccd(0x18e),'maxRetries':_0x21bccd(0x23e),'save':_0x21bccd(0x2d4),'saving':_0x21bccd(0x2ec),'note1':_0x21bccd(0x2a9),'note2':_0x21bccd(0x1e0),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x21bccd(0x2b0),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x21bccd(0x1ca),'univerAiLabel':_0x21bccd(0x1c5),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x21bccd(0x1e3),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0x21bccd(0x2e8)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x24098d={'mcpStatus':{'disconnected':_0x21bccd(0x2a4),'connecting':_0x21bccd(0x1d1),'connected':_0x21bccd(0x1df),'failed':_0x21bccd(0x268),'retrying':_0x21bccd(0x235),'unknown':_0x21bccd(0x29b),'unauthorized':_0x21bccd(0x249),'sessionOccupied':_0x21bccd(0x192),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x21bccd(0x2d9),'clickToConnect':_0x21bccd(0x16c),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x21bccd(0x1a9),'description':_0x21bccd(0x22d),'apiKey':_0x21bccd(0x17b),'apiKeyPlaceholder':_0x21bccd(0x261),'apiKeyHint':_0x21bccd(0x2c3),'enableAuth':_0x21bccd(0x2b7),'enableAuthHint':_0x21bccd(0x265),'connectionInfo':_0x21bccd(0x1f0),'mcpClientConfig':_0x21bccd(0x1f0),'configInstructions':_0x21bccd(0x245),'configStepTitle':_0x21bccd(0x170),'configStep1':_0x21bccd(0x176),'configStep2':_0x21bccd(0x208),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x21bccd(0x25f),'sessionIdDescription':_0x21bccd(0x1e7),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x21bccd(0x23f),'maxRetries':'最大重试次数','save':_0x21bccd(0x212),'saving':_0x21bccd(0x26e),'note1':_0x21bccd(0x1dc),'note2':_0x21bccd(0x2a6),'configSaved':_0x21bccd(0x1fe),'configError':'配置保存失败','apiApplyInfo':{'title':_0x21bccd(0x1bc),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x21bccd(0x181),'getStarted':_0x21bccd(0x248)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x21bccd(0x2be),'invalidConfig':'配置无效','invalidApiKey':_0x21bccd(0x161)},'connectionStatus':{'disconnected':_0x21bccd(0x168),'connecting':_0x21bccd(0x263),'connected':_0x21bccd(0x19f),'failed':_0x21bccd(0x258),'retrying':_0x21bccd(0x16d)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x21bccd(0x2bc),'networkError':_0x21bccd(0x1cc),'maxRetriesExceeded':_0x21bccd(0x190)}}};var _0xab572d=Object[_0x21bccd(0x1ea)],_0x154823=Object[_0x21bccd(0x2d6)],_0x22a728=(_0x39f8fc,_0x2d63b5,_0xbed0be)=>_0x2d63b5 in _0x39f8fc?_0xab572d(_0x39f8fc,_0x2d63b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbed0be}):_0x39f8fc[_0x2d63b5]=_0xbed0be,_0x5a8458=(_0x4279e5,_0x4e645c,_0x158a39,_0x39c5ac)=>{const _0x25dd48=_0x21bccd;for(var _0x5dbb51=_0x39c5ac>0x1?void 0x0:_0x39c5ac?_0x154823(_0x4e645c,_0x158a39):_0x4e645c,_0x481a0f=_0x4279e5[_0x25dd48(0x24c)]-0x1,_0x18e88c;_0x481a0f>=0x0;_0x481a0f--)(_0x18e88c=_0x4279e5[_0x481a0f])&&(_0x5dbb51=_0x18e88c(_0x5dbb51)||_0x5dbb51);return _0x5dbb51;},_0x4138d7=(_0x521547,_0x547374)=>(_0x3ab7c9,_0x2e445f)=>_0x547374(_0x3ab7c9,_0x2e445f,_0x521547),_0x1f7157=(_0x54b925,_0x161dcb,_0x262ae2)=>_0x22a728(_0x54b925,_0x161dcb+'',_0x262ae2);_0x36bc69[_0x21bccd(0x254)]=class extends _0x3a1f97[_0x21bccd(0x18b)]{constructor(_0x575e9c=_0x2b5e0f,_0x50c0ca,_0x35ddca,_0x3e9e5f,_0x2d9886,_0x2d647e){const _0x5054e1=_0x21bccd;super(),this['_config']=_0x575e9c,this[_0x5054e1(0x1b9)]=_0x50c0ca,this[_0x5054e1(0x2b6)]=_0x35ddca,this[_0x5054e1(0x230)]=_0x3e9e5f,this[_0x5054e1(0x1e8)]=_0x2d9886,this[_0x5054e1(0x26d)]=_0x2d647e;const {..._0x1c9675}=_0x3a1f97['merge']({},_0x2b5e0f,this[_0x5054e1(0x2ae)]);this[_0x5054e1(0x2b6)][_0x5054e1(0x250)](_0x2eb54e,_0x1c9675);}async[_0x21bccd(0x165)](){const _0x3b9fcc=_0x21bccd,_0x26eca0=[[_0x36bc69['MCPConnectionUIController']],[_0x36bc69[_0x3b9fcc(0x256)]],[_0x36bc69[_0x3b9fcc(0x266)]]];this['_injector'][_0x3b9fcc(0x1f2)](_0x36f150[_0x3b9fcc(0x22f)])||_0x26eca0[_0x3b9fcc(0x175)]([_0x36f150[_0x3b9fcc(0x22f)],{'useClass':_0x36f150[_0x3b9fcc(0x15e)]}]),_0x26eca0['forEach'](_0x2c5b45=>this[_0x3b9fcc(0x1b9)][_0x3b9fcc(0x2d7)](_0x2c5b45)),this['_injector'][_0x3b9fcc(0x1d0)](_0x36bc69[_0x3b9fcc(0x22a)]),this[_0x3b9fcc(0x1b9)]['get'](_0x36bc69[_0x3b9fcc(0x256)]),this[_0x3b9fcc(0x1b9)]['get'](_0x36bc69[_0x3b9fcc(0x266)]);}},_0x1f7157(_0x36bc69[_0x21bccd(0x254)],_0x21bccd(0x18c),'MCP_UI_PLUGIN'),_0x36bc69[_0x21bccd(0x254)]=_0x5a8458([_0x3a1f97[_0x21bccd(0x1eb)](_0x2046b4['UniverMCPPlugin']),_0x4138d7(0x1,_0x3a1f97[_0x21bccd(0x271)](_0x3a1f97['Injector'])),_0x4138d7(0x2,_0x3a1f97[_0x21bccd(0x196)]),_0x4138d7(0x3,_0x145226[_0x21bccd(0x28a)]),_0x4138d7(0x4,_0x3a1f97['ILocalStorageService']),_0x4138d7(0x5,_0x3a1f97[_0x21bccd(0x271)](_0x3a1f97[_0x21bccd(0x284)]))],_0x36bc69[_0x21bccd(0x254)]),_0x36bc69[_0x21bccd(0x20e)]=_0x42c44c,_0x36bc69[_0x21bccd(0x286)]=_0x2f66c9,_0x36bc69[_0x21bccd(0x283)]=_0x404dc4,_0x36bc69[_0x21bccd(0x191)]=_0x17f7f7,_0x36bc69[_0x21bccd(0x270)]=_0x24098d,Object[_0x21bccd(0x1ea)](_0x36bc69,Symbol[_0x21bccd(0x1e9)],{'value':_0x21bccd(0x223)});}));
1
+ function _0x41cd(_0x36b826,_0x1177f9){const _0x566185=_0x5661();return _0x41cd=function(_0x41cdc0,_0x23d1cd){_0x41cdc0=_0x41cdc0-0x1bb;let _0x5190ae=_0x566185[_0x41cdc0];return _0x5190ae;},_0x41cd(_0x36b826,_0x1177f9);}(function(_0x1474b2,_0x299805){const _0x1b616c=_0x41cd,_0x27b8f3=_0x1474b2();while(!![]){try{const _0x5f02dc=-parseInt(_0x1b616c(0x21b))/0x1*(-parseInt(_0x1b616c(0x1f5))/0x2)+parseInt(_0x1b616c(0x26e))/0x3*(parseInt(_0x1b616c(0x2c4))/0x4)+parseInt(_0x1b616c(0x335))/0x5*(parseInt(_0x1b616c(0x327))/0x6)+parseInt(_0x1b616c(0x271))/0x7+parseInt(_0x1b616c(0x2be))/0x8+-parseInt(_0x1b616c(0x263))/0x9+-parseInt(_0x1b616c(0x1ce))/0xa;if(_0x5f02dc===_0x299805)break;else _0x27b8f3['push'](_0x27b8f3['shift']());}catch(_0x49c84f){_0x27b8f3['push'](_0x27b8f3['shift']());}}}(_0x5661,0x4159a),function(_0x346829,_0x34e7e6){const _0x15ddee=_0x41cd;typeof exports=='object'&&typeof module<'u'?_0x34e7e6(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0x15ddee(0x32e)&&define[_0x15ddee(0x315)]?define([_0x15ddee(0x216),_0x15ddee(0x2bf),_0x15ddee(0x26c),_0x15ddee(0x34e),_0x15ddee(0x316),_0x15ddee(0x2f6),_0x15ddee(0x257),'react',_0x15ddee(0x236)],_0x34e7e6):(_0x346829=typeof globalThis<'u'?globalThis:_0x346829||self,_0x34e7e6(_0x346829[_0x15ddee(0x2d8)]={},_0x346829['UniverCore'],_0x346829[_0x15ddee(0x2c5)],_0x346829[_0x15ddee(0x1f2)],_0x346829[_0x15ddee(0x23f)],_0x346829[_0x15ddee(0x2b6)],_0x346829[_0x15ddee(0x257)],_0x346829[_0x15ddee(0x2c5)],_0x346829['UniverNetwork']));}(this,function(_0x5f51a7,_0x26d949,_0x38c194,_0x5a7ab6,_0x4e3d9d,_0x3a9868,_0x51cfdc,_0x1db0a6,_0x288fc0){'use strict';const _0x461305=_0x41cd;var _0x98c210=Object['defineProperty'],_0x786bf8=(_0x136824,_0x7234d7,_0x27a0f2)=>_0x7234d7 in _0x136824?_0x98c210(_0x136824,_0x7234d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27a0f2}):_0x136824[_0x7234d7]=_0x27a0f2,_0x4fdf38=(_0x44fe8a,_0x4826ee,_0x35b1fc)=>_0x786bf8(_0x44fe8a,typeof _0x4826ee!=_0x461305(0x2d5)?_0x4826ee+'':_0x4826ee,_0x35b1fc);function _0x29ff7d({ref:_0x2b01fd,..._0x537d56}){const _0x41b2ae=_0x461305,{icon:_0x3531a1,id:_0x1e6762,className:_0x3145d4,extend:_0x3aeacf,..._0x385f8d}=_0x537d56,_0x40adf6=(_0x41b2ae(0x1ef)+_0x1e6762+'\x20'+(_0x3145d4||''))[_0x41b2ae(0x20b)](),_0x233e7e=_0x1db0a6['useRef']('_'+_0x2257e4());return _0x9ec2e4(_0x3531a1,''+_0x1e6762,{'defIds':_0x3531a1[_0x41b2ae(0x226)],'idSuffix':_0x233e7e[_0x41b2ae(0x1d3)]},{'ref':_0x2b01fd,'className':_0x40adf6,..._0x385f8d},_0x3aeacf);}function _0x9ec2e4(_0x2fc4c7,_0x2527a5,_0x32fd91,_0x56ce7f,_0x37e33c){const _0x40261f=_0x461305;return _0x1db0a6[_0x40261f(0x324)](_0x2fc4c7['tag'],{'key':_0x2527a5,..._0x188eec(_0x2fc4c7,_0x32fd91,_0x37e33c),..._0x56ce7f},(_0x3189e6(_0x2fc4c7,_0x32fd91)[_0x40261f(0x309)]||[])[_0x40261f(0x281)]((_0x5e56ca,_0x4a4224)=>_0x9ec2e4(_0x5e56ca,_0x2527a5+'-'+_0x2fc4c7[_0x40261f(0x213)]+'-'+_0x4a4224,_0x32fd91,void 0x0,_0x37e33c)));}function _0x188eec(_0x4ed7a3,_0x34911a,_0x35a415){const _0x4491dd=_0x461305,_0x157b0b={..._0x4ed7a3[_0x4491dd(0x278)]};_0x35a415!=null&&_0x35a415['colorChannel1']&&_0x157b0b[_0x4491dd(0x2a9)]==='colorChannel1'&&(_0x157b0b['fill']=_0x35a415['colorChannel1']),_0x4ed7a3['tag']==='mask'&&_0x157b0b['id']&&(_0x157b0b['id']=_0x157b0b['id']+_0x34911a[_0x4491dd(0x1d6)]),Object['entries'](_0x157b0b)[_0x4491dd(0x1e7)](([_0x3d909b,_0x399d23])=>{const _0x389c4b=_0x4491dd;_0x3d909b===_0x389c4b(0x29a)&&typeof _0x399d23==_0x389c4b(0x307)&&(_0x157b0b[_0x3d909b]=_0x399d23[_0x389c4b(0x341)](/url\(#(.*)\)/,_0x389c4b(0x242)+_0x34911a[_0x389c4b(0x1d6)]+')'));});const {defIds:_0x2b96d3}=_0x34911a;return!_0x2b96d3||_0x2b96d3[_0x4491dd(0x1f9)]===0x0||(_0x4ed7a3[_0x4491dd(0x213)]==='use'&&_0x157b0b[_0x4491dd(0x34c)]&&(_0x157b0b[_0x4491dd(0x34c)]=_0x157b0b[_0x4491dd(0x34c)]+_0x34911a[_0x4491dd(0x1d6)]),Object[_0x4491dd(0x347)](_0x157b0b)[_0x4491dd(0x1e7)](([_0x9b4bcf,_0x37aa7a])=>{const _0x2ae050=_0x4491dd;typeof _0x37aa7a==_0x2ae050(0x307)&&(_0x157b0b[_0x9b4bcf]=_0x37aa7a[_0x2ae050(0x341)](/url\(#(.*)\)/,_0x2ae050(0x242)+_0x34911a[_0x2ae050(0x1d6)]+')'));})),_0x157b0b;}function _0x3189e6(_0x427915,_0x4a8260){const _0x658074=_0x461305;var _0x19716e;const {defIds:_0x3de53f}=_0x4a8260;return!_0x3de53f||_0x3de53f[_0x658074(0x1f9)]===0x0?_0x427915:_0x427915[_0x658074(0x213)]===_0x658074(0x1be)&&((_0x19716e=_0x427915[_0x658074(0x309)])!=null&&_0x19716e['length'])?{..._0x427915,'children':_0x427915[_0x658074(0x309)][_0x658074(0x281)](_0x31d728=>typeof _0x31d728['attrs']['id']=='string'&&_0x3de53f&&_0x3de53f[_0x658074(0x2c7)](_0x31d728[_0x658074(0x278)]['id'])?{..._0x31d728,'attrs':{..._0x31d728[_0x658074(0x278)],'id':_0x31d728['attrs']['id']+_0x4a8260[_0x658074(0x1d6)]}}:_0x31d728)}:_0x427915;}function _0x2257e4(){const _0x1e54e8=_0x461305;return Math[_0x1e54e8(0x1fd)]()[_0x1e54e8(0x25c)](0x24)[_0x1e54e8(0x1db)](0x2,0x8);}_0x29ff7d[_0x461305(0x276)]=_0x461305(0x288);const _0x2041f5={'tag':'svg','attrs':{'xmlns':_0x461305(0x310),'fill':_0x461305(0x282),'viewBox':_0x461305(0x1c4),'width':'1em','height':_0x461305(0x2f8)},'children':[{'tag':'path','attrs':{'fill':_0x461305(0x2fd),'d':_0x461305(0x319),'fillRule':_0x461305(0x2ff),'clipRule':_0x461305(0x2ff)}}]},_0x1fca24=_0x1db0a6[_0x461305(0x225)](function(_0x2a7205,_0xe41028){const _0x3ea4ff=_0x461305;return _0x1db0a6['createElement'](_0x29ff7d,Object['assign']({},_0x2a7205,{'id':_0x3ea4ff(0x29e),'ref':_0xe41028,'icon':_0x2041f5}));});_0x1fca24[_0x461305(0x276)]=_0x461305(0x286);const _0x35abb4={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x461305(0x282),'viewBox':_0x461305(0x1c4),'width':_0x461305(0x2f8),'height':_0x461305(0x2f8)},'children':[{'tag':_0x461305(0x1e4),'attrs':{'fill':'currentColor','d':_0x461305(0x1c9)}}]},_0x15e3bf=_0x1db0a6[_0x461305(0x225)](function(_0x1339d2,_0x322f6d){const _0x344878=_0x461305;return _0x1db0a6[_0x344878(0x324)](_0x29ff7d,Object[_0x344878(0x27e)]({},_0x1339d2,{'id':_0x344878(0x23a),'ref':_0x322f6d,'icon':_0x35abb4}));});_0x15e3bf['displayName']='CloseIcon';const _0x5ba1b6={'tag':_0x461305(0x215),'attrs':{'xmlns':_0x461305(0x310),'fill':_0x461305(0x282),'viewBox':_0x461305(0x1c4),'width':_0x461305(0x2f8),'height':_0x461305(0x2f8)},'children':[{'tag':_0x461305(0x1e4),'attrs':{'fill':_0x461305(0x2fd),'d':_0x461305(0x2d0)}},{'tag':_0x461305(0x1e4),'attrs':{'fill':_0x461305(0x2fd),'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':_0x461305(0x1e4),'attrs':{'fill':'currentColor','d':_0x461305(0x273),'fillRule':_0x461305(0x2ff),'clipRule':_0x461305(0x2ff)}}]},_0xe180e6=_0x1db0a6['forwardRef'](function(_0x5d7891,_0x59029b){const _0x524159=_0x461305;return _0x1db0a6[_0x524159(0x324)](_0x29ff7d,Object[_0x524159(0x27e)]({},_0x5d7891,{'id':'help-icon','ref':_0x59029b,'icon':_0x5ba1b6}));});_0xe180e6['displayName']=_0x461305(0x223);const _0x3cfccb={'tag':_0x461305(0x215),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x461305(0x282),'viewBox':_0x461305(0x1c4),'width':_0x461305(0x2f8),'height':_0x461305(0x2f8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x461305(0x2fd),'d':_0x461305(0x338),'strokeLinecap':_0x461305(0x22b),'strokeLinejoin':_0x461305(0x22b),'strokeWidth':1.2}}]},{'tag':_0x461305(0x1be),'attrs':{},'children':[{'tag':_0x461305(0x33a),'attrs':{'id':_0x461305(0x30a)},'children':[{'tag':'path','attrs':{'fill':_0x461305(0x33d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x461305(0x30a)]},_0x57f1c1=_0x1db0a6[_0x461305(0x225)](function(_0x31c88d,_0x12a70e){const _0xa334f8=_0x461305;return _0x1db0a6[_0xa334f8(0x324)](_0x29ff7d,Object[_0xa334f8(0x27e)]({},_0x31c88d,{'id':_0xa334f8(0x1de),'ref':_0x12a70e,'icon':_0x3cfccb}));});_0x57f1c1[_0x461305(0x276)]=_0x461305(0x1d0);const _0x35139a={'tag':_0x461305(0x215),'attrs':{'xmlns':_0x461305(0x310),'fill':_0x461305(0x282),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x461305(0x2f8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x461305(0x1e4),'attrs':{'stroke':_0x461305(0x2fd),'d':_0x461305(0x1f7),'strokeLinecap':'round','strokeLinejoin':_0x461305(0x22b),'strokeWidth':1.2}}]},{'tag':_0x461305(0x1be),'attrs':{},'children':[{'tag':_0x461305(0x33a),'attrs':{'id':_0x461305(0x235)},'children':[{'tag':_0x461305(0x1e4),'attrs':{'fill':_0x461305(0x33d),'d':_0x461305(0x270),'transform':_0x461305(0x314)}}]}]}],'defIds':[_0x461305(0x235)]},_0x4a410a=_0x1db0a6['forwardRef'](function(_0x3d8ca7,_0x397240){const _0x54e1eb=_0x461305;return _0x1db0a6[_0x54e1eb(0x324)](_0x29ff7d,Object[_0x54e1eb(0x27e)]({},_0x3d8ca7,{'id':_0x54e1eb(0x26a),'ref':_0x397240,'icon':_0x35139a}));});_0x4a410a[_0x461305(0x276)]=_0x461305(0x27c);function _0x3d5b84(_0x460a0b){const _0x209c59=_0x461305;var _0x27e513,_0x398837;const {mcpCoreConfig:_0x24aa48,onSave:_0x35a51e,loading:_0x5a6ab4=!0x1,config:_0x3e6979,connectionStatus$:_0x27ce6d,connectionError$:_0x5324fb,currentApiKey$:_0x431dc8,currentSessionId$:_0x57638f}=_0x460a0b,_0x156c82=_0x3a9868[_0x209c59(0x339)](_0x26d949[_0x209c59(0x1d5)]),_0x4666e2=_0x3a9868[_0x209c59(0x253)](_0x27ce6d,_0x5a7ab6[_0x209c59(0x2fb)][_0x209c59(0x219)]),_0x33e2e1=_0x3a9868['useObservable'](_0x5324fb,_0x5a7ab6['MCPConnectionError'][_0x209c59(0x20e)]),_0x5ba41d=_0x3a9868['useObservable'](_0x57638f,''),_0x2e0198=_0x3a9868[_0x209c59(0x253)](_0x431dc8,''),[_0x223dd3,_0x15d814]=_0x1db0a6['useState'](_0x2e0198||''),_0x37ae18=!0x0,_0x157474=_0x3e6979[_0x209c59(0x24e)]&&_0x24aa48[_0x209c59(0x2a4)]&&(_0x24aa48[_0x209c59(0x2a4)][_0x209c59(0x2c7)](_0x209c59(0x1cd))||_0x24aa48[_0x209c59(0x2a4)][_0x209c59(0x2c7)](_0x209c59(0x31f))),_0x320988=(_0x27e513=_0x24aa48[_0x209c59(0x2a4)])==null?void 0x0:_0x27e513[_0x209c59(0x2c7)](_0x209c59(0x1cd)),_0x2a3857=(_0x398837=_0x24aa48[_0x209c59(0x2a4)])==null?void 0x0:_0x398837[_0x209c59(0x2c7)](_0x209c59(0x31f)),_0x27481d=_0x320988?_0x209c59(0x2f5):_0x209c59(0x29c),_0x48bdb8=_0x3e6979['showDeveloperTools']&&(_0x320988||_0x2a3857),[_0x5714bc,_0x1de6c9]=_0x1db0a6['useState'](!_0x223dd3[_0x209c59(0x20b)]()),_0x30411a=(_0x57e1c6,_0x38892f)=>{const _0x2ce227=_0x209c59;if(_0x38892f===_0x5a7ab6[_0x2ce227(0x1d8)][_0x2ce227(0x204)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x57e1c6){case _0x5a7ab6[_0x2ce227(0x2fb)][_0x2ce227(0x2f2)]:return _0x2ce227(0x305);case _0x5a7ab6[_0x2ce227(0x2fb)][_0x2ce227(0x331)]:case _0x5a7ab6[_0x2ce227(0x2fb)][_0x2ce227(0x33b)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x5a7ab6['MCPConnectionStatus']['FAILED']:return _0x2ce227(0x32f);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1ed1b4=(_0x43510e,_0x225306)=>{const _0xc7f05=_0x209c59;if(_0x225306===_0x5a7ab6[_0xc7f05(0x1d8)][_0xc7f05(0x204)])return _0xc7f05(0x2f3);switch(_0x43510e){case _0x5a7ab6['MCPConnectionStatus']['CONNECTED']:return _0xc7f05(0x240);case _0x5a7ab6[_0xc7f05(0x2fb)][_0xc7f05(0x331)]:case _0x5a7ab6[_0xc7f05(0x2fb)]['RETRYING']:return _0xc7f05(0x251);case _0x5a7ab6[_0xc7f05(0x2fb)][_0xc7f05(0x24f)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x4b1d1d=_0x54c4c8=>{const _0x182c8f=_0x209c59;switch(_0x54c4c8){case _0x5a7ab6['MCPConnectionStatus'][_0x182c8f(0x2f2)]:return _0x156c82['t'](_0x182c8f(0x2de));case _0x5a7ab6[_0x182c8f(0x2fb)][_0x182c8f(0x331)]:return _0x156c82['t']('mcpConfig.connectionStatus.connecting');case _0x5a7ab6[_0x182c8f(0x2fb)][_0x182c8f(0x24f)]:return _0x156c82['t'](_0x182c8f(0x22c));case _0x5a7ab6[_0x182c8f(0x2fb)][_0x182c8f(0x33b)]:return _0x156c82['t']('mcpConfig.connectionStatus.retrying');default:return _0x156c82['t'](_0x182c8f(0x2db));}},_0x20968f=_0x3ced72=>{const _0x414ac8=_0x209c59;switch(_0x3ced72){case _0x5a7ab6[_0x414ac8(0x1d8)]['UNAUTHORIZED']:return _0x156c82['t'](_0x414ac8(0x254));case _0x5a7ab6['MCPConnectionError'][_0x414ac8(0x349)]:return _0x156c82['t'](_0x414ac8(0x217));case _0x5a7ab6[_0x414ac8(0x1d8)][_0x414ac8(0x2ab)]:return _0x156c82['t'](_0x414ac8(0x22a));case _0x5a7ab6[_0x414ac8(0x1d8)][_0x414ac8(0x265)]:return _0x156c82['t'](_0x414ac8(0x2da));default:return'';}},_0x2578e3=_0x1db0a6[_0x209c59(0x348)](()=>{const _0x265828=_0x209c59,_0x201e1e={..._0x24aa48,'apiKey':_0x223dd3[_0x265828(0x20b)](),'enableAuth':_0x37ae18};_0x35a51e(_0x201e1e);},[_0x24aa48,_0x223dd3,_0x37ae18,_0x35a51e]),_0x246a6f=_0x223dd3['trim']()[_0x209c59(0x1f9)]>0x0;return _0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x1f8),'children':_0x38c194[_0x209c59(0x2d3)]('div',{'className':_0x209c59(0x28d),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x1e1),'children':_0x38c194['jsx'](_0x209c59(0x29d),{'className':'univer-text-white','children':'⚙'})}),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'children':_0x38c194[_0x209c59(0x31c)]('p',{'className':_0x209c59(0x21c),'children':_0x156c82['t'](_0x209c59(0x1e5))})})]})}),_0x38c194[_0x209c59(0x2d3)]('div',{'className':_0x209c59(0x31e),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x4e3d9d['clsx'](_0x209c59(0x26d),_0x30411a(_0x4666e2,_0x33e2e1)),'children':_0x38c194['jsxs'](_0x209c59(0x2f4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x38c194[_0x209c59(0x31c)]('div',{'className':_0x4e3d9d[_0x209c59(0x221)](_0x209c59(0x1c5),_0x1ed1b4(_0x4666e2,_0x33e2e1))}),_0x38c194[_0x209c59(0x31c)]('span',{'className':_0x209c59(0x33c),'children':_0x4b1d1d(_0x4666e2)})]})}),_0x33e2e1!==_0x5a7ab6[_0x209c59(0x1d8)][_0x209c59(0x20e)]&&(_0x4666e2===_0x5a7ab6[_0x209c59(0x2fb)]['FAILED']||_0x33e2e1===_0x5a7ab6[_0x209c59(0x1d8)][_0x209c59(0x204)])&&_0x38c194['jsx'](_0x209c59(0x2f4),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x38c194['jsxs'](_0x209c59(0x2f4),{'className':_0x209c59(0x328),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'className':_0x209c59(0x201),'children':'⚠️'}),_0x38c194[_0x209c59(0x31c)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x20968f(_0x33e2e1)})]})})]}),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x2b9),'children':_0x38c194['jsxs'](_0x209c59(0x2f4),{'className':_0x209c59(0x33f),'children':[_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x260),'children':[_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x231),{'className':_0x209c59(0x26b),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'children':'🔑'}),'\x20',_0x156c82['t'](_0x209c59(0x24d)),_0x38c194[_0x209c59(0x31c)]('span',{'className':_0x209c59(0x2c8),'children':'*'}),_0x157474&&_0x38c194[_0x209c59(0x31c)]('a',{'className':_0x209c59(0x30b),'title':_0x156c82['t'](_0x209c59(0x230)),'role':_0x209c59(0x320),'onClick':()=>_0x1de6c9(!0x0),'children':_0x38c194[_0x209c59(0x31c)](_0xe180e6,{})})]}),_0x38c194[_0x209c59(0x31c)](_0x4e3d9d[_0x209c59(0x2c0)],{'type':_0x209c59(0x2bc),'placeholder':_0x156c82['t'](_0x209c59(0x1df)),'value':_0x223dd3,'disabled':_0x5a6ab4,'autoComplete':_0x209c59(0x34a),'onChange':_0x15d814}),_0x38c194[_0x209c59(0x31c)]('p',{'className':_0x209c59(0x272),'children':_0x156c82['t']('mcpConfig.apiKeyHint')})]}),_0x157474&&_0x5714bc&&_0x38c194['jsxs'](_0x209c59(0x2f4),{'className':_0x209c59(0x266),'children':[_0x38c194[_0x209c59(0x31c)]('a',{'className':_0x209c59(0x2cb),'role':_0x209c59(0x320),'onClick':()=>_0x1de6c9(!0x1),'children':_0x38c194[_0x209c59(0x31c)](_0x15e3bf,{'className':'univer-size-4'})}),_0x38c194['jsxs']('div',{'className':_0x209c59(0x2dd),'children':[_0x38c194[_0x209c59(0x31c)]('div',{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'className':'univer-text-blue-600','children':'🚀'})}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x261),'children':[_0x38c194[_0x209c59(0x31c)]('h4',{'className':_0x209c59(0x21f),'children':_0x156c82['t'](_0x209c59(0x230))}),_0x38c194[_0x209c59(0x31c)]('p',{'className':_0x209c59(0x238),'children':_0x156c82['t']('mcpConfig.apiApplyInfo.description')}),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x48bdb8&&_0x38c194[_0x209c59(0x2d3)]('a',{'className':_0x209c59(0x333),'href':_0x27481d,'target':_0x209c59(0x241),'rel':'noopener\x20noreferrer','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'children':'🤖'}),_0x156c82['t'](_0x209c59(0x289)),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'className':_0x209c59(0x1f6),'children':'↗'})]})}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x1f3),'children':['✨','\x20',_0x156c82['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x3e6979['showDeveloperTools']&&_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x32b),'children':[_0x38c194[_0x209c59(0x2d3)]('h4',{'className':_0x209c59(0x330),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'children':'🔗'}),'\x20',_0x156c82['t']('mcpConfig.connectionInfo')]}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x291),'children':[_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x1fe),'children':[_0x38c194[_0x209c59(0x31c)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x156c82['t'](_0x209c59(0x297))}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':'univer-space-y-2','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x2b3),'children':_0x156c82['t'](_0x209c59(0x264))}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x28b),'children':[_0x38c194['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x38c194['jsx'](_0x209c59(0x29d),{'className':_0x209c59(0x234),'children':'1'}),_0x156c82['t'](_0x209c59(0x256))]}),_0x38c194[_0x209c59(0x2d3)]('div',{'className':_0x209c59(0x1d2),'children':[_0x38c194[_0x209c59(0x31c)]('span',{'className':_0x209c59(0x234),'children':'2'}),_0x156c82['t'](_0x209c59(0x259))]}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x1d2),'children':[_0x38c194[_0x209c59(0x31c)]('span',{'className':_0x209c59(0x234),'children':'3'}),_0x156c82['t'](_0x209c59(0x27a))]})]})]})]}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x260),'children':[_0x38c194[_0x209c59(0x31c)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),_0x38c194['jsx'](_0x209c59(0x2f4),{'className':_0x209c59(0x1bd),'children':_0x38c194[_0x209c59(0x31c)](_0x209c59(0x312),{'className':_0x209c59(0x2a2),'children':JSON[_0x209c59(0x1c3)]({'mcpServers':{'univer':{'url':_0x209c59(0x2b8)+(_0x5ba41d||_0x209c59(0x20c)),'type':_0x209c59(0x243),'headers':{'Authorization':_0x209c59(0x250)+(_0x223dd3||_0x209c59(0x1ee))}}}},null,0x2)})})]}),_0x38c194[_0x209c59(0x2d3)]('div',{'className':_0x209c59(0x1fe),'children':[_0x38c194['jsx'](_0x209c59(0x2f4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x156c82['t'](_0x209c59(0x2e6))}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':'univer-space-y-2','children':[_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x2c2),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x1da)}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x209c59(0x300)}),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x272),'children':_0x156c82['t'](_0x209c59(0x1ed))})]})]}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x2c2),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x1da)}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x2fa),'children':_0x209c59(0x1e3)}),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x272),'children':_0x156c82['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x38c194[_0x209c59(0x31c)](_0x4e3d9d['Button'],{'onClick':_0x2578e3,'disabled':!_0x246a6f||_0x5a6ab4,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x5a6ab4?_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x29d),{'className':_0x209c59(0x1d2),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'children':'⟲'}),_0x156c82['t']('mcpConfig.saving')]}):_0x38c194[_0x209c59(0x2d3)]('span',{'className':_0x209c59(0x1d2),'children':[_0x38c194[_0x209c59(0x31c)](_0x1fca24,{}),_0x156c82['t'](_0x209c59(0x323))]})}),_0x38c194['jsx']('div',{'className':_0x209c59(0x25a),'children':_0x38c194[_0x209c59(0x2d3)]('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'className':_0x209c59(0x318),'children':'💡'}),_0x38c194[_0x209c59(0x2d3)]('div',{'className':_0x209c59(0x1f1),'children':[_0x38c194['jsx'](_0x209c59(0x2f4),{'className':'univer-font-medium','children':_0x209c59(0x247)}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'children':['•',_0x156c82['t'](_0x209c59(0x2c1))]}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'children':['•',_0x156c82['t'](_0x209c59(0x1e8))]})]})]})})]})})]});}const _0xd37888=_0x461305(0x2ba),_0x45e5af={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x2fd63d=Object['getOwnPropertyDescriptor'],_0x2c110c=(_0x1431e1,_0x412d88,_0x1750aa,_0x5eb3bc)=>{const _0x24174f=_0x461305;for(var _0x3ffd66=_0x5eb3bc>0x1?void 0x0:_0x5eb3bc?_0x2fd63d(_0x412d88,_0x1750aa):_0x412d88,_0x16143c=_0x1431e1[_0x24174f(0x1f9)]-0x1,_0x1cf9bc;_0x16143c>=0x0;_0x16143c--)(_0x1cf9bc=_0x1431e1[_0x16143c])&&(_0x3ffd66=_0x1cf9bc(_0x3ffd66)||_0x3ffd66);return _0x3ffd66;},_0x2a543f=(_0x16b653,_0x2ecc19)=>(_0x540eaf,_0x4226cd)=>_0x2ecc19(_0x540eaf,_0x4226cd,_0x16b653);const _0x363d7d=_0x461305(0x2df),_0x183f93=_0x461305(0x2bd);_0x5f51a7[_0x461305(0x24c)]=class extends _0x26d949[_0x461305(0x30c)]{constructor(_0x462cd6,_0x293e8d,_0x381cf2,_0x3ac407,_0x73ab6e,_0x47d7b7,_0x27ecf9,_0x16d8ba,_0x493201,_0x95e34b){const _0x43d0b=_0x461305;super(),_0x4fdf38(this,_0x43d0b(0x220),new _0x51cfdc[(_0x43d0b(0x21e))](!0x1)),_0x4fdf38(this,_0x43d0b(0x258),new _0x51cfdc['BehaviorSubject']({})),_0x4fdf38(this,'_config$',new _0x51cfdc[(_0x43d0b(0x21e))]({})),_0x4fdf38(this,_0x43d0b(0x1d9),new _0x51cfdc['BehaviorSubject']('')),_0x4fdf38(this,'_handleConfigSave',async _0xc8ce45=>{const _0x3ea544=_0x43d0b;var _0x45918d,_0x52297c;this[_0x3ea544(0x220)]['next'](!0x0);try{const _0x187b50=await this['_validateConfig'](_0xc8ce45);if(!_0x187b50[_0x3ea544(0x2b5)]){this[_0x3ea544(0x301)][_0x3ea544(0x1fb)]({'type':_0x4e3d9d[_0x3ea544(0x334)]['Error'],'content':_0x187b50[_0x3ea544(0x1f4)]||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0xc8ce45[_0x3ea544(0x30e)]?await this[_0x3ea544(0x25b)][_0x3ea544(0x299)](_0x363d7d,_0xc8ce45[_0x3ea544(0x30e)][_0x3ea544(0x20b)]()):await this[_0x3ea544(0x25b)]['removeItem'](_0x363d7d),this[_0x3ea544(0x1d9)][_0x3ea544(0x285)](((_0x45918d=_0xc8ce45[_0x3ea544(0x30e)])==null?void 0x0:_0x45918d[_0x3ea544(0x20b)]())||''),this[_0x3ea544(0x222)]['__setCustomHeaders']({'Authorization':_0x3ea544(0x250)+((_0x52297c=_0xc8ce45[_0x3ea544(0x30e)])==null?void 0x0:_0x52297c['trim']())}),this['_messageService'][_0x3ea544(0x1fb)]({'type':_0x4e3d9d['MessageType'][_0x3ea544(0x2e9)],'content':this[_0x3ea544(0x279)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x1b4268=_0x3ea544;this[_0x1b4268(0x2a0)]['close'](_0x183f93);},0x320);}catch(_0x5859ab){this[_0x3ea544(0x22d)]['error'](_0x3ea544(0x214),_0x5859ab),this['_messageService'][_0x3ea544(0x1fb)]({'type':_0x4e3d9d['MessageType'][_0x3ea544(0x2e3)],'content':this[_0x3ea544(0x279)]['t'](_0x3ea544(0x2c9))});}finally{this[_0x3ea544(0x220)]['next'](!0x1);}}),(this[_0x43d0b(0x23d)]=_0x462cd6,this[_0x43d0b(0x321)]=_0x293e8d,this[_0x43d0b(0x298)]=_0x381cf2,this[_0x43d0b(0x25b)]=_0x3ac407,this[_0x43d0b(0x2a0)]=_0x73ab6e,this['_messageService']=_0x47d7b7,this[_0x43d0b(0x28f)]=_0x27ecf9,this[_0x43d0b(0x279)]=_0x16d8ba,this[_0x43d0b(0x22d)]=_0x493201,this[_0x43d0b(0x222)]=_0x95e34b,this['_initConfigSync'](),this['_loadStoredApiKey'](),this[_0x43d0b(0x302)]());}[_0x461305(0x1dc)](){const _0x19125e=_0x461305,_0x53055b=this[_0x19125e(0x298)][_0x19125e(0x2e7)](_0xd37888);_0x53055b!=null&&_0x53055b[_0x19125e(0x24e)]&&this[_0x19125e(0x2a0)][_0x19125e(0x1c6)]({'id':_0x183f93,'title':{'title':this[_0x19125e(0x279)]['t'](_0x19125e(0x205))},'children':{'label':_0x19125e(0x203)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2e7cbd=_0x19125e;this[_0x2e7cbd(0x2a0)][_0x2e7cbd(0x2d9)](_0x183f93);}});}[_0x461305(0x31a)](){return this['_mcpCoreConfig$']['value'];}[_0x461305(0x302)](){const _0x549ab0=_0x461305;this['disposeWithMe'](this['_componentManager'][_0x549ab0(0x228)](_0x549ab0(0x203),this['_createConfigPanelComponent']()));}[_0x461305(0x1d4)](){const _0x10ee16=_0x461305;return _0x3a9868[_0x10ee16(0x233)](()=>{const _0x1e7b24=_0x10ee16;var _0x4c00f7,_0x1ac555,_0x5af41e;return _0x38c194[_0x1e7b24(0x31c)](_0x3d5b84,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x1e7b24(0x258)][_0x1e7b24(0x332)],'currentApiKey$':this[_0x1e7b24(0x1d9)],'onSave':this['_handleConfigSave'],'loading':this[_0x1e7b24(0x220)][_0x1e7b24(0x332)],'connectionStatus$':(_0x4c00f7=this[_0x1e7b24(0x222)])==null?void 0x0:_0x4c00f7[_0x1e7b24(0x32c)],'connectionError$':(_0x1ac555=this[_0x1e7b24(0x222)])==null?void 0x0:_0x1ac555['connectionError$'],'currentSessionId$':(_0x5af41e=this[_0x1e7b24(0x222)])==null?void 0x0:_0x5af41e['sessionId$']});},this[_0x10ee16(0x23d)]);}['_initConfigSync'](){const _0xb7ab4d=_0x461305;this[_0xb7ab4d(0x2e1)](this['_configService'][_0xb7ab4d(0x2f0)](_0x5a7ab6[_0xb7ab4d(0x27d)])['subscribe'](_0x437c2a=>{const _0x199e83=_0xb7ab4d;this[_0x199e83(0x258)][_0x199e83(0x285)](_0x437c2a||{});}));const _0x1018d9=this[_0xb7ab4d(0x298)]['getConfig'](_0x5a7ab6[_0xb7ab4d(0x27d)]);this[_0xb7ab4d(0x258)][_0xb7ab4d(0x285)](_0x1018d9||{}),this['disposeWithMe'](this[_0xb7ab4d(0x298)][_0xb7ab4d(0x2f0)](_0xd37888)['subscribe'](_0x35b802=>{const _0x2f84a7=_0xb7ab4d;this[_0x2f84a7(0x1bf)][_0x2f84a7(0x285)](_0x35b802||{});}));const _0x112c82=this[_0xb7ab4d(0x298)][_0xb7ab4d(0x2e7)](_0xd37888);this[_0xb7ab4d(0x1bf)][_0xb7ab4d(0x285)](_0x112c82||{});}async['_loadStoredApiKey'](){const _0x578278=_0x461305,_0x2f4a00=this['_configService'][_0x578278(0x2e7)](_0xd37888);if(!(_0x2f4a00!=null&&_0x2f4a00[_0x578278(0x24e)]))return;const _0x2107cb=await this[_0x578278(0x25b)][_0x578278(0x296)](_0x363d7d);_0x2107cb&&(this['_mcpConnectionController'][_0x578278(0x2cf)]({'Authorization':_0x578278(0x250)+_0x2107cb}),this[_0x578278(0x1d9)]['next'](_0x2107cb));}async[_0x461305(0x303)](_0x39f945){const _0x56cec3=_0x461305;if(!_0x39f945[_0x56cec3(0x30e)]||_0x39f945[_0x56cec3(0x30e)][_0x56cec3(0x20b)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x56cec3(0x279)]['t'](_0x56cec3(0x1fa))};if(_0x39f945[_0x56cec3(0x30e)][_0x56cec3(0x20b)]()[_0x56cec3(0x1f9)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x56cec3(0x2f7))};try{const _0x295582=await this[_0x56cec3(0x23d)][_0x56cec3(0x2c3)](_0x5a7ab6[_0x56cec3(0x2a7)])[_0x56cec3(0x246)](_0x39f945[_0x56cec3(0x30e)][_0x56cec3(0x20b)]());return _0x295582[_0x56cec3(0x2b5)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x295582[_0x56cec3(0x2ca)]||this[_0x56cec3(0x279)]['t'](_0x56cec3(0x306))};}catch(_0x3c65f6){return console[_0x56cec3(0x2b4)](_0x56cec3(0x2af),_0x3c65f6),{'isValid':!0x0};}}},_0x5f51a7[_0x461305(0x24c)]=_0x2c110c([_0x2a543f(0x0,_0x26d949[_0x461305(0x2a5)](_0x26d949[_0x461305(0x2a8)])),_0x2a543f(0x1,_0x3a9868[_0x461305(0x2ee)]),_0x2a543f(0x2,_0x26d949[_0x461305(0x20f)]),_0x2a543f(0x3,_0x26d949[_0x461305(0x206)]),_0x2a543f(0x4,_0x3a9868['IDialogService']),_0x2a543f(0x5,_0x3a9868[_0x461305(0x2ea)]),_0x2a543f(0x6,_0x26d949['Inject'](_0x3a9868[_0x461305(0x26f)])),_0x2a543f(0x7,_0x26d949[_0x461305(0x2a5)](_0x26d949[_0x461305(0x1d5)])),_0x2a543f(0x8,_0x26d949[_0x461305(0x2f1)]),_0x2a543f(0x9,_0x26d949['Inject'](_0x5a7ab6[_0x461305(0x2a7)]))],_0x5f51a7['MCPConfigUIController']);const _0x1acef4={'id':_0x461305(0x2ec),'type':_0x26d949[_0x461305(0x229)][_0x461305(0x29b)],'handler':async(_0x15da68,_0x4bcecd)=>(_0x15da68['get'](_0x5f51a7[_0x461305(0x24c)])[_0x461305(0x1dc)](),!0x0)};function _0x37ea3a(_0x17cafd,_0x15352b){const _0x4891f7=_0x461305;switch(_0x17cafd){case _0x5a7ab6['MCPConnectionStatus']['DISCONNECTED']:return'mcpStatus.disconnected';case _0x5a7ab6[_0x4891f7(0x2fb)][_0x4891f7(0x331)]:return _0x4891f7(0x29f);case _0x5a7ab6['MCPConnectionStatus'][_0x4891f7(0x2f2)]:return'mcpStatus.connected';case _0x5a7ab6[_0x4891f7(0x2fb)][_0x4891f7(0x24f)]:switch(_0x15352b){case _0x5a7ab6['MCPConnectionError']['UNAUTHORIZED']:return _0x4891f7(0x2ef);case _0x5a7ab6[_0x4891f7(0x1d8)][_0x4891f7(0x349)]:return'mcpStatus.sessionOccupied';case _0x5a7ab6['MCPConnectionError'][_0x4891f7(0x2ab)]:return _0x4891f7(0x1bc);case _0x5a7ab6[_0x4891f7(0x1d8)][_0x4891f7(0x265)]:return _0x4891f7(0x2ac);default:return _0x4891f7(0x308);}case _0x5a7ab6['MCPConnectionStatus']['RETRYING']:return _0x4891f7(0x267);default:return'mcpStatus.unknown';}}function _0x464b84(_0x7311f4,_0x5db16f,_0x3dce19,_0xb5a3e3=!0x0){const _0x1fb9e0=_0x461305,_0x21f874=_0x37ea3a(_0x7311f4,_0x5db16f),_0x4cd422=_0x3dce19['t'](_0x21f874);return _0xb5a3e3?_0x7311f4===_0x5a7ab6[_0x1fb9e0(0x2fb)]['DISCONNECTED']&&_0x5db16f===_0x5a7ab6[_0x1fb9e0(0x1d8)]['UNAUTHORIZED']?_0x4cd422+'\x20-\x20'+_0x3dce19['t'](_0x1fb9e0(0x211)):_0x7311f4===_0x5a7ab6[_0x1fb9e0(0x2fb)][_0x1fb9e0(0x2f2)]?''+_0x4cd422:_0x7311f4===_0x5a7ab6[_0x1fb9e0(0x2fb)][_0x1fb9e0(0x219)]||_0x7311f4===_0x5a7ab6[_0x1fb9e0(0x2fb)]['FAILED']?_0x4cd422+_0x1fb9e0(0x237)+_0x3dce19['t'](_0x1fb9e0(0x232)):_0x4cd422:_0x4cd422;}function _0x512d63(_0x30e141){const _0x5423b1=_0x461305;switch(_0x30e141){case _0x5a7ab6[_0x5423b1(0x2fb)][_0x5423b1(0x2f2)]:return _0x5423b1(0x2b1);case _0x5a7ab6[_0x5423b1(0x2fb)][_0x5423b1(0x331)]:case _0x5a7ab6[_0x5423b1(0x2fb)][_0x5423b1(0x33b)]:return _0x5423b1(0x23e);case _0x5a7ab6[_0x5423b1(0x2fb)]['FAILED']:case _0x5a7ab6[_0x5423b1(0x2fb)][_0x5423b1(0x219)]:return'univer-text-red-500';default:return _0x5423b1(0x2cd);}}function _0x315397(_0x5e8c68){const _0xcc416b=_0x461305,{status$:_0x226f8d,error$:_0x5df3a8,onConfigure:_0x353064,showClickable:_0x46b909=!0x0}=_0x5e8c68,_0x5b75d3=_0x3a9868[_0xcc416b(0x253)](_0x226f8d,_0x5a7ab6[_0xcc416b(0x2fb)][_0xcc416b(0x219)]),_0x541779=_0x3a9868['useObservable'](_0x5df3a8,_0x5a7ab6[_0xcc416b(0x1d8)][_0xcc416b(0x20e)]),_0x2a0b2d=_0x3a9868[_0xcc416b(0x339)](_0x26d949[_0xcc416b(0x1d5)]),_0xce4e7d=_0x5b75d3===_0x5a7ab6['MCPConnectionStatus'][_0xcc416b(0x2f2)];_0x5b75d3===_0x5a7ab6['MCPConnectionStatus'][_0xcc416b(0x331)]||_0x5a7ab6[_0xcc416b(0x2fb)]['RETRYING'];const _0x45664e=_0x2a0b2d['t'](_0x37ea3a(_0x5b75d3,_0x541779)),_0xe63a8d=_0x464b84(_0x5b75d3,_0x541779,_0x2a0b2d,_0x46b909),_0x13fe8c=_0x512d63(_0x5b75d3),_0x2e41d9=_0xce4e7d?_0x38c194[_0xcc416b(0x31c)](_0x4a410a,{}):_0x38c194['jsx'](_0x57f1c1,{}),_0x413cac=_0x1db0a6[_0xcc416b(0x348)](()=>{_0x46b909&&_0x353064&&_0x353064();},[_0x46b909,_0x353064]);function _0x11d07e(){const _0x432fcf=_0xcc416b;return _0x38c194[_0x432fcf(0x2d3)](_0x432fcf(0x2f4),{'className':_0x4e3d9d['clsx'](_0x432fcf(0x284),_0x46b909&&_0x353064&&_0x432fcf(0x30d)),'role':_0x432fcf(0x320),'onClick':_0x46b909&&_0x353064?_0x413cac:void 0x0,'children':[_0x38c194[_0x432fcf(0x31c)](_0x432fcf(0x2f4),{'className':_0x4e3d9d[_0x432fcf(0x221)](_0x432fcf(0x329),_0x13fe8c),'children':_0x2e41d9}),_0x38c194[_0x432fcf(0x31c)]('div',{'className':_0x432fcf(0x227),'children':_0x45664e})]});}return _0x38c194[_0xcc416b(0x31c)](_0x4e3d9d[_0xcc416b(0x239)],{'title':_0xe63a8d,'placement':_0xcc416b(0x2e0),'children':_0x11d07e()});}var _0x1d6cd2=Object[_0x461305(0x2b2)],_0x3e90f4=(_0x5b435e,_0x3b6bc7,_0x24e971,_0x420197)=>{const _0x2b8304=_0x461305;for(var _0x915d1b=_0x420197>0x1?void 0x0:_0x420197?_0x1d6cd2(_0x3b6bc7,_0x24e971):_0x3b6bc7,_0x222b45=_0x5b435e[_0x2b8304(0x1f9)]-0x1,_0x33e0dd;_0x222b45>=0x0;_0x222b45--)(_0x33e0dd=_0x5b435e[_0x222b45])&&(_0x915d1b=_0x33e0dd(_0x915d1b)||_0x915d1b);return _0x915d1b;},_0x2d7ebf=(_0xdf607d,_0x1af55f)=>(_0x2b3d70,_0x26f6d4)=>_0x1af55f(_0x2b3d70,_0x26f6d4,_0xdf607d);_0x5f51a7['MCPConnectionUIController']=class extends _0x26d949[_0x461305(0x30c)]{constructor(_0x2c23fa,_0x3b9ae2,_0x4fd556,_0x11bda7){const _0x5c1514=_0x461305;super(),this[_0x5c1514(0x23d)]=_0x2c23fa,this[_0x5c1514(0x252)]=_0x3b9ae2,this[_0x5c1514(0x321)]=_0x4fd556,this['_configService']=_0x11bda7,this[_0x5c1514(0x1bb)](),this[_0x5c1514(0x2a3)]();}['_initAutoConnect'](){const _0x86cf4a=_0x461305,_0x3ccebe=this[_0x86cf4a(0x298)]['getConfig'](_0xd37888);_0x3ccebe!=null&&_0x3ccebe[_0x86cf4a(0x24e)]&&(this[_0x86cf4a(0x252)][_0x86cf4a(0x24b)]=!0x1);}[_0x461305(0x2a3)](){const _0x18e379=_0x461305,_0x5a969e=this[_0x18e379(0x298)][_0x18e379(0x2e7)](_0xd37888);(_0x5a969e==null?void 0x0:_0x5a969e[_0x18e379(0x31d)])!==!0x1&&this[_0x18e379(0x2e1)](this['_uiPartsService'][_0x18e379(0x28a)](_0x3a9868[_0x18e379(0x1ec)]['HEADER_MENU'],()=>{const _0x3d51b2=_0x18e379;var _0x160e2c;return _0x3a9868[_0x3d51b2(0x233)](_0x256520({'status$':this[_0x3d51b2(0x252)][_0x3d51b2(0x32c)],'error$':this[_0x3d51b2(0x252)][_0x3d51b2(0x290)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x160e2c=_0x5a969e==null?void 0x0:_0x5a969e['showDeveloperTools'])!=null?_0x160e2c:!0x1}),this[_0x3d51b2(0x23d)]);}));}['_handleConfigure'](){const _0x1dd3a9=_0x461305;this[_0x1dd3a9(0x23d)][_0x1dd3a9(0x2c3)](_0x5f51a7[_0x1dd3a9(0x24c)])[_0x1dd3a9(0x1dc)]();}},_0x5f51a7[_0x461305(0x22f)]=_0x3e90f4([_0x2d7ebf(0x0,_0x26d949[_0x461305(0x2a5)](_0x26d949[_0x461305(0x2a8)])),_0x2d7ebf(0x1,_0x26d949[_0x461305(0x2a5)](_0x5a7ab6[_0x461305(0x2a7)])),_0x2d7ebf(0x2,_0x3a9868[_0x461305(0x2ee)]),_0x2d7ebf(0x3,_0x26d949[_0x461305(0x20f)])],_0x5f51a7['MCPConnectionUIController']);function _0x256520(_0x118413){const {status$:_0x3687dc,error$:_0x436df7,onConfigure:_0x6db614,showClickable:_0x599bdf}=_0x118413;return function(){const _0x4b9cb4=_0x41cd;return _0x38c194[_0x4b9cb4(0x31c)](_0x315397,{'status$':_0x3687dc,'error$':_0x436df7,'onConfigure':_0x6db614,'showClickable':_0x599bdf});};}function _0x1e35de(_0x173223){const _0x3a2ad3=_0x461305;return{'id':_0x1acef4['id'],'type':_0x3a9868[_0x3a2ad3(0x202)][_0x3a2ad3(0x2e5)],'icon':'MenuIcon','title':_0x3a2ad3(0x205),'tooltip':'mcpConfig.title'};}const _0x312d3d={[_0x3a9868[_0x461305(0x2d7)][_0x461305(0x25e)]]:{[_0x1acef4['id']]:{'order':0xa,'menuItemFactory':_0x1e35de}}};var _0xed92da=Object[_0x461305(0x2b2)],_0x4d7186=(_0x3dba82,_0x38f0c0,_0x276e7e,_0x1f2742)=>{const _0x2d8157=_0x461305;for(var _0x4d10fd=_0x1f2742>0x1?void 0x0:_0x1f2742?_0xed92da(_0x38f0c0,_0x276e7e):_0x38f0c0,_0x3d58a9=_0x3dba82[_0x2d8157(0x1f9)]-0x1,_0x43bdf9;_0x3d58a9>=0x0;_0x3d58a9--)(_0x43bdf9=_0x3dba82[_0x3d58a9])&&(_0x4d10fd=_0x43bdf9(_0x4d10fd)||_0x4d10fd);return _0x4d10fd;},_0x230d19=(_0xff1d17,_0x14bb91)=>(_0x152979,_0x35e270)=>_0x14bb91(_0x152979,_0x35e270,_0xff1d17);_0x5f51a7[_0x461305(0x200)]=class extends _0x26d949['Disposable']{constructor(_0x66abfd,_0x50bb56){const _0x18f479=_0x461305;super(),this[_0x18f479(0x21a)]=_0x66abfd,this[_0x18f479(0x1c2)]=_0x50bb56,this[_0x18f479(0x245)](),this[_0x18f479(0x1cc)]();}[_0x461305(0x245)](){const _0x4d3efb=_0x461305;[_0x1acef4][_0x4d3efb(0x1e7)](_0x190803=>{const _0x5a5a0a=_0x4d3efb;this[_0x5a5a0a(0x2e1)](this[_0x5a5a0a(0x21a)][_0x5a5a0a(0x2dc)](_0x190803));});}[_0x461305(0x1cc)](){const _0xa840c2=_0x461305;this[_0xa840c2(0x1c2)][_0xa840c2(0x1e2)](_0x312d3d);}},_0x5f51a7[_0x461305(0x200)]=_0x4d7186([_0x230d19(0x0,_0x26d949[_0x461305(0x295)]),_0x230d19(0x1,_0x3a9868[_0x461305(0x345)])],_0x5f51a7['MCPUIMenuController']);const _0x2158be={'mcpStatus':{'disconnected':_0x461305(0x249),'connecting':_0x461305(0x1ea),'connected':'MCP\x20Connected','failed':_0x461305(0x1fc),'retrying':_0x461305(0x30f),'unknown':_0x461305(0x2aa),'unauthorized':_0x461305(0x27b),'sessionOccupied':_0x461305(0x346),'networkError':_0x461305(0x2eb),'maxRetriesExceeded':_0x461305(0x224),'clickToConnect':_0x461305(0x32d),'clickToConfigure':_0x461305(0x2f9)},'mcpConfig':{'title':_0x461305(0x32a),'description':_0x461305(0x287),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x461305(0x2cc),'apiKeyHint':_0x461305(0x311),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x461305(0x25d),'connectionInfo':_0x461305(0x2d2),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x461305(0x24a),'configStep1':_0x461305(0x1cb),'configStep2':_0x461305(0x2c6),'configStep3':_0x461305(0x2a1),'sessionId':_0x461305(0x1d7),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x461305(0x34d),'configParameters':_0x461305(0x2fc),'maxRetries':_0x461305(0x313),'save':_0x461305(0x208),'saving':_0x461305(0x262),'note1':_0x461305(0x1eb),'note2':_0x461305(0x317),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x461305(0x34b),'apiApplyInfo':{'title':_0x461305(0x1e0),'description':_0x461305(0x1c8),'univerAiLabel':_0x461305(0x23b),'getStarted':_0x461305(0x2a6)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x461305(0x269)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x461305(0x22e),'retrying':_0x461305(0x304)},'connectionError':{'unauthorized':_0x461305(0x244),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x461305(0x1ca),'maxRetriesExceeded':_0x461305(0x1d1)}}},_0x10bfea={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x461305(0x31b),'connected':_0x461305(0x2ae),'failed':_0x461305(0x1dd),'retrying':'MCP\x20重连中...','unknown':_0x461305(0x268),'unauthorized':_0x461305(0x20a),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x461305(0x33e),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x461305(0x1ff)},'mcpConfig':{'title':_0x461305(0x2e2),'description':_0x461305(0x274),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x461305(0x325),'apiKeyHint':_0x461305(0x1cf),'enableAuth':_0x461305(0x218),'enableAuthHint':_0x461305(0x2b0),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x461305(0x212),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x461305(0x27f),'configStep1':_0x461305(0x255),'configStep2':_0x461305(0x336),'configStep3':_0x461305(0x337),'sessionId':_0x461305(0x343),'sessionIdDescription':_0x461305(0x1e6),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x461305(0x2b7),'maxRetries':_0x461305(0x1c7),'save':_0x461305(0x2ce),'saving':_0x461305(0x1f0),'note1':_0x461305(0x1c0),'note2':_0x461305(0x2d1),'configSaved':_0x461305(0x20d),'configError':'配置保存失败','apiApplyInfo':{'title':_0x461305(0x2d4),'description':_0x461305(0x1c1),'univerAiLabel':_0x461305(0x275),'getStarted':_0x461305(0x21d)},'validation':{'apiKeyRequired':_0x461305(0x25f),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x461305(0x210),'invalidApiKey':_0x461305(0x326)},'connectionStatus':{'disconnected':_0x461305(0x248),'connecting':_0x461305(0x28c),'connected':_0x461305(0x340),'failed':_0x461305(0x23c),'retrying':_0x461305(0x2ad)},'connectionError':{'unauthorized':_0x461305(0x322),'sessionOccupied':_0x461305(0x277),'networkError':_0x461305(0x280),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x5f29a2=Object['defineProperty'],_0x3e78f5=Object[_0x461305(0x2b2)],_0x468bbf=(_0x3f6c36,_0x3a8747,_0xd372ea)=>_0x3a8747 in _0x3f6c36?_0x5f29a2(_0x3f6c36,_0x3a8747,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd372ea}):_0x3f6c36[_0x3a8747]=_0xd372ea,_0x37ffba=(_0x262f37,_0x4afef7,_0x1a8099,_0x11774a)=>{for(var _0x27d436=_0x11774a>0x1?void 0x0:_0x11774a?_0x3e78f5(_0x4afef7,_0x1a8099):_0x4afef7,_0x6d007f=_0x262f37['length']-0x1,_0x1e12fb;_0x6d007f>=0x0;_0x6d007f--)(_0x1e12fb=_0x262f37[_0x6d007f])&&(_0x27d436=_0x1e12fb(_0x27d436)||_0x27d436);return _0x27d436;},_0x39135d=(_0x4571d6,_0x54aa63)=>(_0x2f8a4b,_0x558dfb)=>_0x54aa63(_0x2f8a4b,_0x558dfb,_0x4571d6),_0x5177df=(_0x5695db,_0x3f1139,_0x3fbd99)=>_0x468bbf(_0x5695db,_0x3f1139+'',_0x3fbd99);_0x5f51a7[_0x461305(0x207)]=class extends _0x26d949[_0x461305(0x2e8)]{constructor(_0x308c96=_0x45e5af,_0x56e912,_0x43927b,_0x26c652,_0x463999,_0x3814c5){const _0xbf1c06=_0x461305;super(),this[_0xbf1c06(0x344)]=_0x308c96,this[_0xbf1c06(0x23d)]=_0x56e912,this['_configService']=_0x43927b,this['_uiPartsService']=_0x26c652,this['_localStorageService']=_0x463999,this[_0xbf1c06(0x279)]=_0x3814c5;const {..._0x4b8348}=_0x26d949[_0xbf1c06(0x1e9)]({},_0x45e5af,this['_config']);this[_0xbf1c06(0x298)][_0xbf1c06(0x292)](_0xd37888,_0x4b8348);}async['onStarting'](){const _0x17207d=_0x461305,_0x239cb0=[[_0x5f51a7['MCPConnectionUIController']],[_0x5f51a7[_0x17207d(0x24c)]],[_0x5f51a7[_0x17207d(0x200)]]];this[_0x17207d(0x23d)][_0x17207d(0x283)](_0x288fc0[_0x17207d(0x293)])||_0x239cb0[_0x17207d(0x294)]([_0x288fc0[_0x17207d(0x293)],{'useClass':_0x288fc0[_0x17207d(0x2d6)]}]),_0x239cb0[_0x17207d(0x1e7)](_0x3894b7=>this[_0x17207d(0x23d)][_0x17207d(0x2e4)](_0x3894b7)),this[_0x17207d(0x23d)]['get'](_0x5f51a7[_0x17207d(0x22f)]),this[_0x17207d(0x23d)][_0x17207d(0x2c3)](_0x5f51a7['MCPConfigUIController']),this['_injector'][_0x17207d(0x2c3)](_0x5f51a7[_0x17207d(0x200)]);}},_0x5177df(_0x5f51a7[_0x461305(0x207)],'pluginName',_0x461305(0x2ed)),_0x5f51a7['UniverMCPUIPlugin']=_0x37ffba([_0x26d949[_0x461305(0x342)](_0x5a7ab6['UniverMCPPlugin']),_0x39135d(0x1,_0x26d949[_0x461305(0x2a5)](_0x26d949[_0x461305(0x2a8)])),_0x39135d(0x2,_0x26d949['IConfigService']),_0x39135d(0x3,_0x3a9868[_0x461305(0x2ee)]),_0x39135d(0x4,_0x26d949[_0x461305(0x206)]),_0x39135d(0x5,_0x26d949[_0x461305(0x2a5)](_0x26d949[_0x461305(0x1d5)]))],_0x5f51a7[_0x461305(0x207)]),_0x5f51a7[_0x461305(0x203)]=_0x3d5b84,_0x5f51a7[_0x461305(0x28e)]=_0x315397,_0x5f51a7['OpenMCPConfigPanelCommand']=_0x1acef4,_0x5f51a7[_0x461305(0x2fe)]=_0x2158be,_0x5f51a7[_0x461305(0x2bb)]=_0x10bfea,Object['defineProperty'](_0x5f51a7,Symbol['toStringTag'],{'value':_0x461305(0x209)});}));function _0x5661(){const _0x23f2fe=['NONE','IConfigService','配置无效','mcpStatus.clickToConfigure','MCP\x20客户端配置','tag','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','svg','exports','mcpConfig.connectionError.sessionOccupied','启用身份验证','DISCONNECTED','_commandService','1VWucEY','univer-text-sm\x20univer-text-gray-500','几秒钟内获取您的\x20API\x20密钥','BehaviorSubject','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_loading$','clsx','_mcpConnectionController','HelpIcon','MCP:\x20Max\x20Retries\x20Exceeded','forwardRef','defIds','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','register','CommandType','mcpConfig.connectionError.networkError','round','mcpConfig.connectionStatus.failed','_logService','Connection\x20Failed','MCPConnectionUIController','mcpConfig.apiApplyInfo.title','label','mcpStatus.clickToConnect','connectInjector','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','on-line-icon_clip0_910_349','@univerjs/network','\x20-\x20','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Tooltip','close-icon','Univer\x20AI\x20Console','连接失败','_injector','univer-text-yellow-500','UniverDesign','univer-bg-green-500','_blank','url(#$1','http','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_initializeCommands','validateApiKey','Configuration\x20Notes:','未连接','MCP\x20Disconnected','Configuration\x20Steps:','enableAutoConnect','MCPConfigUIController','mcpConfig.apiKey','showDeveloperTools','FAILED','Bearer\x20','univer-bg-blue-500','_connectionController','useObservable','mcpConfig.connectionError.unauthorized','复制以下\x20JSON\x20配置','mcpConfig.configStep1','rxjs','_mcpCoreConfig$','mcpConfig.configStep2','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_localStorageService','toString','Enable\x20authentication\x20for\x20secure\x20connections','OTHERS','API\x20密钥不能为空','univer-space-y-2','univer-flex-1','Saving...','3314340NXYWWe','mcpConfig.configStepTitle','MAX_RETRIES_EXCEEDED','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','mcpStatus.retrying','MCP\x20状态未知','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','on-line-icon','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','react/jsx-runtime','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','1522422QITRbc','ComponentManager','M0\x200H16V16H0z','3012681JujdSb','univer-text-xs\x20univer-text-gray-500','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\x20使用\x20AI\x20操作电子表格','Univer\x20AI\x20控制台','displayName','会话\x20ID\x20已被占用,请稍后再试','attrs','_localeService','mcpConfig.configStep3','MCP:\x20Unauthorized','OnLineIcon','MCP_PLUGIN_CONFIG_KEY','assign','配置步骤:','网络连接错误,请检查您的网络连接','map','none','has','univer-flex\x20univer-items-center','next','CheckMarkIcon','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','UniverIcon','mcpConfig.apiApplyInfo.univerAiLabel','registerComponent','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','连接中...','univer-flex\x20univer-items-center\x20univer-gap-3','MCPStatusDisplay','_componentManager','connectionError$','univer-space-y-4','setConfig','ISocketService','push','ICommandService','getItem','mcpConfig.configInstructions','_configService','setItem','mask','COMMAND','https://console.univer.ai','span','check-mark-icon','mcpStatus.connecting','_dialogService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_initStatusComponent','mcpServerUrl','Inject','Get\x20your\x20API\x20key\x20in\x20seconds','MCPConnectionController','Injector','fill','MCP\x20Unknown\x20Status','NETWORK_ERROR','mcpStatus.maxRetriesExceeded','重连中...','MCP\x20已连接','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','启用身份验证以获得安全连接','univer-text-green-500','getOwnPropertyDescriptor','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','warn','isValid','UniverUi','配置参数:','https://mcp.univer.ai/mcp/?univer_session_id=','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcp-ui.config','zhCN','text','mcp-config-dialog','1265184llLpoy','@univerjs/core','Input','mcpConfig.note1','univer-flex\x20univer-items-start\x20univer-gap-3','get','4vQezze','React','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','includes','univer-text-red-500','mcpConfig.configError','error','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','Enter\x20your\x20API\x20key','univer-text-gray-500','保存配置','__setCustomHeaders','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','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20Client\x20Configuration','jsxs','什么是\x20API\x20密钥?','symbol','WebSocketService','RibbonStartGroup','UniverProMcpUi','close','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.connectionStatus.disconnected','registerCommand','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.connectionStatus.connected','mcp.apiKey','bottom','disposeWithMe','MCP\x20配置','Error','add','BUTTON','mcpConfig.configParameters','getConfig','Plugin','Success','IMessageService','MCP:\x20Network\x20Error','mcp-ui.command.openConfigPanel','MCP_UI_PLUGIN','IUIPartsService','mcpStatus.unauthorized','subscribeConfigValue$','ILogService','CONNECTED','univer-bg-red-500','div','https://console.univer.plus','@univerjs/ui','mcpConfig.validation.apiKeyTooShort','1em','Click\x20to\x20configure\x20MCP','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCPConnectionStatus','Configuration\x20Parameters:','currentColor','enUS','evenodd','univer_session_id:','_messageService','_registerComponent','_validateConfig','Retrying...','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.validation.invalidApiKey','string','mcpStatus.failed','children','off-line-icon_clip0_910_343','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','Disposable','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiKey','MCP\x20Retrying...','http://www.w3.org/2000/svg','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','pre','Max\x20Retries','translate(.97)','amd','@univerjs/design','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-shrink-0\x20univer-text-blue-500','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','getCurrentConfig','MCP\x20连接中...','jsx','showStatus','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.ai','button','_uiPartsService','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.save','createElement','请输入您的\x20API\x20密钥','API\x20密钥无效,请检查密钥是否正确','366rYBLnL','univer-flex\x20univer-items-start\x20univer-gap-2','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP\x20Configuration','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','connectionStatus$','Click\x20to\x20connect\x20MCP','function','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','CONNECTING','value','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','MessageType','530xPYnpQ','将配置添加到您的\x20MCP\x20客户端设置文件中','重启您的\x20MCP\x20客户端以使配置生效','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','useDependency','clipPath','RETRYING','univer-text-sm\x20univer-font-medium','white','MCP:\x20超出最大重试次数','univer-space-y-5','已连接','replace','DependentOn','会话ID','_config','IMenuManagerService','MCP:\x20Session\x20ID\x20Occupied','entries','useCallback','SESSION_ID_OCCUPIED','off','Failed\x20to\x20save\x20configuration','xlink:href','API\x20key\x20with\x20Bearer\x20prefix.','@univerjs-pro/mcp','_initAutoConnect','mcpStatus.networkError','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','defs','_config$','配置更改将立即生效','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_menuManagerService','stringify','0\x200\x2016\x2016','univer-size-2\x20univer-rounded-full','open','最大重试次数','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','_initializeMenus','univer.plus','5569830tWWzcB','您的\x20API\x20密钥将在此浏览器中本地存储','OffLineIcon','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-flex\x20univer-items-center\x20univer-gap-2','current','_createConfigPanelComponent','LocaleService','idSuffix','Session\x20ID','MCPConnectionError','_apiKey$','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','substring','showConfigPanel','MCP\x20连接失败','off-line-icon','mcpConfig.apiKeyPlaceholder','What\x20is\x20API\x20Key?','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mergeMenu','Authorization:','path','mcpConfig.description','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','forEach','mcpConfig.note2','merge','MCP\x20Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','BuiltInUIPart','mcpConfig.sessionIdDescription','<API_KEY>','univerjs-icon\x20univerjs-icon-','保存中...','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','UniverProMcp','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','errorMessage','180892JiwKqL','univer-text-gray-400','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-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','length','mcpConfig.validation.apiKeyRequired','show','MCP\x20Connection\x20Failed','random','univer-space-y-3','点击配置\x20MCP','MCPUIMenuController','univer-shrink-0\x20univer-text-red-500','MenuItemType','MCPConfigPanel','UNAUTHORIZED','mcpConfig.title','ILocalStorageService','UniverMCPUIPlugin','Save\x20Configuration','Module','MCP:\x20未授权','trim','<SESSION_ID>','配置保存成功'];_0x5661=function(){return _0x23f2fe;};return _0x5661();}
@@ -1 +1 @@
1
- function _0x432f(){var _0x2e82b5=['API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','object','Connection\x20Failed','1755535LRbDHN','34581140RoGHMX','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Disconnected','9FwbvKq','MCP:\x20Max\x20Retries\x20Exceeded','exports','function','23723xfQeXv','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20saved\x20successfully','Get\x20your\x20API\x20key\x20in\x20seconds','1kGBmle','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','867760zScGNU','Session\x20ID','What\x20is\x20API\x20Key?','MCP\x20Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Parameters:','1173346FoaBvE','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20configure\x20MCP','API\x20Key','Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','UniverProMcpUiCaES','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','6331428YFNOUE','MCP:\x20Network\x20Error','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','amd','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','3314724rwSOuv','MCP\x20Connected','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','3128ZSUfjI'];_0x432f=function(){return _0x2e82b5;};return _0x432f();}function _0x4841(_0x3520b0,_0x570561){var _0x432fa3=_0x432f();return _0x4841=function(_0x484188,_0x4f3eca){_0x484188=_0x484188-0x93;var _0x541db8=_0x432fa3[_0x484188];return _0x541db8;},_0x4841(_0x3520b0,_0x570561);}(function(_0x66c7ba,_0x1c3df2){var _0x383a69=_0x4841,_0x53a75f=_0x66c7ba();while(!![]){try{var _0x166435=-parseInt(_0x383a69(0xb6))/0x1*(parseInt(_0x383a69(0xbe))/0x2)+-parseInt(_0x383a69(0xae))/0x3*(parseInt(_0x383a69(0xb8))/0x4)+-parseInt(_0x383a69(0xa8))/0x5+-parseInt(_0x383a69(0x9e))/0x6+-parseInt(_0x383a69(0xb2))/0x7*(parseInt(_0x383a69(0xa4))/0x8)+parseInt(_0x383a69(0x95))/0x9+parseInt(_0x383a69(0xa9))/0xa;if(_0x166435===_0x1c3df2)break;else _0x53a75f['push'](_0x53a75f['shift']());}catch(_0x5dcbcf){_0x53a75f['push'](_0x53a75f['shift']());}}}(_0x432f,0xa9c9d),function(_0xc14d92,_0x2f1b14){var _0x453aea=_0x4841;typeof exports==_0x453aea(0xa6)&&typeof module<'u'?module[_0x453aea(0xb0)]=_0x2f1b14():typeof define==_0x453aea(0xb1)&&define[_0x453aea(0x9a)]?define(_0x2f1b14):(_0xc14d92=typeof globalThis<'u'?globalThis:_0xc14d92||self,_0xc14d92[_0x453aea(0xc7)]=_0x2f1b14());}(this,function(){'use strict';var _0x1f389e=_0x4841;return{'mcpStatus':{'disconnected':_0x1f389e(0xbb),'connecting':_0x1f389e(0xbf),'connected':_0x1f389e(0x9f),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x1f389e(0xaa),'unauthorized':_0x1f389e(0xa0),'sessionOccupied':_0x1f389e(0xc2),'networkError':_0x1f389e(0x96),'maxRetriesExceeded':_0x1f389e(0xaf),'clickToConnect':_0x1f389e(0xc1),'clickToConfigure':_0x1f389e(0xc3)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x1f389e(0xb3),'apiKey':_0x1f389e(0xc4),'apiKeyPlaceholder':_0x1f389e(0x93),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1f389e(0xa3),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1f389e(0xa2),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1f389e(0x98),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1f389e(0xbc),'sessionId':_0x1f389e(0xb9),'sessionIdDescription':_0x1f389e(0x9d),'authorizationDescription':_0x1f389e(0xa1),'configParameters':_0x1f389e(0xbd),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x1f389e(0xac),'note2':_0x1f389e(0xc0),'configSaved':_0x1f389e(0xb4),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x1f389e(0xba),'description':_0x1f389e(0xc6),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1f389e(0xb5)},'validation':{'apiKeyRequired':_0x1f389e(0xab),'apiKeyTooShort':_0x1f389e(0xa5),'invalidConfig':_0x1f389e(0x99),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1f389e(0xad),'connecting':_0x1f389e(0x97),'connected':_0x1f389e(0xc5),'failed':_0x1f389e(0xa7),'retrying':_0x1f389e(0x9b)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1f389e(0x94),'networkError':_0x1f389e(0x9c),'maxRetriesExceeded':_0x1f389e(0xb7)}}};}));
1
+ function _0x5e22(){var _0x22404f=['Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','11SAqCrQ','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Save\x20Configuration','Saving...','11586504FDiHgX','2vabMkE','Click\x20to\x20configure\x20MCP','1037741kfgxbM','API\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.','Retrying...','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','Enable\x20Authentication','MCP\x20Retrying...','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','object','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','7cVbECM','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3919017ElyVMy','function','amd','MCP\x20Connecting...','63qakiKe','Configuration\x20saved\x20successfully','Max\x20Retries','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Unauthorized','Disconnected','Session\x20ID','Connecting...','7710610wVTrKc','88515ERkEWv','What\x20is\x20API\x20Key?','exports','Configuration\x20Parameters:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','2732892vnKhSO','273472vqhLPJ','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4alaWBt'];_0x5e22=function(){return _0x22404f;};return _0x5e22();}function _0x1c1a(_0x222c3e,_0x556216){var _0x5e229a=_0x5e22();return _0x1c1a=function(_0x1c1aa4,_0x221eba){_0x1c1aa4=_0x1c1aa4-0x102;var _0x3f2f74=_0x5e229a[_0x1c1aa4];return _0x3f2f74;},_0x1c1a(_0x222c3e,_0x556216);}(function(_0x428109,_0x13274f){var _0x26f942=_0x1c1a,_0x4498e3=_0x428109();while(!![]){try{var _0x228007=parseInt(_0x26f942(0x12a))/0x1*(-parseInt(_0x26f942(0x128))/0x2)+parseInt(_0x26f942(0x105))/0x3*(parseInt(_0x26f942(0x11b))/0x4)+parseInt(_0x26f942(0x112))/0x5+parseInt(_0x26f942(0x117))/0x6*(parseInt(_0x26f942(0x102))/0x7)+parseInt(_0x26f942(0x118))/0x8*(parseInt(_0x26f942(0x109))/0x9)+-parseInt(_0x26f942(0x111))/0xa*(-parseInt(_0x26f942(0x11f))/0xb)+-parseInt(_0x26f942(0x127))/0xc;if(_0x228007===_0x13274f)break;else _0x4498e3['push'](_0x4498e3['shift']());}catch(_0x546f2a){_0x4498e3['push'](_0x4498e3['shift']());}}}(_0x5e22,0xc009e),function(_0x1b2872,_0x38f02d){var _0xcfc430=_0x1c1a;typeof exports==_0xcfc430(0x135)&&typeof module<'u'?module[_0xcfc430(0x114)]=_0x38f02d():typeof define==_0xcfc430(0x106)&&define[_0xcfc430(0x107)]?define(_0x38f02d):(_0x1b2872=typeof globalThis<'u'?globalThis:_0x1b2872||self,_0x1b2872['UniverProMcpUiCaES']=_0x38f02d());}(this,function(){'use strict';var _0x34b7d9=_0x1c1a;return{'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x34b7d9(0x108),'connected':'MCP\x20Connected','failed':_0x34b7d9(0x12e),'retrying':_0x34b7d9(0x131),'unknown':_0x34b7d9(0x12f),'unauthorized':_0x34b7d9(0x10d),'sessionOccupied':_0x34b7d9(0x123),'networkError':_0x34b7d9(0x137),'maxRetriesExceeded':_0x34b7d9(0x13a),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x34b7d9(0x129)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x34b7d9(0x119),'apiKey':_0x34b7d9(0x12b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x34b7d9(0x11c),'enableAuth':_0x34b7d9(0x130),'enableAuthHint':_0x34b7d9(0x139),'connectionInfo':_0x34b7d9(0x122),'mcpClientConfig':_0x34b7d9(0x122),'configInstructions':_0x34b7d9(0x134),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x34b7d9(0x11e),'configStep2':_0x34b7d9(0x11a),'configStep3':_0x34b7d9(0x124),'sessionId':_0x34b7d9(0x10f),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x34b7d9(0x115),'maxRetries':_0x34b7d9(0x10b),'save':_0x34b7d9(0x125),'saving':_0x34b7d9(0x126),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x34b7d9(0x10a),'configError':_0x34b7d9(0x120),'apiApplyInfo':{'title':_0x34b7d9(0x113),'description':_0x34b7d9(0x12c),'univerAiLabel':_0x34b7d9(0x103),'getStarted':_0x34b7d9(0x13b)},'validation':{'apiKeyRequired':_0x34b7d9(0x132),'apiKeyTooShort':_0x34b7d9(0x104),'invalidConfig':_0x34b7d9(0x121),'invalidApiKey':_0x34b7d9(0x10c)},'connectionStatus':{'disconnected':_0x34b7d9(0x10e),'connecting':_0x34b7d9(0x110),'connected':'Connected','failed':_0x34b7d9(0x11d),'retrying':_0x34b7d9(0x12d)},'connectionError':{'unauthorized':_0x34b7d9(0x133),'sessionOccupied':_0x34b7d9(0x116),'networkError':_0x34b7d9(0x136),'maxRetriesExceeded':_0x34b7d9(0x138)}}};}));