@univerjs-pro/mcp-ui 0.25.1 → 1.0.0-alpha.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/types/views/components/mcp-config.d.ts +1 -1
- package/lib/types/views/components/mcp-status.d.ts +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 +12 -12
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x13c7b5=_0x2d81;(function(_0x3ae6cd,_0x331a3d){const _0x1f87fa=_0x2d81,_0x1f0bdc=_0x3ae6cd();while(!![]){try{const _0x170c5d=-parseInt(_0x1f87fa(0x7b))/0x1*(-parseInt(_0x1f87fa(0x68))/0x2)+-parseInt(_0x1f87fa(0x82))/0x3+-parseInt(_0x1f87fa(0x74))/0x4*(-parseInt(_0x1f87fa(0x95))/0x5)+parseInt(_0x1f87fa(0x8b))/0x6*(-parseInt(_0x1f87fa(0x67))/0x7)+-parseInt(_0x1f87fa(0x75))/0x8+parseInt(_0x1f87fa(0x8d))/0x9*(parseInt(_0x1f87fa(0x96))/0xa)+-parseInt(_0x1f87fa(0x73))/0xb;if(_0x170c5d===_0x331a3d)break;else _0x1f0bdc['push'](_0x1f0bdc['shift']());}catch(_0x457896){_0x1f0bdc['push'](_0x1f0bdc['shift']());}}}(_0x454d,0xa9810));const e={'mcpStatus':{'disconnected':_0x13c7b5(0x72),'connecting':_0x13c7b5(0x9a),'connected':'MCP\x20Đã\x20kết\x20nối','failed':_0x13c7b5(0x6d),'retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':_0x13c7b5(0x76),'unauthorized':_0x13c7b5(0x94),'sessionOccupied':_0x13c7b5(0x71),'networkError':'MCP:\x20Lỗi\x20mạng','maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':'Nhấp\x20để\x20kết\x20nối\x20MCP','clickToConfigure':_0x13c7b5(0x8a)},'mcpConfig':{'title':_0x13c7b5(0x85),'description':_0x13c7b5(0x6a),'apiKey':_0x13c7b5(0x6c),'apiKeyPlaceholder':'Nhập\x20khóa\x20API\x20của\x20bạn','apiKeyHint':'Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','enableAuth':_0x13c7b5(0x81),'enableAuthHint':_0x13c7b5(0x70),'connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':_0x13c7b5(0x84),'configInstructions':'Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','configStepTitle':_0x13c7b5(0x77),'configStep1':_0x13c7b5(0x97),'configStep2':_0x13c7b5(0x93),'configStep3':_0x13c7b5(0x98),'sessionId':_0x13c7b5(0x80),'sessionIdDescription':_0x13c7b5(0x86),'authorizationDescription':_0x13c7b5(0x79),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x13c7b5(0x8c),'save':_0x13c7b5(0x6e),'saving':'Đang\x20lưu...','note1':_0x13c7b5(0x8e),'note2':_0x13c7b5(0x89),'configSaved':_0x13c7b5(0x6f),'configError':_0x13c7b5(0x88),'apiApplyInfo':{'title':_0x13c7b5(0x7f),'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':_0x13c7b5(0x7c),'getStarted':_0x13c7b5(0x83)},'validation':{'apiKeyRequired':_0x13c7b5(0x90),'apiKeyTooShort':_0x13c7b5(0x6b),'invalidConfig':_0x13c7b5(0x78),'invalidApiKey':_0x13c7b5(0x87)},'connectionStatus':{'disconnected':_0x13c7b5(0x7d),'connecting':_0x13c7b5(0x91),'connected':_0x13c7b5(0x7e),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x13c7b5(0x92)},'connectionError':{'unauthorized':_0x13c7b5(0x8f),'sessionOccupied':_0x13c7b5(0x69),'networkError':_0x13c7b5(0x99),'maxRetriesExceeded':_0x13c7b5(0x7a)}}};function _0x2d81(_0xe85766,_0x42f64b){_0xe85766=_0xe85766-0x67;const _0x454d5e=_0x454d();let _0x2d81ab=_0x454d5e[_0xe85766];return _0x2d81ab;}module['exports']=e;function _0x454d(){const _0x1ae205=['Khóa\x20API','MCP\x20Kết\x20nối\x20thất\x20bại','Lưu\x20cấu\x20hình','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','MCP\x20Đã\x20ngắt\x20kết\x20nối','6955586SeSYSg','860ibhxWe','4447512NcecZU','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Các\x20bước\x20cấu\x20hình:','Cấu\x20hình\x20không\x20hợp\x20lệ','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','43418HjiovA','Bảng\x20điều\x20khiển\x20Univer\x20AI','Đã\x20ngắt\x20kết\x20nối','Đã\x20kết\x20nối','Khóa\x20API\x20là\x20gì?','ID\x20phiên','Bật\x20xác\x20thực','755328mUQgtG','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Cấu\x20hình\x20máy\x20khách\x20MCP','Cấu\x20hình\x20MCP','Đị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.','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Lưu\x20cấu\x20hình\x20thất\x20bại','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Nhấp\x20để\x20cấu\x20hình\x20MCP','270DGnjyl','Số\x20lần\x20thử\x20lại\x20tối\x20đa','135YSOBpY','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','Yêu\x20cầu\x20khóa\x20API','Đang\x20kết\x20nối...','Đang\x20thử\x20lại...','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','MCP:\x20Không\x20được\x20phép','20780CuajXd','642460tYWufG','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','MCP\x20Đang\x20kết\x20nối...','10927PBKLKE','16zmuheC','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự'];_0x454d=function(){return _0x1ae205;};return _0x454d();}
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5214(_0x55f227,_0x28285d){_0x55f227=_0x55f227-0x14c;const _0x55da51=_0x55da();let _0x521465=_0x55da51[_0x55f227];return _0x521465;}const _0x581608=_0x5214;(function(_0x2e0a37,_0xec3d3f){const _0x17a12b=_0x5214,_0x3de8dd=_0x2e0a37();while(!![]){try{const _0x375a65=parseInt(_0x17a12b(0x16f))/0x1*(-parseInt(_0x17a12b(0x14c))/0x2)+parseInt(_0x17a12b(0x158))/0x3*(-parseInt(_0x17a12b(0x15d))/0x4)+parseInt(_0x17a12b(0x176))/0x5+parseInt(_0x17a12b(0x175))/0x6+-parseInt(_0x17a12b(0x172))/0x7*(-parseInt(_0x17a12b(0x174))/0x8)+-parseInt(_0x17a12b(0x157))/0x9+-parseInt(_0x17a12b(0x14e))/0xa*(parseInt(_0x17a12b(0x164))/0xb);if(_0x375a65===_0xec3d3f)break;else _0x3de8dd['push'](_0x3de8dd['shift']());}catch(_0x41c936){_0x3de8dd['push'](_0x3de8dd['shift']());}}}(_0x55da,0x59e62));const e={'mcpStatus':{'disconnected':_0x581608(0x16c),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x581608(0x166),'retrying':_0x581608(0x169),'unknown':_0x581608(0x14f),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x581608(0x162),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x581608(0x167),'clickToConfigure':_0x581608(0x161)},'mcpConfig':{'title':_0x581608(0x15e),'description':_0x581608(0x14d),'apiKey':_0x581608(0x178),'apiKeyPlaceholder':_0x581608(0x179),'apiKeyHint':_0x581608(0x165),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x581608(0x156),'mcpClientConfig':_0x581608(0x156),'configInstructions':_0x581608(0x154),'configStepTitle':_0x581608(0x155),'configStep1':_0x581608(0x150),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x581608(0x173),'sessionId':'会话ID','sessionIdDescription':_0x581608(0x16b),'authorizationDescription':_0x581608(0x15f),'configParameters':_0x581608(0x168),'maxRetries':_0x581608(0x16a),'save':_0x581608(0x17d),'saving':_0x581608(0x16d),'note1':'配置更改将立即生效','note2':_0x581608(0x15a),'configSaved':_0x581608(0x151),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x581608(0x152),'univerAiLabel':_0x581608(0x15b),'getStarted':_0x581608(0x17a)},'validation':{'apiKeyRequired':_0x581608(0x15c),'apiKeyTooShort':_0x581608(0x163),'invalidConfig':_0x581608(0x160),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x581608(0x153),'connecting':_0x581608(0x177),'connected':_0x581608(0x17c),'failed':_0x581608(0x171),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x581608(0x16e),'sessionOccupied':_0x581608(0x17b),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x581608(0x170)}}};module[_0x581608(0x159)]=e;function _0x55da(){const _0x2a687a=['连接失败','3565730hujIcn','重启您的\x20MCP\x20客户端以使配置生效','8EIVvCM','4407210iskHoV','1929375JMSmyQ','连接中...','API\x20密钥','请输入您的\x20API\x20密钥','几秒钟内获取您的\x20API\x20密钥','会话\x20ID\x20已被占用,请稍后再试','已连接','保存配置','164tTwBpB','配置\x20MCP\x20使用\x20AI\x20操作电子表格','7150CRatQS','MCP\x20状态未知','复制以下\x20JSON\x20配置','配置保存成功','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','未连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置步骤:','MCP\x20客户端配置','2151216cRIJuf','30471outAiF','exports','您的\x20API\x20密钥安全存储在本地存储中','Univer\x20AI\x20控制台','API\x20密钥不能为空','172LPlTDy','MCP\x20配置','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置无效','点击配置\x20MCP','MCP:\x20网络错误','API\x20密钥长度至少需要\x2010\x20位','671lXiuCA','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20连接失败','点击连接\x20MCP','配置参数:','MCP\x20重连中...','最大重试次数','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20已断开','保存中...','权限验证失败,请检查您的\x20API\x20密钥','6612avrPtM','超出最大重试次数,请稍后再试'];_0x55da=function(){return _0x2a687a;};return _0x55da();}
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5240(_0x489895,_0x5e6b93){_0x489895=_0x489895-0xef;const _0x5e8ba5=_0x5e8b();let _0x5240c5=_0x5e8ba5[_0x489895];return _0x5240c5;}const _0x5aba02=_0x5240;(function(_0x53996e,_0x5cce89){const _0x2ae7b1=_0x5240,_0x28b3cc=_0x53996e();while(!![]){try{const _0x4a4772=-parseInt(_0x2ae7b1(0xf0))/0x1*(parseInt(_0x2ae7b1(0xf8))/0x2)+-parseInt(_0x2ae7b1(0xf9))/0x3*(-parseInt(_0x2ae7b1(0xf5))/0x4)+parseInt(_0x2ae7b1(0xf3))/0x5+-parseInt(_0x2ae7b1(0xf4))/0x6+parseInt(_0x2ae7b1(0xf6))/0x7*(parseInt(_0x2ae7b1(0xf1))/0x8)+-parseInt(_0x2ae7b1(0xfa))/0x9*(parseInt(_0x2ae7b1(0xf7))/0xa)+-parseInt(_0x2ae7b1(0xef))/0xb*(parseInt(_0x2ae7b1(0xfb))/0xc);if(_0x4a4772===_0x5cce89)break;else _0x28b3cc['push'](_0x28b3cc['shift']());}catch(_0xbaaa06){_0x28b3cc['push'](_0x28b3cc['shift']());}}}(_0x5e8b,0x46c39));const e=require('./en-US.js');module[_0x5aba02(0xf2)]=e;function _0x5e8b(){const _0x39b638=['22SJOAhZ','2609OrZIHl','32glonxp','exports','1424995PejMiP','240396zhfyHq','4pXpHJP','899731EbTLqN','20KtkELi','358cgQMDz','536427bKngMt','402525gqfzuo','549384iYWdcE'];_0x5e8b=function(){return _0x39b638;};return _0x5e8b();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x349f38=_0x100b;(function(_0x3f3bf0,_0x458e94){const _0xd76345=_0x100b,_0x292124=_0x3f3bf0();while(!![]){try{const _0x3f138f=parseInt(_0xd76345(0x196))/0x1*(-parseInt(_0xd76345(0x202))/0x2)+parseInt(_0xd76345(0x279))/0x3*(-parseInt(_0xd76345(0x1bb))/0x4)+-parseInt(_0xd76345(0x242))/0x5+-parseInt(_0xd76345(0x261))/0x6+parseInt(_0xd76345(0x20c))/0x7*(parseInt(_0xd76345(0x1e2))/0x8)+parseInt(_0xd76345(0x187))/0x9+parseInt(_0xd76345(0x190))/0xa*(parseInt(_0xd76345(0x25d))/0xb);if(_0x3f138f===_0x458e94)break;else _0x292124['push'](_0x292124['shift']());}catch(_0x2d9b0b){_0x292124['push'](_0x292124['shift']());}}}(_0x24d2,0x53960));import{CommandType as _0x406843,DependentOn as _0x1cb994,Disposable as _0x5f07cd,ICommandService as _0x58a53f,IConfigService as _0x2b4b65,ILocalStorageService as _0x504129,ILogService as _0x5466f8,Inject as _0x5ab4cd,Injector as _0x52106a,LocaleService as _0x2a4117,Plugin as _0x281e21,merge as _0x31de54}from'@univerjs/core';import{MCPConnectionController as _0xa07734,MCPConnectionError as _0x4f4eca,MCPConnectionStatus as _0x22b515,MCP_PLUGIN_CONFIG_KEY as _0x46f5fe,UniverMCPPlugin as _0x4fc106}from'@univerjs-pro/mcp';import{Button as _0x281a3f,Input as _0xb5960,MessageType as _0x3d27a9,Tooltip as _0x42e742,clsx as _0x5161dc}from'@univerjs/design';import{BuiltInUIPart as _0x150bb3,ComponentManager as _0x517ccd,IDialogService as _0x179317,IMenuManagerService as _0x481c09,IMessageService as _0x459a62,IUIPartsService as _0x19a644,MenuItemType as _0x4562b8,RibbonStartGroup as _0xa20e1c,connectInjector as _0x277d2c,useDependency as _0x1b601f,useObservable as _0x22b380}from'@univerjs/ui';import{BehaviorSubject as _0x56b14b}from'rxjs';import{CheckMarkIcon as _0x2b54e9,CloseIcon as _0x914b78,HelpIcon as _0x180a71,OffLineIcon as _0x46e5cb,OnLineIcon as _0x32786a}from'@univerjs/icons';import{useCallback as _0x2c1554,useState as _0x12cec2}from'react';import{jsx as _0x17a7ec,jsxs as _0x1fe9f9}from'react/jsx-runtime';import{ISocketService as _0x14f887,WebSocketService as _0x29f53e}from'@univerjs/network';function z(_0x2bee8a){const _0x21a784=_0x100b;var _0x25207e,_0x2f8602;let {mcpCoreConfig:_0x4de57f,onSave:_0x32b4b4,loading:_0x5638d5=!0x1,config:_0x58f6a8,connectionStatus$:_0x7f9402,connectionError$:_0x4de8bb,currentApiKey$:_0xaa1eb5,currentSessionId$:_0x2c6c77}=_0x2bee8a,_0x1d3675=_0x1b601f(_0x2a4117),_0x391b16=_0x22b380(_0x7f9402,_0x22b515['DISCONNECTED']),_0x23c598=_0x22b380(_0x4de8bb,_0x4f4eca[_0x21a784(0x1d4)]),_0xc7eca0=_0x22b380(_0x2c6c77,''),[_0x45a398,_0x18f2d9]=_0x12cec2(_0x22b380(_0xaa1eb5,'')||''),_0x4c4861=_0x58f6a8[_0x21a784(0x262)]&&_0x4de57f[_0x21a784(0x20d)]&&(_0x4de57f[_0x21a784(0x20d)]['includes'](_0x21a784(0x24b))||_0x4de57f[_0x21a784(0x20d)][_0x21a784(0x1e3)](_0x21a784(0x1e8))),_0xba5e0a=(_0x25207e=_0x4de57f[_0x21a784(0x20d)])==null?void 0x0:_0x25207e[_0x21a784(0x1e3)](_0x21a784(0x24b)),_0xbfcc22=(_0x2f8602=_0x4de57f[_0x21a784(0x20d)])==null?void 0x0:_0x2f8602[_0x21a784(0x1e3)](_0x21a784(0x1e8)),_0x34a6ac=_0xba5e0a?_0x21a784(0x220):_0x21a784(0x1ca),_0x44e4f0=_0x58f6a8['showDeveloperTools']&&(_0xba5e0a||_0xbfcc22),[_0x3f9460,_0x1a0716]=_0x12cec2(!_0x45a398[_0x21a784(0x290)]()),_0x31de11=(_0x4898e2,_0x184818)=>{const _0x308f1e=_0x21a784;if(_0x184818===_0x4f4eca['UNAUTHORIZED'])return _0x308f1e(0x1f0);switch(_0x4898e2){case _0x22b515[_0x308f1e(0x1f7)]:return _0x308f1e(0x23d);case _0x22b515['CONNECTING']:case _0x22b515[_0x308f1e(0x23a)]:return _0x308f1e(0x23c);case _0x22b515['FAILED']:return _0x308f1e(0x1f0);default:return _0x308f1e(0x1f9);}},_0x31309d=(_0x693879,_0x436c4e)=>{const _0x31cd69=_0x21a784;if(_0x436c4e===_0x4f4eca[_0x31cd69(0x223)])return _0x31cd69(0x26d);switch(_0x693879){case _0x22b515[_0x31cd69(0x1f7)]:return'univer-bg-green-500';case _0x22b515[_0x31cd69(0x1ea)]:case _0x22b515[_0x31cd69(0x23a)]:return _0x31cd69(0x23f);case _0x22b515[_0x31cd69(0x25b)]:return'univer-bg-red-500';default:return _0x31cd69(0x293);}},_0xf47ff6=_0x3a445e=>{const _0x1a51c6=_0x21a784;switch(_0x3a445e){case _0x22b515[_0x1a51c6(0x1f7)]:return _0x1d3675['t']('mcpConfig.connectionStatus.connected');case _0x22b515[_0x1a51c6(0x1ea)]:return _0x1d3675['t'](_0x1a51c6(0x1ed));case _0x22b515['FAILED']:return _0x1d3675['t'](_0x1a51c6(0x268));case _0x22b515['RETRYING']:return _0x1d3675['t'](_0x1a51c6(0x17e));default:return _0x1d3675['t'](_0x1a51c6(0x288));}},_0x24d7fe=_0x5a15e9=>{const _0x12a228=_0x21a784;switch(_0x5a15e9){case _0x4f4eca['UNAUTHORIZED']:return _0x1d3675['t'](_0x12a228(0x1ee));case _0x4f4eca[_0x12a228(0x26e)]:return _0x1d3675['t'](_0x12a228(0x263));case _0x4f4eca[_0x12a228(0x278)]:return _0x1d3675['t'](_0x12a228(0x1c7));case _0x4f4eca['MAX_RETRIES_EXCEEDED']:return _0x1d3675['t'](_0x12a228(0x28e));default:return'';}},_0x2d243f=_0x2c1554(()=>{const _0x21a3e8=_0x21a784;_0x32b4b4({..._0x4de57f,'apiKey':_0x45a398[_0x21a3e8(0x290)](),'enableAuth':!0x0});},[_0x4de57f,_0x45a398,!0x0,_0x32b4b4]),_0x3fe736=_0x45a398[_0x21a784(0x290)]()['length']>0x0;return _0x1fe9f9(_0x21a784(0x26b),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1cd),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x22b),'children':_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-white','children':'⚙'})}),_0x17a7ec(_0x21a784(0x26b),{'children':_0x17a7ec('p',{'className':_0x21a784(0x189),'children':_0x1d3675['t'](_0x21a784(0x234))})})]})}),_0x1fe9f9('div',{'className':_0x21a784(0x232),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x5161dc('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x31de11(_0x391b16,_0x23c598)),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x5161dc(_0x21a784(0x298),_0x31309d(_0x391b16,_0x23c598))}),_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-sm\x20univer-font-medium','children':_0xf47ff6(_0x391b16)})]})}),_0x23c598!==_0x4f4eca[_0x21a784(0x1d4)]&&(_0x391b16===_0x22b515['FAILED']||_0x23c598===_0x4f4eca[_0x21a784(0x223)])&&_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x18e),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x27c),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x1d8),'children':'⚠️'}),_0x17a7ec('p',{'className':_0x21a784(0x22f),'children':_0x24d7fe(_0x23c598)})]})})]}),_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1eb),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x198),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x1fe9f9(_0x21a784(0x173),{'className':_0x21a784(0x213),'children':[_0x17a7ec(_0x21a784(0x18b),{'children':'🔑'}),'\x20',_0x1d3675['t'](_0x21a784(0x1a6)),_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-red-500','children':'*'}),_0x4c4861&&_0x17a7ec('a',{'className':_0x21a784(0x25e),'title':_0x1d3675['t'](_0x21a784(0x22c)),'role':'button','onClick':()=>_0x1a0716(!0x0),'children':_0x17a7ec(_0x180a71,{})})]}),_0x17a7ec(_0xb5960,{'type':_0x21a784(0x269),'placeholder':_0x1d3675['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x45a398,'disabled':_0x5638d5,'autoComplete':_0x21a784(0x206),'onChange':_0x18f2d9}),_0x17a7ec('p',{'className':_0x21a784(0x1cf),'children':_0x1d3675['t'](_0x21a784(0x256))})]}),_0x4c4861&&_0x3f9460&&_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x27a),'children':[_0x17a7ec('a',{'className':_0x21a784(0x229),'role':'button','onClick':()=>_0x1a0716(!0x1),'children':_0x17a7ec(_0x914b78,{'className':'univer-size-4'})}),_0x1fe9f9('div',{'className':_0x21a784(0x1ac),'children':[_0x17a7ec('div',{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x17a7ec('span',{'className':_0x21a784(0x1c0),'children':'🚀'})}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x210),'children':[_0x17a7ec('h4',{'className':_0x21a784(0x1fe),'children':_0x1d3675['t'](_0x21a784(0x22c))}),_0x17a7ec('p',{'className':_0x21a784(0x1fc),'children':_0x1d3675['t'](_0x21a784(0x170))}),_0x17a7ec('div',{'className':_0x21a784(0x21a),'children':_0x44e4f0&&_0x1fe9f9('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':_0x34a6ac,'target':_0x21a784(0x1bd),'rel':_0x21a784(0x224),'children':[_0x17a7ec(_0x21a784(0x18b),{'children':'🤖'}),_0x1d3675['t'](_0x21a784(0x17f)),_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x21e),'children':'↗'})]})}),_0x1fe9f9('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x1d3675['t'](_0x21a784(0x272))]})]})]})]}),_0x58f6a8[_0x21a784(0x262)]&&_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1fe9f9('h4',{'className':_0x21a784(0x1e5),'children':[_0x17a7ec('span',{'children':'🔗'}),'\x20',_0x1d3675['t'](_0x21a784(0x1e4))]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d6),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-space-y-3','children':[_0x17a7ec('p',{'className':_0x21a784(0x20b),'children':_0x1d3675['t'](_0x21a784(0x1c2))}),_0x1fe9f9('div',{'className':_0x21a784(0x1d7),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x17c),'children':_0x1d3675['t'](_0x21a784(0x211))}),_0x1fe9f9('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x1fe9f9('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x17a7ec('span',{'className':_0x21a784(0x236),'children':'1'}),_0x1d3675['t']('mcpConfig.configStep1')]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x18b),{'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'}),_0x1d3675['t'](_0x21a784(0x1de))]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x236),'children':'3'}),_0x1d3675['t']('mcpConfig.configStep3')]})]})]})]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x21a784(0x1df)}),_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1fb),'children':_0x17a7ec(_0x21a784(0x21c),{'className':_0x21a784(0x1a0),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x21a784(0x216)+(_0xc7eca0||'<SESSION_ID>'),'type':_0x21a784(0x282),'headers':{'Authorization':_0x21a784(0x194)+(_0x45a398||_0x21a784(0x1cc))}}}},null,0x2)})})]}),_0x1fe9f9('div',{'className':_0x21a784(0x296),'children':[_0x17a7ec('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1d3675['t']('mcpConfig.configParameters')}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x191),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1c8)}),_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1f4),'children':_0x21a784(0x1b7)}),_0x17a7ec('div',{'className':_0x21a784(0x1cf),'children':_0x1d3675['t'](_0x21a784(0x217))})]})]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x191),'children':[_0x17a7ec('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x17a7ec('div',{'className':_0x21a784(0x1f4),'children':'Authorization:'}),_0x17a7ec(_0x21a784(0x26b),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1d3675['t'](_0x21a784(0x237))})]})]})]})]})]})]}),_0x17a7ec(_0x281a3f,{'onClick':_0x2d243f,'disabled':!_0x3fe736||_0x5638d5,'className':_0x21a784(0x297),'children':_0x5638d5?_0x1fe9f9(_0x21a784(0x18b),{'className':_0x21a784(0x218),'children':[_0x17a7ec('span',{'children':'⟲'}),_0x1d3675['t'](_0x21a784(0x1bf))]}):_0x1fe9f9('span',{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x2b54e9,{}),_0x1d3675['t'](_0x21a784(0x26c))]})}),_0x17a7ec('div',{'className':_0x21a784(0x260),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x267),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x22e),'children':'💡'}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x21f),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x208),'children':_0x21a784(0x25f)}),_0x1fe9f9(_0x21a784(0x26b),{'children':['•',_0x1d3675['t'](_0x21a784(0x22d))]}),_0x1fe9f9(_0x21a784(0x26b),{'children':['•',_0x1d3675['t'](_0x21a784(0x1e1))]})]})]})})]})})]});}const B=_0x349f38(0x257),V={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x24d2(){const _0x4b56ae=['mcpConfig.configStepTitle','removeItem','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','getConfig','mcpStatus.retrying','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.sessionIdDescription','univer-flex\x20univer-items-center\x20univer-gap-2','_componentManager','univer-flex\x20univer-flex-wrap\x20univer-gap-2','string','pre','univer-text-gray-500','univer-text-gray-400','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','https://console.univer.plus','几秒钟内获取您的\x20API\x20密钥','packageName','UNAUTHORIZED','noopener\x20noreferrer','mcp-ui.command.openConfigPanel','MCP\x20客户端配置','MCP\x20Connection\x20Failed','什么是\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','mcpConfig.validation.invalidConfig','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.apiApplyInfo.title','mcpConfig.note1','univer-shrink-0\x20univer-text-blue-500','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','subscribeConfigValue$','_config$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.description','MCP_UI_PLUGIN','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','mcpConfig.authorizationDescription','Click\x20to\x20configure\x20MCP','showConfigPanel','RETRYING','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','get','univer-bg-blue-500','启用身份验证以获得安全连接','close','3277640GmyZZd','add','_initAutoConnect','iterator','_injector','object','您的\x20API\x20密钥安全存储在本地存储中','Configuration\x20Parameters:','_localeService','univer.plus','_apiKey$','_dialogService','启用身份验证','将配置添加到您的\x20MCP\x20客户端设置文件中','call','_handleConfigSave','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','超出最大重试次数,请稍后再试','Click\x20to\x20connect\x20MCP','API\x20Key','mcpConfig.apiKeyHint','mcp-ui.config','symbol','Connecting...','mcpStatus.sessionOccupied','FAILED','_validateConfig','2370291JDXmiF','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','Configuration\x20Notes:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','219630qnFOQy','showDeveloperTools','mcpConfig.connectionError.sessionOccupied','_connectionController','配置保存成功','配置更改将立即生效','univer-flex\x20univer-gap-3','mcpConfig.connectionStatus.failed','text','Save\x20Configuration','div','mcpConfig.save','univer-bg-red-500','SESSION_ID_OCCUPIED','Copy\x20the\x20JSON\x20configuration\x20below','prototype','复制以下\x20JSON\x20配置','mcpConfig.apiApplyInfo.getStarted','error','COMMAND','Error','_logService','mcpStatus.disconnected','NETWORK_ERROR','3WmyyfE','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','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20Unknown\x20Status','function','会话\x20ID\x20已被占用,请稍后再试','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.maxRetriesExceeded','http','__setCustomHeaders','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','push','MCPConfigPanel','mcpConfig.connectionStatus.disconnected','_uiPartsService','DISCONNECTED','连接中...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','open','mcpConfig.connectionError.maxRetriesExceeded','会话ID','trim','registerComponent','mcpConfig.configSaved','univer-bg-gray-500','未连接','errorMessage','univer-space-y-3','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-size-2\x20univer-rounded-full','getOwnPropertyDescriptor','Get\x20your\x20API\x20key\x20in\x20seconds','mcp.apiKey','decorate','mcpConfig.apiApplyInfo.description','validateApiKey','MCP\x20重连中...','label','Configuration\x20saved\x20successfully','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP\x20连接失败','pluginName','Disconnected','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','connectionStatus$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','register','mcpConfig.connectionStatus.retrying','mcpConfig.apiApplyInfo.univerAiLabel','_mcpCoreConfig$','MCP\x20Client\x20Configuration','OTHERS','_createConfigPanelComponent','apiKey','univer-flex\x20univer-items-center','MCP:\x20Max\x20Retries\x20Exceeded','2058939usdpmo','MCP\x20已断开','univer-text-sm\x20univer-text-gray-500','API\x20密钥不能为空','span','mcpStatus.unauthorized','univer-text-green-500','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_registerComponent','50ufdvOc','univer-flex\x20univer-items-start\x20univer-gap-3','show','_mcpConnectionController','Bearer\x20','Success','2xNMpWR','MCP\x20Connecting...','univer-space-y-5','showStatus','mcpConfig.configError','_initConfigSync','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_initStatusComponent','\x20-\x20','setConfig','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','已连接','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','has','MCP\x20Retrying...','mcpConfig.apiKey','enableAutoConnect','mcpStatus.unknown','disposeWithMe','权限验证失败,请检查您的\x20API\x20密钥','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','warn','Connected','MCP:\x20未授权','_initializeMenus','Failed\x20to\x20save\x20configuration','BUTTON','mergeMenu','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.clickToConfigure','重连中...','univer_session_id:','mcpConfig.title','mcp-config-dialog','Saving...','498124xBmDwz','univer-text-red-500','_blank','getItem','mcpConfig.saving','univer-text-blue-600','sessionId$','mcpConfig.configInstructions','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_handleConfigure','mcpStatus.failed','MCP:\x20Network\x20Error','mcpConfig.connectionError.networkError','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_config','https://console.univer.ai','_loading$','<API_KEY>','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','请输入您的\x20API\x20密钥','univer-text-xs\x20univer-text-gray-500','mcpConfig.validation.invalidApiKey','配置参数:','_localStorageService','isValid','NONE','subscribe','univer-space-y-4','univer-space-y-2','univer-shrink-0\x20univer-text-red-500','_commandService','API\x20密钥长度至少需要\x2010\x20位','length','Enable\x20Authentication','配置步骤:','mcpConfig.configStep2','MCP\x20Configuration','next','mcpConfig.note2','20704etgRYD','includes','mcpConfig.connectionInfo','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20密钥','connectionError$','univer.ai','defineProperty','CONNECTING','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','最大重试次数','mcpConfig.connectionStatus.connecting','mcpConfig.connectionError.unauthorized','0.25.1','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_configService','_loadStoredApiKey','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_messageService','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','CONNECTED','getCurrentConfig','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','setItem','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','连接失败','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.apiKeyRequired','点击连接\x20MCP','MenuIcon','180788wYkBVs','MCP\x20连接中...','保存配置','Enter\x20your\x20API\x20key','off','value','univer-font-medium','constructor','version','univer-text-xs\x20univer-text-gray-600','91VZdEDG','mcpServerUrl','MCP:\x20会话\x20ID\x20已被占用','HEADER_MENU','univer-flex-1'];_0x24d2=function(){return _0x4b56ae;};return _0x24d2();}function H(_0x10c6b1){'@babel/helpers - typeof';const _0x1b0209=_0x349f38;return H=typeof Symbol==_0x1b0209(0x27e)&&typeof Symbol[_0x1b0209(0x245)]=='symbol'?function(_0x2dfa17){return typeof _0x2dfa17;}:function(_0x5e7f9a){const _0x3b2554=_0x1b0209;return _0x5e7f9a&&typeof Symbol==_0x3b2554(0x27e)&&_0x5e7f9a[_0x3b2554(0x209)]===Symbol&&_0x5e7f9a!==Symbol[_0x3b2554(0x270)]?_0x3b2554(0x258):typeof _0x5e7f9a;},H(_0x10c6b1);}function oe(_0x24de2d,_0x1bc569){const _0x1edbc7=_0x349f38;if(H(_0x24de2d)!=_0x1edbc7(0x247)||!_0x24de2d)return _0x24de2d;var _0x6ea2cb=_0x24de2d[Symbol['toPrimitive']];if(_0x6ea2cb!==void 0x0){var _0x562613=_0x6ea2cb[_0x1edbc7(0x250)](_0x24de2d,_0x1bc569||'default');if(H(_0x562613)!=_0x1edbc7(0x247))return _0x562613;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1bc569===_0x1edbc7(0x21b)?String:Number)(_0x24de2d);}function se(_0x2fe064){const _0x3e8254=_0x349f38;var _0x37a438=oe(_0x2fe064,'string');return H(_0x37a438)==_0x3e8254(0x258)?_0x37a438:_0x37a438+'';}function U(_0x57cbbd,_0xd4f952,_0x500e11){const _0x1cfd3b=_0x349f38;return(_0xd4f952=se(_0xd4f952))in _0x57cbbd?Object[_0x1cfd3b(0x1e9)](_0x57cbbd,_0xd4f952,{'value':_0x500e11,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57cbbd[_0xd4f952]=_0x500e11,_0x57cbbd;}function W(_0x47b003,_0x187f63){return function(_0x227ebc,_0x50addf){_0x187f63(_0x227ebc,_0x50addf,_0x47b003);};}function G(_0x3096cb,_0x2d1d12,_0x5d2dcd,_0x58bc1a){const _0x21d3c7=_0x349f38;var _0x396866=arguments['length'],_0x8c49e1=_0x396866<0x3?_0x2d1d12:_0x58bc1a===null?_0x58bc1a=Object[_0x21d3c7(0x16c)](_0x2d1d12,_0x5d2dcd):_0x58bc1a,_0x5e1270;if(typeof Reflect==_0x21d3c7(0x247)&&typeof Reflect[_0x21d3c7(0x16f)]==_0x21d3c7(0x27e))_0x8c49e1=Reflect[_0x21d3c7(0x16f)](_0x3096cb,_0x2d1d12,_0x5d2dcd,_0x58bc1a);else{for(var _0x5e7024=_0x3096cb['length']-0x1;_0x5e7024>=0x0;_0x5e7024--)(_0x5e1270=_0x3096cb[_0x5e7024])&&(_0x8c49e1=(_0x396866<0x3?_0x5e1270(_0x8c49e1):_0x396866>0x3?_0x5e1270(_0x2d1d12,_0x5d2dcd,_0x8c49e1):_0x5e1270(_0x2d1d12,_0x5d2dcd))||_0x8c49e1);}return _0x396866>0x3&&_0x8c49e1&&Object[_0x21d3c7(0x1e9)](_0x2d1d12,_0x5d2dcd,_0x8c49e1),_0x8c49e1;}const K=_0x349f38(0x16e),q=_0x349f38(0x1b9);let J=class extends _0x5f07cd{constructor(_0x2210c8,_0xb195a5,_0x2440ad,_0x564bc7,_0x3e66e7,_0x1bbf86,_0x3b966d,_0x3b9c84,_0x47e96a,_0x231a85){const _0x412fcf=_0x349f38;super(),this[_0x412fcf(0x246)]=_0x2210c8,this[_0x412fcf(0x289)]=_0xb195a5,this[_0x412fcf(0x1f1)]=_0x2440ad,this[_0x412fcf(0x1d2)]=_0x564bc7,this[_0x412fcf(0x24d)]=_0x3e66e7,this[_0x412fcf(0x1f5)]=_0x1bbf86,this[_0x412fcf(0x219)]=_0x3b966d,this['_localeService']=_0x3b9c84,this[_0x412fcf(0x276)]=_0x47e96a,this[_0x412fcf(0x193)]=_0x231a85,U(this,'_loading$',new _0x56b14b(!0x1)),U(this,'_mcpCoreConfig$',new _0x56b14b({})),U(this,_0x412fcf(0x231),new _0x56b14b({})),U(this,_0x412fcf(0x24c),new _0x56b14b('')),U(this,'_handleConfigSave',async _0x2d7587=>{const _0x35606b=_0x412fcf;this[_0x35606b(0x1cb)]['next'](!0x0);try{var _0x58c308,_0x23da9c;let _0x2d12d6=await this[_0x35606b(0x25c)](_0x2d7587);if(!_0x2d12d6[_0x35606b(0x1d3)]){this[_0x35606b(0x1f5)][_0x35606b(0x192)]({'type':_0x3d27a9['Error'],'content':_0x2d12d6[_0x35606b(0x295)]||this[_0x35606b(0x24a)]['t'](_0x35606b(0x22a))});return;}_0x2d7587[_0x35606b(0x184)]?await this['_localStorageService'][_0x35606b(0x1fa)](K,_0x2d7587[_0x35606b(0x184)][_0x35606b(0x290)]()):await this[_0x35606b(0x1d2)][_0x35606b(0x212)](K),this[_0x35606b(0x24c)][_0x35606b(0x1e0)](((_0x58c308=_0x2d7587[_0x35606b(0x184)])==null?void 0x0:_0x58c308[_0x35606b(0x290)]())||''),this[_0x35606b(0x193)]['__setCustomHeaders']({'Authorization':_0x35606b(0x194)+((_0x23da9c=_0x2d7587[_0x35606b(0x184)])==null?void 0x0:_0x23da9c[_0x35606b(0x290)]())}),this[_0x35606b(0x1f5)][_0x35606b(0x192)]({'type':_0x3d27a9[_0x35606b(0x195)],'content':this[_0x35606b(0x24a)]['t'](_0x35606b(0x292))}),setTimeout(()=>{const _0x48e96c=_0x35606b;this[_0x48e96c(0x24d)][_0x48e96c(0x241)](q);},0x320);}catch(_0x3eb94f){this[_0x35606b(0x276)][_0x35606b(0x273)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3eb94f),this[_0x35606b(0x1f5)]['show']({'type':_0x3d27a9[_0x35606b(0x275)],'content':this[_0x35606b(0x24a)]['t'](_0x35606b(0x19a))});}finally{this[_0x35606b(0x1cb)]['next'](!0x1);}}),this['_initConfigSync'](),this[_0x412fcf(0x1f2)](),this[_0x412fcf(0x18f)]();}[_0x349f38(0x239)](){const _0x349705=_0x349f38;let _0x371990=this[_0x349705(0x1f1)][_0x349705(0x214)](B);_0x371990!=null&&_0x371990[_0x349705(0x262)]&&this[_0x349705(0x24d)][_0x349705(0x28d)]({'id':q,'title':{'title':this[_0x349705(0x24a)]['t'](_0x349705(0x1b8))},'children':{'label':_0x349705(0x287)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x51addc=_0x349705;this[_0x51addc(0x24d)][_0x51addc(0x241)](q);}});}[_0x349f38(0x1f8)](){return this['_mcpCoreConfig$']['value'];}[_0x349f38(0x18f)](){const _0x16b593=_0x349f38;this['disposeWithMe'](this[_0x16b593(0x219)][_0x16b593(0x17d)](_0x16b593(0x287),this[_0x16b593(0x183)]()));}[_0x349f38(0x183)](){return _0x277d2c(()=>{const _0x3156e4=_0x100b;var _0x25bfda,_0x3a3694,_0xeb7f3b;return _0x17a7ec(z,{'config':this[_0x3156e4(0x231)][_0x3156e4(0x207)],'mcpCoreConfig':this[_0x3156e4(0x180)][_0x3156e4(0x207)],'currentApiKey$':this[_0x3156e4(0x24c)],'onSave':this[_0x3156e4(0x251)],'loading':this['_loading$'][_0x3156e4(0x207)],'connectionStatus$':(_0x25bfda=this['_mcpConnectionController'])==null?void 0x0:_0x25bfda[_0x3156e4(0x17b)],'connectionError$':(_0x3a3694=this[_0x3156e4(0x193)])==null?void 0x0:_0x3a3694[_0x3156e4(0x1e7)],'currentSessionId$':(_0xeb7f3b=this[_0x3156e4(0x193)])==null?void 0x0:_0xeb7f3b[_0x3156e4(0x1c1)]});},this['_injector']);}[_0x349f38(0x19b)](){const _0x34c9a3=_0x349f38;this[_0x34c9a3(0x1a9)](this['_configService'][_0x34c9a3(0x230)](_0x46f5fe)[_0x34c9a3(0x1d5)](_0x591f2c=>{const _0x24b8f5=_0x34c9a3;this[_0x24b8f5(0x180)][_0x24b8f5(0x1e0)](_0x591f2c||{});}));let _0x3a495c=this['_configService'][_0x34c9a3(0x214)](_0x46f5fe);this['_mcpCoreConfig$']['next'](_0x3a495c||{}),this[_0x34c9a3(0x1a9)](this[_0x34c9a3(0x1f1)]['subscribeConfigValue$'](B)[_0x34c9a3(0x1d5)](_0x17f203=>{const _0x116bec=_0x34c9a3;this[_0x116bec(0x231)][_0x116bec(0x1e0)](_0x17f203||{});}));let _0x11d63a=this[_0x34c9a3(0x1f1)][_0x34c9a3(0x214)](B);this[_0x34c9a3(0x231)]['next'](_0x11d63a||{});}async[_0x349f38(0x1f2)](){const _0xae08d4=_0x349f38;let _0x18e459=this[_0xae08d4(0x1f1)][_0xae08d4(0x214)](B);if(!(_0x18e459!=null&&_0x18e459[_0xae08d4(0x262)]))return;let _0x135e7a=await this[_0xae08d4(0x1d2)][_0xae08d4(0x1be)](K);_0x135e7a&&(this[_0xae08d4(0x193)][_0xae08d4(0x283)]({'Authorization':_0xae08d4(0x194)+_0x135e7a}),this[_0xae08d4(0x24c)][_0xae08d4(0x1e0)](_0x135e7a));}async['_validateConfig'](_0x357d7b){const _0x1f2742=_0x349f38;if(!_0x357d7b[_0x1f2742(0x184)]||_0x357d7b[_0x1f2742(0x184)][_0x1f2742(0x290)]()[_0x1f2742(0x1db)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1f2742(0x24a)]['t'](_0x1f2742(0x1ff))};if(_0x357d7b[_0x1f2742(0x184)][_0x1f2742(0x290)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1f2742(0x24a)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x185c69=await this[_0x1f2742(0x246)]['get'](_0xa07734)[_0x1f2742(0x171)](_0x357d7b['apiKey']['trim']());return _0x185c69[_0x1f2742(0x1d3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x185c69[_0x1f2742(0x273)]||this[_0x1f2742(0x24a)]['t'](_0x1f2742(0x1d0))};}catch(_0xb0b18a){return console[_0x1f2742(0x1ad)](_0x1f2742(0x175),_0xb0b18a),{'isValid':!0x0};}}};J=G([W(0x0,_0x5ab4cd(_0x52106a)),W(0x1,_0x19a644),W(0x2,_0x2b4b65),W(0x3,_0x504129),W(0x4,_0x179317),W(0x5,_0x459a62),W(0x6,_0x5ab4cd(_0x517ccd)),W(0x7,_0x5ab4cd(_0x2a4117)),W(0x8,_0x5466f8),W(0x9,_0x5ab4cd(_0xa07734))],J);const Y={'id':_0x349f38(0x225),'type':_0x406843[_0x349f38(0x274)],'handler':async(_0x2afc2b,_0x1fdd78)=>(_0x2afc2b[_0x349f38(0x23e)](J)[_0x349f38(0x239)](),!0x0)};function X(_0x114b2d,_0x36fb23){const _0x78e4a3=_0x349f38;switch(_0x114b2d){case _0x22b515[_0x78e4a3(0x28a)]:return _0x78e4a3(0x277);case _0x22b515['CONNECTING']:return'mcpStatus.connecting';case _0x22b515[_0x78e4a3(0x1f7)]:return'mcpStatus.connected';case _0x22b515['FAILED']:switch(_0x36fb23){case _0x4f4eca[_0x78e4a3(0x223)]:return _0x78e4a3(0x18c);case _0x4f4eca[_0x78e4a3(0x26e)]:return _0x78e4a3(0x25a);case _0x4f4eca['NETWORK_ERROR']:return'mcpStatus.networkError';case _0x4f4eca['MAX_RETRIES_EXCEEDED']:return _0x78e4a3(0x281);default:return _0x78e4a3(0x1c5);}case _0x22b515[_0x78e4a3(0x23a)]:return _0x78e4a3(0x215);default:return _0x78e4a3(0x1a8);}}function _0x100b(_0x3b4dd3,_0x1b5b2c){_0x3b4dd3=_0x3b4dd3-0x16c;const _0x24d259=_0x24d2();let _0x100b57=_0x24d259[_0x3b4dd3];return _0x100b57;}function ce(_0x11edc8,_0x5f24cd,_0x2edeca,_0x223c52=!0x0){const _0x4abc33=_0x349f38;let _0xe46f7a=X(_0x11edc8,_0x5f24cd),_0x488602=_0x2edeca['t'](_0xe46f7a);return _0x223c52?_0x11edc8===_0x22b515[_0x4abc33(0x28a)]&&_0x5f24cd===_0x4f4eca['UNAUTHORIZED']?_0x488602+_0x4abc33(0x19e)+_0x2edeca['t'](_0x4abc33(0x1b5)):_0x11edc8===_0x22b515[_0x4abc33(0x1f7)]?''+_0x488602:_0x11edc8===_0x22b515[_0x4abc33(0x28a)]||_0x11edc8===_0x22b515['FAILED']?_0x488602+_0x4abc33(0x19e)+_0x2edeca['t']('mcpStatus.clickToConnect'):_0x488602:_0x488602;}function le(_0x5dbdea){const _0x7ff7ed=_0x349f38;switch(_0x5dbdea){case _0x22b515[_0x7ff7ed(0x1f7)]:return _0x7ff7ed(0x18d);case _0x22b515[_0x7ff7ed(0x1ea)]:case _0x22b515[_0x7ff7ed(0x23a)]:return'univer-text-yellow-500';case _0x22b515['FAILED']:case _0x22b515[_0x7ff7ed(0x28a)]:return _0x7ff7ed(0x1bc);default:return _0x7ff7ed(0x21d);}}function ue(_0x152244){const _0x2a7187=_0x349f38;let {status$:_0x5ac207,error$:_0x1be9f5,onConfigure:_0x4ac8e7,showClickable:_0x85eac2=!0x0}=_0x152244,_0x1372b3=_0x22b380(_0x5ac207,_0x22b515['DISCONNECTED']),_0x2bc02a=_0x22b380(_0x1be9f5,_0x4f4eca[_0x2a7187(0x1d4)]),_0x496ef7=_0x1b601f(_0x2a4117),_0x34e12e=_0x1372b3===_0x22b515[_0x2a7187(0x1f7)];_0x1372b3===_0x22b515[_0x2a7187(0x1ea)]||_0x22b515[_0x2a7187(0x23a)];let _0x1c1805=_0x496ef7['t'](X(_0x1372b3,_0x2bc02a)),_0x36f08d=ce(_0x1372b3,_0x2bc02a,_0x496ef7,_0x85eac2),_0x407a19=le(_0x1372b3),_0x3563f2=_0x17a7ec(_0x34e12e?_0x32786a:_0x46e5cb,{}),_0x2703e2=_0x2c1554(()=>{_0x85eac2&&_0x4ac8e7&&_0x4ac8e7();},[_0x85eac2,_0x4ac8e7]);function _0x512b4d(){const _0x23bb92=_0x2a7187;return _0x1fe9f9('div',{'className':_0x5161dc(_0x23bb92(0x185),_0x85eac2&&_0x4ac8e7&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':'button','onClick':_0x85eac2&&_0x4ac8e7?_0x2703e2:void 0x0,'children':[_0x17a7ec(_0x23bb92(0x26b),{'className':_0x5161dc(_0x23bb92(0x27b),_0x407a19),'children':_0x3563f2}),_0x17a7ec(_0x23bb92(0x26b),{'className':_0x23bb92(0x280),'children':_0x1c1805})]});}return _0x17a7ec(_0x42e742,{'title':_0x36f08d,'placement':'bottom','children':_0x512b4d()});}let Z=class extends _0x5f07cd{constructor(_0x346cdf,_0x211f99,_0x5b521a,_0x2a80e3){const _0x19bedc=_0x349f38;super(),this[_0x19bedc(0x246)]=_0x346cdf,this[_0x19bedc(0x264)]=_0x211f99,this[_0x19bedc(0x289)]=_0x5b521a,this[_0x19bedc(0x1f1)]=_0x2a80e3,this['_initAutoConnect'](),this[_0x19bedc(0x19d)]();}[_0x349f38(0x244)](){const _0x1e43fe=_0x349f38;let _0x5b1fce=this[_0x1e43fe(0x1f1)][_0x1e43fe(0x214)](B);_0x5b1fce!=null&&_0x5b1fce[_0x1e43fe(0x262)]&&(this[_0x1e43fe(0x264)][_0x1e43fe(0x1a7)]=!0x1);}[_0x349f38(0x19d)](){const _0x4a7122=_0x349f38;let _0x45fac1=this[_0x4a7122(0x1f1)][_0x4a7122(0x214)](B);(_0x45fac1==null?void 0x0:_0x45fac1[_0x4a7122(0x199)])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x4a7122(0x291)](_0x150bb3[_0x4a7122(0x20f)],()=>{const _0x3e56ce=_0x4a7122;var _0xbda99;return _0x277d2c(de({'status$':this[_0x3e56ce(0x264)][_0x3e56ce(0x17b)],'error$':this[_0x3e56ce(0x264)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0xbda99=_0x45fac1==null?void 0x0:_0x45fac1[_0x3e56ce(0x262)])==null?!0x1:_0xbda99}),this[_0x3e56ce(0x246)]);}));}[_0x349f38(0x1c4)](){const _0x11e9f1=_0x349f38;this['_injector'][_0x11e9f1(0x23e)](J)['showConfigPanel']();}};Z=G([W(0x0,_0x5ab4cd(_0x52106a)),W(0x1,_0x5ab4cd(_0xa07734)),W(0x2,_0x19a644),W(0x3,_0x2b4b65)],Z);function de(_0x4e40dc){let {status$:_0xf7c9bd,error$:_0x51af1e,onConfigure:_0x2feca5,showClickable:_0x33e29d}=_0x4e40dc;return function(){return _0x17a7ec(ue,{'status$':_0xf7c9bd,'error$':_0x51af1e,'onConfigure':_0x2feca5,'showClickable':_0x33e29d});};}function fe(_0x4251cc){const _0x1f6fcf=_0x349f38;return{'id':Y['id'],'type':_0x4562b8[_0x1f6fcf(0x1b2)],'icon':_0x1f6fcf(0x201),'title':_0x1f6fcf(0x1b8),'tooltip':'mcpConfig.title'};}const pe={[_0xa20e1c[_0x349f38(0x182)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x5f07cd{constructor(_0x57f3cc,_0x44063c){const _0x1e726e=_0x349f38;super(),this[_0x1e726e(0x1d9)]=_0x57f3cc,this['_menuManagerService']=_0x44063c,this['_initializeCommands'](),this[_0x1e726e(0x1b0)]();}['_initializeCommands'](){[Y]['forEach'](_0x20842e=>{const _0x29ba5a=_0x100b;this[_0x29ba5a(0x1a9)](this[_0x29ba5a(0x1d9)]['registerCommand'](_0x20842e));});}[_0x349f38(0x1b0)](){const _0x2d8274=_0x349f38;this['_menuManagerService'][_0x2d8274(0x1b3)](pe);}};Q=G([W(0x0,_0x58a53f),W(0x1,_0x481c09)],Q);const me={'mcpStatus':{'disconnected':_0x349f38(0x179),'connecting':_0x349f38(0x197),'connected':_0x349f38(0x284),'failed':_0x349f38(0x227),'retrying':_0x349f38(0x1a5),'unknown':_0x349f38(0x27d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x349f38(0x233),'networkError':_0x349f38(0x1c6),'maxRetriesExceeded':_0x349f38(0x186),'clickToConnect':_0x349f38(0x254),'clickToConfigure':_0x349f38(0x238)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x349f38(0x1a3),'apiKey':_0x349f38(0x255),'apiKeyPlaceholder':_0x349f38(0x205),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x349f38(0x1dc),'enableAuthHint':_0x349f38(0x1b4),'connectionInfo':_0x349f38(0x181),'mcpClientConfig':_0x349f38(0x181),'configInstructions':_0x349f38(0x1ab),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x349f38(0x26f),'configStep2':_0x349f38(0x1c3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x349f38(0x1a1),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x349f38(0x249),'maxRetries':'Max\x20Retries','save':_0x349f38(0x26a),'saving':_0x349f38(0x1ba),'note1':_0x349f38(0x28c),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x349f38(0x174),'configError':_0x349f38(0x1b1),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x349f38(0x17a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x349f38(0x16d)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x349f38(0x285),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x349f38(0x19c)},'connectionStatus':{'disconnected':_0x349f38(0x178),'connecting':_0x349f38(0x259),'connected':_0x349f38(0x1ae),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x349f38(0x1f6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x349f38(0x252)}}},he={'mcpStatus':{'disconnected':_0x349f38(0x188),'connecting':_0x349f38(0x203),'connected':'MCP\x20已连接','failed':_0x349f38(0x176),'retrying':_0x349f38(0x172),'unknown':'MCP\x20状态未知','unauthorized':_0x349f38(0x1af),'sessionOccupied':_0x349f38(0x20e),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x349f38(0x200),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x349f38(0x1e6),'apiKeyPlaceholder':_0x349f38(0x1ce),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x349f38(0x24e),'enableAuthHint':_0x349f38(0x240),'connectionInfo':_0x349f38(0x226),'mcpClientConfig':_0x349f38(0x226),'configInstructions':_0x349f38(0x23b),'configStepTitle':_0x349f38(0x1dd),'configStep1':_0x349f38(0x271),'configStep2':_0x349f38(0x24f),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x349f38(0x28f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x349f38(0x1d1),'maxRetries':_0x349f38(0x1ec),'save':_0x349f38(0x204),'saving':'保存中...','note1':_0x349f38(0x266),'note2':_0x349f38(0x248),'configSaved':_0x349f38(0x265),'configError':'配置保存失败','apiApplyInfo':{'title':_0x349f38(0x228),'description':_0x349f38(0x1f3),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x349f38(0x221)},'validation':{'apiKeyRequired':_0x349f38(0x18a),'apiKeyTooShort':_0x349f38(0x1da),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x349f38(0x294),'connecting':_0x349f38(0x28b),'connected':_0x349f38(0x1a2),'failed':_0x349f38(0x1fd),'retrying':_0x349f38(0x1b6)},'connectionError':{'unauthorized':_0x349f38(0x1aa),'sessionOccupied':_0x349f38(0x27f),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x349f38(0x253)}}};var ge='@univerjs-pro/mcp-ui',_e=_0x349f38(0x1ef);let $=class extends _0x281e21{constructor(_0x2771b8=V,_0x20c65a,_0x3d8a97,_0x579aab,_0x3dffdf,_0x139d20){const _0x161f3b=_0x349f38;super(),this['_config']=_0x2771b8,this['_injector']=_0x20c65a,this[_0x161f3b(0x1f1)]=_0x3d8a97,this['_uiPartsService']=_0x579aab,this[_0x161f3b(0x1d2)]=_0x3dffdf,this['_localeService']=_0x139d20;let {..._0x52bcfc}=_0x31de54({},V,this[_0x161f3b(0x1c9)]);this[_0x161f3b(0x1f1)][_0x161f3b(0x19f)](B,_0x52bcfc);}async['onStarting'](){const _0x16e2a5=_0x349f38;let _0x5b0143=[[Z],[J],[Q]];this[_0x16e2a5(0x246)][_0x16e2a5(0x1a4)](_0x14f887)||_0x5b0143[_0x16e2a5(0x286)]([_0x14f887,{'useClass':_0x29f53e}]),_0x5b0143['forEach'](_0x1f29ce=>this[_0x16e2a5(0x246)][_0x16e2a5(0x243)](_0x1f29ce)),this['_injector'][_0x16e2a5(0x23e)](Z),this[_0x16e2a5(0x246)][_0x16e2a5(0x23e)](J),this[_0x16e2a5(0x246)][_0x16e2a5(0x23e)](Q);}};U($,_0x349f38(0x177),_0x349f38(0x235)),U($,_0x349f38(0x222),ge),U($,_0x349f38(0x20a),_e),$=G([_0x1cb994(_0x4fc106),W(0x1,_0x5ab4cd(_0x52106a)),W(0x2,_0x2b4b65),W(0x3,_0x19a644),W(0x4,_0x504129),W(0x5,_0x5ab4cd(_0x2a4117))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
|
|
1
|
+
const _0x5b386b=_0x26a5;(function(_0x5167eb,_0x32576f){const _0x35e351=_0x26a5,_0x4bafaf=_0x5167eb();while(!![]){try{const _0x5cca18=-parseInt(_0x35e351(0x1e0))/0x1+parseInt(_0x35e351(0x2a5))/0x2*(parseInt(_0x35e351(0x1d4))/0x3)+-parseInt(_0x35e351(0x23c))/0x4*(-parseInt(_0x35e351(0x22e))/0x5)+parseInt(_0x35e351(0x21e))/0x6+-parseInt(_0x35e351(0x23e))/0x7+parseInt(_0x35e351(0x214))/0x8+-parseInt(_0x35e351(0x206))/0x9*(parseInt(_0x35e351(0x222))/0xa);if(_0x5cca18===_0x32576f)break;else _0x4bafaf['push'](_0x4bafaf['shift']());}catch(_0x412f8d){_0x4bafaf['push'](_0x4bafaf['shift']());}}}(_0x1683,0x22f8a));import _0x161449 from'./locale/en-US.js';import _0x397a8e from'./locale/zh-CN.js';import{CommandType as _0x593979,DependentOn as _0x492c3b,Disposable as _0x36bc9e,ICommandService as _0x4bda18,IConfigService as _0x20fb6a,ILocalStorageService as _0x154cb1,ILogService as _0x1ebe22,Inject as _0x5289d4,Injector as _0xbbbf4b,LocaleService as _0x51f592,Plugin as _0x3e8439,merge as _0x354f9c}from'@univerjs/core';function _0x26a5(_0x22ada1,_0x432410){_0x22ada1=_0x22ada1-0x1c8;const _0x16831d=_0x1683();let _0x26a59c=_0x16831d[_0x22ada1];return _0x26a59c;}import{MCPConnectionController as _0x4b7493,MCPConnectionError as _0x8f97d4,MCPConnectionStatus as _0xd1ea3a,MCP_PLUGIN_CONFIG_KEY as _0x2eedd5,UniverMCPPlugin as _0x5d8c82}from'@univerjs-pro/mcp';import{Button as _0x24b75f,Input as _0x4619da,MessageType as _0x169226,Tooltip as _0x20c901,clsx as _0xa49791}from'@univerjs/design';import{BuiltInUIPart as _0x209d4c,ComponentManager as _0x368ca5,IDialogService as _0x15974b,IMenuManagerService as _0x27ead3,IMessageService as _0x181e42,IUIPartsService as _0x2e6601,MenuItemType as _0x53c3c0,RibbonStartGroup as _0x15a128,connectInjector as _0x30c1f6,useDependency as _0x15c776,useObservable as _0x6ce075}from'@univerjs/ui';import{BehaviorSubject as _0x1d736b}from'rxjs';import{CheckMarkIcon as _0x43bc65,CloseIcon as _0x51a9d2,HelpIcon as _0x168b18,OffLineIcon as _0x1ecc57,OnLineIcon as _0x3ef954}from'@univerjs/icons';import{useCallback as _0x2ae2c6,useState as _0x2054c5}from'react';import{jsx as _0x18af1c,jsxs as _0x362d0c}from'react/jsx-runtime';import{ISocketService as _0x429c47,WebSocketService as _0x27c201}from'@univerjs/network';function R(_0x529ae8){const _0xd12f9c=_0x26a5;var _0x45df0c,_0x352f80;let {mcpCoreConfig:_0x533d24,onSave:_0x13e0d4,loading:_0x475938=!0x1,config:_0x4c4e5b,connectionStatus$:_0x3c5014,connectionError$:_0x598d64,currentApiKey$:_0x3e944e,currentSessionId$:_0xfba125}=_0x529ae8,_0x25f614=_0x15c776(_0x51f592),_0x56f284=_0x6ce075(_0x3c5014,_0xd1ea3a[_0xd12f9c(0x1c8)]),_0x4b89d0=_0x6ce075(_0x598d64,_0x8f97d4[_0xd12f9c(0x283)]),_0x25d9de=_0x6ce075(_0xfba125,''),[_0xa4acf2,_0x1a7c5a]=_0x2054c5(_0x6ce075(_0x3e944e,'')||''),_0x1216c7=_0x4c4e5b[_0xd12f9c(0x282)]&&_0x533d24['mcpServerUrl']&&(_0x533d24['mcpServerUrl'][_0xd12f9c(0x24f)](_0xd12f9c(0x20b))||_0x533d24['mcpServerUrl'][_0xd12f9c(0x24f)](_0xd12f9c(0x20f))),_0x588a5c=(_0x45df0c=_0x533d24[_0xd12f9c(0x28d)])==null?void 0x0:_0x45df0c['includes'](_0xd12f9c(0x20b)),_0x10f46c=(_0x352f80=_0x533d24[_0xd12f9c(0x28d)])==null?void 0x0:_0x352f80[_0xd12f9c(0x24f)](_0xd12f9c(0x20f)),_0x361b03=_0x588a5c?_0xd12f9c(0x241):'https://console.univer.ai',_0x5d323b=_0x4c4e5b[_0xd12f9c(0x282)]&&(_0x588a5c||_0x10f46c),[_0x3fa0e2,_0x44502b]=_0x2054c5(!_0xa4acf2[_0xd12f9c(0x237)]()),_0x34c0ff=(_0x1acb3a,_0xab883)=>{const _0x571d37=_0xd12f9c;if(_0xab883===_0x8f97d4['UNAUTHORIZED'])return _0x571d37(0x1e4);switch(_0x1acb3a){case _0xd1ea3a['CONNECTED']:return _0x571d37(0x265);case _0xd1ea3a[_0x571d37(0x230)]:case _0xd1ea3a['RETRYING']:return _0x571d37(0x1ea);case _0xd1ea3a[_0x571d37(0x1fa)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x571d37(0x1ce);}},_0x2a704c=(_0x3c5fb6,_0x155e2a)=>{const _0x169d31=_0xd12f9c;if(_0x155e2a===_0x8f97d4['UNAUTHORIZED'])return _0x169d31(0x239);switch(_0x3c5fb6){case _0xd1ea3a[_0x169d31(0x296)]:return _0x169d31(0x242);case _0xd1ea3a['CONNECTING']:case _0xd1ea3a[_0x169d31(0x1e2)]:return _0x169d31(0x1de);case _0xd1ea3a[_0x169d31(0x1fa)]:return _0x169d31(0x239);default:return _0x169d31(0x26a);}},_0x31d294=_0xfbef80=>{const _0x5c8afd=_0xd12f9c;switch(_0xfbef80){case _0xd1ea3a[_0x5c8afd(0x296)]:return _0x25f614['t'](_0x5c8afd(0x1dc));case _0xd1ea3a[_0x5c8afd(0x230)]:return _0x25f614['t'](_0x5c8afd(0x1da));case _0xd1ea3a[_0x5c8afd(0x1fa)]:return _0x25f614['t'](_0x5c8afd(0x1ca));case _0xd1ea3a['RETRYING']:return _0x25f614['t'](_0x5c8afd(0x1f7));default:return _0x25f614['t'](_0x5c8afd(0x213));}},_0xc6ff83=_0x42748e=>{const _0x5c205b=_0xd12f9c;switch(_0x42748e){case _0x8f97d4[_0x5c205b(0x236)]:return _0x25f614['t'](_0x5c205b(0x26c));case _0x8f97d4[_0x5c205b(0x1d3)]:return _0x25f614['t'](_0x5c205b(0x218));case _0x8f97d4[_0x5c205b(0x1f0)]:return _0x25f614['t']('mcpConfig.connectionError.networkError');case _0x8f97d4[_0x5c205b(0x285)]:return _0x25f614['t'](_0x5c205b(0x274));default:return'';}},_0x153faa=_0x2ae2c6(()=>{const _0x432424=_0xd12f9c;_0x13e0d4({..._0x533d24,'apiKey':_0xa4acf2[_0x432424(0x237)](),'enableAuth':!0x0});},[_0x533d24,_0xa4acf2,!0x0,_0x13e0d4]),_0x49ecac=_0xa4acf2[_0xd12f9c(0x237)]()['length']>0x0;return _0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x284),'children':_0x362d0c('div',{'className':_0xd12f9c(0x1e5),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x25e),'children':_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x244),'children':'⚙'})}),_0x18af1c(_0xd12f9c(0x1e6),{'children':_0x18af1c('p',{'className':_0xd12f9c(0x29a),'children':_0x25f614['t']('mcpConfig.description')})})]})}),_0x362d0c('div',{'className':_0xd12f9c(0x24c),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xa49791(_0xd12f9c(0x288),_0x34c0ff(_0x56f284,_0x4b89d0)),'children':_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xa49791(_0xd12f9c(0x215),_0x2a704c(_0x56f284,_0x4b89d0))}),_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x261),'children':_0x31d294(_0x56f284)})]})}),_0x4b89d0!==_0x8f97d4[_0xd12f9c(0x283)]&&(_0x56f284===_0xd1ea3a[_0xd12f9c(0x1fa)]||_0x4b89d0===_0x8f97d4[_0xd12f9c(0x236)])&&_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x252),'children':_0x362d0c('div',{'className':_0xd12f9c(0x298),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x293),'children':'⚠️'}),_0x18af1c('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0xc6ff83(_0x4b89d0)})]})})]}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x24b),'children':_0x362d0c('div',{'className':_0xd12f9c(0x289),'children':[_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-2','children':[_0x362d0c(_0xd12f9c(0x272),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🔑'}),'\x20',_0x25f614['t']('mcpConfig.apiKey'),_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x201),'children':'*'}),_0x1216c7&&_0x18af1c('a',{'className':_0xd12f9c(0x267),'title':_0x25f614['t'](_0xd12f9c(0x21a)),'role':_0xd12f9c(0x25a),'onClick':()=>_0x44502b(!0x0),'children':_0x18af1c(_0x168b18,{})})]}),_0x18af1c(_0x4619da,{'type':_0xd12f9c(0x27f),'placeholder':_0x25f614['t']('mcpConfig.apiKeyPlaceholder'),'value':_0xa4acf2,'disabled':_0x475938,'autoComplete':_0xd12f9c(0x26f),'onChange':_0x1a7c5a}),_0x18af1c('p',{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x1f2))})]}),_0x1216c7&&_0x3fa0e2&&_0x362d0c('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':[_0x18af1c('a',{'className':_0xd12f9c(0x229),'role':_0xd12f9c(0x25a),'onClick':()=>_0x44502b(!0x1),'children':_0x18af1c(_0x51a9d2,{'className':_0xd12f9c(0x1d7)})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x286),'children':[_0x18af1c('div',{'className':_0xd12f9c(0x27a),'children':_0x18af1c('span',{'className':_0xd12f9c(0x22a),'children':'🚀'})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-flex-1','children':[_0x18af1c('h4',{'className':_0xd12f9c(0x292),'children':_0x25f614['t']('mcpConfig.apiApplyInfo.title')}),_0x18af1c('p',{'className':_0xd12f9c(0x234),'children':_0x25f614['t'](_0xd12f9c(0x290))}),_0x18af1c(_0xd12f9c(0x1e6),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5d323b&&_0x362d0c('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':_0x361b03,'target':_0xd12f9c(0x204),'rel':_0xd12f9c(0x2a8),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🤖'}),_0x25f614['t'](_0xd12f9c(0x22b)),_0x18af1c('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x20d),'children':['✨','\x20',_0x25f614['t'](_0xd12f9c(0x2a0))]})]})]})]}),_0x4c4e5b[_0xd12f9c(0x282)]&&_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x362d0c('h4',{'className':_0xd12f9c(0x24d),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🔗'}),'\x20',_0x25f614['t'](_0xd12f9c(0x2a2))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x281),'children':[_0x362d0c('div',{'className':_0xd12f9c(0x226),'children':[_0x18af1c('p',{'className':_0xd12f9c(0x2a3),'children':_0x25f614['t']('mcpConfig.configInstructions')}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-2','children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x25f614['t'](_0xd12f9c(0x25f))}),_0x362d0c('div',{'className':_0xd12f9c(0x25c),'children':[_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c('span',{'className':_0xd12f9c(0x202),'children':'1'}),_0x25f614['t'](_0xd12f9c(0x200))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c('span',{'className':_0xd12f9c(0x202),'children':'2'}),_0x25f614['t'](_0xd12f9c(0x26e))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x202),'children':'3'}),_0x25f614['t'](_0xd12f9c(0x21f))]})]})]})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x249),'children':[_0x18af1c('div',{'className':_0xd12f9c(0x20c),'children':_0xd12f9c(0x278)}),_0x18af1c('div',{'className':_0xd12f9c(0x1f3),'children':_0x18af1c('pre',{'className':_0xd12f9c(0x28b),'children':JSON[_0xd12f9c(0x257)]({'mcpServers':{'univer':{'url':_0xd12f9c(0x26d)+(_0x25d9de||_0xd12f9c(0x28e)),'type':_0xd12f9c(0x243),'headers':{'Authorization':_0xd12f9c(0x24e)+(_0xa4acf2||_0xd12f9c(0x209))}}}},null,0x2)})})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x226),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x20c),'children':_0x25f614['t'](_0xd12f9c(0x2a1))}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x249),'children':[_0x362d0c('div',{'className':_0xd12f9c(0x273),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x246)}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x23d),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x1fc),'children':_0xd12f9c(0x231)}),_0x18af1c('div',{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x23f))})]})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x273),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x246)}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x18af1c('div',{'className':_0xd12f9c(0x1fc),'children':_0xd12f9c(0x232)}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x1f5))})]})]})]})]})]})]}),_0x18af1c(_0x24b75f,{'onClick':_0x153faa,'disabled':!_0x49ecac||_0x475938,'className':_0xd12f9c(0x208),'children':_0x475938?_0x362d0c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'⟲'}),_0x25f614['t'](_0xd12f9c(0x27e))]}):_0x362d0c(_0xd12f9c(0x1ec),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x18af1c(_0x43bc65,{}),_0x25f614['t'](_0xd12f9c(0x275))]})}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x2a7),'children':_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x21b),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x1ed),'children':'💡'}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x18af1c('div',{'className':_0xd12f9c(0x295),'children':_0xd12f9c(0x26b)}),_0x362d0c(_0xd12f9c(0x1e6),{'children':['•',_0x25f614['t'](_0xd12f9c(0x1e7))]}),_0x362d0c(_0xd12f9c(0x1e6),{'children':['•',_0x25f614['t'](_0xd12f9c(0x227))]})]})]})})]})})]});}const z='mcp-ui.config',B={'showDeveloperTools':!0x1,'showStatus':!0x0};function V(_0x305e66){'@babel/helpers - typeof';const _0x39e552=_0x26a5;return V=typeof Symbol==_0x39e552(0x250)&&typeof Symbol[_0x39e552(0x224)]==_0x39e552(0x260)?function(_0x24ddc1){return typeof _0x24ddc1;}:function(_0x1010a7){const _0x19d758=_0x39e552;return _0x1010a7&&typeof Symbol==_0x19d758(0x250)&&_0x1010a7[_0x19d758(0x1e1)]===Symbol&&_0x1010a7!==Symbol[_0x19d758(0x22d)]?_0x19d758(0x260):typeof _0x1010a7;},V(_0x305e66);}function le(_0x349133,_0x35aa36){const _0x1b7465=_0x26a5;if(V(_0x349133)!=_0x1b7465(0x255)||!_0x349133)return _0x349133;var _0x543647=_0x349133[Symbol[_0x1b7465(0x22c)]];if(_0x543647!==void 0x0){var _0x5a545c=_0x543647[_0x1b7465(0x20a)](_0x349133,_0x35aa36||'default');if(V(_0x5a545c)!=_0x1b7465(0x255))return _0x5a545c;throw TypeError(_0x1b7465(0x1d2));}return(_0x35aa36===_0x1b7465(0x216)?String:Number)(_0x349133);}function ue(_0x2352d5){const _0x436c5d=_0x26a5;var _0x1e26c3=le(_0x2352d5,_0x436c5d(0x216));return V(_0x1e26c3)==_0x436c5d(0x260)?_0x1e26c3:_0x1e26c3+'';}function H(_0x7c03f9,_0x5a1a3d,_0x36d9a8){const _0x1d4842=_0x26a5;return(_0x5a1a3d=ue(_0x5a1a3d))in _0x7c03f9?Object[_0x1d4842(0x233)](_0x7c03f9,_0x5a1a3d,{'value':_0x36d9a8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x7c03f9[_0x5a1a3d]=_0x36d9a8,_0x7c03f9;}function U(_0x287273,_0x9332ab){return function(_0x5aadb9,_0x3df309){_0x9332ab(_0x5aadb9,_0x3df309,_0x287273);};}function W(_0x5e6206,_0x4100e6,_0x581ae5,_0x27eb69){const _0x34b335=_0x26a5;var _0x2a9fca=arguments[_0x34b335(0x28a)],_0x180ccc=_0x2a9fca<0x3?_0x4100e6:_0x27eb69===null?_0x27eb69=Object[_0x34b335(0x248)](_0x4100e6,_0x581ae5):_0x27eb69,_0x8f56ae;if(typeof Reflect==_0x34b335(0x255)&&typeof Reflect[_0x34b335(0x1f8)]==_0x34b335(0x250))_0x180ccc=Reflect[_0x34b335(0x1f8)](_0x5e6206,_0x4100e6,_0x581ae5,_0x27eb69);else{for(var _0x41f8a4=_0x5e6206[_0x34b335(0x28a)]-0x1;_0x41f8a4>=0x0;_0x41f8a4--)(_0x8f56ae=_0x5e6206[_0x41f8a4])&&(_0x180ccc=(_0x2a9fca<0x3?_0x8f56ae(_0x180ccc):_0x2a9fca>0x3?_0x8f56ae(_0x4100e6,_0x581ae5,_0x180ccc):_0x8f56ae(_0x4100e6,_0x581ae5))||_0x180ccc);}return _0x2a9fca>0x3&&_0x180ccc&&Object[_0x34b335(0x233)](_0x4100e6,_0x581ae5,_0x180ccc),_0x180ccc;}const G=_0x5b386b(0x28f),K='mcp-config-dialog';let q=class extends _0x36bc9e{constructor(_0xc8dc65,_0x1de6e8,_0xe31107,_0x4e1398,_0x2dd3c4,_0x367b86,_0x536adb,_0x3f7775,_0x1a488e,_0x28182c){const _0x47b937=_0x5b386b;super(),this['_injector']=_0xc8dc65,this[_0x47b937(0x1fe)]=_0x1de6e8,this['_configService']=_0xe31107,this['_localStorageService']=_0x4e1398,this[_0x47b937(0x27d)]=_0x2dd3c4,this[_0x47b937(0x23a)]=_0x367b86,this[_0x47b937(0x1f6)]=_0x536adb,this[_0x47b937(0x1e3)]=_0x3f7775,this['_logService']=_0x1a488e,this[_0x47b937(0x247)]=_0x28182c,H(this,_0x47b937(0x1ff),new _0x1d736b(!0x1)),H(this,_0x47b937(0x219),new _0x1d736b({})),H(this,_0x47b937(0x280),new _0x1d736b({})),H(this,_0x47b937(0x268),new _0x1d736b('')),H(this,_0x47b937(0x1f4),async _0x2e95ec=>{const _0x5d88dd=_0x47b937;this[_0x5d88dd(0x1ff)][_0x5d88dd(0x1d0)](!0x0);try{var _0x1de00a,_0x8cf87f;let _0xcbba43=await this[_0x5d88dd(0x299)](_0x2e95ec);if(!_0xcbba43[_0x5d88dd(0x223)]){this[_0x5d88dd(0x23a)][_0x5d88dd(0x1f1)]({'type':_0x169226[_0x5d88dd(0x1d1)],'content':_0xcbba43[_0x5d88dd(0x212)]||this[_0x5d88dd(0x1e3)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2e95ec['apiKey']?await this[_0x5d88dd(0x277)]['setItem'](G,_0x2e95ec[_0x5d88dd(0x262)][_0x5d88dd(0x237)]()):await this['_localStorageService']['removeItem'](G),this[_0x5d88dd(0x268)][_0x5d88dd(0x1d0)](((_0x1de00a=_0x2e95ec[_0x5d88dd(0x262)])==null?void 0x0:_0x1de00a[_0x5d88dd(0x237)]())||''),this[_0x5d88dd(0x247)][_0x5d88dd(0x238)]({'Authorization':_0x5d88dd(0x24e)+((_0x8cf87f=_0x2e95ec[_0x5d88dd(0x262)])==null?void 0x0:_0x8cf87f[_0x5d88dd(0x237)]())}),this[_0x5d88dd(0x23a)]['show']({'type':_0x169226[_0x5d88dd(0x294)],'content':this[_0x5d88dd(0x1e3)]['t'](_0x5d88dd(0x27b))}),setTimeout(()=>{const _0x3c62c2=_0x5d88dd;this['_dialogService'][_0x3c62c2(0x23b)](K);},0x320);}catch(_0x4e150e){this[_0x5d88dd(0x203)][_0x5d88dd(0x21d)](_0x5d88dd(0x24a),_0x4e150e),this[_0x5d88dd(0x23a)]['show']({'type':_0x169226[_0x5d88dd(0x1d1)],'content':this[_0x5d88dd(0x1e3)]['t'](_0x5d88dd(0x211))});}finally{this[_0x5d88dd(0x1ff)][_0x5d88dd(0x1d0)](!0x1);}}),this[_0x47b937(0x217)](),this[_0x47b937(0x29d)](),this[_0x47b937(0x253)]();}['showConfigPanel'](){const _0x20755e=_0x5b386b;let _0x388c03=this['_configService']['getConfig'](z);_0x388c03!=null&&_0x388c03['showDeveloperTools']&&this['_dialogService']['open']({'id':K,'title':{'title':this[_0x20755e(0x1e3)]['t'](_0x20755e(0x2a4))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x9d52d4=_0x20755e;this[_0x9d52d4(0x27d)][_0x9d52d4(0x23b)](K);}});}['getCurrentConfig'](){const _0x3b041f=_0x5b386b;return this[_0x3b041f(0x219)][_0x3b041f(0x29c)];}[_0x5b386b(0x253)](){const _0x3ebba7=_0x5b386b;this['disposeWithMe'](this[_0x3ebba7(0x1f6)][_0x3ebba7(0x263)]('MCPConfigPanel',this[_0x3ebba7(0x29b)]()));}['_createConfigPanelComponent'](){const _0x5bbb92=_0x5b386b;return _0x30c1f6(()=>{const _0x52bec7=_0x26a5;var _0x4a2d19,_0x19fe61,_0x4e6706;return _0x18af1c(R,{'config':this[_0x52bec7(0x280)][_0x52bec7(0x29c)],'mcpCoreConfig':this[_0x52bec7(0x219)][_0x52bec7(0x29c)],'currentApiKey$':this[_0x52bec7(0x268)],'onSave':this[_0x52bec7(0x1f4)],'loading':this[_0x52bec7(0x1ff)][_0x52bec7(0x29c)],'connectionStatus$':(_0x4a2d19=this[_0x52bec7(0x247)])==null?void 0x0:_0x4a2d19['connectionStatus$'],'connectionError$':(_0x19fe61=this[_0x52bec7(0x247)])==null?void 0x0:_0x19fe61['connectionError$'],'currentSessionId$':(_0x4e6706=this['_mcpConnectionController'])==null?void 0x0:_0x4e6706[_0x52bec7(0x271)]});},this[_0x5bbb92(0x240)]);}[_0x5b386b(0x217)](){const _0x31e407=_0x5b386b;this[_0x31e407(0x1d8)](this['_configService']['subscribeConfigValue$'](_0x2eedd5)[_0x31e407(0x225)](_0x3532ff=>{this['_mcpCoreConfig$']['next'](_0x3532ff||{});}));let _0x31889f=this['_configService'][_0x31e407(0x20e)](_0x2eedd5);this[_0x31e407(0x219)][_0x31e407(0x1d0)](_0x31889f||{}),this[_0x31e407(0x1d8)](this[_0x31e407(0x1ee)]['subscribeConfigValue$'](z)[_0x31e407(0x225)](_0x808664=>{const _0xa8fcd9=_0x31e407;this['_config$'][_0xa8fcd9(0x1d0)](_0x808664||{});}));let _0x4322c3=this['_configService'][_0x31e407(0x20e)](z);this[_0x31e407(0x280)][_0x31e407(0x1d0)](_0x4322c3||{});}async['_loadStoredApiKey'](){const _0x111bfc=_0x5b386b;let _0x4ff80b=this[_0x111bfc(0x1ee)][_0x111bfc(0x20e)](z);if(!(_0x4ff80b!=null&&_0x4ff80b[_0x111bfc(0x282)]))return;let _0x237c87=await this[_0x111bfc(0x277)][_0x111bfc(0x266)](G);_0x237c87&&(this[_0x111bfc(0x247)][_0x111bfc(0x238)]({'Authorization':_0x111bfc(0x24e)+_0x237c87}),this[_0x111bfc(0x268)][_0x111bfc(0x1d0)](_0x237c87));}async[_0x5b386b(0x299)](_0x175811){const _0xf4b28a=_0x5b386b;if(!_0x175811[_0xf4b28a(0x262)]||_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]()[_0xf4b28a(0x28a)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0xf4b28a(0x1e3)]['t'](_0xf4b28a(0x1cb))};if(_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]()[_0xf4b28a(0x28a)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xf4b28a(0x1e3)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x50280f=await this['_injector'][_0xf4b28a(0x1ef)](_0x4b7493)[_0xf4b28a(0x287)](_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]());return _0x50280f[_0xf4b28a(0x223)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x50280f[_0xf4b28a(0x21d)]||this[_0xf4b28a(0x1e3)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x427054){return console[_0xf4b28a(0x29e)](_0xf4b28a(0x258),_0x427054),{'isValid':!0x0};}}};q=W([U(0x0,_0x5289d4(_0xbbbf4b)),U(0x1,_0x2e6601),U(0x2,_0x20fb6a),U(0x3,_0x154cb1),U(0x4,_0x15974b),U(0x5,_0x181e42),U(0x6,_0x5289d4(_0x368ca5)),U(0x7,_0x5289d4(_0x51f592)),U(0x8,_0x1ebe22),U(0x9,_0x5289d4(_0x4b7493))],q);const J={'id':'mcp-ui.command.openConfigPanel','type':_0x593979['COMMAND'],'handler':async(_0x2b5c5a,_0x45a285)=>(_0x2b5c5a[_0x5b386b(0x1ef)](q)[_0x5b386b(0x1eb)](),!0x0)};function Y(_0x455cae,_0x3c48bd){const _0x50786b=_0x5b386b;switch(_0x455cae){case _0xd1ea3a['DISCONNECTED']:return _0x50786b(0x1d9);case _0xd1ea3a[_0x50786b(0x230)]:return'mcpStatus.connecting';case _0xd1ea3a['CONNECTED']:return _0x50786b(0x205);case _0xd1ea3a[_0x50786b(0x1fa)]:switch(_0x3c48bd){case _0x8f97d4[_0x50786b(0x236)]:return'mcpStatus.unauthorized';case _0x8f97d4[_0x50786b(0x1d3)]:return _0x50786b(0x259);case _0x8f97d4[_0x50786b(0x1f0)]:return _0x50786b(0x235);case _0x8f97d4[_0x50786b(0x285)]:return _0x50786b(0x27c);default:return _0x50786b(0x28c);}case _0xd1ea3a[_0x50786b(0x1e2)]:return _0x50786b(0x291);default:return'mcpStatus.unknown';}}function de(_0x2590cb,_0x4c5cdb,_0x19a3c2,_0xa20008=!0x0){const _0x269dc6=_0x5b386b;let _0x430f19=Y(_0x2590cb,_0x4c5cdb),_0x41f045=_0x19a3c2['t'](_0x430f19);return _0xa20008?_0x2590cb===_0xd1ea3a[_0x269dc6(0x1c8)]&&_0x4c5cdb===_0x8f97d4['UNAUTHORIZED']?_0x41f045+'\x20-\x20'+_0x19a3c2['t'](_0x269dc6(0x2a6)):_0x2590cb===_0xd1ea3a[_0x269dc6(0x296)]?''+_0x41f045:_0x2590cb===_0xd1ea3a[_0x269dc6(0x1c8)]||_0x2590cb===_0xd1ea3a['FAILED']?_0x41f045+'\x20-\x20'+_0x19a3c2['t'](_0x269dc6(0x264)):_0x41f045:_0x41f045;}function _0x1683(){const _0x11e54a=['registerComponent','OTHERS','univer-size-4','disposeWithMe','mcpStatus.disconnected','mcpConfig.connectionStatus.connecting','has','mcpConfig.connectionStatus.connected','registerCommand','univer-bg-blue-500','_handleConfigure','126730MSIWXo','constructor','RETRYING','_localeService','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-items-center\x20univer-gap-3','div','mcpConfig.note1','_config','_initializeCommands','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','showConfigPanel','span','univer-shrink-0\x20univer-text-blue-500','_configService','get','NETWORK_ERROR','show','mcpConfig.apiKeyHint','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_handleConfigSave','mcpConfig.authorizationDescription','_componentManager','mcpConfig.connectionStatus.retrying','decorate','1.0.0-alpha.1','FAILED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','@univerjs-pro/mcp-ui','_uiPartsService','_loading$','mcpConfig.configStep1','univer-text-red-500','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_logService','_blank','mcpStatus.connected','9gPnHhq','_initializeMenus','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','<API_KEY>','call','univer.plus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','getConfig','univer.ai','_menuManagerService','mcpConfig.configError','errorMessage','mcpConfig.connectionStatus.disconnected','227520fwJgTk','univer-size-2\x20univer-rounded-full','string','_initConfigSync','mcpConfig.connectionError.sessionOccupied','_mcpCoreConfig$','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-gap-3','univer-text-xs\x20univer-text-gray-500','error','741528nIPQOs','mcpConfig.configStep3','setConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','1453560HgAlEF','isValid','iterator','subscribe','univer-space-y-3','mcpConfig.note2','showStatus','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-text-blue-600','mcpConfig.apiApplyInfo.univerAiLabel','toPrimitive','prototype','5DqYuBa','forEach','CONNECTING','univer_session_id:','Authorization:','defineProperty','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.networkError','UNAUTHORIZED','trim','__setCustomHeaders','univer-bg-red-500','_messageService','close','306068DZXiDn','univer-min-w-0\x20univer-flex-1','616588HPdMWb','mcpConfig.sessionIdDescription','_injector','https://console.univer.plus','univer-bg-green-500','http','univer-text-white','connectionError$','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_mcpConnectionController','getOwnPropertyDescriptor','univer-space-y-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Bearer\x20','includes','function','bottom','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_registerComponent','_initAutoConnect','object','pluginName','stringify','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpStatus.sessionOccupied','button','univer-flex\x20univer-items-center','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','enableAutoConnect','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.configStepTitle','symbol','univer-text-sm\x20univer-font-medium','apiKey','register','mcpStatus.clickToConnect','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','getItem','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','_apiKey$','univer-text-yellow-500','univer-bg-gray-500','Configuration\x20Notes:','mcpConfig.connectionError.unauthorized','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStep2','off','onStarting','sessionId$','label','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.save','MenuIcon','_localStorageService','MCP\x20Configuration','univer-flex\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.configSaved','mcpStatus.maxRetriesExceeded','_dialogService','mcpConfig.saving','text','_config$','univer-space-y-4','showDeveloperTools','NONE','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','validateApiKey','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-space-y-5','length','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.failed','mcpServerUrl','<SESSION_ID>','mcp.apiKey','mcpConfig.apiApplyInfo.description','mcpStatus.retrying','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-shrink-0\x20univer-text-red-500','Success','univer-font-medium','CONNECTED','_commandService','univer-flex\x20univer-items-start\x20univer-gap-2','_validateConfig','univer-text-sm\x20univer-text-gray-500','_createConfigPanelComponent','value','_loadStoredApiKey','warn','_initStatusComponent','mcpConfig.apiApplyInfo.getStarted','mcpConfig.configParameters','mcpConfig.connectionInfo','univer-text-xs\x20univer-text-gray-600','mcpConfig.title','2pLGPbd','mcpStatus.clickToConfigure','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','noopener\x20noreferrer','DISCONNECTED','_connectionController','mcpConfig.connectionStatus.failed','mcpConfig.validation.apiKeyRequired','univer-text-green-500','push','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mergeMenu','next','Error','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SESSION_ID_OCCUPIED','824601gAAcaQ'];_0x1683=function(){return _0x11e54a;};return _0x1683();}function fe(_0x1d3583){const _0x3737f8=_0x5b386b;switch(_0x1d3583){case _0xd1ea3a['CONNECTED']:return _0x3737f8(0x1cc);case _0xd1ea3a[_0x3737f8(0x230)]:case _0xd1ea3a[_0x3737f8(0x1e2)]:return _0x3737f8(0x269);case _0xd1ea3a['FAILED']:case _0xd1ea3a['DISCONNECTED']:return _0x3737f8(0x201);default:return'univer-text-gray-500';}}function X(_0x286f1f){const _0x1719b0=_0x5b386b;let {status$:_0x5b4279,error$:_0x584f6f,onConfigure:_0x441f1c,showClickable:_0x61431e=!0x0}=_0x286f1f,_0x45fbf7=_0x6ce075(_0x5b4279,_0xd1ea3a['DISCONNECTED']),_0x10bb4e=_0x6ce075(_0x584f6f,_0x8f97d4[_0x1719b0(0x283)]),_0x2c5e95=_0x15c776(_0x51f592),_0x524ac7=_0x45fbf7===_0xd1ea3a[_0x1719b0(0x296)];_0x45fbf7===_0xd1ea3a['CONNECTING']||_0xd1ea3a[_0x1719b0(0x1e2)];let _0x3f0101=_0x2c5e95['t'](Y(_0x45fbf7,_0x10bb4e)),_0x146fe0=de(_0x45fbf7,_0x10bb4e,_0x2c5e95,_0x61431e),_0x4a7955=fe(_0x45fbf7),_0x446289=_0x18af1c(_0x524ac7?_0x3ef954:_0x1ecc57,{}),_0x5614ed=_0x2ae2c6(()=>{_0x61431e&&_0x441f1c&&_0x441f1c();},[_0x61431e,_0x441f1c]);function _0x301867(){const _0x5f457a=_0x1719b0;return _0x362d0c(_0x5f457a(0x1e6),{'className':_0xa49791(_0x5f457a(0x25b),_0x61431e&&_0x441f1c&&'univer-cursor-pointer\x20hover:univer-opacity-80'),'role':_0x5f457a(0x25a),'onClick':_0x61431e&&_0x441f1c?_0x5614ed:void 0x0,'children':[_0x18af1c(_0x5f457a(0x1e6),{'className':_0xa49791(_0x5f457a(0x221),_0x4a7955),'children':_0x446289}),_0x18af1c(_0x5f457a(0x1e6),{'className':_0x5f457a(0x1fb),'children':_0x3f0101})]});}return _0x18af1c(_0x20c901,{'title':_0x146fe0,'placement':_0x1719b0(0x251),'children':_0x301867()});}let Z=class extends _0x36bc9e{constructor(_0x24b23a,_0x1b9398,_0x1f2754,_0x26bc44){const _0x16e31b=_0x5b386b;super(),this[_0x16e31b(0x240)]=_0x24b23a,this[_0x16e31b(0x1c9)]=_0x1b9398,this['_uiPartsService']=_0x1f2754,this['_configService']=_0x26bc44,this[_0x16e31b(0x254)](),this[_0x16e31b(0x29f)]();}[_0x5b386b(0x254)](){const _0x4c16be=_0x5b386b;let _0x4043e2=this[_0x4c16be(0x1ee)][_0x4c16be(0x20e)](z);_0x4043e2!=null&&_0x4043e2['showDeveloperTools']&&(this[_0x4c16be(0x1c9)][_0x4c16be(0x25d)]=!0x1);}[_0x5b386b(0x29f)](){const _0x445587=_0x5b386b;let _0x1323b9=this[_0x445587(0x1ee)][_0x445587(0x20e)](z);(_0x1323b9==null?void 0x0:_0x1323b9[_0x445587(0x228)])!==!0x1&&this['disposeWithMe'](this[_0x445587(0x1fe)][_0x445587(0x1d5)](_0x209d4c['HEADER_MENU'],()=>{const _0x5af502=_0x445587;var _0x36e6b3;return _0x30c1f6(pe({'status$':this[_0x5af502(0x1c9)]['connectionStatus$'],'error$':this[_0x5af502(0x1c9)][_0x5af502(0x245)],'onConfigure':()=>this[_0x5af502(0x1df)](),'showClickable':(_0x36e6b3=_0x1323b9==null?void 0x0:_0x1323b9[_0x5af502(0x282)])==null?!0x1:_0x36e6b3}),this['_injector']);}));}[_0x5b386b(0x1df)](){const _0xdf00df=_0x5b386b;this[_0xdf00df(0x240)][_0xdf00df(0x1ef)](q)['showConfigPanel']();}};Z=W([U(0x0,_0x5289d4(_0xbbbf4b)),U(0x1,_0x5289d4(_0x4b7493)),U(0x2,_0x2e6601),U(0x3,_0x20fb6a)],Z);function pe(_0x3d7f5a){let {status$:_0x1424dc,error$:_0x49ce84,onConfigure:_0x2b1cfa,showClickable:_0x51ca9b}=_0x3d7f5a;return function(){return _0x18af1c(X,{'status$':_0x1424dc,'error$':_0x49ce84,'onConfigure':_0x2b1cfa,'showClickable':_0x51ca9b});};}function me(_0x180c4d){const _0x4d227e=_0x5b386b;return{'id':J['id'],'type':_0x53c3c0['BUTTON'],'icon':_0x4d227e(0x276),'title':_0x4d227e(0x2a4),'tooltip':_0x4d227e(0x2a4)};}const he={[_0x15a128[_0x5b386b(0x1d6)]]:{[J['id']]:{'order':0xa,'menuItemFactory':me}}};let Q=class extends _0x36bc9e{constructor(_0x115ccc,_0x3ab81f){const _0x10ec34=_0x5b386b;super(),this[_0x10ec34(0x297)]=_0x115ccc,this[_0x10ec34(0x210)]=_0x3ab81f,this[_0x10ec34(0x1e9)](),this[_0x10ec34(0x207)]();}['_initializeCommands'](){const _0x4ca115=_0x5b386b;[J][_0x4ca115(0x22f)](_0x34d06e=>{const _0x4b7d95=_0x4ca115;this[_0x4b7d95(0x1d8)](this['_commandService'][_0x4b7d95(0x1dd)](_0x34d06e));});}['_initializeMenus'](){const _0x581c1b=_0x5b386b;this['_menuManagerService'][_0x581c1b(0x1cf)](he);}};Q=W([U(0x0,_0x4bda18),U(0x1,_0x27ead3)],Q);var ge=_0x5b386b(0x1fd),_e=_0x5b386b(0x1f9);let $=class extends _0x3e8439{constructor(_0x1ba424=B,_0x339013,_0x26da5a,_0x2e3470,_0x2b63cb,_0xde7eea){const _0x2bd8b6=_0x5b386b;super(),this[_0x2bd8b6(0x1e8)]=_0x1ba424,this[_0x2bd8b6(0x240)]=_0x339013,this[_0x2bd8b6(0x1ee)]=_0x26da5a,this[_0x2bd8b6(0x1fe)]=_0x2e3470,this['_localStorageService']=_0x2b63cb,this[_0x2bd8b6(0x1e3)]=_0xde7eea;let {..._0x4633d8}=_0x354f9c({},B,this[_0x2bd8b6(0x1e8)]);this[_0x2bd8b6(0x1ee)][_0x2bd8b6(0x220)](z,_0x4633d8);}async[_0x5b386b(0x270)](){const _0x2d937b=_0x5b386b;let _0x5ab5a4=[[Z],[q],[Q]];this[_0x2d937b(0x240)][_0x2d937b(0x1db)](_0x429c47)||_0x5ab5a4[_0x2d937b(0x1cd)]([_0x429c47,{'useClass':_0x27c201}]),_0x5ab5a4[_0x2d937b(0x22f)](_0x440ad0=>this[_0x2d937b(0x240)]['add'](_0x440ad0)),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](Z),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](q),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](Q);}};H($,_0x5b386b(0x256),'MCP_UI_PLUGIN'),H($,'packageName',ge),H($,'version',_e),$=W([_0x492c3b(_0x5d8c82),U(0x1,_0x5289d4(_0xbbbf4b)),U(0x2,_0x20fb6a),U(0x3,_0x2e6601),U(0x4,_0x154cb1),U(0x5,_0x5289d4(_0x51f592))],$);export{R as MCPConfigPanel,q as MCPConfigUIController,Z as MCPConnectionUIController,X as MCPStatusDisplay,Q as MCPUIMenuController,J as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,_0x161449 as enUS,_0x397a8e as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x538f(_0x188c15,_0x319aa1){_0x188c15=_0x188c15-0x96;const _0x4cfb67=_0x4cfb();let _0x538fe6=_0x4cfb67[_0x188c15];return _0x538fe6;}(function(_0x23a7b5,_0x156346){const _0x180b59=_0x538f,_0x4b02e2=_0x23a7b5();while(!![]){try{const _0x11dc3e=parseInt(_0x180b59(0x9a))/0x1*(parseInt(_0x180b59(0x9b))/0x2)+-parseInt(_0x180b59(0x9e))/0x3+parseInt(_0x180b59(0x9d))/0x4+parseInt(_0x180b59(0x98))/0x5*(parseInt(_0x180b59(0x9c))/0x6)+parseInt(_0x180b59(0x96))/0x7+-parseInt(_0x180b59(0x99))/0x8+-parseInt(_0x180b59(0x97))/0x9;if(_0x11dc3e===_0x156346)break;else _0x4b02e2['push'](_0x4b02e2['shift']());}catch(_0x433342){_0x4b02e2['push'](_0x4b02e2['shift']());}}}(_0x4cfb,0x68de0));function _0x4cfb(){const _0x592bec=['2831408MpDbZB','28vBUMUE','33358VvIaOT','6qGhzjb','243780jmxrue','2010924oHzfQc','5476884yffmWe','2798397XSecGa','2271670TKYapF'];_0x4cfb=function(){return _0x592bec;};return _0x4cfb();}import _0xbbacae from'./en-US.js';const t=_0xbbacae;export{t as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x9583fd=_0x5a20;(function(_0x52cfa1,_0x67ce9f){const _0x1f860a=_0x5a20,_0x1dca41=_0x52cfa1();while(!![]){try{const _0x3a27fd=-parseInt(_0x1f860a(0x1c5))/0x1+-parseInt(_0x1f860a(0x1b7))/0x2+parseInt(_0x1f860a(0x1af))/0x3*(-parseInt(_0x1f860a(0x1bb))/0x4)+-parseInt(_0x1f860a(0x1ac))/0x5+-parseInt(_0x1f860a(0x19e))/0x6+-parseInt(_0x1f860a(0x1bc))/0x7*(-parseInt(_0x1f860a(0x1a7))/0x8)+parseInt(_0x1f860a(0x1c0))/0x9;if(_0x3a27fd===_0x67ce9f)break;else _0x1dca41['push'](_0x1dca41['shift']());}catch(_0x205bba){_0x1dca41['push'](_0x1dca41['shift']());}}}(_0x173a,0x8443a));const e={'mcpStatus':{'disconnected':_0x9583fd(0x1bf),'connecting':_0x9583fd(0x1b2),'connected':_0x9583fd(0x1a9),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x9583fd(0x1b6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x9583fd(0x1ae),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x9583fd(0x1b3)},'mcpConfig':{'title':_0x9583fd(0x1c3),'description':_0x9583fd(0x1b5),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x9583fd(0x1aa),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x9583fd(0x1a2),'connectionInfo':_0x9583fd(0x1a8),'mcpClientConfig':_0x9583fd(0x1a8),'configInstructions':_0x9583fd(0x1a1),'configStepTitle':_0x9583fd(0x1a0),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x9583fd(0x1b8),'configStep3':_0x9583fd(0x19f),'sessionId':_0x9583fd(0x19d),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x9583fd(0x1b9),'maxRetries':_0x9583fd(0x1c2),'save':_0x9583fd(0x1a6),'saving':'Saving...','note1':_0x9583fd(0x1c7),'note2':_0x9583fd(0x1a5),'configSaved':_0x9583fd(0x1bd),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x9583fd(0x1be),'univerAiLabel':_0x9583fd(0x1c6),'getStarted':_0x9583fd(0x1c1)},'validation':{'apiKeyRequired':_0x9583fd(0x1a4),'apiKeyTooShort':_0x9583fd(0x1b0),'invalidConfig':_0x9583fd(0x1a3),'invalidApiKey':_0x9583fd(0x1c8)},'connectionStatus':{'disconnected':_0x9583fd(0x1b4),'connecting':_0x9583fd(0x1c9),'connected':'Connected','failed':_0x9583fd(0x1ba),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x9583fd(0x1b1),'sessionOccupied':_0x9583fd(0x1ad),'networkError':_0x9583fd(0x1c4),'maxRetriesExceeded':_0x9583fd(0x1ab)}}};function _0x5a20(_0xc41961,_0x56bc0c){_0xc41961=_0xc41961-0x19d;const _0x173a4e=_0x173a();let _0x5a202e=_0x173a4e[_0xc41961];return _0x5a202e;}function _0x173a(){const _0x5b7837=['Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','3379065arOJkX','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','3iwhVTr','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connecting...','Click\x20to\x20configure\x20MCP','Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','910788KGLctb','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','Connection\x20Failed','748740eKblLQ','170443dIYxNV','Configuration\x20saved\x20successfully','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\x20Disconnected','28278378nDdqFW','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','MCP\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','899778gppjRs','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...','Session\x20ID','2584896NSnNnU','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20configuration','API\x20key\x20is\x20required','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','16ehtihH','MCP\x20Client\x20Configuration','MCP\x20Connected','Enter\x20your\x20API\x20key'];_0x173a=function(){return _0x5b7837;};return _0x173a();}export{e as default};
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5603d1,_0x49a4c2){const _0x56bab2=_0x1e9c,_0x538b81=_0x5603d1();while(!![]){try{const _0x3e4ed2=parseInt(_0x56bab2(0x80))/0x1*(-parseInt(_0x56bab2(0x87))/0x2)+-parseInt(_0x56bab2(0x7e))/0x3*(-parseInt(_0x56bab2(0x82))/0x4)+parseInt(_0x56bab2(0x8a))/0x5*(-parseInt(_0x56bab2(0x8b))/0x6)+-parseInt(_0x56bab2(0x84))/0x7*(parseInt(_0x56bab2(0x86))/0x8)+-parseInt(_0x56bab2(0x89))/0x9*(-parseInt(_0x56bab2(0x81))/0xa)+-parseInt(_0x56bab2(0x83))/0xb*(-parseInt(_0x56bab2(0x7f))/0xc)+-parseInt(_0x56bab2(0x85))/0xd*(-parseInt(_0x56bab2(0x88))/0xe);if(_0x3e4ed2===_0x49a4c2)break;else _0x538b81['push'](_0x538b81['shift']());}catch(_0x576f1d){_0x538b81['push'](_0x538b81['shift']());}}}(_0x5180,0xc5da1));import _0x376a77 from'./en-US.js';const t=_0x376a77;function _0x5180(){const _0x9367c9=['1987gnqIsA','10ugInMe','4MobEeM','4284269qscvLt','7357quptEf','273YLMGmY','9480xreKGe','422ERkAsI','1313060LMdBxd','8669061cZMUQI','5oFVgwb','5367048tFEHhV','141909fPRSaB','12CVpiNT'];_0x5180=function(){return _0x9367c9;};return _0x5180();}function _0x1e9c(_0x3950be,_0x283a1d){_0x3950be=_0x3950be-0x7e;const _0x5180ef=_0x5180();let _0x1e9ca8=_0x5180ef[_0x3950be];return _0x1e9ca8;}export{t as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xa89362,_0x433615){const _0x22469f=_0x4e16,_0x98c369=_0xa89362();while(!![]){try{const _0x182296=parseInt(_0x22469f(0x97))/0x1*(parseInt(_0x22469f(0x96))/0x2)+-parseInt(_0x22469f(0x95))/0x3+parseInt(_0x22469f(0x91))/0x4*(-parseInt(_0x22469f(0x93))/0x5)+parseInt(_0x22469f(0x98))/0x6+parseInt(_0x22469f(0x92))/0x7+parseInt(_0x22469f(0x99))/0x8+-parseInt(_0x22469f(0x94))/0x9;if(_0x182296===_0x433615)break;else _0x98c369['push'](_0x98c369['shift']());}catch(_0xc34afb){_0x98c369['push'](_0x98c369['shift']());}}}(_0x899e,0x1f111));import _0x2c8e24 from'./en-US.js';const t=_0x2c8e24;function _0x4e16(_0x2612ef,_0x1d75ab){_0x2612ef=_0x2612ef-0x91;const _0x899e7e=_0x899e();let _0x4e16b6=_0x899e7e[_0x2612ef];return _0x4e16b6;}function _0x899e(){const _0x235c62=['5bhvWCf','1471662UIhCZI','497997GIddjU','441778Iaxaro','1IJnJSg','264750wQhtoZ','1487912WixHPr','338592VdwEHe','632877nBUTAi'];_0x899e=function(){return _0x235c62;};return _0x899e();}export{t as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2cc7f0,_0x1af231){const _0x51c60=_0x4441,_0x2372c9=_0x2cc7f0();while(!![]){try{const _0x31171d=parseInt(_0x51c60(0x156))/0x1+-parseInt(_0x51c60(0x155))/0x2+parseInt(_0x51c60(0x15a))/0x3*(parseInt(_0x51c60(0x154))/0x4)+parseInt(_0x51c60(0x158))/0x5+-parseInt(_0x51c60(0x159))/0x6+parseInt(_0x51c60(0x152))/0x7*(parseInt(_0x51c60(0x151))/0x8)+-parseInt(_0x51c60(0x157))/0x9*(parseInt(_0x51c60(0x153))/0xa);if(_0x31171d===_0x1af231)break;else _0x2372c9['push'](_0x2372c9['shift']());}catch(_0x936881){_0x2372c9['push'](_0x2372c9['shift']());}}}(_0x6566,0x5cfb7));import _0x458b53 from'./en-US.js';function _0x6566(){const _0xb59625=['119298sKNmRj','16344TugpCi','1917490SQxYUN','2797644CCCPGa','25689NxavfQ','304QFQQBx','107569TZOWPr','1630hzBHBz','48gVASuc','92722LrTaBf'];_0x6566=function(){return _0xb59625;};return _0x6566();}const t=_0x458b53;function _0x4441(_0x1bb9a1,_0x1c00b5){_0x1bb9a1=_0x1bb9a1-0x151;const _0x656698=_0x6566();let _0x44414f=_0x656698[_0x1bb9a1];return _0x44414f;}export{t as default};
|
package/lib/es/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x31e151=_0x3f18;(function(_0x522534,_0xfcfbcb){const _0x22e1e7=_0x3f18,_0x3b2a20=_0x522534();while(!![]){try{const _0x2c980c=parseInt(_0x22e1e7(0x1d1))/0x1*(parseInt(_0x22e1e7(0x1d5))/0x2)+parseInt(_0x22e1e7(0x1cd))/0x3*(parseInt(_0x22e1e7(0x1e5))/0x4)+parseInt(_0x22e1e7(0x1c6))/0x5*(-parseInt(_0x22e1e7(0x1dd))/0x6)+-parseInt(_0x22e1e7(0x1e0))/0x7+-parseInt(_0x22e1e7(0x1cb))/0x8*(parseInt(_0x22e1e7(0x1cc))/0x9)+-parseInt(_0x22e1e7(0x1bb))/0xa+parseInt(_0x22e1e7(0x1b6))/0xb;if(_0x2c980c===_0xfcfbcb)break;else _0x3b2a20['push'](_0x3b2a20['shift']());}catch(_0x337fec){_0x3b2a20['push'](_0x3b2a20['shift']());}}}(_0x103a,0x4d8f5));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x31e151(0x1e2),'connected':_0x31e151(0x1ba),'failed':'MCP\x20接続失敗','retrying':'MCP\x20再試行中...','unknown':_0x31e151(0x1b7),'unauthorized':_0x31e151(0x1d8),'sessionOccupied':_0x31e151(0x1db),'networkError':_0x31e151(0x1be),'maxRetriesExceeded':_0x31e151(0x1b8),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x31e151(0x1d7)},'mcpConfig':{'title':_0x31e151(0x1ca),'description':_0x31e151(0x1d0),'apiKey':_0x31e151(0x1bd),'apiKeyPlaceholder':_0x31e151(0x1c9),'apiKeyHint':_0x31e151(0x1c2),'enableAuth':_0x31e151(0x1c3),'enableAuthHint':_0x31e151(0x1de),'connectionInfo':'MCPクライアント設定','mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x31e151(0x1c0),'configStep1':'以下のJSON設定をコピー','configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x31e151(0x1e4),'sessionId':_0x31e151(0x1d3),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x31e151(0x1b4),'configParameters':_0x31e151(0x1cf),'maxRetries':_0x31e151(0x1df),'save':'設定を保存','saving':_0x31e151(0x1d9),'note1':_0x31e151(0x1c7),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x31e151(0x1c8),'description':_0x31e151(0x1d4),'univerAiLabel':_0x31e151(0x1e3),'getStarted':_0x31e151(0x1d2)},'validation':{'apiKeyRequired':_0x31e151(0x1ce),'apiKeyTooShort':_0x31e151(0x1b9),'invalidConfig':'無効な設定','invalidApiKey':_0x31e151(0x1d6)},'connectionStatus':{'disconnected':_0x31e151(0x1da),'connecting':_0x31e151(0x1bf),'connected':_0x31e151(0x1c5),'failed':_0x31e151(0x1bc),'retrying':_0x31e151(0x1c4)},'connectionError':{'unauthorized':_0x31e151(0x1b5),'sessionOccupied':_0x31e151(0x1c1),'networkError':_0x31e151(0x1dc),'maxRetriesExceeded':_0x31e151(0x1e1)}}};function _0x3f18(_0x48240e,_0x47e62b){_0x48240e=_0x48240e-0x1b4;const _0x103ad1=_0x103a();let _0x3f181c=_0x103ad1[_0x48240e];return _0x3f181c;}function _0x103a(){const _0x859a97=['認証を有効にする','再試行中...','接続済み','5515vrtELh','設定の変更は直ちに有効になります','APIキーとは?','APIキーを入力してください','MCP設定','8tNAyJE','4126401kOOicm','9rFQuex','APIキーは必須です','設定パラメータ:','MCPを設定してAIでスプレッドシートを操作','282134OKqEZA','数秒でAPIキーを取得','セッションID','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','4SBwpye','無効なAPIキーです。キーが正しいか確認してください','クリックしてMCPを設定','MCP:\x20認証されていません','保存中...','未接続','MCP:\x20セッションIDが使用中','ネットワーク接続エラー。インターネット接続を確認してください','3018zaKCLl','セキュアな接続のために認証を有効にする','最大再試行回数','892899yXwENF','最大再試行回数を超過しました。後でもう一度お試しください','MCP\x20接続中...','Univer\x20AIコンソール','MCPクライアントを再起動して設定を適用','841004EClbAR','Bearerプレフィックス付きのAPIキー。','認証に失敗しました。APIキーを確認してください','9155894eczTYB','MCP\x20不明な状態','MCP:\x20最大再試行回数を超過','APIキーは10文字以上である必要があります','MCP\x20接続済み','5688350jczfyt','接続失敗','APIキー','MCP:\x20ネットワークエラー','接続中...','設定手順:','セッションIDが現在使用中です。後でもう一度お試しください','APIキーはこのブラウザのローカルに保存されます'];_0x103a=function(){return _0x859a97;};return _0x103a();}export{e as default};
|
package/lib/es/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5ad125=_0x2195;(function(_0x2fbf6d,_0x4344f1){const _0x2a4a3f=_0x2195,_0x483ed3=_0x2fbf6d();while(!![]){try{const _0x2ed0b8=parseInt(_0x2a4a3f(0xf2))/0x1+parseInt(_0x2a4a3f(0xef))/0x2*(-parseInt(_0x2a4a3f(0xe5))/0x3)+-parseInt(_0x2a4a3f(0xfe))/0x4+-parseInt(_0x2a4a3f(0xeb))/0x5*(parseInt(_0x2a4a3f(0xf3))/0x6)+parseInt(_0x2a4a3f(0xd9))/0x7+-parseInt(_0x2a4a3f(0xed))/0x8*(-parseInt(_0x2a4a3f(0xfd))/0x9)+parseInt(_0x2a4a3f(0xda))/0xa*(parseInt(_0x2a4a3f(0xf5))/0xb);if(_0x2ed0b8===_0x4344f1)break;else _0x483ed3['push'](_0x483ed3['shift']());}catch(_0x1d162e){_0x483ed3['push'](_0x483ed3['shift']());}}}(_0x3a80,0xa0776));function _0x2195(_0x31657a,_0x3178d5){_0x31657a=_0x31657a-0xce;const _0x3a8035=_0x3a80();let _0x219530=_0x3a8035[_0x31657a];return _0x219530;}const e={'mcpStatus':{'disconnected':_0x5ad125(0xd1),'connecting':_0x5ad125(0x100),'connected':'MCP\x20연결됨','failed':_0x5ad125(0xd3),'retrying':_0x5ad125(0xd4),'unknown':_0x5ad125(0xf4),'unauthorized':_0x5ad125(0xcf),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x5ad125(0xdc),'maxRetriesExceeded':_0x5ad125(0xdf),'clickToConnect':'클릭하여\x20MCP\x20연결','clickToConfigure':'클릭하여\x20MCP\x20설정'},'mcpConfig':{'title':_0x5ad125(0xdb),'description':'AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','apiKey':_0x5ad125(0xe6),'apiKeyPlaceholder':_0x5ad125(0xe4),'apiKeyHint':_0x5ad125(0xe1),'enableAuth':_0x5ad125(0xea),'enableAuthHint':_0x5ad125(0xec),'connectionInfo':_0x5ad125(0xf1),'mcpClientConfig':_0x5ad125(0xf1),'configInstructions':_0x5ad125(0xff),'configStepTitle':_0x5ad125(0xe2),'configStep1':_0x5ad125(0xfc),'configStep2':_0x5ad125(0xd5),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':'세션\x20ID','sessionIdDescription':'고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','authorizationDescription':_0x5ad125(0xd0),'configParameters':'설정\x20매개변수:','maxRetries':_0x5ad125(0xde),'save':_0x5ad125(0xd6),'saving':_0x5ad125(0xdd),'note1':_0x5ad125(0xce),'note2':_0x5ad125(0xf9),'configSaved':_0x5ad125(0xd7),'configError':_0x5ad125(0xe0),'apiApplyInfo':{'title':_0x5ad125(0xee),'description':_0x5ad125(0xe8),'univerAiLabel':_0x5ad125(0xfb),'getStarted':_0x5ad125(0xe7)},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':_0x5ad125(0xe9),'invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x5ad125(0xe3),'connecting':_0x5ad125(0xd2),'connected':'연결됨','failed':_0x5ad125(0xf8),'retrying':_0x5ad125(0xfa)},'connectionError':{'unauthorized':_0x5ad125(0xf7),'sessionOccupied':_0x5ad125(0xf6),'networkError':_0x5ad125(0xd8),'maxRetriesExceeded':_0x5ad125(0xf0)}}};export{e as default};function _0x3a80(){const _0x5c0175=['API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','재시도\x20중...','Univer\x20AI\x20콘솔','아래\x20JSON\x20설정\x20복사','684cxGsFo','4835132RIIszx','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','MCP\x20연결\x20중...','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP:\x20인증되지\x20않음','Bearer\x20접두사가\x20있는\x20API\x20키.','MCP\x20연결\x20끊김','연결\x20중...','MCP\x20연결\x20실패','MCP\x20재시도\x20중...','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','설정\x20저장','설정이\x20성공적으로\x20저장되었습니다','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','4725273mWujHC','20211450xxfoqE','MCP\x20설정','MCP:\x20네트워크\x20오류','저장\x20중...','최대\x20재시도\x20횟수','MCP:\x20최대\x20재시도\x20횟수\x20초과','설정\x20저장\x20실패','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','설정\x20단계:','연결\x20끊김','API\x20키를\x20입력하세요','165WwcUnz','API\x20키','몇\x20초\x20만에\x20API\x20키\x20발급받기','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','API\x20키는\x2010자\x20이상이어야\x20합니다','인증\x20활성화','7765YwKdmq','보안\x20연결을\x20위해\x20인증\x20활성화','13552awUWUZ','API\x20키란\x20무엇인가요?','46792TNYicQ','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP\x20클라이언트\x20설정','484758zWnNEo','606ReLXFn','MCP\x20알\x20수\x20없는\x20상태','11UaYIpR','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','인증\x20실패.\x20API\x20키를\x20확인하세요','연결\x20실패'];_0x3a80=function(){return _0x5c0175;};return _0x3a80();}
|