@univerjs-pro/mcp-ui 0.10.8-nightly.202509200616 → 0.10.9-experimental.20250925-61b61a0

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 (50) 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/types/controllers/config.schema.d.ts +7 -0
  35. package/lib/types/controllers/mcp-connection-ui.controller.d.ts +4 -2
  36. package/lib/types/locale/en-US.d.ts +2 -4
  37. package/lib/types/locale/zh-CN.d.ts +2 -4
  38. package/lib/types/views/components/mcp-status.d.ts +2 -0
  39. package/lib/umd/index.js +1 -1
  40. package/lib/umd/locale/ca-ES.js +1 -1
  41. package/lib/umd/locale/en-US.js +1 -1
  42. package/lib/umd/locale/es-ES.js +1 -1
  43. package/lib/umd/locale/fa-IR.js +1 -1
  44. package/lib/umd/locale/fr-FR.js +1 -1
  45. package/lib/umd/locale/ko-KR.js +1 -1
  46. package/lib/umd/locale/ru-RU.js +1 -1
  47. package/lib/umd/locale/vi-VN.js +1 -1
  48. package/lib/umd/locale/zh-CN.js +1 -1
  49. package/lib/umd/locale/zh-TW.js +1 -1
  50. package/package.json +7 -7
@@ -1 +1 @@
1
- 'use strict';function _0x4d8b(){const _0x2709ce=['MCP\x20Client\x20Configuration','Connection\x20Failed','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Steps:','MCP:\x20API\x20Key\x20Missing','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','Univer\x20AI\x20Console','160DCrfdY','API\x20key\x20is\x20required','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Session\x20ID','Connected','MCP\x20Connecting...','MCP\x20Unknown\x20Status','335007tpUrMB','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Disconnected','64600yFGrOe','397425MiwsGd','1705272GZTBKW','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','MCP\x20Connection\x20Failed','1405236vJnlZp','MCP\x20Connected','API\x20Key','3106eDOTql','Copy\x20the\x20JSON\x20configuration\x20below','139794zxmnqi','MCP\x20Disconnected','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Invalid\x20API\x20Key','Click\x20to\x20connect\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required\x20to\x20connect','Max\x20Retries','Enable\x20Authentication','MCP:\x20Session\x20Occupied','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','93dOxCAl','Enter\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','5fpjDjH','Saving...','Retrying...','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','Get\x20your\x20API\x20key\x20in\x20seconds','exports'];_0x4d8b=function(){return _0x2709ce;};return _0x4d8b();}const _0x598b52=_0x1c9b;(function(_0x443f32,_0x457d0a){const _0xceb966=_0x1c9b,_0xbf104c=_0x443f32();while(!![]){try{const _0x77ee78=parseInt(_0xceb966(0x1fa))/0x1+-parseInt(_0xceb966(0x202))/0x2*(parseInt(_0xceb966(0x213))/0x3)+parseInt(_0xceb966(0x1f9))/0x4*(parseInt(_0xceb966(0x218))/0x5)+parseInt(_0xceb966(0x204))/0x6+parseInt(_0xceb966(0x1ff))/0x7+parseInt(_0xceb966(0x1fb))/0x8+-parseInt(_0xceb966(0x1f5))/0x9*(parseInt(_0xceb966(0x1ee))/0xa);if(_0x77ee78===_0x457d0a)break;else _0xbf104c['push'](_0xbf104c['shift']());}catch(_0x2c5282){_0xbf104c['push'](_0xbf104c['shift']());}}}(_0x4d8b,0x328de));function _0x1c9b(_0x4f4040,_0x9f4205){const _0x4d8b19=_0x4d8b();return _0x1c9b=function(_0x1c9b80,_0x250767){_0x1c9b80=_0x1c9b80-0x1e7;let _0x22aa5a=_0x4d8b19[_0x1c9b80];return _0x22aa5a;},_0x1c9b(_0x4f4040,_0x9f4205);}const e={'mcpStatus':{'disconnected':_0x598b52(0x205),'connecting':_0x598b52(0x1f3),'connected':_0x598b52(0x200),'failed':_0x598b52(0x1fe),'retrying':_0x598b52(0x20b),'unknown':_0x598b52(0x1f4),'missingApiKey':_0x598b52(0x1ea),'invalidApiKey':_0x598b52(0x208),'sessionOccupied':_0x598b52(0x211),'networkError':_0x598b52(0x1fd),'maxRetriesExceeded':_0x598b52(0x20c),'clickToConnect':_0x598b52(0x209),'clickToConfigure':_0x598b52(0x1eb)},'mcpConfig':{'title':_0x598b52(0x21b),'description':_0x598b52(0x1fc),'apiKey':_0x598b52(0x201),'apiKeyPlaceholder':_0x598b52(0x214),'apiKeyHint':_0x598b52(0x21c),'enableAuth':_0x598b52(0x210),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x598b52(0x220),'mcpClientConfig':_0x598b52(0x220),'configInstructions':_0x598b52(0x1f6),'configStepTitle':_0x598b52(0x1e9),'configStep1':_0x598b52(0x203),'configStep2':_0x598b52(0x215),'configStep3':_0x598b52(0x1f7),'sessionId':_0x598b52(0x1f1),'sessionIdDescription':_0x598b52(0x217),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x598b52(0x222),'maxRetries':_0x598b52(0x20f),'save':'Save\x20Configuration','saving':_0x598b52(0x219),'note1':_0x598b52(0x207),'note2':_0x598b52(0x1e7),'configSaved':_0x598b52(0x21d),'configError':_0x598b52(0x206),'apiApplyInfo':{'title':_0x598b52(0x1ec),'description':_0x598b52(0x212),'univerAiLabel':_0x598b52(0x1ed),'getStarted':_0x598b52(0x21e)},'validation':{'apiKeyRequired':_0x598b52(0x1ef),'apiKeyTooShort':_0x598b52(0x20a),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x598b52(0x1e8)},'connectionStatus':{'disconnected':_0x598b52(0x1f8),'connecting':'Connecting...','connected':_0x598b52(0x1f2),'failed':_0x598b52(0x221),'retrying':_0x598b52(0x21a)},'connectionError':{'missingApiKey':_0x598b52(0x20e),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x598b52(0x1f0),'networkError':_0x598b52(0x216),'maxRetriesExceeded':_0x598b52(0x20d)}}},n=e;module[_0x598b52(0x21f)]=n;
1
+ 'use strict';function _0x5304(){const _0x1b1a57=['MCP\x20Connected','exports','Connected','1499998TxATJP','What\x20is\x20API\x20Key?','1852858CPGCeO','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','MCP\x20Client\x20Configuration','Session\x20ID','2150241LJmCzn','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connection\x20Failed','MCP\x20Connecting...','MCP:\x20Unauthorized','14469381MRfBct','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','Configuration\x20Steps:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','2732532QhugVR','Enable\x20Authentication','MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','10pxlGLX','Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','550531ZsGKwn','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','MCP\x20Unknown\x20Status','Get\x20your\x20API\x20key\x20in\x20seconds','24nqbkMw','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Invalid\x20configuration','2991726Ewgmmw','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enter\x20your\x20API\x20key'];_0x5304=function(){return _0x1b1a57;};return _0x5304();}const _0x6f73ad=_0x56d2;(function(_0x1a0404,_0x3bacac){const _0x4fdb31=_0x56d2,_0x1c1396=_0x1a0404();while(!![]){try{const _0x46e4ed=-parseInt(_0x4fdb31(0x1ff))/0x1+-parseInt(_0x4fdb31(0x1d9))/0x2+parseInt(_0x4fdb31(0x1e1))/0x3+-parseInt(_0x4fdb31(0x1f8))/0x4+-parseInt(_0x4fdb31(0x1fc))/0x5*(-parseInt(_0x4fdb31(0x1d3))/0x6)+parseInt(_0x4fdb31(0x1db))/0x7*(-parseInt(_0x4fdb31(0x204))/0x8)+parseInt(_0x4fdb31(0x1e8))/0x9;if(_0x46e4ed===_0x3bacac)break;else _0x1c1396['push'](_0x1c1396['shift']());}catch(_0x3b3502){_0x1c1396['push'](_0x1c1396['shift']());}}}(_0x5304,0x84cd1));function _0x56d2(_0x3dbebf,_0x5eb207){const _0x530400=_0x5304();return _0x56d2=function(_0x56d2fe,_0x2d1253){_0x56d2fe=_0x56d2fe-0x1d2;let _0x2c5d45=_0x530400[_0x56d2fe];return _0x2c5d45;},_0x56d2(_0x3dbebf,_0x5eb207);}const e={'mcpStatus':{'disconnected':_0x6f73ad(0x201),'connecting':_0x6f73ad(0x1e6),'connected':_0x6f73ad(0x1d6),'failed':_0x6f73ad(0x1ec),'retrying':'MCP\x20Retrying...','unknown':_0x6f73ad(0x202),'unauthorized':_0x6f73ad(0x1e7),'sessionOccupied':_0x6f73ad(0x1fe),'networkError':_0x6f73ad(0x1f0),'maxRetriesExceeded':_0x6f73ad(0x1f2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x6f73ad(0x1ed)},'mcpConfig':{'title':_0x6f73ad(0x1fa),'description':_0x6f73ad(0x1ef),'apiKey':_0x6f73ad(0x206),'apiKeyPlaceholder':_0x6f73ad(0x1d5),'apiKeyHint':_0x6f73ad(0x1e4),'enableAuth':_0x6f73ad(0x1f9),'enableAuthHint':_0x6f73ad(0x1fb),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x6f73ad(0x1df),'configInstructions':_0x6f73ad(0x1f5),'configStepTitle':_0x6f73ad(0x1ee),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x6f73ad(0x205),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x6f73ad(0x1e0),'sessionIdDescription':_0x6f73ad(0x1dd),'authorizationDescription':_0x6f73ad(0x1f6),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x6f73ad(0x1f4),'save':_0x6f73ad(0x1e3),'saving':_0x6f73ad(0x1de),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x6f73ad(0x200),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x6f73ad(0x1f7),'apiApplyInfo':{'title':_0x6f73ad(0x1da),'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':_0x6f73ad(0x1fd),'getStarted':_0x6f73ad(0x203)},'validation':{'apiKeyRequired':_0x6f73ad(0x1f1),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x6f73ad(0x1d2),'invalidApiKey':_0x6f73ad(0x1ea)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x6f73ad(0x1eb),'connected':_0x6f73ad(0x1d8),'failed':_0x6f73ad(0x1e5),'retrying':_0x6f73ad(0x1dc)},'connectionError':{'unauthorized':_0x6f73ad(0x1f3),'sessionOccupied':_0x6f73ad(0x1e9),'networkError':_0x6f73ad(0x1d4),'maxRetriesExceeded':_0x6f73ad(0x1e2)}}},n=e;module[_0x6f73ad(0x1d7)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x50495c=_0x41da;function _0x41da(_0x300282,_0x1d875f){const _0x3582f9=_0x3582();return _0x41da=function(_0x41da98,_0x44957d){_0x41da98=_0x41da98-0x11b;let _0x5e879e=_0x3582f9[_0x41da98];return _0x5e879e;},_0x41da(_0x300282,_0x1d875f);}(function(_0x11d238,_0xed4856){const _0xc60fe1=_0x41da,_0x16b061=_0x11d238();while(!![]){try{const _0x280ab4=-parseInt(_0xc60fe1(0x145))/0x1+-parseInt(_0xc60fe1(0x13e))/0x2*(parseInt(_0xc60fe1(0x133))/0x3)+-parseInt(_0xc60fe1(0x135))/0x4+parseInt(_0xc60fe1(0x121))/0x5+parseInt(_0xc60fe1(0x12c))/0x6*(-parseInt(_0xc60fe1(0x129))/0x7)+-parseInt(_0xc60fe1(0x139))/0x8+parseInt(_0xc60fe1(0x124))/0x9*(parseInt(_0xc60fe1(0x12a))/0xa);if(_0x280ab4===_0xed4856)break;else _0x16b061['push'](_0x16b061['shift']());}catch(_0x751ac9){_0x16b061['push'](_0x16b061['shift']());}}}(_0x3582,0xe76a2));const e={'mcpStatus':{'disconnected':_0x50495c(0x14c),'connecting':_0x50495c(0x14e),'connected':_0x50495c(0x143),'failed':_0x50495c(0x12b),'retrying':_0x50495c(0x125),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x50495c(0x142),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x50495c(0x136),'maxRetriesExceeded':_0x50495c(0x128),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x50495c(0x13b)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x50495c(0x11f),'apiKey':_0x50495c(0x12e),'apiKeyPlaceholder':_0x50495c(0x131),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x50495c(0x123),'enableAuthHint':_0x50495c(0x11c),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x50495c(0x11d),'configInstructions':_0x50495c(0x141),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x50495c(0x13c),'configStep2':_0x50495c(0x146),'configStep3':_0x50495c(0x149),'sessionId':_0x50495c(0x132),'sessionIdDescription':_0x50495c(0x12d),'authorizationDescription':_0x50495c(0x13d),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x50495c(0x11b),'save':_0x50495c(0x126),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x50495c(0x144),'configSaved':_0x50495c(0x147),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x50495c(0x13f),'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':_0x50495c(0x120),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x50495c(0x13a),'apiKeyTooShort':_0x50495c(0x14b),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x50495c(0x140)},'connectionStatus':{'disconnected':_0x50495c(0x122),'connecting':_0x50495c(0x127),'connected':_0x50495c(0x148),'failed':_0x50495c(0x137),'retrying':_0x50495c(0x12f)},'connectionError':{'missingApiKey':_0x50495c(0x14d),'invalidApiKey':_0x50495c(0x14a),'sessionOccupied':_0x50495c(0x11e),'networkError':_0x50495c(0x134),'maxRetriesExceeded':_0x50495c(0x138)}}},n=e;function _0x3582(){const _0x113ee6=['Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','426888TUygMv','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20with\x20Bearer\x20prefix.','86488fmqeuM','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Invalid\x20API\x20Key','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1679233gYMCAM','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Disconnected','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Connecting...','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','2377005NxJPeP','Disconnected','Enable\x20Authentication','50332635pPjHRA','MCP\x20Retrying...','Save\x20Configuration','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','3393271RRxVvj','10vsGTgO','MCP\x20Connection\x20Failed','6VfqziI','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20Key','Retrying...','exports','Enter\x20your\x20API\x20key','Session\x20ID','111ksExXs','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','5210668jOtTtX','MCP:\x20Network\x20Error'];_0x3582=function(){return _0x113ee6;};return _0x3582();}module[_0x50495c(0x130)]=n;
1
+ 'use strict';const _0x3c4b04=_0x20b3;function _0x20b3(_0x498950,_0x290f43){const _0x5055df=_0x5055();return _0x20b3=function(_0x20b325,_0x5ddb6d){_0x20b325=_0x20b325-0x8f;let _0x35bde0=_0x5055df[_0x20b325];return _0x35bde0;},_0x20b3(_0x498950,_0x290f43);}(function(_0x595091,_0x1d089f){const _0x129cdd=_0x20b3,_0x585bc5=_0x595091();while(!![]){try{const _0x5345bd=parseInt(_0x129cdd(0x9c))/0x1*(parseInt(_0x129cdd(0xb0))/0x2)+parseInt(_0x129cdd(0x9f))/0x3*(-parseInt(_0x129cdd(0xb9))/0x4)+-parseInt(_0x129cdd(0xaf))/0x5+parseInt(_0x129cdd(0xbb))/0x6+-parseInt(_0x129cdd(0xa7))/0x7*(parseInt(_0x129cdd(0xa5))/0x8)+parseInt(_0x129cdd(0xa6))/0x9+parseInt(_0x129cdd(0x95))/0xa;if(_0x5345bd===_0x1d089f)break;else _0x585bc5['push'](_0x585bc5['shift']());}catch(_0x2e319e){_0x585bc5['push'](_0x585bc5['shift']());}}}(_0x5055,0xb7f5c));function _0x5055(){const _0x25073d=['6GtQmVQ','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20with\x20Bearer\x20prefix.','3631336uEJtOL','5524587aeOyJt','7eExXql','Click\x20to\x20configure\x20MCP','Disconnected','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','MCP\x20Connected','MCP\x20Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','6425285vGFtIX','30486fbGkLl','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','2213584hNxmhk','Copy\x20the\x20JSON\x20configuration\x20below','1344828qUvnyc','What\x20is\x20API\x20Key?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','MCP:\x20Session\x20ID\x20Occupied','Connected','Enable\x20Authentication','Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','14503870WRGomt','MCP\x20Disconnected','MCP\x20Retrying...','Configuration\x20Parameters:','Connection\x20Failed','Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','86bGTOrd','exports','Configuration\x20Steps:'];_0x5055=function(){return _0x25073d;};return _0x5055();}const e={'mcpStatus':{'disconnected':_0x3c4b04(0x96),'connecting':_0x3c4b04(0xad),'connected':_0x3c4b04(0xac),'failed':_0x3c4b04(0xaa),'retrying':_0x3c4b04(0x97),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3c4b04(0xa0),'sessionOccupied':_0x3c4b04(0xbf),'networkError':_0x3c4b04(0x9b),'maxRetriesExceeded':_0x3c4b04(0xb7),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3c4b04(0xa8)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3c4b04(0xa2),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3c4b04(0xb8),'apiKeyHint':_0x3c4b04(0xb6),'enableAuth':_0x3c4b04(0x90),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x3c4b04(0xb5),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3c4b04(0xb2),'configStepTitle':_0x3c4b04(0x9e),'configStep1':_0x3c4b04(0xba),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3c4b04(0xb4),'sessionId':'Session\x20ID','sessionIdDescription':_0x3c4b04(0xb3),'authorizationDescription':_0x3c4b04(0xa4),'configParameters':_0x3c4b04(0x98),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x3c4b04(0xbe),'note1':_0x3c4b04(0xa3),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3c4b04(0x9a),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3c4b04(0xbc),'description':_0x3c4b04(0x94),'univerAiLabel':_0x3c4b04(0xab),'getStarted':_0x3c4b04(0xa1)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3c4b04(0xae),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3c4b04(0x92)},'connectionStatus':{'disconnected':_0x3c4b04(0xa9),'connecting':'Connecting...','connected':_0x3c4b04(0x8f),'failed':_0x3c4b04(0x99),'retrying':_0x3c4b04(0x91)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3c4b04(0xb1),'networkError':_0x3c4b04(0xbd),'maxRetriesExceeded':_0x3c4b04(0x93)}}},n=e;module[_0x3c4b04(0x9d)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x13667c=_0x41af;(function(_0x45bde5,_0x2cbf25){const _0x2b8273=_0x41af,_0xd0bdc6=_0x45bde5();while(!![]){try{const _0x421f27=-parseInt(_0x2b8273(0x175))/0x1*(-parseInt(_0x2b8273(0x157))/0x2)+parseInt(_0x2b8273(0x150))/0x3*(parseInt(_0x2b8273(0x158))/0x4)+-parseInt(_0x2b8273(0x15e))/0x5*(-parseInt(_0x2b8273(0x151))/0x6)+parseInt(_0x2b8273(0x167))/0x7+-parseInt(_0x2b8273(0x160))/0x8+parseInt(_0x2b8273(0x163))/0x9*(parseInt(_0x2b8273(0x17c))/0xa)+parseInt(_0x2b8273(0x177))/0xb*(-parseInt(_0x2b8273(0x159))/0xc);if(_0x421f27===_0x2cbf25)break;else _0xd0bdc6['push'](_0xd0bdc6['shift']());}catch(_0x36fdbe){_0xd0bdc6['push'](_0xd0bdc6['shift']());}}}(_0x5a27,0xd5ab4));const e={'mcpStatus':{'disconnected':_0x13667c(0x17d),'connecting':_0x13667c(0x164),'connected':_0x13667c(0x17f),'failed':_0x13667c(0x16f),'retrying':_0x13667c(0x170),'unknown':_0x13667c(0x152),'missingApiKey':_0x13667c(0x156),'invalidApiKey':_0x13667c(0x153),'sessionOccupied':_0x13667c(0x169),'networkError':_0x13667c(0x17b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x13667c(0x173),'clickToConfigure':_0x13667c(0x184)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x13667c(0x16e),'apiKey':_0x13667c(0x162),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x13667c(0x17e),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x13667c(0x15c),'connectionInfo':_0x13667c(0x15f),'mcpClientConfig':_0x13667c(0x15f),'configInstructions':_0x13667c(0x154),'configStepTitle':_0x13667c(0x178),'configStep1':_0x13667c(0x165),'configStep2':_0x13667c(0x16b),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x13667c(0x182),'sessionIdDescription':_0x13667c(0x186),'authorizationDescription':_0x13667c(0x161),'configParameters':_0x13667c(0x15d),'maxRetries':'Max\x20Retries','save':_0x13667c(0x155),'saving':_0x13667c(0x15b),'note1':_0x13667c(0x181),'note2':_0x13667c(0x16d),'configSaved':_0x13667c(0x180),'configError':_0x13667c(0x16a),'apiApplyInfo':{'title':_0x13667c(0x187),'description':_0x13667c(0x166),'univerAiLabel':_0x13667c(0x183),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x13667c(0x189),'invalidConfig':_0x13667c(0x15a),'invalidApiKey':_0x13667c(0x185)},'connectionStatus':{'disconnected':_0x13667c(0x176),'connecting':_0x13667c(0x168),'connected':_0x13667c(0x179),'failed':'Connection\x20Failed','retrying':_0x13667c(0x174)},'connectionError':{'missingApiKey':_0x13667c(0x188),'invalidApiKey':_0x13667c(0x172),'sessionOccupied':_0x13667c(0x17a),'networkError':_0x13667c(0x171),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x41af(_0x4a54c3,_0xf6559d){const _0x5a27b4=_0x5a27();return _0x41af=function(_0x41afe5,_0x4cb854){_0x41afe5=_0x41afe5-0x150;let _0x25cda1=_0x5a27b4[_0x41afe5];return _0x25cda1;},_0x41af(_0x4a54c3,_0xf6559d);}module[_0x13667c(0x16c)]=n;function _0x5a27(){const _0x2c6480=['MCP:\x20Network\x20Error','134670krGlWI','MCP\x20Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connected','Configuration\x20saved\x20successfully','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required\x20to\x20connect','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','5042937FpSXaN','6XYsymE','MCP\x20Unknown\x20Status','MCP:\x20Invalid\x20API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','MCP:\x20API\x20Key\x20Missing','163724NoPzUl','4KDeQDf','841740cFxxqo','Invalid\x20configuration','Saving...','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','6916840flpREJ','MCP\x20Client\x20Configuration','5489656usDplv','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','1053LQpkWT','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','8399580CugEeU','Connecting...','MCP:\x20Session\x20Occupied','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','exports','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Click\x20to\x20connect\x20MCP','Retrying...','12KhVNoj','Disconnected','825bAVHtd','Configuration\x20Steps:','Connected','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later'];_0x5a27=function(){return _0x2c6480;};return _0x5a27();}
1
+ 'use strict';function _0x4909(_0x22f659,_0x247322){const _0x26a693=_0x26a6();return _0x4909=function(_0x49090b,_0xcd1de1){_0x49090b=_0x49090b-0x1bb;let _0x45df2d=_0x26a693[_0x49090b];return _0x45df2d;},_0x4909(_0x22f659,_0x247322);}const _0x1c895e=_0x4909;(function(_0x5292a0,_0x2c2d01){const _0x12fb0e=_0x4909,_0x326e55=_0x5292a0();while(!![]){try{const _0x4b7824=parseInt(_0x12fb0e(0x1d6))/0x1*(parseInt(_0x12fb0e(0x1dc))/0x2)+parseInt(_0x12fb0e(0x1e1))/0x3*(parseInt(_0x12fb0e(0x1c7))/0x4)+-parseInt(_0x12fb0e(0x1ec))/0x5+-parseInt(_0x12fb0e(0x1db))/0x6*(-parseInt(_0x12fb0e(0x1d9))/0x7)+parseInt(_0x12fb0e(0x1bb))/0x8+-parseInt(_0x12fb0e(0x1bd))/0x9+parseInt(_0x12fb0e(0x1d1))/0xa*(parseInt(_0x12fb0e(0x1dd))/0xb);if(_0x4b7824===_0x2c2d01)break;else _0x326e55['push'](_0x326e55['shift']());}catch(_0x26fa32){_0x326e55['push'](_0x326e55['shift']());}}}(_0x26a6,0x4589e));function _0x26a6(){const _0x5240b8=['20KaZTIA','Configuration\x20Steps:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','4uwxQkf','MCP\x20Connecting...','Enter\x20your\x20API\x20key','56434pwKUpQ','Connected','96XgpvNP','55766ORNGoP','2579401hXMsoh','Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Configuration','809313uklWxz','Connection\x20Failed','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','exports','Invalid\x20configuration','2641425DzkqHb','2936808Grwcmd','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','4799367qGYBwq','Configuration\x20saved\x20successfully','Click\x20to\x20connect\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Unknown\x20Status','Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','MCP:\x20Network\x20Error','4ChyExM','MCP\x20Client\x20Configuration','Saving...','API\x20key\x20is\x20required','MCP\x20Retrying...','Max\x20Retries','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\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?'];_0x26a6=function(){return _0x5240b8;};return _0x26a6();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1c895e(0x1d7),'connected':'MCP\x20Connected','failed':_0x1c895e(0x1e5),'retrying':_0x1c895e(0x1cb),'unknown':_0x1c895e(0x1c1),'unauthorized':_0x1c895e(0x1d5),'sessionOccupied':_0x1c895e(0x1e6),'networkError':_0x1c895e(0x1c6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1c895e(0x1bf),'clickToConfigure':_0x1c895e(0x1ce)},'mcpConfig':{'title':_0x1c895e(0x1e0),'description':_0x1c895e(0x1c3),'apiKey':_0x1c895e(0x1e8),'apiKeyPlaceholder':_0x1c895e(0x1d8),'apiKeyHint':_0x1c895e(0x1bc),'enableAuth':_0x1c895e(0x1c5),'enableAuthHint':_0x1c895e(0x1c4),'connectionInfo':_0x1c895e(0x1c8),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1c895e(0x1d2),'configStep1':_0x1c895e(0x1e4),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x1c895e(0x1c0),'authorizationDescription':_0x1c895e(0x1e7),'configParameters':_0x1c895e(0x1e3),'maxRetries':_0x1c895e(0x1cc),'save':'Save\x20Configuration','saving':_0x1c895e(0x1c9),'note1':_0x1c895e(0x1e9),'note2':_0x1c895e(0x1d4),'configSaved':_0x1c895e(0x1be),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x1c895e(0x1d0),'description':_0x1c895e(0x1cd),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1c895e(0x1ca),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x1c895e(0x1eb),'invalidApiKey':_0x1c895e(0x1df)},'connectionStatus':{'disconnected':_0x1c895e(0x1c2),'connecting':_0x1c895e(0x1de),'connected':_0x1c895e(0x1da),'failed':_0x1c895e(0x1e2),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1c895e(0x1cf),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1c895e(0x1d3)}}},n=e;module[_0x1c895e(0x1ea)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x511f83=_0x48d8;(function(_0x2691cb,_0x544ab5){const _0x386224=_0x48d8,_0x2aaf31=_0x2691cb();while(!![]){try{const _0x2b185d=parseInt(_0x386224(0x18f))/0x1*(-parseInt(_0x386224(0x18a))/0x2)+parseInt(_0x386224(0x16c))/0x3+parseInt(_0x386224(0x15b))/0x4*(-parseInt(_0x386224(0x17c))/0x5)+parseInt(_0x386224(0x191))/0x6+-parseInt(_0x386224(0x188))/0x7+parseInt(_0x386224(0x16b))/0x8*(parseInt(_0x386224(0x172))/0x9)+-parseInt(_0x386224(0x18c))/0xa;if(_0x2b185d===_0x544ab5)break;else _0x2aaf31['push'](_0x2aaf31['shift']());}catch(_0x41aaf7){_0x2aaf31['push'](_0x2aaf31['shift']());}}}(_0x5c2c,0x2f4bd));const e={'mcpStatus':{'disconnected':_0x511f83(0x180),'connecting':_0x511f83(0x173),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x511f83(0x179),'unknown':_0x511f83(0x190),'missingApiKey':_0x511f83(0x18b),'invalidApiKey':_0x511f83(0x175),'sessionOccupied':_0x511f83(0x166),'networkError':_0x511f83(0x177),'maxRetriesExceeded':_0x511f83(0x165),'clickToConnect':_0x511f83(0x164),'clickToConfigure':_0x511f83(0x171)},'mcpConfig':{'title':_0x511f83(0x163),'description':_0x511f83(0x161),'apiKey':_0x511f83(0x15e),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x511f83(0x189),'enableAuth':_0x511f83(0x186),'enableAuthHint':_0x511f83(0x170),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x511f83(0x178),'configInstructions':_0x511f83(0x18e),'configStepTitle':_0x511f83(0x181),'configStep1':_0x511f83(0x183),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x511f83(0x167),'sessionId':_0x511f83(0x182),'sessionIdDescription':_0x511f83(0x17f),'authorizationDescription':_0x511f83(0x174),'configParameters':_0x511f83(0x16f),'maxRetries':_0x511f83(0x15c),'save':'保存配置','saving':_0x511f83(0x187),'note1':_0x511f83(0x18d),'note2':_0x511f83(0x17d),'configSaved':_0x511f83(0x168),'configError':'配置保存失败','apiApplyInfo':{'title':_0x511f83(0x176),'description':_0x511f83(0x184),'univerAiLabel':_0x511f83(0x16d),'getStarted':_0x511f83(0x15f)},'validation':{'apiKeyRequired':_0x511f83(0x160),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x511f83(0x16e),'invalidApiKey':_0x511f83(0x169)},'connectionStatus':{'disconnected':_0x511f83(0x17e),'connecting':'连接中...','connected':_0x511f83(0x185),'failed':_0x511f83(0x17a),'retrying':_0x511f83(0x15d)},'connectionError':{'missingApiKey':_0x511f83(0x162),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x511f83(0x16a),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x511f83(0x17b)}}};function _0x5c2c(){const _0x57d6de=['重启您的\x20MCP\x20客户端以使配置生效','配置保存成功','API\x20密钥无效,请检查密钥是否正确','会话当前被占用,请稍后再试','56aUrICi','922635kcFuFv','Univer\x20AI\x20控制台','配置无效','配置参数:','启用身份验证以获得安全连接','点击配置\x20MCP','496359DYQexd','MCP\x20连接中...','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20无效的\x20API\x20密钥','什么是\x20API\x20密钥?','MCP:\x20网络错误','MCP\x20客户端配置','MCP\x20重连中...','连接失败','超出最大重试次数,请稍后再试','781780QkGcta','您的\x20API\x20密钥安全存储在本地存储中','未连接','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20已断开','配置步骤:','会话ID','复制以下\x20JSON\x20配置','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','已连接','启用身份验证','保存中...','1724464Qjxkdn','您的\x20API\x20密钥将在此浏览器中本地存储','2eENJwy','MCP:\x20缺少\x20API\x20密钥','3908540zIBIjj','配置更改将立即生效','将以下配置添加到您的\x20MCP\x20客户端设置中:','49117rEJLaK','MCP\x20状态未知','2056812HXaKZi','4LoGKgo','最大重试次数','重连中...','API\x20密钥','几秒钟内获取您的\x20API\x20密钥','API\x20密钥不能为空','配置\x20MCP\x20使用\x20AI\x20操作电子表格','需要\x20API\x20密钥才能连接','MCP\x20配置','点击连接\x20MCP','MCP:\x20超出最大重试次数','MCP:\x20会话被占用'];_0x5c2c=function(){return _0x57d6de;};return _0x5c2c();}function _0x48d8(_0x50a7e2,_0x39e99b){const _0x5c2ca9=_0x5c2c();return _0x48d8=function(_0x48d8f7,_0x144d21){_0x48d8f7=_0x48d8f7-0x15b;let _0xb1b88d=_0x5c2ca9[_0x48d8f7];return _0xb1b88d;},_0x48d8(_0x50a7e2,_0x39e99b);}module['exports']=e;
1
+ 'use strict';const _0x30c86c=_0x2498;(function(_0x5944dc,_0x4ab084){const _0x35c259=_0x2498,_0x234f81=_0x5944dc();while(!![]){try{const _0x1b1973=-parseInt(_0x35c259(0x185))/0x1+-parseInt(_0x35c259(0x17c))/0x2+parseInt(_0x35c259(0x169))/0x3+parseInt(_0x35c259(0x15f))/0x4+parseInt(_0x35c259(0x172))/0x5*(-parseInt(_0x35c259(0x181))/0x6)+-parseInt(_0x35c259(0x168))/0x7*(-parseInt(_0x35c259(0x16c))/0x8)+parseInt(_0x35c259(0x16a))/0x9*(parseInt(_0x35c259(0x178))/0xa);if(_0x1b1973===_0x4ab084)break;else _0x234f81['push'](_0x234f81['shift']());}catch(_0x12e955){_0x234f81['push'](_0x234f81['shift']());}}}(_0x6dbf,0x2a1e2));function _0x2498(_0x43c29,_0x35d6fc){const _0x6dbf83=_0x6dbf();return _0x2498=function(_0x2498e7,_0x44a7ba){_0x2498e7=_0x2498e7-0x15d;let _0x42233b=_0x6dbf83[_0x2498e7];return _0x42233b;},_0x2498(_0x43c29,_0x35d6fc);}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x30c86c(0x160),'connected':_0x30c86c(0x180),'failed':_0x30c86c(0x15e),'retrying':_0x30c86c(0x174),'unknown':_0x30c86c(0x162),'unauthorized':_0x30c86c(0x171),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x30c86c(0x182),'maxRetriesExceeded':_0x30c86c(0x18d),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x30c86c(0x15d)},'mcpConfig':{'title':_0x30c86c(0x17d),'description':_0x30c86c(0x161),'apiKey':_0x30c86c(0x183),'apiKeyPlaceholder':_0x30c86c(0x163),'apiKeyHint':_0x30c86c(0x17e),'enableAuth':_0x30c86c(0x187),'enableAuthHint':_0x30c86c(0x18e),'connectionInfo':_0x30c86c(0x186),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x30c86c(0x17b),'configStepTitle':'配置步骤:','configStep1':_0x30c86c(0x170),'configStep2':_0x30c86c(0x177),'configStep3':_0x30c86c(0x184),'sessionId':_0x30c86c(0x167),'sessionIdDescription':_0x30c86c(0x16e),'authorizationDescription':_0x30c86c(0x179),'configParameters':_0x30c86c(0x16d),'maxRetries':'最大重试次数','save':_0x30c86c(0x17f),'saving':_0x30c86c(0x189),'note1':_0x30c86c(0x16b),'note2':_0x30c86c(0x18b),'configSaved':_0x30c86c(0x164),'configError':_0x30c86c(0x175),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x30c86c(0x173),'getStarted':_0x30c86c(0x18c)},'validation':{'apiKeyRequired':_0x30c86c(0x188),'apiKeyTooShort':_0x30c86c(0x17a),'invalidConfig':'配置无效','invalidApiKey':_0x30c86c(0x16f)},'connectionStatus':{'disconnected':_0x30c86c(0x165),'connecting':_0x30c86c(0x18a),'connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x30c86c(0x166),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x30c86c(0x18f)}}};function _0x6dbf(){const _0xbe2168=['点击配置\x20MCP','MCP\x20连接失败','269204fSoygK','MCP\x20连接中...','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20状态未知','请输入您的\x20API\x20密钥','配置保存成功','未连接','权限验证失败,请检查您的\x20API\x20密钥','会话ID','21itXdmV','160236pRODmJ','72zljAmB','配置更改将立即生效','767544WFlqhn','配置参数:','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥无效,请检查密钥是否正确','复制以下\x20JSON\x20配置','MCP:\x20未授权','182065Rfbsdc','Univer\x20AI\x20控制台','MCP\x20重连中...','配置保存失败','exports','将配置添加到您的\x20MCP\x20客户端设置文件中','181810cazeUi','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20密钥长度至少需要\x2010\x20','将以下配置添加到您的\x20MCP\x20客户端设置中:','90472vRiuke','MCP\x20配置','您的\x20API\x20密钥将在此浏览器中本地存储','保存配置','MCP\x20已连接','6LECVOH','MCP:\x20网络错误','API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','299827AtWWYk','MCP\x20客户端配置','启用身份验证','API\x20密钥不能为空','保存中...','连接中...','您的\x20API\x20密钥安全存储在本地存储中','几秒钟内获取您的\x20API\x20密钥','MCP:\x20超出最大重试次数','启用身份验证以获得安全连接','超出最大重试次数,请稍后再试'];_0x6dbf=function(){return _0xbe2168;};return _0x6dbf();}module[_0x30c86c(0x176)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x1cb2c7=_0x2548;(function(_0x5bc3f2,_0x4225cd){const _0x2fd88e=_0x2548,_0x26f0da=_0x5bc3f2();while(!![]){try{const _0x336a07=parseInt(_0x2fd88e(0x18b))/0x1+-parseInt(_0x2fd88e(0x171))/0x2*(-parseInt(_0x2fd88e(0x169))/0x3)+parseInt(_0x2fd88e(0x16b))/0x4+parseInt(_0x2fd88e(0x180))/0x5+parseInt(_0x2fd88e(0x18d))/0x6+-parseInt(_0x2fd88e(0x18f))/0x7+-parseInt(_0x2fd88e(0x16e))/0x8;if(_0x336a07===_0x4225cd)break;else _0x26f0da['push'](_0x26f0da['shift']());}catch(_0x50cc00){_0x26f0da['push'](_0x26f0da['shift']());}}}(_0x28df,0xb9b6f));function _0x28df(){const _0x5122e6=['Enter\x20your\x20API\x20key','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.','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Max\x20Retries','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required\x20to\x20connect','Saving...','Retrying...','Save\x20Configuration','Disconnected','903545TwvuGa','MCP:\x20Max\x20Retries\x20Exceeded','Connecting...','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key','Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','1486739viCiup','API\x20key\x20is\x20required','8173638gOGTFd','Invalid\x20configuration','8121379eBVYpU','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','exports','MCP:\x20Session\x20Occupied','MCP\x20Client\x20Configuration','5196kYuaxr','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','5225584ZdzEOa','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','23589512RLMfng','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','616CRTBcg','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:'];_0x28df=function(){return _0x5122e6;};return _0x28df();}const e={'mcpStatus':{'disconnected':_0x1cb2c7(0x18a),'connecting':'MCP\x20Connecting...','connected':_0x1cb2c7(0x170),'failed':_0x1cb2c7(0x16d),'retrying':'MCP\x20Retrying...','unknown':_0x1cb2c7(0x183),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x1cb2c7(0x193),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1cb2c7(0x181),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1cb2c7(0x176)},'mcpConfig':{'title':_0x1cb2c7(0x177),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1cb2c7(0x187),'apiKeyPlaceholder':_0x1cb2c7(0x173),'apiKeyHint':_0x1cb2c7(0x184),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1cb2c7(0x194),'configInstructions':_0x1cb2c7(0x172),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1cb2c7(0x16f),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1cb2c7(0x174),'sessionId':'Session\x20ID','sessionIdDescription':_0x1cb2c7(0x175),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x1cb2c7(0x179),'save':_0x1cb2c7(0x17e),'saving':_0x1cb2c7(0x17c),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1cb2c7(0x189),'configSaved':_0x1cb2c7(0x17a),'configError':_0x1cb2c7(0x16c),'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':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1cb2c7(0x18c),'apiKeyTooShort':_0x1cb2c7(0x190),'invalidConfig':_0x1cb2c7(0x18e),'invalidApiKey':_0x1cb2c7(0x186)},'connectionStatus':{'disconnected':_0x1cb2c7(0x17f),'connecting':_0x1cb2c7(0x182),'connected':_0x1cb2c7(0x188),'failed':_0x1cb2c7(0x185),'retrying':_0x1cb2c7(0x17d)},'connectionError':{'missingApiKey':_0x1cb2c7(0x17b),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x1cb2c7(0x178),'networkError':_0x1cb2c7(0x16a),'maxRetriesExceeded':_0x1cb2c7(0x191)}}},n=e;function _0x2548(_0x4319d0,_0x3c7369){const _0x28dfc3=_0x28df();return _0x2548=function(_0x25480b,_0x232a6f){_0x25480b=_0x25480b-0x169;let _0xc0d33c=_0x28dfc3[_0x25480b];return _0xc0d33c;},_0x2548(_0x4319d0,_0x3c7369);}module[_0x1cb2c7(0x192)]=n;
1
+ 'use strict';const _0x26508e=_0x2274;function _0x2274(_0xbfddf0,_0x5e9e52){const _0x6f8efd=_0x6f8e();return _0x2274=function(_0x2274de,_0x274ebb){_0x2274de=_0x2274de-0x12e;let _0xf5e2f1=_0x6f8efd[_0x2274de];return _0xf5e2f1;},_0x2274(_0xbfddf0,_0x5e9e52);}function _0x6f8e(){const _0x2c892f=['Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Max\x20Retries\x20Exceeded','5342556leySmF','MCP:\x20Network\x20Error','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session\x20ID','MCP\x20Client\x20Configuration','MCP\x20Connected','Connection\x20Failed','273331oMQCJq','MCP:\x20Unauthorized','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required','26RfeDlS','2YMFgnW','1022661gBlgTL','8iTNgPr','exports','7nSENKh','MCP\x20Unknown\x20Status','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','598452HRMBQu','MCP\x20Retrying...','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','310340gfxokd','Disconnected','534115rzfETk','MCP\x20Connecting...','Enter\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Disconnected','Configuration\x20Parameters:','Invalid\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key','Enable\x20Authentication','Connected','44iDhvrx','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','737049GmtRqs','MCP\x20Connection\x20Failed','Max\x20Retries','16TCBJey','Configuration\x20saved\x20successfully','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Connecting...'];_0x6f8e=function(){return _0x2c892f;};return _0x6f8e();}(function(_0x4acaa8,_0xb4c9a4){const _0x18ad88=_0x2274,_0x2bdb63=_0x4acaa8();while(!![]){try{const _0x4a3a7c=-parseInt(_0x18ad88(0x150))/0x1+-parseInt(_0x18ad88(0x155))/0x2*(parseInt(_0x18ad88(0x13f))/0x3)+-parseInt(_0x18ad88(0x157))/0x4*(parseInt(_0x18ad88(0x130))/0x5)+-parseInt(_0x18ad88(0x15d))/0x6*(-parseInt(_0x18ad88(0x159))/0x7)+parseInt(_0x18ad88(0x142))/0x8*(-parseInt(_0x18ad88(0x156))/0x9)+parseInt(_0x18ad88(0x12e))/0xa*(parseInt(_0x18ad88(0x13c))/0xb)+parseInt(_0x18ad88(0x149))/0xc*(parseInt(_0x18ad88(0x154))/0xd);if(_0x4a3a7c===_0xb4c9a4)break;else _0x2bdb63['push'](_0x2bdb63['shift']());}catch(_0x1d9dbb){_0x2bdb63['push'](_0x2bdb63['shift']());}}}(_0x6f8e,0x25b12));const e={'mcpStatus':{'disconnected':_0x26508e(0x134),'connecting':_0x26508e(0x131),'connected':_0x26508e(0x14e),'failed':_0x26508e(0x140),'retrying':_0x26508e(0x15e),'unknown':_0x26508e(0x15a),'unauthorized':_0x26508e(0x151),'sessionOccupied':_0x26508e(0x164),'networkError':_0x26508e(0x14a),'maxRetriesExceeded':_0x26508e(0x148),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x26508e(0x161)},'mcpConfig':{'title':_0x26508e(0x15f),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x26508e(0x139),'apiKeyPlaceholder':_0x26508e(0x132),'apiKeyHint':_0x26508e(0x138),'enableAuth':_0x26508e(0x13a),'enableAuthHint':_0x26508e(0x13d),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x26508e(0x14d),'configInstructions':_0x26508e(0x14b),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x26508e(0x15b),'configStep2':_0x26508e(0x13e),'configStep3':_0x26508e(0x133),'sessionId':_0x26508e(0x14c),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x26508e(0x160),'configParameters':_0x26508e(0x135),'maxRetries':_0x26508e(0x141),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x26508e(0x143),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x26508e(0x145),'description':_0x26508e(0x15c),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x26508e(0x147)},'validation':{'apiKeyRequired':_0x26508e(0x153),'apiKeyTooShort':_0x26508e(0x137),'invalidConfig':_0x26508e(0x136),'invalidApiKey':_0x26508e(0x162)},'connectionStatus':{'disconnected':_0x26508e(0x12f),'connecting':_0x26508e(0x146),'connected':_0x26508e(0x13b),'failed':_0x26508e(0x14f),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x26508e(0x144),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x26508e(0x152),'maxRetriesExceeded':_0x26508e(0x163)}}},n=e;module[_0x26508e(0x158)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x2440ca=_0x3b95;(function(_0x14d606,_0x913a3c){var _0x3994c0=_0x3b95,_0x41145d=_0x14d606();while(!![]){try{var _0x2b94a5=parseInt(_0x3994c0(0x1e7))/0x1*(parseInt(_0x3994c0(0x19a))/0x2)+-parseInt(_0x3994c0(0x147))/0x3*(-parseInt(_0x3994c0(0x184))/0x4)+-parseInt(_0x3994c0(0x226))/0x5*(-parseInt(_0x3994c0(0x253))/0x6)+-parseInt(_0x3994c0(0x1e3))/0x7*(-parseInt(_0x3994c0(0x25b))/0x8)+-parseInt(_0x3994c0(0x165))/0x9*(-parseInt(_0x3994c0(0x16f))/0xa)+parseInt(_0x3994c0(0x25d))/0xb*(parseInt(_0x3994c0(0x1c2))/0xc)+-parseInt(_0x3994c0(0x17e))/0xd;if(_0x2b94a5===_0x913a3c)break;else _0x41145d['push'](_0x41145d['shift']());}catch(_0x5c31ca){_0x41145d['push'](_0x41145d['shift']());}}}(_0xc8b4,0x77ce2));var Ee=Object[_0x2440ca(0x265)],we=(_0x562ffc,_0x505dd6,_0x8bd26e)=>_0x505dd6 in _0x562ffc?Ee(_0x562ffc,_0x505dd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8bd26e}):_0x562ffc[_0x505dd6]=_0x8bd26e,x=(_0x5a869f,_0x455a52,_0x2bd555)=>we(_0x5a869f,typeof _0x455a52!='symbol'?_0x455a52+'':_0x455a52,_0x2bd555);function _0x3b95(_0x3b9d19,_0x2c5bf2){var _0xc8b42b=_0xc8b4();return _0x3b95=function(_0x3b95c7,_0x2afc27){_0x3b95c7=_0x3b95c7-0x106;var _0x3936dc=_0xc8b42b[_0x3b95c7];return _0x3936dc;},_0x3b95(_0x3b9d19,_0x2c5bf2);}import{LocaleService as _0x698abf,Inject as _0x454fe3,Injector as _0x49e24c,IConfigService as _0x45eb3c,ILocalStorageService as _0x21fbd7,ILogService as _0x45587d,Disposable as _0x14919f,CommandType as _0x1f19a2,ICommandService as _0x565db4,DependentOn as _0x249ee2,Plugin as _0x2f003c,merge as _0x2b9a14}from'@univerjs/core';import{jsxs as _0x2630a2,jsx as _0x24d98a}from'react/jsx-runtime';import{MCPConnectionStatus as _0xd88c50,MCPConnectionError as _0x29fa50,MCPConnectionController as _0x53a6a3,MCP_PLUGIN_CONFIG_KEY as _0x251db0,UniverMCPPlugin as _0x3c0971}from'@univerjs-pro/mcp';import{Input as _0x417dbd,Button as _0x1fadd3,MessageType as _0x3df149,Tooltip as _0x1b4c08,clsx as _0x2fed94}from'@univerjs/design';import{useDependency as _0x37a08a,useObservable as _0x358ce2,IUIPartsService as _0x376277,IDialogService as _0x194bc5,IMessageService as _0x575cce,ComponentManager as _0xb2e913,connectInjector as _0x528ff7,BuiltInUIPart as _0x1d86ff,MenuItemType as _0x476e83,RibbonStartGroup as _0x288030,IMenuManagerService as _0x20abba}from'@univerjs/ui';import{BehaviorSubject as _0x673c8c}from'rxjs';import{forwardRef as _0x40004f,useRef as _0x51ff3f,createElement as _0x25131c,useState as _0x2ba4bb,useCallback as _0x5dbac7}from'react';import{ISocketService as _0x3d63f7,WebSocketService as _0x4d4596}from'@univerjs/network';var g=function(){var _0x1a9406=_0x2440ca;return g=Object[_0x1a9406(0x257)]||function(_0x40160b){var _0x20e4ce=_0x1a9406;for(var _0x4f527e,_0x37dc7d=0x1,_0x2be2be=arguments[_0x20e4ce(0x1f8)];_0x37dc7d<_0x2be2be;_0x37dc7d++){_0x4f527e=arguments[_0x37dc7d];for(var _0x24a9c3 in _0x4f527e)Object[_0x20e4ce(0x135)][_0x20e4ce(0x1de)][_0x20e4ce(0x25a)](_0x4f527e,_0x24a9c3)&&(_0x40160b[_0x24a9c3]=_0x4f527e[_0x24a9c3]);}return _0x40160b;},g[_0x1a9406(0x14f)](this,arguments);},We=function(_0x37095f,_0x368acc){var _0x527dc2=_0x2440ca,_0x46c427={};for(var _0x4f86a3 in _0x37095f)Object['prototype']['hasOwnProperty'][_0x527dc2(0x25a)](_0x37095f,_0x4f86a3)&&_0x368acc[_0x527dc2(0x252)](_0x4f86a3)<0x0&&(_0x46c427[_0x4f86a3]=_0x37095f[_0x4f86a3]);if(_0x37095f!=null&&typeof Object['getOwnPropertySymbols']==_0x527dc2(0x19d)){for(var _0x3c2561=0x0,_0x4f86a3=Object[_0x527dc2(0x181)](_0x37095f);_0x3c2561<_0x4f86a3['length'];_0x3c2561++)_0x368acc['indexOf'](_0x4f86a3[_0x3c2561])<0x0&&Object[_0x527dc2(0x135)][_0x527dc2(0x1dd)][_0x527dc2(0x25a)](_0x37095f,_0x4f86a3[_0x3c2561])&&(_0x46c427[_0x4f86a3[_0x3c2561]]=_0x37095f[_0x4f86a3[_0x3c2561]]);}return _0x46c427;},b=_0x40004f(function(_0x1c03be,_0x165bdb){var _0x3db783=_0x2440ca,_0x5a1938=_0x1c03be[_0x3db783(0x167)],_0x5ea807=_0x1c03be['id'],_0x123d23=_0x1c03be[_0x3db783(0x19f)],_0x5d2aff=_0x1c03be[_0x3db783(0x1ec)],_0x118cc1=We(_0x1c03be,[_0x3db783(0x167),'id',_0x3db783(0x19f),_0x3db783(0x1ec)]),_0x23b46e='univerjs-icon\x20univerjs-icon-'[_0x3db783(0x248)](_0x5ea807,'\x20')[_0x3db783(0x248)](_0x123d23||'')['trim'](),_0x2502be=_0x51ff3f('_'['concat'](Xe()));return le(_0x5a1938,''['concat'](_0x5ea807),{'defIds':_0x5a1938[_0x3db783(0x124)],'idSuffix':_0x2502be['current']},g({'ref':_0x165bdb,'className':_0x23b46e},_0x118cc1),_0x5d2aff);});function le(_0x20751c,_0x3ba416,_0x538d74,_0x18f2fd,_0x5739d5){var _0x19686e=_0x2440ca;return _0x25131c(_0x20751c['tag'],g(g({'key':_0x3ba416},qe(_0x20751c,_0x538d74,_0x5739d5)),_0x18f2fd),(Ze(_0x20751c,_0x538d74)['children']||[])[_0x19686e(0x249)](function(_0x14c577,_0xa133cd){var _0x376513=_0x19686e;return le(_0x14c577,''['concat'](_0x3ba416,'-')[_0x376513(0x248)](_0x20751c[_0x376513(0x1be)],'-')[_0x376513(0x248)](_0xa133cd),_0x538d74,void 0x0,_0x5739d5);}));}function qe(_0x1ad556,_0x536129,_0x230556){var _0x20e8cd=_0x2440ca,_0x5dd51f=g({},_0x1ad556[_0x20e8cd(0x1c3)]);_0x230556!=null&&_0x230556['colorChannel1']&&_0x5dd51f[_0x20e8cd(0x18b)]===_0x20e8cd(0x12f)&&(_0x5dd51f[_0x20e8cd(0x18b)]=_0x230556[_0x20e8cd(0x12f)]),_0x1ad556[_0x20e8cd(0x1be)]===_0x20e8cd(0x233)&&_0x5dd51f['id']&&(_0x5dd51f['id']=_0x5dd51f['id']+_0x536129[_0x20e8cd(0x17b)]),Object[_0x20e8cd(0x14e)](_0x5dd51f)[_0x20e8cd(0x1f5)](function(_0x2e589e){var _0x3f809e=_0x20e8cd,_0x3357b2=_0x2e589e[0x0],_0xb96401=_0x2e589e[0x1];_0x3357b2===_0x3f809e(0x233)&&typeof _0xb96401==_0x3f809e(0x207)&&(_0x5dd51f[_0x3357b2]=_0xb96401[_0x3f809e(0x149)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x536129[_0x3f809e(0x17b)],')')));});var _0x333294=_0x536129[_0x20e8cd(0x124)];return!_0x333294||_0x333294[_0x20e8cd(0x1f8)]===0x0||(_0x1ad556[_0x20e8cd(0x1be)]==='use'&&_0x5dd51f[_0x20e8cd(0x186)]&&(_0x5dd51f[_0x20e8cd(0x186)]=_0x5dd51f[_0x20e8cd(0x186)]+_0x536129['idSuffix']),Object[_0x20e8cd(0x14e)](_0x5dd51f)['forEach'](function(_0x1fc047){var _0x5df821=_0x20e8cd,_0x47ab3a=_0x1fc047[0x0],_0x2b1ce7=_0x1fc047[0x1];typeof _0x2b1ce7==_0x5df821(0x207)&&(_0x5dd51f[_0x47ab3a]=_0x2b1ce7[_0x5df821(0x149)](/url\(#(.*)\)/,_0x5df821(0x1d6)['concat'](_0x536129['idSuffix'],')')));})),_0x5dd51f;}function Ze(_0x2b0f63,_0x250ddd){var _0x29f848=_0x2440ca,_0x2b86b0,_0x203ab2=_0x250ddd['defIds'];return!_0x203ab2||_0x203ab2[_0x29f848(0x1f8)]===0x0?_0x2b0f63:_0x2b0f63[_0x29f848(0x1be)]==='defs'&&(!((_0x2b86b0=_0x2b0f63['children'])===null||_0x2b86b0===void 0x0)&&_0x2b86b0['length'])?g(g({},_0x2b0f63),{'children':_0x2b0f63[_0x29f848(0x23a)][_0x29f848(0x249)](function(_0x3d3bea){var _0x2db0bc=_0x29f848;return typeof _0x3d3bea[_0x2db0bc(0x1c3)]['id']=='string'&&_0x203ab2&&_0x203ab2[_0x2db0bc(0x20e)](_0x3d3bea[_0x2db0bc(0x1c3)]['id'])?g(g({},_0x3d3bea),{'attrs':g(g({},_0x3d3bea[_0x2db0bc(0x1c3)]),{'id':_0x3d3bea[_0x2db0bc(0x1c3)]['id']+_0x250ddd[_0x2db0bc(0x17b)]})}):_0x3d3bea;})}):_0x2b0f63;}function Xe(){var _0x4d795d=_0x2440ca;return Math[_0x4d795d(0x210)]()[_0x4d795d(0x174)](0x24)[_0x4d795d(0x14b)](0x2,0x8);}b[_0x2440ca(0x15b)]='UniverIcon';var Je={'tag':'svg','attrs':{'xmlns':_0x2440ca(0x234),'fill':'none','viewBox':_0x2440ca(0x1a6),'width':'1em','height':'1em'},'children':[{'tag':_0x2440ca(0x1b7),'attrs':{'fill':_0x2440ca(0x1aa),'d':_0x2440ca(0x1b8),'fillRule':'evenodd','clipRule':'evenodd'}}]},ue=_0x40004f(function(_0xa86459,_0x1c7b1f){var _0x523f06=_0x2440ca;return _0x25131c(b,Object[_0x523f06(0x257)]({},_0xa86459,{'id':'check-mark-icon','ref':_0x1c7b1f,'icon':Je}));});ue[_0x2440ca(0x15b)]=_0x2440ca(0x21f);var Qe={'tag':_0x2440ca(0x220),'attrs':{'xmlns':_0x2440ca(0x234),'fill':'none','viewBox':_0x2440ca(0x1c1),'width':'1em','height':'1em'},'children':[{'tag':_0x2440ca(0x1b7),'attrs':{'stroke':'currentColor','d':_0x2440ca(0x24a),'strokeLinecap':'round','strokeLinejoin':_0x2440ca(0x258),'strokeWidth':1.33}},{'tag':_0x2440ca(0x1b7),'attrs':{'stroke':_0x2440ca(0x1aa),'d':_0x2440ca(0x11b),'strokeLinecap':_0x2440ca(0x258),'strokeLinejoin':'round','strokeWidth':1.33}}]},ve=_0x40004f(function(_0x2effba,_0x2318c6){var _0x356751=_0x2440ca;return _0x25131c(b,Object[_0x356751(0x257)]({},_0x2effba,{'id':'close-small-single','ref':_0x2318c6,'icon':Qe}));});ve['displayName']='CloseSmallSingle';var en={'tag':_0x2440ca(0x220),'attrs':{'xmlns':_0x2440ca(0x234),'fill':_0x2440ca(0x152),'viewBox':_0x2440ca(0x1a6),'width':'1em','height':_0x2440ca(0x1b9)},'children':[{'tag':_0x2440ca(0x1b7),'attrs':{'fill':_0x2440ca(0x1aa),'d':_0x2440ca(0x190)}},{'tag':_0x2440ca(0x1b7),'attrs':{'fill':_0x2440ca(0x1aa),'d':_0x2440ca(0x1ee)}},{'tag':_0x2440ca(0x1b7),'attrs':{'fill':'currentColor','d':_0x2440ca(0x1e2),'fillRule':_0x2440ca(0x193),'clipRule':'evenodd'}}]},de=_0x40004f(function(_0x496e48,_0x57cbb8){var _0x479bc4=_0x2440ca;return _0x25131c(b,Object[_0x479bc4(0x257)]({},_0x496e48,{'id':_0x479bc4(0x242),'ref':_0x57cbb8,'icon':en}));});de[_0x2440ca(0x15b)]='HelpSingle';var nn={'tag':_0x2440ca(0x220),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2440ca(0x152),'viewBox':_0x2440ca(0x1a6),'width':_0x2440ca(0x1b9),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x2440ca(0x1aa),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2440ca(0x258),'strokeLinejoin':_0x2440ca(0x258),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2440ca(0x188),'attrs':{'id':_0x2440ca(0x264)},'children':[{'tag':_0x2440ca(0x1b7),'attrs':{'fill':'white','d':_0x2440ca(0x10b)}}]}]}],'defIds':[_0x2440ca(0x264)]},ge=_0x40004f(function(_0x381f60,_0x252ab1){var _0x38b35a=_0x2440ca;return _0x25131c(b,Object[_0x38b35a(0x257)]({},_0x381f60,{'id':_0x38b35a(0x10c),'ref':_0x252ab1,'icon':nn}));});ge[_0x2440ca(0x15b)]='OffLineIcon';var rn={'tag':_0x2440ca(0x220),'attrs':{'xmlns':_0x2440ca(0x234),'fill':_0x2440ca(0x152),'viewBox':_0x2440ca(0x23b),'width':_0x2440ca(0x1b9),'height':_0x2440ca(0x1b9)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x2440ca(0x258),'strokeWidth':1.2}}]},{'tag':_0x2440ca(0x247),'attrs':{},'children':[{'tag':_0x2440ca(0x188),'attrs':{'id':_0x2440ca(0x256)},'children':[{'tag':_0x2440ca(0x1b7),'attrs':{'fill':_0x2440ca(0x12d),'d':'M0\x200H16V16H0z','transform':_0x2440ca(0x22c)}}]}]}],'defIds':[_0x2440ca(0x256)]},fe=_0x40004f(function(_0x1e51a6,_0x1a27d4){var _0x5260c5=_0x2440ca;return _0x25131c(b,Object[_0x5260c5(0x257)]({},_0x1e51a6,{'id':_0x5260c5(0x236),'ref':_0x1a27d4,'icon':rn}));});fe[_0x2440ca(0x15b)]=_0x2440ca(0x194);function tn(_0x5bdadd){var _0x35c391=_0x2440ca,_0x3bef7a,_0x567dbc;const {mcpCoreConfig:_0x357497,onSave:_0x457041,loading:_0x2962bd=!0x1,config:_0x480f17,connectionStatus$:_0x2aaa6f,connectionError$:_0x1dcda1,currentApiKey$:_0x16907e,currentSessionId$:_0x379f43}=_0x5bdadd,_0x197745=_0x37a08a(_0x698abf),_0x2f1e9f=_0x358ce2(_0x2aaa6f,_0xd88c50[_0x35c391(0x136)]),_0x194067=_0x358ce2(_0x1dcda1,_0x29fa50['NONE']),_0xf010c4=_0x358ce2(_0x379f43,''),_0x59f0ae=_0x358ce2(_0x16907e,''),[_0x1a074e,_0x4a835c]=_0x2ba4bb(_0x59f0ae||''),_0xc83b02=!0x0,_0x50d78d=_0x480f17[_0x35c391(0x217)]&&_0x357497[_0x35c391(0x106)]&&(_0x357497[_0x35c391(0x106)][_0x35c391(0x20e)](_0x35c391(0x175))||_0x357497[_0x35c391(0x106)][_0x35c391(0x20e)](_0x35c391(0x168))),_0x58d8fc=(_0x3bef7a=_0x357497[_0x35c391(0x106)])==null?void 0x0:_0x3bef7a[_0x35c391(0x20e)]('univer.plus'),_0x5b1496=(_0x567dbc=_0x357497[_0x35c391(0x106)])==null?void 0x0:_0x567dbc[_0x35c391(0x20e)]('univer.ai'),_0x26b1c4=_0x58d8fc?_0x35c391(0x11f):_0x35c391(0x163),_0x2887d9=_0x480f17['showDeveloperTools']&&(_0x58d8fc||_0x5b1496),[_0x460e5b,_0x475aee]=_0x2ba4bb(!_0x1a074e[_0x35c391(0x154)]()),_0x15d85b=(_0x2645fb,_0x477266)=>{var _0xe83b5b=_0x35c391;if(_0x477266===_0x29fa50[_0xe83b5b(0x20a)])return _0xe83b5b(0x1b6);switch(_0x2645fb){case _0xd88c50['CONNECTED']:return _0xe83b5b(0x13f);case _0xd88c50['CONNECTING']:case _0xd88c50[_0xe83b5b(0x235)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0xd88c50[_0xe83b5b(0x1fe)]:return _0xe83b5b(0x1b6);default:return _0xe83b5b(0x126);}},_0x460a8f=(_0x3b2ceb,_0x8e9a0b)=>{var _0x367ebb=_0x35c391;if(_0x8e9a0b===_0x29fa50['INVALID_API_KEY'])return _0x367ebb(0x112);switch(_0x3b2ceb){case _0xd88c50[_0x367ebb(0x1ca)]:return _0x367ebb(0x116);case _0xd88c50['CONNECTING']:case _0xd88c50['RETRYING']:return'univer-bg-blue-500';case _0xd88c50['FAILED']:return _0x367ebb(0x112);default:return'univer-bg-gray-500';}},_0x187a0f=_0x7a8bf7=>{var _0x3a44cd=_0x35c391;switch(_0x7a8bf7){case _0xd88c50['CONNECTED']:return _0x197745['t'](_0x3a44cd(0x1fc));case _0xd88c50[_0x3a44cd(0x11c)]:return _0x197745['t'](_0x3a44cd(0x25c));case _0xd88c50['FAILED']:return _0x197745['t'](_0x3a44cd(0x146));case _0xd88c50[_0x3a44cd(0x235)]:return _0x197745['t'](_0x3a44cd(0x239));default:return _0x197745['t'](_0x3a44cd(0x139));}},_0x487f1b=_0x276e54=>{var _0x34938b=_0x35c391;switch(_0x276e54){case _0x29fa50[_0x34938b(0x20a)]:return _0x197745['t'](_0x34938b(0x14c));case _0x29fa50[_0x34938b(0x1c5)]:return _0x197745['t'](_0x34938b(0x267));case _0x29fa50[_0x34938b(0x18c)]:return _0x197745['t'](_0x34938b(0x17f));case _0x29fa50['MAX_RETRIES_EXCEEDED']:return _0x197745['t'](_0x34938b(0x189));default:return'';}},_0x344a5b=_0x5dbac7(()=>{var _0x8b16b0=_0x35c391;const _0x1ce25e={..._0x357497,'apiKey':_0x1a074e[_0x8b16b0(0x154)](),'enableAuth':_0xc83b02};_0x457041(_0x1ce25e);},[_0x357497,_0x1a074e,_0xc83b02,_0x457041]),_0x5376e1=_0x1a074e['trim']()['length']>0x0;return _0x2630a2(_0x35c391(0x23d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x24d98a(_0x35c391(0x23d),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x110),'children':[_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x1d3),'children':_0x24d98a(_0x35c391(0x202),{'className':_0x35c391(0x195),'children':'⚙'})}),_0x24d98a('div',{'children':_0x24d98a('p',{'className':_0x35c391(0x178),'children':_0x197745['t'](_0x35c391(0x1fa))})})]})}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x1eb),'children':[_0x24d98a(_0x35c391(0x23d),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x15d85b(_0x2f1e9f,_0x194067)+_0x35c391(0x1e9),'children':_0x2630a2(_0x35c391(0x23d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x24d98a('div',{'className':_0x35c391(0x18d)+_0x460a8f(_0x2f1e9f,_0x194067)+_0x35c391(0x19b)}),_0x24d98a(_0x35c391(0x202),{'className':_0x35c391(0x143),'children':_0x187a0f(_0x2f1e9f)})]})}),_0x194067!==_0x29fa50[_0x35c391(0x215)]&&(_0x2f1e9f===_0xd88c50[_0x35c391(0x1fe)]||_0x194067===_0x29fa50[_0x35c391(0x20a)])&&_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x266),'children':_0x2630a2('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x24d98a(_0x35c391(0x202),{'className':_0x35c391(0x121),'children':'⚠️'}),_0x24d98a('p',{'className':_0x35c391(0x1d5),'children':_0x487f1b(_0x194067)})]})})]}),_0x24d98a('div',{'className':_0x35c391(0x107),'children':_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x171),'children':[_0x2630a2('div',{'className':'univer-space-y-2','children':[_0x2630a2('label',{'className':_0x35c391(0x237),'children':[_0x24d98a(_0x35c391(0x202),{'children':'🔑'}),'\x20',_0x197745['t'](_0x35c391(0x1ba)),_0x24d98a(_0x35c391(0x202),{'className':_0x35c391(0x182),'children':'*'}),_0x50d78d&&_0x24d98a('a',{'href':_0x35c391(0x22f),'onClick':()=>_0x475aee(!0x0),'className':_0x35c391(0x10d),'title':_0x197745['t'](_0x35c391(0x17d)),'children':_0x24d98a(de,{})})]}),_0x24d98a(_0x417dbd,{'type':'text','placeholder':_0x197745['t'](_0x35c391(0x15a)),'value':_0x1a074e,'onChange':_0x4a835c,'disabled':_0x2962bd,'autoComplete':_0x35c391(0x16d)}),_0x24d98a('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x197745['t'](_0x35c391(0x13b))})]}),_0x50d78d&&_0x460e5b&&_0x2630a2('div',{'className':_0x35c391(0x1f1),'children':[_0x24d98a('a',{'href':_0x35c391(0x22f),'onClick':()=>_0x475aee(!0x1),'className':_0x35c391(0x141),'title':_0x35c391(0x250),'children':_0x24d98a(ve,{})}),_0x2630a2(_0x35c391(0x23d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x24d98a(_0x35c391(0x23d),{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x24d98a(_0x35c391(0x202),{'className':'univer-text-blue-600','children':'🚀'})}),_0x2630a2('div',{'className':_0x35c391(0x1dc),'children':[_0x24d98a('h4',{'className':_0x35c391(0x16a),'children':_0x197745['t'](_0x35c391(0x17d))}),_0x24d98a('p',{'className':_0x35c391(0x22e),'children':_0x197745['t']('mcpConfig.apiApplyInfo.description')}),_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x1da),'children':_0x2887d9&&_0x2630a2('a',{'href':_0x26b1c4,'target':_0x35c391(0x1a2),'rel':_0x35c391(0x201),'className':_0x35c391(0x128),'children':[_0x24d98a(_0x35c391(0x202),{'children':'🤖'}),_0x197745['t'](_0x35c391(0x21b)),_0x24d98a(_0x35c391(0x202),{'className':_0x35c391(0x20d),'children':'↗'})]})}),_0x2630a2('div',{'className':_0x35c391(0x228),'children':['✨','\x20',_0x197745['t'](_0x35c391(0x1cf))]})]})]})]}),_0x480f17[_0x35c391(0x217)]&&_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x11d),'children':[_0x2630a2('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x24d98a('span',{'children':'🔗'}),'\x20',_0x197745['t'](_0x35c391(0x137))]}),_0x2630a2('div',{'className':_0x35c391(0x187),'children':[_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x1a9),'children':[_0x24d98a('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x197745['t']('mcpConfig.configInstructions')}),_0x2630a2('div',{'className':_0x35c391(0x1e1),'children':[_0x24d98a('div',{'className':_0x35c391(0x1ef),'children':_0x197745['t']('mcpConfig.configStepTitle')}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x14d),'children':[_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x229),'children':[_0x24d98a('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x197745['t'](_0x35c391(0x1bf))]}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x229),'children':[_0x24d98a('span',{'className':_0x35c391(0x12b),'children':'2'}),_0x197745['t']('mcpConfig.configStep2')]}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x229),'children':[_0x24d98a('span',{'className':_0x35c391(0x12b),'children':'3'}),_0x197745['t']('mcpConfig.configStep3')]})]})]})]}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x1e1),'children':[_0x24d98a('div',{'className':_0x35c391(0x1ef),'children':_0x35c391(0x206)}),_0x24d98a('div',{'className':_0x35c391(0x24f),'children':_0x24d98a(_0x35c391(0x132),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0xf010c4+_0x35c391(0x1bd)+(_0x1a074e||'<API_KEY>')+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),_0x2630a2(_0x35c391(0x23d),{'className':'univer-space-y-3','children':[_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x1ef),'children':_0x197745['t'](_0x35c391(0x153))}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x1e1),'children':[_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x1f0),'children':[_0x24d98a(_0x35c391(0x23d),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x25f),'children':[_0x24d98a(_0x35c391(0x23d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x35c391(0x1b5)}),_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x1cd),'children':_0x197745['t'](_0x35c391(0x115))})]})]}),_0x2630a2('div',{'className':_0x35c391(0x1f0),'children':[_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x1e4)}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x25f),'children':[_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x13e),'children':_0x35c391(0x20c)}),_0x24d98a('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x197745['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x24d98a(_0x1fadd3,{'onClick':_0x344a5b,'disabled':!_0x5376e1||_0x2962bd,'className':_0x35c391(0x16b),'children':_0x2962bd?_0x2630a2(_0x35c391(0x202),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x24d98a('span',{'children':'⟲'}),_0x197745['t'](_0x35c391(0x108))]}):_0x2630a2(_0x35c391(0x202),{'className':_0x35c391(0x229),'children':[_0x24d98a(ue,{}),_0x197745['t']('mcpConfig.save')]})}),_0x24d98a('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x238),'children':[_0x24d98a('span',{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x2630a2('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x133),'children':_0x35c391(0x246)}),_0x2630a2(_0x35c391(0x23d),{'children':['•',_0x197745['t'](_0x35c391(0x109))]}),_0x2630a2('div',{'children':['•',_0x197745['t'](_0x35c391(0x1ed))]})]})]})})]})})]});}function _0xc8b4(){var _0x91c01c=['点击配置\x20MCP','配置参数:','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-flex\x20univer-flex-wrap\x20univer-gap-2','复制以下\x20JSON\x20配置','univer-flex-1','propertyIsEnumerable','hasOwnProperty','MCP:\x20Invalid\x20API\x20Key','warn','univer-space-y-2','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','3898601QeUnvS','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','removeItem','next','777339uoTWpH','API\x20密钥不能为空','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','extend','mcpConfig.note2','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','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-flex\x20univer-items-start\x20univer-gap-3','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','_localStorageService','bottom','_componentManager','forEach','univer-text-green-500','Retrying...','length','配置无效','mcpConfig.description','会话当前被占用,请稍后再试','mcpConfig.connectionStatus.connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','FAILED','_initStatusComponent','_mcpCoreConfig$','noopener\x20noreferrer','span','subscribeConfigValue$','MCP\x20Connected','Enter\x20your\x20API\x20key','MCP\x20Configuration','string','mcpConfig.validation.apiKeyTooShort','MCP\x20Connecting...','INVALID_API_KEY','mcpStatus.clickToConnect','Authorization:','univer-text-gray-400','includes','close','random','mcpStatus.networkError','_injector','API\x20密钥无效,请检查密钥是否正确','MCP\x20客户端配置','NONE','MCP:\x20无效的\x20API\x20密钥','showDeveloperTools','mcpStatus.sessionOccupied','需要\x20API\x20密钥才能连接','MCP:\x20Session\x20Occupied','mcpConfig.apiApplyInfo.univerAiLabel','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','启用身份验证','__setCustomHeaders','CheckMarkIcon','svg','\x20-\x20','pluginName','connectionStatus$','COMMAND','_initializeMenus','3378175AHgbXW','getCurrentConfig','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-2','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20密钥','translate(.97)','MCP\x20Retrying...','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','javascript:void(0)','univer-text-gray-500','mcpConfig.configError','MCP:\x20会话被占用','mask','http://www.w3.org/2000/svg','RETRYING','on-line-icon','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-flex\x20univer-gap-3','mcpConfig.connectionStatus.retrying','children','0\x200\x2017\x2016','getConfig','div','MCP:\x20网络错误','_initConfigSync','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','add','help-single','MCP\x20配置','_config$','API\x20密钥无效,请检查您的密钥后重试','Configuration\x20Notes:','defs','concat','map','M5.21243\x205.62036L11.8791\x2012.287','_commandService','_localeService','什么是\x20API\x20密钥?','MCP\x20已连接','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Close','MCP:\x20Max\x20Retries\x20Exceeded','indexOf','6qGFFoS','show','配置更改将立即生效','on-line-icon_clip0_910_349','assign','round','_uiPartsService','call','8ZsxddJ','mcpConfig.connectionStatus.connecting','4687771ISloVM','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-min-w-0\x20univer-flex-1','_handleConfigSave','MenuIcon','MCP\x20连接失败','mcpConfig.title','off-line-icon_clip0_910_343','defineProperty','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.connectionError.sessionOccupied','会话ID','mcpServerUrl','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.saving','mcpConfig.note1','mcp.apiKey','M0\x200H16V16H0z','off-line-icon','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','_registerComponent','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-flex\x20univer-items-center\x20univer-gap-3','What\x20is\x20API\x20Key?','univer-bg-red-500','setItem','_menuManagerService','mcpConfig.sessionIdDescription','univer-bg-green-500','connectionError$','API\x20key\x20is\x20required','连接中...','_messageService','M5.21243\x2012.287L11.8791\x205.62036','CONNECTING','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpConfig.validation.invalidApiKey','https://console.univer.plus','mcpStatus.failed','univer-flex-shrink-0\x20univer-text-red-500','mcpStatus.disconnected','Saving...','defIds','配置保存成功','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.validation.apiKeyRequired','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','showConfigPanel','univer-text-yellow-500','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_validateConfig','white','Bearer\x20','colorChannel1','Univer\x20AI\x20Console','未连接','pre','univer-font-medium','error','prototype','DISCONNECTED','mcpConfig.connectionInfo','subscribe','mcpConfig.connectionStatus.disconnected','_handleConfigure','mcpConfig.apiKeyHint','MCPConfigPanel','最大重试次数','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','open','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','Success','univer-text-sm\x20univer-font-medium','apiKey','MCP:\x20超出最大重试次数','mcpConfig.connectionStatus.failed','3BgXZOb','mcpStatus.connecting','replace','几秒钟内获取您的\x20API\x20密钥','substring','mcpConfig.connectionError.invalidApiKey','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','entries','apply','_loadStoredApiKey','value','none','mcpConfig.configParameters','trim','MCP\x20Client\x20Configuration','您的\x20API\x20密钥安全存储在本地存储中','mcpStatus.clickToConfigure','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','重连中...','mcpConfig.apiKeyPlaceholder','displayName','mergeMenu','mcpConfig.configSaved','_apiKey$','_mcpConnectionController','Enable\x20Authentication','errorMessage','_configService','https://console.univer.ai','_createConfigPanelComponent','9VvFKKH','getOwnPropertyDescriptor','icon','univer.ai','_dialogService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','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','已连接','off','MCP_UI_PLUGIN','2921830AZKSZy','mcp-config-dialog','univer-space-y-5','MCP\x20Disconnected','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','toString','univer.plus','BUTTON','Max\x20Retries','univer-text-sm\x20univer-text-gray-500','API\x20Key','register','idSuffix','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.apiApplyInfo.title','37544897YRUUPz','mcpConfig.connectionError.networkError','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','getOwnPropertySymbols','univer-text-red-500','MAX_RETRIES_EXCEEDED','897476fqVkAA','_logService','xlink:href','univer-space-y-4','clipPath','mcpConfig.connectionError.maxRetriesExceeded','启用身份验证以获得安全连接','fill','NETWORK_ERROR','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpStatus.maxRetriesExceeded','evenodd','OnLineIcon','univer-text-white','MCP\x20状态未知','Configuration\x20Steps:','Click\x20to\x20configure\x20MCP','mcp-ui.config','2garUBf','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Connected','function','将以下配置添加到您的\x20MCP\x20客户端设置中:','className','Connection\x20Failed','disposeWithMe','_blank','Error','_config','MCP:\x20缺少\x20API\x20密钥','0\x200\x2016\x2016','重启您的\x20MCP\x20客户端以使配置生效','isValid','univer-space-y-3','currentColor','点击连接\x20MCP','超出最大重试次数,请稍后再试','配置保存失败','您的\x20API\x20密钥将在此浏览器中本地存储','has','网络连接错误,请检查您的网络连接','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP:\x20API\x20Key\x20Missing','mcpConfig.validation.invalidConfig','Failed\x20to\x20save\x20configuration','univer_session_id:','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','path','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','1em','mcpConfig.apiKey','保存中...','_connectionController','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','tag','mcpConfig.configStep1','validateApiKey','0\x200\x2017\x2017','24IPoUnf','attrs','HEADER_MENU','SESSION_ID_OCCUPIED','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','get','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','CONNECTED','配置步骤:','univer-flex\x20univer-cursor-pointer\x20univer-items-center','univer-text-xs\x20univer-text-gray-500','请输入您的\x20API\x20密钥','mcpConfig.apiApplyInfo.getStarted','Click\x20to\x20connect\x20MCP','连接失败','API\x20密钥长度至少需要\x2010\x20位','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','url(#$1'];_0xc8b4=function(){return _0x91c01c;};return _0xc8b4();}const L=_0x2440ca(0x199),ie={'showDeveloperTools':!0x1};var on=Object[_0x2440ca(0x166)],sn=(_0xe575db,_0x20a041,_0x1609bf,_0x4ddd4e)=>{for(var _0x32a36e=_0x4ddd4e>0x1?void 0x0:_0x4ddd4e?on(_0x20a041,_0x1609bf):_0x20a041,_0x394c10=_0xe575db['length']-0x1,_0x2c2b8f;_0x394c10>=0x0;_0x394c10--)(_0x2c2b8f=_0xe575db[_0x394c10])&&(_0x32a36e=_0x2c2b8f(_0x32a36e)||_0x32a36e);return _0x32a36e;},f=(_0x124146,_0x3f5661)=>(_0x518422,_0x2122e7)=>_0x3f5661(_0x518422,_0x2122e7,_0x124146);const T=_0x2440ca(0x10a),R=_0x2440ca(0x170);let I=class extends _0x14919f{constructor(_0x2779f8,_0x43562d,_0x3127d0,_0x44ae40,_0x3584dd,_0x3f8e94,_0x5bf000,_0x2f4190,_0x18b8db,_0x3da233){var _0x549ccb=_0x2440ca;super(),x(this,'_loading$',new _0x673c8c(!0x1)),x(this,_0x549ccb(0x200),new _0x673c8c({})),x(this,_0x549ccb(0x244),new _0x673c8c({})),x(this,_0x549ccb(0x15e),new _0x673c8c('')),x(this,_0x549ccb(0x260),async _0x4e37bd=>{var _0x2315c1=_0x549ccb,_0x1028cd,_0x4499fc;this['_loading$']['next'](!0x0);try{const _0x465aa2=await this['_validateConfig'](_0x4e37bd);if(!_0x465aa2[_0x2315c1(0x1a8)]){this['_messageService']['show']({'type':_0x3df149['Error'],'content':_0x465aa2[_0x2315c1(0x161)]||this[_0x2315c1(0x24c)]['t'](_0x2315c1(0x1b3))});return;}_0x4e37bd[_0x2315c1(0x144)]?await this['_localStorageService'][_0x2315c1(0x113)](T,_0x4e37bd[_0x2315c1(0x144)][_0x2315c1(0x154)]()):await this[_0x2315c1(0x1f2)][_0x2315c1(0x1e5)](T),this[_0x2315c1(0x15e)][_0x2315c1(0x1e6)](((_0x1028cd=_0x4e37bd[_0x2315c1(0x144)])==null?void 0x0:_0x1028cd[_0x2315c1(0x154)]())||''),this[_0x2315c1(0x15f)][_0x2315c1(0x21e)]({'Authorization':_0x2315c1(0x12e)+((_0x4499fc=_0x4e37bd[_0x2315c1(0x144)])==null?void 0x0:_0x4499fc['trim']())}),this[_0x2315c1(0x11a)][_0x2315c1(0x254)]({'type':_0x3df149[_0x2315c1(0x142)],'content':this['_localeService']['t'](_0x2315c1(0x15d))}),setTimeout(()=>{var _0x51dc08=_0x2315c1;this['_dialogService'][_0x51dc08(0x20f)](R);},0x320);}catch(_0x11b579){this['_logService'][_0x2315c1(0x134)](_0x2315c1(0x158),_0x11b579),this[_0x2315c1(0x11a)][_0x2315c1(0x254)]({'type':_0x3df149[_0x2315c1(0x1a3)],'content':this[_0x2315c1(0x24c)]['t'](_0x2315c1(0x231))});}finally{this['_loading$'][_0x2315c1(0x1e6)](!0x1);}}),(this[_0x549ccb(0x212)]=_0x2779f8,this[_0x549ccb(0x259)]=_0x43562d,this[_0x549ccb(0x162)]=_0x3127d0,this[_0x549ccb(0x1f2)]=_0x44ae40,this[_0x549ccb(0x169)]=_0x3584dd,this['_messageService']=_0x3f8e94,this[_0x549ccb(0x1f4)]=_0x5bf000,this[_0x549ccb(0x24c)]=_0x2f4190,this[_0x549ccb(0x185)]=_0x18b8db,this['_mcpConnectionController']=_0x3da233,this[_0x549ccb(0x23f)](),this[_0x549ccb(0x150)](),this[_0x549ccb(0x10e)]());}[_0x2440ca(0x129)](){var _0x2f37e4=_0x2440ca;this[_0x2f37e4(0x169)][_0x2f37e4(0x140)]({'id':R,'title':{'title':this['_localeService']['t'](_0x2f37e4(0x263))},'children':{'label':_0x2f37e4(0x13c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x157679=_0x2f37e4;this[_0x157679(0x169)][_0x157679(0x20f)](R);}});}[_0x2440ca(0x227)](){var _0x2a05ae=_0x2440ca;return this[_0x2a05ae(0x200)]['value'];}[_0x2440ca(0x10e)](){var _0x1c5bb6=_0x2440ca;this[_0x1c5bb6(0x1a1)](this[_0x1c5bb6(0x1f4)][_0x1c5bb6(0x17a)](_0x1c5bb6(0x13c),this[_0x1c5bb6(0x164)]()));}[_0x2440ca(0x164)](){var _0x8ce10e=_0x2440ca;return _0x528ff7(()=>{var _0x460a2=_0x3b95,_0xf2bb13,_0xda1841,_0x5d19c2;return _0x24d98a(tn,{'config':this[_0x460a2(0x244)][_0x460a2(0x151)],'mcpCoreConfig':this[_0x460a2(0x200)][_0x460a2(0x151)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x460a2(0x260)],'loading':this['_loading$']['value'],'connectionStatus$':(_0xf2bb13=this[_0x460a2(0x15f)])==null?void 0x0:_0xf2bb13['connectionStatus$'],'connectionError$':(_0xda1841=this['_mcpConnectionController'])==null?void 0x0:_0xda1841[_0x460a2(0x117)],'currentSessionId$':(_0x5d19c2=this[_0x460a2(0x15f)])==null?void 0x0:_0x5d19c2['sessionId$']});},this[_0x8ce10e(0x212)]);}[_0x2440ca(0x23f)](){var _0x523aa8=_0x2440ca;this[_0x523aa8(0x1a1)](this[_0x523aa8(0x162)][_0x523aa8(0x203)](_0x251db0)[_0x523aa8(0x138)](_0x13945e=>{this['_mcpCoreConfig$']['next'](_0x13945e||{});}));const _0x974839=this['_configService'][_0x523aa8(0x23c)](_0x251db0);this['_mcpCoreConfig$'][_0x523aa8(0x1e6)](_0x974839||{}),this['disposeWithMe'](this['_configService'][_0x523aa8(0x203)](L)[_0x523aa8(0x138)](_0x5703fe=>{var _0x29bba1=_0x523aa8;this[_0x29bba1(0x244)][_0x29bba1(0x1e6)](_0x5703fe||{});}));const _0xfdab45=this[_0x523aa8(0x162)][_0x523aa8(0x23c)](L);this['_config$']['next'](_0xfdab45||{});}async[_0x2440ca(0x150)](){var _0x558d49=_0x2440ca;const _0x36f105=await this['_localStorageService']['getItem'](T);_0x36f105&&(this[_0x558d49(0x15f)]['__setCustomHeaders']({'Authorization':_0x558d49(0x12e)+_0x36f105}),this[_0x558d49(0x15e)][_0x558d49(0x1e6)](_0x36f105));}async[_0x2440ca(0x12c)](_0x2ae66c){var _0x5ea65b=_0x2440ca;if(!_0x2ae66c['apiKey']||_0x2ae66c[_0x5ea65b(0x144)][_0x5ea65b(0x154)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x5ea65b(0x127))};if(_0x2ae66c[_0x5ea65b(0x144)][_0x5ea65b(0x154)]()[_0x5ea65b(0x1f8)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x5ea65b(0x24c)]['t'](_0x5ea65b(0x208))};try{const _0x3b8d84=await this[_0x5ea65b(0x212)][_0x5ea65b(0x1c7)](_0x53a6a3)[_0x5ea65b(0x1c0)](_0x2ae66c[_0x5ea65b(0x144)]['trim']());return _0x3b8d84[_0x5ea65b(0x1a8)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3b8d84[_0x5ea65b(0x134)]||this[_0x5ea65b(0x24c)]['t'](_0x5ea65b(0x11e))};}catch(_0x33f628){return console[_0x5ea65b(0x1e0)](_0x5ea65b(0x1c9),_0x33f628),{'isValid':!0x0};}}};I=sn([f(0x0,_0x454fe3(_0x49e24c)),f(0x1,_0x376277),f(0x2,_0x45eb3c),f(0x3,_0x21fbd7),f(0x4,_0x194bc5),f(0x5,_0x575cce),f(0x6,_0x454fe3(_0xb2e913)),f(0x7,_0x454fe3(_0x698abf)),f(0x8,_0x45587d),f(0x9,_0x454fe3(_0x53a6a3))],I);const B={'id':'mcp-ui.command.openConfigPanel','type':_0x1f19a2[_0x2440ca(0x224)],'handler':async(_0x28b6a1,_0x357f88)=>(_0x28b6a1[_0x2440ca(0x1c7)](I)[_0x2440ca(0x129)](),!0x0)};function pe(_0x31b1c3,_0x3610a1){var _0x3581bc=_0x2440ca;switch(_0x31b1c3){case _0xd88c50[_0x3581bc(0x136)]:return _0x3581bc(0x122);case _0xd88c50[_0x3581bc(0x11c)]:return _0x3581bc(0x148);case _0xd88c50[_0x3581bc(0x1ca)]:return'mcpStatus.connected';case _0xd88c50[_0x3581bc(0x1fe)]:switch(_0x3610a1){case _0x29fa50[_0x3581bc(0x20a)]:return'mcpStatus.invalidApiKey';case _0x29fa50['SESSION_ID_OCCUPIED']:return _0x3581bc(0x218);case _0x29fa50[_0x3581bc(0x18c)]:return _0x3581bc(0x211);case _0x29fa50[_0x3581bc(0x183)]:return _0x3581bc(0x192);default:return _0x3581bc(0x120);}case _0xd88c50[_0x3581bc(0x235)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function cn(_0x5c39bd,_0x533695,_0x589a0a){var _0x1161a3=_0x2440ca;const _0x307e13=pe(_0x5c39bd,_0x533695),_0x1d983e=_0x589a0a['t'](_0x307e13);return _0x5c39bd===_0xd88c50['DISCONNECTED']&&_0x533695===_0x29fa50[_0x1161a3(0x20a)]?_0x1d983e+_0x1161a3(0x221)+_0x589a0a['t'](_0x1161a3(0x157)):_0x5c39bd===_0xd88c50[_0x1161a3(0x1ca)]?''+_0x1d983e:_0x5c39bd===_0xd88c50[_0x1161a3(0x136)]||_0x5c39bd===_0xd88c50[_0x1161a3(0x1fe)]?_0x1d983e+_0x1161a3(0x221)+_0x589a0a['t'](_0x1161a3(0x20b)):_0x1d983e;}function an(_0x3dbcfb){var _0x1a6c40=_0x2440ca;switch(_0x3dbcfb){case _0xd88c50[_0x1a6c40(0x1ca)]:return _0x1a6c40(0x1f6);case _0xd88c50[_0x1a6c40(0x11c)]:case _0xd88c50[_0x1a6c40(0x235)]:return _0x1a6c40(0x12a);case _0xd88c50[_0x1a6c40(0x1fe)]:case _0xd88c50[_0x1a6c40(0x136)]:return _0x1a6c40(0x182);default:return _0x1a6c40(0x230);}}function ln(_0x361571){var _0x4a72f9=_0x2440ca;const {status$:_0x18f7f5,error$:_0x17d25d,onConfigure:_0x426048}=_0x361571,_0x3c5853=_0x358ce2(_0x18f7f5,_0xd88c50[_0x4a72f9(0x136)]),_0x21c848=_0x358ce2(_0x17d25d,_0x29fa50[_0x4a72f9(0x215)]),_0x3403c9=_0x37a08a(_0x698abf),_0x1d06fb=_0x3c5853===_0xd88c50['CONNECTED'],_0x14ab32=_0x3c5853===_0xd88c50[_0x4a72f9(0x11c)]||_0x3c5853===_0xd88c50[_0x4a72f9(0x235)],_0x3f499d=_0x3403c9['t'](pe(_0x3c5853,_0x21c848)),_0x50e5dd=cn(_0x3c5853,_0x21c848,_0x3403c9),_0x2cdd7f=an(_0x3c5853),_0xe78fff=_0x1d06fb?_0x24d98a(fe,{}):_0x24d98a(ge,{}),_0x32690d=_0x5dbac7(()=>{_0x426048&&_0x426048();},[_0x1d06fb,_0x14ab32,_0x426048]);function _0x42a37e(){var _0x2dc056=_0x4a72f9;return _0x2630a2(_0x2dc056(0x23d),{'className':_0x2fed94(_0x2dc056(0x1cc),_0x426048&&'hover:univer-opacity-80'),'onClick':_0x426048?_0x32690d:void 0x0,'children':[_0x24d98a(_0x2dc056(0x23d),{'className':_0x2fed94(_0x2dc056(0x25e),_0x2cdd7f),'children':_0xe78fff}),_0x24d98a('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3f499d})]});}return _0x24d98a(_0x1b4c08,{'title':_0x50e5dd,'placement':_0x4a72f9(0x1f3),'children':_0x42a37e()});}var un=Object[_0x2440ca(0x166)],vn=(_0x394938,_0x58a8e2,_0x3eef20,_0x478379)=>{for(var _0x3f74a5=_0x478379>0x1?void 0x0:_0x478379?un(_0x58a8e2,_0x3eef20):_0x58a8e2,_0x2ef545=_0x394938['length']-0x1,_0x3c8c42;_0x2ef545>=0x0;_0x2ef545--)(_0x3c8c42=_0x394938[_0x2ef545])&&(_0x3f74a5=_0x3c8c42(_0x3f74a5)||_0x3f74a5);return _0x3f74a5;},j=(_0x52bcbd,_0x42659a)=>(_0x405150,_0x2983b5)=>_0x42659a(_0x405150,_0x2983b5,_0x52bcbd);let A=class extends _0x14919f{constructor(_0x2a5aec,_0x405b14,_0x3e06a5){var _0x1f4c18=_0x2440ca;super(),this['_injector']=_0x2a5aec,this['_connectionController']=_0x405b14,this[_0x1f4c18(0x259)]=_0x3e06a5,this[_0x1f4c18(0x1bc)]['enableAutoConnect']=!0x1,this[_0x1f4c18(0x1ff)]();}['_initStatusComponent'](){var _0x3b51ca=_0x2440ca;this['disposeWithMe'](this[_0x3b51ca(0x259)]['registerComponent'](_0x1d86ff[_0x3b51ca(0x1c4)],()=>_0x528ff7(dn({'status$':this[_0x3b51ca(0x1bc)][_0x3b51ca(0x223)],'error$':this[_0x3b51ca(0x1bc)]['connectionError$'],'onConfigure':()=>this[_0x3b51ca(0x13a)]()}),this['_injector'])));}[_0x2440ca(0x13a)](){var _0x237c33=_0x2440ca;this[_0x237c33(0x212)][_0x237c33(0x1c7)](I)['showConfigPanel']();}};A=vn([j(0x0,_0x454fe3(_0x49e24c)),j(0x1,_0x454fe3(_0x53a6a3)),j(0x2,_0x376277)],A);function dn(_0x426482){const {status$:_0x5b5723,error$:_0x509c14,onConfigure:_0x40e357}=_0x426482;return function(){return _0x24d98a(ln,{'status$':_0x5b5723,'error$':_0x509c14,'onConfigure':_0x40e357});};}function gn(_0x41153a){var _0xb699fc=_0x2440ca;return{'id':B['id'],'type':_0x476e83[_0xb699fc(0x176)],'icon':_0xb699fc(0x261),'title':_0xb699fc(0x263),'tooltip':_0xb699fc(0x263)};}const fn={[_0x288030['OTHERS']]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object['getOwnPropertyDescriptor'],mn=(_0x2d5801,_0x321daf,_0x7704e8,_0xfe68e7)=>{var _0x3b08ed=_0x2440ca;for(var _0x1c4b0b=_0xfe68e7>0x1?void 0x0:_0xfe68e7?pn(_0x321daf,_0x7704e8):_0x321daf,_0x50ef4d=_0x2d5801[_0x3b08ed(0x1f8)]-0x1,_0x5f1e18;_0x50ef4d>=0x0;_0x50ef4d--)(_0x5f1e18=_0x2d5801[_0x50ef4d])&&(_0x1c4b0b=_0x5f1e18(_0x1c4b0b)||_0x1c4b0b);return _0x1c4b0b;},re=(_0x45a1e7,_0x3f62a9)=>(_0x452129,_0x35746a)=>_0x3f62a9(_0x452129,_0x35746a,_0x45a1e7);let M=class extends _0x14919f{constructor(_0x36aca7,_0x2eaa30){var _0x10204a=_0x2440ca;super(),this[_0x10204a(0x24b)]=_0x36aca7,this['_menuManagerService']=_0x2eaa30,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){var _0x30b28a=_0x2440ca;[B][_0x30b28a(0x1f5)](_0x41d30c=>{var _0x54fe52=_0x30b28a;this[_0x54fe52(0x1a1)](this['_commandService']['registerCommand'](_0x41d30c));});}[_0x2440ca(0x225)](){var _0x5736ec=_0x2440ca;this[_0x5736ec(0x114)][_0x5736ec(0x15c)](fn);}};M=mn([re(0x0,_0x565db4),re(0x1,_0x20abba)],M);const On={'mcpStatus':{'disconnected':_0x2440ca(0x172),'connecting':_0x2440ca(0x209),'connected':_0x2440ca(0x204),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2440ca(0x22d),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x2440ca(0x1b2),'invalidApiKey':_0x2440ca(0x1df),'sessionOccupied':_0x2440ca(0x21a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2440ca(0x251),'clickToConnect':_0x2440ca(0x1d0),'clickToConfigure':_0x2440ca(0x198)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2440ca(0x240),'apiKey':_0x2440ca(0x179),'apiKeyPlaceholder':_0x2440ca(0x205),'apiKeyHint':_0x2440ca(0x18e),'enableAuth':_0x2440ca(0x160),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2440ca(0x155),'mcpClientConfig':_0x2440ca(0x155),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2440ca(0x197),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2440ca(0x1d4),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x2440ca(0x1c8),'authorizationDescription':_0x2440ca(0x17c),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2440ca(0x177),'save':'Save\x20Configuration','saving':_0x2440ca(0x123),'note1':_0x2440ca(0x10f),'note2':_0x2440ca(0x1fd),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2440ca(0x1b4),'apiApplyInfo':{'title':_0x2440ca(0x111),'description':_0x2440ca(0x21c),'univerAiLabel':_0x2440ca(0x130),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2440ca(0x118),'apiKeyTooShort':_0x2440ca(0x22a),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x2440ca(0x19c),'failed':_0x2440ca(0x1a0),'retrying':_0x2440ca(0x1f7)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x2440ca(0x180),'sessionOccupied':_0x2440ca(0x18f),'networkError':_0x2440ca(0x191),'maxRetriesExceeded':_0x2440ca(0x1c6)}}},kn={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x2440ca(0x24e),'failed':_0x2440ca(0x262),'retrying':'MCP\x20重连中...','unknown':_0x2440ca(0x196),'missingApiKey':_0x2440ca(0x1a5),'invalidApiKey':_0x2440ca(0x216),'sessionOccupied':_0x2440ca(0x232),'networkError':_0x2440ca(0x23e),'maxRetriesExceeded':_0x2440ca(0x145),'clickToConnect':_0x2440ca(0x1ab),'clickToConfigure':_0x2440ca(0x1d7)},'mcpConfig':{'title':_0x2440ca(0x243),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x2440ca(0x22b),'apiKeyPlaceholder':_0x2440ca(0x1ce),'apiKeyHint':_0x2440ca(0x1ae),'enableAuth':_0x2440ca(0x21d),'enableAuthHint':_0x2440ca(0x18a),'connectionInfo':_0x2440ca(0x214),'mcpClientConfig':_0x2440ca(0x214),'configInstructions':_0x2440ca(0x19e),'configStepTitle':_0x2440ca(0x1cb),'configStep1':_0x2440ca(0x1db),'configStep2':_0x2440ca(0x1b1),'configStep3':_0x2440ca(0x1a7),'sessionId':_0x2440ca(0x268),'sessionIdDescription':_0x2440ca(0x1d9),'authorizationDescription':_0x2440ca(0x1ea),'configParameters':_0x2440ca(0x1d8),'maxRetries':_0x2440ca(0x13d),'save':'保存配置','saving':_0x2440ca(0x1bb),'note1':_0x2440ca(0x255),'note2':_0x2440ca(0x156),'configSaved':_0x2440ca(0x125),'configError':_0x2440ca(0x1ad),'apiApplyInfo':{'title':_0x2440ca(0x24d),'description':_0x2440ca(0x173),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x2440ca(0x14a)},'validation':{'apiKeyRequired':_0x2440ca(0x1e8),'apiKeyTooShort':_0x2440ca(0x1d2),'invalidConfig':_0x2440ca(0x1f9),'invalidApiKey':_0x2440ca(0x213)},'connectionStatus':{'disconnected':_0x2440ca(0x131),'connecting':_0x2440ca(0x119),'connected':_0x2440ca(0x16c),'failed':_0x2440ca(0x1d1),'retrying':_0x2440ca(0x159)},'connectionError':{'missingApiKey':_0x2440ca(0x219),'invalidApiKey':_0x2440ca(0x245),'sessionOccupied':_0x2440ca(0x1fb),'networkError':_0x2440ca(0x1b0),'maxRetriesExceeded':_0x2440ca(0x1ac)}}};var hn=Object['defineProperty'],Cn=Object[_0x2440ca(0x166)],yn=(_0x7e8b25,_0x5491c4,_0x2103fd)=>_0x5491c4 in _0x7e8b25?hn(_0x7e8b25,_0x5491c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2103fd}):_0x7e8b25[_0x5491c4]=_0x2103fd,_n=(_0x57c9ed,_0x304f88,_0x43213a,_0x276174)=>{var _0x4a49d9=_0x2440ca;for(var _0x5ce920=_0x276174>0x1?void 0x0:_0x276174?Cn(_0x304f88,_0x43213a):_0x304f88,_0x45a20c=_0x57c9ed[_0x4a49d9(0x1f8)]-0x1,_0x5a99dd;_0x45a20c>=0x0;_0x45a20c--)(_0x5a99dd=_0x57c9ed[_0x45a20c])&&(_0x5ce920=_0x5a99dd(_0x5ce920)||_0x5ce920);return _0x5ce920;},E=(_0x40c0d8,_0x46e384)=>(_0x13e5ed,_0xe7ccb8)=>_0x46e384(_0x13e5ed,_0xe7ccb8,_0x40c0d8),xn=(_0x5d83eb,_0x1ec8d4,_0x35ff83)=>yn(_0x5d83eb,_0x1ec8d4+'',_0x35ff83);let U=class extends _0x2f003c{constructor(_0x21a22e=ie,_0x592731,_0x3025bd,_0x33e4a2,_0x172138,_0x519434){var _0x430de5=_0x2440ca;super(),this[_0x430de5(0x1a4)]=_0x21a22e,this['_injector']=_0x592731,this[_0x430de5(0x162)]=_0x3025bd,this[_0x430de5(0x259)]=_0x33e4a2,this[_0x430de5(0x1f2)]=_0x172138,this['_localeService']=_0x519434;const {..._0x98805}=_0x2b9a14({},ie,this[_0x430de5(0x1a4)]);this['_configService']['setConfig'](L,_0x98805);}async['onStarting'](){var _0x2c5d53=_0x2440ca;const _0x3336b0=[[A],[I],[M]];this[_0x2c5d53(0x212)][_0x2c5d53(0x1af)](_0x3d63f7)||_0x3336b0['push']([_0x3d63f7,{'useClass':_0x4d4596}]),_0x3336b0[_0x2c5d53(0x1f5)](_0x23029d=>this[_0x2c5d53(0x212)][_0x2c5d53(0x241)](_0x23029d)),this['_injector'][_0x2c5d53(0x1c7)](A),this['_injector'][_0x2c5d53(0x1c7)](I),this['_injector'][_0x2c5d53(0x1c7)](M);}};xn(U,_0x2440ca(0x222),_0x2440ca(0x16e)),U=_n([_0x249ee2(_0x3c0971),E(0x1,_0x454fe3(_0x49e24c)),E(0x2,_0x45eb3c),E(0x3,_0x376277),E(0x4,_0x21fbd7),E(0x5,_0x454fe3(_0x698abf))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
1
+ var _0x3574c5=_0x2d63;(function(_0x46b369,_0x5de46a){var _0x942939=_0x2d63,_0xab485b=_0x46b369();while(!![]){try{var _0x3dd6e3=-parseInt(_0x942939(0x1df))/0x1*(parseInt(_0x942939(0x236))/0x2)+-parseInt(_0x942939(0x18c))/0x3*(-parseInt(_0x942939(0x18d))/0x4)+parseInt(_0x942939(0x239))/0x5+-parseInt(_0x942939(0x295))/0x6+parseInt(_0x942939(0x27a))/0x7+-parseInt(_0x942939(0x233))/0x8*(parseInt(_0x942939(0x14e))/0x9)+-parseInt(_0x942939(0x1d2))/0xa;if(_0x3dd6e3===_0x5de46a)break;else _0xab485b['push'](_0xab485b['shift']());}catch(_0x453623){_0xab485b['push'](_0xab485b['shift']());}}}(_0x2387,0xb3d80));var we=Object['defineProperty'],Ee=(_0x452aae,_0xd2c75b,_0x2f6bfd)=>_0xd2c75b in _0x452aae?we(_0x452aae,_0xd2c75b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f6bfd}):_0x452aae[_0xd2c75b]=_0x2f6bfd,S=(_0x465cf5,_0x2ca715,_0x1d0299)=>Ee(_0x465cf5,typeof _0x2ca715!='symbol'?_0x2ca715+'':_0x2ca715,_0x1d0299);import{LocaleService as _0x5e30d8,Inject as _0x5d3c90,Injector as _0x471d2e,IConfigService as _0x401ca3,ILocalStorageService as _0x21488e,ILogService as _0x4af03e,Disposable as _0x1bc153,CommandType as _0x4244a3,ICommandService as _0x341c97,DependentOn as _0x4b9302,Plugin as _0x34a5e5,merge as _0x48a548}from'@univerjs/core';import{jsxs as _0x127c76,jsx as _0x37c632}from'react/jsx-runtime';import{MCPConnectionStatus as _0x471fcb,MCPConnectionError as _0x2254ac,MCPConnectionController as _0x1dbbf6,MCP_PLUGIN_CONFIG_KEY as _0x32d439,UniverMCPPlugin as _0x5284cf}from'@univerjs-pro/mcp';import{Input as _0x4e1108,Button as _0xeb125b,MessageType as _0x486efb,Tooltip as _0x370899,clsx as _0x20c922}from'@univerjs/design';import{useDependency as _0x363bb5,useObservable as _0x244b6e,IUIPartsService as _0x13b205,IDialogService as _0x532761,IMessageService as _0x1fcb71,ComponentManager as _0x1e1131,connectInjector as _0x3e857f,BuiltInUIPart as _0x26227b,MenuItemType as _0xa892ef,RibbonStartGroup as _0x3ebdfc,IMenuManagerService as _0x58265b}from'@univerjs/ui';import{BehaviorSubject as _0x2fb825}from'rxjs';import{forwardRef as _0x51fdc9,useRef as _0x32c965,createElement as _0x598b98,useState as _0x4dcba5,useCallback as _0x4f31bd}from'react';import{ISocketService as _0xdde858,WebSocketService as _0x1f04c8}from'@univerjs/network';var f=function(){var _0x19f789=_0x2d63;return f=Object[_0x19f789(0x180)]||function(_0x49aa72){var _0x1ff626=_0x19f789;for(var _0x100168,_0x5e3bf6=0x1,_0x565697=arguments[_0x1ff626(0x171)];_0x5e3bf6<_0x565697;_0x5e3bf6++){_0x100168=arguments[_0x5e3bf6];for(var _0x52d896 in _0x100168)Object[_0x1ff626(0x1db)][_0x1ff626(0x175)][_0x1ff626(0x1a4)](_0x100168,_0x52d896)&&(_0x49aa72[_0x52d896]=_0x100168[_0x52d896]);}return _0x49aa72;},f[_0x19f789(0x208)](this,arguments);},Ye=function(_0x365a31,_0x230ade){var _0x289611=_0x2d63,_0x2ec836={};for(var _0x34c0bd in _0x365a31)Object[_0x289611(0x1db)][_0x289611(0x175)][_0x289611(0x1a4)](_0x365a31,_0x34c0bd)&&_0x230ade[_0x289611(0x298)](_0x34c0bd)<0x0&&(_0x2ec836[_0x34c0bd]=_0x365a31[_0x34c0bd]);if(_0x365a31!=null&&typeof Object[_0x289611(0x2a1)]==_0x289611(0x268)){for(var _0x5c0238=0x0,_0x34c0bd=Object[_0x289611(0x2a1)](_0x365a31);_0x5c0238<_0x34c0bd['length'];_0x5c0238++)_0x230ade[_0x289611(0x298)](_0x34c0bd[_0x5c0238])<0x0&&Object[_0x289611(0x1db)][_0x289611(0x167)][_0x289611(0x1a4)](_0x365a31,_0x34c0bd[_0x5c0238])&&(_0x2ec836[_0x34c0bd[_0x5c0238]]=_0x365a31[_0x34c0bd[_0x5c0238]]);}return _0x2ec836;},w=_0x51fdc9(function(_0x40d9f2,_0x1c2af0){var _0xb2cd97=_0x2d63,_0x47914b=_0x40d9f2[_0xb2cd97(0x286)],_0x1a7758=_0x40d9f2['id'],_0xef2549=_0x40d9f2[_0xb2cd97(0x20d)],_0x5c478a=_0x40d9f2['extend'],_0x15b371=Ye(_0x40d9f2,['icon','id',_0xb2cd97(0x20d),_0xb2cd97(0x284)]),_0x1c000e=_0xb2cd97(0x26e)[_0xb2cd97(0x23e)](_0x1a7758,'\x20')[_0xb2cd97(0x23e)](_0xef2549||'')[_0xb2cd97(0x1f1)](),_0x583e43=_0x32c965('_'[_0xb2cd97(0x23e)](Xe()));return ue(_0x47914b,''['concat'](_0x1a7758),{'defIds':_0x47914b[_0xb2cd97(0x1cd)],'idSuffix':_0x583e43[_0xb2cd97(0x1c4)]},f({'ref':_0x1c2af0,'className':_0x1c000e},_0x15b371),_0x5c478a);});function ue(_0x4cde8e,_0x5d385c,_0x43909c,_0x590c6e,_0x3e47fc){var _0x23759d=_0x2d63;return _0x598b98(_0x4cde8e[_0x23759d(0x20f)],f(f({'key':_0x5d385c},Ze(_0x4cde8e,_0x43909c,_0x3e47fc)),_0x590c6e),(qe(_0x4cde8e,_0x43909c)[_0x23759d(0x1b8)]||[])[_0x23759d(0x2af)](function(_0x4a4b67,_0x188c6f){var _0x5848f6=_0x23759d;return ue(_0x4a4b67,''[_0x5848f6(0x23e)](_0x5d385c,'-')[_0x5848f6(0x23e)](_0x4cde8e[_0x5848f6(0x20f)],'-')[_0x5848f6(0x23e)](_0x188c6f),_0x43909c,void 0x0,_0x3e47fc);}));}function Ze(_0x2e80f4,_0x3c927e,_0x147ffa){var _0x1693a3=_0x2d63,_0x1428e9=f({},_0x2e80f4[_0x1693a3(0x1bb)]);_0x147ffa!=null&&_0x147ffa[_0x1693a3(0x203)]&&_0x1428e9[_0x1693a3(0x1e7)]===_0x1693a3(0x203)&&(_0x1428e9[_0x1693a3(0x1e7)]=_0x147ffa['colorChannel1']),_0x2e80f4['tag']==='mask'&&_0x1428e9['id']&&(_0x1428e9['id']=_0x1428e9['id']+_0x3c927e[_0x1693a3(0x1fd)]),Object[_0x1693a3(0x190)](_0x1428e9)[_0x1693a3(0x280)](function(_0x45dcfd){var _0x2274a1=_0x1693a3,_0x35fd69=_0x45dcfd[0x0],_0x3dcc05=_0x45dcfd[0x1];_0x35fd69==='mask'&&typeof _0x3dcc05==_0x2274a1(0x158)&&(_0x1428e9[_0x35fd69]=_0x3dcc05[_0x2274a1(0x2ab)](/url\(#(.*)\)/,'url(#$1'[_0x2274a1(0x23e)](_0x3c927e[_0x2274a1(0x1fd)],')')));});var _0x12518c=_0x3c927e[_0x1693a3(0x1cd)];return!_0x12518c||_0x12518c[_0x1693a3(0x171)]===0x0||(_0x2e80f4[_0x1693a3(0x20f)]==='use'&&_0x1428e9[_0x1693a3(0x293)]&&(_0x1428e9['xlink:href']=_0x1428e9[_0x1693a3(0x293)]+_0x3c927e[_0x1693a3(0x1fd)]),Object[_0x1693a3(0x190)](_0x1428e9)[_0x1693a3(0x280)](function(_0x1b2c49){var _0xa76852=_0x1693a3,_0x33e744=_0x1b2c49[0x0],_0x181eb6=_0x1b2c49[0x1];typeof _0x181eb6=='string'&&(_0x1428e9[_0x33e744]=_0x181eb6[_0xa76852(0x2ab)](/url\(#(.*)\)/,_0xa76852(0x1dc)[_0xa76852(0x23e)](_0x3c927e['idSuffix'],')')));})),_0x1428e9;}function qe(_0x41ccf3,_0x557cc5){var _0x1c31b6=_0x2d63,_0x432977,_0x3973db=_0x557cc5[_0x1c31b6(0x1cd)];return!_0x3973db||_0x3973db[_0x1c31b6(0x171)]===0x0?_0x41ccf3:_0x41ccf3['tag']==='defs'&&(!((_0x432977=_0x41ccf3[_0x1c31b6(0x1b8)])===null||_0x432977===void 0x0)&&_0x432977['length'])?f(f({},_0x41ccf3),{'children':_0x41ccf3['children'][_0x1c31b6(0x2af)](function(_0xc08ad9){var _0x3c4a71=_0x1c31b6;return typeof _0xc08ad9[_0x3c4a71(0x1bb)]['id']==_0x3c4a71(0x158)&&_0x3973db&&_0x3973db[_0x3c4a71(0x176)](_0xc08ad9[_0x3c4a71(0x1bb)]['id'])?f(f({},_0xc08ad9),{'attrs':f(f({},_0xc08ad9['attrs']),{'id':_0xc08ad9['attrs']['id']+_0x557cc5[_0x3c4a71(0x1fd)]})}):_0xc08ad9;})}):_0x41ccf3;}function Xe(){var _0xe3577f=_0x2d63;return Math['random']()['toString'](0x24)[_0xe3577f(0x1b4)](0x2,0x8);}w[_0x3574c5(0x200)]=_0x3574c5(0x27b);var Je={'tag':_0x3574c5(0x17e),'attrs':{'xmlns':_0x3574c5(0x19d),'fill':_0x3574c5(0x1a9),'viewBox':_0x3574c5(0x1e8),'width':'1em','height':_0x3574c5(0x264)},'children':[{'tag':'path','attrs':{'fill':_0x3574c5(0x18e),'d':_0x3574c5(0x26a),'fillRule':_0x3574c5(0x2ac),'clipRule':_0x3574c5(0x2ac)}}]},le=_0x51fdc9(function(_0x55387c,_0x58601e){var _0x4adaae=_0x3574c5;return _0x598b98(w,Object[_0x4adaae(0x180)]({},_0x55387c,{'id':_0x4adaae(0x253),'ref':_0x58601e,'icon':Je}));});le[_0x3574c5(0x200)]=_0x3574c5(0x27e);var Qe={'tag':_0x3574c5(0x17e),'attrs':{'xmlns':_0x3574c5(0x19d),'fill':_0x3574c5(0x1a9),'viewBox':_0x3574c5(0x247),'width':_0x3574c5(0x264),'height':_0x3574c5(0x264)},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'stroke':'currentColor','d':_0x3574c5(0x159),'strokeLinecap':'round','strokeLinejoin':_0x3574c5(0x292),'strokeWidth':1.33}},{'tag':_0x3574c5(0x23a),'attrs':{'stroke':'currentColor','d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x3574c5(0x292),'strokeLinejoin':_0x3574c5(0x292),'strokeWidth':1.33}}]},ve=_0x51fdc9(function(_0x954670,_0x4de3b8){var _0x448026=_0x3574c5;return _0x598b98(w,Object[_0x448026(0x180)]({},_0x954670,{'id':_0x448026(0x1ad),'ref':_0x4de3b8,'icon':Qe}));});ve['displayName']='CloseSmallSingle';var en={'tag':_0x3574c5(0x17e),'attrs':{'xmlns':_0x3574c5(0x19d),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x3574c5(0x264),'height':'1em'},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'fill':_0x3574c5(0x18e),'d':_0x3574c5(0x1c8)}},{'tag':_0x3574c5(0x23a),'attrs':{'fill':_0x3574c5(0x18e),'d':_0x3574c5(0x191)}},{'tag':_0x3574c5(0x23a),'attrs':{'fill':_0x3574c5(0x18e),'d':_0x3574c5(0x25c),'fillRule':_0x3574c5(0x2ac),'clipRule':'evenodd'}}]},de=_0x51fdc9(function(_0xda4bd8,_0x13b6c0){var _0x371245=_0x3574c5;return _0x598b98(w,Object[_0x371245(0x180)]({},_0xda4bd8,{'id':_0x371245(0x15b),'ref':_0x13b6c0,'icon':en}));});de['displayName']=_0x3574c5(0x1fc);var nn={'tag':_0x3574c5(0x17e),'attrs':{'xmlns':_0x3574c5(0x19d),'fill':'none','viewBox':_0x3574c5(0x1e8),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3574c5(0x260)},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'stroke':_0x3574c5(0x18e),'d':_0x3574c5(0x27d),'strokeLinecap':'round','strokeLinejoin':_0x3574c5(0x292),'strokeWidth':1.2}}]},{'tag':_0x3574c5(0x210),'attrs':{},'children':[{'tag':_0x3574c5(0x1f3),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3574c5(0x205)]},fe=_0x51fdc9(function(_0x2e02e0,_0x5c8cb6){var _0x481888=_0x3574c5;return _0x598b98(w,Object[_0x481888(0x180)]({},_0x2e02e0,{'id':_0x481888(0x1e9),'ref':_0x5c8cb6,'icon':nn}));});function _0x2d63(_0x4df704,_0x29f506){var _0x23872e=_0x2387();return _0x2d63=function(_0x2d63e6,_0x502769){_0x2d63e6=_0x2d63e6-0x14b;var _0x39499c=_0x23872e[_0x2d63e6];return _0x39499c;},_0x2d63(_0x4df704,_0x29f506);}fe['displayName']=_0x3574c5(0x17c);var rn={'tag':_0x3574c5(0x17e),'attrs':{'xmlns':_0x3574c5(0x19d),'fill':_0x3574c5(0x1a9),'viewBox':'0\x200\x2017\x2016','width':_0x3574c5(0x264),'height':_0x3574c5(0x264)},'children':[{'tag':'g','attrs':{'clipPath':_0x3574c5(0x1c9)},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'stroke':_0x3574c5(0x18e),'d':_0x3574c5(0x285),'strokeLinecap':_0x3574c5(0x292),'strokeLinejoin':_0x3574c5(0x292),'strokeWidth':1.2}}]},{'tag':_0x3574c5(0x210),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3574c5(0x23a),'attrs':{'fill':'white','d':_0x3574c5(0x259),'transform':_0x3574c5(0x230)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x51fdc9(function(_0x2c115b,_0x5b79a9){var _0x1ab1d3=_0x3574c5;return _0x598b98(w,Object['assign']({},_0x2c115b,{'id':_0x1ab1d3(0x206),'ref':_0x5b79a9,'icon':rn}));});ge[_0x3574c5(0x200)]=_0x3574c5(0x156);function tn(_0x27a475){var _0x24e862=_0x3574c5,_0x350b9c,_0x5b6236;const {mcpCoreConfig:_0xe612c5,onSave:_0x41f93c,loading:_0x5ea752=!0x1,config:_0x48ad54,connectionStatus$:_0x2cd5b7,connectionError$:_0x55f05e,currentApiKey$:_0x465a32,currentSessionId$:_0x114799}=_0x27a475,_0x3e102c=_0x363bb5(_0x5e30d8),_0x2f5ccb=_0x244b6e(_0x2cd5b7,_0x471fcb['DISCONNECTED']),_0x56c497=_0x244b6e(_0x55f05e,_0x2254ac[_0x24e862(0x16b)]),_0x26fea2=_0x244b6e(_0x114799,''),_0xb770b3=_0x244b6e(_0x465a32,''),[_0x34bef0,_0x4e9b15]=_0x4dcba5(_0xb770b3||''),_0x3b2dad=!0x0,_0x125a27=_0x48ad54[_0x24e862(0x1d8)]&&_0xe612c5['mcpServerUrl']&&(_0xe612c5[_0x24e862(0x261)][_0x24e862(0x176)]('univer.plus')||_0xe612c5[_0x24e862(0x261)][_0x24e862(0x176)](_0x24e862(0x24a))),_0x4fd4c8=(_0x350b9c=_0xe612c5[_0x24e862(0x261)])==null?void 0x0:_0x350b9c[_0x24e862(0x176)](_0x24e862(0x299)),_0x265515=(_0x5b6236=_0xe612c5[_0x24e862(0x261)])==null?void 0x0:_0x5b6236['includes'](_0x24e862(0x24a)),_0x4aa5c2=_0x4fd4c8?'https://console.univer.plus':_0x24e862(0x1f9),_0x526c77=_0x48ad54[_0x24e862(0x1d8)]&&(_0x4fd4c8||_0x265515),[_0x48691b,_0x4cd109]=_0x4dcba5(!_0x34bef0['trim']()),_0x33aff8=(_0x5f5b71,_0x17785c)=>{var _0xafaceb=_0x24e862;if(_0x17785c===_0x2254ac[_0xafaceb(0x1b3)])return _0xafaceb(0x153);switch(_0x5f5b71){case _0x471fcb[_0xafaceb(0x1d3)]:return _0xafaceb(0x29b);case _0x471fcb[_0xafaceb(0x157)]:case _0x471fcb[_0xafaceb(0x1d6)]:return _0xafaceb(0x222);case _0x471fcb[_0xafaceb(0x27c)]:return _0xafaceb(0x153);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0xab1c60=(_0x307608,_0x40fa6e)=>{var _0x264c7f=_0x24e862;if(_0x40fa6e===_0x2254ac[_0x264c7f(0x1b3)])return _0x264c7f(0x194);switch(_0x307608){case _0x471fcb[_0x264c7f(0x1d3)]:return _0x264c7f(0x1e6);case _0x471fcb['CONNECTING']:case _0x471fcb['RETRYING']:return _0x264c7f(0x29e);case _0x471fcb[_0x264c7f(0x27c)]:return _0x264c7f(0x194);default:return _0x264c7f(0x290);}},_0x1963fe=_0x791d31=>{var _0x20083c=_0x24e862;switch(_0x791d31){case _0x471fcb['CONNECTED']:return _0x3e102c['t'](_0x20083c(0x1e2));case _0x471fcb[_0x20083c(0x157)]:return _0x3e102c['t'](_0x20083c(0x15f));case _0x471fcb[_0x20083c(0x27c)]:return _0x3e102c['t'](_0x20083c(0x193));case _0x471fcb[_0x20083c(0x1d6)]:return _0x3e102c['t'](_0x20083c(0x1e1));default:return _0x3e102c['t'](_0x20083c(0x20e));}},_0x37b774=_0x9d946=>{var _0x4e9ef6=_0x24e862;switch(_0x9d946){case _0x2254ac[_0x4e9ef6(0x1b3)]:return _0x3e102c['t'](_0x4e9ef6(0x166));case _0x2254ac[_0x4e9ef6(0x1f6)]:return _0x3e102c['t'](_0x4e9ef6(0x1cb));case _0x2254ac['NETWORK_ERROR']:return _0x3e102c['t'](_0x4e9ef6(0x1aa));case _0x2254ac[_0x4e9ef6(0x2aa)]:return _0x3e102c['t'](_0x4e9ef6(0x1e5));default:return'';}},_0x32ea64=_0x4f31bd(()=>{const _0x91bdeb={..._0xe612c5,'apiKey':_0x34bef0['trim'](),'enableAuth':_0x3b2dad};_0x41f93c(_0x91bdeb);},[_0xe612c5,_0x34bef0,_0x3b2dad,_0x41f93c]),_0x490e5f=_0x34bef0[_0x24e862(0x1f1)]()[_0x24e862(0x171)]>0x0;return _0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x211),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x25a),'children':_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x16d),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x21b),'children':_0x37c632(_0x24e862(0x212),{'className':'univer-text-white','children':'⚙'})}),_0x37c632(_0x24e862(0x184),{'children':_0x37c632('p',{'className':_0x24e862(0x24f),'children':_0x3e102c['t'](_0x24e862(0x243))})})]})}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x202),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x278)+_0x33aff8(_0x2f5ccb,_0x56c497)+_0x24e862(0x279),'children':_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x276),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x1f4)+_0xab1c60(_0x2f5ccb,_0x56c497)+_0x24e862(0x269)}),_0x37c632(_0x24e862(0x212),{'className':_0x24e862(0x245),'children':_0x1963fe(_0x2f5ccb)})]})}),_0x56c497!==_0x2254ac['NONE']&&(_0x2f5ccb===_0x471fcb[_0x24e862(0x27c)]||_0x56c497===_0x2254ac[_0x24e862(0x1b3)])&&_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x187),'children':_0x127c76(_0x24e862(0x184),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x37c632(_0x24e862(0x212),{'className':_0x24e862(0x1d9),'children':'⚠️'}),_0x37c632('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x37b774(_0x56c497)})]})})]}),_0x37c632('div',{'className':_0x24e862(0x164),'children':_0x127c76(_0x24e862(0x184),{'className':'univer-space-y-5','children':[_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x1bf),'children':[_0x127c76(_0x24e862(0x1ec),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x37c632(_0x24e862(0x212),{'children':'🔑'}),'\x20',_0x3e102c['t']('mcpConfig.apiKey'),_0x37c632('span',{'className':'univer-text-red-500','children':'*'}),_0x125a27&&_0x37c632('a',{'href':_0x24e862(0x1c6),'onClick':()=>_0x4cd109(!0x0),'className':_0x24e862(0x21d),'title':_0x3e102c['t']('mcpConfig.apiApplyInfo.title'),'children':_0x37c632(de,{})})]}),_0x37c632(_0x4e1108,{'type':_0x24e862(0x237),'placeholder':_0x3e102c['t'](_0x24e862(0x22e)),'value':_0x34bef0,'onChange':_0x4e9b15,'disabled':_0x5ea752,'autoComplete':_0x24e862(0x2a3)}),_0x37c632('p',{'className':_0x24e862(0x152),'children':_0x3e102c['t'](_0x24e862(0x163))})]}),_0x125a27&&_0x48691b&&_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x275),'children':[_0x37c632('a',{'href':_0x24e862(0x1c6),'onClick':()=>_0x4cd109(!0x1),'className':_0x24e862(0x252),'title':_0x24e862(0x273),'children':_0x37c632(ve,{})}),_0x127c76('div',{'className':_0x24e862(0x17b),'children':[_0x37c632(_0x24e862(0x184),{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x37c632('span',{'className':_0x24e862(0x256),'children':'🚀'})}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x1a5),'children':[_0x37c632('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x3e102c['t'](_0x24e862(0x1ef))}),_0x37c632('p',{'className':_0x24e862(0x1e0),'children':_0x3e102c['t'](_0x24e862(0x182))}),_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x251),'children':_0x526c77&&_0x127c76('a',{'href':_0x4aa5c2,'target':_0x24e862(0x1f0),'rel':_0x24e862(0x223),'className':_0x24e862(0x248),'children':[_0x37c632(_0x24e862(0x212),{'children':'🤖'}),_0x3e102c['t'](_0x24e862(0x2a8)),_0x37c632(_0x24e862(0x212),{'className':_0x24e862(0x2ae),'children':'↗'})]})}),_0x127c76('div',{'className':_0x24e862(0x23c),'children':['✨','\x20',_0x3e102c['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x48ad54[_0x24e862(0x1d8)]&&_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x219),'children':[_0x127c76('h4',{'className':_0x24e862(0x25b),'children':[_0x37c632('span',{'children':'🔗'}),'\x20',_0x3e102c['t']('mcpConfig.connectionInfo')]}),_0x127c76('div',{'className':'univer-space-y-4','children':[_0x127c76('div',{'className':_0x24e862(0x195),'children':[_0x37c632('p',{'className':_0x24e862(0x216),'children':_0x3e102c['t'](_0x24e862(0x235))}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x1bf),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x24e),'children':_0x3e102c['t'](_0x24e862(0x1d5))}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x287),'children':[_0x127c76('div',{'className':_0x24e862(0x276),'children':[_0x37c632('span',{'className':_0x24e862(0x1b7),'children':'1'}),_0x3e102c['t'](_0x24e862(0x1d1))]}),_0x127c76(_0x24e862(0x184),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x37c632(_0x24e862(0x212),{'className':_0x24e862(0x1b7),'children':'2'}),_0x3e102c['t'](_0x24e862(0x288))]}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x276),'children':[_0x37c632(_0x24e862(0x212),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x3e102c['t'](_0x24e862(0x15a))]})]})]})]}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x1bf),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x24e),'children':'MCP\x20Configuration'}),_0x37c632(_0x24e862(0x184),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x37c632(_0x24e862(0x28f),{'className':_0x24e862(0x291),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x26fea2+_0x24e862(0x2a9)+(_0x34bef0||_0x24e862(0x1ae))+_0x24e862(0x229)})})]}),_0x127c76('div',{'className':_0x24e862(0x195),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x24e),'children':_0x3e102c['t']('mcpConfig.configParameters')}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x1bf),'children':[_0x127c76(_0x24e862(0x184),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x22b)}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x27f),'children':[_0x37c632(_0x24e862(0x184),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x152),'children':_0x3e102c['t'](_0x24e862(0x218))})]})]}),_0x127c76(_0x24e862(0x184),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x22b)}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x27f),'children':[_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x155),'children':_0x24e862(0x1a7)}),_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x152),'children':_0x3e102c['t'](_0x24e862(0x1c5))})]})]})]})]})]})]}),_0x37c632(_0xeb125b,{'onClick':_0x32ea64,'disabled':!_0x490e5f||_0x5ea752,'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':_0x5ea752?_0x127c76(_0x24e862(0x212),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x37c632(_0x24e862(0x212),{'children':'⟲'}),_0x3e102c['t'](_0x24e862(0x281))]}):_0x127c76('span',{'className':_0x24e862(0x276),'children':[_0x37c632(le,{}),_0x3e102c['t']('mcpConfig.save')]})}),_0x37c632(_0x24e862(0x184),{'className':_0x24e862(0x198),'children':_0x127c76('div',{'className':_0x24e862(0x1b5),'children':[_0x37c632(_0x24e862(0x212),{'className':_0x24e862(0x1ff),'children':'💡'}),_0x127c76(_0x24e862(0x184),{'className':_0x24e862(0x183),'children':[_0x37c632('div',{'className':_0x24e862(0x254),'children':_0x24e862(0x221)}),_0x127c76(_0x24e862(0x184),{'children':['•',_0x3e102c['t'](_0x24e862(0x1e4))]}),_0x127c76(_0x24e862(0x184),{'children':['•',_0x3e102c['t'](_0x24e862(0x294))]})]})]})})]})})]});}const x=_0x3574c5(0x22d),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object[_0x3574c5(0x2a5)],sn=(_0x277b63,_0x312659,_0x1600c9,_0x5b12a4)=>{var _0x5adaf7=_0x3574c5;for(var _0x1d33a3=_0x5b12a4>0x1?void 0x0:_0x5b12a4?on(_0x312659,_0x1600c9):_0x312659,_0x4a6503=_0x277b63[_0x5adaf7(0x171)]-0x1,_0x3d6891;_0x4a6503>=0x0;_0x4a6503--)(_0x3d6891=_0x277b63[_0x4a6503])&&(_0x1d33a3=_0x3d6891(_0x1d33a3)||_0x1d33a3);return _0x1d33a3;},g=(_0x13502c,_0x3b4e4e)=>(_0x323276,_0x32d0d4)=>_0x3b4e4e(_0x323276,_0x32d0d4,_0x13502c);const j=_0x3574c5(0x25d),U=_0x3574c5(0x238);let I=class extends _0x1bc153{constructor(_0x2ee411,_0x5ba21c,_0x3248e9,_0x193b45,_0x1cf02c,_0xf52722,_0x240662,_0x48d632,_0x582829,_0xc7671a){var _0x1c3b58=_0x3574c5;super(),S(this,'_loading$',new _0x2fb825(!0x1)),S(this,_0x1c3b58(0x1eb),new _0x2fb825({})),S(this,_0x1c3b58(0x272),new _0x2fb825({})),S(this,'_apiKey$',new _0x2fb825('')),S(this,_0x1c3b58(0x1c0),async _0x3327c4=>{var _0x46756c=_0x1c3b58,_0x4a3637,_0x7a8bae;this[_0x46756c(0x19f)][_0x46756c(0x199)](!0x0);try{const _0x33434f=await this[_0x46756c(0x26f)](_0x3327c4);if(!_0x33434f[_0x46756c(0x29d)]){this[_0x46756c(0x17a)][_0x46756c(0x14c)]({'type':_0x486efb['Error'],'content':_0x33434f[_0x46756c(0x22a)]||this[_0x46756c(0x179)]['t'](_0x46756c(0x1de))});return;}_0x3327c4[_0x46756c(0x1fe)]?await this['_localStorageService']['setItem'](j,_0x3327c4[_0x46756c(0x1fe)]['trim']()):await this[_0x46756c(0x225)]['removeItem'](j),this['_apiKey$'][_0x46756c(0x199)](((_0x4a3637=_0x3327c4[_0x46756c(0x1fe)])==null?void 0x0:_0x4a3637[_0x46756c(0x1f1)]())||''),this['_mcpConnectionController'][_0x46756c(0x1be)]({'Authorization':'Bearer\x20'+((_0x7a8bae=_0x3327c4[_0x46756c(0x1fe)])==null?void 0x0:_0x7a8bae[_0x46756c(0x1f1)]())}),this['_messageService'][_0x46756c(0x14c)]({'type':_0x486efb['Success'],'content':this[_0x46756c(0x179)]['t'](_0x46756c(0x297))}),setTimeout(()=>{var _0x369e1b=_0x46756c;this[_0x369e1b(0x201)]['close'](U);},0x320);}catch(_0x126d91){this['_logService'][_0x46756c(0x28c)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x126d91),this['_messageService'][_0x46756c(0x14c)]({'type':_0x486efb[_0x46756c(0x255)],'content':this[_0x46756c(0x179)]['t'](_0x46756c(0x165))});}finally{this['_loading$'][_0x46756c(0x199)](!0x1);}}),(this[_0x1c3b58(0x18f)]=_0x2ee411,this[_0x1c3b58(0x172)]=_0x5ba21c,this['_configService']=_0x3248e9,this[_0x1c3b58(0x225)]=_0x193b45,this[_0x1c3b58(0x201)]=_0x1cf02c,this[_0x1c3b58(0x17a)]=_0xf52722,this['_componentManager']=_0x240662,this[_0x1c3b58(0x179)]=_0x48d632,this[_0x1c3b58(0x283)]=_0x582829,this[_0x1c3b58(0x1e3)]=_0xc7671a,this['_initConfigSync'](),this[_0x1c3b58(0x16e)](),this[_0x1c3b58(0x20c)]());}[_0x3574c5(0x21c)](){var _0x3a6e26=_0x3574c5;const _0x99f3a=this['_configService'][_0x3a6e26(0x15c)](x);_0x99f3a!=null&&_0x99f3a[_0x3a6e26(0x1d8)]&&this[_0x3a6e26(0x201)]['open']({'id':U,'title':{'title':this[_0x3a6e26(0x179)]['t'](_0x3a6e26(0x1b9))},'children':{'label':_0x3a6e26(0x1cf)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x23ae91=_0x3a6e26;this[_0x23ae91(0x201)][_0x23ae91(0x1ee)](U);}});}['getCurrentConfig'](){var _0x2d56cb=_0x3574c5;return this[_0x2d56cb(0x1eb)][_0x2d56cb(0x289)];}[_0x3574c5(0x20c)](){var _0x382b2e=_0x3574c5;this[_0x382b2e(0x161)](this['_componentManager'][_0x382b2e(0x1bc)](_0x382b2e(0x1cf),this[_0x382b2e(0x1b6)]()));}[_0x3574c5(0x1b6)](){var _0x479c23=_0x3574c5;return _0x3e857f(()=>{var _0x2e00ed=_0x2d63,_0xb774bc,_0x458a85,_0x2e4b60;return _0x37c632(tn,{'config':this[_0x2e00ed(0x272)][_0x2e00ed(0x289)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x2e00ed(0x289)],'currentApiKey$':this[_0x2e00ed(0x174)],'onSave':this[_0x2e00ed(0x1c0)],'loading':this[_0x2e00ed(0x19f)][_0x2e00ed(0x289)],'connectionStatus$':(_0xb774bc=this[_0x2e00ed(0x1e3)])==null?void 0x0:_0xb774bc['connectionStatus$'],'connectionError$':(_0x458a85=this[_0x2e00ed(0x1e3)])==null?void 0x0:_0x458a85[_0x2e00ed(0x240)],'currentSessionId$':(_0x2e4b60=this[_0x2e00ed(0x1e3)])==null?void 0x0:_0x2e4b60[_0x2e00ed(0x17d)]});},this[_0x479c23(0x18f)]);}[_0x3574c5(0x266)](){var _0x2921ba=_0x3574c5;this['disposeWithMe'](this[_0x2921ba(0x14d)][_0x2921ba(0x23f)](_0x32d439)[_0x2921ba(0x207)](_0x1b7720=>{var _0x3cbe28=_0x2921ba;this[_0x3cbe28(0x1eb)][_0x3cbe28(0x199)](_0x1b7720||{});}));const _0x2ea23c=this[_0x2921ba(0x14d)]['getConfig'](_0x32d439);this[_0x2921ba(0x1eb)]['next'](_0x2ea23c||{}),this[_0x2921ba(0x161)](this[_0x2921ba(0x14d)][_0x2921ba(0x23f)](x)[_0x2921ba(0x207)](_0x105d9d=>{var _0x37e2be=_0x2921ba;this[_0x37e2be(0x272)][_0x37e2be(0x199)](_0x105d9d||{});}));const _0x1610ee=this['_configService'][_0x2921ba(0x15c)](x);this[_0x2921ba(0x272)][_0x2921ba(0x199)](_0x1610ee||{});}async[_0x3574c5(0x16e)](){var _0x523fa9=_0x3574c5;const _0x5d5d75=this['_configService']['getConfig'](x);if(!(_0x5d5d75!=null&&_0x5d5d75[_0x523fa9(0x1d8)]))return;const _0x560412=await this[_0x523fa9(0x225)][_0x523fa9(0x21e)](j);_0x560412&&(this[_0x523fa9(0x1e3)][_0x523fa9(0x1be)]({'Authorization':'Bearer\x20'+_0x560412}),this[_0x523fa9(0x174)][_0x523fa9(0x199)](_0x560412));}async[_0x3574c5(0x26f)](_0x555e37){var _0x4fb3b4=_0x3574c5;if(!_0x555e37[_0x4fb3b4(0x1fe)]||_0x555e37['apiKey']['trim']()[_0x4fb3b4(0x171)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x4fb3b4(0x1cc))};if(_0x555e37[_0x4fb3b4(0x1fe)][_0x4fb3b4(0x1f1)]()[_0x4fb3b4(0x171)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x2a9e88=await this[_0x4fb3b4(0x18f)][_0x4fb3b4(0x244)](_0x1dbbf6)[_0x4fb3b4(0x1a6)](_0x555e37[_0x4fb3b4(0x1fe)][_0x4fb3b4(0x1f1)]());return _0x2a9e88[_0x4fb3b4(0x29d)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2a9e88[_0x4fb3b4(0x28c)]||this['_localeService']['t'](_0x4fb3b4(0x234))};}catch(_0x339e05){return console[_0x4fb3b4(0x213)](_0x4fb3b4(0x232),_0x339e05),{'isValid':!0x0};}}};I=sn([g(0x0,_0x5d3c90(_0x471d2e)),g(0x1,_0x13b205),g(0x2,_0x401ca3),g(0x3,_0x21488e),g(0x4,_0x532761),g(0x5,_0x1fcb71),g(0x6,_0x5d3c90(_0x1e1131)),g(0x7,_0x5d3c90(_0x5e30d8)),g(0x8,_0x4af03e),g(0x9,_0x5d3c90(_0x1dbbf6))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x4244a3[_0x3574c5(0x1a1)],'handler':async(_0x34047d,_0x5cfd68)=>(_0x34047d[_0x3574c5(0x244)](I)[_0x3574c5(0x21c)](),!0x0)};function pe(_0x5155f1,_0x28718e){var _0x3c5edb=_0x3574c5;switch(_0x5155f1){case _0x471fcb[_0x3c5edb(0x196)]:return _0x3c5edb(0x17f);case _0x471fcb[_0x3c5edb(0x157)]:return _0x3c5edb(0x28a);case _0x471fcb[_0x3c5edb(0x1d3)]:return'mcpStatus.connected';case _0x471fcb[_0x3c5edb(0x27c)]:switch(_0x28718e){case _0x2254ac[_0x3c5edb(0x1b3)]:return _0x3c5edb(0x19b);case _0x2254ac['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case _0x2254ac[_0x3c5edb(0x21f)]:return _0x3c5edb(0x162);case _0x2254ac[_0x3c5edb(0x2aa)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x471fcb[_0x3c5edb(0x1d6)]:return _0x3c5edb(0x160);default:return _0x3c5edb(0x22f);}}function cn(_0x1de12f,_0x42a757,_0x400ed4,_0x2f3766=!0x0){var _0x29e35b=_0x3574c5;const _0x421179=pe(_0x1de12f,_0x42a757),_0x2a3959=_0x400ed4['t'](_0x421179);return _0x2f3766?_0x1de12f===_0x471fcb['DISCONNECTED']&&_0x42a757===_0x2254ac[_0x29e35b(0x1b3)]?_0x2a3959+_0x29e35b(0x242)+_0x400ed4['t'](_0x29e35b(0x23b)):_0x1de12f===_0x471fcb['CONNECTED']?''+_0x2a3959:_0x1de12f===_0x471fcb[_0x29e35b(0x196)]||_0x1de12f===_0x471fcb[_0x29e35b(0x27c)]?_0x2a3959+_0x29e35b(0x242)+_0x400ed4['t']('mcpStatus.clickToConnect'):_0x2a3959:_0x2a3959;}function an(_0x4ebd81){var _0x1a6db9=_0x3574c5;switch(_0x4ebd81){case _0x471fcb['CONNECTED']:return _0x1a6db9(0x1f8);case _0x471fcb['CONNECTING']:case _0x471fcb['RETRYING']:return _0x1a6db9(0x1a2);case _0x471fcb[_0x1a6db9(0x27c)]:case _0x471fcb['DISCONNECTED']:return'univer-text-red-500';default:return _0x1a6db9(0x188);}}function un(_0x314414){var _0x5bde06=_0x3574c5;const {status$:_0x1b8377,error$:_0xd14440,onConfigure:_0x3fb82c,showClickable:_0x4b650e=!0x0}=_0x314414,_0x3eaa89=_0x244b6e(_0x1b8377,_0x471fcb['DISCONNECTED']),_0x2c0c87=_0x244b6e(_0xd14440,_0x2254ac[_0x5bde06(0x16b)]),_0x105685=_0x363bb5(_0x5e30d8),_0x2db35a=_0x3eaa89===_0x471fcb[_0x5bde06(0x1d3)];_0x3eaa89===_0x471fcb['CONNECTING']||_0x471fcb[_0x5bde06(0x1d6)];const _0x477194=_0x105685['t'](pe(_0x3eaa89,_0x2c0c87)),_0x3d66ea=cn(_0x3eaa89,_0x2c0c87,_0x105685,_0x4b650e),_0x242df4=an(_0x3eaa89),_0xd3303e=_0x2db35a?_0x37c632(ge,{}):_0x37c632(fe,{}),_0x2caf04=_0x4f31bd(()=>{_0x4b650e&&_0x3fb82c&&_0x3fb82c();},[_0x4b650e,_0x3fb82c]);function _0x38cd44(){var _0x8197b=_0x5bde06;return _0x127c76(_0x8197b(0x184),{'className':_0x20c922(_0x8197b(0x227),_0x4b650e&&_0x3fb82c&&_0x8197b(0x215)),'onClick':_0x4b650e&&_0x3fb82c?_0x2caf04:void 0x0,'children':[_0x37c632(_0x8197b(0x184),{'className':_0x20c922('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x242df4),'children':_0xd3303e}),_0x37c632(_0x8197b(0x184),{'className':_0x8197b(0x231),'children':_0x477194})]});}return _0x37c632(_0x370899,{'title':_0x3d66ea,'placement':_0x5bde06(0x29a),'children':_0x38cd44()});}var ln=Object['getOwnPropertyDescriptor'],vn=(_0x56d1a4,_0xbfa2f7,_0x13e2cd,_0xcaf709)=>{var _0x28e24c=_0x3574c5;for(var _0x13770c=_0xcaf709>0x1?void 0x0:_0xcaf709?ln(_0xbfa2f7,_0x13e2cd):_0xbfa2f7,_0x4818c1=_0x56d1a4[_0x28e24c(0x171)]-0x1,_0x5dfb57;_0x4818c1>=0x0;_0x4818c1--)(_0x5dfb57=_0x56d1a4[_0x4818c1])&&(_0x13770c=_0x5dfb57(_0x13770c)||_0x13770c);return _0x13770c;},A=(_0x7920f4,_0x21a767)=>(_0x537e69,_0x528e79)=>_0x21a767(_0x537e69,_0x528e79,_0x7920f4);let O=class extends _0x1bc153{constructor(_0x3b83e6,_0x2c8857,_0x44914e,_0x562f05){var _0x35ad8d=_0x3574c5;super(),this[_0x35ad8d(0x18f)]=_0x3b83e6,this[_0x35ad8d(0x15d)]=_0x2c8857,this[_0x35ad8d(0x172)]=_0x44914e,this[_0x35ad8d(0x14d)]=_0x562f05,this[_0x35ad8d(0x26b)](),this[_0x35ad8d(0x1ba)]();}[_0x3574c5(0x26b)](){var _0x3e065f=_0x3574c5;const _0x568dcb=this[_0x3e065f(0x14d)][_0x3e065f(0x15c)](x);_0x568dcb!=null&&_0x568dcb[_0x3e065f(0x1d8)]&&(this[_0x3e065f(0x15d)][_0x3e065f(0x1b2)]=!0x1);}[_0x3574c5(0x1ba)](){var _0x526258=_0x3574c5;const _0xa6478d=this['_configService'][_0x526258(0x15c)](x);(_0xa6478d==null?void 0x0:_0xa6478d[_0x526258(0x18b)])!==!0x1&&this[_0x526258(0x161)](this['_uiPartsService'][_0x526258(0x1c7)](_0x26227b[_0x526258(0x271)],()=>{var _0x19ee40=_0x526258,_0x2f764f;return _0x3e857f(dn({'status$':this[_0x19ee40(0x15d)][_0x19ee40(0x185)],'error$':this[_0x19ee40(0x15d)]['connectionError$'],'onConfigure':()=>this[_0x19ee40(0x25f)](),'showClickable':(_0x2f764f=_0xa6478d==null?void 0x0:_0xa6478d[_0x19ee40(0x1d8)])!=null?_0x2f764f:!0x1}),this[_0x19ee40(0x18f)]);}));}[_0x3574c5(0x25f)](){var _0x383280=_0x3574c5;this[_0x383280(0x18f)][_0x383280(0x244)](I)['showConfigPanel']();}};O=vn([A(0x0,_0x5d3c90(_0x471d2e)),A(0x1,_0x5d3c90(_0x1dbbf6)),A(0x2,_0x13b205),A(0x3,_0x401ca3)],O);function dn(_0x3d355a){const {status$:_0x4dd8cc,error$:_0x53a2f9,onConfigure:_0x398b9d,showClickable:_0x2cd5d8}=_0x3d355a;return function(){return _0x37c632(un,{'status$':_0x4dd8cc,'error$':_0x53a2f9,'onConfigure':_0x398b9d,'showClickable':_0x2cd5d8});};}function fn(_0x3f843d){var _0x3908bf=_0x3574c5;return{'id':V['id'],'type':_0xa892ef[_0x3908bf(0x28d)],'icon':_0x3908bf(0x258),'title':_0x3908bf(0x1b9),'tooltip':'mcpConfig.title'};}const gn={[_0x3ebdfc[_0x3574c5(0x274)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object[_0x3574c5(0x2a5)],hn=(_0x4498ed,_0x315b06,_0x4c6968,_0x5ce7c5)=>{var _0x596822=_0x3574c5;for(var _0x4d7ca7=_0x5ce7c5>0x1?void 0x0:_0x5ce7c5?pn(_0x315b06,_0x4c6968):_0x315b06,_0x12f029=_0x4498ed[_0x596822(0x171)]-0x1,_0x1078ab;_0x12f029>=0x0;_0x12f029--)(_0x1078ab=_0x4498ed[_0x12f029])&&(_0x4d7ca7=_0x1078ab(_0x4d7ca7)||_0x4d7ca7);return _0x4d7ca7;},te=(_0x27423a,_0x171646)=>(_0x10ca4a,_0x53f7c1)=>_0x171646(_0x10ca4a,_0x53f7c1,_0x27423a);let k=class extends _0x1bc153{constructor(_0x457359,_0x4ad185){var _0x724784=_0x3574c5;super(),this[_0x724784(0x282)]=_0x457359,this[_0x724784(0x214)]=_0x4ad185,this['_initializeCommands'](),this['_initializeMenus']();}[_0x3574c5(0x19a)](){var _0x2d625c=_0x3574c5;[V][_0x2d625c(0x280)](_0x465690=>{var _0x58188c=_0x2d625c;this[_0x58188c(0x161)](this[_0x58188c(0x282)]['registerCommand'](_0x465690));});}[_0x3574c5(0x16a)](){var _0x1c0e9a=_0x3574c5;this[_0x1c0e9a(0x214)][_0x1c0e9a(0x181)](gn);}};function _0x2387(){var _0x2a0a99=['\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','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','_initAutoConnect','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','univerjs-icon\x20univerjs-icon-','_validateConfig','配置保存失败','HEADER_MENU','_config$','Close','OTHERS','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-flex\x20univer-items-center\x20univer-gap-2','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','6066137dtPWbG','UniverIcon','FAILED','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','CheckMarkIcon','univer-min-w-0\x20univer-flex-1','forEach','mcpConfig.saving','_commandService','_logService','extend','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','icon','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.configStep2','value','mcpStatus.connecting','MCP\x20配置','error','BUTTON','add','pre','univer-bg-gray-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','round','xlink:href','mcpConfig.note2','1426128GEcNqR','Configuration\x20Steps:','mcpConfig.configSaved','indexOf','univer.plus','bottom','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','isValid','univer-bg-blue-500','启用身份验证','Disconnected','getOwnPropertySymbols','Saving...','off','MCP:\x20Max\x20Retries\x20Exceeded','getOwnPropertyDescriptor','pluginName','什么是\x20API\x20密钥?','mcpConfig.apiApplyInfo.univerAiLabel','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','MAX_RETRIES_EXCEEDED','replace','evenodd','API\x20key\x20is\x20required','univer-text-gray-400','map','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','show','_configService','14454WkHxaB','MCP\x20客户端配置','has','MCP:\x20会话\x20ID\x20已被占用','univer-text-xs\x20univer-text-gray-500','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP:\x20Session\x20ID\x20Occupied','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','OnLineIcon','CONNECTING','string','M5.21243\x205.62036L11.8791\x2012.287','mcpConfig.configStep3','help-single','getConfig','_connectionController','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.connectionStatus.connecting','mcpStatus.retrying','disposeWithMe','mcpStatus.networkError','mcpConfig.apiKeyHint','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.configError','mcpConfig.connectionError.unauthorized','propertyIsEnumerable','未连接','_config','_initializeMenus','NONE','MCP\x20Connected','univer-flex\x20univer-items-center\x20univer-gap-3','_loadStoredApiKey','API\x20密钥长度至少需要\x2010\x20位','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','length','_uiPartsService','Max\x20Retries','_apiKey$','hasOwnProperty','includes','MCP\x20Configuration','push','_localeService','_messageService','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','OffLineIcon','sessionId$','svg','mcpStatus.disconnected','assign','mergeMenu','mcpConfig.apiApplyInfo.description','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','div','connectionStatus$','会话\x20ID\x20已被占用,请稍后再试','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-text-gray-500','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','showStatus','39YYbxuy','320724xKChsB','currentColor','_injector','entries','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.connectionStatus.failed','univer-bg-red-500','univer-space-y-3','DISCONNECTED','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','next','_initializeCommands','mcpStatus.unauthorized','最大重试次数','http://www.w3.org/2000/svg','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_loading$','配置无效','COMMAND','univer-text-yellow-500','API\x20密钥不能为空','call','univer-flex-1','validateApiKey','Authorization:','MCP\x20连接失败','none','mcpConfig.connectionError.networkError','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','close-small-single','<API_KEY>','启用身份验证以获得安全连接','配置更改将立即生效','MCP\x20Connecting...','enableAutoConnect','UNAUTHORIZED','substring','univer-flex\x20univer-gap-3','_createConfigPanelComponent','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children','mcpConfig.title','_initStatusComponent','attrs','register','setConfig','__setCustomHeaders','univer-space-y-2','_handleConfigSave','Connected','MCP\x20已断开','MCP:\x20未授权','current','mcpConfig.authorizationDescription','javascript:void(0)','registerComponent','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','url(#on-line-icon_clip0_910_349)','MCP\x20状态未知','mcpConfig.connectionError.sessionOccupied','mcpConfig.validation.apiKeyRequired','defIds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCPConfigPanel','MCP\x20已连接','mcpConfig.configStep1','7510360gOOcSs','CONNECTED','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.configStepTitle','RETRYING','会话ID','showDeveloperTools','univer-flex-shrink-0\x20univer-text-red-500','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','prototype','url(#$1','MCP\x20重连中...','mcpConfig.validation.invalidConfig','35668wYpCCI','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionStatus.retrying','mcpConfig.connectionStatus.connected','_mcpConnectionController','mcpConfig.note1','mcpConfig.connectionError.maxRetriesExceeded','univer-bg-green-500','fill','0\x200\x2016\x2016','off-line-icon','Save\x20Configuration','_mcpCoreConfig$','label','保存中...','close','mcpConfig.apiApplyInfo.title','_blank','trim','超出最大重试次数,请稍后再试','clipPath','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','网络连接错误,请检查您的网络连接','SESSION_ID_OCCUPIED','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-green-500','https://console.univer.ai','配置保存成功','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','HelpSingle','idSuffix','apiKey','univer-flex-shrink-0\x20univer-text-blue-500','displayName','_dialogService','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','colorChannel1','API\x20Key','off-line-icon_clip0_910_343','on-line-icon','subscribe','apply','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','Click\x20to\x20connect\x20MCP','_registerComponent','className','mcpConfig.connectionStatus.disconnected','tag','defs','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','span','warn','_menuManagerService','\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','univer-text-xs\x20univer-text-gray-600','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.sessionIdDescription','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','showConfigPanel','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','getItem','NETWORK_ERROR','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Notes:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','noopener\x20noreferrer','API\x20密钥','_localStorageService','配置步骤:','univer-flex\x20univer-items-center','几秒钟内获取您的\x20API\x20密钥','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','errorMessage','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcp-ui.config','mcpConfig.apiKeyPlaceholder','mcpStatus.unknown','translate(.97)','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','6568yqBNof','mcpConfig.validation.invalidApiKey','mcpConfig.configInstructions','18eUGuvn','text','mcp-config-dialog','7279790lznkJC','path','mcpStatus.clickToConfigure','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','复制以下\x20JSON\x20配置','concat','subscribeConfigValue$','connectionError$','What\x20is\x20API\x20Key?','\x20-\x20','mcpConfig.description','get','univer-text-sm\x20univer-font-medium','MCP\x20Retrying...','0\x200\x2017\x2017','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','Connection\x20Failed','univer.ai','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','Enable\x20Authentication','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-sm\x20univer-text-gray-500','MCP:\x20Unauthorized','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','check-mark-icon','univer-font-medium','Error','univer-text-blue-600','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MenuIcon','M0\x200H16V16H0z','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','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','mcp.apiKey','配置参数:','_handleConfigure','url(#off-line-icon_clip0_910_343)','mcpServerUrl','MCP:\x20超出最大重试次数','MCP:\x20网络错误','1em','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_initConfigSync','MCP_UI_PLUGIN','function'];_0x2387=function(){return _0x2a0a99;};return _0x2387();}k=hn([te(0x0,_0x341c97),te(0x1,_0x58265b)],k);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3574c5(0x1b1),'connected':_0x3574c5(0x16c),'failed':_0x3574c5(0x189),'retrying':_0x3574c5(0x246),'unknown':_0x3574c5(0x18a),'unauthorized':_0x3574c5(0x250),'sessionOccupied':_0x3574c5(0x154),'networkError':_0x3574c5(0x20a),'maxRetriesExceeded':_0x3574c5(0x2a4),'clickToConnect':_0x3574c5(0x20b),'clickToConfigure':_0x3574c5(0x24c)},'mcpConfig':{'title':_0x3574c5(0x177),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3574c5(0x204),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3574c5(0x209),'enableAuth':_0x3574c5(0x24d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x3574c5(0x26c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3574c5(0x192),'configStepTitle':_0x3574c5(0x296),'configStep1':_0x3574c5(0x26d),'configStep2':_0x3574c5(0x19e),'configStep3':_0x3574c5(0x1ce),'sessionId':'Session\x20ID','sessionIdDescription':_0x3574c5(0x257),'authorizationDescription':_0x3574c5(0x1ab),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x3574c5(0x173),'save':_0x3574c5(0x1ea),'saving':_0x3574c5(0x2a2),'note1':_0x3574c5(0x1fb),'note2':_0x3574c5(0x170),'configSaved':_0x3574c5(0x24b),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3574c5(0x241),'description':_0x3574c5(0x277),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3574c5(0x220)},'validation':{'apiKeyRequired':_0x3574c5(0x2ad),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3574c5(0x265)},'connectionStatus':{'disconnected':_0x3574c5(0x2a0),'connecting':'Connecting...','connected':_0x3574c5(0x1c1),'failed':_0x3574c5(0x249),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3574c5(0x1f7),'sessionOccupied':_0x3574c5(0x29c),'networkError':_0x3574c5(0x1ac),'maxRetriesExceeded':_0x3574c5(0x22c)}}},kn={'mcpStatus':{'disconnected':_0x3574c5(0x1c2),'connecting':'MCP\x20连接中...','connected':_0x3574c5(0x1d0),'failed':_0x3574c5(0x1a8),'retrying':_0x3574c5(0x1dd),'unknown':_0x3574c5(0x1ca),'unauthorized':_0x3574c5(0x1c3),'sessionOccupied':_0x3574c5(0x151),'networkError':_0x3574c5(0x263),'maxRetriesExceeded':_0x3574c5(0x262),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x3574c5(0x28b),'description':_0x3574c5(0x217),'apiKey':_0x3574c5(0x224),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x3574c5(0x1d4),'enableAuth':_0x3574c5(0x29f),'enableAuthHint':_0x3574c5(0x1af),'connectionInfo':_0x3574c5(0x14f),'mcpClientConfig':_0x3574c5(0x14f),'configInstructions':_0x3574c5(0x197),'configStepTitle':_0x3574c5(0x226),'configStep1':_0x3574c5(0x23d),'configStep2':_0x3574c5(0x21a),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x3574c5(0x1d7),'sessionIdDescription':_0x3574c5(0x1da),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x3574c5(0x25e),'maxRetries':_0x3574c5(0x19c),'save':'保存配置','saving':_0x3574c5(0x1ed),'note1':_0x3574c5(0x1b0),'note2':_0x3574c5(0x15e),'configSaved':_0x3574c5(0x1fa),'configError':_0x3574c5(0x270),'apiApplyInfo':{'title':_0x3574c5(0x2a7),'description':_0x3574c5(0x14b),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x3574c5(0x228)},'validation':{'apiKeyRequired':_0x3574c5(0x1a3),'apiKeyTooShort':_0x3574c5(0x16f),'invalidConfig':_0x3574c5(0x1a0),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x3574c5(0x168),'connecting':'连接中...','connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x3574c5(0x186),'networkError':_0x3574c5(0x1f5),'maxRetriesExceeded':_0x3574c5(0x1f2)}}};var mn=Object['defineProperty'],Cn=Object[_0x3574c5(0x2a5)],yn=(_0x2abba2,_0x1b9b4a,_0x80e371)=>_0x1b9b4a in _0x2abba2?mn(_0x2abba2,_0x1b9b4a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x80e371}):_0x2abba2[_0x1b9b4a]=_0x80e371,_n=(_0x1f1420,_0xc1f433,_0x43bea8,_0x1b2c80)=>{for(var _0x3d6fc5=_0x1b2c80>0x1?void 0x0:_0x1b2c80?Cn(_0xc1f433,_0x43bea8):_0xc1f433,_0xdf98a0=_0x1f1420['length']-0x1,_0x44d4f1;_0xdf98a0>=0x0;_0xdf98a0--)(_0x44d4f1=_0x1f1420[_0xdf98a0])&&(_0x3d6fc5=_0x44d4f1(_0x3d6fc5)||_0x3d6fc5);return _0x3d6fc5;},E=(_0x1e2e4a,_0x53c2a5)=>(_0x5e565c,_0x3f3865)=>_0x53c2a5(_0x5e565c,_0x3f3865,_0x1e2e4a),xn=(_0x4c78eb,_0xd7412,_0x4c3b2e)=>yn(_0x4c78eb,_0xd7412+'',_0x4c3b2e);let L=class extends _0x34a5e5{constructor(_0x201053=re,_0xc831f7,_0x551c9d,_0x58aa4e,_0x66aa01,_0x475206){var _0xefebf3=_0x3574c5;super(),this[_0xefebf3(0x169)]=_0x201053,this[_0xefebf3(0x18f)]=_0xc831f7,this[_0xefebf3(0x14d)]=_0x551c9d,this[_0xefebf3(0x172)]=_0x58aa4e,this[_0xefebf3(0x225)]=_0x66aa01,this[_0xefebf3(0x179)]=_0x475206;const {..._0x1d7d2c}=_0x48a548({},re,this[_0xefebf3(0x169)]);this[_0xefebf3(0x14d)][_0xefebf3(0x1bd)](x,_0x1d7d2c);}async['onStarting'](){var _0x2654c0=_0x3574c5;const _0x548631=[[O],[I],[k]];this[_0x2654c0(0x18f)][_0x2654c0(0x150)](_0xdde858)||_0x548631[_0x2654c0(0x178)]([_0xdde858,{'useClass':_0x1f04c8}]),_0x548631[_0x2654c0(0x280)](_0x58ba43=>this['_injector'][_0x2654c0(0x28e)](_0x58ba43)),this[_0x2654c0(0x18f)][_0x2654c0(0x244)](O),this['_injector'][_0x2654c0(0x244)](I),this[_0x2654c0(0x18f)][_0x2654c0(0x244)](k);}};xn(L,_0x3574c5(0x2a6),_0x3574c5(0x267)),L=_n([_0x4b9302(_0x5284cf),E(0x1,_0x5d3c90(_0x471d2e)),E(0x2,_0x401ca3),E(0x3,_0x13b205),E(0x4,_0x21488e),E(0x5,_0x5d3c90(_0x5e30d8))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};