@univerjs-pro/mcp-ui 0.15.2-insiders.20260124-12fc7f0 → 0.15.3-insiders.20260131-b9b8805
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 -0
- 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 -0
- 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 -0
- 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/types/locale/sk-SK.d.ts +3 -0
- 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 -0
- 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 +8 -8
package/lib/es/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3d86(){const _0x5a9ad2=['클릭하여\x20MCP\x20설정','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','142wkfqBV','재시도\x20중...','MCP:\x20세션\x20ID\x20사용\x20중','연결\x20중...','739782BbTYVG','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','API\x20키를\x20입력하세요','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','6467852lWRjzK','2240553ubRxyN','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','339577KbeeCc','연결\x20실패','MCP:\x20최대\x20재시도\x20횟수\x20초과','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','API\x20키','인증\x20활성화','MCP\x20연결됨','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20재시도\x20중...','설정이\x20성공적으로\x20저장되었습니다','8546GguuHb','MCP\x20설정','설정\x20단계:','Bearer\x20접두사가\x20있는\x20API\x20키.','설정\x20저장','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','저장\x20중...','연결됨','아래\x20JSON\x20설정\x20복사','15PRTJnC','API\x20키는\x20필수입니다','최대\x20재시도\x20횟수','MCP\x20연결\x20중...','80IJflSH','13634361ysMeAO','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','클릭하여\x20MCP\x20연결','MCP\x20클라이언트\x20설정','세션\x20ID','MCP\x20연결\x20끊김','설정\x20저장\x20실패','API\x20키는\x2010자\x20이상이어야\x20합니다','22323560mabaGC'];_0x3d86=function(){return _0x5a9ad2;};return _0x3d86();}const _0x9cc3cb=_0x1897;(function(_0x3d84dc,_0x1fd975){const _0xca0ba0=_0x1897,_0x3a22e6=_0x3d84dc();while(!![]){try{const _0x52d81e=parseInt(_0xca0ba0(0x117))/0x1*(parseInt(_0xca0ba0(0x100))/0x2)+-parseInt(_0xca0ba0(0x10b))/0x3+parseInt(_0xca0ba0(0x10a))/0x4+-parseInt(_0xca0ba0(0x121))/0x5*(parseInt(_0xca0ba0(0x104))/0x6)+parseInt(_0xca0ba0(0x10d))/0x7*(parseInt(_0xca0ba0(0x125))/0x8)+parseInt(_0xca0ba0(0x126))/0x9+-parseInt(_0xca0ba0(0xfd))/0xa;if(_0x52d81e===_0x1fd975)break;else _0x3a22e6['push'](_0x3a22e6['shift']());}catch(_0x8d85f2){_0x3a22e6['push'](_0x3a22e6['shift']());}}}(_0x3d86,0xd58ae));const e={'mcpStatus':{'disconnected':_0x9cc3cb(0x12b),'connecting':_0x9cc3cb(0x124),'connected':_0x9cc3cb(0x113),'failed':'MCP\x20연결\x20실패','retrying':_0x9cc3cb(0x115),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':'MCP:\x20인증되지\x20않음','sessionOccupied':_0x9cc3cb(0x102),'networkError':'MCP:\x20네트워크\x20오류','maxRetriesExceeded':_0x9cc3cb(0x10f),'clickToConnect':_0x9cc3cb(0x128),'clickToConfigure':_0x9cc3cb(0xfe)},'mcpConfig':{'title':_0x9cc3cb(0x118),'description':_0x9cc3cb(0x127),'apiKey':_0x9cc3cb(0x111),'apiKeyPlaceholder':_0x9cc3cb(0x106),'apiKeyHint':_0x9cc3cb(0x110),'enableAuth':_0x9cc3cb(0x112),'enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':_0x9cc3cb(0x129),'mcpClientConfig':_0x9cc3cb(0x129),'configInstructions':_0x9cc3cb(0x108),'configStepTitle':_0x9cc3cb(0x119),'configStep1':_0x9cc3cb(0x120),'configStep2':_0x9cc3cb(0x11d),'configStep3':_0x9cc3cb(0x105),'sessionId':_0x9cc3cb(0x12a),'sessionIdDescription':_0x9cc3cb(0x109),'authorizationDescription':_0x9cc3cb(0x11a),'configParameters':'설정\x20매개변수:','maxRetries':_0x9cc3cb(0x123),'save':_0x9cc3cb(0x11b),'saving':_0x9cc3cb(0x11e),'note1':_0x9cc3cb(0x114),'note2':_0x9cc3cb(0x107),'configSaved':_0x9cc3cb(0x116),'configError':_0x9cc3cb(0x12c),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':_0x9cc3cb(0xff),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':_0x9cc3cb(0x122),'apiKeyTooShort':_0x9cc3cb(0xfc),'invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':_0x9cc3cb(0x103),'connected':_0x9cc3cb(0x11f),'failed':_0x9cc3cb(0x10e),'retrying':_0x9cc3cb(0x101)},'connectionError':{'unauthorized':_0x9cc3cb(0x11c),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':_0x9cc3cb(0x10c),'maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};function _0x1897(_0xd8a04b,_0x2f421f){_0xd8a04b=_0xd8a04b-0xfc;const _0x3d867f=_0x3d86();let _0x18971a=_0x3d867f[_0xd8a04b];return _0x18971a;}export{e as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1e72(_0x36e408,_0x2e6542){_0x36e408=_0x36e408-0xed;const _0x2d3b5c=_0x2d3b();let _0x1e72cf=_0x2d3b5c[_0x36e408];return _0x1e72cf;}const _0xca12f8=_0x1e72;(function(_0x366fca,_0x3da4a5){const _0x56592e=_0x1e72,_0x2c7e36=_0x366fca();while(!![]){try{const _0x44b92b=-parseInt(_0x56592e(0x109))/0x1+parseInt(_0x56592e(0x105))/0x2*(-parseInt(_0x56592e(0x11d))/0x3)+-parseInt(_0x56592e(0x10a))/0x4*(-parseInt(_0x56592e(0xf4))/0x5)+-parseInt(_0x56592e(0x106))/0x6*(parseInt(_0x56592e(0x115))/0x7)+parseInt(_0x56592e(0x112))/0x8+parseInt(_0x56592e(0x110))/0x9*(-parseInt(_0x56592e(0xf8))/0xa)+parseInt(_0x56592e(0xfe))/0xb;if(_0x44b92b===_0x3da4a5)break;else _0x2c7e36['push'](_0x2c7e36['shift']());}catch(_0x322cb2){_0x2c7e36['push'](_0x2c7e36['shift']());}}}(_0x2d3b,0x2b267));const e={'mcpStatus':{'disconnected':_0xca12f8(0xf2),'connecting':_0xca12f8(0x114),'connected':'MCP\x20Connected','failed':_0xca12f8(0x11b),'retrying':_0xca12f8(0x11c),'unknown':_0xca12f8(0x102),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xca12f8(0xff),'maxRetriesExceeded':_0xca12f8(0x10f),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xca12f8(0x11f)},'mcpConfig':{'title':_0xca12f8(0xfd),'description':_0xca12f8(0x11e),'apiKey':_0xca12f8(0x101),'apiKeyPlaceholder':_0xca12f8(0x119),'apiKeyHint':_0xca12f8(0x10b),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xca12f8(0xf3),'mcpClientConfig':_0xca12f8(0xf3),'configInstructions':_0xca12f8(0x117),'configStepTitle':_0xca12f8(0xef),'configStep1':_0xca12f8(0x107),'configStep2':_0xca12f8(0xf7),'configStep3':_0xca12f8(0xf9),'sessionId':_0xca12f8(0x111),'sessionIdDescription':_0xca12f8(0x120),'authorizationDescription':_0xca12f8(0xf5),'configParameters':_0xca12f8(0x103),'maxRetries':'Max\x20Retries','save':_0xca12f8(0xfb),'saving':_0xca12f8(0x104),'note1':_0xca12f8(0x100),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0xca12f8(0x10e),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0xca12f8(0x118),'univerAiLabel':_0xca12f8(0x108),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0xca12f8(0x11a),'apiKeyTooShort':_0xca12f8(0x10c),'invalidConfig':_0xca12f8(0xee),'invalidApiKey':_0xca12f8(0xfa)},'connectionStatus':{'disconnected':_0xca12f8(0x116),'connecting':'Connecting...','connected':_0xca12f8(0xf1),'failed':_0xca12f8(0x113),'retrying':_0xca12f8(0xed)},'connectionError':{'unauthorized':_0xca12f8(0xf6),'sessionOccupied':_0xca12f8(0xfc),'networkError':_0xca12f8(0xf0),'maxRetriesExceeded':_0xca12f8(0x10d)}}},n=e;export{n as default};function _0x2d3b(){const _0xa0ab06=['Session\x20ID','1005736eQtehO','Connection\x20Failed','MCP\x20Connecting...','610708OOOwlt','Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enter\x20your\x20API\x20key','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','MCP\x20Retrying...','9KJglLE','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','Invalid\x20configuration','Configuration\x20Steps:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connected','MCP\x20Disconnected','MCP\x20Client\x20Configuration','264340dOqnyS','API\x20key\x20with\x20Bearer\x20prefix.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','410yvaxMU','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Save\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Configuration','6594247DdEJaV','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','Saving...','27998Ccppug','24uutxBx','Copy\x20the\x20JSON\x20configuration\x20below','Univer\x20AI\x20Console','200891rjXuoL','16tMFSRs','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','MCP:\x20Max\x20Retries\x20Exceeded','36891QztjGP'];_0x2d3b=function(){return _0xa0ab06;};return _0x2d3b();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x1aa565=_0x5584;function _0x2959(){const _0x58a2a5=['Povoliť\x20overenie','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','Konfigurácia\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.','API\x20kľúč','Zadajte\x20svoj\x20API\x20kľúč','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','Pripojenie\x20zlyhalo','1423449cinQNH','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Pripojenie\x20MCP\x20zlyhalo','8739625alqiJe','26205030IvWQxR','MCP\x20odpojené','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','Neplatná\x20konfigurácia','Maximálny\x20počet\x20pokusov','3206202vnDfhg','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Konfigurácia\x20klienta\x20MCP','9928992zjQeIR','MCP\x20neznámy\x20stav','Kroky\x20konfigurácie:','MCP:\x20Sieťová\x20chyba','MCP:\x20Neautorizované','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','51219oXeapZ','Pripája\x20sa...','MCP\x20opakuje\x20pokus...','API\x20kľúč\x20je\x20povinný','MCP\x20sa\x20pripája...','Univer\x20AI\x20konzola','2kCjbaN','Ukladá\x20sa...','Konfigurácia\x20bola\x20úspešne\x20uložená','1576PRqxHO','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Kliknite\x20na\x20konfiguráciu\x20MCP','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Skúša\x20sa\x20znova...','4HICrgS','35163dnzmbw','MCP:\x20Prekročený\x20počet\x20pokusov','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku'];_0x2959=function(){return _0x58a2a5;};return _0x2959();}(function(_0x38517a,_0x34a169){const _0x3ba38b=_0x5584,_0x59ad5c=_0x38517a();while(!![]){try{const _0x248b60=parseInt(_0x3ba38b(0x176))/0x1*(parseInt(_0x3ba38b(0x160))/0x2)+-parseInt(_0x3ba38b(0x17f))/0x3*(-parseInt(_0x3ba38b(0x169))/0x4)+-parseInt(_0x3ba38b(0x179))/0x5+-parseInt(_0x3ba38b(0x182))/0x6+-parseInt(_0x3ba38b(0x15a))/0x7+-parseInt(_0x3ba38b(0x163))/0x8*(parseInt(_0x3ba38b(0x16a))/0x9)+parseInt(_0x3ba38b(0x17a))/0xa;if(_0x248b60===_0x34a169)break;else _0x59ad5c['push'](_0x59ad5c['shift']());}catch(_0x1883c4){_0x59ad5c['push'](_0x59ad5c['shift']());}}}(_0x2959,0xe3c45));const e={'mcpStatus':{'disconnected':_0x1aa565(0x17b),'connecting':_0x1aa565(0x15e),'connected':'MCP\x20pripojené','failed':_0x1aa565(0x178),'retrying':_0x1aa565(0x15c),'unknown':_0x1aa565(0x183),'unauthorized':_0x1aa565(0x186),'sessionOccupied':'MCP:\x20ID\x20relácie\x20je\x20obsadené','networkError':_0x1aa565(0x185),'maxRetriesExceeded':_0x1aa565(0x16b),'clickToConnect':'Kliknite\x20na\x20pripojenie\x20MCP','clickToConfigure':_0x1aa565(0x165)},'mcpConfig':{'title':_0x1aa565(0x170),'description':'Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','apiKey':_0x1aa565(0x172),'apiKeyPlaceholder':_0x1aa565(0x173),'apiKeyHint':'Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','enableAuth':_0x1aa565(0x16e),'enableAuthHint':'Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','connectionInfo':_0x1aa565(0x181),'mcpClientConfig':_0x1aa565(0x181),'configInstructions':_0x1aa565(0x180),'configStepTitle':_0x1aa565(0x184),'configStep1':_0x1aa565(0x177),'configStep2':'Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','configStep3':_0x1aa565(0x164),'sessionId':'ID\x20relácie','sessionIdDescription':_0x1aa565(0x171),'authorizationDescription':'API\x20kľúč\x20s\x20prefixom\x20Bearer.','configParameters':'Parametre\x20konfigurácie:','maxRetries':_0x1aa565(0x17e),'save':'Uložiť\x20konfiguráciu','saving':_0x1aa565(0x161),'note1':_0x1aa565(0x166),'note2':_0x1aa565(0x16d),'configSaved':_0x1aa565(0x162),'configError':'Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','apiApplyInfo':{'title':'Čo\x20je\x20API\x20kľúč?','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':_0x1aa565(0x15f),'getStarted':_0x1aa565(0x167)},'validation':{'apiKeyRequired':_0x1aa565(0x15d),'apiKeyTooShort':_0x1aa565(0x16f),'invalidConfig':_0x1aa565(0x17d),'invalidApiKey':'Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny'},'connectionStatus':{'disconnected':'Odpojené','connecting':_0x1aa565(0x15b),'connected':'Pripojené','failed':_0x1aa565(0x175),'retrying':_0x1aa565(0x168)},'connectionError':{'unauthorized':_0x1aa565(0x174),'sessionOccupied':_0x1aa565(0x17c),'networkError':_0x1aa565(0x159),'maxRetriesExceeded':_0x1aa565(0x16c)}}};function _0x5584(_0x4f8e8b,_0x71336c){_0x4f8e8b=_0x4f8e8b-0x159;const _0x29592d=_0x2959();let _0x5584a1=_0x29592d[_0x4f8e8b];return _0x5584a1;}export{e as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40564a=_0x2b5a;function _0x5806(){const _0x12ad30=['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.','MCP\x20Đang\x20kết\x20nối...','Các\x20bước\x20cấu\x20hình:','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Đang\x20thử\x20lại...','946200czgymI','Tham\x20số\x20cấu\x20hình:','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','331832jkdutW','42ljmLeR','MCP\x20Đã\x20kết\x20nối','3339975VgtsuE','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Cấu\x20hình\x20máy\x20khách\x20MCP','8115672qYDIVf','Cấu\x20hình\x20MCP','Nhấp\x20để\x20kết\x20nối\x20MCP','MCP\x20Đang\x20thử\x20lại...','Đã\x20kết\x20nối','Nhấp\x20để\x20cấu\x20hình\x20MCP','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Bật\x20xác\x20thực','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Yêu\x20cầu\x20khóa\x20API','Đang\x20kết\x20nối...','1916402wFZLaj','1927959EoumAP','Lưu\x20cấu\x20hình\x20thất\x20bại','Lưu\x20cấu\x20hình','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Cấu\x20hình\x20không\x20hợp\x20lệ','MCP:\x20Không\x20được\x20phép','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Khóa\x20API','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','ID\x20phiên','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','4302276dOkAXO','MCP\x20Kết\x20nối\x20thất\x20bại'];_0x5806=function(){return _0x12ad30;};return _0x5806();}function _0x2b5a(_0x27ac24,_0x2e5eff){_0x27ac24=_0x27ac24-0x68;const _0x5806da=_0x5806();let _0x2b5a03=_0x5806da[_0x27ac24];return _0x2b5a03;}(function(_0xd2ce9b,_0x3eaa33){const _0x5c7f53=_0x2b5a,_0xc6366d=_0xd2ce9b();while(!![]){try{const _0x124e46=-parseInt(_0x5c7f53(0x7b))/0x1+-parseInt(_0x5c7f53(0x91))/0x2+parseInt(_0x5c7f53(0x92))/0x3+parseInt(_0x5c7f53(0x72))/0x4+-parseInt(_0x5c7f53(0x82))/0x5+parseInt(_0x5c7f53(0x85))/0x6+parseInt(_0x5c7f53(0x80))/0x7*(parseInt(_0x5c7f53(0x7f))/0x8);if(_0x124e46===_0x3eaa33)break;else _0xc6366d['push'](_0xc6366d['shift']());}catch(_0xfefca8){_0xc6366d['push'](_0xc6366d['shift']());}}}(_0x5806,0xb6730));const n={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x40564a(0x75),'connected':_0x40564a(0x81),'failed':_0x40564a(0x73),'retrying':_0x40564a(0x88),'unknown':_0x40564a(0x7e),'unauthorized':_0x40564a(0x6a),'sessionOccupied':_0x40564a(0x83),'networkError':'MCP:\x20Lỗi\x20mạng','maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':_0x40564a(0x87),'clickToConfigure':_0x40564a(0x8a)},'mcpConfig':{'title':_0x40564a(0x86),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':_0x40564a(0x6d),'apiKeyPlaceholder':'Nhập\x20khóa\x20API\x20của\x20bạn','apiKeyHint':_0x40564a(0x8b),'enableAuth':_0x40564a(0x8c),'enableAuthHint':_0x40564a(0x6c),'connectionInfo':_0x40564a(0x84),'mcpClientConfig':_0x40564a(0x84),'configInstructions':_0x40564a(0x7d),'configStepTitle':_0x40564a(0x76),'configStep1':_0x40564a(0x68),'configStep2':'Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','configStep3':'Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','sessionId':_0x40564a(0x70),'sessionIdDescription':'Đị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.','authorizationDescription':_0x40564a(0x6b),'configParameters':_0x40564a(0x7c),'maxRetries':_0x40564a(0x78),'save':_0x40564a(0x94),'saving':'Đang\x20lưu...','note1':'Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','note2':_0x40564a(0x71),'configSaved':_0x40564a(0x6e),'configError':_0x40564a(0x93),'apiApplyInfo':{'title':'Khóa\x20API\x20là\x20gì?','description':_0x40564a(0x74),'univerAiLabel':'Bảng\x20điều\x20khiển\x20Univer\x20AI','getStarted':_0x40564a(0x8e)},'validation':{'apiKeyRequired':_0x40564a(0x8f),'apiKeyTooShort':_0x40564a(0x79),'invalidConfig':_0x40564a(0x69),'invalidApiKey':'Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không'},'connectionStatus':{'disconnected':'Đã\x20ngắt\x20kết\x20nối','connecting':_0x40564a(0x90),'connected':_0x40564a(0x89),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x40564a(0x7a)},'connectionError':{'unauthorized':_0x40564a(0x6f),'sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':_0x40564a(0x77),'maxRetriesExceeded':_0x40564a(0x8d)}}};export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x4afba4=_0x3a2a;function _0x3a2a(_0x2b75a1,_0x2787f5){_0x2b75a1=_0x2b75a1-0x179;const _0x2e354f=_0x2e35();let _0x3a2a60=_0x2e354f[_0x2b75a1];return _0x3a2a60;}function _0x2e35(){const _0x219bc2=['MCP\x20已连接','36174jOoDZP','5mLoSJi','未连接','MCP\x20配置','配置步骤:','API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','会话\x20ID\x20已被占用,请稍后再试','将以下配置添加到您的\x20MCP\x20客户端设置中:','最大重试次数','MCP:\x20超出最大重试次数','重连中...','什么是\x20API\x20密钥?','超出最大重试次数,请稍后再试','网络连接错误,请检查您的网络连接','38dZcRXq','MCP\x20已断开','MCP\x20状态未知','会话ID','721736EtuOas','几秒钟内获取您的\x20API\x20密钥','MCP:\x20未授权','MCP\x20重连中...','MCP\x20连接中...','287349hfjrlG','连接失败','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','启用身份验证','配置保存成功','配置参数:','11xYdAWZ','配置保存失败','Univer\x20AI\x20控制台','3854742rzNcMV','权限验证失败,请检查您的\x20API\x20密钥','4072efzHon','MCP:\x20网络错误','5981510ahAQax','您的\x20API\x20密钥安全存储在本地存储中','您的\x20API\x20密钥将在此浏览器中本地存储','配置\x20MCP\x20使用\x20AI\x20操作电子表格','301aPiRUn','API\x20密钥长度至少需要\x2010\x20位','保存配置','917478kQpENA','启用身份验证以获得安全连接','请输入您的\x20API\x20密钥','MCP\x20客户端配置','连接中...','配置更改将立即生效','MCP:\x20会话\x20ID\x20已被占用','MCP\x20连接失败'];_0x2e35=function(){return _0x219bc2;};return _0x2e35();}(function(_0xf8530c,_0x4207c1){const _0xd0b3b8=_0x3a2a,_0x3c0da3=_0xf8530c();while(!![]){try{const _0xd6f542=-parseInt(_0xd0b3b8(0x192))/0x1*(parseInt(_0xd0b3b8(0x1a1))/0x2)+parseInt(_0xd0b3b8(0x1aa))/0x3+parseInt(_0xd0b3b8(0x1a5))/0x4*(-parseInt(_0xd0b3b8(0x193))/0x5)+parseInt(_0xd0b3b8(0x17e))/0x6+-parseInt(_0xd0b3b8(0x186))/0x7*(parseInt(_0xd0b3b8(0x180))/0x8)+-parseInt(_0xd0b3b8(0x189))/0x9+-parseInt(_0xd0b3b8(0x182))/0xa*(-parseInt(_0xd0b3b8(0x17b))/0xb);if(_0xd6f542===_0x4207c1)break;else _0x3c0da3['push'](_0x3c0da3['shift']());}catch(_0x22c95e){_0x3c0da3['push'](_0x3c0da3['shift']());}}}(_0x2e35,0x542f6));const e={'mcpStatus':{'disconnected':_0x4afba4(0x1a2),'connecting':_0x4afba4(0x1a9),'connected':_0x4afba4(0x191),'failed':_0x4afba4(0x190),'retrying':_0x4afba4(0x1a8),'unknown':_0x4afba4(0x1a3),'unauthorized':_0x4afba4(0x1a7),'sessionOccupied':_0x4afba4(0x18f),'networkError':_0x4afba4(0x181),'maxRetriesExceeded':_0x4afba4(0x19c),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x4afba4(0x195),'description':_0x4afba4(0x185),'apiKey':_0x4afba4(0x197),'apiKeyPlaceholder':_0x4afba4(0x18b),'apiKeyHint':_0x4afba4(0x184),'enableAuth':_0x4afba4(0x1ad),'enableAuthHint':_0x4afba4(0x18a),'connectionInfo':_0x4afba4(0x18c),'mcpClientConfig':_0x4afba4(0x18c),'configInstructions':_0x4afba4(0x19a),'configStepTitle':_0x4afba4(0x196),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4afba4(0x198),'sessionId':_0x4afba4(0x1a4),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x4afba4(0x17a),'maxRetries':_0x4afba4(0x19b),'save':_0x4afba4(0x188),'saving':'保存中...','note1':_0x4afba4(0x18e),'note2':_0x4afba4(0x183),'configSaved':_0x4afba4(0x179),'configError':_0x4afba4(0x17c),'apiApplyInfo':{'title':_0x4afba4(0x19e),'description':_0x4afba4(0x1ac),'univerAiLabel':_0x4afba4(0x17d),'getStarted':_0x4afba4(0x1a6)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x4afba4(0x187),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x4afba4(0x194),'connecting':_0x4afba4(0x18d),'connected':'已连接','failed':_0x4afba4(0x1ab),'retrying':_0x4afba4(0x19d)},'connectionError':{'unauthorized':_0x4afba4(0x17f),'sessionOccupied':_0x4afba4(0x199),'networkError':_0x4afba4(0x1a0),'maxRetriesExceeded':_0x4afba4(0x19f)}}};export{e as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2d272f=_0x59f4;(function(_0x188267,_0x4cb9a3){const _0x4372c7=_0x59f4,_0x36aa44=_0x188267();while(!![]){try{const _0x47360b=-parseInt(_0x4372c7(0x122))/0x1+parseInt(_0x4372c7(0x14a))/0x2+parseInt(_0x4372c7(0x127))/0x3*(parseInt(_0x4372c7(0x131))/0x4)+parseInt(_0x4372c7(0x12f))/0x5+-parseInt(_0x4372c7(0x120))/0x6*(-parseInt(_0x4372c7(0x143))/0x7)+parseInt(_0x4372c7(0x130))/0x8*(parseInt(_0x4372c7(0x12c))/0x9)+-parseInt(_0x4372c7(0x134))/0xa;if(_0x47360b===_0x4cb9a3)break;else _0x36aa44['push'](_0x36aa44['shift']());}catch(_0x571e24){_0x36aa44['push'](_0x36aa44['shift']());}}}(_0x2f76,0x72c0c));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2d272f(0x129),'connected':_0x2d272f(0x125),'failed':_0x2d272f(0x13c),'retrying':_0x2d272f(0x141),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2d272f(0x12a),'maxRetriesExceeded':_0x2d272f(0x12b),'clickToConnect':_0x2d272f(0x136),'clickToConfigure':_0x2d272f(0x128)},'mcpConfig':{'title':_0x2d272f(0x139),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2d272f(0x133),'apiKeyPlaceholder':_0x2d272f(0x145),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2d272f(0x12d),'enableAuthHint':_0x2d272f(0x124),'connectionInfo':_0x2d272f(0x142),'mcpClientConfig':_0x2d272f(0x142),'configInstructions':_0x2d272f(0x13a),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2d272f(0x147),'configStep2':_0x2d272f(0x11e),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x2d272f(0x11d),'authorizationDescription':_0x2d272f(0x11f),'configParameters':_0x2d272f(0x13b),'maxRetries':_0x2d272f(0x135),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x2d272f(0x149),'note2':_0x2d272f(0x13d),'configSaved':_0x2d272f(0x121),'configError':_0x2d272f(0x148),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2d272f(0x138),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2d272f(0x13f)},'validation':{'apiKeyRequired':_0x2d272f(0x144),'apiKeyTooShort':_0x2d272f(0x14c),'invalidConfig':_0x2d272f(0x146),'invalidApiKey':_0x2d272f(0x126)},'connectionStatus':{'disconnected':_0x2d272f(0x132),'connecting':_0x2d272f(0x12e),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x2d272f(0x14b)},'connectionError':{'unauthorized':_0x2d272f(0x13e),'sessionOccupied':_0x2d272f(0x137),'networkError':_0x2d272f(0x140),'maxRetriesExceeded':_0x2d272f(0x123)}}},n=e;export{n as default};function _0x59f4(_0x5ba6b8,_0x12a2c2){_0x5ba6b8=_0x5ba6b8-0x11d;const _0x2f763d=_0x2f76();let _0x59f4e0=_0x2f763d[_0x5ba6b8];return _0x59f4e0;}function _0x2f76(){const _0x3d4c85=['Enter\x20your\x20API\x20key','Invalid\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1747276XIjtvh','Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20with\x20Bearer\x20prefix.','906QiUHTR','Configuration\x20saved\x20successfully','34193eaZOsQ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','21WGTcqT','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','MCP:\x20Network\x20Error','MCP:\x20Max\x20Retries\x20Exceeded','413190QwHEfb','Enable\x20Authentication','Connecting...','492005gWKbbP','8LegNTn','512684MwlZyX','Disconnected','API\x20Key','14905020NhsQsJ','Max\x20Retries','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20Parameters:','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Retrying...','MCP\x20Client\x20Configuration','3689cBlsUc','API\x20key\x20is\x20required'];_0x2f76=function(){return _0x3d4c85;};return _0x2f76();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xc70430=_0x2fba;(function(_0x21c83b,_0x205346){const _0x1dac2d=_0x2fba,_0x3290ca=_0x21c83b();while(!![]){try{const _0x4e411f=-parseInt(_0x1dac2d(0x295))/0x1*(-parseInt(_0x1dac2d(0x247))/0x2)+parseInt(_0x1dac2d(0x2ba))/0x3+parseInt(_0x1dac2d(0x1af))/0x4+-parseInt(_0x1dac2d(0x1cb))/0x5+parseInt(_0x1dac2d(0x272))/0x6*(parseInt(_0x1dac2d(0x1f0))/0x7)+parseInt(_0x1dac2d(0x2dd))/0x8*(-parseInt(_0x1dac2d(0x28b))/0x9)+parseInt(_0x1dac2d(0x1b8))/0xa*(parseInt(_0x1dac2d(0x2c1))/0xb);if(_0x4e411f===_0x205346)break;else _0x3290ca['push'](_0x3290ca['shift']());}catch(_0x551a05){_0x3290ca['push'](_0x3290ca['shift']());}}}(_0x22b3,0xed671));var Pe=Object[_0xc70430(0x2c5)],Ee=(_0x14ff4b,_0x1f830d,_0xd51d78)=>_0x1f830d in _0x14ff4b?Pe(_0x14ff4b,_0x1f830d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd51d78}):_0x14ff4b[_0x1f830d]=_0xd51d78,x=(_0x27ee51,_0x5c9c46,_0x47e9e7)=>Ee(_0x27ee51,typeof _0x5c9c46!=_0xc70430(0x2b9)?_0x5c9c46+'':_0x5c9c46,_0x47e9e7);import{LocaleService as _0x3ca3c0,Inject as _0x4ec27f,Injector as _0x2ea9cd,IConfigService as _0x1b1405,ILocalStorageService as _0x119742,ILogService as _0x3e3adb,Disposable as _0xa23c43,CommandType as _0x24bcf0,ICommandService as _0x46583b,DependentOn as _0x370e16,Plugin as _0x366cc9,merge as _0x3c61f2}from'@univerjs/core';import{jsxs as _0x30d051,jsx as _0x2bee5c}from'react/jsx-runtime';function _0x2fba(_0x461b43,_0x349801){_0x461b43=_0x461b43-0x194;const _0x22b31e=_0x22b3();let _0x2fba11=_0x22b31e[_0x461b43];return _0x2fba11;}import{MCPConnectionStatus as _0x1fd146,MCPConnectionError as _0x37cda4,MCPConnectionController as _0x4ccb5d,MCP_PLUGIN_CONFIG_KEY as _0x1aec7d,UniverMCPPlugin as _0x23c55e}from'@univerjs-pro/mcp';import{clsx as _0x29c14e,Input as _0x20ebf9,Button as _0x297c10,MessageType as _0x46b581,Tooltip as _0x315236}from'@univerjs/design';import{useDependency as _0x424c48,useObservable as _0xaeeec6,IUIPartsService as _0xcca592,IDialogService as _0x2d458a,IMessageService as _0x46ab61,ComponentManager as _0x5479c5,connectInjector as _0x2902af,BuiltInUIPart as _0x184ac4,MenuItemType as _0x3968d8,RibbonStartGroup as _0xc7b462,IMenuManagerService as _0x57aeeb}from'@univerjs/ui';import{BehaviorSubject as _0x2b5af2}from'rxjs';import{useRef as _0x3c6c11,createElement as _0x294b23,forwardRef as _0x426ac9,useState as _0x4c231f,useCallback as _0x48e070}from'react';import{ISocketService as _0x1e64d4,WebSocketService as _0x897e1b}from'@univerjs/network';function b({ref:_0x5034ec,..._0x5f10fd}){const _0x456aa1=_0xc70430,{icon:_0x54a2df,id:_0x401f88,className:_0x1775a6,extend:_0x156991,..._0x53662e}=_0x5f10fd,_0x13e5a9=(_0x456aa1(0x1a7)+_0x401f88+'\x20'+(_0x1775a6||''))[_0x456aa1(0x27d)](),_0x85cf97=_0x3c6c11('_'+We());return ae(_0x54a2df,''+_0x401f88,{'defIds':_0x54a2df[_0x456aa1(0x1d1)],'idSuffix':_0x85cf97[_0x456aa1(0x1f8)]},{'ref':_0x5034ec,'className':_0x13e5a9,..._0x53662e},_0x156991);}function ae(_0x142752,_0x251bb5,_0x2569bf,_0x2e35de,_0xffff0b){const _0x4802c3=_0xc70430;return _0x294b23(_0x142752['tag'],{'key':_0x251bb5,...Ye(_0x142752,_0x2569bf,_0xffff0b),..._0x2e35de},(Ze(_0x142752,_0x2569bf)[_0x4802c3(0x2cd)]||[])[_0x4802c3(0x1b0)]((_0x12322c,_0x4482bc)=>ae(_0x12322c,_0x251bb5+'-'+_0x142752[_0x4802c3(0x28f)]+'-'+_0x4482bc,_0x2569bf,void 0x0,_0xffff0b)));}function Ye(_0x1afd1a,_0x224b1d,_0xbb9469){const _0x38f610=_0xc70430,_0x31401f={..._0x1afd1a['attrs']};_0xbb9469!=null&&_0xbb9469[_0x38f610(0x209)]&&_0x31401f[_0x38f610(0x2be)]===_0x38f610(0x209)&&(_0x31401f['fill']=_0xbb9469[_0x38f610(0x209)]),_0x1afd1a[_0x38f610(0x28f)]===_0x38f610(0x1f9)&&_0x31401f['id']&&(_0x31401f['id']=_0x31401f['id']+_0x224b1d[_0x38f610(0x2ca)]),Object[_0x38f610(0x1b4)](_0x31401f)[_0x38f610(0x2c7)](([_0x223b9e,_0x291216])=>{const _0x1ba610=_0x38f610;_0x223b9e===_0x1ba610(0x1f9)&&typeof _0x291216==_0x1ba610(0x280)&&(_0x31401f[_0x223b9e]=_0x291216[_0x1ba610(0x28d)](/url\(#(.*)\)/,_0x1ba610(0x2cb)+_0x224b1d['idSuffix']+')'));});const {defIds:_0x2ec99a}=_0x224b1d;return!_0x2ec99a||_0x2ec99a[_0x38f610(0x1f1)]===0x0||(_0x1afd1a[_0x38f610(0x28f)]===_0x38f610(0x1cc)&&_0x31401f[_0x38f610(0x1fa)]&&(_0x31401f[_0x38f610(0x1fa)]=_0x31401f['xlink:href']+_0x224b1d[_0x38f610(0x2ca)]),Object[_0x38f610(0x1b4)](_0x31401f)['forEach'](([_0x8b7e7e,_0x3c06a6])=>{const _0x436d18=_0x38f610;typeof _0x3c06a6==_0x436d18(0x280)&&(_0x31401f[_0x8b7e7e]=_0x3c06a6[_0x436d18(0x28d)](/url\(#(.*)\)/,_0x436d18(0x2cb)+_0x224b1d[_0x436d18(0x2ca)]+')'));})),_0x31401f;}function Ze(_0x553988,_0x471b6a){const _0x2a011a=_0xc70430;var _0x3a1a0f;const {defIds:_0x5f43dd}=_0x471b6a;return!_0x5f43dd||_0x5f43dd[_0x2a011a(0x1f1)]===0x0?_0x553988:_0x553988[_0x2a011a(0x28f)]===_0x2a011a(0x2db)&&((_0x3a1a0f=_0x553988[_0x2a011a(0x2cd)])!=null&&_0x3a1a0f['length'])?{..._0x553988,'children':_0x553988[_0x2a011a(0x2cd)][_0x2a011a(0x1b0)](_0x1a3d41=>typeof _0x1a3d41[_0x2a011a(0x1c7)]['id']==_0x2a011a(0x280)&&_0x5f43dd&&_0x5f43dd[_0x2a011a(0x223)](_0x1a3d41[_0x2a011a(0x1c7)]['id'])?{..._0x1a3d41,'attrs':{..._0x1a3d41[_0x2a011a(0x1c7)],'id':_0x1a3d41[_0x2a011a(0x1c7)]['id']+_0x471b6a['idSuffix']}}:_0x1a3d41)}:_0x553988;}function We(){const _0x311aba=_0xc70430;return Math['random']()[_0x311aba(0x26e)](0x24)[_0x311aba(0x2bd)](0x2,0x8);}b[_0xc70430(0x2a6)]=_0xc70430(0x229);const qe={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':_0xc70430(0x2b0),'height':_0xc70430(0x2b0)},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'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=_0x426ac9(function(_0x84308d,_0x3eb561){const _0x3a3b71=_0xc70430;return _0x294b23(b,Object[_0x3a3b71(0x262)]({},_0x84308d,{'id':_0x3a3b71(0x1db),'ref':_0x3eb561,'icon':qe}));});le[_0xc70430(0x2a6)]=_0xc70430(0x2c3);const Xe={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':'1em','height':_0xc70430(0x2b0)},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'d':_0xc70430(0x1bc)}}]},ue=_0x426ac9(function(_0x24a3c0,_0x11738d){return _0x294b23(b,Object['assign']({},_0x24a3c0,{'id':'close-icon','ref':_0x11738d,'icon':Xe}));});ue[_0xc70430(0x2a6)]=_0xc70430(0x27c);const Je={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':_0xc70430(0x2b0),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0xc70430(0x29c),'d':_0xc70430(0x2d7)}},{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'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':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0xc70430(0x1b5),'clipRule':_0xc70430(0x1b5)}}]},ve=_0x426ac9(function(_0x104906,_0x2bdefc){const _0x55df6d=_0xc70430;return _0x294b23(b,Object['assign']({},_0x104906,{'id':_0x55df6d(0x227),'ref':_0x2bdefc,'icon':Je}));});ve[_0xc70430(0x2a6)]='HelpIcon';const Qe={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':_0xc70430(0x2b0),'height':_0xc70430(0x2b0)},'children':[{'tag':'g','attrs':{'clipPath':_0xc70430(0x194)},'children':[{'tag':_0xc70430(0x256),'attrs':{'stroke':'currentColor','d':_0xc70430(0x28a),'strokeLinecap':_0xc70430(0x258),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xc70430(0x232),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x207),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0xc70430(0x2ee)]},de=_0x426ac9(function(_0x4bf6c2,_0x13aa10){const _0x16e8a3=_0xc70430;return _0x294b23(b,Object['assign']({},_0x4bf6c2,{'id':_0x16e8a3(0x241),'ref':_0x13aa10,'icon':Qe}));});de[_0xc70430(0x2a6)]=_0xc70430(0x25a);const en={'tag':_0xc70430(0x29f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x245),'width':'1em','height':_0xc70430(0x2b0)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xc70430(0x256),'attrs':{'stroke':_0xc70430(0x29c),'d':_0xc70430(0x1a6),'strokeLinecap':_0xc70430(0x258),'strokeLinejoin':_0xc70430(0x258),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':'white','d':_0xc70430(0x1d2),'transform':_0xc70430(0x1b9)}}]}]}],'defIds':[_0xc70430(0x230)]},ge=_0x426ac9(function(_0x5f4778,_0x269b0a){const _0x1b8060=_0xc70430;return _0x294b23(b,Object[_0x1b8060(0x262)]({},_0x5f4778,{'id':'on-line-icon','ref':_0x269b0a,'icon':en}));});ge[_0xc70430(0x2a6)]='OnLineIcon';function nn(_0x1b2f4d){const _0x27b78b=_0xc70430;var _0x109552,_0x5efbb1;const {mcpCoreConfig:_0x772468,onSave:_0xad4bb0,loading:_0x46bcf4=!0x1,config:_0x5613eb,connectionStatus$:_0x5ee0a8,connectionError$:_0x41d782,currentApiKey$:_0x495036,currentSessionId$:_0x204a5d}=_0x1b2f4d,_0x3fe769=_0x424c48(_0x3ca3c0),_0x21315c=_0xaeeec6(_0x5ee0a8,_0x1fd146[_0x27b78b(0x2e8)]),_0x519298=_0xaeeec6(_0x41d782,_0x37cda4['NONE']),_0x5d2b3d=_0xaeeec6(_0x204a5d,''),_0x486bcb=_0xaeeec6(_0x495036,''),[_0x37dd77,_0x4eeced]=_0x4c231f(_0x486bcb||''),_0x4fd668=!0x0,_0xa82e72=_0x5613eb[_0x27b78b(0x1ab)]&&_0x772468[_0x27b78b(0x1e0)]&&(_0x772468[_0x27b78b(0x1e0)][_0x27b78b(0x223)](_0x27b78b(0x1a1))||_0x772468[_0x27b78b(0x1e0)][_0x27b78b(0x223)](_0x27b78b(0x2e5))),_0x484b11=(_0x109552=_0x772468[_0x27b78b(0x1e0)])==null?void 0x0:_0x109552[_0x27b78b(0x223)](_0x27b78b(0x1a1)),_0x2ab238=(_0x5efbb1=_0x772468['mcpServerUrl'])==null?void 0x0:_0x5efbb1[_0x27b78b(0x223)]('univer.ai'),_0x12f83a=_0x484b11?_0x27b78b(0x1f4):_0x27b78b(0x23a),_0x4d85ad=_0x5613eb[_0x27b78b(0x1ab)]&&(_0x484b11||_0x2ab238),[_0x3abf41,_0x2b9fa6]=_0x4c231f(!_0x37dd77['trim']()),_0x118262=(_0x5cc2fb,_0x3ad01e)=>{const _0x547acf=_0x27b78b;if(_0x3ad01e===_0x37cda4[_0x547acf(0x1c3)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5cc2fb){case _0x1fd146['CONNECTED']:return _0x547acf(0x251);case _0x1fd146[_0x547acf(0x1d8)]:case _0x1fd146[_0x547acf(0x1e6)]:return _0x547acf(0x266);case _0x1fd146['FAILED']:return _0x547acf(0x294);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3dbbc3=(_0x48442d,_0x302f7f)=>{const _0x441a7d=_0x27b78b;if(_0x302f7f===_0x37cda4[_0x441a7d(0x1c3)])return _0x441a7d(0x1cf);switch(_0x48442d){case _0x1fd146['CONNECTED']:return'univer-bg-green-500';case _0x1fd146['CONNECTING']:case _0x1fd146['RETRYING']:return _0x441a7d(0x20b);case _0x1fd146[_0x441a7d(0x20c)]:return _0x441a7d(0x1cf);default:return'univer-bg-gray-500';}},_0x46478a=_0x38b55c=>{const _0x4433f1=_0x27b78b;switch(_0x38b55c){case _0x1fd146['CONNECTED']:return _0x3fe769['t'](_0x4433f1(0x260));case _0x1fd146['CONNECTING']:return _0x3fe769['t'](_0x4433f1(0x228));case _0x1fd146[_0x4433f1(0x20c)]:return _0x3fe769['t'](_0x4433f1(0x276));case _0x1fd146['RETRYING']:return _0x3fe769['t']('mcpConfig.connectionStatus.retrying');default:return _0x3fe769['t']('mcpConfig.connectionStatus.disconnected');}},_0x61bc3c=_0x3bd597=>{const _0x4d26e0=_0x27b78b;switch(_0x3bd597){case _0x37cda4[_0x4d26e0(0x1c3)]:return _0x3fe769['t'](_0x4d26e0(0x2d0));case _0x37cda4[_0x4d26e0(0x19f)]:return _0x3fe769['t'](_0x4d26e0(0x1e5));case _0x37cda4['NETWORK_ERROR']:return _0x3fe769['t'](_0x4d26e0(0x208));case _0x37cda4[_0x4d26e0(0x1fb)]:return _0x3fe769['t'](_0x4d26e0(0x242));default:return'';}},_0x11afb4=_0x48e070(()=>{const _0x20d68f=_0x27b78b,_0x4412e4={..._0x772468,'apiKey':_0x37dd77[_0x20d68f(0x27d)](),'enableAuth':_0x4fd668};_0xad4bb0(_0x4412e4);},[_0x772468,_0x37dd77,_0x4fd668,_0xad4bb0]),_0x4a003d=_0x37dd77[_0x27b78b(0x27d)]()['length']>0x0;return _0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x1fc),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x246),'children':_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x2bee5c('div',{'className':_0x27b78b(0x275),'children':_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x255),'children':'⚙'})}),_0x2bee5c(_0x27b78b(0x1eb),{'children':_0x2bee5c('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3fe769['t'](_0x27b78b(0x291))})})]})}),_0x30d051('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x29c14e(_0x27b78b(0x19c),_0x118262(_0x21315c,_0x519298)),'children':_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x29c14e(_0x27b78b(0x1c1),_0x3dbbc3(_0x21315c,_0x519298))}),_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x20f),'children':_0x46478a(_0x21315c)})]})}),_0x519298!==_0x37cda4['NONE']&&(_0x21315c===_0x1fd146[_0x27b78b(0x20c)]||_0x519298===_0x37cda4['UNAUTHORIZED'])&&_0x2bee5c('div',{'className':_0x27b78b(0x21e),'children':_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x219),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x2a5),'children':'⚠️'}),_0x2bee5c('p',{'className':_0x27b78b(0x22b),'children':_0x61bc3c(_0x519298)})]})})]}),_0x2bee5c('div',{'className':_0x27b78b(0x1d9),'children':_0x30d051('div',{'className':_0x27b78b(0x1cd),'children':[_0x30d051('div',{'className':'univer-space-y-2','children':[_0x30d051('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x2bee5c(_0x27b78b(0x1a4),{'children':'🔑'}),'\x20',_0x3fe769['t']('mcpConfig.apiKey'),_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x23f),'children':'*'}),_0xa82e72&&_0x2bee5c('a',{'className':_0x27b78b(0x25c),'title':_0x3fe769['t'](_0x27b78b(0x29b)),'role':_0x27b78b(0x24c),'onClick':()=>_0x2b9fa6(!0x0),'children':_0x2bee5c(ve,{})})]}),_0x2bee5c(_0x20ebf9,{'type':_0x27b78b(0x210),'placeholder':_0x3fe769['t'](_0x27b78b(0x2f0)),'value':_0x37dd77,'disabled':_0x46bcf4,'autoComplete':_0x27b78b(0x220),'onChange':_0x4eeced}),_0x2bee5c('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3fe769['t'](_0x27b78b(0x2f1))})]}),_0xa82e72&&_0x3abf41&&_0x30d051('div',{'className':'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','children':[_0x2bee5c('a',{'className':_0x27b78b(0x2e7),'role':_0x27b78b(0x24c),'onClick':()=>_0x2b9fa6(!0x1),'children':_0x2bee5c(ue,{'className':_0x27b78b(0x1ca)})}),_0x30d051('div',{'className':_0x27b78b(0x1ff),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x1bd),'children':_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x27a),'children':'🚀'})}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x216),'children':[_0x2bee5c('h4',{'className':_0x27b78b(0x26a),'children':_0x3fe769['t'](_0x27b78b(0x29b))}),_0x2bee5c('p',{'className':_0x27b78b(0x274),'children':_0x3fe769['t']('mcpConfig.apiApplyInfo.description')}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x287),'children':_0x4d85ad&&_0x30d051('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':_0x12f83a,'target':_0x27b78b(0x268),'rel':_0x27b78b(0x1ce),'children':[_0x2bee5c('span',{'children':'🤖'}),_0x3fe769['t'](_0x27b78b(0x293)),_0x2bee5c('span',{'className':_0x27b78b(0x19a),'children':'↗'})]})}),_0x30d051('div',{'className':_0x27b78b(0x271),'children':['✨','\x20',_0x3fe769['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x5613eb['showDeveloperTools']&&_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x27f),'children':[_0x30d051('h4',{'className':_0x27b78b(0x298),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'children':'🔗'}),'\x20',_0x3fe769['t'](_0x27b78b(0x217))]}),_0x30d051('div',{'className':_0x27b78b(0x21c),'children':[_0x30d051('div',{'className':_0x27b78b(0x2a7),'children':[_0x2bee5c('p',{'className':_0x27b78b(0x2c0),'children':_0x3fe769['t']('mcpConfig.configInstructions')}),_0x30d051('div',{'className':_0x27b78b(0x224),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x22d),'children':_0x3fe769['t']('mcpConfig.configStepTitle')}),_0x30d051('div',{'className':_0x27b78b(0x26d),'children':[_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x26b),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x253),'children':'1'}),_0x3fe769['t']('mcpConfig.configStep1')]}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x26b),'children':[_0x2bee5c('span',{'className':_0x27b78b(0x253),'children':'2'}),_0x3fe769['t'](_0x27b78b(0x20d))]}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x253),'children':'3'}),_0x3fe769['t'](_0x27b78b(0x22f))]})]})]})]}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-space-y-2','children':[_0x2bee5c('div',{'className':_0x27b78b(0x22d),'children':'MCP\x20Configuration'}),_0x2bee5c('div',{'className':_0x27b78b(0x2c2),'children':_0x2bee5c(_0x27b78b(0x1e7),{'className':_0x27b78b(0x2ef),'children':JSON[_0x27b78b(0x2ab)]({'mcpServers':{'univer':{'url':_0x27b78b(0x2d3)+(_0x5d2b3d||'<SESSION_ID>'),'type':_0x27b78b(0x24a),'headers':{'Authorization':'Bearer\x20'+(_0x37dd77||'<API_KEY>')}}}},null,0x2)})})]}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-space-y-3','children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3fe769['t'](_0x27b78b(0x1b3))}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x224),'children':[_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x2bee5c('div',{'className':_0x27b78b(0x285)}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x1c8),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x2dc),'children':_0x27b78b(0x1ad)}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x25b),'children':_0x3fe769['t'](_0x27b78b(0x2b2))})]})]}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x233),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x2bee5c('div',{'className':_0x27b78b(0x2dc),'children':_0x27b78b(0x261)}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x25b),'children':_0x3fe769['t'](_0x27b78b(0x281))})]})]})]})]})]})]}),_0x2bee5c(_0x297c10,{'onClick':_0x11afb4,'disabled':!_0x4a003d||_0x46bcf4,'className':_0x27b78b(0x2d2),'children':_0x46bcf4?_0x30d051('span',{'className':_0x27b78b(0x26b),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'children':'⟲'}),_0x3fe769['t']('mcpConfig.saving')]}):_0x30d051(_0x27b78b(0x1a4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2bee5c(le,{}),_0x3fe769['t'](_0x27b78b(0x2bf))]})}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x252),'children':_0x30d051('div',{'className':_0x27b78b(0x198),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x2b7),'children':'💡'}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x2d1),'children':[_0x2bee5c('div',{'className':'univer-font-medium','children':_0x27b78b(0x27e)}),_0x30d051('div',{'children':['•',_0x3fe769['t']('mcpConfig.note1')]}),_0x30d051(_0x27b78b(0x1eb),{'children':['•',_0x3fe769['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0xc70430(0x284),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0xc70430(0x23e)],tn=(_0x383523,_0x58fc7b,_0x10451c,_0x3b76f1)=>{const _0x1cd3c0=_0xc70430;for(var _0x580269=_0x3b76f1>0x1?void 0x0:_0x3b76f1?rn(_0x58fc7b,_0x10451c):_0x58fc7b,_0x4c2770=_0x383523[_0x1cd3c0(0x1f1)]-0x1,_0xf1447c;_0x4c2770>=0x0;_0x4c2770--)(_0xf1447c=_0x383523[_0x4c2770])&&(_0x580269=_0xf1447c(_0x580269)||_0x580269);return _0x580269;},d=(_0x3440e9,_0x1c56fc)=>(_0x419f86,_0x1f1b9c)=>_0x1c56fc(_0x419f86,_0x1f1b9c,_0x3440e9);const U=_0xc70430(0x2bc),L='mcp-config-dialog';let I=class extends _0xa23c43{constructor(_0x7c03a,_0x2da6bf,_0x1e8194,_0x4aa54f,_0x38913f,_0x5a3110,_0x44a2b8,_0x303b28,_0x4150bc,_0x28e31d){const _0x43694d=_0xc70430;super(),x(this,_0x43694d(0x1a3),new _0x2b5af2(!0x1)),x(this,'_mcpCoreConfig$',new _0x2b5af2({})),x(this,_0x43694d(0x1e9),new _0x2b5af2({})),x(this,'_apiKey$',new _0x2b5af2('')),x(this,_0x43694d(0x25e),async _0x49d703=>{const _0x571a5d=_0x43694d;var _0x2fcb55,_0xd22f36;this['_loading$'][_0x571a5d(0x19e)](!0x0);try{const _0x53a032=await this[_0x571a5d(0x2e0)](_0x49d703);if(!_0x53a032[_0x571a5d(0x2d9)]){this[_0x571a5d(0x21f)][_0x571a5d(0x2d6)]({'type':_0x46b581[_0x571a5d(0x202)],'content':_0x53a032[_0x571a5d(0x243)]||this[_0x571a5d(0x1c9)]['t'](_0x571a5d(0x1df))});return;}_0x49d703[_0x571a5d(0x240)]?await this['_localStorageService'][_0x571a5d(0x2c8)](U,_0x49d703[_0x571a5d(0x240)][_0x571a5d(0x27d)]()):await this[_0x571a5d(0x2ed)][_0x571a5d(0x264)](U),this[_0x571a5d(0x2df)]['next'](((_0x2fcb55=_0x49d703[_0x571a5d(0x240)])==null?void 0x0:_0x2fcb55['trim']())||''),this[_0x571a5d(0x24f)][_0x571a5d(0x267)]({'Authorization':_0x571a5d(0x2a9)+((_0xd22f36=_0x49d703[_0x571a5d(0x240)])==null?void 0x0:_0xd22f36[_0x571a5d(0x27d)]())}),this[_0x571a5d(0x21f)][_0x571a5d(0x2d6)]({'type':_0x46b581[_0x571a5d(0x289)],'content':this[_0x571a5d(0x1c9)]['t'](_0x571a5d(0x1ea))}),setTimeout(()=>{const _0xd38f3=_0x571a5d;this[_0xd38f3(0x1da)]['close'](L);},0x320);}catch(_0x1afc5e){this['_logService']['error'](_0x571a5d(0x1ba),_0x1afc5e),this['_messageService'][_0x571a5d(0x2d6)]({'type':_0x46b581[_0x571a5d(0x202)],'content':this[_0x571a5d(0x1c9)]['t'](_0x571a5d(0x2b4))});}finally{this['_loading$']['next'](!0x1);}}),(this[_0x43694d(0x2a2)]=_0x7c03a,this['_uiPartsService']=_0x2da6bf,this['_configService']=_0x1e8194,this['_localStorageService']=_0x4aa54f,this[_0x43694d(0x1da)]=_0x38913f,this['_messageService']=_0x5a3110,this[_0x43694d(0x1fd)]=_0x44a2b8,this[_0x43694d(0x1c9)]=_0x303b28,this[_0x43694d(0x1f7)]=_0x4150bc,this['_mcpConnectionController']=_0x28e31d,this['_initConfigSync'](),this['_loadStoredApiKey'](),this['_registerComponent']());}[_0xc70430(0x1ef)](){const _0x53c8ff=_0xc70430,_0x447d6a=this['_configService'][_0x53c8ff(0x1b1)](y);_0x447d6a!=null&&_0x447d6a['showDeveloperTools']&&this[_0x53c8ff(0x1da)][_0x53c8ff(0x21b)]({'id':L,'title':{'title':this['_localeService']['t'](_0x53c8ff(0x235))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x47896c=_0x53c8ff;this['_dialogService'][_0x47896c(0x1c4)](L);}});}[_0xc70430(0x21d)](){const _0x2218e5=_0xc70430;return this['_mcpCoreConfig$'][_0x2218e5(0x2b6)];}[_0xc70430(0x2e3)](){const _0x25b8a9=_0xc70430;this[_0x25b8a9(0x29e)](this[_0x25b8a9(0x1fd)][_0x25b8a9(0x2eb)](_0x25b8a9(0x218),this[_0x25b8a9(0x249)]()));}[_0xc70430(0x249)](){const _0x3a83b4=_0xc70430;return _0x2902af(()=>{const _0x114ceb=_0x2fba;var _0x23f496,_0x591529,_0x2927f2;return _0x2bee5c(nn,{'config':this[_0x114ceb(0x1e9)][_0x114ceb(0x2b6)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x114ceb(0x2b6)],'currentApiKey$':this[_0x114ceb(0x2df)],'onSave':this['_handleConfigSave'],'loading':this[_0x114ceb(0x1a3)][_0x114ceb(0x2b6)],'connectionStatus$':(_0x23f496=this['_mcpConnectionController'])==null?void 0x0:_0x23f496[_0x114ceb(0x1a2)],'connectionError$':(_0x591529=this[_0x114ceb(0x24f)])==null?void 0x0:_0x591529['connectionError$'],'currentSessionId$':(_0x2927f2=this[_0x114ceb(0x24f)])==null?void 0x0:_0x2927f2[_0x114ceb(0x259)]});},this[_0x3a83b4(0x2a2)]);}[_0xc70430(0x296)](){const _0x4107cf=_0xc70430;this[_0x4107cf(0x29e)](this[_0x4107cf(0x1e4)][_0x4107cf(0x1ec)](_0x1aec7d)[_0x4107cf(0x283)](_0xbbae7f=>{const _0x41d70d=_0x4107cf;this[_0x41d70d(0x1c0)][_0x41d70d(0x19e)](_0xbbae7f||{});}));const _0x59380b=this[_0x4107cf(0x1e4)][_0x4107cf(0x1b1)](_0x1aec7d);this['_mcpCoreConfig$']['next'](_0x59380b||{}),this[_0x4107cf(0x29e)](this[_0x4107cf(0x1e4)][_0x4107cf(0x1ec)](y)[_0x4107cf(0x283)](_0x22d207=>{const _0x415253=_0x4107cf;this[_0x415253(0x1e9)][_0x415253(0x19e)](_0x22d207||{});}));const _0x4a7320=this[_0x4107cf(0x1e4)][_0x4107cf(0x1b1)](y);this['_config$'][_0x4107cf(0x19e)](_0x4a7320||{});}async[_0xc70430(0x279)](){const _0x2cbd0d=_0xc70430,_0x3cbf5b=this[_0x2cbd0d(0x1e4)][_0x2cbd0d(0x1b1)](y);if(!(_0x3cbf5b!=null&&_0x3cbf5b['showDeveloperTools']))return;const _0xf83c8b=await this[_0x2cbd0d(0x2ed)][_0x2cbd0d(0x2b3)](U);_0xf83c8b&&(this[_0x2cbd0d(0x24f)][_0x2cbd0d(0x267)]({'Authorization':_0x2cbd0d(0x2a9)+_0xf83c8b}),this[_0x2cbd0d(0x2df)][_0x2cbd0d(0x19e)](_0xf83c8b));}async[_0xc70430(0x2e0)](_0x35c8b7){const _0x13fd8a=_0xc70430;if(!_0x35c8b7[_0x13fd8a(0x240)]||_0x35c8b7[_0x13fd8a(0x240)][_0x13fd8a(0x27d)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x13fd8a(0x1c9)]['t'](_0x13fd8a(0x2e1))};if(_0x35c8b7['apiKey'][_0x13fd8a(0x27d)]()[_0x13fd8a(0x1f1)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x13fd8a(0x1c9)]['t'](_0x13fd8a(0x1dc))};try{const _0x2c4814=await this[_0x13fd8a(0x2a2)]['get'](_0x4ccb5d)[_0x13fd8a(0x22a)](_0x35c8b7[_0x13fd8a(0x240)][_0x13fd8a(0x27d)]());return _0x2c4814[_0x13fd8a(0x2d9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c4814[_0x13fd8a(0x28c)]||this[_0x13fd8a(0x1c9)]['t'](_0x13fd8a(0x19b))};}catch(_0x2ee456){return console[_0x13fd8a(0x2ea)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2ee456),{'isValid':!0x0};}}};I=tn([d(0x0,_0x4ec27f(_0x2ea9cd)),d(0x1,_0xcca592),d(0x2,_0x1b1405),d(0x3,_0x119742),d(0x4,_0x2d458a),d(0x5,_0x46ab61),d(0x6,_0x4ec27f(_0x5479c5)),d(0x7,_0x4ec27f(_0x3ca3c0)),d(0x8,_0x3e3adb),d(0x9,_0x4ec27f(_0x4ccb5d))],I);const V={'id':_0xc70430(0x24b),'type':_0x24bcf0['COMMAND'],'handler':async(_0x1e5c9d,_0x3f3f4b)=>(_0x1e5c9d[_0xc70430(0x20e)](I)[_0xc70430(0x1ef)](),!0x0)};function pe(_0x34734e,_0x1790e5){const _0x345c48=_0xc70430;switch(_0x34734e){case _0x1fd146[_0x345c48(0x2e8)]:return _0x345c48(0x1fe);case _0x1fd146['CONNECTING']:return _0x345c48(0x1b2);case _0x1fd146[_0x345c48(0x2c9)]:return _0x345c48(0x1a8);case _0x1fd146['FAILED']:switch(_0x1790e5){case _0x37cda4['UNAUTHORIZED']:return _0x345c48(0x28e);case _0x37cda4[_0x345c48(0x19f)]:return'mcpStatus.sessionOccupied';case _0x37cda4[_0x345c48(0x1de)]:return'mcpStatus.networkError';case _0x37cda4[_0x345c48(0x1fb)]:return'mcpStatus.maxRetriesExceeded';default:return _0x345c48(0x2e2);}case _0x1fd146[_0x345c48(0x1e6)]:return _0x345c48(0x1a9);default:return'mcpStatus.unknown';}}function on(_0x539fde,_0xffe4cf,_0x5add93,_0x2c0f0d=!0x0){const _0x3b27f3=_0xc70430,_0x5ddf5d=pe(_0x539fde,_0xffe4cf),_0x4598bf=_0x5add93['t'](_0x5ddf5d);return _0x2c0f0d?_0x539fde===_0x1fd146['DISCONNECTED']&&_0xffe4cf===_0x37cda4[_0x3b27f3(0x1c3)]?_0x4598bf+_0x3b27f3(0x22e)+_0x5add93['t'](_0x3b27f3(0x2e9)):_0x539fde===_0x1fd146[_0x3b27f3(0x2c9)]?''+_0x4598bf:_0x539fde===_0x1fd146[_0x3b27f3(0x2e8)]||_0x539fde===_0x1fd146[_0x3b27f3(0x20c)]?_0x4598bf+_0x3b27f3(0x22e)+_0x5add93['t']('mcpStatus.clickToConnect'):_0x4598bf:_0x4598bf;}function _0x22b3(){const _0x3d4272=['univer-text-xs\x20univer-text-gray-500','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','Save\x20Configuration','_handleConfigSave','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.connectionStatus.connected','Authorization:','assign','Connected','removeItem','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','__setCustomHeaders','_blank','重连中...','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-items-center\x20univer-gap-2','几秒钟内获取您的\x20API\x20密钥','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','toString','MCP\x20Configuration','Univer\x20AI\x20控制台','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','18GeNgIr','启用身份验证','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionStatus.failed','registerCommand','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_loadStoredApiKey','univer-text-blue-600','MCP\x20连接中...','CloseIcon','trim','Configuration\x20Notes:','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','string','mcpConfig.authorizationDescription','MCP\x20状态未知','subscribe','mcp-ui.config','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-flex\x20univer-items-center','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Success','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','306GXdneA','error','replace','mcpStatus.unauthorized','tag','MCP\x20Disconnected','mcpConfig.description','onStarting','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','348fYrwnr','_initConfigSync','setConfig','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','连接失败','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.apiApplyInfo.title','currentColor','配置\x20MCP\x20使用\x20AI\x20操作电子表格','disposeWithMe','svg','push','MCP_UI_PLUGIN','_injector','_initAutoConnect','MCP:\x20Max\x20Retries\x20Exceeded','univer-shrink-0\x20univer-text-red-500','displayName','univer-space-y-3','网络连接错误,请检查您的网络连接','Bearer\x20','MCP\x20Connection\x20Failed','stringify','MCP\x20Unknown\x20Status','HEADER_MENU','API\x20密钥无效,请检查密钥是否正确','univer-text-gray-500','1em','bottom','mcpConfig.sessionIdDescription','getItem','mcpConfig.configError','配置保存成功','value','univer-shrink-0\x20univer-text-blue-500','Saving...','symbol','2315013gRsZVF','什么是\x20API\x20密钥?','mcp.apiKey','substring','fill','mcpConfig.save','univer-text-xs\x20univer-text-gray-600','77LflUZs','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','CheckMarkIcon','您的\x20API\x20密钥将在此浏览器中本地存储','defineProperty','API\x20密钥长度至少需要\x2010\x20位','forEach','setItem','CONNECTED','idSuffix','url(#$1','What\x20is\x20API\x20Key?','children','您的\x20API\x20密钥安全存储在本地存储中','OTHERS','mcpConfig.connectionError.unauthorized','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','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','https://mcp.univer.ai/mcp/?univer_session_id=','点击配置\x20MCP','最大重试次数','show','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','_initStatusComponent','isValid','会话ID','defs','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','124088tZqCkZ','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','_apiKey$','_validateConfig','mcpConfig.validation.apiKeyRequired','mcpStatus.failed','_registerComponent','_uiPartsService','univer.ai','Session\x20ID','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','DISCONNECTED','mcpStatus.clickToConfigure','warn','register','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_localStorageService','off-line-icon_clip0_910_343','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpConfig.apiKeyPlaceholder','mcpConfig.apiKeyHint','Retrying...','url(#off-line-icon_clip0_910_343)','配置保存失败','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','univer-flex\x20univer-gap-3','MCP\x20Connected','univer-text-gray-400','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCP\x20Connecting...','next','SESSION_ID_OCCUPIED','NONE','univer.plus','connectionStatus$','_loading$','span','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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','univerjs-icon\x20univerjs-icon-','mcpStatus.connected','mcpStatus.retrying','MCP:\x20Unauthorized','showDeveloperTools','0\x200\x2016\x2016','univer_session_id:','带有\x20Bearer\x20前缀的\x20API\x20密钥。','612776yOrNyz','map','getConfig','mcpStatus.connecting','mcpConfig.configParameters','entries','evenodd','Enable\x20Authentication','MCP:\x20Network\x20Error','2140460aeFzvL','translate(.97)','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP:\x20超出最大重试次数','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_mcpCoreConfig$','univer-size-2\x20univer-rounded-full','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','UNAUTHORIZED','close','MCP\x20已连接','MCP:\x20未授权','attrs','univer-min-w-0\x20univer-flex-1','_localeService','univer-size-4','7756425BqHeDT','use','univer-space-y-5','noopener\x20noreferrer','univer-bg-red-500','_connectionController','defIds','M0\x200H16V16H0z','MCP\x20Client\x20Configuration','enableAutoConnect','MCP\x20连接失败','权限验证失败,请检查您的\x20API\x20密钥','univer-text-yellow-500','CONNECTING','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_dialogService','check-mark-icon','mcpConfig.validation.apiKeyTooShort','已连接','NETWORK_ERROR','mcpConfig.validation.invalidConfig','mcpServerUrl','未连接','none','_handleConfigure','_configService','mcpConfig.connectionError.sessionOccupied','RETRYING','pre','重启您的\x20MCP\x20客户端以使配置生效','_config$','mcpConfig.configSaved','div','subscribeConfigValue$','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','showConfigPanel','938861PnWzyP','length','_config','_commandService','https://console.univer.plus','Configuration\x20Steps:','Configuration\x20Parameters:','_logService','current','mask','xlink:href','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_componentManager','mcpStatus.disconnected','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','启用身份验证以获得安全连接','connectionError$','Error','超出最大重试次数,请稍后再试','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥不能为空','white','mcpConfig.connectionError.networkError','colorChannel1','配置无效','univer-bg-blue-500','FAILED','mcpConfig.configStep2','get','univer-text-sm\x20univer-font-medium','text','MCP\x20重连中...','保存中...','http://www.w3.org/2000/svg','has','MenuIcon','univer-flex-1','mcpConfig.connectionInfo','MCPConfigPanel','univer-flex\x20univer-items-start\x20univer-gap-2','API\x20key\x20with\x20Bearer\x20prefix.','open','univer-space-y-4','getCurrentConfig','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_messageService','off','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20配置','includes','univer-space-y-2','配置步骤:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','help-icon','mcpConfig.connectionStatus.connecting','UniverIcon','validateApiKey','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','BUTTON','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','\x20-\x20','mcpConfig.configStep3','on-line-icon_clip0_910_349','_menuManagerService','clipPath','univer-flex\x20univer-items-start\x20univer-gap-3','API\x20密钥','mcpConfig.title','Failed\x20to\x20save\x20configuration','_initializeCommands','Disconnected','add','https://console.univer.ai','请输入您的\x20API\x20密钥','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Univer\x20AI\x20Console','getOwnPropertyDescriptor','univer-text-red-500','apiKey','off-line-icon','mcpConfig.connectionError.maxRetriesExceeded','errorMessage','API\x20key\x20is\x20required','0\x200\x2017\x2016','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','1296feupro','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_createConfigPanelComponent','http','mcp-ui.command.openConfigPanel','button','Connection\x20Failed','配置更改将立即生效','_mcpConnectionController','_initializeMenus','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','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','Click\x20to\x20connect\x20MCP','univer-text-white','path','MCP:\x20网络错误','round','sessionId$','OffLineIcon'];_0x22b3=function(){return _0x3d4272;};return _0x22b3();}function sn(_0x88798a){const _0x7e0530=_0xc70430;switch(_0x88798a){case _0x1fd146[_0x7e0530(0x2c9)]:return'univer-text-green-500';case _0x1fd146['CONNECTING']:case _0x1fd146[_0x7e0530(0x1e6)]:return _0x7e0530(0x1d7);case _0x1fd146[_0x7e0530(0x20c)]:case _0x1fd146['DISCONNECTED']:return'univer-text-red-500';default:return _0x7e0530(0x2af);}}function cn(_0x195878){const _0x11a583=_0xc70430,{status$:_0x1ae3ac,error$:_0x4f9ebd,onConfigure:_0x35c9c8,showClickable:_0x1b6449=!0x0}=_0x195878,_0x1eacd8=_0xaeeec6(_0x1ae3ac,_0x1fd146[_0x11a583(0x2e8)]),_0x1ea81a=_0xaeeec6(_0x4f9ebd,_0x37cda4[_0x11a583(0x1a0)]),_0x121a1d=_0x424c48(_0x3ca3c0),_0x122a31=_0x1eacd8===_0x1fd146['CONNECTED'];_0x1eacd8===_0x1fd146[_0x11a583(0x1d8)]||_0x1fd146[_0x11a583(0x1e6)];const _0x206a8b=_0x121a1d['t'](pe(_0x1eacd8,_0x1ea81a)),_0x389f44=on(_0x1eacd8,_0x1ea81a,_0x121a1d,_0x1b6449),_0x2aeb9e=sn(_0x1eacd8),_0x219194=_0x122a31?_0x2bee5c(ge,{}):_0x2bee5c(de,{}),_0x8ff7=_0x48e070(()=>{_0x1b6449&&_0x35c9c8&&_0x35c9c8();},[_0x1b6449,_0x35c9c8]);function _0x35d98a(){const _0x482357=_0x11a583;return _0x30d051(_0x482357(0x1eb),{'className':_0x29c14e(_0x482357(0x286),_0x1b6449&&_0x35c9c8&&_0x482357(0x23c)),'role':_0x482357(0x24c),'onClick':_0x1b6449&&_0x35c9c8?_0x8ff7:void 0x0,'children':[_0x2bee5c(_0x482357(0x1eb),{'className':_0x29c14e('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x2aeb9e),'children':_0x219194}),_0x2bee5c(_0x482357(0x1eb),{'className':_0x482357(0x278),'children':_0x206a8b})]});}return _0x2bee5c(_0x315236,{'title':_0x389f44,'placement':_0x11a583(0x2b1),'children':_0x35d98a()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x257aaf,_0x2baa32,_0x5a9b84,_0x189982)=>{const _0x2f53a7=_0xc70430;for(var _0x33bc12=_0x189982>0x1?void 0x0:_0x189982?an(_0x2baa32,_0x5a9b84):_0x2baa32,_0x341a13=_0x257aaf[_0x2f53a7(0x1f1)]-0x1,_0x3f1de2;_0x341a13>=0x0;_0x341a13--)(_0x3f1de2=_0x257aaf[_0x341a13])&&(_0x33bc12=_0x3f1de2(_0x33bc12)||_0x33bc12);return _0x33bc12;},M=(_0x539000,_0xb306fb)=>(_0xbe93d1,_0x3acab2)=>_0xb306fb(_0xbe93d1,_0x3acab2,_0x539000);let O=class extends _0xa23c43{constructor(_0x13abd7,_0x57742a,_0x5e26e2,_0x544e61){const _0x25cbb5=_0xc70430;super(),this['_injector']=_0x13abd7,this[_0x25cbb5(0x1d0)]=_0x57742a,this[_0x25cbb5(0x2e4)]=_0x5e26e2,this['_configService']=_0x544e61,this[_0x25cbb5(0x2a3)](),this[_0x25cbb5(0x2d8)]();}['_initAutoConnect'](){const _0x169607=_0xc70430,_0x31dfba=this[_0x169607(0x1e4)][_0x169607(0x1b1)](y);_0x31dfba!=null&&_0x31dfba[_0x169607(0x1ab)]&&(this[_0x169607(0x1d0)][_0x169607(0x1d4)]=!0x1);}[_0xc70430(0x2d8)](){const _0x31fcc9=_0xc70430,_0x5b7793=this[_0x31fcc9(0x1e4)][_0x31fcc9(0x1b1)](y);(_0x5b7793==null?void 0x0:_0x5b7793['showStatus'])!==!0x1&&this[_0x31fcc9(0x29e)](this[_0x31fcc9(0x2e4)]['registerComponent'](_0x184ac4[_0x31fcc9(0x2ad)],()=>{const _0xecd3c1=_0x31fcc9;var _0x317f8e;return _0x2902af(un({'status$':this[_0xecd3c1(0x1d0)][_0xecd3c1(0x1a2)],'error$':this['_connectionController'][_0xecd3c1(0x201)],'onConfigure':()=>this[_0xecd3c1(0x1e3)](),'showClickable':(_0x317f8e=_0x5b7793==null?void 0x0:_0x5b7793[_0xecd3c1(0x1ab)])!=null?_0x317f8e:!0x1}),this['_injector']);}));}[_0xc70430(0x1e3)](){const _0x13ae28=_0xc70430;this[_0x13ae28(0x2a2)][_0x13ae28(0x20e)](I)[_0x13ae28(0x1ef)]();}};O=ln([M(0x0,_0x4ec27f(_0x2ea9cd)),M(0x1,_0x4ec27f(_0x4ccb5d)),M(0x2,_0xcca592),M(0x3,_0x1b1405)],O);function un(_0x14a322){const {status$:_0x568e8f,error$:_0x2e1b96,onConfigure:_0x1c1ded,showClickable:_0x323c6a}=_0x14a322;return function(){return _0x2bee5c(cn,{'status$':_0x568e8f,'error$':_0x2e1b96,'onConfigure':_0x1c1ded,'showClickable':_0x323c6a});};}function vn(_0x3cac03){const _0x45fb0d=_0xc70430;return{'id':V['id'],'type':_0x3968d8[_0x45fb0d(0x22c)],'icon':_0x45fb0d(0x215),'title':_0x45fb0d(0x235),'tooltip':_0x45fb0d(0x235)};}const dn={[_0xc7b462[_0xc70430(0x2cf)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0xc70430(0x23e)],pn=(_0x1ca75d,_0x389b9e,_0x569bd1,_0x4c8775)=>{const _0x463c6a=_0xc70430;for(var _0x4d663b=_0x4c8775>0x1?void 0x0:_0x4c8775?gn(_0x389b9e,_0x569bd1):_0x389b9e,_0x47a75c=_0x1ca75d[_0x463c6a(0x1f1)]-0x1,_0x3f5a99;_0x47a75c>=0x0;_0x47a75c--)(_0x3f5a99=_0x1ca75d[_0x47a75c])&&(_0x4d663b=_0x3f5a99(_0x4d663b)||_0x4d663b);return _0x4d663b;},re=(_0xa5984e,_0xd41b36)=>(_0x37698c,_0xafa282)=>_0xd41b36(_0x37698c,_0xafa282,_0xa5984e);let D=class extends _0xa23c43{constructor(_0x37543d,_0x200028){const _0x184d87=_0xc70430;super(),this[_0x184d87(0x1f3)]=_0x37543d,this[_0x184d87(0x231)]=_0x200028,this[_0x184d87(0x237)](),this[_0x184d87(0x250)]();}['_initializeCommands'](){const _0x152ae5=_0xc70430;[V][_0x152ae5(0x2c7)](_0x3c310d=>{const _0x37727a=_0x152ae5;this[_0x37727a(0x29e)](this['_commandService'][_0x37727a(0x277)](_0x3c310d));});}[_0xc70430(0x250)](){const _0xbc0ed7=_0xc70430;this[_0xbc0ed7(0x231)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x46583b),re(0x1,_0x57aeeb)],D);const Mn={'mcpStatus':{'disconnected':_0xc70430(0x290),'connecting':_0xc70430(0x19d),'connected':_0xc70430(0x199),'failed':_0xc70430(0x2aa),'retrying':'MCP\x20Retrying...','unknown':_0xc70430(0x2ac),'unauthorized':_0xc70430(0x1aa),'sessionOccupied':_0xc70430(0x29a),'networkError':_0xc70430(0x1b7),'maxRetriesExceeded':_0xc70430(0x2a4),'clickToConnect':_0xc70430(0x254),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xc70430(0x26f),'description':_0xc70430(0x226),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xc70430(0x25f),'enableAuth':_0xc70430(0x1b6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xc70430(0x1d3),'mcpClientConfig':_0xc70430(0x1d3),'configInstructions':_0xc70430(0x204),'configStepTitle':_0xc70430(0x1f5),'configStep1':_0xc70430(0x1ee),'configStep2':_0xc70430(0x265),'configStep3':_0xc70430(0x2ec),'sessionId':_0xc70430(0x2e6),'sessionIdDescription':_0xc70430(0x2de),'authorizationDescription':_0xc70430(0x21a),'configParameters':_0xc70430(0x1f6),'maxRetries':'Max\x20Retries','save':_0xc70430(0x25d),'saving':_0xc70430(0x2b8),'note1':_0xc70430(0x221),'note2':_0xc70430(0x1a5),'configSaved':_0xc70430(0x1ed),'configError':_0xc70430(0x236),'apiApplyInfo':{'title':_0xc70430(0x2cc),'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':_0xc70430(0x23d),'getStarted':_0xc70430(0x196)},'validation':{'apiKeyRequired':_0xc70430(0x244),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xc70430(0x197),'invalidApiKey':_0xc70430(0x1be)},'connectionStatus':{'disconnected':_0xc70430(0x238),'connecting':'Connecting...','connected':_0xc70430(0x263),'failed':_0xc70430(0x24d),'retrying':_0xc70430(0x2f2)},'connectionError':{'unauthorized':_0xc70430(0x1bf),'sessionOccupied':_0xc70430(0x248),'networkError':_0xc70430(0x1c2),'maxRetriesExceeded':_0xc70430(0x288)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0xc70430(0x27b),'connected':_0xc70430(0x1c5),'failed':_0xc70430(0x1d5),'retrying':_0xc70430(0x211),'unknown':_0xc70430(0x282),'unauthorized':_0xc70430(0x1c6),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xc70430(0x257),'maxRetriesExceeded':_0xc70430(0x1bb),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0xc70430(0x2d4)},'mcpConfig':{'title':_0xc70430(0x222),'description':_0xc70430(0x29d),'apiKey':_0xc70430(0x234),'apiKeyPlaceholder':_0xc70430(0x23b),'apiKeyHint':_0xc70430(0x2c4),'enableAuth':_0xc70430(0x273),'enableAuthHint':_0xc70430(0x200),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0xc70430(0x205),'configStepTitle':_0xc70430(0x225),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0xc70430(0x1e8),'sessionId':_0xc70430(0x2da),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0xc70430(0x1ae),'configParameters':'配置参数:','maxRetries':_0xc70430(0x2d5),'save':'保存配置','saving':_0xc70430(0x212),'note1':_0xc70430(0x24e),'note2':_0xc70430(0x2ce),'configSaved':_0xc70430(0x2b5),'configError':_0xc70430(0x195),'apiApplyInfo':{'title':_0xc70430(0x2bb),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0xc70430(0x270),'getStarted':_0xc70430(0x26c)},'validation':{'apiKeyRequired':_0xc70430(0x206),'apiKeyTooShort':_0xc70430(0x2c6),'invalidConfig':_0xc70430(0x20a),'invalidApiKey':_0xc70430(0x2ae)},'connectionStatus':{'disconnected':_0xc70430(0x1e1),'connecting':'连接中...','connected':_0xc70430(0x1dd),'failed':_0xc70430(0x299),'retrying':_0xc70430(0x269)},'connectionError':{'unauthorized':_0xc70430(0x1d6),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0xc70430(0x2a8),'maxRetriesExceeded':_0xc70430(0x203)}}};var fn=Object[_0xc70430(0x2c5)],hn=Object[_0xc70430(0x23e)],Cn=(_0x51864a,_0x1e31b6,_0x357538)=>_0x1e31b6 in _0x51864a?fn(_0x51864a,_0x1e31b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x357538}):_0x51864a[_0x1e31b6]=_0x357538,mn=(_0x4c53f8,_0x4a8d73,_0x18d015,_0x5ad376)=>{for(var _0x34a2dc=_0x5ad376>0x1?void 0x0:_0x5ad376?hn(_0x4a8d73,_0x18d015):_0x4a8d73,_0x14339e=_0x4c53f8['length']-0x1,_0x230803;_0x14339e>=0x0;_0x14339e--)(_0x230803=_0x4c53f8[_0x14339e])&&(_0x34a2dc=_0x230803(_0x34a2dc)||_0x34a2dc);return _0x34a2dc;},P=(_0x462e50,_0x706166)=>(_0x201ff3,_0x22bb80)=>_0x706166(_0x201ff3,_0x22bb80,_0x462e50),_n=(_0x1696a5,_0x51afad,_0x2caeb9)=>Cn(_0x1696a5,_0x51afad+'',_0x2caeb9);let j=class extends _0x366cc9{constructor(_0x738661=ie,_0x4cd9cc,_0x585803,_0x576c0b,_0x130061,_0x44083e){const _0x2ea431=_0xc70430;super(),this['_config']=_0x738661,this['_injector']=_0x4cd9cc,this[_0x2ea431(0x1e4)]=_0x585803,this[_0x2ea431(0x2e4)]=_0x576c0b,this[_0x2ea431(0x2ed)]=_0x130061,this[_0x2ea431(0x1c9)]=_0x44083e;const {..._0x5050d6}=_0x3c61f2({},ie,this[_0x2ea431(0x1f2)]);this[_0x2ea431(0x1e4)][_0x2ea431(0x297)](y,_0x5050d6);}async[_0xc70430(0x292)](){const _0x4039ab=_0xc70430,_0x113de4=[[O],[I],[D]];this[_0x4039ab(0x2a2)][_0x4039ab(0x214)](_0x1e64d4)||_0x113de4[_0x4039ab(0x2a0)]([_0x1e64d4,{'useClass':_0x897e1b}]),_0x113de4[_0x4039ab(0x2c7)](_0x1e13fd=>this[_0x4039ab(0x2a2)][_0x4039ab(0x239)](_0x1e13fd)),this['_injector'][_0x4039ab(0x20e)](O),this[_0x4039ab(0x2a2)][_0x4039ab(0x20e)](I),this[_0x4039ab(0x2a2)][_0x4039ab(0x20e)](D);}};_n(j,'pluginName',_0xc70430(0x2a1)),j=mn([_0x370e16(_0x23c55e),P(0x1,_0x4ec27f(_0x2ea9cd)),P(0x2,_0x1b1405),P(0x3,_0xcca592),P(0x4,_0x119742),P(0x5,_0x4ec27f(_0x3ca3c0))],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 _0x559f0d=_0x5edc;(function(_0x606b9c,_0x264aea){const _0x70e6b4=_0x5edc,_0xc3ffc0=_0x606b9c();while(!![]){try{const _0x50f2b3=-parseInt(_0x70e6b4(0x105))/0x1+parseInt(_0x70e6b4(0x15b))/0x2+parseInt(_0x70e6b4(0x153))/0x3*(parseInt(_0x70e6b4(0xbe))/0x4)+-parseInt(_0x70e6b4(0x1db))/0x5+parseInt(_0x70e6b4(0x101))/0x6*(-parseInt(_0x70e6b4(0x177))/0x7)+parseInt(_0x70e6b4(0x19e))/0x8*(-parseInt(_0x70e6b4(0x1ae))/0x9)+parseInt(_0x70e6b4(0x144))/0xa*(parseInt(_0x70e6b4(0x12c))/0xb);if(_0x50f2b3===_0x264aea)break;else _0xc3ffc0['push'](_0xc3ffc0['shift']());}catch(_0x9a23e3){_0xc3ffc0['push'](_0xc3ffc0['shift']());}}}(_0x14a9,0xe5c32));var Pe=Object['defineProperty'],Ee=(_0x29885b,_0x2bf4c8,_0x15b3e3)=>_0x2bf4c8 in _0x29885b?Pe(_0x29885b,_0x2bf4c8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15b3e3}):_0x29885b[_0x2bf4c8]=_0x15b3e3,x=(_0x3b56de,_0xe6c71d,_0x1c1e3c)=>Ee(_0x3b56de,typeof _0xe6c71d!=_0x559f0d(0x11a)?_0xe6c71d+'':_0xe6c71d,_0x1c1e3c);import{LocaleService as _0x13d346,Inject as _0x592555,Injector as _0xa48931,Disposable as _0x313008,IConfigService as _0x1a3ab6,ILocalStorageService as _0x1b37b4,ILogService as _0x3a580c,CommandType as _0x47d0d7,ICommandService as _0x187c77,DependentOn as _0x451ff0,Plugin as _0x431772,merge as _0x5e5890}from'@univerjs/core';import{jsxs as _0x221335,jsx as _0x386101}from'react/jsx-runtime';function _0x14a9(){const _0x2d0187=['use','API\x20密钥无效,请检查密钥是否正确','点击连接\x20MCP','mcpConfig.configStepTitle','mcpConfig.connectionStatus.disconnected','配置无效','什么是\x20API\x20密钥?','pre','MCP:\x20会话\x20ID\x20已被占用','univer.plus','API\x20密钥不能为空','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','univer-size-4','mcpServerUrl','_initConfigSync','colorChannel1','0\x200\x2017\x2016','getOwnPropertyDescriptor','连接中...','toString','univer-shrink-0\x20univer-text-blue-500','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','_commandService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','string','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','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','span','_handleConfigSave','next','API\x20Key','MCP\x20Connection\x20Failed','MCP\x20Connecting...','mcpStatus.sessionOccupied','mcpConfig.configInstructions','substring','保存中...','univer-flex\x20univer-items-start\x20univer-gap-2','registerCommand','univer-text-blue-600','univer-text-gray-400','close','off','univer-bg-blue-500','mcpConfig.connectionError.sessionOccupied','off-line-icon_clip0_910_343','showStatus','几秒钟内获取您的\x20API\x20密钥','UNAUTHORIZED','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','assign','21012QLtkOb','\x20-\x20','univer-flex\x20univer-flex-wrap\x20univer-gap-2','register','univer-flex\x20univer-items-center','MCP_UI_PLUGIN','CONNECTING','Univer\x20AI\x20Console','Configuration\x20Steps:','MCP\x20客户端配置','启用身份验证以获得安全连接','UniverIcon','mcpConfig.connectionError.unauthorized','currentColor','current','univer-text-xs\x20univer-text-gray-500','您的\x20API\x20密钥将在此浏览器中本地存储','NONE','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','sessionId$','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','Failed\x20to\x20save\x20configuration','connectionError$','univer-text-green-500','Authorization:','_menuManagerService','DISCONNECTED','mcpConfig.connectionStatus.failed','univer-min-w-0\x20univer-flex-1','MAX_RETRIES_EXCEEDED','_localeService','_componentManager','setItem','mcpStatus.maxRetriesExceeded','Error','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','fill','idSuffix','mcpConfig.saving','isValid','_logService','url(#on-line-icon_clip0_910_349)','COMMAND','SESSION_ID_OCCUPIED','CONNECTED','noopener\x20noreferrer','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcp.apiKey','_initializeCommands','removeItem','univer-space-y-4','Bearer\x20','Max\x20Retries','MCPConfigPanel','univer-flex\x20univer-items-center\x20univer-gap-2','Configuration\x20Parameters:','mcpConfig.description','<API_KEY>','MCP\x20Unknown\x20Status','mcpConfig.apiKey','mcpConfig.validation.invalidApiKey','off-line-icon','xlink:href','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mask','_registerComponent','MCP:\x20网络错误','6fsqZqb','pluginName','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','1365244JNdjBC','OnLineIcon','mcpConfig.connectionStatus.connected','MCP:\x20未授权','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','_dialogService','复制以下\x20JSON\x20配置','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','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Save\x20Configuration','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','https://console.univer.plus','Enable\x20Authentication','univer-space-y-2','mergeMenu','tag','univer-text-sm\x20univer-font-medium','validateApiKey','mcpStatus.connected','\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','MCP\x20配置','symbol','Enter\x20your\x20API\x20key','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-3','_validateConfig','超出最大重试次数,请稍后再试','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','show','mcpConfig.apiApplyInfo.univerAiLabel','_localStorageService','_connectionController','带有\x20Bearer\x20前缀的\x20API\x20密钥。','apiKey','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpStatus.networkError','配置步骤:','MCP\x20Connected','143VILYMs','网络连接错误,请检查您的网络连接','__setCustomHeaders','MCP:\x20超出最大重试次数','evenodd','MCP\x20Configuration','warn','univer-bg-gray-500','svg','Configuration\x20saved\x20successfully','univer-space-y-3','Invalid\x20configuration','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','defs','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','请输入您的\x20API\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','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Univer\x20AI\x20控制台','clipPath','has','2487410bKWMoA','_initAutoConnect','MCP\x20重连中...','1em','enableAutoConnect','univer-flex\x20univer-items-start\x20univer-gap-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.invalidConfig','univer-font-medium','_messageService','NETWORK_ERROR','API\x20key\x20is\x20required','defineProperty','getConfig','univer-bg-green-500','186iipdSH','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.validation.apiKeyRequired','onStarting','getCurrentConfig','univer.ai','http','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','515218TWmYUB','push','未连接','replace','error','Configuration\x20Notes:','button','registerComponent','mcpStatus.clickToConfigure','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','_config$','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','RETRYING','OffLineIcon','HelpIcon','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','url(#$1','mcpConfig.sessionIdDescription','label','mcpConfig.connectionInfo','mcp-config-dialog','value','FAILED','univer-flex-1','_mcpConnectionController','4899034KJYFNd','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.failed','mcpStatus.retrying','disposeWithMe','univer-text-red-500','none','trim','mcpConfig.apiKeyHint','univer-size-2\x20univer-rounded-full','_initializeMenus','length','MenuIcon','univer-shrink-0\x20univer-text-red-500','mcpConfig.configSaved','MCP:\x20Max\x20Retries\x20Exceeded','权限验证失败,请检查您的\x20API\x20密钥','MCP\x20状态未知','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','subscribe','on-line-icon_clip0_910_349','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-bg-red-500','_mcpCoreConfig$','0\x200\x2016\x2016','https://console.univer.ai','_config','url(#off-line-icon_clip0_910_343)','help-icon','close-icon','Connected','_configService','启用身份验证','mcpConfig.configStep3','mcpConfig.configError','mcpConfig.connectionError.maxRetriesExceeded','connectionStatus$','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20连接失败','4871528XtwbNc','stringify','OTHERS','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcp-ui.command.openConfigPanel','配置更改将立即生效','_createConfigPanelComponent','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','open','Connection\x20Failed','配置保存成功','univer-text-sm\x20univer-text-gray-500','mcpConfig.apiApplyInfo.getStarted','subscribeConfigValue$','_injector','9cvsJwd','translate(.97)','_initStatusComponent','mcpConfig.connectionStatus.connecting','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','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','CheckMarkIcon','_blank','errorMessage','mcpConfig.title','displayName','forEach','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','entries','_apiKey$','check-mark-icon','最大重试次数','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','attrs','_uiPartsService','MCP\x20Client\x20Configuration','http://www.w3.org/2000/svg','mcpStatus.disconnected','mcpConfig.authorizationDescription','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Retrying...','get','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','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20已连接','round','M0\x200H16V16H0z','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','includes','_loadStoredApiKey','univer-flex\x20univer-gap-3','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','连接失败','Enable\x20authentication\x20for\x20secure\x20connections','showConfigPanel','showDeveloperTools','div','map','会话ID','1008875NLYllE','path','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_loading$'];_0x14a9=function(){return _0x2d0187;};return _0x14a9();}import{MCPConnectionStatus as _0x397fda,MCPConnectionError as _0x52d4dc,MCPConnectionController as _0x479f93,MCP_PLUGIN_CONFIG_KEY as _0x5b9089,UniverMCPPlugin as _0x310f35}from'@univerjs-pro/mcp';import{clsx as _0x5e0e60,Input as _0x35678c,Button as _0x2f0cea,MessageType as _0x46c50f,Tooltip as _0x3638c1}from'@univerjs/design';import{useDependency as _0x26f536,useObservable as _0xa49c42,ComponentManager as _0xf4e518,connectInjector as _0x2de9ba,IUIPartsService as _0x2fd2fa,IDialogService as _0x48819c,IMessageService as _0x5aa206,BuiltInUIPart as _0x295991,MenuItemType as _0x19d45d,RibbonStartGroup as _0x2539bd,IMenuManagerService as _0x3548c9}from'@univerjs/ui';import{BehaviorSubject as _0x52de91}from'rxjs';import{useRef as _0x397171,createElement as _0x3b1187,forwardRef as _0x593de2,useState as _0x9d75e0,useCallback as _0x319000}from'react';import{ISocketService as _0x5aa8ec,WebSocketService as _0x325f73}from'@univerjs/network';function b({ref:_0x1aa627,..._0x561d6c}){const _0x110cfc=_0x559f0d,{icon:_0x135f08,id:_0x4dd816,className:_0x3278b0,extend:_0x691ec1,..._0x3e995a}=_0x561d6c,_0x12d6eb=('univerjs-icon\x20univerjs-icon-'+_0x4dd816+'\x20'+(_0x3278b0||''))[_0x110cfc(0x17e)](),_0x3d6b1d=_0x397171('_'+We());return ae(_0x135f08,''+_0x4dd816,{'defIds':_0x135f08['defIds'],'idSuffix':_0x3d6b1d[_0x110cfc(0xcc)]},{'ref':_0x1aa627,'className':_0x12d6eb,..._0x3e995a},_0x691ec1);}function ae(_0x4a489f,_0x97b012,_0x17a4aa,_0x4ccb48,_0x224c8e){const _0x363736=_0x559f0d;return _0x3b1187(_0x4a489f[_0x363736(0x114)],{'key':_0x97b012,...Ye(_0x4a489f,_0x17a4aa,_0x224c8e),..._0x4ccb48},(Ze(_0x4a489f,_0x17a4aa)['children']||[])[_0x363736(0x1d9)]((_0x3585ae,_0x4e989d)=>ae(_0x3585ae,_0x97b012+'-'+_0x4a489f[_0x363736(0x114)]+'-'+_0x4e989d,_0x17a4aa,void 0x0,_0x224c8e)));}function Ye(_0xb0c5f2,_0x4b2c66,_0x49d660){const _0x2bd774=_0x559f0d,_0x20984f={..._0xb0c5f2['attrs']};_0x49d660!=null&&_0x49d660['colorChannel1']&&_0x20984f[_0x2bd774(0xe2)]===_0x2bd774(0x1ee)&&(_0x20984f[_0x2bd774(0xe2)]=_0x49d660[_0x2bd774(0x1ee)]),_0xb0c5f2[_0x2bd774(0x114)]===_0x2bd774(0xfe)&&_0x20984f['id']&&(_0x20984f['id']=_0x20984f['id']+_0x4b2c66[_0x2bd774(0xe3)]),Object['entries'](_0x20984f)[_0x2bd774(0x1b9)](([_0x5275ba,_0x3441d0])=>{const _0x3bd2ac=_0x2bd774;_0x5275ba===_0x3bd2ac(0xfe)&&typeof _0x3441d0=='string'&&(_0x20984f[_0x5275ba]=_0x3441d0[_0x3bd2ac(0x15e)](/url\(#(.*)\)/,_0x3bd2ac(0x16e)+_0x4b2c66['idSuffix']+')'));});const {defIds:_0x38f31b}=_0x4b2c66;return!_0x38f31b||_0x38f31b[_0x2bd774(0x182)]===0x0||(_0xb0c5f2[_0x2bd774(0x114)]===_0x2bd774(0x1df)&&_0x20984f[_0x2bd774(0xfc)]&&(_0x20984f[_0x2bd774(0xfc)]=_0x20984f[_0x2bd774(0xfc)]+_0x4b2c66[_0x2bd774(0xe3)]),Object[_0x2bd774(0x1bb)](_0x20984f)[_0x2bd774(0x1b9)](([_0x5d2384,_0x373e90])=>{const _0x23db36=_0x2bd774;typeof _0x373e90==_0x23db36(0xa3)&&(_0x20984f[_0x5d2384]=_0x373e90[_0x23db36(0x15e)](/url\(#(.*)\)/,_0x23db36(0x16e)+_0x4b2c66[_0x23db36(0xe3)]+')'));})),_0x20984f;}function Ze(_0x2fe0b8,_0x412072){const _0x4f3074=_0x559f0d;var _0x1a044d;const {defIds:_0x1866f1}=_0x412072;return!_0x1866f1||_0x1866f1[_0x4f3074(0x182)]===0x0?_0x2fe0b8:_0x2fe0b8[_0x4f3074(0x114)]===_0x4f3074(0x139)&&((_0x1a044d=_0x2fe0b8['children'])!=null&&_0x1a044d[_0x4f3074(0x182)])?{..._0x2fe0b8,'children':_0x2fe0b8['children'][_0x4f3074(0x1d9)](_0x543b9d=>typeof _0x543b9d[_0x4f3074(0x1c0)]['id']=='string'&&_0x1866f1&&_0x1866f1[_0x4f3074(0x1d0)](_0x543b9d[_0x4f3074(0x1c0)]['id'])?{..._0x543b9d,'attrs':{..._0x543b9d[_0x4f3074(0x1c0)],'id':_0x543b9d[_0x4f3074(0x1c0)]['id']+_0x412072['idSuffix']}}:_0x543b9d)}:_0x2fe0b8;}function We(){const _0x20ab33=_0x559f0d;return Math['random']()[_0x20ab33(0x1f2)](0x24)[_0x20ab33(0xae)](0x2,0x8);}b[_0x559f0d(0x1b8)]=_0x559f0d(0xc9);const qe={'tag':_0x559f0d(0x134),'attrs':{'xmlns':_0x559f0d(0x1c3),'fill':_0x559f0d(0x17d),'viewBox':_0x559f0d(0x18f),'width':_0x559f0d(0x147),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x559f0d(0xcb),'d':_0x559f0d(0x10c),'fillRule':_0x559f0d(0x130),'clipRule':'evenodd'}}]},le=_0x593de2(function(_0x4b86e3,_0x282129){const _0x130d88=_0x559f0d;return _0x3b1187(b,Object[_0x130d88(0xbd)]({},_0x4b86e3,{'id':_0x130d88(0x1bd),'ref':_0x282129,'icon':qe}));});le[_0x559f0d(0x1b8)]=_0x559f0d(0x1b4);const Xe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x559f0d(0x17d),'viewBox':_0x559f0d(0x18f),'width':_0x559f0d(0x147),'height':_0x559f0d(0x147)},'children':[{'tag':_0x559f0d(0x1dc),'attrs':{'fill':'currentColor','d':_0x559f0d(0x1ea)}}]},ue=_0x593de2(function(_0x96170e,_0x4d1008){const _0x15312e=_0x559f0d;return _0x3b1187(b,Object[_0x15312e(0xbd)]({},_0x96170e,{'id':_0x15312e(0x194),'ref':_0x4d1008,'icon':Xe}));});ue[_0x559f0d(0x1b8)]='CloseIcon';const Je={'tag':_0x559f0d(0x134),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x559f0d(0x17d),'viewBox':'0\x200\x2016\x2016','width':_0x559f0d(0x147),'height':'1em'},'children':[{'tag':_0x559f0d(0x1dc),'attrs':{'fill':_0x559f0d(0xcb),'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':_0x559f0d(0x1dc),'attrs':{'fill':_0x559f0d(0xcb),'d':_0x559f0d(0xa5)}},{'tag':_0x559f0d(0x1dc),'attrs':{'fill':_0x559f0d(0xcb),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x559f0d(0x130),'clipRule':'evenodd'}}]},ve=_0x593de2(function(_0x2237a6,_0x33f3b1){const _0x499f5a=_0x559f0d;return _0x3b1187(b,Object[_0x499f5a(0xbd)]({},_0x2237a6,{'id':_0x499f5a(0x193),'ref':_0x33f3b1,'icon':Je}));});ve['displayName']=_0x559f0d(0x16b);const Qe={'tag':'svg','attrs':{'xmlns':_0x559f0d(0x1c3),'fill':_0x559f0d(0x17d),'viewBox':_0x559f0d(0x18f),'width':'1em','height':_0x559f0d(0x147)},'children':[{'tag':'g','attrs':{'clipPath':_0x559f0d(0x192)},'children':[{'tag':'path','attrs':{'stroke':_0x559f0d(0xcb),'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':_0x559f0d(0x1cd),'strokeLinejoin':_0x559f0d(0x1cd),'strokeWidth':1.2}}]},{'tag':_0x559f0d(0x139),'attrs':{},'children':[{'tag':_0x559f0d(0x142),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x559f0d(0x1dc),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x559f0d(0xb8)]},de=_0x593de2(function(_0x2a0015,_0x2c9b70){const _0x45db2d=_0x559f0d;return _0x3b1187(b,Object[_0x45db2d(0xbd)]({},_0x2a0015,{'id':_0x45db2d(0xfb),'ref':_0x2c9b70,'icon':Qe}));});de[_0x559f0d(0x1b8)]=_0x559f0d(0x16a);const en={'tag':_0x559f0d(0x134),'attrs':{'xmlns':_0x559f0d(0x1c3),'fill':_0x559f0d(0x17d),'viewBox':_0x559f0d(0x1ef),'width':'1em','height':_0x559f0d(0x147)},'children':[{'tag':'g','attrs':{'clipPath':_0x559f0d(0xe7)},'children':[{'tag':_0x559f0d(0x1dc),'attrs':{'stroke':_0x559f0d(0xcb),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x559f0d(0x1cd),'strokeWidth':1.2}}]},{'tag':_0x559f0d(0x139),'attrs':{},'children':[{'tag':_0x559f0d(0x142),'attrs':{'id':_0x559f0d(0x18b)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x559f0d(0x1ce),'transform':_0x559f0d(0x1af)}}]}]}],'defIds':[_0x559f0d(0x18b)]},ge=_0x593de2(function(_0x5cbaa7,_0x3a48ec){const _0x1a2b19=_0x559f0d;return _0x3b1187(b,Object[_0x1a2b19(0xbd)]({},_0x5cbaa7,{'id':'on-line-icon','ref':_0x3a48ec,'icon':en}));});ge[_0x559f0d(0x1b8)]=_0x559f0d(0x106);function nn(_0x9e2589){const _0x15a3bf=_0x559f0d;var _0x37c88c,_0x3dcddf;const {mcpCoreConfig:_0x109c40,onSave:_0x36bf52,loading:_0x2e363b=!0x1,config:_0x1d49f0,connectionStatus$:_0x2e310a,connectionError$:_0x2ee351,currentApiKey$:_0x1f1080,currentSessionId$:_0x2a7f33}=_0x9e2589,_0x899745=_0x26f536(_0x13d346),_0x2e6d34=_0xa49c42(_0x2e310a,_0x397fda[_0x15a3bf(0xd8)]),_0x131775=_0xa49c42(_0x2ee351,_0x52d4dc['NONE']),_0xc24966=_0xa49c42(_0x2a7f33,''),_0x11c494=_0xa49c42(_0x1f1080,''),[_0x20f085,_0x1e933e]=_0x9d75e0(_0x11c494||''),_0x3b60e3=!0x0,_0x4f7e28=_0x1d49f0[_0x15a3bf(0x1d7)]&&_0x109c40[_0x15a3bf(0x1ec)]&&(_0x109c40[_0x15a3bf(0x1ec)]['includes'](_0x15a3bf(0x1e8))||_0x109c40['mcpServerUrl'][_0x15a3bf(0x1d0)](_0x15a3bf(0x158))),_0x20114d=(_0x37c88c=_0x109c40[_0x15a3bf(0x1ec)])==null?void 0x0:_0x37c88c[_0x15a3bf(0x1d0)](_0x15a3bf(0x1e8)),_0x1c778d=(_0x3dcddf=_0x109c40[_0x15a3bf(0x1ec)])==null?void 0x0:_0x3dcddf[_0x15a3bf(0x1d0)](_0x15a3bf(0x158)),_0x4bc5f7=_0x20114d?_0x15a3bf(0x110):_0x15a3bf(0x190),_0x40a1be=_0x1d49f0[_0x15a3bf(0x1d7)]&&(_0x20114d||_0x1c778d),[_0x6e927f,_0x5f2065]=_0x9d75e0(!_0x20f085[_0x15a3bf(0x17e)]()),_0x1ac428=(_0x1971d5,_0x1beebb)=>{const _0x213fcf=_0x15a3bf;if(_0x1beebb===_0x52d4dc[_0x213fcf(0xbb)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x1971d5){case _0x397fda[_0x213fcf(0xea)]:return _0x213fcf(0x16d);case _0x397fda[_0x213fcf(0xc4)]:case _0x397fda[_0x213fcf(0x169)]:return _0x213fcf(0x138);case _0x397fda[_0x213fcf(0x174)]:return _0x213fcf(0xec);default:return _0x213fcf(0x1a2);}},_0x527b18=(_0x5728b3,_0x4362cc)=>{const _0x5cb11a=_0x15a3bf;if(_0x4362cc===_0x52d4dc['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x5728b3){case _0x397fda[_0x5cb11a(0xea)]:return _0x5cb11a(0x152);case _0x397fda[_0x5cb11a(0xc4)]:case _0x397fda[_0x5cb11a(0x169)]:return _0x5cb11a(0xb6);case _0x397fda[_0x5cb11a(0x174)]:return _0x5cb11a(0x18d);default:return _0x5cb11a(0x133);}},_0x49dd9c=_0x3e4dc3=>{const _0x28ed2a=_0x15a3bf;switch(_0x3e4dc3){case _0x397fda[_0x28ed2a(0xea)]:return _0x899745['t'](_0x28ed2a(0x107));case _0x397fda['CONNECTING']:return _0x899745['t'](_0x28ed2a(0x1b1));case _0x397fda[_0x28ed2a(0x174)]:return _0x899745['t'](_0x28ed2a(0xd9));case _0x397fda['RETRYING']:return _0x899745['t']('mcpConfig.connectionStatus.retrying');default:return _0x899745['t'](_0x28ed2a(0x1e3));}},_0x4de20d=_0x2c584f=>{const _0x12b5bb=_0x15a3bf;switch(_0x2c584f){case _0x52d4dc[_0x12b5bb(0xbb)]:return _0x899745['t'](_0x12b5bb(0xca));case _0x52d4dc[_0x12b5bb(0xe9)]:return _0x899745['t'](_0x12b5bb(0xb7));case _0x52d4dc[_0x12b5bb(0x14e)]:return _0x899745['t']('mcpConfig.connectionError.networkError');case _0x52d4dc[_0x12b5bb(0xdb)]:return _0x899745['t'](_0x12b5bb(0x19a));default:return'';}},_0x213d48=_0x319000(()=>{const _0x1fe5f8=_0x15a3bf,_0x513afe={..._0x109c40,'apiKey':_0x20f085[_0x1fe5f8(0x17e)](),'enableAuth':_0x3b60e3};_0x36bf52(_0x513afe);},[_0x109c40,_0x20f085,_0x3b60e3,_0x36bf52]),_0x53c4de=_0x20f085['trim']()[_0x15a3bf(0x182)]>0x0;return _0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x128),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x11d),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x1b2),'children':_0x386101(_0x15a3bf(0xa6),{'className':'univer-text-white','children':'⚙'})}),_0x386101(_0x15a3bf(0x1d8),{'children':_0x386101('p',{'className':_0x15a3bf(0x1aa),'children':_0x899745['t'](_0x15a3bf(0xf6))})})]})}),_0x221335(_0x15a3bf(0x1d8),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x5e0e60(_0x15a3bf(0xe1),_0x1ac428(_0x2e6d34,_0x131775)),'children':_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xf4),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x5e0e60(_0x15a3bf(0x180),_0x527b18(_0x2e6d34,_0x131775))}),_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0x115),'children':_0x49dd9c(_0x2e6d34)})]})}),_0x131775!==_0x52d4dc[_0x15a3bf(0xcf)]&&(_0x2e6d34===_0x397fda['FAILED']||_0x131775===_0x52d4dc[_0x15a3bf(0xbb)])&&_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x104),'children':_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xb0),'children':[_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0x184),'children':'⚠️'}),_0x386101('p',{'className':_0x15a3bf(0xbc),'children':_0x4de20d(_0x131775)})]})})]}),_0x386101(_0x15a3bf(0x1d8),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x221335(_0x15a3bf(0x1d8),{'className':'univer-space-y-5','children':[_0x221335(_0x15a3bf(0x1d8),{'className':'univer-space-y-2','children':[_0x221335(_0x15a3bf(0x170),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x386101(_0x15a3bf(0xa6),{'children':'🔑'}),'\x20',_0x899745['t'](_0x15a3bf(0xf9)),_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0x17c),'children':'*'}),_0x4f7e28&&_0x386101('a',{'className':_0x15a3bf(0x1c9),'title':_0x899745['t'](_0x15a3bf(0x127)),'role':_0x15a3bf(0x161),'onClick':()=>_0x5f2065(!0x0),'children':_0x386101(ve,{})})]}),_0x386101(_0x35678c,{'type':'text','placeholder':_0x899745['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x20f085,'disabled':_0x2e363b,'autoComplete':_0x15a3bf(0xb5),'onChange':_0x1e933e}),_0x386101('p',{'className':_0x15a3bf(0xcd),'children':_0x899745['t'](_0x15a3bf(0x17f))})]}),_0x4f7e28&&_0x6e927f&&_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x109),'children':[_0x386101('a',{'className':_0x15a3bf(0x1b3),'role':_0x15a3bf(0x161),'onClick':()=>_0x5f2065(!0x1),'children':_0x386101(ue,{'className':_0x15a3bf(0x1eb)})}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x140),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x189),'children':_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0xb2),'children':'🚀'})}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x175),'children':[_0x386101('h4',{'className':_0x15a3bf(0x1bf),'children':_0x899745['t'](_0x15a3bf(0x127))}),_0x386101('p',{'className':_0x15a3bf(0x178),'children':_0x899745['t']('mcpConfig.apiApplyInfo.description')}),_0x386101('div',{'className':_0x15a3bf(0xc0),'children':_0x40a1be&&_0x221335('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':_0x4bc5f7,'target':_0x15a3bf(0x1b5),'rel':_0x15a3bf(0xeb),'children':[_0x386101(_0x15a3bf(0xa6),{'children':'🤖'}),_0x899745['t'](_0x15a3bf(0x122)),_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0xb3),'children':'↗'})]})}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x11c),'children':['✨','\x20',_0x899745['t'](_0x15a3bf(0x1ab))]})]})]})]}),_0x1d49f0[_0x15a3bf(0x1d7)]&&_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x16c),'children':[_0x221335('h4',{'className':_0x15a3bf(0x14a),'children':[_0x386101(_0x15a3bf(0xa6),{'children':'🔗'}),'\x20',_0x899745['t'](_0x15a3bf(0x171))]}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xf0),'children':[_0x221335('div',{'className':_0x15a3bf(0x136),'children':[_0x386101('p',{'className':_0x15a3bf(0x13f),'children':_0x899745['t'](_0x15a3bf(0xad))}),_0x221335(_0x15a3bf(0x1d8),{'className':'univer-space-y-2','children':[_0x386101('div',{'className':_0x15a3bf(0x168),'children':_0x899745['t'](_0x15a3bf(0x1e2))}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x15a),'children':[_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xf4),'children':[_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0x13d),'children':'1'}),_0x899745['t']('mcpConfig.configStep1')]}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xf4),'children':[_0x386101(_0x15a3bf(0xa6),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x899745['t']('mcpConfig.configStep2')]}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xf4),'children':[_0x386101('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'}),_0x899745['t'](_0x15a3bf(0x198))]})]})]})]}),_0x221335(_0x15a3bf(0x1d8),{'className':'univer-space-y-2','children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x168),'children':'MCP\x20Configuration'}),_0x386101('div',{'className':_0x15a3bf(0xfd),'children':_0x386101(_0x15a3bf(0x1e6),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x15a3bf(0x19f)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0xc24966||'<SESSION_ID>'),'type':_0x15a3bf(0x159),'headers':{'Authorization':_0x15a3bf(0xf1)+(_0x20f085||_0x15a3bf(0xf7))}}}},null,0x2)})})]}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x136),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x168),'children':_0x899745['t']('mcpConfig.configParameters')}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x112),'children':[_0x221335('div',{'className':_0x15a3bf(0x149),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xda),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x1dd),'children':'univer_session_id:'}),_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0xcd),'children':_0x899745['t'](_0x15a3bf(0x16f))})]})]}),_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x149),'children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x10d)}),_0x221335('div',{'className':_0x15a3bf(0xda),'children':[_0x386101('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x15a3bf(0xd6)}),_0x386101('div',{'className':_0x15a3bf(0xcd),'children':_0x899745['t'](_0x15a3bf(0x1c5))})]})]})]})]})]})]}),_0x386101(_0x2f0cea,{'onClick':_0x213d48,'disabled':!_0x53c4de||_0x2e363b,'className':_0x15a3bf(0xd2),'children':_0x2e363b?_0x221335('span',{'className':_0x15a3bf(0xf4),'children':[_0x386101(_0x15a3bf(0xa6),{'children':'⟲'}),_0x899745['t'](_0x15a3bf(0xe4))]}):_0x221335('span',{'className':_0x15a3bf(0xf4),'children':[_0x386101(le,{}),_0x899745['t']('mcpConfig.save')]})}),_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x10f),'children':_0x221335(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x1d2),'children':[_0x386101(_0x15a3bf(0xa6),{'className':_0x15a3bf(0x1f3),'children':'💡'}),_0x221335('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x386101(_0x15a3bf(0x1d8),{'className':_0x15a3bf(0x14c),'children':_0x15a3bf(0x160)}),_0x221335(_0x15a3bf(0x1d8),{'children':['•',_0x899745['t']('mcpConfig.note1')]}),_0x221335(_0x15a3bf(0x1d8),{'children':['•',_0x899745['t']('mcpConfig.note2')]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x559f0d(0x1f0)],tn=(_0x209fab,_0x26f38a,_0x3e5c44,_0x4a53c5)=>{const _0x16f1ec=_0x559f0d;for(var _0x126d6e=_0x4a53c5>0x1?void 0x0:_0x4a53c5?rn(_0x26f38a,_0x3e5c44):_0x26f38a,_0x37aad9=_0x209fab[_0x16f1ec(0x182)]-0x1,_0x154ce2;_0x37aad9>=0x0;_0x37aad9--)(_0x154ce2=_0x209fab[_0x37aad9])&&(_0x126d6e=_0x154ce2(_0x126d6e)||_0x126d6e);return _0x126d6e;},d=(_0x3b9c99,_0x527bae)=>(_0x46840e,_0x23b3c0)=>_0x527bae(_0x46840e,_0x23b3c0,_0x3b9c99);const U=_0x559f0d(0xed),L=_0x559f0d(0x172);let I=class extends _0x313008{constructor(_0x427f0d,_0x426035,_0x287f52,_0x5ba654,_0x677fda,_0x5cac8b,_0x34a8fd,_0xed97d0,_0x633101,_0x32219f){const _0x17d77d=_0x559f0d;super(),x(this,_0x17d77d(0x1de),new _0x52de91(!0x1)),x(this,_0x17d77d(0x18e),new _0x52de91({})),x(this,_0x17d77d(0x166),new _0x52de91({})),x(this,_0x17d77d(0x1bc),new _0x52de91('')),x(this,_0x17d77d(0xa7),async _0x253482=>{const _0x3055f8=_0x17d77d;var _0x610375,_0x391c28;this[_0x3055f8(0x1de)][_0x3055f8(0xa8)](!0x0);try{const _0x25f78c=await this[_0x3055f8(0x11e)](_0x253482);if(!_0x25f78c[_0x3055f8(0xe5)]){this[_0x3055f8(0x14d)]['show']({'type':_0x46c50f[_0x3055f8(0xe0)],'content':_0x25f78c[_0x3055f8(0x1b6)]||this[_0x3055f8(0xdc)]['t'](_0x3055f8(0x14b))});return;}_0x253482[_0x3055f8(0x126)]?await this[_0x3055f8(0x123)][_0x3055f8(0xde)](U,_0x253482[_0x3055f8(0x126)][_0x3055f8(0x17e)]()):await this[_0x3055f8(0x123)][_0x3055f8(0xef)](U),this['_apiKey$'][_0x3055f8(0xa8)](((_0x610375=_0x253482[_0x3055f8(0x126)])==null?void 0x0:_0x610375[_0x3055f8(0x17e)]())||''),this[_0x3055f8(0x176)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x391c28=_0x253482['apiKey'])==null?void 0x0:_0x391c28[_0x3055f8(0x17e)]())}),this['_messageService'][_0x3055f8(0x121)]({'type':_0x46c50f['Success'],'content':this[_0x3055f8(0xdc)]['t'](_0x3055f8(0x185))}),setTimeout(()=>{this['_dialogService']['close'](L);},0x320);}catch(_0x132a4a){this[_0x3055f8(0xe6)][_0x3055f8(0x15f)](_0x3055f8(0x1d3),_0x132a4a),this[_0x3055f8(0x14d)][_0x3055f8(0x121)]({'type':_0x46c50f['Error'],'content':this[_0x3055f8(0xdc)]['t'](_0x3055f8(0x199))});}finally{this[_0x3055f8(0x1de)][_0x3055f8(0xa8)](!0x1);}}),(this['_injector']=_0x427f0d,this['_uiPartsService']=_0x426035,this[_0x17d77d(0x196)]=_0x287f52,this[_0x17d77d(0x123)]=_0x5ba654,this[_0x17d77d(0x10a)]=_0x677fda,this[_0x17d77d(0x14d)]=_0x5cac8b,this['_componentManager']=_0x34a8fd,this[_0x17d77d(0xdc)]=_0xed97d0,this[_0x17d77d(0xe6)]=_0x633101,this[_0x17d77d(0x176)]=_0x32219f,this[_0x17d77d(0x1ed)](),this[_0x17d77d(0x1d1)](),this[_0x17d77d(0xff)]());}[_0x559f0d(0x1d6)](){const _0x103c89=_0x559f0d,_0x4a049c=this[_0x103c89(0x196)][_0x103c89(0x151)](y);_0x4a049c!=null&&_0x4a049c['showDeveloperTools']&&this[_0x103c89(0x10a)][_0x103c89(0x1a7)]({'id':L,'title':{'title':this['_localeService']['t'](_0x103c89(0x1b7))},'children':{'label':_0x103c89(0xf3)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x124db2=_0x103c89;this[_0x124db2(0x10a)][_0x124db2(0xb4)](L);}});}[_0x559f0d(0x157)](){const _0x2840b9=_0x559f0d;return this[_0x2840b9(0x18e)]['value'];}[_0x559f0d(0xff)](){const _0x117119=_0x559f0d;this['disposeWithMe'](this[_0x117119(0xdd)][_0x117119(0xc1)](_0x117119(0xf3),this[_0x117119(0x1a5)]()));}['_createConfigPanelComponent'](){return _0x2de9ba(()=>{const _0x49a702=_0x5edc;var _0x293b5e,_0x5212f1,_0x3ab8e1;return _0x386101(nn,{'config':this[_0x49a702(0x166)][_0x49a702(0x173)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x49a702(0x173)],'currentApiKey$':this[_0x49a702(0x1bc)],'onSave':this[_0x49a702(0xa7)],'loading':this[_0x49a702(0x1de)][_0x49a702(0x173)],'connectionStatus$':(_0x293b5e=this[_0x49a702(0x176)])==null?void 0x0:_0x293b5e[_0x49a702(0x19b)],'connectionError$':(_0x5212f1=this['_mcpConnectionController'])==null?void 0x0:_0x5212f1['connectionError$'],'currentSessionId$':(_0x3ab8e1=this[_0x49a702(0x176)])==null?void 0x0:_0x3ab8e1[_0x49a702(0xd1)]});},this['_injector']);}[_0x559f0d(0x1ed)](){const _0x32fdbd=_0x559f0d;this[_0x32fdbd(0x17b)](this['_configService'][_0x32fdbd(0x1ac)](_0x5b9089)[_0x32fdbd(0x18a)](_0x4aac47=>{const _0x8498e6=_0x32fdbd;this[_0x8498e6(0x18e)][_0x8498e6(0xa8)](_0x4aac47||{});}));const _0x5ebe14=this['_configService'][_0x32fdbd(0x151)](_0x5b9089);this[_0x32fdbd(0x18e)][_0x32fdbd(0xa8)](_0x5ebe14||{}),this[_0x32fdbd(0x17b)](this['_configService']['subscribeConfigValue$'](y)['subscribe'](_0x5798bc=>{const _0x4419a0=_0x32fdbd;this[_0x4419a0(0x166)]['next'](_0x5798bc||{});}));const _0x4a1288=this[_0x32fdbd(0x196)][_0x32fdbd(0x151)](y);this[_0x32fdbd(0x166)][_0x32fdbd(0xa8)](_0x4a1288||{});}async['_loadStoredApiKey'](){const _0x974e9e=_0x559f0d,_0x275cb1=this['_configService']['getConfig'](y);if(!(_0x275cb1!=null&&_0x275cb1['showDeveloperTools']))return;const _0x2660f4=await this[_0x974e9e(0x123)]['getItem'](U);_0x2660f4&&(this['_mcpConnectionController'][_0x974e9e(0x12e)]({'Authorization':_0x974e9e(0xf1)+_0x2660f4}),this['_apiKey$'][_0x974e9e(0xa8)](_0x2660f4));}async['_validateConfig'](_0xfa2acc){const _0x4029db=_0x559f0d;if(!_0xfa2acc[_0x4029db(0x126)]||_0xfa2acc['apiKey']['trim']()[_0x4029db(0x182)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4029db(0xdc)]['t'](_0x4029db(0x155))};if(_0xfa2acc[_0x4029db(0x126)][_0x4029db(0x17e)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4029db(0xdc)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x17826b=await this[_0x4029db(0x1ad)][_0x4029db(0x1c8)](_0x479f93)[_0x4029db(0x116)](_0xfa2acc[_0x4029db(0x126)]['trim']());return _0x17826b[_0x4029db(0xe5)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x17826b[_0x4029db(0x15f)]||this[_0x4029db(0xdc)]['t'](_0x4029db(0xfa))};}catch(_0x2fddfc){return console[_0x4029db(0x132)](_0x4029db(0x120),_0x2fddfc),{'isValid':!0x0};}}};I=tn([d(0x0,_0x592555(_0xa48931)),d(0x1,_0x2fd2fa),d(0x2,_0x1a3ab6),d(0x3,_0x1b37b4),d(0x4,_0x48819c),d(0x5,_0x5aa206),d(0x6,_0x592555(_0xf4e518)),d(0x7,_0x592555(_0x13d346)),d(0x8,_0x3a580c),d(0x9,_0x592555(_0x479f93))],I);const V={'id':_0x559f0d(0x1a3),'type':_0x47d0d7[_0x559f0d(0xe8)],'handler':async(_0x5cbc07,_0x3fea5f)=>(_0x5cbc07[_0x559f0d(0x1c8)](I)['showConfigPanel'](),!0x0)};function pe(_0x47375a,_0x576ff9){const _0x37102f=_0x559f0d;switch(_0x47375a){case _0x397fda['DISCONNECTED']:return _0x37102f(0x1c4);case _0x397fda['CONNECTING']:return'mcpStatus.connecting';case _0x397fda[_0x37102f(0xea)]:return _0x37102f(0x117);case _0x397fda[_0x37102f(0x174)]:switch(_0x576ff9){case _0x52d4dc[_0x37102f(0xbb)]:return'mcpStatus.unauthorized';case _0x52d4dc[_0x37102f(0xe9)]:return _0x37102f(0xac);case _0x52d4dc[_0x37102f(0x14e)]:return _0x37102f(0x129);case _0x52d4dc['MAX_RETRIES_EXCEEDED']:return _0x37102f(0xdf);default:return _0x37102f(0x179);}case _0x397fda[_0x37102f(0x169)]:return _0x37102f(0x17a);default:return'mcpStatus.unknown';}}function on(_0x1c6fff,_0x187860,_0x537bf2,_0xba42eb=!0x0){const _0xad3f91=_0x559f0d,_0xb40e7d=pe(_0x1c6fff,_0x187860),_0x9fdf41=_0x537bf2['t'](_0xb40e7d);return _0xba42eb?_0x1c6fff===_0x397fda[_0xad3f91(0xd8)]&&_0x187860===_0x52d4dc['UNAUTHORIZED']?_0x9fdf41+_0xad3f91(0xbf)+_0x537bf2['t'](_0xad3f91(0x163)):_0x1c6fff===_0x397fda[_0xad3f91(0xea)]?''+_0x9fdf41:_0x1c6fff===_0x397fda['DISCONNECTED']||_0x1c6fff===_0x397fda[_0xad3f91(0x174)]?_0x9fdf41+'\x20-\x20'+_0x537bf2['t']('mcpStatus.clickToConnect'):_0x9fdf41:_0x9fdf41;}function sn(_0x2875d5){const _0x4f2cf4=_0x559f0d;switch(_0x2875d5){case _0x397fda[_0x4f2cf4(0xea)]:return _0x4f2cf4(0xd5);case _0x397fda[_0x4f2cf4(0xc4)]:case _0x397fda[_0x4f2cf4(0x169)]:return'univer-text-yellow-500';case _0x397fda[_0x4f2cf4(0x174)]:case _0x397fda['DISCONNECTED']:return _0x4f2cf4(0x17c);default:return'univer-text-gray-500';}}function cn(_0x3d0c4f){const _0x56b100=_0x559f0d,{status$:_0x21fbff,error$:_0x16dbfc,onConfigure:_0x310a0e,showClickable:_0x13aa53=!0x0}=_0x3d0c4f,_0x5ca342=_0xa49c42(_0x21fbff,_0x397fda['DISCONNECTED']),_0x53d8ed=_0xa49c42(_0x16dbfc,_0x52d4dc['NONE']),_0x44c10b=_0x26f536(_0x13d346),_0x117819=_0x5ca342===_0x397fda[_0x56b100(0xea)];_0x5ca342===_0x397fda[_0x56b100(0xc4)]||_0x397fda['RETRYING'];const _0x42cad0=_0x44c10b['t'](pe(_0x5ca342,_0x53d8ed)),_0x51fa27=on(_0x5ca342,_0x53d8ed,_0x44c10b,_0x13aa53),_0x591806=sn(_0x5ca342),_0x9b302a=_0x117819?_0x386101(ge,{}):_0x386101(de,{}),_0x86443f=_0x319000(()=>{_0x13aa53&&_0x310a0e&&_0x310a0e();},[_0x13aa53,_0x310a0e]);function _0x498e01(){const _0xb182d2=_0x56b100;return _0x221335(_0xb182d2(0x1d8),{'className':_0x5e0e60(_0xb182d2(0xc2),_0x13aa53&&_0x310a0e&&_0xb182d2(0x118)),'role':_0xb182d2(0x161),'onClick':_0x13aa53&&_0x310a0e?_0x86443f:void 0x0,'children':[_0x386101(_0xb182d2(0x1d8),{'className':_0x5e0e60('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x591806),'children':_0x9b302a}),_0x386101(_0xb182d2(0x1d8),{'className':_0xb182d2(0x1ca),'children':_0x42cad0})]});}return _0x386101(_0x3638c1,{'title':_0x51fa27,'placement':'bottom','children':_0x498e01()});}var an=Object[_0x559f0d(0x1f0)],ln=(_0x10ee24,_0x16104c,_0x182723,_0x39e108)=>{const _0x7bf925=_0x559f0d;for(var _0x57bc3e=_0x39e108>0x1?void 0x0:_0x39e108?an(_0x16104c,_0x182723):_0x16104c,_0x33b9e6=_0x10ee24[_0x7bf925(0x182)]-0x1,_0x2cfd40;_0x33b9e6>=0x0;_0x33b9e6--)(_0x2cfd40=_0x10ee24[_0x33b9e6])&&(_0x57bc3e=_0x2cfd40(_0x57bc3e)||_0x57bc3e);return _0x57bc3e;},M=(_0x205cd8,_0x282639)=>(_0x2680e6,_0x3621f9)=>_0x282639(_0x2680e6,_0x3621f9,_0x205cd8);let O=class extends _0x313008{constructor(_0x5abc35,_0x4d8d8f,_0x2def4f,_0x24e486){const _0x4a5c22=_0x559f0d;super(),this[_0x4a5c22(0x1ad)]=_0x5abc35,this[_0x4a5c22(0x124)]=_0x4d8d8f,this[_0x4a5c22(0x1c1)]=_0x2def4f,this[_0x4a5c22(0x196)]=_0x24e486,this[_0x4a5c22(0x145)](),this[_0x4a5c22(0x1b0)]();}[_0x559f0d(0x145)](){const _0x2783d6=_0x559f0d,_0x9b8f98=this[_0x2783d6(0x196)][_0x2783d6(0x151)](y);_0x9b8f98!=null&&_0x9b8f98[_0x2783d6(0x1d7)]&&(this[_0x2783d6(0x124)][_0x2783d6(0x148)]=!0x1);}[_0x559f0d(0x1b0)](){const _0x5703c5=_0x559f0d,_0x59b91b=this['_configService'][_0x5703c5(0x151)](y);(_0x59b91b==null?void 0x0:_0x59b91b[_0x5703c5(0xb9)])!==!0x1&&this[_0x5703c5(0x17b)](this[_0x5703c5(0x1c1)][_0x5703c5(0x162)](_0x295991['HEADER_MENU'],()=>{const _0x1f41c1=_0x5703c5;var _0x32142e;return _0x2de9ba(un({'status$':this['_connectionController'][_0x1f41c1(0x19b)],'error$':this[_0x1f41c1(0x124)][_0x1f41c1(0xd4)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x32142e=_0x59b91b==null?void 0x0:_0x59b91b[_0x1f41c1(0x1d7)])!=null?_0x32142e:!0x1}),this[_0x1f41c1(0x1ad)]);}));}['_handleConfigure'](){const _0xf8c3fc=_0x559f0d;this[_0xf8c3fc(0x1ad)]['get'](I)[_0xf8c3fc(0x1d6)]();}};O=ln([M(0x0,_0x592555(_0xa48931)),M(0x1,_0x592555(_0x479f93)),M(0x2,_0x2fd2fa),M(0x3,_0x1a3ab6)],O);function un(_0x2130f6){const {status$:_0x5426ae,error$:_0xf40eee,onConfigure:_0x524a78,showClickable:_0x4a19d3}=_0x2130f6;return function(){return _0x386101(cn,{'status$':_0x5426ae,'error$':_0xf40eee,'onConfigure':_0x524a78,'showClickable':_0x4a19d3});};}function vn(_0x17cdbd){const _0x137083=_0x559f0d;return{'id':V['id'],'type':_0x19d45d['BUTTON'],'icon':_0x137083(0x183),'title':_0x137083(0x1b7),'tooltip':_0x137083(0x1b7)};}const dn={[_0x2539bd[_0x559f0d(0x1a0)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x559f0d(0x1f0)],pn=(_0x413910,_0x39993f,_0x262c7f,_0x10521d)=>{const _0x3f93cf=_0x559f0d;for(var _0x1442b1=_0x10521d>0x1?void 0x0:_0x10521d?gn(_0x39993f,_0x262c7f):_0x39993f,_0x412dd6=_0x413910[_0x3f93cf(0x182)]-0x1,_0x229f0;_0x412dd6>=0x0;_0x412dd6--)(_0x229f0=_0x413910[_0x412dd6])&&(_0x1442b1=_0x229f0(_0x1442b1)||_0x1442b1);return _0x1442b1;},re=(_0x298fbe,_0x2072f3)=>(_0x4fccf5,_0x55393f)=>_0x2072f3(_0x4fccf5,_0x55393f,_0x298fbe);let D=class extends _0x313008{constructor(_0x25c46,_0x4c4045){const _0x215984=_0x559f0d;super(),this[_0x215984(0xa1)]=_0x25c46,this[_0x215984(0xd7)]=_0x4c4045,this[_0x215984(0xee)](),this[_0x215984(0x181)]();}['_initializeCommands'](){[V]['forEach'](_0x535eca=>{const _0x3d5fc8=_0x5edc;this[_0x3d5fc8(0x17b)](this['_commandService'][_0x3d5fc8(0xb1)](_0x535eca));});}[_0x559f0d(0x181)](){const _0x5e2df1=_0x559f0d;this[_0x5e2df1(0xd7)][_0x5e2df1(0x113)](dn);}};D=pn([re(0x0,_0x187c77),re(0x1,_0x3548c9)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x559f0d(0xab),'connected':_0x559f0d(0x12b),'failed':_0x559f0d(0xaa),'retrying':_0x559f0d(0x1c7),'unknown':_0x559f0d(0xf8),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x559f0d(0x186),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x559f0d(0x131),'description':_0x559f0d(0x18c),'apiKey':_0x559f0d(0xa9),'apiKeyPlaceholder':_0x559f0d(0x11b),'apiKeyHint':_0x559f0d(0x103),'enableAuth':_0x559f0d(0x111),'enableAuthHint':_0x559f0d(0x1d5),'connectionInfo':_0x559f0d(0x1c2),'mcpClientConfig':_0x559f0d(0x1c2),'configInstructions':_0x559f0d(0x154),'configStepTitle':_0x559f0d(0xc6),'configStep1':_0x559f0d(0x1c6),'configStep2':_0x559f0d(0x164),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x559f0d(0xa0),'authorizationDescription':_0x559f0d(0x167),'configParameters':_0x559f0d(0xf5),'maxRetries':_0x559f0d(0xf2),'save':_0x559f0d(0x10e),'saving':'Saving...','note1':_0x559f0d(0x1ba),'note2':_0x559f0d(0x1cf),'configSaved':_0x559f0d(0x135),'configError':_0x559f0d(0xd3),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x559f0d(0xa4),'univerAiLabel':_0x559f0d(0xc5),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x559f0d(0x14f),'apiKeyTooShort':_0x559f0d(0x13a),'invalidConfig':_0x559f0d(0x137),'invalidApiKey':_0x559f0d(0xa2)},'connectionStatus':{'disconnected':_0x559f0d(0x165),'connecting':'Connecting...','connected':_0x559f0d(0x195),'failed':_0x559f0d(0x1a8),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x559f0d(0x1cb),'sessionOccupied':_0x559f0d(0x1a6),'networkError':_0x559f0d(0x13b),'maxRetriesExceeded':_0x559f0d(0x13e)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x559f0d(0x1cc),'failed':_0x559f0d(0x19d),'retrying':_0x559f0d(0x146),'unknown':_0x559f0d(0x188),'unauthorized':_0x559f0d(0x108),'sessionOccupied':_0x559f0d(0x1e7),'networkError':_0x559f0d(0x100),'maxRetriesExceeded':_0x559f0d(0x12f),'clickToConnect':_0x559f0d(0x1e1),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x559f0d(0x119),'description':_0x559f0d(0x1a1),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x559f0d(0x13c),'apiKeyHint':_0x559f0d(0xce),'enableAuth':_0x559f0d(0x197),'enableAuthHint':_0x559f0d(0xc8),'connectionInfo':_0x559f0d(0xc7),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x559f0d(0x12a),'configStep1':_0x559f0d(0x10b),'configStep2':_0x559f0d(0x19c),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x559f0d(0x1da),'sessionIdDescription':_0x559f0d(0xd0),'authorizationDescription':_0x559f0d(0x125),'configParameters':'配置参数:','maxRetries':_0x559f0d(0x1be),'save':'保存配置','saving':_0x559f0d(0xaf),'note1':_0x559f0d(0x1a4),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x559f0d(0x1a9),'configError':'配置保存失败','apiApplyInfo':{'title':_0x559f0d(0x1e5),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x559f0d(0x141),'getStarted':_0x559f0d(0xba)},'validation':{'apiKeyRequired':_0x559f0d(0x1e9),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x559f0d(0x1e4),'invalidApiKey':_0x559f0d(0x1e0)},'connectionStatus':{'disconnected':_0x559f0d(0x15d),'connecting':_0x559f0d(0x1f1),'connected':'已连接','failed':_0x559f0d(0x1d4),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x559f0d(0x187),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x559f0d(0x12d),'maxRetriesExceeded':_0x559f0d(0x11f)}}};var fn=Object[_0x559f0d(0x150)],hn=Object[_0x559f0d(0x1f0)],Cn=(_0x396ae1,_0x28d10d,_0x18aa0f)=>_0x28d10d in _0x396ae1?fn(_0x396ae1,_0x28d10d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18aa0f}):_0x396ae1[_0x28d10d]=_0x18aa0f,mn=(_0x2e0a29,_0x2ff100,_0x47b3d3,_0x1cf037)=>{const _0x2299a2=_0x559f0d;for(var _0x4f2f83=_0x1cf037>0x1?void 0x0:_0x1cf037?hn(_0x2ff100,_0x47b3d3):_0x2ff100,_0x33b283=_0x2e0a29[_0x2299a2(0x182)]-0x1,_0x2e2152;_0x33b283>=0x0;_0x33b283--)(_0x2e2152=_0x2e0a29[_0x33b283])&&(_0x4f2f83=_0x2e2152(_0x4f2f83)||_0x4f2f83);return _0x4f2f83;},P=(_0x33bbf2,_0x174e30)=>(_0x3bb2df,_0x2e0673)=>_0x174e30(_0x3bb2df,_0x2e0673,_0x33bbf2),_n=(_0x40d6b9,_0x43b5b9,_0x2112b8)=>Cn(_0x40d6b9,_0x43b5b9+'',_0x2112b8);let j=class extends _0x431772{constructor(_0x541f4f=ie,_0x20ceb4,_0x71b5e2,_0x4a872f,_0x28db18,_0x1f6ac1){const _0x131f31=_0x559f0d;super(),this[_0x131f31(0x191)]=_0x541f4f,this[_0x131f31(0x1ad)]=_0x20ceb4,this[_0x131f31(0x196)]=_0x71b5e2,this[_0x131f31(0x1c1)]=_0x4a872f,this['_localStorageService']=_0x28db18,this[_0x131f31(0xdc)]=_0x1f6ac1;const {..._0x5d2f70}=_0x5e5890({},ie,this[_0x131f31(0x191)]);this[_0x131f31(0x196)]['setConfig'](y,_0x5d2f70);}async[_0x559f0d(0x156)](){const _0xe9455d=_0x559f0d,_0x2ad758=[[O],[I],[D]];this['_injector'][_0xe9455d(0x143)](_0x5aa8ec)||_0x2ad758[_0xe9455d(0x15c)]([_0x5aa8ec,{'useClass':_0x325f73}]),_0x2ad758[_0xe9455d(0x1b9)](_0x2494e4=>this[_0xe9455d(0x1ad)]['add'](_0x2494e4)),this[_0xe9455d(0x1ad)][_0xe9455d(0x1c8)](O),this[_0xe9455d(0x1ad)][_0xe9455d(0x1c8)](I),this[_0xe9455d(0x1ad)][_0xe9455d(0x1c8)](D);}};_n(j,_0x559f0d(0x102),_0x559f0d(0xc3)),j=mn([_0x451ff0(_0x310f35),P(0x1,_0x592555(_0xa48931)),P(0x2,_0x1a3ab6),P(0x3,_0x2fd2fa),P(0x4,_0x1b37b4),P(0x5,_0x592555(_0x13d346))],j);function _0x5edc(_0x212562,_0x5a8ba1){_0x212562=_0x212562-0xa0;const _0x14a9d5=_0x14a9();let _0x5edcde=_0x14a9d5[_0x212562];return _0x5edcde;}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};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1f20(_0x155a3f,_0x93ed96){_0x155a3f=_0x155a3f-0xc5;const _0x18bc2d=_0x18bc();let _0x1f209f=_0x18bc2d[_0x155a3f];return _0x1f209f;}const _0x18ce22=_0x1f20;(function(_0x4cc47d,_0x277776){const _0x3f9008=_0x1f20,_0x61a68=_0x4cc47d();while(!![]){try{const _0x1725a1=parseInt(_0x3f9008(0xd9))/0x1*(-parseInt(_0x3f9008(0xe2))/0x2)+-parseInt(_0x3f9008(0xd0))/0x3+-parseInt(_0x3f9008(0xdc))/0x4*(-parseInt(_0x3f9008(0xcf))/0x5)+-parseInt(_0x3f9008(0xc9))/0x6*(parseInt(_0x3f9008(0xf2))/0x7)+-parseInt(_0x3f9008(0xf1))/0x8*(-parseInt(_0x3f9008(0xf3))/0x9)+-parseInt(_0x3f9008(0xe6))/0xa+parseInt(_0x3f9008(0xd1))/0xb;if(_0x1725a1===_0x277776)break;else _0x61a68['push'](_0x61a68['shift']());}catch(_0x1e85c3){_0x61a68['push'](_0x61a68['shift']());}}}(_0x18bc,0x66f32));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x18ce22(0xe8),'failed':_0x18ce22(0xd8),'retrying':_0x18ce22(0xc5),'unknown':_0x18ce22(0xca),'unauthorized':_0x18ce22(0xe9),'sessionOccupied':_0x18ce22(0xd3),'networkError':_0x18ce22(0xeb),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x18ce22(0xf0)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x18ce22(0xce),'apiKeyPlaceholder':_0x18ce22(0xe3),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x18ce22(0xd5),'connectionInfo':_0x18ce22(0xc8),'mcpClientConfig':_0x18ce22(0xc8),'configInstructions':_0x18ce22(0xda),'configStepTitle':_0x18ce22(0xd7),'configStep1':_0x18ce22(0xc6),'configStep2':_0x18ce22(0xd2),'configStep3':_0x18ce22(0xdd),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x18ce22(0xcc),'maxRetries':_0x18ce22(0xcb),'save':_0x18ce22(0xd6),'saving':'Saving...','note1':_0x18ce22(0xde),'note2':_0x18ce22(0xdb),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x18ce22(0xec),'apiApplyInfo':{'title':_0x18ce22(0xed),'description':_0x18ce22(0xcd),'univerAiLabel':_0x18ce22(0xe1),'getStarted':_0x18ce22(0xe4)},'validation':{'apiKeyRequired':_0x18ce22(0xdf),'apiKeyTooShort':_0x18ce22(0xe7),'invalidConfig':_0x18ce22(0xee),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x18ce22(0xe0),'connecting':'Connecting...','connected':'Connected','failed':_0x18ce22(0xc7),'retrying':_0x18ce22(0xea)},'connectionError':{'unauthorized':_0x18ce22(0xe5),'sessionOccupied':_0x18ce22(0xd4),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x18ce22(0xef)}}},n=e;export{n as default};function _0x18bc(){const _0x39559b=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','4049810lSiazT','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','MCP:\x20Unauthorized','Retrying...','MCP:\x20Network\x20Error','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','617536mPDlLW','7MeOqjP','81fCLVIq','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','MCP\x20Client\x20Configuration','1326522pFPmIX','MCP\x20Unknown\x20Status','Max\x20Retries','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20Key','5lCxBah','994965iJFGvb','8098519SLbhXA','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Session\x20ID\x20Occupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Save\x20Configuration','Configuration\x20Steps:','MCP\x20Connection\x20Failed','51343woYafy','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','615280kwobmA','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','Disconnected','Univer\x20AI\x20Console','8wKxRGP','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x18bc=function(){return _0x39559b;};return _0x18bc();}
|