@univerjs-pro/mcp-ui 0.12.2-experimental.20251202-45172c6 → 0.12.2-experimental.20251202-7f1a98f

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 (49) 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 -1
  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 -1
  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 -1
  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/umd/index.js +1 -1
  38. package/lib/umd/locale/ca-ES.js +1 -1
  39. package/lib/umd/locale/en-US.js +1 -1
  40. package/lib/umd/locale/es-ES.js +1 -1
  41. package/lib/umd/locale/fa-IR.js +1 -1
  42. package/lib/umd/locale/fr-FR.js +1 -1
  43. package/lib/umd/locale/ja-JP.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +6 -6
@@ -1 +1 @@
1
- 'use strict';function _0x2fab(){const _0x4d2b9e=['연결\x20실패','308cSqMwZ','설정\x20저장\x20실패','exports','2400364CcvuHi','클릭하여\x20MCP\x20설정','MCP\x20클라이언트\x20설정','218290XihhHB','208hJtInE','최대\x20재시도\x20횟수','몇\x20초\x20만에\x20API\x20키\x20발급받기','연결\x20끊김','연결\x20중...','3kSGfBF','API\x20키는\x20필수입니다','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','MCP:\x20인증되지\x20않음','API\x20키를\x20입력하세요','10UgvLOK','설정이\x20성공적으로\x20저장되었습니다','Univer\x20AI\x20콘솔','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','MCP\x20재시도\x20중...','설정\x20저장','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP:\x20세션\x20ID\x20사용\x20','클릭하여\x20MCP\x20연결','연결됨','338034FXdWdu','MCP:\x20네트워크\x20오류','MCP\x20알\x20수\x20없는\x20상태','설정\x20매개변수:','MCP\x20연결됨','아래\x20JSON\x20설정\x20복사','6326LaiKRg','291445hsLSLK','세션\x20ID','설정\x20단계:','저장\x20중...','36192660buygpp','인증\x20활성화','MCP\x20연결\x20중...','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','유효하지\x20않은\x20설정','API\x20키란\x20무엇인가요?','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','41kducrW','인증\x20실패.\x20API\x20키를\x20확인하세요','API\x20','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','재시도\x20중...','MCP\x20연결\x20실패','10129176SmqyUz','API\x20키는\x2010자\x20이상이어야\x20합니다'];_0x2fab=function(){return _0x4d2b9e;};return _0x2fab();}const _0x3fda62=_0x3a12;(function(_0x312e2f,_0x3b6288){const _0x2bcc09=_0x3a12,_0x3fe630=_0x312e2f();while(!![]){try{const _0x2f968f=parseInt(_0x2bcc09(0x156))/0x1*(-parseInt(_0x2bcc09(0x14a))/0x2)+-parseInt(_0x2bcc09(0x133))/0x3*(parseInt(_0x2bcc09(0x12a))/0x4)+parseInt(_0x2bcc09(0x13a))/0x5*(parseInt(_0x2bcc09(0x144))/0x6)+-parseInt(_0x2bcc09(0x14b))/0x7*(parseInt(_0x2bcc09(0x12e))/0x8)+-parseInt(_0x2bcc09(0x124))/0x9+parseInt(_0x2bcc09(0x12d))/0xa*(parseInt(_0x2bcc09(0x127))/0xb)+parseInt(_0x2bcc09(0x14f))/0xc;if(_0x2f968f===_0x3b6288)break;else _0x3fe630['push'](_0x3fe630['shift']());}catch(_0x357064){_0x3fe630['push'](_0x3fe630['shift']());}}}(_0x2fab,0xc3d95));function _0x3a12(_0x1f2bc6,_0x1edf76){const _0x2fab23=_0x2fab();return _0x3a12=function(_0x3a12ca,_0x2081d5){_0x3a12ca=_0x3a12ca-0x11f;let _0x2adba8=_0x2fab23[_0x3a12ca];return _0x2adba8;},_0x3a12(_0x1f2bc6,_0x1edf76);}const e={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':_0x3fda62(0x151),'connected':_0x3fda62(0x148),'failed':_0x3fda62(0x123),'retrying':_0x3fda62(0x13e),'unknown':_0x3fda62(0x146),'unauthorized':_0x3fda62(0x138),'sessionOccupied':_0x3fda62(0x141),'networkError':_0x3fda62(0x145),'maxRetriesExceeded':_0x3fda62(0x140),'clickToConnect':_0x3fda62(0x142),'clickToConfigure':_0x3fda62(0x12b)},'mcpConfig':{'title':'MCP\x20설정','description':_0x3fda62(0x137),'apiKey':_0x3fda62(0x11f),'apiKeyPlaceholder':_0x3fda62(0x139),'apiKeyHint':_0x3fda62(0x136),'enableAuth':_0x3fda62(0x150),'enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':_0x3fda62(0x12c),'mcpClientConfig':_0x3fda62(0x12c),'configInstructions':'MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','configStepTitle':_0x3fda62(0x14d),'configStep1':_0x3fda62(0x149),'configStep2':_0x3fda62(0x155),'configStep3':_0x3fda62(0x135),'sessionId':_0x3fda62(0x14c),'sessionIdDescription':'고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':_0x3fda62(0x147),'maxRetries':_0x3fda62(0x12f),'save':_0x3fda62(0x13f),'saving':_0x3fda62(0x14e),'note1':'설정\x20변경\x20사항은\x20즉시\x20적용됩니다','note2':_0x3fda62(0x13d),'configSaved':_0x3fda62(0x13b),'configError':_0x3fda62(0x128),'apiApplyInfo':{'title':_0x3fda62(0x154),'description':_0x3fda62(0x152),'univerAiLabel':_0x3fda62(0x13c),'getStarted':_0x3fda62(0x130)},'validation':{'apiKeyRequired':_0x3fda62(0x134),'apiKeyTooShort':_0x3fda62(0x125),'invalidConfig':_0x3fda62(0x153),'invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x3fda62(0x131),'connecting':_0x3fda62(0x132),'connected':_0x3fda62(0x143),'failed':_0x3fda62(0x126),'retrying':_0x3fda62(0x122)},'connectionError':{'unauthorized':_0x3fda62(0x157),'sessionOccupied':_0x3fda62(0x120),'networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x3fda62(0x121)}}};module[_0x3fda62(0x129)]=e;
1
+ 'use strict';const _0x280657=_0x3e55;function _0x3e55(_0xa8c055,_0x8f2cb1){const _0xa7976=_0xa797();return _0x3e55=function(_0x3e558c,_0x5eebfb){_0x3e558c=_0x3e558c-0x67;let _0x5a8ad6=_0xa7976[_0x3e558c];return _0x5a8ad6;},_0x3e55(_0xa8c055,_0x8f2cb1);}function _0xa797(){const _0x3becee=['2143224JEvTAw','재시도\x20중...','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','330536lifvTQ','설정\x20저장','exports','연결\x20실패','설정\x20저장\x20실패','Univer\x20AI\x20콘솔','MCP\x20알\x20수\x20없는\x20상태','API\x20','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','MCP\x20클라이언트\x20설정','클릭하여\x20MCP\x20연결','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','MCP\x20연결됨','유효하지\x20않은\x20설정','369brTZlz','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','MCP\x20설정','연결됨','API\x20키란\x20무엇인가요?','아래\x20JSON\x20설정\x20복사','인증\x20실패.\x20API\x20키를\x20확인하세요','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','연결\x20끊김','2znoRcI','API\x20키를\x20입력하세요','설정\x20단계:','Bearer\x20접두사가\x20있는\x20API\x20키.','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP\x20연결\x20중...','195tsmEIu','2104045jFmXAU','3394272lqhOeD','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','MCP:\x20네트워크\x20오류','몇\x20초\x20만에\x20API\x20키\x20발급받기','API\x20키는\x2010자\x20이상이어야\x20합니다','API\x20키는\x20필수입니다','MCP:\x20세션\x20ID\x20사용\x20중','설정\x20매개변수:','3451890IYmFsh','MCP:\x20인증되지\x20않음','클릭하여\x20MCP\x20설정','인증\x20활성화','405091nghrpX','보안\x20연결을\x20위해\x20인증\x20활성화','설정이\x20성공적으로\x20저장되었습니다','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:'];_0xa797=function(){return _0x3becee;};return _0xa797();}(function(_0x421625,_0x457e31){const _0x1414b0=_0x3e55,_0x381094=_0x421625();while(!![]){try{const _0xe81cfa=parseInt(_0x1414b0(0x73))/0x1*(-parseInt(_0x1414b0(0x92))/0x2)+parseInt(_0x1414b0(0x98))/0x3+parseInt(_0x1414b0(0x77))/0x4+-parseInt(_0x1414b0(0x99))/0x5+-parseInt(_0x1414b0(0x6f))/0x6+-parseInt(_0x1414b0(0x67))/0x7+-parseInt(_0x1414b0(0x7a))/0x8*(-parseInt(_0x1414b0(0x89))/0x9);if(_0xe81cfa===_0x457e31)break;else _0x381094['push'](_0x381094['shift']());}catch(_0x2eba13){_0x381094['push'](_0x381094['shift']());}}}(_0xa797,0x53ecd));const e={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':_0x280657(0x97),'connected':_0x280657(0x87),'failed':'MCP\x20연결\x20실패','retrying':'MCP\x20재시도\x20중...','unknown':_0x280657(0x80),'unauthorized':_0x280657(0x70),'sessionOccupied':_0x280657(0x6d),'networkError':_0x280657(0x69),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0x280657(0x84),'clickToConfigure':_0x280657(0x71)},'mcpConfig':{'title':_0x280657(0x8b),'description':'AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','apiKey':_0x280657(0x81),'apiKeyPlaceholder':_0x280657(0x93),'apiKeyHint':_0x280657(0x86),'enableAuth':_0x280657(0x72),'enableAuthHint':_0x280657(0x74),'connectionInfo':_0x280657(0x83),'mcpClientConfig':_0x280657(0x83),'configInstructions':_0x280657(0x76),'configStepTitle':_0x280657(0x94),'configStep1':_0x280657(0x8e),'configStep2':_0x280657(0x8a),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':'세션\x20ID','sessionIdDescription':_0x280657(0x85),'authorizationDescription':_0x280657(0x95),'configParameters':_0x280657(0x6e),'maxRetries':'최대\x20재시도\x20횟수','save':_0x280657(0x7b),'saving':'저장\x20중...','note1':_0x280657(0x90),'note2':_0x280657(0x82),'configSaved':_0x280657(0x75),'configError':_0x280657(0x7e),'apiApplyInfo':{'title':_0x280657(0x8d),'description':_0x280657(0x79),'univerAiLabel':_0x280657(0x7f),'getStarted':_0x280657(0x6a)},'validation':{'apiKeyRequired':_0x280657(0x6c),'apiKeyTooShort':_0x280657(0x6b),'invalidConfig':_0x280657(0x88),'invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x280657(0x91),'connecting':'연결\x20중...','connected':_0x280657(0x8c),'failed':_0x280657(0x7d),'retrying':_0x280657(0x78)},'connectionError':{'unauthorized':_0x280657(0x8f),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':_0x280657(0x68),'maxRetriesExceeded':_0x280657(0x96)}}};module[_0x280657(0x7c)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0xc0506b=_0x2eff;function _0x2eff(_0x13a413,_0x43b102){const _0x3f18e6=_0x3f18();return _0x2eff=function(_0x2eff88,_0xd8291){_0x2eff88=_0x2eff88-0x1e9;let _0x1d676f=_0x3f18e6[_0x2eff88];return _0x1d676f;},_0x2eff(_0x13a413,_0x43b102);}(function(_0x5df93f,_0x1f2378){const _0x557ab0=_0x2eff,_0x3e75ec=_0x5df93f();while(!![]){try{const _0x564bc3=parseInt(_0x557ab0(0x217))/0x1+parseInt(_0x557ab0(0x203))/0x2*(-parseInt(_0x557ab0(0x202))/0x3)+parseInt(_0x557ab0(0x20b))/0x4*(parseInt(_0x557ab0(0x1f6))/0x5)+-parseInt(_0x557ab0(0x1fb))/0x6+-parseInt(_0x557ab0(0x20c))/0x7+parseInt(_0x557ab0(0x216))/0x8+parseInt(_0x557ab0(0x1f9))/0x9;if(_0x564bc3===_0x1f2378)break;else _0x3e75ec['push'](_0x3e75ec['shift']());}catch(_0xb87fdc){_0x3e75ec['push'](_0x3e75ec['shift']());}}}(_0x3f18,0xb5a60));const e={'mcpStatus':{'disconnected':_0xc0506b(0x1ee),'connecting':'MCP\x20Connecting...','connected':_0xc0506b(0x1f0),'failed':_0xc0506b(0x1ed),'retrying':_0xc0506b(0x206),'unknown':_0xc0506b(0x1e9),'unauthorized':_0xc0506b(0x210),'sessionOccupied':_0xc0506b(0x1f3),'networkError':_0xc0506b(0x1eb),'maxRetriesExceeded':_0xc0506b(0x204),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xc0506b(0x213)},'mcpConfig':{'title':_0xc0506b(0x1ef),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xc0506b(0x1f5),'apiKeyPlaceholder':_0xc0506b(0x209),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0xc0506b(0x1f7),'enableAuthHint':_0xc0506b(0x20a),'connectionInfo':_0xc0506b(0x1ec),'mcpClientConfig':_0xc0506b(0x1ec),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0xc0506b(0x1f2),'configStep2':_0xc0506b(0x208),'configStep3':_0xc0506b(0x200),'sessionId':_0xc0506b(0x211),'sessionIdDescription':_0xc0506b(0x1ea),'authorizationDescription':_0xc0506b(0x20d),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xc0506b(0x1fe),'save':_0xc0506b(0x207),'saving':'Saving...','note1':_0xc0506b(0x20f),'note2':_0xc0506b(0x214),'configSaved':_0xc0506b(0x1fc),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0xc0506b(0x1f4),'description':_0xc0506b(0x1ff),'univerAiLabel':_0xc0506b(0x1f1),'getStarted':_0xc0506b(0x1f8)},'validation':{'apiKeyRequired':_0xc0506b(0x1fa),'apiKeyTooShort':_0xc0506b(0x215),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xc0506b(0x201),'connected':_0xc0506b(0x205),'failed':'Connection\x20Failed','retrying':_0xc0506b(0x218)},'connectionError':{'unauthorized':_0xc0506b(0x20e),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xc0506b(0x1fd)}}},n=e;module[_0xc0506b(0x212)]=n;function _0x3f18(){const _0x33cb5e=['Connected','MCP\x20Retrying...','Save\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','8vYrGRs','4097303YNIoZZ','API\x20key\x20with\x20Bearer\x20prefix.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Unauthorized','Session\x20ID','exports','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','5596496yMIgRH','294874EBHpsb','Retrying...','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.','MCP:\x20Network\x20Error','MCP\x20Client\x20Configuration','MCP\x20Connection\x20Failed','MCP\x20Disconnected','MCP\x20Configuration','MCP\x20Connected','Univer\x20AI\x20Console','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20ID\x20Occupied','What\x20is\x20API\x20Key?','API\x20Key','2168395YcaCwX','Enable\x20Authentication','Get\x20your\x20API\x20key\x20in\x20seconds','13334346QDGDKD','API\x20key\x20is\x20required','6876354oskNRH','Configuration\x20saved\x20successfully','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Max\x20Retries','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connecting...','12ZrRsmk','433984RhkegK','MCP:\x20Max\x20Retries\x20Exceeded'];_0x3f18=function(){return _0x33cb5e;};return _0x3f18();}
1
+ 'use strict';const _0x18c482=_0x5661;(function(_0x37eedd,_0x4c63aa){const _0x478566=_0x5661,_0x3ee438=_0x37eedd();while(!![]){try{const _0x409971=parseInt(_0x478566(0xf4))/0x1*(-parseInt(_0x478566(0xe8))/0x2)+-parseInt(_0x478566(0xe0))/0x3*(parseInt(_0x478566(0xea))/0x4)+-parseInt(_0x478566(0xde))/0x5+parseInt(_0x478566(0xf3))/0x6+-parseInt(_0x478566(0xe5))/0x7+parseInt(_0x478566(0xc1))/0x8*(parseInt(_0x478566(0xd9))/0x9)+-parseInt(_0x478566(0xdf))/0xa*(-parseInt(_0x478566(0xe1))/0xb);if(_0x409971===_0x4c63aa)break;else _0x3ee438['push'](_0x3ee438['shift']());}catch(_0xa76907){_0x3ee438['push'](_0x3ee438['shift']());}}}(_0x1528,0x686fb));const e={'mcpStatus':{'disconnected':_0x18c482(0xf1),'connecting':_0x18c482(0xd0),'connected':'MCP\x20Connected','failed':_0x18c482(0xf0),'retrying':_0x18c482(0xda),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x18c482(0xed),'sessionOccupied':_0x18c482(0xcb),'networkError':_0x18c482(0xee),'maxRetriesExceeded':_0x18c482(0xf2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x18c482(0xec)},'mcpConfig':{'title':_0x18c482(0xdd),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x18c482(0xc4),'apiKeyPlaceholder':_0x18c482(0xd7),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x18c482(0xd2),'enableAuthHint':_0x18c482(0xe9),'connectionInfo':_0x18c482(0xd6),'mcpClientConfig':_0x18c482(0xd6),'configInstructions':_0x18c482(0xce),'configStepTitle':_0x18c482(0xc3),'configStep1':_0x18c482(0xeb),'configStep2':_0x18c482(0xcd),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x18c482(0xc5),'sessionIdDescription':_0x18c482(0xf5),'authorizationDescription':_0x18c482(0xe3),'configParameters':_0x18c482(0xef),'maxRetries':_0x18c482(0xd4),'save':'Save\x20Configuration','saving':_0x18c482(0xf6),'note1':_0x18c482(0xd5),'note2':_0x18c482(0xc9),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x18c482(0xe7),'apiApplyInfo':{'title':_0x18c482(0xe6),'description':_0x18c482(0xdc),'univerAiLabel':_0x18c482(0xc7),'getStarted':_0x18c482(0xcf)},'validation':{'apiKeyRequired':_0x18c482(0xc8),'apiKeyTooShort':_0x18c482(0xd8),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x18c482(0xcc),'connecting':'Connecting...','connected':_0x18c482(0xc2),'failed':_0x18c482(0xd1),'retrying':_0x18c482(0xe4)},'connectionError':{'unauthorized':_0x18c482(0xd3),'sessionOccupied':_0x18c482(0xe2),'networkError':_0x18c482(0xdb),'maxRetriesExceeded':_0x18c482(0xca)}}},n=e;function _0x5661(_0x5d3c90,_0x4ed1ed){const _0x152875=_0x1528();return _0x5661=function(_0x566149,_0x22b56b){_0x566149=_0x566149-0xc1;let _0x14c9e4=_0x152875[_0x566149];return _0x14c9e4;},_0x5661(_0x5d3c90,_0x4ed1ed);}function _0x1528(){const _0x231483=['MCP:\x20Network\x20Error','Configuration\x20Parameters:','MCP\x20Connection\x20Failed','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','1089054jNgxGJ','91uMFNBS','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','18248tqYSIS','Connected','Configuration\x20Steps:','API\x20Key','Session\x20ID','exports','Univer\x20AI\x20Console','API\x20key\x20is\x20required','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connecting...','Connection\x20Failed','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3141XltUdA','MCP\x20Retrying...','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.','MCP\x20Configuration','2742490xtxkWo','10GJdDXM','1119777pHBOJm','20983721HkdGHP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Retrying...','3205797ooiiOc','What\x20is\x20API\x20Key?','Failed\x20to\x20save\x20configuration','15482ldRwto','Enable\x20authentication\x20for\x20secure\x20connections','8FofJOp','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20configure\x20MCP','MCP:\x20Unauthorized'];_0x1528=function(){return _0x231483;};return _0x1528();}module[_0x18c482(0xc6)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x261269=_0x5e40;(function(_0x30df4d,_0x496dbb){const _0x3310f4=_0x5e40,_0x966d5e=_0x30df4d();while(!![]){try{const _0x24d67b=-parseInt(_0x3310f4(0x1cc))/0x1+parseInt(_0x3310f4(0x1df))/0x2+-parseInt(_0x3310f4(0x1bd))/0x3*(parseInt(_0x3310f4(0x1e3))/0x4)+parseInt(_0x3310f4(0x1c4))/0x5*(-parseInt(_0x3310f4(0x1de))/0x6)+-parseInt(_0x3310f4(0x1d7))/0x7*(parseInt(_0x3310f4(0x1e5))/0x8)+parseInt(_0x3310f4(0x1e1))/0x9*(-parseInt(_0x3310f4(0x1bb))/0xa)+parseInt(_0x3310f4(0x1d1))/0xb;if(_0x24d67b===_0x496dbb)break;else _0x966d5e['push'](_0x966d5e['shift']());}catch(_0xd9fd07){_0x966d5e['push'](_0x966d5e['shift']());}}}(_0x3489,0xef526));function _0x5e40(_0x463e81,_0x30d394){const _0x348945=_0x3489();return _0x5e40=function(_0x5e4085,_0x44bcbb){_0x5e4085=_0x5e4085-0x1b6;let _0x541f22=_0x348945[_0x5e4085];return _0x541f22;},_0x5e40(_0x463e81,_0x30d394);}function _0x3489(){const _0x48d364=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Unauthorized','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','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.','61229eFxTug','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Enable\x20Authentication','exports','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','485400qdRxhb','1614042DIovpq','Saving...','190062PgSsEI','MCP\x20Configuration','4VcqfhJ','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','304kPENiN','Failed\x20to\x20save\x20configuration','Connected','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','20yHdePQ','Save\x20Configuration','3770511YnyjPX','MCP\x20Client\x20Configuration','Univer\x20AI\x20Console','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','35fsPMXU','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Steps:','Get\x20your\x20API\x20key\x20in\x20seconds','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Retrying...','API\x20key\x20is\x20required','209791NGakjj','API\x20Key','Session\x20ID','Connection\x20Failed','MCP\x20Connected','28388701rpqtYu'];_0x3489=function(){return _0x48d364;};return _0x3489();}const e={'mcpStatus':{'disconnected':_0x261269(0x1c0),'connecting':'MCP\x20Connecting...','connected':_0x261269(0x1d0),'failed':'MCP\x20Connection\x20Failed','retrying':_0x261269(0x1ca),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x261269(0x1d3),'sessionOccupied':_0x261269(0x1da),'networkError':_0x261269(0x1c2),'maxRetriesExceeded':_0x261269(0x1d8),'clickToConnect':_0x261269(0x1b9),'clickToConfigure':_0x261269(0x1c3)},'mcpConfig':{'title':_0x261269(0x1e2),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x261269(0x1cd),'apiKeyPlaceholder':_0x261269(0x1d9),'apiKeyHint':_0x261269(0x1d4),'enableAuth':_0x261269(0x1db),'enableAuthHint':_0x261269(0x1ba),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x261269(0x1be),'configInstructions':_0x261269(0x1dd),'configStepTitle':_0x261269(0x1c6),'configStep1':_0x261269(0x1b8),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x261269(0x1ce),'sessionIdDescription':_0x261269(0x1d2),'authorizationDescription':_0x261269(0x1c1),'configParameters':_0x261269(0x1b6),'maxRetries':'Max\x20Retries','save':_0x261269(0x1bc),'saving':_0x261269(0x1e0),'note1':_0x261269(0x1c9),'note2':_0x261269(0x1d5),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x261269(0x1e6),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x261269(0x1d6),'univerAiLabel':_0x261269(0x1bf),'getStarted':_0x261269(0x1c7)},'validation':{'apiKeyRequired':_0x261269(0x1cb),'apiKeyTooShort':_0x261269(0x1b7),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x261269(0x1e7),'failed':_0x261269(0x1cf),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x261269(0x1c8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x261269(0x1e4),'maxRetriesExceeded':_0x261269(0x1c5)}}},n=e;module[_0x261269(0x1dc)]=n;
1
+ 'use strict';function _0x668e(_0x9c3445,_0x42c5db){const _0x11940f=_0x1194();return _0x668e=function(_0x668ef5,_0x86d384){_0x668ef5=_0x668ef5-0x141;let _0x79797b=_0x11940f[_0x668ef5];return _0x79797b;},_0x668e(_0x9c3445,_0x42c5db);}const _0x31d7c2=_0x668e;function _0x1194(){const _0x304321=['Configuration\x20Parameters:','Session\x20ID','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connecting...','4edBXgA','MCP\x20Client\x20Configuration','33564972dSMrkv','MCP\x20Configuration','API\x20Key','MCP:\x20Network\x20Error','17700580LkZoQi','1kymuPx','MCP\x20Unknown\x20Status','Max\x20Retries','4407009fKKfdZ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','11nWuCfv','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','Connected','5029830XPmoKQ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','Configuration\x20saved\x20successfully','Configuration\x20Steps:','Enable\x20Authentication','What\x20is\x20API\x20Key?','MCP\x20Connecting...','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','138IoktUO','316647XgKPHx','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','436758FOiNFV','Retrying...','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','328mIxQwo','737826SnYveT','MCP:\x20Unauthorized','Univer\x20AI\x20Console'];_0x1194=function(){return _0x304321;};return _0x1194();}(function(_0x26eb64,_0x4d26af){const _0x42f540=_0x668e,_0x2da0e7=_0x26eb64();while(!![]){try{const _0x4c77d4=-parseInt(_0x42f540(0x152))/0x1*(-parseInt(_0x42f540(0x142))/0x2)+parseInt(_0x42f540(0x155))/0x3*(parseInt(_0x42f540(0x14b))/0x4)+parseInt(_0x42f540(0x15f))/0x5+parseInt(_0x42f540(0x16a))/0x6*(-parseInt(_0x42f540(0x16e))/0x7)+parseInt(_0x42f540(0x141))/0x8*(-parseInt(_0x42f540(0x16b))/0x9)+-parseInt(_0x42f540(0x151))/0xa+parseInt(_0x42f540(0x15a))/0xb*(parseInt(_0x42f540(0x14d))/0xc);if(_0x4c77d4===_0x4d26af)break;else _0x2da0e7['push'](_0x2da0e7['shift']());}catch(_0x5cd080){_0x2da0e7['push'](_0x2da0e7['shift']());}}}(_0x1194,0xf283c));const e={'mcpStatus':{'disconnected':_0x31d7c2(0x161),'connecting':_0x31d7c2(0x166),'connected':'MCP\x20Connected','failed':_0x31d7c2(0x147),'retrying':_0x31d7c2(0x170),'unknown':_0x31d7c2(0x153),'unauthorized':_0x31d7c2(0x143),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x31d7c2(0x150),'maxRetriesExceeded':_0x31d7c2(0x158),'clickToConnect':_0x31d7c2(0x171),'clickToConfigure':_0x31d7c2(0x148)},'mcpConfig':{'title':_0x31d7c2(0x14e),'description':_0x31d7c2(0x149),'apiKey':_0x31d7c2(0x14f),'apiKeyPlaceholder':_0x31d7c2(0x167),'apiKeyHint':_0x31d7c2(0x16d),'enableAuth':_0x31d7c2(0x164),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x31d7c2(0x14c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x31d7c2(0x160),'configStepTitle':_0x31d7c2(0x163),'configStep1':_0x31d7c2(0x15b),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x31d7c2(0x159),'sessionId':_0x31d7c2(0x146),'sessionIdDescription':_0x31d7c2(0x169),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x31d7c2(0x145),'maxRetries':_0x31d7c2(0x154),'save':'Save\x20Configuration','saving':_0x31d7c2(0x15d),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x31d7c2(0x162),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x31d7c2(0x165),'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':_0x31d7c2(0x144),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x31d7c2(0x16c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x31d7c2(0x168)},'connectionStatus':{'disconnected':_0x31d7c2(0x157),'connecting':_0x31d7c2(0x14a),'connected':_0x31d7c2(0x15e),'failed':'Connection\x20Failed','retrying':_0x31d7c2(0x16f)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x31d7c2(0x156),'networkError':_0x31d7c2(0x15c),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';const _0x5f07b9=_0x3b98;(function(_0xe209d7,_0x20bc61){const _0x168792=_0x3b98,_0x4a8fa1=_0xe209d7();while(!![]){try{const _0x509388=parseInt(_0x168792(0x1b7))/0x1+parseInt(_0x168792(0x18c))/0x2+-parseInt(_0x168792(0x1a7))/0x3+parseInt(_0x168792(0x1b5))/0x4+parseInt(_0x168792(0x1ba))/0x5*(parseInt(_0x168792(0x1a9))/0x6)+-parseInt(_0x168792(0x190))/0x7*(parseInt(_0x168792(0x1b2))/0x8)+parseInt(_0x168792(0x1a5))/0x9*(-parseInt(_0x168792(0x191))/0xa);if(_0x509388===_0x20bc61)break;else _0x4a8fa1['push'](_0x4a8fa1['shift']());}catch(_0x17a4f6){_0x4a8fa1['push'](_0x4a8fa1['shift']());}}}(_0x492c,0x4f448));function _0x492c(){const _0x27781c=['配置步骤:','会话\x20ID\x20已被占用,请稍后再试','配置无效','带有\x20Bearer\x20前缀的\x20API\x20密钥。','8RVpfFg','复制以下\x20JSON\x20配置','配置保存失败','435956bGUdCg','请输入您的\x20API\x20密钥','110716VgMqlx','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','已连接','2425985kQKqCG','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20配置','网络连接错误,请检查您的网络连接','将配置添加到您的\x20MCP\x20客户端设置文件中','配置参数:','761268SfcYpy','点击连接\x20MCP','重连中...','exports','2377571vEJDuJ','740kdaaBy','MCP\x20已连接','您的\x20API\x20密钥将在此浏览器中本地存储','权限验证失败,请检查您的\x20API\x20密钥','MCP:\x20超出最大重试次数','启用身份验证以获得安全连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥不能为空','保存中...','什么是\x20API\x20密钥?','几秒钟内获取您的\x20API\x20密钥','超出最大重试次数,请稍后再试','MCP:\x20未授权','未连接','MCP\x20连接中...','MCP\x20状态未知','MCP\x20客户端配置','点击配置\x20MCP','连接失败','API\x20密钥','11601tWMEnJ','保存配置','977451depbNM','MCP:\x20会话\x20ID\x20已被占用','6cyeFes','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20已断开','MCP\x20连接失败','连接中...'];_0x492c=function(){return _0x27781c;};return _0x492c();}function _0x3b98(_0xf49dca,_0x14f161){const _0x492c53=_0x492c();return _0x3b98=function(_0x3b984e,_0x1f5414){_0x3b984e=_0x3b984e-0x187;let _0x4ca298=_0x492c53[_0x3b984e];return _0x4ca298;},_0x3b98(_0xf49dca,_0x14f161);}const e={'mcpStatus':{'disconnected':_0x5f07b9(0x1ab),'connecting':_0x5f07b9(0x19f),'connected':_0x5f07b9(0x192),'failed':_0x5f07b9(0x1ac),'retrying':'MCP\x20重连中...','unknown':_0x5f07b9(0x1a0),'unauthorized':_0x5f07b9(0x19d),'sessionOccupied':_0x5f07b9(0x1a8),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x5f07b9(0x195),'clickToConnect':_0x5f07b9(0x18d),'clickToConfigure':_0x5f07b9(0x1a2)},'mcpConfig':{'title':_0x5f07b9(0x188),'description':_0x5f07b9(0x1aa),'apiKey':_0x5f07b9(0x1a4),'apiKeyPlaceholder':_0x5f07b9(0x1b6),'apiKeyHint':_0x5f07b9(0x193),'enableAuth':'启用身份验证','enableAuthHint':_0x5f07b9(0x196),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x5f07b9(0x1a1),'configInstructions':_0x5f07b9(0x197),'configStepTitle':_0x5f07b9(0x1ae),'configStep1':_0x5f07b9(0x1b3),'configStep2':_0x5f07b9(0x18a),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x5f07b9(0x1b8),'authorizationDescription':_0x5f07b9(0x1b1),'configParameters':_0x5f07b9(0x18b),'maxRetries':'最大重试次数','save':_0x5f07b9(0x1a6),'saving':_0x5f07b9(0x199),'note1':'配置更改将立即生效','note2':_0x5f07b9(0x187),'configSaved':'配置保存成功','configError':_0x5f07b9(0x1b4),'apiApplyInfo':{'title':_0x5f07b9(0x19a),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x5f07b9(0x19b)},'validation':{'apiKeyRequired':_0x5f07b9(0x198),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x5f07b9(0x1b0),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x5f07b9(0x19e),'connecting':_0x5f07b9(0x1ad),'connected':_0x5f07b9(0x1b9),'failed':_0x5f07b9(0x1a3),'retrying':_0x5f07b9(0x18e)},'connectionError':{'unauthorized':_0x5f07b9(0x194),'sessionOccupied':_0x5f07b9(0x1af),'networkError':_0x5f07b9(0x189),'maxRetriesExceeded':_0x5f07b9(0x19c)}}};module[_0x5f07b9(0x18f)]=e;
1
+ 'use strict';const _0x275c0b=_0x41cb;(function(_0x3b8458,_0xade57){const _0x22a787=_0x41cb,_0x512c3c=_0x3b8458();while(!![]){try{const _0x206da8=-parseInt(_0x22a787(0x10c))/0x1*(-parseInt(_0x22a787(0xeb))/0x2)+-parseInt(_0x22a787(0x103))/0x3*(parseInt(_0x22a787(0x110))/0x4)+parseInt(_0x22a787(0x109))/0x5+parseInt(_0x22a787(0x10d))/0x6*(-parseInt(_0x22a787(0x107))/0x7)+-parseInt(_0x22a787(0xef))/0x8*(parseInt(_0x22a787(0x108))/0x9)+-parseInt(_0x22a787(0xf2))/0xa*(-parseInt(_0x22a787(0x10e))/0xb)+parseInt(_0x22a787(0xf1))/0xc;if(_0x206da8===_0xade57)break;else _0x512c3c['push'](_0x512c3c['shift']());}catch(_0x50e0a0){_0x512c3c['push'](_0x512c3c['shift']());}}}(_0x3c81,0xc2991));function _0x41cb(_0x5c965f,_0x5eb5ba){const _0x3c811b=_0x3c81();return _0x41cb=function(_0x41cb37,_0x514fc8){_0x41cb37=_0x41cb37-0xea;let _0x1d33f9=_0x3c811b[_0x41cb37];return _0x1d33f9;},_0x41cb(_0x5c965f,_0x5eb5ba);}const e={'mcpStatus':{'disconnected':_0x275c0b(0x10a),'connecting':'MCP\x20连接中...','connected':_0x275c0b(0xea),'failed':_0x275c0b(0x117),'retrying':'MCP\x20重连中...','unknown':_0x275c0b(0xf6),'unauthorized':_0x275c0b(0x106),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x275c0b(0xfc),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x275c0b(0x100),'clickToConfigure':_0x275c0b(0x102)},'mcpConfig':{'title':'MCP\x20配置','description':_0x275c0b(0xf3),'apiKey':_0x275c0b(0xff),'apiKeyPlaceholder':_0x275c0b(0x10f),'apiKeyHint':_0x275c0b(0xf8),'enableAuth':_0x275c0b(0xec),'enableAuthHint':_0x275c0b(0xf4),'connectionInfo':_0x275c0b(0xf7),'mcpClientConfig':_0x275c0b(0xf7),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x275c0b(0x104),'configStep1':_0x275c0b(0x11a),'configStep2':_0x275c0b(0xf5),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x275c0b(0xed),'authorizationDescription':_0x275c0b(0x111),'configParameters':'配置参数:','maxRetries':_0x275c0b(0xfb),'save':_0x275c0b(0x115),'saving':_0x275c0b(0xee),'note1':_0x275c0b(0xfe),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x275c0b(0x10b),'configError':_0x275c0b(0x101),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x275c0b(0x112),'univerAiLabel':_0x275c0b(0xf9),'getStarted':_0x275c0b(0x113)},'validation':{'apiKeyRequired':_0x275c0b(0xf0),'apiKeyTooShort':_0x275c0b(0x116),'invalidConfig':_0x275c0b(0xfd),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x275c0b(0xfa),'connected':_0x275c0b(0x119),'failed':'连接失败','retrying':_0x275c0b(0x105)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x275c0b(0x118),'networkError':_0x275c0b(0x114),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module['exports']=e;function _0x3c81(){const _0x4a1c7b=['MCP\x20连接失败','会话\x20ID\x20已被占用,请稍后再试','已连接','复制以下\x20JSON\x20配置','MCP\x20已连接','10UyHrdy','启用身份验证','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','保存中...','7608YNETqx','API\x20密钥不能为空','17686344GsQiCX','3769730aXyRYv','配置\x20MCP\x20使用\x20AI\x20操作电子表格','启用身份验证以获得安全连接','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20状态未知','MCP\x20客户端配置','您的\x20API\x20密钥将在此浏览器中本地存储','Univer\x20AI\x20控制台','连接中...','最大重试次数','MCP:\x20网络错误','配置无效','配置更改将立即生效','API\x20密钥','点击连接\x20MCP','配置保存失败','点击配置\x20MCP','525etWJCv','配置步骤:','重连中...','MCP:\x20未授权','7atjWwL','7281NjcWoM','5830910JELHPe','MCP\x20已断开','配置保存成功','22583DBLKli','6710850yAQLLe','11mUosub','请输入您的\x20API\x20密钥','10172BTEXkc','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','几秒钟内获取您的\x20API\x20密钥','网络连接错误,请检查您的网络连接','保存配置','API\x20密钥长度至少需要\x2010\x20位'];_0x3c81=function(){return _0x4a1c7b;};return _0x3c81();}
@@ -1 +1 @@
1
- 'use strict';const _0x2e2570=_0x46f7;(function(_0x1830bd,_0x334b21){const _0x38bab6=_0x46f7,_0x5a70b9=_0x1830bd();while(!![]){try{const _0xbda1e5=parseInt(_0x38bab6(0x1b0))/0x1*(parseInt(_0x38bab6(0x1aa))/0x2)+-parseInt(_0x38bab6(0x196))/0x3*(-parseInt(_0x38bab6(0x19f))/0x4)+parseInt(_0x38bab6(0x1b2))/0x5*(parseInt(_0x38bab6(0x1bd))/0x6)+parseInt(_0x38bab6(0x18d))/0x7*(-parseInt(_0x38bab6(0x1b7))/0x8)+parseInt(_0x38bab6(0x1b3))/0x9*(parseInt(_0x38bab6(0x1b9))/0xa)+parseInt(_0x38bab6(0x18a))/0xb+parseInt(_0x38bab6(0x1bb))/0xc*(-parseInt(_0x38bab6(0x18e))/0xd);if(_0xbda1e5===_0x334b21)break;else _0x5a70b9['push'](_0x5a70b9['shift']());}catch(_0x5afeff){_0x5a70b9['push'](_0x5a70b9['shift']());}}}(_0x72e7,0x6cc6d));function _0x72e7(){const _0x1c809a=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','3607667IvVXok','2412254SaJKXw','API\x20key\x20is\x20required','Save\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','exports','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','6lsfQzK','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Failed','Configuration\x20Parameters:','MCP\x20Retrying...','264760CqirGb','Connecting...','API\x20Key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Saving...','Configuration\x20Steps:','Enable\x20Authentication','Univer\x20AI\x20Console','Invalid\x20configuration','36578OnQJwU','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Configuration','11YbaaTq','MCP\x20Disconnected','25wiHnZv','9bMsHmq','MCP:\x20Network\x20Error','Max\x20Retries','MCP\x20Connection\x20Failed','8SMlIsp','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4624890wzCjjg','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','36qfjvTO','MCP\x20Client\x20Configuration','596856AgBKog','What\x20is\x20API\x20Key?','2465936KGPrAH'];_0x72e7=function(){return _0x1c809a;};return _0x72e7();}function _0x46f7(_0x3755a3,_0x56c1f0){const _0x72e788=_0x72e7();return _0x46f7=function(_0x46f74e,_0x28a469){_0x46f74e=_0x46f74e-0x18a;let _0x15f508=_0x72e788[_0x46f74e];return _0x15f508;},_0x46f7(_0x3755a3,_0x56c1f0);}const e={'mcpStatus':{'disconnected':_0x2e2570(0x1b1),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x2e2570(0x1b6),'retrying':_0x2e2570(0x19e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2e2570(0x1a3),'sessionOccupied':_0x2e2570(0x19a),'networkError':_0x2e2570(0x1b4),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2e2570(0x1a4)},'mcpConfig':{'title':_0x2e2570(0x1af),'description':_0x2e2570(0x192),'apiKey':_0x2e2570(0x1a1),'apiKeyPlaceholder':_0x2e2570(0x199),'apiKeyHint':_0x2e2570(0x195),'enableAuth':_0x2e2570(0x1a7),'enableAuthHint':_0x2e2570(0x19b),'connectionInfo':_0x2e2570(0x1bc),'mcpClientConfig':_0x2e2570(0x1bc),'configInstructions':_0x2e2570(0x198),'configStepTitle':_0x2e2570(0x1a6),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2e2570(0x1b8),'configStep3':_0x2e2570(0x1ac),'sessionId':'Session\x20ID','sessionIdDescription':_0x2e2570(0x197),'authorizationDescription':_0x2e2570(0x191),'configParameters':_0x2e2570(0x19d),'maxRetries':_0x2e2570(0x1b5),'save':_0x2e2570(0x190),'saving':_0x2e2570(0x1a5),'note1':_0x2e2570(0x193),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2e2570(0x1be),'description':_0x2e2570(0x1ba),'univerAiLabel':_0x2e2570(0x1a8),'getStarted':_0x2e2570(0x1ab)},'validation':{'apiKeyRequired':_0x2e2570(0x18f),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2e2570(0x1a9),'invalidApiKey':_0x2e2570(0x18c)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2e2570(0x1a0),'connected':'Connected','failed':_0x2e2570(0x19c),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2e2570(0x18b),'sessionOccupied':_0x2e2570(0x1a2),'networkError':_0x2e2570(0x1ae),'maxRetriesExceeded':_0x2e2570(0x1ad)}}},n=e;module[_0x2e2570(0x194)]=n;
1
+ 'use strict';const _0xb92966=_0x1d62;(function(_0x55b1df,_0x23afdb){const _0x5d2e30=_0x1d62,_0x5b6b66=_0x55b1df();while(!![]){try{const _0x5a2f74=-parseInt(_0x5d2e30(0x1e3))/0x1+-parseInt(_0x5d2e30(0x1e7))/0x2+-parseInt(_0x5d2e30(0x1cf))/0x3*(-parseInt(_0x5d2e30(0x1de))/0x4)+parseInt(_0x5d2e30(0x1c9))/0x5+-parseInt(_0x5d2e30(0x1bc))/0x6*(parseInt(_0x5d2e30(0x1bf))/0x7)+parseInt(_0x5d2e30(0x1cb))/0x8*(-parseInt(_0x5d2e30(0x1bd))/0x9)+-parseInt(_0x5d2e30(0x1db))/0xa*(-parseInt(_0x5d2e30(0x1ea))/0xb);if(_0x5a2f74===_0x23afdb)break;else _0x5b6b66['push'](_0x5b6b66['shift']());}catch(_0x2ef100){_0x5b6b66['push'](_0x5b6b66['shift']());}}}(_0x1427,0x72a42));function _0x1d62(_0x158305,_0xc8e133){const _0x1427c8=_0x1427();return _0x1d62=function(_0x1d6243,_0x4550c7){_0x1d6243=_0x1d6243-0x1bc;let _0x57d902=_0x1427c8[_0x1d6243];return _0x57d902;},_0x1d62(_0x158305,_0xc8e133);}function _0x1427(){const _0xfc9184=['56BCTsEp','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','Connecting...','Click\x20to\x20configure\x20MCP','308812RVYVms','MCP\x20Unknown\x20Status','Click\x20to\x20connect\x20MCP','Save\x20Configuration','653206gytJbP','MCP\x20Disconnected','Max\x20Retries','275TedZov','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','6hHibTv','36joOQIx','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2726367vJLWLv','MCP\x20Retrying...','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','Invalid\x20configuration','API\x20key\x20is\x20required','Connection\x20Failed','4280470MnBVuV','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1306712ipmGzL','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connected','API\x20Key','70131lxjLba','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20saved\x20successfully','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Saving...','exports','Copy\x20the\x20JSON\x20configuration\x20below','385780gvCKsv','Configuration\x20Steps:','MCP\x20Connection\x20Failed'];_0x1427=function(){return _0xfc9184;};return _0x1427();}const e={'mcpStatus':{'disconnected':_0xb92966(0x1e8),'connecting':_0xb92966(0x1c1),'connected':_0xb92966(0x1cd),'failed':_0xb92966(0x1dd),'retrying':_0xb92966(0x1c0),'unknown':_0xb92966(0x1e4),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xb92966(0x1cc),'networkError':_0xb92966(0x1c4),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0xb92966(0x1e5),'clickToConfigure':_0xb92966(0x1e2)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xb92966(0x1d1),'apiKey':_0xb92966(0x1ce),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0xb92966(0x1d6),'enableAuthHint':_0xb92966(0x1df),'connectionInfo':_0xb92966(0x1e0),'mcpClientConfig':_0xb92966(0x1e0),'configInstructions':_0xb92966(0x1eb),'configStepTitle':_0xb92966(0x1dc),'configStep1':_0xb92966(0x1da),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xb92966(0x1d0),'sessionId':_0xb92966(0x1d4),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xb92966(0x1d5),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xb92966(0x1e9),'save':_0xb92966(0x1e6),'saving':_0xb92966(0x1d8),'note1':_0xb92966(0x1be),'note2':_0xb92966(0x1ca),'configSaved':_0xb92966(0x1d2),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0xb92966(0x1c5),'getStarted':_0xb92966(0x1c3)},'validation':{'apiKeyRequired':_0xb92966(0x1c7),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xb92966(0x1c6),'invalidApiKey':_0xb92966(0x1c2)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xb92966(0x1e1),'connected':'Connected','failed':_0xb92966(0x1c8),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0xb92966(0x1d7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xb92966(0x1d3),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0xb92966(0x1d9)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x36d8ec=_0x5512;(function(_0x5de09e,_0x51fa49){const _0x207e90=_0x5512,_0xad59d9=_0x5de09e();while(!![]){try{const _0x20adfb=-parseInt(_0x207e90(0x30e))/0x1*(parseInt(_0x207e90(0x2b5))/0x2)+parseInt(_0x207e90(0x249))/0x3*(-parseInt(_0x207e90(0x2a3))/0x4)+parseInt(_0x207e90(0x27e))/0x5+-parseInt(_0x207e90(0x231))/0x6*(parseInt(_0x207e90(0x260))/0x7)+parseInt(_0x207e90(0x2f1))/0x8+parseInt(_0x207e90(0x225))/0x9+-parseInt(_0x207e90(0x311))/0xa*(parseInt(_0x207e90(0x24d))/0xb);if(_0x20adfb===_0x51fa49)break;else _0xad59d9['push'](_0xad59d9['shift']());}catch(_0x237ad0){_0xad59d9['push'](_0xad59d9['shift']());}}}(_0x1827,0xbaa20));var Pe=Object[_0x36d8ec(0x29f)],Ee=(_0x2bee2a,_0x4f903c,_0x39f452)=>_0x4f903c in _0x2bee2a?Pe(_0x2bee2a,_0x4f903c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39f452}):_0x2bee2a[_0x4f903c]=_0x39f452,x=(_0x4d1422,_0x42f255,_0x33bc75)=>Ee(_0x4d1422,typeof _0x42f255!=_0x36d8ec(0x306)?_0x42f255+'':_0x42f255,_0x33bc75);import{LocaleService as _0x816cf4,Inject as _0x2532da,Injector as _0xc4e8e4,IConfigService as _0x357bec,ILocalStorageService as _0x3d4c57,ILogService as _0x3d832a,Disposable as _0x239124,CommandType as _0x4d0d6d,ICommandService as _0x28bb98,DependentOn as _0x58d8af,Plugin as _0x1183c0,merge as _0x267b1d}from'@univerjs/core';import{jsxs as _0x4bfa8a,jsx as _0x5b6a2a}from'react/jsx-runtime';import{MCPConnectionStatus as _0x4826e7,MCPConnectionError as _0x5cf8ec,MCPConnectionController as _0x2865a1,MCP_PLUGIN_CONFIG_KEY as _0x1cba3b,UniverMCPPlugin as _0x2acee1}from'@univerjs-pro/mcp';import{clsx as _0x5ec172,Input as _0x34b38c,Button as _0x52d264,MessageType as _0x306d8d,Tooltip as _0x53d38e}from'@univerjs/design';import{useDependency as _0x27af1c,useObservable as _0x141ee5,IUIPartsService as _0x16a405,IDialogService as _0x2f50d3,IMessageService as _0x2d4c69,ComponentManager as _0x1fe334,connectInjector as _0x2efbbd,BuiltInUIPart as _0x24847c,MenuItemType as _0x202afb,RibbonStartGroup as _0xf02aa7,IMenuManagerService as _0x5a3b64}from'@univerjs/ui';import{BehaviorSubject as _0x47d305}from'rxjs';import{useRef as _0x5a2a0f,createElement as _0x40b4ac,forwardRef as _0x213839,useState as _0x558d89,useCallback as _0x50f2c2}from'react';import{ISocketService as _0x29c1a6,WebSocketService as _0x31aeac}from'@univerjs/network';function b({ref:_0x1f83fe,..._0x54dd36}){const _0x493237=_0x36d8ec,{icon:_0x431476,id:_0x330022,className:_0x51e549,extend:_0x10a875,..._0x38c75e}=_0x54dd36,_0x189f0a=(_0x493237(0x24f)+_0x330022+'\x20'+(_0x51e549||''))[_0x493237(0x226)](),_0xf6cc07=_0x5a2a0f('_'+We());return ae(_0x431476,''+_0x330022,{'defIds':_0x431476[_0x493237(0x32f)],'idSuffix':_0xf6cc07[_0x493237(0x279)]},{'ref':_0x1f83fe,'className':_0x189f0a,..._0x38c75e},_0x10a875);}function ae(_0x46fc5f,_0x5df8f9,_0x5bf185,_0xc9999a,_0x61ff8d){const _0x5ad632=_0x36d8ec;return _0x40b4ac(_0x46fc5f[_0x5ad632(0x31b)],{'key':_0x5df8f9,...Ye(_0x46fc5f,_0x5bf185,_0x61ff8d),..._0xc9999a},(Ze(_0x46fc5f,_0x5bf185)[_0x5ad632(0x1fc)]||[])[_0x5ad632(0x2ff)]((_0x4c3d8d,_0x4dcaaf)=>ae(_0x4c3d8d,_0x5df8f9+'-'+_0x46fc5f[_0x5ad632(0x31b)]+'-'+_0x4dcaaf,_0x5bf185,void 0x0,_0x61ff8d)));}function Ye(_0x1aaac4,_0x5d72ec,_0x23eb87){const _0x294aaa=_0x36d8ec,_0x264f09={..._0x1aaac4[_0x294aaa(0x2ac)]};_0x23eb87!=null&&_0x23eb87[_0x294aaa(0x281)]&&_0x264f09['fill']===_0x294aaa(0x281)&&(_0x264f09[_0x294aaa(0x233)]=_0x23eb87[_0x294aaa(0x281)]),_0x1aaac4[_0x294aaa(0x31b)]===_0x294aaa(0x282)&&_0x264f09['id']&&(_0x264f09['id']=_0x264f09['id']+_0x5d72ec['idSuffix']),Object['entries'](_0x264f09)[_0x294aaa(0x223)](([_0x38a19c,_0xaefb4f])=>{const _0x5af28d=_0x294aaa;_0x38a19c==='mask'&&typeof _0xaefb4f==_0x5af28d(0x1fe)&&(_0x264f09[_0x38a19c]=_0xaefb4f[_0x5af28d(0x23b)](/url\(#(.*)\)/,'url(#$1'+_0x5d72ec[_0x5af28d(0x23d)]+')'));});const {defIds:_0x50a9cd}=_0x5d72ec;return!_0x50a9cd||_0x50a9cd[_0x294aaa(0x1fd)]===0x0||(_0x1aaac4[_0x294aaa(0x31b)]===_0x294aaa(0x30f)&&_0x264f09['xlink:href']&&(_0x264f09[_0x294aaa(0x32c)]=_0x264f09[_0x294aaa(0x32c)]+_0x5d72ec['idSuffix']),Object[_0x294aaa(0x21e)](_0x264f09)[_0x294aaa(0x223)](([_0x72bf73,_0x46caec])=>{const _0x19c081=_0x294aaa;typeof _0x46caec==_0x19c081(0x1fe)&&(_0x264f09[_0x72bf73]=_0x46caec[_0x19c081(0x23b)](/url\(#(.*)\)/,'url(#$1'+_0x5d72ec['idSuffix']+')'));})),_0x264f09;}function Ze(_0x383434,_0x3541a0){const _0xa9e99f=_0x36d8ec;var _0x1fd91c;const {defIds:_0x505fbc}=_0x3541a0;return!_0x505fbc||_0x505fbc[_0xa9e99f(0x1fd)]===0x0?_0x383434:_0x383434[_0xa9e99f(0x31b)]===_0xa9e99f(0x229)&&((_0x1fd91c=_0x383434[_0xa9e99f(0x1fc)])!=null&&_0x1fd91c[_0xa9e99f(0x1fd)])?{..._0x383434,'children':_0x383434[_0xa9e99f(0x1fc)][_0xa9e99f(0x2ff)](_0x127a15=>typeof _0x127a15[_0xa9e99f(0x2ac)]['id']==_0xa9e99f(0x1fe)&&_0x505fbc&&_0x505fbc[_0xa9e99f(0x22b)](_0x127a15[_0xa9e99f(0x2ac)]['id'])?{..._0x127a15,'attrs':{..._0x127a15[_0xa9e99f(0x2ac)],'id':_0x127a15[_0xa9e99f(0x2ac)]['id']+_0x3541a0[_0xa9e99f(0x23d)]}}:_0x127a15)}:_0x383434;}function We(){const _0xe31e05=_0x36d8ec;return Math[_0xe31e05(0x224)]()[_0xe31e05(0x2df)](0x24)['substring'](0x2,0x8);}b['displayName']=_0x36d8ec(0x2e3);const qe={'tag':_0x36d8ec(0x2c3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x36d8ec(0x211),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x36d8ec(0x1fa)},'children':[{'tag':_0x36d8ec(0x323),'attrs':{'fill':_0x36d8ec(0x25b),'d':_0x36d8ec(0x1f2),'fillRule':_0x36d8ec(0x2c8),'clipRule':_0x36d8ec(0x2c8)}}]},le=_0x213839(function(_0x15fe24,_0x56b587){const _0x1a6b9a=_0x36d8ec;return _0x40b4ac(b,Object[_0x1a6b9a(0x237)]({},_0x15fe24,{'id':_0x1a6b9a(0x253),'ref':_0x56b587,'icon':qe}));});le[_0x36d8ec(0x2de)]=_0x36d8ec(0x264);const Xe={'tag':_0x36d8ec(0x2c3),'attrs':{'xmlns':_0x36d8ec(0x328),'fill':_0x36d8ec(0x211),'viewBox':'0\x200\x2016\x2016','width':_0x36d8ec(0x1fa),'height':_0x36d8ec(0x1fa)},'children':[{'tag':_0x36d8ec(0x323),'attrs':{'fill':_0x36d8ec(0x25b),'d':_0x36d8ec(0x2cb)}}]},ue=_0x213839(function(_0x1b90d2,_0x447db3){const _0x198fbf=_0x36d8ec;return _0x40b4ac(b,Object[_0x198fbf(0x237)]({},_0x1b90d2,{'id':'close-icon','ref':_0x447db3,'icon':Xe}));});ue[_0x36d8ec(0x2de)]=_0x36d8ec(0x2a8);const Je={'tag':_0x36d8ec(0x2c3),'attrs':{'xmlns':_0x36d8ec(0x328),'fill':_0x36d8ec(0x211),'viewBox':_0x36d8ec(0x310),'width':'1em','height':_0x36d8ec(0x1fa)},'children':[{'tag':_0x36d8ec(0x323),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x36d8ec(0x323),'attrs':{'fill':_0x36d8ec(0x25b),'d':_0x36d8ec(0x221)}},{'tag':_0x36d8ec(0x323),'attrs':{'fill':_0x36d8ec(0x25b),'d':_0x36d8ec(0x21d),'fillRule':_0x36d8ec(0x2c8),'clipRule':_0x36d8ec(0x2c8)}}]},ve=_0x213839(function(_0x112982,_0x395cee){const _0x1e26b4=_0x36d8ec;return _0x40b4ac(b,Object['assign']({},_0x112982,{'id':_0x1e26b4(0x26f),'ref':_0x395cee,'icon':Je}));});ve[_0x36d8ec(0x2de)]='HelpIcon';const Qe={'tag':_0x36d8ec(0x2c3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x36d8ec(0x211),'viewBox':_0x36d8ec(0x310),'width':_0x36d8ec(0x1fa),'height':_0x36d8ec(0x1fa)},'children':[{'tag':'g','attrs':{'clipPath':_0x36d8ec(0x2b1)},'children':[{'tag':'path','attrs':{'stroke':_0x36d8ec(0x25b),'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':_0x36d8ec(0x1e9),'strokeLinejoin':_0x36d8ec(0x1e9),'strokeWidth':1.2}}]},{'tag':_0x36d8ec(0x229),'attrs':{},'children':[{'tag':_0x36d8ec(0x1e0),'attrs':{'id':_0x36d8ec(0x1f7)},'children':[{'tag':_0x36d8ec(0x323),'attrs':{'fill':_0x36d8ec(0x330),'d':_0x36d8ec(0x240)}}]}]}],'defIds':[_0x36d8ec(0x1f7)]},de=_0x213839(function(_0x4e1461,_0xf53d0b){const _0x5891e6=_0x36d8ec;return _0x40b4ac(b,Object[_0x5891e6(0x237)]({},_0x4e1461,{'id':_0x5891e6(0x32d),'ref':_0xf53d0b,'icon':Qe}));});de[_0x36d8ec(0x2de)]='OffLineIcon';const en={'tag':_0x36d8ec(0x2c3),'attrs':{'xmlns':_0x36d8ec(0x328),'fill':_0x36d8ec(0x211),'viewBox':_0x36d8ec(0x286),'width':_0x36d8ec(0x1fa),'height':_0x36d8ec(0x1fa)},'children':[{'tag':'g','attrs':{'clipPath':_0x36d8ec(0x287)},'children':[{'tag':_0x36d8ec(0x323),'attrs':{'stroke':_0x36d8ec(0x25b),'d':_0x36d8ec(0x288),'strokeLinecap':_0x36d8ec(0x1e9),'strokeLinejoin':_0x36d8ec(0x1e9),'strokeWidth':1.2}}]},{'tag':_0x36d8ec(0x229),'attrs':{},'children':[{'tag':_0x36d8ec(0x1e0),'attrs':{'id':_0x36d8ec(0x2dc)},'children':[{'tag':_0x36d8ec(0x323),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x36d8ec(0x1e8)}}]}]}],'defIds':[_0x36d8ec(0x2dc)]},ge=_0x213839(function(_0x5b9a30,_0x1350bd){const _0x5d00d6=_0x36d8ec;return _0x40b4ac(b,Object['assign']({},_0x5b9a30,{'id':_0x5d00d6(0x305),'ref':_0x1350bd,'icon':en}));});function _0x1827(){const _0x579c78=['_configService','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.connectionStatus.connected','_handleConfigSave','univer-flex\x20univer-gap-3','mcpStatus.failed','MCP:\x20未授权','mergeMenu','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_config$','univer-space-y-3','univer-text-green-500','on-line-icon_clip0_910_349','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','displayName','toString','Univer\x20AI\x20控制台','apiKey','<SESSION_ID>','UniverIcon','配置参数:','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','_messageService','配置无效','register','Saving...','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','subscribe','getOwnPropertyDescriptor','univer-text-sm\x20univer-font-medium','https://console.univer.ai','_blank','univer_session_id:','31856jaNogJ','onStarting','COMMAND','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-bg-red-500','univer-flex\x20univer-items-center\x20univer-gap-3','MCP\x20Unknown\x20Status','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.connectionError.sessionOccupied','_validateConfig','启用身份验证','mcp-ui.config','_registerComponent','map','_commandService','mcpConfig.configInstructions','http','启用身份验证以获得安全连接','univer-bg-green-500','on-line-icon','symbol','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','showDeveloperTools','NONE','将配置添加到您的\x20MCP\x20客户端设置文件中','Save\x20Configuration','NETWORK_ERROR','warn','79WuqeFu','use','0\x200\x2016\x2016','60BoUHlR','连接失败','\x20-\x20','mcpServerUrl','您的\x20API\x20密钥将在此浏览器中本地存储','open','Enable\x20Authentication','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','showStatus','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','tag','Click\x20to\x20connect\x20MCP','mcpConfig.connectionStatus.disconnected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','OTHERS','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','SESSION_ID_OCCUPIED','MCP\x20状态未知','path','_initConfigSync','保存中...','Connection\x20Failed','registerCommand','http://www.w3.org/2000/svg','text','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_initializeMenus','xlink:href','off-line-icon','_uiPartsService','defIds','white','showConfigPanel','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','重启您的\x20MCP\x20客户端以使配置生效','HEADER_MENU','\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','Configuration\x20Steps:','clipPath','univer-size-2\x20univer-rounded-full','univer-space-y-5','setItem','配置步骤:','MCP\x20客户端配置','enableAutoConnect','mcpConfig.apiApplyInfo.univerAiLabel','translate(.97)','round','univer.plus','mcpConfig.configSaved','mcpStatus.sessionOccupied','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','重连中...','univer-text-xs\x20univer-text-gray-500','MAX_RETRIES_EXCEEDED','mcpConfig.connectionStatus.retrying','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','add','mcp-config-dialog','MCP_UI_PLUGIN','BUTTON','off-line-icon_clip0_910_343','权限验证失败,请检查您的\x20API\x20密钥','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1em','_dialogService','children','length','string','_initAutoConnect','_config','value','API\x20密钥不能为空','Connected','univer-text-red-500','配置保存失败','_createConfigPanelComponent','UNAUTHORIZED','div','将以下配置添加到您的\x20MCP\x20客户端设置中:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex\x20univer-items-center','Failed\x20to\x20save\x20configuration','_mcpCoreConfig$','mcpConfig.apiKeyHint','univer-bg-blue-500','mcpConfig.description','none','mcpConfig.configStepTitle','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer.ai','connectionError$','getConfig','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','button','mcpConfig.apiKeyPlaceholder','mcp-ui.command.openConfigPanel','noopener\x20noreferrer','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','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','entries','mcpStatus.clickToConnect','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','univer-font-medium','forEach','random','11042433UVoVJX','trim','mcpConfig.validation.apiKeyRequired','mcpConfig.authorizationDescription','defs','https://mcp.univer.ai/mcp/?univer_session_id=','includes','univer-text-white','Univer\x20AI\x20Console','stringify','Configuration\x20saved\x20successfully','mcpStatus.connecting','2588502AkVirj','_componentManager','fill','mcpConfig.configStep3','isValid','_loadStoredApiKey','assign','DISCONNECTED','univer-size-4','mcpStatus.unknown','replace','MCP:\x20Unauthorized','idSuffix','mcpStatus.networkError','mcpConfig.apiApplyInfo.title','M0\x200H16V16H0z','_menuManagerService','mcpConfig.validation.invalidConfig','API\x20Key','univer-space-y-2','univer-flex\x20univer-items-center\x20univer-gap-2','已连接','univer-flex-1','MCP\x20重连中...','325506cguMOi','show','mcpConfig.connectionStatus.failed','点击配置\x20MCP','475189voJEmW','univer-text-yellow-500','univerjs-icon\x20univerjs-icon-','_logService','未连接','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','check-mark-icon','保存配置','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_initStatusComponent','Bearer\x20','Configuration\x20Notes:','_mcpConnectionController','currentColor','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','pre','FAILED','7XxbDXx','MenuIcon','mcpConfig.save','Configuration\x20Parameters:','CheckMarkIcon','带有\x20Bearer\x20前缀的\x20API\x20密钥。','pluginName','MCP\x20Disconnected','univer-min-w-0\x20univer-flex-1','mcpConfig.connectionInfo','mcpStatus.maxRetriesExceeded','_localStorageService','univer-flex\x20univer-items-start\x20univer-gap-2','registerComponent','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','help-icon','Retrying...','bottom','CONNECTING','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-text-gray-400','univer-shrink-0\x20univer-text-blue-500','MCP\x20Connection\x20Failed','MCP\x20配置','点击连接\x20MCP','current','_injector','univer-bg-gray-500','_localeService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','6538430NOqkTd','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.configError','colorChannel1','mask','close','mcpConfig.sessionIdDescription','univer-text-blue-600','0\x200\x2017\x2016','url(#on-line-icon_clip0_910_349)','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','Disconnected','MCP\x20Client\x20Configuration','univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionStatus.connecting','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20连接失败','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP:\x20Network\x20Error','MCP\x20已连接','univer-mr-2\x20univer-flex\x20univer-text-xl','_apiKey$','_connectionController','MCP\x20Configuration','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_loading$','mcpConfig.note1','Get\x20your\x20API\x20key\x20in\x20seconds','push','<API_KEY>','mcpConfig.configStep2','span','defineProperty','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20已断开','has','16hxpFTO','disposeWithMe','mcpStatus.connected','getItem','请输入您的\x20API\x20密钥','CloseIcon','removeItem','__setCustomHeaders','mcpConfig.title','attrs','Authorization:','超出最大重试次数,请稍后再试','mcpConfig.apiApplyInfo.description','API\x20密钥','url(#off-line-icon_clip0_910_343)','Error','mcpConfig.apiApplyInfo.getStarted','CONNECTED','16444TukjUx','RETRYING','univer-text-sm\x20univer-text-gray-500','off','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_handleConfigure','会话ID','univer-text-gray-500','univer-flex\x20univer-items-start\x20univer-gap-3','MCP:\x20会话\x20ID\x20已被占用','connectionStatus$','get','next','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','svg','会话\x20ID\x20已被占用,请稍后再试','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.validation.apiKeyTooShort','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','evenodd','setConfig','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','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','univer-shrink-0\x20univer-text-red-500','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','error','API\x20密钥长度至少需要\x2010\x20位'];_0x1827=function(){return _0x579c78;};return _0x1827();}ge['displayName']='OnLineIcon';function nn(_0x597bbc){const _0x501a89=_0x36d8ec;var _0x4fac93,_0x1f2213;const {mcpCoreConfig:_0x11575b,onSave:_0x49ff05,loading:_0xe62e76=!0x1,config:_0x1e2c9a,connectionStatus$:_0x151a5d,connectionError$:_0x2cf788,currentApiKey$:_0x363330,currentSessionId$:_0x5bbd1b}=_0x597bbc,_0x6693d2=_0x27af1c(_0x816cf4),_0x250879=_0x141ee5(_0x151a5d,_0x4826e7['DISCONNECTED']),_0x2b223d=_0x141ee5(_0x2cf788,_0x5cf8ec['NONE']),_0x37d153=_0x141ee5(_0x5bbd1b,''),_0x2d6585=_0x141ee5(_0x363330,''),[_0x22a134,_0x583bb6]=_0x558d89(_0x2d6585||''),_0x4e8db4=!0x0,_0x2a1757=_0x1e2c9a[_0x501a89(0x308)]&&_0x11575b[_0x501a89(0x314)]&&(_0x11575b[_0x501a89(0x314)]['includes'](_0x501a89(0x1ea))||_0x11575b[_0x501a89(0x314)][_0x501a89(0x22b)](_0x501a89(0x214))),_0x34e113=(_0x4fac93=_0x11575b[_0x501a89(0x314)])==null?void 0x0:_0x4fac93[_0x501a89(0x22b)](_0x501a89(0x1ea)),_0x4cd721=(_0x1f2213=_0x11575b['mcpServerUrl'])==null?void 0x0:_0x1f2213['includes'](_0x501a89(0x214)),_0xe1ec47=_0x34e113?'https://console.univer.plus':_0x501a89(0x2ee),_0x10d0d3=_0x1e2c9a[_0x501a89(0x308)]&&(_0x34e113||_0x4cd721),[_0x431197,_0xf7595b]=_0x558d89(!_0x22a134['trim']()),_0x4163cd=(_0x27fd65,_0x5a7222)=>{const _0x395b37=_0x501a89;if(_0x5a7222===_0x5cf8ec[_0x395b37(0x207)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x27fd65){case _0x4826e7[_0x395b37(0x2b4)]:return _0x395b37(0x25d);case _0x4826e7['CONNECTING']:case _0x4826e7[_0x395b37(0x2b6)]:return _0x395b37(0x2ea);case _0x4826e7[_0x395b37(0x25f)]:return _0x395b37(0x1ed);default:return _0x395b37(0x2c7);}},_0x243a36=(_0x2ebbf7,_0x516674)=>{const _0x892885=_0x501a89;if(_0x516674===_0x5cf8ec[_0x892885(0x207)])return _0x892885(0x2f6);switch(_0x2ebbf7){case _0x4826e7[_0x892885(0x2b4)]:return _0x892885(0x304);case _0x4826e7[_0x892885(0x272)]:case _0x4826e7[_0x892885(0x2b6)]:return _0x892885(0x20f);case _0x4826e7[_0x892885(0x25f)]:return _0x892885(0x2f6);default:return _0x892885(0x27b);}},_0xc3d7b6=_0xc764f4=>{const _0x1132a2=_0x501a89;switch(_0xc764f4){case _0x4826e7[_0x1132a2(0x2b4)]:return _0x6693d2['t'](_0x1132a2(0x2d2));case _0x4826e7[_0x1132a2(0x272)]:return _0x6693d2['t'](_0x1132a2(0x28c));case _0x4826e7[_0x1132a2(0x25f)]:return _0x6693d2['t'](_0x1132a2(0x24b));case _0x4826e7['RETRYING']:return _0x6693d2['t'](_0x1132a2(0x1f1));default:return _0x6693d2['t'](_0x1132a2(0x31d));}},_0x85c020=_0x3846c7=>{const _0xf3e89d=_0x501a89;switch(_0x3846c7){case _0x5cf8ec[_0xf3e89d(0x207)]:return _0x6693d2['t']('mcpConfig.connectionError.unauthorized');case _0x5cf8ec[_0xf3e89d(0x321)]:return _0x6693d2['t'](_0xf3e89d(0x2fa));case _0x5cf8ec['NETWORK_ERROR']:return _0x6693d2['t']('mcpConfig.connectionError.networkError');case _0x5cf8ec[_0xf3e89d(0x1f0)]:return _0x6693d2['t'](_0xf3e89d(0x2f9));default:return'';}},_0xb7e2e3=_0x50f2c2(()=>{const _0x46ff07=_0x501a89,_0x8e5e25={..._0x11575b,'apiKey':_0x22a134[_0x46ff07(0x226)](),'enableAuth':_0x4e8db4};_0x49ff05(_0x8e5e25);},[_0x11575b,_0x22a134,_0x4e8db4,_0x49ff05]),_0x279118=_0x22a134[_0x501a89(0x226)]()['length']>0x0;return _0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x296),'children':[_0x5b6a2a(_0x501a89(0x208),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x4bfa8a('div',{'className':_0x501a89(0x2f7),'children':[_0x5b6a2a(_0x501a89(0x208),{'className':_0x501a89(0x28f),'children':_0x5b6a2a(_0x501a89(0x29e),{'className':_0x501a89(0x22c),'children':'⚙'})}),_0x5b6a2a(_0x501a89(0x208),{'children':_0x5b6a2a('p',{'className':_0x501a89(0x2b7),'children':_0x6693d2['t'](_0x501a89(0x210))})})]})}),_0x4bfa8a('div',{'className':_0x501a89(0x220),'children':[_0x5b6a2a(_0x501a89(0x208),{'className':_0x5ec172('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x4163cd(_0x250879,_0x2b223d)),'children':_0x4bfa8a(_0x501a89(0x208),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x5b6a2a(_0x501a89(0x208),{'className':_0x5ec172(_0x501a89(0x1e1),_0x243a36(_0x250879,_0x2b223d))}),_0x5b6a2a(_0x501a89(0x29e),{'className':_0x501a89(0x2ed),'children':_0xc3d7b6(_0x250879)})]})}),_0x2b223d!==_0x5cf8ec[_0x501a89(0x309)]&&(_0x250879===_0x4826e7[_0x501a89(0x25f)]||_0x2b223d===_0x5cf8ec[_0x501a89(0x207)])&&_0x5b6a2a(_0x501a89(0x208),{'className':_0x501a89(0x318),'children':_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x26c),'children':[_0x5b6a2a(_0x501a89(0x29e),{'className':_0x501a89(0x2cc),'children':'⚠️'}),_0x5b6a2a('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x85c020(_0x2b223d)})]})})]}),_0x5b6a2a(_0x501a89(0x208),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x1e2),'children':[_0x4bfa8a('div',{'className':_0x501a89(0x244),'children':[_0x4bfa8a('label',{'className':_0x501a89(0x27f),'children':[_0x5b6a2a(_0x501a89(0x29e),{'children':'🔑'}),'\x20',_0x6693d2['t']('mcpConfig.apiKey'),_0x5b6a2a(_0x501a89(0x29e),{'className':_0x501a89(0x204),'children':'*'}),_0x2a1757&&_0x5b6a2a('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x6693d2['t']('mcpConfig.apiApplyInfo.title'),'role':_0x501a89(0x218),'onClick':()=>_0xf7595b(!0x0),'children':_0x5b6a2a(ve,{})})]}),_0x5b6a2a(_0x34b38c,{'type':_0x501a89(0x329),'placeholder':_0x6693d2['t'](_0x501a89(0x219)),'value':_0x22a134,'disabled':_0xe62e76,'autoComplete':_0x501a89(0x2b8),'onChange':_0x583bb6}),_0x5b6a2a('p',{'className':_0x501a89(0x1ef),'children':_0x6693d2['t'](_0x501a89(0x20e))})]}),_0x2a1757&&_0x431197&&_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x213),'children':[_0x5b6a2a('a',{'className':_0x501a89(0x273),'role':_0x501a89(0x218),'onClick':()=>_0xf7595b(!0x1),'children':_0x5b6a2a(ue,{'className':_0x501a89(0x239)})}),_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x2ca),'children':[_0x5b6a2a(_0x501a89(0x208),{'className':_0x501a89(0x2dd),'children':_0x5b6a2a(_0x501a89(0x29e),{'className':_0x501a89(0x285),'children':'🚀'})}),_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x247),'children':[_0x5b6a2a('h4',{'className':_0x501a89(0x26e),'children':_0x6693d2['t'](_0x501a89(0x23f))}),_0x5b6a2a('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x6693d2['t'](_0x501a89(0x2af))}),_0x5b6a2a(_0x501a89(0x208),{'className':_0x501a89(0x32a),'children':_0x10d0d3&&_0x4bfa8a('a',{'className':_0x501a89(0x255),'href':_0xe1ec47,'target':_0x501a89(0x2ef),'rel':_0x501a89(0x21b),'children':[_0x5b6a2a(_0x501a89(0x29e),{'children':'🤖'}),_0x6693d2['t'](_0x501a89(0x1e7)),_0x5b6a2a(_0x501a89(0x29e),{'className':_0x501a89(0x274),'children':'↗'})]})}),_0x4bfa8a('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x6693d2['t'](_0x501a89(0x2b3))]})]})]})]}),_0x1e2c9a['showDeveloperTools']&&_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x252),'children':[_0x4bfa8a('h4',{'className':_0x501a89(0x217),'children':[_0x5b6a2a(_0x501a89(0x29e),{'children':'🔗'}),'\x20',_0x6693d2['t'](_0x501a89(0x269))]}),_0x4bfa8a('div',{'className':'univer-space-y-4','children':[_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x2da),'children':[_0x5b6a2a('p',{'className':_0x501a89(0x28b),'children':_0x6693d2['t'](_0x501a89(0x301))}),_0x4bfa8a('div',{'className':'univer-space-y-2','children':[_0x5b6a2a(_0x501a89(0x208),{'className':_0x501a89(0x31e),'children':_0x6693d2['t'](_0x501a89(0x212))}),_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x21c),'children':[_0x4bfa8a('div',{'className':_0x501a89(0x245),'children':[_0x5b6a2a(_0x501a89(0x29e),{'className':_0x501a89(0x2e5),'children':'1'}),_0x6693d2['t']('mcpConfig.configStep1')]}),_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x245),'children':[_0x5b6a2a(_0x501a89(0x29e),{'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'}),_0x6693d2['t'](_0x501a89(0x29d))]}),_0x4bfa8a('div',{'className':_0x501a89(0x245),'children':[_0x5b6a2a(_0x501a89(0x29e),{'className':_0x501a89(0x2e5),'children':'3'}),_0x6693d2['t'](_0x501a89(0x234))]})]})]})]}),_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x244),'children':[_0x5b6a2a(_0x501a89(0x208),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x501a89(0x295)}),_0x5b6a2a('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x5b6a2a(_0x501a89(0x25e),{'className':_0x501a89(0x2b9),'children':JSON[_0x501a89(0x22e)]({'mcpServers':{'univer':{'url':_0x501a89(0x22a)+(_0x37d153||_0x501a89(0x2e2)),'type':_0x501a89(0x302),'headers':{'Authorization':_0x501a89(0x258)+(_0x22a134||_0x501a89(0x29c))}}}},null,0x2)})})]}),_0x4bfa8a(_0x501a89(0x208),{'className':'univer-space-y-3','children':[_0x5b6a2a(_0x501a89(0x208),{'className':_0x501a89(0x31e),'children':_0x6693d2['t']('mcpConfig.configParameters')}),_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x244),'children':[_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x2bd),'children':[_0x5b6a2a('div',{'className':_0x501a89(0x307)}),_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x268),'children':[_0x5b6a2a('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x501a89(0x2f0)}),_0x5b6a2a(_0x501a89(0x208),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x6693d2['t'](_0x501a89(0x284))})]})]}),_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x2bd),'children':[_0x5b6a2a(_0x501a89(0x208),{'className':_0x501a89(0x307)}),_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x268),'children':[_0x5b6a2a(_0x501a89(0x208),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x501a89(0x2ad)}),_0x5b6a2a('div',{'className':_0x501a89(0x1ef),'children':_0x6693d2['t'](_0x501a89(0x228))})]})]})]})]})]})]}),_0x5b6a2a(_0x52d264,{'onClick':_0xb7e2e3,'disabled':!_0x279118||_0xe62e76,'className':_0x501a89(0x2f5),'children':_0xe62e76?_0x4bfa8a(_0x501a89(0x29e),{'className':_0x501a89(0x245),'children':[_0x5b6a2a(_0x501a89(0x29e),{'children':'⟲'}),_0x6693d2['t']('mcpConfig.saving')]}):_0x4bfa8a(_0x501a89(0x29e),{'className':_0x501a89(0x245),'children':[_0x5b6a2a(le,{}),_0x6693d2['t'](_0x501a89(0x262))]})}),_0x5b6a2a(_0x501a89(0x208),{'className':_0x501a89(0x2c2),'children':_0x4bfa8a(_0x501a89(0x208),{'className':_0x501a89(0x2d4),'children':[_0x5b6a2a(_0x501a89(0x29e),{'className':_0x501a89(0x275),'children':'💡'}),_0x4bfa8a(_0x501a89(0x208),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x5b6a2a(_0x501a89(0x208),{'className':_0x501a89(0x222),'children':_0x501a89(0x259)}),_0x4bfa8a(_0x501a89(0x208),{'children':['•',_0x6693d2['t'](_0x501a89(0x299))]}),_0x4bfa8a(_0x501a89(0x208),{'children':['•',_0x6693d2['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x36d8ec(0x2fd),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x36d8ec(0x2ec)],tn=(_0x43663e,_0x3ca83c,_0x5b78e8,_0x5f3681)=>{for(var _0x5649a0=_0x5f3681>0x1?void 0x0:_0x5f3681?rn(_0x3ca83c,_0x5b78e8):_0x3ca83c,_0x457675=_0x43663e['length']-0x1,_0x44a328;_0x457675>=0x0;_0x457675--)(_0x44a328=_0x43663e[_0x457675])&&(_0x5649a0=_0x44a328(_0x5649a0)||_0x5649a0);return _0x5649a0;},d=(_0x1ae679,_0x3799d4)=>(_0x3c9723,_0x3edf1e)=>_0x3799d4(_0x3c9723,_0x3edf1e,_0x1ae679);const U='mcp.apiKey',L=_0x36d8ec(0x1f4);let I=class extends _0x239124{constructor(_0x59e83d,_0x4a801a,_0xd26248,_0x52159c,_0x58f9eb,_0x54cb09,_0x58f5fa,_0x4b77f6,_0x4f1cd1,_0x1e9752){const _0x4cba5b=_0x36d8ec;super(),x(this,_0x4cba5b(0x298),new _0x47d305(!0x1)),x(this,_0x4cba5b(0x20d),new _0x47d305({})),x(this,_0x4cba5b(0x2d9),new _0x47d305({})),x(this,_0x4cba5b(0x293),new _0x47d305('')),x(this,_0x4cba5b(0x2d3),async _0xad2eac=>{const _0x43949d=_0x4cba5b;var _0x29c502,_0x5e2cf8;this['_loading$']['next'](!0x0);try{const _0x40b5d9=await this[_0x43949d(0x2fb)](_0xad2eac);if(!_0x40b5d9[_0x43949d(0x235)]){this[_0x43949d(0x2e6)][_0x43949d(0x24a)]({'type':_0x306d8d['Error'],'content':_0x40b5d9['errorMessage']||this['_localeService']['t'](_0x43949d(0x242))});return;}_0xad2eac['apiKey']?await this[_0x43949d(0x26b)][_0x43949d(0x1e3)](U,_0xad2eac[_0x43949d(0x2e1)]['trim']()):await this[_0x43949d(0x26b)][_0x43949d(0x2a9)](U),this[_0x43949d(0x293)]['next'](((_0x29c502=_0xad2eac['apiKey'])==null?void 0x0:_0x29c502[_0x43949d(0x226)]())||''),this[_0x43949d(0x25a)][_0x43949d(0x2aa)]({'Authorization':_0x43949d(0x258)+((_0x5e2cf8=_0xad2eac['apiKey'])==null?void 0x0:_0x5e2cf8['trim']())}),this['_messageService'][_0x43949d(0x24a)]({'type':_0x306d8d['Success'],'content':this[_0x43949d(0x27c)]['t'](_0x43949d(0x1eb))}),setTimeout(()=>{const _0x1280ff=_0x43949d;this[_0x1280ff(0x1fb)][_0x1280ff(0x283)](L);},0x320);}catch(_0x1cdbf6){this[_0x43949d(0x250)][_0x43949d(0x2ce)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x1cdbf6),this['_messageService'][_0x43949d(0x24a)]({'type':_0x306d8d[_0x43949d(0x2b2)],'content':this[_0x43949d(0x27c)]['t'](_0x43949d(0x280))});}finally{this[_0x43949d(0x298)][_0x43949d(0x2c1)](!0x1);}}),(this[_0x4cba5b(0x27a)]=_0x59e83d,this[_0x4cba5b(0x32e)]=_0x4a801a,this['_configService']=_0xd26248,this[_0x4cba5b(0x26b)]=_0x52159c,this[_0x4cba5b(0x1fb)]=_0x58f9eb,this['_messageService']=_0x54cb09,this[_0x4cba5b(0x232)]=_0x58f5fa,this[_0x4cba5b(0x27c)]=_0x4b77f6,this[_0x4cba5b(0x250)]=_0x4f1cd1,this[_0x4cba5b(0x25a)]=_0x1e9752,this[_0x4cba5b(0x324)](),this[_0x4cba5b(0x236)](),this['_registerComponent']());}[_0x36d8ec(0x331)](){const _0x938d57=_0x36d8ec,_0x292395=this[_0x938d57(0x2d0)][_0x938d57(0x216)](y);_0x292395!=null&&_0x292395[_0x938d57(0x308)]&&this[_0x938d57(0x1fb)][_0x938d57(0x316)]({'id':L,'title':{'title':this[_0x938d57(0x27c)]['t'](_0x938d57(0x2ab))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5d093b=_0x938d57;this['_dialogService'][_0x5d093b(0x283)](L);}});}['getCurrentConfig'](){const _0x42a1f6=_0x36d8ec;return this[_0x42a1f6(0x20d)]['value'];}[_0x36d8ec(0x2fe)](){const _0x547a6a=_0x36d8ec;this[_0x547a6a(0x2a4)](this[_0x547a6a(0x232)][_0x547a6a(0x2e8)]('MCPConfigPanel',this[_0x547a6a(0x206)]()));}['_createConfigPanelComponent'](){const _0x4d8e01=_0x36d8ec;return _0x2efbbd(()=>{const _0x20bc70=_0x5512;var _0x1a1828,_0x3d030e,_0x1731f5;return _0x5b6a2a(nn,{'config':this[_0x20bc70(0x2d9)][_0x20bc70(0x201)],'mcpCoreConfig':this[_0x20bc70(0x20d)][_0x20bc70(0x201)],'currentApiKey$':this[_0x20bc70(0x293)],'onSave':this[_0x20bc70(0x2d3)],'loading':this['_loading$'][_0x20bc70(0x201)],'connectionStatus$':(_0x1a1828=this[_0x20bc70(0x25a)])==null?void 0x0:_0x1a1828[_0x20bc70(0x2bf)],'connectionError$':(_0x3d030e=this[_0x20bc70(0x25a)])==null?void 0x0:_0x3d030e[_0x20bc70(0x215)],'currentSessionId$':(_0x1731f5=this['_mcpConnectionController'])==null?void 0x0:_0x1731f5['sessionId$']});},this[_0x4d8e01(0x27a)]);}[_0x36d8ec(0x324)](){const _0x304fe8=_0x36d8ec;this[_0x304fe8(0x2a4)](this['_configService']['subscribeConfigValue$'](_0x1cba3b)[_0x304fe8(0x2eb)](_0x4a12f6=>{const _0xed50ec=_0x304fe8;this['_mcpCoreConfig$'][_0xed50ec(0x2c1)](_0x4a12f6||{});}));const _0x16e225=this['_configService'][_0x304fe8(0x216)](_0x1cba3b);this[_0x304fe8(0x20d)][_0x304fe8(0x2c1)](_0x16e225||{}),this[_0x304fe8(0x2a4)](this[_0x304fe8(0x2d0)]['subscribeConfigValue$'](y)[_0x304fe8(0x2eb)](_0x406992=>{const _0x3193d7=_0x304fe8;this[_0x3193d7(0x2d9)][_0x3193d7(0x2c1)](_0x406992||{});}));const _0x46d8f9=this['_configService'][_0x304fe8(0x216)](y);this[_0x304fe8(0x2d9)][_0x304fe8(0x2c1)](_0x46d8f9||{});}async['_loadStoredApiKey'](){const _0x3eaf29=_0x36d8ec,_0x36f246=this[_0x3eaf29(0x2d0)][_0x3eaf29(0x216)](y);if(!(_0x36f246!=null&&_0x36f246[_0x3eaf29(0x308)]))return;const _0x43c0ae=await this[_0x3eaf29(0x26b)][_0x3eaf29(0x2a6)](U);_0x43c0ae&&(this['_mcpConnectionController'][_0x3eaf29(0x2aa)]({'Authorization':_0x3eaf29(0x258)+_0x43c0ae}),this[_0x3eaf29(0x293)][_0x3eaf29(0x2c1)](_0x43c0ae));}async[_0x36d8ec(0x2fb)](_0x2eb17f){const _0x1a812f=_0x36d8ec;if(!_0x2eb17f[_0x1a812f(0x2e1)]||_0x2eb17f['apiKey'][_0x1a812f(0x226)]()[_0x1a812f(0x1fd)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1a812f(0x27c)]['t'](_0x1a812f(0x227))};if(_0x2eb17f[_0x1a812f(0x2e1)][_0x1a812f(0x226)]()[_0x1a812f(0x1fd)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x1a812f(0x2c6))};try{const _0xf43906=await this[_0x1a812f(0x27a)]['get'](_0x2865a1)['validateApiKey'](_0x2eb17f[_0x1a812f(0x2e1)][_0x1a812f(0x226)]());return _0xf43906[_0x1a812f(0x235)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xf43906[_0x1a812f(0x2ce)]||this[_0x1a812f(0x27c)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x245e1d){return console[_0x1a812f(0x30d)](_0x1a812f(0x1db),_0x245e1d),{'isValid':!0x0};}}};function _0x5512(_0x5ea566,_0x2e823f){const _0x182778=_0x1827();return _0x5512=function(_0x55120c,_0x39f742){_0x55120c=_0x55120c-0x1db;let _0x36e97c=_0x182778[_0x55120c];return _0x36e97c;},_0x5512(_0x5ea566,_0x2e823f);}I=tn([d(0x0,_0x2532da(_0xc4e8e4)),d(0x1,_0x16a405),d(0x2,_0x357bec),d(0x3,_0x3d4c57),d(0x4,_0x2f50d3),d(0x5,_0x2d4c69),d(0x6,_0x2532da(_0x1fe334)),d(0x7,_0x2532da(_0x816cf4)),d(0x8,_0x3d832a),d(0x9,_0x2532da(_0x2865a1))],I);const V={'id':_0x36d8ec(0x21a),'type':_0x4d0d6d[_0x36d8ec(0x2f3)],'handler':async(_0x1a199d,_0x2dcb9a)=>(_0x1a199d['get'](I)[_0x36d8ec(0x331)](),!0x0)};function pe(_0x2ec8d9,_0x3239a8){const _0x4d36c2=_0x36d8ec;switch(_0x2ec8d9){case _0x4826e7['DISCONNECTED']:return'mcpStatus.disconnected';case _0x4826e7[_0x4d36c2(0x272)]:return _0x4d36c2(0x230);case _0x4826e7[_0x4d36c2(0x2b4)]:return _0x4d36c2(0x2a5);case _0x4826e7[_0x4d36c2(0x25f)]:switch(_0x3239a8){case _0x5cf8ec[_0x4d36c2(0x207)]:return'mcpStatus.unauthorized';case _0x5cf8ec[_0x4d36c2(0x321)]:return _0x4d36c2(0x1ec);case _0x5cf8ec[_0x4d36c2(0x30c)]:return _0x4d36c2(0x23e);case _0x5cf8ec['MAX_RETRIES_EXCEEDED']:return _0x4d36c2(0x26a);default:return _0x4d36c2(0x2d5);}case _0x4826e7[_0x4d36c2(0x2b6)]:return'mcpStatus.retrying';default:return _0x4d36c2(0x23a);}}function on(_0x41db2d,_0x883c6c,_0x5722f4,_0x1a637b=!0x0){const _0x5bdcf0=_0x36d8ec,_0x25b7a6=pe(_0x41db2d,_0x883c6c),_0x19e072=_0x5722f4['t'](_0x25b7a6);return _0x1a637b?_0x41db2d===_0x4826e7[_0x5bdcf0(0x238)]&&_0x883c6c===_0x5cf8ec[_0x5bdcf0(0x207)]?_0x19e072+'\x20-\x20'+_0x5722f4['t']('mcpStatus.clickToConfigure'):_0x41db2d===_0x4826e7[_0x5bdcf0(0x2b4)]?''+_0x19e072:_0x41db2d===_0x4826e7['DISCONNECTED']||_0x41db2d===_0x4826e7['FAILED']?_0x19e072+_0x5bdcf0(0x313)+_0x5722f4['t'](_0x5bdcf0(0x21f)):_0x19e072:_0x19e072;}function sn(_0x15ac90){const _0x2a0fa2=_0x36d8ec;switch(_0x15ac90){case _0x4826e7[_0x2a0fa2(0x2b4)]:return _0x2a0fa2(0x2db);case _0x4826e7[_0x2a0fa2(0x272)]:case _0x4826e7[_0x2a0fa2(0x2b6)]:return _0x2a0fa2(0x24e);case _0x4826e7[_0x2a0fa2(0x25f)]:case _0x4826e7['DISCONNECTED']:return _0x2a0fa2(0x204);default:return _0x2a0fa2(0x2bc);}}function cn(_0x3f0c20){const _0x1ba542=_0x36d8ec,{status$:_0xc73f96,error$:_0x4e5e16,onConfigure:_0x471ea9,showClickable:_0x1988f1=!0x0}=_0x3f0c20,_0x232152=_0x141ee5(_0xc73f96,_0x4826e7[_0x1ba542(0x238)]),_0x181fbb=_0x141ee5(_0x4e5e16,_0x5cf8ec[_0x1ba542(0x309)]),_0x2fd0b2=_0x27af1c(_0x816cf4),_0x3ff5e8=_0x232152===_0x4826e7['CONNECTED'];_0x232152===_0x4826e7[_0x1ba542(0x272)]||_0x4826e7[_0x1ba542(0x2b6)];const _0x450b6f=_0x2fd0b2['t'](pe(_0x232152,_0x181fbb)),_0xfa78de=on(_0x232152,_0x181fbb,_0x2fd0b2,_0x1988f1),_0x5221be=sn(_0x232152),_0x680c16=_0x3ff5e8?_0x5b6a2a(ge,{}):_0x5b6a2a(de,{}),_0x445782=_0x50f2c2(()=>{_0x1988f1&&_0x471ea9&&_0x471ea9();},[_0x1988f1,_0x471ea9]);function _0x4e32ac(){const _0x3ba27e=_0x1ba542;return _0x4bfa8a(_0x3ba27e(0x208),{'className':_0x5ec172(_0x3ba27e(0x20b),_0x1988f1&&_0x471ea9&&_0x3ba27e(0x1de)),'role':_0x3ba27e(0x218),'onClick':_0x1988f1&&_0x471ea9?_0x445782:void 0x0,'children':[_0x5b6a2a(_0x3ba27e(0x208),{'className':_0x5ec172(_0x3ba27e(0x292),_0x5221be),'children':_0x680c16}),_0x5b6a2a(_0x3ba27e(0x208),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x450b6f})]});}return _0x5b6a2a(_0x53d38e,{'title':_0xfa78de,'placement':_0x1ba542(0x271),'children':_0x4e32ac()});}var an=Object[_0x36d8ec(0x2ec)],ln=(_0x49f5cd,_0x4cb386,_0x785fd8,_0x14fec4)=>{const _0x41beea=_0x36d8ec;for(var _0x47c172=_0x14fec4>0x1?void 0x0:_0x14fec4?an(_0x4cb386,_0x785fd8):_0x4cb386,_0x5b34f0=_0x49f5cd[_0x41beea(0x1fd)]-0x1,_0xa00fef;_0x5b34f0>=0x0;_0x5b34f0--)(_0xa00fef=_0x49f5cd[_0x5b34f0])&&(_0x47c172=_0xa00fef(_0x47c172)||_0x47c172);return _0x47c172;},M=(_0x1d0b49,_0xe1f171)=>(_0x354bb0,_0x3db764)=>_0xe1f171(_0x354bb0,_0x3db764,_0x1d0b49);let O=class extends _0x239124{constructor(_0x1aba09,_0xd0e607,_0x1d7711,_0x3a10b){const _0x4726f8=_0x36d8ec;super(),this[_0x4726f8(0x27a)]=_0x1aba09,this[_0x4726f8(0x294)]=_0xd0e607,this[_0x4726f8(0x32e)]=_0x1d7711,this[_0x4726f8(0x2d0)]=_0x3a10b,this['_initAutoConnect'](),this[_0x4726f8(0x257)]();}[_0x36d8ec(0x1ff)](){const _0x271b08=_0x36d8ec,_0x322442=this[_0x271b08(0x2d0)]['getConfig'](y);_0x322442!=null&&_0x322442[_0x271b08(0x308)]&&(this[_0x271b08(0x294)][_0x271b08(0x1e6)]=!0x1);}[_0x36d8ec(0x257)](){const _0x3c9b18=_0x36d8ec,_0x13d556=this[_0x3c9b18(0x2d0)]['getConfig'](y);(_0x13d556==null?void 0x0:_0x13d556[_0x3c9b18(0x319)])!==!0x1&&this[_0x3c9b18(0x2a4)](this[_0x3c9b18(0x32e)][_0x3c9b18(0x26d)](_0x24847c[_0x3c9b18(0x1dd)],()=>{const _0x21b606=_0x3c9b18;var _0x582ebe;return _0x2efbbd(un({'status$':this[_0x21b606(0x294)][_0x21b606(0x2bf)],'error$':this['_connectionController'][_0x21b606(0x215)],'onConfigure':()=>this[_0x21b606(0x2ba)](),'showClickable':(_0x582ebe=_0x13d556==null?void 0x0:_0x13d556['showDeveloperTools'])!=null?_0x582ebe:!0x1}),this['_injector']);}));}[_0x36d8ec(0x2ba)](){const _0xe334d5=_0x36d8ec;this['_injector'][_0xe334d5(0x2c0)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x2532da(_0xc4e8e4)),M(0x1,_0x2532da(_0x2865a1)),M(0x2,_0x16a405),M(0x3,_0x357bec)],O);function un(_0x372b7f){const {status$:_0x37f8d4,error$:_0x125bd7,onConfigure:_0x459560,showClickable:_0x1b60a2}=_0x372b7f;return function(){return _0x5b6a2a(cn,{'status$':_0x37f8d4,'error$':_0x125bd7,'onConfigure':_0x459560,'showClickable':_0x1b60a2});};}function vn(_0x5057ca){const _0x5f37ae=_0x36d8ec;return{'id':V['id'],'type':_0x202afb[_0x5f37ae(0x1f6)],'icon':_0x5f37ae(0x261),'title':_0x5f37ae(0x2ab),'tooltip':'mcpConfig.title'};}const dn={[_0xf02aa7[_0x36d8ec(0x31f)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x36d8ec(0x2ec)],pn=(_0x2739db,_0xdbd36a,_0x26db8d,_0x49ad18)=>{const _0x3258c8=_0x36d8ec;for(var _0x5cc3b1=_0x49ad18>0x1?void 0x0:_0x49ad18?gn(_0xdbd36a,_0x26db8d):_0xdbd36a,_0x4d2209=_0x2739db[_0x3258c8(0x1fd)]-0x1,_0x117361;_0x4d2209>=0x0;_0x4d2209--)(_0x117361=_0x2739db[_0x4d2209])&&(_0x5cc3b1=_0x117361(_0x5cc3b1)||_0x5cc3b1);return _0x5cc3b1;},re=(_0x13da04,_0x55fd4a)=>(_0x191d99,_0x3911f3)=>_0x55fd4a(_0x191d99,_0x3911f3,_0x13da04);let D=class extends _0x239124{constructor(_0x1196de,_0x687d5e){const _0x272e98=_0x36d8ec;super(),this['_commandService']=_0x1196de,this['_menuManagerService']=_0x687d5e,this['_initializeCommands'](),this[_0x272e98(0x32b)]();}['_initializeCommands'](){const _0x41e103=_0x36d8ec;[V][_0x41e103(0x223)](_0x5bd268=>{const _0x242f08=_0x41e103;this[_0x242f08(0x2a4)](this[_0x242f08(0x300)][_0x242f08(0x327)](_0x5bd268));});}[_0x36d8ec(0x32b)](){const _0x1db9eb=_0x36d8ec;this[_0x1db9eb(0x241)][_0x1db9eb(0x2d7)](dn);}};D=pn([re(0x0,_0x28bb98),re(0x1,_0x5a3b64)],D);const Mn={'mcpStatus':{'disconnected':_0x36d8ec(0x267),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x36d8ec(0x276),'retrying':'MCP\x20Retrying...','unknown':_0x36d8ec(0x2f8),'unauthorized':_0x36d8ec(0x23c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x36d8ec(0x290),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x36d8ec(0x31c),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x36d8ec(0x295),'description':_0x36d8ec(0x28d),'apiKey':_0x36d8ec(0x243),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x36d8ec(0x317),'enableAuthHint':_0x36d8ec(0x2c5),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x36d8ec(0x28a),'configInstructions':_0x36d8ec(0x297),'configStepTitle':_0x36d8ec(0x1df),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x36d8ec(0x2cd),'configStep3':_0x36d8ec(0x25c),'sessionId':'Session\x20ID','sessionIdDescription':_0x36d8ec(0x320),'authorizationDescription':_0x36d8ec(0x2a0),'configParameters':_0x36d8ec(0x263),'maxRetries':'Max\x20Retries','save':_0x36d8ec(0x30b),'saving':_0x36d8ec(0x2e9),'note1':_0x36d8ec(0x2f4),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x36d8ec(0x22f),'configError':_0x36d8ec(0x20c),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x36d8ec(0x2d1),'univerAiLabel':_0x36d8ec(0x22d),'getStarted':_0x36d8ec(0x29a)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x36d8ec(0x27d)},'connectionStatus':{'disconnected':_0x36d8ec(0x289),'connecting':'Connecting...','connected':_0x36d8ec(0x203),'failed':_0x36d8ec(0x326),'retrying':_0x36d8ec(0x270)},'connectionError':{'unauthorized':_0x36d8ec(0x20a),'sessionOccupied':_0x36d8ec(0x31a),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x36d8ec(0x1f9)}}},An={'mcpStatus':{'disconnected':_0x36d8ec(0x2a1),'connecting':'MCP\x20连接中...','connected':_0x36d8ec(0x291),'failed':_0x36d8ec(0x28e),'retrying':_0x36d8ec(0x248),'unknown':_0x36d8ec(0x322),'unauthorized':_0x36d8ec(0x2d6),'sessionOccupied':_0x36d8ec(0x2be),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x36d8ec(0x278),'clickToConfigure':_0x36d8ec(0x24c)},'mcpConfig':{'title':_0x36d8ec(0x277),'description':_0x36d8ec(0x2d8),'apiKey':_0x36d8ec(0x2b0),'apiKeyPlaceholder':_0x36d8ec(0x2a7),'apiKeyHint':_0x36d8ec(0x315),'enableAuth':_0x36d8ec(0x2fc),'enableAuthHint':_0x36d8ec(0x303),'connectionInfo':_0x36d8ec(0x1e5),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x36d8ec(0x209),'configStepTitle':_0x36d8ec(0x1e4),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x36d8ec(0x30a),'configStep3':_0x36d8ec(0x1dc),'sessionId':_0x36d8ec(0x2bb),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x36d8ec(0x265),'configParameters':_0x36d8ec(0x2e4),'maxRetries':'最大重试次数','save':_0x36d8ec(0x254),'saving':_0x36d8ec(0x325),'note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x36d8ec(0x205),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x36d8ec(0x256),'univerAiLabel':_0x36d8ec(0x2e0),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x36d8ec(0x202),'apiKeyTooShort':_0x36d8ec(0x2cf),'invalidConfig':_0x36d8ec(0x2e7),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x36d8ec(0x251),'connecting':'连接中...','connected':_0x36d8ec(0x246),'failed':_0x36d8ec(0x312),'retrying':_0x36d8ec(0x1ee)},'connectionError':{'unauthorized':_0x36d8ec(0x1f8),'sessionOccupied':_0x36d8ec(0x2c4),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x36d8ec(0x2ae)}}};var fn=Object[_0x36d8ec(0x29f)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x4a09f0,_0x2b19be,_0x54d62f)=>_0x2b19be in _0x4a09f0?fn(_0x4a09f0,_0x2b19be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54d62f}):_0x4a09f0[_0x2b19be]=_0x54d62f,mn=(_0x2c95fa,_0x4beff5,_0xe8b44e,_0x280721)=>{const _0x910a3a=_0x36d8ec;for(var _0x1d203d=_0x280721>0x1?void 0x0:_0x280721?hn(_0x4beff5,_0xe8b44e):_0x4beff5,_0x562814=_0x2c95fa[_0x910a3a(0x1fd)]-0x1,_0x4b31b0;_0x562814>=0x0;_0x562814--)(_0x4b31b0=_0x2c95fa[_0x562814])&&(_0x1d203d=_0x4b31b0(_0x1d203d)||_0x1d203d);return _0x1d203d;},P=(_0x36d0e1,_0x3984dc)=>(_0x5baff4,_0x53ea3a)=>_0x3984dc(_0x5baff4,_0x53ea3a,_0x36d0e1),_n=(_0x5df0a9,_0x4a270b,_0x1fdc23)=>Cn(_0x5df0a9,_0x4a270b+'',_0x1fdc23);let j=class extends _0x1183c0{constructor(_0x3921e5=ie,_0x419f94,_0x3582b2,_0x48fe83,_0x1ae9c5,_0x29ba2c){const _0x2f5079=_0x36d8ec;super(),this[_0x2f5079(0x200)]=_0x3921e5,this[_0x2f5079(0x27a)]=_0x419f94,this[_0x2f5079(0x2d0)]=_0x3582b2,this[_0x2f5079(0x32e)]=_0x48fe83,this['_localStorageService']=_0x1ae9c5,this['_localeService']=_0x29ba2c;const {..._0x412501}=_0x267b1d({},ie,this['_config']);this[_0x2f5079(0x2d0)][_0x2f5079(0x2c9)](y,_0x412501);}async[_0x36d8ec(0x2f2)](){const _0x55b25a=_0x36d8ec,_0x26f95a=[[O],[I],[D]];this[_0x55b25a(0x27a)][_0x55b25a(0x2a2)](_0x29c1a6)||_0x26f95a[_0x55b25a(0x29b)]([_0x29c1a6,{'useClass':_0x31aeac}]),_0x26f95a[_0x55b25a(0x223)](_0x26d60e=>this[_0x55b25a(0x27a)][_0x55b25a(0x1f3)](_0x26d60e)),this['_injector'][_0x55b25a(0x2c0)](O),this[_0x55b25a(0x27a)][_0x55b25a(0x2c0)](I),this[_0x55b25a(0x27a)]['get'](D);}};_n(j,_0x36d8ec(0x266),_0x36d8ec(0x1f5)),j=mn([_0x58d8af(_0x2acee1),P(0x1,_0x2532da(_0xc4e8e4)),P(0x2,_0x357bec),P(0x3,_0x16a405),P(0x4,_0x3d4c57),P(0x5,_0x2532da(_0x816cf4))],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 _0x2b8f20=_0x4896;(function(_0x2f168b,_0x258788){const _0x1ec4aa=_0x4896,_0x9241e2=_0x2f168b();while(!![]){try{const _0x38f24b=parseInt(_0x1ec4aa(0x217))/0x1*(-parseInt(_0x1ec4aa(0x256))/0x2)+parseInt(_0x1ec4aa(0x207))/0x3*(parseInt(_0x1ec4aa(0x2c0))/0x4)+parseInt(_0x1ec4aa(0x1e2))/0x5*(parseInt(_0x1ec4aa(0x242))/0x6)+parseInt(_0x1ec4aa(0x2a9))/0x7+parseInt(_0x1ec4aa(0x278))/0x8+parseInt(_0x1ec4aa(0x1fd))/0x9*(parseInt(_0x1ec4aa(0x1c9))/0xa)+-parseInt(_0x1ec4aa(0x2dc))/0xb;if(_0x38f24b===_0x258788)break;else _0x9241e2['push'](_0x9241e2['shift']());}catch(_0x2147e3){_0x9241e2['push'](_0x9241e2['shift']());}}}(_0x4e65,0x9dce9));var Pe=Object[_0x2b8f20(0x2c1)],Ee=(_0x107182,_0x502fa6,_0x699f54)=>_0x502fa6 in _0x107182?Pe(_0x107182,_0x502fa6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x699f54}):_0x107182[_0x502fa6]=_0x699f54,x=(_0x5ad253,_0x542575,_0x4f65b7)=>Ee(_0x5ad253,typeof _0x542575!='symbol'?_0x542575+'':_0x542575,_0x4f65b7);import{LocaleService as _0x1d835f,Inject as _0x58c80d,Injector as _0x2546b0,IConfigService as _0x4d137a,ILocalStorageService as _0x45c2dd,ILogService as _0x184f37,Disposable as _0x1e0331,CommandType as _0x146173,ICommandService as _0x58be1a,DependentOn as _0x10d514,Plugin as _0x5e984e,merge as _0x1459bb}from'@univerjs/core';import{jsxs as _0x53bb15,jsx as _0x37f054}from'react/jsx-runtime';import{MCPConnectionStatus as _0x591102,MCPConnectionError as _0x35458a,MCPConnectionController as _0x1e59bd,MCP_PLUGIN_CONFIG_KEY as _0x39252b,UniverMCPPlugin as _0x58c68d}from'@univerjs-pro/mcp';import{clsx as _0x3105df,Input as _0x21c0ad,Button as _0x12977c,MessageType as _0x18e382,Tooltip as _0x3d1bb0}from'@univerjs/design';import{useDependency as _0x390b2b,useObservable as _0x5a3c3d,IUIPartsService as _0x5a1a96,IDialogService as _0x5ed754,IMessageService as _0x40918d,ComponentManager as _0x506d87,connectInjector as _0x5b63dd,BuiltInUIPart as _0x4d79c2,MenuItemType as _0x763cbf,RibbonStartGroup as _0x3b0987,IMenuManagerService as _0x2c60c1}from'@univerjs/ui';import{BehaviorSubject as _0x55559f}from'rxjs';import{useRef as _0x3bbd6a,createElement as _0x4a66fb,forwardRef as _0x71adb0,useState as _0x4fafa4,useCallback as _0x4578ea}from'react';import{ISocketService as _0x4e4ce0,WebSocketService as _0x31391d}from'@univerjs/network';function b({ref:_0x580b66,..._0x25ef87}){const _0x521f7f=_0x2b8f20,{icon:_0x278c1c,id:_0x1fe2f7,className:_0x48022e,extend:_0x19e7ae,..._0x65e7ff}=_0x25ef87,_0x22c76a=(_0x521f7f(0x24a)+_0x1fe2f7+'\x20'+(_0x48022e||''))[_0x521f7f(0x1cd)](),_0x172670=_0x3bbd6a('_'+We());return ae(_0x278c1c,''+_0x1fe2f7,{'defIds':_0x278c1c[_0x521f7f(0x1e0)],'idSuffix':_0x172670['current']},{'ref':_0x580b66,'className':_0x22c76a,..._0x65e7ff},_0x19e7ae);}function ae(_0x237b15,_0x5e3060,_0x3a841d,_0x2c8381,_0x3fa3e0){const _0x4d84e5=_0x2b8f20;return _0x4a66fb(_0x237b15[_0x4d84e5(0x1a9)],{'key':_0x5e3060,...Ye(_0x237b15,_0x3a841d,_0x3fa3e0),..._0x2c8381},(Ze(_0x237b15,_0x3a841d)[_0x4d84e5(0x2b3)]||[])[_0x4d84e5(0x2d2)]((_0x38a94f,_0x217385)=>ae(_0x38a94f,_0x5e3060+'-'+_0x237b15[_0x4d84e5(0x1a9)]+'-'+_0x217385,_0x3a841d,void 0x0,_0x3fa3e0)));}function Ye(_0x3105fb,_0x4b81ab,_0x1a8944){const _0x38374d=_0x2b8f20,_0x293daa={..._0x3105fb[_0x38374d(0x249)]};_0x1a8944!=null&&_0x1a8944['colorChannel1']&&_0x293daa[_0x38374d(0x2d0)]===_0x38374d(0x2bf)&&(_0x293daa[_0x38374d(0x2d0)]=_0x1a8944[_0x38374d(0x2bf)]),_0x3105fb[_0x38374d(0x1a9)]==='mask'&&_0x293daa['id']&&(_0x293daa['id']=_0x293daa['id']+_0x4b81ab[_0x38374d(0x23b)]),Object['entries'](_0x293daa)[_0x38374d(0x258)](([_0x13b248,_0x2300f8])=>{const _0x431aa3=_0x38374d;_0x13b248===_0x431aa3(0x22e)&&typeof _0x2300f8==_0x431aa3(0x22b)&&(_0x293daa[_0x13b248]=_0x2300f8[_0x431aa3(0x1cb)](/url\(#(.*)\)/,_0x431aa3(0x2ec)+_0x4b81ab[_0x431aa3(0x23b)]+')'));});const {defIds:_0x91bb45}=_0x4b81ab;return!_0x91bb45||_0x91bb45[_0x38374d(0x23f)]===0x0||(_0x3105fb[_0x38374d(0x1a9)]==='use'&&_0x293daa[_0x38374d(0x251)]&&(_0x293daa[_0x38374d(0x251)]=_0x293daa[_0x38374d(0x251)]+_0x4b81ab['idSuffix']),Object[_0x38374d(0x1b6)](_0x293daa)[_0x38374d(0x258)](([_0x2945f0,_0x4021cf])=>{const _0x12c828=_0x38374d;typeof _0x4021cf==_0x12c828(0x22b)&&(_0x293daa[_0x2945f0]=_0x4021cf[_0x12c828(0x1cb)](/url\(#(.*)\)/,_0x12c828(0x2ec)+_0x4b81ab['idSuffix']+')'));})),_0x293daa;}function Ze(_0x403275,_0x2b28d1){const _0x46d1a7=_0x2b8f20;var _0x1d608e;const {defIds:_0x2396cd}=_0x2b28d1;return!_0x2396cd||_0x2396cd[_0x46d1a7(0x23f)]===0x0?_0x403275:_0x403275['tag']===_0x46d1a7(0x264)&&((_0x1d608e=_0x403275[_0x46d1a7(0x2b3)])!=null&&_0x1d608e[_0x46d1a7(0x23f)])?{..._0x403275,'children':_0x403275[_0x46d1a7(0x2b3)][_0x46d1a7(0x2d2)](_0x29d79e=>typeof _0x29d79e['attrs']['id']==_0x46d1a7(0x22b)&&_0x2396cd&&_0x2396cd[_0x46d1a7(0x29a)](_0x29d79e[_0x46d1a7(0x249)]['id'])?{..._0x29d79e,'attrs':{..._0x29d79e[_0x46d1a7(0x249)],'id':_0x29d79e[_0x46d1a7(0x249)]['id']+_0x2b28d1['idSuffix']}}:_0x29d79e)}:_0x403275;}function We(){const _0x5cd22e=_0x2b8f20;return Math[_0x5cd22e(0x2e1)]()['toString'](0x24)[_0x5cd22e(0x224)](0x2,0x8);}b[_0x2b8f20(0x1ae)]=_0x2b8f20(0x2cc);const qe={'tag':_0x2b8f20(0x269),'attrs':{'xmlns':_0x2b8f20(0x252),'fill':_0x2b8f20(0x1d5),'viewBox':_0x2b8f20(0x1db),'width':_0x2b8f20(0x1df),'height':_0x2b8f20(0x1df)},'children':[{'tag':'path','attrs':{'fill':_0x2b8f20(0x1f0),'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':_0x2b8f20(0x271),'clipRule':_0x2b8f20(0x271)}}]},le=_0x71adb0(function(_0x6b8941,_0x364106){const _0x5dc184=_0x2b8f20;return _0x4a66fb(b,Object[_0x5dc184(0x23d)]({},_0x6b8941,{'id':'check-mark-icon','ref':_0x364106,'icon':qe}));});le[_0x2b8f20(0x1ae)]=_0x2b8f20(0x216);const Xe={'tag':_0x2b8f20(0x269),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2b8f20(0x1d5),'viewBox':_0x2b8f20(0x1db),'width':_0x2b8f20(0x1df),'height':_0x2b8f20(0x1df)},'children':[{'tag':_0x2b8f20(0x2d1),'attrs':{'fill':_0x2b8f20(0x1f0),'d':_0x2b8f20(0x2bc)}}]},ue=_0x71adb0(function(_0x543d9b,_0x3f2fde){const _0x18d9df=_0x2b8f20;return _0x4a66fb(b,Object[_0x18d9df(0x23d)]({},_0x543d9b,{'id':'close-icon','ref':_0x3f2fde,'icon':Xe}));});ue['displayName']='CloseIcon';const Je={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2b8f20(0x1d5),'viewBox':'0\x200\x2016\x2016','width':_0x2b8f20(0x1df),'height':_0x2b8f20(0x1df)},'children':[{'tag':'path','attrs':{'fill':_0x2b8f20(0x1f0),'d':_0x2b8f20(0x1af)}},{'tag':_0x2b8f20(0x2d1),'attrs':{'fill':_0x2b8f20(0x1f0),'d':_0x2b8f20(0x274)}},{'tag':_0x2b8f20(0x2d1),'attrs':{'fill':_0x2b8f20(0x1f0),'d':_0x2b8f20(0x1ff),'fillRule':'evenodd','clipRule':_0x2b8f20(0x271)}}]},ve=_0x71adb0(function(_0x5c4a54,_0x2b8fcd){const _0x4948a5=_0x2b8f20;return _0x4a66fb(b,Object[_0x4948a5(0x23d)]({},_0x5c4a54,{'id':_0x4948a5(0x1c7),'ref':_0x2b8fcd,'icon':Je}));});ve[_0x2b8f20(0x1ae)]=_0x2b8f20(0x1d4);const Qe={'tag':'svg','attrs':{'xmlns':_0x2b8f20(0x252),'fill':'none','viewBox':_0x2b8f20(0x1db),'width':_0x2b8f20(0x1df),'height':_0x2b8f20(0x1df)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2b8f20(0x2d1),'attrs':{'stroke':_0x2b8f20(0x1f0),'d':_0x2b8f20(0x1b4),'strokeLinecap':_0x2b8f20(0x22c),'strokeLinejoin':_0x2b8f20(0x22c),'strokeWidth':1.2}}]},{'tag':_0x2b8f20(0x264),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2b8f20(0x210)},'children':[{'tag':_0x2b8f20(0x2d1),'attrs':{'fill':_0x2b8f20(0x2c9),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2b8f20(0x210)]},de=_0x71adb0(function(_0x47c450,_0x40e2d4){const _0x47d393=_0x2b8f20;return _0x4a66fb(b,Object[_0x47d393(0x23d)]({},_0x47c450,{'id':_0x47d393(0x205),'ref':_0x40e2d4,'icon':Qe}));});de[_0x2b8f20(0x1ae)]=_0x2b8f20(0x1c1);const en={'tag':'svg','attrs':{'xmlns':_0x2b8f20(0x252),'fill':'none','viewBox':_0x2b8f20(0x2c7),'width':_0x2b8f20(0x1df),'height':_0x2b8f20(0x1df)},'children':[{'tag':'g','attrs':{'clipPath':_0x2b8f20(0x25b)},'children':[{'tag':'path','attrs':{'stroke':_0x2b8f20(0x1f0),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x2b8f20(0x22c),'strokeLinejoin':_0x2b8f20(0x22c),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2b8f20(0x27e),'attrs':{'id':_0x2b8f20(0x275)},'children':[{'tag':_0x2b8f20(0x2d1),'attrs':{'fill':_0x2b8f20(0x2c9),'d':'M0\x200H16V16H0z','transform':_0x2b8f20(0x2ca)}}]}]}],'defIds':[_0x2b8f20(0x275)]},ge=_0x71adb0(function(_0x3400f0,_0x289d6e){const _0x5db48a=_0x2b8f20;return _0x4a66fb(b,Object[_0x5db48a(0x23d)]({},_0x3400f0,{'id':_0x5db48a(0x1bc),'ref':_0x289d6e,'icon':en}));});ge[_0x2b8f20(0x1ae)]='OnLineIcon';function nn(_0x479f7c){const _0x249e10=_0x2b8f20;var _0x4693b6,_0x3a162d;const {mcpCoreConfig:_0x4d6bf9,onSave:_0x54dc6e,loading:_0x30dfdf=!0x1,config:_0x1849b7,connectionStatus$:_0x269292,connectionError$:_0x1a7765,currentApiKey$:_0x5d0c9d,currentSessionId$:_0x4c05be}=_0x479f7c,_0x498a1b=_0x390b2b(_0x1d835f),_0xd2070=_0x5a3c3d(_0x269292,_0x591102['DISCONNECTED']),_0x574ee=_0x5a3c3d(_0x1a7765,_0x35458a[_0x249e10(0x203)]),_0x1f211f=_0x5a3c3d(_0x4c05be,''),_0x5203b7=_0x5a3c3d(_0x5d0c9d,''),[_0x18a32,_0xa2058f]=_0x4fafa4(_0x5203b7||''),_0x14cade=!0x0,_0xb70d3c=_0x1849b7[_0x249e10(0x1a3)]&&_0x4d6bf9[_0x249e10(0x272)]&&(_0x4d6bf9[_0x249e10(0x272)]['includes'](_0x249e10(0x1a5))||_0x4d6bf9[_0x249e10(0x272)][_0x249e10(0x29a)]('univer.ai')),_0x456ea5=(_0x4693b6=_0x4d6bf9['mcpServerUrl'])==null?void 0x0:_0x4693b6[_0x249e10(0x29a)](_0x249e10(0x1a5)),_0x129cf9=(_0x3a162d=_0x4d6bf9['mcpServerUrl'])==null?void 0x0:_0x3a162d['includes'](_0x249e10(0x223)),_0x2e7674=_0x456ea5?'https://console.univer.plus':_0x249e10(0x234),_0x9687e7=_0x1849b7[_0x249e10(0x1a3)]&&(_0x456ea5||_0x129cf9),[_0x3f2b90,_0x427fb4]=_0x4fafa4(!_0x18a32[_0x249e10(0x1cd)]()),_0x629180=(_0x4cf55a,_0x4ebcb1)=>{const _0x2895f5=_0x249e10;if(_0x4ebcb1===_0x35458a[_0x2895f5(0x227)])return _0x2895f5(0x1a1);switch(_0x4cf55a){case _0x591102['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x591102[_0x2895f5(0x1ec)]:case _0x591102[_0x2895f5(0x2dd)]:return _0x2895f5(0x294);case _0x591102[_0x2895f5(0x1f8)]:return _0x2895f5(0x1a1);default:return _0x2895f5(0x2e8);}},_0x11f50b=(_0x569ff0,_0x38b035)=>{const _0x5c69e5=_0x249e10;if(_0x38b035===_0x35458a[_0x5c69e5(0x227)])return _0x5c69e5(0x1fe);switch(_0x569ff0){case _0x591102['CONNECTED']:return _0x5c69e5(0x1b5);case _0x591102[_0x5c69e5(0x1ec)]:case _0x591102[_0x5c69e5(0x2dd)]:return _0x5c69e5(0x21b);case _0x591102['FAILED']:return _0x5c69e5(0x1fe);default:return'univer-bg-gray-500';}},_0x20f9cf=_0xfd24b2=>{const _0x5c6c4e=_0x249e10;switch(_0xfd24b2){case _0x591102[_0x5c6c4e(0x262)]:return _0x498a1b['t'](_0x5c6c4e(0x214));case _0x591102['CONNECTING']:return _0x498a1b['t']('mcpConfig.connectionStatus.connecting');case _0x591102[_0x5c6c4e(0x1f8)]:return _0x498a1b['t']('mcpConfig.connectionStatus.failed');case _0x591102[_0x5c6c4e(0x2dd)]:return _0x498a1b['t'](_0x5c6c4e(0x2de));default:return _0x498a1b['t']('mcpConfig.connectionStatus.disconnected');}},_0x5a715d=_0x1032bd=>{const _0x583cc0=_0x249e10;switch(_0x1032bd){case _0x35458a[_0x583cc0(0x227)]:return _0x498a1b['t'](_0x583cc0(0x2c6));case _0x35458a[_0x583cc0(0x1c2)]:return _0x498a1b['t'](_0x583cc0(0x270));case _0x35458a[_0x583cc0(0x2bb)]:return _0x498a1b['t'](_0x583cc0(0x2e2));case _0x35458a[_0x583cc0(0x201)]:return _0x498a1b['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x57124f=_0x4578ea(()=>{const _0x2b2c7f=_0x249e10,_0x493045={..._0x4d6bf9,'apiKey':_0x18a32[_0x2b2c7f(0x1cd)](),'enableAuth':_0x14cade};_0x54dc6e(_0x493045);},[_0x4d6bf9,_0x18a32,_0x14cade,_0x54dc6e]),_0x5239fa=_0x18a32['trim']()['length']>0x0;return _0x53bb15(_0x249e10(0x2c8),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x37f054(_0x249e10(0x2c8),{'className':_0x249e10(0x1e7),'children':_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x204),'children':[_0x37f054('div',{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x37f054(_0x249e10(0x229),{'className':_0x249e10(0x21a),'children':'⚙'})}),_0x37f054(_0x249e10(0x2c8),{'children':_0x37f054('p',{'className':_0x249e10(0x2d6),'children':_0x498a1b['t']('mcpConfig.description')})})]})}),_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x2a1),'children':[_0x37f054(_0x249e10(0x2c8),{'className':_0x3105df('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x629180(_0xd2070,_0x574ee)),'children':_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x2ab),'children':[_0x37f054(_0x249e10(0x2c8),{'className':_0x3105df(_0x249e10(0x200),_0x11f50b(_0xd2070,_0x574ee))}),_0x37f054(_0x249e10(0x229),{'className':_0x249e10(0x24e),'children':_0x20f9cf(_0xd2070)})]})}),_0x574ee!==_0x35458a[_0x249e10(0x203)]&&(_0xd2070===_0x591102[_0x249e10(0x1f8)]||_0x574ee===_0x35458a[_0x249e10(0x227)])&&_0x37f054(_0x249e10(0x2c8),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x27a),'children':[_0x37f054(_0x249e10(0x229),{'className':_0x249e10(0x277),'children':'⚠️'}),_0x37f054('p',{'className':_0x249e10(0x233),'children':_0x5a715d(_0x574ee)})]})})]}),_0x37f054('div',{'className':_0x249e10(0x2e6),'children':_0x53bb15(_0x249e10(0x2c8),{'className':'univer-space-y-5','children':[_0x53bb15('div',{'className':'univer-space-y-2','children':[_0x53bb15('label',{'className':_0x249e10(0x225),'children':[_0x37f054(_0x249e10(0x229),{'children':'🔑'}),'\x20',_0x498a1b['t']('mcpConfig.apiKey'),_0x37f054(_0x249e10(0x229),{'className':_0x249e10(0x2b2),'children':'*'}),_0xb70d3c&&_0x37f054('a',{'className':_0x249e10(0x26f),'title':_0x498a1b['t'](_0x249e10(0x20f)),'role':_0x249e10(0x244),'onClick':()=>_0x427fb4(!0x0),'children':_0x37f054(ve,{})})]}),_0x37f054(_0x21c0ad,{'type':_0x249e10(0x1ab),'placeholder':_0x498a1b['t'](_0x249e10(0x221)),'value':_0x18a32,'disabled':_0x30dfdf,'autoComplete':_0x249e10(0x1dc),'onChange':_0xa2058f}),_0x37f054('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x498a1b['t'](_0x249e10(0x1ba))})]}),_0xb70d3c&&_0x3f2b90&&_0x53bb15('div',{'className':_0x249e10(0x1cc),'children':[_0x37f054('a',{'className':_0x249e10(0x1fa),'role':_0x249e10(0x244),'onClick':()=>_0x427fb4(!0x1),'children':_0x37f054(ue,{'className':'univer-size-4'})}),_0x53bb15('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x37f054('div',{'className':_0x249e10(0x1b3),'children':_0x37f054('span',{'className':_0x249e10(0x206),'children':'🚀'})}),_0x53bb15('div',{'className':'univer-flex-1','children':[_0x37f054('h4',{'className':_0x249e10(0x211),'children':_0x498a1b['t'](_0x249e10(0x20f))}),_0x37f054('p',{'className':_0x249e10(0x243),'children':_0x498a1b['t']('mcpConfig.apiApplyInfo.description')}),_0x37f054('div',{'className':_0x249e10(0x1a0),'children':_0x9687e7&&_0x53bb15('a',{'className':_0x249e10(0x222),'href':_0x2e7674,'target':_0x249e10(0x1e5),'rel':_0x249e10(0x299),'children':[_0x37f054('span',{'children':'🤖'}),_0x498a1b['t'](_0x249e10(0x20b)),_0x37f054(_0x249e10(0x229),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x53bb15(_0x249e10(0x2c8),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x498a1b['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x1849b7['showDeveloperTools']&&_0x53bb15('div',{'className':_0x249e10(0x298),'children':[_0x53bb15('h4',{'className':_0x249e10(0x296),'children':[_0x37f054(_0x249e10(0x229),{'children':'🔗'}),'\x20',_0x498a1b['t']('mcpConfig.connectionInfo')]}),_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x21f),'children':[_0x53bb15('div',{'className':_0x249e10(0x1e3),'children':[_0x37f054('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x498a1b['t'](_0x249e10(0x208))}),_0x53bb15('div',{'className':'univer-space-y-2','children':[_0x37f054('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x498a1b['t'](_0x249e10(0x1d6))}),_0x53bb15(_0x249e10(0x2c8),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x2ab),'children':[_0x37f054(_0x249e10(0x229),{'className':_0x249e10(0x237),'children':'1'}),_0x498a1b['t']('mcpConfig.configStep1')]}),_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x2ab),'children':[_0x37f054(_0x249e10(0x229),{'className':_0x249e10(0x237),'children':'2'}),_0x498a1b['t'](_0x249e10(0x1f7))]}),_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x2ab),'children':[_0x37f054(_0x249e10(0x229),{'className':_0x249e10(0x237),'children':'3'}),_0x498a1b['t'](_0x249e10(0x24f))]})]})]})]}),_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x253),'children':[_0x37f054(_0x249e10(0x2c8),{'className':_0x249e10(0x213),'children':'MCP\x20Configuration'}),_0x37f054(_0x249e10(0x2c8),{'className':_0x249e10(0x247),'children':_0x37f054(_0x249e10(0x290),{'className':_0x249e10(0x248),'children':JSON[_0x249e10(0x1de)]({'mcpServers':{'univer':{'url':_0x249e10(0x286)+(_0x1f211f||_0x249e10(0x2a0)),'type':_0x249e10(0x235),'headers':{'Authorization':_0x249e10(0x1e4)+(_0x18a32||_0x249e10(0x292))}}}},null,0x2)})})]}),_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x1e3),'children':[_0x37f054(_0x249e10(0x2c8),{'className':_0x249e10(0x213),'children':_0x498a1b['t'](_0x249e10(0x27c))}),_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x253),'children':[_0x53bb15('div',{'className':_0x249e10(0x218),'children':[_0x37f054(_0x249e10(0x2c8),{'className':_0x249e10(0x2cd)}),_0x53bb15('div',{'className':_0x249e10(0x287),'children':[_0x37f054(_0x249e10(0x2c8),{'className':_0x249e10(0x2ea),'children':_0x249e10(0x2d4)}),_0x37f054('div',{'className':_0x249e10(0x254),'children':_0x498a1b['t'](_0x249e10(0x1f1))})]})]}),_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x218),'children':[_0x37f054(_0x249e10(0x2c8),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x53bb15('div',{'className':_0x249e10(0x287),'children':[_0x37f054(_0x249e10(0x2c8),{'className':_0x249e10(0x2ea),'children':_0x249e10(0x236)}),_0x37f054(_0x249e10(0x2c8),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x498a1b['t'](_0x249e10(0x2bd))})]})]})]})]})]})]}),_0x37f054(_0x12977c,{'onClick':_0x57124f,'disabled':!_0x5239fa||_0x30dfdf,'className':_0x249e10(0x29c),'children':_0x30dfdf?_0x53bb15(_0x249e10(0x229),{'className':_0x249e10(0x2ab),'children':[_0x37f054(_0x249e10(0x229),{'children':'⟲'}),_0x498a1b['t'](_0x249e10(0x209))]}):_0x53bb15(_0x249e10(0x229),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x37f054(le,{}),_0x498a1b['t'](_0x249e10(0x24c))]})}),_0x37f054(_0x249e10(0x2c8),{'className':_0x249e10(0x2a7),'children':_0x53bb15(_0x249e10(0x2c8),{'className':_0x249e10(0x2cb),'children':[_0x37f054(_0x249e10(0x229),{'className':_0x249e10(0x288),'children':'💡'}),_0x53bb15(_0x249e10(0x2c8),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x37f054(_0x249e10(0x2c8),{'className':'univer-font-medium','children':_0x249e10(0x240)}),_0x53bb15('div',{'children':['•',_0x498a1b['t'](_0x249e10(0x28f))]}),_0x53bb15(_0x249e10(0x2c8),{'children':['•',_0x498a1b['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x2b8f20(0x1c0),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x2b8f20(0x21c)],tn=(_0x19ed38,_0x4f101f,_0x1aeaa4,_0x53088d)=>{const _0x497b0=_0x2b8f20;for(var _0xbadf1=_0x53088d>0x1?void 0x0:_0x53088d?rn(_0x4f101f,_0x1aeaa4):_0x4f101f,_0x308805=_0x19ed38[_0x497b0(0x23f)]-0x1,_0x108bfa;_0x308805>=0x0;_0x308805--)(_0x108bfa=_0x19ed38[_0x308805])&&(_0xbadf1=_0x108bfa(_0xbadf1)||_0xbadf1);return _0xbadf1;},d=(_0x538524,_0x48a67d)=>(_0x554d9c,_0xe26db2)=>_0x48a67d(_0x554d9c,_0xe26db2,_0x538524);const U=_0x2b8f20(0x28b),L=_0x2b8f20(0x268);let I=class extends _0x1e0331{constructor(_0x45e238,_0x4b1cb1,_0x37dddd,_0x597ad0,_0x223b9b,_0xd97ff1,_0x2dc626,_0x2d6385,_0xbeefd1,_0x19664b){const _0x71d015=_0x2b8f20;super(),x(this,'_loading$',new _0x55559f(!0x1)),x(this,_0x71d015(0x1f4),new _0x55559f({})),x(this,_0x71d015(0x26b),new _0x55559f({})),x(this,_0x71d015(0x25c),new _0x55559f('')),x(this,'_handleConfigSave',async _0xf5d4a8=>{const _0xdebf41=_0x71d015;var _0x198da8,_0x5267b5;this[_0xdebf41(0x26c)][_0xdebf41(0x2b4)](!0x0);try{const _0x21e935=await this[_0xdebf41(0x1b1)](_0xf5d4a8);if(!_0x21e935['isValid']){this[_0xdebf41(0x22f)]['show']({'type':_0x18e382[_0xdebf41(0x283)],'content':_0x21e935['errorMessage']||this[_0xdebf41(0x215)]['t'](_0xdebf41(0x1ee))});return;}_0xf5d4a8[_0xdebf41(0x257)]?await this[_0xdebf41(0x2ad)][_0xdebf41(0x1e6)](U,_0xf5d4a8[_0xdebf41(0x257)][_0xdebf41(0x1cd)]()):await this[_0xdebf41(0x2ad)][_0xdebf41(0x1e1)](U),this[_0xdebf41(0x25c)][_0xdebf41(0x2b4)](((_0x198da8=_0xf5d4a8['apiKey'])==null?void 0x0:_0x198da8['trim']())||''),this['_mcpConnectionController'][_0xdebf41(0x239)]({'Authorization':_0xdebf41(0x1e4)+((_0x5267b5=_0xf5d4a8[_0xdebf41(0x257)])==null?void 0x0:_0x5267b5[_0xdebf41(0x1cd)]())}),this[_0xdebf41(0x22f)][_0xdebf41(0x1e9)]({'type':_0x18e382['Success'],'content':this[_0xdebf41(0x215)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x278002=_0xdebf41;this[_0x278002(0x2d3)]['close'](L);},0x320);}catch(_0x1728fa){this[_0xdebf41(0x2ba)][_0xdebf41(0x261)](_0xdebf41(0x266),_0x1728fa),this[_0xdebf41(0x22f)][_0xdebf41(0x1e9)]({'type':_0x18e382['Error'],'content':this[_0xdebf41(0x215)]['t'](_0xdebf41(0x285))});}finally{this['_loading$'][_0xdebf41(0x2b4)](!0x1);}}),(this[_0x71d015(0x1fb)]=_0x45e238,this['_uiPartsService']=_0x4b1cb1,this['_configService']=_0x37dddd,this['_localStorageService']=_0x597ad0,this[_0x71d015(0x2d3)]=_0x223b9b,this[_0x71d015(0x22f)]=_0xd97ff1,this['_componentManager']=_0x2dc626,this['_localeService']=_0x2d6385,this[_0x71d015(0x2ba)]=_0xbeefd1,this['_mcpConnectionController']=_0x19664b,this[_0x71d015(0x2b0)](),this[_0x71d015(0x1c4)](),this[_0x71d015(0x265)]());}[_0x2b8f20(0x284)](){const _0x2d8c4d=_0x2b8f20,_0x2dad3b=this[_0x2d8c4d(0x2c4)][_0x2d8c4d(0x21d)](y);_0x2dad3b!=null&&_0x2dad3b[_0x2d8c4d(0x1a3)]&&this[_0x2d8c4d(0x2d3)][_0x2d8c4d(0x2c2)]({'id':L,'title':{'title':this[_0x2d8c4d(0x215)]['t'](_0x2d8c4d(0x1ca))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x39a348=_0x2d8c4d;this[_0x39a348(0x2d3)][_0x39a348(0x2d8)](L);}});}[_0x2b8f20(0x1d9)](){const _0x18b127=_0x2b8f20;return this[_0x18b127(0x1f4)]['value'];}['_registerComponent'](){const _0x344643=_0x2b8f20;this['disposeWithMe'](this[_0x344643(0x20e)][_0x344643(0x2d9)]('MCPConfigPanel',this['_createConfigPanelComponent']()));}[_0x2b8f20(0x2c5)](){const _0x42f3fd=_0x2b8f20;return _0x5b63dd(()=>{const _0x574acf=_0x4896;var _0x15b8bd,_0x3a0b12,_0xd430e2;return _0x37f054(nn,{'config':this['_config$'][_0x574acf(0x1b2)],'mcpCoreConfig':this[_0x574acf(0x1f4)][_0x574acf(0x1b2)],'currentApiKey$':this[_0x574acf(0x25c)],'onSave':this['_handleConfigSave'],'loading':this[_0x574acf(0x26c)][_0x574acf(0x1b2)],'connectionStatus$':(_0x15b8bd=this[_0x574acf(0x1dd)])==null?void 0x0:_0x15b8bd[_0x574acf(0x289)],'connectionError$':(_0x3a0b12=this[_0x574acf(0x1dd)])==null?void 0x0:_0x3a0b12['connectionError$'],'currentSessionId$':(_0xd430e2=this[_0x574acf(0x1dd)])==null?void 0x0:_0xd430e2['sessionId$']});},this[_0x42f3fd(0x1fb)]);}['_initConfigSync'](){const _0x1b314e=_0x2b8f20;this[_0x1b314e(0x276)](this[_0x1b314e(0x2c4)][_0x1b314e(0x2cf)](_0x39252b)['subscribe'](_0x4a6207=>{const _0xdf9b2e=_0x1b314e;this[_0xdf9b2e(0x1f4)]['next'](_0x4a6207||{});}));const _0xfddc8a=this['_configService'][_0x1b314e(0x21d)](_0x39252b);this[_0x1b314e(0x1f4)][_0x1b314e(0x2b4)](_0xfddc8a||{}),this[_0x1b314e(0x276)](this[_0x1b314e(0x2c4)]['subscribeConfigValue$'](y)[_0x1b314e(0x27d)](_0xc645d5=>{const _0x5678d5=_0x1b314e;this[_0x5678d5(0x26b)][_0x5678d5(0x2b4)](_0xc645d5||{});}));const _0x3bf184=this['_configService'][_0x1b314e(0x21d)](y);this['_config$']['next'](_0x3bf184||{});}async['_loadStoredApiKey'](){const _0x3eb573=_0x2b8f20,_0x432dc4=this[_0x3eb573(0x2c4)][_0x3eb573(0x21d)](y);if(!(_0x432dc4!=null&&_0x432dc4['showDeveloperTools']))return;const _0x6b4648=await this['_localStorageService'][_0x3eb573(0x1c8)](U);_0x6b4648&&(this[_0x3eb573(0x1dd)][_0x3eb573(0x239)]({'Authorization':_0x3eb573(0x1e4)+_0x6b4648}),this['_apiKey$']['next'](_0x6b4648));}async['_validateConfig'](_0xee9ee3){const _0x34c061=_0x2b8f20;if(!_0xee9ee3[_0x34c061(0x257)]||_0xee9ee3['apiKey'][_0x34c061(0x1cd)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x34c061(0x215)]['t'](_0x34c061(0x27f))};if(_0xee9ee3['apiKey']['trim']()[_0x34c061(0x23f)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x34c061(0x215)]['t'](_0x34c061(0x267))};try{const _0x361609=await this[_0x34c061(0x1fb)][_0x34c061(0x1ea)](_0x1e59bd)[_0x34c061(0x25e)](_0xee9ee3[_0x34c061(0x257)][_0x34c061(0x1cd)]());return _0x361609[_0x34c061(0x1d3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x361609['error']||this[_0x34c061(0x215)]['t'](_0x34c061(0x24d))};}catch(_0x56cb54){return console[_0x34c061(0x241)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x56cb54),{'isValid':!0x0};}}};I=tn([d(0x0,_0x58c80d(_0x2546b0)),d(0x1,_0x5a1a96),d(0x2,_0x4d137a),d(0x3,_0x45c2dd),d(0x4,_0x5ed754),d(0x5,_0x40918d),d(0x6,_0x58c80d(_0x506d87)),d(0x7,_0x58c80d(_0x1d835f)),d(0x8,_0x184f37),d(0x9,_0x58c80d(_0x1e59bd))],I);function _0x4896(_0x234481,_0x3fcd10){const _0x4e6504=_0x4e65();return _0x4896=function(_0x48962c,_0x82ad06){_0x48962c=_0x48962c-0x1a0;let _0x58d9a=_0x4e6504[_0x48962c];return _0x58d9a;},_0x4896(_0x234481,_0x3fcd10);}const V={'id':'mcp-ui.command.openConfigPanel','type':_0x146173[_0x2b8f20(0x1f6)],'handler':async(_0x59ebdf,_0x144089)=>(_0x59ebdf[_0x2b8f20(0x1ea)](I)[_0x2b8f20(0x284)](),!0x0)};function pe(_0x4a7603,_0x26e983){const _0x439c3b=_0x2b8f20;switch(_0x4a7603){case _0x591102[_0x439c3b(0x24b)]:return _0x439c3b(0x29b);case _0x591102[_0x439c3b(0x1ec)]:return _0x439c3b(0x219);case _0x591102[_0x439c3b(0x262)]:return'mcpStatus.connected';case _0x591102[_0x439c3b(0x1f8)]:switch(_0x26e983){case _0x35458a[_0x439c3b(0x227)]:return'mcpStatus.unauthorized';case _0x35458a[_0x439c3b(0x1c2)]:return _0x439c3b(0x20c);case _0x35458a[_0x439c3b(0x2bb)]:return'mcpStatus.networkError';case _0x35458a[_0x439c3b(0x201)]:return'mcpStatus.maxRetriesExceeded';default:return _0x439c3b(0x1ef);}case _0x591102['RETRYING']:return _0x439c3b(0x246);default:return _0x439c3b(0x1d8);}}function on(_0x3cbadc,_0x11255b,_0x20fbc4,_0x47e9db=!0x0){const _0x1a4bda=_0x2b8f20,_0x1a5315=pe(_0x3cbadc,_0x11255b),_0x4c7368=_0x20fbc4['t'](_0x1a5315);return _0x47e9db?_0x3cbadc===_0x591102[_0x1a4bda(0x24b)]&&_0x11255b===_0x35458a[_0x1a4bda(0x227)]?_0x4c7368+_0x1a4bda(0x2e7)+_0x20fbc4['t'](_0x1a4bda(0x1ce)):_0x3cbadc===_0x591102['CONNECTED']?''+_0x4c7368:_0x3cbadc===_0x591102['DISCONNECTED']||_0x3cbadc===_0x591102[_0x1a4bda(0x1f8)]?_0x4c7368+'\x20-\x20'+_0x20fbc4['t'](_0x1a4bda(0x2e0)):_0x4c7368:_0x4c7368;}function sn(_0xf9febd){const _0x2c5198=_0x2b8f20;switch(_0xf9febd){case _0x591102['CONNECTED']:return _0x2c5198(0x1c6);case _0x591102[_0x2c5198(0x1ec)]:case _0x591102[_0x2c5198(0x2dd)]:return _0x2c5198(0x28e);case _0x591102[_0x2c5198(0x1f8)]:case _0x591102[_0x2c5198(0x24b)]:return _0x2c5198(0x2b2);default:return'univer-text-gray-500';}}function cn(_0x482069){const _0xb20e0=_0x2b8f20,{status$:_0x123c0f,error$:_0x131c7e,onConfigure:_0x217d30,showClickable:_0x4144b0=!0x0}=_0x482069,_0x5e7a0e=_0x5a3c3d(_0x123c0f,_0x591102[_0xb20e0(0x24b)]),_0x3f0885=_0x5a3c3d(_0x131c7e,_0x35458a[_0xb20e0(0x203)]),_0x51e2b5=_0x390b2b(_0x1d835f),_0x4981ed=_0x5e7a0e===_0x591102[_0xb20e0(0x262)];_0x5e7a0e===_0x591102[_0xb20e0(0x1ec)]||_0x591102[_0xb20e0(0x2dd)];const _0x27a6d3=_0x51e2b5['t'](pe(_0x5e7a0e,_0x3f0885)),_0x50096d=on(_0x5e7a0e,_0x3f0885,_0x51e2b5,_0x4144b0),_0x3e32a9=sn(_0x5e7a0e),_0xb9a38f=_0x4981ed?_0x37f054(ge,{}):_0x37f054(de,{}),_0x4cbf37=_0x4578ea(()=>{_0x4144b0&&_0x217d30&&_0x217d30();},[_0x4144b0,_0x217d30]);function _0x3c8497(){const _0x4afd9b=_0xb20e0;return _0x53bb15(_0x4afd9b(0x2c8),{'className':_0x3105df(_0x4afd9b(0x29f),_0x4144b0&&_0x217d30&&_0x4afd9b(0x21e)),'role':_0x4afd9b(0x244),'onClick':_0x4144b0&&_0x217d30?_0x4cbf37:void 0x0,'children':[_0x37f054(_0x4afd9b(0x2c8),{'className':_0x3105df(_0x4afd9b(0x28a),_0x3e32a9),'children':_0xb9a38f}),_0x37f054('div',{'className':_0x4afd9b(0x2da),'children':_0x27a6d3})]});}return _0x37f054(_0x3d1bb0,{'title':_0x50096d,'placement':_0xb20e0(0x2d5),'children':_0x3c8497()});}var an=Object[_0x2b8f20(0x21c)],ln=(_0xc9bb5,_0x1c0ba8,_0x75e902,_0x86abd7)=>{const _0x1c6f9c=_0x2b8f20;for(var _0x4933fc=_0x86abd7>0x1?void 0x0:_0x86abd7?an(_0x1c0ba8,_0x75e902):_0x1c0ba8,_0x2b9d11=_0xc9bb5[_0x1c6f9c(0x23f)]-0x1,_0x181cfc;_0x2b9d11>=0x0;_0x2b9d11--)(_0x181cfc=_0xc9bb5[_0x2b9d11])&&(_0x4933fc=_0x181cfc(_0x4933fc)||_0x4933fc);return _0x4933fc;},M=(_0x1a13c9,_0x593b03)=>(_0x17d8b9,_0x592b2a)=>_0x593b03(_0x17d8b9,_0x592b2a,_0x1a13c9);let O=class extends _0x1e0331{constructor(_0x5a7de8,_0x25d049,_0x242c81,_0x5f2ed6){const _0x59a28e=_0x2b8f20;super(),this[_0x59a28e(0x1fb)]=_0x5a7de8,this[_0x59a28e(0x23c)]=_0x25d049,this[_0x59a28e(0x2b6)]=_0x242c81,this[_0x59a28e(0x2c4)]=_0x5f2ed6,this[_0x59a28e(0x22d)](),this[_0x59a28e(0x23a)]();}['_initAutoConnect'](){const _0x5e6bf5=_0x2b8f20,_0xa068af=this['_configService'][_0x5e6bf5(0x21d)](y);_0xa068af!=null&&_0xa068af[_0x5e6bf5(0x1a3)]&&(this[_0x5e6bf5(0x23c)]['enableAutoConnect']=!0x1);}[_0x2b8f20(0x23a)](){const _0x19c0b1=_0x2b8f20,_0x2231ad=this[_0x19c0b1(0x2c4)][_0x19c0b1(0x21d)](y);(_0x2231ad==null?void 0x0:_0x2231ad[_0x19c0b1(0x212)])!==!0x1&&this['disposeWithMe'](this[_0x19c0b1(0x2b6)][_0x19c0b1(0x2e9)](_0x4d79c2[_0x19c0b1(0x20d)],()=>{const _0x4a16d8=_0x19c0b1;var _0x44d1f1;return _0x5b63dd(un({'status$':this['_connectionController'][_0x4a16d8(0x289)],'error$':this[_0x4a16d8(0x23c)][_0x4a16d8(0x2b8)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x44d1f1=_0x2231ad==null?void 0x0:_0x2231ad[_0x4a16d8(0x1a3)])!=null?_0x44d1f1:!0x1}),this[_0x4a16d8(0x1fb)]);}));}[_0x2b8f20(0x29e)](){const _0xf7d602=_0x2b8f20;this[_0xf7d602(0x1fb)][_0xf7d602(0x1ea)](I)[_0xf7d602(0x284)]();}};O=ln([M(0x0,_0x58c80d(_0x2546b0)),M(0x1,_0x58c80d(_0x1e59bd)),M(0x2,_0x5a1a96),M(0x3,_0x4d137a)],O);function un(_0x46de30){const {status$:_0x3db35a,error$:_0x4450ba,onConfigure:_0x55eab9,showClickable:_0x118a09}=_0x46de30;return function(){return _0x37f054(cn,{'status$':_0x3db35a,'error$':_0x4450ba,'onConfigure':_0x55eab9,'showClickable':_0x118a09});};}function vn(_0x3bc103){const _0x9f13f1=_0x2b8f20;return{'id':V['id'],'type':_0x763cbf[_0x9f13f1(0x1a6)],'icon':_0x9f13f1(0x228),'title':_0x9f13f1(0x1ca),'tooltip':_0x9f13f1(0x1ca)};}const dn={[_0x3b0987[_0x2b8f20(0x27b)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x2b8f20(0x21c)],pn=(_0x116735,_0x5e3be3,_0x584ff1,_0x1e83ed)=>{for(var _0x3093fb=_0x1e83ed>0x1?void 0x0:_0x1e83ed?gn(_0x5e3be3,_0x584ff1):_0x5e3be3,_0x3dc214=_0x116735['length']-0x1,_0x3972cc;_0x3dc214>=0x0;_0x3dc214--)(_0x3972cc=_0x116735[_0x3dc214])&&(_0x3093fb=_0x3972cc(_0x3093fb)||_0x3093fb);return _0x3093fb;},re=(_0x2084c9,_0x41ccad)=>(_0x20dadd,_0x19dcf9)=>_0x41ccad(_0x20dadd,_0x19dcf9,_0x2084c9);let D=class extends _0x1e0331{constructor(_0xb867bf,_0x5ba968){const _0x2e00f3=_0x2b8f20;super(),this[_0x2e00f3(0x26e)]=_0xb867bf,this[_0x2e00f3(0x2e5)]=_0x5ba968,this[_0x2e00f3(0x28c)](),this[_0x2e00f3(0x2b7)]();}[_0x2b8f20(0x28c)](){const _0xfeddb8=_0x2b8f20;[V][_0xfeddb8(0x258)](_0x479675=>{const _0x1ac438=_0xfeddb8;this['disposeWithMe'](this[_0x1ac438(0x26e)][_0x1ac438(0x2af)](_0x479675));});}[_0x2b8f20(0x2b7)](){const _0x464697=_0x2b8f20;this[_0x464697(0x2e5)][_0x464697(0x1b0)](dn);}};D=pn([re(0x0,_0x58be1a),re(0x1,_0x2c60c1)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x2b8f20(0x2a8),'failed':_0x2b8f20(0x263),'retrying':_0x2b8f20(0x2a5),'unknown':_0x2b8f20(0x2d7),'unauthorized':_0x2b8f20(0x2e4),'sessionOccupied':_0x2b8f20(0x259),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2b8f20(0x1b9),'clickToConnect':_0x2b8f20(0x280),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2b8f20(0x2b9),'description':_0x2b8f20(0x20a),'apiKey':_0x2b8f20(0x1bf),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2b8f20(0x291),'enableAuth':_0x2b8f20(0x1c3),'enableAuthHint':_0x2b8f20(0x1be),'connectionInfo':_0x2b8f20(0x1d1),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2b8f20(0x2eb),'configStep1':_0x2b8f20(0x1ac),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2b8f20(0x1bd),'sessionId':_0x2b8f20(0x295),'sessionIdDescription':_0x2b8f20(0x1bb),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2b8f20(0x238),'maxRetries':_0x2b8f20(0x1f3),'save':_0x2b8f20(0x26d),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2b8f20(0x2c3),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x2b8f20(0x1ad),'getStarted':_0x2b8f20(0x2a6)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2b8f20(0x232),'invalidConfig':_0x2b8f20(0x1b7),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2b8f20(0x29d),'connecting':_0x2b8f20(0x2be),'connected':_0x2b8f20(0x1b8),'failed':_0x2b8f20(0x2a3),'retrying':_0x2b8f20(0x2ce)},'connectionError':{'unauthorized':_0x2b8f20(0x26a),'sessionOccupied':_0x2b8f20(0x226),'networkError':_0x2b8f20(0x220),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':_0x2b8f20(0x1c5),'connecting':_0x2b8f20(0x1a2),'connected':_0x2b8f20(0x1e8),'failed':_0x2b8f20(0x1f2),'retrying':_0x2b8f20(0x28d),'unknown':_0x2b8f20(0x1ed),'unauthorized':_0x2b8f20(0x1fc),'sessionOccupied':_0x2b8f20(0x23e),'networkError':_0x2b8f20(0x2a4),'maxRetriesExceeded':_0x2b8f20(0x1aa),'clickToConnect':_0x2b8f20(0x1f9),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x2b8f20(0x2ae),'apiKeyPlaceholder':_0x2b8f20(0x293),'apiKeyHint':_0x2b8f20(0x231),'enableAuth':_0x2b8f20(0x297),'enableAuthHint':_0x2b8f20(0x1f5),'connectionInfo':_0x2b8f20(0x2a2),'mcpClientConfig':_0x2b8f20(0x2a2),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x2b8f20(0x2b1),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x2b8f20(0x260),'configStep3':_0x2b8f20(0x22a),'sessionId':'会话ID','sessionIdDescription':_0x2b8f20(0x1a7),'authorizationDescription':_0x2b8f20(0x1eb),'configParameters':_0x2b8f20(0x202),'maxRetries':_0x2b8f20(0x2ed),'save':_0x2b8f20(0x279),'saving':_0x2b8f20(0x282),'note1':'配置更改将立即生效','note2':_0x2b8f20(0x25d),'configSaved':_0x2b8f20(0x2df),'configError':'配置保存失败','apiApplyInfo':{'title':_0x2b8f20(0x1a4),'description':_0x2b8f20(0x2aa),'univerAiLabel':_0x2b8f20(0x1d2),'getStarted':_0x2b8f20(0x230)},'validation':{'apiKeyRequired':_0x2b8f20(0x255),'apiKeyTooShort':_0x2b8f20(0x273),'invalidConfig':_0x2b8f20(0x2b5),'invalidApiKey':_0x2b8f20(0x1d7)},'connectionStatus':{'disconnected':_0x2b8f20(0x25a),'connecting':_0x2b8f20(0x2db),'connected':'已连接','failed':_0x2b8f20(0x281),'retrying':_0x2b8f20(0x245)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x2b8f20(0x1a8)}}};function _0x4e65(){const _0x3f2769=['您的\x20API\x20密钥安全存储在本地存储中','validateApiKey','setConfig','将配置添加到您的\x20MCP\x20客户端设置文件中','error','CONNECTED','MCP\x20Connection\x20Failed','defs','_registerComponent','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.validation.apiKeyTooShort','mcp-config-dialog','svg','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_config$','_loading$','Save\x20Configuration','_commandService','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.connectionError.sessionOccupied','evenodd','mcpServerUrl','API\x20密钥长度至少需要\x2010\x20位','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','on-line-icon_clip0_910_349','disposeWithMe','univer-shrink-0\x20univer-text-red-500','799096ZTbwFw','保存配置','univer-flex\x20univer-items-start\x20univer-gap-2','OTHERS','mcpConfig.configParameters','subscribe','clipPath','mcpConfig.validation.apiKeyRequired','Click\x20to\x20connect\x20MCP','连接失败','保存中...','Error','showConfigPanel','mcpConfig.configError','https://mcp.univer.ai/mcp/?univer_session_id=','univer-min-w-0\x20univer-flex-1','univer-shrink-0\x20univer-text-blue-500','connectionStatus$','univer-mr-2\x20univer-flex\x20univer-text-xl','mcp.apiKey','_initializeCommands','MCP\x20重连中...','univer-text-yellow-500','mcpConfig.note1','pre','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','<API_KEY>','请输入您的\x20API\x20密钥','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Session\x20ID','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','启用身份验证','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','noopener\x20noreferrer','includes','mcpStatus.disconnected','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','Disconnected','_handleConfigure','univer-flex\x20univer-items-center','<SESSION_ID>','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCP\x20客户端配置','Connection\x20Failed','MCP:\x20网络错误','MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP\x20Connected','1640891dnClOD','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-flex\x20univer-items-center\x20univer-gap-2','onStarting','_localStorageService','API\x20密钥','registerCommand','_initConfigSync','配置步骤:','univer-text-red-500','children','next','配置无效','_uiPartsService','_initializeMenus','connectionError$','MCP\x20Configuration','_logService','NETWORK_ERROR','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','mcpConfig.authorizationDescription','Connecting...','colorChannel1','2583676fBgNEi','defineProperty','open','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_configService','_createConfigPanelComponent','mcpConfig.connectionError.unauthorized','0\x200\x2017\x2016','div','white','translate(.97)','univer-flex\x20univer-gap-3','UniverIcon','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Retrying...','subscribeConfigValue$','fill','path','map','_dialogService','univer_session_id:','bottom','univer-text-sm\x20univer-text-gray-500','MCP\x20Unknown\x20Status','close','register','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','连接中...','9173912bXtBPZ','RETRYING','mcpConfig.connectionStatus.retrying','配置保存成功','mcpStatus.clickToConnect','random','mcpConfig.connectionError.networkError','MCP_UI_PLUGIN','MCP:\x20Unauthorized','_menuManagerService','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','\x20-\x20','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','registerComponent','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Configuration\x20Steps:','url(#$1','最大重试次数','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20连接中...','showDeveloperTools','什么是\x20API\x20密钥?','univer.plus','BUTTON','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','超出最大重试次数,请稍后再试','tag','MCP:\x20超出最大重试次数','text','Copy\x20the\x20JSON\x20configuration\x20below','Univer\x20AI\x20Console','displayName','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','mergeMenu','_validateConfig','value','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','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','univer-bg-green-500','entries','Invalid\x20configuration','Connected','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.apiKeyHint','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','on-line-icon','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key','mcp-ui.config','OffLineIcon','SESSION_ID_OCCUPIED','Enable\x20Authentication','_loadStoredApiKey','MCP\x20已断开','univer-text-green-500','help-icon','getItem','10nKsXkd','mcpConfig.title','replace','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','trim','mcpStatus.clickToConfigure','_config','has','MCP\x20Client\x20Configuration','Univer\x20AI\x20控制台','isValid','HelpIcon','none','mcpConfig.configStepTitle','API\x20密钥无效,请检查密钥是否正确','mcpStatus.unknown','getCurrentConfig','push','0\x200\x2016\x2016','off','_mcpConnectionController','stringify','1em','defIds','removeItem','27905quoAOF','univer-space-y-3','Bearer\x20','_blank','setItem','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP\x20已连接','show','get','带有\x20Bearer\x20前缀的\x20API\x20密钥。','CONNECTING','MCP\x20状态未知','mcpConfig.validation.invalidConfig','mcpStatus.failed','currentColor','mcpConfig.sessionIdDescription','MCP\x20连接失败','Max\x20Retries','_mcpCoreConfig$','启用身份验证以获得安全连接','COMMAND','mcpConfig.configStep2','FAILED','点击连接\x20MCP','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','_injector','MCP:\x20未授权','8071443HFYaNG','univer-bg-red-500','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-size-2\x20univer-rounded-full','MAX_RETRIES_EXCEEDED','配置参数:','NONE','univer-flex\x20univer-items-center\x20univer-gap-3','off-line-icon','univer-text-blue-600','3XBqBQc','mcpConfig.configInstructions','mcpConfig.saving','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.apiApplyInfo.univerAiLabel','mcpStatus.sessionOccupied','HEADER_MENU','_componentManager','mcpConfig.apiApplyInfo.title','off-line-icon_clip0_910_343','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','showStatus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionStatus.connected','_localeService','CheckMarkIcon','63016hflvak','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.connecting','univer-text-white','univer-bg-blue-500','getOwnPropertyDescriptor','getConfig','\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-space-y-4','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.apiKeyPlaceholder','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','univer.ai','substring','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','UNAUTHORIZED','MenuIcon','span','重启您的\x20MCP\x20客户端以使配置生效','string','round','_initAutoConnect','mask','_messageService','几秒钟内获取您的\x20API\x20密钥','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','https://console.univer.ai','http','Authorization:','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','Configuration\x20Parameters:','__setCustomHeaders','_initStatusComponent','idSuffix','_connectionController','assign','MCP:\x20会话\x20ID\x20已被占用','length','Configuration\x20Notes:','warn','522mYvyep','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','button','重连中...','mcpStatus.retrying','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','attrs','univerjs-icon\x20univerjs-icon-','DISCONNECTED','mcpConfig.save','mcpConfig.validation.invalidApiKey','univer-text-sm\x20univer-font-medium','mcpConfig.configStep3','add','xlink:href','http://www.w3.org/2000/svg','univer-space-y-2','univer-text-xs\x20univer-text-gray-500','API\x20密钥不能为空','28XTWLjV','apiKey','forEach','MCP:\x20Session\x20ID\x20Occupied','未连接','url(#on-line-icon_clip0_910_349)','_apiKey$'];_0x4e65=function(){return _0x3f2769;};return _0x4e65();}var fn=Object[_0x2b8f20(0x2c1)],hn=Object[_0x2b8f20(0x21c)],Cn=(_0x45c9bc,_0x38d7e6,_0x14b112)=>_0x38d7e6 in _0x45c9bc?fn(_0x45c9bc,_0x38d7e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14b112}):_0x45c9bc[_0x38d7e6]=_0x14b112,mn=(_0x2f8c6b,_0x581f29,_0x59ab2f,_0x5d36f3)=>{for(var _0x3b1549=_0x5d36f3>0x1?void 0x0:_0x5d36f3?hn(_0x581f29,_0x59ab2f):_0x581f29,_0x3872b9=_0x2f8c6b['length']-0x1,_0x14154e;_0x3872b9>=0x0;_0x3872b9--)(_0x14154e=_0x2f8c6b[_0x3872b9])&&(_0x3b1549=_0x14154e(_0x3b1549)||_0x3b1549);return _0x3b1549;},P=(_0x73064,_0x7dd874)=>(_0x2b6531,_0x2c5191)=>_0x7dd874(_0x2b6531,_0x2c5191,_0x73064),_n=(_0x42e486,_0x57f84e,_0x25b2cc)=>Cn(_0x42e486,_0x57f84e+'',_0x25b2cc);let j=class extends _0x5e984e{constructor(_0x2216f2=ie,_0x5e75ea,_0x2966c0,_0x3b51e8,_0x23c7d8,_0x595b31){const _0xf4eebe=_0x2b8f20;super(),this[_0xf4eebe(0x1cf)]=_0x2216f2,this[_0xf4eebe(0x1fb)]=_0x5e75ea,this['_configService']=_0x2966c0,this[_0xf4eebe(0x2b6)]=_0x3b51e8,this[_0xf4eebe(0x2ad)]=_0x23c7d8,this[_0xf4eebe(0x215)]=_0x595b31;const {..._0x4b7882}=_0x1459bb({},ie,this['_config']);this[_0xf4eebe(0x2c4)][_0xf4eebe(0x25f)](y,_0x4b7882);}async[_0x2b8f20(0x2ac)](){const _0x3d44e7=_0x2b8f20,_0x570900=[[O],[I],[D]];this[_0x3d44e7(0x1fb)][_0x3d44e7(0x1d0)](_0x4e4ce0)||_0x570900[_0x3d44e7(0x1da)]([_0x4e4ce0,{'useClass':_0x31391d}]),_0x570900[_0x3d44e7(0x258)](_0x291a76=>this[_0x3d44e7(0x1fb)][_0x3d44e7(0x250)](_0x291a76)),this[_0x3d44e7(0x1fb)][_0x3d44e7(0x1ea)](O),this[_0x3d44e7(0x1fb)][_0x3d44e7(0x1ea)](I),this[_0x3d44e7(0x1fb)][_0x3d44e7(0x1ea)](D);}};_n(j,'pluginName',_0x2b8f20(0x2e3)),j=mn([_0x10d514(_0x58c68d),P(0x1,_0x58c80d(_0x2546b0)),P(0x2,_0x4d137a),P(0x3,_0x5a1a96),P(0x4,_0x45c2dd),P(0x5,_0x58c80d(_0x1d835f))],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 _0x350004=_0x7d05;function _0x7d05(_0x1f2881,_0xf65733){const _0x174aac=_0x174a();return _0x7d05=function(_0x7d05ca,_0x417ee8){_0x7d05ca=_0x7d05ca-0x15b;let _0x39bd98=_0x174aac[_0x7d05ca];return _0x39bd98;},_0x7d05(_0x1f2881,_0xf65733);}(function(_0x26afa5,_0x4b4713){const _0x815619=_0x7d05,_0x57fb70=_0x26afa5();while(!![]){try{const _0x3110aa=parseInt(_0x815619(0x16c))/0x1+parseInt(_0x815619(0x17b))/0x2+parseInt(_0x815619(0x17e))/0x3+-parseInt(_0x815619(0x184))/0x4*(parseInt(_0x815619(0x167))/0x5)+-parseInt(_0x815619(0x162))/0x6+-parseInt(_0x815619(0x15b))/0x7*(parseInt(_0x815619(0x17c))/0x8)+parseInt(_0x815619(0x181))/0x9;if(_0x3110aa===_0x4b4713)break;else _0x57fb70['push'](_0x57fb70['shift']());}catch(_0x53ada4){_0x57fb70['push'](_0x57fb70['shift']());}}}(_0x174a,0x1ca67));function _0x174a(){const _0x3f8d8a=['MCP\x20Configuration','API\x20Key','Saving...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','3283aoUTvD','MCP\x20Client\x20Configuration','MCP\x20Connected','Max\x20Retries','Configuration\x20Steps:','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\x20is\x20stored\x20securely\x20in\x20local\x20storage','608328QcHJsL','API\x20key\x20with\x20Bearer\x20prefix.','Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication','538940WOEerS','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','83106dUTYMm','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','What\x20is\x20API\x20Key?','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Parameters:','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','416548JbEFRg','2080LwkaXS','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','539496OdpyeZ','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','765387jWHAul','Save\x20Configuration','Session\x20ID','8ggbJsc'];_0x174a=function(){return _0x3f8d8a;};return _0x174a();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x350004(0x18a),'connected':_0x350004(0x15d),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x350004(0x16a),'sessionOccupied':_0x350004(0x174),'networkError':_0x350004(0x168),'maxRetriesExceeded':_0x350004(0x16d),'clickToConnect':_0x350004(0x17f),'clickToConfigure':_0x350004(0x16f)},'mcpConfig':{'title':_0x350004(0x185),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x350004(0x186),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x350004(0x175),'enableAuth':_0x350004(0x166),'enableAuthHint':_0x350004(0x170),'connectionInfo':_0x350004(0x15c),'mcpClientConfig':_0x350004(0x15c),'configInstructions':_0x350004(0x17a),'configStepTitle':_0x350004(0x15f),'configStep1':_0x350004(0x169),'configStep2':_0x350004(0x179),'configStep3':_0x350004(0x188),'sessionId':_0x350004(0x183),'sessionIdDescription':_0x350004(0x160),'authorizationDescription':_0x350004(0x163),'configParameters':_0x350004(0x176),'maxRetries':_0x350004(0x15e),'save':_0x350004(0x182),'saving':_0x350004(0x187),'note1':_0x350004(0x17d),'note2':_0x350004(0x161),'configSaved':_0x350004(0x172),'configError':_0x350004(0x189),'apiApplyInfo':{'title':_0x350004(0x173),'description':_0x350004(0x180),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x350004(0x165)},'validation':{'apiKeyRequired':_0x350004(0x171),'apiKeyTooShort':_0x350004(0x16e),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x350004(0x164),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0x350004(0x177)},'connectionError':{'unauthorized':_0x350004(0x178),'sessionOccupied':_0x350004(0x16b),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ const _0x32a9c6=_0x410b;function _0x5e68(){const _0x48805d=['API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','134222oATgVe','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','27KyxQGp','MCP:\x20Unauthorized','1423752NadnlX','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','Connected','MCP:\x20Network\x20Error','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1161155sxltwW','Univer\x20AI\x20Console','Configuration\x20saved\x20successfully','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connecting...','Connecting...','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Save\x20Configuration','1429704AQArXu','Connection\x20Failed','MCP\x20Retrying...','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','Max\x20Retries','33uopNfl','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1663928GIrfcG','698535EUuQZg','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Client\x20Configuration','2349193aigSal','Copy\x20the\x20JSON\x20configuration\x20below','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Disconnected'];_0x5e68=function(){return _0x48805d;};return _0x5e68();}function _0x410b(_0x457b7c,_0x2bdec1){const _0x5e68e1=_0x5e68();return _0x410b=function(_0x410b9b,_0x41f3dc){_0x410b9b=_0x410b9b-0xcc;let _0x1f1be5=_0x5e68e1[_0x410b9b];return _0x1f1be5;},_0x410b(_0x457b7c,_0x2bdec1);}(function(_0x43efa6,_0x3c76b5){const _0x5023ea=_0x410b,_0x9927e5=_0x43efa6();while(!![]){try{const _0x2e48a5=parseInt(_0x5023ea(0xe4))/0x1+parseInt(_0x5023ea(0xec))/0x2*(-parseInt(_0x5023ea(0xe1))/0x3)+-parseInt(_0x5023ea(0xe3))/0x4+parseInt(_0x5023ea(0xfa))/0x5+-parseInt(_0x5023ea(0xf1))/0x6+parseInt(_0x5023ea(0xe7))/0x7+parseInt(_0x5023ea(0xd9))/0x8*(parseInt(_0x5023ea(0xef))/0x9);if(_0x2e48a5===_0x3c76b5)break;else _0x9927e5['push'](_0x9927e5['shift']());}catch(_0x33066d){_0x9927e5['push'](_0x9927e5['shift']());}}}(_0x5e68,0x64581));const e={'mcpStatus':{'disconnected':_0x32a9c6(0xce),'connecting':_0x32a9c6(0xd4),'connected':'MCP\x20Connected','failed':_0x32a9c6(0xdf),'retrying':_0x32a9c6(0xdb),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x32a9c6(0xf0),'sessionOccupied':_0x32a9c6(0xcd),'networkError':_0x32a9c6(0xf6),'maxRetriesExceeded':_0x32a9c6(0xee),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x32a9c6(0xde)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x32a9c6(0xd0),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x32a9c6(0xe5),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x32a9c6(0xd3),'connectionInfo':_0x32a9c6(0xe6),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x32a9c6(0xf7),'configStepTitle':_0x32a9c6(0xdc),'configStep1':_0x32a9c6(0xe8),'configStep2':_0x32a9c6(0xed),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x32a9c6(0xf4),'sessionIdDescription':_0x32a9c6(0xcf),'authorizationDescription':_0x32a9c6(0xdd),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x32a9c6(0xe0),'save':_0x32a9c6(0xd8),'saving':'Saving...','note1':_0x32a9c6(0xf3),'note2':_0x32a9c6(0xe2),'configSaved':_0x32a9c6(0xcc),'configError':_0x32a9c6(0xd2),'apiApplyInfo':{'title':_0x32a9c6(0xf2),'description':_0x32a9c6(0xeb),'univerAiLabel':_0x32a9c6(0xfb),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x32a9c6(0xd6),'invalidApiKey':_0x32a9c6(0xf8)},'connectionStatus':{'disconnected':_0x32a9c6(0xea),'connecting':_0x32a9c6(0xd5),'connected':_0x32a9c6(0xf5),'failed':_0x32a9c6(0xda),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x32a9c6(0xd1),'sessionOccupied':_0x32a9c6(0xe9),'networkError':_0x32a9c6(0xd7),'maxRetriesExceeded':_0x32a9c6(0xf9)}}},n=e;export{n as default};