@univerjs-pro/mcp-ui 0.14.0-insiders.20251222-4efcfbb → 0.14.0-insiders.20251227-b250a8d
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/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/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/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/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 +9 -9
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x39277d=_0x455b;(function(_0x1adb08,_0x3541cf){const _0x2f8777=_0x455b,_0x1d70d1=_0x1adb08();while(!![]){try{const _0x3153af=-parseInt(_0x2f8777(0x182))/0x1*(-parseInt(_0x2f8777(0x17b))/0x2)+-parseInt(_0x2f8777(0x186))/0x3*(-parseInt(_0x2f8777(0x1a2))/0x4)+parseInt(_0x2f8777(0x1a7))/0x5+parseInt(_0x2f8777(0x199))/0x6*(parseInt(_0x2f8777(0x191))/0x7)+parseInt(_0x2f8777(0x18f))/0x8*(-parseInt(_0x2f8777(0x18a))/0x9)+-parseInt(_0x2f8777(0x17f))/0xa*(parseInt(_0x2f8777(0x1a8))/0xb)+-parseInt(_0x2f8777(0x197))/0xc*(parseInt(_0x2f8777(0x19f))/0xd);if(_0x3153af===_0x3541cf)break;else _0x1d70d1['push'](_0x1d70d1['shift']());}catch(_0x24ce05){_0x1d70d1['push'](_0x1d70d1['shift']());}}}(_0x5dae,0x6d445));function _0x5dae(){const _0x1a13e2=['세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','511uzHWoZ','MCP:\x20네트워크\x20오류','세션\x20ID','설정\x20단계:','MCP\x20알\x20수\x20없는\x20상태','MCP\x20클라이언트\x20설정','5658372RVMnHe','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','37554YSWdTJ','최대\x20재시도\x20횟수','MCP\x20연결됨','보안\x20연결을\x20위해\x20인증\x20활성화','Bearer\x20접두사가\x20있는\x20API\x20키.','연결\x20중...','13VxJNpu','인증\x20실패.\x20API\x20키를\x20확인하세요','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','322176XXGWXH','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','API\x20키를\x20입력하세요','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP\x20연결\x20실패','1918345mEcFGM','12001bYMMCp','MCP\x20설정','MCP\x20재시도\x20중...','8102SXKAMN','API\x20키는\x20필수입니다','MCP:\x20세션\x20ID\x20사용\x20중','아래\x20JSON\x20설정\x20복사','7750qqjieJ','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','설정\x20저장\x20실패','213kgddDs','설정\x20저장','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','클릭하여\x20MCP\x20설정','9VJGSbv','몇\x20초\x20만에\x20API\x20키\x20발급받기','MCP:\x20인증되지\x20않음','연결\x20끊김','812061YEThPl','설정\x20매개변수:','MCP\x20연결\x20끊김','유효하지\x20않은\x20설정','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','16WOXvhn'];_0x5dae=function(){return _0x1a13e2;};return _0x5dae();}function _0x455b(_0x823e0d,_0x35b560){_0x823e0d=_0x823e0d-0x179;const _0x5daed5=_0x5dae();let _0x455bed=_0x5daed5[_0x823e0d];return _0x455bed;}const e={'mcpStatus':{'disconnected':_0x39277d(0x18c),'connecting':'MCP\x20연결\x20중...','connected':_0x39277d(0x19b),'failed':_0x39277d(0x1a6),'retrying':_0x39277d(0x17a),'unknown':_0x39277d(0x195),'unauthorized':_0x39277d(0x188),'sessionOccupied':_0x39277d(0x17d),'networkError':_0x39277d(0x192),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':'클릭하여\x20MCP\x20연결','clickToConfigure':_0x39277d(0x185)},'mcpConfig':{'title':_0x39277d(0x179),'description':'AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','apiKey':'API\x20키','apiKeyPlaceholder':_0x39277d(0x1a4),'apiKeyHint':_0x39277d(0x1a1),'enableAuth':'인증\x20활성화','enableAuthHint':_0x39277d(0x19c),'connectionInfo':_0x39277d(0x196),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x39277d(0x18e),'configStepTitle':_0x39277d(0x194),'configStep1':_0x39277d(0x17e),'configStep2':_0x39277d(0x1a3),'configStep3':_0x39277d(0x198),'sessionId':_0x39277d(0x193),'sessionIdDescription':'고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','authorizationDescription':_0x39277d(0x19d),'configParameters':_0x39277d(0x18b),'maxRetries':_0x39277d(0x19a),'save':_0x39277d(0x183),'saving':'저장\x20중...','note1':'설정\x20변경\x20사항은\x20즉시\x20적용됩니다','note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x39277d(0x181),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x39277d(0x187)},'validation':{'apiKeyRequired':_0x39277d(0x17c),'apiKeyTooShort':_0x39277d(0x1a5),'invalidConfig':_0x39277d(0x18d),'invalidApiKey':_0x39277d(0x180)},'connectionStatus':{'disconnected':_0x39277d(0x189),'connecting':_0x39277d(0x19e),'connected':'연결됨','failed':'연결\x20실패','retrying':'재시도\x20중...'},'connectionError':{'unauthorized':_0x39277d(0x1a0),'sessionOccupied':_0x39277d(0x190),'networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x39277d(0x184)}}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4fc5(_0x367e3a,_0x32564a){_0x367e3a=_0x367e3a-0xc3;const _0x5bd2e7=_0x5bd2();let _0x4fc5bd=_0x5bd2e7[_0x367e3a];return _0x4fc5bd;}const _0x4389f3=_0x4fc5;(function(_0x287192,_0xaa2977){const _0x48df11=_0x4fc5,_0x226e01=_0x287192();while(!![]){try{const _0x49fcd2=parseInt(_0x48df11(0xd3))/0x1*(-parseInt(_0x48df11(0xe5))/0x2)+parseInt(_0x48df11(0xe6))/0x3+-parseInt(_0x48df11(0xe9))/0x4+parseInt(_0x48df11(0xef))/0x5*(parseInt(_0x48df11(0xdb))/0x6)+parseInt(_0x48df11(0xeb))/0x7+-parseInt(_0x48df11(0xd1))/0x8*(parseInt(_0x48df11(0xea))/0x9)+parseInt(_0x48df11(0xc6))/0xa*(parseInt(_0x48df11(0xd4))/0xb);if(_0x49fcd2===_0xaa2977)break;else _0x226e01['push'](_0x226e01['shift']());}catch(_0x912253){_0x226e01['push'](_0x226e01['shift']());}}}(_0x5bd2,0x99d8a));const e={'mcpStatus':{'disconnected':_0x4389f3(0xf2),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x4389f3(0xcb),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4389f3(0xe4),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4389f3(0xf0),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4389f3(0xc4)},'mcpConfig':{'title':_0x4389f3(0xc8),'description':_0x4389f3(0xe8),'apiKey':_0x4389f3(0xde),'apiKeyPlaceholder':_0x4389f3(0xf1),'apiKeyHint':_0x4389f3(0xe2),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4389f3(0xce),'connectionInfo':_0x4389f3(0xd7),'mcpClientConfig':_0x4389f3(0xd7),'configInstructions':_0x4389f3(0xd6),'configStepTitle':_0x4389f3(0xe3),'configStep1':_0x4389f3(0xdd),'configStep2':_0x4389f3(0xcd),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4389f3(0xc9),'sessionIdDescription':_0x4389f3(0xe7),'authorizationDescription':_0x4389f3(0xd5),'configParameters':_0x4389f3(0xe1),'maxRetries':'Max\x20Retries','save':_0x4389f3(0xd0),'saving':_0x4389f3(0xec),'note1':_0x4389f3(0xd9),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4389f3(0xee),'configError':_0x4389f3(0xd8),'apiApplyInfo':{'title':_0x4389f3(0xdc),'description':_0x4389f3(0xdf),'univerAiLabel':_0x4389f3(0xda),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4389f3(0xc5),'apiKeyTooShort':_0x4389f3(0xed),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4389f3(0xca)},'connectionStatus':{'disconnected':_0x4389f3(0xd2),'connecting':_0x4389f3(0xcc),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x4389f3(0xc3)},'connectionError':{'unauthorized':_0x4389f3(0xe0),'sessionOccupied':_0x4389f3(0xcf),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4389f3(0xc7)}}},n=e;export{n as default};function _0x5bd2(){const _0x5c76e9=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','5001692wkOCdJ','3465zrtkfC','2355983xApwGr','Saving...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','1772275nyAwRy','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','MCP\x20Disconnected','Retrying...','Click\x20to\x20configure\x20MCP','API\x20key\x20is\x20required','1930WarCqV','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20authentication\x20for\x20secure\x20connections','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Save\x20Configuration','15896hZIqIh','Disconnected','6046VYsvmQ','104093GuNolM','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Univer\x20AI\x20Console','12eVZBtX','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','242SFUjca','1515900ezJIBV','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x5bd2=function(){return _0x5c76e9;};return _0x5bd2();}
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x16e6(){const _0x21e8c0=['MCP:\x20Không\x20được\x20phép','Kết\x20nối\x20thất\x20bại','Cấu\x20hình\x20MCP','3218296MmAoBP','MCP\x20Đã\x20ngắt\x20kết\x20nối','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','10omazEn','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Yêu\x20cầu\x20khóa\x20API','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','119942oSmbIh','321022jbBgXv','ID\x20phiên','Đã\x20kết\x20nối','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Khóa\x20API\x20là\x20gì?','Nhập\x20khóa\x20API\x20của\x20bạn','MCP\x20Đã\x20kết\x20nối','Đã\x20ngắt\x20kết\x20nối','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Lưu\x20cấu\x20hình','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','558305JPUxTz','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Cấu\x20hình\x20không\x20hợp\x20lệ','Bảng\x20điều\x20khiển\x20Univer\x20AI','3080135hpdisv','MCP:\x20Lỗi\x20mạng','MCP\x20Kết\x20nối\x20thất\x20bại','199026NXsZXf','Nhấp\x20để\x20cấu\x20hình\x20MCP','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','8nOOLwf','7VbFvEV','Cấu\x20hình\x20máy\x20khách\x20MCP','Nhấp\x20để\x20kết\x20nối\x20MCP','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','27apcVoA','Các\x20bước\x20cấu\x20hình:','1826586rWVFmN','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn'];_0x16e6=function(){return _0x21e8c0;};return _0x16e6();}const _0x69ad99=_0x2181;(function(_0x591ebe,_0x400afc){const _0x574fc7=_0x2181,_0x32ad0a=_0x591ebe();while(!![]){try{const _0x426ecc=-parseInt(_0x574fc7(0x1e6))/0x1+-parseInt(_0x574fc7(0x1e5))/0x2*(-parseInt(_0x574fc7(0x1d5))/0x3)+-parseInt(_0x574fc7(0x1dc))/0x4+parseInt(_0x574fc7(0x1c8))/0x5+parseInt(_0x574fc7(0x1d7))/0x6*(parseInt(_0x574fc7(0x1d1))/0x7)+-parseInt(_0x574fc7(0x1d0))/0x8*(-parseInt(_0x574fc7(0x1cb))/0x9)+-parseInt(_0x574fc7(0x1df))/0xa*(-parseInt(_0x574fc7(0x1f2))/0xb);if(_0x426ecc===_0x400afc)break;else _0x32ad0a['push'](_0x32ad0a['shift']());}catch(_0x4a8112){_0x32ad0a['push'](_0x32ad0a['shift']());}}}(_0x16e6,0x637ae));function _0x2181(_0x45023e,_0x460cbd){_0x45023e=_0x45023e-0x1c7;const _0x16e631=_0x16e6();let _0x218146=_0x16e631[_0x45023e];return _0x218146;}const n={'mcpStatus':{'disconnected':_0x69ad99(0x1dd),'connecting':'MCP\x20Đang\x20kết\x20nối...','connected':_0x69ad99(0x1ed),'failed':_0x69ad99(0x1ca),'retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':_0x69ad99(0x1de),'unauthorized':_0x69ad99(0x1d9),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x69ad99(0x1c9),'maxRetriesExceeded':_0x69ad99(0x1f3),'clickToConnect':_0x69ad99(0x1d3),'clickToConfigure':_0x69ad99(0x1cc)},'mcpConfig':{'title':_0x69ad99(0x1db),'description':_0x69ad99(0x1cd),'apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x69ad99(0x1ec),'apiKeyHint':_0x69ad99(0x1e0),'enableAuth':'Bật\x20xác\x20thực','enableAuthHint':_0x69ad99(0x1cf),'connectionInfo':_0x69ad99(0x1d2),'mcpClientConfig':_0x69ad99(0x1d2),'configInstructions':_0x69ad99(0x1e2),'configStepTitle':_0x69ad99(0x1d6),'configStep1':_0x69ad99(0x1e9),'configStep2':_0x69ad99(0x1ea),'configStep3':_0x69ad99(0x1d4),'sessionId':_0x69ad99(0x1e7),'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':_0x69ad99(0x1f1),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':'Số\x20lần\x20thử\x20lại\x20tối\x20đa','save':_0x69ad99(0x1f0),'saving':'Đang\x20lưu...','note1':_0x69ad99(0x1e3),'note2':'Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','configSaved':'Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','configError':'Lưu\x20cấu\x20hình\x20thất\x20bại','apiApplyInfo':{'title':_0x69ad99(0x1eb),'description':'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.','univerAiLabel':_0x69ad99(0x1c7),'getStarted':'Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây'},'validation':{'apiKeyRequired':_0x69ad99(0x1e1),'apiKeyTooShort':_0x69ad99(0x1ef),'invalidConfig':_0x69ad99(0x1f4),'invalidApiKey':_0x69ad99(0x1ce)},'connectionStatus':{'disconnected':_0x69ad99(0x1ee),'connecting':'Đang\x20kết\x20nối...','connected':_0x69ad99(0x1e8),'failed':_0x69ad99(0x1da),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x69ad99(0x1d8),'sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':_0x69ad99(0x1e4),'maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4187(_0x1845f4,_0x224bff){_0x1845f4=_0x1845f4-0x85;const _0x361214=_0x3612();let _0x41878e=_0x361214[_0x1845f4];return _0x41878e;}const _0xde6b0c=_0x4187;(function(_0x450fcf,_0x3863af){const _0x5364ab=_0x4187,_0x4ba631=_0x450fcf();while(!![]){try{const _0x4994e2=parseInt(_0x5364ab(0xa5))/0x1*(parseInt(_0x5364ab(0x99))/0x2)+parseInt(_0x5364ab(0x85))/0x3+-parseInt(_0x5364ab(0xa0))/0x4*(parseInt(_0x5364ab(0x8f))/0x5)+parseInt(_0x5364ab(0x87))/0x6+-parseInt(_0x5364ab(0xac))/0x7+parseInt(_0x5364ab(0x95))/0x8+parseInt(_0x5364ab(0xad))/0x9*(parseInt(_0x5364ab(0x9f))/0xa);if(_0x4994e2===_0x3863af)break;else _0x4ba631['push'](_0x4ba631['shift']());}catch(_0x4fc013){_0x4ba631['push'](_0x4ba631['shift']());}}}(_0x3612,0x7a7c9));const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0xde6b0c(0x8b),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0xde6b0c(0xa9),'sessionOccupied':_0xde6b0c(0xaf),'networkError':_0xde6b0c(0xab),'maxRetriesExceeded':_0xde6b0c(0x96),'clickToConnect':_0xde6b0c(0x9b),'clickToConfigure':_0xde6b0c(0xb3)},'mcpConfig':{'title':_0xde6b0c(0xb0),'description':_0xde6b0c(0x9c),'apiKey':_0xde6b0c(0xae),'apiKeyPlaceholder':_0xde6b0c(0x89),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0xde6b0c(0x94),'enableAuthHint':_0xde6b0c(0xa7),'connectionInfo':_0xde6b0c(0xa3),'mcpClientConfig':_0xde6b0c(0xa3),'configInstructions':_0xde6b0c(0x9e),'configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0xde6b0c(0x8e),'configStep3':_0xde6b0c(0xa2),'sessionId':_0xde6b0c(0x9a),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0xde6b0c(0xaa),'configParameters':_0xde6b0c(0xa6),'maxRetries':'最大重试次数','save':_0xde6b0c(0x92),'saving':_0xde6b0c(0x8d),'note1':_0xde6b0c(0xa8),'note2':_0xde6b0c(0xa4),'configSaved':_0xde6b0c(0x9d),'configError':_0xde6b0c(0x97),'apiApplyInfo':{'title':_0xde6b0c(0x88),'description':_0xde6b0c(0x91),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0xde6b0c(0x98)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0xde6b0c(0xa1),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0xde6b0c(0xb2),'connected':_0xde6b0c(0x93),'failed':'连接失败','retrying':_0xde6b0c(0xb1)},'connectionError':{'unauthorized':_0xde6b0c(0x8c),'sessionOccupied':_0xde6b0c(0x90),'networkError':_0xde6b0c(0x8a),'maxRetriesExceeded':_0xde6b0c(0x86)}}};function _0x3612(){const _0x12c9fb=['10qHJIBW','会话\x20ID\x20已被占用,请稍后再试','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','保存配置','已连接','启用身份验证','1479488kpMXuI','MCP:\x20超出最大重试次数','配置保存失败','几秒钟内获取您的\x20API\x20密钥','26122qptOWI','会话ID','点击连接\x20MCP','配置\x20MCP\x20使用\x20AI\x20操作电子表格','配置保存成功','将以下配置添加到您的\x20MCP\x20客户端设置中:','20fAobHQ','1208776ZluvFz','API\x20密钥长度至少需要\x2010\x20位','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20客户端配置','您的\x20API\x20密钥安全存储在本地存储中','47ORDOfh','配置参数:','启用身份验证以获得安全连接','配置更改将立即生效','MCP:\x20未授权','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20网络错误','5097834wxcHnN','523026HhQEZf','API\x20密钥','MCP:\x20会话\x20ID\x20已被占用','MCP\x20配置','重连中...','连接中...','点击配置\x20MCP','2040177NBvRhW','超出最大重试次数,请稍后再试','1435590BGfYOH','什么是\x20API\x20密钥?','请输入您的\x20API\x20密钥','网络连接错误,请检查您的网络连接','MCP\x20连接中...','权限验证失败,请检查您的\x20API\x20密钥','保存中...','将配置添加到您的\x20MCP\x20客户端设置文件中'];_0x3612=function(){return _0x12c9fb;};return _0x3612();}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x402761=_0x2d63;function _0x1c9c(){const _0x5baa59=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20connect\x20MCP','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2325789omYjMF','MCP\x20Configuration','Failed\x20to\x20save\x20configuration','4722084fdyfkG','Saving...','Disconnected','2844906tkwwGe','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','11958BmKCjx','MCP:\x20Max\x20Retries\x20Exceeded','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','3829QuqduU','11772100ZYMyWl','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2479040NqiwfC','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','API\x20Key','MCP:\x20Network\x20Error','MCP\x20Client\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connecting...','24zvULjF','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','18080ZEAYlA','43MMjuBE','Configuration\x20Steps:','Configuration\x20Parameters:','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connecting...'];_0x1c9c=function(){return _0x5baa59;};return _0x1c9c();}(function(_0x24b700,_0x1f7a68){const _0x1b2b40=_0x2d63,_0x6aa971=_0x24b700();while(!![]){try{const _0x4c1df5=-parseInt(_0x1b2b40(0x1cf))/0x1*(parseInt(_0x1b2b40(0x1ce))/0x2)+parseInt(_0x1b2b40(0x1e4))/0x3+-parseInt(_0x1b2b40(0x1e1))/0x4+parseInt(_0x1b2b40(0x1c3))/0x5+-parseInt(_0x1b2b40(0x1e6))/0x6*(parseInt(_0x1b2b40(0x1bf))/0x7)+-parseInt(_0x1b2b40(0x1cb))/0x8*(-parseInt(_0x1b2b40(0x1de))/0x9)+parseInt(_0x1b2b40(0x1c0))/0xa;if(_0x4c1df5===_0x1f7a68)break;else _0x6aa971['push'](_0x6aa971['shift']());}catch(_0x2d9ab0){_0x6aa971['push'](_0x6aa971['shift']());}}}(_0x1c9c,0xb3f93));function _0x2d63(_0x31d897,_0x266949){_0x31d897=_0x31d897-0x1bd;const _0x1c9c79=_0x1c9c();let _0x2d63b9=_0x1c9c79[_0x31d897];return _0x2d63b9;}const e={'mcpStatus':{'disconnected':_0x402761(0x1c1),'connecting':_0x402761(0x1d3),'connected':'MCP\x20Connected','failed':_0x402761(0x1c5),'retrying':'MCP\x20Retrying...','unknown':_0x402761(0x1da),'unauthorized':_0x402761(0x1c4),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x402761(0x1c7),'maxRetriesExceeded':_0x402761(0x1e7),'clickToConnect':_0x402761(0x1d9),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x402761(0x1df),'description':_0x402761(0x1d4),'apiKey':_0x402761(0x1c6),'apiKeyPlaceholder':_0x402761(0x1db),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x402761(0x1d2),'connectionInfo':_0x402761(0x1c8),'mcpClientConfig':_0x402761(0x1c8),'configInstructions':_0x402761(0x1dd),'configStepTitle':_0x402761(0x1d0),'configStep1':_0x402761(0x1d8),'configStep2':_0x402761(0x1e9),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x402761(0x1dc),'sessionIdDescription':_0x402761(0x1d6),'authorizationDescription':_0x402761(0x1cc),'configParameters':_0x402761(0x1d1),'maxRetries':_0x402761(0x1d5),'save':'Save\x20Configuration','saving':_0x402761(0x1e2),'note1':_0x402761(0x1d7),'note2':_0x402761(0x1e5),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x402761(0x1e0),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x402761(0x1c9),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x402761(0x1cd)},'connectionStatus':{'disconnected':_0x402761(0x1e3),'connecting':_0x402761(0x1ca),'connected':'Connected','failed':_0x402761(0x1bd),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x402761(0x1be),'networkError':_0x402761(0x1e8),'maxRetriesExceeded':_0x402761(0x1c2)}}},n=e;export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x20c7(_0x2f334d,_0x353a97){_0x2f334d=_0x2f334d-0x1ad;const _0x2e39cf=_0x2e39();let _0x20c794=_0x2e39cf[_0x2f334d];return _0x20c794;}function _0x2e39(){const _0x5e0b1a=['MCP\x20Connected','mcpConfig.connectionStatus.connecting','mcpConfig.apiApplyInfo.univerAiLabel','ICommandService','CheckMarkIcon','Disconnected','API\x20Key','LocaleService','MessageType','@univerjs-pro/mcp','MCP:\x20Network\x20Error','mcpConfig.configStepTitle','useObservable','几秒钟内获取您的\x20API\x20密钥','_componentManager','univer-space-y-3','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-space-y-2','fill','registerCommand','getOwnPropertyDescriptor','mcpConfig.validation.invalidApiKey','配置保存失败','MAX_RETRIES_EXCEEDED','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-flex-1','NETWORK_ERROR','MCP:\x20未授权','error','value','includes','启用身份验证以获得安全连接','enableAutoConnect','MenuIcon','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCPUIMenuController','noopener\x20noreferrer','univer-flex\x20univer-items-start\x20univer-gap-3','3130780Agcdwi','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Univer\x20AI\x20Console','mcpConfig.connectionStatus.failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpStatus.maxRetriesExceeded','会话ID','_initializeCommands','mergeMenu','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','NONE','将以下配置添加到您的\x20MCP\x20客户端设置中:','重连中...','getItem','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_connectionController','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','subscribeConfigValue$','连接失败','mcp-config-dialog','disposeWithMe','OpenMCPConfigPanelCommand','_dialogService','IMenuManagerService','UniverNetwork','displayName','2eSxAuC','_handleConfigure','trim','exports','assign','replace','WebSocketService','show','@univerjs/network','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_handleConfigSave','showStatus','connectionStatus$','_mcpCoreConfig$','useDependency','validateApiKey','mcpConfig.configStep3','_uiPartsService','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','mcpConfig.configError','网络连接错误,请检查您的网络连接','div','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','配置无效','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','react/jsx-runtime','MCPConnectionUIController','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','symbol','connectInjector','string','close-icon','mcpStatus.failed','univer-text-green-500','_commandService','配置步骤:','Tooltip','subscribe','_apiKey$','close','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','React','配置更改将立即生效','已连接','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Client\x20Configuration','UniverMCPUIPlugin','Inject','MCP\x20连接失败','setItem','univer-min-w-0\x20univer-flex-1','MCP\x20配置','mcpConfig.sessionIdDescription','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','createElement','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','defineProperty','M0\x200H16V16H0z','showDeveloperTools','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','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','_messageService','_config$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_injector','mcpConfig.validation.apiKeyRequired','white','univer-bg-red-500','univer-text-sm\x20univer-font-medium','MCP:\x20Max\x20Retries\x20Exceeded','univer-flex\x20univer-items-center\x20univer-gap-3','round','amd','off-line-icon','mcp-ui.config','off-line-icon_clip0_910_343','mcpStatus.connected','univer.ai','zhCN','0\x200\x2017\x2016','check-mark-icon','univer-space-y-5','API\x20密钥','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','HEADER_MENU','removeItem','univer-text-blue-600','API\x20key\x20is\x20required','9055557XseHxL','会话\x20ID\x20已被占用,请稍后再试','MCP:\x20网络错误','连接中...','MCP\x20Retrying...','svg','Configuration\x20Notes:','Configuration\x20Parameters:','setConfig','url(#$1','univer-mr-2\x20univer-flex\x20univer-text-xl','_logService','mcpConfig.connectionStatus.retrying','10248534OmvNKh','BuiltInUIPart','__setCustomHeaders','HelpIcon','register','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-yellow-500','univer-text-white','UniverProMcpUi','url(#on-line-icon_clip0_910_349)','next','univer-font-medium','1772028fzkXIH','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-size-2\x20univer-rounded-full','mcpConfig.validation.invalidConfig','_localeService','MCPConnectionStatus','mcpStatus.clickToConfigure','FAILED','What\x20is\x20API\x20Key?','defIds','tag','univer-text-xs\x20univer-text-gray-600','connectionError$','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','useRef','object','currentColor','权限验证失败,请检查您的\x20API\x20密钥','current','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','merge','Failed\x20to\x20save\x20configuration','Saving...','pluginName','bottom','mcpStatus.disconnected','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','map','univer-bg-gray-500','MCPConfigPanel','forwardRef','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','什么是\x20API\x20密钥?','OffLineIcon','mcpStatus.unauthorized','UniverMCPPlugin','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','attrs','colorChannel1','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','4SUUgPl','sessionId$','IDialogService','univer-text-gray-400','MCP\x20Configuration','UNAUTHORIZED','_initConfigSync','mcpStatus.sessionOccupied','MCP:\x20会话\x20ID\x20已被占用','Session\x20ID','OnLineIcon','univer-shrink-0\x20univer-text-red-500','_mcpConnectionController','mcpConfig.connectionError.sessionOccupied','MCP\x20Disconnected','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_initStatusComponent','Save\x20Configuration','mcpConfig.note2','MCP\x20连接中...','最大重试次数','0\x200\x2016\x2016','MCP\x20Connection\x20Failed','MCP\x20客户端配置','https://console.univer.ai','mcpConfig.configInstructions','rxjs','IMessageService','UniverProMcp','UniverUi','Invalid\x20configuration','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCPConfigUIController','Enter\x20your\x20API\x20key','has','mcpStatus.networkError','enUS','Click\x20to\x20configure\x20MCP','univer-bg-green-500','_registerComponent','超出最大重试次数,请稍后再试','Copy\x20the\x20JSON\x20configuration\x20below','mcpConfig.apiApplyInfo.title','showConfigPanel','_loading$','clipPath','mcpConfig.note1','https://console.univer.plus','Button','forEach','mcpStatus.connecting','DISCONNECTED','保存中...','mcpConfig.configSaved','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','复制以下\x20JSON\x20配置','get','useState','OTHERS','@univerjs/design','registerComponent','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','jsx','mcpConfig.apiKey','https://mcp.univer.ai/mcp/?univer_session_id=','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','\x20-\x20','7746584cmwftO','_menuManagerService','@univerjs/ui','push','API\x20密钥无效,请检查密钥是否正确','mcpConfig.connectionStatus.disconnected','errorMessage','translate(.97)','UniverIcon','univer-flex\x20univer-flex-wrap\x20univer-gap-2','ILocalStorageService','MCP\x20已断开','_config','Configuration\x20Steps:','@univerjs/core','open','entries','_loadStoredApiKey','Error','pre','Success','help-icon','mcpStatus.clickToConnect','Connection\x20Failed','BehaviorSubject','MCP\x20Unknown\x20Status','evenodd','add','span','_createConfigPanelComponent','重启您的\x20MCP\x20客户端以使配置生效','RibbonStartGroup','path','RETRYING','Plugin','mcpConfig.connectionStatus.connected','MCP:\x20Unauthorized','jsxs','use','832758EwpjOl','IUIPartsService','off','Bearer\x20','mcp.apiKey','toStringTag','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCPConnectionError','点击连接\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','配置参数:','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-red-500','length','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','text','<SESSION_ID>','MenuItemType','MCP_PLUGIN_CONFIG_KEY','CONNECTED','UniverCore','CloseIcon','_initializeMenus','ComponentManager','defs','substring','API\x20key\x20with\x20Bearer\x20prefix.','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Authorization:','SESSION_ID_OCCUPIED','on-line-icon','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connecting...','mcpConfig.validation.apiKeyTooShort','\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','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-text-gray-500','Injector','http://www.w3.org/2000/svg','function','BUTTON','univer_session_id:','1em','3818724hlkDJW','univer-size-4','Get\x20your\x20API\x20key\x20in\x20seconds','univer-text-sm\x20univer-text-gray-500','children','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.configStep1','mcpConfig.connectionError.networkError','_localStorageService','_validateConfig','_configService','univer-flex\x20univer-gap-3','mcpConfig.connectionError.unauthorized','idSuffix','univer-text-xs\x20univer-text-gray-500','MCP\x20重连中...','getConfig','mcpConfig.apiApplyInfo.getStarted','ISocketService','useCallback','Enable\x20authentication\x20for\x20secure\x20connections','apiKey','isValid','MCPConnectionController','CONNECTING','_initAutoConnect','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpServerUrl','clsx','IConfigService','mcpConfig.title','xlink:href','Disposable','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer.plus','none','mcpConfig.apiKeyPlaceholder'];_0x2e39=function(){return _0x5e0b1a;};return _0x2e39();}(function(_0x37d3b0,_0x2ef63){const _0x1b8d7c=_0x20c7,_0x246997=_0x37d3b0();while(!![]){try{const _0x17c485=-parseInt(_0x1b8d7c(0x1b7))/0x1*(parseInt(_0x1b8d7c(0x2bd))/0x2)+-parseInt(_0x1b8d7c(0x22b))/0x3*(parseInt(_0x1b8d7c(0x253))/0x4)+parseInt(_0x1b8d7c(0x334))/0x5+parseInt(_0x1b8d7c(0x2e8))/0x6+-parseInt(_0x1b8d7c(0x211))/0x7+parseInt(_0x1b8d7c(0x296))/0x8+parseInt(_0x1b8d7c(0x21e))/0x9;if(_0x17c485===_0x2ef63)break;else _0x246997['push'](_0x246997['shift']());}catch(_0x9721a3){_0x246997['push'](_0x246997['shift']());}}}(_0x2e39,0x9f51e),function(_0xc8b1d7,_0x22790b){const _0x259241=_0x20c7;typeof exports==_0x259241(0x23a)&&typeof module<'u'?_0x22790b(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0x259241(0x2e4)&&define[_0x259241(0x201)]?define([_0x259241(0x1ba),_0x259241(0x2a4),_0x259241(0x1d0),_0x259241(0x316),_0x259241(0x28e),_0x259241(0x298),_0x259241(0x26d),'react',_0x259241(0x1bf)],_0x22790b):(_0xc8b1d7=typeof globalThis<'u'?globalThis:_0xc8b1d7||self,_0x22790b(_0xc8b1d7[_0x259241(0x227)]={},_0xc8b1d7[_0x259241(0x2d1)],_0xc8b1d7[_0x259241(0x1e1)],_0xc8b1d7[_0x259241(0x26f)],_0xc8b1d7['UniverDesign'],_0xc8b1d7[_0x259241(0x270)],_0xc8b1d7[_0x259241(0x26d)],_0xc8b1d7[_0x259241(0x1e1)],_0xc8b1d7[_0x259241(0x1b5)]));}(this,function(_0xebb147,_0xceaa6d,_0x1fa4c5,_0x664707,_0x594aee,_0x135821,_0x43cf9a,_0x2b6260,_0x24c946){'use strict';const _0x5fc18f=_0x20c7;var _0x532a2c=Object[_0x5fc18f(0x1f1)],_0x1e09c1=(_0x44fa9b,_0x3e00bb,_0x3dcea4)=>_0x3e00bb in _0x44fa9b?_0x532a2c(_0x44fa9b,_0x3e00bb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dcea4}):_0x44fa9b[_0x3e00bb]=_0x3dcea4,_0xdc67f=(_0x58ad12,_0x1a3cf6,_0x1ac23f)=>_0x1e09c1(_0x58ad12,typeof _0x1a3cf6!=_0x5fc18f(0x1d3)?_0x1a3cf6+'':_0x1a3cf6,_0x1ac23f);function _0x4cd971({ref:_0x28476b,..._0x420c37}){const _0x54d4f6=_0x5fc18f,{icon:_0x20c05b,id:_0x28434e,className:_0x1a2c0d,extend:_0x44df46,..._0x51cfa1}=_0x420c37,_0x463bb6=('univerjs-icon\x20univerjs-icon-'+_0x28434e+'\x20'+(_0x1a2c0d||''))[_0x54d4f6(0x1b9)](),_0x39ba13=_0x2b6260[_0x54d4f6(0x239)]('_'+_0x49d055());return _0x272fd6(_0x20c05b,''+_0x28434e,{'defIds':_0x20c05b[_0x54d4f6(0x234)],'idSuffix':_0x39ba13[_0x54d4f6(0x23d)]},{'ref':_0x28476b,'className':_0x463bb6,..._0x51cfa1},_0x44df46);}function _0x272fd6(_0x4d35d3,_0x58de6d,_0x5b4e6b,_0x4ca830,_0x26d298){const _0xbf1884=_0x5fc18f;return _0x2b6260['createElement'](_0x4d35d3[_0xbf1884(0x235)],{'key':_0x58de6d,..._0x2841a7(_0x4d35d3,_0x5b4e6b,_0x26d298),..._0x4ca830},(_0x1aaf02(_0x4d35d3,_0x5b4e6b)[_0xbf1884(0x2ec)]||[])[_0xbf1884(0x246)]((_0x10e4dc,_0x2f2ea0)=>_0x272fd6(_0x10e4dc,_0x58de6d+'-'+_0x4d35d3[_0xbf1884(0x235)]+'-'+_0x2f2ea0,_0x5b4e6b,void 0x0,_0x26d298)));}function _0x2841a7(_0x3a7c20,_0x285186,_0x49ef9a){const _0x5e9b1e=_0x5fc18f,_0x23a7d5={..._0x3a7c20['attrs']};_0x49ef9a!=null&&_0x49ef9a[_0x5e9b1e(0x251)]&&_0x23a7d5['fill']===_0x5e9b1e(0x251)&&(_0x23a7d5[_0x5e9b1e(0x31f)]=_0x49ef9a['colorChannel1']),_0x3a7c20[_0x5e9b1e(0x235)]==='mask'&&_0x23a7d5['id']&&(_0x23a7d5['id']=_0x23a7d5['id']+_0x285186[_0x5e9b1e(0x2f5)]),Object[_0x5e9b1e(0x2a6)](_0x23a7d5)[_0x5e9b1e(0x284)](([_0x13ba1a,_0x26a80d])=>{const _0x3deea4=_0x5e9b1e;_0x13ba1a==='mask'&&typeof _0x26a80d==_0x3deea4(0x1d5)&&(_0x23a7d5[_0x13ba1a]=_0x26a80d['replace'](/url\(#(.*)\)/,_0x3deea4(0x21a)+_0x285186[_0x3deea4(0x2f5)]+')'));});const {defIds:_0x829404}=_0x285186;return!_0x829404||_0x829404['length']===0x0||(_0x3a7c20[_0x5e9b1e(0x235)]===_0x5e9b1e(0x2bc)&&_0x23a7d5[_0x5e9b1e(0x307)]&&(_0x23a7d5[_0x5e9b1e(0x307)]=_0x23a7d5[_0x5e9b1e(0x307)]+_0x285186['idSuffix']),Object[_0x5e9b1e(0x2a6)](_0x23a7d5)[_0x5e9b1e(0x284)](([_0x4f35bb,_0xac3902])=>{const _0x2f65c5=_0x5e9b1e;typeof _0xac3902==_0x2f65c5(0x1d5)&&(_0x23a7d5[_0x4f35bb]=_0xac3902[_0x2f65c5(0x1bc)](/url\(#(.*)\)/,_0x2f65c5(0x21a)+_0x285186['idSuffix']+')'));})),_0x23a7d5;}function _0x1aaf02(_0x2774cc,_0x8374df){const _0x282aad=_0x5fc18f;var _0x21701a;const {defIds:_0xd5a8d2}=_0x8374df;return!_0xd5a8d2||_0xd5a8d2[_0x282aad(0x2ca)]===0x0?_0x2774cc:_0x2774cc[_0x282aad(0x235)]===_0x282aad(0x2d5)&&((_0x21701a=_0x2774cc[_0x282aad(0x2ec)])!=null&&_0x21701a[_0x282aad(0x2ca)])?{..._0x2774cc,'children':_0x2774cc[_0x282aad(0x2ec)][_0x282aad(0x246)](_0x1f411f=>typeof _0x1f411f['attrs']['id']==_0x282aad(0x1d5)&&_0xd5a8d2&&_0xd5a8d2[_0x282aad(0x32c)](_0x1f411f[_0x282aad(0x250)]['id'])?{..._0x1f411f,'attrs':{..._0x1f411f['attrs'],'id':_0x1f411f['attrs']['id']+_0x8374df[_0x282aad(0x2f5)]}}:_0x1f411f)}:_0x2774cc;}function _0x49d055(){const _0x4c7eb4=_0x5fc18f;return Math['random']()['toString'](0x24)[_0x4c7eb4(0x2d6)](0x2,0x8);}_0x4cd971[_0x5fc18f(0x1b6)]=_0x5fc18f(0x29e);const _0xc96114={'tag':_0x5fc18f(0x216),'attrs':{'xmlns':_0x5fc18f(0x2e3),'fill':_0x5fc18f(0x30b),'viewBox':_0x5fc18f(0x268),'width':_0x5fc18f(0x2e7),'height':_0x5fc18f(0x2e7)},'children':[{'tag':_0x5fc18f(0x2b6),'attrs':{'fill':'currentColor','d':_0x5fc18f(0x1f0),'fillRule':_0x5fc18f(0x2b0),'clipRule':_0x5fc18f(0x2b0)}}]},_0x24bc8f=_0x2b6260[_0x5fc18f(0x249)](function(_0x2273f9,_0x2cfc04){const _0x3a48cc=_0x5fc18f;return _0x2b6260[_0x3a48cc(0x1ef)](_0x4cd971,Object[_0x3a48cc(0x1bb)]({},_0x2273f9,{'id':_0x3a48cc(0x209),'ref':_0x2cfc04,'icon':_0xc96114}));});_0x24bc8f[_0x5fc18f(0x1b6)]=_0x5fc18f(0x311);const _0x5d8d14={'tag':_0x5fc18f(0x216),'attrs':{'xmlns':_0x5fc18f(0x2e3),'fill':_0x5fc18f(0x30b),'viewBox':_0x5fc18f(0x268),'width':'1em','height':_0x5fc18f(0x2e7)},'children':[{'tag':_0x5fc18f(0x2b6),'attrs':{'fill':_0x5fc18f(0x23b),'d':_0x5fc18f(0x1f5)}}]},_0xfce891=_0x2b6260[_0x5fc18f(0x249)](function(_0x13b4b6,_0x369ee6){const _0x437788=_0x5fc18f;return _0x2b6260[_0x437788(0x1ef)](_0x4cd971,Object['assign']({},_0x13b4b6,{'id':_0x437788(0x1d6),'ref':_0x369ee6,'icon':_0x5d8d14}));});_0xfce891[_0x5fc18f(0x1b6)]=_0x5fc18f(0x2d2);const _0x102b93={'tag':_0x5fc18f(0x216),'attrs':{'xmlns':_0x5fc18f(0x2e3),'fill':_0x5fc18f(0x30b),'viewBox':_0x5fc18f(0x268),'width':_0x5fc18f(0x2e7),'height':'1em'},'children':[{'tag':_0x5fc18f(0x2b6),'attrs':{'fill':_0x5fc18f(0x23b),'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':_0x5fc18f(0x2b6),'attrs':{'fill':_0x5fc18f(0x23b),'d':_0x5fc18f(0x1f4)}},{'tag':'path','attrs':{'fill':_0x5fc18f(0x23b),'d':_0x5fc18f(0x294),'fillRule':_0x5fc18f(0x2b0),'clipRule':_0x5fc18f(0x2b0)}}]},_0x4d46a9=_0x2b6260['forwardRef'](function(_0x4ac8be,_0x2179ec){const _0x21db66=_0x5fc18f;return _0x2b6260['createElement'](_0x4cd971,Object[_0x21db66(0x1bb)]({},_0x4ac8be,{'id':_0x21db66(0x2ab),'ref':_0x2179ec,'icon':_0x102b93}));});_0x4d46a9[_0x5fc18f(0x1b6)]=_0x5fc18f(0x221);const _0x13f28c={'tag':_0x5fc18f(0x216),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5fc18f(0x30b),'viewBox':_0x5fc18f(0x268),'width':_0x5fc18f(0x2e7),'height':_0x5fc18f(0x2e7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x5fc18f(0x2b6),'attrs':{'stroke':_0x5fc18f(0x23b),'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':_0x5fc18f(0x200),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5fc18f(0x280),'attrs':{'id':_0x5fc18f(0x204)},'children':[{'tag':_0x5fc18f(0x2b6),'attrs':{'fill':_0x5fc18f(0x1fb),'d':_0x5fc18f(0x1f2)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x5a0558=_0x2b6260[_0x5fc18f(0x249)](function(_0x2ad11e,_0x3a6c63){const _0x4e74ea=_0x5fc18f;return _0x2b6260[_0x4e74ea(0x1ef)](_0x4cd971,Object[_0x4e74ea(0x1bb)]({},_0x2ad11e,{'id':_0x4e74ea(0x202),'ref':_0x3a6c63,'icon':_0x13f28c}));});_0x5a0558[_0x5fc18f(0x1b6)]=_0x5fc18f(0x24c);const _0x55837d={'tag':_0x5fc18f(0x216),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5fc18f(0x30b),'viewBox':_0x5fc18f(0x208),'width':'1em','height':_0x5fc18f(0x2e7)},'children':[{'tag':'g','attrs':{'clipPath':_0x5fc18f(0x228)},'children':[{'tag':_0x5fc18f(0x2b6),'attrs':{'stroke':'currentColor','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':_0x5fc18f(0x200),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5fc18f(0x2d5),'attrs':{},'children':[{'tag':_0x5fc18f(0x280),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x5fc18f(0x1fb),'d':'M0\x200H16V16H0z','transform':_0x5fc18f(0x29d)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x16fb81=_0x2b6260[_0x5fc18f(0x249)](function(_0x1eef1c,_0x41813f){const _0x476fc9=_0x5fc18f;return _0x2b6260['createElement'](_0x4cd971,Object[_0x476fc9(0x1bb)]({},_0x1eef1c,{'id':_0x476fc9(0x2db),'ref':_0x41813f,'icon':_0x55837d}));});_0x16fb81[_0x5fc18f(0x1b6)]=_0x5fc18f(0x25d);function _0x2457c4(_0x22b528){const _0x3ef304=_0x5fc18f;var _0x13fe6a,_0x57a5b9;const {mcpCoreConfig:_0x23d3a5,onSave:_0xd01d64,loading:_0x449cff=!0x1,config:_0x12bddc,connectionStatus$:_0x3d1c59,connectionError$:_0x42fc18,currentApiKey$:_0xd9a02a,currentSessionId$:_0x5a56ea}=_0x22b528,_0x107dec=_0x135821[_0x3ef304(0x1c5)](_0xceaa6d[_0x3ef304(0x314)]),_0x3f40d2=_0x135821[_0x3ef304(0x319)](_0x3d1c59,_0x664707[_0x3ef304(0x230)][_0x3ef304(0x286)]),_0x46fe6b=_0x135821[_0x3ef304(0x319)](_0x42fc18,_0x664707[_0x3ef304(0x2c4)][_0x3ef304(0x340)]),_0x5400e1=_0x135821[_0x3ef304(0x319)](_0x5a56ea,''),_0x392f11=_0x135821['useObservable'](_0xd9a02a,''),[_0x2b93b7,_0x41e8ed]=_0x2b6260[_0x3ef304(0x28c)](_0x392f11||''),_0x372d53=!0x0,_0x43800d=_0x12bddc[_0x3ef304(0x1f3)]&&_0x23d3a5[_0x3ef304(0x303)]&&(_0x23d3a5[_0x3ef304(0x303)][_0x3ef304(0x32c)]('univer.plus')||_0x23d3a5['mcpServerUrl'][_0x3ef304(0x32c)](_0x3ef304(0x206))),_0x288389=(_0x13fe6a=_0x23d3a5[_0x3ef304(0x303)])==null?void 0x0:_0x13fe6a[_0x3ef304(0x32c)](_0x3ef304(0x30a)),_0x974d9f=(_0x57a5b9=_0x23d3a5[_0x3ef304(0x303)])==null?void 0x0:_0x57a5b9[_0x3ef304(0x32c)](_0x3ef304(0x206)),_0x3b92f6=_0x288389?_0x3ef304(0x282):_0x3ef304(0x26b),_0x228e4f=_0x12bddc[_0x3ef304(0x1f3)]&&(_0x288389||_0x974d9f),[_0x2d2d9b,_0x499907]=_0x2b6260['useState'](!_0x2b93b7['trim']()),_0x52c494=(_0x10e9eb,_0x3ef55a)=>{const _0x4e53a1=_0x3ef304;if(_0x3ef55a===_0x664707[_0x4e53a1(0x2c4)][_0x4e53a1(0x258)])return _0x4e53a1(0x336);switch(_0x10e9eb){case _0x664707[_0x4e53a1(0x230)]['CONNECTED']:return _0x4e53a1(0x337);case _0x664707[_0x4e53a1(0x230)][_0x4e53a1(0x300)]:case _0x664707[_0x4e53a1(0x230)][_0x4e53a1(0x2b7)]:return _0x4e53a1(0x302);case _0x664707[_0x4e53a1(0x230)][_0x4e53a1(0x232)]:return _0x4e53a1(0x336);default:return _0x4e53a1(0x344);}},_0x1a1cb8=(_0x25114a,_0x5d9b7d)=>{const _0x3f1bfe=_0x3ef304;if(_0x5d9b7d===_0x664707[_0x3f1bfe(0x2c4)][_0x3f1bfe(0x258)])return _0x3f1bfe(0x1fc);switch(_0x25114a){case _0x664707[_0x3f1bfe(0x230)][_0x3f1bfe(0x2d0)]:return _0x3f1bfe(0x279);case _0x664707[_0x3f1bfe(0x230)][_0x3f1bfe(0x300)]:case _0x664707[_0x3f1bfe(0x230)][_0x3f1bfe(0x2b7)]:return'univer-bg-blue-500';case _0x664707['MCPConnectionStatus'][_0x3f1bfe(0x232)]:return'univer-bg-red-500';default:return _0x3f1bfe(0x247);}},_0x280ca1=_0x458e31=>{const _0x226bb1=_0x3ef304;switch(_0x458e31){case _0x664707[_0x226bb1(0x230)]['CONNECTED']:return _0x107dec['t'](_0x226bb1(0x2b9));case _0x664707[_0x226bb1(0x230)][_0x226bb1(0x300)]:return _0x107dec['t'](_0x226bb1(0x30e));case _0x664707['MCPConnectionStatus'][_0x226bb1(0x232)]:return _0x107dec['t'](_0x226bb1(0x339));case _0x664707[_0x226bb1(0x230)][_0x226bb1(0x2b7)]:return _0x107dec['t'](_0x226bb1(0x21d));default:return _0x107dec['t'](_0x226bb1(0x29b));}},_0x71d224=_0x561bf2=>{const _0x219ae1=_0x3ef304;switch(_0x561bf2){case _0x664707['MCPConnectionError'][_0x219ae1(0x258)]:return _0x107dec['t'](_0x219ae1(0x2f4));case _0x664707[_0x219ae1(0x2c4)][_0x219ae1(0x2da)]:return _0x107dec['t'](_0x219ae1(0x260));case _0x664707[_0x219ae1(0x2c4)][_0x219ae1(0x328)]:return _0x107dec['t'](_0x219ae1(0x2ef));case _0x664707[_0x219ae1(0x2c4)]['MAX_RETRIES_EXCEEDED']:return _0x107dec['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x13d95f=_0x2b6260[_0x3ef304(0x2fb)](()=>{const _0x1252bc=_0x3ef304,_0x16c1cf={..._0x23d3a5,'apiKey':_0x2b93b7[_0x1252bc(0x1b9)](),'enableAuth':_0x372d53};_0xd01d64(_0x16c1cf);},[_0x23d3a5,_0x2b93b7,_0x372d53,_0xd01d64]),_0x218796=_0x2b93b7['trim']()[_0x3ef304(0x2ca)]>0x0;return _0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x2c3),'children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x1f8),'children':_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x1ff),'children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x262),'children':_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x2b2),{'className':_0x3ef304(0x226),'children':'⚙'})}),_0x1fa4c5['jsx'](_0x3ef304(0x1cc),{'children':_0x1fa4c5[_0x3ef304(0x291)]('p',{'className':_0x3ef304(0x2eb),'children':_0x107dec['t']('mcpConfig.description')})})]})}),_0x1fa4c5['jsxs']('div',{'className':_0x3ef304(0x31d),'children':[_0x1fa4c5[_0x3ef304(0x291)]('div',{'className':_0x594aee[_0x3ef304(0x304)](_0x3ef304(0x2d8),_0x52c494(_0x3f40d2,_0x46fe6b)),'children':_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x594aee[_0x3ef304(0x304)](_0x3ef304(0x22d),_0x1a1cb8(_0x3f40d2,_0x46fe6b))}),_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x2b2),{'className':_0x3ef304(0x1fd),'children':_0x280ca1(_0x3f40d2)})]})}),_0x46fe6b!==_0x664707[_0x3ef304(0x2c4)]['NONE']&&(_0x3f40d2===_0x664707[_0x3ef304(0x230)][_0x3ef304(0x232)]||_0x46fe6b===_0x664707[_0x3ef304(0x2c4)][_0x3ef304(0x258)])&&_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x1cd),'children':_0x1fa4c5[_0x3ef304(0x2bb)]('div',{'className':_0x3ef304(0x2c8),'children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x2b2),{'className':_0x3ef304(0x25e),'children':'⚠️'}),_0x1fa4c5[_0x3ef304(0x291)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x71d224(_0x46fe6b)})]})})]}),_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x1fa4c5['jsxs'](_0x3ef304(0x1cc),{'className':_0x3ef304(0x20a),'children':[_0x1fa4c5[_0x3ef304(0x2bb)]('div',{'className':_0x3ef304(0x31e),'children':[_0x1fa4c5[_0x3ef304(0x2bb)]('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x2b2),{'children':'🔑'}),'\x20',_0x107dec['t'](_0x3ef304(0x292)),_0x1fa4c5[_0x3ef304(0x291)]('span',{'className':_0x3ef304(0x2c9),'children':'*'}),_0x43800d&&_0x1fa4c5[_0x3ef304(0x291)]('a',{'className':_0x3ef304(0x1c9),'title':_0x107dec['t'](_0x3ef304(0x27d)),'role':'button','onClick':()=>_0x499907(!0x0),'children':_0x1fa4c5[_0x3ef304(0x291)](_0x4d46a9,{})})]}),_0x1fa4c5[_0x3ef304(0x291)](_0x594aee['Input'],{'type':_0x3ef304(0x2cc),'placeholder':_0x107dec['t'](_0x3ef304(0x30c)),'value':_0x2b93b7,'disabled':_0x449cff,'autoComplete':_0x3ef304(0x2bf),'onChange':_0x41e8ed}),_0x1fa4c5[_0x3ef304(0x291)]('p',{'className':_0x3ef304(0x2f6),'children':_0x107dec['t']('mcpConfig.apiKeyHint')})]}),_0x43800d&&_0x2d2d9b&&_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x1d2),'children':[_0x1fa4c5[_0x3ef304(0x291)]('a',{'className':_0x3ef304(0x24f),'role':'button','onClick':()=>_0x499907(!0x1),'children':_0x1fa4c5[_0x3ef304(0x291)](_0xfce891,{'className':_0x3ef304(0x2e9)})}),_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x252),'children':_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x2b2),{'className':_0x3ef304(0x20f),'children':'🚀'})}),_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x327),'children':[_0x1fa4c5[_0x3ef304(0x291)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x107dec['t'](_0x3ef304(0x27d))}),_0x1fa4c5['jsx']('p',{'className':_0x3ef304(0x1cf),'children':_0x107dec['t']('mcpConfig.apiApplyInfo.description')}),_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x29f),'children':_0x228e4f&&_0x1fa4c5[_0x3ef304(0x2bb)]('a',{'className':_0x3ef304(0x326),'href':_0x3b92f6,'target':'_blank','rel':_0x3ef304(0x332),'children':[_0x1fa4c5[_0x3ef304(0x291)]('span',{'children':'🤖'}),_0x107dec['t'](_0x3ef304(0x30f)),_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x2b2),{'className':_0x3ef304(0x256),'children':'↗'})]})}),_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x1df),'children':['✨','\x20',_0x107dec['t'](_0x3ef304(0x2f9))]})]})]})]}),_0x12bddc[_0x3ef304(0x1f3)]&&_0x1fa4c5[_0x3ef304(0x2bb)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1fa4c5[_0x3ef304(0x2bb)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x1fa4c5[_0x3ef304(0x291)]('span',{'children':'🔗'}),'\x20',_0x107dec['t']('mcpConfig.connectionInfo')]}),_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':'univer-space-y-4','children':[_0x1fa4c5[_0x3ef304(0x2bb)]('div',{'className':_0x3ef304(0x31c),'children':[_0x1fa4c5[_0x3ef304(0x291)]('p',{'className':_0x3ef304(0x236),'children':_0x107dec['t'](_0x3ef304(0x26c))}),_0x1fa4c5[_0x3ef304(0x2bb)]('div',{'className':_0x3ef304(0x31e),'children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x33f),'children':_0x107dec['t'](_0x3ef304(0x318))}),_0x1fa4c5['jsxs'](_0x3ef304(0x1cc),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa4c5[_0x3ef304(0x291)]('span',{'className':_0x3ef304(0x290),'children':'1'}),_0x107dec['t'](_0x3ef304(0x2ee))]}),_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x224),'children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x2b2),{'className':_0x3ef304(0x290),'children':'2'}),_0x107dec['t']('mcpConfig.configStep2')]}),_0x1fa4c5['jsxs'](_0x3ef304(0x1cc),{'className':_0x3ef304(0x224),'children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x2b2),{'className':_0x3ef304(0x290),'children':'3'}),_0x107dec['t'](_0x3ef304(0x1c7))]})]})]})]}),_0x1fa4c5['jsxs']('div',{'className':'univer-space-y-2','children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x33f),'children':_0x3ef304(0x257)}),_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x23e),'children':_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x2a9),{'className':_0x3ef304(0x24a),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x3ef304(0x293)+(_0x5400e1||_0x3ef304(0x2cd)),'type':'http','headers':{'Authorization':_0x3ef304(0x2c0)+(_0x2b93b7||'<API_KEY>')}}}},null,0x2)})})]}),_0x1fa4c5['jsxs']('div',{'className':_0x3ef304(0x31c),'children':[_0x1fa4c5[_0x3ef304(0x291)]('div',{'className':_0x3ef304(0x33f),'children':_0x107dec['t']('mcpConfig.configParameters')}),_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x31e),'children':[_0x1fa4c5[_0x3ef304(0x2bb)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x245)}),_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x1eb),'children':[_0x1fa4c5['jsx'](_0x3ef304(0x1cc),{'className':_0x3ef304(0x335),'children':_0x3ef304(0x2e6)}),_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x107dec['t'](_0x3ef304(0x1ed))})]})]}),_0x1fa4c5[_0x3ef304(0x2bb)]('div',{'className':_0x3ef304(0x333),'children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x1eb),'children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x335),'children':_0x3ef304(0x2d9)}),_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x2f6),'children':_0x107dec['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x1fa4c5[_0x3ef304(0x291)](_0x594aee[_0x3ef304(0x283)],{'onClick':_0x13d95f,'disabled':!_0x218796||_0x449cff,'className':_0x3ef304(0x309),'children':_0x449cff?_0x1fa4c5['jsxs'](_0x3ef304(0x2b2),{'className':_0x3ef304(0x224),'children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x2b2),{'children':'⟲'}),_0x107dec['t']('mcpConfig.saving')]}):_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x2b2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa4c5['jsx'](_0x24bc8f,{}),_0x107dec['t']('mcpConfig.save')]})}),_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x330),'children':_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x2f3),'children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x2b2),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x1fa4c5['jsxs']('div',{'className':_0x3ef304(0x2ed),'children':[_0x1fa4c5[_0x3ef304(0x291)](_0x3ef304(0x1cc),{'className':_0x3ef304(0x22a),'children':_0x3ef304(0x217)}),_0x1fa4c5[_0x3ef304(0x2bb)](_0x3ef304(0x1cc),{'children':['•',_0x107dec['t'](_0x3ef304(0x281))]}),_0x1fa4c5[_0x3ef304(0x2bb)]('div',{'children':['•',_0x107dec['t'](_0x3ef304(0x265))]})]})]})})]})})]});}const _0x14db66=_0x5fc18f(0x203),_0x1718a0={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x5ec244=Object['getOwnPropertyDescriptor'],_0x529222=(_0x371934,_0xf22efe,_0x1c5b3e,_0x3ec706)=>{const _0x251780=_0x5fc18f;for(var _0x5ef9d9=_0x3ec706>0x1?void 0x0:_0x3ec706?_0x5ec244(_0xf22efe,_0x1c5b3e):_0xf22efe,_0x4e7df3=_0x371934[_0x251780(0x2ca)]-0x1,_0x50162f;_0x4e7df3>=0x0;_0x4e7df3--)(_0x50162f=_0x371934[_0x4e7df3])&&(_0x5ef9d9=_0x50162f(_0x5ef9d9)||_0x5ef9d9);return _0x5ef9d9;},_0x1b6a6e=(_0x213a7c,_0x1fe38a)=>(_0x37669e,_0x1cbe53)=>_0x1fe38a(_0x37669e,_0x1cbe53,_0x213a7c);const _0x1f56dd=_0x5fc18f(0x2c1),_0x27436d=_0x5fc18f(0x1b0);_0xebb147[_0x5fc18f(0x273)]=class extends _0xceaa6d[_0x5fc18f(0x308)]{constructor(_0x346d26,_0x5b5e92,_0x3d6e7a,_0x19de6a,_0x11a992,_0x57343e,_0x119a62,_0x5e13eb,_0x20de01,_0x5ab67c){const _0x36d0d9=_0x5fc18f;super(),_0xdc67f(this,'_loading$',new _0x43cf9a[(_0x36d0d9(0x2ae))](!0x1)),_0xdc67f(this,_0x36d0d9(0x1c4),new _0x43cf9a[(_0x36d0d9(0x2ae))]({})),_0xdc67f(this,_0x36d0d9(0x1f7),new _0x43cf9a[(_0x36d0d9(0x2ae))]({})),_0xdc67f(this,'_apiKey$',new _0x43cf9a[(_0x36d0d9(0x2ae))]('')),_0xdc67f(this,_0x36d0d9(0x1c1),async _0x1b8fa0=>{const _0x50a715=_0x36d0d9;var _0x12e4b9,_0x44199a;this[_0x50a715(0x27f)][_0x50a715(0x229)](!0x0);try{const _0xad857e=await this[_0x50a715(0x2f1)](_0x1b8fa0);if(!_0xad857e[_0x50a715(0x2fe)]){this[_0x50a715(0x1f6)]['show']({'type':_0x594aee['MessageType'][_0x50a715(0x2a8)],'content':_0xad857e[_0x50a715(0x29c)]||this[_0x50a715(0x22f)]['t'](_0x50a715(0x22e))});return;}_0x1b8fa0['apiKey']?await this[_0x50a715(0x2f0)][_0x50a715(0x1ea)](_0x1f56dd,_0x1b8fa0[_0x50a715(0x2fd)][_0x50a715(0x1b9)]()):await this[_0x50a715(0x2f0)][_0x50a715(0x20e)](_0x1f56dd),this[_0x50a715(0x1dd)][_0x50a715(0x229)](((_0x12e4b9=_0x1b8fa0[_0x50a715(0x2fd)])==null?void 0x0:_0x12e4b9['trim']())||''),this[_0x50a715(0x25f)]['__setCustomHeaders']({'Authorization':_0x50a715(0x2c0)+((_0x44199a=_0x1b8fa0[_0x50a715(0x2fd)])==null?void 0x0:_0x44199a['trim']())}),this[_0x50a715(0x1f6)][_0x50a715(0x1be)]({'type':_0x594aee[_0x50a715(0x315)][_0x50a715(0x2aa)],'content':this[_0x50a715(0x22f)]['t'](_0x50a715(0x288))}),setTimeout(()=>{const _0x2df09b=_0x50a715;this[_0x2df09b(0x1b3)][_0x2df09b(0x1de)](_0x27436d);},0x320);}catch(_0x7bae70){this[_0x50a715(0x21c)][_0x50a715(0x32a)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x7bae70),this[_0x50a715(0x1f6)][_0x50a715(0x1be)]({'type':_0x594aee['MessageType'][_0x50a715(0x2a8)],'content':this[_0x50a715(0x22f)]['t'](_0x50a715(0x1ca))});}finally{this[_0x50a715(0x27f)][_0x50a715(0x229)](!0x1);}}),(this[_0x36d0d9(0x1f9)]=_0x346d26,this['_uiPartsService']=_0x5b5e92,this['_configService']=_0x3d6e7a,this[_0x36d0d9(0x2f0)]=_0x19de6a,this['_dialogService']=_0x11a992,this['_messageService']=_0x57343e,this[_0x36d0d9(0x31b)]=_0x119a62,this[_0x36d0d9(0x22f)]=_0x5e13eb,this[_0x36d0d9(0x21c)]=_0x20de01,this[_0x36d0d9(0x25f)]=_0x5ab67c,this[_0x36d0d9(0x259)](),this[_0x36d0d9(0x2a7)](),this['_registerComponent']());}[_0x5fc18f(0x27e)](){const _0x29df8c=_0x5fc18f,_0x40a6c1=this['_configService'][_0x29df8c(0x2f8)](_0x14db66);_0x40a6c1!=null&&_0x40a6c1['showDeveloperTools']&&this[_0x29df8c(0x1b3)][_0x29df8c(0x2a5)]({'id':_0x27436d,'title':{'title':this[_0x29df8c(0x22f)]['t']('mcpConfig.title')},'children':{'label':_0x29df8c(0x248)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x565020=_0x29df8c;this[_0x565020(0x1b3)][_0x565020(0x1de)](_0x27436d);}});}['getCurrentConfig'](){const _0x3cc149=_0x5fc18f;return this[_0x3cc149(0x1c4)][_0x3cc149(0x32b)];}[_0x5fc18f(0x27a)](){const _0x49251e=_0x5fc18f;this[_0x49251e(0x1b1)](this[_0x49251e(0x31b)][_0x49251e(0x222)](_0x49251e(0x248),this[_0x49251e(0x2b3)]()));}[_0x5fc18f(0x2b3)](){const _0x11b67a=_0x5fc18f;return _0x135821[_0x11b67a(0x1d4)](()=>{const _0x44ed69=_0x11b67a;var _0x2ba95b,_0x1db922,_0x457e02;return _0x1fa4c5['jsx'](_0x2457c4,{'config':this[_0x44ed69(0x1f7)][_0x44ed69(0x32b)],'mcpCoreConfig':this[_0x44ed69(0x1c4)][_0x44ed69(0x32b)],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x44ed69(0x27f)][_0x44ed69(0x32b)],'connectionStatus$':(_0x2ba95b=this['_mcpConnectionController'])==null?void 0x0:_0x2ba95b[_0x44ed69(0x1c3)],'connectionError$':(_0x1db922=this[_0x44ed69(0x25f)])==null?void 0x0:_0x1db922[_0x44ed69(0x237)],'currentSessionId$':(_0x457e02=this[_0x44ed69(0x25f)])==null?void 0x0:_0x457e02[_0x44ed69(0x254)]});},this['_injector']);}[_0x5fc18f(0x259)](){const _0x28fbc3=_0x5fc18f;this[_0x28fbc3(0x1b1)](this[_0x28fbc3(0x2f2)]['subscribeConfigValue$'](_0x664707[_0x28fbc3(0x2cf)])['subscribe'](_0x4ef42f=>{const _0x343648=_0x28fbc3;this[_0x343648(0x1c4)]['next'](_0x4ef42f||{});}));const _0x16811d=this[_0x28fbc3(0x2f2)][_0x28fbc3(0x2f8)](_0x664707['MCP_PLUGIN_CONFIG_KEY']);this['_mcpCoreConfig$']['next'](_0x16811d||{}),this[_0x28fbc3(0x1b1)](this[_0x28fbc3(0x2f2)][_0x28fbc3(0x1ae)](_0x14db66)[_0x28fbc3(0x1dc)](_0x969a73=>{const _0xf3b76a=_0x28fbc3;this[_0xf3b76a(0x1f7)][_0xf3b76a(0x229)](_0x969a73||{});}));const _0x28c02f=this[_0x28fbc3(0x2f2)][_0x28fbc3(0x2f8)](_0x14db66);this[_0x28fbc3(0x1f7)][_0x28fbc3(0x229)](_0x28c02f||{});}async['_loadStoredApiKey'](){const _0x3273e7=_0x5fc18f,_0x100113=this[_0x3273e7(0x2f2)][_0x3273e7(0x2f8)](_0x14db66);if(!(_0x100113!=null&&_0x100113[_0x3273e7(0x1f3)]))return;const _0x4877d1=await this['_localStorageService'][_0x3273e7(0x343)](_0x1f56dd);_0x4877d1&&(this[_0x3273e7(0x25f)][_0x3273e7(0x220)]({'Authorization':_0x3273e7(0x2c0)+_0x4877d1}),this['_apiKey$'][_0x3273e7(0x229)](_0x4877d1));}async[_0x5fc18f(0x2f1)](_0x167fba){const _0x17eb1b=_0x5fc18f;if(!_0x167fba[_0x17eb1b(0x2fd)]||_0x167fba[_0x17eb1b(0x2fd)][_0x17eb1b(0x1b9)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x17eb1b(0x1fa))};if(_0x167fba['apiKey'][_0x17eb1b(0x1b9)]()[_0x17eb1b(0x2ca)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x17eb1b(0x22f)]['t'](_0x17eb1b(0x2de))};try{const _0x16d978=await this[_0x17eb1b(0x1f9)][_0x17eb1b(0x28b)](_0x664707[_0x17eb1b(0x2ff)])[_0x17eb1b(0x1c6)](_0x167fba['apiKey'][_0x17eb1b(0x1b9)]());return _0x16d978[_0x17eb1b(0x2fe)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x16d978[_0x17eb1b(0x32a)]||this['_localeService']['t'](_0x17eb1b(0x322))};}catch(_0x20c25b){return console['warn'](_0x17eb1b(0x20c),_0x20c25b),{'isValid':!0x0};}}},_0xebb147[_0x5fc18f(0x273)]=_0x529222([_0x1b6a6e(0x0,_0xceaa6d[_0x5fc18f(0x1e8)](_0xceaa6d[_0x5fc18f(0x2e2)])),_0x1b6a6e(0x1,_0x135821[_0x5fc18f(0x2be)]),_0x1b6a6e(0x2,_0xceaa6d[_0x5fc18f(0x305)]),_0x1b6a6e(0x3,_0xceaa6d[_0x5fc18f(0x2a0)]),_0x1b6a6e(0x4,_0x135821[_0x5fc18f(0x255)]),_0x1b6a6e(0x5,_0x135821[_0x5fc18f(0x26e)]),_0x1b6a6e(0x6,_0xceaa6d[_0x5fc18f(0x1e8)](_0x135821[_0x5fc18f(0x2d4)])),_0x1b6a6e(0x7,_0xceaa6d[_0x5fc18f(0x1e8)](_0xceaa6d[_0x5fc18f(0x314)])),_0x1b6a6e(0x8,_0xceaa6d['ILogService']),_0x1b6a6e(0x9,_0xceaa6d['Inject'](_0x664707[_0x5fc18f(0x2ff)]))],_0xebb147[_0x5fc18f(0x273)]);const _0x11370c={'id':'mcp-ui.command.openConfigPanel','type':_0xceaa6d['CommandType']['COMMAND'],'handler':async(_0x14a20e,_0x2d75ce)=>(_0x14a20e[_0x5fc18f(0x28b)](_0xebb147[_0x5fc18f(0x273)])[_0x5fc18f(0x27e)](),!0x0)};function _0x453722(_0x47d492,_0x2033fa){const _0x1265a1=_0x5fc18f;switch(_0x47d492){case _0x664707['MCPConnectionStatus']['DISCONNECTED']:return _0x1265a1(0x244);case _0x664707[_0x1265a1(0x230)][_0x1265a1(0x300)]:return _0x1265a1(0x285);case _0x664707['MCPConnectionStatus'][_0x1265a1(0x2d0)]:return _0x1265a1(0x205);case _0x664707[_0x1265a1(0x230)][_0x1265a1(0x232)]:switch(_0x2033fa){case _0x664707[_0x1265a1(0x2c4)][_0x1265a1(0x258)]:return _0x1265a1(0x24d);case _0x664707[_0x1265a1(0x2c4)][_0x1265a1(0x2da)]:return _0x1265a1(0x25a);case _0x664707[_0x1265a1(0x2c4)][_0x1265a1(0x328)]:return _0x1265a1(0x276);case _0x664707['MCPConnectionError'][_0x1265a1(0x324)]:return _0x1265a1(0x33b);default:return _0x1265a1(0x1d7);}case _0x664707[_0x1265a1(0x230)][_0x1265a1(0x2b7)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function _0x2b2bf1(_0xa21775,_0x21f7e3,_0x4bd328,_0x3b972c=!0x0){const _0x465979=_0x5fc18f,_0x5806d7=_0x453722(_0xa21775,_0x21f7e3),_0xb7263d=_0x4bd328['t'](_0x5806d7);return _0x3b972c?_0xa21775===_0x664707[_0x465979(0x230)]['DISCONNECTED']&&_0x21f7e3===_0x664707[_0x465979(0x2c4)][_0x465979(0x258)]?_0xb7263d+_0x465979(0x295)+_0x4bd328['t'](_0x465979(0x231)):_0xa21775===_0x664707[_0x465979(0x230)][_0x465979(0x2d0)]?''+_0xb7263d:_0xa21775===_0x664707['MCPConnectionStatus'][_0x465979(0x286)]||_0xa21775===_0x664707[_0x465979(0x230)]['FAILED']?_0xb7263d+_0x465979(0x295)+_0x4bd328['t'](_0x465979(0x2ac)):_0xb7263d:_0xb7263d;}function _0xa2a0d9(_0x3232b8){const _0x577eac=_0x5fc18f;switch(_0x3232b8){case _0x664707[_0x577eac(0x230)][_0x577eac(0x2d0)]:return _0x577eac(0x1d8);case _0x664707[_0x577eac(0x230)][_0x577eac(0x300)]:case _0x664707['MCPConnectionStatus']['RETRYING']:return _0x577eac(0x225);case _0x664707[_0x577eac(0x230)][_0x577eac(0x232)]:case _0x664707[_0x577eac(0x230)][_0x577eac(0x286)]:return _0x577eac(0x2c9);default:return _0x577eac(0x2e1);}}function _0x4008b3(_0x38c4be){const _0x4441cf=_0x5fc18f,{status$:_0x120857,error$:_0x2fc95a,onConfigure:_0x3cefff,showClickable:_0x5e8069=!0x0}=_0x38c4be,_0x3ca865=_0x135821[_0x4441cf(0x319)](_0x120857,_0x664707[_0x4441cf(0x230)][_0x4441cf(0x286)]),_0x24f9a2=_0x135821['useObservable'](_0x2fc95a,_0x664707[_0x4441cf(0x2c4)][_0x4441cf(0x340)]),_0x5ecbb2=_0x135821['useDependency'](_0xceaa6d[_0x4441cf(0x314)]),_0x4d8fd6=_0x3ca865===_0x664707['MCPConnectionStatus'][_0x4441cf(0x2d0)];_0x3ca865===_0x664707[_0x4441cf(0x230)][_0x4441cf(0x300)]||_0x664707[_0x4441cf(0x230)][_0x4441cf(0x2b7)];const _0x41d8c7=_0x5ecbb2['t'](_0x453722(_0x3ca865,_0x24f9a2)),_0xc8973e=_0x2b2bf1(_0x3ca865,_0x24f9a2,_0x5ecbb2,_0x5e8069),_0x2c222c=_0xa2a0d9(_0x3ca865),_0x4ac874=_0x4d8fd6?_0x1fa4c5[_0x4441cf(0x291)](_0x16fb81,{}):_0x1fa4c5[_0x4441cf(0x291)](_0x5a0558,{}),_0x8654b7=_0x2b6260[_0x4441cf(0x2fb)](()=>{_0x5e8069&&_0x3cefff&&_0x3cefff();},[_0x5e8069,_0x3cefff]);function _0x48f1cb(){const _0x5d8ae2=_0x4441cf;return _0x1fa4c5[_0x5d8ae2(0x2bb)](_0x5d8ae2(0x1cc),{'className':_0x594aee['clsx']('univer-flex\x20univer-items-center',_0x5e8069&&_0x3cefff&&_0x5d8ae2(0x2df)),'role':'button','onClick':_0x5e8069&&_0x3cefff?_0x8654b7:void 0x0,'children':[_0x1fa4c5['jsx'](_0x5d8ae2(0x1cc),{'className':_0x594aee[_0x5d8ae2(0x304)](_0x5d8ae2(0x21b),_0x2c222c),'children':_0x4ac874}),_0x1fa4c5[_0x5d8ae2(0x291)](_0x5d8ae2(0x1cc),{'className':_0x5d8ae2(0x1ad),'children':_0x41d8c7})]});}return _0x1fa4c5[_0x4441cf(0x291)](_0x594aee[_0x4441cf(0x1db)],{'title':_0xc8973e,'placement':_0x4441cf(0x243),'children':_0x48f1cb()});}var _0x243399=Object[_0x5fc18f(0x321)],_0x55ad8b=(_0x456a68,_0x453738,_0x34507c,_0x1d4198)=>{const _0x554df2=_0x5fc18f;for(var _0x3be4a3=_0x1d4198>0x1?void 0x0:_0x1d4198?_0x243399(_0x453738,_0x34507c):_0x453738,_0x4ac0d9=_0x456a68[_0x554df2(0x2ca)]-0x1,_0x4d320f;_0x4ac0d9>=0x0;_0x4ac0d9--)(_0x4d320f=_0x456a68[_0x4ac0d9])&&(_0x3be4a3=_0x4d320f(_0x3be4a3)||_0x3be4a3);return _0x3be4a3;},_0x4112ad=(_0x596dfc,_0x37fa63)=>(_0x53c5eb,_0x2413c7)=>_0x37fa63(_0x53c5eb,_0x2413c7,_0x596dfc);_0xebb147[_0x5fc18f(0x1d1)]=class extends _0xceaa6d[_0x5fc18f(0x308)]{constructor(_0x197e7e,_0x5eecb2,_0x55872f,_0xc63fbd){const _0xfd2950=_0x5fc18f;super(),this[_0xfd2950(0x1f9)]=_0x197e7e,this[_0xfd2950(0x345)]=_0x5eecb2,this['_uiPartsService']=_0x55872f,this[_0xfd2950(0x2f2)]=_0xc63fbd,this['_initAutoConnect'](),this[_0xfd2950(0x263)]();}[_0x5fc18f(0x301)](){const _0x2851d1=_0x5fc18f,_0x5d6692=this[_0x2851d1(0x2f2)][_0x2851d1(0x2f8)](_0x14db66);_0x5d6692!=null&&_0x5d6692[_0x2851d1(0x1f3)]&&(this[_0x2851d1(0x345)][_0x2851d1(0x32e)]=!0x1);}[_0x5fc18f(0x263)](){const _0x1628d4=_0x5fc18f,_0x2c4aaf=this['_configService'][_0x1628d4(0x2f8)](_0x14db66);(_0x2c4aaf==null?void 0x0:_0x2c4aaf[_0x1628d4(0x1c2)])!==!0x1&&this[_0x1628d4(0x1b1)](this[_0x1628d4(0x1c8)][_0x1628d4(0x28f)](_0x135821[_0x1628d4(0x21f)][_0x1628d4(0x20d)],()=>{const _0x1b97d3=_0x1628d4;var _0x208a7e;return _0x135821[_0x1b97d3(0x1d4)](_0x2dde05({'status$':this[_0x1b97d3(0x345)][_0x1b97d3(0x1c3)],'error$':this[_0x1b97d3(0x345)]['connectionError$'],'onConfigure':()=>this[_0x1b97d3(0x1b8)](),'showClickable':(_0x208a7e=_0x2c4aaf==null?void 0x0:_0x2c4aaf[_0x1b97d3(0x1f3)])!=null?_0x208a7e:!0x1}),this[_0x1b97d3(0x1f9)]);}));}[_0x5fc18f(0x1b8)](){const _0x2ed122=_0x5fc18f;this[_0x2ed122(0x1f9)][_0x2ed122(0x28b)](_0xebb147[_0x2ed122(0x273)])[_0x2ed122(0x27e)]();}},_0xebb147['MCPConnectionUIController']=_0x55ad8b([_0x4112ad(0x0,_0xceaa6d[_0x5fc18f(0x1e8)](_0xceaa6d[_0x5fc18f(0x2e2)])),_0x4112ad(0x1,_0xceaa6d[_0x5fc18f(0x1e8)](_0x664707[_0x5fc18f(0x2ff)])),_0x4112ad(0x2,_0x135821[_0x5fc18f(0x2be)]),_0x4112ad(0x3,_0xceaa6d['IConfigService'])],_0xebb147[_0x5fc18f(0x1d1)]);function _0x2dde05(_0x8f3ead){const {status$:_0x5d3825,error$:_0x4f501c,onConfigure:_0xbe9204,showClickable:_0x45013d}=_0x8f3ead;return function(){const _0x13be2a=_0x20c7;return _0x1fa4c5[_0x13be2a(0x291)](_0x4008b3,{'status$':_0x5d3825,'error$':_0x4f501c,'onConfigure':_0xbe9204,'showClickable':_0x45013d});};}function _0x344713(_0x3db022){const _0x12c646=_0x5fc18f;return{'id':_0x11370c['id'],'type':_0x135821[_0x12c646(0x2ce)][_0x12c646(0x2e5)],'icon':_0x12c646(0x32f),'title':_0x12c646(0x306),'tooltip':'mcpConfig.title'};}const _0x1b9431={[_0x135821[_0x5fc18f(0x2b5)][_0x5fc18f(0x28d)]]:{[_0x11370c['id']]:{'order':0xa,'menuItemFactory':_0x344713}}};var _0x13d01e=Object['getOwnPropertyDescriptor'],_0x973a14=(_0x2cd6ee,_0x4d4ef2,_0x423f39,_0x44cb2d)=>{for(var _0x29a6b8=_0x44cb2d>0x1?void 0x0:_0x44cb2d?_0x13d01e(_0x4d4ef2,_0x423f39):_0x4d4ef2,_0x58865b=_0x2cd6ee['length']-0x1,_0x1fcc12;_0x58865b>=0x0;_0x58865b--)(_0x1fcc12=_0x2cd6ee[_0x58865b])&&(_0x29a6b8=_0x1fcc12(_0x29a6b8)||_0x29a6b8);return _0x29a6b8;},_0x7aa21e=(_0xfb38d0,_0x14bec6)=>(_0x2cb29e,_0x43999a)=>_0x14bec6(_0x2cb29e,_0x43999a,_0xfb38d0);_0xebb147['MCPUIMenuController']=class extends _0xceaa6d[_0x5fc18f(0x308)]{constructor(_0x4288aa,_0x92fcda){const _0x37659b=_0x5fc18f;super(),this[_0x37659b(0x1d9)]=_0x4288aa,this[_0x37659b(0x297)]=_0x92fcda,this[_0x37659b(0x33d)](),this[_0x37659b(0x2d3)]();}[_0x5fc18f(0x33d)](){const _0x5b1958=_0x5fc18f;[_0x11370c][_0x5b1958(0x284)](_0x316f91=>{const _0x15130d=_0x5b1958;this[_0x15130d(0x1b1)](this[_0x15130d(0x1d9)][_0x15130d(0x320)](_0x316f91));});}[_0x5fc18f(0x2d3)](){const _0xbf711=_0x5fc18f;this[_0xbf711(0x297)][_0xbf711(0x33e)](_0x1b9431);}},_0xebb147[_0x5fc18f(0x331)]=_0x973a14([_0x7aa21e(0x0,_0xceaa6d[_0x5fc18f(0x310)]),_0x7aa21e(0x1,_0x135821[_0x5fc18f(0x1b4)])],_0xebb147[_0x5fc18f(0x331)]);const _0x2a89ec={'mcpStatus':{'disconnected':_0x5fc18f(0x261),'connecting':_0x5fc18f(0x2dd),'connected':_0x5fc18f(0x30d),'failed':_0x5fc18f(0x269),'retrying':_0x5fc18f(0x215),'unknown':_0x5fc18f(0x2af),'unauthorized':_0x5fc18f(0x2ba),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5fc18f(0x317),'maxRetriesExceeded':_0x5fc18f(0x1fe),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5fc18f(0x278)},'mcpConfig':{'title':_0x5fc18f(0x257),'description':_0x5fc18f(0x223),'apiKey':_0x5fc18f(0x313),'apiKeyPlaceholder':_0x5fc18f(0x274),'apiKeyHint':_0x5fc18f(0x33a),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x5fc18f(0x2fc),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5fc18f(0x1e6),'configInstructions':_0x5fc18f(0x2cb),'configStepTitle':_0x5fc18f(0x2a3),'configStep1':_0x5fc18f(0x27c),'configStep2':_0x5fc18f(0x1ee),'configStep3':_0x5fc18f(0x2e0),'sessionId':_0x5fc18f(0x25c),'sessionIdDescription':_0x5fc18f(0x289),'authorizationDescription':_0x5fc18f(0x2d7),'configParameters':_0x5fc18f(0x218),'maxRetries':'Max\x20Retries','save':_0x5fc18f(0x264),'saving':_0x5fc18f(0x241),'note1':_0x5fc18f(0x238),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x5fc18f(0x240),'apiApplyInfo':{'title':_0x5fc18f(0x233),'description':_0x5fc18f(0x2dc),'univerAiLabel':_0x5fc18f(0x338),'getStarted':_0x5fc18f(0x2ea)},'validation':{'apiKeyRequired':_0x5fc18f(0x210),'apiKeyTooShort':_0x5fc18f(0x325),'invalidConfig':_0x5fc18f(0x271),'invalidApiKey':_0x5fc18f(0x2c6)},'connectionStatus':{'disconnected':_0x5fc18f(0x312),'connecting':_0x5fc18f(0x1e4),'connected':'Connected','failed':_0x5fc18f(0x2ad),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x5fc18f(0x1c0),'sessionOccupied':_0x5fc18f(0x1e0),'networkError':_0x5fc18f(0x1e5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x26b76d={'mcpStatus':{'disconnected':_0x5fc18f(0x2a1),'connecting':_0x5fc18f(0x266),'connected':'MCP\x20已连接','failed':_0x5fc18f(0x1e9),'retrying':_0x5fc18f(0x2f7),'unknown':'MCP\x20状态未知','unauthorized':_0x5fc18f(0x329),'sessionOccupied':_0x5fc18f(0x25b),'networkError':_0x5fc18f(0x213),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x5fc18f(0x2c5),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5fc18f(0x1ec),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x5fc18f(0x20b),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x5fc18f(0x32d),'connectionInfo':_0x5fc18f(0x26a),'mcpClientConfig':_0x5fc18f(0x26a),'configInstructions':_0x5fc18f(0x341),'configStepTitle':_0x5fc18f(0x1da),'configStep1':_0x5fc18f(0x28a),'configStep2':_0x5fc18f(0x22c),'configStep3':_0x5fc18f(0x2b4),'sessionId':_0x5fc18f(0x33c),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5fc18f(0x272),'configParameters':_0x5fc18f(0x2c7),'maxRetries':_0x5fc18f(0x267),'save':'保存配置','saving':_0x5fc18f(0x287),'note1':_0x5fc18f(0x1e2),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x5fc18f(0x323),'apiApplyInfo':{'title':_0x5fc18f(0x24b),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x5fc18f(0x31a)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x5fc18f(0x1ce),'invalidApiKey':_0x5fc18f(0x29a)},'connectionStatus':{'disconnected':'未连接','connecting':_0x5fc18f(0x214),'connected':_0x5fc18f(0x1e3),'failed':_0x5fc18f(0x1af),'retrying':_0x5fc18f(0x342)},'connectionError':{'unauthorized':_0x5fc18f(0x23c),'sessionOccupied':_0x5fc18f(0x212),'networkError':_0x5fc18f(0x1cb),'maxRetriesExceeded':_0x5fc18f(0x27b)}}};var _0x430848=Object[_0x5fc18f(0x1f1)],_0x35b381=Object['getOwnPropertyDescriptor'],_0x1d6005=(_0x5d2f1a,_0x2fbaa8,_0x280e12)=>_0x2fbaa8 in _0x5d2f1a?_0x430848(_0x5d2f1a,_0x2fbaa8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x280e12}):_0x5d2f1a[_0x2fbaa8]=_0x280e12,_0x4b6576=(_0xbf805,_0x262103,_0x494038,_0x49de27)=>{const _0x205632=_0x5fc18f;for(var _0x56cdb3=_0x49de27>0x1?void 0x0:_0x49de27?_0x35b381(_0x262103,_0x494038):_0x262103,_0x440042=_0xbf805[_0x205632(0x2ca)]-0x1,_0x2f823c;_0x440042>=0x0;_0x440042--)(_0x2f823c=_0xbf805[_0x440042])&&(_0x56cdb3=_0x2f823c(_0x56cdb3)||_0x56cdb3);return _0x56cdb3;},_0x4fcf07=(_0xa3cd5c,_0x5d4e80)=>(_0x5256e5,_0x23725d)=>_0x5d4e80(_0x5256e5,_0x23725d,_0xa3cd5c),_0x38e91a=(_0x15fe5f,_0x202e72,_0xa11207)=>_0x1d6005(_0x15fe5f,_0x202e72+'',_0xa11207);_0xebb147[_0x5fc18f(0x1e7)]=class extends _0xceaa6d[_0x5fc18f(0x2b8)]{constructor(_0x86d114=_0x1718a0,_0x598106,_0x192fb3,_0x45218f,_0x2104a3,_0xe46792){const _0x2fbfac=_0x5fc18f;super(),this['_config']=_0x86d114,this['_injector']=_0x598106,this['_configService']=_0x192fb3,this['_uiPartsService']=_0x45218f,this['_localStorageService']=_0x2104a3,this[_0x2fbfac(0x22f)]=_0xe46792;const {..._0x1e0d39}=_0xceaa6d[_0x2fbfac(0x23f)]({},_0x1718a0,this[_0x2fbfac(0x2a2)]);this['_configService'][_0x2fbfac(0x219)](_0x14db66,_0x1e0d39);}async['onStarting'](){const _0x1dbedf=_0x5fc18f,_0x23b76e=[[_0xebb147[_0x1dbedf(0x1d1)]],[_0xebb147[_0x1dbedf(0x273)]],[_0xebb147['MCPUIMenuController']]];this[_0x1dbedf(0x1f9)][_0x1dbedf(0x275)](_0x24c946[_0x1dbedf(0x2fa)])||_0x23b76e[_0x1dbedf(0x299)]([_0x24c946[_0x1dbedf(0x2fa)],{'useClass':_0x24c946[_0x1dbedf(0x1bd)]}]),_0x23b76e[_0x1dbedf(0x284)](_0x51adad=>this[_0x1dbedf(0x1f9)][_0x1dbedf(0x2b1)](_0x51adad)),this[_0x1dbedf(0x1f9)][_0x1dbedf(0x28b)](_0xebb147[_0x1dbedf(0x1d1)]),this[_0x1dbedf(0x1f9)][_0x1dbedf(0x28b)](_0xebb147[_0x1dbedf(0x273)]),this[_0x1dbedf(0x1f9)]['get'](_0xebb147[_0x1dbedf(0x331)]);}},_0x38e91a(_0xebb147[_0x5fc18f(0x1e7)],_0x5fc18f(0x242),'MCP_UI_PLUGIN'),_0xebb147[_0x5fc18f(0x1e7)]=_0x4b6576([_0xceaa6d['DependentOn'](_0x664707[_0x5fc18f(0x24e)]),_0x4fcf07(0x1,_0xceaa6d[_0x5fc18f(0x1e8)](_0xceaa6d[_0x5fc18f(0x2e2)])),_0x4fcf07(0x2,_0xceaa6d[_0x5fc18f(0x305)]),_0x4fcf07(0x3,_0x135821['IUIPartsService']),_0x4fcf07(0x4,_0xceaa6d[_0x5fc18f(0x2a0)]),_0x4fcf07(0x5,_0xceaa6d[_0x5fc18f(0x1e8)](_0xceaa6d['LocaleService']))],_0xebb147['UniverMCPUIPlugin']),_0xebb147['MCPConfigPanel']=_0x2457c4,_0xebb147['MCPStatusDisplay']=_0x4008b3,_0xebb147[_0x5fc18f(0x1b2)]=_0x11370c,_0xebb147[_0x5fc18f(0x277)]=_0x2a89ec,_0xebb147[_0x5fc18f(0x207)]=_0x26b76d,Object['defineProperty'](_0xebb147,Symbol[_0x5fc18f(0x2c2)],{'value':'Module'});}));
|
|
1
|
+
(function(_0x176292,_0x3e3387){const _0x574bb=_0x3f32,_0x93132e=_0x176292();while(!![]){try{const _0x667f5f=-parseInt(_0x574bb(0x291))/0x1+parseInt(_0x574bb(0x14d))/0x2*(parseInt(_0x574bb(0x191))/0x3)+parseInt(_0x574bb(0x2ae))/0x4+parseInt(_0x574bb(0x246))/0x5+parseInt(_0x574bb(0x244))/0x6+-parseInt(_0x574bb(0x238))/0x7+-parseInt(_0x574bb(0x294))/0x8*(-parseInt(_0x574bb(0x28f))/0x9);if(_0x667f5f===_0x3e3387)break;else _0x93132e['push'](_0x93132e['shift']());}catch(_0x1ea92f){_0x93132e['push'](_0x93132e['shift']());}}}(_0x4396,0x88aa5),function(_0x540b65,_0x25a77f){const _0x30d315=_0x3f32;typeof exports=='object'&&typeof module<'u'?_0x25a77f(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define['amd']?define([_0x30d315(0x1a8),_0x30d315(0x25e),'react/jsx-runtime','@univerjs-pro/mcp',_0x30d315(0x21a),_0x30d315(0x1ec),_0x30d315(0x203),_0x30d315(0x288),_0x30d315(0x250)],_0x25a77f):(_0x540b65=typeof globalThis<'u'?globalThis:_0x540b65||self,_0x25a77f(_0x540b65[_0x30d315(0x1d1)]={},_0x540b65[_0x30d315(0x2b9)],_0x540b65[_0x30d315(0x19b)],_0x540b65[_0x30d315(0x184)],_0x540b65[_0x30d315(0x153)],_0x540b65[_0x30d315(0x23b)],_0x540b65[_0x30d315(0x203)],_0x540b65['React'],_0x540b65[_0x30d315(0x2c5)]));}(this,function(_0x546bea,_0xe1b353,_0x595512,_0x25b1cd,_0x536ef3,_0x426649,_0x1f5f86,_0x538019,_0x579370){'use strict';const _0x142b8e=_0x3f32;var _0x161aaa=Object[_0x142b8e(0x1e3)],_0x2147ea=(_0x4758db,_0x57a948,_0x161144)=>_0x57a948 in _0x4758db?_0x161aaa(_0x4758db,_0x57a948,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x161144}):_0x4758db[_0x57a948]=_0x161144,_0x159834=(_0x51bcc3,_0x412e5a,_0x196836)=>_0x2147ea(_0x51bcc3,typeof _0x412e5a!=_0x142b8e(0x158)?_0x412e5a+'':_0x412e5a,_0x196836);function _0x4afa93({ref:_0x26144d,..._0x41ff18}){const _0x48f730=_0x142b8e,{icon:_0xf8006a,id:_0x59da09,className:_0x15c06b,extend:_0x578e96,..._0x548d3c}=_0x41ff18,_0xcb502e=(_0x48f730(0x2a1)+_0x59da09+'\x20'+(_0x15c06b||''))[_0x48f730(0x284)](),_0x289354=_0x538019['useRef']('_'+_0x52e67a());return _0x84ec47(_0xf8006a,''+_0x59da09,{'defIds':_0xf8006a[_0x48f730(0x231)],'idSuffix':_0x289354[_0x48f730(0x1fb)]},{'ref':_0x26144d,'className':_0xcb502e,..._0x548d3c},_0x578e96);}function _0x84ec47(_0x5b5ad4,_0x38c896,_0x2cba1d,_0x1157b8,_0x25a688){const _0x13edf8=_0x142b8e;return _0x538019[_0x13edf8(0x185)](_0x5b5ad4[_0x13edf8(0x1e7)],{'key':_0x38c896,..._0x5a9954(_0x5b5ad4,_0x2cba1d,_0x25a688),..._0x1157b8},(_0x18499a(_0x5b5ad4,_0x2cba1d)[_0x13edf8(0x270)]||[])['map']((_0x3185d4,_0x40be85)=>_0x84ec47(_0x3185d4,_0x38c896+'-'+_0x5b5ad4[_0x13edf8(0x1e7)]+'-'+_0x40be85,_0x2cba1d,void 0x0,_0x25a688)));}function _0x5a9954(_0x131826,_0x1444bf,_0xb0d0cb){const _0x311e58=_0x142b8e,_0x2491b6={..._0x131826['attrs']};_0xb0d0cb!=null&&_0xb0d0cb[_0x311e58(0x24c)]&&_0x2491b6[_0x311e58(0x154)]==='colorChannel1'&&(_0x2491b6[_0x311e58(0x154)]=_0xb0d0cb[_0x311e58(0x24c)]),_0x131826['tag']===_0x311e58(0x255)&&_0x2491b6['id']&&(_0x2491b6['id']=_0x2491b6['id']+_0x1444bf[_0x311e58(0x186)]),Object[_0x311e58(0x15e)](_0x2491b6)[_0x311e58(0x1bb)](([_0xe63ba2,_0x1987eb])=>{const _0x3efda9=_0x311e58;_0xe63ba2===_0x3efda9(0x255)&&typeof _0x1987eb==_0x3efda9(0x1da)&&(_0x2491b6[_0xe63ba2]=_0x1987eb[_0x3efda9(0x1ee)](/url\(#(.*)\)/,_0x3efda9(0x2bd)+_0x1444bf[_0x3efda9(0x186)]+')'));});const {defIds:_0x26dc21}=_0x1444bf;return!_0x26dc21||_0x26dc21[_0x311e58(0x18d)]===0x0||(_0x131826[_0x311e58(0x1e7)]===_0x311e58(0x19a)&&_0x2491b6[_0x311e58(0x266)]&&(_0x2491b6['xlink:href']=_0x2491b6[_0x311e58(0x266)]+_0x1444bf[_0x311e58(0x186)]),Object[_0x311e58(0x15e)](_0x2491b6)[_0x311e58(0x1bb)](([_0x27cfe1,_0x1f65dc])=>{const _0x39972a=_0x311e58;typeof _0x1f65dc==_0x39972a(0x1da)&&(_0x2491b6[_0x27cfe1]=_0x1f65dc[_0x39972a(0x1ee)](/url\(#(.*)\)/,_0x39972a(0x2bd)+_0x1444bf[_0x39972a(0x186)]+')'));})),_0x2491b6;}function _0x18499a(_0x65a63f,_0x2c4a3d){const _0x547c21=_0x142b8e;var _0x1e1307;const {defIds:_0xa7cfb9}=_0x2c4a3d;return!_0xa7cfb9||_0xa7cfb9[_0x547c21(0x18d)]===0x0?_0x65a63f:_0x65a63f[_0x547c21(0x1e7)]===_0x547c21(0x1d8)&&((_0x1e1307=_0x65a63f['children'])!=null&&_0x1e1307[_0x547c21(0x18d)])?{..._0x65a63f,'children':_0x65a63f[_0x547c21(0x270)][_0x547c21(0x27b)](_0x36fd98=>typeof _0x36fd98[_0x547c21(0x183)]['id']==_0x547c21(0x1da)&&_0xa7cfb9&&_0xa7cfb9[_0x547c21(0x187)](_0x36fd98[_0x547c21(0x183)]['id'])?{..._0x36fd98,'attrs':{..._0x36fd98[_0x547c21(0x183)],'id':_0x36fd98[_0x547c21(0x183)]['id']+_0x2c4a3d[_0x547c21(0x186)]}}:_0x36fd98)}:_0x65a63f;}function _0x52e67a(){const _0xbc9393=_0x142b8e;return Math[_0xbc9393(0x2ba)]()[_0xbc9393(0x17d)](0x24)[_0xbc9393(0x1ff)](0x2,0x8);}_0x4afa93[_0x142b8e(0x224)]=_0x142b8e(0x21e);const _0x4f938b={'tag':_0x142b8e(0x252),'attrs':{'xmlns':_0x142b8e(0x182),'fill':_0x142b8e(0x207),'viewBox':_0x142b8e(0x1f4),'width':_0x142b8e(0x1f5),'height':_0x142b8e(0x1f5)},'children':[{'tag':_0x142b8e(0x210),'attrs':{'fill':_0x142b8e(0x1ef),'d':_0x142b8e(0x1ea),'fillRule':_0x142b8e(0x1ab),'clipRule':_0x142b8e(0x1ab)}}]},_0x56e9a4=_0x538019['forwardRef'](function(_0x48d605,_0x228041){const _0x13a8a1=_0x142b8e;return _0x538019['createElement'](_0x4afa93,Object['assign']({},_0x48d605,{'id':_0x13a8a1(0x13e),'ref':_0x228041,'icon':_0x4f938b}));});_0x56e9a4[_0x142b8e(0x224)]=_0x142b8e(0x2a6);const _0x5a2ae4={'tag':'svg','attrs':{'xmlns':_0x142b8e(0x182),'fill':_0x142b8e(0x207),'viewBox':_0x142b8e(0x1f4),'width':_0x142b8e(0x1f5),'height':_0x142b8e(0x1f5)},'children':[{'tag':_0x142b8e(0x210),'attrs':{'fill':_0x142b8e(0x1ef),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},_0x2d3b30=_0x538019[_0x142b8e(0x1e0)](function(_0x1937c4,_0x441c4e){const _0x214e52=_0x142b8e;return _0x538019[_0x214e52(0x185)](_0x4afa93,Object['assign']({},_0x1937c4,{'id':_0x214e52(0x28e),'ref':_0x441c4e,'icon':_0x5a2ae4}));});_0x2d3b30[_0x142b8e(0x224)]='CloseIcon';const _0x3392ea={'tag':_0x142b8e(0x252),'attrs':{'xmlns':_0x142b8e(0x182),'fill':_0x142b8e(0x207),'viewBox':_0x142b8e(0x1f4),'width':_0x142b8e(0x1f5),'height':_0x142b8e(0x1f5)},'children':[{'tag':_0x142b8e(0x210),'attrs':{'fill':_0x142b8e(0x1ef),'d':_0x142b8e(0x265)}},{'tag':'path','attrs':{'fill':_0x142b8e(0x1ef),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':'path','attrs':{'fill':_0x142b8e(0x1ef),'d':_0x142b8e(0x157),'fillRule':'evenodd','clipRule':_0x142b8e(0x1ab)}}]},_0x3bb157=_0x538019[_0x142b8e(0x1e0)](function(_0x40a9d8,_0x20b760){const _0x422066=_0x142b8e;return _0x538019[_0x422066(0x185)](_0x4afa93,Object[_0x422066(0x189)]({},_0x40a9d8,{'id':_0x422066(0x1bf),'ref':_0x20b760,'icon':_0x3392ea}));});_0x3bb157['displayName']=_0x142b8e(0x253);const _0x59b217={'tag':_0x142b8e(0x252),'attrs':{'xmlns':_0x142b8e(0x182),'fill':_0x142b8e(0x207),'viewBox':_0x142b8e(0x1f4),'width':_0x142b8e(0x1f5),'height':_0x142b8e(0x1f5)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x142b8e(0x210),'attrs':{'stroke':_0x142b8e(0x1ef),'d':_0x142b8e(0x20e),'strokeLinecap':'round','strokeLinejoin':_0x142b8e(0x1d0),'strokeWidth':1.2}}]},{'tag':_0x142b8e(0x1d8),'attrs':{},'children':[{'tag':_0x142b8e(0x1b1),'attrs':{'id':_0x142b8e(0x216)},'children':[{'tag':_0x142b8e(0x210),'attrs':{'fill':_0x142b8e(0x2c8),'d':_0x142b8e(0x170)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x6d7580=_0x538019[_0x142b8e(0x1e0)](function(_0x169319,_0x4867e8){const _0x55a610=_0x142b8e;return _0x538019[_0x55a610(0x185)](_0x4afa93,Object[_0x55a610(0x189)]({},_0x169319,{'id':'off-line-icon','ref':_0x4867e8,'icon':_0x59b217}));});_0x6d7580[_0x142b8e(0x224)]='OffLineIcon';const _0x34767f={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x142b8e(0x207),'viewBox':_0x142b8e(0x1f1),'width':_0x142b8e(0x1f5),'height':_0x142b8e(0x1f5)},'children':[{'tag':'g','attrs':{'clipPath':_0x142b8e(0x23d)},'children':[{'tag':'path','attrs':{'stroke':_0x142b8e(0x1ef),'d':_0x142b8e(0x1cb),'strokeLinecap':_0x142b8e(0x1d0),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x142b8e(0x1b1),'attrs':{'id':_0x142b8e(0x1ca)},'children':[{'tag':_0x142b8e(0x210),'attrs':{'fill':_0x142b8e(0x2c8),'d':'M0\x200H16V16H0z','transform':_0x142b8e(0x163)}}]}]}],'defIds':[_0x142b8e(0x1ca)]},_0x484e3e=_0x538019['forwardRef'](function(_0x16811d,_0x17f449){const _0x3299a9=_0x142b8e;return _0x538019['createElement'](_0x4afa93,Object[_0x3299a9(0x189)]({},_0x16811d,{'id':'on-line-icon','ref':_0x17f449,'icon':_0x34767f}));});_0x484e3e['displayName']=_0x142b8e(0x20f);function _0x250ae2(_0x27b340){const _0x55dbde=_0x142b8e;var _0x12e686,_0x376277;const {mcpCoreConfig:_0x4f3e7f,onSave:_0x500e81,loading:_0x352032=!0x1,config:_0x4d7ecd,connectionStatus$:_0x5c1b,connectionError$:_0x15e1f8,currentApiKey$:_0x40ea29,currentSessionId$:_0xb4ffc6}=_0x27b340,_0x3ce453=_0x426649[_0x55dbde(0x248)](_0xe1b353[_0x55dbde(0x2b0)]),_0x4e2848=_0x426649[_0x55dbde(0x145)](_0x5c1b,_0x25b1cd[_0x55dbde(0x156)][_0x55dbde(0x149)]),_0x5def0a=_0x426649['useObservable'](_0x15e1f8,_0x25b1cd[_0x55dbde(0x211)]['NONE']),_0x71a9f=_0x426649[_0x55dbde(0x145)](_0xb4ffc6,''),_0x1e2d84=_0x426649[_0x55dbde(0x145)](_0x40ea29,''),[_0x3663d7,_0x24c55a]=_0x538019[_0x55dbde(0x23f)](_0x1e2d84||''),_0x345d3e=!0x0,_0x5cfaa7=_0x4d7ecd[_0x55dbde(0x272)]&&_0x4f3e7f[_0x55dbde(0x20a)]&&(_0x4f3e7f[_0x55dbde(0x20a)][_0x55dbde(0x187)](_0x55dbde(0x1d9))||_0x4f3e7f[_0x55dbde(0x20a)][_0x55dbde(0x187)](_0x55dbde(0x239))),_0x5d71b2=(_0x12e686=_0x4f3e7f[_0x55dbde(0x20a)])==null?void 0x0:_0x12e686[_0x55dbde(0x187)](_0x55dbde(0x1d9)),_0x1a07e5=(_0x376277=_0x4f3e7f[_0x55dbde(0x20a)])==null?void 0x0:_0x376277['includes'](_0x55dbde(0x239)),_0x5e7b12=_0x5d71b2?_0x55dbde(0x247):_0x55dbde(0x136),_0x5cf967=_0x4d7ecd[_0x55dbde(0x272)]&&(_0x5d71b2||_0x1a07e5),[_0x413be9,_0x467538]=_0x538019['useState'](!_0x3663d7['trim']()),_0x4c868b=(_0x4f83da,_0x2b9dd3)=>{const _0x3774a2=_0x55dbde;if(_0x2b9dd3===_0x25b1cd[_0x3774a2(0x211)][_0x3774a2(0x15b)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x4f83da){case _0x25b1cd[_0x3774a2(0x156)][_0x3774a2(0x222)]:return _0x3774a2(0x179);case _0x25b1cd['MCPConnectionStatus']['CONNECTING']:case _0x25b1cd['MCPConnectionStatus']['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x25b1cd[_0x3774a2(0x156)][_0x3774a2(0x292)]:return _0x3774a2(0x245);default:return _0x3774a2(0x28d);}},_0x4de389=(_0x18a8da,_0x45bd60)=>{const _0x566dd4=_0x55dbde;if(_0x45bd60===_0x25b1cd[_0x566dd4(0x211)]['UNAUTHORIZED'])return _0x566dd4(0x2c4);switch(_0x18a8da){case _0x25b1cd[_0x566dd4(0x156)][_0x566dd4(0x222)]:return _0x566dd4(0x298);case _0x25b1cd[_0x566dd4(0x156)][_0x566dd4(0x249)]:case _0x25b1cd[_0x566dd4(0x156)][_0x566dd4(0x18c)]:return'univer-bg-blue-500';case _0x25b1cd[_0x566dd4(0x156)][_0x566dd4(0x292)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x3f9d89=_0x24bb89=>{const _0x4131a5=_0x55dbde;switch(_0x24bb89){case _0x25b1cd[_0x4131a5(0x156)][_0x4131a5(0x222)]:return _0x3ce453['t'](_0x4131a5(0x209));case _0x25b1cd[_0x4131a5(0x156)]['CONNECTING']:return _0x3ce453['t'](_0x4131a5(0x192));case _0x25b1cd['MCPConnectionStatus'][_0x4131a5(0x292)]:return _0x3ce453['t'](_0x4131a5(0x259));case _0x25b1cd[_0x4131a5(0x156)][_0x4131a5(0x18c)]:return _0x3ce453['t'](_0x4131a5(0x2af));default:return _0x3ce453['t']('mcpConfig.connectionStatus.disconnected');}},_0x34482f=_0x41e2fb=>{const _0x35710a=_0x55dbde;switch(_0x41e2fb){case _0x25b1cd[_0x35710a(0x211)]['UNAUTHORIZED']:return _0x3ce453['t'](_0x35710a(0x1ae));case _0x25b1cd[_0x35710a(0x211)][_0x35710a(0x27a)]:return _0x3ce453['t'](_0x35710a(0x279));case _0x25b1cd[_0x35710a(0x211)][_0x35710a(0x173)]:return _0x3ce453['t'](_0x35710a(0x2b8));case _0x25b1cd[_0x35710a(0x211)][_0x35710a(0x1a6)]:return _0x3ce453['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x608d67=_0x538019[_0x55dbde(0x22b)](()=>{const _0x25b261=_0x55dbde,_0x25c912={..._0x4f3e7f,'apiKey':_0x3663d7[_0x25b261(0x284)](),'enableAuth':_0x345d3e};_0x500e81(_0x25c912);},[_0x4f3e7f,_0x3663d7,_0x345d3e,_0x500e81]),_0x2240ce=_0x3663d7['trim']()[_0x55dbde(0x18d)]>0x0;return _0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':_0x55dbde(0x18b),'children':_0x595512['jsxs']('div',{'className':_0x55dbde(0x176),'children':[_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x595512['jsx'](_0x55dbde(0x1cf),{'className':_0x55dbde(0x1c1),'children':'⚙'})}),_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'children':_0x595512[_0x55dbde(0x162)]('p',{'className':_0x55dbde(0x24b),'children':_0x3ce453['t'](_0x55dbde(0x28b))})})]})}),_0x595512['jsxs'](_0x55dbde(0x296),{'className':_0x55dbde(0x27f),'children':[_0x595512['jsx'](_0x55dbde(0x296),{'className':_0x536ef3['clsx'](_0x55dbde(0x260),_0x4c868b(_0x4e2848,_0x5def0a)),'children':_0x595512['jsxs'](_0x55dbde(0x296),{'className':_0x55dbde(0x1e1),'children':[_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':_0x536ef3[_0x55dbde(0x2a5)](_0x55dbde(0x133),_0x4de389(_0x4e2848,_0x5def0a))}),_0x595512['jsx']('span',{'className':_0x55dbde(0x1eb),'children':_0x3f9d89(_0x4e2848)})]})}),_0x5def0a!==_0x25b1cd[_0x55dbde(0x211)][_0x55dbde(0x1f0)]&&(_0x4e2848===_0x25b1cd[_0x55dbde(0x156)][_0x55dbde(0x292)]||_0x5def0a===_0x25b1cd[_0x55dbde(0x211)][_0x55dbde(0x15b)])&&_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':_0x55dbde(0x17b),'children':_0x595512[_0x55dbde(0x188)]('div',{'className':_0x55dbde(0x151),'children':[_0x595512[_0x55dbde(0x162)](_0x55dbde(0x1cf),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x595512[_0x55dbde(0x162)]('p',{'className':_0x55dbde(0x1f7),'children':_0x34482f(_0x5def0a)})]})})]}),_0x595512[_0x55dbde(0x162)]('div',{'className':_0x55dbde(0x258),'children':_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x24a),'children':[_0x595512['jsxs'](_0x55dbde(0x296),{'className':'univer-space-y-2','children':[_0x595512[_0x55dbde(0x188)](_0x55dbde(0x223),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x595512['jsx'](_0x55dbde(0x1cf),{'children':'🔑'}),'\x20',_0x3ce453['t'](_0x55dbde(0x23e)),_0x595512['jsx'](_0x55dbde(0x1cf),{'className':_0x55dbde(0x2a7),'children':'*'}),_0x5cfaa7&&_0x595512[_0x55dbde(0x162)]('a',{'className':_0x55dbde(0x177),'title':_0x3ce453['t'](_0x55dbde(0x1a3)),'role':_0x55dbde(0x197),'onClick':()=>_0x467538(!0x0),'children':_0x595512[_0x55dbde(0x162)](_0x3bb157,{})})]}),_0x595512[_0x55dbde(0x162)](_0x536ef3[_0x55dbde(0x18e)],{'type':_0x55dbde(0x221),'placeholder':_0x3ce453['t'](_0x55dbde(0x2c6)),'value':_0x3663d7,'disabled':_0x352032,'autoComplete':_0x55dbde(0x144),'onChange':_0x24c55a}),_0x595512[_0x55dbde(0x162)]('p',{'className':_0x55dbde(0x212),'children':_0x3ce453['t'](_0x55dbde(0x135))})]}),_0x5cfaa7&&_0x413be9&&_0x595512[_0x55dbde(0x188)]('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':[_0x595512['jsx']('a',{'className':_0x55dbde(0x29d),'role':'button','onClick':()=>_0x467538(!0x1),'children':_0x595512[_0x55dbde(0x162)](_0x2d3b30,{'className':_0x55dbde(0x14b)})}),_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x243),'children':[_0x595512[_0x55dbde(0x162)]('div',{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x595512['jsx'](_0x55dbde(0x1cf),{'className':_0x55dbde(0x1d6),'children':'🚀'})}),_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x1b7),'children':[_0x595512['jsx']('h4',{'className':_0x55dbde(0x131),'children':_0x3ce453['t'](_0x55dbde(0x1a3))}),_0x595512[_0x55dbde(0x162)]('p',{'className':_0x55dbde(0x261),'children':_0x3ce453['t'](_0x55dbde(0x1de))}),_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':_0x55dbde(0x290),'children':_0x5cf967&&_0x595512[_0x55dbde(0x188)]('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':_0x5e7b12,'target':'_blank','rel':_0x55dbde(0x1cc),'children':[_0x595512[_0x55dbde(0x162)]('span',{'children':'🤖'}),_0x3ce453['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x595512[_0x55dbde(0x162)](_0x55dbde(0x1cf),{'className':_0x55dbde(0x19c),'children':'↗'})]})}),_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x175),'children':['✨','\x20',_0x3ce453['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x4d7ecd[_0x55dbde(0x272)]&&_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x274),'children':[_0x595512[_0x55dbde(0x188)]('h4',{'className':_0x55dbde(0x1bd),'children':[_0x595512[_0x55dbde(0x162)](_0x55dbde(0x1cf),{'children':'🔗'}),'\x20',_0x3ce453['t'](_0x55dbde(0x2a3))]}),_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x282),'children':[_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':'univer-space-y-3','children':[_0x595512[_0x55dbde(0x162)]('p',{'className':_0x55dbde(0x146),'children':_0x3ce453['t'](_0x55dbde(0x1dc))}),_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x29f),'children':[_0x595512[_0x55dbde(0x162)]('div',{'className':_0x55dbde(0x213),'children':_0x3ce453['t'](_0x55dbde(0x1f3))}),_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x1e1),'children':[_0x595512[_0x55dbde(0x162)]('span',{'className':_0x55dbde(0x25b),'children':'1'}),_0x3ce453['t'](_0x55dbde(0x263))]}),_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x595512['jsx']('span',{'className':_0x55dbde(0x25b),'children':'2'}),_0x3ce453['t'](_0x55dbde(0x1e4))]}),_0x595512[_0x55dbde(0x188)]('div',{'className':_0x55dbde(0x1e1),'children':[_0x595512[_0x55dbde(0x162)]('span',{'className':_0x55dbde(0x25b),'children':'3'}),_0x3ce453['t'](_0x55dbde(0x295))]})]})]})]}),_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x29f),'children':[_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':_0x55dbde(0x213),'children':_0x55dbde(0x181)}),_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':_0x55dbde(0x2ac),'children':_0x595512[_0x55dbde(0x162)]('pre',{'className':_0x55dbde(0x167),'children':JSON[_0x55dbde(0x28c)]({'mcpServers':{'univer':{'url':_0x55dbde(0x230)+(_0x71a9f||_0x55dbde(0x24f)),'type':_0x55dbde(0x1ac),'headers':{'Authorization':_0x55dbde(0x159)+(_0x3663d7||'<API_KEY>')}}}},null,0x2)})})]}),_0x595512['jsxs']('div',{'className':_0x55dbde(0x168),'children':[_0x595512[_0x55dbde(0x162)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3ce453['t'](_0x55dbde(0x132))}),_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x29f),'children':[_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x1fd),'children':[_0x595512['jsx'](_0x55dbde(0x296),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':_0x55dbde(0x2c3),'children':[_0x595512['jsx'](_0x55dbde(0x296),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x55dbde(0x1a9)}),_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':_0x55dbde(0x212),'children':_0x3ce453['t'](_0x55dbde(0x219))})]})]}),_0x595512[_0x55dbde(0x188)](_0x55dbde(0x296),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':_0x55dbde(0x2b2)}),_0x595512['jsxs'](_0x55dbde(0x296),{'className':_0x55dbde(0x2c3),'children':[_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':_0x55dbde(0x1e2),'children':'Authorization:'}),_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':_0x55dbde(0x212),'children':_0x3ce453['t'](_0x55dbde(0x24d))})]})]})]})]})]})]}),_0x595512['jsx'](_0x536ef3['Button'],{'onClick':_0x608d67,'disabled':!_0x2240ce||_0x352032,'className':_0x55dbde(0x1e9),'children':_0x352032?_0x595512['jsxs'](_0x55dbde(0x1cf),{'className':_0x55dbde(0x1e1),'children':[_0x595512['jsx'](_0x55dbde(0x1cf),{'children':'⟲'}),_0x3ce453['t'](_0x55dbde(0x1fc))]}):_0x595512['jsxs'](_0x55dbde(0x1cf),{'className':_0x55dbde(0x1e1),'children':[_0x595512[_0x55dbde(0x162)](_0x56e9a4,{}),_0x3ce453['t']('mcpConfig.save')]})}),_0x595512['jsx'](_0x55dbde(0x296),{'className':_0x55dbde(0x276),'children':_0x595512['jsxs']('div',{'className':_0x55dbde(0x2a0),'children':[_0x595512[_0x55dbde(0x162)](_0x55dbde(0x1cf),{'className':_0x55dbde(0x2c7),'children':'💡'}),_0x595512[_0x55dbde(0x188)]('div',{'className':_0x55dbde(0x26a),'children':[_0x595512[_0x55dbde(0x162)](_0x55dbde(0x296),{'className':_0x55dbde(0x1ed),'children':_0x55dbde(0x16d)}),_0x595512['jsxs'](_0x55dbde(0x296),{'children':['•',_0x3ce453['t'](_0x55dbde(0x228))]}),_0x595512[_0x55dbde(0x188)]('div',{'children':['•',_0x3ce453['t'](_0x55dbde(0x29c))]})]})]})})]})})]});}const _0x29a392='mcp-ui.config',_0x3355ac={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x1ff028=Object[_0x142b8e(0x1d3)],_0x41081e=(_0xa0f12b,_0x441938,_0x386d4b,_0x2e6d1a)=>{const _0x392476=_0x142b8e;for(var _0x26ce5f=_0x2e6d1a>0x1?void 0x0:_0x2e6d1a?_0x1ff028(_0x441938,_0x386d4b):_0x441938,_0x525c6f=_0xa0f12b[_0x392476(0x18d)]-0x1,_0x43d411;_0x525c6f>=0x0;_0x525c6f--)(_0x43d411=_0xa0f12b[_0x525c6f])&&(_0x26ce5f=_0x43d411(_0x26ce5f)||_0x26ce5f);return _0x26ce5f;},_0x547197=(_0xe2e300,_0x46347d)=>(_0x34a00f,_0x13e321)=>_0x46347d(_0x34a00f,_0x13e321,_0xe2e300);const _0x1c3543=_0x142b8e(0x2b1),_0x575532='mcp-config-dialog';_0x546bea[_0x142b8e(0x26e)]=class extends _0xe1b353[_0x142b8e(0x174)]{constructor(_0x190d64,_0x27e025,_0x48772d,_0xa58fda,_0x372295,_0x2b553e,_0xc6df4f,_0x289dd2,_0x558fa7,_0x2ad722){const _0x2426f9=_0x142b8e;super(),_0x159834(this,_0x2426f9(0x208),new _0x1f5f86[(_0x2426f9(0x16c))](!0x1)),_0x159834(this,_0x2426f9(0x16f),new _0x1f5f86[(_0x2426f9(0x16c))]({})),_0x159834(this,_0x2426f9(0x14e),new _0x1f5f86[(_0x2426f9(0x16c))]({})),_0x159834(this,_0x2426f9(0x21d),new _0x1f5f86[(_0x2426f9(0x16c))]('')),_0x159834(this,_0x2426f9(0x1be),async _0x252746=>{const _0x43997=_0x2426f9;var _0x419a78,_0x5428e7;this[_0x43997(0x208)][_0x43997(0x152)](!0x0);try{const _0x5dcd6b=await this['_validateConfig'](_0x252746);if(!_0x5dcd6b[_0x43997(0x20c)]){this[_0x43997(0x172)][_0x43997(0x1f8)]({'type':_0x536ef3[_0x43997(0x2ab)][_0x43997(0x164)],'content':_0x5dcd6b[_0x43997(0x2a8)]||this[_0x43997(0x14a)]['t'](_0x43997(0x297))});return;}_0x252746[_0x43997(0x215)]?await this[_0x43997(0x2bc)][_0x43997(0x26f)](_0x1c3543,_0x252746[_0x43997(0x215)][_0x43997(0x284)]()):await this[_0x43997(0x2bc)][_0x43997(0x1e8)](_0x1c3543),this[_0x43997(0x21d)]['next'](((_0x419a78=_0x252746[_0x43997(0x215)])==null?void 0x0:_0x419a78[_0x43997(0x284)]())||''),this[_0x43997(0x2bb)][_0x43997(0x161)]({'Authorization':_0x43997(0x159)+((_0x5428e7=_0x252746[_0x43997(0x215)])==null?void 0x0:_0x5428e7[_0x43997(0x284)]())}),this[_0x43997(0x172)]['show']({'type':_0x536ef3['MessageType'][_0x43997(0x1c9)],'content':this['_localeService']['t'](_0x43997(0x166))}),setTimeout(()=>{const _0x565091=_0x43997;this[_0x565091(0x251)]['close'](_0x575532);},0x320);}catch(_0x4080e6){this[_0x43997(0x195)][_0x43997(0x17f)](_0x43997(0x22d),_0x4080e6),this['_messageService'][_0x43997(0x1f8)]({'type':_0x536ef3[_0x43997(0x2ab)]['Error'],'content':this[_0x43997(0x14a)]['t'](_0x43997(0x147))});}finally{this[_0x43997(0x208)]['next'](!0x1);}}),(this[_0x2426f9(0x13c)]=_0x190d64,this[_0x2426f9(0x196)]=_0x27e025,this[_0x2426f9(0x237)]=_0x48772d,this[_0x2426f9(0x2bc)]=_0xa58fda,this[_0x2426f9(0x251)]=_0x372295,this[_0x2426f9(0x172)]=_0x2b553e,this[_0x2426f9(0x25f)]=_0xc6df4f,this[_0x2426f9(0x14a)]=_0x289dd2,this[_0x2426f9(0x195)]=_0x558fa7,this[_0x2426f9(0x2bb)]=_0x2ad722,this[_0x2426f9(0x2aa)](),this[_0x2426f9(0x204)](),this[_0x2426f9(0x130)]());}[_0x142b8e(0x2c2)](){const _0x496f74=_0x142b8e,_0x10ff2f=this[_0x496f74(0x237)][_0x496f74(0x1b8)](_0x29a392);_0x10ff2f!=null&&_0x10ff2f['showDeveloperTools']&&this['_dialogService'][_0x496f74(0x1b9)]({'id':_0x575532,'title':{'title':this['_localeService']['t'](_0x496f74(0x257))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5dda85=_0x496f74;this[_0x5dda85(0x251)][_0x5dda85(0x1a2)](_0x575532);}});}[_0x142b8e(0x262)](){const _0xf0b4dd=_0x142b8e;return this[_0xf0b4dd(0x16f)]['value'];}[_0x142b8e(0x130)](){const _0x3a7f84=_0x142b8e;this[_0x3a7f84(0x28a)](this[_0x3a7f84(0x25f)]['register'](_0x3a7f84(0x289),this['_createConfigPanelComponent']()));}[_0x142b8e(0x225)](){const _0x11b063=_0x142b8e;return _0x426649[_0x11b063(0x205)](()=>{const _0x565b16=_0x11b063;var _0xf49a4e,_0x5a9af6,_0x499d7d;return _0x595512[_0x565b16(0x162)](_0x250ae2,{'config':this[_0x565b16(0x14e)][_0x565b16(0x227)],'mcpCoreConfig':this[_0x565b16(0x16f)][_0x565b16(0x227)],'currentApiKey$':this[_0x565b16(0x21d)],'onSave':this[_0x565b16(0x1be)],'loading':this['_loading$'][_0x565b16(0x227)],'connectionStatus$':(_0xf49a4e=this[_0x565b16(0x2bb)])==null?void 0x0:_0xf49a4e['connectionStatus$'],'connectionError$':(_0x5a9af6=this['_mcpConnectionController'])==null?void 0x0:_0x5a9af6['connectionError$'],'currentSessionId$':(_0x499d7d=this['_mcpConnectionController'])==null?void 0x0:_0x499d7d[_0x565b16(0x25d)]});},this[_0x11b063(0x13c)]);}[_0x142b8e(0x2aa)](){const _0x396445=_0x142b8e;this[_0x396445(0x28a)](this[_0x396445(0x237)][_0x396445(0x232)](_0x25b1cd['MCP_PLUGIN_CONFIG_KEY'])[_0x396445(0x2b3)](_0x27c66d=>{const _0x58c0e0=_0x396445;this[_0x58c0e0(0x16f)][_0x58c0e0(0x152)](_0x27c66d||{});}));const _0xb15559=this[_0x396445(0x237)][_0x396445(0x1b8)](_0x25b1cd[_0x396445(0x1cd)]);this[_0x396445(0x16f)][_0x396445(0x152)](_0xb15559||{}),this[_0x396445(0x28a)](this[_0x396445(0x237)]['subscribeConfigValue$'](_0x29a392)['subscribe'](_0x2f6461=>{const _0x2a1129=_0x396445;this[_0x2a1129(0x14e)][_0x2a1129(0x152)](_0x2f6461||{});}));const _0x8cdfc7=this[_0x396445(0x237)][_0x396445(0x1b8)](_0x29a392);this['_config$'][_0x396445(0x152)](_0x8cdfc7||{});}async[_0x142b8e(0x204)](){const _0x560e18=_0x142b8e,_0x13132f=this[_0x560e18(0x237)]['getConfig'](_0x29a392);if(!(_0x13132f!=null&&_0x13132f['showDeveloperTools']))return;const _0x32e546=await this[_0x560e18(0x2bc)][_0x560e18(0x22a)](_0x1c3543);_0x32e546&&(this[_0x560e18(0x2bb)]['__setCustomHeaders']({'Authorization':_0x560e18(0x159)+_0x32e546}),this['_apiKey$'][_0x560e18(0x152)](_0x32e546));}async[_0x142b8e(0x19f)](_0x3e094c){const _0x367ece=_0x142b8e;if(!_0x3e094c[_0x367ece(0x215)]||_0x3e094c[_0x367ece(0x215)][_0x367ece(0x284)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x367ece(0x14a)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3e094c['apiKey'][_0x367ece(0x284)]()[_0x367ece(0x18d)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x367ece(0x14a)]['t'](_0x367ece(0x2a9))};try{const _0x3f541d=await this[_0x367ece(0x13c)][_0x367ece(0x171)](_0x25b1cd[_0x367ece(0x190)])[_0x367ece(0x1c2)](_0x3e094c['apiKey'][_0x367ece(0x284)]());return _0x3f541d[_0x367ece(0x20c)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3f541d[_0x367ece(0x17f)]||this[_0x367ece(0x14a)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x51e8ce){return console[_0x367ece(0x22c)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x51e8ce),{'isValid':!0x0};}}},_0x546bea[_0x142b8e(0x26e)]=_0x41081e([_0x547197(0x0,_0xe1b353[_0x142b8e(0x285)](_0xe1b353[_0x142b8e(0x2be)])),_0x547197(0x1,_0x426649[_0x142b8e(0x278)]),_0x547197(0x2,_0xe1b353[_0x142b8e(0x142)]),_0x547197(0x3,_0xe1b353[_0x142b8e(0x281)]),_0x547197(0x4,_0x426649[_0x142b8e(0x17c)]),_0x547197(0x5,_0x426649[_0x142b8e(0x1ce)]),_0x547197(0x6,_0xe1b353[_0x142b8e(0x285)](_0x426649[_0x142b8e(0x1d2)])),_0x547197(0x7,_0xe1b353[_0x142b8e(0x285)](_0xe1b353[_0x142b8e(0x2b0)])),_0x547197(0x8,_0xe1b353['ILogService']),_0x547197(0x9,_0xe1b353[_0x142b8e(0x285)](_0x25b1cd[_0x142b8e(0x190)]))],_0x546bea[_0x142b8e(0x26e)]);const _0x40125f={'id':_0x142b8e(0x1b5),'type':_0xe1b353[_0x142b8e(0x19e)]['COMMAND'],'handler':async(_0x1068c6,_0x69f957)=>(_0x1068c6[_0x142b8e(0x171)](_0x546bea[_0x142b8e(0x26e)])[_0x142b8e(0x2c2)](),!0x0)};function _0x2af7cc(_0x5a8d35,_0x5d1247){const _0x558205=_0x142b8e;switch(_0x5a8d35){case _0x25b1cd[_0x558205(0x156)][_0x558205(0x149)]:return _0x558205(0x2a2);case _0x25b1cd['MCPConnectionStatus']['CONNECTING']:return _0x558205(0x1a7);case _0x25b1cd[_0x558205(0x156)][_0x558205(0x222)]:return _0x558205(0x1d5);case _0x25b1cd['MCPConnectionStatus'][_0x558205(0x292)]:switch(_0x5d1247){case _0x25b1cd[_0x558205(0x211)][_0x558205(0x15b)]:return _0x558205(0x1b4);case _0x25b1cd[_0x558205(0x211)][_0x558205(0x27a)]:return _0x558205(0x1a5);case _0x25b1cd[_0x558205(0x211)][_0x558205(0x173)]:return _0x558205(0x16b);case _0x25b1cd[_0x558205(0x211)][_0x558205(0x1a6)]:return _0x558205(0x287);default:return _0x558205(0x1b3);}case _0x25b1cd[_0x558205(0x156)][_0x558205(0x18c)]:return _0x558205(0x22f);default:return _0x558205(0x1d7);}}function _0x1cdd6b(_0x27ac8a,_0x1fc78a,_0x4d080b,_0x35c096=!0x0){const _0x266690=_0x142b8e,_0x396c16=_0x2af7cc(_0x27ac8a,_0x1fc78a),_0x13963e=_0x4d080b['t'](_0x396c16);return _0x35c096?_0x27ac8a===_0x25b1cd[_0x266690(0x156)][_0x266690(0x149)]&&_0x1fc78a===_0x25b1cd['MCPConnectionError'][_0x266690(0x15b)]?_0x13963e+_0x266690(0x218)+_0x4d080b['t']('mcpStatus.clickToConfigure'):_0x27ac8a===_0x25b1cd['MCPConnectionStatus'][_0x266690(0x222)]?''+_0x13963e:_0x27ac8a===_0x25b1cd[_0x266690(0x156)]['DISCONNECTED']||_0x27ac8a===_0x25b1cd[_0x266690(0x156)][_0x266690(0x292)]?_0x13963e+_0x266690(0x218)+_0x4d080b['t'](_0x266690(0x283)):_0x13963e:_0x13963e;}function _0x492644(_0x3d5fd6){const _0x2e83a9=_0x142b8e;switch(_0x3d5fd6){case _0x25b1cd[_0x2e83a9(0x156)][_0x2e83a9(0x222)]:return _0x2e83a9(0x220);case _0x25b1cd['MCPConnectionStatus'][_0x2e83a9(0x249)]:case _0x25b1cd[_0x2e83a9(0x156)][_0x2e83a9(0x18c)]:return'univer-text-yellow-500';case _0x25b1cd['MCPConnectionStatus'][_0x2e83a9(0x292)]:case _0x25b1cd[_0x2e83a9(0x156)][_0x2e83a9(0x149)]:return _0x2e83a9(0x2a7);default:return _0x2e83a9(0x1c0);}}function _0x2ae910(_0x400181){const _0x36592a=_0x142b8e,{status$:_0x3c0b2f,error$:_0x2ca3a2,onConfigure:_0x3ed2c7,showClickable:_0x537f4d=!0x0}=_0x400181,_0x49302a=_0x426649[_0x36592a(0x145)](_0x3c0b2f,_0x25b1cd['MCPConnectionStatus'][_0x36592a(0x149)]),_0x182815=_0x426649[_0x36592a(0x145)](_0x2ca3a2,_0x25b1cd['MCPConnectionError']['NONE']),_0x4b26a9=_0x426649['useDependency'](_0xe1b353[_0x36592a(0x2b0)]),_0xe6164f=_0x49302a===_0x25b1cd[_0x36592a(0x156)][_0x36592a(0x222)];_0x49302a===_0x25b1cd[_0x36592a(0x156)]['CONNECTING']||_0x25b1cd[_0x36592a(0x156)][_0x36592a(0x18c)];const _0x31c0fa=_0x4b26a9['t'](_0x2af7cc(_0x49302a,_0x182815)),_0x1495d5=_0x1cdd6b(_0x49302a,_0x182815,_0x4b26a9,_0x537f4d),_0x1de85a=_0x492644(_0x49302a),_0x3da655=_0xe6164f?_0x595512[_0x36592a(0x162)](_0x484e3e,{}):_0x595512[_0x36592a(0x162)](_0x6d7580,{}),_0x3cc66d=_0x538019[_0x36592a(0x22b)](()=>{_0x537f4d&&_0x3ed2c7&&_0x3ed2c7();},[_0x537f4d,_0x3ed2c7]);function _0x1fd992(){const _0x2b2f1c=_0x36592a;return _0x595512['jsxs'](_0x2b2f1c(0x296),{'className':_0x536ef3[_0x2b2f1c(0x2a5)]('univer-flex\x20univer-items-center',_0x537f4d&&_0x3ed2c7&&_0x2b2f1c(0x199)),'role':_0x2b2f1c(0x197),'onClick':_0x537f4d&&_0x3ed2c7?_0x3cc66d:void 0x0,'children':[_0x595512['jsx'](_0x2b2f1c(0x296),{'className':_0x536ef3[_0x2b2f1c(0x2a5)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x1de85a),'children':_0x3da655}),_0x595512[_0x2b2f1c(0x162)]('div',{'className':_0x2b2f1c(0x194),'children':_0x31c0fa})]});}return _0x595512['jsx'](_0x536ef3[_0x36592a(0x29e)],{'title':_0x1495d5,'placement':_0x36592a(0x17e),'children':_0x1fd992()});}var _0x139943=Object[_0x142b8e(0x1d3)],_0x2fd887=(_0xcc7192,_0x3d544f,_0x550f78,_0x2bd4bb)=>{const _0x1e7d26=_0x142b8e;for(var _0x5858f6=_0x2bd4bb>0x1?void 0x0:_0x2bd4bb?_0x139943(_0x3d544f,_0x550f78):_0x3d544f,_0x41ee55=_0xcc7192[_0x1e7d26(0x18d)]-0x1,_0x2dbcea;_0x41ee55>=0x0;_0x41ee55--)(_0x2dbcea=_0xcc7192[_0x41ee55])&&(_0x5858f6=_0x2dbcea(_0x5858f6)||_0x5858f6);return _0x5858f6;},_0x118adb=(_0x3982b1,_0x145ca7)=>(_0x30eaab,_0x192556)=>_0x145ca7(_0x30eaab,_0x192556,_0x3982b1);_0x546bea[_0x142b8e(0x20d)]=class extends _0xe1b353[_0x142b8e(0x174)]{constructor(_0x41ddc5,_0x2ae2f1,_0x147f97,_0x591cbe){const _0xe3bb17=_0x142b8e;super(),this[_0xe3bb17(0x13c)]=_0x41ddc5,this['_connectionController']=_0x2ae2f1,this[_0xe3bb17(0x196)]=_0x147f97,this[_0xe3bb17(0x237)]=_0x591cbe,this[_0xe3bb17(0x235)](),this[_0xe3bb17(0x2c1)]();}[_0x142b8e(0x235)](){const _0x16a4c6=_0x142b8e,_0x3a0970=this[_0x16a4c6(0x237)]['getConfig'](_0x29a392);_0x3a0970!=null&&_0x3a0970['showDeveloperTools']&&(this[_0x16a4c6(0x1db)][_0x16a4c6(0x229)]=!0x1);}[_0x142b8e(0x2c1)](){const _0x5dff2e=_0x142b8e,_0x182119=this['_configService']['getConfig'](_0x29a392);(_0x182119==null?void 0x0:_0x182119[_0x5dff2e(0x134)])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x5dff2e(0x1d4)](_0x426649[_0x5dff2e(0x160)][_0x5dff2e(0x206)],()=>{const _0x27e979=_0x5dff2e;var _0x34257f;return _0x426649[_0x27e979(0x205)](_0x48109a({'status$':this[_0x27e979(0x1db)][_0x27e979(0x26b)],'error$':this[_0x27e979(0x1db)][_0x27e979(0x1aa)],'onConfigure':()=>this[_0x27e979(0x1df)](),'showClickable':(_0x34257f=_0x182119==null?void 0x0:_0x182119[_0x27e979(0x272)])!=null?_0x34257f:!0x1}),this[_0x27e979(0x13c)]);}));}[_0x142b8e(0x1df)](){const _0x57a98f=_0x142b8e;this[_0x57a98f(0x13c)][_0x57a98f(0x171)](_0x546bea[_0x57a98f(0x26e)])[_0x57a98f(0x2c2)]();}},_0x546bea[_0x142b8e(0x20d)]=_0x2fd887([_0x118adb(0x0,_0xe1b353[_0x142b8e(0x285)](_0xe1b353[_0x142b8e(0x2be)])),_0x118adb(0x1,_0xe1b353[_0x142b8e(0x285)](_0x25b1cd[_0x142b8e(0x190)])),_0x118adb(0x2,_0x426649[_0x142b8e(0x278)]),_0x118adb(0x3,_0xe1b353[_0x142b8e(0x142)])],_0x546bea[_0x142b8e(0x20d)]);function _0x48109a(_0xa82afe){const {status$:_0x18db64,error$:_0xe477c7,onConfigure:_0x2a819a,showClickable:_0x5b4ffc}=_0xa82afe;return function(){return _0x595512['jsx'](_0x2ae910,{'status$':_0x18db64,'error$':_0xe477c7,'onConfigure':_0x2a819a,'showClickable':_0x5b4ffc});};}function _0x1c6997(_0x141b52){const _0x1aee55=_0x142b8e;return{'id':_0x40125f['id'],'type':_0x426649[_0x1aee55(0x200)][_0x1aee55(0x1b2)],'icon':'MenuIcon','title':_0x1aee55(0x257),'tooltip':'mcpConfig.title'};}const _0x4ef064={[_0x426649[_0x142b8e(0x19d)]['OTHERS']]:{[_0x40125f['id']]:{'order':0xa,'menuItemFactory':_0x1c6997}}};var _0x39cc37=Object[_0x142b8e(0x1d3)],_0x454528=(_0xf9165b,_0xe4efad,_0x43531d,_0x51e5a9)=>{const _0x1d518f=_0x142b8e;for(var _0x10a99f=_0x51e5a9>0x1?void 0x0:_0x51e5a9?_0x39cc37(_0xe4efad,_0x43531d):_0xe4efad,_0x592a6a=_0xf9165b[_0x1d518f(0x18d)]-0x1,_0x240aa5;_0x592a6a>=0x0;_0x592a6a--)(_0x240aa5=_0xf9165b[_0x592a6a])&&(_0x10a99f=_0x240aa5(_0x10a99f)||_0x10a99f);return _0x10a99f;},_0x1d7390=(_0x5bfdbe,_0x9ddb3d)=>(_0x532f8a,_0x1f3235)=>_0x9ddb3d(_0x532f8a,_0x1f3235,_0x5bfdbe);_0x546bea[_0x142b8e(0x1fa)]=class extends _0xe1b353[_0x142b8e(0x174)]{constructor(_0x191234,_0xf75a5d){const _0x5f070d=_0x142b8e;super(),this['_commandService']=_0x191234,this['_menuManagerService']=_0xf75a5d,this[_0x5f070d(0x24e)](),this[_0x5f070d(0x21c)]();}['_initializeCommands'](){const _0x598b7a=_0x142b8e;[_0x40125f][_0x598b7a(0x1bb)](_0x353dcd=>{const _0xf7a712=_0x598b7a;this[_0xf7a712(0x28a)](this[_0xf7a712(0x1c8)][_0xf7a712(0x23a)](_0x353dcd));});}[_0x142b8e(0x21c)](){const _0x3eb637=_0x142b8e;this[_0x3eb637(0x26c)][_0x3eb637(0x137)](_0x4ef064);}},_0x546bea[_0x142b8e(0x1fa)]=_0x454528([_0x1d7390(0x0,_0xe1b353[_0x142b8e(0x14f)]),_0x1d7390(0x1,_0x426649[_0x142b8e(0x1f2)])],_0x546bea[_0x142b8e(0x1fa)]);const _0x45a0e9={'mcpStatus':{'disconnected':_0x142b8e(0x15c),'connecting':_0x142b8e(0x148),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x142b8e(0x13a),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x142b8e(0x29a),'sessionOccupied':_0x142b8e(0x1ad),'networkError':_0x142b8e(0x13d),'maxRetriesExceeded':_0x142b8e(0x1e6),'clickToConnect':_0x142b8e(0x18a),'clickToConfigure':_0x142b8e(0x1c6)},'mcpConfig':{'title':_0x142b8e(0x181),'description':_0x142b8e(0x143),'apiKey':_0x142b8e(0x1c3),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x142b8e(0x140),'enableAuthHint':_0x142b8e(0x25a),'connectionInfo':_0x142b8e(0x29b),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x142b8e(0x2b4),'configStepTitle':_0x142b8e(0x180),'configStep1':_0x142b8e(0x1af),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x142b8e(0x241),'sessionId':_0x142b8e(0x139),'sessionIdDescription':_0x142b8e(0x1ba),'authorizationDescription':_0x142b8e(0x268),'configParameters':_0x142b8e(0x234),'maxRetries':'Max\x20Retries','save':_0x142b8e(0x273),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x142b8e(0x264),'configSaved':_0x142b8e(0x1f6),'configError':_0x142b8e(0x1bc),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x142b8e(0x2ad)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x142b8e(0x13f),'invalidConfig':_0x142b8e(0x269),'invalidApiKey':_0x142b8e(0x15f)},'connectionStatus':{'disconnected':_0x142b8e(0x254),'connecting':_0x142b8e(0x1fe),'connected':_0x142b8e(0x13b),'failed':_0x142b8e(0x15a),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x142b8e(0x20b),'sessionOccupied':_0x142b8e(0x27c),'networkError':_0x142b8e(0x256),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x1d8db9={'mcpStatus':{'disconnected':_0x142b8e(0x214),'connecting':_0x142b8e(0x286),'connected':_0x142b8e(0x1c7),'failed':_0x142b8e(0x1c5),'retrying':_0x142b8e(0x21f),'unknown':_0x142b8e(0x236),'unauthorized':_0x142b8e(0x2b7),'sessionOccupied':_0x142b8e(0x1b6),'networkError':_0x142b8e(0x2c0),'maxRetriesExceeded':_0x142b8e(0x27e),'clickToConnect':_0x142b8e(0x1dd),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x142b8e(0x155),'description':_0x142b8e(0x277),'apiKey':_0x142b8e(0x217),'apiKeyPlaceholder':_0x142b8e(0x16a),'apiKeyHint':_0x142b8e(0x271),'enableAuth':_0x142b8e(0x138),'enableAuthHint':_0x142b8e(0x22e),'connectionInfo':_0x142b8e(0x1b0),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x142b8e(0x18f),'configStep1':_0x142b8e(0x201),'configStep2':_0x142b8e(0x198),'configStep3':_0x142b8e(0x2b5),'sessionId':_0x142b8e(0x14c),'sessionIdDescription':_0x142b8e(0x1a1),'authorizationDescription':_0x142b8e(0x15d),'configParameters':'配置参数:','maxRetries':_0x142b8e(0x240),'save':'保存配置','saving':_0x142b8e(0x1a4),'note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x142b8e(0x25c),'configError':_0x142b8e(0x1f9),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x142b8e(0x280),'univerAiLabel':_0x142b8e(0x150),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x142b8e(0x1c4),'apiKeyTooShort':_0x142b8e(0x226),'invalidConfig':_0x142b8e(0x21b),'invalidApiKey':_0x142b8e(0x27d)},'connectionStatus':{'disconnected':_0x142b8e(0x23c),'connecting':_0x142b8e(0x26d),'connected':_0x142b8e(0x242),'failed':_0x142b8e(0x267),'retrying':_0x142b8e(0x1a0)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x142b8e(0x169),'networkError':_0x142b8e(0x2b6),'maxRetriesExceeded':_0x142b8e(0x193)}}};var _0x29a8c9=Object[_0x142b8e(0x1e3)],_0x32e4ec=Object[_0x142b8e(0x1d3)],_0x13fb4f=(_0x4211f5,_0x45cee2,_0x41d30b)=>_0x45cee2 in _0x4211f5?_0x29a8c9(_0x4211f5,_0x45cee2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41d30b}):_0x4211f5[_0x45cee2]=_0x41d30b,_0x1bf425=(_0x435aa6,_0x2afded,_0x35ffaa,_0xdeae77)=>{for(var _0x174183=_0xdeae77>0x1?void 0x0:_0xdeae77?_0x32e4ec(_0x2afded,_0x35ffaa):_0x2afded,_0x12cef5=_0x435aa6['length']-0x1,_0x4478a3;_0x12cef5>=0x0;_0x12cef5--)(_0x4478a3=_0x435aa6[_0x12cef5])&&(_0x174183=_0x4478a3(_0x174183)||_0x174183);return _0x174183;},_0x19085f=(_0x4c8f47,_0x56550c)=>(_0x555f9d,_0x56f676)=>_0x56550c(_0x555f9d,_0x56f676,_0x4c8f47),_0x534a64=(_0x3c78fa,_0x16ffbd,_0x518e22)=>_0x13fb4f(_0x3c78fa,_0x16ffbd+'',_0x518e22);_0x546bea[_0x142b8e(0x2bf)]=class extends _0xe1b353[_0x142b8e(0x1e5)]{constructor(_0xcb58d1=_0x3355ac,_0xe3e8da,_0x2b24d6,_0x3871bd,_0x39998f,_0x222fdf){const _0x3ece50=_0x142b8e;super(),this[_0x3ece50(0x2a4)]=_0xcb58d1,this[_0x3ece50(0x13c)]=_0xe3e8da,this[_0x3ece50(0x237)]=_0x2b24d6,this[_0x3ece50(0x196)]=_0x3871bd,this['_localStorageService']=_0x39998f,this['_localeService']=_0x222fdf;const {..._0x1c1aa9}=_0xe1b353[_0x3ece50(0x178)]({},_0x3355ac,this['_config']);this[_0x3ece50(0x237)]['setConfig'](_0x29a392,_0x1c1aa9);}async[_0x142b8e(0x141)](){const _0xb11904=_0x142b8e,_0x1e0198=[[_0x546bea[_0xb11904(0x20d)]],[_0x546bea['MCPConfigUIController']],[_0x546bea[_0xb11904(0x1fa)]]];this[_0xb11904(0x13c)]['has'](_0x579370[_0xb11904(0x202)])||_0x1e0198[_0xb11904(0x165)]([_0x579370[_0xb11904(0x202)],{'useClass':_0x579370[_0xb11904(0x275)]}]),_0x1e0198['forEach'](_0x2b5614=>this[_0xb11904(0x13c)]['add'](_0x2b5614)),this[_0xb11904(0x13c)][_0xb11904(0x171)](_0x546bea[_0xb11904(0x20d)]),this[_0xb11904(0x13c)][_0xb11904(0x171)](_0x546bea[_0xb11904(0x26e)]),this['_injector'][_0xb11904(0x171)](_0x546bea[_0xb11904(0x1fa)]);}},_0x534a64(_0x546bea[_0x142b8e(0x2bf)],_0x142b8e(0x17a),'MCP_UI_PLUGIN'),_0x546bea[_0x142b8e(0x2bf)]=_0x1bf425([_0xe1b353['DependentOn'](_0x25b1cd[_0x142b8e(0x293)]),_0x19085f(0x1,_0xe1b353[_0x142b8e(0x285)](_0xe1b353['Injector'])),_0x19085f(0x2,_0xe1b353[_0x142b8e(0x142)]),_0x19085f(0x3,_0x426649[_0x142b8e(0x278)]),_0x19085f(0x4,_0xe1b353['ILocalStorageService']),_0x19085f(0x5,_0xe1b353[_0x142b8e(0x285)](_0xe1b353[_0x142b8e(0x2b0)]))],_0x546bea[_0x142b8e(0x2bf)]),_0x546bea[_0x142b8e(0x289)]=_0x250ae2,_0x546bea[_0x142b8e(0x16e)]=_0x2ae910,_0x546bea['OpenMCPConfigPanelCommand']=_0x40125f,_0x546bea[_0x142b8e(0x233)]=_0x45a0e9,_0x546bea['zhCN']=_0x1d8db9,Object[_0x142b8e(0x1e3)](_0x546bea,Symbol[_0x142b8e(0x299)],{'value':'Module'});}));function _0x3f32(_0x1d710b,_0x12d623){_0x1d710b=_0x1d710b-0x130;const _0x4396ab=_0x4396();let _0x3f3252=_0x4396ab[_0x1d710b];return _0x3f3252;}function _0x4396(){const _0x5f8d06=['_validateConfig','重连中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','close','mcpConfig.apiApplyInfo.title','保存中...','mcpStatus.sessionOccupied','MAX_RETRIES_EXCEEDED','mcpStatus.connecting','exports','univer_session_id:','connectionError$','evenodd','http','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.connectionError.unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20客户端配置','clipPath','BUTTON','mcpStatus.failed','mcpStatus.unauthorized','mcp-ui.command.openConfigPanel','MCP:\x20会话\x20ID\x20已被占用','univer-flex-1','getConfig','open','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','forEach','Failed\x20to\x20save\x20configuration','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_handleConfigSave','help-icon','univer-text-gray-500','univer-text-white','validateApiKey','API\x20Key','API\x20密钥不能为空','MCP\x20连接失败','Click\x20to\x20configure\x20MCP','MCP\x20已连接','_commandService','Success','on-line-icon_clip0_910_349','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','noopener\x20noreferrer','MCP_PLUGIN_CONFIG_KEY','IMessageService','span','round','UniverProMcpUi','ComponentManager','getOwnPropertyDescriptor','registerComponent','mcpStatus.connected','univer-text-blue-600','mcpStatus.unknown','defs','univer.plus','string','_connectionController','mcpConfig.configInstructions','点击连接\x20MCP','mcpConfig.apiApplyInfo.description','_handleConfigure','forwardRef','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','defineProperty','mcpConfig.configStep2','Plugin','MCP:\x20Max\x20Retries\x20Exceeded','tag','removeItem','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','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-text-sm\x20univer-font-medium','@univerjs/ui','univer-font-medium','replace','currentColor','NONE','0\x200\x2017\x2016','IMenuManagerService','mcpConfig.configStepTitle','0\x200\x2016\x2016','1em','Configuration\x20saved\x20successfully','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','show','配置保存失败','MCPUIMenuController','current','mcpConfig.saving','univer-flex\x20univer-items-start\x20univer-gap-3','Connecting...','substring','MenuItemType','复制以下\x20JSON\x20配置','ISocketService','rxjs','_loadStoredApiKey','connectInjector','HEADER_MENU','none','_loading$','mcpConfig.connectionStatus.connected','mcpServerUrl','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','isValid','MCPConnectionUIController','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','OnLineIcon','path','MCPConnectionError','univer-text-xs\x20univer-text-gray-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MCP\x20已断开','apiKey','off-line-icon_clip0_910_343','API\x20密钥','\x20-\x20','mcpConfig.sessionIdDescription','@univerjs/design','配置无效','_initializeMenus','_apiKey$','UniverIcon','MCP\x20重连中...','univer-text-green-500','text','CONNECTED','label','displayName','_createConfigPanelComponent','API\x20密钥长度至少需要\x2010\x20位','value','mcpConfig.note1','enableAutoConnect','getItem','useCallback','warn','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','启用身份验证以获得安全连接','mcpStatus.retrying','https://mcp.univer.ai/mcp/?univer_session_id=','defIds','subscribeConfigValue$','enUS','Configuration\x20Parameters:','_initAutoConnect','MCP\x20状态未知','_configService','916825LqQWza','univer.ai','registerCommand','UniverUi','未连接','url(#on-line-icon_clip0_910_349)','mcpConfig.apiKey','useState','最大重试次数','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','已连接','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','3373848FdrWyA','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','402980ZDEwUf','https://console.univer.plus','useDependency','CONNECTING','univer-space-y-5','univer-text-sm\x20univer-text-gray-500','colorChannel1','mcpConfig.authorizationDescription','_initializeCommands','<SESSION_ID>','@univerjs/network','_dialogService','svg','HelpIcon','Disconnected','mask','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.title','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.connectionStatus.failed','Enable\x20authentication\x20for\x20secure\x20connections','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','配置保存成功','sessionId$','@univerjs/core','_componentManager','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','getCurrentConfig','mcpConfig.configStep1','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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','xlink:href','连接失败','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20configuration','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','connectionStatus$','_menuManagerService','连接中...','MCPConfigUIController','setItem','children','您的\x20API\x20密钥将在此浏览器中本地存储','showDeveloperTools','Save\x20Configuration','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','WebSocketService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','配置\x20MCP\x20使用\x20AI\x20操作电子表格','IUIPartsService','mcpConfig.connectionError.sessionOccupied','SESSION_ID_OCCUPIED','map','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20密钥无效,请检查密钥是否正确','MCP:\x20超出最大重试次数','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','ILocalStorageService','univer-space-y-4','mcpStatus.clickToConnect','trim','Inject','MCP\x20连接中...','mcpStatus.maxRetriesExceeded','react','MCPConfigPanel','disposeWithMe','mcpConfig.description','stringify','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','close-icon','279EbxVey','univer-flex\x20univer-flex-wrap\x20univer-gap-2','892039pXZRug','FAILED','UniverMCPPlugin','25232TqEGNl','mcpConfig.configStep3','div','mcpConfig.validation.invalidConfig','univer-bg-green-500','toStringTag','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','mcpConfig.note2','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','Tooltip','univer-space-y-2','univer-flex\x20univer-gap-3','univerjs-icon\x20univerjs-icon-','mcpStatus.disconnected','mcpConfig.connectionInfo','_config','clsx','CheckMarkIcon','univer-text-red-500','errorMessage','mcpConfig.validation.apiKeyTooShort','_initConfigSync','MessageType','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Get\x20your\x20API\x20key\x20in\x20seconds','667272ofLWyp','mcpConfig.connectionStatus.retrying','LocaleService','mcp.apiKey','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','subscribe','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','重启您的\x20MCP\x20客户端以使配置生效','网络连接错误,请检查您的网络连接','MCP:\x20未授权','mcpConfig.connectionError.networkError','UniverCore','random','_mcpConnectionController','_localStorageService','url(#$1','Injector','UniverMCPUIPlugin','MCP:\x20网络错误','_initStatusComponent','showConfigPanel','univer-min-w-0\x20univer-flex-1','univer-bg-red-500','UniverNetwork','mcpConfig.apiKeyPlaceholder','univer-shrink-0\x20univer-text-blue-500','white','_registerComponent','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.configParameters','univer-size-2\x20univer-rounded-full','showStatus','mcpConfig.apiKeyHint','https://console.univer.ai','mergeMenu','启用身份验证','Session\x20ID','MCP\x20Retrying...','Connected','_injector','MCP:\x20Network\x20Error','check-mark-icon','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20Authentication','onStarting','IConfigService','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','off','useObservable','univer-text-xs\x20univer-text-gray-600','mcpConfig.configError','MCP\x20Connecting...','DISCONNECTED','_localeService','univer-size-4','会话ID','1350598eBgvDa','_config$','ICommandService','Univer\x20AI\x20控制台','univer-flex\x20univer-items-start\x20univer-gap-2','next','UniverDesign','fill','MCP\x20配置','MCPConnectionStatus','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','symbol','Bearer\x20','Connection\x20Failed','UNAUTHORIZED','MCP\x20Disconnected','带有\x20Bearer\x20前缀的\x20API\x20密钥。','entries','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','BuiltInUIPart','__setCustomHeaders','jsx','translate(.97)','Error','push','mcpConfig.configSaved','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-space-y-3','会话\x20ID\x20已被占用,请稍后再试','请输入您的\x20API\x20密钥','mcpStatus.networkError','BehaviorSubject','Configuration\x20Notes:','MCPStatusDisplay','_mcpCoreConfig$','M0\x200H16V16H0z','get','_messageService','NETWORK_ERROR','Disposable','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-3','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','merge','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','pluginName','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','IDialogService','toString','bottom','error','Configuration\x20Steps:','MCP\x20Configuration','http://www.w3.org/2000/svg','attrs','UniverProMcp','createElement','idSuffix','includes','jsxs','assign','Click\x20to\x20connect\x20MCP','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','RETRYING','length','Input','配置步骤:','MCPConnectionController','3FJpDUV','mcpConfig.connectionStatus.connecting','超出最大重试次数,请稍后再试','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_logService','_uiPartsService','button','将配置添加到您的\x20MCP\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','use','React','univer-text-gray-400','RibbonStartGroup','CommandType'];_0x4396=function(){return _0x5f8d06;};return _0x4396();}
|