@univerjs-pro/mcp-ui 0.10.10 → 0.10.11-nightly.202510220308

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 +10 -10
@@ -1 +1 @@
1
- 'use strict';function _0x2e30(_0xb96fa7,_0x54b878){const _0x226bbe=_0x226b();return _0x2e30=function(_0x2e3058,_0x4941a0){_0x2e3058=_0x2e3058-0x16d;let _0x291b47=_0x226bbe[_0x2e3058];return _0x291b47;},_0x2e30(_0xb96fa7,_0x54b878);}const _0x47d8aa=_0x2e30;function _0x226b(){const _0x47cd68=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Univer\x20AI\x20Console','Retrying...','MCP:\x20Session\x20ID\x20Occupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Saving...','Connected','294312SAqXDK','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3295143xzpSXp','Disconnected','4333092NbXpjL','MCP\x20Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','9kQcLMd','4qVtVxM','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','Connection\x20Failed','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Connecting...','Enter\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Network\x20Error','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Session\x20ID','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20authentication\x20for\x20secure\x20connections','2338055YvFJsG','MCP\x20Retrying...','MCP\x20Configuration','64522ITgBmK','7EPbULL','Configuration\x20saved\x20successfully','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','7059730wIFnZs','exports','MCP\x20Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','519928XHWmys','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Steps:','Configuration\x20Parameters:','Invalid\x20configuration'];_0x226b=function(){return _0x47cd68;};return _0x226b();}(function(_0x5e507c,_0xb28f2f){const _0x528826=_0x2e30,_0x53e039=_0x5e507c();while(!![]){try{const _0x32ed47=-parseInt(_0x528826(0x17f))/0x1*(-parseInt(_0x528826(0x198))/0x2)+-parseInt(_0x528826(0x176))/0x3+parseInt(_0x528826(0x180))/0x4*(parseInt(_0x528826(0x195))/0x5)+parseInt(_0x528826(0x17c))/0x6+-parseInt(_0x528826(0x199))/0x7*(-parseInt(_0x528826(0x1a1))/0x8)+-parseInt(_0x528826(0x17a))/0x9+-parseInt(_0x528826(0x19c))/0xa;if(_0x32ed47===_0xb28f2f)break;else _0x53e039['push'](_0x53e039['shift']());}catch(_0x4e9f26){_0x53e039['push'](_0x53e039['shift']());}}}(_0x226b,0x5b891));const e={'mcpStatus':{'disconnected':_0x47d8aa(0x1a0),'connecting':_0x47d8aa(0x19e),'connected':_0x47d8aa(0x17d),'failed':'MCP\x20Connection\x20Failed','retrying':_0x47d8aa(0x196),'unknown':_0x47d8aa(0x184),'unauthorized':_0x47d8aa(0x181),'sessionOccupied':_0x47d8aa(0x172),'networkError':_0x47d8aa(0x18c),'maxRetriesExceeded':_0x47d8aa(0x189),'clickToConnect':_0x47d8aa(0x188),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x47d8aa(0x197),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x47d8aa(0x18a),'apiKeyPlaceholder':_0x47d8aa(0x187),'apiKeyHint':_0x47d8aa(0x17e),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x47d8aa(0x194),'connectionInfo':_0x47d8aa(0x185),'mcpClientConfig':_0x47d8aa(0x185),'configInstructions':_0x47d8aa(0x18b),'configStepTitle':_0x47d8aa(0x1a4),'configStep1':_0x47d8aa(0x1a3),'configStep2':_0x47d8aa(0x177),'configStep3':_0x47d8aa(0x16f),'sessionId':_0x47d8aa(0x192),'sessionIdDescription':_0x47d8aa(0x18e),'authorizationDescription':_0x47d8aa(0x19f),'configParameters':_0x47d8aa(0x16d),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x47d8aa(0x174),'note1':_0x47d8aa(0x178),'note2':_0x47d8aa(0x193),'configSaved':_0x47d8aa(0x19a),'configError':_0x47d8aa(0x190),'apiApplyInfo':{'title':_0x47d8aa(0x1a2),'description':_0x47d8aa(0x18d),'univerAiLabel':_0x47d8aa(0x170),'getStarted':_0x47d8aa(0x182)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x47d8aa(0x179),'invalidConfig':_0x47d8aa(0x16e),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x47d8aa(0x17b),'connecting':_0x47d8aa(0x186),'connected':_0x47d8aa(0x175),'failed':_0x47d8aa(0x183),'retrying':_0x47d8aa(0x171)},'connectionError':{'unauthorized':_0x47d8aa(0x19b),'sessionOccupied':_0x47d8aa(0x191),'networkError':_0x47d8aa(0x18f),'maxRetriesExceeded':_0x47d8aa(0x173)}}},n=e;module[_0x47d8aa(0x19d)]=n;
1
+ 'use strict';const _0x5bf8d0=_0x132e;(function(_0xb6b7de,_0x24f4fd){const _0x126408=_0x132e,_0x4c1c3d=_0xb6b7de();while(!![]){try{const _0x3bd9ba=parseInt(_0x126408(0x1a7))/0x1+-parseInt(_0x126408(0x1ae))/0x2*(parseInt(_0x126408(0x196))/0x3)+-parseInt(_0x126408(0x19e))/0x4+parseInt(_0x126408(0x1a1))/0x5*(parseInt(_0x126408(0x190))/0x6)+parseInt(_0x126408(0x197))/0x7*(-parseInt(_0x126408(0x18d))/0x8)+-parseInt(_0x126408(0x1a8))/0x9+parseInt(_0x126408(0x1b0))/0xa;if(_0x3bd9ba===_0x24f4fd)break;else _0x4c1c3d['push'](_0x4c1c3d['shift']());}catch(_0x331b58){_0x4c1c3d['push'](_0x4c1c3d['shift']());}}}(_0x3e30,0x95c40));function _0x132e(_0x3da10d,_0x9a7318){const _0x3e30fb=_0x3e30();return _0x132e=function(_0x132e9e,_0x2b0dbc){_0x132e9e=_0x132e9e-0x18b;let _0x5e4dc3=_0x3e30fb[_0x132e9e];return _0x5e4dc3;},_0x132e(_0x3da10d,_0x9a7318);}function _0x3e30(){const _0x10ad7f=['Disconnected','MCP\x20Client\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','Failed\x20to\x20save\x20configuration','882104fcoiTb','6874839dcZaku','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key','Enter\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Session\x20ID\x20Occupied','64AnQsAF','Retrying...','7725830XCJvxc','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connection\x20Failed','MCP:\x20Max\x20Retries\x20Exceeded','Saving...','Click\x20to\x20connect\x20MCP','Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Unknown\x20Status','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','9488XSmpoF','Click\x20to\x20configure\x20MCP','Invalid\x20configuration','504GYtdvq','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','exports','Session\x20ID','Save\x20Configuration','Enable\x20Authentication','13089JxrNlF','742NfxvCz','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','3575840qyymfr','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\x20saved\x20successfully','52495EHVdqb'];_0x3e30=function(){return _0x10ad7f;};return _0x3e30();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5bf8d0(0x1b2),'connected':'MCP\x20Connected','failed':_0x5bf8d0(0x1b8),'retrying':_0x5bf8d0(0x1b4),'unknown':_0x5bf8d0(0x18b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5bf8d0(0x1ad),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5bf8d0(0x1b9),'clickToConnect':_0x5bf8d0(0x1bb),'clickToConfigure':_0x5bf8d0(0x18e)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5bf8d0(0x1aa),'apiKeyPlaceholder':_0x5bf8d0(0x1ab),'apiKeyHint':_0x5bf8d0(0x1b7),'enableAuth':_0x5bf8d0(0x195),'enableAuthHint':_0x5bf8d0(0x1b3),'connectionInfo':_0x5bf8d0(0x1a3),'mcpClientConfig':_0x5bf8d0(0x1a3),'configInstructions':_0x5bf8d0(0x1ac),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5bf8d0(0x19d),'configStep3':_0x5bf8d0(0x19c),'sessionId':_0x5bf8d0(0x193),'sessionIdDescription':_0x5bf8d0(0x18c),'authorizationDescription':_0x5bf8d0(0x1b6),'configParameters':_0x5bf8d0(0x198),'maxRetries':_0x5bf8d0(0x1a5),'save':_0x5bf8d0(0x194),'saving':_0x5bf8d0(0x1ba),'note1':_0x5bf8d0(0x1b1),'note2':_0x5bf8d0(0x1a9),'configSaved':_0x5bf8d0(0x1a0),'configError':_0x5bf8d0(0x1a6),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5bf8d0(0x19f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5bf8d0(0x1bd)},'validation':{'apiKeyRequired':_0x5bf8d0(0x19b),'apiKeyTooShort':_0x5bf8d0(0x199),'invalidConfig':_0x5bf8d0(0x18f),'invalidApiKey':_0x5bf8d0(0x191)},'connectionStatus':{'disconnected':_0x5bf8d0(0x1a2),'connecting':_0x5bf8d0(0x1bc),'connected':_0x5bf8d0(0x19a),'failed':'Connection\x20Failed','retrying':_0x5bf8d0(0x1af)},'connectionError':{'unauthorized':_0x5bf8d0(0x1b5),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5bf8d0(0x1a4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x5bf8d0(0x192)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x6457eb=_0x2442;(function(_0x298379,_0x19b08f){const _0x55fcd6=_0x2442,_0x480cae=_0x298379();while(!![]){try{const _0x3a6185=parseInt(_0x55fcd6(0xfd))/0x1*(parseInt(_0x55fcd6(0x107))/0x2)+parseInt(_0x55fcd6(0x110))/0x3*(parseInt(_0x55fcd6(0xde))/0x4)+-parseInt(_0x55fcd6(0x10b))/0x5*(parseInt(_0x55fcd6(0xf7))/0x6)+parseInt(_0x55fcd6(0xfb))/0x7*(-parseInt(_0x55fcd6(0x10f))/0x8)+-parseInt(_0x55fcd6(0x104))/0x9+-parseInt(_0x55fcd6(0xf5))/0xa*(-parseInt(_0x55fcd6(0xdb))/0xb)+parseInt(_0x55fcd6(0x103))/0xc*(-parseInt(_0x55fcd6(0x102))/0xd);if(_0x3a6185===_0x19b08f)break;else _0x480cae['push'](_0x480cae['shift']());}catch(_0x58c386){_0x480cae['push'](_0x480cae['shift']());}}}(_0x41bd,0x39f2d));function _0x41bd(){const _0x5e9d4d=['4CzlDGR','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Network\x20Error','Save\x20Configuration','Disconnected','MCP\x20Disconnected','MCP\x20Configuration','MCP\x20Connecting...','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2490qLJRIu','Saving...','67572SXONLo','MCP\x20Connection\x20Failed','Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','28FPqVBx','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1ngqRpJ','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','What\x20is\x20API\x20Key?','10777hXccGZ','444Whfwrs','1897497WTGXrn','Get\x20your\x20API\x20key\x20in\x20seconds','Session\x20ID','850978eFdSPH','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','110vaoajw','MCP:\x20Max\x20Retries\x20Exceeded','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','192008yfUfbb','697659TqEPzc','Invalid\x20configuration','7271yQexFn','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP'];_0x41bd=function(){return _0x5e9d4d;};return _0x41bd();}const e={'mcpStatus':{'disconnected':_0x6457eb(0xe5),'connecting':_0x6457eb(0xe7),'connected':_0x6457eb(0xdf),'failed':_0x6457eb(0xf8),'retrying':_0x6457eb(0x108),'unknown':_0x6457eb(0xf3),'unauthorized':_0x6457eb(0xf0),'sessionOccupied':_0x6457eb(0xec),'networkError':_0x6457eb(0xe2),'maxRetriesExceeded':_0x6457eb(0x10c),'clickToConnect':_0x6457eb(0xf1),'clickToConfigure':_0x6457eb(0xdd)},'mcpConfig':{'title':_0x6457eb(0xe6),'description':_0x6457eb(0xfc),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x6457eb(0xf2),'apiKeyHint':_0x6457eb(0xeb),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x6457eb(0xed),'mcpClientConfig':_0x6457eb(0xed),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x6457eb(0xe1),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x6457eb(0xea),'sessionId':_0x6457eb(0x106),'sessionIdDescription':_0x6457eb(0xfe),'authorizationDescription':_0x6457eb(0x10e),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x6457eb(0x10d),'save':_0x6457eb(0xe3),'saving':_0x6457eb(0xf6),'note1':_0x6457eb(0xf4),'note2':_0x6457eb(0x109),'configSaved':_0x6457eb(0xe8),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x6457eb(0x101),'description':_0x6457eb(0xdc),'univerAiLabel':_0x6457eb(0xe9),'getStarted':_0x6457eb(0x105)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x6457eb(0xff),'invalidConfig':_0x6457eb(0xda),'invalidApiKey':_0x6457eb(0xe0)},'connectionStatus':{'disconnected':_0x6457eb(0xe4),'connecting':_0x6457eb(0xef),'connected':_0x6457eb(0x100),'failed':_0x6457eb(0xf9),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x6457eb(0xfa),'networkError':_0x6457eb(0x10a),'maxRetriesExceeded':_0x6457eb(0xee)}}},n=e;function _0x2442(_0x55ad3e,_0x4d0809){const _0x41bdc7=_0x41bd();return _0x2442=function(_0x2442bc,_0x5d47cf){_0x2442bc=_0x2442bc-0xda;let _0x44116f=_0x41bdc7[_0x2442bc];return _0x44116f;},_0x2442(_0x55ad3e,_0x4d0809);}module['exports']=n;
1
+ 'use strict';function _0x523d(_0x3cb1d2,_0x40b3ab){const _0x1126a7=_0x1126();return _0x523d=function(_0x523d96,_0x39d8df){_0x523d96=_0x523d96-0xa2;let _0x142066=_0x1126a7[_0x523d96];return _0x142066;},_0x523d(_0x3cb1d2,_0x40b3ab);}const _0x4a6cda=_0x523d;(function(_0x162844,_0x1e2d9b){const _0xeaa99c=_0x523d,_0x589c0e=_0x162844();while(!![]){try{const _0x3ff212=-parseInt(_0xeaa99c(0xd4))/0x1+parseInt(_0xeaa99c(0xbc))/0x2*(-parseInt(_0xeaa99c(0xb1))/0x3)+parseInt(_0xeaa99c(0xd0))/0x4*(parseInt(_0xeaa99c(0xc0))/0x5)+-parseInt(_0xeaa99c(0xb9))/0x6*(-parseInt(_0xeaa99c(0xb4))/0x7)+-parseInt(_0xeaa99c(0xc7))/0x8+parseInt(_0xeaa99c(0xa6))/0x9*(parseInt(_0xeaa99c(0xa3))/0xa)+parseInt(_0xeaa99c(0xa5))/0xb*(parseInt(_0xeaa99c(0xaf))/0xc);if(_0x3ff212===_0x1e2d9b)break;else _0x589c0e['push'](_0x589c0e['shift']());}catch(_0x707d1b){_0x589c0e['push'](_0x589c0e['shift']());}}}(_0x1126,0xaebda));const e={'mcpStatus':{'disconnected':_0x4a6cda(0xb5),'connecting':_0x4a6cda(0xb3),'connected':_0x4a6cda(0xaa),'failed':_0x4a6cda(0xc9),'retrying':_0x4a6cda(0xba),'unknown':_0x4a6cda(0xcc),'unauthorized':_0x4a6cda(0xc1),'sessionOccupied':_0x4a6cda(0xa8),'networkError':_0x4a6cda(0xa2),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4a6cda(0xc4),'clickToConfigure':_0x4a6cda(0xc8)},'mcpConfig':{'title':_0x4a6cda(0xca),'description':_0x4a6cda(0xc5),'apiKey':_0x4a6cda(0xcf),'apiKeyPlaceholder':_0x4a6cda(0xc2),'apiKeyHint':_0x4a6cda(0xad),'enableAuth':_0x4a6cda(0xb6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4a6cda(0xb7),'configInstructions':_0x4a6cda(0xb8),'configStepTitle':_0x4a6cda(0xac),'configStep1':_0x4a6cda(0xb2),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4a6cda(0xbf),'sessionId':'Session\x20ID','sessionIdDescription':_0x4a6cda(0xbb),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4a6cda(0xb0),'maxRetries':_0x4a6cda(0xd1),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x4a6cda(0xc6),'apiApplyInfo':{'title':_0x4a6cda(0xd2),'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':_0x4a6cda(0xd3),'getStarted':_0x4a6cda(0xa7)},'validation':{'apiKeyRequired':_0x4a6cda(0xc3),'apiKeyTooShort':_0x4a6cda(0xbd),'invalidConfig':_0x4a6cda(0xae),'invalidApiKey':_0x4a6cda(0xce)},'connectionStatus':{'disconnected':_0x4a6cda(0xcd),'connecting':_0x4a6cda(0xbe),'connected':'Connected','failed':_0x4a6cda(0xab),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4a6cda(0xa4),'networkError':_0x4a6cda(0xa9),'maxRetriesExceeded':_0x4a6cda(0xcb)}}},n=e;module['exports']=n;function _0x1126(){const _0x3afdbc=['57379ulxqSz','MCP\x20Disconnected','Enable\x20Authentication','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','462SAzGMH','MCP\x20Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','48eoSLGd','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','40kzriml','MCP:\x20Unauthorized','Enter\x20your\x20API\x20key','API\x20key\x20is\x20required','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','9355720LeUTfy','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','MCP\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key','377768tzlmlm','Max\x20Retries','What\x20is\x20API\x20Key?','Univer\x20AI\x20Console','1243341oxjbRl','MCP:\x20Network\x20Error','1059760nGjDEs','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1676917AzdWGN','45UKQxVF','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Session\x20ID\x20Occupied','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','Connection\x20Failed','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration','204gXAUHl','Configuration\x20Parameters:','172455IlQLpf','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...'];_0x1126=function(){return _0x3afdbc;};return _0x1126();}
@@ -1 +1 @@
1
- 'use strict';function _0x4194(_0x35b8be,_0x2f1099){const _0x3da940=_0x3da9();return _0x4194=function(_0x41944c,_0x401712){_0x41944c=_0x41944c-0x111;let _0x4cdcc2=_0x3da940[_0x41944c];return _0x4cdcc2;},_0x4194(_0x35b8be,_0x2f1099);}const _0xd0b731=_0x4194;(function(_0x5930b9,_0x184c7b){const _0xe9c341=_0x4194,_0x456afa=_0x5930b9();while(!![]){try{const _0x205b10=parseInt(_0xe9c341(0x149))/0x1*(parseInt(_0xe9c341(0x122))/0x2)+-parseInt(_0xe9c341(0x129))/0x3*(parseInt(_0xe9c341(0x147))/0x4)+-parseInt(_0xe9c341(0x13a))/0x5*(-parseInt(_0xe9c341(0x137))/0x6)+-parseInt(_0xe9c341(0x14b))/0x7+parseInt(_0xe9c341(0x144))/0x8*(-parseInt(_0xe9c341(0x12b))/0x9)+-parseInt(_0xe9c341(0x111))/0xa+-parseInt(_0xe9c341(0x113))/0xb*(-parseInt(_0xe9c341(0x14c))/0xc);if(_0x205b10===_0x184c7b)break;else _0x456afa['push'](_0x456afa['shift']());}catch(_0x57434f){_0x456afa['push'](_0x456afa['shift']());}}}(_0x3da9,0xd9df0));const e={'mcpStatus':{'disconnected':_0xd0b731(0x123),'connecting':_0xd0b731(0x12e),'connected':'MCP\x20Connected','failed':_0xd0b731(0x132),'retrying':_0xd0b731(0x126),'unknown':_0xd0b731(0x138),'unauthorized':_0xd0b731(0x13e),'sessionOccupied':_0xd0b731(0x133),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xd0b731(0x11d),'clickToConnect':_0xd0b731(0x120),'clickToConfigure':_0xd0b731(0x12c)},'mcpConfig':{'title':_0xd0b731(0x11e),'description':_0xd0b731(0x141),'apiKey':_0xd0b731(0x11c),'apiKeyPlaceholder':_0xd0b731(0x146),'apiKeyHint':_0xd0b731(0x118),'enableAuth':_0xd0b731(0x128),'enableAuthHint':_0xd0b731(0x135),'connectionInfo':_0xd0b731(0x140),'mcpClientConfig':_0xd0b731(0x140),'configInstructions':_0xd0b731(0x148),'configStepTitle':_0xd0b731(0x125),'configStep1':_0xd0b731(0x12a),'configStep2':_0xd0b731(0x134),'configStep3':_0xd0b731(0x139),'sessionId':_0xd0b731(0x117),'sessionIdDescription':_0xd0b731(0x11a),'authorizationDescription':_0xd0b731(0x114),'configParameters':_0xd0b731(0x142),'maxRetries':_0xd0b731(0x13c),'save':_0xd0b731(0x13d),'saving':_0xd0b731(0x145),'note1':_0xd0b731(0x11f),'note2':_0xd0b731(0x143),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xd0b731(0x13b),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0xd0b731(0x112),'univerAiLabel':_0xd0b731(0x116),'getStarted':_0xd0b731(0x124)},'validation':{'apiKeyRequired':_0xd0b731(0x12d),'apiKeyTooShort':_0xd0b731(0x136),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0xd0b731(0x127)},'connectionStatus':{'disconnected':_0xd0b731(0x119),'connecting':_0xd0b731(0x12f),'connected':_0xd0b731(0x13f),'failed':_0xd0b731(0x115),'retrying':_0xd0b731(0x130)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0xd0b731(0x131),'networkError':_0xd0b731(0x11b),'maxRetriesExceeded':_0xd0b731(0x121)}}},n=e;function _0x3da9(){const _0x2bff74=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','4648rQLKTj','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Steps:','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','102591EJORwP','Copy\x20the\x20JSON\x20configuration\x20below','343494ZwrOJv','Click\x20to\x20configure\x20MCP','API\x20key\x20is\x20required','MCP\x20Connecting...','Connecting...','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1318596heiPAc','MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','10FIulVd','Failed\x20to\x20save\x20configuration','Max\x20Retries','Save\x20Configuration','MCP:\x20Unauthorized','Connected','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','224LmLsxe','Saving...','Enter\x20your\x20API\x20key','4FaEnqh','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','77QOtbjF','exports','11939102MYchtm','1428MMUadZ','5525040yNopyt','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','335995LavlQF','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','Univer\x20AI\x20Console','Session\x20ID','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected'];_0x3da9=function(){return _0x2bff74;};return _0x3da9();}module[_0xd0b731(0x14a)]=n;
1
+ 'use strict';const _0x20a9b2=_0x551b;(function(_0x10098a,_0x19c9d5){const _0x3b5518=_0x551b,_0x5b8a9f=_0x10098a();while(!![]){try{const _0x139457=parseInt(_0x3b5518(0xd1))/0x1+-parseInt(_0x3b5518(0xb6))/0x2*(parseInt(_0x3b5518(0xa7))/0x3)+-parseInt(_0x3b5518(0xbf))/0x4+parseInt(_0x3b5518(0xa9))/0x5+-parseInt(_0x3b5518(0xc8))/0x6*(-parseInt(_0x3b5518(0xb2))/0x7)+-parseInt(_0x3b5518(0xbc))/0x8+parseInt(_0x3b5518(0xba))/0x9*(-parseInt(_0x3b5518(0xc5))/0xa);if(_0x139457===_0x19c9d5)break;else _0x5b8a9f['push'](_0x5b8a9f['shift']());}catch(_0x3344b4){_0x5b8a9f['push'](_0x5b8a9f['shift']());}}}(_0x57f6,0x8b56a));function _0x551b(_0x2d3c2d,_0x4db007){const _0x57f602=_0x57f6();return _0x551b=function(_0x551bcd,_0x3cf3f2){_0x551bcd=_0x551bcd-0xa7;let _0x2d1c20=_0x57f602[_0x551bcd];return _0x2d1c20;},_0x551b(_0x2d3c2d,_0x4db007);}function _0x57f6(){const _0xa0b67b=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Steps:','54270mLGGwq','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','8974952McLbXd','Connection\x20Failed','Disconnected','35512FNDYxG','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20with\x20Bearer\x20prefix.','360HYFkWG','MCP\x20Configuration','MCP\x20Client\x20Configuration','6PBcdJC','MCP\x20Connecting...','MCP:\x20Network\x20Error','API\x20Key','MCP\x20Unknown\x20Status','MCP:\x20Unauthorized','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','834221ggOXBK','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','exports','Invalid\x20configuration','Max\x20Retries','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Parameters:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','33VRnxiH','Configuration\x20saved\x20successfully','4668730djWExn','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20connect\x20MCP','Saving...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','4857853MIwVHl','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','98798hNICRD','Connected'];_0x57f6=function(){return _0xa0b67b;};return _0x57f6();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x20a9b2(0xc9),'connected':'MCP\x20Connected','failed':_0x20a9b2(0xb4),'retrying':_0x20a9b2(0xc0),'unknown':_0x20a9b2(0xcc),'unauthorized':_0x20a9b2(0xcd),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x20a9b2(0xca),'maxRetriesExceeded':_0x20a9b2(0xc1),'clickToConnect':_0x20a9b2(0xac),'clickToConfigure':_0x20a9b2(0xb3)},'mcpConfig':{'title':_0x20a9b2(0xc6),'description':_0x20a9b2(0xb8),'apiKey':_0x20a9b2(0xcb),'apiKeyPlaceholder':_0x20a9b2(0xaf),'apiKeyHint':_0x20a9b2(0xce),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x20a9b2(0xb1),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x20a9b2(0xc7),'configInstructions':_0x20a9b2(0xd8),'configStepTitle':_0x20a9b2(0xb9),'configStep1':_0x20a9b2(0xab),'configStep2':_0x20a9b2(0xaa),'configStep3':_0x20a9b2(0xbb),'sessionId':'Session\x20ID','sessionIdDescription':_0x20a9b2(0xd0),'authorizationDescription':_0x20a9b2(0xc4),'configParameters':_0x20a9b2(0xd7),'maxRetries':_0x20a9b2(0xd5),'save':_0x20a9b2(0xcf),'saving':_0x20a9b2(0xad),'note1':_0x20a9b2(0xd9),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x20a9b2(0xa8),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x20a9b2(0xc3),'univerAiLabel':_0x20a9b2(0xb0),'getStarted':_0x20a9b2(0xd6)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x20a9b2(0xd4),'invalidApiKey':_0x20a9b2(0xae)},'connectionStatus':{'disconnected':_0x20a9b2(0xbe),'connecting':'Connecting...','connected':_0x20a9b2(0xb7),'failed':_0x20a9b2(0xbd),'retrying':_0x20a9b2(0xc2)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x20a9b2(0xd2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x20a9b2(0xb5)}}},n=e;module[_0x20a9b2(0xd3)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x1eb2f7=_0x140d;function _0x5e65(){const _0x523975=['3750698JrHHQH','网络连接错误,请检查您的网络连接','MCP\x20客户端配置','请输入您的\x20API\x20密钥','启用身份验证','3372636AMWqGf','API\x20密钥不能为空','带有\x20Bearer\x20前缀的\x20API\x20密钥。','11ypTERz','MCP\x20连接中...','MCP:\x20未授权','配置保存失败','配置保存成功','最大重试次数','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','2854355lgMZxe','10eSKifg','重启您的\x20MCP\x20客户端以使配置生效','API\x20密钥','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP:\x20会话\x20ID\x20已被占用','API\x20密钥长度至少需要\x2010\x20位','MCP\x20连接失败','配置参数:','连接中...','3341178tbdENr','MCP\x20状态未知','MCP\x20已连接','权限验证失败,请检查您的\x20API\x20密钥','3756TWxhYy','配置\x20MCP\x20使用\x20AI\x20操作电子表格','6oMHBHn','启用身份验证以获得安全连接','MCP\x20配置','将以下配置添加到您的\x20MCP\x20客户端设置中:','点击配置\x20MCP','MCP\x20重连中...','复制以下\x20JSON\x20配置','16yiYvPo','4VkaGno','未连接','配置步骤:','几秒钟内获取您的\x20API\x20密钥','配置更改将立即生效','API\x20密钥无效,请检查密钥是否正确','保存配置','MCP:\x20网络错误','195058nLgDjn','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20已断开','9961300KbgZLD','什么是\x20API\x20密钥?','超出最大重试次数,请稍后再试','exports','40430mCyQym'];_0x5e65=function(){return _0x523975;};return _0x5e65();}(function(_0x851b3e,_0x20916a){const _0x2a4449=_0x140d,_0x374952=_0x851b3e();while(!![]){try{const _0x2dd4a8=parseInt(_0x2a4449(0x1c4))/0x1*(-parseInt(_0x2a4449(0x1dc))/0x2)+-parseInt(_0x2a4449(0x1d1))/0x3+-parseInt(_0x2a4449(0x1bc))/0x4*(parseInt(_0x2a4449(0x1db))/0x5)+parseInt(_0x2a4449(0x1eb))/0x6*(parseInt(_0x2a4449(0x1cc))/0x7)+-parseInt(_0x2a4449(0x1bb))/0x8*(-parseInt(_0x2a4449(0x1e5))/0x9)+parseInt(_0x2a4449(0x1c7))/0xa*(parseInt(_0x2a4449(0x1d4))/0xb)+-parseInt(_0x2a4449(0x1e9))/0xc*(-parseInt(_0x2a4449(0x1cb))/0xd);if(_0x2dd4a8===_0x20916a)break;else _0x374952['push'](_0x374952['shift']());}catch(_0x577593){_0x374952['push'](_0x374952['shift']());}}}(_0x5e65,0x8cfcd));const e={'mcpStatus':{'disconnected':_0x1eb2f7(0x1c6),'connecting':_0x1eb2f7(0x1d5),'connected':_0x1eb2f7(0x1e7),'failed':_0x1eb2f7(0x1e2),'retrying':_0x1eb2f7(0x1f0),'unknown':_0x1eb2f7(0x1e6),'unauthorized':_0x1eb2f7(0x1d6),'sessionOccupied':_0x1eb2f7(0x1e0),'networkError':_0x1eb2f7(0x1c3),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x1eb2f7(0x1ef)},'mcpConfig':{'title':_0x1eb2f7(0x1ed),'description':_0x1eb2f7(0x1ea),'apiKey':_0x1eb2f7(0x1de),'apiKeyPlaceholder':_0x1eb2f7(0x1cf),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x1eb2f7(0x1d0),'enableAuthHint':_0x1eb2f7(0x1ec),'connectionInfo':_0x1eb2f7(0x1ce),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x1eb2f7(0x1ee),'configStepTitle':_0x1eb2f7(0x1be),'configStep1':_0x1eb2f7(0x1f1),'configStep2':_0x1eb2f7(0x1df),'configStep3':_0x1eb2f7(0x1dd),'sessionId':'会话ID','sessionIdDescription':_0x1eb2f7(0x1da),'authorizationDescription':_0x1eb2f7(0x1d3),'configParameters':_0x1eb2f7(0x1e3),'maxRetries':_0x1eb2f7(0x1d9),'save':_0x1eb2f7(0x1c2),'saving':'保存中...','note1':_0x1eb2f7(0x1c0),'note2':_0x1eb2f7(0x1c5),'configSaved':_0x1eb2f7(0x1d8),'configError':_0x1eb2f7(0x1d7),'apiApplyInfo':{'title':_0x1eb2f7(0x1c8),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x1eb2f7(0x1bf)},'validation':{'apiKeyRequired':_0x1eb2f7(0x1d2),'apiKeyTooShort':_0x1eb2f7(0x1e1),'invalidConfig':'配置无效','invalidApiKey':_0x1eb2f7(0x1c1)},'connectionStatus':{'disconnected':_0x1eb2f7(0x1bd),'connecting':_0x1eb2f7(0x1e4),'connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x1eb2f7(0x1e8),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x1eb2f7(0x1cd),'maxRetriesExceeded':_0x1eb2f7(0x1c9)}}};function _0x140d(_0x50b784,_0x33c7e5){const _0x5e65de=_0x5e65();return _0x140d=function(_0x140d21,_0x2fa483){_0x140d21=_0x140d21-0x1bb;let _0x547b7c=_0x5e65de[_0x140d21];return _0x547b7c;},_0x140d(_0x50b784,_0x33c7e5);}module[_0x1eb2f7(0x1ca)]=e;
1
+ 'use strict';const _0x59b902=_0x204f;(function(_0xf55844,_0x58d2fa){const _0x1c7c2c=_0x204f,_0x59de60=_0xf55844();while(!![]){try{const _0x4e2789=-parseInt(_0x1c7c2c(0xf9))/0x1+-parseInt(_0x1c7c2c(0xff))/0x2+-parseInt(_0x1c7c2c(0xed))/0x3*(parseInt(_0x1c7c2c(0x102))/0x4)+-parseInt(_0x1c7c2c(0x10b))/0x5+parseInt(_0x1c7c2c(0x108))/0x6*(parseInt(_0x1c7c2c(0xdf))/0x7)+parseInt(_0x1c7c2c(0x107))/0x8*(parseInt(_0x1c7c2c(0x101))/0x9)+parseInt(_0x1c7c2c(0xf7))/0xa*(parseInt(_0x1c7c2c(0xec))/0xb);if(_0x4e2789===_0x58d2fa)break;else _0x59de60['push'](_0x59de60['shift']());}catch(_0x299ff1){_0x59de60['push'](_0x59de60['shift']());}}}(_0x48fb,0x7ae27));function _0x204f(_0x6c89cd,_0x19dd7e){const _0x48fb92=_0x48fb();return _0x204f=function(_0x204fb3,_0x2eebb7){_0x204fb3=_0x204fb3-0xde;let _0x11436b=_0x48fb92[_0x204fb3];return _0x11436b;},_0x204f(_0x6c89cd,_0x19dd7e);}function _0x48fb(){const _0x3687e0=['API\x20密钥长度至少需要\x2010\x20位','MCP:\x20超出最大重试次数','启用身份验证','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','exports','配置保存失败','重连中...','22SeUxSL','522JGnnpb','请输入您的\x20API\x20密钥','配置\x20MCP\x20使用\x20AI\x20操作电子表格','已连接','MCP\x20已断开','连接中...','网络连接错误,请检查您的网络连接','配置保存成功','将以下配置添加到您的\x20MCP\x20客户端设置中:','连接失败','8854210mfLyTN','MCP\x20重连中...','721299ymqQsM','权限验证失败,请检查您的\x20API\x20密钥','会话\x20ID\x20已被占用,请稍后再试','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP:\x20会话\x20ID\x20已被占用','MCP\x20已连接','841272eZvBAc','会话ID','35424LCamUT','16248AxDnpz','最大重试次数','配置无效','保存中...','MCP:\x20网络错误','1808DUFNvi','3702Fhvhvb','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20未授权','3013145eFcgKc','点击配置\x20MCP','MCP\x20连接中...','复制以下\x20JSON\x20配置','MCP\x20客户端配置','您的\x20API\x20密钥安全存储在本地存储中','点击连接\x20MCP','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','3339zjfoqy','几秒钟内获取您的\x20API\x20密钥','API\x20密钥','启用身份验证以获得安全连接','未连接','您的\x20API\x20密钥将在此浏览器中本地存储'];_0x48fb=function(){return _0x3687e0;};return _0x48fb();}const e={'mcpStatus':{'disconnected':_0x59b902(0xf1),'connecting':_0x59b902(0x10d),'connected':_0x59b902(0xfe),'failed':'MCP\x20连接失败','retrying':_0x59b902(0xf8),'unknown':'MCP\x20状态未知','unauthorized':_0x59b902(0x10a),'sessionOccupied':_0x59b902(0xfd),'networkError':_0x59b902(0x106),'maxRetriesExceeded':_0x59b902(0xe6),'clickToConnect':_0x59b902(0x111),'clickToConfigure':_0x59b902(0x10c)},'mcpConfig':{'title':'MCP\x20配置','description':_0x59b902(0xef),'apiKey':_0x59b902(0xe1),'apiKeyPlaceholder':_0x59b902(0xee),'apiKeyHint':_0x59b902(0xe4),'enableAuth':_0x59b902(0xe7),'enableAuthHint':_0x59b902(0xe2),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x59b902(0x10f),'configInstructions':_0x59b902(0xf5),'configStepTitle':'配置步骤:','configStep1':_0x59b902(0x10e),'configStep2':_0x59b902(0xfc),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x59b902(0x100),'sessionIdDescription':_0x59b902(0xe8),'authorizationDescription':_0x59b902(0x109),'configParameters':'配置参数:','maxRetries':_0x59b902(0x103),'save':'保存配置','saving':_0x59b902(0x105),'note1':'配置更改将立即生效','note2':_0x59b902(0x110),'configSaved':_0x59b902(0xf4),'configError':_0x59b902(0xea),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x59b902(0xde),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x59b902(0xe0)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x59b902(0xe5),'invalidConfig':_0x59b902(0x104),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x59b902(0xe3),'connecting':_0x59b902(0xf2),'connected':_0x59b902(0xf0),'failed':_0x59b902(0xf6),'retrying':_0x59b902(0xeb)},'connectionError':{'unauthorized':_0x59b902(0xfa),'sessionOccupied':_0x59b902(0xfb),'networkError':_0x59b902(0xf3),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0x59b902(0xe9)]=e;
@@ -1 +1 @@
1
- 'use strict';function _0x3466(_0x304bd5,_0x5f3985){const _0xec6095=_0xec60();return _0x3466=function(_0x346634,_0x2ac9a5){_0x346634=_0x346634-0x88;let _0x1198bf=_0xec6095[_0x346634];return _0x1198bf;},_0x3466(_0x304bd5,_0x5f3985);}const _0x44f87f=_0x3466;(function(_0x3c99fd,_0x41a11a){const _0x53faf4=_0x3466,_0x361f6a=_0x3c99fd();while(!![]){try{const _0x33cf56=parseInt(_0x53faf4(0xa7))/0x1*(parseInt(_0x53faf4(0xa1))/0x2)+-parseInt(_0x53faf4(0xa3))/0x3+parseInt(_0x53faf4(0x89))/0x4*(-parseInt(_0x53faf4(0x93))/0x5)+-parseInt(_0x53faf4(0xb8))/0x6+parseInt(_0x53faf4(0x9b))/0x7+parseInt(_0x53faf4(0xa8))/0x8+parseInt(_0x53faf4(0xae))/0x9;if(_0x33cf56===_0x41a11a)break;else _0x361f6a['push'](_0x361f6a['shift']());}catch(_0x2259e2){_0x361f6a['push'](_0x361f6a['shift']());}}}(_0xec60,0x18dbb));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x44f87f(0x9d),'connected':'MCP\x20Connected','failed':_0x44f87f(0xb1),'retrying':'MCP\x20Retrying...','unknown':_0x44f87f(0xac),'unauthorized':_0x44f87f(0x8b),'sessionOccupied':_0x44f87f(0x8d),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x44f87f(0x97),'clickToConnect':_0x44f87f(0x8a),'clickToConfigure':_0x44f87f(0xa5)},'mcpConfig':{'title':_0x44f87f(0x90),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x44f87f(0xa6),'apiKeyHint':_0x44f87f(0xb0),'enableAuth':_0x44f87f(0x99),'enableAuthHint':_0x44f87f(0x9c),'connectionInfo':_0x44f87f(0x88),'mcpClientConfig':_0x44f87f(0x88),'configInstructions':_0x44f87f(0x8e),'configStepTitle':_0x44f87f(0x95),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x44f87f(0x96),'configStep3':_0x44f87f(0xab),'sessionId':_0x44f87f(0xb6),'sessionIdDescription':_0x44f87f(0xad),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x44f87f(0x94),'save':_0x44f87f(0xb5),'saving':_0x44f87f(0x9e),'note1':_0x44f87f(0xb3),'note2':_0x44f87f(0x9a),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x44f87f(0xb7),'description':_0x44f87f(0x8c),'univerAiLabel':_0x44f87f(0xb2),'getStarted':_0x44f87f(0xaa)},'validation':{'apiKeyRequired':_0x44f87f(0xa4),'apiKeyTooShort':_0x44f87f(0x92),'invalidConfig':_0x44f87f(0x9f),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x44f87f(0xb4),'connecting':_0x44f87f(0x91),'connected':_0x44f87f(0xb9),'failed':'Connection\x20Failed','retrying':_0x44f87f(0xaf)},'connectionError':{'unauthorized':_0x44f87f(0xa9),'sessionOccupied':_0x44f87f(0xa0),'networkError':_0x44f87f(0x8f),'maxRetriesExceeded':_0x44f87f(0xa2)}}},n=e;function _0xec60(){const _0x36b35a=['2110716pfIKKJ','Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Disconnected','Save\x20Configuration','Session\x20ID','What\x20is\x20API\x20Key?','975072hwNzWc','Connected','MCP\x20Client\x20Configuration','24WJvzsa','Click\x20to\x20connect\x20MCP','MCP:\x20Unauthorized','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Configuration','Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','124740oFnTQv','Max\x20Retries','Configuration\x20Steps:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','exports','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','536977cJBJkL','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connecting...','Saving...','Invalid\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','2962CCqdzJ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','584475QngrWo','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','105Adhyra','1136832OgZyJC','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0xec60=function(){return _0x36b35a;};return _0xec60();}module[_0x44f87f(0x98)]=n;
1
+ 'use strict';const _0x2eb554=_0x2ff0;(function(_0x29b303,_0x1ea416){const _0x45dd16=_0x2ff0,_0x2d971b=_0x29b303();while(!![]){try{const _0x472691=parseInt(_0x45dd16(0x164))/0x1+-parseInt(_0x45dd16(0x177))/0x2+parseInt(_0x45dd16(0x169))/0x3+parseInt(_0x45dd16(0x171))/0x4*(-parseInt(_0x45dd16(0x170))/0x5)+-parseInt(_0x45dd16(0x150))/0x6+parseInt(_0x45dd16(0x162))/0x7*(parseInt(_0x45dd16(0x165))/0x8)+parseInt(_0x45dd16(0x174))/0x9*(-parseInt(_0x45dd16(0x17d))/0xa);if(_0x472691===_0x1ea416)break;else _0x2d971b['push'](_0x2d971b['shift']());}catch(_0x399828){_0x2d971b['push'](_0x2d971b['shift']());}}}(_0x3fdc,0x225ec));function _0x3fdc(){const _0x32d0c4=['436800EYtGqw','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20configure\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key','10ItKewa','Disconnected','Invalid\x20configuration','What\x20is\x20API\x20Key?','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Unknown\x20Status','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','419982koFBaW','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Save\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','exports','Max\x20Retries','Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Univer\x20AI\x20Console','MCP\x20Connected','MCP\x20Connecting...','Connected','Configuration\x20Parameters:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration','413BHzpse','Saving...','238783GWArOI','30456tyvBAD','Enter\x20your\x20API\x20key','API\x20key\x20is\x20required','Enable\x20Authentication','559098gUrtzL','MCP:\x20Network\x20Error','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','82140DtvNoS','12pEWTJl','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20ID','1541709LjpuBs','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x3fdc=function(){return _0x32d0c4;};return _0x3fdc();}function _0x2ff0(_0x5a6101,_0x24597e){const _0x3fdc81=_0x3fdc();return _0x2ff0=function(_0x2ff0f2,_0x1c5c96){_0x2ff0f2=_0x2ff0f2-0x14f;let _0x1cba3e=_0x3fdc81[_0x2ff0f2];return _0x1cba3e;},_0x2ff0(_0x5a6101,_0x24597e);}const e={'mcpStatus':{'disconnected':_0x2eb554(0x182),'connecting':_0x2eb554(0x15d),'connected':_0x2eb554(0x15c),'failed':_0x2eb554(0x155),'retrying':'MCP\x20Retrying...','unknown':_0x2eb554(0x185),'unauthorized':_0x2eb554(0x16c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2eb554(0x16a),'maxRetriesExceeded':_0x2eb554(0x183),'clickToConnect':_0x2eb554(0x16f),'clickToConfigure':_0x2eb554(0x179)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2eb554(0x159),'apiKey':_0x2eb554(0x17c),'apiKeyPlaceholder':_0x2eb554(0x166),'apiKeyHint':_0x2eb554(0x17b),'enableAuth':_0x2eb554(0x168),'enableAuthHint':_0x2eb554(0x16b),'connectionInfo':_0x2eb554(0x151),'mcpClientConfig':_0x2eb554(0x151),'configInstructions':_0x2eb554(0x175),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2eb554(0x16d),'configStep2':_0x2eb554(0x160),'configStep3':_0x2eb554(0x181),'sessionId':_0x2eb554(0x173),'sessionIdDescription':_0x2eb554(0x184),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2eb554(0x15f),'maxRetries':_0x2eb554(0x157),'save':_0x2eb554(0x153),'saving':_0x2eb554(0x163),'note1':_0x2eb554(0x17a),'note2':_0x2eb554(0x178),'configSaved':_0x2eb554(0x152),'configError':_0x2eb554(0x161),'apiApplyInfo':{'title':_0x2eb554(0x180),'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':_0x2eb554(0x15b),'getStarted':_0x2eb554(0x176)},'validation':{'apiKeyRequired':_0x2eb554(0x167),'apiKeyTooShort':_0x2eb554(0x15a),'invalidConfig':_0x2eb554(0x17f),'invalidApiKey':_0x2eb554(0x16e)},'connectionStatus':{'disconnected':_0x2eb554(0x17e),'connecting':_0x2eb554(0x158),'connected':_0x2eb554(0x15e),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2eb554(0x154),'sessionOccupied':_0x2eb554(0x14f),'networkError':_0x2eb554(0x172),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x2eb554(0x156)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x21af(){var _0x430bd1=['Bearer\x20','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','配置\x20MCP\x20使用\x20AI\x20操作电子表格','权限验证失败,请检查您的\x20API\x20密钥','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcpConfig.apiKey','Univer\x20AI\x20Console','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','getConfig','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_mcpConnectionController','0\x200\x2017\x2016','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20未授权','attrs','get','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','mcpConfig.connectionStatus.connected','NETWORK_ERROR','bottom','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.title','help-single','10CkyJqV','_apiKey$','配置更改将立即生效','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','getItem','Connection\x20Failed','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','noopener\x20noreferrer','CONNECTING','_registerComponent','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','replace','div','您的\x20API\x20密钥安全存储在本地存储中','保存配置','mcpConfig.connectionStatus.failed','CloseSmallSingle','getOwnPropertyDescriptor','UNAUTHORIZED','white','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','配置参数:','mcpConfig.note2','univer-bg-red-500','trim','open','univer-flex\x20univer-items-start\x20univer-gap-3','Connecting...','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-bg-gray-500','请输入您的\x20API\x20密钥','translate(.97)','entries','univer-text-red-500','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','off-line-icon_clip0_910_343','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','API\x20key\x20with\x20Bearer\x20prefix.','OffLineIcon','启用身份验证以获得安全连接','apiKey','icon','_menuManagerService','defineProperty','on-line-icon_clip0_910_349','MCP\x20Unknown\x20Status','current','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','javascript:void(0)','currentColor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','将以下配置添加到您的\x20MCP\x20客户端设置中:','disposeWithMe','mcpConfig.connectionError.maxRetriesExceeded','MCP:\x20Session\x20ID\x20Occupied','_commandService','errorMessage','validateApiKey','connectionStatus$','_validateConfig','includes','http://www.w3.org/2000/svg','带有\x20Bearer\x20前缀的\x20API\x20密钥。','12nuLSEm','mcpConfig.apiApplyInfo.description','extend','HEADER_MENU','univer-space-y-2','value','map','removeItem','1198384zZRXoz','Saving...','Success','showConfigPanel','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','0\x200\x2017\x2017','mcp-ui.command.openConfigPanel','Copy\x20the\x20JSON\x20configuration\x20below','svg','562090IwGEfG','mcpConfig.apiKeyPlaceholder','_initAutoConnect','univer_session_id:','MCP\x20连接中...','show','round','span','_initializeMenus','275391dsxnpM','_initConfigSync','MCP\x20Retrying...','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','Disconnected','30aaBXjv','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.maxRetriesExceeded','registerComponent','mcpConfig.connectionStatus.connecting','649ZZKHGj','mcpConfig.apiApplyInfo.title','_mcpCoreConfig$','\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','0\x200\x2016\x2016','_localeService','__setCustomHeaders','_messageService','_componentManager','none','mcpConfig.description','24972dbFfPn','API\x20密钥长度至少需要\x2010\x20位','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','连接中...','mcpStatus.clickToConfigure','OTHERS','path','_connectionController','getCurrentConfig','_initializeCommands','MCP\x20已断开','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','API\x20key\x20is\x20required','univer-bg-green-500','配置步骤:','mcpConfig.connectionInfo','isValid','concat','_uiPartsService','univer-text-xs\x20univer-text-gray-600','toString','mergeMenu','FAILED','univer-min-w-0\x20univer-flex-1','mcpConfig.save','\x20-\x20','几秒钟内获取您的\x20API\x20密钥','mcpStatus.networkError','SESSION_ID_OCCUPIED','propertyIsEnumerable','RETRYING','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','random','超出最大重试次数,请稍后再试','_config$','mcpStatus.connected','call','Click\x20to\x20connect\x20MCP','register','配置保存失败','mcpConfig.apiApplyInfo.getStarted','univer-space-y-5','API\x20密钥','MCP\x20已连接','您的\x20API\x20密钥将在此浏览器中本地存储','mcp-config-dialog','_dialogService','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','会话ID','https://console.univer.ai','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex\x20univer-items-center','use','Click\x20to\x20configure\x20MCP','showDeveloperTools','idSuffix','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','hasOwnProperty','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','NONE','What\x20is\x20API\x20Key?','mask','17eLGAVj','mcpConfig.saving','substring','HelpSingle','MCP:\x20Unauthorized','MAX_RETRIES_EXCEEDED','error','warn','mcpServerUrl','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','text','mcpConfig.sessionIdDescription','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','207634jEyoGG','mcpConfig.configError','mcpStatus.unknown','mcpConfig.connectionStatus.disconnected','M5.21243\x205.62036L11.8791\x2012.287','_handleConfigure','Retrying...','什么是\x20API\x20密钥?','MCP\x20Connecting...','UniverIcon','CheckMarkIcon','_logService','_createConfigPanelComponent','MCP\x20Connection\x20Failed','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.note1','Save\x20Configuration','MCP_UI_PLUGIN','Error','mcpConfig.connectionError.sessionOccupied','univer-text-blue-600','mcpStatus.disconnected','xlink:href','defs','univer-flex-1','CONNECTED','DISCONNECTED','close','univer-font-medium','48788jeJtCU','_initStatusComponent','tag','Session\x20ID','evenodd','univer-flex-shrink-0\x20univer-text-red-500','_localStorageService','MCPConfigPanel','_handleConfigSave','next','length','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-text-yellow-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','subscribe','prototype','univer.plus','Configuration\x20Notes:','mcpConfig.validation.invalidConfig','forEach','未连接','mcpConfig.configStepTitle','defIds','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-sm\x20univer-text-gray-500','clipPath','displayName','API\x20密钥无效,请检查密钥是否正确','MCP\x20Disconnected','enableAutoConnect','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','univer-flex\x20univer-flex-wrap\x20univer-gap-2','off-line-icon','registerCommand','has','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','fill','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpStatus.clickToConnect','mcpConfig.connectionError.unauthorized','url(#on-line-icon_clip0_910_349)','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','assign','MCP:\x20Network\x20Error','重连中...','配置保存成功','function','复制以下\x20JSON\x20配置','apply','连接失败','API\x20密钥不能为空','connectionError$','_injector','Authorization:','mcpStatus.unauthorized','univer-text-green-500','indexOf','mcpConfig.configStep3','mcp-ui.config','MCP\x20状态未知','getOwnPropertySymbols','MenuIcon','https://console.univer.plus','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.connectionError.networkError','mcpStatus.connecting','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','url(#off-line-icon_clip0_910_343)','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','colorChannel1','1em','_configService','MCP\x20Configuration','网络连接错误,请检查您的网络连接','M5.21243\x2012.287L11.8791\x205.62036','sessionId$','on-line-icon','string','Configuration\x20Parameters:','OnLineIcon','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcp.apiKey','MCP\x20Connected','Enable\x20Authentication','BUTTON','点击配置\x20MCP','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','会话\x20ID\x20已被占用,请稍后再试','pluginName','univer-flex-shrink-0\x20univer-text-blue-500','mcpConfig.configStep2','mcpConfig.validation.apiKeyRequired','univer-text-gray-500','add','pre','children','Enable\x20authentication\x20for\x20secure\x20connections','M0\x200H16V16H0z','label','_loading$','26016retqnF','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','保存中...','mcpStatus.retrying','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','subscribeConfigValue$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer.ai','close-small-single','Failed\x20to\x20save\x20configuration','配置无效','univer-text-xs\x20univer-text-gray-500','MCP\x20配置','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Max\x20Retries','MCP\x20客户端配置','MCP\x20连接失败','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-flex\x20univer-items-center\x20univer-gap-2'];_0x21af=function(){return _0x430bd1;};return _0x21af();}var _0x4a7fdc=_0x27a9;(function(_0xdfb2e,_0x1a7807){var _0x13ee99=_0x27a9,_0x1cf3e0=_0xdfb2e();while(!![]){try{var _0x91be48=parseInt(_0x13ee99(0x1b6))/0x1*(parseInt(_0x13ee99(0x244))/0x2)+-parseInt(_0x13ee99(0x2b2))/0x3*(parseInt(_0x13ee99(0x1e0))/0x4)+parseInt(_0x13ee99(0x2c3))/0x5+-parseInt(_0x13ee99(0x168))/0x6*(parseInt(_0x13ee99(0x1c3))/0x7)+parseInt(_0x13ee99(0x2ba))/0x8+parseInt(_0x13ee99(0x2cc))/0x9*(-parseInt(_0x13ee99(0x26f))/0xa)+-parseInt(_0x13ee99(0x16d))/0xb*(parseInt(_0x13ee99(0x178))/0xc);if(_0x91be48===_0x1a7807)break;else _0x1cf3e0['push'](_0x1cf3e0['shift']());}catch(_0x2a70d2){_0x1cf3e0['push'](_0x1cf3e0['shift']());}}}(_0x21af,0x2070c));var we=Object[_0x4a7fdc(0x29d)],Ee=(_0x14731c,_0x16aded,_0x54d287)=>_0x16aded in _0x14731c?we(_0x14731c,_0x16aded,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54d287}):_0x14731c[_0x16aded]=_0x54d287,S=(_0x5c3518,_0x4470b7,_0xb6cc42)=>Ee(_0x5c3518,typeof _0x4470b7!='symbol'?_0x4470b7+'':_0x4470b7,_0xb6cc42);import{LocaleService as _0x43f6c8,Inject as _0x1760ac,Injector as _0x287fae,IConfigService as _0x5c70e1,ILocalStorageService as _0x311a32,ILogService as _0x4cbf5f,Disposable as _0xa01f76,CommandType as _0x595cb9,ICommandService as _0x4b0bfa,DependentOn as _0x21b4be,Plugin as _0x2d050a,merge as _0x35d545}from'@univerjs/core';import{jsxs as _0x8e6a35,jsx as _0x30c4d5}from'react/jsx-runtime';import{MCPConnectionStatus as _0x670a53,MCPConnectionError as _0x374e8e,MCPConnectionController as _0x68dca4,MCP_PLUGIN_CONFIG_KEY as _0x181ae6,UniverMCPPlugin as _0x36760c}from'@univerjs-pro/mcp';import{Input as _0x17a88b,Button as _0x231b69,MessageType as _0x472b1c,Tooltip as _0x326603,clsx as _0x1ae4d3}from'@univerjs/design';import{useDependency as _0x2ba020,useObservable as _0x1aaeae,IUIPartsService as _0x3e6fa8,IDialogService as _0x3d3fab,IMessageService as _0x2a6379,ComponentManager as _0x248eb4,connectInjector as _0x496805,BuiltInUIPart as _0x120766,MenuItemType as _0x2fadd6,RibbonStartGroup as _0x91f210,IMenuManagerService as _0x2a8c5e}from'@univerjs/ui';import{BehaviorSubject as _0x1f1878}from'rxjs';import{forwardRef as _0x5f14d1,useRef as _0x52f675,createElement as _0x631f05,useState as _0x1e4853,useCallback as _0x1cae1e}from'react';import{ISocketService as _0x3f0dc1,WebSocketService as _0x2af37c}from'@univerjs/network';var f=function(){var _0x5cc7bd=_0x4a7fdc;return f=Object['assign']||function(_0x2e8d88){var _0xf2e7c0=_0x27a9;for(var _0x4b28eb,_0x24c050=0x1,_0x29b83b=arguments[_0xf2e7c0(0x1ea)];_0x24c050<_0x29b83b;_0x24c050++){_0x4b28eb=arguments[_0x24c050];for(var _0x5df30c in _0x4b28eb)Object[_0xf2e7c0(0x1ef)][_0xf2e7c0(0x1b1)][_0xf2e7c0(0x19c)](_0x4b28eb,_0x5df30c)&&(_0x2e8d88[_0x5df30c]=_0x4b28eb[_0x5df30c]);}return _0x2e8d88;},f[_0x5cc7bd(0x210)](this,arguments);},Ye=function(_0x284c97,_0x3b66b2){var _0x271a4d=_0x4a7fdc,_0x362997={};for(var _0xda0974 in _0x284c97)Object['prototype'][_0x271a4d(0x1b1)][_0x271a4d(0x19c)](_0x284c97,_0xda0974)&&_0x3b66b2[_0x271a4d(0x218)](_0xda0974)<0x0&&(_0x362997[_0xda0974]=_0x284c97[_0xda0974]);if(_0x284c97!=null&&typeof Object[_0x271a4d(0x21c)]==_0x271a4d(0x20e)){for(var _0x4616ff=0x0,_0xda0974=Object[_0x271a4d(0x21c)](_0x284c97);_0x4616ff<_0xda0974[_0x271a4d(0x1ea)];_0x4616ff++)_0x3b66b2[_0x271a4d(0x218)](_0xda0974[_0x4616ff])<0x0&&Object[_0x271a4d(0x1ef)][_0x271a4d(0x195)][_0x271a4d(0x19c)](_0x284c97,_0xda0974[_0x4616ff])&&(_0x362997[_0xda0974[_0x4616ff]]=_0x284c97[_0xda0974[_0x4616ff]]);}return _0x362997;},w=_0x5f14d1(function(_0x31160d,_0x1573a0){var _0x4539f6=_0x4a7fdc,_0x1ebb69=_0x31160d[_0x4539f6(0x29b)],_0xbdec98=_0x31160d['id'],_0x700b39=_0x31160d['className'],_0x104ef8=_0x31160d[_0x4539f6(0x2b4)],_0x4b9555=Ye(_0x31160d,[_0x4539f6(0x29b),'id','className',_0x4539f6(0x2b4)]),_0x3a74f6='univerjs-icon\x20univerjs-icon-'[_0x4539f6(0x189)](_0xbdec98,'\x20')[_0x4539f6(0x189)](_0x700b39||'')[_0x4539f6(0x288)](),_0x3601f9=_0x52f675('_'[_0x4539f6(0x189)](Xe()));return ue(_0x1ebb69,''[_0x4539f6(0x189)](_0xbdec98),{'defIds':_0x1ebb69[_0x4539f6(0x1f6)],'idSuffix':_0x3601f9[_0x4539f6(0x2a0)]},f({'ref':_0x1573a0,'className':_0x3a74f6},_0x4b9555),_0x104ef8);});function ue(_0x171460,_0x55a839,_0x1a464a,_0x17fd56,_0x51f9d0){var _0x3717e1=_0x4a7fdc;return _0x631f05(_0x171460[_0x3717e1(0x1e2)],f(f({'key':_0x55a839},Ze(_0x171460,_0x1a464a,_0x51f9d0)),_0x17fd56),(qe(_0x171460,_0x1a464a)[_0x3717e1(0x23f)]||[])[_0x3717e1(0x2b8)](function(_0x363c93,_0x56eb52){var _0x4ac8be=_0x3717e1;return ue(_0x363c93,''[_0x4ac8be(0x189)](_0x55a839,'-')[_0x4ac8be(0x189)](_0x171460[_0x4ac8be(0x1e2)],'-')[_0x4ac8be(0x189)](_0x56eb52),_0x1a464a,void 0x0,_0x51f9d0);}));}function Ze(_0x5bd2b2,_0x3b0edb,_0x3a3dae){var _0x40600e=_0x4a7fdc,_0x29a167=f({},_0x5bd2b2['attrs']);_0x3a3dae!=null&&_0x3a3dae[_0x40600e(0x225)]&&_0x29a167['fill']==='colorChannel1'&&(_0x29a167[_0x40600e(0x204)]=_0x3a3dae[_0x40600e(0x225)]),_0x5bd2b2[_0x40600e(0x1e2)]==='mask'&&_0x29a167['id']&&(_0x29a167['id']=_0x29a167['id']+_0x3b0edb[_0x40600e(0x1af)]),Object[_0x40600e(0x290)](_0x29a167)[_0x40600e(0x1f3)](function(_0x3f197e){var _0x134cdd=_0x40600e,_0x5b8485=_0x3f197e[0x0],_0x41f3e7=_0x3f197e[0x1];_0x5b8485===_0x134cdd(0x1b5)&&typeof _0x41f3e7==_0x134cdd(0x22d)&&(_0x29a167[_0x5b8485]=_0x41f3e7[_0x134cdd(0x27b)](/url\(#(.*)\)/,'url(#$1'[_0x134cdd(0x189)](_0x3b0edb[_0x134cdd(0x1af)],')')));});var _0xa334ba=_0x3b0edb['defIds'];return!_0xa334ba||_0xa334ba[_0x40600e(0x1ea)]===0x0||(_0x5bd2b2[_0x40600e(0x1e2)]===_0x40600e(0x1ac)&&_0x29a167[_0x40600e(0x1d9)]&&(_0x29a167[_0x40600e(0x1d9)]=_0x29a167[_0x40600e(0x1d9)]+_0x3b0edb[_0x40600e(0x1af)]),Object[_0x40600e(0x290)](_0x29a167)[_0x40600e(0x1f3)](function(_0x13ac3c){var _0x2c3cc0=_0x40600e,_0x481b3a=_0x13ac3c[0x0],_0x104a6c=_0x13ac3c[0x1];typeof _0x104a6c==_0x2c3cc0(0x22d)&&(_0x29a167[_0x481b3a]=_0x104a6c[_0x2c3cc0(0x27b)](/url\(#(.*)\)/,'url(#$1'[_0x2c3cc0(0x189)](_0x3b0edb[_0x2c3cc0(0x1af)],')')));})),_0x29a167;}function qe(_0x21d5ca,_0x5857c7){var _0x20ce80=_0x4a7fdc,_0x12d595,_0x1d55bd=_0x5857c7['defIds'];return!_0x1d55bd||_0x1d55bd['length']===0x0?_0x21d5ca:_0x21d5ca[_0x20ce80(0x1e2)]===_0x20ce80(0x1da)&&(!((_0x12d595=_0x21d5ca[_0x20ce80(0x23f)])===null||_0x12d595===void 0x0)&&_0x12d595[_0x20ce80(0x1ea)])?f(f({},_0x21d5ca),{'children':_0x21d5ca[_0x20ce80(0x23f)][_0x20ce80(0x2b8)](function(_0x59170f){var _0x4cdcc2=_0x20ce80;return typeof _0x59170f['attrs']['id']=='string'&&_0x1d55bd&&_0x1d55bd[_0x4cdcc2(0x2af)](_0x59170f[_0x4cdcc2(0x266)]['id'])?f(f({},_0x59170f),{'attrs':f(f({},_0x59170f[_0x4cdcc2(0x266)]),{'id':_0x59170f[_0x4cdcc2(0x266)]['id']+_0x5857c7['idSuffix']})}):_0x59170f;})}):_0x21d5ca;}function Xe(){var _0x2831e=_0x4a7fdc;return Math[_0x2831e(0x198)]()[_0x2831e(0x18c)](0x24)[_0x2831e(0x1b8)](0x2,0x8);}w[_0x4a7fdc(0x1fa)]=_0x4a7fdc(0x1cc);var Je={'tag':'svg','attrs':{'xmlns':_0x4a7fdc(0x2b0),'fill':_0x4a7fdc(0x176),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4a7fdc(0x226)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x4a7fdc(0x1e4),'clipRule':_0x4a7fdc(0x1e4)}}]},le=_0x5f14d1(function(_0x5ccec2,_0x42aea3){var _0x44dd63=_0x4a7fdc;return _0x631f05(w,Object[_0x44dd63(0x20a)]({},_0x5ccec2,{'id':'check-mark-icon','ref':_0x42aea3,'icon':Je}));});le['displayName']=_0x4a7fdc(0x1cd);var Qe={'tag':_0x4a7fdc(0x2c2),'attrs':{'xmlns':_0x4a7fdc(0x2b0),'fill':_0x4a7fdc(0x176),'viewBox':_0x4a7fdc(0x2bf),'width':'1em','height':'1em'},'children':[{'tag':_0x4a7fdc(0x17e),'attrs':{'stroke':_0x4a7fdc(0x2a4),'d':_0x4a7fdc(0x1c7),'strokeLinecap':_0x4a7fdc(0x2c9),'strokeLinejoin':'round','strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0x4a7fdc(0x2a4),'d':_0x4a7fdc(0x22a),'strokeLinecap':_0x4a7fdc(0x2c9),'strokeLinejoin':'round','strokeWidth':1.33}}]},ve=_0x5f14d1(function(_0x39e5e5,_0x762757){var _0xd2832=_0x4a7fdc;return _0x631f05(w,Object[_0xd2832(0x20a)]({},_0x39e5e5,{'id':_0xd2832(0x24d),'ref':_0x762757,'icon':Qe}));});ve[_0x4a7fdc(0x1fa)]=_0x4a7fdc(0x280);var en={'tag':'svg','attrs':{'xmlns':_0x4a7fdc(0x2b0),'fill':_0x4a7fdc(0x176),'viewBox':_0x4a7fdc(0x171),'width':_0x4a7fdc(0x226),'height':_0x4a7fdc(0x226)},'children':[{'tag':'path','attrs':{'fill':_0x4a7fdc(0x2a4),'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':_0x4a7fdc(0x17e),'attrs':{'fill':_0x4a7fdc(0x2a4),'d':_0x4a7fdc(0x1a7)}},{'tag':_0x4a7fdc(0x17e),'attrs':{'fill':_0x4a7fdc(0x2a4),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':'evenodd','clipRule':_0x4a7fdc(0x1e4)}}]},de=_0x5f14d1(function(_0x464fe2,_0x3c698d){var _0x141253=_0x4a7fdc;return _0x631f05(w,Object[_0x141253(0x20a)]({},_0x464fe2,{'id':_0x141253(0x26e),'ref':_0x3c698d,'icon':en}));});de[_0x4a7fdc(0x1fa)]=_0x4a7fdc(0x1b9);var nn={'tag':_0x4a7fdc(0x2c2),'attrs':{'xmlns':_0x4a7fdc(0x2b0),'fill':_0x4a7fdc(0x176),'viewBox':_0x4a7fdc(0x171),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4a7fdc(0x223)},'children':[{'tag':'path','attrs':{'stroke':_0x4a7fdc(0x2a4),'d':_0x4a7fdc(0x166),'strokeLinecap':_0x4a7fdc(0x2c9),'strokeLinejoin':_0x4a7fdc(0x2c9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a7fdc(0x1f9),'attrs':{'id':_0x4a7fdc(0x295)},'children':[{'tag':'path','attrs':{'fill':_0x4a7fdc(0x283),'d':_0x4a7fdc(0x241)}}]}]}],'defIds':[_0x4a7fdc(0x295)]},fe=_0x5f14d1(function(_0x26d73,_0xd3d9c4){var _0x1522f8=_0x4a7fdc;return _0x631f05(w,Object['assign']({},_0x26d73,{'id':_0x1522f8(0x200),'ref':_0xd3d9c4,'icon':nn}));});fe[_0x4a7fdc(0x1fa)]=_0x4a7fdc(0x298);var rn={'tag':_0x4a7fdc(0x2c2),'attrs':{'xmlns':_0x4a7fdc(0x2b0),'fill':_0x4a7fdc(0x176),'viewBox':_0x4a7fdc(0x263),'width':_0x4a7fdc(0x226),'height':_0x4a7fdc(0x226)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a7fdc(0x208)},'children':[{'tag':_0x4a7fdc(0x17e),'attrs':{'stroke':'currentColor','d':_0x4a7fdc(0x1eb),'strokeLinecap':_0x4a7fdc(0x2c9),'strokeLinejoin':_0x4a7fdc(0x2c9),'strokeWidth':1.2}}]},{'tag':_0x4a7fdc(0x1da),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4a7fdc(0x29e)},'children':[{'tag':'path','attrs':{'fill':_0x4a7fdc(0x283),'d':_0x4a7fdc(0x241),'transform':_0x4a7fdc(0x28f)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x5f14d1(function(_0x448b67,_0x2ea719){var _0x378a9d=_0x4a7fdc;return _0x631f05(w,Object[_0x378a9d(0x20a)]({},_0x448b67,{'id':_0x378a9d(0x22c),'ref':_0x2ea719,'icon':rn}));});ge[_0x4a7fdc(0x1fa)]=_0x4a7fdc(0x22f);function tn(_0x58f66a){var _0xff6602=_0x4a7fdc,_0x43ad54,_0x276197;const {mcpCoreConfig:_0x308636,onSave:_0xfbcfcd,loading:_0x38ee61=!0x1,config:_0x4f7a76,connectionStatus$:_0x2d2a0e,connectionError$:_0x590a2d,currentApiKey$:_0x376594,currentSessionId$:_0x461c81}=_0x58f66a,_0x4c4972=_0x2ba020(_0x43f6c8),_0xd4ab36=_0x1aaeae(_0x2d2a0e,_0x670a53[_0xff6602(0x1dd)]),_0x520bf6=_0x1aaeae(_0x590a2d,_0x374e8e['NONE']),_0x1917bf=_0x1aaeae(_0x461c81,''),_0x168b07=_0x1aaeae(_0x376594,''),[_0x104d50,_0x2d1e06]=_0x1e4853(_0x168b07||''),_0x506019=!0x0,_0x4b91ed=_0x4f7a76['showDeveloperTools']&&_0x308636[_0xff6602(0x1be)]&&(_0x308636[_0xff6602(0x1be)][_0xff6602(0x2af)](_0xff6602(0x1f0))||_0x308636[_0xff6602(0x1be)][_0xff6602(0x2af)](_0xff6602(0x24c))),_0x1885a9=(_0x43ad54=_0x308636[_0xff6602(0x1be)])==null?void 0x0:_0x43ad54['includes'](_0xff6602(0x1f0)),_0x581807=(_0x276197=_0x308636[_0xff6602(0x1be)])==null?void 0x0:_0x276197['includes'](_0xff6602(0x24c)),_0x37b062=_0x1885a9?_0xff6602(0x21e):_0xff6602(0x1a9),_0x1ac1a7=_0x4f7a76[_0xff6602(0x1ae)]&&(_0x1885a9||_0x581807),[_0x398b82,_0x52a56f]=_0x1e4853(!_0x104d50[_0xff6602(0x288)]()),_0x289c2b=(_0x4c3e83,_0x334ba9)=>{var _0x314b31=_0xff6602;if(_0x334ba9===_0x374e8e[_0x314b31(0x282)])return _0x314b31(0x197);switch(_0x4c3e83){case _0x670a53[_0x314b31(0x1dc)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x670a53[_0x314b31(0x278)]:case _0x670a53[_0x314b31(0x196)]:return _0x314b31(0x276);case _0x670a53['FAILED']:return _0x314b31(0x197);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x4a6a36=(_0xacd2cf,_0x2a94b9)=>{var _0x3e1d2f=_0xff6602;if(_0x2a94b9===_0x374e8e[_0x3e1d2f(0x282)])return _0x3e1d2f(0x287);switch(_0xacd2cf){case _0x670a53[_0x3e1d2f(0x1dc)]:return _0x3e1d2f(0x185);case _0x670a53[_0x3e1d2f(0x278)]:case _0x670a53[_0x3e1d2f(0x196)]:return'univer-bg-blue-500';case _0x670a53['FAILED']:return'univer-bg-red-500';default:return _0x3e1d2f(0x28d);}},_0xbda28e=_0x130993=>{var _0x59ed10=_0xff6602;switch(_0x130993){case _0x670a53[_0x59ed10(0x1dc)]:return _0x4c4972['t'](_0x59ed10(0x269));case _0x670a53[_0x59ed10(0x278)]:return _0x4c4972['t'](_0x59ed10(0x16c));case _0x670a53[_0x59ed10(0x18e)]:return _0x4c4972['t'](_0x59ed10(0x27f));case _0x670a53[_0x59ed10(0x196)]:return _0x4c4972['t']('mcpConfig.connectionStatus.retrying');default:return _0x4c4972['t'](_0x59ed10(0x1c6));}},_0x199166=_0x5e928a=>{var _0x294088=_0xff6602;switch(_0x5e928a){case _0x374e8e[_0x294088(0x282)]:return _0x4c4972['t'](_0x294088(0x207));case _0x374e8e[_0x294088(0x194)]:return _0x4c4972['t'](_0x294088(0x1d6));case _0x374e8e[_0x294088(0x26a)]:return _0x4c4972['t'](_0x294088(0x220));case _0x374e8e[_0x294088(0x1bb)]:return _0x4c4972['t'](_0x294088(0x2a8));default:return'';}},_0x315a56=_0x1cae1e(()=>{var _0x2ce21c=_0xff6602;const _0x3c8357={..._0x308636,'apiKey':_0x104d50[_0x2ce21c(0x288)](),'enableAuth':_0x506019};_0xfbcfcd(_0x3c8357);},[_0x308636,_0x104d50,_0x506019,_0xfbcfcd]),_0x1beeeb=_0x104d50[_0xff6602(0x288)]()[_0xff6602(0x1ea)]>0x0;return _0x8e6a35('div',{'className':_0xff6602(0x183),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x25f),'children':_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x275),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x256),'children':_0x30c4d5('span',{'className':'univer-text-white','children':'⚙'})}),_0x30c4d5(_0xff6602(0x27c),{'children':_0x30c4d5('p',{'className':_0xff6602(0x1f8),'children':_0x4c4972['t'](_0xff6602(0x177))})})]})}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x259),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x289c2b(_0xd4ab36,_0x520bf6)+_0xff6602(0x17a),'children':_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x257),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4a6a36(_0xd4ab36,_0x520bf6)+_0xff6602(0x261)}),_0x30c4d5(_0xff6602(0x2ca),{'className':'univer-text-sm\x20univer-font-medium','children':_0xbda28e(_0xd4ab36)})]})}),_0x520bf6!==_0x374e8e['NONE']&&(_0xd4ab36===_0x670a53['FAILED']||_0x520bf6===_0x374e8e['UNAUTHORIZED'])&&_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x28c),'children':_0x8e6a35(_0xff6602(0x27c),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x30c4d5(_0xff6602(0x2ca),{'className':_0xff6602(0x1e5),'children':'⚠️'}),_0x30c4d5('p',{'className':_0xff6602(0x24a),'children':_0x199166(_0x520bf6)})]})})]}),_0x30c4d5(_0xff6602(0x27c),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x8e6a35('div',{'className':_0xff6602(0x1a1),'children':[_0x8e6a35('div',{'className':_0xff6602(0x2b6),'children':[_0x8e6a35(_0xff6602(0x242),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x30c4d5(_0xff6602(0x2ca),{'children':'🔑'}),'\x20',_0x4c4972['t'](_0xff6602(0x25d)),_0x30c4d5(_0xff6602(0x2ca),{'className':_0xff6602(0x291),'children':'*'}),_0x4b91ed&&_0x30c4d5('a',{'href':'javascript:void(0)','onClick':()=>_0x52a56f(!0x0),'className':_0xff6602(0x268),'title':_0x4c4972['t'](_0xff6602(0x16e)),'children':_0x30c4d5(de,{})})]}),_0x30c4d5(_0x17a88b,{'type':_0xff6602(0x1c0),'placeholder':_0x4c4972['t'](_0xff6602(0x2c4)),'value':_0x104d50,'onChange':_0x2d1e06,'disabled':_0x38ee61,'autoComplete':'off'}),_0x30c4d5('p',{'className':_0xff6602(0x250),'children':_0x4c4972['t']('mcpConfig.apiKeyHint')})]}),_0x4b91ed&&_0x398b82&&_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x2be),'children':[_0x30c4d5('a',{'href':_0xff6602(0x2a3),'onClick':()=>_0x52a56f(!0x1),'className':_0xff6602(0x1c2),'title':'Close','children':_0x30c4d5(ve,{})}),_0x8e6a35('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x30c4d5('div',{'className':_0xff6602(0x1b0),'children':_0x30c4d5('span',{'className':_0xff6602(0x1d7),'children':'🚀'})}),_0x8e6a35('div',{'className':_0xff6602(0x1db),'children':[_0x30c4d5('h4',{'className':_0xff6602(0x294),'children':_0x4c4972['t'](_0xff6602(0x16e))}),_0x30c4d5('p',{'className':_0xff6602(0x1bf),'children':_0x4c4972['t'](_0xff6602(0x2b3))}),_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x1ff),'children':_0x1ac1a7&&_0x8e6a35('a',{'href':_0x37b062,'target':'_blank','rel':_0xff6602(0x277),'className':_0xff6602(0x296),'children':[_0x30c4d5(_0xff6602(0x2ca),{'children':'🤖'}),_0x4c4972['t'](_0xff6602(0x1f7)),_0x30c4d5(_0xff6602(0x2ca),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x8e6a35(_0xff6602(0x27c),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x4c4972['t'](_0xff6602(0x1a0))]})]})]})]}),_0x4f7a76[_0xff6602(0x1ae)]&&_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x1aa),'children':[_0x8e6a35('h4',{'className':_0xff6602(0x2a2),'children':[_0x30c4d5(_0xff6602(0x2ca),{'children':'🔗'}),'\x20',_0x4c4972['t'](_0xff6602(0x187))]}),_0x8e6a35(_0xff6602(0x27c),{'className':'univer-space-y-4','children':[_0x8e6a35(_0xff6602(0x27c),{'className':'univer-space-y-3','children':[_0x30c4d5('p',{'className':_0xff6602(0x18b),'children':_0x4c4972['t']('mcpConfig.configInstructions')}),_0x8e6a35('div',{'className':'univer-space-y-2','children':[_0x30c4d5('div',{'className':_0xff6602(0x1ed),'children':_0x4c4972['t'](_0xff6602(0x1f5))}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x2a1),'children':[_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x257),'children':[_0x30c4d5(_0xff6602(0x2ca),{'className':_0xff6602(0x25c),'children':'1'}),_0x4c4972['t']('mcpConfig.configStep1')]}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x257),'children':[_0x30c4d5(_0xff6602(0x2ca),{'className':_0xff6602(0x25c),'children':'2'}),_0x4c4972['t'](_0xff6602(0x23a))]}),_0x8e6a35('div',{'className':_0xff6602(0x257),'children':[_0x30c4d5('span',{'className':_0xff6602(0x25c),'children':'3'}),_0x4c4972['t'](_0xff6602(0x219))]})]})]})]}),_0x8e6a35('div',{'className':_0xff6602(0x2b6),'children':[_0x30c4d5('div',{'className':_0xff6602(0x1ed),'children':'MCP\x20Configuration'}),_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x236),'children':_0x30c4d5(_0xff6602(0x23e),{'className':_0xff6602(0x1b2),'children':_0xff6602(0x272)+_0x1917bf+_0xff6602(0x209)+(_0x104d50||'<API_KEY>')+_0xff6602(0x1fe)})})]}),_0x8e6a35('div',{'className':'univer-space-y-3','children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x1ed),'children':_0x4c4972['t']('mcpConfig.configParameters')}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x2b6),'children':[_0x8e6a35('div',{'className':_0xff6602(0x28a),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x205)}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x18f),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xff6602(0x2c6)}),_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x250),'children':_0x4c4972['t'](_0xff6602(0x1c1))})]})]}),_0x8e6a35('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x30c4d5('div',{'className':_0xff6602(0x205)}),_0x8e6a35(_0xff6602(0x27c),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x1d1),'children':_0xff6602(0x215)}),_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x250),'children':_0x4c4972['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x30c4d5(_0x231b69,{'onClick':_0x315a56,'disabled':!_0x1beeeb||_0x38ee61,'className':_0xff6602(0x292),'children':_0x38ee61?_0x8e6a35('span',{'className':_0xff6602(0x257),'children':[_0x30c4d5(_0xff6602(0x2ca),{'children':'⟲'}),_0x4c4972['t'](_0xff6602(0x1b7))]}):_0x8e6a35(_0xff6602(0x2ca),{'className':_0xff6602(0x257),'children':[_0x30c4d5(le,{}),_0x4c4972['t'](_0xff6602(0x190))]})}),_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x24b),'children':_0x8e6a35(_0xff6602(0x27c),{'className':'univer-flex\x20univer-gap-3','children':[_0x30c4d5(_0xff6602(0x2ca),{'className':_0xff6602(0x239),'children':'💡'}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x252),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x1df),'children':_0xff6602(0x1f1)}),_0x8e6a35(_0xff6602(0x27c),{'children':['•',_0x4c4972['t'](_0xff6602(0x1d2))]}),_0x8e6a35(_0xff6602(0x27c),{'children':['•',_0x4c4972['t'](_0xff6602(0x286))]})]})]})})]})})]});}const x=_0x4a7fdc(0x21a),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object['getOwnPropertyDescriptor'],sn=(_0x2ce44f,_0x29d693,_0x1a1d2d,_0x156618)=>{var _0x477311=_0x4a7fdc;for(var _0x370418=_0x156618>0x1?void 0x0:_0x156618?on(_0x29d693,_0x1a1d2d):_0x29d693,_0x2b2534=_0x2ce44f[_0x477311(0x1ea)]-0x1,_0x295dc4;_0x2b2534>=0x0;_0x2b2534--)(_0x295dc4=_0x2ce44f[_0x2b2534])&&(_0x370418=_0x295dc4(_0x370418)||_0x370418);return _0x370418;},g=(_0x37eac0,_0x8b827d)=>(_0x293dde,_0x26a4bd)=>_0x8b827d(_0x293dde,_0x26a4bd,_0x37eac0);const j=_0x4a7fdc(0x231),U=_0x4a7fdc(0x1a5);let I=class extends _0xa01f76{constructor(_0x26b5fd,_0x431ccf,_0x3d7dbc,_0x4241f3,_0xb5628f,_0x5814da,_0x554be9,_0x272519,_0x2501ae,_0x37e499){var _0x39da56=_0x4a7fdc;super(),S(this,'_loading$',new _0x1f1878(!0x1)),S(this,'_mcpCoreConfig$',new _0x1f1878({})),S(this,_0x39da56(0x19a),new _0x1f1878({})),S(this,_0x39da56(0x270),new _0x1f1878('')),S(this,_0x39da56(0x1e8),async _0x41e6c9=>{var _0x3687ca=_0x39da56,_0x31284f,_0xa08955;this['_loading$'][_0x3687ca(0x1e9)](!0x0);try{const _0xf6ec3a=await this['_validateConfig'](_0x41e6c9);if(!_0xf6ec3a[_0x3687ca(0x188)]){this[_0x3687ca(0x174)][_0x3687ca(0x2c8)]({'type':_0x472b1c['Error'],'content':_0xf6ec3a[_0x3687ca(0x2ab)]||this[_0x3687ca(0x172)]['t'](_0x3687ca(0x1f2))});return;}_0x41e6c9[_0x3687ca(0x29a)]?await this['_localStorageService']['setItem'](j,_0x41e6c9['apiKey'][_0x3687ca(0x288)]()):await this[_0x3687ca(0x1e6)][_0x3687ca(0x2b9)](j),this[_0x3687ca(0x270)][_0x3687ca(0x1e9)](((_0x31284f=_0x41e6c9[_0x3687ca(0x29a)])==null?void 0x0:_0x31284f[_0x3687ca(0x288)]())||''),this[_0x3687ca(0x262)][_0x3687ca(0x173)]({'Authorization':'Bearer\x20'+((_0xa08955=_0x41e6c9[_0x3687ca(0x29a)])==null?void 0x0:_0xa08955[_0x3687ca(0x288)]())}),this['_messageService']['show']({'type':_0x472b1c[_0x3687ca(0x2bc)],'content':this[_0x3687ca(0x172)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x2ef176=_0x3687ca;this[_0x2ef176(0x1a6)][_0x2ef176(0x1de)](U);},0x320);}catch(_0x3a2c8e){this[_0x3687ca(0x1ce)][_0x3687ca(0x1bc)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3a2c8e),this[_0x3687ca(0x174)][_0x3687ca(0x2c8)]({'type':_0x472b1c[_0x3687ca(0x1d5)],'content':this[_0x3687ca(0x172)]['t'](_0x3687ca(0x1c4))});}finally{this[_0x3687ca(0x243)][_0x3687ca(0x1e9)](!0x1);}}),(this['_injector']=_0x26b5fd,this[_0x39da56(0x18a)]=_0x431ccf,this[_0x39da56(0x227)]=_0x3d7dbc,this[_0x39da56(0x1e6)]=_0x4241f3,this[_0x39da56(0x1a6)]=_0xb5628f,this[_0x39da56(0x174)]=_0x5814da,this[_0x39da56(0x175)]=_0x554be9,this[_0x39da56(0x172)]=_0x272519,this['_logService']=_0x2501ae,this['_mcpConnectionController']=_0x37e499,this[_0x39da56(0x2cd)](),this['_loadStoredApiKey'](),this[_0x39da56(0x279)]());}['showConfigPanel'](){var _0x50ff4f=_0x4a7fdc;const _0x1f8270=this[_0x50ff4f(0x227)][_0x50ff4f(0x260)](x);_0x1f8270!=null&&_0x1f8270[_0x50ff4f(0x1ae)]&&this[_0x50ff4f(0x1a6)][_0x50ff4f(0x289)]({'id':U,'title':{'title':this[_0x50ff4f(0x172)]['t'](_0x50ff4f(0x26d))},'children':{'label':_0x50ff4f(0x1e7)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x15e653=_0x50ff4f;this[_0x15e653(0x1a6)][_0x15e653(0x1de)](U);}});}[_0x4a7fdc(0x180)](){var _0x42fee3=_0x4a7fdc;return this[_0x42fee3(0x16f)][_0x42fee3(0x2b7)];}[_0x4a7fdc(0x279)](){var _0x14e7ae=_0x4a7fdc;this['disposeWithMe'](this[_0x14e7ae(0x175)][_0x14e7ae(0x19e)](_0x14e7ae(0x1e7),this[_0x14e7ae(0x1cf)]()));}['_createConfigPanelComponent'](){var _0x3515f8=_0x4a7fdc;return _0x496805(()=>{var _0x51c8bc=_0x27a9,_0x4f0ea7,_0x1161c6,_0x2200ec;return _0x30c4d5(tn,{'config':this[_0x51c8bc(0x19a)][_0x51c8bc(0x2b7)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x51c8bc(0x2b7)],'currentApiKey$':this[_0x51c8bc(0x270)],'onSave':this[_0x51c8bc(0x1e8)],'loading':this[_0x51c8bc(0x243)][_0x51c8bc(0x2b7)],'connectionStatus$':(_0x4f0ea7=this[_0x51c8bc(0x262)])==null?void 0x0:_0x4f0ea7[_0x51c8bc(0x2ad)],'connectionError$':(_0x1161c6=this['_mcpConnectionController'])==null?void 0x0:_0x1161c6[_0x51c8bc(0x213)],'currentSessionId$':(_0x2200ec=this[_0x51c8bc(0x262)])==null?void 0x0:_0x2200ec[_0x51c8bc(0x22b)]});},this[_0x3515f8(0x214)]);}['_initConfigSync'](){var _0x2bcca5=_0x4a7fdc;this[_0x2bcca5(0x2a7)](this['_configService'][_0x2bcca5(0x249)](_0x181ae6)['subscribe'](_0x1a3d26=>{var _0x23043e=_0x2bcca5;this[_0x23043e(0x16f)]['next'](_0x1a3d26||{});}));const _0x3bac66=this[_0x2bcca5(0x227)]['getConfig'](_0x181ae6);this[_0x2bcca5(0x16f)][_0x2bcca5(0x1e9)](_0x3bac66||{}),this[_0x2bcca5(0x2a7)](this['_configService'][_0x2bcca5(0x249)](x)[_0x2bcca5(0x1ee)](_0x31725c=>{var _0x129ec6=_0x2bcca5;this[_0x129ec6(0x19a)][_0x129ec6(0x1e9)](_0x31725c||{});}));const _0x1f9ee4=this['_configService'][_0x2bcca5(0x260)](x);this[_0x2bcca5(0x19a)]['next'](_0x1f9ee4||{});}async['_loadStoredApiKey'](){var _0x1da37c=_0x4a7fdc;const _0x19846c=this['_configService'][_0x1da37c(0x260)](x);if(!(_0x19846c!=null&&_0x19846c[_0x1da37c(0x1ae)]))return;const _0x5c02cf=await this[_0x1da37c(0x1e6)][_0x1da37c(0x273)](j);_0x5c02cf&&(this[_0x1da37c(0x262)][_0x1da37c(0x173)]({'Authorization':_0x1da37c(0x258)+_0x5c02cf}),this['_apiKey$'][_0x1da37c(0x1e9)](_0x5c02cf));}async[_0x4a7fdc(0x2ae)](_0x4fca02){var _0x21f241=_0x4a7fdc;if(!_0x4fca02[_0x21f241(0x29a)]||_0x4fca02['apiKey']['trim']()[_0x21f241(0x1ea)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x21f241(0x23b))};if(_0x4fca02[_0x21f241(0x29a)][_0x21f241(0x288)]()[_0x21f241(0x1ea)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x21f241(0x172)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x9b587a=await this['_injector'][_0x21f241(0x267)](_0x68dca4)[_0x21f241(0x2ac)](_0x4fca02[_0x21f241(0x29a)][_0x21f241(0x288)]());return _0x9b587a[_0x21f241(0x188)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x9b587a['error']||this[_0x21f241(0x172)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x3a8e11){return console[_0x21f241(0x1bd)](_0x21f241(0x248),_0x3a8e11),{'isValid':!0x0};}}};I=sn([g(0x0,_0x1760ac(_0x287fae)),g(0x1,_0x3e6fa8),g(0x2,_0x5c70e1),g(0x3,_0x311a32),g(0x4,_0x3d3fab),g(0x5,_0x2a6379),g(0x6,_0x1760ac(_0x248eb4)),g(0x7,_0x1760ac(_0x43f6c8)),g(0x8,_0x4cbf5f),g(0x9,_0x1760ac(_0x68dca4))],I);const V={'id':_0x4a7fdc(0x2c0),'type':_0x595cb9['COMMAND'],'handler':async(_0x206ee4,_0x3db400)=>(_0x206ee4[_0x4a7fdc(0x267)](I)[_0x4a7fdc(0x2bd)](),!0x0)};function pe(_0x34146a,_0x5e13bf){var _0xb018a=_0x4a7fdc;switch(_0x34146a){case _0x670a53[_0xb018a(0x1dd)]:return _0xb018a(0x1d8);case _0x670a53[_0xb018a(0x278)]:return _0xb018a(0x221);case _0x670a53[_0xb018a(0x1dc)]:return _0xb018a(0x19b);case _0x670a53[_0xb018a(0x18e)]:switch(_0x5e13bf){case _0x374e8e[_0xb018a(0x282)]:return _0xb018a(0x216);case _0x374e8e[_0xb018a(0x194)]:return'mcpStatus.sessionOccupied';case _0x374e8e[_0xb018a(0x26a)]:return _0xb018a(0x193);case _0x374e8e['MAX_RETRIES_EXCEEDED']:return _0xb018a(0x16a);default:return'mcpStatus.failed';}case _0x670a53[_0xb018a(0x196)]:return _0xb018a(0x247);default:return _0xb018a(0x1c5);}}function cn(_0x555636,_0x30ff6a,_0x2edbe2,_0x478a19=!0x0){var _0x36f082=_0x4a7fdc;const _0x10ed69=pe(_0x555636,_0x30ff6a),_0x183084=_0x2edbe2['t'](_0x10ed69);return _0x478a19?_0x555636===_0x670a53[_0x36f082(0x1dd)]&&_0x30ff6a===_0x374e8e[_0x36f082(0x282)]?_0x183084+'\x20-\x20'+_0x2edbe2['t'](_0x36f082(0x17c)):_0x555636===_0x670a53[_0x36f082(0x1dc)]?''+_0x183084:_0x555636===_0x670a53['DISCONNECTED']||_0x555636===_0x670a53[_0x36f082(0x18e)]?_0x183084+_0x36f082(0x191)+_0x2edbe2['t'](_0x36f082(0x206)):_0x183084:_0x183084;}function an(_0x38ba4c){var _0x31c336=_0x4a7fdc;switch(_0x38ba4c){case _0x670a53[_0x31c336(0x1dc)]:return _0x31c336(0x217);case _0x670a53[_0x31c336(0x278)]:case _0x670a53[_0x31c336(0x196)]:return _0x31c336(0x1ec);case _0x670a53[_0x31c336(0x18e)]:case _0x670a53[_0x31c336(0x1dd)]:return _0x31c336(0x291);default:return _0x31c336(0x23c);}}function un(_0x5a3cd0){var _0x4e7cc7=_0x4a7fdc;const {status$:_0x58416c,error$:_0x3a0b3f,onConfigure:_0x5e5080,showClickable:_0x5dcd6c=!0x0}=_0x5a3cd0,_0x4e3a43=_0x1aaeae(_0x58416c,_0x670a53[_0x4e7cc7(0x1dd)]),_0x528120=_0x1aaeae(_0x3a0b3f,_0x374e8e[_0x4e7cc7(0x1b3)]),_0x4061f9=_0x2ba020(_0x43f6c8),_0x147db2=_0x4e3a43===_0x670a53['CONNECTED'];_0x4e3a43===_0x670a53['CONNECTING']||_0x670a53['RETRYING'];const _0x591848=_0x4061f9['t'](pe(_0x4e3a43,_0x528120)),_0x2a1712=cn(_0x4e3a43,_0x528120,_0x4061f9,_0x5dcd6c),_0x414869=an(_0x4e3a43),_0x43d65a=_0x147db2?_0x30c4d5(ge,{}):_0x30c4d5(fe,{}),_0x1aaff2=_0x1cae1e(()=>{_0x5dcd6c&&_0x5e5080&&_0x5e5080();},[_0x5dcd6c,_0x5e5080]);function _0x54f318(){var _0x3a1acd=_0x4e7cc7;return _0x8e6a35(_0x3a1acd(0x27c),{'className':_0x1ae4d3(_0x3a1acd(0x1ab),_0x5dcd6c&&_0x5e5080&&_0x3a1acd(0x170)),'onClick':_0x5dcd6c&&_0x5e5080?_0x1aaff2:void 0x0,'children':[_0x30c4d5(_0x3a1acd(0x27c),{'className':_0x1ae4d3('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x414869),'children':_0x43d65a}),_0x30c4d5('div',{'className':_0x3a1acd(0x2a5),'children':_0x591848})]});}return _0x30c4d5(_0x326603,{'title':_0x2a1712,'placement':_0x4e7cc7(0x26b),'children':_0x54f318()});}var ln=Object['getOwnPropertyDescriptor'],vn=(_0x4bb1ac,_0x4ce818,_0x4d44eb,_0x4a9497)=>{for(var _0x5dfd95=_0x4a9497>0x1?void 0x0:_0x4a9497?ln(_0x4ce818,_0x4d44eb):_0x4ce818,_0x3b6812=_0x4bb1ac['length']-0x1,_0x1d36c5;_0x3b6812>=0x0;_0x3b6812--)(_0x1d36c5=_0x4bb1ac[_0x3b6812])&&(_0x5dfd95=_0x1d36c5(_0x5dfd95)||_0x5dfd95);return _0x5dfd95;},A=(_0x20ea79,_0x117e44)=>(_0x95dfa0,_0x1eb932)=>_0x117e44(_0x95dfa0,_0x1eb932,_0x20ea79);let O=class extends _0xa01f76{constructor(_0x28b9e9,_0x57b719,_0x465da8,_0x177315){var _0x2e64b4=_0x4a7fdc;super(),this[_0x2e64b4(0x214)]=_0x28b9e9,this[_0x2e64b4(0x17f)]=_0x57b719,this[_0x2e64b4(0x18a)]=_0x465da8,this[_0x2e64b4(0x227)]=_0x177315,this[_0x2e64b4(0x2c5)](),this['_initStatusComponent']();}[_0x4a7fdc(0x2c5)](){var _0x1e9caa=_0x4a7fdc;const _0x360aa6=this[_0x1e9caa(0x227)]['getConfig'](x);_0x360aa6!=null&&_0x360aa6[_0x1e9caa(0x1ae)]&&(this[_0x1e9caa(0x17f)][_0x1e9caa(0x1fd)]=!0x1);}[_0x4a7fdc(0x1e1)](){var _0x520f70=_0x4a7fdc;const _0x52e4ec=this['_configService']['getConfig'](x);(_0x52e4ec==null?void 0x0:_0x52e4ec['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0x520f70(0x18a)][_0x520f70(0x16b)](_0x120766[_0x520f70(0x2b5)],()=>{var _0x52239a=_0x520f70,_0x55d715;return _0x496805(dn({'status$':this[_0x52239a(0x17f)][_0x52239a(0x2ad)],'error$':this[_0x52239a(0x17f)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x55d715=_0x52e4ec==null?void 0x0:_0x52e4ec[_0x52239a(0x1ae)])!=null?_0x55d715:!0x1}),this[_0x52239a(0x214)]);}));}[_0x4a7fdc(0x1c8)](){var _0x1834ac=_0x4a7fdc;this[_0x1834ac(0x214)]['get'](I)[_0x1834ac(0x2bd)]();}};O=vn([A(0x0,_0x1760ac(_0x287fae)),A(0x1,_0x1760ac(_0x68dca4)),A(0x2,_0x3e6fa8),A(0x3,_0x5c70e1)],O);function dn(_0x230e28){const {status$:_0x33464c,error$:_0x43570c,onConfigure:_0x4657f7,showClickable:_0x1fb9ee}=_0x230e28;return function(){return _0x30c4d5(un,{'status$':_0x33464c,'error$':_0x43570c,'onConfigure':_0x4657f7,'showClickable':_0x1fb9ee});};}function fn(_0x341e7c){var _0x3db076=_0x4a7fdc;return{'id':V['id'],'type':_0x2fadd6[_0x3db076(0x234)],'icon':_0x3db076(0x21d),'title':'mcpConfig.title','tooltip':_0x3db076(0x26d)};}const gn={[_0x91f210[_0x4a7fdc(0x17d)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};function _0x27a9(_0x17986c,_0x3c656f){var _0x21afe8=_0x21af();return _0x27a9=function(_0x27a9c9,_0x36e70a){_0x27a9c9=_0x27a9c9-0x166;var _0x5d8a04=_0x21afe8[_0x27a9c9];return _0x5d8a04;},_0x27a9(_0x17986c,_0x3c656f);}var pn=Object[_0x4a7fdc(0x281)],hn=(_0x198eba,_0x5b9adb,_0x2b20ac,_0x1ec15f)=>{var _0x2db72e=_0x4a7fdc;for(var _0x1ae0ba=_0x1ec15f>0x1?void 0x0:_0x1ec15f?pn(_0x5b9adb,_0x2b20ac):_0x5b9adb,_0x54ec84=_0x198eba[_0x2db72e(0x1ea)]-0x1,_0x464dd2;_0x54ec84>=0x0;_0x54ec84--)(_0x464dd2=_0x198eba[_0x54ec84])&&(_0x1ae0ba=_0x464dd2(_0x1ae0ba)||_0x1ae0ba);return _0x1ae0ba;},te=(_0x25e8a7,_0x2e34c8)=>(_0xd2ad77,_0x3a2436)=>_0x2e34c8(_0xd2ad77,_0x3a2436,_0x25e8a7);let k=class extends _0xa01f76{constructor(_0x417a7d,_0x47dfd4){var _0x23ff31=_0x4a7fdc;super(),this[_0x23ff31(0x2aa)]=_0x417a7d,this['_menuManagerService']=_0x47dfd4,this[_0x23ff31(0x181)](),this[_0x23ff31(0x2cb)]();}['_initializeCommands'](){[V]['forEach'](_0xba80c=>{var _0x33d8d4=_0x27a9;this[_0x33d8d4(0x2a7)](this[_0x33d8d4(0x2aa)][_0x33d8d4(0x201)](_0xba80c));});}[_0x4a7fdc(0x2cb)](){var _0x5e201a=_0x4a7fdc;this[_0x5e201a(0x29c)][_0x5e201a(0x18d)](gn);}};k=hn([te(0x0,_0x4b0bfa),te(0x1,_0x2a8c5e)],k);const On={'mcpStatus':{'disconnected':_0x4a7fdc(0x1fc),'connecting':_0x4a7fdc(0x1cb),'connected':_0x4a7fdc(0x232),'failed':_0x4a7fdc(0x1d0),'retrying':_0x4a7fdc(0x2ce),'unknown':_0x4a7fdc(0x29f),'unauthorized':_0x4a7fdc(0x1ba),'sessionOccupied':_0x4a7fdc(0x2a9),'networkError':_0x4a7fdc(0x20b),'maxRetriesExceeded':_0x4a7fdc(0x21f),'clickToConnect':_0x4a7fdc(0x19d),'clickToConfigure':_0x4a7fdc(0x1ad)},'mcpConfig':{'title':_0x4a7fdc(0x228),'description':_0x4a7fdc(0x224),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4a7fdc(0x233),'enableAuthHint':_0x4a7fdc(0x240),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x4a7fdc(0x2c1),'configStep2':_0x4a7fdc(0x230),'configStep3':_0x4a7fdc(0x284),'sessionId':_0x4a7fdc(0x1e3),'sessionIdDescription':_0x4a7fdc(0x169),'authorizationDescription':_0x4a7fdc(0x297),'configParameters':_0x4a7fdc(0x22e),'maxRetries':_0x4a7fdc(0x253),'save':_0x4a7fdc(0x1d3),'saving':_0x4a7fdc(0x2bb),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x4a7fdc(0x24e),'apiApplyInfo':{'title':_0x4a7fdc(0x1b4),'description':_0x4a7fdc(0x222),'univerAiLabel':_0x4a7fdc(0x25e),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4a7fdc(0x184),'apiKeyTooShort':_0x4a7fdc(0x26c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4a7fdc(0x264)},'connectionStatus':{'disconnected':_0x4a7fdc(0x167),'connecting':_0x4a7fdc(0x28b),'connected':'Connected','failed':_0x4a7fdc(0x274),'retrying':_0x4a7fdc(0x1c9)},'connectionError':{'unauthorized':_0x4a7fdc(0x203),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4a7fdc(0x293),'maxRetriesExceeded':_0x4a7fdc(0x245)}}},kn={'mcpStatus':{'disconnected':_0x4a7fdc(0x182),'connecting':_0x4a7fdc(0x2c7),'connected':_0x4a7fdc(0x1a3),'failed':_0x4a7fdc(0x255),'retrying':'MCP\x20重连中...','unknown':_0x4a7fdc(0x21b),'unauthorized':_0x4a7fdc(0x265),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x4a7fdc(0x235)},'mcpConfig':{'title':_0x4a7fdc(0x251),'description':_0x4a7fdc(0x25a),'apiKey':_0x4a7fdc(0x1a2),'apiKeyPlaceholder':_0x4a7fdc(0x28e),'apiKeyHint':_0x4a7fdc(0x1a4),'enableAuth':'启用身份验证','enableAuthHint':_0x4a7fdc(0x299),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x4a7fdc(0x254),'configInstructions':_0x4a7fdc(0x2a6),'configStepTitle':_0x4a7fdc(0x186),'configStep1':_0x4a7fdc(0x20f),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x4a7fdc(0x1a8),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x4a7fdc(0x2b1),'configParameters':_0x4a7fdc(0x285),'maxRetries':'最大重试次数','save':_0x4a7fdc(0x27e),'saving':_0x4a7fdc(0x246),'note1':_0x4a7fdc(0x271),'note2':_0x4a7fdc(0x27d),'configSaved':_0x4a7fdc(0x20d),'configError':_0x4a7fdc(0x19f),'apiApplyInfo':{'title':_0x4a7fdc(0x1ca),'description':_0x4a7fdc(0x27a),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x4a7fdc(0x192)},'validation':{'apiKeyRequired':_0x4a7fdc(0x212),'apiKeyTooShort':_0x4a7fdc(0x179),'invalidConfig':_0x4a7fdc(0x24f),'invalidApiKey':_0x4a7fdc(0x1fb)},'connectionStatus':{'disconnected':_0x4a7fdc(0x1f4),'connecting':_0x4a7fdc(0x17b),'connected':'已连接','failed':_0x4a7fdc(0x211),'retrying':_0x4a7fdc(0x20c)},'connectionError':{'unauthorized':_0x4a7fdc(0x25b),'sessionOccupied':_0x4a7fdc(0x237),'networkError':_0x4a7fdc(0x229),'maxRetriesExceeded':_0x4a7fdc(0x199)}}};var mn=Object['defineProperty'],Cn=Object['getOwnPropertyDescriptor'],yn=(_0x43986a,_0x48e1e9,_0x172914)=>_0x48e1e9 in _0x43986a?mn(_0x43986a,_0x48e1e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x172914}):_0x43986a[_0x48e1e9]=_0x172914,_n=(_0x465028,_0x1a360b,_0x1bbd44,_0x23083c)=>{var _0x269845=_0x4a7fdc;for(var _0x1f670a=_0x23083c>0x1?void 0x0:_0x23083c?Cn(_0x1a360b,_0x1bbd44):_0x1a360b,_0x37b9f8=_0x465028[_0x269845(0x1ea)]-0x1,_0x488161;_0x37b9f8>=0x0;_0x37b9f8--)(_0x488161=_0x465028[_0x37b9f8])&&(_0x1f670a=_0x488161(_0x1f670a)||_0x1f670a);return _0x1f670a;},E=(_0x84d8b1,_0x5b42ed)=>(_0x5a5dbe,_0x56d356)=>_0x5b42ed(_0x5a5dbe,_0x56d356,_0x84d8b1),xn=(_0x46ee07,_0x1515cd,_0x2910ed)=>yn(_0x46ee07,_0x1515cd+'',_0x2910ed);let L=class extends _0x2d050a{constructor(_0x2beb4b=re,_0x462ec1,_0x4ac1c1,_0x56c398,_0x57fc54,_0x52a7d3){var _0x4daa47=_0x4a7fdc;super(),this['_config']=_0x2beb4b,this['_injector']=_0x462ec1,this[_0x4daa47(0x227)]=_0x4ac1c1,this[_0x4daa47(0x18a)]=_0x56c398,this['_localStorageService']=_0x57fc54,this['_localeService']=_0x52a7d3;const {..._0x352673}=_0x35d545({},re,this['_config']);this[_0x4daa47(0x227)]['setConfig'](x,_0x352673);}async['onStarting'](){var _0x3e89d2=_0x4a7fdc;const _0x37be38=[[O],[I],[k]];this['_injector'][_0x3e89d2(0x202)](_0x3f0dc1)||_0x37be38['push']([_0x3f0dc1,{'useClass':_0x2af37c}]),_0x37be38['forEach'](_0x4e4a37=>this[_0x3e89d2(0x214)][_0x3e89d2(0x23d)](_0x4e4a37)),this['_injector']['get'](O),this[_0x3e89d2(0x214)][_0x3e89d2(0x267)](I),this[_0x3e89d2(0x214)]['get'](k);}};xn(L,_0x4a7fdc(0x238),_0x4a7fdc(0x1d4)),L=_n([_0x21b4be(_0x36760c),E(0x1,_0x1760ac(_0x287fae)),E(0x2,_0x5c70e1),E(0x3,_0x3e6fa8),E(0x4,_0x311a32),E(0x5,_0x1760ac(_0x43f6c8))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
1
+ var _0x4ed31c=_0x51c1;(function(_0x4106d4,_0x2bd5d4){var _0x1e218d=_0x51c1,_0x421873=_0x4106d4();while(!![]){try{var _0x3f68bb=parseInt(_0x1e218d(0x17b))/0x1*(-parseInt(_0x1e218d(0x23d))/0x2)+parseInt(_0x1e218d(0x205))/0x3+-parseInt(_0x1e218d(0x128))/0x4*(parseInt(_0x1e218d(0x146))/0x5)+parseInt(_0x1e218d(0x204))/0x6+-parseInt(_0x1e218d(0x13f))/0x7+parseInt(_0x1e218d(0x157))/0x8+-parseInt(_0x1e218d(0x10c))/0x9*(-parseInt(_0x1e218d(0x21a))/0xa);if(_0x3f68bb===_0x2bd5d4)break;else _0x421873['push'](_0x421873['shift']());}catch(_0x28760d){_0x421873['push'](_0x421873['shift']());}}}(_0x165a,0x72757));var we=Object[_0x4ed31c(0x1f0)],Ee=(_0xae3d74,_0x2bba62,_0x4b8124)=>_0x2bba62 in _0xae3d74?we(_0xae3d74,_0x2bba62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b8124}):_0xae3d74[_0x2bba62]=_0x4b8124,S=(_0x2c22a6,_0x160105,_0x1304dc)=>Ee(_0x2c22a6,typeof _0x160105!=_0x4ed31c(0x24f)?_0x160105+'':_0x160105,_0x1304dc);import{LocaleService as _0x4e3ec4,Inject as _0x5d0b7b,Injector as _0x27c22f,IConfigService as _0x2d795c,ILocalStorageService as _0x316095,ILogService as _0x2149b8,Disposable as _0x2137e9,CommandType as _0x30ecf7,ICommandService as _0x57fb84,DependentOn as _0x1e2773,Plugin as _0x545a86,merge as _0x2b4844}from'@univerjs/core';import{jsxs as _0x54da38,jsx as _0x51da11}from'react/jsx-runtime';function _0x51c1(_0x438996,_0x315154){var _0x165a06=_0x165a();return _0x51c1=function(_0x51c122,_0x264c30){_0x51c122=_0x51c122-0x10a;var _0x23edb9=_0x165a06[_0x51c122];return _0x23edb9;},_0x51c1(_0x438996,_0x315154);}import{MCPConnectionStatus as _0x509e76,MCPConnectionError as _0x2e807a,MCPConnectionController as _0x52d460,MCP_PLUGIN_CONFIG_KEY as _0x51258e,UniverMCPPlugin as _0x56e383}from'@univerjs-pro/mcp';import{Input as _0xfb65a6,Button as _0x3d379e,MessageType as _0x28655f,Tooltip as _0x3312ba,clsx as _0x412fd1}from'@univerjs/design';import{useDependency as _0x35e332,useObservable as _0x880488,IUIPartsService as _0x5e7b4e,IDialogService as _0x1fa379,IMessageService as _0x467b36,ComponentManager as _0x3bea49,connectInjector as _0x4ea3c8,BuiltInUIPart as _0x44dc29,MenuItemType as _0x37c1e4,RibbonStartGroup as _0x8a425e,IMenuManagerService as _0x1cab94}from'@univerjs/ui';import{BehaviorSubject as _0x3be41d}from'rxjs';import{forwardRef as _0x4dc8f6,useRef as _0x3120e1,createElement as _0x49ea1d,useState as _0x5d797b,useCallback as _0x4514f3}from'react';import{ISocketService as _0x51255d,WebSocketService as _0x2d2a00}from'@univerjs/network';var f=function(){var _0x5f47f0=_0x4ed31c;return f=Object[_0x5f47f0(0x1f3)]||function(_0xd6b9c){var _0x2fb7cc=_0x5f47f0;for(var _0x587518,_0x5a728d=0x1,_0x3dbcb2=arguments[_0x2fb7cc(0x1bf)];_0x5a728d<_0x3dbcb2;_0x5a728d++){_0x587518=arguments[_0x5a728d];for(var _0x29ea85 in _0x587518)Object[_0x2fb7cc(0x1fb)][_0x2fb7cc(0x17c)][_0x2fb7cc(0x207)](_0x587518,_0x29ea85)&&(_0xd6b9c[_0x29ea85]=_0x587518[_0x29ea85]);}return _0xd6b9c;},f[_0x5f47f0(0x233)](this,arguments);},Ye=function(_0x3ca92d,_0x3aa431){var _0x3e2ae0=_0x4ed31c,_0x3dd30f={};for(var _0xe93c72 in _0x3ca92d)Object['prototype'][_0x3e2ae0(0x17c)]['call'](_0x3ca92d,_0xe93c72)&&_0x3aa431[_0x3e2ae0(0x147)](_0xe93c72)<0x0&&(_0x3dd30f[_0xe93c72]=_0x3ca92d[_0xe93c72]);if(_0x3ca92d!=null&&typeof Object[_0x3e2ae0(0x18f)]==_0x3e2ae0(0x13c)){for(var _0x3f21f8=0x0,_0xe93c72=Object[_0x3e2ae0(0x18f)](_0x3ca92d);_0x3f21f8<_0xe93c72[_0x3e2ae0(0x1bf)];_0x3f21f8++)_0x3aa431[_0x3e2ae0(0x147)](_0xe93c72[_0x3f21f8])<0x0&&Object['prototype'][_0x3e2ae0(0x212)][_0x3e2ae0(0x207)](_0x3ca92d,_0xe93c72[_0x3f21f8])&&(_0x3dd30f[_0xe93c72[_0x3f21f8]]=_0x3ca92d[_0xe93c72[_0x3f21f8]]);}return _0x3dd30f;},w=_0x4dc8f6(function(_0x223bce,_0xa0a009){var _0x14fe49=_0x4ed31c,_0x354067=_0x223bce[_0x14fe49(0x11b)],_0x2f56bd=_0x223bce['id'],_0x2f98fa=_0x223bce['className'],_0x371c99=_0x223bce[_0x14fe49(0x18e)],_0x51a166=Ye(_0x223bce,['icon','id','className',_0x14fe49(0x18e)]),_0x7971d1='univerjs-icon\x20univerjs-icon-'[_0x14fe49(0x25a)](_0x2f56bd,'\x20')[_0x14fe49(0x25a)](_0x2f98fa||'')[_0x14fe49(0x24c)](),_0x59e661=_0x3120e1('_'[_0x14fe49(0x25a)](Xe()));return ue(_0x354067,''[_0x14fe49(0x25a)](_0x2f56bd),{'defIds':_0x354067[_0x14fe49(0x1fa)],'idSuffix':_0x59e661[_0x14fe49(0x1d4)]},f({'ref':_0xa0a009,'className':_0x7971d1},_0x51a166),_0x371c99);});function ue(_0x55e39e,_0x133ebe,_0x4469f0,_0x40a155,_0x48f7df){var _0x506674=_0x4ed31c;return _0x49ea1d(_0x55e39e[_0x506674(0x1c3)],f(f({'key':_0x133ebe},Ze(_0x55e39e,_0x4469f0,_0x48f7df)),_0x40a155),(qe(_0x55e39e,_0x4469f0)[_0x506674(0x216)]||[])[_0x506674(0x1b7)](function(_0x2ff816,_0x25d980){var _0x2f47d1=_0x506674;return ue(_0x2ff816,''[_0x2f47d1(0x25a)](_0x133ebe,'-')[_0x2f47d1(0x25a)](_0x55e39e[_0x2f47d1(0x1c3)],'-')['concat'](_0x25d980),_0x4469f0,void 0x0,_0x48f7df);}));}function Ze(_0x4d1be2,_0x3427d0,_0x39e2eb){var _0x41c83f=_0x4ed31c,_0xffc43e=f({},_0x4d1be2[_0x41c83f(0x11d)]);_0x39e2eb!=null&&_0x39e2eb[_0x41c83f(0x14b)]&&_0xffc43e['fill']===_0x41c83f(0x14b)&&(_0xffc43e[_0x41c83f(0x12f)]=_0x39e2eb['colorChannel1']),_0x4d1be2[_0x41c83f(0x1c3)]==='mask'&&_0xffc43e['id']&&(_0xffc43e['id']=_0xffc43e['id']+_0x3427d0[_0x41c83f(0x18d)]),Object[_0x41c83f(0x153)](_0xffc43e)[_0x41c83f(0x173)](function(_0x4c0735){var _0xa4c0b=_0x41c83f,_0x5af9bf=_0x4c0735[0x0],_0x1092b5=_0x4c0735[0x1];_0x5af9bf===_0xa4c0b(0x1bd)&&typeof _0x1092b5==_0xa4c0b(0x184)&&(_0xffc43e[_0x5af9bf]=_0x1092b5[_0xa4c0b(0x10b)](/url\(#(.*)\)/,_0xa4c0b(0x20e)[_0xa4c0b(0x25a)](_0x3427d0[_0xa4c0b(0x18d)],')')));});var _0x3c191f=_0x3427d0[_0x41c83f(0x1fa)];return!_0x3c191f||_0x3c191f['length']===0x0||(_0x4d1be2[_0x41c83f(0x1c3)]===_0x41c83f(0x1b2)&&_0xffc43e[_0x41c83f(0x163)]&&(_0xffc43e['xlink:href']=_0xffc43e['xlink:href']+_0x3427d0[_0x41c83f(0x18d)]),Object[_0x41c83f(0x153)](_0xffc43e)['forEach'](function(_0x1ac025){var _0x3550dc=_0x41c83f,_0x3ab931=_0x1ac025[0x0],_0x5999d3=_0x1ac025[0x1];typeof _0x5999d3==_0x3550dc(0x184)&&(_0xffc43e[_0x3ab931]=_0x5999d3[_0x3550dc(0x10b)](/url\(#(.*)\)/,_0x3550dc(0x20e)[_0x3550dc(0x25a)](_0x3427d0[_0x3550dc(0x18d)],')')));})),_0xffc43e;}function qe(_0x3acc74,_0x584233){var _0x49eb82=_0x4ed31c,_0x2a1d4c,_0x11699a=_0x584233['defIds'];return!_0x11699a||_0x11699a[_0x49eb82(0x1bf)]===0x0?_0x3acc74:_0x3acc74[_0x49eb82(0x1c3)]===_0x49eb82(0x19d)&&(!((_0x2a1d4c=_0x3acc74[_0x49eb82(0x216)])===null||_0x2a1d4c===void 0x0)&&_0x2a1d4c[_0x49eb82(0x1bf)])?f(f({},_0x3acc74),{'children':_0x3acc74[_0x49eb82(0x216)]['map'](function(_0x5251a5){var _0x2b48af=_0x49eb82;return typeof _0x5251a5[_0x2b48af(0x11d)]['id']=='string'&&_0x11699a&&_0x11699a[_0x2b48af(0x18b)](_0x5251a5[_0x2b48af(0x11d)]['id'])?f(f({},_0x5251a5),{'attrs':f(f({},_0x5251a5['attrs']),{'id':_0x5251a5[_0x2b48af(0x11d)]['id']+_0x584233[_0x2b48af(0x18d)]})}):_0x5251a5;})}):_0x3acc74;}function Xe(){var _0x168a56=_0x4ed31c;return Math[_0x168a56(0x1ce)]()[_0x168a56(0x1b1)](0x24)[_0x168a56(0x1f1)](0x2,0x8);}w['displayName']=_0x4ed31c(0x22d);var Je={'tag':_0x4ed31c(0x213),'attrs':{'xmlns':_0x4ed31c(0x221),'fill':_0x4ed31c(0x11e),'viewBox':_0x4ed31c(0x264),'width':_0x4ed31c(0x1ed),'height':_0x4ed31c(0x1ed)},'children':[{'tag':_0x4ed31c(0x1c5),'attrs':{'fill':_0x4ed31c(0x1d3),'d':_0x4ed31c(0x111),'fillRule':'evenodd','clipRule':_0x4ed31c(0x1a9)}}]},le=_0x4dc8f6(function(_0x989a21,_0x20feff){return _0x49ea1d(w,Object['assign']({},_0x989a21,{'id':'check-mark-icon','ref':_0x20feff,'icon':Je}));});le[_0x4ed31c(0x160)]=_0x4ed31c(0x220);var Qe={'tag':'svg','attrs':{'xmlns':_0x4ed31c(0x221),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x4ed31c(0x1ed),'height':_0x4ed31c(0x1ed)},'children':[{'tag':_0x4ed31c(0x1c5),'attrs':{'stroke':_0x4ed31c(0x1d3),'d':_0x4ed31c(0x1be),'strokeLinecap':_0x4ed31c(0x246),'strokeLinejoin':_0x4ed31c(0x246),'strokeWidth':1.33}},{'tag':_0x4ed31c(0x1c5),'attrs':{'stroke':_0x4ed31c(0x1d3),'d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x4ed31c(0x246),'strokeLinejoin':_0x4ed31c(0x246),'strokeWidth':1.33}}]},ve=_0x4dc8f6(function(_0x5d67d6,_0x379a01){var _0x20ee11=_0x4ed31c;return _0x49ea1d(w,Object['assign']({},_0x5d67d6,{'id':_0x20ee11(0x144),'ref':_0x379a01,'icon':Qe}));});ve[_0x4ed31c(0x160)]=_0x4ed31c(0x209);var en={'tag':_0x4ed31c(0x213),'attrs':{'xmlns':_0x4ed31c(0x221),'fill':_0x4ed31c(0x11e),'viewBox':_0x4ed31c(0x264),'width':'1em','height':_0x4ed31c(0x1ed)},'children':[{'tag':_0x4ed31c(0x1c5),'attrs':{'fill':'currentColor','d':_0x4ed31c(0x196)}},{'tag':'path','attrs':{'fill':_0x4ed31c(0x1d3),'d':_0x4ed31c(0x1e7)}},{'tag':_0x4ed31c(0x1c5),'attrs':{'fill':_0x4ed31c(0x1d3),'d':_0x4ed31c(0x124),'fillRule':_0x4ed31c(0x1a9),'clipRule':_0x4ed31c(0x1a9)}}]},de=_0x4dc8f6(function(_0x494400,_0x43d8f3){var _0x1a2a62=_0x4ed31c;return _0x49ea1d(w,Object['assign']({},_0x494400,{'id':_0x1a2a62(0x191),'ref':_0x43d8f3,'icon':en}));});de[_0x4ed31c(0x160)]=_0x4ed31c(0x258);var nn={'tag':'svg','attrs':{'xmlns':_0x4ed31c(0x221),'fill':'none','viewBox':_0x4ed31c(0x264),'width':'1em','height':_0x4ed31c(0x1ed)},'children':[{'tag':'g','attrs':{'clipPath':_0x4ed31c(0x1c6)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x4ed31c(0x246),'strokeLinejoin':_0x4ed31c(0x246),'strokeWidth':1.2}}]},{'tag':_0x4ed31c(0x19d),'attrs':{},'children':[{'tag':_0x4ed31c(0x206),'attrs':{'id':_0x4ed31c(0x135)},'children':[{'tag':_0x4ed31c(0x1c5),'attrs':{'fill':_0x4ed31c(0x235),'d':_0x4ed31c(0x201)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},fe=_0x4dc8f6(function(_0x258aeb,_0x267a48){var _0x1c88a4=_0x4ed31c;return _0x49ea1d(w,Object[_0x1c88a4(0x1f3)]({},_0x258aeb,{'id':_0x1c88a4(0x1aa),'ref':_0x267a48,'icon':nn}));});fe[_0x4ed31c(0x160)]=_0x4ed31c(0x13b);var rn={'tag':_0x4ed31c(0x213),'attrs':{'xmlns':_0x4ed31c(0x221),'fill':'none','viewBox':_0x4ed31c(0x11a),'width':_0x4ed31c(0x1ed),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x4ed31c(0x1d3),'d':_0x4ed31c(0x1a5),'strokeLinecap':_0x4ed31c(0x246),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4ed31c(0x19d),'attrs':{},'children':[{'tag':_0x4ed31c(0x206),'attrs':{'id':_0x4ed31c(0x1b0)},'children':[{'tag':'path','attrs':{'fill':_0x4ed31c(0x235),'d':_0x4ed31c(0x201),'transform':_0x4ed31c(0x250)}}]}]}],'defIds':[_0x4ed31c(0x1b0)]},ge=_0x4dc8f6(function(_0x5c30c5,_0xb940d1){var _0x166c21=_0x4ed31c;return _0x49ea1d(w,Object[_0x166c21(0x1f3)]({},_0x5c30c5,{'id':_0x166c21(0x217),'ref':_0xb940d1,'icon':rn}));});ge[_0x4ed31c(0x160)]=_0x4ed31c(0x261);function tn(_0x3f4e8b){var _0x8b14c2=_0x4ed31c,_0xd57262,_0x1beb1c;const {mcpCoreConfig:_0x5ab444,onSave:_0x31cde9,loading:_0x5b7ca7=!0x1,config:_0x554809,connectionStatus$:_0x566322,connectionError$:_0x4d8c95,currentApiKey$:_0x34db9b,currentSessionId$:_0x1816ce}=_0x3f4e8b,_0x3df4dc=_0x35e332(_0x4e3ec4),_0x972c0f=_0x880488(_0x566322,_0x509e76[_0x8b14c2(0x22c)]),_0x2652a3=_0x880488(_0x4d8c95,_0x2e807a[_0x8b14c2(0x152)]),_0x4ad028=_0x880488(_0x1816ce,''),_0x547d82=_0x880488(_0x34db9b,''),[_0x422f81,_0x5b05a2]=_0x5d797b(_0x547d82||''),_0x3ce317=!0x0,_0xef644c=_0x554809['showDeveloperTools']&&_0x5ab444['mcpServerUrl']&&(_0x5ab444['mcpServerUrl'][_0x8b14c2(0x18b)]('univer.plus')||_0x5ab444[_0x8b14c2(0x125)][_0x8b14c2(0x18b)](_0x8b14c2(0x1e8))),_0x12f843=(_0xd57262=_0x5ab444[_0x8b14c2(0x125)])==null?void 0x0:_0xd57262[_0x8b14c2(0x18b)](_0x8b14c2(0x188)),_0x45c52d=(_0x1beb1c=_0x5ab444['mcpServerUrl'])==null?void 0x0:_0x1beb1c['includes']('univer.ai'),_0x175a4d=_0x12f843?'https://console.univer.plus':_0x8b14c2(0x1f8),_0x19f6de=_0x554809[_0x8b14c2(0x1df)]&&(_0x12f843||_0x45c52d),[_0x4baebd,_0x21630c]=_0x5d797b(!_0x422f81[_0x8b14c2(0x24c)]()),_0x2d5219=(_0x33f6ef,_0x12ed6b)=>{var _0xdddffc=_0x8b14c2;if(_0x12ed6b===_0x2e807a['UNAUTHORIZED'])return _0xdddffc(0x174);switch(_0x33f6ef){case _0x509e76[_0xdddffc(0x260)]:return _0xdddffc(0x263);case _0x509e76[_0xdddffc(0x24b)]:case _0x509e76[_0xdddffc(0x1cf)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x509e76[_0xdddffc(0x1f4)]:return _0xdddffc(0x174);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x5f12a6=(_0x11981e,_0x36e009)=>{var _0x172047=_0x8b14c2;if(_0x36e009===_0x2e807a[_0x172047(0x182)])return _0x172047(0x1c8);switch(_0x11981e){case _0x509e76['CONNECTED']:return _0x172047(0x25d);case _0x509e76['CONNECTING']:case _0x509e76[_0x172047(0x1cf)]:return _0x172047(0x262);case _0x509e76[_0x172047(0x1f4)]:return _0x172047(0x1c8);default:return _0x172047(0x243);}},_0x21ca2e=_0x5e84bd=>{var _0x37fcbb=_0x8b14c2;switch(_0x5e84bd){case _0x509e76[_0x37fcbb(0x260)]:return _0x3df4dc['t'](_0x37fcbb(0x219));case _0x509e76[_0x37fcbb(0x24b)]:return _0x3df4dc['t'](_0x37fcbb(0x269));case _0x509e76['FAILED']:return _0x3df4dc['t'](_0x37fcbb(0x110));case _0x509e76[_0x37fcbb(0x1cf)]:return _0x3df4dc['t'](_0x37fcbb(0x1a3));default:return _0x3df4dc['t'](_0x37fcbb(0x164));}},_0x2c9ef4=_0x4b274e=>{var _0x57f557=_0x8b14c2;switch(_0x4b274e){case _0x2e807a[_0x57f557(0x182)]:return _0x3df4dc['t'](_0x57f557(0x229));case _0x2e807a['SESSION_ID_OCCUPIED']:return _0x3df4dc['t'](_0x57f557(0x1ff));case _0x2e807a['NETWORK_ERROR']:return _0x3df4dc['t'](_0x57f557(0x1fd));case _0x2e807a[_0x57f557(0x20b)]:return _0x3df4dc['t'](_0x57f557(0x1ca));default:return'';}},_0x2de726=_0x4514f3(()=>{var _0x3b7e3e=_0x8b14c2;const _0x2e8542={..._0x5ab444,'apiKey':_0x422f81[_0x3b7e3e(0x24c)](),'enableAuth':_0x3ce317};_0x31cde9(_0x2e8542);},[_0x5ab444,_0x422f81,_0x3ce317,_0x31cde9]),_0x4baba8=_0x422f81[_0x8b14c2(0x24c)]()[_0x8b14c2(0x1bf)]>0x0;return _0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x208),'children':[_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x248),'children':_0x54da38('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x134),'children':_0x51da11(_0x8b14c2(0x10a),{'className':'univer-text-white','children':'⚙'})}),_0x51da11(_0x8b14c2(0x23b),{'children':_0x51da11('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3df4dc['t'](_0x8b14c2(0x22b))})})]})}),_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x1f2),'children':[_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x266)+_0x2d5219(_0x972c0f,_0x2652a3)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x210),'children':[_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x22a)+_0x5f12a6(_0x972c0f,_0x2652a3)+_0x8b14c2(0x200)}),_0x51da11(_0x8b14c2(0x10a),{'className':_0x8b14c2(0x1e4),'children':_0x21ca2e(_0x972c0f)})]})}),_0x2652a3!==_0x2e807a[_0x8b14c2(0x152)]&&(_0x972c0f===_0x509e76['FAILED']||_0x2652a3===_0x2e807a[_0x8b14c2(0x182)])&&_0x51da11('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x237),'children':[_0x51da11('span',{'className':_0x8b14c2(0x22e),'children':'⚠️'}),_0x51da11('p',{'className':_0x8b14c2(0x161),'children':_0x2c9ef4(_0x2652a3)})]})})]}),_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x117),'children':_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x16c),'children':[_0x54da38(_0x8b14c2(0x23b),{'className':'univer-space-y-2','children':[_0x54da38(_0x8b14c2(0x13d),{'className':_0x8b14c2(0x131),'children':[_0x51da11('span',{'children':'🔑'}),'\x20',_0x3df4dc['t'](_0x8b14c2(0x19c)),_0x51da11(_0x8b14c2(0x10a),{'className':_0x8b14c2(0x1cd),'children':'*'}),_0xef644c&&_0x51da11('a',{'href':_0x8b14c2(0x1e2),'onClick':()=>_0x21630c(!0x0),'className':_0x8b14c2(0x1ee),'title':_0x3df4dc['t'](_0x8b14c2(0x1b3)),'children':_0x51da11(de,{})})]}),_0x51da11(_0xfb65a6,{'type':_0x8b14c2(0x19b),'placeholder':_0x3df4dc['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x422f81,'onChange':_0x5b05a2,'disabled':_0x5b7ca7,'autoComplete':_0x8b14c2(0x256)}),_0x51da11('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3df4dc['t']('mcpConfig.apiKeyHint')})]}),_0xef644c&&_0x4baebd&&_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x24e),'children':[_0x51da11('a',{'href':_0x8b14c2(0x1e2),'onClick':()=>_0x21630c(!0x1),'className':_0x8b14c2(0x1c2),'title':_0x8b14c2(0x1c1),'children':_0x51da11(ve,{})}),_0x54da38(_0x8b14c2(0x23b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x1d6),'children':_0x51da11(_0x8b14c2(0x10a),{'className':_0x8b14c2(0x136),'children':'🚀'})}),_0x54da38('div',{'className':'univer-flex-1','children':[_0x51da11('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x3df4dc['t'](_0x8b14c2(0x1b3))}),_0x51da11('p',{'className':_0x8b14c2(0x1a6),'children':_0x3df4dc['t'](_0x8b14c2(0x17d))}),_0x51da11(_0x8b14c2(0x23b),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x19f6de&&_0x54da38('a',{'href':_0x175a4d,'target':_0x8b14c2(0x1eb),'rel':_0x8b14c2(0x21b),'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','children':[_0x51da11(_0x8b14c2(0x10a),{'children':'🤖'}),_0x3df4dc['t'](_0x8b14c2(0x17a)),_0x51da11('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x54da38(_0x8b14c2(0x23b),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x3df4dc['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x554809[_0x8b14c2(0x1df)]&&_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x203),'children':[_0x54da38('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x51da11(_0x8b14c2(0x10a),{'children':'🔗'}),'\x20',_0x3df4dc['t'](_0x8b14c2(0x177))]}),_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x10d),'children':[_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x114),'children':[_0x51da11('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x3df4dc['t'](_0x8b14c2(0x138))}),_0x54da38('div',{'className':'univer-space-y-2','children':[_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x1d5),'children':_0x3df4dc['t']('mcpConfig.configStepTitle')}),_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x21d),'children':[_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x210),'children':[_0x51da11(_0x8b14c2(0x10a),{'className':_0x8b14c2(0x151),'children':'1'}),_0x3df4dc['t']('mcpConfig.configStep1')]}),_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x210),'children':[_0x51da11(_0x8b14c2(0x10a),{'className':_0x8b14c2(0x151),'children':'2'}),_0x3df4dc['t'](_0x8b14c2(0x1e1))]}),_0x54da38('div',{'className':_0x8b14c2(0x210),'children':[_0x51da11(_0x8b14c2(0x10a),{'className':_0x8b14c2(0x151),'children':'3'}),_0x3df4dc['t'](_0x8b14c2(0x1c0))]})]})]})]}),_0x54da38(_0x8b14c2(0x23b),{'className':'univer-space-y-2','children':[_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x1d5),'children':_0x8b14c2(0x1cb)}),_0x51da11('div',{'className':_0x8b14c2(0x227),'children':_0x51da11('pre',{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':_0x8b14c2(0x10e)+_0x4ad028+'\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20'+(_0x422f81||_0x8b14c2(0x14f))+_0x8b14c2(0x14e)})})]}),_0x54da38('div',{'className':'univer-space-y-3','children':[_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x1d5),'children':_0x3df4dc['t'](_0x8b14c2(0x230))}),_0x54da38(_0x8b14c2(0x23b),{'className':'univer-space-y-2','children':[_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x1d1),'children':[_0x51da11('div',{'className':_0x8b14c2(0x172)}),_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x171),'children':[_0x51da11(_0x8b14c2(0x23b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x8b14c2(0x236)}),_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x140),'children':_0x3df4dc['t'](_0x8b14c2(0x252))})]})]}),_0x54da38('div',{'className':_0x8b14c2(0x1d1),'children':[_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x172)}),_0x54da38('div',{'className':_0x8b14c2(0x171),'children':[_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x1e3),'children':_0x8b14c2(0x254)}),_0x51da11('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3df4dc['t'](_0x8b14c2(0x12d))})]})]})]})]})]})]}),_0x51da11(_0x3d379e,{'onClick':_0x2de726,'disabled':!_0x4baba8||_0x5b7ca7,'className':_0x8b14c2(0x1b4),'children':_0x5b7ca7?_0x54da38(_0x8b14c2(0x10a),{'className':_0x8b14c2(0x210),'children':[_0x51da11(_0x8b14c2(0x10a),{'children':'⟲'}),_0x3df4dc['t'](_0x8b14c2(0x16b))]}):_0x54da38(_0x8b14c2(0x10a),{'className':_0x8b14c2(0x210),'children':[_0x51da11(le,{}),_0x3df4dc['t'](_0x8b14c2(0x255))]})}),_0x51da11(_0x8b14c2(0x23b),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x24d),'children':[_0x51da11(_0x8b14c2(0x10a),{'className':_0x8b14c2(0x162),'children':'💡'}),_0x54da38(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x223),'children':[_0x51da11(_0x8b14c2(0x23b),{'className':_0x8b14c2(0x113),'children':_0x8b14c2(0x1b9)}),_0x54da38(_0x8b14c2(0x23b),{'children':['•',_0x3df4dc['t']('mcpConfig.note1')]}),_0x54da38('div',{'children':['•',_0x3df4dc['t']('mcpConfig.note2')]})]})]})})]})})]});}const x='mcp-ui.config',re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object['getOwnPropertyDescriptor'],sn=(_0x1adb7f,_0x33e025,_0x3af738,_0x57d1ae)=>{var _0x4c690b=_0x4ed31c;for(var _0x5a6b84=_0x57d1ae>0x1?void 0x0:_0x57d1ae?on(_0x33e025,_0x3af738):_0x33e025,_0x729eda=_0x1adb7f[_0x4c690b(0x1bf)]-0x1,_0x6d5785;_0x729eda>=0x0;_0x729eda--)(_0x6d5785=_0x1adb7f[_0x729eda])&&(_0x5a6b84=_0x6d5785(_0x5a6b84)||_0x5a6b84);return _0x5a6b84;},g=(_0x13e207,_0x136dd5)=>(_0x5e735a,_0x33896d)=>_0x136dd5(_0x5e735a,_0x33896d,_0x13e207);const j=_0x4ed31c(0x20c),U=_0x4ed31c(0x242);let I=class extends _0x2137e9{constructor(_0x5d1f5c,_0x346f63,_0x824df7,_0x5e491d,_0x583a22,_0x5b0088,_0x454a38,_0x30296e,_0xd6fa1d,_0x77fe3c){var _0x1a5b59=_0x4ed31c;super(),S(this,_0x1a5b59(0x156),new _0x3be41d(!0x1)),S(this,_0x1a5b59(0x20a),new _0x3be41d({})),S(this,_0x1a5b59(0x1a4),new _0x3be41d({})),S(this,_0x1a5b59(0x1b5),new _0x3be41d('')),S(this,'_handleConfigSave',async _0x49e2c3=>{var _0x283930=_0x1a5b59,_0x37c180,_0xf1d99e;this['_loading$']['next'](!0x0);try{const _0x82cb43=await this[_0x283930(0x1ea)](_0x49e2c3);if(!_0x82cb43[_0x283930(0x1c9)]){this[_0x283930(0x23c)][_0x283930(0x130)]({'type':_0x28655f[_0x283930(0x1d8)],'content':_0x82cb43[_0x283930(0x178)]||this[_0x283930(0x1c4)]['t'](_0x283930(0x1fe))});return;}_0x49e2c3[_0x283930(0x1e6)]?await this[_0x283930(0x1e5)][_0x283930(0x19a)](j,_0x49e2c3[_0x283930(0x1e6)][_0x283930(0x24c)]()):await this[_0x283930(0x1e5)][_0x283930(0x231)](j),this[_0x283930(0x1b5)][_0x283930(0x197)](((_0x37c180=_0x49e2c3[_0x283930(0x1e6)])==null?void 0x0:_0x37c180['trim']())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x283930(0x1a7)+((_0xf1d99e=_0x49e2c3[_0x283930(0x1e6)])==null?void 0x0:_0xf1d99e['trim']())}),this[_0x283930(0x23c)][_0x283930(0x130)]({'type':_0x28655f[_0x283930(0x24a)],'content':this['_localeService']['t'](_0x283930(0x1db))}),setTimeout(()=>{var _0x3bc687=_0x283930;this[_0x3bc687(0x226)][_0x3bc687(0x239)](U);},0x320);}catch(_0xc2e1c3){this['_logService']['error'](_0x283930(0x170),_0xc2e1c3),this[_0x283930(0x23c)][_0x283930(0x130)]({'type':_0x28655f[_0x283930(0x1d8)],'content':this[_0x283930(0x1c4)]['t'](_0x283930(0x25c))});}finally{this[_0x283930(0x156)]['next'](!0x1);}}),(this[_0x1a5b59(0x112)]=_0x5d1f5c,this['_uiPartsService']=_0x346f63,this['_configService']=_0x824df7,this[_0x1a5b59(0x1e5)]=_0x5e491d,this[_0x1a5b59(0x226)]=_0x583a22,this[_0x1a5b59(0x23c)]=_0x5b0088,this[_0x1a5b59(0x176)]=_0x454a38,this[_0x1a5b59(0x1c4)]=_0x30296e,this[_0x1a5b59(0x15e)]=_0xd6fa1d,this[_0x1a5b59(0x165)]=_0x77fe3c,this[_0x1a5b59(0x232)](),this[_0x1a5b59(0x211)](),this['_registerComponent']());}[_0x4ed31c(0x22f)](){var _0x2acbc3=_0x4ed31c;const _0x227580=this[_0x2acbc3(0x198)][_0x2acbc3(0x222)](x);_0x227580!=null&&_0x227580[_0x2acbc3(0x1df)]&&this[_0x2acbc3(0x226)][_0x2acbc3(0x218)]({'id':U,'title':{'title':this[_0x2acbc3(0x1c4)]['t'](_0x2acbc3(0x145))},'children':{'label':_0x2acbc3(0x1dd)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](U);}});}[_0x4ed31c(0x143)](){return this['_mcpCoreConfig$']['value'];}[_0x4ed31c(0x247)](){var _0x339170=_0x4ed31c;this[_0x339170(0x190)](this[_0x339170(0x176)][_0x339170(0x18a)]('MCPConfigPanel',this[_0x339170(0x1a2)]()));}[_0x4ed31c(0x1a2)](){var _0x4609c4=_0x4ed31c;return _0x4ea3c8(()=>{var _0x580cee=_0x51c1,_0x3b95cf,_0x476017,_0x533eca;return _0x51da11(tn,{'config':this[_0x580cee(0x1a4)][_0x580cee(0x123)],'mcpCoreConfig':this[_0x580cee(0x20a)][_0x580cee(0x123)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x580cee(0x1ba)],'loading':this[_0x580cee(0x156)]['value'],'connectionStatus$':(_0x3b95cf=this[_0x580cee(0x165)])==null?void 0x0:_0x3b95cf[_0x580cee(0x137)],'connectionError$':(_0x476017=this['_mcpConnectionController'])==null?void 0x0:_0x476017['connectionError$'],'currentSessionId$':(_0x533eca=this['_mcpConnectionController'])==null?void 0x0:_0x533eca['sessionId$']});},this[_0x4609c4(0x112)]);}[_0x4ed31c(0x232)](){var _0x52fd5a=_0x4ed31c;this[_0x52fd5a(0x190)](this[_0x52fd5a(0x198)][_0x52fd5a(0x139)](_0x51258e)[_0x52fd5a(0x1bb)](_0x4ea701=>{var _0x6d11b8=_0x52fd5a;this[_0x6d11b8(0x20a)][_0x6d11b8(0x197)](_0x4ea701||{});}));const _0x243ee8=this['_configService'][_0x52fd5a(0x222)](_0x51258e);this[_0x52fd5a(0x20a)][_0x52fd5a(0x197)](_0x243ee8||{}),this[_0x52fd5a(0x190)](this[_0x52fd5a(0x198)][_0x52fd5a(0x139)](x)['subscribe'](_0x3f7892=>{var _0x1f7c90=_0x52fd5a;this['_config$'][_0x1f7c90(0x197)](_0x3f7892||{});}));const _0x47cc86=this[_0x52fd5a(0x198)]['getConfig'](x);this[_0x52fd5a(0x1a4)][_0x52fd5a(0x197)](_0x47cc86||{});}async[_0x4ed31c(0x211)](){var _0x57fab9=_0x4ed31c;const _0x29f548=this['_configService']['getConfig'](x);if(!(_0x29f548!=null&&_0x29f548['showDeveloperTools']))return;const _0x501ac8=await this[_0x57fab9(0x1e5)]['getItem'](j);_0x501ac8&&(this[_0x57fab9(0x165)][_0x57fab9(0x119)]({'Authorization':_0x57fab9(0x1a7)+_0x501ac8}),this[_0x57fab9(0x1b5)][_0x57fab9(0x197)](_0x501ac8));}async[_0x4ed31c(0x1ea)](_0xa8d083){var _0x19fb00=_0x4ed31c;if(!_0xa8d083['apiKey']||_0xa8d083[_0x19fb00(0x1e6)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x19fb00(0x1ab))};if(_0xa8d083[_0x19fb00(0x1e6)][_0x19fb00(0x24c)]()[_0x19fb00(0x1bf)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x19fb00(0x1c4)]['t'](_0x19fb00(0x133))};try{const _0x3804a2=await this[_0x19fb00(0x112)]['get'](_0x52d460)['validateApiKey'](_0xa8d083[_0x19fb00(0x1e6)]['trim']());return _0x3804a2[_0x19fb00(0x1c9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3804a2['error']||this[_0x19fb00(0x1c4)]['t'](_0x19fb00(0x21f))};}catch(_0x11411f){return console[_0x19fb00(0x224)](_0x19fb00(0x183),_0x11411f),{'isValid':!0x0};}}};I=sn([g(0x0,_0x5d0b7b(_0x27c22f)),g(0x1,_0x5e7b4e),g(0x2,_0x2d795c),g(0x3,_0x316095),g(0x4,_0x1fa379),g(0x5,_0x467b36),g(0x6,_0x5d0b7b(_0x3bea49)),g(0x7,_0x5d0b7b(_0x4e3ec4)),g(0x8,_0x2149b8),g(0x9,_0x5d0b7b(_0x52d460))],I);const V={'id':_0x4ed31c(0x11f),'type':_0x30ecf7[_0x4ed31c(0x16d)],'handler':async(_0x438241,_0x30760c)=>(_0x438241[_0x4ed31c(0x127)](I)[_0x4ed31c(0x22f)](),!0x0)};function pe(_0x1212b3,_0x160693){var _0x16e27a=_0x4ed31c;switch(_0x1212b3){case _0x509e76[_0x16e27a(0x22c)]:return _0x16e27a(0x16e);case _0x509e76[_0x16e27a(0x24b)]:return _0x16e27a(0x17e);case _0x509e76[_0x16e27a(0x260)]:return _0x16e27a(0x1cc);case _0x509e76[_0x16e27a(0x1f4)]:switch(_0x160693){case _0x2e807a[_0x16e27a(0x182)]:return _0x16e27a(0x251);case _0x2e807a[_0x16e27a(0x1de)]:return'mcpStatus.sessionOccupied';case _0x2e807a[_0x16e27a(0x1ef)]:return'mcpStatus.networkError';case _0x2e807a[_0x16e27a(0x20b)]:return _0x16e27a(0x1f5);default:return _0x16e27a(0x1d9);}case _0x509e76[_0x16e27a(0x1cf)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function cn(_0x28c10e,_0x361a13,_0x3bb003,_0x44e4b8=!0x0){var _0x46d6a6=_0x4ed31c;const _0x2fd16e=pe(_0x28c10e,_0x361a13),_0x17e5a4=_0x3bb003['t'](_0x2fd16e);return _0x44e4b8?_0x28c10e===_0x509e76[_0x46d6a6(0x22c)]&&_0x361a13===_0x2e807a[_0x46d6a6(0x182)]?_0x17e5a4+_0x46d6a6(0x15b)+_0x3bb003['t'](_0x46d6a6(0x175)):_0x28c10e===_0x509e76[_0x46d6a6(0x260)]?''+_0x17e5a4:_0x28c10e===_0x509e76[_0x46d6a6(0x22c)]||_0x28c10e===_0x509e76[_0x46d6a6(0x1f4)]?_0x17e5a4+'\x20-\x20'+_0x3bb003['t'](_0x46d6a6(0x180)):_0x17e5a4:_0x17e5a4;}function _0x165a(){var _0x26df65=['_blank','MCP\x20Connecting...','1em','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','NETWORK_ERROR','defineProperty','substring','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','assign','FAILED','mcpStatus.maxRetriesExceeded','Save\x20Configuration','_config','https://console.univer.ai','配置保存成功','defIds','prototype','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.connectionError.networkError','mcpConfig.validation.invalidConfig','mcpConfig.connectionError.sessionOccupied','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','M0\x200H16V16H0z','会话\x20ID\x20已被占用,请稍后再试','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','4587252VJrrjL','1090299ghkaYq','clipPath','call','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','CloseSmallSingle','_mcpCoreConfig$','MAX_RETRIES_EXCEEDED','mcp.apiKey','\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','url(#$1','_handleConfigure','univer-flex\x20univer-items-center\x20univer-gap-2','_loadStoredApiKey','propertyIsEnumerable','svg','未连接','Univer\x20AI\x20Console','children','on-line-icon','open','mcpConfig.connectionStatus.connected','32570gNvsnP','noopener\x20noreferrer','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','保存中...','mcpConfig.validation.invalidApiKey','CheckMarkIcon','http://www.w3.org/2000/svg','getConfig','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','warn','API\x20key\x20is\x20required','_dialogService','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20客户端配置','mcpConfig.connectionError.unauthorized','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.description','DISCONNECTED','UniverIcon','univer-flex-shrink-0\x20univer-text-red-500','showConfigPanel','mcpConfig.configParameters','removeItem','_initConfigSync','apply','将配置添加到您的\x20MCP\x20客户端设置文件中','white','univer_session_id:','univer-flex\x20univer-items-start\x20univer-gap-2','MCP:\x20Session\x20ID\x20Occupied','close','您的\x20API\x20密钥安全存储在本地存储中','div','_messageService','1003118QBGOgT','启用身份验证以获得安全连接','Disconnected','重连中...','What\x20is\x20API\x20Key?','mcp-config-dialog','univer-bg-gray-500','MCP:\x20未授权','_initStatusComponent','round','_registerComponent','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_commandService','Success','CONNECTING','trim','univer-flex\x20univer-gap-3','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','symbol','translate(.97)','mcpStatus.unauthorized','mcpConfig.sessionIdDescription','Copy\x20the\x20JSON\x20configuration\x20below','Authorization:','mcpConfig.save','off','将以下配置添加到您的\x20MCP\x20客户端设置中:','HelpSingle','API\x20密钥无效,请检查密钥是否正确','concat','MCP\x20重连中...','mcpConfig.configError','univer-bg-green-500','mergeMenu','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','CONNECTED','OnLineIcon','univer-bg-blue-500','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','0\x200\x2016\x2016','点击配置\x20MCP','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','配置保存失败','Configuration\x20Steps:','mcpConfig.connectionStatus.connecting','span','replace','3447DxOerN','univer-space-y-4','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','onStarting','mcpConfig.connectionStatus.failed','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','_injector','univer-font-medium','univer-space-y-3','您的\x20API\x20密钥将在此浏览器中本地存储','add','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MCP\x20已连接','__setCustomHeaders','0\x200\x2017\x2016','icon','Connecting...','attrs','none','mcp-ui.command.openConfigPanel','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Invalid\x20configuration','value','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','mcpServerUrl','_uiPartsService','get','12YxqsSC','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','registerCommand','API\x20密钥','mcpConfig.authorizationDescription','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','fill','show','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','配置无效','mcpConfig.validation.apiKeyTooShort','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','off-line-icon_clip0_910_343','univer-text-blue-600','connectionStatus$','mcpConfig.configInstructions','subscribeConfigValue$','点击连接\x20MCP','OffLineIcon','function','label','bottom','6520787dvnBOp','univer-text-xs\x20univer-text-gray-500','权限验证失败,请检查您的\x20API\x20密钥','showStatus','getCurrentConfig','close-small-single','mcpConfig.title','818780OMyUHZ','indexOf','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','HEADER_MENU','MCP:\x20超出最大重试次数','colorChannel1','univer-mr-2\x20univer-flex\x20univer-text-xl','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','<API_KEY>','API\x20key\x20with\x20Bearer\x20prefix.','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','NONE','entries','Connected','Enable\x20Authentication','_loading$','142280wtIJHL','_initializeMenus','最大重试次数','MCP:\x20Max\x20Retries\x20Exceeded','\x20-\x20','registerComponent','Enable\x20authentication\x20for\x20secure\x20connections','_logService','API\x20Key','displayName','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-flex-shrink-0\x20univer-text-blue-500','xlink:href','mcpConfig.connectionStatus.disconnected','_mcpConnectionController','getOwnPropertyDescriptor','_connectionController','配置更改将立即生效','MCP\x20连接中...','Enter\x20your\x20API\x20key','mcpConfig.saving','univer-space-y-5','COMMAND','mcpStatus.disconnected','univer-flex\x20univer-items-center','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-min-w-0\x20univer-flex-1','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','forEach','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpStatus.clickToConfigure','_componentManager','mcpConfig.connectionInfo','errorMessage','MCP:\x20Network\x20Error','mcpConfig.apiApplyInfo.univerAiLabel','1Exiets','hasOwnProperty','mcpConfig.apiApplyInfo.description','mcpStatus.connecting','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpStatus.clickToConnect','_menuManagerService','UNAUTHORIZED','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','string','univer-text-green-500','push','请输入您的\x20API\x20密钥','univer.plus','univer-text-yellow-500','register','includes','几秒钟内获取您的\x20API\x20密钥','idSuffix','extend','getOwnPropertySymbols','disposeWithMe','help-single','setConfig','MenuIcon','API\x20密钥长度至少需要\x2010\x20位','MCP\x20Client\x20Configuration','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','next','_configService','Click\x20to\x20connect\x20MCP','setItem','text','mcpConfig.apiKey','defs','enableAutoConnect','MCP\x20已断开','Retrying...','保存配置','_createConfigPanelComponent','mcpConfig.connectionStatus.retrying','_config$','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-mb-3\x20univer-text-xs\x20univer-text-gray-600','Bearer\x20','Configuration\x20Parameters:','evenodd','off-line-icon','mcpConfig.validation.apiKeyRequired','Session\x20ID','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','会话ID','启用身份验证','on-line-icon_clip0_910_349','toString','use','mcpConfig.apiApplyInfo.title','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','_apiKey$','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','map','Saving...','Configuration\x20Notes:','_handleConfigSave','subscribe','Univer\x20AI\x20控制台','mask','M5.21243\x205.62036L11.8791\x2012.287','length','mcpConfig.configStep3','Close','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','tag','_localeService','path','url(#off-line-icon_clip0_910_343)','超出最大重试次数,请稍后再试','univer-bg-red-500','isValid','mcpConfig.connectionError.maxRetriesExceeded','MCP\x20Configuration','mcpStatus.connected','univer-text-red-500','random','RETRYING','Configuration\x20saved\x20successfully','univer-flex\x20univer-items-start\x20univer-gap-3','什么是\x20API\x20密钥?','currentColor','current','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','has','Error','mcpStatus.failed','MCP\x20Connection\x20Failed','mcpConfig.configSaved','MCP\x20Unknown\x20Status','MCPConfigPanel','SESSION_ID_OCCUPIED','showDeveloperTools','univer-text-gray-500','mcpConfig.configStep2','javascript:void(0)','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-text-sm\x20univer-font-medium','_localStorageService','apiKey','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.ai','配置步骤:','_validateConfig'];_0x165a=function(){return _0x26df65;};return _0x165a();}function an(_0x4ad833){var _0x4eb720=_0x4ed31c;switch(_0x4ad833){case _0x509e76[_0x4eb720(0x260)]:return _0x4eb720(0x185);case _0x509e76[_0x4eb720(0x24b)]:case _0x509e76[_0x4eb720(0x1cf)]:return _0x4eb720(0x189);case _0x509e76['FAILED']:case _0x509e76[_0x4eb720(0x22c)]:return'univer-text-red-500';default:return _0x4eb720(0x1e0);}}function un(_0x3cb810){var _0x14b516=_0x4ed31c;const {status$:_0x240792,error$:_0x4976d4,onConfigure:_0x5171ae,showClickable:_0x44e3de=!0x0}=_0x3cb810,_0x1dc8da=_0x880488(_0x240792,_0x509e76[_0x14b516(0x22c)]),_0x1e01a6=_0x880488(_0x4976d4,_0x2e807a[_0x14b516(0x152)]),_0x2040a8=_0x35e332(_0x4e3ec4),_0x4c13a3=_0x1dc8da===_0x509e76[_0x14b516(0x260)];_0x1dc8da===_0x509e76[_0x14b516(0x24b)]||_0x509e76[_0x14b516(0x1cf)];const _0x136dd2=_0x2040a8['t'](pe(_0x1dc8da,_0x1e01a6)),_0x3919fb=cn(_0x1dc8da,_0x1e01a6,_0x2040a8,_0x44e3de),_0x51488c=an(_0x1dc8da),_0xf5f47b=_0x4c13a3?_0x51da11(ge,{}):_0x51da11(fe,{}),_0x449533=_0x4514f3(()=>{_0x44e3de&&_0x5171ae&&_0x5171ae();},[_0x44e3de,_0x5171ae]);function _0xde998(){var _0xc50a7d=_0x14b516;return _0x54da38(_0xc50a7d(0x23b),{'className':_0x412fd1(_0xc50a7d(0x16f),_0x44e3de&&_0x5171ae&&_0xc50a7d(0x20d)),'onClick':_0x44e3de&&_0x5171ae?_0x449533:void 0x0,'children':[_0x51da11(_0xc50a7d(0x23b),{'className':_0x412fd1(_0xc50a7d(0x14c),_0x51488c),'children':_0xf5f47b}),_0x51da11(_0xc50a7d(0x23b),{'className':_0xc50a7d(0x12e),'children':_0x136dd2})]});}return _0x51da11(_0x3312ba,{'title':_0x3919fb,'placement':_0x14b516(0x13e),'children':_0xde998()});}var ln=Object[_0x4ed31c(0x166)],vn=(_0x366d8a,_0x5c32c7,_0x365605,_0xc37f89)=>{var _0x4e5d31=_0x4ed31c;for(var _0x208c9b=_0xc37f89>0x1?void 0x0:_0xc37f89?ln(_0x5c32c7,_0x365605):_0x5c32c7,_0x23d18c=_0x366d8a[_0x4e5d31(0x1bf)]-0x1,_0x195a80;_0x23d18c>=0x0;_0x23d18c--)(_0x195a80=_0x366d8a[_0x23d18c])&&(_0x208c9b=_0x195a80(_0x208c9b)||_0x208c9b);return _0x208c9b;},A=(_0x442019,_0x4ba924)=>(_0xbd19a5,_0x3509b0)=>_0x4ba924(_0xbd19a5,_0x3509b0,_0x442019);let O=class extends _0x2137e9{constructor(_0x4b0e1e,_0x5c33e4,_0xd2de93,_0x474879){var _0x25704b=_0x4ed31c;super(),this[_0x25704b(0x112)]=_0x4b0e1e,this[_0x25704b(0x167)]=_0x5c33e4,this[_0x25704b(0x126)]=_0xd2de93,this[_0x25704b(0x198)]=_0x474879,this['_initAutoConnect'](),this[_0x25704b(0x245)]();}['_initAutoConnect'](){var _0x17afbc=_0x4ed31c;const _0x309f87=this['_configService'][_0x17afbc(0x222)](x);_0x309f87!=null&&_0x309f87[_0x17afbc(0x1df)]&&(this[_0x17afbc(0x167)][_0x17afbc(0x19e)]=!0x1);}[_0x4ed31c(0x245)](){var _0x2f14f8=_0x4ed31c;const _0x40baa4=this[_0x2f14f8(0x198)][_0x2f14f8(0x222)](x);(_0x40baa4==null?void 0x0:_0x40baa4[_0x2f14f8(0x142)])!==!0x1&&this[_0x2f14f8(0x190)](this['_uiPartsService'][_0x2f14f8(0x15c)](_0x44dc29[_0x2f14f8(0x149)],()=>{var _0x195c4d=_0x2f14f8,_0x596fbe;return _0x4ea3c8(dn({'status$':this[_0x195c4d(0x167)]['connectionStatus$'],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x195c4d(0x20f)](),'showClickable':(_0x596fbe=_0x40baa4==null?void 0x0:_0x40baa4['showDeveloperTools'])!=null?_0x596fbe:!0x1}),this['_injector']);}));}[_0x4ed31c(0x20f)](){var _0x289bda=_0x4ed31c;this[_0x289bda(0x112)]['get'](I)[_0x289bda(0x22f)]();}};O=vn([A(0x0,_0x5d0b7b(_0x27c22f)),A(0x1,_0x5d0b7b(_0x52d460)),A(0x2,_0x5e7b4e),A(0x3,_0x2d795c)],O);function dn(_0x1146c0){const {status$:_0x5aba1b,error$:_0x2c306e,onConfigure:_0x520a62,showClickable:_0x34c2a1}=_0x1146c0;return function(){return _0x51da11(un,{'status$':_0x5aba1b,'error$':_0x2c306e,'onConfigure':_0x520a62,'showClickable':_0x34c2a1});};}function fn(_0x1255d7){var _0x318246=_0x4ed31c;return{'id':V['id'],'type':_0x37c1e4['BUTTON'],'icon':_0x318246(0x193),'title':'mcpConfig.title','tooltip':'mcpConfig.title'};}const gn={[_0x8a425e['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object[_0x4ed31c(0x166)],hn=(_0x4bda91,_0x475b40,_0x2e726,_0x133ee4)=>{var _0x181dae=_0x4ed31c;for(var _0x32d8ea=_0x133ee4>0x1?void 0x0:_0x133ee4?pn(_0x475b40,_0x2e726):_0x475b40,_0x4bd551=_0x4bda91[_0x181dae(0x1bf)]-0x1,_0x298b44;_0x4bd551>=0x0;_0x4bd551--)(_0x298b44=_0x4bda91[_0x4bd551])&&(_0x32d8ea=_0x298b44(_0x32d8ea)||_0x32d8ea);return _0x32d8ea;},te=(_0x51a353,_0x2e8ab7)=>(_0x306d68,_0x10c2ab)=>_0x2e8ab7(_0x306d68,_0x10c2ab,_0x51a353);let k=class extends _0x2137e9{constructor(_0x4983e2,_0x2276d0){var _0x1ff81a=_0x4ed31c;super(),this[_0x1ff81a(0x249)]=_0x4983e2,this[_0x1ff81a(0x181)]=_0x2276d0,this['_initializeCommands'](),this[_0x1ff81a(0x158)]();}['_initializeCommands'](){[V]['forEach'](_0x57d46c=>{var _0x4de4b4=_0x51c1;this['disposeWithMe'](this[_0x4de4b4(0x249)][_0x4de4b4(0x12b)](_0x57d46c));});}[_0x4ed31c(0x158)](){var _0x28dc15=_0x4ed31c;this[_0x28dc15(0x181)][_0x28dc15(0x25e)](gn);}};k=hn([te(0x0,_0x57fb84),te(0x1,_0x1cab94)],k);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4ed31c(0x1ec),'connected':'MCP\x20Connected','failed':_0x4ed31c(0x1da),'retrying':'MCP\x20Retrying...','unknown':_0x4ed31c(0x1dc),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4ed31c(0x238),'networkError':_0x4ed31c(0x179),'maxRetriesExceeded':_0x4ed31c(0x15a),'clickToConnect':_0x4ed31c(0x199),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4ed31c(0x15f),'apiKeyPlaceholder':_0x4ed31c(0x16a),'apiKeyHint':_0x4ed31c(0x14d),'enableAuth':_0x4ed31c(0x155),'enableAuthHint':_0x4ed31c(0x15d),'connectionInfo':_0x4ed31c(0x195),'mcpClientConfig':_0x4ed31c(0x195),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4ed31c(0x268),'configStep1':_0x4ed31c(0x253),'configStep2':_0x4ed31c(0x12a),'configStep3':_0x4ed31c(0x148),'sessionId':_0x4ed31c(0x1ac),'sessionIdDescription':_0x4ed31c(0x129),'authorizationDescription':_0x4ed31c(0x150),'configParameters':_0x4ed31c(0x1a8),'maxRetries':'Max\x20Retries','save':_0x4ed31c(0x1f6),'saving':_0x4ed31c(0x1b8),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4ed31c(0x1b6),'configSaved':_0x4ed31c(0x1d0),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4ed31c(0x241),'description':_0x4ed31c(0x1ad),'univerAiLabel':_0x4ed31c(0x215),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4ed31c(0x225),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4ed31c(0x122),'invalidApiKey':_0x4ed31c(0x25f)},'connectionStatus':{'disconnected':_0x4ed31c(0x23f),'connecting':_0x4ed31c(0x11c),'connected':_0x4ed31c(0x154),'failed':_0x4ed31c(0x121),'retrying':_0x4ed31c(0x1a0)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4ed31c(0x17f),'maxRetriesExceeded':_0x4ed31c(0x120)}}},kn={'mcpStatus':{'disconnected':_0x4ed31c(0x19f),'connecting':_0x4ed31c(0x169),'connected':_0x4ed31c(0x118),'failed':'MCP\x20连接失败','retrying':_0x4ed31c(0x25b),'unknown':'MCP\x20状态未知','unauthorized':_0x4ed31c(0x244),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x4ed31c(0x14a),'clickToConnect':_0x4ed31c(0x13a),'clickToConfigure':_0x4ed31c(0x265)},'mcpConfig':{'title':'MCP\x20配置','description':_0x4ed31c(0x1fc),'apiKey':_0x4ed31c(0x12c),'apiKeyPlaceholder':_0x4ed31c(0x187),'apiKeyHint':_0x4ed31c(0x115),'enableAuth':_0x4ed31c(0x1af),'enableAuthHint':_0x4ed31c(0x23e),'connectionInfo':_0x4ed31c(0x228),'mcpClientConfig':_0x4ed31c(0x228),'configInstructions':_0x4ed31c(0x257),'configStepTitle':_0x4ed31c(0x1e9),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x4ed31c(0x234),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x4ed31c(0x1ae),'sessionIdDescription':_0x4ed31c(0x21c),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':_0x4ed31c(0x159),'save':_0x4ed31c(0x1a1),'saving':_0x4ed31c(0x21e),'note1':_0x4ed31c(0x168),'note2':_0x4ed31c(0x23a),'configSaved':_0x4ed31c(0x1f9),'configError':_0x4ed31c(0x267),'apiApplyInfo':{'title':_0x4ed31c(0x1d2),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x4ed31c(0x1bc),'getStarted':_0x4ed31c(0x18c)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x4ed31c(0x194),'invalidConfig':_0x4ed31c(0x132),'invalidApiKey':_0x4ed31c(0x259)},'connectionStatus':{'disconnected':_0x4ed31c(0x214),'connecting':'连接中...','connected':'已连接','failed':'连接失败','retrying':_0x4ed31c(0x240)},'connectionError':{'unauthorized':_0x4ed31c(0x141),'sessionOccupied':_0x4ed31c(0x202),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x4ed31c(0x1c7)}}};var mn=Object[_0x4ed31c(0x1f0)],Cn=Object['getOwnPropertyDescriptor'],yn=(_0x2c8f6d,_0x2118df,_0x4e40ec)=>_0x2118df in _0x2c8f6d?mn(_0x2c8f6d,_0x2118df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e40ec}):_0x2c8f6d[_0x2118df]=_0x4e40ec,_n=(_0x5a06a6,_0x4ac238,_0x425035,_0x533e93)=>{var _0x4b4ac3=_0x4ed31c;for(var _0x27f9db=_0x533e93>0x1?void 0x0:_0x533e93?Cn(_0x4ac238,_0x425035):_0x4ac238,_0x510d38=_0x5a06a6[_0x4b4ac3(0x1bf)]-0x1,_0x11f81f;_0x510d38>=0x0;_0x510d38--)(_0x11f81f=_0x5a06a6[_0x510d38])&&(_0x27f9db=_0x11f81f(_0x27f9db)||_0x27f9db);return _0x27f9db;},E=(_0x58d718,_0x56e129)=>(_0x56dc90,_0x538546)=>_0x56e129(_0x56dc90,_0x538546,_0x58d718),xn=(_0xeacef6,_0x39079a,_0x81249e)=>yn(_0xeacef6,_0x39079a+'',_0x81249e);let L=class extends _0x545a86{constructor(_0x2a2132=re,_0x3af2de,_0x367129,_0x4dee0d,_0x44a900,_0x2d5551){var _0x32cd48=_0x4ed31c;super(),this[_0x32cd48(0x1f7)]=_0x2a2132,this[_0x32cd48(0x112)]=_0x3af2de,this[_0x32cd48(0x198)]=_0x367129,this[_0x32cd48(0x126)]=_0x4dee0d,this[_0x32cd48(0x1e5)]=_0x44a900,this[_0x32cd48(0x1c4)]=_0x2d5551;const {..._0x33cf59}=_0x2b4844({},re,this['_config']);this[_0x32cd48(0x198)][_0x32cd48(0x192)](x,_0x33cf59);}async[_0x4ed31c(0x10f)](){var _0x57ec57=_0x4ed31c;const _0xa2f633=[[O],[I],[k]];this['_injector'][_0x57ec57(0x1d7)](_0x51255d)||_0xa2f633[_0x57ec57(0x186)]([_0x51255d,{'useClass':_0x2d2a00}]),_0xa2f633['forEach'](_0x1a1449=>this[_0x57ec57(0x112)][_0x57ec57(0x116)](_0x1a1449)),this[_0x57ec57(0x112)][_0x57ec57(0x127)](O),this[_0x57ec57(0x112)]['get'](I),this[_0x57ec57(0x112)][_0x57ec57(0x127)](k);}};xn(L,'pluginName','MCP_UI_PLUGIN'),L=_n([_0x1e2773(_0x56e383),E(0x1,_0x5d0b7b(_0x27c22f)),E(0x2,_0x2d795c),E(0x3,_0x5e7b4e),E(0x4,_0x316095),E(0x5,_0x5d0b7b(_0x4e3ec4))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
@@ -1 +1 @@
1
- const _0x489517=_0x3d9c;(function(_0x145e48,_0x696e07){const _0x2809b5=_0x3d9c,_0x259421=_0x145e48();while(!![]){try{const _0x46ed91=parseInt(_0x2809b5(0x65))/0x1+-parseInt(_0x2809b5(0x99))/0x2*(-parseInt(_0x2809b5(0x6e))/0x3)+-parseInt(_0x2809b5(0x81))/0x4*(-parseInt(_0x2809b5(0x7a))/0x5)+-parseInt(_0x2809b5(0x96))/0x6*(parseInt(_0x2809b5(0x78))/0x7)+parseInt(_0x2809b5(0x73))/0x8*(parseInt(_0x2809b5(0x93))/0x9)+-parseInt(_0x2809b5(0x69))/0xa*(-parseInt(_0x2809b5(0x8c))/0xb)+parseInt(_0x2809b5(0x83))/0xc*(-parseInt(_0x2809b5(0x7f))/0xd);if(_0x46ed91===_0x696e07)break;else _0x259421['push'](_0x259421['shift']());}catch(_0x2a89fb){_0x259421['push'](_0x259421['shift']());}}}(_0x263d,0x5a04e));function _0x263d(){const _0x3e65b3=['Invalid\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connection\x20Failed','Retrying...','MCP\x20Connecting...','MCP:\x20Network\x20Error','3470137CVicif','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','9vNWEpb','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','1001730gbrvtg','Session\x20ID','MCP\x20Configuration','374470qFjmZv','Copy\x20the\x20JSON\x20configuration\x20below','What\x20is\x20API\x20Key?','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','165272jEVxsE','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','Failed\x20to\x20save\x20configuration','10QZweVM','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20is\x20required','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Retrying...','6bhNcCQ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20saved\x20successfully','4427248QjUEAM','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','7wjedQr','Max\x20Retries','2285065tnWqHR','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','Enable\x20Authentication','Saving...','65ZNasZS','Click\x20to\x20configure\x20MCP','4Gdoztq','Save\x20Configuration','3191892QxAQfW'];_0x263d=function(){return _0x3e65b3;};return _0x263d();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x489517(0x8a),'connected':_0x489517(0x92),'failed':_0x489517(0x88),'retrying':_0x489517(0x6d),'unknown':_0x489517(0x77),'unauthorized':_0x489517(0x75),'sessionOccupied':_0x489517(0x74),'networkError':_0x489517(0x8b),'maxRetriesExceeded':_0x489517(0x8d),'clickToConnect':_0x489517(0x95),'clickToConfigure':_0x489517(0x80)},'mcpConfig':{'title':_0x489517(0x98),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x489517(0x94),'enableAuth':_0x489517(0x7d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x489517(0x76),'mcpClientConfig':_0x489517(0x76),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x489517(0x8e),'configStep1':_0x489517(0x9a),'configStep2':_0x489517(0x85),'configStep3':_0x489517(0x7b),'sessionId':_0x489517(0x97),'sessionIdDescription':_0x489517(0x6a),'authorizationDescription':_0x489517(0x70),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x489517(0x79),'save':_0x489517(0x82),'saving':_0x489517(0x7e),'note1':_0x489517(0x66),'note2':_0x489517(0x8f),'configSaved':_0x489517(0x72),'configError':_0x489517(0x68),'apiApplyInfo':{'title':_0x489517(0x9b),'description':_0x489517(0x64),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x489517(0x91)},'validation':{'apiKeyRequired':_0x489517(0x6b),'apiKeyTooShort':_0x489517(0x6c),'invalidConfig':_0x489517(0x84),'invalidApiKey':_0x489517(0x6f)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x489517(0x67),'connected':'Connected','failed':_0x489517(0x7c),'retrying':_0x489517(0x89)},'connectionError':{'unauthorized':_0x489517(0x71),'sessionOccupied':_0x489517(0x86),'networkError':_0x489517(0x87),'maxRetriesExceeded':_0x489517(0x90)}}},n=e;function _0x3d9c(_0x53a3a4,_0x5bf2ad){const _0x263d55=_0x263d();return _0x3d9c=function(_0x3d9c9a,_0x43fb40){_0x3d9c9a=_0x3d9c9a-0x64;let _0x214276=_0x263d55[_0x3d9c9a];return _0x214276;},_0x3d9c(_0x53a3a4,_0x5bf2ad);}export{n as default};
1
+ const _0x48e046=_0x23ef;(function(_0x17b100,_0x379578){const _0x57ba4f=_0x23ef,_0x29c646=_0x17b100();while(!![]){try{const _0x2b7c2a=parseInt(_0x57ba4f(0x172))/0x1*(-parseInt(_0x57ba4f(0x18e))/0x2)+-parseInt(_0x57ba4f(0x18f))/0x3*(parseInt(_0x57ba4f(0x169))/0x4)+-parseInt(_0x57ba4f(0x185))/0x5+-parseInt(_0x57ba4f(0x171))/0x6*(parseInt(_0x57ba4f(0x189))/0x7)+-parseInt(_0x57ba4f(0x177))/0x8*(-parseInt(_0x57ba4f(0x174))/0x9)+parseInt(_0x57ba4f(0x162))/0xa+-parseInt(_0x57ba4f(0x17e))/0xb*(-parseInt(_0x57ba4f(0x17f))/0xc);if(_0x2b7c2a===_0x379578)break;else _0x29c646['push'](_0x29c646['shift']());}catch(_0xe5e8f4){_0x29c646['push'](_0x29c646['shift']());}}}(_0x504d,0xec171));const e={'mcpStatus':{'disconnected':_0x48e046(0x163),'connecting':_0x48e046(0x168),'connected':_0x48e046(0x18d),'failed':_0x48e046(0x16a),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x48e046(0x181),'networkError':_0x48e046(0x193),'maxRetriesExceeded':_0x48e046(0x17a),'clickToConnect':_0x48e046(0x188),'clickToConfigure':_0x48e046(0x179)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x48e046(0x184),'apiKeyPlaceholder':_0x48e046(0x190),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x48e046(0x195),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x48e046(0x17d),'configInstructions':_0x48e046(0x182),'configStepTitle':_0x48e046(0x194),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x48e046(0x16e),'configStep3':_0x48e046(0x178),'sessionId':_0x48e046(0x164),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x48e046(0x196),'configParameters':_0x48e046(0x192),'maxRetries':_0x48e046(0x16f),'save':_0x48e046(0x161),'saving':_0x48e046(0x176),'note1':_0x48e046(0x18b),'note2':_0x48e046(0x18c),'configSaved':_0x48e046(0x17b),'configError':_0x48e046(0x170),'apiApplyInfo':{'title':_0x48e046(0x16d),'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':_0x48e046(0x183),'getStarted':_0x48e046(0x167)},'validation':{'apiKeyRequired':_0x48e046(0x180),'apiKeyTooShort':_0x48e046(0x16c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x48e046(0x191)},'connectionStatus':{'disconnected':_0x48e046(0x18a),'connecting':_0x48e046(0x165),'connected':_0x48e046(0x173),'failed':_0x48e046(0x175),'retrying':_0x48e046(0x166)},'connectionError':{'unauthorized':_0x48e046(0x16b),'sessionOccupied':_0x48e046(0x187),'networkError':_0x48e046(0x186),'maxRetriesExceeded':_0x48e046(0x17c)}}},n=e;function _0x504d(){const _0x2d3312=['MCP\x20Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','Failed\x20to\x20save\x20configuration','3342PJETOS','2QGpFcP','Connected','1062MyXxjh','Connection\x20Failed','Saving...','87968MkimjI','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20saved\x20successfully','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','9243278fVIFqx','36KvgFxN','API\x20key\x20is\x20required','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Univer\x20AI\x20Console','API\x20Key','6906965iGzjEd','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','14987lCSLJI','Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','1483076ZcsLrN','6165pWbBWw','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Parameters:','MCP:\x20Network\x20Error','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','Save\x20Configuration','14748140fMWgzl','MCP\x20Disconnected','Session\x20ID','Connecting...','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connecting...','524sIyJKb'];_0x504d=function(){return _0x2d3312;};return _0x504d();}function _0x23ef(_0x9d9142,_0x1564f9){const _0x504df1=_0x504d();return _0x23ef=function(_0x23ef73,_0x3d74bd){_0x23ef73=_0x23ef73-0x161;let _0x42efa9=_0x504df1[_0x23ef73];return _0x42efa9;},_0x23ef(_0x9d9142,_0x1564f9);}export{n as default};