@univerjs-pro/mcp-ui 0.10.7-nightly.202509130640 → 0.10.7-nightly.202509130703

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 +6 -6
@@ -1 +1 @@
1
- 'use strict';function _0xa094(_0x2a16c6,_0x57c493){const _0x546f84=_0x546f();return _0xa094=function(_0xa09422,_0x1a9f82){_0xa09422=_0xa09422-0x16e;let _0x3248de=_0x546f84[_0xa09422];return _0x3248de;},_0xa094(_0x2a16c6,_0x57c493);}const _0x307eb8=_0xa094;function _0x546f(){const _0x766c53=['MCP\x20Connected','5970140mjgUwE','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','1623490uLiyQw','Enter\x20your\x20API\x20key','3575888bglkje','Get\x20your\x20API\x20key\x20in\x20seconds','226372RNqJXb','5wdBppo','48BEguSZ','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4994694Stolsh','50VDSwHA','MCP\x20Retrying...','MCP:\x20Session\x20Occupied','Enable\x20Authentication','MCP:\x20Network\x20Error','MCP:\x20API\x20Key\x20Missing','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20connect\x20MCP','exports','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Copy\x20the\x20JSON\x20configuration\x20below','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Configuration\x20saved\x20successfully','API\x20Key','Connecting...','Connection\x20Failed','MCP\x20Client\x20Configuration','MCP\x20Connecting...','Session\x20ID','Univer\x20AI\x20Console','37574eGzZnj','Retrying...','API\x20key\x20is\x20required\x20to\x20connect','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Save\x20Configuration','Connected','1068882QNWsEe','MCP\x20Connection\x20Failed','9WSBSat','14eYNGIX','MCP:\x20Invalid\x20API\x20Key'];_0x546f=function(){return _0x766c53;};return _0x546f();}(function(_0x2fb8b2,_0x46860c){const _0x38b9b0=_0xa094,_0x2b79ef=_0x2fb8b2();while(!![]){try{const _0x394092=parseInt(_0x38b9b0(0x18b))/0x1*(-parseInt(_0x38b9b0(0x1a0))/0x2)+parseInt(_0x38b9b0(0x178))/0x3*(parseInt(_0x38b9b0(0x183))/0x4)+-parseInt(_0x38b9b0(0x184))/0x5*(parseInt(_0x38b9b0(0x176))/0x6)+parseInt(_0x38b9b0(0x179))/0x7*(parseInt(_0x38b9b0(0x181))/0x8)+parseInt(_0x38b9b0(0x18a))/0x9+-parseInt(_0x38b9b0(0x17c))/0xa+-parseInt(_0x38b9b0(0x17f))/0xb*(-parseInt(_0x38b9b0(0x185))/0xc);if(_0x394092===_0x46860c)break;else _0x2b79ef['push'](_0x2b79ef['shift']());}catch(_0x297010){_0x2b79ef['push'](_0x2b79ef['shift']());}}}(_0x546f,0x78be6));const e={'mcpStatus':{'disconnected':_0x307eb8(0x17e),'connecting':_0x307eb8(0x19d),'connected':_0x307eb8(0x17b),'failed':_0x307eb8(0x177),'retrying':_0x307eb8(0x18c),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x307eb8(0x190),'invalidApiKey':_0x307eb8(0x17a),'sessionOccupied':_0x307eb8(0x18d),'networkError':_0x307eb8(0x18f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x307eb8(0x192),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x307eb8(0x186),'description':_0x307eb8(0x196),'apiKey':_0x307eb8(0x199),'apiKeyPlaceholder':_0x307eb8(0x180),'apiKeyHint':_0x307eb8(0x171),'enableAuth':_0x307eb8(0x18e),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x307eb8(0x19c),'mcpClientConfig':_0x307eb8(0x19c),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x307eb8(0x195),'configStep2':_0x307eb8(0x194),'configStep3':_0x307eb8(0x191),'sessionId':_0x307eb8(0x19e),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x307eb8(0x187),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x307eb8(0x174),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x307eb8(0x198),'configError':_0x307eb8(0x16f),'apiApplyInfo':{'title':_0x307eb8(0x170),'description':_0x307eb8(0x188),'univerAiLabel':_0x307eb8(0x19f),'getStarted':_0x307eb8(0x182)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x307eb8(0x189)},'connectionStatus':{'disconnected':_0x307eb8(0x173),'connecting':_0x307eb8(0x19a),'connected':_0x307eb8(0x175),'failed':_0x307eb8(0x19b),'retrying':_0x307eb8(0x1a1)},'connectionError':{'missingApiKey':_0x307eb8(0x16e),'invalidApiKey':_0x307eb8(0x197),'sessionOccupied':_0x307eb8(0x17d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x307eb8(0x172)}}},n=e;module[_0x307eb8(0x193)]=n;
1
+ 'use strict';function _0x3c8c(){const _0x14cd28=['MCP\x20Connecting...','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enter\x20your\x20API\x20key','Max\x20Retries','34754txatuG','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20API\x20Key\x20Missing','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required\x20to\x20connect','Univer\x20AI\x20Console','Retrying...','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20connect\x20MCP','MCP\x20Disconnected','10wgqbQN','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','60582fhDVrY','Connection\x20Failed','Connecting...','MCP\x20Connected','581552RoQvVY','Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','3335304OMvfXO','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20saved\x20successfully','Enable\x20Authentication','Configuration\x20Parameters:','Click\x20to\x20configure\x20MCP','MCP\x20Client\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20Key','Failed\x20to\x20save\x20configuration','MCP\x20Unknown\x20Status','exports','MCP:\x20Session\x20Occupied','MCP\x20Connection\x20Failed','What\x20is\x20API\x20Key?','5077624VEiWdC','901316rDEFyt','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP:\x20Invalid\x20API\x20Key','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Configuration','API\x20key\x20is\x20required','29883UaZlWR','Saving...'];_0x3c8c=function(){return _0x14cd28;};return _0x3c8c();}const _0x28691a=_0x4d95;(function(_0x694536,_0x1fd00c){const _0x4ba901=_0x4d95,_0x54991c=_0x694536();while(!![]){try{const _0x2ca8ec=-parseInt(_0x4ba901(0x148))/0x1+-parseInt(_0x4ba901(0x132))/0x2+parseInt(_0x4ba901(0x163))/0x3+-parseInt(_0x4ba901(0x15b))/0x4+parseInt(_0x4ba901(0x141))/0x5*(parseInt(_0x4ba901(0x144))/0x6)+parseInt(_0x4ba901(0x14b))/0x7+parseInt(_0x4ba901(0x15a))/0x8;if(_0x2ca8ec===_0x1fd00c)break;else _0x54991c['push'](_0x54991c['shift']());}catch(_0x23f663){_0x54991c['push'](_0x54991c['shift']());}}}(_0x3c8c,0x4d690));function _0x4d95(_0x2be71e,_0x1799a6){const _0x3c8cc0=_0x3c8c();return _0x4d95=function(_0x4d953a,_0x4f3402){_0x4d953a=_0x4d953a-0x12f;let _0x3ff0b8=_0x3c8cc0[_0x4d953a];return _0x3ff0b8;},_0x4d95(_0x2be71e,_0x1799a6);}const e={'mcpStatus':{'disconnected':_0x28691a(0x140),'connecting':_0x28691a(0x165),'connected':_0x28691a(0x147),'failed':_0x28691a(0x158),'retrying':_0x28691a(0x13d),'unknown':_0x28691a(0x155),'missingApiKey':_0x28691a(0x134),'invalidApiKey':_0x28691a(0x15e),'sessionOccupied':_0x28691a(0x157),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x28691a(0x13f),'clickToConfigure':_0x28691a(0x150)},'mcpConfig':{'title':_0x28691a(0x161),'description':_0x28691a(0x14c),'apiKey':_0x28691a(0x153),'apiKeyPlaceholder':_0x28691a(0x130),'apiKeyHint':_0x28691a(0x135),'enableAuth':_0x28691a(0x14e),'enableAuthHint':_0x28691a(0x13c),'connectionInfo':_0x28691a(0x151),'mcpClientConfig':_0x28691a(0x151),'configInstructions':_0x28691a(0x137),'configStepTitle':_0x28691a(0x13b),'configStep1':_0x28691a(0x13e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x28691a(0x15c),'sessionId':_0x28691a(0x136),'sessionIdDescription':_0x28691a(0x133),'authorizationDescription':_0x28691a(0x142),'configParameters':_0x28691a(0x14f),'maxRetries':_0x28691a(0x131),'save':'Save\x20Configuration','saving':_0x28691a(0x164),'note1':_0x28691a(0x14a),'note2':_0x28691a(0x160),'configSaved':_0x28691a(0x14d),'configError':_0x28691a(0x154),'apiApplyInfo':{'title':_0x28691a(0x159),'description':_0x28691a(0x152),'univerAiLabel':_0x28691a(0x139),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x28691a(0x162),'apiKeyTooShort':_0x28691a(0x143),'invalidConfig':_0x28691a(0x166),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x28691a(0x15f),'connecting':_0x28691a(0x146),'connected':_0x28691a(0x149),'failed':_0x28691a(0x145),'retrying':_0x28691a(0x13a)},'connectionError':{'missingApiKey':_0x28691a(0x138),'invalidApiKey':_0x28691a(0x15d),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x28691a(0x12f),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x28691a(0x156)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x21c5f6=_0x51dd;(function(_0x261122,_0x5f1705){const _0x2bbe76=_0x51dd,_0x11544b=_0x261122();while(!![]){try{const _0x3cf870=-parseInt(_0x2bbe76(0x1aa))/0x1+parseInt(_0x2bbe76(0x1cd))/0x2+-parseInt(_0x2bbe76(0x1d0))/0x3+-parseInt(_0x2bbe76(0x1cc))/0x4*(parseInt(_0x2bbe76(0x1d2))/0x5)+parseInt(_0x2bbe76(0x1d3))/0x6*(parseInt(_0x2bbe76(0x1b0))/0x7)+parseInt(_0x2bbe76(0x1c3))/0x8+parseInt(_0x2bbe76(0x1b3))/0x9;if(_0x3cf870===_0x5f1705)break;else _0x11544b['push'](_0x11544b['shift']());}catch(_0x3c5a25){_0x11544b['push'](_0x11544b['shift']());}}}(_0x196c,0xb4538));function _0x196c(){const _0x4a94b8=['API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','Enter\x20your\x20API\x20key','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Connecting...','Connection\x20Failed','1882320VClxqC','MCP\x20Connected','MCP\x20Disconnected','Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Invalid\x20API\x20Key','Connected','5137048RAUjPh','2797102xGNzLX','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1604157yeXLZa','Invalid\x20configuration','5pODAMV','35736PTGntQ','exports','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20is\x20required\x20to\x20connect','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.','Session\x20ID','MCP\x20Retrying...','1230204pGxlYi','Retrying...','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20Occupied','What\x20is\x20API\x20Key?','1491xSCyBx','MCP:\x20API\x20Key\x20Missing','API\x20Key','7967988cLWhbS','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','MCP\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x196c=function(){return _0x4a94b8;};return _0x196c();}function _0x51dd(_0x7f2035,_0x294581){const _0x196c5a=_0x196c();return _0x51dd=function(_0x51dd70,_0x230acf){_0x51dd70=_0x51dd70-0x1a1;let _0x523f75=_0x196c5a[_0x51dd70];return _0x523f75;},_0x51dd(_0x7f2035,_0x294581);}const e={'mcpStatus':{'disconnected':_0x21c5f6(0x1c5),'connecting':_0x21c5f6(0x1ce),'connected':_0x21c5f6(0x1c4),'failed':'MCP\x20Connection\x20Failed','retrying':_0x21c5f6(0x1a9),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x21c5f6(0x1b1),'invalidApiKey':_0x21c5f6(0x1ca),'sessionOccupied':_0x21c5f6(0x1ae),'networkError':_0x21c5f6(0x1b4),'maxRetriesExceeded':_0x21c5f6(0x1a2),'clickToConnect':_0x21c5f6(0x1c8),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x21c5f6(0x1ba),'description':_0x21c5f6(0x1c7),'apiKey':_0x21c5f6(0x1b2),'apiKeyPlaceholder':_0x21c5f6(0x1bf),'apiKeyHint':_0x21c5f6(0x1bc),'enableAuth':_0x21c5f6(0x1b6),'enableAuthHint':_0x21c5f6(0x1a4),'connectionInfo':_0x21c5f6(0x1ac),'mcpClientConfig':_0x21c5f6(0x1ac),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x21c5f6(0x1a6),'configStep2':_0x21c5f6(0x1b8),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x21c5f6(0x1a8),'sessionIdDescription':_0x21c5f6(0x1a7),'authorizationDescription':_0x21c5f6(0x1c9),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x21c5f6(0x1b9),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x21c5f6(0x1a3),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x21c5f6(0x1be),'configError':_0x21c5f6(0x1ad),'apiApplyInfo':{'title':_0x21c5f6(0x1af),'description':_0x21c5f6(0x1bb),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x21c5f6(0x1bd),'invalidConfig':_0x21c5f6(0x1d1),'invalidApiKey':_0x21c5f6(0x1b7)},'connectionStatus':{'disconnected':_0x21c5f6(0x1c6),'connecting':_0x21c5f6(0x1c1),'connected':_0x21c5f6(0x1cb),'failed':_0x21c5f6(0x1c2),'retrying':_0x21c5f6(0x1ab)},'connectionError':{'missingApiKey':_0x21c5f6(0x1a5),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x21c5f6(0x1c0),'networkError':_0x21c5f6(0x1cf),'maxRetriesExceeded':_0x21c5f6(0x1b5)}}},n=e;module[_0x21c5f6(0x1a1)]=n;
1
+ 'use strict';function _0x1717(){const _0x47ca99=['888597FiDmki','Univer\x20AI\x20Console','MCP\x20Unknown\x20Status','Invalid\x20configuration','What\x20is\x20API\x20Key?','MCP\x20Connection\x20Failed','3180919OfCmBD','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20Authentication','Connection\x20Failed','API\x20key\x20is\x20required','11627199qphJXa','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','3875365zNIvaL','120006SgEeRf','Max\x20Retries','exports','MCP:\x20Invalid\x20API\x20Key','Configuration\x20saved\x20successfully','API\x20Key','11613810tbTpKl','MCP\x20Client\x20Configuration','6jkdOYl','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','2721ynxRGu','1684lqjKRa','MCP\x20Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Retrying...','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP:\x20API\x20Key\x20Missing','Click\x20to\x20connect\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20is\x20required\x20to\x20connect','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','MCP:\x20Session\x20Occupied','Saving...','Session\x20ID','Save\x20Configuration','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','8TmiXKY'];_0x1717=function(){return _0x47ca99;};return _0x1717();}const _0x11210e=_0x13c0;(function(_0x3a6d00,_0x5bffac){const _0x2d6b27=_0x13c0,_0x5a6ae3=_0x3a6d00();while(!![]){try{const _0x1b828b=-parseInt(_0x2d6b27(0x1d0))/0x1+-parseInt(_0x2d6b27(0x1e2))/0x2+parseInt(_0x2d6b27(0x1ec))/0x3*(parseInt(_0x2d6b27(0x1ed))/0x4)+parseInt(_0x2d6b27(0x1e1))/0x5*(-parseInt(_0x2d6b27(0x1ea))/0x6)+parseInt(_0x2d6b27(0x1d6))/0x7*(-parseInt(_0x2d6b27(0x1cf))/0x8)+parseInt(_0x2d6b27(0x1db))/0x9+parseInt(_0x2d6b27(0x1e8))/0xa;if(_0x1b828b===_0x5bffac)break;else _0x5a6ae3['push'](_0x5a6ae3['shift']());}catch(_0x2f03eb){_0x5a6ae3['push'](_0x5a6ae3['shift']());}}}(_0x1717,0xa0699));const e={'mcpStatus':{'disconnected':_0x11210e(0x1f3),'connecting':_0x11210e(0x1fe),'connected':_0x11210e(0x1ee),'failed':_0x11210e(0x1d5),'retrying':_0x11210e(0x1f2),'unknown':_0x11210e(0x1d2),'missingApiKey':_0x11210e(0x1f6),'invalidApiKey':_0x11210e(0x1e5),'sessionOccupied':_0x11210e(0x1ff),'networkError':_0x11210e(0x1e0),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x11210e(0x1f7),'clickToConfigure':_0x11210e(0x1cd)},'mcpConfig':{'title':_0x11210e(0x1ce),'description':_0x11210e(0x1d7),'apiKey':_0x11210e(0x1e7),'apiKeyPlaceholder':_0x11210e(0x1cb),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x11210e(0x1d8),'enableAuthHint':_0x11210e(0x1df),'connectionInfo':_0x11210e(0x1e9),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x11210e(0x1dc),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x11210e(0x1fd),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x11210e(0x1fb),'sessionId':_0x11210e(0x201),'sessionIdDescription':_0x11210e(0x1f8),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x11210e(0x1e3),'save':_0x11210e(0x1ca),'saving':_0x11210e(0x200),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x11210e(0x1fa),'configSaved':_0x11210e(0x1e6),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x11210e(0x1d4),'description':_0x11210e(0x1f1),'univerAiLabel':_0x11210e(0x1d1),'getStarted':_0x11210e(0x1f4)},'validation':{'apiKeyRequired':_0x11210e(0x1da),'apiKeyTooShort':_0x11210e(0x1cc),'invalidConfig':_0x11210e(0x1d3),'invalidApiKey':_0x11210e(0x1dd)},'connectionStatus':{'disconnected':_0x11210e(0x1de),'connecting':'Connecting...','connected':_0x11210e(0x1fc),'failed':_0x11210e(0x1d9),'retrying':_0x11210e(0x1f0)},'connectionError':{'missingApiKey':_0x11210e(0x1f9),'invalidApiKey':_0x11210e(0x1eb),'sessionOccupied':_0x11210e(0x1f5),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x11210e(0x1ef)}}},n=e;function _0x13c0(_0x44ba91,_0x2fc163){const _0x171700=_0x1717();return _0x13c0=function(_0x13c0e7,_0x5c7bd5){_0x13c0e7=_0x13c0e7-0x1ca;let _0xbfc426=_0x171700[_0x13c0e7];return _0xbfc426;},_0x13c0(_0x44ba91,_0x2fc163);}module[_0x11210e(0x1e4)]=n;
@@ -1 +1 @@
1
- 'use strict';function _0xb59b(_0x33638a,_0x15b7bb){const _0x4d330a=_0x4d33();return _0xb59b=function(_0xb59b38,_0x502e23){_0xb59b38=_0xb59b38-0x11c;let _0xefd76a=_0x4d330a[_0xb59b38];return _0xefd76a;},_0xb59b(_0x33638a,_0x15b7bb);}const _0x4d82eb=_0xb59b;function _0x4d33(){const _0x2b5f09=['What\x20is\x20API\x20Key?','Configuration\x20Steps:','Saving...','MCP\x20Connected','MCP:\x20Session\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required\x20to\x20connect','API\x20Key','Save\x20Configuration','Disconnected','Invalid\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Enter\x20your\x20API\x20key','Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','8194976eUltjT','9849375dseKeP','2492340XrUxZd','MCP\x20Configuration','MCP\x20Connection\x20Failed','MCP\x20Retrying...','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connecting...','540991GtYMcw','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Max\x20Retries\x20Exceeded','Session\x20ID','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','14OEBJHB','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...','Click\x20to\x20connect\x20MCP','MCP:\x20Network\x20Error','Configuration\x20saved\x20successfully','12370330pmFBfz','MCP:\x20Invalid\x20API\x20Key','2AoopxZ','Copy\x20the\x20JSON\x20configuration\x20below','985QfqKTO','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2973501XjURbT','21772sIyzhC'];_0x4d33=function(){return _0x2b5f09;};return _0x4d33();}(function(_0x3575a9,_0x4f6193){const _0x1d0e3b=_0xb59b,_0x18f244=_0x3575a9();while(!![]){try{const _0x193b68=-parseInt(_0x1d0e3b(0x141))/0x1*(-parseInt(_0x1d0e3b(0x151))/0x2)+-parseInt(_0x1d0e3b(0x11e))/0x3+-parseInt(_0x1d0e3b(0x11f))/0x4*(-parseInt(_0x1d0e3b(0x153))/0x5)+parseInt(_0x1d0e3b(0x138))/0x6*(parseInt(_0x1d0e3b(0x149))/0x7)+-parseInt(_0x1d0e3b(0x136))/0x8+-parseInt(_0x1d0e3b(0x137))/0x9+parseInt(_0x1d0e3b(0x14f))/0xa;if(_0x193b68===_0x4f6193)break;else _0x18f244['push'](_0x18f244['shift']());}catch(_0x1487a6){_0x18f244['push'](_0x18f244['shift']());}}}(_0x4d33,0x8b719));const e={'mcpStatus':{'disconnected':_0x4d82eb(0x128),'connecting':'MCP\x20Connecting...','connected':_0x4d82eb(0x123),'failed':_0x4d82eb(0x13a),'retrying':_0x4d82eb(0x13b),'unknown':_0x4d82eb(0x13c),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x4d82eb(0x150),'sessionOccupied':_0x4d82eb(0x124),'networkError':_0x4d82eb(0x14d),'maxRetriesExceeded':_0x4d82eb(0x144),'clickToConnect':_0x4d82eb(0x14c),'clickToConfigure':_0x4d82eb(0x146)},'mcpConfig':{'title':_0x4d82eb(0x139),'description':_0x4d82eb(0x130),'apiKey':_0x4d82eb(0x12c),'apiKeyPlaceholder':_0x4d82eb(0x132),'apiKeyHint':_0x4d82eb(0x125),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4d82eb(0x129),'mcpClientConfig':_0x4d82eb(0x129),'configInstructions':_0x4d82eb(0x11d),'configStepTitle':_0x4d82eb(0x121),'configStep1':_0x4d82eb(0x152),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4d82eb(0x11c),'sessionId':_0x4d82eb(0x145),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4d82eb(0x13e),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x4d82eb(0x126),'save':_0x4d82eb(0x12d),'saving':_0x4d82eb(0x122),'note1':_0x4d82eb(0x148),'note2':_0x4d82eb(0x13f),'configSaved':_0x4d82eb(0x14e),'configError':_0x4d82eb(0x12a),'apiApplyInfo':{'title':_0x4d82eb(0x120),'description':_0x4d82eb(0x14a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4d82eb(0x142)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4d82eb(0x13d),'invalidConfig':_0x4d82eb(0x12f),'invalidApiKey':_0x4d82eb(0x143)},'connectionStatus':{'disconnected':_0x4d82eb(0x12e),'connecting':_0x4d82eb(0x140),'connected':_0x4d82eb(0x133),'failed':_0x4d82eb(0x135),'retrying':_0x4d82eb(0x14b)},'connectionError':{'missingApiKey':_0x4d82eb(0x12b),'invalidApiKey':_0x4d82eb(0x131),'sessionOccupied':_0x4d82eb(0x127),'networkError':_0x4d82eb(0x147),'maxRetriesExceeded':_0x4d82eb(0x134)}}},n=e;module['exports']=n;
1
+ 'use strict';const _0x47eac6=_0x5a5f;(function(_0x15233d,_0x30cc4e){const _0x138f9b=_0x5a5f,_0x369b86=_0x15233d();while(!![]){try{const _0x80e567=parseInt(_0x138f9b(0x1e1))/0x1*(parseInt(_0x138f9b(0x1f4))/0x2)+parseInt(_0x138f9b(0x1f0))/0x3+parseInt(_0x138f9b(0x1d6))/0x4+-parseInt(_0x138f9b(0x1fb))/0x5*(parseInt(_0x138f9b(0x1eb))/0x6)+-parseInt(_0x138f9b(0x1f6))/0x7+parseInt(_0x138f9b(0x1df))/0x8+-parseInt(_0x138f9b(0x1d5))/0x9;if(_0x80e567===_0x30cc4e)break;else _0x369b86['push'](_0x369b86['shift']());}catch(_0x325181){_0x369b86['push'](_0x369b86['shift']());}}}(_0x2b43,0x4bdc2));function _0x2b43(){const _0x5ad989=['965552ZbLHFm','API\x20key\x20is\x20required','Configuration\x20Parameters:','MCP\x20Configuration','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Network\x20Error','4587552qvqYjt','MCP\x20Disconnected','3MOZQnO','Enable\x20Authentication','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','Connecting...','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','exports','MCP\x20Unknown\x20Status','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','12kgzsoO','What\x20is\x20API\x20Key?','Enter\x20your\x20API\x20key','MCP\x20Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','477897LaiHtC','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key','Max\x20Retries','302778vPjcSi','Retrying...','2500687tUdEAh','Click\x20to\x20configure\x20MCP','Disconnected','MCP:\x20Invalid\x20API\x20Key','MCP:\x20Max\x20Retries\x20Exceeded','878885mXBZrb','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20Occupied','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20API\x20Key\x20Missing','Univer\x20AI\x20Console','API\x20key\x20is\x20required\x20to\x20connect','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','Session\x20ID','Saving...','3679029oesOYK'];_0x2b43=function(){return _0x5ad989;};return _0x2b43();}function _0x5a5f(_0x2838e3,_0x573d51){const _0x2b434c=_0x2b43();return _0x5a5f=function(_0x5a5f69,_0x15cf80){_0x5a5f69=_0x5a5f69-0x1cd;let _0x53c073=_0x2b434c[_0x5a5f69];return _0x53c073;},_0x5a5f(_0x2838e3,_0x573d51);}const e={'mcpStatus':{'disconnected':_0x47eac6(0x1e0),'connecting':_0x47eac6(0x1da),'connected':'MCP\x20Connected','failed':_0x47eac6(0x1ee),'retrying':'MCP\x20Retrying...','unknown':_0x47eac6(0x1e9),'missingApiKey':_0x47eac6(0x203),'invalidApiKey':_0x47eac6(0x1f9),'sessionOccupied':_0x47eac6(0x1ff),'networkError':_0x47eac6(0x1de),'maxRetriesExceeded':_0x47eac6(0x1fa),'clickToConnect':_0x47eac6(0x1e5),'clickToConfigure':_0x47eac6(0x1f7)},'mcpConfig':{'title':_0x47eac6(0x1d9),'description':_0x47eac6(0x1fe),'apiKey':_0x47eac6(0x1f2),'apiKeyPlaceholder':_0x47eac6(0x1ed),'apiKeyHint':_0x47eac6(0x1fd),'enableAuth':_0x47eac6(0x1e2),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x47eac6(0x1ea),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x47eac6(0x1f1),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x47eac6(0x1db),'sessionId':_0x47eac6(0x1d3),'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':_0x47eac6(0x1d8),'maxRetries':_0x47eac6(0x1f3),'save':'Save\x20Configuration','saving':_0x47eac6(0x1d4),'note1':_0x47eac6(0x200),'note2':_0x47eac6(0x1dd),'configSaved':_0x47eac6(0x1d2),'configError':_0x47eac6(0x1fc),'apiApplyInfo':{'title':_0x47eac6(0x1ec),'description':_0x47eac6(0x1d0),'univerAiLabel':_0x47eac6(0x1cd),'getStarted':_0x47eac6(0x1e3)},'validation':{'apiKeyRequired':_0x47eac6(0x1d7),'apiKeyTooShort':_0x47eac6(0x1ef),'invalidConfig':_0x47eac6(0x201),'invalidApiKey':_0x47eac6(0x1e4)},'connectionStatus':{'disconnected':_0x47eac6(0x1f8),'connecting':_0x47eac6(0x1e6),'connected':'Connected','failed':_0x47eac6(0x1dc),'retrying':_0x47eac6(0x1f5)},'connectionError':{'missingApiKey':_0x47eac6(0x1ce),'invalidApiKey':_0x47eac6(0x1e7),'sessionOccupied':_0x47eac6(0x1cf),'networkError':_0x47eac6(0x202),'maxRetriesExceeded':_0x47eac6(0x1d1)}}},n=e;module[_0x47eac6(0x1e8)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x2dfbdb=_0x409d;(function(_0x25f31a,_0x370504){const _0x46f587=_0x409d,_0x4be967=_0x25f31a();while(!![]){try{const _0x1192e5=parseInt(_0x46f587(0x1df))/0x1+-parseInt(_0x46f587(0x1f7))/0x2*(-parseInt(_0x46f587(0x1f0))/0x3)+-parseInt(_0x46f587(0x1e8))/0x4+parseInt(_0x46f587(0x1f2))/0x5*(parseInt(_0x46f587(0x1da))/0x6)+parseInt(_0x46f587(0x1f3))/0x7*(parseInt(_0x46f587(0x200))/0x8)+parseInt(_0x46f587(0x1dd))/0x9+parseInt(_0x46f587(0x206))/0xa*(-parseInt(_0x46f587(0x203))/0xb);if(_0x1192e5===_0x370504)break;else _0x4be967['push'](_0x4be967['shift']());}catch(_0xefb8f9){_0x4be967['push'](_0x4be967['shift']());}}}(_0x11bd,0xd6e45));const e={'mcpStatus':{'disconnected':_0x2dfbdb(0x1f8),'connecting':'MCP\x20连接中...','connected':_0x2dfbdb(0x1dc),'failed':_0x2dfbdb(0x1e9),'retrying':'MCP\x20重连中...','unknown':_0x2dfbdb(0x1eb),'missingApiKey':_0x2dfbdb(0x1fa),'invalidApiKey':_0x2dfbdb(0x1de),'sessionOccupied':_0x2dfbdb(0x201),'networkError':_0x2dfbdb(0x20c),'maxRetriesExceeded':_0x2dfbdb(0x20b),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x2dfbdb(0x1fb)},'mcpConfig':{'title':_0x2dfbdb(0x1ea),'description':_0x2dfbdb(0x1e5),'apiKey':_0x2dfbdb(0x1e6),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x2dfbdb(0x1f6),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x2dfbdb(0x1e2),'configInstructions':_0x2dfbdb(0x1ec),'configStepTitle':'配置步骤:','configStep1':_0x2dfbdb(0x1f1),'configStep2':_0x2dfbdb(0x209),'configStep3':_0x2dfbdb(0x1ff),'sessionId':_0x2dfbdb(0x1f4),'sessionIdDescription':_0x2dfbdb(0x1fe),'authorizationDescription':_0x2dfbdb(0x202),'configParameters':_0x2dfbdb(0x1f9),'maxRetries':_0x2dfbdb(0x207),'save':_0x2dfbdb(0x1e4),'saving':_0x2dfbdb(0x1fd),'note1':_0x2dfbdb(0x1ed),'note2':_0x2dfbdb(0x1e0),'configSaved':_0x2dfbdb(0x1fc),'configError':_0x2dfbdb(0x1e3),'apiApplyInfo':{'title':_0x2dfbdb(0x1f5),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x2dfbdb(0x20a),'getStarted':_0x2dfbdb(0x1db)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x2dfbdb(0x204),'invalidConfig':'配置无效','invalidApiKey':_0x2dfbdb(0x1e7)},'connectionStatus':{'disconnected':_0x2dfbdb(0x1ee),'connecting':'连接中...','connected':'已连接','failed':_0x2dfbdb(0x1e1),'retrying':_0x2dfbdb(0x205)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x2dfbdb(0x208),'sessionOccupied':'会话当前被占用,请稍后再试','networkError':_0x2dfbdb(0x1ef),'maxRetriesExceeded':_0x2dfbdb(0x20d)}}};function _0x11bd(){const _0x584b1d=['带有\x20Bearer\x20前缀的\x20API\x20密钥。','11NYKvXG','API\x20密钥长度至少需要\x2010\x20位','重连中...','38163350JufFJj','最大重试次数','API\x20密钥无效,请检查您的密钥后重试','将配置添加到您的\x20MCP\x20客户端设置文件中','Univer\x20AI\x20控制台','MCP:\x20超出最大重试次数','MCP:\x20网络错误','超出最大重试次数,请稍后再试','exports','6291174PcmUvG','几秒钟内获取您的\x20API\x20密钥','MCP\x20已连接','10934370kfEnxR','MCP:\x20无效的\x20API\x20密钥','1752262MjaTqa','您的\x20API\x20密钥安全存储在本地存储中','连接失败','MCP\x20客户端配置','配置保存失败','保存配置','配置\x20MCP\x20使用\x20AI\x20操作电子表格','API\x20密钥','API\x20密钥无效,请检查密钥是否正确','2015444kFZkvx','MCP\x20连接失败','MCP\x20配置','MCP\x20状态未知','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置更改将立即生效','未连接','网络连接错误,请检查您的网络连接','12fshAHs','复制以下\x20JSON\x20配置','5lfPDEI','252pxuRKn','会话ID','什么是\x20API\x20密钥?','您的\x20API\x20密钥将在此浏览器中本地存储','578044SeuUPL','MCP\x20已断开','配置参数:','MCP:\x20缺少\x20API\x20密钥','点击配置\x20MCP','配置保存成功','保存中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','重启您的\x20MCP\x20客户端以使配置生效','6352hSFdHW','MCP:\x20会话被占用'];_0x11bd=function(){return _0x584b1d;};return _0x11bd();}function _0x409d(_0x5c6d9e,_0x43b300){const _0x11bd6e=_0x11bd();return _0x409d=function(_0x409d23,_0x48ce17){_0x409d23=_0x409d23-0x1d9;let _0x33c44e=_0x11bd6e[_0x409d23];return _0x33c44e;},_0x409d(_0x5c6d9e,_0x43b300);}module[_0x2dfbdb(0x1d9)]=e;
1
+ 'use strict';const _0x53a7c5=_0x58d3;(function(_0x2af41c,_0x28f95c){const _0x59079d=_0x58d3,_0x19f51c=_0x2af41c();while(!![]){try{const _0x1bacc5=parseInt(_0x59079d(0x119))/0x1*(-parseInt(_0x59079d(0x12a))/0x2)+-parseInt(_0x59079d(0x124))/0x3*(-parseInt(_0x59079d(0x13e))/0x4)+parseInt(_0x59079d(0x140))/0x5*(parseInt(_0x59079d(0x10e))/0x6)+-parseInt(_0x59079d(0x126))/0x7*(-parseInt(_0x59079d(0x10d))/0x8)+-parseInt(_0x59079d(0x130))/0x9+-parseInt(_0x59079d(0x13c))/0xa+-parseInt(_0x59079d(0x135))/0xb*(-parseInt(_0x59079d(0x113))/0xc);if(_0x1bacc5===_0x28f95c)break;else _0x19f51c['push'](_0x19f51c['shift']());}catch(_0x58f4f0){_0x19f51c['push'](_0x19f51c['shift']());}}}(_0x5873,0x19256));const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x53a7c5(0x134),'failed':'MCP\x20连接失败','retrying':_0x53a7c5(0x139),'unknown':_0x53a7c5(0x116),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x53a7c5(0x125),'sessionOccupied':_0x53a7c5(0x11c),'networkError':_0x53a7c5(0x112),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x53a7c5(0x138),'clickToConfigure':_0x53a7c5(0x11f)},'mcpConfig':{'title':_0x53a7c5(0x114),'description':_0x53a7c5(0x127),'apiKey':_0x53a7c5(0x111),'apiKeyPlaceholder':_0x53a7c5(0x11d),'apiKeyHint':_0x53a7c5(0x132),'enableAuth':_0x53a7c5(0x117),'enableAuthHint':_0x53a7c5(0x122),'connectionInfo':_0x53a7c5(0x13f),'mcpClientConfig':_0x53a7c5(0x13f),'configInstructions':_0x53a7c5(0x131),'configStepTitle':_0x53a7c5(0x13d),'configStep1':_0x53a7c5(0x120),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x53a7c5(0x11e),'sessionIdDescription':_0x53a7c5(0x10f),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x53a7c5(0x115),'maxRetries':'最大重试次数','save':_0x53a7c5(0x12f),'saving':_0x53a7c5(0x13b),'note1':_0x53a7c5(0x110),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x53a7c5(0x11b),'configError':_0x53a7c5(0x128),'apiApplyInfo':{'title':_0x53a7c5(0x12e),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x53a7c5(0x137),'apiKeyTooShort':_0x53a7c5(0x118),'invalidConfig':_0x53a7c5(0x129),'invalidApiKey':_0x53a7c5(0x11a)},'connectionStatus':{'disconnected':_0x53a7c5(0x121),'connecting':_0x53a7c5(0x123),'connected':_0x53a7c5(0x133),'failed':_0x53a7c5(0x136),'retrying':'重连中...'},'connectionError':{'missingApiKey':_0x53a7c5(0x12d),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x53a7c5(0x12b),'networkError':_0x53a7c5(0x13a),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x5873(){const _0x3dcda8=['需要\x20API\x20密钥才能连接','什么是\x20API\x20密钥?','保存配置','1318365wUuiwm','将以下配置添加到您的\x20MCP\x20客户端设置中:','您的\x20API\x20密钥将在此浏览器中本地存储','已连接','MCP\x20已连接','99OgNlZq','连接失败','API\x20密钥不能为空','点击连接\x20MCP','MCP\x20重连中...','网络连接错误,请检查您的网络连接','保存中...','1005740yZAGEE','配置步骤:','20NEPOHx','MCP\x20客户端配置','595Kwnyme','4184kJySZI','5130djVybS','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置更改将立即生效','API\x20密钥','MCP:\x20网络错误','112872iiqyVl','MCP\x20配置','配置参数:','MCP\x20状态未知','启用身份验证','API\x20密钥长度至少需要\x2010\x20位','4UjgSnG','API\x20密钥无效,请检查密钥是否正确','配置保存成功','MCP:\x20会话被占用','请输入您的\x20API\x20密钥','会话ID','点击配置\x20MCP','复制以下\x20JSON\x20配置','未连接','启用身份验证以获得安全连接','连接中...','90921wEwtOJ','MCP:\x20无效的\x20API\x20密钥','2471EhtTtG','配置\x20MCP\x20使用\x20AI\x20操作电子表格','配置保存失败','配置无效','86248YWgFEn','会话当前被占用,请稍后再试','exports'];_0x5873=function(){return _0x3dcda8;};return _0x5873();}function _0x58d3(_0x5a187b,_0x5165be){const _0x5873e5=_0x5873();return _0x58d3=function(_0x58d371,_0x5945b2){_0x58d371=_0x58d371-0x10d;let _0x3a467c=_0x5873e5[_0x58d371];return _0x3a467c;},_0x58d3(_0x5a187b,_0x5165be);}module[_0x53a7c5(0x12c)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x5241af=_0x5ea8;(function(_0x2c827b,_0x4d3058){const _0x1de751=_0x5ea8,_0x5e14e2=_0x2c827b();while(!![]){try{const _0x457d5b=-parseInt(_0x1de751(0xe1))/0x1*(-parseInt(_0x1de751(0xbd))/0x2)+-parseInt(_0x1de751(0xdf))/0x3+parseInt(_0x1de751(0xdc))/0x4*(parseInt(_0x1de751(0xe2))/0x5)+parseInt(_0x1de751(0xd3))/0x6*(-parseInt(_0x1de751(0xe5))/0x7)+parseInt(_0x1de751(0xc2))/0x8*(parseInt(_0x1de751(0xcc))/0x9)+parseInt(_0x1de751(0xbc))/0xa+parseInt(_0x1de751(0xd1))/0xb*(parseInt(_0x1de751(0xd0))/0xc);if(_0x457d5b===_0x4d3058)break;else _0x5e14e2['push'](_0x5e14e2['shift']());}catch(_0x7da96d){_0x5e14e2['push'](_0x5e14e2['shift']());}}}(_0x5f25,0x3eaee));function _0x5ea8(_0x5909b5,_0x38eca3){const _0x5f2512=_0x5f25();return _0x5ea8=function(_0x5ea87c,_0x15dcc7){_0x5ea87c=_0x5ea87c-0xbb;let _0x519936=_0x5f2512[_0x5ea87c];return _0x519936;},_0x5ea8(_0x5909b5,_0x38eca3);}function _0x5f25(){const _0x3c75ef=['1447275lpdpjF','Univer\x20AI\x20Console','54771yMStmP','23535oErSeQ','MCP:\x20Invalid\x20API\x20Key','Enable\x20Authentication','535171VPRSxU','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','1445440UbgifU','6boKEIj','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP:\x20Max\x20Retries\x20Exceeded','Connection\x20Failed','Configuration\x20Steps:','8SGDJgj','exports','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20API\x20Key\x20Missing','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Retrying...','MCP\x20Unknown\x20Status','2030589YHBPmE','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','What\x20is\x20API\x20Key?','Connected','36LMAPFT','2065899HWJcsG','Max\x20Retries','30KisGKt','MCP\x20Connected','MCP:\x20Network\x20Error','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','API\x20key\x20is\x20required\x20to\x20connect','API\x20Key','Click\x20to\x20connect\x20MCP','20DMoUEK','MCP\x20Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'];_0x5f25=function(){return _0x3c75ef;};return _0x5f25();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x5241af(0xd4),'failed':_0x5241af(0xdd),'retrying':'MCP\x20Retrying...','unknown':_0x5241af(0xcb),'missingApiKey':_0x5241af(0xc7),'invalidApiKey':_0x5241af(0xe3),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x5241af(0xd5),'maxRetriesExceeded':_0x5241af(0xbf),'clickToConnect':_0x5241af(0xdb),'clickToConfigure':_0x5241af(0xc5)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5241af(0xc6),'apiKey':_0x5241af(0xda),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5241af(0xe4),'enableAuthHint':_0x5241af(0xc9),'connectionInfo':_0x5241af(0xe9),'mcpClientConfig':_0x5241af(0xe9),'configInstructions':_0x5241af(0xe8),'configStepTitle':_0x5241af(0xc1),'configStep1':_0x5241af(0xe7),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x5241af(0xd7),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5241af(0xd8),'maxRetries':_0x5241af(0xd2),'save':_0x5241af(0xd6),'saving':'Saving...','note1':_0x5241af(0xe6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5241af(0xce),'description':_0x5241af(0xcd),'univerAiLabel':_0x5241af(0xe0),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5241af(0xc4),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5241af(0xde)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5241af(0xbb),'connected':_0x5241af(0xcf),'failed':_0x5241af(0xc0),'retrying':_0x5241af(0xca)},'connectionError':{'missingApiKey':_0x5241af(0xd9),'invalidApiKey':_0x5241af(0xbe),'sessionOccupied':_0x5241af(0xc8),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5241af(0xea)}}},n=e;module[_0x5241af(0xc3)]=n;
1
+ 'use strict';const _0xd0dfbe=_0x257f;(function(_0x202161,_0x30afee){const _0x49f013=_0x257f,_0x498959=_0x202161();while(!![]){try{const _0x1f26c0=parseInt(_0x49f013(0x141))/0x1+-parseInt(_0x49f013(0x13e))/0x2+-parseInt(_0x49f013(0x12f))/0x3+-parseInt(_0x49f013(0x13d))/0x4+-parseInt(_0x49f013(0x134))/0x5*(parseInt(_0x49f013(0x130))/0x6)+parseInt(_0x49f013(0x123))/0x7*(-parseInt(_0x49f013(0x115))/0x8)+parseInt(_0x49f013(0x11b))/0x9*(parseInt(_0x49f013(0x140))/0xa);if(_0x1f26c0===_0x30afee)break;else _0x498959['push'](_0x498959['shift']());}catch(_0xa03aba){_0x498959['push'](_0x498959['shift']());}}}(_0x41a3,0xa15ab));function _0x41a3(){const _0x35878b=['API\x20key\x20is\x20required','exports','3353924ZOIztf','1458688lVSrhN','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','81460OXDfod','545490LflxzP','MCP:\x20API\x20Key\x20Missing','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Failed','MCP:\x20Session\x20Occupied','Click\x20to\x20configure\x20MCP','MCP\x20Disconnected','8YHZvyk','Configuration\x20Steps:','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key','2466AvSXvh','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connecting...','MCP\x20Retrying...','Invalid\x20configuration','Retrying...','Enable\x20Authentication','526246ZhlPrm','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP\x20Configuration','1219290bNxnln','12TcZLDV','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','167885WwuJoy','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','Max\x20Retries','MCP\x20Connected','Univer\x20AI\x20Console','Configuration\x20saved\x20successfully'];_0x41a3=function(){return _0x35878b;};return _0x41a3();}const e={'mcpStatus':{'disconnected':_0xd0dfbe(0x114),'connecting':_0xd0dfbe(0x11e),'connected':_0xd0dfbe(0x138),'failed':_0xd0dfbe(0x128),'retrying':_0xd0dfbe(0x11f),'unknown':_0xd0dfbe(0x126),'missingApiKey':_0xd0dfbe(0x142),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0xd0dfbe(0x112),'networkError':_0xd0dfbe(0x131),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xd0dfbe(0x113)},'mcpConfig':{'title':_0xd0dfbe(0x12e),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xd0dfbe(0x11a),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xd0dfbe(0x119),'enableAuth':_0xd0dfbe(0x122),'enableAuthHint':_0xd0dfbe(0x110),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xd0dfbe(0x124),'configStepTitle':_0xd0dfbe(0x116),'configStep1':_0xd0dfbe(0x117),'configStep2':_0xd0dfbe(0x12c),'configStep3':_0xd0dfbe(0x127),'sessionId':_0xd0dfbe(0x136),'sessionIdDescription':_0xd0dfbe(0x12a),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xd0dfbe(0x129),'maxRetries':_0xd0dfbe(0x137),'save':_0xd0dfbe(0x125),'saving':'Saving...','note1':_0xd0dfbe(0x132),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0xd0dfbe(0x13a),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0xd0dfbe(0x12b),'description':_0xd0dfbe(0x135),'univerAiLabel':_0xd0dfbe(0x139),'getStarted':_0xd0dfbe(0x11d)},'validation':{'apiKeyRequired':_0xd0dfbe(0x13b),'apiKeyTooShort':_0xd0dfbe(0x10f),'invalidConfig':_0xd0dfbe(0x120),'invalidApiKey':_0xd0dfbe(0x133)},'connectionStatus':{'disconnected':_0xd0dfbe(0x118),'connecting':'Connecting...','connected':'Connected','failed':_0xd0dfbe(0x111),'retrying':_0xd0dfbe(0x121)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0xd0dfbe(0x12d),'sessionOccupied':_0xd0dfbe(0x11c),'networkError':_0xd0dfbe(0x13f),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x257f(_0x2883ff,_0x213c22){const _0x41a3b5=_0x41a3();return _0x257f=function(_0x257fb4,_0x4236c6){_0x257fb4=_0x257fb4-0x10f;let _0x25b738=_0x41a3b5[_0x257fb4];return _0x25b738;},_0x257f(_0x2883ff,_0x213c22);}module[_0xd0dfbe(0x13c)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x13b83e=_0x2c17;(function(_0x23f94f,_0x3b03a7){var _0x4a7457=_0x2c17,_0x490f69=_0x23f94f();while(!![]){try{var _0x34c12d=-parseInt(_0x4a7457(0x268))/0x1+parseInt(_0x4a7457(0x297))/0x2*(parseInt(_0x4a7457(0x304))/0x3)+parseInt(_0x4a7457(0x1ce))/0x4*(-parseInt(_0x4a7457(0x28a))/0x5)+-parseInt(_0x4a7457(0x26f))/0x6+-parseInt(_0x4a7457(0x277))/0x7*(parseInt(_0x4a7457(0x22c))/0x8)+parseInt(_0x4a7457(0x1dc))/0x9*(-parseInt(_0x4a7457(0x22b))/0xa)+parseInt(_0x4a7457(0x2af))/0xb;if(_0x34c12d===_0x3b03a7)break;else _0x490f69['push'](_0x490f69['shift']());}catch(_0x2c7b85){_0x490f69['push'](_0x490f69['shift']());}}}(_0x5e7e,0xaaacf));var Ee=Object[_0x13b83e(0x28d)],we=(_0xdd06d9,_0x5c474a,_0x1a45c2)=>_0x5c474a in _0xdd06d9?Ee(_0xdd06d9,_0x5c474a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a45c2}):_0xdd06d9[_0x5c474a]=_0x1a45c2,x=(_0x2a64eb,_0x5b2b77,_0x473534)=>we(_0x2a64eb,typeof _0x5b2b77!=_0x13b83e(0x2e0)?_0x5b2b77+'':_0x5b2b77,_0x473534);import{LocaleService as _0x48cdf0,Inject as _0x31ebf0,Injector as _0xe617fa,IConfigService as _0x123bf2,ILocalStorageService as _0x133dba,ILogService as _0x55d68a,Disposable as _0x27f41f,CommandType as _0x42867f,ICommandService as _0x5a1004,DependentOn as _0x13bb6e,Plugin as _0x55e620,merge as _0x1e80dd}from'@univerjs/core';import{jsxs as _0x55f79c,jsx as _0x45624b}from'react/jsx-runtime';import{MCPConnectionStatus as _0x5b2853,MCPConnectionError as _0xffdbc4,MCPConnectionController as _0x530fb2,MCP_PLUGIN_CONFIG_KEY as _0x17ce20,UniverMCPPlugin as _0x41ac27}from'@univerjs-pro/mcp';import{Input as _0x350112,Button as _0xfa5316,MessageType as _0x2486d5,Tooltip as _0x4c3829,clsx as _0x4afb8d}from'@univerjs/design';import{useDependency as _0x342462,useObservable as _0xf0ecad,IUIPartsService as _0x352db5,IDialogService as _0x15ecf3,IMessageService as _0x1e2bf2,ComponentManager as _0x20508d,connectInjector as _0x32a723,BuiltInUIPart as _0x2a0d4f,MenuItemType as _0x5a7c3f,RibbonStartGroup as _0xb1125a,IMenuManagerService as _0x25215d}from'@univerjs/ui';import{BehaviorSubject as _0xec8ff7}from'rxjs';import{forwardRef as _0x101d46,useRef as _0x3132cd,createElement as _0x49f39f,useState as _0xa49c44,useCallback as _0x375bea}from'react';import{ISocketService as _0x14571d,WebSocketService as _0x1a839a}from'@univerjs/network';var g=function(){var _0x3b7801=_0x13b83e;return g=Object[_0x3b7801(0x1dd)]||function(_0x11f777){var _0x3da4d1=_0x3b7801;for(var _0x4508f4,_0x1f469d=0x1,_0xd0538=arguments[_0x3da4d1(0x2f5)];_0x1f469d<_0xd0538;_0x1f469d++){_0x4508f4=arguments[_0x1f469d];for(var _0x5ef68f in _0x4508f4)Object[_0x3da4d1(0x27b)]['hasOwnProperty'][_0x3da4d1(0x2a9)](_0x4508f4,_0x5ef68f)&&(_0x11f777[_0x5ef68f]=_0x4508f4[_0x5ef68f]);}return _0x11f777;},g['apply'](this,arguments);},We=function(_0x2283da,_0x150573){var _0x1ac7f0=_0x13b83e,_0x100b37={};for(var _0x53109c in _0x2283da)Object[_0x1ac7f0(0x27b)][_0x1ac7f0(0x20f)][_0x1ac7f0(0x2a9)](_0x2283da,_0x53109c)&&_0x150573[_0x1ac7f0(0x305)](_0x53109c)<0x0&&(_0x100b37[_0x53109c]=_0x2283da[_0x53109c]);if(_0x2283da!=null&&typeof Object[_0x1ac7f0(0x2fd)]==_0x1ac7f0(0x1fb)){for(var _0x26e334=0x0,_0x53109c=Object[_0x1ac7f0(0x2fd)](_0x2283da);_0x26e334<_0x53109c[_0x1ac7f0(0x2f5)];_0x26e334++)_0x150573[_0x1ac7f0(0x305)](_0x53109c[_0x26e334])<0x0&&Object[_0x1ac7f0(0x27b)]['propertyIsEnumerable']['call'](_0x2283da,_0x53109c[_0x26e334])&&(_0x100b37[_0x53109c[_0x26e334]]=_0x2283da[_0x53109c[_0x26e334]]);}return _0x100b37;},b=_0x101d46(function(_0x5cf2f4,_0x114a1d){var _0x1ec0e8=_0x13b83e,_0x5f315c=_0x5cf2f4[_0x1ec0e8(0x26e)],_0xec1480=_0x5cf2f4['id'],_0x4294f9=_0x5cf2f4[_0x1ec0e8(0x201)],_0x43eb3f=_0x5cf2f4[_0x1ec0e8(0x29f)],_0x4cc6ab=We(_0x5cf2f4,[_0x1ec0e8(0x26e),'id',_0x1ec0e8(0x201),'extend']),_0xbfa23=_0x1ec0e8(0x292)[_0x1ec0e8(0x204)](_0xec1480,'\x20')[_0x1ec0e8(0x204)](_0x4294f9||'')[_0x1ec0e8(0x235)](),_0x5d2bf6=_0x3132cd('_'['concat'](Xe()));return le(_0x5f315c,''[_0x1ec0e8(0x204)](_0xec1480),{'defIds':_0x5f315c['defIds'],'idSuffix':_0x5d2bf6['current']},g({'ref':_0x114a1d,'className':_0xbfa23},_0x4cc6ab),_0x43eb3f);});function le(_0x1c8073,_0x1cd397,_0x143873,_0x56291c,_0x3bcc9c){var _0x567930=_0x13b83e;return _0x49f39f(_0x1c8073[_0x567930(0x312)],g(g({'key':_0x1cd397},qe(_0x1c8073,_0x143873,_0x3bcc9c)),_0x56291c),(Ze(_0x1c8073,_0x143873)[_0x567930(0x1e2)]||[])[_0x567930(0x284)](function(_0x5ec990,_0x50a252){var _0x45aeda=_0x567930;return le(_0x5ec990,''[_0x45aeda(0x204)](_0x1cd397,'-')[_0x45aeda(0x204)](_0x1c8073[_0x45aeda(0x312)],'-')['concat'](_0x50a252),_0x143873,void 0x0,_0x3bcc9c);}));}function qe(_0xc66188,_0x4de87f,_0x3b34dd){var _0x29cbd3=_0x13b83e,_0x3772c6=g({},_0xc66188['attrs']);_0x3b34dd!=null&&_0x3b34dd[_0x29cbd3(0x290)]&&_0x3772c6[_0x29cbd3(0x20d)]===_0x29cbd3(0x290)&&(_0x3772c6[_0x29cbd3(0x20d)]=_0x3b34dd[_0x29cbd3(0x290)]),_0xc66188[_0x29cbd3(0x312)]===_0x29cbd3(0x2cc)&&_0x3772c6['id']&&(_0x3772c6['id']=_0x3772c6['id']+_0x4de87f[_0x29cbd3(0x309)]),Object[_0x29cbd3(0x1f7)](_0x3772c6)[_0x29cbd3(0x1f0)](function(_0x271f3e){var _0x56d106=_0x29cbd3,_0x58ef01=_0x271f3e[0x0],_0x565794=_0x271f3e[0x1];_0x58ef01===_0x56d106(0x2cc)&&typeof _0x565794=='string'&&(_0x3772c6[_0x58ef01]=_0x565794['replace'](/url\(#(.*)\)/,_0x56d106(0x29d)[_0x56d106(0x204)](_0x4de87f[_0x56d106(0x309)],')')));});var _0x5255c5=_0x4de87f[_0x29cbd3(0x208)];return!_0x5255c5||_0x5255c5[_0x29cbd3(0x2f5)]===0x0||(_0xc66188[_0x29cbd3(0x312)]==='use'&&_0x3772c6[_0x29cbd3(0x1e5)]&&(_0x3772c6[_0x29cbd3(0x1e5)]=_0x3772c6[_0x29cbd3(0x1e5)]+_0x4de87f[_0x29cbd3(0x309)]),Object[_0x29cbd3(0x1f7)](_0x3772c6)[_0x29cbd3(0x1f0)](function(_0x3b9e24){var _0x4fe26d=_0x29cbd3,_0x13c23c=_0x3b9e24[0x0],_0x37414a=_0x3b9e24[0x1];typeof _0x37414a=='string'&&(_0x3772c6[_0x13c23c]=_0x37414a[_0x4fe26d(0x28f)](/url\(#(.*)\)/,_0x4fe26d(0x29d)['concat'](_0x4de87f[_0x4fe26d(0x309)],')')));})),_0x3772c6;}function Ze(_0x33d913,_0x415584){var _0x4c2399=_0x13b83e,_0x1399ae,_0x45f752=_0x415584[_0x4c2399(0x208)];return!_0x45f752||_0x45f752['length']===0x0?_0x33d913:_0x33d913[_0x4c2399(0x312)]==='defs'&&(!((_0x1399ae=_0x33d913[_0x4c2399(0x1e2)])===null||_0x1399ae===void 0x0)&&_0x1399ae[_0x4c2399(0x2f5)])?g(g({},_0x33d913),{'children':_0x33d913[_0x4c2399(0x1e2)]['map'](function(_0xf13430){var _0x1f9e6e=_0x4c2399;return typeof _0xf13430[_0x1f9e6e(0x20e)]['id']==_0x1f9e6e(0x261)&&_0x45f752&&_0x45f752[_0x1f9e6e(0x303)](_0xf13430[_0x1f9e6e(0x20e)]['id'])?g(g({},_0xf13430),{'attrs':g(g({},_0xf13430[_0x1f9e6e(0x20e)]),{'id':_0xf13430[_0x1f9e6e(0x20e)]['id']+_0x415584[_0x1f9e6e(0x309)]})}):_0xf13430;})}):_0x33d913;}function Xe(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}b[_0x13b83e(0x206)]='UniverIcon';var Je={'tag':_0x13b83e(0x2ef),'attrs':{'xmlns':_0x13b83e(0x23d),'fill':_0x13b83e(0x28e),'viewBox':_0x13b83e(0x26d),'width':_0x13b83e(0x291),'height':'1em'},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'fill':_0x13b83e(0x21f),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x13b83e(0x2de),'clipRule':_0x13b83e(0x2de)}}]},ue=_0x101d46(function(_0x36bebe,_0x22a9a5){var _0x35b7d2=_0x13b83e;return _0x49f39f(b,Object[_0x35b7d2(0x1dd)]({},_0x36bebe,{'id':_0x35b7d2(0x316),'ref':_0x22a9a5,'icon':Je}));});ue[_0x13b83e(0x206)]='CheckMarkIcon';var Qe={'tag':_0x13b83e(0x2ef),'attrs':{'xmlns':_0x13b83e(0x23d),'fill':_0x13b83e(0x28e),'viewBox':_0x13b83e(0x25b),'width':_0x13b83e(0x291),'height':_0x13b83e(0x291)},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'stroke':_0x13b83e(0x21f),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x13b83e(0x1d7),'strokeLinejoin':_0x13b83e(0x1d7),'strokeWidth':1.33}},{'tag':_0x13b83e(0x30e),'attrs':{'stroke':_0x13b83e(0x21f),'d':_0x13b83e(0x27f),'strokeLinecap':_0x13b83e(0x1d7),'strokeLinejoin':_0x13b83e(0x1d7),'strokeWidth':1.33}}]},ve=_0x101d46(function(_0x578da5,_0x4b316f){var _0x22c2d8=_0x13b83e;return _0x49f39f(b,Object[_0x22c2d8(0x1dd)]({},_0x578da5,{'id':'close-small-single','ref':_0x4b316f,'icon':Qe}));});ve[_0x13b83e(0x206)]=_0x13b83e(0x2e6);var en={'tag':'svg','attrs':{'xmlns':_0x13b83e(0x23d),'fill':_0x13b83e(0x28e),'viewBox':_0x13b83e(0x26d),'width':'1em','height':'1em'},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'fill':_0x13b83e(0x21f),'d':_0x13b83e(0x2bd)}},{'tag':'path','attrs':{'fill':_0x13b83e(0x21f),'d':_0x13b83e(0x1f8)}},{'tag':_0x13b83e(0x30e),'attrs':{'fill':'currentColor','d':_0x13b83e(0x237),'fillRule':_0x13b83e(0x2de),'clipRule':_0x13b83e(0x2de)}}]},de=_0x101d46(function(_0x3d06f9,_0x2c0acb){var _0x459339=_0x13b83e;return _0x49f39f(b,Object[_0x459339(0x1dd)]({},_0x3d06f9,{'id':'help-single','ref':_0x2c0acb,'icon':en}));});de[_0x13b83e(0x206)]=_0x13b83e(0x256);function _0x5e7e(){var _0x3a17b8=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','extend','close','RETRYING','mcpConfig.connectionStatus.failed','getOwnPropertyDescriptor','_handleConfigure','API\x20密钥','连接失败','mcpConfig.note2','_commandService','call','Click\x20to\x20connect\x20MCP','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.connectionError.maxRetriesExceeded','univer.ai','MCP:\x20网络错误','31645867PdLnsm','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','_localStorageService','Configuration\x20Steps:','disposeWithMe','保存配置','OTHERS','mcpConfig.apiKeyPlaceholder','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','registerCommand','MCP:\x20会话被占用','_menuManagerService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.connectionError.invalidApiKey','配置参数:','value','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.validation.invalidApiKey','将配置添加到您的\x20MCP\x20客户端设置文件中','javascript:void(0)','MCP:\x20API\x20Key\x20Missing','mcpConfig.title','Configuration\x20saved\x20successfully','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','需要\x20API\x20密钥才能连接','mask','Configuration\x20Parameters:','univer.plus','univer-text-xs\x20univer-text-gray-600','Configuration\x20Notes:','mcpStatus.sessionOccupied','mcpConfig.connectionError.sessionOccupied','apiKey','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','onStarting','setConfig','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-bg-red-500','univer-space-y-2','mcpConfig.sessionIdDescription','Disconnected','https://console.univer.ai','bottom','evenodd','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','symbol','univer-text-gray-400','Saving...','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','_registerComponent','univer-text-sm\x20univer-font-medium','CloseSmallSingle','on-line-icon_clip0_910_349','_createConfigPanelComponent','univer-bg-blue-500','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','Save\x20Configuration','hover:univer-opacity-80','svg','_loadStoredApiKey','translate(.97)','_uiPartsService','getItem','span','length','MCP\x20重连中...','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.connectionInfo','validateApiKey','div','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','subscribe','getOwnPropertySymbols','off','clipPath','BUTTON','label','url(#off-line-icon_clip0_910_343)','includes','180SkAKem','indexOf','mcpServerUrl','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.apiKeyHint','idSuffix','mcpConfig.apiApplyInfo.title','API\x20密钥不能为空','OnLineIcon','MCP:\x20Network\x20Error','path','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_componentManager','tag','mcp-config-dialog','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_initializeMenus','check-mark-icon','warn','mcpStatus.clickToConnect','_initConfigSync','_blank','univer-flex\x20univer-gap-3','MCP\x20配置','INVALID_API_KEY','保存中...','Connected','mcpConfig.configParameters','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-text-xs\x20univer-text-gray-500','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','启用身份验证以获得安全连接','mcpStatus.unknown','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','配置保存失败','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Error','__setCustomHeaders','MCP:\x20无效的\x20API\x20密钥','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','_loading$','getConfig','white','mcpConfig.apiApplyInfo.getStarted','Authorization:','12gAvHys','error','_initStatusComponent','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_connectionController','Enter\x20your\x20API\x20key','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','https://console.univer.plus','mcpConfig.connectionStatus.disconnected','round','get','univer-text-sm\x20univer-text-gray-500','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_logService','1989absAwy','assign','已连接','HEADER_MENU','_apiKey$','MCP\x20Configuration','children','MCP\x20Client\x20Configuration','isValid','xlink:href','NONE','univer-flex\x20univer-items-start\x20univer-gap-2','Retrying...','几秒钟内获取您的\x20API\x20密钥','配置保存成功','MCP\x20客户端配置','CONNECTING','univer-font-medium','open','配置更改将立即生效','forEach','会话当前被占用,请稍后再试','_initializeCommands','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_mcpConnectionController','CONNECTED','entries','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','mcpConfig.validation.invalidConfig','show','function','MCP\x20连接中...','_config','connectionStatus$','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','subscribeConfigValue$','className','会话ID','您的\x20API\x20密钥安全存储在本地存储中','concat','univer-flex\x20univer-items-start\x20univer-gap-3','displayName','url(#on-line-icon_clip0_910_349)','defIds','DISCONNECTED','配置步骤:','connectionError$','API\x20密钥无效,请检查您的密钥后重试','fill','attrs','hasOwnProperty','univer-flex\x20univer-items-center\x20univer-gap-2','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20Key','启用身份验证','MCP\x20已连接','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_mcpCoreConfig$','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','_injector','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_localeService','mcpStatus.clickToConfigure','mcpConfig.configStepTitle','mcpConfig.validation.apiKeyTooShort','currentColor','univer-text-blue-600','univer-min-w-0\x20univer-flex-1','mcpConfig.apiApplyInfo.description','mcpConfig.description','add','配置无效','next','API\x20key\x20is\x20required','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-space-y-4','showDeveloperTools','15170ClImuW','8155592RIdpGG','Invalid\x20configuration','MCP\x20已断开','pluginName','MCP:\x20Session\x20Occupied','_validateConfig','text','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','FAILED','trim','defs','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','OffLineIcon','univer-flex-shrink-0\x20univer-text-blue-500','请输入您的\x20API\x20密钥','_config$','Connecting...','http://www.w3.org/2000/svg','mcpConfig.connectionStatus.connected','mcpConfig.save','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','on-line-icon','MCP:\x20Invalid\x20API\x20Key','setItem','Click\x20to\x20configure\x20MCP','mcpConfig.authorizationDescription','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-bg-gray-500','_configService','Connection\x20Failed','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','Max\x20Retries','最大重试次数','univer-space-y-5','Close','SESSION_ID_OCCUPIED','mcpStatus.failed','mcpConfig.apiKey','mcp-ui.command.openConfigPanel','COMMAND','univer-text-red-500','HelpSingle','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','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','register','0\x200\x2017\x2017','重连中...','MAX_RETRIES_EXCEEDED','univer_session_id:','registerComponent','重启您的\x20MCP\x20客户端以使配置生效','string','Enable\x20Authentication','What\x20is\x20API\x20Key?','mcpConfig.configStep1','univer-flex\x20univer-cursor-pointer\x20univer-items-center','mcpConfig.configStep2','什么是\x20API\x20密钥?','843322WusUFZ','\x20-\x20','复制以下\x20JSON\x20配置','mcpStatus.invalidApiKey','Session\x20ID','0\x200\x2016\x2016','icon','718014hBSjnY','API\x20密钥无效,请检查密钥是否正确','getCurrentConfig','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.connectionError.networkError','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-green-500','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','7STlQgO','MCP\x20Retrying...','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','prototype','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','M5.21243\x2012.287L11.8791\x205.62036','showConfigPanel','_messageService','mcpConfig.connectionStatus.retrying','MCPConfigPanel','map','超出最大重试次数,请稍后再试','网络连接错误,请检查您的网络连接','MCP\x20Connecting...','push','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','1818655QDQoJG','off-line-icon_clip0_910_343','M0\x200H16V16H0z','defineProperty','none','replace','colorChannel1','1em','univerjs-icon\x20univerjs-icon-','univer-space-y-3','Failed\x20to\x20save\x20configuration','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20缺少\x20API\x20密钥','41036QvrztT','MCP\x20Connected','NETWORK_ERROR','_dialogService','MCP\x20Connection\x20Failed','点击配置\x20MCP','url(#$1'];_0x5e7e=function(){return _0x3a17b8;};return _0x5e7e();}var nn={'tag':_0x13b83e(0x2ef),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x13b83e(0x28e),'viewBox':'0\x200\x2016\x2016','width':_0x13b83e(0x291),'height':_0x13b83e(0x291)},'children':[{'tag':'g','attrs':{'clipPath':_0x13b83e(0x302)},'children':[{'tag':'path','attrs':{'stroke':_0x13b83e(0x21f),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x13b83e(0x1d7),'strokeLinejoin':_0x13b83e(0x1d7),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x13b83e(0x2ff),'attrs':{'id':_0x13b83e(0x28b)},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'fill':_0x13b83e(0x1cb),'d':_0x13b83e(0x28c)}}]}]}],'defIds':[_0x13b83e(0x28b)]},ge=_0x101d46(function(_0x5d93c6,_0xcffe96){var _0x423334=_0x13b83e;return _0x49f39f(b,Object[_0x423334(0x1dd)]({},_0x5d93c6,{'id':'off-line-icon','ref':_0xcffe96,'icon':nn}));});ge[_0x13b83e(0x206)]=_0x13b83e(0x238);var rn={'tag':'svg','attrs':{'xmlns':_0x13b83e(0x23d),'fill':_0x13b83e(0x28e),'viewBox':'0\x200\x2017\x2016','width':_0x13b83e(0x291),'height':_0x13b83e(0x291)},'children':[{'tag':'g','attrs':{'clipPath':_0x13b83e(0x207)},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'stroke':_0x13b83e(0x21f),'d':_0x13b83e(0x2b0),'strokeLinecap':_0x13b83e(0x1d7),'strokeLinejoin':_0x13b83e(0x1d7),'strokeWidth':1.2}}]},{'tag':_0x13b83e(0x236),'attrs':{},'children':[{'tag':_0x13b83e(0x2ff),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x13b83e(0x30e),'attrs':{'fill':_0x13b83e(0x1cb),'d':_0x13b83e(0x28c),'transform':_0x13b83e(0x2f1)}}]}]}],'defIds':[_0x13b83e(0x2e7)]},fe=_0x101d46(function(_0xa64bef,_0x4fba38){var _0x122740=_0x13b83e;return _0x49f39f(b,Object['assign']({},_0xa64bef,{'id':_0x122740(0x241),'ref':_0x4fba38,'icon':rn}));});fe[_0x13b83e(0x206)]=_0x13b83e(0x30c);function tn(_0x1c4b94){var _0x5b3f13=_0x13b83e,_0x297daf,_0x116b01;const {mcpCoreConfig:_0xcd9e6a,onSave:_0x83d65a,loading:_0x24e600=!0x1,config:_0x5f14dc,connectionStatus$:_0x524372,connectionError$:_0x47639e,currentApiKey$:_0xc0742b,currentSessionId$:_0x1428ca}=_0x1c4b94,_0x326593=_0x342462(_0x48cdf0),_0x526e86=_0xf0ecad(_0x524372,_0x5b2853[_0x5b3f13(0x209)]),_0x12ebac=_0xf0ecad(_0x47639e,_0xffdbc4[_0x5b3f13(0x1e6)]),_0x52b649=_0xf0ecad(_0x1428ca,''),_0x26117e=_0xf0ecad(_0xc0742b,''),[_0x846e14,_0x1b3061]=_0xa49c44(_0x26117e||''),_0x2dc946=!0x0,_0x22aac9=_0x5f14dc[_0x5b3f13(0x22a)]&&_0xcd9e6a[_0x5b3f13(0x306)]&&(_0xcd9e6a['mcpServerUrl']['includes'](_0x5b3f13(0x2ce))||_0xcd9e6a['mcpServerUrl'][_0x5b3f13(0x303)](_0x5b3f13(0x2ad))),_0x1d1096=(_0x297daf=_0xcd9e6a[_0x5b3f13(0x306)])==null?void 0x0:_0x297daf[_0x5b3f13(0x303)](_0x5b3f13(0x2ce)),_0x16699a=(_0x116b01=_0xcd9e6a[_0x5b3f13(0x306)])==null?void 0x0:_0x116b01[_0x5b3f13(0x303)]('univer.ai'),_0x35f648=_0x1d1096?_0x5b3f13(0x1d5):_0x5b3f13(0x2dc),_0xcef80a=_0x5f14dc['showDeveloperTools']&&(_0x1d1096||_0x16699a),[_0x5374b5,_0x58254f]=_0xa49c44(!_0x846e14[_0x5b3f13(0x235)]()),_0x108cbe=(_0x267be2,_0x1a170d)=>{var _0x1260ef=_0x5b3f13;if(_0x1a170d===_0xffdbc4[_0x1260ef(0x31d)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x267be2){case _0x5b2853[_0x1260ef(0x1f6)]:return _0x1260ef(0x215);case _0x5b2853[_0x1260ef(0x1ec)]:case _0x5b2853['RETRYING']:return _0x1260ef(0x276);case _0x5b2853['FAILED']:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x1260ef(0x27e);}},_0x1b2e77=(_0x324117,_0x5618da)=>{var _0x160e03=_0x5b3f13;if(_0x5618da===_0xffdbc4[_0x160e03(0x31d)])return _0x160e03(0x2d8);switch(_0x324117){case _0x5b2853[_0x160e03(0x1f6)]:return'univer-bg-green-500';case _0x5b2853[_0x160e03(0x1ec)]:case _0x5b2853[_0x160e03(0x2a1)]:return _0x160e03(0x2e9);case _0x5b2853['FAILED']:return _0x160e03(0x2d8);default:return _0x160e03(0x248);}},_0x54bc3d=_0x9bfd35=>{var _0xb964a1=_0x5b3f13;switch(_0x9bfd35){case _0x5b2853[_0xb964a1(0x1f6)]:return _0x326593['t'](_0xb964a1(0x23e));case _0x5b2853[_0xb964a1(0x1ec)]:return _0x326593['t']('mcpConfig.connectionStatus.connecting');case _0x5b2853[_0xb964a1(0x234)]:return _0x326593['t'](_0xb964a1(0x2a2));case _0x5b2853[_0xb964a1(0x2a1)]:return _0x326593['t'](_0xb964a1(0x282));default:return _0x326593['t'](_0xb964a1(0x1d6));}},_0x584efc=_0x11aeb1=>{var _0x3c48a9=_0x5b3f13;switch(_0x11aeb1){case _0xffdbc4['INVALID_API_KEY']:return _0x326593['t'](_0x3c48a9(0x2bf));case _0xffdbc4[_0x3c48a9(0x250)]:return _0x326593['t'](_0x3c48a9(0x2d2));case _0xffdbc4[_0x3c48a9(0x299)]:return _0x326593['t'](_0x3c48a9(0x273));case _0xffdbc4[_0x3c48a9(0x25d)]:return _0x326593['t'](_0x3c48a9(0x2ac));default:return'';}},_0x49bbf7=_0x375bea(()=>{var _0x3378de=_0x5b3f13;const _0x7fe084={..._0xcd9e6a,'apiKey':_0x846e14[_0x3378de(0x235)](),'enableAuth':_0x2dc946};_0x83d65a(_0x7fe084);},[_0xcd9e6a,_0x846e14,_0x2dc946,_0x83d65a]),_0x44f85c=_0x846e14[_0x5b3f13(0x235)]()[_0x5b3f13(0x2f5)]>0x0;return _0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x272),'children':[_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x1c1),'children':_0x55f79c(_0x5b3f13(0x2fa),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x240),'children':_0x45624b('span',{'className':'univer-text-white','children':'⚙'})}),_0x45624b(_0x5b3f13(0x2fa),{'children':_0x45624b('p',{'className':_0x5b3f13(0x1d9),'children':_0x326593['t'](_0x5b3f13(0x223))})})]})}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x314),'children':[_0x45624b('div',{'className':_0x5b3f13(0x258)+_0x108cbe(_0x526e86,_0x12ebac)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x55f79c(_0x5b3f13(0x2fa),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x45624b(_0x5b3f13(0x2fa),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1b2e77(_0x526e86,_0x12ebac)+_0x5b3f13(0x1f3)}),_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x2e5),'children':_0x54bc3d(_0x526e86)})]})}),_0x12ebac!==_0xffdbc4[_0x5b3f13(0x1e6)]&&(_0x526e86===_0x5b2853[_0x5b3f13(0x234)]||_0x12ebac===_0xffdbc4[_0x5b3f13(0x31d)])&&_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2ab),'children':_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x1e7),'children':[_0x45624b(_0x5b3f13(0x2f4),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x45624b('p',{'className':_0x5b3f13(0x2bb),'children':_0x584efc(_0x12ebac)})]})})]}),_0x45624b(_0x5b3f13(0x2fa),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x55f79c('div',{'className':_0x5b3f13(0x24e),'children':[_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2d9),'children':[_0x55f79c(_0x5b3f13(0x301),{'className':_0x5b3f13(0x289),'children':[_0x45624b(_0x5b3f13(0x2f4),{'children':'🔑'}),'\x20',_0x326593['t'](_0x5b3f13(0x252)),_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x255),'children':'*'}),_0x22aac9&&_0x45624b('a',{'href':_0x5b3f13(0x2c5),'onClick':()=>_0x58254f(!0x0),'className':_0x5b3f13(0x2ec),'title':_0x326593['t'](_0x5b3f13(0x30a)),'children':_0x45624b(de,{})})]}),_0x45624b(_0x350112,{'type':_0x5b3f13(0x232),'placeholder':_0x326593['t'](_0x5b3f13(0x2b6)),'value':_0x846e14,'onChange':_0x1b3061,'disabled':_0x24e600,'autoComplete':_0x5b3f13(0x2fe)}),_0x45624b('p',{'className':_0x5b3f13(0x322),'children':_0x326593['t'](_0x5b3f13(0x308))})]}),_0x22aac9&&_0x5374b5&&_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x228),'children':[_0x45624b('a',{'href':_0x5b3f13(0x2c5),'onClick':()=>_0x58254f(!0x1),'className':_0x5b3f13(0x1ff),'title':_0x5b3f13(0x24f),'children':_0x45624b(ve,{})}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2df),'children':[_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x21a),'children':_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x220),'children':'🚀'})}),_0x55f79c('div',{'className':'univer-flex-1','children':[_0x45624b('h4',{'className':_0x5b3f13(0x1d1),'children':_0x326593['t'](_0x5b3f13(0x30a))}),_0x45624b('p',{'className':_0x5b3f13(0x279),'children':_0x326593['t'](_0x5b3f13(0x222))}),_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x307),'children':_0xcef80a&&_0x55f79c('a',{'href':_0x35f648,'target':_0x5b3f13(0x31a),'rel':'noopener\x20noreferrer','className':_0x5b3f13(0x2e3),'children':[_0x45624b(_0x5b3f13(0x2f4),{'children':'🤖'}),_0x326593['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x2e1),'children':'↗'})]})}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2f7),'children':['✨','\x20',_0x326593['t'](_0x5b3f13(0x1cc))]})]})]})]}),_0x5f14dc[_0x5b3f13(0x22a)]&&_0x55f79c('div',{'className':_0x5b3f13(0x1c4),'children':[_0x55f79c('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x45624b(_0x5b3f13(0x2f4),{'children':'🔗'}),'\x20',_0x326593['t'](_0x5b3f13(0x2f8))]}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x229),'children':[_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x293),'children':[_0x45624b('p',{'className':_0x5b3f13(0x2cf),'children':_0x326593['t']('mcpConfig.configInstructions')}),_0x55f79c('div',{'className':_0x5b3f13(0x2d9),'children':[_0x45624b('div',{'className':_0x5b3f13(0x233),'children':_0x326593['t'](_0x5b3f13(0x21d))}),_0x55f79c('div',{'className':_0x5b3f13(0x321),'children':[_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x210),'children':[_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x1c0),'children':'1'}),_0x326593['t'](_0x5b3f13(0x264))]}),_0x55f79c('div',{'className':_0x5b3f13(0x210),'children':[_0x45624b('span',{'className':_0x5b3f13(0x1c0),'children':'2'}),_0x326593['t'](_0x5b3f13(0x266))]}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x210),'children':[_0x45624b('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x326593['t']('mcpConfig.configStep3')]})]})]})]}),_0x55f79c('div',{'className':_0x5b3f13(0x2d9),'children':[_0x45624b('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5b3f13(0x1e1)}),_0x45624b(_0x5b3f13(0x2fa),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x45624b('pre',{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':_0x5b3f13(0x24b)+_0x52b649+_0x5b3f13(0x27d)+(_0x846e14||'<API_KEY>')+_0x5b3f13(0x1c8)})})]}),_0x55f79c(_0x5b3f13(0x2fa),{'className':'univer-space-y-3','children':[_0x45624b('div',{'className':_0x5b3f13(0x233),'children':_0x326593['t'](_0x5b3f13(0x320))}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2d9),'children':[_0x55f79c(_0x5b3f13(0x2fa),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x45624b('div',{'className':_0x5b3f13(0x1f4)}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x221),'children':[_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x257),'children':_0x5b3f13(0x25e)}),_0x45624b(_0x5b3f13(0x2fa),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x326593['t'](_0x5b3f13(0x2da))})]})]}),_0x55f79c('div',{'className':_0x5b3f13(0x205),'children':[_0x45624b('div',{'className':_0x5b3f13(0x1f4)}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x221),'children':[_0x45624b('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x5b3f13(0x1cd)}),_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x322),'children':_0x326593['t'](_0x5b3f13(0x245))})]})]})]})]})]})]}),_0x45624b(_0xfa5316,{'onClick':_0x49bbf7,'disabled':!_0x44f85c||_0x24e600,'className':_0x5b3f13(0x259),'children':_0x24e600?_0x55f79c('span',{'className':_0x5b3f13(0x210),'children':[_0x45624b(_0x5b3f13(0x2f4),{'children':'⟲'}),_0x326593['t']('mcpConfig.saving')]}):_0x55f79c(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x210),'children':[_0x45624b(ue,{}),_0x326593['t'](_0x5b3f13(0x23f))]})}),_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x1d4),'children':_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x31b),'children':[_0x45624b(_0x5b3f13(0x2f4),{'className':_0x5b3f13(0x239),'children':'💡'}),_0x55f79c(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x2be),'children':[_0x45624b(_0x5b3f13(0x2fa),{'className':_0x5b3f13(0x1ed),'children':_0x5b3f13(0x2d0)}),_0x55f79c(_0x5b3f13(0x2fa),{'children':['•',_0x326593['t']('mcpConfig.note1')]}),_0x55f79c(_0x5b3f13(0x2fa),{'children':['•',_0x326593['t'](_0x5b3f13(0x2a7))]})]})]})})]})})]});}const L='mcp-ui.config',ie={'showDeveloperTools':!0x1};var on=Object[_0x13b83e(0x2a3)],sn=(_0x198129,_0x200656,_0x7c965f,_0x240734)=>{var _0xae817a=_0x13b83e;for(var _0x366356=_0x240734>0x1?void 0x0:_0x240734?on(_0x200656,_0x7c965f):_0x200656,_0x56c8e6=_0x198129[_0xae817a(0x2f5)]-0x1,_0x4f6a8f;_0x56c8e6>=0x0;_0x56c8e6--)(_0x4f6a8f=_0x198129[_0x56c8e6])&&(_0x366356=_0x4f6a8f(_0x366356)||_0x366356);return _0x366356;},f=(_0x2e41f4,_0xe69940)=>(_0x2395c9,_0x2f237e)=>_0xe69940(_0x2395c9,_0x2f237e,_0x2e41f4);const T='mcp.apiKey',R=_0x13b83e(0x313);let I=class extends _0x27f41f{constructor(_0x4a9f7c,_0x38dd02,_0x3bcdc0,_0x534e13,_0x4e0405,_0x6797fc,_0x5a4a81,_0x2adc44,_0x225db4,_0x23c818){var _0x459657=_0x13b83e;super(),x(this,_0x459657(0x1c9),new _0xec8ff7(!0x1)),x(this,_0x459657(0x216),new _0xec8ff7({})),x(this,_0x459657(0x23b),new _0xec8ff7({})),x(this,'_apiKey$',new _0xec8ff7('')),x(this,'_handleConfigSave',async _0x317807=>{var _0x253e37=_0x459657,_0x3526e8,_0x3a0846;this[_0x253e37(0x1c9)]['next'](!0x0);try{const _0x3b52fd=await this[_0x253e37(0x231)](_0x317807);if(!_0x3b52fd[_0x253e37(0x1e4)]){this['_messageService'][_0x253e37(0x1fa)]({'type':_0x2486d5[_0x253e37(0x1c5)],'content':_0x3b52fd['errorMessage']||this[_0x253e37(0x21b)]['t'](_0x253e37(0x1f9))});return;}_0x317807[_0x253e37(0x2d3)]?await this[_0x253e37(0x2b1)][_0x253e37(0x243)](T,_0x317807[_0x253e37(0x2d3)][_0x253e37(0x235)]()):await this[_0x253e37(0x2b1)]['removeItem'](T),this[_0x253e37(0x1e0)][_0x253e37(0x226)](((_0x3526e8=_0x317807[_0x253e37(0x2d3)])==null?void 0x0:_0x3526e8['trim']())||''),this[_0x253e37(0x1f5)][_0x253e37(0x1c6)]({'Authorization':'Bearer\x20'+((_0x3a0846=_0x317807[_0x253e37(0x2d3)])==null?void 0x0:_0x3a0846[_0x253e37(0x235)]())}),this['_messageService'][_0x253e37(0x1fa)]({'type':_0x2486d5['Success'],'content':this[_0x253e37(0x21b)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x45d0e8=_0x253e37;this['_dialogService'][_0x45d0e8(0x2a0)](R);},0x320);}catch(_0x815b72){this[_0x253e37(0x1db)][_0x253e37(0x1cf)](_0x253e37(0x27c),_0x815b72),this[_0x253e37(0x281)]['show']({'type':_0x2486d5[_0x253e37(0x1c5)],'content':this['_localeService']['t']('mcpConfig.configError')});}finally{this[_0x253e37(0x1c9)]['next'](!0x1);}}),(this[_0x459657(0x219)]=_0x4a9f7c,this['_uiPartsService']=_0x38dd02,this[_0x459657(0x249)]=_0x3bcdc0,this[_0x459657(0x2b1)]=_0x534e13,this[_0x459657(0x29a)]=_0x4e0405,this[_0x459657(0x281)]=_0x6797fc,this[_0x459657(0x311)]=_0x5a4a81,this['_localeService']=_0x2adc44,this['_logService']=_0x225db4,this['_mcpConnectionController']=_0x23c818,this[_0x459657(0x319)](),this[_0x459657(0x2f0)](),this[_0x459657(0x2e4)]());}[_0x13b83e(0x280)](){var _0x344536=_0x13b83e;this[_0x344536(0x29a)][_0x344536(0x1ee)]({'id':R,'title':{'title':this[_0x344536(0x21b)]['t']('mcpConfig.title')},'children':{'label':_0x344536(0x283)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x2fda1d=_0x344536;this[_0x2fda1d(0x29a)][_0x2fda1d(0x2a0)](R);}});}[_0x13b83e(0x271)](){var _0x20bece=_0x13b83e;return this[_0x20bece(0x216)]['value'];}['_registerComponent'](){var _0x473f2a=_0x13b83e;this[_0x473f2a(0x2b3)](this[_0x473f2a(0x311)][_0x473f2a(0x25a)](_0x473f2a(0x283),this[_0x473f2a(0x2e8)]()));}['_createConfigPanelComponent'](){var _0x52a325=_0x13b83e;return _0x32a723(()=>{var _0x458382=_0x2c17,_0x31fccd,_0x13048b,_0x45df27;return _0x45624b(tn,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x458382(0x216)][_0x458382(0x2c1)],'currentApiKey$':this[_0x458382(0x1e0)],'onSave':this['_handleConfigSave'],'loading':this[_0x458382(0x1c9)][_0x458382(0x2c1)],'connectionStatus$':(_0x31fccd=this['_mcpConnectionController'])==null?void 0x0:_0x31fccd[_0x458382(0x1fe)],'connectionError$':(_0x13048b=this[_0x458382(0x1f5)])==null?void 0x0:_0x13048b[_0x458382(0x20b)],'currentSessionId$':(_0x45df27=this['_mcpConnectionController'])==null?void 0x0:_0x45df27['sessionId$']});},this[_0x52a325(0x219)]);}[_0x13b83e(0x319)](){var _0x4e1a1a=_0x13b83e;this[_0x4e1a1a(0x2b3)](this['_configService'][_0x4e1a1a(0x200)](_0x17ce20)[_0x4e1a1a(0x2fc)](_0x39e1b2=>{var _0x4228ce=_0x4e1a1a;this['_mcpCoreConfig$'][_0x4228ce(0x226)](_0x39e1b2||{});}));const _0x37a030=this[_0x4e1a1a(0x249)]['getConfig'](_0x17ce20);this[_0x4e1a1a(0x216)]['next'](_0x37a030||{}),this[_0x4e1a1a(0x2b3)](this['_configService'][_0x4e1a1a(0x200)](L)[_0x4e1a1a(0x2fc)](_0x3fb9fc=>{var _0x7bdc72=_0x4e1a1a;this[_0x7bdc72(0x23b)]['next'](_0x3fb9fc||{});}));const _0x44ec36=this[_0x4e1a1a(0x249)][_0x4e1a1a(0x1ca)](L);this[_0x4e1a1a(0x23b)]['next'](_0x44ec36||{});}async[_0x13b83e(0x2f0)](){var _0xb87a7f=_0x13b83e;const _0x3d57ef=await this[_0xb87a7f(0x2b1)][_0xb87a7f(0x2f3)](T);_0x3d57ef&&(this[_0xb87a7f(0x1f5)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x3d57ef}),this[_0xb87a7f(0x1e0)][_0xb87a7f(0x226)](_0x3d57ef));}async[_0x13b83e(0x231)](_0x3d8417){var _0x3e1ee0=_0x13b83e;if(!_0x3d8417[_0x3e1ee0(0x2d3)]||_0x3d8417[_0x3e1ee0(0x2d3)]['trim']()[_0x3e1ee0(0x2f5)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3e1ee0(0x21b)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3d8417[_0x3e1ee0(0x2d3)][_0x3e1ee0(0x235)]()[_0x3e1ee0(0x2f5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3e1ee0(0x21b)]['t'](_0x3e1ee0(0x21e))};try{const _0x2aa5d4=await this[_0x3e1ee0(0x219)][_0x3e1ee0(0x1d8)](_0x530fb2)[_0x3e1ee0(0x2f9)](_0x3d8417[_0x3e1ee0(0x2d3)][_0x3e1ee0(0x235)]());return _0x2aa5d4[_0x3e1ee0(0x1e4)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2aa5d4[_0x3e1ee0(0x1cf)]||this['_localeService']['t'](_0x3e1ee0(0x2c3))};}catch(_0x3c81b8){return console[_0x3e1ee0(0x317)](_0x3e1ee0(0x1c2),_0x3c81b8),{'isValid':!0x0};}}};I=sn([f(0x0,_0x31ebf0(_0xe617fa)),f(0x1,_0x352db5),f(0x2,_0x123bf2),f(0x3,_0x133dba),f(0x4,_0x15ecf3),f(0x5,_0x1e2bf2),f(0x6,_0x31ebf0(_0x20508d)),f(0x7,_0x31ebf0(_0x48cdf0)),f(0x8,_0x55d68a),f(0x9,_0x31ebf0(_0x530fb2))],I);const B={'id':_0x13b83e(0x253),'type':_0x42867f[_0x13b83e(0x254)],'handler':async(_0x3a14da,_0x38b4a6)=>(_0x3a14da[_0x13b83e(0x1d8)](I)[_0x13b83e(0x280)](),!0x0)};function pe(_0x5ecc7e,_0x133344){var _0x12fc1f=_0x13b83e;switch(_0x5ecc7e){case _0x5b2853[_0x12fc1f(0x209)]:return'mcpStatus.disconnected';case _0x5b2853[_0x12fc1f(0x1ec)]:return'mcpStatus.connecting';case _0x5b2853[_0x12fc1f(0x1f6)]:return'mcpStatus.connected';case _0x5b2853[_0x12fc1f(0x234)]:switch(_0x133344){case _0xffdbc4['INVALID_API_KEY']:return _0x12fc1f(0x26b);case _0xffdbc4[_0x12fc1f(0x250)]:return _0x12fc1f(0x2d1);case _0xffdbc4[_0x12fc1f(0x299)]:return'mcpStatus.networkError';case _0xffdbc4[_0x12fc1f(0x25d)]:return'mcpStatus.maxRetriesExceeded';default:return _0x12fc1f(0x251);}case _0x5b2853[_0x12fc1f(0x2a1)]:return'mcpStatus.retrying';default:return _0x12fc1f(0x325);}}function cn(_0x21cd17,_0x18395b,_0x282c53){var _0x14d8e9=_0x13b83e;const _0x4c4528=pe(_0x21cd17,_0x18395b),_0x11846e=_0x282c53['t'](_0x4c4528);return _0x21cd17===_0x5b2853[_0x14d8e9(0x209)]&&_0x18395b===_0xffdbc4[_0x14d8e9(0x31d)]?_0x11846e+'\x20-\x20'+_0x282c53['t'](_0x14d8e9(0x21c)):_0x21cd17===_0x5b2853[_0x14d8e9(0x1f6)]?''+_0x11846e:_0x21cd17===_0x5b2853[_0x14d8e9(0x209)]||_0x21cd17===_0x5b2853[_0x14d8e9(0x234)]?_0x11846e+_0x14d8e9(0x269)+_0x282c53['t'](_0x14d8e9(0x318)):_0x11846e;}function an(_0x5b4abe){var _0x1dfeb4=_0x13b83e;switch(_0x5b4abe){case _0x5b2853[_0x1dfeb4(0x1f6)]:return _0x1dfeb4(0x275);case _0x5b2853[_0x1dfeb4(0x1ec)]:case _0x5b2853[_0x1dfeb4(0x2a1)]:return'univer-text-yellow-500';case _0x5b2853['FAILED']:case _0x5b2853[_0x1dfeb4(0x209)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function ln(_0x316fb2){var _0x529826=_0x13b83e;const {status$:_0x25ec34,error$:_0x11691c,onConfigure:_0x27bd31}=_0x316fb2,_0x24dd5f=_0xf0ecad(_0x25ec34,_0x5b2853[_0x529826(0x209)]),_0x52521e=_0xf0ecad(_0x11691c,_0xffdbc4[_0x529826(0x1e6)]),_0x58d241=_0x342462(_0x48cdf0),_0x2c9363=_0x24dd5f===_0x5b2853[_0x529826(0x1f6)],_0x5c2d1f=_0x24dd5f===_0x5b2853[_0x529826(0x1ec)]||_0x24dd5f===_0x5b2853['RETRYING'],_0x388798=_0x58d241['t'](pe(_0x24dd5f,_0x52521e)),_0x1a6915=cn(_0x24dd5f,_0x52521e,_0x58d241),_0x121d6d=an(_0x24dd5f),_0x90fcc5=_0x2c9363?_0x45624b(fe,{}):_0x45624b(ge,{}),_0x5c4189=_0x375bea(()=>{_0x27bd31&&_0x27bd31();},[_0x2c9363,_0x5c2d1f,_0x27bd31]);function _0x4435b2(){var _0x17abbd=_0x529826;return _0x55f79c(_0x17abbd(0x2fa),{'className':_0x4afb8d(_0x17abbd(0x265),_0x27bd31&&_0x17abbd(0x2ee)),'onClick':_0x27bd31?_0x5c4189:void 0x0,'children':[_0x45624b(_0x17abbd(0x2fa),{'className':_0x4afb8d('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x121d6d),'children':_0x90fcc5}),_0x45624b(_0x17abbd(0x2fa),{'className':_0x17abbd(0x274),'children':_0x388798})]});}return _0x45624b(_0x4c3829,{'title':_0x1a6915,'placement':_0x529826(0x2dd),'children':_0x4435b2()});}var un=Object[_0x13b83e(0x2a3)],vn=(_0xbe61e8,_0x3845f0,_0x39ca6e,_0x1e93c6)=>{var _0xab5a46=_0x13b83e;for(var _0x1b05c3=_0x1e93c6>0x1?void 0x0:_0x1e93c6?un(_0x3845f0,_0x39ca6e):_0x3845f0,_0xa03d0d=_0xbe61e8[_0xab5a46(0x2f5)]-0x1,_0x20909b;_0xa03d0d>=0x0;_0xa03d0d--)(_0x20909b=_0xbe61e8[_0xa03d0d])&&(_0x1b05c3=_0x20909b(_0x1b05c3)||_0x1b05c3);return _0x1b05c3;},j=(_0x478d41,_0x2cf87a)=>(_0x1e36c3,_0x72549c)=>_0x2cf87a(_0x1e36c3,_0x72549c,_0x478d41);function _0x2c17(_0x290098,_0x489678){var _0x5e7eb1=_0x5e7e();return _0x2c17=function(_0x2c17fa,_0x56f6cb){_0x2c17fa=_0x2c17fa-0x1c0;var _0x4efa2c=_0x5e7eb1[_0x2c17fa];return _0x4efa2c;},_0x2c17(_0x290098,_0x489678);}let A=class extends _0x27f41f{constructor(_0x5a167a,_0x538cdc,_0x1beb13){var _0x14a2d3=_0x13b83e;super(),this[_0x14a2d3(0x219)]=_0x5a167a,this[_0x14a2d3(0x1d2)]=_0x538cdc,this[_0x14a2d3(0x2f2)]=_0x1beb13,this['_connectionController']['enableAutoConnect']=!0x1,this[_0x14a2d3(0x1d0)]();}[_0x13b83e(0x1d0)](){var _0x3d5be4=_0x13b83e;this[_0x3d5be4(0x2b3)](this[_0x3d5be4(0x2f2)][_0x3d5be4(0x25f)](_0x2a0d4f[_0x3d5be4(0x1df)],()=>_0x32a723(dn({'status$':this['_connectionController'][_0x3d5be4(0x1fe)],'error$':this['_connectionController'][_0x3d5be4(0x20b)],'onConfigure':()=>this['_handleConfigure']()}),this[_0x3d5be4(0x219)])));}[_0x13b83e(0x2a4)](){var _0xeec6bc=_0x13b83e;this['_injector'][_0xeec6bc(0x1d8)](I)[_0xeec6bc(0x280)]();}};A=vn([j(0x0,_0x31ebf0(_0xe617fa)),j(0x1,_0x31ebf0(_0x530fb2)),j(0x2,_0x352db5)],A);function dn(_0x53ecc1){const {status$:_0x8dd863,error$:_0x18e2ec,onConfigure:_0x51ad3f}=_0x53ecc1;return function(){return _0x45624b(ln,{'status$':_0x8dd863,'error$':_0x18e2ec,'onConfigure':_0x51ad3f});};}function gn(_0x167342){var _0x46edea=_0x13b83e;return{'id':B['id'],'type':_0x5a7c3f[_0x46edea(0x300)],'icon':'MenuIcon','title':_0x46edea(0x2c7),'tooltip':_0x46edea(0x2c7)};}const fn={[_0xb1125a[_0x13b83e(0x2b5)]]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x13b83e(0x2a3)],mn=(_0x5cd130,_0x25dcb0,_0x26acc9,_0x16e463)=>{var _0x43fa32=_0x13b83e;for(var _0x1a26fc=_0x16e463>0x1?void 0x0:_0x16e463?pn(_0x25dcb0,_0x26acc9):_0x25dcb0,_0x39e333=_0x5cd130[_0x43fa32(0x2f5)]-0x1,_0x1397ab;_0x39e333>=0x0;_0x39e333--)(_0x1397ab=_0x5cd130[_0x39e333])&&(_0x1a26fc=_0x1397ab(_0x1a26fc)||_0x1a26fc);return _0x1a26fc;},re=(_0x2cbe39,_0x318930)=>(_0x1cb6aa,_0x1e8dd5)=>_0x318930(_0x1cb6aa,_0x1e8dd5,_0x2cbe39);let M=class extends _0x27f41f{constructor(_0x3036cf,_0x38d71e){var _0x4e37ad=_0x13b83e;super(),this[_0x4e37ad(0x2a8)]=_0x3036cf,this[_0x4e37ad(0x2ba)]=_0x38d71e,this[_0x4e37ad(0x1f2)](),this['_initializeMenus']();}[_0x13b83e(0x1f2)](){var _0x2b23ec=_0x13b83e;[B][_0x2b23ec(0x1f0)](_0x3811a7=>{var _0x115924=_0x2b23ec;this[_0x115924(0x2b3)](this[_0x115924(0x2a8)][_0x115924(0x2b8)](_0x3811a7));});}[_0x13b83e(0x315)](){var _0x42ebb8=_0x13b83e;this[_0x42ebb8(0x2ba)]['mergeMenu'](fn);}};M=mn([re(0x0,_0x5a1004),re(0x1,_0x25215d)],M);const On={'mcpStatus':{'disconnected':_0x13b83e(0x2ea),'connecting':_0x13b83e(0x287),'connected':_0x13b83e(0x298),'failed':_0x13b83e(0x29b),'retrying':_0x13b83e(0x278),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x13b83e(0x2c6),'invalidApiKey':_0x13b83e(0x242),'sessionOccupied':_0x13b83e(0x230),'networkError':_0x13b83e(0x30d),'maxRetriesExceeded':_0x13b83e(0x30f),'clickToConnect':_0x13b83e(0x2aa),'clickToConfigure':_0x13b83e(0x244)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x13b83e(0x2d7),'apiKey':_0x13b83e(0x212),'apiKeyPlaceholder':_0x13b83e(0x1d3),'apiKeyHint':_0x13b83e(0x2ca),'enableAuth':_0x13b83e(0x262),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x13b83e(0x1e3),'mcpClientConfig':_0x13b83e(0x1e3),'configInstructions':_0x13b83e(0x27a),'configStepTitle':_0x13b83e(0x2b2),'configStep1':_0x13b83e(0x246),'configStep2':_0x13b83e(0x2fb),'configStep3':_0x13b83e(0x29e),'sessionId':_0x13b83e(0x26c),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x13b83e(0x2c9),'configParameters':_0x13b83e(0x2cd),'maxRetries':_0x13b83e(0x24c),'save':_0x13b83e(0x2ed),'saving':_0x13b83e(0x2e2),'note1':_0x13b83e(0x310),'note2':_0x13b83e(0x2bc),'configSaved':_0x13b83e(0x2c8),'configError':_0x13b83e(0x294),'apiApplyInfo':{'title':_0x13b83e(0x263),'description':_0x13b83e(0x2b7),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x13b83e(0x2c2)},'validation':{'apiKeyRequired':_0x13b83e(0x227),'apiKeyTooShort':_0x13b83e(0x247),'invalidConfig':_0x13b83e(0x22d),'invalidApiKey':_0x13b83e(0x1da)},'connectionStatus':{'disconnected':_0x13b83e(0x2db),'connecting':_0x13b83e(0x23c),'connected':_0x13b83e(0x31f),'failed':_0x13b83e(0x24a),'retrying':_0x13b83e(0x1e8)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x13b83e(0x218),'sessionOccupied':_0x13b83e(0x211),'networkError':_0x13b83e(0x2eb),'maxRetriesExceeded':_0x13b83e(0x2d4)}}},kn={'mcpStatus':{'disconnected':_0x13b83e(0x22e),'connecting':_0x13b83e(0x1fc),'connected':_0x13b83e(0x214),'failed':'MCP\x20连接失败','retrying':_0x13b83e(0x2f6),'unknown':'MCP\x20状态未知','missingApiKey':_0x13b83e(0x296),'invalidApiKey':_0x13b83e(0x1c7),'sessionOccupied':_0x13b83e(0x2b9),'networkError':_0x13b83e(0x2ae),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x13b83e(0x29c)},'mcpConfig':{'title':_0x13b83e(0x31c),'description':_0x13b83e(0x295),'apiKey':_0x13b83e(0x2a5),'apiKeyPlaceholder':_0x13b83e(0x23a),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x13b83e(0x213),'enableAuthHint':_0x13b83e(0x324),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x13b83e(0x1eb),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x13b83e(0x20a),'configStep1':_0x13b83e(0x26a),'configStep2':_0x13b83e(0x2c4),'configStep3':_0x13b83e(0x260),'sessionId':_0x13b83e(0x202),'sessionIdDescription':_0x13b83e(0x323),'authorizationDescription':_0x13b83e(0x217),'configParameters':_0x13b83e(0x2c0),'maxRetries':_0x13b83e(0x24d),'save':_0x13b83e(0x2b4),'saving':_0x13b83e(0x31e),'note1':_0x13b83e(0x1ef),'note2':_0x13b83e(0x203),'configSaved':_0x13b83e(0x1ea),'configError':_0x13b83e(0x1c3),'apiApplyInfo':{'title':_0x13b83e(0x267),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x13b83e(0x1e9)},'validation':{'apiKeyRequired':_0x13b83e(0x30b),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x13b83e(0x225),'invalidApiKey':_0x13b83e(0x270)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x13b83e(0x1de),'failed':_0x13b83e(0x2a6),'retrying':_0x13b83e(0x25c)},'connectionError':{'missingApiKey':_0x13b83e(0x2cb),'invalidApiKey':_0x13b83e(0x20c),'sessionOccupied':_0x13b83e(0x1f1),'networkError':_0x13b83e(0x286),'maxRetriesExceeded':_0x13b83e(0x285)}}};var hn=Object[_0x13b83e(0x28d)],Cn=Object[_0x13b83e(0x2a3)],yn=(_0x4554ab,_0x54bdc8,_0x30fca9)=>_0x54bdc8 in _0x4554ab?hn(_0x4554ab,_0x54bdc8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30fca9}):_0x4554ab[_0x54bdc8]=_0x30fca9,_n=(_0x113103,_0x30d391,_0xa13db4,_0x32f866)=>{var _0x1a9677=_0x13b83e;for(var _0x573314=_0x32f866>0x1?void 0x0:_0x32f866?Cn(_0x30d391,_0xa13db4):_0x30d391,_0x2ba992=_0x113103[_0x1a9677(0x2f5)]-0x1,_0x27995e;_0x2ba992>=0x0;_0x2ba992--)(_0x27995e=_0x113103[_0x2ba992])&&(_0x573314=_0x27995e(_0x573314)||_0x573314);return _0x573314;},E=(_0x57449e,_0x5a0a6c)=>(_0x58f8b7,_0x4b4c4a)=>_0x5a0a6c(_0x58f8b7,_0x4b4c4a,_0x57449e),xn=(_0x2e1e42,_0x236dca,_0x4a5f11)=>yn(_0x2e1e42,_0x236dca+'',_0x4a5f11);let U=class extends _0x55e620{constructor(_0x70d49=ie,_0x378160,_0x6c6a9b,_0x4c4b4f,_0x172de9,_0x23f241){var _0x314beb=_0x13b83e;super(),this[_0x314beb(0x1fd)]=_0x70d49,this[_0x314beb(0x219)]=_0x378160,this[_0x314beb(0x249)]=_0x6c6a9b,this[_0x314beb(0x2f2)]=_0x4c4b4f,this['_localStorageService']=_0x172de9,this[_0x314beb(0x21b)]=_0x23f241;const {..._0x2d1e8e}=_0x1e80dd({},ie,this['_config']);this[_0x314beb(0x249)][_0x314beb(0x2d6)](L,_0x2d1e8e);}async[_0x13b83e(0x2d5)](){var _0x211025=_0x13b83e;const _0x1b190b=[[A],[I],[M]];this[_0x211025(0x219)]['has'](_0x14571d)||_0x1b190b[_0x211025(0x288)]([_0x14571d,{'useClass':_0x1a839a}]),_0x1b190b[_0x211025(0x1f0)](_0x2a2326=>this[_0x211025(0x219)][_0x211025(0x224)](_0x2a2326)),this[_0x211025(0x219)][_0x211025(0x1d8)](A),this[_0x211025(0x219)][_0x211025(0x1d8)](I),this[_0x211025(0x219)][_0x211025(0x1d8)](M);}};xn(U,_0x13b83e(0x22f),'MCP_UI_PLUGIN'),U=_n([_0x13bb6e(_0x41ac27),E(0x1,_0x31ebf0(_0xe617fa)),E(0x2,_0x123bf2),E(0x3,_0x352db5),E(0x4,_0x133dba),E(0x5,_0x31ebf0(_0x48cdf0))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
1
+ var _0x219a03=_0x3cee;(function(_0x3b00cb,_0x483d01){var _0x4b6d48=_0x3cee,_0x2137f1=_0x3b00cb();while(!![]){try{var _0x4bf52a=parseInt(_0x4b6d48(0x192))/0x1*(parseInt(_0x4b6d48(0x13f))/0x2)+-parseInt(_0x4b6d48(0x1c3))/0x3*(-parseInt(_0x4b6d48(0x21c))/0x4)+-parseInt(_0x4b6d48(0x13e))/0x5*(parseInt(_0x4b6d48(0x153))/0x6)+parseInt(_0x4b6d48(0x205))/0x7*(parseInt(_0x4b6d48(0x198))/0x8)+-parseInt(_0x4b6d48(0x19e))/0x9*(-parseInt(_0x4b6d48(0x184))/0xa)+parseInt(_0x4b6d48(0x17f))/0xb+-parseInt(_0x4b6d48(0x1e2))/0xc*(parseInt(_0x4b6d48(0x1ca))/0xd);if(_0x4bf52a===_0x483d01)break;else _0x2137f1['push'](_0x2137f1['shift']());}catch(_0x3f287e){_0x2137f1['push'](_0x2137f1['shift']());}}}(_0x56a1,0x70b00));var Ee=Object[_0x219a03(0x131)],we=(_0xb66f6a,_0x103e87,_0x2c5921)=>_0x103e87 in _0xb66f6a?Ee(_0xb66f6a,_0x103e87,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c5921}):_0xb66f6a[_0x103e87]=_0x2c5921,x=(_0xca48e3,_0x27252f,_0x1a2895)=>we(_0xca48e3,typeof _0x27252f!=_0x219a03(0x265)?_0x27252f+'':_0x27252f,_0x1a2895);import{LocaleService as _0xc33df3,Inject as _0x42ebfc,Injector as _0x5ede34,IConfigService as _0x29ba2c,ILocalStorageService as _0x316f47,ILogService as _0x4d889b,Disposable as _0x1f0c2f,CommandType as _0x4168e3,ICommandService as _0x5da6fe,DependentOn as _0xdb2fad,Plugin as _0x856cee,merge as _0x152593}from'@univerjs/core';import{jsxs as _0xb22d85,jsx as _0x288285}from'react/jsx-runtime';function _0x3cee(_0x4fe46b,_0x48d92f){var _0x56a18a=_0x56a1();return _0x3cee=function(_0x3cee31,_0x4ee039){_0x3cee31=_0x3cee31-0x10f;var _0x5c8af8=_0x56a18a[_0x3cee31];return _0x5c8af8;},_0x3cee(_0x4fe46b,_0x48d92f);}import{MCPConnectionStatus as _0x38d350,MCPConnectionError as _0x109ccb,MCPConnectionController as _0x595033,MCP_PLUGIN_CONFIG_KEY as _0x41f305,UniverMCPPlugin as _0x3412ea}from'@univerjs-pro/mcp';import{Input as _0x35eb2b,Button as _0xf8f352,MessageType as _0x4b0dc2,Tooltip as _0x6b526f,clsx as _0xdad1b}from'@univerjs/design';import{useDependency as _0x43a656,useObservable as _0x58c5e8,IUIPartsService as _0x5a2bd3,IDialogService as _0x42dd90,IMessageService as _0x350eed,ComponentManager as _0xd402ee,connectInjector as _0x2400a6,BuiltInUIPart as _0x5be334,MenuItemType as _0x14d87f,RibbonStartGroup as _0x2d020d,IMenuManagerService as _0x3064d0}from'@univerjs/ui';import{BehaviorSubject as _0x249cb6}from'rxjs';import{forwardRef as _0x11578c,useRef as _0x3b634f,createElement as _0x1d8db8,useState as _0x2f1866,useCallback as _0x2db746}from'react';import{ISocketService as _0x140f0d,WebSocketService as _0x324d21}from'@univerjs/network';var g=function(){var _0x45ecbb=_0x219a03;return g=Object[_0x45ecbb(0x1f3)]||function(_0x526bae){var _0x45bfef=_0x45ecbb;for(var _0x3fc882,_0x32197b=0x1,_0x109742=arguments[_0x45bfef(0x23e)];_0x32197b<_0x109742;_0x32197b++){_0x3fc882=arguments[_0x32197b];for(var _0x1626da in _0x3fc882)Object[_0x45bfef(0x1d0)][_0x45bfef(0x222)]['call'](_0x3fc882,_0x1626da)&&(_0x526bae[_0x1626da]=_0x3fc882[_0x1626da]);}return _0x526bae;},g[_0x45ecbb(0x22e)](this,arguments);},We=function(_0x5d7b69,_0x44b425){var _0xb85d29=_0x219a03,_0x5bf8c1={};for(var _0x4645bc in _0x5d7b69)Object[_0xb85d29(0x1d0)][_0xb85d29(0x222)][_0xb85d29(0x22f)](_0x5d7b69,_0x4645bc)&&_0x44b425[_0xb85d29(0x1f1)](_0x4645bc)<0x0&&(_0x5bf8c1[_0x4645bc]=_0x5d7b69[_0x4645bc]);if(_0x5d7b69!=null&&typeof Object[_0xb85d29(0x144)]==_0xb85d29(0x1b9)){for(var _0x2127fb=0x0,_0x4645bc=Object['getOwnPropertySymbols'](_0x5d7b69);_0x2127fb<_0x4645bc['length'];_0x2127fb++)_0x44b425[_0xb85d29(0x1f1)](_0x4645bc[_0x2127fb])<0x0&&Object['prototype']['propertyIsEnumerable'][_0xb85d29(0x22f)](_0x5d7b69,_0x4645bc[_0x2127fb])&&(_0x5bf8c1[_0x4645bc[_0x2127fb]]=_0x5d7b69[_0x4645bc[_0x2127fb]]);}return _0x5bf8c1;},b=_0x11578c(function(_0x1511d3,_0x2817fa){var _0x2b2374=_0x219a03,_0x3615c0=_0x1511d3[_0x2b2374(0x230)],_0xafcc09=_0x1511d3['id'],_0x868e9b=_0x1511d3[_0x2b2374(0x138)],_0x5b1b5e=_0x1511d3['extend'],_0x37f581=We(_0x1511d3,[_0x2b2374(0x230),'id',_0x2b2374(0x138),'extend']),_0x1db721=_0x2b2374(0x24c)[_0x2b2374(0x1d9)](_0xafcc09,'\x20')[_0x2b2374(0x1d9)](_0x868e9b||'')[_0x2b2374(0x248)](),_0x57e64d=_0x3b634f('_'[_0x2b2374(0x1d9)](Xe()));return le(_0x3615c0,''['concat'](_0xafcc09),{'defIds':_0x3615c0['defIds'],'idSuffix':_0x57e64d['current']},g({'ref':_0x2817fa,'className':_0x1db721},_0x37f581),_0x5b1b5e);});function le(_0x481a5a,_0x150a6b,_0x307d42,_0x1cc29e,_0x18d67a){var _0x3825c7=_0x219a03;return _0x1d8db8(_0x481a5a[_0x3825c7(0x146)],g(g({'key':_0x150a6b},qe(_0x481a5a,_0x307d42,_0x18d67a)),_0x1cc29e),(Ze(_0x481a5a,_0x307d42)['children']||[])[_0x3825c7(0x134)](function(_0x561fdb,_0x32059a){var _0x40fa49=_0x3825c7;return le(_0x561fdb,''['concat'](_0x150a6b,'-')[_0x40fa49(0x1d9)](_0x481a5a[_0x40fa49(0x146)],'-')[_0x40fa49(0x1d9)](_0x32059a),_0x307d42,void 0x0,_0x18d67a);}));}function qe(_0x1ce141,_0x3f4732,_0x2f3372){var _0x4391fb=_0x219a03,_0x5afae7=g({},_0x1ce141[_0x4391fb(0x1ad)]);_0x2f3372!=null&&_0x2f3372[_0x4391fb(0x20b)]&&_0x5afae7['fill']===_0x4391fb(0x20b)&&(_0x5afae7[_0x4391fb(0x164)]=_0x2f3372[_0x4391fb(0x20b)]),_0x1ce141[_0x4391fb(0x146)]==='mask'&&_0x5afae7['id']&&(_0x5afae7['id']=_0x5afae7['id']+_0x3f4732[_0x4391fb(0x243)]),Object[_0x4391fb(0x239)](_0x5afae7)[_0x4391fb(0x257)](function(_0x201dfb){var _0x25ee45=_0x4391fb,_0x51c742=_0x201dfb[0x0],_0xaa8ed6=_0x201dfb[0x1];_0x51c742===_0x25ee45(0x19c)&&typeof _0xaa8ed6==_0x25ee45(0x1d1)&&(_0x5afae7[_0x51c742]=_0xaa8ed6[_0x25ee45(0x1e5)](/url\(#(.*)\)/,_0x25ee45(0x1d4)['concat'](_0x3f4732[_0x25ee45(0x243)],')')));});var _0x4b70c3=_0x3f4732['defIds'];return!_0x4b70c3||_0x4b70c3[_0x4391fb(0x23e)]===0x0||(_0x1ce141[_0x4391fb(0x146)]==='use'&&_0x5afae7[_0x4391fb(0x22a)]&&(_0x5afae7[_0x4391fb(0x22a)]=_0x5afae7[_0x4391fb(0x22a)]+_0x3f4732[_0x4391fb(0x243)]),Object[_0x4391fb(0x239)](_0x5afae7)[_0x4391fb(0x257)](function(_0x15ba98){var _0x5e81ab=_0x4391fb,_0x5ce99d=_0x15ba98[0x0],_0xa62253=_0x15ba98[0x1];typeof _0xa62253==_0x5e81ab(0x1d1)&&(_0x5afae7[_0x5ce99d]=_0xa62253[_0x5e81ab(0x1e5)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3f4732[_0x5e81ab(0x243)],')')));})),_0x5afae7;}function Ze(_0x348f86,_0x2c77f0){var _0x3817d0=_0x219a03,_0x5dde1a,_0x35bfd2=_0x2c77f0['defIds'];return!_0x35bfd2||_0x35bfd2[_0x3817d0(0x23e)]===0x0?_0x348f86:_0x348f86[_0x3817d0(0x146)]===_0x3817d0(0x17a)&&(!((_0x5dde1a=_0x348f86[_0x3817d0(0x1bf)])===null||_0x5dde1a===void 0x0)&&_0x5dde1a[_0x3817d0(0x23e)])?g(g({},_0x348f86),{'children':_0x348f86['children'][_0x3817d0(0x134)](function(_0x1a186f){var _0x2a36a5=_0x3817d0;return typeof _0x1a186f[_0x2a36a5(0x1ad)]['id']==_0x2a36a5(0x1d1)&&_0x35bfd2&&_0x35bfd2[_0x2a36a5(0x1ab)](_0x1a186f[_0x2a36a5(0x1ad)]['id'])?g(g({},_0x1a186f),{'attrs':g(g({},_0x1a186f[_0x2a36a5(0x1ad)]),{'id':_0x1a186f[_0x2a36a5(0x1ad)]['id']+_0x2c77f0['idSuffix']})}):_0x1a186f;})}):_0x348f86;}function Xe(){var _0x13739a=_0x219a03;return Math['random']()[_0x13739a(0x1d3)](0x24)[_0x13739a(0x25a)](0x2,0x8);}b['displayName']='UniverIcon';var Je={'tag':'svg','attrs':{'xmlns':_0x219a03(0x229),'fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x252),'width':'1em','height':_0x219a03(0x23f)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'fill':'currentColor','d':_0x219a03(0x152),'fillRule':_0x219a03(0x1da),'clipRule':_0x219a03(0x1da)}}]},ue=_0x11578c(function(_0x5c9695,_0x13bee0){return _0x1d8db8(b,Object['assign']({},_0x5c9695,{'id':'check-mark-icon','ref':_0x13bee0,'icon':Je}));});ue[_0x219a03(0x195)]=_0x219a03(0x1cf);var Qe={'tag':_0x219a03(0x188),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x244),'width':'1em','height':'1em'},'children':[{'tag':_0x219a03(0x13c),'attrs':{'stroke':_0x219a03(0x213),'d':_0x219a03(0x206),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x219a03(0x13c),'attrs':{'stroke':_0x219a03(0x213),'d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x219a03(0x167),'strokeLinejoin':_0x219a03(0x167),'strokeWidth':1.33}}]},ve=_0x11578c(function(_0x1876e2,_0x42619c){var _0x4fa98e=_0x219a03;return _0x1d8db8(b,Object[_0x4fa98e(0x1f3)]({},_0x1876e2,{'id':_0x4fa98e(0x1dd),'ref':_0x42619c,'icon':Qe}));});ve[_0x219a03(0x195)]=_0x219a03(0x10f);var en={'tag':'svg','attrs':{'xmlns':_0x219a03(0x229),'fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x252),'width':_0x219a03(0x23f),'height':_0x219a03(0x23f)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'fill':_0x219a03(0x213),'d':_0x219a03(0x16b)}},{'tag':_0x219a03(0x13c),'attrs':{'fill':_0x219a03(0x213),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':'path','attrs':{'fill':_0x219a03(0x213),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x219a03(0x1da),'clipRule':_0x219a03(0x1da)}}]},de=_0x11578c(function(_0x17fa05,_0x275cf2){var _0x155cbc=_0x219a03;return _0x1d8db8(b,Object[_0x155cbc(0x1f3)]({},_0x17fa05,{'id':_0x155cbc(0x18a),'ref':_0x275cf2,'icon':en}));});de[_0x219a03(0x195)]=_0x219a03(0x132);var nn={'tag':_0x219a03(0x188),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x219a03(0x252),'width':_0x219a03(0x23f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x219a03(0x18e)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'stroke':_0x219a03(0x213),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x219a03(0x167),'strokeLinejoin':_0x219a03(0x167),'strokeWidth':1.2}}]},{'tag':_0x219a03(0x17a),'attrs':{},'children':[{'tag':_0x219a03(0x145),'attrs':{'id':_0x219a03(0x1d6)},'children':[{'tag':'path','attrs':{'fill':_0x219a03(0x14b),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x219a03(0x1d6)]},ge=_0x11578c(function(_0x44e5a0,_0x901688){return _0x1d8db8(b,Object['assign']({},_0x44e5a0,{'id':'off-line-icon','ref':_0x901688,'icon':nn}));});ge['displayName']=_0x219a03(0x1e4);var rn={'tag':_0x219a03(0x188),'attrs':{'xmlns':_0x219a03(0x229),'fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x20d),'width':'1em','height':_0x219a03(0x23f)},'children':[{'tag':'g','attrs':{'clipPath':_0x219a03(0x253)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'stroke':'currentColor','d':_0x219a03(0x25e),'strokeLinecap':_0x219a03(0x167),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x219a03(0x17a),'attrs':{},'children':[{'tag':_0x219a03(0x145),'attrs':{'id':_0x219a03(0x118)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'fill':_0x219a03(0x14b),'d':_0x219a03(0x20a),'transform':'translate(.97)'}}]}]}],'defIds':[_0x219a03(0x118)]},fe=_0x11578c(function(_0x3d872d,_0x234080){var _0x52cd9c=_0x219a03;return _0x1d8db8(b,Object[_0x52cd9c(0x1f3)]({},_0x3d872d,{'id':_0x52cd9c(0x23d),'ref':_0x234080,'icon':rn}));});fe[_0x219a03(0x195)]=_0x219a03(0x235);function _0x56a1(){var _0x5dbb67=['CloseSmallSingle','mcpStatus.clickToConnect','validateApiKey','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Max\x20Retries','getItem','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_connectionController','mcpConfig.connectionError.sessionOccupied','on-line-icon_clip0_910_349','_componentManager','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.apiKeyTooShort','univer-flex-1','errorMessage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.sessionIdDescription','univer-space-y-5','span','mcpConfig.validation.invalidApiKey','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','setItem','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-flex\x20univer-gap-3','value','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.note1','CONNECTED','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcp-config-dialog','connectionError$','univer-flex\x20univer-items-start\x20univer-gap-3','Configuration\x20Parameters:','defineProperty','HelpSingle','_localStorageService','map','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpStatus.invalidApiKey','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','className','mcpStatus.clickToConfigure','\x20-\x20','配置保存失败','path','_initConfigSync','1215845TkcURy','55400oCzwoB','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP_UI_PLUGIN','onStarting','Invalid\x20configuration','getOwnPropertySymbols','clipPath','tag','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required','div','复制以下\x20JSON\x20配置','white','subscribe','showDeveloperTools','mcpConfig.apiApplyInfo.getStarted','_validateConfig','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','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','6pMlMgL','配置无效','_menuManagerService','univer-text-xs\x20univer-text-gray-500','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-space-y-2','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Client\x20Configuration','MCP\x20Connecting...','univer-bg-green-500','mcpServerUrl','mcpConfig.connectionError.invalidApiKey','MCP\x20客户端配置','univer-min-w-0\x20univer-flex-1','配置参数:','Enter\x20your\x20API\x20key','univer-flex\x20univer-cursor-pointer\x20univer-items-center','fill','MCP:\x20超出最大重试次数','Authorization:','round','_injector','OTHERS','_apiKey$','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','DISCONNECTED','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.apiKeyHint','Configuration\x20Notes:','connectionStatus$','mcpStatus.connected','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_initializeMenus','_uiPartsService','_config$','MCP:\x20Max\x20Retries\x20Exceeded','_dialogService','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','defs','univer-text-green-500','mcpConfig.connectionStatus.connecting','apiKey','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','1744413fTHiXB','Enable\x20authentication\x20for\x20secure\x20connections','BUTTON','mcpConfig.description','MCP:\x20会话被占用','10SqShRM','Save\x20Configuration','mcpConfig.saving','会话当前被占用,请稍后再试','svg','isValid','help-single','mcpStatus.sessionOccupied','Copy\x20the\x20JSON\x20configuration\x20below','getConfig','url(#off-line-icon_clip0_910_343)','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-gray-400','10gQDtAQ','请输入您的\x20API\x20密钥','mcpConfig.connectionStatus.connected','displayName','保存中...','bottom','8AUqjvr','showConfigPanel','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','univer.ai','mask','getOwnPropertyDescriptor','5611176bCudIU','show','mcpConfig.configStep2','univer-bg-gray-500','mcpConfig.note2','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','点击配置\x20MCP','MCP\x20状态未知','MCP\x20Configuration','MCP\x20连接中...','none','_registerComponent','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','includes','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','attrs','Close','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','off','最大重试次数','Success','MCP\x20Retrying...','mcp-ui.command.openConfigPanel','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','点击连接\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','function','Error','Connected','mcpConfig.connectionStatus.retrying','_createConfigPanelComponent','MCP\x20Unknown\x20Status','children','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Univer\x20AI\x20控制台','Connection\x20Failed','105897WKWuEX','INVALID_API_KEY','CONNECTING','重连中...','univer_session_id:','univer-space-y-3','mcpConfig.title','403ZsCtMw','register','mcpConfig.apiKey','API\x20key\x20is\x20required\x20to\x20connect','Bearer\x20','CheckMarkIcon','prototype','string','保存配置','toString','url(#$1','Saving...','off-line-icon_clip0_910_343','mcpConfig.validation.invalidConfig','mcpStatus.unknown','concat','evenodd','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','配置保存成功','close-small-single','_commandService','text','univer-space-y-4','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','639264izOZIi','mcpConfig.save','OffLineIcon','replace','Disconnected','has','MCP\x20已断开','univer-text-gray-500','SESSION_ID_OCCUPIED','mcpConfig.connectionError.maxRetriesExceeded','error','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','label','close','registerComponent','indexOf','univer-text-sm\x20univer-text-gray-500','assign','getCurrentConfig','超出最大重试次数,请稍后再试','univer-text-red-500','_initStatusComponent','_loading$','FAILED','setConfig','univer-flex\x20univer-items-center\x20univer-gap-3','univer.plus','univer-text-white','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20重连中...','MCP:\x20无效的\x20API\x20密钥','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_configService','mcpConfig.configSaved','4385087tIPHSm','M5.21243\x205.62036L11.8791\x2012.287','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','您的\x20API\x20密钥将在此浏览器中本地存储','push','M0\x200H16V16H0z','colorChannel1','univer-flex-shrink-0\x20univer-text-blue-500','0\x200\x2017\x2016','removeItem','univer-text-xs\x20univer-text-gray-600','未连接','COMMAND','univer-font-medium','currentColor','Univer\x20AI\x20Console','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_blank','mcpStatus.connecting','MCP:\x20缺少\x20API\x20密钥','univer-bg-blue-500','mcp.apiKey','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','76VGMaba','next','API\x20Key','需要\x20API\x20密钥才能连接','MCP:\x20Session\x20Occupied','API\x20密钥长度至少需要\x2010\x20位','hasOwnProperty','add','mcpConfig.connectionError.networkError','mcpConfig.configStep1','MCPConfigPanel','启用身份验证以获得安全连接','_handleConfigure','http://www.w3.org/2000/svg','xlink:href','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','disposeWithMe','apply','call','icon','_logService','_messageService','您的\x20API\x20密钥安全存储在本地存储中','MAX_RETRIES_EXCEEDED','OnLineIcon','_initializeCommands','已连接','get','entries','javascript:void(0)','MCP:\x20Network\x20Error','_mcpCoreConfig$','on-line-icon','length','1em','mcpStatus.maxRetriesExceeded','NETWORK_ERROR','MCP:\x20API\x20Key\x20Missing','idSuffix','0\x200\x2017\x2017','mcpConfig.apiApplyInfo.title','What\x20is\x20API\x20Key?','Click\x20to\x20connect\x20MCP','trim','MCP\x20连接失败','pre','几秒钟内获取您的\x20API\x20密钥','univerjs-icon\x20univerjs-icon-','mcpConfig.configStepTitle','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','_localeService','warn','0\x200\x2016\x2016','url(#on-line-icon_clip0_910_349)','subscribeConfigValue$','univer-flex\x20univer-items-start\x20univer-gap-2','Session\x20ID','forEach','NONE','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','substring','RETRYING','配置更改将立即生效','univer-mr-2\x20univer-flex\x20univer-text-xl','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-text-xs\x20univer-font-medium\x20univer-text-gray-600','_loadStoredApiKey','mcpConfig.validation.apiKeyRequired','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_mcpConnectionController','MCP\x20Connection\x20Failed','symbol','连接中...','_config','API\x20密钥','MenuIcon','Configuration\x20Steps:','MCP\x20Connected','open'];_0x56a1=function(){return _0x5dbb67;};return _0x56a1();}function tn(_0x4329c7){var _0x263507=_0x219a03,_0x334b25,_0xdf0f40;const {mcpCoreConfig:_0x1d0d5c,onSave:_0x486d16,loading:_0x3a1eae=!0x1,config:_0x258df9,connectionStatus$:_0x109b62,connectionError$:_0x306f0c,currentApiKey$:_0x1c3053,currentSessionId$:_0x136a90}=_0x4329c7,_0x10e766=_0x43a656(_0xc33df3),_0x39c68e=_0x58c5e8(_0x109b62,_0x38d350[_0x263507(0x16c)]),_0x1f3cb2=_0x58c5e8(_0x306f0c,_0x109ccb[_0x263507(0x258)]),_0x2832f3=_0x58c5e8(_0x136a90,''),_0x14b9e3=_0x58c5e8(_0x1c3053,''),[_0x277f9c,_0x13104b]=_0x2f1866(_0x14b9e3||''),_0x5ba8c7=!0x0,_0x56b99=_0x258df9[_0x263507(0x14d)]&&_0x1d0d5c[_0x263507(0x15d)]&&(_0x1d0d5c[_0x263507(0x15d)][_0x263507(0x1ab)]('univer.plus')||_0x1d0d5c[_0x263507(0x15d)][_0x263507(0x1ab)](_0x263507(0x19b))),_0x1d800d=(_0x334b25=_0x1d0d5c['mcpServerUrl'])==null?void 0x0:_0x334b25[_0x263507(0x1ab)](_0x263507(0x1fc)),_0x5a7ad0=(_0xdf0f40=_0x1d0d5c['mcpServerUrl'])==null?void 0x0:_0xdf0f40[_0x263507(0x1ab)](_0x263507(0x19b)),_0x267418=_0x1d800d?'https://console.univer.plus':'https://console.univer.ai',_0x279c72=_0x258df9['showDeveloperTools']&&(_0x1d800d||_0x5a7ad0),[_0x1c11e0,_0x33a683]=_0x2f1866(!_0x277f9c[_0x263507(0x248)]()),_0x302bde=(_0x5f1975,_0x268d7c)=>{var _0x589895=_0x263507;if(_0x268d7c===_0x109ccb[_0x589895(0x1c4)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5f1975){case _0x38d350['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x38d350[_0x589895(0x1c5)]:case _0x38d350[_0x589895(0x25b)]:return _0x589895(0x259);case _0x38d350[_0x589895(0x1f9)]:return _0x589895(0x140);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1c4481=(_0x4c2a8c,_0x338a03)=>{var _0x45e94a=_0x263507;if(_0x338a03===_0x109ccb[_0x45e94a(0x1c4)])return'univer-bg-red-500';switch(_0x4c2a8c){case _0x38d350[_0x45e94a(0x12a)]:return _0x45e94a(0x15c);case _0x38d350[_0x45e94a(0x1c5)]:case _0x38d350[_0x45e94a(0x25b)]:return _0x45e94a(0x219);case _0x38d350[_0x45e94a(0x1f9)]:return'univer-bg-red-500';default:return _0x45e94a(0x1a1);}},_0x253655=_0x47dda8=>{var _0x2e1f5a=_0x263507;switch(_0x47dda8){case _0x38d350[_0x2e1f5a(0x12a)]:return _0x10e766['t'](_0x2e1f5a(0x194));case _0x38d350[_0x2e1f5a(0x1c5)]:return _0x10e766['t'](_0x2e1f5a(0x17c));case _0x38d350[_0x2e1f5a(0x1f9)]:return _0x10e766['t']('mcpConfig.connectionStatus.failed');case _0x38d350[_0x2e1f5a(0x25b)]:return _0x10e766['t'](_0x2e1f5a(0x1bc));default:return _0x10e766['t']('mcpConfig.connectionStatus.disconnected');}},_0x3b32b4=_0x44768f=>{var _0x5b8d3d=_0x263507;switch(_0x44768f){case _0x109ccb[_0x5b8d3d(0x1c4)]:return _0x10e766['t'](_0x5b8d3d(0x15e));case _0x109ccb[_0x5b8d3d(0x1ea)]:return _0x10e766['t'](_0x5b8d3d(0x117));case _0x109ccb[_0x5b8d3d(0x241)]:return _0x10e766['t'](_0x5b8d3d(0x224));case _0x109ccb[_0x5b8d3d(0x234)]:return _0x10e766['t'](_0x5b8d3d(0x1eb));default:return'';}},_0x458da4=_0x2db746(()=>{var _0x7af514=_0x263507;const _0x53dee0={..._0x1d0d5c,'apiKey':_0x277f9c[_0x7af514(0x248)](),'enableAuth':_0x5ba8c7};_0x486d16(_0x53dee0);},[_0x1d0d5c,_0x277f9c,_0x5ba8c7,_0x486d16]),_0x258b7a=_0x277f9c[_0x263507(0x248)]()[_0x263507(0x23e)]>0x0;return _0xb22d85(_0x263507(0x149),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x288285('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0xb22d85('div',{'className':_0x263507(0x1fb),'children':[_0x288285(_0x263507(0x149),{'className':'univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x288285(_0x263507(0x121),{'className':_0x263507(0x1fd),'children':'⚙'})}),_0x288285('div',{'children':_0x288285('p',{'className':_0x263507(0x1f2),'children':_0x10e766['t'](_0x263507(0x182))})})]})}),_0xb22d85(_0x263507(0x149),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x288285('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x302bde(_0x39c68e,_0x1f3cb2)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0xb22d85(_0x263507(0x149),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x1ed)+_0x1c4481(_0x39c68e,_0x1f3cb2)+_0x263507(0x1e1)}),_0x288285('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0x253655(_0x39c68e)})]})}),_0x1f3cb2!==_0x109ccb[_0x263507(0x258)]&&(_0x39c68e===_0x38d350[_0x263507(0x1f9)]||_0x1f3cb2===_0x109ccb[_0x263507(0x1c4)])&&_0x288285(_0x263507(0x149),{'className':_0x263507(0x262),'children':_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x255),'children':[_0x288285(_0x263507(0x121),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x288285('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x3b32b4(_0x1f3cb2)})]})})]}),_0x288285('div',{'className':_0x263507(0x17e),'children':_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x120),'children':[_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x158),'children':[_0xb22d85(_0x263507(0x1ee),{'className':_0x263507(0x172),'children':[_0x288285(_0x263507(0x121),{'children':'🔑'}),'\x20',_0x10e766['t'](_0x263507(0x1cc)),_0x288285(_0x263507(0x121),{'className':'univer-text-red-500','children':'*'}),_0x56b99&&_0x288285('a',{'href':_0x263507(0x23a),'onClick':()=>_0x33a683(!0x0),'className':_0x263507(0x1b8),'title':_0x10e766['t'](_0x263507(0x245)),'children':_0x288285(de,{})})]}),_0x288285(_0x35eb2b,{'type':_0x263507(0x1df),'placeholder':_0x10e766['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x277f9c,'onChange':_0x13104b,'disabled':_0x3a1eae,'autoComplete':_0x263507(0x1b0)}),_0x288285('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x10e766['t'](_0x263507(0x16e))})]}),_0x56b99&&_0x1c11e0&&_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x125),'children':[_0x288285('a',{'href':_0x263507(0x23a),'onClick':()=>_0x33a683(!0x1),'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','title':_0x263507(0x1ae),'children':_0x288285(ve,{})}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1fe),'children':[_0x288285('div',{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x288285(_0x263507(0x121),{'className':'univer-text-blue-600','children':'🚀'})}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x11c),'children':[_0x288285('h4',{'className':_0x263507(0x1ff),'children':_0x10e766['t']('mcpConfig.apiApplyInfo.title')}),_0x288285('p',{'className':_0x263507(0x178),'children':_0x10e766['t']('mcpConfig.apiApplyInfo.description')}),_0x288285(_0x263507(0x149),{'className':_0x263507(0x159),'children':_0x279c72&&_0xb22d85('a',{'href':_0x267418,'target':_0x263507(0x216),'rel':'noopener\x20noreferrer','className':_0x263507(0x19a),'children':[_0x288285(_0x263507(0x121),{'children':'🤖'}),_0x10e766['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x288285('span',{'className':_0x263507(0x191),'children':'↗'})]})}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x135),'children':['✨','\x20',_0x10e766['t'](_0x263507(0x14e))]})]})]})]}),_0x258df9[_0x263507(0x14d)]&&_0xb22d85('div',{'className':_0x263507(0x115),'children':[_0xb22d85('h4',{'className':_0x263507(0x11a),'children':[_0x288285('span',{'children':'🔗'}),'\x20',_0x10e766['t']('mcpConfig.connectionInfo')]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1e0),'children':[_0xb22d85(_0x263507(0x149),{'className':'univer-space-y-3','children':[_0x288285('p',{'className':_0x263507(0x20f),'children':_0x10e766['t']('mcpConfig.configInstructions')}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x158),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x128),'children':_0x10e766['t'](_0x263507(0x24d))}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1a3),'children':[_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x190),'children':[_0x288285('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x10e766['t'](_0x263507(0x225))]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x190),'children':[_0x288285(_0x263507(0x121),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x10e766['t'](_0x263507(0x1a0))]}),_0xb22d85('div',{'className':_0x263507(0x190),'children':[_0x288285(_0x263507(0x121),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x10e766['t']('mcpConfig.configStep3')]})]})]})]}),_0xb22d85('div',{'className':_0x263507(0x158),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x128),'children':_0x263507(0x1a6)}),_0x288285(_0x263507(0x149),{'className':_0x263507(0x179),'children':_0x288285(_0x263507(0x24a),{'className':_0x263507(0x1c0),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x2832f3+_0x263507(0x207)+(_0x277f9c||'<API_KEY>')+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1c8),'children':[_0x288285('div',{'className':_0x263507(0x128),'children':_0x10e766['t']('mcpConfig.configParameters')}),_0xb22d85(_0x263507(0x149),{'className':'univer-space-y-2','children':[_0xb22d85(_0x263507(0x149),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x150)}),_0xb22d85('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x288285('div',{'className':_0x263507(0x25f),'children':_0x263507(0x1c7)}),_0x288285('div',{'className':_0x263507(0x156),'children':_0x10e766['t'](_0x263507(0x11f))})]})]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x12f),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x150)}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x160),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x25f),'children':_0x263507(0x166)}),_0x288285('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x10e766['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x288285(_0xf8f352,{'onClick':_0x458da4,'disabled':!_0x258b7a||_0x3a1eae,'className':_0x263507(0x137),'children':_0x3a1eae?_0xb22d85(_0x263507(0x121),{'className':_0x263507(0x190),'children':[_0x288285(_0x263507(0x121),{'children':'⟲'}),_0x10e766['t'](_0x263507(0x186))]}):_0xb22d85(_0x263507(0x121),{'className':_0x263507(0x190),'children':[_0x288285(ue,{}),_0x10e766['t'](_0x263507(0x1e3))]})}),_0x288285(_0x263507(0x149),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x126),'children':[_0x288285(_0x263507(0x121),{'className':_0x263507(0x20c),'children':'💡'}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1aa),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x212),'children':_0x263507(0x16f)}),_0xb22d85(_0x263507(0x149),{'children':['•',_0x10e766['t'](_0x263507(0x129))]}),_0xb22d85(_0x263507(0x149),{'children':['•',_0x10e766['t'](_0x263507(0x1a2))]})]})]})})]})})]});}const L='mcp-ui.config',ie={'showDeveloperTools':!0x1};var on=Object['getOwnPropertyDescriptor'],sn=(_0x229f52,_0x3632e2,_0x19c524,_0x15fd0c)=>{var _0x16ccc3=_0x219a03;for(var _0x447e2d=_0x15fd0c>0x1?void 0x0:_0x15fd0c?on(_0x3632e2,_0x19c524):_0x3632e2,_0x1f194a=_0x229f52[_0x16ccc3(0x23e)]-0x1,_0xa7b7e3;_0x1f194a>=0x0;_0x1f194a--)(_0xa7b7e3=_0x229f52[_0x1f194a])&&(_0x447e2d=_0xa7b7e3(_0x447e2d)||_0x447e2d);return _0x447e2d;},f=(_0x1c41e2,_0x194e13)=>(_0xcda950,_0x2c3d0b)=>_0x194e13(_0xcda950,_0x2c3d0b,_0x1c41e2);const T=_0x219a03(0x21a),R=_0x219a03(0x12d);let I=class extends _0x1f0c2f{constructor(_0x51151b,_0x4c71d5,_0x29eea0,_0x5736de,_0x2cbf96,_0x3b70f0,_0x1be05f,_0x550d38,_0x43e168,_0x4a3c84){var _0x13be67=_0x219a03;super(),x(this,'_loading$',new _0x249cb6(!0x1)),x(this,_0x13be67(0x23c),new _0x249cb6({})),x(this,_0x13be67(0x175),new _0x249cb6({})),x(this,_0x13be67(0x16a),new _0x249cb6('')),x(this,'_handleConfigSave',async _0x3e92af=>{var _0x2a5f40=_0x13be67,_0x1fbac0,_0x35ebf2;this['_loading$'][_0x2a5f40(0x21d)](!0x0);try{const _0xcfde55=await this[_0x2a5f40(0x14f)](_0x3e92af);if(!_0xcfde55[_0x2a5f40(0x189)]){this[_0x2a5f40(0x232)][_0x2a5f40(0x19f)]({'type':_0x4b0dc2[_0x2a5f40(0x1ba)],'content':_0xcfde55[_0x2a5f40(0x11d)]||this[_0x2a5f40(0x250)]['t'](_0x2a5f40(0x1d7))});return;}_0x3e92af[_0x2a5f40(0x17d)]?await this[_0x2a5f40(0x133)][_0x2a5f40(0x124)](T,_0x3e92af[_0x2a5f40(0x17d)][_0x2a5f40(0x248)]()):await this[_0x2a5f40(0x133)][_0x2a5f40(0x20e)](T),this['_apiKey$'][_0x2a5f40(0x21d)](((_0x1fbac0=_0x3e92af[_0x2a5f40(0x17d)])==null?void 0x0:_0x1fbac0[_0x2a5f40(0x248)]())||''),this[_0x2a5f40(0x263)]['__setCustomHeaders']({'Authorization':_0x2a5f40(0x1ce)+((_0x35ebf2=_0x3e92af['apiKey'])==null?void 0x0:_0x35ebf2[_0x2a5f40(0x248)]())}),this[_0x2a5f40(0x232)][_0x2a5f40(0x19f)]({'type':_0x4b0dc2[_0x2a5f40(0x1b2)],'content':this[_0x2a5f40(0x250)]['t'](_0x2a5f40(0x204))}),setTimeout(()=>{var _0x44ea7d=_0x2a5f40;this[_0x44ea7d(0x177)][_0x44ea7d(0x1ef)](R);},0x320);}catch(_0x12021a){this[_0x2a5f40(0x231)][_0x2a5f40(0x1ec)](_0x2a5f40(0x21b),_0x12021a),this[_0x2a5f40(0x232)][_0x2a5f40(0x19f)]({'type':_0x4b0dc2[_0x2a5f40(0x1ba)],'content':this[_0x2a5f40(0x250)]['t']('mcpConfig.configError')});}finally{this[_0x2a5f40(0x1f8)][_0x2a5f40(0x21d)](!0x1);}}),(this[_0x13be67(0x168)]=_0x51151b,this['_uiPartsService']=_0x4c71d5,this[_0x13be67(0x203)]=_0x29eea0,this['_localStorageService']=_0x5736de,this['_dialogService']=_0x2cbf96,this['_messageService']=_0x3b70f0,this['_componentManager']=_0x1be05f,this[_0x13be67(0x250)]=_0x550d38,this[_0x13be67(0x231)]=_0x43e168,this[_0x13be67(0x263)]=_0x4a3c84,this[_0x13be67(0x13d)](),this[_0x13be67(0x260)](),this[_0x13be67(0x1a9)]());}[_0x219a03(0x199)](){var _0x3f713d=_0x219a03;this[_0x3f713d(0x177)][_0x3f713d(0x26c)]({'id':R,'title':{'title':this[_0x3f713d(0x250)]['t'](_0x3f713d(0x1c9))},'children':{'label':_0x3f713d(0x226)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x276037=_0x3f713d;this[_0x276037(0x177)][_0x276037(0x1ef)](R);}});}[_0x219a03(0x1f4)](){var _0x25d7fa=_0x219a03;return this[_0x25d7fa(0x23c)][_0x25d7fa(0x127)];}[_0x219a03(0x1a9)](){var _0x566934=_0x219a03;this[_0x566934(0x22d)](this[_0x566934(0x119)][_0x566934(0x1cb)](_0x566934(0x226),this[_0x566934(0x1bd)]()));}['_createConfigPanelComponent'](){var _0x24cd74=_0x219a03;return _0x2400a6(()=>{var _0x642b94=_0x3cee,_0x1c13db,_0x25e497,_0x3348b5;return _0x288285(tn,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x642b94(0x23c)][_0x642b94(0x127)],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x642b94(0x1f8)][_0x642b94(0x127)],'connectionStatus$':(_0x1c13db=this[_0x642b94(0x263)])==null?void 0x0:_0x1c13db[_0x642b94(0x170)],'connectionError$':(_0x25e497=this[_0x642b94(0x263)])==null?void 0x0:_0x25e497['connectionError$'],'currentSessionId$':(_0x3348b5=this[_0x642b94(0x263)])==null?void 0x0:_0x3348b5['sessionId$']});},this[_0x24cd74(0x168)]);}['_initConfigSync'](){var _0x289d3e=_0x219a03;this[_0x289d3e(0x22d)](this[_0x289d3e(0x203)][_0x289d3e(0x254)](_0x41f305)[_0x289d3e(0x14c)](_0x3b8426=>{var _0x5b5866=_0x289d3e;this['_mcpCoreConfig$'][_0x5b5866(0x21d)](_0x3b8426||{});}));const _0x841626=this[_0x289d3e(0x203)][_0x289d3e(0x18d)](_0x41f305);this[_0x289d3e(0x23c)][_0x289d3e(0x21d)](_0x841626||{}),this['disposeWithMe'](this['_configService']['subscribeConfigValue$'](L)[_0x289d3e(0x14c)](_0xbb363f=>{var _0x239b1c=_0x289d3e;this[_0x239b1c(0x175)][_0x239b1c(0x21d)](_0xbb363f||{});}));const _0x4a5705=this[_0x289d3e(0x203)][_0x289d3e(0x18d)](L);this[_0x289d3e(0x175)][_0x289d3e(0x21d)](_0x4a5705||{});}async[_0x219a03(0x260)](){var _0x280060=_0x219a03;const _0x40c990=await this['_localStorageService'][_0x280060(0x114)](T);_0x40c990&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x280060(0x1ce)+_0x40c990}),this[_0x280060(0x16a)][_0x280060(0x21d)](_0x40c990));}async['_validateConfig'](_0x1c47e9){var _0x4651d2=_0x219a03;if(!_0x1c47e9[_0x4651d2(0x17d)]||_0x1c47e9[_0x4651d2(0x17d)][_0x4651d2(0x248)]()[_0x4651d2(0x23e)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4651d2(0x250)]['t'](_0x4651d2(0x261))};if(_0x1c47e9[_0x4651d2(0x17d)][_0x4651d2(0x248)]()[_0x4651d2(0x23e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4651d2(0x250)]['t'](_0x4651d2(0x11b))};try{const _0x2c63cd=await this[_0x4651d2(0x168)][_0x4651d2(0x238)](_0x595033)[_0x4651d2(0x111)](_0x1c47e9[_0x4651d2(0x17d)][_0x4651d2(0x248)]());return _0x2c63cd[_0x4651d2(0x189)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c63cd[_0x4651d2(0x1ec)]||this[_0x4651d2(0x250)]['t'](_0x4651d2(0x122))};}catch(_0x48efd8){return console[_0x4651d2(0x251)](_0x4651d2(0x18f),_0x48efd8),{'isValid':!0x0};}}};I=sn([f(0x0,_0x42ebfc(_0x5ede34)),f(0x1,_0x5a2bd3),f(0x2,_0x29ba2c),f(0x3,_0x316f47),f(0x4,_0x42dd90),f(0x5,_0x350eed),f(0x6,_0x42ebfc(_0xd402ee)),f(0x7,_0x42ebfc(_0xc33df3)),f(0x8,_0x4d889b),f(0x9,_0x42ebfc(_0x595033))],I);const B={'id':_0x219a03(0x1b4),'type':_0x4168e3[_0x219a03(0x211)],'handler':async(_0x492d1b,_0xe2e8fc)=>(_0x492d1b[_0x219a03(0x238)](I)[_0x219a03(0x199)](),!0x0)};function pe(_0x2e170c,_0x1870c7){var _0xf6db90=_0x219a03;switch(_0x2e170c){case _0x38d350['DISCONNECTED']:return'mcpStatus.disconnected';case _0x38d350['CONNECTING']:return _0xf6db90(0x217);case _0x38d350[_0xf6db90(0x12a)]:return _0xf6db90(0x171);case _0x38d350[_0xf6db90(0x1f9)]:switch(_0x1870c7){case _0x109ccb[_0xf6db90(0x1c4)]:return _0xf6db90(0x136);case _0x109ccb[_0xf6db90(0x1ea)]:return _0xf6db90(0x18b);case _0x109ccb[_0xf6db90(0x241)]:return'mcpStatus.networkError';case _0x109ccb[_0xf6db90(0x234)]:return _0xf6db90(0x240);default:return'mcpStatus.failed';}case _0x38d350['RETRYING']:return'mcpStatus.retrying';default:return _0xf6db90(0x1d8);}}function cn(_0x1ef045,_0x5596eb,_0x18e136){var _0x5bc731=_0x219a03;const _0x49f8af=pe(_0x1ef045,_0x5596eb),_0x88f177=_0x18e136['t'](_0x49f8af);return _0x1ef045===_0x38d350[_0x5bc731(0x16c)]&&_0x5596eb===_0x109ccb[_0x5bc731(0x1c4)]?_0x88f177+'\x20-\x20'+_0x18e136['t'](_0x5bc731(0x139)):_0x1ef045===_0x38d350[_0x5bc731(0x12a)]?''+_0x88f177:_0x1ef045===_0x38d350['DISCONNECTED']||_0x1ef045===_0x38d350[_0x5bc731(0x1f9)]?_0x88f177+_0x5bc731(0x13a)+_0x18e136['t'](_0x5bc731(0x110)):_0x88f177;}function an(_0x1f3125){var _0x2cee46=_0x219a03;switch(_0x1f3125){case _0x38d350[_0x2cee46(0x12a)]:return _0x2cee46(0x17b);case _0x38d350[_0x2cee46(0x1c5)]:case _0x38d350['RETRYING']:return'univer-text-yellow-500';case _0x38d350[_0x2cee46(0x1f9)]:case _0x38d350[_0x2cee46(0x16c)]:return _0x2cee46(0x1f6);default:return _0x2cee46(0x1e9);}}function ln(_0x1fa30f){var _0x58dc06=_0x219a03;const {status$:_0x4af226,error$:_0xe0d99e,onConfigure:_0x2104b0}=_0x1fa30f,_0x12eef4=_0x58c5e8(_0x4af226,_0x38d350[_0x58dc06(0x16c)]),_0x8005a=_0x58c5e8(_0xe0d99e,_0x109ccb[_0x58dc06(0x258)]),_0x1a77a0=_0x43a656(_0xc33df3),_0x313e10=_0x12eef4===_0x38d350[_0x58dc06(0x12a)],_0x2feea5=_0x12eef4===_0x38d350[_0x58dc06(0x1c5)]||_0x12eef4===_0x38d350[_0x58dc06(0x25b)],_0x3c5434=_0x1a77a0['t'](pe(_0x12eef4,_0x8005a)),_0x510b56=cn(_0x12eef4,_0x8005a,_0x1a77a0),_0x530fa6=an(_0x12eef4),_0x4041d7=_0x313e10?_0x288285(fe,{}):_0x288285(ge,{}),_0x2741a2=_0x2db746(()=>{_0x2104b0&&_0x2104b0();},[_0x313e10,_0x2feea5,_0x2104b0]);function _0x40d11b(){var _0x2118cf=_0x58dc06;return _0xb22d85('div',{'className':_0xdad1b(_0x2118cf(0x163),_0x2104b0&&'hover:univer-opacity-80'),'onClick':_0x2104b0?_0x2741a2:void 0x0,'children':[_0x288285(_0x2118cf(0x149),{'className':_0xdad1b(_0x2118cf(0x25d),_0x530fa6),'children':_0x4041d7}),_0x288285('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3c5434})]});}return _0x288285(_0x6b526f,{'title':_0x510b56,'placement':_0x58dc06(0x197),'children':_0x40d11b()});}var un=Object['getOwnPropertyDescriptor'],vn=(_0x216e90,_0x3b0e6c,_0x43ae22,_0x2bc3ad)=>{var _0x490a8f=_0x219a03;for(var _0x2a38cf=_0x2bc3ad>0x1?void 0x0:_0x2bc3ad?un(_0x3b0e6c,_0x43ae22):_0x3b0e6c,_0x2d3d6=_0x216e90[_0x490a8f(0x23e)]-0x1,_0x591d85;_0x2d3d6>=0x0;_0x2d3d6--)(_0x591d85=_0x216e90[_0x2d3d6])&&(_0x2a38cf=_0x591d85(_0x2a38cf)||_0x2a38cf);return _0x2a38cf;},j=(_0x3ccbb7,_0x358d22)=>(_0x3e5371,_0x539854)=>_0x358d22(_0x3e5371,_0x539854,_0x3ccbb7);let A=class extends _0x1f0c2f{constructor(_0xf7dd82,_0x520408,_0x5e196a){var _0x4168c4=_0x219a03;super(),this[_0x4168c4(0x168)]=_0xf7dd82,this[_0x4168c4(0x116)]=_0x520408,this[_0x4168c4(0x174)]=_0x5e196a,this[_0x4168c4(0x116)]['enableAutoConnect']=!0x1,this[_0x4168c4(0x1f7)]();}[_0x219a03(0x1f7)](){var _0xffdc88=_0x219a03;this[_0xffdc88(0x22d)](this[_0xffdc88(0x174)][_0xffdc88(0x1f0)](_0x5be334['HEADER_MENU'],()=>_0x2400a6(dn({'status$':this[_0xffdc88(0x116)][_0xffdc88(0x170)],'error$':this[_0xffdc88(0x116)][_0xffdc88(0x12e)],'onConfigure':()=>this[_0xffdc88(0x228)]()}),this['_injector'])));}[_0x219a03(0x228)](){var _0x375745=_0x219a03;this[_0x375745(0x168)]['get'](I)[_0x375745(0x199)]();}};A=vn([j(0x0,_0x42ebfc(_0x5ede34)),j(0x1,_0x42ebfc(_0x595033)),j(0x2,_0x5a2bd3)],A);function dn(_0x1aabd5){const {status$:_0x23844a,error$:_0x300985,onConfigure:_0x4fc8f3}=_0x1aabd5;return function(){return _0x288285(ln,{'status$':_0x23844a,'error$':_0x300985,'onConfigure':_0x4fc8f3});};}function gn(_0x4289ef){var _0x30848f=_0x219a03;return{'id':B['id'],'type':_0x14d87f[_0x30848f(0x181)],'icon':_0x30848f(0x269),'title':_0x30848f(0x1c9),'tooltip':_0x30848f(0x1c9)};}const fn={[_0x2d020d[_0x219a03(0x169)]]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x219a03(0x19d)],mn=(_0xac7890,_0x29c52e,_0xfe7af6,_0x5e5abc)=>{for(var _0x43d036=_0x5e5abc>0x1?void 0x0:_0x5e5abc?pn(_0x29c52e,_0xfe7af6):_0x29c52e,_0x34d4ab=_0xac7890['length']-0x1,_0x658918;_0x34d4ab>=0x0;_0x34d4ab--)(_0x658918=_0xac7890[_0x34d4ab])&&(_0x43d036=_0x658918(_0x43d036)||_0x43d036);return _0x43d036;},re=(_0x38bbf2,_0x2ddaf1)=>(_0x2da600,_0x3bdc0b)=>_0x2ddaf1(_0x2da600,_0x3bdc0b,_0x38bbf2);let M=class extends _0x1f0c2f{constructor(_0x3a9d57,_0x339ec2){var _0xcc9d52=_0x219a03;super(),this[_0xcc9d52(0x1de)]=_0x3a9d57,this[_0xcc9d52(0x155)]=_0x339ec2,this[_0xcc9d52(0x236)](),this[_0xcc9d52(0x173)]();}[_0x219a03(0x236)](){var _0x9231cf=_0x219a03;[B][_0x9231cf(0x257)](_0x3ceb22=>{var _0x1addf9=_0x9231cf;this[_0x1addf9(0x22d)](this['_commandService']['registerCommand'](_0x3ceb22));});}['_initializeMenus'](){var _0x916449=_0x219a03;this[_0x916449(0x155)]['mergeMenu'](fn);}};M=mn([re(0x0,_0x5da6fe),re(0x1,_0x3064d0)],M);const On={'mcpStatus':{'disconnected':_0x219a03(0x24f),'connecting':_0x219a03(0x15b),'connected':_0x219a03(0x26b),'failed':_0x219a03(0x264),'retrying':_0x219a03(0x1b3),'unknown':_0x219a03(0x1be),'missingApiKey':_0x219a03(0x242),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x219a03(0x220),'networkError':_0x219a03(0x23b),'maxRetriesExceeded':_0x219a03(0x176),'clickToConnect':_0x219a03(0x247),'clickToConfigure':_0x219a03(0x22c)},'mcpConfig':{'title':_0x219a03(0x1a6),'description':_0x219a03(0x1af),'apiKey':_0x219a03(0x21e),'apiKeyPlaceholder':_0x219a03(0x162),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x219a03(0x180),'connectionInfo':_0x219a03(0x15a),'mcpClientConfig':_0x219a03(0x15a),'configInstructions':_0x219a03(0x24e),'configStepTitle':_0x219a03(0x26a),'configStep1':_0x219a03(0x18c),'configStep2':_0x219a03(0x202),'configStep3':_0x219a03(0x147),'sessionId':_0x219a03(0x256),'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':_0x219a03(0x130),'maxRetries':_0x219a03(0x113),'save':_0x219a03(0x185),'saving':_0x219a03(0x1d5),'note1':_0x219a03(0x16d),'note2':_0x219a03(0x1db),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x219a03(0x246),'description':_0x219a03(0x1b5),'univerAiLabel':_0x219a03(0x214),'getStarted':_0x219a03(0x22b)},'validation':{'apiKeyRequired':_0x219a03(0x148),'apiKeyTooShort':_0x219a03(0x1ac),'invalidConfig':_0x219a03(0x143),'invalidApiKey':_0x219a03(0x12c)},'connectionStatus':{'disconnected':_0x219a03(0x1e6),'connecting':'Connecting...','connected':_0x219a03(0x1bb),'failed':_0x219a03(0x1c2),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x219a03(0x1cd),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x219a03(0x12b),'networkError':_0x219a03(0x11e),'maxRetriesExceeded':_0x219a03(0x215)}}},kn={'mcpStatus':{'disconnected':_0x219a03(0x1e8),'connecting':_0x219a03(0x1a7),'connected':'MCP\x20已连接','failed':_0x219a03(0x249),'retrying':_0x219a03(0x200),'unknown':_0x219a03(0x1a5),'missingApiKey':_0x219a03(0x218),'invalidApiKey':_0x219a03(0x201),'sessionOccupied':_0x219a03(0x183),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x219a03(0x165),'clickToConnect':_0x219a03(0x1b6),'clickToConfigure':_0x219a03(0x1a4)},'mcpConfig':{'title':'MCP\x20配置','description':_0x219a03(0x157),'apiKey':_0x219a03(0x268),'apiKeyPlaceholder':_0x219a03(0x193),'apiKeyHint':_0x219a03(0x208),'enableAuth':'启用身份验证','enableAuthHint':_0x219a03(0x227),'connectionInfo':_0x219a03(0x15f),'mcpClientConfig':_0x219a03(0x15f),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x219a03(0x14a),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x219a03(0x1b7),'sessionId':'会话ID','sessionIdDescription':_0x219a03(0x123),'authorizationDescription':_0x219a03(0x112),'configParameters':_0x219a03(0x161),'maxRetries':_0x219a03(0x1b1),'save':_0x219a03(0x1d2),'saving':_0x219a03(0x196),'note1':_0x219a03(0x25c),'note2':_0x219a03(0x233),'configSaved':_0x219a03(0x1dc),'configError':_0x219a03(0x13b),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x219a03(0x151),'univerAiLabel':_0x219a03(0x1c1),'getStarted':_0x219a03(0x24b)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x219a03(0x221),'invalidConfig':_0x219a03(0x154),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x219a03(0x210),'connecting':_0x219a03(0x266),'connected':_0x219a03(0x237),'failed':'连接失败','retrying':_0x219a03(0x1c6)},'connectionError':{'missingApiKey':_0x219a03(0x21f),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x219a03(0x187),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x219a03(0x1f5)}}};var hn=Object['defineProperty'],Cn=Object[_0x219a03(0x19d)],yn=(_0x539eb6,_0x409929,_0x448e49)=>_0x409929 in _0x539eb6?hn(_0x539eb6,_0x409929,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x448e49}):_0x539eb6[_0x409929]=_0x448e49,_n=(_0x3bc8b4,_0x498907,_0x43cda7,_0x30cbe2)=>{var _0x452381=_0x219a03;for(var _0x16436c=_0x30cbe2>0x1?void 0x0:_0x30cbe2?Cn(_0x498907,_0x43cda7):_0x498907,_0x31edf1=_0x3bc8b4[_0x452381(0x23e)]-0x1,_0x8818e1;_0x31edf1>=0x0;_0x31edf1--)(_0x8818e1=_0x3bc8b4[_0x31edf1])&&(_0x16436c=_0x8818e1(_0x16436c)||_0x16436c);return _0x16436c;},E=(_0x2b7fd2,_0x11cb67)=>(_0xa03167,_0x45e94c)=>_0x11cb67(_0xa03167,_0x45e94c,_0x2b7fd2),xn=(_0x19ce36,_0x2259a9,_0x381b77)=>yn(_0x19ce36,_0x2259a9+'',_0x381b77);let U=class extends _0x856cee{constructor(_0x2f7aa6=ie,_0x5c2575,_0x3b8431,_0x2d0f8d,_0x58f617,_0x42d3c7){var _0x54583e=_0x219a03;super(),this[_0x54583e(0x267)]=_0x2f7aa6,this['_injector']=_0x5c2575,this[_0x54583e(0x203)]=_0x3b8431,this[_0x54583e(0x174)]=_0x2d0f8d,this[_0x54583e(0x133)]=_0x58f617,this[_0x54583e(0x250)]=_0x42d3c7;const {..._0x35e02a}=_0x152593({},ie,this[_0x54583e(0x267)]);this[_0x54583e(0x203)][_0x54583e(0x1fa)](L,_0x35e02a);}async[_0x219a03(0x142)](){var _0x8a310a=_0x219a03;const _0x50b303=[[A],[I],[M]];this[_0x8a310a(0x168)][_0x8a310a(0x1e7)](_0x140f0d)||_0x50b303[_0x8a310a(0x209)]([_0x140f0d,{'useClass':_0x324d21}]),_0x50b303[_0x8a310a(0x257)](_0x89b750=>this[_0x8a310a(0x168)][_0x8a310a(0x223)](_0x89b750)),this[_0x8a310a(0x168)][_0x8a310a(0x238)](A),this['_injector'][_0x8a310a(0x238)](I),this[_0x8a310a(0x168)][_0x8a310a(0x238)](M);}};xn(U,'pluginName',_0x219a03(0x141)),U=_n([_0xdb2fad(_0x3412ea),E(0x1,_0x42ebfc(_0x5ede34)),E(0x2,_0x29ba2c),E(0x3,_0x5a2bd3),E(0x4,_0x316f47),E(0x5,_0x42ebfc(_0xc33df3))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
@@ -1 +1 @@
1
- const _0x372f0b=_0x915b;(function(_0x389fd3,_0x3ddea7){const _0x3a7206=_0x915b,_0xb0578=_0x389fd3();while(!![]){try{const _0x3b8e16=parseInt(_0x3a7206(0x1a5))/0x1+-parseInt(_0x3a7206(0x19b))/0x2*(-parseInt(_0x3a7206(0x190))/0x3)+parseInt(_0x3a7206(0x19e))/0x4*(parseInt(_0x3a7206(0x199))/0x5)+parseInt(_0x3a7206(0x1af))/0x6*(parseInt(_0x3a7206(0x1a3))/0x7)+-parseInt(_0x3a7206(0x1a8))/0x8*(-parseInt(_0x3a7206(0x181))/0x9)+-parseInt(_0x3a7206(0x1b0))/0xa*(parseInt(_0x3a7206(0x1a2))/0xb)+-parseInt(_0x3a7206(0x18f))/0xc;if(_0x3b8e16===_0x3ddea7)break;else _0xb0578['push'](_0xb0578['shift']());}catch(_0x22ee76){_0xb0578['push'](_0xb0578['shift']());}}}(_0x2baf,0x7b714));function _0x2baf(){const _0x5e5cc3=['Connecting...','MCP\x20Client\x20Configuration','4917CqGfpV','2236535wbbNIg','Enter\x20your\x20API\x20key','180886LCCtva','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1392CdbEsj','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Saving...','Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key','12fcZYFH','6330gCPgRC','API\x20key\x20is\x20required','MCP\x20Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','21933rQRFnh','MCP\x20Retrying...','MCP:\x20Invalid\x20API\x20Key','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20API\x20Key\x20Missing','Invalid\x20configuration','Connected','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','18386892PDALOn','843ZMVLQn','Disconnected','Connection\x20Failed','MCP\x20Configuration','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','15845pDGdIF','API\x20key\x20is\x20required\x20to\x20connect','4552dLfFAr','Click\x20to\x20connect\x20MCP','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','552DbOFDp','Max\x20Retries'];_0x2baf=function(){return _0x5e5cc3;};return _0x2baf();}const e={'mcpStatus':{'disconnected':_0x372f0b(0x17e),'connecting':'MCP\x20Connecting...','connected':_0x372f0b(0x189),'failed':'MCP\x20Connection\x20Failed','retrying':_0x372f0b(0x182),'unknown':_0x372f0b(0x198),'missingApiKey':_0x372f0b(0x186),'invalidApiKey':_0x372f0b(0x183),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x372f0b(0x180),'maxRetriesExceeded':_0x372f0b(0x18c),'clickToConnect':_0x372f0b(0x19c),'clickToConfigure':_0x372f0b(0x197)},'mcpConfig':{'title':_0x372f0b(0x193),'description':_0x372f0b(0x1aa),'apiKey':_0x372f0b(0x1ae),'apiKeyPlaceholder':_0x372f0b(0x1a4),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x372f0b(0x17f),'connectionInfo':_0x372f0b(0x1a1),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x372f0b(0x1a7),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x372f0b(0x1ad),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x372f0b(0x195),'sessionId':_0x372f0b(0x184),'sessionIdDescription':_0x372f0b(0x18b),'authorizationDescription':_0x372f0b(0x196),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x372f0b(0x19f),'save':'Save\x20Configuration','saving':_0x372f0b(0x1ab),'note1':_0x372f0b(0x1a9),'note2':_0x372f0b(0x1a6),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x372f0b(0x18e),'univerAiLabel':_0x372f0b(0x194),'getStarted':_0x372f0b(0x18a)},'validation':{'apiKeyRequired':_0x372f0b(0x1b1),'apiKeyTooShort':_0x372f0b(0x18d),'invalidConfig':_0x372f0b(0x187),'invalidApiKey':_0x372f0b(0x185)},'connectionStatus':{'disconnected':_0x372f0b(0x191),'connecting':_0x372f0b(0x1a0),'connected':_0x372f0b(0x188),'failed':_0x372f0b(0x192),'retrying':_0x372f0b(0x1ac)},'connectionError':{'missingApiKey':_0x372f0b(0x19a),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x372f0b(0x19d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x915b(_0x400511,_0x561ae9){const _0x2baf04=_0x2baf();return _0x915b=function(_0x915b2e,_0x5c7044){_0x915b2e=_0x915b2e-0x17e;let _0x3851d1=_0x2baf04[_0x915b2e];return _0x3851d1;},_0x915b(_0x400511,_0x561ae9);}export{n as default};
1
+ const _0x5f5596=_0x20d6;(function(_0x56f1c6,_0x53a11e){const _0x1b914c=_0x20d6,_0xd87319=_0x56f1c6();while(!![]){try{const _0x2f9b66=-parseInt(_0x1b914c(0x132))/0x1+-parseInt(_0x1b914c(0x13d))/0x2*(-parseInt(_0x1b914c(0x14b))/0x3)+-parseInt(_0x1b914c(0x144))/0x4*(parseInt(_0x1b914c(0x12f))/0x5)+parseInt(_0x1b914c(0x14d))/0x6*(parseInt(_0x1b914c(0x126))/0x7)+parseInt(_0x1b914c(0x149))/0x8+-parseInt(_0x1b914c(0x123))/0x9+parseInt(_0x1b914c(0x140))/0xa*(parseInt(_0x1b914c(0x12b))/0xb);if(_0x2f9b66===_0x53a11e)break;else _0xd87319['push'](_0xd87319['shift']());}catch(_0x545372){_0xd87319['push'](_0xd87319['shift']());}}}(_0x4f6c,0xaf47a));function _0x4f6c(){const _0x1f313e=['12427128ssvNhY','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','973RqSZte','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','11cAEArK','MCP\x20Connected','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','35IzlPSg','Configuration\x20Parameters:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1275036GbzHni','Enter\x20your\x20API\x20key','Retrying...','API\x20Key','Configuration\x20Steps:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Saving...','74TdPFBx','Enable\x20Authentication','MCP:\x20Invalid\x20API\x20Key','35389560abvMTD','MCP:\x20Session\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Disconnected','290460CsgOKj','Max\x20Retries','Save\x20Configuration','MCP\x20Connection\x20Failed','Connected','458584JifIrp','Connecting...','2199yaGSue','MCP\x20Disconnected','11166mRADuZ','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Univer\x20AI\x20Console','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP'];_0x4f6c=function(){return _0x1f313e;};return _0x4f6c();}const e={'mcpStatus':{'disconnected':_0x5f5596(0x14c),'connecting':'MCP\x20Connecting...','connected':_0x5f5596(0x12c),'failed':_0x5f5596(0x147),'retrying':_0x5f5596(0x15c),'unknown':_0x5f5596(0x154),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x5f5596(0x13f),'sessionOccupied':_0x5f5596(0x141),'networkError':_0x5f5596(0x12d),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5f5596(0x15d),'clickToConfigure':_0x5f5596(0x157)},'mcpConfig':{'title':_0x5f5596(0x13b),'description':_0x5f5596(0x137),'apiKey':_0x5f5596(0x135),'apiKeyPlaceholder':_0x5f5596(0x133),'apiKeyHint':_0x5f5596(0x127),'enableAuth':_0x5f5596(0x13e),'enableAuthHint':_0x5f5596(0x159),'connectionInfo':_0x5f5596(0x155),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5f5596(0x139),'configStepTitle':_0x5f5596(0x136),'configStep1':_0x5f5596(0x13a),'configStep2':_0x5f5596(0x12e),'configStep3':_0x5f5596(0x142),'sessionId':'Session\x20ID','sessionIdDescription':_0x5f5596(0x131),'authorizationDescription':_0x5f5596(0x129),'configParameters':_0x5f5596(0x130),'maxRetries':_0x5f5596(0x145),'save':_0x5f5596(0x146),'saving':_0x5f5596(0x13c),'note1':_0x5f5596(0x150),'note2':_0x5f5596(0x14e),'configSaved':_0x5f5596(0x156),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5f5596(0x151),'description':_0x5f5596(0x15a),'univerAiLabel':_0x5f5596(0x15b),'getStarted':_0x5f5596(0x158)},'validation':{'apiKeyRequired':_0x5f5596(0x152),'apiKeyTooShort':_0x5f5596(0x124),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5f5596(0x128)},'connectionStatus':{'disconnected':_0x5f5596(0x143),'connecting':_0x5f5596(0x14a),'connected':_0x5f5596(0x148),'failed':_0x5f5596(0x14f),'retrying':_0x5f5596(0x134)},'connectionError':{'missingApiKey':_0x5f5596(0x153),'invalidApiKey':_0x5f5596(0x138),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x5f5596(0x125),'maxRetriesExceeded':_0x5f5596(0x12a)}}},n=e;function _0x20d6(_0x45f6ba,_0x548f66){const _0x4f6cf6=_0x4f6c();return _0x20d6=function(_0x20d622,_0x441ac6){_0x20d622=_0x20d622-0x123;let _0x622a5=_0x4f6cf6[_0x20d622];return _0x622a5;},_0x20d6(_0x45f6ba,_0x548f66);}export{n as default};