@univerjs-pro/mcp-ui 0.15.4 → 0.15.5
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.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4667ec=_0x1747;function _0x1747(_0x55e49b,_0x2508bc){_0x55e49b=_0x55e49b-0x115;const _0x511362=_0x5113();let _0x1747be=_0x511362[_0x55e49b];return _0x1747be;}(function(_0x21c25f,_0x2826f6){const _0x40cae4=_0x1747,_0x4af06f=_0x21c25f();while(!![]){try{const _0xf1efcf=parseInt(_0x40cae4(0x132))/0x1*(-parseInt(_0x40cae4(0x11d))/0x2)+-parseInt(_0x40cae4(0x128))/0x3*(parseInt(_0x40cae4(0x12e))/0x4)+-parseInt(_0x40cae4(0x12f))/0x5*(-parseInt(_0x40cae4(0x125))/0x6)+-parseInt(_0x40cae4(0x14a))/0x7+parseInt(_0x40cae4(0x144))/0x8*(-parseInt(_0x40cae4(0x119))/0x9)+parseInt(_0x40cae4(0x13e))/0xa*(-parseInt(_0x40cae4(0x13f))/0xb)+-parseInt(_0x40cae4(0x117))/0xc*(-parseInt(_0x40cae4(0x135))/0xd);if(_0xf1efcf===_0x2826f6)break;else _0x4af06f['push'](_0x4af06f['shift']());}catch(_0x49f2ef){_0x4af06f['push'](_0x4af06f['shift']());}}}(_0x5113,0x40e75));function _0x5113(){const _0x2a3790=['6ehNqbs','MCP\x20재시도\x20중...','설정\x20단계:','유효하지\x20않은\x20설정','최대\x20재시도\x20횟수','세션\x20ID','853288kBYusI','2125925AAdCXu','API\x20키란\x20무엇인가요?','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','2FavmvT','인증\x20활성화','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','4143061ogoUTV','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','설정\x20저장\x20실패','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','보안\x20연결을\x20위해\x20인증\x20활성화','API\x20키를\x20입력하세요','MCP\x20연결\x20중...','설정\x20매개변수:','1020yclOBR','42328OeJnSS','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','클릭하여\x20MCP\x20연결','MCP\x20연결\x20실패','MCP:\x20최대\x20재시도\x20횟수\x20초과','16YsyXcE','재시도\x20중...','연결\x20끊김','연결\x20중...','저장\x20중...','MCP\x20클라이언트\x20설정','745479VBqxoA','클릭하여\x20MCP\x20설정','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','36XWKhEf','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','69147CPHVCW','MCP:\x20인증되지\x20않음','연결됨','MCP:\x20세션\x20ID\x20사용\x20중','174428FzqpDW','Bearer\x20접두사가\x20있는\x20API\x20키.','API\x20키는\x20필수입니다','MCP\x20연결됨','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','API\x20키','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','6HViKjI','MCP\x20설정','exports'];_0x5113=function(){return _0x2a3790;};return _0x5113();}const e={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':_0x4667ec(0x13c),'connected':_0x4667ec(0x120),'failed':_0x4667ec(0x142),'retrying':_0x4667ec(0x129),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x4667ec(0x11a),'sessionOccupied':_0x4667ec(0x11c),'networkError':'MCP:\x20네트워크\x20오류','maxRetriesExceeded':_0x4667ec(0x143),'clickToConnect':_0x4667ec(0x141),'clickToConfigure':_0x4667ec(0x115)},'mcpConfig':{'title':_0x4667ec(0x126),'description':_0x4667ec(0x118),'apiKey':_0x4667ec(0x122),'apiKeyPlaceholder':_0x4667ec(0x13b),'apiKeyHint':_0x4667ec(0x116),'enableAuth':_0x4667ec(0x133),'enableAuthHint':_0x4667ec(0x13a),'connectionInfo':_0x4667ec(0x149),'mcpClientConfig':_0x4667ec(0x149),'configInstructions':_0x4667ec(0x124),'configStepTitle':_0x4667ec(0x12a),'configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0x4667ec(0x134),'configStep3':_0x4667ec(0x139),'sessionId':_0x4667ec(0x12d),'sessionIdDescription':_0x4667ec(0x121),'authorizationDescription':_0x4667ec(0x11e),'configParameters':_0x4667ec(0x13d),'maxRetries':_0x4667ec(0x12c),'save':'설정\x20저장','saving':_0x4667ec(0x148),'note1':_0x4667ec(0x131),'note2':_0x4667ec(0x136),'configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x4667ec(0x137),'apiApplyInfo':{'title':_0x4667ec(0x130),'description':_0x4667ec(0x140),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':_0x4667ec(0x11f),'apiKeyTooShort':_0x4667ec(0x123),'invalidConfig':_0x4667ec(0x12b),'invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x4667ec(0x146),'connecting':_0x4667ec(0x147),'connected':_0x4667ec(0x11b),'failed':'연결\x20실패','retrying':_0x4667ec(0x145)},'connectionError':{'unauthorized':_0x4667ec(0x138),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};module[_0x4667ec(0x127)]=e;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x26db83=_0x5032;function _0x5032(_0x2e4804,_0x19fa7f){_0x2e4804=_0x2e4804-0x1f1;const _0x2d428e=_0x2d42();let _0x5032a4=_0x2d428e[_0x2e4804];return _0x5032a4;}(function(_0x24fef0,_0x2cc8f1){const _0x594330=_0x5032,_0x545689=_0x24fef0();while(!![]){try{const _0x385fa0=parseInt(_0x594330(0x227))/0x1+-parseInt(_0x594330(0x222))/0x2*(-parseInt(_0x594330(0x1f4))/0x3)+-parseInt(_0x594330(0x220))/0x4*(-parseInt(_0x594330(0x20a))/0x5)+parseInt(_0x594330(0x1f6))/0x6*(-parseInt(_0x594330(0x214))/0x7)+parseInt(_0x594330(0x228))/0x8*(parseInt(_0x594330(0x205))/0x9)+-parseInt(_0x594330(0x221))/0xa*(parseInt(_0x594330(0x200))/0xb)+-parseInt(_0x594330(0x1f8))/0xc*(parseInt(_0x594330(0x206))/0xd);if(_0x385fa0===_0x2cc8f1)break;else _0x545689['push'](_0x545689['shift']());}catch(_0x2e64bd){_0x545689['push'](_0x545689['shift']());}}}(_0x2d42,0x9e667));const e={'mcpStatus':{'disconnected':_0x26db83(0x207),'connecting':_0x26db83(0x1fe),'connected':_0x26db83(0x217),'failed':_0x26db83(0x212),'retrying':_0x26db83(0x224),'unknown':_0x26db83(0x1fa),'unauthorized':_0x26db83(0x20e),'sessionOccupied':_0x26db83(0x21b),'networkError':_0x26db83(0x21e),'maxRetriesExceeded':_0x26db83(0x225),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x26db83(0x1f7)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x26db83(0x21d),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x26db83(0x21c),'apiKeyHint':_0x26db83(0x1f1),'enableAuth':_0x26db83(0x219),'enableAuthHint':_0x26db83(0x218),'connectionInfo':_0x26db83(0x216),'mcpClientConfig':_0x26db83(0x216),'configInstructions':_0x26db83(0x203),'configStepTitle':_0x26db83(0x21a),'configStep1':_0x26db83(0x202),'configStep2':_0x26db83(0x204),'configStep3':_0x26db83(0x201),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x26db83(0x211),'configParameters':_0x26db83(0x1f3),'maxRetries':_0x26db83(0x213),'save':_0x26db83(0x20d),'saving':_0x26db83(0x1fb),'note1':_0x26db83(0x223),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x26db83(0x215),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x26db83(0x209),'description':_0x26db83(0x1f2),'univerAiLabel':_0x26db83(0x20c),'getStarted':_0x26db83(0x210)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x26db83(0x20f),'invalidConfig':_0x26db83(0x20b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x26db83(0x21f),'connecting':'Connecting...','connected':_0x26db83(0x1fd),'failed':'Connection\x20Failed','retrying':_0x26db83(0x1f9)},'connectionError':{'unauthorized':_0x26db83(0x208),'sessionOccupied':_0x26db83(0x1fc),'networkError':_0x26db83(0x226),'maxRetriesExceeded':_0x26db83(0x1ff)}}},n=e;function _0x2d42(){const _0x4b968f=['Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','135qBUtjR','169RHLmgL','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','844685JqJhID','Invalid\x20configuration','Univer\x20AI\x20Console','Save\x20Configuration','MCP:\x20Unauthorized','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connection\x20Failed','Max\x20Retries','21602GtAKBl','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','MCP\x20Connected','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Disconnected','28zJdovo','424750qboTHK','42192nTOrpF','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','15282rLJPKg','284888LsXpjS','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Parameters:','51eABwjV','exports','150qXwiGe','Click\x20to\x20configure\x20MCP','946044PzPABh','Retrying...','MCP\x20Unknown\x20Status','Saving...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connected','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','88sWAepU','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x2d42=function(){return _0x4b968f;};return _0x2d42();}module[_0x26db83(0x1f5)]=n;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x5d0f9e=_0x3101;function _0x3101(_0x5558fa,_0x9cb119){_0x5558fa=_0x5558fa-0x18e;const _0x36a60b=_0x36a6();let _0x3101a5=_0x36a60b[_0x5558fa];return _0x3101a5;}function _0x36a6(){const _0x2a9b66=['Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Neplatná\x20konfigurácia','9432451eLxvtM','Kliknite\x20na\x20konfiguráciu\x20MCP','Konfigurácia\x20MCP','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Uložiť\x20konfiguráciu','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','8IcAKUm','Parametre\x20konfigurácie:','Pripojenie\x20MCP\x20zlyhalo','MCP:\x20Neautorizované','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','119719fngPcm','96338PtYwzF','Maximálny\x20počet\x20pokusov','Ukladá\x20sa...','Kliknite\x20na\x20pripojenie\x20MCP','Konfigurácia\x20bola\x20úspešne\x20uložená','Pripája\x20sa...','API\x20kľúč','8198976fbnmfH','Konfigurácia\x20klienta\x20MCP','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','Pripojené','MCP\x20neznámy\x20stav','Skúša\x20sa\x20znova...','MCP:\x20Sieťová\x20chyba','MCP\x20odpojené','Povoliť\x20overenie','Čo\x20je\x20API\x20kľúč?','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','4eXklSk','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','5686585Ykopdf','MCP:\x20Prekročený\x20počet\x20pokusov','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','ID\x20relácie','exports','100HIUUWz','Pripojenie\x20zlyhalo','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','MCP\x20pripojené','2116204YgQZKL','Kroky\x20konfigurácie:','3PDNudS','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','14289318xXafVF'];_0x36a6=function(){return _0x2a9b66;};return _0x36a6();}(function(_0x365e77,_0x2d4fd4){const _0x5f9f6e=_0x3101,_0x5a967f=_0x365e77();while(!![]){try{const _0x5b6038=-parseInt(_0x5f9f6e(0x19d))/0x1*(parseInt(_0x5f9f6e(0x1b0))/0x2)+parseInt(_0x5f9f6e(0x1be))/0x3*(parseInt(_0x5f9f6e(0x1bc))/0x4)+-parseInt(_0x5f9f6e(0x1b2))/0x5+-parseInt(_0x5f9f6e(0x1a5))/0x6+parseInt(_0x5f9f6e(0x1c3))/0x7*(parseInt(_0x5f9f6e(0x198))/0x8)+parseInt(_0x5f9f6e(0x1c0))/0x9+parseInt(_0x5f9f6e(0x1b8))/0xa*(parseInt(_0x5f9f6e(0x19e))/0xb);if(_0x5b6038===_0x2d4fd4)break;else _0x5a967f['push'](_0x5a967f['shift']());}catch(_0x26dc52){_0x5a967f['push'](_0x5a967f['shift']());}}}(_0x36a6,0xc567f));const e={'mcpStatus':{'disconnected':_0x5d0f9e(0x1ac),'connecting':'MCP\x20sa\x20pripája...','connected':_0x5d0f9e(0x1bb),'failed':_0x5d0f9e(0x19a),'retrying':'MCP\x20opakuje\x20pokus...','unknown':_0x5d0f9e(0x1a9),'unauthorized':_0x5d0f9e(0x19b),'sessionOccupied':'MCP:\x20ID\x20relácie\x20je\x20obsadené','networkError':_0x5d0f9e(0x1ab),'maxRetriesExceeded':_0x5d0f9e(0x1b3),'clickToConnect':_0x5d0f9e(0x1a1),'clickToConfigure':_0x5d0f9e(0x18e)},'mcpConfig':{'title':_0x5d0f9e(0x18f),'description':'Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','apiKey':_0x5d0f9e(0x1a4),'apiKeyPlaceholder':'Zadajte\x20svoj\x20API\x20kľúč','apiKeyHint':_0x5d0f9e(0x192),'enableAuth':_0x5d0f9e(0x1ad),'enableAuthHint':_0x5d0f9e(0x1b5),'connectionInfo':_0x5d0f9e(0x1a6),'mcpClientConfig':_0x5d0f9e(0x1a6),'configInstructions':_0x5d0f9e(0x1c1),'configStepTitle':_0x5d0f9e(0x1bd),'configStep1':'Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','configStep2':_0x5d0f9e(0x190),'configStep3':_0x5d0f9e(0x191),'sessionId':_0x5d0f9e(0x1b6),'sessionIdDescription':_0x5d0f9e(0x1a7),'authorizationDescription':'API\x20kľúč\x20s\x20prefixom\x20Bearer.','configParameters':_0x5d0f9e(0x199),'maxRetries':_0x5d0f9e(0x19f),'save':_0x5d0f9e(0x194),'saving':_0x5d0f9e(0x1a0),'note1':_0x5d0f9e(0x195),'note2':_0x5d0f9e(0x197),'configSaved':_0x5d0f9e(0x1a2),'configError':_0x5d0f9e(0x196),'apiApplyInfo':{'title':_0x5d0f9e(0x1ae),'description':'API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','univerAiLabel':'Univer\x20AI\x20konzola','getStarted':_0x5d0f9e(0x193)},'validation':{'apiKeyRequired':'API\x20kľúč\x20je\x20povinný','apiKeyTooShort':_0x5d0f9e(0x1bf),'invalidConfig':_0x5d0f9e(0x1c2),'invalidApiKey':_0x5d0f9e(0x19c)},'connectionStatus':{'disconnected':'Odpojené','connecting':_0x5d0f9e(0x1a3),'connected':_0x5d0f9e(0x1a8),'failed':_0x5d0f9e(0x1b9),'retrying':_0x5d0f9e(0x1aa)},'connectionError':{'unauthorized':_0x5d0f9e(0x1b1),'sessionOccupied':_0x5d0f9e(0x1af),'networkError':_0x5d0f9e(0x1b4),'maxRetriesExceeded':_0x5d0f9e(0x1ba)}}};module[_0x5d0f9e(0x1b7)]=e;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x10d1(_0x565ebc,_0x21a203){_0x565ebc=_0x565ebc-0x69;const _0x49f208=_0x49f2();let _0x10d1a0=_0x49f208[_0x565ebc];return _0x10d1a0;}const _0x1b91cc=_0x10d1;(function(_0xfd0ea6,_0xa123d9){const _0x19a435=_0x10d1,_0x128b51=_0xfd0ea6();while(!![]){try{const _0x782734=-parseInt(_0x19a435(0x8a))/0x1*(parseInt(_0x19a435(0x7c))/0x2)+-parseInt(_0x19a435(0x8c))/0x3+-parseInt(_0x19a435(0x89))/0x4*(-parseInt(_0x19a435(0x71))/0x5)+-parseInt(_0x19a435(0x80))/0x6*(-parseInt(_0x19a435(0x93))/0x7)+parseInt(_0x19a435(0x82))/0x8+-parseInt(_0x19a435(0x8b))/0x9+parseInt(_0x19a435(0x95))/0xa;if(_0x782734===_0xa123d9)break;else _0x128b51['push'](_0x128b51['shift']());}catch(_0x4a1662){_0x128b51['push'](_0x128b51['shift']());}}}(_0x49f2,0xa2bd4));function _0x49f2(){const _0x1ac8f4=['Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','Cấu\x20hình\x20MCP','1191724xzVgik','25717QWtchc','10736883sUPgaK','1632972fzgFOv','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Khóa\x20API','Lưu\x20cấu\x20hình','MCP\x20Đã\x20kết\x20nối','Cấu\x20hình\x20không\x20hợp\x20lệ','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','931nuZKIF','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','4491700EgiGDc','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Nhấp\x20để\x20kết\x20nối\x20MCP','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Yêu\x20cầu\x20khóa\x20API','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','MCP:\x20Lỗi\x20mạng','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','15LWGChf','MCP\x20Kết\x20nối\x20thất\x20bại','Lưu\x20cấu\x20hình\x20thất\x20bại','Đã\x20kết\x20nối','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Các\x20bước\x20cấu\x20hình:','Bật\x20xác\x20thực','Nhập\x20khóa\x20API\x20của\x20bạn','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','MCP:\x20Không\x20được\x20phép','92rqGqiZ','Khóa\x20API\x20là\x20gì?','Đang\x20kết\x20nối...','Đang\x20thử\x20lại...','48156NSCNxy','Đã\x20ngắt\x20kết\x20nối','9411616npNSYw','MCP\x20Đã\x20ngắt\x20kết\x20nối','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Đang\x20lưu...'];_0x49f2=function(){return _0x1ac8f4;};return _0x49f2();}const n={'mcpStatus':{'disconnected':_0x1b91cc(0x83),'connecting':'MCP\x20Đang\x20kết\x20nối...','connected':_0x1b91cc(0x90),'failed':_0x1b91cc(0x72),'retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':_0x1b91cc(0x6e),'unauthorized':_0x1b91cc(0x7b),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x1b91cc(0x6b),'maxRetriesExceeded':_0x1b91cc(0x79),'clickToConnect':_0x1b91cc(0x97),'clickToConfigure':'Nhấp\x20để\x20cấu\x20hình\x20MCP'},'mcpConfig':{'title':_0x1b91cc(0x88),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':_0x1b91cc(0x8e),'apiKeyPlaceholder':_0x1b91cc(0x78),'apiKeyHint':_0x1b91cc(0x92),'enableAuth':_0x1b91cc(0x77),'enableAuthHint':_0x1b91cc(0x85),'connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':_0x1b91cc(0x84),'configStepTitle':_0x1b91cc(0x76),'configStep1':_0x1b91cc(0x70),'configStep2':_0x1b91cc(0x6c),'configStep3':_0x1b91cc(0x96),'sessionId':'ID\x20phiên','sessionIdDescription':_0x1b91cc(0x6a),'authorizationDescription':'Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x1b91cc(0x98),'save':_0x1b91cc(0x8f),'saving':_0x1b91cc(0x86),'note1':_0x1b91cc(0x7a),'note2':_0x1b91cc(0x6d),'configSaved':_0x1b91cc(0x94),'configError':_0x1b91cc(0x73),'apiApplyInfo':{'title':_0x1b91cc(0x7d),'description':_0x1b91cc(0x87),'univerAiLabel':'Bảng\x20điều\x20khiển\x20Univer\x20AI','getStarted':'Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây'},'validation':{'apiKeyRequired':_0x1b91cc(0x69),'apiKeyTooShort':'Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','invalidConfig':_0x1b91cc(0x91),'invalidApiKey':_0x1b91cc(0x8d)},'connectionStatus':{'disconnected':_0x1b91cc(0x81),'connecting':_0x1b91cc(0x7e),'connected':_0x1b91cc(0x74),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x1b91cc(0x7f)},'connectionError':{'unauthorized':'Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','sessionOccupied':_0x1b91cc(0x75),'networkError':'Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','maxRetriesExceeded':_0x1b91cc(0x6f)}}};module['exports']=n;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x1bf1(_0x2a9a17,_0x5d7f81){_0x2a9a17=_0x2a9a17-0xaf;const _0x31930f=_0x3193();let _0x1bf165=_0x31930f[_0x2a9a17];return _0x1bf165;}function _0x3193(){const _0xad7a65=['连接失败','108XArZLK','MCP\x20连接失败','API\x20密钥长度至少需要\x2010\x20位','配置参数:','几秒钟内获取您的\x20API\x20密钥','4306742hnqzNW','196296IChWjk','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','1118VHAZvs','20lKMMYR','117veIcfx','配置保存成功','MCP:\x20超出最大重试次数','MCP:\x20会话\x20ID\x20已被占用','910RawOzO','重连中...','API\x20密钥无效,请检查密钥是否正确','MCP\x20已连接','最大重试次数','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Univer\x20AI\x20控制台','配置保存失败','MCP\x20已断开','您的\x20API\x20密钥安全存储在本地存储中','启用身份验证以获得安全连接','网络连接错误,请检查您的网络连接','MCP:\x20网络错误','权限验证失败,请检查您的\x20API\x20密钥','点击配置\x20MCP','10664kPbhJr','将配置添加到您的\x20MCP\x20客户端设置文件中','带有\x20Bearer\x20前缀的\x20API\x20密钥。','258488RxFIns','MCP\x20配置','复制以下\x20JSON\x20配置','4jRJuiR','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20客户端配置','1735360XZgmVB','超出最大重试次数,请稍后再试','保存配置','23370WHUITD','1161723VGvepC','MCP:\x20未授权','启用身份验证','MCP\x20状态未知','exports','已连接','请输入您的\x20API\x20密钥','MCP\x20连接中...','保存中...','API\x20密钥','会话ID','会话\x20ID\x20已被占用,请稍后再试'];_0x3193=function(){return _0xad7a65;};return _0x3193();}const _0x4b019d=_0x1bf1;(function(_0x344ce2,_0x97eafb){const _0x37656d=_0x1bf1,_0x4c406b=_0x344ce2();while(!![]){try{const _0x218311=parseInt(_0x37656d(0xdb))/0x1*(-parseInt(_0x37656d(0xb7))/0x2)+-parseInt(_0x37656d(0xc4))/0x3*(-parseInt(_0x37656d(0xbd))/0x4)+parseInt(_0x37656d(0xc0))/0x5+parseInt(_0x37656d(0xc3))/0x6*(-parseInt(_0x37656d(0xdf))/0x7)+-parseInt(_0x37656d(0xba))/0x8*(-parseInt(_0x37656d(0xd1))/0x9)+parseInt(_0x37656d(0xda))/0xa*(-parseInt(_0x37656d(0xd6))/0xb)+-parseInt(_0x37656d(0xd7))/0xc*(-parseInt(_0x37656d(0xd9))/0xd);if(_0x218311===_0x97eafb)break;else _0x4c406b['push'](_0x4c406b['shift']());}catch(_0x308480){_0x4c406b['push'](_0x4c406b['shift']());}}}(_0x3193,0x964ab));const e={'mcpStatus':{'disconnected':_0x4b019d(0xb0),'connecting':_0x4b019d(0xcb),'connected':_0x4b019d(0xe2),'failed':_0x4b019d(0xd2),'retrying':'MCP\x20重连中...','unknown':_0x4b019d(0xc7),'unauthorized':_0x4b019d(0xc5),'sessionOccupied':_0x4b019d(0xde),'networkError':_0x4b019d(0xb4),'maxRetriesExceeded':_0x4b019d(0xdd),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x4b019d(0xb6)},'mcpConfig':{'title':_0x4b019d(0xbb),'description':_0x4b019d(0xe4),'apiKey':_0x4b019d(0xcd),'apiKeyPlaceholder':_0x4b019d(0xca),'apiKeyHint':_0x4b019d(0xbe),'enableAuth':_0x4b019d(0xc6),'enableAuthHint':_0x4b019d(0xb2),'connectionInfo':_0x4b019d(0xbf),'mcpClientConfig':_0x4b019d(0xbf),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x4b019d(0xbc),'configStep2':_0x4b019d(0xb8),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x4b019d(0xce),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x4b019d(0xb9),'configParameters':_0x4b019d(0xd4),'maxRetries':_0x4b019d(0xe3),'save':_0x4b019d(0xc2),'saving':_0x4b019d(0xcc),'note1':'配置更改将立即生效','note2':_0x4b019d(0xb1),'configSaved':_0x4b019d(0xdc),'configError':_0x4b019d(0xaf),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x4b019d(0xd8),'univerAiLabel':_0x4b019d(0xe5),'getStarted':_0x4b019d(0xd5)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x4b019d(0xd3),'invalidConfig':'配置无效','invalidApiKey':_0x4b019d(0xe1)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x4b019d(0xc9),'failed':_0x4b019d(0xd0),'retrying':_0x4b019d(0xe0)},'connectionError':{'unauthorized':_0x4b019d(0xb5),'sessionOccupied':_0x4b019d(0xcf),'networkError':_0x4b019d(0xb3),'maxRetriesExceeded':_0x4b019d(0xc1)}}};module[_0x4b019d(0xc8)]=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x5d97(_0x499c41,_0x17ddef){_0x499c41=_0x499c41-0x180;const _0x353b08=_0x353b();let _0x5d9767=_0x353b08[_0x499c41];return _0x5d9767;}const _0x2dacdc=_0x5d97;(function(_0x4bfb3e,_0x1fbf4e){const _0x3b5849=_0x5d97,_0x43784f=_0x4bfb3e();while(!![]){try{const _0x51a08a=parseInt(_0x3b5849(0x182))/0x1*(parseInt(_0x3b5849(0x19c))/0x2)+-parseInt(_0x3b5849(0x195))/0x3+-parseInt(_0x3b5849(0x1a7))/0x4+parseInt(_0x3b5849(0x189))/0x5*(parseInt(_0x3b5849(0x198))/0x6)+parseInt(_0x3b5849(0x18c))/0x7*(-parseInt(_0x3b5849(0x1a5))/0x8)+-parseInt(_0x3b5849(0x194))/0x9+parseInt(_0x3b5849(0x18d))/0xa;if(_0x51a08a===_0x1fbf4e)break;else _0x43784f['push'](_0x43784f['shift']());}catch(_0x3c85c7){_0x43784f['push'](_0x43784f['shift']());}}}(_0x353b,0x8201a));function _0x353b(){const _0x4a95ce=['MCP\x20Retrying...','53864DhagiQ','MCP\x20Configuration','141272fupZXB','MCP\x20Unknown\x20Status','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.','94879JutSlK','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','5TCZwKi','Failed\x20to\x20save\x20configuration','Connection\x20Failed','329wdTaTs','9594130PcMwDp','Max\x20Retries','Session\x20ID','Click\x20to\x20connect\x20MCP','API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds','30897WkhvTR','2862753EETuwN','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2448906CbWmLV','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','10yDqSTR','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Configuration\x20Steps:','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','exports','MCP:\x20Network\x20Error'];_0x353b=function(){return _0x4a95ce;};return _0x353b();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x2dacdc(0x1a4),'unknown':_0x2dacdc(0x1a8),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2dacdc(0x1a3),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2dacdc(0x190),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2dacdc(0x1a6),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2dacdc(0x191),'apiKeyPlaceholder':_0x2dacdc(0x1a1),'apiKeyHint':_0x2dacdc(0x188),'enableAuth':_0x2dacdc(0x186),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2dacdc(0x19e),'mcpClientConfig':_0x2dacdc(0x19e),'configInstructions':_0x2dacdc(0x192),'configStepTitle':_0x2dacdc(0x19f),'configStep1':_0x2dacdc(0x199),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2dacdc(0x18f),'sessionIdDescription':_0x2dacdc(0x197),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x2dacdc(0x18e),'save':_0x2dacdc(0x19a),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2dacdc(0x180),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2dacdc(0x18a),'apiApplyInfo':{'title':_0x2dacdc(0x19d),'description':_0x2dacdc(0x181),'univerAiLabel':_0x2dacdc(0x187),'getStarted':_0x2dacdc(0x193)},'validation':{'apiKeyRequired':_0x2dacdc(0x1a0),'apiKeyTooShort':_0x2dacdc(0x19b),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2dacdc(0x185)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2dacdc(0x196),'connected':'Connected','failed':_0x2dacdc(0x18b),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2dacdc(0x184),'networkError':_0x2dacdc(0x183),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x2dacdc(0x1a2)]=n;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3d1f73=_0x1a3e;(function(_0x353957,_0x1279a3){const _0x36a1d9=_0x1a3e,_0x5030f8=_0x353957();while(!![]){try{const _0x5254ff=-parseInt(_0x36a1d9(0x27b))/0x1*(-parseInt(_0x36a1d9(0x235))/0x2)+-parseInt(_0x36a1d9(0x17b))/0x3*(-parseInt(_0x36a1d9(0x1fb))/0x4)+-parseInt(_0x36a1d9(0x230))/0x5+-parseInt(_0x36a1d9(0x1bd))/0x6+parseInt(_0x36a1d9(0x224))/0x7*(-parseInt(_0x36a1d9(0x24b))/0x8)+-parseInt(_0x36a1d9(0x1ac))/0x9*(-parseInt(_0x36a1d9(0x247))/0xa)+parseInt(_0x36a1d9(0x1ec))/0xb;if(_0x5254ff===_0x1279a3)break;else _0x5030f8['push'](_0x5030f8['shift']());}catch(_0x250d6c){_0x5030f8['push'](_0x5030f8['shift']());}}}(_0x4331,0x6c9ab));var Pe=Object['defineProperty'],Ee=(_0x7f2a3e,_0x546c66,_0x558ea7)=>_0x546c66 in _0x7f2a3e?Pe(_0x7f2a3e,_0x546c66,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x558ea7}):_0x7f2a3e[_0x546c66]=_0x558ea7,x=(_0x3f8e5a,_0x384ffd,_0x588a1c)=>Ee(_0x3f8e5a,typeof _0x384ffd!=_0x3d1f73(0x250)?_0x384ffd+'':_0x384ffd,_0x588a1c);import{LocaleService as _0x59138c,Inject as _0x239ee7,Injector as _0x53009c,Disposable as _0x2a5236,IConfigService as _0x47eded,ILocalStorageService as _0x8ee795,ILogService as _0x4b764d,CommandType as _0xf974da,ICommandService as _0x17a58e,DependentOn as _0x3951f0,Plugin as _0x5bf17b,merge as _0x2d62e4}from'@univerjs/core';import{jsxs as _0x4b442f,jsx as _0x20a6ac}from'react/jsx-runtime';import{MCPConnectionStatus as _0x291e3f,MCPConnectionError as _0x19f996,MCPConnectionController as _0x5bc65c,MCP_PLUGIN_CONFIG_KEY as _0x3d4e37,UniverMCPPlugin as _0x38e135}from'@univerjs-pro/mcp';import{clsx as _0x52a931,Input as _0x55acfd,Button as _0x553381,MessageType as _0x1f5a43,Tooltip as _0x47833d}from'@univerjs/design';import{useDependency as _0x1671ca,useObservable as _0x1d42f3,ComponentManager as _0x2f2c61,connectInjector as _0x2e489a,IUIPartsService as _0x436320,IDialogService as _0x41daf9,IMessageService as _0x5d1b2b,BuiltInUIPart as _0x5cc78a,MenuItemType as _0xc76b71,RibbonStartGroup as _0x47099c,IMenuManagerService as _0x10488c}from'@univerjs/ui';import{BehaviorSubject as _0x109788}from'rxjs';import{useRef as _0x4f5dd4,createElement as _0x17eed1,forwardRef as _0x8d23ab,useState as _0x2889e0,useCallback as _0x2be0fd}from'react';import{ISocketService as _0x33978c,WebSocketService as _0x15ecd1}from'@univerjs/network';function b({ref:_0xfc59b5,..._0x42cefd}){const _0x5137e4=_0x3d1f73,{icon:_0x5813bd,id:_0x1e084f,className:_0x48ab86,extend:_0x22d72c,..._0x48cc21}=_0x42cefd,_0x45c966=(_0x5137e4(0x201)+_0x1e084f+'\x20'+(_0x48ab86||''))[_0x5137e4(0x1e8)](),_0x18cc15=_0x4f5dd4('_'+We());return ae(_0x5813bd,''+_0x1e084f,{'defIds':_0x5813bd[_0x5137e4(0x1dc)],'idSuffix':_0x18cc15[_0x5137e4(0x282)]},{'ref':_0xfc59b5,'className':_0x45c966,..._0x48cc21},_0x22d72c);}function ae(_0x59dc7d,_0xd13404,_0x19183c,_0x5b883f,_0x25926b){const _0x1cf8f0=_0x3d1f73;return _0x17eed1(_0x59dc7d['tag'],{'key':_0xd13404,...Ye(_0x59dc7d,_0x19183c,_0x25926b),..._0x5b883f},(Ze(_0x59dc7d,_0x19183c)['children']||[])[_0x1cf8f0(0x25f)]((_0x110942,_0x3d23d9)=>ae(_0x110942,_0xd13404+'-'+_0x59dc7d[_0x1cf8f0(0x1d6)]+'-'+_0x3d23d9,_0x19183c,void 0x0,_0x25926b)));}function Ye(_0x41f14a,_0xe353f9,_0x3f7cbf){const _0xebfe55=_0x3d1f73,_0x5342fd={..._0x41f14a[_0xebfe55(0x1d5)]};_0x3f7cbf!=null&&_0x3f7cbf[_0xebfe55(0x21f)]&&_0x5342fd['fill']===_0xebfe55(0x21f)&&(_0x5342fd[_0xebfe55(0x1af)]=_0x3f7cbf['colorChannel1']),_0x41f14a[_0xebfe55(0x1d6)]==='mask'&&_0x5342fd['id']&&(_0x5342fd['id']=_0x5342fd['id']+_0xe353f9[_0xebfe55(0x1b4)]),Object[_0xebfe55(0x23a)](_0x5342fd)[_0xebfe55(0x182)](([_0x4d82f1,_0x1a110a])=>{const _0x38d387=_0xebfe55;_0x4d82f1===_0x38d387(0x192)&&typeof _0x1a110a==_0x38d387(0x243)&&(_0x5342fd[_0x4d82f1]=_0x1a110a['replace'](/url\(#(.*)\)/,_0x38d387(0x295)+_0xe353f9[_0x38d387(0x1b4)]+')'));});const {defIds:_0x1a64ab}=_0xe353f9;return!_0x1a64ab||_0x1a64ab[_0xebfe55(0x2b5)]===0x0||(_0x41f14a[_0xebfe55(0x1d6)]==='use'&&_0x5342fd[_0xebfe55(0x195)]&&(_0x5342fd[_0xebfe55(0x195)]=_0x5342fd['xlink:href']+_0xe353f9[_0xebfe55(0x1b4)]),Object[_0xebfe55(0x23a)](_0x5342fd)[_0xebfe55(0x182)](([_0xce46c8,_0x4769f2])=>{const _0x411de1=_0xebfe55;typeof _0x4769f2==_0x411de1(0x243)&&(_0x5342fd[_0xce46c8]=_0x4769f2[_0x411de1(0x1e1)](/url\(#(.*)\)/,'url(#$1'+_0xe353f9[_0x411de1(0x1b4)]+')'));})),_0x5342fd;}function Ze(_0xde389a,_0x41b40b){const _0x1c7d28=_0x3d1f73;var _0xd7b66c;const {defIds:_0x39631b}=_0x41b40b;return!_0x39631b||_0x39631b[_0x1c7d28(0x2b5)]===0x0?_0xde389a:_0xde389a[_0x1c7d28(0x1d6)]===_0x1c7d28(0x1bf)&&((_0xd7b66c=_0xde389a[_0x1c7d28(0x25b)])!=null&&_0xd7b66c[_0x1c7d28(0x2b5)])?{..._0xde389a,'children':_0xde389a[_0x1c7d28(0x25b)][_0x1c7d28(0x25f)](_0x3894be=>typeof _0x3894be['attrs']['id']==_0x1c7d28(0x243)&&_0x39631b&&_0x39631b[_0x1c7d28(0x1ff)](_0x3894be[_0x1c7d28(0x1d5)]['id'])?{..._0x3894be,'attrs':{..._0x3894be['attrs'],'id':_0x3894be[_0x1c7d28(0x1d5)]['id']+_0x41b40b[_0x1c7d28(0x1b4)]}}:_0x3894be)}:_0xde389a;}function We(){const _0x3f5ca7=_0x3d1f73;return Math[_0x3f5ca7(0x28d)]()[_0x3f5ca7(0x20e)](0x24)['substring'](0x2,0x8);}b[_0x3d1f73(0x173)]='UniverIcon';const qe={'tag':'svg','attrs':{'xmlns':_0x3d1f73(0x263),'fill':_0x3d1f73(0x175),'viewBox':'0\x200\x2016\x2016','width':_0x3d1f73(0x21c),'height':'1em'},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x1be),'d':_0x3d1f73(0x17a),'fillRule':_0x3d1f73(0x20b),'clipRule':_0x3d1f73(0x20b)}}]},le=_0x8d23ab(function(_0xb746eb,_0x4db213){const _0x472adb=_0x3d1f73;return _0x17eed1(b,Object[_0x472adb(0x29e)]({},_0xb746eb,{'id':_0x472adb(0x264),'ref':_0x4db213,'icon':qe}));});le[_0x3d1f73(0x173)]=_0x3d1f73(0x268);const Xe={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'currentColor','d':_0x3d1f73(0x212)}}]},ue=_0x8d23ab(function(_0x2bafd5,_0x206ac1){const _0x18a97f=_0x3d1f73;return _0x17eed1(b,Object[_0x18a97f(0x29e)]({},_0x2bafd5,{'id':'close-icon','ref':_0x206ac1,'icon':Xe}));});ue[_0x3d1f73(0x173)]=_0x3d1f73(0x1cd);const Je={'tag':'svg','attrs':{'xmlns':_0x3d1f73(0x263),'fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'currentColor','d':_0x3d1f73(0x190)}},{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x1be),'d':'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'}},{'tag':'path','attrs':{'fill':_0x3d1f73(0x1be),'d':_0x3d1f73(0x28c),'fillRule':_0x3d1f73(0x20b),'clipRule':_0x3d1f73(0x20b)}}]},ve=_0x8d23ab(function(_0x9cd70,_0x37b108){return _0x17eed1(b,Object['assign']({},_0x9cd70,{'id':'help-icon','ref':_0x37b108,'icon':Je}));});ve[_0x3d1f73(0x173)]='HelpIcon';const Qe={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':_0x3d1f73(0x263),'fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1f73(0x21e)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'stroke':_0x3d1f73(0x1be),'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':_0x3d1f73(0x1cf),'strokeLinejoin':_0x3d1f73(0x1cf),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3d1f73(0x1ad),'attrs':{'id':_0x3d1f73(0x1fe)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3d1f73(0x1fe)]},de=_0x8d23ab(function(_0x570725,_0x5121c7){const _0x182568=_0x3d1f73;return _0x17eed1(b,Object[_0x182568(0x29e)]({},_0x570725,{'id':_0x182568(0x2b4),'ref':_0x5121c7,'icon':Qe}));});de[_0x3d1f73(0x173)]=_0x3d1f73(0x29c);const en={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d1f73(0x175),'viewBox':_0x3d1f73(0x27e),'width':_0x3d1f73(0x21c),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1f73(0x16e)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'stroke':_0x3d1f73(0x1be),'d':_0x3d1f73(0x237),'strokeLinecap':_0x3d1f73(0x1cf),'strokeLinejoin':_0x3d1f73(0x1cf),'strokeWidth':1.2}}]},{'tag':_0x3d1f73(0x1bf),'attrs':{},'children':[{'tag':_0x3d1f73(0x1ad),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x211),'d':_0x3d1f73(0x206),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3d1f73(0x286)]},ge=_0x8d23ab(function(_0x11c3c6,_0x54fbc4){const _0x36278b=_0x3d1f73;return _0x17eed1(b,Object[_0x36278b(0x29e)]({},_0x11c3c6,{'id':_0x36278b(0x2bf),'ref':_0x54fbc4,'icon':en}));});ge[_0x3d1f73(0x173)]=_0x3d1f73(0x219);function nn(_0x2f1851){const _0xf7ee9=_0x3d1f73;var _0x8d553,_0x168a5a;const {mcpCoreConfig:_0x1a35f3,onSave:_0xbfe02f,loading:_0x4214aa=!0x1,config:_0xb99a9c,connectionStatus$:_0x2900d7,connectionError$:_0x1c8369,currentApiKey$:_0x3450a5,currentSessionId$:_0x32b681}=_0x2f1851,_0x3cae8c=_0x1671ca(_0x59138c),_0x3a99de=_0x1d42f3(_0x2900d7,_0x291e3f[_0xf7ee9(0x2b8)]),_0x28836c=_0x1d42f3(_0x1c8369,_0x19f996['NONE']),_0x54c4bb=_0x1d42f3(_0x32b681,''),_0x2316a3=_0x1d42f3(_0x3450a5,''),[_0x426336,_0x3b49ea]=_0x2889e0(_0x2316a3||''),_0x2c075c=!0x0,_0x5221f9=_0xb99a9c['showDeveloperTools']&&_0x1a35f3[_0xf7ee9(0x258)]&&(_0x1a35f3[_0xf7ee9(0x258)]['includes'](_0xf7ee9(0x1cc))||_0x1a35f3['mcpServerUrl']['includes'](_0xf7ee9(0x1c9))),_0x5d43e9=(_0x8d553=_0x1a35f3[_0xf7ee9(0x258)])==null?void 0x0:_0x8d553['includes'](_0xf7ee9(0x1cc)),_0x2f2ad6=(_0x168a5a=_0x1a35f3[_0xf7ee9(0x258)])==null?void 0x0:_0x168a5a[_0xf7ee9(0x1ff)](_0xf7ee9(0x1c9)),_0x1a7004=_0x5d43e9?'https://console.univer.plus':_0xf7ee9(0x270),_0x1a40a9=_0xb99a9c['showDeveloperTools']&&(_0x5d43e9||_0x2f2ad6),[_0x2f2602,_0x331754]=_0x2889e0(!_0x426336[_0xf7ee9(0x1e8)]()),_0x143b83=(_0x562724,_0x62f2e4)=>{const _0x86f0ac=_0xf7ee9;if(_0x62f2e4===_0x19f996[_0x86f0ac(0x234)])return _0x86f0ac(0x240);switch(_0x562724){case _0x291e3f['CONNECTED']:return _0x86f0ac(0x25a);case _0x291e3f[_0x86f0ac(0x21b)]:case _0x291e3f[_0x86f0ac(0x261)]:return _0x86f0ac(0x1c8);case _0x291e3f[_0x86f0ac(0x18e)]:return _0x86f0ac(0x240);default:return _0x86f0ac(0x2c4);}},_0x482bcf=(_0x4fa2fd,_0x1e986d)=>{const _0x226868=_0xf7ee9;if(_0x1e986d===_0x19f996[_0x226868(0x234)])return _0x226868(0x210);switch(_0x4fa2fd){case _0x291e3f[_0x226868(0x280)]:return _0x226868(0x1d7);case _0x291e3f[_0x226868(0x21b)]:case _0x291e3f['RETRYING']:return _0x226868(0x225);case _0x291e3f[_0x226868(0x18e)]:return _0x226868(0x210);default:return _0x226868(0x1d9);}},_0xd9fa4e=_0x12bac8=>{const _0x2fb572=_0xf7ee9;switch(_0x12bac8){case _0x291e3f['CONNECTED']:return _0x3cae8c['t']('mcpConfig.connectionStatus.connected');case _0x291e3f[_0x2fb572(0x21b)]:return _0x3cae8c['t'](_0x2fb572(0x1ce));case _0x291e3f[_0x2fb572(0x18e)]:return _0x3cae8c['t']('mcpConfig.connectionStatus.failed');case _0x291e3f['RETRYING']:return _0x3cae8c['t']('mcpConfig.connectionStatus.retrying');default:return _0x3cae8c['t'](_0x2fb572(0x256));}},_0x42cb84=_0x426ca2=>{const _0x42fbee=_0xf7ee9;switch(_0x426ca2){case _0x19f996[_0x42fbee(0x234)]:return _0x3cae8c['t'](_0x42fbee(0x267));case _0x19f996[_0x42fbee(0x24e)]:return _0x3cae8c['t'](_0x42fbee(0x194));case _0x19f996[_0x42fbee(0x244)]:return _0x3cae8c['t'](_0x42fbee(0x2b1));case _0x19f996[_0x42fbee(0x2ab)]:return _0x3cae8c['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x1824c7=_0x2be0fd(()=>{const _0xcebef4=_0xf7ee9,_0x2a7073={..._0x1a35f3,'apiKey':_0x426336[_0xcebef4(0x1e8)](),'enableAuth':_0x2c075c};_0xbfe02f(_0x2a7073);},[_0x1a35f3,_0x426336,_0x2c075c,_0xbfe02f]),_0xe4a366=_0x426336['trim']()['length']>0x0;return _0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x20a6ac('div',{'className':_0xf7ee9(0x254),'children':_0x4b442f('div',{'className':_0xf7ee9(0x220),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x16d),'children':_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x1d2),'children':'⚙'})}),_0x20a6ac(_0xf7ee9(0x1c2),{'children':_0x20a6ac('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3cae8c['t'](_0xf7ee9(0x1e9))})})]})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x21d),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0x52a931(_0xf7ee9(0x1f7),_0x143b83(_0x3a99de,_0x28836c)),'children':_0x4b442f('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0x52a931(_0xf7ee9(0x171),_0x482bcf(_0x3a99de,_0x28836c))}),_0x20a6ac('span',{'className':_0xf7ee9(0x20f),'children':_0xd9fa4e(_0x3a99de)})]})}),_0x28836c!==_0x19f996['NONE']&&(_0x3a99de===_0x291e3f[_0xf7ee9(0x18e)]||_0x28836c===_0x19f996['UNAUTHORIZED'])&&_0x20a6ac('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x222),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x24c),'children':'⚠️'}),_0x20a6ac('p',{'className':_0xf7ee9(0x19c),'children':_0x42cb84(_0x28836c)})]})})]}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c7),'children':_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x260),'children':[_0x4b442f('div',{'className':_0xf7ee9(0x189),'children':[_0x4b442f(_0xf7ee9(0x292),{'className':_0xf7ee9(0x253),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🔑'}),'\x20',_0x3cae8c['t'](_0xf7ee9(0x1c4)),_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-text-red-500','children':'*'}),_0x5221f9&&_0x20a6ac('a',{'className':_0xf7ee9(0x203),'title':_0x3cae8c['t'](_0xf7ee9(0x1f4)),'role':_0xf7ee9(0x2b6),'onClick':()=>_0x331754(!0x0),'children':_0x20a6ac(ve,{})})]}),_0x20a6ac(_0x55acfd,{'type':_0xf7ee9(0x1a6),'placeholder':_0x3cae8c['t'](_0xf7ee9(0x2be)),'value':_0x426336,'disabled':_0x4214aa,'autoComplete':_0xf7ee9(0x2c1),'onChange':_0x3b49ea}),_0x20a6ac('p',{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t']('mcpConfig.apiKeyHint')})]}),_0x5221f9&&_0x2f2602&&_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1a8),'children':[_0x20a6ac('a',{'className':_0xf7ee9(0x2bc),'role':'button','onClick':()=>_0x331754(!0x1),'children':_0x20a6ac(ue,{'className':_0xf7ee9(0x298)})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1e6),'children':[_0x20a6ac('div',{'className':_0xf7ee9(0x191),'children':_0x20a6ac('span',{'className':'univer-text-blue-600','children':'🚀'})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex-1','children':[_0x20a6ac('h4',{'className':_0xf7ee9(0x200),'children':_0x3cae8c['t']('mcpConfig.apiApplyInfo.title')}),_0x20a6ac('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3cae8c['t']('mcpConfig.apiApplyInfo.description')}),_0x20a6ac('div',{'className':_0xf7ee9(0x2a1),'children':_0x1a40a9&&_0x4b442f('a',{'className':_0xf7ee9(0x2a6),'href':_0x1a7004,'target':_0xf7ee9(0x213),'rel':_0xf7ee9(0x26b),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🤖'}),_0x3cae8c['t'](_0xf7ee9(0x2a0)),_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x22a),'children':['✨','\x20',_0x3cae8c['t'](_0xf7ee9(0x1a1))]})]})]})]}),_0xb99a9c[_0xf7ee9(0x27d)]&&_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x25e),'children':[_0x4b442f('h4',{'className':_0xf7ee9(0x1b2),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🔗'}),'\x20',_0x3cae8c['t'](_0xf7ee9(0x205))]}),_0x4b442f('div',{'className':'univer-space-y-4','children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x2aa),'children':[_0x20a6ac('p',{'className':_0xf7ee9(0x2b2),'children':_0x3cae8c['t'](_0xf7ee9(0x2c3))}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-space-y-2','children':[_0x20a6ac('div',{'className':_0xf7ee9(0x275),'children':_0x3cae8c['t'](_0xf7ee9(0x281))}),_0x4b442f('div',{'className':_0xf7ee9(0x289),'children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x3cae8c['t'](_0xf7ee9(0x1f0))]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1b1),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x1de),'children':'2'}),_0x3cae8c['t'](_0xf7ee9(0x287))]}),_0x4b442f('div',{'className':_0xf7ee9(0x1b1),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x3cae8c['t'](_0xf7ee9(0x23b))]})]})]})]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x189),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x275),'children':'MCP\x20Configuration'}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x20a6ac(_0xf7ee9(0x2bb),{'className':_0xf7ee9(0x269),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xf7ee9(0x23c)+(_0x54c4bb||_0xf7ee9(0x1a3)),'type':_0xf7ee9(0x242),'headers':{'Authorization':_0xf7ee9(0x1e7)+(_0x426336||_0xf7ee9(0x2a3))}}}},null,0x2)})})]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-space-y-3','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x275),'children':_0x3cae8c['t'](_0xf7ee9(0x29f))}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x189),'children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x2a7),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c1)}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xf7ee9(0x193)}),_0x20a6ac('div',{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4b442f('div',{'className':_0xf7ee9(0x2a7),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c1)}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x178),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1b0),'children':_0xf7ee9(0x285)}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t'](_0xf7ee9(0x27f))})]})]})]})]})]})]}),_0x20a6ac(_0x553381,{'onClick':_0x1824c7,'disabled':!_0xe4a366||_0x4214aa,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x4214aa?_0x4b442f('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'⟲'}),_0x3cae8c['t'](_0xf7ee9(0x262))]}):_0x4b442f(_0xf7ee9(0x1b8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(le,{}),_0x3cae8c['t'](_0xf7ee9(0x184))]})}),_0x20a6ac('div',{'className':_0xf7ee9(0x26a),'children':_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-gap-3','children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x4b442f('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x296),'children':'Configuration\x20Notes:'}),_0x4b442f(_0xf7ee9(0x1c2),{'children':['•',_0x3cae8c['t'](_0xf7ee9(0x1b7))]}),_0x4b442f(_0xf7ee9(0x1c2),{'children':['•',_0x3cae8c['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x3d1f73(0x2b9),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x3d1f73(0x1ee)],tn=(_0x5bc31d,_0x349ccc,_0x4e676b,_0x42ff6b)=>{const _0x3bf606=_0x3d1f73;for(var _0x2a7c32=_0x42ff6b>0x1?void 0x0:_0x42ff6b?rn(_0x349ccc,_0x4e676b):_0x349ccc,_0x5ed067=_0x5bc31d[_0x3bf606(0x2b5)]-0x1,_0x23143f;_0x5ed067>=0x0;_0x5ed067--)(_0x23143f=_0x5bc31d[_0x5ed067])&&(_0x2a7c32=_0x23143f(_0x2a7c32)||_0x2a7c32);return _0x2a7c32;},d=(_0x1d9e1b,_0x27bf53)=>(_0x2216df,_0x3d6f63)=>_0x27bf53(_0x2216df,_0x3d6f63,_0x1d9e1b);const U=_0x3d1f73(0x16f),L=_0x3d1f73(0x2b3);let I=class extends _0x2a5236{constructor(_0x1a1ebc,_0x408a2e,_0x1626a1,_0x3129ea,_0x3d742c,_0x4ee375,_0x23861d,_0x160740,_0x12b67b,_0x151bb5){const _0x2d87bc=_0x3d1f73;super(),x(this,_0x2d87bc(0x23f),new _0x109788(!0x1)),x(this,_0x2d87bc(0x1b5),new _0x109788({})),x(this,_0x2d87bc(0x2ad),new _0x109788({})),x(this,_0x2d87bc(0x2ac),new _0x109788('')),x(this,_0x2d87bc(0x1ba),async _0x21f6be=>{const _0x3a72e4=_0x2d87bc;var _0x52f734,_0x38be29;this[_0x3a72e4(0x23f)][_0x3a72e4(0x2a8)](!0x0);try{const _0x37f087=await this[_0x3a72e4(0x28e)](_0x21f6be);if(!_0x37f087[_0x3a72e4(0x233)]){this['_messageService']['show']({'type':_0x1f5a43[_0x3a72e4(0x22f)],'content':_0x37f087[_0x3a72e4(0x1fa)]||this['_localeService']['t'](_0x3a72e4(0x239))});return;}_0x21f6be[_0x3a72e4(0x1ca)]?await this[_0x3a72e4(0x2ba)][_0x3a72e4(0x183)](U,_0x21f6be[_0x3a72e4(0x1ca)][_0x3a72e4(0x1e8)]()):await this[_0x3a72e4(0x2ba)][_0x3a72e4(0x1d8)](U),this[_0x3a72e4(0x2ac)]['next'](((_0x52f734=_0x21f6be['apiKey'])==null?void 0x0:_0x52f734[_0x3a72e4(0x1e8)]())||''),this['_mcpConnectionController'][_0x3a72e4(0x2c2)]({'Authorization':_0x3a72e4(0x1e7)+((_0x38be29=_0x21f6be[_0x3a72e4(0x1ca)])==null?void 0x0:_0x38be29['trim']())}),this['_messageService'][_0x3a72e4(0x1a4)]({'type':_0x1f5a43[_0x3a72e4(0x19e)],'content':this[_0x3a72e4(0x251)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x95ffbb=_0x3a72e4;this[_0x95ffbb(0x1d4)][_0x95ffbb(0x1c6)](L);},0x320);}catch(_0x39e925){this[_0x3a72e4(0x284)][_0x3a72e4(0x227)](_0x3a72e4(0x19a),_0x39e925),this['_messageService'][_0x3a72e4(0x1a4)]({'type':_0x1f5a43['Error'],'content':this[_0x3a72e4(0x251)]['t'](_0x3a72e4(0x21a))});}finally{this[_0x3a72e4(0x23f)][_0x3a72e4(0x2a8)](!0x1);}}),(this[_0x2d87bc(0x1f8)]=_0x1a1ebc,this[_0x2d87bc(0x24a)]=_0x408a2e,this[_0x2d87bc(0x1e4)]=_0x1626a1,this[_0x2d87bc(0x2ba)]=_0x3129ea,this[_0x2d87bc(0x1d4)]=_0x3d742c,this['_messageService']=_0x4ee375,this['_componentManager']=_0x23861d,this[_0x2d87bc(0x251)]=_0x160740,this['_logService']=_0x12b67b,this[_0x2d87bc(0x299)]=_0x151bb5,this[_0x2d87bc(0x186)](),this[_0x2d87bc(0x1a0)](),this[_0x2d87bc(0x2b0)]());}[_0x3d1f73(0x22e)](){const _0xa26563=_0x3d1f73,_0x185615=this['_configService'][_0xa26563(0x185)](y);_0x185615!=null&&_0x185615[_0xa26563(0x27d)]&&this[_0xa26563(0x1d4)][_0xa26563(0x1db)]({'id':L,'title':{'title':this['_localeService']['t'](_0xa26563(0x272))},'children':{'label':_0xa26563(0x1e2)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x171873=_0xa26563;this[_0x171873(0x1d4)][_0x171873(0x1c6)](L);}});}['getCurrentConfig'](){const _0x49fc50=_0x3d1f73;return this[_0x49fc50(0x1b5)]['value'];}['_registerComponent'](){const _0x13c3e3=_0x3d1f73;this['disposeWithMe'](this[_0x13c3e3(0x188)][_0x13c3e3(0x273)](_0x13c3e3(0x1e2),this['_createConfigPanelComponent']()));}[_0x3d1f73(0x187)](){return _0x2e489a(()=>{const _0x4289a9=_0x1a3e;var _0x51b745,_0x46b609,_0xd27838;return _0x20a6ac(nn,{'config':this[_0x4289a9(0x2ad)][_0x4289a9(0x23d)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x4289a9(0x23d)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x4289a9(0x1ba)],'loading':this['_loading$']['value'],'connectionStatus$':(_0x51b745=this[_0x4289a9(0x299)])==null?void 0x0:_0x51b745[_0x4289a9(0x17f)],'connectionError$':(_0x46b609=this['_mcpConnectionController'])==null?void 0x0:_0x46b609[_0x4289a9(0x27c)],'currentSessionId$':(_0xd27838=this['_mcpConnectionController'])==null?void 0x0:_0xd27838[_0x4289a9(0x2b7)]});},this['_injector']);}[_0x3d1f73(0x186)](){const _0x49dfe8=_0x3d1f73;this['disposeWithMe'](this[_0x49dfe8(0x1e4)][_0x49dfe8(0x1a5)](_0x3d4e37)[_0x49dfe8(0x26f)](_0x397b45=>{this['_mcpCoreConfig$']['next'](_0x397b45||{});}));const _0x4cd795=this[_0x49dfe8(0x1e4)][_0x49dfe8(0x185)](_0x3d4e37);this[_0x49dfe8(0x1b5)]['next'](_0x4cd795||{}),this['disposeWithMe'](this['_configService'][_0x49dfe8(0x1a5)](y)['subscribe'](_0x3c4845=>{const _0x3f81eb=_0x49dfe8;this[_0x3f81eb(0x2ad)][_0x3f81eb(0x2a8)](_0x3c4845||{});}));const _0xabb4ad=this[_0x49dfe8(0x1e4)][_0x49dfe8(0x185)](y);this['_config$']['next'](_0xabb4ad||{});}async['_loadStoredApiKey'](){const _0x37eb9d=_0x3d1f73,_0x462aaa=this[_0x37eb9d(0x1e4)][_0x37eb9d(0x185)](y);if(!(_0x462aaa!=null&&_0x462aaa[_0x37eb9d(0x27d)]))return;const _0x426adf=await this['_localStorageService'][_0x37eb9d(0x2c0)](U);_0x426adf&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x37eb9d(0x1e7)+_0x426adf}),this[_0x37eb9d(0x2ac)][_0x37eb9d(0x2a8)](_0x426adf));}async[_0x3d1f73(0x28e)](_0x1378c9){const _0x2fd501=_0x3d1f73;if(!_0x1378c9['apiKey']||_0x1378c9['apiKey'][_0x2fd501(0x1e8)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2fd501(0x251)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x1378c9[_0x2fd501(0x1ca)][_0x2fd501(0x1e8)]()[_0x2fd501(0x2b5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2fd501(0x251)]['t'](_0x2fd501(0x1e3))};try{const _0x495f38=await this[_0x2fd501(0x1f8)]['get'](_0x5bc65c)[_0x2fd501(0x23e)](_0x1378c9['apiKey']['trim']());return _0x495f38[_0x2fd501(0x233)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x495f38[_0x2fd501(0x227)]||this[_0x2fd501(0x251)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x35dbd3){return console[_0x2fd501(0x1a7)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x35dbd3),{'isValid':!0x0};}}};I=tn([d(0x0,_0x239ee7(_0x53009c)),d(0x1,_0x436320),d(0x2,_0x47eded),d(0x3,_0x8ee795),d(0x4,_0x41daf9),d(0x5,_0x5d1b2b),d(0x6,_0x239ee7(_0x2f2c61)),d(0x7,_0x239ee7(_0x59138c)),d(0x8,_0x4b764d),d(0x9,_0x239ee7(_0x5bc65c))],I);function _0x4331(){const _0x1689dd=['Enable\x20Authentication','mcpStatus.clickToConnect','_uiPartsService','14032gGaOrZ','univer-shrink-0\x20univer-text-red-500','push','SESSION_ID_OCCUPIED','已连接','symbol','_localeService','mcpStatus.connecting','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','配置无效','mcpConfig.connectionStatus.disconnected','Retrying...','mcpServerUrl','Max\x20Retries','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','children','MCP\x20配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','map','univer-space-y-5','RETRYING','mcpConfig.saving','http://www.w3.org/2000/svg','check-mark-icon','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.connectionError.unauthorized','CheckMarkIcon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','noopener\x20noreferrer','API\x20key\x20is\x20required','_initAutoConnect','registerCommand','subscribe','https://console.univer.ai','disposeWithMe','mcpConfig.title','register','Copy\x20the\x20JSON\x20configuration\x20below','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','BUTTON','配置参数:','svg','MCP:\x20Max\x20Retries\x20Exceeded','最大重试次数','530WPPWWt','connectionError$','showDeveloperTools','0\x200\x2017\x2016','mcpConfig.authorizationDescription','CONNECTED','mcpConfig.configStepTitle','current','0\x200\x2016\x2016','_logService','Authorization:','on-line-icon_clip0_910_349','mcpConfig.configStep2','您的\x20API\x20密钥安全存储在本地存储中','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','您的\x20API\x20密钥将在此浏览器中本地存储','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','random','_validateConfig','OTHERS','几秒钟内获取您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','label','What\x20is\x20API\x20Key?','MCP\x20Retrying...','url(#$1','univer-font-medium','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-size-4','_mcpConnectionController','Enable\x20authentication\x20for\x20secure\x20connections','mergeMenu','OffLineIcon','MCP\x20重连中...','assign','mcpConfig.configParameters','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Client\x20Configuration','<API_KEY>','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','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-flex\x20univer-items-start\x20univer-gap-3','next','mcpStatus.networkError','univer-space-y-3','MAX_RETRIES_EXCEEDED','_apiKey$','_config$','请输入您的\x20API\x20密钥','mcpStatus.maxRetriesExceeded','_registerComponent','mcpConfig.connectionError.networkError','univer-text-xs\x20univer-text-gray-600','mcp-config-dialog','off-line-icon','length','button','sessionId$','DISCONNECTED','mcp-ui.config','_localStorageService','pre','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','连接失败','mcpConfig.apiKeyPlaceholder','on-line-icon','getItem','off','__setCustomHeaders','mcpConfig.configInstructions','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','url(#on-line-icon_clip0_910_349)','mcp.apiKey','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-size-2\x20univer-rounded-full','MCP\x20已断开','displayName','会话\x20ID\x20已被占用,请稍后再试','none','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-xs\x20univer-text-gray-500','univer-min-w-0\x20univer-flex-1','网络连接错误,请检查您的网络连接','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','138zYswXt','API\x20密钥长度至少需要\x2010\x20位','Univer\x20AI\x20Console','API\x20密钥不能为空','connectionStatus$','Configuration\x20Parameters:','保存中...','forEach','setItem','mcpConfig.save','getConfig','_initConfigSync','_createConfigPanelComponent','_componentManager','univer-space-y-2','enableAutoConnect','mcp-ui.command.openConfigPanel','get','API\x20Key','FAILED','MCP\x20Connection\x20Failed','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','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mask','univer_session_id:','mcpConfig.connectionError.sessionOccupied','xlink:href','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','保存配置','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_commandService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','复制以下\x20JSON\x20配置','Success','_connectionController','_loadStoredApiKey','mcpConfig.apiApplyInfo.getStarted','mcpStatus.sessionOccupied','<SESSION_ID>','show','subscribeConfigValue$','text','warn','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','API\x20密钥','MCP:\x20未授权','MCP\x20Configuration','7660377WbhpxZ','clipPath','mcpStatus.retrying','fill','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-2','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','配置步骤:','idSuffix','_mcpCoreConfig$','_handleConfigure','mcpConfig.note1','span','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_handleConfigSave','API\x20密钥无效,请检查密钥是否正确','pluginName','4915884rtGHuK','currentColor','defs','启用身份验证以获得安全连接','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','div','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.apiKey','_initStatusComponent','close','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer.ai','apiKey','点击连接\x20MCP','univer.plus','CloseIcon','mcpConfig.connectionStatus.connecting','round','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','univer-text-white','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_dialogService','attrs','tag','univer-bg-green-500','removeItem','univer-bg-gray-500','onStarting','open','defIds','\x20-\x20','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_initializeMenus','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','replace','MCPConfigPanel','mcpConfig.validation.apiKeyTooShort','_configService','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Bearer\x20','trim','mcpConfig.description','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-red-500','12536667OkDyja','mcpStatus.unauthorized','getOwnPropertyDescriptor','重连中...','mcpConfig.configStep1','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.failed','MCP\x20Disconnected','mcpConfig.apiApplyInfo.title','启用身份验证','未连接','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','_injector','MCP\x20已连接','errorMessage','35268WlZHBa','showStatus','\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','off-line-icon_clip0_910_343','includes','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univerjs-icon\x20univerjs-icon-','Configuration\x20saved\x20successfully','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','Invalid\x20configuration','mcpConfig.connectionInfo','M0\x200H16V16H0z','MCP\x20客户端配置','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_config','evenodd','Connecting...','HEADER_MENU','toString','univer-text-sm\x20univer-font-medium','univer-bg-red-500','white','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','_blank','MCP\x20Connected','univer-text-yellow-500','path','点击配置\x20MCP','Univer\x20AI\x20控制台','OnLineIcon','mcpConfig.configError','CONNECTING','1em','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','url(#off-line-icon_clip0_910_343)','colorChannel1','univer-flex\x20univer-items-center\x20univer-gap-3','NONE','univer-flex\x20univer-items-start\x20univer-gap-2','配置保存失败','1883uJqbJF','univer-bg-blue-500','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','error','_menuManagerService','MCP:\x20会话\x20ID\x20已被占用','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MCP\x20连接失败','Disconnected','univer-text-gray-500','showConfigPanel','Error','4036295qeWRwk','超出最大重试次数,请稍后再试','MCP\x20连接中...','isValid','UNAUTHORIZED','554RlZytX','MCP:\x20Session\x20ID\x20Occupied','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','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.validation.invalidConfig','entries','mcpConfig.configStep3','https://mcp.univer.ai/mcp/?univer_session_id=','value','validateApiKey','_loading$','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','defineProperty','http','string','NETWORK_ERROR','配置更改将立即生效','MCP:\x20网络错误','10alzHnw'];_0x4331=function(){return _0x1689dd;};return _0x4331();}function _0x1a3e(_0x1159a7,_0x2225f0){_0x1159a7=_0x1159a7-0x16d;const _0x4331bc=_0x4331();let _0x1a3eed=_0x4331bc[_0x1159a7];return _0x1a3eed;}const V={'id':_0x3d1f73(0x18b),'type':_0xf974da['COMMAND'],'handler':async(_0x33e629,_0x4c0347)=>(_0x33e629[_0x3d1f73(0x18c)](I)[_0x3d1f73(0x22e)](),!0x0)};function pe(_0x431f28,_0x2b3bc0){const _0x586aa0=_0x3d1f73;switch(_0x431f28){case _0x291e3f[_0x586aa0(0x2b8)]:return'mcpStatus.disconnected';case _0x291e3f[_0x586aa0(0x21b)]:return _0x586aa0(0x252);case _0x291e3f['CONNECTED']:return'mcpStatus.connected';case _0x291e3f[_0x586aa0(0x18e)]:switch(_0x2b3bc0){case _0x19f996['UNAUTHORIZED']:return _0x586aa0(0x1ed);case _0x19f996[_0x586aa0(0x24e)]:return _0x586aa0(0x1a2);case _0x19f996['NETWORK_ERROR']:return _0x586aa0(0x2a9);case _0x19f996[_0x586aa0(0x2ab)]:return _0x586aa0(0x2af);default:return _0x586aa0(0x1f2);}case _0x291e3f[_0x586aa0(0x261)]:return _0x586aa0(0x1ae);default:return'mcpStatus.unknown';}}function on(_0x784ae1,_0x1514ab,_0x33a05c,_0x4773a7=!0x0){const _0x5b7a19=_0x3d1f73,_0x81235a=pe(_0x784ae1,_0x1514ab),_0x52c052=_0x33a05c['t'](_0x81235a);return _0x4773a7?_0x784ae1===_0x291e3f[_0x5b7a19(0x2b8)]&&_0x1514ab===_0x19f996[_0x5b7a19(0x234)]?_0x52c052+_0x5b7a19(0x1dd)+_0x33a05c['t']('mcpStatus.clickToConfigure'):_0x784ae1===_0x291e3f['CONNECTED']?''+_0x52c052:_0x784ae1===_0x291e3f['DISCONNECTED']||_0x784ae1===_0x291e3f[_0x5b7a19(0x18e)]?_0x52c052+'\x20-\x20'+_0x33a05c['t'](_0x5b7a19(0x249)):_0x52c052:_0x52c052;}function sn(_0x174c6a){const _0x2b4f22=_0x3d1f73;switch(_0x174c6a){case _0x291e3f['CONNECTED']:return'univer-text-green-500';case _0x291e3f[_0x2b4f22(0x21b)]:case _0x291e3f['RETRYING']:return _0x2b4f22(0x215);case _0x291e3f[_0x2b4f22(0x18e)]:case _0x291e3f[_0x2b4f22(0x2b8)]:return _0x2b4f22(0x1eb);default:return _0x2b4f22(0x22d);}}function cn(_0x36728e){const _0x2c36af=_0x3d1f73,{status$:_0x3184c4,error$:_0x33ea99,onConfigure:_0xebe26a,showClickable:_0x50f0de=!0x0}=_0x36728e,_0x27a9c3=_0x1d42f3(_0x3184c4,_0x291e3f[_0x2c36af(0x2b8)]),_0x21b908=_0x1d42f3(_0x33ea99,_0x19f996[_0x2c36af(0x221)]),_0x338c7e=_0x1671ca(_0x59138c),_0xd8ecd1=_0x27a9c3===_0x291e3f[_0x2c36af(0x280)];_0x27a9c3===_0x291e3f['CONNECTING']||_0x291e3f[_0x2c36af(0x261)];const _0x56c13f=_0x338c7e['t'](pe(_0x27a9c3,_0x21b908)),_0x1bb650=on(_0x27a9c3,_0x21b908,_0x338c7e,_0x50f0de),_0x14cbb8=sn(_0x27a9c3),_0x4f86b4=_0xd8ecd1?_0x20a6ac(ge,{}):_0x20a6ac(de,{}),_0x11f25b=_0x2be0fd(()=>{_0x50f0de&&_0xebe26a&&_0xebe26a();},[_0x50f0de,_0xebe26a]);function _0x562bd4(){const _0x17be3c=_0x2c36af;return _0x4b442f(_0x17be3c(0x1c2),{'className':_0x52a931('univer-flex\x20univer-items-center',_0x50f0de&&_0xebe26a&&_0x17be3c(0x1fd)),'role':_0x17be3c(0x2b6),'onClick':_0x50f0de&&_0xebe26a?_0x11f25b:void 0x0,'children':[_0x20a6ac(_0x17be3c(0x1c2),{'className':_0x52a931(_0x17be3c(0x1c3),_0x14cbb8),'children':_0x4f86b4}),_0x20a6ac(_0x17be3c(0x1c2),{'className':_0x17be3c(0x196),'children':_0x56c13f})]});}return _0x20a6ac(_0x47833d,{'title':_0x1bb650,'placement':'bottom','children':_0x562bd4()});}var an=Object[_0x3d1f73(0x1ee)],ln=(_0x5dc1da,_0x349303,_0x488f55,_0x22dfc9)=>{const _0x3d6504=_0x3d1f73;for(var _0x156a7b=_0x22dfc9>0x1?void 0x0:_0x22dfc9?an(_0x349303,_0x488f55):_0x349303,_0x682a48=_0x5dc1da[_0x3d6504(0x2b5)]-0x1,_0x10b69e;_0x682a48>=0x0;_0x682a48--)(_0x10b69e=_0x5dc1da[_0x682a48])&&(_0x156a7b=_0x10b69e(_0x156a7b)||_0x156a7b);return _0x156a7b;},M=(_0x204959,_0x57bc2c)=>(_0x1506f5,_0x55b280)=>_0x57bc2c(_0x1506f5,_0x55b280,_0x204959);let O=class extends _0x2a5236{constructor(_0x3be0ee,_0x1d7c7f,_0xc8a729,_0x302c7e){const _0x1d4406=_0x3d1f73;super(),this['_injector']=_0x3be0ee,this[_0x1d4406(0x19f)]=_0x1d7c7f,this[_0x1d4406(0x24a)]=_0xc8a729,this[_0x1d4406(0x1e4)]=_0x302c7e,this[_0x1d4406(0x26d)](),this[_0x1d4406(0x1c5)]();}[_0x3d1f73(0x26d)](){const _0x5c93fc=_0x3d1f73,_0x4b4281=this['_configService'][_0x5c93fc(0x185)](y);_0x4b4281!=null&&_0x4b4281[_0x5c93fc(0x27d)]&&(this['_connectionController'][_0x5c93fc(0x18a)]=!0x1);}['_initStatusComponent'](){const _0x3a7f0c=_0x3d1f73,_0x3d4141=this['_configService'][_0x3a7f0c(0x185)](y);(_0x3d4141==null?void 0x0:_0x3d4141[_0x3a7f0c(0x1fc)])!==!0x1&&this[_0x3a7f0c(0x271)](this[_0x3a7f0c(0x24a)]['registerComponent'](_0x5cc78a[_0x3a7f0c(0x20d)],()=>{const _0x3c6309=_0x3a7f0c;var _0x1d18b8;return _0x2e489a(un({'status$':this[_0x3c6309(0x19f)]['connectionStatus$'],'error$':this[_0x3c6309(0x19f)][_0x3c6309(0x27c)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x1d18b8=_0x3d4141==null?void 0x0:_0x3d4141['showDeveloperTools'])!=null?_0x1d18b8:!0x1}),this['_injector']);}));}[_0x3d1f73(0x1b6)](){const _0x4234d3=_0x3d1f73;this[_0x4234d3(0x1f8)][_0x4234d3(0x18c)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x239ee7(_0x53009c)),M(0x1,_0x239ee7(_0x5bc65c)),M(0x2,_0x436320),M(0x3,_0x47eded)],O);function un(_0x1471a2){const {status$:_0x311ec3,error$:_0x1baee1,onConfigure:_0x2fa392,showClickable:_0x57e6ea}=_0x1471a2;return function(){return _0x20a6ac(cn,{'status$':_0x311ec3,'error$':_0x1baee1,'onConfigure':_0x2fa392,'showClickable':_0x57e6ea});};}function vn(_0x54660d){const _0x301763=_0x3d1f73;return{'id':V['id'],'type':_0xc76b71[_0x301763(0x276)],'icon':'MenuIcon','title':_0x301763(0x272),'tooltip':_0x301763(0x272)};}const dn={[_0x47099c[_0x3d1f73(0x28f)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x3d1f73(0x1ee)],pn=(_0x99891f,_0x473c05,_0x2243c5,_0x1aba29)=>{const _0x34c562=_0x3d1f73;for(var _0x4dd756=_0x1aba29>0x1?void 0x0:_0x1aba29?gn(_0x473c05,_0x2243c5):_0x473c05,_0x154b30=_0x99891f[_0x34c562(0x2b5)]-0x1,_0x4ab761;_0x154b30>=0x0;_0x154b30--)(_0x4ab761=_0x99891f[_0x154b30])&&(_0x4dd756=_0x4ab761(_0x4dd756)||_0x4dd756);return _0x4dd756;},re=(_0x11a3c7,_0x2aba66)=>(_0x237969,_0x372b88)=>_0x2aba66(_0x237969,_0x372b88,_0x11a3c7);let D=class extends _0x2a5236{constructor(_0x34c922,_0x20985c){const _0xdcefa9=_0x3d1f73;super(),this[_0xdcefa9(0x19b)]=_0x34c922,this[_0xdcefa9(0x228)]=_0x20985c,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x155187=_0x3d1f73;[V][_0x155187(0x182)](_0x18082f=>{const _0x307aca=_0x155187;this[_0x307aca(0x271)](this['_commandService'][_0x307aca(0x26e)](_0x18082f));});}[_0x3d1f73(0x1df)](){const _0x37c04f=_0x3d1f73;this[_0x37c04f(0x228)][_0x37c04f(0x29b)](dn);}};D=pn([re(0x0,_0x17a58e),re(0x1,_0x10488c)],D);const Mn={'mcpStatus':{'disconnected':_0x3d1f73(0x1f3),'connecting':'MCP\x20Connecting...','connected':_0x3d1f73(0x214),'failed':_0x3d1f73(0x18f),'retrying':_0x3d1f73(0x294),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3d1f73(0x236),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3d1f73(0x279),'clickToConnect':_0x3d1f73(0x1e5),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3d1f73(0x1ab),'description':_0x3d1f73(0x297),'apiKey':_0x3d1f73(0x18d),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3d1f73(0x1b9),'enableAuth':_0x3d1f73(0x248),'enableAuthHint':_0x3d1f73(0x29a),'connectionInfo':_0x3d1f73(0x2a2),'mcpClientConfig':_0x3d1f73(0x2a2),'configInstructions':_0x3d1f73(0x1e0),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3d1f73(0x274),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3d1f73(0x265),'sessionId':'Session\x20ID','sessionIdDescription':_0x3d1f73(0x2a5),'authorizationDescription':_0x3d1f73(0x1f1),'configParameters':_0x3d1f73(0x180),'maxRetries':_0x3d1f73(0x259),'save':'Save\x20Configuration','saving':_0x3d1f73(0x208),'note1':_0x3d1f73(0x2a4),'note2':_0x3d1f73(0x1d3),'configSaved':_0x3d1f73(0x202),'configError':_0x3d1f73(0x1d1),'apiApplyInfo':{'title':_0x3d1f73(0x293),'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':_0x3d1f73(0x17d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3d1f73(0x26c),'apiKeyTooShort':_0x3d1f73(0x170),'invalidConfig':_0x3d1f73(0x204),'invalidApiKey':_0x3d1f73(0x1d0)},'connectionStatus':{'disconnected':_0x3d1f73(0x22c),'connecting':_0x3d1f73(0x20c),'connected':'Connected','failed':_0x3d1f73(0x199),'retrying':_0x3d1f73(0x257)},'connectionError':{'unauthorized':_0x3d1f73(0x209),'sessionOccupied':_0x3d1f73(0x226),'networkError':_0x3d1f73(0x198),'maxRetriesExceeded':_0x3d1f73(0x28a)}}},An={'mcpStatus':{'disconnected':_0x3d1f73(0x172),'connecting':_0x3d1f73(0x232),'connected':_0x3d1f73(0x1f9),'failed':_0x3d1f73(0x22b),'retrying':_0x3d1f73(0x29d),'unknown':'MCP\x20状态未知','unauthorized':_0x3d1f73(0x1aa),'sessionOccupied':_0x3d1f73(0x229),'networkError':_0x3d1f73(0x246),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x3d1f73(0x1cb),'clickToConfigure':_0x3d1f73(0x217)},'mcpConfig':{'title':_0x3d1f73(0x25c),'description':_0x3d1f73(0x176),'apiKey':_0x3d1f73(0x1a9),'apiKeyPlaceholder':_0x3d1f73(0x2ae),'apiKeyHint':_0x3d1f73(0x28b),'enableAuth':_0x3d1f73(0x1f5),'enableAuthHint':_0x3d1f73(0x1c0),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x3d1f73(0x207),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x3d1f73(0x1b3),'configStep1':_0x3d1f73(0x19d),'configStep2':_0x3d1f73(0x238),'configStep3':_0x3d1f73(0x291),'sessionId':'会话ID','sessionIdDescription':_0x3d1f73(0x25d),'authorizationDescription':_0x3d1f73(0x1ea),'configParameters':_0x3d1f73(0x277),'maxRetries':_0x3d1f73(0x27a),'save':_0x3d1f73(0x197),'saving':_0x3d1f73(0x181),'note1':_0x3d1f73(0x245),'note2':_0x3d1f73(0x288),'configSaved':'配置保存成功','configError':_0x3d1f73(0x223),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x3d1f73(0x266),'univerAiLabel':_0x3d1f73(0x218),'getStarted':_0x3d1f73(0x290)},'validation':{'apiKeyRequired':_0x3d1f73(0x17e),'apiKeyTooShort':_0x3d1f73(0x17c),'invalidConfig':_0x3d1f73(0x255),'invalidApiKey':_0x3d1f73(0x1bb)},'connectionStatus':{'disconnected':_0x3d1f73(0x1f6),'connecting':'连接中...','connected':_0x3d1f73(0x24f),'failed':_0x3d1f73(0x2bd),'retrying':_0x3d1f73(0x1ef)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x3d1f73(0x174),'networkError':_0x3d1f73(0x179),'maxRetriesExceeded':_0x3d1f73(0x231)}}};var fn=Object[_0x3d1f73(0x241)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x40a645,_0xe4a032,_0x42c177)=>_0xe4a032 in _0x40a645?fn(_0x40a645,_0xe4a032,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42c177}):_0x40a645[_0xe4a032]=_0x42c177,mn=(_0x2be425,_0x1e739e,_0x28c91e,_0x5248d1)=>{const _0x10d2fa=_0x3d1f73;for(var _0x58c36a=_0x5248d1>0x1?void 0x0:_0x5248d1?hn(_0x1e739e,_0x28c91e):_0x1e739e,_0x44d4d9=_0x2be425[_0x10d2fa(0x2b5)]-0x1,_0x138a3d;_0x44d4d9>=0x0;_0x44d4d9--)(_0x138a3d=_0x2be425[_0x44d4d9])&&(_0x58c36a=_0x138a3d(_0x58c36a)||_0x58c36a);return _0x58c36a;},P=(_0x582a2e,_0x26e751)=>(_0x564970,_0x4e6077)=>_0x26e751(_0x564970,_0x4e6077,_0x582a2e),_n=(_0x1fbfcc,_0x1098d2,_0x56d432)=>Cn(_0x1fbfcc,_0x1098d2+'',_0x56d432);let j=class extends _0x5bf17b{constructor(_0x2fc2cb=ie,_0x1a9aee,_0x25ca7b,_0x35ef71,_0x723f67,_0x3beb59){const _0x3f3588=_0x3d1f73;super(),this['_config']=_0x2fc2cb,this[_0x3f3588(0x1f8)]=_0x1a9aee,this['_configService']=_0x25ca7b,this[_0x3f3588(0x24a)]=_0x35ef71,this['_localStorageService']=_0x723f67,this['_localeService']=_0x3beb59;const {..._0x332faa}=_0x2d62e4({},ie,this[_0x3f3588(0x20a)]);this[_0x3f3588(0x1e4)]['setConfig'](y,_0x332faa);}async[_0x3d1f73(0x1da)](){const _0x142c83=_0x3d1f73,_0x39a90e=[[O],[I],[D]];this['_injector']['has'](_0x33978c)||_0x39a90e[_0x142c83(0x24d)]([_0x33978c,{'useClass':_0x15ecd1}]),_0x39a90e[_0x142c83(0x182)](_0x4d96d8=>this[_0x142c83(0x1f8)]['add'](_0x4d96d8)),this[_0x142c83(0x1f8)][_0x142c83(0x18c)](O),this['_injector']['get'](I),this[_0x142c83(0x1f8)][_0x142c83(0x18c)](D);}};_n(j,_0x3d1f73(0x1bc),'MCP_UI_PLUGIN'),j=mn([_0x3951f0(_0x38e135),P(0x1,_0x239ee7(_0x53009c)),P(0x2,_0x47eded),P(0x3,_0x436320),P(0x4,_0x8ee795),P(0x5,_0x239ee7(_0x59138c))],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 _0xc1882f=_0x2b73;(function(_0x27aedd,_0x5aa6b3){const _0x3d4f33=_0x2b73,_0x5f211f=_0x27aedd();while(!![]){try{const _0x4295c5=parseInt(_0x3d4f33(0x1ab))/0x1*(-parseInt(_0x3d4f33(0x1dc))/0x2)+-parseInt(_0x3d4f33(0x130))/0x3+parseInt(_0x3d4f33(0x129))/0x4+-parseInt(_0x3d4f33(0x1cf))/0x5*(-parseInt(_0x3d4f33(0x147))/0x6)+-parseInt(_0x3d4f33(0x1ee))/0x7+-parseInt(_0x3d4f33(0x23b))/0x8+parseInt(_0x3d4f33(0x194))/0x9;if(_0x4295c5===_0x5aa6b3)break;else _0x5f211f['push'](_0x5f211f['shift']());}catch(_0x66d560){_0x5f211f['push'](_0x5f211f['shift']());}}}(_0x4918,0x33f7a));var Pe=Object['defineProperty'],Ee=(_0x45addc,_0x66245b,_0x10fbf1)=>_0x66245b in _0x45addc?Pe(_0x45addc,_0x66245b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10fbf1}):_0x45addc[_0x66245b]=_0x10fbf1,x=(_0x27f3a8,_0xdd03ff,_0x57911e)=>Ee(_0x27f3a8,typeof _0xdd03ff!=_0xc1882f(0x269)?_0xdd03ff+'':_0xdd03ff,_0x57911e);import{LocaleService as _0x1e89fe,Inject as _0xc0b699,Injector as _0x3b274d,Disposable as _0x2595b1,IConfigService as _0x27ee87,ILocalStorageService as _0x1c57e0,ILogService as _0x30322e,CommandType as _0x4ccdae,ICommandService as _0x5911d4,DependentOn as _0x28f4fc,Plugin as _0x59c2b1,merge as _0x4d7e38}from'@univerjs/core';import{jsxs as _0x4c6a3d,jsx as _0x28c207}from'react/jsx-runtime';import{MCPConnectionStatus as _0x4b36b6,MCPConnectionError as _0x1d2c28,MCPConnectionController as _0x14ed3b,MCP_PLUGIN_CONFIG_KEY as _0x10d630,UniverMCPPlugin as _0x4a0391}from'@univerjs-pro/mcp';import{clsx as _0x3a12a5,Input as _0x33ea26,Button as _0x45b7b7,MessageType as _0x284621,Tooltip as _0x1cb187}from'@univerjs/design';import{useDependency as _0x2ca0d6,useObservable as _0xdb40c8,ComponentManager as _0x849cd3,connectInjector as _0x176dad,IUIPartsService as _0x3377e8,IDialogService as _0x58dfdb,IMessageService as _0x3b7f20,BuiltInUIPart as _0x3ffd53,MenuItemType as _0x393433,RibbonStartGroup as _0xf870d5,IMenuManagerService as _0x3db316}from'@univerjs/ui';function _0x4918(){const _0x22a675=['univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_config$','MCP\x20连接失败','univer.ai','idSuffix','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','UniverIcon','mask','1720656vHWceb','has','网络连接错误,请检查您的网络连接','mcpStatus.unauthorized','assign','MCP\x20配置','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-bg-blue-500','mcpConfig.note2','url(#$1','mcpConfig.connectionStatus.failed','disposeWithMe','mcpStatus.clickToConnect','enableAutoConnect','API\x20密钥不能为空','univer-space-y-3','off','UNAUTHORIZED','mcpStatus.retrying','children','MCP\x20Retrying...','mcpConfig.apiApplyInfo.description','mcpConfig.apiKey','CheckMarkIcon','defs','NETWORK_ERROR','Authorization:','_commandService','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','mcp-ui.config','mcpConfig.apiApplyInfo.title','重启您的\x20MCP\x20客户端以使配置生效','Save\x20Configuration','_loadStoredApiKey','<SESSION_ID>','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','https://mcp.univer.ai/mcp/?univer_session_id=','_initializeCommands','connectionStatus$','path','univer-text-red-500','_apiKey$','univer-flex\x20univer-gap-3','_mcpCoreConfig$','mcpStatus.disconnected','_localStorageService','symbol','currentColor','mcpConfig.connectionInfo','Max\x20Retries','MCP\x20客户端配置','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','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','MAX_RETRIES_EXCEEDED','MCP:\x20Max\x20Retries\x20Exceeded','配置步骤:','length','univer-text-yellow-500','add','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','API\x20key\x20is\x20required','univer-text-blue-600','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.connectionStatus.retrying','MenuIcon','close-icon','59084ISGLlc','trim','DISCONNECTED','Copy\x20the\x20JSON\x20configuration\x20below','您的\x20API\x20密钥安全存储在本地存储中','univer-flex\x20univer-items-center','string','1140039mdkMzY','mcpConfig.authorizationDescription','mcpConfig.apiApplyInfo.getStarted','error','mcpStatus.unknown','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.configStep3','mcpConfig.validation.invalidApiKey','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-space-y-4','点击连接\x20MCP','univerjs-icon\x20univerjs-icon-','1em','Univer\x20AI\x20Console','univer-space-y-5','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_uiPartsService','mcp.apiKey','_injector','setItem','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','6vyUOuz','复制以下\x20JSON\x20配置','round','MCP\x20Disconnected','mcpConfig.note1','MCPConfigPanel','use','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-text-sm\x20univer-text-gray-500','div','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','您的\x20API\x20密钥将在此浏览器中本地存储','univer-shrink-0\x20univer-text-red-500','forEach','univer-flex-1','_componentManager','mcpConfig.connectionStatus.connecting','启用身份验证以获得安全连接','defIds','mcpConfig.apiApplyInfo.univerAiLabel','on-line-icon','sessionId$','OnLineIcon','RETRYING','_initStatusComponent','getConfig','COMMAND','open','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_dialogService','_messageService','mcpConfig.configStep1','点击配置\x20MCP','next','evenodd','_loading$','_menuManagerService','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','check-mark-icon','__setCustomHeaders','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20状态未知','https://console.univer.plus','univer-text-xs\x20univer-text-gray-500','_config','NONE','会话\x20ID\x20已被占用,请稍后再试','_connectionController','MCP\x20Connected','close','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpStatus.maxRetriesExceeded','univer_session_id:','MCP\x20连接中...','mcpConfig.saving','0\x200\x2016\x2016','BUTTON','API\x20密钥无效,请检查密钥是否正确','mcpConfig.description','bottom','univer-flex\x20univer-items-start\x20univer-gap-3','label','mcpConfig.configParameters','_initConfigSync','subscribeConfigValue$','displayName','配置无效','保存中...','univer-font-medium','Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Saving...','mcpConfig.connectionError.maxRetriesExceeded','_handleConfigSave','保存配置','includes','univer-shrink-0\x20univer-text-blue-500','5964327SElGjq','off-line-icon_clip0_910_343','Failed\x20to\x20save\x20configuration','CloseIcon','MCP\x20已连接','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.configError','substring','show','xlink:href','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','请输入您的\x20API\x20密钥','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','apiKey','CONNECTED','univer-text-green-500','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','removeItem','Get\x20your\x20API\x20key\x20in\x20seconds','_logService','svg','123926cQJyax','errorMessage','mcpConfig.apiKeyPlaceholder','OffLineIcon','mcpConfig.apiKeyHint','CONNECTING','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','已连接','mcp-ui.command.openConfigPanel','mcp-config-dialog','univer-min-w-0\x20univer-flex-1','Click\x20to\x20configure\x20MCP','mcpStatus.connecting','最大重试次数','_registerComponent','register','span','registerComponent','MCP\x20已断开','mergeMenu','Bearer\x20','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','replace','Invalid\x20configuration','getOwnPropertyDescriptor','mcpStatus.sessionOccupied','showStatus','mcpStatus.connected','subscribe','FAILED','pre','_mcpConnectionController','entries','What\x20is\x20API\x20Key?','univer-text-gray-400','\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','1397465SmbJPu','univer.plus','none','Success','isValid','Configuration\x20Steps:','push','权限验证失败,请检查您的\x20API\x20密钥','connectionError$','mcpConfig.validation.apiKeyRequired','MCP\x20Configuration','<API_KEY>','http://www.w3.org/2000/svg','2idjrdD','Error','registerCommand','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.title','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','mcpConfig.connectionError.unauthorized','0\x200\x2017\x2016','fill','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','重连中...','univer-size-2\x20univer-rounded-full','colorChannel1','http','几秒钟内获取您的\x20API\x20密钥','Click\x20to\x20connect\x20MCP','\x20-\x20','MCP\x20Unknown\x20Status','175616eeHtWy','showDeveloperTools','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionStatus.connected','_createConfigPanelComponent','MCP:\x20超出最大重试次数','univer-size-4','getCurrentConfig','Retrying...','MCP\x20Connection\x20Failed','mcpStatus.networkError','连接失败','_initializeMenus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP_UI_PLUGIN','M0\x200H16V16H0z','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','tag','univer-bg-gray-500','配置保存失败','get','clipPath','MCP:\x20网络错误','_blank','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','univer-flex\x20univer-items-center\x20univer-gap-2','连接中...','mcpConfig.connectionError.sessionOccupied','univer-space-y-2','mcpConfig.sessionIdDescription','attrs','Configuration\x20Parameters:','off-line-icon','mcpServerUrl','_configService','SESSION_ID_OCCUPIED','translate(.97)','univer-text-sm\x20univer-font-medium','white','配置更改将立即生效','mcpConfig.configStepTitle','Univer\x20AI\x20控制台','map','setConfig','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','showConfigPanel','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_handleConfigure','value','Configuration\x20Notes:','noopener\x20noreferrer','HelpIcon','onStarting','超出最大重试次数,请稍后再试','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.validation.apiKeyTooShort','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','text','univer-bg-red-500','_localeService','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.validation.invalidConfig','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','button','未连接','mcpConfig.configSaved','random','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:'];_0x4918=function(){return _0x22a675;};return _0x4918();}import{BehaviorSubject as _0x5e871f}from'rxjs';import{useRef as _0x59237c,createElement as _0x439406,forwardRef as _0x8e738c,useState as _0x47f360,useCallback as _0x3300f8}from'react';import{ISocketService as _0x50d983,WebSocketService as _0x3a96fd}from'@univerjs/network';function b({ref:_0x1d7443,..._0x512420}){const _0x13c918=_0xc1882f,{icon:_0x2ffcec,id:_0x3c5223,className:_0x2ed273,extend:_0x72e4e1,..._0x57bc60}=_0x512420,_0x1318d7=(_0x13c918(0x13c)+_0x3c5223+'\x20'+(_0x2ed273||''))[_0x13c918(0x12a)](),_0x2c198c=_0x59237c('_'+We());return ae(_0x2ffcec,''+_0x3c5223,{'defIds':_0x2ffcec[_0x13c918(0x159)],'idSuffix':_0x2c198c['current']},{'ref':_0x1d7443,'className':_0x1318d7,..._0x57bc60},_0x72e4e1);}function ae(_0xcf7f72,_0x58ab49,_0x25c14c,_0x5abb01,_0x3b231d){const _0x5da8fe=_0xc1882f;return _0x439406(_0xcf7f72[_0x5da8fe(0x1ff)],{'key':_0x58ab49,...Ye(_0xcf7f72,_0x25c14c,_0x3b231d),..._0x5abb01},(Ze(_0xcf7f72,_0x25c14c)[_0x5da8fe(0x24e)]||[])['map']((_0x2c132c,_0x78002c)=>ae(_0x2c132c,_0x58ab49+'-'+_0xcf7f72['tag']+'-'+_0x78002c,_0x25c14c,void 0x0,_0x3b231d)));}function Ye(_0x72ac8b,_0xf5cde,_0x3909e8){const _0x22be0c=_0xc1882f,_0x4fc469={..._0x72ac8b[_0x22be0c(0x20c)]};_0x3909e8!=null&&_0x3909e8[_0x22be0c(0x1e8)]&&_0x4fc469['fill']===_0x22be0c(0x1e8)&&(_0x4fc469[_0x22be0c(0x1e4)]=_0x3909e8[_0x22be0c(0x1e8)]),_0x72ac8b['tag']===_0x22be0c(0x23a)&&_0x4fc469['id']&&(_0x4fc469['id']=_0x4fc469['id']+_0xf5cde[_0x22be0c(0x236)]),Object[_0x22be0c(0x1cb)](_0x4fc469)['forEach'](([_0x189e8f,_0x58d452])=>{const _0x126041=_0x22be0c;_0x189e8f===_0x126041(0x23a)&&typeof _0x58d452==_0x126041(0x12f)&&(_0x4fc469[_0x189e8f]=_0x58d452[_0x126041(0x1c1)](/url\(#(.*)\)/,_0x126041(0x244)+_0xf5cde['idSuffix']+')'));});const {defIds:_0x4795ba}=_0xf5cde;return!_0x4795ba||_0x4795ba[_0x22be0c(0x275)]===0x0||(_0x72ac8b[_0x22be0c(0x1ff)]===_0x22be0c(0x14d)&&_0x4fc469[_0x22be0c(0x19e)]&&(_0x4fc469[_0x22be0c(0x19e)]=_0x4fc469[_0x22be0c(0x19e)]+_0xf5cde['idSuffix']),Object[_0x22be0c(0x1cb)](_0x4fc469)[_0x22be0c(0x154)](([_0x59071f,_0x3d859f])=>{const _0x3cbea7=_0x22be0c;typeof _0x3d859f==_0x3cbea7(0x12f)&&(_0x4fc469[_0x59071f]=_0x3d859f[_0x3cbea7(0x1c1)](/url\(#(.*)\)/,_0x3cbea7(0x244)+_0xf5cde['idSuffix']+')'));})),_0x4fc469;}function Ze(_0x20be2b,_0x3b6942){const _0xc7a401=_0xc1882f;var _0x335468;const {defIds:_0xbb473a}=_0x3b6942;return!_0xbb473a||_0xbb473a[_0xc7a401(0x275)]===0x0?_0x20be2b:_0x20be2b[_0xc7a401(0x1ff)]===_0xc7a401(0x253)&&((_0x335468=_0x20be2b[_0xc7a401(0x24e)])!=null&&_0x335468[_0xc7a401(0x275)])?{..._0x20be2b,'children':_0x20be2b[_0xc7a401(0x24e)][_0xc7a401(0x218)](_0x46254d=>typeof _0x46254d[_0xc7a401(0x20c)]['id']==_0xc7a401(0x12f)&&_0xbb473a&&_0xbb473a[_0xc7a401(0x192)](_0x46254d['attrs']['id'])?{..._0x46254d,'attrs':{..._0x46254d[_0xc7a401(0x20c)],'id':_0x46254d['attrs']['id']+_0x3b6942[_0xc7a401(0x236)]}}:_0x46254d)}:_0x20be2b;}function We(){const _0x8ae4ee=_0xc1882f;return Math[_0x8ae4ee(0x230)]()['toString'](0x24)[_0x8ae4ee(0x19c)](0x2,0x8);}b[_0xc1882f(0x188)]=_0xc1882f(0x239);const qe={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x17e),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':'evenodd'}}]},le=_0x8e738c(function(_0x3ee43d,_0x350f43){const _0x4846bc=_0xc1882f;return _0x439406(b,Object[_0x4846bc(0x23f)]({},_0x3ee43d,{'id':_0x4846bc(0x16d),'ref':_0x350f43,'icon':qe}));});le[_0xc1882f(0x188)]=_0xc1882f(0x252);const Xe={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':_0xc1882f(0x1db),'fill':'none','viewBox':_0xc1882f(0x17e),'width':'1em','height':_0xc1882f(0x13d)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x8e738c(function(_0x5717c0,_0xacab94){const _0x4d1803=_0xc1882f;return _0x439406(b,Object[_0x4d1803(0x23f)]({},_0x5717c0,{'id':_0x4d1803(0x27f),'ref':_0xacab94,'icon':Xe}));});ue[_0xc1882f(0x188)]=_0xc1882f(0x197);const Je={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':_0xc1882f(0x1db),'fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x17e),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x26a),'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':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x26a),'d':_0xc1882f(0x1e1)}},{'tag':_0xc1882f(0x262),'attrs':{'fill':'currentColor','d':_0xc1882f(0x25e),'fillRule':'evenodd','clipRule':_0xc1882f(0x169)}}]},ve=_0x8e738c(function(_0x50d59e,_0x2416a7){return _0x439406(b,Object['assign']({},_0x50d59e,{'id':'help-icon','ref':_0x2416a7,'icon':Je}));});ve['displayName']=_0xc1882f(0x221);const Qe={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x17e),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'stroke':_0xc1882f(0x26a),'d':_0xc1882f(0x21a),'strokeLinecap':_0xc1882f(0x149),'strokeLinejoin':_0xc1882f(0x149),'strokeWidth':1.2}}]},{'tag':_0xc1882f(0x253),'attrs':{},'children':[{'tag':_0xc1882f(0x203),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x214),'d':_0xc1882f(0x1fd)}}]}]}],'defIds':[_0xc1882f(0x195)]},de=_0x8e738c(function(_0x2a3d77,_0x44cc16){const _0x4caa9f=_0xc1882f;return _0x439406(b,Object['assign']({},_0x2a3d77,{'id':_0x4caa9f(0x20e),'ref':_0x44cc16,'icon':Qe}));});de[_0xc1882f(0x188)]=_0xc1882f(0x1ae);const en={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':_0xc1882f(0x1db),'fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x1e3),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'stroke':'currentColor','d':_0xc1882f(0x1a6),'strokeLinecap':_0xc1882f(0x149),'strokeLinejoin':_0xc1882f(0x149),'strokeWidth':1.2}}]},{'tag':_0xc1882f(0x253),'attrs':{},'children':[{'tag':_0xc1882f(0x203),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x214),'d':_0xc1882f(0x1fd),'transform':_0xc1882f(0x212)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x8e738c(function(_0x36f6e8,_0x29f4e6){const _0x559e49=_0xc1882f;return _0x439406(b,Object[_0x559e49(0x23f)]({},_0x36f6e8,{'id':_0x559e49(0x15b),'ref':_0x29f4e6,'icon':en}));});ge[_0xc1882f(0x188)]=_0xc1882f(0x15d);function nn(_0xfb0a8e){const _0xfa9459=_0xc1882f;var _0x175e75,_0x175fe4;const {mcpCoreConfig:_0x58bec3,onSave:_0x3b9778,loading:_0x5d3034=!0x1,config:_0x10c721,connectionStatus$:_0x3ad27d,connectionError$:_0x57826d,currentApiKey$:_0xbb4358,currentSessionId$:_0x720bea}=_0xfb0a8e,_0x2fd2c3=_0x2ca0d6(_0x1e89fe),_0x568121=_0xdb40c8(_0x3ad27d,_0x4b36b6[_0xfa9459(0x12b)]),_0x46cfa5=_0xdb40c8(_0x57826d,_0x1d2c28[_0xfa9459(0x174)]),_0x29e8a2=_0xdb40c8(_0x720bea,''),_0xba196e=_0xdb40c8(_0xbb4358,''),[_0x4af113,_0x157a17]=_0x47f360(_0xba196e||''),_0x433556=!0x0,_0x56fd9f=_0x10c721[_0xfa9459(0x1ef)]&&_0x58bec3['mcpServerUrl']&&(_0x58bec3['mcpServerUrl']['includes'](_0xfa9459(0x1d0))||_0x58bec3[_0xfa9459(0x20f)][_0xfa9459(0x192)](_0xfa9459(0x235))),_0x53723c=(_0x175e75=_0x58bec3['mcpServerUrl'])==null?void 0x0:_0x175e75['includes'](_0xfa9459(0x1d0)),_0x55291a=(_0x175fe4=_0x58bec3[_0xfa9459(0x20f)])==null?void 0x0:_0x175fe4[_0xfa9459(0x192)](_0xfa9459(0x235)),_0x4bc47a=_0x53723c?_0xfa9459(0x171):'https://console.univer.ai',_0x32f209=_0x10c721[_0xfa9459(0x1ef)]&&(_0x53723c||_0x55291a),[_0xa1afb0,_0xa80a14]=_0x47f360(!_0x4af113[_0xfa9459(0x12a)]()),_0x31684e=(_0x16bb3d,_0x1dd5f1)=>{const _0x2f34e9=_0xfa9459;if(_0x1dd5f1===_0x1d2c28[_0x2f34e9(0x24c)])return _0x2f34e9(0x270);switch(_0x16bb3d){case _0x4b36b6['CONNECTED']:return _0x2f34e9(0x146);case _0x4b36b6['CONNECTING']:case _0x4b36b6[_0x2f34e9(0x15e)]:return _0x2f34e9(0x16f);case _0x4b36b6[_0x2f34e9(0x1c8)]:return _0x2f34e9(0x270);default:return _0x2f34e9(0x27b);}},_0x1aedee=(_0x59f965,_0x1f1f4b)=>{const _0x22784a=_0xfa9459;if(_0x1f1f4b===_0x1d2c28['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x59f965){case _0x4b36b6[_0x22784a(0x1a4)]:return'univer-bg-green-500';case _0x4b36b6[_0x22784a(0x1b0)]:case _0x4b36b6[_0x22784a(0x15e)]:return _0x22784a(0x242);case _0x4b36b6[_0x22784a(0x1c8)]:return _0x22784a(0x228);default:return _0x22784a(0x200);}},_0x1efb93=_0x1135a2=>{const _0x525072=_0xfa9459;switch(_0x1135a2){case _0x4b36b6[_0x525072(0x1a4)]:return _0x2fd2c3['t'](_0x525072(0x1f1));case _0x4b36b6[_0x525072(0x1b0)]:return _0x2fd2c3['t'](_0x525072(0x157));case _0x4b36b6[_0x525072(0x1c8)]:return _0x2fd2c3['t'](_0x525072(0x245));case _0x4b36b6[_0x525072(0x15e)]:return _0x2fd2c3['t'](_0x525072(0x27d));default:return _0x2fd2c3['t']('mcpConfig.connectionStatus.disconnected');}},_0x1c3f1b=_0x1b81a2=>{const _0x33c6ce=_0xfa9459;switch(_0x1b81a2){case _0x1d2c28[_0x33c6ce(0x24c)]:return _0x2fd2c3['t'](_0x33c6ce(0x1e2));case _0x1d2c28[_0x33c6ce(0x211)]:return _0x2fd2c3['t'](_0x33c6ce(0x209));case _0x1d2c28['NETWORK_ERROR']:return _0x2fd2c3['t']('mcpConfig.connectionError.networkError');case _0x1d2c28['MAX_RETRIES_EXCEEDED']:return _0x2fd2c3['t'](_0x33c6ce(0x18f));default:return'';}},_0x2192cf=_0x3300f8(()=>{const _0x281934={..._0x58bec3,'apiKey':_0x4af113['trim'](),'enableAuth':_0x433556};_0x3b9778(_0x281934);},[_0x58bec3,_0x4af113,_0x433556,_0x3b9778]),_0x51ada3=_0x4af113[_0xfa9459(0x12a)]()[_0xfa9459(0x275)]>0x0;return _0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x1b1),'children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x26e),'children':_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x232),'children':_0x28c207(_0xfa9459(0x1bb),{'className':'univer-text-white','children':'⚙'})}),_0x28c207(_0xfa9459(0x150),{'children':_0x28c207('p',{'className':_0xfa9459(0x14f),'children':_0x2fd2c3['t'](_0xfa9459(0x181))})})]})}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x140),'children':[_0x28c207('div',{'className':_0x3a12a5('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x31684e(_0x568121,_0x46cfa5)),'children':_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x28c207(_0xfa9459(0x150),{'className':_0x3a12a5(_0xfa9459(0x1e7),_0x1aedee(_0x568121,_0x46cfa5))}),_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x213),'children':_0x1efb93(_0x568121)})]})}),_0x46cfa5!==_0x1d2c28['NONE']&&(_0x568121===_0x4b36b6[_0xfa9459(0x1c8)]||_0x46cfa5===_0x1d2c28[_0xfa9459(0x24c)])&&_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x163),'children':_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x26f),'children':[_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x153),'children':'⚠️'}),_0x28c207('p',{'className':_0xfa9459(0x21c),'children':_0x1c3f1b(_0x46cfa5)})]})})]}),_0x28c207(_0xfa9459(0x150),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x13f),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x20a),'children':[_0x4c6a3d(_0xfa9459(0x184),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x28c207('span',{'children':'🔑'}),'\x20',_0x2fd2c3['t'](_0xfa9459(0x251)),_0x28c207('span',{'className':'univer-text-red-500','children':'*'}),_0x56fd9f&&_0x28c207('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':_0x2fd2c3['t'](_0xfa9459(0x259)),'role':'button','onClick':()=>_0xa80a14(!0x0),'children':_0x28c207(ve,{})})]}),_0x28c207(_0x33ea26,{'type':_0xfa9459(0x227),'placeholder':_0x2fd2c3['t'](_0xfa9459(0x1ad)),'value':_0x4af113,'disabled':_0x5d3034,'autoComplete':_0xfa9459(0x24b),'onChange':_0x157a17}),_0x28c207('p',{'className':_0xfa9459(0x172),'children':_0x2fd2c3['t'](_0xfa9459(0x1af))})]}),_0x56fd9f&&_0xa1afb0&&_0x4c6a3d('div',{'className':_0xfa9459(0x271),'children':[_0x28c207('a',{'className':_0xfa9459(0x257),'role':'button','onClick':()=>_0xa80a14(!0x1),'children':_0x28c207(ue,{'className':_0xfa9459(0x1f4)})}),_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x27a),'children':'🚀'})}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x155),'children':[_0x28c207('h4',{'className':_0xfa9459(0x141),'children':_0x2fd2c3['t'](_0xfa9459(0x259))}),_0x28c207('p',{'className':_0xfa9459(0x135),'children':_0x2fd2c3['t'](_0xfa9459(0x250))}),_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x22a),'children':_0x32f209&&_0x4c6a3d('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x4bc47a,'target':_0xfa9459(0x205),'rel':_0xfa9459(0x220),'children':[_0x28c207('span',{'children':'🤖'}),_0x2fd2c3['t'](_0xfa9459(0x15a)),_0x28c207('span',{'className':_0xfa9459(0x1cd),'children':'↗'})]})}),_0x4c6a3d('div',{'className':_0xfa9459(0x27c),'children':['✨','\x20',_0x2fd2c3['t'](_0xfa9459(0x132))]})]})]})]}),_0x10c721[_0xfa9459(0x1ef)]&&_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x4c6a3d('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x28c207(_0xfa9459(0x1bb),{'children':'🔗'}),'\x20',_0x2fd2c3['t'](_0xfa9459(0x26b))]}),_0x4c6a3d('div',{'className':_0xfa9459(0x13a),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x24a),'children':[_0x28c207('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x2fd2c3['t']('mcpConfig.configInstructions')}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x20a),'children':[_0x28c207('div',{'className':_0xfa9459(0x22c),'children':_0x2fd2c3['t'](_0xfa9459(0x216))}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x1f0),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x207),'children':[_0x28c207(_0xfa9459(0x1bb),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x2fd2c3['t'](_0xfa9459(0x166))]}),_0x4c6a3d('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x28c207('span',{'className':_0xfa9459(0x206),'children':'2'}),_0x2fd2c3['t']('mcpConfig.configStep2')]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x207),'children':[_0x28c207('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x2fd2c3['t'](_0xfa9459(0x137))]})]})]})]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x20a),'children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),_0x28c207('div',{'className':_0xfa9459(0x241),'children':_0x28c207(_0xfa9459(0x1c9),{'className':_0xfa9459(0x278),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xfa9459(0x25f)+(_0x29e8a2||_0xfa9459(0x25d)),'type':_0xfa9459(0x1e9),'headers':{'Authorization':'Bearer\x20'+(_0x4af113||_0xfa9459(0x1da))}}}},null,0x2)})})]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x24a),'children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x22c),'children':_0x2fd2c3['t'](_0xfa9459(0x185))}),_0x4c6a3d('div',{'className':_0xfa9459(0x20a),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x28c207('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x1fb),'children':_0xfa9459(0x17b)}),_0x28c207('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2fd2c3['t'](_0xfa9459(0x20b))})]})]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x183),'children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x1b5),'children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xfa9459(0x255)}),_0x28c207('div',{'className':_0xfa9459(0x172),'children':_0x2fd2c3['t'](_0xfa9459(0x131))})]})]})]})]})]})]}),_0x28c207(_0x45b7b7,{'onClick':_0x2192cf,'disabled':!_0x51ada3||_0x5d3034,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x5d3034?_0x4c6a3d(_0xfa9459(0x1bb),{'className':_0xfa9459(0x207),'children':[_0x28c207(_0xfa9459(0x1bb),{'children':'⟲'}),_0x2fd2c3['t'](_0xfa9459(0x17d))]}):_0x4c6a3d(_0xfa9459(0x1bb),{'className':_0xfa9459(0x207),'children':[_0x28c207(le,{}),_0x2fd2c3['t']('mcpConfig.save')]})}),_0x28c207(_0xfa9459(0x150),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x265),'children':[_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x193),'children':'💡'}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x179),'children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x18b),'children':_0xfa9459(0x21f)}),_0x4c6a3d(_0xfa9459(0x150),{'children':['•',_0x2fd2c3['t'](_0xfa9459(0x14b))]}),_0x4c6a3d(_0xfa9459(0x150),{'children':['•',_0x2fd2c3['t'](_0xfa9459(0x243))]})]})]})})]})})]});}const y=_0xc1882f(0x258),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0xc1882f(0x1c3)],tn=(_0x328e23,_0x351438,_0x1d7d22,_0x4d3c98)=>{const _0x561155=_0xc1882f;for(var _0x4bf5f4=_0x4d3c98>0x1?void 0x0:_0x4d3c98?rn(_0x351438,_0x1d7d22):_0x351438,_0x55925b=_0x328e23[_0x561155(0x275)]-0x1,_0x48f9da;_0x55925b>=0x0;_0x55925b--)(_0x48f9da=_0x328e23[_0x55925b])&&(_0x4bf5f4=_0x48f9da(_0x4bf5f4)||_0x4bf5f4);return _0x4bf5f4;},d=(_0x3b99b9,_0x18a9bd)=>(_0x384a9f,_0x1a0ead)=>_0x18a9bd(_0x384a9f,_0x1a0ead,_0x3b99b9);const U=_0xc1882f(0x143),L=_0xc1882f(0x1b4);let I=class extends _0x2595b1{constructor(_0x360f95,_0x4806b0,_0x4c4a13,_0x22ee49,_0x2a223f,_0x1a8a65,_0x26a76d,_0x4f2769,_0x191c67,_0x2f492a){const _0x48c98d=_0xc1882f;super(),x(this,_0x48c98d(0x16a),new _0x5e871f(!0x1)),x(this,_0x48c98d(0x266),new _0x5e871f({})),x(this,_0x48c98d(0x233),new _0x5e871f({})),x(this,_0x48c98d(0x264),new _0x5e871f('')),x(this,_0x48c98d(0x190),async _0x492bd2=>{const _0x523a51=_0x48c98d;var _0x1d5172,_0x5757fa;this[_0x523a51(0x16a)]['next'](!0x0);try{const _0x2877af=await this['_validateConfig'](_0x492bd2);if(!_0x2877af[_0x523a51(0x1d3)]){this[_0x523a51(0x165)][_0x523a51(0x19d)]({'type':_0x284621[_0x523a51(0x1dd)],'content':_0x2877af[_0x523a51(0x1ac)]||this[_0x523a51(0x229)]['t'](_0x523a51(0x22b))});return;}_0x492bd2[_0x523a51(0x1a3)]?await this[_0x523a51(0x268)][_0x523a51(0x145)](U,_0x492bd2[_0x523a51(0x1a3)][_0x523a51(0x12a)]()):await this[_0x523a51(0x268)][_0x523a51(0x1a7)](U),this[_0x523a51(0x264)]['next'](((_0x1d5172=_0x492bd2[_0x523a51(0x1a3)])==null?void 0x0:_0x1d5172[_0x523a51(0x12a)]())||''),this['_mcpConnectionController'][_0x523a51(0x16e)]({'Authorization':_0x523a51(0x1bf)+((_0x5757fa=_0x492bd2[_0x523a51(0x1a3)])==null?void 0x0:_0x5757fa[_0x523a51(0x12a)]())}),this[_0x523a51(0x165)][_0x523a51(0x19d)]({'type':_0x284621[_0x523a51(0x1d2)],'content':this['_localeService']['t'](_0x523a51(0x22f))}),setTimeout(()=>{const _0x1c4b5d=_0x523a51;this['_dialogService'][_0x1c4b5d(0x178)](L);},0x320);}catch(_0x5ab084){this[_0x523a51(0x1a9)][_0x523a51(0x133)](_0x523a51(0x231),_0x5ab084),this[_0x523a51(0x165)]['show']({'type':_0x284621[_0x523a51(0x1dd)],'content':this[_0x523a51(0x229)]['t'](_0x523a51(0x19b))});}finally{this[_0x523a51(0x16a)]['next'](!0x1);}}),(this['_injector']=_0x360f95,this['_uiPartsService']=_0x4806b0,this[_0x48c98d(0x210)]=_0x4c4a13,this[_0x48c98d(0x268)]=_0x22ee49,this[_0x48c98d(0x164)]=_0x2a223f,this[_0x48c98d(0x165)]=_0x1a8a65,this[_0x48c98d(0x156)]=_0x26a76d,this[_0x48c98d(0x229)]=_0x4f2769,this['_logService']=_0x191c67,this['_mcpConnectionController']=_0x2f492a,this[_0x48c98d(0x186)](),this[_0x48c98d(0x25c)](),this[_0x48c98d(0x1b9)]());}[_0xc1882f(0x21b)](){const _0x43e149=_0xc1882f,_0x5c6c10=this[_0x43e149(0x210)][_0x43e149(0x160)](y);_0x5c6c10!=null&&_0x5c6c10[_0x43e149(0x1ef)]&&this[_0x43e149(0x164)][_0x43e149(0x162)]({'id':L,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x43e149(0x14c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3cd214=_0x43e149;this[_0x3cd214(0x164)][_0x3cd214(0x178)](L);}});}[_0xc1882f(0x1f5)](){const _0x2279e5=_0xc1882f;return this[_0x2279e5(0x266)]['value'];}[_0xc1882f(0x1b9)](){const _0x8b657f=_0xc1882f;this[_0x8b657f(0x246)](this[_0x8b657f(0x156)][_0x8b657f(0x1ba)](_0x8b657f(0x14c),this['_createConfigPanelComponent']()));}[_0xc1882f(0x1f2)](){const _0x299bbf=_0xc1882f;return _0x176dad(()=>{const _0x196bf6=_0x2b73;var _0x1c97f0,_0x299ecb,_0x7d304b;return _0x28c207(nn,{'config':this[_0x196bf6(0x233)][_0x196bf6(0x21e)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x196bf6(0x21e)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x196bf6(0x190)],'loading':this[_0x196bf6(0x16a)]['value'],'connectionStatus$':(_0x1c97f0=this['_mcpConnectionController'])==null?void 0x0:_0x1c97f0[_0x196bf6(0x261)],'connectionError$':(_0x299ecb=this[_0x196bf6(0x1ca)])==null?void 0x0:_0x299ecb[_0x196bf6(0x1d7)],'currentSessionId$':(_0x7d304b=this['_mcpConnectionController'])==null?void 0x0:_0x7d304b[_0x196bf6(0x15c)]});},this[_0x299bbf(0x144)]);}[_0xc1882f(0x186)](){const _0x239eaf=_0xc1882f;this['disposeWithMe'](this[_0x239eaf(0x210)][_0x239eaf(0x187)](_0x10d630)[_0x239eaf(0x1c7)](_0x4c952=>{const _0x1237ca=_0x239eaf;this[_0x1237ca(0x266)][_0x1237ca(0x168)](_0x4c952||{});}));const _0x152e73=this[_0x239eaf(0x210)][_0x239eaf(0x160)](_0x10d630);this[_0x239eaf(0x266)][_0x239eaf(0x168)](_0x152e73||{}),this['disposeWithMe'](this['_configService'][_0x239eaf(0x187)](y)['subscribe'](_0x57d93d=>{const _0x4f5873=_0x239eaf;this[_0x4f5873(0x233)]['next'](_0x57d93d||{});}));const _0x5bb2c1=this[_0x239eaf(0x210)][_0x239eaf(0x160)](y);this[_0x239eaf(0x233)][_0x239eaf(0x168)](_0x5bb2c1||{});}async[_0xc1882f(0x25c)](){const _0x1162e9=_0xc1882f,_0x35b3a5=this[_0x1162e9(0x210)]['getConfig'](y);if(!(_0x35b3a5!=null&&_0x35b3a5['showDeveloperTools']))return;const _0x5f0e92=await this[_0x1162e9(0x268)]['getItem'](U);_0x5f0e92&&(this[_0x1162e9(0x1ca)][_0x1162e9(0x16e)]({'Authorization':'Bearer\x20'+_0x5f0e92}),this[_0x1162e9(0x264)]['next'](_0x5f0e92));}async['_validateConfig'](_0x34ef57){const _0x128bbd=_0xc1882f;if(!_0x34ef57[_0x128bbd(0x1a3)]||_0x34ef57['apiKey'][_0x128bbd(0x12a)]()[_0x128bbd(0x275)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x128bbd(0x229)]['t'](_0x128bbd(0x1d8))};if(_0x34ef57[_0x128bbd(0x1a3)][_0x128bbd(0x12a)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x128bbd(0x229)]['t'](_0x128bbd(0x225))};try{const _0x328b8e=await this['_injector']['get'](_0x14ed3b)['validateApiKey'](_0x34ef57[_0x128bbd(0x1a3)][_0x128bbd(0x12a)]());return _0x328b8e[_0x128bbd(0x1d3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x328b8e[_0x128bbd(0x133)]||this['_localeService']['t'](_0x128bbd(0x138))};}catch(_0x2e51b9){return console['warn'](_0x128bbd(0x19f),_0x2e51b9),{'isValid':!0x0};}}};I=tn([d(0x0,_0xc0b699(_0x3b274d)),d(0x1,_0x3377e8),d(0x2,_0x27ee87),d(0x3,_0x1c57e0),d(0x4,_0x58dfdb),d(0x5,_0x3b7f20),d(0x6,_0xc0b699(_0x849cd3)),d(0x7,_0xc0b699(_0x1e89fe)),d(0x8,_0x30322e),d(0x9,_0xc0b699(_0x14ed3b))],I);const V={'id':_0xc1882f(0x1b3),'type':_0x4ccdae[_0xc1882f(0x161)],'handler':async(_0x50bb48,_0x4db04e)=>(_0x50bb48['get'](I)['showConfigPanel'](),!0x0)};function pe(_0x4707d5,_0x26e1c1){const _0xa0a408=_0xc1882f;switch(_0x4707d5){case _0x4b36b6['DISCONNECTED']:return _0xa0a408(0x267);case _0x4b36b6[_0xa0a408(0x1b0)]:return _0xa0a408(0x1b7);case _0x4b36b6[_0xa0a408(0x1a4)]:return _0xa0a408(0x1c6);case _0x4b36b6[_0xa0a408(0x1c8)]:switch(_0x26e1c1){case _0x1d2c28[_0xa0a408(0x24c)]:return _0xa0a408(0x23e);case _0x1d2c28[_0xa0a408(0x211)]:return _0xa0a408(0x1c4);case _0x1d2c28[_0xa0a408(0x254)]:return _0xa0a408(0x1f8);case _0x1d2c28[_0xa0a408(0x272)]:return _0xa0a408(0x17a);default:return'mcpStatus.failed';}case _0x4b36b6[_0xa0a408(0x15e)]:return _0xa0a408(0x24d);default:return _0xa0a408(0x134);}}function on(_0x358b2e,_0x231a67,_0x369783,_0x421968=!0x0){const _0x21079c=_0xc1882f,_0x31b0d3=pe(_0x358b2e,_0x231a67),_0x45ccf0=_0x369783['t'](_0x31b0d3);return _0x421968?_0x358b2e===_0x4b36b6[_0x21079c(0x12b)]&&_0x231a67===_0x1d2c28[_0x21079c(0x24c)]?_0x45ccf0+_0x21079c(0x1ec)+_0x369783['t']('mcpStatus.clickToConfigure'):_0x358b2e===_0x4b36b6[_0x21079c(0x1a4)]?''+_0x45ccf0:_0x358b2e===_0x4b36b6[_0x21079c(0x12b)]||_0x358b2e===_0x4b36b6['FAILED']?_0x45ccf0+_0x21079c(0x1ec)+_0x369783['t'](_0x21079c(0x247)):_0x45ccf0:_0x45ccf0;}function sn(_0x22fb1b){const _0x12cc34=_0xc1882f;switch(_0x22fb1b){case _0x4b36b6[_0x12cc34(0x1a4)]:return _0x12cc34(0x1a5);case _0x4b36b6['CONNECTING']:case _0x4b36b6[_0x12cc34(0x15e)]:return _0x12cc34(0x276);case _0x4b36b6[_0x12cc34(0x1c8)]:case _0x4b36b6[_0x12cc34(0x12b)]:return _0x12cc34(0x263);default:return'univer-text-gray-500';}}function cn(_0x16b680){const _0x5e568b=_0xc1882f,{status$:_0x5017d3,error$:_0x85225f,onConfigure:_0x2538bb,showClickable:_0x4f3c49=!0x0}=_0x16b680,_0x27bded=_0xdb40c8(_0x5017d3,_0x4b36b6[_0x5e568b(0x12b)]),_0xe7e660=_0xdb40c8(_0x85225f,_0x1d2c28['NONE']),_0x3e7153=_0x2ca0d6(_0x1e89fe),_0x20fa68=_0x27bded===_0x4b36b6[_0x5e568b(0x1a4)];_0x27bded===_0x4b36b6['CONNECTING']||_0x4b36b6[_0x5e568b(0x15e)];const _0x127f06=_0x3e7153['t'](pe(_0x27bded,_0xe7e660)),_0x48b086=on(_0x27bded,_0xe7e660,_0x3e7153,_0x4f3c49),_0x4e8b4f=sn(_0x27bded),_0x2ca821=_0x20fa68?_0x28c207(ge,{}):_0x28c207(de,{}),_0x16c3a0=_0x3300f8(()=>{_0x4f3c49&&_0x2538bb&&_0x2538bb();},[_0x4f3c49,_0x2538bb]);function _0x5e0636(){const _0x5ab5dd=_0x5e568b;return _0x4c6a3d(_0x5ab5dd(0x150),{'className':_0x3a12a5(_0x5ab5dd(0x12e),_0x4f3c49&&_0x2538bb&&_0x5ab5dd(0x1ce)),'role':_0x5ab5dd(0x22d),'onClick':_0x4f3c49&&_0x2538bb?_0x16c3a0:void 0x0,'children':[_0x28c207(_0x5ab5dd(0x150),{'className':_0x3a12a5(_0x5ab5dd(0x14e),_0x4e8b4f),'children':_0x2ca821}),_0x28c207(_0x5ab5dd(0x150),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x127f06})]});}return _0x28c207(_0x1cb187,{'title':_0x48b086,'placement':_0x5e568b(0x182),'children':_0x5e0636()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x409cbb,_0x42b852,_0x209a66,_0x3a2f27)=>{const _0xeade54=_0xc1882f;for(var _0xfbe352=_0x3a2f27>0x1?void 0x0:_0x3a2f27?an(_0x42b852,_0x209a66):_0x42b852,_0x9e4bf=_0x409cbb[_0xeade54(0x275)]-0x1,_0x593138;_0x9e4bf>=0x0;_0x9e4bf--)(_0x593138=_0x409cbb[_0x9e4bf])&&(_0xfbe352=_0x593138(_0xfbe352)||_0xfbe352);return _0xfbe352;},M=(_0x120bfa,_0x45ef6f)=>(_0x2b3334,_0x390043)=>_0x45ef6f(_0x2b3334,_0x390043,_0x120bfa);let O=class extends _0x2595b1{constructor(_0x41fd68,_0x4af2aa,_0x371d90,_0x2283ef){const _0x425931=_0xc1882f;super(),this[_0x425931(0x144)]=_0x41fd68,this[_0x425931(0x176)]=_0x4af2aa,this[_0x425931(0x142)]=_0x371d90,this[_0x425931(0x210)]=_0x2283ef,this['_initAutoConnect'](),this[_0x425931(0x15f)]();}['_initAutoConnect'](){const _0x48f041=_0xc1882f,_0x46b88e=this[_0x48f041(0x210)][_0x48f041(0x160)](y);_0x46b88e!=null&&_0x46b88e[_0x48f041(0x1ef)]&&(this['_connectionController'][_0x48f041(0x248)]=!0x1);}[_0xc1882f(0x15f)](){const _0x132e58=_0xc1882f,_0x9bb0ca=this['_configService']['getConfig'](y);(_0x9bb0ca==null?void 0x0:_0x9bb0ca[_0x132e58(0x1c5)])!==!0x1&&this[_0x132e58(0x246)](this['_uiPartsService'][_0x132e58(0x1bc)](_0x3ffd53['HEADER_MENU'],()=>{const _0xcd344f=_0x132e58;var _0x4eaa6a;return _0x176dad(un({'status$':this['_connectionController'][_0xcd344f(0x261)],'error$':this[_0xcd344f(0x176)]['connectionError$'],'onConfigure':()=>this[_0xcd344f(0x21d)](),'showClickable':(_0x4eaa6a=_0x9bb0ca==null?void 0x0:_0x9bb0ca[_0xcd344f(0x1ef)])!=null?_0x4eaa6a:!0x1}),this[_0xcd344f(0x144)]);}));}[_0xc1882f(0x21d)](){const _0x3440e8=_0xc1882f;this[_0x3440e8(0x144)][_0x3440e8(0x202)](I)[_0x3440e8(0x21b)]();}};O=ln([M(0x0,_0xc0b699(_0x3b274d)),M(0x1,_0xc0b699(_0x14ed3b)),M(0x2,_0x3377e8),M(0x3,_0x27ee87)],O);function un(_0x3aac29){const {status$:_0x5d5e2c,error$:_0xe1fa67,onConfigure:_0x3ae0df,showClickable:_0x38b1e1}=_0x3aac29;return function(){return _0x28c207(cn,{'status$':_0x5d5e2c,'error$':_0xe1fa67,'onConfigure':_0x3ae0df,'showClickable':_0x38b1e1});};}function vn(_0x11e8f4){const _0x1bb919=_0xc1882f;return{'id':V['id'],'type':_0x393433[_0x1bb919(0x17f)],'icon':_0x1bb919(0x27e),'title':_0x1bb919(0x1e0),'tooltip':_0x1bb919(0x1e0)};}const dn={[_0xf870d5['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x5ae9fb,_0x32de9e,_0x556d81,_0x32c8cb)=>{for(var _0x24f236=_0x32c8cb>0x1?void 0x0:_0x32c8cb?gn(_0x32de9e,_0x556d81):_0x32de9e,_0x15a076=_0x5ae9fb['length']-0x1,_0xb563eb;_0x15a076>=0x0;_0x15a076--)(_0xb563eb=_0x5ae9fb[_0x15a076])&&(_0x24f236=_0xb563eb(_0x24f236)||_0x24f236);return _0x24f236;},re=(_0x51ef73,_0x1240b9)=>(_0x18adea,_0x2ddf8e)=>_0x1240b9(_0x18adea,_0x2ddf8e,_0x51ef73);let D=class extends _0x2595b1{constructor(_0x6ec3c5,_0x2366d0){const _0x4c9841=_0xc1882f;super(),this[_0x4c9841(0x256)]=_0x6ec3c5,this['_menuManagerService']=_0x2366d0,this['_initializeCommands'](),this[_0x4c9841(0x1fa)]();}[_0xc1882f(0x260)](){const _0x2cfb05=_0xc1882f;[V][_0x2cfb05(0x154)](_0x305083=>{const _0x4295e5=_0x2cfb05;this[_0x4295e5(0x246)](this[_0x4295e5(0x256)][_0x4295e5(0x1de)](_0x305083));});}[_0xc1882f(0x1fa)](){const _0x3cbfd7=_0xc1882f;this[_0x3cbfd7(0x16b)][_0x3cbfd7(0x1be)](dn);}};D=pn([re(0x0,_0x5911d4),re(0x1,_0x3db316)],D);const Mn={'mcpStatus':{'disconnected':_0xc1882f(0x14a),'connecting':'MCP\x20Connecting...','connected':_0xc1882f(0x177),'failed':_0xc1882f(0x1f7),'retrying':_0xc1882f(0x24f),'unknown':_0xc1882f(0x1ed),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xc1882f(0x224),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xc1882f(0x273),'clickToConnect':_0xc1882f(0x1eb),'clickToConfigure':_0xc1882f(0x1b6)},'mcpConfig':{'title':_0xc1882f(0x1d9),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xc1882f(0x226),'enableAuth':_0xc1882f(0x238),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xc1882f(0x199),'mcpClientConfig':_0xc1882f(0x199),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xc1882f(0x1d4),'configStep1':_0xc1882f(0x12c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xc1882f(0x237),'sessionId':_0xc1882f(0x1a1),'sessionIdDescription':_0xc1882f(0x19a),'authorizationDescription':_0xc1882f(0x1a2),'configParameters':_0xc1882f(0x20d),'maxRetries':_0xc1882f(0x26c),'save':_0xc1882f(0x25b),'saving':_0xc1882f(0x18e),'note1':_0xc1882f(0x1e5),'note2':_0xc1882f(0x1c0),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xc1882f(0x196),'apiApplyInfo':{'title':_0xc1882f(0x1cc),'description':_0xc1882f(0x16c),'univerAiLabel':_0xc1882f(0x13e),'getStarted':_0xc1882f(0x1a8)},'validation':{'apiKeyRequired':_0xc1882f(0x279),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xc1882f(0x1c2),'invalidApiKey':_0xc1882f(0x139)},'connectionStatus':{'disconnected':_0xc1882f(0x18c),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0xc1882f(0x1f6)},'connectionError':{'unauthorized':_0xc1882f(0x151),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xc1882f(0x18d)}}},An={'mcpStatus':{'disconnected':_0xc1882f(0x1bd),'connecting':_0xc1882f(0x17c),'connected':_0xc1882f(0x198),'failed':_0xc1882f(0x234),'retrying':'MCP\x20重连中...','unknown':_0xc1882f(0x170),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xc1882f(0x204),'maxRetriesExceeded':_0xc1882f(0x1f3),'clickToConnect':_0xc1882f(0x13b),'clickToConfigure':_0xc1882f(0x167)},'mcpConfig':{'title':_0xc1882f(0x240),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0xc1882f(0x1a0),'apiKeyHint':_0xc1882f(0x152),'enableAuth':'启用身份验证','enableAuthHint':_0xc1882f(0x158),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0xc1882f(0x26d),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0xc1882f(0x274),'configStep1':_0xc1882f(0x148),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0xc1882f(0x25a),'sessionId':'会话ID','sessionIdDescription':_0xc1882f(0x1fe),'authorizationDescription':_0xc1882f(0x136),'configParameters':'配置参数:','maxRetries':_0xc1882f(0x1b8),'save':_0xc1882f(0x191),'saving':_0xc1882f(0x18a),'note1':_0xc1882f(0x215),'note2':_0xc1882f(0x12d),'configSaved':'配置保存成功','configError':_0xc1882f(0x201),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0xc1882f(0x217),'getStarted':_0xc1882f(0x1ea)},'validation':{'apiKeyRequired':_0xc1882f(0x249),'apiKeyTooShort':_0xc1882f(0x1df),'invalidConfig':_0xc1882f(0x189),'invalidApiKey':_0xc1882f(0x180)},'connectionStatus':{'disconnected':_0xc1882f(0x22e),'connecting':_0xc1882f(0x208),'connected':_0xc1882f(0x1b2),'failed':_0xc1882f(0x1f9),'retrying':_0xc1882f(0x1e6)},'connectionError':{'unauthorized':_0xc1882f(0x1d6),'sessionOccupied':_0xc1882f(0x175),'networkError':_0xc1882f(0x23d),'maxRetriesExceeded':_0xc1882f(0x223)}}};var fn=Object['defineProperty'],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x3e9f0a,_0x3a8fdb,_0x1c980d)=>_0x3a8fdb in _0x3e9f0a?fn(_0x3e9f0a,_0x3a8fdb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c980d}):_0x3e9f0a[_0x3a8fdb]=_0x1c980d,mn=(_0x35fec3,_0x265eeb,_0x39efa4,_0x3bdd26)=>{const _0x12eeb8=_0xc1882f;for(var _0x1b48b5=_0x3bdd26>0x1?void 0x0:_0x3bdd26?hn(_0x265eeb,_0x39efa4):_0x265eeb,_0x47624f=_0x35fec3[_0x12eeb8(0x275)]-0x1,_0x7e8575;_0x47624f>=0x0;_0x47624f--)(_0x7e8575=_0x35fec3[_0x47624f])&&(_0x1b48b5=_0x7e8575(_0x1b48b5)||_0x1b48b5);return _0x1b48b5;},P=(_0x435430,_0x2afb2a)=>(_0x4a59b8,_0x2ff6ce)=>_0x2afb2a(_0x4a59b8,_0x2ff6ce,_0x435430),_n=(_0xbd3c01,_0x350559,_0x536bbe)=>Cn(_0xbd3c01,_0x350559+'',_0x536bbe);function _0x2b73(_0x4cd2a5,_0x47a36b){_0x4cd2a5=_0x4cd2a5-0x129;const _0x4918f8=_0x4918();let _0x2b7328=_0x4918f8[_0x4cd2a5];return _0x2b7328;}let j=class extends _0x59c2b1{constructor(_0x15d8b5=ie,_0xaaafc3,_0x2735de,_0x469a78,_0x593208,_0x348abc){const _0x270948=_0xc1882f;super(),this[_0x270948(0x173)]=_0x15d8b5,this['_injector']=_0xaaafc3,this[_0x270948(0x210)]=_0x2735de,this['_uiPartsService']=_0x469a78,this['_localStorageService']=_0x593208,this['_localeService']=_0x348abc;const {..._0x341112}=_0x4d7e38({},ie,this[_0x270948(0x173)]);this[_0x270948(0x210)][_0x270948(0x219)](y,_0x341112);}async[_0xc1882f(0x222)](){const _0x280286=_0xc1882f,_0x3d7bfc=[[O],[I],[D]];this[_0x280286(0x144)][_0x280286(0x23c)](_0x50d983)||_0x3d7bfc[_0x280286(0x1d5)]([_0x50d983,{'useClass':_0x3a96fd}]),_0x3d7bfc['forEach'](_0x49577e=>this[_0x280286(0x144)][_0x280286(0x277)](_0x49577e)),this[_0x280286(0x144)]['get'](O),this[_0x280286(0x144)][_0x280286(0x202)](I),this[_0x280286(0x144)][_0x280286(0x202)](D);}};_n(j,'pluginName',_0xc1882f(0x1fc)),j=mn([_0x28f4fc(_0x4a0391),P(0x1,_0xc0b699(_0x3b274d)),P(0x2,_0x27ee87),P(0x3,_0x3377e8),P(0x4,_0x1c57e0),P(0x5,_0xc0b699(_0x1e89fe))],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};
|