@univerjs-pro/mcp-ui 0.21.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/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 +11 -11
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x55cd88=_0x2fb0;(function(_0xeb86d6,_0x3c7605){const _0x12fc54=_0x2fb0,_0x1257a1=_0xeb86d6();while(!![]){try{const _0xf1b688=parseInt(_0x12fc54(0x1c5))/0x1*(parseInt(_0x12fc54(0x1ce))/0x2)+parseInt(_0x12fc54(0x1e8))/0x3*(-parseInt(_0x12fc54(0x1c4))/0x4)+parseInt(_0x12fc54(0x1b9))/0x5+-parseInt(_0x12fc54(0x1ca))/0x6*(-parseInt(_0x12fc54(0x1e1))/0x7)+parseInt(_0x12fc54(0x1c0))/0x8*(-parseInt(_0x12fc54(0x1d3))/0x9)+parseInt(_0x12fc54(0x1dd))/0xa*(-parseInt(_0x12fc54(0x1e0))/0xb)+parseInt(_0x12fc54(0x1da))/0xc;if(_0xf1b688===_0x3c7605)break;else _0x1257a1['push'](_0x1257a1['shift']());}catch(_0x5ae1d6){_0x1257a1['push'](_0x1257a1['shift']());}}}(_0x2eab,0x2dff7));const locale={'mcpStatus':{'disconnected':_0x55cd88(0x1be),'connecting':_0x55cd88(0x1d8),'connected':_0x55cd88(0x1c8),'failed':'Pripojenie\x20MCP\x20zlyhalo','retrying':_0x55cd88(0x1cc),'unknown':_0x55cd88(0x1e7),'unauthorized':'MCP:\x20Neautorizované','sessionOccupied':_0x55cd88(0x1e5),'networkError':_0x55cd88(0x1e4),'maxRetriesExceeded':'MCP:\x20Prekročený\x20počet\x20pokusov','clickToConnect':_0x55cd88(0x1ba),'clickToConfigure':_0x55cd88(0x1c9)},'mcpConfig':{'title':_0x55cd88(0x1e6),'description':_0x55cd88(0x1b6),'apiKey':_0x55cd88(0x1cf),'apiKeyPlaceholder':'Zadajte\x20svoj\x20API\x20kľúč','apiKeyHint':_0x55cd88(0x1c7),'enableAuth':'Povoliť\x20overenie','enableAuthHint':_0x55cd88(0x1c6),'connectionInfo':_0x55cd88(0x1df),'mcpClientConfig':_0x55cd88(0x1df),'configInstructions':'Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','configStepTitle':_0x55cd88(0x1c1),'configStep1':_0x55cd88(0x1b8),'configStep2':_0x55cd88(0x1d1),'configStep3':'Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','sessionId':_0x55cd88(0x1d6),'sessionIdDescription':_0x55cd88(0x1d5),'authorizationDescription':'API\x20kľúč\x20s\x20prefixom\x20Bearer.','configParameters':'Parametre\x20konfigurácie:','maxRetries':_0x55cd88(0x1b7),'save':_0x55cd88(0x1bd),'saving':_0x55cd88(0x1bb),'note1':_0x55cd88(0x1d2),'note2':_0x55cd88(0x1c2),'configSaved':_0x55cd88(0x1dc),'configError':_0x55cd88(0x1d0),'apiApplyInfo':{'title':_0x55cd88(0x1de),'description':_0x55cd88(0x1e2),'univerAiLabel':'Univer\x20AI\x20konzola','getStarted':_0x55cd88(0x1db)},'validation':{'apiKeyRequired':_0x55cd88(0x1d9),'apiKeyTooShort':_0x55cd88(0x1d7),'invalidConfig':_0x55cd88(0x1d4),'invalidApiKey':_0x55cd88(0x1c3)},'connectionStatus':{'disconnected':'Odpojené','connecting':_0x55cd88(0x1cb),'connected':_0x55cd88(0x1bf),'failed':'Pripojenie\x20zlyhalo','retrying':'Skúša\x20sa\x20znova...'},'connectionError':{'unauthorized':_0x55cd88(0x1e3),'sessionOccupied':_0x55cd88(0x1bc),'networkError':'Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','maxRetriesExceeded':_0x55cd88(0x1cd)}}};function _0x2fb0(_0x43984a,_0x37f3cd){_0x43984a=_0x43984a-0x1b6;const _0x2eabb0=_0x2eab();let _0x2fb063=_0x2eabb0[_0x43984a];return _0x2fb063;}export{locale as default};function _0x2eab(){const _0x54696e=['3676277zqEgkA','119427ECEXbN','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.','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','MCP:\x20Sieťová\x20chyba','MCP:\x20ID\x20relácie\x20je\x20obsadené','Konfigurácia\x20MCP','MCP\x20neznámy\x20stav','3zRfxnX','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Maximálny\x20počet\x20pokusov','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','1281200ThQjtv','Kliknite\x20na\x20pripojenie\x20MCP','Ukladá\x20sa...','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','Uložiť\x20konfiguráciu','MCP\x20odpojené','Pripojené','826640EJskEE','Kroky\x20konfigurácie:','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','1379884mvvMBE','2zuIyjc','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','MCP\x20pripojené','Kliknite\x20na\x20konfiguráciu\x20MCP','30QlqtJn','Pripája\x20sa...','MCP\x20opakuje\x20pokus...','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','17502NYnlhD','API\x20kľúč','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','27roWzOP','Neplatná\x20konfigurácia','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.','ID\x20relácie','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','MCP\x20sa\x20pripája...','API\x20kľúč\x20je\x20povinný','9822336Amuisd','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Konfigurácia\x20bola\x20úspešne\x20uložená','10VuLDOD','Čo\x20je\x20API\x20kľúč?','Konfigurácia\x20klienta\x20MCP'];_0x2eab=function(){return _0x54696e;};return _0x2eab();}
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x39816c=_0x26d1;function _0x26d1(_0x5e433b,_0x2cdd19){_0x5e433b=_0x5e433b-0x194;const _0x490149=_0x4901();let _0x26d113=_0x490149[_0x5e433b];return _0x26d113;}(function(_0x2602be,_0x255665){const _0x546ac1=_0x26d1,_0xb0de15=_0x2602be();while(!![]){try{const _0x3729d2=-parseInt(_0x546ac1(0x1b7))/0x1+-parseInt(_0x546ac1(0x1be))/0x2+-parseInt(_0x546ac1(0x1a5))/0x3*(parseInt(_0x546ac1(0x1b3))/0x4)+parseInt(_0x546ac1(0x1b5))/0x5*(parseInt(_0x546ac1(0x1ba))/0x6)+-parseInt(_0x546ac1(0x1b4))/0x7+-parseInt(_0x546ac1(0x1b6))/0x8+parseInt(_0x546ac1(0x1a0))/0x9;if(_0x3729d2===_0x255665)break;else _0xb0de15['push'](_0xb0de15['shift']());}catch(_0x28c433){_0xb0de15['push'](_0xb0de15['shift']());}}}(_0x4901,0x29598));const locale={'mcpStatus':{'disconnected':_0x39816c(0x195),'connecting':_0x39816c(0x1ae),'connected':'MCP\x20Đã\x20kết\x20nối','failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':'MCP\x20Đang\x20thử\x20lại...','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':_0x39816c(0x1b8),'maxRetriesExceeded':_0x39816c(0x1a9),'clickToConnect':_0x39816c(0x1a1),'clickToConfigure':'Nhấp\x20để\x20cấu\x20hình\x20MCP'},'mcpConfig':{'title':_0x39816c(0x1b1),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x39816c(0x19c),'apiKeyHint':_0x39816c(0x1aa),'enableAuth':_0x39816c(0x19f),'enableAuthHint':_0x39816c(0x196),'connectionInfo':_0x39816c(0x1b2),'mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':_0x39816c(0x1a6),'configStepTitle':_0x39816c(0x1a7),'configStep1':_0x39816c(0x19a),'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':_0x39816c(0x1a8),'sessionId':_0x39816c(0x19b),'sessionIdDescription':'Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','authorizationDescription':_0x39816c(0x194),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':'Số\x20lần\x20thử\x20lại\x20tối\x20đa','save':'Lưu\x20cấu\x20hình','saving':_0x39816c(0x199),'note1':_0x39816c(0x19d),'note2':_0x39816c(0x1a2),'configSaved':_0x39816c(0x1bb),'configError':_0x39816c(0x1a3),'apiApplyInfo':{'title':_0x39816c(0x1ac),'description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x39816c(0x1ab),'getStarted':_0x39816c(0x1b0)},'validation':{'apiKeyRequired':_0x39816c(0x1ad),'apiKeyTooShort':_0x39816c(0x197),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0x39816c(0x198)},'connectionStatus':{'disconnected':_0x39816c(0x1af),'connecting':_0x39816c(0x1bd),'connected':'Đã\x20kết\x20nối','failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x39816c(0x1bc)},'connectionError':{'unauthorized':_0x39816c(0x19e),'sessionOccupied':_0x39816c(0x1a4),'networkError':_0x39816c(0x1b9),'maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};function _0x4901(){const _0x5e0f4f=['Bảng\x20điều\x20khiển\x20Univer\x20AI','Khóa\x20API\x20là\x20gì?','Yêu\x20cầu\x20khóa\x20API','MCP\x20Đang\x20kết\x20nối...','Đã\x20ngắt\x20kết\x20nối','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Cấu\x20hình\x20MCP','Cấu\x20hình\x20máy\x20khách\x20MCP','4PpRgdI','1491630IHSfYz','265gkYovt','887136AOZKJV','249980QJifsi','MCP:\x20Lỗi\x20mạng','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','13554AcRRLV','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Đang\x20thử\x20lại...','Đang\x20kết\x20nối...','145748XHdRjm','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','MCP\x20Đã\x20ngắt\x20kết\x20nối','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Đang\x20lưu...','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','ID\x20phiên','Nhập\x20khóa\x20API\x20của\x20bạn','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Bật\x20xác\x20thực','7855884vRvzIH','Nhấp\x20để\x20kết\x20nối\x20MCP','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Lưu\x20cấu\x20hình\x20thất\x20bại','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','529197IrdpFz','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Các\x20bước\x20cấu\x20hình:','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này'];_0x4901=function(){return _0x5e0f4f;};return _0x4901();}export{locale as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x507ded=_0x11d0;(function(_0x4d19a3,_0x22be98){const _0x74eba4=_0x11d0,_0x11e85e=_0x4d19a3();while(!![]){try{const _0x448469=-parseInt(_0x74eba4(0x1e8))/0x1+parseInt(_0x74eba4(0x210))/0x2+-parseInt(_0x74eba4(0x1fb))/0x3+parseInt(_0x74eba4(0x20f))/0x4+parseInt(_0x74eba4(0x201))/0x5+parseInt(_0x74eba4(0x1e9))/0x6+parseInt(_0x74eba4(0x1e1))/0x7*(-parseInt(_0x74eba4(0x1f8))/0x8);if(_0x448469===_0x22be98)break;else _0x11e85e['push'](_0x11e85e['shift']());}catch(_0xf2a37c){_0x11e85e['push'](_0x11e85e['shift']());}}}(_0x3cf4,0xb4c09));function _0x11d0(_0x493b8d,_0x153632){_0x493b8d=_0x493b8d-0x1e0;const _0x3cf4e7=_0x3cf4();let _0x11d0f9=_0x3cf4e7[_0x493b8d];return _0x11d0f9;}function _0x3cf4(){const _0x3c74f7=['重启您的\x20MCP\x20客户端以使配置生效','配置参数:','未连接','启用身份验证以获得安全连接','MCP\x20重连中...','复制以下\x20JSON\x20配置','MCP:\x20超出最大重试次数','MCP\x20状态未知','API\x20密钥长度至少需要\x2010\x20位','连接中...','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20已断开','MCP\x20连接失败','1389880wOolVG','540758WktNid','API\x20密钥','保存中...','1534946DeYrEY','连接失败','最大重试次数','配置无效','什么是\x20API\x20密钥?','MCP\x20配置','请输入您的\x20API\x20密钥','593476ggvuXE','8590926qudxWl','MCP\x20连接中...','点击配置\x20MCP','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP:\x20未授权','重连中...','API\x20密钥不能为空','MCP\x20客户端配置','会话ID','配置\x20MCP\x20使用\x20AI\x20操作电子表格','超出最大重试次数,请稍后再试','启用身份验证','已连接','权限验证失败,请检查您的\x20API\x20密钥','24PmkFbT','您的\x20API\x20密钥安全存储在本地存储中','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','4308219ePAxJz','保存配置','网络连接错误,请检查您的网络连接','配置步骤:','将配置添加到您的\x20MCP\x20客户端设置文件中','几秒钟内获取您的\x20API\x20密钥','6890370NoWMYw'];_0x3cf4=function(){return _0x3c74f7;};return _0x3cf4();}const locale={'mcpStatus':{'disconnected':_0x507ded(0x20d),'connecting':_0x507ded(0x1ea),'connected':'MCP\x20已连接','failed':_0x507ded(0x20e),'retrying':_0x507ded(0x206),'unknown':_0x507ded(0x209),'unauthorized':_0x507ded(0x1ee),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x507ded(0x208),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x507ded(0x1eb)},'mcpConfig':{'title':_0x507ded(0x1e6),'description':_0x507ded(0x1f3),'apiKey':_0x507ded(0x211),'apiKeyPlaceholder':_0x507ded(0x1e7),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x507ded(0x1f5),'enableAuthHint':_0x507ded(0x205),'connectionInfo':_0x507ded(0x1f1),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x507ded(0x1ed),'configStepTitle':_0x507ded(0x1fe),'configStep1':_0x507ded(0x207),'configStep2':_0x507ded(0x1ff),'configStep3':_0x507ded(0x202),'sessionId':_0x507ded(0x1f2),'sessionIdDescription':_0x507ded(0x1ec),'authorizationDescription':_0x507ded(0x20c),'configParameters':_0x507ded(0x203),'maxRetries':_0x507ded(0x1e3),'save':_0x507ded(0x1fc),'saving':_0x507ded(0x1e0),'note1':'配置更改将立即生效','note2':_0x507ded(0x1f9),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x507ded(0x1e5),'description':_0x507ded(0x1fa),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x507ded(0x200)},'validation':{'apiKeyRequired':_0x507ded(0x1f0),'apiKeyTooShort':_0x507ded(0x20a),'invalidConfig':_0x507ded(0x1e4),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x507ded(0x204),'connecting':_0x507ded(0x20b),'connected':_0x507ded(0x1f6),'failed':_0x507ded(0x1e2),'retrying':_0x507ded(0x1ef)},'connectionError':{'unauthorized':_0x507ded(0x1f7),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x507ded(0x1fd),'maxRetriesExceeded':_0x507ded(0x1f4)}}};export{locale as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x92ba3f=_0x4747;(function(_0x509621,_0x28e410){const _0x446c15=_0x4747,_0x26f8ad=_0x509621();while(!![]){try{const _0xfd1bbd=-parseInt(_0x446c15(0x17b))/0x1+-parseInt(_0x446c15(0x16b))/0x2+parseInt(_0x446c15(0x169))/0x3*(parseInt(_0x446c15(0x162))/0x4)+-parseInt(_0x446c15(0x179))/0x5+-parseInt(_0x446c15(0x17d))/0x6*(parseInt(_0x446c15(0x185))/0x7)+parseInt(_0x446c15(0x159))/0x8*(parseInt(_0x446c15(0x15f))/0x9)+parseInt(_0x446c15(0x15a))/0xa*(parseInt(_0x446c15(0x184))/0xb);if(_0xfd1bbd===_0x28e410)break;else _0x26f8ad['push'](_0x26f8ad['shift']());}catch(_0x27407f){_0x26f8ad['push'](_0x26f8ad['shift']());}}}(_0x3c98,0xcb26f));function _0x4747(_0x1088d6,_0x34fdba){_0x1088d6=_0x1088d6-0x153;const _0x3c982c=_0x3c98();let _0x4747ea=_0x3c982c[_0x1088d6];return _0x4747ea;}function _0x3c98(){const _0x225b88=['MCP\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Unauthorized','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connected','API\x20key\x20is\x20required','Invalid\x20configuration','Configuration\x20saved\x20successfully','Saving...','7333065EICRvJ','Save\x20Configuration','1239222QxCqyw','Session\x20ID','247062xRtAwD','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','135619wnbBdE','98fzNSEK','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Max\x20Retries\x20Exceeded','24Hiiiut','1490jHCLew','Retrying...','Univer\x20AI\x20Console','Copy\x20the\x20JSON\x20configuration\x20below','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','4413411opUUJf','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connected','8KPdfHy','API\x20Key','What\x20is\x20API\x20Key?','MCP\x20Disconnected','Max\x20Retries','Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1800174DTmpmA','MCP\x20Retrying...','787700zrznXy','Connection\x20Failed','MCP\x20Client\x20Configuration','Configuration\x20Parameters:'];_0x3c98=function(){return _0x225b88;};return _0x3c98();}const locale$1={'mcpStatus':{'disconnected':_0x92ba3f(0x165),'connecting':_0x92ba3f(0x153),'connected':_0x92ba3f(0x161),'failed':'MCP\x20Connection\x20Failed','retrying':_0x92ba3f(0x16a),'unknown':_0x92ba3f(0x17e),'unauthorized':_0x92ba3f(0x172),'sessionOccupied':_0x92ba3f(0x160),'networkError':_0x92ba3f(0x155),'maxRetriesExceeded':_0x92ba3f(0x158),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x92ba3f(0x16f),'description':_0x92ba3f(0x15e),'apiKey':_0x92ba3f(0x163),'apiKeyPlaceholder':_0x92ba3f(0x17f),'apiKeyHint':_0x92ba3f(0x182),'enableAuth':_0x92ba3f(0x183),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x92ba3f(0x16d),'mcpClientConfig':_0x92ba3f(0x16d),'configInstructions':_0x92ba3f(0x168),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x92ba3f(0x15d),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x92ba3f(0x154),'sessionId':_0x92ba3f(0x17c),'sessionIdDescription':_0x92ba3f(0x157),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x92ba3f(0x16e),'maxRetries':_0x92ba3f(0x166),'save':_0x92ba3f(0x17a),'saving':_0x92ba3f(0x178),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x92ba3f(0x177),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x92ba3f(0x164),'description':_0x92ba3f(0x186),'univerAiLabel':_0x92ba3f(0x15c),'getStarted':_0x92ba3f(0x171)},'validation':{'apiKeyRequired':_0x92ba3f(0x175),'apiKeyTooShort':_0x92ba3f(0x170),'invalidConfig':_0x92ba3f(0x176),'invalidApiKey':_0x92ba3f(0x180)},'connectionStatus':{'disconnected':_0x92ba3f(0x167),'connecting':'Connecting...','connected':_0x92ba3f(0x174),'failed':_0x92ba3f(0x16c),'retrying':_0x92ba3f(0x15b)},'connectionError':{'unauthorized':_0x92ba3f(0x181),'sessionOccupied':_0x92ba3f(0x173),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x92ba3f(0x156)}}},locale=locale$1;export{locale as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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();}
|
|
1
|
+
function _0x3c6f(_0x2634e5,_0x1b4813){_0x2634e5=_0x2634e5-0x180;const _0x12e27f=_0x12e2();let _0x3c6f5d=_0x12e27f[_0x2634e5];return _0x3c6f5d;}function _0x12e2(){const _0x18b03e=['currentColor','mask','connectInjector','mcp.apiKey','univer-bg-green-500','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','includes','mcpConfig.apiApplyInfo.title','HEADER_MENU','univer-text-white','createElement','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','CloseIcon','11TpjDVw','UniverCore','version','配置更改将立即生效','translate(.97)','_createConfigPanelComponent','Invalid\x20configuration','fill','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','symbol','univer-shrink-0\x20univer-text-red-500','1em','MCP\x20客户端配置','@univerjs/ui','NONE','univer-flex\x20univer-items-center\x20univer-gap-2','idSuffix','removeItem','Module','Copy\x20the\x20JSON\x20configuration\x20below','启用身份验证','apiKey','UniverMCPUIPlugin','COMMAND','sessionId$','mcpStatus.clickToConfigure','RETRYING','ILocalStorageService','current','string','useDependency','MCPConnectionError','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','配置保存成功','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20重连中...','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','API\x20密钥','stringify','univerjs-icon\x20univerjs-icon-','function','API\x20key\x20with\x20Bearer\x20prefix.','getItem','tag','您的\x20API\x20密钥安全存储在本地存储中','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','registerComponent','jsxs','error','useState','_injector','univer-flex\x20univer-items-start\x20univer-gap-2','API\x20key\x20is\x20required','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex-1','Disposable','mcpConfig.apiApplyInfo.description','MCPConnectionController','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','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','connectionStatus$','off-line-icon','mcpConfig.connectionStatus.connecting','onStarting','univer-text-red-500','会话\x20ID\x20已被占用,请稍后再试','UniverMCPPlugin','2030wjHjEj','重启您的\x20MCP\x20客户端以使配置生效','add','length','Connection\x20Failed','Enable\x20Authentication','154vNfbOt','MCP\x20Client\x20Configuration','forwardRef','forEach','MCPConnectionStatus','mcpConfig.validation.invalidConfig','round','merge','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','会话ID','has','univer-flex\x20univer-gap-3','UniverProMcpUi','IUIPartsService','isValid','请输入您的\x20API\x20密钥','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','配置步骤:','React','MenuItemType','ComponentManager','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','mcp-config-dialog','@univerjs/core','univer-size-4','几秒钟内获取您的\x20API\x20密钥','close','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','ICommandService','univer-text-gray-400','\x20-\x20','Input','_config$','univer-text-xs\x20univer-text-gray-600','exports','您的\x20API\x20密钥将在此浏览器中本地存储','http','_dialogService','OnLineIcon','Injector','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','API\x20密钥长度至少需要\x2010\x20位','_handleConfigure','univer_session_id:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','url(#on-line-icon_clip0_910_349)','defs','_menuManagerService','noopener\x20noreferrer','subscribe','_config','Button','MCP\x20Connection\x20Failed','<SESSION_ID>','white','重连中...','univer-text-xs\x20univer-text-gray-500','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','mcpConfig.configStep3','SESSION_ID_OCCUPIED','push','mcpStatus.sessionOccupied','mcp-ui.config','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_localStorageService','Tooltip','DISCONNECTED','mcpConfig.connectionError.unauthorized','MessageType','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-gray-500','mcp-ui.command.openConfigPanel','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','amd','MCPStatusDisplay','_validateConfig','OpenMCPConfigPanelCommand','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','带有\x20Bearer\x20前缀的\x20API\x20密钥。','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP\x20Configuration','What\x20is\x20API\x20Key?','toStringTag','保存中...','ISocketService','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','IDialogService','map','useRef','Error','MCP:\x20Session\x20ID\x20Occupied','Bearer\x20','clipPath','off-line-icon_clip0_910_343','evenodd','enUS','M0\x200H16V16H0z','HelpIcon','mcpStatus.connecting','div','MCPConfigPanel','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','help-icon','FAILED','useObservable','http://www.w3.org/2000/svg','getCurrentConfig','MCP\x20Retrying...','next','Saving...','MCP\x20Unknown\x20Status','API\x20密钥不能为空','Session\x20ID','mcpConfig.title','mcpConfig.configStep1','_mcpConnectionController','univer-size-2\x20univer-rounded-full','NETWORK_ERROR','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-shrink-0\x20univer-text-blue-500','CONNECTED','306394HAIrGZ','url(#$1','path','配置无效','MCP:\x20超出最大重试次数','mcpStatus.unknown','zhCN','mcpStatus.clickToConnect','_initializeMenus','univer-text-yellow-500','_loadStoredApiKey','_connectionController','MCPUIMenuController','open','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','https://console.univer.ai','Configuration\x20Steps:','mcpConfig.connectionInfo','未连接','_messageService','register','mcpConfig.description','showDeveloperTools','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','CONNECTING','mcpConfig.configStepTitle','什么是\x20API\x20密钥?','univer-text-gray-500','_uiPartsService','toPrimitive','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_componentManager','Failed\x20to\x20save\x20configuration','prototype','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpServerUrl','decorate','get','UniverUi','mcpConfig.configStep2','mcpConfig.connectionError.sessionOccupied','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','errorMessage','mcpConfig.apiKeyHint','pre','_commandService','MCP:\x20未授权','mcpConfig.configParameters','DependentOn','3096bShBTJ','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','on-line-icon_clip0_910_349','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','5786956SqIZdC','Configuration\x20Parameters:','@univerjs-pro/mcp','API\x20密钥无效,请检查密钥是否正确','univer-font-medium','defineProperty','mcpConfig.validation.invalidApiKey','Disconnected','UniverProMcp','clsx','xlink:href','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','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','_registerComponent','Univer\x20AI\x20控制台','mcpConfig.apiKey','网络连接错误,请检查您的网络连接','setItem','random','_initAutoConnect','mcpStatus.networkError','复制以下\x20JSON\x20配置','disposeWithMe','Univer\x20AI\x20Console','substring','_initializeCommands','MCP:\x20Network\x20Error','mcpConfig.connectionStatus.disconnected','univer.ai','_configService','children','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-text-blue-600','OffLineIcon','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20连接失败','MCP_PLUGIN_CONFIG_KEY','622503SfAXsp','span','Click\x20to\x20connect\x20MCP','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-space-y-2','MAX_RETRIES_EXCEEDED','4577075ZZPMjj','getConfig','constructor','252012stElhG','IConfigService','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','ILogService','0\x200\x2016\x2016','_localeService','Inject','showStatus','text','entries','enableAutoConnect','__setCustomHeaders','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_apiKey$','CommandType','LocaleService','mergeMenu','value','Connected','MCP\x20已连接','0.22.1','配置\x20MCP\x20使用\x20AI\x20操作电子表格','button','replace','connectionError$','use','Retrying...','保存配置','MCP\x20连接中...','IMessageService','Plugin','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','0\x200\x2017\x2016','univer-mr-2\x20univer-flex\x20univer-text-xl','Enter\x20your\x20API\x20key','assign','displayName','API\x20Key','none','univer-min-w-0\x20univer-flex-1','MCPConfigUIController','MCP\x20Connected','react','MCP\x20Connecting...','useCallback','react/jsx-runtime','mcpStatus.disconnected','mcpConfig.apiApplyInfo.getStarted','call','UNAUTHORIZED','CheckMarkIcon','mcpStatus.connected','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_initConfigSync','MCPConnectionUIController','14223CAXWmq','mcpConfig.note1','mcpConfig.validation.apiKeyTooShort','https://mcp.univer.ai/mcp/?univer_session_id=','BehaviorSubject','object','_loading$','svg','univer-bg-red-500','5445aEkCju','_mcpCoreConfig$','univer-flex\x20univer-items-center\x20univer-gap-3','UniverDesign','<API_KEY>','univer.plus','univer-bg-blue-500','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','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','MCP\x20配置','attrs','pluginName','mcpStatus.retrying','trim','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','点击连接\x20MCP','showConfigPanel','iterator','Configuration\x20saved\x20successfully','univer-text-green-500','mcpStatus.maxRetriesExceeded','univer-space-y-3','registerCommand','rxjs','colorChannel1','univer-flex\x20univer-flex-wrap\x20univer-gap-2','点击配置\x20MCP','show','univer-space-y-5','RibbonStartGroup','jsx'];_0x12e2=function(){return _0x18b03e;};return _0x12e2();}(function(_0x3df012,_0x1ca032){const _0x3f9285=_0x3c6f,_0x529ad0=_0x3df012();while(!![]){try{const _0x5460fd=-parseInt(_0x3f9285(0x1c5))/0x1*(parseInt(_0x3f9285(0x288))/0x2)+-parseInt(_0x3f9285(0x2e4))/0x3+parseInt(_0x3f9285(0x2be))/0x4+parseInt(_0x3f9285(0x2ea))/0x5+-parseInt(_0x3f9285(0x2ed))/0x6*(-parseInt(_0x3f9285(0x20e))/0x7)+-parseInt(_0x3f9285(0x2ba))/0x8*(parseInt(_0x3f9285(0x199))/0x9)+-parseInt(_0x3f9285(0x208))/0xa*(parseInt(_0x3f9285(0x190))/0xb);if(_0x5460fd===_0x1ca032)break;else _0x529ad0['push'](_0x529ad0['shift']());}catch(_0x2e0c6d){_0x529ad0['push'](_0x529ad0['shift']());}}}(_0x12e2,0xdaf94),function(_0x13018d,_0x4dbb55){const _0x1fab48=_0x3c6f;typeof exports==_0x1fab48(0x195)&&typeof module<'u'?_0x4dbb55(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==_0x1fab48(0x1ed)&&define[_0x1fab48(0x258)]?define([_0x1fab48(0x231),_0x1fab48(0x226),_0x1fab48(0x2c0),'@univerjs/design',_0x1fab48(0x1d2),_0x1fab48(0x1b0),_0x1fab48(0x183),_0x1fab48(0x186),'@univerjs/network'],_0x4dbb55):(_0x13018d=typeof globalThis<'u'?globalThis:_0x13018d||self,_0x4dbb55(_0x13018d[_0x1fab48(0x21a)]={},_0x13018d[_0x1fab48(0x1c6)],_0x13018d[_0x1fab48(0x2c6)],_0x13018d[_0x1fab48(0x19c)],_0x13018d[_0x1fab48(0x2af)],_0x13018d[_0x1fab48(0x1b0)],_0x13018d[_0x1fab48(0x220)],_0x13018d[_0x1fab48(0x220)],_0x13018d['UniverNetwork']));}(this,function(_0x4199ba,_0x321763,_0x43eebc,_0x577a04,_0x4bf02e,_0x2f7a95,_0xe91101,_0x4babf8,_0x4b6c62){const _0x4e837f=_0x3c6f;Object[_0x4e837f(0x2c3)](_0x4199ba,Symbol[_0x4e837f(0x261)],{'value':_0x4e837f(0x1d7)});function _0x38299c({ref:_0x507966,..._0x355cf4}){const _0x946968=_0x4e837f;let {icon:_0x41173a,id:_0x582a53,className:_0x24c890,extend:_0x47226b,..._0x65517c}=_0x355cf4,_0x4735c6=(_0x946968(0x1ec)+_0x582a53+'\x20'+(_0x24c890||''))[_0x946968(0x1a6)](),_0x4a8af7=(0x0,_0xe91101[_0x946968(0x267)])('_'+_0x334c4e());return _0x53b341(_0x41173a,''+_0x582a53,{'defIds':_0x41173a['defIds'],'idSuffix':_0x4a8af7[_0x946968(0x1e1)]},{'ref':_0x507966,'className':_0x4735c6,..._0x65517c},_0x47226b);}function _0x53b341(_0xf1f700,_0x5dbc0b,_0x36a6a9,_0x27bca5,_0x17337a){const _0x3ed925=_0x4e837f;return(0x0,_0xe91101[_0x3ed925(0x1c2)])(_0xf1f700[_0x3ed925(0x1f0)],{'key':_0x5dbc0b,..._0x1e85c1(_0xf1f700,_0x36a6a9,_0x17337a),..._0x27bca5},(_0x39ecc6(_0xf1f700,_0x36a6a9)[_0x3ed925(0x2dc)]||[])[_0x3ed925(0x266)]((_0x2b7f66,_0x54b47b)=>_0x53b341(_0x2b7f66,_0x5dbc0b+'-'+_0xf1f700[_0x3ed925(0x1f0)]+'-'+_0x54b47b,_0x36a6a9,void 0x0,_0x17337a)));}function _0x1e85c1(_0x1a4135,_0x4a83c9,_0x37ddaa){const _0xf372a2=_0x4e837f;let _0x194030={..._0x1a4135['attrs']};_0x37ddaa!=null&&_0x37ddaa['colorChannel1']&&_0x194030[_0xf372a2(0x1cc)]===_0xf372a2(0x1b1)&&(_0x194030[_0xf372a2(0x1cc)]=_0x37ddaa[_0xf372a2(0x1b1)]),_0x1a4135['tag']===_0xf372a2(0x1b9)&&_0x194030['id']&&(_0x194030['id']+=_0x4a83c9[_0xf372a2(0x1d5)]),Object[_0xf372a2(0x2f7)](_0x194030)[_0xf372a2(0x211)](([_0x1bb6e9,_0x15ecf0])=>{const _0x4be4c6=_0xf372a2;_0x1bb6e9===_0x4be4c6(0x1b9)&&typeof _0x15ecf0==_0x4be4c6(0x1e2)&&(_0x194030[_0x1bb6e9]=_0x15ecf0[_0x4be4c6(0x305)](/url\(#(.*)\)/,_0x4be4c6(0x289)+_0x4a83c9[_0x4be4c6(0x1d5)]+')'));});let {defIds:_0x2f5fbe}=_0x4a83c9;return!_0x2f5fbe||_0x2f5fbe[_0xf372a2(0x20b)]===0x0?_0x194030:(_0x1a4135[_0xf372a2(0x1f0)]===_0xf372a2(0x307)&&_0x194030[_0xf372a2(0x2c8)]&&(_0x194030[_0xf372a2(0x2c8)]+=_0x4a83c9[_0xf372a2(0x1d5)]),Object['entries'](_0x194030)['forEach'](([_0x389bab,_0x5e6cb5])=>{const _0x1408bb=_0xf372a2;typeof _0x5e6cb5=='string'&&(_0x194030[_0x389bab]=_0x5e6cb5[_0x1408bb(0x305)](/url\(#(.*)\)/,_0x1408bb(0x289)+_0x4a83c9['idSuffix']+')'));}),_0x194030);}function _0x39ecc6(_0x4f93fe,_0x3f2136){const _0x2ae0be=_0x4e837f;var _0x3f29ed;let {defIds:_0x13bc5e}=_0x3f2136;return!_0x13bc5e||_0x13bc5e['length']===0x0?_0x4f93fe:_0x4f93fe[_0x2ae0be(0x1f0)]===_0x2ae0be(0x23d)&&(_0x3f29ed=_0x4f93fe[_0x2ae0be(0x2dc)])!=null&&_0x3f29ed[_0x2ae0be(0x20b)]?{..._0x4f93fe,'children':_0x4f93fe[_0x2ae0be(0x2dc)][_0x2ae0be(0x266)](_0x4f715a=>typeof _0x4f715a[_0x2ae0be(0x1a3)]['id']==_0x2ae0be(0x1e2)&&_0x13bc5e&&_0x13bc5e[_0x2ae0be(0x1be)](_0x4f715a['attrs']['id'])?{..._0x4f715a,'attrs':{..._0x4f715a[_0x2ae0be(0x1a3)],'id':_0x4f715a[_0x2ae0be(0x1a3)]['id']+_0x3f2136[_0x2ae0be(0x1d5)]}}:_0x4f715a)}:_0x4f93fe;}function _0x334c4e(){const _0x124bab=_0x4e837f;return Math[_0x124bab(0x2d0)]()['toString'](0x24)[_0x124bab(0x2d6)](0x2,0x8);}_0x38299c['displayName']='UniverIcon';let _0x4f2818={'tag':_0x4e837f(0x197),'attrs':{'xmlns':_0x4e837f(0x278),'fill':_0x4e837f(0x314),'viewBox':_0x4e837f(0x2f2),'width':_0x4e837f(0x1d0),'height':_0x4e837f(0x1d0)},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'fill':_0x4e837f(0x1b8),'d':_0x4e837f(0x257),'fillRule':_0x4e837f(0x26d),'clipRule':_0x4e837f(0x26d)}}]},_0x4b6fef=(0x0,_0xe91101[_0x4e837f(0x210)])(function(_0xcf2468,_0x41baf7){const _0xeabcb1=_0x4e837f;return(0x0,_0xe91101[_0xeabcb1(0x1c2)])(_0x38299c,Object[_0xeabcb1(0x311)]({},_0xcf2468,{'id':'check-mark-icon','ref':_0x41baf7,'icon':_0x4f2818}));});_0x4b6fef['displayName']=_0x4e837f(0x18b);let _0x400d5b={'tag':_0x4e837f(0x197),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4e837f(0x314),'viewBox':'0\x200\x2016\x2016','width':_0x4e837f(0x1d0),'height':_0x4e837f(0x1d0)},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'fill':'currentColor','d':_0x4e837f(0x264)}}]},_0x31cfc4=(0x0,_0xe91101['forwardRef'])(function(_0x4232ab,_0x4c41be){const _0x4f78c6=_0x4e837f;return(0x0,_0xe91101[_0x4f78c6(0x1c2)])(_0x38299c,Object[_0x4f78c6(0x311)]({},_0x4232ab,{'id':'close-icon','ref':_0x4c41be,'icon':_0x400d5b}));});_0x31cfc4[_0x4e837f(0x312)]=_0x4e837f(0x1c4);let _0xee03c2={'tag':'svg','attrs':{'xmlns':_0x4e837f(0x278),'fill':_0x4e837f(0x314),'viewBox':'0\x200\x2016\x2016','width':_0x4e837f(0x1d0),'height':_0x4e837f(0x1d0)},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'fill':'currentColor','d':_0x4e837f(0x248)}},{'tag':'path','attrs':{'fill':_0x4e837f(0x1b8),'d':_0x4e837f(0x1a1)}},{'tag':_0x4e837f(0x28a),'attrs':{'fill':_0x4e837f(0x1b8),'d':_0x4e837f(0x2ca),'fillRule':'evenodd','clipRule':_0x4e837f(0x26d)}}]},_0x4c179e=(0x0,_0xe91101[_0x4e837f(0x210)])(function(_0x4c2fbb,_0x415c1c){const _0x555afa=_0x4e837f;return(0x0,_0xe91101['createElement'])(_0x38299c,Object[_0x555afa(0x311)]({},_0x4c2fbb,{'id':_0x555afa(0x275),'ref':_0x415c1c,'icon':_0xee03c2}));});_0x4c179e['displayName']=_0x4e837f(0x270);let _0x54c67b={'tag':_0x4e837f(0x197),'attrs':{'xmlns':_0x4e837f(0x278),'fill':_0x4e837f(0x314),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4e837f(0x1d0)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'stroke':_0x4e837f(0x1b8),'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':_0x4e837f(0x214),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4e837f(0x23d),'attrs':{},'children':[{'tag':_0x4e837f(0x26b),'attrs':{'id':_0x4e837f(0x26c)},'children':[{'tag':'path','attrs':{'fill':_0x4e837f(0x245),'d':_0x4e837f(0x26f)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0xba8e67=(0x0,_0xe91101[_0x4e837f(0x210)])(function(_0x572f47,_0x1ae913){const _0x8575ac=_0x4e837f;return(0x0,_0xe91101['createElement'])(_0x38299c,Object['assign']({},_0x572f47,{'id':_0x8575ac(0x202),'ref':_0x1ae913,'icon':_0x54c67b}));});_0xba8e67[_0x4e837f(0x312)]=_0x4e837f(0x2df);let _0x148329={'tag':_0x4e837f(0x197),'attrs':{'xmlns':_0x4e837f(0x278),'fill':'none','viewBox':_0x4e837f(0x30e),'width':_0x4e837f(0x1d0),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4e837f(0x23c)},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'stroke':'currentColor','d':_0x4e837f(0x21e),'strokeLinecap':'round','strokeLinejoin':_0x4e837f(0x214),'strokeWidth':1.2}}]},{'tag':_0x4e837f(0x23d),'attrs':{},'children':[{'tag':_0x4e837f(0x26b),'attrs':{'id':_0x4e837f(0x2bc)},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'fill':_0x4e837f(0x245),'d':'M0\x200H16V16H0z','transform':_0x4e837f(0x1c9)}}]}]}],'defIds':[_0x4e837f(0x2bc)]},_0x48a5f6=(0x0,_0xe91101[_0x4e837f(0x210)])(function(_0x3c08ea,_0x176046){const _0x4987c7=_0x4e837f;return(0x0,_0xe91101[_0x4987c7(0x1c2)])(_0x38299c,Object[_0x4987c7(0x311)]({},_0x3c08ea,{'id':'on-line-icon','ref':_0x176046,'icon':_0x148329}));});_0x48a5f6[_0x4e837f(0x312)]=_0x4e837f(0x235);function _0xf68cd9(_0x426430){const _0x1882a2=_0x4e837f;var _0x23b84d,_0x592d33;let {mcpCoreConfig:_0x1d0d9d,onSave:_0x6b88a9,loading:_0x167aa6=!0x1,config:_0x5aece8,connectionStatus$:_0x337afc,connectionError$:_0x253c73,currentApiKey$:_0x456421,currentSessionId$:_0x8b62ac}=_0x426430,_0x57dcdc=(0x0,_0x4bf02e[_0x1882a2(0x1e3)])(_0x321763[_0x1882a2(0x2fd)]),_0x40d5e6=(0x0,_0x4bf02e[_0x1882a2(0x277)])(_0x337afc,_0x43eebc['MCPConnectionStatus']['DISCONNECTED']),_0x59d51e=(0x0,_0x4bf02e[_0x1882a2(0x277)])(_0x253c73,_0x43eebc[_0x1882a2(0x1e4)]['NONE']),_0x5d2f47=(0x0,_0x4bf02e['useObservable'])(_0x8b62ac,''),[_0x202153,_0x500022]=(0x0,_0xe91101[_0x1882a2(0x1f6)])((0x0,_0x4bf02e['useObservable'])(_0x456421,'')||''),_0x96a425=_0x5aece8[_0x1882a2(0x29e)]&&_0x1d0d9d[_0x1882a2(0x2ac)]&&(_0x1d0d9d['mcpServerUrl']['includes'](_0x1882a2(0x19e))||_0x1d0d9d[_0x1882a2(0x2ac)][_0x1882a2(0x1be)](_0x1882a2(0x2da))),_0x4d8d54=(_0x23b84d=_0x1d0d9d[_0x1882a2(0x2ac)])==null?void 0x0:_0x23b84d[_0x1882a2(0x1be)]('univer.plus'),_0x4d6859=(_0x592d33=_0x1d0d9d['mcpServerUrl'])==null?void 0x0:_0x592d33['includes'](_0x1882a2(0x2da)),_0x4964ee=_0x4d8d54?'https://console.univer.plus':_0x1882a2(0x297),_0x4d5014=_0x5aece8[_0x1882a2(0x29e)]&&(_0x4d8d54||_0x4d6859),[_0x4cdb6c,_0x3aa61e]=(0x0,_0xe91101['useState'])(!_0x202153[_0x1882a2(0x1a6)]()),_0x1895af=(_0x29552c,_0x26a92c)=>{const _0x528bdf=_0x1882a2;if(_0x26a92c===_0x43eebc[_0x528bdf(0x1e4)]['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x29552c){case _0x43eebc[_0x528bdf(0x212)][_0x528bdf(0x287)]:return _0x528bdf(0x2c9);case _0x43eebc[_0x528bdf(0x212)][_0x528bdf(0x2a0)]:case _0x43eebc[_0x528bdf(0x212)][_0x528bdf(0x1df)]:return _0x528bdf(0x2dd);case _0x43eebc['MCPConnectionStatus'][_0x528bdf(0x276)]:return _0x528bdf(0x29f);default:return _0x528bdf(0x24e);}},_0x44cb57=(_0x53cd8b,_0x2e9bf0)=>{const _0x150c82=_0x1882a2;if(_0x2e9bf0===_0x43eebc['MCPConnectionError']['UNAUTHORIZED'])return _0x150c82(0x198);switch(_0x53cd8b){case _0x43eebc[_0x150c82(0x212)][_0x150c82(0x287)]:return _0x150c82(0x1bc);case _0x43eebc[_0x150c82(0x212)]['CONNECTING']:case _0x43eebc[_0x150c82(0x212)]['RETRYING']:return _0x150c82(0x19f);case _0x43eebc[_0x150c82(0x212)][_0x150c82(0x276)]:return _0x150c82(0x198);default:return _0x150c82(0x255);}},_0xd56395=_0xa9dcf=>{const _0x58558f=_0x1882a2;switch(_0xa9dcf){case _0x43eebc[_0x58558f(0x212)][_0x58558f(0x287)]:return _0x57dcdc['t']('mcpConfig.connectionStatus.connected');case _0x43eebc['MCPConnectionStatus']['CONNECTING']:return _0x57dcdc['t'](_0x58558f(0x203));case _0x43eebc['MCPConnectionStatus'][_0x58558f(0x276)]:return _0x57dcdc['t']('mcpConfig.connectionStatus.failed');case _0x43eebc['MCPConnectionStatus'][_0x58558f(0x1df)]:return _0x57dcdc['t']('mcpConfig.connectionStatus.retrying');default:return _0x57dcdc['t'](_0x58558f(0x2d9));}},_0x1ddcf5=_0x13b598=>{const _0x294f13=_0x1882a2;switch(_0x13b598){case _0x43eebc[_0x294f13(0x1e4)][_0x294f13(0x18a)]:return _0x57dcdc['t'](_0x294f13(0x252));case _0x43eebc[_0x294f13(0x1e4)][_0x294f13(0x24a)]:return _0x57dcdc['t'](_0x294f13(0x2b1));case _0x43eebc[_0x294f13(0x1e4)][_0x294f13(0x284)]:return _0x57dcdc['t']('mcpConfig.connectionError.networkError');case _0x43eebc[_0x294f13(0x1e4)][_0x294f13(0x2e9)]:return _0x57dcdc['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x5adcfd=(0x0,_0xe91101[_0x1882a2(0x185)])(()=>{const _0x137fd1=_0x1882a2;_0x6b88a9({..._0x1d0d9d,'apiKey':_0x202153[_0x137fd1(0x1a6)](),'enableAuth':!0x0});},[_0x1d0d9d,_0x202153,!0x0,_0x6b88a9]),_0x222536=_0x202153['trim']()['length']>0x0;return(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[(0x0,_0x4babf8['jsx'])('div',{'className':_0x1882a2(0x2fa),'children':(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':_0x1882a2(0x19b),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x2ef),'children':(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x1c1),'children':'⚙'})}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'children':(0x0,_0x4babf8['jsx'])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x57dcdc['t'](_0x1882a2(0x29d))})})]})}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1e5),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('div',{'className':(0x0,_0x577a04[_0x1882a2(0x2c7)])('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x1895af(_0x40d5e6,_0x59d51e)),'children':(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':(0x0,_0x577a04[_0x1882a2(0x2c7)])(_0x1882a2(0x283),_0x44cb57(_0x40d5e6,_0x59d51e))}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'className':'univer-text-sm\x20univer-font-medium','children':_0xd56395(_0x40d5e6)})]})}),_0x59d51e!==_0x43eebc[_0x1882a2(0x1e4)][_0x1882a2(0x1d3)]&&(_0x40d5e6===_0x43eebc[_0x1882a2(0x212)]['FAILED']||_0x59d51e===_0x43eebc[_0x1882a2(0x1e4)][_0x1882a2(0x18a)])&&(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x237),'children':(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1f8),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x1cf),'children':'⚠️'}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])('p',{'className':_0x1882a2(0x1bd),'children':_0x1ddcf5(_0x59d51e)})]})})]}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x216),'children':(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1b5),'children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x2e8),'children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'children':'🔑'}),'\x20',_0x57dcdc['t'](_0x1882a2(0x2cd)),(0x0,_0x4babf8['jsx'])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x205),'children':'*'}),_0x96a425&&(0x0,_0x4babf8[_0x1882a2(0x1b7)])('a',{'className':_0x1882a2(0x2bb),'title':_0x57dcdc['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x3aa61e(!0x0),'children':(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x4c179e,{})})]}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x577a04[_0x1882a2(0x22e)],{'type':_0x1882a2(0x2f6),'placeholder':_0x57dcdc['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x202153,'disabled':_0x167aa6,'autoComplete':'off','onChange':_0x500022}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])('p',{'className':_0x1882a2(0x247),'children':_0x57dcdc['t'](_0x1882a2(0x2b4))})]}),_0x96a425&&_0x4cdb6c&&(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[(0x0,_0x4babf8['jsx'])('a',{'className':_0x1882a2(0x1f2),'role':'button','onClick':()=>_0x3aa61e(!0x1),'children':(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x31cfc4,{'className':_0x1882a2(0x227)})}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[(0x0,_0x4babf8['jsx'])(_0x1882a2(0x272),{'className':_0x1882a2(0x2a6),'children':(0x0,_0x4babf8['jsx'])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x2de),'children':'🚀'})}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':_0x1882a2(0x1fb),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('h4',{'className':_0x1882a2(0x254),'children':_0x57dcdc['t'](_0x1882a2(0x1bf))}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])('p',{'className':_0x1882a2(0x274),'children':_0x57dcdc['t'](_0x1882a2(0x1fd))}),(0x0,_0x4babf8['jsx'])('div',{'className':_0x1882a2(0x1b2),'children':_0x4d5014&&(0x0,_0x4babf8[_0x1882a2(0x1f4)])('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':_0x4964ee,'target':'_blank','rel':_0x1882a2(0x23f),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'children':'🤖'}),_0x57dcdc['t'](_0x1882a2(0x1fa)),(0x0,_0x4babf8[_0x1882a2(0x1b7)])('span',{'className':_0x1882a2(0x22c),'children':'↗'})]})}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x57dcdc['t'](_0x1882a2(0x188))]})]})]})]}),_0x5aece8[_0x1882a2(0x29e)]&&(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1ff),'children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])('h4',{'className':_0x1882a2(0x2f0),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('span',{'children':'🔗'}),'\x20',_0x57dcdc['t'](_0x1882a2(0x299))]}),(0x0,_0x4babf8['jsxs'])('div',{'className':'univer-space-y-4','children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-space-y-3','children':[(0x0,_0x4babf8['jsx'])('p',{'className':_0x1882a2(0x230),'children':_0x57dcdc['t']('mcpConfig.configInstructions')}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x2e8),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x57dcdc['t'](_0x1882a2(0x2a1))}),(0x0,_0x4babf8['jsxs'])(_0x1882a2(0x272),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8['jsx'])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x200),'children':'1'}),_0x57dcdc['t'](_0x1882a2(0x281))]}),(0x0,_0x4babf8['jsxs'])(_0x1882a2(0x272),{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'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'}),_0x57dcdc['t'](_0x1882a2(0x2b0))]}),(0x0,_0x4babf8['jsxs'])(_0x1882a2(0x272),{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('span',{'className':_0x1882a2(0x200),'children':'3'}),_0x57dcdc['t'](_0x1882a2(0x249))]})]})]})]}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':'univer-space-y-2','children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1882a2(0x25f)}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x2e7),'children':(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2b5),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x1882a2(0x1eb)]({'mcpServers':{'univer':{'url':_0x1882a2(0x193)+(_0x5d2f47||_0x1882a2(0x244)),'type':_0x1882a2(0x233),'headers':{'Authorization':_0x1882a2(0x26a)+(_0x202153||_0x1882a2(0x19d))}}}},null,0x2)})})]}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1ae),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('div',{'className':_0x1882a2(0x2b2),'children':_0x57dcdc['t'](_0x1882a2(0x2b8))}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-space-y-2','children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x4babf8['jsx'])('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x25c),'children':_0x1882a2(0x23a)}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x57dcdc['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x2aa)}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x180),'children':[(0x0,_0x4babf8['jsx'])('div',{'className':_0x1882a2(0x25c),'children':'Authorization:'}),(0x0,_0x4babf8['jsx'])(_0x1882a2(0x272),{'className':_0x1882a2(0x247),'children':_0x57dcdc['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x577a04[_0x1882a2(0x242)],{'onClick':_0x5adcfd,'disabled':!_0x222536||_0x167aa6,'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':_0x167aa6?(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'children':'⟲'}),_0x57dcdc['t']('mcpConfig.saving')]}):(0x0,_0x4babf8[_0x1882a2(0x1f4)])('span',{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x4b6fef,{}),_0x57dcdc['t']('mcpConfig.save')]})}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1e9),'children':(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x219),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x286),'children':'💡'}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('div',{'className':_0x1882a2(0x2c2),'children':'Configuration\x20Notes:'}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'children':['•',_0x57dcdc['t'](_0x1882a2(0x191))]}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'children':['•',_0x57dcdc['t']('mcpConfig.note2')]})]})]})})]})})]});}let _0x9df88e=_0x4e837f(0x24d);Symbol(_0x9df88e);let _0x10e123={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x4c565c(_0x3b4e92){'@babel/helpers - typeof';const _0xe684af=_0x4e837f;return _0x4c565c=typeof Symbol==_0xe684af(0x1ed)&&typeof Symbol[_0xe684af(0x1aa)]==_0xe684af(0x1ce)?function(_0x5c9a15){return typeof _0x5c9a15;}:function(_0x567eeb){const _0x3d3ab3=_0xe684af;return _0x567eeb&&typeof Symbol==_0x3d3ab3(0x1ed)&&_0x567eeb[_0x3d3ab3(0x2ec)]===Symbol&&_0x567eeb!==Symbol[_0x3d3ab3(0x2a9)]?'symbol':typeof _0x567eeb;},_0x4c565c(_0x3b4e92);}function _0x15d7f3(_0x258770,_0x1d3f23){const _0x34bc64=_0x4e837f;if(_0x4c565c(_0x258770)!=_0x34bc64(0x195)||!_0x258770)return _0x258770;var _0x5cf1c4=_0x258770[Symbol[_0x34bc64(0x2a5)]];if(_0x5cf1c4!==void 0x0){var _0x3e21bc=_0x5cf1c4[_0x34bc64(0x189)](_0x258770,_0x1d3f23||'default');if(_0x4c565c(_0x3e21bc)!=_0x34bc64(0x195))return _0x3e21bc;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1d3f23===_0x34bc64(0x1e2)?String:Number)(_0x258770);}function _0x187d4e(_0x2fe033){const _0x20526d=_0x4e837f;var _0x3394c2=_0x15d7f3(_0x2fe033,_0x20526d(0x1e2));return _0x4c565c(_0x3394c2)==_0x20526d(0x1ce)?_0x3394c2:_0x3394c2+'';}function _0x50d464(_0x5d71d7,_0x1e0727,_0x4784a7){const _0x5e9a65=_0x4e837f;return(_0x1e0727=_0x187d4e(_0x1e0727))in _0x5d71d7?Object[_0x5e9a65(0x2c3)](_0x5d71d7,_0x1e0727,{'value':_0x4784a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5d71d7[_0x1e0727]=_0x4784a7,_0x5d71d7;}function _0x3ac0c3(_0x1f6da3,_0x4dbf72){return function(_0x113387,_0x3af32a){_0x4dbf72(_0x113387,_0x3af32a,_0x1f6da3);};}function _0x5146d4(_0x33d90e,_0x725c20,_0x3b4280,_0x4d0c1b){const _0x1a926f=_0x4e837f;var _0x5f7a9=arguments[_0x1a926f(0x20b)],_0x2325a3=_0x5f7a9<0x3?_0x725c20:_0x4d0c1b===null?_0x4d0c1b=Object['getOwnPropertyDescriptor'](_0x725c20,_0x3b4280):_0x4d0c1b,_0x880833;if(typeof Reflect==_0x1a926f(0x195)&&typeof Reflect[_0x1a926f(0x2ad)]==_0x1a926f(0x1ed))_0x2325a3=Reflect[_0x1a926f(0x2ad)](_0x33d90e,_0x725c20,_0x3b4280,_0x4d0c1b);else{for(var _0x5cbb8b=_0x33d90e[_0x1a926f(0x20b)]-0x1;_0x5cbb8b>=0x0;_0x5cbb8b--)(_0x880833=_0x33d90e[_0x5cbb8b])&&(_0x2325a3=(_0x5f7a9<0x3?_0x880833(_0x2325a3):_0x5f7a9>0x3?_0x880833(_0x725c20,_0x3b4280,_0x2325a3):_0x880833(_0x725c20,_0x3b4280))||_0x2325a3);}return _0x5f7a9>0x3&&_0x2325a3&&Object[_0x1a926f(0x2c3)](_0x725c20,_0x3b4280,_0x2325a3),_0x2325a3;}let _0x33288b=_0x4e837f(0x1bb),_0xd2cb86=_0x4e837f(0x225),_0x3e69d3=class extends _0x321763[_0x4e837f(0x1fc)]{constructor(_0x27526e,_0x2321f7,_0x3c1606,_0x52f15f,_0x536ee7,_0x5442be,_0x59230a,_0x1da74f,_0x422a56,_0xb3cb64){const _0x46623e=_0x4e837f;super(),this[_0x46623e(0x1f7)]=_0x27526e,this[_0x46623e(0x2a4)]=_0x2321f7,this[_0x46623e(0x2db)]=_0x3c1606,this[_0x46623e(0x24f)]=_0x52f15f,this[_0x46623e(0x234)]=_0x536ee7,this[_0x46623e(0x29b)]=_0x5442be,this[_0x46623e(0x2a7)]=_0x59230a,this[_0x46623e(0x2f3)]=_0x1da74f,this['_logService']=_0x422a56,this[_0x46623e(0x282)]=_0xb3cb64,_0x50d464(this,_0x46623e(0x196),new _0x2f7a95[(_0x46623e(0x194))](!0x1)),_0x50d464(this,_0x46623e(0x19a),new _0x2f7a95['BehaviorSubject']({})),_0x50d464(this,'_config$',new _0x2f7a95[(_0x46623e(0x194))]({})),_0x50d464(this,_0x46623e(0x2fb),new _0x2f7a95[(_0x46623e(0x194))]('')),_0x50d464(this,'_handleConfigSave',async _0x4f72a=>{const _0x2e379c=_0x46623e;this['_loading$']['next'](!0x0);try{var _0x18f2d0,_0x46b8e3;let _0x32512a=await this[_0x2e379c(0x25a)](_0x4f72a);if(!_0x32512a[_0x2e379c(0x21c)]){this[_0x2e379c(0x29b)]['show']({'type':_0x577a04['MessageType']['Error'],'content':_0x32512a[_0x2e379c(0x2b3)]||this[_0x2e379c(0x2f3)]['t'](_0x2e379c(0x213))});return;}_0x4f72a[_0x2e379c(0x1da)]?await this['_localStorageService'][_0x2e379c(0x2cf)](_0x33288b,_0x4f72a[_0x2e379c(0x1da)]['trim']()):await this['_localStorageService'][_0x2e379c(0x1d6)](_0x33288b),this['_apiKey$'][_0x2e379c(0x27b)](((_0x18f2d0=_0x4f72a[_0x2e379c(0x1da)])==null?void 0x0:_0x18f2d0['trim']())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x2e379c(0x26a)+((_0x46b8e3=_0x4f72a[_0x2e379c(0x1da)])==null?void 0x0:_0x46b8e3[_0x2e379c(0x1a6)]())}),this[_0x2e379c(0x29b)][_0x2e379c(0x1b4)]({'type':_0x577a04[_0x2e379c(0x253)]['Success'],'content':this[_0x2e379c(0x2f3)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x4fe9b9=_0x2e379c;this[_0x4fe9b9(0x234)]['close'](_0xd2cb86);},0x320);}catch(_0x94afc4){this['_logService'][_0x2e379c(0x1f5)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x94afc4),this[_0x2e379c(0x29b)]['show']({'type':_0x577a04[_0x2e379c(0x253)][_0x2e379c(0x268)],'content':this[_0x2e379c(0x2f3)]['t']('mcpConfig.configError')});}finally{this[_0x2e379c(0x196)]['next'](!0x1);}}),this[_0x46623e(0x18e)](),this[_0x46623e(0x292)](),this[_0x46623e(0x2cb)]();}[_0x4e837f(0x1a9)](){const _0x13af9d=_0x4e837f;let _0x452ef6=this[_0x13af9d(0x2db)][_0x13af9d(0x2eb)](_0x9df88e);_0x452ef6!=null&&_0x452ef6[_0x13af9d(0x29e)]&&this[_0x13af9d(0x234)][_0x13af9d(0x295)]({'id':_0xd2cb86,'title':{'title':this[_0x13af9d(0x2f3)]['t'](_0x13af9d(0x280))},'children':{'label':_0x13af9d(0x273)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4ac549=_0x13af9d;this[_0x4ac549(0x234)][_0x4ac549(0x229)](_0xd2cb86);}});}[_0x4e837f(0x279)](){const _0xc3a7d1=_0x4e837f;return this[_0xc3a7d1(0x19a)][_0xc3a7d1(0x2ff)];}[_0x4e837f(0x2cb)](){const _0x161472=_0x4e837f;this['disposeWithMe'](this[_0x161472(0x2a7)][_0x161472(0x29c)]('MCPConfigPanel',this[_0x161472(0x1ca)]()));}[_0x4e837f(0x1ca)](){const _0x491d39=_0x4e837f;return(0x0,_0x4bf02e[_0x491d39(0x1ba)])(()=>{const _0x5e52f5=_0x491d39;var _0x497340,_0x5d532c,_0x2ae9dd;return(0x0,_0x4babf8[_0x5e52f5(0x1b7)])(_0xf68cd9,{'config':this[_0x5e52f5(0x22f)][_0x5e52f5(0x2ff)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x5e52f5(0x2ff)],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x5e52f5(0x196)][_0x5e52f5(0x2ff)],'connectionStatus$':(_0x497340=this[_0x5e52f5(0x282)])==null?void 0x0:_0x497340[_0x5e52f5(0x201)],'connectionError$':(_0x5d532c=this[_0x5e52f5(0x282)])==null?void 0x0:_0x5d532c['connectionError$'],'currentSessionId$':(_0x2ae9dd=this[_0x5e52f5(0x282)])==null?void 0x0:_0x2ae9dd[_0x5e52f5(0x1dd)]});},this['_injector']);}[_0x4e837f(0x18e)](){const _0x23c146=_0x4e837f;this[_0x23c146(0x2d4)](this[_0x23c146(0x2db)]['subscribeConfigValue$'](_0x43eebc[_0x23c146(0x2e3)])[_0x23c146(0x240)](_0x5ec33b=>{const _0xf894e=_0x23c146;this['_mcpCoreConfig$'][_0xf894e(0x27b)](_0x5ec33b||{});}));let _0xabe2f=this[_0x23c146(0x2db)]['getConfig'](_0x43eebc[_0x23c146(0x2e3)]);this['_mcpCoreConfig$']['next'](_0xabe2f||{}),this[_0x23c146(0x2d4)](this[_0x23c146(0x2db)]['subscribeConfigValue$'](_0x9df88e)['subscribe'](_0x342dfc=>{const _0x41dcea=_0x23c146;this[_0x41dcea(0x22f)][_0x41dcea(0x27b)](_0x342dfc||{});}));let _0x5b9f16=this[_0x23c146(0x2db)]['getConfig'](_0x9df88e);this[_0x23c146(0x22f)][_0x23c146(0x27b)](_0x5b9f16||{});}async[_0x4e837f(0x292)](){const _0x128379=_0x4e837f;let _0x45e4e9=this[_0x128379(0x2db)][_0x128379(0x2eb)](_0x9df88e);if(!(_0x45e4e9!=null&&_0x45e4e9[_0x128379(0x29e)]))return;let _0x33cb10=await this[_0x128379(0x24f)][_0x128379(0x1ef)](_0x33288b);_0x33cb10&&(this[_0x128379(0x282)][_0x128379(0x2f9)]({'Authorization':_0x128379(0x26a)+_0x33cb10}),this[_0x128379(0x2fb)][_0x128379(0x27b)](_0x33cb10));}async[_0x4e837f(0x25a)](_0x4af5fe){const _0x18549e=_0x4e837f;if(!_0x4af5fe[_0x18549e(0x1da)]||_0x4af5fe['apiKey'][_0x18549e(0x1a6)]()[_0x18549e(0x20b)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x4af5fe[_0x18549e(0x1da)]['trim']()[_0x18549e(0x20b)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x18549e(0x2f3)]['t'](_0x18549e(0x192))};try{let _0x199fcd=await this[_0x18549e(0x1f7)]['get'](_0x43eebc[_0x18549e(0x1fe)])['validateApiKey'](_0x4af5fe[_0x18549e(0x1da)][_0x18549e(0x1a6)]());return _0x199fcd[_0x18549e(0x21c)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x199fcd[_0x18549e(0x1f5)]||this['_localeService']['t'](_0x18549e(0x2c4))};}catch(_0x52997a){return console['warn'](_0x18549e(0x25e),_0x52997a),{'isValid':!0x0};}}};_0x3e69d3=_0x5146d4([_0x3ac0c3(0x0,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x321763[_0x4e837f(0x236)])),_0x3ac0c3(0x1,_0x4bf02e['IUIPartsService']),_0x3ac0c3(0x2,_0x321763[_0x4e837f(0x2ee)]),_0x3ac0c3(0x3,_0x321763[_0x4e837f(0x1e0)]),_0x3ac0c3(0x4,_0x4bf02e[_0x4e837f(0x265)]),_0x3ac0c3(0x5,_0x4bf02e[_0x4e837f(0x30b)]),_0x3ac0c3(0x6,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x4bf02e[_0x4e837f(0x222)])),_0x3ac0c3(0x7,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x321763['LocaleService'])),_0x3ac0c3(0x8,_0x321763[_0x4e837f(0x2f1)]),_0x3ac0c3(0x9,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x43eebc[_0x4e837f(0x1fe)]))],_0x3e69d3);let _0x3c90fd={'id':_0x4e837f(0x256),'type':_0x321763[_0x4e837f(0x2fc)][_0x4e837f(0x1dc)],'handler':async(_0x5ed9d3,_0x359ce1)=>(_0x5ed9d3[_0x4e837f(0x2ae)](_0x3e69d3)[_0x4e837f(0x1a9)](),!0x0)};function _0x44adff(_0x538496,_0x5083b9){const _0x1aea07=_0x4e837f;switch(_0x538496){case _0x43eebc[_0x1aea07(0x212)][_0x1aea07(0x251)]:return _0x1aea07(0x187);case _0x43eebc['MCPConnectionStatus'][_0x1aea07(0x2a0)]:return _0x1aea07(0x271);case _0x43eebc['MCPConnectionStatus'][_0x1aea07(0x287)]:return _0x1aea07(0x18c);case _0x43eebc['MCPConnectionStatus']['FAILED']:switch(_0x5083b9){case _0x43eebc[_0x1aea07(0x1e4)][_0x1aea07(0x18a)]:return'mcpStatus.unauthorized';case _0x43eebc[_0x1aea07(0x1e4)]['SESSION_ID_OCCUPIED']:return _0x1aea07(0x24c);case _0x43eebc[_0x1aea07(0x1e4)][_0x1aea07(0x284)]:return _0x1aea07(0x2d2);case _0x43eebc[_0x1aea07(0x1e4)][_0x1aea07(0x2e9)]:return _0x1aea07(0x1ad);default:return'mcpStatus.failed';}case _0x43eebc[_0x1aea07(0x212)][_0x1aea07(0x1df)]:return _0x1aea07(0x1a5);default:return _0x1aea07(0x28d);}}function _0x1e7330(_0x3e996c,_0x1bd0de,_0xed5272,_0x4f907a=!0x0){const _0x2c3d10=_0x4e837f;let _0x1ed0b4=_0x44adff(_0x3e996c,_0x1bd0de),_0x10b818=_0xed5272['t'](_0x1ed0b4);return _0x4f907a?_0x3e996c===_0x43eebc['MCPConnectionStatus']['DISCONNECTED']&&_0x1bd0de===_0x43eebc[_0x2c3d10(0x1e4)]['UNAUTHORIZED']?_0x10b818+_0x2c3d10(0x22d)+_0xed5272['t'](_0x2c3d10(0x1de)):_0x3e996c===_0x43eebc['MCPConnectionStatus'][_0x2c3d10(0x287)]?''+_0x10b818:_0x3e996c===_0x43eebc[_0x2c3d10(0x212)][_0x2c3d10(0x251)]||_0x3e996c===_0x43eebc['MCPConnectionStatus'][_0x2c3d10(0x276)]?_0x10b818+_0x2c3d10(0x22d)+_0xed5272['t'](_0x2c3d10(0x28f)):_0x10b818:_0x10b818;}function _0x175140(_0x14da28){const _0x8bfcd9=_0x4e837f;switch(_0x14da28){case _0x43eebc[_0x8bfcd9(0x212)][_0x8bfcd9(0x287)]:return _0x8bfcd9(0x1ac);case _0x43eebc[_0x8bfcd9(0x212)]['CONNECTING']:case _0x43eebc[_0x8bfcd9(0x212)]['RETRYING']:return _0x8bfcd9(0x291);case _0x43eebc[_0x8bfcd9(0x212)][_0x8bfcd9(0x276)]:case _0x43eebc['MCPConnectionStatus'][_0x8bfcd9(0x251)]:return'univer-text-red-500';default:return _0x8bfcd9(0x2a3);}}function _0x4e7f10(_0xed19da){const _0x3d326b=_0x4e837f;let {status$:_0x1bd95b,error$:_0x18ca4b,onConfigure:_0x356593,showClickable:_0x2f7acf=!0x0}=_0xed19da,_0xc645be=(0x0,_0x4bf02e['useObservable'])(_0x1bd95b,_0x43eebc[_0x3d326b(0x212)][_0x3d326b(0x251)]),_0x445671=(0x0,_0x4bf02e[_0x3d326b(0x277)])(_0x18ca4b,_0x43eebc[_0x3d326b(0x1e4)][_0x3d326b(0x1d3)]),_0x491a2f=(0x0,_0x4bf02e[_0x3d326b(0x1e3)])(_0x321763[_0x3d326b(0x2fd)]),_0x452f9a=_0xc645be===_0x43eebc[_0x3d326b(0x212)][_0x3d326b(0x287)];_0xc645be===_0x43eebc['MCPConnectionStatus'][_0x3d326b(0x2a0)]||_0x43eebc[_0x3d326b(0x212)][_0x3d326b(0x1df)];let _0x101fb6=_0x491a2f['t'](_0x44adff(_0xc645be,_0x445671)),_0x41a997=_0x1e7330(_0xc645be,_0x445671,_0x491a2f,_0x2f7acf),_0x177f0e=_0x175140(_0xc645be),_0x343328=_0x452f9a?(0x0,_0x4babf8[_0x3d326b(0x1b7)])(_0x48a5f6,{}):(0x0,_0x4babf8['jsx'])(_0xba8e67,{}),_0x35b236=(0x0,_0xe91101[_0x3d326b(0x185)])(()=>{_0x2f7acf&&_0x356593&&_0x356593();},[_0x2f7acf,_0x356593]);function _0x12c4cb(){const _0x1241d7=_0x3d326b;return(0x0,_0x4babf8[_0x1241d7(0x1f4)])(_0x1241d7(0x272),{'className':(0x0,_0x577a04[_0x1241d7(0x2c7)])('univer-flex\x20univer-items-center',_0x2f7acf&&_0x356593&&_0x1241d7(0x18d)),'role':_0x1241d7(0x304),'onClick':_0x2f7acf&&_0x356593?_0x35b236:void 0x0,'children':[(0x0,_0x4babf8[_0x1241d7(0x1b7)])(_0x1241d7(0x272),{'className':(0x0,_0x577a04[_0x1241d7(0x2c7)])(_0x1241d7(0x30f),_0x177f0e),'children':_0x343328}),(0x0,_0x4babf8['jsx'])('div',{'className':_0x1241d7(0x1cd),'children':_0x101fb6})]});}return(0x0,_0x4babf8[_0x3d326b(0x1b7)])(_0x577a04[_0x3d326b(0x250)],{'title':_0x41a997,'placement':'bottom','children':_0x12c4cb()});}let _0x9e955e=class extends _0x321763[_0x4e837f(0x1fc)]{constructor(_0x3bedf5,_0x6b2152,_0x35ac84,_0x5bd7f7){const _0x293105=_0x4e837f;super(),this[_0x293105(0x1f7)]=_0x3bedf5,this[_0x293105(0x293)]=_0x6b2152,this[_0x293105(0x2a4)]=_0x35ac84,this[_0x293105(0x2db)]=_0x5bd7f7,this[_0x293105(0x2d1)](),this['_initStatusComponent']();}[_0x4e837f(0x2d1)](){const _0x18968a=_0x4e837f;let _0x172958=this[_0x18968a(0x2db)][_0x18968a(0x2eb)](_0x9df88e);_0x172958!=null&&_0x172958[_0x18968a(0x29e)]&&(this[_0x18968a(0x293)][_0x18968a(0x2f8)]=!0x1);}['_initStatusComponent'](){const _0x5e9682=_0x4e837f;let _0x1f32ec=this[_0x5e9682(0x2db)]['getConfig'](_0x9df88e);(_0x1f32ec==null?void 0x0:_0x1f32ec[_0x5e9682(0x2f5)])!==!0x1&&this['disposeWithMe'](this[_0x5e9682(0x2a4)][_0x5e9682(0x1f3)](_0x4bf02e['BuiltInUIPart'][_0x5e9682(0x1c0)],()=>{const _0x2579fe=_0x5e9682;var _0x5400a1;return(0x0,_0x4bf02e['connectInjector'])(_0x14ddb6({'status$':this[_0x2579fe(0x293)]['connectionStatus$'],'error$':this[_0x2579fe(0x293)][_0x2579fe(0x306)],'onConfigure':()=>this[_0x2579fe(0x239)](),'showClickable':(_0x5400a1=_0x1f32ec==null?void 0x0:_0x1f32ec[_0x2579fe(0x29e)])==null?!0x1:_0x5400a1}),this[_0x2579fe(0x1f7)]);}));}[_0x4e837f(0x239)](){const _0x8c1ab5=_0x4e837f;this[_0x8c1ab5(0x1f7)][_0x8c1ab5(0x2ae)](_0x3e69d3)[_0x8c1ab5(0x1a9)]();}};_0x9e955e=_0x5146d4([_0x3ac0c3(0x0,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x321763['Injector'])),_0x3ac0c3(0x1,(0x0,_0x321763['Inject'])(_0x43eebc[_0x4e837f(0x1fe)])),_0x3ac0c3(0x2,_0x4bf02e[_0x4e837f(0x21b)]),_0x3ac0c3(0x3,_0x321763[_0x4e837f(0x2ee)])],_0x9e955e);function _0x14ddb6(_0xfc0e28){let {status$:_0x3ae764,error$:_0x2b5ede,onConfigure:_0x8b6cea,showClickable:_0x3fb6a0}=_0xfc0e28;return function(){const _0x378c2e=_0x3c6f;return(0x0,_0x4babf8[_0x378c2e(0x1b7)])(_0x4e7f10,{'status$':_0x3ae764,'error$':_0x2b5ede,'onConfigure':_0x8b6cea,'showClickable':_0x3fb6a0});};}function _0x19ef7e(_0x5e81b2){const _0x5514e9=_0x4e837f;return{'id':_0x3c90fd['id'],'type':_0x4bf02e[_0x5514e9(0x221)]['BUTTON'],'icon':'MenuIcon','title':_0x5514e9(0x280),'tooltip':_0x5514e9(0x280)};}let _0x37c67e={[_0x4bf02e[_0x4e837f(0x1b6)]['OTHERS']]:{[_0x3c90fd['id']]:{'order':0xa,'menuItemFactory':_0x19ef7e}}},_0x488fcd=class extends _0x321763[_0x4e837f(0x1fc)]{constructor(_0x467e44,_0x5dc948){const _0x38a8d6=_0x4e837f;super(),this[_0x38a8d6(0x2b6)]=_0x467e44,this['_menuManagerService']=_0x5dc948,this[_0x38a8d6(0x2d7)](),this['_initializeMenus']();}[_0x4e837f(0x2d7)](){[_0x3c90fd]['forEach'](_0x4bb221=>{const _0x3c8488=_0x3c6f;this[_0x3c8488(0x2d4)](this['_commandService'][_0x3c8488(0x1af)](_0x4bb221));});}[_0x4e837f(0x290)](){const _0x58ff60=_0x4e837f;this[_0x58ff60(0x23e)][_0x58ff60(0x2fe)](_0x37c67e);}};_0x488fcd=_0x5146d4([_0x3ac0c3(0x0,_0x321763[_0x4e837f(0x22b)]),_0x3ac0c3(0x1,_0x4bf02e['IMenuManagerService'])],_0x488fcd);let _0x2c4d01={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4e837f(0x184),'connected':_0x4e837f(0x182),'failed':_0x4e837f(0x243),'retrying':_0x4e837f(0x27a),'unknown':_0x4e837f(0x27d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4e837f(0x269),'networkError':_0x4e837f(0x2d8),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4e837f(0x2e6),'clickToConfigure':_0x4e837f(0x2e0)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4e837f(0x285),'apiKey':_0x4e837f(0x313),'apiKeyPlaceholder':_0x4e837f(0x310),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4e837f(0x20d),'enableAuthHint':_0x4e837f(0x224),'connectionInfo':_0x4e837f(0x20f),'mcpClientConfig':_0x4e837f(0x20f),'configInstructions':_0x4e837f(0x296),'configStepTitle':_0x4e837f(0x298),'configStep1':_0x4e837f(0x1d8),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4e837f(0x223),'sessionId':_0x4e837f(0x27f),'sessionIdDescription':_0x4e837f(0x23b),'authorizationDescription':_0x4e837f(0x1ee),'configParameters':_0x4e837f(0x2bf),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x4e837f(0x27c),'note1':_0x4e837f(0x1a7),'note2':_0x4e837f(0x2ab),'configSaved':_0x4e837f(0x1ab),'configError':_0x4e837f(0x2a8),'apiApplyInfo':{'title':_0x4e837f(0x260),'description':_0x4e837f(0x1e7),'univerAiLabel':_0x4e837f(0x2d5),'getStarted':_0x4e837f(0x2e1)},'validation':{'apiKeyRequired':_0x4e837f(0x1f9),'apiKeyTooShort':_0x4e837f(0x1a0),'invalidConfig':_0x4e837f(0x1cb),'invalidApiKey':_0x4e837f(0x22a)},'connectionStatus':{'disconnected':_0x4e837f(0x2c5),'connecting':'Connecting...','connected':_0x4e837f(0x300),'failed':_0x4e837f(0x20c),'retrying':_0x4e837f(0x308)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4e837f(0x30d),'maxRetriesExceeded':_0x4e837f(0x1c3)}}},_0x4df982={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x4e837f(0x30a),'connected':_0x4e837f(0x301),'failed':_0x4e837f(0x2e2),'retrying':_0x4e837f(0x1e8),'unknown':'MCP\x20状态未知','unauthorized':_0x4e837f(0x2b7),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x4e837f(0x28c),'clickToConnect':_0x4e837f(0x1a8),'clickToConfigure':_0x4e837f(0x1b3)},'mcpConfig':{'title':_0x4e837f(0x1a2),'description':_0x4e837f(0x303),'apiKey':_0x4e837f(0x1ea),'apiKeyPlaceholder':_0x4e837f(0x21d),'apiKeyHint':_0x4e837f(0x232),'enableAuth':_0x4e837f(0x1d9),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4e837f(0x1d1),'mcpClientConfig':_0x4e837f(0x1d1),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4e837f(0x21f),'configStep1':_0x4e837f(0x2d3),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4e837f(0x209),'sessionId':_0x4e837f(0x217),'sessionIdDescription':_0x4e837f(0x2bd),'authorizationDescription':_0x4e837f(0x25d),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x4e837f(0x309),'saving':_0x4e837f(0x262),'note1':_0x4e837f(0x1c8),'note2':_0x4e837f(0x1f1),'configSaved':_0x4e837f(0x1e6),'configError':'配置保存失败','apiApplyInfo':{'title':_0x4e837f(0x2a2),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x4e837f(0x2cc),'getStarted':_0x4e837f(0x228)},'validation':{'apiKeyRequired':_0x4e837f(0x27e),'apiKeyTooShort':_0x4e837f(0x238),'invalidConfig':_0x4e837f(0x28b),'invalidApiKey':_0x4e837f(0x2c1)},'connectionStatus':{'disconnected':_0x4e837f(0x29a),'connecting':'连接中...','connected':'已连接','failed':'连接失败','retrying':_0x4e837f(0x246)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x4e837f(0x206),'networkError':_0x4e837f(0x2ce),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x2b401e='@univerjs-pro/mcp-ui',_0x4a79f7=_0x4e837f(0x302);let _0x1fd321=class extends _0x321763[_0x4e837f(0x30c)]{constructor(_0xf5506b=_0x10e123,_0x5a84fc,_0x4106b4,_0x343f14,_0x187412,_0xbedc90){const _0x367b83=_0x4e837f;super(),this[_0x367b83(0x241)]=_0xf5506b,this[_0x367b83(0x1f7)]=_0x5a84fc,this[_0x367b83(0x2db)]=_0x4106b4,this[_0x367b83(0x2a4)]=_0x343f14,this['_localStorageService']=_0x187412,this[_0x367b83(0x2f3)]=_0xbedc90;let {..._0xd01752}=(0x0,_0x321763[_0x367b83(0x215)])({},_0x10e123,this['_config']);this[_0x367b83(0x2db)]['setConfig'](_0x9df88e,_0xd01752);}async[_0x4e837f(0x204)](){const _0x16d6d4=_0x4e837f;let _0x34c0f5=[[_0x9e955e],[_0x3e69d3],[_0x488fcd]];this[_0x16d6d4(0x1f7)][_0x16d6d4(0x218)](_0x4b6c62[_0x16d6d4(0x263)])||_0x34c0f5[_0x16d6d4(0x24b)]([_0x4b6c62[_0x16d6d4(0x263)],{'useClass':_0x4b6c62['WebSocketService']}]),_0x34c0f5[_0x16d6d4(0x211)](_0x4bf57f=>this[_0x16d6d4(0x1f7)][_0x16d6d4(0x20a)](_0x4bf57f)),this[_0x16d6d4(0x1f7)][_0x16d6d4(0x2ae)](_0x9e955e),this[_0x16d6d4(0x1f7)]['get'](_0x3e69d3),this[_0x16d6d4(0x1f7)][_0x16d6d4(0x2ae)](_0x488fcd);}};_0x50d464(_0x1fd321,_0x4e837f(0x1a4),'MCP_UI_PLUGIN'),_0x50d464(_0x1fd321,'packageName',_0x2b401e),_0x50d464(_0x1fd321,_0x4e837f(0x1c7),_0x4a79f7),_0x1fd321=_0x5146d4([(0x0,_0x321763[_0x4e837f(0x2b9)])(_0x43eebc[_0x4e837f(0x207)]),_0x3ac0c3(0x1,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x321763[_0x4e837f(0x236)])),_0x3ac0c3(0x2,_0x321763[_0x4e837f(0x2ee)]),_0x3ac0c3(0x3,_0x4bf02e[_0x4e837f(0x21b)]),_0x3ac0c3(0x4,_0x321763[_0x4e837f(0x1e0)]),_0x3ac0c3(0x5,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x321763['LocaleService']))],_0x1fd321),_0x4199ba[_0x4e837f(0x273)]=_0xf68cd9,Object['defineProperty'](_0x4199ba,_0x4e837f(0x181),{'enumerable':!0x0,'get':function(){return _0x3e69d3;}}),Object[_0x4e837f(0x2c3)](_0x4199ba,_0x4e837f(0x18f),{'enumerable':!0x0,'get':function(){return _0x9e955e;}}),_0x4199ba[_0x4e837f(0x259)]=_0x4e7f10,Object[_0x4e837f(0x2c3)](_0x4199ba,_0x4e837f(0x294),{'enumerable':!0x0,'get':function(){return _0x488fcd;}}),_0x4199ba[_0x4e837f(0x25b)]=_0x3c90fd,Object['defineProperty'](_0x4199ba,_0x4e837f(0x1db),{'enumerable':!0x0,'get':function(){return _0x1fd321;}}),_0x4199ba[_0x4e837f(0x26e)]=_0x2c4d01,_0x4199ba[_0x4e837f(0x28e)]=_0x4df982;}));
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x23cd(_0xa370c0,_0x357fcd){_0xa370c0=_0xa370c0-0x12d;var _0x4b63c7=_0x4b63();var _0x23cdb9=_0x4b63c7[_0xa370c0];return _0x23cdb9;}(function(_0x261fb1,_0x3989d8){var _0x2820ea=_0x23cd,_0x54dff8=_0x261fb1();while(!![]){try{var _0x5c07b5=parseInt(_0x2820ea(0x15a))/0x1*(-parseInt(_0x2820ea(0x158))/0x2)+parseInt(_0x2820ea(0x130))/0x3+-parseInt(_0x2820ea(0x148))/0x4*(-parseInt(_0x2820ea(0x13a))/0x5)+-parseInt(_0x2820ea(0x135))/0x6+parseInt(_0x2820ea(0x140))/0x7*(parseInt(_0x2820ea(0x14d))/0x8)+parseInt(_0x2820ea(0x15d))/0x9+-parseInt(_0x2820ea(0x154))/0xa;if(_0x5c07b5===_0x3989d8)break;else _0x54dff8['push'](_0x54dff8['shift']());}catch(_0x74a039){_0x54dff8['push'](_0x54dff8['shift']());}}}(_0x4b63,0x3dd25),function(_0x19b46c,_0x45526e){var _0x1ca25a=_0x23cd;typeof exports==_0x1ca25a(0x14c)&&typeof module<'u'?module[_0x1ca25a(0x14f)]=_0x45526e():typeof define==_0x1ca25a(0x13b)&&define['amd']?define([],_0x45526e):(_0x19b46c=typeof globalThis<'u'?globalThis:_0x19b46c||self,_0x19b46c[_0x1ca25a(0x14e)]=_0x45526e());}(this,function(){var _0x2e1ce2=_0x23cd;return{'mcpStatus':{'disconnected':_0x2e1ce2(0x132),'connecting':_0x2e1ce2(0x141),'connected':_0x2e1ce2(0x143),'failed':_0x2e1ce2(0x133),'retrying':_0x2e1ce2(0x14a),'unknown':_0x2e1ce2(0x134),'unauthorized':_0x2e1ce2(0x12f),'sessionOccupied':_0x2e1ce2(0x15e),'networkError':_0x2e1ce2(0x139),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2e1ce2(0x13d),'description':_0x2e1ce2(0x15f),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2e1ce2(0x145),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2e1ce2(0x147),'enableAuthHint':_0x2e1ce2(0x13e),'connectionInfo':_0x2e1ce2(0x12d),'mcpClientConfig':_0x2e1ce2(0x12d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2e1ce2(0x144),'configStep1':_0x2e1ce2(0x160),'configStep2':_0x2e1ce2(0x138),'configStep3':_0x2e1ce2(0x146),'sessionId':_0x2e1ce2(0x157),'sessionIdDescription':_0x2e1ce2(0x153),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2e1ce2(0x137),'maxRetries':_0x2e1ce2(0x131),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x2e1ce2(0x142),'note2':_0x2e1ce2(0x14b),'configSaved':_0x2e1ce2(0x156),'configError':_0x2e1ce2(0x161),'apiApplyInfo':{'title':_0x2e1ce2(0x159),'description':_0x2e1ce2(0x155),'univerAiLabel':_0x2e1ce2(0x152),'getStarted':_0x2e1ce2(0x13f)},'validation':{'apiKeyRequired':_0x2e1ce2(0x15b),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2e1ce2(0x13c),'connected':_0x2e1ce2(0x12e),'failed':_0x2e1ce2(0x136),'retrying':_0x2e1ce2(0x150)},'connectionError':{'unauthorized':_0x2e1ce2(0x151),'sessionOccupied':_0x2e1ce2(0x15c),'networkError':_0x2e1ce2(0x149),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};}));function _0x4b63(){var _0x5ab45d=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','591396nLtulp','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','object','2294808mgLDsS','UniverProMcpUiCaES','exports','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','17930mCBvYG','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','Session\x20ID','16HZwNQN','What\x20is\x20API\x20Key?','18575zzVbmR','API\x20key\x20is\x20required','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','359226tcePaT','MCP:\x20Session\x20ID\x20Occupied','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','MCP\x20Client\x20Configuration','Connected','MCP:\x20Unauthorized','1249206NaXuVP','Max\x20Retries','MCP\x20Disconnected','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','2924412FGtwUR','Connection\x20Failed','Configuration\x20Parameters:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Network\x20Error','5yRGrRx','function','Connecting...','MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Get\x20your\x20API\x20key\x20in\x20seconds','7TSxhrc','MCP\x20Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','Configuration\x20Steps:','Enter\x20your\x20API\x20key'];_0x4b63=function(){return _0x5ab45d;};return _0x4b63();}
|