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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/ca-ES.js +1 -1
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/es-ES.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ko-KR.js +1 -1
  41. package/lib/umd/locale/ru-RU.js +1 -1
  42. package/lib/umd/locale/vi-VN.js +1 -1
  43. package/lib/umd/locale/zh-CN.js +1 -1
  44. package/lib/umd/locale/zh-TW.js +1 -1
  45. package/package.json +8 -8
@@ -1 +1 @@
1
- 'use strict';function _0x18ef(_0x55e9d7,_0x27d7cb){const _0x424fde=_0x424f();return _0x18ef=function(_0x18ef67,_0x161c79){_0x18ef67=_0x18ef67-0xd7;let _0x11a0b2=_0x424fde[_0x18ef67];return _0x11a0b2;},_0x18ef(_0x55e9d7,_0x27d7cb);}const _0x2d760d=_0x18ef;(function(_0x3850fc,_0x2047da){const _0x37add3=_0x18ef,_0x31fdb7=_0x3850fc();while(!![]){try{const _0x3ffe98=parseInt(_0x37add3(0xef))/0x1*(-parseInt(_0x37add3(0xfd))/0x2)+parseInt(_0x37add3(0xeb))/0x3+parseInt(_0x37add3(0xfc))/0x4+parseInt(_0x37add3(0xf3))/0x5+-parseInt(_0x37add3(0xdb))/0x6*(-parseInt(_0x37add3(0xe8))/0x7)+-parseInt(_0x37add3(0xe9))/0x8+-parseInt(_0x37add3(0xf4))/0x9;if(_0x3ffe98===_0x2047da)break;else _0x31fdb7['push'](_0x31fdb7['shift']());}catch(_0x26ca72){_0x31fdb7['push'](_0x31fdb7['shift']());}}}(_0x424f,0x45921));function _0x424f(){const _0x5a9634=['Max\x20Retries','Retrying...','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','14iskCLZ','2695680VooKuY','Click\x20to\x20connect\x20MCP','576690unPBHI','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connecting...','300323JUMoir','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','Connection\x20Failed','1791395HpYmfb','1905165LBqsYT','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','Connecting...','Save\x20Configuration','Session\x20ID','MCP\x20Connection\x20Failed','514888PKMPpI','2dnCgpG','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','exports','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Unauthorized','Invalid\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','1364094dxLnLZ','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Parameters:','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0x424f=function(){return _0x5a9634;};return _0x424f();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2d760d(0xee),'connected':'MCP\x20Connected','failed':_0x2d760d(0xfb),'retrying':'MCP\x20Retrying...','unknown':_0x2d760d(0xe6),'unauthorized':_0x2d760d(0x101),'sessionOccupied':_0x2d760d(0xf7),'networkError':_0x2d760d(0x106),'maxRetriesExceeded':_0x2d760d(0xf0),'clickToConnect':_0x2d760d(0xea),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2d760d(0xe1),'description':_0x2d760d(0xd9),'apiKey':_0x2d760d(0xda),'apiKeyPlaceholder':_0x2d760d(0xe7),'apiKeyHint':_0x2d760d(0xe2),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2d760d(0x105),'connectionInfo':_0x2d760d(0xf5),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x2d760d(0xde),'configStep2':_0x2d760d(0xd8),'configStep3':_0x2d760d(0x100),'sessionId':_0x2d760d(0xfa),'sessionIdDescription':_0x2d760d(0x103),'authorizationDescription':_0x2d760d(0xf6),'configParameters':_0x2d760d(0xe0),'maxRetries':_0x2d760d(0xe4),'save':_0x2d760d(0xf9),'saving':'Saving...','note1':_0x2d760d(0xed),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2d760d(0xdd),'configError':_0x2d760d(0x107),'apiApplyInfo':{'title':_0x2d760d(0x108),'description':_0x2d760d(0xec),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2d760d(0xd7)},'validation':{'apiKeyRequired':_0x2d760d(0xdc),'apiKeyTooShort':_0x2d760d(0xe3),'invalidConfig':_0x2d760d(0x102),'invalidApiKey':_0x2d760d(0xdf)},'connectionStatus':{'disconnected':_0x2d760d(0xf1),'connecting':_0x2d760d(0xf8),'connected':'Connected','failed':_0x2d760d(0xf2),'retrying':_0x2d760d(0xe5)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2d760d(0xfe),'maxRetriesExceeded':_0x2d760d(0x104)}}},n=e;module[_0x2d760d(0xff)]=n;
1
+ 'use strict';const _0x5a71c6=_0x1d21;(function(_0x2da9fa,_0x40efda){const _0x2bc5de=_0x1d21,_0x2851ec=_0x2da9fa();while(!![]){try{const _0x545e9e=parseInt(_0x2bc5de(0x21a))/0x1*(-parseInt(_0x2bc5de(0x1fc))/0x2)+parseInt(_0x2bc5de(0x1f3))/0x3+parseInt(_0x2bc5de(0x207))/0x4*(parseInt(_0x2bc5de(0x20f))/0x5)+parseInt(_0x2bc5de(0x211))/0x6*(-parseInt(_0x2bc5de(0x1fb))/0x7)+parseInt(_0x2bc5de(0x223))/0x8*(parseInt(_0x2bc5de(0x221))/0x9)+-parseInt(_0x2bc5de(0x20c))/0xa*(-parseInt(_0x2bc5de(0x201))/0xb)+-parseInt(_0x2bc5de(0x215))/0xc;if(_0x545e9e===_0x40efda)break;else _0x2851ec['push'](_0x2851ec['shift']());}catch(_0x412b53){_0x2851ec['push'](_0x2851ec['shift']());}}}(_0x3d32,0x622e5));function _0x1d21(_0x215b2a,_0x362d53){const _0x3d328a=_0x3d32();return _0x1d21=function(_0x1d2141,_0x3bbb8e){_0x1d2141=_0x1d2141-0x1f0;let _0x576674=_0x3d328a[_0x1d2141];return _0x576674;},_0x1d21(_0x215b2a,_0x362d53);}const e={'mcpStatus':{'disconnected':_0x5a71c6(0x1f6),'connecting':'MCP\x20Connecting...','connected':_0x5a71c6(0x206),'failed':_0x5a71c6(0x208),'retrying':'MCP\x20Retrying...','unknown':_0x5a71c6(0x20d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5a71c6(0x202),'networkError':_0x5a71c6(0x21c),'maxRetriesExceeded':_0x5a71c6(0x21b),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5a71c6(0x213)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5a71c6(0x20a),'apiKey':_0x5a71c6(0x216),'apiKeyPlaceholder':_0x5a71c6(0x203),'apiKeyHint':_0x5a71c6(0x214),'enableAuth':_0x5a71c6(0x1fe),'enableAuthHint':_0x5a71c6(0x1f1),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5a71c6(0x222),'configStepTitle':_0x5a71c6(0x1f5),'configStep1':_0x5a71c6(0x1f0),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x5a71c6(0x204),'sessionId':'Session\x20ID','sessionIdDescription':_0x5a71c6(0x1ff),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5a71c6(0x212),'maxRetries':_0x5a71c6(0x1f7),'save':_0x5a71c6(0x1f8),'saving':_0x5a71c6(0x219),'note1':_0x5a71c6(0x1fd),'note2':_0x5a71c6(0x1fa),'configSaved':_0x5a71c6(0x21f),'configError':_0x5a71c6(0x205),'apiApplyInfo':{'title':_0x5a71c6(0x1f9),'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':_0x5a71c6(0x217),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5a71c6(0x210),'apiKeyTooShort':_0x5a71c6(0x21d),'invalidConfig':_0x5a71c6(0x20e),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5a71c6(0x200),'connecting':_0x5a71c6(0x1f2),'connected':_0x5a71c6(0x20b),'failed':_0x5a71c6(0x218),'retrying':_0x5a71c6(0x21e)},'connectionError':{'unauthorized':_0x5a71c6(0x209),'sessionOccupied':_0x5a71c6(0x220),'networkError':_0x5a71c6(0x224),'maxRetriesExceeded':_0x5a71c6(0x1f4)}}},n=e;module['exports']=n;function _0x3d32(){const _0x33f7e5=['MCP\x20Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','50QXeGMk','MCP\x20Unknown\x20Status','Invalid\x20configuration','325330MbbQVD','API\x20key\x20is\x20required','24PHJPJi','Configuration\x20Parameters:','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2738040PAkPEJ','API\x20Key','Univer\x20AI\x20Console','Connection\x20Failed','Saving...','2KXDeDk','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','Configuration\x20saved\x20successfully','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','4917168PdpNqQ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','8CrTcYx','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','Connecting...','1041729JHTZdA','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Steps:','MCP\x20Disconnected','Max\x20Retries','Save\x20Configuration','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1288854lBHXNh','171464IzcMre','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','1275142brzUvm','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','MCP\x20Connected','4QgbSew'];_0x3d32=function(){return _0x33f7e5;};return _0x3d32();}
@@ -1 +1 @@
1
- 'use strict';const _0x216d23=_0x7ca1;(function(_0x4dd779,_0x13c536){const _0x4acf87=_0x7ca1,_0x204802=_0x4dd779();while(!![]){try{const _0x27554f=parseInt(_0x4acf87(0x196))/0x1+-parseInt(_0x4acf87(0x18f))/0x2*(-parseInt(_0x4acf87(0x1a9))/0x3)+-parseInt(_0x4acf87(0x1a5))/0x4+parseInt(_0x4acf87(0x17d))/0x5*(parseInt(_0x4acf87(0x1a4))/0x6)+parseInt(_0x4acf87(0x1a2))/0x7+-parseInt(_0x4acf87(0x189))/0x8*(parseInt(_0x4acf87(0x1aa))/0x9)+parseInt(_0x4acf87(0x1a1))/0xa;if(_0x27554f===_0x13c536)break;else _0x204802['push'](_0x204802['shift']());}catch(_0x1c0b05){_0x204802['push'](_0x204802['shift']());}}}(_0x33ec,0x80935));function _0x7ca1(_0x25a9f9,_0x47fd0b){const _0x33ec26=_0x33ec();return _0x7ca1=function(_0x7ca170,_0x2e0240){_0x7ca170=_0x7ca170-0x17d;let _0x143789=_0x33ec26[_0x7ca170];return _0x143789;},_0x7ca1(_0x25a9f9,_0x47fd0b);}const e={'mcpStatus':{'disconnected':_0x216d23(0x18e),'connecting':'MCP\x20Connecting...','connected':_0x216d23(0x19d),'failed':_0x216d23(0x190),'retrying':_0x216d23(0x1a0),'unknown':_0x216d23(0x18a),'unauthorized':_0x216d23(0x18c),'sessionOccupied':_0x216d23(0x1a3),'networkError':_0x216d23(0x182),'maxRetriesExceeded':_0x216d23(0x17f),'clickToConnect':_0x216d23(0x19b),'clickToConfigure':_0x216d23(0x19f)},'mcpConfig':{'title':_0x216d23(0x183),'description':_0x216d23(0x18d),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x216d23(0x198),'enableAuth':_0x216d23(0x1a7),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x216d23(0x1a6),'mcpClientConfig':_0x216d23(0x1a6),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x216d23(0x199),'configStep1':_0x216d23(0x19e),'configStep2':_0x216d23(0x17e),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x216d23(0x1ac),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x216d23(0x195),'configParameters':_0x216d23(0x194),'maxRetries':_0x216d23(0x191),'save':_0x216d23(0x197),'saving':'Saving...','note1':_0x216d23(0x184),'note2':_0x216d23(0x180),'configSaved':_0x216d23(0x185),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x216d23(0x188),'univerAiLabel':_0x216d23(0x187),'getStarted':_0x216d23(0x186)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x216d23(0x192),'invalidConfig':_0x216d23(0x19c),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x216d23(0x1ab),'failed':_0x216d23(0x1a8),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x216d23(0x18b),'sessionOccupied':_0x216d23(0x181),'networkError':_0x216d23(0x193),'maxRetriesExceeded':_0x216d23(0x19a)}}},n=e;function _0x33ec(){const _0x340481=['36WFMXxM','Connected','Session\x20ID','174560WptDWw','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Network\x20Error','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','Get\x20your\x20API\x20key\x20in\x20seconds','Univer\x20AI\x20Console','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','577304rMIYYs','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected','8078FtrrMh','MCP\x20Connection\x20Failed','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','API\x20key\x20with\x20Bearer\x20prefix.','74114UHcpaE','Save\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Steps:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20configure\x20MCP','MCP\x20Retrying...','2066940cClzHl','2718219kSbOOH','MCP:\x20Session\x20ID\x20Occupied','162yfFQnU','3589708ZhCDVZ','MCP\x20Client\x20Configuration','Enable\x20Authentication','Connection\x20Failed','75ukcVOy'];_0x33ec=function(){return _0x340481;};return _0x33ec();}module['exports']=n;
1
+ 'use strict';function _0x32f9(_0x3130e1,_0x45ba37){const _0x337f4f=_0x337f();return _0x32f9=function(_0x32f92c,_0x425124){_0x32f92c=_0x32f92c-0x6d;let _0x56c4af=_0x337f4f[_0x32f92c];return _0x56c4af;},_0x32f9(_0x3130e1,_0x45ba37);}const _0x212a84=_0x32f9;(function(_0x46f2e4,_0x18614){const _0x510748=_0x32f9,_0x1a4d35=_0x46f2e4();while(!![]){try{const _0x1036ac=-parseInt(_0x510748(0x92))/0x1+-parseInt(_0x510748(0x85))/0x2*(parseInt(_0x510748(0x91))/0x3)+parseInt(_0x510748(0x9c))/0x4+-parseInt(_0x510748(0x7d))/0x5+parseInt(_0x510748(0x8d))/0x6+parseInt(_0x510748(0x79))/0x7+parseInt(_0x510748(0x6d))/0x8*(parseInt(_0x510748(0x9b))/0x9);if(_0x1036ac===_0x18614)break;else _0x1a4d35['push'](_0x1a4d35['shift']());}catch(_0x448574){_0x1a4d35['push'](_0x1a4d35['shift']());}}}(_0x337f,0xc0113));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x212a84(0x99),'connected':_0x212a84(0x9f),'failed':_0x212a84(0x89),'retrying':_0x212a84(0x9a),'unknown':_0x212a84(0x84),'unauthorized':_0x212a84(0x88),'sessionOccupied':_0x212a84(0x6e),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x212a84(0x8f),'clickToConnect':_0x212a84(0x9d),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x212a84(0x95),'description':_0x212a84(0x80),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x212a84(0x72),'apiKeyHint':_0x212a84(0x74),'enableAuth':_0x212a84(0x75),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x212a84(0x7c),'configStepTitle':_0x212a84(0x90),'configStep1':_0x212a84(0x98),'configStep2':_0x212a84(0x7f),'configStep3':_0x212a84(0x81),'sessionId':'Session\x20ID','sessionIdDescription':_0x212a84(0x86),'authorizationDescription':_0x212a84(0x82),'configParameters':_0x212a84(0x8b),'maxRetries':_0x212a84(0x94),'save':_0x212a84(0x87),'saving':'Saving...','note1':_0x212a84(0x7b),'note2':_0x212a84(0x83),'configSaved':_0x212a84(0x76),'configError':_0x212a84(0x96),'apiApplyInfo':{'title':_0x212a84(0x97),'description':_0x212a84(0x8a),'univerAiLabel':_0x212a84(0x77),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x212a84(0x78),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x212a84(0x93),'invalidApiKey':_0x212a84(0x7a)},'connectionStatus':{'disconnected':_0x212a84(0x9e),'connecting':_0x212a84(0x7e),'connected':'Connected','failed':_0x212a84(0x73),'retrying':_0x212a84(0x8c)},'connectionError':{'unauthorized':_0x212a84(0x70),'sessionOccupied':_0x212a84(0x6f),'networkError':_0x212a84(0x8e),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x337f(){const _0x34af00=['8BXzJft','MCP:\x20Session\x20ID\x20Occupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','exports','Enter\x20your\x20API\x20key','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','API\x20key\x20is\x20required','554904MvgpUn','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','4954405boSWFt','Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','27868EWfFjO','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Save\x20Configuration','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Parameters:','Retrying...','9227670uaCPoT','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','111jTYpYp','825727xpxVAa','Invalid\x20configuration','Max\x20Retries','MCP\x20Configuration','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','MCP\x20Retrying...','12359016bYkKTb','513728RRFNVO','Click\x20to\x20connect\x20MCP','Disconnected','MCP\x20Connected'];_0x337f=function(){return _0x34af00;};return _0x337f();}module[_0x212a84(0x71)]=n;
@@ -1 +1 @@
1
- 'use strict';function _0xe500(_0x82fc00,_0x440ae3){const _0x5ed745=_0x5ed7();return _0xe500=function(_0xe500c2,_0x57401f){_0xe500c2=_0xe500c2-0xdb;let _0x3191e6=_0x5ed745[_0xe500c2];return _0x3191e6;},_0xe500(_0x82fc00,_0x440ae3);}const _0x52c4a6=_0xe500;(function(_0x1f3809,_0x9a339b){const _0x2854a2=_0xe500,_0x555546=_0x1f3809();while(!![]){try{const _0x174ed5=-parseInt(_0x2854a2(0xed))/0x1*(-parseInt(_0x2854a2(0xf3))/0x2)+-parseInt(_0x2854a2(0xe8))/0x3+parseInt(_0x2854a2(0xe7))/0x4+parseInt(_0x2854a2(0xf2))/0x5*(-parseInt(_0x2854a2(0xdd))/0x6)+parseInt(_0x2854a2(0x102))/0x7+parseInt(_0x2854a2(0xf6))/0x8*(parseInt(_0x2854a2(0xf0))/0x9)+-parseInt(_0x2854a2(0xf8))/0xa;if(_0x174ed5===_0x9a339b)break;else _0x555546['push'](_0x555546['shift']());}catch(_0x50b919){_0x555546['push'](_0x555546['shift']());}}}(_0x5ed7,0xc086d));function _0x5ed7(){const _0x580df0=['MCP:\x20网络错误','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20连接中...','MCP:\x20未授权','2996958UKiikA','MCP:\x20会话\x20ID\x20已被占用','API\x20密钥无效,请检查密钥是否正确','会话\x20ID\x20已被占用,请稍后再试','超出最大重试次数,请稍后再试','会话ID','连接中...','MCP\x20已连接','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置参数:','3069984DdCrWF','2270919OIPFun','权限验证失败,请检查您的\x20API\x20密钥','MCP\x20已断开','MCP\x20客户端配置','您的\x20API\x20密钥安全存储在本地存储中','14849elnQKi','MCP\x20连接失败','MCP:\x20超出最大重试次数','10971iwuyej','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','10KjJyRY','164rmEKfZ','Univer\x20AI\x20控制台','保存中...','7376wFjKEG','点击配置\x20MCP','10409320FPEFHW','API\x20密钥','未连接','MCP\x20状态未知','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置更改将立即生效','配置\x20MCP\x20使用\x20AI\x20操作电子表格','复制以下\x20JSON\x20配置','几秒钟内获取您的\x20API\x20密钥','什么是\x20API\x20密钥?','3335136oaxfik','点击连接\x20MCP','网络连接错误,请检查您的网络连接','重连中...','配置保存失败','将配置添加到您的\x20MCP\x20客户端设置文件中','最大重试次数','MCP\x20重连中...','连接失败','保存配置','重启您的\x20MCP\x20客户端以使配置生效','API\x20密钥不能为空'];_0x5ed7=function(){return _0x580df0;};return _0x5ed7();}const e={'mcpStatus':{'disconnected':_0x52c4a6(0xea),'connecting':_0x52c4a6(0xdb),'connected':_0x52c4a6(0xe4),'failed':_0x52c4a6(0xee),'retrying':_0x52c4a6(0x109),'unknown':_0x52c4a6(0xfb),'unauthorized':_0x52c4a6(0xdc),'sessionOccupied':_0x52c4a6(0xde),'networkError':_0x52c4a6(0x10e),'maxRetriesExceeded':_0x52c4a6(0xef),'clickToConnect':_0x52c4a6(0x103),'clickToConfigure':_0x52c4a6(0xf7)},'mcpConfig':{'title':'MCP\x20配置','description':_0x52c4a6(0xfe),'apiKey':_0x52c4a6(0xf9),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x52c4a6(0x10f),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x52c4a6(0xeb),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x52c4a6(0xff),'configStep2':_0x52c4a6(0x107),'configStep3':_0x52c4a6(0x10c),'sessionId':_0x52c4a6(0xe2),'sessionIdDescription':_0x52c4a6(0xf1),'authorizationDescription':_0x52c4a6(0xe5),'configParameters':_0x52c4a6(0xe6),'maxRetries':_0x52c4a6(0x108),'save':_0x52c4a6(0x10b),'saving':_0x52c4a6(0xf5),'note1':_0x52c4a6(0xfd),'note2':_0x52c4a6(0xec),'configSaved':'配置保存成功','configError':_0x52c4a6(0x106),'apiApplyInfo':{'title':_0x52c4a6(0x101),'description':_0x52c4a6(0xfc),'univerAiLabel':_0x52c4a6(0xf4),'getStarted':_0x52c4a6(0x100)},'validation':{'apiKeyRequired':_0x52c4a6(0x10d),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x52c4a6(0xdf)},'connectionStatus':{'disconnected':_0x52c4a6(0xfa),'connecting':_0x52c4a6(0xe3),'connected':'已连接','failed':_0x52c4a6(0x10a),'retrying':_0x52c4a6(0x105)},'connectionError':{'unauthorized':_0x52c4a6(0xe9),'sessionOccupied':_0x52c4a6(0xe0),'networkError':_0x52c4a6(0x104),'maxRetriesExceeded':_0x52c4a6(0xe1)}}};module['exports']=e;
1
+ 'use strict';function _0x351a(_0x1c326f,_0x2aa6b8){const _0x5b96cf=_0x5b96();return _0x351a=function(_0x351afc,_0xc8cd49){_0x351afc=_0x351afc-0x1e5;let _0x3f8ed1=_0x5b96cf[_0x351afc];return _0x3f8ed1;},_0x351a(_0x1c326f,_0x2aa6b8);}const _0x48bec3=_0x351a;(function(_0x49d0be,_0x18d8ac){const _0x3ff871=_0x351a,_0x3fb182=_0x49d0be();while(!![]){try{const _0x4a5799=-parseInt(_0x3ff871(0x20d))/0x1+-parseInt(_0x3ff871(0x1eb))/0x2*(-parseInt(_0x3ff871(0x210))/0x3)+parseInt(_0x3ff871(0x1f7))/0x4*(parseInt(_0x3ff871(0x213))/0x5)+parseInt(_0x3ff871(0x207))/0x6*(parseInt(_0x3ff871(0x1f5))/0x7)+-parseInt(_0x3ff871(0x211))/0x8*(parseInt(_0x3ff871(0x1fd))/0x9)+-parseInt(_0x3ff871(0x1e5))/0xa*(parseInt(_0x3ff871(0x20e))/0xb)+parseInt(_0x3ff871(0x1e8))/0xc*(parseInt(_0x3ff871(0x203))/0xd);if(_0x4a5799===_0x18d8ac)break;else _0x3fb182['push'](_0x3fb182['shift']());}catch(_0x59d3f1){_0x3fb182['push'](_0x3fb182['shift']());}}}(_0x5b96,0x7394e));const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x48bec3(0x1f9),'connected':_0x48bec3(0x215),'failed':'MCP\x20连接失败','retrying':_0x48bec3(0x206),'unknown':_0x48bec3(0x212),'unauthorized':_0x48bec3(0x1e7),'sessionOccupied':_0x48bec3(0x1fb),'networkError':_0x48bec3(0x204),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x48bec3(0x1ff),'clickToConfigure':_0x48bec3(0x1fc)},'mcpConfig':{'title':_0x48bec3(0x1f3),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x48bec3(0x209),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x48bec3(0x20c),'enableAuthHint':_0x48bec3(0x1ef),'connectionInfo':_0x48bec3(0x205),'mcpClientConfig':_0x48bec3(0x205),'configInstructions':_0x48bec3(0x1f8),'configStepTitle':'配置步骤:','configStep1':_0x48bec3(0x216),'configStep2':_0x48bec3(0x201),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x48bec3(0x1f1),'sessionIdDescription':_0x48bec3(0x208),'authorizationDescription':_0x48bec3(0x219),'configParameters':_0x48bec3(0x1e6),'maxRetries':_0x48bec3(0x214),'save':'保存配置','saving':_0x48bec3(0x1f2),'note1':'配置更改将立即生效','note2':_0x48bec3(0x1ee),'configSaved':_0x48bec3(0x20f),'configError':'配置保存失败','apiApplyInfo':{'title':_0x48bec3(0x1f6),'description':_0x48bec3(0x21a),'univerAiLabel':_0x48bec3(0x1fa),'getStarted':_0x48bec3(0x20b)},'validation':{'apiKeyRequired':_0x48bec3(0x20a),'apiKeyTooShort':_0x48bec3(0x217),'invalidConfig':_0x48bec3(0x1f4),'invalidApiKey':_0x48bec3(0x218)},'connectionStatus':{'disconnected':_0x48bec3(0x1f0),'connecting':_0x48bec3(0x1ea),'connected':_0x48bec3(0x1ed),'failed':_0x48bec3(0x1e9),'retrying':_0x48bec3(0x1fe)},'connectionError':{'unauthorized':_0x48bec3(0x202),'sessionOccupied':_0x48bec3(0x200),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x48bec3(0x1ec)}}};module['exports']=e;function _0x5b96(){const _0x1ff69a=['10myNWsF','超出最大重试次数,请稍后再试','已连接','您的\x20API\x20密钥安全存储在本地存储中','启用身份验证以获得安全连接','未连接','会话ID','保存中...','MCP\x20配置','配置无效','77sGCzXy','什么是\x20API\x20密钥?','4peUOVE','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP\x20连接中...','Univer\x20AI\x20控制台','MCP:\x20会话\x20ID\x20已被占用','点击配置\x20MCP','713277YClgTQ','重连中...','点击连接\x20MCP','会话\x20ID\x20已被占用,请稍后再试','将配置添加到您的\x20MCP\x20客户端设置文件中','权限验证失败,请检查您的\x20API\x20密钥','47671eihSKl','MCP:\x20网络错误','MCP\x20客户端配置','MCP\x20重连中...','506244qJiXvt','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥','API\x20密钥不能为空','几秒钟内获取您的\x20API\x20密钥','启用身份验证','299527dCzPzz','11iQUUwx','配置保存成功','3102rBZFuz','32PfeRkL','MCP\x20状态未知','389290ZeCcUp','最大重试次数','MCP\x20已连接','复制以下\x20JSON\x20配置','API\x20密钥长度至少需要\x2010\x20位','API\x20密钥无效,请检查密钥是否正确','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','9076040rXFrdF','配置参数:','MCP:\x20未授权','3228UvkAil','连接失败','连接中...'];_0x5b96=function(){return _0x1ff69a;};return _0x5b96();}
@@ -1 +1 @@
1
- 'use strict';const _0x3a00ec=_0x7f80;(function(_0x1e82de,_0x24f766){const _0x1bd5cc=_0x7f80,_0x57c32c=_0x1e82de();while(!![]){try{const _0x13e6a5=parseInt(_0x1bd5cc(0x1cb))/0x1+parseInt(_0x1bd5cc(0x1de))/0x2*(parseInt(_0x1bd5cc(0x1ca))/0x3)+parseInt(_0x1bd5cc(0x1b6))/0x4+-parseInt(_0x1bd5cc(0x1e2))/0x5*(parseInt(_0x1bd5cc(0x1bf))/0x6)+parseInt(_0x1bd5cc(0x1e4))/0x7+-parseInt(_0x1bd5cc(0x1c5))/0x8+-parseInt(_0x1bd5cc(0x1d0))/0x9;if(_0x13e6a5===_0x24f766)break;else _0x57c32c['push'](_0x57c32c['shift']());}catch(_0x5b842d){_0x57c32c['push'](_0x57c32c['shift']());}}}(_0x1540,0xafca0));function _0x1540(){const _0x2c3aa3=['Configuration\x20saved\x20successfully','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','246998YYvArr','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Unknown\x20Status','15GJuKSV','exports','8821330ghaufD','Saving...','2126652zDkccN','Session\x20ID','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','2198562RjPslL','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connecting...','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connected','2931912wIKpQB','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20Authentication','MCP\x20Connecting...','27WxrIiI','720626AIHMLs','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','12943512yeAcHZ','Max\x20Retries','Enter\x20your\x20API\x20key'];_0x1540=function(){return _0x2c3aa3;};return _0x1540();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3a00ec(0x1c9),'connected':_0x3a00ec(0x1c4),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x3a00ec(0x1e1),'unauthorized':_0x3a00ec(0x1da),'sessionOccupied':_0x3a00ec(0x1c2),'networkError':_0x3a00ec(0x1cd),'maxRetriesExceeded':_0x3a00ec(0x1be),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3a00ec(0x1d8),'apiKey':_0x3a00ec(0x1d7),'apiKeyPlaceholder':_0x3a00ec(0x1d2),'apiKeyHint':_0x3a00ec(0x1b8),'enableAuth':_0x3a00ec(0x1c8),'enableAuthHint':_0x3a00ec(0x1bd),'connectionInfo':_0x3a00ec(0x1cc),'mcpClientConfig':_0x3a00ec(0x1cc),'configInstructions':_0x3a00ec(0x1d4),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3a00ec(0x1d5),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3a00ec(0x1b7),'sessionIdDescription':_0x3a00ec(0x1c3),'authorizationDescription':_0x3a00ec(0x1db),'configParameters':_0x3a00ec(0x1d6),'maxRetries':_0x3a00ec(0x1d1),'save':_0x3a00ec(0x1df),'saving':_0x3a00ec(0x1e5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3a00ec(0x1cf),'configSaved':_0x3a00ec(0x1d3),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3a00ec(0x1bc),'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':_0x3a00ec(0x1ce),'getStarted':_0x3a00ec(0x1e0)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3a00ec(0x1ba),'invalidConfig':_0x3a00ec(0x1d9),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3a00ec(0x1c1),'connected':_0x3a00ec(0x1c6),'failed':_0x3a00ec(0x1b9),'retrying':_0x3a00ec(0x1dd)},'connectionError':{'unauthorized':_0x3a00ec(0x1bb),'sessionOccupied':_0x3a00ec(0x1c0),'networkError':_0x3a00ec(0x1c7),'maxRetriesExceeded':_0x3a00ec(0x1dc)}}},n=e;function _0x7f80(_0x47b221,_0xf35ce8){const _0x1540b8=_0x1540();return _0x7f80=function(_0x7f80b7,_0x38a4ce){_0x7f80b7=_0x7f80b7-0x1b6;let _0x2a60ae=_0x1540b8[_0x7f80b7];return _0x2a60ae;},_0x7f80(_0x47b221,_0xf35ce8);}module[_0x3a00ec(0x1e3)]=n;
1
+ 'use strict';const _0x2b3a82=_0x5ce5;function _0x2a43(){const _0x3a53cd=['API\x20key\x20is\x20required','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','9cTkLvx','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','5VFJQLH','Failed\x20to\x20save\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error','Invalid\x20configuration','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','MCP:\x20Unauthorized','MCP\x20Retrying...','6861294TQyPfj','Disconnected','5393801wphgPq','Retrying...','Enter\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1285898FizmKC','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Disconnected','Configuration\x20saved\x20successfully','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','Configuration\x20Parameters:','9365570wzsstk','MCP\x20Client\x20Configuration','exports','3676800yJaskb','307754xclWYQ','18DCHzmR','Click\x20to\x20configure\x20MCP','1575200XhunbU','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key'];_0x2a43=function(){return _0x3a53cd;};return _0x2a43();}(function(_0x47b4f0,_0x275bb1){const _0x2920a0=_0x5ce5,_0x4f1c6e=_0x47b4f0();while(!![]){try{const _0x12a2a9=parseInt(_0x2920a0(0x6c))/0x1+parseInt(_0x2920a0(0x78))/0x2*(-parseInt(_0x2920a0(0x79))/0x3)+-parseInt(_0x2920a0(0x7b))/0x4+-parseInt(_0x2920a0(0x8b))/0x5*(-parseInt(_0x2920a0(0x97))/0x6)+-parseInt(_0x2920a0(0x99))/0x7+-parseInt(_0x2920a0(0x77))/0x8+parseInt(_0x2920a0(0x87))/0x9*(parseInt(_0x2920a0(0x74))/0xa);if(_0x12a2a9===_0x275bb1)break;else _0x4f1c6e['push'](_0x4f1c6e['shift']());}catch(_0x1e15fc){_0x4f1c6e['push'](_0x4f1c6e['shift']());}}}(_0x2a43,0xc7e6f));const e={'mcpStatus':{'disconnected':_0x2b3a82(0x6f),'connecting':_0x2b3a82(0x92),'connected':_0x2b3a82(0x84),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2b3a82(0x96),'unknown':_0x2b3a82(0x94),'unauthorized':_0x2b3a82(0x95),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2b3a82(0x90),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2b3a82(0x6a),'clickToConfigure':_0x2b3a82(0x7a)},'mcpConfig':{'title':_0x2b3a82(0x72),'description':_0x2b3a82(0x8a),'apiKey':_0x2b3a82(0x82),'apiKeyPlaceholder':_0x2b3a82(0x69),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2b3a82(0x75),'mcpClientConfig':_0x2b3a82(0x75),'configInstructions':_0x2b3a82(0x71),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2b3a82(0x85),'configStep2':_0x2b3a82(0x6e),'configStep3':_0x2b3a82(0x93),'sessionId':'Session\x20ID','sessionIdDescription':_0x2b3a82(0x80),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2b3a82(0x73),'maxRetries':_0x2b3a82(0x89),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x2b3a82(0x81),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2b3a82(0x70),'configError':_0x2b3a82(0x8c),'apiApplyInfo':{'title':_0x2b3a82(0x7c),'description':_0x2b3a82(0x6d),'univerAiLabel':_0x2b3a82(0x8e),'getStarted':_0x2b3a82(0x8f)},'validation':{'apiKeyRequired':_0x2b3a82(0x83),'apiKeyTooShort':_0x2b3a82(0x6b),'invalidConfig':_0x2b3a82(0x91),'invalidApiKey':_0x2b3a82(0x7d)},'connectionStatus':{'disconnected':_0x2b3a82(0x98),'connecting':'Connecting...','connected':'Connected','failed':_0x2b3a82(0x7f),'retrying':_0x2b3a82(0x9a)},'connectionError':{'unauthorized':_0x2b3a82(0x88),'sessionOccupied':_0x2b3a82(0x8d),'networkError':_0x2b3a82(0x86),'maxRetriesExceeded':_0x2b3a82(0x7e)}}},n=e;function _0x5ce5(_0x3dc9c4,_0x282c8a){const _0x2a434d=_0x2a43();return _0x5ce5=function(_0x5ce524,_0x131dde){_0x5ce524=_0x5ce524-0x69;let _0x2eb5cc=_0x2a434d[_0x5ce524];return _0x2eb5cc;},_0x5ce5(_0x3dc9c4,_0x282c8a);}module[_0x2b3a82(0x76)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2bf1b1=_0x4cba;(function(_0x4355fd,_0x272879){const _0x937c02=_0x4cba,_0x5e57fa=_0x4355fd();while(!![]){try{const _0x369c3e=-parseInt(_0x937c02(0x1a3))/0x1+-parseInt(_0x937c02(0x15b))/0x2*(-parseInt(_0x937c02(0x133))/0x3)+-parseInt(_0x937c02(0x1ab))/0x4*(-parseInt(_0x937c02(0x227))/0x5)+-parseInt(_0x937c02(0x21d))/0x6+-parseInt(_0x937c02(0x176))/0x7+-parseInt(_0x937c02(0x159))/0x8+parseInt(_0x937c02(0x1d4))/0x9;if(_0x369c3e===_0x272879)break;else _0x5e57fa['push'](_0x5e57fa['shift']());}catch(_0x2cca7a){_0x5e57fa['push'](_0x5e57fa['shift']());}}}(_0x1c25,0x68843));var Pe=Object[_0x2bf1b1(0x152)],Ee=(_0x2d1ba9,_0x3f2e08,_0x33d22e)=>_0x3f2e08 in _0x2d1ba9?Pe(_0x2d1ba9,_0x3f2e08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33d22e}):_0x2d1ba9[_0x3f2e08]=_0x33d22e,x=(_0x24b4f8,_0x33d3a4,_0xf2cf21)=>Ee(_0x24b4f8,typeof _0x33d3a4!=_0x2bf1b1(0x135)?_0x33d3a4+'':_0x33d3a4,_0xf2cf21);import{LocaleService as _0xd0be8d,Inject as _0x26dbdd,Injector as _0x4b393b,IConfigService as _0xb51bf0,ILocalStorageService as _0x4d166b,ILogService as _0x39a88e,Disposable as _0x4e59e4,CommandType as _0x4900d6,ICommandService as _0x3e86ed,DependentOn as _0x48ca9a,Plugin as _0x3d9051,merge as _0x2d2539}from'@univerjs/core';import{jsxs as _0x10850c,jsx as _0x20a502}from'react/jsx-runtime';function _0x1c25(){const _0x46aa8e=['mcpConfig.validation.apiKeyTooShort','MCP\x20状态未知','MCP\x20重连中...','value','Copy\x20the\x20JSON\x20configuration\x20below','mcpStatus.unknown','removeItem','univer.ai','mcpConfig.save','MCP\x20Configuration','mcpConfig.note1','showConfigPanel','MCP\x20已连接','Error','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','https://console.univer.ai','univer-flex-1','mcpConfig.configStep3','mcpConfig.configSaved','univerjs-icon\x20univerjs-icon-','currentColor','_uiPartsService','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','clipPath','next','getCurrentConfig','text','Connecting...','FAILED','mcpStatus.connected','NETWORK_ERROR','help-icon','RETRYING','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','CONNECTED','_componentManager','on-line-icon_clip0_910_349','url(#off-line-icon_clip0_910_343)','_handleConfigSave','1em','univer-text-xs\x20univer-text-gray-500','UNAUTHORIZED','MCP\x20配置','noopener\x20noreferrer','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionInfo','univer-flex\x20univer-items-center\x20univer-gap-3','attrs','MCP\x20Connection\x20Failed','forEach','UniverIcon','Enter\x20your\x20API\x20key','https://mcp.univer.ai/mcp/?univer_session_id=','button','getOwnPropertyDescriptor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','entries','mcpConfig.title','_localStorageService','univer-text-blue-600','Invalid\x20configuration','map','Session\x20ID','2972220IAqbTw','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','<API_KEY>','CONNECTING','label','mcpConfig.validation.apiKeyRequired','svg','Saving...','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.apiApplyInfo.getStarted','1585nJKajz','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpConfig.connectionStatus.connecting','univer-space-y-3','_initConfigSync','validateApiKey','https://console.univer.plus','_connectionController','univer-min-w-0\x20univer-flex-1','onStarting','mcpConfig.configParameters','MCP:\x20网络错误','span','univer.plus','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','Click\x20to\x20configure\x20MCP','DISCONNECTED','_apiKey$','univer-space-y-4','什么是\x20API\x20密钥?','_logService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_handleConfigure','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.clickToConnect','mcpStatus.retrying','mcpConfig.apiApplyInfo.univerAiLabel','mcpStatus.failed','保存中...','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','show','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','M0\x200H16V16H0z','add','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','OTHERS','MenuIcon','displayName','mcpStatus.unauthorized','请输入您的\x20API\x20密钥','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mask','将配置添加到您的\x20MCP\x20客户端设置文件中','_commandService','MCP\x20Connecting...','univer-text-sm\x20univer-font-medium','univer-text-white','\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','mcpConfig.validation.invalidApiKey','_messageService','mcpConfig.note2','univer-bg-red-500','mcpStatus.clickToConfigure','Connection\x20Failed','MCP\x20连接失败','includes','SESSION_ID_OCCUPIED','getConfig','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.connectionStatus.disconnected','length','white','您的\x20API\x20密钥安全存储在本地存储中','会话\x20ID\x20已被占用,请稍后再试','Configuration\x20saved\x20successfully','bottom','Get\x20your\x20API\x20key\x20in\x20seconds','stringify','univer-bg-gray-500','enableAutoConnect','__setCustomHeaders','Univer\x20AI\x20控制台','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_configService','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','Enable\x20Authentication','NONE','带有\x20Bearer\x20前缀的\x20API\x20密钥。','未连接','Configuration\x20Parameters:','API\x20Key','push','点击配置\x20MCP','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','showDeveloperTools','_config$','xlink:href','281601lOmCfP','mcpServerUrl','symbol','配置保存成功','fill','mcp-ui.command.openConfigPanel','univer-text-yellow-500','配置无效','univer-space-y-5','_validateConfig','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcp.apiKey','MCP\x20连接中...','MCP\x20Retrying...','配置更改将立即生效','_localeService','_mcpConnectionController','Connected','children','COMMAND','evenodd','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','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-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20Network\x20Error','_registerComponent','启用身份验证以获得安全连接','getItem','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','defineProperty','errorMessage','What\x20is\x20API\x20Key?','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','pluginName','_loadStoredApiKey','univer-text-red-500','4021168uSccpq','none','10dXfoVD','API\x20key\x20is\x20required','tag','register','warn','url(#on-line-icon_clip0_910_349)','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','defIds','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_injector','MCP:\x20Session\x20ID\x20Occupied','univer-text-gray-400','setItem','mcpConfig.connectionStatus.retrying','MCP\x20客户端配置','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.connectionStatus.connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_dialogService','mcpConfig.connectionError.maxRetriesExceeded','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','API\x20密钥长度至少需要\x2010\x20位','\x20-\x20','url(#$1','univer_session_id:','5125582fvShUW','配置保存失败','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.configStep2','colorChannel1','OnLineIcon','MCP:\x20未授权','univer-flex\x20univer-flex-wrap\x20univer-gap-2','replace','MCP\x20Unknown\x20Status','off-line-icon','string','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','HEADER_MENU','保存配置','Enable\x20authentication\x20for\x20secure\x20connections','div','_initAutoConnect','univer-flex\x20univer-items-center','path','mcpConfig.connectionStatus.failed','API\x20key\x20with\x20Bearer\x20prefix.','最大重试次数','disposeWithMe','registerCommand','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_initializeCommands','mcpConfig.apiApplyInfo.title','univer-bg-blue-500','_loading$','mcpConfig.description','Success','mcpStatus.connecting','mcpConfig.configStepTitle','_mcpCoreConfig$','check-mark-icon','mcpStatus.networkError','MCP:\x20Unauthorized','defs','close-icon','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','error','open','trim','API\x20密钥','481460tupHLF','Bearer\x20','Configuration\x20Notes:','subscribeConfigValue$','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mergeMenu','_initializeMenus','480segcWi','connectionStatus$','_menuManagerService','Disconnected','配置\x20MCP\x20使用\x20AI\x20操作电子表格','0\x200\x2016\x2016','idSuffix','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','http://www.w3.org/2000/svg','Configuration\x20Steps:','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','连接中...','round','mcpConfig.saving','MCP\x20Client\x20Configuration','univer-bg-green-500','MCPConfigPanel','配置参数:','MAX_RETRIES_EXCEEDED','pre','off-line-icon_clip0_910_343','Failed\x20to\x20save\x20configuration','random','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','current','网络连接错误,请检查您的网络连接','subscribe','get','mcpConfig.connectionError.networkError','您的\x20API\x20密钥将在此浏览器中本地存储','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','apiKey','CloseIcon','_createConfigPanelComponent','会话ID','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_config','API\x20密钥不能为空','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','assign','off','19191834ztRdcN','registerComponent','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-space-y-2','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.validation.invalidConfig','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','OffLineIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'];_0x1c25=function(){return _0x46aa8e;};return _0x1c25();}import{MCPConnectionStatus as _0x565980,MCPConnectionError as _0x1af6f2,MCPConnectionController as _0x15de46,MCP_PLUGIN_CONFIG_KEY as _0x3c192a,UniverMCPPlugin as _0x510c1c}from'@univerjs-pro/mcp';import{clsx as _0x1253e2,Input as _0x2fba3f,Button as _0x1077ba,MessageType as _0xeb15c5,Tooltip as _0x5afcee}from'@univerjs/design';import{useDependency as _0x49e503,useObservable as _0x1b7a0e,IUIPartsService as _0x5e8716,IDialogService as _0x591717,IMessageService as _0x536ebf,ComponentManager as _0x5f0b45,connectInjector as _0x26c801,BuiltInUIPart as _0x1166eb,MenuItemType as _0x3b50c1,RibbonStartGroup as _0x1bee11,IMenuManagerService as _0x51d18a}from'@univerjs/ui';import{BehaviorSubject as _0x1a9c67}from'rxjs';import{useRef as _0x5192b8,createElement as _0x2449eb,forwardRef as _0x54a9ab,useState as _0x4f9296,useCallback as _0x17df3a}from'react';import{ISocketService as _0x17de95,WebSocketService as _0x2bec1d}from'@univerjs/network';function b({ref:_0x3080db,..._0x50568f}){const _0x23b297=_0x2bf1b1,{icon:_0x76ad81,id:_0x41f15c,className:_0x260124,extend:_0x839cc8,..._0x43e90a}=_0x50568f,_0x2a72ec=(_0x23b297(0x1f1)+_0x41f15c+'\x20'+(_0x260124||''))[_0x23b297(0x1a1)](),_0x5a59c7=_0x5192b8('_'+We());return ae(_0x76ad81,''+_0x41f15c,{'defIds':_0x76ad81[_0x23b297(0x162)],'idSuffix':_0x5a59c7[_0x23b297(0x1c3)]},{'ref':_0x3080db,'className':_0x2a72ec,..._0x43e90a},_0x839cc8);}function ae(_0x5b7e16,_0x4a3326,_0x2810cc,_0x1e0003,_0x5e69a2){const _0x186e0f=_0x2bf1b1;return _0x2449eb(_0x5b7e16['tag'],{'key':_0x4a3326,...Ye(_0x5b7e16,_0x2810cc,_0x5e69a2),..._0x1e0003},(Ze(_0x5b7e16,_0x2810cc)[_0x186e0f(0x145)]||[])[_0x186e0f(0x21b)]((_0x2ebe72,_0x262983)=>ae(_0x2ebe72,_0x4a3326+'-'+_0x5b7e16[_0x186e0f(0x15d)]+'-'+_0x262983,_0x2810cc,void 0x0,_0x5e69a2)));}function Ye(_0x22d88b,_0x30703b,_0xd44d23){const _0x4f04f7=_0x2bf1b1,_0x150436={..._0x22d88b[_0x4f04f7(0x20d)]};_0xd44d23!=null&&_0xd44d23[_0x4f04f7(0x17a)]&&_0x150436[_0x4f04f7(0x137)]===_0x4f04f7(0x17a)&&(_0x150436[_0x4f04f7(0x137)]=_0xd44d23[_0x4f04f7(0x17a)]),_0x22d88b[_0x4f04f7(0x15d)]===_0x4f04f7(0x251)&&_0x150436['id']&&(_0x150436['id']=_0x150436['id']+_0x30703b[_0x4f04f7(0x1b1)]),Object[_0x4f04f7(0x216)](_0x150436)[_0x4f04f7(0x20f)](([_0x5c557f,_0x131290])=>{const _0x39364a=_0x4f04f7;_0x5c557f===_0x39364a(0x251)&&typeof _0x131290==_0x39364a(0x181)&&(_0x150436[_0x5c557f]=_0x131290['replace'](/url\(#(.*)\)/,_0x39364a(0x174)+_0x30703b['idSuffix']+')'));});const {defIds:_0x4d9803}=_0x30703b;return!_0x4d9803||_0x4d9803['length']===0x0||(_0x22d88b[_0x4f04f7(0x15d)]==='use'&&_0x150436[_0x4f04f7(0x132)]&&(_0x150436[_0x4f04f7(0x132)]=_0x150436[_0x4f04f7(0x132)]+_0x30703b[_0x4f04f7(0x1b1)]),Object[_0x4f04f7(0x216)](_0x150436)[_0x4f04f7(0x20f)](([_0x1ab0fa,_0x4eefa4])=>{const _0x2d50ae=_0x4f04f7;typeof _0x4eefa4==_0x2d50ae(0x181)&&(_0x150436[_0x1ab0fa]=_0x4eefa4[_0x2d50ae(0x17e)](/url\(#(.*)\)/,_0x2d50ae(0x174)+_0x30703b[_0x2d50ae(0x1b1)]+')'));})),_0x150436;}function Ze(_0x23d2c8,_0x19680e){const _0x17b053=_0x2bf1b1;var _0x4d91de;const {defIds:_0x325e07}=_0x19680e;return!_0x325e07||_0x325e07['length']===0x0?_0x23d2c8:_0x23d2c8[_0x17b053(0x15d)]===_0x17b053(0x19c)&&((_0x4d91de=_0x23d2c8[_0x17b053(0x145)])!=null&&_0x4d91de['length'])?{..._0x23d2c8,'children':_0x23d2c8[_0x17b053(0x145)][_0x17b053(0x21b)](_0x52b7f9=>typeof _0x52b7f9['attrs']['id']==_0x17b053(0x181)&&_0x325e07&&_0x325e07[_0x17b053(0x25f)](_0x52b7f9[_0x17b053(0x20d)]['id'])?{..._0x52b7f9,'attrs':{..._0x52b7f9[_0x17b053(0x20d)],'id':_0x52b7f9['attrs']['id']+_0x19680e[_0x17b053(0x1b1)]}}:_0x52b7f9)}:_0x23d2c8;}function We(){const _0x2ffadc=_0x2bf1b1;return Math[_0x2ffadc(0x1c1)]()['toString'](0x24)['substring'](0x2,0x8);}b[_0x2bf1b1(0x24d)]=_0x2bf1b1(0x210);const qe={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x2bf1b1(0x1b0),'width':'1em','height':_0x2bf1b1(0x205)},'children':[{'tag':'path','attrs':{'fill':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x21e),'fillRule':_0x2bf1b1(0x147),'clipRule':_0x2bf1b1(0x147)}}]},le=_0x54a9ab(function(_0x10ee44,_0x10cb6c){const _0x22e877=_0x2bf1b1;return _0x2449eb(b,Object[_0x22e877(0x1d2)]({},_0x10ee44,{'id':_0x22e877(0x199),'ref':_0x10cb6c,'icon':qe}));});le['displayName']='CheckMarkIcon';const Xe={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':_0x2bf1b1(0x15a),'viewBox':_0x2bf1b1(0x1b0),'width':_0x2bf1b1(0x205),'height':_0x2bf1b1(0x205)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x1f2),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x54a9ab(function(_0x288c9a,_0x5c7e18){const _0x380f7f=_0x2bf1b1;return _0x2449eb(b,Object[_0x380f7f(0x1d2)]({},_0x288c9a,{'id':_0x380f7f(0x19d),'ref':_0x5c7e18,'icon':Xe}));});ue['displayName']=_0x2bf1b1(0x1cb);const Je={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2bf1b1(0x205),'height':_0x2bf1b1(0x205)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':'path','attrs':{'fill':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x14b)}},{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x247),'fillRule':'evenodd','clipRule':_0x2bf1b1(0x147)}}]},ve=_0x54a9ab(function(_0x205ba3,_0xd23834){const _0x38cc5d=_0x2bf1b1;return _0x2449eb(b,Object[_0x38cc5d(0x1d2)]({},_0x205ba3,{'id':_0x38cc5d(0x1fd),'ref':_0xd23834,'icon':Je}));});ve[_0x2bf1b1(0x24d)]='HelpIcon';const Qe={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':_0x2bf1b1(0x15a),'viewBox':_0x2bf1b1(0x1b0),'width':_0x2bf1b1(0x205),'height':_0x2bf1b1(0x205)},'children':[{'tag':'g','attrs':{'clipPath':_0x2bf1b1(0x203)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'stroke':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x1c9),'strokeLinecap':_0x2bf1b1(0x1b7),'strokeLinejoin':_0x2bf1b1(0x1b7),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2bf1b1(0x1f5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x265),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2bf1b1(0x1bf)]},de=_0x54a9ab(function(_0x767041,_0x512062){const _0x588f5f=_0x2bf1b1;return _0x2449eb(b,Object[_0x588f5f(0x1d2)]({},_0x767041,{'id':_0x588f5f(0x180),'ref':_0x512062,'icon':Qe}));});de[_0x2bf1b1(0x24d)]=_0x2bf1b1(0x1db);const en={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':_0x2bf1b1(0x15a),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x2bf1b1(0x205)},'children':[{'tag':'g','attrs':{'clipPath':_0x2bf1b1(0x160)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'stroke':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x1a7),'strokeLinecap':_0x2bf1b1(0x1b7),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2bf1b1(0x19c),'attrs':{},'children':[{'tag':_0x2bf1b1(0x1f5),'attrs':{'id':_0x2bf1b1(0x202)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x265),'d':_0x2bf1b1(0x248),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2bf1b1(0x202)]},ge=_0x54a9ab(function(_0x638416,_0x1edc1c){const _0x242b38=_0x2bf1b1;return _0x2449eb(b,Object[_0x242b38(0x1d2)]({},_0x638416,{'id':'on-line-icon','ref':_0x1edc1c,'icon':en}));});ge[_0x2bf1b1(0x24d)]=_0x2bf1b1(0x17b);function nn(_0x5cd2c8){const _0x12e711=_0x2bf1b1;var _0x3c577c,_0x382a10;const {mcpCoreConfig:_0x1fb8c6,onSave:_0x16d590,loading:_0x2aed9d=!0x1,config:_0x34510c,connectionStatus$:_0x3a5974,connectionError$:_0x38545d,currentApiKey$:_0x49c10c,currentSessionId$:_0x1d5473}=_0x5cd2c8,_0x39fc5a=_0x49e503(_0xd0be8d),_0x376590=_0x1b7a0e(_0x3a5974,_0x565980[_0x12e711(0x237)]),_0x37f93b=_0x1b7a0e(_0x38545d,_0x1af6f2[_0x12e711(0x128)]),_0x22121e=_0x1b7a0e(_0x1d5473,''),_0x4fd8be=_0x1b7a0e(_0x49c10c,''),[_0x36634b,_0x4458b0]=_0x4f9296(_0x4fd8be||''),_0x1e6c7f=!0x0,_0xa08ef1=_0x34510c[_0x12e711(0x130)]&&_0x1fb8c6[_0x12e711(0x134)]&&(_0x1fb8c6[_0x12e711(0x134)][_0x12e711(0x25f)](_0x12e711(0x234))||_0x1fb8c6[_0x12e711(0x134)][_0x12e711(0x25f)](_0x12e711(0x1e5))),_0xcd8837=(_0x3c577c=_0x1fb8c6[_0x12e711(0x134)])==null?void 0x0:_0x3c577c[_0x12e711(0x25f)](_0x12e711(0x234)),_0x901702=(_0x382a10=_0x1fb8c6['mcpServerUrl'])==null?void 0x0:_0x382a10[_0x12e711(0x25f)]('univer.ai'),_0x380d98=_0xcd8837?_0x12e711(0x22d):_0x12e711(0x1ed),_0x16d5f4=_0x34510c[_0x12e711(0x130)]&&(_0xcd8837||_0x901702),[_0x5e0b6a,_0x6b5ab6]=_0x4f9296(!_0x36634b[_0x12e711(0x1a1)]()),_0x209665=(_0x366e00,_0x5e5622)=>{const _0x320bec=_0x12e711;if(_0x5e5622===_0x1af6f2[_0x320bec(0x207)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x366e00){case _0x565980['CONNECTED']:return _0x320bec(0x155);case _0x565980[_0x320bec(0x220)]:case _0x565980[_0x320bec(0x1fe)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x565980[_0x320bec(0x1fa)]:return _0x320bec(0x244);default:return _0x320bec(0x18f);}},_0x25127a=(_0x169cfd,_0x1caf39)=>{const _0x5109b5=_0x12e711;if(_0x1caf39===_0x1af6f2['UNAUTHORIZED'])return _0x5109b5(0x25b);switch(_0x169cfd){case _0x565980[_0x5109b5(0x200)]:return _0x5109b5(0x1ba);case _0x565980['CONNECTING']:case _0x565980['RETRYING']:return _0x5109b5(0x192);case _0x565980['FAILED']:return _0x5109b5(0x25b);default:return _0x5109b5(0x26c);}},_0x430e28=_0x318367=>{const _0x23ff6c=_0x12e711;switch(_0x318367){case _0x565980[_0x23ff6c(0x200)]:return _0x39fc5a['t'](_0x23ff6c(0x16b));case _0x565980[_0x23ff6c(0x220)]:return _0x39fc5a['t'](_0x23ff6c(0x229));case _0x565980['FAILED']:return _0x39fc5a['t'](_0x23ff6c(0x18a));case _0x565980[_0x23ff6c(0x1fe)]:return _0x39fc5a['t'](_0x23ff6c(0x168));default:return _0x39fc5a['t'](_0x23ff6c(0x263));}},_0x6f59ce=_0x5a23=>{const _0x33e950=_0x12e711;switch(_0x5a23){case _0x1af6f2['UNAUTHORIZED']:return _0x39fc5a['t']('mcpConfig.connectionError.unauthorized');case _0x1af6f2[_0x33e950(0x260)]:return _0x39fc5a['t']('mcpConfig.connectionError.sessionOccupied');case _0x1af6f2[_0x33e950(0x1fc)]:return _0x39fc5a['t'](_0x33e950(0x1c7));case _0x1af6f2[_0x33e950(0x1bd)]:return _0x39fc5a['t'](_0x33e950(0x170));default:return'';}},_0x25cfbb=_0x17df3a(()=>{const _0x26e520=_0x12e711,_0x21f4e8={..._0x1fb8c6,'apiKey':_0x36634b[_0x26e520(0x1a1)](),'enableAuth':_0x1e6c7f};_0x16d590(_0x21f4e8);},[_0x1fb8c6,_0x36634b,_0x1e6c7f,_0x16d590]),_0x511fdb=_0x36634b['trim']()[_0x12e711(0x264)]>0x0;return _0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x171),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1ec),'children':_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x20c),'children':[_0x20a502('div',{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x256),'children':'⚙'})}),_0x20a502('div',{'children':_0x20a502('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x39fc5a['t'](_0x12e711(0x194))})})]})}),_0x10850c('div',{'className':_0x12e711(0x13d),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x1253e2(_0x12e711(0x245),_0x209665(_0x376590,_0x37f93b)),'children':_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x225),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x1253e2('univer-size-2\x20univer-rounded-full',_0x25127a(_0x376590,_0x37f93b))}),_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x255),'children':_0x430e28(_0x376590)})]})}),_0x37f93b!==_0x1af6f2['NONE']&&(_0x376590===_0x565980[_0x12e711(0x1fa)]||_0x37f93b===_0x1af6f2[_0x12e711(0x207)])&&_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1a8),'children':_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x20a502('p',{'className':_0x12e711(0x19e),'children':_0x6f59ce(_0x37f93b)})]})})]}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x163),'children':_0x10850c('div',{'className':_0x12e711(0x13b),'children':[_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d7),'children':[_0x10850c(_0x12e711(0x221),{'className':_0x12e711(0x14c),'children':[_0x20a502('span',{'children':'🔑'}),'\x20',_0x39fc5a['t']('mcpConfig.apiKey'),_0x20a502('span',{'className':_0x12e711(0x158),'children':'*'}),_0xa08ef1&&_0x20a502('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x39fc5a['t'](_0x12e711(0x191)),'role':_0x12e711(0x213),'onClick':()=>_0x6b5ab6(!0x0),'children':_0x20a502(ve,{})})]}),_0x20a502(_0x2fba3f,{'type':_0x12e711(0x1f8),'placeholder':_0x39fc5a['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x36634b,'disabled':_0x2aed9d,'autoComplete':_0x12e711(0x1d3),'onChange':_0x4458b0}),_0x20a502('p',{'className':_0x12e711(0x206),'children':_0x39fc5a['t']('mcpConfig.apiKeyHint')})]}),_0xa08ef1&&_0x5e0b6a&&_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d6),'children':[_0x20a502('a',{'className':_0x12e711(0x126),'role':'button','onClick':()=>_0x6b5ab6(!0x1),'children':_0x20a502(ue,{'className':'univer-size-4'})}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x12f),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1f4),'children':_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x219),'children':'🚀'})}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1ee),'children':[_0x20a502('h4',{'className':_0x12e711(0x23c),'children':_0x39fc5a['t'](_0x12e711(0x191))}),_0x20a502('p',{'className':_0x12e711(0x16e),'children':_0x39fc5a['t']('mcpConfig.apiApplyInfo.description')}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x17d),'children':_0x16d5f4&&_0x10850c('a',{'className':_0x12e711(0x235),'href':_0x380d98,'target':'_blank','rel':_0x12e711(0x209),'children':[_0x20a502(_0x12e711(0x233),{'children':'🤖'}),_0x39fc5a['t'](_0x12e711(0x241)),_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x166),'children':'↗'})]})}),_0x10850c(_0x12e711(0x186),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x39fc5a['t'](_0x12e711(0x226))]})]})]})]}),_0x34510c[_0x12e711(0x130)]&&_0x10850c(_0x12e711(0x186),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x10850c('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x20a502(_0x12e711(0x233),{'children':'🔗'}),'\x20',_0x39fc5a['t'](_0x12e711(0x20b))]}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x239),'children':[_0x10850c('div',{'className':_0x12e711(0x22a),'children':[_0x20a502('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x39fc5a['t']('mcpConfig.configInstructions')}),_0x10850c(_0x12e711(0x186),{'className':'univer-space-y-2','children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x20a),'children':_0x39fc5a['t'](_0x12e711(0x197))}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1dc),'children':[_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x225),'children':[_0x20a502(_0x12e711(0x233),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x39fc5a['t']('mcpConfig.configStep1')]}),_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x1c2),'children':'2'}),_0x39fc5a['t'](_0x12e711(0x179))]}),_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x39fc5a['t'](_0x12e711(0x1ef))]})]})]})]}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d7),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x20a),'children':_0x12e711(0x1e7)}),_0x20a502(_0x12e711(0x186),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x20a502(_0x12e711(0x1be),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x12e711(0x26b)]({'mcpServers':{'univer':{'url':_0x12e711(0x212)+(_0x22121e||'<SESSION_ID>'),'type':'http','headers':{'Authorization':_0x12e711(0x1a4)+(_0x36634b||_0x12e711(0x21f))}}}},null,0x2)})})]}),_0x10850c('div',{'className':_0x12e711(0x22a),'children':[_0x20a502('div',{'className':_0x12e711(0x20a),'children':_0x39fc5a['t'](_0x12e711(0x231))}),_0x10850c(_0x12e711(0x186),{'className':'univer-space-y-2','children':[_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d8),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1dd)}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x22f),'children':[_0x20a502(_0x12e711(0x186),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x12e711(0x175)}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x206),'children':_0x39fc5a['t']('mcpConfig.sessionIdDescription')})]})]}),_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1dd)}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x22f),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1b2),'children':'Authorization:'}),_0x20a502('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x39fc5a['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x20a502(_0x1077ba,{'onClick':_0x25cfbb,'disabled':!_0x511fdb||_0x2aed9d,'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':_0x2aed9d?_0x10850c('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'children':'⟲'}),_0x39fc5a['t'](_0x12e711(0x1b8))]}):_0x10850c('span',{'className':_0x12e711(0x225),'children':[_0x20a502(le,{}),_0x39fc5a['t'](_0x12e711(0x1e6))]})}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x161),'children':_0x10850c('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x20a502(_0x12e711(0x233),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x10850c('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x20a502(_0x12e711(0x186),{'className':'univer-font-medium','children':_0x12e711(0x1a5)}),_0x10850c(_0x12e711(0x186),{'children':['•',_0x39fc5a['t'](_0x12e711(0x1e8))]}),_0x10850c(_0x12e711(0x186),{'children':['•',_0x39fc5a['t'](_0x12e711(0x25a))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0x3bd905,_0x2a5109,_0x1cfc1d,_0x22babf)=>{const _0x1378b5=_0x2bf1b1;for(var _0x29af1c=_0x22babf>0x1?void 0x0:_0x22babf?rn(_0x2a5109,_0x1cfc1d):_0x2a5109,_0x3f685d=_0x3bd905[_0x1378b5(0x264)]-0x1,_0x357ff8;_0x3f685d>=0x0;_0x3f685d--)(_0x357ff8=_0x3bd905[_0x3f685d])&&(_0x29af1c=_0x357ff8(_0x29af1c)||_0x29af1c);return _0x29af1c;},d=(_0x160ba9,_0x5b03af)=>(_0x2104e6,_0x50a84b)=>_0x5b03af(_0x2104e6,_0x50a84b,_0x160ba9);const U=_0x2bf1b1(0x13e),L='mcp-config-dialog';let I=class extends _0x4e59e4{constructor(_0x32a8f3,_0x36c48a,_0x4e1270,_0x435fc1,_0x521b6b,_0x494c12,_0x29b777,_0x3e0661,_0x446ac0,_0x3e72bc){const _0x599691=_0x2bf1b1;super(),x(this,_0x599691(0x193),new _0x1a9c67(!0x1)),x(this,'_mcpCoreConfig$',new _0x1a9c67({})),x(this,_0x599691(0x131),new _0x1a9c67({})),x(this,'_apiKey$',new _0x1a9c67('')),x(this,_0x599691(0x204),async _0x327b64=>{const _0x796924=_0x599691;var _0x3bf74f,_0x3d1660;this[_0x796924(0x193)][_0x796924(0x1f6)](!0x0);try{const _0x348153=await this[_0x796924(0x13c)](_0x327b64);if(!_0x348153['isValid']){this['_messageService'][_0x796924(0x246)]({'type':_0xeb15c5[_0x796924(0x1eb)],'content':_0x348153[_0x796924(0x153)]||this['_localeService']['t'](_0x796924(0x1d9))});return;}_0x327b64['apiKey']?await this[_0x796924(0x218)][_0x796924(0x167)](U,_0x327b64[_0x796924(0x1ca)][_0x796924(0x1a1)]()):await this[_0x796924(0x218)][_0x796924(0x1e4)](U),this[_0x796924(0x238)][_0x796924(0x1f6)](((_0x3bf74f=_0x327b64['apiKey'])==null?void 0x0:_0x3bf74f[_0x796924(0x1a1)]())||''),this[_0x796924(0x143)][_0x796924(0x122)]({'Authorization':_0x796924(0x1a4)+((_0x3d1660=_0x327b64[_0x796924(0x1ca)])==null?void 0x0:_0x3d1660['trim']())}),this[_0x796924(0x259)][_0x796924(0x246)]({'type':_0xeb15c5[_0x796924(0x195)],'content':this[_0x796924(0x142)]['t'](_0x796924(0x1f0))}),setTimeout(()=>{const _0x3cb03b=_0x796924;this[_0x3cb03b(0x16f)]['close'](L);},0x320);}catch(_0x46a93b){this[_0x796924(0x23b)][_0x796924(0x19f)](_0x796924(0x124),_0x46a93b),this[_0x796924(0x259)][_0x796924(0x246)]({'type':_0xeb15c5[_0x796924(0x1eb)],'content':this[_0x796924(0x142)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x796924(0x1f6)](!0x1);}}),(this[_0x599691(0x164)]=_0x32a8f3,this[_0x599691(0x1f3)]=_0x36c48a,this['_configService']=_0x4e1270,this['_localStorageService']=_0x435fc1,this[_0x599691(0x16f)]=_0x521b6b,this[_0x599691(0x259)]=_0x494c12,this[_0x599691(0x201)]=_0x29b777,this['_localeService']=_0x3e0661,this[_0x599691(0x23b)]=_0x446ac0,this[_0x599691(0x143)]=_0x3e72bc,this[_0x599691(0x22b)](),this['_loadStoredApiKey'](),this['_registerComponent']());}[_0x2bf1b1(0x1e9)](){const _0x2f30e7=_0x2bf1b1,_0x40d291=this[_0x2f30e7(0x125)][_0x2f30e7(0x261)](y);_0x40d291!=null&&_0x40d291[_0x2f30e7(0x130)]&&this['_dialogService'][_0x2f30e7(0x1a0)]({'id':L,'title':{'title':this[_0x2f30e7(0x142)]['t'](_0x2f30e7(0x217))},'children':{'label':_0x2f30e7(0x1bb)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4ad2f6=_0x2f30e7;this[_0x4ad2f6(0x16f)]['close'](L);}});}[_0x2bf1b1(0x1f7)](){const _0x3bbe1a=_0x2bf1b1;return this[_0x3bbe1a(0x198)][_0x3bbe1a(0x1e1)];}[_0x2bf1b1(0x14e)](){const _0x47221a=_0x2bf1b1;this[_0x47221a(0x18d)](this['_componentManager'][_0x47221a(0x15e)](_0x47221a(0x1bb),this[_0x47221a(0x1cc)]()));}[_0x2bf1b1(0x1cc)](){return _0x26c801(()=>{const _0x185bec=_0x4cba;var _0x4f09ff,_0x546d02,_0x1740e1;return _0x20a502(nn,{'config':this[_0x185bec(0x131)]['value'],'mcpCoreConfig':this[_0x185bec(0x198)]['value'],'currentApiKey$':this[_0x185bec(0x238)],'onSave':this[_0x185bec(0x204)],'loading':this[_0x185bec(0x193)]['value'],'connectionStatus$':(_0x4f09ff=this[_0x185bec(0x143)])==null?void 0x0:_0x4f09ff[_0x185bec(0x1ac)],'connectionError$':(_0x546d02=this['_mcpConnectionController'])==null?void 0x0:_0x546d02['connectionError$'],'currentSessionId$':(_0x1740e1=this[_0x185bec(0x143)])==null?void 0x0:_0x1740e1['sessionId$']});},this['_injector']);}[_0x2bf1b1(0x22b)](){const _0x3c80da=_0x2bf1b1;this[_0x3c80da(0x18d)](this[_0x3c80da(0x125)][_0x3c80da(0x1a6)](_0x3c192a)[_0x3c80da(0x1c5)](_0x161f65=>{const _0x3a48f0=_0x3c80da;this[_0x3a48f0(0x198)][_0x3a48f0(0x1f6)](_0x161f65||{});}));const _0x4f746c=this['_configService'][_0x3c80da(0x261)](_0x3c192a);this['_mcpCoreConfig$'][_0x3c80da(0x1f6)](_0x4f746c||{}),this[_0x3c80da(0x18d)](this[_0x3c80da(0x125)]['subscribeConfigValue$'](y)[_0x3c80da(0x1c5)](_0x5c2d2a=>{const _0x3d88e3=_0x3c80da;this[_0x3d88e3(0x131)][_0x3d88e3(0x1f6)](_0x5c2d2a||{});}));const _0x421492=this[_0x3c80da(0x125)][_0x3c80da(0x261)](y);this[_0x3c80da(0x131)]['next'](_0x421492||{});}async[_0x2bf1b1(0x157)](){const _0x4e013b=_0x2bf1b1,_0x5264cc=this['_configService'][_0x4e013b(0x261)](y);if(!(_0x5264cc!=null&&_0x5264cc[_0x4e013b(0x130)]))return;const _0x33eff1=await this[_0x4e013b(0x218)][_0x4e013b(0x150)](U);_0x33eff1&&(this[_0x4e013b(0x143)][_0x4e013b(0x122)]({'Authorization':'Bearer\x20'+_0x33eff1}),this[_0x4e013b(0x238)]['next'](_0x33eff1));}async[_0x2bf1b1(0x13c)](_0x48cd99){const _0x549a8b=_0x2bf1b1;if(!_0x48cd99['apiKey']||_0x48cd99[_0x549a8b(0x1ca)][_0x549a8b(0x1a1)]()[_0x549a8b(0x264)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x549a8b(0x142)]['t'](_0x549a8b(0x222))};if(_0x48cd99['apiKey'][_0x549a8b(0x1a1)]()[_0x549a8b(0x264)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x549a8b(0x142)]['t'](_0x549a8b(0x1de))};try{const _0x140377=await this['_injector'][_0x549a8b(0x1c6)](_0x15de46)[_0x549a8b(0x22c)](_0x48cd99[_0x549a8b(0x1ca)][_0x549a8b(0x1a1)]());return _0x140377['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x140377[_0x549a8b(0x19f)]||this[_0x549a8b(0x142)]['t'](_0x549a8b(0x258))};}catch(_0x1fff66){return console[_0x549a8b(0x15f)](_0x549a8b(0x182),_0x1fff66),{'isValid':!0x0};}}};I=tn([d(0x0,_0x26dbdd(_0x4b393b)),d(0x1,_0x5e8716),d(0x2,_0xb51bf0),d(0x3,_0x4d166b),d(0x4,_0x591717),d(0x5,_0x536ebf),d(0x6,_0x26dbdd(_0x5f0b45)),d(0x7,_0x26dbdd(_0xd0be8d)),d(0x8,_0x39a88e),d(0x9,_0x26dbdd(_0x15de46))],I);const V={'id':_0x2bf1b1(0x138),'type':_0x4900d6[_0x2bf1b1(0x146)],'handler':async(_0x5e901,_0x39c130)=>(_0x5e901[_0x2bf1b1(0x1c6)](I)[_0x2bf1b1(0x1e9)](),!0x0)};function pe(_0x56a2ef,_0x21acc1){const _0x258a81=_0x2bf1b1;switch(_0x56a2ef){case _0x565980[_0x258a81(0x237)]:return'mcpStatus.disconnected';case _0x565980[_0x258a81(0x220)]:return _0x258a81(0x196);case _0x565980[_0x258a81(0x200)]:return _0x258a81(0x1fb);case _0x565980['FAILED']:switch(_0x21acc1){case _0x1af6f2['UNAUTHORIZED']:return _0x258a81(0x24e);case _0x1af6f2[_0x258a81(0x260)]:return'mcpStatus.sessionOccupied';case _0x1af6f2[_0x258a81(0x1fc)]:return _0x258a81(0x19a);case _0x1af6f2[_0x258a81(0x1bd)]:return'mcpStatus.maxRetriesExceeded';default:return _0x258a81(0x242);}case _0x565980[_0x258a81(0x1fe)]:return _0x258a81(0x240);default:return _0x258a81(0x1e3);}}function on(_0x5f2da4,_0x375b86,_0x403ee3,_0x489e06=!0x0){const _0x31c6b6=_0x2bf1b1,_0x4b3766=pe(_0x5f2da4,_0x375b86),_0x11f958=_0x403ee3['t'](_0x4b3766);return _0x489e06?_0x5f2da4===_0x565980[_0x31c6b6(0x237)]&&_0x375b86===_0x1af6f2[_0x31c6b6(0x207)]?_0x11f958+_0x31c6b6(0x173)+_0x403ee3['t'](_0x31c6b6(0x25c)):_0x5f2da4===_0x565980[_0x31c6b6(0x200)]?''+_0x11f958:_0x5f2da4===_0x565980[_0x31c6b6(0x237)]||_0x5f2da4===_0x565980[_0x31c6b6(0x1fa)]?_0x11f958+'\x20-\x20'+_0x403ee3['t'](_0x31c6b6(0x23f)):_0x11f958:_0x11f958;}function sn(_0x19b1a9){const _0x4d1435=_0x2bf1b1;switch(_0x19b1a9){case _0x565980['CONNECTED']:return'univer-text-green-500';case _0x565980[_0x4d1435(0x220)]:case _0x565980[_0x4d1435(0x1fe)]:return _0x4d1435(0x139);case _0x565980[_0x4d1435(0x1fa)]:case _0x565980['DISCONNECTED']:return _0x4d1435(0x158);default:return'univer-text-gray-500';}}function cn(_0xbb392d){const _0x3e3068=_0x2bf1b1,{status$:_0x2b6c2b,error$:_0x24d648,onConfigure:_0x43022d,showClickable:_0x3b49c2=!0x0}=_0xbb392d,_0x5ad02a=_0x1b7a0e(_0x2b6c2b,_0x565980[_0x3e3068(0x237)]),_0x2b3980=_0x1b7a0e(_0x24d648,_0x1af6f2[_0x3e3068(0x128)]),_0xd52f11=_0x49e503(_0xd0be8d),_0x1d0a40=_0x5ad02a===_0x565980[_0x3e3068(0x200)];_0x5ad02a===_0x565980['CONNECTING']||_0x565980[_0x3e3068(0x1fe)];const _0x35bfd1=_0xd52f11['t'](pe(_0x5ad02a,_0x2b3980)),_0x59cfd6=on(_0x5ad02a,_0x2b3980,_0xd52f11,_0x3b49c2),_0x1abe0b=sn(_0x5ad02a),_0x5cf9ca=_0x1d0a40?_0x20a502(ge,{}):_0x20a502(de,{}),_0x22208b=_0x17df3a(()=>{_0x3b49c2&&_0x43022d&&_0x43022d();},[_0x3b49c2,_0x43022d]);function _0x2ff710(){const _0xe51334=_0x3e3068;return _0x10850c(_0xe51334(0x186),{'className':_0x1253e2(_0xe51334(0x188),_0x3b49c2&&_0x43022d&&_0xe51334(0x257)),'role':_0xe51334(0x213),'onClick':_0x3b49c2&&_0x43022d?_0x22208b:void 0x0,'children':[_0x20a502(_0xe51334(0x186),{'className':_0x1253e2('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x1abe0b),'children':_0x5cf9ca}),_0x20a502(_0xe51334(0x186),{'className':_0xe51334(0x215),'children':_0x35bfd1})]});}return _0x20a502(_0x5afcee,{'title':_0x59cfd6,'placement':_0x3e3068(0x269),'children':_0x2ff710()});}var an=Object[_0x2bf1b1(0x214)],ln=(_0x486f1f,_0x392419,_0x38ee50,_0x29d030)=>{const _0x11005b=_0x2bf1b1;for(var _0x1d1860=_0x29d030>0x1?void 0x0:_0x29d030?an(_0x392419,_0x38ee50):_0x392419,_0x37bbe6=_0x486f1f[_0x11005b(0x264)]-0x1,_0x1baf6f;_0x37bbe6>=0x0;_0x37bbe6--)(_0x1baf6f=_0x486f1f[_0x37bbe6])&&(_0x1d1860=_0x1baf6f(_0x1d1860)||_0x1d1860);return _0x1d1860;},M=(_0xaea0a1,_0x22c0cf)=>(_0x146e86,_0x402bdc)=>_0x22c0cf(_0x146e86,_0x402bdc,_0xaea0a1);let O=class extends _0x4e59e4{constructor(_0x1c9f46,_0x3a3602,_0x29de82,_0x61db93){const _0x4c3fae=_0x2bf1b1;super(),this[_0x4c3fae(0x164)]=_0x1c9f46,this[_0x4c3fae(0x22e)]=_0x3a3602,this['_uiPartsService']=_0x29de82,this[_0x4c3fae(0x125)]=_0x61db93,this[_0x4c3fae(0x187)](),this['_initStatusComponent']();}[_0x2bf1b1(0x187)](){const _0x468b6e=_0x2bf1b1,_0x253c3d=this['_configService'][_0x468b6e(0x261)](y);_0x253c3d!=null&&_0x253c3d['showDeveloperTools']&&(this[_0x468b6e(0x22e)][_0x468b6e(0x121)]=!0x1);}['_initStatusComponent'](){const _0xf9b8aa=_0x2bf1b1,_0x4313be=this[_0xf9b8aa(0x125)][_0xf9b8aa(0x261)](y);(_0x4313be==null?void 0x0:_0x4313be['showStatus'])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0xf9b8aa(0x1d5)](_0x1166eb[_0xf9b8aa(0x183)],()=>{const _0x20b5c9=_0xf9b8aa;var _0x35cf47;return _0x26c801(un({'status$':this[_0x20b5c9(0x22e)]['connectionStatus$'],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x20b5c9(0x23d)](),'showClickable':(_0x35cf47=_0x4313be==null?void 0x0:_0x4313be[_0x20b5c9(0x130)])!=null?_0x35cf47:!0x1}),this[_0x20b5c9(0x164)]);}));}[_0x2bf1b1(0x23d)](){const _0x37ad54=_0x2bf1b1;this[_0x37ad54(0x164)][_0x37ad54(0x1c6)](I)[_0x37ad54(0x1e9)]();}};O=ln([M(0x0,_0x26dbdd(_0x4b393b)),M(0x1,_0x26dbdd(_0x15de46)),M(0x2,_0x5e8716),M(0x3,_0xb51bf0)],O);function _0x4cba(_0x21cfa1,_0x4a9e1c){const _0x1c259a=_0x1c25();return _0x4cba=function(_0x4cba41,_0x33ac7b){_0x4cba41=_0x4cba41-0x121;let _0x2f76d3=_0x1c259a[_0x4cba41];return _0x2f76d3;},_0x4cba(_0x21cfa1,_0x4a9e1c);}function un(_0x25e79e){const {status$:_0x524417,error$:_0x16ed7c,onConfigure:_0x1a7749,showClickable:_0x86ea9a}=_0x25e79e;return function(){return _0x20a502(cn,{'status$':_0x524417,'error$':_0x16ed7c,'onConfigure':_0x1a7749,'showClickable':_0x86ea9a});};}function vn(_0x5933d6){const _0x2191cd=_0x2bf1b1;return{'id':V['id'],'type':_0x3b50c1['BUTTON'],'icon':_0x2191cd(0x24c),'title':'mcpConfig.title','tooltip':_0x2191cd(0x217)};}const dn={[_0x1bee11[_0x2bf1b1(0x24b)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x448c3c,_0x204640,_0x3e31ae,_0x37c8b3)=>{for(var _0x1407a2=_0x37c8b3>0x1?void 0x0:_0x37c8b3?gn(_0x204640,_0x3e31ae):_0x204640,_0x576b82=_0x448c3c['length']-0x1,_0x224c89;_0x576b82>=0x0;_0x576b82--)(_0x224c89=_0x448c3c[_0x576b82])&&(_0x1407a2=_0x224c89(_0x1407a2)||_0x1407a2);return _0x1407a2;},re=(_0x2f1fb5,_0x4003ce)=>(_0x5bfb8a,_0x192fe2)=>_0x4003ce(_0x5bfb8a,_0x192fe2,_0x2f1fb5);let D=class extends _0x4e59e4{constructor(_0x571f87,_0xb51d82){const _0x59be3a=_0x2bf1b1;super(),this[_0x59be3a(0x253)]=_0x571f87,this[_0x59be3a(0x1ad)]=_0xb51d82,this[_0x59be3a(0x190)](),this[_0x59be3a(0x1aa)]();}[_0x2bf1b1(0x190)](){const _0x5461db=_0x2bf1b1;[V][_0x5461db(0x20f)](_0xf01787=>{const _0x3375bf=_0x5461db;this['disposeWithMe'](this['_commandService'][_0x3375bf(0x18e)](_0xf01787));});}[_0x2bf1b1(0x1aa)](){const _0x1fbb92=_0x2bf1b1;this[_0x1fbb92(0x1ad)][_0x1fbb92(0x1a9)](dn);}};D=pn([re(0x0,_0x3e86ed),re(0x1,_0x51d18a)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2bf1b1(0x254),'connected':_0x2bf1b1(0x16d),'failed':_0x2bf1b1(0x20e),'retrying':_0x2bf1b1(0x140),'unknown':_0x2bf1b1(0x17f),'unauthorized':_0x2bf1b1(0x19b),'sessionOccupied':_0x2bf1b1(0x165),'networkError':_0x2bf1b1(0x14d),'maxRetriesExceeded':_0x2bf1b1(0x14a),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2bf1b1(0x236)},'mcpConfig':{'title':_0x2bf1b1(0x1e7),'description':_0x2bf1b1(0x16c),'apiKey':_0x2bf1b1(0x12c),'apiKeyPlaceholder':_0x2bf1b1(0x211),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2bf1b1(0x127),'enableAuthHint':_0x2bf1b1(0x185),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2bf1b1(0x1b9),'configInstructions':_0x2bf1b1(0x262),'configStepTitle':_0x2bf1b1(0x1b4),'configStep1':_0x2bf1b1(0x1e2),'configStep2':_0x2bf1b1(0x151),'configStep3':_0x2bf1b1(0x24a),'sessionId':_0x2bf1b1(0x21c),'sessionIdDescription':_0x2bf1b1(0x23e),'authorizationDescription':_0x2bf1b1(0x18b),'configParameters':_0x2bf1b1(0x12b),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x2bf1b1(0x224),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2bf1b1(0x228),'configSaved':_0x2bf1b1(0x268),'configError':_0x2bf1b1(0x1c0),'apiApplyInfo':{'title':_0x2bf1b1(0x154),'description':_0x2bf1b1(0x1ce),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2bf1b1(0x26a)},'validation':{'apiKeyRequired':_0x2bf1b1(0x15c),'apiKeyTooShort':_0x2bf1b1(0x1d1),'invalidConfig':_0x2bf1b1(0x21a),'invalidApiKey':_0x2bf1b1(0x178)},'connectionStatus':{'disconnected':_0x2bf1b1(0x1ae),'connecting':_0x2bf1b1(0x1f9),'connected':_0x2bf1b1(0x144),'failed':_0x2bf1b1(0x25d),'retrying':_0x2bf1b1(0x148)},'connectionError':{'unauthorized':_0x2bf1b1(0x250),'sessionOccupied':_0x2bf1b1(0x1ff),'networkError':_0x2bf1b1(0x149),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x2bf1b1(0x13f),'connected':_0x2bf1b1(0x1ea),'failed':_0x2bf1b1(0x25e),'retrying':_0x2bf1b1(0x1e0),'unknown':_0x2bf1b1(0x1df),'unauthorized':_0x2bf1b1(0x17c),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x2bf1b1(0x232),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x2bf1b1(0x12e)},'mcpConfig':{'title':_0x2bf1b1(0x208),'description':_0x2bf1b1(0x1af),'apiKey':_0x2bf1b1(0x1a2),'apiKeyPlaceholder':_0x2bf1b1(0x24f),'apiKeyHint':_0x2bf1b1(0x1c8),'enableAuth':'启用身份验证','enableAuthHint':_0x2bf1b1(0x14f),'connectionInfo':_0x2bf1b1(0x169),'mcpClientConfig':_0x2bf1b1(0x169),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x2bf1b1(0x252),'configStep3':_0x2bf1b1(0x16a),'sessionId':_0x2bf1b1(0x1cd),'sessionIdDescription':_0x2bf1b1(0x1da),'authorizationDescription':_0x2bf1b1(0x129),'configParameters':_0x2bf1b1(0x1bc),'maxRetries':_0x2bf1b1(0x18c),'save':_0x2bf1b1(0x184),'saving':_0x2bf1b1(0x243),'note1':_0x2bf1b1(0x141),'note2':_0x2bf1b1(0x266),'configSaved':_0x2bf1b1(0x136),'configError':_0x2bf1b1(0x177),'apiApplyInfo':{'title':_0x2bf1b1(0x23a),'description':_0x2bf1b1(0x1b5),'univerAiLabel':_0x2bf1b1(0x123),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x2bf1b1(0x1d0),'apiKeyTooShort':_0x2bf1b1(0x172),'invalidConfig':_0x2bf1b1(0x13a),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x2bf1b1(0x12a),'connecting':_0x2bf1b1(0x1b6),'connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x2bf1b1(0x267),'networkError':_0x2bf1b1(0x1c4),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x2bf1b1(0x152)],hn=Object[_0x2bf1b1(0x214)],Cn=(_0x56eeba,_0x4e2f5b,_0x3c080a)=>_0x4e2f5b in _0x56eeba?fn(_0x56eeba,_0x4e2f5b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c080a}):_0x56eeba[_0x4e2f5b]=_0x3c080a,mn=(_0x39d1ba,_0xc6c08b,_0x11d0aa,_0x2e4c62)=>{for(var _0x102582=_0x2e4c62>0x1?void 0x0:_0x2e4c62?hn(_0xc6c08b,_0x11d0aa):_0xc6c08b,_0x4d16d4=_0x39d1ba['length']-0x1,_0x33e509;_0x4d16d4>=0x0;_0x4d16d4--)(_0x33e509=_0x39d1ba[_0x4d16d4])&&(_0x102582=_0x33e509(_0x102582)||_0x102582);return _0x102582;},P=(_0x386295,_0x270f74)=>(_0x378e77,_0x27ba56)=>_0x270f74(_0x378e77,_0x27ba56,_0x386295),_n=(_0x1b4305,_0x3f0724,_0x918b44)=>Cn(_0x1b4305,_0x3f0724+'',_0x918b44);let j=class extends _0x3d9051{constructor(_0x3fe424=ie,_0x14e0b8,_0x544704,_0x366753,_0xdc8424,_0x391448){const _0x87477b=_0x2bf1b1;super(),this[_0x87477b(0x1cf)]=_0x3fe424,this[_0x87477b(0x164)]=_0x14e0b8,this[_0x87477b(0x125)]=_0x544704,this[_0x87477b(0x1f3)]=_0x366753,this[_0x87477b(0x218)]=_0xdc8424,this['_localeService']=_0x391448;const {..._0x5b7fc4}=_0x2d2539({},ie,this[_0x87477b(0x1cf)]);this[_0x87477b(0x125)]['setConfig'](y,_0x5b7fc4);}async[_0x2bf1b1(0x230)](){const _0x4f9850=_0x2bf1b1,_0x50cab8=[[O],[I],[D]];this[_0x4f9850(0x164)]['has'](_0x17de95)||_0x50cab8[_0x4f9850(0x12d)]([_0x17de95,{'useClass':_0x2bec1d}]),_0x50cab8[_0x4f9850(0x20f)](_0x2cbd8e=>this[_0x4f9850(0x164)][_0x4f9850(0x249)](_0x2cbd8e)),this[_0x4f9850(0x164)][_0x4f9850(0x1c6)](O),this[_0x4f9850(0x164)][_0x4f9850(0x1c6)](I),this['_injector'][_0x4f9850(0x1c6)](D);}};_n(j,_0x2bf1b1(0x156),'MCP_UI_PLUGIN'),j=mn([_0x48ca9a(_0x510c1c),P(0x1,_0x26dbdd(_0x4b393b)),P(0x2,_0xb51bf0),P(0x3,_0x5e8716),P(0x4,_0x4d166b),P(0x5,_0x26dbdd(_0xd0be8d))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x3504c9=_0x418a;(function(_0x2b86e2,_0x4ef7db){const _0x4f2592=_0x418a,_0x5f2c50=_0x2b86e2();while(!![]){try{const _0x167a71=parseInt(_0x4f2592(0x248))/0x1+parseInt(_0x4f2592(0x225))/0x2+-parseInt(_0x4f2592(0x1ee))/0x3+-parseInt(_0x4f2592(0x288))/0x4+-parseInt(_0x4f2592(0x224))/0x5*(parseInt(_0x4f2592(0x17f))/0x6)+-parseInt(_0x4f2592(0x18c))/0x7*(-parseInt(_0x4f2592(0x228))/0x8)+parseInt(_0x4f2592(0x1ec))/0x9*(parseInt(_0x4f2592(0x191))/0xa);if(_0x167a71===_0x4ef7db)break;else _0x5f2c50['push'](_0x5f2c50['shift']());}catch(_0x2f5785){_0x5f2c50['push'](_0x5f2c50['shift']());}}}(_0x1da1,0xea29b));var Pe=Object[_0x3504c9(0x299)],Ee=(_0x1c94df,_0xd3714d,_0x56e2e4)=>_0xd3714d in _0x1c94df?Pe(_0x1c94df,_0xd3714d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56e2e4}):_0x1c94df[_0xd3714d]=_0x56e2e4,x=(_0x5be7f8,_0x4478c5,_0x4c7f1d)=>Ee(_0x5be7f8,typeof _0x4478c5!='symbol'?_0x4478c5+'':_0x4478c5,_0x4c7f1d);import{LocaleService as _0x500816,Inject as _0x22aeb1,Injector as _0x3b20df,IConfigService as _0x967953,ILocalStorageService as _0x493214,ILogService as _0x1b5827,Disposable as _0x422753,CommandType as _0x498394,ICommandService as _0x4ae9c5,DependentOn as _0x3893d1,Plugin as _0xe522b5,merge as _0x52c909}from'@univerjs/core';import{jsxs as _0x26b802,jsx as _0x47d81f}from'react/jsx-runtime';import{MCPConnectionStatus as _0x53b579,MCPConnectionError as _0x1b6dba,MCPConnectionController as _0x2f25e4,MCP_PLUGIN_CONFIG_KEY as _0x2502a4,UniverMCPPlugin as _0x1a183c}from'@univerjs-pro/mcp';import{clsx as _0x2316bb,Input as _0x510951,Button as _0x146f3d,MessageType as _0x3dcc20,Tooltip as _0x1114ec}from'@univerjs/design';import{useDependency as _0x256644,useObservable as _0x478b78,IUIPartsService as _0x5e5a73,IDialogService as _0x1c68c5,IMessageService as _0x52f42d,ComponentManager as _0x25a9b7,connectInjector as _0x3c7794,BuiltInUIPart as _0x4f81ad,MenuItemType as _0xd1e96c,RibbonStartGroup as _0x17a6fa,IMenuManagerService as _0x7041bd}from'@univerjs/ui';import{BehaviorSubject as _0x8a14c2}from'rxjs';import{useRef as _0x114157,createElement as _0x222e2d,forwardRef as _0x1fe796,useState as _0x27f889,useCallback as _0x10851e}from'react';function _0x418a(_0x470a75,_0x1926cc){const _0x1da1ce=_0x1da1();return _0x418a=function(_0x418afc,_0x3837ea){_0x418afc=_0x418afc-0x14c;let _0x7391f8=_0x1da1ce[_0x418afc];return _0x7391f8;},_0x418a(_0x470a75,_0x1926cc);}import{ISocketService as _0x274cf1,WebSocketService as _0x180b24}from'@univerjs/network';function b({ref:_0x38cfa0,..._0x3ea635}){const _0x58c5a4=_0x3504c9,{icon:_0x359bc1,id:_0x54ebf9,className:_0x1a2df2,extend:_0x141502,..._0x54c02b}=_0x3ea635,_0x3571f7=('univerjs-icon\x20univerjs-icon-'+_0x54ebf9+'\x20'+(_0x1a2df2||''))[_0x58c5a4(0x21b)](),_0x50e652=_0x114157('_'+We());return ae(_0x359bc1,''+_0x54ebf9,{'defIds':_0x359bc1[_0x58c5a4(0x297)],'idSuffix':_0x50e652[_0x58c5a4(0x28a)]},{'ref':_0x38cfa0,'className':_0x3571f7,..._0x54c02b},_0x141502);}function ae(_0x3506f2,_0x3f22e2,_0x1e777f,_0x1cc31d,_0x13f755){const _0x549c52=_0x3504c9;return _0x222e2d(_0x3506f2[_0x549c52(0x28c)],{'key':_0x3f22e2,...Ye(_0x3506f2,_0x1e777f,_0x13f755),..._0x1cc31d},(Ze(_0x3506f2,_0x1e777f)[_0x549c52(0x251)]||[])[_0x549c52(0x1a1)]((_0x4a8752,_0x31bd67)=>ae(_0x4a8752,_0x3f22e2+'-'+_0x3506f2[_0x549c52(0x28c)]+'-'+_0x31bd67,_0x1e777f,void 0x0,_0x13f755)));}function Ye(_0x3fe012,_0x4869d6,_0x5a7573){const _0x1de176=_0x3504c9,_0x1eaed9={..._0x3fe012[_0x1de176(0x26f)]};_0x5a7573!=null&&_0x5a7573['colorChannel1']&&_0x1eaed9['fill']===_0x1de176(0x203)&&(_0x1eaed9['fill']=_0x5a7573[_0x1de176(0x203)]),_0x3fe012[_0x1de176(0x28c)]==='mask'&&_0x1eaed9['id']&&(_0x1eaed9['id']=_0x1eaed9['id']+_0x4869d6[_0x1de176(0x196)]),Object[_0x1de176(0x1fa)](_0x1eaed9)['forEach'](([_0x164658,_0x16f018])=>{const _0x139d61=_0x1de176;_0x164658===_0x139d61(0x23e)&&typeof _0x16f018==_0x139d61(0x177)&&(_0x1eaed9[_0x164658]=_0x16f018[_0x139d61(0x253)](/url\(#(.*)\)/,_0x139d61(0x234)+_0x4869d6['idSuffix']+')'));});const {defIds:_0x401506}=_0x4869d6;return!_0x401506||_0x401506['length']===0x0||(_0x3fe012[_0x1de176(0x28c)]===_0x1de176(0x211)&&_0x1eaed9[_0x1de176(0x1b3)]&&(_0x1eaed9['xlink:href']=_0x1eaed9[_0x1de176(0x1b3)]+_0x4869d6[_0x1de176(0x196)]),Object['entries'](_0x1eaed9)[_0x1de176(0x20d)](([_0x4f408c,_0x6dd55c])=>{const _0x27894c=_0x1de176;typeof _0x6dd55c==_0x27894c(0x177)&&(_0x1eaed9[_0x4f408c]=_0x6dd55c[_0x27894c(0x253)](/url\(#(.*)\)/,'url(#$1'+_0x4869d6[_0x27894c(0x196)]+')'));})),_0x1eaed9;}function Ze(_0x2a538b,_0x56897b){const _0x1cf9c3=_0x3504c9;var _0x21695a;const {defIds:_0xa94e1e}=_0x56897b;return!_0xa94e1e||_0xa94e1e['length']===0x0?_0x2a538b:_0x2a538b['tag']===_0x1cf9c3(0x14f)&&((_0x21695a=_0x2a538b[_0x1cf9c3(0x251)])!=null&&_0x21695a[_0x1cf9c3(0x16b)])?{..._0x2a538b,'children':_0x2a538b[_0x1cf9c3(0x251)][_0x1cf9c3(0x1a1)](_0x23c725=>typeof _0x23c725['attrs']['id']==_0x1cf9c3(0x177)&&_0xa94e1e&&_0xa94e1e['includes'](_0x23c725[_0x1cf9c3(0x26f)]['id'])?{..._0x23c725,'attrs':{..._0x23c725[_0x1cf9c3(0x26f)],'id':_0x23c725[_0x1cf9c3(0x26f)]['id']+_0x56897b[_0x1cf9c3(0x196)]}}:_0x23c725)}:_0x2a538b;}function We(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}b['displayName']=_0x3504c9(0x286);function _0x1da1(){const _0x1fbd04=['_mcpCoreConfig$','<API_KEY>','value','add','Bearer\x20','35649KMNrAK','http://www.w3.org/2000/svg','1037733txvsiC','1em','mcpServerUrl','mcpStatus.unknown','Configuration\x20Steps:','MCP\x20Connected','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','UNAUTHORIZED','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','translate(.97)','_messageService','on-line-icon','entries','_validateConfig','currentColor','univer-min-w-0\x20univer-flex-1','_config$','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','on-line-icon_clip0_910_349','__setCustomHeaders','svg','colorChannel1','mcp-config-dialog','启用身份验证','NONE','_configService','univer-flex\x20univer-items-center\x20univer-gap-2','SESSION_ID_OCCUPIED','includes','univer-bg-blue-500','univer-text-green-500','forEach','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','M0\x200H16V16H0z','Invalid\x20configuration','use','mcpStatus.retrying','off','MCP:\x20Network\x20Error','FAILED','univer-space-y-3','Error','mcpConfig.apiKeyHint','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','registerComponent','trim','show','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','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','重连中...','点击连接\x20MCP','配置保存失败','stringify','What\x20is\x20API\x20Key?','13775tbAoVy','1235920UipbEP','会话\x20ID\x20已被占用,请稍后再试','网络连接错误,请检查您的网络连接','682544yUithd','mcpConfig.configInstructions','Success','mcpConfig.configStep1','0\x200\x2016\x2016','mcpStatus.clickToConnect','univer-font-medium','_dialogService','最大重试次数','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','path','showConfigPanel','url(#$1','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.configStepTitle','Configuration\x20Parameters:','text','mcpConfig.sessionIdDescription','mcpConfig.connectionError.unauthorized','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','clipPath','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','mask','push','univer-shrink-0\x20univer-text-red-500','mcpConfig.authorizationDescription','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','removeItem','保存配置','white','DISCONNECTED','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1428007BeOkbM','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-space-y-2','univer.plus','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_createConfigPanelComponent','Copy\x20the\x20JSON\x20configuration\x20below','connectionError$','univer-space-y-4','children','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','replace','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.connectionStatus.retrying','univer-text-red-500','_handleConfigSave','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','RETRYING','noopener\x20noreferrer','MCP:\x20Session\x20ID\x20Occupied','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥长度至少需要\x2010\x20位','_logService','Saving...','OTHERS','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20Configuration','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','请输入您的\x20API\x20密钥','open','会话ID','evenodd','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','点击配置\x20MCP','CONNECTED','none','mcpConfig.configStep3','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','_localeService','attrs','_initAutoConnect','univer-size-2\x20univer-rounded-full','mcpStatus.maxRetriesExceeded','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','get','MCP\x20Connecting...','univer-text-white','mcpStatus.failed','registerCommand','mcpConfig.validation.apiKeyRequired','univer-size-4','getCurrentConfig','mcpConfig.configError','将配置添加到您的\x20MCP\x20客户端设置文件中','mcp-ui.command.openConfigPanel','MCP:\x20Max\x20Retries\x20Exceeded','mcp.apiKey','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','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','MCP\x20已断开','round','UniverIcon','API\x20key\x20with\x20Bearer\x20prefix.','7159144NTrOkt','BUTTON','current','univer-flex\x20univer-items-center','tag','span','_loading$','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionError.networkError','配置无效','next','univer-bg-gray-500','API\x20密钥','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-text-yellow-500','defIds','HEADER_MENU','defineProperty','_initConfigSync','bottom','OnLineIcon','MCP\x20连接中...','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','您的\x20API\x20密钥安全存储在本地存储中','off-line-icon','defs','mcp-ui.config','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.ai','mcpConfig.title','mcpConfig.connectionStatus.failed','univer-flex\x20univer-items-center\x20univer-gap-3','_loadStoredApiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionStatus.connecting','MCP\x20连接失败','univer-text-sm\x20univer-font-medium','mcpConfig.apiApplyInfo.description','univer-shrink-0\x20univer-text-blue-500','启用身份验证以获得安全连接','Max\x20Retries','_config','connectionStatus$','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','warn','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20is\x20required','Univer\x20AI\x20Console','MCP\x20客户端配置','getItem','univer-space-y-5','univer-text-blue-600','length','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','close-icon','连接失败','Configuration\x20Notes:','_localStorageService','_initializeMenus','MAX_RETRIES_EXCEEDED','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','button','displayName','Connection\x20Failed','string','mcpConfig.validation.apiKeyTooShort','MCP\x20Unknown\x20Status','MCP\x20重连中...','API\x20密钥无效,请检查密钥是否正确','univer-text-gray-500','mcpStatus.connecting','MenuIcon','2388vFSwuj','mcpConfig.connectionStatus.connected','MCP\x20配置','pre','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','OffLineIcon','mcpConfig.validation.invalidConfig','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','error','univer-flex\x20univer-items-start\x20univer-gap-2','getOwnPropertyDescriptor','_injector','21hmfCWZ','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.note2','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','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','4770gyTxxS','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','idSuffix','什么是\x20API\x20密钥?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-bg-red-500','Univer\x20AI\x20控制台','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_registerComponent','mcpConfig.description','close','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','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','map','univer-text-xs\x20univer-text-gray-500','_mcpConnectionController','disposeWithMe','带有\x20Bearer\x20前缀的\x20API\x20密钥。','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','url(#on-line-icon_clip0_910_349)','MCP\x20Client\x20Configuration','univer_session_id:','apiKey','Disconnected','subscribe','showDeveloperTools','MCPConfigPanel','onStarting','Session\x20ID','subscribeConfigValue$','MCP:\x20会话\x20ID\x20已被占用','xlink:href','_menuManagerService','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','getConfig','mcpStatus.sessionOccupied','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex\x20univer-gap-3','showStatus','MCP:\x20超出最大重试次数','CONNECTING','_uiPartsService','配置参数:','register','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.apiApplyInfo.title','mcpConfig.apiApplyInfo.getStarted','isValid','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','保存中...','\x20-\x20','您的\x20API\x20密钥将在此浏览器中本地存储','mcpStatus.disconnected','univer-bg-green-500','_initStatusComponent','sessionId$','univer-text-gray-400','Enable\x20Authentication','setItem','mcpConfig.saving','div','assign','mcpStatus.networkError','mcpConfig.apiKey','has','_apiKey$','MCP\x20Disconnected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','NETWORK_ERROR','_connectionController','mcpConfig.connectionError.maxRetriesExceeded','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','0\x200\x2017\x2016','mergeMenu','enableAutoConnect','_initializeCommands','Connected','_handleConfigure','CloseIcon','mcpConfig.connectionError.sessionOccupied'];_0x1da1=function(){return _0x1fbd04;};return _0x1da1();}const qe={'tag':_0x3504c9(0x202),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':_0x3504c9(0x1ef),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x3504c9(0x1fc),'d':_0x3504c9(0x18f),'fillRule':_0x3504c9(0x267),'clipRule':_0x3504c9(0x267)}}]},le=_0x1fe796(function(_0x51c5bc,_0x49e1b1){const _0x10ae15=_0x3504c9;return _0x222e2d(b,Object[_0x10ae15(0x1d3)]({},_0x51c5bc,{'id':'check-mark-icon','ref':_0x49e1b1,'icon':qe}));});le['displayName']='CheckMarkIcon';const Xe={'tag':'svg','attrs':{'xmlns':_0x3504c9(0x1ed),'fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':'1em','height':_0x3504c9(0x1ef)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x3504c9(0x23d)}}]},ue=_0x1fe796(function(_0x331fcc,_0x9aa9da){const _0x5d5d61=_0x3504c9;return _0x222e2d(b,Object[_0x5d5d61(0x1d3)]({},_0x331fcc,{'id':_0x5d5d61(0x16d),'ref':_0x9aa9da,'icon':Xe}));});ue[_0x3504c9(0x175)]=_0x3504c9(0x1e5);const Je={'tag':_0x3504c9(0x202),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':'1em','height':'1em'},'children':[{'tag':_0x3504c9(0x232),'attrs':{'fill':_0x3504c9(0x1fc),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':'path','attrs':{'fill':_0x3504c9(0x1fc),'d':_0x3504c9(0x1de)}},{'tag':_0x3504c9(0x232),'attrs':{'fill':_0x3504c9(0x1fc),'d':_0x3504c9(0x1a6),'fillRule':_0x3504c9(0x267),'clipRule':'evenodd'}}]},ve=_0x1fe796(function(_0x532e9c,_0x106138){const _0x53b54f=_0x3504c9;return _0x222e2d(b,Object[_0x53b54f(0x1d3)]({},_0x532e9c,{'id':'help-icon','ref':_0x106138,'icon':Je}));});ve[_0x3504c9(0x175)]='HelpIcon';const Qe={'tag':_0x3504c9(0x202),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':'1em','height':_0x3504c9(0x1ef)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3504c9(0x232),'attrs':{'stroke':_0x3504c9(0x1fc),'d':_0x3504c9(0x21e),'strokeLinecap':_0x3504c9(0x285),'strokeLinejoin':_0x3504c9(0x285),'strokeWidth':1.2}}]},{'tag':_0x3504c9(0x14f),'attrs':{},'children':[{'tag':_0x3504c9(0x23c),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x3504c9(0x245),'d':_0x3504c9(0x20f)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0x1fe796(function(_0x20b9f6,_0x53cce7){const _0x119f06=_0x3504c9;return _0x222e2d(b,Object[_0x119f06(0x1d3)]({},_0x20b9f6,{'id':_0x119f06(0x14e),'ref':_0x53cce7,'icon':Qe}));});de[_0x3504c9(0x175)]=_0x3504c9(0x184);const en={'tag':'svg','attrs':{'xmlns':_0x3504c9(0x1ed),'fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x1df),'width':'1em','height':_0x3504c9(0x1ef)},'children':[{'tag':'g','attrs':{'clipPath':_0x3504c9(0x1a7)},'children':[{'tag':_0x3504c9(0x232),'attrs':{'stroke':_0x3504c9(0x1fc),'d':_0x3504c9(0x283),'strokeLinecap':_0x3504c9(0x285),'strokeLinejoin':_0x3504c9(0x285),'strokeWidth':1.2}}]},{'tag':_0x3504c9(0x14f),'attrs':{},'children':[{'tag':_0x3504c9(0x23c),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3504c9(0x232),'attrs':{'fill':_0x3504c9(0x245),'d':_0x3504c9(0x20f),'transform':_0x3504c9(0x1f7)}}]}]}],'defIds':[_0x3504c9(0x200)]},ge=_0x1fe796(function(_0x218977,_0x15e131){const _0x2a471e=_0x3504c9;return _0x222e2d(b,Object[_0x2a471e(0x1d3)]({},_0x218977,{'id':_0x2a471e(0x1f9),'ref':_0x15e131,'icon':en}));});ge['displayName']=_0x3504c9(0x29c);function nn(_0x283731){const _0xa71d99=_0x3504c9;var _0x33d3ec,_0xc2ca5c;const {mcpCoreConfig:_0x34a8d2,onSave:_0x5baf93,loading:_0x4cbef5=!0x1,config:_0x48bb1c,connectionStatus$:_0x970d05,connectionError$:_0x34f186,currentApiKey$:_0x263f24,currentSessionId$:_0x4bd101}=_0x283731,_0x5a6eea=_0x256644(_0x500816),_0x462d5d=_0x478b78(_0x970d05,_0x53b579['DISCONNECTED']),_0x1ebfee=_0x478b78(_0x34f186,_0x1b6dba[_0xa71d99(0x206)]),_0xcdd1b8=_0x478b78(_0x4bd101,''),_0x1b3279=_0x478b78(_0x263f24,''),[_0x27a2be,_0x12a562]=_0x27f889(_0x1b3279||''),_0x1072c=!0x0,_0x352f02=_0x48bb1c[_0xa71d99(0x1ad)]&&_0x34a8d2[_0xa71d99(0x1f0)]&&(_0x34a8d2[_0xa71d99(0x1f0)][_0xa71d99(0x20a)](_0xa71d99(0x24b))||_0x34a8d2[_0xa71d99(0x1f0)][_0xa71d99(0x20a)](_0xa71d99(0x152))),_0x45c65c=(_0x33d3ec=_0x34a8d2[_0xa71d99(0x1f0)])==null?void 0x0:_0x33d3ec[_0xa71d99(0x20a)]('univer.plus'),_0x166c37=(_0xc2ca5c=_0x34a8d2[_0xa71d99(0x1f0)])==null?void 0x0:_0xc2ca5c[_0xa71d99(0x20a)](_0xa71d99(0x152)),_0x53f6af=_0x45c65c?'https://console.univer.plus':'https://console.univer.ai',_0xf45637=_0x48bb1c[_0xa71d99(0x1ad)]&&(_0x45c65c||_0x166c37),[_0x45d8aa,_0x363334]=_0x27f889(!_0x27a2be[_0xa71d99(0x21b)]()),_0x408f56=(_0x24a3fa,_0xacbe5c)=>{const _0x191b32=_0xa71d99;if(_0xacbe5c===_0x1b6dba['UNAUTHORIZED'])return _0x191b32(0x1da);switch(_0x24a3fa){case _0x53b579[_0x191b32(0x26a)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x53b579[_0x191b32(0x1be)]:case _0x53b579[_0x191b32(0x259)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x53b579[_0x191b32(0x215)]:return _0x191b32(0x1da);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x179c7a=(_0x187b21,_0x2507a5)=>{const _0x337c12=_0xa71d99;if(_0x2507a5===_0x1b6dba[_0x337c12(0x1f5)])return _0x337c12(0x199);switch(_0x187b21){case _0x53b579[_0x337c12(0x26a)]:return _0x337c12(0x1cb);case _0x53b579[_0x337c12(0x1be)]:case _0x53b579[_0x337c12(0x259)]:return _0x337c12(0x20b);case _0x53b579['FAILED']:return _0x337c12(0x199);default:return _0x337c12(0x293);}},_0x9563b8=_0x2373a4=>{const _0x548631=_0xa71d99;switch(_0x2373a4){case _0x53b579['CONNECTED']:return _0x5a6eea['t'](_0x548631(0x180));case _0x53b579[_0x548631(0x1be)]:return _0x5a6eea['t'](_0x548631(0x158));case _0x53b579[_0x548631(0x215)]:return _0x5a6eea['t'](_0x548631(0x154));case _0x53b579[_0x548631(0x259)]:return _0x5a6eea['t'](_0x548631(0x255));default:return _0x5a6eea['t']('mcpConfig.connectionStatus.disconnected');}},_0x43e104=_0x5f1d8e=>{const _0x575a12=_0xa71d99;switch(_0x5f1d8e){case _0x1b6dba[_0x575a12(0x1f5)]:return _0x5a6eea['t'](_0x575a12(0x23a));case _0x1b6dba[_0x575a12(0x209)]:return _0x5a6eea['t'](_0x575a12(0x1e6));case _0x1b6dba[_0x575a12(0x1db)]:return _0x5a6eea['t'](_0x575a12(0x290));case _0x1b6dba[_0x575a12(0x172)]:return _0x5a6eea['t'](_0x575a12(0x1dd));default:return'';}},_0xf39519=_0x10851e(()=>{const _0x16d584=_0xa71d99,_0x479bad={..._0x34a8d2,'apiKey':_0x27a2be[_0x16d584(0x21b)](),'enableAuth':_0x1072c};_0x5baf93(_0x479bad);},[_0x34a8d2,_0x27a2be,_0x1072c,_0x5baf93]),_0x5c2208=_0x27a2be['trim']()['length']>0x0;return _0x26b802('div',{'className':_0xa71d99(0x274),'children':[_0x47d81f('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x155),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x157),'children':_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x277),'children':'⚙'})}),_0x47d81f(_0xa71d99(0x1d2),{'children':_0x47d81f('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x5a6eea['t'](_0xa71d99(0x19d))})})]})}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x151),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0x2316bb(_0xa71d99(0x1f4),_0x408f56(_0x462d5d,_0x1ebfee)),'children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0x2316bb(_0xa71d99(0x271),_0x179c7a(_0x462d5d,_0x1ebfee))}),_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x15a),'children':_0x9563b8(_0x462d5d)})]})}),_0x1ebfee!==_0x1b6dba[_0xa71d99(0x206)]&&(_0x462d5d===_0x53b579[_0xa71d99(0x215)]||_0x1ebfee===_0x1b6dba[_0xa71d99(0x1f5)])&&_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x273),'children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x189),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x240),'children':'⚠️'}),_0x47d81f('p',{'className':_0xa71d99(0x16c),'children':_0x43e104(_0x1ebfee)})]})})]}),_0x47d81f('div',{'className':_0xa71d99(0x1c6),'children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x169),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':'univer-space-y-2','children':[_0x26b802('label',{'className':_0xa71d99(0x23b),'children':[_0x47d81f(_0xa71d99(0x28d),{'children':'🔑'}),'\x20',_0x5a6eea['t'](_0xa71d99(0x1d5)),_0x47d81f('span',{'className':_0xa71d99(0x256),'children':'*'}),_0x352f02&&_0x47d81f('a',{'className':_0xa71d99(0x1b9),'title':_0x5a6eea['t'](_0xa71d99(0x1c3)),'role':_0xa71d99(0x174),'onClick':()=>_0x363334(!0x0),'children':_0x47d81f(ve,{})})]}),_0x47d81f(_0x510951,{'type':_0xa71d99(0x238),'placeholder':_0x5a6eea['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x27a2be,'disabled':_0x4cbef5,'autoComplete':_0xa71d99(0x213),'onChange':_0x12a562}),_0x47d81f('p',{'className':_0xa71d99(0x1a2),'children':_0x5a6eea['t'](_0xa71d99(0x218))})]}),_0x352f02&&_0x45d8aa&&_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x26d),'children':[_0x47d81f('a',{'className':_0xa71d99(0x242),'role':_0xa71d99(0x174),'onClick':()=>_0x363334(!0x1),'children':_0x47d81f(ue,{'className':_0xa71d99(0x27b)})}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x282),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x263),'children':_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x16a),'children':'🚀'})}),_0x26b802('div',{'className':'univer-flex-1','children':[_0x47d81f('h4',{'className':_0xa71d99(0x1ff),'children':_0x5a6eea['t'](_0xa71d99(0x1c3))}),_0x47d81f('p',{'className':_0xa71d99(0x268),'children':_0x5a6eea['t'](_0xa71d99(0x15b))}),_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0xf45637&&_0x26b802('a',{'className':_0xa71d99(0x19f),'href':_0x53f6af,'target':'_blank','rel':_0xa71d99(0x25a),'children':[_0x47d81f(_0xa71d99(0x28d),{'children':'🤖'}),_0x5a6eea['t'](_0xa71d99(0x261)),_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x1ce),'children':'↗'})]})}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x231),'children':['✨','\x20',_0x5a6eea['t'](_0xa71d99(0x1c4))]})]})]})]}),_0x48bb1c['showDeveloperTools']&&_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x21d),'children':[_0x26b802('h4',{'className':_0xa71d99(0x249),'children':[_0x47d81f(_0xa71d99(0x28d),{'children':'🔗'}),'\x20',_0x5a6eea['t']('mcpConfig.connectionInfo')]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x250),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x216),'children':[_0x47d81f('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x5a6eea['t'](_0xa71d99(0x229))}),_0x26b802('div',{'className':_0xa71d99(0x24a),'children':[_0x47d81f('div',{'className':_0xa71d99(0x1d9),'children':_0x5a6eea['t'](_0xa71d99(0x236))}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1b6),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x19b),'children':'1'}),_0x5a6eea['t'](_0xa71d99(0x22b))]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x5a6eea['t']('mcpConfig.configStep2')]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x19b),'children':'3'}),_0x5a6eea['t'](_0xa71d99(0x26c))]})]})]})]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x24a),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xa71d99(0x262)}),_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x28f),'children':_0x47d81f(_0xa71d99(0x182),{'className':_0xa71d99(0x187),'children':JSON[_0xa71d99(0x222)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0xcdd1b8||'<SESSION_ID>'),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x27a2be||_0xa71d99(0x1e8))}}}},null,0x2)})})]}),_0x26b802(_0xa71d99(0x1d2),{'className':'univer-space-y-3','children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1d9),'children':_0x5a6eea['t']('mcpConfig.configParameters')}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x24a),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x18d),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x14c)}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1fd),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x20e),'children':_0xa71d99(0x1a9)}),_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5a6eea['t'](_0xa71d99(0x239))})]})]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x18d),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x14c)}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1fd),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x20e),'children':'Authorization:'}),_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1a2),'children':_0x5a6eea['t'](_0xa71d99(0x241))})]})]})]})]})]})]}),_0x47d81f(_0x146f3d,{'onClick':_0xf39519,'disabled':!_0x5c2208||_0x4cbef5,'className':_0xa71d99(0x295),'children':_0x4cbef5?_0x26b802(_0xa71d99(0x28d),{'className':_0xa71d99(0x208),'children':[_0x47d81f('span',{'children':'⟲'}),_0x5a6eea['t'](_0xa71d99(0x1d1))]}):_0x26b802(_0xa71d99(0x28d),{'className':_0xa71d99(0x208),'children':[_0x47d81f(le,{}),_0x5a6eea['t']('mcpConfig.save')]})}),_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1bb),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x15c),'children':'💡'}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x183),'children':[_0x47d81f('div',{'className':_0xa71d99(0x22e),'children':_0xa71d99(0x16f)}),_0x26b802(_0xa71d99(0x1d2),{'children':['•',_0x5a6eea['t']('mcpConfig.note1')]}),_0x26b802(_0xa71d99(0x1d2),{'children':['•',_0x5a6eea['t'](_0xa71d99(0x18e))]})]})]})})]})})]});}const y=_0x3504c9(0x150),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x3504c9(0x18a)],tn=(_0xc602c1,_0x483573,_0x36ce2a,_0x68a81e)=>{for(var _0x36da5b=_0x68a81e>0x1?void 0x0:_0x68a81e?rn(_0x483573,_0x36ce2a):_0x483573,_0x2fd63d=_0xc602c1['length']-0x1,_0x5b66d0;_0x2fd63d>=0x0;_0x2fd63d--)(_0x5b66d0=_0xc602c1[_0x2fd63d])&&(_0x36da5b=_0x5b66d0(_0x36da5b)||_0x36da5b);return _0x36da5b;},d=(_0x1f83f9,_0x180a52)=>(_0x135573,_0xe12907)=>_0x180a52(_0x135573,_0xe12907,_0x1f83f9);const U=_0x3504c9(0x281),L=_0x3504c9(0x204);let I=class extends _0x422753{constructor(_0x657625,_0x169e26,_0x46fc97,_0x4ff583,_0x1090ae,_0x5265de,_0x380ff1,_0x58ffcf,_0xfbaebb,_0x2708df){const _0x36b526=_0x3504c9;super(),x(this,_0x36b526(0x28e),new _0x8a14c2(!0x1)),x(this,_0x36b526(0x1e7),new _0x8a14c2({})),x(this,_0x36b526(0x1fe),new _0x8a14c2({})),x(this,_0x36b526(0x1d7),new _0x8a14c2('')),x(this,_0x36b526(0x257),async _0x44be91=>{const _0x11cd63=_0x36b526;var _0x38b9f4,_0xd0c211;this['_loading$']['next'](!0x0);try{const _0x1e7fde=await this[_0x11cd63(0x1fb)](_0x44be91);if(!_0x1e7fde[_0x11cd63(0x1c5)]){this[_0x11cd63(0x1f8)]['show']({'type':_0x3dcc20[_0x11cd63(0x217)],'content':_0x1e7fde['errorMessage']||this['_localeService']['t'](_0x11cd63(0x185))});return;}_0x44be91['apiKey']?await this[_0x11cd63(0x170)][_0x11cd63(0x1d0)](U,_0x44be91[_0x11cd63(0x1aa)][_0x11cd63(0x21b)]()):await this[_0x11cd63(0x170)][_0x11cd63(0x243)](U),this[_0x11cd63(0x1d7)]['next'](((_0x38b9f4=_0x44be91['apiKey'])==null?void 0x0:_0x38b9f4['trim']())||''),this[_0x11cd63(0x1a3)][_0x11cd63(0x201)]({'Authorization':_0x11cd63(0x1eb)+((_0xd0c211=_0x44be91['apiKey'])==null?void 0x0:_0xd0c211[_0x11cd63(0x21b)]())}),this['_messageService']['show']({'type':_0x3dcc20[_0x11cd63(0x22a)],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x67f2cf=_0x11cd63;this[_0x67f2cf(0x22f)]['close'](L);},0x320);}catch(_0x387ffc){this[_0x11cd63(0x25e)]['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x387ffc),this[_0x11cd63(0x1f8)][_0x11cd63(0x21c)]({'type':_0x3dcc20[_0x11cd63(0x217)],'content':this[_0x11cd63(0x26e)]['t'](_0x11cd63(0x27d))});}finally{this[_0x11cd63(0x28e)]['next'](!0x1);}}),(this[_0x36b526(0x18b)]=_0x657625,this['_uiPartsService']=_0x169e26,this['_configService']=_0x46fc97,this['_localStorageService']=_0x4ff583,this[_0x36b526(0x22f)]=_0x1090ae,this['_messageService']=_0x5265de,this['_componentManager']=_0x380ff1,this[_0x36b526(0x26e)]=_0x58ffcf,this[_0x36b526(0x25e)]=_0xfbaebb,this[_0x36b526(0x1a3)]=_0x2708df,this[_0x36b526(0x29a)](),this[_0x36b526(0x156)](),this['_registerComponent']());}['showConfigPanel'](){const _0x340b15=_0x3504c9,_0x10a6f0=this['_configService'][_0x340b15(0x1b7)](y);_0x10a6f0!=null&&_0x10a6f0['showDeveloperTools']&&this[_0x340b15(0x22f)][_0x340b15(0x265)]({'id':L,'title':{'title':this[_0x340b15(0x26e)]['t']('mcpConfig.title')},'children':{'label':_0x340b15(0x1ae)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3d8579=_0x340b15;this[_0x3d8579(0x22f)][_0x3d8579(0x19e)](L);}});}[_0x3504c9(0x27c)](){const _0x28423b=_0x3504c9;return this['_mcpCoreConfig$'][_0x28423b(0x1e9)];}[_0x3504c9(0x19c)](){const _0xc257db=_0x3504c9;this[_0xc257db(0x1a4)](this['_componentManager'][_0xc257db(0x1c1)](_0xc257db(0x1ae),this['_createConfigPanelComponent']()));}[_0x3504c9(0x24d)](){const _0x398888=_0x3504c9;return _0x3c7794(()=>{const _0xfd8e17=_0x418a;var _0x3cac0f,_0x24d6fc,_0x524f48;return _0x47d81f(nn,{'config':this[_0xfd8e17(0x1fe)][_0xfd8e17(0x1e9)],'mcpCoreConfig':this[_0xfd8e17(0x1e7)][_0xfd8e17(0x1e9)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0xfd8e17(0x257)],'loading':this['_loading$'][_0xfd8e17(0x1e9)],'connectionStatus$':(_0x3cac0f=this[_0xfd8e17(0x1a3)])==null?void 0x0:_0x3cac0f[_0xfd8e17(0x160)],'connectionError$':(_0x24d6fc=this[_0xfd8e17(0x1a3)])==null?void 0x0:_0x24d6fc['connectionError$'],'currentSessionId$':(_0x524f48=this[_0xfd8e17(0x1a3)])==null?void 0x0:_0x524f48[_0xfd8e17(0x1cd)]});},this[_0x398888(0x18b)]);}[_0x3504c9(0x29a)](){const _0x4b7fe8=_0x3504c9;this[_0x4b7fe8(0x1a4)](this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b1)](_0x2502a4)[_0x4b7fe8(0x1ac)](_0x44ca85=>{const _0x1556dd=_0x4b7fe8;this[_0x1556dd(0x1e7)][_0x1556dd(0x292)](_0x44ca85||{});}));const _0x4f8dae=this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b7)](_0x2502a4);this[_0x4b7fe8(0x1e7)][_0x4b7fe8(0x292)](_0x4f8dae||{}),this[_0x4b7fe8(0x1a4)](this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b1)](y)[_0x4b7fe8(0x1ac)](_0x82d13a=>{const _0x14a591=_0x4b7fe8;this[_0x14a591(0x1fe)][_0x14a591(0x292)](_0x82d13a||{});}));const _0x3be09e=this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b7)](y);this['_config$'][_0x4b7fe8(0x292)](_0x3be09e||{});}async[_0x3504c9(0x156)](){const _0x209d14=_0x3504c9,_0x4e07f=this[_0x209d14(0x207)][_0x209d14(0x1b7)](y);if(!(_0x4e07f!=null&&_0x4e07f[_0x209d14(0x1ad)]))return;const _0x2cd740=await this[_0x209d14(0x170)][_0x209d14(0x168)](U);_0x2cd740&&(this[_0x209d14(0x1a3)][_0x209d14(0x201)]({'Authorization':_0x209d14(0x1eb)+_0x2cd740}),this[_0x209d14(0x1d7)][_0x209d14(0x292)](_0x2cd740));}async[_0x3504c9(0x1fb)](_0x3b772b){const _0x31e4ce=_0x3504c9;if(!_0x3b772b['apiKey']||_0x3b772b[_0x31e4ce(0x1aa)][_0x31e4ce(0x21b)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x31e4ce(0x26e)]['t'](_0x31e4ce(0x27a))};if(_0x3b772b[_0x31e4ce(0x1aa)][_0x31e4ce(0x21b)]()[_0x31e4ce(0x16b)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x31e4ce(0x26e)]['t'](_0x31e4ce(0x178))};try{const _0x2d4260=await this['_injector'][_0x31e4ce(0x275)](_0x2f25e4)['validateApiKey'](_0x3b772b[_0x31e4ce(0x1aa)][_0x31e4ce(0x21b)]());return _0x2d4260[_0x31e4ce(0x1c5)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2d4260[_0x31e4ce(0x188)]||this[_0x31e4ce(0x26e)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0xd68368){return console[_0x31e4ce(0x163)](_0x31e4ce(0x190),_0xd68368),{'isValid':!0x0};}}};I=tn([d(0x0,_0x22aeb1(_0x3b20df)),d(0x1,_0x5e5a73),d(0x2,_0x967953),d(0x3,_0x493214),d(0x4,_0x1c68c5),d(0x5,_0x52f42d),d(0x6,_0x22aeb1(_0x25a9b7)),d(0x7,_0x22aeb1(_0x500816)),d(0x8,_0x1b5827),d(0x9,_0x22aeb1(_0x2f25e4))],I);const V={'id':_0x3504c9(0x27f),'type':_0x498394['COMMAND'],'handler':async(_0x52184e,_0x116fb2)=>(_0x52184e['get'](I)[_0x3504c9(0x233)](),!0x0)};function pe(_0x39c257,_0x2b8dcd){const _0x532eda=_0x3504c9;switch(_0x39c257){case _0x53b579[_0x532eda(0x246)]:return _0x532eda(0x1ca);case _0x53b579[_0x532eda(0x1be)]:return _0x532eda(0x17d);case _0x53b579[_0x532eda(0x26a)]:return'mcpStatus.connected';case _0x53b579[_0x532eda(0x215)]:switch(_0x2b8dcd){case _0x1b6dba['UNAUTHORIZED']:return'mcpStatus.unauthorized';case _0x1b6dba[_0x532eda(0x209)]:return _0x532eda(0x1b8);case _0x1b6dba[_0x532eda(0x1db)]:return _0x532eda(0x1d4);case _0x1b6dba[_0x532eda(0x172)]:return _0x532eda(0x272);default:return _0x532eda(0x278);}case _0x53b579[_0x532eda(0x259)]:return _0x532eda(0x212);default:return _0x532eda(0x1f1);}}function on(_0x228303,_0x382e58,_0x1bd0b6,_0x5c2c00=!0x0){const _0x2d77aa=_0x3504c9,_0x12676e=pe(_0x228303,_0x382e58),_0x525ad1=_0x1bd0b6['t'](_0x12676e);return _0x5c2c00?_0x228303===_0x53b579[_0x2d77aa(0x246)]&&_0x382e58===_0x1b6dba[_0x2d77aa(0x1f5)]?_0x525ad1+'\x20-\x20'+_0x1bd0b6['t']('mcpStatus.clickToConfigure'):_0x228303===_0x53b579[_0x2d77aa(0x26a)]?''+_0x525ad1:_0x228303===_0x53b579[_0x2d77aa(0x246)]||_0x228303===_0x53b579['FAILED']?_0x525ad1+_0x2d77aa(0x1c8)+_0x1bd0b6['t'](_0x2d77aa(0x22d)):_0x525ad1:_0x525ad1;}function sn(_0x436a14){const _0x4f8e81=_0x3504c9;switch(_0x436a14){case _0x53b579[_0x4f8e81(0x26a)]:return _0x4f8e81(0x20c);case _0x53b579['CONNECTING']:case _0x53b579['RETRYING']:return _0x4f8e81(0x296);case _0x53b579['FAILED']:case _0x53b579['DISCONNECTED']:return _0x4f8e81(0x256);default:return _0x4f8e81(0x17c);}}function cn(_0xa271c){const _0x46f79f=_0x3504c9,{status$:_0x500225,error$:_0x286ed9,onConfigure:_0x1b7df9,showClickable:_0x1eae48=!0x0}=_0xa271c,_0x4c98c2=_0x478b78(_0x500225,_0x53b579[_0x46f79f(0x246)]),_0x45361d=_0x478b78(_0x286ed9,_0x1b6dba[_0x46f79f(0x206)]),_0x563b50=_0x256644(_0x500816),_0x2b197d=_0x4c98c2===_0x53b579[_0x46f79f(0x26a)];_0x4c98c2===_0x53b579[_0x46f79f(0x1be)]||_0x53b579['RETRYING'];const _0x40dec3=_0x563b50['t'](pe(_0x4c98c2,_0x45361d)),_0x5af01a=on(_0x4c98c2,_0x45361d,_0x563b50,_0x1eae48),_0x5c3966=sn(_0x4c98c2),_0x1564bb=_0x2b197d?_0x47d81f(ge,{}):_0x47d81f(de,{}),_0x1a62c4=_0x10851e(()=>{_0x1eae48&&_0x1b7df9&&_0x1b7df9();},[_0x1eae48,_0x1b7df9]);function _0xe649de(){const _0x1a121f=_0x46f79f;return _0x26b802('div',{'className':_0x2316bb(_0x1a121f(0x28b),_0x1eae48&&_0x1b7df9&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':'button','onClick':_0x1eae48&&_0x1b7df9?_0x1a62c4:void 0x0,'children':[_0x47d81f('div',{'className':_0x2316bb('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x5c3966),'children':_0x1564bb}),_0x47d81f(_0x1a121f(0x1d2),{'className':_0x1a121f(0x1c2),'children':_0x40dec3})]});}return _0x47d81f(_0x1114ec,{'title':_0x5af01a,'placement':_0x46f79f(0x29b),'children':_0xe649de()});}var an=Object[_0x3504c9(0x18a)],ln=(_0x2c4392,_0x4db0c9,_0x150fe9,_0xc665c2)=>{const _0x1b5813=_0x3504c9;for(var _0x2697fd=_0xc665c2>0x1?void 0x0:_0xc665c2?an(_0x4db0c9,_0x150fe9):_0x4db0c9,_0x2b954b=_0x2c4392[_0x1b5813(0x16b)]-0x1,_0x2a6eee;_0x2b954b>=0x0;_0x2b954b--)(_0x2a6eee=_0x2c4392[_0x2b954b])&&(_0x2697fd=_0x2a6eee(_0x2697fd)||_0x2697fd);return _0x2697fd;},M=(_0x2e466d,_0x1e7be5)=>(_0x871e4,_0x169173)=>_0x1e7be5(_0x871e4,_0x169173,_0x2e466d);let O=class extends _0x422753{constructor(_0x1e647e,_0x12a254,_0x2cdebc,_0x41244e){const _0x461660=_0x3504c9;super(),this[_0x461660(0x18b)]=_0x1e647e,this[_0x461660(0x1dc)]=_0x12a254,this[_0x461660(0x1bf)]=_0x2cdebc,this[_0x461660(0x207)]=_0x41244e,this[_0x461660(0x270)](),this[_0x461660(0x1cc)]();}[_0x3504c9(0x270)](){const _0x438bf7=_0x3504c9,_0x45789d=this[_0x438bf7(0x207)][_0x438bf7(0x1b7)](y);_0x45789d!=null&&_0x45789d['showDeveloperTools']&&(this[_0x438bf7(0x1dc)][_0x438bf7(0x1e1)]=!0x1);}[_0x3504c9(0x1cc)](){const _0x24496a=_0x3504c9,_0x507559=this[_0x24496a(0x207)][_0x24496a(0x1b7)](y);(_0x507559==null?void 0x0:_0x507559[_0x24496a(0x1bc)])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x24496a(0x21a)](_0x4f81ad[_0x24496a(0x298)],()=>{const _0x2cc5c9=_0x24496a;var _0x77a6b8;return _0x3c7794(un({'status$':this[_0x2cc5c9(0x1dc)]['connectionStatus$'],'error$':this[_0x2cc5c9(0x1dc)][_0x2cc5c9(0x24f)],'onConfigure':()=>this[_0x2cc5c9(0x1e4)](),'showClickable':(_0x77a6b8=_0x507559==null?void 0x0:_0x507559[_0x2cc5c9(0x1ad)])!=null?_0x77a6b8:!0x1}),this[_0x2cc5c9(0x18b)]);}));}[_0x3504c9(0x1e4)](){const _0x2a1e20=_0x3504c9;this[_0x2a1e20(0x18b)][_0x2a1e20(0x275)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x22aeb1(_0x3b20df)),M(0x1,_0x22aeb1(_0x2f25e4)),M(0x2,_0x5e5a73),M(0x3,_0x967953)],O);function un(_0x1408a3){const {status$:_0x515444,error$:_0x3cab24,onConfigure:_0x5dc6b1,showClickable:_0x51bdba}=_0x1408a3;return function(){return _0x47d81f(cn,{'status$':_0x515444,'error$':_0x3cab24,'onConfigure':_0x5dc6b1,'showClickable':_0x51bdba});};}function vn(_0x4702fd){const _0x24d80d=_0x3504c9;return{'id':V['id'],'type':_0xd1e96c[_0x24d80d(0x289)],'icon':_0x24d80d(0x17e),'title':_0x24d80d(0x153),'tooltip':_0x24d80d(0x153)};}const dn={[_0x17a6fa[_0x3504c9(0x260)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x3504c9(0x18a)],pn=(_0x292ee6,_0xd306a9,_0x2b02fd,_0x5165b5)=>{const _0x1ad892=_0x3504c9;for(var _0x43840d=_0x5165b5>0x1?void 0x0:_0x5165b5?gn(_0xd306a9,_0x2b02fd):_0xd306a9,_0x3ac4c8=_0x292ee6[_0x1ad892(0x16b)]-0x1,_0x11c381;_0x3ac4c8>=0x0;_0x3ac4c8--)(_0x11c381=_0x292ee6[_0x3ac4c8])&&(_0x43840d=_0x11c381(_0x43840d)||_0x43840d);return _0x43840d;},re=(_0x448f30,_0x577c13)=>(_0x228292,_0x4269ab)=>_0x577c13(_0x228292,_0x4269ab,_0x448f30);let D=class extends _0x422753{constructor(_0x183b51,_0x1e9168){const _0x3a3152=_0x3504c9;super(),this['_commandService']=_0x183b51,this[_0x3a3152(0x1b4)]=_0x1e9168,this[_0x3a3152(0x1e2)](),this['_initializeMenus']();}[_0x3504c9(0x1e2)](){const _0x58217a=_0x3504c9;[V][_0x58217a(0x20d)](_0x5bcae6=>{const _0x3e2b59=_0x58217a;this[_0x3e2b59(0x1a4)](this['_commandService'][_0x3e2b59(0x279)](_0x5bcae6));});}[_0x3504c9(0x171)](){const _0x5f1922=_0x3504c9;this[_0x5f1922(0x1b4)][_0x5f1922(0x1e0)](dn);}};D=pn([re(0x0,_0x4ae9c5),re(0x1,_0x7041bd)],D);const Mn={'mcpStatus':{'disconnected':_0x3504c9(0x1d8),'connecting':_0x3504c9(0x276),'connected':_0x3504c9(0x1f3),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x3504c9(0x179),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3504c9(0x25b),'networkError':_0x3504c9(0x214),'maxRetriesExceeded':_0x3504c9(0x280),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3504c9(0x162)},'mcpConfig':{'title':_0x3504c9(0x262),'description':_0x3504c9(0x247),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3504c9(0x192),'apiKeyHint':_0x3504c9(0x195),'enableAuth':_0x3504c9(0x1cf),'enableAuthHint':_0x3504c9(0x164),'connectionInfo':_0x3504c9(0x1a8),'mcpClientConfig':_0x3504c9(0x1a8),'configInstructions':_0x3504c9(0x173),'configStepTitle':_0x3504c9(0x1f2),'configStep1':_0x3504c9(0x24e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3504c9(0x235),'sessionId':_0x3504c9(0x1b0),'sessionIdDescription':_0x3504c9(0x161),'authorizationDescription':_0x3504c9(0x287),'configParameters':_0x3504c9(0x237),'maxRetries':_0x3504c9(0x15e),'save':'Save\x20Configuration','saving':_0x3504c9(0x25f),'note1':_0x3504c9(0x258),'note2':_0x3504c9(0x1a0),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3504c9(0x194),'apiApplyInfo':{'title':_0x3504c9(0x223),'description':_0x3504c9(0x219),'univerAiLabel':_0x3504c9(0x166),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3504c9(0x165),'apiKeyTooShort':_0x3504c9(0x1f6),'invalidConfig':_0x3504c9(0x210),'invalidApiKey':_0x3504c9(0x198)},'connectionStatus':{'disconnected':_0x3504c9(0x1ab),'connecting':'Connecting...','connected':_0x3504c9(0x1e3),'failed':_0x3504c9(0x176),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3504c9(0x1ba),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3504c9(0x24c),'maxRetriesExceeded':_0x3504c9(0x193)}}},An={'mcpStatus':{'disconnected':_0x3504c9(0x284),'connecting':_0x3504c9(0x29d),'connected':'MCP\x20已连接','failed':_0x3504c9(0x159),'retrying':_0x3504c9(0x17a),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3504c9(0x1b2),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x3504c9(0x1bd),'clickToConnect':_0x3504c9(0x220),'clickToConfigure':_0x3504c9(0x269)},'mcpConfig':{'title':_0x3504c9(0x181),'description':_0x3504c9(0x186),'apiKey':_0x3504c9(0x294),'apiKeyPlaceholder':_0x3504c9(0x264),'apiKeyHint':_0x3504c9(0x1c9),'enableAuth':_0x3504c9(0x205),'enableAuthHint':_0x3504c9(0x15d),'connectionInfo':_0x3504c9(0x167),'mcpClientConfig':_0x3504c9(0x167),'configInstructions':_0x3504c9(0x25c),'configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x3504c9(0x27e),'configStep3':_0x3504c9(0x254),'sessionId':_0x3504c9(0x266),'sessionIdDescription':_0x3504c9(0x252),'authorizationDescription':_0x3504c9(0x1a5),'configParameters':_0x3504c9(0x1c0),'maxRetries':_0x3504c9(0x230),'save':_0x3504c9(0x244),'saving':_0x3504c9(0x1c7),'note1':'配置更改将立即生效','note2':_0x3504c9(0x14d),'configSaved':'配置保存成功','configError':_0x3504c9(0x221),'apiApplyInfo':{'title':_0x3504c9(0x197),'description':_0x3504c9(0x1b5),'univerAiLabel':_0x3504c9(0x19a),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x3504c9(0x25d),'invalidConfig':_0x3504c9(0x291),'invalidApiKey':_0x3504c9(0x17b)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':'已连接','failed':_0x3504c9(0x16e),'retrying':_0x3504c9(0x21f)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x3504c9(0x226),'networkError':_0x3504c9(0x227),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x3504c9(0x299)],hn=Object[_0x3504c9(0x18a)],Cn=(_0x9850fd,_0x1aeaf1,_0x17b81a)=>_0x1aeaf1 in _0x9850fd?fn(_0x9850fd,_0x1aeaf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17b81a}):_0x9850fd[_0x1aeaf1]=_0x17b81a,mn=(_0x211164,_0x24190e,_0x5c2dcf,_0x5639e2)=>{for(var _0x23b883=_0x5639e2>0x1?void 0x0:_0x5639e2?hn(_0x24190e,_0x5c2dcf):_0x24190e,_0x3c225b=_0x211164['length']-0x1,_0x1fddec;_0x3c225b>=0x0;_0x3c225b--)(_0x1fddec=_0x211164[_0x3c225b])&&(_0x23b883=_0x1fddec(_0x23b883)||_0x23b883);return _0x23b883;},P=(_0x9431f7,_0x44b475)=>(_0x34bbfb,_0x10edc1)=>_0x44b475(_0x34bbfb,_0x10edc1,_0x9431f7),_n=(_0xa7cb3d,_0x58e618,_0x26b387)=>Cn(_0xa7cb3d,_0x58e618+'',_0x26b387);let j=class extends _0xe522b5{constructor(_0x22354c=ie,_0x3c7375,_0x2945a6,_0xdc303b,_0x28f16f,_0x13020c){const _0x5c6f0f=_0x3504c9;super(),this['_config']=_0x22354c,this[_0x5c6f0f(0x18b)]=_0x3c7375,this['_configService']=_0x2945a6,this[_0x5c6f0f(0x1bf)]=_0xdc303b,this['_localStorageService']=_0x28f16f,this[_0x5c6f0f(0x26e)]=_0x13020c;const {..._0x237015}=_0x52c909({},ie,this[_0x5c6f0f(0x15f)]);this[_0x5c6f0f(0x207)]['setConfig'](y,_0x237015);}async[_0x3504c9(0x1af)](){const _0x5597f5=_0x3504c9,_0x1a30ea=[[O],[I],[D]];this['_injector'][_0x5597f5(0x1d6)](_0x274cf1)||_0x1a30ea[_0x5597f5(0x23f)]([_0x274cf1,{'useClass':_0x180b24}]),_0x1a30ea[_0x5597f5(0x20d)](_0x4c67cd=>this[_0x5597f5(0x18b)][_0x5597f5(0x1ea)](_0x4c67cd)),this[_0x5597f5(0x18b)]['get'](O),this[_0x5597f5(0x18b)][_0x5597f5(0x275)](I),this[_0x5597f5(0x18b)][_0x5597f5(0x275)](D);}};_n(j,'pluginName','MCP_UI_PLUGIN'),j=mn([_0x3893d1(_0x1a183c),P(0x1,_0x22aeb1(_0x3b20df)),P(0x2,_0x967953),P(0x3,_0x5e5a73),P(0x4,_0x493214),P(0x5,_0x22aeb1(_0x500816))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- const _0x346677=_0x251e;(function(_0x5bf380,_0x30eb50){const _0x24944b=_0x251e,_0x454090=_0x5bf380();while(!![]){try{const _0x26cfd7=-parseInt(_0x24944b(0x72))/0x1*(-parseInt(_0x24944b(0x90))/0x2)+-parseInt(_0x24944b(0x9e))/0x3*(parseInt(_0x24944b(0x85))/0x4)+parseInt(_0x24944b(0x7e))/0x5+parseInt(_0x24944b(0x86))/0x6*(parseInt(_0x24944b(0x7a))/0x7)+-parseInt(_0x24944b(0x9a))/0x8*(-parseInt(_0x24944b(0x9b))/0x9)+parseInt(_0x24944b(0x89))/0xa+-parseInt(_0x24944b(0x6f))/0xb*(parseInt(_0x24944b(0x8b))/0xc);if(_0x26cfd7===_0x30eb50)break;else _0x454090['push'](_0x454090['shift']());}catch(_0x4875b4){_0x454090['push'](_0x454090['shift']());}}}(_0x1dfb,0x379eb));const e={'mcpStatus':{'disconnected':_0x346677(0x88),'connecting':_0x346677(0x78),'connected':_0x346677(0x70),'failed':_0x346677(0x80),'retrying':_0x346677(0x9d),'unknown':_0x346677(0xa1),'unauthorized':_0x346677(0x8f),'sessionOccupied':_0x346677(0xa3),'networkError':_0x346677(0x93),'maxRetriesExceeded':_0x346677(0x76),'clickToConnect':_0x346677(0x8d),'clickToConfigure':_0x346677(0x8a)},'mcpConfig':{'title':_0x346677(0x98),'description':_0x346677(0x97),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x346677(0xa2),'apiKeyHint':_0x346677(0x99),'enableAuth':_0x346677(0x7b),'enableAuthHint':_0x346677(0xa5),'connectionInfo':_0x346677(0x7c),'mcpClientConfig':_0x346677(0x7c),'configInstructions':_0x346677(0x83),'configStepTitle':_0x346677(0x73),'configStep1':_0x346677(0x79),'configStep2':_0x346677(0x7d),'configStep3':_0x346677(0x95),'sessionId':_0x346677(0x96),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x346677(0x8c),'note1':_0x346677(0x94),'note2':_0x346677(0x8e),'configSaved':_0x346677(0xa0),'configError':_0x346677(0x9c),'apiApplyInfo':{'title':_0x346677(0x9f),'description':_0x346677(0x74),'univerAiLabel':_0x346677(0x6d),'getStarted':_0x346677(0x87)},'validation':{'apiKeyRequired':_0x346677(0x7f),'apiKeyTooShort':_0x346677(0x92),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x346677(0x82)},'connectionStatus':{'disconnected':_0x346677(0x71),'connecting':_0x346677(0x84),'connected':_0x346677(0x77),'failed':_0x346677(0x75),'retrying':_0x346677(0x6e)},'connectionError':{'unauthorized':_0x346677(0x91),'sessionOccupied':_0x346677(0x81),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x346677(0xa4)}}},n=e;function _0x251e(_0xbf1821,_0x335a58){const _0x1dfbaf=_0x1dfb();return _0x251e=function(_0x251e3b,_0x10323d){_0x251e3b=_0x251e3b-0x6d;let _0x4075a6=_0x1dfbaf[_0x251e3b];return _0x4075a6;},_0x251e(_0xbf1821,_0x335a58);}function _0x1dfb(){const _0x2918f6=['Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','Retrying...','9949786LhkaAX','MCP\x20Connected','Disconnected','91426tYeuoq','Configuration\x20Steps:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','MCP:\x20Max\x20Retries\x20Exceeded','Connected','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','63EfFEnB','Enable\x20Authentication','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1620085AHsxPd','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connecting...','133108afNJRq','174054cOuYCK','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','2583910XBaIiq','Click\x20to\x20configure\x20MCP','12OqswVH','Saving...','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','8wiUHct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','8UsecGk','3201777VsmHfG','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','39CzzJnL','What\x20is\x20API\x20Key?','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x1dfb=function(){return _0x2918f6;};return _0x1dfb();}export{n as default};
1
+ const _0x335925=_0x1161;function _0x1161(_0x41e74f,_0x29f0a9){const _0x13a14e=_0x13a1();return _0x1161=function(_0x1161ce,_0x58a12b){_0x1161ce=_0x1161ce-0x10c;let _0x4c467f=_0x13a14e[_0x1161ce];return _0x4c467f;},_0x1161(_0x41e74f,_0x29f0a9);}(function(_0x1aefdb,_0x2c39b4){const _0xba1b5e=_0x1161,_0x537dd9=_0x1aefdb();while(!![]){try{const _0x5451cd=-parseInt(_0xba1b5e(0x13b))/0x1+-parseInt(_0xba1b5e(0x11c))/0x2*(-parseInt(_0xba1b5e(0x127))/0x3)+parseInt(_0xba1b5e(0x114))/0x4*(-parseInt(_0xba1b5e(0x134))/0x5)+-parseInt(_0xba1b5e(0x140))/0x6+-parseInt(_0xba1b5e(0x117))/0x7+-parseInt(_0xba1b5e(0x133))/0x8+parseInt(_0xba1b5e(0x12e))/0x9;if(_0x5451cd===_0x2c39b4)break;else _0x537dd9['push'](_0x537dd9['shift']());}catch(_0x57d4c7){_0x537dd9['push'](_0x537dd9['shift']());}}}(_0x13a1,0x7d1ef));function _0x13a1(){const _0x5549f4=['MCP:\x20Unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','API\x20key\x20is\x20required','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','29816FUbFjs','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','1360345XoXqsg','Enable\x20Authentication','Connected','Session\x20ID','Configuration\x20Steps:','115474MebFZF','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','45jwiVcO','Connection\x20Failed','MCP\x20Unknown\x20Status','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Invalid\x20configuration','11844468TamxLB','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','6165728xKePdx','50YIMMEd','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','Configuration\x20saved\x20successfully','Connecting...','What\x20is\x20API\x20Key?','480641iloinX','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','896280HqPgzt','MCP\x20Retrying...','MCP\x20Connection\x20Failed','MCP\x20Configuration'];_0x13a1=function(){return _0x5549f4;};return _0x13a1();}const e={'mcpStatus':{'disconnected':_0x335925(0x13f),'connecting':_0x335925(0x130),'connected':_0x335925(0x12c),'failed':_0x335925(0x142),'retrying':_0x335925(0x141),'unknown':_0x335925(0x129),'unauthorized':_0x335925(0x10d),'sessionOccupied':_0x335925(0x12a),'networkError':_0x335925(0x116),'maxRetriesExceeded':_0x335925(0x112),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x335925(0x12f)},'mcpConfig':{'title':_0x335925(0x10c),'description':_0x335925(0x113),'apiKey':_0x335925(0x13d),'apiKeyPlaceholder':_0x335925(0x137),'apiKeyHint':_0x335925(0x122),'enableAuth':_0x335925(0x118),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x335925(0x125),'mcpClientConfig':_0x335925(0x125),'configInstructions':_0x335925(0x13e),'configStepTitle':_0x335925(0x11b),'configStep1':_0x335925(0x10e),'configStep2':_0x335925(0x131),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x335925(0x11a),'sessionIdDescription':_0x335925(0x123),'authorizationDescription':_0x335925(0x12b),'configParameters':_0x335925(0x124),'maxRetries':_0x335925(0x121),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x335925(0x111),'note2':_0x335925(0x135),'configSaved':_0x335925(0x138),'configError':_0x335925(0x126),'apiApplyInfo':{'title':_0x335925(0x13a),'description':_0x335925(0x11f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x335925(0x13c)},'validation':{'apiKeyRequired':_0x335925(0x110),'apiKeyTooShort':_0x335925(0x11d),'invalidConfig':_0x335925(0x12d),'invalidApiKey':_0x335925(0x136)},'connectionStatus':{'disconnected':_0x335925(0x10f),'connecting':_0x335925(0x139),'connected':_0x335925(0x119),'failed':_0x335925(0x128),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x335925(0x120),'sessionOccupied':_0x335925(0x11e),'networkError':_0x335925(0x115),'maxRetriesExceeded':_0x335925(0x132)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- function _0x4a48(_0x1ea6e0,_0x2979c2){const _0x1cd8f8=_0x1cd8();return _0x4a48=function(_0x4a4846,_0x4a95c8){_0x4a4846=_0x4a4846-0x1c2;let _0x551f19=_0x1cd8f8[_0x4a4846];return _0x551f19;},_0x4a48(_0x1ea6e0,_0x2979c2);}const _0x248146=_0x4a48;(function(_0x50aa34,_0x1e919c){const _0x2ba868=_0x4a48,_0x500507=_0x50aa34();while(!![]){try{const _0x4a606b=parseInt(_0x2ba868(0x1d3))/0x1*(parseInt(_0x2ba868(0x1e9))/0x2)+parseInt(_0x2ba868(0x1f2))/0x3*(parseInt(_0x2ba868(0x1e8))/0x4)+-parseInt(_0x2ba868(0x1f6))/0x5+parseInt(_0x2ba868(0x1db))/0x6+-parseInt(_0x2ba868(0x1d4))/0x7*(parseInt(_0x2ba868(0x1e4))/0x8)+parseInt(_0x2ba868(0x1c5))/0x9+-parseInt(_0x2ba868(0x1ef))/0xa*(parseInt(_0x2ba868(0x1ca))/0xb);if(_0x4a606b===_0x1e919c)break;else _0x500507['push'](_0x500507['shift']());}catch(_0x4ff686){_0x500507['push'](_0x500507['shift']());}}}(_0x1cd8,0x69536));function _0x1cd8(){const _0x422d63=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','1334184nlZjFz','Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','8UsaqCR','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Saving...','24GsiBhU','566QrepIX','Enter\x20your\x20API\x20key','MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','7653560NxAbts','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','410871sksGaJ','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20connect\x20MCP','1495045IBUcku','Configuration\x20Parameters:','Connection\x20Failed','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','5522706cLTswN','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','Retrying...','MCP\x20Connection\x20Failed','11viCSxm','Click\x20to\x20configure\x20MCP','Enable\x20Authentication','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','214iLvpyD','1557661wqxbZV','Configuration\x20Steps:','Save\x20Configuration','Invalid\x20configuration','API\x20key\x20is\x20required'];_0x1cd8=function(){return _0x422d63;};return _0x1cd8();}const e={'mcpStatus':{'disconnected':_0x248146(0x1ed),'connecting':'MCP\x20Connecting...','connected':_0x248146(0x1cd),'failed':_0x248146(0x1c9),'retrying':_0x248146(0x1df),'unknown':_0x248146(0x1de),'unauthorized':_0x248146(0x1c6),'sessionOccupied':_0x248146(0x1f4),'networkError':_0x248146(0x1f3),'maxRetriesExceeded':_0x248146(0x1e0),'clickToConnect':_0x248146(0x1f5),'clickToConfigure':_0x248146(0x1cb)},'mcpConfig':{'title':_0x248146(0x1eb),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x248146(0x1cf),'apiKeyPlaceholder':_0x248146(0x1ea),'apiKeyHint':_0x248146(0x1d0),'enableAuth':_0x248146(0x1cc),'enableAuthHint':_0x248146(0x1ec),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x248146(0x1e3),'configStepTitle':_0x248146(0x1d5),'configStep1':_0x248146(0x1c4),'configStep2':_0x248146(0x1ce),'configStep3':_0x248146(0x1dd),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x248146(0x1d1),'configParameters':_0x248146(0x1f7),'maxRetries':'Max\x20Retries','save':_0x248146(0x1d6),'saving':_0x248146(0x1e7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x248146(0x1d2),'configSaved':_0x248146(0x1c7),'configError':_0x248146(0x1e1),'apiApplyInfo':{'title':_0x248146(0x1e2),'description':_0x248146(0x1ee),'univerAiLabel':_0x248146(0x1f1),'getStarted':_0x248146(0x1da)},'validation':{'apiKeyRequired':_0x248146(0x1d8),'apiKeyTooShort':_0x248146(0x1e5),'invalidConfig':_0x248146(0x1d7),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x248146(0x1dc),'connecting':_0x248146(0x1c3),'connected':'Connected','failed':_0x248146(0x1c2),'retrying':_0x248146(0x1c8)},'connectionError':{'unauthorized':_0x248146(0x1d9),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x248146(0x1f0),'maxRetriesExceeded':_0x248146(0x1e6)}}};export{e as default};
1
+ const _0x5a0295=_0x32f1;(function(_0x253658,_0x22571e){const _0x27ca4f=_0x32f1,_0xfb24bb=_0x253658();while(!![]){try{const _0x57020a=parseInt(_0x27ca4f(0x1e4))/0x1+-parseInt(_0x27ca4f(0x1f8))/0x2+parseInt(_0x27ca4f(0x1dd))/0x3*(-parseInt(_0x27ca4f(0x1e0))/0x4)+parseInt(_0x27ca4f(0x1df))/0x5+-parseInt(_0x27ca4f(0x1db))/0x6*(-parseInt(_0x27ca4f(0x1f4))/0x7)+-parseInt(_0x27ca4f(0x1cf))/0x8*(parseInt(_0x27ca4f(0x1ce))/0x9)+parseInt(_0x27ca4f(0x1ef))/0xa;if(_0x57020a===_0x22571e)break;else _0xfb24bb['push'](_0xfb24bb['shift']());}catch(_0x402251){_0xfb24bb['push'](_0xfb24bb['shift']());}}}(_0x1300,0xb9589));const e={'mcpStatus':{'disconnected':_0x5a0295(0x1d7),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x5a0295(0x1cc),'retrying':_0x5a0295(0x1e1),'unknown':_0x5a0295(0x1d5),'unauthorized':_0x5a0295(0x1d4),'sessionOccupied':_0x5a0295(0x1fa),'networkError':_0x5a0295(0x1e6),'maxRetriesExceeded':_0x5a0295(0x1d6),'clickToConnect':_0x5a0295(0x1e7),'clickToConfigure':_0x5a0295(0x1fe)},'mcpConfig':{'title':_0x5a0295(0x1cd),'description':_0x5a0295(0x1e5),'apiKey':_0x5a0295(0x1d0),'apiKeyPlaceholder':_0x5a0295(0x1e2),'apiKeyHint':_0x5a0295(0x1f1),'enableAuth':_0x5a0295(0x1ff),'enableAuthHint':_0x5a0295(0x1e3),'connectionInfo':_0x5a0295(0x1fc),'mcpClientConfig':_0x5a0295(0x1fc),'configInstructions':_0x5a0295(0x1eb),'configStepTitle':_0x5a0295(0x1e8),'configStep1':_0x5a0295(0x1d2),'configStep2':_0x5a0295(0x1fb),'configStep3':_0x5a0295(0x1f9),'sessionId':_0x5a0295(0x1d8),'sessionIdDescription':_0x5a0295(0x1f6),'authorizationDescription':_0x5a0295(0x1f3),'configParameters':_0x5a0295(0x1f0),'maxRetries':_0x5a0295(0x1ca),'save':_0x5a0295(0x1cb),'saving':_0x5a0295(0x1ec),'note1':_0x5a0295(0x1dc),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5a0295(0x1ed),'configError':_0x5a0295(0x1d3),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5a0295(0x1ee),'univerAiLabel':_0x5a0295(0x1d9),'getStarted':_0x5a0295(0x1f5)},'validation':{'apiKeyRequired':_0x5a0295(0x1da),'apiKeyTooShort':_0x5a0295(0x1ea),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5a0295(0x1f2)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5a0295(0x1de),'connected':'Connected','failed':_0x5a0295(0x1fd),'retrying':_0x5a0295(0x1e9)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5a0295(0x1d1),'maxRetriesExceeded':_0x5a0295(0x1f7)}}};export{e as default};function _0x32f1(_0x11392d,_0x3fb39f){const _0x130075=_0x1300();return _0x32f1=function(_0x32f1d1,_0xea3660){_0x32f1d1=_0x32f1d1-0x1ca;let _0x3e0fab=_0x130075[_0x32f1d1];return _0x3e0fab;},_0x32f1(_0x11392d,_0x3fb39f);}function _0x1300(){const _0x525037=['Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2102596mHWYOW','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','Connection\x20Failed','Click\x20to\x20configure\x20MCP','Enable\x20Authentication','Max\x20Retries','Save\x20Configuration','MCP\x20Connection\x20Failed','MCP\x20Configuration','4425012yJlqXA','24akLOYw','API\x20Key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','MCP:\x20Unauthorized','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','Session\x20ID','Univer\x20AI\x20Console','API\x20key\x20is\x20required','6rpiQvP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','627BVbWsg','Connecting...','4861660EQyhnB','18820ijEhjS','MCP\x20Retrying...','Enter\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','1324828xCdUMA','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','Configuration\x20saved\x20successfully','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','8197220KDxreh','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','8063594uhVsMW'];_0x1300=function(){return _0x525037;};return _0x1300();}