@univerjs-pro/mcp-ui 0.15.1 → 0.15.2-insiders.20260122-b1556b1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5b9bc3=_0x4f4d;(function(_0x8272f8,_0x38473e){const _0x25b85e=_0x4f4d,_0x158366=_0x8272f8();while(!![]){try{const _0x29887d=-parseInt(_0x25b85e(0x1b9))/0x1+parseInt(_0x25b85e(0x277))/0x2+parseInt(_0x25b85e(0x225))/0x3*(-parseInt(_0x25b85e(0x26d))/0x4)+parseInt(_0x25b85e(0x1af))/0x5*(parseInt(_0x25b85e(0x213))/0x6)+-parseInt(_0x25b85e(0x2f6))/0x7+-parseInt(_0x25b85e(0x2d1))/0x8+parseInt(_0x25b85e(0x199))/0x9*(parseInt(_0x25b85e(0x25d))/0xa);if(_0x29887d===_0x38473e)break;else _0x158366['push'](_0x158366['shift']());}catch(_0x283197){_0x158366['push'](_0x158366['shift']());}}}(_0x2f0c,0x4efe1));var Pe=Object[_0x5b9bc3(0x2c4)],Ee=(_0x21c954,_0x2d5a2e,_0x277c65)=>_0x2d5a2e in _0x21c954?Pe(_0x21c954,_0x2d5a2e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x277c65}):_0x21c954[_0x2d5a2e]=_0x277c65,x=(_0x489c1b,_0x155b18,_0x4240f6)=>Ee(_0x489c1b,typeof _0x155b18!=_0x5b9bc3(0x21b)?_0x155b18+'':_0x155b18,_0x4240f6);import{LocaleService as _0x5acff8,Inject as _0x19a565,Injector as _0x4022b1,IConfigService as _0x8e1c04,ILocalStorageService as _0x4c2eba,ILogService as _0x221b11,Disposable as _0x38c81e,CommandType as _0x10df29,ICommandService as _0x30ffad,DependentOn as _0x617d51,Plugin as _0x2065f8,merge as _0x286fb1}from'@univerjs/core';import{jsxs as _0x2a5706,jsx as _0x19de99}from'react/jsx-runtime';import{MCPConnectionStatus as _0x365507,MCPConnectionError as _0x55c172,MCPConnectionController as _0xaa88e9,MCP_PLUGIN_CONFIG_KEY as _0x2c40d3,UniverMCPPlugin as _0x4b8cc0}from'@univerjs-pro/mcp';import{clsx as _0x270b4d,Input as _0x153bb3,Button as _0x1035d9,MessageType as _0x325300,Tooltip as _0x1e3ebe}from'@univerjs/design';import{useDependency as _0x3d96bb,useObservable as _0x24e61d,IUIPartsService as _0x32a2ba,IDialogService as _0xee33a6,IMessageService as _0x12460d,ComponentManager as _0x1f0dc9,connectInjector as _0x3c88d9,BuiltInUIPart as _0x213245,MenuItemType as _0x31cb4c,RibbonStartGroup as _0xbead22,IMenuManagerService as _0x1face2}from'@univerjs/ui';import{BehaviorSubject as _0x2a0439}from'rxjs';import{useRef as _0x20bffd,createElement as _0x273557,forwardRef as _0x4d105e,useState as _0x53b5de,useCallback as _0x40ddaf}from'react';import{ISocketService as _0x447220,WebSocketService as _0x4200bf}from'@univerjs/network';function b({ref:_0x41cff8,..._0x47a3c3}){const _0x1a383a=_0x5b9bc3,{icon:_0x516e56,id:_0x4f855c,className:_0x253f71,extend:_0x258afa,..._0x463ea2}=_0x47a3c3,_0x450090=(_0x1a383a(0x282)+_0x4f855c+'\x20'+(_0x253f71||''))['trim'](),_0x48257b=_0x20bffd('_'+We());return ae(_0x516e56,''+_0x4f855c,{'defIds':_0x516e56[_0x1a383a(0x2a9)],'idSuffix':_0x48257b['current']},{'ref':_0x41cff8,'className':_0x450090,..._0x463ea2},_0x258afa);}function ae(_0x33e1a8,_0x45454c,_0x4d24b2,_0x47251a,_0x21930d){const _0x3ba396=_0x5b9bc3;return _0x273557(_0x33e1a8['tag'],{'key':_0x45454c,...Ye(_0x33e1a8,_0x4d24b2,_0x21930d),..._0x47251a},(Ze(_0x33e1a8,_0x4d24b2)[_0x3ba396(0x1e9)]||[])[_0x3ba396(0x1ad)]((_0x5220ce,_0x8e46b2)=>ae(_0x5220ce,_0x45454c+'-'+_0x33e1a8[_0x3ba396(0x2dd)]+'-'+_0x8e46b2,_0x4d24b2,void 0x0,_0x21930d)));}function Ye(_0x25206f,_0x438873,_0x1e59a0){const _0x10bbba=_0x5b9bc3,_0x463ec6={..._0x25206f['attrs']};_0x1e59a0!=null&&_0x1e59a0[_0x10bbba(0x2c1)]&&_0x463ec6[_0x10bbba(0x1a3)]===_0x10bbba(0x2c1)&&(_0x463ec6[_0x10bbba(0x1a3)]=_0x1e59a0[_0x10bbba(0x2c1)]),_0x25206f[_0x10bbba(0x2dd)]==='mask'&&_0x463ec6['id']&&(_0x463ec6['id']=_0x463ec6['id']+_0x438873[_0x10bbba(0x2b6)]),Object[_0x10bbba(0x1f9)](_0x463ec6)['forEach'](([_0x497202,_0x5f32e9])=>{const _0xf0fea=_0x10bbba;_0x497202===_0xf0fea(0x287)&&typeof _0x5f32e9==_0xf0fea(0x1f1)&&(_0x463ec6[_0x497202]=_0x5f32e9[_0xf0fea(0x291)](/url\(#(.*)\)/,_0xf0fea(0x1c7)+_0x438873[_0xf0fea(0x2b6)]+')'));});const {defIds:_0x1ead05}=_0x438873;return!_0x1ead05||_0x1ead05['length']===0x0||(_0x25206f['tag']===_0x10bbba(0x2ee)&&_0x463ec6['xlink:href']&&(_0x463ec6[_0x10bbba(0x1fa)]=_0x463ec6[_0x10bbba(0x1fa)]+_0x438873[_0x10bbba(0x2b6)]),Object[_0x10bbba(0x1f9)](_0x463ec6)[_0x10bbba(0x2fa)](([_0x144185,_0x57b40e])=>{const _0x249aac=_0x10bbba;typeof _0x57b40e==_0x249aac(0x1f1)&&(_0x463ec6[_0x144185]=_0x57b40e[_0x249aac(0x291)](/url\(#(.*)\)/,_0x249aac(0x1c7)+_0x438873[_0x249aac(0x2b6)]+')'));})),_0x463ec6;}function Ze(_0x2a6967,_0x50066a){const _0x4ffd74=_0x5b9bc3;var _0x4c2346;const {defIds:_0x33fe7e}=_0x50066a;return!_0x33fe7e||_0x33fe7e[_0x4ffd74(0x1d6)]===0x0?_0x2a6967:_0x2a6967['tag']==='defs'&&((_0x4c2346=_0x2a6967[_0x4ffd74(0x1e9)])!=null&&_0x4c2346[_0x4ffd74(0x1d6)])?{..._0x2a6967,'children':_0x2a6967[_0x4ffd74(0x1e9)][_0x4ffd74(0x1ad)](_0x3b00e8=>typeof _0x3b00e8[_0x4ffd74(0x209)]['id']==_0x4ffd74(0x1f1)&&_0x33fe7e&&_0x33fe7e['includes'](_0x3b00e8['attrs']['id'])?{..._0x3b00e8,'attrs':{..._0x3b00e8['attrs'],'id':_0x3b00e8[_0x4ffd74(0x209)]['id']+_0x50066a[_0x4ffd74(0x2b6)]}}:_0x3b00e8)}:_0x2a6967;}function We(){const _0x3ad0cc=_0x5b9bc3;return Math[_0x3ad0cc(0x2cc)]()[_0x3ad0cc(0x1e1)](0x24)[_0x3ad0cc(0x2ce)](0x2,0x8);}b[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x27b);const qe={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':_0x5b9bc3(0x219),'fill':'none','viewBox':_0x5b9bc3(0x267),'width':'1em','height':'1em'},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x298),'fillRule':_0x5b9bc3(0x1a8),'clipRule':_0x5b9bc3(0x1a8)}}]},le=_0x4d105e(function(_0x130206,_0x426e37){const _0x61044=_0x5b9bc3;return _0x273557(b,Object[_0x61044(0x1ff)]({},_0x130206,{'id':_0x61044(0x2d5),'ref':_0x426e37,'icon':qe}));});le[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x255);const Xe={'tag':'svg','attrs':{'xmlns':_0x5b9bc3(0x219),'fill':'none','viewBox':_0x5b9bc3(0x267),'width':_0x5b9bc3(0x21a),'height':_0x5b9bc3(0x21a)},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':'currentColor','d':_0x5b9bc3(0x1fc)}}]},ue=_0x4d105e(function(_0x2be970,_0x581e92){const _0x36544a=_0x5b9bc3;return _0x273557(b,Object[_0x36544a(0x1ff)]({},_0x2be970,{'id':_0x36544a(0x248),'ref':_0x581e92,'icon':Xe}));});ue[_0x5b9bc3(0x2e9)]='CloseIcon';const Je={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5b9bc3(0x2d3),'viewBox':_0x5b9bc3(0x267),'width':_0x5b9bc3(0x21a),'height':'1em'},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x1d8)}},{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x1e5),'fillRule':_0x5b9bc3(0x1a8),'clipRule':'evenodd'}}]},ve=_0x4d105e(function(_0x5a2404,_0x2d9444){const _0x24b91b=_0x5b9bc3;return _0x273557(b,Object[_0x24b91b(0x1ff)]({},_0x5a2404,{'id':_0x24b91b(0x25c),'ref':_0x2d9444,'icon':Je}));});ve[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x1f8);const Qe={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':_0x5b9bc3(0x219),'fill':_0x5b9bc3(0x2d3),'viewBox':_0x5b9bc3(0x267),'width':'1em','height':_0x5b9bc3(0x21a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'stroke':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x1a0),'strokeLinecap':'round','strokeLinejoin':_0x5b9bc3(0x2f2),'strokeWidth':1.2}}]},{'tag':_0x5b9bc3(0x2e4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5b9bc3(0x1f6)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x5b9bc3(0x28f)}}]}]}],'defIds':[_0x5b9bc3(0x1f6)]},de=_0x4d105e(function(_0x8a60f7,_0x57a6fe){const _0x5bc235=_0x5b9bc3;return _0x273557(b,Object[_0x5bc235(0x1ff)]({},_0x8a60f7,{'id':_0x5bc235(0x229),'ref':_0x57a6fe,'icon':Qe}));});de[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x1d1);const en={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':_0x5b9bc3(0x219),'fill':_0x5b9bc3(0x2d3),'viewBox':_0x5b9bc3(0x1ec),'width':_0x5b9bc3(0x21a),'height':_0x5b9bc3(0x21a)},'children':[{'tag':'g','attrs':{'clipPath':_0x5b9bc3(0x2d7)},'children':[{'tag':'path','attrs':{'stroke':_0x5b9bc3(0x23b),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x5b9bc3(0x2f2),'strokeLinejoin':_0x5b9bc3(0x2f2),'strokeWidth':1.2}}]},{'tag':_0x5b9bc3(0x2e4),'attrs':{},'children':[{'tag':_0x5b9bc3(0x252),'attrs':{'id':_0x5b9bc3(0x1c1)},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x2d0),'d':'M0\x200H16V16H0z','transform':_0x5b9bc3(0x1c8)}}]}]}],'defIds':[_0x5b9bc3(0x1c1)]},ge=_0x4d105e(function(_0x305fb0,_0x534dfa){const _0x41b1e3=_0x5b9bc3;return _0x273557(b,Object[_0x41b1e3(0x1ff)]({},_0x305fb0,{'id':_0x41b1e3(0x2b3),'ref':_0x534dfa,'icon':en}));});ge[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x19f);function nn(_0xefaff3){const _0x4c25c5=_0x5b9bc3;var _0x4c2f28,_0x423e6a;const {mcpCoreConfig:_0x4efd30,onSave:_0x5ba47f,loading:_0x52ce73=!0x1,config:_0x9b14a5,connectionStatus$:_0x107a72,connectionError$:_0x4e4dd3,currentApiKey$:_0x402f21,currentSessionId$:_0x34a179}=_0xefaff3,_0x399c8e=_0x3d96bb(_0x5acff8),_0x41bcb7=_0x24e61d(_0x107a72,_0x365507[_0x4c25c5(0x26a)]),_0x34adee=_0x24e61d(_0x4e4dd3,_0x55c172['NONE']),_0x52e808=_0x24e61d(_0x34a179,''),_0x78e63a=_0x24e61d(_0x402f21,''),[_0x37a7b6,_0xcac761]=_0x53b5de(_0x78e63a||''),_0x4926d2=!0x0,_0x528df7=_0x9b14a5[_0x4c25c5(0x239)]&&_0x4efd30[_0x4c25c5(0x22b)]&&(_0x4efd30[_0x4c25c5(0x22b)][_0x4c25c5(0x29a)](_0x4c25c5(0x1e2))||_0x4efd30[_0x4c25c5(0x22b)][_0x4c25c5(0x29a)](_0x4c25c5(0x2ad))),_0x59bdc4=(_0x4c2f28=_0x4efd30[_0x4c25c5(0x22b)])==null?void 0x0:_0x4c2f28[_0x4c25c5(0x29a)](_0x4c25c5(0x1e2)),_0x28c28c=(_0x423e6a=_0x4efd30[_0x4c25c5(0x22b)])==null?void 0x0:_0x423e6a[_0x4c25c5(0x29a)](_0x4c25c5(0x2ad)),_0xd4e7f1=_0x59bdc4?_0x4c25c5(0x1c4):'https://console.univer.ai',_0x4f65bd=_0x9b14a5[_0x4c25c5(0x239)]&&(_0x59bdc4||_0x28c28c),[_0x20b935,_0x332752]=_0x53b5de(!_0x37a7b6['trim']()),_0x36cee9=(_0x341b73,_0x164797)=>{const _0x269b2d=_0x4c25c5;if(_0x164797===_0x55c172[_0x269b2d(0x2c2)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x341b73){case _0x365507[_0x269b2d(0x2cd)]:return _0x269b2d(0x2eb);case _0x365507[_0x269b2d(0x2a3)]:case _0x365507[_0x269b2d(0x22d)]:return _0x269b2d(0x2db);case _0x365507[_0x269b2d(0x2b2)]:return _0x269b2d(0x292);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x2d064a=(_0x13648b,_0x18d5b0)=>{const _0x1a36d6=_0x4c25c5;if(_0x18d5b0===_0x55c172[_0x1a36d6(0x2c2)])return _0x1a36d6(0x212);switch(_0x13648b){case _0x365507['CONNECTED']:return _0x1a36d6(0x278);case _0x365507['CONNECTING']:case _0x365507[_0x1a36d6(0x22d)]:return _0x1a36d6(0x2a8);case _0x365507[_0x1a36d6(0x2b2)]:return _0x1a36d6(0x212);default:return _0x1a36d6(0x1fd);}},_0x336707=_0x1422e9=>{const _0x31ea6a=_0x4c25c5;switch(_0x1422e9){case _0x365507[_0x31ea6a(0x2cd)]:return _0x399c8e['t'](_0x31ea6a(0x2e2));case _0x365507[_0x31ea6a(0x2a3)]:return _0x399c8e['t'](_0x31ea6a(0x1cb));case _0x365507[_0x31ea6a(0x2b2)]:return _0x399c8e['t'](_0x31ea6a(0x28c));case _0x365507[_0x31ea6a(0x22d)]:return _0x399c8e['t'](_0x31ea6a(0x20d));default:return _0x399c8e['t'](_0x31ea6a(0x2df));}},_0x53e9f6=_0x3d93b0=>{const _0x1568e=_0x4c25c5;switch(_0x3d93b0){case _0x55c172[_0x1568e(0x2c2)]:return _0x399c8e['t'](_0x1568e(0x2de));case _0x55c172[_0x1568e(0x210)]:return _0x399c8e['t'](_0x1568e(0x221));case _0x55c172[_0x1568e(0x1f0)]:return _0x399c8e['t']('mcpConfig.connectionError.networkError');case _0x55c172[_0x1568e(0x1ea)]:return _0x399c8e['t'](_0x1568e(0x1df));default:return'';}},_0x40ccab=_0x40ddaf(()=>{const _0x251548=_0x4c25c5,_0x5f3bb4={..._0x4efd30,'apiKey':_0x37a7b6[_0x251548(0x2d8)](),'enableAuth':_0x4926d2};_0x5ba47f(_0x5f3bb4);},[_0x4efd30,_0x37a7b6,_0x4926d2,_0x5ba47f]),_0x1924f1=_0x37a7b6[_0x4c25c5(0x2d8)]()[_0x4c25c5(0x1d6)]>0x0;return _0x2a5706('div',{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x24b),'children':_0x2a5706('div',{'className':_0x4c25c5(0x1eb),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x203),'children':_0x19de99(_0x4c25c5(0x1ca),{'className':'univer-text-white','children':'⚙'})}),_0x19de99(_0x4c25c5(0x1ef),{'children':_0x19de99('p',{'className':_0x4c25c5(0x19c),'children':_0x399c8e['t']('mcpConfig.description')})})]})}),_0x2a5706('div',{'className':_0x4c25c5(0x24e),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x270b4d(_0x4c25c5(0x25e),_0x36cee9(_0x41bcb7,_0x34adee)),'children':_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2a7),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x270b4d(_0x4c25c5(0x2a4),_0x2d064a(_0x41bcb7,_0x34adee))}),_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x22c),'children':_0x336707(_0x41bcb7)})]})}),_0x34adee!==_0x55c172['NONE']&&(_0x41bcb7===_0x365507[_0x4c25c5(0x2b2)]||_0x34adee===_0x55c172[_0x4c25c5(0x2c2)])&&_0x19de99('div',{'className':_0x4c25c5(0x2d9),'children':_0x2a5706('div',{'className':_0x4c25c5(0x2f1),'children':[_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x1cf),'children':'⚠️'}),_0x19de99('p',{'className':_0x4c25c5(0x281),'children':_0x53e9f6(_0x34adee)})]})})]}),_0x19de99('div',{'className':_0x4c25c5(0x207),'children':_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-space-y-5','children':[_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2b0),'children':[_0x2a5706(_0x4c25c5(0x22e),{'className':_0x4c25c5(0x20a),'children':[_0x19de99(_0x4c25c5(0x1ca),{'children':'🔑'}),'\x20',_0x399c8e['t'](_0x4c25c5(0x28d)),_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x22a),'children':'*'}),_0x528df7&&_0x19de99('a',{'className':_0x4c25c5(0x297),'title':_0x399c8e['t'](_0x4c25c5(0x251)),'role':_0x4c25c5(0x2f7),'onClick':()=>_0x332752(!0x0),'children':_0x19de99(ve,{})})]}),_0x19de99(_0x153bb3,{'type':_0x4c25c5(0x2f9),'placeholder':_0x399c8e['t'](_0x4c25c5(0x237)),'value':_0x37a7b6,'disabled':_0x52ce73,'autoComplete':_0x4c25c5(0x1a7),'onChange':_0xcac761}),_0x19de99('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x399c8e['t'](_0x4c25c5(0x1b0))})]}),_0x528df7&&_0x20b935&&_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x220),'children':[_0x19de99('a',{'className':_0x4c25c5(0x253),'role':'button','onClick':()=>_0x332752(!0x1),'children':_0x19de99(ue,{'className':'univer-size-4'})}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x19de99('div',{'className':_0x4c25c5(0x19a),'children':_0x19de99('span',{'className':_0x4c25c5(0x1e4),'children':'🚀'})}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-flex-1','children':[_0x19de99('h4',{'className':_0x4c25c5(0x24f),'children':_0x399c8e['t'](_0x4c25c5(0x251))}),_0x19de99('p',{'className':_0x4c25c5(0x238),'children':_0x399c8e['t']('mcpConfig.apiApplyInfo.description')}),_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x254),'children':_0x4f65bd&&_0x2a5706('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':_0xd4e7f1,'target':_0x4c25c5(0x1f5),'rel':_0x4c25c5(0x232),'children':[_0x19de99(_0x4c25c5(0x1ca),{'children':'🤖'}),_0x399c8e['t'](_0x4c25c5(0x2bd)),_0x19de99(_0x4c25c5(0x1ca),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x28b),'children':['✨','\x20',_0x399c8e['t'](_0x4c25c5(0x269))]})]})]})]}),_0x9b14a5[_0x4c25c5(0x239)]&&_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x1dc),'children':[_0x2a5706('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x19de99(_0x4c25c5(0x1ca),{'children':'🔗'}),'\x20',_0x399c8e['t'](_0x4c25c5(0x234))]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-space-y-4','children':[_0x2a5706('div',{'className':_0x4c25c5(0x259),'children':[_0x19de99('p',{'className':_0x4c25c5(0x1ac),'children':_0x399c8e['t'](_0x4c25c5(0x23e))}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2b0),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x293),'children':_0x399c8e['t'](_0x4c25c5(0x1e3))}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x1bb),'children':[_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2a7),'children':[_0x19de99('span',{'className':_0x4c25c5(0x266),'children':'1'}),_0x399c8e['t'](_0x4c25c5(0x1b7))]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2a7),'children':[_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x266),'children':'2'}),_0x399c8e['t'](_0x4c25c5(0x1fb))]}),_0x2a5706('div',{'className':_0x4c25c5(0x2a7),'children':[_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x266),'children':'3'}),_0x399c8e['t'](_0x4c25c5(0x215))]})]})]})]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-space-y-2','children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x293),'children':_0x4c25c5(0x1de)}),_0x19de99('div',{'className':_0x4c25c5(0x1dd),'children':_0x19de99(_0x4c25c5(0x2e8),{'className':_0x4c25c5(0x19e),'children':JSON[_0x4c25c5(0x249)]({'mcpServers':{'univer':{'url':_0x4c25c5(0x29d)+(_0x52e808||'<SESSION_ID>'),'type':_0x4c25c5(0x257),'headers':{'Authorization':_0x4c25c5(0x1da)+(_0x37a7b6||_0x4c25c5(0x272))}}}},null,0x2)})})]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x259),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x399c8e['t'](_0x4c25c5(0x2be))}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2b0),'children':[_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x265),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x27d)}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x19de99('div',{'className':_0x4c25c5(0x1cd),'children':_0x4c25c5(0x295)}),_0x19de99('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x399c8e['t'](_0x4c25c5(0x241))})]})]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x265),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x27d)}),_0x2a5706('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x19de99(_0x4c25c5(0x1ef),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x4c25c5(0x1e8)}),_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x21f),'children':_0x399c8e['t'](_0x4c25c5(0x22f))})]})]})]})]})]})]}),_0x19de99(_0x1035d9,{'onClick':_0x40ccab,'disabled':!_0x1924f1||_0x52ce73,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x52ce73?_0x2a5706('span',{'className':_0x4c25c5(0x2a7),'children':[_0x19de99('span',{'children':'⟲'}),_0x399c8e['t'](_0x4c25c5(0x231))]}):_0x2a5706(_0x4c25c5(0x1ca),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19de99(le,{}),_0x399c8e['t'](_0x4c25c5(0x2c0))]})}),_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x261),'children':_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-flex\x20univer-gap-3','children':[_0x19de99('span',{'className':_0x4c25c5(0x2f4),'children':'💡'}),_0x2a5706('div',{'className':_0x4c25c5(0x27c),'children':[_0x19de99('div',{'className':_0x4c25c5(0x23f),'children':'Configuration\x20Notes:'}),_0x2a5706(_0x4c25c5(0x1ef),{'children':['•',_0x399c8e['t']('mcpConfig.note1')]}),_0x2a5706(_0x4c25c5(0x1ef),{'children':['•',_0x399c8e['t'](_0x4c25c5(0x21c))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x5b9bc3(0x2a5)],tn=(_0x562841,_0x242ab1,_0x1d2536,_0x2a0c59)=>{const _0x526d77=_0x5b9bc3;for(var _0x457123=_0x2a0c59>0x1?void 0x0:_0x2a0c59?rn(_0x242ab1,_0x1d2536):_0x242ab1,_0x1bbdaf=_0x562841[_0x526d77(0x1d6)]-0x1,_0x13459a;_0x1bbdaf>=0x0;_0x1bbdaf--)(_0x13459a=_0x562841[_0x1bbdaf])&&(_0x457123=_0x13459a(_0x457123)||_0x457123);return _0x457123;},d=(_0x264b60,_0x51c69e)=>(_0x47bd07,_0x5ce301)=>_0x51c69e(_0x47bd07,_0x5ce301,_0x264b60);const U=_0x5b9bc3(0x29e),L=_0x5b9bc3(0x21d);let I=class extends _0x38c81e{constructor(_0x22f9cc,_0x30bff7,_0x170c6e,_0x570b33,_0x35e702,_0x4ad6df,_0x528ec3,_0xd57a40,_0x188a76,_0x5a6e56){const _0x3b3c86=_0x5b9bc3;super(),x(this,'_loading$',new _0x2a0439(!0x1)),x(this,'_mcpCoreConfig$',new _0x2a0439({})),x(this,_0x3b3c86(0x284),new _0x2a0439({})),x(this,_0x3b3c86(0x23c),new _0x2a0439('')),x(this,_0x3b3c86(0x1d9),async _0x594f5c=>{const _0x14d721=_0x3b3c86;var _0x1d288c,_0x4fd63c;this[_0x14d721(0x227)][_0x14d721(0x2f0)](!0x0);try{const _0x485778=await this[_0x14d721(0x222)](_0x594f5c);if(!_0x485778[_0x14d721(0x1a6)]){this['_messageService'][_0x14d721(0x200)]({'type':_0x325300[_0x14d721(0x2ed)],'content':_0x485778['errorMessage']||this[_0x14d721(0x29f)]['t'](_0x14d721(0x20c))});return;}_0x594f5c[_0x14d721(0x2c5)]?await this[_0x14d721(0x2bb)][_0x14d721(0x1e7)](U,_0x594f5c['apiKey'][_0x14d721(0x2d8)]()):await this[_0x14d721(0x2bb)]['removeItem'](U),this[_0x14d721(0x23c)]['next'](((_0x1d288c=_0x594f5c[_0x14d721(0x2c5)])==null?void 0x0:_0x1d288c[_0x14d721(0x2d8)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x14d721(0x1da)+((_0x4fd63c=_0x594f5c[_0x14d721(0x2c5)])==null?void 0x0:_0x4fd63c[_0x14d721(0x2d8)]())}),this[_0x14d721(0x228)][_0x14d721(0x200)]({'type':_0x325300[_0x14d721(0x1ae)],'content':this[_0x14d721(0x29f)]['t'](_0x14d721(0x2c7))}),setTimeout(()=>{const _0x1aa9bd=_0x14d721;this[_0x1aa9bd(0x29b)][_0x1aa9bd(0x235)](L);},0x320);}catch(_0x487580){this[_0x14d721(0x1f3)][_0x14d721(0x258)](_0x14d721(0x2d2),_0x487580),this[_0x14d721(0x228)][_0x14d721(0x200)]({'type':_0x325300[_0x14d721(0x2ed)],'content':this[_0x14d721(0x29f)]['t'](_0x14d721(0x286))});}finally{this[_0x14d721(0x227)]['next'](!0x1);}}),(this[_0x3b3c86(0x29c)]=_0x22f9cc,this['_uiPartsService']=_0x30bff7,this[_0x3b3c86(0x2ba)]=_0x170c6e,this[_0x3b3c86(0x2bb)]=_0x570b33,this[_0x3b3c86(0x29b)]=_0x35e702,this[_0x3b3c86(0x228)]=_0x4ad6df,this[_0x3b3c86(0x2d4)]=_0x528ec3,this[_0x3b3c86(0x29f)]=_0xd57a40,this[_0x3b3c86(0x1f3)]=_0x188a76,this['_mcpConnectionController']=_0x5a6e56,this[_0x3b3c86(0x2f3)](),this['_loadStoredApiKey'](),this[_0x3b3c86(0x217)]());}['showConfigPanel'](){const _0x41510e=_0x5b9bc3,_0x288a07=this[_0x41510e(0x2ba)][_0x41510e(0x1c2)](y);_0x288a07!=null&&_0x288a07[_0x41510e(0x239)]&&this[_0x41510e(0x29b)]['open']({'id':L,'title':{'title':this[_0x41510e(0x29f)]['t']('mcpConfig.title')},'children':{'label':_0x41510e(0x25f)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1c7dc6=_0x41510e;this[_0x1c7dc6(0x29b)][_0x1c7dc6(0x235)](L);}});}[_0x5b9bc3(0x214)](){const _0x58eb21=_0x5b9bc3;return this[_0x58eb21(0x274)]['value'];}[_0x5b9bc3(0x217)](){const _0x460f48=_0x5b9bc3;this[_0x460f48(0x245)](this[_0x460f48(0x2d4)][_0x460f48(0x243)](_0x460f48(0x25f),this[_0x460f48(0x2f8)]()));}[_0x5b9bc3(0x2f8)](){const _0x5d89df=_0x5b9bc3;return _0x3c88d9(()=>{const _0x56ab03=_0x4f4d;var _0x42c4ad,_0x4fb206,_0x56eba3;return _0x19de99(nn,{'config':this[_0x56ab03(0x284)][_0x56ab03(0x208)],'mcpCoreConfig':this[_0x56ab03(0x274)][_0x56ab03(0x208)],'currentApiKey$':this[_0x56ab03(0x23c)],'onSave':this[_0x56ab03(0x1d9)],'loading':this[_0x56ab03(0x227)][_0x56ab03(0x208)],'connectionStatus$':(_0x42c4ad=this[_0x56ab03(0x1aa)])==null?void 0x0:_0x42c4ad[_0x56ab03(0x2f5)],'connectionError$':(_0x4fb206=this[_0x56ab03(0x1aa)])==null?void 0x0:_0x4fb206[_0x56ab03(0x260)],'currentSessionId$':(_0x56eba3=this[_0x56ab03(0x1aa)])==null?void 0x0:_0x56eba3['sessionId$']});},this[_0x5d89df(0x29c)]);}[_0x5b9bc3(0x2f3)](){const _0x34a5a9=_0x5b9bc3;this[_0x34a5a9(0x245)](this[_0x34a5a9(0x2ba)][_0x34a5a9(0x275)](_0x2c40d3)[_0x34a5a9(0x2aa)](_0x4c6259=>{const _0x3c1dfd=_0x34a5a9;this[_0x3c1dfd(0x274)]['next'](_0x4c6259||{});}));const _0x557221=this[_0x34a5a9(0x2ba)][_0x34a5a9(0x1c2)](_0x2c40d3);this[_0x34a5a9(0x274)][_0x34a5a9(0x2f0)](_0x557221||{}),this['disposeWithMe'](this['_configService'][_0x34a5a9(0x275)](y)[_0x34a5a9(0x2aa)](_0x48be7e=>{const _0x94724c=_0x34a5a9;this[_0x94724c(0x284)][_0x94724c(0x2f0)](_0x48be7e||{});}));const _0x36a6c1=this[_0x34a5a9(0x2ba)][_0x34a5a9(0x1c2)](y);this[_0x34a5a9(0x284)][_0x34a5a9(0x2f0)](_0x36a6c1||{});}async[_0x5b9bc3(0x290)](){const _0x4e4e26=_0x5b9bc3,_0x2844b3=this[_0x4e4e26(0x2ba)][_0x4e4e26(0x1c2)](y);if(!(_0x2844b3!=null&&_0x2844b3[_0x4e4e26(0x239)]))return;const _0x51c509=await this[_0x4e4e26(0x2bb)]['getItem'](U);_0x51c509&&(this[_0x4e4e26(0x1aa)][_0x4e4e26(0x1a5)]({'Authorization':_0x4e4e26(0x1da)+_0x51c509}),this[_0x4e4e26(0x23c)][_0x4e4e26(0x2f0)](_0x51c509));}async['_validateConfig'](_0x4e1483){const _0x58890f=_0x5b9bc3;if(!_0x4e1483[_0x58890f(0x2c5)]||_0x4e1483['apiKey'][_0x58890f(0x2d8)]()[_0x58890f(0x1d6)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x58890f(0x29f)]['t'](_0x58890f(0x2c3))};if(_0x4e1483[_0x58890f(0x2c5)][_0x58890f(0x2d8)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x58890f(0x29f)]['t'](_0x58890f(0x1ce))};try{const _0x44657b=await this[_0x58890f(0x29c)][_0x58890f(0x2da)](_0xaa88e9)[_0x58890f(0x1a1)](_0x4e1483[_0x58890f(0x2c5)][_0x58890f(0x2d8)]());return _0x44657b[_0x58890f(0x1a6)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x44657b[_0x58890f(0x258)]||this['_localeService']['t'](_0x58890f(0x218))};}catch(_0x43da48){return console[_0x58890f(0x2ca)](_0x58890f(0x205),_0x43da48),{'isValid':!0x0};}}};I=tn([d(0x0,_0x19a565(_0x4022b1)),d(0x1,_0x32a2ba),d(0x2,_0x8e1c04),d(0x3,_0x4c2eba),d(0x4,_0xee33a6),d(0x5,_0x12460d),d(0x6,_0x19a565(_0x1f0dc9)),d(0x7,_0x19a565(_0x5acff8)),d(0x8,_0x221b11),d(0x9,_0x19a565(_0xaa88e9))],I);const V={'id':_0x5b9bc3(0x28a),'type':_0x10df29[_0x5b9bc3(0x2af)],'handler':async(_0x1f8db1,_0x2b3141)=>(_0x1f8db1['get'](I)[_0x5b9bc3(0x270)](),!0x0)};function pe(_0x30657e,_0x1bcec2){const _0x46dc6a=_0x5b9bc3;switch(_0x30657e){case _0x365507[_0x46dc6a(0x26a)]:return'mcpStatus.disconnected';case _0x365507[_0x46dc6a(0x2a3)]:return _0x46dc6a(0x1b5);case _0x365507[_0x46dc6a(0x2cd)]:return'mcpStatus.connected';case _0x365507[_0x46dc6a(0x2b2)]:switch(_0x1bcec2){case _0x55c172['UNAUTHORIZED']:return _0x46dc6a(0x1db);case _0x55c172[_0x46dc6a(0x210)]:return _0x46dc6a(0x224);case _0x55c172[_0x46dc6a(0x1f0)]:return _0x46dc6a(0x24c);case _0x55c172[_0x46dc6a(0x1ea)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x365507[_0x46dc6a(0x22d)]:return _0x46dc6a(0x296);default:return _0x46dc6a(0x268);}}function on(_0x29a95c,_0x510635,_0xe4b8e5,_0x5a8310=!0x0){const _0x3802aa=_0x5b9bc3,_0x7eaa34=pe(_0x29a95c,_0x510635),_0x49da73=_0xe4b8e5['t'](_0x7eaa34);return _0x5a8310?_0x29a95c===_0x365507[_0x3802aa(0x26a)]&&_0x510635===_0x55c172[_0x3802aa(0x2c2)]?_0x49da73+'\x20-\x20'+_0xe4b8e5['t'](_0x3802aa(0x1b2)):_0x29a95c===_0x365507[_0x3802aa(0x2cd)]?''+_0x49da73:_0x29a95c===_0x365507[_0x3802aa(0x26a)]||_0x29a95c===_0x365507['FAILED']?_0x49da73+_0x3802aa(0x230)+_0xe4b8e5['t'](_0x3802aa(0x20b)):_0x49da73:_0x49da73;}function sn(_0x43744b){const _0xbc9da5=_0x5b9bc3;switch(_0x43744b){case _0x365507['CONNECTED']:return _0xbc9da5(0x256);case _0x365507[_0xbc9da5(0x2a3)]:case _0x365507[_0xbc9da5(0x22d)]:return _0xbc9da5(0x24a);case _0x365507['FAILED']:case _0x365507[_0xbc9da5(0x26a)]:return _0xbc9da5(0x22a);default:return'univer-text-gray-500';}}function cn(_0x1810e1){const _0x37c0b5=_0x5b9bc3,{status$:_0x35c261,error$:_0x46e681,onConfigure:_0x171126,showClickable:_0x15c693=!0x0}=_0x1810e1,_0x2fa22b=_0x24e61d(_0x35c261,_0x365507['DISCONNECTED']),_0x4a7924=_0x24e61d(_0x46e681,_0x55c172[_0x37c0b5(0x288)]),_0xc6d9d=_0x3d96bb(_0x5acff8),_0x4f7f78=_0x2fa22b===_0x365507['CONNECTED'];_0x2fa22b===_0x365507[_0x37c0b5(0x2a3)]||_0x365507['RETRYING'];const _0xe2085d=_0xc6d9d['t'](pe(_0x2fa22b,_0x4a7924)),_0x27b5ab=on(_0x2fa22b,_0x4a7924,_0xc6d9d,_0x15c693),_0x2a0b84=sn(_0x2fa22b),_0xbdac94=_0x4f7f78?_0x19de99(ge,{}):_0x19de99(de,{}),_0x5b6fef=_0x40ddaf(()=>{_0x15c693&&_0x171126&&_0x171126();},[_0x15c693,_0x171126]);function _0x27de7e(){const _0x2204ce=_0x37c0b5;return _0x2a5706(_0x2204ce(0x1ef),{'className':_0x270b4d('univer-flex\x20univer-items-center',_0x15c693&&_0x171126&&_0x2204ce(0x2ab)),'role':_0x2204ce(0x2f7),'onClick':_0x15c693&&_0x171126?_0x5b6fef:void 0x0,'children':[_0x19de99(_0x2204ce(0x1ef),{'className':_0x270b4d(_0x2204ce(0x2b5),_0x2a0b84),'children':_0xbdac94}),_0x19de99(_0x2204ce(0x1ef),{'className':_0x2204ce(0x25b),'children':_0xe2085d})]});}return _0x19de99(_0x1e3ebe,{'title':_0x27b5ab,'placement':'bottom','children':_0x27de7e()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x4364ee,_0x191272,_0x38759c,_0x119530)=>{const _0x27ca44=_0x5b9bc3;for(var _0x144b1c=_0x119530>0x1?void 0x0:_0x119530?an(_0x191272,_0x38759c):_0x191272,_0x22af42=_0x4364ee[_0x27ca44(0x1d6)]-0x1,_0x2114a9;_0x22af42>=0x0;_0x22af42--)(_0x2114a9=_0x4364ee[_0x22af42])&&(_0x144b1c=_0x2114a9(_0x144b1c)||_0x144b1c);return _0x144b1c;},M=(_0x5ec09f,_0x357fea)=>(_0x8fabec,_0x4cb335)=>_0x357fea(_0x8fabec,_0x4cb335,_0x5ec09f);let O=class extends _0x38c81e{constructor(_0x240d43,_0xb47f20,_0x4025ba,_0x14f523){const _0x97ff91=_0x5b9bc3;super(),this[_0x97ff91(0x29c)]=_0x240d43,this[_0x97ff91(0x1cc)]=_0xb47f20,this['_uiPartsService']=_0x4025ba,this[_0x97ff91(0x2ba)]=_0x14f523,this[_0x97ff91(0x1b6)](),this[_0x97ff91(0x2b1)]();}[_0x5b9bc3(0x1b6)](){const _0x5292a0=_0x5b9bc3,_0x35cb08=this[_0x5292a0(0x2ba)]['getConfig'](y);_0x35cb08!=null&&_0x35cb08['showDeveloperTools']&&(this[_0x5292a0(0x1cc)]['enableAutoConnect']=!0x1);}['_initStatusComponent'](){const _0x2d2522=_0x5b9bc3,_0x5a848c=this['_configService'][_0x2d2522(0x1c2)](y);(_0x5a848c==null?void 0x0:_0x5a848c[_0x2d2522(0x223)])!==!0x1&&this[_0x2d2522(0x245)](this['_uiPartsService'][_0x2d2522(0x262)](_0x213245[_0x2d2522(0x1ed)],()=>{const _0x287602=_0x2d2522;var _0x220fc2;return _0x3c88d9(un({'status$':this[_0x287602(0x1cc)][_0x287602(0x2f5)],'error$':this[_0x287602(0x1cc)]['connectionError$'],'onConfigure':()=>this[_0x287602(0x2ea)](),'showClickable':(_0x220fc2=_0x5a848c==null?void 0x0:_0x5a848c[_0x287602(0x239)])!=null?_0x220fc2:!0x1}),this['_injector']);}));}[_0x5b9bc3(0x2ea)](){const _0x2ba585=_0x5b9bc3;this[_0x2ba585(0x29c)][_0x2ba585(0x2da)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x19a565(_0x4022b1)),M(0x1,_0x19a565(_0xaa88e9)),M(0x2,_0x32a2ba),M(0x3,_0x8e1c04)],O);function un(_0x42485d){const {status$:_0x12bc37,error$:_0x59f393,onConfigure:_0x1f1f97,showClickable:_0x17d7e6}=_0x42485d;return function(){return _0x19de99(cn,{'status$':_0x12bc37,'error$':_0x59f393,'onConfigure':_0x1f1f97,'showClickable':_0x17d7e6});};}function vn(_0x4a072c){const _0x3c31d2=_0x5b9bc3;return{'id':V['id'],'type':_0x31cb4c[_0x3c31d2(0x26c)],'icon':_0x3c31d2(0x2e6),'title':'mcpConfig.title','tooltip':_0x3c31d2(0x204)};}function _0x2f0c(){const _0x31d308=['mcpConfig.configSaved','pluginName','MCP\x20已断开','warn','MCP\x20重连中...','random','CONNECTED','substring','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','white','1737392elYcsm','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','none','_componentManager','check-mark-icon','Connecting...','url(#on-line-icon_clip0_910_349)','trim','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','get','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','has','tag','mcpConfig.connectionError.unauthorized','mcpConfig.connectionStatus.disconnected','API\x20密钥无效,请检查密钥是否正确','OTHERS','mcpConfig.connectionStatus.connected','Enable\x20Authentication','defs','Session\x20ID','MenuIcon','配置保存失败','pre','displayName','_handleConfigure','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mergeMenu','Error','use','连接失败','next','univer-flex\x20univer-items-start\x20univer-gap-2','round','_initConfigSync','univer-shrink-0\x20univer-text-blue-500','connectionStatus$','1391712KfZPkL','button','_createConfigPanelComponent','text','forEach','配置更改将立即生效','17352BAyZOU','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','svg','univer-text-sm\x20univer-text-gray-500','API\x20密钥','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','OnLineIcon','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','validateApiKey','Connected','fill','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','__setCustomHeaders','isValid','off','evenodd','onStarting','_mcpConnectionController','配置参数:','univer-text-xs\x20univer-text-gray-600','map','Success','51195oFruDQ','mcpConfig.apiKeyHint','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpStatus.clickToConfigure','What\x20is\x20API\x20Key?','Configuration\x20Parameters:','mcpStatus.connecting','_initAutoConnect','mcpConfig.configStep1','配置步骤:','373444BAcxgo','Copy\x20the\x20JSON\x20configuration\x20below','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','最大重试次数','几秒钟内获取您的\x20API\x20密钥','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20连接失败','MCP\x20Connection\x20Failed','on-line-icon_clip0_910_349','getConfig','将以下配置添加到您的\x20MCP\x20客户端设置中:','https://console.univer.plus','您的\x20API\x20密钥安全存储在本地存储中','_config','url(#$1','translate(.97)','MCP:\x20Network\x20Error','span','mcpConfig.connectionStatus.connecting','_connectionController','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.validation.apiKeyTooShort','univer-shrink-0\x20univer-text-red-500','MCP:\x20Max\x20Retries\x20Exceeded','OffLineIcon','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','length','MCP\x20状态未知','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','_handleConfigSave','Bearer\x20','mcpStatus.unauthorized','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20Configuration','mcpConfig.connectionError.maxRetriesExceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','toString','univer.plus','mcpConfig.configStepTitle','univer-text-blue-600','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','path','setItem','Authorization:','children','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-items-center\x20univer-gap-3','0\x200\x2017\x2016','HEADER_MENU','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','div','NETWORK_ERROR','string','MCP\x20配置','_logService','Univer\x20AI\x20控制台','_blank','off-line-icon_clip0_910_343','_initializeMenus','HelpIcon','entries','xlink:href','mcpConfig.configStep2','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','univer-bg-gray-500','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','assign','show','MCP\x20Disconnected','重启您的\x20MCP\x20客户端以使配置生效','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.title','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','网络连接错误,请检查您的网络连接','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','value','attrs','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpStatus.clickToConnect','mcpConfig.validation.invalidConfig','mcpConfig.connectionStatus.retrying','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','复制以下\x20JSON\x20配置','SESSION_ID_OCCUPIED','API\x20密钥长度至少需要\x2010\x20位','univer-bg-red-500','54zpPHPM','getCurrentConfig','mcpConfig.configStep3','_uiPartsService','_registerComponent','mcpConfig.validation.invalidApiKey','http://www.w3.org/2000/svg','1em','symbol','mcpConfig.note2','mcp-config-dialog','API\x20密钥不能为空','univer-text-xs\x20univer-text-gray-500','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','mcpConfig.connectionError.sessionOccupied','_validateConfig','showStatus','mcpStatus.sessionOccupied','153579HeTgeh','API\x20Key','_loading$','_messageService','off-line-icon','univer-text-red-500','mcpServerUrl','univer-text-sm\x20univer-font-medium','RETRYING','label','mcpConfig.authorizationDescription','\x20-\x20','mcpConfig.saving','noopener\x20noreferrer','push','mcpConfig.connectionInfo','close','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.apiKeyPlaceholder','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','showDeveloperTools','add','currentColor','_apiKey$','MCP\x20连接中...','mcpConfig.configInstructions','univer-font-medium','MCP\x20已连接','mcpConfig.sessionIdDescription','Saving...','register','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','disposeWithMe','MCP:\x20Unauthorized','已连接','close-icon','stringify','univer-text-yellow-500','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpStatus.networkError','MCP\x20Unknown\x20Status','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.apiApplyInfo.title','clipPath','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-flex\x20univer-flex-wrap\x20univer-gap-2','CheckMarkIcon','univer-text-green-500','http','error','univer-space-y-3','连接中...','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','help-icon','3650jkWIzQ','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCPConfigPanel','connectionError$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','registerComponent','MCP\x20Client\x20Configuration','MCP\x20Connected','univer-flex\x20univer-items-start\x20univer-gap-3','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','0\x200\x2016\x2016','mcpStatus.unknown','mcpConfig.apiApplyInfo.getStarted','DISCONNECTED','Invalid\x20configuration','BUTTON','20iBcvPs','重连中...','Save\x20Configuration','showConfigPanel','点击连接\x20MCP','<API_KEY>','_initializeCommands','_mcpCoreConfig$','subscribeConfigValue$','请输入您的\x20API\x20密钥','1146162GnTtsM','univer-bg-green-500','Click\x20to\x20configure\x20MCP','您的\x20API\x20密钥将在此浏览器中本地存储','UniverIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','_menuManagerService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univerjs-icon\x20univerjs-icon-','MCP:\x20未授权','_config$','保存配置','mcpConfig.configError','mask','NONE','MCP:\x20网络错误','mcp-ui.command.openConfigPanel','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.connectionStatus.failed','mcpConfig.apiKey','MCP:\x20超出最大重试次数','M0\x200H16V16H0z','_loadStoredApiKey','replace','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','配置保存成功','univer_session_id:','mcpStatus.retrying','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','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','MCP\x20客户端配置','includes','_dialogService','_injector','https://mcp.univer.ai/mcp/?univer_session_id=','mcp.apiKey','_localeService','Max\x20Retries','Univer\x20AI\x20Console','setConfig','CONNECTING','univer-size-2\x20univer-rounded-full','getOwnPropertyDescriptor','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-items-center\x20univer-gap-2','univer-bg-blue-500','defIds','subscribe','\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','Enter\x20your\x20API\x20key','univer.ai','什么是\x20API\x20密钥?','COMMAND','univer-space-y-2','_initStatusComponent','FAILED','on-line-icon','Retrying...','univer-mr-2\x20univer-flex\x20univer-text-xl','idSuffix','启用身份验证以获得安全连接','会话\x20ID\x20已被占用,请稍后再试','配置无效','_configService','_localStorageService','MCP\x20Retrying...','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.configParameters','Click\x20to\x20connect\x20MCP','mcpConfig.save','colorChannel1','UNAUTHORIZED','mcpConfig.validation.apiKeyRequired','defineProperty','apiKey','启用身份验证'];_0x2f0c=function(){return _0x31d308;};return _0x2f0c();}const dn={[_0xbead22[_0x5b9bc3(0x2e1)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};function _0x4f4d(_0x276b7e,_0x257653){_0x276b7e=_0x276b7e-0x199;const _0x2f0ce7=_0x2f0c();let _0x4f4dfd=_0x2f0ce7[_0x276b7e];return _0x4f4dfd;}var gn=Object[_0x5b9bc3(0x2a5)],pn=(_0x2f11bd,_0xe21e82,_0x3ae24c,_0x2e43b6)=>{const _0x79bd16=_0x5b9bc3;for(var _0x184f3f=_0x2e43b6>0x1?void 0x0:_0x2e43b6?gn(_0xe21e82,_0x3ae24c):_0xe21e82,_0x6ebe10=_0x2f11bd[_0x79bd16(0x1d6)]-0x1,_0x4b97f2;_0x6ebe10>=0x0;_0x6ebe10--)(_0x4b97f2=_0x2f11bd[_0x6ebe10])&&(_0x184f3f=_0x4b97f2(_0x184f3f)||_0x184f3f);return _0x184f3f;},re=(_0x6ff528,_0x183fc7)=>(_0x582b02,_0x4079d7)=>_0x183fc7(_0x582b02,_0x4079d7,_0x6ff528);let D=class extends _0x38c81e{constructor(_0x27edb2,_0x12c3f1){const _0x276c4d=_0x5b9bc3;super(),this['_commandService']=_0x27edb2,this[_0x276c4d(0x280)]=_0x12c3f1,this['_initializeCommands'](),this[_0x276c4d(0x1f7)]();}[_0x5b9bc3(0x273)](){const _0x2ce317=_0x5b9bc3;[V][_0x2ce317(0x2fa)](_0x2ef7b5=>{const _0x3a4292=_0x2ce317;this[_0x3a4292(0x245)](this['_commandService']['registerCommand'](_0x2ef7b5));});}[_0x5b9bc3(0x1f7)](){const _0x25628c=_0x5b9bc3;this['_menuManagerService'][_0x25628c(0x2ec)](dn);}};D=pn([re(0x0,_0x30ffad),re(0x1,_0x1face2)],D);const Mn={'mcpStatus':{'disconnected':_0x5b9bc3(0x201),'connecting':'MCP\x20Connecting...','connected':_0x5b9bc3(0x264),'failed':_0x5b9bc3(0x1c0),'retrying':_0x5b9bc3(0x2bc),'unknown':_0x5b9bc3(0x24d),'unauthorized':_0x5b9bc3(0x246),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5b9bc3(0x1c9),'maxRetriesExceeded':_0x5b9bc3(0x1d0),'clickToConnect':_0x5b9bc3(0x2bf),'clickToConfigure':_0x5b9bc3(0x279)},'mcpConfig':{'title':_0x5b9bc3(0x1de),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5b9bc3(0x226),'apiKeyPlaceholder':_0x5b9bc3(0x2ac),'apiKeyHint':_0x5b9bc3(0x1be),'enableAuth':_0x5b9bc3(0x2e3),'enableAuthHint':_0x5b9bc3(0x2a6),'connectionInfo':_0x5b9bc3(0x263),'mcpClientConfig':_0x5b9bc3(0x263),'configInstructions':_0x5b9bc3(0x250),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x5b9bc3(0x1ba),'configStep2':_0x5b9bc3(0x1ee),'configStep3':_0x5b9bc3(0x1fe),'sessionId':_0x5b9bc3(0x2e5),'sessionIdDescription':_0x5b9bc3(0x20e),'authorizationDescription':_0x5b9bc3(0x27e),'configParameters':_0x5b9bc3(0x1b4),'maxRetries':_0x5b9bc3(0x2a0),'save':_0x5b9bc3(0x26f),'saving':_0x5b9bc3(0x242),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5b9bc3(0x1a4),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5b9bc3(0x1b3),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x5b9bc3(0x2a1),'getStarted':_0x5b9bc3(0x236)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5b9bc3(0x1e0),'invalidConfig':_0x5b9bc3(0x26b),'invalidApiKey':_0x5b9bc3(0x2cf)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5b9bc3(0x2d6),'connected':_0x5b9bc3(0x1a2),'failed':_0x5b9bc3(0x27f),'retrying':_0x5b9bc3(0x2b4)},'connectionError':{'unauthorized':_0x5b9bc3(0x1d3),'sessionOccupied':_0x5b9bc3(0x1d5),'networkError':_0x5b9bc3(0x1d4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':_0x5b9bc3(0x2c9),'connecting':_0x5b9bc3(0x23d),'connected':_0x5b9bc3(0x240),'failed':_0x5b9bc3(0x1bf),'retrying':_0x5b9bc3(0x2cb),'unknown':_0x5b9bc3(0x1d7),'unauthorized':_0x5b9bc3(0x283),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x5b9bc3(0x289),'maxRetriesExceeded':_0x5b9bc3(0x28e),'clickToConnect':_0x5b9bc3(0x271),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5b9bc3(0x1f2),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x5b9bc3(0x19d),'apiKeyPlaceholder':_0x5b9bc3(0x276),'apiKeyHint':_0x5b9bc3(0x27a),'enableAuth':_0x5b9bc3(0x2c6),'enableAuthHint':_0x5b9bc3(0x2b7),'connectionInfo':_0x5b9bc3(0x299),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x5b9bc3(0x1c3),'configStepTitle':_0x5b9bc3(0x1b8),'configStep1':_0x5b9bc3(0x20f),'configStep2':_0x5b9bc3(0x1b1),'configStep3':_0x5b9bc3(0x202),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5b9bc3(0x1d2),'configParameters':_0x5b9bc3(0x1ab),'maxRetries':_0x5b9bc3(0x1bc),'save':_0x5b9bc3(0x285),'saving':'保存中...','note1':_0x5b9bc3(0x2fb),'note2':_0x5b9bc3(0x1c5),'configSaved':_0x5b9bc3(0x294),'configError':_0x5b9bc3(0x2e7),'apiApplyInfo':{'title':_0x5b9bc3(0x2ae),'description':_0x5b9bc3(0x244),'univerAiLabel':_0x5b9bc3(0x1f4),'getStarted':_0x5b9bc3(0x1bd)},'validation':{'apiKeyRequired':_0x5b9bc3(0x21e),'apiKeyTooShort':_0x5b9bc3(0x211),'invalidConfig':_0x5b9bc3(0x2b9),'invalidApiKey':_0x5b9bc3(0x2e0)},'connectionStatus':{'disconnected':'未连接','connecting':_0x5b9bc3(0x25a),'connected':_0x5b9bc3(0x247),'failed':_0x5b9bc3(0x2ef),'retrying':_0x5b9bc3(0x26e)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x5b9bc3(0x2b8),'networkError':_0x5b9bc3(0x206),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x5b9bc3(0x2c4)],hn=Object[_0x5b9bc3(0x2a5)],Cn=(_0xfd7d6e,_0x46d87d,_0x3f772b)=>_0x46d87d in _0xfd7d6e?fn(_0xfd7d6e,_0x46d87d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f772b}):_0xfd7d6e[_0x46d87d]=_0x3f772b,mn=(_0x1e7f80,_0x21c79a,_0x3ae33e,_0x5bcdb8)=>{const _0x19c8a0=_0x5b9bc3;for(var _0x35af17=_0x5bcdb8>0x1?void 0x0:_0x5bcdb8?hn(_0x21c79a,_0x3ae33e):_0x21c79a,_0x114675=_0x1e7f80[_0x19c8a0(0x1d6)]-0x1,_0x25fc6d;_0x114675>=0x0;_0x114675--)(_0x25fc6d=_0x1e7f80[_0x114675])&&(_0x35af17=_0x25fc6d(_0x35af17)||_0x35af17);return _0x35af17;},P=(_0x5be0b6,_0x17a30a)=>(_0x189334,_0x10e5f1)=>_0x17a30a(_0x189334,_0x10e5f1,_0x5be0b6),_n=(_0x5ebbe7,_0x1df81d,_0x4761c0)=>Cn(_0x5ebbe7,_0x1df81d+'',_0x4761c0);let j=class extends _0x2065f8{constructor(_0x109fd6=ie,_0x1ce77e,_0x4549a9,_0x2d751d,_0x3b90d6,_0x4778d8){const _0x5dd24d=_0x5b9bc3;super(),this[_0x5dd24d(0x1c6)]=_0x109fd6,this[_0x5dd24d(0x29c)]=_0x1ce77e,this[_0x5dd24d(0x2ba)]=_0x4549a9,this[_0x5dd24d(0x216)]=_0x2d751d,this[_0x5dd24d(0x2bb)]=_0x3b90d6,this[_0x5dd24d(0x29f)]=_0x4778d8;const {..._0x499055}=_0x286fb1({},ie,this[_0x5dd24d(0x1c6)]);this[_0x5dd24d(0x2ba)][_0x5dd24d(0x2a2)](y,_0x499055);}async[_0x5b9bc3(0x1a9)](){const _0x6b4880=_0x5b9bc3,_0x585730=[[O],[I],[D]];this[_0x6b4880(0x29c)][_0x6b4880(0x2dc)](_0x447220)||_0x585730[_0x6b4880(0x233)]([_0x447220,{'useClass':_0x4200bf}]),_0x585730[_0x6b4880(0x2fa)](_0x1ab5df=>this[_0x6b4880(0x29c)][_0x6b4880(0x23a)](_0x1ab5df)),this[_0x6b4880(0x29c)]['get'](O),this[_0x6b4880(0x29c)][_0x6b4880(0x2da)](I),this[_0x6b4880(0x29c)][_0x6b4880(0x2da)](D);}};_n(j,_0x5b9bc3(0x2c8),'MCP_UI_PLUGIN'),j=mn([_0x617d51(_0x4b8cc0),P(0x1,_0x19a565(_0x4022b1)),P(0x2,_0x8e1c04),P(0x3,_0x32a2ba),P(0x4,_0x4c2eba),P(0x5,_0x19a565(_0x5acff8))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
|
1
|
+
const _0x5ec4ee=_0x2e68;(function(_0x4994e3,_0x42ceda){const _0x294453=_0x2e68,_0x38b4d5=_0x4994e3();while(!![]){try{const _0xf25bf4=-parseInt(_0x294453(0x271))/0x1+-parseInt(_0x294453(0x2b7))/0x2*(-parseInt(_0x294453(0x2c6))/0x3)+parseInt(_0x294453(0x208))/0x4+-parseInt(_0x294453(0x1b7))/0x5+-parseInt(_0x294453(0x238))/0x6*(-parseInt(_0x294453(0x1bd))/0x7)+parseInt(_0x294453(0x249))/0x8*(parseInt(_0x294453(0x294))/0x9)+-parseInt(_0x294453(0x20a))/0xa;if(_0xf25bf4===_0x42ceda)break;else _0x38b4d5['push'](_0x38b4d5['shift']());}catch(_0x373dac){_0x38b4d5['push'](_0x38b4d5['shift']());}}}(_0x2bf6,0xd786e));var Pe=Object['defineProperty'],Ee=(_0xdad545,_0x43af65,_0x78e2df)=>_0x43af65 in _0xdad545?Pe(_0xdad545,_0x43af65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x78e2df}):_0xdad545[_0x43af65]=_0x78e2df,x=(_0x16cd9a,_0x16f34b,_0x55660c)=>Ee(_0x16cd9a,typeof _0x16f34b!='symbol'?_0x16f34b+'':_0x16f34b,_0x55660c);import{LocaleService as _0x4eb6bc,Inject as _0xf0d1df,Injector as _0x212aa2,IConfigService as _0x1784e7,ILocalStorageService as _0x1d36ed,ILogService as _0x47214e,Disposable as _0x101057,CommandType as _0x39da2a,ICommandService as _0x28695c,DependentOn as _0xa8ea9b,Plugin as _0x5071e1,merge as _0x4e4b64}from'@univerjs/core';import{jsxs as _0x5f529d,jsx as _0x44f7f0}from'react/jsx-runtime';import{MCPConnectionStatus as _0x7b3927,MCPConnectionError as _0x545a65,MCPConnectionController as _0x4ee547,MCP_PLUGIN_CONFIG_KEY as _0x37bfd7,UniverMCPPlugin as _0x56711f}from'@univerjs-pro/mcp';import{clsx as _0x3d3441,Input as _0x7e027f,Button as _0x2ffbf6,MessageType as _0x4d7fe7,Tooltip as _0x541d3e}from'@univerjs/design';import{useDependency as _0x25f537,useObservable as _0x247ff5,IUIPartsService as _0x99b350,IDialogService as _0x382679,IMessageService as _0x50b4de,ComponentManager as _0x3626a3,connectInjector as _0x25d47b,BuiltInUIPart as _0x33e4e4,MenuItemType as _0x2c0545,RibbonStartGroup as _0x3d8145,IMenuManagerService as _0x3ab4bb}from'@univerjs/ui';import{BehaviorSubject as _0x267383}from'rxjs';import{useRef as _0x256568,createElement as _0xdbd60f,forwardRef as _0x4a9d14,useState as _0x157135,useCallback as _0x5dca21}from'react';import{ISocketService as _0x16030e,WebSocketService as _0x595390}from'@univerjs/network';function b({ref:_0x32beef,..._0x23b662}){const {icon:_0x102f8c,id:_0x4575ab,className:_0x1343bd,extend:_0x335c1d,..._0x2dc575}=_0x23b662,_0x51d367=('univerjs-icon\x20univerjs-icon-'+_0x4575ab+'\x20'+(_0x1343bd||''))['trim'](),_0x5e28af=_0x256568('_'+We());return ae(_0x102f8c,''+_0x4575ab,{'defIds':_0x102f8c['defIds'],'idSuffix':_0x5e28af['current']},{'ref':_0x32beef,'className':_0x51d367,..._0x2dc575},_0x335c1d);}function ae(_0x1fd50d,_0x3a732d,_0x16d58d,_0x3a1af4,_0x114c10){const _0x4e9bc6=_0x2e68;return _0xdbd60f(_0x1fd50d[_0x4e9bc6(0x219)],{'key':_0x3a732d,...Ye(_0x1fd50d,_0x16d58d,_0x114c10),..._0x3a1af4},(Ze(_0x1fd50d,_0x16d58d)[_0x4e9bc6(0x197)]||[])[_0x4e9bc6(0x248)]((_0x282c2e,_0x370f22)=>ae(_0x282c2e,_0x3a732d+'-'+_0x1fd50d[_0x4e9bc6(0x219)]+'-'+_0x370f22,_0x16d58d,void 0x0,_0x114c10)));}function Ye(_0x1bfc04,_0x2c4d77,_0x4ac75c){const _0x2e06a9=_0x2e68,_0x543ba8={..._0x1bfc04[_0x2e06a9(0x1aa)]};_0x4ac75c!=null&&_0x4ac75c[_0x2e06a9(0x225)]&&_0x543ba8[_0x2e06a9(0x1ac)]===_0x2e06a9(0x225)&&(_0x543ba8[_0x2e06a9(0x1ac)]=_0x4ac75c[_0x2e06a9(0x225)]),_0x1bfc04[_0x2e06a9(0x219)]===_0x2e06a9(0x254)&&_0x543ba8['id']&&(_0x543ba8['id']=_0x543ba8['id']+_0x2c4d77['idSuffix']),Object['entries'](_0x543ba8)['forEach'](([_0x1804c8,_0x16e742])=>{const _0x58e2e2=_0x2e06a9;_0x1804c8===_0x58e2e2(0x254)&&typeof _0x16e742=='string'&&(_0x543ba8[_0x1804c8]=_0x16e742[_0x58e2e2(0x2d0)](/url\(#(.*)\)/,_0x58e2e2(0x2c1)+_0x2c4d77['idSuffix']+')'));});const {defIds:_0x902dd3}=_0x2c4d77;return!_0x902dd3||_0x902dd3[_0x2e06a9(0x287)]===0x0||(_0x1bfc04['tag']===_0x2e06a9(0x240)&&_0x543ba8[_0x2e06a9(0x194)]&&(_0x543ba8[_0x2e06a9(0x194)]=_0x543ba8[_0x2e06a9(0x194)]+_0x2c4d77['idSuffix']),Object['entries'](_0x543ba8)[_0x2e06a9(0x1fe)](([_0x4d2ccd,_0x5a1cb6])=>{const _0x1e9a79=_0x2e06a9;typeof _0x5a1cb6=='string'&&(_0x543ba8[_0x4d2ccd]=_0x5a1cb6[_0x1e9a79(0x2d0)](/url\(#(.*)\)/,_0x1e9a79(0x2c1)+_0x2c4d77['idSuffix']+')'));})),_0x543ba8;}function Ze(_0x3d2a29,_0x19eca9){const _0x2da1c6=_0x2e68;var _0x408913;const {defIds:_0x11b80a}=_0x19eca9;return!_0x11b80a||_0x11b80a['length']===0x0?_0x3d2a29:_0x3d2a29[_0x2da1c6(0x219)]===_0x2da1c6(0x28b)&&((_0x408913=_0x3d2a29[_0x2da1c6(0x197)])!=null&&_0x408913[_0x2da1c6(0x287)])?{..._0x3d2a29,'children':_0x3d2a29[_0x2da1c6(0x197)][_0x2da1c6(0x248)](_0x1c6e19=>typeof _0x1c6e19[_0x2da1c6(0x1aa)]['id']==_0x2da1c6(0x224)&&_0x11b80a&&_0x11b80a[_0x2da1c6(0x1b4)](_0x1c6e19['attrs']['id'])?{..._0x1c6e19,'attrs':{..._0x1c6e19[_0x2da1c6(0x1aa)],'id':_0x1c6e19['attrs']['id']+_0x19eca9[_0x2da1c6(0x1a9)]}}:_0x1c6e19)}:_0x3d2a29;}function We(){const _0x3288f7=_0x2e68;return Math[_0x3288f7(0x1a4)]()[_0x3288f7(0x2b2)](0x24)['substring'](0x2,0x8);}b[_0x5ec4ee(0x222)]=_0x5ec4ee(0x246);const qe={'tag':_0x5ec4ee(0x2c3),'attrs':{'xmlns':_0x5ec4ee(0x268),'fill':'none','viewBox':_0x5ec4ee(0x1f7),'width':_0x5ec4ee(0x24b),'height':_0x5ec4ee(0x24b)},'children':[{'tag':'path','attrs':{'fill':_0x5ec4ee(0x2c2),'d':_0x5ec4ee(0x2b1),'fillRule':_0x5ec4ee(0x26f),'clipRule':_0x5ec4ee(0x26f)}}]},le=_0x4a9d14(function(_0x5491f1,_0x7f43cf){const _0x2a1824=_0x5ec4ee;return _0xdbd60f(b,Object[_0x2a1824(0x297)]({},_0x5491f1,{'id':'check-mark-icon','ref':_0x7f43cf,'icon':qe}));});le[_0x5ec4ee(0x222)]=_0x5ec4ee(0x193);const Xe={'tag':_0x5ec4ee(0x2c3),'attrs':{'xmlns':_0x5ec4ee(0x268),'fill':_0x5ec4ee(0x2a4),'viewBox':'0\x200\x2016\x2016','width':_0x5ec4ee(0x24b),'height':_0x5ec4ee(0x24b)},'children':[{'tag':_0x5ec4ee(0x2c5),'attrs':{'fill':'currentColor','d':_0x5ec4ee(0x288)}}]},ue=_0x4a9d14(function(_0x41cdce,_0x219f18){const _0x24e3b5=_0x5ec4ee;return _0xdbd60f(b,Object[_0x24e3b5(0x297)]({},_0x41cdce,{'id':'close-icon','ref':_0x219f18,'icon':Xe}));});ue[_0x5ec4ee(0x222)]='CloseIcon';const Je={'tag':'svg','attrs':{'xmlns':_0x5ec4ee(0x268),'fill':_0x5ec4ee(0x2a4),'viewBox':_0x5ec4ee(0x1f7),'width':_0x5ec4ee(0x24b),'height':_0x5ec4ee(0x24b)},'children':[{'tag':_0x5ec4ee(0x2c5),'attrs':{'fill':'currentColor','d':_0x5ec4ee(0x2b8)}},{'tag':'path','attrs':{'fill':_0x5ec4ee(0x2c2),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x5ec4ee(0x2c5),'attrs':{'fill':_0x5ec4ee(0x2c2),'d':_0x5ec4ee(0x18e),'fillRule':_0x5ec4ee(0x26f),'clipRule':_0x5ec4ee(0x26f)}}]},ve=_0x4a9d14(function(_0xe42c03,_0x5ed132){const _0xe80b57=_0x5ec4ee;return _0xdbd60f(b,Object[_0xe80b57(0x297)]({},_0xe42c03,{'id':_0xe80b57(0x1d1),'ref':_0x5ed132,'icon':Je}));});ve['displayName']=_0x5ec4ee(0x19b);const Qe={'tag':_0x5ec4ee(0x2c3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5ec4ee(0x2a4),'viewBox':_0x5ec4ee(0x1f7),'width':_0x5ec4ee(0x24b),'height':_0x5ec4ee(0x24b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x5ec4ee(0x2c5),'attrs':{'stroke':'currentColor','d':_0x5ec4ee(0x26b),'strokeLinecap':_0x5ec4ee(0x21f),'strokeLinejoin':_0x5ec4ee(0x21f),'strokeWidth':1.2}}]},{'tag':_0x5ec4ee(0x28b),'attrs':{},'children':[{'tag':_0x5ec4ee(0x260),'attrs':{'id':_0x5ec4ee(0x1a5)},'children':[{'tag':_0x5ec4ee(0x2c5),'attrs':{'fill':_0x5ec4ee(0x2a9),'d':_0x5ec4ee(0x24c)}}]}]}],'defIds':[_0x5ec4ee(0x1a5)]},de=_0x4a9d14(function(_0x27ac71,_0x203665){const _0xa16e8d=_0x5ec4ee;return _0xdbd60f(b,Object[_0xa16e8d(0x297)]({},_0x27ac71,{'id':_0xa16e8d(0x1f1),'ref':_0x203665,'icon':Qe}));});de[_0x5ec4ee(0x222)]=_0x5ec4ee(0x2ac);const en={'tag':_0x5ec4ee(0x2c3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x5ec4ee(0x25a),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x5ec4ee(0x2c5),'attrs':{'stroke':_0x5ec4ee(0x2c2),'d':_0x5ec4ee(0x1d2),'strokeLinecap':'round','strokeLinejoin':_0x5ec4ee(0x21f),'strokeWidth':1.2}}]},{'tag':_0x5ec4ee(0x28b),'attrs':{},'children':[{'tag':_0x5ec4ee(0x260),'attrs':{'id':_0x5ec4ee(0x28c)},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x5ec4ee(0x28c)]},ge=_0x4a9d14(function(_0x161e9a,_0x1849f8){const _0x21dda5=_0x5ec4ee;return _0xdbd60f(b,Object[_0x21dda5(0x297)]({},_0x161e9a,{'id':_0x21dda5(0x1e8),'ref':_0x1849f8,'icon':en}));});ge[_0x5ec4ee(0x222)]=_0x5ec4ee(0x21b);function nn(_0x26a9cd){const _0x2e66e8=_0x5ec4ee;var _0x4ace09,_0x424b18;const {mcpCoreConfig:_0x446ce9,onSave:_0x1daf8e,loading:_0x5a46a8=!0x1,config:_0x455a03,connectionStatus$:_0x5538ef,connectionError$:_0xe1441c,currentApiKey$:_0x3f50e0,currentSessionId$:_0x54596c}=_0x26a9cd,_0x375efb=_0x25f537(_0x4eb6bc),_0x435e61=_0x247ff5(_0x5538ef,_0x7b3927[_0x2e66e8(0x293)]),_0x399fe3=_0x247ff5(_0xe1441c,_0x545a65['NONE']),_0x3e46c6=_0x247ff5(_0x54596c,''),_0x459f30=_0x247ff5(_0x3f50e0,''),[_0x2cd8c3,_0x65c98f]=_0x157135(_0x459f30||''),_0x410fcb=!0x0,_0x190e85=_0x455a03['showDeveloperTools']&&_0x446ce9[_0x2e66e8(0x1b2)]&&(_0x446ce9[_0x2e66e8(0x1b2)][_0x2e66e8(0x1b4)](_0x2e66e8(0x241))||_0x446ce9[_0x2e66e8(0x1b2)][_0x2e66e8(0x1b4)](_0x2e66e8(0x1d3))),_0x44ed9a=(_0x4ace09=_0x446ce9['mcpServerUrl'])==null?void 0x0:_0x4ace09['includes'](_0x2e66e8(0x241)),_0x5735c7=(_0x424b18=_0x446ce9[_0x2e66e8(0x1b2)])==null?void 0x0:_0x424b18[_0x2e66e8(0x1b4)](_0x2e66e8(0x1d3)),_0x296a47=_0x44ed9a?_0x2e66e8(0x2d3):'https://console.univer.ai',_0x5e638d=_0x455a03['showDeveloperTools']&&(_0x44ed9a||_0x5735c7),[_0x17db14,_0x5f067f]=_0x157135(!_0x2cd8c3[_0x2e66e8(0x1fd)]()),_0x5d1986=(_0x45683a,_0x264082)=>{const _0x16bd04=_0x2e66e8;if(_0x264082===_0x545a65[_0x16bd04(0x19c)])return _0x16bd04(0x1e9);switch(_0x45683a){case _0x7b3927[_0x16bd04(0x1e3)]:return _0x16bd04(0x272);case _0x7b3927[_0x16bd04(0x27e)]:case _0x7b3927[_0x16bd04(0x236)]:return _0x16bd04(0x1d5);case _0x7b3927[_0x16bd04(0x1c8)]:return _0x16bd04(0x1e9);default:return _0x16bd04(0x285);}},_0x54c3e7=(_0x441b4a,_0xe13e0f)=>{const _0x1d5da3=_0x2e66e8;if(_0xe13e0f===_0x545a65[_0x1d5da3(0x19c)])return _0x1d5da3(0x284);switch(_0x441b4a){case _0x7b3927[_0x1d5da3(0x1e3)]:return'univer-bg-green-500';case _0x7b3927[_0x1d5da3(0x27e)]:case _0x7b3927[_0x1d5da3(0x236)]:return'univer-bg-blue-500';case _0x7b3927[_0x1d5da3(0x1c8)]:return _0x1d5da3(0x284);default:return'univer-bg-gray-500';}},_0x2b8040=_0x30605c=>{const _0x5c6bdd=_0x2e66e8;switch(_0x30605c){case _0x7b3927[_0x5c6bdd(0x1e3)]:return _0x375efb['t'](_0x5c6bdd(0x2ca));case _0x7b3927[_0x5c6bdd(0x27e)]:return _0x375efb['t'](_0x5c6bdd(0x286));case _0x7b3927[_0x5c6bdd(0x1c8)]:return _0x375efb['t'](_0x5c6bdd(0x216));case _0x7b3927[_0x5c6bdd(0x236)]:return _0x375efb['t'](_0x5c6bdd(0x1b0));default:return _0x375efb['t'](_0x5c6bdd(0x23a));}},_0x32634f=_0x2c8052=>{const _0x1e5506=_0x2e66e8;switch(_0x2c8052){case _0x545a65['UNAUTHORIZED']:return _0x375efb['t'](_0x1e5506(0x25b));case _0x545a65['SESSION_ID_OCCUPIED']:return _0x375efb['t'](_0x1e5506(0x21a));case _0x545a65[_0x1e5506(0x18c)]:return _0x375efb['t'](_0x1e5506(0x296));case _0x545a65[_0x1e5506(0x29d)]:return _0x375efb['t'](_0x1e5506(0x299));default:return'';}},_0xb87ac6=_0x5dca21(()=>{const _0x1b4cd5={..._0x446ce9,'apiKey':_0x2cd8c3['trim'](),'enableAuth':_0x410fcb};_0x1daf8e(_0x1b4cd5);},[_0x446ce9,_0x2cd8c3,_0x410fcb,_0x1daf8e]),_0x409478=_0x2cd8c3['trim']()[_0x2e66e8(0x287)]>0x0;return _0x5f529d('div',{'className':_0x2e66e8(0x290),'children':[_0x44f7f0('div',{'className':_0x2e66e8(0x1e5),'children':_0x5f529d('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x239),'children':_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x1e4),'children':'⚙'})}),_0x44f7f0('div',{'children':_0x44f7f0('p',{'className':_0x2e66e8(0x1dc),'children':_0x375efb['t'](_0x2e66e8(0x291))})})]})}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1ba),'children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x3d3441('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x5d1986(_0x435e61,_0x399fe3)),'children':_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x3d3441(_0x2e66e8(0x252),_0x54c3e7(_0x435e61,_0x399fe3))}),_0x44f7f0('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0x2b8040(_0x435e61)})]})}),_0x399fe3!==_0x545a65['NONE']&&(_0x435e61===_0x7b3927[_0x2e66e8(0x1c8)]||_0x399fe3===_0x545a65[_0x2e66e8(0x19c)])&&_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2a5),'children':_0x5f529d('div',{'className':_0x2e66e8(0x23c),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x25d),'children':'⚠️'}),_0x44f7f0('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x32634f(_0x399fe3)})]})})]}),_0x44f7f0('div',{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1cb),'children':[_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x220),'children':[_0x5f529d('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x44f7f0(_0x2e66e8(0x20e),{'children':'🔑'}),'\x20',_0x375efb['t'](_0x2e66e8(0x27d)),_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x1c1),'children':'*'}),_0x190e85&&_0x44f7f0('a',{'className':_0x2e66e8(0x1bb),'title':_0x375efb['t'](_0x2e66e8(0x19d)),'role':_0x2e66e8(0x231),'onClick':()=>_0x5f067f(!0x0),'children':_0x44f7f0(ve,{})})]}),_0x44f7f0(_0x7e027f,{'type':'text','placeholder':_0x375efb['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x2cd8c3,'disabled':_0x5a46a8,'autoComplete':_0x2e66e8(0x1e7),'onChange':_0x65c98f}),_0x44f7f0('p',{'className':_0x2e66e8(0x1fc),'children':_0x375efb['t']('mcpConfig.apiKeyHint')})]}),_0x190e85&&_0x17db14&&_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2a8),'children':[_0x44f7f0('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x2e66e8(0x231),'onClick':()=>_0x5f067f(!0x1),'children':_0x44f7f0(ue,{'className':'univer-size-4'})}),_0x5f529d('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x29e),'children':'🚀'})}),_0x5f529d('div',{'className':'univer-flex-1','children':[_0x44f7f0('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x375efb['t'](_0x2e66e8(0x19d))}),_0x44f7f0('p',{'className':_0x2e66e8(0x1e6),'children':_0x375efb['t']('mcpConfig.apiApplyInfo.description')}),_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x20b),'children':_0x5e638d&&_0x5f529d('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':_0x296a47,'target':'_blank','rel':_0x2e66e8(0x18f),'children':[_0x44f7f0('span',{'children':'🤖'}),_0x375efb['t'](_0x2e66e8(0x26c)),_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x233),'children':'↗'})]})}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x22b),'children':['✨','\x20',_0x375efb['t'](_0x2e66e8(0x2b6))]})]})]})]}),_0x455a03[_0x2e66e8(0x265)]&&_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1ed),'children':[_0x5f529d('h4',{'className':_0x2e66e8(0x2ab),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'children':'🔗'}),'\x20',_0x375efb['t'](_0x2e66e8(0x1be))]}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2c7),'children':[_0x5f529d('div',{'className':_0x2e66e8(0x2bd),'children':[_0x44f7f0('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x375efb['t'](_0x2e66e8(0x1a3))}),_0x5f529d(_0x2e66e8(0x22a),{'className':'univer-space-y-2','children':[_0x44f7f0('div',{'className':_0x2e66e8(0x1c4),'children':_0x375efb['t'](_0x2e66e8(0x22f))}),_0x5f529d(_0x2e66e8(0x22a),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x5f529d('div',{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x2a0),'children':'1'}),_0x375efb['t'](_0x2e66e8(0x1ea))]}),_0x5f529d('div',{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x2a0),'children':'2'}),_0x375efb['t'](_0x2e66e8(0x201))]}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x2a0),'children':'3'}),_0x375efb['t'](_0x2e66e8(0x2ba))]})]})]})]}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x220),'children':[_0x44f7f0('div',{'className':_0x2e66e8(0x1c4),'children':_0x2e66e8(0x28f)}),_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1f9),'children':_0x44f7f0(_0x2e66e8(0x2d5),{'className':_0x2e66e8(0x276),'children':JSON[_0x2e66e8(0x227)]({'mcpServers':{'univer':{'url':_0x2e66e8(0x29a)+(_0x3e46c6||_0x2e66e8(0x1f3)),'type':'http','headers':{'Authorization':_0x2e66e8(0x250)+(_0x2cd8c3||_0x2e66e8(0x1c7))}}}},null,0x2)})})]}),_0x5f529d('div',{'className':_0x2e66e8(0x2bd),'children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1c4),'children':_0x375efb['t'](_0x2e66e8(0x25c))}),_0x5f529d(_0x2e66e8(0x22a),{'className':'univer-space-y-2','children':[_0x5f529d(_0x2e66e8(0x22a),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x44f7f0('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x206),'children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2b9),'children':'univer_session_id:'}),_0x44f7f0('div',{'className':_0x2e66e8(0x1fc),'children':_0x375efb['t'](_0x2e66e8(0x1eb))})]})]}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x26a),'children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1c3)}),_0x5f529d('div',{'className':_0x2e66e8(0x206),'children':[_0x44f7f0('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2e66e8(0x256)}),_0x44f7f0('div',{'className':_0x2e66e8(0x1fc),'children':_0x375efb['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x44f7f0(_0x2ffbf6,{'onClick':_0xb87ac6,'disabled':!_0x409478||_0x5a46a8,'className':_0x2e66e8(0x2b5),'children':_0x5a46a8?_0x5f529d(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'children':'⟲'}),_0x375efb['t']('mcpConfig.saving')]}):_0x5f529d(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(le,{}),_0x375efb['t'](_0x2e66e8(0x190))]})}),_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x29f),'children':_0x5f529d('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x44f7f0('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x5f529d(_0x2e66e8(0x22a),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x44f7f0('div',{'className':_0x2e66e8(0x1ae),'children':_0x2e66e8(0x274)}),_0x5f529d(_0x2e66e8(0x22a),{'children':['•',_0x375efb['t'](_0x2e66e8(0x283))]}),_0x5f529d(_0x2e66e8(0x22a),{'children':['•',_0x375efb['t'](_0x2e66e8(0x19a))]})]})]})})]})})]});}const y=_0x5ec4ee(0x2c0),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x5ec4ee(0x255)],tn=(_0x4caf41,_0x5234be,_0x543923,_0x1b930b)=>{const _0x128f5c=_0x5ec4ee;for(var _0x4edd93=_0x1b930b>0x1?void 0x0:_0x1b930b?rn(_0x5234be,_0x543923):_0x5234be,_0x39103c=_0x4caf41[_0x128f5c(0x287)]-0x1,_0x4cc15c;_0x39103c>=0x0;_0x39103c--)(_0x4cc15c=_0x4caf41[_0x39103c])&&(_0x4edd93=_0x4cc15c(_0x4edd93)||_0x4edd93);return _0x4edd93;},d=(_0xb3da1a,_0x3ea6cf)=>(_0x781eb9,_0x1ed0a2)=>_0x3ea6cf(_0x781eb9,_0x1ed0a2,_0xb3da1a);const U=_0x5ec4ee(0x27a),L=_0x5ec4ee(0x1b9);function _0x2e68(_0x26084f,_0x5a9f75){_0x26084f=_0x26084f-0x18c;const _0x2bf6a2=_0x2bf6();let _0x2e683e=_0x2bf6a2[_0x26084f];return _0x2e683e;}let I=class extends _0x101057{constructor(_0x5f5401,_0x1e7c40,_0x2f023d,_0x40e6e8,_0x463f71,_0x3ad553,_0x4cb963,_0x1fb02b,_0x16107d,_0x5f00b3){const _0x26323b=_0x5ec4ee;super(),x(this,_0x26323b(0x200),new _0x267383(!0x1)),x(this,'_mcpCoreConfig$',new _0x267383({})),x(this,_0x26323b(0x1ec),new _0x267383({})),x(this,_0x26323b(0x232),new _0x267383('')),x(this,_0x26323b(0x27f),async _0x2974d0=>{const _0x3dd688=_0x26323b;var _0x83c2e1,_0xb5f67c;this[_0x3dd688(0x200)][_0x3dd688(0x1e0)](!0x0);try{const _0x518ff3=await this[_0x3dd688(0x24e)](_0x2974d0);if(!_0x518ff3[_0x3dd688(0x1c9)]){this[_0x3dd688(0x2a6)][_0x3dd688(0x2be)]({'type':_0x4d7fe7[_0x3dd688(0x282)],'content':_0x518ff3['errorMessage']||this[_0x3dd688(0x270)]['t'](_0x3dd688(0x2a7))});return;}_0x2974d0['apiKey']?await this['_localStorageService'][_0x3dd688(0x2c4)](U,_0x2974d0['apiKey']['trim']()):await this['_localStorageService']['removeItem'](U),this[_0x3dd688(0x232)][_0x3dd688(0x1e0)](((_0x83c2e1=_0x2974d0[_0x3dd688(0x234)])==null?void 0x0:_0x83c2e1[_0x3dd688(0x1fd)]())||''),this[_0x3dd688(0x1c5)][_0x3dd688(0x1f6)]({'Authorization':_0x3dd688(0x250)+((_0xb5f67c=_0x2974d0[_0x3dd688(0x234)])==null?void 0x0:_0xb5f67c[_0x3dd688(0x1fd)]())}),this['_messageService'][_0x3dd688(0x2be)]({'type':_0x4d7fe7['Success'],'content':this[_0x3dd688(0x270)]['t'](_0x3dd688(0x262))}),setTimeout(()=>{const _0x19af68=_0x3dd688;this['_dialogService'][_0x19af68(0x213)](L);},0x320);}catch(_0x2bb5cf){this['_logService'][_0x3dd688(0x235)](_0x3dd688(0x1c2),_0x2bb5cf),this['_messageService'][_0x3dd688(0x2be)]({'type':_0x4d7fe7[_0x3dd688(0x282)],'content':this['_localeService']['t'](_0x3dd688(0x1d0))});}finally{this[_0x3dd688(0x200)][_0x3dd688(0x1e0)](!0x1);}}),(this[_0x26323b(0x223)]=_0x5f5401,this['_uiPartsService']=_0x1e7c40,this['_configService']=_0x2f023d,this[_0x26323b(0x229)]=_0x40e6e8,this[_0x26323b(0x211)]=_0x463f71,this['_messageService']=_0x3ad553,this[_0x26323b(0x253)]=_0x4cb963,this['_localeService']=_0x1fb02b,this[_0x26323b(0x1db)]=_0x16107d,this[_0x26323b(0x1c5)]=_0x5f00b3,this[_0x26323b(0x21d)](),this[_0x26323b(0x1c6)](),this[_0x26323b(0x24d)]());}[_0x5ec4ee(0x1da)](){const _0x3deea1=_0x5ec4ee,_0x2d76a5=this[_0x3deea1(0x199)]['getConfig'](y);_0x2d76a5!=null&&_0x2d76a5[_0x3deea1(0x265)]&&this['_dialogService'][_0x3deea1(0x2d6)]({'id':L,'title':{'title':this['_localeService']['t'](_0x3deea1(0x23f))},'children':{'label':_0x3deea1(0x26d)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x387ccf=_0x3deea1;this[_0x387ccf(0x211)]['close'](L);}});}[_0x5ec4ee(0x1d6)](){const _0x72cde6=_0x5ec4ee;return this[_0x72cde6(0x26e)][_0x72cde6(0x1a0)];}[_0x5ec4ee(0x24d)](){const _0x332ce3=_0x5ec4ee;this[_0x332ce3(0x1b8)](this[_0x332ce3(0x253)][_0x332ce3(0x2d4)](_0x332ce3(0x26d),this[_0x332ce3(0x269)]()));}['_createConfigPanelComponent'](){const _0x2ccd26=_0x5ec4ee;return _0x25d47b(()=>{const _0x44a8b3=_0x2e68;var _0x356fca,_0x3cabed,_0x58b47f;return _0x44f7f0(nn,{'config':this[_0x44a8b3(0x1ec)][_0x44a8b3(0x1a0)],'mcpCoreConfig':this[_0x44a8b3(0x26e)]['value'],'currentApiKey$':this[_0x44a8b3(0x232)],'onSave':this['_handleConfigSave'],'loading':this[_0x44a8b3(0x200)][_0x44a8b3(0x1a0)],'connectionStatus$':(_0x356fca=this['_mcpConnectionController'])==null?void 0x0:_0x356fca[_0x44a8b3(0x1ce)],'connectionError$':(_0x3cabed=this[_0x44a8b3(0x1c5)])==null?void 0x0:_0x3cabed[_0x44a8b3(0x25f)],'currentSessionId$':(_0x58b47f=this[_0x44a8b3(0x1c5)])==null?void 0x0:_0x58b47f[_0x44a8b3(0x1a7)]});},this[_0x2ccd26(0x223)]);}['_initConfigSync'](){const _0x55e7fa=_0x5ec4ee;this['disposeWithMe'](this[_0x55e7fa(0x199)][_0x55e7fa(0x18d)](_0x37bfd7)[_0x55e7fa(0x1ff)](_0x47a4a4=>{this['_mcpCoreConfig$']['next'](_0x47a4a4||{});}));const _0x249523=this['_configService']['getConfig'](_0x37bfd7);this[_0x55e7fa(0x26e)][_0x55e7fa(0x1e0)](_0x249523||{}),this[_0x55e7fa(0x1b8)](this[_0x55e7fa(0x199)][_0x55e7fa(0x18d)](y)['subscribe'](_0x2c231b=>{const _0x771b7e=_0x55e7fa;this[_0x771b7e(0x1ec)][_0x771b7e(0x1e0)](_0x2c231b||{});}));const _0x34c71f=this[_0x55e7fa(0x199)][_0x55e7fa(0x191)](y);this[_0x55e7fa(0x1ec)][_0x55e7fa(0x1e0)](_0x34c71f||{});}async[_0x5ec4ee(0x1c6)](){const _0x26542e=_0x5ec4ee,_0x44d307=this[_0x26542e(0x199)][_0x26542e(0x191)](y);if(!(_0x44d307!=null&&_0x44d307[_0x26542e(0x265)]))return;const _0x4f995f=await this[_0x26542e(0x229)][_0x26542e(0x289)](U);_0x4f995f&&(this[_0x26542e(0x1c5)][_0x26542e(0x1f6)]({'Authorization':_0x26542e(0x250)+_0x4f995f}),this[_0x26542e(0x232)][_0x26542e(0x1e0)](_0x4f995f));}async[_0x5ec4ee(0x24e)](_0x44f599){const _0x45be62=_0x5ec4ee;if(!_0x44f599[_0x45be62(0x234)]||_0x44f599[_0x45be62(0x234)][_0x45be62(0x1fd)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x45be62(0x270)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x44f599[_0x45be62(0x234)]['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x45be62(0x270)]['t'](_0x45be62(0x1d8))};try{const _0x242447=await this[_0x45be62(0x223)]['get'](_0x4ee547)[_0x45be62(0x263)](_0x44f599[_0x45be62(0x234)][_0x45be62(0x1fd)]());return _0x242447[_0x45be62(0x1c9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x242447[_0x45be62(0x235)]||this[_0x45be62(0x270)]['t'](_0x45be62(0x1ab))};}catch(_0xb58be2){return console[_0x45be62(0x25e)](_0x45be62(0x1ad),_0xb58be2),{'isValid':!0x0};}}};I=tn([d(0x0,_0xf0d1df(_0x212aa2)),d(0x1,_0x99b350),d(0x2,_0x1784e7),d(0x3,_0x1d36ed),d(0x4,_0x382679),d(0x5,_0x50b4de),d(0x6,_0xf0d1df(_0x3626a3)),d(0x7,_0xf0d1df(_0x4eb6bc)),d(0x8,_0x47214e),d(0x9,_0xf0d1df(_0x4ee547))],I);const V={'id':_0x5ec4ee(0x207),'type':_0x39da2a[_0x5ec4ee(0x1cf)],'handler':async(_0x5cc238,_0x514c9c)=>(_0x5cc238[_0x5ec4ee(0x1ee)](I)['showConfigPanel'](),!0x0)};function pe(_0x4dbe16,_0x105098){const _0x3883b3=_0x5ec4ee;switch(_0x4dbe16){case _0x7b3927[_0x3883b3(0x293)]:return'mcpStatus.disconnected';case _0x7b3927['CONNECTING']:return _0x3883b3(0x221);case _0x7b3927[_0x3883b3(0x1e3)]:return'mcpStatus.connected';case _0x7b3927[_0x3883b3(0x1c8)]:switch(_0x105098){case _0x545a65[_0x3883b3(0x19c)]:return _0x3883b3(0x202);case _0x545a65[_0x3883b3(0x2c9)]:return _0x3883b3(0x24a);case _0x545a65[_0x3883b3(0x18c)]:return _0x3883b3(0x247);case _0x545a65[_0x3883b3(0x29d)]:return _0x3883b3(0x226);default:return _0x3883b3(0x2a1);}case _0x7b3927['RETRYING']:return'mcpStatus.retrying';default:return _0x3883b3(0x1d4);}}function on(_0x4c6aa8,_0x42fcb9,_0x41ca1b,_0x164805=!0x0){const _0x159880=_0x5ec4ee,_0x47c882=pe(_0x4c6aa8,_0x42fcb9),_0x456dae=_0x41ca1b['t'](_0x47c882);return _0x164805?_0x4c6aa8===_0x7b3927['DISCONNECTED']&&_0x42fcb9===_0x545a65['UNAUTHORIZED']?_0x456dae+_0x159880(0x243)+_0x41ca1b['t'](_0x159880(0x267)):_0x4c6aa8===_0x7b3927[_0x159880(0x1e3)]?''+_0x456dae:_0x4c6aa8===_0x7b3927[_0x159880(0x293)]||_0x4c6aa8===_0x7b3927[_0x159880(0x1c8)]?_0x456dae+_0x159880(0x243)+_0x41ca1b['t'](_0x159880(0x2d2)):_0x456dae:_0x456dae;}function sn(_0x2dab45){const _0x2cb2fa=_0x5ec4ee;switch(_0x2dab45){case _0x7b3927[_0x2cb2fa(0x1e3)]:return'univer-text-green-500';case _0x7b3927[_0x2cb2fa(0x27e)]:case _0x7b3927[_0x2cb2fa(0x236)]:return'univer-text-yellow-500';case _0x7b3927[_0x2cb2fa(0x1c8)]:case _0x7b3927[_0x2cb2fa(0x293)]:return'univer-text-red-500';default:return _0x2cb2fa(0x214);}}function cn(_0x10ce45){const _0x157042=_0x5ec4ee,{status$:_0x143272,error$:_0x24c82b,onConfigure:_0x523c6b,showClickable:_0x45e44d=!0x0}=_0x10ce45,_0x5284f7=_0x247ff5(_0x143272,_0x7b3927[_0x157042(0x293)]),_0x58f5b0=_0x247ff5(_0x24c82b,_0x545a65['NONE']),_0x1da3e9=_0x25f537(_0x4eb6bc),_0x23cf9a=_0x5284f7===_0x7b3927[_0x157042(0x1e3)];_0x5284f7===_0x7b3927[_0x157042(0x27e)]||_0x7b3927[_0x157042(0x236)];const _0x3ef2be=_0x1da3e9['t'](pe(_0x5284f7,_0x58f5b0)),_0x2f2c29=on(_0x5284f7,_0x58f5b0,_0x1da3e9,_0x45e44d),_0x2f92d2=sn(_0x5284f7),_0xbbf7de=_0x23cf9a?_0x44f7f0(ge,{}):_0x44f7f0(de,{}),_0x5f30c7=_0x5dca21(()=>{_0x45e44d&&_0x523c6b&&_0x523c6b();},[_0x45e44d,_0x523c6b]);function _0x4a08fa(){const _0x111e4f=_0x157042;return _0x5f529d(_0x111e4f(0x22a),{'className':_0x3d3441(_0x111e4f(0x1d7),_0x45e44d&&_0x523c6b&&'\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':_0x111e4f(0x231),'onClick':_0x45e44d&&_0x523c6b?_0x5f30c7:void 0x0,'children':[_0x44f7f0(_0x111e4f(0x22a),{'className':_0x3d3441(_0x111e4f(0x2a3),_0x2f92d2),'children':_0xbbf7de}),_0x44f7f0(_0x111e4f(0x22a),{'className':_0x111e4f(0x2b3),'children':_0x3ef2be})]});}return _0x44f7f0(_0x541d3e,{'title':_0x2f2c29,'placement':_0x157042(0x259),'children':_0x4a08fa()});}var an=Object[_0x5ec4ee(0x255)],ln=(_0x1d4870,_0x273a51,_0x5d6d14,_0xdac83e)=>{const _0x552968=_0x5ec4ee;for(var _0x14197b=_0xdac83e>0x1?void 0x0:_0xdac83e?an(_0x273a51,_0x5d6d14):_0x273a51,_0x33c7cf=_0x1d4870[_0x552968(0x287)]-0x1,_0xbf0388;_0x33c7cf>=0x0;_0x33c7cf--)(_0xbf0388=_0x1d4870[_0x33c7cf])&&(_0x14197b=_0xbf0388(_0x14197b)||_0x14197b);return _0x14197b;},M=(_0x3b911e,_0x41398a)=>(_0x531bc6,_0x327333)=>_0x41398a(_0x531bc6,_0x327333,_0x3b911e);let O=class extends _0x101057{constructor(_0x3fdf58,_0x491df9,_0x4389a8,_0x194d82){const _0x40e39c=_0x5ec4ee;super(),this[_0x40e39c(0x223)]=_0x3fdf58,this[_0x40e39c(0x1fa)]=_0x491df9,this[_0x40e39c(0x279)]=_0x4389a8,this[_0x40e39c(0x199)]=_0x194d82,this[_0x40e39c(0x1d9)](),this[_0x40e39c(0x1f0)]();}['_initAutoConnect'](){const _0x23c950=_0x5ec4ee,_0x6372db=this['_configService'][_0x23c950(0x191)](y);_0x6372db!=null&&_0x6372db['showDeveloperTools']&&(this['_connectionController'][_0x23c950(0x273)]=!0x1);}[_0x5ec4ee(0x1f0)](){const _0x3e460a=_0x5ec4ee,_0x3219ca=this['_configService'][_0x3e460a(0x191)](y);(_0x3219ca==null?void 0x0:_0x3219ca[_0x3e460a(0x20d)])!==!0x1&&this[_0x3e460a(0x1b8)](this['_uiPartsService']['registerComponent'](_0x33e4e4[_0x3e460a(0x1ca)],()=>{const _0x4ee7ca=_0x3e460a;var _0x5baf51;return _0x25d47b(un({'status$':this[_0x4ee7ca(0x1fa)]['connectionStatus$'],'error$':this[_0x4ee7ca(0x1fa)][_0x4ee7ca(0x25f)],'onConfigure':()=>this[_0x4ee7ca(0x1bf)](),'showClickable':(_0x5baf51=_0x3219ca==null?void 0x0:_0x3219ca[_0x4ee7ca(0x265)])!=null?_0x5baf51:!0x1}),this[_0x4ee7ca(0x223)]);}));}['_handleConfigure'](){const _0x32edbb=_0x5ec4ee;this[_0x32edbb(0x223)][_0x32edbb(0x1ee)](I)[_0x32edbb(0x1da)]();}};O=ln([M(0x0,_0xf0d1df(_0x212aa2)),M(0x1,_0xf0d1df(_0x4ee547)),M(0x2,_0x99b350),M(0x3,_0x1784e7)],O);function un(_0x54960c){const {status$:_0x2c87e5,error$:_0x524cca,onConfigure:_0x25a6f7,showClickable:_0x427207}=_0x54960c;return function(){return _0x44f7f0(cn,{'status$':_0x2c87e5,'error$':_0x524cca,'onConfigure':_0x25a6f7,'showClickable':_0x427207});};}function vn(_0x417a4d){const _0x2f774b=_0x5ec4ee;return{'id':V['id'],'type':_0x2c0545[_0x2f774b(0x19e)],'icon':_0x2f774b(0x280),'title':_0x2f774b(0x23f),'tooltip':_0x2f774b(0x23f)};}const dn={[_0x3d8145['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x291751,_0x341885,_0x58d80c,_0x41437b)=>{const _0x478ee3=_0x5ec4ee;for(var _0x198cc0=_0x41437b>0x1?void 0x0:_0x41437b?gn(_0x341885,_0x58d80c):_0x341885,_0x12512c=_0x291751[_0x478ee3(0x287)]-0x1,_0x5ecd05;_0x12512c>=0x0;_0x12512c--)(_0x5ecd05=_0x291751[_0x12512c])&&(_0x198cc0=_0x5ecd05(_0x198cc0)||_0x198cc0);return _0x198cc0;},re=(_0x3b7baf,_0x1b5634)=>(_0x31ce6e,_0x5c6581)=>_0x1b5634(_0x31ce6e,_0x5c6581,_0x3b7baf);let D=class extends _0x101057{constructor(_0x4d8b9e,_0x1ab51f){const _0x57e5ca=_0x5ec4ee;super(),this[_0x57e5ca(0x1df)]=_0x4d8b9e,this['_menuManagerService']=_0x1ab51f,this[_0x57e5ca(0x1a8)](),this['_initializeMenus']();}[_0x5ec4ee(0x1a8)](){const _0x42de1c=_0x5ec4ee;[V][_0x42de1c(0x1fe)](_0x3ef3a5=>{const _0x242770=_0x42de1c;this[_0x242770(0x1b8)](this[_0x242770(0x1df)][_0x242770(0x20c)](_0x3ef3a5));});}[_0x5ec4ee(0x198)](){const _0x34b2e3=_0x5ec4ee;this[_0x34b2e3(0x230)][_0x34b2e3(0x281)](dn);}};D=pn([re(0x0,_0x28695c),re(0x1,_0x3ab4bb)],D);const Mn={'mcpStatus':{'disconnected':_0x5ec4ee(0x277),'connecting':_0x5ec4ee(0x22d),'connected':_0x5ec4ee(0x204),'failed':_0x5ec4ee(0x258),'retrying':_0x5ec4ee(0x2af),'unknown':_0x5ec4ee(0x28d),'unauthorized':_0x5ec4ee(0x209),'sessionOccupied':_0x5ec4ee(0x215),'networkError':_0x5ec4ee(0x27b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5ec4ee(0x196),'clickToConfigure':_0x5ec4ee(0x1a1)},'mcpConfig':{'title':_0x5ec4ee(0x28f),'description':_0x5ec4ee(0x19f),'apiKey':_0x5ec4ee(0x1af),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5ec4ee(0x22e),'enableAuth':_0x5ec4ee(0x28e),'enableAuthHint':_0x5ec4ee(0x261),'connectionInfo':_0x5ec4ee(0x1e1),'mcpClientConfig':_0x5ec4ee(0x1e1),'configInstructions':_0x5ec4ee(0x23d),'configStepTitle':_0x5ec4ee(0x2b4),'configStep1':_0x5ec4ee(0x1cc),'configStep2':_0x5ec4ee(0x264),'configStep3':_0x5ec4ee(0x244),'sessionId':_0x5ec4ee(0x228),'sessionIdDescription':_0x5ec4ee(0x1b1),'authorizationDescription':_0x5ec4ee(0x1c0),'configParameters':_0x5ec4ee(0x1de),'maxRetries':_0x5ec4ee(0x218),'save':_0x5ec4ee(0x1bc),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5ec4ee(0x1f4),'configSaved':_0x5ec4ee(0x22c),'configError':_0x5ec4ee(0x2b0),'apiApplyInfo':{'title':_0x5ec4ee(0x2ae),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5ec4ee(0x205),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5ec4ee(0x266)},'connectionStatus':{'disconnected':_0x5ec4ee(0x2bb),'connecting':'Connecting...','connected':_0x5ec4ee(0x2aa),'failed':_0x5ec4ee(0x2cc),'retrying':_0x5ec4ee(0x29c)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5ec4ee(0x192),'networkError':_0x5ec4ee(0x1f8),'maxRetriesExceeded':_0x5ec4ee(0x210)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x5ec4ee(0x278),'retrying':_0x5ec4ee(0x1fb),'unknown':_0x5ec4ee(0x2bc),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x5ec4ee(0x2ad),'networkError':_0x5ec4ee(0x195),'maxRetriesExceeded':_0x5ec4ee(0x1b6),'clickToConnect':_0x5ec4ee(0x1e2),'clickToConfigure':_0x5ec4ee(0x292)},'mcpConfig':{'title':_0x5ec4ee(0x251),'description':_0x5ec4ee(0x1a2),'apiKey':_0x5ec4ee(0x2cb),'apiKeyPlaceholder':_0x5ec4ee(0x2cd),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x5ec4ee(0x1f5),'enableAuthHint':_0x5ec4ee(0x237),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x5ec4ee(0x2bf),'configInstructions':_0x5ec4ee(0x295),'configStepTitle':_0x5ec4ee(0x2a2),'configStep1':_0x5ec4ee(0x21e),'configStep2':_0x5ec4ee(0x1b3),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x5ec4ee(0x2d1),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5ec4ee(0x203),'configParameters':_0x5ec4ee(0x242),'maxRetries':'最大重试次数','save':_0x5ec4ee(0x24f),'saving':_0x5ec4ee(0x20f),'note1':_0x5ec4ee(0x27c),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x5ec4ee(0x23e),'configError':_0x5ec4ee(0x1a6),'apiApplyInfo':{'title':_0x5ec4ee(0x275),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x5ec4ee(0x1b5),'getStarted':_0x5ec4ee(0x28a)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x5ec4ee(0x217)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':'已连接','failed':_0x5ec4ee(0x212),'retrying':_0x5ec4ee(0x298)},'connectionError':{'unauthorized':_0x5ec4ee(0x29b),'sessionOccupied':_0x5ec4ee(0x2c8),'networkError':_0x5ec4ee(0x1ef),'maxRetriesExceeded':_0x5ec4ee(0x257)}}};function _0x2bf6(){const _0x59628c=['_createConfigPanelComponent','univer-flex\x20univer-items-start\x20univer-gap-3','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','mcpConfig.apiApplyInfo.univerAiLabel','MCPConfigPanel','_mcpCoreConfig$','evenodd','_localeService','1592543oAclKp','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','enableAutoConnect','Configuration\x20Notes:','什么是\x20API\x20密钥?','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','MCP\x20Disconnected','MCP\x20连接失败','_uiPartsService','mcp.apiKey','MCP:\x20Network\x20Error','配置更改将立即生效','mcpConfig.apiKey','CONNECTING','_handleConfigSave','MenuIcon','mergeMenu','Error','mcpConfig.note1','univer-bg-red-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.connectionStatus.connecting','length','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','getItem','几秒钟内获取您的\x20API\x20密钥','defs','on-line-icon_clip0_910_349','MCP\x20Unknown\x20Status','Enable\x20Authentication','MCP\x20Configuration','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.description','点击配置\x20MCP','DISCONNECTED','81MDNXdg','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpConfig.connectionError.networkError','assign','重连中...','mcpConfig.connectionError.maxRetriesExceeded','https://mcp.univer.ai/mcp/?univer_session_id=','权限验证失败,请检查您的\x20API\x20密钥','Retrying...','MAX_RETRIES_EXCEEDED','univer-text-blue-600','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcpStatus.failed','配置步骤:','univer-mr-2\x20univer-flex\x20univer-text-xl','none','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_messageService','mcpConfig.validation.invalidConfig','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','white','Connected','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','OffLineIcon','MCP:\x20会话\x20ID\x20已被占用','What\x20is\x20API\x20Key?','MCP\x20Retrying...','Failed\x20to\x20save\x20configuration','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','toString','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Configuration\x20Steps:','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','mcpConfig.apiApplyInfo.getStarted','3154378KxBDen','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.configStep3','Disconnected','MCP\x20状态未知','univer-space-y-3','show','MCP\x20客户端配置','mcp-ui.config','url(#$1','currentColor','svg','setItem','path','3gcfzsg','univer-space-y-4','会话\x20ID\x20已被占用,请稍后再试','SESSION_ID_OCCUPIED','mcpConfig.connectionStatus.connected','API\x20密钥','Connection\x20Failed','请输入您的\x20API\x20密钥','pluginName','univer-flex\x20univer-items-center\x20univer-gap-2','replace','会话ID','mcpStatus.clickToConnect','https://console.univer.plus','register','pre','open','NETWORK_ERROR','subscribeConfigValue$','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','noopener\x20noreferrer','mcpConfig.save','getConfig','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','CheckMarkIcon','xlink:href','MCP:\x20网络错误','Click\x20to\x20connect\x20MCP','children','_initializeMenus','_configService','mcpConfig.note2','HelpIcon','UNAUTHORIZED','mcpConfig.apiApplyInfo.title','BUTTON','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','value','Click\x20to\x20configure\x20MCP','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.configInstructions','random','off-line-icon_clip0_910_343','配置保存失败','sessionId$','_initializeCommands','idSuffix','attrs','mcpConfig.validation.invalidApiKey','fill','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-font-medium','API\x20Key','mcpConfig.connectionStatus.retrying','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpServerUrl','将配置添加到您的\x20MCP\x20客户端设置文件中','includes','Univer\x20AI\x20控制台','MCP:\x20超出最大重试次数','481330JzEADH','disposeWithMe','mcp-config-dialog','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','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','Save\x20Configuration','42iKBbfM','mcpConfig.connectionInfo','_handleConfigure','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-red-500','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_mcpConnectionController','_loadStoredApiKey','<API_KEY>','FAILED','isValid','HEADER_MENU','univer-space-y-5','Copy\x20the\x20JSON\x20configuration\x20below','has','connectionStatus$','COMMAND','mcpConfig.configError','help-icon','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer.ai','mcpStatus.unknown','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','getCurrentConfig','univer-flex\x20univer-items-center','mcpConfig.validation.apiKeyTooShort','_initAutoConnect','showConfigPanel','_logService','univer-text-sm\x20univer-text-gray-500','setConfig','Configuration\x20Parameters:','_commandService','next','MCP\x20Client\x20Configuration','点击连接\x20MCP','CONNECTED','univer-text-white','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','off','on-line-icon','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.configStep1','mcpConfig.sessionIdDescription','_config$','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','get','网络连接错误,请检查您的网络连接','_initStatusComponent','off-line-icon','_config','<SESSION_ID>','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','启用身份验证','__setCustomHeaders','0\x200\x2016\x2016','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_connectionController','MCP\x20重连中...','univer-text-xs\x20univer-text-gray-500','trim','forEach','subscribe','_loading$','mcpConfig.configStep2','mcpStatus.unauthorized','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-min-w-0\x20univer-flex-1','mcp-ui.command.openConfigPanel','728748UXcEMb','MCP:\x20Unauthorized','5107930DCyDtW','univer-flex\x20univer-flex-wrap\x20univer-gap-2','registerCommand','showStatus','span','保存中...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_dialogService','连接失败','close','univer-text-gray-500','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.connectionStatus.failed','API\x20密钥无效,请检查密钥是否正确','Max\x20Retries','tag','mcpConfig.connectionError.sessionOccupied','OnLineIcon','MCP_UI_PLUGIN','_initConfigSync','复制以下\x20JSON\x20配置','round','univer-space-y-2','mcpStatus.connecting','displayName','_injector','string','colorChannel1','mcpStatus.maxRetriesExceeded','stringify','Session\x20ID','_localStorageService','div','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.configStepTitle','_menuManagerService','button','_apiKey$','univer-text-gray-400','apiKey','error','RETRYING','启用身份验证以获得安全连接','627414meRaaF','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionStatus.disconnected','onStarting','univer-flex\x20univer-items-start\x20univer-gap-2','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','配置保存成功','mcpConfig.title','use','univer.plus','配置参数:','\x20-\x20','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','add','UniverIcon','mcpStatus.networkError','map','618320whlGWc','mcpStatus.sessionOccupied','1em','M0\x200H16V16H0z','_registerComponent','_validateConfig','保存配置','Bearer\x20','MCP\x20配置','univer-size-2\x20univer-rounded-full','_componentManager','mask','getOwnPropertyDescriptor','Authorization:','超出最大重试次数,请稍后再试','MCP\x20Connection\x20Failed','bottom','0\x200\x2017\x2016','mcpConfig.connectionError.unauthorized','mcpConfig.configParameters','univer-shrink-0\x20univer-text-red-500','warn','connectionError$','clipPath','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.configSaved','validateApiKey','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','showDeveloperTools','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpStatus.clickToConfigure','http://www.w3.org/2000/svg'];_0x2bf6=function(){return _0x59628c;};return _0x2bf6();}var fn=Object['defineProperty'],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x1dd5d5,_0x529adb,_0x450dd4)=>_0x529adb in _0x1dd5d5?fn(_0x1dd5d5,_0x529adb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x450dd4}):_0x1dd5d5[_0x529adb]=_0x450dd4,mn=(_0x73e4c9,_0xd5871e,_0x4a8552,_0x3ffa49)=>{for(var _0x261e58=_0x3ffa49>0x1?void 0x0:_0x3ffa49?hn(_0xd5871e,_0x4a8552):_0xd5871e,_0x2a4096=_0x73e4c9['length']-0x1,_0x1ad64f;_0x2a4096>=0x0;_0x2a4096--)(_0x1ad64f=_0x73e4c9[_0x2a4096])&&(_0x261e58=_0x1ad64f(_0x261e58)||_0x261e58);return _0x261e58;},P=(_0x29a16a,_0x460a05)=>(_0x338a83,_0x22760c)=>_0x460a05(_0x338a83,_0x22760c,_0x29a16a),_n=(_0x12a9d7,_0x2abe50,_0x26a1a7)=>Cn(_0x12a9d7,_0x2abe50+'',_0x26a1a7);let j=class extends _0x5071e1{constructor(_0x59a054=ie,_0x27e529,_0x4a8b42,_0x47dc90,_0x2b1868,_0x5959ee){const _0x269255=_0x5ec4ee;super(),this['_config']=_0x59a054,this[_0x269255(0x223)]=_0x27e529,this['_configService']=_0x4a8b42,this[_0x269255(0x279)]=_0x47dc90,this[_0x269255(0x229)]=_0x2b1868,this[_0x269255(0x270)]=_0x5959ee;const {..._0x30074d}=_0x4e4b64({},ie,this[_0x269255(0x1f2)]);this[_0x269255(0x199)][_0x269255(0x1dd)](y,_0x30074d);}async[_0x5ec4ee(0x23b)](){const _0x501806=_0x5ec4ee,_0x396200=[[O],[I],[D]];this[_0x501806(0x223)][_0x501806(0x1cd)](_0x16030e)||_0x396200['push']([_0x16030e,{'useClass':_0x595390}]),_0x396200[_0x501806(0x1fe)](_0x41d235=>this[_0x501806(0x223)][_0x501806(0x245)](_0x41d235)),this[_0x501806(0x223)][_0x501806(0x1ee)](O),this[_0x501806(0x223)][_0x501806(0x1ee)](I),this['_injector'][_0x501806(0x1ee)](D);}};_n(j,_0x5ec4ee(0x2ce),_0x5ec4ee(0x21c)),j=mn([_0xa8ea9b(_0x56711f),P(0x1,_0xf0d1df(_0x212aa2)),P(0x2,_0x1784e7),P(0x3,_0x99b350),P(0x4,_0x1d36ed),P(0x5,_0xf0d1df(_0x4eb6bc))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x310adb=_0x12d1;function _0x12d1(_0x3c98a1,_0x10b96c){_0x3c98a1=_0x3c98a1-0x87;const _0x3ea0b6=_0x3ea0();let _0x12d114=_0x3ea0b6[_0x3c98a1];return _0x12d114;}(function(_0x3f4e11,_0x407865){const _0x210395=_0x12d1,_0x31b980=_0x3f4e11();while(!![]){try{const _0x1316c7=-parseInt(_0x210395(0xa9))/0x1+-parseInt(_0x210395(0xa4))/0x2+parseInt(_0x210395(0x8f))/0x3+parseInt(_0x210395(0x8b))/0x4+parseInt(_0x210395(0x91))/0x5+parseInt(_0x210395(0x95))/0x6*(-parseInt(_0x210395(0x96))/0x7)+-parseInt(_0x210395(0xb0))/0x8*(parseInt(_0x210395(0x97))/0x9);if(_0x1316c7===_0x407865)break;else _0x31b980['push'](_0x31b980['shift']());}catch(_0x331c05){_0x31b980['push'](_0x31b980['shift']());}}}(_0x3ea0,0x1eba7));const e={'mcpStatus':{'disconnected':_0x310adb(0x98),'connecting':_0x310adb(0x94),'connected':'MCP\x20Connected','failed':_0x310adb(0xaf),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x310adb(0xb5),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x310adb(0xac),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x310adb(0x9b)},'mcpConfig':{'title':_0x310adb(0x89),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x310adb(0xa1),'apiKeyPlaceholder':_0x310adb(0xb1),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x310adb(0x9e),'enableAuthHint':_0x310adb(0xad),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x310adb(0x9c),'configInstructions':_0x310adb(0x92),'configStepTitle':_0x310adb(0x9a),'configStep1':_0x310adb(0xb2),'configStep2':_0x310adb(0xab),'configStep3':_0x310adb(0xa7),'sessionId':_0x310adb(0x88),'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':_0x310adb(0x8c),'maxRetries':_0x310adb(0xa5),'save':_0x310adb(0xa6),'saving':_0x310adb(0x90),'note1':_0x310adb(0xa0),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x310adb(0xb3),'description':_0x310adb(0xb4),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x310adb(0xa3)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x310adb(0x8d),'invalidConfig':_0x310adb(0x9f),'invalidApiKey':_0x310adb(0x9d)},'connectionStatus':{'disconnected':_0x310adb(0x8a),'connecting':_0x310adb(0xae),'connected':_0x310adb(0x8e),'failed':_0x310adb(0xa8),'retrying':_0x310adb(0xa2)},'connectionError':{'unauthorized':_0x310adb(0x87),'sessionOccupied':_0x310adb(0x93),'networkError':_0x310adb(0x99),'maxRetriesExceeded':_0x310adb(0xaa)}}},n=e;function _0x3ea0(){const _0x45e71a=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','14531UJFFYI','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20authentication\x20for\x20secure\x20connections','Connecting...','MCP\x20Connection\x20Failed','7136PYVQUQ','Enter\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','What\x20is\x20API\x20Key?','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:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session\x20ID','MCP\x20Configuration','Disconnected','670024JObZlU','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','503790bmwRcD','Saving...','187460LxrEmL','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','1380awwdfN','1043YBjFsG','234BLvuVZ','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','Click\x20to\x20configure\x20MCP','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','350144XbbHmR','Max\x20Retries','Save\x20Configuration'];_0x3ea0=function(){return _0x45e71a;};return _0x3ea0();}export{n as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x280c(){const _0x11591a=['Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','6WvCgWl','What\x20is\x20API\x20Key?','MCP\x20Disconnected','MCP\x20Client\x20Configuration','2852612ZxSHIW','Connection\x20Failed','3585258DHfNIA','API\x20key\x20is\x20required','3539584maNMzj','Invalid\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','982350mapoXj','Session\x20ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','597380sasgqo','API\x20Key','MCP\x20Connected','Univer\x20AI\x20Console','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:\x20Unauthorized','MCP\x20Retrying...','Disconnected','Saving...','MCP:\x20Session\x20ID\x20Occupied','1106165wMzIjQ','Save\x20Configuration','7374640AEWKFA','Configuration\x20Steps:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Unknown\x20Status'];_0x280c=function(){return _0x11591a;};return _0x280c();}const _0xea8f6b=_0x4cff;(function(_0x6768a9,_0x12f9e8){const _0x2ba1a8=_0x4cff,_0xc5b3e3=_0x6768a9();while(!![]){try{const _0x15f22f=-parseInt(_0x2ba1a8(0xe2))/0x1+parseInt(_0x2ba1a8(0xde))/0x2*(parseInt(_0x2ba1a8(0xd0))/0x3)+-parseInt(_0x2ba1a8(0xd4))/0x4+-parseInt(_0x2ba1a8(0xc1))/0x5+parseInt(_0x2ba1a8(0xd6))/0x6+parseInt(_0x2ba1a8(0xc3))/0x7+-parseInt(_0x2ba1a8(0xd8))/0x8;if(_0x15f22f===_0x12f9e8)break;else _0xc5b3e3['push'](_0xc5b3e3['shift']());}catch(_0x2c2f56){_0xc5b3e3['push'](_0xc5b3e3['shift']());}}}(_0x280c,0xa0eff));function _0x4cff(_0x3b5f01,_0x162725){_0x3b5f01=_0x3b5f01-0xbb;const _0x280c0e=_0x280c();let _0x4cff2a=_0x280c0e[_0x3b5f01];return _0x4cff2a;}const e={'mcpStatus':{'disconnected':_0xea8f6b(0xd2),'connecting':_0xea8f6b(0xdc),'connected':_0xea8f6b(0xe4),'failed':'MCP\x20Connection\x20Failed','retrying':_0xea8f6b(0xbd),'unknown':_0xea8f6b(0xc6),'unauthorized':_0xea8f6b(0xbc),'sessionOccupied':_0xea8f6b(0xc0),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xea8f6b(0xcc),'clickToConnect':_0xea8f6b(0xcf),'clickToConfigure':_0xea8f6b(0xc7)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xea8f6b(0xe3),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xea8f6b(0xc8),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xea8f6b(0xce),'connectionInfo':_0xea8f6b(0xd3),'mcpClientConfig':_0xea8f6b(0xd3),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xea8f6b(0xc4),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xea8f6b(0xe0),'sessionId':_0xea8f6b(0xdf),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xea8f6b(0xe1),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0xea8f6b(0xc2),'saving':_0xea8f6b(0xbf),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0xea8f6b(0xcd),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0xea8f6b(0xd1),'description':_0xea8f6b(0xbb),'univerAiLabel':_0xea8f6b(0xe5),'getStarted':_0xea8f6b(0xda)},'validation':{'apiKeyRequired':_0xea8f6b(0xd7),'apiKeyTooShort':_0xea8f6b(0xdb),'invalidConfig':_0xea8f6b(0xd9),'invalidApiKey':_0xea8f6b(0xc5)},'connectionStatus':{'disconnected':_0xea8f6b(0xbe),'connecting':_0xea8f6b(0xcb),'connected':'Connected','failed':_0xea8f6b(0xd5),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0xea8f6b(0xca),'sessionOccupied':_0xea8f6b(0xdd),'networkError':_0xea8f6b(0xc9),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x55e6(_0x215d73,_0x3cdd71){_0x215d73=_0x215d73-0x1bc;const _0x449d2d=_0x449d();let _0x55e616=_0x449d2d[_0x215d73];return _0x55e616;}const _0x26f71b=_0x55e6;function _0x449d(){const _0x139436=['API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','6132819kDjMUe','Connecting...','Invalid\x20configuration','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','138KVhURP','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','2490676YscuoI','Session\x20ID','Configuration\x20Steps:','What\x20is\x20API\x20Key?','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Parameters:','MCP\x20Retrying...','API\x20Key','154065QfYFak','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','3456723aPrmuq','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','5270emshLF','Click\x20to\x20connect\x20MCP','Retrying...','Univer\x20AI\x20Console','6pFieXp','Enter\x20your\x20API\x20key','MCP:\x20Network\x20Error','Saving...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','37782PBgIcr','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Session\x20ID\x20Occupied','3052224CSkXMB','Failed\x20to\x20save\x20configuration','Save\x20Configuration','MCP\x20Connection\x20Failed','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.','183378jssrSn'];_0x449d=function(){return _0x139436;};return _0x449d();}(function(_0xc538a2,_0x3928ed){const _0xd9e31c=_0x55e6,_0x1ee1c8=_0xc538a2();while(!![]){try{const _0x53da1a=-parseInt(_0xd9e31c(0x1bf))/0x1*(parseInt(_0xd9e31c(0x1ce))/0x2)+-parseInt(_0xd9e31c(0x1ec))/0x3+parseInt(_0xd9e31c(0x1de))/0x4+-parseInt(_0xd9e31c(0x1e7))/0x5*(-parseInt(_0xd9e31c(0x1d8))/0x6)+-parseInt(_0xd9e31c(0x1d1))/0x7+-parseInt(_0xd9e31c(0x1c8))/0x8+-parseInt(_0xd9e31c(0x1c5))/0x9*(-parseInt(_0xd9e31c(0x1ee))/0xa);if(_0x53da1a===_0x3928ed)break;else _0x1ee1c8['push'](_0x1ee1c8['shift']());}catch(_0x3390ff){_0x1ee1c8['push'](_0x1ee1c8['shift']());}}}(_0x449d,0x8e80e));const e={'mcpStatus':{'disconnected':_0x26f71b(0x1ea),'connecting':'MCP\x20Connecting...','connected':_0x26f71b(0x1d4),'failed':_0x26f71b(0x1cb),'retrying':_0x26f71b(0x1e5),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x26f71b(0x1e8),'sessionOccupied':_0x26f71b(0x1c7),'networkError':_0x26f71b(0x1c1),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x26f71b(0x1bc),'clickToConfigure':_0x26f71b(0x1e2)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x26f71b(0x1c3),'apiKey':_0x26f71b(0x1e6),'apiKeyPlaceholder':_0x26f71b(0x1c0),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x26f71b(0x1d6),'enableAuthHint':_0x26f71b(0x1c6),'connectionInfo':_0x26f71b(0x1e9),'mcpClientConfig':_0x26f71b(0x1e9),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x26f71b(0x1e0),'configStep1':_0x26f71b(0x1d5),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x26f71b(0x1d0),'sessionId':_0x26f71b(0x1df),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x26f71b(0x1d9),'configParameters':_0x26f71b(0x1e4),'maxRetries':_0x26f71b(0x1db),'save':_0x26f71b(0x1ca),'saving':_0x26f71b(0x1c2),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x26f71b(0x1cc),'configError':_0x26f71b(0x1c9),'apiApplyInfo':{'title':_0x26f71b(0x1e1),'description':_0x26f71b(0x1cd),'univerAiLabel':_0x26f71b(0x1be),'getStarted':_0x26f71b(0x1e3)},'validation':{'apiKeyRequired':_0x26f71b(0x1cf),'apiKeyTooShort':_0x26f71b(0x1dc),'invalidConfig':_0x26f71b(0x1d3),'invalidApiKey':_0x26f71b(0x1da)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x26f71b(0x1d2),'connected':_0x26f71b(0x1dd),'failed':'Connection\x20Failed','retrying':_0x26f71b(0x1bd)},'connectionError':{'unauthorized':_0x26f71b(0x1d7),'sessionOccupied':_0x26f71b(0x1ed),'networkError':_0x26f71b(0x1eb),'maxRetriesExceeded':_0x26f71b(0x1c4)}}},n=e;export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xdd62(){const _0x3665f3=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20Authentication','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','6276753fezcRR','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','5148FFTgFL','MCP\x20Configuration','2723696CzgHvg','Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Save\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','2420QERpry','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','374zJXCHw','3917VmmgPn','MCP\x20Retrying...','38489UnTGiX','API\x20key\x20is\x20required','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','21qjdjLx','Univer\x20AI\x20Console','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','MCP\x20Connection\x20Failed','2395Tunnzt','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','Max\x20Retries','Configuration\x20Parameters:','Configuration\x20Steps:','Invalid\x20configuration','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20ID','7772481PmcEKh','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','205124zbUhRm','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0xdd62=function(){return _0x3665f3;};return _0xdd62();}const _0x590fd9=_0x2d46;(function(_0x168ba2,_0x7864cf){const _0x2d5491=_0x2d46,_0xed90f2=_0x168ba2();while(!![]){try{const _0x7421a1=-parseInt(_0x2d5491(0x14f))/0x1*(parseInt(_0x2d5491(0x14e))/0x2)+-parseInt(_0x2d5491(0x156))/0x3*(parseInt(_0x2d5491(0x16a))/0x4)+-parseInt(_0x2d5491(0x15b))/0x5*(-parseInt(_0x2d5491(0x174))/0x6)+parseInt(_0x2d5491(0x170))/0x7+parseInt(_0x2d5491(0x176))/0x8+parseInt(_0x2d5491(0x166))/0x9+-parseInt(_0x2d5491(0x17b))/0xa*(parseInt(_0x2d5491(0x151))/0xb);if(_0x7421a1===_0x7864cf)break;else _0xed90f2['push'](_0xed90f2['shift']());}catch(_0x229972){_0xed90f2['push'](_0xed90f2['shift']());}}}(_0xdd62,0x8c058));function _0x2d46(_0x2472c7,_0x467d61){_0x2472c7=_0x2472c7-0x14e;const _0xdd62c8=_0xdd62();let _0x2d4644=_0xdd62c8[_0x2472c7];return _0x2d4644;}const e={'mcpStatus':{'disconnected':_0x590fd9(0x159),'connecting':_0x590fd9(0x172),'connected':_0x590fd9(0x163),'failed':_0x590fd9(0x15a),'retrying':_0x590fd9(0x150),'unknown':_0x590fd9(0x16e),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x590fd9(0x175),'description':_0x590fd9(0x173),'apiKey':_0x590fd9(0x167),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x590fd9(0x16d),'enableAuthHint':_0x590fd9(0x17a),'connectionInfo':_0x590fd9(0x16f),'mcpClientConfig':_0x590fd9(0x16f),'configInstructions':_0x590fd9(0x153),'configStepTitle':_0x590fd9(0x161),'configStep1':_0x590fd9(0x164),'configStep2':_0x590fd9(0x178),'configStep3':_0x590fd9(0x17d),'sessionId':_0x590fd9(0x165),'sessionIdDescription':_0x590fd9(0x15d),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x590fd9(0x160),'maxRetries':_0x590fd9(0x15f),'save':_0x590fd9(0x179),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x590fd9(0x17c),'configSaved':_0x590fd9(0x169),'configError':_0x590fd9(0x171),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x590fd9(0x157),'getStarted':_0x590fd9(0x155)},'validation':{'apiKeyRequired':_0x590fd9(0x152),'apiKeyTooShort':_0x590fd9(0x168),'invalidConfig':_0x590fd9(0x162),'invalidApiKey':_0x590fd9(0x154)},'connectionStatus':{'disconnected':_0x590fd9(0x15e),'connecting':'Connecting...','connected':'Connected','failed':_0x590fd9(0x177),'retrying':_0x590fd9(0x15c)},'connectionError':{'unauthorized':_0x590fd9(0x16c),'sessionOccupied':_0x590fd9(0x158),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x590fd9(0x16b)}}},n=e;export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x57a3d1=_0x5301;(function(_0x447141,_0x2bb2c3){const _0x4b0afc=_0x5301,_0x3d3e94=_0x447141();while(!![]){try{const _0x4feca8=-parseInt(_0x4b0afc(0x1c7))/0x1*(parseInt(_0x4b0afc(0x1bc))/0x2)+parseInt(_0x4b0afc(0x1bd))/0x3+parseInt(_0x4b0afc(0x1bf))/0x4*(-parseInt(_0x4b0afc(0x1ba))/0x5)+parseInt(_0x4b0afc(0x1ce))/0x6*(-parseInt(_0x4b0afc(0x1c4))/0x7)+-parseInt(_0x4b0afc(0x1a5))/0x8+-parseInt(_0x4b0afc(0x1c8))/0x9*(parseInt(_0x4b0afc(0x1a7))/0xa)+parseInt(_0x4b0afc(0x1c2))/0xb;if(_0x4feca8===_0x2bb2c3)break;else _0x3d3e94['push'](_0x3d3e94['shift']());}catch(_0x2bea17){_0x3d3e94['push'](_0x3d3e94['shift']());}}}(_0x3a92,0xd0706));function _0x5301(_0x370a22,_0x49220a){_0x370a22=_0x370a22-0x19f;const _0x3a924c=_0x3a92();let _0x5301a0=_0x3a924c[_0x370a22];return _0x5301a0;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x57a3d1(0x1b0),'failed':_0x57a3d1(0x1b3),'retrying':_0x57a3d1(0x1c3),'unknown':_0x57a3d1(0x1b5),'unauthorized':_0x57a3d1(0x19f),'sessionOccupied':_0x57a3d1(0x1ad),'networkError':_0x57a3d1(0x1b6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x57a3d1(0x1c0),'clickToConfigure':_0x57a3d1(0x1c5)},'mcpConfig':{'title':_0x57a3d1(0x1c9),'description':_0x57a3d1(0x1a0),'apiKey':_0x57a3d1(0x1ae),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x57a3d1(0x1a6),'enableAuth':_0x57a3d1(0x1b2),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x57a3d1(0x1b1),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x57a3d1(0x1cc),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x57a3d1(0x1b4),'configStep3':_0x57a3d1(0x1aa),'sessionId':_0x57a3d1(0x1b8),'sessionIdDescription':_0x57a3d1(0x1af),'authorizationDescription':_0x57a3d1(0x1cd),'configParameters':_0x57a3d1(0x1a4),'maxRetries':'Max\x20Retries','save':_0x57a3d1(0x1a1),'saving':_0x57a3d1(0x1cf),'note1':_0x57a3d1(0x1ac),'note2':_0x57a3d1(0x1ab),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x57a3d1(0x1a3),'apiApplyInfo':{'title':_0x57a3d1(0x1ca),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x57a3d1(0x1c1),'getStarted':_0x57a3d1(0x1bb)},'validation':{'apiKeyRequired':_0x57a3d1(0x1a9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x57a3d1(0x1a2),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x57a3d1(0x1b7),'failed':_0x57a3d1(0x1cb),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x57a3d1(0x1be),'sessionOccupied':_0x57a3d1(0x1a8),'networkError':_0x57a3d1(0x1b9),'maxRetriesExceeded':_0x57a3d1(0x1c6)}}},n=e;function _0x3a92(){const _0x208ce5=['Get\x20your\x20API\x20key\x20in\x20seconds','366jqYLhv','4371234gwWjhD','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','296mgEzyI','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','40345877oyWAWb','MCP\x20Retrying...','105ZJAfeE','Click\x20to\x20configure\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1237JsICFR','9481968SQHKjE','MCP\x20Configuration','What\x20is\x20API\x20Key?','Connection\x20Failed','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','384108BVVmJo','Saving...','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','Invalid\x20configuration','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','6301808uZPwex','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','10dtMEMj','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Session\x20ID\x20Occupied','API\x20Key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connected','MCP\x20Client\x20Configuration','Enable\x20Authentication','MCP\x20Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Unknown\x20Status','MCP:\x20Network\x20Error','Connected','Session\x20ID','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','84000oeDoXl'];_0x3a92=function(){return _0x208ce5;};return _0x3a92();}export{n as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x44d9(){const _0x4b79a2=['11061323pZyJkj','1719744UfqHOw','MCP\x20接続中...','1209kjnVex','ネットワーク接続エラー。インターネット接続を確認してください','APIキーは10文字以上である必要があります','再試行中...','40134hZgSKr','APIキーは必須です','MCP:\x20認証されていません','APIキーを入力してください','設定が正常に保存されました','MCP:\x20セッションIDが使用中','MCP\x20不明な状態','10SPCSPB','340016mlnxwL','MCPクライアントの設定に次の設定を追加してください:','MCP:\x20ネットワークエラー','設定手順:','MCPクライアントを再起動して設定を適用','41703489xcUukU','MCPクライアント設定','数秒でAPIキーを取得','11633416qRzvcs','MCP:\x20最大再試行回数を超過','25VlprGB','MCP\x20未接続','MCPクライアントの設定ファイルに設定を追加','接続済み','セキュアな接続のために認証を有効にする','クリックしてMCPを設定','認証に失敗しました。APIキーを確認してください','未接続','MCP\x20接続失敗','無効な設定','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','APIキーはこのブラウザのローカルに保存されます','MCPを設定してAIでスプレッドシートを操作','セッションID','設定の保存に失敗しました','4192bQvxLt','APIキー','セッションIDが現在使用中です。後でもう一度お試しください','設定を保存','接続失敗','無効なAPIキーです。キーが正しいか確認してください','APIキーはローカルストレージに安全に保存されます'];_0x44d9=function(){return _0x4b79a2;};return _0x44d9();}const _0x1f97ea=_0x4445;(function(_0x1e80db,_0x27b617){const _0x56abc6=_0x4445,_0x45b103=_0x1e80db();while(!![]){try{const _0x37e07c=-parseInt(_0x56abc6(0x149))/0x1+-parseInt(_0x56abc6(0x162))/0x2*(parseInt(_0x56abc6(0x13d))/0x3)+parseInt(_0x56abc6(0x16a))/0x4+-parseInt(_0x56abc6(0x153))/0x5*(parseInt(_0x56abc6(0x141))/0x6)+-parseInt(_0x56abc6(0x169))/0x7+-parseInt(_0x56abc6(0x151))/0x8+-parseInt(_0x56abc6(0x14e))/0x9*(-parseInt(_0x56abc6(0x148))/0xa);if(_0x37e07c===_0x27b617)break;else _0x45b103['push'](_0x45b103['shift']());}catch(_0x5ab872){_0x45b103['push'](_0x45b103['shift']());}}}(_0x44d9,0xc6086));function _0x4445(_0xfdaa4d,_0x377615){_0xfdaa4d=_0xfdaa4d-0x13c;const _0x44d932=_0x44d9();let _0x444527=_0x44d932[_0xfdaa4d];return _0x444527;}const e={'mcpStatus':{'disconnected':_0x1f97ea(0x154),'connecting':_0x1f97ea(0x13c),'connected':'MCP\x20接続済み','failed':_0x1f97ea(0x15b),'retrying':'MCP\x20再試行中...','unknown':_0x1f97ea(0x147),'unauthorized':_0x1f97ea(0x143),'sessionOccupied':_0x1f97ea(0x146),'networkError':_0x1f97ea(0x14b),'maxRetriesExceeded':_0x1f97ea(0x152),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x1f97ea(0x158)},'mcpConfig':{'title':'MCP設定','description':_0x1f97ea(0x15f),'apiKey':_0x1f97ea(0x163),'apiKeyPlaceholder':_0x1f97ea(0x144),'apiKeyHint':_0x1f97ea(0x15e),'enableAuth':'認証を有効にする','enableAuthHint':_0x1f97ea(0x157),'connectionInfo':'MCPクライアント設定','mcpClientConfig':_0x1f97ea(0x14f),'configInstructions':_0x1f97ea(0x14a),'configStepTitle':_0x1f97ea(0x14c),'configStep1':'以下のJSON設定をコピー','configStep2':_0x1f97ea(0x155),'configStep3':_0x1f97ea(0x14d),'sessionId':_0x1f97ea(0x160),'sessionIdDescription':_0x1f97ea(0x15d),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':'設定パラメータ:','maxRetries':'最大再試行回数','save':_0x1f97ea(0x165),'saving':'保存中...','note1':'設定の変更は直ちに有効になります','note2':_0x1f97ea(0x168),'configSaved':_0x1f97ea(0x145),'configError':_0x1f97ea(0x161),'apiApplyInfo':{'title':'APIキーとは?','description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':'Univer\x20AIコンソール','getStarted':_0x1f97ea(0x150)},'validation':{'apiKeyRequired':_0x1f97ea(0x142),'apiKeyTooShort':_0x1f97ea(0x13f),'invalidConfig':_0x1f97ea(0x15c),'invalidApiKey':_0x1f97ea(0x167)},'connectionStatus':{'disconnected':_0x1f97ea(0x15a),'connecting':'接続中...','connected':_0x1f97ea(0x156),'failed':_0x1f97ea(0x166),'retrying':_0x1f97ea(0x140)},'connectionError':{'unauthorized':_0x1f97ea(0x159),'sessionOccupied':_0x1f97ea(0x164),'networkError':_0x1f97ea(0x13e),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};export{e as default};
|