@univerjs-pro/mcp-ui 0.10.14-nightly.202511080715 → 0.11.0-nightly.202511151013

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -0
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/index.js +1 -1
  14. package/lib/es/locale/ca-ES.js +1 -1
  15. package/lib/es/locale/en-US.js +1 -1
  16. package/lib/es/locale/es-ES.js +1 -1
  17. package/lib/es/locale/fa-IR.js +1 -1
  18. package/lib/es/locale/fr-FR.js +1 -1
  19. package/lib/es/locale/ja-JP.js +1 -0
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/index.js +1 -1
  26. package/lib/locale/ca-ES.js +1 -1
  27. package/lib/locale/en-US.js +1 -1
  28. package/lib/locale/es-ES.js +1 -1
  29. package/lib/locale/fa-IR.js +1 -1
  30. package/lib/locale/fr-FR.js +1 -1
  31. package/lib/locale/ja-JP.js +1 -0
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/types/locale/ja-JP.d.ts +3 -0
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ja-JP.js +1 -0
  45. package/lib/umd/locale/ko-KR.js +1 -1
  46. package/lib/umd/locale/ru-RU.js +1 -1
  47. package/lib/umd/locale/vi-VN.js +1 -1
  48. package/lib/umd/locale/zh-CN.js +1 -1
  49. package/lib/umd/locale/zh-TW.js +1 -1
  50. package/package.json +8 -8
