@univerjs-pro/mcp-ui 0.15.0-insiders.20260110-48b77c8 → 0.15.1
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 +7 -7
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2b27cf=_0x190f;function _0x3e4a(){const _0x90b9c5=['설정이\x20성공적으로\x20저장되었습니다','MCP\x20재시도\x20중...','연결\x20끊김','설정\x20저장','아래\x20JSON\x20설정\x20복사','MCP\x20설정','37625gFcMvn','클릭하여\x20MCP\x20설정','Univer\x20AI\x20콘솔','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP:\x20네트워크\x20오류','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20연결\x20중...','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','MCP:\x20최대\x20재시도\x20횟수\x20초과','몇\x20초\x20만에\x20API\x20키\x20발급받기','설정\x20매개변수:','유효하지\x20않은\x20설정','최대\x20재시도\x20횟수','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','1721590ttXkDu','1123000QqNzFc','MCP\x20연결\x20끊김','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','MCP\x20클라이언트\x20설정','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','2298513hvFZhC','설정\x20저장\x20실패','인증\x20활성화','MCP\x20연결\x20실패','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','저장\x20중...','256311dUioAt','3400SnEUEw','MCP\x20연결됨','42VSxJEO','11494MEBTll','API\x20키를\x20입력하세요','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','2511yFPPHA','API\x20키는\x20필수입니다','세션\x20ID','84fOMdrC'];_0x3e4a=function(){return _0x90b9c5;};return _0x3e4a();}(function(_0x15b48c,_0x33ebd1){const _0x40246c=_0x190f,_0x421657=_0x15b48c();while(!![]){try{const _0x2c88b6=parseInt(_0x40246c(0x1af))/0x1*(parseInt(_0x40246c(0x1b0))/0x2)+parseInt(_0x40246c(0x1ac))/0x3+-parseInt(_0x40246c(0x1a1))/0x4+-parseInt(_0x40246c(0x1bd))/0x5*(-parseInt(_0x40246c(0x1b6))/0x6)+parseInt(_0x40246c(0x1a6))/0x7+-parseInt(_0x40246c(0x1ad))/0x8*(parseInt(_0x40246c(0x1b3))/0x9)+-parseInt(_0x40246c(0x1a0))/0xa;if(_0x2c88b6===_0x33ebd1)break;else _0x421657['push'](_0x421657['shift']());}catch(_0x242e78){_0x421657['push'](_0x421657['shift']());}}}(_0x3e4a,0x2e26c));const e={'mcpStatus':{'disconnected':_0x2b27cf(0x1a2),'connecting':_0x2b27cf(0x1c3),'connected':_0x2b27cf(0x1ae),'failed':_0x2b27cf(0x1a9),'retrying':_0x2b27cf(0x1b8),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':'MCP:\x20인증되지\x20않음','sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x2b27cf(0x1c1),'maxRetriesExceeded':_0x2b27cf(0x1c5),'clickToConnect':'클릭하여\x20MCP\x20연결','clickToConfigure':_0x2b27cf(0x1be)},'mcpConfig':{'title':_0x2b27cf(0x1bc),'description':_0x2b27cf(0x19f),'apiKey':'API\x20키','apiKeyPlaceholder':_0x2b27cf(0x1b1),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x2b27cf(0x1a8),'enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':_0x2b27cf(0x1a4),'mcpClientConfig':_0x2b27cf(0x1a4),'configInstructions':'MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','configStepTitle':'설정\x20단계:','configStep1':_0x2b27cf(0x1bb),'configStep2':_0x2b27cf(0x1c4),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':_0x2b27cf(0x1b5),'sessionIdDescription':_0x2b27cf(0x1b2),'authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':_0x2b27cf(0x19c),'maxRetries':_0x2b27cf(0x19e),'save':_0x2b27cf(0x1ba),'saving':_0x2b27cf(0x1ab),'note1':_0x2b27cf(0x1c2),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':_0x2b27cf(0x1b7),'configError':_0x2b27cf(0x1a7),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':_0x2b27cf(0x1aa),'univerAiLabel':_0x2b27cf(0x1bf),'getStarted':_0x2b27cf(0x19b)},'validation':{'apiKeyRequired':_0x2b27cf(0x1b4),'apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':_0x2b27cf(0x19d),'invalidApiKey':_0x2b27cf(0x1a5)},'connectionStatus':{'disconnected':_0x2b27cf(0x1b9),'connecting':'연결\x20중...','connected':'연결됨','failed':'연결\x20실패','retrying':'재시도\x20중...'},'connectionError':{'unauthorized':'인증\x20실패.\x20API\x20키를\x20확인하세요','sessionOccupied':_0x2b27cf(0x1a3),'networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x2b27cf(0x1c0)}}};function _0x190f(_0x31e344,_0x15fd7f){_0x31e344=_0x31e344-0x19b;const _0x3e4aa9=_0x3e4a();let _0x190f37=_0x3e4aa9[_0x31e344];return _0x190f37;}export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x289db2=_0x2ab2;(function(_0x3a1977,_0x48a065){const _0x27bef7=_0x2ab2,_0x26ade5=_0x3a1977();while(!![]){try{const _0x105785=parseInt(_0x27bef7(0x106))/0x1*(-parseInt(_0x27bef7(0x101))/0x2)+parseInt(_0x27bef7(0xf7))/0x3*(parseInt(_0x27bef7(0xfd))/0x4)+-parseInt(_0x27bef7(0xf4))/0x5*(parseInt(_0x27bef7(0xee))/0x6)+parseInt(_0x27bef7(0xf2))/0x7+parseInt(_0x27bef7(0x10e))/0x8+-parseInt(_0x27bef7(0xfb))/0x9*(-parseInt(_0x27bef7(0xfe))/0xa)+-parseInt(_0x27bef7(0xe6))/0xb;if(_0x105785===_0x48a065)break;else _0x26ade5['push'](_0x26ade5['shift']());}catch(_0x34f434){_0x26ade5['push'](_0x26ade5['shift']());}}}(_0xd0e1,0xee437));function _0x2ab2(_0x346f25,_0x5435b9){_0x346f25=_0x346f25-0xe4;const _0xd0e115=_0xd0e1();let _0x2ab2ee=_0xd0e115[_0x346f25];return _0x2ab2ee;}function _0xd0e1(){const _0x26a26e=['Save\x20Configuration','Invalid\x20configuration','Enable\x20Authentication','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20ID','MCP\x20Connection\x20Failed','120642BoiqSt','Configuration\x20saved\x20successfully','Connected','Max\x20Retries','5944029TAJzIy','MCP\x20Client\x20Configuration','75opwSJT','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','3mHnydN','Disconnected','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','1125FVrvKo','Connection\x20Failed','7621496rHSScZ','23950pfFQgv','MCP\x20Retrying...','MCP:\x20Network\x20Error','371386DXKHQB','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key','MCP:\x20Session\x20ID\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','3WmlbOU','MCP\x20Unknown\x20Status','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connecting...','9462928RxQQQh','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','26423661gHdpVK'];_0xd0e1=function(){return _0x26a26e;};return _0xd0e1();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x289db2(0x10d),'connected':'MCP\x20Connected','failed':_0x289db2(0xed),'retrying':_0x289db2(0xff),'unknown':_0x289db2(0x107),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x289db2(0x104),'networkError':_0x289db2(0x100),'maxRetriesExceeded':_0x289db2(0x10c),'clickToConnect':_0x289db2(0xf9),'clickToConfigure':_0x289db2(0x111)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x289db2(0x103),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x289db2(0x10f),'enableAuth':_0x289db2(0xe9),'enableAuthHint':_0x289db2(0x105),'connectionInfo':_0x289db2(0xf3),'mcpClientConfig':_0x289db2(0xf3),'configInstructions':_0x289db2(0x109),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x289db2(0xeb),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x289db2(0xea),'sessionId':_0x289db2(0xec),'sessionIdDescription':_0x289db2(0x108),'authorizationDescription':_0x289db2(0x10a),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x289db2(0xf1),'save':_0x289db2(0xe7),'saving':'Saving...','note1':_0x289db2(0x10b),'note2':_0x289db2(0x102),'configSaved':_0x289db2(0xef),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x289db2(0x110),'univerAiLabel':_0x289db2(0xfa),'getStarted':_0x289db2(0xe4)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x289db2(0xe8),'invalidApiKey':_0x289db2(0xe5)},'connectionStatus':{'disconnected':_0x289db2(0xf8),'connecting':'Connecting...','connected':_0x289db2(0xf0),'failed':_0x289db2(0xfc),'retrying':_0x289db2(0xf6)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x289db2(0xf5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x490765=_0x44a5;(function(_0x119669,_0x664bf5){const _0x5c73b2=_0x44a5,_0x2d38e2=_0x119669();while(!![]){try{const _0xcfaccb=parseInt(_0x5c73b2(0x19b))/0x1*(parseInt(_0x5c73b2(0x198))/0x2)+parseInt(_0x5c73b2(0x1a9))/0x3*(parseInt(_0x5c73b2(0x19d))/0x4)+-parseInt(_0x5c73b2(0x185))/0x5*(-parseInt(_0x5c73b2(0x17a))/0x6)+-parseInt(_0x5c73b2(0x197))/0x7*(-parseInt(_0x5c73b2(0x199))/0x8)+parseInt(_0x5c73b2(0x189))/0x9*(-parseInt(_0x5c73b2(0x194))/0xa)+parseInt(_0x5c73b2(0x182))/0xb+parseInt(_0x5c73b2(0x17d))/0xc*(-parseInt(_0x5c73b2(0x1ab))/0xd);if(_0xcfaccb===_0x664bf5)break;else _0x2d38e2['push'](_0x2d38e2['shift']());}catch(_0x2f1190){_0x2d38e2['push'](_0x2d38e2['shift']());}}}(_0x5101,0x94a98));const n={'mcpStatus':{'disconnected':_0x490765(0x1ac),'connecting':_0x490765(0x1af),'connected':_0x490765(0x196),'failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':_0x490765(0x1ad),'unknown':'MCP\x20Trạng\x20thái\x20không\x20xác\x20định','unauthorized':_0x490765(0x190),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x490765(0x183),'maxRetriesExceeded':_0x490765(0x191),'clickToConnect':_0x490765(0x17c),'clickToConfigure':_0x490765(0x192)},'mcpConfig':{'title':'Cấu\x20hình\x20MCP','description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':'Khóa\x20API','apiKeyPlaceholder':'Nhập\x20khóa\x20API\x20của\x20bạn','apiKeyHint':_0x490765(0x1a5),'enableAuth':_0x490765(0x18c),'enableAuthHint':_0x490765(0x18d),'connectionInfo':_0x490765(0x18f),'mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':_0x490765(0x19c),'configStepTitle':_0x490765(0x19a),'configStep1':_0x490765(0x1a6),'configStep2':_0x490765(0x193),'configStep3':_0x490765(0x1aa),'sessionId':_0x490765(0x18e),'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':_0x490765(0x1a3),'configParameters':_0x490765(0x1ae),'maxRetries':_0x490765(0x180),'save':_0x490765(0x1a8),'saving':_0x490765(0x17b),'note1':_0x490765(0x178),'note2':_0x490765(0x1a1),'configSaved':'Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','configError':_0x490765(0x19f),'apiApplyInfo':{'title':_0x490765(0x19e),'description':_0x490765(0x187),'univerAiLabel':_0x490765(0x17f),'getStarted':'Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây'},'validation':{'apiKeyRequired':_0x490765(0x18a),'apiKeyTooShort':_0x490765(0x1a7),'invalidConfig':_0x490765(0x18b),'invalidApiKey':_0x490765(0x1a0)},'connectionStatus':{'disconnected':_0x490765(0x184),'connecting':_0x490765(0x1a2),'connected':_0x490765(0x179),'failed':_0x490765(0x17e),'retrying':_0x490765(0x188)},'connectionError':{'unauthorized':_0x490765(0x195),'sessionOccupied':_0x490765(0x1a4),'networkError':_0x490765(0x186),'maxRetriesExceeded':_0x490765(0x181)}}};function _0x44a5(_0x5b8228,_0x3705ba){_0x5b8228=_0x5b8228-0x178;const _0x51016e=_0x5101();let _0x44a5d7=_0x51016e[_0x5b8228];return _0x44a5d7;}function _0x5101(){const _0x41fccc=['8452774dlktXj','MCP:\x20Lỗi\x20mạng','Đã\x20ngắt\x20kết\x20nối','5GVXicD','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','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.','Đang\x20thử\x20lại...','338571JNSYoj','Yêu\x20cầu\x20khóa\x20API','Cấu\x20hình\x20không\x20hợp\x20lệ','Bật\x20xác\x20thực','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','ID\x20phiên','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP:\x20Không\x20được\x20phép','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Nhấp\x20để\x20cấu\x20hình\x20MCP','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','10dugEzB','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','MCP\x20Đã\x20kết\x20nối','498302mFOHHd','2hKTlnv','24hwWPQR','Các\x20bước\x20cấu\x20hình:','1054579hjrpRb','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','2005416fopUyn','Khóa\x20API\x20là\x20gì?','Lưu\x20cấu\x20hình\x20thất\x20bại','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Đang\x20kết\x20nối...','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Lưu\x20cấu\x20hình','3xGyAXa','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','24323GZfjeL','MCP\x20Đã\x20ngắt\x20kết\x20nối','MCP\x20Đang\x20thử\x20lại...','Tham\x20số\x20cấu\x20hình:','MCP\x20Đang\x20kết\x20nối...','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Đã\x20kết\x20nối','2223918VrcacT','Đang\x20lưu...','Nhấp\x20để\x20kết\x20nối\x20MCP','14508dyjQxn','Kết\x20nối\x20thất\x20bại','Bảng\x20điều\x20khiển\x20Univer\x20AI','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'];_0x5101=function(){return _0x41fccc;};return _0x5101();}export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4f1236=_0x5443;function _0x5443(_0x48d962,_0x153c29){_0x48d962=_0x48d962-0x1aa;const _0x3a6973=_0x3a69();let _0x54431a=_0x3a6973[_0x48d962];return _0x54431a;}(function(_0x5a9064,_0x3c109d){const _0x724a=_0x5443,_0x44585f=_0x5a9064();while(!![]){try{const _0x4b1398=parseInt(_0x724a(0x1d0))/0x1*(parseInt(_0x724a(0x1d6))/0x2)+parseInt(_0x724a(0x1d1))/0x3+parseInt(_0x724a(0x1aa))/0x4+-parseInt(_0x724a(0x1c1))/0x5*(parseInt(_0x724a(0x1c8))/0x6)+parseInt(_0x724a(0x1ad))/0x7*(-parseInt(_0x724a(0x1c7))/0x8)+-parseInt(_0x724a(0x1ce))/0x9+parseInt(_0x724a(0x1c4))/0xa;if(_0x4b1398===_0x3c109d)break;else _0x44585f['push'](_0x44585f['shift']());}catch(_0x282e54){_0x44585f['push'](_0x44585f['shift']());}}}(_0x3a69,0xc0527));const e={'mcpStatus':{'disconnected':_0x4f1236(0x1c3),'connecting':_0x4f1236(0x1ba),'connected':_0x4f1236(0x1cb),'failed':'MCP\x20连接失败','retrying':_0x4f1236(0x1d9),'unknown':_0x4f1236(0x1db),'unauthorized':_0x4f1236(0x1b4),'sessionOccupied':_0x4f1236(0x1dd),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x4f1236(0x1b6),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x4f1236(0x1cf)},'mcpConfig':{'title':_0x4f1236(0x1ca),'description':_0x4f1236(0x1ac),'apiKey':_0x4f1236(0x1ab),'apiKeyPlaceholder':_0x4f1236(0x1b2),'apiKeyHint':_0x4f1236(0x1d5),'enableAuth':_0x4f1236(0x1b0),'enableAuthHint':_0x4f1236(0x1ae),'connectionInfo':_0x4f1236(0x1d4),'mcpClientConfig':_0x4f1236(0x1d4),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4f1236(0x1bf),'configStep1':_0x4f1236(0x1bc),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4f1236(0x1d3),'sessionId':'会话ID','sessionIdDescription':_0x4f1236(0x1bb),'authorizationDescription':_0x4f1236(0x1cc),'configParameters':_0x4f1236(0x1af),'maxRetries':_0x4f1236(0x1d8),'save':'保存配置','saving':_0x4f1236(0x1c6),'note1':_0x4f1236(0x1b3),'note2':_0x4f1236(0x1da),'configSaved':_0x4f1236(0x1be),'configError':_0x4f1236(0x1de),'apiApplyInfo':{'title':_0x4f1236(0x1b8),'description':_0x4f1236(0x1d2),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x4f1236(0x1b1)},'validation':{'apiKeyRequired':_0x4f1236(0x1b5),'apiKeyTooShort':_0x4f1236(0x1c0),'invalidConfig':_0x4f1236(0x1d7),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x4f1236(0x1b9),'connecting':'连接中...','connected':_0x4f1236(0x1c2),'failed':_0x4f1236(0x1cd),'retrying':_0x4f1236(0x1dc)},'connectionError':{'unauthorized':_0x4f1236(0x1bd),'sessionOccupied':_0x4f1236(0x1c9),'networkError':_0x4f1236(0x1c5),'maxRetriesExceeded':_0x4f1236(0x1b7)}}};export{e as default};function _0x3a69(){const _0x2cb84b=['重连中...','MCP:\x20会话\x20ID\x20已被占用','配置保存失败','6247808pFMXgo','API\x20密钥','配置\x20MCP\x20使用\x20AI\x20操作电子表格','7753830WNTFLG','启用身份验证以获得安全连接','配置参数:','启用身份验证','几秒钟内获取您的\x20API\x20密钥','请输入您的\x20API\x20密钥','配置更改将立即生效','MCP:\x20未授权','API\x20密钥不能为空','MCP:\x20超出最大重试次数','超出最大重试次数,请稍后再试','什么是\x20API\x20密钥?','未连接','MCP\x20连接中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','复制以下\x20JSON\x20配置','权限验证失败,请检查您的\x20API\x20密钥','配置保存成功','配置步骤:','API\x20密钥长度至少需要\x2010\x20位','15znieMC','已连接','MCP\x20已断开','5483730uDuYxw','网络连接错误,请检查您的网络连接','保存中...','8gbyohn','1893822nNvJyY','会话\x20ID\x20已被占用,请稍后再试','MCP\x20配置','MCP\x20已连接','带有\x20Bearer\x20前缀的\x20API\x20密钥。','连接失败','8506557ZTcmps','点击配置\x20MCP','26sipsTk','3761916nxxjmg','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20客户端配置','您的\x20API\x20密钥将在此浏览器中本地存储','32556HxoxXK','配置无效','最大重试次数','MCP\x20重连中...','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20状态未知'];_0x3a69=function(){return _0x2cb84b;};return _0x3a69();}
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2fdfa9=_0x58aa;(function(_0x6739c4,_0x3f2b9f){const _0x5c4558=_0x58aa,_0x366a2d=_0x6739c4();while(!![]){try{const _0x1ee843=parseInt(_0x5c4558(0xc0))/0x1*(parseInt(_0x5c4558(0xb4))/0x2)+parseInt(_0x5c4558(0xa9))/0x3+-parseInt(_0x5c4558(0xcf))/0x4+parseInt(_0x5c4558(0xc8))/0x5+parseInt(_0x5c4558(0xad))/0x6*(parseInt(_0x5c4558(0xc7))/0x7)+parseInt(_0x5c4558(0xcb))/0x8+-parseInt(_0x5c4558(0xc6))/0x9*(parseInt(_0x5c4558(0xc3))/0xa);if(_0x1ee843===_0x3f2b9f)break;else _0x366a2d['push'](_0x366a2d['shift']());}catch(_0x1938a2){_0x366a2d['push'](_0x366a2d['shift']());}}}(_0x2b1c,0x5d527));const e={'mcpStatus':{'disconnected':_0x2fdfa9(0xae),'connecting':'MCP\x20Connecting...','connected':_0x2fdfa9(0xba),'failed':_0x2fdfa9(0xbc),'retrying':_0x2fdfa9(0xc5),'unknown':_0x2fdfa9(0xa4),'unauthorized':_0x2fdfa9(0xbd),'sessionOccupied':_0x2fdfa9(0xb9),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2fdfa9(0xd0),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2fdfa9(0xbb)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2fdfa9(0xc1),'apiKeyPlaceholder':_0x2fdfa9(0xaf),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2fdfa9(0xc9),'enableAuthHint':_0x2fdfa9(0xc2),'connectionInfo':_0x2fdfa9(0xaa),'mcpClientConfig':_0x2fdfa9(0xaa),'configInstructions':_0x2fdfa9(0xce),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2fdfa9(0xc4),'configStep2':_0x2fdfa9(0xb7),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x2fdfa9(0xa8),'authorizationDescription':_0x2fdfa9(0xa3),'configParameters':_0x2fdfa9(0xbf),'maxRetries':'Max\x20Retries','save':_0x2fdfa9(0xb1),'saving':_0x2fdfa9(0xd1),'note1':_0x2fdfa9(0xac),'note2':_0x2fdfa9(0xb0),'configSaved':_0x2fdfa9(0xb2),'configError':_0x2fdfa9(0xa7),'apiApplyInfo':{'title':_0x2fdfa9(0xcd),'description':_0x2fdfa9(0xca),'univerAiLabel':_0x2fdfa9(0xbe),'getStarted':_0x2fdfa9(0xcc)},'validation':{'apiKeyRequired':_0x2fdfa9(0xb6),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2fdfa9(0xa6)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2fdfa9(0xb5),'connected':'Connected','failed':_0x2fdfa9(0xa2),'retrying':_0x2fdfa9(0xa5)},'connectionError':{'unauthorized':_0x2fdfa9(0xa1),'sessionOccupied':_0x2fdfa9(0xab),'networkError':_0x2fdfa9(0xb8),'maxRetriesExceeded':_0x2fdfa9(0xb3)}}},n=e;function _0x58aa(_0x281a16,_0x4bbba8){_0x281a16=_0x281a16-0xa1;const _0x2b1cc4=_0x2b1c();let _0x58aafe=_0x2b1cc4[_0x281a16];return _0x58aafe;}export{n as default};function _0x2b1c(){const _0x1c16c7=['API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','5541040oKYwJE','Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1034400hihYqY','MCP:\x20Max\x20Retries\x20Exceeded','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Unknown\x20Status','Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1996701zsGkxD','MCP\x20Client\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','36lypbyP','MCP\x20Disconnected','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','Configuration\x20saved\x20successfully','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','60YdGUdz','Connecting...','API\x20key\x20is\x20required','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connected','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','Univer\x20AI\x20Console','Configuration\x20Parameters:','14349PVqjYU','API\x20Key','Enable\x20authentication\x20for\x20secure\x20connections','10YYTeVc','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Retrying...','14438187khnQZj','519813JiuRXZ','54345vJDvHL','Enable\x20Authentication'];_0x2b1c=function(){return _0x1c16c7;};return _0x2b1c();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4b84(_0x1f8757,_0x1fafb3){_0x1f8757=_0x1f8757-0x114;const _0x241d7d=_0x241d();let _0x4b8434=_0x241d7d[_0x1f8757];return _0x4b8434;}function _0x241d(){const _0x482512=['What\x20is\x20API\x20Key?','off-line-icon_clip0_910_343','<SESSION_ID>','配置步骤:','0\x200\x2016\x2016','mcpConfig.connectionStatus.connecting','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','rxjs','Univer\x20AI\x20Console','mcpConfig.configStep3','\x20-\x20','currentColor','showStatus','会话\x20ID\x20已被占用,请稍后再试','MCPConnectionStatus','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20密钥不能为空','MCP:\x20Unauthorized','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','react','univer-flex\x20univer-gap-3','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Copy\x20the\x20JSON\x20configuration\x20below','_validateConfig','BuiltInUIPart','MenuIcon','map','MCPConnectionUIController','您的\x20API\x20密钥安全存储在本地存储中','Inject','Error','Click\x20to\x20connect\x20MCP','useObservable','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univerjs-icon\x20univerjs-icon-','random','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','<API_KEY>','__setCustomHeaders','M0\x200H16V16H0z','button','defineProperty','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-flex\x20univer-items-center','colorChannel1','mcpConfig.sessionIdDescription','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','配置保存失败','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCPStatusDisplay','mcpConfig.note2','Bearer\x20','univer-text-xs\x20univer-text-gray-600','trim','register','MessageType','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-text-yellow-500','UniverIcon','mcpStatus.unknown','BehaviorSubject','mcpConfig.description','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','includes','27735qdLacJ','useCallback','_initStatusComponent','MCP\x20已断开','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','mcpStatus.connecting','@univerjs/core','UniverNetwork','_localeService','BUTTON','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-text-xs\x20univer-text-gray-500','Configuration\x20Parameters:','onStarting','_configService','defs','API\x20key\x20is\x20required','HelpIcon','MCP:\x20未授权','forwardRef','连接中...','displayName','disposeWithMe','div','_menuManagerService','Module','getItem','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','@univerjs/network','CommandType','mcpStatus.clickToConnect','MCP\x20Configuration','useDependency','https://console.univer.ai','connectionStatus$','univer-bg-red-500','ComponentManager','univer-text-gray-500','_loadStoredApiKey','white','HEADER_MENU','mcpConfig.configError','MCP:\x20网络错误','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','errorMessage','toString','MCP\x20客户端配置','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-bg-green-500','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-flex-wrap\x20univer-gap-2','path','push','pluginName','_messageService','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','会话ID','1em','6054512UjyYrn','setItem','IDialogService','mcpStatus.clickToConfigure','attrs','getOwnPropertyDescriptor','mcpStatus.sessionOccupied','univer-text-blue-600','mcpConfig.connectionStatus.retrying','RibbonStartGroup','mcpConfig.configStep2','Disconnected','CheckMarkIcon','788590guwvpY','重连中...','svg','FAILED','MCP:\x20超出最大重试次数','DependentOn','on-line-icon','mcpConfig.configInstructions','mcpConfig.apiKey','UniverCore','subscribeConfigValue$','xlink:href','_loading$','_handleConfigSave','已连接','univer-text-red-500','MCPUIMenuController','showConfigPanel','univer-min-w-0\x20univer-flex-1','CloseIcon','useState','React','mcpStatus.connected','LocaleService','off','Enter\x20your\x20API\x20key','_componentManager','IMessageService','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','connectionError$','mcpConfig.title','univer-flex\x20univer-items-start\x20univer-gap-2','getCurrentConfig','showDeveloperTools','univer-shrink-0\x20univer-text-red-500','API\x20密钥长度至少需要\x2010\x20位','OffLineIcon','mcpConfig.save','univer.ai','mcpConfig.connectionStatus.connected','registerComponent','Save\x20Configuration','show','MAX_RETRIES_EXCEEDED','round','use','11129866ACdWiM','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','open','_mcpCoreConfig$','univer-space-y-2','string','useRef','mcpStatus.maxRetriesExceeded','removeItem','mcp-ui.config','sessionId$','启用身份验证以获得安全连接','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','substring','url(#off-line-icon_clip0_910_343)','Get\x20your\x20API\x20key\x20in\x20seconds','http://www.w3.org/2000/svg','MCP\x20Retrying...','Failed\x20to\x20save\x20configuration','_dialogService','您的\x20API\x20密钥将在此浏览器中本地存储','univer-size-2\x20univer-rounded-full','MCP\x20配置','Injector','subscribe','function','assign','http','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP_UI_PLUGIN','exports','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','IUIPartsService','MCP_PLUGIN_CONFIG_KEY','next','MCPConfigUIController','forEach','error','NETWORK_ERROR','CONNECTED','UniverMCPUIPlugin','MCP\x20Unknown\x20Status','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-space-y-4','merge','UniverProMcp','_handleConfigure','clsx','jsxs','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_localStorageService','mcpConfig.connectionError.sessionOccupied','mcpConfig.connectionError.networkError','Univer\x20AI\x20控制台','current','@univerjs-pro/mcp','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','amd','univer-space-y-5','配置保存成功','_injector','SESSION_ID_OCCUPIED','mcpConfig.configStepTitle','mcpConfig.validation.invalidConfig','Saving...','741772tSAyKo','label','MCPConfigPanel','_apiKey$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20状态未知','Success','mcpStatus.unauthorized','配置无效','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','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','IConfigService','_connectionController','MCP:\x20Network\x20Error','on-line-icon_clip0_910_349','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','ILogService','DISCONNECTED','什么是\x20API\x20密钥?','ILocalStorageService','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_config','_initAutoConnect','fill','Connection\x20Failed','MCP\x20重连中...','mcpConfig.note1','_mcpConnectionController','2120DMksQu','univer-text-white','mcp-config-dialog','noopener\x20noreferrer','jsx','univer-text-green-500','univer-flex\x20univer-items-start\x20univer-gap-3','UniverMCPPlugin','add','url(#on-line-icon_clip0_910_349)','univer-text-sm\x20univer-font-medium','Max\x20Retries','16803pdtCwS','toStringTag','mcpConfig.apiKeyPlaceholder','mcpServerUrl','none','isValid','Click\x20to\x20configure\x20MCP','点击配置\x20MCP','保存配置','enUS','RETRYING','复制以下\x20JSON\x20配置','idSuffix','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20连接失败','Button','Invalid\x20configuration','react/jsx-runtime','span','Session\x20ID','mcpConfig.validation.apiKeyRequired','connectInjector','配置更改将立即生效','MCP\x20连接中...','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-shrink-0\x20univer-text-blue-500','UniverProMcpUi','tag','Disposable','ICommandService','7PxYIBY','_uiPartsService','Connecting...','点击连接\x20MCP','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','univer-text-sm\x20univer-text-gray-500','value','_registerComponent','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','url(#$1','validateApiKey','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','ISocketService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','OnLineIcon','UNAUTHORIZED','mcpConfig.apiApplyInfo.description','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','@univerjs/design','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20密钥','stringify','连接失败','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20会话\x20ID\x20已被占用','将配置添加到您的\x20MCP\x20客户端设置文件中','重启您的\x20MCP\x20客户端以使配置生效','MenuItemType','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.apiKeyTooShort','clipPath','0\x200\x2017\x2016','univer-bg-blue-500','mcpConfig.configSaved','apiKey','mcpStatus.failed','length','3OUnLuV','MCPConnectionController','univer-space-y-3','get','replace','createElement','mcp.apiKey','enableAutoConnect','4294758eMVqSD','OTHERS','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.apiKeyHint','MCPConnectionError','MCP\x20已连接','CONNECTING','check-mark-icon','mcpConfig.connectionStatus.disconnected','mcpStatus.retrying','entries','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','748SAqcsr','close','univer-bg-gray-500','registerCommand','WebSocketService','Tooltip','保存中...','权限验证失败,请检查您的\x20API\x20密钥','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_logService','_config$','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpStatus.disconnected','warn','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','未连接','evenodd','Configuration\x20Notes:','Connected','MCP\x20Client\x20Configuration','_createConfigPanelComponent','bottom','NONE','defIds','Input','mask','getConfig'];_0x241d=function(){return _0x482512;};return _0x241d();}(function(_0x48ad8c,_0x57d781){const _0x4f9ba4=_0x4b84,_0x439a9d=_0x48ad8c();while(!![]){try{const _0x17d115=parseInt(_0x4f9ba4(0x196))/0x1+parseInt(_0x4f9ba4(0x206))/0x2*(parseInt(_0x4f9ba4(0x273))/0x3)+parseInt(_0x4f9ba4(0x287))/0x4*(-parseInt(_0x4f9ba4(0x14c))/0x5)+parseInt(_0x4f9ba4(0x27b))/0x6+parseInt(_0x4f9ba4(0x24d))/0x7*(-parseInt(_0x4f9ba4(0x189))/0x8)+-parseInt(_0x4f9ba4(0x22f))/0x9*(parseInt(_0x4f9ba4(0x223))/0xa)+parseInt(_0x4f9ba4(0x1c4))/0xb;if(_0x17d115===_0x57d781)break;else _0x439a9d['push'](_0x439a9d['shift']());}catch(_0x595bd9){_0x439a9d['push'](_0x439a9d['shift']());}}}(_0x241d,0xaa350),function(_0x41e6ef,_0x4e8187){const _0x4a4ee9=_0x4b84;typeof exports=='object'&&typeof module<'u'?_0x4e8187(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==_0x4a4ee9(0x1de)&&define[_0x4a4ee9(0x1fe)]?define([_0x4a4ee9(0x1e3),_0x4a4ee9(0x152),_0x4a4ee9(0x240),_0x4a4ee9(0x1fc),_0x4a4ee9(0x25f),'@univerjs/ui',_0x4a4ee9(0x2ab),_0x4a4ee9(0x11e),_0x4a4ee9(0x169)],_0x4e8187):(_0x41e6ef=typeof globalThis<'u'?globalThis:_0x41e6ef||self,_0x4e8187(_0x41e6ef[_0x4a4ee9(0x249)]={},_0x41e6ef[_0x4a4ee9(0x19f)],_0x41e6ef[_0x4a4ee9(0x1ab)],_0x41e6ef[_0x4a4ee9(0x1f2)],_0x41e6ef['UniverDesign'],_0x41e6ef['UniverUi'],_0x41e6ef[_0x4a4ee9(0x2ab)],_0x41e6ef[_0x4a4ee9(0x1ab)],_0x41e6ef[_0x4a4ee9(0x153)]));}(this,function(_0x152bdd,_0x265896,_0x967220,_0x1aa300,_0xf907c9,_0x121bac,_0x463a2b,_0x1d5fec,_0x33c42d){'use strict';const _0x3fe571=_0x4b84;var _0x46241f=Object[_0x3fe571(0x135)],_0x266e8a=(_0x102fe7,_0x14c65f,_0x1f4daf)=>_0x14c65f in _0x102fe7?_0x46241f(_0x102fe7,_0x14c65f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f4daf}):_0x102fe7[_0x14c65f]=_0x1f4daf,_0xafad84=(_0xc4f5b4,_0xe8d74,_0x1abb10)=>_0x266e8a(_0xc4f5b4,typeof _0xe8d74!='symbol'?_0xe8d74+'':_0xe8d74,_0x1abb10);function _0x38a6f8({ref:_0x35eb7d,..._0x4a9a78}){const _0x1f54c2=_0x3fe571,{icon:_0x505758,id:_0x3e4967,className:_0x47e946,extend:_0x16ed74,..._0x4e4d92}=_0x4a9a78,_0xb3ba4d=(_0x1f54c2(0x12d)+_0x3e4967+'\x20'+(_0x47e946||''))[_0x1f54c2(0x141)](),_0x272a9f=_0x1d5fec[_0x1f54c2(0x1ca)]('_'+_0x147a72());return _0x35c054(_0x505758,''+_0x3e4967,{'defIds':_0x505758[_0x1f54c2(0x29f)],'idSuffix':_0x272a9f[_0x1f54c2(0x1fb)]},{'ref':_0x35eb7d,'className':_0xb3ba4d,..._0x4e4d92},_0x16ed74);}function _0x35c054(_0x2677d8,_0x464d3e,_0x5ec796,_0x23be9f,_0x302b78){const _0x34416b=_0x3fe571;return _0x1d5fec[_0x34416b(0x278)](_0x2677d8[_0x34416b(0x24a)],{'key':_0x464d3e,..._0x229edf(_0x2677d8,_0x5ec796,_0x302b78),..._0x23be9f},(_0x1681dd(_0x2677d8,_0x5ec796)['children']||[])['map']((_0x4cc6e2,_0x1a96f7)=>_0x35c054(_0x4cc6e2,_0x464d3e+'-'+_0x2677d8[_0x34416b(0x24a)]+'-'+_0x1a96f7,_0x5ec796,void 0x0,_0x302b78)));}function _0x229edf(_0x1ac741,_0x3c9e4e,_0x6a8120){const _0x4c9d03=_0x3fe571,_0x37fe12={..._0x1ac741[_0x4c9d03(0x18d)]};_0x6a8120!=null&&_0x6a8120[_0x4c9d03(0x138)]&&_0x37fe12[_0x4c9d03(0x21e)]==='colorChannel1'&&(_0x37fe12[_0x4c9d03(0x21e)]=_0x6a8120[_0x4c9d03(0x138)]),_0x1ac741[_0x4c9d03(0x24a)]===_0x4c9d03(0x2a1)&&_0x37fe12['id']&&(_0x37fe12['id']=_0x37fe12['id']+_0x3c9e4e[_0x4c9d03(0x23b)]),Object['entries'](_0x37fe12)[_0x4c9d03(0x1e9)](([_0x3b2cbf,_0x56f615])=>{const _0x37082a=_0x4c9d03;_0x3b2cbf==='mask'&&typeof _0x56f615==_0x37082a(0x1c9)&&(_0x37fe12[_0x3b2cbf]=_0x56f615[_0x37082a(0x277)](/url\(#(.*)\)/,_0x37082a(0x256)+_0x3c9e4e[_0x37082a(0x23b)]+')'));});const {defIds:_0x4009f0}=_0x3c9e4e;return!_0x4009f0||_0x4009f0[_0x4c9d03(0x272)]===0x0||(_0x1ac741[_0x4c9d03(0x24a)]===_0x4c9d03(0x1c3)&&_0x37fe12[_0x4c9d03(0x1a1)]&&(_0x37fe12['xlink:href']=_0x37fe12[_0x4c9d03(0x1a1)]+_0x3c9e4e[_0x4c9d03(0x23b)]),Object[_0x4c9d03(0x285)](_0x37fe12)[_0x4c9d03(0x1e9)](([_0x1bb2cd,_0x442985])=>{const _0x319f07=_0x4c9d03;typeof _0x442985==_0x319f07(0x1c9)&&(_0x37fe12[_0x1bb2cd]=_0x442985[_0x319f07(0x277)](/url\(#(.*)\)/,_0x319f07(0x256)+_0x3c9e4e[_0x319f07(0x23b)]+')'));})),_0x37fe12;}function _0x1681dd(_0x1ee958,_0x804b87){const _0x454931=_0x3fe571;var _0x5be5de;const {defIds:_0x20c422}=_0x804b87;return!_0x20c422||_0x20c422[_0x454931(0x272)]===0x0?_0x1ee958:_0x1ee958['tag']==='defs'&&((_0x5be5de=_0x1ee958['children'])!=null&&_0x5be5de[_0x454931(0x272)])?{..._0x1ee958,'children':_0x1ee958['children'][_0x454931(0x125)](_0x3da158=>typeof _0x3da158['attrs']['id']==_0x454931(0x1c9)&&_0x20c422&&_0x20c422[_0x454931(0x14b)](_0x3da158[_0x454931(0x18d)]['id'])?{..._0x3da158,'attrs':{..._0x3da158['attrs'],'id':_0x3da158[_0x454931(0x18d)]['id']+_0x804b87[_0x454931(0x23b)]}}:_0x3da158)}:_0x1ee958;}function _0x147a72(){const _0x3b0673=_0x3fe571;return Math[_0x3b0673(0x12e)]()[_0x3b0673(0x17a)](0x24)[_0x3b0673(0x1d2)](0x2,0x8);}_0x38a6f8[_0x3fe571(0x162)]=_0x3fe571(0x146);const _0x58a5f8={'tag':_0x3fe571(0x198),'attrs':{'xmlns':_0x3fe571(0x1d5),'fill':_0x3fe571(0x233),'viewBox':_0x3fe571(0x2a7),'width':_0x3fe571(0x188),'height':_0x3fe571(0x188)},'children':[{'tag':_0x3fe571(0x181),'attrs':{'fill':_0x3fe571(0x116),'d':_0x3fe571(0x2aa),'fillRule':_0x3fe571(0x298),'clipRule':_0x3fe571(0x298)}}]},_0x5cf9e6=_0x1d5fec['forwardRef'](function(_0x402722,_0x3c0944){const _0x5e24e8=_0x3fe571;return _0x1d5fec['createElement'](_0x38a6f8,Object[_0x5e24e8(0x1df)]({},_0x402722,{'id':_0x5e24e8(0x282),'ref':_0x3c0944,'icon':_0x58a5f8}));});_0x5cf9e6[_0x3fe571(0x162)]=_0x3fe571(0x195);const _0x5e6bc2={'tag':_0x3fe571(0x198),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x3fe571(0x188),'height':_0x3fe571(0x188)},'children':[{'tag':_0x3fe571(0x181),'attrs':{'fill':_0x3fe571(0x116),'d':_0x3fe571(0x251)}}]},_0x22db93=_0x1d5fec[_0x3fe571(0x160)](function(_0x46954a,_0x10eb10){const _0x38d930=_0x3fe571;return _0x1d5fec[_0x38d930(0x278)](_0x38a6f8,Object[_0x38d930(0x1df)]({},_0x46954a,{'id':'close-icon','ref':_0x10eb10,'icon':_0x5e6bc2}));});_0x22db93[_0x3fe571(0x162)]=_0x3fe571(0x1a9);const _0x4cb67f={'tag':_0x3fe571(0x198),'attrs':{'xmlns':_0x3fe571(0x1d5),'fill':'none','viewBox':_0x3fe571(0x2a7),'width':_0x3fe571(0x188),'height':_0x3fe571(0x188)},'children':[{'tag':_0x3fe571(0x181),'attrs':{'fill':_0x3fe571(0x116),'d':_0x3fe571(0x211)}},{'tag':_0x3fe571(0x181),'attrs':{'fill':'currentColor','d':_0x3fe571(0x150)}},{'tag':_0x3fe571(0x181),'attrs':{'fill':_0x3fe571(0x116),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':'evenodd','clipRule':'evenodd'}}]},_0x1fe1c5=_0x1d5fec['forwardRef'](function(_0x30a44c,_0x36bbd7){const _0x10b7ef=_0x3fe571;return _0x1d5fec[_0x10b7ef(0x278)](_0x38a6f8,Object[_0x10b7ef(0x1df)]({},_0x30a44c,{'id':'help-icon','ref':_0x36bbd7,'icon':_0x4cb67f}));});_0x1fe1c5['displayName']=_0x3fe571(0x15e);const _0x20b5f6={'tag':'svg','attrs':{'xmlns':_0x3fe571(0x1d5),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x3fe571(0x188),'height':_0x3fe571(0x188)},'children':[{'tag':'g','attrs':{'clipPath':_0x3fe571(0x1d3)},'children':[{'tag':'path','attrs':{'stroke':_0x3fe571(0x116),'d':_0x3fe571(0x1b2),'strokeLinecap':_0x3fe571(0x1c2),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3fe571(0x26c),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3fe571(0x181),'attrs':{'fill':_0x3fe571(0x174),'d':_0x3fe571(0x133)}}]}]}],'defIds':[_0x3fe571(0x2a4)]},_0x1ebc17=_0x1d5fec['forwardRef'](function(_0x2b7103,_0x415a5c){const _0xb9d68a=_0x3fe571;return _0x1d5fec[_0xb9d68a(0x278)](_0x38a6f8,Object[_0xb9d68a(0x1df)]({},_0x2b7103,{'id':'off-line-icon','ref':_0x415a5c,'icon':_0x20b5f6}));});_0x1ebc17[_0x3fe571(0x162)]=_0x3fe571(0x1ba);const _0x99311={'tag':_0x3fe571(0x198),'attrs':{'xmlns':_0x3fe571(0x1d5),'fill':_0x3fe571(0x233),'viewBox':_0x3fe571(0x26d),'width':_0x3fe571(0x188),'height':_0x3fe571(0x188)},'children':[{'tag':'g','attrs':{'clipPath':_0x3fe571(0x22c)},'children':[{'tag':_0x3fe571(0x181),'attrs':{'stroke':_0x3fe571(0x116),'d':_0x3fe571(0x168),'strokeLinecap':_0x3fe571(0x1c2),'strokeLinejoin':_0x3fe571(0x1c2),'strokeWidth':1.2}}]},{'tag':_0x3fe571(0x15c),'attrs':{},'children':[{'tag':_0x3fe571(0x26c),'attrs':{'id':_0x3fe571(0x215)},'children':[{'tag':_0x3fe571(0x181),'attrs':{'fill':_0x3fe571(0x174),'d':_0x3fe571(0x133),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3fe571(0x215)]},_0x316057=_0x1d5fec[_0x3fe571(0x160)](function(_0x5663da,_0x2fc151){const _0x401985=_0x3fe571;return _0x1d5fec[_0x401985(0x278)](_0x38a6f8,Object[_0x401985(0x1df)]({},_0x5663da,{'id':_0x401985(0x19c),'ref':_0x2fc151,'icon':_0x99311}));});_0x316057[_0x3fe571(0x162)]=_0x3fe571(0x25b);function _0x174c49(_0x42650f){const _0x53fd6d=_0x3fe571;var _0x1c1519,_0x103550;const {mcpCoreConfig:_0x3fc771,onSave:_0x237338,loading:_0x71981a=!0x1,config:_0x2102bc,connectionStatus$:_0x4b2006,connectionError$:_0x21ed72,currentApiKey$:_0x3ccf3b,currentSessionId$:_0x2e4422}=_0x42650f,_0x55ad49=_0x121bac[_0x53fd6d(0x16d)](_0x265896[_0x53fd6d(0x1ad)]),_0x42d0f4=_0x121bac[_0x53fd6d(0x12b)](_0x4b2006,_0x1aa300[_0x53fd6d(0x119)]['DISCONNECTED']),_0x4e562e=_0x121bac[_0x53fd6d(0x12b)](_0x21ed72,_0x1aa300[_0x53fd6d(0x27f)][_0x53fd6d(0x29e)]),_0x140e7e=_0x121bac[_0x53fd6d(0x12b)](_0x2e4422,''),_0x4bc70e=_0x121bac[_0x53fd6d(0x12b)](_0x3ccf3b,''),[_0x32a5d1,_0x6c897]=_0x1d5fec[_0x53fd6d(0x1aa)](_0x4bc70e||''),_0x358740=!0x0,_0x25d126=_0x2102bc['showDeveloperTools']&&_0x3fc771['mcpServerUrl']&&(_0x3fc771[_0x53fd6d(0x232)][_0x53fd6d(0x14b)]('univer.plus')||_0x3fc771[_0x53fd6d(0x232)][_0x53fd6d(0x14b)](_0x53fd6d(0x1bc))),_0x5ad54c=(_0x1c1519=_0x3fc771['mcpServerUrl'])==null?void 0x0:_0x1c1519[_0x53fd6d(0x14b)]('univer.plus'),_0x1910f5=(_0x103550=_0x3fc771[_0x53fd6d(0x232)])==null?void 0x0:_0x103550[_0x53fd6d(0x14b)](_0x53fd6d(0x1bc)),_0x245064=_0x5ad54c?'https://console.univer.plus':_0x53fd6d(0x16e),_0x4dee9a=_0x2102bc[_0x53fd6d(0x1b7)]&&(_0x5ad54c||_0x1910f5),[_0x535986,_0x35a256]=_0x1d5fec[_0x53fd6d(0x1aa)](!_0x32a5d1[_0x53fd6d(0x141)]()),_0xe65113=(_0x554a98,_0x2182da)=>{const _0x27ae72=_0x53fd6d;if(_0x2182da===_0x1aa300[_0x27ae72(0x27f)][_0x27ae72(0x25c)])return _0x27ae72(0x296);switch(_0x554a98){case _0x1aa300[_0x27ae72(0x119)][_0x27ae72(0x1ec)]:return _0x27ae72(0x1d1);case _0x1aa300[_0x27ae72(0x119)][_0x27ae72(0x281)]:case _0x1aa300[_0x27ae72(0x119)][_0x27ae72(0x239)]:return _0x27ae72(0x25e);case _0x1aa300['MCPConnectionStatus'][_0x27ae72(0x199)]:return _0x27ae72(0x296);default:return _0x27ae72(0x178);}},_0x1fb04e=(_0x3fe361,_0x294975)=>{const _0x3b0c5d=_0x53fd6d;if(_0x294975===_0x1aa300[_0x3b0c5d(0x27f)][_0x3b0c5d(0x25c)])return'univer-bg-red-500';switch(_0x3fe361){case _0x1aa300[_0x3b0c5d(0x119)]['CONNECTED']:return _0x3b0c5d(0x17e);case _0x1aa300[_0x3b0c5d(0x119)][_0x3b0c5d(0x281)]:case _0x1aa300[_0x3b0c5d(0x119)]['RETRYING']:return _0x3b0c5d(0x26e);case _0x1aa300[_0x3b0c5d(0x119)]['FAILED']:return _0x3b0c5d(0x170);default:return _0x3b0c5d(0x289);}},_0x4beb10=_0x5c2941=>{const _0x4c97a2=_0x53fd6d;switch(_0x5c2941){case _0x1aa300[_0x4c97a2(0x119)][_0x4c97a2(0x1ec)]:return _0x55ad49['t'](_0x4c97a2(0x1bd));case _0x1aa300[_0x4c97a2(0x119)]['CONNECTING']:return _0x55ad49['t'](_0x4c97a2(0x2a8));case _0x1aa300[_0x4c97a2(0x119)]['FAILED']:return _0x55ad49['t']('mcpConfig.connectionStatus.failed');case _0x1aa300[_0x4c97a2(0x119)][_0x4c97a2(0x239)]:return _0x55ad49['t'](_0x4c97a2(0x191));default:return _0x55ad49['t'](_0x4c97a2(0x283));}},_0x37ebfa=_0x2dd226=>{const _0x49a5e8=_0x53fd6d;switch(_0x2dd226){case _0x1aa300['MCPConnectionError'][_0x49a5e8(0x25c)]:return _0x55ad49['t']('mcpConfig.connectionError.unauthorized');case _0x1aa300['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x55ad49['t'](_0x49a5e8(0x1f8));case _0x1aa300['MCPConnectionError'][_0x49a5e8(0x1eb)]:return _0x55ad49['t'](_0x49a5e8(0x1f9));case _0x1aa300[_0x49a5e8(0x27f)][_0x49a5e8(0x1c1)]:return _0x55ad49['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x38d82b=_0x1d5fec[_0x53fd6d(0x14d)](()=>{const _0x5698de=_0x53fd6d,_0x5ca14e={..._0x3fc771,'apiKey':_0x32a5d1[_0x5698de(0x141)](),'enableAuth':_0x358740};_0x237338(_0x5ca14e);},[_0x3fc771,_0x32a5d1,_0x358740,_0x237338]),_0x4192ed=_0x32a5d1[_0x53fd6d(0x141)]()[_0x53fd6d(0x272)]>0x0;return _0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x17d),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x20f),'children':_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x11d),'children':_0x967220['jsx'](_0x53fd6d(0x241),{'className':_0x53fd6d(0x224),'children':'⚙'})}),_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'children':_0x967220[_0x53fd6d(0x227)]('p',{'className':_0x53fd6d(0x252),'children':_0x55ad49['t'](_0x53fd6d(0x149))})})]})}),_0x967220['jsxs']('div',{'className':_0x53fd6d(0x156),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0xf907c9[_0x53fd6d(0x1f4)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0xe65113(_0x42d0f4,_0x4e562e)),'children':_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x27d),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0xf907c9[_0x53fd6d(0x1f4)](_0x53fd6d(0x1da),_0x1fb04e(_0x42d0f4,_0x4e562e))}),_0x967220['jsx'](_0x53fd6d(0x241),{'className':_0x53fd6d(0x22d),'children':_0x4beb10(_0x42d0f4)})]})}),_0x4e562e!==_0x1aa300[_0x53fd6d(0x27f)][_0x53fd6d(0x29e)]&&(_0x42d0f4===_0x1aa300[_0x53fd6d(0x119)]['FAILED']||_0x4e562e===_0x1aa300['MCPConnectionError'][_0x53fd6d(0x25c)])&&_0x967220[_0x53fd6d(0x227)]('div',{'className':_0x53fd6d(0x12c),'children':_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x1b5),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x241),{'className':_0x53fd6d(0x1b8),'children':'⚠️'}),_0x967220[_0x53fd6d(0x227)]('p',{'className':_0x53fd6d(0x1e4),'children':_0x37ebfa(_0x4e562e)})]})})]}),_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x1ef),'children':_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x1ff),'children':[_0x967220['jsxs'](_0x53fd6d(0x164),{'className':_0x53fd6d(0x1c8),'children':[_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x207),{'className':_0x53fd6d(0x1d0),'children':[_0x967220['jsx'](_0x53fd6d(0x241),{'children':'🔑'}),'\x20',_0x55ad49['t'](_0x53fd6d(0x19e)),_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x241),{'className':_0x53fd6d(0x1a5),'children':'*'}),_0x25d126&&_0x967220['jsx']('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x55ad49['t'](_0x53fd6d(0x17f)),'role':_0x53fd6d(0x134),'onClick':()=>_0x35a256(!0x0),'children':_0x967220[_0x53fd6d(0x227)](_0x1fe1c5,{})})]}),_0x967220[_0x53fd6d(0x227)](_0xf907c9[_0x53fd6d(0x2a0)],{'type':'text','placeholder':_0x55ad49['t'](_0x53fd6d(0x231)),'value':_0x32a5d1,'disabled':_0x71981a,'autoComplete':_0x53fd6d(0x1ae),'onChange':_0x6c897}),_0x967220[_0x53fd6d(0x227)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x55ad49['t'](_0x53fd6d(0x27e))})]}),_0x25d126&&_0x535986&&_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'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':[_0x967220[_0x53fd6d(0x227)]('a',{'className':_0x53fd6d(0x157),'role':_0x53fd6d(0x134),'onClick':()=>_0x35a256(!0x1),'children':_0x967220[_0x53fd6d(0x227)](_0x22db93,{'className':'univer-size-4'})}),_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x292),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x2a9),'children':_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x241),{'className':_0x53fd6d(0x190),'children':'🚀'})}),_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':'univer-flex-1','children':[_0x967220['jsx']('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x55ad49['t'](_0x53fd6d(0x17f))}),_0x967220[_0x53fd6d(0x227)]('p',{'className':_0x53fd6d(0x1fd),'children':_0x55ad49['t'](_0x53fd6d(0x25d))}),_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x180),'children':_0x4dee9a&&_0x967220[_0x53fd6d(0x1f5)]('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':_0x245064,'target':'_blank','rel':_0x53fd6d(0x226),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x241),{'children':'🤖'}),_0x55ad49['t'](_0x53fd6d(0x17c)),_0x967220['jsx'](_0x53fd6d(0x241),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x21b),'children':['✨','\x20',_0x55ad49['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x2102bc[_0x53fd6d(0x1b7)]&&_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x130),'children':[_0x967220['jsxs']('h4',{'className':_0x53fd6d(0x26a),'children':[_0x967220[_0x53fd6d(0x227)]('span',{'children':'🔗'}),'\x20',_0x55ad49['t']('mcpConfig.connectionInfo')]}),_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x1f0),'children':[_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x275),'children':[_0x967220[_0x53fd6d(0x227)]('p',{'className':_0x53fd6d(0x140),'children':_0x55ad49['t'](_0x53fd6d(0x19d))}),_0x967220['jsxs'](_0x53fd6d(0x164),{'className':_0x53fd6d(0x1c8),'children':[_0x967220['jsx']('div',{'className':_0x53fd6d(0x1c5),'children':_0x55ad49['t'](_0x53fd6d(0x203))}),_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x216),'children':[_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x241),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x55ad49['t']('mcpConfig.configStep1')]}),_0x967220['jsxs']('div',{'className':_0x53fd6d(0x27d),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x241),{'className':_0x53fd6d(0x120),'children':'2'}),_0x55ad49['t'](_0x53fd6d(0x193))]}),_0x967220[_0x53fd6d(0x1f5)]('div',{'className':_0x53fd6d(0x27d),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x241),{'className':_0x53fd6d(0x120),'children':'3'}),_0x55ad49['t'](_0x53fd6d(0x114))]})]})]})]}),_0x967220['jsxs']('div',{'className':_0x53fd6d(0x1c8),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x1c5),'children':_0x53fd6d(0x16c)}),_0x967220[_0x53fd6d(0x227)]('div',{'className':_0x53fd6d(0x1e1),'children':_0x967220[_0x53fd6d(0x227)]('pre',{'className':_0x53fd6d(0x210),'children':JSON[_0x53fd6d(0x262)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x140e7e||_0x53fd6d(0x2a5)),'type':_0x53fd6d(0x1e0),'headers':{'Authorization':_0x53fd6d(0x13f)+(_0x32a5d1||_0x53fd6d(0x131))}}}},null,0x2)})})]}),_0x967220[_0x53fd6d(0x1f5)]('div',{'className':_0x53fd6d(0x275),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x55ad49['t']('mcpConfig.configParameters')}),_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x1c8),'children':[_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x229),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x247)}),_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x1a8),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x286),'children':'univer_session_id:'}),_0x967220['jsx'](_0x53fd6d(0x164),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x55ad49['t'](_0x53fd6d(0x139))})]})]}),_0x967220[_0x53fd6d(0x1f5)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x967220['jsx'](_0x53fd6d(0x164),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x967220[_0x53fd6d(0x1f5)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x286),'children':'Authorization:'}),_0x967220['jsx'](_0x53fd6d(0x164),{'className':_0x53fd6d(0x158),'children':_0x55ad49['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x967220[_0x53fd6d(0x227)](_0xf907c9[_0x53fd6d(0x23e)],{'onClick':_0x38d82b,'disabled':!_0x4192ed||_0x71981a,'className':_0x53fd6d(0x144),'children':_0x71981a?_0x967220['jsxs']('span',{'className':_0x53fd6d(0x27d),'children':[_0x967220[_0x53fd6d(0x227)]('span',{'children':'⟲'}),_0x55ad49['t']('mcpConfig.saving')]}):_0x967220[_0x53fd6d(0x1f5)]('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x967220[_0x53fd6d(0x227)](_0x5cf9e6,{}),_0x55ad49['t'](_0x53fd6d(0x1bb))]})}),_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x25a),'children':_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'className':_0x53fd6d(0x11f),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x241),{'className':_0x53fd6d(0x248),'children':'💡'}),_0x967220['jsxs'](_0x53fd6d(0x164),{'className':_0x53fd6d(0x258),'children':[_0x967220[_0x53fd6d(0x227)](_0x53fd6d(0x164),{'className':'univer-font-medium','children':_0x53fd6d(0x299)}),_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'children':['•',_0x55ad49['t'](_0x53fd6d(0x221))]}),_0x967220[_0x53fd6d(0x1f5)](_0x53fd6d(0x164),{'children':['•',_0x55ad49['t'](_0x53fd6d(0x13e))]})]})]})})]})})]});}const _0x52305e=_0x3fe571(0x1cd),_0xbb585e={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x3f572d=Object[_0x3fe571(0x18e)],_0x4cbb8c=(_0x3e5a97,_0x5242a4,_0x566645,_0x3e0ee0)=>{const _0x2359c2=_0x3fe571;for(var _0x1dbb7a=_0x3e0ee0>0x1?void 0x0:_0x3e0ee0?_0x3f572d(_0x5242a4,_0x566645):_0x5242a4,_0x204f9a=_0x3e5a97[_0x2359c2(0x272)]-0x1,_0x2a0fa7;_0x204f9a>=0x0;_0x204f9a--)(_0x2a0fa7=_0x3e5a97[_0x204f9a])&&(_0x1dbb7a=_0x2a0fa7(_0x1dbb7a)||_0x1dbb7a);return _0x1dbb7a;},_0x4299e0=(_0x1717b9,_0xb17e7e)=>(_0x34235b,_0x5d62f1)=>_0xb17e7e(_0x34235b,_0x5d62f1,_0x1717b9);const _0x3841d4=_0x3fe571(0x279),_0x4e3872=_0x3fe571(0x225);_0x152bdd[_0x3fe571(0x1e8)]=class extends _0x265896[_0x3fe571(0x24b)]{constructor(_0x4940bc,_0x51b8e5,_0x53aed2,_0x54fc98,_0x562581,_0xabd228,_0x8f3190,_0x5bcb06,_0x2602ca,_0x508dd1){const _0x1ea1e9=_0x3fe571;super(),_0xafad84(this,_0x1ea1e9(0x1a2),new _0x463a2b[(_0x1ea1e9(0x148))](!0x1)),_0xafad84(this,_0x1ea1e9(0x1c7),new _0x463a2b[(_0x1ea1e9(0x148))]({})),_0xafad84(this,_0x1ea1e9(0x291),new _0x463a2b[(_0x1ea1e9(0x148))]({})),_0xafad84(this,_0x1ea1e9(0x209),new _0x463a2b[(_0x1ea1e9(0x148))]('')),_0xafad84(this,_0x1ea1e9(0x1a3),async _0x1d7461=>{const _0x35b6fb=_0x1ea1e9;var _0x154e05,_0x3d838a;this[_0x35b6fb(0x1a2)]['next'](!0x0);try{const _0x2a5f61=await this[_0x35b6fb(0x122)](_0x1d7461);if(!_0x2a5f61[_0x35b6fb(0x234)]){this[_0x35b6fb(0x184)]['show']({'type':_0xf907c9['MessageType'][_0x35b6fb(0x129)],'content':_0x2a5f61[_0x35b6fb(0x179)]||this['_localeService']['t'](_0x35b6fb(0x204))});return;}_0x1d7461[_0x35b6fb(0x270)]?await this[_0x35b6fb(0x1f7)][_0x35b6fb(0x18a)](_0x3841d4,_0x1d7461['apiKey'][_0x35b6fb(0x141)]()):await this[_0x35b6fb(0x1f7)][_0x35b6fb(0x1cc)](_0x3841d4),this[_0x35b6fb(0x209)][_0x35b6fb(0x1e7)](((_0x154e05=_0x1d7461[_0x35b6fb(0x270)])==null?void 0x0:_0x154e05[_0x35b6fb(0x141)]())||''),this['_mcpConnectionController'][_0x35b6fb(0x132)]({'Authorization':_0x35b6fb(0x13f)+((_0x3d838a=_0x1d7461['apiKey'])==null?void 0x0:_0x3d838a[_0x35b6fb(0x141)]())}),this[_0x35b6fb(0x184)][_0x35b6fb(0x1c0)]({'type':_0xf907c9[_0x35b6fb(0x143)][_0x35b6fb(0x20c)],'content':this['_localeService']['t'](_0x35b6fb(0x26f))}),setTimeout(()=>{const _0x42153c=_0x35b6fb;this['_dialogService'][_0x42153c(0x288)](_0x4e3872);},0x320);}catch(_0xb81646){this[_0x35b6fb(0x290)]['error'](_0x35b6fb(0x264),_0xb81646),this[_0x35b6fb(0x184)]['show']({'type':_0xf907c9[_0x35b6fb(0x143)][_0x35b6fb(0x129)],'content':this[_0x35b6fb(0x154)]['t'](_0x35b6fb(0x176))});}finally{this[_0x35b6fb(0x1a2)][_0x35b6fb(0x1e7)](!0x1);}}),(this[_0x1ea1e9(0x201)]=_0x4940bc,this['_uiPartsService']=_0x51b8e5,this[_0x1ea1e9(0x15b)]=_0x53aed2,this[_0x1ea1e9(0x1f7)]=_0x54fc98,this[_0x1ea1e9(0x1d8)]=_0x562581,this[_0x1ea1e9(0x184)]=_0xabd228,this[_0x1ea1e9(0x1b0)]=_0x8f3190,this[_0x1ea1e9(0x154)]=_0x5bcb06,this[_0x1ea1e9(0x290)]=_0x2602ca,this[_0x1ea1e9(0x222)]=_0x508dd1,this['_initConfigSync'](),this[_0x1ea1e9(0x173)](),this[_0x1ea1e9(0x254)]());}[_0x3fe571(0x1a7)](){const _0x4b88da=_0x3fe571,_0x4cf79a=this['_configService'][_0x4b88da(0x2a2)](_0x52305e);_0x4cf79a!=null&&_0x4cf79a['showDeveloperTools']&&this['_dialogService'][_0x4b88da(0x1c6)]({'id':_0x4e3872,'title':{'title':this[_0x4b88da(0x154)]['t'](_0x4b88da(0x1b4))},'children':{'label':_0x4b88da(0x208)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x83ba7e=_0x4b88da;this[_0x83ba7e(0x1d8)][_0x83ba7e(0x288)](_0x4e3872);}});}[_0x3fe571(0x1b6)](){const _0x109f25=_0x3fe571;return this['_mcpCoreConfig$'][_0x109f25(0x253)];}[_0x3fe571(0x254)](){const _0x4c09b3=_0x3fe571;this['disposeWithMe'](this['_componentManager'][_0x4c09b3(0x142)](_0x4c09b3(0x208),this[_0x4c09b3(0x29c)]()));}[_0x3fe571(0x29c)](){const _0x295365=_0x3fe571;return _0x121bac['connectInjector'](()=>{const _0x22c51a=_0x4b84;var _0x1e0af9,_0x58933a,_0x4ae18b;return _0x967220[_0x22c51a(0x227)](_0x174c49,{'config':this[_0x22c51a(0x291)][_0x22c51a(0x253)],'mcpCoreConfig':this[_0x22c51a(0x1c7)][_0x22c51a(0x253)],'currentApiKey$':this[_0x22c51a(0x209)],'onSave':this[_0x22c51a(0x1a3)],'loading':this[_0x22c51a(0x1a2)][_0x22c51a(0x253)],'connectionStatus$':(_0x1e0af9=this['_mcpConnectionController'])==null?void 0x0:_0x1e0af9[_0x22c51a(0x16f)],'connectionError$':(_0x58933a=this[_0x22c51a(0x222)])==null?void 0x0:_0x58933a[_0x22c51a(0x1b3)],'currentSessionId$':(_0x4ae18b=this['_mcpConnectionController'])==null?void 0x0:_0x4ae18b[_0x22c51a(0x1ce)]});},this[_0x295365(0x201)]);}['_initConfigSync'](){const _0x295eec=_0x3fe571;this[_0x295eec(0x163)](this['_configService']['subscribeConfigValue$'](_0x1aa300[_0x295eec(0x1e6)])[_0x295eec(0x1dd)](_0x2947bc=>{this['_mcpCoreConfig$']['next'](_0x2947bc||{});}));const _0xa98e84=this[_0x295eec(0x15b)][_0x295eec(0x2a2)](_0x1aa300[_0x295eec(0x1e6)]);this[_0x295eec(0x1c7)]['next'](_0xa98e84||{}),this[_0x295eec(0x163)](this[_0x295eec(0x15b)][_0x295eec(0x1a0)](_0x52305e)[_0x295eec(0x1dd)](_0x4217bb=>{const _0xdc66b=_0x295eec;this[_0xdc66b(0x291)]['next'](_0x4217bb||{});}));const _0x242bc4=this[_0x295eec(0x15b)][_0x295eec(0x2a2)](_0x52305e);this[_0x295eec(0x291)][_0x295eec(0x1e7)](_0x242bc4||{});}async[_0x3fe571(0x173)](){const _0x1d4e3b=_0x3fe571,_0x3192e4=this[_0x1d4e3b(0x15b)][_0x1d4e3b(0x2a2)](_0x52305e);if(!(_0x3192e4!=null&&_0x3192e4[_0x1d4e3b(0x1b7)]))return;const _0x1de2c1=await this[_0x1d4e3b(0x1f7)][_0x1d4e3b(0x167)](_0x3841d4);_0x1de2c1&&(this[_0x1d4e3b(0x222)][_0x1d4e3b(0x132)]({'Authorization':_0x1d4e3b(0x13f)+_0x1de2c1}),this[_0x1d4e3b(0x209)][_0x1d4e3b(0x1e7)](_0x1de2c1));}async[_0x3fe571(0x122)](_0x1f2255){const _0x4b775d=_0x3fe571;if(!_0x1f2255[_0x4b775d(0x270)]||_0x1f2255['apiKey'][_0x4b775d(0x141)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x4b775d(0x243))};if(_0x1f2255['apiKey'][_0x4b775d(0x141)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4b775d(0x154)]['t'](_0x4b775d(0x26b))};try{const _0x1e1755=await this['_injector'][_0x4b775d(0x276)](_0x1aa300[_0x4b775d(0x274)])[_0x4b775d(0x257)](_0x1f2255[_0x4b775d(0x270)][_0x4b775d(0x141)]());return _0x1e1755[_0x4b775d(0x234)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1e1755[_0x4b775d(0x1ea)]||this[_0x4b775d(0x154)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x6542e6){return console[_0x4b775d(0x295)](_0x4b775d(0x293),_0x6542e6),{'isValid':!0x0};}}},_0x152bdd[_0x3fe571(0x1e8)]=_0x4cbb8c([_0x4299e0(0x0,_0x265896['Inject'](_0x265896[_0x3fe571(0x1dc)])),_0x4299e0(0x1,_0x121bac[_0x3fe571(0x1e5)]),_0x4299e0(0x2,_0x265896[_0x3fe571(0x212)]),_0x4299e0(0x3,_0x265896[_0x3fe571(0x21a)]),_0x4299e0(0x4,_0x121bac[_0x3fe571(0x18b)]),_0x4299e0(0x5,_0x121bac[_0x3fe571(0x1b1)]),_0x4299e0(0x6,_0x265896['Inject'](_0x121bac[_0x3fe571(0x171)])),_0x4299e0(0x7,_0x265896[_0x3fe571(0x128)](_0x265896['LocaleService'])),_0x4299e0(0x8,_0x265896[_0x3fe571(0x217)]),_0x4299e0(0x9,_0x265896['Inject'](_0x1aa300['MCPConnectionController']))],_0x152bdd['MCPConfigUIController']);const _0x1a0535={'id':'mcp-ui.command.openConfigPanel','type':_0x265896[_0x3fe571(0x16a)]['COMMAND'],'handler':async(_0x4fbd57,_0x168695)=>(_0x4fbd57[_0x3fe571(0x276)](_0x152bdd[_0x3fe571(0x1e8)])[_0x3fe571(0x1a7)](),!0x0)};function _0x2916cf(_0x412402,_0x557d5e){const _0x2fe915=_0x3fe571;switch(_0x412402){case _0x1aa300['MCPConnectionStatus'][_0x2fe915(0x218)]:return _0x2fe915(0x294);case _0x1aa300['MCPConnectionStatus'][_0x2fe915(0x281)]:return _0x2fe915(0x151);case _0x1aa300['MCPConnectionStatus'][_0x2fe915(0x1ec)]:return _0x2fe915(0x1ac);case _0x1aa300[_0x2fe915(0x119)]['FAILED']:switch(_0x557d5e){case _0x1aa300['MCPConnectionError'][_0x2fe915(0x25c)]:return _0x2fe915(0x20d);case _0x1aa300[_0x2fe915(0x27f)][_0x2fe915(0x202)]:return _0x2fe915(0x18f);case _0x1aa300[_0x2fe915(0x27f)]['NETWORK_ERROR']:return'mcpStatus.networkError';case _0x1aa300['MCPConnectionError'][_0x2fe915(0x1c1)]:return _0x2fe915(0x1cb);default:return _0x2fe915(0x271);}case _0x1aa300[_0x2fe915(0x119)][_0x2fe915(0x239)]:return _0x2fe915(0x284);default:return _0x2fe915(0x147);}}function _0x5b3729(_0x54895b,_0x35f6c5,_0x427357,_0x4256cc=!0x0){const _0x33f3ae=_0x3fe571,_0x14d9e7=_0x2916cf(_0x54895b,_0x35f6c5),_0x23b377=_0x427357['t'](_0x14d9e7);return _0x4256cc?_0x54895b===_0x1aa300['MCPConnectionStatus']['DISCONNECTED']&&_0x35f6c5===_0x1aa300[_0x33f3ae(0x27f)]['UNAUTHORIZED']?_0x23b377+'\x20-\x20'+_0x427357['t'](_0x33f3ae(0x18c)):_0x54895b===_0x1aa300[_0x33f3ae(0x119)][_0x33f3ae(0x1ec)]?''+_0x23b377:_0x54895b===_0x1aa300['MCPConnectionStatus'][_0x33f3ae(0x218)]||_0x54895b===_0x1aa300[_0x33f3ae(0x119)][_0x33f3ae(0x199)]?_0x23b377+_0x33f3ae(0x115)+_0x427357['t'](_0x33f3ae(0x16b)):_0x23b377:_0x23b377;}function _0x417a30(_0x425c6d){const _0x1a8764=_0x3fe571;switch(_0x425c6d){case _0x1aa300[_0x1a8764(0x119)][_0x1a8764(0x1ec)]:return _0x1a8764(0x228);case _0x1aa300['MCPConnectionStatus'][_0x1a8764(0x281)]:case _0x1aa300[_0x1a8764(0x119)]['RETRYING']:return _0x1a8764(0x145);case _0x1aa300[_0x1a8764(0x119)][_0x1a8764(0x199)]:case _0x1aa300[_0x1a8764(0x119)][_0x1a8764(0x218)]:return _0x1a8764(0x1a5);default:return _0x1a8764(0x172);}}function _0x159880(_0x5988a6){const _0x59c392=_0x3fe571,{status$:_0x417008,error$:_0xf4d562,onConfigure:_0x16b345,showClickable:_0x2b61e4=!0x0}=_0x5988a6,_0x123cbe=_0x121bac['useObservable'](_0x417008,_0x1aa300[_0x59c392(0x119)]['DISCONNECTED']),_0x1f2d5f=_0x121bac[_0x59c392(0x12b)](_0xf4d562,_0x1aa300[_0x59c392(0x27f)][_0x59c392(0x29e)]),_0x3450cb=_0x121bac[_0x59c392(0x16d)](_0x265896[_0x59c392(0x1ad)]),_0x198a92=_0x123cbe===_0x1aa300['MCPConnectionStatus']['CONNECTED'];_0x123cbe===_0x1aa300['MCPConnectionStatus'][_0x59c392(0x281)]||_0x1aa300[_0x59c392(0x119)][_0x59c392(0x239)];const _0x206489=_0x3450cb['t'](_0x2916cf(_0x123cbe,_0x1f2d5f)),_0x35e398=_0x5b3729(_0x123cbe,_0x1f2d5f,_0x3450cb,_0x2b61e4),_0x3a73a2=_0x417a30(_0x123cbe),_0xf85559=_0x198a92?_0x967220[_0x59c392(0x227)](_0x316057,{}):_0x967220[_0x59c392(0x227)](_0x1ebc17,{}),_0x3c2147=_0x1d5fec[_0x59c392(0x14d)](()=>{_0x2b61e4&&_0x16b345&&_0x16b345();},[_0x2b61e4,_0x16b345]);function _0x2c1355(){const _0x45e8cc=_0x59c392;return _0x967220['jsxs'](_0x45e8cc(0x164),{'className':_0xf907c9[_0x45e8cc(0x1f4)](_0x45e8cc(0x137),_0x2b61e4&&_0x16b345&&'\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'),'role':_0x45e8cc(0x134),'onClick':_0x2b61e4&&_0x16b345?_0x3c2147:void 0x0,'children':[_0x967220['jsx'](_0x45e8cc(0x164),{'className':_0xf907c9[_0x45e8cc(0x1f4)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x3a73a2),'children':_0xf85559}),_0x967220[_0x45e8cc(0x227)]('div',{'className':_0x45e8cc(0x20a),'children':_0x206489})]});}return _0x967220[_0x59c392(0x227)](_0xf907c9[_0x59c392(0x28c)],{'title':_0x35e398,'placement':_0x59c392(0x29d),'children':_0x2c1355()});}var _0x42b8a6=Object[_0x3fe571(0x18e)],_0x1950b6=(_0x3ad1d4,_0x24c3f6,_0x2a100e,_0x3f8bfa)=>{const _0x43243f=_0x3fe571;for(var _0x830a3f=_0x3f8bfa>0x1?void 0x0:_0x3f8bfa?_0x42b8a6(_0x24c3f6,_0x2a100e):_0x24c3f6,_0x2997e9=_0x3ad1d4[_0x43243f(0x272)]-0x1,_0x1c1bd0;_0x2997e9>=0x0;_0x2997e9--)(_0x1c1bd0=_0x3ad1d4[_0x2997e9])&&(_0x830a3f=_0x1c1bd0(_0x830a3f)||_0x830a3f);return _0x830a3f;},_0xae5eba=(_0x5be276,_0x88a8c0)=>(_0x1ada45,_0x2ce91e)=>_0x88a8c0(_0x1ada45,_0x2ce91e,_0x5be276);_0x152bdd['MCPConnectionUIController']=class extends _0x265896['Disposable']{constructor(_0x26e5de,_0x13c28f,_0x23ea53,_0x464905){const _0x2def21=_0x3fe571;super(),this[_0x2def21(0x201)]=_0x26e5de,this[_0x2def21(0x213)]=_0x13c28f,this['_uiPartsService']=_0x23ea53,this['_configService']=_0x464905,this[_0x2def21(0x21d)](),this[_0x2def21(0x14e)]();}[_0x3fe571(0x21d)](){const _0x31bfeb=_0x3fe571,_0x1afff3=this['_configService'][_0x31bfeb(0x2a2)](_0x52305e);_0x1afff3!=null&&_0x1afff3[_0x31bfeb(0x1b7)]&&(this[_0x31bfeb(0x213)][_0x31bfeb(0x27a)]=!0x1);}[_0x3fe571(0x14e)](){const _0x12b901=_0x3fe571,_0x53dee0=this[_0x12b901(0x15b)][_0x12b901(0x2a2)](_0x52305e);(_0x53dee0==null?void 0x0:_0x53dee0[_0x12b901(0x117)])!==!0x1&&this[_0x12b901(0x163)](this[_0x12b901(0x24e)][_0x12b901(0x1be)](_0x121bac[_0x12b901(0x123)][_0x12b901(0x175)],()=>{const _0x299ecd=_0x12b901;var _0x46ed1e;return _0x121bac[_0x299ecd(0x244)](_0x4e7aa1({'status$':this[_0x299ecd(0x213)][_0x299ecd(0x16f)],'error$':this['_connectionController'][_0x299ecd(0x1b3)],'onConfigure':()=>this[_0x299ecd(0x1f3)](),'showClickable':(_0x46ed1e=_0x53dee0==null?void 0x0:_0x53dee0['showDeveloperTools'])!=null?_0x46ed1e:!0x1}),this[_0x299ecd(0x201)]);}));}[_0x3fe571(0x1f3)](){const _0x117c4a=_0x3fe571;this[_0x117c4a(0x201)][_0x117c4a(0x276)](_0x152bdd[_0x117c4a(0x1e8)])[_0x117c4a(0x1a7)]();}},_0x152bdd['MCPConnectionUIController']=_0x1950b6([_0xae5eba(0x0,_0x265896[_0x3fe571(0x128)](_0x265896['Injector'])),_0xae5eba(0x1,_0x265896[_0x3fe571(0x128)](_0x1aa300[_0x3fe571(0x274)])),_0xae5eba(0x2,_0x121bac[_0x3fe571(0x1e5)]),_0xae5eba(0x3,_0x265896[_0x3fe571(0x212)])],_0x152bdd[_0x3fe571(0x126)]);function _0x4e7aa1(_0x16a71b){const {status$:_0x57c598,error$:_0x3cd408,onConfigure:_0x488abb,showClickable:_0x192817}=_0x16a71b;return function(){const _0x327e77=_0x4b84;return _0x967220[_0x327e77(0x227)](_0x159880,{'status$':_0x57c598,'error$':_0x3cd408,'onConfigure':_0x488abb,'showClickable':_0x192817});};}function _0x51083b(_0x5de419){const _0x4898d9=_0x3fe571;return{'id':_0x1a0535['id'],'type':_0x121bac[_0x4898d9(0x269)][_0x4898d9(0x155)],'icon':_0x4898d9(0x124),'title':_0x4898d9(0x1b4),'tooltip':_0x4898d9(0x1b4)};}const _0x5d8670={[_0x121bac[_0x3fe571(0x192)][_0x3fe571(0x27c)]]:{[_0x1a0535['id']]:{'order':0xa,'menuItemFactory':_0x51083b}}};var _0x59ca5d=Object['getOwnPropertyDescriptor'],_0x36976f=(_0x4781aa,_0x430d22,_0x33477b,_0x2ee809)=>{const _0x5a9207=_0x3fe571;for(var _0x55258b=_0x2ee809>0x1?void 0x0:_0x2ee809?_0x59ca5d(_0x430d22,_0x33477b):_0x430d22,_0x1dbb50=_0x4781aa[_0x5a9207(0x272)]-0x1,_0x5ca581;_0x1dbb50>=0x0;_0x1dbb50--)(_0x5ca581=_0x4781aa[_0x1dbb50])&&(_0x55258b=_0x5ca581(_0x55258b)||_0x55258b);return _0x55258b;},_0x4cfe4e=(_0x16eecf,_0x530752)=>(_0x13d481,_0x5e6aba)=>_0x530752(_0x13d481,_0x5e6aba,_0x16eecf);_0x152bdd[_0x3fe571(0x1a6)]=class extends _0x265896[_0x3fe571(0x24b)]{constructor(_0xfebe23,_0x2bb745){const _0x393a1c=_0x3fe571;super(),this['_commandService']=_0xfebe23,this[_0x393a1c(0x165)]=_0x2bb745,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x5911eb=_0x3fe571;[_0x1a0535][_0x5911eb(0x1e9)](_0x20ad4c=>{const _0x58f629=_0x5911eb;this[_0x58f629(0x163)](this['_commandService'][_0x58f629(0x28a)](_0x20ad4c));});}['_initializeMenus'](){this['_menuManagerService']['mergeMenu'](_0x5d8670);}},_0x152bdd[_0x3fe571(0x1a6)]=_0x36976f([_0x4cfe4e(0x0,_0x265896[_0x3fe571(0x24c)]),_0x4cfe4e(0x1,_0x121bac['IMenuManagerService'])],_0x152bdd[_0x3fe571(0x1a6)]);const _0x5aa647={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x3fe571(0x1d6),'unknown':_0x3fe571(0x1ee),'unauthorized':_0x3fe571(0x11c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3fe571(0x214),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3fe571(0x12a),'clickToConfigure':_0x3fe571(0x235)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3fe571(0x13a),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3fe571(0x1af),'apiKeyHint':_0x3fe571(0x11a),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x3fe571(0x29b),'mcpClientConfig':_0x3fe571(0x29b),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x3fe571(0x121),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3fe571(0x265),'sessionId':_0x3fe571(0x242),'sessionIdDescription':_0x3fe571(0x13c),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3fe571(0x159),'maxRetries':_0x3fe571(0x22e),'save':_0x3fe571(0x1bf),'saving':_0x3fe571(0x205),'note1':_0x3fe571(0x14a),'note2':_0x3fe571(0x12f),'configSaved':_0x3fe571(0x186),'configError':_0x3fe571(0x1d7),'apiApplyInfo':{'title':_0x3fe571(0x2a3),'description':_0x3fe571(0x255),'univerAiLabel':_0x3fe571(0x2ac),'getStarted':_0x3fe571(0x1d4)},'validation':{'apiKeyRequired':_0x3fe571(0x15d),'apiKeyTooShort':_0x3fe571(0x185),'invalidConfig':_0x3fe571(0x23f),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3fe571(0x194),'connecting':_0x3fe571(0x24f),'connected':_0x3fe571(0x29a),'failed':_0x3fe571(0x21f),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3fe571(0x23c),'sessionOccupied':_0x3fe571(0x28f),'networkError':_0x3fe571(0x260),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x6b44a7={'mcpStatus':{'disconnected':_0x3fe571(0x14f),'connecting':_0x3fe571(0x246),'connected':_0x3fe571(0x280),'failed':_0x3fe571(0x23d),'retrying':_0x3fe571(0x220),'unknown':_0x3fe571(0x20b),'unauthorized':_0x3fe571(0x15f),'sessionOccupied':_0x3fe571(0x266),'networkError':_0x3fe571(0x177),'maxRetriesExceeded':_0x3fe571(0x19a),'clickToConnect':_0x3fe571(0x250),'clickToConfigure':_0x3fe571(0x236)},'mcpConfig':{'title':_0x3fe571(0x1db),'description':_0x3fe571(0x1f6),'apiKey':_0x3fe571(0x261),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x3fe571(0x1d9),'enableAuth':'启用身份验证','enableAuthHint':_0x3fe571(0x1cf),'connectionInfo':_0x3fe571(0x17b),'mcpClientConfig':_0x3fe571(0x17b),'configInstructions':_0x3fe571(0x136),'configStepTitle':_0x3fe571(0x2a6),'configStep1':_0x3fe571(0x23a),'configStep2':_0x3fe571(0x267),'configStep3':_0x3fe571(0x268),'sessionId':_0x3fe571(0x187),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x3fe571(0x237),'saving':_0x3fe571(0x28d),'note1':_0x3fe571(0x245),'note2':_0x3fe571(0x127),'configSaved':_0x3fe571(0x200),'configError':_0x3fe571(0x13b),'apiApplyInfo':{'title':_0x3fe571(0x219),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x3fe571(0x1fa),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x3fe571(0x11b),'apiKeyTooShort':_0x3fe571(0x1b9),'invalidConfig':_0x3fe571(0x20e),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x3fe571(0x297),'connecting':_0x3fe571(0x161),'connected':_0x3fe571(0x1a4),'failed':_0x3fe571(0x263),'retrying':_0x3fe571(0x197)},'connectionError':{'unauthorized':_0x3fe571(0x28e),'sessionOccupied':_0x3fe571(0x118),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x3c6d37=Object[_0x3fe571(0x135)],_0x2834b8=Object['getOwnPropertyDescriptor'],_0x1c03ea=(_0x3b7cf0,_0x4dc1fe,_0x17ad06)=>_0x4dc1fe in _0x3b7cf0?_0x3c6d37(_0x3b7cf0,_0x4dc1fe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17ad06}):_0x3b7cf0[_0x4dc1fe]=_0x17ad06,_0x13572d=(_0x5ba3bd,_0x3c832c,_0xd44bd3,_0x430800)=>{const _0x5191e9=_0x3fe571;for(var _0x4dccb4=_0x430800>0x1?void 0x0:_0x430800?_0x2834b8(_0x3c832c,_0xd44bd3):_0x3c832c,_0x56b387=_0x5ba3bd[_0x5191e9(0x272)]-0x1,_0x4d14ba;_0x56b387>=0x0;_0x56b387--)(_0x4d14ba=_0x5ba3bd[_0x56b387])&&(_0x4dccb4=_0x4d14ba(_0x4dccb4)||_0x4dccb4);return _0x4dccb4;},_0x57fddb=(_0x53d35d,_0x37eef3)=>(_0x446128,_0x466b75)=>_0x37eef3(_0x446128,_0x466b75,_0x53d35d),_0x9e460f=(_0x2d5f33,_0x2f1466,_0x2d1a97)=>_0x1c03ea(_0x2d5f33,_0x2f1466+'',_0x2d1a97);_0x152bdd[_0x3fe571(0x1ed)]=class extends _0x265896['Plugin']{constructor(_0x698bb6=_0xbb585e,_0x45bb39,_0x20e605,_0x4a7491,_0x1c385a,_0xb537f1){const _0x2c9f9a=_0x3fe571;super(),this[_0x2c9f9a(0x21c)]=_0x698bb6,this[_0x2c9f9a(0x201)]=_0x45bb39,this[_0x2c9f9a(0x15b)]=_0x20e605,this[_0x2c9f9a(0x24e)]=_0x4a7491,this['_localStorageService']=_0x1c385a,this[_0x2c9f9a(0x154)]=_0xb537f1;const {..._0x4b9ae6}=_0x265896[_0x2c9f9a(0x1f1)]({},_0xbb585e,this['_config']);this[_0x2c9f9a(0x15b)]['setConfig'](_0x52305e,_0x4b9ae6);}async[_0x3fe571(0x15a)](){const _0x556376=_0x3fe571,_0x3a5f4c=[[_0x152bdd[_0x556376(0x126)]],[_0x152bdd[_0x556376(0x1e8)]],[_0x152bdd[_0x556376(0x1a6)]]];this['_injector']['has'](_0x33c42d[_0x556376(0x259)])||_0x3a5f4c[_0x556376(0x182)]([_0x33c42d[_0x556376(0x259)],{'useClass':_0x33c42d[_0x556376(0x28b)]}]),_0x3a5f4c['forEach'](_0x2b2c9b=>this[_0x556376(0x201)][_0x556376(0x22b)](_0x2b2c9b)),this[_0x556376(0x201)][_0x556376(0x276)](_0x152bdd['MCPConnectionUIController']),this[_0x556376(0x201)][_0x556376(0x276)](_0x152bdd[_0x556376(0x1e8)]),this[_0x556376(0x201)][_0x556376(0x276)](_0x152bdd[_0x556376(0x1a6)]);}},_0x9e460f(_0x152bdd['UniverMCPUIPlugin'],_0x3fe571(0x183),_0x3fe571(0x1e2)),_0x152bdd[_0x3fe571(0x1ed)]=_0x13572d([_0x265896[_0x3fe571(0x19b)](_0x1aa300[_0x3fe571(0x22a)]),_0x57fddb(0x1,_0x265896[_0x3fe571(0x128)](_0x265896[_0x3fe571(0x1dc)])),_0x57fddb(0x2,_0x265896[_0x3fe571(0x212)]),_0x57fddb(0x3,_0x121bac['IUIPartsService']),_0x57fddb(0x4,_0x265896[_0x3fe571(0x21a)]),_0x57fddb(0x5,_0x265896['Inject'](_0x265896['LocaleService']))],_0x152bdd[_0x3fe571(0x1ed)]),_0x152bdd[_0x3fe571(0x208)]=_0x174c49,_0x152bdd[_0x3fe571(0x13d)]=_0x159880,_0x152bdd['OpenMCPConfigPanelCommand']=_0x1a0535,_0x152bdd[_0x3fe571(0x238)]=_0x5aa647,_0x152bdd['zhCN']=_0x6b44a7,Object['defineProperty'](_0x152bdd,Symbol[_0x3fe571(0x230)],{'value':_0x3fe571(0x166)});}));
|
|
1
|
+
function _0xfa95(_0x183153,_0x4ab189){_0x183153=_0x183153-0x113;const _0x18b88d=_0x18b8();let _0xfa9584=_0x18b88d[_0x183153];return _0xfa9584;}(function(_0x73c10e,_0x335ba3){const _0x2d9f33=_0xfa95,_0x287296=_0x73c10e();while(!![]){try{const _0x180803=-parseInt(_0x2d9f33(0x194))/0x1+-parseInt(_0x2d9f33(0x275))/0x2*(parseInt(_0x2d9f33(0x147))/0x3)+parseInt(_0x2d9f33(0x248))/0x4+-parseInt(_0x2d9f33(0x183))/0x5*(-parseInt(_0x2d9f33(0x1df))/0x6)+parseInt(_0x2d9f33(0x118))/0x7+-parseInt(_0x2d9f33(0x11c))/0x8*(parseInt(_0x2d9f33(0x15d))/0x9)+parseInt(_0x2d9f33(0x1b1))/0xa;if(_0x180803===_0x335ba3)break;else _0x287296['push'](_0x287296['shift']());}catch(_0x58605e){_0x287296['push'](_0x287296['shift']());}}}(_0x18b8,0x1d1db),function(_0x381c80,_0x242e5b){const _0x4cb1c4=_0xfa95;typeof exports=='object'&&typeof module<'u'?_0x242e5b(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[_0x4cb1c4(0x211)]?define([_0x4cb1c4(0x1ac),_0x4cb1c4(0x27b),'react/jsx-runtime','@univerjs-pro/mcp',_0x4cb1c4(0x229),_0x4cb1c4(0x24c),_0x4cb1c4(0x11a),_0x4cb1c4(0x27c),_0x4cb1c4(0x26f)],_0x242e5b):(_0x381c80=typeof globalThis<'u'?globalThis:_0x381c80||self,_0x242e5b(_0x381c80['UniverProMcpUi']={},_0x381c80[_0x4cb1c4(0x246)],_0x381c80[_0x4cb1c4(0x12f)],_0x381c80['UniverProMcp'],_0x381c80[_0x4cb1c4(0x12d)],_0x381c80[_0x4cb1c4(0x1e3)],_0x381c80[_0x4cb1c4(0x11a)],_0x381c80[_0x4cb1c4(0x12f)],_0x381c80[_0x4cb1c4(0x1a9)]));}(this,function(_0x2b4280,_0x11e5aa,_0x476693,_0x152d47,_0x3eaea4,_0x5c4ee1,_0x243cca,_0x8b41b6,_0x5dd83d){'use strict';const _0x5cce79=_0xfa95;var _0x7850a6=Object[_0x5cce79(0x1c1)],_0x16ece8=(_0x2dc39c,_0x38b37f,_0x240c54)=>_0x38b37f in _0x2dc39c?_0x7850a6(_0x2dc39c,_0x38b37f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240c54}):_0x2dc39c[_0x38b37f]=_0x240c54,_0x21df50=(_0x5492f1,_0x5711fb,_0x3c4895)=>_0x16ece8(_0x5492f1,typeof _0x5711fb!='symbol'?_0x5711fb+'':_0x5711fb,_0x3c4895);function _0x2b0dd0({ref:_0x2f6045,..._0x4722fb}){const _0x42d2a5=_0x5cce79,{icon:_0x1bfe1d,id:_0x27a3d6,className:_0x18cf9c,extend:_0x1bbef6,..._0x182402}=_0x4722fb,_0x73c38b=('univerjs-icon\x20univerjs-icon-'+_0x27a3d6+'\x20'+(_0x18cf9c||''))[_0x42d2a5(0x1dd)](),_0x940ed4=_0x8b41b6[_0x42d2a5(0x193)]('_'+_0x5b0ace());return _0x8c565c(_0x1bfe1d,''+_0x27a3d6,{'defIds':_0x1bfe1d['defIds'],'idSuffix':_0x940ed4['current']},{'ref':_0x2f6045,'className':_0x73c38b,..._0x182402},_0x1bbef6);}function _0x8c565c(_0x31e437,_0x42c254,_0x360042,_0x571c79,_0x3ec110){const _0x26438a=_0x5cce79;return _0x8b41b6[_0x26438a(0x20f)](_0x31e437[_0x26438a(0x184)],{'key':_0x42c254,..._0x515ccb(_0x31e437,_0x360042,_0x3ec110),..._0x571c79},(_0x1319ee(_0x31e437,_0x360042)[_0x26438a(0x1ea)]||[])[_0x26438a(0x186)]((_0x3f117b,_0x4fc27f)=>_0x8c565c(_0x3f117b,_0x42c254+'-'+_0x31e437[_0x26438a(0x184)]+'-'+_0x4fc27f,_0x360042,void 0x0,_0x3ec110)));}function _0x515ccb(_0x1e3f82,_0x57d0b1,_0x30fac0){const _0x28d86e=_0x5cce79,_0x4a2a0b={..._0x1e3f82['attrs']};_0x30fac0!=null&&_0x30fac0[_0x28d86e(0x150)]&&_0x4a2a0b[_0x28d86e(0x16b)]==='colorChannel1'&&(_0x4a2a0b[_0x28d86e(0x16b)]=_0x30fac0[_0x28d86e(0x150)]),_0x1e3f82['tag']===_0x28d86e(0x16a)&&_0x4a2a0b['id']&&(_0x4a2a0b['id']=_0x4a2a0b['id']+_0x57d0b1['idSuffix']),Object[_0x28d86e(0x113)](_0x4a2a0b)[_0x28d86e(0x163)](([_0x4938f5,_0x617f07])=>{const _0xb76626=_0x28d86e;_0x4938f5===_0xb76626(0x16a)&&typeof _0x617f07==_0xb76626(0x207)&&(_0x4a2a0b[_0x4938f5]=_0x617f07['replace'](/url\(#(.*)\)/,_0xb76626(0x179)+_0x57d0b1[_0xb76626(0x232)]+')'));});const {defIds:_0x571e30}=_0x57d0b1;return!_0x571e30||_0x571e30[_0x28d86e(0x241)]===0x0||(_0x1e3f82['tag']===_0x28d86e(0x1a5)&&_0x4a2a0b[_0x28d86e(0x20d)]&&(_0x4a2a0b[_0x28d86e(0x20d)]=_0x4a2a0b[_0x28d86e(0x20d)]+_0x57d0b1[_0x28d86e(0x232)]),Object[_0x28d86e(0x113)](_0x4a2a0b)[_0x28d86e(0x163)](([_0x18299c,_0x24af5a])=>{const _0x10225b=_0x28d86e;typeof _0x24af5a==_0x10225b(0x207)&&(_0x4a2a0b[_0x18299c]=_0x24af5a[_0x10225b(0x1f4)](/url\(#(.*)\)/,_0x10225b(0x179)+_0x57d0b1[_0x10225b(0x232)]+')'));})),_0x4a2a0b;}function _0x1319ee(_0x769194,_0x2121c3){const _0x845001=_0x5cce79;var _0x24bb8a;const {defIds:_0x45dd96}=_0x2121c3;return!_0x45dd96||_0x45dd96[_0x845001(0x241)]===0x0?_0x769194:_0x769194[_0x845001(0x184)]==='defs'&&((_0x24bb8a=_0x769194[_0x845001(0x1ea)])!=null&&_0x24bb8a[_0x845001(0x241)])?{..._0x769194,'children':_0x769194[_0x845001(0x1ea)][_0x845001(0x186)](_0x31cfa=>typeof _0x31cfa['attrs']['id']=='string'&&_0x45dd96&&_0x45dd96[_0x845001(0x209)](_0x31cfa['attrs']['id'])?{..._0x31cfa,'attrs':{..._0x31cfa[_0x845001(0x154)],'id':_0x31cfa[_0x845001(0x154)]['id']+_0x2121c3[_0x845001(0x232)]}}:_0x31cfa)}:_0x769194;}function _0x5b0ace(){const _0x25516a=_0x5cce79;return Math[_0x25516a(0x281)]()[_0x25516a(0x15e)](0x24)[_0x25516a(0x1e8)](0x2,0x8);}_0x2b0dd0[_0x5cce79(0x216)]=_0x5cce79(0x20b);const _0x365847={'tag':_0x5cce79(0x27f),'attrs':{'xmlns':_0x5cce79(0x133),'fill':_0x5cce79(0x245),'viewBox':'0\x200\x2016\x2016','width':_0x5cce79(0x249),'height':_0x5cce79(0x249)},'children':[{'tag':'path','attrs':{'fill':_0x5cce79(0x13d),'d':_0x5cce79(0x17c),'fillRule':_0x5cce79(0x14a),'clipRule':_0x5cce79(0x14a)}}]},_0x1eee79=_0x8b41b6[_0x5cce79(0x291)](function(_0x3bdaca,_0x468fad){const _0x43817a=_0x5cce79;return _0x8b41b6[_0x43817a(0x20f)](_0x2b0dd0,Object['assign']({},_0x3bdaca,{'id':_0x43817a(0x1b5),'ref':_0x468fad,'icon':_0x365847}));});_0x1eee79[_0x5cce79(0x216)]=_0x5cce79(0x1f2);const _0x3034d7={'tag':_0x5cce79(0x27f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x5cce79(0x148),'width':_0x5cce79(0x249),'height':_0x5cce79(0x249)},'children':[{'tag':_0x5cce79(0x189),'attrs':{'fill':_0x5cce79(0x13d),'d':_0x5cce79(0x1f9)}}]},_0x41ef6d=_0x8b41b6['forwardRef'](function(_0x10bc5e,_0x133701){const _0x22559c=_0x5cce79;return _0x8b41b6[_0x22559c(0x20f)](_0x2b0dd0,Object[_0x22559c(0x1d6)]({},_0x10bc5e,{'id':'close-icon','ref':_0x133701,'icon':_0x3034d7}));});_0x41ef6d[_0x5cce79(0x216)]=_0x5cce79(0x26c);const _0x285e17={'tag':_0x5cce79(0x27f),'attrs':{'xmlns':_0x5cce79(0x133),'fill':_0x5cce79(0x245),'viewBox':_0x5cce79(0x148),'width':'1em','height':'1em'},'children':[{'tag':_0x5cce79(0x189),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x5cce79(0x189),'attrs':{'fill':_0x5cce79(0x13d),'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':_0x5cce79(0x13d),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x5cce79(0x14a),'clipRule':'evenodd'}}]},_0x51b8e9=_0x8b41b6[_0x5cce79(0x291)](function(_0x4f3585,_0x42768e){const _0x3713ce=_0x5cce79;return _0x8b41b6[_0x3713ce(0x20f)](_0x2b0dd0,Object['assign']({},_0x4f3585,{'id':'help-icon','ref':_0x42768e,'icon':_0x285e17}));});_0x51b8e9['displayName']=_0x5cce79(0x267);const _0x52b40b={'tag':_0x5cce79(0x27f),'attrs':{'xmlns':_0x5cce79(0x133),'fill':'none','viewBox':_0x5cce79(0x148),'width':_0x5cce79(0x249),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5cce79(0x125)},'children':[{'tag':_0x5cce79(0x189),'attrs':{'stroke':_0x5cce79(0x13d),'d':_0x5cce79(0x20c),'strokeLinecap':'round','strokeLinejoin':_0x5cce79(0x13c),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5cce79(0x11d),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5cce79(0x189),'attrs':{'fill':_0x5cce79(0x230),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x863406=_0x8b41b6[_0x5cce79(0x291)](function(_0xaa4f47,_0x3cc94c){const _0x1dc170=_0x5cce79;return _0x8b41b6[_0x1dc170(0x20f)](_0x2b0dd0,Object[_0x1dc170(0x1d6)]({},_0xaa4f47,{'id':'off-line-icon','ref':_0x3cc94c,'icon':_0x52b40b}));});_0x863406[_0x5cce79(0x216)]=_0x5cce79(0x198);const _0x5137d2={'tag':_0x5cce79(0x27f),'attrs':{'xmlns':_0x5cce79(0x133),'fill':_0x5cce79(0x245),'viewBox':_0x5cce79(0x1ba),'width':'1em','height':_0x5cce79(0x249)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x5cce79(0x189),'attrs':{'stroke':_0x5cce79(0x13d),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5cce79(0x286),'attrs':{},'children':[{'tag':_0x5cce79(0x11d),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x5cce79(0x189),'attrs':{'fill':'white','d':_0x5cce79(0x23c),'transform':_0x5cce79(0x252)}}]}]}],'defIds':[_0x5cce79(0x1f7)]},_0x22bd94=_0x8b41b6[_0x5cce79(0x291)](function(_0x3e57be,_0x39e4a6){const _0x596488=_0x5cce79;return _0x8b41b6[_0x596488(0x20f)](_0x2b0dd0,Object[_0x596488(0x1d6)]({},_0x3e57be,{'id':'on-line-icon','ref':_0x39e4a6,'icon':_0x5137d2}));});_0x22bd94[_0x5cce79(0x216)]=_0x5cce79(0x11f);function _0x6b2761(_0xc9e533){const _0x3e4277=_0x5cce79;var _0x34dab3,_0x21d207;const {mcpCoreConfig:_0x27b570,onSave:_0x1fca68,loading:_0x4521ce=!0x1,config:_0x6e084,connectionStatus$:_0x140812,connectionError$:_0x544854,currentApiKey$:_0x4d531c,currentSessionId$:_0x4ac012}=_0xc9e533,_0x58455f=_0x5c4ee1[_0x3e4277(0x25e)](_0x11e5aa[_0x3e4277(0x24d)]),_0x5313da=_0x5c4ee1[_0x3e4277(0x177)](_0x140812,_0x152d47[_0x3e4277(0x268)]['DISCONNECTED']),_0x501404=_0x5c4ee1[_0x3e4277(0x177)](_0x544854,_0x152d47[_0x3e4277(0x25f)][_0x3e4277(0x144)]),_0x1a6d95=_0x5c4ee1[_0x3e4277(0x177)](_0x4ac012,''),_0x4f72e2=_0x5c4ee1[_0x3e4277(0x177)](_0x4d531c,''),[_0xda8da8,_0x2260e0]=_0x8b41b6[_0x3e4277(0x1a3)](_0x4f72e2||''),_0x1a2f2e=!0x0,_0x5d5f7a=_0x6e084['showDeveloperTools']&&_0x27b570['mcpServerUrl']&&(_0x27b570[_0x3e4277(0x160)][_0x3e4277(0x209)](_0x3e4277(0x294))||_0x27b570['mcpServerUrl'][_0x3e4277(0x209)]('univer.ai')),_0x241e21=(_0x34dab3=_0x27b570[_0x3e4277(0x160)])==null?void 0x0:_0x34dab3[_0x3e4277(0x209)](_0x3e4277(0x294)),_0xc42750=(_0x21d207=_0x27b570[_0x3e4277(0x160)])==null?void 0x0:_0x21d207['includes']('univer.ai'),_0x2c42d0=_0x241e21?_0x3e4277(0x227):_0x3e4277(0x22f),_0x3f793f=_0x6e084[_0x3e4277(0x1e4)]&&(_0x241e21||_0xc42750),[_0x36be22,_0x6383cf]=_0x8b41b6['useState'](!_0xda8da8[_0x3e4277(0x1dd)]()),_0x2ce47e=(_0x355ccd,_0x104169)=>{const _0x23e637=_0x3e4277;if(_0x104169===_0x152d47[_0x23e637(0x25f)][_0x23e637(0x283)])return _0x23e637(0x202);switch(_0x355ccd){case _0x152d47[_0x23e637(0x268)][_0x23e637(0x23b)]:return _0x23e637(0x187);case _0x152d47['MCPConnectionStatus'][_0x23e637(0x20e)]:case _0x152d47[_0x23e637(0x268)]['RETRYING']:return _0x23e637(0x11e);case _0x152d47[_0x23e637(0x268)][_0x23e637(0x117)]:return _0x23e637(0x202);default:return _0x23e637(0x272);}},_0x4b632c=(_0x957389,_0x5c7203)=>{const _0x5f1af9=_0x3e4277;if(_0x5c7203===_0x152d47[_0x5f1af9(0x25f)][_0x5f1af9(0x283)])return _0x5f1af9(0x257);switch(_0x957389){case _0x152d47[_0x5f1af9(0x268)][_0x5f1af9(0x23b)]:return _0x5f1af9(0x12c);case _0x152d47[_0x5f1af9(0x268)][_0x5f1af9(0x20e)]:case _0x152d47[_0x5f1af9(0x268)][_0x5f1af9(0x235)]:return _0x5f1af9(0x1da);case _0x152d47[_0x5f1af9(0x268)][_0x5f1af9(0x117)]:return _0x5f1af9(0x257);default:return _0x5f1af9(0x14e);}},_0x3c1757=_0x2d1665=>{const _0x319a02=_0x3e4277;switch(_0x2d1665){case _0x152d47[_0x319a02(0x268)]['CONNECTED']:return _0x58455f['t'](_0x319a02(0x217));case _0x152d47[_0x319a02(0x268)]['CONNECTING']:return _0x58455f['t']('mcpConfig.connectionStatus.connecting');case _0x152d47['MCPConnectionStatus'][_0x319a02(0x117)]:return _0x58455f['t'](_0x319a02(0x171));case _0x152d47[_0x319a02(0x268)][_0x319a02(0x235)]:return _0x58455f['t']('mcpConfig.connectionStatus.retrying');default:return _0x58455f['t'](_0x319a02(0x24b));}},_0x2a37b8=_0x1e7343=>{const _0x1a6a61=_0x3e4277;switch(_0x1e7343){case _0x152d47['MCPConnectionError']['UNAUTHORIZED']:return _0x58455f['t']('mcpConfig.connectionError.unauthorized');case _0x152d47[_0x1a6a61(0x25f)][_0x1a6a61(0x1de)]:return _0x58455f['t'](_0x1a6a61(0x149));case _0x152d47['MCPConnectionError']['NETWORK_ERROR']:return _0x58455f['t'](_0x1a6a61(0x210));case _0x152d47[_0x1a6a61(0x25f)][_0x1a6a61(0x13b)]:return _0x58455f['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x474b0c=_0x8b41b6['useCallback'](()=>{const _0x291929={..._0x27b570,'apiKey':_0xda8da8['trim'](),'enableAuth':_0x1a2f2e};_0x1fca68(_0x291929);},[_0x27b570,_0xda8da8,_0x1a2f2e,_0x1fca68]),_0x1363cb=_0xda8da8['trim']()['length']>0x0;return _0x476693[_0x3e4277(0x1e6)]('div',{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x476693['jsx'](_0x3e4277(0x181),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':_0x3e4277(0x1a0),'children':[_0x476693['jsx'](_0x3e4277(0x181),{'className':_0x3e4277(0x214),'children':_0x476693['jsx']('span',{'className':_0x3e4277(0x1d4),'children':'⚙'})}),_0x476693[_0x3e4277(0x164)]('div',{'children':_0x476693['jsx']('p',{'className':_0x3e4277(0x27e),'children':_0x58455f['t'](_0x3e4277(0x139))})})]})}),_0x476693['jsxs'](_0x3e4277(0x181),{'className':_0x3e4277(0x24a),'children':[_0x476693[_0x3e4277(0x164)]('div',{'className':_0x3eaea4[_0x3e4277(0x24e)](_0x3e4277(0x1f5),_0x2ce47e(_0x5313da,_0x501404)),'children':_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x476693[_0x3e4277(0x164)]('div',{'className':_0x3eaea4[_0x3e4277(0x24e)](_0x3e4277(0x22d),_0x4b632c(_0x5313da,_0x501404))}),_0x476693[_0x3e4277(0x164)](_0x3e4277(0x123),{'className':_0x3e4277(0x273),'children':_0x3c1757(_0x5313da)})]})}),_0x501404!==_0x152d47[_0x3e4277(0x25f)][_0x3e4277(0x144)]&&(_0x5313da===_0x152d47[_0x3e4277(0x268)][_0x3e4277(0x117)]||_0x501404===_0x152d47[_0x3e4277(0x25f)][_0x3e4277(0x283)])&&_0x476693[_0x3e4277(0x164)](_0x3e4277(0x181),{'className':_0x3e4277(0x176),'children':_0x476693[_0x3e4277(0x1e6)]('div',{'className':_0x3e4277(0x270),'children':[_0x476693[_0x3e4277(0x164)]('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x476693['jsx']('p',{'className':_0x3e4277(0x293),'children':_0x2a37b8(_0x501404)})]})})]}),_0x476693[_0x3e4277(0x164)](_0x3e4277(0x181),{'className':_0x3e4277(0x261),'children':_0x476693['jsxs'](_0x3e4277(0x181),{'className':_0x3e4277(0x1a2),'children':[_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':_0x3e4277(0x192),'children':[_0x476693[_0x3e4277(0x1e6)]('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x123),{'children':'🔑'}),'\x20',_0x58455f['t'](_0x3e4277(0x1f0)),_0x476693['jsx']('span',{'className':_0x3e4277(0x19d),'children':'*'}),_0x5d5f7a&&_0x476693[_0x3e4277(0x164)]('a',{'className':_0x3e4277(0x1cd),'title':_0x58455f['t'](_0x3e4277(0x21f)),'role':_0x3e4277(0x247),'onClick':()=>_0x6383cf(!0x0),'children':_0x476693[_0x3e4277(0x164)](_0x51b8e9,{})})]}),_0x476693['jsx'](_0x3eaea4[_0x3e4277(0x137)],{'type':_0x3e4277(0x151),'placeholder':_0x58455f['t'](_0x3e4277(0x18a)),'value':_0xda8da8,'disabled':_0x4521ce,'autoComplete':'off','onChange':_0x2260e0}),_0x476693['jsx']('p',{'className':_0x3e4277(0x226),'children':_0x58455f['t'](_0x3e4277(0x200))})]}),_0x5d5f7a&&_0x36be22&&_0x476693[_0x3e4277(0x1e6)]('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':[_0x476693[_0x3e4277(0x164)]('a',{'className':_0x3e4277(0x15b),'role':_0x3e4277(0x247),'onClick':()=>_0x6383cf(!0x1),'children':_0x476693[_0x3e4277(0x164)](_0x41ef6d,{'className':_0x3e4277(0x28d)})}),_0x476693[_0x3e4277(0x1e6)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x181),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x476693['jsx'](_0x3e4277(0x123),{'className':_0x3e4277(0x27a),'children':'🚀'})}),_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':'univer-flex-1','children':[_0x476693[_0x3e4277(0x164)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x58455f['t'](_0x3e4277(0x21f))}),_0x476693['jsx']('p',{'className':_0x3e4277(0x1d3),'children':_0x58455f['t'](_0x3e4277(0x25a))}),_0x476693[_0x3e4277(0x164)](_0x3e4277(0x181),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x3f793f&&_0x476693['jsxs']('a',{'className':_0x3e4277(0x16e),'href':_0x2c42d0,'target':_0x3e4277(0x1fe),'rel':'noopener\x20noreferrer','children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x123),{'children':'🤖'}),_0x58455f['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x476693[_0x3e4277(0x164)](_0x3e4277(0x123),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':_0x3e4277(0x12b),'children':['✨','\x20',_0x58455f['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x6e084[_0x3e4277(0x1e4)]&&_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':_0x3e4277(0x196),'children':[_0x476693[_0x3e4277(0x1e6)]('h4',{'className':_0x3e4277(0x19b),'children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x123),{'children':'🔗'}),'\x20',_0x58455f['t'](_0x3e4277(0x1ed))]}),_0x476693['jsxs'](_0x3e4277(0x181),{'className':_0x3e4277(0x175),'children':[_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':_0x3e4277(0x243),'children':[_0x476693[_0x3e4277(0x164)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x58455f['t'](_0x3e4277(0x1c0))}),_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':_0x3e4277(0x192),'children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x181),{'className':_0x3e4277(0x1f6),'children':_0x58455f['t'](_0x3e4277(0x22a))}),_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':_0x3e4277(0x166),'children':[_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x476693[_0x3e4277(0x164)]('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x58455f['t'](_0x3e4277(0x18f))]}),_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':_0x3e4277(0x174),'children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x123),{'className':_0x3e4277(0x25c),'children':'2'}),_0x58455f['t']('mcpConfig.configStep2')]}),_0x476693[_0x3e4277(0x1e6)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x476693['jsx'](_0x3e4277(0x123),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x58455f['t'](_0x3e4277(0x244))]})]})]})]}),_0x476693['jsxs']('div',{'className':'univer-space-y-2','children':[_0x476693[_0x3e4277(0x164)]('div',{'className':_0x3e4277(0x1f6),'children':'MCP\x20Configuration'}),_0x476693[_0x3e4277(0x164)]('div',{'className':_0x3e4277(0x1c2),'children':_0x476693[_0x3e4277(0x164)](_0x3e4277(0x168),{'className':_0x3e4277(0x1c4),'children':JSON[_0x3e4277(0x1cf)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x1a6d95||_0x3e4277(0x285)),'type':_0x3e4277(0x279),'headers':{'Authorization':_0x3e4277(0x28c)+(_0xda8da8||'<API_KEY>')}}}},null,0x2)})})]}),_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':_0x3e4277(0x243),'children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x181),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x58455f['t']('mcpConfig.configParameters')}),_0x476693['jsxs'](_0x3e4277(0x181),{'className':_0x3e4277(0x192),'children':[_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x476693['jsx'](_0x3e4277(0x181),{'className':_0x3e4277(0x20a)}),_0x476693[_0x3e4277(0x1e6)]('div',{'className':_0x3e4277(0x199),'children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x181),{'className':_0x3e4277(0x1ca),'children':_0x3e4277(0x1f3)}),_0x476693['jsx'](_0x3e4277(0x181),{'className':_0x3e4277(0x226),'children':_0x58455f['t']('mcpConfig.sessionIdDescription')})]})]}),_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':_0x3e4277(0x254),'children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x181),{'className':_0x3e4277(0x20a)}),_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'className':_0x3e4277(0x199),'children':[_0x476693['jsx']('div',{'className':_0x3e4277(0x1ca),'children':'Authorization:'}),_0x476693[_0x3e4277(0x164)](_0x3e4277(0x181),{'className':_0x3e4277(0x226),'children':_0x58455f['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x476693[_0x3e4277(0x164)](_0x3eaea4[_0x3e4277(0x1aa)],{'onClick':_0x474b0c,'disabled':!_0x1363cb||_0x4521ce,'className':_0x3e4277(0x1d9),'children':_0x4521ce?_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x123),{'className':_0x3e4277(0x174),'children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x123),{'children':'⟲'}),_0x58455f['t'](_0x3e4277(0x14b))]}):_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x123),{'className':_0x3e4277(0x174),'children':[_0x476693[_0x3e4277(0x164)](_0x1eee79,{}),_0x58455f['t']('mcpConfig.save')]})}),_0x476693[_0x3e4277(0x164)](_0x3e4277(0x181),{'className':_0x3e4277(0x1ae),'children':_0x476693[_0x3e4277(0x1e6)]('div',{'className':_0x3e4277(0x242),'children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x123),{'className':_0x3e4277(0x13e),'children':'💡'}),_0x476693[_0x3e4277(0x1e6)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x476693[_0x3e4277(0x164)](_0x3e4277(0x181),{'className':_0x3e4277(0x21d),'children':_0x3e4277(0x1cc)}),_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'children':['•',_0x58455f['t'](_0x3e4277(0x19e))]}),_0x476693[_0x3e4277(0x1e6)](_0x3e4277(0x181),{'children':['•',_0x58455f['t'](_0x3e4277(0x21e))]})]})]})})]})})]});}const _0x1b0025=_0x5cce79(0x28a),_0x57bc77={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x184d4a=Object[_0x5cce79(0x135)],_0x101d58=(_0x1eb2d9,_0x1f3bef,_0x3465fb,_0x91e649)=>{for(var _0x47b54d=_0x91e649>0x1?void 0x0:_0x91e649?_0x184d4a(_0x1f3bef,_0x3465fb):_0x1f3bef,_0x4ff644=_0x1eb2d9['length']-0x1,_0x5e9611;_0x4ff644>=0x0;_0x4ff644--)(_0x5e9611=_0x1eb2d9[_0x4ff644])&&(_0x47b54d=_0x5e9611(_0x47b54d)||_0x47b54d);return _0x47b54d;},_0x47d540=(_0x141697,_0x31d544)=>(_0x27aba4,_0x5debdc)=>_0x31d544(_0x27aba4,_0x5debdc,_0x141697);const _0x3c69d1=_0x5cce79(0x178),_0x583f39=_0x5cce79(0x282);_0x2b4280[_0x5cce79(0x206)]=class extends _0x11e5aa[_0x5cce79(0x119)]{constructor(_0x2c4c2e,_0x2fc5e0,_0x51dd50,_0x220d86,_0x3d491b,_0x44139c,_0x57895a,_0x9a569f,_0x3dbb42,_0x2e603b){const _0x42ffab=_0x5cce79;super(),_0x21df50(this,_0x42ffab(0x18c),new _0x243cca[(_0x42ffab(0x222))](!0x1)),_0x21df50(this,_0x42ffab(0x136),new _0x243cca['BehaviorSubject']({})),_0x21df50(this,_0x42ffab(0x215),new _0x243cca[(_0x42ffab(0x222))]({})),_0x21df50(this,_0x42ffab(0x15c),new _0x243cca[(_0x42ffab(0x222))]('')),_0x21df50(this,'_handleConfigSave',async _0x16898c=>{const _0x4ce8aa=_0x42ffab;var _0x37fc3b,_0x293e17;this['_loading$'][_0x4ce8aa(0x173)](!0x0);try{const _0x4e673a=await this['_validateConfig'](_0x16898c);if(!_0x4e673a[_0x4ce8aa(0x132)]){this['_messageService'][_0x4ce8aa(0x1fd)]({'type':_0x3eaea4['MessageType'][_0x4ce8aa(0x19a)],'content':_0x4e673a['errorMessage']||this['_localeService']['t'](_0x4ce8aa(0x1bc))});return;}_0x16898c[_0x4ce8aa(0x1be)]?await this[_0x4ce8aa(0x1e2)][_0x4ce8aa(0x1b9)](_0x3c69d1,_0x16898c['apiKey'][_0x4ce8aa(0x1dd)]()):await this['_localStorageService']['removeItem'](_0x3c69d1),this[_0x4ce8aa(0x15c)][_0x4ce8aa(0x173)](((_0x37fc3b=_0x16898c['apiKey'])==null?void 0x0:_0x37fc3b['trim']())||''),this[_0x4ce8aa(0x28f)][_0x4ce8aa(0x240)]({'Authorization':_0x4ce8aa(0x28c)+((_0x293e17=_0x16898c[_0x4ce8aa(0x1be)])==null?void 0x0:_0x293e17[_0x4ce8aa(0x1dd)]())}),this[_0x4ce8aa(0x1a6)][_0x4ce8aa(0x1fd)]({'type':_0x3eaea4['MessageType'][_0x4ce8aa(0x16c)],'content':this[_0x4ce8aa(0x17b)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x2b90e7=_0x4ce8aa;this[_0x2b90e7(0x1b4)][_0x2b90e7(0x180)](_0x583f39);},0x320);}catch(_0x5c502e){this[_0x4ce8aa(0x23f)]['error'](_0x4ce8aa(0x228),_0x5c502e),this['_messageService'][_0x4ce8aa(0x1fd)]({'type':_0x3eaea4[_0x4ce8aa(0x15f)][_0x4ce8aa(0x19a)],'content':this[_0x4ce8aa(0x17b)]['t'](_0x4ce8aa(0x138))});}finally{this[_0x4ce8aa(0x18c)][_0x4ce8aa(0x173)](!0x1);}}),(this[_0x42ffab(0x1bf)]=_0x2c4c2e,this[_0x42ffab(0x276)]=_0x2fc5e0,this[_0x42ffab(0x1b7)]=_0x51dd50,this[_0x42ffab(0x1e2)]=_0x220d86,this['_dialogService']=_0x3d491b,this[_0x42ffab(0x1a6)]=_0x44139c,this[_0x42ffab(0x152)]=_0x57895a,this['_localeService']=_0x9a569f,this[_0x42ffab(0x23f)]=_0x3dbb42,this[_0x42ffab(0x28f)]=_0x2e603b,this[_0x42ffab(0x256)](),this['_loadStoredApiKey'](),this[_0x42ffab(0x116)]());}[_0x5cce79(0x1dc)](){const _0x1a992b=_0x5cce79,_0x47d890=this[_0x1a992b(0x1b7)][_0x1a992b(0x182)](_0x1b0025);_0x47d890!=null&&_0x47d890[_0x1a992b(0x1e4)]&&this[_0x1a992b(0x1b4)]['open']({'id':_0x583f39,'title':{'title':this[_0x1a992b(0x17b)]['t']('mcpConfig.title')},'children':{'label':_0x1a992b(0x23a)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5bd37e=_0x1a992b;this[_0x5bd37e(0x1b4)][_0x5bd37e(0x180)](_0x583f39);}});}[_0x5cce79(0x274)](){const _0x4e9e83=_0x5cce79;return this[_0x4e9e83(0x136)]['value'];}[_0x5cce79(0x116)](){const _0x5c8cfb=_0x5cce79;this[_0x5c8cfb(0x157)](this['_componentManager'][_0x5c8cfb(0x1ff)](_0x5c8cfb(0x23a),this[_0x5c8cfb(0x26a)]()));}[_0x5cce79(0x26a)](){const _0x10079b=_0x5cce79;return _0x5c4ee1[_0x10079b(0x1b6)](()=>{const _0x322a17=_0x10079b;var _0x35f22a,_0x2607f8,_0x491c9e;return _0x476693[_0x322a17(0x164)](_0x6b2761,{'config':this[_0x322a17(0x215)][_0x322a17(0x265)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x322a17(0x265)],'currentApiKey$':this[_0x322a17(0x15c)],'onSave':this[_0x322a17(0x1c3)],'loading':this['_loading$'][_0x322a17(0x265)],'connectionStatus$':(_0x35f22a=this['_mcpConnectionController'])==null?void 0x0:_0x35f22a[_0x322a17(0x1ee)],'connectionError$':(_0x2607f8=this[_0x322a17(0x28f)])==null?void 0x0:_0x2607f8[_0x322a17(0x234)],'currentSessionId$':(_0x491c9e=this[_0x322a17(0x28f)])==null?void 0x0:_0x491c9e[_0x322a17(0x14d)]});},this['_injector']);}[_0x5cce79(0x256)](){const _0x1e6022=_0x5cce79;this[_0x1e6022(0x157)](this[_0x1e6022(0x1b7)][_0x1e6022(0x165)](_0x152d47['MCP_PLUGIN_CONFIG_KEY'])[_0x1e6022(0x296)](_0x231363=>{const _0x3b11c2=_0x1e6022;this[_0x3b11c2(0x136)][_0x3b11c2(0x173)](_0x231363||{});}));const _0x55e1e4=this[_0x1e6022(0x1b7)][_0x1e6022(0x182)](_0x152d47[_0x1e6022(0x292)]);this[_0x1e6022(0x136)][_0x1e6022(0x173)](_0x55e1e4||{}),this[_0x1e6022(0x157)](this[_0x1e6022(0x1b7)][_0x1e6022(0x165)](_0x1b0025)[_0x1e6022(0x296)](_0x14003c=>{this['_config$']['next'](_0x14003c||{});}));const _0x1e0f96=this[_0x1e6022(0x1b7)]['getConfig'](_0x1b0025);this[_0x1e6022(0x215)][_0x1e6022(0x173)](_0x1e0f96||{});}async[_0x5cce79(0x18d)](){const _0x1f008f=_0x5cce79,_0x5c84ec=this[_0x1f008f(0x1b7)][_0x1f008f(0x182)](_0x1b0025);if(!(_0x5c84ec!=null&&_0x5c84ec[_0x1f008f(0x1e4)]))return;const _0x3b89ef=await this[_0x1f008f(0x1e2)][_0x1f008f(0x17a)](_0x3c69d1);_0x3b89ef&&(this[_0x1f008f(0x28f)][_0x1f008f(0x240)]({'Authorization':_0x1f008f(0x28c)+_0x3b89ef}),this[_0x1f008f(0x15c)]['next'](_0x3b89ef));}async['_validateConfig'](_0x179500){const _0xeebefb=_0x5cce79;if(!_0x179500[_0xeebefb(0x1be)]||_0x179500[_0xeebefb(0x1be)]['trim']()[_0xeebefb(0x241)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0xeebefb(0x17b)]['t'](_0xeebefb(0x1e5))};if(_0x179500['apiKey'][_0xeebefb(0x1dd)]()[_0xeebefb(0x241)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0xeebefb(0x129))};try{const _0x2636ea=await this[_0xeebefb(0x1bf)][_0xeebefb(0x145)](_0x152d47['MCPConnectionController'])['validateApiKey'](_0x179500['apiKey'][_0xeebefb(0x1dd)]());return _0x2636ea[_0xeebefb(0x132)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2636ea[_0xeebefb(0x223)]||this[_0xeebefb(0x17b)]['t'](_0xeebefb(0x1a4))};}catch(_0x3653f6){return console[_0xeebefb(0x1fc)](_0xeebefb(0x1d0),_0x3653f6),{'isValid':!0x0};}}},_0x2b4280['MCPConfigUIController']=_0x101d58([_0x47d540(0x0,_0x11e5aa[_0x5cce79(0x1fa)](_0x11e5aa['Injector'])),_0x47d540(0x1,_0x5c4ee1[_0x5cce79(0x140)]),_0x47d540(0x2,_0x11e5aa[_0x5cce79(0x13a)]),_0x47d540(0x3,_0x11e5aa[_0x5cce79(0x12e)]),_0x47d540(0x4,_0x5c4ee1['IDialogService']),_0x47d540(0x5,_0x5c4ee1[_0x5cce79(0x22c)]),_0x47d540(0x6,_0x11e5aa[_0x5cce79(0x1fa)](_0x5c4ee1[_0x5cce79(0x1ef)])),_0x47d540(0x7,_0x11e5aa[_0x5cce79(0x1fa)](_0x11e5aa['LocaleService'])),_0x47d540(0x8,_0x11e5aa[_0x5cce79(0x1ad)]),_0x47d540(0x9,_0x11e5aa[_0x5cce79(0x1fa)](_0x152d47['MCPConnectionController']))],_0x2b4280[_0x5cce79(0x206)]);const _0x230e4b={'id':'mcp-ui.command.openConfigPanel','type':_0x11e5aa[_0x5cce79(0x260)][_0x5cce79(0x221)],'handler':async(_0x4d3995,_0x24a3aa)=>(_0x4d3995[_0x5cce79(0x145)](_0x2b4280['MCPConfigUIController'])[_0x5cce79(0x1dc)](),!0x0)};function _0x45c8c4(_0x427223,_0x304218){const _0x3dc3d6=_0x5cce79;switch(_0x427223){case _0x152d47[_0x3dc3d6(0x268)]['DISCONNECTED']:return _0x3dc3d6(0x191);case _0x152d47['MCPConnectionStatus'][_0x3dc3d6(0x20e)]:return'mcpStatus.connecting';case _0x152d47[_0x3dc3d6(0x268)][_0x3dc3d6(0x23b)]:return _0x3dc3d6(0x264);case _0x152d47[_0x3dc3d6(0x268)][_0x3dc3d6(0x117)]:switch(_0x304218){case _0x152d47[_0x3dc3d6(0x25f)][_0x3dc3d6(0x283)]:return _0x3dc3d6(0x295);case _0x152d47[_0x3dc3d6(0x25f)][_0x3dc3d6(0x1de)]:return _0x3dc3d6(0x204);case _0x152d47[_0x3dc3d6(0x25f)]['NETWORK_ERROR']:return _0x3dc3d6(0x170);case _0x152d47[_0x3dc3d6(0x25f)][_0x3dc3d6(0x13b)]:return _0x3dc3d6(0x290);default:return _0x3dc3d6(0x27d);}case _0x152d47[_0x3dc3d6(0x268)][_0x3dc3d6(0x235)]:return _0x3dc3d6(0x153);default:return _0x3dc3d6(0x238);}}function _0x47c7bf(_0xbe083e,_0x65e996,_0x11dfc0,_0x4ed522=!0x0){const _0x46ea4c=_0x5cce79,_0x4667f5=_0x45c8c4(_0xbe083e,_0x65e996),_0x27ce9c=_0x11dfc0['t'](_0x4667f5);return _0x4ed522?_0xbe083e===_0x152d47[_0x46ea4c(0x268)][_0x46ea4c(0x122)]&&_0x65e996===_0x152d47['MCPConnectionError'][_0x46ea4c(0x283)]?_0x27ce9c+_0x46ea4c(0x288)+_0x11dfc0['t']('mcpStatus.clickToConfigure'):_0xbe083e===_0x152d47[_0x46ea4c(0x268)][_0x46ea4c(0x23b)]?''+_0x27ce9c:_0xbe083e===_0x152d47['MCPConnectionStatus']['DISCONNECTED']||_0xbe083e===_0x152d47[_0x46ea4c(0x268)]['FAILED']?_0x27ce9c+_0x46ea4c(0x288)+_0x11dfc0['t'](_0x46ea4c(0x17f)):_0x27ce9c:_0x27ce9c;}function _0x2d2b3d(_0x580336){const _0x56af99=_0x5cce79;switch(_0x580336){case _0x152d47['MCPConnectionStatus'][_0x56af99(0x23b)]:return _0x56af99(0x25b);case _0x152d47[_0x56af99(0x268)][_0x56af99(0x20e)]:case _0x152d47['MCPConnectionStatus']['RETRYING']:return _0x56af99(0x278);case _0x152d47['MCPConnectionStatus'][_0x56af99(0x117)]:case _0x152d47[_0x56af99(0x268)][_0x56af99(0x122)]:return'univer-text-red-500';default:return _0x56af99(0x277);}}function _0xf010c1(_0x5d559c){const _0xe8b979=_0x5cce79,{status$:_0x4d6327,error$:_0x53bd47,onConfigure:_0x55b64f,showClickable:_0x319d22=!0x0}=_0x5d559c,_0x4e6d71=_0x5c4ee1[_0xe8b979(0x177)](_0x4d6327,_0x152d47['MCPConnectionStatus']['DISCONNECTED']),_0x265188=_0x5c4ee1[_0xe8b979(0x177)](_0x53bd47,_0x152d47[_0xe8b979(0x25f)]['NONE']),_0x16add2=_0x5c4ee1[_0xe8b979(0x25e)](_0x11e5aa[_0xe8b979(0x24d)]),_0x28fbd0=_0x4e6d71===_0x152d47['MCPConnectionStatus'][_0xe8b979(0x23b)];_0x4e6d71===_0x152d47[_0xe8b979(0x268)][_0xe8b979(0x20e)]||_0x152d47[_0xe8b979(0x268)][_0xe8b979(0x235)];const _0x384415=_0x16add2['t'](_0x45c8c4(_0x4e6d71,_0x265188)),_0x543af9=_0x47c7bf(_0x4e6d71,_0x265188,_0x16add2,_0x319d22),_0x418642=_0x2d2b3d(_0x4e6d71),_0x2df60a=_0x28fbd0?_0x476693[_0xe8b979(0x164)](_0x22bd94,{}):_0x476693[_0xe8b979(0x164)](_0x863406,{}),_0x3049a1=_0x8b41b6[_0xe8b979(0x271)](()=>{_0x319d22&&_0x55b64f&&_0x55b64f();},[_0x319d22,_0x55b64f]);function _0x2bb4b0(){const _0x34a35d=_0xe8b979;return _0x476693['jsxs'](_0x34a35d(0x181),{'className':_0x3eaea4['clsx'](_0x34a35d(0x255),_0x319d22&&_0x55b64f&&'\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'),'role':_0x34a35d(0x247),'onClick':_0x319d22&&_0x55b64f?_0x3049a1:void 0x0,'children':[_0x476693[_0x34a35d(0x164)]('div',{'className':_0x3eaea4['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x418642),'children':_0x2df60a}),_0x476693['jsx'](_0x34a35d(0x181),{'className':_0x34a35d(0x19c),'children':_0x384415})]});}return _0x476693[_0xe8b979(0x164)](_0x3eaea4[_0xe8b979(0x1c9)],{'title':_0x543af9,'placement':_0xe8b979(0x1ab),'children':_0x2bb4b0()});}var _0x5dc405=Object[_0x5cce79(0x135)],_0x566975=(_0x521e6e,_0x482adf,_0x2ed885,_0x22b61b)=>{const _0x160c38=_0x5cce79;for(var _0x4dc2fd=_0x22b61b>0x1?void 0x0:_0x22b61b?_0x5dc405(_0x482adf,_0x2ed885):_0x482adf,_0x31ad1e=_0x521e6e[_0x160c38(0x241)]-0x1,_0x13a181;_0x31ad1e>=0x0;_0x31ad1e--)(_0x13a181=_0x521e6e[_0x31ad1e])&&(_0x4dc2fd=_0x13a181(_0x4dc2fd)||_0x4dc2fd);return _0x4dc2fd;},_0x53d9bd=(_0x532719,_0x175827)=>(_0xb06c1d,_0x2926e5)=>_0x175827(_0xb06c1d,_0x2926e5,_0x532719);_0x2b4280['MCPConnectionUIController']=class extends _0x11e5aa['Disposable']{constructor(_0x5bb60e,_0x40233f,_0x2a21a5,_0x67a44f){const _0x54a5a5=_0x5cce79;super(),this[_0x54a5a5(0x1bf)]=_0x5bb60e,this[_0x54a5a5(0x1d8)]=_0x40233f,this[_0x54a5a5(0x276)]=_0x2a21a5,this[_0x54a5a5(0x1b7)]=_0x67a44f,this[_0x54a5a5(0x24f)](),this[_0x54a5a5(0x233)]();}[_0x5cce79(0x24f)](){const _0x10b4d2=_0x5cce79,_0x3b5a24=this[_0x10b4d2(0x1b7)][_0x10b4d2(0x182)](_0x1b0025);_0x3b5a24!=null&&_0x3b5a24[_0x10b4d2(0x1e4)]&&(this[_0x10b4d2(0x1d8)]['enableAutoConnect']=!0x1);}[_0x5cce79(0x233)](){const _0x2741f5=_0x5cce79,_0x136919=this['_configService'][_0x2741f5(0x182)](_0x1b0025);(_0x136919==null?void 0x0:_0x136919['showStatus'])!==!0x1&&this[_0x2741f5(0x157)](this[_0x2741f5(0x276)][_0x2741f5(0x17d)](_0x5c4ee1['BuiltInUIPart'][_0x2741f5(0x1b0)],()=>{const _0x14e35b=_0x2741f5;var _0x649460;return _0x5c4ee1[_0x14e35b(0x1b6)](_0x1435c6({'status$':this[_0x14e35b(0x1d8)][_0x14e35b(0x1ee)],'error$':this[_0x14e35b(0x1d8)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x649460=_0x136919==null?void 0x0:_0x136919[_0x14e35b(0x1e4)])!=null?_0x649460:!0x1}),this[_0x14e35b(0x1bf)]);}));}[_0x5cce79(0x22b)](){const _0x5e463b=_0x5cce79;this[_0x5e463b(0x1bf)][_0x5e463b(0x145)](_0x2b4280[_0x5e463b(0x206)])['showConfigPanel']();}},_0x2b4280[_0x5cce79(0x213)]=_0x566975([_0x53d9bd(0x0,_0x11e5aa['Inject'](_0x11e5aa['Injector'])),_0x53d9bd(0x1,_0x11e5aa[_0x5cce79(0x1fa)](_0x152d47['MCPConnectionController'])),_0x53d9bd(0x2,_0x5c4ee1[_0x5cce79(0x140)]),_0x53d9bd(0x3,_0x11e5aa[_0x5cce79(0x13a)])],_0x2b4280['MCPConnectionUIController']);function _0x1435c6(_0x16fc06){const {status$:_0x3aeee2,error$:_0x5b63ef,onConfigure:_0x4b74b1,showClickable:_0x254675}=_0x16fc06;return function(){const _0x5edc2c=_0xfa95;return _0x476693[_0x5edc2c(0x164)](_0xf010c1,{'status$':_0x3aeee2,'error$':_0x5b63ef,'onConfigure':_0x4b74b1,'showClickable':_0x254675});};}function _0x4d718e(_0x19caa4){const _0x1199ea=_0x5cce79;return{'id':_0x230e4b['id'],'type':_0x5c4ee1[_0x1199ea(0x190)][_0x1199ea(0x297)],'icon':_0x1199ea(0x201),'title':_0x1199ea(0x197),'tooltip':_0x1199ea(0x197)};}const _0x495b17={[_0x5c4ee1[_0x5cce79(0x18b)][_0x5cce79(0x1fb)]]:{[_0x230e4b['id']]:{'order':0xa,'menuItemFactory':_0x4d718e}}};var _0x1bc64a=Object[_0x5cce79(0x135)],_0x533d0e=(_0x31aa3f,_0x541ad7,_0x5e532a,_0x53b032)=>{const _0x313aac=_0x5cce79;for(var _0x4181dc=_0x53b032>0x1?void 0x0:_0x53b032?_0x1bc64a(_0x541ad7,_0x5e532a):_0x541ad7,_0x5c6ba4=_0x31aa3f[_0x313aac(0x241)]-0x1,_0x193b8f;_0x5c6ba4>=0x0;_0x5c6ba4--)(_0x193b8f=_0x31aa3f[_0x5c6ba4])&&(_0x4181dc=_0x193b8f(_0x4181dc)||_0x4181dc);return _0x4181dc;},_0x1f42d1=(_0x14978f,_0x27ed3c)=>(_0x2238bc,_0x5d67a8)=>_0x27ed3c(_0x2238bc,_0x5d67a8,_0x14978f);_0x2b4280[_0x5cce79(0x169)]=class extends _0x11e5aa['Disposable']{constructor(_0x53f6cd,_0x42bb0a){const _0x500dca=_0x5cce79;super(),this[_0x500dca(0x1a7)]=_0x53f6cd,this[_0x500dca(0x237)]=_0x42bb0a,this['_initializeCommands'](),this[_0x500dca(0x1b2)]();}[_0x5cce79(0x1c7)](){const _0x131130=_0x5cce79;[_0x230e4b][_0x131130(0x163)](_0x30a53f=>{const _0x59d742=_0x131130;this[_0x59d742(0x157)](this[_0x59d742(0x1a7)][_0x59d742(0x142)](_0x30a53f));});}[_0x5cce79(0x1b2)](){const _0x1b357a=_0x5cce79;this['_menuManagerService'][_0x1b357a(0x161)](_0x495b17);}},_0x2b4280[_0x5cce79(0x169)]=_0x533d0e([_0x1f42d1(0x0,_0x11e5aa[_0x5cce79(0x134)]),_0x1f42d1(0x1,_0x5c4ee1[_0x5cce79(0x1a1)])],_0x2b4280[_0x5cce79(0x169)]);const _0x4b0112={'mcpStatus':{'disconnected':_0x5cce79(0x14f),'connecting':_0x5cce79(0x11b),'connected':_0x5cce79(0x121),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x5cce79(0x1e1),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5cce79(0x25d),'networkError':_0x5cce79(0x259),'maxRetriesExceeded':_0x5cce79(0x16f),'clickToConnect':_0x5cce79(0x236),'clickToConfigure':_0x5cce79(0x131)},'mcpConfig':{'title':_0x5cce79(0x28e),'description':_0x5cce79(0x17e),'apiKey':_0x5cce79(0x23d),'apiKeyPlaceholder':_0x5cce79(0x26b),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5cce79(0x15a),'enableAuthHint':_0x5cce79(0x219),'connectionInfo':_0x5cce79(0x156),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5cce79(0x1d2),'configStep1':_0x5cce79(0x26d),'configStep2':_0x5cce79(0x16d),'configStep3':_0x5cce79(0x1b8),'sessionId':_0x5cce79(0x231),'sessionIdDescription':_0x5cce79(0x225),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5cce79(0x1b3),'maxRetries':_0x5cce79(0x284),'save':_0x5cce79(0x26e),'saving':_0x5cce79(0x1af),'note1':_0x5cce79(0x13f),'note2':_0x5cce79(0x146),'configSaved':_0x5cce79(0x195),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5cce79(0x258),'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':_0x5cce79(0x208),'getStarted':_0x5cce79(0x124)},'validation':{'apiKeyRequired':_0x5cce79(0x188),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5cce79(0x1d5)},'connectionStatus':{'disconnected':_0x5cce79(0x1db),'connecting':_0x5cce79(0x280),'connected':_0x5cce79(0x28b),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5cce79(0x1bb),'networkError':_0x5cce79(0x1c5),'maxRetriesExceeded':_0x5cce79(0x1f8)}}},_0xfbe2ce={'mcpStatus':{'disconnected':_0x5cce79(0x205),'connecting':_0x5cce79(0x1cb),'connected':_0x5cce79(0x1bd),'failed':_0x5cce79(0x269),'retrying':_0x5cce79(0x263),'unknown':'MCP\x20状态未知','unauthorized':_0x5cce79(0x1f1),'sessionOccupied':_0x5cce79(0x253),'networkError':_0x5cce79(0x220),'maxRetriesExceeded':_0x5cce79(0x143),'clickToConnect':_0x5cce79(0x18e),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5cce79(0x115),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x5cce79(0x12a),'enableAuth':'启用身份验证','enableAuthHint':_0x5cce79(0x262),'connectionInfo':_0x5cce79(0x224),'mcpClientConfig':_0x5cce79(0x224),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x5cce79(0x1c6),'configStep1':_0x5cce79(0x1d7),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x5cce79(0x141),'sessionIdDescription':_0x5cce79(0x251),'authorizationDescription':_0x5cce79(0x167),'configParameters':'配置参数:','maxRetries':_0x5cce79(0x1a8),'save':_0x5cce79(0x1ce),'saving':'保存中...','note1':_0x5cce79(0x289),'note2':_0x5cce79(0x158),'configSaved':_0x5cce79(0x162),'configError':_0x5cce79(0x212),'apiApplyInfo':{'title':_0x5cce79(0x1ec),'description':_0x5cce79(0x1e9),'univerAiLabel':_0x5cce79(0x19f),'getStarted':_0x5cce79(0x1e0)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x5cce79(0x1e7),'invalidConfig':'配置无效','invalidApiKey':_0x5cce79(0x120)},'connectionStatus':{'disconnected':_0x5cce79(0x203),'connecting':_0x5cce79(0x250),'connected':_0x5cce79(0x22e),'failed':_0x5cce79(0x159),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x5cce79(0x21b),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x5cce79(0x14c)}}};var _0x385ad0=Object['defineProperty'],_0xf42126=Object[_0x5cce79(0x135)],_0x314ca8=(_0x289798,_0x5d39ac,_0x1944b3)=>_0x5d39ac in _0x289798?_0x385ad0(_0x289798,_0x5d39ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1944b3}):_0x289798[_0x5d39ac]=_0x1944b3,_0x4660a6=(_0x461cad,_0x1ecc1e,_0xa0908c,_0x331793)=>{const _0x4badf9=_0x5cce79;for(var _0xbec903=_0x331793>0x1?void 0x0:_0x331793?_0xf42126(_0x1ecc1e,_0xa0908c):_0x1ecc1e,_0x480837=_0x461cad[_0x4badf9(0x241)]-0x1,_0x3fa816;_0x480837>=0x0;_0x480837--)(_0x3fa816=_0x461cad[_0x480837])&&(_0xbec903=_0x3fa816(_0xbec903)||_0xbec903);return _0xbec903;},_0x455cb0=(_0x399266,_0x4f51fb)=>(_0x19b3d5,_0x412e23)=>_0x4f51fb(_0x19b3d5,_0x412e23,_0x399266),_0x179e6e=(_0x1e6753,_0xc78e38,_0x41d172)=>_0x314ca8(_0x1e6753,_0xc78e38+'',_0x41d172);_0x2b4280[_0x5cce79(0x185)]=class extends _0x11e5aa[_0x5cce79(0x287)]{constructor(_0x3e235f=_0x57bc77,_0x1be7d8,_0x526f2d,_0x45a663,_0x19d8c7,_0x48161b){const _0x80d019=_0x5cce79;super(),this[_0x80d019(0x114)]=_0x3e235f,this['_injector']=_0x1be7d8,this['_configService']=_0x526f2d,this['_uiPartsService']=_0x45a663,this[_0x80d019(0x1e2)]=_0x19d8c7,this[_0x80d019(0x17b)]=_0x48161b;const {..._0x5fab2}=_0x11e5aa[_0x80d019(0x21a)]({},_0x57bc77,this[_0x80d019(0x114)]);this[_0x80d019(0x1b7)]['setConfig'](_0x1b0025,_0x5fab2);}async[_0x5cce79(0x23e)](){const _0x415c06=_0x5cce79,_0x1841e3=[[_0x2b4280[_0x415c06(0x213)]],[_0x2b4280[_0x415c06(0x206)]],[_0x2b4280[_0x415c06(0x169)]]];this['_injector']['has'](_0x5dd83d[_0x415c06(0x218)])||_0x1841e3[_0x415c06(0x1c8)]([_0x5dd83d[_0x415c06(0x218)],{'useClass':_0x5dd83d[_0x415c06(0x1eb)]}]),_0x1841e3[_0x415c06(0x163)](_0x7ede20=>this[_0x415c06(0x1bf)][_0x415c06(0x266)](_0x7ede20)),this[_0x415c06(0x1bf)][_0x415c06(0x145)](_0x2b4280[_0x415c06(0x213)]),this['_injector'][_0x415c06(0x145)](_0x2b4280[_0x415c06(0x206)]),this['_injector'][_0x415c06(0x145)](_0x2b4280[_0x415c06(0x169)]);}},_0x179e6e(_0x2b4280[_0x5cce79(0x185)],_0x5cce79(0x172),_0x5cce79(0x1d1)),_0x2b4280[_0x5cce79(0x185)]=_0x4660a6([_0x11e5aa['DependentOn'](_0x152d47[_0x5cce79(0x127)]),_0x455cb0(0x1,_0x11e5aa[_0x5cce79(0x1fa)](_0x11e5aa[_0x5cce79(0x21c)])),_0x455cb0(0x2,_0x11e5aa[_0x5cce79(0x13a)]),_0x455cb0(0x3,_0x5c4ee1['IUIPartsService']),_0x455cb0(0x4,_0x11e5aa[_0x5cce79(0x12e)]),_0x455cb0(0x5,_0x11e5aa[_0x5cce79(0x1fa)](_0x11e5aa['LocaleService']))],_0x2b4280[_0x5cce79(0x185)]),_0x2b4280[_0x5cce79(0x23a)]=_0x6b2761,_0x2b4280[_0x5cce79(0x126)]=_0xf010c1,_0x2b4280['OpenMCPConfigPanelCommand']=_0x230e4b,_0x2b4280[_0x5cce79(0x128)]=_0x4b0112,_0x2b4280[_0x5cce79(0x130)]=_0xfbe2ce,Object[_0x5cce79(0x1c1)](_0x2b4280,Symbol[_0x5cce79(0x155)],{'value':_0x5cce79(0x239)});}));function _0x18b8(){const _0x23218a=['push','Tooltip','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20连接中...','Configuration\x20Notes:','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','保存配置','stringify','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP_UI_PLUGIN','Configuration\x20Steps:','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-text-white','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','assign','复制以下\x20JSON\x20配置','_connectionController','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-bg-blue-500','Disconnected','showConfigPanel','trim','SESSION_ID_OCCUPIED','6mnDEMK','几秒钟内获取您的\x20API\x20密钥','MCP\x20Unknown\x20Status','_localStorageService','UniverUi','showDeveloperTools','mcpConfig.validation.apiKeyRequired','jsxs','API\x20密钥长度至少需要\x2010\x20位','substring','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','children','WebSocketService','什么是\x20API\x20密钥?','mcpConfig.connectionInfo','connectionStatus$','ComponentManager','mcpConfig.apiKey','MCP:\x20未授权','CheckMarkIcon','univer_session_id:','replace','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','on-line-icon_clip0_910_349','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','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','Inject','OTHERS','warn','show','_blank','register','mcpConfig.apiKeyHint','MenuIcon','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','未连接','mcpStatus.sessionOccupied','MCP\x20已断开','MCPConfigUIController','string','Univer\x20AI\x20Console','includes','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','UniverIcon','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','xlink:href','CONNECTING','createElement','mcpConfig.connectionError.networkError','amd','配置保存失败','MCPConnectionUIController','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_config$','displayName','mcpConfig.connectionStatus.connected','ISocketService','Enable\x20authentication\x20for\x20secure\x20connections','merge','权限验证失败,请检查您的\x20API\x20密钥','Injector','univer-font-medium','mcpConfig.note2','mcpConfig.apiApplyInfo.title','MCP:\x20网络错误','COMMAND','BehaviorSubject','error','MCP\x20客户端配置','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-text-xs\x20univer-text-gray-500','https://console.univer.plus','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','@univerjs/design','mcpConfig.configStepTitle','_handleConfigure','IMessageService','univer-size-2\x20univer-rounded-full','已连接','https://console.univer.ai','white','Session\x20ID','idSuffix','_initStatusComponent','connectionError$','RETRYING','Click\x20to\x20connect\x20MCP','_menuManagerService','mcpStatus.unknown','Module','MCPConfigPanel','CONNECTED','M0\x200H16V16H0z','API\x20Key','onStarting','_logService','__setCustomHeaders','length','univer-flex\x20univer-gap-3','univer-space-y-3','mcpConfig.configStep3','none','UniverCore','button','196128wIyifX','1em','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.connectionStatus.disconnected','@univerjs/ui','LocaleService','clsx','_initAutoConnect','连接中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','translate(.97)','MCP:\x20会话\x20ID\x20已被占用','univer-flex\x20univer-items-start\x20univer-gap-3','univer-flex\x20univer-items-center','_initConfigSync','univer-bg-red-500','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','mcpConfig.apiApplyInfo.description','univer-text-green-500','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','MCP:\x20Session\x20ID\x20Occupied','useDependency','MCPConnectionError','CommandType','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','启用身份验证以获得安全连接','MCP\x20重连中...','mcpStatus.connected','value','add','HelpIcon','MCPConnectionStatus','MCP\x20连接失败','_createConfigPanelComponent','Enter\x20your\x20API\x20key','CloseIcon','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','@univerjs/network','univer-flex\x20univer-items-start\x20univer-gap-2','useCallback','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-text-sm\x20univer-font-medium','getCurrentConfig','439778VtPujP','_uiPartsService','univer-text-gray-500','univer-text-yellow-500','http','univer-text-blue-600','@univerjs/core','react','mcpStatus.failed','univer-text-sm\x20univer-text-gray-500','svg','Connecting...','random','mcp-config-dialog','UNAUTHORIZED','Max\x20Retries','<SESSION_ID>','defs','Plugin','\x20-\x20','配置更改将立即生效','mcp-ui.config','Connected','Bearer\x20','univer-size-4','MCP\x20Configuration','_mcpConnectionController','mcpStatus.maxRetriesExceeded','forwardRef','MCP_PLUGIN_CONFIG_KEY','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer.plus','mcpStatus.unauthorized','subscribe','BUTTON','entries','_config','MCP\x20配置','_registerComponent','FAILED','522277XeCtmZ','Disposable','rxjs','MCP\x20Connecting...','65368zWwwEj','clipPath','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','OnLineIcon','API\x20密钥无效,请检查密钥是否正确','MCP\x20Connected','DISCONNECTED','span','Get\x20your\x20API\x20key\x20in\x20seconds','url(#off-line-icon_clip0_910_343)','MCPStatusDisplay','UniverMCPPlugin','enUS','mcpConfig.validation.apiKeyTooShort','您的\x20API\x20密钥将在此浏览器中本地存储','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-bg-green-500','UniverDesign','ILocalStorageService','React','zhCN','Click\x20to\x20configure\x20MCP','isValid','http://www.w3.org/2000/svg','ICommandService','getOwnPropertyDescriptor','_mcpCoreConfig$','Input','mcpConfig.configError','mcpConfig.description','IConfigService','MAX_RETRIES_EXCEEDED','round','currentColor','univer-shrink-0\x20univer-text-blue-500','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','IUIPartsService','会话ID','registerCommand','MCP:\x20超出最大重试次数','NONE','get','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3AVGGak','0\x200\x2016\x2016','mcpConfig.connectionError.sessionOccupied','evenodd','mcpConfig.saving','超出最大重试次数,请稍后再试','sessionId$','univer-bg-gray-500','MCP\x20Disconnected','colorChannel1','text','_componentManager','mcpStatus.retrying','attrs','toStringTag','MCP\x20Client\x20Configuration','disposeWithMe','您的\x20API\x20密钥安全存储在本地存储中','连接失败','Enable\x20Authentication','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','_apiKey$','36UDObLO','toString','MessageType','mcpServerUrl','mergeMenu','配置保存成功','forEach','jsx','subscribeConfigValue$','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','带有\x20Bearer\x20前缀的\x20API\x20密钥。','pre','MCPUIMenuController','mask','fill','Success','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','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','MCP:\x20Max\x20Retries\x20Exceeded','mcpStatus.networkError','mcpConfig.connectionStatus.failed','pluginName','next','univer-flex\x20univer-items-center\x20univer-gap-2','univer-space-y-4','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','useObservable','mcp.apiKey','url(#$1','getItem','_localeService','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','registerComponent','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpStatus.clickToConnect','close','div','getConfig','1003355GeProg','tag','UniverMCPUIPlugin','map','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','API\x20key\x20is\x20required','path','mcpConfig.apiKeyPlaceholder','RibbonStartGroup','_loading$','_loadStoredApiKey','点击连接\x20MCP','mcpConfig.configStep1','MenuItemType','mcpStatus.disconnected','univer-space-y-2','useRef','100668PKlMnP','Configuration\x20saved\x20successfully','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpConfig.title','OffLineIcon','univer-min-w-0\x20univer-flex-1','Error','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-red-500','mcpConfig.note1','Univer\x20AI\x20控制台','univer-flex\x20univer-items-center\x20univer-gap-3','IMenuManagerService','univer-space-y-5','useState','mcpConfig.validation.invalidApiKey','use','_messageService','_commandService','最大重试次数','UniverNetwork','Button','bottom','exports','ILogService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Saving...','HEADER_MENU','1481860USaBJA','_initializeMenus','Configuration\x20Parameters:','_dialogService','check-mark-icon','connectInjector','_configService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','setItem','0\x200\x2017\x2016','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.validation.invalidConfig','MCP\x20已连接','apiKey','_injector','mcpConfig.configInstructions','defineProperty','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_handleConfigSave','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','配置步骤:','_initializeCommands'];_0x18b8=function(){return _0x23218a;};return _0x18b8();}
|