@univerjs-pro/mcp-ui 0.13.0-insiders.20251218-2062647 → 0.13.0-insiders.20251220-0a5ea4d
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 +6 -6
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5a87(_0x3db127,_0x598b92){_0x3db127=_0x3db127-0x17d;const _0x29b82d=_0x29b8();let _0x5a871e=_0x29b82d[_0x3db127];return _0x5a871e;}function _0x29b8(){const _0xd1d8a5=['Univer\x20AI\x20콘솔','MCP\x20설정','연결됨','API\x20키는\x20필수입니다','376RJgxVG','클릭하여\x20MCP\x20연결','API\x20키란\x20무엇인가요?','저장\x20중...','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','15672tzXfXl','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','MCP\x20알\x20수\x20없는\x20상태','몇\x20초\x20만에\x20API\x20키\x20발급받기','유효하지\x20않은\x20설정','565oRFinP','909eqECDz','설정이\x20성공적으로\x20저장되었습니다','보안\x20연결을\x20위해\x20인증\x20활성화','Bearer\x20접두사가\x20있는\x20API\x20키.','연결\x20실패','API\x20키를\x20입력하세요','234185ZpsRVm','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','MCP\x20클라이언트\x20설정','인증\x20활성화','516082XtYfiX','MCP:\x20인증되지\x20않음','MCP\x20연결됨','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','21508lKpEWr','MCP\x20연결\x20실패','아래\x20JSON\x20설정\x20복사','API\x20키','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','최대\x20재시도\x20횟수','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP:\x20네트워크\x20오류','30bbniyF','설정\x20매개변수:','설정\x20단계:','연결\x20중...','8529158QTXtpf','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','설정\x20저장\x20실패','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','MCP\x20연결\x20중...','설정\x20저장','1037663giGdxX','연결\x20끊김','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','3953385ZbfQgN'];_0x29b8=function(){return _0xd1d8a5;};return _0x29b8();}const _0x4b9e6f=_0x5a87;(function(_0x81cbb3,_0x692a2c){const _0x456ce5=_0x5a87,_0x1f4fb4=_0x81cbb3();while(!![]){try{const _0x1c148e=parseInt(_0x456ce5(0x196))/0x1+-parseInt(_0x456ce5(0x17d))/0x2+-parseInt(_0x456ce5(0x1a9))/0x3*(parseInt(_0x456ce5(0x183))/0x4)+parseInt(_0x456ce5(0x1a8))/0x5*(-parseInt(_0x456ce5(0x1a3))/0x6)+parseInt(_0x456ce5(0x1af))/0x7*(parseInt(_0x456ce5(0x19e))/0x8)+parseInt(_0x456ce5(0x199))/0x9*(parseInt(_0x456ce5(0x18b))/0xa)+-parseInt(_0x456ce5(0x18f))/0xb;if(_0x1c148e===_0x692a2c)break;else _0x1f4fb4['push'](_0x1f4fb4['shift']());}catch(_0x543a36){_0x1f4fb4['push'](_0x1f4fb4['shift']());}}}(_0x29b8,0xecd35));const e={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':_0x4b9e6f(0x194),'connected':_0x4b9e6f(0x17f),'failed':_0x4b9e6f(0x184),'retrying':'MCP\x20재시도\x20중...','unknown':_0x4b9e6f(0x1a5),'unauthorized':_0x4b9e6f(0x17e),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x4b9e6f(0x18a),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0x4b9e6f(0x19f),'clickToConfigure':'클릭하여\x20MCP\x20설정'},'mcpConfig':{'title':_0x4b9e6f(0x19b),'description':_0x4b9e6f(0x190),'apiKey':_0x4b9e6f(0x186),'apiKeyPlaceholder':_0x4b9e6f(0x1ae),'apiKeyHint':_0x4b9e6f(0x193),'enableAuth':_0x4b9e6f(0x1b2),'enableAuthHint':_0x4b9e6f(0x1ab),'connectionInfo':_0x4b9e6f(0x1b1),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x4b9e6f(0x187),'configStepTitle':_0x4b9e6f(0x18d),'configStep1':_0x4b9e6f(0x185),'configStep2':_0x4b9e6f(0x192),'configStep3':_0x4b9e6f(0x181),'sessionId':'세션\x20ID','sessionIdDescription':_0x4b9e6f(0x1a4),'authorizationDescription':_0x4b9e6f(0x1ac),'configParameters':_0x4b9e6f(0x18c),'maxRetries':_0x4b9e6f(0x188),'save':_0x4b9e6f(0x195),'saving':_0x4b9e6f(0x1a1),'note1':_0x4b9e6f(0x180),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':_0x4b9e6f(0x1aa),'configError':_0x4b9e6f(0x191),'apiApplyInfo':{'title':_0x4b9e6f(0x1a0),'description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':_0x4b9e6f(0x19a),'getStarted':_0x4b9e6f(0x1a6)},'validation':{'apiKeyRequired':_0x4b9e6f(0x19d),'apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':_0x4b9e6f(0x1a7),'invalidApiKey':_0x4b9e6f(0x1b0)},'connectionStatus':{'disconnected':_0x4b9e6f(0x197),'connecting':_0x4b9e6f(0x18e),'connected':_0x4b9e6f(0x19c),'failed':_0x4b9e6f(0x1ad),'retrying':'재시도\x20중...'},'connectionError':{'unauthorized':_0x4b9e6f(0x189),'sessionOccupied':_0x4b9e6f(0x198),'networkError':_0x4b9e6f(0x1a2),'maxRetriesExceeded':_0x4b9e6f(0x182)}}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x476327=_0x2981;function _0x2981(_0x3b3e26,_0x380b6f){_0x3b3e26=_0x3b3e26-0x188;const _0x13d191=_0x13d1();let _0x298100=_0x13d191[_0x3b3e26];return _0x298100;}function _0x13d1(){const _0x65bb2=['Univer\x20AI\x20Console','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','1SrKRlJ','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','API\x20key\x20is\x20required','MCP\x20Client\x20Configuration','Session\x20ID','10UvDIep','Max\x20Retries','13KQsriU','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connecting...','Enable\x20Authentication','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Disconnected','789rMhhPa','API\x20Key','896aSneDZ','335128IbunuI','MCP\x20Disconnected','MCP\x20Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','9201465ZGxFlu','63194364VMvkqc','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2565772lwqTzE','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Unauthorized','6VfWuUR','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','3428062YjmaTo','MCP:\x20Session\x20ID\x20Occupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','11325916owNsIZ','396grZdcD'];_0x13d1=function(){return _0x65bb2;};return _0x13d1();}(function(_0x5679f9,_0x29d5ca){const _0xf884ab=_0x2981,_0x137e03=_0x5679f9();while(!![]){try{const _0x12c8d0=parseInt(_0xf884ab(0x1b7))/0x1*(parseInt(_0xf884ab(0x1a5))/0x2)+parseInt(_0xf884ab(0x196))/0x3*(-parseInt(_0xf884ab(0x198))/0x4)+-parseInt(_0xf884ab(0x1a1))/0x5*(-parseInt(_0xf884ab(0x1a8))/0x6)+parseInt(_0xf884ab(0x1ae))/0x7+parseInt(_0xf884ab(0x199))/0x8*(parseInt(_0xf884ab(0x1af))/0x9)+parseInt(_0xf884ab(0x18d))/0xa*(-parseInt(_0xf884ab(0x1ab))/0xb)+parseInt(_0xf884ab(0x1a2))/0xc*(-parseInt(_0xf884ab(0x18f))/0xd);if(_0x12c8d0===_0x29d5ca)break;else _0x137e03['push'](_0x137e03['shift']());}catch(_0x5a2f23){_0x137e03['push'](_0x137e03['shift']());}}}(_0x13d1,0xe75a4));const e={'mcpStatus':{'disconnected':_0x476327(0x19a),'connecting':_0x476327(0x19b),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x476327(0x1b3),'unauthorized':_0x476327(0x1a7),'sessionOccupied':_0x476327(0x1ac),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x476327(0x188),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x476327(0x19e),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x476327(0x197),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x476327(0x1a9),'enableAuth':_0x476327(0x192),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x476327(0x18b),'mcpClientConfig':_0x476327(0x18b),'configInstructions':_0x476327(0x1a4),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x476327(0x19f),'configStep2':_0x476327(0x1b2),'configStep3':_0x476327(0x194),'sessionId':_0x476327(0x18c),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x476327(0x19c),'configParameters':_0x476327(0x1b8),'maxRetries':_0x476327(0x18e),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x476327(0x1a6),'note2':_0x476327(0x1a0),'configSaved':_0x476327(0x1aa),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x476327(0x1b4),'description':_0x476327(0x190),'univerAiLabel':_0x476327(0x1b0),'getStarted':_0x476327(0x1b6)},'validation':{'apiKeyRequired':_0x476327(0x18a),'apiKeyTooShort':_0x476327(0x193),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x476327(0x195),'connecting':_0x476327(0x191),'connected':'Connected','failed':_0x476327(0x1b5),'retrying':_0x476327(0x189)},'connectionError':{'unauthorized':_0x476327(0x1b1),'sessionOccupied':_0x476327(0x1a3),'networkError':_0x476327(0x19d),'maxRetriesExceeded':_0x476327(0x1ad)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x52d13c=_0x13f5;(function(_0x1fb568,_0x11f5ac){const _0x212f78=_0x13f5,_0x2f1a27=_0x1fb568();while(!![]){try{const _0x42db3f=-parseInt(_0x212f78(0x9c))/0x1+parseInt(_0x212f78(0x82))/0x2*(parseInt(_0x212f78(0x98))/0x3)+-parseInt(_0x212f78(0x8e))/0x4+parseInt(_0x212f78(0xa5))/0x5*(parseInt(_0x212f78(0x8a))/0x6)+-parseInt(_0x212f78(0xa9))/0x7+-parseInt(_0x212f78(0x73))/0x8+parseInt(_0x212f78(0xa2))/0x9*(parseInt(_0x212f78(0x9d))/0xa);if(_0x42db3f===_0x11f5ac)break;else _0x2f1a27['push'](_0x2f1a27['shift']());}catch(_0x33415c){_0x2f1a27['push'](_0x2f1a27['shift']());}}}(_0x15a3,0x5ac66));const n={'mcpStatus':{'disconnected':_0x52d13c(0x76),'connecting':_0x52d13c(0x75),'connected':_0x52d13c(0x9e),'failed':_0x52d13c(0x90),'retrying':_0x52d13c(0x7f),'unknown':_0x52d13c(0xa1),'unauthorized':_0x52d13c(0x74),'sessionOccupied':_0x52d13c(0x84),'networkError':_0x52d13c(0x95),'maxRetriesExceeded':_0x52d13c(0x8b),'clickToConnect':_0x52d13c(0x70),'clickToConfigure':_0x52d13c(0xa4)},'mcpConfig':{'title':_0x52d13c(0x92),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':_0x52d13c(0x9f),'apiKeyPlaceholder':_0x52d13c(0x83),'apiKeyHint':_0x52d13c(0x7c),'enableAuth':_0x52d13c(0xa6),'enableAuthHint':_0x52d13c(0x7b),'connectionInfo':_0x52d13c(0x89),'mcpClientConfig':_0x52d13c(0x89),'configInstructions':_0x52d13c(0x72),'configStepTitle':_0x52d13c(0xa0),'configStep1':_0x52d13c(0x8c),'configStep2':_0x52d13c(0x8f),'configStep3':_0x52d13c(0xa8),'sessionId':_0x52d13c(0x8d),'sessionIdDescription':_0x52d13c(0xaa),'authorizationDescription':_0x52d13c(0x88),'configParameters':_0x52d13c(0x6f),'maxRetries':_0x52d13c(0x85),'save':_0x52d13c(0xa3),'saving':_0x52d13c(0x77),'note1':_0x52d13c(0x93),'note2':_0x52d13c(0x9b),'configSaved':_0x52d13c(0x71),'configError':'Lưu\x20cấu\x20hình\x20thất\x20bại','apiApplyInfo':{'title':_0x52d13c(0x9a),'description':_0x52d13c(0x94),'univerAiLabel':_0x52d13c(0x99),'getStarted':_0x52d13c(0xa7)},'validation':{'apiKeyRequired':_0x52d13c(0x87),'apiKeyTooShort':_0x52d13c(0x78),'invalidConfig':_0x52d13c(0x79),'invalidApiKey':_0x52d13c(0x7e)},'connectionStatus':{'disconnected':_0x52d13c(0x81),'connecting':'Đang\x20kết\x20nối...','connected':_0x52d13c(0x97),'failed':_0x52d13c(0x96),'retrying':_0x52d13c(0x91)},'connectionError':{'unauthorized':_0x52d13c(0x7a),'sessionOccupied':_0x52d13c(0x7d),'networkError':_0x52d13c(0x80),'maxRetriesExceeded':_0x52d13c(0x86)}}};function _0x13f5(_0x135607,_0x265af5){_0x135607=_0x135607-0x6f;const _0x15a32e=_0x15a3();let _0x13f56d=_0x15a32e[_0x135607];return _0x13f56d;}function _0x15a3(){const _0x4fc674=['MCP\x20Đã\x20kết\x20nối','Khóa\x20API','Các\x20bước\x20cấu\x20hình:','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','1305LZigZr','Lưu\x20cấu\x20hình','Nhấp\x20để\x20cấu\x20hình\x20MCP','5rlELip','Bật\x20xác\x20thực','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','4860135ibcsei','Đị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.','Tham\x20số\x20cấu\x20hình:','Nhấp\x20để\x20kết\x20nối\x20MCP','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','1642848kXNoWe','MCP:\x20Không\x20được\x20phép','MCP\x20Đang\x20kết\x20nối...','MCP\x20Đã\x20ngắt\x20kết\x20nối','Đang\x20lưu...','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Cấu\x20hình\x20không\x20hợp\x20lệ','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','MCP\x20Đang\x20thử\x20lại...','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Đã\x20ngắt\x20kết\x20nối','934tlGgCN','Nhập\x20khóa\x20API\x20của\x20bạn','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','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','Yêu\x20cầu\x20khóa\x20API','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Cấu\x20hình\x20máy\x20khách\x20MCP','1400172RzslUW','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','ID\x20phiên','1509308ZqDKIJ','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','MCP\x20Kết\x20nối\x20thất\x20bại','Đang\x20thử\x20lại...','Cấu\x20hình\x20MCP','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','MCP:\x20Lỗi\x20mạng','Kết\x20nối\x20thất\x20bại','Đã\x20kết\x20nối','3912UuPqNu','Bảng\x20điều\x20khiển\x20Univer\x20AI','Khóa\x20API\x20là\x20gì?','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','73243bMwIqh','60670cCNdVE'];_0x15a3=function(){return _0x4fc674;};return _0x15a3();}export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x56772d=_0x1806;(function(_0x472115,_0x11bc0d){const _0x2ca667=_0x1806,_0x22a99a=_0x472115();while(!![]){try{const _0x1009a3=parseInt(_0x2ca667(0x1ab))/0x1+-parseInt(_0x2ca667(0x1ae))/0x2*(parseInt(_0x2ca667(0x198))/0x3)+parseInt(_0x2ca667(0x1b9))/0x4+-parseInt(_0x2ca667(0x1a5))/0x5+-parseInt(_0x2ca667(0x1b1))/0x6*(parseInt(_0x2ca667(0x197))/0x7)+parseInt(_0x2ca667(0x199))/0x8*(parseInt(_0x2ca667(0x194))/0x9)+-parseInt(_0x2ca667(0x191))/0xa*(-parseInt(_0x2ca667(0x1ad))/0xb);if(_0x1009a3===_0x11bc0d)break;else _0x22a99a['push'](_0x22a99a['shift']());}catch(_0x751d20){_0x22a99a['push'](_0x22a99a['shift']());}}}(_0x385f,0x9ac0a));const e={'mcpStatus':{'disconnected':_0x56772d(0x1ac),'connecting':_0x56772d(0x19b),'connected':_0x56772d(0x19d),'failed':'MCP\x20连接失败','retrying':_0x56772d(0x1b4),'unknown':_0x56772d(0x1b3),'unauthorized':_0x56772d(0x18e),'sessionOccupied':_0x56772d(0x1af),'networkError':_0x56772d(0x192),'maxRetriesExceeded':_0x56772d(0x19e),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x56772d(0x1b2)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x56772d(0x1a4),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x56772d(0x1a1),'enableAuthHint':_0x56772d(0x1a0),'connectionInfo':_0x56772d(0x1a9),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x56772d(0x18b),'configStepTitle':_0x56772d(0x18f),'configStep1':_0x56772d(0x18d),'configStep2':_0x56772d(0x1b5),'configStep3':_0x56772d(0x1b8),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x56772d(0x1a6),'configParameters':'配置参数:','maxRetries':_0x56772d(0x1a3),'save':_0x56772d(0x1b7),'saving':_0x56772d(0x1b0),'note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x56772d(0x190),'configError':_0x56772d(0x19f),'apiApplyInfo':{'title':_0x56772d(0x196),'description':_0x56772d(0x1a7),'univerAiLabel':_0x56772d(0x1b6),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x56772d(0x195),'apiKeyTooShort':_0x56772d(0x18c),'invalidConfig':_0x56772d(0x1a8),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x56772d(0x19a),'connected':_0x56772d(0x193),'failed':'连接失败','retrying':_0x56772d(0x1a2)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x56772d(0x1aa),'networkError':_0x56772d(0x19c),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x385f(){const _0x31d99d=['复制以下\x20JSON\x20配置','MCP:\x20未授权','配置步骤:','配置保存成功','828470AxfniO','MCP:\x20网络错误','已连接','63clloRS','API\x20密钥不能为空','什么是\x20API\x20密钥?','119yGoyYO','3DhbTgw','281152dfdhcL','连接中...','MCP\x20连接中...','网络连接错误,请检查您的网络连接','MCP\x20已连接','MCP:\x20超出最大重试次数','配置保存失败','启用身份验证以获得安全连接','启用身份验证','重连中...','最大重试次数','API\x20密钥','5382650CQIXjq','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置无效','MCP\x20客户端配置','会话\x20ID\x20已被占用,请稍后再试','877448verlqI','MCP\x20已断开','176hSeyGr','2021102epiXBx','MCP:\x20会话\x20ID\x20已被占用','保存中...','118494sySyKo','点击配置\x20MCP','MCP\x20状态未知','MCP\x20重连中...','将配置添加到您的\x20MCP\x20客户端设置文件中','Univer\x20AI\x20控制台','保存配置','重启您的\x20MCP\x20客户端以使配置生效','2430688bIIuSe','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥长度至少需要\x2010\x20位'];_0x385f=function(){return _0x31d99d;};return _0x385f();}function _0x1806(_0x985e05,_0x5c8975){_0x985e05=_0x985e05-0x18b;const _0x385fa8=_0x385f();let _0x1806a6=_0x385fa8[_0x985e05];return _0x1806a6;}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1e7e(){const _0x3521b8=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connecting...','MCP\x20Connected','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session\x20ID','MCP\x20Client\x20Configuration','Click\x20to\x20connect\x20MCP','9hpzavA','MCP:\x20Network\x20Error','Enable\x20Authentication','API\x20key\x20with\x20Bearer\x20prefix.','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','Retrying...','Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','264368SyFinf','8219260IxeAlK','MCP\x20Disconnected','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','332YGYcaF','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','27996uTWNky','Connected','Configuration\x20Steps:','2RhPylZ','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2991976uCEHue','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1500100yccFLm','Saving...','1640274UmkmCE','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','Invalid\x20configuration','4528797bfBSFL'];_0x1e7e=function(){return _0x3521b8;};return _0x1e7e();}const _0x2d36e9=_0x1ecb;(function(_0x20835f,_0x20466c){const _0x31c258=_0x1ecb,_0x4a97e6=_0x20835f();while(!![]){try{const _0x584504=-parseInt(_0x31c258(0x17f))/0x1*(-parseInt(_0x31c258(0x173))/0x2)+-parseInt(_0x31c258(0x17c))/0x3*(-parseInt(_0x31c258(0x179))/0x4)+-parseInt(_0x31c258(0x150))/0x5+parseInt(_0x31c258(0x152))/0x6+parseInt(_0x31c258(0x15b))/0x7+-parseInt(_0x31c258(0x14e))/0x8*(parseInt(_0x31c258(0x165))/0x9)+-parseInt(_0x31c258(0x174))/0xa;if(_0x584504===_0x20466c)break;else _0x4a97e6['push'](_0x4a97e6['shift']());}catch(_0x40ffb8){_0x4a97e6['push'](_0x4a97e6['shift']());}}}(_0x1e7e,0x711e3));function _0x1ecb(_0x1983db,_0x3356f7){_0x1983db=_0x1983db-0x14a;const _0x1e7ed3=_0x1e7e();let _0x1ecb50=_0x1e7ed3[_0x1983db];return _0x1ecb50;}const e={'mcpStatus':{'disconnected':_0x2d36e9(0x175),'connecting':_0x2d36e9(0x15e),'connected':_0x2d36e9(0x15f),'failed':_0x2d36e9(0x16c),'retrying':_0x2d36e9(0x157),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2d36e9(0x180),'networkError':_0x2d36e9(0x166),'maxRetriesExceeded':_0x2d36e9(0x158),'clickToConnect':_0x2d36e9(0x164),'clickToConfigure':_0x2d36e9(0x154)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2d36e9(0x15d),'apiKey':_0x2d36e9(0x160),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2d36e9(0x167),'enableAuthHint':_0x2d36e9(0x177),'connectionInfo':_0x2d36e9(0x163),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2d36e9(0x17b),'configStepTitle':_0x2d36e9(0x17e),'configStep1':_0x2d36e9(0x169),'configStep2':_0x2d36e9(0x161),'configStep3':_0x2d36e9(0x14f),'sessionId':_0x2d36e9(0x162),'sessionIdDescription':_0x2d36e9(0x14c),'authorizationDescription':_0x2d36e9(0x168),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2d36e9(0x16f),'save':_0x2d36e9(0x16d),'saving':_0x2d36e9(0x151),'note1':_0x2d36e9(0x15c),'note2':_0x2d36e9(0x14a),'configSaved':_0x2d36e9(0x156),'configError':_0x2d36e9(0x153),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2d36e9(0x16a),'univerAiLabel':_0x2d36e9(0x178),'getStarted':_0x2d36e9(0x16e)},'validation':{'apiKeyRequired':_0x2d36e9(0x16b),'apiKeyTooShort':_0x2d36e9(0x17a),'invalidConfig':_0x2d36e9(0x15a),'invalidApiKey':_0x2d36e9(0x14b)},'connectionStatus':{'disconnected':_0x2d36e9(0x159),'connecting':_0x2d36e9(0x171),'connected':_0x2d36e9(0x17d),'failed':_0x2d36e9(0x176),'retrying':_0x2d36e9(0x170)},'connectionError':{'unauthorized':_0x2d36e9(0x14d),'sessionOccupied':_0x2d36e9(0x172),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2d36e9(0x155)}}},n=e;export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x165e(){const _0x36f776=['COMMAND','BehaviorSubject','forEach','_logService','<SESSION_ID>','univer_session_id:','DISCONNECTED','_loadStoredApiKey','权限验证失败,请检查您的\x20API\x20密钥','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','clsx','stringify','open','univer-bg-red-500','univer-size-4','isValid','close-icon','mcpConfig.sessionIdDescription','url(#$1','univer-text-xs\x20univer-text-gray-500','mcpStatus.failed','点击配置\x20MCP','function','setConfig','50019959ZUimbn','length','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.apiKey','off-line-icon_clip0_910_343','none','Click\x20to\x20configure\x20MCP','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','clipPath','_messageService','get','_handleConfigure','showConfigPanel','createElement','mcpConfig.save','symbol','mcpConfig.connectionStatus.retrying','API\x20密钥','_mcpCoreConfig$','univer-text-yellow-500','ILocalStorageService','useDependency','MenuIcon','MCPConnectionError','重启您的\x20MCP\x20客户端以使配置生效','evenodd','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','enableAutoConnect','toStringTag','DependentOn','univer-flex\x20univer-items-start\x20univer-gap-2','string','jsx','Get\x20your\x20API\x20key\x20in\x20seconds','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','useRef','\x20-\x20','未连接','apiKey','329031CfXeTn','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','HEADER_MENU','error','enUS','_connectionController','您的\x20API\x20密钥安全存储在本地存储中','univer-text-white','useObservable','保存配置','univer-min-w-0\x20univer-flex-1','ILogService','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','CONNECTED','url(#off-line-icon_clip0_910_343)','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','path','replace','339870ysAzZM','__setCustomHeaders','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.note1','IDialogService','Button','validateApiKey','_config','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-text-gray-400','univer-shrink-0\x20univer-text-red-500','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','API\x20key\x20is\x20required','ComponentManager','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','NETWORK_ERROR','_initStatusComponent','attrs','_configService','MCP:\x20Max\x20Retries\x20Exceeded','setItem','defineProperty','@univerjs-pro/mcp','API\x20密钥不能为空','请输入您的\x20API\x20密钥','mcp-ui.command.openConfigPanel','univer-text-sm\x20univer-font-medium','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','http://www.w3.org/2000/svg','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','MAX_RETRIES_EXCEEDED','Tooltip','Invalid\x20configuration','保存中...','MCP\x20配置','mcpConfig.configError','_handleConfigSave','getConfig','_uiPartsService','map','univer-space-y-3','_validateConfig','mcpStatus.disconnected','tag','_initConfigSync','mcpConfig.connectionError.sessionOccupied','defIds','univer-size-2\x20univer-rounded-full','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','SESSION_ID_OCCUPIED','mcpConfig.note2','on-line-icon','mcpConfig.apiKeyHint','MCP:\x20超出最大重试次数','_localStorageService','disposeWithMe','MCPUIMenuController','xlink:href','IUIPartsService','IMenuManagerService','NONE','univer-space-y-4','next','univer-flex\x20univer-items-center','1em','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','help-icon','mcpConfig.apiApplyInfo.univerAiLabel','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','getItem','mcpStatus.unknown','_registerComponent','mcpConfig.configInstructions','mcpConfig.validation.apiKeyTooShort','_initializeCommands','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Module','warn','ICommandService','CommandType','MCP\x20重连中...','univer-flex-1','15384840aGhhlu','useCallback','mcpConfig.connectionError.networkError','MCP\x20已连接','Bearer\x20','MCP:\x20Network\x20Error','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-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','几秒钟内获取您的\x20API\x20密钥','mcpConfig.configStepTitle','MCP:\x20未授权','_localeService','CheckMarkIcon','mcpStatus.retrying','connectInjector','Disposable','zhCN','BUTTON','MCP\x20Retrying...','use','mcpConfig.saving','MCP_PLUGIN_CONFIG_KEY','最大重试次数','_initAutoConnect','将配置添加到您的\x20MCP\x20客户端设置文件中','push','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','idSuffix','removeItem','univer-text-blue-600','merge','LocaleService','您的\x20API\x20密钥将在此浏览器中本地存储','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','show','配置保存成功','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Failed\x20to\x20save\x20configuration','useState','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','配置步骤:','univer-text-gray-500','exports','CONNECTING','button','onStarting','connectionStatus$','会话ID','Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','API\x20密钥无效,请检查密钥是否正确','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20网络错误','Inject','subscribeConfigValue$','UniverMCPUIPlugin','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','div','univer-space-y-2','univer-text-red-500','\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','OffLineIcon','_componentManager','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','errorMessage','rxjs','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','https://console.univer.ai','_mcpConnectionController','310NjgnZg','MCP\x20Configuration','mcpConfig.configSaved','MCP\x20Disconnected','MCP\x20Connecting...','MCPConnectionUIController','univer.ai','univerjs-icon\x20univerjs-icon-','UniverProMcp','Configuration\x20Notes:','2fsbfZS','40NTVlNz','univer-text-sm\x20univer-text-gray-500','@univerjs/ui','noopener\x20noreferrer','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.configStep1','_apiKey$','_dialogService','react/jsx-runtime','@univerjs/core','HelpIcon','univer-text-xs\x20univer-text-gray-600','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.connectionError.maxRetriesExceeded','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','svg','on-line-icon_clip0_910_349','Configuration\x20saved\x20successfully','Configuration\x20Steps:','sessionId$','_blank','网络连接错误,请检查您的网络连接','univer-bg-gray-500','_loading$','Saving...','colorChannel1','MCPConfigUIController','467515sdOCKB','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_menuManagerService','fill','超出最大重试次数,请稍后再试','white','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','check-mark-icon','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionError.unauthorized','IConfigService','WebSocketService','MessageType','children','_initializeMenus','M0\x200H16V16H0z','bottom','IMessageService','UniverProMcpUi','Connecting...','mcpConfig.configStep2','_config$','UniverCore','register','trim','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','MCP\x20Client\x20Configuration','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','连接失败','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Success','mcpConfig.connectionInfo','_injector','1889559PoTBgb','mcpConfig.description','assign','showDeveloperTools','0\x200\x2016\x2016','currentColor','mcpConfig.authorizationDescription','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','52cmIBxZ','配置保存失败','Injector','Error','https://mcp.univer.ai/mcp/?univer_session_id=','177639LmFdTW','forwardRef','univer-text-green-500','univer-flex\x20univer-gap-3','mask','univer-shrink-0\x20univer-text-blue-500','React','FAILED','Save\x20Configuration','ISocketService','jsxs','OnLineIcon','subscribe','Enable\x20authentication\x20for\x20secure\x20connections','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','includes','mcpConfig.apiApplyInfo.title','Session\x20ID','has','mcp.apiKey','univer-mr-2\x20univer-flex\x20univer-text-xl','value','RibbonStartGroup','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','object','MCP\x20Connection\x20Failed','mcpStatus.sessionOccupied','API\x20密钥长度至少需要\x2010\x20位','UniverIcon','Configuration\x20Parameters:','span','text','Disconnected','Input','@univerjs/network','translate(.97)','mcpConfig.validation.apiKeyRequired','add','round','substring','MCPConfigPanel','RETRYING','会话\x20ID\x20已被占用,请稍后再试','pluginName','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','registerComponent','配置参数:','displayName','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpStatus.connected','<API_KEY>','getOwnPropertyDescriptor','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','UNAUTHORIZED','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-flex\x20univer-items-start\x20univer-gap-3','MCPConnectionController','mcpStatus.maxRetriesExceeded','entries','showStatus','mcpConfig.apiApplyInfo.getStarted','MCP\x20客户端配置','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','MCPConnectionStatus','重连中...','univer.plus','off-line-icon','defs','mcpConfig.apiKeyPlaceholder','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_createConfigPanelComponent','MCP\x20连接失败','mcpServerUrl','mcpConfig.validation.invalidApiKey','Univer\x20AI\x20控制台','OpenMCPConfigPanelCommand','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','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'];_0x165e=function(){return _0x36f776;};return _0x165e();}function _0x35df(_0x3cc881,_0x56c701){_0x3cc881=_0x3cc881-0x87;const _0x165e7b=_0x165e();let _0x35df57=_0x165e7b[_0x3cc881];return _0x35df57;}(function(_0x3c1602,_0x31213f){const _0x3c25f3=_0x35df,_0x544b15=_0x3c1602();while(!![]){try{const _0x2b281f=parseInt(_0x3c25f3(0x1aa))/0x1*(-parseInt(_0x3c25f3(0x18e))/0x2)+-parseInt(_0x3c25f3(0x1d9))/0x3*(parseInt(_0x3c25f3(0x1d4))/0x4)+-parseInt(_0x3c25f3(0x18f))/0x5*(-parseInt(_0x3c25f3(0xea))/0x6)+parseInt(_0x3c25f3(0x1cc))/0x7+-parseInt(_0x3c25f3(0x13f))/0x8+-parseInt(_0x3c25f3(0xd8))/0x9*(parseInt(_0x3c25f3(0x184))/0xa)+parseInt(_0x3c25f3(0xb0))/0xb;if(_0x2b281f===_0x31213f)break;else _0x544b15['push'](_0x544b15['shift']());}catch(_0x14f577){_0x544b15['push'](_0x544b15['shift']());}}}(_0x165e,0xee708),function(_0x421c23,_0x1f5594){const _0x16d2b4=_0x35df;typeof exports==_0x16d2b4(0x1f1)&&typeof module<'u'?_0x1f5594(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==_0x16d2b4(0xae)&&define['amd']?define([_0x16d2b4(0x169),_0x16d2b4(0x198),_0x16d2b4(0x197),_0x16d2b4(0x102),'@univerjs/design',_0x16d2b4(0x191),_0x16d2b4(0x180),'react',_0x16d2b4(0x1fb)],_0x1f5594):(_0x421c23=typeof globalThis<'u'?globalThis:_0x421c23||self,_0x1f5594(_0x421c23[_0x16d2b4(0x1bc)]={},_0x421c23[_0x16d2b4(0x1c0)],_0x421c23[_0x16d2b4(0x1df)],_0x421c23[_0x16d2b4(0x18c)],_0x421c23['UniverDesign'],_0x421c23['UniverUi'],_0x421c23[_0x16d2b4(0x180)],_0x421c23['React'],_0x421c23['UniverNetwork']));}(this,function(_0x2f6eaf,_0x10d073,_0x22759e,_0x46879c,_0x150643,_0x47330f,_0x1133ec,_0x1e9486,_0x4a22bb){'use strict';const _0x1c247e=_0x35df;var _0x5158e9=Object[_0x1c247e(0x101)],_0x27e180=(_0x2e2666,_0x38294a,_0x5329cd)=>_0x38294a in _0x2e2666?_0x5158e9(_0x2e2666,_0x38294a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5329cd}):_0x2e2666[_0x38294a]=_0x5329cd,_0x5888e2=(_0x22cc7f,_0x177a5d,_0x4e77aa)=>_0x27e180(_0x22cc7f,typeof _0x177a5d!=_0x1c247e(0xc0)?_0x177a5d+'':_0x177a5d,_0x4e77aa);function _0x386744({ref:_0x30f2a6,..._0x2f3c28}){const _0x59dec4=_0x1c247e,{icon:_0x2a3005,id:_0x279e39,className:_0x36ec51,extend:_0x318561,..._0x30d49f}=_0x2f3c28,_0x34ed6e=(_0x59dec4(0x18b)+_0x279e39+'\x20'+(_0x36ec51||''))['trim'](),_0x1e92dc=_0x1e9486[_0x59dec4(0xd4)]('_'+_0x445e35());return _0x265f43(_0x2a3005,''+_0x279e39,{'defIds':_0x2a3005[_0x59dec4(0x11a)],'idSuffix':_0x1e92dc['current']},{'ref':_0x30f2a6,'className':_0x34ed6e,..._0x30d49f},_0x318561);}function _0x265f43(_0x56a946,_0x31de05,_0x215272,_0x130b73,_0x254b27){const _0x3d1512=_0x1c247e;return _0x1e9486[_0x3d1512(0xbe)](_0x56a946['tag'],{'key':_0x31de05,..._0x4404e2(_0x56a946,_0x215272,_0x254b27),..._0x130b73},(_0x5f748e(_0x56a946,_0x215272)[_0x3d1512(0x1b7)]||[])[_0x3d1512(0x113)]((_0xa12fe4,_0x3e195f)=>_0x265f43(_0xa12fe4,_0x31de05+'-'+_0x56a946[_0x3d1512(0x117)]+'-'+_0x3e195f,_0x215272,void 0x0,_0x254b27)));}function _0x4404e2(_0x4dc9be,_0x4a7f9f,_0x268268){const _0x3869e4=_0x1c247e,_0x28828d={..._0x4dc9be[_0x3869e4(0xfd)]};_0x268268!=null&&_0x268268[_0x3869e4(0x1a8)]&&_0x28828d[_0x3869e4(0x1ad)]===_0x3869e4(0x1a8)&&(_0x28828d['fill']=_0x268268[_0x3869e4(0x1a8)]),_0x4dc9be[_0x3869e4(0x117)]===_0x3869e4(0x1dd)&&_0x28828d['id']&&(_0x28828d['id']=_0x28828d['id']+_0x4a7f9f['idSuffix']),Object[_0x3869e4(0x213)](_0x28828d)['forEach'](([_0x185540,_0x2b88ee])=>{const _0x3224fa=_0x3869e4;_0x185540==='mask'&&typeof _0x2b88ee==_0x3224fa(0xd0)&&(_0x28828d[_0x185540]=_0x2b88ee[_0x3224fa(0xe9)](/url\(#(.*)\)/,_0x3224fa(0xaa)+_0x4a7f9f['idSuffix']+')'));});const {defIds:_0x4b4753}=_0x4a7f9f;return!_0x4b4753||_0x4b4753['length']===0x0||(_0x4dc9be[_0x3869e4(0x117)]===_0x3869e4(0x152)&&_0x28828d[_0x3869e4(0x125)]&&(_0x28828d[_0x3869e4(0x125)]=_0x28828d[_0x3869e4(0x125)]+_0x4a7f9f[_0x3869e4(0x15a)]),Object['entries'](_0x28828d)[_0x3869e4(0x9a)](([_0xf7948e,_0x48e6ce])=>{const _0x5c8a54=_0x3869e4;typeof _0x48e6ce==_0x5c8a54(0xd0)&&(_0x28828d[_0xf7948e]=_0x48e6ce[_0x5c8a54(0xe9)](/url\(#(.*)\)/,'url(#$1'+_0x4a7f9f[_0x5c8a54(0x15a)]+')'));})),_0x28828d;}function _0x5f748e(_0x22ec95,_0x109656){const _0x20c946=_0x1c247e;var _0x15ab8d;const {defIds:_0x4b1fe9}=_0x109656;return!_0x4b1fe9||_0x4b1fe9[_0x20c946(0xb1)]===0x0?_0x22ec95:_0x22ec95['tag']===_0x20c946(0x8d)&&((_0x15ab8d=_0x22ec95['children'])!=null&&_0x15ab8d[_0x20c946(0xb1)])?{..._0x22ec95,'children':_0x22ec95[_0x20c946(0x1b7)][_0x20c946(0x113)](_0x52d2ed=>typeof _0x52d2ed[_0x20c946(0xfd)]['id']==_0x20c946(0xd0)&&_0x4b1fe9&&_0x4b1fe9['includes'](_0x52d2ed[_0x20c946(0xfd)]['id'])?{..._0x52d2ed,'attrs':{..._0x52d2ed[_0x20c946(0xfd)],'id':_0x52d2ed['attrs']['id']+_0x109656[_0x20c946(0x15a)]}}:_0x52d2ed)}:_0x22ec95;}function _0x445e35(){const _0x5f3849=_0x1c247e;return Math['random']()['toString'](0x24)[_0x5f3849(0x200)](0x2,0x8);}_0x386744[_0x1c247e(0x208)]=_0x1c247e(0x1f5);const _0x431cbe={'tag':_0x1c247e(0x19e),'attrs':{'xmlns':_0x1c247e(0x108),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x1c247e(0x12c)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x1c247e(0xfa),'fillRule':_0x1c247e(0xca),'clipRule':'evenodd'}}]},_0x53493e=_0x1e9486['forwardRef'](function(_0x2d9f4f,_0x455466){const _0x42cf85=_0x1c247e;return _0x1e9486['createElement'](_0x386744,Object['assign']({},_0x2d9f4f,{'id':_0x42cf85(0x1b1),'ref':_0x455466,'icon':_0x431cbe}));});_0x53493e[_0x1c247e(0x208)]=_0x1c247e(0x14b);const _0x2d37e4={'tag':_0x1c247e(0x19e),'attrs':{'xmlns':_0x1c247e(0x108),'fill':_0x1c247e(0xb6),'viewBox':_0x1c247e(0x1d0),'width':_0x1c247e(0x12c),'height':'1em'},'children':[{'tag':_0x1c247e(0xe8),'attrs':{'fill':_0x1c247e(0x1d1),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},_0x224e2a=_0x1e9486[_0x1c247e(0x1da)](function(_0x280376,_0x2f0306){const _0x44b274=_0x1c247e;return _0x1e9486[_0x44b274(0xbe)](_0x386744,Object[_0x44b274(0x1ce)]({},_0x280376,{'id':_0x44b274(0xa8),'ref':_0x2f0306,'icon':_0x2d37e4}));});_0x224e2a[_0x1c247e(0x208)]='CloseIcon';const _0x58917d={'tag':_0x1c247e(0x19e),'attrs':{'xmlns':_0x1c247e(0x108),'fill':_0x1c247e(0xb6),'viewBox':_0x1c247e(0x1d0),'width':_0x1c247e(0x12c),'height':_0x1c247e(0x12c)},'children':[{'tag':'path','attrs':{'fill':_0x1c247e(0x1d1),'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':_0x1c247e(0xe8),'attrs':{'fill':_0x1c247e(0x1d1),'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':_0x1c247e(0xe8),'attrs':{'fill':'currentColor','d':_0x1c247e(0x11c),'fillRule':'evenodd','clipRule':_0x1c247e(0xca)}}]},_0x5106cf=_0x1e9486[_0x1c247e(0x1da)](function(_0x31f19,_0x1f8c9d){const _0x55b1ac=_0x1c247e;return _0x1e9486[_0x55b1ac(0xbe)](_0x386744,Object[_0x55b1ac(0x1ce)]({},_0x31f19,{'id':_0x55b1ac(0x12e),'ref':_0x1f8c9d,'icon':_0x58917d}));});_0x5106cf[_0x1c247e(0x208)]=_0x1c247e(0x199);const _0x52d630={'tag':_0x1c247e(0x19e),'attrs':{'xmlns':_0x1c247e(0x108),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x1c247e(0x12c),'height':_0x1c247e(0x12c)},'children':[{'tag':'g','attrs':{'clipPath':_0x1c247e(0xe6)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x1c247e(0x1ff),'strokeLinejoin':_0x1c247e(0x1ff),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1c247e(0xb9),'attrs':{'id':_0x1c247e(0xb5)},'children':[{'tag':'path','attrs':{'fill':_0x1c247e(0x1af),'d':_0x1c247e(0x1b9)}}]}]}],'defIds':[_0x1c247e(0xb5)]},_0x1ccfed=_0x1e9486[_0x1c247e(0x1da)](function(_0x42c788,_0x514dcb){const _0x57eba7=_0x1c247e;return _0x1e9486[_0x57eba7(0xbe)](_0x386744,Object[_0x57eba7(0x1ce)]({},_0x42c788,{'id':_0x57eba7(0x8c),'ref':_0x514dcb,'icon':_0x52d630}));});_0x1ccfed[_0x1c247e(0x208)]=_0x1c247e(0x17c);const _0x53f4c1={'tag':_0x1c247e(0x19e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1c247e(0xb6),'viewBox':'0\x200\x2017\x2016','width':_0x1c247e(0x12c),'height':_0x1c247e(0x12c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x1c247e(0xe8),'attrs':{'stroke':_0x1c247e(0x1d1),'d':_0x1c247e(0xe4),'strokeLinecap':'round','strokeLinejoin':_0x1c247e(0x1ff),'strokeWidth':1.2}}]},{'tag':_0x1c247e(0x8d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1c247e(0x19f)},'children':[{'tag':_0x1c247e(0xe8),'attrs':{'fill':_0x1c247e(0x1af),'d':'M0\x200H16V16H0z','transform':_0x1c247e(0x1fc)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x34e1b9=_0x1e9486[_0x1c247e(0x1da)](function(_0x207994,_0x3774fa){const _0x25026c=_0x1c247e;return _0x1e9486[_0x25026c(0xbe)](_0x386744,Object[_0x25026c(0x1ce)]({},_0x207994,{'id':_0x25026c(0x11f),'ref':_0x3774fa,'icon':_0x53f4c1}));});_0x34e1b9['displayName']=_0x1c247e(0x1e4);function _0x477054(_0x457c27){const _0x241fe9=_0x1c247e;var _0x66a3f8,_0x52697c;const {mcpCoreConfig:_0x25725c,onSave:_0x45460f,loading:_0x319cc1=!0x1,config:_0x2fd5d8,connectionStatus$:_0x82e13,connectionError$:_0x493c09,currentApiKey$:_0x49e1f4,currentSessionId$:_0x587562}=_0x457c27,_0x302859=_0x47330f[_0x241fe9(0xc6)](_0x10d073[_0x241fe9(0x15e)]),_0xc72c32=_0x47330f[_0x241fe9(0xe0)](_0x82e13,_0x46879c[_0x241fe9(0x89)]['DISCONNECTED']),_0x458990=_0x47330f[_0x241fe9(0xe0)](_0x493c09,_0x46879c[_0x241fe9(0xc8)][_0x241fe9(0x128)]),_0x381489=_0x47330f[_0x241fe9(0xe0)](_0x587562,''),_0x70bde7=_0x47330f[_0x241fe9(0xe0)](_0x49e1f4,''),[_0x3c5a96,_0x3daaf9]=_0x1e9486[_0x241fe9(0x165)](_0x70bde7||''),_0x39bf6a=!0x0,_0x4b7d8e=_0x2fd5d8[_0x241fe9(0x1cf)]&&_0x25725c[_0x241fe9(0x92)]&&(_0x25725c[_0x241fe9(0x92)][_0x241fe9(0x1e8)](_0x241fe9(0x8b))||_0x25725c[_0x241fe9(0x92)][_0x241fe9(0x1e8)]('univer.ai')),_0x4f51ae=(_0x66a3f8=_0x25725c[_0x241fe9(0x92)])==null?void 0x0:_0x66a3f8[_0x241fe9(0x1e8)]('univer.plus'),_0xc85489=(_0x52697c=_0x25725c[_0x241fe9(0x92)])==null?void 0x0:_0x52697c[_0x241fe9(0x1e8)](_0x241fe9(0x18a)),_0x5196d9=_0x4f51ae?'https://console.univer.plus':_0x241fe9(0x182),_0x559252=_0x2fd5d8[_0x241fe9(0x1cf)]&&(_0x4f51ae||_0xc85489),[_0x41289f,_0x1fef49]=_0x1e9486['useState'](!_0x3c5a96[_0x241fe9(0x1c2)]()),_0x520b28=(_0x4ae750,_0x415673)=>{const _0x527524=_0x241fe9;if(_0x415673===_0x46879c[_0x527524(0xc8)][_0x527524(0x20e)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x4ae750){case _0x46879c[_0x527524(0x89)][_0x527524(0xe5)]:return _0x527524(0x181);case _0x46879c[_0x527524(0x89)]['CONNECTING']:case _0x46879c[_0x527524(0x89)][_0x527524(0x202)]:return _0x527524(0x146);case _0x46879c[_0x527524(0x89)][_0x527524(0x1e0)]:return _0x527524(0x166);default:return _0x527524(0x88);}},_0x34407b=(_0x2e1e78,_0x3cdeb6)=>{const _0x4e532b=_0x241fe9;if(_0x3cdeb6===_0x46879c[_0x4e532b(0xc8)]['UNAUTHORIZED'])return _0x4e532b(0xa5);switch(_0x2e1e78){case _0x46879c[_0x4e532b(0x89)][_0x4e532b(0xe5)]:return'univer-bg-green-500';case _0x46879c['MCPConnectionStatus']['CONNECTING']:case _0x46879c[_0x4e532b(0x89)][_0x4e532b(0x202)]:return'univer-bg-blue-500';case _0x46879c[_0x4e532b(0x89)][_0x4e532b(0x1e0)]:return _0x4e532b(0xa5);default:return _0x4e532b(0x1a5);}},_0x312c7d=_0xb7179f=>{const _0x4868df=_0x241fe9;switch(_0xb7179f){case _0x46879c['MCPConnectionStatus'][_0x4868df(0xe5)]:return _0x302859['t']('mcpConfig.connectionStatus.connected');case _0x46879c[_0x4868df(0x89)]['CONNECTING']:return _0x302859['t']('mcpConfig.connectionStatus.connecting');case _0x46879c[_0x4868df(0x89)][_0x4868df(0x1e0)]:return _0x302859['t']('mcpConfig.connectionStatus.failed');case _0x46879c['MCPConnectionStatus'][_0x4868df(0x202)]:return _0x302859['t'](_0x4868df(0xc1));default:return _0x302859['t']('mcpConfig.connectionStatus.disconnected');}},_0x5eb9f0=_0x1e978d=>{const _0x4b5838=_0x241fe9;switch(_0x1e978d){case _0x46879c[_0x4b5838(0xc8)][_0x4b5838(0x20e)]:return _0x302859['t'](_0x4b5838(0x1b3));case _0x46879c['MCPConnectionError'][_0x4b5838(0x11d)]:return _0x302859['t'](_0x4b5838(0x119));case _0x46879c[_0x4b5838(0xc8)][_0x4b5838(0xfb)]:return _0x302859['t'](_0x4b5838(0x141));case _0x46879c['MCPConnectionError'][_0x4b5838(0x10a)]:return _0x302859['t'](_0x4b5838(0x19c));default:return'';}},_0x4d5e19=_0x1e9486[_0x241fe9(0x140)](()=>{const _0x52320d={..._0x25725c,'apiKey':_0x3c5a96['trim'](),'enableAuth':_0x39bf6a};_0x45460f(_0x52320d);},[_0x25725c,_0x3c5a96,_0x39bf6a,_0x45460f]),_0x2b9024=_0x3c5a96['trim']()['length']>0x0;return _0x22759e[_0x241fe9(0x1e3)]('div',{'className':_0x241fe9(0x159),'children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x178),{'className':_0x241fe9(0x19d),'children':_0x22759e[_0x241fe9(0x1e3)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x178),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x22759e[_0x241fe9(0xd1)]('span',{'className':_0x241fe9(0xdf),'children':'⚙'})}),_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x178),{'children':_0x22759e['jsx']('p',{'className':_0x241fe9(0x190),'children':_0x302859['t'](_0x241fe9(0x1cd))})})]})}),_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0xb8),'children':[_0x22759e[_0x241fe9(0xd1)]('div',{'className':_0x150643[_0x241fe9(0xa2)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x520b28(_0xc72c32,_0x458990)),'children':_0x22759e['jsxs'](_0x241fe9(0x178),{'className':_0x241fe9(0x172),'children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x178),{'className':_0x150643['clsx'](_0x241fe9(0x11b),_0x34407b(_0xc72c32,_0x458990))}),_0x22759e['jsx']('span',{'className':_0x241fe9(0x106),'children':_0x312c7d(_0xc72c32)})]})}),_0x458990!==_0x46879c['MCPConnectionError'][_0x241fe9(0x128)]&&(_0xc72c32===_0x46879c[_0x241fe9(0x89)]['FAILED']||_0x458990===_0x46879c[_0x241fe9(0xc8)][_0x241fe9(0x20e)])&&_0x22759e[_0x241fe9(0xd1)]('div',{'className':_0x241fe9(0x17e),'children':_0x22759e['jsxs'](_0x241fe9(0x178),{'className':_0x241fe9(0xcf),'children':[_0x22759e[_0x241fe9(0xd1)]('span',{'className':_0x241fe9(0xf5),'children':'⚠️'}),_0x22759e['jsx']('p',{'className':_0x241fe9(0x1e7),'children':_0x5eb9f0(_0x458990)})]})})]}),_0x22759e[_0x241fe9(0xd1)]('div',{'className':_0x241fe9(0xb3),'children':_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':'univer-space-y-5','children':[_0x22759e[_0x241fe9(0x1e3)]('div',{'className':_0x241fe9(0x179),'children':[_0x22759e[_0x241fe9(0x1e3)]('label',{'className':_0x241fe9(0xcb),'children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x1f7),{'children':'🔑'}),'\x20',_0x302859['t'](_0x241fe9(0xb4)),_0x22759e[_0x241fe9(0xd1)]('span',{'className':_0x241fe9(0x17a),'children':'*'}),_0x4b7d8e&&_0x22759e[_0x241fe9(0xd1)]('a',{'className':_0x241fe9(0xd3),'title':_0x302859['t'](_0x241fe9(0x1e9)),'role':_0x241fe9(0x16b),'onClick':()=>_0x1fef49(!0x0),'children':_0x22759e[_0x241fe9(0xd1)](_0x5106cf,{})})]}),_0x22759e[_0x241fe9(0xd1)](_0x150643[_0x241fe9(0x1fa)],{'type':_0x241fe9(0x1f8),'placeholder':_0x302859['t'](_0x241fe9(0x8e)),'value':_0x3c5a96,'disabled':_0x319cc1,'autoComplete':'off','onChange':_0x3daaf9}),_0x22759e['jsx']('p',{'className':_0x241fe9(0xab),'children':_0x302859['t'](_0x241fe9(0x120))})]}),_0x4b7d8e&&_0x41289f&&_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x1c3),'children':[_0x22759e[_0x241fe9(0xd1)]('a',{'className':_0x241fe9(0x97),'role':_0x241fe9(0x16b),'onClick':()=>_0x1fef49(!0x1),'children':_0x22759e['jsx'](_0x224e2a,{'className':_0x241fe9(0xa6)})}),_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x177),'children':[_0x22759e['jsx'](_0x241fe9(0x178),{'className':_0x241fe9(0x8f),'children':_0x22759e['jsx']('span',{'className':_0x241fe9(0x15c),'children':'🚀'})}),_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x13e),'children':[_0x22759e[_0x241fe9(0xd1)]('h4',{'className':_0x241fe9(0x163),'children':_0x302859['t'](_0x241fe9(0x1e9))}),_0x22759e[_0x241fe9(0xd1)]('p',{'className':_0x241fe9(0x1d3),'children':_0x302859['t']('mcpConfig.apiApplyInfo.description')}),_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x178),{'className':_0x241fe9(0xb2),'children':_0x559252&&_0x22759e[_0x241fe9(0x1e3)]('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':_0x5196d9,'target':_0x241fe9(0x1a3),'rel':_0x241fe9(0x192),'children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x1f7),{'children':'🤖'}),_0x302859['t'](_0x241fe9(0x12f)),_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x1f7),{'className':_0x241fe9(0xf4),'children':'↗'})]})}),_0x22759e[_0x241fe9(0x1e3)]('div',{'className':_0x241fe9(0x107),'children':['✨','\x20',_0x302859['t'](_0x241fe9(0x215))]})]})]})]}),_0x2fd5d8[_0x241fe9(0x1cf)]&&_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x160),'children':[_0x22759e[_0x241fe9(0x1e3)]('h4',{'className':_0x241fe9(0x1b0),'children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x1f7),{'children':'🔗'}),'\x20',_0x302859['t'](_0x241fe9(0x1ca))]}),_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x129),'children':[_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x114),'children':[_0x22759e[_0x241fe9(0xd1)]('p',{'className':_0x241fe9(0x19a),'children':_0x302859['t'](_0x241fe9(0x135))}),_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x179),'children':[_0x22759e['jsx'](_0x241fe9(0x178),{'className':_0x241fe9(0x1b2),'children':_0x302859['t'](_0x241fe9(0x148))}),_0x22759e[_0x241fe9(0x1e3)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x172),'children':[_0x22759e[_0x241fe9(0xd1)]('span',{'className':_0x241fe9(0xa1),'children':'1'}),_0x302859['t'](_0x241fe9(0x194))]}),_0x22759e['jsxs'](_0x241fe9(0x178),{'className':_0x241fe9(0x172),'children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x1f7),{'className':_0x241fe9(0xa1),'children':'2'}),_0x302859['t'](_0x241fe9(0x1be))]}),_0x22759e[_0x241fe9(0x1e3)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x22759e[_0x241fe9(0xd1)]('span',{'className':_0x241fe9(0xa1),'children':'3'}),_0x302859['t']('mcpConfig.configStep3')]})]})]})]}),_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x179),'children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x178),{'className':_0x241fe9(0x1b2),'children':_0x241fe9(0x185)}),_0x22759e['jsx']('div',{'className':_0x241fe9(0xf7),'children':_0x22759e[_0x241fe9(0xd1)]('pre',{'className':_0x241fe9(0xec),'children':JSON[_0x241fe9(0xa3)]({'mcpServers':{'univer':{'url':_0x241fe9(0x1d8)+(_0x381489||_0x241fe9(0x9c)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x3c5a96||_0x241fe9(0x20b))}}}},null,0x2)})})]}),_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x114),'children':[_0x22759e[_0x241fe9(0xd1)]('div',{'className':_0x241fe9(0x1b2),'children':_0x302859['t']('mcpConfig.configParameters')}),_0x22759e['jsxs'](_0x241fe9(0x178),{'className':'univer-space-y-2','children':[_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x210),'children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x178),{'className':_0x241fe9(0x20f)}),_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0xe2),'children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x178),{'className':_0x241fe9(0xf3),'children':_0x241fe9(0x9d)}),_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x178),{'className':_0x241fe9(0xab),'children':_0x302859['t'](_0x241fe9(0xa9))})]})]}),_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'className':_0x241fe9(0x210),'children':[_0x22759e[_0x241fe9(0xd1)]('div',{'className':_0x241fe9(0x20f)}),_0x22759e['jsxs'](_0x241fe9(0x178),{'className':_0x241fe9(0xe2),'children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x178),{'className':_0x241fe9(0xf3),'children':'Authorization:'}),_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x178),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x302859['t'](_0x241fe9(0x1d2))})]})]})]})]})]})]}),_0x22759e[_0x241fe9(0xd1)](_0x150643[_0x241fe9(0xf0)],{'onClick':_0x4d5e19,'disabled':!_0x2b9024||_0x319cc1,'className':_0x241fe9(0x145),'children':_0x319cc1?_0x22759e[_0x241fe9(0x1e3)]('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x22759e[_0x241fe9(0xd1)](_0x241fe9(0x1f7),{'children':'⟲'}),_0x302859['t'](_0x241fe9(0x153))]}):_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x1f7),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x22759e[_0x241fe9(0xd1)](_0x53493e,{}),_0x302859['t'](_0x241fe9(0xbf))]})}),_0x22759e[_0x241fe9(0xd1)]('div',{'className':_0x241fe9(0xed),'children':_0x22759e[_0x241fe9(0x1e3)]('div',{'className':_0x241fe9(0x1dc),'children':[_0x22759e['jsx'](_0x241fe9(0x1f7),{'className':_0x241fe9(0x1de),'children':'💡'}),_0x22759e['jsxs']('div',{'className':_0x241fe9(0x109),'children':[_0x22759e['jsx'](_0x241fe9(0x178),{'className':'univer-font-medium','children':_0x241fe9(0x18d)}),_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'children':['•',_0x302859['t'](_0x241fe9(0xee))]}),_0x22759e[_0x241fe9(0x1e3)](_0x241fe9(0x178),{'children':['•',_0x302859['t'](_0x241fe9(0x11e))]})]})]})})]})})]});}const _0x44e677='mcp-ui.config',_0x1a509e={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x33af02=Object['getOwnPropertyDescriptor'],_0x4f3ac1=(_0x5ec34e,_0xca06dd,_0x403b79,_0xb19738)=>{const _0x5e519a=_0x1c247e;for(var _0x426085=_0xb19738>0x1?void 0x0:_0xb19738?_0x33af02(_0xca06dd,_0x403b79):_0xca06dd,_0x52b06a=_0x5ec34e[_0x5e519a(0xb1)]-0x1,_0x4bd402;_0x52b06a>=0x0;_0x52b06a--)(_0x4bd402=_0x5ec34e[_0x52b06a])&&(_0x426085=_0x4bd402(_0x426085)||_0x426085);return _0x426085;},_0x4f6699=(_0x492518,_0x588176)=>(_0xf16c7f,_0x54ce64)=>_0x588176(_0xf16c7f,_0x54ce64,_0x492518);const _0x3ec907=_0x1c247e(0x1ec),_0x41aa9e='mcp-config-dialog';_0x2f6eaf['MCPConfigUIController']=class extends _0x10d073['Disposable']{constructor(_0x5afb66,_0x165556,_0x1b9eea,_0xbd974f,_0xe21e36,_0x2d43d8,_0x221e20,_0x20844f,_0x437dad,_0xa9bd12){const _0x655482=_0x1c247e;super(),_0x5888e2(this,_0x655482(0x1a6),new _0x1133ec[(_0x655482(0x99))](!0x1)),_0x5888e2(this,_0x655482(0xc3),new _0x1133ec[(_0x655482(0x99))]({})),_0x5888e2(this,'_config$',new _0x1133ec['BehaviorSubject']({})),_0x5888e2(this,'_apiKey$',new _0x1133ec[(_0x655482(0x99))]('')),_0x5888e2(this,_0x655482(0x110),async _0xdafdb4=>{const _0x4ebf43=_0x655482;var _0x1b6fcb,_0x2ed307;this[_0x4ebf43(0x1a6)][_0x4ebf43(0x12a)](!0x0);try{const _0x56fe30=await this['_validateConfig'](_0xdafdb4);if(!_0x56fe30[_0x4ebf43(0xa7)]){this[_0x4ebf43(0xba)][_0x4ebf43(0x161)]({'type':_0x150643['MessageType']['Error'],'content':_0x56fe30[_0x4ebf43(0x17f)]||this[_0x4ebf43(0x14a)]['t']('mcpConfig.validation.invalidConfig')});return;}_0xdafdb4[_0x4ebf43(0xd7)]?await this[_0x4ebf43(0x122)][_0x4ebf43(0x100)](_0x3ec907,_0xdafdb4[_0x4ebf43(0xd7)][_0x4ebf43(0x1c2)]()):await this['_localStorageService'][_0x4ebf43(0x15b)](_0x3ec907),this[_0x4ebf43(0x195)]['next'](((_0x1b6fcb=_0xdafdb4[_0x4ebf43(0xd7)])==null?void 0x0:_0x1b6fcb['trim']())||''),this[_0x4ebf43(0x183)]['__setCustomHeaders']({'Authorization':_0x4ebf43(0x143)+((_0x2ed307=_0xdafdb4[_0x4ebf43(0xd7)])==null?void 0x0:_0x2ed307['trim']())}),this[_0x4ebf43(0xba)][_0x4ebf43(0x161)]({'type':_0x150643[_0x4ebf43(0x1b6)][_0x4ebf43(0x1c9)],'content':this[_0x4ebf43(0x14a)]['t'](_0x4ebf43(0x186))}),setTimeout(()=>{const _0x209b15=_0x4ebf43;this[_0x209b15(0x196)]['close'](_0x41aa9e);},0x320);}catch(_0x554cfe){this[_0x4ebf43(0x9b)][_0x4ebf43(0xdb)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x554cfe),this[_0x4ebf43(0xba)][_0x4ebf43(0x161)]({'type':_0x150643[_0x4ebf43(0x1b6)][_0x4ebf43(0x1d7)],'content':this['_localeService']['t'](_0x4ebf43(0x10f))});}finally{this[_0x4ebf43(0x1a6)]['next'](!0x1);}}),(this[_0x655482(0x1cb)]=_0x5afb66,this[_0x655482(0x112)]=_0x165556,this[_0x655482(0xfe)]=_0x1b9eea,this[_0x655482(0x122)]=_0xbd974f,this['_dialogService']=_0xe21e36,this[_0x655482(0xba)]=_0x2d43d8,this[_0x655482(0x17d)]=_0x221e20,this[_0x655482(0x14a)]=_0x20844f,this['_logService']=_0x437dad,this[_0x655482(0x183)]=_0xa9bd12,this['_initConfigSync'](),this[_0x655482(0x9f)](),this[_0x655482(0x134)]());}[_0x1c247e(0xbd)](){const _0x51c8c2=_0x1c247e,_0x50e94e=this['_configService'][_0x51c8c2(0x111)](_0x44e677);_0x50e94e!=null&&_0x50e94e['showDeveloperTools']&&this[_0x51c8c2(0x196)][_0x51c8c2(0xa4)]({'id':_0x41aa9e,'title':{'title':this[_0x51c8c2(0x14a)]['t']('mcpConfig.title')},'children':{'label':_0x51c8c2(0x201)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x326be1=_0x51c8c2;this[_0x326be1(0x196)]['close'](_0x41aa9e);}});}['getCurrentConfig'](){const _0x36734f=_0x1c247e;return this[_0x36734f(0xc3)][_0x36734f(0x1ee)];}['_registerComponent'](){const _0x422bf4=_0x1c247e;this[_0x422bf4(0x123)](this['_componentManager'][_0x422bf4(0x1c1)]('MCPConfigPanel',this[_0x422bf4(0x90)]()));}['_createConfigPanelComponent'](){const _0x29e498=_0x1c247e;return _0x47330f[_0x29e498(0x14d)](()=>{const _0x2bac0f=_0x29e498;var _0x9fbb9f,_0x2ab74f,_0x4a27b7;return _0x22759e[_0x2bac0f(0xd1)](_0x477054,{'config':this[_0x2bac0f(0x1bf)]['value'],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x2bac0f(0x1ee)],'currentApiKey$':this[_0x2bac0f(0x195)],'onSave':this['_handleConfigSave'],'loading':this[_0x2bac0f(0x1a6)][_0x2bac0f(0x1ee)],'connectionStatus$':(_0x9fbb9f=this['_mcpConnectionController'])==null?void 0x0:_0x9fbb9f[_0x2bac0f(0x16d)],'connectionError$':(_0x2ab74f=this['_mcpConnectionController'])==null?void 0x0:_0x2ab74f['connectionError$'],'currentSessionId$':(_0x4a27b7=this[_0x2bac0f(0x183)])==null?void 0x0:_0x4a27b7[_0x2bac0f(0x1a2)]});},this[_0x29e498(0x1cb)]);}[_0x1c247e(0x118)](){const _0x1b826e=_0x1c247e;this['disposeWithMe'](this[_0x1b826e(0xfe)][_0x1b826e(0x175)](_0x46879c['MCP_PLUGIN_CONFIG_KEY'])[_0x1b826e(0x1e5)](_0x48abe9=>{const _0xf182fb=_0x1b826e;this['_mcpCoreConfig$'][_0xf182fb(0x12a)](_0x48abe9||{});}));const _0x56c89e=this[_0x1b826e(0xfe)][_0x1b826e(0x111)](_0x46879c[_0x1b826e(0x154)]);this[_0x1b826e(0xc3)][_0x1b826e(0x12a)](_0x56c89e||{}),this[_0x1b826e(0x123)](this[_0x1b826e(0xfe)][_0x1b826e(0x175)](_0x44e677)[_0x1b826e(0x1e5)](_0xe267f9=>{const _0x1945c5=_0x1b826e;this[_0x1945c5(0x1bf)][_0x1945c5(0x12a)](_0xe267f9||{});}));const _0x15b99e=this[_0x1b826e(0xfe)][_0x1b826e(0x111)](_0x44e677);this[_0x1b826e(0x1bf)]['next'](_0x15b99e||{});}async[_0x1c247e(0x9f)](){const _0x62c62a=_0x1c247e,_0x2c3827=this[_0x62c62a(0xfe)][_0x62c62a(0x111)](_0x44e677);if(!(_0x2c3827!=null&&_0x2c3827[_0x62c62a(0x1cf)]))return;const _0x4ffc6c=await this[_0x62c62a(0x122)][_0x62c62a(0x132)](_0x3ec907);_0x4ffc6c&&(this[_0x62c62a(0x183)][_0x62c62a(0xeb)]({'Authorization':'Bearer\x20'+_0x4ffc6c}),this[_0x62c62a(0x195)][_0x62c62a(0x12a)](_0x4ffc6c));}async[_0x1c247e(0x115)](_0x4bddbd){const _0xe1d3f3=_0x1c247e;if(!_0x4bddbd[_0xe1d3f3(0xd7)]||_0x4bddbd[_0xe1d3f3(0xd7)][_0xe1d3f3(0x1c2)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0xe1d3f3(0x14a)]['t'](_0xe1d3f3(0x1fd))};if(_0x4bddbd[_0xe1d3f3(0xd7)][_0xe1d3f3(0x1c2)]()[_0xe1d3f3(0xb1)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xe1d3f3(0x14a)]['t'](_0xe1d3f3(0x136))};try{const _0x31df79=await this[_0xe1d3f3(0x1cb)]['get'](_0x46879c[_0xe1d3f3(0x211)])[_0xe1d3f3(0xf1)](_0x4bddbd[_0xe1d3f3(0xd7)]['trim']());return _0x31df79[_0xe1d3f3(0xa7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x31df79[_0xe1d3f3(0xdb)]||this[_0xe1d3f3(0x14a)]['t'](_0xe1d3f3(0x93))};}catch(_0x313ecd){return console[_0xe1d3f3(0x13a)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x313ecd),{'isValid':!0x0};}}},_0x2f6eaf[_0x1c247e(0x1a9)]=_0x4f3ac1([_0x4f6699(0x0,_0x10d073[_0x1c247e(0x174)](_0x10d073['Injector'])),_0x4f6699(0x1,_0x47330f[_0x1c247e(0x126)]),_0x4f6699(0x2,_0x10d073[_0x1c247e(0x1b4)]),_0x4f6699(0x3,_0x10d073[_0x1c247e(0xc5)]),_0x4f6699(0x4,_0x47330f[_0x1c247e(0xef)]),_0x4f6699(0x5,_0x47330f[_0x1c247e(0x1bb)]),_0x4f6699(0x6,_0x10d073[_0x1c247e(0x174)](_0x47330f[_0x1c247e(0xf9)])),_0x4f6699(0x7,_0x10d073[_0x1c247e(0x174)](_0x10d073[_0x1c247e(0x15e)])),_0x4f6699(0x8,_0x10d073[_0x1c247e(0xe3)]),_0x4f6699(0x9,_0x10d073[_0x1c247e(0x174)](_0x46879c[_0x1c247e(0x211)]))],_0x2f6eaf[_0x1c247e(0x1a9)]);const _0x2948d7={'id':_0x1c247e(0x105),'type':_0x10d073[_0x1c247e(0x13c)][_0x1c247e(0x98)],'handler':async(_0xb24dca,_0x1ee402)=>(_0xb24dca[_0x1c247e(0xbb)](_0x2f6eaf['MCPConfigUIController'])['showConfigPanel'](),!0x0)};function _0x8718bb(_0x23096,_0xeac4fb){const _0x41ee23=_0x1c247e;switch(_0x23096){case _0x46879c['MCPConnectionStatus']['DISCONNECTED']:return _0x41ee23(0x116);case _0x46879c['MCPConnectionStatus'][_0x41ee23(0x16a)]:return'mcpStatus.connecting';case _0x46879c[_0x41ee23(0x89)][_0x41ee23(0xe5)]:return _0x41ee23(0x20a);case _0x46879c[_0x41ee23(0x89)][_0x41ee23(0x1e0)]:switch(_0xeac4fb){case _0x46879c['MCPConnectionError'][_0x41ee23(0x20e)]:return'mcpStatus.unauthorized';case _0x46879c['MCPConnectionError'][_0x41ee23(0x11d)]:return _0x41ee23(0x1f3);case _0x46879c[_0x41ee23(0xc8)][_0x41ee23(0xfb)]:return'mcpStatus.networkError';case _0x46879c['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x41ee23(0x212);default:return _0x41ee23(0xac);}case _0x46879c['MCPConnectionStatus'][_0x41ee23(0x202)]:return _0x41ee23(0x14c);default:return _0x41ee23(0x133);}}function _0x1a73ce(_0x5e28ef,_0x5d10e9,_0x33979b,_0x329e61=!0x0){const _0x3a70a2=_0x1c247e,_0x38a2fa=_0x8718bb(_0x5e28ef,_0x5d10e9),_0x596c90=_0x33979b['t'](_0x38a2fa);return _0x329e61?_0x5e28ef===_0x46879c['MCPConnectionStatus']['DISCONNECTED']&&_0x5d10e9===_0x46879c[_0x3a70a2(0xc8)][_0x3a70a2(0x20e)]?_0x596c90+'\x20-\x20'+_0x33979b['t']('mcpStatus.clickToConfigure'):_0x5e28ef===_0x46879c[_0x3a70a2(0x89)][_0x3a70a2(0xe5)]?''+_0x596c90:_0x5e28ef===_0x46879c[_0x3a70a2(0x89)][_0x3a70a2(0x9e)]||_0x5e28ef===_0x46879c['MCPConnectionStatus'][_0x3a70a2(0x1e0)]?_0x596c90+_0x3a70a2(0xd5)+_0x33979b['t']('mcpStatus.clickToConnect'):_0x596c90:_0x596c90;}function _0x395eb0(_0x135665){const _0x2202ab=_0x1c247e;switch(_0x135665){case _0x46879c[_0x2202ab(0x89)][_0x2202ab(0xe5)]:return _0x2202ab(0x1db);case _0x46879c[_0x2202ab(0x89)][_0x2202ab(0x16a)]:case _0x46879c[_0x2202ab(0x89)][_0x2202ab(0x202)]:return _0x2202ab(0xc4);case _0x46879c[_0x2202ab(0x89)][_0x2202ab(0x1e0)]:case _0x46879c['MCPConnectionStatus'][_0x2202ab(0x9e)]:return'univer-text-red-500';default:return _0x2202ab(0x168);}}function _0x553e4a(_0x2f4694){const _0x1fede7=_0x1c247e,{status$:_0x2462f2,error$:_0x1aefec,onConfigure:_0x1d8b50,showClickable:_0x338597=!0x0}=_0x2f4694,_0x5a576c=_0x47330f['useObservable'](_0x2462f2,_0x46879c[_0x1fede7(0x89)][_0x1fede7(0x9e)]),_0x573ae=_0x47330f[_0x1fede7(0xe0)](_0x1aefec,_0x46879c[_0x1fede7(0xc8)][_0x1fede7(0x128)]),_0x314195=_0x47330f[_0x1fede7(0xc6)](_0x10d073[_0x1fede7(0x15e)]),_0x1c764f=_0x5a576c===_0x46879c[_0x1fede7(0x89)][_0x1fede7(0xe5)];_0x5a576c===_0x46879c['MCPConnectionStatus'][_0x1fede7(0x16a)]||_0x46879c['MCPConnectionStatus'][_0x1fede7(0x202)];const _0x41b72b=_0x314195['t'](_0x8718bb(_0x5a576c,_0x573ae)),_0x79becd=_0x1a73ce(_0x5a576c,_0x573ae,_0x314195,_0x338597),_0x54d668=_0x395eb0(_0x5a576c),_0x3676a5=_0x1c764f?_0x22759e[_0x1fede7(0xd1)](_0x34e1b9,{}):_0x22759e[_0x1fede7(0xd1)](_0x1ccfed,{}),_0x33270a=_0x1e9486[_0x1fede7(0x140)](()=>{_0x338597&&_0x1d8b50&&_0x1d8b50();},[_0x338597,_0x1d8b50]);function _0x1746b9(){const _0x401c57=_0x1fede7;return _0x22759e['jsxs'](_0x401c57(0x178),{'className':_0x150643[_0x401c57(0xa2)](_0x401c57(0x12b),_0x338597&&_0x1d8b50&&_0x401c57(0x17b)),'role':_0x401c57(0x16b),'onClick':_0x338597&&_0x1d8b50?_0x33270a:void 0x0,'children':[_0x22759e[_0x401c57(0xd1)](_0x401c57(0x178),{'className':_0x150643[_0x401c57(0xa2)](_0x401c57(0x1ed),_0x54d668),'children':_0x3676a5}),_0x22759e['jsx'](_0x401c57(0x178),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x41b72b})]});}return _0x22759e['jsx'](_0x150643[_0x1fede7(0x10b)],{'title':_0x79becd,'placement':_0x1fede7(0x1ba),'children':_0x1746b9()});}var _0x1b458f=Object[_0x1c247e(0x20c)],_0xa3a90e=(_0x5d72d4,_0x479814,_0x50ea4f,_0x32f158)=>{for(var _0x45823b=_0x32f158>0x1?void 0x0:_0x32f158?_0x1b458f(_0x479814,_0x50ea4f):_0x479814,_0xbd22f9=_0x5d72d4['length']-0x1,_0x2a7544;_0xbd22f9>=0x0;_0xbd22f9--)(_0x2a7544=_0x5d72d4[_0xbd22f9])&&(_0x45823b=_0x2a7544(_0x45823b)||_0x45823b);return _0x45823b;},_0x5f582f=(_0x224d1a,_0x4f665c)=>(_0x3fed9a,_0x124aa9)=>_0x4f665c(_0x3fed9a,_0x124aa9,_0x224d1a);_0x2f6eaf[_0x1c247e(0x189)]=class extends _0x10d073[_0x1c247e(0x14e)]{constructor(_0x543766,_0x31acaa,_0x4ca827,_0x58ad11){const _0x26443f=_0x1c247e;super(),this[_0x26443f(0x1cb)]=_0x543766,this['_connectionController']=_0x31acaa,this[_0x26443f(0x112)]=_0x4ca827,this[_0x26443f(0xfe)]=_0x58ad11,this[_0x26443f(0x156)](),this[_0x26443f(0xfc)]();}[_0x1c247e(0x156)](){const _0x4f1991=_0x1c247e,_0x273c9d=this[_0x4f1991(0xfe)][_0x4f1991(0x111)](_0x44e677);_0x273c9d!=null&&_0x273c9d[_0x4f1991(0x1cf)]&&(this[_0x4f1991(0xdd)][_0x4f1991(0xcc)]=!0x1);}[_0x1c247e(0xfc)](){const _0x45fd5f=_0x1c247e,_0xa8a5d6=this[_0x45fd5f(0xfe)]['getConfig'](_0x44e677);(_0xa8a5d6==null?void 0x0:_0xa8a5d6[_0x45fd5f(0x214)])!==!0x1&&this[_0x45fd5f(0x123)](this[_0x45fd5f(0x112)][_0x45fd5f(0x206)](_0x47330f['BuiltInUIPart'][_0x45fd5f(0xda)],()=>{const _0xa3bca3=_0x45fd5f;var _0x2551f;return _0x47330f['connectInjector'](_0x48b774({'status$':this['_connectionController'][_0xa3bca3(0x16d)],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0xa3bca3(0xbc)](),'showClickable':(_0x2551f=_0xa8a5d6==null?void 0x0:_0xa8a5d6[_0xa3bca3(0x1cf)])!=null?_0x2551f:!0x1}),this['_injector']);}));}[_0x1c247e(0xbc)](){const _0x19436b=_0x1c247e;this['_injector'][_0x19436b(0xbb)](_0x2f6eaf['MCPConfigUIController'])[_0x19436b(0xbd)]();}},_0x2f6eaf['MCPConnectionUIController']=_0xa3a90e([_0x5f582f(0x0,_0x10d073[_0x1c247e(0x174)](_0x10d073[_0x1c247e(0x1d6)])),_0x5f582f(0x1,_0x10d073['Inject'](_0x46879c[_0x1c247e(0x211)])),_0x5f582f(0x2,_0x47330f[_0x1c247e(0x126)]),_0x5f582f(0x3,_0x10d073[_0x1c247e(0x1b4)])],_0x2f6eaf['MCPConnectionUIController']);function _0x48b774(_0x2c141e){const {status$:_0x582a4b,error$:_0x245220,onConfigure:_0x4e3df5,showClickable:_0x5be687}=_0x2c141e;return function(){const _0x4dfccd=_0x35df;return _0x22759e[_0x4dfccd(0xd1)](_0x553e4a,{'status$':_0x582a4b,'error$':_0x245220,'onConfigure':_0x4e3df5,'showClickable':_0x5be687});};}function _0x4646f8(_0x383f28){const _0x492b91=_0x1c247e;return{'id':_0x2948d7['id'],'type':_0x47330f['MenuItemType'][_0x492b91(0x150)],'icon':_0x492b91(0xc7),'title':'mcpConfig.title','tooltip':'mcpConfig.title'};}const _0x1c5bba={[_0x47330f[_0x1c247e(0x1ef)]['OTHERS']]:{[_0x2948d7['id']]:{'order':0xa,'menuItemFactory':_0x4646f8}}};var _0x562ffc=Object['getOwnPropertyDescriptor'],_0x525476=(_0x2fb6fa,_0x23c19f,_0x4fbf9b,_0x102b3f)=>{const _0x2b2d41=_0x1c247e;for(var _0x43e5fa=_0x102b3f>0x1?void 0x0:_0x102b3f?_0x562ffc(_0x23c19f,_0x4fbf9b):_0x23c19f,_0x362c6f=_0x2fb6fa[_0x2b2d41(0xb1)]-0x1,_0x472f8c;_0x362c6f>=0x0;_0x362c6f--)(_0x472f8c=_0x2fb6fa[_0x362c6f])&&(_0x43e5fa=_0x472f8c(_0x43e5fa)||_0x43e5fa);return _0x43e5fa;},_0x594032=(_0x24e1d4,_0xa8bff6)=>(_0x58704c,_0x38a12e)=>_0xa8bff6(_0x58704c,_0x38a12e,_0x24e1d4);_0x2f6eaf[_0x1c247e(0x124)]=class extends _0x10d073[_0x1c247e(0x14e)]{constructor(_0xe81ad0,_0x493a27){const _0x2013c6=_0x1c247e;super(),this['_commandService']=_0xe81ad0,this[_0x2013c6(0x1ac)]=_0x493a27,this[_0x2013c6(0x137)](),this[_0x2013c6(0x1b8)]();}[_0x1c247e(0x137)](){const _0x39c61e=_0x1c247e;[_0x2948d7][_0x39c61e(0x9a)](_0x32823a=>{const _0x51117c=_0x39c61e;this[_0x51117c(0x123)](this['_commandService']['registerCommand'](_0x32823a));});}[_0x1c247e(0x1b8)](){const _0x56b4e0=_0x1c247e;this[_0x56b4e0(0x1ac)]['mergeMenu'](_0x1c5bba);}},_0x2f6eaf['MCPUIMenuController']=_0x525476([_0x594032(0x0,_0x10d073[_0x1c247e(0x13b)]),_0x594032(0x1,_0x47330f[_0x1c247e(0x127)])],_0x2f6eaf[_0x1c247e(0x124)]);const _0x1880de={'mcpStatus':{'disconnected':_0x1c247e(0x187),'connecting':_0x1c247e(0x188),'connected':'MCP\x20Connected','failed':_0x1c247e(0x1f2),'retrying':_0x1c247e(0x151),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1c247e(0x144),'maxRetriesExceeded':_0x1c247e(0xff),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1c247e(0xb7)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x1c247e(0x205),'apiKey':_0x1c247e(0x1c5),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1c247e(0x193),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1c247e(0x1e6),'connectionInfo':_0x1c247e(0x1c4),'mcpClientConfig':_0x1c247e(0x1c4),'configInstructions':_0x1c247e(0x12d),'configStepTitle':_0x1c247e(0x1a1),'configStep1':_0x1c247e(0x131),'configStep2':_0x1c247e(0x1ab),'configStep3':_0x1c247e(0x96),'sessionId':_0x1c247e(0x1ea),'sessionIdDescription':_0x1c247e(0xd9),'authorizationDescription':_0x1c247e(0x170),'configParameters':_0x1c247e(0x1f6),'maxRetries':'Max\x20Retries','save':_0x1c247e(0x1e1),'saving':_0x1c247e(0x1a7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1c247e(0x209),'configSaved':_0x1c247e(0x1a0),'configError':_0x1c247e(0x164),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1c247e(0xd2)},'validation':{'apiKeyRequired':_0x1c247e(0xf8),'apiKeyTooShort':_0x1c247e(0x1c6),'invalidConfig':_0x1c247e(0x10c),'invalidApiKey':_0x1c247e(0x1f0)},'connectionStatus':{'disconnected':_0x1c247e(0x1f9),'connecting':_0x1c247e(0x1bd),'connected':'Connected','failed':_0x1c247e(0x16f),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x1c247e(0x20d),'maxRetriesExceeded':_0x1c247e(0x130)}}},_0x843a8b={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x1c247e(0x142),'failed':_0x1c247e(0x91),'retrying':_0x1c247e(0x13d),'unknown':'MCP\x20状态未知','unauthorized':_0x1c247e(0x149),'sessionOccupied':_0x1c247e(0x19b),'networkError':_0x1c247e(0x173),'maxRetriesExceeded':_0x1c247e(0x121),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x1c247e(0xad)},'mcpConfig':{'title':_0x1c247e(0x10e),'description':_0x1c247e(0x1c8),'apiKey':_0x1c247e(0xc2),'apiKeyPlaceholder':_0x1c247e(0x104),'apiKeyHint':_0x1c247e(0x15f),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x1c247e(0x87),'mcpClientConfig':_0x1c247e(0x87),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x1c247e(0x167),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x1c247e(0x157),'configStep3':_0x1c247e(0xc9),'sessionId':_0x1c247e(0x16e),'sessionIdDescription':_0x1c247e(0xe7),'authorizationDescription':_0x1c247e(0x138),'configParameters':_0x1c247e(0x207),'maxRetries':_0x1c247e(0x155),'save':_0x1c247e(0xe1),'saving':_0x1c247e(0x10d),'note1':'配置更改将立即生效','note2':_0x1c247e(0xde),'configSaved':_0x1c247e(0x162),'configError':_0x1c247e(0x1d5),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x1c247e(0xf6),'univerAiLabel':_0x1c247e(0x94),'getStarted':_0x1c247e(0x147)},'validation':{'apiKeyRequired':_0x1c247e(0x103),'apiKeyTooShort':_0x1c247e(0x1f4),'invalidConfig':'配置无效','invalidApiKey':_0x1c247e(0x171)},'connectionStatus':{'disconnected':_0x1c247e(0xd6),'connecting':'连接中...','connected':'已连接','failed':_0x1c247e(0x1c7),'retrying':_0x1c247e(0x8a)},'connectionError':{'unauthorized':_0x1c247e(0xa0),'sessionOccupied':_0x1c247e(0x203),'networkError':_0x1c247e(0x1a4),'maxRetriesExceeded':_0x1c247e(0x1ae)}}};var _0xddef4b=Object['defineProperty'],_0x1fedb6=Object[_0x1c247e(0x20c)],_0x445d0e=(_0x46453b,_0x599833,_0x2320f0)=>_0x599833 in _0x46453b?_0xddef4b(_0x46453b,_0x599833,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2320f0}):_0x46453b[_0x599833]=_0x2320f0,_0x29be5a=(_0x1eca32,_0x3219a9,_0x41091b,_0x3fb85c)=>{for(var _0x2fd47b=_0x3fb85c>0x1?void 0x0:_0x3fb85c?_0x1fedb6(_0x3219a9,_0x41091b):_0x3219a9,_0x440b7a=_0x1eca32['length']-0x1,_0x53121f;_0x440b7a>=0x0;_0x440b7a--)(_0x53121f=_0x1eca32[_0x440b7a])&&(_0x2fd47b=_0x53121f(_0x2fd47b)||_0x2fd47b);return _0x2fd47b;},_0x2add1b=(_0x419f6f,_0x2d744f)=>(_0x382dc0,_0x34a4fd)=>_0x2d744f(_0x382dc0,_0x34a4fd,_0x419f6f),_0x33b69d=(_0x2e80d1,_0x59286f,_0x204663)=>_0x445d0e(_0x2e80d1,_0x59286f+'',_0x204663);_0x2f6eaf[_0x1c247e(0x176)]=class extends _0x10d073['Plugin']{constructor(_0x1f6688=_0x1a509e,_0x175346,_0x887ae9,_0x4126d4,_0x2aa075,_0x4116f5){const _0x3b066d=_0x1c247e;super(),this[_0x3b066d(0xf2)]=_0x1f6688,this[_0x3b066d(0x1cb)]=_0x175346,this[_0x3b066d(0xfe)]=_0x887ae9,this[_0x3b066d(0x112)]=_0x4126d4,this[_0x3b066d(0x122)]=_0x2aa075,this[_0x3b066d(0x14a)]=_0x4116f5;const {..._0x3c5891}=_0x10d073[_0x3b066d(0x15d)]({},_0x1a509e,this[_0x3b066d(0xf2)]);this[_0x3b066d(0xfe)][_0x3b066d(0xaf)](_0x44e677,_0x3c5891);}async[_0x1c247e(0x16c)](){const _0x2ca38b=_0x1c247e,_0x1b2e52=[[_0x2f6eaf['MCPConnectionUIController']],[_0x2f6eaf['MCPConfigUIController']],[_0x2f6eaf[_0x2ca38b(0x124)]]];this[_0x2ca38b(0x1cb)][_0x2ca38b(0x1eb)](_0x4a22bb[_0x2ca38b(0x1e2)])||_0x1b2e52[_0x2ca38b(0x158)]([_0x4a22bb[_0x2ca38b(0x1e2)],{'useClass':_0x4a22bb[_0x2ca38b(0x1b5)]}]),_0x1b2e52['forEach'](_0x35d27b=>this[_0x2ca38b(0x1cb)][_0x2ca38b(0x1fe)](_0x35d27b)),this[_0x2ca38b(0x1cb)][_0x2ca38b(0xbb)](_0x2f6eaf[_0x2ca38b(0x189)]),this[_0x2ca38b(0x1cb)][_0x2ca38b(0xbb)](_0x2f6eaf[_0x2ca38b(0x1a9)]),this[_0x2ca38b(0x1cb)]['get'](_0x2f6eaf[_0x2ca38b(0x124)]);}},_0x33b69d(_0x2f6eaf['UniverMCPUIPlugin'],_0x1c247e(0x204),'MCP_UI_PLUGIN'),_0x2f6eaf[_0x1c247e(0x176)]=_0x29be5a([_0x10d073[_0x1c247e(0xce)](_0x46879c['UniverMCPPlugin']),_0x2add1b(0x1,_0x10d073[_0x1c247e(0x174)](_0x10d073[_0x1c247e(0x1d6)])),_0x2add1b(0x2,_0x10d073[_0x1c247e(0x1b4)]),_0x2add1b(0x3,_0x47330f['IUIPartsService']),_0x2add1b(0x4,_0x10d073[_0x1c247e(0xc5)]),_0x2add1b(0x5,_0x10d073[_0x1c247e(0x174)](_0x10d073[_0x1c247e(0x15e)]))],_0x2f6eaf[_0x1c247e(0x176)]),_0x2f6eaf['MCPConfigPanel']=_0x477054,_0x2f6eaf['MCPStatusDisplay']=_0x553e4a,_0x2f6eaf[_0x1c247e(0x95)]=_0x2948d7,_0x2f6eaf[_0x1c247e(0xdc)]=_0x1880de,_0x2f6eaf[_0x1c247e(0x14f)]=_0x843a8b,Object[_0x1c247e(0x101)](_0x2f6eaf,Symbol[_0x1c247e(0xcd)],{'value':_0x1c247e(0x139)});}));
|
|
1
|
+
function _0x1a7a(_0x3d48aa,_0x13631e){_0x3d48aa=_0x3d48aa-0x1b3;const _0x5328b7=_0x5328();let _0x1a7acf=_0x5328b7[_0x3d48aa];return _0x1a7acf;}function _0x5328(){const _0x34e8c6=['amd','http://www.w3.org/2000/svg','on-line-icon','UniverMCPUIPlugin','univer-text-red-500','8962704GkKyiV','errorMessage','MCP\x20Connected','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Failed\x20to\x20save\x20configuration','mcpConfig.save','Saving...','Plugin','MAX_RETRIES_EXCEEDED','mcp.apiKey','UniverNetwork','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','mcpConfig.configParameters','Configuration\x20Notes:','path','连接失败','API\x20key\x20with\x20Bearer\x20prefix.','点击配置\x20MCP','jsxs','label','mcpConfig.configSaved','_localStorageService','启用身份验证','配置步骤:','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','length','error','mcpConfig.apiKeyHint','mcpConfig.connectionError.networkError','MCPConnectionError','IConfigService','224904kkSBoj','_initializeCommands','Save\x20Configuration','defineProperty','mcpConfig.title','UniverMCPPlugin','mcpConfig.validation.apiKeyRequired','univer-text-sm\x20univer-font-medium','idSuffix','white','ILocalStorageService','mcpConfig.connectionError.sessionOccupied','API\x20Key','MCP:\x20超出最大重试次数','API\x20密钥长度至少需要\x2010\x20位','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_commandService','string','entries','warn','includes','DISCONNECTED','MCPUIMenuController','univer-text-white','256128JriAEi','IMessageService','attrs','mcpServerUrl','超出最大重试次数,请稍后再试','FAILED','12712svRrqd','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','close','mcpConfig.connectionError.maxRetriesExceeded','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','add','MCP\x20已连接','mcpConfig.note2','showStatus','IDialogService','UniverCore','未连接','mcpStatus.sessionOccupied','Disconnected','MCP\x20客户端配置','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_componentManager','MCPConnectionStatus','DependentOn','univer-space-y-2','UNAUTHORIZED','SESSION_ID_OCCUPIED','配置保存失败','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','translate(.97)','mcpConfig.configStepTitle','univer-shrink-0\x20univer-text-blue-500','univerjs-icon\x20univerjs-icon-','您的\x20API\x20密钥安全存储在本地存储中','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-shrink-0\x20univer-text-red-500','assign','MessageType','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','registerComponent','_loading$','MCP\x20Connection\x20Failed','isValid','univer-bg-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','0\x200\x2016\x2016','UniverUi','_apiKey$','mcpConfig.apiApplyInfo.title','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','CommandType','Error','保存中...','univer-flex\x20univer-items-center\x20univer-gap-2','https://console.univer.ai','\x20-\x20','react','round','RibbonStartGroup','Inject','https://console.univer.plus','defs','Enable\x20Authentication','MCP\x20重连中...','getConfig','zhCN','4138390YXcFgC','mask','CONNECTED','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','_configService','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-sm\x20univer-text-gray-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Tooltip','API\x20密钥无效,请检查密钥是否正确','univer-text-yellow-500','MCP\x20已断开','subscribe','mcpConfig.connectionStatus.disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Enter\x20your\x20API\x20key','useObservable','mcpStatus.unknown','1em','registerCommand','fill','2933gYQnnA','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','配置无效','@univerjs/ui','mcpConfig.configError','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-space-y-3','MenuItemType','useCallback','ISocketService','mcpConfig.configStep2','CONNECTING','您的\x20API\x20密钥将在此浏览器中本地存储','get','请输入您的\x20API\x20密钥','配置更改将立即生效','启用身份验证以获得安全连接','CloseIcon','push','mcpStatus.failed','_createConfigPanelComponent','univer-text-blue-600','displayName','div','univer-text-xs\x20univer-text-gray-500','connectInjector','_mcpConnectionController','_initAutoConnect','已连接','会话\x20ID\x20已被占用,请稍后再试','什么是\x20API\x20密钥?','univer-bg-gray-500','univer-flex\x20univer-items-center\x20univer-gap-3','COMMAND','4eXVvAn','off-line-icon_clip0_910_343','createElement','_validateConfig','Retrying...','button','mcpConfig.apiApplyInfo.univerAiLabel','MCP:\x20Session\x20ID\x20Occupied','bottom','xlink:href','IUIPartsService','_registerComponent','mcp-ui.config','mcpConfig.validation.apiKeyTooShort','value','_dialogService','BuiltInUIPart','NONE','univer-flex\x20univer-gap-3','HelpIcon','@univerjs-pro/mcp','useState','mcpConfig.saving','ILogService','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_connectionController','LocaleService','MCPConfigUIController','function','IMenuManagerService','univer-flex-1','Input','React','MCP\x20Disconnected','mcpConfig.configStep1','MCP\x20连接中...','next','mcp-config-dialog','@univerjs/core','MCP:\x20Unauthorized','Max\x20Retries','2585154ERCzoR','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-text-green-500','https://mcp.univer.ai/mcp/?univer_session_id=','toString','ComponentManager','forwardRef','UniverIcon','getCurrentConfig','点击连接\x20MCP','object','useDependency','mcpStatus.connecting','HEADER_MENU','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','NETWORK_ERROR','open','MCP\x20配置','Button','univer-space-y-5','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.apiKey','univer-min-w-0\x20univer-flex-1','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','disposeWithMe','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','apiKey','map','subscribeConfigValue$','mcp-ui.command.openConfigPanel','_handleConfigSave','mcpStatus.retrying','RETRYING','off','url(#off-line-icon_clip0_910_343)','replace','help-icon','mcpConfig.validation.invalidConfig','current','univer.ai','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Click\x20to\x20configure\x20MCP','Configuration\x20Steps:','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','配置保存成功','_mcpCoreConfig$','Module','MCP_PLUGIN_CONFIG_KEY','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.connected','setConfig','onStarting','useRef','MCPStatusDisplay','_localeService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','show','mcpConfig.connectionError.unauthorized','univer-bg-blue-500','mcpStatus.clickToConfigure','What\x20is\x20API\x20Key?','clipPath','Invalid\x20configuration','ICommandService','none','colorChannel1','M0\x200H16V16H0z','MCPConnectionController','<SESSION_ID>','MCP\x20Client\x20Configuration','mcpConfig.apiKeyPlaceholder','MCP:\x20Max\x20Retries\x20Exceeded','API\x20密钥不能为空','mcpConfig.connectionStatus.connecting','Authorization:','_menuManagerService','__setCustomHeaders','mcpConfig.apiApplyInfo.getStarted','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-bg-red-500','Copy\x20the\x20JSON\x20configuration\x20below','Injector','merge','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Success','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','tag','@univerjs/network','Disposable','univer.plus','forEach','http','noopener\x20noreferrer','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Configuration','<API_KEY>','mcpConfig.connectionStatus.connected','_handleConfigure','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_uiPartsService','trim','Connection\x20Failed','MCP\x20Retrying...','Connecting...','连接中...','Configuration\x20saved\x20successfully','showDeveloperTools','MCPConfigPanel','getOwnPropertyDescriptor','_messageService','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20Unknown\x20Status','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','BehaviorSubject','url(#$1','\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','_loadStoredApiKey','Univer\x20AI\x20控制台','on-line-icon_clip0_910_349','_config','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.authorizationDescription','复制以下\x20JSON\x20配置','jsx','use','MCPConnectionUIController','evenodd','setItem','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Click\x20to\x20connect\x20MCP','connectionStatus$','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.note1','_injector','OTHERS','几秒钟内获取您的\x20API\x20密钥','span','Enable\x20authentication\x20for\x20secure\x20connections','univer-size-4','_config$','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','url(#on-line-icon_clip0_910_349)','univer-size-2\x20univer-rounded-full','@univerjs/design','Bearer\x20','OffLineIcon','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP:\x20会话\x20ID\x20已被占用','showConfigPanel','_logService','_initStatusComponent','OpenMCPConfigPanelCommand','stringify','MCP:\x20Network\x20Error','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','children','clsx','svg','MCP_UI_PLUGIN','univer-flex\x20univer-items-start\x20univer-gap-3','_initializeMenus','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer_session_id:','OnLineIcon','univer-space-y-4','167361LBiVcb','Connected','close-icon','UniverProMcpUi','currentColor'];_0x5328=function(){return _0x34e8c6;};return _0x5328();}(function(_0x33113e,_0x4f7c2e){const _0xe4b2e9=_0x1a7a,_0xc6edb5=_0x33113e();while(!![]){try{const _0xcfc912=parseInt(_0xe4b2e9(0x21c))/0x1+parseInt(_0xe4b2e9(0x204))/0x2+-parseInt(_0xe4b2e9(0x1db))/0x3*(-parseInt(_0xe4b2e9(0x298))/0x4)+parseInt(_0xe4b2e9(0x260))/0x5+-parseInt(_0xe4b2e9(0x2c2))/0x6+-parseInt(_0xe4b2e9(0x276))/0x7*(-parseInt(_0xe4b2e9(0x222))/0x8)+-parseInt(_0xe4b2e9(0x1e5))/0x9;if(_0xcfc912===_0x4f7c2e)break;else _0xc6edb5['push'](_0xc6edb5['shift']());}catch(_0xd6155d){_0xc6edb5['push'](_0xc6edb5['shift']());}}}(_0x5328,0x77e71),function(_0x177b5b,_0x522d52){const _0x4337bd=_0x1a7a;typeof exports==_0x4337bd(0x2cc)&&typeof module<'u'?_0x522d52(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==_0x4337bd(0x2b5)&&define[_0x4337bd(0x1e0)]?define(['exports',_0x4337bd(0x2bf),'react/jsx-runtime',_0x4337bd(0x2ac),_0x4337bd(0x1c5),_0x4337bd(0x279),'rxjs',_0x4337bd(0x256),_0x4337bd(0x31a)],_0x522d52):(_0x177b5b=typeof globalThis<'u'?globalThis:_0x177b5b||self,_0x522d52(_0x177b5b[_0x4337bd(0x1de)]={},_0x177b5b[_0x4337bd(0x22c)],_0x177b5b[_0x4337bd(0x2b9)],_0x177b5b['UniverProMcp'],_0x177b5b['UniverDesign'],_0x177b5b[_0x4337bd(0x24c)],_0x177b5b['rxjs'],_0x177b5b[_0x4337bd(0x2b9)],_0x177b5b[_0x4337bd(0x1ef)]));}(this,function(_0x50df75,_0x4eec7b,_0x4a7dcc,_0x59ea95,_0x4b24c4,_0x3c9fd4,_0x384b81,_0x3fb8df,_0x6309e8){'use strict';const _0x14c7a4=_0x1a7a;var _0x1de2a7=Object[_0x14c7a4(0x207)],_0x5e72f3=(_0x131212,_0x359f9e,_0x1692ba)=>_0x359f9e in _0x131212?_0x1de2a7(_0x131212,_0x359f9e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1692ba}):_0x131212[_0x359f9e]=_0x1692ba,_0x1e2ad9=(_0x3722ec,_0x1a39e2,_0x4788ff)=>_0x5e72f3(_0x3722ec,typeof _0x1a39e2!='symbol'?_0x1a39e2+'':_0x1a39e2,_0x4788ff);function _0x3c0d3d({ref:_0x1ce621,..._0x1930e6}){const _0xf31ce1=_0x14c7a4,{icon:_0x454ef5,id:_0xbf1863,className:_0x5c94eb,extend:_0x832b90,..._0x172448}=_0x1930e6,_0x2754d7=(_0xf31ce1(0x23e)+_0xbf1863+'\x20'+(_0x5c94eb||''))[_0xf31ce1(0x327)](),_0x3f8d59=_0x3fb8df[_0xf31ce1(0x2f6)]('_'+_0x363e5e());return _0x3709ec(_0x454ef5,''+_0xbf1863,{'defIds':_0x454ef5['defIds'],'idSuffix':_0x3f8d59[_0xf31ce1(0x2e8)]},{'ref':_0x1ce621,'className':_0x2754d7,..._0x172448},_0x832b90);}function _0x3709ec(_0x1f685b,_0x58dde6,_0x5a274a,_0x4cdf12,_0x202943){const _0x36b5fd=_0x14c7a4;return _0x3fb8df[_0x36b5fd(0x29a)](_0x1f685b[_0x36b5fd(0x319)],{'key':_0x58dde6,..._0x3b40e3(_0x1f685b,_0x5a274a,_0x202943),..._0x4cdf12},(_0x264fe3(_0x1f685b,_0x5a274a)['children']||[])[_0x36b5fd(0x2dd)]((_0x3e89fc,_0x2fe650)=>_0x3709ec(_0x3e89fc,_0x58dde6+'-'+_0x1f685b[_0x36b5fd(0x319)]+'-'+_0x2fe650,_0x5a274a,void 0x0,_0x202943)));}function _0x3b40e3(_0x29f5f8,_0x4badb9,_0x483d8b){const _0xd6ad8f=_0x14c7a4,_0x80ef91={..._0x29f5f8[_0xd6ad8f(0x21e)]};_0x483d8b!=null&&_0x483d8b[_0xd6ad8f(0x304)]&&_0x80ef91['fill']==='colorChannel1'&&(_0x80ef91[_0xd6ad8f(0x275)]=_0x483d8b[_0xd6ad8f(0x304)]),_0x29f5f8['tag']===_0xd6ad8f(0x261)&&_0x80ef91['id']&&(_0x80ef91['id']=_0x80ef91['id']+_0x4badb9[_0xd6ad8f(0x20c)]),Object[_0xd6ad8f(0x216)](_0x80ef91)[_0xd6ad8f(0x31d)](([_0xc7f55e,_0x5b44df])=>{const _0x2a210e=_0xd6ad8f;_0xc7f55e===_0x2a210e(0x261)&&typeof _0x5b44df==_0x2a210e(0x215)&&(_0x80ef91[_0xc7f55e]=_0x5b44df['replace'](/url\(#(.*)\)/,_0x2a210e(0x335)+_0x4badb9[_0x2a210e(0x20c)]+')'));});const {defIds:_0x13fef1}=_0x4badb9;return!_0x13fef1||_0x13fef1['length']===0x0||(_0x29f5f8['tag']===_0xd6ad8f(0x33f)&&_0x80ef91['xlink:href']&&(_0x80ef91[_0xd6ad8f(0x2a1)]=_0x80ef91[_0xd6ad8f(0x2a1)]+_0x4badb9[_0xd6ad8f(0x20c)]),Object[_0xd6ad8f(0x216)](_0x80ef91)[_0xd6ad8f(0x31d)](([_0x484b0d,_0x7fb1f])=>{const _0x4e1bb1=_0xd6ad8f;typeof _0x7fb1f==_0x4e1bb1(0x215)&&(_0x80ef91[_0x484b0d]=_0x7fb1f[_0x4e1bb1(0x2e5)](/url\(#(.*)\)/,_0x4e1bb1(0x335)+_0x4badb9[_0x4e1bb1(0x20c)]+')'));})),_0x80ef91;}function _0x264fe3(_0x19bf49,_0x79ebd6){const _0x1d711e=_0x14c7a4;var _0x2c8124;const {defIds:_0x5091d0}=_0x79ebd6;return!_0x5091d0||_0x5091d0[_0x1d711e(0x1fe)]===0x0?_0x19bf49:_0x19bf49['tag']===_0x1d711e(0x25b)&&((_0x2c8124=_0x19bf49[_0x1d711e(0x1d1)])!=null&&_0x2c8124[_0x1d711e(0x1fe)])?{..._0x19bf49,'children':_0x19bf49[_0x1d711e(0x1d1)]['map'](_0xc19e41=>typeof _0xc19e41['attrs']['id']=='string'&&_0x5091d0&&_0x5091d0[_0x1d711e(0x218)](_0xc19e41[_0x1d711e(0x21e)]['id'])?{..._0xc19e41,'attrs':{..._0xc19e41[_0x1d711e(0x21e)],'id':_0xc19e41[_0x1d711e(0x21e)]['id']+_0x79ebd6['idSuffix']}}:_0xc19e41)}:_0x19bf49;}function _0x363e5e(){const _0x3febda=_0x14c7a4;return Math['random']()[_0x3febda(0x2c6)](0x24)['substring'](0x2,0x8);}_0x3c0d3d[_0x14c7a4(0x28c)]=_0x14c7a4(0x2c9);const _0xc31e0d={'tag':'svg','attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':_0x14c7a4(0x24b),'width':_0x14c7a4(0x273),'height':_0x14c7a4(0x273)},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':'currentColor','d':_0x14c7a4(0x1b8),'fillRule':_0x14c7a4(0x1b3),'clipRule':_0x14c7a4(0x1b3)}}]},_0x31dc32=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x3461b3,_0x2cc66d){const _0x1fcb51=_0x14c7a4;return _0x3fb8df['createElement'](_0x3c0d3d,Object[_0x1fcb51(0x242)]({},_0x3461b3,{'id':'check-mark-icon','ref':_0x2cc66d,'icon':_0xc31e0d}));});_0x31dc32['displayName']='CheckMarkIcon';const _0x4ff299={'tag':_0x14c7a4(0x1d3),'attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':'0\x200\x2016\x2016','width':_0x14c7a4(0x273),'height':_0x14c7a4(0x273)},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':_0x14c7a4(0x1df),'d':_0x14c7a4(0x1fd)}}]},_0x29d120=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x159719,_0x15008e){const _0x24afcb=_0x14c7a4;return _0x3fb8df[_0x24afcb(0x29a)](_0x3c0d3d,Object[_0x24afcb(0x242)]({},_0x159719,{'id':_0x24afcb(0x1dd),'ref':_0x15008e,'icon':_0x4ff299}));});_0x29d120[_0x14c7a4(0x28c)]=_0x14c7a4(0x287);const _0x523e2f={'tag':_0x14c7a4(0x1d3),'attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':'currentColor','d':_0x14c7a4(0x2b0)}},{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':_0x14c7a4(0x1df),'d':_0x14c7a4(0x263)}},{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':'currentColor','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':_0x14c7a4(0x1b3)}}]},_0x585361=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x1878e7,_0x5187ae){const _0x314fd9=_0x14c7a4;return _0x3fb8df[_0x314fd9(0x29a)](_0x3c0d3d,Object[_0x314fd9(0x242)]({},_0x1878e7,{'id':_0x314fd9(0x2e6),'ref':_0x5187ae,'icon':_0x523e2f}));});_0x585361[_0x14c7a4(0x28c)]=_0x14c7a4(0x2ab);const _0x49ad58={'tag':'svg','attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':'none','viewBox':_0x14c7a4(0x24b),'width':_0x14c7a4(0x273),'height':_0x14c7a4(0x273)},'children':[{'tag':'g','attrs':{'clipPath':_0x14c7a4(0x2e4)},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x14c7a4(0x257),'strokeLinejoin':_0x14c7a4(0x257),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x14c7a4(0x300),'attrs':{'id':_0x14c7a4(0x299)},'children':[{'tag':'path','attrs':{'fill':_0x14c7a4(0x20d),'d':_0x14c7a4(0x305)}}]}]}],'defIds':[_0x14c7a4(0x299)]},_0x363dd5=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x30923e,_0x33eff3){const _0x587c78=_0x14c7a4;return _0x3fb8df[_0x587c78(0x29a)](_0x3c0d3d,Object['assign']({},_0x30923e,{'id':'off-line-icon','ref':_0x33eff3,'icon':_0x49ad58}));});_0x363dd5['displayName']=_0x14c7a4(0x1c7);const _0x209fe0={'tag':_0x14c7a4(0x1d3),'attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':'0\x200\x2017\x2016','width':_0x14c7a4(0x273),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x14c7a4(0x1c3)},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x14c7a4(0x257),'strokeWidth':1.2}}]},{'tag':_0x14c7a4(0x25b),'attrs':{},'children':[{'tag':_0x14c7a4(0x300),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x14c7a4(0x305),'transform':_0x14c7a4(0x23b)}}]}]}],'defIds':[_0x14c7a4(0x339)]},_0x136870=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x385b52,_0x5097e1){const _0x118f82=_0x14c7a4;return _0x3fb8df[_0x118f82(0x29a)](_0x3c0d3d,Object['assign']({},_0x385b52,{'id':_0x118f82(0x1e2),'ref':_0x5097e1,'icon':_0x209fe0}));});_0x136870[_0x14c7a4(0x28c)]=_0x14c7a4(0x1d9);function _0x52a822(_0x183598){const _0xef5ba9=_0x14c7a4;var _0x1f00bd,_0x4706c2;const {mcpCoreConfig:_0x423472,onSave:_0x43a88c,loading:_0x27a5c8=!0x1,config:_0x5a2fdb,connectionStatus$:_0x58e6ac,connectionError$:_0x59c452,currentApiKey$:_0x3d18cc,currentSessionId$:_0x442978}=_0x183598,_0x299f6a=_0x3c9fd4[_0xef5ba9(0x2cd)](_0x4eec7b[_0xef5ba9(0x2b3)]),_0x424d0c=_0x3c9fd4[_0xef5ba9(0x271)](_0x58e6ac,_0x59ea95[_0xef5ba9(0x233)][_0xef5ba9(0x219)]),_0x540e57=_0x3c9fd4[_0xef5ba9(0x271)](_0x59c452,_0x59ea95[_0xef5ba9(0x202)][_0xef5ba9(0x2a9)]),_0x436d60=_0x3c9fd4[_0xef5ba9(0x271)](_0x442978,''),_0x434bfc=_0x3c9fd4[_0xef5ba9(0x271)](_0x3d18cc,''),[_0x481281,_0x4cf9c3]=_0x3fb8df[_0xef5ba9(0x2ad)](_0x434bfc||''),_0x330169=!0x0,_0xa7f6d6=_0x5a2fdb[_0xef5ba9(0x32d)]&&_0x423472[_0xef5ba9(0x21f)]&&(_0x423472[_0xef5ba9(0x21f)][_0xef5ba9(0x218)](_0xef5ba9(0x31c))||_0x423472[_0xef5ba9(0x21f)][_0xef5ba9(0x218)](_0xef5ba9(0x2e9))),_0x2f2c98=(_0x1f00bd=_0x423472[_0xef5ba9(0x21f)])==null?void 0x0:_0x1f00bd[_0xef5ba9(0x218)](_0xef5ba9(0x31c)),_0x3b597f=(_0x4706c2=_0x423472['mcpServerUrl'])==null?void 0x0:_0x4706c2[_0xef5ba9(0x218)]('univer.ai'),_0x459ed3=_0x2f2c98?_0xef5ba9(0x25a):_0xef5ba9(0x254),_0x3997a9=_0x5a2fdb[_0xef5ba9(0x32d)]&&(_0x2f2c98||_0x3b597f),[_0x2802c8,_0x5987a5]=_0x3fb8df['useState'](!_0x481281['trim']()),_0x116042=(_0x3b86cb,_0x22a597)=>{const _0x38e1db=_0xef5ba9;if(_0x22a597===_0x59ea95[_0x38e1db(0x202)][_0x38e1db(0x236)])return _0x38e1db(0x1d0);switch(_0x3b86cb){case _0x59ea95[_0x38e1db(0x233)][_0x38e1db(0x262)]:return _0x38e1db(0x240);case _0x59ea95[_0x38e1db(0x233)][_0x38e1db(0x281)]:case _0x59ea95[_0x38e1db(0x233)][_0x38e1db(0x2e2)]:return _0x38e1db(0x239);case _0x59ea95[_0x38e1db(0x233)]['FAILED']:return _0x38e1db(0x1d0);default:return _0x38e1db(0x1e8);}},_0x2b2995=(_0x346a12,_0x3b6ad2)=>{const _0x29875d=_0xef5ba9;if(_0x3b6ad2===_0x59ea95[_0x29875d(0x202)]['UNAUTHORIZED'])return _0x29875d(0x312);switch(_0x346a12){case _0x59ea95[_0x29875d(0x233)][_0x29875d(0x262)]:return _0x29875d(0x249);case _0x59ea95[_0x29875d(0x233)]['CONNECTING']:case _0x59ea95[_0x29875d(0x233)][_0x29875d(0x2e2)]:return _0x29875d(0x2fd);case _0x59ea95[_0x29875d(0x233)]['FAILED']:return _0x29875d(0x312);default:return _0x29875d(0x295);}},_0x4e9253=_0x5e1659=>{const _0x1b6f04=_0xef5ba9;switch(_0x5e1659){case _0x59ea95['MCPConnectionStatus'][_0x1b6f04(0x262)]:return _0x299f6a['t'](_0x1b6f04(0x323));case _0x59ea95[_0x1b6f04(0x233)]['CONNECTING']:return _0x299f6a['t'](_0x1b6f04(0x30c));case _0x59ea95[_0x1b6f04(0x233)]['FAILED']:return _0x299f6a['t']('mcpConfig.connectionStatus.failed');case _0x59ea95[_0x1b6f04(0x233)]['RETRYING']:return _0x299f6a['t']('mcpConfig.connectionStatus.retrying');default:return _0x299f6a['t'](_0x1b6f04(0x26d));}},_0x206183=_0x5826d7=>{const _0x536784=_0xef5ba9;switch(_0x5826d7){case _0x59ea95['MCPConnectionError'][_0x536784(0x236)]:return _0x299f6a['t'](_0x536784(0x2fc));case _0x59ea95[_0x536784(0x202)][_0x536784(0x237)]:return _0x299f6a['t'](_0x536784(0x20f));case _0x59ea95['MCPConnectionError']['NETWORK_ERROR']:return _0x299f6a['t'](_0x536784(0x201));case _0x59ea95['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x299f6a['t'](_0x536784(0x225));default:return'';}},_0xd37d19=_0x3fb8df[_0xef5ba9(0x27e)](()=>{const _0x56a0dd={..._0x423472,'apiKey':_0x481281['trim'](),'enableAuth':_0x330169};_0x43a88c(_0x56a0dd);},[_0x423472,_0x481281,_0x330169,_0x43a88c]),_0x188b8c=_0x481281[_0xef5ba9(0x327)]()[_0xef5ba9(0x1fe)]>0x0;return _0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2d9),'children':_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x296),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2fa),'children':_0x4a7dcc['jsx'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x21b),'children':'⚙'})}),_0x4a7dcc[_0xef5ba9(0x33e)]('div',{'children':_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':_0xef5ba9(0x266),'children':_0x299f6a['t']('mcpConfig.description')})})]})}),_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'className':_0xef5ba9(0x223),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0x4b24c4['clsx'](_0xef5ba9(0x23a),_0x116042(_0x424d0c,_0x540e57)),'children':_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0x4b24c4['clsx'](_0xef5ba9(0x1c4),_0x2b2995(_0x424d0c,_0x540e57))}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x20b),'children':_0x4e9253(_0x424d0c)})]})}),_0x540e57!==_0x59ea95[_0xef5ba9(0x202)][_0xef5ba9(0x2a9)]&&(_0x424d0c===_0x59ea95[_0xef5ba9(0x233)][_0xef5ba9(0x221)]||_0x540e57===_0x59ea95[_0xef5ba9(0x202)][_0xef5ba9(0x236)])&&_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x333),'children':_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x4a7dcc['jsx']('span',{'className':_0xef5ba9(0x241),'children':'⚠️'}),_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':_0xef5ba9(0x213),'children':_0x206183(_0x540e57)})]})})]}),_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x318),'children':_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'className':_0xef5ba9(0x2d5),'children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-space-y-2','children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x1f8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'🔑'}),'\x20',_0x299f6a['t'](_0xef5ba9(0x2d7)),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x1e4),'children':'*'}),_0xa7f6d6&&_0x4a7dcc[_0xef5ba9(0x33e)]('a',{'className':_0xef5ba9(0x2db),'title':_0x299f6a['t'](_0xef5ba9(0x24e)),'role':_0xef5ba9(0x29d),'onClick':()=>_0x5987a5(!0x0),'children':_0x4a7dcc[_0xef5ba9(0x33e)](_0x585361,{})})]}),_0x4a7dcc[_0xef5ba9(0x33e)](_0x4b24c4[_0xef5ba9(0x2b8)],{'type':'text','placeholder':_0x299f6a['t'](_0xef5ba9(0x309)),'value':_0x481281,'disabled':_0x27a5c8,'autoComplete':_0xef5ba9(0x2e3),'onChange':_0x4cf9c3}),_0x4a7dcc['jsx']('p',{'className':_0xef5ba9(0x28e),'children':_0x299f6a['t'](_0xef5ba9(0x200))})]}),_0xa7f6d6&&_0x2802c8&&_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'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':[_0x4a7dcc[_0xef5ba9(0x33e)]('a',{'className':_0xef5ba9(0x2ed),'role':_0xef5ba9(0x29d),'onClick':()=>_0x5987a5(!0x1),'children':_0x4a7dcc[_0xef5ba9(0x33e)](_0x29d120,{'className':_0xef5ba9(0x1c0)})}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x277),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1c2),'children':_0x4a7dcc['jsx'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x28b),'children':'🚀'})}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2b7),'children':[_0x4a7dcc[_0xef5ba9(0x33e)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x299f6a['t'](_0xef5ba9(0x24e))}),_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':_0xef5ba9(0x325),'children':_0x299f6a['t']('mcpConfig.apiApplyInfo.description')}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x320),'children':_0x3997a9&&_0x4a7dcc[_0xef5ba9(0x1f7)]('a',{'className':_0xef5ba9(0x1f0),'href':_0x459ed3,'target':'_blank','rel':_0xef5ba9(0x31f),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'🤖'}),_0x299f6a['t'](_0xef5ba9(0x29e)),_0x4a7dcc[_0xef5ba9(0x33e)]('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x26f),'children':['✨','\x20',_0x299f6a['t'](_0xef5ba9(0x310))]})]})]})]}),_0x5a2fdb['showDeveloperTools']&&_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x4a7dcc['jsxs']('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'🔗'}),'\x20',_0x299f6a['t']('mcpConfig.connectionInfo')]}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1da),'children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x27c),'children':[_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x299f6a['t']('mcpConfig.configInstructions')}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-space-y-2','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x24f),'children':_0x299f6a['t'](_0xef5ba9(0x23c))}),_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'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'}),_0x299f6a['t'](_0xef5ba9(0x2bb))]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc['jsx'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x24a),'children':'2'}),_0x299f6a['t'](_0xef5ba9(0x280))]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x24a),'children':'3'}),_0x299f6a['t']('mcpConfig.configStep3')]})]})]})]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-space-y-2','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xef5ba9(0x321)}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x4a7dcc[_0xef5ba9(0x33e)]('pre',{'className':_0xef5ba9(0x244),'children':JSON[_0xef5ba9(0x1ce)]({'mcpServers':{'univer':{'url':_0xef5ba9(0x2c5)+(_0x436d60||_0xef5ba9(0x307)),'type':_0xef5ba9(0x31e),'headers':{'Authorization':_0xef5ba9(0x1c6)+(_0x481281||_0xef5ba9(0x322))}}}},null,0x2)})})]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x27c),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x24f),'children':_0x299f6a['t'](_0xef5ba9(0x1f1))}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x235),'children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1d5),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1b5)}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2d8),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xef5ba9(0x1d8)}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x299f6a['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1d5),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1b5)}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2d8),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x267),'children':_0xef5ba9(0x30d)}),_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x28e),'children':_0x299f6a['t'](_0xef5ba9(0x33c))})]})]})]})]})]})]}),_0x4a7dcc['jsx'](_0x4b24c4[_0xef5ba9(0x2d4)],{'onClick':_0xd37d19,'disabled':!_0x188b8c||_0x27a5c8,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x27a5c8?_0x4a7dcc['jsxs'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'⟲'}),_0x299f6a['t'](_0xef5ba9(0x2ae))]}):_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0x31dc32,{}),_0x299f6a['t'](_0xef5ba9(0x1ea))]})}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2b1),'children':_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2aa),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x23d),'children':'💡'}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1b9),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-font-medium','children':_0xef5ba9(0x1f2)}),_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'children':['•',_0x299f6a['t'](_0xef5ba9(0x1ba))]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'children':['•',_0x299f6a['t'](_0xef5ba9(0x229))]})]})]})})]})})]});}const _0x284dd3=_0x14c7a4(0x2a4),_0x430cf5={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x38515c=Object[_0x14c7a4(0x32f)],_0x2446ee=(_0x891329,_0x38b66d,_0x721b50,_0x4137ad)=>{for(var _0x33a0a0=_0x4137ad>0x1?void 0x0:_0x4137ad?_0x38515c(_0x38b66d,_0x721b50):_0x38b66d,_0x1a75fc=_0x891329['length']-0x1,_0x458c22;_0x1a75fc>=0x0;_0x1a75fc--)(_0x458c22=_0x891329[_0x1a75fc])&&(_0x33a0a0=_0x458c22(_0x33a0a0)||_0x33a0a0);return _0x33a0a0;},_0x296c44=(_0x3e8cc8,_0x146176)=>(_0x3c4bd5,_0x2a7aa6)=>_0x146176(_0x3c4bd5,_0x2a7aa6,_0x3e8cc8);const _0x4b708d=_0x14c7a4(0x1ee),_0x349c8b=_0x14c7a4(0x2be);_0x50df75[_0x14c7a4(0x2b4)]=class extends _0x4eec7b[_0x14c7a4(0x31b)]{constructor(_0x5e1191,_0x8cc591,_0x115789,_0x37f8a0,_0x457275,_0x2cd635,_0x5202d1,_0x6f506,_0x2ca523,_0x17bf4a){const _0x292540=_0x14c7a4;super(),_0x1e2ad9(this,_0x292540(0x246),new _0x384b81[(_0x292540(0x334))](!0x1)),_0x1e2ad9(this,'_mcpCoreConfig$',new _0x384b81['BehaviorSubject']({})),_0x1e2ad9(this,_0x292540(0x1c1),new _0x384b81[(_0x292540(0x334))]({})),_0x1e2ad9(this,_0x292540(0x24d),new _0x384b81[(_0x292540(0x334))]('')),_0x1e2ad9(this,_0x292540(0x2e0),async _0x47ae10=>{const _0x1e2131=_0x292540;var _0x50a0f3,_0x562d65;this[_0x1e2131(0x246)]['next'](!0x0);try{const _0x2a62e9=await this['_validateConfig'](_0x47ae10);if(!_0x2a62e9[_0x1e2131(0x248)]){this[_0x1e2131(0x330)][_0x1e2131(0x2fb)]({'type':_0x4b24c4[_0x1e2131(0x243)][_0x1e2131(0x251)],'content':_0x2a62e9[_0x1e2131(0x1e6)]||this[_0x1e2131(0x2f8)]['t'](_0x1e2131(0x2e7))});return;}_0x47ae10[_0x1e2131(0x2dc)]?await this[_0x1e2131(0x1fa)][_0x1e2131(0x1b4)](_0x4b708d,_0x47ae10[_0x1e2131(0x2dc)][_0x1e2131(0x327)]()):await this[_0x1e2131(0x1fa)]['removeItem'](_0x4b708d),this[_0x1e2131(0x24d)][_0x1e2131(0x2bd)](((_0x50a0f3=_0x47ae10[_0x1e2131(0x2dc)])==null?void 0x0:_0x50a0f3[_0x1e2131(0x327)]())||''),this[_0x1e2131(0x290)][_0x1e2131(0x30f)]({'Authorization':_0x1e2131(0x1c6)+((_0x562d65=_0x47ae10[_0x1e2131(0x2dc)])==null?void 0x0:_0x562d65[_0x1e2131(0x327)]())}),this[_0x1e2131(0x330)][_0x1e2131(0x2fb)]({'type':_0x4b24c4[_0x1e2131(0x243)][_0x1e2131(0x317)],'content':this[_0x1e2131(0x2f8)]['t'](_0x1e2131(0x1f9))}),setTimeout(()=>{const _0x2ee132=_0x1e2131;this['_dialogService'][_0x2ee132(0x224)](_0x349c8b);},0x320);}catch(_0x5b3d56){this[_0x1e2131(0x1cb)][_0x1e2131(0x1ff)](_0x1e2131(0x1c8),_0x5b3d56),this[_0x1e2131(0x330)][_0x1e2131(0x2fb)]({'type':_0x4b24c4[_0x1e2131(0x243)][_0x1e2131(0x251)],'content':this['_localeService']['t'](_0x1e2131(0x27a))});}finally{this[_0x1e2131(0x246)]['next'](!0x1);}}),(this['_injector']=_0x5e1191,this[_0x292540(0x326)]=_0x8cc591,this['_configService']=_0x115789,this[_0x292540(0x1fa)]=_0x37f8a0,this[_0x292540(0x2a7)]=_0x457275,this['_messageService']=_0x2cd635,this[_0x292540(0x232)]=_0x5202d1,this[_0x292540(0x2f8)]=_0x6f506,this['_logService']=_0x2ca523,this['_mcpConnectionController']=_0x17bf4a,this['_initConfigSync'](),this[_0x292540(0x337)](),this[_0x292540(0x2a3)]());}[_0x14c7a4(0x1ca)](){const _0x513ae3=_0x14c7a4,_0x47d6e8=this[_0x513ae3(0x264)][_0x513ae3(0x25e)](_0x284dd3);_0x47d6e8!=null&&_0x47d6e8['showDeveloperTools']&&this[_0x513ae3(0x2a7)][_0x513ae3(0x2d2)]({'id':_0x349c8b,'title':{'title':this[_0x513ae3(0x2f8)]['t'](_0x513ae3(0x208))},'children':{'label':_0x513ae3(0x32e)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4d64c7=_0x513ae3;this[_0x4d64c7(0x2a7)]['close'](_0x349c8b);}});}[_0x14c7a4(0x2ca)](){const _0x183d02=_0x14c7a4;return this[_0x183d02(0x2ef)][_0x183d02(0x2a6)];}[_0x14c7a4(0x2a3)](){const _0x335cd9=_0x14c7a4;this[_0x335cd9(0x2da)](this[_0x335cd9(0x232)]['register']('MCPConfigPanel',this[_0x335cd9(0x28a)]()));}[_0x14c7a4(0x28a)](){const _0xf5bfa3=_0x14c7a4;return _0x3c9fd4[_0xf5bfa3(0x28f)](()=>{const _0x6c374c=_0xf5bfa3;var _0x45019a,_0x5898f4,_0x1febde;return _0x4a7dcc['jsx'](_0x52a822,{'config':this[_0x6c374c(0x1c1)][_0x6c374c(0x2a6)],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'currentApiKey$':this[_0x6c374c(0x24d)],'onSave':this[_0x6c374c(0x2e0)],'loading':this[_0x6c374c(0x246)][_0x6c374c(0x2a6)],'connectionStatus$':(_0x45019a=this[_0x6c374c(0x290)])==null?void 0x0:_0x45019a['connectionStatus$'],'connectionError$':(_0x5898f4=this['_mcpConnectionController'])==null?void 0x0:_0x5898f4['connectionError$'],'currentSessionId$':(_0x1febde=this[_0x6c374c(0x290)])==null?void 0x0:_0x1febde['sessionId$']});},this[_0xf5bfa3(0x1bb)]);}['_initConfigSync'](){const _0x487f7f=_0x14c7a4;this[_0x487f7f(0x2da)](this[_0x487f7f(0x264)][_0x487f7f(0x2de)](_0x59ea95[_0x487f7f(0x2f1)])['subscribe'](_0x5e57a7=>{const _0x3b116c=_0x487f7f;this['_mcpCoreConfig$'][_0x3b116c(0x2bd)](_0x5e57a7||{});}));const _0x29bd13=this['_configService'][_0x487f7f(0x25e)](_0x59ea95['MCP_PLUGIN_CONFIG_KEY']);this[_0x487f7f(0x2ef)][_0x487f7f(0x2bd)](_0x29bd13||{}),this[_0x487f7f(0x2da)](this[_0x487f7f(0x264)][_0x487f7f(0x2de)](_0x284dd3)[_0x487f7f(0x26c)](_0x4dbb0d=>{const _0x331bc1=_0x487f7f;this[_0x331bc1(0x1c1)]['next'](_0x4dbb0d||{});}));const _0x33e933=this[_0x487f7f(0x264)][_0x487f7f(0x25e)](_0x284dd3);this[_0x487f7f(0x1c1)]['next'](_0x33e933||{});}async[_0x14c7a4(0x337)](){const _0x1b9d78=_0x14c7a4,_0x4839a8=this[_0x1b9d78(0x264)][_0x1b9d78(0x25e)](_0x284dd3);if(!(_0x4839a8!=null&&_0x4839a8[_0x1b9d78(0x32d)]))return;const _0x161698=await this[_0x1b9d78(0x1fa)]['getItem'](_0x4b708d);_0x161698&&(this[_0x1b9d78(0x290)]['__setCustomHeaders']({'Authorization':_0x1b9d78(0x1c6)+_0x161698}),this[_0x1b9d78(0x24d)][_0x1b9d78(0x2bd)](_0x161698));}async[_0x14c7a4(0x29b)](_0x25f6a4){const _0x17f899=_0x14c7a4;if(!_0x25f6a4['apiKey']||_0x25f6a4[_0x17f899(0x2dc)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x17f899(0x2f8)]['t'](_0x17f899(0x20a))};if(_0x25f6a4['apiKey']['trim']()[_0x17f899(0x1fe)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x17f899(0x2f8)]['t'](_0x17f899(0x2a5))};try{const _0x3fcec6=await this[_0x17f899(0x1bb)][_0x17f899(0x283)](_0x59ea95[_0x17f899(0x306)])['validateApiKey'](_0x25f6a4[_0x17f899(0x2dc)][_0x17f899(0x327)]());return _0x3fcec6['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3fcec6[_0x17f899(0x1ff)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x2c7556){return console[_0x17f899(0x217)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2c7556),{'isValid':!0x0};}}},_0x50df75[_0x14c7a4(0x2b4)]=_0x2446ee([_0x296c44(0x0,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b[_0x14c7a4(0x314)])),_0x296c44(0x1,_0x3c9fd4[_0x14c7a4(0x2a2)]),_0x296c44(0x2,_0x4eec7b[_0x14c7a4(0x203)]),_0x296c44(0x3,_0x4eec7b['ILocalStorageService']),_0x296c44(0x4,_0x3c9fd4[_0x14c7a4(0x22b)]),_0x296c44(0x5,_0x3c9fd4[_0x14c7a4(0x21d)]),_0x296c44(0x6,_0x4eec7b['Inject'](_0x3c9fd4[_0x14c7a4(0x2c7)])),_0x296c44(0x7,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b['LocaleService'])),_0x296c44(0x8,_0x4eec7b[_0x14c7a4(0x2af)]),_0x296c44(0x9,_0x4eec7b[_0x14c7a4(0x259)](_0x59ea95['MCPConnectionController']))],_0x50df75[_0x14c7a4(0x2b4)]);const _0x1f010e={'id':_0x14c7a4(0x2df),'type':_0x4eec7b[_0x14c7a4(0x250)][_0x14c7a4(0x297)],'handler':async(_0x1f68cc,_0x4a2132)=>(_0x1f68cc['get'](_0x50df75[_0x14c7a4(0x2b4)])[_0x14c7a4(0x1ca)](),!0x0)};function _0x43b619(_0x4468b6,_0x23b36c){const _0x32118a=_0x14c7a4;switch(_0x4468b6){case _0x59ea95['MCPConnectionStatus']['DISCONNECTED']:return'mcpStatus.disconnected';case _0x59ea95['MCPConnectionStatus'][_0x32118a(0x281)]:return _0x32118a(0x2ce);case _0x59ea95[_0x32118a(0x233)]['CONNECTED']:return _0x32118a(0x2f3);case _0x59ea95['MCPConnectionStatus']['FAILED']:switch(_0x23b36c){case _0x59ea95[_0x32118a(0x202)][_0x32118a(0x236)]:return'mcpStatus.unauthorized';case _0x59ea95[_0x32118a(0x202)][_0x32118a(0x237)]:return _0x32118a(0x22e);case _0x59ea95['MCPConnectionError'][_0x32118a(0x2d1)]:return'mcpStatus.networkError';case _0x59ea95[_0x32118a(0x202)][_0x32118a(0x1ed)]:return'mcpStatus.maxRetriesExceeded';default:return _0x32118a(0x289);}case _0x59ea95['MCPConnectionStatus'][_0x32118a(0x2e2)]:return _0x32118a(0x2e1);default:return _0x32118a(0x272);}}function _0x3605ac(_0xdf4942,_0x527a4d,_0x29cf42,_0x51343c=!0x0){const _0x2d6c6d=_0x14c7a4,_0x59924b=_0x43b619(_0xdf4942,_0x527a4d),_0xb4f25e=_0x29cf42['t'](_0x59924b);return _0x51343c?_0xdf4942===_0x59ea95[_0x2d6c6d(0x233)][_0x2d6c6d(0x219)]&&_0x527a4d===_0x59ea95[_0x2d6c6d(0x202)]['UNAUTHORIZED']?_0xb4f25e+_0x2d6c6d(0x255)+_0x29cf42['t'](_0x2d6c6d(0x2fe)):_0xdf4942===_0x59ea95[_0x2d6c6d(0x233)][_0x2d6c6d(0x262)]?''+_0xb4f25e:_0xdf4942===_0x59ea95[_0x2d6c6d(0x233)][_0x2d6c6d(0x219)]||_0xdf4942===_0x59ea95['MCPConnectionStatus'][_0x2d6c6d(0x221)]?_0xb4f25e+_0x2d6c6d(0x255)+_0x29cf42['t']('mcpStatus.clickToConnect'):_0xb4f25e:_0xb4f25e;}function _0x14e64b(_0x4789dd){const _0x236df1=_0x14c7a4;switch(_0x4789dd){case _0x59ea95['MCPConnectionStatus']['CONNECTED']:return _0x236df1(0x2c4);case _0x59ea95[_0x236df1(0x233)][_0x236df1(0x281)]:case _0x59ea95[_0x236df1(0x233)]['RETRYING']:return _0x236df1(0x26a);case _0x59ea95[_0x236df1(0x233)][_0x236df1(0x221)]:case _0x59ea95[_0x236df1(0x233)][_0x236df1(0x219)]:return _0x236df1(0x1e4);default:return'univer-text-gray-500';}}function _0x36241c(_0x33361f){const _0x2cc306=_0x14c7a4,{status$:_0x5fd334,error$:_0x149ce4,onConfigure:_0x4d754d,showClickable:_0x1a85e1=!0x0}=_0x33361f,_0x1e2d1f=_0x3c9fd4[_0x2cc306(0x271)](_0x5fd334,_0x59ea95['MCPConnectionStatus'][_0x2cc306(0x219)]),_0x49955e=_0x3c9fd4[_0x2cc306(0x271)](_0x149ce4,_0x59ea95[_0x2cc306(0x202)][_0x2cc306(0x2a9)]),_0x3e3bef=_0x3c9fd4[_0x2cc306(0x2cd)](_0x4eec7b['LocaleService']),_0x21eebb=_0x1e2d1f===_0x59ea95[_0x2cc306(0x233)][_0x2cc306(0x262)];_0x1e2d1f===_0x59ea95[_0x2cc306(0x233)]['CONNECTING']||_0x59ea95[_0x2cc306(0x233)][_0x2cc306(0x2e2)];const _0x2ec174=_0x3e3bef['t'](_0x43b619(_0x1e2d1f,_0x49955e)),_0x51dbbc=_0x3605ac(_0x1e2d1f,_0x49955e,_0x3e3bef,_0x1a85e1),_0x4b57ab=_0x14e64b(_0x1e2d1f),_0x1c0052=_0x21eebb?_0x4a7dcc[_0x2cc306(0x33e)](_0x136870,{}):_0x4a7dcc['jsx'](_0x363dd5,{}),_0x2355b2=_0x3fb8df[_0x2cc306(0x27e)](()=>{_0x1a85e1&&_0x4d754d&&_0x4d754d();},[_0x1a85e1,_0x4d754d]);function _0x217aaa(){const _0x594e33=_0x2cc306;return _0x4a7dcc[_0x594e33(0x1f7)](_0x594e33(0x28d),{'className':_0x4b24c4[_0x594e33(0x1d2)]('univer-flex\x20univer-items-center',_0x1a85e1&&_0x4d754d&&_0x594e33(0x336)),'role':_0x594e33(0x29d),'onClick':_0x1a85e1&&_0x4d754d?_0x2355b2:void 0x0,'children':[_0x4a7dcc[_0x594e33(0x33e)](_0x594e33(0x28d),{'className':_0x4b24c4[_0x594e33(0x1d2)](_0x594e33(0x311),_0x4b57ab),'children':_0x1c0052}),_0x4a7dcc[_0x594e33(0x33e)](_0x594e33(0x28d),{'className':_0x594e33(0x2ea),'children':_0x2ec174})]});}return _0x4a7dcc[_0x2cc306(0x33e)](_0x4b24c4[_0x2cc306(0x268)],{'title':_0x51dbbc,'placement':_0x2cc306(0x2a0),'children':_0x217aaa()});}var _0x4dfe16=Object[_0x14c7a4(0x32f)],_0x1e0df7=(_0x3fae88,_0x5b4070,_0x626005,_0x14fd7e)=>{const _0x31eed2=_0x14c7a4;for(var _0x5942e7=_0x14fd7e>0x1?void 0x0:_0x14fd7e?_0x4dfe16(_0x5b4070,_0x626005):_0x5b4070,_0x38f10e=_0x3fae88[_0x31eed2(0x1fe)]-0x1,_0x2c2327;_0x38f10e>=0x0;_0x38f10e--)(_0x2c2327=_0x3fae88[_0x38f10e])&&(_0x5942e7=_0x2c2327(_0x5942e7)||_0x5942e7);return _0x5942e7;},_0x5c689e=(_0x17ca81,_0x293182)=>(_0xd94227,_0x566e6a)=>_0x293182(_0xd94227,_0x566e6a,_0x17ca81);_0x50df75['MCPConnectionUIController']=class extends _0x4eec7b[_0x14c7a4(0x31b)]{constructor(_0x32df7c,_0x597dd,_0x590300,_0xb0a08e){const _0x18c229=_0x14c7a4;super(),this[_0x18c229(0x1bb)]=_0x32df7c,this[_0x18c229(0x2b2)]=_0x597dd,this[_0x18c229(0x326)]=_0x590300,this[_0x18c229(0x264)]=_0xb0a08e,this['_initAutoConnect'](),this[_0x18c229(0x1cc)]();}[_0x14c7a4(0x291)](){const _0x291c7b=_0x14c7a4,_0x434f7f=this[_0x291c7b(0x264)][_0x291c7b(0x25e)](_0x284dd3);_0x434f7f!=null&&_0x434f7f['showDeveloperTools']&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x14c7a4(0x1cc)](){const _0x50259b=_0x14c7a4,_0x283377=this[_0x50259b(0x264)]['getConfig'](_0x284dd3);(_0x283377==null?void 0x0:_0x283377[_0x50259b(0x22a)])!==!0x1&&this[_0x50259b(0x2da)](this['_uiPartsService'][_0x50259b(0x245)](_0x3c9fd4[_0x50259b(0x2a8)][_0x50259b(0x2cf)],()=>{const _0x45f931=_0x50259b;var _0x17bf9e;return _0x3c9fd4[_0x45f931(0x28f)](_0x18e1bc({'status$':this['_connectionController'][_0x45f931(0x1b7)],'error$':this[_0x45f931(0x2b2)]['connectionError$'],'onConfigure':()=>this[_0x45f931(0x324)](),'showClickable':(_0x17bf9e=_0x283377==null?void 0x0:_0x283377['showDeveloperTools'])!=null?_0x17bf9e:!0x1}),this[_0x45f931(0x1bb)]);}));}[_0x14c7a4(0x324)](){const _0x5c1ce0=_0x14c7a4;this[_0x5c1ce0(0x1bb)][_0x5c1ce0(0x283)](_0x50df75[_0x5c1ce0(0x2b4)])[_0x5c1ce0(0x1ca)]();}},_0x50df75[_0x14c7a4(0x340)]=_0x1e0df7([_0x5c689e(0x0,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b[_0x14c7a4(0x314)])),_0x5c689e(0x1,_0x4eec7b[_0x14c7a4(0x259)](_0x59ea95[_0x14c7a4(0x306)])),_0x5c689e(0x2,_0x3c9fd4[_0x14c7a4(0x2a2)]),_0x5c689e(0x3,_0x4eec7b[_0x14c7a4(0x203)])],_0x50df75['MCPConnectionUIController']);function _0x18e1bc(_0x230251){const {status$:_0x40aaed,error$:_0x196581,onConfigure:_0x22311c,showClickable:_0x3fca09}=_0x230251;return function(){const _0x3d85b7=_0x1a7a;return _0x4a7dcc[_0x3d85b7(0x33e)](_0x36241c,{'status$':_0x40aaed,'error$':_0x196581,'onConfigure':_0x22311c,'showClickable':_0x3fca09});};}function _0x5792bd(_0x4e2ee2){const _0x2fa8f5=_0x14c7a4;return{'id':_0x1f010e['id'],'type':_0x3c9fd4[_0x2fa8f5(0x27d)]['BUTTON'],'icon':'MenuIcon','title':_0x2fa8f5(0x208),'tooltip':'mcpConfig.title'};}const _0x134756={[_0x3c9fd4[_0x14c7a4(0x258)][_0x14c7a4(0x1bc)]]:{[_0x1f010e['id']]:{'order':0xa,'menuItemFactory':_0x5792bd}}};var _0x1baacc=Object[_0x14c7a4(0x32f)],_0x2e97ed=(_0x1d08ee,_0xf274ef,_0x16b0ba,_0x8b27c4)=>{const _0x2ba5be=_0x14c7a4;for(var _0xa9dbb9=_0x8b27c4>0x1?void 0x0:_0x8b27c4?_0x1baacc(_0xf274ef,_0x16b0ba):_0xf274ef,_0x40a9b4=_0x1d08ee[_0x2ba5be(0x1fe)]-0x1,_0x5886c8;_0x40a9b4>=0x0;_0x40a9b4--)(_0x5886c8=_0x1d08ee[_0x40a9b4])&&(_0xa9dbb9=_0x5886c8(_0xa9dbb9)||_0xa9dbb9);return _0xa9dbb9;},_0x2cc469=(_0x3c1830,_0x4b491c)=>(_0x1bf45a,_0x3d4f7c)=>_0x4b491c(_0x1bf45a,_0x3d4f7c,_0x3c1830);_0x50df75[_0x14c7a4(0x21a)]=class extends _0x4eec7b['Disposable']{constructor(_0x572548,_0x11e092){const _0x3de157=_0x14c7a4;super(),this[_0x3de157(0x214)]=_0x572548,this[_0x3de157(0x30e)]=_0x11e092,this[_0x3de157(0x205)](),this['_initializeMenus']();}[_0x14c7a4(0x205)](){const _0x22aa60=_0x14c7a4;[_0x1f010e][_0x22aa60(0x31d)](_0x5dd866=>{const _0x1bb600=_0x22aa60;this[_0x1bb600(0x2da)](this['_commandService'][_0x1bb600(0x274)](_0x5dd866));});}[_0x14c7a4(0x1d6)](){this['_menuManagerService']['mergeMenu'](_0x134756);}},_0x50df75['MCPUIMenuController']=_0x2e97ed([_0x2cc469(0x0,_0x4eec7b[_0x14c7a4(0x302)]),_0x2cc469(0x1,_0x3c9fd4[_0x14c7a4(0x2b6)])],_0x50df75[_0x14c7a4(0x21a)]);const _0x3ab36b={'mcpStatus':{'disconnected':_0x14c7a4(0x2ba),'connecting':'MCP\x20Connecting...','connected':_0x14c7a4(0x1e7),'failed':_0x14c7a4(0x247),'retrying':_0x14c7a4(0x329),'unknown':_0x14c7a4(0x332),'unauthorized':_0x14c7a4(0x2c0),'sessionOccupied':_0x14c7a4(0x29f),'networkError':_0x14c7a4(0x1cf),'maxRetriesExceeded':_0x14c7a4(0x30a),'clickToConnect':_0x14c7a4(0x1b6),'clickToConfigure':_0x14c7a4(0x2eb)},'mcpConfig':{'title':_0x14c7a4(0x321),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x14c7a4(0x210),'apiKeyPlaceholder':_0x14c7a4(0x270),'apiKeyHint':_0x14c7a4(0x316),'enableAuth':_0x14c7a4(0x25c),'enableAuthHint':_0x14c7a4(0x1bf),'connectionInfo':_0x14c7a4(0x308),'mcpClientConfig':_0x14c7a4(0x308),'configInstructions':_0x14c7a4(0x2d0),'configStepTitle':_0x14c7a4(0x2ec),'configStep1':_0x14c7a4(0x313),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x14c7a4(0x1f5),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x14c7a4(0x2c1),'save':_0x14c7a4(0x206),'saving':_0x14c7a4(0x1eb),'note1':_0x14c7a4(0x2d6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x14c7a4(0x32c),'configError':_0x14c7a4(0x1e9),'apiApplyInfo':{'title':_0x14c7a4(0x2ff),'description':_0x14c7a4(0x231),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x14c7a4(0x26e)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x14c7a4(0x2f2),'invalidConfig':_0x14c7a4(0x301),'invalidApiKey':_0x14c7a4(0x27b)},'connectionStatus':{'disconnected':_0x14c7a4(0x22f),'connecting':_0x14c7a4(0x32a),'connected':_0x14c7a4(0x1dc),'failed':_0x14c7a4(0x328),'retrying':_0x14c7a4(0x29c)},'connectionError':{'unauthorized':_0x14c7a4(0x33b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x14c7a4(0x2c3),'maxRetriesExceeded':_0x14c7a4(0x2f9)}}},_0x9e8b4d={'mcpStatus':{'disconnected':_0x14c7a4(0x26b),'connecting':_0x14c7a4(0x2bc),'connected':_0x14c7a4(0x228),'failed':'MCP\x20连接失败','retrying':_0x14c7a4(0x25d),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x14c7a4(0x1c9),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x14c7a4(0x211),'clickToConnect':_0x14c7a4(0x2cb),'clickToConfigure':_0x14c7a4(0x1f6)},'mcpConfig':{'title':_0x14c7a4(0x2d3),'description':_0x14c7a4(0x265),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x14c7a4(0x284),'apiKeyHint':_0x14c7a4(0x282),'enableAuth':_0x14c7a4(0x1fb),'enableAuthHint':_0x14c7a4(0x286),'connectionInfo':_0x14c7a4(0x230),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x14c7a4(0x1fc),'configStep1':_0x14c7a4(0x33d),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x14c7a4(0x226),'authorizationDescription':_0x14c7a4(0x1d7),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':'保存配置','saving':_0x14c7a4(0x252),'note1':_0x14c7a4(0x285),'note2':_0x14c7a4(0x23f),'configSaved':_0x14c7a4(0x2ee),'configError':_0x14c7a4(0x238),'apiApplyInfo':{'title':_0x14c7a4(0x294),'description':_0x14c7a4(0x331),'univerAiLabel':_0x14c7a4(0x338),'getStarted':_0x14c7a4(0x1bd)},'validation':{'apiKeyRequired':_0x14c7a4(0x30b),'apiKeyTooShort':_0x14c7a4(0x212),'invalidConfig':_0x14c7a4(0x278),'invalidApiKey':_0x14c7a4(0x269)},'connectionStatus':{'disconnected':_0x14c7a4(0x22d),'connecting':_0x14c7a4(0x32b),'connected':_0x14c7a4(0x292),'failed':_0x14c7a4(0x1f4),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x14c7a4(0x293),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x14c7a4(0x220)}}};var _0x865a5e=Object[_0x14c7a4(0x207)],_0x2cbbcc=Object[_0x14c7a4(0x32f)],_0x59fcb4=(_0x33b431,_0x4173a2,_0x2653c6)=>_0x4173a2 in _0x33b431?_0x865a5e(_0x33b431,_0x4173a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2653c6}):_0x33b431[_0x4173a2]=_0x2653c6,_0xaee567=(_0x25a585,_0x578cc3,_0x1b8025,_0x4a2ee9)=>{for(var _0x46111a=_0x4a2ee9>0x1?void 0x0:_0x4a2ee9?_0x2cbbcc(_0x578cc3,_0x1b8025):_0x578cc3,_0x66cd92=_0x25a585['length']-0x1,_0x57ecd8;_0x66cd92>=0x0;_0x66cd92--)(_0x57ecd8=_0x25a585[_0x66cd92])&&(_0x46111a=_0x57ecd8(_0x46111a)||_0x46111a);return _0x46111a;},_0x22842d=(_0x3c3e69,_0x1a4a53)=>(_0x2a0a53,_0x298de6)=>_0x1a4a53(_0x2a0a53,_0x298de6,_0x3c3e69),_0x2b42f6=(_0x242ce8,_0x4b76ac,_0x42a6b5)=>_0x59fcb4(_0x242ce8,_0x4b76ac+'',_0x42a6b5);_0x50df75[_0x14c7a4(0x1e3)]=class extends _0x4eec7b[_0x14c7a4(0x1ec)]{constructor(_0x3d24cc=_0x430cf5,_0x5ca3e2,_0x59a4f5,_0x4c6c85,_0x465b3b,_0x49a1ae){const _0x4a6049=_0x14c7a4;super(),this[_0x4a6049(0x33a)]=_0x3d24cc,this[_0x4a6049(0x1bb)]=_0x5ca3e2,this[_0x4a6049(0x264)]=_0x59a4f5,this[_0x4a6049(0x326)]=_0x4c6c85,this['_localStorageService']=_0x465b3b,this[_0x4a6049(0x2f8)]=_0x49a1ae;const {..._0x22ed91}=_0x4eec7b[_0x4a6049(0x315)]({},_0x430cf5,this[_0x4a6049(0x33a)]);this[_0x4a6049(0x264)][_0x4a6049(0x2f4)](_0x284dd3,_0x22ed91);}async[_0x14c7a4(0x2f5)](){const _0x5b3916=_0x14c7a4,_0x59e2bc=[[_0x50df75[_0x5b3916(0x340)]],[_0x50df75[_0x5b3916(0x2b4)]],[_0x50df75[_0x5b3916(0x21a)]]];this[_0x5b3916(0x1bb)]['has'](_0x6309e8[_0x5b3916(0x27f)])||_0x59e2bc[_0x5b3916(0x288)]([_0x6309e8['ISocketService'],{'useClass':_0x6309e8['WebSocketService']}]),_0x59e2bc[_0x5b3916(0x31d)](_0x3f9fda=>this[_0x5b3916(0x1bb)][_0x5b3916(0x227)](_0x3f9fda)),this[_0x5b3916(0x1bb)][_0x5b3916(0x283)](_0x50df75[_0x5b3916(0x340)]),this[_0x5b3916(0x1bb)][_0x5b3916(0x283)](_0x50df75['MCPConfigUIController']),this[_0x5b3916(0x1bb)][_0x5b3916(0x283)](_0x50df75[_0x5b3916(0x21a)]);}},_0x2b42f6(_0x50df75[_0x14c7a4(0x1e3)],'pluginName',_0x14c7a4(0x1d4)),_0x50df75[_0x14c7a4(0x1e3)]=_0xaee567([_0x4eec7b[_0x14c7a4(0x234)](_0x59ea95[_0x14c7a4(0x209)]),_0x22842d(0x1,_0x4eec7b['Inject'](_0x4eec7b[_0x14c7a4(0x314)])),_0x22842d(0x2,_0x4eec7b[_0x14c7a4(0x203)]),_0x22842d(0x3,_0x3c9fd4[_0x14c7a4(0x2a2)]),_0x22842d(0x4,_0x4eec7b[_0x14c7a4(0x20e)]),_0x22842d(0x5,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b[_0x14c7a4(0x2b3)]))],_0x50df75['UniverMCPUIPlugin']),_0x50df75[_0x14c7a4(0x32e)]=_0x52a822,_0x50df75[_0x14c7a4(0x2f7)]=_0x36241c,_0x50df75[_0x14c7a4(0x1cd)]=_0x1f010e,_0x50df75['enUS']=_0x3ab36b,_0x50df75[_0x14c7a4(0x25f)]=_0x9e8b4d,Object['defineProperty'](_0x50df75,Symbol['toStringTag'],{'value':_0x14c7a4(0x2f0)});}));
|