@univerjs-pro/mcp-ui 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2c5ecc=_0x5aaf;(function(_0x155ad9,_0x3ac94d){const _0x4a8621=_0x5aaf,_0x45c832=_0x155ad9();while(!![]){try{const _0x302b5e=-parseInt(_0x4a8621(0xa7))/0x1+parseInt(_0x4a8621(0x93))/0x2+parseInt(_0x4a8621(0x9b))/0x3*(parseInt(_0x4a8621(0x88))/0x4)+-parseInt(_0x4a8621(0xa5))/0x5+parseInt(_0x4a8621(0x90))/0x6+-parseInt(_0x4a8621(0xa3))/0x7+parseInt(_0x4a8621(0xb0))/0x8;if(_0x302b5e===_0x3ac94d)break;else _0x45c832['push'](_0x45c832['shift']());}catch(_0xf2ecaa){_0x45c832['push'](_0x45c832['shift']());}}}(_0x5f4b,0xabde3));const locale$1={'mcpStatus':{'disconnected':_0x2c5ecc(0xaa),'connecting':_0x2c5ecc(0xa8),'connected':_0x2c5ecc(0x94),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2c5ecc(0xa1),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2c5ecc(0xaf),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2c5ecc(0xa2),'clickToConnect':_0x2c5ecc(0x9f),'clickToConfigure':_0x2c5ecc(0x9a)},'mcpConfig':{'title':_0x2c5ecc(0xa6),'description':_0x2c5ecc(0xa9),'apiKey':_0x2c5ecc(0xa4),'apiKeyPlaceholder':_0x2c5ecc(0x9d),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2c5ecc(0x98),'enableAuthHint':_0x2c5ecc(0x8b),'connectionInfo':_0x2c5ecc(0xab),'mcpClientConfig':_0x2c5ecc(0xab),'configInstructions':_0x2c5ecc(0x92),'configStepTitle':_0x2c5ecc(0xae),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2c5ecc(0x99),'configStep3':_0x2c5ecc(0x86),'sessionId':_0x2c5ecc(0x96),'sessionIdDescription':_0x2c5ecc(0xa0),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x2c5ecc(0x85),'save':'Save\x20Configuration','saving':_0x2c5ecc(0x8c),'note1':_0x2c5ecc(0x8a),'note2':_0x2c5ecc(0x87),'configSaved':_0x2c5ecc(0x91),'configError':_0x2c5ecc(0x8d),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2c5ecc(0xac),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2c5ecc(0x9c),'apiKeyTooShort':_0x2c5ecc(0xad),'invalidConfig':_0x2c5ecc(0x9e),'invalidApiKey':_0x2c5ecc(0x89)},'connectionStatus':{'disconnected':_0x2c5ecc(0x97),'connecting':'Connecting...','connected':_0x2c5ecc(0x84),'failed':_0x2c5ecc(0x8e),'retrying':_0x2c5ecc(0x8f)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2c5ecc(0x95)}}},locale=locale$1;export{locale as default};function _0x5aaf(_0x178901,_0x57de9e){_0x178901=_0x178901-0x84;const _0x5f4bbc=_0x5f4b();let _0x5aaf3c=_0x5f4bbc[_0x178901];return _0x5aaf3c;}function _0x5f4b(){const _0x4552ea=['MCP:\x20Unauthorized','8180432LWOtSe','Connected','Max\x20Retries','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','4Rqowpe','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20authentication\x20for\x20secure\x20connections','Saving...','Failed\x20to\x20save\x20configuration','Connection\x20Failed','Retrying...','6145152kczUzv','Configuration\x20saved\x20successfully','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','172938JMYlPi','MCP\x20Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20ID','Disconnected','Enable\x20Authentication','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20configure\x20MCP','163794WUdjMW','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','Invalid\x20configuration','Click\x20to\x20connect\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','2820167bKDHhI','API\x20Key','6340CvWlth','MCP\x20Configuration','1079693GLzpfw','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected','MCP\x20Client\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Steps:'];_0x5f4b=function(){return _0x4552ea;};return _0x5f4b();}
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x372b(){const _0x2813ac=['Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','MCP:\x20Prekročený\x20počet\x20pokusov','MCP:\x20Sieťová\x20chyba','Odpojené','Pripojenie\x20MCP\x20zlyhalo','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','MCP\x20sa\x20pripája...','156cvcKjn','482517yMLvwx','API\x20kľúč','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','MCP\x20opakuje\x20pokus...','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Skúša\x20sa\x20znova...','Univer\x20AI\x20konzola','Čo\x20je\x20API\x20kľúč?','API\x20kľúč\x20je\x20povinný','68863qOqLKD','238xswkPw','MCP\x20odpojené','1018632fmdLRw','Konfigurácia\x20klienta\x20MCP','Pripojenie\x20zlyhalo','Pripája\x20sa...','Kliknite\x20na\x20konfiguráciu\x20MCP','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','43900CRNfDU','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','9EjwYWV','MCP:\x20Neautorizované','ID\x20relácie','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','79278LiiHIN','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','40450LJfMKf','MCP\x20neznámy\x20stav','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','MCP:\x20ID\x20relácie\x20je\x20obsadené','2481766rHXHkq','Ukladá\x20sa...','Zadajte\x20svoj\x20API\x20kľúč','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','Konfigurácia\x20MCP','Kliknite\x20na\x20pripojenie\x20MCP','API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','Maximálny\x20počet\x20pokusov','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','429voJJxc','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Uložiť\x20konfiguráciu','Konfigurácia\x20bola\x20úspešne\x20uložená'];_0x372b=function(){return _0x2813ac;};return _0x372b();}const _0x287570=_0x59f9;(function(_0x25230a,_0x31ddde){const _0xb96ff4=_0x59f9,_0x1f7c57=_0x25230a();while(!![]){try{const _0x5f4254=-parseInt(_0xb96ff4(0x1f2))/0x1+parseInt(_0xb96ff4(0x1d2))/0x2+-parseInt(_0xb96ff4(0x1e8))/0x3+parseInt(_0xb96ff4(0x1e7))/0x4*(-parseInt(_0xb96ff4(0x1cd))/0x5)+parseInt(_0xb96ff4(0x1cb))/0x6*(parseInt(_0xb96ff4(0x1f3))/0x7)+parseInt(_0xb96ff4(0x1bf))/0x8*(-parseInt(_0xb96ff4(0x1c7))/0x9)+-parseInt(_0xb96ff4(0x1c5))/0xa*(parseInt(_0xb96ff4(0x1db))/0xb);if(_0x5f4254===_0x31ddde)break;else _0x1f7c57['push'](_0x1f7c57['shift']());}catch(_0x4e1609){_0x1f7c57['push'](_0x1f7c57['shift']());}}}(_0x372b,0xcea26));const locale={'mcpStatus':{'disconnected':_0x287570(0x1f4),'connecting':_0x287570(0x1e6),'connected':'MCP\x20pripojené','failed':_0x287570(0x1e3),'retrying':_0x287570(0x1eb),'unknown':_0x287570(0x1ce),'unauthorized':_0x287570(0x1c8),'sessionOccupied':_0x287570(0x1d1),'networkError':_0x287570(0x1e1),'maxRetriesExceeded':_0x287570(0x1e0),'clickToConnect':_0x287570(0x1d7),'clickToConfigure':_0x287570(0x1c3)},'mcpConfig':{'title':_0x287570(0x1d6),'description':_0x287570(0x1dc),'apiKey':_0x287570(0x1e9),'apiKeyPlaceholder':_0x287570(0x1d4),'apiKeyHint':'Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','enableAuth':'Povoliť\x20overenie','enableAuthHint':_0x287570(0x1cf),'connectionInfo':_0x287570(0x1c0),'mcpClientConfig':_0x287570(0x1c0),'configInstructions':_0x287570(0x1cc),'configStepTitle':'Kroky\x20konfigurácie:','configStep1':_0x287570(0x1ed),'configStep2':_0x287570(0x1ec),'configStep3':'Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','sessionId':_0x287570(0x1c9),'sessionIdDescription':_0x287570(0x1d5),'authorizationDescription':'API\x20kľúč\x20s\x20prefixom\x20Bearer.','configParameters':'Parametre\x20konfigurácie:','maxRetries':_0x287570(0x1d9),'save':_0x287570(0x1dd),'saving':_0x287570(0x1d3),'note1':_0x287570(0x1df),'note2':_0x287570(0x1e4),'configSaved':_0x287570(0x1de),'configError':_0x287570(0x1da),'apiApplyInfo':{'title':_0x287570(0x1f0),'description':_0x287570(0x1d8),'univerAiLabel':_0x287570(0x1ef),'getStarted':'Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd'},'validation':{'apiKeyRequired':_0x287570(0x1f1),'apiKeyTooShort':_0x287570(0x1c4),'invalidConfig':'Neplatná\x20konfigurácia','invalidApiKey':_0x287570(0x1ea)},'connectionStatus':{'disconnected':_0x287570(0x1e2),'connecting':_0x287570(0x1c2),'connected':'Pripojené','failed':_0x287570(0x1c1),'retrying':_0x287570(0x1ee)},'connectionError':{'unauthorized':_0x287570(0x1e5),'sessionOccupied':_0x287570(0x1c6),'networkError':_0x287570(0x1d0),'maxRetriesExceeded':_0x287570(0x1ca)}}};function _0x59f9(_0x3e0415,_0x304545){_0x3e0415=_0x3e0415-0x1bf;const _0x372ba5=_0x372b();let _0x59f9fb=_0x372ba5[_0x3e0415];return _0x59f9fb;}export{locale as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x156a(_0x417aaf,_0x556891){_0x417aaf=_0x417aaf-0xae;const _0x5ad9e4=_0x5ad9();let _0x156a26=_0x5ad9e4[_0x417aaf];return _0x156a26;}const _0x5bd314=_0x156a;(function(_0x16a0ba,_0x5f25ff){const _0x116623=_0x156a,_0x2018f1=_0x16a0ba();while(!![]){try{const _0x1cabf5=-parseInt(_0x116623(0xcf))/0x1*(-parseInt(_0x116623(0xb4))/0x2)+parseInt(_0x116623(0xcc))/0x3+parseInt(_0x116623(0xb7))/0x4+-parseInt(_0x116623(0xd4))/0x5+-parseInt(_0x116623(0xc3))/0x6*(parseInt(_0x116623(0xd7))/0x7)+-parseInt(_0x116623(0xc9))/0x8*(-parseInt(_0x116623(0xc0))/0x9)+-parseInt(_0x116623(0xbc))/0xa;if(_0x1cabf5===_0x5f25ff)break;else _0x2018f1['push'](_0x2018f1['shift']());}catch(_0x301185){_0x2018f1['push'](_0x2018f1['shift']());}}}(_0x5ad9,0x26857));function _0x5ad9(){const _0x198c2b=['Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','MCP\x20Đã\x20ngắt\x20kết\x20nối','710370mozSAm','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Đang\x20thử\x20lại...','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','9DYdPQG','Kết\x20nối\x20thất\x20bại','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','582XvxpHQ','Đang\x20lưu...','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Đị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.','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Nhập\x20khóa\x20API\x20của\x20bạn','1126696FvcJac','Yêu\x20cầu\x20khóa\x20API','MCP:\x20Lỗi\x20mạng','782241LMvASA','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','32774suYqbM','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','MCP\x20Đã\x20kết\x20nối','993265AfjBhH','Nhấp\x20để\x20kết\x20nối\x20MCP','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','8141gtlbJB','Cấu\x20hình\x20không\x20hợp\x20lệ','MCP\x20Đang\x20kết\x20nối...','Bật\x20xác\x20thực','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Lưu\x20cấu\x20hình','Các\x20bước\x20cấu\x20hình:','Lưu\x20cấu\x20hình\x20thất\x20bại','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','ID\x20phiên','Nhấp\x20để\x20cấu\x20hình\x20MCP','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','MCP\x20Đang\x20thử\x20lại...','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Khóa\x20API\x20là\x20gì?','Bảng\x20điều\x20khiển\x20Univer\x20AI','Số\x20lần\x20thử\x20lại\x20tối\x20đa','2vHMhVF','Cấu\x20hình\x20máy\x20khách\x20MCP','Đang\x20kết\x20nối...','423704YqfzPx','Đã\x20kết\x20nối'];_0x5ad9=function(){return _0x198c2b;};return _0x5ad9();}const locale={'mcpStatus':{'disconnected':_0x5bd314(0xbb),'connecting':_0x5bd314(0xd9),'connected':_0x5bd314(0xd3),'failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':_0x5bd314(0xaf),'unknown':'MCP\x20Trạng\x20thái\x20không\x20xác\x20định','unauthorized':'MCP:\x20Không\x20được\x20phép','sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x5bd314(0xcb),'maxRetriesExceeded':_0x5bd314(0xdf),'clickToConnect':_0x5bd314(0xd5),'clickToConfigure':_0x5bd314(0xe1)},'mcpConfig':{'title':'Cấu\x20hình\x20MCP','description':_0x5bd314(0xce),'apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x5bd314(0xc8),'apiKeyHint':_0x5bd314(0xd1),'enableAuth':_0x5bd314(0xda),'enableAuthHint':_0x5bd314(0xb9),'connectionInfo':_0x5bd314(0xb5),'mcpClientConfig':_0x5bd314(0xb5),'configInstructions':_0x5bd314(0xc7),'configStepTitle':_0x5bd314(0xdd),'configStep1':_0x5bd314(0xc2),'configStep2':'Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','configStep3':_0x5bd314(0xdb),'sessionId':_0x5bd314(0xe0),'sessionIdDescription':_0x5bd314(0xc6),'authorizationDescription':_0x5bd314(0xd6),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x5bd314(0xb3),'save':_0x5bd314(0xdc),'saving':_0x5bd314(0xc4),'note1':_0x5bd314(0xae),'note2':'Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','configSaved':_0x5bd314(0xb0),'configError':_0x5bd314(0xde),'apiApplyInfo':{'title':_0x5bd314(0xb1),'description':_0x5bd314(0xba),'univerAiLabel':_0x5bd314(0xb2),'getStarted':_0x5bd314(0xd2)},'validation':{'apiKeyRequired':_0x5bd314(0xca),'apiKeyTooShort':_0x5bd314(0xbf),'invalidConfig':_0x5bd314(0xd8),'invalidApiKey':_0x5bd314(0xcd)},'connectionStatus':{'disconnected':'Đã\x20ngắt\x20kết\x20nối','connecting':_0x5bd314(0xb6),'connected':_0x5bd314(0xb8),'failed':_0x5bd314(0xc1),'retrying':_0x5bd314(0xbe)},'connectionError':{'unauthorized':_0x5bd314(0xc5),'sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':_0x5bd314(0xd0),'maxRetriesExceeded':_0x5bd314(0xbd)}}};export{locale as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2b01af=_0x13ed;function _0x2956(){const _0x51a5f9=['会话ID','1011mBstYH','6663312aYykmB','配置\x20MCP\x20使用\x20AI\x20操作电子表格','4112MHQOey','MCP:\x20会话\x20ID\x20已被占用','启用身份验证以获得安全连接','复制以下\x20JSON\x20配置','1501507sbMPNJ','几秒钟内获取您的\x20API\x20密钥','保存中...','API\x20密钥无效,请检查密钥是否正确','MCP\x20连接失败','配置参数:','将配置添加到您的\x20MCP\x20客户端设置文件中','配置保存失败','配置保存成功','751545mjJDAE','MCP\x20客户端配置','MCP:\x20未授权','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20已断开','启用身份验证','MCP\x20重连中...','API\x20密钥','MCP\x20状态未知','54771vjJeaU','重启您的\x20MCP\x20客户端以使配置生效','MCP:\x20网络错误','API\x20密钥长度至少需要\x2010\x20位','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20已连接','配置无效','未连接','Univer\x20AI\x20控制台','已连接','连接失败','点击配置\x20MCP','API\x20密钥不能为空','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20连接中...','MCP:\x20超出最大重试次数','什么是\x20API\x20密钥?','最大重试次数','您的\x20API\x20密钥将在此浏览器中本地存储','380210oaysIL','16AMxhmH','2488968yBsbPp','带有\x20Bearer\x20前缀的\x20API\x20密钥。'];_0x2956=function(){return _0x51a5f9;};return _0x2956();}(function(_0x16bce2,_0x4f8cc4){const _0x53928c=_0x13ed,_0x1f2ba5=_0x16bce2();while(!![]){try{const _0x4566fa=parseInt(_0x53928c(0x1e2))/0x1+-parseInt(_0x53928c(0x1c4))/0x2+-parseInt(_0x53928c(0x1c9))/0x3*(-parseInt(_0x53928c(0x1cc))/0x4)+parseInt(_0x53928c(0x1d9))/0x5+-parseInt(_0x53928c(0x1c6))/0x6+parseInt(_0x53928c(0x1d0))/0x7*(-parseInt(_0x53928c(0x1c5))/0x8)+parseInt(_0x53928c(0x1ca))/0x9;if(_0x4566fa===_0x4f8cc4)break;else _0x1f2ba5['push'](_0x1f2ba5['shift']());}catch(_0x229952){_0x1f2ba5['push'](_0x1f2ba5['shift']());}}}(_0x2956,0x3ef9d));function _0x13ed(_0x1e44f1,_0x2471fb){_0x1e44f1=_0x1e44f1-0x1b4;const _0x295683=_0x2956();let _0x13ed25=_0x295683[_0x1e44f1];return _0x13ed25;}const locale={'mcpStatus':{'disconnected':_0x2b01af(0x1dd),'connecting':_0x2b01af(0x1bf),'connected':_0x2b01af(0x1b6),'failed':_0x2b01af(0x1d4),'retrying':_0x2b01af(0x1df),'unknown':_0x2b01af(0x1e1),'unauthorized':_0x2b01af(0x1db),'sessionOccupied':_0x2b01af(0x1cd),'networkError':_0x2b01af(0x1e4),'maxRetriesExceeded':_0x2b01af(0x1c0),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x2b01af(0x1bc)},'mcpConfig':{'title':'MCP\x20配置','description':_0x2b01af(0x1cb),'apiKey':_0x2b01af(0x1e0),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x2b01af(0x1c3),'enableAuth':_0x2b01af(0x1de),'enableAuthHint':_0x2b01af(0x1ce),'connectionInfo':_0x2b01af(0x1da),'mcpClientConfig':_0x2b01af(0x1da),'configInstructions':_0x2b01af(0x1b4),'configStepTitle':'配置步骤:','configStep1':_0x2b01af(0x1cf),'configStep2':_0x2b01af(0x1d6),'configStep3':_0x2b01af(0x1e3),'sessionId':_0x2b01af(0x1c8),'sessionIdDescription':_0x2b01af(0x1be),'authorizationDescription':_0x2b01af(0x1c7),'configParameters':_0x2b01af(0x1d5),'maxRetries':_0x2b01af(0x1c2),'save':'保存配置','saving':_0x2b01af(0x1d2),'note1':'配置更改将立即生效','note2':_0x2b01af(0x1dc),'configSaved':_0x2b01af(0x1d8),'configError':_0x2b01af(0x1d7),'apiApplyInfo':{'title':_0x2b01af(0x1c1),'description':_0x2b01af(0x1b5),'univerAiLabel':_0x2b01af(0x1b9),'getStarted':_0x2b01af(0x1d1)},'validation':{'apiKeyRequired':_0x2b01af(0x1bd),'apiKeyTooShort':_0x2b01af(0x1e5),'invalidConfig':_0x2b01af(0x1b7),'invalidApiKey':_0x2b01af(0x1d3)},'connectionStatus':{'disconnected':_0x2b01af(0x1b8),'connecting':'连接中...','connected':_0x2b01af(0x1ba),'failed':_0x2b01af(0x1bb),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};export{locale as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1c1f6c=_0xbc98;(function(_0x1b7c73,_0x484b10){const _0x5d442b=_0xbc98,_0x1f64b2=_0x1b7c73();while(!![]){try{const _0x106a98=parseInt(_0x5d442b(0xa8))/0x1*(parseInt(_0x5d442b(0xa7))/0x2)+parseInt(_0x5d442b(0xa3))/0x3+parseInt(_0x5d442b(0xa0))/0x4*(-parseInt(_0x5d442b(0xb5))/0x5)+-parseInt(_0x5d442b(0xa2))/0x6*(parseInt(_0x5d442b(0x97))/0x7)+-parseInt(_0x5d442b(0xaa))/0x8*(-parseInt(_0x5d442b(0xb8))/0x9)+parseInt(_0x5d442b(0xaf))/0xa*(-parseInt(_0x5d442b(0xb0))/0xb)+-parseInt(_0x5d442b(0x8b))/0xc*(-parseInt(_0x5d442b(0x8d))/0xd);if(_0x106a98===_0x484b10)break;else _0x1f64b2['push'](_0x1f64b2['shift']());}catch(_0x2cbac3){_0x1f64b2['push'](_0x1f64b2['shift']());}}}(_0x41bc,0xd2801));function _0xbc98(_0x30a5b9,_0x94c6e4){_0x30a5b9=_0x30a5b9-0x8a;const _0x41bcb5=_0x41bc();let _0xbc987a=_0x41bcb5[_0x30a5b9];return _0xbc987a;}function _0x41bc(){const _0x5149cb=['686670Svsnva','2841015UQKInr','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2ewFJHc','1134443uYWbQV','Configuration\x20Steps:','88QoZuEe','Univer\x20AI\x20Console','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Session\x20ID\x20Occupied','Session\x20ID','37880UvXINX','22WBfNat','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','5575610qmAAli','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','181341zobkBg','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','12LpaGxi','What\x20is\x20API\x20Key?','3302585hzHFpL','Connection\x20Failed','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connecting...','Configuration\x20saved\x20successfully','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Retrying...','35FHNTCm','MCP\x20Disconnected','Connected','MCP\x20Configuration','MCP\x20Client\x20Configuration','Invalid\x20configuration','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','4yrOSVP','Copy\x20the\x20JSON\x20configuration\x20below'];_0x41bc=function(){return _0x5149cb;};return _0x41bc();}const locale$1={'mcpStatus':{'disconnected':_0x1c1f6c(0x98),'connecting':_0x1c1f6c(0xb2),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1c1f6c(0xad),'networkError':_0x1c1f6c(0x9d),'maxRetriesExceeded':_0x1c1f6c(0xb3),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1c1f6c(0x8f)},'mcpConfig':{'title':_0x1c1f6c(0x9a),'description':_0x1c1f6c(0xba),'apiKey':_0x1c1f6c(0x9f),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1c1f6c(0xa5),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1c1f6c(0xb7),'connectionInfo':_0x1c1f6c(0x9b),'mcpClientConfig':_0x1c1f6c(0x9b),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1c1f6c(0xa9),'configStep1':_0x1c1f6c(0xa1),'configStep2':_0x1c1f6c(0x90),'configStep3':_0x1c1f6c(0x95),'sessionId':_0x1c1f6c(0xae),'sessionIdDescription':_0x1c1f6c(0xb9),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1c1f6c(0x93),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x1c1f6c(0xa6),'note2':_0x1c1f6c(0xb1),'configSaved':_0x1c1f6c(0x92),'configError':_0x1c1f6c(0x8a),'apiApplyInfo':{'title':_0x1c1f6c(0x8c),'description':_0x1c1f6c(0xb4),'univerAiLabel':_0x1c1f6c(0xab),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1c1f6c(0xb6),'invalidConfig':_0x1c1f6c(0x9c),'invalidApiKey':_0x1c1f6c(0xac)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1c1f6c(0x91),'connected':_0x1c1f6c(0x99),'failed':_0x1c1f6c(0x8e),'retrying':_0x1c1f6c(0x96)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1c1f6c(0xa4),'networkError':_0x1c1f6c(0x94),'maxRetriesExceeded':_0x1c1f6c(0x9e)}}},locale=locale$1;export{locale as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5d8a43,_0xf89787){const _0x49f6a6=_0x33a8,_0x593bb8=_0x5d8a43();while(!![]){try{const _0x4507f7=-parseInt(_0x49f6a6(0x343))/0x1*(-parseInt(_0x49f6a6(0x1d9))/0x2)+parseInt(_0x49f6a6(0x314))/0x3*(parseInt(_0x49f6a6(0x25f))/0x4)+parseInt(_0x49f6a6(0x1ff))/0x5*(parseInt(_0x49f6a6(0x336))/0x6)+-parseInt(_0x49f6a6(0x2e4))/0x7+-parseInt(_0x49f6a6(0x293))/0x8+parseInt(_0x49f6a6(0x269))/0x9+-parseInt(_0x49f6a6(0x2eb))/0xa;if(_0x4507f7===_0xf89787)break;else _0x593bb8['push'](_0x593bb8['shift']());}catch(_0x12a7f8){_0x593bb8['push'](_0x593bb8['shift']());}}}(_0x2090,0xb2cbe),function(_0x1afa3e,_0x1eccdd){const _0x131357=_0x33a8;typeof exports==_0x131357(0x2d9)&&typeof module<'u'?_0x1eccdd(exports,require(`@univerjs/core`),require(`@univerjs-pro/mcp`),require(`@univerjs/design`),require(`@univerjs/ui`),require(`rxjs`),require(`react`),require(`react/jsx-runtime`),require(`@univerjs/network`)):typeof define==_0x131357(0x2fe)&&define[_0x131357(0x27a)]?define([_0x131357(0x227),'@univerjs/core',_0x131357(0x308),_0x131357(0x29e),'@univerjs/ui',_0x131357(0x1dc),_0x131357(0x2c2),_0x131357(0x263),'@univerjs/network'],_0x1eccdd):(_0x1afa3e=typeof globalThis<'u'?globalThis:_0x1afa3e||self,_0x1eccdd(_0x1afa3e[_0x131357(0x30f)]={},_0x1afa3e[_0x131357(0x298)],_0x1afa3e['UniverProMcp'],_0x1afa3e[_0x131357(0x288)],_0x1afa3e[_0x131357(0x353)],_0x1afa3e[_0x131357(0x1dc)],_0x1afa3e[_0x131357(0x309)],_0x1afa3e[_0x131357(0x309)],_0x1afa3e[_0x131357(0x284)]));}(this,function(_0x1a3adc,_0x54dd9f,_0x1ff55d,_0x33ab7a,_0x1d4eae,_0x21aaa0,_0x329339,_0x25105e,_0x244de0){const _0x4599df=_0x33a8;Object[_0x4599df(0x1f6)](_0x1a3adc,Symbol[_0x4599df(0x23b)],{'value':'Module'});function _0x2a4bc7({ref:_0x5e9c29,..._0x3d12d8}){const _0x160309=_0x4599df;let {icon:_0x26e915,id:_0x50bcb2,className:_0x180390,extend:_0x3caf49,..._0x29e414}=_0x3d12d8,_0x55f8e8=('univerjs-icon\x20univerjs-icon-'+_0x50bcb2+'\x20'+(_0x180390||''))[_0x160309(0x32e)](),_0x4ce630=(0x0,_0x329339['useRef'])('_'+_0x3ca8d4());return _0x53f61c(_0x26e915,''+_0x50bcb2,{'defIds':_0x26e915['defIds'],'idSuffix':_0x4ce630['current']},{'ref':_0x5e9c29,'className':_0x55f8e8,..._0x29e414},_0x3caf49);}function _0x53f61c(_0x473c6d,_0x393b1a,_0x197951,_0x5cfade,_0x107098){const _0x7312b0=_0x4599df;return(0x0,_0x329339[_0x7312b0(0x2e1)])(_0x473c6d[_0x7312b0(0x1da)],{'key':_0x393b1a,..._0x9cb9a2(_0x473c6d,_0x197951,_0x107098),..._0x5cfade},(_0x473725(_0x473c6d,_0x197951)['children']||[])[_0x7312b0(0x2ab)]((_0x336422,_0x382ee8)=>_0x53f61c(_0x336422,_0x393b1a+'-'+_0x473c6d[_0x7312b0(0x1da)]+'-'+_0x382ee8,_0x197951,void 0x0,_0x107098)));}function _0x9cb9a2(_0x150cc1,_0x3f3041,_0x4629d2){const _0x3ec803=_0x4599df;let _0x2b3e6a={..._0x150cc1['attrs']};_0x4629d2!=null&&_0x4629d2[_0x3ec803(0x206)]&&_0x2b3e6a['fill']===_0x3ec803(0x206)&&(_0x2b3e6a[_0x3ec803(0x22f)]=_0x4629d2[_0x3ec803(0x206)]),_0x150cc1[_0x3ec803(0x1da)]==='mask'&&_0x2b3e6a['id']&&(_0x2b3e6a['id']+=_0x3f3041['idSuffix']),Object[_0x3ec803(0x254)](_0x2b3e6a)[_0x3ec803(0x2db)](([_0x2932b5,_0x2d33b5])=>{const _0x58d6ab=_0x3ec803;_0x2932b5===_0x58d6ab(0x1ca)&&typeof _0x2d33b5==_0x58d6ab(0x1ef)&&(_0x2b3e6a[_0x2932b5]=_0x2d33b5['replace'](/url\(#(.*)\)/,_0x58d6ab(0x1f0)+_0x3f3041[_0x58d6ab(0x1c2)]+')'));});let {defIds:_0x4d2bc6}=_0x3f3041;return!_0x4d2bc6||_0x4d2bc6['length']===0x0?_0x2b3e6a:(_0x150cc1['tag']===_0x3ec803(0x331)&&_0x2b3e6a['xlink:href']&&(_0x2b3e6a[_0x3ec803(0x1f8)]+=_0x3f3041[_0x3ec803(0x1c2)]),Object[_0x3ec803(0x254)](_0x2b3e6a)[_0x3ec803(0x2db)](([_0x4694bb,_0x22c77a])=>{const _0x3984=_0x3ec803;typeof _0x22c77a=='string'&&(_0x2b3e6a[_0x4694bb]=_0x22c77a[_0x3984(0x29c)](/url\(#(.*)\)/,_0x3984(0x1f0)+_0x3f3041[_0x3984(0x1c2)]+')'));}),_0x2b3e6a);}function _0x473725(_0x36e8e3,_0x260433){const _0x43173d=_0x4599df;var _0x3e5c7e;let {defIds:_0x26982d}=_0x260433;return!_0x26982d||_0x26982d['length']===0x0?_0x36e8e3:_0x36e8e3[_0x43173d(0x1da)]==='defs'&&(_0x3e5c7e=_0x36e8e3[_0x43173d(0x301)])!=null&&_0x3e5c7e[_0x43173d(0x25e)]?{..._0x36e8e3,'children':_0x36e8e3[_0x43173d(0x301)][_0x43173d(0x2ab)](_0x693360=>typeof _0x693360[_0x43173d(0x1f1)]['id']==_0x43173d(0x1ef)&&_0x26982d&&_0x26982d[_0x43173d(0x2a9)](_0x693360['attrs']['id'])?{..._0x693360,'attrs':{..._0x693360[_0x43173d(0x1f1)],'id':_0x693360[_0x43173d(0x1f1)]['id']+_0x260433[_0x43173d(0x1c2)]}}:_0x693360)}:_0x36e8e3;}function _0x3ca8d4(){const _0x2446ed=_0x4599df;return Math['random']()[_0x2446ed(0x2ec)](0x24)[_0x2446ed(0x239)](0x2,0x8);}_0x2a4bc7['displayName']='UniverIcon';let _0x2e380c={'tag':_0x4599df(0x21f),'attrs':{'xmlns':_0x4599df(0x229),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4599df(0x273),'height':_0x4599df(0x273)},'children':[{'tag':'path','attrs':{'fill':_0x4599df(0x1df),'d':_0x4599df(0x339),'fillRule':_0x4599df(0x34a),'clipRule':'evenodd'}}]},_0x249d08=(0x0,_0x329339['forwardRef'])(function(_0x65d9c3,_0x46960f){const _0x19e39e=_0x4599df;return(0x0,_0x329339[_0x19e39e(0x2e1)])(_0x2a4bc7,Object[_0x19e39e(0x312)]({},_0x65d9c3,{'id':'check-mark-icon','ref':_0x46960f,'icon':_0x2e380c}));});_0x249d08[_0x4599df(0x2d4)]=_0x4599df(0x214);let _0x86f752={'tag':_0x4599df(0x21f),'attrs':{'xmlns':_0x4599df(0x229),'fill':_0x4599df(0x23d),'viewBox':_0x4599df(0x350),'width':_0x4599df(0x273),'height':_0x4599df(0x273)},'children':[{'tag':_0x4599df(0x321),'attrs':{'fill':_0x4599df(0x1df),'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'}}]},_0x47edf2=(0x0,_0x329339[_0x4599df(0x1be)])(function(_0x492352,_0x16cc44){const _0x3c23a=_0x4599df;return(0x0,_0x329339[_0x3c23a(0x2e1)])(_0x2a4bc7,Object[_0x3c23a(0x312)]({},_0x492352,{'id':_0x3c23a(0x1c3),'ref':_0x16cc44,'icon':_0x86f752}));});_0x47edf2[_0x4599df(0x2d4)]=_0x4599df(0x281);let _0x1c0ef4={'tag':'svg','attrs':{'xmlns':_0x4599df(0x229),'fill':_0x4599df(0x23d),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4599df(0x273)},'children':[{'tag':_0x4599df(0x321),'attrs':{'fill':_0x4599df(0x1df),'d':_0x4599df(0x2bc)}},{'tag':_0x4599df(0x321),'attrs':{'fill':_0x4599df(0x1df),'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':_0x4599df(0x321),'attrs':{'fill':_0x4599df(0x1df),'d':_0x4599df(0x204),'fillRule':'evenodd','clipRule':_0x4599df(0x34a)}}]},_0x260221=(0x0,_0x329339['forwardRef'])(function(_0x253f44,_0x31e066){const _0x4a95d0=_0x4599df;return(0x0,_0x329339[_0x4a95d0(0x2e1)])(_0x2a4bc7,Object[_0x4a95d0(0x312)]({},_0x253f44,{'id':_0x4a95d0(0x29f),'ref':_0x31e066,'icon':_0x1c0ef4}));});_0x260221[_0x4599df(0x2d4)]=_0x4599df(0x26a);let _0x1af582={'tag':_0x4599df(0x21f),'attrs':{'xmlns':_0x4599df(0x229),'fill':'none','viewBox':_0x4599df(0x350),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4599df(0x268)},'children':[{'tag':_0x4599df(0x321),'attrs':{'stroke':_0x4599df(0x1df),'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':_0x4599df(0x236),'strokeLinejoin':_0x4599df(0x236),'strokeWidth':1.2}}]},{'tag':_0x4599df(0x261),'attrs':{},'children':[{'tag':_0x4599df(0x20b),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x4599df(0x2aa),'d':_0x4599df(0x2a2)}}]}]}],'defIds':[_0x4599df(0x277)]},_0x21be7c=(0x0,_0x329339[_0x4599df(0x1be)])(function(_0x4a8ca2,_0x41b444){const _0x2f2c6d=_0x4599df;return(0x0,_0x329339[_0x2f2c6d(0x2e1)])(_0x2a4bc7,Object[_0x2f2c6d(0x312)]({},_0x4a8ca2,{'id':_0x2f2c6d(0x1cc),'ref':_0x41b444,'icon':_0x1af582}));});_0x21be7c[_0x4599df(0x2d4)]=_0x4599df(0x27f);let _0x533fc0={'tag':'svg','attrs':{'xmlns':_0x4599df(0x229),'fill':_0x4599df(0x23d),'viewBox':_0x4599df(0x1d6),'width':_0x4599df(0x273),'height':_0x4599df(0x273)},'children':[{'tag':'g','attrs':{'clipPath':_0x4599df(0x2d0)},'children':[{'tag':_0x4599df(0x321),'attrs':{'stroke':_0x4599df(0x1df),'d':_0x4599df(0x21c),'strokeLinecap':_0x4599df(0x236),'strokeLinejoin':_0x4599df(0x236),'strokeWidth':1.2}}]},{'tag':_0x4599df(0x261),'attrs':{},'children':[{'tag':_0x4599df(0x20b),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4599df(0x321),'attrs':{'fill':'white','d':_0x4599df(0x2a2),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4599df(0x2ba)]},_0x36c4d9=(0x0,_0x329339[_0x4599df(0x1be)])(function(_0x4ec104,_0x28d746){const _0xb5336b=_0x4599df;return(0x0,_0x329339[_0xb5336b(0x2e1)])(_0x2a4bc7,Object[_0xb5336b(0x312)]({},_0x4ec104,{'id':_0xb5336b(0x1e9),'ref':_0x28d746,'icon':_0x533fc0}));});_0x36c4d9[_0x4599df(0x2d4)]=_0x4599df(0x30b);function _0x3df486(_0x1e8d95){const _0x56091b=_0x4599df;var _0x36fb7b,_0x48136d;let {mcpCoreConfig:_0x189e8f,onSave:_0xb2200c,loading:_0x57d796=!0x1,config:_0x57122e,connectionStatus$:_0x354c1d,connectionError$:_0x5ca53a,currentApiKey$:_0x384187,currentSessionId$:_0x42f83f}=_0x1e8d95,_0x5d4c28=(0x0,_0x1d4eae[_0x56091b(0x30d)])(_0x54dd9f[_0x56091b(0x20a)]),_0x3a372f=(0x0,_0x1d4eae[_0x56091b(0x32c)])(_0x354c1d,_0x1ff55d[_0x56091b(0x25b)][_0x56091b(0x318)]),_0x292124=(0x0,_0x1d4eae[_0x56091b(0x32c)])(_0x5ca53a,_0x1ff55d[_0x56091b(0x300)][_0x56091b(0x2e8)]),_0x6731de=(0x0,_0x1d4eae['useObservable'])(_0x42f83f,''),[_0x3ca0ff,_0xc90fe3]=(0x0,_0x329339[_0x56091b(0x1ec)])((0x0,_0x1d4eae[_0x56091b(0x32c)])(_0x384187,'')||''),_0xebc38e=_0x57122e[_0x56091b(0x2e5)]&&_0x189e8f[_0x56091b(0x2ac)]&&(_0x189e8f[_0x56091b(0x2ac)][_0x56091b(0x2a9)](_0x56091b(0x1ed))||_0x189e8f['mcpServerUrl'][_0x56091b(0x2a9)](_0x56091b(0x322))),_0x2d91aa=(_0x36fb7b=_0x189e8f[_0x56091b(0x2ac)])==null?void 0x0:_0x36fb7b[_0x56091b(0x2a9)](_0x56091b(0x1ed)),_0x77a858=(_0x48136d=_0x189e8f['mcpServerUrl'])==null?void 0x0:_0x48136d[_0x56091b(0x2a9)](_0x56091b(0x322)),_0x504ffb=_0x2d91aa?_0x56091b(0x21d):_0x56091b(0x334),_0x2f8583=_0x57122e[_0x56091b(0x2e5)]&&(_0x2d91aa||_0x77a858),[_0x445b80,_0x4e6240]=(0x0,_0x329339['useState'])(!_0x3ca0ff[_0x56091b(0x32e)]()),_0x4a0475=(_0x3ffb75,_0xb00f01)=>{const _0x4a2ada=_0x56091b;if(_0xb00f01===_0x1ff55d['MCPConnectionError']['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x3ffb75){case _0x1ff55d['MCPConnectionStatus'][_0x4a2ada(0x226)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x1ff55d[_0x4a2ada(0x25b)][_0x4a2ada(0x278)]:case _0x1ff55d[_0x4a2ada(0x25b)]['RETRYING']:return _0x4a2ada(0x28d);case _0x1ff55d['MCPConnectionStatus'][_0x4a2ada(0x2c1)]:return _0x4a2ada(0x1b8);default:return _0x4a2ada(0x1c5);}},_0x3be165=(_0x4e2143,_0x321cfc)=>{const _0x29ba60=_0x56091b;if(_0x321cfc===_0x1ff55d['MCPConnectionError'][_0x29ba60(0x2fa)])return _0x29ba60(0x20c);switch(_0x4e2143){case _0x1ff55d['MCPConnectionStatus'][_0x29ba60(0x226)]:return _0x29ba60(0x2d5);case _0x1ff55d[_0x29ba60(0x25b)][_0x29ba60(0x278)]:case _0x1ff55d[_0x29ba60(0x25b)][_0x29ba60(0x2de)]:return _0x29ba60(0x280);case _0x1ff55d[_0x29ba60(0x25b)][_0x29ba60(0x2c1)]:return _0x29ba60(0x20c);default:return _0x29ba60(0x22a);}},_0x5eb0ea=_0x5d3850=>{const _0x462e9b=_0x56091b;switch(_0x5d3850){case _0x1ff55d[_0x462e9b(0x25b)]['CONNECTED']:return _0x5d4c28['t'](_0x462e9b(0x1d3));case _0x1ff55d['MCPConnectionStatus']['CONNECTING']:return _0x5d4c28['t'](_0x462e9b(0x313));case _0x1ff55d['MCPConnectionStatus']['FAILED']:return _0x5d4c28['t'](_0x462e9b(0x31c));case _0x1ff55d['MCPConnectionStatus']['RETRYING']:return _0x5d4c28['t'](_0x462e9b(0x2ca));default:return _0x5d4c28['t']('mcpConfig.connectionStatus.disconnected');}},_0x10990c=_0x40ba4e=>{const _0x435e41=_0x56091b;switch(_0x40ba4e){case _0x1ff55d[_0x435e41(0x300)]['UNAUTHORIZED']:return _0x5d4c28['t']('mcpConfig.connectionError.unauthorized');case _0x1ff55d[_0x435e41(0x300)][_0x435e41(0x22c)]:return _0x5d4c28['t']('mcpConfig.connectionError.sessionOccupied');case _0x1ff55d[_0x435e41(0x300)][_0x435e41(0x2cf)]:return _0x5d4c28['t'](_0x435e41(0x200));case _0x1ff55d[_0x435e41(0x300)][_0x435e41(0x325)]:return _0x5d4c28['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x7f469f=(0x0,_0x329339['useCallback'])(()=>{_0xb2200c({..._0x189e8f,'apiKey':_0x3ca0ff['trim'](),'enableAuth':!0x0});},[_0x189e8f,_0x3ca0ff,!0x0,_0xb2200c]),_0x36d3cd=_0x3ca0ff[_0x56091b(0x32e)]()['length']>0x0;return(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':_0x56091b(0x2ea),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x2cc),'children':(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x282),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('div',{'className':_0x56091b(0x338),'children':(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'className':'univer-text-white','children':'⚙'})}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'children':(0x0,_0x25105e[_0x56091b(0x247)])('p',{'className':_0x56091b(0x310),'children':_0x5d4c28['t'](_0x56091b(0x2cb))})})]})}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x23a),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('div',{'className':(0x0,_0x33ab7a[_0x56091b(0x1f4)])(_0x56091b(0x219),_0x4a0475(_0x3a372f,_0x292124)),'children':(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':(0x0,_0x33ab7a['clsx'])(_0x56091b(0x24c),_0x3be165(_0x3a372f,_0x292124))}),(0x0,_0x25105e['jsx'])('span',{'className':_0x56091b(0x2b2),'children':_0x5eb0ea(_0x3a372f)})]})}),_0x292124!==_0x1ff55d[_0x56091b(0x300)][_0x56091b(0x2e8)]&&(_0x3a372f===_0x1ff55d['MCPConnectionStatus'][_0x56091b(0x2c1)]||_0x292124===_0x1ff55d[_0x56091b(0x300)]['UNAUTHORIZED'])&&(0x0,_0x25105e[_0x56091b(0x247)])('div',{'className':_0x56091b(0x246),'children':(0x0,_0x25105e['jsxs'])(_0x56091b(0x251),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[(0x0,_0x25105e['jsx'])('span',{'className':_0x56091b(0x341),'children':'⚠️'}),(0x0,_0x25105e['jsx'])('p',{'className':_0x56091b(0x32d),'children':_0x10990c(_0x292124)})]})})]}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':_0x56091b(0x1c9),'children':[(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x1cd),'children':[(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x237),{'className':_0x56091b(0x207),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'children':'🔑'}),'\x20',_0x5d4c28['t']('mcpConfig.apiKey'),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'className':'univer-text-red-500','children':'*'}),_0xebc38e&&(0x0,_0x25105e[_0x56091b(0x247)])('a',{'className':_0x56091b(0x250),'title':_0x5d4c28['t'](_0x56091b(0x2b6)),'role':'button','onClick':()=>_0x4e6240(!0x0),'children':(0x0,_0x25105e['jsx'])(_0x260221,{})})]}),(0x0,_0x25105e['jsx'])(_0x33ab7a[_0x56091b(0x1db)],{'type':_0x56091b(0x24f),'placeholder':_0x5d4c28['t'](_0x56091b(0x324)),'value':_0x3ca0ff,'disabled':_0x57d796,'autoComplete':'off','onChange':_0xc90fe3}),(0x0,_0x25105e[_0x56091b(0x247)])('p',{'className':_0x56091b(0x347),'children':_0x5d4c28['t'](_0x56091b(0x217))})]}),_0xebc38e&&_0x445b80&&(0x0,_0x25105e['jsxs'])(_0x56091b(0x251),{'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':[(0x0,_0x25105e[_0x56091b(0x247)])('a',{'className':_0x56091b(0x2c0),'role':_0x56091b(0x33f),'onClick':()=>_0x4e6240(!0x1),'children':(0x0,_0x25105e[_0x56091b(0x247)])(_0x47edf2,{'className':_0x56091b(0x294)})}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x289),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('div',{'className':_0x56091b(0x2bd),'children':(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'className':_0x56091b(0x1fa),'children':'🚀'})}),(0x0,_0x25105e['jsxs'])(_0x56091b(0x251),{'className':_0x56091b(0x295),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('h4',{'className':_0x56091b(0x248),'children':_0x5d4c28['t']('mcpConfig.apiApplyInfo.title')}),(0x0,_0x25105e[_0x56091b(0x247)])('p',{'className':_0x56091b(0x2ad),'children':_0x5d4c28['t'](_0x56091b(0x2d2))}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x233),'children':_0x2f8583&&(0x0,_0x25105e[_0x56091b(0x1fe)])('a',{'className':_0x56091b(0x30c),'href':_0x504ffb,'target':_0x56091b(0x1bd),'rel':_0x56091b(0x22e),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'children':'🤖'}),_0x5d4c28['t'](_0x56091b(0x1f2)),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'className':'univer-text-gray-400','children':'↗'})]})}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x1d1),'children':['✨','\x20',_0x5d4c28['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x57122e[_0x56091b(0x2e5)]&&(0x0,_0x25105e['jsxs'])(_0x56091b(0x251),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[(0x0,_0x25105e[_0x56091b(0x1fe)])('h4',{'className':_0x56091b(0x2d7),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'children':'🔗'}),'\x20',_0x5d4c28['t'](_0x56091b(0x2d3))]}),(0x0,_0x25105e['jsxs'])('div',{'className':_0x56091b(0x2c6),'children':[(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x29b),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('p',{'className':_0x56091b(0x2ce),'children':_0x5d4c28['t'](_0x56091b(0x245))}),(0x0,_0x25105e['jsxs'])('div',{'className':_0x56091b(0x1cd),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x31e),'children':_0x5d4c28['t']('mcpConfig.configStepTitle')}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x2a1),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'className':_0x56091b(0x202),'children':'1'}),_0x5d4c28['t'](_0x56091b(0x2c9))]}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x2a1),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x5d4c28['t'](_0x56091b(0x33a))]}),(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':_0x56091b(0x2a1),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('span',{'className':_0x56091b(0x202),'children':'3'}),_0x5d4c28['t']('mcpConfig.configStep3')]})]})]})]}),(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':'univer-space-y-2','children':[(0x0,_0x25105e['jsx'])(_0x56091b(0x251),{'className':_0x56091b(0x31e),'children':_0x56091b(0x342)}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x346),'children':(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x26e),{'className':_0x56091b(0x28a),'children':JSON[_0x56091b(0x33d)]({'mcpServers':{'univer':{'url':_0x56091b(0x2f5)+(_0x6731de||_0x56091b(0x1d2)),'type':'http','headers':{'Authorization':_0x56091b(0x2c3)+(_0x3ca0ff||_0x56091b(0x25d))}}}},null,0x2)})})]}),(0x0,_0x25105e['jsxs'])('div',{'className':_0x56091b(0x29b),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x31e),'children':_0x5d4c28['t']('mcpConfig.configParameters')}),(0x0,_0x25105e['jsxs'])(_0x56091b(0x251),{'className':'univer-space-y-2','children':[(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,_0x25105e['jsx'])(_0x56091b(0x251),{'className':_0x56091b(0x315),'children':'univer_session_id:'}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x347),'children':_0x5d4c28['t'](_0x56091b(0x208))})]})]}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,_0x25105e['jsx'])(_0x56091b(0x251),{'className':_0x56091b(0x315),'children':_0x56091b(0x25c)}),(0x0,_0x25105e['jsx'])(_0x56091b(0x251),{'className':_0x56091b(0x347),'children':_0x5d4c28['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x33ab7a[_0x56091b(0x30a)],{'onClick':_0x7f469f,'disabled':!_0x36d3cd||_0x57d796,'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':_0x57d796?(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x1e7),{'className':_0x56091b(0x2a1),'children':[(0x0,_0x25105e['jsx'])('span',{'children':'⟲'}),_0x5d4c28['t'](_0x56091b(0x352))]}):(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x1e7),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x249d08,{}),_0x5d4c28['t'](_0x56091b(0x24b))]})}),(0x0,_0x25105e['jsx'])('div',{'className':_0x56091b(0x1fc),'children':(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x257),'children':[(0x0,_0x25105e['jsx'])(_0x56091b(0x1e7),{'className':_0x56091b(0x348),'children':'💡'}),(0x0,_0x25105e['jsxs'])('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x275),'children':'Configuration\x20Notes:'}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'children':['•',_0x5d4c28['t'](_0x56091b(0x1f9))]}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'children':['•',_0x5d4c28['t'](_0x56091b(0x1c1))]})]})]})})]})})]});}let _0x216147=_0x4599df(0x287);Symbol(_0x216147);let _0x23b596={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x12f54c(_0x440bb1){'@babel/helpers - typeof';const _0x4f2c61=_0x4599df;return _0x12f54c=typeof Symbol=='function'&&typeof Symbol[_0x4f2c61(0x28f)]==_0x4f2c61(0x33e)?function(_0x5f478d){return typeof _0x5f478d;}:function(_0x35f152){const _0x3fda7c=_0x4f2c61;return _0x35f152&&typeof Symbol=='function'&&_0x35f152[_0x3fda7c(0x2cd)]===Symbol&&_0x35f152!==Symbol[_0x3fda7c(0x211)]?'symbol':typeof _0x35f152;},_0x12f54c(_0x440bb1);}function _0x57dc46(_0x323153,_0x2ebb99){const _0x2cdaf3=_0x4599df;if(_0x12f54c(_0x323153)!='object'||!_0x323153)return _0x323153;var _0x996061=_0x323153[Symbol[_0x2cdaf3(0x307)]];if(_0x996061!==void 0x0){var _0x4e3de2=_0x996061[_0x2cdaf3(0x2a4)](_0x323153,_0x2ebb99||_0x2cdaf3(0x259));if(_0x12f54c(_0x4e3de2)!='object')return _0x4e3de2;throw TypeError(_0x2cdaf3(0x1ea));}return(_0x2ebb99===_0x2cdaf3(0x1ef)?String:Number)(_0x323153);}function _0x1b442c(_0xd74b62){const _0x4243de=_0x4599df;var _0x46069b=_0x57dc46(_0xd74b62,_0x4243de(0x1ef));return _0x12f54c(_0x46069b)==_0x4243de(0x33e)?_0x46069b:_0x46069b+'';}function _0x46a40f(_0x35abb2,_0x2fed1d,_0x19520f){const _0x4020a3=_0x4599df;return(_0x2fed1d=_0x1b442c(_0x2fed1d))in _0x35abb2?Object[_0x4020a3(0x1f6)](_0x35abb2,_0x2fed1d,{'value':_0x19520f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35abb2[_0x2fed1d]=_0x19520f,_0x35abb2;}function _0x5713cd(_0x2c3b24,_0x3a03f2){return function(_0x282e79,_0x5ea457){_0x3a03f2(_0x282e79,_0x5ea457,_0x2c3b24);};}function _0x3b964f(_0x3e30f5,_0xaaa597,_0x3a2720,_0x5aafc2){const _0x3f2bd6=_0x4599df;var _0x2bc33e=arguments[_0x3f2bd6(0x25e)],_0x32af9d=_0x2bc33e<0x3?_0xaaa597:_0x5aafc2===null?_0x5aafc2=Object[_0x3f2bd6(0x320)](_0xaaa597,_0x3a2720):_0x5aafc2,_0x2525e8;if(typeof Reflect==_0x3f2bd6(0x2d9)&&typeof Reflect['decorate']==_0x3f2bd6(0x2fe))_0x32af9d=Reflect[_0x3f2bd6(0x1c4)](_0x3e30f5,_0xaaa597,_0x3a2720,_0x5aafc2);else{for(var _0x2c427d=_0x3e30f5[_0x3f2bd6(0x25e)]-0x1;_0x2c427d>=0x0;_0x2c427d--)(_0x2525e8=_0x3e30f5[_0x2c427d])&&(_0x32af9d=(_0x2bc33e<0x3?_0x2525e8(_0x32af9d):_0x2bc33e>0x3?_0x2525e8(_0xaaa597,_0x3a2720,_0x32af9d):_0x2525e8(_0xaaa597,_0x3a2720))||_0x32af9d);}return _0x2bc33e>0x3&&_0x32af9d&&Object['defineProperty'](_0xaaa597,_0x3a2720,_0x32af9d),_0x32af9d;}let _0x2780a9=_0x4599df(0x2fc),_0x3e31a2=_0x4599df(0x26f),_0x1f0c81=class extends _0x54dd9f[_0x4599df(0x1d7)]{constructor(_0x2a1109,_0x960940,_0x18d3dd,_0x261a82,_0x213575,_0x305cc9,_0x5d7cd7,_0x274265,_0x2777d4,_0x38535c){const _0x2264c4=_0x4599df;super(),this[_0x2264c4(0x2f9)]=_0x2a1109,this[_0x2264c4(0x327)]=_0x960940,this[_0x2264c4(0x32f)]=_0x18d3dd,this['_localStorageService']=_0x261a82,this['_dialogService']=_0x213575,this['_messageService']=_0x305cc9,this[_0x2264c4(0x2be)]=_0x5d7cd7,this[_0x2264c4(0x32b)]=_0x274265,this[_0x2264c4(0x21b)]=_0x2777d4,this[_0x2264c4(0x23f)]=_0x38535c,_0x46a40f(this,_0x2264c4(0x34d),new _0x21aaa0[(_0x2264c4(0x31d))](!0x1)),_0x46a40f(this,_0x2264c4(0x2e0),new _0x21aaa0[(_0x2264c4(0x31d))]({})),_0x46a40f(this,_0x2264c4(0x210),new _0x21aaa0[(_0x2264c4(0x31d))]({})),_0x46a40f(this,'_apiKey$',new _0x21aaa0[(_0x2264c4(0x31d))]('')),_0x46a40f(this,'_handleConfigSave',async _0x5392f4=>{const _0x49d1aa=_0x2264c4;this['_loading$']['next'](!0x0);try{var _0x5e2ffe,_0x4f1f09;let _0x4350db=await this['_validateConfig'](_0x5392f4);if(!_0x4350db[_0x49d1aa(0x1d8)]){this[_0x49d1aa(0x2c5)][_0x49d1aa(0x292)]({'type':_0x33ab7a[_0x49d1aa(0x253)][_0x49d1aa(0x223)],'content':_0x4350db[_0x49d1aa(0x244)]||this[_0x49d1aa(0x32b)]['t'](_0x49d1aa(0x20d))});return;}_0x5392f4[_0x49d1aa(0x311)]?await this['_localStorageService'][_0x49d1aa(0x31a)](_0x2780a9,_0x5392f4[_0x49d1aa(0x311)][_0x49d1aa(0x32e)]()):await this[_0x49d1aa(0x2d1)][_0x49d1aa(0x271)](_0x2780a9),this['_apiKey$'][_0x49d1aa(0x297)](((_0x5e2ffe=_0x5392f4[_0x49d1aa(0x311)])==null?void 0x0:_0x5e2ffe[_0x49d1aa(0x32e)]())||''),this[_0x49d1aa(0x23f)][_0x49d1aa(0x1c0)]({'Authorization':'Bearer\x20'+((_0x4f1f09=_0x5392f4[_0x49d1aa(0x311)])==null?void 0x0:_0x4f1f09['trim']())}),this[_0x49d1aa(0x2c5)][_0x49d1aa(0x292)]({'type':_0x33ab7a[_0x49d1aa(0x253)][_0x49d1aa(0x317)],'content':this[_0x49d1aa(0x32b)]['t'](_0x49d1aa(0x221))}),setTimeout(()=>{const _0xcd3c04=_0x49d1aa;this[_0xcd3c04(0x220)]['close'](_0x3e31a2);},0x320);}catch(_0x51c8f2){this['_logService'][_0x49d1aa(0x2d8)](_0x49d1aa(0x1bf),_0x51c8f2),this['_messageService'][_0x49d1aa(0x292)]({'type':_0x33ab7a[_0x49d1aa(0x253)]['Error'],'content':this[_0x49d1aa(0x32b)]['t']('mcpConfig.configError')});}finally{this[_0x49d1aa(0x34d)]['next'](!0x1);}}),this[_0x2264c4(0x323)](),this[_0x2264c4(0x212)](),this[_0x2264c4(0x2e3)]();}[_0x4599df(0x1f3)](){const _0x8b2d30=_0x4599df;let _0x46c57e=this[_0x8b2d30(0x32f)][_0x8b2d30(0x2e7)](_0x216147);_0x46c57e!=null&&_0x46c57e['showDeveloperTools']&&this[_0x8b2d30(0x220)][_0x8b2d30(0x1cf)]({'id':_0x3e31a2,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x8b2d30(0x222)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xea7f01=_0x8b2d30;this[_0xea7f01(0x220)][_0xea7f01(0x328)](_0x3e31a2);}});}[_0x4599df(0x228)](){const _0x3b2075=_0x4599df;return this[_0x3b2075(0x2e0)][_0x3b2075(0x2a0)];}[_0x4599df(0x2e3)](){const _0x5493ec=_0x4599df;this[_0x5493ec(0x28e)](this[_0x5493ec(0x2be)][_0x5493ec(0x21a)](_0x5493ec(0x222),this['_createConfigPanelComponent']()));}[_0x4599df(0x2dd)](){const _0x5cf124=_0x4599df;return(0x0,_0x1d4eae[_0x5cf124(0x243)])(()=>{const _0x1be897=_0x5cf124;var _0x33a9e5,_0x3f5f5c,_0x18b67f;return(0x0,_0x25105e[_0x1be897(0x247)])(_0x3df486,{'config':this['_config$'][_0x1be897(0x2a0)],'mcpCoreConfig':this[_0x1be897(0x2e0)][_0x1be897(0x2a0)],'currentApiKey$':this[_0x1be897(0x1e5)],'onSave':this[_0x1be897(0x262)],'loading':this[_0x1be897(0x34d)][_0x1be897(0x2a0)],'connectionStatus$':(_0x33a9e5=this[_0x1be897(0x23f)])==null?void 0x0:_0x33a9e5[_0x1be897(0x330)],'connectionError$':(_0x3f5f5c=this[_0x1be897(0x23f)])==null?void 0x0:_0x3f5f5c[_0x1be897(0x25a)],'currentSessionId$':(_0x18b67f=this['_mcpConnectionController'])==null?void 0x0:_0x18b67f[_0x1be897(0x2c8)]});},this['_injector']);}[_0x4599df(0x323)](){const _0x48e848=_0x4599df;this[_0x48e848(0x28e)](this[_0x48e848(0x32f)][_0x48e848(0x20f)](_0x1ff55d[_0x48e848(0x232)])['subscribe'](_0xb3fce=>{const _0x326f0a=_0x48e848;this[_0x326f0a(0x2e0)][_0x326f0a(0x297)](_0xb3fce||{});}));let _0xd8f0a4=this['_configService'][_0x48e848(0x2e7)](_0x1ff55d[_0x48e848(0x232)]);this['_mcpCoreConfig$'][_0x48e848(0x297)](_0xd8f0a4||{}),this[_0x48e848(0x28e)](this[_0x48e848(0x32f)][_0x48e848(0x20f)](_0x216147)[_0x48e848(0x264)](_0x199ac5=>{const _0x4a7108=_0x48e848;this[_0x4a7108(0x210)][_0x4a7108(0x297)](_0x199ac5||{});}));let _0x1b9679=this[_0x48e848(0x32f)]['getConfig'](_0x216147);this['_config$'][_0x48e848(0x297)](_0x1b9679||{});}async[_0x4599df(0x212)](){const _0x1e634d=_0x4599df;let _0x21621f=this[_0x1e634d(0x32f)][_0x1e634d(0x2e7)](_0x216147);if(!(_0x21621f!=null&&_0x21621f[_0x1e634d(0x2e5)]))return;let _0x458450=await this[_0x1e634d(0x2d1)]['getItem'](_0x2780a9);_0x458450&&(this[_0x1e634d(0x23f)][_0x1e634d(0x1c0)]({'Authorization':_0x1e634d(0x2c3)+_0x458450}),this[_0x1e634d(0x1e5)]['next'](_0x458450));}async['_validateConfig'](_0x2e7896){const _0x271743=_0x4599df;if(!_0x2e7896[_0x271743(0x311)]||_0x2e7896[_0x271743(0x311)][_0x271743(0x32e)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x271743(0x32b)]['t'](_0x271743(0x2dc))};if(_0x2e7896[_0x271743(0x311)]['trim']()[_0x271743(0x25e)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x271743(0x1dd))};try{let _0x375ede=await this[_0x271743(0x2f9)]['get'](_0x1ff55d['MCPConnectionController'])[_0x271743(0x234)](_0x2e7896[_0x271743(0x311)]['trim']());return _0x375ede[_0x271743(0x1d8)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x375ede[_0x271743(0x2d8)]||this[_0x271743(0x32b)]['t'](_0x271743(0x27d))};}catch(_0x5d3d02){return console[_0x271743(0x2f8)](_0x271743(0x2ed),_0x5d3d02),{'isValid':!0x0};}}};_0x1f0c81=_0x3b964f([_0x5713cd(0x0,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x54dd9f['Injector'])),_0x5713cd(0x1,_0x1d4eae[_0x4599df(0x2b7)]),_0x5713cd(0x2,_0x54dd9f[_0x4599df(0x231)]),_0x5713cd(0x3,_0x54dd9f[_0x4599df(0x1ba)]),_0x5713cd(0x4,_0x1d4eae['IDialogService']),_0x5713cd(0x5,_0x1d4eae[_0x4599df(0x34c)]),_0x5713cd(0x6,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x1d4eae[_0x4599df(0x2ff)])),_0x5713cd(0x7,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x54dd9f['LocaleService'])),_0x5713cd(0x8,_0x54dd9f[_0x4599df(0x2f2)]),_0x5713cd(0x9,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x1ff55d[_0x4599df(0x1c6)]))],_0x1f0c81);let _0xe261eb={'id':_0x4599df(0x238),'type':_0x54dd9f[_0x4599df(0x306)]['COMMAND'],'handler':async(_0x4911e0,_0x41ccd9)=>(_0x4911e0['get'](_0x1f0c81)['showConfigPanel'](),!0x0)};function _0x5aab7b(_0x10d4d7,_0x563437){const _0x30183f=_0x4599df;switch(_0x10d4d7){case _0x1ff55d[_0x30183f(0x25b)]['DISCONNECTED']:return'mcpStatus.disconnected';case _0x1ff55d[_0x30183f(0x25b)][_0x30183f(0x278)]:return'mcpStatus.connecting';case _0x1ff55d[_0x30183f(0x25b)][_0x30183f(0x226)]:return'mcpStatus.connected';case _0x1ff55d['MCPConnectionStatus']['FAILED']:switch(_0x563437){case _0x1ff55d['MCPConnectionError'][_0x30183f(0x2fa)]:return _0x30183f(0x27c);case _0x1ff55d[_0x30183f(0x300)][_0x30183f(0x22c)]:return _0x30183f(0x1bc);case _0x1ff55d['MCPConnectionError'][_0x30183f(0x2cf)]:return _0x30183f(0x286);case _0x1ff55d[_0x30183f(0x300)][_0x30183f(0x325)]:return _0x30183f(0x2a8);default:return _0x30183f(0x225);}case _0x1ff55d[_0x30183f(0x25b)][_0x30183f(0x2de)]:return _0x30183f(0x266);default:return _0x30183f(0x267);}}function _0x5142cf(_0x4fe0cd,_0x59d94e,_0x43e347,_0x1b133d=!0x0){const _0xa92fa9=_0x4599df;let _0x5470fc=_0x5aab7b(_0x4fe0cd,_0x59d94e),_0xd4909e=_0x43e347['t'](_0x5470fc);return _0x1b133d?_0x4fe0cd===_0x1ff55d[_0xa92fa9(0x25b)][_0xa92fa9(0x318)]&&_0x59d94e===_0x1ff55d[_0xa92fa9(0x300)][_0xa92fa9(0x2fa)]?_0xd4909e+_0xa92fa9(0x27e)+_0x43e347['t'](_0xa92fa9(0x2d6)):_0x4fe0cd===_0x1ff55d[_0xa92fa9(0x25b)][_0xa92fa9(0x226)]?''+_0xd4909e:_0x4fe0cd===_0x1ff55d['MCPConnectionStatus']['DISCONNECTED']||_0x4fe0cd===_0x1ff55d['MCPConnectionStatus'][_0xa92fa9(0x2c1)]?_0xd4909e+'\x20-\x20'+_0x43e347['t'](_0xa92fa9(0x333)):_0xd4909e:_0xd4909e;}function _0x177c6a(_0x19c9bd){const _0x593345=_0x4599df;switch(_0x19c9bd){case _0x1ff55d[_0x593345(0x25b)][_0x593345(0x226)]:return _0x593345(0x1e2);case _0x1ff55d[_0x593345(0x25b)][_0x593345(0x278)]:case _0x1ff55d[_0x593345(0x25b)]['RETRYING']:return'univer-text-yellow-500';case _0x1ff55d[_0x593345(0x25b)][_0x593345(0x2c1)]:case _0x1ff55d[_0x593345(0x25b)][_0x593345(0x318)]:return'univer-text-red-500';default:return _0x593345(0x2b5);}}function _0x2f7ce7(_0x229090){const _0x5bcd92=_0x4599df;let {status$:_0x3d7883,error$:_0x9fbe40,onConfigure:_0x22a030,showClickable:_0x316a76=!0x0}=_0x229090,_0x4bc3a3=(0x0,_0x1d4eae[_0x5bcd92(0x32c)])(_0x3d7883,_0x1ff55d[_0x5bcd92(0x25b)][_0x5bcd92(0x318)]),_0x45540a=(0x0,_0x1d4eae[_0x5bcd92(0x32c)])(_0x9fbe40,_0x1ff55d[_0x5bcd92(0x300)][_0x5bcd92(0x2e8)]),_0x3d442f=(0x0,_0x1d4eae[_0x5bcd92(0x30d)])(_0x54dd9f[_0x5bcd92(0x20a)]),_0x538799=_0x4bc3a3===_0x1ff55d[_0x5bcd92(0x25b)][_0x5bcd92(0x226)];_0x4bc3a3===_0x1ff55d[_0x5bcd92(0x25b)][_0x5bcd92(0x278)]||_0x1ff55d['MCPConnectionStatus'][_0x5bcd92(0x2de)];let _0x45b704=_0x3d442f['t'](_0x5aab7b(_0x4bc3a3,_0x45540a)),_0x166ed4=_0x5142cf(_0x4bc3a3,_0x45540a,_0x3d442f,_0x316a76),_0x37f8f6=_0x177c6a(_0x4bc3a3),_0x44056a=_0x538799?(0x0,_0x25105e[_0x5bcd92(0x247)])(_0x36c4d9,{}):(0x0,_0x25105e['jsx'])(_0x21be7c,{}),_0x3754e3=(0x0,_0x329339[_0x5bcd92(0x2c4)])(()=>{_0x316a76&&_0x22a030&&_0x22a030();},[_0x316a76,_0x22a030]);function _0x31118e(){const _0x69d150=_0x5bcd92;return(0x0,_0x25105e[_0x69d150(0x1fe)])(_0x69d150(0x251),{'className':(0x0,_0x33ab7a[_0x69d150(0x1f4)])(_0x69d150(0x279),_0x316a76&&_0x22a030&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x69d150(0x33f),'onClick':_0x316a76&&_0x22a030?_0x3754e3:void 0x0,'children':[(0x0,_0x25105e['jsx'])(_0x69d150(0x251),{'className':(0x0,_0x33ab7a['clsx'])(_0x69d150(0x23c),_0x37f8f6),'children':_0x44056a}),(0x0,_0x25105e[_0x69d150(0x247)])(_0x69d150(0x251),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x45b704})]});}return(0x0,_0x25105e[_0x5bcd92(0x247)])(_0x33ab7a[_0x5bcd92(0x2f7)],{'title':_0x166ed4,'placement':_0x5bcd92(0x291),'children':_0x31118e()});}let _0x311758=class extends _0x54dd9f['Disposable']{constructor(_0x152dbd,_0x4c4cd6,_0x5ad72e,_0xace9fd){const _0x211f26=_0x4599df;super(),this['_injector']=_0x152dbd,this[_0x211f26(0x26b)]=_0x4c4cd6,this[_0x211f26(0x327)]=_0x5ad72e,this[_0x211f26(0x32f)]=_0xace9fd,this[_0x211f26(0x34b)](),this['_initStatusComponent']();}[_0x4599df(0x34b)](){const _0xa739ec=_0x4599df;let _0x11069b=this[_0xa739ec(0x32f)]['getConfig'](_0x216147);_0x11069b!=null&&_0x11069b[_0xa739ec(0x2e5)]&&(this[_0xa739ec(0x26b)][_0xa739ec(0x344)]=!0x1);}[_0x4599df(0x2b9)](){const _0x3717f9=_0x4599df;let _0x1a1422=this[_0x3717f9(0x32f)][_0x3717f9(0x2e7)](_0x216147);(_0x1a1422==null?void 0x0:_0x1a1422[_0x3717f9(0x21e)])!==!0x1&&this[_0x3717f9(0x28e)](this[_0x3717f9(0x327)][_0x3717f9(0x203)](_0x1d4eae[_0x3717f9(0x20e)]['HEADER_MENU'],()=>{const _0x2f0755=_0x3717f9;var _0x2ca367;return(0x0,_0x1d4eae[_0x2f0755(0x243)])(_0x34155d({'status$':this[_0x2f0755(0x26b)][_0x2f0755(0x330)],'error$':this['_connectionController'][_0x2f0755(0x25a)],'onConfigure':()=>this[_0x2f0755(0x249)](),'showClickable':(_0x2ca367=_0x1a1422==null?void 0x0:_0x1a1422[_0x2f0755(0x2e5)])==null?!0x1:_0x2ca367}),this[_0x2f0755(0x2f9)]);}));}[_0x4599df(0x249)](){const _0x55e49e=_0x4599df;this[_0x55e49e(0x2f9)]['get'](_0x1f0c81)[_0x55e49e(0x1f3)]();}};_0x311758=_0x3b964f([_0x5713cd(0x0,(0x0,_0x54dd9f['Inject'])(_0x54dd9f[_0x4599df(0x255)])),_0x5713cd(0x1,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x1ff55d[_0x4599df(0x1c6)])),_0x5713cd(0x2,_0x1d4eae[_0x4599df(0x2b7)]),_0x5713cd(0x3,_0x54dd9f['IConfigService'])],_0x311758);function _0x34155d(_0x3aba2b){let {status$:_0x55e30d,error$:_0x3933c4,onConfigure:_0x3f4279,showClickable:_0x3c42af}=_0x3aba2b;return function(){return(0x0,_0x25105e['jsx'])(_0x2f7ce7,{'status$':_0x55e30d,'error$':_0x3933c4,'onConfigure':_0x3f4279,'showClickable':_0x3c42af});};}function _0x1b09f6(_0xfa7555){const _0x4f5067=_0x4599df;return{'id':_0xe261eb['id'],'type':_0x1d4eae[_0x4f5067(0x27b)][_0x4f5067(0x1d4)],'icon':_0x4f5067(0x29d),'title':_0x4f5067(0x24e),'tooltip':'mcpConfig.title'};}let _0x1f165d={[_0x1d4eae[_0x4599df(0x31f)][_0x4599df(0x28c)]]:{[_0xe261eb['id']]:{'order':0xa,'menuItemFactory':_0x1b09f6}}},_0x5630da=class extends _0x54dd9f['Disposable']{constructor(_0x397f63,_0x5dab12){const _0xc8e17b=_0x4599df;super(),this['_commandService']=_0x397f63,this[_0xc8e17b(0x2a7)]=_0x5dab12,this[_0xc8e17b(0x209)](),this['_initializeMenus']();}[_0x4599df(0x209)](){const _0x2b5d46=_0x4599df;[_0xe261eb][_0x2b5d46(0x2db)](_0xac1aa7=>{const _0x3179b6=_0x2b5d46;this[_0x3179b6(0x28e)](this[_0x3179b6(0x265)][_0x3179b6(0x252)](_0xac1aa7));});}[_0x4599df(0x1cb)](){const _0x300e37=_0x4599df;this[_0x300e37(0x2a7)]['mergeMenu'](_0x1f165d);}};_0x5630da=_0x3b964f([_0x5713cd(0x0,_0x54dd9f['ICommandService']),_0x5713cd(0x1,_0x1d4eae['IMenuManagerService'])],_0x5630da);let _0x456c42={'mcpStatus':{'disconnected':_0x4599df(0x1c7),'connecting':_0x4599df(0x34f),'connected':_0x4599df(0x302),'failed':_0x4599df(0x316),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4599df(0x258),'clickToConnect':_0x4599df(0x34e),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4599df(0x218),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4599df(0x23e),'enableAuth':_0x4599df(0x260),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4599df(0x329),'configInstructions':_0x4599df(0x1f5),'configStepTitle':_0x4599df(0x332),'configStep1':_0x4599df(0x242),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4599df(0x283),'sessionId':_0x4599df(0x205),'sessionIdDescription':_0x4599df(0x1bb),'authorizationDescription':_0x4599df(0x2af),'configParameters':_0x4599df(0x335),'maxRetries':_0x4599df(0x26c),'save':_0x4599df(0x235),'saving':'Saving...','note1':_0x4599df(0x201),'note2':_0x4599df(0x270),'configSaved':_0x4599df(0x2e9),'configError':_0x4599df(0x1f7),'apiApplyInfo':{'title':_0x4599df(0x2f1),'description':_0x4599df(0x2bb),'univerAiLabel':_0x4599df(0x2fd),'getStarted':_0x4599df(0x276)},'validation':{'apiKeyRequired':_0x4599df(0x1e1),'apiKeyTooShort':_0x4599df(0x32a),'invalidConfig':_0x4599df(0x1e0),'invalidApiKey':_0x4599df(0x2ef)},'connectionStatus':{'disconnected':_0x4599df(0x319),'connecting':_0x4599df(0x1de),'connected':'Connected','failed':_0x4599df(0x2a6),'retrying':_0x4599df(0x1c8)},'connectionError':{'unauthorized':_0x4599df(0x345),'sessionOccupied':_0x4599df(0x326),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4599df(0x303)}}},_0x390507={'mcpStatus':{'disconnected':_0x4599df(0x1eb),'connecting':'MCP\x20连接中...','connected':_0x4599df(0x2a3),'failed':_0x4599df(0x2a5),'retrying':'MCP\x20重连中...','unknown':_0x4599df(0x24d),'unauthorized':_0x4599df(0x351),'sessionOccupied':_0x4599df(0x1d0),'networkError':_0x4599df(0x349),'maxRetriesExceeded':_0x4599df(0x240),'clickToConnect':_0x4599df(0x1e8),'clickToConfigure':_0x4599df(0x340)},'mcpConfig':{'title':_0x4599df(0x28b),'description':_0x4599df(0x2b8),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x4599df(0x290),'apiKeyHint':_0x4599df(0x241),'enableAuth':_0x4599df(0x33c),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4599df(0x304),'mcpClientConfig':_0x4599df(0x304),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4599df(0x1e6),'configStep1':_0x4599df(0x2da),'configStep2':_0x4599df(0x2b3),'configStep3':_0x4599df(0x256),'sessionId':'会话ID','sessionIdDescription':_0x4599df(0x1fb),'authorizationDescription':_0x4599df(0x230),'configParameters':_0x4599df(0x2e2),'maxRetries':_0x4599df(0x213),'save':_0x4599df(0x1ee),'saving':_0x4599df(0x2df),'note1':_0x4599df(0x1b7),'note2':_0x4599df(0x2ae),'configSaved':_0x4599df(0x2f3),'configError':_0x4599df(0x1ce),'apiApplyInfo':{'title':_0x4599df(0x296),'description':_0x4599df(0x30e),'univerAiLabel':_0x4599df(0x33b),'getStarted':_0x4599df(0x305)},'validation':{'apiKeyRequired':_0x4599df(0x31b),'apiKeyTooShort':_0x4599df(0x285),'invalidConfig':_0x4599df(0x274),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x4599df(0x2f0),'connected':_0x4599df(0x1d5),'failed':_0x4599df(0x2bf),'retrying':_0x4599df(0x337)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x4599df(0x2f4),'maxRetriesExceeded':_0x4599df(0x24a)}}};var _0x1a7178='@univerjs-pro/mcp-ui',_0x449ac0=_0x4599df(0x272);let _0x580157=class extends _0x54dd9f[_0x4599df(0x1e3)]{constructor(_0x5077df=_0x23b596,_0x284687,_0xbfa240,_0x1b9e29,_0x3d79ce,_0x278c90){const _0xea701a=_0x4599df;super(),this[_0xea701a(0x29a)]=_0x5077df,this[_0xea701a(0x2f9)]=_0x284687,this[_0xea701a(0x32f)]=_0xbfa240,this[_0xea701a(0x327)]=_0x1b9e29,this['_localStorageService']=_0x3d79ce,this['_localeService']=_0x278c90;let {..._0x379ed9}=(0x0,_0x54dd9f[_0xea701a(0x26d)])({},_0x23b596,this[_0xea701a(0x29a)]);this[_0xea701a(0x32f)][_0xea701a(0x1e4)](_0x216147,_0x379ed9);}async[_0x4599df(0x2b4)](){const _0x50f152=_0x4599df;let _0x3b98b8=[[_0x311758],[_0x1f0c81],[_0x5630da]];this['_injector'][_0x50f152(0x2fb)](_0x244de0['ISocketService'])||_0x3b98b8['push']([_0x244de0['ISocketService'],{'useClass':_0x244de0[_0x50f152(0x2b1)]}]),_0x3b98b8[_0x50f152(0x2db)](_0x4af881=>this[_0x50f152(0x2f9)]['add'](_0x4af881)),this[_0x50f152(0x2f9)]['get'](_0x311758),this[_0x50f152(0x2f9)][_0x50f152(0x22d)](_0x1f0c81),this[_0x50f152(0x2f9)][_0x50f152(0x22d)](_0x5630da);}};_0x46a40f(_0x580157,'pluginName',_0x4599df(0x215)),_0x46a40f(_0x580157,_0x4599df(0x2ee),_0x1a7178),_0x46a40f(_0x580157,_0x4599df(0x1b9),_0x449ac0),_0x580157=_0x3b964f([(0x0,_0x54dd9f[_0x4599df(0x2f6)])(_0x1ff55d['UniverMCPPlugin']),_0x5713cd(0x1,(0x0,_0x54dd9f['Inject'])(_0x54dd9f[_0x4599df(0x255)])),_0x5713cd(0x2,_0x54dd9f['IConfigService']),_0x5713cd(0x3,_0x1d4eae['IUIPartsService']),_0x5713cd(0x4,_0x54dd9f[_0x4599df(0x1ba)]),_0x5713cd(0x5,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x54dd9f[_0x4599df(0x20a)]))],_0x580157),_0x1a3adc['MCPConfigPanel']=_0x3df486,Object[_0x4599df(0x1f6)](_0x1a3adc,_0x4599df(0x22b),{'enumerable':!0x0,'get':function(){return _0x1f0c81;}}),Object[_0x4599df(0x1f6)](_0x1a3adc,_0x4599df(0x2e6),{'enumerable':!0x0,'get':function(){return _0x311758;}}),_0x1a3adc[_0x4599df(0x216)]=_0x2f7ce7,Object[_0x4599df(0x1f6)](_0x1a3adc,_0x4599df(0x2b0),{'enumerable':!0x0,'get':function(){return _0x5630da;}}),_0x1a3adc[_0x4599df(0x2c7)]=_0xe261eb,Object[_0x4599df(0x1f6)](_0x1a3adc,_0x4599df(0x1fd),{'enumerable':!0x0,'get':function(){return _0x580157;}}),_0x1a3adc[_0x4599df(0x299)]=_0x456c42,_0x1a3adc['zhCN']=_0x390507;}));function _0x33a8(_0x2377fd,_0x2ab8a8){_0x2377fd=_0x2377fd-0x1b7;const _0x20901b=_0x2090();let _0x33a876=_0x20901b[_0x2377fd];return _0x33a876;}function _0x2090(){const _0x17aec0=['showStatus','svg','_dialogService','mcpConfig.configSaved','MCPConfigPanel','Error','Inject','mcpStatus.failed','CONNECTED','exports','getCurrentConfig','http://www.w3.org/2000/svg','univer-bg-gray-500','MCPConfigUIController','SESSION_ID_OCCUPIED','get','noopener\x20noreferrer','fill','带有\x20Bearer\x20前缀的\x20API\x20密钥。','IConfigService','MCP_PLUGIN_CONFIG_KEY','univer-flex\x20univer-flex-wrap\x20univer-gap-2','validateApiKey','Save\x20Configuration','round','label','mcp-ui.command.openConfigPanel','substring','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','toStringTag','univer-mr-2\x20univer-flex\x20univer-text-xl','none','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_mcpConnectionController','MCP:\x20超出最大重试次数','您的\x20API\x20密钥将在此浏览器中本地存储','Copy\x20the\x20JSON\x20configuration\x20below','connectInjector','errorMessage','mcpConfig.configInstructions','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','jsx','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_handleConfigure','超出最大重试次数,请稍后再试','mcpConfig.save','univer-size-2\x20univer-rounded-full','MCP\x20状态未知','mcpConfig.title','text','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','div','registerCommand','MessageType','entries','Injector','重启您的\x20MCP\x20客户端以使配置生效','univer-flex\x20univer-gap-3','MCP:\x20Max\x20Retries\x20Exceeded','default','connectionError$','MCPConnectionStatus','Authorization:','<API_KEY>','length','875580dNrCRJ','Enable\x20Authentication','defs','_handleConfigSave','react/jsx-runtime','subscribe','_commandService','mcpStatus.retrying','mcpStatus.unknown','url(#off-line-icon_clip0_910_343)','9916632TcRXQX','HelpIcon','_connectionController','Max\x20Retries','merge','pre','mcp-config-dialog','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','removeItem','0.20.1','1em','配置无效','univer-font-medium','Get\x20your\x20API\x20key\x20in\x20seconds','off-line-icon_clip0_910_343','CONNECTING','univer-flex\x20univer-items-center','amd','MenuItemType','mcpStatus.unauthorized','mcpConfig.validation.invalidApiKey','\x20-\x20','OffLineIcon','univer-bg-blue-500','CloseIcon','univer-flex\x20univer-items-center\x20univer-gap-3','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','UniverNetwork','API\x20密钥长度至少需要\x2010\x20位','mcpStatus.networkError','mcp-ui.config','UniverDesign','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','MCP\x20配置','OTHERS','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','disposeWithMe','iterator','请输入您的\x20API\x20密钥','bottom','show','8750488DQqtuT','univer-size-4','univer-flex-1','什么是\x20API\x20密钥?','next','UniverCore','enUS','_config','univer-space-y-3','replace','MenuIcon','@univerjs/design','help-icon','value','univer-flex\x20univer-items-center\x20univer-gap-2','M0\x200H16V16H0z','MCP\x20已连接','call','MCP\x20连接失败','Connection\x20Failed','_menuManagerService','mcpStatus.maxRetriesExceeded','includes','white','map','mcpServerUrl','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','您的\x20API\x20密钥安全存储在本地存储中','API\x20key\x20with\x20Bearer\x20prefix.','MCPUIMenuController','WebSocketService','univer-text-sm\x20univer-font-medium','将配置添加到您的\x20MCP\x20客户端设置文件中','onStarting','univer-text-gray-500','mcpConfig.apiApplyInfo.title','IUIPartsService','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_initStatusComponent','on-line-icon_clip0_910_349','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_componentManager','连接失败','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','FAILED','react','Bearer\x20','useCallback','_messageService','univer-space-y-4','OpenMCPConfigPanelCommand','sessionId$','mcpConfig.configStep1','mcpConfig.connectionStatus.retrying','mcpConfig.description','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','constructor','univer-text-xs\x20univer-text-gray-600','NETWORK_ERROR','url(#on-line-icon_clip0_910_349)','_localStorageService','mcpConfig.apiApplyInfo.description','mcpConfig.connectionInfo','displayName','univer-bg-green-500','mcpStatus.clickToConfigure','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','error','object','复制以下\x20JSON\x20配置','forEach','mcpConfig.validation.apiKeyRequired','_createConfigPanelComponent','RETRYING','保存中...','_mcpCoreConfig$','createElement','配置参数:','_registerComponent','1647499KUegbo','showDeveloperTools','MCPConnectionUIController','getConfig','NONE','Configuration\x20saved\x20successfully','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','10637030cfDjlg','toString','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','packageName','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','连接中...','What\x20is\x20API\x20Key?','ILogService','配置保存成功','网络连接错误,请检查您的网络连接','https://mcp.univer.ai/mcp/?univer_session_id=','DependentOn','Tooltip','warn','_injector','UNAUTHORIZED','has','mcp.apiKey','Univer\x20AI\x20Console','function','ComponentManager','MCPConnectionError','children','MCP\x20Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20客户端配置','几秒钟内获取您的\x20API\x20密钥','CommandType','toPrimitive','@univerjs-pro/mcp','React','Button','OnLineIcon','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','useDependency','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','UniverProMcpUi','univer-text-sm\x20univer-text-gray-500','apiKey','assign','mcpConfig.connectionStatus.connecting','9ILhqXW','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20Connection\x20Failed','Success','DISCONNECTED','Disconnected','setItem','API\x20密钥不能为空','mcpConfig.connectionStatus.failed','BehaviorSubject','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','RibbonStartGroup','getOwnPropertyDescriptor','path','univer.ai','_initConfigSync','mcpConfig.apiKeyPlaceholder','MAX_RETRIES_EXCEEDED','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_uiPartsService','close','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_localeService','useObservable','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','trim','_configService','connectionStatus$','use','Configuration\x20Steps:','mcpStatus.clickToConnect','https://console.univer.ai','Configuration\x20Parameters:','165576Syoifm','重连中...','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','mcpConfig.configStep2','Univer\x20AI\x20控制台','启用身份验证','stringify','symbol','button','点击配置\x20MCP','univer-shrink-0\x20univer-text-red-500','MCP\x20Configuration','35810qoNmlE','enableAutoConnect','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-xs\x20univer-text-gray-500','univer-shrink-0\x20univer-text-blue-500','MCP:\x20网络错误','evenodd','_initAutoConnect','IMessageService','_loading$','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','0\x200\x2016\x2016','MCP:\x20未授权','mcpConfig.saving','UniverUi','配置更改将立即生效','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','version','ILocalStorageService','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.sessionOccupied','_blank','forwardRef','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','__setCustomHeaders','mcpConfig.note2','idSuffix','close-icon','decorate','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','MCPConnectionController','MCP\x20Disconnected','Retrying...','univer-space-y-5','mask','_initializeMenus','off-line-icon','univer-space-y-2','配置保存失败','open','MCP:\x20会话\x20ID\x20已被占用','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','<SESSION_ID>','mcpConfig.connectionStatus.connected','BUTTON','已连接','0\x200\x2017\x2016','Disposable','isValid','64JwRwSJ','tag','Input','rxjs','mcpConfig.validation.apiKeyTooShort','Connecting...','currentColor','Invalid\x20configuration','API\x20key\x20is\x20required','univer-text-green-500','Plugin','setConfig','_apiKey$','配置步骤:','span','点击连接\x20MCP','on-line-icon','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','MCP\x20已断开','useState','univer.plus','保存配置','string','url(#$1','attrs','mcpConfig.apiApplyInfo.univerAiLabel','showConfigPanel','clsx','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','defineProperty','Failed\x20to\x20save\x20configuration','xlink:href','mcpConfig.note1','univer-text-blue-600','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','UniverMCPUIPlugin','jsxs','40swNSLX','mcpConfig.connectionError.networkError','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','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','registerComponent','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\x20ID','colorChannel1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.sessionIdDescription','_initializeCommands','LocaleService','clipPath','univer-bg-red-500','mcpConfig.validation.invalidConfig','BuiltInUIPart','subscribeConfigValue$','_config$','prototype','_loadStoredApiKey','最大重试次数','CheckMarkIcon','MCP_UI_PLUGIN','MCPStatusDisplay','mcpConfig.apiKeyHint','API\x20Key','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','register','_logService','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','https://console.univer.plus'];_0x2090=function(){return _0x17aec0;};return _0x2090();}
|
|
1
|
+
function _0x462a(_0x340496,_0x5834ec){_0x340496=_0x340496-0x1c8;const _0x437dfe=_0x437d();let _0x462a46=_0x437dfe[_0x340496];return _0x462a46;}(function(_0x5ce36d,_0x434145){const _0x4e065e=_0x462a,_0x241434=_0x5ce36d();while(!![]){try{const _0x276c2a=parseInt(_0x4e065e(0x204))/0x1+-parseInt(_0x4e065e(0x243))/0x2+parseInt(_0x4e065e(0x1d6))/0x3+-parseInt(_0x4e065e(0x248))/0x4+parseInt(_0x4e065e(0x35e))/0x5+parseInt(_0x4e065e(0x362))/0x6+-parseInt(_0x4e065e(0x350))/0x7*(-parseInt(_0x4e065e(0x346))/0x8);if(_0x276c2a===_0x434145)break;else _0x241434['push'](_0x241434['shift']());}catch(_0x55c0a7){_0x241434['push'](_0x241434['shift']());}}}(_0x437d,0x20c74),function(_0x5b9697,_0x58a2dd){const _0x2c544c=_0x462a;typeof exports==_0x2c544c(0x28e)&&typeof module<'u'?_0x58a2dd(exports,require(`@univerjs/core`),require(`@univerjs-pro/mcp`),require(`@univerjs/design`),require(`@univerjs/ui`),require(`rxjs`),require(`react`),require(`react/jsx-runtime`),require(`@univerjs/network`)):typeof define==_0x2c544c(0x1d2)&&define[_0x2c544c(0x271)]?define([_0x2c544c(0x239),'@univerjs/core',_0x2c544c(0x2f2),_0x2c544c(0x2b7),_0x2c544c(0x2c6),_0x2c544c(0x354),_0x2c544c(0x34b),'react/jsx-runtime',_0x2c544c(0x2fd)],_0x58a2dd):(_0x5b9697=typeof globalThis<'u'?globalThis:_0x5b9697||self,_0x58a2dd(_0x5b9697[_0x2c544c(0x34c)]={},_0x5b9697[_0x2c544c(0x2e1)],_0x5b9697[_0x2c544c(0x335)],_0x5b9697['UniverDesign'],_0x5b9697[_0x2c544c(0x2ff)],_0x5b9697[_0x2c544c(0x354)],_0x5b9697['React'],_0x5b9697[_0x2c544c(0x319)],_0x5b9697[_0x2c544c(0x203)]));}(this,function(_0x54b705,_0x1911b9,_0x4892eb,_0x18bd2a,_0x18c29b,_0x2c14c0,_0x477a26,_0x3edaaa,_0x44589b){const _0x1abd98=_0x462a;Object['defineProperty'](_0x54b705,Symbol[_0x1abd98(0x1cf)],{'value':_0x1abd98(0x20f)});function _0x38e7b4({ref:_0x547034,..._0x5a3920}){const _0x25d496=_0x1abd98;let {icon:_0xaa6039,id:_0x163784,className:_0x2385f6,extend:_0x38829a,..._0xa6bd39}=_0x5a3920,_0x265c80=(_0x25d496(0x216)+_0x163784+'\x20'+(_0x2385f6||''))['trim'](),_0x5c5113=(0x0,_0x477a26[_0x25d496(0x229)])('_'+_0x539851());return _0x4058b9(_0xaa6039,''+_0x163784,{'defIds':_0xaa6039['defIds'],'idSuffix':_0x5c5113['current']},{'ref':_0x547034,'className':_0x265c80,..._0xa6bd39},_0x38829a);}function _0x4058b9(_0x56d980,_0x373de7,_0x31cab4,_0x1fc70a,_0x1f11c1){const _0x3e9f9e=_0x1abd98;return(0x0,_0x477a26[_0x3e9f9e(0x2be)])(_0x56d980[_0x3e9f9e(0x24d)],{'key':_0x373de7,..._0x29122b(_0x56d980,_0x31cab4,_0x1f11c1),..._0x1fc70a},(_0x2322cd(_0x56d980,_0x31cab4)['children']||[])[_0x3e9f9e(0x2a5)]((_0x439654,_0x2b6fbe)=>_0x4058b9(_0x439654,_0x373de7+'-'+_0x56d980[_0x3e9f9e(0x24d)]+'-'+_0x2b6fbe,_0x31cab4,void 0x0,_0x1f11c1)));}function _0x29122b(_0x2bd4b2,_0xc2f63b,_0x40514d){const _0x318d7c=_0x1abd98;let _0xeb95c0={..._0x2bd4b2['attrs']};_0x40514d!=null&&_0x40514d[_0x318d7c(0x330)]&&_0xeb95c0['fill']==='colorChannel1'&&(_0xeb95c0[_0x318d7c(0x246)]=_0x40514d['colorChannel1']),_0x2bd4b2[_0x318d7c(0x24d)]===_0x318d7c(0x315)&&_0xeb95c0['id']&&(_0xeb95c0['id']+=_0xc2f63b[_0x318d7c(0x263)]),Object[_0x318d7c(0x2f6)](_0xeb95c0)[_0x318d7c(0x259)](([_0x1de542,_0x47a390])=>{const _0x5a9852=_0x318d7c;_0x1de542===_0x5a9852(0x315)&&typeof _0x47a390=='string'&&(_0xeb95c0[_0x1de542]=_0x47a390[_0x5a9852(0x253)](/url\(#(.*)\)/,_0x5a9852(0x275)+_0xc2f63b[_0x5a9852(0x263)]+')'));});let {defIds:_0x27e138}=_0xc2f63b;return!_0x27e138||_0x27e138[_0x318d7c(0x299)]===0x0?_0xeb95c0:(_0x2bd4b2['tag']==='use'&&_0xeb95c0['xlink:href']&&(_0xeb95c0[_0x318d7c(0x2cf)]+=_0xc2f63b[_0x318d7c(0x263)]),Object[_0x318d7c(0x2f6)](_0xeb95c0)[_0x318d7c(0x259)](([_0x26b2c6,_0x795f6f])=>{const _0xc001b6=_0x318d7c;typeof _0x795f6f=='string'&&(_0xeb95c0[_0x26b2c6]=_0x795f6f[_0xc001b6(0x253)](/url\(#(.*)\)/,'url(#$1'+_0xc2f63b[_0xc001b6(0x263)]+')'));}),_0xeb95c0);}function _0x2322cd(_0x58cc8f,_0x1af29c){const _0xd24eaf=_0x1abd98;var _0x43ed88;let {defIds:_0x5f1903}=_0x1af29c;return!_0x5f1903||_0x5f1903[_0xd24eaf(0x299)]===0x0?_0x58cc8f:_0x58cc8f[_0xd24eaf(0x24d)]===_0xd24eaf(0x32e)&&(_0x43ed88=_0x58cc8f['children'])!=null&&_0x43ed88[_0xd24eaf(0x299)]?{..._0x58cc8f,'children':_0x58cc8f['children']['map'](_0x18be8b=>typeof _0x18be8b[_0xd24eaf(0x207)]['id']==_0xd24eaf(0x2db)&&_0x5f1903&&_0x5f1903[_0xd24eaf(0x24a)](_0x18be8b[_0xd24eaf(0x207)]['id'])?{..._0x18be8b,'attrs':{..._0x18be8b['attrs'],'id':_0x18be8b[_0xd24eaf(0x207)]['id']+_0x1af29c['idSuffix']}}:_0x18be8b)}:_0x58cc8f;}function _0x539851(){const _0x535795=_0x1abd98;return Math[_0x535795(0x31b)]()['toString'](0x24)['substring'](0x2,0x8);}_0x38e7b4[_0x1abd98(0x1e9)]=_0x1abd98(0x302);let _0xbd3d9b={'tag':_0x1abd98(0x212),'attrs':{'xmlns':_0x1abd98(0x265),'fill':_0x1abd98(0x304),'viewBox':'0\x200\x2016\x2016','width':_0x1abd98(0x1d9),'height':'1em'},'children':[{'tag':_0x1abd98(0x277),'attrs':{'fill':'currentColor','d':_0x1abd98(0x32f),'fillRule':'evenodd','clipRule':_0x1abd98(0x359)}}]},_0x1c991e=(0x0,_0x477a26[_0x1abd98(0x2b4)])(function(_0x992ecf,_0xaf37c8){const _0x3443e4=_0x1abd98;return(0x0,_0x477a26[_0x3443e4(0x2be)])(_0x38e7b4,Object[_0x3443e4(0x27c)]({},_0x992ecf,{'id':_0x3443e4(0x22d),'ref':_0xaf37c8,'icon':_0xbd3d9b}));});_0x1c991e[_0x1abd98(0x1e9)]=_0x1abd98(0x29a);let _0x2305e8={'tag':_0x1abd98(0x212),'attrs':{'xmlns':_0x1abd98(0x265),'fill':'none','viewBox':_0x1abd98(0x23d),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x1abd98(0x236),'d':_0x1abd98(0x25f)}}]},_0x3eefb1=(0x0,_0x477a26[_0x1abd98(0x2b4)])(function(_0x18cf0a,_0x1d431d){const _0x52d5a8=_0x1abd98;return(0x0,_0x477a26['createElement'])(_0x38e7b4,Object[_0x52d5a8(0x27c)]({},_0x18cf0a,{'id':_0x52d5a8(0x262),'ref':_0x1d431d,'icon':_0x2305e8}));});_0x3eefb1['displayName']=_0x1abd98(0x25c);let _0x4b6903={'tag':_0x1abd98(0x212),'attrs':{'xmlns':_0x1abd98(0x265),'fill':'none','viewBox':_0x1abd98(0x23d),'width':_0x1abd98(0x1d9),'height':_0x1abd98(0x1d9)},'children':[{'tag':_0x1abd98(0x277),'attrs':{'fill':_0x1abd98(0x236),'d':_0x1abd98(0x25b)}},{'tag':_0x1abd98(0x277),'attrs':{'fill':_0x1abd98(0x236),'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':_0x1abd98(0x277),'attrs':{'fill':_0x1abd98(0x236),'d':_0x1abd98(0x228),'fillRule':_0x1abd98(0x359),'clipRule':_0x1abd98(0x359)}}]},_0x250693=(0x0,_0x477a26[_0x1abd98(0x2b4)])(function(_0x326ba5,_0x9a20ac){const _0x3c5f06=_0x1abd98;return(0x0,_0x477a26['createElement'])(_0x38e7b4,Object[_0x3c5f06(0x27c)]({},_0x326ba5,{'id':'help-icon','ref':_0x9a20ac,'icon':_0x4b6903}));});_0x250693[_0x1abd98(0x1e9)]='HelpIcon';let _0x3cb1c7={'tag':'svg','attrs':{'xmlns':_0x1abd98(0x265),'fill':_0x1abd98(0x304),'viewBox':_0x1abd98(0x23d),'width':_0x1abd98(0x1d9),'height':_0x1abd98(0x1d9)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x1abd98(0x277),'attrs':{'stroke':'currentColor','d':_0x1abd98(0x1ec),'strokeLinecap':'round','strokeLinejoin':_0x1abd98(0x1ea),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1abd98(0x295),'attrs':{'id':_0x1abd98(0x2fa)},'children':[{'tag':_0x1abd98(0x277),'attrs':{'fill':_0x1abd98(0x244),'d':_0x1abd98(0x2f5)}}]}]}],'defIds':[_0x1abd98(0x2fa)]},_0x5b1c76=(0x0,_0x477a26[_0x1abd98(0x2b4)])(function(_0x3d2c37,_0x302aa8){const _0x2b628f=_0x1abd98;return(0x0,_0x477a26[_0x2b628f(0x2be)])(_0x38e7b4,Object['assign']({},_0x3d2c37,{'id':_0x2b628f(0x26e),'ref':_0x302aa8,'icon':_0x3cb1c7}));});_0x5b1c76[_0x1abd98(0x1e9)]=_0x1abd98(0x27b);let _0x486e9b={'tag':_0x1abd98(0x212),'attrs':{'xmlns':_0x1abd98(0x265),'fill':_0x1abd98(0x304),'viewBox':_0x1abd98(0x1fb),'width':_0x1abd98(0x1d9),'height':_0x1abd98(0x1d9)},'children':[{'tag':'g','attrs':{'clipPath':_0x1abd98(0x285)},'children':[{'tag':'path','attrs':{'stroke':_0x1abd98(0x236),'d':_0x1abd98(0x267),'strokeLinecap':_0x1abd98(0x1ea),'strokeLinejoin':_0x1abd98(0x1ea),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1abd98(0x295),'attrs':{'id':_0x1abd98(0x2b5)},'children':[{'tag':_0x1abd98(0x277),'attrs':{'fill':_0x1abd98(0x244),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x1abd98(0x2b5)]},_0x4796b4=(0x0,_0x477a26['forwardRef'])(function(_0x24940d,_0x5dbcca){const _0xa8fd26=_0x1abd98;return(0x0,_0x477a26['createElement'])(_0x38e7b4,Object[_0xa8fd26(0x27c)]({},_0x24940d,{'id':_0xa8fd26(0x2a8),'ref':_0x5dbcca,'icon':_0x486e9b}));});_0x4796b4['displayName']='OnLineIcon';function _0x4ab373(_0x2ee9ab){const _0x449805=_0x1abd98;var _0x19ea7d,_0x923cf9;let {mcpCoreConfig:_0x25cb15,onSave:_0x5d8a49,loading:_0x12bf0f=!0x1,config:_0x4f0c27,connectionStatus$:_0x267cc8,connectionError$:_0x4a44c5,currentApiKey$:_0x46d8a9,currentSessionId$:_0x242979}=_0x2ee9ab,_0x1eba53=(0x0,_0x18c29b[_0x449805(0x2cb)])(_0x1911b9['LocaleService']),_0x34f542=(0x0,_0x18c29b['useObservable'])(_0x267cc8,_0x4892eb[_0x449805(0x27e)][_0x449805(0x213)]),_0x2b5681=(0x0,_0x18c29b[_0x449805(0x338)])(_0x4a44c5,_0x4892eb[_0x449805(0x1d1)][_0x449805(0x33d)]),_0x48828c=(0x0,_0x18c29b[_0x449805(0x338)])(_0x242979,''),[_0x25af8c,_0x48d5e1]=(0x0,_0x477a26['useState'])((0x0,_0x18c29b[_0x449805(0x338)])(_0x46d8a9,'')||''),_0x307e7f=_0x4f0c27['showDeveloperTools']&&_0x25cb15[_0x449805(0x33b)]&&(_0x25cb15[_0x449805(0x33b)][_0x449805(0x24a)](_0x449805(0x303))||_0x25cb15[_0x449805(0x33b)][_0x449805(0x24a)](_0x449805(0x355))),_0x478463=(_0x19ea7d=_0x25cb15[_0x449805(0x33b)])==null?void 0x0:_0x19ea7d['includes'](_0x449805(0x303)),_0x2a4399=(_0x923cf9=_0x25cb15[_0x449805(0x33b)])==null?void 0x0:_0x923cf9['includes']('univer.ai'),_0x1ee938=_0x478463?_0x449805(0x252):_0x449805(0x2c9),_0x512885=_0x4f0c27[_0x449805(0x26f)]&&(_0x478463||_0x2a4399),[_0x499b78,_0x420c83]=(0x0,_0x477a26[_0x449805(0x249)])(!_0x25af8c['trim']()),_0x514f09=(_0x1398eb,_0x3c5f05)=>{const _0x17ba40=_0x449805;if(_0x3c5f05===_0x4892eb[_0x17ba40(0x1d1)][_0x17ba40(0x284)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x1398eb){case _0x4892eb[_0x17ba40(0x27e)][_0x17ba40(0x309)]:return _0x17ba40(0x2cd);case _0x4892eb[_0x17ba40(0x27e)][_0x17ba40(0x2aa)]:case _0x4892eb[_0x17ba40(0x27e)][_0x17ba40(0x343)]:return _0x17ba40(0x2e4);case _0x4892eb[_0x17ba40(0x27e)][_0x17ba40(0x219)]:return _0x17ba40(0x2f1);default:return _0x17ba40(0x1e0);}},_0x24a8a1=(_0x4a5102,_0x3d34ab)=>{const _0x59ef5f=_0x449805;if(_0x3d34ab===_0x4892eb[_0x59ef5f(0x1d1)][_0x59ef5f(0x284)])return'univer-bg-red-500';switch(_0x4a5102){case _0x4892eb[_0x59ef5f(0x27e)]['CONNECTED']:return _0x59ef5f(0x26a);case _0x4892eb[_0x59ef5f(0x27e)][_0x59ef5f(0x2aa)]:case _0x4892eb['MCPConnectionStatus'][_0x59ef5f(0x343)]:return _0x59ef5f(0x240);case _0x4892eb['MCPConnectionStatus'][_0x59ef5f(0x219)]:return _0x59ef5f(0x211);default:return'univer-bg-gray-500';}},_0x46ff5d=_0x23f5bf=>{const _0x374df1=_0x449805;switch(_0x23f5bf){case _0x4892eb[_0x374df1(0x27e)][_0x374df1(0x309)]:return _0x1eba53['t'](_0x374df1(0x2ca));case _0x4892eb['MCPConnectionStatus']['CONNECTING']:return _0x1eba53['t'](_0x374df1(0x21e));case _0x4892eb[_0x374df1(0x27e)][_0x374df1(0x219)]:return _0x1eba53['t'](_0x374df1(0x2dd));case _0x4892eb['MCPConnectionStatus'][_0x374df1(0x343)]:return _0x1eba53['t'](_0x374df1(0x325));default:return _0x1eba53['t'](_0x374df1(0x21c));}},_0x504eb7=_0x369d94=>{const _0x135251=_0x449805;switch(_0x369d94){case _0x4892eb[_0x135251(0x1d1)][_0x135251(0x284)]:return _0x1eba53['t'](_0x135251(0x23f));case _0x4892eb['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x1eba53['t'](_0x135251(0x1cc));case _0x4892eb[_0x135251(0x1d1)][_0x135251(0x341)]:return _0x1eba53['t'](_0x135251(0x230));case _0x4892eb[_0x135251(0x1d1)][_0x135251(0x358)]:return _0x1eba53['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2a7b20=(0x0,_0x477a26[_0x449805(0x218)])(()=>{_0x5d8a49({..._0x25cb15,'apiKey':_0x25af8c['trim'](),'enableAuth':!0x0});},[_0x25cb15,_0x25af8c,!0x0,_0x5d8a49]),_0x25e615=_0x25af8c[_0x449805(0x2d6)]()[_0x449805(0x299)]>0x0;return(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x202),'children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':_0x449805(0x33f),'children':(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x27d),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'className':'univer-text-white','children':'⚙'})}),(0x0,_0x3edaaa[_0x449805(0x264)])('div',{'children':(0x0,_0x3edaaa['jsx'])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x1eba53['t']('mcpConfig.description')})})]})}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':(0x0,_0x18bd2a[_0x449805(0x298)])(_0x449805(0x320),_0x514f09(_0x34f542,_0x2b5681)),'children':(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x349),'children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':(0x0,_0x18bd2a[_0x449805(0x298)])('univer-size-2\x20univer-rounded-full',_0x24a8a1(_0x34f542,_0x2b5681))}),(0x0,_0x3edaaa['jsx'])(_0x449805(0x1f7),{'className':_0x449805(0x293),'children':_0x46ff5d(_0x34f542)})]})}),_0x2b5681!==_0x4892eb[_0x449805(0x1d1)][_0x449805(0x33d)]&&(_0x34f542===_0x4892eb[_0x449805(0x27e)][_0x449805(0x219)]||_0x2b5681===_0x4892eb[_0x449805(0x1d1)][_0x449805(0x284)])&&(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x231),'children':(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x283),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])('span',{'className':_0x449805(0x1e8),'children':'⚠️'}),(0x0,_0x3edaaa['jsx'])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x504eb7(_0x2b5681)})]})})]}),(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':_0x449805(0x347),'children':(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':'univer-space-y-5','children':[(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':_0x449805(0x321),'children':[(0x0,_0x3edaaa['jsxs'])(_0x449805(0x24b),{'className':_0x449805(0x1d4),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'children':'🔑'}),'\x20',_0x1eba53['t']('mcpConfig.apiKey'),(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'className':_0x449805(0x288),'children':'*'}),_0x307e7f&&(0x0,_0x3edaaa[_0x449805(0x264)])('a',{'className':_0x449805(0x278),'title':_0x1eba53['t'](_0x449805(0x2b2)),'role':_0x449805(0x2d9),'onClick':()=>_0x420c83(!0x0),'children':(0x0,_0x3edaaa[_0x449805(0x264)])(_0x250693,{})})]}),(0x0,_0x3edaaa[_0x449805(0x264)])(_0x18bd2a['Input'],{'type':_0x449805(0x32a),'placeholder':_0x1eba53['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x25af8c,'disabled':_0x12bf0f,'autoComplete':_0x449805(0x25a),'onChange':_0x48d5e1}),(0x0,_0x3edaaa[_0x449805(0x264)])('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1eba53['t'](_0x449805(0x254))})]}),_0x307e7f&&_0x499b78&&(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'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':[(0x0,_0x3edaaa[_0x449805(0x264)])('a',{'className':'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','role':'button','onClick':()=>_0x420c83(!0x1),'children':(0x0,_0x3edaaa[_0x449805(0x264)])(_0x3eefb1,{'className':_0x449805(0x1e1)})}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x34a),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x297),'children':(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'className':_0x449805(0x31f),'children':'🚀'})}),(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':_0x449805(0x28d),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x1eba53['t'](_0x449805(0x2b2))}),(0x0,_0x3edaaa[_0x449805(0x264)])('p',{'className':_0x449805(0x201),'children':_0x1eba53['t'](_0x449805(0x2a7))}),(0x0,_0x3edaaa[_0x449805(0x264)])('div',{'className':_0x449805(0x35c),'children':_0x512885&&(0x0,_0x3edaaa['jsxs'])('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':_0x1ee938,'target':'_blank','rel':'noopener\x20noreferrer','children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x1f7),{'children':'🤖'}),_0x1eba53['t'](_0x449805(0x30f)),(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'className':_0x449805(0x361),'children':'↗'})]})}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x1d3),'children':['✨','\x20',_0x1eba53['t'](_0x449805(0x280))]})]})]})]}),_0x4f0c27[_0x449805(0x26f)]&&(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x2d8),'children':[(0x0,_0x3edaaa[_0x449805(0x24f)])('h4',{'className':_0x449805(0x334),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'children':'🔗'}),'\x20',_0x1eba53['t'](_0x449805(0x2bb))]}),(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':'univer-space-y-4','children':[(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':'univer-space-y-3','children':[(0x0,_0x3edaaa[_0x449805(0x264)])('p',{'className':_0x449805(0x30b),'children':_0x1eba53['t']('mcpConfig.configInstructions')}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x321),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])('div',{'className':_0x449805(0x289),'children':_0x1eba53['t'](_0x449805(0x23b))}),(0x0,_0x3edaaa['jsxs'])('div',{'className':_0x449805(0x2ef),'children':[(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x349),'children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x1f7),{'className':_0x449805(0x282),'children':'1'}),_0x1eba53['t']('mcpConfig.configStep1')]}),(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x3edaaa[_0x449805(0x264)])('span',{'className':_0x449805(0x282),'children':'2'}),_0x1eba53['t'](_0x449805(0x2fe))]}),(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x349),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x1eba53['t'](_0x449805(0x221))]})]})]})]}),(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x321),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x339),{'className':_0x449805(0x2ea),'children':JSON[_0x449805(0x208)]({'mcpServers':{'univer':{'url':_0x449805(0x2e9)+(_0x48828c||_0x449805(0x2e5)),'type':_0x449805(0x241),'headers':{'Authorization':_0x449805(0x301)+(_0x25af8c||_0x449805(0x35f))}}}},null,0x2)})})]}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':'univer-space-y-3','children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':_0x449805(0x289),'children':_0x1eba53['t'](_0x449805(0x209))}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':'univer-space-y-2','children':[(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x2ed)}),(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x337),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x1ef),'children':_0x449805(0x332)}),(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x2a4),'children':_0x1eba53['t'](_0x449805(0x272))})]})]}),(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x2ed)}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x337),'children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':_0x449805(0x1ef),'children':_0x449805(0x1fd)}),(0x0,_0x3edaaa[_0x449805(0x264)])('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1eba53['t'](_0x449805(0x30c))})]})]})]})]})]})]}),(0x0,_0x3edaaa['jsx'])(_0x18bd2a[_0x449805(0x327)],{'onClick':_0x2a7b20,'disabled':!_0x25e615||_0x12bf0f,'className':_0x449805(0x2a3),'children':_0x12bf0f?(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x1f7),{'className':_0x449805(0x349),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'children':'⟲'}),_0x1eba53['t']('mcpConfig.saving')]}):(0x0,_0x3edaaa[_0x449805(0x24f)])('span',{'className':_0x449805(0x349),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x1c991e,{}),_0x1eba53['t'](_0x449805(0x26b))]})}),(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x2ec),'children':(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':_0x449805(0x2d3),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'className':_0x449805(0x22f),'children':'💡'}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x1c8),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x2c0),'children':_0x449805(0x2c2)}),(0x0,_0x3edaaa['jsxs'])('div',{'children':['•',_0x1eba53['t']('mcpConfig.note1')]}),(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'children':['•',_0x1eba53['t'](_0x449805(0x26d))]})]})]})})]})})]});}let _0x2de6c4='mcp-ui.config';Symbol(_0x2de6c4);let _0x732be6={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x4c6961(_0xa6ecb5){'@babel/helpers - typeof';const _0x5bb381=_0x1abd98;return _0x4c6961=typeof Symbol==_0x5bb381(0x1d2)&&typeof Symbol['iterator']==_0x5bb381(0x29f)?function(_0x27297e){return typeof _0x27297e;}:function(_0xf8628a){const _0x472a9b=_0x5bb381;return _0xf8628a&&typeof Symbol=='function'&&_0xf8628a[_0x472a9b(0x2d5)]===Symbol&&_0xf8628a!==Symbol[_0x472a9b(0x306)]?_0x472a9b(0x29f):typeof _0xf8628a;},_0x4c6961(_0xa6ecb5);}function _0x3ce7ac(_0xeb5a4a,_0x5c1cb4){const _0x5b685a=_0x1abd98;if(_0x4c6961(_0xeb5a4a)!=_0x5b685a(0x28e)||!_0xeb5a4a)return _0xeb5a4a;var _0x5cb848=_0xeb5a4a[Symbol[_0x5b685a(0x245)]];if(_0x5cb848!==void 0x0){var _0x251c96=_0x5cb848['call'](_0xeb5a4a,_0x5c1cb4||_0x5b685a(0x2fc));if(_0x4c6961(_0x251c96)!=_0x5b685a(0x28e))return _0x251c96;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5c1cb4===_0x5b685a(0x2db)?String:Number)(_0xeb5a4a);}function _0xfc7c30(_0x3f9bae){const _0x4d7ef4=_0x1abd98;var _0x438585=_0x3ce7ac(_0x3f9bae,_0x4d7ef4(0x2db));return _0x4c6961(_0x438585)==_0x4d7ef4(0x29f)?_0x438585:_0x438585+'';}function _0x433eb1(_0x532dce,_0x258b1c,_0x2f8623){return(_0x258b1c=_0xfc7c30(_0x258b1c))in _0x532dce?Object['defineProperty'](_0x532dce,_0x258b1c,{'value':_0x2f8623,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x532dce[_0x258b1c]=_0x2f8623,_0x532dce;}function _0x295925(_0x33fd3c,_0x360fd6){return function(_0x19f80c,_0x33e322){_0x360fd6(_0x19f80c,_0x33e322,_0x33fd3c);};}function _0x1bc844(_0x506054,_0x773306,_0x46732a,_0x5ba8b1){const _0x41da4c=_0x1abd98;var _0x2e1a57=arguments[_0x41da4c(0x299)],_0x543f51=_0x2e1a57<0x3?_0x773306:_0x5ba8b1===null?_0x5ba8b1=Object[_0x41da4c(0x27f)](_0x773306,_0x46732a):_0x5ba8b1,_0x4ac7c7;if(typeof Reflect=='object'&&typeof Reflect[_0x41da4c(0x258)]==_0x41da4c(0x1d2))_0x543f51=Reflect['decorate'](_0x506054,_0x773306,_0x46732a,_0x5ba8b1);else{for(var _0x12c12f=_0x506054[_0x41da4c(0x299)]-0x1;_0x12c12f>=0x0;_0x12c12f--)(_0x4ac7c7=_0x506054[_0x12c12f])&&(_0x543f51=(_0x2e1a57<0x3?_0x4ac7c7(_0x543f51):_0x2e1a57>0x3?_0x4ac7c7(_0x773306,_0x46732a,_0x543f51):_0x4ac7c7(_0x773306,_0x46732a))||_0x543f51);}return _0x2e1a57>0x3&&_0x543f51&&Object[_0x41da4c(0x31e)](_0x773306,_0x46732a,_0x543f51),_0x543f51;}let _0x21b983=_0x1abd98(0x2bf),_0x5e5fd7=_0x1abd98(0x33e),_0x20adc2=class extends _0x1911b9[_0x1abd98(0x20d)]{constructor(_0x514a01,_0x3cfb29,_0x2eefb8,_0x30ff04,_0xfbf897,_0x45dedc,_0x44b96d,_0xcca52b,_0x524bf7,_0x3618d7){const _0xd35b9f=_0x1abd98;super(),this[_0xd35b9f(0x2d7)]=_0x514a01,this['_uiPartsService']=_0x3cfb29,this[_0xd35b9f(0x238)]=_0x2eefb8,this[_0xd35b9f(0x1eb)]=_0x30ff04,this[_0xd35b9f(0x328)]=_0xfbf897,this[_0xd35b9f(0x210)]=_0x45dedc,this[_0xd35b9f(0x2ba)]=_0x44b96d,this[_0xd35b9f(0x224)]=_0xcca52b,this[_0xd35b9f(0x261)]=_0x524bf7,this[_0xd35b9f(0x1db)]=_0x3618d7,_0x433eb1(this,_0xd35b9f(0x2c4),new _0x2c14c0[(_0xd35b9f(0x300))](!0x1)),_0x433eb1(this,_0xd35b9f(0x291),new _0x2c14c0[(_0xd35b9f(0x300))]({})),_0x433eb1(this,_0xd35b9f(0x1fe),new _0x2c14c0[(_0xd35b9f(0x300))]({})),_0x433eb1(this,_0xd35b9f(0x214),new _0x2c14c0[(_0xd35b9f(0x300))]('')),_0x433eb1(this,_0xd35b9f(0x31c),async _0x2d99ee=>{const _0x5b255f=_0xd35b9f;this[_0x5b255f(0x2c4)]['next'](!0x0);try{var _0x2315ad,_0x1fd969;let _0x12d661=await this[_0x5b255f(0x2dc)](_0x2d99ee);if(!_0x12d661[_0x5b255f(0x287)]){this['_messageService'][_0x5b255f(0x1e5)]({'type':_0x18bd2a[_0x5b255f(0x1f9)][_0x5b255f(0x1ca)],'content':_0x12d661[_0x5b255f(0x1f8)]||this[_0x5b255f(0x224)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2d99ee[_0x5b255f(0x21f)]?await this['_localStorageService'][_0x5b255f(0x1ce)](_0x21b983,_0x2d99ee[_0x5b255f(0x21f)][_0x5b255f(0x2d6)]()):await this[_0x5b255f(0x1eb)][_0x5b255f(0x29c)](_0x21b983),this[_0x5b255f(0x214)][_0x5b255f(0x1cb)](((_0x2315ad=_0x2d99ee[_0x5b255f(0x21f)])==null?void 0x0:_0x2315ad['trim']())||''),this[_0x5b255f(0x1db)][_0x5b255f(0x1e2)]({'Authorization':_0x5b255f(0x301)+((_0x1fd969=_0x2d99ee[_0x5b255f(0x21f)])==null?void 0x0:_0x1fd969['trim']())}),this[_0x5b255f(0x210)][_0x5b255f(0x1e5)]({'type':_0x18bd2a['MessageType'][_0x5b255f(0x1f5)],'content':this[_0x5b255f(0x224)]['t'](_0x5b255f(0x232))}),setTimeout(()=>{const _0x13ce50=_0x5b255f;this['_dialogService'][_0x13ce50(0x2c7)](_0x5e5fd7);},0x320);}catch(_0x30744c){this[_0x5b255f(0x261)][_0x5b255f(0x1ee)](_0x5b255f(0x32d),_0x30744c),this['_messageService']['show']({'type':_0x18bd2a[_0x5b255f(0x1f9)]['Error'],'content':this[_0x5b255f(0x224)]['t'](_0x5b255f(0x2e2))});}finally{this[_0x5b255f(0x2c4)][_0x5b255f(0x1cb)](!0x1);}}),this[_0xd35b9f(0x251)](),this['_loadStoredApiKey'](),this[_0xd35b9f(0x34d)]();}[_0x1abd98(0x220)](){const _0x4673ac=_0x1abd98;let _0xcb601a=this['_configService'][_0x4673ac(0x35d)](_0x2de6c4);_0xcb601a!=null&&_0xcb601a['showDeveloperTools']&&this['_dialogService']['open']({'id':_0x5e5fd7,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x4673ac(0x233)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x476936=_0x4673ac;this[_0x476936(0x328)]['close'](_0x5e5fd7);}});}[_0x1abd98(0x2ab)](){const _0x2c273f=_0x1abd98;return this[_0x2c273f(0x291)]['value'];}[_0x1abd98(0x34d)](){const _0x1fe9ea=_0x1abd98;this['disposeWithMe'](this['_componentManager']['register'](_0x1fe9ea(0x233),this[_0x1fe9ea(0x20e)]()));}[_0x1abd98(0x20e)](){const _0x1cbf44=_0x1abd98;return(0x0,_0x18c29b[_0x1cbf44(0x234)])(()=>{const _0x86c956=_0x1cbf44;var _0x4b28fd,_0x1648c3,_0x40d5a9;return(0x0,_0x3edaaa['jsx'])(_0x4ab373,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x86c956(0x291)][_0x86c956(0x290)],'currentApiKey$':this[_0x86c956(0x214)],'onSave':this[_0x86c956(0x31c)],'loading':this[_0x86c956(0x2c4)][_0x86c956(0x290)],'connectionStatus$':(_0x4b28fd=this[_0x86c956(0x1db)])==null?void 0x0:_0x4b28fd['connectionStatus$'],'connectionError$':(_0x1648c3=this[_0x86c956(0x1db)])==null?void 0x0:_0x1648c3['connectionError$'],'currentSessionId$':(_0x40d5a9=this[_0x86c956(0x1db)])==null?void 0x0:_0x40d5a9[_0x86c956(0x2f8)]});},this[_0x1cbf44(0x2d7)]);}[_0x1abd98(0x251)](){const _0x5cae34=_0x1abd98;this['disposeWithMe'](this[_0x5cae34(0x238)][_0x5cae34(0x2d2)](_0x4892eb[_0x5cae34(0x32c)])['subscribe'](_0x3ec8a3=>{const _0x1bbfb6=_0x5cae34;this['_mcpCoreConfig$'][_0x1bbfb6(0x1cb)](_0x3ec8a3||{});}));let _0x9590b4=this[_0x5cae34(0x238)]['getConfig'](_0x4892eb['MCP_PLUGIN_CONFIG_KEY']);this[_0x5cae34(0x291)][_0x5cae34(0x1cb)](_0x9590b4||{}),this[_0x5cae34(0x2f3)](this[_0x5cae34(0x238)][_0x5cae34(0x2d2)](_0x2de6c4)['subscribe'](_0x41c072=>{const _0x5882c8=_0x5cae34;this[_0x5882c8(0x1fe)][_0x5882c8(0x1cb)](_0x41c072||{});}));let _0x1ca79c=this['_configService'][_0x5cae34(0x35d)](_0x2de6c4);this[_0x5cae34(0x1fe)][_0x5cae34(0x1cb)](_0x1ca79c||{});}async[_0x1abd98(0x20a)](){const _0x277d00=_0x1abd98;let _0x38e0e1=this[_0x277d00(0x238)]['getConfig'](_0x2de6c4);if(!(_0x38e0e1!=null&&_0x38e0e1[_0x277d00(0x26f)]))return;let _0x39a31f=await this[_0x277d00(0x1eb)][_0x277d00(0x237)](_0x21b983);_0x39a31f&&(this[_0x277d00(0x1db)][_0x277d00(0x1e2)]({'Authorization':'Bearer\x20'+_0x39a31f}),this[_0x277d00(0x214)][_0x277d00(0x1cb)](_0x39a31f));}async[_0x1abd98(0x2dc)](_0x3a7ff6){const _0x49a80e=_0x1abd98;if(!_0x3a7ff6['apiKey']||_0x3a7ff6[_0x49a80e(0x21f)][_0x49a80e(0x2d6)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x49a80e(0x23a))};if(_0x3a7ff6['apiKey'][_0x49a80e(0x2d6)]()[_0x49a80e(0x299)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x49a80e(0x224)]['t'](_0x49a80e(0x340))};try{let _0x9c135f=await this['_injector'][_0x49a80e(0x2de)](_0x4892eb['MCPConnectionController'])['validateApiKey'](_0x3a7ff6[_0x49a80e(0x21f)]['trim']());return _0x9c135f[_0x49a80e(0x287)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x9c135f[_0x49a80e(0x1ee)]||this[_0x49a80e(0x224)]['t'](_0x49a80e(0x1d8))};}catch(_0x3e3163){return console[_0x49a80e(0x276)](_0x49a80e(0x1de),_0x3e3163),{'isValid':!0x0};}}};_0x20adc2=_0x1bc844([_0x295925(0x0,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x1911b9[_0x1abd98(0x2c8)])),_0x295925(0x1,_0x18c29b[_0x1abd98(0x2ad)]),_0x295925(0x2,_0x1911b9[_0x1abd98(0x28a)]),_0x295925(0x3,_0x1911b9[_0x1abd98(0x356)]),_0x295925(0x4,_0x18c29b[_0x1abd98(0x215)]),_0x295925(0x5,_0x18c29b[_0x1abd98(0x344)]),_0x295925(0x6,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x18c29b[_0x1abd98(0x33a)])),_0x295925(0x7,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x1911b9[_0x1abd98(0x311)])),_0x295925(0x8,_0x1911b9[_0x1abd98(0x217)]),_0x295925(0x9,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x4892eb[_0x1abd98(0x2df)]))],_0x20adc2);let _0x5f0af1={'id':_0x1abd98(0x2d0),'type':_0x1911b9[_0x1abd98(0x2c3)]['COMMAND'],'handler':async(_0x1e5477,_0x421648)=>(_0x1e5477[_0x1abd98(0x2de)](_0x20adc2)[_0x1abd98(0x220)](),!0x0)};function _0x6b5645(_0x1fe57b,_0x48eefa){const _0x390d94=_0x1abd98;switch(_0x1fe57b){case _0x4892eb['MCPConnectionStatus'][_0x390d94(0x213)]:return'mcpStatus.disconnected';case _0x4892eb[_0x390d94(0x27e)][_0x390d94(0x2aa)]:return _0x390d94(0x223);case _0x4892eb[_0x390d94(0x27e)][_0x390d94(0x309)]:return _0x390d94(0x32b);case _0x4892eb[_0x390d94(0x27e)][_0x390d94(0x219)]:switch(_0x48eefa){case _0x4892eb[_0x390d94(0x1d1)]['UNAUTHORIZED']:return'mcpStatus.unauthorized';case _0x4892eb[_0x390d94(0x1d1)][_0x390d94(0x2ac)]:return _0x390d94(0x2bd);case _0x4892eb[_0x390d94(0x1d1)]['NETWORK_ERROR']:return _0x390d94(0x307);case _0x4892eb['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x390d94(0x34f);default:return _0x390d94(0x270);}case _0x4892eb[_0x390d94(0x27e)][_0x390d94(0x343)]:return _0x390d94(0x1fc);default:return'mcpStatus.unknown';}}function _0x224952(_0x374126,_0x4f4c18,_0x53b175,_0x2bdaf0=!0x0){const _0x5819e3=_0x1abd98;let _0x38e616=_0x6b5645(_0x374126,_0x4f4c18),_0x1edd0d=_0x53b175['t'](_0x38e616);return _0x2bdaf0?_0x374126===_0x4892eb[_0x5819e3(0x27e)][_0x5819e3(0x213)]&&_0x4f4c18===_0x4892eb[_0x5819e3(0x1d1)]['UNAUTHORIZED']?_0x1edd0d+_0x5819e3(0x34e)+_0x53b175['t'](_0x5819e3(0x29b)):_0x374126===_0x4892eb[_0x5819e3(0x27e)][_0x5819e3(0x309)]?''+_0x1edd0d:_0x374126===_0x4892eb[_0x5819e3(0x27e)][_0x5819e3(0x213)]||_0x374126===_0x4892eb[_0x5819e3(0x27e)][_0x5819e3(0x219)]?_0x1edd0d+_0x5819e3(0x34e)+_0x53b175['t']('mcpStatus.clickToConnect'):_0x1edd0d:_0x1edd0d;}function _0x48b546(_0x561574){const _0x55dda0=_0x1abd98;switch(_0x561574){case _0x4892eb[_0x55dda0(0x27e)][_0x55dda0(0x309)]:return'univer-text-green-500';case _0x4892eb[_0x55dda0(0x27e)][_0x55dda0(0x2aa)]:case _0x4892eb['MCPConnectionStatus'][_0x55dda0(0x343)]:return _0x55dda0(0x2da);case _0x4892eb[_0x55dda0(0x27e)]['FAILED']:case _0x4892eb[_0x55dda0(0x27e)][_0x55dda0(0x213)]:return _0x55dda0(0x288);default:return'univer-text-gray-500';}}function _0x1b446a(_0x167fdb){const _0x1896b0=_0x1abd98;let {status$:_0x156154,error$:_0x4fd206,onConfigure:_0x1e7a01,showClickable:_0x21b778=!0x0}=_0x167fdb,_0x485c0f=(0x0,_0x18c29b[_0x1896b0(0x338)])(_0x156154,_0x4892eb['MCPConnectionStatus'][_0x1896b0(0x213)]),_0x45ea23=(0x0,_0x18c29b[_0x1896b0(0x338)])(_0x4fd206,_0x4892eb[_0x1896b0(0x1d1)][_0x1896b0(0x33d)]),_0x13ff54=(0x0,_0x18c29b[_0x1896b0(0x2cb)])(_0x1911b9[_0x1896b0(0x311)]),_0xd9a0e7=_0x485c0f===_0x4892eb['MCPConnectionStatus'][_0x1896b0(0x309)];_0x485c0f===_0x4892eb[_0x1896b0(0x27e)][_0x1896b0(0x2aa)]||_0x4892eb[_0x1896b0(0x27e)][_0x1896b0(0x343)];let _0x12c7e2=_0x13ff54['t'](_0x6b5645(_0x485c0f,_0x45ea23)),_0x1da30b=_0x224952(_0x485c0f,_0x45ea23,_0x13ff54,_0x21b778),_0x4f8cb3=_0x48b546(_0x485c0f),_0x5d51b1=_0xd9a0e7?(0x0,_0x3edaaa['jsx'])(_0x4796b4,{}):(0x0,_0x3edaaa['jsx'])(_0x5b1c76,{}),_0x368e3f=(0x0,_0x477a26[_0x1896b0(0x218)])(()=>{_0x21b778&&_0x1e7a01&&_0x1e7a01();},[_0x21b778,_0x1e7a01]);function _0x3d361a(){const _0xe2f22b=_0x1896b0;return(0x0,_0x3edaaa['jsxs'])(_0xe2f22b(0x200),{'className':(0x0,_0x18bd2a['clsx'])('univer-flex\x20univer-items-center',_0x21b778&&_0x1e7a01&&_0xe2f22b(0x2f4)),'role':'button','onClick':_0x21b778&&_0x1e7a01?_0x368e3f:void 0x0,'children':[(0x0,_0x3edaaa[_0xe2f22b(0x264)])(_0xe2f22b(0x200),{'className':(0x0,_0x18bd2a[_0xe2f22b(0x298)])(_0xe2f22b(0x286),_0x4f8cb3),'children':_0x5d51b1}),(0x0,_0x3edaaa[_0xe2f22b(0x264)])(_0xe2f22b(0x200),{'className':_0xe2f22b(0x313),'children':_0x12c7e2})]});}return(0x0,_0x3edaaa[_0x1896b0(0x264)])(_0x18bd2a[_0x1896b0(0x357)],{'title':_0x1da30b,'placement':_0x1896b0(0x353),'children':_0x3d361a()});}let _0x4ec1b0=class extends _0x1911b9[_0x1abd98(0x20d)]{constructor(_0x3cf559,_0x1af7bc,_0x457b42,_0x1361b2){const _0x4667dd=_0x1abd98;super(),this[_0x4667dd(0x2d7)]=_0x3cf559,this[_0x4667dd(0x2e0)]=_0x1af7bc,this[_0x4667dd(0x322)]=_0x457b42,this[_0x4667dd(0x238)]=_0x1361b2,this['_initAutoConnect'](),this[_0x4667dd(0x250)]();}[_0x1abd98(0x308)](){const _0x34a51b=_0x1abd98;let _0x566430=this[_0x34a51b(0x238)][_0x34a51b(0x35d)](_0x2de6c4);_0x566430!=null&&_0x566430['showDeveloperTools']&&(this[_0x34a51b(0x2e0)][_0x34a51b(0x22b)]=!0x1);}['_initStatusComponent'](){const _0x27aa61=_0x1abd98;let _0x296d57=this[_0x27aa61(0x238)][_0x27aa61(0x35d)](_0x2de6c4);(_0x296d57==null?void 0x0:_0x296d57[_0x27aa61(0x296)])!==!0x1&&this[_0x27aa61(0x2f3)](this['_uiPartsService'][_0x27aa61(0x29d)](_0x18c29b[_0x27aa61(0x2ce)][_0x27aa61(0x35a)],()=>{const _0x5d0c23=_0x27aa61;var _0x39dc85;return(0x0,_0x18c29b['connectInjector'])(_0x4b32d9({'status$':this[_0x5d0c23(0x2e0)][_0x5d0c23(0x273)],'error$':this[_0x5d0c23(0x2e0)][_0x5d0c23(0x1f0)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x39dc85=_0x296d57==null?void 0x0:_0x296d57[_0x5d0c23(0x26f)])==null?!0x1:_0x39dc85}),this[_0x5d0c23(0x2d7)]);}));}[_0x1abd98(0x1ff)](){const _0x198b31=_0x1abd98;this[_0x198b31(0x2d7)]['get'](_0x20adc2)['showConfigPanel']();}};_0x4ec1b0=_0x1bc844([_0x295925(0x0,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x1911b9[_0x1abd98(0x2c8)])),_0x295925(0x1,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x4892eb[_0x1abd98(0x2df)])),_0x295925(0x2,_0x18c29b[_0x1abd98(0x2ad)]),_0x295925(0x3,_0x1911b9[_0x1abd98(0x28a)])],_0x4ec1b0);function _0x4b32d9(_0x22dbc9){let {status$:_0xf771e5,error$:_0x53089d,onConfigure:_0x4bf4b2,showClickable:_0x554e17}=_0x22dbc9;return function(){const _0x48f92e=_0x462a;return(0x0,_0x3edaaa[_0x48f92e(0x264)])(_0x1b446a,{'status$':_0xf771e5,'error$':_0x53089d,'onConfigure':_0x4bf4b2,'showClickable':_0x554e17});};}function _0x489e72(_0x4103d3){const _0x4d410d=_0x1abd98;return{'id':_0x5f0af1['id'],'type':_0x18c29b[_0x4d410d(0x31a)][_0x4d410d(0x25e)],'icon':_0x4d410d(0x305),'title':'mcpConfig.title','tooltip':_0x4d410d(0x2f0)};}let _0x46cc52={[_0x18c29b[_0x1abd98(0x2e8)]['OTHERS']]:{[_0x5f0af1['id']]:{'order':0xa,'menuItemFactory':_0x489e72}}},_0x1abfd1=class extends _0x1911b9[_0x1abd98(0x20d)]{constructor(_0x50b42a,_0x848ced){const _0x236424=_0x1abd98;super(),this[_0x236424(0x21a)]=_0x50b42a,this[_0x236424(0x292)]=_0x848ced,this['_initializeCommands'](),this['_initializeMenus']();}[_0x1abd98(0x1f6)](){[_0x5f0af1]['forEach'](_0x125339=>{const _0x3962f9=_0x462a;this[_0x3962f9(0x2f3)](this['_commandService'][_0x3962f9(0x33c)](_0x125339));});}[_0x1abd98(0x1f2)](){const _0x2e346d=_0x1abd98;this[_0x2e346d(0x292)][_0x2e346d(0x30e)](_0x46cc52);}};_0x1abfd1=_0x1bc844([_0x295925(0x0,_0x1911b9[_0x1abd98(0x2b6)]),_0x295925(0x1,_0x18c29b[_0x1abd98(0x25d)])],_0x1abfd1);let _0x308166={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1abd98(0x2ee),'connected':_0x1abd98(0x1f4),'failed':'MCP\x20Connection\x20Failed','retrying':_0x1abd98(0x256),'unknown':_0x1abd98(0x360),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1abd98(0x24c),'networkError':_0x1abd98(0x31d),'maxRetriesExceeded':_0x1abd98(0x1dc),'clickToConnect':_0x1abd98(0x2b8),'clickToConfigure':_0x1abd98(0x1cd)},'mcpConfig':{'title':_0x1abd98(0x331),'description':_0x1abd98(0x23c),'apiKey':_0x1abd98(0x1c9),'apiKeyPlaceholder':_0x1abd98(0x310),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1abd98(0x1dd),'enableAuthHint':_0x1abd98(0x318),'connectionInfo':_0x1abd98(0x2e6),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1abd98(0x28c),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1abd98(0x1da),'configStep3':_0x1abd98(0x1e6),'sessionId':_0x1abd98(0x28b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x1abd98(0x2bc),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1abd98(0x26c),'save':'Save\x20Configuration','saving':_0x1abd98(0x27a),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1abd98(0x1d5),'configSaved':_0x1abd98(0x316),'configError':_0x1abd98(0x29e),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1abd98(0x2ae),'univerAiLabel':_0x1abd98(0x2b9),'getStarted':_0x1abd98(0x329)},'validation':{'apiKeyRequired':_0x1abd98(0x2eb),'apiKeyTooShort':_0x1abd98(0x30a),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1abd98(0x2a0)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x1abd98(0x351),'failed':_0x1abd98(0x21b),'retrying':_0x1abd98(0x2c5)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1abd98(0x348)}}},_0x35947b={'mcpStatus':{'disconnected':_0x1abd98(0x260),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x1abd98(0x1ed),'unknown':_0x1abd98(0x326),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x1abd98(0x317),'networkError':_0x1abd98(0x324),'maxRetriesExceeded':_0x1abd98(0x323),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x1abd98(0x2b0)},'mcpConfig':{'title':_0x1abd98(0x1e3),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x1abd98(0x21d),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x1abd98(0x227),'enableAuth':_0x1abd98(0x1e4),'enableAuthHint':_0x1abd98(0x1f1),'connectionInfo':_0x1abd98(0x35b),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x1abd98(0x2a6),'configStepTitle':_0x1abd98(0x1f3),'configStep1':_0x1abd98(0x2d4),'configStep2':_0x1abd98(0x2af),'configStep3':_0x1abd98(0x2d1),'sessionId':'会话ID','sessionIdDescription':_0x1abd98(0x20b),'authorizationDescription':_0x1abd98(0x2cc),'configParameters':_0x1abd98(0x2a9),'maxRetries':_0x1abd98(0x281),'save':'保存配置','saving':_0x1abd98(0x2a1),'note1':_0x1abd98(0x266),'note2':_0x1abd98(0x28f),'configSaved':_0x1abd98(0x205),'configError':_0x1abd98(0x279),'apiApplyInfo':{'title':_0x1abd98(0x333),'description':_0x1abd98(0x2f9),'univerAiLabel':_0x1abd98(0x269),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x1abd98(0x23e),'apiKeyTooShort':_0x1abd98(0x2f7),'invalidConfig':_0x1abd98(0x1d7),'invalidApiKey':_0x1abd98(0x2e3)},'connectionStatus':{'disconnected':_0x1abd98(0x257),'connecting':_0x1abd98(0x206),'connected':_0x1abd98(0x225),'failed':_0x1abd98(0x226),'retrying':_0x1abd98(0x345)},'connectionError':{'unauthorized':_0x1abd98(0x2c1),'sessionOccupied':_0x1abd98(0x1df),'networkError':_0x1abd98(0x352),'maxRetriesExceeded':_0x1abd98(0x1e7)}}};var _0x5b5e5c=_0x1abd98(0x274),_0x2cb732=_0x1abd98(0x2b3);let _0x12b8be=class extends _0x1911b9[_0x1abd98(0x24e)]{constructor(_0x41e2c8=_0x732be6,_0x17cae7,_0x1c90cc,_0x47d913,_0x422e8e,_0xa767da){const _0x70ddd5=_0x1abd98;super(),this[_0x70ddd5(0x30d)]=_0x41e2c8,this[_0x70ddd5(0x2d7)]=_0x17cae7,this['_configService']=_0x1c90cc,this[_0x70ddd5(0x322)]=_0x47d913,this[_0x70ddd5(0x1eb)]=_0x422e8e,this[_0x70ddd5(0x224)]=_0xa767da;let {..._0x10287a}=(0x0,_0x1911b9[_0x70ddd5(0x268)])({},_0x732be6,this[_0x70ddd5(0x30d)]);this[_0x70ddd5(0x238)][_0x70ddd5(0x242)](_0x2de6c4,_0x10287a);}async[_0x1abd98(0x312)](){const _0x1e7438=_0x1abd98;let _0x1a610e=[[_0x4ec1b0],[_0x20adc2],[_0x1abfd1]];this[_0x1e7438(0x2d7)][_0x1e7438(0x336)](_0x44589b[_0x1e7438(0x22a)])||_0x1a610e[_0x1e7438(0x2e7)]([_0x44589b[_0x1e7438(0x22a)],{'useClass':_0x44589b[_0x1e7438(0x222)]}]),_0x1a610e[_0x1e7438(0x259)](_0x7651a9=>this[_0x1e7438(0x2d7)][_0x1e7438(0x1d0)](_0x7651a9)),this[_0x1e7438(0x2d7)]['get'](_0x4ec1b0),this['_injector']['get'](_0x20adc2),this[_0x1e7438(0x2d7)][_0x1e7438(0x2de)](_0x1abfd1);}};_0x433eb1(_0x12b8be,_0x1abd98(0x247),_0x1abd98(0x314)),_0x433eb1(_0x12b8be,_0x1abd98(0x255),_0x5b5e5c),_0x433eb1(_0x12b8be,_0x1abd98(0x235),_0x2cb732),_0x12b8be=_0x1bc844([(0x0,_0x1911b9[_0x1abd98(0x2b1)])(_0x4892eb[_0x1abd98(0x2fb)]),_0x295925(0x1,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x1911b9[_0x1abd98(0x2c8)])),_0x295925(0x2,_0x1911b9[_0x1abd98(0x28a)]),_0x295925(0x3,_0x18c29b[_0x1abd98(0x2ad)]),_0x295925(0x4,_0x1911b9[_0x1abd98(0x356)]),_0x295925(0x5,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x1911b9['LocaleService']))],_0x12b8be),_0x54b705['MCPConfigPanel']=_0x4ab373,Object[_0x1abd98(0x31e)](_0x54b705,_0x1abd98(0x20c),{'enumerable':!0x0,'get':function(){return _0x20adc2;}}),Object[_0x1abd98(0x31e)](_0x54b705,_0x1abd98(0x2a2),{'enumerable':!0x0,'get':function(){return _0x4ec1b0;}}),_0x54b705[_0x1abd98(0x294)]=_0x1b446a,Object[_0x1abd98(0x31e)](_0x54b705,'MCPUIMenuController',{'enumerable':!0x0,'get':function(){return _0x1abfd1;}}),_0x54b705['OpenMCPConfigPanelCommand']=_0x5f0af1,Object[_0x1abd98(0x31e)](_0x54b705,_0x1abd98(0x22c),{'enumerable':!0x0,'get':function(){return _0x12b8be;}}),_0x54b705[_0x1abd98(0x342)]=_0x308166,_0x54b705[_0x1abd98(0x1fa)]=_0x35947b;}));function _0x437d(){const _0x1af4d9=['white','toPrimitive','fill','pluginName','218744tcsidy','useState','includes','label','MCP:\x20Session\x20ID\x20Occupied','tag','Plugin','jsxs','_initStatusComponent','_initConfigSync','https://console.univer.plus','replace','mcpConfig.apiKeyHint','packageName','MCP\x20Retrying...','未连接','decorate','forEach','off','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','CloseIcon','IMenuManagerService','BUTTON','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','MCP\x20已断开','_logService','close-icon','idSuffix','jsx','http://www.w3.org/2000/svg','配置更改将立即生效','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','merge','Univer\x20AI\x20控制台','univer-bg-green-500','mcpConfig.save','Max\x20Retries','mcpConfig.note2','off-line-icon','showDeveloperTools','mcpStatus.failed','amd','mcpConfig.sessionIdDescription','connectionStatus$','@univerjs-pro/mcp-ui','url(#$1','warn','path','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','配置保存失败','Saving...','OffLineIcon','assign','univer-flex\x20univer-items-center\x20univer-gap-3','MCPConnectionStatus','getOwnPropertyDescriptor','mcpConfig.apiApplyInfo.getStarted','最大重试次数','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex\x20univer-items-start\x20univer-gap-2','UNAUTHORIZED','url(#on-line-icon_clip0_910_349)','univer-mr-2\x20univer-flex\x20univer-text-xl','isValid','univer-text-red-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','IConfigService','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-flex-1','object','您的\x20API\x20密钥安全存储在本地存储中','value','_mcpCoreConfig$','_menuManagerService','univer-text-sm\x20univer-font-medium','MCPStatusDisplay','clipPath','showStatus','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','clsx','length','CheckMarkIcon','mcpStatus.clickToConfigure','removeItem','registerComponent','Failed\x20to\x20save\x20configuration','symbol','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','保存中...','MCPConnectionUIController','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-xs\x20univer-text-gray-500','map','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpConfig.apiApplyInfo.description','on-line-icon','配置参数:','CONNECTING','getCurrentConfig','SESSION_ID_OCCUPIED','IUIPartsService','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','将配置添加到您的\x20MCP\x20客户端设置文件中','点击配置\x20MCP','DependentOn','mcpConfig.apiApplyInfo.title','0.21.0','forwardRef','on-line-icon_clip0_910_349','ICommandService','@univerjs/design','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','_componentManager','mcpConfig.connectionInfo','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.sessionOccupied','createElement','mcp.apiKey','univer-font-medium','权限验证失败,请检查您的\x20API\x20密钥','Configuration\x20Notes:','CommandType','_loading$','Retrying...','@univerjs/ui','close','Injector','https://console.univer.ai','mcpConfig.connectionStatus.connected','useDependency','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','BuiltInUIPart','xlink:href','mcp-ui.command.openConfigPanel','重启您的\x20MCP\x20客户端以使配置生效','subscribeConfigValue$','univer-flex\x20univer-gap-3','复制以下\x20JSON\x20配置','constructor','trim','_injector','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','button','univer-text-yellow-500','string','_validateConfig','mcpConfig.connectionStatus.failed','get','MCPConnectionController','_connectionController','UniverCore','mcpConfig.configError','API\x20密钥无效,请检查密钥是否正确','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','<SESSION_ID>','MCP\x20Client\x20Configuration','push','RibbonStartGroup','https://mcp.univer.ai/mcp/?univer_session_id=','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','API\x20key\x20is\x20required','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP\x20Connecting...','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.title','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','@univerjs-pro/mcp','disposeWithMe','\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','M0\x200H16V16H0z','entries','API\x20密钥长度至少需要\x2010\x20位','sessionId$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','off-line-icon_clip0_910_343','UniverMCPPlugin','default','@univerjs/network','mcpConfig.configStep2','UniverUi','BehaviorSubject','Bearer\x20','UniverIcon','univer.plus','none','MenuIcon','prototype','mcpStatus.networkError','_initAutoConnect','CONNECTED','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-text-xs\x20univer-text-gray-600','mcpConfig.authorizationDescription','_config','mergeMenu','mcpConfig.apiApplyInfo.univerAiLabel','Enter\x20your\x20API\x20key','LocaleService','onStarting','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP_UI_PLUGIN','mask','Configuration\x20saved\x20successfully','MCP:\x20会话\x20ID\x20已被占用','Enable\x20authentication\x20for\x20secure\x20connections','React','MenuItemType','random','_handleConfigSave','MCP:\x20Network\x20Error','defineProperty','univer-text-blue-600','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-space-y-2','_uiPartsService','MCP:\x20超出最大重试次数','MCP:\x20网络错误','mcpConfig.connectionStatus.retrying','MCP\x20状态未知','Button','_dialogService','Get\x20your\x20API\x20key\x20in\x20seconds','text','mcpStatus.connected','MCP_PLUGIN_CONFIG_KEY','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','defs','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','colorChannel1','MCP\x20Configuration','univer_session_id:','什么是\x20API\x20密钥?','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','UniverProMcp','has','univer-min-w-0\x20univer-flex-1','useObservable','pre','ComponentManager','mcpServerUrl','registerCommand','NONE','mcp-config-dialog','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.validation.apiKeyTooShort','NETWORK_ERROR','enUS','RETRYING','IMessageService','重连中...','40TksIbL','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-flex\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','react','UniverProMcpUi','_registerComponent','\x20-\x20','mcpStatus.maxRetriesExceeded','168133AUwwdg','Connected','网络连接错误,请检查您的网络连接','bottom','rxjs','univer.ai','ILocalStorageService','Tooltip','MAX_RETRIES_EXCEEDED','evenodd','HEADER_MENU','MCP\x20客户端配置','univer-flex\x20univer-flex-wrap\x20univer-gap-2','getConfig','697835zXkscm','<API_KEY>','MCP\x20Unknown\x20Status','univer-text-gray-400','175638rWVokJ','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','API\x20Key','Error','next','mcpConfig.connectionError.sessionOccupied','Click\x20to\x20configure\x20MCP','setItem','toStringTag','add','MCPConnectionError','function','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','97899pXqdrH','配置无效','mcpConfig.validation.invalidApiKey','1em','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_mcpConnectionController','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','会话\x20ID\x20已被占用,请稍后再试','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-size-4','__setCustomHeaders','MCP\x20配置','启用身份验证','show','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','超出最大重试次数,请稍后再试','univer-shrink-0\x20univer-text-red-500','displayName','round','_localStorageService','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','MCP\x20重连中...','error','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','connectionError$','启用身份验证以获得安全连接','_initializeMenus','配置步骤:','MCP\x20Connected','Success','_initializeCommands','span','errorMessage','MessageType','zhCN','0\x200\x2017\x2016','mcpStatus.retrying','Authorization:','_config$','_handleConfigure','div','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','UniverNetwork','79632jIBLfM','配置保存成功','连接中...','attrs','stringify','mcpConfig.configParameters','_loadStoredApiKey','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCPConfigUIController','Disposable','_createConfigPanelComponent','Module','_messageService','univer-bg-red-500','svg','DISCONNECTED','_apiKey$','IDialogService','univerjs-icon\x20univerjs-icon-','ILogService','useCallback','FAILED','_commandService','Connection\x20Failed','mcpConfig.connectionStatus.disconnected','API\x20密钥','mcpConfig.connectionStatus.connecting','apiKey','showConfigPanel','mcpConfig.configStep3','WebSocketService','mcpStatus.connecting','_localeService','已连接','连接失败','您的\x20API\x20密钥将在此浏览器中本地存储','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','useRef','ISocketService','enableAutoConnect','UniverMCPUIPlugin','check-mark-icon','Inject','univer-shrink-0\x20univer-text-blue-500','mcpConfig.connectionError.networkError','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.configSaved','MCPConfigPanel','connectInjector','version','currentColor','getItem','_configService','exports','mcpConfig.validation.apiKeyRequired','mcpConfig.configStepTitle','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','0\x200\x2016\x2016','API\x20密钥不能为空','mcpConfig.connectionError.unauthorized','univer-bg-blue-500','http','setConfig','424508pWSFmK'];_0x437d=function(){return _0x1af4d9;};return _0x437d();}
|