@@ -1 +1 @@
1
- 'use strict';const _0x1c8986=_0x5963;function _0x5963(_0x41a23a,_0x84ff){const _0x21f94d=_0x21f9();return _0x5963=function(_0x596332,_0x47502b){_0x596332=_0x596332-0x126;let _0x3df650=_0x21f94d[_0x596332];return _0x3df650;},_0x5963(_0x41a23a,_0x84ff);}function _0x21f9(){const _0x5da05b=['What\x20is\x20API\x20Key?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','15743904wBwLof','Univer\x20AI\x20Console','1022pVGJvV','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required','4lafHiI','Connecting...','Save\x20Configuration','Configuration\x20Steps:','MCP:\x20Network\x20Error','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','API\x20Key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','138IqPnhl','Click\x20to\x20configure\x20MCP','Max\x20Retries','808509dhjdvt','Configuration\x20Parameters:','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Saving...','2353676kRFnOF','Session\x20ID','61990MRDhnn','Disconnected','MCP\x20Unknown\x20Status','MCP\x20Configuration','6273220fFrHeF','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','35024qtBSGi','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1926018GCWNye','1JawVeN','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied'];_0x21f9=function(){return _0x5da05b;};return _0x21f9();}(function(_0x5550b5,_0x28438a){const _0x5a4415=_0x5963,_0x98576a=_0x5550b5();while(!![]){try{const _0x401668=parseInt(_0x5a4415(0x13b))/0x1*(-parseInt(_0x5a4415(0x12d))/0x2)+parseInt(_0x5a4415(0x159))/0x3*(-parseInt(_0x5a4415(0x148))/0x4)+parseInt(_0x5a4415(0x12f))/0x5*(-parseInt(_0x5a4415(0x156))/0x6)+parseInt(_0x5a4415(0x143))/0x7*(parseInt(_0x5a4415(0x138))/0x8)+-parseInt(_0x5a4415(0x13a))/0x9+parseInt(_0x5a4415(0x133))/0xa+parseInt(_0x5a4415(0x141))/0xb;if(_0x401668===_0x28438a)break;else _0x98576a['push'](_0x98576a['shift']());}catch(_0x1d7f9d){_0x98576a['push'](_0x98576a['shift']());}}}(_0x21f9,0xb7a95));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x1c8986(0x150),'failed':_0x1c8986(0x135),'retrying':'MCP\x20Retrying...','unknown':_0x1c8986(0x131),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1c8986(0x13d),'networkError':_0x1c8986(0x14c),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1c8986(0x15b),'clickToConfigure':_0x1c8986(0x157)},'mcpConfig':{'title':_0x1c8986(0x132),'description':_0x1c8986(0x145),'apiKey':_0x1c8986(0x153),'apiKeyPlaceholder':_0x1c8986(0x129),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1c8986(0x12a),'enableAuthHint':_0x1c8986(0x15c),'connectionInfo':_0x1c8986(0x13c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1c8986(0x128),'configStepTitle':_0x1c8986(0x14b),'configStep1':_0x1c8986(0x151),'configStep2':_0x1c8986(0x134),'configStep3':_0x1c8986(0x154),'sessionId':_0x1c8986(0x12e),'sessionIdDescription':_0x1c8986(0x14e),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1c8986(0x15a),'maxRetries':_0x1c8986(0x158),'save':_0x1c8986(0x14a),'saving':_0x1c8986(0x12c),'note1':_0x1c8986(0x137),'note2':_0x1c8986(0x12b),'configSaved':_0x1c8986(0x146),'configError':_0x1c8986(0x152),'apiApplyInfo':{'title':_0x1c8986(0x13e),'description':_0x1c8986(0x140),'univerAiLabel':_0x1c8986(0x142),'getStarted':_0x1c8986(0x14f)},'validation':{'apiKeyRequired':_0x1c8986(0x147),'apiKeyTooShort':_0x1c8986(0x126),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1c8986(0x127)},'connectionStatus':{'disconnected':_0x1c8986(0x130),'connecting':_0x1c8986(0x149),'connected':_0x1c8986(0x136),'failed':'Connection\x20Failed','retrying':_0x1c8986(0x14d)},'connectionError':{'unauthorized':_0x1c8986(0x155),'sessionOccupied':_0x1c8986(0x139),'networkError':_0x1c8986(0x13f),'maxRetriesExceeded':_0x1c8986(0x144)}}},n=e;module['exports']=n;
1
+ 'use strict';function _0x533b(_0x3ff913,_0x3d8119){const _0x579153=_0x5791();return _0x533b=function(_0x533ba6,_0x34afc9){_0x533ba6=_0x533ba6-0xa8;let _0x2ad40d=_0x579153[_0x533ba6];return _0x2ad40d;},_0x533b(_0x3ff913,_0x3d8119);}const _0x24f66d=_0x533b;(function(_0x5b1995,_0x4eab71){const _0x33aa47=_0x533b,_0x52b9be=_0x5b1995();while(!![]){try{const _0x3c9ace=-parseInt(_0x33aa47(0xcb))/0x1+-parseInt(_0x33aa47(0xcc))/0x2*(parseInt(_0x33aa47(0xb1))/0x3)+parseInt(_0x33aa47(0xc7))/0x4+-parseInt(_0x33aa47(0xab))/0x5+parseInt(_0x33aa47(0xc9))/0x6+-parseInt(_0x33aa47(0xad))/0x7*(-parseInt(_0x33aa47(0xae))/0x8)+-parseInt(_0x33aa47(0xb0))/0x9*(parseInt(_0x33aa47(0xb6))/0xa);if(_0x3c9ace===_0x4eab71)break;else _0x52b9be['push'](_0x52b9be['shift']());}catch(_0x422771){_0x52b9be['push'](_0x52b9be['shift']());}}}(_0x5791,0x1d3da));function _0x5791(){const _0x5dfdce=['What\x20is\x20API\x20Key?','2148930LfnfjV','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connecting...','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','632940rlGewy','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1339782dRLazS','MCP\x20Connection\x20Failed','33767qSTPNW','35948kKhUbm','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Connected','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Configuration','Click\x20to\x20connect\x20MCP','Retrying...','Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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\x20Connected','409815wGYKzo','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','607845zhUnWA','8zyTIsq','Copy\x20the\x20JSON\x20configuration\x20below','9vcnZCr','3gHvbpM','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','Enable\x20Authentication'];_0x5791=function(){return _0x5dfdce;};return _0x5791();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x24f66d(0xc2),'connected':_0x24f66d(0xaa),'failed':_0x24f66d(0xca),'retrying':'MCP\x20Retrying...','unknown':_0x24f66d(0xb2),'unauthorized':_0x24f66d(0xd0),'sessionOccupied':_0x24f66d(0xc3),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x24f66d(0xbc),'clickToConnect':_0x24f66d(0xd4),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x24f66d(0xd3),'description':_0x24f66d(0xac),'apiKey':_0x24f66d(0xce),'apiKeyPlaceholder':_0x24f66d(0xb3),'apiKeyHint':_0x24f66d(0xc8),'enableAuth':_0x24f66d(0xb4),'enableAuthHint':_0x24f66d(0xd1),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x24f66d(0xc6),'configInstructions':_0x24f66d(0xd7),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x24f66d(0xaf),'configStep2':_0x24f66d(0xcd),'configStep3':_0x24f66d(0xc1),'sessionId':_0x24f66d(0xbb),'sessionIdDescription':_0x24f66d(0xba),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x24f66d(0xc0),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x24f66d(0xd2),'note2':_0x24f66d(0xa8),'configSaved':_0x24f66d(0xc5),'configError':_0x24f66d(0xbd),'apiApplyInfo':{'title':_0x24f66d(0xb5),'description':_0x24f66d(0xa9),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x24f66d(0xb8)},'validation':{'apiKeyRequired':_0x24f66d(0xd8),'apiKeyTooShort':_0x24f66d(0xb7),'invalidConfig':_0x24f66d(0xbe),'invalidApiKey':_0x24f66d(0xc4)},'connectionStatus':{'disconnected':_0x24f66d(0xd6),'connecting':_0x24f66d(0xb9),'connected':_0x24f66d(0xcf),'failed':'Connection\x20Failed','retrying':_0x24f66d(0xd5)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x24f66d(0xbf),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';const _0x4acd87=_0x4873;function _0x4873(_0x17a5ed,_0x57ba32){const _0xc8c111=_0xc8c1();return _0x4873=function(_0x4873c7,_0x132781){_0x4873c7=_0x4873c7-0x18a;let _0x29ad28=_0xc8c111[_0x4873c7];return _0x29ad28;},_0x4873(_0x17a5ed,_0x57ba32);}function _0xc8c1(){const _0x9ca216=['Configuration\x20Parameters:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','15682460TIRAwg','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','What\x20is\x20API\x20Key?','1141Arerqd','9440tJHnlw','Save\x20Configuration','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','2621994zYjMwP','MCP\x20Connection\x20Failed','exports','Disconnected','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\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','Enter\x20your\x20API\x20key','Configuration\x20Steps:','Connection\x20Failed','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','430671NjlJVZ','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20with\x20Bearer\x20prefix.','40QezIQh','MCP\x20Disconnected','2026356MKpSHQ','484025dXwTJl','353728vWrPho','Invalid\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20Authentication','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','18sZgmrh','MCP\x20Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','MCP\x20Client\x20Configuration','MCP:\x20Unauthorized'];_0xc8c1=function(){return _0x9ca216;};return _0xc8c1();}(function(_0x2f68fb,_0x4a6dce){const _0xdf1e5=_0x4873,_0xfab2d4=_0x2f68fb();while(!![]){try{const _0x3d67d1=-parseInt(_0xdf1e5(0x1ae))/0x1+parseInt(_0xdf1e5(0x1b7))/0x2+-parseInt(_0xdf1e5(0x1b5))/0x3+-parseInt(_0xdf1e5(0x1b3))/0x4*(parseInt(_0xdf1e5(0x1b6))/0x5)+-parseInt(_0xdf1e5(0x1a1))/0x6+parseInt(_0xdf1e5(0x198))/0x7*(parseInt(_0xdf1e5(0x199))/0x8)+-parseInt(_0xdf1e5(0x18a))/0x9*(-parseInt(_0xdf1e5(0x195))/0xa);if(_0x3d67d1===_0x4a6dce)break;else _0xfab2d4['push'](_0xfab2d4['shift']());}catch(_0x2d977c){_0xfab2d4['push'](_0xfab2d4['shift']());}}}(_0xc8c1,0xf2cdc));const e={'mcpStatus':{'disconnected':_0x4acd87(0x1b4),'connecting':_0x4acd87(0x1a6),'connected':_0x4acd87(0x18b),'failed':_0x4acd87(0x1a2),'retrying':'MCP\x20Retrying...','unknown':_0x4acd87(0x1a0),'unauthorized':_0x4acd87(0x18f),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4acd87(0x192),'maxRetriesExceeded':_0x4acd87(0x1ac),'clickToConnect':_0x4acd87(0x18d),'clickToConfigure':_0x4acd87(0x19c)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4acd87(0x1b0),'apiKey':_0x4acd87(0x1a8),'apiKeyPlaceholder':_0x4acd87(0x1a9),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4acd87(0x1bb),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4acd87(0x18e),'configInstructions':_0x4acd87(0x1bd),'configStepTitle':_0x4acd87(0x1aa),'configStep1':_0x4acd87(0x1b1),'configStep2':_0x4acd87(0x196),'configStep3':_0x4acd87(0x193),'sessionId':'Session\x20ID','sessionIdDescription':_0x4acd87(0x19e),'authorizationDescription':_0x4acd87(0x1b2),'configParameters':_0x4acd87(0x190),'maxRetries':_0x4acd87(0x1bc),'save':_0x4acd87(0x19a),'saving':'Saving...','note1':_0x4acd87(0x194),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4acd87(0x19f),'configError':_0x4acd87(0x19b),'apiApplyInfo':{'title':_0x4acd87(0x197),'description':_0x4acd87(0x1a5),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4acd87(0x1b9),'invalidConfig':_0x4acd87(0x1b8),'invalidApiKey':_0x4acd87(0x191)},'connectionStatus':{'disconnected':_0x4acd87(0x1a4),'connecting':'Connecting...','connected':_0x4acd87(0x1af),'failed':_0x4acd87(0x1ab),'retrying':_0x4acd87(0x1ad)},'connectionError':{'unauthorized':_0x4acd87(0x1ba),'sessionOccupied':_0x4acd87(0x18c),'networkError':_0x4acd87(0x19d),'maxRetriesExceeded':_0x4acd87(0x1a7)}}},n=e;module[_0x4acd87(0x1a3)]=n;
1
+ 'use strict';function _0x17fa(_0x1cf38a,_0x1027cf){const _0x2a2325=_0x2a23();return _0x17fa=function(_0x17fabf,_0x4bc08f){_0x17fabf=_0x17fabf-0x1ad;let _0x562cb0=_0x2a2325[_0x17fabf];return _0x562cb0;},_0x17fa(_0x1cf38a,_0x1027cf);}const _0x3d4ddc=_0x17fa;(function(_0x36f438,_0x2defbc){const _0x28cf02=_0x17fa,_0x1c412=_0x36f438();while(!![]){try{const _0x330da8=parseInt(_0x28cf02(0x1c4))/0x1*(parseInt(_0x28cf02(0x1cf))/0x2)+-parseInt(_0x28cf02(0x1d2))/0x3*(-parseInt(_0x28cf02(0x1b9))/0x4)+-parseInt(_0x28cf02(0x1d8))/0x5+parseInt(_0x28cf02(0x1ba))/0x6*(-parseInt(_0x28cf02(0x1b3))/0x7)+-parseInt(_0x28cf02(0x1da))/0x8+-parseInt(_0x28cf02(0x1ce))/0x9+-parseInt(_0x28cf02(0x1d6))/0xa*(-parseInt(_0x28cf02(0x1bc))/0xb);if(_0x330da8===_0x2defbc)break;else _0x1c412['push'](_0x1c412['shift']());}catch(_0x1be038){_0x1c412['push'](_0x1c412['shift']());}}}(_0x2a23,0xee615));function _0x2a23(){const _0x17dbcb=['Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Save\x20Configuration','Saving...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','6186744sbrsGg','2HLSGWs','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required','7314rIoryl','Configuration\x20Steps:','Retrying...','What\x20is\x20API\x20Key?','1422640qlKeOJ','API\x20Key','7872070tFKDik','Get\x20your\x20API\x20key\x20in\x20seconds','15377880uhviKJ','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','Session\x20ID','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','Enable\x20Authentication','MCP\x20Client\x20Configuration','3199dxHMii','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','Connection\x20Failed','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1948ptXhVV','11262NEduOt','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','308hrvuFt','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','847561zQtkGK','Connecting...'];_0x2a23=function(){return _0x17dbcb;};return _0x2a23();}const e={'mcpStatus':{'disconnected':_0x3d4ddc(0x1b0),'connecting':'MCP\x20Connecting...','connected':_0x3d4ddc(0x1b7),'failed':_0x3d4ddc(0x1c2),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3d4ddc(0x1c0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3d4ddc(0x1c8),'maxRetriesExceeded':_0x3d4ddc(0x1c7),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3d4ddc(0x1dc),'description':_0x3d4ddc(0x1c1),'apiKey':_0x3d4ddc(0x1d7),'apiKeyPlaceholder':_0x3d4ddc(0x1b5),'apiKeyHint':_0x3d4ddc(0x1ca),'enableAuth':_0x3d4ddc(0x1b1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x3d4ddc(0x1b2),'mcpClientConfig':_0x3d4ddc(0x1b2),'configInstructions':_0x3d4ddc(0x1b8),'configStepTitle':_0x3d4ddc(0x1d3),'configStep1':_0x3d4ddc(0x1d0),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3d4ddc(0x1dd),'sessionIdDescription':_0x3d4ddc(0x1bd),'authorizationDescription':_0x3d4ddc(0x1db),'configParameters':_0x3d4ddc(0x1ae),'maxRetries':'Max\x20Retries','save':_0x3d4ddc(0x1cb),'saving':_0x3d4ddc(0x1cc),'note1':_0x3d4ddc(0x1be),'note2':_0x3d4ddc(0x1c9),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3d4ddc(0x1d5),'description':_0x3d4ddc(0x1bf),'univerAiLabel':_0x3d4ddc(0x1b4),'getStarted':_0x3d4ddc(0x1d9)},'validation':{'apiKeyRequired':_0x3d4ddc(0x1d1),'apiKeyTooShort':_0x3d4ddc(0x1bb),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3d4ddc(0x1cd)},'connectionStatus':{'disconnected':_0x3d4ddc(0x1c6),'connecting':_0x3d4ddc(0x1c5),'connected':'Connected','failed':_0x3d4ddc(0x1b6),'retrying':_0x3d4ddc(0x1d4)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3d4ddc(0x1af),'networkError':_0x3d4ddc(0x1ad),'maxRetriesExceeded':_0x3d4ddc(0x1c3)}}},n=e;module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';const _0x58c202=_0xa616;(function(_0x4c2d7c,_0x3770dc){const _0x1dffc6=_0xa616,_0x4c56d2=_0x4c2d7c();while(!![]){try{const _0x1da99e=-parseInt(_0x1dffc6(0xb1))/0x1+-parseInt(_0x1dffc6(0xa0))/0x2*(-parseInt(_0x1dffc6(0x89))/0x3)+parseInt(_0x1dffc6(0xb6))/0x4*(parseInt(_0x1dffc6(0x94))/0x5)+-parseInt(_0x1dffc6(0xab))/0x6*(parseInt(_0x1dffc6(0xa7))/0x7)+-parseInt(_0x1dffc6(0xa1))/0x8*(parseInt(_0x1dffc6(0x99))/0x9)+-parseInt(_0x1dffc6(0x95))/0xa+parseInt(_0x1dffc6(0x97))/0xb;if(_0x1da99e===_0x3770dc)break;else _0x4c56d2['push'](_0x4c56d2['shift']());}catch(_0x3cbfe0){_0x4c56d2['push'](_0x4c56d2['shift']());}}}(_0x5f25,0xeeff7));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x58c202(0x8b),'connected':_0x58c202(0xb0),'failed':_0x58c202(0xae),'retrying':_0x58c202(0x9c),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x58c202(0x8d),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x58c202(0xa8),'clickToConnect':_0x58c202(0x9a),'clickToConfigure':_0x58c202(0xb7)},'mcpConfig':{'title':_0x58c202(0x9b),'description':_0x58c202(0xa5),'apiKey':_0x58c202(0xa9),'apiKeyPlaceholder':_0x58c202(0x9f),'apiKeyHint':_0x58c202(0x93),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x58c202(0xac),'mcpClientConfig':_0x58c202(0xac),'configInstructions':_0x58c202(0xaa),'configStepTitle':_0x58c202(0xa3),'configStep1':_0x58c202(0x90),'configStep2':_0x58c202(0xa2),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x58c202(0x92),'save':_0x58c202(0xaf),'saving':_0x58c202(0x9d),'note1':_0x58c202(0xad),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x58c202(0x8c),'apiApplyInfo':{'title':_0x58c202(0xb4),'description':_0x58c202(0x8a),'univerAiLabel':_0x58c202(0xb8),'getStarted':_0x58c202(0xa6)},'validation':{'apiKeyRequired':_0x58c202(0x96),'apiKeyTooShort':_0x58c202(0x8e),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x58c202(0x8f)},'connectionStatus':{'disconnected':_0x58c202(0xa4),'connecting':_0x58c202(0x91),'connected':_0x58c202(0xb2),'failed':_0x58c202(0x9e),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x58c202(0xb3),'sessionOccupied':_0x58c202(0xb5),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x5f25(){const _0x39138e=['Connection\x20Failed','Enter\x20your\x20API\x20key','236114EGZaAq','24OAjncf','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Steps:','Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Get\x20your\x20API\x20key\x20in\x20seconds','32907rTbdjm','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','66BMjtHH','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connection\x20Failed','Save\x20Configuration','MCP\x20Connected','235966SeskND','Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','5468skddUF','Click\x20to\x20configure\x20MCP','Univer\x20AI\x20Console','6xJYIXv','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\x20Connecting...','Failed\x20to\x20save\x20configuration','MCP:\x20Unauthorized','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Copy\x20the\x20JSON\x20configuration\x20below','Connecting...','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','6170gtUmuM','7394990GbFHkU','API\x20key\x20is\x20required','3238466uPpiOc','exports','633861hFDEaU','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','MCP\x20Retrying...','Saving...'];_0x5f25=function(){return _0x39138e;};return _0x5f25();}function _0xa616(_0x40a479,_0x262d62){const _0x5f2535=_0x5f25();return _0xa616=function(_0xa61646,_0x13af20){_0xa61646=_0xa61646-0x89;let _0x42d03f=_0x5f2535[_0xa61646];return _0x42d03f;},_0xa616(_0x40a479,_0x262d62);}module[_0x58c202(0x98)]=n;
1
+ 'use strict';const _0x39ad4b=_0x8310;function _0x8310(_0x302701,_0x36c828){const _0xba132d=_0xba13();return _0x8310=function(_0x8310cc,_0x459686){_0x8310cc=_0x8310cc-0x1db;let _0x3188d1=_0xba132d[_0x8310cc];return _0x3188d1;},_0x8310(_0x302701,_0x36c828);}(function(_0x3b2b71,_0x293657){const _0x1b1f00=_0x8310,_0x214d5c=_0x3b2b71();while(!![]){try{const _0x1afdbe=parseInt(_0x1b1f00(0x1e6))/0x1*(-parseInt(_0x1b1f00(0x1ec))/0x2)+-parseInt(_0x1b1f00(0x206))/0x3+-parseInt(_0x1b1f00(0x1f1))/0x4+-parseInt(_0x1b1f00(0x1f3))/0x5*(-parseInt(_0x1b1f00(0x1f5))/0x6)+-parseInt(_0x1b1f00(0x1e4))/0x7*(-parseInt(_0x1b1f00(0x1ea))/0x8)+-parseInt(_0x1b1f00(0x1fa))/0x9+parseInt(_0x1b1f00(0x1e0))/0xa;if(_0x1afdbe===_0x293657)break;else _0x214d5c['push'](_0x214d5c['shift']());}catch(_0x3e8ac8){_0x214d5c['push'](_0x214d5c['shift']());}}}(_0xba13,0x3cd32));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x39ad4b(0x1ed),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x39ad4b(0x1ff),'unauthorized':_0x39ad4b(0x201),'sessionOccupied':_0x39ad4b(0x200),'networkError':_0x39ad4b(0x203),'maxRetriesExceeded':_0x39ad4b(0x1de),'clickToConnect':_0x39ad4b(0x1e3),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x39ad4b(0x1f8),'description':_0x39ad4b(0x1e9),'apiKey':_0x39ad4b(0x1e5),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x39ad4b(0x1e2),'enableAuth':_0x39ad4b(0x1ef),'enableAuthHint':_0x39ad4b(0x1e7),'connectionInfo':_0x39ad4b(0x1db),'mcpClientConfig':_0x39ad4b(0x1db),'configInstructions':_0x39ad4b(0x1f4),'configStepTitle':_0x39ad4b(0x1ee),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x39ad4b(0x204),'sessionId':_0x39ad4b(0x1f2),'sessionIdDescription':_0x39ad4b(0x1e1),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x39ad4b(0x205),'save':_0x39ad4b(0x1f7),'saving':_0x39ad4b(0x1dc),'note1':_0x39ad4b(0x1df),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x39ad4b(0x207),'configError':_0x39ad4b(0x1fb),'apiApplyInfo':{'title':_0x39ad4b(0x1f9),'description':_0x39ad4b(0x1fe),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x39ad4b(0x202)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x39ad4b(0x1f6),'invalidApiKey':_0x39ad4b(0x1eb)},'connectionStatus':{'disconnected':_0x39ad4b(0x1f0),'connecting':_0x39ad4b(0x1fc),'connected':'Connected','failed':_0x39ad4b(0x1e8),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x39ad4b(0x1fd),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x39ad4b(0x1dd)}}},n=e;module['exports']=n;function _0xba13(){const _0x1bfeda=['MCP\x20Unknown\x20Status','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','335694OkdZMg','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','Saving...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1486780nRACBs','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','7XZiVnX','API\x20Key','355gYBfat','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','2012088tGWRXE','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1436NzBLUk','MCP\x20Connecting...','Configuration\x20Steps:','Enable\x20Authentication','Disconnected','498028oZYaxK','Session\x20ID','8425RrCkWt','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1764iLJHSN','Invalid\x20configuration','Save\x20Configuration','MCP\x20Configuration','What\x20is\x20API\x20Key?','1396314VZBoxq','Failed\x20to\x20save\x20configuration','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0xba13=function(){return _0x1bfeda;};return _0xba13();}
@@ -1 +1 @@
1
- 'use strict';function _0xfbae(){const _0x2330ad=['连接中...','会话ID','将以下配置添加到您的\x20MCP\x20客户端设置中:','exports','配置参数:','最大重试次数','复制以下\x20JSON\x20配置','MCP\x20客户端配置','MCP\x20已断开','1364008sSXJrM','配置无效','点击连接\x20MCP','配置步骤:','21hCMchY','2274906lAZCeW','MCP:\x20会话\x20ID\x20已被占用','权限验证失败,请检查您的\x20API\x20密钥','连接失败','579114ssZAVW','MCP\x20连接中...','将配置添加到您的\x20MCP\x20客户端设置文件中','重连中...','840STrBqe','MCP\x20配置','配置保存成功','MCP:\x20网络错误','Univer\x20AI\x20控制台','什么是\x20API\x20密钥?','MCP:\x20超出最大重试次数','1138875OfLGQe','网络连接错误,请检查您的网络连接','58001hsYWgt','保存中...','API\x20密钥','超出最大重试次数,请稍后再试','MCP:\x20未授权','重启您的\x20MCP\x20客户端以使配置生效','配置\x20MCP\x20使用\x20AI\x20操作电子表格','136251mspquy','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','4699952TSSWyU','API\x20密钥不能为空','配置保存失败','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20状态未知','您的\x20API\x20密钥安全存储在本地存储中','保存配置','未连接'];_0xfbae=function(){return _0x2330ad;};return _0xfbae();}function _0x38aa(_0x4f54f5,_0x327b18){const _0xfbae96=_0xfbae();return _0x38aa=function(_0x38aa9b,_0x4dc788){_0x38aa9b=_0x38aa9b-0x10e;let _0x6d530e=_0xfbae96[_0x38aa9b];return _0x6d530e;},_0x38aa(_0x4f54f5,_0x327b18);}const _0x5183a7=_0x38aa;(function(_0x22fe83,_0x42a7be){const _0x3325b6=_0x38aa,_0x29c7af=_0x22fe83();while(!![]){try{const _0x39f410=parseInt(_0x3325b6(0x13d))/0x1+-parseInt(_0x3325b6(0x127))/0x2+parseInt(_0x3325b6(0x130))/0x3+parseInt(_0x3325b6(0x116))/0x4+-parseInt(_0x3325b6(0x13b))/0x5+-parseInt(_0x3325b6(0x12c))/0x6*(parseInt(_0x3325b6(0x12b))/0x7)+-parseInt(_0x3325b6(0x134))/0x8*(-parseInt(_0x3325b6(0x113))/0x9);if(_0x39f410===_0x42a7be)break;else _0x29c7af['push'](_0x29c7af['shift']());}catch(_0x4af25c){_0x29c7af['push'](_0x29c7af['shift']());}}}(_0xfbae,0xec6c6));const e={'mcpStatus':{'disconnected':_0x5183a7(0x126),'connecting':_0x5183a7(0x131),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':_0x5183a7(0x11a),'unauthorized':_0x5183a7(0x110),'sessionOccupied':_0x5183a7(0x12d),'networkError':_0x5183a7(0x137),'maxRetriesExceeded':_0x5183a7(0x13a),'clickToConnect':_0x5183a7(0x129),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5183a7(0x135),'description':_0x5183a7(0x112),'apiKey':_0x5183a7(0x10e),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x5183a7(0x114),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x5183a7(0x125),'mcpClientConfig':_0x5183a7(0x125),'configInstructions':_0x5183a7(0x120),'configStepTitle':_0x5183a7(0x12a),'configStep1':_0x5183a7(0x124),'configStep2':_0x5183a7(0x132),'configStep3':_0x5183a7(0x111),'sessionId':_0x5183a7(0x11f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5183a7(0x119),'configParameters':_0x5183a7(0x122),'maxRetries':_0x5183a7(0x123),'save':_0x5183a7(0x11c),'saving':_0x5183a7(0x13e),'note1':'配置更改将立即生效','note2':_0x5183a7(0x11b),'configSaved':_0x5183a7(0x136),'configError':_0x5183a7(0x118),'apiApplyInfo':{'title':_0x5183a7(0x139),'description':_0x5183a7(0x115),'univerAiLabel':_0x5183a7(0x138),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x5183a7(0x117),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x5183a7(0x128),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x5183a7(0x11d),'connecting':_0x5183a7(0x11e),'connected':'已连接','failed':_0x5183a7(0x12f),'retrying':_0x5183a7(0x133)},'connectionError':{'unauthorized':_0x5183a7(0x12e),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x5183a7(0x13c),'maxRetriesExceeded':_0x5183a7(0x10f)}}};module[_0x5183a7(0x121)]=e;
1
+ 'use strict';const _0x26b6ae=_0x9cf5;(function(_0x15e3af,_0x101903){const _0x3fb058=_0x9cf5,_0x468526=_0x15e3af();while(!![]){try{const _0x2dc2ad=parseInt(_0x3fb058(0x1e4))/0x1+parseInt(_0x3fb058(0x1c9))/0x2+parseInt(_0x3fb058(0x1d6))/0x3*(parseInt(_0x3fb058(0x1b9))/0x4)+parseInt(_0x3fb058(0x1e0))/0x5+-parseInt(_0x3fb058(0x1c3))/0x6+parseInt(_0x3fb058(0x1df))/0x7+parseInt(_0x3fb058(0x1b3))/0x8*(-parseInt(_0x3fb058(0x1c8))/0x9);if(_0x2dc2ad===_0x101903)break;else _0x468526['push'](_0x468526['shift']());}catch(_0x22bcaa){_0x468526['push'](_0x468526['shift']());}}}(_0x2ce9,0x4b6b4));function _0x9cf5(_0x17bbfb,_0x5ee752){const _0x2ce9fc=_0x2ce9();return _0x9cf5=function(_0x9cf5d8,_0x2740d9){_0x9cf5d8=_0x9cf5d8-0x1b0;let _0x365351=_0x2ce9fc[_0x9cf5d8];return _0x365351;},_0x9cf5(_0x17bbfb,_0x5ee752);}const e={'mcpStatus':{'disconnected':_0x26b6ae(0x1c2),'connecting':_0x26b6ae(0x1dd),'connected':_0x26b6ae(0x1e3),'failed':_0x26b6ae(0x1d7),'retrying':_0x26b6ae(0x1be),'unknown':'MCP\x20状态未知','unauthorized':_0x26b6ae(0x1d9),'sessionOccupied':_0x26b6ae(0x1d0),'networkError':_0x26b6ae(0x1b6),'maxRetriesExceeded':_0x26b6ae(0x1d1),'clickToConnect':_0x26b6ae(0x1dc),'clickToConfigure':_0x26b6ae(0x1c1)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x26b6ae(0x1c7),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x26b6ae(0x1ba),'enableAuth':_0x26b6ae(0x1de),'enableAuthHint':_0x26b6ae(0x1d5),'connectionInfo':_0x26b6ae(0x1d8),'mcpClientConfig':_0x26b6ae(0x1d8),'configInstructions':_0x26b6ae(0x1bc),'configStepTitle':_0x26b6ae(0x1c6),'configStep1':_0x26b6ae(0x1e1),'configStep2':_0x26b6ae(0x1db),'configStep3':_0x26b6ae(0x1e2),'sessionId':_0x26b6ae(0x1bd),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x26b6ae(0x1d3),'configParameters':_0x26b6ae(0x1b8),'maxRetries':'最大重试次数','save':_0x26b6ae(0x1d4),'saving':_0x26b6ae(0x1c5),'note1':_0x26b6ae(0x1ce),'note2':_0x26b6ae(0x1bf),'configSaved':_0x26b6ae(0x1b0),'configError':_0x26b6ae(0x1bb),'apiApplyInfo':{'title':_0x26b6ae(0x1c0),'description':_0x26b6ae(0x1b7),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x26b6ae(0x1c4),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x26b6ae(0x1cd),'invalidApiKey':_0x26b6ae(0x1b5)},'connectionStatus':{'disconnected':_0x26b6ae(0x1b4),'connecting':_0x26b6ae(0x1cf),'connected':_0x26b6ae(0x1cc),'failed':'连接失败','retrying':_0x26b6ae(0x1cb)},'connectionError':{'unauthorized':_0x26b6ae(0x1ca),'sessionOccupied':_0x26b6ae(0x1d2),'networkError':_0x26b6ae(0x1b1),'maxRetriesExceeded':_0x26b6ae(0x1b2)}}};function _0x2ce9(){const _0x1c4b77=['启用身份验证以获得安全连接','26913LRTgUQ','MCP\x20连接失败','MCP\x20客户端配置','MCP:\x20未授权','exports','将配置添加到您的\x20MCP\x20客户端设置文件中','点击连接\x20MCP','MCP\x20连接中...','启用身份验证','4099732FmMBCd','463270MFRvaU','复制以下\x20JSON\x20配置','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20已连接','523490ONGlTy','配置保存成功','网络连接错误,请检查您的网络连接','超出最大重试次数,请稍后再试','11228080Jgwvet','未连接','API\x20密钥无效,请检查密钥是否正确','MCP:\x20网络错误','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置参数:','184vvDdux','您的\x20API\x20密钥将在此浏览器中本地存储','配置保存失败','将以下配置添加到您的\x20MCP\x20客户端设置中:','会话ID','MCP\x20重连中...','您的\x20API\x20密钥安全存储在本地存储中','什么是\x20API\x20密钥?','点击配置\x20MCP','MCP\x20已断开','744708WGwALU','API\x20密钥不能为空','保存中...','配置步骤:','API\x20密钥','9PFZYAF','444116wyKOvM','权限验证失败,请检查您的\x20API\x20密钥','重连中...','已连接','配置无效','配置更改将立即生效','连接中...','MCP:\x20会话\x20ID\x20已被占用','MCP:\x20超出最大重试次数','会话\x20ID\x20已被占用,请稍后再试','带有\x20Bearer\x20前缀的\x20API\x20密钥。','保存配置'];_0x2ce9=function(){return _0x1c4b77;};return _0x2ce9();}module[_0x26b6ae(0x1da)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x15356e=_0x2549;function _0x2e77(){const _0x4c5989=['132BfeDOz','MCP\x20Client\x20Configuration','MCP\x20Configuration','Connecting...','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','610gtxBbT','Invalid\x20configuration','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','357EnOydV','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','350020SAlxeM','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','1148464mwkCnV','2107585fVpvGm','68844ZDFTtm','252382GJzkZW','Configuration\x20Steps:','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Disconnected','3231909CQYxqE','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Unknown\x20Status','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','8HONNCQ','MCP\x20Retrying...','51315IERWoK','exports','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Save\x20Configuration','Failed\x20to\x20save\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Configuration\x20saved\x20successfully'];_0x2e77=function(){return _0x4c5989;};return _0x2e77();}(function(_0x211b0c,_0x42ef8f){const _0x2db8a7=_0x2549,_0x2e192a=_0x211b0c();while(!![]){try{const _0x2e25b8=-parseInt(_0x2db8a7(0x160))/0x1+parseInt(_0x2db8a7(0x15d))/0x2+-parseInt(_0x2db8a7(0x170))/0x3*(-parseInt(_0x2db8a7(0x178))/0x4)+parseInt(_0x2db8a7(0x15e))/0x5+-parseInt(_0x2db8a7(0x15f))/0x6*(-parseInt(_0x2db8a7(0x150))/0x7)+-parseInt(_0x2db8a7(0x16e))/0x8*(-parseInt(_0x2db8a7(0x165))/0x9)+-parseInt(_0x2db8a7(0x14b))/0xa*(parseInt(_0x2db8a7(0x155))/0xb);if(_0x2e25b8===_0x42ef8f)break;else _0x2e192a['push'](_0x2e192a['shift']());}catch(_0x2a90db){_0x2e192a['push'](_0x2e192a['shift']());}}}(_0x2e77,0x4bf2f));function _0x2549(_0x16bb0f,_0x293356){const _0x2e77b3=_0x2e77();return _0x2549=function(_0x2549d0,_0x46c755){_0x2549d0=_0x2549d0-0x147;let _0x108513=_0x2e77b3[_0x2549d0];return _0x108513;},_0x2549(_0x16bb0f,_0x293356);}const e={'mcpStatus':{'disconnected':_0x15356e(0x164),'connecting':_0x15356e(0x169),'connected':'MCP\x20Connected','failed':_0x15356e(0x176),'retrying':_0x15356e(0x16f),'unknown':_0x15356e(0x16b),'unauthorized':_0x15356e(0x147),'sessionOccupied':_0x15356e(0x14d),'networkError':_0x15356e(0x14e),'maxRetriesExceeded':_0x15356e(0x149),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x15356e(0x168)},'mcpConfig':{'title':_0x15356e(0x17a),'description':_0x15356e(0x14a),'apiKey':_0x15356e(0x151),'apiKeyPlaceholder':_0x15356e(0x162),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x15356e(0x157),'enableAuthHint':_0x15356e(0x16a),'connectionInfo':_0x15356e(0x179),'mcpClientConfig':_0x15356e(0x179),'configInstructions':_0x15356e(0x166),'configStepTitle':_0x15356e(0x161),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x15356e(0x152),'configStep3':_0x15356e(0x159),'sessionId':_0x15356e(0x16d),'sessionIdDescription':_0x15356e(0x154),'authorizationDescription':_0x15356e(0x148),'configParameters':_0x15356e(0x15c),'maxRetries':'Max\x20Retries','save':_0x15356e(0x173),'saving':'Saving...','note1':_0x15356e(0x158),'note2':_0x15356e(0x14f),'configSaved':_0x15356e(0x177),'configError':_0x15356e(0x174),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x15356e(0x163),'univerAiLabel':_0x15356e(0x15a),'getStarted':_0x15356e(0x153)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x15356e(0x167),'invalidConfig':_0x15356e(0x14c),'invalidApiKey':_0x15356e(0x16c)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x15356e(0x17b),'connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x15356e(0x172),'sessionOccupied':_0x15356e(0x175),'networkError':_0x15356e(0x15b),'maxRetriesExceeded':_0x15356e(0x156)}}},n=e;module[_0x15356e(0x171)]=n;
1
+ 'use strict';function _0x2774(){const _0x4ad8a8=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connected','1lmmBqz','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','2398377JitcXn','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','3367147vrQKQG','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','MCP:\x20Network\x20Error','Session\x20ID','MCP\x20Unknown\x20Status','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','MCP\x20Disconnected','What\x20is\x20API\x20Key?','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20Authentication','Configuration\x20Parameters:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','2154842JDnBPD','exports','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','12jbkROY','267888lgzuKN','Retrying...','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Disconnected','2582200vXdcfr','1438875CFoxNw','Connecting...','2327896BENJcO'];_0x2774=function(){return _0x4ad8a8;};return _0x2774();}function _0xa59c(_0x588061,_0x2389e4){const _0x2774e1=_0x2774();return _0xa59c=function(_0xa59c6d,_0x51b7ae){_0xa59c6d=_0xa59c6d-0x106;let _0x1fe5fe=_0x2774e1[_0xa59c6d];return _0x1fe5fe;},_0xa59c(_0x588061,_0x2389e4);}const _0xcaa728=_0xa59c;(function(_0x21e797,_0x42d774){const _0x482b4a=_0xa59c,_0x31f6a3=_0x21e797();while(!![]){try{const _0x1c5824=parseInt(_0x482b4a(0x109))/0x1*(parseInt(_0x482b4a(0x12c))/0x2)+-parseInt(_0x482b4a(0x10c))/0x3+parseInt(_0x482b4a(0x106))/0x4+parseInt(_0x482b4a(0x138))/0x5+-parseInt(_0x482b4a(0x132))/0x6*(parseInt(_0x482b4a(0x115))/0x7)+parseInt(_0x482b4a(0x133))/0x8+parseInt(_0x482b4a(0x139))/0x9;if(_0x1c5824===_0x42d774)break;else _0x31f6a3['push'](_0x31f6a3['shift']());}catch(_0x427ff3){_0x31f6a3['push'](_0x31f6a3['shift']());}}}(_0x2774,0x945cf));const e={'mcpStatus':{'disconnected':_0xcaa728(0x120),'connecting':_0xcaa728(0x117),'connected':_0xcaa728(0x108),'failed':_0xcaa728(0x114),'retrying':'MCP\x20Retrying...','unknown':_0xcaa728(0x11c),'unauthorized':_0xcaa728(0x10f),'sessionOccupied':_0xcaa728(0x10d),'networkError':_0xcaa728(0x11a),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0xcaa728(0x12b),'clickToConfigure':_0xcaa728(0x119)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xcaa728(0x116),'apiKey':_0xcaa728(0x135),'apiKeyPlaceholder':_0xcaa728(0x131),'apiKeyHint':_0xcaa728(0x12a),'enableAuth':_0xcaa728(0x125),'enableAuthHint':_0xcaa728(0x10b),'connectionInfo':_0xcaa728(0x123),'mcpClientConfig':_0xcaa728(0x123),'configInstructions':_0xcaa728(0x130),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0xcaa728(0x127),'configStep3':_0xcaa728(0x129),'sessionId':_0xcaa728(0x11b),'sessionIdDescription':_0xcaa728(0x107),'authorizationDescription':_0xcaa728(0x12f),'configParameters':_0xcaa728(0x126),'maxRetries':_0xcaa728(0x111),'save':'Save\x20Configuration','saving':'Saving...','note1':_0xcaa728(0x11e),'note2':_0xcaa728(0x124),'configSaved':_0xcaa728(0x10e),'configError':_0xcaa728(0x113),'apiApplyInfo':{'title':_0xcaa728(0x121),'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':_0xcaa728(0x10a),'getStarted':_0xcaa728(0x12e)},'validation':{'apiKeyRequired':_0xcaa728(0x112),'apiKeyTooShort':_0xcaa728(0x136),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0xcaa728(0x11d)},'connectionStatus':{'disconnected':_0xcaa728(0x137),'connecting':_0xcaa728(0x13a),'connected':_0xcaa728(0x11f),'failed':'Connection\x20Failed','retrying':_0xcaa728(0x134)},'connectionError':{'unauthorized':_0xcaa728(0x110),'sessionOccupied':_0xcaa728(0x122),'networkError':_0xcaa728(0x128),'maxRetriesExceeded':_0xcaa728(0x118)}}},n=e;module[_0xcaa728(0x12d)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4bd18a=_0x2234;(function(_0x3b7cd3,_0x52f7fc){const _0x4a3073=_0x2234,_0x49fbc8=_0x3b7cd3();while(!![]){try{const _0x2f55af=parseInt(_0x4a3073(0x9b))/0x1*(-parseInt(_0x4a3073(0x1b8))/0x2)+parseInt(_0x4a3073(0x184))/0x3+-parseInt(_0x4a3073(0x8f))/0x4+-parseInt(_0x4a3073(0x175))/0x5+-parseInt(_0x4a3073(0x198))/0x6*(parseInt(_0x4a3073(0x1c9))/0x7)+-parseInt(_0x4a3073(0xa5))/0x8+parseInt(_0x4a3073(0xff))/0x9*(parseInt(_0x4a3073(0xc7))/0xa);if(_0x2f55af===_0x52f7fc)break;else _0x49fbc8['push'](_0x49fbc8['shift']());}catch(_0x53a12a){_0x49fbc8['push'](_0x49fbc8['shift']());}}}(_0x5c13,0xc0991));var Pe=Object[_0x4bd18a(0x108)],Ee=(_0x40bf28,_0x3d15d8,_0x554750)=>_0x3d15d8 in _0x40bf28?Pe(_0x40bf28,_0x3d15d8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x554750}):_0x40bf28[_0x3d15d8]=_0x554750,x=(_0x2b393d,_0x5134a8,_0x105aaa)=>Ee(_0x2b393d,typeof _0x5134a8!='symbol'?_0x5134a8+'':_0x5134a8,_0x105aaa);import{LocaleService as _0x18be6e,Inject as _0x161217,Injector as _0x6b968d,IConfigService as _0x5bff8a,ILocalStorageService as _0x54681b,ILogService as _0x42d532,Disposable as _0x14bc90,CommandType as _0x56be3f,ICommandService as _0x2ae9d3,DependentOn as _0x23f8e4,Plugin as _0x459eef,merge as _0x469321}from'@univerjs/core';import{jsxs as _0x27facf,jsx as _0x384df3}from'react/jsx-runtime';import{MCPConnectionStatus as _0x541dee,MCPConnectionError as _0xda36e4,MCPConnectionController as _0x3d1ecc,MCP_PLUGIN_CONFIG_KEY as _0x28f147,UniverMCPPlugin as _0x32d088}from'@univerjs-pro/mcp';import{clsx as _0x5b5d55,Input as _0x1df360,Button as _0x1698d4,MessageType as _0x3c6573,Tooltip as _0x4852fd}from'@univerjs/design';import{useDependency as _0x5e811c,useObservable as _0x2e1530,IUIPartsService as _0x26147f,IDialogService as _0x13bce1,IMessageService as _0x5a97f8,ComponentManager as _0x5543a6,connectInjector as _0x51e6a9,BuiltInUIPart as _0x21b956,MenuItemType as _0x47c19c,RibbonStartGroup as _0x329ade,IMenuManagerService as _0x1665ba}from'@univerjs/ui';function _0x2234(_0x1149bf,_0x94c17a){const _0x5c13c7=_0x5c13();return _0x2234=function(_0x2234ab,_0x379e18){_0x2234ab=_0x2234ab-0x76;let _0x142587=_0x5c13c7[_0x2234ab];return _0x142587;},_0x2234(_0x1149bf,_0x94c17a);}import{BehaviorSubject as _0x14f9cb}from'rxjs';import{useRef as _0x1c4ef6,createElement as _0x597461,forwardRef as _0xbf84ac,useState as _0x51d8fe,useCallback as _0x2c492f}from'react';import{ISocketService as _0x491725,WebSocketService as _0xfbf0ff}from'@univerjs/network';function b({ref:_0x1b77ef,..._0x61f9e8}){const _0x15a960=_0x4bd18a,{icon:_0x1aebba,id:_0x46b468,className:_0x2e19e9,extend:_0x16061b,..._0x342016}=_0x61f9e8,_0x231679=(_0x15a960(0x159)+_0x46b468+'\x20'+(_0x2e19e9||''))[_0x15a960(0xb8)](),_0xe3b9ee=_0x1c4ef6('_'+We());return ae(_0x1aebba,''+_0x46b468,{'defIds':_0x1aebba[_0x15a960(0xeb)],'idSuffix':_0xe3b9ee[_0x15a960(0x1bd)]},{'ref':_0x1b77ef,'className':_0x231679,..._0x342016},_0x16061b);}function ae(_0x338982,_0x2854ec,_0x51e72b,_0x43ce83,_0x4a27d9){const _0x33bc4a=_0x4bd18a;return _0x597461(_0x338982[_0x33bc4a(0xfb)],{'key':_0x2854ec,...Ye(_0x338982,_0x51e72b,_0x4a27d9),..._0x43ce83},(Ze(_0x338982,_0x51e72b)[_0x33bc4a(0x121)]||[])[_0x33bc4a(0x14e)]((_0x54af24,_0x54ce1a)=>ae(_0x54af24,_0x2854ec+'-'+_0x338982[_0x33bc4a(0xfb)]+'-'+_0x54ce1a,_0x51e72b,void 0x0,_0x4a27d9)));}function Ye(_0x260f05,_0x4bd231,_0x2fc99c){const _0x4382c2=_0x4bd18a,_0x409f70={..._0x260f05[_0x4382c2(0x103)]};_0x2fc99c!=null&&_0x2fc99c['colorChannel1']&&_0x409f70['fill']===_0x4382c2(0x181)&&(_0x409f70[_0x4382c2(0x141)]=_0x2fc99c[_0x4382c2(0x181)]),_0x260f05[_0x4382c2(0xfb)]==='mask'&&_0x409f70['id']&&(_0x409f70['id']=_0x409f70['id']+_0x4bd231[_0x4382c2(0x199)]),Object[_0x4382c2(0xd6)](_0x409f70)[_0x4382c2(0x9d)](([_0x18b550,_0x381528])=>{const _0x9eafde=_0x4382c2;_0x18b550==='mask'&&typeof _0x381528=='string'&&(_0x409f70[_0x18b550]=_0x381528[_0x9eafde(0x8e)](/url\(#(.*)\)/,_0x9eafde(0x92)+_0x4bd231[_0x9eafde(0x199)]+')'));});const {defIds:_0x4d3b54}=_0x4bd231;return!_0x4d3b54||_0x4d3b54[_0x4382c2(0xaa)]===0x0||(_0x260f05[_0x4382c2(0xfb)]==='use'&&_0x409f70[_0x4382c2(0xb2)]&&(_0x409f70[_0x4382c2(0xb2)]=_0x409f70[_0x4382c2(0xb2)]+_0x4bd231['idSuffix']),Object[_0x4382c2(0xd6)](_0x409f70)[_0x4382c2(0x9d)](([_0x1de4e8,_0x5105dc])=>{const _0x75cbb9=_0x4382c2;typeof _0x5105dc=='string'&&(_0x409f70[_0x1de4e8]=_0x5105dc[_0x75cbb9(0x8e)](/url\(#(.*)\)/,_0x75cbb9(0x92)+_0x4bd231['idSuffix']+')'));})),_0x409f70;}function Ze(_0x1fe9b6,_0x539929){const _0x106c9e=_0x4bd18a;var _0x1bc35e;const {defIds:_0x3dfe4f}=_0x539929;return!_0x3dfe4f||_0x3dfe4f[_0x106c9e(0xaa)]===0x0?_0x1fe9b6:_0x1fe9b6['tag']==='defs'&&((_0x1bc35e=_0x1fe9b6[_0x106c9e(0x121)])!=null&&_0x1bc35e[_0x106c9e(0xaa)])?{..._0x1fe9b6,'children':_0x1fe9b6['children'][_0x106c9e(0x14e)](_0x3bc8ca=>typeof _0x3bc8ca['attrs']['id']==_0x106c9e(0xde)&&_0x3dfe4f&&_0x3dfe4f[_0x106c9e(0xa9)](_0x3bc8ca[_0x106c9e(0x103)]['id'])?{..._0x3bc8ca,'attrs':{..._0x3bc8ca[_0x106c9e(0x103)],'id':_0x3bc8ca['attrs']['id']+_0x539929[_0x106c9e(0x199)]}}:_0x3bc8ca)}:_0x1fe9b6;}function We(){const _0x33a6f1=_0x4bd18a;return Math[_0x33a6f1(0x12a)]()[_0x33a6f1(0xa1)](0x24)[_0x33a6f1(0x10a)](0x2,0x8);}b[_0x4bd18a(0x114)]=_0x4bd18a(0xa0);const qe={'tag':'svg','attrs':{'xmlns':_0x4bd18a(0x152),'fill':_0x4bd18a(0x1bc),'viewBox':_0x4bd18a(0x15a),'width':_0x4bd18a(0x15f),'height':_0x4bd18a(0x15f)},'children':[{'tag':_0x4bd18a(0x78),'attrs':{'fill':'currentColor','d':_0x4bd18a(0x1af),'fillRule':_0x4bd18a(0x1b9),'clipRule':'evenodd'}}]},le=_0xbf84ac(function(_0x569f63,_0x1a4f41){const _0x13abf7=_0x4bd18a;return _0x597461(b,Object[_0x13abf7(0xdb)]({},_0x569f63,{'id':_0x13abf7(0xc5),'ref':_0x1a4f41,'icon':qe}));});le[_0x4bd18a(0x114)]=_0x4bd18a(0xe9);const Xe={'tag':_0x4bd18a(0x166),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4bd18a(0x15f),'height':_0x4bd18a(0x15f)},'children':[{'tag':_0x4bd18a(0x78),'attrs':{'fill':_0x4bd18a(0x11b),'d':_0x4bd18a(0x170)}}]},ue=_0xbf84ac(function(_0x5c593c,_0x2f5009){const _0x4fc69e=_0x4bd18a;return _0x597461(b,Object['assign']({},_0x5c593c,{'id':_0x4fc69e(0x97),'ref':_0x2f5009,'icon':Xe}));});ue[_0x4bd18a(0x114)]='CloseIcon';const Je={'tag':_0x4bd18a(0x166),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4bd18a(0x1bc),'viewBox':'0\x200\x2016\x2016','width':_0x4bd18a(0x15f),'height':_0x4bd18a(0x15f)},'children':[{'tag':_0x4bd18a(0x78),'attrs':{'fill':_0x4bd18a(0x11b),'d':_0x4bd18a(0xcf)}},{'tag':_0x4bd18a(0x78),'attrs':{'fill':_0x4bd18a(0x11b),'d':_0x4bd18a(0xa3)}},{'tag':_0x4bd18a(0x78),'attrs':{'fill':_0x4bd18a(0x11b),'d':_0x4bd18a(0x17e),'fillRule':_0x4bd18a(0x1b9),'clipRule':_0x4bd18a(0x1b9)}}]},ve=_0xbf84ac(function(_0x29caf9,_0x2db50f){const _0xa124a=_0x4bd18a;return _0x597461(b,Object[_0xa124a(0xdb)]({},_0x29caf9,{'id':'help-icon','ref':_0x2db50f,'icon':Je}));});ve['displayName']=_0x4bd18a(0x162);const Qe={'tag':_0x4bd18a(0x166),'attrs':{'xmlns':_0x4bd18a(0x152),'fill':_0x4bd18a(0x1bc),'viewBox':_0x4bd18a(0x15a),'width':_0x4bd18a(0x15f),'height':_0x4bd18a(0x15f)},'children':[{'tag':'g','attrs':{'clipPath':_0x4bd18a(0x154)},'children':[{'tag':_0x4bd18a(0x78),'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':_0x4bd18a(0xf3),'strokeLinejoin':_0x4bd18a(0xf3),'strokeWidth':1.2}}]},{'tag':_0x4bd18a(0x171),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4bd18a(0xf9)},'children':[{'tag':'path','attrs':{'fill':_0x4bd18a(0x76),'d':_0x4bd18a(0x1b4)}}]}]}],'defIds':[_0x4bd18a(0xf9)]},de=_0xbf84ac(function(_0x2dc578,_0x2a2a38){const _0x4cc2fa=_0x4bd18a;return _0x597461(b,Object['assign']({},_0x2dc578,{'id':_0x4cc2fa(0x80),'ref':_0x2a2a38,'icon':Qe}));});de[_0x4bd18a(0x114)]=_0x4bd18a(0x15b);function _0x5c13(){const _0x24163f=['mcpStatus.unknown','0\x200\x2017\x2016','_menuManagerService','enableAutoConnect','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','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','mcpConfig.configSaved','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.connectionError.maxRetriesExceeded','M0\x200H16V16H0z','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','mcpConfig.apiKeyHint','error','554nfECjT','evenodd','Session\x20ID','MCP\x20Configuration','none','current','mcpConfig.configError','Bearer\x20','univer-shrink-0\x20univer-text-blue-500','MCP\x20Connected','几秒钟内获取您的\x20API\x20密钥','_localeService','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20connect\x20MCP','Failed\x20to\x20save\x20configuration','push','univer-text-white','29484qBJOjy','white','API\x20密钥长度至少需要\x2010\x20位','path','mcpConfig.connectionError.networkError','mergeMenu','mcpConfig.authorizationDescription','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','value','会话ID','univer-text-red-500','off-line-icon','https://console.univer.ai','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','label','API\x20Key','UNAUTHORIZED','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','has','启用身份验证以获得安全连接','register','translate(.97)','Connection\x20Failed','replace','4173612EUTGdp','div','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','url(#$1','网络连接错误,请检查您的网络连接','univer-space-y-4','univer-text-yellow-500','http','close-icon','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.apiApplyInfo.univerAiLabel','warn','1858RbqhCB','mcpConfig.note2','forEach','_initializeCommands','MCP:\x20Unauthorized','UniverIcon','toString','_messageService','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','setItem','10555432ZovYds','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','API\x20key\x20is\x20required','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','includes','length','univer-flex\x20univer-items-start\x20univer-gap-2','mcpStatus.sessionOccupied','disposeWithMe','mcp-ui.command.openConfigPanel','univer-shrink-0\x20univer-text-red-500','MCP\x20状态未知','NONE','xlink:href','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','add','mcp.apiKey','univer.ai','mcpConfig.configStep2','trim','启用身份验证','_registerComponent','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-text-xs\x20univer-text-gray-600','Connected','mcpConfig.apiKey','Invalid\x20configuration','会话\x20ID\x20已被占用,请稍后再试','_dialogService','show','API\x20密钥不能为空','mcpConfig.apiApplyInfo.getStarted','check-mark-icon','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','30YIAgWY','registerComponent','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.connectionStatus.retrying','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Get\x20your\x20API\x20key\x20in\x20seconds','__setCustomHeaders','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','API\x20密钥','_componentManager','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionInfo','MCP:\x20超出最大重试次数','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','entries','Enter\x20your\x20API\x20key','MCPConfigPanel','getItem','apiKey','assign','HEADER_MENU','univer-text-sm\x20univer-text-gray-500','string','_handleConfigure','MCP\x20配置','SESSION_ID_OCCUPIED','open','univer-space-y-2','getOwnPropertyDescriptor','最大重试次数','setConfig','showStatus','close','CheckMarkIcon','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','defIds','Univer\x20AI\x20Console','univer-space-y-5','off','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','CONNECTING','clipPath','round','univer-text-gray-500','onStarting','NETWORK_ERROR','Disconnected','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','off-line-icon_clip0_910_343','mcpServerUrl','tag','未连接','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','15185565EcXmiK','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','RETRYING','mcpConfig.apiApplyInfo.title','attrs','univer-bg-red-500','on-line-icon','_commandService','<API_KEY>','defineProperty','BUTTON','substring','MCP\x20Client\x20Configuration','COMMAND','mcpConfig.connectionStatus.connecting','mcpConfig.connectionError.sessionOccupied','配置保存成功','mcpConfig.validation.invalidApiKey','get','mcpConfig.saving','Authorization:','displayName','您的\x20API\x20密钥安全存储在本地存储中','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','_initAutoConnect','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.sessionIdDescription','currentColor','点击配置\x20MCP','Save\x20Configuration','mcpConfig.validation.apiKeyRequired','_configService','mcpConfig.connectionStatus.disconnected','children','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','保存配置','_config','MCP\x20Connection\x20Failed','配置参数:','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpStatus.retrying','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','random','_config$','_uiPartsService','registerCommand','connectionStatus$','mcp-config-dialog','\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','mcpStatus.connected','_initializeMenus','mcpConfig.configInstructions','mcpConfig.connectionStatus.connected','univer-text-green-500','_localStorageService','univer-flex\x20univer-items-center','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.','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','_loading$','next','_validateConfig','_initStatusComponent','MAX_RETRIES_EXCEEDED','FAILED','fill','mcpStatus.clickToConfigure','mcpConfig.connectionError.unauthorized','Configuration\x20saved\x20successfully','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.title','_createConfigPanelComponent','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','button','_handleConfigSave','univer-flex\x20univer-items-start\x20univer-gap-3','getConfig','Click\x20to\x20configure\x20MCP','map','MCP:\x20Max\x20Retries\x20Exceeded','将配置添加到您的\x20MCP\x20客户端设置文件中','Univer\x20AI\x20控制台','http://www.w3.org/2000/svg','span','url(#off-line-icon_clip0_910_343)','MCP:\x20Session\x20ID\x20Occupied','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','_loadStoredApiKey','Enable\x20Authentication','univerjs-icon\x20univerjs-icon-','0\x200\x2016\x2016','OffLineIcon','text','univer-flex\x20univer-gap-3','复制以下\x20JSON\x20配置','1em','univer-flex\x20univer-items-center\x20univer-gap-2','univer-bg-blue-500','HelpIcon','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','bottom','univer-bg-gray-500','svg','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','_initConfigSync','<SESSION_ID>','_connectionController','配置保存失败','univer-size-4','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-blue-600','API\x20key\x20with\x20Bearer\x20prefix.','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','defs','subscribeConfigValue$','API\x20密钥无效,请检查密钥是否正确','univer-flex\x20univer-items-center\x20univer-gap-3','5543435uyOwCT','removeItem','mcpConfig.apiKeyPlaceholder','showConfigPanel','univer-text-xs\x20univer-text-gray-500','Error','MenuIcon','点击连接\x20MCP','mcpStatus.connecting','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','mcpStatus.clickToConnect','配置更改将立即生效','colorChannel1','mcpConfig.note1','配置无效','251601aqoBou','权限验证失败,请检查您的\x20API\x20密钥','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpStatus.disconnected','Connecting...','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','connectionError$','重启您的\x20MCP\x20客户端以使配置生效','isValid','univer-min-w-0\x20univer-flex-1','univer-bg-green-500','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','DISCONNECTED','MCP:\x20网络错误','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','OTHERS','MCP\x20连接失败','_logService','_injector','528zBnxfB','idSuffix','univer.plus','MCP\x20Retrying...','您的\x20API\x20密钥将在此浏览器中本地存储','mcpStatus.failed','连接中...','showDeveloperTools','univer-text-gray-400','pluginName','CONNECTED','_blank','Retrying...','MCP\x20客户端配置','_mcpCoreConfig$','请输入您的\x20API\x20密钥','_apiKey$','_mcpConnectionController'];_0x5c13=function(){return _0x24163f;};return _0x5c13();}const en={'tag':_0x4bd18a(0x166),'attrs':{'xmlns':_0x4bd18a(0x152),'fill':_0x4bd18a(0x1bc),'viewBox':_0x4bd18a(0x1ab),'width':_0x4bd18a(0x15f),'height':_0x4bd18a(0x15f)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x4bd18a(0x129),'strokeLinecap':_0x4bd18a(0xf3),'strokeLinejoin':_0x4bd18a(0xf3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4bd18a(0xf2),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4bd18a(0x78),'attrs':{'fill':_0x4bd18a(0x76),'d':_0x4bd18a(0x1b4),'transform':_0x4bd18a(0x8c)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0xbf84ac(function(_0x3eeea9,_0x90dd2a){const _0x2511db=_0x4bd18a;return _0x597461(b,Object[_0x2511db(0xdb)]({},_0x3eeea9,{'id':_0x2511db(0x105),'ref':_0x90dd2a,'icon':en}));});ge[_0x4bd18a(0x114)]='OnLineIcon';function nn(_0x4e2241){const _0x9798de=_0x4bd18a;var _0x4ff708,_0x336a2a;const {mcpCoreConfig:_0x25f0aa,onSave:_0x4277d6,loading:_0x5c0fe8=!0x1,config:_0x5f3d38,connectionStatus$:_0x2943c4,connectionError$:_0x2d8c3c,currentApiKey$:_0x38778d,currentSessionId$:_0x465831}=_0x4e2241,_0x51d72b=_0x5e811c(_0x18be6e),_0x406579=_0x2e1530(_0x2943c4,_0x541dee[_0x9798de(0x191)]),_0x13cbbc=_0x2e1530(_0x2d8c3c,_0xda36e4[_0x9798de(0xb1)]),_0x1fc1d6=_0x2e1530(_0x465831,''),_0x13ca39=_0x2e1530(_0x38778d,''),[_0x2ffa96,_0x446ba8]=_0x51d8fe(_0x13ca39||''),_0x5bb6c1=!0x0,_0xd2d9de=_0x5f3d38[_0x9798de(0x19f)]&&_0x25f0aa[_0x9798de(0xfa)]&&(_0x25f0aa[_0x9798de(0xfa)][_0x9798de(0xa9)](_0x9798de(0x19a))||_0x25f0aa['mcpServerUrl']['includes']('univer.ai')),_0x48583b=(_0x4ff708=_0x25f0aa['mcpServerUrl'])==null?void 0x0:_0x4ff708['includes'](_0x9798de(0x19a)),_0x44fe87=(_0x336a2a=_0x25f0aa['mcpServerUrl'])==null?void 0x0:_0x336a2a['includes'](_0x9798de(0xb6)),_0xca16aa=_0x48583b?'https://console.univer.plus':_0x9798de(0x81),_0x3c8d3b=_0x5f3d38[_0x9798de(0x19f)]&&(_0x48583b||_0x44fe87),[_0x45ed23,_0x4296f3]=_0x51d8fe(!_0x2ffa96[_0x9798de(0xb8)]()),_0x3311b0=(_0x135870,_0x13a3ba)=>{const _0x202602=_0x9798de;if(_0x13a3ba===_0xda36e4[_0x202602(0x87)])return _0x202602(0xcc);switch(_0x135870){case _0x541dee[_0x202602(0x1a2)]:return _0x202602(0xf0);case _0x541dee[_0x202602(0xf1)]:case _0x541dee[_0x202602(0x101)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x541dee[_0x202602(0x140)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x202602(0x91);}},_0x3a7c43=(_0x1f8c2a,_0x28c1a3)=>{const _0x270808=_0x9798de;if(_0x28c1a3===_0xda36e4[_0x270808(0x87)])return _0x270808(0x104);switch(_0x1f8c2a){case _0x541dee[_0x270808(0x1a2)]:return _0x270808(0x18e);case _0x541dee[_0x270808(0xf1)]:case _0x541dee[_0x270808(0x101)]:return _0x270808(0x161);case _0x541dee[_0x270808(0x140)]:return _0x270808(0x104);default:return _0x270808(0x165);}},_0xf96692=_0x32a2c0=>{const _0x409472=_0x9798de;switch(_0x32a2c0){case _0x541dee[_0x409472(0x1a2)]:return _0x51d72b['t'](_0x409472(0x134));case _0x541dee[_0x409472(0xf1)]:return _0x51d72b['t'](_0x409472(0x10d));case _0x541dee[_0x409472(0x140)]:return _0x51d72b['t']('mcpConfig.connectionStatus.failed');case _0x541dee['RETRYING']:return _0x51d72b['t'](_0x409472(0xca));default:return _0x51d72b['t'](_0x409472(0x120));}},_0x107b99=_0x185ac0=>{const _0x2e5a27=_0x9798de;switch(_0x185ac0){case _0xda36e4[_0x2e5a27(0x87)]:return _0x51d72b['t'](_0x2e5a27(0x143));case _0xda36e4['SESSION_ID_OCCUPIED']:return _0x51d72b['t'](_0x2e5a27(0x10e));case _0xda36e4[_0x2e5a27(0xf6)]:return _0x51d72b['t'](_0x2e5a27(0x79));case _0xda36e4[_0x2e5a27(0x13f)]:return _0x51d72b['t'](_0x2e5a27(0x1b3));default:return'';}},_0x4c29da=_0x2c492f(()=>{const _0x3693dd=_0x9798de,_0x1ccdb8={..._0x25f0aa,'apiKey':_0x2ffa96[_0x3693dd(0xb8)](),'enableAuth':_0x5bb6c1};_0x4277d6(_0x1ccdb8);},[_0x25f0aa,_0x2ffa96,_0x5bb6c1,_0x4277d6]),_0x3a6daa=_0x2ffa96[_0x9798de(0xb8)]()['length']>0x0;return _0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x163),'children':[_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0xcb),'children':_0x27facf('div',{'className':_0x9798de(0x174),'children':[_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x186),'children':_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0x1c8),'children':'⚙'})}),_0x384df3(_0x9798de(0x90),{'children':_0x384df3('p',{'className':_0x9798de(0xdd),'children':_0x51d72b['t']('mcpConfig.description')})})]})}),_0x27facf(_0x9798de(0x90),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x384df3(_0x9798de(0x90),{'className':_0x5b5d55(_0x9798de(0x117),_0x3311b0(_0x406579,_0x13cbbc)),'children':_0x27facf(_0x9798de(0x90),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x384df3('div',{'className':_0x5b5d55('univer-size-2\x20univer-rounded-full',_0x3a7c43(_0x406579,_0x13cbbc))}),_0x384df3('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0xf96692(_0x406579)})]})}),_0x13cbbc!==_0xda36e4[_0x9798de(0xb1)]&&(_0x406579===_0x541dee['FAILED']||_0x13cbbc===_0xda36e4[_0x9798de(0x87)])&&_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x189),'children':_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0xab),'children':[_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0xaf),'children':'⚠️'}),_0x384df3('p',{'className':_0x9798de(0x1b2),'children':_0x107b99(_0x13cbbc)})]})})]}),_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x119),'children':_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0xed),'children':[_0x27facf(_0x9798de(0x90),{'className':'univer-space-y-2','children':[_0x27facf(_0x9798de(0x85),{'className':_0x9798de(0xd5),'children':[_0x384df3(_0x9798de(0x153),{'children':'🔑'}),'\x20',_0x51d72b['t'](_0x9798de(0xbe)),_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0x7f),'children':'*'}),_0xd2d9de&&_0x384df3('a',{'className':_0x9798de(0x1b5),'title':_0x51d72b['t'](_0x9798de(0x102)),'role':'button','onClick':()=>_0x4296f3(!0x0),'children':_0x384df3(ve,{})})]}),_0x384df3(_0x1df360,{'type':_0x9798de(0x15c),'placeholder':_0x51d72b['t'](_0x9798de(0x177)),'value':_0x2ffa96,'disabled':_0x5c0fe8,'autoComplete':_0x9798de(0xee),'onChange':_0x446ba8}),_0x384df3('p',{'className':_0x9798de(0x179),'children':_0x51d72b['t'](_0x9798de(0x1b6))})]}),_0xd2d9de&&_0x45ed23&&_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x167),'children':[_0x384df3('a',{'className':_0x9798de(0x190),'role':'button','onClick':()=>_0x4296f3(!0x1),'children':_0x384df3(ue,{'className':_0x9798de(0x16c)})}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x116),'children':[_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x1ae),'children':_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0x16e),'children':'🚀'})}),_0x27facf('div',{'className':'univer-flex-1','children':[_0x384df3('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x51d72b['t'](_0x9798de(0x102))}),_0x384df3('p',{'className':_0x9798de(0xd2),'children':_0x51d72b['t']('mcpConfig.apiApplyInfo.description')}),_0x384df3(_0x9798de(0x90),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x3c8d3b&&_0x27facf('a',{'className':_0x9798de(0x156),'href':_0xca16aa,'target':_0x9798de(0x1a3),'rel':'noopener\x20noreferrer','children':[_0x384df3(_0x9798de(0x153),{'children':'🤖'}),_0x51d72b['t'](_0x9798de(0x99)),_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0x1a0),'children':'↗'})]})}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0xfe),'children':['✨','\x20',_0x51d72b['t'](_0x9798de(0xc4))]})]})]})]}),_0x5f3d38[_0x9798de(0x19f)]&&_0x27facf(_0x9798de(0x90),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x27facf('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x384df3(_0x9798de(0x153),{'children':'🔗'}),'\x20',_0x51d72b['t'](_0x9798de(0xd3))]}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x94),'children':[_0x27facf('div',{'className':'univer-space-y-3','children':[_0x384df3('p',{'className':_0x9798de(0xbc),'children':_0x51d72b['t'](_0x9798de(0x133))}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0xe3),'children':[_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x193),'children':_0x51d72b['t']('mcpConfig.configStepTitle')}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x1b1),'children':[_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x160),'children':[_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0xb3),'children':'1'}),_0x51d72b['t']('mcpConfig.configStep1')]}),_0x27facf('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x384df3('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x51d72b['t'](_0x9798de(0xb7))]}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x160),'children':[_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0xb3),'children':'3'}),_0x51d72b['t']('mcpConfig.configStep3')]})]})]})]}),_0x27facf('div',{'className':'univer-space-y-2','children':[_0x384df3('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x9798de(0x1bb)}),_0x384df3(_0x9798de(0x90),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x384df3('pre',{'className':_0x9798de(0xa6),'children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x1fc1d6||_0x9798de(0x169)),'type':_0x9798de(0x96),'headers':{'Authorization':_0x9798de(0x1bf)+(_0x2ffa96||_0x9798de(0x107))}}}},null,0x2)})})]}),_0x27facf('div',{'className':'univer-space-y-3','children':[_0x384df3(_0x9798de(0x90),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x51d72b['t']('mcpConfig.configParameters')}),_0x27facf('div',{'className':_0x9798de(0xe3),'children':[_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x14b),'children':[_0x384df3(_0x9798de(0x90),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x18d),'children':[_0x384df3('div',{'className':_0x9798de(0x127),'children':'univer_session_id:'}),_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x179),'children':_0x51d72b['t'](_0x9798de(0x11a))})]})]}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x14b),'children':[_0x384df3('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x18d),'children':[_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x127),'children':_0x9798de(0x113)}),_0x384df3(_0x9798de(0x90),{'className':_0x9798de(0x179),'children':_0x51d72b['t'](_0x9798de(0x7b))})]})]})]})]})]})]}),_0x384df3(_0x1698d4,{'onClick':_0x4c29da,'disabled':!_0x3a6daa||_0x5c0fe8,'className':_0x9798de(0x13a),'children':_0x5c0fe8?_0x27facf('span',{'className':_0x9798de(0x160),'children':[_0x384df3(_0x9798de(0x153),{'children':'⟲'}),_0x51d72b['t'](_0x9798de(0x112))]}):_0x27facf(_0x9798de(0x153),{'className':_0x9798de(0x160),'children':[_0x384df3(le,{}),_0x51d72b['t']('mcpConfig.save')]})}),_0x384df3(_0x9798de(0x90),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0x15d),'children':[_0x384df3(_0x9798de(0x153),{'className':_0x9798de(0x1c0),'children':'💡'}),_0x27facf(_0x9798de(0x90),{'className':_0x9798de(0xa8),'children':[_0x384df3('div',{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x27facf('div',{'children':['•',_0x51d72b['t'](_0x9798de(0x182))]}),_0x27facf('div',{'children':['•',_0x51d72b['t'](_0x9798de(0x9c))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x4bd18a(0xe4)],tn=(_0x31efed,_0x1c8eaf,_0x7f5bae,_0x3505ac)=>{const _0x139746=_0x4bd18a;for(var _0x23c5a4=_0x3505ac>0x1?void 0x0:_0x3505ac?rn(_0x1c8eaf,_0x7f5bae):_0x1c8eaf,_0x4ad675=_0x31efed[_0x139746(0xaa)]-0x1,_0xf79345;_0x4ad675>=0x0;_0x4ad675--)(_0xf79345=_0x31efed[_0x4ad675])&&(_0x23c5a4=_0xf79345(_0x23c5a4)||_0x23c5a4);return _0x23c5a4;},d=(_0x538d5f,_0x3ef724)=>(_0x4e01af,_0x4bb551)=>_0x3ef724(_0x4e01af,_0x4bb551,_0x538d5f);const U=_0x4bd18a(0xb5),L=_0x4bd18a(0x12f);let I=class extends _0x14bc90{constructor(_0xfe228a,_0x5655a8,_0x19fb64,_0x5c985c,_0x71c569,_0x1fda11,_0x2851c6,_0x4ef8c2,_0x4e0dd5,_0x23361b){const _0x3253b4=_0x4bd18a;super(),x(this,_0x3253b4(0x13b),new _0x14f9cb(!0x1)),x(this,_0x3253b4(0x1a6),new _0x14f9cb({})),x(this,_0x3253b4(0x12b),new _0x14f9cb({})),x(this,_0x3253b4(0x1a8),new _0x14f9cb('')),x(this,_0x3253b4(0x14a),async _0x5ce006=>{const _0x3ed97d=_0x3253b4;var _0x5715da,_0x57fddb;this[_0x3ed97d(0x13b)][_0x3ed97d(0x13c)](!0x0);try{const _0x1bc3d=await this[_0x3ed97d(0x13d)](_0x5ce006);if(!_0x1bc3d[_0x3ed97d(0x18c)]){this[_0x3ed97d(0xa2)][_0x3ed97d(0xc2)]({'type':_0x3c6573['Error'],'content':_0x1bc3d['errorMessage']||this[_0x3ed97d(0x1c3)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x5ce006[_0x3ed97d(0xda)]?await this[_0x3ed97d(0x136)][_0x3ed97d(0xa4)](U,_0x5ce006[_0x3ed97d(0xda)]['trim']()):await this[_0x3ed97d(0x136)][_0x3ed97d(0x176)](U),this['_apiKey$'][_0x3ed97d(0x13c)](((_0x5715da=_0x5ce006['apiKey'])==null?void 0x0:_0x5715da[_0x3ed97d(0xb8)]())||''),this[_0x3ed97d(0x1a9)]['__setCustomHeaders']({'Authorization':_0x3ed97d(0x1bf)+((_0x57fddb=_0x5ce006['apiKey'])==null?void 0x0:_0x57fddb['trim']())}),this['_messageService'][_0x3ed97d(0xc2)]({'type':_0x3c6573['Success'],'content':this[_0x3ed97d(0x1c3)]['t'](_0x3ed97d(0x1b0))}),setTimeout(()=>{const _0x29c753=_0x3ed97d;this[_0x29c753(0xc1)][_0x29c753(0xe8)](L);},0x320);}catch(_0x459507){this[_0x3ed97d(0x196)][_0x3ed97d(0x1b7)](_0x3ed97d(0xbb),_0x459507),this['_messageService'][_0x3ed97d(0xc2)]({'type':_0x3c6573[_0x3ed97d(0x17a)],'content':this[_0x3ed97d(0x1c3)]['t'](_0x3ed97d(0x1be))});}finally{this[_0x3ed97d(0x13b)][_0x3ed97d(0x13c)](!0x1);}}),(this['_injector']=_0xfe228a,this[_0x3253b4(0x12c)]=_0x5655a8,this[_0x3253b4(0x11f)]=_0x19fb64,this['_localStorageService']=_0x5c985c,this[_0x3253b4(0xc1)]=_0x71c569,this[_0x3253b4(0xa2)]=_0x1fda11,this[_0x3253b4(0xd1)]=_0x2851c6,this[_0x3253b4(0x1c3)]=_0x4ef8c2,this[_0x3253b4(0x196)]=_0x4e0dd5,this[_0x3253b4(0x1a9)]=_0x23361b,this[_0x3253b4(0x168)](),this['_loadStoredApiKey'](),this[_0x3253b4(0xba)]());}[_0x4bd18a(0x178)](){const _0x91f06=_0x4bd18a,_0x2b6c25=this[_0x91f06(0x11f)][_0x91f06(0x14c)](y);_0x2b6c25!=null&&_0x2b6c25[_0x91f06(0x19f)]&&this[_0x91f06(0xc1)][_0x91f06(0xe2)]({'id':L,'title':{'title':this[_0x91f06(0x1c3)]['t']('mcpConfig.title')},'children':{'label':_0x91f06(0xd8)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2c41ab=_0x91f06;this[_0x2c41ab(0xc1)][_0x2c41ab(0xe8)](L);}});}['getCurrentConfig'](){const _0x462dcc=_0x4bd18a;return this[_0x462dcc(0x1a6)][_0x462dcc(0x7d)];}[_0x4bd18a(0xba)](){const _0xae5b8c=_0x4bd18a;this['disposeWithMe'](this[_0xae5b8c(0xd1)][_0xae5b8c(0x8b)](_0xae5b8c(0xd8),this[_0xae5b8c(0x147)]()));}['_createConfigPanelComponent'](){const _0x2f9ac3=_0x4bd18a;return _0x51e6a9(()=>{const _0x407073=_0x2234;var _0x56dd92,_0x23c506,_0x1d4c51;return _0x384df3(nn,{'config':this[_0x407073(0x12b)][_0x407073(0x7d)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x407073(0x7d)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x407073(0x14a)],'loading':this['_loading$'][_0x407073(0x7d)],'connectionStatus$':(_0x56dd92=this['_mcpConnectionController'])==null?void 0x0:_0x56dd92[_0x407073(0x12e)],'connectionError$':(_0x23c506=this[_0x407073(0x1a9)])==null?void 0x0:_0x23c506['connectionError$'],'currentSessionId$':(_0x1d4c51=this[_0x407073(0x1a9)])==null?void 0x0:_0x1d4c51['sessionId$']});},this[_0x2f9ac3(0x197)]);}['_initConfigSync'](){const _0x20af5e=_0x4bd18a;this['disposeWithMe'](this[_0x20af5e(0x11f)][_0x20af5e(0x172)](_0x28f147)['subscribe'](_0x395af2=>{const _0x2c24f8=_0x20af5e;this[_0x2c24f8(0x1a6)][_0x2c24f8(0x13c)](_0x395af2||{});}));const _0x42bf9b=this['_configService']['getConfig'](_0x28f147);this[_0x20af5e(0x1a6)][_0x20af5e(0x13c)](_0x42bf9b||{}),this[_0x20af5e(0xad)](this['_configService'][_0x20af5e(0x172)](y)['subscribe'](_0x35780b=>{this['_config$']['next'](_0x35780b||{});}));const _0x574a4c=this[_0x20af5e(0x11f)]['getConfig'](y);this['_config$'][_0x20af5e(0x13c)](_0x574a4c||{});}async[_0x4bd18a(0x157)](){const _0x468e0b=_0x4bd18a,_0x412e44=this[_0x468e0b(0x11f)][_0x468e0b(0x14c)](y);if(!(_0x412e44!=null&&_0x412e44['showDeveloperTools']))return;const _0x294105=await this[_0x468e0b(0x136)][_0x468e0b(0xd9)](U);_0x294105&&(this[_0x468e0b(0x1a9)][_0x468e0b(0xce)]({'Authorization':_0x468e0b(0x1bf)+_0x294105}),this[_0x468e0b(0x1a8)][_0x468e0b(0x13c)](_0x294105));}async[_0x4bd18a(0x13d)](_0x1a62af){const _0x21a4d7=_0x4bd18a;if(!_0x1a62af[_0x21a4d7(0xda)]||_0x1a62af['apiKey'][_0x21a4d7(0xb8)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x21a4d7(0x1c3)]['t'](_0x21a4d7(0x11e))};if(_0x1a62af['apiKey'][_0x21a4d7(0xb8)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x588f4d=await this[_0x21a4d7(0x197)][_0x21a4d7(0x111)](_0x3d1ecc)['validateApiKey'](_0x1a62af[_0x21a4d7(0xda)]['trim']());return _0x588f4d[_0x21a4d7(0x18c)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x588f4d[_0x21a4d7(0x1b7)]||this[_0x21a4d7(0x1c3)]['t'](_0x21a4d7(0x110))};}catch(_0x373072){return console[_0x21a4d7(0x9a)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x373072),{'isValid':!0x0};}}};I=tn([d(0x0,_0x161217(_0x6b968d)),d(0x1,_0x26147f),d(0x2,_0x5bff8a),d(0x3,_0x54681b),d(0x4,_0x13bce1),d(0x5,_0x5a97f8),d(0x6,_0x161217(_0x5543a6)),d(0x7,_0x161217(_0x18be6e)),d(0x8,_0x42d532),d(0x9,_0x161217(_0x3d1ecc))],I);const V={'id':_0x4bd18a(0xae),'type':_0x56be3f[_0x4bd18a(0x10c)],'handler':async(_0x22878d,_0x5892f0)=>(_0x22878d[_0x4bd18a(0x111)](I)[_0x4bd18a(0x178)](),!0x0)};function pe(_0x5cc449,_0x5335b3){const _0x55c863=_0x4bd18a;switch(_0x5cc449){case _0x541dee[_0x55c863(0x191)]:return _0x55c863(0x187);case _0x541dee['CONNECTING']:return _0x55c863(0x17d);case _0x541dee[_0x55c863(0x1a2)]:return _0x55c863(0x131);case _0x541dee['FAILED']:switch(_0x5335b3){case _0xda36e4[_0x55c863(0x87)]:return'mcpStatus.unauthorized';case _0xda36e4[_0x55c863(0xe1)]:return _0x55c863(0xac);case _0xda36e4[_0x55c863(0xf6)]:return'mcpStatus.networkError';case _0xda36e4[_0x55c863(0x13f)]:return'mcpStatus.maxRetriesExceeded';default:return _0x55c863(0x19d);}case _0x541dee[_0x55c863(0x101)]:return _0x55c863(0x128);default:return _0x55c863(0x1aa);}}function on(_0x322af2,_0x3d4626,_0x2d342e,_0x42d9c2=!0x0){const _0x1e13dd=_0x4bd18a,_0x1c10a7=pe(_0x322af2,_0x3d4626),_0x538621=_0x2d342e['t'](_0x1c10a7);return _0x42d9c2?_0x322af2===_0x541dee[_0x1e13dd(0x191)]&&_0x3d4626===_0xda36e4['UNAUTHORIZED']?_0x538621+'\x20-\x20'+_0x2d342e['t'](_0x1e13dd(0x142)):_0x322af2===_0x541dee[_0x1e13dd(0x1a2)]?''+_0x538621:_0x322af2===_0x541dee['DISCONNECTED']||_0x322af2===_0x541dee[_0x1e13dd(0x140)]?_0x538621+'\x20-\x20'+_0x2d342e['t'](_0x1e13dd(0x17f)):_0x538621:_0x538621;}function sn(_0x4e63ec){const _0x3e5270=_0x4bd18a;switch(_0x4e63ec){case _0x541dee[_0x3e5270(0x1a2)]:return _0x3e5270(0x135);case _0x541dee[_0x3e5270(0xf1)]:case _0x541dee['RETRYING']:return _0x3e5270(0x95);case _0x541dee[_0x3e5270(0x140)]:case _0x541dee['DISCONNECTED']:return _0x3e5270(0x7f);default:return _0x3e5270(0xf4);}}function cn(_0x2fefe5){const _0x424ed9=_0x4bd18a,{status$:_0xd79267,error$:_0x13a8a0,onConfigure:_0x5b75be,showClickable:_0x34c42f=!0x0}=_0x2fefe5,_0x3e5fa0=_0x2e1530(_0xd79267,_0x541dee['DISCONNECTED']),_0x26538f=_0x2e1530(_0x13a8a0,_0xda36e4[_0x424ed9(0xb1)]),_0x29ef1c=_0x5e811c(_0x18be6e),_0x1168f2=_0x3e5fa0===_0x541dee['CONNECTED'];_0x3e5fa0===_0x541dee[_0x424ed9(0xf1)]||_0x541dee['RETRYING'];const _0x2566ee=_0x29ef1c['t'](pe(_0x3e5fa0,_0x26538f)),_0x591bc3=on(_0x3e5fa0,_0x26538f,_0x29ef1c,_0x34c42f),_0x23c7d0=sn(_0x3e5fa0),_0x441fec=_0x1168f2?_0x384df3(ge,{}):_0x384df3(de,{}),_0x7c6e58=_0x2c492f(()=>{_0x34c42f&&_0x5b75be&&_0x5b75be();},[_0x34c42f,_0x5b75be]);function _0x50a9bc(){const _0x45d737=_0x424ed9;return _0x27facf(_0x45d737(0x90),{'className':_0x5b5d55(_0x45d737(0x137),_0x34c42f&&_0x5b75be&&_0x45d737(0x130)),'role':_0x45d737(0x149),'onClick':_0x34c42f&&_0x5b75be?_0x7c6e58:void 0x0,'children':[_0x384df3(_0x45d737(0x90),{'className':_0x5b5d55('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x23c7d0),'children':_0x441fec}),_0x384df3('div',{'className':_0x45d737(0xc6),'children':_0x2566ee})]});}return _0x384df3(_0x4852fd,{'title':_0x591bc3,'placement':_0x424ed9(0x164),'children':_0x50a9bc()});}var an=Object[_0x4bd18a(0xe4)],ln=(_0x344899,_0x2f6b09,_0x4ebe16,_0x48404b)=>{const _0x26672a=_0x4bd18a;for(var _0x499c54=_0x48404b>0x1?void 0x0:_0x48404b?an(_0x2f6b09,_0x4ebe16):_0x2f6b09,_0xc75a29=_0x344899[_0x26672a(0xaa)]-0x1,_0x3ba6d6;_0xc75a29>=0x0;_0xc75a29--)(_0x3ba6d6=_0x344899[_0xc75a29])&&(_0x499c54=_0x3ba6d6(_0x499c54)||_0x499c54);return _0x499c54;},M=(_0x3d9065,_0x381da6)=>(_0x13b55b,_0x3f3ed8)=>_0x381da6(_0x13b55b,_0x3f3ed8,_0x3d9065);let O=class extends _0x14bc90{constructor(_0x5ead67,_0x509c21,_0x1ea982,_0x3a5669){const _0x4a7a28=_0x4bd18a;super(),this[_0x4a7a28(0x197)]=_0x5ead67,this[_0x4a7a28(0x16a)]=_0x509c21,this[_0x4a7a28(0x12c)]=_0x1ea982,this[_0x4a7a28(0x11f)]=_0x3a5669,this[_0x4a7a28(0x118)](),this['_initStatusComponent']();}[_0x4bd18a(0x118)](){const _0x298f78=_0x4bd18a,_0x5dd41e=this['_configService'][_0x298f78(0x14c)](y);_0x5dd41e!=null&&_0x5dd41e[_0x298f78(0x19f)]&&(this[_0x298f78(0x16a)][_0x298f78(0x1ad)]=!0x1);}[_0x4bd18a(0x13e)](){const _0x37801e=_0x4bd18a,_0x3f5a02=this['_configService']['getConfig'](y);(_0x3f5a02==null?void 0x0:_0x3f5a02[_0x37801e(0xe7)])!==!0x1&&this[_0x37801e(0xad)](this[_0x37801e(0x12c)][_0x37801e(0xc8)](_0x21b956[_0x37801e(0xdc)],()=>{const _0x5cedf3=_0x37801e;var _0x490b0d;return _0x51e6a9(un({'status$':this[_0x5cedf3(0x16a)][_0x5cedf3(0x12e)],'error$':this['_connectionController'][_0x5cedf3(0x18a)],'onConfigure':()=>this[_0x5cedf3(0xdf)](),'showClickable':(_0x490b0d=_0x3f5a02==null?void 0x0:_0x3f5a02[_0x5cedf3(0x19f)])!=null?_0x490b0d:!0x1}),this['_injector']);}));}[_0x4bd18a(0xdf)](){const _0x519fce=_0x4bd18a;this[_0x519fce(0x197)][_0x519fce(0x111)](I)[_0x519fce(0x178)]();}};O=ln([M(0x0,_0x161217(_0x6b968d)),M(0x1,_0x161217(_0x3d1ecc)),M(0x2,_0x26147f),M(0x3,_0x5bff8a)],O);function un(_0x50d534){const {status$:_0x4ae8a7,error$:_0x2e6c47,onConfigure:_0x344dcb,showClickable:_0x43b2b3}=_0x50d534;return function(){return _0x384df3(cn,{'status$':_0x4ae8a7,'error$':_0x2e6c47,'onConfigure':_0x344dcb,'showClickable':_0x43b2b3});};}function vn(_0x9c38a3){const _0x2c2aad=_0x4bd18a;return{'id':V['id'],'type':_0x47c19c[_0x2c2aad(0x109)],'icon':_0x2c2aad(0x17b),'title':_0x2c2aad(0x146),'tooltip':_0x2c2aad(0x146)};}const dn={[_0x329ade[_0x4bd18a(0x194)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x574807,_0xf37602,_0x1bb20c,_0x112524)=>{for(var _0x3223cd=_0x112524>0x1?void 0x0:_0x112524?gn(_0xf37602,_0x1bb20c):_0xf37602,_0x25bec4=_0x574807['length']-0x1,_0x2a8e0e;_0x25bec4>=0x0;_0x25bec4--)(_0x2a8e0e=_0x574807[_0x25bec4])&&(_0x3223cd=_0x2a8e0e(_0x3223cd)||_0x3223cd);return _0x3223cd;},re=(_0x1ac08c,_0x442fa7)=>(_0x591071,_0x4ce69a)=>_0x442fa7(_0x591071,_0x4ce69a,_0x1ac08c);let D=class extends _0x14bc90{constructor(_0x58e912,_0xdff59e){const _0x3314b1=_0x4bd18a;super(),this[_0x3314b1(0x106)]=_0x58e912,this['_menuManagerService']=_0xdff59e,this[_0x3314b1(0x9e)](),this[_0x3314b1(0x132)]();}[_0x4bd18a(0x9e)](){[V]['forEach'](_0x3041e3=>{const _0x188d9c=_0x2234;this['disposeWithMe'](this[_0x188d9c(0x106)][_0x188d9c(0x12d)](_0x3041e3));});}[_0x4bd18a(0x132)](){const _0x17bc37=_0x4bd18a;this[_0x17bc37(0x1ac)][_0x17bc37(0x7a)](dn);}};D=pn([re(0x0,_0x2ae9d3),re(0x1,_0x1665ba)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4bd18a(0x1c1),'failed':_0x4bd18a(0x125),'retrying':_0x4bd18a(0x19b),'unknown':_0x4bd18a(0x138),'unauthorized':_0x4bd18a(0x9f),'sessionOccupied':_0x4bd18a(0x155),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4bd18a(0x14f),'clickToConnect':_0x4bd18a(0x1c5),'clickToConfigure':_0x4bd18a(0x14d)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4bd18a(0x122),'apiKey':_0x4bd18a(0x86),'apiKeyPlaceholder':_0x4bd18a(0xd7),'apiKeyHint':_0x4bd18a(0x16d),'enableAuth':_0x4bd18a(0x158),'enableAuthHint':_0x4bd18a(0x98),'connectionInfo':_0x4bd18a(0x10b),'mcpClientConfig':_0x4bd18a(0x10b),'configInstructions':_0x4bd18a(0x83),'configStepTitle':_0x4bd18a(0x82),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4bd18a(0x1c4),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4bd18a(0x1ba),'sessionIdDescription':_0x4bd18a(0x139),'authorizationDescription':_0x4bd18a(0x16f),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x4bd18a(0x11d),'saving':'Saving...','note1':_0x4bd18a(0x145),'note2':_0x4bd18a(0x88),'configSaved':_0x4bd18a(0x144),'configError':_0x4bd18a(0x1c6),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4bd18a(0x148),'univerAiLabel':_0x4bd18a(0xec),'getStarted':_0x4bd18a(0xcd)},'validation':{'apiKeyRequired':_0x4bd18a(0xa7),'apiKeyTooShort':_0x4bd18a(0x18f),'invalidConfig':_0x4bd18a(0xbf),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4bd18a(0xf7),'connecting':_0x4bd18a(0x188),'connected':_0x4bd18a(0xbd),'failed':_0x4bd18a(0x8d),'retrying':_0x4bd18a(0x1a4)},'connectionError':{'unauthorized':_0x4bd18a(0xfd),'sessionOccupied':_0x4bd18a(0x84),'networkError':_0x4bd18a(0x7c),'maxRetriesExceeded':_0x4bd18a(0xea)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x4bd18a(0x195),'retrying':'MCP\x20重连中...','unknown':_0x4bd18a(0xb0),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x4bd18a(0x192),'maxRetriesExceeded':_0x4bd18a(0xd4),'clickToConnect':_0x4bd18a(0x17c),'clickToConfigure':_0x4bd18a(0x11c)},'mcpConfig':{'title':_0x4bd18a(0xe0),'description':_0x4bd18a(0xc9),'apiKey':_0x4bd18a(0xd0),'apiKeyPlaceholder':_0x4bd18a(0x1a7),'apiKeyHint':_0x4bd18a(0x19c),'enableAuth':_0x4bd18a(0xb9),'enableAuthHint':_0x4bd18a(0x8a),'connectionInfo':_0x4bd18a(0x1a5),'mcpClientConfig':_0x4bd18a(0x1a5),'configInstructions':_0x4bd18a(0xef),'configStepTitle':'配置步骤:','configStep1':_0x4bd18a(0x15e),'configStep2':_0x4bd18a(0x150),'configStep3':_0x4bd18a(0x18b),'sessionId':_0x4bd18a(0x7e),'sessionIdDescription':_0x4bd18a(0xf8),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x4bd18a(0x126),'maxRetries':_0x4bd18a(0xe5),'save':_0x4bd18a(0x123),'saving':'保存中...','note1':_0x4bd18a(0x180),'note2':_0x4bd18a(0x115),'configSaved':_0x4bd18a(0x10f),'configError':_0x4bd18a(0x16b),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x4bd18a(0x100),'univerAiLabel':_0x4bd18a(0x151),'getStarted':_0x4bd18a(0x1c2)},'validation':{'apiKeyRequired':_0x4bd18a(0xc3),'apiKeyTooShort':_0x4bd18a(0x77),'invalidConfig':_0x4bd18a(0x183),'invalidApiKey':_0x4bd18a(0x173)},'connectionStatus':{'disconnected':_0x4bd18a(0xfc),'connecting':_0x4bd18a(0x19e),'connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x4bd18a(0x185),'sessionOccupied':_0x4bd18a(0xc0),'networkError':_0x4bd18a(0x93),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x4bd18a(0x108)],hn=Object[_0x4bd18a(0xe4)],Cn=(_0x4d4061,_0xf55171,_0x1e4982)=>_0xf55171 in _0x4d4061?fn(_0x4d4061,_0xf55171,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e4982}):_0x4d4061[_0xf55171]=_0x1e4982,mn=(_0x37ec46,_0x288a20,_0x242cd8,_0x296392)=>{const _0x4e0681=_0x4bd18a;for(var _0x9da4f2=_0x296392>0x1?void 0x0:_0x296392?hn(_0x288a20,_0x242cd8):_0x288a20,_0x47c4c9=_0x37ec46[_0x4e0681(0xaa)]-0x1,_0x40366d;_0x47c4c9>=0x0;_0x47c4c9--)(_0x40366d=_0x37ec46[_0x47c4c9])&&(_0x9da4f2=_0x40366d(_0x9da4f2)||_0x9da4f2);return _0x9da4f2;},P=(_0x49df4e,_0x45a07c)=>(_0x35d357,_0x500fc8)=>_0x45a07c(_0x35d357,_0x500fc8,_0x49df4e),_n=(_0x223b1f,_0x4815d9,_0x11a372)=>Cn(_0x223b1f,_0x4815d9+'',_0x11a372);let j=class extends _0x459eef{constructor(_0x1a9d5f=ie,_0xf7d255,_0x50c4bf,_0x18642a,_0x3da1fd,_0x1cded){const _0xd08198=_0x4bd18a;super(),this[_0xd08198(0x124)]=_0x1a9d5f,this[_0xd08198(0x197)]=_0xf7d255,this[_0xd08198(0x11f)]=_0x50c4bf,this[_0xd08198(0x12c)]=_0x18642a,this[_0xd08198(0x136)]=_0x3da1fd,this['_localeService']=_0x1cded;const {..._0x14bc53}=_0x469321({},ie,this[_0xd08198(0x124)]);this[_0xd08198(0x11f)][_0xd08198(0xe6)](y,_0x14bc53);}async[_0x4bd18a(0xf5)](){const _0x2e86a0=_0x4bd18a,_0x1c6f66=[[O],[I],[D]];this[_0x2e86a0(0x197)][_0x2e86a0(0x89)](_0x491725)||_0x1c6f66[_0x2e86a0(0x1c7)]([_0x491725,{'useClass':_0xfbf0ff}]),_0x1c6f66['forEach'](_0x2acdb0=>this['_injector'][_0x2e86a0(0xb4)](_0x2acdb0)),this['_injector'][_0x2e86a0(0x111)](O),this[_0x2e86a0(0x197)][_0x2e86a0(0x111)](I),this[_0x2e86a0(0x197)][_0x2e86a0(0x111)](D);}};_n(j,_0x4bd18a(0x1a1),'MCP_UI_PLUGIN'),j=mn([_0x23f8e4(_0x32d088),P(0x1,_0x161217(_0x6b968d)),P(0x2,_0x5bff8a),P(0x3,_0x26147f),P(0x4,_0x54681b),P(0x5,_0x161217(_0x18be6e))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x5edd9b=_0x1501;(function(_0x454f11,_0x278ea6){const _0x580a2c=_0x1501,_0x415ea4=_0x454f11();while(!![]){try{const _0xee1e89=parseInt(_0x580a2c(0x17b))/0x1*(-parseInt(_0x580a2c(0x1c9))/0x2)+parseInt(_0x580a2c(0x1f0))/0x3*(-parseInt(_0x580a2c(0x15c))/0x4)+-parseInt(_0x580a2c(0x145))/0x5*(parseInt(_0x580a2c(0xb6))/0x6)+parseInt(_0x580a2c(0x1c2))/0x7*(parseInt(_0x580a2c(0x171))/0x8)+-parseInt(_0x580a2c(0x1a8))/0x9*(-parseInt(_0x580a2c(0x14d))/0xa)+-parseInt(_0x580a2c(0x140))/0xb+parseInt(_0x580a2c(0x151))/0xc;if(_0xee1e89===_0x278ea6)break;else _0x415ea4['push'](_0x415ea4['shift']());}catch(_0xeabf2e){_0x415ea4['push'](_0x415ea4['shift']());}}}(_0x3acf,0xa864f));var Pe=Object['defineProperty'],Ee=(_0x52d310,_0x4045cc,_0x595698)=>_0x4045cc in _0x52d310?Pe(_0x52d310,_0x4045cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x595698}):_0x52d310[_0x4045cc]=_0x595698,x=(_0xa43838,_0x11bc0d,_0x46e2bd)=>Ee(_0xa43838,typeof _0x11bc0d!=_0x5edd9b(0xd7)?_0x11bc0d+'':_0x11bc0d,_0x46e2bd);import{LocaleService as _0x4b3741,Inject as _0x27636e,Injector as _0x248068,IConfigService as _0x2e56c4,ILocalStorageService as _0x481b9e,ILogService as _0x34e266,Disposable as _0x4bc21d,CommandType as _0x139bb3,ICommandService as _0x45e9a8,DependentOn as _0x4fb3c4,Plugin as _0x229956,merge as _0x42b94c}from'@univerjs/core';import{jsxs as _0x36fb1f,jsx as _0x449463}from'react/jsx-runtime';import{MCPConnectionStatus as _0xf5737,MCPConnectionError as _0x351a46,MCPConnectionController as _0x374f0e,MCP_PLUGIN_CONFIG_KEY as _0x2e7f1d,UniverMCPPlugin as _0xc57c06}from'@univerjs-pro/mcp';import{clsx as _0xc038e9,Input as _0x31b3f6,Button as _0x2fd4ce,MessageType as _0xdfe3e1,Tooltip as _0x51906e}from'@univerjs/design';import{useDependency as _0x27cd98,useObservable as _0x185574,IUIPartsService as _0x58919c,IDialogService as _0x1b81d5,IMessageService as _0x45a496,ComponentManager as _0x42f7ab,connectInjector as _0x4e199a,BuiltInUIPart as _0xcafefa,MenuItemType as _0x5da2b4,RibbonStartGroup as _0x4e633f,IMenuManagerService as _0x41bafa}from'@univerjs/ui';import{BehaviorSubject as _0x3264e6}from'rxjs';import{useRef as _0x415b63,createElement as _0x3bac3c,forwardRef as _0xd19312,useState as _0x569ba0,useCallback as _0x3717ed}from'react';import{ISocketService as _0x214bc6,WebSocketService as _0x496cce}from'@univerjs/network';function b({ref:_0x5aa939,..._0x2ebd93}){const _0x3e934e=_0x5edd9b,{icon:_0x291480,id:_0x44a7c7,className:_0x361575,extend:_0xb69201,..._0xdae62}=_0x2ebd93,_0x2299e1=(_0x3e934e(0x12c)+_0x44a7c7+'\x20'+(_0x361575||''))['trim'](),_0x3a13fd=_0x415b63('_'+We());return ae(_0x291480,''+_0x44a7c7,{'defIds':_0x291480[_0x3e934e(0x1ef)],'idSuffix':_0x3a13fd[_0x3e934e(0x1a1)]},{'ref':_0x5aa939,'className':_0x2299e1,..._0xdae62},_0xb69201);}function ae(_0x4494ee,_0x326c8,_0x32ddc2,_0x472b1c,_0x4c7567){const _0x522e1d=_0x5edd9b;return _0x3bac3c(_0x4494ee[_0x522e1d(0xe0)],{'key':_0x326c8,...Ye(_0x4494ee,_0x32ddc2,_0x4c7567),..._0x472b1c},(Ze(_0x4494ee,_0x32ddc2)[_0x522e1d(0x1a7)]||[])[_0x522e1d(0x17d)]((_0x542a36,_0x437c79)=>ae(_0x542a36,_0x326c8+'-'+_0x4494ee[_0x522e1d(0xe0)]+'-'+_0x437c79,_0x32ddc2,void 0x0,_0x4c7567)));}function Ye(_0x25ac8b,_0x2209f0,_0x3e3a17){const _0x42fc09=_0x5edd9b,_0x22dbc4={..._0x25ac8b['attrs']};_0x3e3a17!=null&&_0x3e3a17[_0x42fc09(0x1d9)]&&_0x22dbc4[_0x42fc09(0x110)]==='colorChannel1'&&(_0x22dbc4[_0x42fc09(0x110)]=_0x3e3a17[_0x42fc09(0x1d9)]),_0x25ac8b[_0x42fc09(0xe0)]===_0x42fc09(0x18d)&&_0x22dbc4['id']&&(_0x22dbc4['id']=_0x22dbc4['id']+_0x2209f0[_0x42fc09(0xf6)]),Object[_0x42fc09(0x1e8)](_0x22dbc4)['forEach'](([_0x2d0928,_0x2c223c])=>{const _0x9d0ad9=_0x42fc09;_0x2d0928===_0x9d0ad9(0x18d)&&typeof _0x2c223c==_0x9d0ad9(0x132)&&(_0x22dbc4[_0x2d0928]=_0x2c223c[_0x9d0ad9(0x18b)](/url\(#(.*)\)/,_0x9d0ad9(0xc4)+_0x2209f0[_0x9d0ad9(0xf6)]+')'));});const {defIds:_0x521b84}=_0x2209f0;return!_0x521b84||_0x521b84['length']===0x0||(_0x25ac8b[_0x42fc09(0xe0)]===_0x42fc09(0x111)&&_0x22dbc4['xlink:href']&&(_0x22dbc4[_0x42fc09(0xcb)]=_0x22dbc4[_0x42fc09(0xcb)]+_0x2209f0[_0x42fc09(0xf6)]),Object[_0x42fc09(0x1e8)](_0x22dbc4)[_0x42fc09(0x10d)](([_0x48a4f4,_0xb67244])=>{const _0x37b2d2=_0x42fc09;typeof _0xb67244==_0x37b2d2(0x132)&&(_0x22dbc4[_0x48a4f4]=_0xb67244[_0x37b2d2(0x18b)](/url\(#(.*)\)/,_0x37b2d2(0xc4)+_0x2209f0[_0x37b2d2(0xf6)]+')'));})),_0x22dbc4;}function Ze(_0x583f17,_0x3bc0a6){const _0x47a5c3=_0x5edd9b;var _0x5ac422;const {defIds:_0x219569}=_0x3bc0a6;return!_0x219569||_0x219569['length']===0x0?_0x583f17:_0x583f17[_0x47a5c3(0xe0)]===_0x47a5c3(0x158)&&((_0x5ac422=_0x583f17['children'])!=null&&_0x5ac422[_0x47a5c3(0x14c)])?{..._0x583f17,'children':_0x583f17[_0x47a5c3(0x1a7)][_0x47a5c3(0x17d)](_0x4a6d13=>typeof _0x4a6d13[_0x47a5c3(0x11a)]['id']=='string'&&_0x219569&&_0x219569[_0x47a5c3(0x156)](_0x4a6d13[_0x47a5c3(0x11a)]['id'])?{..._0x4a6d13,'attrs':{..._0x4a6d13[_0x47a5c3(0x11a)],'id':_0x4a6d13['attrs']['id']+_0x3bc0a6[_0x47a5c3(0xf6)]}}:_0x4a6d13)}:_0x583f17;}function We(){const _0x10f467=_0x5edd9b;return Math[_0x10f467(0xea)]()[_0x10f467(0x184)](0x24)[_0x10f467(0xc3)](0x2,0x8);}b[_0x5edd9b(0x19a)]=_0x5edd9b(0x1f3);const qe={'tag':_0x5edd9b(0xd2),'attrs':{'xmlns':_0x5edd9b(0xb3),'fill':_0x5edd9b(0x181),'viewBox':_0x5edd9b(0x118),'width':'1em','height':_0x5edd9b(0x102)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'fill':_0x5edd9b(0x1f4),'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':_0x5edd9b(0x17c),'clipRule':_0x5edd9b(0x17c)}}]},le=_0xd19312(function(_0x1fa7bb,_0x55c5a8){const _0x1df142=_0x5edd9b;return _0x3bac3c(b,Object[_0x1df142(0x13a)]({},_0x1fa7bb,{'id':_0x1df142(0x1c0),'ref':_0x55c5a8,'icon':qe}));});le[_0x5edd9b(0x19a)]='CheckMarkIcon';const Xe={'tag':_0x5edd9b(0xd2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5edd9b(0x181),'viewBox':_0x5edd9b(0x118),'width':'1em','height':_0x5edd9b(0x102)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'fill':'currentColor','d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0xd19312(function(_0x31fec9,_0x2c485c){const _0x54eb4c=_0x5edd9b;return _0x3bac3c(b,Object[_0x54eb4c(0x13a)]({},_0x31fec9,{'id':_0x54eb4c(0x1d1),'ref':_0x2c485c,'icon':Xe}));});function _0x1501(_0x4cb4f7,_0x4656cc){const _0x3acf60=_0x3acf();return _0x1501=function(_0x150148,_0x221415){_0x150148=_0x150148-0xa8;let _0x570cb6=_0x3acf60[_0x150148];return _0x570cb6;},_0x1501(_0x4cb4f7,_0x4656cc);}ue[_0x5edd9b(0x19a)]=_0x5edd9b(0x164);const Je={'tag':_0x5edd9b(0xd2),'attrs':{'xmlns':_0x5edd9b(0xb3),'fill':'none','viewBox':_0x5edd9b(0x118),'width':_0x5edd9b(0x102),'height':_0x5edd9b(0x102)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'fill':'currentColor','d':_0x5edd9b(0x1b1)}},{'tag':_0x5edd9b(0x201),'attrs':{'fill':_0x5edd9b(0x1f4),'d':_0x5edd9b(0x105)}},{'tag':_0x5edd9b(0x201),'attrs':{'fill':_0x5edd9b(0x1f4),'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':_0x5edd9b(0x17c),'clipRule':_0x5edd9b(0x17c)}}]},ve=_0xd19312(function(_0xfac269,_0x288f26){const _0x25e5ff=_0x5edd9b;return _0x3bac3c(b,Object['assign']({},_0xfac269,{'id':_0x25e5ff(0xbc),'ref':_0x288f26,'icon':Je}));});ve[_0x5edd9b(0x19a)]=_0x5edd9b(0xb5);const Qe={'tag':_0x5edd9b(0xd2),'attrs':{'xmlns':_0x5edd9b(0xb3),'fill':_0x5edd9b(0x181),'viewBox':_0x5edd9b(0x118),'width':_0x5edd9b(0x102),'height':_0x5edd9b(0x102)},'children':[{'tag':'g','attrs':{'clipPath':_0x5edd9b(0x152)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'stroke':_0x5edd9b(0x1f4),'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':'round','strokeLinejoin':_0x5edd9b(0xde),'strokeWidth':1.2}}]},{'tag':_0x5edd9b(0x158),'attrs':{},'children':[{'tag':_0x5edd9b(0x1be),'attrs':{'id':_0x5edd9b(0x123)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'fill':_0x5edd9b(0x194),'d':_0x5edd9b(0x19b)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0xd19312(function(_0x542fc1,_0x1bea41){const _0x3643c7=_0x5edd9b;return _0x3bac3c(b,Object[_0x3643c7(0x13a)]({},_0x542fc1,{'id':_0x3643c7(0x166),'ref':_0x1bea41,'icon':Qe}));});function _0x3acf(){const _0xa086de=['replace','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mask','mcp-ui.config','mcpConfig.apiKey','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-bg-gray-500','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','white','registerComponent','mcpConfig.note2','univer-size-4','mcpStatus.networkError','__setCustomHeaders','displayName','M0\x200H16V16H0z','Error','mcpConfig.save','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Max\x20Retries','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','current','配置无效','Configuration\x20saved\x20successfully','_apiKey$','value','Get\x20your\x20API\x20key\x20in\x20seconds','children','6609969KDwYoT','mcpStatus.sessionOccupied','getConfig','_initializeMenus','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionStatus.retrying','重启您的\x20MCP\x20客户端以使配置生效','API\x20密钥长度至少需要\x2010\x20位','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','mcpConfig.connectionError.networkError','univer-text-xs\x20univer-text-gray-500','MCP\x20已断开','univer-text-green-500','_dialogService','超出最大重试次数,请稍后再试','mcpConfig.configParameters','MCP\x20Disconnected','_mcpConnectionController','close','clipPath','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','check-mark-icon','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','1638847lIPviJ','配置\x20MCP\x20使用\x20AI\x20操作电子表格','DISCONNECTED','_blank','Connection\x20Failed','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Enter\x20your\x20API\x20key','2053822uoDaDl','_handleConfigSave','MCP\x20Connected','univer-space-y-5','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-min-w-0\x20univer-flex-1','noopener\x20noreferrer','close-icon','bottom','showStatus','MCP:\x20网络错误','univer-flex\x20univer-gap-3','univer-font-medium','mcpServerUrl','https://console.univer.ai','colorChannel1','Connected','Success','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP\x20连接失败','mcpStatus.failed','_registerComponent','add','subscribe','mcpStatus.clickToConnect','mcpConfig.connectionError.unauthorized','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','_createConfigPanelComponent','on-line-icon','_validateConfig','entries','mcpStatus.retrying','off','点击连接\x20MCP','setItem','mcpStatus.connecting','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','defIds','3638847ffpcvZ','mcpConfig.configStep1','disposeWithMe','UniverIcon','currentColor','label','mcpConfig.connectionError.sessionOccupied','_initStatusComponent','OTHERS','getCurrentConfig','Configuration\x20Parameters:','HEADER_MENU','mcpConfig.note1','MCP:\x20超出最大重试次数','mcpConfig.connectionStatus.disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_initAutoConnect','path','Copy\x20the\x20JSON\x20configuration\x20below','onStarting','最大重试次数','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','权限验证失败,请检查您的\x20API\x20密钥','univer-flex-1','_uiPartsService','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Configuration\x20Steps:','mcpConfig.title','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','COMMAND','http://www.w3.org/2000/svg','CONNECTED','HelpIcon','5002014wOTvns','mergeMenu','启用身份验证以获得安全连接','Enable\x20Authentication','univer-mr-2\x20univer-flex\x20univer-text-xl','Saving...','help-icon','mcpConfig.validation.apiKeyTooShort','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MAX_RETRIES_EXCEEDED','mcpConfig.validation.invalidApiKey','_loading$','mcpStatus.disconnected','substring','url(#$1','univer-shrink-0\x20univer-text-red-500','univer-space-y-3','几秒钟内获取您的\x20API\x20密钥','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','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.connectionStatus.failed','xlink:href','univer-flex\x20univer-items-start\x20univer-gap-3','push','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.validation.apiKeyRequired','svg','Bearer\x20','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','\x20-\x20','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','symbol','pluginName','配置保存失败','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','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','mcpConfig.configStep2','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','round','showConfigPanel','tag','MCP:\x20Max\x20Retries\x20Exceeded','univer-text-yellow-500','mcp.apiKey','Configuration\x20Notes:','SESSION_ID_OCCUPIED','MCP\x20Connection\x20Failed','mcpConfig.description','show','MCP\x20重连中...','random','_configService','pre','mcp-config-dialog','Univer\x20AI\x20Console','apiKey','get','API\x20key\x20with\x20Bearer\x20prefix.','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','translate(.97)','https://mcp.univer.ai/mcp/?univer_session_id=','univer-bg-blue-500','idSuffix','getOwnPropertyDescriptor','_initConfigSync','subscribeConfigValue$','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','FAILED','MCP\x20状态未知','univer.ai','mcpConfig.connectionInfo','univer-text-gray-500','配置更改将立即生效','1em','API\x20密钥不能为空','_config$','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','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer.plus','warn','univer-text-blue-600','univer-space-y-2','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','forEach','univer-flex\x20univer-items-center\x20univer-gap-2','Save\x20Configuration','fill','use','已连接','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_mcpCoreConfig$','MCP\x20Retrying...','MCP:\x20Network\x20Error','MCP\x20客户端配置','0\x200\x2016\x2016','mcpConfig.configSaved','attrs','isValid','registerCommand','What\x20is\x20API\x20Key?','_handleConfigure','MCP_UI_PLUGIN','univer-text-sm\x20univer-text-gray-500','enableAutoConnect','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','off-line-icon_clip0_910_343','点击配置\x20MCP','mcpConfig.connectionStatus.connected','MCP\x20Unknown\x20Status','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-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','_connectionController','MCPConfigPanel','univerjs-icon\x20univerjs-icon-','_config','API\x20key\x20is\x20required','https://console.univer.plus','on-line-icon_clip0_910_349','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','string','http','您的\x20API\x20密钥将在此浏览器中本地存储','MCP:\x20Unauthorized','_localeService','connectionStatus$','showDeveloperTools','sessionId$','assign','_menuManagerService','保存配置','_logService','univer-flex\x20univer-items-center\x20univer-gap-3','_componentManager','7083472gkzNHJ','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','连接失败','Failed\x20to\x20save\x20configuration','会话ID','5eJGbpu','复制以下\x20JSON\x20配置','MCP\x20Client\x20Configuration','mcpConfig.apiApplyInfo.getStarted','mcpConfig.sessionIdDescription','trim','mcpStatus.connected','length','10BukrIi','error','mcpConfig.authorizationDescription','url(#on-line-icon_clip0_910_349)','41263944WpEwmy','url(#off-line-icon_clip0_910_343)','mcpStatus.clickToConfigure','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','RETRYING','includes','配置保存成功','defs','MCP\x20Connecting...','mcpConfig.apiKeyPlaceholder','univer-text-red-500','4ldBsAz','univer-bg-green-500','mcp-ui.command.openConfigPanel','mcpConfig.apiApplyInfo.title','启用身份验证','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','open','span','CloseIcon','_commandService','off-line-icon','<API_KEY>','_localStorageService','API\x20密钥无效,请检查密钥是否正确','未连接','Retrying...','API\x20Key','重连中...','Univer\x20AI\x20控制台','_injector','CONNECTING','8xIpppu','mcpConfig.configStepTitle','button','div','univer-bg-red-500','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.configError','MCP\x20Configuration','NETWORK_ERROR','_messageService','1IbgSAY','evenodd','map','MenuIcon','Click\x20to\x20connect\x20MCP','getItem','none','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','NONE','toString','mcpConfig.apiApplyInfo.description','connectionError$','mcpConfig.connectionError.maxRetriesExceeded','univer_session_id:','UNAUTHORIZED','_loadStoredApiKey'];_0x3acf=function(){return _0xa086de;};return _0x3acf();}de[_0x5edd9b(0x19a)]='OffLineIcon';const en={'tag':_0x5edd9b(0xd2),'attrs':{'xmlns':_0x5edd9b(0xb3),'fill':_0x5edd9b(0x181),'viewBox':'0\x200\x2017\x2016','width':_0x5edd9b(0x102),'height':_0x5edd9b(0x102)},'children':[{'tag':'g','attrs':{'clipPath':_0x5edd9b(0x150)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'stroke':_0x5edd9b(0x1f4),'d':_0x5edd9b(0xc8),'strokeLinecap':_0x5edd9b(0xde),'strokeLinejoin':_0x5edd9b(0xde),'strokeWidth':1.2}}]},{'tag':_0x5edd9b(0x158),'attrs':{},'children':[{'tag':_0x5edd9b(0x1be),'attrs':{'id':_0x5edd9b(0x130)},'children':[{'tag':'path','attrs':{'fill':_0x5edd9b(0x194),'d':_0x5edd9b(0x19b),'transform':_0x5edd9b(0xf3)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0xd19312(function(_0x12e3c1,_0x355f44){const _0x3ad97c=_0x5edd9b;return _0x3bac3c(b,Object[_0x3ad97c(0x13a)]({},_0x12e3c1,{'id':_0x3ad97c(0x1e6),'ref':_0x355f44,'icon':en}));});ge[_0x5edd9b(0x19a)]='OnLineIcon';function nn(_0x34fc6e){const _0x47803d=_0x5edd9b;var _0x48b45a,_0x192db5;const {mcpCoreConfig:_0x132c66,onSave:_0x2200bb,loading:_0x467c0c=!0x1,config:_0x4a21bd,connectionStatus$:_0x43ad80,connectionError$:_0x5019a1,currentApiKey$:_0x55d84a,currentSessionId$:_0x48ad28}=_0x34fc6e,_0x4fef06=_0x27cd98(_0x4b3741),_0x20b135=_0x185574(_0x43ad80,_0xf5737[_0x47803d(0x1c4)]),_0x214b89=_0x185574(_0x5019a1,_0x351a46[_0x47803d(0x183)]),_0x11679c=_0x185574(_0x48ad28,''),_0x1ee932=_0x185574(_0x55d84a,''),[_0x3b5bd1,_0x18045e]=_0x569ba0(_0x1ee932||''),_0x267b4e=!0x0,_0x56ca8a=_0x4a21bd[_0x47803d(0x138)]&&_0x132c66[_0x47803d(0x1d7)]&&(_0x132c66['mcpServerUrl'][_0x47803d(0x156)](_0x47803d(0x108))||_0x132c66[_0x47803d(0x1d7)][_0x47803d(0x156)](_0x47803d(0xfe))),_0xafdcc9=(_0x48b45a=_0x132c66['mcpServerUrl'])==null?void 0x0:_0x48b45a[_0x47803d(0x156)](_0x47803d(0x108)),_0x56c79c=(_0x192db5=_0x132c66[_0x47803d(0x1d7)])==null?void 0x0:_0x192db5[_0x47803d(0x156)]('univer.ai'),_0x5187f9=_0xafdcc9?_0x47803d(0x12f):_0x47803d(0x1d8),_0x53826c=_0x4a21bd['showDeveloperTools']&&(_0xafdcc9||_0x56c79c),[_0x549210,_0x3dd273]=_0x569ba0(!_0x3b5bd1[_0x47803d(0x14a)]()),_0x3a97bc=(_0x521b35,_0x21430c)=>{const _0x2b5cc7=_0x47803d;if(_0x21430c===_0x351a46[_0x2b5cc7(0x189)])return _0x2b5cc7(0xcf);switch(_0x521b35){case _0xf5737[_0x2b5cc7(0xb4)]:return _0x2b5cc7(0x127);case _0xf5737[_0x2b5cc7(0x170)]:case _0xf5737[_0x2b5cc7(0x155)]:return _0x2b5cc7(0x1cd);case _0xf5737[_0x2b5cc7(0xfc)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x2b5cc7(0x18c);}},_0x26af36=(_0x4baa20,_0xd87225)=>{const _0x3c67be=_0x47803d;if(_0xd87225===_0x351a46[_0x3c67be(0x189)])return _0x3c67be(0x175);switch(_0x4baa20){case _0xf5737[_0x3c67be(0xb4)]:return _0x3c67be(0x15d);case _0xf5737[_0x3c67be(0x170)]:case _0xf5737['RETRYING']:return _0x3c67be(0xf5);case _0xf5737['FAILED']:return'univer-bg-red-500';default:return _0x3c67be(0x192);}},_0x14d28a=_0x2defd8=>{const _0x48c35d=_0x47803d;switch(_0x2defd8){case _0xf5737[_0x48c35d(0xb4)]:return _0x4fef06['t'](_0x48c35d(0x125));case _0xf5737['CONNECTING']:return _0x4fef06['t']('mcpConfig.connectionStatus.connecting');case _0xf5737[_0x48c35d(0xfc)]:return _0x4fef06['t'](_0x48c35d(0xca));case _0xf5737[_0x48c35d(0x155)]:return _0x4fef06['t'](_0x48c35d(0x1ae));default:return _0x4fef06['t'](_0x48c35d(0x1fe));}},_0x1cfcdb=_0x1c5bf5=>{const _0x58754c=_0x47803d;switch(_0x1c5bf5){case _0x351a46['UNAUTHORIZED']:return _0x4fef06['t'](_0x58754c(0x1e3));case _0x351a46['SESSION_ID_OCCUPIED']:return _0x4fef06['t'](_0x58754c(0x1f6));case _0x351a46[_0x58754c(0x179)]:return _0x4fef06['t'](_0x58754c(0x1b4));case _0x351a46[_0x58754c(0xbf)]:return _0x4fef06['t'](_0x58754c(0x187));default:return'';}},_0x481af5=_0x3717ed(()=>{const _0x119fe5=_0x47803d,_0x57e15d={..._0x132c66,'apiKey':_0x3b5bd1[_0x119fe5(0x14a)](),'enableAuth':_0x267b4e};_0x2200bb(_0x57e15d);},[_0x132c66,_0x3b5bd1,_0x267b4e,_0x2200bb]),_0x317043=_0x3b5bd1[_0x47803d(0x14a)]()[_0x47803d(0x14c)]>0x0;return _0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x154),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x131),'children':_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x13e),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0xa9),'children':_0x449463(_0x47803d(0x163),{'className':'univer-text-white','children':'⚙'})}),_0x449463(_0x47803d(0x174),{'children':_0x449463('p',{'className':_0x47803d(0x120),'children':_0x4fef06['t'](_0x47803d(0xe7))})})]})}),_0x36fb1f(_0x47803d(0x174),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x449463('div',{'className':_0xc038e9(_0x47803d(0x191),_0x3a97bc(_0x20b135,_0x214b89)),'children':_0x36fb1f('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x449463(_0x47803d(0x174),{'className':_0xc038e9('univer-size-2\x20univer-rounded-full',_0x26af36(_0x20b135,_0x214b89))}),_0x449463('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0x14d28a(_0x20b135)})]})}),_0x214b89!==_0x351a46[_0x47803d(0x183)]&&(_0x20b135===_0xf5737[_0x47803d(0xfc)]||_0x214b89===_0x351a46['UNAUTHORIZED'])&&_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x193),'children':_0x36fb1f(_0x47803d(0x174),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x449463('span',{'className':_0x47803d(0xc5),'children':'⚠️'}),_0x449463('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x1cfcdb(_0x214b89)})]})})]}),_0x449463(_0x47803d(0x174),{'className':_0x47803d(0xb1),'children':_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x1cc),'children':[_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x10b),'children':[_0x36fb1f(_0x47803d(0x1f5),{'className':_0x47803d(0xae),'children':[_0x449463('span',{'children':'🔑'}),'\x20',_0x4fef06['t'](_0x47803d(0x18f)),_0x449463(_0x47803d(0x163),{'className':_0x47803d(0x15b),'children':'*'}),_0x56ca8a&&_0x449463('a',{'className':_0x47803d(0x122),'title':_0x4fef06['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x3dd273(!0x0),'children':_0x449463(ve,{})})]}),_0x449463(_0x31b3f6,{'type':'text','placeholder':_0x4fef06['t'](_0x47803d(0x15a)),'value':_0x3b5bd1,'disabled':_0x467c0c,'autoComplete':_0x47803d(0x1ea),'onChange':_0x18045e}),_0x449463('p',{'className':_0x47803d(0x1b5),'children':_0x4fef06['t']('mcpConfig.apiKeyHint')})]}),_0x56ca8a&&_0x549210&&_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xdb),'children':[_0x449463('a',{'className':_0x47803d(0x1e4),'role':'button','onClick':()=>_0x3dd273(!0x1),'children':_0x449463(ue,{'className':_0x47803d(0x197)})}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x182),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x176),'children':_0x449463('span',{'className':_0x47803d(0x10a),'children':'🚀'})}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xab),'children':[_0x449463('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4fef06['t'](_0x47803d(0x15f))}),_0x449463('p',{'className':_0x47803d(0xf2),'children':_0x4fef06['t'](_0x47803d(0x185))}),_0x449463('div',{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x53826c&&_0x36fb1f('a',{'className':_0x47803d(0x129),'href':_0x5187f9,'target':_0x47803d(0x1c5),'rel':_0x47803d(0x1d0),'children':[_0x449463('span',{'children':'🤖'}),_0x4fef06['t'](_0x47803d(0xc9)),_0x449463(_0x47803d(0x163),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xbe),'children':['✨','\x20',_0x4fef06['t'](_0x47803d(0x148))]})]})]})]}),_0x4a21bd[_0x47803d(0x138)]&&_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x107),'children':[_0x36fb1f('h4',{'className':_0x47803d(0x1ad),'children':[_0x449463(_0x47803d(0x163),{'children':'🔗'}),'\x20',_0x4fef06['t'](_0x47803d(0xff))]}),_0x36fb1f(_0x47803d(0x174),{'className':'univer-space-y-4','children':[_0x36fb1f(_0x47803d(0x174),{'className':'univer-space-y-3','children':[_0x449463('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x4fef06['t']('mcpConfig.configInstructions')}),_0x36fb1f(_0x47803d(0x174),{'className':'univer-space-y-2','children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1c7),'children':_0x4fef06['t'](_0x47803d(0x172))}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x10c),'children':[_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x10e),'children':[_0x449463(_0x47803d(0x163),{'className':_0x47803d(0xd6),'children':'1'}),_0x4fef06['t'](_0x47803d(0x1f1))]}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x10e),'children':[_0x449463(_0x47803d(0x163),{'className':_0x47803d(0xd6),'children':'2'}),_0x4fef06['t'](_0x47803d(0xdc))]}),_0x36fb1f('div',{'className':_0x47803d(0x10e),'children':[_0x449463('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x4fef06['t']('mcpConfig.configStep3')]})]})]})]}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x10b),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1c7),'children':_0x47803d(0x178)}),_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1ce),'children':_0x449463(_0x47803d(0xec),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x47803d(0xf4)+(_0x11679c||'<SESSION_ID>'),'type':_0x47803d(0x133),'headers':{'Authorization':_0x47803d(0xd3)+(_0x3b5bd1||_0x47803d(0x167))}}}},null,0x2)})})]}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xc6),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1c7),'children':_0x4fef06['t'](_0x47803d(0x1ba))}),_0x36fb1f('div',{'className':'univer-space-y-2','children':[_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xcc),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1dc)}),_0x36fb1f('div',{'className':_0x47803d(0x1cf),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0xda),'children':_0x47803d(0x188)}),_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1b5),'children':_0x4fef06['t'](_0x47803d(0x149))})]})]}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xcc),'children':[_0x449463('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x1cf),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0xda),'children':'Authorization:'}),_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1b5),'children':_0x4fef06['t'](_0x47803d(0x14f))})]})]})]})]})]})]}),_0x449463(_0x2fd4ce,{'onClick':_0x481af5,'disabled':!_0x317043||_0x467c0c,'className':_0x47803d(0xdd),'children':_0x467c0c?_0x36fb1f(_0x47803d(0x163),{'className':_0x47803d(0x10e),'children':[_0x449463(_0x47803d(0x163),{'children':'⟲'}),_0x4fef06['t']('mcpConfig.saving')]}):_0x36fb1f(_0x47803d(0x163),{'className':_0x47803d(0x10e),'children':[_0x449463(le,{}),_0x4fef06['t'](_0x47803d(0x19d))]})}),_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x141),'children':_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x1d5),'children':[_0x449463(_0x47803d(0x163),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x36fb1f('div',{'className':_0x47803d(0x1c1),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1d6),'children':_0x47803d(0xe4)}),_0x36fb1f(_0x47803d(0x174),{'children':['•',_0x4fef06['t'](_0x47803d(0x1fc))]}),_0x36fb1f(_0x47803d(0x174),{'children':['•',_0x4fef06['t'](_0x47803d(0x196))]})]})]})})]})})]});}const y=_0x5edd9b(0x18e),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x5edd9b(0xf7)],tn=(_0x37a108,_0x1a7e3e,_0x597c16,_0x7fd54c)=>{const _0x538905=_0x5edd9b;for(var _0x1d41db=_0x7fd54c>0x1?void 0x0:_0x7fd54c?rn(_0x1a7e3e,_0x597c16):_0x1a7e3e,_0x55bee5=_0x37a108[_0x538905(0x14c)]-0x1,_0x3dd9a2;_0x55bee5>=0x0;_0x55bee5--)(_0x3dd9a2=_0x37a108[_0x55bee5])&&(_0x1d41db=_0x3dd9a2(_0x1d41db)||_0x1d41db);return _0x1d41db;},d=(_0x1940bb,_0x5e302b)=>(_0x29d7e4,_0x4298b1)=>_0x5e302b(_0x29d7e4,_0x4298b1,_0x1940bb);const U=_0x5edd9b(0xe3),L=_0x5edd9b(0xed);let I=class extends _0x4bc21d{constructor(_0x4cc366,_0x148ea7,_0x2585f5,_0x3105c0,_0x39c1c2,_0x4526ee,_0x149592,_0x26214a,_0x11d9bd,_0x5629c5){const _0x193e3f=_0x5edd9b;super(),x(this,'_loading$',new _0x3264e6(!0x1)),x(this,'_mcpCoreConfig$',new _0x3264e6({})),x(this,'_config$',new _0x3264e6({})),x(this,_0x193e3f(0x1a4),new _0x3264e6('')),x(this,_0x193e3f(0x1ca),async _0x44b137=>{const _0xa5619a=_0x193e3f;var _0x1c9ec2,_0x74ed26;this['_loading$'][_0xa5619a(0x1b3)](!0x0);try{const _0x5d482a=await this[_0xa5619a(0x1e7)](_0x44b137);if(!_0x5d482a[_0xa5619a(0x11b)]){this[_0xa5619a(0x17a)]['show']({'type':_0xdfe3e1[_0xa5619a(0x19c)],'content':_0x5d482a['errorMessage']||this[_0xa5619a(0x136)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x44b137[_0xa5619a(0xef)]?await this['_localStorageService'][_0xa5619a(0x1ec)](U,_0x44b137[_0xa5619a(0xef)][_0xa5619a(0x14a)]()):await this[_0xa5619a(0x168)]['removeItem'](U),this[_0xa5619a(0x1a4)][_0xa5619a(0x1b3)](((_0x1c9ec2=_0x44b137['apiKey'])==null?void 0x0:_0x1c9ec2[_0xa5619a(0x14a)]())||''),this[_0xa5619a(0x1bc)][_0xa5619a(0x199)]({'Authorization':_0xa5619a(0xd3)+((_0x74ed26=_0x44b137['apiKey'])==null?void 0x0:_0x74ed26[_0xa5619a(0x14a)]())}),this[_0xa5619a(0x17a)][_0xa5619a(0xe8)]({'type':_0xdfe3e1[_0xa5619a(0x1db)],'content':this[_0xa5619a(0x136)]['t'](_0xa5619a(0x119))}),setTimeout(()=>{const _0x950d45=_0xa5619a;this[_0x950d45(0x1b8)][_0x950d45(0x1bd)](L);},0x320);}catch(_0x33277e){this[_0xa5619a(0x13d)]['error'](_0xa5619a(0x1bf),_0x33277e),this[_0xa5619a(0x17a)][_0xa5619a(0xe8)]({'type':_0xdfe3e1[_0xa5619a(0x19c)],'content':this[_0xa5619a(0x136)]['t'](_0xa5619a(0x177))});}finally{this[_0xa5619a(0xc1)]['next'](!0x1);}}),(this[_0x193e3f(0x16f)]=_0x4cc366,this['_uiPartsService']=_0x148ea7,this[_0x193e3f(0xeb)]=_0x2585f5,this['_localStorageService']=_0x3105c0,this[_0x193e3f(0x1b8)]=_0x39c1c2,this[_0x193e3f(0x17a)]=_0x4526ee,this['_componentManager']=_0x149592,this[_0x193e3f(0x136)]=_0x26214a,this[_0x193e3f(0x13d)]=_0x11d9bd,this[_0x193e3f(0x1bc)]=_0x5629c5,this[_0x193e3f(0xf8)](),this[_0x193e3f(0x18a)](),this[_0x193e3f(0x1df)]());}[_0x5edd9b(0xdf)](){const _0x360751=_0x5edd9b,_0x4cb012=this[_0x360751(0xeb)][_0x360751(0x1aa)](y);_0x4cb012!=null&&_0x4cb012[_0x360751(0x138)]&&this[_0x360751(0x1b8)][_0x360751(0x162)]({'id':L,'title':{'title':this[_0x360751(0x136)]['t'](_0x360751(0xb0))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xa353e=_0x360751;this[_0xa353e(0x1b8)][_0xa353e(0x1bd)](L);}});}[_0x5edd9b(0x1f9)](){const _0x5398c3=_0x5edd9b;return this[_0x5398c3(0x114)]['value'];}[_0x5edd9b(0x1df)](){const _0x593cc8=_0x5edd9b;this[_0x593cc8(0x1f2)](this[_0x593cc8(0x13f)]['register'](_0x593cc8(0x12b),this[_0x593cc8(0x1e5)]()));}['_createConfigPanelComponent'](){return _0x4e199a(()=>{const _0x17cde1=_0x1501;var _0x511581,_0x366300,_0x7b8bbc;return _0x449463(nn,{'config':this[_0x17cde1(0x104)]['value'],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x17cde1(0x1a5)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x17cde1(0x1ca)],'loading':this[_0x17cde1(0xc1)][_0x17cde1(0x1a5)],'connectionStatus$':(_0x511581=this[_0x17cde1(0x1bc)])==null?void 0x0:_0x511581[_0x17cde1(0x137)],'connectionError$':(_0x366300=this[_0x17cde1(0x1bc)])==null?void 0x0:_0x366300[_0x17cde1(0x186)],'currentSessionId$':(_0x7b8bbc=this[_0x17cde1(0x1bc)])==null?void 0x0:_0x7b8bbc[_0x17cde1(0x139)]});},this['_injector']);}[_0x5edd9b(0xf8)](){const _0xb50a35=_0x5edd9b;this[_0xb50a35(0x1f2)](this[_0xb50a35(0xeb)]['subscribeConfigValue$'](_0x2e7f1d)[_0xb50a35(0x1e1)](_0x20728b=>{const _0x3dfdd4=_0xb50a35;this['_mcpCoreConfig$'][_0x3dfdd4(0x1b3)](_0x20728b||{});}));const _0x2a7524=this[_0xb50a35(0xeb)]['getConfig'](_0x2e7f1d);this[_0xb50a35(0x114)][_0xb50a35(0x1b3)](_0x2a7524||{}),this[_0xb50a35(0x1f2)](this[_0xb50a35(0xeb)][_0xb50a35(0xf9)](y)[_0xb50a35(0x1e1)](_0x2c9b48=>{const _0x469c47=_0xb50a35;this[_0x469c47(0x104)][_0x469c47(0x1b3)](_0x2c9b48||{});}));const _0x11a5c9=this[_0xb50a35(0xeb)]['getConfig'](y);this[_0xb50a35(0x104)][_0xb50a35(0x1b3)](_0x11a5c9||{});}async[_0x5edd9b(0x18a)](){const _0x446416=_0x5edd9b,_0x5044fb=this['_configService']['getConfig'](y);if(!(_0x5044fb!=null&&_0x5044fb[_0x446416(0x138)]))return;const _0x46e536=await this[_0x446416(0x168)][_0x446416(0x180)](U);_0x46e536&&(this[_0x446416(0x1bc)][_0x446416(0x199)]({'Authorization':_0x446416(0xd3)+_0x46e536}),this[_0x446416(0x1a4)][_0x446416(0x1b3)](_0x46e536));}async[_0x5edd9b(0x1e7)](_0x4d371f){const _0x49feb2=_0x5edd9b;if(!_0x4d371f[_0x49feb2(0xef)]||_0x4d371f[_0x49feb2(0xef)]['trim']()[_0x49feb2(0x14c)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x49feb2(0x136)]['t'](_0x49feb2(0xd1))};if(_0x4d371f[_0x49feb2(0xef)]['trim']()[_0x49feb2(0x14c)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x49feb2(0x136)]['t'](_0x49feb2(0xbd))};try{const _0x4d2f1a=await this[_0x49feb2(0x16f)]['get'](_0x374f0e)['validateApiKey'](_0x4d371f['apiKey'][_0x49feb2(0x14a)]());return _0x4d2f1a[_0x49feb2(0x11b)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4d2f1a[_0x49feb2(0x14e)]||this[_0x49feb2(0x136)]['t'](_0x49feb2(0xc0))};}catch(_0x4ebe7b){return console[_0x49feb2(0x109)](_0x49feb2(0x1a0),_0x4ebe7b),{'isValid':!0x0};}}};I=tn([d(0x0,_0x27636e(_0x248068)),d(0x1,_0x58919c),d(0x2,_0x2e56c4),d(0x3,_0x481b9e),d(0x4,_0x1b81d5),d(0x5,_0x45a496),d(0x6,_0x27636e(_0x42f7ab)),d(0x7,_0x27636e(_0x4b3741)),d(0x8,_0x34e266),d(0x9,_0x27636e(_0x374f0e))],I);const V={'id':_0x5edd9b(0x15e),'type':_0x139bb3[_0x5edd9b(0xb2)],'handler':async(_0x3a6b21,_0x3c2fd2)=>(_0x3a6b21[_0x5edd9b(0xf0)](I)[_0x5edd9b(0xdf)](),!0x0)};function pe(_0x57f475,_0x2b48d6){const _0x98f2fd=_0x5edd9b;switch(_0x57f475){case _0xf5737['DISCONNECTED']:return _0x98f2fd(0xc2);case _0xf5737[_0x98f2fd(0x170)]:return _0x98f2fd(0x1ed);case _0xf5737['CONNECTED']:return _0x98f2fd(0x14b);case _0xf5737[_0x98f2fd(0xfc)]:switch(_0x2b48d6){case _0x351a46[_0x98f2fd(0x189)]:return'mcpStatus.unauthorized';case _0x351a46[_0x98f2fd(0xe5)]:return _0x98f2fd(0x1a9);case _0x351a46[_0x98f2fd(0x179)]:return _0x98f2fd(0x198);case _0x351a46[_0x98f2fd(0xbf)]:return'mcpStatus.maxRetriesExceeded';default:return _0x98f2fd(0x1de);}case _0xf5737['RETRYING']:return _0x98f2fd(0x1e9);default:return'mcpStatus.unknown';}}function on(_0x3e0cfd,_0x4ccc9d,_0x12200c,_0x5c1132=!0x0){const _0x551fd3=_0x5edd9b,_0x54e409=pe(_0x3e0cfd,_0x4ccc9d),_0x41c3c9=_0x12200c['t'](_0x54e409);return _0x5c1132?_0x3e0cfd===_0xf5737['DISCONNECTED']&&_0x4ccc9d===_0x351a46['UNAUTHORIZED']?_0x41c3c9+_0x551fd3(0xd5)+_0x12200c['t'](_0x551fd3(0x153)):_0x3e0cfd===_0xf5737[_0x551fd3(0xb4)]?''+_0x41c3c9:_0x3e0cfd===_0xf5737['DISCONNECTED']||_0x3e0cfd===_0xf5737[_0x551fd3(0xfc)]?_0x41c3c9+_0x551fd3(0xd5)+_0x12200c['t'](_0x551fd3(0x1e2)):_0x41c3c9:_0x41c3c9;}function sn(_0x2cf246){const _0x20589d=_0x5edd9b;switch(_0x2cf246){case _0xf5737[_0x20589d(0xb4)]:return _0x20589d(0x1b7);case _0xf5737['CONNECTING']:case _0xf5737[_0x20589d(0x155)]:return _0x20589d(0xe2);case _0xf5737[_0x20589d(0xfc)]:case _0xf5737[_0x20589d(0x1c4)]:return _0x20589d(0x15b);default:return _0x20589d(0x100);}}function cn(_0x2f3191){const _0x4abdb2=_0x5edd9b,{status$:_0x5e3a27,error$:_0x14dd45,onConfigure:_0x393f0b,showClickable:_0x534508=!0x0}=_0x2f3191,_0x3b62e9=_0x185574(_0x5e3a27,_0xf5737['DISCONNECTED']),_0x2015fe=_0x185574(_0x14dd45,_0x351a46[_0x4abdb2(0x183)]),_0x1afa27=_0x27cd98(_0x4b3741),_0x178286=_0x3b62e9===_0xf5737[_0x4abdb2(0xb4)];_0x3b62e9===_0xf5737['CONNECTING']||_0xf5737[_0x4abdb2(0x155)];const _0x40eaf8=_0x1afa27['t'](pe(_0x3b62e9,_0x2015fe)),_0x585d20=on(_0x3b62e9,_0x2015fe,_0x1afa27,_0x534508),_0x2c71dd=sn(_0x3b62e9),_0x42cbb3=_0x178286?_0x449463(ge,{}):_0x449463(de,{}),_0x239203=_0x3717ed(()=>{_0x534508&&_0x393f0b&&_0x393f0b();},[_0x534508,_0x393f0b]);function _0x3a0060(){const _0x42108b=_0x4abdb2;return _0x36fb1f('div',{'className':_0xc038e9('univer-flex\x20univer-items-center',_0x534508&&_0x393f0b&&_0x42108b(0x128)),'role':_0x42108b(0x173),'onClick':_0x534508&&_0x393f0b?_0x239203:void 0x0,'children':[_0x449463('div',{'className':_0xc038e9(_0x42108b(0xba),_0x2c71dd),'children':_0x42cbb3}),_0x449463(_0x42108b(0x174),{'className':_0x42108b(0x113),'children':_0x40eaf8})]});}return _0x449463(_0x51906e,{'title':_0x585d20,'placement':_0x4abdb2(0x1d2),'children':_0x3a0060()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x29098f,_0x3e140b,_0x22e8a6,_0x581fe0)=>{for(var _0x2d46f2=_0x581fe0>0x1?void 0x0:_0x581fe0?an(_0x3e140b,_0x22e8a6):_0x3e140b,_0x40782c=_0x29098f['length']-0x1,_0x75a130;_0x40782c>=0x0;_0x40782c--)(_0x75a130=_0x29098f[_0x40782c])&&(_0x2d46f2=_0x75a130(_0x2d46f2)||_0x2d46f2);return _0x2d46f2;},M=(_0xb23f45,_0x54ec08)=>(_0x1f8bc8,_0x40351f)=>_0x54ec08(_0x1f8bc8,_0x40351f,_0xb23f45);let O=class extends _0x4bc21d{constructor(_0x54d45c,_0x4652ef,_0x2406ac,_0x3e7238){const _0x47a8f3=_0x5edd9b;super(),this[_0x47a8f3(0x16f)]=_0x54d45c,this[_0x47a8f3(0x12a)]=_0x4652ef,this[_0x47a8f3(0xac)]=_0x2406ac,this[_0x47a8f3(0xeb)]=_0x3e7238,this[_0x47a8f3(0x200)](),this[_0x47a8f3(0x1f7)]();}[_0x5edd9b(0x200)](){const _0x1ae81c=_0x5edd9b,_0x21042c=this[_0x1ae81c(0xeb)][_0x1ae81c(0x1aa)](y);_0x21042c!=null&&_0x21042c['showDeveloperTools']&&(this['_connectionController'][_0x1ae81c(0x121)]=!0x1);}[_0x5edd9b(0x1f7)](){const _0xfa3cf4=_0x5edd9b,_0x22113=this[_0xfa3cf4(0xeb)][_0xfa3cf4(0x1aa)](y);(_0x22113==null?void 0x0:_0x22113[_0xfa3cf4(0x1d3)])!==!0x1&&this[_0xfa3cf4(0x1f2)](this[_0xfa3cf4(0xac)][_0xfa3cf4(0x195)](_0xcafefa[_0xfa3cf4(0x1fb)],()=>{const _0x591862=_0xfa3cf4;var _0xe893bf;return _0x4e199a(un({'status$':this[_0x591862(0x12a)][_0x591862(0x137)],'error$':this['_connectionController'][_0x591862(0x186)],'onConfigure':()=>this[_0x591862(0x11e)](),'showClickable':(_0xe893bf=_0x22113==null?void 0x0:_0x22113[_0x591862(0x138)])!=null?_0xe893bf:!0x1}),this[_0x591862(0x16f)]);}));}[_0x5edd9b(0x11e)](){const _0x394c7a=_0x5edd9b;this[_0x394c7a(0x16f)][_0x394c7a(0xf0)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x27636e(_0x248068)),M(0x1,_0x27636e(_0x374f0e)),M(0x2,_0x58919c),M(0x3,_0x2e56c4)],O);function un(_0x16d1d1){const {status$:_0x456960,error$:_0x42a174,onConfigure:_0x7f3ada,showClickable:_0x325a96}=_0x16d1d1;return function(){return _0x449463(cn,{'status$':_0x456960,'error$':_0x42a174,'onConfigure':_0x7f3ada,'showClickable':_0x325a96});};}function vn(_0x3a575e){const _0x1a33a2=_0x5edd9b;return{'id':V['id'],'type':_0x5da2b4['BUTTON'],'icon':_0x1a33a2(0x17e),'title':_0x1a33a2(0xb0),'tooltip':'mcpConfig.title'};}const dn={[_0x4e633f[_0x5edd9b(0x1f8)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x5edd9b(0xf7)],pn=(_0x2a1d61,_0x3eca96,_0x388d1e,_0x53647a)=>{for(var _0x56d11f=_0x53647a>0x1?void 0x0:_0x53647a?gn(_0x3eca96,_0x388d1e):_0x3eca96,_0x36d456=_0x2a1d61['length']-0x1,_0x2d8f25;_0x36d456>=0x0;_0x36d456--)(_0x2d8f25=_0x2a1d61[_0x36d456])&&(_0x56d11f=_0x2d8f25(_0x56d11f)||_0x56d11f);return _0x56d11f;},re=(_0x4aa2eb,_0x32dd47)=>(_0x33eb61,_0x487eba)=>_0x32dd47(_0x33eb61,_0x487eba,_0x4aa2eb);let D=class extends _0x4bc21d{constructor(_0x412bb3,_0x3b08a0){const _0x49517d=_0x5edd9b;super(),this['_commandService']=_0x412bb3,this[_0x49517d(0x13b)]=_0x3b08a0,this['_initializeCommands'](),this[_0x49517d(0x1ab)]();}['_initializeCommands'](){const _0x4120bc=_0x5edd9b;[V][_0x4120bc(0x10d)](_0x2a4c1b=>{const _0x2b462d=_0x4120bc;this[_0x2b462d(0x1f2)](this[_0x2b462d(0x165)][_0x2b462d(0x11c)](_0x2a4c1b));});}[_0x5edd9b(0x1ab)](){const _0x19c3bf=_0x5edd9b;this['_menuManagerService'][_0x19c3bf(0xb7)](dn);}};D=pn([re(0x0,_0x45e9a8),re(0x1,_0x41bafa)],D);const Mn={'mcpStatus':{'disconnected':_0x5edd9b(0x1bb),'connecting':_0x5edd9b(0x159),'connected':_0x5edd9b(0x1cb),'failed':_0x5edd9b(0xe6),'retrying':_0x5edd9b(0x115),'unknown':_0x5edd9b(0x126),'unauthorized':_0x5edd9b(0x135),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5edd9b(0x116),'maxRetriesExceeded':_0x5edd9b(0xe1),'clickToConnect':_0x5edd9b(0x17f),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5edd9b(0x178),'description':_0x5edd9b(0x19e),'apiKey':_0x5edd9b(0x16c),'apiKeyPlaceholder':_0x5edd9b(0x1c8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5edd9b(0xb9),'enableAuthHint':_0x5edd9b(0xfa),'connectionInfo':_0x5edd9b(0x147),'mcpClientConfig':_0x5edd9b(0x147),'configInstructions':_0x5edd9b(0x1ac),'configStepTitle':_0x5edd9b(0xaf),'configStep1':_0x5edd9b(0x202),'configStep2':_0x5edd9b(0xfb),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5edd9b(0xf1),'configParameters':_0x5edd9b(0x1fa),'maxRetries':_0x5edd9b(0x19f),'save':_0x5edd9b(0x10f),'saving':_0x5edd9b(0xbb),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5edd9b(0x1ee),'configSaved':_0x5edd9b(0x1a3),'configError':_0x5edd9b(0x143),'apiApplyInfo':{'title':_0x5edd9b(0x11d),'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':_0x5edd9b(0xee),'getStarted':_0x5edd9b(0x1a6)},'validation':{'apiKeyRequired':_0x5edd9b(0x12e),'apiKeyTooShort':_0x5edd9b(0xd4),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5edd9b(0x161)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x5edd9b(0x1da),'failed':_0x5edd9b(0x1c6),'retrying':_0x5edd9b(0x16b)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5edd9b(0x1ff),'maxRetriesExceeded':_0x5edd9b(0x190)}}},An={'mcpStatus':{'disconnected':_0x5edd9b(0x1b6),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x5edd9b(0x1dd),'retrying':_0x5edd9b(0xe9),'unknown':_0x5edd9b(0xfd),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x5edd9b(0xd0),'networkError':_0x5edd9b(0x1d4),'maxRetriesExceeded':_0x5edd9b(0x1fd),'clickToConnect':_0x5edd9b(0x1eb),'clickToConfigure':_0x5edd9b(0x124)},'mcpConfig':{'title':'MCP\x20配置','description':_0x5edd9b(0x1c3),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x5edd9b(0x134),'enableAuth':_0x5edd9b(0x160),'enableAuthHint':_0x5edd9b(0xb8),'connectionInfo':_0x5edd9b(0x117),'mcpClientConfig':_0x5edd9b(0x117),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x5edd9b(0x146),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x5edd9b(0x1af),'sessionId':_0x5edd9b(0x144),'sessionIdDescription':_0x5edd9b(0xad),'authorizationDescription':_0x5edd9b(0xce),'configParameters':'配置参数:','maxRetries':_0x5edd9b(0xa8),'save':_0x5edd9b(0x13c),'saving':'保存中...','note1':_0x5edd9b(0x101),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x5edd9b(0x157),'configError':_0x5edd9b(0xd9),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x5edd9b(0x106),'univerAiLabel':_0x5edd9b(0x16e),'getStarted':_0x5edd9b(0xc7)},'validation':{'apiKeyRequired':_0x5edd9b(0x103),'apiKeyTooShort':_0x5edd9b(0x1b0),'invalidConfig':_0x5edd9b(0x1a2),'invalidApiKey':_0x5edd9b(0x169)},'connectionStatus':{'disconnected':_0x5edd9b(0x16a),'connecting':_0x5edd9b(0x1b2),'connected':_0x5edd9b(0x112),'failed':_0x5edd9b(0x142),'retrying':_0x5edd9b(0x16d)},'connectionError':{'unauthorized':_0x5edd9b(0xaa),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x5edd9b(0x1b9)}}};var fn=Object['defineProperty'],hn=Object[_0x5edd9b(0xf7)],Cn=(_0x2a5233,_0x4447d2,_0x1b6c17)=>_0x4447d2 in _0x2a5233?fn(_0x2a5233,_0x4447d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b6c17}):_0x2a5233[_0x4447d2]=_0x1b6c17,mn=(_0x68bfa9,_0x5dd900,_0x41a0e1,_0x326dd2)=>{const _0x11be9e=_0x5edd9b;for(var _0x373f27=_0x326dd2>0x1?void 0x0:_0x326dd2?hn(_0x5dd900,_0x41a0e1):_0x5dd900,_0x3dd5dc=_0x68bfa9[_0x11be9e(0x14c)]-0x1,_0x40fa22;_0x3dd5dc>=0x0;_0x3dd5dc--)(_0x40fa22=_0x68bfa9[_0x3dd5dc])&&(_0x373f27=_0x40fa22(_0x373f27)||_0x373f27);return _0x373f27;},P=(_0x28fba7,_0x31261e)=>(_0x4cc831,_0x3cab9c)=>_0x31261e(_0x4cc831,_0x3cab9c,_0x28fba7),_n=(_0x4bd5a2,_0x2f80a1,_0x45e1c8)=>Cn(_0x4bd5a2,_0x2f80a1+'',_0x45e1c8);let j=class extends _0x229956{constructor(_0x36635c=ie,_0x3a8c93,_0x16a486,_0x47b156,_0x190f43,_0x37e267){const _0x11e507=_0x5edd9b;super(),this['_config']=_0x36635c,this[_0x11e507(0x16f)]=_0x3a8c93,this[_0x11e507(0xeb)]=_0x16a486,this[_0x11e507(0xac)]=_0x47b156,this[_0x11e507(0x168)]=_0x190f43,this[_0x11e507(0x136)]=_0x37e267;const {..._0x4e4e72}=_0x42b94c({},ie,this[_0x11e507(0x12d)]);this[_0x11e507(0xeb)]['setConfig'](y,_0x4e4e72);}async[_0x5edd9b(0x203)](){const _0x5b4a1d=_0x5edd9b,_0x2ea874=[[O],[I],[D]];this['_injector']['has'](_0x214bc6)||_0x2ea874[_0x5b4a1d(0xcd)]([_0x214bc6,{'useClass':_0x496cce}]),_0x2ea874['forEach'](_0x1321bf=>this[_0x5b4a1d(0x16f)][_0x5b4a1d(0x1e0)](_0x1321bf)),this[_0x5b4a1d(0x16f)][_0x5b4a1d(0xf0)](O),this['_injector'][_0x5b4a1d(0xf0)](I),this[_0x5b4a1d(0x16f)]['get'](D);}};_n(j,_0x5edd9b(0xd8),_0x5edd9b(0x11f)),j=mn([_0x4fb3c4(_0xc57c06),P(0x1,_0x27636e(_0x248068)),P(0x2,_0x2e56c4),P(0x3,_0x58919c),P(0x4,_0x481b9e),P(0x5,_0x27636e(_0x4b3741))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- const _0x34b905=_0x5460;(function(_0x2295aa,_0x1ab9d6){const _0x108b3a=_0x5460,_0x42db03=_0x2295aa();while(!![]){try{const _0x4c672b=-parseInt(_0x108b3a(0x116))/0x1*(parseInt(_0x108b3a(0x10a))/0x2)+parseInt(_0x108b3a(0x103))/0x3*(-parseInt(_0x108b3a(0x117))/0x4)+-parseInt(_0x108b3a(0x100))/0x5*(-parseInt(_0x108b3a(0x111))/0x6)+-parseInt(_0x108b3a(0xfb))/0x7+-parseInt(_0x108b3a(0xff))/0x8*(-parseInt(_0x108b3a(0xf3))/0x9)+-parseInt(_0x108b3a(0x113))/0xa+parseInt(_0x108b3a(0x108))/0xb;if(_0x4c672b===_0x1ab9d6)break;else _0x42db03['push'](_0x42db03['shift']());}catch(_0x5a703f){_0x42db03['push'](_0x42db03['shift']());}}}(_0x4552,0x6305b));const e={'mcpStatus':{'disconnected':_0x34b905(0xec),'connecting':_0x34b905(0x10f),'connected':'MCP\x20Connected','failed':_0x34b905(0x10d),'retrying':_0x34b905(0xe9),'unknown':_0x34b905(0x112),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x34b905(0xef),'networkError':_0x34b905(0xf6),'maxRetriesExceeded':_0x34b905(0xf7),'clickToConnect':_0x34b905(0xed),'clickToConfigure':_0x34b905(0x10e)},'mcpConfig':{'title':_0x34b905(0xf8),'description':_0x34b905(0x118),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x34b905(0x114),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x34b905(0xf5),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x34b905(0x10b),'mcpClientConfig':_0x34b905(0x10b),'configInstructions':_0x34b905(0x119),'configStepTitle':_0x34b905(0xf1),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x34b905(0xf2),'configStep3':_0x34b905(0xee),'sessionId':'Session\x20ID','sessionIdDescription':_0x34b905(0xfc),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x34b905(0x115),'maxRetries':_0x34b905(0xfa),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x34b905(0x109),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x34b905(0xeb),'configError':_0x34b905(0xfd),'apiApplyInfo':{'title':_0x34b905(0x10c),'description':_0x34b905(0x11a),'univerAiLabel':_0x34b905(0x104),'getStarted':_0x34b905(0x101)},'validation':{'apiKeyRequired':_0x34b905(0x102),'apiKeyTooShort':_0x34b905(0x107),'invalidConfig':_0x34b905(0xf9),'invalidApiKey':_0x34b905(0xf4)},'connectionStatus':{'disconnected':_0x34b905(0xfe),'connecting':_0x34b905(0xf0),'connected':_0x34b905(0x110),'failed':'Connection\x20Failed','retrying':_0x34b905(0xea)},'connectionError':{'unauthorized':_0x34b905(0xe8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x34b905(0x105),'maxRetriesExceeded':_0x34b905(0x106)}}},n=e;function _0x4552(){const _0x20da13=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Failed\x20to\x20save\x20configuration','Disconnected','34120fuuYhd','5sEvuaS','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','30aoLQCo','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','21911021ePWyYy','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','22130cPQeWi','MCP\x20Client\x20Configuration','What\x20is\x20API\x20Key?','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Connected','2482518KnIzNu','MCP\x20Unknown\x20Status','2215320sgIwaw','Enter\x20your\x20API\x20key','Configuration\x20Parameters:','73kwlBYN','164016RhLpUa','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','Retrying...','Configuration\x20saved\x20successfully','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Connecting...','Configuration\x20Steps:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','9FJEvhx','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','MCP:\x20Network\x20Error','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Configuration','Invalid\x20configuration','Max\x20Retries','3955119mLbkGH'];_0x4552=function(){return _0x20da13;};return _0x4552();}function _0x5460(_0x39d493,_0x48e200){const _0x455234=_0x4552();return _0x5460=function(_0x546037,_0x2bdb26){_0x546037=_0x546037-0xe8;let _0x3dcea5=_0x455234[_0x546037];return _0x3dcea5;},_0x5460(_0x39d493,_0x48e200);}export{n as default};
1
+ function _0x71b7(){const _0x109550=['Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','59166KxRXtX','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','7059536WQIrfK','What\x20is\x20API\x20Key?','1368sfPJAY','1004271PFdofQ','MCP\x20Client\x20Configuration','567045DaXSFh','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Failed','MCP\x20Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','6uWtTkK','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4nSdLTN','41vbvzTa','MCP\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','MCP\x20Connecting...','12872CNCtbQ','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','620CPaeJA','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','Enable\x20Authentication','16058zDOlZT','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','6085776pDkdsa','Retrying...','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','Saving...','Save\x20Configuration'];_0x71b7=function(){return _0x109550;};return _0x71b7();}function _0x1623(_0x574abb,_0x207232){const _0x71b723=_0x71b7();return _0x1623=function(_0x162371,_0x37d8d7){_0x162371=_0x162371-0x1e9;let _0x46bc82=_0x71b723[_0x162371];return _0x46bc82;},_0x1623(_0x574abb,_0x207232);}const _0x13924b=_0x1623;(function(_0x182576,_0x3de2d3){const _0x341e96=_0x1623,_0x1bfbd1=_0x182576();while(!![]){try{const _0x2ee17b=-parseInt(_0x341e96(0x210))/0x1*(parseInt(_0x341e96(0x216))/0x2)+parseInt(_0x341e96(0x205))/0x3*(parseInt(_0x341e96(0x20f))/0x4)+parseInt(_0x341e96(0x207))/0x5*(parseInt(_0x341e96(0x20d))/0x6)+-parseInt(_0x341e96(0x1eb))/0x7*(parseInt(_0x341e96(0x204))/0x8)+-parseInt(_0x341e96(0x1fe))/0x9*(-parseInt(_0x341e96(0x219))/0xa)+parseInt(_0x341e96(0x202))/0xb+-parseInt(_0x341e96(0x1ee))/0xc;if(_0x2ee17b===_0x3de2d3)break;else _0x1bfbd1['push'](_0x1bfbd1['shift']());}catch(_0x52b018){_0x1bfbd1['push'](_0x1bfbd1['shift']());}}}(_0x71b7,0x51998));const e={'mcpStatus':{'disconnected':_0x13924b(0x1fc),'connecting':_0x13924b(0x215),'connected':_0x13924b(0x20c),'failed':_0x13924b(0x20a),'retrying':_0x13924b(0x1fa),'unknown':_0x13924b(0x1f1),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x13924b(0x21b),'clickToConnect':_0x13924b(0x1f7),'clickToConfigure':_0x13924b(0x1f0)},'mcpConfig':{'title':_0x13924b(0x211),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x13924b(0x1f3),'enableAuth':_0x13924b(0x1ea),'enableAuthHint':_0x13924b(0x208),'connectionInfo':_0x13924b(0x206),'mcpClientConfig':_0x13924b(0x206),'configInstructions':_0x13924b(0x1f2),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x13924b(0x1fb),'configStep2':_0x13924b(0x21a),'configStep3':_0x13924b(0x218),'sessionId':'Session\x20ID','sessionIdDescription':_0x13924b(0x1fd),'authorizationDescription':_0x13924b(0x1f4),'configParameters':_0x13924b(0x214),'maxRetries':'Max\x20Retries','save':_0x13924b(0x1f6),'saving':_0x13924b(0x1f5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x13924b(0x213),'apiApplyInfo':{'title':_0x13924b(0x203),'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':_0x13924b(0x1e9),'getStarted':_0x13924b(0x20b)},'validation':{'apiKeyRequired':_0x13924b(0x1f8),'apiKeyTooShort':_0x13924b(0x1ff),'invalidConfig':_0x13924b(0x217),'invalidApiKey':_0x13924b(0x20e)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x13924b(0x1ec),'connected':_0x13924b(0x200),'failed':_0x13924b(0x209),'retrying':_0x13924b(0x1ef)},'connectionError':{'unauthorized':_0x13924b(0x1f9),'sessionOccupied':_0x13924b(0x212),'networkError':_0x13924b(0x1ed),'maxRetriesExceeded':_0x13924b(0x201)}}},n=e;export{n as default};