@univerjs-pro/mcp-ui 0.10.14-nightly.202511070628 → 0.10.14-nightly.202511070640

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 _0xba85(){const _0x168461=['Configuration\x20Steps:','4pideJr','API\x20Key','Configuration\x20Parameters:','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Save\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','3577200qUYFAw','Session\x20ID','180337phkYua','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','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','45sdKceQ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','Saving...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Network\x20Error','4062AuCbiA','MCP\x20Unknown\x20Status','Enable\x20Authentication','1205148NSpNrg','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connecting...','889850RPeMXZ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','3169782hgjWuk','Max\x20Retries','4145ugZbPI','exports','1406700OLDFxX','Copy\x20the\x20JSON\x20configuration\x20below'];_0xba85=function(){return _0x168461;};return _0xba85();}const _0x2ec736=_0x2981;(function(_0x1d88fe,_0x18624a){const _0x1f504e=_0x2981,_0x4f7d08=_0x1d88fe();while(!![]){try{const _0x237b6d=parseInt(_0x1f504e(0x1b8))/0x1*(-parseInt(_0x1f504e(0x1ab))/0x2)+parseInt(_0x1f504e(0x19e))/0x3+parseInt(_0x1f504e(0x1a8))/0x4+parseInt(_0x1f504e(0x1a6))/0x5*(-parseInt(_0x1f504e(0x19b))/0x6)+parseInt(_0x1f504e(0x1a4))/0x7+parseInt(_0x1f504e(0x1b6))/0x8+parseInt(_0x1f504e(0x1be))/0x9*(-parseInt(_0x1f504e(0x1a1))/0xa);if(_0x237b6d===_0x18624a)break;else _0x4f7d08['push'](_0x4f7d08['shift']());}catch(_0x49ca75){_0x4f7d08['push'](_0x4f7d08['shift']());}}}(_0xba85,0x45f47));function _0x2981(_0xe127fd,_0x34c1b5){const _0xba8541=_0xba85();return _0x2981=function(_0x2981bc,_0x13c01f){_0x2981bc=_0x2981bc-0x197;let _0xbf30d5=_0xba8541[_0x2981bc];return _0xbf30d5;},_0x2981(_0xe127fd,_0x34c1b5);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2ec736(0x1a0),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2ec736(0x19c),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2ec736(0x19a),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2ec736(0x1af),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2ec736(0x1b0),'description':_0x2ec736(0x1a3),'apiKey':_0x2ec736(0x1ac),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2ec736(0x1bd),'enableAuth':_0x2ec736(0x19d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2ec736(0x1ba),'mcpClientConfig':_0x2ec736(0x1ba),'configInstructions':_0x2ec736(0x1bf),'configStepTitle':_0x2ec736(0x1aa),'configStep1':_0x2ec736(0x1a9),'configStep2':_0x2ec736(0x1b1),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2ec736(0x1b7),'sessionIdDescription':_0x2ec736(0x1b9),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2ec736(0x1ad),'maxRetries':_0x2ec736(0x1a5),'save':_0x2ec736(0x1b2),'saving':_0x2ec736(0x198),'note1':_0x2ec736(0x1bb),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x2ec736(0x1b4),'apiApplyInfo':{'title':_0x2ec736(0x1b5),'description':_0x2ec736(0x1bc),'univerAiLabel':_0x2ec736(0x1ae),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2ec736(0x197),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2ec736(0x1b3),'sessionOccupied':_0x2ec736(0x1a2),'networkError':_0x2ec736(0x19f),'maxRetriesExceeded':_0x2ec736(0x199)}}},n=e;module[_0x2ec736(0x1a7)]=n;
1
+ 'use strict';function _0x47dd(_0x22ce53,_0x27f596){const _0x4e5edc=_0x4e5e();return _0x47dd=function(_0x47dd0d,_0x3dd702){_0x47dd0d=_0x47dd0d-0x172;let _0x5b3b59=_0x4e5edc[_0x47dd0d];return _0x5b3b59;},_0x47dd(_0x22ce53,_0x27f596);}const _0x4fa16a=_0x47dd;(function(_0x429b56,_0x4f1f72){const _0x4e65b3=_0x47dd,_0xf700c0=_0x429b56();while(!![]){try{const _0x55ae0e=parseInt(_0x4e65b3(0x1a0))/0x1+-parseInt(_0x4e65b3(0x18f))/0x2+-parseInt(_0x4e65b3(0x176))/0x3*(-parseInt(_0x4e65b3(0x181))/0x4)+parseInt(_0x4e65b3(0x18c))/0x5+-parseInt(_0x4e65b3(0x177))/0x6+-parseInt(_0x4e65b3(0x1a5))/0x7*(parseInt(_0x4e65b3(0x175))/0x8)+parseInt(_0x4e65b3(0x178))/0x9*(-parseInt(_0x4e65b3(0x19d))/0xa);if(_0x55ae0e===_0x4f1f72)break;else _0xf700c0['push'](_0xf700c0['shift']());}catch(_0x2802a6){_0xf700c0['push'](_0xf700c0['shift']());}}}(_0x4e5e,0xde3eb));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4fa16a(0x18e),'connected':_0x4fa16a(0x184),'failed':_0x4fa16a(0x1a7),'retrying':'MCP\x20Retrying...','unknown':_0x4fa16a(0x17d),'unauthorized':_0x4fa16a(0x18d),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4fa16a(0x183),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4fa16a(0x192),'clickToConfigure':_0x4fa16a(0x187)},'mcpConfig':{'title':_0x4fa16a(0x172),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4fa16a(0x197),'apiKeyPlaceholder':_0x4fa16a(0x19b),'apiKeyHint':_0x4fa16a(0x199),'enableAuth':_0x4fa16a(0x174),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4fa16a(0x19f),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4fa16a(0x194),'configStepTitle':_0x4fa16a(0x188),'configStep1':_0x4fa16a(0x17c),'configStep2':_0x4fa16a(0x1a3),'configStep3':_0x4fa16a(0x182),'sessionId':_0x4fa16a(0x190),'sessionIdDescription':_0x4fa16a(0x19c),'authorizationDescription':_0x4fa16a(0x18b),'configParameters':_0x4fa16a(0x180),'maxRetries':_0x4fa16a(0x1a4),'save':_0x4fa16a(0x196),'saving':_0x4fa16a(0x17e),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4fa16a(0x173),'configSaved':_0x4fa16a(0x179),'configError':_0x4fa16a(0x198),'apiApplyInfo':{'title':_0x4fa16a(0x19e),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x4fa16a(0x193),'getStarted':_0x4fa16a(0x189)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4fa16a(0x19a),'invalidConfig':_0x4fa16a(0x1a6),'invalidApiKey':_0x4fa16a(0x191)},'connectionStatus':{'disconnected':_0x4fa16a(0x195),'connecting':_0x4fa16a(0x1a2),'connected':'Connected','failed':_0x4fa16a(0x17a),'retrying':_0x4fa16a(0x18a)},'connectionError':{'unauthorized':_0x4fa16a(0x17f),'sessionOccupied':_0x4fa16a(0x185),'networkError':_0x4fa16a(0x186),'maxRetriesExceeded':_0x4fa16a(0x17b)}}},n=e;module[_0x4fa16a(0x1a1)]=n;function _0x4e5e(){const _0x172a19=['Enter\x20your\x20API\x20key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','447820VfcaNK','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','496201HNKOnt','exports','Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','7daVRBn','Invalid\x20configuration','MCP\x20Connection\x20Failed','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20Authentication','5663912NujOhq','5060673ORKwTY','1698804JBTgVK','63NXJEpP','Configuration\x20saved\x20successfully','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Unknown\x20Status','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Parameters:','4aVtTgY','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Network\x20Error','MCP\x20Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20configure\x20MCP','Configuration\x20Steps:','Get\x20your\x20API\x20key\x20in\x20seconds','Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','8257765urYHlv','MCP:\x20Unauthorized','MCP\x20Connecting...','3239466EGZaus','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','Save\x20Configuration','API\x20Key','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0x4e5e=function(){return _0x172a19;};return _0x4e5e();}
@@ -1 +1 @@
1
- 'use strict';function _0x290e(){const _0x45b793=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','64743RxfVgG','Click\x20to\x20configure\x20MCP','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Saving...','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','exports','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','615984qqWUSC','Save\x20Configuration','450439vfkbdO','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','306115DlpOFm','Copy\x20the\x20JSON\x20configuration\x20below','680316aqnIbe','MCP:\x20Network\x20Error','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','Configuration\x20saved\x20successfully','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...','API\x20key\x20is\x20required','MCP\x20Disconnected','984inUUET','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','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.','Configuration\x20Steps:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','684086MLRHRD','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1449936buBckJ','Configuration\x20Parameters:','Enable\x20Authentication'];_0x290e=function(){return _0x45b793;};return _0x290e();}const _0x5816ba=_0x397d;(function(_0x2c647e,_0x14d6b4){const _0x371ad8=_0x397d,_0xb078a6=_0x2c647e();while(!![]){try{const _0x5a8552=parseInt(_0x371ad8(0x112))/0x1+parseInt(_0x371ad8(0xfc))/0x2+parseInt(_0x371ad8(0x117))/0x3+parseInt(_0x371ad8(0x110))/0x4+parseInt(_0x371ad8(0x115))/0x5+parseInt(_0x371ad8(0xfe))/0x6+-parseInt(_0x371ad8(0x104))/0x7*(parseInt(_0x371ad8(0xf2))/0x8);if(_0x5a8552===_0x14d6b4)break;else _0xb078a6['push'](_0xb078a6['shift']());}catch(_0x142c53){_0xb078a6['push'](_0xb078a6['shift']());}}}(_0x290e,0x52a46));const e={'mcpStatus':{'disconnected':_0x5816ba(0xf1),'connecting':_0x5816ba(0xec),'connected':_0x5816ba(0x102),'failed':_0x5816ba(0x10c),'retrying':_0x5816ba(0x106),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5816ba(0x103),'networkError':_0x5816ba(0x118),'maxRetriesExceeded':_0x5816ba(0x107),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5816ba(0x105)},'mcpConfig':{'title':_0x5816ba(0xe7),'description':_0x5816ba(0x101),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5816ba(0xf5),'apiKeyHint':_0x5816ba(0xf6),'enableAuth':_0x5816ba(0x100),'enableAuthHint':_0x5816ba(0xed),'connectionInfo':_0x5816ba(0xfb),'mcpClientConfig':_0x5816ba(0xfb),'configInstructions':_0x5816ba(0x10b),'configStepTitle':_0x5816ba(0xf9),'configStep1':_0x5816ba(0x116),'configStep2':_0x5816ba(0x113),'configStep3':_0x5816ba(0xe6),'sessionId':'Session\x20ID','sessionIdDescription':_0x5816ba(0x114),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5816ba(0xff),'maxRetries':'Max\x20Retries','save':_0x5816ba(0x111),'saving':_0x5816ba(0x109),'note1':_0x5816ba(0xfa),'note2':_0x5816ba(0xea),'configSaved':_0x5816ba(0xe8),'configError':_0x5816ba(0xeb),'apiApplyInfo':{'title':_0x5816ba(0xe9),'description':_0x5816ba(0xf8),'univerAiLabel':_0x5816ba(0xf4),'getStarted':_0x5816ba(0x11a)},'validation':{'apiKeyRequired':_0x5816ba(0xf0),'apiKeyTooShort':_0x5816ba(0x10f),'invalidConfig':_0x5816ba(0x10a),'invalidApiKey':_0x5816ba(0xee)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5816ba(0xef),'connected':_0x5816ba(0x119),'failed':'Connection\x20Failed','retrying':_0x5816ba(0xf7)},'connectionError':{'unauthorized':_0x5816ba(0x108),'sessionOccupied':_0x5816ba(0xf3),'networkError':_0x5816ba(0x10e),'maxRetriesExceeded':_0x5816ba(0xfd)}}},n=e;function _0x397d(_0x292e9c,_0x3bc378){const _0x290e9d=_0x290e();return _0x397d=function(_0x397dc5,_0x5dd3ed){_0x397dc5=_0x397dc5-0xe6;let _0x440437=_0x290e9d[_0x397dc5];return _0x440437;},_0x397d(_0x292e9c,_0x3bc378);}module[_0x5816ba(0x10d)]=n;
1
+ 'use strict';function _0x3c6d(_0x4abf64,_0x557a2a){const _0x1693d9=_0x1693();return _0x3c6d=function(_0x3c6d52,_0x15d325){_0x3c6d52=_0x3c6d52-0xda;let _0x341dfd=_0x1693d9[_0x3c6d52];return _0x341dfd;},_0x3c6d(_0x4abf64,_0x557a2a);}function _0x1693(){const _0x38e644=['Saving...','MCP\x20Configuration','Enter\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','505mqisaF','Univer\x20AI\x20Console','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','Invalid\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2411064qZGLNu','21381OCPKsV','Connection\x20Failed','MCP:\x20Unauthorized','10195800oAkiPH','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connecting...','MCP:\x20Network\x20Error','Session\x20ID','Max\x20Retries','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','40852Crpobc','MCP\x20Connected','MCP\x20Disconnected','Save\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','24532200tVFhRZ','1557528wUaigv','Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','MCP\x20Unknown\x20Status','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','186JBHWSD','Failed\x20to\x20save\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.','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1025805PMTNRI','Enable\x20Authentication','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections'];_0x1693=function(){return _0x38e644;};return _0x1693();}const _0xba3c36=_0x3c6d;(function(_0x53305e,_0x57b298){const _0xa8ef9f=_0x3c6d,_0x4e07ce=_0x53305e();while(!![]){try{const _0x4738f5=parseInt(_0xa8ef9f(0xf6))/0x1+-parseInt(_0xa8ef9f(0xf1))/0x2*(-parseInt(_0xa8ef9f(0x109))/0x3)+parseInt(_0xa8ef9f(0xe5))/0x4*(parseInt(_0xa8ef9f(0xfe))/0x5)+-parseInt(_0xa8ef9f(0x108))/0x6+-parseInt(_0xa8ef9f(0xeb))/0x7+parseInt(_0xa8ef9f(0xda))/0x8+-parseInt(_0xa8ef9f(0xea))/0x9;if(_0x4738f5===_0x57b298)break;else _0x4e07ce['push'](_0x4e07ce['shift']());}catch(_0x6b7c0b){_0x4e07ce['push'](_0x4e07ce['shift']());}}}(_0x1693,0x9d568));const e={'mcpStatus':{'disconnected':_0xba3c36(0xe7),'connecting':_0xba3c36(0xde),'connected':_0xba3c36(0xe6),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0xba3c36(0xef),'unauthorized':_0xba3c36(0x10b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xba3c36(0xdf),'maxRetriesExceeded':_0xba3c36(0xdd),'clickToConnect':_0xba3c36(0xfd),'clickToConfigure':_0xba3c36(0x101)},'mcpConfig':{'title':_0xba3c36(0xfb),'description':_0xba3c36(0xed),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xba3c36(0xfc),'apiKeyHint':_0xba3c36(0xf5),'enableAuth':_0xba3c36(0xf7),'enableAuthHint':_0xba3c36(0xf9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xba3c36(0xf8),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xba3c36(0xdc),'configStep2':_0xba3c36(0xe9),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xba3c36(0xe0),'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':_0xba3c36(0xec),'maxRetries':_0xba3c36(0xe1),'save':_0xba3c36(0xe8),'saving':_0xba3c36(0xfa),'note1':_0xba3c36(0x107),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0xba3c36(0xf2),'apiApplyInfo':{'title':_0xba3c36(0xe2),'description':_0xba3c36(0xf3),'univerAiLabel':_0xba3c36(0xff),'getStarted':_0xba3c36(0x103)},'validation':{'apiKeyRequired':_0xba3c36(0xe3),'apiKeyTooShort':_0xba3c36(0x102),'invalidConfig':_0xba3c36(0x105),'invalidApiKey':_0xba3c36(0xe4)},'connectionStatus':{'disconnected':_0xba3c36(0x104),'connecting':'Connecting...','connected':_0xba3c36(0xf4),'failed':_0xba3c36(0x10a),'retrying':_0xba3c36(0xee)},'connectionError':{'unauthorized':_0xba3c36(0x106),'sessionOccupied':_0xba3c36(0xf0),'networkError':_0xba3c36(0xdb),'maxRetriesExceeded':_0xba3c36(0x100)}}},n=e;module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';const _0x220fb3=_0x16ff;(function(_0x52a8b4,_0x33d0e4){const _0x4b063c=_0x16ff,_0x1b7b81=_0x52a8b4();while(!![]){try{const _0x6bb20a=-parseInt(_0x4b063c(0x1a7))/0x1*(parseInt(_0x4b063c(0x1c4))/0x2)+-parseInt(_0x4b063c(0x1bb))/0x3+parseInt(_0x4b063c(0x1aa))/0x4+parseInt(_0x4b063c(0x1b3))/0x5*(-parseInt(_0x4b063c(0x1a6))/0x6)+parseInt(_0x4b063c(0x1b5))/0x7+parseInt(_0x4b063c(0x1bf))/0x8+-parseInt(_0x4b063c(0x1a3))/0x9;if(_0x6bb20a===_0x33d0e4)break;else _0x1b7b81['push'](_0x1b7b81['shift']());}catch(_0x17401c){_0x1b7b81['push'](_0x1b7b81['shift']());}}}(_0x44a3,0x856c8));function _0x16ff(_0x508cd6,_0x5f555d){const _0x44a3b3=_0x44a3();return _0x16ff=function(_0x16ff09,_0x2cda35){_0x16ff09=_0x16ff09-0x19d;let _0x615d7d=_0x44a3b3[_0x16ff09];return _0x615d7d;},_0x16ff(_0x508cd6,_0x5f555d);}const e={'mcpStatus':{'disconnected':_0x220fb3(0x1ae),'connecting':'MCP\x20连接中...','connected':_0x220fb3(0x1bd),'failed':_0x220fb3(0x1c6),'retrying':_0x220fb3(0x1c9),'unknown':'MCP\x20状态未知','unauthorized':_0x220fb3(0x1a4),'sessionOccupied':_0x220fb3(0x1ad),'networkError':_0x220fb3(0x1b2),'maxRetriesExceeded':_0x220fb3(0x1ca),'clickToConnect':_0x220fb3(0x1cc),'clickToConfigure':_0x220fb3(0x1a8)},'mcpConfig':{'title':_0x220fb3(0x19f),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x220fb3(0x1a0),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x220fb3(0x1cd),'mcpClientConfig':_0x220fb3(0x1cd),'configInstructions':_0x220fb3(0x1be),'configStepTitle':'配置步骤:','configStep1':_0x220fb3(0x1ba),'configStep2':_0x220fb3(0x1c2),'configStep3':_0x220fb3(0x1a9),'sessionId':'会话ID','sessionIdDescription':_0x220fb3(0x19d),'authorizationDescription':_0x220fb3(0x1bc),'configParameters':_0x220fb3(0x1c5),'maxRetries':_0x220fb3(0x1b6),'save':_0x220fb3(0x1b4),'saving':_0x220fb3(0x1a5),'note1':_0x220fb3(0x1b1),'note2':_0x220fb3(0x1c8),'configSaved':_0x220fb3(0x1b0),'configError':_0x220fb3(0x1cb),'apiApplyInfo':{'title':_0x220fb3(0x1b8),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x220fb3(0x1c1),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x220fb3(0x1a1),'invalidApiKey':_0x220fb3(0x1a2)},'connectionStatus':{'disconnected':_0x220fb3(0x1af),'connecting':_0x220fb3(0x1c3),'connected':_0x220fb3(0x1b7),'failed':_0x220fb3(0x1c0),'retrying':_0x220fb3(0x1ce)},'connectionError':{'unauthorized':_0x220fb3(0x19e),'sessionOccupied':_0x220fb3(0x1ab),'networkError':_0x220fb3(0x1c7),'maxRetriesExceeded':_0x220fb3(0x1b9)}}};function _0x44a3(){const _0x105f5f=['连接失败','Univer\x20AI\x20控制台','将配置添加到您的\x20MCP\x20客户端设置文件中','连接中...','10DqIQjE','配置参数:','MCP\x20连接失败','网络连接错误,请检查您的网络连接','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20重连中...','MCP:\x20超出最大重试次数','配置保存失败','点击连接\x20MCP','MCP\x20客户端配置','重连中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','权限验证失败,请检查您的\x20API\x20密钥','MCP\x20配置','请输入您的\x20API\x20密钥','配置无效','API\x20密钥无效,请检查密钥是否正确','12655827MrBjeh','MCP:\x20未授权','保存中...','24vsGTyg','75351wGKuEb','点击配置\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','4310752JwpGsD','会话\x20ID\x20已被占用,请稍后再试','exports','MCP:\x20会话\x20ID\x20已被占用','MCP\x20已断开','未连接','配置保存成功','配置更改将立即生效','MCP:\x20网络错误','186395dnLtaV','保存配置','6670433WtQAiF','最大重试次数','已连接','什么是\x20API\x20密钥?','超出最大重试次数,请稍后再试','复制以下\x20JSON\x20配置','481497cLlQQz','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20已连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','4867760mLRzBa'];_0x44a3=function(){return _0x105f5f;};return _0x44a3();}module[_0x220fb3(0x1ac)]=e;
1
+ 'use strict';function _0xe326(_0xf38131,_0x576403){const _0x282300=_0x2823();return _0xe326=function(_0xe326d7,_0x323f4a){_0xe326d7=_0xe326d7-0x87;let _0x1f0d52=_0x282300[_0xe326d7];return _0x1f0d52;},_0xe326(_0xf38131,_0x576403);}const _0x20c363=_0xe326;(function(_0x1beae6,_0x4e338a){const _0x43c266=_0xe326,_0x428d03=_0x1beae6();while(!![]){try{const _0x4626c0=-parseInt(_0x43c266(0x9f))/0x1*(-parseInt(_0x43c266(0xa4))/0x2)+-parseInt(_0x43c266(0x99))/0x3+-parseInt(_0x43c266(0x8d))/0x4+parseInt(_0x43c266(0x8e))/0x5+parseInt(_0x43c266(0xae))/0x6+parseInt(_0x43c266(0x94))/0x7*(parseInt(_0x43c266(0x93))/0x8)+parseInt(_0x43c266(0x9b))/0x9*(parseInt(_0x43c266(0x9e))/0xa);if(_0x4626c0===_0x4e338a)break;else _0x428d03['push'](_0x428d03['shift']());}catch(_0x5e6ebc){_0x428d03['push'](_0x428d03['shift']());}}}(_0x2823,0xce99a));function _0x2823(){const _0xa90af8=['4106799dLJWiV','连接失败','9774tjDMZW','会话ID','最大重试次数','9810bnUZvb','1020467EglcAn','配置保存失败','复制以下\x20JSON\x20配置','Univer\x20AI\x20控制台','exports','2yPAixI','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20客户端配置','您的\x20API\x20密钥安全存储在本地存储中','配置参数:','MCP:\x20会话\x20ID\x20已被占用','MCP\x20连接中...','配置更改将立即生效','保存中...','MCP\x20重连中...','73764dyVuGa','权限验证失败,请检查您的\x20API\x20密钥','配置无效','会话\x20ID\x20已被占用,请稍后再试','API\x20密钥长度至少需要\x2010\x20位','配置保存成功','未连接','点击配置\x20MCP','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20配置','网络连接错误,请检查您的网络连接','重连中...','启用身份验证','MCP\x20已连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','已连接','几秒钟内获取您的\x20API\x20密钥','点击连接\x20MCP','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20未授权','MCP\x20连接失败','5812812OpszqU','2425575VBBeVk','启用身份验证以获得安全连接','什么是\x20API\x20密钥?','配置步骤:','API\x20密钥无效,请检查密钥是否正确','608dacRLY','99946sgUPnI','API\x20密钥不能为空','请输入您的\x20API\x20密钥','MCP:\x20网络错误','MCP\x20状态未知'];_0x2823=function(){return _0xa90af8;};return _0x2823();}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x20c363(0xaa),'connected':_0x20c363(0xbb),'failed':_0x20c363(0x8c),'retrying':_0x20c363(0xad),'unknown':_0x20c363(0x98),'unauthorized':_0x20c363(0x8b),'sessionOccupied':_0x20c363(0xa9),'networkError':_0x20c363(0x97),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x20c363(0x89),'clickToConfigure':_0x20c363(0xb5)},'mcpConfig':{'title':_0x20c363(0xb7),'description':_0x20c363(0xb6),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x20c363(0x96),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x20c363(0xba),'enableAuthHint':_0x20c363(0x8f),'connectionInfo':_0x20c363(0xa6),'mcpClientConfig':_0x20c363(0xa6),'configInstructions':_0x20c363(0xbc),'configStepTitle':_0x20c363(0x91),'configStep1':_0x20c363(0xa1),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x20c363(0xa5),'sessionId':_0x20c363(0x9c),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x20c363(0x8a),'configParameters':_0x20c363(0xa8),'maxRetries':_0x20c363(0x9d),'save':'保存配置','saving':_0x20c363(0xac),'note1':_0x20c363(0xab),'note2':_0x20c363(0xa7),'configSaved':_0x20c363(0xb3),'configError':_0x20c363(0xa0),'apiApplyInfo':{'title':_0x20c363(0x90),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x20c363(0xa2),'getStarted':_0x20c363(0x88)},'validation':{'apiKeyRequired':_0x20c363(0x95),'apiKeyTooShort':_0x20c363(0xb2),'invalidConfig':_0x20c363(0xb0),'invalidApiKey':_0x20c363(0x92)},'connectionStatus':{'disconnected':_0x20c363(0xb4),'connecting':'连接中...','connected':_0x20c363(0x87),'failed':_0x20c363(0x9a),'retrying':_0x20c363(0xb9)},'connectionError':{'unauthorized':_0x20c363(0xaf),'sessionOccupied':_0x20c363(0xb1),'networkError':_0x20c363(0xb8),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0x20c363(0xa3)]=e;
@@ -1 +1 @@
1
- 'use strict';function _0x4e07(){const _0x40027a=['MCP:\x20Unauthorized','What\x20is\x20API\x20Key?','Failed\x20to\x20save\x20configuration','750450Bcnqbe','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Unknown\x20Status','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','4545DceZDj','4233944blSgyc','MCP\x20Connecting...','Invalid\x20configuration','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','735796VGfsBq','Session\x20ID','15DEWQmI','14TlBKCa','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Parameters:','API\x20Key','Save\x20Configuration','Click\x20to\x20configure\x20MCP','Configuration\x20saved\x20successfully','Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Disconnected','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','4841040wKiNdm','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Steps:','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','1899906ONSAVv','1801458JiDWRu','exports','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication'];_0x4e07=function(){return _0x40027a;};return _0x4e07();}const _0x2cc06a=_0xa0ad;function _0xa0ad(_0x423e72,_0x49498c){const _0x4e0702=_0x4e07();return _0xa0ad=function(_0xa0ad9a,_0xd5b30d){_0xa0ad9a=_0xa0ad9a-0x1ad;let _0x5ab8cc=_0x4e0702[_0xa0ad9a];return _0x5ab8cc;},_0xa0ad(_0x423e72,_0x49498c);}(function(_0x4f3ccf,_0x577923){const _0x202995=_0xa0ad,_0x582719=_0x4f3ccf();while(!![]){try{const _0x605abc=parseInt(_0x202995(0x1d9))/0x1+parseInt(_0x202995(0x1b9))/0x2+-parseInt(_0x202995(0x1ba))/0x3+parseInt(_0x202995(0x1b3))/0x4+parseInt(_0x202995(0x1db))/0x5*(-parseInt(_0x202995(0x1c2))/0x6)+-parseInt(_0x202995(0x1dc))/0x7*(parseInt(_0x202995(0x1cd))/0x8)+-parseInt(_0x202995(0x1cc))/0x9;if(_0x605abc===_0x577923)break;else _0x582719['push'](_0x582719['shift']());}catch(_0x370005){_0x582719['push'](_0x582719['shift']());}}}(_0x4e07,0xd247b));const e={'mcpStatus':{'disconnected':_0x2cc06a(0x1b0),'connecting':_0x2cc06a(0x1ce),'connected':_0x2cc06a(0x1b6),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2cc06a(0x1d3),'unknown':_0x2cc06a(0x1c5),'unauthorized':_0x2cc06a(0x1bf),'sessionOccupied':_0x2cc06a(0x1af),'networkError':_0x2cc06a(0x1d6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2cc06a(0x1d4),'clickToConfigure':_0x2cc06a(0x1e1)},'mcpConfig':{'title':_0x2cc06a(0x1b8),'description':_0x2cc06a(0x1b2),'apiKey':_0x2cc06a(0x1df),'apiKeyPlaceholder':_0x2cc06a(0x1d2),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2cc06a(0x1be),'enableAuthHint':_0x2cc06a(0x1bc),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2cc06a(0x1b1),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2cc06a(0x1b5),'configStep1':_0x2cc06a(0x1b4),'configStep2':_0x2cc06a(0x1c7),'configStep3':_0x2cc06a(0x1c3),'sessionId':_0x2cc06a(0x1da),'sessionIdDescription':_0x2cc06a(0x1c4),'authorizationDescription':_0x2cc06a(0x1c6),'configParameters':_0x2cc06a(0x1de),'maxRetries':'Max\x20Retries','save':_0x2cc06a(0x1e0),'saving':_0x2cc06a(0x1d7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2cc06a(0x1c8),'configSaved':_0x2cc06a(0x1ad),'configError':_0x2cc06a(0x1c1),'apiApplyInfo':{'title':_0x2cc06a(0x1c0),'description':_0x2cc06a(0x1cb),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2cc06a(0x1b7)},'validation':{'apiKeyRequired':_0x2cc06a(0x1d5),'apiKeyTooShort':_0x2cc06a(0x1dd),'invalidConfig':_0x2cc06a(0x1cf),'invalidApiKey':_0x2cc06a(0x1d1)},'connectionStatus':{'disconnected':_0x2cc06a(0x1d0),'connecting':'Connecting...','connected':'Connected','failed':_0x2cc06a(0x1ae),'retrying':_0x2cc06a(0x1c9)},'connectionError':{'unauthorized':_0x2cc06a(0x1d8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2cc06a(0x1ca),'maxRetriesExceeded':_0x2cc06a(0x1bd)}}},n=e;module[_0x2cc06a(0x1bb)]=n;
1
+ 'use strict';const _0x3bd8df=_0x381d;(function(_0xb5b534,_0x1219b5){const _0x5df55c=_0x381d,_0x5f5d79=_0xb5b534();while(!![]){try{const _0x6b1105=-parseInt(_0x5df55c(0x12d))/0x1+-parseInt(_0x5df55c(0x159))/0x2*(-parseInt(_0x5df55c(0x14d))/0x3)+-parseInt(_0x5df55c(0x141))/0x4*(parseInt(_0x5df55c(0x14c))/0x5)+-parseInt(_0x5df55c(0x135))/0x6+parseInt(_0x5df55c(0x143))/0x7*(-parseInt(_0x5df55c(0x15b))/0x8)+-parseInt(_0x5df55c(0x152))/0x9*(-parseInt(_0x5df55c(0x148))/0xa)+-parseInt(_0x5df55c(0x131))/0xb*(-parseInt(_0x5df55c(0x134))/0xc);if(_0x6b1105===_0x1219b5)break;else _0x5f5d79['push'](_0x5f5d79['shift']());}catch(_0x2ded5d){_0x5f5d79['push'](_0x5f5d79['shift']());}}}(_0xcdbe,0x68d20));function _0xcdbe(){const _0x2a25e5=['Saving...','Failed\x20to\x20save\x20configuration','16160196EQuRKT','5142816YJlvim','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','Disconnected','exports','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','API\x20Key','Configuration\x20saved\x20successfully','4MkXdMa','MCP\x20Configuration','7LVSKOU','Univer\x20AI\x20Console','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','Max\x20Retries','130vtOHhV','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','3159205CLRjsb','9jbMNFt','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','223011qXWtXt','Save\x20Configuration','MCP\x20Disconnected','What\x20is\x20API\x20Key?','Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','540194Fzlscr','MCP\x20Retrying...','3247560SZXgOb','MCP:\x20Session\x20ID\x20Occupied','Connection\x20Failed','Retrying...','Connecting...','MCP\x20Connection\x20Failed','154835gHhLtC','API\x20key\x20with\x20Bearer\x20prefix.','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','11dGcmDB'];_0xcdbe=function(){return _0x2a25e5;};return _0xcdbe();}function _0x381d(_0x5027c0,_0x1d0b9a){const _0xcdbe99=_0xcdbe();return _0x381d=function(_0x381dc1,_0x4fd7ec){_0x381dc1=_0x381dc1-0x128;let _0x67a3bb=_0xcdbe99[_0x381dc1];return _0x67a3bb;},_0x381d(_0x5027c0,_0x1d0b9a);}const e={'mcpStatus':{'disconnected':_0x3bd8df(0x154),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x3bd8df(0x12c),'retrying':_0x3bd8df(0x15a),'unknown':_0x3bd8df(0x13e),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3bd8df(0x128),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3bd8df(0x13a),'clickToConfigure':_0x3bd8df(0x14a)},'mcpConfig':{'title':_0x3bd8df(0x142),'description':_0x3bd8df(0x157),'apiKey':_0x3bd8df(0x13f),'apiKeyPlaceholder':_0x3bd8df(0x12f),'apiKeyHint':_0x3bd8df(0x14e),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3bd8df(0x146),'connectionInfo':_0x3bd8df(0x149),'mcpClientConfig':_0x3bd8df(0x149),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3bd8df(0x145),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3bd8df(0x137),'configStep3':_0x3bd8df(0x158),'sessionId':'Session\x20ID','sessionIdDescription':_0x3bd8df(0x136),'authorizationDescription':_0x3bd8df(0x12e),'configParameters':_0x3bd8df(0x156),'maxRetries':_0x3bd8df(0x147),'save':_0x3bd8df(0x153),'saving':_0x3bd8df(0x132),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3bd8df(0x13d),'configSaved':_0x3bd8df(0x140),'configError':_0x3bd8df(0x133),'apiApplyInfo':{'title':_0x3bd8df(0x155),'description':_0x3bd8df(0x130),'univerAiLabel':_0x3bd8df(0x144),'getStarted':_0x3bd8df(0x138)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3bd8df(0x150),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3bd8df(0x13b),'connecting':_0x3bd8df(0x12b),'connected':'Connected','failed':_0x3bd8df(0x129),'retrying':_0x3bd8df(0x12a)},'connectionError':{'unauthorized':_0x3bd8df(0x14f),'sessionOccupied':_0x3bd8df(0x151),'networkError':_0x3bd8df(0x14b),'maxRetriesExceeded':_0x3bd8df(0x139)}}},n=e;module[_0x3bd8df(0x13c)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3c9208=_0x2f9c;(function(_0xa6e3c1,_0x14df49){const _0x1d84f2=_0x2f9c,_0x31d45b=_0xa6e3c1();while(!![]){try{const _0x1fcbe4=parseInt(_0x1d84f2(0x198))/0x1*(-parseInt(_0x1d84f2(0x1f8))/0x2)+parseInt(_0x1d84f2(0x2b8))/0x3*(-parseInt(_0x1d84f2(0x26c))/0x4)+parseInt(_0x1d84f2(0x1a9))/0x5+-parseInt(_0x1d84f2(0x26e))/0x6+parseInt(_0x1d84f2(0x1ca))/0x7+parseInt(_0x1d84f2(0x1f0))/0x8+parseInt(_0x1d84f2(0x260))/0x9;if(_0x1fcbe4===_0x14df49)break;else _0x31d45b['push'](_0x31d45b['shift']());}catch(_0x861f11){_0x31d45b['push'](_0x31d45b['shift']());}}}(_0x160a,0x731da));var Pe=Object['defineProperty'],Ee=(_0x49049c,_0x5e78c3,_0x131c0a)=>_0x5e78c3 in _0x49049c?Pe(_0x49049c,_0x5e78c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131c0a}):_0x49049c[_0x5e78c3]=_0x131c0a,x=(_0x4a6a8d,_0xf699f6,_0x47b963)=>Ee(_0x4a6a8d,typeof _0xf699f6!=_0x3c9208(0x2be)?_0xf699f6+'':_0xf699f6,_0x47b963);import{LocaleService as _0x53bf0c,Inject as _0x4bcb75,Injector as _0x57274b,IConfigService as _0x575615,ILocalStorageService as _0x9e998,ILogService as _0xf54f67,Disposable as _0x5cea02,CommandType as _0x1f1a15,ICommandService as _0x3900c0,DependentOn as _0x5862b0,Plugin as _0x5d41e1,merge as _0x211ca7}from'@univerjs/core';import{jsxs as _0x18c759,jsx as _0x462323}from'react/jsx-runtime';function _0x160a(){const _0x492995=['启用身份验证','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.connectionStatus.failed','Copy\x20the\x20JSON\x20configuration\x20below','_initializeMenus','mcpConfig.configStep3','mcpStatus.clickToConfigure','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-mr-2\x20univer-flex\x20univer-text-xl','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.disconnected','error','_initStatusComponent','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcpConfig.configStep2','API\x20密钥无效,请检查密钥是否正确','mcp-ui.command.openConfigPanel','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','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','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','_localeService','univer-text-green-500','1087792KcLYau','url(#$1','_createConfigPanelComponent','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','Connecting...','removeItem','MCP:\x20网络错误','univer-flex-1','82KMibzc','univer-space-y-3','univer-space-y-2','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.sessionOccupied','MCP\x20配置','CheckMarkIcon','defs','mcpConfig.saving','Failed\x20to\x20save\x20configuration','svg','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpStatus.connecting','mcpStatus.unauthorized','API\x20key\x20is\x20required','div','Univer\x20AI\x20控制台','BUTTON','subscribe','MCP\x20Configuration','DISCONNECTED','What\x20is\x20API\x20Key?','MCP:\x20超出最大重试次数','mcpStatus.networkError','API\x20密钥不能为空','Univer\x20AI\x20Console','push','OTHERS','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20Disconnected','univer-bg-blue-500','toString','currentColor','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-size-2\x20univer-rounded-full','mcpConfig.note1','mcpConfig.configStep1','mcpConfig.configParameters','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','show','_commandService','mcpConfig.validation.invalidApiKey','NONE','tag','displayName','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_logService','HelpIcon','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_validateConfig','MenuIcon','MAX_RETRIES_EXCEEDED','translate(.97)','string','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','white','includes','Invalid\x20configuration','mcp.apiKey','mcpConfig.connectionError.sessionOccupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','url(#on-line-icon_clip0_910_349)','none','HEADER_MENU','trim','MCP:\x20会话\x20ID\x20已被占用','UNAUTHORIZED','_handleConfigure','请输入您的\x20API\x20密钥','off-line-icon_clip0_910_343','mcpConfig.note2','_localStorageService','0\x200\x2017\x2016','mcpConfig.connectionError.networkError','保存配置','univer-text-xs\x20univer-text-gray-600','use','mcpConfig.description','univer-min-w-0\x20univer-flex-1','univer-space-y-4','errorMessage','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-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','0\x200\x2016\x2016','_handleConfigSave','on-line-icon_clip0_910_349','http://www.w3.org/2000/svg','univer-bg-gray-500','univer-text-blue-600','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionStatus.disconnected','Configuration\x20Parameters:','check-mark-icon','https://console.univer.plus','path','NETWORK_ERROR','connectionStatus$','idSuffix','mcpConfig.connectionStatus.connected','replace','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','7747677FWhiBo','http','entries','defIds','round','mcpConfig.apiKeyPlaceholder','最大重试次数','_apiKey$','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','colorChannel1','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','COMMAND','276OsrEre','mcpConfig.apiApplyInfo.getStarted','3483312IwZSpo','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','getOwnPropertyDescriptor','fill','univer-flex\x20univer-items-center\x20univer-gap-2','API\x20Key','getConfig','Configuration\x20saved\x20successfully','univer-shrink-0\x20univer-text-red-500','mcpStatus.maxRetriesExceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','SESSION_ID_OCCUPIED','Enter\x20your\x20API\x20key','univer-text-xs\x20univer-text-gray-500','Success','children','保存中...','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20Unknown\x20Status','CONNECTED','univer-flex\x20univer-items-center','_loadStoredApiKey','点击连接\x20MCP','disposeWithMe','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-text-red-500','Connected','mcpConfig.connectionInfo','mcp-config-dialog','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','text','mcpConfig.title','__setCustomHeaders','label','mcpConfig.apiKeyHint','配置\x20MCP\x20使用\x20AI\x20操作电子表格','超出最大重试次数,请稍后再试','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP:\x20Session\x20ID\x20Occupied','MCP\x20连接中...','Error','univer-flex\x20univer-items-start\x20univer-gap-3','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpServerUrl','get','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20Connection\x20Failed','mcpConfig.apiApplyInfo.description','mcpStatus.unknown','univer-flex\x20univer-items-start\x20univer-gap-2','RETRYING','setConfig','univer-flex\x20univer-items-center\x20univer-gap-3','https://console.univer.ai','Saving...','_uiPartsService','univer-bg-red-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','API\x20密钥','配置保存成功','showConfigPanel','univer-bg-green-500','value','_configService','mcpConfig.configStepTitle','subscribeConfigValue$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_menuManagerService','registerComponent','substring','Authorization:','MCP\x20已连接','38673HTAPxn','mcpConfig.sessionIdDescription','on-line-icon','CONNECTING','Save\x20Configuration','_messageService','symbol','xlink:href','配置更改将立即生效','univer-text-yellow-500','Click\x20to\x20connect\x20MCP','apiKey','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','_injector','univer-text-sm\x20univer-font-medium','MCPConfigPanel','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','您的\x20API\x20密钥安全存储在本地存储中','univer-font-medium','_componentManager','off-line-icon','MCP:\x20Network\x20Error','mcpStatus.retrying','_config','univer.ai','button','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univerjs-icon\x20univerjs-icon-','网络连接错误,请检查您的网络连接','mcpConfig.validation.invalidConfig','evenodd','M0\x200H16V16H0z','sessionId$','mcpConfig.connectionError.unauthorized','MCP\x20客户端配置','mask','带有\x20Bearer\x20前缀的\x20API\x20密钥。','showStatus','连接中...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','assign','mcpStatus.failed','MCP\x20Connecting...','什么是\x20API\x20密钥?','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','pre','UniverIcon','CloseIcon','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','enableAutoConnect','权限验证失败,请检查您的\x20API\x20密钥','3424CPCvol','MCP:\x20Unauthorized','_initializeCommands','_initConfigSync','mcpStatus.connected','mcpConfig.save','_loading$','forEach','getCurrentConfig','_initAutoConnect','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','https://mcp.univer.ai/mcp/?univer_session_id=','_mcpCoreConfig$','Enable\x20Authentication','span','Retrying...','Configuration\x20Notes:','1784600JPdusK','random','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','FAILED','MCP\x20Client\x20Configuration','_config$','attrs','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-gray-500','has','clipPath','close-icon','next','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','isValid','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','\x20-\x20','_mcpConnectionController','MCP_UI_PLUGIN','showDeveloperTools','mcpConfig.configError','length','url(#off-line-icon_clip0_910_343)','_connectionController','会话ID','MCP\x20Connected','getItem','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','map','pluginName','connectionError$','5097274gGAKWd','_dialogService','<SESSION_ID>','registerCommand','1em','MCP\x20已断开','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer.plus','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Bearer\x20','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20连接失败','close','OnLineIcon','defineProperty'];_0x160a=function(){return _0x492995;};return _0x160a();}import{MCPConnectionStatus as _0xff81e2,MCPConnectionError as _0x23ba44,MCPConnectionController as _0x14f893,MCP_PLUGIN_CONFIG_KEY as _0x1c72e8,UniverMCPPlugin as _0x245195}from'@univerjs-pro/mcp';import{clsx as _0x5b246f,Input as _0x2186ab,Button as _0x3af2d5,MessageType as _0x6e385b,Tooltip as _0x39918b}from'@univerjs/design';import{useDependency as _0x150436,useObservable as _0x3a8338,IUIPartsService as _0x549fee,IDialogService as _0x4ac42f,IMessageService as _0x419c17,ComponentManager as _0x135d71,connectInjector as _0x5dfb6b,BuiltInUIPart as _0x538232,MenuItemType as _0x247193,RibbonStartGroup as _0xa097e0,IMenuManagerService as _0x54a9fe}from'@univerjs/ui';import{BehaviorSubject as _0x314270}from'rxjs';import{useRef as _0x5d9ae4,createElement as _0x47a95e,forwardRef as _0x192872,useState as _0x2aa459,useCallback as _0x3c10b4}from'react';import{ISocketService as _0x10fe15,WebSocketService as _0x451010}from'@univerjs/network';function b({ref:_0x318aa4,..._0x1361ac}){const _0x447de0=_0x3c9208,{icon:_0x28b8f8,id:_0x1acf63,className:_0x1928f8,extend:_0x9f014c,..._0x53e03d}=_0x1361ac,_0x2e4540=(_0x447de0(0x17f)+_0x1acf63+'\x20'+(_0x1928f8||''))['trim'](),_0x2bfc94=_0x5d9ae4('_'+We());return ae(_0x28b8f8,''+_0x1acf63,{'defIds':_0x28b8f8[_0x447de0(0x263)],'idSuffix':_0x2bfc94['current']},{'ref':_0x318aa4,'className':_0x2e4540,..._0x53e03d},_0x9f014c);}function ae(_0x2b3cb7,_0x424f09,_0x239ba3,_0x48c03e,_0x41fed3){const _0x1bf7e6=_0x3c9208;return _0x47a95e(_0x2b3cb7[_0x1bf7e6(0x223)],{'key':_0x424f09,...Ye(_0x2b3cb7,_0x239ba3,_0x41fed3),..._0x48c03e},(Ze(_0x2b3cb7,_0x239ba3)[_0x1bf7e6(0x27d)]||[])['map']((_0x173c73,_0x3a7d50)=>ae(_0x173c73,_0x424f09+'-'+_0x2b3cb7[_0x1bf7e6(0x223)]+'-'+_0x3a7d50,_0x239ba3,void 0x0,_0x41fed3)));}function Ye(_0x5c2b21,_0x499a2b,_0x21ee4b){const _0x2b6256=_0x3c9208,_0xee4155={..._0x5c2b21['attrs']};_0x21ee4b!=null&&_0x21ee4b[_0x2b6256(0x269)]&&_0xee4155[_0x2b6256(0x271)]===_0x2b6256(0x269)&&(_0xee4155['fill']=_0x21ee4b[_0x2b6256(0x269)]),_0x5c2b21[_0x2b6256(0x223)]===_0x2b6256(0x187)&&_0xee4155['id']&&(_0xee4155['id']=_0xee4155['id']+_0x499a2b[_0x2b6256(0x25b)]),Object['entries'](_0xee4155)[_0x2b6256(0x19f)](([_0x4086a4,_0x5ef665])=>{const _0x4651ba=_0x2b6256;_0x4086a4===_0x4651ba(0x187)&&typeof _0x5ef665=='string'&&(_0xee4155[_0x4086a4]=_0x5ef665[_0x4651ba(0x25d)](/url\(#(.*)\)/,_0x4651ba(0x1f1)+_0x499a2b[_0x4651ba(0x25b)]+')'));});const {defIds:_0x20f9ce}=_0x499a2b;return!_0x20f9ce||_0x20f9ce[_0x2b6256(0x1be)]===0x0||(_0x5c2b21['tag']===_0x2b6256(0x246)&&_0xee4155['xlink:href']&&(_0xee4155[_0x2b6256(0x2bf)]=_0xee4155[_0x2b6256(0x2bf)]+_0x499a2b[_0x2b6256(0x25b)]),Object[_0x2b6256(0x262)](_0xee4155)[_0x2b6256(0x19f)](([_0x149639,_0x38a4fc])=>{const _0x5ee67c=_0x2b6256;typeof _0x38a4fc==_0x5ee67c(0x22e)&&(_0xee4155[_0x149639]=_0x38a4fc['replace'](/url\(#(.*)\)/,'url(#$1'+_0x499a2b['idSuffix']+')'));})),_0xee4155;}function Ze(_0x415b63,_0x71377){const _0x4254d4=_0x3c9208;var _0x27fc12;const {defIds:_0x37344e}=_0x71377;return!_0x37344e||_0x37344e[_0x4254d4(0x1be)]===0x0?_0x415b63:_0x415b63['tag']===_0x4254d4(0x1ff)&&((_0x27fc12=_0x415b63['children'])!=null&&_0x27fc12[_0x4254d4(0x1be)])?{..._0x415b63,'children':_0x415b63[_0x4254d4(0x27d)][_0x4254d4(0x1c7)](_0x16892f=>typeof _0x16892f[_0x4254d4(0x1af)]['id']==_0x4254d4(0x22e)&&_0x37344e&&_0x37344e[_0x4254d4(0x232)](_0x16892f[_0x4254d4(0x1af)]['id'])?{..._0x16892f,'attrs':{..._0x16892f[_0x4254d4(0x1af)],'id':_0x16892f['attrs']['id']+_0x71377[_0x4254d4(0x25b)]}}:_0x16892f)}:_0x415b63;}function We(){const _0x35e869=_0x3c9208;return Math[_0x35e869(0x1aa)]()[_0x35e869(0x217)](0x24)[_0x35e869(0x2b5)](0x2,0x8);}b[_0x3c9208(0x224)]=_0x3c9208(0x193);const qe={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':_0x3c9208(0x238),'viewBox':_0x3c9208(0x24d),'width':_0x3c9208(0x1ce),'height':'1em'},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x218),'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':_0x3c9208(0x182),'clipRule':'evenodd'}}]},le=_0x192872(function(_0x26e006,_0x22b598){const _0x34e4bc=_0x3c9208;return _0x47a95e(b,Object[_0x34e4bc(0x18c)]({},_0x26e006,{'id':_0x34e4bc(0x256),'ref':_0x22b598,'icon':qe}));});le['displayName']=_0x3c9208(0x1fe);const Xe={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x3c9208(0x1ce),'height':_0x3c9208(0x1ce)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x218),'d':_0x3c9208(0x1b6)}}]},ue=_0x192872(function(_0x253d73,_0x4878e0){const _0x2d22d9=_0x3c9208;return _0x47a95e(b,Object[_0x2d22d9(0x18c)]({},_0x253d73,{'id':_0x2d22d9(0x1b4),'ref':_0x4878e0,'icon':Xe}));});ue[_0x3c9208(0x224)]=_0x3c9208(0x194);const Je={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':_0x3c9208(0x238),'viewBox':_0x3c9208(0x24d),'width':_0x3c9208(0x1ce),'height':_0x3c9208(0x1ce)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':'currentColor','d':_0x3c9208(0x1a2)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x3c9208(0x1eb)}},{'tag':_0x3c9208(0x258),'attrs':{'fill':'currentColor','d':_0x3c9208(0x24b),'fillRule':_0x3c9208(0x182),'clipRule':_0x3c9208(0x182)}}]},ve=_0x192872(function(_0x4b53e2,_0x522c22){return _0x47a95e(b,Object['assign']({},_0x4b53e2,{'id':'help-icon','ref':_0x522c22,'icon':Je}));});ve[_0x3c9208(0x224)]=_0x3c9208(0x227);const Qe={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':_0x3c9208(0x238),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3c9208(0x1ce)},'children':[{'tag':'g','attrs':{'clipPath':_0x3c9208(0x1bf)},'children':[{'tag':'path','attrs':{'stroke':_0x3c9208(0x218),'d':_0x3c9208(0x1ab),'strokeLinecap':_0x3c9208(0x264),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3c9208(0x1ff),'attrs':{},'children':[{'tag':_0x3c9208(0x1b3),'attrs':{'id':_0x3c9208(0x23f)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x231),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3c9208(0x23f)]},de=_0x192872(function(_0x1ff062,_0x3df4a6){const _0xe660ae=_0x3c9208;return _0x47a95e(b,Object['assign']({},_0x1ff062,{'id':_0xe660ae(0x178),'ref':_0x3df4a6,'icon':Qe}));});de[_0x3c9208(0x224)]='OffLineIcon';const en={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':'none','viewBox':_0x3c9208(0x242),'width':'1em','height':_0x3c9208(0x1ce)},'children':[{'tag':'g','attrs':{'clipPath':_0x3c9208(0x237)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'stroke':'currentColor','d':_0x3c9208(0x22f),'strokeLinecap':_0x3c9208(0x264),'strokeLinejoin':_0x3c9208(0x264),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3c9208(0x1b3),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x231),'d':_0x3c9208(0x183),'transform':_0x3c9208(0x22d)}}]}]}],'defIds':[_0x3c9208(0x24f)]},ge=_0x192872(function(_0x123242,_0xaf2b26){const _0x550cd1=_0x3c9208;return _0x47a95e(b,Object['assign']({},_0x123242,{'id':_0x550cd1(0x2ba),'ref':_0xaf2b26,'icon':en}));});ge[_0x3c9208(0x224)]=_0x3c9208(0x1d7);function nn(_0x4104e8){const _0x34f9f9=_0x3c9208;var _0x1462e4,_0x33d4f8;const {mcpCoreConfig:_0x4cab80,onSave:_0x273255,loading:_0x347ad0=!0x1,config:_0x2ebe3f,connectionStatus$:_0x2edf61,connectionError$:_0x4f07dc,currentApiKey$:_0x2711fb,currentSessionId$:_0x48f859}=_0x4104e8,_0x46c3f1=_0x150436(_0x53bf0c),_0x57012e=_0x3a8338(_0x2edf61,_0xff81e2[_0x34f9f9(0x20c)]),_0x478594=_0x3a8338(_0x4f07dc,_0x23ba44[_0x34f9f9(0x222)]),_0x43c5c6=_0x3a8338(_0x48f859,''),_0x452b15=_0x3a8338(_0x2711fb,''),[_0x32d163,_0x467e6d]=_0x2aa459(_0x452b15||''),_0x5bbad0=!0x0,_0x549b25=_0x2ebe3f['showDeveloperTools']&&_0x4cab80[_0x34f9f9(0x29a)]&&(_0x4cab80['mcpServerUrl'][_0x34f9f9(0x232)](_0x34f9f9(0x1d1))||_0x4cab80[_0x34f9f9(0x29a)][_0x34f9f9(0x232)](_0x34f9f9(0x17c))),_0x21b88d=(_0x1462e4=_0x4cab80[_0x34f9f9(0x29a)])==null?void 0x0:_0x1462e4[_0x34f9f9(0x232)]('univer.plus'),_0x2cfdf5=(_0x33d4f8=_0x4cab80[_0x34f9f9(0x29a)])==null?void 0x0:_0x33d4f8[_0x34f9f9(0x232)](_0x34f9f9(0x17c)),_0x3bba40=_0x21b88d?_0x34f9f9(0x257):_0x34f9f9(0x2a4),_0x19bf87=_0x2ebe3f[_0x34f9f9(0x1bc)]&&(_0x21b88d||_0x2cfdf5),[_0x532342,_0x532437]=_0x2aa459(!_0x32d163['trim']()),_0x33febd=(_0x5b4f35,_0x2163d7)=>{const _0x1fefa3=_0x34f9f9;if(_0x2163d7===_0x23ba44['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5b4f35){case _0xff81e2['CONNECTED']:return _0x1fefa3(0x225);case _0xff81e2[_0x1fefa3(0x2bb)]:case _0xff81e2[_0x1fefa3(0x2a1)]:return _0x1fefa3(0x27f);case _0xff81e2[_0x1fefa3(0x1ac)]:return _0x1fefa3(0x214);default:return _0x1fefa3(0x2a8);}},_0x5eed14=(_0x5aa91a,_0x15e727)=>{const _0x393245=_0x34f9f9;if(_0x15e727===_0x23ba44[_0x393245(0x23c)])return _0x393245(0x2a7);switch(_0x5aa91a){case _0xff81e2[_0x393245(0x281)]:return _0x393245(0x2ad);case _0xff81e2[_0x393245(0x2bb)]:case _0xff81e2['RETRYING']:return _0x393245(0x216);case _0xff81e2[_0x393245(0x1ac)]:return'univer-bg-red-500';default:return _0x393245(0x251);}},_0x507aca=_0x18f379=>{const _0x127201=_0x34f9f9;switch(_0x18f379){case _0xff81e2[_0x127201(0x281)]:return _0x46c3f1['t'](_0x127201(0x25c));case _0xff81e2[_0x127201(0x2bb)]:return _0x46c3f1['t']('mcpConfig.connectionStatus.connecting');case _0xff81e2['FAILED']:return _0x46c3f1['t'](_0x127201(0x1db));case _0xff81e2[_0x127201(0x2a1)]:return _0x46c3f1['t']('mcpConfig.connectionStatus.retrying');default:return _0x46c3f1['t'](_0x127201(0x254));}},_0x4a7515=_0x37df40=>{const _0x1ac2cb=_0x34f9f9;switch(_0x37df40){case _0x23ba44[_0x1ac2cb(0x23c)]:return _0x46c3f1['t'](_0x1ac2cb(0x185));case _0x23ba44[_0x1ac2cb(0x279)]:return _0x46c3f1['t'](_0x1ac2cb(0x235));case _0x23ba44[_0x1ac2cb(0x259)]:return _0x46c3f1['t'](_0x1ac2cb(0x243));case _0x23ba44[_0x1ac2cb(0x22c)]:return _0x46c3f1['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x473305=_0x3c10b4(()=>{const _0x38131b=_0x34f9f9,_0x5f10db={..._0x4cab80,'apiKey':_0x32d163[_0x38131b(0x23a)](),'enableAuth':_0x5bbad0};_0x273255(_0x5f10db);},[_0x4cab80,_0x32d163,_0x5bbad0,_0x273255]),_0x4534e6=_0x32d163[_0x34f9f9(0x23a)]()[_0x34f9f9(0x1be)]>0x0;return _0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1c6),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x203),'children':_0x18c759('div',{'className':_0x34f9f9(0x2a3),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x219),'children':_0x462323(_0x34f9f9(0x1a6),{'className':'univer-text-white','children':'⚙'})}),_0x462323(_0x34f9f9(0x207),{'children':_0x462323('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x46c3f1['t'](_0x34f9f9(0x247))})})]})}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1f3),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x5b246f(_0x34f9f9(0x26f),_0x33febd(_0x57012e,_0x478594)),'children':_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x272),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x5b246f(_0x34f9f9(0x21a),_0x5eed14(_0x57012e,_0x478594))}),_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x172),'children':_0x507aca(_0x57012e)})]})}),_0x478594!==_0x23ba44[_0x34f9f9(0x222)]&&(_0x57012e===_0xff81e2[_0x34f9f9(0x1ac)]||_0x478594===_0x23ba44[_0x34f9f9(0x23c)])&&_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x228),'children':_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2a0),'children':[_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x276),'children':'⚠️'}),_0x462323('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x4a7515(_0x478594)})]})})]}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x21e),'children':_0x18c759(_0x34f9f9(0x207),{'className':'univer-space-y-5','children':[_0x18c759(_0x34f9f9(0x207),{'className':'univer-space-y-2','children':[_0x18c759(_0x34f9f9(0x290),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'🔑'}),'\x20',_0x46c3f1['t']('mcpConfig.apiKey'),_0x462323(_0x34f9f9(0x1a6),{'className':'univer-text-red-500','children':'*'}),_0x549b25&&_0x462323('a',{'className':_0x34f9f9(0x170),'title':_0x46c3f1['t'](_0x34f9f9(0x1c5)),'role':_0x34f9f9(0x17d),'onClick':()=>_0x532437(!0x0),'children':_0x462323(ve,{})})]}),_0x462323(_0x2186ab,{'type':_0x34f9f9(0x28d),'placeholder':_0x46c3f1['t'](_0x34f9f9(0x265)),'value':_0x32d163,'disabled':_0x347ad0,'autoComplete':'off','onChange':_0x467e6d}),_0x462323('p',{'className':_0x34f9f9(0x27b),'children':_0x46c3f1['t'](_0x34f9f9(0x291))})]}),_0x549b25&&_0x532342&&_0x18c759('div',{'className':_0x34f9f9(0x24c),'children':[_0x462323('a',{'className':_0x34f9f9(0x1e0),'role':_0x34f9f9(0x17d),'onClick':()=>_0x532437(!0x1),'children':_0x462323(ue,{'className':'univer-size-4'})}),_0x18c759('div',{'className':_0x34f9f9(0x268),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x28c),'children':_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x252),'children':'🚀'})}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1f7),'children':[_0x462323('h4',{'className':_0x34f9f9(0x253),'children':_0x46c3f1['t'](_0x34f9f9(0x1c5))}),_0x462323('p',{'className':_0x34f9f9(0x17e),'children':_0x46c3f1['t'](_0x34f9f9(0x29e))}),_0x462323(_0x34f9f9(0x207),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x19bf87&&_0x18c759('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x3bba40,'target':'_blank','rel':'noopener\x20noreferrer','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'🤖'}),_0x46c3f1['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x462323(_0x34f9f9(0x1a6),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x18c759(_0x34f9f9(0x207),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x46c3f1['t'](_0x34f9f9(0x26d))]})]})]})]}),_0x2ebe3f[_0x34f9f9(0x1bc)]&&_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x286),'children':[_0x18c759('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'🔗'}),'\x20',_0x46c3f1['t'](_0x34f9f9(0x28a))]}),_0x18c759('div',{'className':_0x34f9f9(0x249),'children':[_0x18c759('div',{'className':_0x34f9f9(0x1f9),'children':[_0x462323('p',{'className':_0x34f9f9(0x245),'children':_0x46c3f1['t']('mcpConfig.configInstructions')}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1fa),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2b2),'children':_0x46c3f1['t'](_0x34f9f9(0x2b0))}),_0x18c759('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x18c759('div',{'className':_0x34f9f9(0x272),'children':[_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x1e6),'children':'1'}),_0x46c3f1['t'](_0x34f9f9(0x21c))]}),_0x18c759('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x462323('span',{'className':_0x34f9f9(0x1e6),'children':'2'}),_0x46c3f1['t'](_0x34f9f9(0x1e7))]}),_0x18c759(_0x34f9f9(0x207),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x1e6),'children':'3'}),_0x46c3f1['t'](_0x34f9f9(0x1de))]})]})]})]}),_0x18c759('div',{'className':_0x34f9f9(0x1fa),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2b2),'children':_0x34f9f9(0x20b)}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1b8),'children':_0x462323(_0x34f9f9(0x192),{'className':_0x34f9f9(0x1ea),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x34f9f9(0x1a3)+(_0x43c5c6||_0x34f9f9(0x1cc)),'type':_0x34f9f9(0x261),'headers':{'Authorization':_0x34f9f9(0x1d3)+(_0x32d163||'<API_KEY>')}}}},null,0x2)})})]}),_0x18c759('div',{'className':_0x34f9f9(0x1f9),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2b2),'children':_0x46c3f1['t'](_0x34f9f9(0x21d))}),_0x18c759('div',{'className':_0x34f9f9(0x1fa),'children':[_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x298),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x25f)}),_0x18c759('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x462323('div',{'className':_0x34f9f9(0x229),'children':'univer_session_id:'}),_0x462323('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x46c3f1['t'](_0x34f9f9(0x2b9))})]})]}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x298),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x25f)}),_0x18c759('div',{'className':_0x34f9f9(0x248),'children':[_0x462323(_0x34f9f9(0x207),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x34f9f9(0x2b6)}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x27b),'children':_0x46c3f1['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x462323(_0x3af2d5,{'onClick':_0x473305,'disabled':!_0x4534e6||_0x347ad0,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x347ad0?_0x18c759(_0x34f9f9(0x1a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'⟲'}),_0x46c3f1['t'](_0x34f9f9(0x200))]}):_0x18c759('span',{'className':_0x34f9f9(0x272),'children':[_0x462323(le,{}),_0x46c3f1['t'](_0x34f9f9(0x19d))]})}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x294),'children':_0x18c759('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x462323(_0x34f9f9(0x1a6),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1d2),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x176),'children':_0x34f9f9(0x1a8)}),_0x18c759(_0x34f9f9(0x207),{'children':['•',_0x46c3f1['t'](_0x34f9f9(0x21b))]}),_0x18c759('div',{'children':['•',_0x46c3f1['t'](_0x34f9f9(0x240))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x3c9208(0x270)],tn=(_0x21ec20,_0x4c4a53,_0x52230c,_0x1795c1)=>{const _0x597bb3=_0x3c9208;for(var _0x587d30=_0x1795c1>0x1?void 0x0:_0x1795c1?rn(_0x4c4a53,_0x52230c):_0x4c4a53,_0x55e87a=_0x21ec20[_0x597bb3(0x1be)]-0x1,_0x247656;_0x55e87a>=0x0;_0x55e87a--)(_0x247656=_0x21ec20[_0x55e87a])&&(_0x587d30=_0x247656(_0x587d30)||_0x587d30);return _0x587d30;},d=(_0x4102ae,_0xce7d00)=>(_0x555a80,_0x2c8fd1)=>_0xce7d00(_0x555a80,_0x2c8fd1,_0x4102ae);const U=_0x3c9208(0x234),L=_0x3c9208(0x28b);let I=class extends _0x5cea02{constructor(_0x1fd1ee,_0x435ed2,_0x10f658,_0x521257,_0x5cad00,_0x327fc2,_0x3b4d3e,_0x322acd,_0x192a16,_0x177abe){const _0x705b77=_0x3c9208;super(),x(this,_0x705b77(0x19e),new _0x314270(!0x1)),x(this,_0x705b77(0x1a4),new _0x314270({})),x(this,_0x705b77(0x1ae),new _0x314270({})),x(this,_0x705b77(0x267),new _0x314270('')),x(this,_0x705b77(0x24e),async _0x2ee118=>{const _0x22a8f2=_0x705b77;var _0x4a72d4,_0x26f79a;this[_0x22a8f2(0x19e)]['next'](!0x0);try{const _0x3e1656=await this[_0x22a8f2(0x22a)](_0x2ee118);if(!_0x3e1656[_0x22a8f2(0x1b7)]){this['_messageService'][_0x22a8f2(0x21f)]({'type':_0x6e385b[_0x22a8f2(0x297)],'content':_0x3e1656[_0x22a8f2(0x24a)]||this[_0x22a8f2(0x1ee)]['t'](_0x22a8f2(0x181))});return;}_0x2ee118[_0x22a8f2(0x16f)]?await this['_localStorageService']['setItem'](U,_0x2ee118[_0x22a8f2(0x16f)]['trim']()):await this['_localStorageService'][_0x22a8f2(0x1f5)](U),this[_0x22a8f2(0x267)][_0x22a8f2(0x1b5)](((_0x4a72d4=_0x2ee118[_0x22a8f2(0x16f)])==null?void 0x0:_0x4a72d4[_0x22a8f2(0x23a)]())||''),this[_0x22a8f2(0x1ba)][_0x22a8f2(0x28f)]({'Authorization':_0x22a8f2(0x1d3)+((_0x26f79a=_0x2ee118[_0x22a8f2(0x16f)])==null?void 0x0:_0x26f79a[_0x22a8f2(0x23a)]())}),this[_0x22a8f2(0x2bd)][_0x22a8f2(0x21f)]({'type':_0x6e385b[_0x22a8f2(0x27c)],'content':this[_0x22a8f2(0x1ee)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x529248=_0x22a8f2;this[_0x529248(0x1cb)][_0x529248(0x1d6)](L);},0x320);}catch(_0x1123c3){this[_0x22a8f2(0x226)][_0x22a8f2(0x1e4)](_0x22a8f2(0x2a9),_0x1123c3),this[_0x22a8f2(0x2bd)]['show']({'type':_0x6e385b[_0x22a8f2(0x297)],'content':this[_0x22a8f2(0x1ee)]['t'](_0x22a8f2(0x1bd))});}finally{this[_0x22a8f2(0x19e)][_0x22a8f2(0x1b5)](!0x1);}}),(this[_0x705b77(0x171)]=_0x1fd1ee,this['_uiPartsService']=_0x435ed2,this[_0x705b77(0x2af)]=_0x10f658,this[_0x705b77(0x241)]=_0x521257,this[_0x705b77(0x1cb)]=_0x5cad00,this[_0x705b77(0x2bd)]=_0x327fc2,this[_0x705b77(0x177)]=_0x3b4d3e,this[_0x705b77(0x1ee)]=_0x322acd,this['_logService']=_0x192a16,this[_0x705b77(0x1ba)]=_0x177abe,this[_0x705b77(0x19b)](),this[_0x705b77(0x283)](),this['_registerComponent']());}[_0x3c9208(0x2ac)](){const _0x442d97=_0x3c9208,_0xc0b624=this['_configService']['getConfig'](y);_0xc0b624!=null&&_0xc0b624['showDeveloperTools']&&this[_0x442d97(0x1cb)]['open']({'id':L,'title':{'title':this[_0x442d97(0x1ee)]['t'](_0x442d97(0x28e))},'children':{'label':_0x442d97(0x173)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3c4907=_0x442d97;this[_0x3c4907(0x1cb)][_0x3c4907(0x1d6)](L);}});}[_0x3c9208(0x1a0)](){const _0x1e2422=_0x3c9208;return this[_0x1e2422(0x1a4)][_0x1e2422(0x2ae)];}['_registerComponent'](){const _0x4a5bc0=_0x3c9208;this[_0x4a5bc0(0x285)](this[_0x4a5bc0(0x177)]['register'](_0x4a5bc0(0x173),this['_createConfigPanelComponent']()));}[_0x3c9208(0x1f2)](){const _0x94de7d=_0x3c9208;return _0x5dfb6b(()=>{const _0x4b6688=_0x2f9c;var _0x2ac3a4,_0x509bcb,_0x57bcf7;return _0x462323(nn,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x4b6688(0x1a4)][_0x4b6688(0x2ae)],'currentApiKey$':this[_0x4b6688(0x267)],'onSave':this[_0x4b6688(0x24e)],'loading':this['_loading$']['value'],'connectionStatus$':(_0x2ac3a4=this[_0x4b6688(0x1ba)])==null?void 0x0:_0x2ac3a4[_0x4b6688(0x25a)],'connectionError$':(_0x509bcb=this[_0x4b6688(0x1ba)])==null?void 0x0:_0x509bcb[_0x4b6688(0x1c9)],'currentSessionId$':(_0x57bcf7=this[_0x4b6688(0x1ba)])==null?void 0x0:_0x57bcf7[_0x4b6688(0x184)]});},this[_0x94de7d(0x171)]);}[_0x3c9208(0x19b)](){const _0x43945a=_0x3c9208;this[_0x43945a(0x285)](this[_0x43945a(0x2af)][_0x43945a(0x2b1)](_0x1c72e8)[_0x43945a(0x20a)](_0x3a678c=>{const _0x26f858=_0x43945a;this[_0x26f858(0x1a4)][_0x26f858(0x1b5)](_0x3a678c||{});}));const _0x3c475c=this[_0x43945a(0x2af)][_0x43945a(0x274)](_0x1c72e8);this[_0x43945a(0x1a4)][_0x43945a(0x1b5)](_0x3c475c||{}),this[_0x43945a(0x285)](this[_0x43945a(0x2af)][_0x43945a(0x2b1)](y)[_0x43945a(0x20a)](_0x4caffc=>{const _0x23ca5a=_0x43945a;this[_0x23ca5a(0x1ae)]['next'](_0x4caffc||{});}));const _0x501f07=this[_0x43945a(0x2af)]['getConfig'](y);this['_config$'][_0x43945a(0x1b5)](_0x501f07||{});}async[_0x3c9208(0x283)](){const _0x240f03=_0x3c9208,_0x569c35=this[_0x240f03(0x2af)]['getConfig'](y);if(!(_0x569c35!=null&&_0x569c35[_0x240f03(0x1bc)]))return;const _0x6fefb2=await this[_0x240f03(0x241)][_0x240f03(0x1c3)](U);_0x6fefb2&&(this[_0x240f03(0x1ba)][_0x240f03(0x28f)]({'Authorization':_0x240f03(0x1d3)+_0x6fefb2}),this[_0x240f03(0x267)]['next'](_0x6fefb2));}async[_0x3c9208(0x22a)](_0x40f6f1){const _0x42e328=_0x3c9208;if(!_0x40f6f1[_0x42e328(0x16f)]||_0x40f6f1[_0x42e328(0x16f)]['trim']()[_0x42e328(0x1be)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x42e328(0x1ee)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x40f6f1['apiKey'][_0x42e328(0x23a)]()[_0x42e328(0x1be)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x42e328(0x1ee)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x1bc997=await this[_0x42e328(0x171)][_0x42e328(0x29b)](_0x14f893)['validateApiKey'](_0x40f6f1[_0x42e328(0x16f)][_0x42e328(0x23a)]());return _0x1bc997[_0x42e328(0x1b7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1bc997[_0x42e328(0x1e4)]||this[_0x42e328(0x1ee)]['t'](_0x42e328(0x221))};}catch(_0x172eab){return console['warn'](_0x42e328(0x287),_0x172eab),{'isValid':!0x0};}}};I=tn([d(0x0,_0x4bcb75(_0x57274b)),d(0x1,_0x549fee),d(0x2,_0x575615),d(0x3,_0x9e998),d(0x4,_0x4ac42f),d(0x5,_0x419c17),d(0x6,_0x4bcb75(_0x135d71)),d(0x7,_0x4bcb75(_0x53bf0c)),d(0x8,_0xf54f67),d(0x9,_0x4bcb75(_0x14f893))],I);const V={'id':_0x3c9208(0x1e9),'type':_0x1f1a15[_0x3c9208(0x26b)],'handler':async(_0x237251,_0x35b3d3)=>(_0x237251[_0x3c9208(0x29b)](I)[_0x3c9208(0x2ac)](),!0x0)};function pe(_0x32d73b,_0x3ad4ee){const _0x201f49=_0x3c9208;switch(_0x32d73b){case _0xff81e2[_0x201f49(0x20c)]:return _0x201f49(0x1e3);case _0xff81e2['CONNECTING']:return _0x201f49(0x204);case _0xff81e2['CONNECTED']:return _0x201f49(0x19c);case _0xff81e2[_0x201f49(0x1ac)]:switch(_0x3ad4ee){case _0x23ba44[_0x201f49(0x23c)]:return _0x201f49(0x205);case _0x23ba44[_0x201f49(0x279)]:return _0x201f49(0x1fc);case _0x23ba44[_0x201f49(0x259)]:return _0x201f49(0x20f);case _0x23ba44[_0x201f49(0x22c)]:return _0x201f49(0x277);default:return _0x201f49(0x18d);}case _0xff81e2['RETRYING']:return _0x201f49(0x17a);default:return _0x201f49(0x29f);}}function on(_0x20410b,_0x126301,_0x4f1d92,_0x38f18f=!0x0){const _0x30db2c=_0x3c9208,_0x4c4324=pe(_0x20410b,_0x126301),_0xb4c857=_0x4f1d92['t'](_0x4c4324);return _0x38f18f?_0x20410b===_0xff81e2[_0x30db2c(0x20c)]&&_0x126301===_0x23ba44[_0x30db2c(0x23c)]?_0xb4c857+'\x20-\x20'+_0x4f1d92['t'](_0x30db2c(0x1df)):_0x20410b===_0xff81e2[_0x30db2c(0x281)]?''+_0xb4c857:_0x20410b===_0xff81e2['DISCONNECTED']||_0x20410b===_0xff81e2[_0x30db2c(0x1ac)]?_0xb4c857+_0x30db2c(0x1b9)+_0x4f1d92['t']('mcpStatus.clickToConnect'):_0xb4c857:_0xb4c857;}function sn(_0xa2d2c){const _0x2378cd=_0x3c9208;switch(_0xa2d2c){case _0xff81e2['CONNECTED']:return _0x2378cd(0x1ef);case _0xff81e2['CONNECTING']:case _0xff81e2[_0x2378cd(0x2a1)]:return _0x2378cd(0x2c1);case _0xff81e2[_0x2378cd(0x1ac)]:case _0xff81e2[_0x2378cd(0x20c)]:return _0x2378cd(0x288);default:return _0x2378cd(0x1b1);}}function _0x2f9c(_0x22124f,_0x135566){const _0x160a21=_0x160a();return _0x2f9c=function(_0x2f9cd8,_0x10278d){_0x2f9cd8=_0x2f9cd8-0x16f;let _0x558cbd=_0x160a21[_0x2f9cd8];return _0x558cbd;},_0x2f9c(_0x22124f,_0x135566);}function cn(_0x1671b7){const _0x326fc9=_0x3c9208,{status$:_0x4784a8,error$:_0x277b43,onConfigure:_0x44bc9d,showClickable:_0x528c65=!0x0}=_0x1671b7,_0x2b2426=_0x3a8338(_0x4784a8,_0xff81e2['DISCONNECTED']),_0x1ec468=_0x3a8338(_0x277b43,_0x23ba44[_0x326fc9(0x222)]),_0x5304e7=_0x150436(_0x53bf0c),_0x3fdaca=_0x2b2426===_0xff81e2[_0x326fc9(0x281)];_0x2b2426===_0xff81e2[_0x326fc9(0x2bb)]||_0xff81e2[_0x326fc9(0x2a1)];const _0x1b90c6=_0x5304e7['t'](pe(_0x2b2426,_0x1ec468)),_0x3cb573=on(_0x2b2426,_0x1ec468,_0x5304e7,_0x528c65),_0x2302ae=sn(_0x2b2426),_0x1b69f7=_0x3fdaca?_0x462323(ge,{}):_0x462323(de,{}),_0x1076bd=_0x3c10b4(()=>{_0x528c65&&_0x44bc9d&&_0x44bc9d();},[_0x528c65,_0x44bc9d]);function _0x532de6(){const _0x35234b=_0x326fc9;return _0x18c759('div',{'className':_0x5b246f(_0x35234b(0x282),_0x528c65&&_0x44bc9d&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x35234b(0x17d),'onClick':_0x528c65&&_0x44bc9d?_0x1076bd:void 0x0,'children':[_0x462323(_0x35234b(0x207),{'className':_0x5b246f(_0x35234b(0x1e1),_0x2302ae),'children':_0x1b69f7}),_0x462323(_0x35234b(0x207),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1b90c6})]});}return _0x462323(_0x39918b,{'title':_0x3cb573,'placement':'bottom','children':_0x532de6()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x2d8921,_0xb30912,_0x5c761d,_0x24d9ed)=>{const _0x55719e=_0x3c9208;for(var _0x11a47d=_0x24d9ed>0x1?void 0x0:_0x24d9ed?an(_0xb30912,_0x5c761d):_0xb30912,_0x52ebb4=_0x2d8921[_0x55719e(0x1be)]-0x1,_0x5c5bcf;_0x52ebb4>=0x0;_0x52ebb4--)(_0x5c5bcf=_0x2d8921[_0x52ebb4])&&(_0x11a47d=_0x5c5bcf(_0x11a47d)||_0x11a47d);return _0x11a47d;},M=(_0x5a1196,_0x5353dc)=>(_0x5ed73d,_0x551887)=>_0x5353dc(_0x5ed73d,_0x551887,_0x5a1196);let O=class extends _0x5cea02{constructor(_0x15dd1d,_0x3f0f2a,_0x3a622b,_0x43e862){const _0x5089c8=_0x3c9208;super(),this['_injector']=_0x15dd1d,this[_0x5089c8(0x1c0)]=_0x3f0f2a,this['_uiPartsService']=_0x3a622b,this[_0x5089c8(0x2af)]=_0x43e862,this[_0x5089c8(0x1a1)](),this[_0x5089c8(0x1e5)]();}['_initAutoConnect'](){const _0x3c24e3=_0x3c9208,_0x3dd84c=this[_0x3c24e3(0x2af)][_0x3c24e3(0x274)](y);_0x3dd84c!=null&&_0x3dd84c[_0x3c24e3(0x1bc)]&&(this[_0x3c24e3(0x1c0)][_0x3c24e3(0x196)]=!0x1);}[_0x3c9208(0x1e5)](){const _0x3ff391=_0x3c9208,_0x99b1c0=this[_0x3ff391(0x2af)][_0x3ff391(0x274)](y);(_0x99b1c0==null?void 0x0:_0x99b1c0[_0x3ff391(0x189)])!==!0x1&&this[_0x3ff391(0x285)](this[_0x3ff391(0x2a6)][_0x3ff391(0x2b4)](_0x538232[_0x3ff391(0x239)],()=>{const _0x38ec52=_0x3ff391;var _0x372b29;return _0x5dfb6b(un({'status$':this[_0x38ec52(0x1c0)][_0x38ec52(0x25a)],'error$':this[_0x38ec52(0x1c0)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x372b29=_0x99b1c0==null?void 0x0:_0x99b1c0[_0x38ec52(0x1bc)])!=null?_0x372b29:!0x1}),this[_0x38ec52(0x171)]);}));}[_0x3c9208(0x23d)](){const _0x537cb8=_0x3c9208;this[_0x537cb8(0x171)][_0x537cb8(0x29b)](I)[_0x537cb8(0x2ac)]();}};O=ln([M(0x0,_0x4bcb75(_0x57274b)),M(0x1,_0x4bcb75(_0x14f893)),M(0x2,_0x549fee),M(0x3,_0x575615)],O);function un(_0x2ebe8e){const {status$:_0x3508fa,error$:_0xf0ada5,onConfigure:_0x4d0690,showClickable:_0x1a9616}=_0x2ebe8e;return function(){return _0x462323(cn,{'status$':_0x3508fa,'error$':_0xf0ada5,'onConfigure':_0x4d0690,'showClickable':_0x1a9616});};}function vn(_0x525a53){const _0x22518d=_0x3c9208;return{'id':V['id'],'type':_0x247193[_0x22518d(0x209)],'icon':_0x22518d(0x22b),'title':'mcpConfig.title','tooltip':_0x22518d(0x28e)};}const dn={[_0xa097e0[_0x3c9208(0x213)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x3c9208(0x270)],pn=(_0x1912fc,_0x311426,_0x53c4f3,_0x4b8a14)=>{const _0x4b2993=_0x3c9208;for(var _0x4864d6=_0x4b8a14>0x1?void 0x0:_0x4b8a14?gn(_0x311426,_0x53c4f3):_0x311426,_0x24440a=_0x1912fc[_0x4b2993(0x1be)]-0x1,_0x4a1236;_0x24440a>=0x0;_0x24440a--)(_0x4a1236=_0x1912fc[_0x24440a])&&(_0x4864d6=_0x4a1236(_0x4864d6)||_0x4864d6);return _0x4864d6;},re=(_0xed6746,_0x55753b)=>(_0x43ad41,_0x47fb35)=>_0x55753b(_0x43ad41,_0x47fb35,_0xed6746);let D=class extends _0x5cea02{constructor(_0x448b86,_0x22854b){const _0x56e1da=_0x3c9208;super(),this[_0x56e1da(0x220)]=_0x448b86,this[_0x56e1da(0x2b3)]=_0x22854b,this['_initializeCommands'](),this['_initializeMenus']();}[_0x3c9208(0x19a)](){[V]['forEach'](_0x2cf4a0=>{const _0x30a38e=_0x2f9c;this[_0x30a38e(0x285)](this[_0x30a38e(0x220)][_0x30a38e(0x1cd)](_0x2cf4a0));});}[_0x3c9208(0x1dd)](){const _0x593422=_0x3c9208;this[_0x593422(0x2b3)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x3900c0),re(0x1,_0x54a9fe)],D);const Mn={'mcpStatus':{'disconnected':_0x3c9208(0x215),'connecting':_0x3c9208(0x18e),'connected':_0x3c9208(0x1c2),'failed':_0x3c9208(0x29d),'retrying':'MCP\x20Retrying...','unknown':_0x3c9208(0x280),'unauthorized':_0x3c9208(0x199),'sessionOccupied':_0x3c9208(0x295),'networkError':_0x3c9208(0x179),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3c9208(0x2c2),'clickToConfigure':_0x3c9208(0x191)},'mcpConfig':{'title':_0x3c9208(0x20b),'description':_0x3c9208(0x25e),'apiKey':_0x3c9208(0x273),'apiKeyPlaceholder':_0x3c9208(0x27a),'apiKeyHint':_0x3c9208(0x278),'enableAuth':_0x3c9208(0x1a5),'enableAuthHint':_0x3c9208(0x1e2),'connectionInfo':_0x3c9208(0x1ad),'mcpClientConfig':_0x3c9208(0x1ad),'configInstructions':_0x3c9208(0x174),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3c9208(0x1dc),'configStep2':_0x3c9208(0x18b),'configStep3':_0x3c9208(0x1c4),'sessionId':'Session\x20ID','sessionIdDescription':_0x3c9208(0x1ec),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3c9208(0x255),'maxRetries':'Max\x20Retries','save':_0x3c9208(0x2bc),'saving':_0x3c9208(0x2a5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3c9208(0x1d0),'configSaved':_0x3c9208(0x275),'configError':_0x3c9208(0x201),'apiApplyInfo':{'title':_0x3c9208(0x20d),'description':_0x3c9208(0x195),'univerAiLabel':_0x3c9208(0x211),'getStarted':_0x3c9208(0x190)},'validation':{'apiKeyRequired':_0x3c9208(0x206),'apiKeyTooShort':_0x3c9208(0x1fb),'invalidConfig':_0x3c9208(0x233),'invalidApiKey':_0x3c9208(0x26a)},'connectionStatus':{'disconnected':_0x3c9208(0x1ed),'connecting':_0x3c9208(0x1f4),'connected':_0x3c9208(0x289),'failed':'Connection\x20Failed','retrying':_0x3c9208(0x1a7)},'connectionError':{'unauthorized':_0x3c9208(0x1d4),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3c9208(0x230),'maxRetriesExceeded':_0x3c9208(0x236)}}},An={'mcpStatus':{'disconnected':_0x3c9208(0x1cf),'connecting':_0x3c9208(0x296),'connected':_0x3c9208(0x2b7),'failed':_0x3c9208(0x1d5),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3c9208(0x23b),'networkError':_0x3c9208(0x1f6),'maxRetriesExceeded':_0x3c9208(0x20e),'clickToConnect':_0x3c9208(0x284),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x3c9208(0x1fd),'description':_0x3c9208(0x292),'apiKey':_0x3c9208(0x2aa),'apiKeyPlaceholder':_0x3c9208(0x23e),'apiKeyHint':_0x3c9208(0x1b0),'enableAuth':_0x3c9208(0x1d9),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x3c9208(0x186),'configInstructions':_0x3c9208(0x299),'configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x3c9208(0x1da),'sessionId':_0x3c9208(0x1c1),'sessionIdDescription':_0x3c9208(0x29c),'authorizationDescription':_0x3c9208(0x188),'configParameters':'配置参数:','maxRetries':_0x3c9208(0x266),'save':_0x3c9208(0x244),'saving':_0x3c9208(0x27e),'note1':_0x3c9208(0x2c0),'note2':_0x3c9208(0x175),'configSaved':_0x3c9208(0x2ab),'configError':'配置保存失败','apiApplyInfo':{'title':_0x3c9208(0x18f),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x3c9208(0x208),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x3c9208(0x210),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x3c9208(0x1e8)},'connectionStatus':{'disconnected':'未连接','connecting':_0x3c9208(0x18a),'connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x3c9208(0x197),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x3c9208(0x180),'maxRetriesExceeded':_0x3c9208(0x293)}}};var fn=Object[_0x3c9208(0x1d8)],hn=Object[_0x3c9208(0x270)],Cn=(_0x5a7e84,_0x502643,_0x302ada)=>_0x502643 in _0x5a7e84?fn(_0x5a7e84,_0x502643,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x302ada}):_0x5a7e84[_0x502643]=_0x302ada,mn=(_0x160f23,_0x46c321,_0x3887f5,_0x3350e1)=>{const _0x328c8c=_0x3c9208;for(var _0x259baf=_0x3350e1>0x1?void 0x0:_0x3350e1?hn(_0x46c321,_0x3887f5):_0x46c321,_0x5175a4=_0x160f23[_0x328c8c(0x1be)]-0x1,_0x3a704c;_0x5175a4>=0x0;_0x5175a4--)(_0x3a704c=_0x160f23[_0x5175a4])&&(_0x259baf=_0x3a704c(_0x259baf)||_0x259baf);return _0x259baf;},P=(_0x36549e,_0x1c1c03)=>(_0x18a79e,_0x5e5759)=>_0x1c1c03(_0x18a79e,_0x5e5759,_0x36549e),_n=(_0x286019,_0x3cbb2d,_0x36433b)=>Cn(_0x286019,_0x3cbb2d+'',_0x36433b);let j=class extends _0x5d41e1{constructor(_0x4c0625=ie,_0x3fa566,_0x54117d,_0x40c441,_0x5c3ad7,_0x2e0d5b){const _0x2e5772=_0x3c9208;super(),this[_0x2e5772(0x17b)]=_0x4c0625,this[_0x2e5772(0x171)]=_0x3fa566,this[_0x2e5772(0x2af)]=_0x54117d,this['_uiPartsService']=_0x40c441,this['_localStorageService']=_0x5c3ad7,this['_localeService']=_0x2e0d5b;const {..._0x4472e4}=_0x211ca7({},ie,this[_0x2e5772(0x17b)]);this[_0x2e5772(0x2af)][_0x2e5772(0x2a2)](y,_0x4472e4);}async['onStarting'](){const _0x165134=_0x3c9208,_0x361d84=[[O],[I],[D]];this[_0x165134(0x171)][_0x165134(0x1b2)](_0x10fe15)||_0x361d84[_0x165134(0x212)]([_0x10fe15,{'useClass':_0x451010}]),_0x361d84['forEach'](_0x8ee386=>this[_0x165134(0x171)]['add'](_0x8ee386)),this['_injector'][_0x165134(0x29b)](O),this[_0x165134(0x171)][_0x165134(0x29b)](I),this['_injector'][_0x165134(0x29b)](D);}};_n(j,_0x3c9208(0x1c8),_0x3c9208(0x1bb)),j=mn([_0x5862b0(_0x245195),P(0x1,_0x4bcb75(_0x57274b)),P(0x2,_0x575615),P(0x3,_0x549fee),P(0x4,_0x9e998),P(0x5,_0x4bcb75(_0x53bf0c))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x1529b5=_0x5e29;(function(_0x56812f,_0x14e2e1){const _0x3ca683=_0x5e29,_0x23f27a=_0x56812f();while(!![]){try{const _0x5121f6=-parseInt(_0x3ca683(0x1fd))/0x1+-parseInt(_0x3ca683(0x1b5))/0x2*(-parseInt(_0x3ca683(0xfb))/0x3)+parseInt(_0x3ca683(0x135))/0x4*(parseInt(_0x3ca683(0x16a))/0x5)+-parseInt(_0x3ca683(0x182))/0x6*(-parseInt(_0x3ca683(0xb5))/0x7)+-parseInt(_0x3ca683(0x17c))/0x8+-parseInt(_0x3ca683(0x115))/0x9+parseInt(_0x3ca683(0x1fe))/0xa*(parseInt(_0x3ca683(0x1b7))/0xb);if(_0x5121f6===_0x14e2e1)break;else _0x23f27a['push'](_0x23f27a['shift']());}catch(_0x56e73a){_0x23f27a['push'](_0x23f27a['shift']());}}}(_0x2f92,0xa820a));var Pe=Object[_0x1529b5(0xcb)],Ee=(_0x5b98d1,_0x1123a9,_0x3ae829)=>_0x1123a9 in _0x5b98d1?Pe(_0x5b98d1,_0x1123a9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ae829}):_0x5b98d1[_0x1123a9]=_0x3ae829,x=(_0x351b73,_0x5469e1,_0x6436e8)=>Ee(_0x351b73,typeof _0x5469e1!=_0x1529b5(0x179)?_0x5469e1+'':_0x5469e1,_0x6436e8);import{LocaleService as _0x2c192b,Inject as _0x3196b9,Injector as _0x772e7d,IConfigService as _0x4468c3,ILocalStorageService as _0x4818bf,ILogService as _0x284570,Disposable as _0x48bc64,CommandType as _0x998629,ICommandService as _0x4f2ba8,DependentOn as _0x51f2fd,Plugin as _0x4b4398,merge as _0x403799}from'@univerjs/core';import{jsxs as _0x4d2172,jsx as _0xc335bf}from'react/jsx-runtime';import{MCPConnectionStatus as _0x3b09c9,MCPConnectionError as _0x7682eb,MCPConnectionController as _0x178875,MCP_PLUGIN_CONFIG_KEY as _0x31e1de,UniverMCPPlugin as _0x238564}from'@univerjs-pro/mcp';import{clsx as _0x2f53ef,Input as _0x1ac5f8,Button as _0x1fafdf,MessageType as _0x24b36a,Tooltip as _0x1897b9}from'@univerjs/design';import{useDependency as _0x2a13c4,useObservable as _0x4d8a12,IUIPartsService as _0x6c712,IDialogService as _0xec1ea1,IMessageService as _0x2b1721,ComponentManager as _0x429ef9,connectInjector as _0x514257,BuiltInUIPart as _0xae7773,MenuItemType as _0x381790,RibbonStartGroup as _0x2d214b,IMenuManagerService as _0x5b13d9}from'@univerjs/ui';function _0x5e29(_0x4edb59,_0x552181){const _0x2f9246=_0x2f92();return _0x5e29=function(_0x5e29bb,_0x484aac){_0x5e29bb=_0x5e29bb-0xaa;let _0x26deb3=_0x2f9246[_0x5e29bb];return _0x26deb3;},_0x5e29(_0x4edb59,_0x552181);}import{BehaviorSubject as _0x4803e4}from'rxjs';import{useRef as _0x12dc6f,createElement as _0x49c93c,forwardRef as _0x40ffa6,useState as _0x6b1ac8,useCallback as _0x2180bb}from'react';import{ISocketService as _0x490fbe,WebSocketService as _0x56fc21}from'@univerjs/network';function b({ref:_0x3dec7d,..._0x582ea5}){const _0x3aae1b=_0x1529b5,{icon:_0x1ef128,id:_0xe7c7ca,className:_0x12af87,extend:_0x1bf5ac,..._0x3bcdc6}=_0x582ea5,_0x3d70f4=('univerjs-icon\x20univerjs-icon-'+_0xe7c7ca+'\x20'+(_0x12af87||''))[_0x3aae1b(0x1e1)](),_0x425c52=_0x12dc6f('_'+We());return ae(_0x1ef128,''+_0xe7c7ca,{'defIds':_0x1ef128[_0x3aae1b(0x188)],'idSuffix':_0x425c52['current']},{'ref':_0x3dec7d,'className':_0x3d70f4,..._0x3bcdc6},_0x1bf5ac);}function ae(_0x1571d2,_0x453086,_0x2aa62b,_0x9cbcc6,_0x221097){const _0x12e9be=_0x1529b5;return _0x49c93c(_0x1571d2[_0x12e9be(0x1a0)],{'key':_0x453086,...Ye(_0x1571d2,_0x2aa62b,_0x221097),..._0x9cbcc6},(Ze(_0x1571d2,_0x2aa62b)[_0x12e9be(0x155)]||[])[_0x12e9be(0x1ec)]((_0x10c5c1,_0x17f6af)=>ae(_0x10c5c1,_0x453086+'-'+_0x1571d2[_0x12e9be(0x1a0)]+'-'+_0x17f6af,_0x2aa62b,void 0x0,_0x221097)));}function Ye(_0x4eda4c,_0x11d6c3,_0x46e793){const _0x3438bf=_0x1529b5,_0x148108={..._0x4eda4c[_0x3438bf(0x102)]};_0x46e793!=null&&_0x46e793[_0x3438bf(0x112)]&&_0x148108[_0x3438bf(0xdb)]===_0x3438bf(0x112)&&(_0x148108[_0x3438bf(0xdb)]=_0x46e793[_0x3438bf(0x112)]),_0x4eda4c[_0x3438bf(0x1a0)]===_0x3438bf(0x1b3)&&_0x148108['id']&&(_0x148108['id']=_0x148108['id']+_0x11d6c3[_0x3438bf(0x143)]),Object[_0x3438bf(0x122)](_0x148108)[_0x3438bf(0x1f1)](([_0x5b6708,_0x4a252b])=>{const _0x3c3055=_0x3438bf;_0x5b6708===_0x3c3055(0x1b3)&&typeof _0x4a252b=='string'&&(_0x148108[_0x5b6708]=_0x4a252b['replace'](/url\(#(.*)\)/,_0x3c3055(0xd9)+_0x11d6c3[_0x3c3055(0x143)]+')'));});const {defIds:_0x337025}=_0x11d6c3;return!_0x337025||_0x337025[_0x3438bf(0x10d)]===0x0||(_0x4eda4c['tag']===_0x3438bf(0xf4)&&_0x148108[_0x3438bf(0x134)]&&(_0x148108[_0x3438bf(0x134)]=_0x148108[_0x3438bf(0x134)]+_0x11d6c3[_0x3438bf(0x143)]),Object[_0x3438bf(0x122)](_0x148108)['forEach'](([_0xb903b0,_0xaebcaa])=>{const _0x3178a9=_0x3438bf;typeof _0xaebcaa==_0x3178a9(0x12d)&&(_0x148108[_0xb903b0]=_0xaebcaa[_0x3178a9(0x18c)](/url\(#(.*)\)/,_0x3178a9(0xd9)+_0x11d6c3[_0x3178a9(0x143)]+')'));})),_0x148108;}function Ze(_0x3701cc,_0x1c4d9e){const _0x2a9ac8=_0x1529b5;var _0x2e5314;const {defIds:_0x2d3766}=_0x1c4d9e;return!_0x2d3766||_0x2d3766[_0x2a9ac8(0x10d)]===0x0?_0x3701cc:_0x3701cc['tag']===_0x2a9ac8(0x11b)&&((_0x2e5314=_0x3701cc['children'])!=null&&_0x2e5314[_0x2a9ac8(0x10d)])?{..._0x3701cc,'children':_0x3701cc[_0x2a9ac8(0x155)]['map'](_0xdc241d=>typeof _0xdc241d['attrs']['id']=='string'&&_0x2d3766&&_0x2d3766[_0x2a9ac8(0x11f)](_0xdc241d[_0x2a9ac8(0x102)]['id'])?{..._0xdc241d,'attrs':{..._0xdc241d['attrs'],'id':_0xdc241d['attrs']['id']+_0x1c4d9e[_0x2a9ac8(0x143)]}}:_0xdc241d)}:_0x3701cc;}function We(){const _0x4904b0=_0x1529b5;return Math[_0x4904b0(0xe0)]()[_0x4904b0(0xaa)](0x24)[_0x4904b0(0xe5)](0x2,0x8);}b['displayName']=_0x1529b5(0x11d);const qe={'tag':_0x1529b5(0x1c7),'attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':_0x1529b5(0xfd),'height':_0x1529b5(0xfd)},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x147),'d':_0x1529b5(0xb9),'fillRule':_0x1529b5(0xc7),'clipRule':'evenodd'}}]},le=_0x40ffa6(function(_0x545fdd,_0x5ee626){const _0x1fba3f=_0x1529b5;return _0x49c93c(b,Object[_0x1fba3f(0x1e9)]({},_0x545fdd,{'id':_0x1fba3f(0x1f0),'ref':_0x5ee626,'icon':qe}));});le[_0x1529b5(0x1b1)]='CheckMarkIcon';const Xe={'tag':'svg','attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':_0x1529b5(0xfd),'height':'1em'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':'currentColor','d':_0x1529b5(0x196)}}]},ue=_0x40ffa6(function(_0x3a7fcd,_0x2b0184){const _0x5d4035=_0x1529b5;return _0x49c93c(b,Object[_0x5d4035(0x1e9)]({},_0x3a7fcd,{'id':_0x5d4035(0xc3),'ref':_0x2b0184,'icon':Xe}));});ue['displayName']='CloseIcon';const Je={'tag':'svg','attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':'1em','height':'1em'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x147),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x147),'d':_0x1529b5(0x178)}},{'tag':'path','attrs':{'fill':_0x1529b5(0x147),'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':_0x1529b5(0xc7),'clipRule':_0x1529b5(0xc7)}}]},ve=_0x40ffa6(function(_0x6fed5f,_0x583c62){const _0x28646f=_0x1529b5;return _0x49c93c(b,Object['assign']({},_0x6fed5f,{'id':_0x28646f(0x1a1),'ref':_0x583c62,'icon':Je}));});ve['displayName']='HelpIcon';const Qe={'tag':_0x1529b5(0x1c7),'attrs':{'xmlns':_0x1529b5(0x139),'fill':_0x1529b5(0x1af),'viewBox':_0x1529b5(0x1c6),'width':_0x1529b5(0xfd),'height':_0x1529b5(0xfd)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'stroke':'currentColor','d':_0x1529b5(0x167),'strokeLinecap':'round','strokeLinejoin':_0x1529b5(0x13e),'strokeWidth':1.2}}]},{'tag':_0x1529b5(0x11b),'attrs':{},'children':[{'tag':_0x1529b5(0x118),'attrs':{'id':_0x1529b5(0x198)},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x1c2),'d':_0x1529b5(0x128)}}]}]}],'defIds':[_0x1529b5(0x198)]},de=_0x40ffa6(function(_0x486bea,_0xd960e7){const _0x323efc=_0x1529b5;return _0x49c93c(b,Object[_0x323efc(0x1e9)]({},_0x486bea,{'id':_0x323efc(0x1cb),'ref':_0xd960e7,'icon':Qe}));});de[_0x1529b5(0x1b1)]=_0x1529b5(0x173);const en={'tag':_0x1529b5(0x1c7),'attrs':{'xmlns':_0x1529b5(0x139),'fill':'none','viewBox':_0x1529b5(0xde),'width':'1em','height':_0x1529b5(0xfd)},'children':[{'tag':'g','attrs':{'clipPath':_0x1529b5(0x1e3)},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'stroke':'currentColor','d':_0x1529b5(0x1e2),'strokeLinecap':_0x1529b5(0x13e),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1529b5(0x11b),'attrs':{},'children':[{'tag':_0x1529b5(0x118),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x1529b5(0xe9),'attrs':{'fill':_0x1529b5(0x1c2),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x1529b5(0x195)]},ge=_0x40ffa6(function(_0x406104,_0x1ebe2f){return _0x49c93c(b,Object['assign']({},_0x406104,{'id':'on-line-icon','ref':_0x1ebe2f,'icon':en}));});ge[_0x1529b5(0x1b1)]='OnLineIcon';function nn(_0x1877d5){const _0x152bf3=_0x1529b5;var _0x5c114f,_0x3bbb43;const {mcpCoreConfig:_0x9c02c1,onSave:_0x4dcb30,loading:_0x549b52=!0x1,config:_0x332d9c,connectionStatus$:_0x2732b0,connectionError$:_0x2af1d8,currentApiKey$:_0x41467b,currentSessionId$:_0x49688a}=_0x1877d5,_0x4c30ea=_0x2a13c4(_0x2c192b),_0x1c1f9d=_0x4d8a12(_0x2732b0,_0x3b09c9[_0x152bf3(0x10c)]),_0x47cd33=_0x4d8a12(_0x2af1d8,_0x7682eb[_0x152bf3(0x184)]),_0x24b298=_0x4d8a12(_0x49688a,''),_0x9848f6=_0x4d8a12(_0x41467b,''),[_0xe35b76,_0xb1f494]=_0x6b1ac8(_0x9848f6||''),_0x539a5e=!0x0,_0x1751c5=_0x332d9c['showDeveloperTools']&&_0x9c02c1[_0x152bf3(0x17d)]&&(_0x9c02c1[_0x152bf3(0x17d)]['includes']('univer.plus')||_0x9c02c1[_0x152bf3(0x17d)]['includes'](_0x152bf3(0xb3))),_0x5302e5=(_0x5c114f=_0x9c02c1['mcpServerUrl'])==null?void 0x0:_0x5c114f['includes'](_0x152bf3(0x1a3)),_0x109441=(_0x3bbb43=_0x9c02c1['mcpServerUrl'])==null?void 0x0:_0x3bbb43[_0x152bf3(0x11f)]('univer.ai'),_0x1a2d7e=_0x5302e5?_0x152bf3(0x111):_0x152bf3(0x19a),_0x4d68e3=_0x332d9c[_0x152bf3(0x1dd)]&&(_0x5302e5||_0x109441),[_0x3a9ea8,_0x35ee25]=_0x6b1ac8(!_0xe35b76[_0x152bf3(0x1e1)]()),_0x461d08=(_0x54df3d,_0x48757c)=>{const _0x53ba64=_0x152bf3;if(_0x48757c===_0x7682eb['UNAUTHORIZED'])return _0x53ba64(0x1ae);switch(_0x54df3d){case _0x3b09c9[_0x53ba64(0x1a8)]:return _0x53ba64(0x10a);case _0x3b09c9[_0x53ba64(0x15b)]:case _0x3b09c9['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x3b09c9[_0x53ba64(0x1a2)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x53ba64(0x126);}},_0x4fcb7d=(_0x4abce8,_0x150f2e)=>{const _0x9afc2e=_0x152bf3;if(_0x150f2e===_0x7682eb[_0x9afc2e(0x13c)])return _0x9afc2e(0x1c8);switch(_0x4abce8){case _0x3b09c9[_0x9afc2e(0x1a8)]:return _0x9afc2e(0x190);case _0x3b09c9[_0x9afc2e(0x15b)]:case _0x3b09c9['RETRYING']:return _0x9afc2e(0x15f);case _0x3b09c9[_0x9afc2e(0x1a2)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x361fca=_0x269d99=>{const _0x3daae3=_0x152bf3;switch(_0x269d99){case _0x3b09c9[_0x3daae3(0x1a8)]:return _0x4c30ea['t']('mcpConfig.connectionStatus.connected');case _0x3b09c9['CONNECTING']:return _0x4c30ea['t'](_0x3daae3(0x164));case _0x3b09c9[_0x3daae3(0x1a2)]:return _0x4c30ea['t'](_0x3daae3(0xfc));case _0x3b09c9[_0x3daae3(0xee)]:return _0x4c30ea['t'](_0x3daae3(0x130));default:return _0x4c30ea['t']('mcpConfig.connectionStatus.disconnected');}},_0x14b1e5=_0x4eead2=>{const _0x56dcba=_0x152bf3;switch(_0x4eead2){case _0x7682eb[_0x56dcba(0x13c)]:return _0x4c30ea['t']('mcpConfig.connectionError.unauthorized');case _0x7682eb[_0x56dcba(0xf1)]:return _0x4c30ea['t']('mcpConfig.connectionError.sessionOccupied');case _0x7682eb['NETWORK_ERROR']:return _0x4c30ea['t'](_0x56dcba(0x19e));case _0x7682eb[_0x56dcba(0x117)]:return _0x4c30ea['t'](_0x56dcba(0x1a5));default:return'';}},_0x42d6d9=_0x2180bb(()=>{const _0x59740b=_0x152bf3,_0x48957a={..._0x9c02c1,'apiKey':_0xe35b76[_0x59740b(0x1e1)](),'enableAuth':_0x539a5e};_0x4dcb30(_0x48957a);},[_0x9c02c1,_0xe35b76,_0x539a5e,_0x4dcb30]),_0x54c502=_0xe35b76[_0x152bf3(0x1e1)]()[_0x152bf3(0x10d)]>0x0;return _0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x129),'children':[_0xc335bf('div',{'className':_0x152bf3(0x1f9),'children':_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1cd),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0x11a),'children':_0xc335bf(_0x152bf3(0x1fb),{'className':'univer-text-white','children':'⚙'})}),_0xc335bf('div',{'children':_0xc335bf('p',{'className':_0x152bf3(0x161),'children':_0x4c30ea['t'](_0x152bf3(0x193))})})]})}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0xda),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x2f53ef(_0x152bf3(0x150),_0x461d08(_0x1c1f9d,_0x47cd33)),'children':_0x4d2172(_0x152bf3(0x140),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x2f53ef('univer-size-2\x20univer-rounded-full',_0x4fcb7d(_0x1c1f9d,_0x47cd33))}),_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x19d),'children':_0x361fca(_0x1c1f9d)})]})}),_0x47cd33!==_0x7682eb['NONE']&&(_0x1c1f9d===_0x3b09c9['FAILED']||_0x47cd33===_0x7682eb[_0x152bf3(0x13c)])&&_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xf0),'children':_0x4d2172('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x191),'children':'⚠️'}),_0xc335bf('p',{'className':_0x152bf3(0xf6),'children':_0x14b1e5(_0x47cd33)})]})})]}),_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xc0),'children':_0x4d2172('div',{'className':_0x152bf3(0x137),'children':[_0x4d2172(_0x152bf3(0x140),{'className':'univer-space-y-2','children':[_0x4d2172('label',{'className':_0x152bf3(0x1ab),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'🔑'}),'\x20',_0x4c30ea['t']('mcpConfig.apiKey'),_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x121),'children':'*'}),_0x1751c5&&_0xc335bf('a',{'className':_0x152bf3(0x1d8),'title':_0x4c30ea['t'](_0x152bf3(0x1f7)),'role':_0x152bf3(0x1ce),'onClick':()=>_0x35ee25(!0x0),'children':_0xc335bf(ve,{})})]}),_0xc335bf(_0x1ac5f8,{'type':_0x152bf3(0x107),'placeholder':_0x4c30ea['t']('mcpConfig.apiKeyPlaceholder'),'value':_0xe35b76,'disabled':_0x549b52,'autoComplete':_0x152bf3(0x1f4),'onChange':_0xb1f494}),_0xc335bf('p',{'className':_0x152bf3(0xb2),'children':_0x4c30ea['t']('mcpConfig.apiKeyHint')})]}),_0x1751c5&&_0x3a9ea8&&_0x4d2172('div',{'className':_0x152bf3(0x103),'children':[_0xc335bf('a',{'className':_0x152bf3(0x1e5),'role':_0x152bf3(0x1ce),'onClick':()=>_0x35ee25(!0x1),'children':_0xc335bf(ue,{'className':_0x152bf3(0x10b)})}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x11c),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xdc),'children':_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x163),'children':'🚀'})}),_0x4d2172(_0x152bf3(0x140),{'className':'univer-flex-1','children':[_0xc335bf('h4',{'className':_0x152bf3(0x1ef),'children':_0x4c30ea['t']('mcpConfig.apiApplyInfo.title')}),_0xc335bf('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x4c30ea['t']('mcpConfig.apiApplyInfo.description')}),_0xc335bf('div',{'className':_0x152bf3(0x1f2),'children':_0x4d68e3&&_0x4d2172('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x1a2d7e,'target':_0x152bf3(0x1ca),'rel':_0x152bf3(0x109),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'🤖'}),_0x4c30ea['t'](_0x152bf3(0x1a4)),_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0x17e),'children':'↗'})]})}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0xe3),'children':['✨','\x20',_0x4c30ea['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x332d9c[_0x152bf3(0x1dd)]&&_0x4d2172('div',{'className':_0x152bf3(0xfa),'children':[_0x4d2172('h4',{'className':_0x152bf3(0xc9),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'🔗'}),'\x20',_0x4c30ea['t'](_0x152bf3(0x18b))]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x16d),'children':[_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x14c),'children':[_0xc335bf('p',{'className':_0x152bf3(0x1d4),'children':_0x4c30ea['t'](_0x152bf3(0xd1))}),_0x4d2172(_0x152bf3(0x140),{'className':'univer-space-y-2','children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xb7),'children':_0x4c30ea['t'](_0x152bf3(0x1c3))}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1bc),'children':[_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0xe6),'children':'1'}),_0x4c30ea['t'](_0x152bf3(0x1c5))]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0xe6),'children':'2'}),_0x4c30ea['t']('mcpConfig.configStep2')]}),_0x4d2172('div',{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'className':_0x152bf3(0xe6),'children':'3'}),_0x4c30ea['t'](_0x152bf3(0x159))]})]})]})]}),_0x4d2172(_0x152bf3(0x140),{'className':'univer-space-y-2','children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xb7),'children':_0x152bf3(0x100)}),_0xc335bf(_0x152bf3(0x140),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0xc335bf(_0x152bf3(0x1cf),{'className':_0x152bf3(0x160),'children':JSON[_0x152bf3(0x13b)]({'mcpServers':{'univer':{'url':_0x152bf3(0x1c4)+(_0x24b298||'<SESSION_ID>'),'type':_0x152bf3(0x174),'headers':{'Authorization':_0x152bf3(0x106)+(_0xe35b76||_0x152bf3(0x14f))}}}},null,0x2)})})]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x14c),'children':[_0xc335bf('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4c30ea['t'](_0x152bf3(0xd3))}),_0x4d2172('div',{'className':_0x152bf3(0x15d),'children':[_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x158),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0x19b)}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x133),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xb8),'children':_0x152bf3(0x18e)}),_0xc335bf(_0x152bf3(0x140),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4c30ea['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x158),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0x19b)}),_0x4d2172('div',{'className':_0x152bf3(0x133),'children':[_0xc335bf('div',{'className':_0x152bf3(0xb8),'children':'Authorization:'}),_0xc335bf(_0x152bf3(0x140),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4c30ea['t'](_0x152bf3(0x165))})]})]})]})]})]})]}),_0xc335bf(_0x1fafdf,{'onClick':_0x42d6d9,'disabled':!_0x54c502||_0x549b52,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x549b52?_0x4d2172('span',{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(_0x152bf3(0x1fb),{'children':'⟲'}),_0x4c30ea['t'](_0x152bf3(0xcd))]}):_0x4d2172(_0x152bf3(0x1fb),{'className':_0x152bf3(0x1eb),'children':[_0xc335bf(le,{}),_0x4c30ea['t'](_0x152bf3(0xc8))]})}),_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xcf),'children':_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x176),'children':[_0xc335bf('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x4d2172(_0x152bf3(0x140),{'className':_0x152bf3(0x1be),'children':[_0xc335bf(_0x152bf3(0x140),{'className':_0x152bf3(0xef),'children':_0x152bf3(0x148)}),_0x4d2172(_0x152bf3(0x140),{'children':['•',_0x4c30ea['t'](_0x152bf3(0x1e0))]}),_0x4d2172('div',{'children':['•',_0x4c30ea['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x1529b5(0x13a),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x1529b5(0x185)],tn=(_0x39a3b0,_0x492111,_0x3d20e1,_0x3a667e)=>{const _0x36216a=_0x1529b5;for(var _0x322fa4=_0x3a667e>0x1?void 0x0:_0x3a667e?rn(_0x492111,_0x3d20e1):_0x492111,_0x8eaf4b=_0x39a3b0[_0x36216a(0x10d)]-0x1,_0x12d444;_0x8eaf4b>=0x0;_0x8eaf4b--)(_0x12d444=_0x39a3b0[_0x8eaf4b])&&(_0x322fa4=_0x12d444(_0x322fa4)||_0x322fa4);return _0x322fa4;},d=(_0x6065e,_0x5a5e37)=>(_0x28115c,_0x3d83f0)=>_0x5a5e37(_0x28115c,_0x3d83f0,_0x6065e);const U=_0x1529b5(0x166),L='mcp-config-dialog';let I=class extends _0x48bc64{constructor(_0x581023,_0x5d86a7,_0x16f3e0,_0x1285de,_0x4e8d0,_0x596685,_0x4dcb50,_0x51b8ec,_0x195603,_0x4bc62f){const _0x1571a5=_0x1529b5;super(),x(this,_0x1571a5(0xca),new _0x4803e4(!0x1)),x(this,_0x1571a5(0x1ed),new _0x4803e4({})),x(this,_0x1571a5(0x114),new _0x4803e4({})),x(this,'_apiKey$',new _0x4803e4('')),x(this,_0x1571a5(0x104),async _0x371d5c=>{const _0x46ec10=_0x1571a5;var _0x250f61,_0x2a2d92;this[_0x46ec10(0xca)]['next'](!0x0);try{const _0x381470=await this[_0x46ec10(0xd6)](_0x371d5c);if(!_0x381470[_0x46ec10(0xf8)]){this['_messageService'][_0x46ec10(0x1ff)]({'type':_0x24b36a[_0x46ec10(0xeb)],'content':_0x381470['errorMessage']||this[_0x46ec10(0x1bb)]['t'](_0x46ec10(0x1b9))});return;}_0x371d5c[_0x46ec10(0xdf)]?await this[_0x46ec10(0xe2)][_0x46ec10(0x1a9)](U,_0x371d5c[_0x46ec10(0xdf)][_0x46ec10(0x1e1)]()):await this['_localStorageService'][_0x46ec10(0x1a7)](U),this[_0x46ec10(0x168)][_0x46ec10(0x124)](((_0x250f61=_0x371d5c[_0x46ec10(0xdf)])==null?void 0x0:_0x250f61[_0x46ec10(0x1e1)]())||''),this[_0x46ec10(0x14e)]['__setCustomHeaders']({'Authorization':_0x46ec10(0x106)+((_0x2a2d92=_0x371d5c[_0x46ec10(0xdf)])==null?void 0x0:_0x2a2d92[_0x46ec10(0x1e1)]())}),this[_0x46ec10(0x110)][_0x46ec10(0x1ff)]({'type':_0x24b36a['Success'],'content':this[_0x46ec10(0x1bb)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x1aea90=_0x46ec10;this[_0x1aea90(0xbc)][_0x1aea90(0x1f6)](L);},0x320);}catch(_0x2a5fec){this[_0x46ec10(0x108)]['error'](_0x46ec10(0x1cc),_0x2a5fec),this['_messageService'][_0x46ec10(0x1ff)]({'type':_0x24b36a[_0x46ec10(0xeb)],'content':this[_0x46ec10(0x1bb)]['t'](_0x46ec10(0x156))});}finally{this['_loading$']['next'](!0x1);}}),(this[_0x1571a5(0x15c)]=_0x581023,this[_0x1571a5(0xfe)]=_0x5d86a7,this[_0x1571a5(0x169)]=_0x16f3e0,this[_0x1571a5(0xe2)]=_0x1285de,this['_dialogService']=_0x4e8d0,this['_messageService']=_0x596685,this[_0x1571a5(0x1aa)]=_0x4dcb50,this[_0x1571a5(0x1bb)]=_0x51b8ec,this[_0x1571a5(0x108)]=_0x195603,this[_0x1571a5(0x14e)]=_0x4bc62f,this[_0x1571a5(0xdd)](),this[_0x1571a5(0xd5)](),this[_0x1571a5(0x16c)]());}[_0x1529b5(0x153)](){const _0x35289c=_0x1529b5,_0x16a5cf=this[_0x35289c(0x169)][_0x35289c(0xb0)](y);_0x16a5cf!=null&&_0x16a5cf[_0x35289c(0x1dd)]&&this[_0x35289c(0xbc)][_0x35289c(0x145)]({'id':L,'title':{'title':this[_0x35289c(0x1bb)]['t']('mcpConfig.title')},'children':{'label':_0x35289c(0x1bf)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x453fc1=_0x35289c;this[_0x453fc1(0xbc)]['close'](L);}});}['getCurrentConfig'](){return this['_mcpCoreConfig$']['value'];}[_0x1529b5(0x16c)](){const _0x1e21c6=_0x1529b5;this[_0x1e21c6(0x162)](this['_componentManager'][_0x1e21c6(0xbf)]('MCPConfigPanel',this[_0x1e21c6(0x149)]()));}[_0x1529b5(0x149)](){const _0x4a2fcb=_0x1529b5;return _0x514257(()=>{const _0x30ac1a=_0x5e29;var _0x2ce485,_0x39e114,_0x2f7244;return _0xc335bf(nn,{'config':this[_0x30ac1a(0x114)][_0x30ac1a(0x1f3)],'mcpCoreConfig':this[_0x30ac1a(0x1ed)][_0x30ac1a(0x1f3)],'currentApiKey$':this[_0x30ac1a(0x168)],'onSave':this[_0x30ac1a(0x104)],'loading':this[_0x30ac1a(0xca)][_0x30ac1a(0x1f3)],'connectionStatus$':(_0x2ce485=this[_0x30ac1a(0x14e)])==null?void 0x0:_0x2ce485[_0x30ac1a(0x1b8)],'connectionError$':(_0x39e114=this[_0x30ac1a(0x14e)])==null?void 0x0:_0x39e114[_0x30ac1a(0x154)],'currentSessionId$':(_0x2f7244=this[_0x30ac1a(0x14e)])==null?void 0x0:_0x2f7244[_0x30ac1a(0xd8)]});},this[_0x4a2fcb(0x15c)]);}[_0x1529b5(0xdd)](){const _0x3f5638=_0x1529b5;this[_0x3f5638(0x162)](this[_0x3f5638(0x169)]['subscribeConfigValue$'](_0x31e1de)[_0x3f5638(0xec)](_0x4608f7=>{const _0x421553=_0x3f5638;this['_mcpCoreConfig$'][_0x421553(0x124)](_0x4608f7||{});}));const _0x14da4c=this[_0x3f5638(0x169)][_0x3f5638(0xb0)](_0x31e1de);this['_mcpCoreConfig$'][_0x3f5638(0x124)](_0x14da4c||{}),this[_0x3f5638(0x162)](this['_configService'][_0x3f5638(0x1ad)](y)[_0x3f5638(0xec)](_0x3d3b15=>{const _0x49dbf8=_0x3f5638;this[_0x49dbf8(0x114)][_0x49dbf8(0x124)](_0x3d3b15||{});}));const _0x1ea04b=this[_0x3f5638(0x169)]['getConfig'](y);this[_0x3f5638(0x114)]['next'](_0x1ea04b||{});}async[_0x1529b5(0xd5)](){const _0x4e2d9a=_0x1529b5,_0x23a3c2=this[_0x4e2d9a(0x169)][_0x4e2d9a(0xb0)](y);if(!(_0x23a3c2!=null&&_0x23a3c2['showDeveloperTools']))return;const _0x3dd642=await this[_0x4e2d9a(0xe2)][_0x4e2d9a(0x132)](U);_0x3dd642&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x4e2d9a(0x106)+_0x3dd642}),this[_0x4e2d9a(0x168)][_0x4e2d9a(0x124)](_0x3dd642));}async[_0x1529b5(0xd6)](_0x285663){const _0x4ddeb1=_0x1529b5;if(!_0x285663['apiKey']||_0x285663['apiKey'][_0x4ddeb1(0x1e1)]()[_0x4ddeb1(0x10d)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4ddeb1(0x1bb)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x285663[_0x4ddeb1(0xdf)][_0x4ddeb1(0x1e1)]()[_0x4ddeb1(0x10d)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4ddeb1(0x1bb)]['t'](_0x4ddeb1(0x1d0))};try{const _0x23a43e=await this[_0x4ddeb1(0x15c)][_0x4ddeb1(0x1d5)](_0x178875)[_0x4ddeb1(0xe1)](_0x285663[_0x4ddeb1(0xdf)]['trim']());return _0x23a43e[_0x4ddeb1(0xf8)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x23a43e['error']||this[_0x4ddeb1(0x1bb)]['t'](_0x4ddeb1(0x116))};}catch(_0x18d563){return console['warn']('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x18d563),{'isValid':!0x0};}}};I=tn([d(0x0,_0x3196b9(_0x772e7d)),d(0x1,_0x6c712),d(0x2,_0x4468c3),d(0x3,_0x4818bf),d(0x4,_0xec1ea1),d(0x5,_0x2b1721),d(0x6,_0x3196b9(_0x429ef9)),d(0x7,_0x3196b9(_0x2c192b)),d(0x8,_0x284570),d(0x9,_0x3196b9(_0x178875))],I);const V={'id':_0x1529b5(0x1df),'type':_0x998629['COMMAND'],'handler':async(_0x483473,_0x4a6781)=>(_0x483473[_0x1529b5(0x1d5)](I)[_0x1529b5(0x153)](),!0x0)};function pe(_0x4149ea,_0x20dcb9){const _0x5cce1a=_0x1529b5;switch(_0x4149ea){case _0x3b09c9['DISCONNECTED']:return'mcpStatus.disconnected';case _0x3b09c9[_0x5cce1a(0x15b)]:return _0x5cce1a(0xad);case _0x3b09c9[_0x5cce1a(0x1a8)]:return _0x5cce1a(0x14b);case _0x3b09c9['FAILED']:switch(_0x20dcb9){case _0x7682eb[_0x5cce1a(0x13c)]:return'mcpStatus.unauthorized';case _0x7682eb[_0x5cce1a(0xf1)]:return _0x5cce1a(0xf7);case _0x7682eb[_0x5cce1a(0x197)]:return _0x5cce1a(0xc1);case _0x7682eb[_0x5cce1a(0x117)]:return _0x5cce1a(0x175);default:return _0x5cce1a(0x1e7);}case _0x3b09c9[_0x5cce1a(0xee)]:return _0x5cce1a(0xba);default:return _0x5cce1a(0x172);}}function on(_0x13e5d2,_0x2b08cf,_0x5a1c49,_0x4536bd=!0x0){const _0x4b44db=_0x1529b5,_0x32abce=pe(_0x13e5d2,_0x2b08cf),_0x16ab34=_0x5a1c49['t'](_0x32abce);return _0x4536bd?_0x13e5d2===_0x3b09c9['DISCONNECTED']&&_0x2b08cf===_0x7682eb[_0x4b44db(0x13c)]?_0x16ab34+_0x4b44db(0x13f)+_0x5a1c49['t'](_0x4b44db(0x16b)):_0x13e5d2===_0x3b09c9['CONNECTED']?''+_0x16ab34:_0x13e5d2===_0x3b09c9[_0x4b44db(0x10c)]||_0x13e5d2===_0x3b09c9[_0x4b44db(0x1a2)]?_0x16ab34+'\x20-\x20'+_0x5a1c49['t']('mcpStatus.clickToConnect'):_0x16ab34:_0x16ab34;}function sn(_0x4b7a74){const _0x54df5c=_0x1529b5;switch(_0x4b7a74){case _0x3b09c9['CONNECTED']:return _0x54df5c(0xff);case _0x3b09c9['CONNECTING']:case _0x3b09c9[_0x54df5c(0xee)]:return _0x54df5c(0x17b);case _0x3b09c9[_0x54df5c(0x1a2)]:case _0x3b09c9['DISCONNECTED']:return _0x54df5c(0x121);default:return'univer-text-gray-500';}}function cn(_0x402c8b){const _0x5691ca=_0x1529b5,{status$:_0x29abc1,error$:_0x4cc70e,onConfigure:_0x38f157,showClickable:_0x2a275d=!0x0}=_0x402c8b,_0x4d140c=_0x4d8a12(_0x29abc1,_0x3b09c9[_0x5691ca(0x10c)]),_0x1b5bab=_0x4d8a12(_0x4cc70e,_0x7682eb['NONE']),_0x4c1112=_0x2a13c4(_0x2c192b),_0x40ffb7=_0x4d140c===_0x3b09c9[_0x5691ca(0x1a8)];_0x4d140c===_0x3b09c9['CONNECTING']||_0x3b09c9['RETRYING'];const _0x577a29=_0x4c1112['t'](pe(_0x4d140c,_0x1b5bab)),_0x3d374f=on(_0x4d140c,_0x1b5bab,_0x4c1112,_0x2a275d),_0x4073f6=sn(_0x4d140c),_0x5cc639=_0x40ffb7?_0xc335bf(ge,{}):_0xc335bf(de,{}),_0x314a21=_0x2180bb(()=>{_0x2a275d&&_0x38f157&&_0x38f157();},[_0x2a275d,_0x38f157]);function _0x2966a3(){const _0x52edb1=_0x5691ca;return _0x4d2172(_0x52edb1(0x140),{'className':_0x2f53ef(_0x52edb1(0xb1),_0x2a275d&&_0x38f157&&_0x52edb1(0x1de)),'role':_0x52edb1(0x1ce),'onClick':_0x2a275d&&_0x38f157?_0x314a21:void 0x0,'children':[_0xc335bf(_0x52edb1(0x140),{'className':_0x2f53ef(_0x52edb1(0xed),_0x4073f6),'children':_0x5cc639}),_0xc335bf(_0x52edb1(0x140),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x577a29})]});}return _0xc335bf(_0x1897b9,{'title':_0x3d374f,'placement':_0x5691ca(0x186),'children':_0x2966a3()});}function _0x2f92(){const _0x100d1b=['您的\x20API\x20密钥将在此浏览器中本地存储','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','MCPConfigPanel','已连接','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','white','mcpConfig.configStepTitle','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStep1','0\x200\x2016\x2016','svg','univer-bg-red-500','Connected','_blank','off-line-icon','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex\x20univer-items-center\x20univer-gap-3','button','pre','mcpConfig.validation.apiKeyTooShort','启用身份验证以获得安全连接','MCP:\x20超出最大重试次数','配置无效','univer-text-xs\x20univer-text-gray-600','get','Click\x20to\x20connect\x20MCP','Save\x20Configuration','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_initAutoConnect','配置保存成功','几秒钟内获取您的\x20API\x20密钥','showDeveloperTools','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcp-ui.command.openConfigPanel','mcpConfig.note1','trim','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','url(#on-line-icon_clip0_910_349)','MCP\x20Connection\x20Failed','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','MCP\x20Retrying...','mcpStatus.failed','registerCommand','assign','MCP\x20客户端配置','univer-flex\x20univer-items-center\x20univer-gap-2','map','_mcpCoreConfig$','API\x20密钥','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','check-mark-icon','forEach','univer-flex\x20univer-flex-wrap\x20univer-gap-2','value','off','MCP_UI_PLUGIN','close','mcpConfig.apiApplyInfo.title','What\x20is\x20API\x20Key?','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_commandService','span','API\x20key\x20is\x20required','706898TUultF','1166120JsKNOP','show','toString','MCP:\x20网络错误','什么是\x20API\x20密钥?','mcpStatus.connecting','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','getConfig','univer-flex\x20univer-items-center','univer-text-xs\x20univer-text-gray-500','univer.ai','push','7648123USBvil','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','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','mcpStatus.retrying','将以下配置添加到您的\x20MCP\x20客户端设置中:','_dialogService','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20连接失败','register','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpStatus.networkError','重连中...','close-icon','配置更改将立即生效','onStarting','_initializeCommands','evenodd','mcpConfig.save','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_loading$','defineProperty','_handleConfigure','mcpConfig.saving','MenuIcon','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP\x20Connected','mcpConfig.configInstructions','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.configParameters','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_loadStoredApiKey','_validateConfig','Enable\x20authentication\x20for\x20secure\x20connections','sessionId$','url(#$1','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','fill','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_initConfigSync','0\x200\x2017\x2016','apiKey','random','validateApiKey','_localStorageService','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mergeMenu','substring','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcpConfig.title','registerComponent','path','MCP:\x20Unauthorized','Error','subscribe','univer-mr-2\x20univer-flex\x20univer-text-xl','RETRYING','univer-font-medium','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','SESSION_ID_OCCUPIED','MCP\x20Client\x20Configuration','HEADER_MENU','use','连接中...','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpStatus.sessionOccupied','isValid','_connectionController','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','3zsjrCW','mcpConfig.connectionStatus.failed','1em','_uiPartsService','univer-text-green-500','MCP\x20Configuration','_config','attrs','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','_handleConfigSave','BUTTON','Bearer\x20','text','_logService','noopener\x20noreferrer','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-size-4','DISCONNECTED','length','API\x20密钥不能为空','Enable\x20Authentication','_messageService','https://console.univer.plus','colorChannel1','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_config$','7064991LDAOoD','mcpConfig.validation.invalidApiKey','MAX_RETRIES_EXCEEDED','clipPath','setConfig','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','defs','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','UniverIcon','Connection\x20Failed','includes','Disconnected','univer-text-red-500','entries','网络连接错误,请检查您的网络连接','next','_menuManagerService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','API\x20key\x20with\x20Bearer\x20prefix.','M0\x200H16V16H0z','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20状态未知','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','string','MCP:\x20未授权','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.connectionStatus.retrying','您的\x20API\x20密钥安全存储在本地存储中','getItem','univer-min-w-0\x20univer-flex-1','xlink:href','88aufbdK','pluginName','univer-space-y-5','会话ID','http://www.w3.org/2000/svg','mcp-ui.config','stringify','UNAUTHORIZED','Failed\x20to\x20save\x20configuration','round','\x20-\x20','div','复制以下\x20JSON\x20配置','配置保存失败','idSuffix','带有\x20Bearer\x20前缀的\x20API\x20密钥。','open','MCP\x20重连中...','currentColor','Configuration\x20Notes:','_createConfigPanelComponent','Univer\x20AI\x20Console','mcpStatus.connected','univer-space-y-3','点击连接\x20MCP','_mcpConnectionController','<API_KEY>','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','showConfigPanel','connectionError$','children','mcpConfig.configError','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.configStep3','API\x20密钥无效,请检查密钥是否正确','CONNECTING','_injector','univer-space-y-2','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-bg-blue-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-text-sm\x20univer-text-gray-500','disposeWithMe','univer-text-blue-600','mcpConfig.connectionStatus.connecting','mcpConfig.authorizationDescription','mcp.apiKey','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','_apiKey$','_configService','271090ujerfj','mcpStatus.clickToConfigure','_registerComponent','univer-space-y-4','MCP:\x20Session\x20ID\x20Occupied','add','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAutoConnect','mcpStatus.unknown','OffLineIcon','http','mcpStatus.maxRetriesExceeded','univer-flex\x20univer-gap-3','MCP:\x20Network\x20Error','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','symbol','API\x20Key','univer-text-yellow-500','6304584QklmIV','mcpServerUrl','univer-text-gray-400','_initializeMenus','重启您的\x20MCP\x20客户端以使配置生效','Retrying...','6puqKFg','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','NONE','getOwnPropertyDescriptor','bottom','会话\x20ID\x20已被占用,请稍后再试','defIds','Univer\x20AI\x20控制台','请输入您的\x20API\x20密钥','mcpConfig.connectionInfo','replace','MCP\x20Unknown\x20Status','univer_session_id:','Saving...','univer-bg-green-500','univer-shrink-0\x20univer-text-red-500','_initStatusComponent','mcpConfig.description','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','on-line-icon_clip0_910_349','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','NETWORK_ERROR','off-line-icon_clip0_910_343','保存中...','https://console.univer.ai','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Enter\x20your\x20API\x20key','univer-text-sm\x20univer-font-medium','mcpConfig.connectionError.networkError','API\x20密钥长度至少需要\x2010\x20位','tag','help-icon','FAILED','univer.plus','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.connectionError.maxRetriesExceeded','Invalid\x20configuration','removeItem','CONNECTED','setItem','_componentManager','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','配置参数:','subscribeConfigValue$','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','none','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','displayName','MCP\x20Connecting...','mask','Copy\x20the\x20JSON\x20configuration\x20below','1133246wukVly','点击配置\x20MCP','11tlbbIy','connectionStatus$','mcpConfig.validation.invalidConfig','保存配置','_localeService','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600'];_0x2f92=function(){return _0x100d1b;};return _0x2f92();}var an=Object[_0x1529b5(0x185)],ln=(_0x3a4762,_0x4572d2,_0x32e885,_0x34f6b3)=>{const _0x3da19a=_0x1529b5;for(var _0xa090ad=_0x34f6b3>0x1?void 0x0:_0x34f6b3?an(_0x4572d2,_0x32e885):_0x4572d2,_0x38f076=_0x3a4762[_0x3da19a(0x10d)]-0x1,_0x537f4d;_0x38f076>=0x0;_0x38f076--)(_0x537f4d=_0x3a4762[_0x38f076])&&(_0xa090ad=_0x537f4d(_0xa090ad)||_0xa090ad);return _0xa090ad;},M=(_0x303be2,_0x2b9b2c)=>(_0x432280,_0x2e2816)=>_0x2b9b2c(_0x432280,_0x2e2816,_0x303be2);let O=class extends _0x48bc64{constructor(_0x545be7,_0x22985a,_0x47d837,_0x31550e){const _0xb2a929=_0x1529b5;super(),this['_injector']=_0x545be7,this[_0xb2a929(0xf9)]=_0x22985a,this[_0xb2a929(0xfe)]=_0x47d837,this['_configService']=_0x31550e,this[_0xb2a929(0x1da)](),this[_0xb2a929(0x192)]();}['_initAutoConnect'](){const _0xca72e4=_0x1529b5,_0x4e8811=this[_0xca72e4(0x169)][_0xca72e4(0xb0)](y);_0x4e8811!=null&&_0x4e8811[_0xca72e4(0x1dd)]&&(this['_connectionController'][_0xca72e4(0x171)]=!0x1);}[_0x1529b5(0x192)](){const _0x2a7cae=_0x1529b5,_0x551277=this[_0x2a7cae(0x169)][_0x2a7cae(0xb0)](y);(_0x551277==null?void 0x0:_0x551277['showStatus'])!==!0x1&&this[_0x2a7cae(0x162)](this[_0x2a7cae(0xfe)][_0x2a7cae(0xe8)](_0xae7773[_0x2a7cae(0xf3)],()=>{const _0x2481a7=_0x2a7cae;var _0x28523e;return _0x514257(un({'status$':this[_0x2481a7(0xf9)][_0x2481a7(0x1b8)],'error$':this[_0x2481a7(0xf9)][_0x2481a7(0x154)],'onConfigure':()=>this[_0x2481a7(0xcc)](),'showClickable':(_0x28523e=_0x551277==null?void 0x0:_0x551277[_0x2481a7(0x1dd)])!=null?_0x28523e:!0x1}),this[_0x2481a7(0x15c)]);}));}[_0x1529b5(0xcc)](){const _0x5bb6b7=_0x1529b5;this['_injector'][_0x5bb6b7(0x1d5)](I)[_0x5bb6b7(0x153)]();}};O=ln([M(0x0,_0x3196b9(_0x772e7d)),M(0x1,_0x3196b9(_0x178875)),M(0x2,_0x6c712),M(0x3,_0x4468c3)],O);function un(_0x18de36){const {status$:_0x58e728,error$:_0x4934b1,onConfigure:_0x2e2fb2,showClickable:_0x53bb48}=_0x18de36;return function(){return _0xc335bf(cn,{'status$':_0x58e728,'error$':_0x4934b1,'onConfigure':_0x2e2fb2,'showClickable':_0x53bb48});};}function vn(_0x35a978){const _0x2cf859=_0x1529b5;return{'id':V['id'],'type':_0x381790[_0x2cf859(0x105)],'icon':_0x2cf859(0xce),'title':_0x2cf859(0xe7),'tooltip':_0x2cf859(0xe7)};}const dn={[_0x2d214b['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x1e2f71,_0x56e5fb,_0x3d9f18,_0x5478a1)=>{const _0x5a964a=_0x1529b5;for(var _0x3b286f=_0x5478a1>0x1?void 0x0:_0x5478a1?gn(_0x56e5fb,_0x3d9f18):_0x56e5fb,_0x146df1=_0x1e2f71[_0x5a964a(0x10d)]-0x1,_0x5661f0;_0x146df1>=0x0;_0x146df1--)(_0x5661f0=_0x1e2f71[_0x146df1])&&(_0x3b286f=_0x5661f0(_0x3b286f)||_0x3b286f);return _0x3b286f;},re=(_0x44f95e,_0x3aa49a)=>(_0x4efc2b,_0x297e62)=>_0x3aa49a(_0x4efc2b,_0x297e62,_0x44f95e);let D=class extends _0x48bc64{constructor(_0x27838d,_0x184983){const _0x1fe1c1=_0x1529b5;super(),this['_commandService']=_0x27838d,this[_0x1fe1c1(0x125)]=_0x184983,this['_initializeCommands'](),this[_0x1fe1c1(0x17f)]();}[_0x1529b5(0xc6)](){const _0x27f4f5=_0x1529b5;[V][_0x27f4f5(0x1f1)](_0x23d180=>{const _0x5acf9d=_0x27f4f5;this[_0x5acf9d(0x162)](this[_0x5acf9d(0x1fa)][_0x5acf9d(0x1e8)](_0x23d180));});}[_0x1529b5(0x17f)](){const _0x1a3af2=_0x1529b5;this[_0x1a3af2(0x125)][_0x1a3af2(0xe4)](dn);}};D=pn([re(0x0,_0x4f2ba8),re(0x1,_0x5b13d9)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1529b5(0x1b2),'connected':_0x1529b5(0xd0),'failed':_0x1529b5(0x1e4),'retrying':_0x1529b5(0x1e6),'unknown':_0x1529b5(0x18d),'unauthorized':_0x1529b5(0xea),'sessionOccupied':_0x1529b5(0x16e),'networkError':_0x1529b5(0x177),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1529b5(0x1d6),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1529b5(0x100),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1529b5(0x17a),'apiKeyPlaceholder':_0x1529b5(0x19c),'apiKeyHint':_0x1529b5(0x170),'enableAuth':_0x1529b5(0x10f),'enableAuthHint':_0x1529b5(0xd7),'connectionInfo':_0x1529b5(0xf2),'mcpClientConfig':_0x1529b5(0xf2),'configInstructions':_0x1529b5(0x113),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1529b5(0x1b4),'configStep2':_0x1529b5(0xae),'configStep3':_0x1529b5(0x1d9),'sessionId':'Session\x20ID','sessionIdDescription':_0x1529b5(0x183),'authorizationDescription':_0x1529b5(0x127),'configParameters':_0x1529b5(0x151),'maxRetries':'Max\x20Retries','save':_0x1529b5(0x1d7),'saving':_0x1529b5(0x18f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1529b5(0x157),'configSaved':_0x1529b5(0xaf),'configError':_0x1529b5(0x13d),'apiApplyInfo':{'title':_0x1529b5(0x1f8),'description':_0x1529b5(0x152),'univerAiLabel':_0x1529b5(0x14a),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1529b5(0x1fc),'apiKeyTooShort':_0x1529b5(0x194),'invalidConfig':_0x1529b5(0x1a6),'invalidApiKey':_0x1529b5(0xd4)},'connectionStatus':{'disconnected':_0x1529b5(0x120),'connecting':_0x1529b5(0x12c),'connected':_0x1529b5(0x1c9),'failed':_0x1529b5(0x11e),'retrying':_0x1529b5(0x181)},'connectionError':{'unauthorized':_0x1529b5(0xb6),'sessionOccupied':_0x1529b5(0xbd),'networkError':_0x1529b5(0x12b),'maxRetriesExceeded':_0x1529b5(0x1c1)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x1529b5(0xbe),'retrying':_0x1529b5(0x146),'unknown':_0x1529b5(0x12a),'unauthorized':_0x1529b5(0x12e),'sessionOccupied':_0x1529b5(0x12f),'networkError':_0x1529b5(0xab),'maxRetriesExceeded':_0x1529b5(0x1d2),'clickToConnect':_0x1529b5(0x14d),'clickToConfigure':_0x1529b5(0x1b6)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x1529b5(0x1ee),'apiKeyPlaceholder':_0x1529b5(0x18a),'apiKeyHint':_0x1529b5(0x1bd),'enableAuth':'启用身份验证','enableAuthHint':_0x1529b5(0x1d1),'connectionInfo':_0x1529b5(0x1ea),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x1529b5(0xbb),'configStepTitle':'配置步骤:','configStep1':_0x1529b5(0x141),'configStep2':_0x1529b5(0x15e),'configStep3':_0x1529b5(0x180),'sessionId':_0x1529b5(0x138),'sessionIdDescription':_0x1529b5(0x1b0),'authorizationDescription':_0x1529b5(0x144),'configParameters':_0x1529b5(0x1ac),'maxRetries':'最大重试次数','save':_0x1529b5(0x1ba),'saving':_0x1529b5(0x199),'note1':_0x1529b5(0xc4),'note2':_0x1529b5(0x131),'configSaved':_0x1529b5(0x1db),'configError':_0x1529b5(0x142),'apiApplyInfo':{'title':_0x1529b5(0xac),'description':_0x1529b5(0xd2),'univerAiLabel':_0x1529b5(0x189),'getStarted':_0x1529b5(0x1dc)},'validation':{'apiKeyRequired':_0x1529b5(0x10e),'apiKeyTooShort':_0x1529b5(0x19f),'invalidConfig':_0x1529b5(0x1d3),'invalidApiKey':_0x1529b5(0x15a)},'connectionStatus':{'disconnected':'未连接','connecting':_0x1529b5(0xf5),'connected':_0x1529b5(0x1c0),'failed':'连接失败','retrying':_0x1529b5(0xc2)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x1529b5(0x187),'networkError':_0x1529b5(0x123),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x1529b5(0xcb)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0xe64e11,_0x1a2c9c,_0x472817)=>_0x1a2c9c in _0xe64e11?fn(_0xe64e11,_0x1a2c9c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x472817}):_0xe64e11[_0x1a2c9c]=_0x472817,mn=(_0x1837ea,_0x3d5db4,_0x11727f,_0x5064ec)=>{for(var _0x1dd328=_0x5064ec>0x1?void 0x0:_0x5064ec?hn(_0x3d5db4,_0x11727f):_0x3d5db4,_0x44d5a2=_0x1837ea['length']-0x1,_0x23c8d5;_0x44d5a2>=0x0;_0x44d5a2--)(_0x23c8d5=_0x1837ea[_0x44d5a2])&&(_0x1dd328=_0x23c8d5(_0x1dd328)||_0x1dd328);return _0x1dd328;},P=(_0x44af86,_0x5b0c11)=>(_0x3da71e,_0x34cf77)=>_0x5b0c11(_0x3da71e,_0x34cf77,_0x44af86),_n=(_0x165d73,_0x2b7970,_0x56a1f5)=>Cn(_0x165d73,_0x2b7970+'',_0x56a1f5);let j=class extends _0x4b4398{constructor(_0x4da6aa=ie,_0x4ac114,_0x5cacd9,_0x1104dc,_0x57d601,_0x5a23fe){const _0x2b0c25=_0x1529b5;super(),this[_0x2b0c25(0x101)]=_0x4da6aa,this[_0x2b0c25(0x15c)]=_0x4ac114,this[_0x2b0c25(0x169)]=_0x5cacd9,this[_0x2b0c25(0xfe)]=_0x1104dc,this[_0x2b0c25(0xe2)]=_0x57d601,this[_0x2b0c25(0x1bb)]=_0x5a23fe;const {..._0x52019f}=_0x403799({},ie,this[_0x2b0c25(0x101)]);this['_configService'][_0x2b0c25(0x119)](y,_0x52019f);}async[_0x1529b5(0xc5)](){const _0x3e7306=_0x1529b5,_0x3f3ca9=[[O],[I],[D]];this[_0x3e7306(0x15c)]['has'](_0x490fbe)||_0x3f3ca9[_0x3e7306(0xb4)]([_0x490fbe,{'useClass':_0x56fc21}]),_0x3f3ca9['forEach'](_0x2fb8d3=>this[_0x3e7306(0x15c)][_0x3e7306(0x16f)](_0x2fb8d3)),this[_0x3e7306(0x15c)][_0x3e7306(0x1d5)](O),this[_0x3e7306(0x15c)][_0x3e7306(0x1d5)](I),this[_0x3e7306(0x15c)][_0x3e7306(0x1d5)](D);}};_n(j,_0x1529b5(0x136),_0x1529b5(0x1f5)),j=mn([_0x51f2fd(_0x238564),P(0x1,_0x3196b9(_0x772e7d)),P(0x2,_0x4468c3),P(0x3,_0x6c712),P(0x4,_0x4818bf),P(0x5,_0x3196b9(_0x2c192b))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- const _0x2bf633=_0xd5aa;(function(_0x306395,_0x3bf970){const _0x15f091=_0xd5aa,_0xc61bb3=_0x306395();while(!![]){try{const _0x42dbdb=parseInt(_0x15f091(0x128))/0x1+parseInt(_0x15f091(0x124))/0x2*(-parseInt(_0x15f091(0x121))/0x3)+-parseInt(_0x15f091(0x11b))/0x4*(-parseInt(_0x15f091(0x11a))/0x5)+-parseInt(_0x15f091(0x12e))/0x6*(-parseInt(_0x15f091(0x12c))/0x7)+parseInt(_0x15f091(0x12f))/0x8+parseInt(_0x15f091(0x138))/0x9*(-parseInt(_0x15f091(0x126))/0xa)+parseInt(_0x15f091(0x129))/0xb*(-parseInt(_0x15f091(0x11c))/0xc);if(_0x42dbdb===_0x3bf970)break;else _0xc61bb3['push'](_0xc61bb3['shift']());}catch(_0x577238){_0xc61bb3['push'](_0xc61bb3['shift']());}}}(_0x559b,0x584cd));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2bf633(0x13c),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2bf633(0x115),'unauthorized':_0x2bf633(0x133),'sessionOccupied':_0x2bf633(0x112),'networkError':_0x2bf633(0x12d),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2bf633(0x134)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2bf633(0x113),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2bf633(0x12b),'apiKeyHint':_0x2bf633(0x110),'enableAuth':_0x2bf633(0x130),'enableAuthHint':_0x2bf633(0x117),'connectionInfo':_0x2bf633(0x13d),'mcpClientConfig':_0x2bf633(0x13d),'configInstructions':_0x2bf633(0x114),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2bf633(0x13e),'configStep2':_0x2bf633(0x137),'configStep3':_0x2bf633(0x120),'sessionId':_0x2bf633(0x127),'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':_0x2bf633(0x12a),'maxRetries':_0x2bf633(0x11d),'save':_0x2bf633(0x13b),'saving':'Saving...','note1':_0x2bf633(0x135),'note2':_0x2bf633(0x136),'configSaved':_0x2bf633(0x11f),'configError':_0x2bf633(0x11e),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2bf633(0x123),'univerAiLabel':_0x2bf633(0x111),'getStarted':_0x2bf633(0x119)},'validation':{'apiKeyRequired':_0x2bf633(0x122),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2bf633(0x118)},'connectionStatus':{'disconnected':_0x2bf633(0x132),'connecting':_0x2bf633(0x131),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x2bf633(0x116)},'connectionError':{'unauthorized':_0x2bf633(0x13a),'sessionOccupied':_0x2bf633(0x125),'networkError':_0x2bf633(0x139),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};function _0xd5aa(_0xd8d418,_0x434ddf){const _0x559b4e=_0x559b();return _0xd5aa=function(_0xd5aa8c,_0x5d231b){_0xd5aa8c=_0xd5aa8c-0x110;let _0x217017=_0x559b4e[_0xd5aa8c];return _0x217017;},_0xd5aa(_0xd8d418,_0x434ddf);}function _0x559b(){const _0xda356f=['Configuration\x20Parameters:','Enter\x20your\x20API\x20key','93366hMlqye','MCP:\x20Network\x20Error','180XkvrIC','5477016kDPEVf','Enable\x20Authentication','Connecting...','Disconnected','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','563814BqhkVM','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Save\x20Configuration','MCP\x20Connecting...','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','5eXJFuI','759336fCZLBT','4445304FVMyeX','Max\x20Retries','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','592761WsPeCP','API\x20key\x20is\x20required','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','4AKldaZ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','40CXDtEE','Session\x20ID','103276iSXSBF','11Mqtwvd'];_0x559b=function(){return _0xda356f;};return _0x559b();}
1
+ function _0x5e55(_0x27a45f,_0x570d77){const _0x23d989=_0x23d9();return _0x5e55=function(_0x5e552e,_0x3ebfe9){_0x5e552e=_0x5e552e-0x1e7;let _0x4575d3=_0x23d989[_0x5e552e];return _0x4575d3;},_0x5e55(_0x27a45f,_0x570d77);}const _0x54c4ea=_0x5e55;function _0x23d9(){const _0x3b1ae7=['150prQoQL','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','3554YzWWNg','Invalid\x20configuration','856764GcKRxP','MCP:\x20Unauthorized','Configuration\x20Steps:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','50795DRteED','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','317568jnXVAt','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Network\x20Error','2219238RQopGi','Configuration\x20saved\x20successfully','MCP\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Save\x20Configuration','1797120lPbZXT','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connecting...','5094369IzttPL','Disconnected','Connected','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','264AralRl','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20ID','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20Console','MCP\x20Disconnected','Retrying...','Enable\x20Authentication'];_0x23d9=function(){return _0x3b1ae7;};return _0x23d9();}(function(_0xfb73c5,_0x426980){const _0x457862=_0x5e55,_0x4a12f0=_0xfb73c5();while(!![]){try{const _0x18669b=-parseInt(_0x457862(0x20d))/0x1*(-parseInt(_0x457862(0x20a))/0x2)+-parseInt(_0x457862(0x20f))/0x3+parseInt(_0x457862(0x1f4))/0x4+parseInt(_0x457862(0x1e7))/0x5*(-parseInt(_0x457862(0x200))/0x6)+-parseInt(_0x457862(0x1ef))/0x7+parseInt(_0x457862(0x1ea))/0x8+parseInt(_0x457862(0x1f7))/0x9;if(_0x18669b===_0x426980)break;else _0x4a12f0['push'](_0x4a12f0['shift']());}catch(_0x169335){_0x4a12f0['push'](_0x4a12f0['shift']());}}}(_0x23d9,0x4264d));const e={'mcpStatus':{'disconnected':_0x54c4ea(0x207),'connecting':_0x54c4ea(0x1f6),'connected':_0x54c4ea(0x1eb),'failed':_0x54c4ea(0x213),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x54c4ea(0x210),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x54c4ea(0x1ee),'maxRetriesExceeded':_0x54c4ea(0x1f5),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x54c4ea(0x204)},'mcpConfig':{'title':_0x54c4ea(0x1f1),'description':_0x54c4ea(0x1e8),'apiKey':_0x54c4ea(0x1fa),'apiKeyPlaceholder':_0x54c4ea(0x20b),'apiKeyHint':_0x54c4ea(0x1fc),'enableAuth':_0x54c4ea(0x209),'enableAuthHint':_0x54c4ea(0x1ff),'connectionInfo':_0x54c4ea(0x214),'mcpClientConfig':_0x54c4ea(0x214),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x54c4ea(0x211),'configStep1':_0x54c4ea(0x1ed),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x54c4ea(0x203),'sessionIdDescription':_0x54c4ea(0x1fe),'authorizationDescription':_0x54c4ea(0x20c),'configParameters':_0x54c4ea(0x215),'maxRetries':_0x54c4ea(0x1fd),'save':_0x54c4ea(0x1f3),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x54c4ea(0x1ec),'configSaved':_0x54c4ea(0x1f0),'configError':_0x54c4ea(0x205),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x54c4ea(0x206),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x54c4ea(0x212),'invalidConfig':_0x54c4ea(0x20e),'invalidApiKey':_0x54c4ea(0x1fb)},'connectionStatus':{'disconnected':_0x54c4ea(0x1f8),'connecting':'Connecting...','connected':_0x54c4ea(0x1f9),'failed':_0x54c4ea(0x1e9),'retrying':_0x54c4ea(0x208)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x54c4ea(0x1f2),'networkError':_0x54c4ea(0x201),'maxRetriesExceeded':_0x54c4ea(0x202)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- function _0x220d(_0x1222dc,_0x514e04){const _0x3ec510=_0x3ec5();return _0x220d=function(_0x220d9f,_0xeebdf2){_0x220d9f=_0x220d9f-0x7b;let _0x582075=_0x3ec510[_0x220d9f];return _0x582075;},_0x220d(_0x1222dc,_0x514e04);}const _0x158e05=_0x220d;function _0x3ec5(){const _0x1dedef=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20with\x20Bearer\x20prefix.','Univer\x20AI\x20Console','Session\x20ID','2719641zIflWX','3045EsDVZU','What\x20is\x20API\x20Key?','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','Configuration\x20Steps:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','708tKIkwI','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','1143612shqZvJ','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','Invalid\x20configuration','Max\x20Retries','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20saved\x20successfully','4392032IQlDEl','API\x20key\x20is\x20required','Enable\x20Authentication','11343960chNNKN','10748HOMeNO','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','67iQKsCH','Saving...','Configuration\x20Parameters:','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5895456eoSaax','Copy\x20the\x20JSON\x20configuration\x20below'];_0x3ec5=function(){return _0x1dedef;};return _0x3ec5();}(function(_0x1821e1,_0x4089ed){const _0x45b61b=_0x220d,_0x4d0bae=_0x1821e1();while(!![]){try{const _0x123b72=parseInt(_0x45b61b(0x96))/0x1*(-parseInt(_0x45b61b(0x94))/0x2)+-parseInt(_0x45b61b(0xa1))/0x3+parseInt(_0x45b61b(0x87))/0x4+-parseInt(_0x45b61b(0xa2))/0x5*(parseInt(_0x45b61b(0x84))/0x6)+parseInt(_0x45b61b(0x9b))/0x7+-parseInt(_0x45b61b(0x90))/0x8+parseInt(_0x45b61b(0x93))/0x9;if(_0x123b72===_0x4089ed)break;else _0x4d0bae['push'](_0x4d0bae['shift']());}catch(_0x3dce9c){_0x4d0bae['push'](_0x4d0bae['shift']());}}}(_0x3ec5,0x7a558));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x158e05(0x7e),'unauthorized':_0x158e05(0x7c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x158e05(0x99),'maxRetriesExceeded':_0x158e05(0x86),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x158e05(0x8a),'description':_0x158e05(0x83),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x158e05(0x88),'apiKeyHint':_0x158e05(0x85),'enableAuth':_0x158e05(0x92),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x158e05(0x82),'mcpClientConfig':_0x158e05(0x82),'configInstructions':_0x158e05(0x8e),'configStepTitle':_0x158e05(0x7f),'configStep1':_0x158e05(0x9c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x158e05(0x95),'sessionId':_0x158e05(0xa0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x158e05(0x9e),'configParameters':_0x158e05(0x98),'maxRetries':_0x158e05(0x8c),'save':_0x158e05(0x8d),'saving':_0x158e05(0x97),'note1':_0x158e05(0x80),'note2':_0x158e05(0x7d),'configSaved':_0x158e05(0x8f),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x158e05(0x7b),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x158e05(0x9f),'getStarted':_0x158e05(0x81)},'validation':{'apiKeyRequired':_0x158e05(0x91),'apiKeyTooShort':_0x158e05(0x89),'invalidConfig':_0x158e05(0x8b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x158e05(0x9a),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x158e05(0x9d),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};
1
+ function _0xbd66(_0xe60e74,_0x26a54d){const _0x283d1f=_0x283d();return _0xbd66=function(_0xbd66c1,_0x414fa4){_0xbd66c1=_0xbd66c1-0x12d;let _0xec1ce7=_0x283d1f[_0xbd66c1];return _0xec1ce7;},_0xbd66(_0xe60e74,_0x26a54d);}const _0x45a8ad=_0xbd66;(function(_0x1b1399,_0x1324b4){const _0x5c33c5=_0xbd66,_0x122ca5=_0x1b1399();while(!![]){try{const _0x35d0a3=parseInt(_0x5c33c5(0x133))/0x1+-parseInt(_0x5c33c5(0x138))/0x2+-parseInt(_0x5c33c5(0x142))/0x3*(-parseInt(_0x5c33c5(0x139))/0x4)+parseInt(_0x5c33c5(0x145))/0x5+parseInt(_0x5c33c5(0x147))/0x6+parseInt(_0x5c33c5(0x150))/0x7+-parseInt(_0x5c33c5(0x14e))/0x8;if(_0x35d0a3===_0x1324b4)break;else _0x122ca5['push'](_0x122ca5['shift']());}catch(_0x1c9c98){_0x122ca5['push'](_0x122ca5['shift']());}}}(_0x283d,0xa9fa1));const e={'mcpStatus':{'disconnected':_0x45a8ad(0x14c),'connecting':_0x45a8ad(0x140),'connected':_0x45a8ad(0x155),'failed':'MCP\x20Connection\x20Failed','retrying':_0x45a8ad(0x13e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x45a8ad(0x14d),'sessionOccupied':_0x45a8ad(0x12f),'networkError':_0x45a8ad(0x14f),'maxRetriesExceeded':_0x45a8ad(0x13d),'clickToConnect':_0x45a8ad(0x14a),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x45a8ad(0x151),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x45a8ad(0x148),'apiKeyHint':_0x45a8ad(0x152),'enableAuth':_0x45a8ad(0x136),'enableAuthHint':_0x45a8ad(0x157),'connectionInfo':_0x45a8ad(0x143),'mcpClientConfig':_0x45a8ad(0x143),'configInstructions':_0x45a8ad(0x132),'configStepTitle':_0x45a8ad(0x137),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x45a8ad(0x144),'sessionId':'Session\x20ID','sessionIdDescription':_0x45a8ad(0x130),'authorizationDescription':_0x45a8ad(0x146),'configParameters':_0x45a8ad(0x13a),'maxRetries':'Max\x20Retries','save':_0x45a8ad(0x135),'saving':_0x45a8ad(0x13b),'note1':_0x45a8ad(0x156),'note2':_0x45a8ad(0x141),'configSaved':_0x45a8ad(0x134),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x45a8ad(0x158),'description':_0x45a8ad(0x149),'univerAiLabel':_0x45a8ad(0x154),'getStarted':_0x45a8ad(0x153)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x45a8ad(0x13f),'invalidApiKey':_0x45a8ad(0x159)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0x45a8ad(0x12e)},'connectionError':{'unauthorized':_0x45a8ad(0x13c),'sessionOccupied':_0x45a8ad(0x131),'networkError':_0x45a8ad(0x14b),'maxRetriesExceeded':_0x45a8ad(0x12d)}}};function _0x283d(){const _0x4ff12c=['Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','283850xEcieh','Configuration\x20saved\x20successfully','Save\x20Configuration','Enable\x20Authentication','Configuration\x20Steps:','2696426ZshjnW','2714792IxFrOA','Configuration\x20Parameters:','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Retrying...','Invalid\x20configuration','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3itAzQY','MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','6293780IpcAEE','API\x20key\x20with\x20Bearer\x20prefix.','1583214uIOYuR','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20connect\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Disconnected','MCP:\x20Unauthorized','4070560QsYoFs','MCP:\x20Network\x20Error','476595OmLcVw','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Get\x20your\x20API\x20key\x20in\x20seconds','Univer\x20AI\x20Console','MCP\x20Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20authentication\x20for\x20secure\x20connections','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x283d=function(){return _0x4ff12c;};return _0x283d();}export{e as default};
@@ -1 +1 @@
1
- function _0x2826(_0x341ff0,_0x3d18cd){const _0x3b50e8=_0x3b50();return _0x2826=function(_0x282615,_0x572c15){_0x282615=_0x282615-0xaa;let _0x4bcb74=_0x3b50e8[_0x282615];return _0x4bcb74;},_0x2826(_0x341ff0,_0x3d18cd);}const _0x13ff4c=_0x2826;(function(_0x16cd0b,_0x2ca7a4){const _0x2fe59f=_0x2826,_0x26b57a=_0x16cd0b();while(!![]){try{const _0x410d78=-parseInt(_0x2fe59f(0xd4))/0x1+parseInt(_0x2fe59f(0xb1))/0x2+parseInt(_0x2fe59f(0xbd))/0x3+-parseInt(_0x2fe59f(0xaf))/0x4+parseInt(_0x2fe59f(0xcb))/0x5+parseInt(_0x2fe59f(0xdb))/0x6*(-parseInt(_0x2fe59f(0xdc))/0x7)+parseInt(_0x2fe59f(0xb4))/0x8;if(_0x410d78===_0x2ca7a4)break;else _0x26b57a['push'](_0x26b57a['shift']());}catch(_0x342df6){_0x26b57a['push'](_0x26b57a['shift']());}}}(_0x3b50,0x3d835));const e={'mcpStatus':{'disconnected':_0x13ff4c(0xc0),'connecting':_0x13ff4c(0xd6),'connected':_0x13ff4c(0xd5),'failed':_0x13ff4c(0xcf),'retrying':'MCP\x20Retrying...','unknown':_0x13ff4c(0xdd),'unauthorized':_0x13ff4c(0xab),'sessionOccupied':_0x13ff4c(0xdf),'networkError':_0x13ff4c(0xd3),'maxRetriesExceeded':_0x13ff4c(0xaa),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x13ff4c(0xbb)},'mcpConfig':{'title':_0x13ff4c(0xac),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x13ff4c(0xb7),'apiKeyPlaceholder':_0x13ff4c(0xc4),'apiKeyHint':_0x13ff4c(0xd0),'enableAuth':_0x13ff4c(0xc3),'enableAuthHint':_0x13ff4c(0xce),'connectionInfo':_0x13ff4c(0xbf),'mcpClientConfig':_0x13ff4c(0xbf),'configInstructions':_0x13ff4c(0xb3),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x13ff4c(0xcd),'configStep2':_0x13ff4c(0xbe),'configStep3':_0x13ff4c(0xbc),'sessionId':_0x13ff4c(0xd7),'sessionIdDescription':_0x13ff4c(0xd9),'authorizationDescription':_0x13ff4c(0xda),'configParameters':_0x13ff4c(0xca),'maxRetries':_0x13ff4c(0xc7),'save':_0x13ff4c(0xba),'saving':_0x13ff4c(0xae),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x13ff4c(0xc1),'configSaved':_0x13ff4c(0xde),'configError':_0x13ff4c(0xc5),'apiApplyInfo':{'title':_0x13ff4c(0xd1),'description':_0x13ff4c(0xad),'univerAiLabel':_0x13ff4c(0xb6),'getStarted':_0x13ff4c(0xc9)},'validation':{'apiKeyRequired':_0x13ff4c(0xd2),'apiKeyTooShort':_0x13ff4c(0xc8),'invalidConfig':_0x13ff4c(0xb9),'invalidApiKey':_0x13ff4c(0xb2)},'connectionStatus':{'disconnected':_0x13ff4c(0xd8),'connecting':'Connecting...','connected':'Connected','failed':_0x13ff4c(0xb0),'retrying':_0x13ff4c(0xb8)},'connectionError':{'unauthorized':_0x13ff4c(0xb5),'sessionOccupied':_0x13ff4c(0xcc),'networkError':_0x13ff4c(0xc6),'maxRetriesExceeded':_0x13ff4c(0xc2)}}},n=e;function _0x3b50(){const _0x11115e=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','345864kZNxex','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','Enter\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Parameters:','2444470YfwrkF','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','335427DufyEM','MCP\x20Connected','MCP\x20Connecting...','Session\x20ID','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20with\x20Bearer\x20prefix.','12894GgItEW','1561wAupOt','MCP\x20Unknown\x20Status','Configuration\x20saved\x20successfully','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Unauthorized','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.','Saving...','1919516cRpoNA','Connection\x20Failed','802820ZgmJtA','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','4327184VVJtUt','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Univer\x20AI\x20Console','API\x20Key','Retrying...','Invalid\x20configuration','Save\x20Configuration','Click\x20to\x20configure\x20MCP'];_0x3b50=function(){return _0x11115e;};return _0x3b50();}export{n as default};
1
+ function _0x448b(){const _0x212ce4=['Session\x20ID','Invalid\x20configuration','162804YhzcVz','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','Retrying...','225CMIwfZ','Connecting...','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','1ICtAke','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','MCP\x20Connected','Univer\x20AI\x20Console','API\x20key\x20with\x20Bearer\x20prefix.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','Click\x20to\x20configure\x20MCP','15Gedhic','Max\x20Retries','288134wfTEER','Configuration\x20saved\x20successfully','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','14529936zMtxFQ','MCP\x20Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1591658UfmZPD','11mmPKpK','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4399254GuHRYw','MCP\x20Client\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','271760LZajOE','MCP\x20Retrying...','API\x20key\x20is\x20required','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','24uNksBW','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','120930WUiVVz','API\x20Key'];_0x448b=function(){return _0x212ce4;};return _0x448b();}function _0x1504(_0x4f672c,_0xb598fa){const _0x448b8f=_0x448b();return _0x1504=function(_0x1504cc,_0x5583ef){_0x1504cc=_0x1504cc-0xda;let _0x521e5c=_0x448b8f[_0x1504cc];return _0x521e5c;},_0x1504(_0x4f672c,_0xb598fa);}const _0x57fd42=_0x1504;(function(_0x427451,_0x4c2158){const _0x15609f=_0x1504,_0x278234=_0x427451();while(!![]){try{const _0x434a8e=-parseInt(_0x15609f(0x108))/0x1*(-parseInt(_0x15609f(0xe6))/0x2)+-parseInt(_0x15609f(0xdc))/0x3*(parseInt(_0x15609f(0x100))/0x4)+-parseInt(_0x15609f(0xfc))/0x5+-parseInt(_0x15609f(0xee))/0x6+-parseInt(_0x15609f(0xde))/0x7*(-parseInt(_0x15609f(0xf7))/0x8)+-parseInt(_0x15609f(0x104))/0x9*(parseInt(_0x15609f(0xf3))/0xa)+parseInt(_0x15609f(0xe7))/0xb*(parseInt(_0x15609f(0xe3))/0xc);if(_0x434a8e===_0x4c2158)break;else _0x278234['push'](_0x278234['shift']());}catch(_0x2fa13e){_0x278234['push'](_0x278234['shift']());}}}(_0x448b,0x77973));const e={'mcpStatus':{'disconnected':_0x57fd42(0xf9),'connecting':_0x57fd42(0xe4),'connected':_0x57fd42(0x10c),'failed':_0x57fd42(0xe2),'retrying':_0x57fd42(0xf4),'unknown':_0x57fd42(0xea),'unauthorized':_0x57fd42(0x109),'sessionOccupied':_0x57fd42(0x107),'networkError':_0x57fd42(0xec),'maxRetriesExceeded':_0x57fd42(0xe1),'clickToConnect':_0x57fd42(0xda),'clickToConfigure':_0x57fd42(0xdb)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x57fd42(0xe8),'apiKey':_0x57fd42(0xfd),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x57fd42(0xe5),'enableAuth':_0x57fd42(0x106),'enableAuthHint':_0x57fd42(0xf8),'connectionInfo':_0x57fd42(0xef),'mcpClientConfig':_0x57fd42(0xef),'configInstructions':_0x57fd42(0xf1),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x57fd42(0x10a),'sessionId':_0x57fd42(0xfe),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x57fd42(0x10e),'configParameters':_0x57fd42(0xe9),'maxRetries':_0x57fd42(0xdd),'save':'Save\x20Configuration','saving':_0x57fd42(0x102),'note1':_0x57fd42(0xe0),'note2':_0x57fd42(0xfa),'configSaved':_0x57fd42(0xdf),'configError':_0x57fd42(0x10b),'apiApplyInfo':{'title':_0x57fd42(0xf2),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x57fd42(0x10d),'getStarted':_0x57fd42(0x101)},'validation':{'apiKeyRequired':_0x57fd42(0xf5),'apiKeyTooShort':_0x57fd42(0xeb),'invalidConfig':_0x57fd42(0xff),'invalidApiKey':_0x57fd42(0xed)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x57fd42(0x105),'connected':_0x57fd42(0xfb),'failed':'Connection\x20Failed','retrying':_0x57fd42(0x103)},'connectionError':{'unauthorized':_0x57fd42(0xf0),'sessionOccupied':_0x57fd42(0x10f),'networkError':_0x57fd42(0xf6),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};