@univerjs-pro/mcp-ui 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +537 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/mcp-config.command.d.ts +1 -1
- package/lib/types/controllers/menu.d.ts +2 -2
- package/lib/types/controllers/menu.schema.d.ts +1 -1
- package/lib/types/locale/ca-ES.d.ts +1 -1
- package/lib/types/locale/es-ES.d.ts +1 -1
- package/lib/types/locale/fa-IR.d.ts +1 -1
- package/lib/types/locale/fr-FR.d.ts +1 -1
- package/lib/types/locale/ja-JP.d.ts +1 -1
- package/lib/types/locale/ko-KR.d.ts +1 -1
- package/lib/types/locale/ru-RU.d.ts +1 -1
- package/lib/types/locale/sk-SK.d.ts +1 -1
- package/lib/types/locale/vi-VN.d.ts +1 -1
- package/lib/types/locale/zh-TW.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/views/components/mcp-config.d.ts +4 -3
- package/lib/types/views/components/mcp-status.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -11
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5e8e(_0x5d4723,_0x24a304){_0x5d4723=_0x5d4723-0x1cf;const _0x5ccafc=_0x5cca();let _0x5e8e0f=_0x5ccafc[_0x5d4723];return _0x5e8e0f;}(function(_0x49af98,_0x4633cf){const _0x3b4216=_0x5e8e,_0x2d9c68=_0x49af98();while(!![]){try{const _0x495f4b=parseInt(_0x3b4216(0x255))/0x1*(-parseInt(_0x3b4216(0x235))/0x2)+parseInt(_0x3b4216(0x305))/0x3+-parseInt(_0x3b4216(0x238))/0x4*(-parseInt(_0x3b4216(0x25a))/0x5)+-parseInt(_0x3b4216(0x2b9))/0x6*(parseInt(_0x3b4216(0x1d9))/0x7)+parseInt(_0x3b4216(0x1d3))/0x8*(-parseInt(_0x3b4216(0x28e))/0x9)+-parseInt(_0x3b4216(0x315))/0xa+parseInt(_0x3b4216(0x290))/0xb*(parseInt(_0x3b4216(0x28d))/0xc);if(_0x495f4b===_0x4633cf)break;else _0x2d9c68['push'](_0x2d9c68['shift']());}catch(_0x445507){_0x2d9c68['push'](_0x2d9c68['shift']());}}}(_0x5cca,0x7ef73),function(_0x57c66c,_0x5326a4){const _0x4b3c00=_0x5e8e;typeof exports=='object'&&typeof module<'u'?_0x5326a4(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0x4b3c00(0x304)&&define['amd']?define([_0x4b3c00(0x25b),_0x4b3c00(0x300),_0x4b3c00(0x1ee),_0x4b3c00(0x29c),_0x4b3c00(0x2b1),'@univerjs/ui',_0x4b3c00(0x319),'react',_0x4b3c00(0x24f)],_0x5326a4):(_0x57c66c=typeof globalThis<'u'?globalThis:_0x57c66c||self,_0x5326a4(_0x57c66c[_0x4b3c00(0x20e)]={},_0x57c66c['UniverCore'],_0x57c66c['React'],_0x57c66c['UniverProMcp'],_0x57c66c[_0x4b3c00(0x2e3)],_0x57c66c[_0x4b3c00(0x1d1)],_0x57c66c[_0x4b3c00(0x319)],_0x57c66c[_0x4b3c00(0x272)],_0x57c66c[_0x4b3c00(0x280)]));}(this,function(_0x320c8d,_0x2bc493,_0x48c1fe,_0x42323b,_0x1513e5,_0x5b6029,_0x4bfce7,_0x515fd1,_0x3c0e0e){'use strict';const _0x1f54c8=_0x5e8e;var _0x323624=Object['defineProperty'],_0x32170a=(_0x571312,_0x2d7d7b,_0x506d30)=>_0x2d7d7b in _0x571312?_0x323624(_0x571312,_0x2d7d7b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x506d30}):_0x571312[_0x2d7d7b]=_0x506d30,_0x5695e=(_0x25ac6e,_0x5fb661,_0x2b320d)=>_0x32170a(_0x25ac6e,typeof _0x5fb661!=_0x1f54c8(0x1f5)?_0x5fb661+'':_0x5fb661,_0x2b320d);function _0x193f5c({ref:_0x540875,..._0x26da33}){const _0x1c7fc3=_0x1f54c8,{icon:_0x1ba108,id:_0x2a9b15,className:_0x2b41fd,extend:_0x161245,..._0x3bc7fc}=_0x26da33,_0x1c8387=(_0x1c7fc3(0x310)+_0x2a9b15+'\x20'+(_0x2b41fd||''))[_0x1c7fc3(0x208)](),_0x1c95f2=_0x515fd1[_0x1c7fc3(0x31e)]('_'+_0x26ab8a());return _0x5012a1(_0x1ba108,''+_0x2a9b15,{'defIds':_0x1ba108[_0x1c7fc3(0x285)],'idSuffix':_0x1c95f2[_0x1c7fc3(0x2b8)]},{'ref':_0x540875,'className':_0x1c8387,..._0x3bc7fc},_0x161245);}function _0x5012a1(_0x125727,_0x5e3ea7,_0x3568fd,_0x57cdca,_0x1e9f6d){const _0x4c7493=_0x1f54c8;return _0x515fd1['createElement'](_0x125727[_0x4c7493(0x286)],{'key':_0x5e3ea7,..._0x445128(_0x125727,_0x3568fd,_0x1e9f6d),..._0x57cdca},(_0x29af1a(_0x125727,_0x3568fd)[_0x4c7493(0x2e5)]||[])[_0x4c7493(0x209)]((_0x3909f4,_0x4503c1)=>_0x5012a1(_0x3909f4,_0x5e3ea7+'-'+_0x125727['tag']+'-'+_0x4503c1,_0x3568fd,void 0x0,_0x1e9f6d)));}function _0x445128(_0x2ac22f,_0x53d0c6,_0x194683){const _0x5c6580=_0x1f54c8,_0x768ab6={..._0x2ac22f[_0x5c6580(0x2ea)]};_0x194683!=null&&_0x194683[_0x5c6580(0x2f9)]&&_0x768ab6['fill']==='colorChannel1'&&(_0x768ab6[_0x5c6580(0x292)]=_0x194683['colorChannel1']),_0x2ac22f['tag']===_0x5c6580(0x258)&&_0x768ab6['id']&&(_0x768ab6['id']=_0x768ab6['id']+_0x53d0c6[_0x5c6580(0x2a0)]),Object[_0x5c6580(0x2bb)](_0x768ab6)[_0x5c6580(0x31d)](([_0x133ca4,_0x5ef072])=>{const _0xd74d6c=_0x5c6580;_0x133ca4===_0xd74d6c(0x258)&&typeof _0x5ef072==_0xd74d6c(0x268)&&(_0x768ab6[_0x133ca4]=_0x5ef072[_0xd74d6c(0x1df)](/url\(#(.*)\)/,_0xd74d6c(0x356)+_0x53d0c6[_0xd74d6c(0x2a0)]+')'));});const {defIds:_0x161bfa}=_0x53d0c6;return!_0x161bfa||_0x161bfa['length']===0x0||(_0x2ac22f[_0x5c6580(0x286)]===_0x5c6580(0x32a)&&_0x768ab6[_0x5c6580(0x337)]&&(_0x768ab6[_0x5c6580(0x337)]=_0x768ab6[_0x5c6580(0x337)]+_0x53d0c6['idSuffix']),Object['entries'](_0x768ab6)[_0x5c6580(0x31d)](([_0x1809cd,_0x392ab9])=>{const _0x1dde6c=_0x5c6580;typeof _0x392ab9=='string'&&(_0x768ab6[_0x1809cd]=_0x392ab9[_0x1dde6c(0x1df)](/url\(#(.*)\)/,_0x1dde6c(0x356)+_0x53d0c6[_0x1dde6c(0x2a0)]+')'));})),_0x768ab6;}function _0x29af1a(_0x307e40,_0x113d3a){const _0x2ccea4=_0x1f54c8;var _0x492623;const {defIds:_0x5910f9}=_0x113d3a;return!_0x5910f9||_0x5910f9['length']===0x0?_0x307e40:_0x307e40[_0x2ccea4(0x286)]===_0x2ccea4(0x29f)&&((_0x492623=_0x307e40[_0x2ccea4(0x2e5)])!=null&&_0x492623[_0x2ccea4(0x1f3)])?{..._0x307e40,'children':_0x307e40['children'][_0x2ccea4(0x209)](_0x3d0f7d=>typeof _0x3d0f7d[_0x2ccea4(0x2ea)]['id']==_0x2ccea4(0x268)&&_0x5910f9&&_0x5910f9[_0x2ccea4(0x228)](_0x3d0f7d['attrs']['id'])?{..._0x3d0f7d,'attrs':{..._0x3d0f7d[_0x2ccea4(0x2ea)],'id':_0x3d0f7d['attrs']['id']+_0x113d3a[_0x2ccea4(0x2a0)]}}:_0x3d0f7d)}:_0x307e40;}function _0x26ab8a(){const _0x396e18=_0x1f54c8;return Math['random']()[_0x396e18(0x267)](0x24)[_0x396e18(0x23f)](0x2,0x8);}_0x193f5c[_0x1f54c8(0x2bd)]=_0x1f54c8(0x2d3);const _0x10a1ee={'tag':_0x1f54c8(0x2db),'attrs':{'xmlns':_0x1f54c8(0x2f8),'fill':_0x1f54c8(0x250),'viewBox':_0x1f54c8(0x20a),'width':_0x1f54c8(0x296),'height':_0x1f54c8(0x296)},'children':[{'tag':_0x1f54c8(0x2e2),'attrs':{'fill':'currentColor','d':_0x1f54c8(0x217),'fillRule':_0x1f54c8(0x334),'clipRule':_0x1f54c8(0x334)}}]},_0x25982b=_0x515fd1[_0x1f54c8(0x34d)](function(_0x5d8d67,_0x3b30fe){const _0x4599b7=_0x1f54c8;return _0x515fd1[_0x4599b7(0x293)](_0x193f5c,Object[_0x4599b7(0x215)]({},_0x5d8d67,{'id':'check-mark-icon','ref':_0x3b30fe,'icon':_0x10a1ee}));});_0x25982b[_0x1f54c8(0x2bd)]=_0x1f54c8(0x275);const _0x578bb7={'tag':_0x1f54c8(0x2db),'attrs':{'xmlns':_0x1f54c8(0x2f8),'fill':_0x1f54c8(0x250),'viewBox':_0x1f54c8(0x20a),'width':_0x1f54c8(0x296),'height':_0x1f54c8(0x296)},'children':[{'tag':_0x1f54c8(0x2e2),'attrs':{'fill':_0x1f54c8(0x34f),'d':_0x1f54c8(0x28c)}}]},_0x1e0077=_0x515fd1[_0x1f54c8(0x34d)](function(_0x432752,_0x126a42){const _0x2f9998=_0x1f54c8;return _0x515fd1[_0x2f9998(0x293)](_0x193f5c,Object['assign']({},_0x432752,{'id':_0x2f9998(0x29d),'ref':_0x126a42,'icon':_0x578bb7}));});_0x1e0077[_0x1f54c8(0x2bd)]=_0x1f54c8(0x357);const _0x2f5336={'tag':_0x1f54c8(0x2db),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1f54c8(0x250),'viewBox':'0\x200\x2016\x2016','width':_0x1f54c8(0x296),'height':_0x1f54c8(0x296)},'children':[{'tag':_0x1f54c8(0x2e2),'attrs':{'fill':_0x1f54c8(0x34f),'d':_0x1f54c8(0x225)}},{'tag':_0x1f54c8(0x2e2),'attrs':{'fill':_0x1f54c8(0x34f),'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':_0x1f54c8(0x2e2),'attrs':{'fill':_0x1f54c8(0x34f),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x1f54c8(0x334),'clipRule':'evenodd'}}]},_0x370096=_0x515fd1['forwardRef'](function(_0x263ed5,_0x2ce05e){const _0x5756fa=_0x1f54c8;return _0x515fd1[_0x5756fa(0x293)](_0x193f5c,Object[_0x5756fa(0x215)]({},_0x263ed5,{'id':_0x5756fa(0x2cc),'ref':_0x2ce05e,'icon':_0x2f5336}));});_0x370096[_0x1f54c8(0x2bd)]='HelpIcon';const _0x26951f={'tag':_0x1f54c8(0x2db),'attrs':{'xmlns':_0x1f54c8(0x2f8),'fill':_0x1f54c8(0x250),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x1f54c8(0x296)},'children':[{'tag':'g','attrs':{'clipPath':_0x1f54c8(0x21d)},'children':[{'tag':_0x1f54c8(0x2e2),'attrs':{'stroke':_0x1f54c8(0x34f),'d':_0x1f54c8(0x21c),'strokeLinecap':_0x1f54c8(0x33c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1f54c8(0x29f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x1f54c8(0x2e2),'attrs':{'fill':_0x1f54c8(0x254),'d':_0x1f54c8(0x26e)}}]}]}],'defIds':[_0x1f54c8(0x333)]},_0x2e03c6=_0x515fd1[_0x1f54c8(0x34d)](function(_0x2de1ba,_0x17cf50){const _0x382109=_0x1f54c8;return _0x515fd1[_0x382109(0x293)](_0x193f5c,Object[_0x382109(0x215)]({},_0x2de1ba,{'id':'off-line-icon','ref':_0x17cf50,'icon':_0x26951f}));});_0x2e03c6[_0x1f54c8(0x2bd)]=_0x1f54c8(0x264);const _0x47632b={'tag':_0x1f54c8(0x2db),'attrs':{'xmlns':_0x1f54c8(0x2f8),'fill':_0x1f54c8(0x250),'viewBox':_0x1f54c8(0x1d8),'width':_0x1f54c8(0x296),'height':_0x1f54c8(0x296)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x1f54c8(0x34f),'d':_0x1f54c8(0x2a2),'strokeLinecap':_0x1f54c8(0x33c),'strokeLinejoin':_0x1f54c8(0x33c),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1f54c8(0x2d6),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x1f54c8(0x2e2),'attrs':{'fill':_0x1f54c8(0x254),'d':_0x1f54c8(0x26e),'transform':_0x1f54c8(0x33f)}}]}]}],'defIds':[_0x1f54c8(0x277)]},_0x287fba=_0x515fd1[_0x1f54c8(0x34d)](function(_0x193a4f,_0x10ce16){const _0x2ae83b=_0x1f54c8;return _0x515fd1[_0x2ae83b(0x293)](_0x193f5c,Object[_0x2ae83b(0x215)]({},_0x193a4f,{'id':'on-line-icon','ref':_0x10ce16,'icon':_0x47632b}));});_0x287fba['displayName']=_0x1f54c8(0x294);function _0x2f9fcc(_0x286256){const _0x489173=_0x1f54c8;var _0x4522b6,_0x2d87fd;const {mcpCoreConfig:_0x14bf66,onSave:_0x51c005,loading:_0xc8acba=!0x1,config:_0x3f89ac,connectionStatus$:_0x2d19b4,connectionError$:_0xc0a878,currentApiKey$:_0x2708d6,currentSessionId$:_0x4335d3}=_0x286256,_0x4ec182=_0x5b6029[_0x489173(0x243)](_0x2bc493['LocaleService']),_0x479e42=_0x5b6029['useObservable'](_0x2d19b4,_0x42323b['MCPConnectionStatus'][_0x489173(0x341)]),_0xd5e1=_0x5b6029[_0x489173(0x345)](_0xc0a878,_0x42323b[_0x489173(0x2d2)]['NONE']),_0x578fe8=_0x5b6029['useObservable'](_0x4335d3,''),_0x398ac6=_0x5b6029[_0x489173(0x345)](_0x2708d6,''),[_0x48fcf2,_0x5ef959]=_0x515fd1[_0x489173(0x1dd)](_0x398ac6||''),_0x20676a=!0x0,_0x2f4a3b=_0x3f89ac['showDeveloperTools']&&_0x14bf66['mcpServerUrl']&&(_0x14bf66[_0x489173(0x239)][_0x489173(0x228)](_0x489173(0x1e2))||_0x14bf66[_0x489173(0x239)][_0x489173(0x228)]('univer.ai')),_0x5e7160=(_0x4522b6=_0x14bf66[_0x489173(0x239)])==null?void 0x0:_0x4522b6[_0x489173(0x228)]('univer.plus'),_0x20db0a=(_0x2d87fd=_0x14bf66['mcpServerUrl'])==null?void 0x0:_0x2d87fd[_0x489173(0x228)](_0x489173(0x253)),_0x3aa00c=_0x5e7160?'https://console.univer.plus':'https://console.univer.ai',_0x2320f8=_0x3f89ac['showDeveloperTools']&&(_0x5e7160||_0x20db0a),[_0x36ffc4,_0x2cdc6a]=_0x515fd1[_0x489173(0x1dd)](!_0x48fcf2[_0x489173(0x208)]()),_0x3e2fa3=(_0x4dd65b,_0xba4a12)=>{const _0x48a6ba=_0x489173;if(_0xba4a12===_0x42323b['MCPConnectionError'][_0x48a6ba(0x2b2)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x4dd65b){case _0x42323b['MCPConnectionStatus'][_0x48a6ba(0x2f7)]:return _0x48a6ba(0x2a1);case _0x42323b[_0x48a6ba(0x2eb)][_0x48a6ba(0x269)]:case _0x42323b['MCPConnectionStatus'][_0x48a6ba(0x201)]:return _0x48a6ba(0x266);case _0x42323b['MCPConnectionStatus']['FAILED']:return _0x48a6ba(0x212);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3a6356=(_0x544ca9,_0x1daef7)=>{const _0x245cd3=_0x489173;if(_0x1daef7===_0x42323b[_0x245cd3(0x2d2)][_0x245cd3(0x2b2)])return _0x245cd3(0x22c);switch(_0x544ca9){case _0x42323b[_0x245cd3(0x2eb)][_0x245cd3(0x2f7)]:return'univer-bg-green-500';case _0x42323b[_0x245cd3(0x2eb)][_0x245cd3(0x269)]:case _0x42323b['MCPConnectionStatus']['RETRYING']:return _0x245cd3(0x353);case _0x42323b[_0x245cd3(0x2eb)]['FAILED']:return _0x245cd3(0x22c);default:return _0x245cd3(0x2a5);}},_0x36a588=_0x3ff8ec=>{const _0x12d61c=_0x489173;switch(_0x3ff8ec){case _0x42323b[_0x12d61c(0x2eb)]['CONNECTED']:return _0x4ec182['t'](_0x12d61c(0x236));case _0x42323b[_0x12d61c(0x2eb)][_0x12d61c(0x269)]:return _0x4ec182['t'](_0x12d61c(0x2ed));case _0x42323b[_0x12d61c(0x2eb)]['FAILED']:return _0x4ec182['t'](_0x12d61c(0x1d2));case _0x42323b[_0x12d61c(0x2eb)][_0x12d61c(0x201)]:return _0x4ec182['t']('mcpConfig.connectionStatus.retrying');default:return _0x4ec182['t'](_0x12d61c(0x1d4));}},_0x3c99bc=_0x48f7e5=>{const _0xa15bfb=_0x489173;switch(_0x48f7e5){case _0x42323b[_0xa15bfb(0x2d2)][_0xa15bfb(0x2b2)]:return _0x4ec182['t'](_0xa15bfb(0x23b));case _0x42323b['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x4ec182['t'](_0xa15bfb(0x1e4));case _0x42323b[_0xa15bfb(0x2d2)][_0xa15bfb(0x271)]:return _0x4ec182['t'](_0xa15bfb(0x27a));case _0x42323b[_0xa15bfb(0x2d2)][_0xa15bfb(0x26b)]:return _0x4ec182['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x5268fe=_0x515fd1[_0x489173(0x2e1)](()=>{const _0x1be895=_0x489173,_0x2b5910={..._0x14bf66,'apiKey':_0x48fcf2[_0x1be895(0x208)](),'enableAuth':_0x20676a};_0x51c005(_0x2b5910);},[_0x14bf66,_0x48fcf2,_0x20676a,_0x51c005]),_0x3e6d15=_0x48fcf2[_0x489173(0x208)]()[_0x489173(0x1f3)]>0x0;return _0x48c1fe['jsxs'](_0x489173(0x324),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x48c1fe[_0x489173(0x2c7)]('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x48c1fe['jsxs'](_0x489173(0x324),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x48c1fe['jsx'](_0x489173(0x324),{'className':_0x489173(0x31b),'children':_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x348),{'className':_0x489173(0x265),'children':'⚙'})}),_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'children':_0x48c1fe[_0x489173(0x2c7)]('p',{'className':_0x489173(0x1f9),'children':_0x4ec182['t']('mcpConfig.description')})})]})}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x2a4),'children':[_0x48c1fe['jsx'](_0x489173(0x324),{'className':_0x1513e5['clsx'](_0x489173(0x20c),_0x3e2fa3(_0x479e42,_0xd5e1)),'children':_0x48c1fe[_0x489173(0x1eb)]('div',{'className':_0x489173(0x2d4),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':_0x1513e5[_0x489173(0x2a6)](_0x489173(0x223),_0x3a6356(_0x479e42,_0xd5e1))}),_0x48c1fe['jsx'](_0x489173(0x348),{'className':'univer-text-sm\x20univer-font-medium','children':_0x36a588(_0x479e42)})]})}),_0xd5e1!==_0x42323b['MCPConnectionError']['NONE']&&(_0x479e42===_0x42323b[_0x489173(0x2eb)][_0x489173(0x257)]||_0xd5e1===_0x42323b[_0x489173(0x2d2)][_0x489173(0x2b2)])&&_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':_0x489173(0x25c),'children':_0x48c1fe[_0x489173(0x1eb)]('div',{'className':_0x489173(0x318),'children':[_0x48c1fe['jsx']('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x48c1fe[_0x489173(0x2c7)]('p',{'className':_0x489173(0x2c6),'children':_0x3c99bc(_0xd5e1)})]})})]}),_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':'univer-space-y-5','children':[_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x1ec),'children':[_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x2f4),{'className':_0x489173(0x2d7),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x348),{'children':'🔑'}),'\x20',_0x4ec182['t'](_0x489173(0x2f0)),_0x48c1fe[_0x489173(0x2c7)]('span',{'className':_0x489173(0x247),'children':'*'}),_0x2f4a3b&&_0x48c1fe[_0x489173(0x2c7)]('a',{'className':_0x489173(0x1e9),'title':_0x4ec182['t'](_0x489173(0x259)),'role':_0x489173(0x21f),'onClick':()=>_0x2cdc6a(!0x0),'children':_0x48c1fe['jsx'](_0x370096,{})})]}),_0x48c1fe[_0x489173(0x2c7)](_0x1513e5[_0x489173(0x240)],{'type':_0x489173(0x1fa),'placeholder':_0x4ec182['t'](_0x489173(0x32f)),'value':_0x48fcf2,'disabled':_0xc8acba,'autoComplete':'off','onChange':_0x5ef959}),_0x48c1fe[_0x489173(0x2c7)]('p',{'className':_0x489173(0x26c),'children':_0x4ec182['t']('mcpConfig.apiKeyHint')})]}),_0x2f4a3b&&_0x36ffc4&&_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x309),'children':[_0x48c1fe[_0x489173(0x2c7)]('a',{'className':_0x489173(0x210),'role':'button','onClick':()=>_0x2cdc6a(!0x1),'children':_0x48c1fe[_0x489173(0x2c7)](_0x1e0077,{'className':_0x489173(0x1fe)})}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x246),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':_0x489173(0x1e5),'children':_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x348),{'className':_0x489173(0x2c8),'children':'🚀'})}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x2b5),'children':[_0x48c1fe[_0x489173(0x2c7)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4ec182['t'](_0x489173(0x259))}),_0x48c1fe[_0x489173(0x2c7)]('p',{'className':_0x489173(0x24e),'children':_0x4ec182['t']('mcpConfig.apiApplyInfo.description')}),_0x48c1fe[_0x489173(0x2c7)]('div',{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x2320f8&&_0x48c1fe[_0x489173(0x1eb)]('a',{'className':_0x489173(0x35a),'href':_0x3aa00c,'target':'_blank','rel':_0x489173(0x1ed),'children':[_0x48c1fe['jsx'](_0x489173(0x348),{'children':'🤖'}),_0x4ec182['t'](_0x489173(0x2e0)),_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x348),{'className':_0x489173(0x1f2),'children':'↗'})]})}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x335),'children':['✨','\x20',_0x4ec182['t'](_0x489173(0x2c5))]})]})]})]}),_0x3f89ac[_0x489173(0x20b)]&&_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x251),'children':[_0x48c1fe[_0x489173(0x1eb)]('h4',{'className':_0x489173(0x349),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x348),{'children':'🔗'}),'\x20',_0x4ec182['t']('mcpConfig.connectionInfo')]}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':'univer-space-y-4','children':[_0x48c1fe[_0x489173(0x1eb)]('div',{'className':_0x489173(0x24d),'children':[_0x48c1fe[_0x489173(0x2c7)]('p',{'className':_0x489173(0x21e),'children':_0x4ec182['t']('mcpConfig.configInstructions')}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x1ec),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':_0x489173(0x21a),'children':_0x4ec182['t'](_0x489173(0x1ff))}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x343),'children':[_0x48c1fe[_0x489173(0x1eb)]('div',{'className':_0x489173(0x2d4),'children':[_0x48c1fe['jsx'](_0x489173(0x348),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x4ec182['t']('mcpConfig.configStep1')]}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x2d4),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x348),{'className':_0x489173(0x340),'children':'2'}),_0x4ec182['t']('mcpConfig.configStep2')]}),_0x48c1fe['jsxs'](_0x489173(0x324),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x348),{'className':_0x489173(0x340),'children':'3'}),_0x4ec182['t'](_0x489173(0x26f))]})]})]})]}),_0x48c1fe[_0x489173(0x1eb)]('div',{'className':_0x489173(0x1ec),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x489173(0x230)}),_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x2c9),{'className':_0x489173(0x248),'children':JSON[_0x489173(0x344)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x578fe8||_0x489173(0x34a)),'type':_0x489173(0x200),'headers':{'Authorization':_0x489173(0x23c)+(_0x48fcf2||_0x489173(0x26d))}}}},null,0x2)})})]}),_0x48c1fe['jsxs']('div',{'className':_0x489173(0x24d),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':_0x489173(0x21a),'children':_0x4ec182['t'](_0x489173(0x2d8))}),_0x48c1fe['jsxs'](_0x489173(0x324),{'className':'univer-space-y-2','children':[_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x22a),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x30a),'children':[_0x48c1fe['jsx'](_0x489173(0x324),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x489173(0x2d9)}),_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':_0x489173(0x26c),'children':_0x4ec182['t']('mcpConfig.sessionIdDescription')})]})]}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':_0x489173(0x22a),'children':[_0x48c1fe['jsx'](_0x489173(0x324),{'className':_0x489173(0x281)}),_0x48c1fe[_0x489173(0x1eb)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':_0x489173(0x1e7),'children':_0x489173(0x2c0)}),_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':_0x489173(0x26c),'children':_0x4ec182['t'](_0x489173(0x342))})]})]})]})]})]})]}),_0x48c1fe['jsx'](_0x1513e5[_0x489173(0x214)],{'onClick':_0x5268fe,'disabled':!_0x3e6d15||_0xc8acba,'className':_0x489173(0x2e6),'children':_0xc8acba?_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x348),{'className':_0x489173(0x2d4),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x348),{'children':'⟲'}),_0x4ec182['t']('mcpConfig.saving')]}):_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x348),{'className':_0x489173(0x2d4),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x25982b,{}),_0x4ec182['t']('mcpConfig.save')]})}),_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':_0x489173(0x359),'children':_0x48c1fe[_0x489173(0x1eb)]('div',{'className':_0x489173(0x2fb),'children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x348),{'className':_0x489173(0x226),'children':'💡'}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x48c1fe[_0x489173(0x2c7)](_0x489173(0x324),{'className':_0x489173(0x302),'children':_0x489173(0x2ba)}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'children':['•',_0x4ec182['t'](_0x489173(0x2f2))]}),_0x48c1fe[_0x489173(0x1eb)](_0x489173(0x324),{'children':['•',_0x4ec182['t'](_0x489173(0x229))]})]})]})})]})})]});}const _0x5831ac=_0x1f54c8(0x1e3),_0x346370={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x4cba33=Object['getOwnPropertyDescriptor'],_0x9ffd7=(_0x5540d2,_0xbdd3e1,_0x48557b,_0x10c98a)=>{for(var _0x1e6532=_0x10c98a>0x1?void 0x0:_0x10c98a?_0x4cba33(_0xbdd3e1,_0x48557b):_0xbdd3e1,_0x30fc7b=_0x5540d2['length']-0x1,_0x5b247c;_0x30fc7b>=0x0;_0x30fc7b--)(_0x5b247c=_0x5540d2[_0x30fc7b])&&(_0x1e6532=_0x5b247c(_0x1e6532)||_0x1e6532);return _0x1e6532;},_0x4641d9=(_0x35312,_0x304ee6)=>(_0x43e042,_0x1d410a)=>_0x304ee6(_0x43e042,_0x1d410a,_0x35312);const _0xe3def6=_0x1f54c8(0x295),_0x49e622=_0x1f54c8(0x2dd);_0x320c8d['MCPConfigUIController']=class extends _0x2bc493[_0x1f54c8(0x354)]{constructor(_0x1bdcf1,_0x397161,_0x59eff0,_0x364422,_0x280ed2,_0x6a16ea,_0x24f93f,_0x395b31,_0x1f3d60,_0x271afa){const _0x9b661a=_0x1f54c8;super(),_0x5695e(this,_0x9b661a(0x22f),new _0x4bfce7[(_0x9b661a(0x303))](!0x1)),_0x5695e(this,'_mcpCoreConfig$',new _0x4bfce7[(_0x9b661a(0x303))]({})),_0x5695e(this,_0x9b661a(0x27e),new _0x4bfce7[(_0x9b661a(0x303))]({})),_0x5695e(this,'_apiKey$',new _0x4bfce7[(_0x9b661a(0x303))]('')),_0x5695e(this,_0x9b661a(0x237),async _0x1ff0e2=>{const _0x38a9dd=_0x9b661a;var _0x59b69c,_0x3f7cb6;this[_0x38a9dd(0x22f)][_0x38a9dd(0x289)](!0x0);try{const _0xcccd9d=await this['_validateConfig'](_0x1ff0e2);if(!_0xcccd9d['isValid']){this['_messageService'][_0x38a9dd(0x1d5)]({'type':_0x1513e5[_0x38a9dd(0x207)][_0x38a9dd(0x2aa)],'content':_0xcccd9d[_0x38a9dd(0x256)]||this[_0x38a9dd(0x2c1)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x1ff0e2[_0x38a9dd(0x288)]?await this[_0x38a9dd(0x31a)][_0x38a9dd(0x2ff)](_0xe3def6,_0x1ff0e2[_0x38a9dd(0x288)][_0x38a9dd(0x208)]()):await this[_0x38a9dd(0x31a)][_0x38a9dd(0x308)](_0xe3def6),this[_0x38a9dd(0x28b)]['next'](((_0x59b69c=_0x1ff0e2[_0x38a9dd(0x288)])==null?void 0x0:_0x59b69c[_0x38a9dd(0x208)]())||''),this[_0x38a9dd(0x2c2)][_0x38a9dd(0x28a)]({'Authorization':'Bearer\x20'+((_0x3f7cb6=_0x1ff0e2['apiKey'])==null?void 0x0:_0x3f7cb6['trim']())}),this[_0x38a9dd(0x336)][_0x38a9dd(0x1d5)]({'type':_0x1513e5['MessageType']['Success'],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x75005d=_0x38a9dd;this[_0x75005d(0x33b)]['close'](_0x49e622);},0x320);}catch(_0x50efe7){this[_0x38a9dd(0x2ad)][_0x38a9dd(0x25e)](_0x38a9dd(0x34b),_0x50efe7),this[_0x38a9dd(0x336)]['show']({'type':_0x1513e5[_0x38a9dd(0x207)][_0x38a9dd(0x2aa)],'content':this[_0x38a9dd(0x2c1)]['t'](_0x38a9dd(0x23d))});}finally{this[_0x38a9dd(0x22f)][_0x38a9dd(0x289)](!0x1);}}),(this[_0x9b661a(0x2fd)]=_0x1bdcf1,this[_0x9b661a(0x1dc)]=_0x397161,this[_0x9b661a(0x33e)]=_0x59eff0,this[_0x9b661a(0x31a)]=_0x364422,this[_0x9b661a(0x33b)]=_0x280ed2,this[_0x9b661a(0x336)]=_0x6a16ea,this[_0x9b661a(0x30f)]=_0x24f93f,this[_0x9b661a(0x2c1)]=_0x395b31,this['_logService']=_0x1f3d60,this[_0x9b661a(0x2c2)]=_0x271afa,this[_0x9b661a(0x27c)](),this[_0x9b661a(0x291)](),this[_0x9b661a(0x1da)]());}[_0x1f54c8(0x1e0)](){const _0x245d18=_0x1f54c8,_0x221bde=this[_0x245d18(0x33e)]['getConfig'](_0x5831ac);_0x221bde!=null&&_0x221bde[_0x245d18(0x20b)]&&this[_0x245d18(0x33b)]['open']({'id':_0x49e622,'title':{'title':this[_0x245d18(0x2c1)]['t'](_0x245d18(0x24a))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x175669=_0x245d18;this[_0x175669(0x33b)][_0x175669(0x339)](_0x49e622);}});}[_0x1f54c8(0x203)](){const _0x3a0c0a=_0x1f54c8;return this[_0x3a0c0a(0x1f4)][_0x3a0c0a(0x298)];}[_0x1f54c8(0x1da)](){const _0x4af5cf=_0x1f54c8;this[_0x4af5cf(0x1e1)](this[_0x4af5cf(0x30f)][_0x4af5cf(0x220)](_0x4af5cf(0x2cd),this[_0x4af5cf(0x297)]()));}[_0x1f54c8(0x297)](){return _0x5b6029['connectInjector'](()=>{const _0x3c4cf9=_0x5e8e;var _0x19a7b7,_0x50e303,_0x2967ab;return _0x48c1fe[_0x3c4cf9(0x2c7)](_0x2f9fcc,{'config':this[_0x3c4cf9(0x27e)][_0x3c4cf9(0x298)],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'currentApiKey$':this[_0x3c4cf9(0x28b)],'onSave':this[_0x3c4cf9(0x237)],'loading':this[_0x3c4cf9(0x22f)][_0x3c4cf9(0x298)],'connectionStatus$':(_0x19a7b7=this[_0x3c4cf9(0x2c2)])==null?void 0x0:_0x19a7b7['connectionStatus$'],'connectionError$':(_0x50e303=this[_0x3c4cf9(0x2c2)])==null?void 0x0:_0x50e303[_0x3c4cf9(0x1f8)],'currentSessionId$':(_0x2967ab=this[_0x3c4cf9(0x2c2)])==null?void 0x0:_0x2967ab[_0x3c4cf9(0x28f)]});},this['_injector']);}['_initConfigSync'](){const _0x4dfdf5=_0x1f54c8;this[_0x4dfdf5(0x1e1)](this['_configService'][_0x4dfdf5(0x279)](_0x42323b[_0x4dfdf5(0x27f)])[_0x4dfdf5(0x274)](_0x185891=>{const _0x28ac6c=_0x4dfdf5;this[_0x28ac6c(0x1f4)]['next'](_0x185891||{});}));const _0x37e3b6=this['_configService']['getConfig'](_0x42323b[_0x4dfdf5(0x27f)]);this['_mcpCoreConfig$'][_0x4dfdf5(0x289)](_0x37e3b6||{}),this[_0x4dfdf5(0x1e1)](this[_0x4dfdf5(0x33e)][_0x4dfdf5(0x279)](_0x5831ac)[_0x4dfdf5(0x274)](_0x222e4d=>{const _0x734c4d=_0x4dfdf5;this[_0x734c4d(0x27e)]['next'](_0x222e4d||{});}));const _0x5562a8=this[_0x4dfdf5(0x33e)][_0x4dfdf5(0x2ae)](_0x5831ac);this[_0x4dfdf5(0x27e)][_0x4dfdf5(0x289)](_0x5562a8||{});}async[_0x1f54c8(0x291)](){const _0x444852=_0x1f54c8,_0x18c3db=this[_0x444852(0x33e)][_0x444852(0x2ae)](_0x5831ac);if(!(_0x18c3db!=null&&_0x18c3db[_0x444852(0x20b)]))return;const _0x447def=await this[_0x444852(0x31a)][_0x444852(0x2df)](_0xe3def6);_0x447def&&(this[_0x444852(0x2c2)][_0x444852(0x28a)]({'Authorization':'Bearer\x20'+_0x447def}),this[_0x444852(0x28b)]['next'](_0x447def));}async[_0x1f54c8(0x320)](_0xbabe81){const _0x455591=_0x1f54c8;if(!_0xbabe81[_0x455591(0x288)]||_0xbabe81[_0x455591(0x288)][_0x455591(0x208)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x455591(0x2c1)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0xbabe81['apiKey'][_0x455591(0x208)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x455591(0x2c1)]['t'](_0x455591(0x2e9))};try{const _0x23f00b=await this[_0x455591(0x2fd)]['get'](_0x42323b[_0x455591(0x20d)])[_0x455591(0x219)](_0xbabe81[_0x455591(0x288)]['trim']());return _0x23f00b[_0x455591(0x2a7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x23f00b[_0x455591(0x25e)]||this[_0x455591(0x2c1)]['t'](_0x455591(0x321))};}catch(_0x1848fe){return console[_0x455591(0x21b)](_0x455591(0x2ce),_0x1848fe),{'isValid':!0x0};}}},_0x320c8d[_0x1f54c8(0x2be)]=_0x9ffd7([_0x4641d9(0x0,_0x2bc493[_0x1f54c8(0x23e)](_0x2bc493[_0x1f54c8(0x2bf)])),_0x4641d9(0x1,_0x5b6029[_0x1f54c8(0x241)]),_0x4641d9(0x2,_0x2bc493[_0x1f54c8(0x23a)]),_0x4641d9(0x3,_0x2bc493[_0x1f54c8(0x2f1)]),_0x4641d9(0x4,_0x5b6029['IDialogService']),_0x4641d9(0x5,_0x5b6029[_0x1f54c8(0x32b)]),_0x4641d9(0x6,_0x2bc493[_0x1f54c8(0x23e)](_0x5b6029[_0x1f54c8(0x329)])),_0x4641d9(0x7,_0x2bc493[_0x1f54c8(0x23e)](_0x2bc493[_0x1f54c8(0x2fa)])),_0x4641d9(0x8,_0x2bc493[_0x1f54c8(0x1e6)]),_0x4641d9(0x9,_0x2bc493[_0x1f54c8(0x23e)](_0x42323b['MCPConnectionController']))],_0x320c8d[_0x1f54c8(0x2be)]);const _0x36c9a5={'id':'mcp-ui.command.openConfigPanel','type':_0x2bc493[_0x1f54c8(0x306)][_0x1f54c8(0x234)],'handler':async(_0x17ccd7,_0x6e7f41)=>(_0x17ccd7[_0x1f54c8(0x2b3)](_0x320c8d['MCPConfigUIController'])['showConfigPanel'](),!0x0)};function _0x22f6eb(_0x373e9c,_0x15302d){const _0x3ba5cd=_0x1f54c8;switch(_0x373e9c){case _0x42323b['MCPConnectionStatus']['DISCONNECTED']:return _0x3ba5cd(0x29a);case _0x42323b['MCPConnectionStatus'][_0x3ba5cd(0x269)]:return _0x3ba5cd(0x2b6);case _0x42323b[_0x3ba5cd(0x2eb)][_0x3ba5cd(0x2f7)]:return _0x3ba5cd(0x322);case _0x42323b[_0x3ba5cd(0x2eb)][_0x3ba5cd(0x257)]:switch(_0x15302d){case _0x42323b[_0x3ba5cd(0x2d2)][_0x3ba5cd(0x2b2)]:return'mcpStatus.unauthorized';case _0x42323b[_0x3ba5cd(0x2d2)][_0x3ba5cd(0x316)]:return _0x3ba5cd(0x2a9);case _0x42323b[_0x3ba5cd(0x2d2)][_0x3ba5cd(0x271)]:return'mcpStatus.networkError';case _0x42323b[_0x3ba5cd(0x2d2)][_0x3ba5cd(0x26b)]:return _0x3ba5cd(0x338);default:return _0x3ba5cd(0x2ab);}case _0x42323b[_0x3ba5cd(0x2eb)][_0x3ba5cd(0x201)]:return'mcpStatus.retrying';default:return _0x3ba5cd(0x218);}}function _0x1ee91d(_0x48c316,_0x214101,_0xe553f3,_0x3bf05e=!0x0){const _0x32b6a2=_0x1f54c8,_0x736f40=_0x22f6eb(_0x48c316,_0x214101),_0xd328bb=_0xe553f3['t'](_0x736f40);return _0x3bf05e?_0x48c316===_0x42323b[_0x32b6a2(0x2eb)][_0x32b6a2(0x341)]&&_0x214101===_0x42323b[_0x32b6a2(0x2d2)][_0x32b6a2(0x2b2)]?_0xd328bb+_0x32b6a2(0x2de)+_0xe553f3['t'](_0x32b6a2(0x2c4)):_0x48c316===_0x42323b[_0x32b6a2(0x2eb)]['CONNECTED']?''+_0xd328bb:_0x48c316===_0x42323b['MCPConnectionStatus'][_0x32b6a2(0x341)]||_0x48c316===_0x42323b['MCPConnectionStatus']['FAILED']?_0xd328bb+_0x32b6a2(0x2de)+_0xe553f3['t'](_0x32b6a2(0x222)):_0xd328bb:_0xd328bb;}function _0x161bcb(_0x2ceab3){const _0x4e94fc=_0x1f54c8;switch(_0x2ceab3){case _0x42323b[_0x4e94fc(0x2eb)][_0x4e94fc(0x2f7)]:return _0x4e94fc(0x2d0);case _0x42323b[_0x4e94fc(0x2eb)][_0x4e94fc(0x269)]:case _0x42323b['MCPConnectionStatus']['RETRYING']:return _0x4e94fc(0x34c);case _0x42323b['MCPConnectionStatus'][_0x4e94fc(0x257)]:case _0x42323b[_0x4e94fc(0x2eb)][_0x4e94fc(0x341)]:return _0x4e94fc(0x247);default:return'univer-text-gray-500';}}function _0x1a1963(_0x29718e){const _0xdf6192=_0x1f54c8,{status$:_0x5da343,error$:_0x26575d,onConfigure:_0x273848,showClickable:_0x15927e=!0x0}=_0x29718e,_0x190897=_0x5b6029['useObservable'](_0x5da343,_0x42323b['MCPConnectionStatus'][_0xdf6192(0x341)]),_0x3c7a97=_0x5b6029[_0xdf6192(0x345)](_0x26575d,_0x42323b[_0xdf6192(0x2d2)][_0xdf6192(0x2e7)]),_0x3cab53=_0x5b6029['useDependency'](_0x2bc493['LocaleService']),_0x22a4da=_0x190897===_0x42323b['MCPConnectionStatus'][_0xdf6192(0x2f7)];_0x190897===_0x42323b['MCPConnectionStatus'][_0xdf6192(0x269)]||_0x42323b[_0xdf6192(0x2eb)][_0xdf6192(0x201)];const _0x41ff7a=_0x3cab53['t'](_0x22f6eb(_0x190897,_0x3c7a97)),_0x41fc7d=_0x1ee91d(_0x190897,_0x3c7a97,_0x3cab53,_0x15927e),_0x407467=_0x161bcb(_0x190897),_0x3a0ff3=_0x22a4da?_0x48c1fe[_0xdf6192(0x2c7)](_0x287fba,{}):_0x48c1fe['jsx'](_0x2e03c6,{}),_0x3ce18e=_0x515fd1[_0xdf6192(0x2e1)](()=>{_0x15927e&&_0x273848&&_0x273848();},[_0x15927e,_0x273848]);function _0xe4db78(){const _0x192493=_0xdf6192;return _0x48c1fe[_0x192493(0x1eb)](_0x192493(0x324),{'className':_0x1513e5[_0x192493(0x2a6)](_0x192493(0x27d),_0x15927e&&_0x273848&&_0x192493(0x325)),'role':_0x192493(0x21f),'onClick':_0x15927e&&_0x273848?_0x3ce18e:void 0x0,'children':[_0x48c1fe[_0x192493(0x2c7)](_0x192493(0x324),{'className':_0x1513e5['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x407467),'children':_0x3a0ff3}),_0x48c1fe[_0x192493(0x2c7)](_0x192493(0x324),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x41ff7a})]});}return _0x48c1fe['jsx'](_0x1513e5[_0xdf6192(0x352)],{'title':_0x41fc7d,'placement':_0xdf6192(0x2ca),'children':_0xe4db78()});}var _0x9ae888=Object[_0x1f54c8(0x25f)],_0x37ee9c=(_0x1d1a85,_0x28efea,_0x4b1938,_0x4ef192)=>{const _0x2c4f19=_0x1f54c8;for(var _0x36b027=_0x4ef192>0x1?void 0x0:_0x4ef192?_0x9ae888(_0x28efea,_0x4b1938):_0x28efea,_0x39e5d9=_0x1d1a85[_0x2c4f19(0x1f3)]-0x1,_0x584920;_0x39e5d9>=0x0;_0x39e5d9--)(_0x584920=_0x1d1a85[_0x39e5d9])&&(_0x36b027=_0x584920(_0x36b027)||_0x36b027);return _0x36b027;},_0x264906=(_0x34834a,_0x2f228a)=>(_0xe6ecdb,_0x345fed)=>_0x2f228a(_0xe6ecdb,_0x345fed,_0x34834a);_0x320c8d[_0x1f54c8(0x2d5)]=class extends _0x2bc493[_0x1f54c8(0x354)]{constructor(_0x13e96d,_0x1b6ee0,_0x315f99,_0x42c719){const _0x1c621b=_0x1f54c8;super(),this[_0x1c621b(0x2fd)]=_0x13e96d,this['_connectionController']=_0x1b6ee0,this[_0x1c621b(0x1dc)]=_0x315f99,this[_0x1c621b(0x33e)]=_0x42c719,this[_0x1c621b(0x2cf)](),this[_0x1c621b(0x2f3)]();}[_0x1f54c8(0x2cf)](){const _0x282935=_0x1f54c8,_0x30ceab=this[_0x282935(0x33e)][_0x282935(0x2ae)](_0x5831ac);_0x30ceab!=null&&_0x30ceab[_0x282935(0x20b)]&&(this[_0x282935(0x1f6)]['enableAutoConnect']=!0x1);}[_0x1f54c8(0x2f3)](){const _0x3d1074=_0x1f54c8,_0x1226bd=this[_0x3d1074(0x33e)][_0x3d1074(0x2ae)](_0x5831ac);(_0x1226bd==null?void 0x0:_0x1226bd[_0x3d1074(0x2ec)])!==!0x1&&this[_0x3d1074(0x1e1)](this[_0x3d1074(0x1dc)]['registerComponent'](_0x5b6029[_0x3d1074(0x33d)][_0x3d1074(0x216)],()=>{const _0x2a629e=_0x3d1074;var _0x26963c;return _0x5b6029[_0x2a629e(0x312)](_0x1a2834({'status$':this[_0x2a629e(0x1f6)]['connectionStatus$'],'error$':this[_0x2a629e(0x1f6)][_0x2a629e(0x1f8)],'onConfigure':()=>this[_0x2a629e(0x350)](),'showClickable':(_0x26963c=_0x1226bd==null?void 0x0:_0x1226bd['showDeveloperTools'])!=null?_0x26963c:!0x1}),this['_injector']);}));}[_0x1f54c8(0x350)](){const _0x3897d3=_0x1f54c8;this[_0x3897d3(0x2fd)][_0x3897d3(0x2b3)](_0x320c8d[_0x3897d3(0x2be)])[_0x3897d3(0x1e0)]();}},_0x320c8d['MCPConnectionUIController']=_0x37ee9c([_0x264906(0x0,_0x2bc493[_0x1f54c8(0x23e)](_0x2bc493[_0x1f54c8(0x2bf)])),_0x264906(0x1,_0x2bc493[_0x1f54c8(0x23e)](_0x42323b[_0x1f54c8(0x20d)])),_0x264906(0x2,_0x5b6029[_0x1f54c8(0x241)]),_0x264906(0x3,_0x2bc493[_0x1f54c8(0x23a)])],_0x320c8d[_0x1f54c8(0x2d5)]);function _0x1a2834(_0x35fb59){const {status$:_0x14dea5,error$:_0x445749,onConfigure:_0x184637,showClickable:_0x58d7f0}=_0x35fb59;return function(){return _0x48c1fe['jsx'](_0x1a1963,{'status$':_0x14dea5,'error$':_0x445749,'onConfigure':_0x184637,'showClickable':_0x58d7f0});};}function _0x48391d(_0x17b587){const _0x28fc56=_0x1f54c8;return{'id':_0x36c9a5['id'],'type':_0x5b6029[_0x28fc56(0x22d)][_0x28fc56(0x287)],'icon':'MenuIcon','title':_0x28fc56(0x24a),'tooltip':_0x28fc56(0x24a)};}const _0x42a8a2={[_0x5b6029[_0x1f54c8(0x2dc)][_0x1f54c8(0x29e)]]:{[_0x36c9a5['id']]:{'order':0xa,'menuItemFactory':_0x48391d}}};var _0x4cc2e8=Object[_0x1f54c8(0x25f)],_0x1f0d5f=(_0x5d389f,_0x4a0cb8,_0x4e4f48,_0x5b8b4c)=>{for(var _0x232d6e=_0x5b8b4c>0x1?void 0x0:_0x5b8b4c?_0x4cc2e8(_0x4a0cb8,_0x4e4f48):_0x4a0cb8,_0x2de6dd=_0x5d389f['length']-0x1,_0x44ff34;_0x2de6dd>=0x0;_0x2de6dd--)(_0x44ff34=_0x5d389f[_0x2de6dd])&&(_0x232d6e=_0x44ff34(_0x232d6e)||_0x232d6e);return _0x232d6e;},_0x1ac4b9=(_0x2174a9,_0x1d5d28)=>(_0xdd04cd,_0x1d9b49)=>_0x1d5d28(_0xdd04cd,_0x1d9b49,_0x2174a9);_0x320c8d[_0x1f54c8(0x32d)]=class extends _0x2bc493[_0x1f54c8(0x354)]{constructor(_0x51a6c4,_0x28af83){const _0x142ae4=_0x1f54c8;super(),this['_commandService']=_0x51a6c4,this[_0x142ae4(0x242)]=_0x28af83,this[_0x142ae4(0x206)](),this[_0x142ae4(0x232)]();}[_0x1f54c8(0x206)](){[_0x36c9a5]['forEach'](_0x197702=>{const _0x2b5c66=_0x5e8e;this[_0x2b5c66(0x1e1)](this[_0x2b5c66(0x2bc)]['registerCommand'](_0x197702));});}[_0x1f54c8(0x232)](){const _0x4e2eb3=_0x1f54c8;this[_0x4e2eb3(0x242)]['mergeMenu'](_0x42a8a2);}},_0x320c8d[_0x1f54c8(0x32d)]=_0x1f0d5f([_0x1ac4b9(0x0,_0x2bc493[_0x1f54c8(0x2af)]),_0x1ac4b9(0x1,_0x5b6029['IMenuManagerService'])],_0x320c8d['MCPUIMenuController']);const _0x461855={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1f54c8(0x2a8),'connected':_0x1f54c8(0x24b),'failed':'MCP\x20Connection\x20Failed','retrying':_0x1f54c8(0x260),'unknown':_0x1f54c8(0x283),'unauthorized':_0x1f54c8(0x2ac),'sessionOccupied':_0x1f54c8(0x2f6),'networkError':_0x1f54c8(0x2cb),'maxRetriesExceeded':_0x1f54c8(0x284),'clickToConnect':_0x1f54c8(0x2da),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1f54c8(0x230),'description':_0x1f54c8(0x231),'apiKey':_0x1f54c8(0x261),'apiKeyPlaceholder':_0x1f54c8(0x282),'apiKeyHint':_0x1f54c8(0x249),'enableAuth':_0x1f54c8(0x31f),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x1f54c8(0x2ee),'mcpClientConfig':_0x1f54c8(0x2ee),'configInstructions':_0x1f54c8(0x2fc),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1f54c8(0x26a),'configStep2':_0x1f54c8(0x202),'configStep3':_0x1f54c8(0x307),'sessionId':_0x1f54c8(0x276),'sessionIdDescription':_0x1f54c8(0x33a),'authorizationDescription':_0x1f54c8(0x331),'configParameters':_0x1f54c8(0x30e),'maxRetries':_0x1f54c8(0x205),'save':'Save\x20Configuration','saving':_0x1f54c8(0x211),'note1':_0x1f54c8(0x20f),'note2':_0x1f54c8(0x358),'configSaved':_0x1f54c8(0x30d),'configError':_0x1f54c8(0x25d),'apiApplyInfo':{'title':_0x1f54c8(0x2a3),'description':_0x1f54c8(0x221),'univerAiLabel':_0x1f54c8(0x224),'getStarted':_0x1f54c8(0x32c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1f54c8(0x273)},'connectionStatus':{'disconnected':_0x1f54c8(0x330),'connecting':_0x1f54c8(0x1db),'connected':_0x1f54c8(0x252),'failed':_0x1f54c8(0x1d6),'retrying':_0x1f54c8(0x227)},'connectionError':{'unauthorized':_0x1f54c8(0x314),'sessionOccupied':_0x1f54c8(0x1fd),'networkError':_0x1f54c8(0x332),'maxRetriesExceeded':_0x1f54c8(0x327)}}},_0x2495e8={'mcpStatus':{'disconnected':_0x1f54c8(0x2e8),'connecting':_0x1f54c8(0x1d7),'connected':_0x1f54c8(0x1f7),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':_0x1f54c8(0x313),'unauthorized':_0x1f54c8(0x1de),'sessionOccupied':_0x1f54c8(0x1f0),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x1f54c8(0x1cf),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x1f54c8(0x2d1)},'mcpConfig':{'title':_0x1f54c8(0x30b),'description':_0x1f54c8(0x326),'apiKey':_0x1f54c8(0x299),'apiKeyPlaceholder':_0x1f54c8(0x22e),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x1f54c8(0x1fc),'enableAuthHint':_0x1f54c8(0x244),'connectionInfo':_0x1f54c8(0x301),'mcpClientConfig':_0x1f54c8(0x301),'configInstructions':_0x1f54c8(0x22b),'configStepTitle':_0x1f54c8(0x1d0),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x1f54c8(0x323),'sessionId':_0x1f54c8(0x351),'sessionIdDescription':_0x1f54c8(0x270),'authorizationDescription':_0x1f54c8(0x245),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x1f54c8(0x24c),'saving':_0x1f54c8(0x213),'note1':_0x1f54c8(0x347),'note2':_0x1f54c8(0x2e4),'configSaved':_0x1f54c8(0x317),'configError':'配置保存失败','apiApplyInfo':{'title':_0x1f54c8(0x1f1),'description':_0x1f54c8(0x2c3),'univerAiLabel':_0x1f54c8(0x2b7),'getStarted':_0x1f54c8(0x262)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x1f54c8(0x1ef),'invalidConfig':_0x1f54c8(0x204),'invalidApiKey':_0x1f54c8(0x2f5)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':'已连接','failed':_0x1f54c8(0x27b),'retrying':_0x1f54c8(0x328)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x1f54c8(0x1ea),'networkError':_0x1f54c8(0x2b4),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}},_0x4a9f76={'name':_0x1f54c8(0x233),'version':_0x1f54c8(0x263)};var _0x49c6d4=Object[_0x1f54c8(0x278)],_0x586583=Object[_0x1f54c8(0x25f)],_0x3050af=(_0x485cb2,_0x554a8b,_0x1ac7e2)=>_0x554a8b in _0x485cb2?_0x49c6d4(_0x485cb2,_0x554a8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ac7e2}):_0x485cb2[_0x554a8b]=_0x1ac7e2,_0x27e561=(_0x145513,_0x14ef6b,_0x3bb000,_0x186bb6)=>{for(var _0x1013e5=_0x186bb6>0x1?void 0x0:_0x186bb6?_0x586583(_0x14ef6b,_0x3bb000):_0x14ef6b,_0x19db16=_0x145513['length']-0x1,_0x48ba65;_0x19db16>=0x0;_0x19db16--)(_0x48ba65=_0x145513[_0x19db16])&&(_0x1013e5=_0x48ba65(_0x1013e5)||_0x1013e5);return _0x1013e5;},_0x1979df=(_0x2bcbc0,_0x20176f)=>(_0x101ab9,_0x50bd5a)=>_0x20176f(_0x101ab9,_0x50bd5a,_0x2bcbc0),_0x158cc8=(_0x435417,_0x305b38,_0xae8089)=>_0x3050af(_0x435417,typeof _0x305b38!=_0x1f54c8(0x1f5)?_0x305b38+'':_0x305b38,_0xae8089);_0x320c8d[_0x1f54c8(0x311)]=class extends _0x2bc493[_0x1f54c8(0x30c)]{constructor(_0x1de641=_0x346370,_0x27e350,_0x4fc299,_0x4c2345,_0x3f6d8f,_0x289739){const _0xd4beb6=_0x1f54c8;super(),this[_0xd4beb6(0x29b)]=_0x1de641,this[_0xd4beb6(0x2fd)]=_0x27e350,this[_0xd4beb6(0x33e)]=_0x4fc299,this['_uiPartsService']=_0x4c2345,this[_0xd4beb6(0x31a)]=_0x3f6d8f,this[_0xd4beb6(0x2c1)]=_0x289739;const {..._0x219ee4}=_0x2bc493[_0xd4beb6(0x1e8)]({},_0x346370,this[_0xd4beb6(0x29b)]);this['_configService'][_0xd4beb6(0x34e)](_0x5831ac,_0x219ee4);}async[_0x1f54c8(0x32e)](){const _0x2f244a=_0x1f54c8,_0x50b89e=[[_0x320c8d['MCPConnectionUIController']],[_0x320c8d[_0x2f244a(0x2be)]],[_0x320c8d[_0x2f244a(0x32d)]]];this[_0x2f244a(0x2fd)]['has'](_0x3c0e0e[_0x2f244a(0x355)])||_0x50b89e['push']([_0x3c0e0e['ISocketService'],{'useClass':_0x3c0e0e['WebSocketService']}]),_0x50b89e[_0x2f244a(0x31d)](_0x290bd4=>this[_0x2f244a(0x2fd)]['add'](_0x290bd4)),this[_0x2f244a(0x2fd)][_0x2f244a(0x2b3)](_0x320c8d[_0x2f244a(0x2d5)]),this[_0x2f244a(0x2fd)][_0x2f244a(0x2b3)](_0x320c8d['MCPConfigUIController']),this[_0x2f244a(0x2fd)][_0x2f244a(0x2b3)](_0x320c8d[_0x2f244a(0x32d)]);}},_0x158cc8(_0x320c8d[_0x1f54c8(0x311)],'pluginName','MCP_UI_PLUGIN'),_0x158cc8(_0x320c8d['UniverMCPUIPlugin'],_0x1f54c8(0x1fb),_0x4a9f76[_0x1f54c8(0x2fe)]),_0x158cc8(_0x320c8d[_0x1f54c8(0x311)],_0x1f54c8(0x2b0),_0x4a9f76['version']),_0x320c8d[_0x1f54c8(0x311)]=_0x27e561([_0x2bc493[_0x1f54c8(0x2ef)](_0x42323b['UniverMCPPlugin']),_0x1979df(0x1,_0x2bc493[_0x1f54c8(0x23e)](_0x2bc493[_0x1f54c8(0x2bf)])),_0x1979df(0x2,_0x2bc493[_0x1f54c8(0x23a)]),_0x1979df(0x3,_0x5b6029['IUIPartsService']),_0x1979df(0x4,_0x2bc493[_0x1f54c8(0x2f1)]),_0x1979df(0x5,_0x2bc493[_0x1f54c8(0x23e)](_0x2bc493['LocaleService']))],_0x320c8d[_0x1f54c8(0x311)]),_0x320c8d['MCPConfigPanel']=_0x2f9fcc,_0x320c8d[_0x1f54c8(0x31c)]=_0x1a1963,_0x320c8d['OpenMCPConfigPanelCommand']=_0x36c9a5,_0x320c8d[_0x1f54c8(0x346)]=_0x461855,_0x320c8d['zhCN']=_0x2495e8,Object[_0x1f54c8(0x278)](_0x320c8d,Symbol['toStringTag'],{'value':'Module'});}));function _0x5cca(){const _0x35636e=['_mcpCoreConfig$','symbol','_connectionController','MCP\x20已连接','connectionError$','univer-text-sm\x20univer-text-gray-500','text','packageName','启用身份验证','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-size-4','mcpConfig.configStepTitle','http','RETRYING','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','getCurrentConfig','配置无效','Max\x20Retries','_initializeCommands','MessageType','trim','map','0\x200\x2016\x2016','showDeveloperTools','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCPConnectionController','UniverProMcpUi','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','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','Saving...','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','保存中...','Button','assign','HEADER_MENU','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','mcpStatus.unknown','validateApiKey','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','warn','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','url(#off-line-icon_clip0_910_343)','univer-text-xs\x20univer-text-gray-600','button','register','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpStatus.clickToConnect','univer-size-2\x20univer-rounded-full','Univer\x20AI\x20Console','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-shrink-0\x20univer-text-blue-500','Retrying...','includes','mcpConfig.note2','univer-flex\x20univer-items-start\x20univer-gap-3','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-bg-red-500','MenuItemType','请输入您的\x20API\x20密钥','_loading$','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','_initializeMenus','@univerjs-pro/mcp-ui','COMMAND','12kfMqhu','mcpConfig.connectionStatus.connected','_handleConfigSave','120OMuaBS','mcpServerUrl','IConfigService','mcpConfig.connectionError.unauthorized','Bearer\x20','mcpConfig.configError','Inject','substring','Input','IUIPartsService','_menuManagerService','useDependency','启用身份验证以获得安全连接','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-text-red-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.title','MCP\x20Connected','保存配置','univer-space-y-3','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','@univerjs/network','none','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Connected','univer.ai','white','154684VwlXvd','errorMessage','FAILED','mask','mcpConfig.apiApplyInfo.title','2795BXuYVW','exports','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Failed\x20to\x20save\x20configuration','error','getOwnPropertyDescriptor','MCP\x20Retrying...','API\x20Key','几秒钟内获取您的\x20API\x20密钥','0.17.0','OffLineIcon','univer-text-white','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','toString','string','CONNECTING','Copy\x20the\x20JSON\x20configuration\x20below','MAX_RETRIES_EXCEEDED','univer-text-xs\x20univer-text-gray-500','<API_KEY>','M0\x200H16V16H0z','mcpConfig.configStep3','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','NETWORK_ERROR','React','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','subscribe','CheckMarkIcon','Session\x20ID','on-line-icon_clip0_910_349','defineProperty','subscribeConfigValue$','mcpConfig.connectionError.networkError','连接失败','_initConfigSync','univer-flex\x20univer-items-center','_config$','MCP_PLUGIN_CONFIG_KEY','UniverNetwork','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','defIds','tag','BUTTON','apiKey','next','__setCustomHeaders','_apiKey$','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','68232IZRuXK','99RoENdG','sessionId$','5511hJoDtC','_loadStoredApiKey','fill','createElement','OnLineIcon','mcp.apiKey','1em','_createConfigPanelComponent','value','API\x20密钥','mcpStatus.disconnected','_config','@univerjs-pro/mcp','close-icon','OTHERS','defs','idSuffix','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','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','What\x20is\x20API\x20Key?','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-bg-gray-500','clsx','isValid','MCP\x20Connecting...','mcpStatus.sessionOccupied','Error','mcpStatus.failed','MCP:\x20Unauthorized','_logService','getConfig','ICommandService','version','@univerjs/design','UNAUTHORIZED','get','网络连接错误,请检查您的网络连接','univer-flex-1','mcpStatus.connecting','Univer\x20AI\x20控制台','current','291738TvixMu','Configuration\x20Notes:','entries','_commandService','displayName','MCPConfigUIController','Injector','Authorization:','_localeService','_mcpConnectionController','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpStatus.clickToConfigure','mcpConfig.apiApplyInfo.getStarted','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','jsx','univer-text-blue-600','pre','bottom','MCP:\x20Network\x20Error','help-icon','MCPConfigPanel','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_initAutoConnect','univer-text-green-500','点击配置\x20MCP','MCPConnectionError','UniverIcon','univer-flex\x20univer-items-center\x20univer-gap-2','MCPConnectionUIController','clipPath','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.configParameters','univer_session_id:','Click\x20to\x20connect\x20MCP','svg','RibbonStartGroup','mcp-config-dialog','\x20-\x20','getItem','mcpConfig.apiApplyInfo.univerAiLabel','useCallback','path','UniverDesign','您的\x20API\x20密钥安全存储在本地存储中','children','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','NONE','MCP\x20已断开','mcpConfig.validation.apiKeyTooShort','attrs','MCPConnectionStatus','showStatus','mcpConfig.connectionStatus.connecting','MCP\x20Client\x20Configuration','DependentOn','mcpConfig.apiKey','ILocalStorageService','mcpConfig.note1','_initStatusComponent','label','API\x20密钥无效,请检查密钥是否正确','MCP:\x20Session\x20ID\x20Occupied','CONNECTED','http://www.w3.org/2000/svg','colorChannel1','LocaleService','univer-flex\x20univer-gap-3','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_injector','name','setItem','@univerjs/core','MCP\x20客户端配置','univer-font-medium','BehaviorSubject','function','994668MYWLXh','CommandType','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','removeItem','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-min-w-0\x20univer-flex-1','MCP\x20配置','Plugin','Configuration\x20saved\x20successfully','Configuration\x20Parameters:','_componentManager','univerjs-icon\x20univerjs-icon-','UniverMCPUIPlugin','connectInjector','MCP\x20状态未知','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','1858610gYkkys','SESSION_ID_OCCUPIED','配置保存成功','univer-flex\x20univer-items-start\x20univer-gap-2','rxjs','_localStorageService','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCPStatusDisplay','forEach','useRef','Enable\x20Authentication','_validateConfig','mcpConfig.validation.invalidApiKey','mcpStatus.connected','重启您的\x20MCP\x20客户端以使配置生效','div','\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','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','重连中...','ComponentManager','use','IMessageService','Get\x20your\x20API\x20key\x20in\x20seconds','MCPUIMenuController','onStarting','mcpConfig.apiKeyPlaceholder','Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','off-line-icon_clip0_910_343','evenodd','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_messageService','xlink:href','mcpStatus.maxRetriesExceeded','close','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','_dialogService','round','BuiltInUIPart','_configService','translate(.97)','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','DISCONNECTED','mcpConfig.authorizationDescription','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','stringify','useObservable','enUS','配置更改将立即生效','span','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','<SESSION_ID>','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-text-yellow-500','forwardRef','setConfig','currentColor','_handleConfigure','会话ID','Tooltip','univer-bg-blue-500','Disposable','ISocketService','url(#$1','CloseIcon','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','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','MCP:\x20超出最大重试次数','配置步骤:','UniverUi','mcpConfig.connectionStatus.failed','677016wFcVen','mcpConfig.connectionStatus.disconnected','show','Connection\x20Failed','MCP\x20连接中...','0\x200\x2017\x2016','91zYNyzy','_registerComponent','Connecting...','_uiPartsService','useState','MCP:\x20未授权','replace','showConfigPanel','disposeWithMe','univer.plus','mcp-ui.config','mcpConfig.connectionError.sessionOccupied','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','ILogService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','merge','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','会话\x20ID\x20已被占用,请稍后再试','jsxs','univer-space-y-2','noopener\x20noreferrer','react/jsx-runtime','API\x20密钥长度至少需要\x2010\x20位','MCP:\x20会话\x20ID\x20已被占用','什么是\x20API\x20密钥?','univer-text-gray-400','length'];_0x5cca=function(){return _0x35636e;};return _0x5cca();}
|
|
1
|
+
(function(_0x209d23,_0x4885a){const _0x3e2c3e=_0x5155,_0x14ae4b=_0x209d23();while(!![]){try{const _0x29d061=-parseInt(_0x3e2c3e(0x1c2))/0x1*(parseInt(_0x3e2c3e(0x290))/0x2)+parseInt(_0x3e2c3e(0x1ca))/0x3*(parseInt(_0x3e2c3e(0x2ec))/0x4)+-parseInt(_0x3e2c3e(0x207))/0x5*(parseInt(_0x3e2c3e(0x195))/0x6)+parseInt(_0x3e2c3e(0x1dd))/0x7*(-parseInt(_0x3e2c3e(0x23c))/0x8)+-parseInt(_0x3e2c3e(0x267))/0x9*(parseInt(_0x3e2c3e(0x2ae))/0xa)+-parseInt(_0x3e2c3e(0x16a))/0xb+-parseInt(_0x3e2c3e(0x297))/0xc*(-parseInt(_0x3e2c3e(0x2e8))/0xd);if(_0x29d061===_0x4885a)break;else _0x14ae4b['push'](_0x14ae4b['shift']());}catch(_0x2c1076){_0x14ae4b['push'](_0x14ae4b['shift']());}}}(_0x3f4d,0xca21d),function(_0x106c0b,_0x950231){const _0x367424=_0x5155;typeof exports=='object'&&typeof module<'u'?_0x950231(exports,require(`@univerjs/core`),require(`@univerjs-pro/mcp`),require(`@univerjs/design`),require(`@univerjs/ui`),require(`rxjs`),require(`react`),require(`react/jsx-runtime`),require(`@univerjs/network`)):typeof define==_0x367424(0x217)&&define['amd']?define([_0x367424(0x26f),_0x367424(0x2e2),_0x367424(0x1da),_0x367424(0x274),_0x367424(0x23b),_0x367424(0x20e),_0x367424(0x1b8),_0x367424(0x238),_0x367424(0x27f)],_0x950231):(_0x106c0b=typeof globalThis<'u'?globalThis:_0x106c0b||self,_0x950231(_0x106c0b['UniverProMcpUi']={},_0x106c0b[_0x367424(0x226)],_0x106c0b[_0x367424(0x1e2)],_0x106c0b[_0x367424(0x2da)],_0x106c0b['UniverUi'],_0x106c0b[_0x367424(0x20e)],_0x106c0b[_0x367424(0x1cd)],_0x106c0b[_0x367424(0x1cd)],_0x106c0b[_0x367424(0x24a)]));}(this,function(_0x4a5d58,_0xe35369,_0x2a5c68,_0x184252,_0x339ac9,_0xce3e33,_0x2f78bc,_0x29ded9,_0x211abe){const _0x56fe33=_0x5155;Object[_0x56fe33(0x26c)](_0x4a5d58,Symbol['toStringTag'],{'value':'Module'});function _0x460bd5({ref:_0x5b56e7,..._0x440dec}){const _0x4c8f8a=_0x56fe33;let {icon:_0xf1cdb,id:_0x25f91e,className:_0x3a156a,extend:_0x37aca5,..._0x255b3c}=_0x440dec,_0x2bee8e=(_0x4c8f8a(0x1fb)+_0x25f91e+'\x20'+(_0x3a156a||''))[_0x4c8f8a(0x2cd)](),_0x37f7b0=(0x0,_0x2f78bc[_0x4c8f8a(0x1c1)])('_'+_0x271cc8());return _0x38e00b(_0xf1cdb,''+_0x25f91e,{'defIds':_0xf1cdb['defIds'],'idSuffix':_0x37f7b0[_0x4c8f8a(0x1e9)]},{'ref':_0x5b56e7,'className':_0x2bee8e,..._0x255b3c},_0x37aca5);}function _0x38e00b(_0x3a52cd,_0x324fab,_0x12b960,_0xead769,_0x5eb599){const _0x40b458=_0x56fe33;return(0x0,_0x2f78bc[_0x40b458(0x206)])(_0x3a52cd['tag'],{'key':_0x324fab,..._0x55b9ef(_0x3a52cd,_0x12b960,_0x5eb599),..._0xead769},(_0x5e6d0c(_0x3a52cd,_0x12b960)[_0x40b458(0x293)]||[])[_0x40b458(0x2c6)]((_0x14286d,_0x40eb76)=>_0x38e00b(_0x14286d,_0x324fab+'-'+_0x3a52cd['tag']+'-'+_0x40eb76,_0x12b960,void 0x0,_0x5eb599)));}function _0x55b9ef(_0xd1f474,_0x42a044,_0x585da1){const _0xdc7acc=_0x56fe33;let _0x123e01={..._0xd1f474[_0xdc7acc(0x260)]};_0x585da1!=null&&_0x585da1[_0xdc7acc(0x244)]&&_0x123e01['fill']===_0xdc7acc(0x244)&&(_0x123e01['fill']=_0x585da1[_0xdc7acc(0x244)]),_0xd1f474[_0xdc7acc(0x1e5)]===_0xdc7acc(0x175)&&_0x123e01['id']&&(_0x123e01['id']+=_0x42a044[_0xdc7acc(0x1c9)]),Object[_0xdc7acc(0x2a4)](_0x123e01)[_0xdc7acc(0x285)](([_0x43bb4b,_0x2c8d61])=>{const _0x7de1b3=_0xdc7acc;_0x43bb4b===_0x7de1b3(0x175)&&typeof _0x2c8d61=='string'&&(_0x123e01[_0x43bb4b]=_0x2c8d61[_0x7de1b3(0x2dd)](/url\(#(.*)\)/,_0x7de1b3(0x216)+_0x42a044[_0x7de1b3(0x1c9)]+')'));});let {defIds:_0xf8bdb4}=_0x42a044;return!_0xf8bdb4||_0xf8bdb4[_0xdc7acc(0x1d5)]===0x0?_0x123e01:(_0xd1f474['tag']===_0xdc7acc(0x26b)&&_0x123e01[_0xdc7acc(0x20c)]&&(_0x123e01[_0xdc7acc(0x20c)]+=_0x42a044['idSuffix']),Object['entries'](_0x123e01)['forEach'](([_0x349abb,_0x213ae4])=>{const _0x28e1ed=_0xdc7acc;typeof _0x213ae4==_0x28e1ed(0x2e0)&&(_0x123e01[_0x349abb]=_0x213ae4[_0x28e1ed(0x2dd)](/url\(#(.*)\)/,_0x28e1ed(0x216)+_0x42a044[_0x28e1ed(0x1c9)]+')'));}),_0x123e01);}function _0x5e6d0c(_0x5926f0,_0x351b60){const _0x3c668e=_0x56fe33;var _0x3ec1ba;let {defIds:_0x2fb88a}=_0x351b60;return!_0x2fb88a||_0x2fb88a[_0x3c668e(0x1d5)]===0x0?_0x5926f0:_0x5926f0[_0x3c668e(0x1e5)]===_0x3c668e(0x2a2)&&(_0x3ec1ba=_0x5926f0['children'])!=null&&_0x3ec1ba['length']?{..._0x5926f0,'children':_0x5926f0[_0x3c668e(0x293)][_0x3c668e(0x2c6)](_0x9ef9a3=>typeof _0x9ef9a3[_0x3c668e(0x260)]['id']=='string'&&_0x2fb88a&&_0x2fb88a[_0x3c668e(0x2d0)](_0x9ef9a3['attrs']['id'])?{..._0x9ef9a3,'attrs':{..._0x9ef9a3['attrs'],'id':_0x9ef9a3[_0x3c668e(0x260)]['id']+_0x351b60[_0x3c668e(0x1c9)]}}:_0x9ef9a3)}:_0x5926f0;}function _0x271cc8(){const _0x2c0c2d=_0x56fe33;return Math[_0x2c0c2d(0x192)]()[_0x2c0c2d(0x219)](0x24)[_0x2c0c2d(0x161)](0x2,0x8);}_0x460bd5[_0x56fe33(0x1cf)]=_0x56fe33(0x1e6);let _0x16d315={'tag':_0x56fe33(0x1a5),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x56fe33(0x1aa),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x56fe33(0x2a6)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'fill':_0x56fe33(0x181),'d':_0x56fe33(0x247),'fillRule':'evenodd','clipRule':_0x56fe33(0x22c)}}]},_0x17f2a5=(0x0,_0x2f78bc[_0x56fe33(0x2e1)])(function(_0x47385b,_0x399ef4){const _0x4f0987=_0x56fe33;return(0x0,_0x2f78bc[_0x4f0987(0x206)])(_0x460bd5,Object[_0x4f0987(0x27a)]({},_0x47385b,{'id':_0x4f0987(0x2ee),'ref':_0x399ef4,'icon':_0x16d315}));});_0x17f2a5['displayName']='CheckMarkIcon';let _0x5f3929={'tag':'svg','attrs':{'xmlns':_0x56fe33(0x22f),'fill':_0x56fe33(0x1aa),'viewBox':_0x56fe33(0x2d7),'width':'1em','height':_0x56fe33(0x2a6)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'fill':_0x56fe33(0x181),'d':_0x56fe33(0x2b1)}}]},_0x49e86e=(0x0,_0x2f78bc[_0x56fe33(0x2e1)])(function(_0x5ac21b,_0x3f7d46){const _0x572680=_0x56fe33;return(0x0,_0x2f78bc[_0x572680(0x206)])(_0x460bd5,Object[_0x572680(0x27a)]({},_0x5ac21b,{'id':_0x572680(0x251),'ref':_0x3f7d46,'icon':_0x5f3929}));});_0x49e86e[_0x56fe33(0x1cf)]=_0x56fe33(0x190);let _0x26adf0={'tag':'svg','attrs':{'xmlns':_0x56fe33(0x22f),'fill':'none','viewBox':_0x56fe33(0x2d7),'width':_0x56fe33(0x2a6),'height':_0x56fe33(0x2a6)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'fill':'currentColor','d':_0x56fe33(0x1b2)}},{'tag':_0x56fe33(0x1b4),'attrs':{'fill':_0x56fe33(0x181),'d':_0x56fe33(0x299)}},{'tag':'path','attrs':{'fill':_0x56fe33(0x181),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':'evenodd','clipRule':_0x56fe33(0x22c)}}]},_0x2b658b=(0x0,_0x2f78bc[_0x56fe33(0x2e1)])(function(_0x33c4c3,_0x2b75ef){const _0x42b620=_0x56fe33;return(0x0,_0x2f78bc[_0x42b620(0x206)])(_0x460bd5,Object[_0x42b620(0x27a)]({},_0x33c4c3,{'id':_0x42b620(0x249),'ref':_0x2b75ef,'icon':_0x26adf0}));});_0x2b658b[_0x56fe33(0x1cf)]='HelpIcon';let _0x25f33f={'tag':_0x56fe33(0x1a5),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x56fe33(0x1aa),'viewBox':_0x56fe33(0x2d7),'width':_0x56fe33(0x2a6),'height':_0x56fe33(0x2a6)},'children':[{'tag':'g','attrs':{'clipPath':_0x56fe33(0x2c1)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'stroke':_0x56fe33(0x181),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x56fe33(0x282),'strokeLinejoin':_0x56fe33(0x282),'strokeWidth':1.2}}]},{'tag':_0x56fe33(0x2a2),'attrs':{},'children':[{'tag':_0x56fe33(0x271),'attrs':{'id':_0x56fe33(0x1ec)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'fill':_0x56fe33(0x1de),'d':_0x56fe33(0x248)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x44d819=(0x0,_0x2f78bc[_0x56fe33(0x2e1)])(function(_0x4eb3d0,_0x47b11f){const _0x4d94d8=_0x56fe33;return(0x0,_0x2f78bc[_0x4d94d8(0x206)])(_0x460bd5,Object[_0x4d94d8(0x27a)]({},_0x4eb3d0,{'id':_0x4d94d8(0x18f),'ref':_0x47b11f,'icon':_0x25f33f}));});_0x44d819[_0x56fe33(0x1cf)]='OffLineIcon';let _0xda347={'tag':_0x56fe33(0x1a5),'attrs':{'xmlns':_0x56fe33(0x22f),'fill':_0x56fe33(0x1aa),'viewBox':'0\x200\x2017\x2016','width':_0x56fe33(0x2a6),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x56fe33(0x2b5)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'stroke':_0x56fe33(0x181),'d':_0x56fe33(0x253),'strokeLinecap':_0x56fe33(0x282),'strokeLinejoin':_0x56fe33(0x282),'strokeWidth':1.2}}]},{'tag':_0x56fe33(0x2a2),'attrs':{},'children':[{'tag':_0x56fe33(0x271),'attrs':{'id':_0x56fe33(0x1a2)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'fill':_0x56fe33(0x1de),'d':_0x56fe33(0x248),'transform':_0x56fe33(0x1ae)}}]}]}],'defIds':[_0x56fe33(0x1a2)]},_0x21a717=(0x0,_0x2f78bc['forwardRef'])(function(_0x146bec,_0x5e2fa9){const _0x3cfce3=_0x56fe33;return(0x0,_0x2f78bc[_0x3cfce3(0x206)])(_0x460bd5,Object[_0x3cfce3(0x27a)]({},_0x146bec,{'id':_0x3cfce3(0x1dc),'ref':_0x5e2fa9,'icon':_0xda347}));});_0x21a717[_0x56fe33(0x1cf)]=_0x56fe33(0x163);function _0x3b5837(_0x2e5135){const _0x4ba817=_0x56fe33;var _0x363467,_0x1844be;let {mcpCoreConfig:_0x1b135f,onSave:_0x122991,loading:_0x3409c3=!0x1,config:_0x3923e3,connectionStatus$:_0x30a26c,connectionError$:_0x24d4ec,currentApiKey$:_0x41a977,currentSessionId$:_0x440713}=_0x2e5135,_0x1b836e=(0x0,_0x339ac9[_0x4ba817(0x2ca)])(_0xe35369[_0x4ba817(0x1af)]),_0x116362=(0x0,_0x339ac9[_0x4ba817(0x1f8)])(_0x30a26c,_0x2a5c68[_0x4ba817(0x19f)]['DISCONNECTED']),_0x14c76f=(0x0,_0x339ac9[_0x4ba817(0x1f8)])(_0x24d4ec,_0x2a5c68[_0x4ba817(0x220)]['NONE']),_0x1f40a6=(0x0,_0x339ac9[_0x4ba817(0x1f8)])(_0x440713,''),[_0x276d6e,_0x4df44b]=(0x0,_0x2f78bc[_0x4ba817(0x29e)])((0x0,_0x339ac9['useObservable'])(_0x41a977,'')||''),_0x499041=_0x3923e3['showDeveloperTools']&&_0x1b135f[_0x4ba817(0x2e6)]&&(_0x1b135f['mcpServerUrl'][_0x4ba817(0x2d0)](_0x4ba817(0x2b0))||_0x1b135f[_0x4ba817(0x2e6)]['includes'](_0x4ba817(0x227))),_0x250fb3=(_0x363467=_0x1b135f[_0x4ba817(0x2e6)])==null?void 0x0:_0x363467[_0x4ba817(0x2d0)]('univer.plus'),_0x3c9346=(_0x1844be=_0x1b135f[_0x4ba817(0x2e6)])==null?void 0x0:_0x1844be[_0x4ba817(0x2d0)]('univer.ai'),_0x2ec51b=_0x250fb3?'https://console.univer.plus':'https://console.univer.ai',_0x3ceae5=_0x3923e3[_0x4ba817(0x25d)]&&(_0x250fb3||_0x3c9346),[_0x2395fd,_0x4be11d]=(0x0,_0x2f78bc[_0x4ba817(0x29e)])(!_0x276d6e[_0x4ba817(0x2cd)]()),_0x5b9525=(_0x3b704d,_0x2bda65)=>{const _0x1cc706=_0x4ba817;if(_0x2bda65===_0x2a5c68[_0x1cc706(0x220)]['UNAUTHORIZED'])return _0x1cc706(0x187);switch(_0x3b704d){case _0x2a5c68[_0x1cc706(0x19f)][_0x1cc706(0x2e9)]:return _0x1cc706(0x1d9);case _0x2a5c68[_0x1cc706(0x19f)][_0x1cc706(0x268)]:case _0x2a5c68[_0x1cc706(0x19f)][_0x1cc706(0x201)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x2a5c68[_0x1cc706(0x19f)][_0x1cc706(0x1cc)]:return _0x1cc706(0x187);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x2ca76c=(_0x1f04ed,_0x5ad8e3)=>{const _0x5bd42b=_0x4ba817;if(_0x5ad8e3===_0x2a5c68[_0x5bd42b(0x220)][_0x5bd42b(0x178)])return _0x5bd42b(0x179);switch(_0x1f04ed){case _0x2a5c68['MCPConnectionStatus'][_0x5bd42b(0x2e9)]:return _0x5bd42b(0x1e3);case _0x2a5c68[_0x5bd42b(0x19f)][_0x5bd42b(0x268)]:case _0x2a5c68['MCPConnectionStatus'][_0x5bd42b(0x201)]:return _0x5bd42b(0x291);case _0x2a5c68[_0x5bd42b(0x19f)][_0x5bd42b(0x1cc)]:return _0x5bd42b(0x179);default:return'univer-bg-gray-500';}},_0x223f64=_0x4de99b=>{const _0x54357f=_0x4ba817;switch(_0x4de99b){case _0x2a5c68[_0x54357f(0x19f)][_0x54357f(0x2e9)]:return _0x1b836e['t'](_0x54357f(0x23d));case _0x2a5c68[_0x54357f(0x19f)]['CONNECTING']:return _0x1b836e['t'](_0x54357f(0x1f5));case _0x2a5c68[_0x54357f(0x19f)][_0x54357f(0x1cc)]:return _0x1b836e['t'](_0x54357f(0x18a));case _0x2a5c68[_0x54357f(0x19f)][_0x54357f(0x201)]:return _0x1b836e['t'](_0x54357f(0x21f));default:return _0x1b836e['t'](_0x54357f(0x1e4));}},_0x52c3af=_0x29f296=>{const _0xaf058c=_0x4ba817;switch(_0x29f296){case _0x2a5c68['MCPConnectionError']['UNAUTHORIZED']:return _0x1b836e['t']('mcpConfig.connectionError.unauthorized');case _0x2a5c68['MCPConnectionError'][_0xaf058c(0x1d3)]:return _0x1b836e['t'](_0xaf058c(0x1b0));case _0x2a5c68[_0xaf058c(0x220)][_0xaf058c(0x1c6)]:return _0x1b836e['t'](_0xaf058c(0x28c));case _0x2a5c68[_0xaf058c(0x220)][_0xaf058c(0x1bd)]:return _0x1b836e['t'](_0xaf058c(0x246));default:return'';}},_0x4287d0=(0x0,_0x2f78bc[_0x4ba817(0x230)])(()=>{const _0x1fd794=_0x4ba817;_0x122991({..._0x1b135f,'apiKey':_0x276d6e[_0x1fd794(0x2cd)](),'enableAuth':!0x0});},[_0x1b135f,_0x276d6e,!0x0,_0x122991]),_0x5151f2=_0x276d6e['trim']()[_0x4ba817(0x1d5)]>0x0;return(0x0,_0x29ded9['jsxs'])('div',{'className':_0x4ba817(0x19e),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2bd),'children':(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x1ee),'children':[(0x0,_0x29ded9['jsx'])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x1f3),'children':(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'className':'univer-text-white','children':'⚙'})}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'children':(0x0,_0x29ded9['jsx'])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x1b836e['t']('mcpConfig.description')})})]})}),(0x0,_0x29ded9[_0x4ba817(0x236)])('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':(0x0,_0x184252[_0x4ba817(0x1fa)])(_0x4ba817(0x1b9),_0x5b9525(_0x116362,_0x14c76f)),'children':(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9['jsx'])(_0x4ba817(0x1c3),{'className':(0x0,_0x184252[_0x4ba817(0x1fa)])(_0x4ba817(0x205),_0x2ca76c(_0x116362,_0x14c76f))}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'className':'univer-text-sm\x20univer-font-medium','children':_0x223f64(_0x116362)})]})}),_0x14c76f!==_0x2a5c68[_0x4ba817(0x220)][_0x4ba817(0x2d4)]&&(_0x116362===_0x2a5c68[_0x4ba817(0x19f)]['FAILED']||_0x14c76f===_0x2a5c68[_0x4ba817(0x220)][_0x4ba817(0x178)])&&(0x0,_0x29ded9['jsx'])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x172),'children':(0x0,_0x29ded9['jsxs'])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2d3),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])('p',{'className':_0x4ba817(0x2e4),'children':_0x52c3af(_0x14c76f)})]})})]}),(0x0,_0x29ded9['jsx'])(_0x4ba817(0x1c3),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x165),'children':[(0x0,_0x29ded9[_0x4ba817(0x236)])('div',{'className':'univer-space-y-2','children':[(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x162),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'children':'🔑'}),'\x20',_0x1b836e['t']('mcpConfig.apiKey'),(0x0,_0x29ded9[_0x4ba817(0x1d2)])('span',{'className':'univer-text-red-500','children':'*'}),_0x499041&&(0x0,_0x29ded9[_0x4ba817(0x1d2)])('a',{'className':_0x4ba817(0x22d),'title':_0x1b836e['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x4be11d(!0x0),'children':(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x2b658b,{})})]}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x184252['Input'],{'type':_0x4ba817(0x284),'placeholder':_0x1b836e['t'](_0x4ba817(0x239)),'value':_0x276d6e,'disabled':_0x3409c3,'autoComplete':_0x4ba817(0x1a3),'onChange':_0x4df44b}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1b836e['t'](_0x4ba817(0x189))})]}),_0x499041&&_0x2395fd&&(0x0,_0x29ded9[_0x4ba817(0x236)])('div',{'className':_0x4ba817(0x1bb),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])('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':_0x4ba817(0x2a7),'onClick':()=>_0x4be11d(!0x1),'children':(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x49e86e,{'className':_0x4ba817(0x1b7)})}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x176),'children':(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'className':_0x4ba817(0x196),'children':'🚀'})}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x168),'children':[(0x0,_0x29ded9['jsx'])('h4',{'className':_0x4ba817(0x1e0),'children':_0x1b836e['t'](_0x4ba817(0x1f9))}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])('p',{'className':_0x4ba817(0x2d9),'children':_0x1b836e['t'](_0x4ba817(0x209))}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x3ceae5&&(0x0,_0x29ded9[_0x4ba817(0x236)])('a',{'className':_0x4ba817(0x264),'href':_0x2ec51b,'target':_0x4ba817(0x256),'rel':'noopener\x20noreferrer','children':[(0x0,_0x29ded9['jsx'])('span',{'children':'🤖'}),_0x1b836e['t'](_0x4ba817(0x2b4)),(0x0,_0x29ded9['jsx'])(_0x4ba817(0x2b8),{'className':'univer-text-gray-400','children':'↗'})]})}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x199),'children':['✨','\x20',_0x1b836e['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x3923e3[_0x4ba817(0x25d)]&&(0x0,_0x29ded9['jsxs'])(_0x4ba817(0x1c3),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[(0x0,_0x29ded9['jsxs'])('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'children':'🔗'}),'\x20',_0x1b836e['t']('mcpConfig.connectionInfo')]}),(0x0,_0x29ded9[_0x4ba817(0x236)])('div',{'className':_0x4ba817(0x2b3),'children':[(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x28b),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])('p',{'className':_0x4ba817(0x202),'children':_0x1b836e['t'](_0x4ba817(0x275))}),(0x0,_0x29ded9['jsxs'])('div',{'className':_0x4ba817(0x2aa),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x208),'children':_0x1b836e['t'](_0x4ba817(0x1bf))}),(0x0,_0x29ded9[_0x4ba817(0x236)])('div',{'className':_0x4ba817(0x2c4),'children':[(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9['jsx'])(_0x4ba817(0x2b8),{'className':_0x4ba817(0x164),'children':'1'}),_0x1b836e['t']('mcpConfig.configStep1')]}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'className':_0x4ba817(0x164),'children':'2'}),_0x1b836e['t'](_0x4ba817(0x177))]}),(0x0,_0x29ded9['jsxs'])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])('span',{'className':_0x4ba817(0x164),'children':'3'}),_0x1b836e['t'](_0x4ba817(0x174))]})]})]})]}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2aa),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x208),'children':_0x4ba817(0x203)}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2bc),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x4ba817(0x16b)]({'mcpServers':{'univer':{'url':_0x4ba817(0x21e)+(_0x1f40a6||'<SESSION_ID>'),'type':_0x4ba817(0x2e5),'headers':{'Authorization':_0x4ba817(0x2de)+(_0x276d6e||_0x4ba817(0x2dc))}}}},null,0x2)})})]}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':'univer-space-y-3','children':[(0x0,_0x29ded9['jsx'])(_0x4ba817(0x1c3),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1b836e['t']('mcpConfig.configParameters')}),(0x0,_0x29ded9['jsxs'])(_0x4ba817(0x1c3),{'className':'univer-space-y-2','children':[(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x1ff),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2cb)}),(0x0,_0x29ded9['jsxs'])('div',{'className':_0x4ba817(0x2a0),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2d5),'children':_0x4ba817(0x29a)}),(0x0,_0x29ded9['jsx'])('div',{'className':_0x4ba817(0x266),'children':_0x1b836e['t'](_0x4ba817(0x1a6))})]})]}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x1ff),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2cb)}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2a0),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2d5),'children':_0x4ba817(0x1f0)}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x266),'children':_0x1b836e['t'](_0x4ba817(0x1a4))})]})]})]})]})]})]}),(0x0,_0x29ded9['jsx'])(_0x184252[_0x4ba817(0x1d4)],{'onClick':_0x4287d0,'disabled':!_0x5151f2||_0x3409c3,'className':_0x4ba817(0x24d),'children':_0x3409c3?(0x0,_0x29ded9[_0x4ba817(0x236)])('span',{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'children':'⟲'}),_0x1b836e['t'](_0x4ba817(0x298))]}):(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x2b8),{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9['jsx'])(_0x17f2a5,{}),_0x1b836e['t']('mcpConfig.save')]})}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x278),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])('span',{'className':_0x4ba817(0x258),'children':'💡'}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x296),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x24c),'children':_0x4ba817(0x242)}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'children':['•',_0x1b836e['t'](_0x4ba817(0x262))]}),(0x0,_0x29ded9['jsxs'])('div',{'children':['•',_0x1b836e['t'](_0x4ba817(0x2f1))]})]})]})})]})})]});}let _0x258604=_0x56fe33(0x292);Symbol(_0x258604);let _0x10ffbb={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x9b93b4(_0x1f8cce){'@babel/helpers - typeof';const _0x37971a=_0x56fe33;return _0x9b93b4=typeof Symbol==_0x37971a(0x217)&&typeof Symbol[_0x37971a(0x215)]==_0x37971a(0x22b)?function(_0x28c9bd){return typeof _0x28c9bd;}:function(_0x8136c1){const _0x1ac21a=_0x37971a;return _0x8136c1&&typeof Symbol=='function'&&_0x8136c1[_0x1ac21a(0x17f)]===Symbol&&_0x8136c1!==Symbol[_0x1ac21a(0x263)]?_0x1ac21a(0x22b):typeof _0x8136c1;},_0x9b93b4(_0x1f8cce);}function _0x35b50f(_0x41c522,_0x3bd183){const _0xd55f62=_0x56fe33;if(_0x9b93b4(_0x41c522)!='object'||!_0x41c522)return _0x41c522;var _0x88d275=_0x41c522[Symbol[_0xd55f62(0x29d)]];if(_0x88d275!==void 0x0){var _0x4328c1=_0x88d275[_0xd55f62(0x1c0)](_0x41c522,_0x3bd183||_0xd55f62(0x182));if(_0x9b93b4(_0x4328c1)!=_0xd55f62(0x184))return _0x4328c1;throw TypeError(_0xd55f62(0x18b));}return(_0x3bd183===_0xd55f62(0x2e0)?String:Number)(_0x41c522);}function _0x21f966(_0x22f080){const _0x26c2c8=_0x56fe33;var _0x2254f3=_0x35b50f(_0x22f080,_0x26c2c8(0x2e0));return _0x9b93b4(_0x2254f3)==_0x26c2c8(0x22b)?_0x2254f3:_0x2254f3+'';}function _0x364e42(_0x24d4fe,_0x352dbe,_0x311aaa){const _0x5022bb=_0x56fe33;return(_0x352dbe=_0x21f966(_0x352dbe))in _0x24d4fe?Object[_0x5022bb(0x26c)](_0x24d4fe,_0x352dbe,{'value':_0x311aaa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x24d4fe[_0x352dbe]=_0x311aaa,_0x24d4fe;}function _0x51f7d0(_0xa64f04,_0x1d0008){return function(_0x26554a,_0x155c44){_0x1d0008(_0x26554a,_0x155c44,_0xa64f04);};}function _0x3da21a(_0x270a2c,_0xff4099,_0x167dbb,_0x430975){const _0x6aca85=_0x56fe33;var _0x3b1f43=arguments[_0x6aca85(0x1d5)],_0x403dae=_0x3b1f43<0x3?_0xff4099:_0x430975===null?_0x430975=Object[_0x6aca85(0x1b5)](_0xff4099,_0x167dbb):_0x430975,_0x13b4df;if(typeof Reflect==_0x6aca85(0x184)&&typeof Reflect[_0x6aca85(0x223)]=='function')_0x403dae=Reflect[_0x6aca85(0x223)](_0x270a2c,_0xff4099,_0x167dbb,_0x430975);else{for(var _0x831888=_0x270a2c['length']-0x1;_0x831888>=0x0;_0x831888--)(_0x13b4df=_0x270a2c[_0x831888])&&(_0x403dae=(_0x3b1f43<0x3?_0x13b4df(_0x403dae):_0x3b1f43>0x3?_0x13b4df(_0xff4099,_0x167dbb,_0x403dae):_0x13b4df(_0xff4099,_0x167dbb))||_0x403dae);}return _0x3b1f43>0x3&&_0x403dae&&Object[_0x6aca85(0x26c)](_0xff4099,_0x167dbb,_0x403dae),_0x403dae;}let _0x495185=_0x56fe33(0x21c),_0x2e2a49=_0x56fe33(0x2ab),_0x456519=class extends _0xe35369[_0x56fe33(0x17a)]{constructor(_0x7cc139,_0x560502,_0x2f10ed,_0x35f79f,_0x32420e,_0x9cf94e,_0x8c1a0c,_0x106540,_0x3fe0d8,_0x2e2c29){const _0x136eba=_0x56fe33;super(),this[_0x136eba(0x200)]=_0x7cc139,this[_0x136eba(0x1eb)]=_0x560502,this[_0x136eba(0x2f0)]=_0x2f10ed,this[_0x136eba(0x19d)]=_0x35f79f,this['_dialogService']=_0x32420e,this['_messageService']=_0x9cf94e,this[_0x136eba(0x18c)]=_0x8c1a0c,this[_0x136eba(0x211)]=_0x106540,this['_logService']=_0x3fe0d8,this['_mcpConnectionController']=_0x2e2c29,_0x364e42(this,_0x136eba(0x257),new _0xce3e33[(_0x136eba(0x2a8))](!0x1)),_0x364e42(this,_0x136eba(0x245),new _0xce3e33[(_0x136eba(0x2a8))]({})),_0x364e42(this,_0x136eba(0x2e3),new _0xce3e33[(_0x136eba(0x2a8))]({})),_0x364e42(this,_0x136eba(0x16e),new _0xce3e33[(_0x136eba(0x2a8))]('')),_0x364e42(this,_0x136eba(0x2f2),async _0x3f099a=>{const _0x5a27c5=_0x136eba;this['_loading$'][_0x5a27c5(0x214)](!0x0);try{var _0x4a0d15,_0x55f06d;let _0x553188=await this[_0x5a27c5(0x283)](_0x3f099a);if(!_0x553188[_0x5a27c5(0x20b)]){this['_messageService'][_0x5a27c5(0x289)]({'type':_0x184252[_0x5a27c5(0x171)][_0x5a27c5(0x2ac)],'content':_0x553188[_0x5a27c5(0x225)]||this[_0x5a27c5(0x211)]['t'](_0x5a27c5(0x2d2))});return;}_0x3f099a[_0x5a27c5(0x2d8)]?await this[_0x5a27c5(0x19d)][_0x5a27c5(0x17d)](_0x495185,_0x3f099a[_0x5a27c5(0x2d8)]['trim']()):await this[_0x5a27c5(0x19d)][_0x5a27c5(0x2c7)](_0x495185),this[_0x5a27c5(0x16e)][_0x5a27c5(0x214)](((_0x4a0d15=_0x3f099a['apiKey'])==null?void 0x0:_0x4a0d15['trim']())||''),this['_mcpConnectionController'][_0x5a27c5(0x2c8)]({'Authorization':'Bearer\x20'+((_0x55f06d=_0x3f099a['apiKey'])==null?void 0x0:_0x55f06d[_0x5a27c5(0x2cd)]())}),this[_0x5a27c5(0x28e)][_0x5a27c5(0x289)]({'type':_0x184252['MessageType'][_0x5a27c5(0x1be)],'content':this[_0x5a27c5(0x211)]['t'](_0x5a27c5(0x1bc))}),setTimeout(()=>{const _0x2b78ce=_0x5a27c5;this[_0x2b78ce(0x2b6)][_0x2b78ce(0x27b)](_0x2e2a49);},0x320);}catch(_0x1836dc){this[_0x5a27c5(0x18e)][_0x5a27c5(0x1c5)](_0x5a27c5(0x255),_0x1836dc),this[_0x5a27c5(0x28e)]['show']({'type':_0x184252[_0x5a27c5(0x171)]['Error'],'content':this[_0x5a27c5(0x211)]['t'](_0x5a27c5(0x229))});}finally{this['_loading$'][_0x5a27c5(0x214)](!0x1);}}),this[_0x136eba(0x1f2)](),this[_0x136eba(0x1d6)](),this[_0x136eba(0x29c)]();}[_0x56fe33(0x2ef)](){const _0x4da7a5=_0x56fe33;let _0x4ad4df=this[_0x4da7a5(0x2f0)]['getConfig'](_0x258604);_0x4ad4df!=null&&_0x4ad4df[_0x4da7a5(0x25d)]&&this[_0x4da7a5(0x2b6)][_0x4da7a5(0x16c)]({'id':_0x2e2a49,'title':{'title':this[_0x4da7a5(0x211)]['t'](_0x4da7a5(0x1ba))},'children':{'label':_0x4da7a5(0x1c7)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4b9821=_0x4da7a5;this[_0x4b9821(0x2b6)][_0x4b9821(0x27b)](_0x2e2a49);}});}[_0x56fe33(0x2bb)](){const _0x48aca9=_0x56fe33;return this[_0x48aca9(0x245)]['value'];}[_0x56fe33(0x29c)](){const _0x10e0ec=_0x56fe33;this[_0x10e0ec(0x224)](this[_0x10e0ec(0x18c)][_0x10e0ec(0x20a)](_0x10e0ec(0x1c7),this[_0x10e0ec(0x259)]()));}['_createConfigPanelComponent'](){const _0x4f260f=_0x56fe33;return(0x0,_0x339ac9[_0x4f260f(0x2bf)])(()=>{const _0x38287f=_0x4f260f;var _0x472e32,_0x38543c,_0x5e3481;return(0x0,_0x29ded9[_0x38287f(0x1d2)])(_0x3b5837,{'config':this[_0x38287f(0x2e3)][_0x38287f(0x221)],'mcpCoreConfig':this[_0x38287f(0x245)][_0x38287f(0x221)],'currentApiKey$':this[_0x38287f(0x16e)],'onSave':this[_0x38287f(0x2f2)],'loading':this[_0x38287f(0x257)][_0x38287f(0x221)],'connectionStatus$':(_0x472e32=this[_0x38287f(0x16d)])==null?void 0x0:_0x472e32[_0x38287f(0x1b1)],'connectionError$':(_0x38543c=this[_0x38287f(0x16d)])==null?void 0x0:_0x38543c['connectionError$'],'currentSessionId$':(_0x5e3481=this[_0x38287f(0x16d)])==null?void 0x0:_0x5e3481[_0x38287f(0x1c4)]});},this[_0x4f260f(0x200)]);}[_0x56fe33(0x1f2)](){const _0x37f826=_0x56fe33;this[_0x37f826(0x224)](this[_0x37f826(0x2f0)][_0x37f826(0x2d1)](_0x2a5c68[_0x37f826(0x29f)])[_0x37f826(0x26e)](_0x3e13f1=>{this['_mcpCoreConfig$']['next'](_0x3e13f1||{});}));let _0x48f883=this[_0x37f826(0x2f0)][_0x37f826(0x2f3)](_0x2a5c68[_0x37f826(0x29f)]);this[_0x37f826(0x245)][_0x37f826(0x214)](_0x48f883||{}),this[_0x37f826(0x224)](this[_0x37f826(0x2f0)][_0x37f826(0x2d1)](_0x258604)['subscribe'](_0x2d8c68=>{const _0x21b5fd=_0x37f826;this[_0x21b5fd(0x2e3)][_0x21b5fd(0x214)](_0x2d8c68||{});}));let _0x351db0=this['_configService']['getConfig'](_0x258604);this[_0x37f826(0x2e3)][_0x37f826(0x214)](_0x351db0||{});}async['_loadStoredApiKey'](){const _0x1718e1=_0x56fe33;let _0x88e29=this[_0x1718e1(0x2f0)][_0x1718e1(0x2f3)](_0x258604);if(!(_0x88e29!=null&&_0x88e29['showDeveloperTools']))return;let _0x2a5a8a=await this[_0x1718e1(0x19d)][_0x1718e1(0x2d6)](_0x495185);_0x2a5a8a&&(this[_0x1718e1(0x16d)][_0x1718e1(0x2c8)]({'Authorization':_0x1718e1(0x2de)+_0x2a5a8a}),this['_apiKey$'][_0x1718e1(0x214)](_0x2a5a8a));}async['_validateConfig'](_0x2b380e){const _0x479a5e=_0x56fe33;if(!_0x2b380e['apiKey']||_0x2b380e['apiKey'][_0x479a5e(0x2cd)]()[_0x479a5e(0x1d5)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x479a5e(0x211)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x2b380e[_0x479a5e(0x2d8)][_0x479a5e(0x2cd)]()[_0x479a5e(0x1d5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x479a5e(0x211)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x397ef5=await this['_injector'][_0x479a5e(0x1cb)](_0x2a5c68[_0x479a5e(0x1e7)])['validateApiKey'](_0x2b380e[_0x479a5e(0x2d8)][_0x479a5e(0x2cd)]());return _0x397ef5['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x397ef5[_0x479a5e(0x1c5)]||this[_0x479a5e(0x211)]['t'](_0x479a5e(0x2ba))};}catch(_0x521d81){return console[_0x479a5e(0x1a0)](_0x479a5e(0x2a1),_0x521d81),{'isValid':!0x0};}}};_0x456519=_0x3da21a([_0x51f7d0(0x0,(0x0,_0xe35369['Inject'])(_0xe35369[_0x56fe33(0x281)])),_0x51f7d0(0x1,_0x339ac9[_0x56fe33(0x193)]),_0x51f7d0(0x2,_0xe35369[_0x56fe33(0x1e8)]),_0x51f7d0(0x3,_0xe35369['ILocalStorageService']),_0x51f7d0(0x4,_0x339ac9[_0x56fe33(0x24e)]),_0x51f7d0(0x5,_0x339ac9[_0x56fe33(0x173)]),_0x51f7d0(0x6,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0x339ac9[_0x56fe33(0x26a)])),_0x51f7d0(0x7,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0xe35369[_0x56fe33(0x1af)])),_0x51f7d0(0x8,_0xe35369[_0x56fe33(0x279)]),_0x51f7d0(0x9,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0x2a5c68['MCPConnectionController']))],_0x456519);let _0x13e2cd={'id':_0x56fe33(0x2b9),'type':_0xe35369[_0x56fe33(0x20f)][_0x56fe33(0x2a3)],'handler':async(_0x1117f2,_0x2e2f05)=>(_0x1117f2['get'](_0x456519)[_0x56fe33(0x2ef)](),!0x0)};function _0x11c571(_0x17da2a,_0x13f6c3){const _0x3d7aca=_0x56fe33;switch(_0x17da2a){case _0x2a5c68[_0x3d7aca(0x19f)][_0x3d7aca(0x252)]:return _0x3d7aca(0x254);case _0x2a5c68['MCPConnectionStatus'][_0x3d7aca(0x268)]:return _0x3d7aca(0x27c);case _0x2a5c68[_0x3d7aca(0x19f)][_0x3d7aca(0x2e9)]:return _0x3d7aca(0x2ad);case _0x2a5c68[_0x3d7aca(0x19f)][_0x3d7aca(0x1cc)]:switch(_0x13f6c3){case _0x2a5c68['MCPConnectionError']['UNAUTHORIZED']:return _0x3d7aca(0x21a);case _0x2a5c68[_0x3d7aca(0x220)][_0x3d7aca(0x1d3)]:return'mcpStatus.sessionOccupied';case _0x2a5c68[_0x3d7aca(0x220)]['NETWORK_ERROR']:return _0x3d7aca(0x2eb);case _0x2a5c68[_0x3d7aca(0x220)][_0x3d7aca(0x1bd)]:return'mcpStatus.maxRetriesExceeded';default:return _0x3d7aca(0x2f4);}case _0x2a5c68[_0x3d7aca(0x19f)][_0x3d7aca(0x201)]:return _0x3d7aca(0x218);default:return'mcpStatus.unknown';}}function _0x2ffd72(_0x3999bf,_0x38eed0,_0x416a8f,_0xa263c2=!0x0){const _0x3ba5f2=_0x56fe33;let _0x194da6=_0x11c571(_0x3999bf,_0x38eed0),_0xb24588=_0x416a8f['t'](_0x194da6);return _0xa263c2?_0x3999bf===_0x2a5c68[_0x3ba5f2(0x19f)]['DISCONNECTED']&&_0x38eed0===_0x2a5c68[_0x3ba5f2(0x220)][_0x3ba5f2(0x178)]?_0xb24588+_0x3ba5f2(0x23f)+_0x416a8f['t'](_0x3ba5f2(0x295)):_0x3999bf===_0x2a5c68[_0x3ba5f2(0x19f)][_0x3ba5f2(0x2e9)]?''+_0xb24588:_0x3999bf===_0x2a5c68[_0x3ba5f2(0x19f)][_0x3ba5f2(0x252)]||_0x3999bf===_0x2a5c68[_0x3ba5f2(0x19f)][_0x3ba5f2(0x1cc)]?_0xb24588+_0x3ba5f2(0x23f)+_0x416a8f['t'](_0x3ba5f2(0x2a9)):_0xb24588:_0xb24588;}function _0x3583eb(_0x51abd3){const _0x193526=_0x56fe33;switch(_0x51abd3){case _0x2a5c68[_0x193526(0x19f)][_0x193526(0x2e9)]:return _0x193526(0x286);case _0x2a5c68[_0x193526(0x19f)][_0x193526(0x268)]:case _0x2a5c68[_0x193526(0x19f)][_0x193526(0x201)]:return'univer-text-yellow-500';case _0x2a5c68[_0x193526(0x19f)][_0x193526(0x1cc)]:case _0x2a5c68[_0x193526(0x19f)]['DISCONNECTED']:return _0x193526(0x1db);default:return _0x193526(0x1df);}}function _0x11f78f(_0x10be00){const _0x103791=_0x56fe33;let {status$:_0x5cc5b9,error$:_0x5a15dc,onConfigure:_0x2b6950,showClickable:_0x4fe9c6=!0x0}=_0x10be00,_0x4441ff=(0x0,_0x339ac9[_0x103791(0x1f8)])(_0x5cc5b9,_0x2a5c68['MCPConnectionStatus']['DISCONNECTED']),_0x383160=(0x0,_0x339ac9[_0x103791(0x1f8)])(_0x5a15dc,_0x2a5c68[_0x103791(0x220)]['NONE']),_0x74e565=(0x0,_0x339ac9[_0x103791(0x2ca)])(_0xe35369[_0x103791(0x1af)]),_0x5234eb=_0x4441ff===_0x2a5c68[_0x103791(0x19f)][_0x103791(0x2e9)];_0x4441ff===_0x2a5c68[_0x103791(0x19f)]['CONNECTING']||_0x2a5c68[_0x103791(0x19f)][_0x103791(0x201)];let _0x516625=_0x74e565['t'](_0x11c571(_0x4441ff,_0x383160)),_0x35d84f=_0x2ffd72(_0x4441ff,_0x383160,_0x74e565,_0x4fe9c6),_0x2b9ef2=_0x3583eb(_0x4441ff),_0x41090d=_0x5234eb?(0x0,_0x29ded9[_0x103791(0x1d2)])(_0x21a717,{}):(0x0,_0x29ded9[_0x103791(0x1d2)])(_0x44d819,{}),_0xe31384=(0x0,_0x2f78bc[_0x103791(0x230)])(()=>{_0x4fe9c6&&_0x2b6950&&_0x2b6950();},[_0x4fe9c6,_0x2b6950]);function _0x475631(){const _0x156899=_0x103791;return(0x0,_0x29ded9['jsxs'])(_0x156899(0x1c3),{'className':(0x0,_0x184252[_0x156899(0x1fa)])(_0x156899(0x28a),_0x4fe9c6&&_0x2b6950&&'\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':_0x156899(0x2a7),'onClick':_0x4fe9c6&&_0x2b6950?_0xe31384:void 0x0,'children':[(0x0,_0x29ded9[_0x156899(0x1d2)])(_0x156899(0x1c3),{'className':(0x0,_0x184252[_0x156899(0x1fa)])(_0x156899(0x19c),_0x2b9ef2),'children':_0x41090d}),(0x0,_0x29ded9[_0x156899(0x1d2)])(_0x156899(0x1c3),{'className':_0x156899(0x197),'children':_0x516625})]});}return(0x0,_0x29ded9[_0x103791(0x1d2)])(_0x184252[_0x103791(0x1d7)],{'title':_0x35d84f,'placement':'bottom','children':_0x475631()});}let _0x5ad99d=class extends _0xe35369[_0x56fe33(0x17a)]{constructor(_0x148b1e,_0x441d55,_0x51df60,_0x33a80c){const _0x422d21=_0x56fe33;super(),this['_injector']=_0x148b1e,this[_0x422d21(0x1ed)]=_0x441d55,this[_0x422d21(0x1eb)]=_0x51df60,this[_0x422d21(0x2f0)]=_0x33a80c,this[_0x422d21(0x25b)](),this[_0x422d21(0x2ed)]();}['_initAutoConnect'](){const _0x4bce8a=_0x56fe33;let _0x19c66a=this[_0x4bce8a(0x2f0)]['getConfig'](_0x258604);_0x19c66a!=null&&_0x19c66a[_0x4bce8a(0x25d)]&&(this[_0x4bce8a(0x1ed)][_0x4bce8a(0x18d)]=!0x1);}[_0x56fe33(0x2ed)](){const _0x2af49f=_0x56fe33;let _0x4de409=this[_0x2af49f(0x2f0)][_0x2af49f(0x2f3)](_0x258604);(_0x4de409==null?void 0x0:_0x4de409[_0x2af49f(0x27e)])!==!0x1&&this[_0x2af49f(0x224)](this[_0x2af49f(0x1eb)][_0x2af49f(0x21d)](_0x339ac9[_0x2af49f(0x188)][_0x2af49f(0x1b6)],()=>{const _0x259bd7=_0x2af49f;var _0x37d2b6;return(0x0,_0x339ac9['connectInjector'])(_0x3a3742({'status$':this['_connectionController'][_0x259bd7(0x1b1)],'error$':this[_0x259bd7(0x1ed)][_0x259bd7(0x1ea)],'onConfigure':()=>this[_0x259bd7(0x265)](),'showClickable':(_0x37d2b6=_0x4de409==null?void 0x0:_0x4de409[_0x259bd7(0x25d)])==null?!0x1:_0x37d2b6}),this[_0x259bd7(0x200)]);}));}[_0x56fe33(0x265)](){const _0x298256=_0x56fe33;this[_0x298256(0x200)][_0x298256(0x1cb)](_0x456519)[_0x298256(0x2ef)]();}};_0x5ad99d=_0x3da21a([_0x51f7d0(0x0,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0xe35369['Injector'])),_0x51f7d0(0x1,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0x2a5c68['MCPConnectionController'])),_0x51f7d0(0x2,_0x339ac9[_0x56fe33(0x193)]),_0x51f7d0(0x3,_0xe35369[_0x56fe33(0x1e8)])],_0x5ad99d);function _0x3a3742(_0x291ba5){let {status$:_0x2065c3,error$:_0x82c219,onConfigure:_0x16c55c,showClickable:_0x46626b}=_0x291ba5;return function(){const _0x40a929=_0x5155;return(0x0,_0x29ded9[_0x40a929(0x1d2)])(_0x11f78f,{'status$':_0x2065c3,'error$':_0x82c219,'onConfigure':_0x16c55c,'showClickable':_0x46626b});};}function _0x4c150a(_0x2784c9){const _0x5e114b=_0x56fe33;return{'id':_0x13e2cd['id'],'type':_0x339ac9[_0x5e114b(0x28f)][_0x5e114b(0x1a8)],'icon':'MenuIcon','title':'mcpConfig.title','tooltip':'mcpConfig.title'};}let _0x2b73b7={[_0x339ac9[_0x56fe33(0x1f6)][_0x56fe33(0x228)]]:{[_0x13e2cd['id']]:{'order':0xa,'menuItemFactory':_0x4c150a}}},_0x1ce95a=class extends _0xe35369['Disposable']{constructor(_0x18376e,_0x189c81){const _0xafd7d2=_0x56fe33;super(),this['_commandService']=_0x18376e,this[_0xafd7d2(0x250)]=_0x189c81,this[_0xafd7d2(0x243)](),this['_initializeMenus']();}['_initializeCommands'](){[_0x13e2cd]['forEach'](_0x5d4a41=>{const _0x1aa1d1=_0x5155;this[_0x1aa1d1(0x224)](this[_0x1aa1d1(0x26d)][_0x1aa1d1(0x273)](_0x5d4a41));});}[_0x56fe33(0x19a)](){const _0x1138f1=_0x56fe33;this['_menuManagerService'][_0x1138f1(0x2c5)](_0x2b73b7);}};_0x1ce95a=_0x3da21a([_0x51f7d0(0x0,_0xe35369[_0x56fe33(0x1c8)]),_0x51f7d0(0x1,_0x339ac9[_0x56fe33(0x25e)])],_0x1ce95a);let _0x5ec1eb={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x56fe33(0x27d),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x56fe33(0x191),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x56fe33(0x210),'networkError':_0x56fe33(0x1b3),'maxRetriesExceeded':_0x56fe33(0x1fc),'clickToConnect':_0x56fe33(0x1ab),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x56fe33(0x203),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x56fe33(0x22a),'apiKeyPlaceholder':_0x56fe33(0x1d1),'apiKeyHint':_0x56fe33(0x24b),'enableAuth':_0x56fe33(0x261),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x56fe33(0x2df),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x56fe33(0x232),'configStep2':_0x56fe33(0x185),'configStep3':_0x56fe33(0x15f),'sessionId':_0x56fe33(0x2cf),'sessionIdDescription':_0x56fe33(0x25c),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x56fe33(0x2af),'maxRetries':_0x56fe33(0x234),'save':_0x56fe33(0x1f4),'saving':'Saving...','note1':_0x56fe33(0x23a),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x56fe33(0x1a9),'configError':_0x56fe33(0x25a),'apiApplyInfo':{'title':_0x56fe33(0x2ea),'description':_0x56fe33(0x180),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x56fe33(0x17e),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x56fe33(0x2b2),'invalidApiKey':_0x56fe33(0x167)},'connectionStatus':{'disconnected':_0x56fe33(0x294),'connecting':_0x56fe33(0x22e),'connected':_0x56fe33(0x2c2),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x56fe33(0x2a5),'sessionOccupied':_0x56fe33(0x21b),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x56fe33(0x28d)}}},_0x3eb365={'mcpStatus':{'disconnected':_0x56fe33(0x2ce),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x56fe33(0x17b),'unknown':'MCP\x20状态未知','unauthorized':_0x56fe33(0x183),'sessionOccupied':_0x56fe33(0x2be),'networkError':_0x56fe33(0x2e7),'maxRetriesExceeded':_0x56fe33(0x231),'clickToConnect':_0x56fe33(0x24f),'clickToConfigure':_0x56fe33(0x269)},'mcpConfig':{'title':_0x56fe33(0x1ad),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x56fe33(0x287),'apiKeyPlaceholder':_0x56fe33(0x1a1),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x56fe33(0x166),'enableAuthHint':_0x56fe33(0x1ac),'connectionInfo':_0x56fe33(0x1d0),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x56fe33(0x241),'configStepTitle':_0x56fe33(0x186),'configStep1':_0x56fe33(0x1ce),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x56fe33(0x213),'sessionId':_0x56fe33(0x2b7),'sessionIdDescription':_0x56fe33(0x1fd),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x56fe33(0x169),'maxRetries':_0x56fe33(0x1f7),'save':_0x56fe33(0x2db),'saving':_0x56fe33(0x25f),'note1':'配置更改将立即生效','note2':_0x56fe33(0x160),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x56fe33(0x233),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x56fe33(0x212),'apiKeyTooShort':_0x56fe33(0x1f1),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x56fe33(0x277),'connecting':_0x56fe33(0x1a7),'connected':_0x56fe33(0x237),'failed':'连接失败','retrying':_0x56fe33(0x20d)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x56fe33(0x29b),'maxRetriesExceeded':_0x56fe33(0x1ef)}}};var _0x5b2912=_0x56fe33(0x2c0),_0x3dc7c9=_0x56fe33(0x288);let _0x49cf8f=class extends _0xe35369['Plugin']{constructor(_0x4e05a7=_0x10ffbb,_0x1b3b43,_0x50fd60,_0x43357c,_0xbee7ad,_0x4b03e3){const _0x33cc93=_0x56fe33;super(),this['_config']=_0x4e05a7,this['_injector']=_0x1b3b43,this[_0x33cc93(0x2f0)]=_0x50fd60,this['_uiPartsService']=_0x43357c,this['_localStorageService']=_0xbee7ad,this[_0x33cc93(0x211)]=_0x4b03e3;let {..._0xdab798}=(0x0,_0xe35369[_0x33cc93(0x194)])({},_0x10ffbb,this[_0x33cc93(0x240)]);this[_0x33cc93(0x2f0)][_0x33cc93(0x1e1)](_0x258604,_0xdab798);}async[_0x56fe33(0x2cc)](){const _0x5004ef=_0x56fe33;let _0x2dce4e=[[_0x5ad99d],[_0x456519],[_0x1ce95a]];this['_injector'][_0x5004ef(0x276)](_0x211abe[_0x5004ef(0x198)])||_0x2dce4e[_0x5004ef(0x222)]([_0x211abe[_0x5004ef(0x198)],{'useClass':_0x211abe['WebSocketService']}]),_0x2dce4e[_0x5004ef(0x285)](_0x567df6=>this['_injector'][_0x5004ef(0x1fe)](_0x567df6)),this['_injector'][_0x5004ef(0x1cb)](_0x5ad99d),this['_injector'][_0x5004ef(0x1cb)](_0x456519),this[_0x5004ef(0x200)][_0x5004ef(0x1cb)](_0x1ce95a);}};_0x364e42(_0x49cf8f,_0x56fe33(0x235),'MCP_UI_PLUGIN'),_0x364e42(_0x49cf8f,_0x56fe33(0x17c),_0x5b2912),_0x364e42(_0x49cf8f,'version',_0x3dc7c9),_0x49cf8f=_0x3da21a([(0x0,_0xe35369[_0x56fe33(0x19b)])(_0x2a5c68[_0x56fe33(0x270)]),_0x51f7d0(0x1,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0xe35369['Injector'])),_0x51f7d0(0x2,_0xe35369[_0x56fe33(0x1e8)]),_0x51f7d0(0x3,_0x339ac9[_0x56fe33(0x193)]),_0x51f7d0(0x4,_0xe35369[_0x56fe33(0x23e)]),_0x51f7d0(0x5,(0x0,_0xe35369['Inject'])(_0xe35369['LocaleService']))],_0x49cf8f),_0x4a5d58['MCPConfigPanel']=_0x3b5837,Object[_0x56fe33(0x26c)](_0x4a5d58,_0x56fe33(0x280),{'enumerable':!0x0,'get':function(){return _0x456519;}}),Object[_0x56fe33(0x26c)](_0x4a5d58,'MCPConnectionUIController',{'enumerable':!0x0,'get':function(){return _0x5ad99d;}}),_0x4a5d58[_0x56fe33(0x272)]=_0x11f78f,Object[_0x56fe33(0x26c)](_0x4a5d58,_0x56fe33(0x170),{'enumerable':!0x0,'get':function(){return _0x1ce95a;}}),_0x4a5d58[_0x56fe33(0x1d8)]=_0x13e2cd,Object[_0x56fe33(0x26c)](_0x4a5d58,_0x56fe33(0x16f),{'enumerable':!0x0,'get':function(){return _0x49cf8f;}}),_0x4a5d58[_0x56fe33(0x2c9)]=_0x5ec1eb,_0x4a5d58['zhCN']=_0x3eb365;}));function _0x5155(_0x202c2d,_0x539017){_0x202c2d=_0x202c2d-0x15f;const _0x3f4d79=_0x3f4d();let _0x515590=_0x3f4d79[_0x202c2d];return _0x515590;}function _0x3f4d(){const _0x389d56=['path','getOwnPropertyDescriptor','HEADER_MENU','univer-size-4','react','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpConfig.title','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.configSaved','MAX_RETRIES_EXCEEDED','Success','mcpConfig.configStepTitle','call','useRef','2lFldVp','div','sessionId$','error','NETWORK_ERROR','MCPConfigPanel','ICommandService','idSuffix','330303BQSMyz','get','FAILED','React','复制以下\x20JSON\x20配置','displayName','MCP\x20客户端配置','Enter\x20your\x20API\x20key','jsx','SESSION_ID_OCCUPIED','Button','length','_loadStoredApiKey','Tooltip','OpenMCPConfigPanelCommand','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','@univerjs-pro/mcp','univer-text-red-500','on-line-icon','741349PbRBsc','white','univer-text-gray-500','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','setConfig','UniverProMcp','univer-bg-green-500','mcpConfig.connectionStatus.disconnected','tag','UniverIcon','MCPConnectionController','IConfigService','current','connectionError$','_uiPartsService','off-line-icon_clip0_910_343','_connectionController','univer-flex\x20univer-items-center\x20univer-gap-3','超出最大重试次数,请稍后再试','Authorization:','API\x20密钥长度至少需要\x2010\x20位','_initConfigSync','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Save\x20Configuration','mcpConfig.connectionStatus.connecting','RibbonStartGroup','最大重试次数','useObservable','mcpConfig.apiApplyInfo.title','clsx','univerjs-icon\x20univerjs-icon-','MCP:\x20Max\x20Retries\x20Exceeded','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','add','univer-flex\x20univer-items-start\x20univer-gap-3','_injector','RETRYING','univer-text-xs\x20univer-text-gray-600','MCP\x20Configuration','univer-flex\x20univer-items-center\x20univer-gap-2','univer-size-2\x20univer-rounded-full','createElement','210JzFjpU','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.apiApplyInfo.description','register','isValid','xlink:href','重连中...','rxjs','CommandType','MCP:\x20Session\x20ID\x20Occupied','_localeService','API\x20密钥不能为空','重启您的\x20MCP\x20客户端以使配置生效','next','iterator','url(#$1','function','mcpStatus.retrying','toString','mcpStatus.unauthorized','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcp.apiKey','registerComponent','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.connectionStatus.retrying','MCPConnectionError','value','push','decorate','disposeWithMe','errorMessage','UniverCore','univer.ai','OTHERS','mcpConfig.configError','API\x20Key','symbol','evenodd','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','Connecting...','http://www.w3.org/2000/svg','useCallback','MCP:\x20超出最大重试次数','Copy\x20the\x20JSON\x20configuration\x20below','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Max\x20Retries','pluginName','jsxs','已连接','react/jsx-runtime','mcpConfig.apiKeyPlaceholder','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','@univerjs/ui','40YdaQBW','mcpConfig.connectionStatus.connected','ILocalStorageService','\x20-\x20','_config','将以下配置添加到您的\x20MCP\x20客户端设置中:','Configuration\x20Notes:','_initializeCommands','colorChannel1','_mcpCoreConfig$','mcpConfig.connectionError.maxRetriesExceeded','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','M0\x200H16V16H0z','help-icon','UniverNetwork','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-font-medium','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','IDialogService','点击连接\x20MCP','_menuManagerService','close-icon','DISCONNECTED','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','mcpStatus.disconnected','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_blank','_loading$','univer-shrink-0\x20univer-text-blue-500','_createConfigPanelComponent','Failed\x20to\x20save\x20configuration','_initAutoConnect','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','showDeveloperTools','IMenuManagerService','保存中...','attrs','Enable\x20Authentication','mcpConfig.note1','prototype','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','_handleConfigure','univer-text-xs\x20univer-text-gray-500','1611vTsCJp','CONNECTING','点击配置\x20MCP','ComponentManager','use','defineProperty','_commandService','subscribe','exports','UniverMCPPlugin','clipPath','MCPStatusDisplay','registerCommand','@univerjs/design','mcpConfig.configInstructions','has','未连接','univer-flex\x20univer-gap-3','ILogService','assign','close','mcpStatus.connecting','MCP\x20Connected','showStatus','@univerjs/network','MCPConfigUIController','Injector','round','_validateConfig','text','forEach','univer-text-green-500','API\x20密钥','0.19.0','show','univer-flex\x20univer-items-center','univer-space-y-3','mcpConfig.connectionError.networkError','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_messageService','MenuItemType','826654YBpfZs','univer-bg-blue-500','mcp-ui.config','children','Disconnected','mcpStatus.clickToConfigure','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','12EvIPEs','mcpConfig.saving','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','univer_session_id:','网络连接错误,请检查您的网络连接','_registerComponent','toPrimitive','useState','MCP_PLUGIN_CONFIG_KEY','univer-min-w-0\x20univer-flex-1','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','defs','COMMAND','entries','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','1em','button','BehaviorSubject','mcpStatus.clickToConnect','univer-space-y-2','mcp-config-dialog','Error','mcpStatus.connected','68910jOWrrU','Configuration\x20Parameters:','univer.plus','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','Invalid\x20configuration','univer-space-y-4','mcpConfig.apiApplyInfo.univerAiLabel','url(#on-line-icon_clip0_910_349)','_dialogService','会话ID','span','mcp-ui.command.openConfigPanel','mcpConfig.validation.invalidApiKey','getCurrentConfig','pre','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP:\x20会话\x20ID\x20已被占用','connectInjector','@univerjs-pro/mcp-ui','url(#off-line-icon_clip0_910_343)','Connected','Inject','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mergeMenu','map','removeItem','__setCustomHeaders','enUS','useDependency','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','onStarting','trim','MCP\x20已断开','Session\x20ID','includes','subscribeConfigValue$','mcpConfig.validation.invalidConfig','univer-flex\x20univer-items-start\x20univer-gap-2','NONE','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','getItem','0\x200\x2016\x2016','apiKey','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','UniverDesign','保存配置','<API_KEY>','replace','Bearer\x20','MCP\x20Client\x20Configuration','string','forwardRef','@univerjs/core','_config$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','http','mcpServerUrl','MCP:\x20网络错误','70345093OtHaUd','CONNECTED','What\x20is\x20API\x20Key?','mcpStatus.networkError','12cScKgL','_initStatusComponent','check-mark-icon','showConfigPanel','_configService','mcpConfig.note2','_handleConfigSave','getConfig','mcpStatus.failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','您的\x20API\x20密钥安全存储在本地存储中','substring','label','OnLineIcon','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-space-y-5','启用身份验证','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex-1','配置参数:','12607903DAhLUB','stringify','open','_mcpConnectionController','_apiKey$','UniverMCPUIPlugin','MCPUIMenuController','MessageType','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','IMessageService','mcpConfig.configStep3','mask','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.configStep2','UNAUTHORIZED','univer-bg-red-500','Disposable','MCP\x20重连中...','packageName','setItem','API\x20key\x20is\x20required','constructor','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','currentColor','default','MCP:\x20未授权','object','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','配置步骤:','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','BuiltInUIPart','mcpConfig.apiKeyHint','mcpConfig.connectionStatus.failed','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_componentManager','enableAutoConnect','_logService','off-line-icon','CloseIcon','MCP\x20Unknown\x20Status','random','IUIPartsService','merge','168240owapas','univer-text-blue-600','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ISocketService','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_initializeMenus','DependentOn','univer-mr-2\x20univer-flex\x20univer-text-xl','_localStorageService','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCPConnectionStatus','warn','请输入您的\x20API\x20密钥','on-line-icon_clip0_910_349','off','mcpConfig.authorizationDescription','svg','mcpConfig.sessionIdDescription','连接中...','BUTTON','Configuration\x20saved\x20successfully','none','Click\x20to\x20connect\x20MCP','启用身份验证以获得安全连接','MCP\x20配置','translate(.97)','LocaleService','mcpConfig.connectionError.sessionOccupied','connectionStatus$','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','MCP:\x20Network\x20Error'];_0x3f4d=function(){return _0x389d56;};return _0x3f4d();}
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x59df(_0x2b41ba,_0x4a7c99){_0x2b41ba=_0x2b41ba-0x124;var _0x381525=_0x3815();var _0x59dfd6=_0x381525[_0x2b41ba];return _0x59dfd6;}function _0x3815(){var _0x3b13e8=['36UfcbWZ','Max\x20Retries','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','238364vTuzbU','Univer\x20AI\x20Console','Save\x20Configuration','10pEgvyg','Session\x20ID','Failed\x20to\x20save\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','1087075gHWsaj','Saving...','2355230dsCKKy','Connection\x20Failed','5209281tbFEcX','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','5080DsUoVX','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20Authentication','Configuration\x20Steps:','amd','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Get\x20your\x20API\x20key\x20in\x20seconds','9331pqAloc','API\x20key\x20is\x20required','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','MCP\x20Connecting...','Configuration\x20Parameters:','Retrying...','Click\x20to\x20connect\x20MCP','Click\x20to\x20configure\x20MCP','27oioScY','function','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Disconnected','MCP:\x20Session\x20ID\x20Occupied','6711846cDUmQi','API\x20Key','176028JTGYHq','API\x20key\x20with\x20Bearer\x20prefix.','object','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:'];_0x3815=function(){return _0x3b13e8;};return _0x3815();}(function(_0x55bcca,_0x268a77){var _0x2f2972=_0x59df,_0x2f9806=_0x55bcca();while(!![]){try{var _0x56adb3=-parseInt(_0x2f2972(0x125))/0x1*(-parseInt(_0x2f2972(0x128))/0x2)+-parseInt(_0x2f2972(0x14a))/0x3*(-parseInt(_0x2f2972(0x151))/0x4)+-parseInt(_0x2f2972(0x12e))/0x5+-parseInt(_0x2f2972(0x14f))/0x6+-parseInt(_0x2f2972(0x141))/0x7*(-parseInt(_0x2f2972(0x136))/0x8)+-parseInt(_0x2f2972(0x155))/0x9*(parseInt(_0x2f2972(0x130))/0xa)+parseInt(_0x2f2972(0x132))/0xb;if(_0x56adb3===_0x268a77)break;else _0x2f9806['push'](_0x2f9806['shift']());}catch(_0x28f206){_0x2f9806['push'](_0x2f9806['shift']());}}}(_0x3815,0x99c01),function(_0x4a2a34,_0x1d65a0){var _0x226a16=_0x59df;typeof exports==_0x226a16(0x153)&&typeof module<'u'?module['exports']=_0x1d65a0():typeof define==_0x226a16(0x14b)&&define[_0x226a16(0x13a)]?define([],_0x1d65a0):(_0x4a2a34=typeof globalThis<'u'?globalThis:_0x4a2a34||self,_0x4a2a34['UniverProMcpUiCaES']=_0x1d65a0());}(this,function(){var _0x347a7a=_0x59df;return{'mcpStatus':{'disconnected':_0x347a7a(0x13c),'connecting':_0x347a7a(0x145),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x347a7a(0x158),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x347a7a(0x14e),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x347a7a(0x148),'clickToConfigure':_0x347a7a(0x149)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x347a7a(0x14c),'apiKey':_0x347a7a(0x150),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x347a7a(0x13f),'enableAuth':_0x347a7a(0x138),'enableAuthHint':_0x347a7a(0x13b),'connectionInfo':_0x347a7a(0x134),'mcpClientConfig':_0x347a7a(0x134),'configInstructions':_0x347a7a(0x154),'configStepTitle':_0x347a7a(0x139),'configStep1':_0x347a7a(0x133),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x347a7a(0x12b),'sessionId':_0x347a7a(0x129),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x347a7a(0x152),'configParameters':_0x347a7a(0x146),'maxRetries':_0x347a7a(0x156),'save':_0x347a7a(0x127),'saving':_0x347a7a(0x12f),'note1':_0x347a7a(0x124),'note2':_0x347a7a(0x12c),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x347a7a(0x12a),'apiApplyInfo':{'title':_0x347a7a(0x144),'description':_0x347a7a(0x13d),'univerAiLabel':_0x347a7a(0x126),'getStarted':_0x347a7a(0x140)},'validation':{'apiKeyRequired':_0x347a7a(0x142),'apiKeyTooShort':_0x347a7a(0x137),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x347a7a(0x13e)},'connectionStatus':{'disconnected':_0x347a7a(0x14d),'connecting':'Connecting...','connected':_0x347a7a(0x12d),'failed':_0x347a7a(0x131),'retrying':_0x347a7a(0x147)},'connectionError':{'unauthorized':_0x347a7a(0x157),'sessionOccupied':_0x347a7a(0x135),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x347a7a(0x143)}}};}));
|
package/lib/umd/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x212d(_0xee324d,_0x4b689d){_0xee324d=_0xee324d-0x128;var _0x498909=_0x4989();var _0x212dfd=_0x498909[_0xee324d];return _0x212dfd;}(function(_0x2093bb,_0x94cf1c){var _0xe33e47=_0x212d,_0x5607ad=_0x2093bb();while(!![]){try{var _0x3ead09=parseInt(_0xe33e47(0x129))/0x1*(-parseInt(_0xe33e47(0x149))/0x2)+parseInt(_0xe33e47(0x138))/0x3+parseInt(_0xe33e47(0x154))/0x4+-parseInt(_0xe33e47(0x14f))/0x5+-parseInt(_0xe33e47(0x139))/0x6*(parseInt(_0xe33e47(0x153))/0x7)+-parseInt(_0xe33e47(0x152))/0x8+parseInt(_0xe33e47(0x137))/0x9;if(_0x3ead09===_0x94cf1c)break;else _0x5607ad['push'](_0x5607ad['shift']());}catch(_0x120af6){_0x5607ad['push'](_0x5607ad['shift']());}}}(_0x4989,0x4c18d),function(_0x4991ed,_0x3d10e1){var _0x19b5a7=_0x212d;typeof exports=='object'&&typeof module<'u'?module[_0x19b5a7(0x128)]=_0x3d10e1():typeof define==_0x19b5a7(0x145)&&define['amd']?define([],_0x3d10e1):(_0x4991ed=typeof globalThis<'u'?globalThis:_0x4991ed||self,_0x4991ed[_0x19b5a7(0x12a)]=_0x3d10e1());}(this,function(){var _0x4db1eb=_0x212d;return{'mcpStatus':{'disconnected':_0x4db1eb(0x144),'connecting':'MCP\x20Connecting...','connected':_0x4db1eb(0x15b),'failed':_0x4db1eb(0x157),'retrying':_0x4db1eb(0x147),'unknown':_0x4db1eb(0x158),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4db1eb(0x14c),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4db1eb(0x15a),'clickToConfigure':_0x4db1eb(0x143)},'mcpConfig':{'title':_0x4db1eb(0x12d),'description':_0x4db1eb(0x159),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4db1eb(0x14d),'apiKeyHint':_0x4db1eb(0x132),'enableAuth':_0x4db1eb(0x136),'enableAuthHint':_0x4db1eb(0x12b),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4db1eb(0x12c),'configInstructions':_0x4db1eb(0x148),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4db1eb(0x131),'configStep2':_0x4db1eb(0x14b),'configStep3':_0x4db1eb(0x13d),'sessionId':_0x4db1eb(0x134),'sessionIdDescription':_0x4db1eb(0x133),'authorizationDescription':_0x4db1eb(0x151),'configParameters':_0x4db1eb(0x150),'maxRetries':'Max\x20Retries','save':_0x4db1eb(0x13e),'saving':_0x4db1eb(0x12f),'note1':_0x4db1eb(0x155),'note2':_0x4db1eb(0x142),'configSaved':_0x4db1eb(0x12e),'configError':'Failed\x20to\x20save\x20configuration','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':_0x4db1eb(0x141),'getStarted':_0x4db1eb(0x146)},'validation':{'apiKeyRequired':_0x4db1eb(0x135),'apiKeyTooShort':_0x4db1eb(0x156),'invalidConfig':_0x4db1eb(0x14a),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4db1eb(0x140),'connecting':'Connecting...','connected':_0x4db1eb(0x13c),'failed':'Connection\x20Failed','retrying':_0x4db1eb(0x13a)},'connectionError':{'unauthorized':_0x4db1eb(0x14e),'sessionOccupied':_0x4db1eb(0x13f),'networkError':_0x4db1eb(0x130),'maxRetriesExceeded':_0x4db1eb(0x13b)}}};}));function _0x4989(){var _0x3771b9=['Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Save\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Disconnected','Univer\x20AI\x20Console','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20configure\x20MCP','MCP\x20Disconnected','function','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','10124qZwHsm','Invalid\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','1519275EMnqfl','Configuration\x20Parameters:','API\x20key\x20with\x20Bearer\x20prefix.','3899272zHeEVz','1106644PmGuoM','1777152uWAHxm','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','MCP\x20Connected','exports','107IAyiPU','UniverProMcpUiEnUS','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','MCP\x20Configuration','Configuration\x20saved\x20successfully','Saving...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session\x20ID','API\x20key\x20is\x20required','Enable\x20Authentication','11827647sszdWE','606912xmBvTP','12YHoUxa','Retrying...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x4989=function(){return _0x3771b9;};return _0x4989();}
|
package/lib/umd/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1622(){var _0x5e8087=['MCP:\x20Network\x20Error','MCP\x20Retrying...','Retrying...','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','6196876DedEFU','33376aSZWUL','Invalid\x20configuration','amd','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','UniverProMcpUiEsES','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','25774857wbztLD','MCP\x20Unknown\x20Status','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','function','MCP\x20Configuration','Enter\x20your\x20API\x20key','3995538HqJGcL','Connection\x20Failed','Configuration\x20saved\x20successfully','Connecting...','Saving...','7967445xGxwFS','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','4983632gNWVGq','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','5296881XStHXQ','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','API\x20key\x20with\x20Bearer\x20prefix.','object','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','45tLZmdp','MCP\x20Connected','Click\x20to\x20configure\x20MCP','MCP\x20Client\x20Configuration','MCP\x20Disconnected','Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','exports','8mhLezp','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Session\x20ID'];_0x1622=function(){return _0x5e8087;};return _0x1622();}function _0x1313(_0x589673,_0x4b7d8c){_0x589673=_0x589673-0x1c3;var _0x162203=_0x1622();var _0x131324=_0x162203[_0x589673];return _0x131324;}(function(_0x19b1b4,_0x1ef9d9){var _0x4795b2=_0x1313,_0x4fe851=_0x19b1b4();while(!![]){try{var _0x116f2d=-parseInt(_0x4795b2(0x1ea))/0x1*(-parseInt(_0x4795b2(0x1ca))/0x2)+parseInt(_0x4795b2(0x1e4))/0x3+parseInt(_0x4795b2(0x1e1))/0x4+parseInt(_0x4795b2(0x1de))/0x5+-parseInt(_0x4795b2(0x1d9))/0x6+-parseInt(_0x4795b2(0x1c9))/0x7+parseInt(_0x4795b2(0x1f5))/0x8*(-parseInt(_0x4795b2(0x1d1))/0x9);if(_0x116f2d===_0x1ef9d9)break;else _0x4fe851['push'](_0x4fe851['shift']());}catch(_0x718e4a){_0x4fe851['push'](_0x4fe851['shift']());}}}(_0x1622,0xe5b78),function(_0x5e6a87,_0x55aca8){var _0x463388=_0x1313;typeof exports==_0x463388(0x1e8)&&typeof module<'u'?module[_0x463388(0x1f4)]=_0x55aca8():typeof define==_0x463388(0x1d6)&&define[_0x463388(0x1cc)]?define([],_0x55aca8):(_0x5e6a87=typeof globalThis<'u'?globalThis:_0x5e6a87||self,_0x5e6a87[_0x463388(0x1cf)]=_0x55aca8());}(this,function(){var _0x2fae59=_0x1313;return{'mcpStatus':{'disconnected':_0x2fae59(0x1ee),'connecting':_0x2fae59(0x1d3),'connected':_0x2fae59(0x1eb),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2fae59(0x1c4),'unknown':_0x2fae59(0x1d2),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2fae59(0x1c3),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2fae59(0x1e2),'clickToConfigure':_0x2fae59(0x1ec)},'mcpConfig':{'title':_0x2fae59(0x1d7),'description':_0x2fae59(0x1df),'apiKey':_0x2fae59(0x1e0),'apiKeyPlaceholder':_0x2fae59(0x1d8),'apiKeyHint':_0x2fae59(0x1f0),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2fae59(0x1e3),'connectionInfo':_0x2fae59(0x1ed),'mcpClientConfig':_0x2fae59(0x1ed),'configInstructions':_0x2fae59(0x1f2),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2fae59(0x1e9),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2fae59(0x1f7),'sessionIdDescription':_0x2fae59(0x1d5),'authorizationDescription':_0x2fae59(0x1e7),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x2fae59(0x1dd),'note1':_0x2fae59(0x1c7),'note2':_0x2fae59(0x1cd),'configSaved':_0x2fae59(0x1db),'configError':_0x2fae59(0x1c6),'apiApplyInfo':{'title':_0x2fae59(0x1e6),'description':_0x2fae59(0x1c8),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2fae59(0x1d0),'invalidConfig':_0x2fae59(0x1cb),'invalidApiKey':_0x2fae59(0x1f3)},'connectionStatus':{'disconnected':_0x2fae59(0x1ef),'connecting':_0x2fae59(0x1dc),'connected':_0x2fae59(0x1ce),'failed':_0x2fae59(0x1da),'retrying':_0x2fae59(0x1c5)},'connectionError':{'unauthorized':_0x2fae59(0x1e5),'sessionOccupied':_0x2fae59(0x1f6),'networkError':_0x2fae59(0x1d4),'maxRetriesExceeded':_0x2fae59(0x1f1)}}};}));
|
package/lib/umd/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x14c5(){var _0x325811=['953008aOZsZn','5059760vicHzl','MCP:\x20Unauthorized','UniverProMcpUiFaIR','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','1002130dGlemP','API\x20Key','Invalid\x20configuration','106971fTediN','22tgNqgk','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Configuration','985360DgnkTW','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','exports','Enable\x20Authentication','object','amd','MCP\x20Client\x20Configuration','3453336ypvHEl','Saving...','MCP:\x20Max\x20Retries\x20Exceeded','1700343oUizsE','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20saved\x20successfully','Connected','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','Click\x20to\x20connect\x20MCP','54NYvFpo','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\x20Retrying...','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','MCP\x20Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','6BXvHcD','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','Connection\x20Failed','MCP\x20Connected','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','Univer\x20AI\x20Console','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','Failed\x20to\x20save\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0x14c5=function(){return _0x325811;};return _0x14c5();}function _0x14b3(_0x3b7387,_0x24d693){_0x3b7387=_0x3b7387-0x14d;var _0x14c536=_0x14c5();var _0x14b330=_0x14c536[_0x3b7387];return _0x14b330;}(function(_0x4be059,_0xa4b04c){var _0x5d2910=_0x14b3,_0x287cae=_0x4be059();while(!![]){try{var _0x3025f6=parseInt(_0x5d2910(0x17d))/0x1*(parseInt(_0x5d2910(0x17e))/0x2)+-parseInt(_0x5d2910(0x150))/0x3+-parseInt(_0x5d2910(0x14d))/0x4+-parseInt(_0x5d2910(0x17a))/0x5*(parseInt(_0x5d2910(0x15e))/0x6)+-parseInt(_0x5d2910(0x172))/0x7+parseInt(_0x5d2910(0x173))/0x8+-parseInt(_0x5d2910(0x157))/0x9*(-parseInt(_0x5d2910(0x181))/0xa);if(_0x3025f6===_0xa4b04c)break;else _0x287cae['push'](_0x287cae['shift']());}catch(_0xaa80ef){_0x287cae['push'](_0x287cae['shift']());}}}(_0x14c5,0x9ab52),function(_0x10a90d,_0x2e32c2){var _0xaad3ef=_0x14b3;typeof exports==_0xaad3ef(0x185)&&typeof module<'u'?module[_0xaad3ef(0x183)]=_0x2e32c2():typeof define=='function'&&define[_0xaad3ef(0x186)]?define([],_0x2e32c2):(_0x10a90d=typeof globalThis<'u'?globalThis:_0x10a90d||self,_0x10a90d[_0xaad3ef(0x175)]=_0x2e32c2());}(this,function(){var _0x44e6c5=_0x14b3;return{'mcpStatus':{'disconnected':_0x44e6c5(0x169),'connecting':_0x44e6c5(0x177),'connected':_0x44e6c5(0x168),'failed':_0x44e6c5(0x15c),'retrying':_0x44e6c5(0x159),'unknown':_0x44e6c5(0x155),'unauthorized':_0x44e6c5(0x174),'sessionOccupied':_0x44e6c5(0x16a),'networkError':_0x44e6c5(0x15a),'maxRetriesExceeded':_0x44e6c5(0x14f),'clickToConnect':_0x44e6c5(0x156),'clickToConfigure':_0x44e6c5(0x154)},'mcpConfig':{'title':_0x44e6c5(0x180),'description':_0x44e6c5(0x160),'apiKey':_0x44e6c5(0x17b),'apiKeyPlaceholder':_0x44e6c5(0x15b),'apiKeyHint':_0x44e6c5(0x170),'enableAuth':_0x44e6c5(0x184),'enableAuthHint':_0x44e6c5(0x16f),'connectionInfo':_0x44e6c5(0x187),'mcpClientConfig':_0x44e6c5(0x187),'configInstructions':_0x44e6c5(0x15f),'configStepTitle':_0x44e6c5(0x166),'configStep1':_0x44e6c5(0x151),'configStep2':_0x44e6c5(0x15d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x44e6c5(0x161),'maxRetries':_0x44e6c5(0x179),'save':_0x44e6c5(0x16d),'saving':_0x44e6c5(0x14e),'note1':_0x44e6c5(0x176),'note2':_0x44e6c5(0x16c),'configSaved':_0x44e6c5(0x152),'configError':_0x44e6c5(0x16e),'apiApplyInfo':{'title':_0x44e6c5(0x163),'description':_0x44e6c5(0x158),'univerAiLabel':_0x44e6c5(0x16b),'getStarted':_0x44e6c5(0x162)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x44e6c5(0x171),'invalidConfig':_0x44e6c5(0x17c),'invalidApiKey':_0x44e6c5(0x182)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x44e6c5(0x164),'connected':_0x44e6c5(0x153),'failed':_0x44e6c5(0x167),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x44e6c5(0x165),'sessionOccupied':_0x44e6c5(0x17f),'networkError':_0x44e6c5(0x178),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};}));
|
package/lib/umd/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x313f(_0xe0d3da,_0x139a6e){_0xe0d3da=_0xe0d3da-0x6f;var _0x1e5b17=_0x1e5b();var _0x313f67=_0x1e5b17[_0xe0d3da];return _0x313f67;}function _0x1e5b(){var _0x50778f=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20configuration','5340jBdKNB','object','MCP\x20Client\x20Configuration','2109422PjozAp','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Max\x20Retries','Failed\x20to\x20save\x20configuration','283708lYMrZw','8rnAjsH','Click\x20to\x20connect\x20MCP','10025580SdoSlw','Copy\x20the\x20JSON\x20configuration\x20below','6504610gnkHei','What\x20is\x20API\x20Key?','Disconnected','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20is\x20required','amd','Configuration\x20Steps:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','5951vFSesc','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2661723tNmnoR','Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','6qmoteI','Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Configuration','Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1dsBpZH','874269QZFCzz','70qXoGtn','UniverProMcpUiFrFR','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','function','MCP\x20Unknown\x20Status','Retrying...'];_0x1e5b=function(){return _0x50778f;};return _0x1e5b();}(function(_0x8b1a69,_0x261c69){var _0x18009c=_0x313f,_0x17f237=_0x8b1a69();while(!![]){try{var _0x59c41f=parseInt(_0x18009c(0x71))/0x1*(-parseInt(_0x18009c(0x81))/0x2)+parseInt(_0x18009c(0x72))/0x3+-parseInt(_0x18009c(0x86))/0x4*(-parseInt(_0x18009c(0x73))/0x5)+parseInt(_0x18009c(0x9e))/0x6*(parseInt(_0x18009c(0x8b))/0x7)+-parseInt(_0x18009c(0x87))/0x8*(-parseInt(_0x18009c(0x99))/0x9)+-parseInt(_0x18009c(0x89))/0xa+-parseInt(_0x18009c(0x97))/0xb*(-parseInt(_0x18009c(0x7e))/0xc);if(_0x59c41f===_0x261c69)break;else _0x17f237['push'](_0x17f237['shift']());}catch(_0x1f1980){_0x17f237['push'](_0x17f237['shift']());}}}(_0x1e5b,0xa9276),function(_0x303c52,_0x21bad1){var _0x4a9047=_0x313f;typeof exports==_0x4a9047(0x7f)&&typeof module<'u'?module[_0x4a9047(0x95)]=_0x21bad1():typeof define==_0x4a9047(0x77)&&define[_0x4a9047(0x92)]?define([],_0x21bad1):(_0x303c52=typeof globalThis<'u'?globalThis:_0x303c52||self,_0x303c52[_0x4a9047(0x74)]=_0x21bad1());}(this,function(){var _0x464fa6=_0x313f;return{'mcpStatus':{'disconnected':_0x464fa6(0x7b),'connecting':_0x464fa6(0x75),'connected':'MCP\x20Connected','failed':_0x464fa6(0x9c),'retrying':'MCP\x20Retrying...','unknown':_0x464fa6(0x78),'unauthorized':_0x464fa6(0x8e),'sessionOccupied':_0x464fa6(0xa4),'networkError':_0x464fa6(0xa5),'maxRetriesExceeded':_0x464fa6(0x83),'clickToConnect':_0x464fa6(0x88),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x464fa6(0xa2),'description':_0x464fa6(0x9b),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x464fa6(0x6f),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x464fa6(0xa1),'connectionInfo':_0x464fa6(0x80),'mcpClientConfig':_0x464fa6(0x80),'configInstructions':_0x464fa6(0xa0),'configStepTitle':_0x464fa6(0x93),'configStep1':_0x464fa6(0x8a),'configStep2':_0x464fa6(0xa6),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x464fa6(0x70),'authorizationDescription':_0x464fa6(0x7c),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x464fa6(0x84),'save':_0x464fa6(0x82),'saving':'Saving...','note1':_0x464fa6(0x94),'note2':_0x464fa6(0x8f),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x464fa6(0x85),'apiApplyInfo':{'title':_0x464fa6(0x8c),'description':_0x464fa6(0x76),'univerAiLabel':_0x464fa6(0xa3),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x464fa6(0x91),'apiKeyTooShort':_0x464fa6(0x90),'invalidConfig':_0x464fa6(0x7d),'invalidApiKey':_0x464fa6(0x9d)},'connectionStatus':{'disconnected':_0x464fa6(0x8d),'connecting':_0x464fa6(0x9a),'connected':_0x464fa6(0x9f),'failed':'Connection\x20Failed','retrying':_0x464fa6(0x79)},'connectionError':{'unauthorized':_0x464fa6(0x7a),'sessionOccupied':_0x464fa6(0x96),'networkError':_0x464fa6(0x98),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};}));
|